-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.js
More file actions
3 lines (3 loc) · 728 KB
/
client.js
File metadata and controls
3 lines (3 loc) · 728 KB
1
2
3
/*! For license information please see client.js.LICENSE.txt */
(()=>{var t,e={122:(t,e,n)=>{"use strict";var i={};function s(t,e){const n=Object.create(null),i=t.split(",");for(let t=0;t<i.length;t++)n[i[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}n.r(i),n.d(i,{BaseTransition:()=>zn,Comment:()=>As,EffectScope:()=>yt,Fragment:()=>gs,KeepAlive:()=>Jn,ReactiveEffect:()=>Bt,Static:()=>_s,Suspense:()=>En,Teleport:()=>as,Text:()=>ys,Transition:()=>Sa,TransitionGroup:()=>Wa,VueElement:()=>Ca,callWithAsyncErrorHandling:()=>Ir,callWithErrorHandling:()=>Lr,camelize:()=>R,capitalize:()=>Z,cloneVNode:()=>js,compatUtils:()=>Io,computed:()=>cn,createApp:()=>wl,createBlock:()=>Ss,createCommentVNode:()=>Hs,createElementBlock:()=>Es,createElementVNode:()=>Ds,createHydrationRenderer:()=>Xi,createRenderer:()=>Yi,createSSRApp:()=>Pl,createSlots:()=>Ks,createStaticVNode:()=>Zs,createTextVNode:()=>Us,createVNode:()=>Fs,customRef:()=>sn,defineAsyncComponent:()=>Wn,defineComponent:()=>qn,defineCustomElement:()=>_a,defineEmits:()=>fo,defineExpose:()=>mo,defineProps:()=>uo,defineSSRCustomElement:()=>va,devtools:()=>hn,effect:()=>Ot,effectScope:()=>At,getCurrentInstance:()=>ar,getCurrentScope:()=>vt,getTransitionRawChildren:()=>Vn,guardReactiveProps:()=>Rs,h:()=>Co,handleError:()=>Nr,hydrate:()=>bl,initCustomFormatter:()=>Po,inject:()=>On,isMemoSame:()=>ko,isProxy:()=>Ue,isReactive:()=>Re,isReadonly:()=>je,isRef:()=>We,isRuntimeOnly:()=>yr,isVNode:()=>Ls,markRaw:()=>He,mergeDefaults:()=>vo,mergeProps:()=>Ws,nextTick:()=>Gr,normalizeClass:()=>h,normalizeProps:()=>p,normalizeStyle:()=>o,onActivated:()=>Xn,onBeforeMount:()=>oi,onBeforeUnmount:()=>hi,onBeforeUpdate:()=>li,onDeactivated:()=>Qn,onErrorCaptured:()=>mi,onMounted:()=>ai,onRenderTracked:()=>fi,onRenderTriggered:()=>di,onScopeDispose:()=>xt,onServerPrefetch:()=>ui,onUnmounted:()=>pi,onUpdated:()=>ci,openBlock:()=>Cs,popScopeId:()=>_n,provide:()=>Mn,proxyRefs:()=>en,pushScopeId:()=>An,queuePostFlushCb:()=>Jr,reactive:()=>Me,readonly:()=>De,ref:()=>$e,registerRuntimeCompiler:()=>gr,render:()=>Cl,renderList:()=>$s,renderSlot:()=>Js,resolveComponent:()=>hs,resolveDirective:()=>ds,resolveDynamicComponent:()=>us,resolveFilter:()=>Lo,resolveTransitionHooks:()=>jn,setBlockTracking:()=>Ts,setDevtoolsHook:()=>pn,setTransitionHooks:()=>Hn,shallowReactive:()=>Oe,shallowReadonly:()=>Fe,shallowRef:()=>Ke,ssrContextKey:()=>bo,ssrUtils:()=>So,stop:()=>Dt,toDisplayString:()=>u,toHandlerKey:()=>H,toHandlers:()=>Xs,toRaw:()=>Ze,toRef:()=>an,toRefs:()=>rn,transformVNodeArgs:()=>Ns,triggerRef:()=>Xe,unref:()=>Qe,useAttrs:()=>Ao,useCssModule:()=>ba,useCssVars:()=>wa,useSSRContext:()=>wo,useSlots:()=>yo,useTransitionState:()=>Dn,vModelCheckbox:()=>el,vModelDynamic:()=>ll,vModelRadio:()=>il,vModelSelect:()=>sl,vModelText:()=>tl,vShow:()=>ml,version:()=>Eo,warn:()=>kr,watch:()=>ro,watchEffect:()=>eo,watchPostEffect:()=>no,watchSyncEffect:()=>io,withAsyncContext:()=>xo,withCtx:()=>xn,withDefaults:()=>go,withDirectives:()=>Ui,withKeys:()=>fl,withMemo:()=>To,withModifiers:()=>ul,withScopeId:()=>vn});const r=s("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function o(t){if(P(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],s=S(i)?c(i):o(i);if(s)for(const t in s)e[t]=s[t]}return e}return S(t)||I(t)?t:void 0}const a=/;(?![^(]*\))/g,l=/:(.+)/;function c(t){const e={};return t.split(a).forEach((t=>{if(t){const n=t.split(l);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function h(t){let e="";if(S(t))e=t;else if(P(t))for(let n=0;n<t.length;n++){const i=h(t[n]);i&&(e+=i+" ")}else if(I(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function p(t){if(!t)return null;let{class:e,style:n}=t;return e&&!S(e)&&(t.class=h(e)),n&&(t.style=o(n)),t}const u=t=>null==t?"":P(t)||I(t)&&(t.toString===B||!E(t.toString))?JSON.stringify(t,d,2):String(t),d=(t,e)=>e&&e.__v_isRef?d(t,e.value):T(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:k(e)?{[`Set(${e.size})`]:[...e.values()]}:!I(e)||P(e)||O(e)?e:String(e),f={},m=[],g=()=>{},y=()=>!1,A=/^on[^a-z]/,_=t=>A.test(t),v=t=>t.startsWith("onUpdate:"),x=Object.assign,C=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},b=Object.prototype.hasOwnProperty,w=(t,e)=>b.call(t,e),P=Array.isArray,T=t=>"[object Map]"===M(t),k=t=>"[object Set]"===M(t),E=t=>"function"==typeof t,S=t=>"string"==typeof t,I=t=>null!==t&&"object"==typeof t,N=t=>I(t)&&E(t.then)&&E(t.catch),B=Object.prototype.toString,M=t=>B.call(t),O=t=>"[object Object]"===M(t),D=s(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),F=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},z=/-(\w)/g,R=F((t=>t.replace(z,((t,e)=>e?e.toUpperCase():"")))),j=/\B([A-Z])/g,U=F((t=>t.replace(j,"-$1").toLowerCase())),Z=F((t=>t.charAt(0).toUpperCase()+t.slice(1))),H=F((t=>t?`on${Z(t)}`:"")),V=(t,e)=>!Object.is(t,e),q=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},G=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},W=t=>{const e=parseFloat(t);return isNaN(e)?t:e};function $(t,e){const n=Object.create(null),i=t.split(",");for(let t=0;t<i.length;t++)n[i[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const K=()=>{},J=Object.assign,Y=Object.prototype.hasOwnProperty,X=(t,e)=>Y.call(t,e),Q=Array.isArray,tt=t=>"[object Map]"===ot(t),et=t=>"function"==typeof t,nt=t=>"string"==typeof t,it=t=>"symbol"==typeof t,st=t=>null!==t&&"object"==typeof t,rt=Object.prototype.toString,ot=t=>rt.call(t),at=t=>ot(t).slice(8,-1),lt=t=>nt(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ct=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ht=/-(\w)/g,pt=(ct((t=>t.replace(ht,((t,e)=>e?e.toUpperCase():"")))),/\B([A-Z])/g),ut=(ct((t=>t.replace(pt,"-$1").toLowerCase())),ct((t=>t.charAt(0).toUpperCase()+t.slice(1)))),dt=(ct((t=>t?`on${ut(t)}`:"")),(t,e)=>!Object.is(t,e)),ft=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})};let mt;const gt=[];class yt{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&mt&&(this.parent=mt,this.index=(mt.scopes||(mt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}else 0}on(){this.active&&(gt.push(this),mt=this)}off(){this.active&&(gt.pop(),mt=gt[gt.length-1])}stop(t){if(this.active){if(this.effects.forEach((t=>t.stop())),this.cleanups.forEach((t=>t())),this.scopes&&this.scopes.forEach((t=>t.stop(!0))),this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function At(t){return new yt(t)}function _t(t,e){(e=e||mt)&&e.active&&e.effects.push(t)}function vt(){return mt}function xt(t){mt&&mt.cleanups.push(t)}const Ct=t=>{const e=new Set(t);return e.w=0,e.n=0,e},bt=t=>(t.w&kt)>0,wt=t=>(t.n&kt)>0,Pt=new WeakMap;let Tt=0,kt=1;const Et=30,St=[];let Lt;const It=Symbol(""),Nt=Symbol("");class Bt{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],_t(this,n)}run(){if(!this.active)return this.fn();if(!St.includes(this))try{return St.push(Lt=this),zt.push(Ft),Ft=!0,kt=1<<++Tt,Tt<=Et?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=kt})(this):Mt(this),this.fn()}finally{Tt<=Et&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i<e.length;i++){const s=e[i];bt(s)&&!wt(s)?s.delete(t):e[n++]=s,s.w&=~kt,s.n&=~kt}e.length=n}})(this),kt=1<<--Tt,jt(),St.pop();const t=St.length;Lt=t>0?St[t-1]:void 0}}stop(){this.active&&(Mt(this),this.onStop&&this.onStop(),this.active=!1)}}function Mt(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}function Ot(t,e){t.effect&&(t=t.effect.fn);const n=new Bt(t);e&&(J(n,e),e.scope&&_t(n,e.scope)),e&&e.lazy||n.run();const i=n.run.bind(n);return i.effect=n,i}function Dt(t){t.effect.stop()}let Ft=!0;const zt=[];function Rt(){zt.push(Ft),Ft=!1}function jt(){const t=zt.pop();Ft=void 0===t||t}function Ut(t,e,n){if(!Zt())return;let i=Pt.get(t);i||Pt.set(t,i=new Map);let s=i.get(n);s||i.set(n,s=Ct());Ht(s,undefined)}function Zt(){return Ft&&void 0!==Lt}function Ht(t,e){let n=!1;Tt<=Et?wt(t)||(t.n|=kt,n=!bt(t)):n=!t.has(Lt),n&&(t.add(Lt),Lt.deps.push(t))}function Vt(t,e,n,i,s,r){const o=Pt.get(t);if(!o)return;let a=[];if("clear"===e)a=[...o.values()];else if("length"===n&&Q(t))o.forEach(((t,e)=>{("length"===e||e>=i)&&a.push(t)}));else switch(void 0!==n&&a.push(o.get(n)),e){case"add":Q(t)?lt(n)&&a.push(o.get("length")):(a.push(o.get(It)),tt(t)&&a.push(o.get(Nt)));break;case"delete":Q(t)||(a.push(o.get(It)),tt(t)&&a.push(o.get(Nt)));break;case"set":tt(t)&&a.push(o.get(It))}if(1===a.length)a[0]&&qt(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);qt(Ct(t))}}function qt(t,e){for(const e of Q(t)?t:[...t])(e!==Lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Gt=$("__proto__,__v_isRef,__isVue"),Wt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(it)),$t=te(),Kt=te(!1,!0),Jt=te(!0),Yt=te(!0,!0),Xt=Qt();function Qt(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Ze(this);for(let t=0,e=this.length;t<e;t++)Ut(n,0,t+"");const i=n[e](...t);return-1===i||!1===i?n[e](...t.map(Ze)):i}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){Rt();const n=Ze(this)[e].apply(this,t);return jt(),n}})),t}function te(t=!1,e=!1){return function(n,i,s){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_raw"===i&&s===(t?e?Be:Ne:e?Ie:Le).get(n))return n;const r=Q(n);if(!t&&r&&X(Xt,i))return Reflect.get(Xt,i,s);const o=Reflect.get(n,i,s);if(it(i)?Wt.has(i):Gt(i))return o;if(t||Ut(n,0,i),e)return o;if(We(o)){return!r||!lt(i)?o.value:o}return st(o)?t?De(o):Me(o):o}}function ee(t=!1){return function(e,n,i,s){let r=e[n];if(!t&&(i=Ze(i),r=Ze(r),!Q(e)&&We(r)&&!We(i)))return r.value=i,!0;const o=Q(e)&<(n)?Number(n)<e.length:X(e,n),a=Reflect.set(e,n,i,s);return e===Ze(s)&&(o?dt(i,r)&&Vt(e,"set",n,i):Vt(e,"add",n,i)),a}}const ne={get:$t,set:ee(),deleteProperty:function(t,e){const n=X(t,e),i=(t[e],Reflect.deleteProperty(t,e));return i&&n&&Vt(t,"delete",e,void 0),i},has:function(t,e){const n=Reflect.has(t,e);return it(e)&&Wt.has(e)||Ut(t,0,e),n},ownKeys:function(t){return Ut(t,0,Q(t)?"length":It),Reflect.ownKeys(t)}},ie={get:Jt,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},se=J({},ne,{get:Kt,set:ee(!0)}),re=J({},ie,{get:Yt}),oe=t=>st(t)?Me(t):t,ae=t=>st(t)?De(t):t,le=t=>t,ce=t=>Reflect.getPrototypeOf(t);function he(t,e,n=!1,i=!1){const s=Ze(t=t.__v_raw),r=Ze(e);e!==r&&!n&&Ut(s,0,e),!n&&Ut(s,0,r);const{has:o}=ce(s),a=i?le:n?ae:oe;return o.call(s,e)?a(t.get(e)):o.call(s,r)?a(t.get(r)):void(t!==s&&t.get(e))}function pe(t,e=!1){const n=this.__v_raw,i=Ze(n),s=Ze(t);return t!==s&&!e&&Ut(i,0,t),!e&&Ut(i,0,s),t===s?n.has(t):n.has(t)||n.has(s)}function ue(t,e=!1){return t=t.__v_raw,!e&&Ut(Ze(t),0,It),Reflect.get(t,"size",t)}function de(t){t=Ze(t);const e=Ze(this);return ce(e).has.call(e,t)||(e.add(t),Vt(e,"add",t,t)),this}function fe(t,e){e=Ze(e);const n=Ze(this),{has:i,get:s}=ce(n);let r=i.call(n,t);r||(t=Ze(t),r=i.call(n,t));const o=s.call(n,t);return n.set(t,e),r?dt(e,o)&&Vt(n,"set",t,e):Vt(n,"add",t,e),this}function me(t){const e=Ze(this),{has:n,get:i}=ce(e);let s=n.call(e,t);s||(t=Ze(t),s=n.call(e,t));i&&i.call(e,t);const r=e.delete(t);return s&&Vt(e,"delete",t,void 0),r}function ge(){const t=Ze(this),e=0!==t.size,n=t.clear();return e&&Vt(t,"clear",void 0,void 0),n}function ye(t,e){return function(n,i){const s=this,r=s.__v_raw,o=Ze(r),a=e?le:t?ae:oe;return!t&&Ut(o,0,It),r.forEach(((t,e)=>n.call(i,a(t),a(e),s)))}}function Ae(t,e,n){return function(...i){const s=this.__v_raw,r=Ze(s),o=tt(r),a="entries"===t||t===Symbol.iterator&&o,l="keys"===t&&o,c=s[t](...i),h=n?le:e?ae:oe;return!e&&Ut(r,0,l?Nt:It),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:a?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function _e(t){return function(...e){return"delete"!==t&&this}}function ve(){const t={get(t){return he(this,t)},get size(){return ue(this)},has:pe,add:de,set:fe,delete:me,clear:ge,forEach:ye(!1,!1)},e={get(t){return he(this,t,!1,!0)},get size(){return ue(this)},has:pe,add:de,set:fe,delete:me,clear:ge,forEach:ye(!1,!0)},n={get(t){return he(this,t,!0)},get size(){return ue(this,!0)},has(t){return pe.call(this,t,!0)},add:_e("add"),set:_e("set"),delete:_e("delete"),clear:_e("clear"),forEach:ye(!0,!1)},i={get(t){return he(this,t,!0,!0)},get size(){return ue(this,!0)},has(t){return pe.call(this,t,!0)},add:_e("add"),set:_e("set"),delete:_e("delete"),clear:_e("clear"),forEach:ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((s=>{t[s]=Ae(s,!1,!1),n[s]=Ae(s,!0,!1),e[s]=Ae(s,!1,!0),i[s]=Ae(s,!0,!0)})),[t,n,e,i]}const[xe,Ce,be,we]=ve();function Pe(t,e){const n=e?t?we:be:t?Ce:xe;return(e,i,s)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(X(n,i)&&i in e?n:e,i,s)}const Te={get:Pe(!1,!1)},ke={get:Pe(!1,!0)},Ee={get:Pe(!0,!1)},Se={get:Pe(!0,!0)};const Le=new WeakMap,Ie=new WeakMap,Ne=new WeakMap,Be=new WeakMap;function Me(t){return t&&t.__v_isReadonly?t:ze(t,!1,ne,Te,Le)}function Oe(t){return ze(t,!1,se,ke,Ie)}function De(t){return ze(t,!0,ie,Ee,Ne)}function Fe(t){return ze(t,!0,re,Se,Be)}function ze(t,e,n,i,s){if(!st(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=s.get(t);if(r)return r;const o=(a=t).__v_skip||!Object.isExtensible(a)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(at(a));var a;if(0===o)return t;const l=new Proxy(t,2===o?i:n);return s.set(t,l),l}function Re(t){return je(t)?Re(t.__v_raw):!(!t||!t.__v_isReactive)}function je(t){return!(!t||!t.__v_isReadonly)}function Ue(t){return Re(t)||je(t)}function Ze(t){const e=t&&t.__v_raw;return e?Ze(e):t}function He(t){return ft(t,"__v_skip",!0),t}function Ve(t){Zt()&&((t=Ze(t)).dep||(t.dep=Ct()),Ht(t.dep))}function qe(t,e){(t=Ze(t)).dep&&qt(t.dep)}const Ge=t=>st(t)?Me(t):t;function We(t){return Boolean(t&&!0===t.__v_isRef)}function $e(t){return Ye(t,!1)}function Ke(t){return Ye(t,!0)}class Je{constructor(t,e){this._shallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Ze(t),this._value=e?t:Ge(t)}get value(){return Ve(this),this._value}set value(t){t=this._shallow?t:Ze(t),dt(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Ge(t),qe(this))}}function Ye(t,e){return We(t)?t:new Je(t,e)}function Xe(t){qe(t)}function Qe(t){return We(t)?t.value:t}const tn={get:(t,e,n)=>Qe(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return We(s)&&!We(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function en(t){return Re(t)?t:new Proxy(t,tn)}class nn{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Ve(this)),(()=>qe(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function sn(t){return new nn(t)}function rn(t){const e=Q(t)?new Array(t.length):{};for(const n in t)e[n]=an(t,n);return e}class on{constructor(t,e){this._object=t,this._key=e,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}function an(t,e){const n=t[e];return We(n)?n:new on(t,e)}class ln{constructor(t,e,n){this._setter=e,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Bt(t,(()=>{this._dirty||(this._dirty=!0,qe(this))})),this.__v_isReadonly=n}get value(){const t=Ze(this);return Ve(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function cn(t,e){let n,i;const s=et(t);s?(n=t,i=K):(n=t.get,i=t.set);return new ln(n,i,s||!i)}Promise.resolve();new Set;new Map;let hn;function pn(t){hn=t}function un(t,e,...n){const i=t.vnode.props||f;let s=n;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in i){const t=`${"modelValue"===o?"model":o}Modifiers`,{number:e,trim:r}=i[t]||f;r?s=n.map((t=>t.trim())):e&&(s=n.map(W))}let a;let l=i[a=H(e)]||i[a=H(R(e))];!l&&r&&(l=i[a=H(U(e))]),l&&Ir(l,t,6,s);const c=i[a+"Once"];if(c){if(t.emitted){if(t.emitted[a])return}else t.emitted={};t.emitted[a]=!0,Ir(c,t,6,s)}}function dn(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(void 0!==s)return s;const r=t.emits;let o={},a=!1;if(!E(t)){const i=t=>{const n=dn(t,e,!0);n&&(a=!0,x(o,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return r||a?(P(r)?r.forEach((t=>o[t]=null)):x(o,r),i.set(t,o),o):(i.set(t,null),null)}function fn(t,e){return!(!t||!_(e))&&(e=e.slice(2).replace(/Once$/,""),w(t,e[0].toLowerCase()+e.slice(1))||w(t,U(e))||w(t,e))}let mn=null,gn=null;function yn(t){const e=mn;return mn=t,gn=t&&t.type.__scopeId||null,e}function An(t){gn=t}function _n(){gn=null}const vn=t=>xn;function xn(t,e=mn,n){if(!e)return t;if(t._n)return t;const i=(...n)=>{i._d&&Ts(-1);const s=yn(e),r=t(...n);return yn(s),i._d&&Ts(1),r};return i._n=!0,i._c=!0,i._d=!0,i}function Cn(t){const{type:e,vnode:n,proxy:i,withProxy:s,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:h,renderCache:p,data:u,setupState:d,ctx:f,inheritAttrs:m}=t;let g,y;const A=yn(t);try{if(4&n.shapeFlag){const t=s||i;g=Vs(h.call(t,t,p,r,d,u,f)),y=l}else{const t=e;0,g=Vs(t.length>1?t(r,{attrs:l,slots:a,emit:c}):t(r,null)),y=e.props?l:wn(l)}}catch(e){vs.length=0,Nr(e,t,1),g=Fs(As)}let _=g;if(y&&!1!==m){const t=Object.keys(y),{shapeFlag:e}=_;t.length&&7&e&&(o&&t.some(v)&&(y=Pn(y,o)),_=js(_,y))}return n.dirs&&(_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,yn(A),g}function bn(t){let e;for(let n=0;n<t.length;n++){const i=t[n];if(!Ls(i))return;if(i.type!==As||"v-if"===i.children){if(e)return;e=i}}return e}const wn=t=>{let e;for(const n in t)("class"===n||"style"===n||_(n))&&((e||(e={}))[n]=t[n]);return e},Pn=(t,e)=>{const n={};for(const i in t)v(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function Tn(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let s=0;s<i.length;s++){const r=i[s];if(e[r]!==t[r]&&!fn(n,r))return!0}return!1}function kn({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const En={name:"Suspense",__isSuspense:!0,process(t,e,n,i,s,r,o,a,l,c){null==t?function(t,e,n,i,s,r,o,a,l){const{p:c,o:{createElement:h}}=l,p=h("div"),u=t.suspense=Ln(t,s,i,e,p,n,r,o,a,l);c(null,u.pendingBranch=t.ssContent,p,null,i,u,r,o),u.deps>0?(Sn(t,"onPending"),Sn(t,"onFallback"),c(null,t.ssFallback,e,n,i,null,r,o),Bn(u,t.ssFallback)):u.resolve()}(e,n,i,s,r,o,a,l,c):function(t,e,n,i,s,r,o,a,{p:l,um:c,o:{createElement:h}}){const p=e.suspense=t.suspense;p.vnode=e,e.el=t.el;const u=e.ssContent,d=e.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=p;if(m)p.pendingBranch=u,Is(u,m)?(l(m,u,p.hiddenContainer,null,s,p,r,o,a),p.deps<=0?p.resolve():g&&(l(f,d,n,i,s,null,r,o,a),Bn(p,d))):(p.pendingId++,y?(p.isHydrating=!1,p.activeBranch=m):c(m,s,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),g?(l(null,u,p.hiddenContainer,null,s,p,r,o,a),p.deps<=0?p.resolve():(l(f,d,n,i,s,null,r,o,a),Bn(p,d))):f&&Is(u,f)?(l(f,u,n,i,s,p,r,o,a),p.resolve(!0)):(l(null,u,p.hiddenContainer,null,s,p,r,o,a),p.deps<=0&&p.resolve()));else if(f&&Is(u,f))l(f,u,n,i,s,p,r,o,a),Bn(p,u);else if(Sn(e,"onPending"),p.pendingBranch=u,p.pendingId++,l(null,u,p.hiddenContainer,null,s,p,r,o,a),p.deps<=0)p.resolve();else{const{timeout:t,pendingId:e}=p;t>0?setTimeout((()=>{p.pendingId===e&&p.fallback(d)}),t):0===t&&p.fallback(d)}}(t,e,n,i,s,o,a,l,c)},hydrate:function(t,e,n,i,s,r,o,a,l){const c=e.suspense=Ln(e,i,n,t.parentNode,document.createElement("div"),null,s,r,o,a,!0),h=l(t,c.pendingBranch=e.ssContent,n,c,r,o);0===c.deps&&c.resolve();return h},create:Ln,normalize:function(t){const{shapeFlag:e,children:n}=t,i=32&e;t.ssContent=In(i?n.default:n),t.ssFallback=i?In(n.fallback):Fs(As)}};function Sn(t,e){const n=t.props&&t.props[e];E(n)&&n()}function Ln(t,e,n,i,s,r,o,a,l,c,h=!1){const{p,m:u,um:d,n:f,o:{parentNode:m,remove:g}}=c,y=W(t.props&&t.props.timeout),A={vnode:t,parent:e,parentComponent:n,isSVG:o,container:i,hiddenContainer:s,anchor:r,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(t=!1){const{vnode:e,activeBranch:n,pendingBranch:i,pendingId:s,effects:r,parentComponent:o,container:a}=A;if(A.isHydrating)A.isHydrating=!1;else if(!t){const t=n&&i.transition&&"out-in"===i.transition.mode;t&&(n.transition.afterLeave=()=>{s===A.pendingId&&u(i,a,e,0)});let{anchor:e}=A;n&&(e=f(n),d(n,o,A,!0)),t||u(i,a,e,0)}Bn(A,i),A.pendingBranch=null,A.isInFallback=!1;let l=A.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...r),c=!0;break}l=l.parent}c||Jr(r),A.effects=[],Sn(e,"onResolve")},fallback(t){if(!A.pendingBranch)return;const{vnode:e,activeBranch:n,parentComponent:i,container:s,isSVG:r}=A;Sn(e,"onFallback");const o=f(n),c=()=>{A.isInFallback&&(p(null,t,s,o,i,null,r,a,l),Bn(A,t))},h=t.transition&&"out-in"===t.transition.mode;h&&(n.transition.afterLeave=c),A.isInFallback=!0,d(n,i,null,!0),h||c()},move(t,e,n){A.activeBranch&&u(A.activeBranch,t,e,n),A.container=t},next:()=>A.activeBranch&&f(A.activeBranch),registerDep(t,e){const n=!!A.pendingBranch;n&&A.deps++;const i=t.vnode.el;t.asyncDep.catch((e=>{Nr(e,t,0)})).then((s=>{if(t.isUnmounted||A.isUnmounted||A.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:r}=t;mr(t,s,!1),i&&(r.el=i);const a=!i&&t.subTree.el;e(t,r,m(i||t.subTree.el),i?null:f(t.subTree),A,o,l),a&&g(a),kn(t,r.el),n&&0==--A.deps&&A.resolve()}))},unmount(t,e){A.isUnmounted=!0,A.activeBranch&&d(A.activeBranch,n,t,e),A.pendingBranch&&d(A.pendingBranch,n,t,e)}};return A}function In(t){let e;if(E(t)){const n=Ps&&t._c;n&&(t._d=!1,Cs()),t=t(),n&&(t._d=!0,e=xs,bs())}if(P(t)){const e=bn(t);0,t=e}return t=Vs(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter((e=>e!==t))),t}function Nn(t,e){e&&e.pendingBranch?P(t)?e.effects.push(...t):e.effects.push(t):Jr(t)}function Bn(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t,s=n.el=e.el;i&&i.subTree===n&&(i.vnode.el=s,kn(i,s))}function Mn(t,e){if(or){let n=or.provides;const i=or.parent&&or.parent.provides;i===n&&(n=or.provides=Object.create(i)),n[t]=e}else 0}function On(t,e,n=!1){const i=or||mn;if(i){const s=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(s&&t in s)return s[t];if(arguments.length>1)return n&&E(e)?e.call(i.proxy):e}else 0}function Dn(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ai((()=>{t.isMounted=!0})),hi((()=>{t.isUnmounting=!0})),t}const Fn=[Function,Array],zn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fn,onEnter:Fn,onAfterEnter:Fn,onEnterCancelled:Fn,onBeforeLeave:Fn,onLeave:Fn,onAfterLeave:Fn,onLeaveCancelled:Fn,onBeforeAppear:Fn,onAppear:Fn,onAfterAppear:Fn,onAppearCancelled:Fn},setup(t,{slots:e}){const n=ar(),i=Dn();let s;return()=>{const r=e.default&&Vn(e.default(),!0);if(!r||!r.length)return;const o=Ze(t),{mode:a}=o;const l=r[0];if(i.isLeaving)return Un(l);const c=Zn(l);if(!c)return Un(l);const h=jn(c,o,i,n);Hn(c,h);const p=n.subTree,u=p&&Zn(p);let d=!1;const{getTransitionKey:f}=c.type;if(f){const t=f();void 0===s?s=t:t!==s&&(s=t,d=!0)}if(u&&u.type!==As&&(!Is(c,u)||d)){const t=jn(u,o,i,n);if(Hn(u,t),"out-in"===a)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,n.update()},Un(l);"in-out"===a&&c.type!==As&&(t.delayLeave=(t,e,n)=>{Rn(i,u)[String(u.key)]=u,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return l}}};function Rn(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function jn(t,e,n,i){const{appear:s,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:h,onBeforeLeave:p,onLeave:u,onAfterLeave:d,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:y,onAppearCancelled:A}=e,_=String(t.key),v=Rn(n,t),x=(t,e)=>{t&&Ir(t,i,9,e)},C={mode:r,persisted:o,beforeEnter(e){let i=a;if(!n.isMounted){if(!s)return;i=m||a}e._leaveCb&&e._leaveCb(!0);const r=v[_];r&&Is(t,r)&&r.el._leaveCb&&r.el._leaveCb(),x(i,[e])},enter(t){let e=l,i=c,r=h;if(!n.isMounted){if(!s)return;e=g||l,i=y||c,r=A||h}let o=!1;const a=t._enterCb=e=>{o||(o=!0,x(e?r:i,[t]),C.delayedLeave&&C.delayedLeave(),t._enterCb=void 0)};e?(e(t,a),e.length<=1&&a()):a()},leave(e,i){const s=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return i();x(p,[e]);let r=!1;const o=e._leaveCb=n=>{r||(r=!0,i(),x(n?f:d,[e]),e._leaveCb=void 0,v[s]===t&&delete v[s])};v[s]=t,u?(u(e,o),u.length<=1&&o()):o()},clone:t=>jn(t,e,n,i)};return C}function Un(t){if(Kn(t))return(t=js(t)).children=null,t}function Zn(t){return Kn(t)?t.children?t.children[0]:void 0:t}function Hn(t,e){6&t.shapeFlag&&t.component?Hn(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Vn(t,e=!1){let n=[],i=0;for(let s=0;s<t.length;s++){const r=t[s];r.type===gs?(128&r.patchFlag&&i++,n=n.concat(Vn(r.children,e))):(e||r.type!==As)&&n.push(r)}if(i>1)for(let t=0;t<n.length;t++)n[t].patchFlag=-2;return n}function qn(t){return E(t)?{setup:t,name:t.name}:t}const Gn=t=>!!t.type.__asyncLoader;function Wn(t){E(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:s=200,timeout:r,suspensible:o=!0,onError:a}=t;let l,c=null,h=0;const p=()=>{let t;return c||(t=c=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise(((e,n)=>{a(t,(()=>e((h++,c=null,p()))),(()=>n(t)),h+1)}));throw t})).then((e=>t!==c&&c?c:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),l=e,e))))};return qn({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return l},setup(){const t=or;if(l)return()=>$n(l,t);const e=e=>{c=null,Nr(e,t,13,!i)};if(o&&t.suspense)return p().then((e=>()=>$n(e,t))).catch((t=>(e(t),()=>i?Fs(i,{error:t}):null)));const a=$e(!1),h=$e(),u=$e(!!s);return s&&setTimeout((()=>{u.value=!1}),s),null!=r&&setTimeout((()=>{if(!a.value&&!h.value){const t=new Error(`Async component timed out after ${r}ms.`);e(t),h.value=t}}),r),p().then((()=>{a.value=!0,t.parent&&Kn(t.parent.vnode)&&Wr(t.parent.update)})).catch((t=>{e(t),h.value=t})),()=>a.value&&l?$n(l,t):h.value&&i?Fs(i,{error:h.value}):n&&!u.value?Fs(n):void 0}})}function $n(t,{vnode:{ref:e,props:n,children:i}}){const s=Fs(t,n,i);return s.ref=e,s}const Kn=t=>t.type.__isKeepAlive,Jn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=ar(),i=n.ctx;if(!i.renderer)return e.default;const s=new Map,r=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:h,o:{createElement:p}}}=i,u=p("div");function d(t){ni(t),h(t,n,a)}function f(t){s.forEach(((e,n)=>{const i=br(e.type);!i||t&&t(i)||m(n)}))}function m(t){const e=s.get(t);o&&e.type===o.type?o&&ni(o):d(e),s.delete(t),r.delete(t)}i.activate=(t,e,n,i,s)=>{const r=t.component;c(t,e,n,0,a),l(r.vnode,t,e,n,r,a,i,t.slotScopeIds,s),Ji((()=>{r.isDeactivated=!1,r.a&&q(r.a);const e=t.props&&t.props.onVnodeMounted;e&&es(e,r.parent,t)}),a)},i.deactivate=t=>{const e=t.component;c(t,u,null,1,a),Ji((()=>{e.da&&q(e.da);const n=t.props&&t.props.onVnodeUnmounted;n&&es(n,e.parent,t),e.isDeactivated=!0}),a)},ro((()=>[t.include,t.exclude]),(([t,e])=>{t&&f((e=>Yn(t,e))),e&&f((t=>!Yn(e,t)))}),{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&s.set(g,ii(n.subTree))};return ai(y),ci(y),hi((()=>{s.forEach((t=>{const{subTree:e,suspense:i}=n,s=ii(e);if(t.type!==s.type)d(t);else{ni(s);const t=s.component.da;t&&Ji(t,i)}}))})),()=>{if(g=null,!e.default)return null;const n=e.default(),i=n[0];if(n.length>1)return o=null,n;if(!(Ls(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return o=null,i;let a=ii(i);const l=a.type,c=br(Gn(a)?a.type.__asyncResolved||{}:l),{include:h,exclude:p,max:u}=t;if(h&&(!c||!Yn(h,c))||p&&c&&Yn(p,c))return o=a,i;const d=null==a.key?l:a.key,f=s.get(d);return a.el&&(a=js(a),128&i.shapeFlag&&(i.ssContent=a)),g=d,f?(a.el=f.el,a.component=f.component,a.transition&&Hn(a,a.transition),a.shapeFlag|=512,r.delete(d),r.add(d)):(r.add(d),u&&r.size>parseInt(u,10)&&m(r.values().next().value)),a.shapeFlag|=256,o=a,i}}};function Yn(t,e){return P(t)?t.some((t=>Yn(t,e))):S(t)?t.split(",").indexOf(e)>-1:!!t.test&&t.test(e)}function Xn(t,e){ti(t,"a",e)}function Qn(t,e){ti(t,"da",e)}function ti(t,e,n=or){const i=t.__wdc||(t.__wdc=()=>{let e=n;for(;e;){if(e.isDeactivated)return;e=e.parent}t()});if(si(e,i,n),n){let t=n.parent;for(;t&&t.parent;)Kn(t.parent.vnode)&&ei(i,e,n,t),t=t.parent}}function ei(t,e,n,i){const s=si(e,t,i,!0);pi((()=>{C(i[e],s)}),n)}function ni(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function ii(t){return 128&t.shapeFlag?t.ssContent:t}function si(t,e,n=or,i=!1){if(n){const s=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Rt(),lr(n);const s=Ir(e,n,t,i);return cr(),jt(),s});return i?s.unshift(r):s.push(r),r}}const ri=t=>(e,n=or)=>(!dr||"sp"===t)&&si(t,e,n),oi=ri("bm"),ai=ri("m"),li=ri("bu"),ci=ri("u"),hi=ri("bum"),pi=ri("um"),ui=ri("sp"),di=ri("rtg"),fi=ri("rtc");function mi(t,e=or){si("ec",t,e)}let gi=!0;function yi(t){const e=vi(t),n=t.proxy,i=t.ctx;gi=!1,e.beforeCreate&&Ai(e.beforeCreate,t,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:c,created:h,beforeMount:p,mounted:u,beforeUpdate:d,updated:f,activated:m,deactivated:y,beforeDestroy:A,beforeUnmount:_,destroyed:v,unmounted:x,render:C,renderTracked:b,renderTriggered:w,errorCaptured:T,serverPrefetch:k,expose:S,inheritAttrs:L,components:N,directives:B,filters:M}=e;if(c&&function(t,e,n=g,i=!1){P(t)&&(t=wi(t));for(const n in t){const s=t[n];let r;r=I(s)?"default"in s?On(s.from||n,s.default,!0):On(s.from||n):On(s),We(r)&&i?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:t=>r.value=t}):e[n]=r}}(c,i,null,t.appContext.config.unwrapInjectedRef),o)for(const t in o){const e=o[t];E(e)&&(i[t]=e.bind(n))}if(s){0;const e=s.call(n,n);0,I(e)&&(t.data=Me(e))}if(gi=!0,r)for(const t in r){const e=r[t];0;const s=cn({get:E(e)?e.bind(n,n):E(e.get)?e.get.bind(n,n):g,set:!E(e)&&E(e.set)?e.set.bind(n):g});Object.defineProperty(i,t,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(a)for(const t in a)_i(a[t],i,n,t);if(l){const t=E(l)?l.call(n):l;Reflect.ownKeys(t).forEach((e=>{Mn(e,t[e])}))}function O(t,e){P(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(h&&Ai(h,t,"c"),O(oi,p),O(ai,u),O(li,d),O(ci,f),O(Xn,m),O(Qn,y),O(mi,T),O(fi,b),O(di,w),O(hi,_),O(pi,x),O(ui,k),P(S))if(S.length){const e=t.exposed||(t.exposed={});S.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});C&&t.render===g&&(t.render=C),null!=L&&(t.inheritAttrs=L),N&&(t.components=N),B&&(t.directives=B)}function Ai(t,e,n){Ir(P(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function _i(t,e,n,i){const s=i.includes(".")?lo(n,i):()=>n[i];if(S(t)){const n=e[t];E(n)&&ro(s,n)}else if(E(t))ro(s,t.bind(n));else if(I(t))if(P(t))t.forEach((t=>_i(t,e,n,i)));else{const i=E(t.handler)?t.handler.bind(n):e[t.handler];E(i)&&ro(s,i,t)}else 0}function vi(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:s.length||n||i?(l={},s.length&&s.forEach((t=>xi(l,t,o,!0))),xi(l,e,o)):l=e,r.set(e,l),l}function xi(t,e,n,i=!1){const{mixins:s,extends:r}=e;r&&xi(t,r,n,!0),s&&s.forEach((e=>xi(t,e,n,!0)));for(const s in e)if(i&&"expose"===s);else{const i=Ci[s]||n&&n[s];t[s]=i?i(t[s],e[s]):e[s]}return t}const Ci={data:bi,props:Ti,emits:Ti,methods:Ti,computed:Ti,beforeCreate:Pi,created:Pi,beforeMount:Pi,mounted:Pi,beforeUpdate:Pi,updated:Pi,beforeDestroy:Pi,beforeUnmount:Pi,destroyed:Pi,unmounted:Pi,activated:Pi,deactivated:Pi,errorCaptured:Pi,serverPrefetch:Pi,components:Ti,directives:Ti,watch:function(t,e){if(!t)return e;if(!e)return t;const n=x(Object.create(null),t);for(const i in e)n[i]=Pi(t[i],e[i]);return n},provide:bi,inject:function(t,e){return Ti(wi(t),wi(e))}};function bi(t,e){return e?t?function(){return x(E(t)?t.call(this,this):t,E(e)?e.call(this,this):e)}:e:t}function wi(t){if(P(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Pi(t,e){return t?[...new Set([].concat(t,e))]:e}function Ti(t,e){return t?x(x(Object.create(null),t),e):e}function ki(t,e,n,i){const[s,r]=t.propsOptions;let o,a=!1;if(e)for(let l in e){if(D(l))continue;const c=e[l];let h;s&&w(s,h=R(l))?r&&r.includes(h)?(o||(o={}))[h]=c:n[h]=c:fn(t.emitsOptions,l)||c!==i[l]&&(i[l]=c,a=!0)}if(r){const e=Ze(n),i=o||f;for(let o=0;o<r.length;o++){const a=r[o];n[a]=Ei(s,e,a,i[a],t,!w(i,a))}}return a}function Ei(t,e,n,i,s,r){const o=t[n];if(null!=o){const t=w(o,"default");if(t&&void 0===i){const t=o.default;if(o.type!==Function&&E(t)){const{propsDefaults:r}=s;n in r?i=r[n]:(lr(s),i=r[n]=t.call(null,e),cr())}else i=t}o[0]&&(r&&!t?i=!1:!o[1]||""!==i&&i!==U(n)||(i=!0))}return i}function Si(t,e,n=!1){const i=e.propsCache,s=i.get(t);if(s)return s;const r=t.props,o={},a=[];let l=!1;if(!E(t)){const i=t=>{l=!0;const[n,i]=Si(t,e,!0);x(o,n),i&&a.push(...i)};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!r&&!l)return i.set(t,m),m;if(P(r))for(let t=0;t<r.length;t++){0;const e=R(r[t]);Li(e)&&(o[e]=f)}else if(r){0;for(const t in r){const e=R(t);if(Li(e)){const n=r[t],i=o[e]=P(n)||E(n)?{type:n}:n;if(i){const t=Bi(Boolean,i.type),n=Bi(String,i.type);i[0]=t>-1,i[1]=n<0||t<n,(t>-1||w(i,"default"))&&a.push(e)}}}}const c=[o,a];return i.set(t,c),c}function Li(t){return"$"!==t[0]}function Ii(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function Ni(t,e){return Ii(t)===Ii(e)}function Bi(t,e){return P(e)?e.findIndex((e=>Ni(e,t))):E(e)&&Ni(e,t)?0:-1}const Mi=t=>"_"===t[0]||"$stable"===t,Oi=t=>P(t)?t.map(Vs):[Vs(t)],Di=(t,e,n)=>{const i=xn(((...t)=>Oi(e(...t))),n);return i._c=!1,i},Fi=(t,e,n)=>{const i=t._ctx;for(const n in t){if(Mi(n))continue;const s=t[n];if(E(s))e[n]=Di(0,s,i);else if(null!=s){0;const t=Oi(s);e[n]=()=>t}}},zi=(t,e)=>{const n=Oi(e);t.slots.default=()=>n},Ri=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=Ze(e),G(e,"_",n)):Fi(e,t.slots={})}else t.slots={},e&&zi(t,e);G(t.slots,Bs,1)},ji=(t,e,n)=>{const{vnode:i,slots:s}=t;let r=!0,o=f;if(32&i.shapeFlag){const t=e._;t?n&&1===t?r=!1:(x(s,e),n||1!==t||delete s._):(r=!e.$stable,Fi(e,s)),o=e}else e&&(zi(t,e),o={default:1});if(r)for(const t in s)Mi(t)||t in o||delete s[t]};function Ui(t,e){if(null===mn)return t;const n=mn.proxy,i=t.dirs||(t.dirs=[]);for(let t=0;t<e.length;t++){let[s,r,o,a=f]=e[t];E(s)&&(s={mounted:s,updated:s}),s.deep&&co(r),i.push({dir:s,instance:n,value:r,oldValue:void 0,arg:o,modifiers:a})}return t}function Zi(t,e,n,i){const s=t.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let l=a.dir[i];l&&(Rt(),Ir(l,n,8,[t.el,a,t,e]),jt())}}function Hi(){return{app:null,config:{isNativeTag:y,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vi=0;function qi(t,e){return function(n,i=null){null==i||I(i)||(i=null);const s=Hi(),r=new Set;let o=!1;const a=s.app={_uid:Vi++,_component:n,_props:i,_container:null,_context:s,_instance:null,version:Eo,get config(){return s.config},set config(t){0},use:(t,...e)=>(r.has(t)||(t&&E(t.install)?(r.add(t),t.install(a,...e)):E(t)&&(r.add(t),t(a,...e))),a),mixin:t=>(s.mixins.includes(t)||s.mixins.push(t),a),component:(t,e)=>e?(s.components[t]=e,a):s.components[t],directive:(t,e)=>e?(s.directives[t]=e,a):s.directives[t],mount(r,l,c){if(!o){const h=Fs(n,i);return h.appContext=s,l&&e?e(h,r):t(h,r,c),o=!0,a._container=r,r.__vue_app__=a,vr(h.component)||h.component.proxy}},unmount(){o&&(t(null,a._container),delete a._container.__vue_app__)},provide:(t,e)=>(s.provides[t]=e,a)};return a}}let Gi=!1;const Wi=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,$i=t=>8===t.nodeType;function Ki(t){const{mt:e,p:n,o:{patchProp:i,nextSibling:s,parentNode:r,remove:o,insert:a,createComment:l}}=t,c=(n,i,o,a,l,m=!1)=>{const g=$i(n)&&"["===n.data,y=()=>d(n,i,o,a,l,g),{type:A,ref:_,shapeFlag:v}=i,x=n.nodeType;i.el=n;let C=null;switch(A){case ys:3!==x?C=y():(n.data!==i.children&&(Gi=!0,n.data=i.children),C=s(n));break;case As:C=8!==x||g?y():s(n);break;case _s:if(1===x){C=n;const t=!i.children.length;for(let e=0;e<i.staticCount;e++)t&&(i.children+=C.outerHTML),e===i.staticCount-1&&(i.anchor=C),C=s(C);return C}C=y();break;case gs:C=g?u(n,i,o,a,l,m):y();break;default:if(1&v)C=1!==x||i.type.toLowerCase()!==n.tagName.toLowerCase()?y():h(n,i,o,a,l,m);else if(6&v){i.slotScopeIds=l;const t=r(n);if(e(i,t,null,o,a,Wi(t),m),C=g?f(n):s(n),Gn(i)){let e;g?(e=Fs(gs),e.anchor=C?C.previousSibling:t.lastChild):e=3===n.nodeType?Us(""):Fs("div"),e.el=n,i.component.subTree=e}}else 64&v?C=8!==x?y():i.type.hydrate(n,i,o,a,l,m,t,p):128&v&&(C=i.type.hydrate(n,i,o,a,Wi(r(n)),l,m,t,c))}return null!=_&&ts(_,null,a,i),C},h=(t,e,n,s,r,a)=>{a=a||!!e.dynamicChildren;const{type:l,props:c,patchFlag:h,shapeFlag:u,dirs:d}=e,f="input"===l&&d||"option"===l;if(f||-1!==h){if(d&&Zi(e,null,n,"created"),c)if(f||!a||48&h)for(const e in c)(f&&e.endsWith("value")||_(e)&&!D(e))&&i(t,e,null,c[e],!1,void 0,n);else c.onClick&&i(t,"onClick",null,c.onClick,!1,void 0,n);let l;if((l=c&&c.onVnodeBeforeMount)&&es(l,n,e),d&&Zi(e,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||d)&&Nn((()=>{l&&es(l,n,e),d&&Zi(e,null,n,"mounted")}),s),16&u&&(!c||!c.innerHTML&&!c.textContent)){let i=p(t.firstChild,e,t,n,s,r,a);for(;i;){Gi=!0;const t=i;i=i.nextSibling,o(t)}}else 8&u&&t.textContent!==e.children&&(Gi=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,i,s,r,o,a)=>{a=a||!!e.dynamicChildren;const l=e.children,h=l.length;for(let e=0;e<h;e++){const h=a?l[e]:l[e]=Vs(l[e]);if(t)t=c(t,h,s,r,o,a);else{if(h.type===ys&&!h.children)continue;Gi=!0,n(null,h,i,null,s,r,Wi(i),o)}}return t},u=(t,e,n,i,o,c)=>{const{slotScopeIds:h}=e;h&&(o=o?o.concat(h):h);const u=r(t),d=p(s(t),e,u,n,i,o,c);return d&&$i(d)&&"]"===d.data?s(e.anchor=d):(Gi=!0,a(e.anchor=l("]"),u,d),d)},d=(t,e,i,a,l,c)=>{if(Gi=!0,e.el=null,c){const e=f(t);for(;;){const n=s(t);if(!n||n===e)break;o(n)}}const h=s(t),p=r(t);return o(t),n(null,e,p,h,i,a,Wi(p),l),h},f=t=>{let e=0;for(;t;)if((t=s(t))&&$i(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return s(t);e--}return t};return[(t,e)=>{if(!e.hasChildNodes())return n(null,t,e),void Xr();Gi=!1,c(e.firstChild,t,null,null,null),Xr(),Gi&&console.error("Hydration completed but contains mismatches.")},c]}const Ji=Nn;function Yi(t){return Qi(t)}function Xi(t){return Qi(t,Ki)}function Qi(t,e){const{insert:n,remove:i,patchProp:s,createElement:r,createText:o,createComment:a,setText:l,setElementText:c,parentNode:h,nextSibling:p,setScopeId:u=g,cloneNode:d,insertStaticContent:y}=t,A=(t,e,n,i=null,s=null,r=null,o=!1,a=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!Is(t,e)&&(i=J(t),V(t,s,r,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:c,ref:h,shapeFlag:p}=e;switch(c){case ys:_(t,e,n,i);break;case As:v(t,e,n,i);break;case _s:null==t&&x(e,n,i,o);break;case gs:I(t,e,n,i,s,r,o,a,l);break;default:1&p?b(t,e,n,i,s,r,o,a,l):6&p?N(t,e,n,i,s,r,o,a,l):(64&p||128&p)&&c.process(t,e,n,i,s,r,o,a,l,X)}null!=h&&s&&ts(h,t&&t.ref,r,e||t,!e)},_=(t,e,i,s)=>{if(null==t)n(e.el=o(e.children),i,s);else{const n=e.el=t.el;e.children!==t.children&&l(n,e.children)}},v=(t,e,i,s)=>{null==t?n(e.el=a(e.children||""),i,s):e.el=t.el},x=(t,e,n,i)=>{[t.el,t.anchor]=y(t.children,e,n,i)},C=({el:t,anchor:e})=>{let n;for(;t&&t!==e;)n=p(t),i(t),t=n;i(e)},b=(t,e,n,i,s,r,o,a,l)=>{o=o||"svg"===e.type,null==t?P(e,n,i,s,r,o,a,l):E(t,e,s,r,o,a,l)},P=(t,e,i,o,a,l,h,p)=>{let u,f;const{type:m,props:g,shapeFlag:y,transition:A,patchFlag:_,dirs:v}=t;if(t.el&&void 0!==d&&-1===_)u=t.el=d(t.el);else{if(u=t.el=r(t.type,l,g&&g.is,g),8&y?c(u,t.children):16&y&&k(t.children,u,null,o,a,l&&"foreignObject"!==m,h,p),v&&Zi(t,null,o,"created"),g){for(const e in g)"value"===e||D(e)||s(u,e,null,g[e],l,t.children,o,a,K);"value"in g&&s(u,"value",null,g.value),(f=g.onVnodeBeforeMount)&&es(f,o,t)}T(u,t,t.scopeId,h,o)}v&&Zi(t,null,o,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&A&&!A.persisted;x&&A.beforeEnter(u),n(u,e,i),((f=g&&g.onVnodeMounted)||x||v)&&Ji((()=>{f&&es(f,o,t),x&&A.enter(u),v&&Zi(t,null,o,"mounted")}),a)},T=(t,e,n,i,s)=>{if(n&&u(t,n),i)for(let e=0;e<i.length;e++)u(t,i[e]);if(s){if(e===s.subTree){const e=s.vnode;T(t,e,e.scopeId,e.slotScopeIds,s.parent)}}},k=(t,e,n,i,s,r,o,a,l=0)=>{for(let c=l;c<t.length;c++){const l=t[c]=a?qs(t[c]):Vs(t[c]);A(null,l,e,n,i,s,r,o,a)}},E=(t,e,n,i,r,o,a)=>{const l=e.el=t.el;let{patchFlag:h,dynamicChildren:p,dirs:u}=e;h|=16&t.patchFlag;const d=t.props||f,m=e.props||f;let g;(g=m.onVnodeBeforeUpdate)&&es(g,n,e,t),u&&Zi(e,t,n,"beforeUpdate");const y=r&&"foreignObject"!==e.type;if(p?S(t.dynamicChildren,p,l,n,i,y,o):a||z(t,e,l,null,n,i,y,o,!1),h>0){if(16&h)L(l,e,d,m,n,i,r);else if(2&h&&d.class!==m.class&&s(l,"class",null,m.class,r),4&h&&s(l,"style",d.style,m.style,r),8&h){const o=e.dynamicProps;for(let e=0;e<o.length;e++){const a=o[e],c=d[a],h=m[a];h===c&&"value"!==a||s(l,a,c,h,r,t.children,n,i,K)}}1&h&&t.children!==e.children&&c(l,e.children)}else a||null!=p||L(l,e,d,m,n,i,r);((g=m.onVnodeUpdated)||u)&&Ji((()=>{g&&es(g,n,e,t),u&&Zi(e,t,n,"updated")}),i)},S=(t,e,n,i,s,r,o)=>{for(let a=0;a<e.length;a++){const l=t[a],c=e[a],p=l.el&&(l.type===gs||!Is(l,c)||70&l.shapeFlag)?h(l.el):n;A(l,c,p,null,i,s,r,o,!0)}},L=(t,e,n,i,r,o,a)=>{if(n!==i){for(const l in i){if(D(l))continue;const c=i[l],h=n[l];c!==h&&"value"!==l&&s(t,l,h,c,a,e.children,r,o,K)}if(n!==f)for(const l in n)D(l)||l in i||s(t,l,n[l],null,a,e.children,r,o,K);"value"in i&&s(t,"value",n.value,i.value)}},I=(t,e,i,s,r,a,l,c,h)=>{const p=e.el=t?t.el:o(""),u=e.anchor=t?t.anchor:o("");let{patchFlag:d,dynamicChildren:f,slotScopeIds:m}=e;m&&(c=c?c.concat(m):m),null==t?(n(p,i,s),n(u,i,s),k(e.children,i,u,r,a,l,c,h)):d>0&&64&d&&f&&t.dynamicChildren?(S(t.dynamicChildren,f,i,r,a,l,c),(null!=e.key||r&&e===r.subTree)&&ns(t,e,!0)):z(t,e,i,u,r,a,l,c,h)},N=(t,e,n,i,s,r,o,a,l)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?s.ctx.activate(e,n,i,o,l):B(e,n,i,s,r,o,l):M(t,e,l)},B=(t,e,n,i,s,r,o)=>{const a=t.component=rr(t,i,s);if(Kn(t)&&(a.ctx.renderer=X),fr(a),a.asyncDep){if(s&&s.registerDep(a,O),!t.el){const t=a.subTree=Fs(As);v(null,t,e,n)}}else O(a,t,e,n,s,r,o)},M=(t,e,n)=>{const i=e.component=t.component;if(function(t,e,n){const{props:i,children:s,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!s&&!a||a&&a.$stable)||i!==o&&(i?!o||Tn(i,o,c):!!o);if(1024&l)return!0;if(16&l)return i?Tn(i,o,c):!!o;if(8&l){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(o[n]!==i[n]&&!fn(c,n))return!0}}return!1}(t,e,n)){if(i.asyncDep&&!i.asyncResolved)return void F(i,e,n);i.next=e,function(t){const e=Or.indexOf(t);e>Dr&&Or.splice(e,1)}(i.update),i.update()}else e.component=t.component,e.el=t.el,i.vnode=e},O=(t,e,n,i,s,r,o)=>{const a=new Bt((()=>{if(t.isMounted){let e,{next:n,bu:i,u:l,parent:c,vnode:p}=t,u=n;0,a.allowRecurse=!1,n?(n.el=p.el,F(t,n,o)):n=p,i&&q(i),(e=n.props&&n.props.onVnodeBeforeUpdate)&&es(e,c,n,p),a.allowRecurse=!0;const d=Cn(t);0;const f=t.subTree;t.subTree=d,A(f,d,h(f.el),J(f),t,s,r),n.el=d.el,null===u&&kn(t,d.el),l&&Ji(l,s),(e=n.props&&n.props.onVnodeUpdated)&&Ji((()=>es(e,c,n,p)),s)}else{let o;const{el:l,props:c}=e,{bm:h,m:p,parent:u}=t,d=Gn(e);if(a.allowRecurse=!1,h&&q(h),!d&&(o=c&&c.onVnodeBeforeMount)&&es(o,u,e),a.allowRecurse=!0,l&&tt){const n=()=>{t.subTree=Cn(t),tt(l,t.subTree,t,s,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{0;const o=t.subTree=Cn(t);0,A(null,o,n,i,t,s,r),e.el=o.el}if(p&&Ji(p,s),!d&&(o=c&&c.onVnodeMounted)){const t=e;Ji((()=>es(o,u,t)),s)}256&e.shapeFlag&&t.a&&Ji(t.a,s),t.isMounted=!0,e=n=i=null}}),(()=>Wr(t.update)),t.scope),l=t.update=a.run.bind(a);l.id=t.uid,a.allowRecurse=l.allowRecurse=!0,l()},F=(t,e,n)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,function(t,e,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=t,a=Ze(s),[l]=t.propsOptions;let c=!1;if(!(i||o>0)||16&o){let i;ki(t,e,s,r)&&(c=!0);for(const r in a)e&&(w(e,r)||(i=U(r))!==r&&w(e,i))||(l?!n||void 0===n[r]&&void 0===n[i]||(s[r]=Ei(l,a,r,void 0,t,!0)):delete s[r]);if(r!==a)for(const t in r)e&&w(e,t)||(delete r[t],c=!0)}else if(8&o){const n=t.vnode.dynamicProps;for(let i=0;i<n.length;i++){let o=n[i];const h=e[o];if(l)if(w(r,o))h!==r[o]&&(r[o]=h,c=!0);else{const e=R(o);s[e]=Ei(l,a,e,h,t,!1)}else h!==r[o]&&(r[o]=h,c=!0)}}c&&Vt(t,"set","$attrs")}(t,e.props,i,n),ji(t,e.children,n),Rt(),Yr(void 0,t.update),jt()},z=(t,e,n,i,s,r,o,a,l=!1)=>{const h=t&&t.children,p=t?t.shapeFlag:0,u=e.children,{patchFlag:d,shapeFlag:f}=e;if(d>0){if(128&d)return void Z(h,u,n,i,s,r,o,a,l);if(256&d)return void j(h,u,n,i,s,r,o,a,l)}8&f?(16&p&&K(h,s,r),u!==h&&c(n,u)):16&p?16&f?Z(h,u,n,i,s,r,o,a,l):K(h,s,r,!0):(8&p&&c(n,""),16&f&&k(u,n,i,s,r,o,a,l))},j=(t,e,n,i,s,r,o,a,l)=>{e=e||m;const c=(t=t||m).length,h=e.length,p=Math.min(c,h);let u;for(u=0;u<p;u++){const i=e[u]=l?qs(e[u]):Vs(e[u]);A(t[u],i,n,null,s,r,o,a,l)}c>h?K(t,s,r,!0,!1,p):k(e,n,i,s,r,o,a,l,p)},Z=(t,e,n,i,s,r,o,a,l)=>{let c=0;const h=e.length;let p=t.length-1,u=h-1;for(;c<=p&&c<=u;){const i=t[c],h=e[c]=l?qs(e[c]):Vs(e[c]);if(!Is(i,h))break;A(i,h,n,null,s,r,o,a,l),c++}for(;c<=p&&c<=u;){const i=t[p],c=e[u]=l?qs(e[u]):Vs(e[u]);if(!Is(i,c))break;A(i,c,n,null,s,r,o,a,l),p--,u--}if(c>p){if(c<=u){const t=u+1,p=t<h?e[t].el:i;for(;c<=u;)A(null,e[c]=l?qs(e[c]):Vs(e[c]),n,p,s,r,o,a,l),c++}}else if(c>u)for(;c<=p;)V(t[c],s,r,!0),c++;else{const d=c,f=c,g=new Map;for(c=f;c<=u;c++){const t=e[c]=l?qs(e[c]):Vs(e[c]);null!=t.key&&g.set(t.key,c)}let y,_=0;const v=u-f+1;let x=!1,C=0;const b=new Array(v);for(c=0;c<v;c++)b[c]=0;for(c=d;c<=p;c++){const i=t[c];if(_>=v){V(i,s,r,!0);continue}let h;if(null!=i.key)h=g.get(i.key);else for(y=f;y<=u;y++)if(0===b[y-f]&&Is(i,e[y])){h=y;break}void 0===h?V(i,s,r,!0):(b[h-f]=c+1,h>=C?C=h:x=!0,A(i,e[h],n,null,s,r,o,a,l),_++)}const w=x?function(t){const e=t.slice(),n=[0];let i,s,r,o,a;const l=t.length;for(i=0;i<l;i++){const l=t[i];if(0!==l){if(s=n[n.length-1],t[s]<l){e[i]=s,n.push(i);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,t[n[a]]<l?r=a+1:o=a;l<t[n[r]]&&(r>0&&(e[i]=n[r-1]),n[r]=i)}}r=n.length,o=n[r-1];for(;r-- >0;)n[r]=o,o=e[o];return n}(b):m;for(y=w.length-1,c=v-1;c>=0;c--){const t=f+c,p=e[t],u=t+1<h?e[t+1].el:i;0===b[c]?A(null,p,n,u,s,r,o,a,l):x&&(y<0||c!==w[y]?H(p,n,u,2):y--)}}},H=(t,e,i,s,r=null)=>{const{el:o,type:a,transition:l,children:c,shapeFlag:h}=t;if(6&h)return void H(t.component.subTree,e,i,s);if(128&h)return void t.suspense.move(e,i,s);if(64&h)return void a.move(t,e,i,X);if(a===gs){n(o,e,i);for(let t=0;t<c.length;t++)H(c[t],e,i,s);return void n(t.anchor,e,i)}if(a===_s)return void(({el:t,anchor:e},i,s)=>{let r;for(;t&&t!==e;)r=p(t),n(t,i,s),t=r;n(e,i,s)})(t,e,i);if(2!==s&&1&h&&l)if(0===s)l.beforeEnter(o),n(o,e,i),Ji((()=>l.enter(o)),r);else{const{leave:t,delayLeave:s,afterLeave:r}=l,a=()=>n(o,e,i),c=()=>{t(o,(()=>{a(),r&&r()}))};s?s(o,a,c):c()}else n(o,e,i)},V=(t,e,n,i=!1,s=!1)=>{const{type:r,props:o,ref:a,children:l,dynamicChildren:c,shapeFlag:h,patchFlag:p,dirs:u}=t;if(null!=a&&ts(a,null,n,t,!0),256&h)return void e.ctx.deactivate(t);const d=1&h&&u,f=!Gn(t);let m;if(f&&(m=o&&o.onVnodeBeforeUnmount)&&es(m,e,t),6&h)$(t.component,n,i);else{if(128&h)return void t.suspense.unmount(n,i);d&&Zi(t,null,e,"beforeUnmount"),64&h?t.type.remove(t,e,n,s,X,i):c&&(r!==gs||p>0&&64&p)?K(c,e,n,!1,!0):(r===gs&&384&p||!s&&16&h)&&K(l,e,n),i&&G(t)}(f&&(m=o&&o.onVnodeUnmounted)||d)&&Ji((()=>{m&&es(m,e,t),d&&Zi(t,null,e,"unmounted")}),n)},G=t=>{const{type:e,el:n,anchor:s,transition:r}=t;if(e===gs)return void W(n,s);if(e===_s)return void C(t);const o=()=>{i(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&t.shapeFlag&&r&&!r.persisted){const{leave:e,delayLeave:i}=r,s=()=>e(n,o);i?i(t.el,o,s):s()}else o()},W=(t,e)=>{let n;for(;t!==e;)n=p(t),i(t),t=n;i(e)},$=(t,e,n)=>{const{bum:i,scope:s,update:r,subTree:o,um:a}=t;i&&q(i),s.stop(),r&&(r.active=!1,V(o,t,e,n)),a&&Ji(a,e),Ji((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},K=(t,e,n,i=!1,s=!1,r=0)=>{for(let o=r;o<t.length;o++)V(t[o],e,n,i,s)},J=t=>6&t.shapeFlag?J(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),Y=(t,e,n)=>{null==t?e._vnode&&V(e._vnode,null,null,!0):A(e._vnode||null,t,e,null,null,null,n),Xr(),e._vnode=t},X={p:A,um:V,m:H,r:G,mt:B,mc:k,pc:z,pbc:S,n:J,o:t};let Q,tt;return e&&([Q,tt]=e(X)),{render:Y,hydrate:Q,createApp:qi(Y,Q)}}function ts(t,e,n,i,s=!1){if(P(t))return void t.forEach(((t,r)=>ts(t,e&&(P(e)?e[r]:e),n,i,s)));if(Gn(i)&&!s)return;const r=4&i.shapeFlag?vr(i.component)||i.component.proxy:i.el,o=s?null:r,{i:a,r:l}=t;const c=e&&e.r,h=a.refs===f?a.refs={}:a.refs,p=a.setupState;if(null!=c&&c!==l&&(S(c)?(h[c]=null,w(p,c)&&(p[c]=null)):We(c)&&(c.value=null)),S(l)){const t=()=>{h[l]=o,w(p,l)&&(p[l]=o)};o?(t.id=-1,Ji(t,n)):t()}else if(We(l)){const t=()=>{l.value=o};o?(t.id=-1,Ji(t,n)):t()}else E(l)&&Lr(l,a,12,[o,h])}function es(t,e,n,i=null){Ir(t,e,7,[n,i])}function ns(t,e,n=!1){const i=t.children,s=e.children;if(P(i)&&P(s))for(let t=0;t<i.length;t++){const e=i[t];let r=s[t];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=s[t]=qs(s[t]),r.el=e.el),n||ns(e,r))}}const is=t=>t&&(t.disabled||""===t.disabled),ss=t=>"undefined"!=typeof SVGElement&&t instanceof SVGElement,rs=(t,e)=>{const n=t&&t.to;if(S(n)){if(e){const t=e(n);return t}return null}return n};function os(t,e,n,{o:{insert:i},m:s},r=2){0===r&&i(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:l,children:c,props:h}=t,p=2===r;if(p&&i(o,e,n),(!p||is(h))&&16&l)for(let t=0;t<c.length;t++)s(c[t],e,n,2);p&&i(a,e,n)}const as={__isTeleport:!0,process(t,e,n,i,s,r,o,a,l,c){const{mc:h,pc:p,pbc:u,o:{insert:d,querySelector:f,createText:m,createComment:g}}=c,y=is(e.props);let{shapeFlag:A,children:_,dynamicChildren:v}=e;if(null==t){const t=e.el=m(""),c=e.anchor=m("");d(t,n,i),d(c,n,i);const p=e.target=rs(e.props,f),u=e.targetAnchor=m("");p&&(d(u,p),o=o||ss(p));const g=(t,e)=>{16&A&&h(_,t,e,s,r,o,a,l)};y?g(n,c):p&&g(p,u)}else{e.el=t.el;const i=e.anchor=t.anchor,h=e.target=t.target,d=e.targetAnchor=t.targetAnchor,m=is(t.props),g=m?n:h,A=m?i:d;if(o=o||ss(h),v?(u(t.dynamicChildren,v,g,s,r,o,a),ns(t,e,!0)):l||p(t,e,g,A,s,r,o,a,!1),y)m||os(e,n,i,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=rs(e.props,f);t&&os(e,t,null,c,0)}else m&&os(e,h,d,c,1)}},remove(t,e,n,i,{um:s,o:{remove:r}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:h,target:p,props:u}=t;if(p&&r(h),(o||!is(u))&&(r(c),16&a))for(let t=0;t<l.length;t++){const i=l[t];s(i,e,n,!0,!!i.dynamicChildren)}},move:os,hydrate:function(t,e,n,i,s,r,{o:{nextSibling:o,parentNode:a,querySelector:l}},c){const h=e.target=rs(e.props,l);if(h){const l=h._lpa||h.firstChild;16&e.shapeFlag&&(is(e.props)?(e.anchor=c(o(t),e,a(t),n,i,s,r),e.targetAnchor=l):(e.anchor=o(t),e.targetAnchor=c(l,e,h,n,i,s,r)),h._lpa=e.targetAnchor&&o(e.targetAnchor))}return e.anchor&&o(e.anchor)}},ls="components",cs="directives";function hs(t,e){return fs(ls,t,!0,e)||t}const ps=Symbol();function us(t){return S(t)?fs(ls,t,!1)||t:t||ps}function ds(t){return fs(cs,t)}function fs(t,e,n=!0,i=!1){const s=mn||or;if(s){const n=s.type;if(t===ls){const t=br(n);if(t&&(t===e||t===R(e)||t===Z(R(e))))return n}const r=ms(s[t]||n[t],e)||ms(s.appContext[t],e);return!r&&i?n:r}}function ms(t,e){return t&&(t[e]||t[R(e)]||t[Z(R(e))])}const gs=Symbol(void 0),ys=Symbol(void 0),As=Symbol(void 0),_s=Symbol(void 0),vs=[];let xs=null;function Cs(t=!1){vs.push(xs=t?null:[])}function bs(){vs.pop(),xs=vs[vs.length-1]||null}let ws,Ps=1;function Ts(t){Ps+=t}function ks(t){return t.dynamicChildren=Ps>0?xs||m:null,bs(),Ps>0&&xs&&xs.push(t),t}function Es(t,e,n,i,s,r){return ks(Ds(t,e,n,i,s,r,!0))}function Ss(t,e,n,i,s){return ks(Fs(t,e,n,i,s,!0))}function Ls(t){return!!t&&!0===t.__v_isVNode}function Is(t,e){return t.type===e.type&&t.key===e.key}function Ns(t){ws=t}const Bs="__vInternal",Ms=({key:t})=>null!=t?t:null,Os=({ref:t})=>null!=t?S(t)||We(t)||E(t)?{i:mn,r:t}:t:null;function Ds(t,e=null,n=null,i=0,s=null,r=(t===gs?0:1),o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ms(e),ref:e&&Os(e),scopeId:gn,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:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null};return a?(Gs(l,n),128&r&&t.normalize(l)):n&&(l.shapeFlag|=S(n)?8:16),Ps>0&&!o&&xs&&(l.patchFlag>0||6&r)&&32!==l.patchFlag&&xs.push(l),l}const Fs=zs;function zs(t,e=null,n=null,i=0,s=null,r=!1){if(t&&t!==ps||(t=As),Ls(t)){const i=js(t,e,!0);return n&&Gs(i,n),i}if(Pr(t)&&(t=t.__vccOpts),e){e=Rs(e);let{class:t,style:n}=e;t&&!S(t)&&(e.class=h(t)),I(n)&&(Ue(n)&&!P(n)&&(n=x({},n)),e.style=o(n))}return Ds(t,e,n,i,s,S(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:I(t)?4:E(t)?2:0,r,!0)}function Rs(t){return t?Ue(t)||Bs in t?x({},t):t:null}function js(t,e,n=!1){const{props:i,ref:s,patchFlag:r,children:o}=t,a=e?Ws(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Ms(a),ref:e&&e.ref?n&&s?P(s)?s.concat(Os(e)):[s,Os(e)]:Os(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==gs?-1===r?16:16|r:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&js(t.ssContent),ssFallback:t.ssFallback&&js(t.ssFallback),el:t.el,anchor:t.anchor}}function Us(t=" ",e=0){return Fs(ys,null,t,e)}function Zs(t,e){const n=Fs(_s,null,t);return n.staticCount=e,n}function Hs(t="",e=!1){return e?(Cs(),Ss(As,null,t)):Fs(As,null,t)}function Vs(t){return null==t||"boolean"==typeof t?Fs(As):P(t)?Fs(gs,null,t.slice()):"object"==typeof t?qs(t):Fs(ys,null,String(t))}function qs(t){return null===t.el||t.memo?t:js(t)}function Gs(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if(P(e))n=16;else if("object"==typeof e){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),Gs(t,n()),n._c&&(n._d=!0)))}{n=32;const i=e._;i||Bs in e?3===i&&mn&&(1===mn.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=mn}}else E(e)?(e={default:e,_ctx:mn},n=32):(e=String(e),64&i?(n=16,e=[Us(e)]):n=8);t.children=e,t.shapeFlag|=n}function Ws(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const t in i)if("class"===t)e.class!==i.class&&(e.class=h([e.class,i.class]));else if("style"===t)e.style=o([e.style,i.style]);else if(_(t)){const n=e[t],s=i[t];n!==s&&(e[t]=n?[].concat(n,s):s)}else""!==t&&(e[t]=i[t])}return e}function $s(t,e,n,i){let s;const r=n&&n[i];if(P(t)||S(t)){s=new Array(t.length);for(let n=0,i=t.length;n<i;n++)s[n]=e(t[n],n,void 0,r&&r[n])}else if("number"==typeof t){0,s=new Array(t);for(let n=0;n<t;n++)s[n]=e(n+1,n,void 0,r&&r[n])}else if(I(t))if(t[Symbol.iterator])s=Array.from(t,((t,n)=>e(t,n,void 0,r&&r[n])));else{const n=Object.keys(t);s=new Array(n.length);for(let i=0,o=n.length;i<o;i++){const o=n[i];s[i]=e(t[o],o,i,r&&r[i])}}else s=[];return n&&(n[i]=s),s}function Ks(t,e){for(let n=0;n<e.length;n++){const i=e[n];if(P(i))for(let e=0;e<i.length;e++)t[i[e].name]=i[e].fn;else i&&(t[i.name]=i.fn)}return t}function Js(t,e,n={},i,s){if(mn.isCE)return Fs("slot","default"===e?null:{name:e},i&&i());let r=t[e];r&&r._c&&(r._d=!1),Cs();const o=r&&Ys(r(n)),a=Ss(gs,{key:n.key||`_${e}`},o||(i?i():[]),o&&1===t._?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Ys(t){return t.some((t=>!Ls(t)||t.type!==As&&!(t.type===gs&&!Ys(t.children))))?t:null}function Xs(t){const e={};for(const n in t)e[H(n)]=t[n];return e}const Qs=t=>t?hr(t)?vr(t)||t.proxy:Qs(t.parent):null,tr=x(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=>Qs(t.parent),$root:t=>Qs(t.root),$emit:t=>t.emit,$options:t=>vi(t),$forceUpdate:t=>()=>Wr(t.update),$nextTick:t=>Gr.bind(t.proxy),$watch:t=>ao.bind(t)}),er={get({_:t},e){const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=t;let c;if("$"!==e[0]){const a=o[e];if(void 0!==a)switch(a){case 0:return i[e];case 1:return s[e];case 3:return n[e];case 2:return r[e]}else{if(i!==f&&w(i,e))return o[e]=0,i[e];if(s!==f&&w(s,e))return o[e]=1,s[e];if((c=t.propsOptions[0])&&w(c,e))return o[e]=2,r[e];if(n!==f&&w(n,e))return o[e]=3,n[e];gi&&(o[e]=4)}}const h=tr[e];let p,u;return h?("$attrs"===e&&Ut(t,0,e),h(t)):(p=a.__cssModules)&&(p=p[e])?p:n!==f&&w(n,e)?(o[e]=3,n[e]):(u=l.config.globalProperties,w(u,e)?u[e]:void 0)},set({_:t},e,n){const{data:i,setupState:s,ctx:r}=t;if(s!==f&&w(s,e))s[e]=n;else if(i!==f&&w(i,e))i[e]=n;else if(w(t.props,e))return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let a;return void 0!==n[o]||t!==f&&w(t,o)||e!==f&&w(e,o)||(a=r[0])&&w(a,o)||w(i,o)||w(tr,o)||w(s.config.globalProperties,o)}};const nr=x({},er,{get(t,e){if(e!==Symbol.unscopables)return er.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!r(e)});const ir=Hi();let sr=0;function rr(t,e,n){const i=t.type,s=(e?e.appContext:t.appContext)||ir,r={uid:sr++,vnode:t,type:i,parent:e,appContext:s,root:null,next:null,subTree:null,update:null,scope:new yt(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Si(i,s),emitsOptions:dn(i,s),emit:null,emitted:null,propsDefaults:f,inheritAttrs:i.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=e?e.root:r,r.emit=un.bind(null,r),t.ce&&t.ce(r),r}let or=null;const ar=()=>or||mn,lr=t=>{or=t,t.scope.on()},cr=()=>{or&&or.scope.off(),or=null};function hr(t){return 4&t.vnode.shapeFlag}let pr,ur,dr=!1;function fr(t,e=!1){dr=e;const{props:n,children:i}=t.vnode,s=hr(t);!function(t,e,n,i=!1){const s={},r={};G(r,Bs,1),t.propsDefaults=Object.create(null),ki(t,e,s,r);for(const e in t.propsOptions[0])e in s||(s[e]=void 0);n?t.props=i?s:Oe(s):t.type.props?t.props=s:t.props=r,t.attrs=r}(t,n,s,e),Ri(t,i);const r=s?function(t,e){const n=t.type;0;t.accessCache=Object.create(null),t.proxy=He(new Proxy(t.ctx,er)),!1;const{setup:i}=n;if(i){const n=t.setupContext=i.length>1?_r(t):null;lr(t),Rt();const s=Lr(i,t,0,[t.props,n]);if(jt(),cr(),N(s)){if(s.then(cr,cr),e)return s.then((n=>{mr(t,n,e)})).catch((e=>{Nr(e,t,0)}));t.asyncDep=s}else mr(t,s,e)}else Ar(t,e)}(t,e):void 0;return dr=!1,r}function mr(t,e,n){E(e)?t.render=e:I(e)&&(t.setupState=en(e)),Ar(t,n)}function gr(t){pr=t,ur=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,nr))}}const yr=()=>!pr;function Ar(t,e,n){const i=t.type;if(!t.render){if(pr&&!i.render){const e=i.template;if(e){0;const{isCustomElement:n,compilerOptions:s}=t.appContext.config,{delimiters:r,compilerOptions:o}=i,a=x(x({isCustomElement:n,delimiters:r},s),o);i.render=pr(e,a)}}t.render=i.render||g,ur&&ur(t)}lr(t),Rt(),yi(t),jt(),cr()}function _r(t){const e=e=>{t.exposed=e||{}};let n;return{get attrs(){return n||(n=function(t){return new Proxy(t.attrs,{get:(e,n)=>(Ut(t,0,"$attrs"),e[n])})}(t))},slots:t.slots,emit:t.emit,expose:e}}function vr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(en(He(t.exposed)),{get:(e,n)=>n in e?e[n]:n in tr?tr[n](t):void 0}))}const xr=/(?:^|[-_])(\w)/g,Cr=t=>t.replace(xr,(t=>t.toUpperCase())).replace(/[-_]/g,"");function br(t){return E(t)&&t.displayName||t.name}function wr(t,e,n=!1){let i=br(e);if(!i&&e.__file){const t=e.__file.match(/([^/\\]+)\.\w+$/);t&&(i=t[1])}if(!i&&t&&t.parent){const n=t=>{for(const n in t)if(t[n]===e)return n};i=n(t.components||t.parent.type.components)||n(t.appContext.components)}return i?Cr(i):n?"App":"Anonymous"}function Pr(t){return E(t)&&"__vccOpts"in t}const Tr=[];function kr(t,...e){Rt();const n=Tr.length?Tr[Tr.length-1].component:null,i=n&&n.appContext.config.warnHandler,s=function(){let t=Tr[Tr.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const i=t.component&&t.component.parent;t=i&&i.vnode}return e}();if(i)Lr(i,n,11,[t+e.join(""),n&&n.proxy,s.map((({vnode:t})=>`at <${wr(n,t.type)}>`)).join("\n"),s]);else{const n=[`[Vue warn]: ${t}`,...e];s.length&&n.push("\n",...function(t){const e=[];return t.forEach(((t,n)=>{e.push(...0===n?[]:["\n"],...function({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",i=!!t.component&&null==t.component.parent,s=` at <${wr(t.component,t.type,i)}`,r=">"+n;return t.props?[s,...Er(t.props),r]:[s+r]}(t))})),e}(s)),console.warn(...n)}jt()}function Er(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach((n=>{e.push(...Sr(n,t[n]))})),n.length>3&&e.push(" ..."),e}function Sr(t,e,n){return S(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):"number"==typeof e||"boolean"==typeof e||null==e?n?e:[`${t}=${e}`]:We(e)?(e=Sr(t,Ze(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):E(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Ze(e),n?e:[`${t}=`,e])}function Lr(t,e,n,i){let s;try{s=i?t(...i):t()}catch(t){Nr(t,e,n)}return s}function Ir(t,e,n,i){if(E(t)){const s=Lr(t,e,n,i);return s&&N(s)&&s.catch((t=>{Nr(t,e,n)})),s}const s=[];for(let r=0;r<t.length;r++)s.push(Ir(t[r],e,n,i));return s}function Nr(t,e,n,i=!0){e&&e.vnode;if(e){let i=e.parent;const s=e.proxy,r=n;for(;i;){const e=i.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,s,r))return;i=i.parent}const o=e.appContext.config.errorHandler;if(o)return void Lr(o,null,10,[t,s,r])}!function(t){console.error(t)}(t,0,0,i)}let Br=!1,Mr=!1;const Or=[];let Dr=0;const Fr=[];let zr=null,Rr=0;const jr=[];let Ur=null,Zr=0;const Hr=Promise.resolve();let Vr=null,qr=null;function Gr(t){const e=Vr||Hr;return t?e.then(this?t.bind(this):t):e}function Wr(t){Or.length&&Or.includes(t,Br&&t.allowRecurse?Dr+1:Dr)||t===qr||(null==t.id?Or.push(t):Or.splice(function(t){let e=Dr+1,n=Or.length;for(;e<n;){const i=e+n>>>1;Qr(Or[i])<t?e=i+1:n=i}return e}(t.id),0,t),$r())}function $r(){Br||Mr||(Mr=!0,Vr=Hr.then(to))}function Kr(t,e,n,i){P(t)?n.push(...t):e&&e.includes(t,t.allowRecurse?i+1:i)||n.push(t),$r()}function Jr(t){Kr(t,Ur,jr,Zr)}function Yr(t,e=null){if(Fr.length){for(qr=e,zr=[...new Set(Fr)],Fr.length=0,Rr=0;Rr<zr.length;Rr++)zr[Rr]();zr=null,Rr=0,qr=null,Yr(t,e)}}function Xr(t){if(jr.length){const t=[...new Set(jr)];if(jr.length=0,Ur)return void Ur.push(...t);for(Ur=t,Ur.sort(((t,e)=>Qr(t)-Qr(e))),Zr=0;Zr<Ur.length;Zr++)Ur[Zr]();Ur=null,Zr=0}}const Qr=t=>null==t.id?1/0:t.id;function to(t){Mr=!1,Br=!0,Yr(t),Or.sort(((t,e)=>Qr(t)-Qr(e)));try{for(Dr=0;Dr<Or.length;Dr++){const t=Or[Dr];t&&!1!==t.active&&Lr(t,null,14)}}finally{Dr=0,Or.length=0,Xr(),Br=!1,Vr=null,(Or.length||Fr.length||jr.length)&&to(t)}}function eo(t,e){return oo(t,null,e)}function no(t,e){return oo(t,null,{flush:"post"})}function io(t,e){return oo(t,null,{flush:"sync"})}const so={};function ro(t,e,n){return oo(t,e,n)}function oo(t,e,{immediate:n,deep:i,flush:s,onTrack:r,onTrigger:o}=f){const a=or;let l,c,h=!1,p=!1;if(We(t)?(l=()=>t.value,h=!!t._shallow):Re(t)?(l=()=>t,i=!0):P(t)?(p=!0,h=t.some(Re),l=()=>t.map((t=>We(t)?t.value:Re(t)?co(t):E(t)?Lr(t,a,2):void 0))):l=E(t)?e?()=>Lr(t,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),Ir(t,a,3,[u])}:g,e&&i){const t=l;l=()=>co(t())}let u=t=>{c=A.onStop=()=>{Lr(t,a,4)}},d=p?[]:so;const m=()=>{if(A.active)if(e){const t=A.run();(i||h||(p?t.some(((t,e)=>V(t,d[e]))):V(t,d)))&&(c&&c(),Ir(e,a,3,[t,d===so?void 0:d,u]),d=t)}else A.run()};let y;m.allowRecurse=!!e,y="sync"===s?m:"post"===s?()=>Ji(m,a&&a.suspense):()=>{!a||a.isMounted?function(t){Kr(t,zr,Fr,Rr)}(m):m()};const A=new Bt(l,y);return e?n?m():d=A.run():"post"===s?Ji(A.run.bind(A),a&&a.suspense):A.run(),()=>{A.stop(),a&&a.scope&&C(a.scope.effects,A)}}function ao(t,e,n){const i=this.proxy,s=S(t)?t.includes(".")?lo(i,t):()=>i[t]:t.bind(i,i);let r;E(e)?r=e:(r=e.handler,n=e);const o=or;lr(this);const a=oo(s,r.bind(i),n);return o?lr(o):cr(),a}function lo(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function co(t,e){if(!I(t)||t.__v_skip)return t;if((e=e||new Set).has(t))return t;if(e.add(t),We(t))co(t.value,e);else if(P(t))for(let n=0;n<t.length;n++)co(t[n],e);else if(k(t)||T(t))t.forEach((t=>{co(t,e)}));else if(O(t))for(const n in t)co(t[n],e);return t}const ho=t=>"function"==typeof t,po=t=>(t=>null!==t&&"object"==typeof t)(t)&&ho(t.then)&&ho(t.catch);function uo(){return null}function fo(){return null}function mo(t){0}function go(t,e){return null}function yo(){return _o().slots}function Ao(){return _o().attrs}function _o(){const t=ar();return t.setupContext||(t.setupContext=_r(t))}function vo(t,e){for(const n in e){const i=t[n];i?i.default=e[n]:null===i&&(t[n]={default:e[n]})}return t}function xo(t){const e=ar();let n=t();return cr(),po(n)&&(n=n.catch((t=>{throw lr(e),t}))),[n,()=>lr(e)]}function Co(t,e,n){const i=arguments.length;return 2===i?I(e)&&!P(e)?Ls(e)?Fs(t,null,[e]):Fs(t,e):Fs(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Ls(n)&&(n=[n]),Fs(t,e,n))}const bo=Symbol(""),wo=()=>{{const t=On(bo);return t||kr("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function Po(){return void 0}function To(t,e,n,i){const s=n[i];if(s&&ko(s,t))return s;const r=e();return r.memo=t.slice(),n[i]=r}function ko(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return Ps>0&&xs&&xs.push(t),!0}const Eo="3.2.13",So={createComponentInstance:rr,setupComponent:fr,renderComponentRoot:Cn,setCurrentRenderingInstance:yn,isVNode:Ls,normalizeVNode:Vs},Lo=null,Io=null;function No(t,e){const n=Object.create(null),i=t.split(",");for(let t=0;t<i.length;t++)n[i[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const Bo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Mo=No(Bo);function Oo(t){return!!t||""===t}function Do(t,e){if(t===e)return!0;let n=Ho(t),i=Ho(e);if(n||i)return!(!n||!i)&&t.getTime()===e.getTime();if(n=Uo(t),i=Uo(e),n||i)return!(!n||!i)&&function(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=Do(t[i],e[i]);return n}(t,e);if(n=Go(t),i=Go(e),n||i){if(!n||!i)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t){const i=t.hasOwnProperty(n),s=e.hasOwnProperty(n);if(i&&!s||!i&&s||!Do(t[n],e[n]))return!1}}return String(t)===String(e)}function Fo(t,e){return t.findIndex((t=>Do(t,e)))}const zo={},Ro=/^on[^a-z]/,jo=Object.assign,Uo=(Object.prototype.hasOwnProperty,Array.isArray),Zo=t=>"[object Set]"===$o(t),Ho=t=>t instanceof Date,Vo=t=>"function"==typeof t,qo=t=>"string"==typeof t,Go=t=>null!==t&&"object"==typeof t,Wo=Object.prototype.toString,$o=t=>Wo.call(t),Ko=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Jo=/-(\w)/g,Yo=Ko((t=>t.replace(Jo,((t,e)=>e?e.toUpperCase():"")))),Xo=/\B([A-Z])/g,Qo=Ko((t=>t.replace(Xo,"-$1").toLowerCase())),ta=Ko((t=>t.charAt(0).toUpperCase()+t.slice(1))),ea=(Ko((t=>t?`on${ta(t)}`:"")),t=>{const e=parseFloat(t);return isNaN(e)?t:e});const na="undefined"!=typeof document?document:null,ia=new Map,sa={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e?na.createElementNS("http://www.w3.org/2000/svg",t):na.createElement(t,n?{is:n}:void 0);return"select"===t&&i&&null!=i.multiple&&s.setAttribute("multiple",i.multiple),s},createText:t=>na.createTextNode(t),createComment:t=>na.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>na.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,i){const s=n?n.previousSibling:e.lastChild;let r=ia.get(t);if(!r){const e=na.createElement("template");if(e.innerHTML=i?`<svg>${t}</svg>`:t,r=e.content,i){const t=r.firstChild;for(;t.firstChild;)r.appendChild(t.firstChild);r.removeChild(t)}ia.set(t,r)}return e.insertBefore(r.cloneNode(!0),n),[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};const ra=/\s*!important$/;function oa(t,e,n){if(Uo(n))n.forEach((n=>oa(t,e,n)));else if(e.startsWith("--"))t.setProperty(e,n);else{const i=function(t,e){const n=la[e];if(n)return n;let i=R(e);if("filter"!==i&&i in t)return la[e]=i;i=ta(i);for(let n=0;n<aa.length;n++){const s=aa[n]+i;if(s in t)return la[e]=s}return e}(t,e);ra.test(n)?t.setProperty(Qo(i),n.replace(ra,""),"important"):t[i]=n}}const aa=["Webkit","Moz","ms"],la={};const ca="http://www.w3.org/1999/xlink";let ha=Date.now,pa=!1;if("undefined"!=typeof window){ha()>document.createEvent("Event").timeStamp&&(ha=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);pa=!!(t&&Number(t[1])<=53)}let ua=0;const da=Promise.resolve(),fa=()=>{ua=0};function ma(t,e,n,i){t.addEventListener(e,n,i)}function ga(t,e,n,i,s=null){const r=t._vei||(t._vei={}),o=r[e];if(i&&o)o.value=i;else{const[n,a]=function(t){let e;if(ya.test(t)){let n;for(e={};n=t.match(ya);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[Qo(t.slice(2)),e]}(e);if(i){const o=r[e]=function(t,e){const n=t=>{const i=t.timeStamp||ha();(pa||i>=n.attached-1)&&Ir(function(t,e){if(Uo(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t(e)))}return e}(t,n.value),e,5,[t])};return n.value=t,n.attached=(()=>ua||(da.then(fa),ua=ha()))(),n}(i,s);ma(t,n,o,a)}else o&&(!function(t,e,n,i){t.removeEventListener(e,n,i)}(t,n,o,a),r[e]=void 0)}}const ya=/(?:Once|Passive|Capture)$/;const Aa=/^on[a-z]/;function _a(t,e){const n=qn(t);class i extends Ca{constructor(t){super(n,t,e)}}return i.def=n,i}const va=t=>_a(t,bl),xa="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ca extends xa{constructor(t,e={},n){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"});for(let t=0;t<this.attributes.length;t++)this._setAttr(this.attributes[t].name);new MutationObserver((t=>{for(const e of t)this._setAttr(e.attributeName)})).observe(this,{attributes:!0})}connectedCallback(){this._connected=!0,this._instance||(this._resolveDef(),this._update())}disconnectedCallback(){this._connected=!1,Gr((()=>{this._connected||(Cl(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;const t=t=>{this._resolved=!0;const{props:e,styles:n}=t,i=!Uo(e),s=e?i?Object.keys(e):e:[];let r;if(i)for(const t in this._props){const n=e[t];(n===Number||n&&n.type===Number)&&(this._props[t]=ea(this._props[t]),(r||(r=Object.create(null)))[t]=!0)}r&&(this._numberProps=r,this._update());for(const t of Object.keys(this))"_"!==t[0]&&this._setProp(t,this[t]);for(const t of s.map(Yo))Object.defineProperty(this,t,{get(){return this._getProp(t)},set(e){this._setProp(t,e)}});this._applyStyles(n)},e=this._def.__asyncLoader;e?e().then(t):t(this._def)}_setAttr(t){let e=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(e=ea(e)),this._setProp(Yo(t),e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0){e!==this._props[t]&&(this._props[t]=e,this._instance&&this._update(),n&&(!0===e?this.setAttribute(Qo(t),""):"string"==typeof e||"number"==typeof e?this.setAttribute(Qo(t),e+""):e||this.removeAttribute(Qo(t))))}_update(){Cl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Fs(this._def,jo({},this._props));return this._instance||(t.ce=t=>{this._instance=t,t.isCE=!0,t.emit=(t,...e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e}))};let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof Ca){t.parent=e._instance;break}}),t}_applyStyles(t){t&&t.forEach((t=>{const e=document.createElement("style");e.textContent=t,this.shadowRoot.appendChild(e)}))}}function ba(t="$style"){{const e=ar();if(!e)return zo;const n=e.type.__cssModules;if(!n)return zo;const i=n[t];return i||zo}}function wa(t){const e=ar();if(!e)return;const n=()=>Pa(e.subTree,t(e.proxy));no(n),ai((()=>{const t=new MutationObserver(n);t.observe(e.subTree.el.parentNode,{childList:!0}),pi((()=>t.disconnect()))}))}function Pa(t,e){if(128&t.shapeFlag){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Pa(n.activeBranch,e)}))}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)Ta(t.el,e);else if(t.type===gs)t.children.forEach((t=>Pa(t,e)));else if(t.type===_s){let{el:n,anchor:i}=t;for(;n&&(Ta(n,e),n!==i);)n=n.nextSibling}}function Ta(t,e){if(1===t.nodeType){const n=t.style;for(const t in e)n.setProperty(`--${t}`,e[t])}}const ka="transition",Ea="animation",Sa=(t,{slots:e})=>Co(zn,Ma(t),e);Sa.displayName="Transition";const La={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},Ia=Sa.props=jo({},zn.props,La),Na=(t,e=[])=>{Uo(t)?t.forEach((t=>t(...e))):t&&t(...e)},Ba=t=>!!t&&(Uo(t)?t.some((t=>t.length>1)):t.length>1);function Ma(t){const e={};for(const n in t)n in La||(e[n]=t[n]);if(!1===t.css)return e;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:h=a,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:u=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,f=function(t){if(null==t)return null;if(Go(t))return[Oa(t.enter),Oa(t.leave)];{const e=Oa(t);return[e,e]}}(s),m=f&&f[0],g=f&&f[1],{onBeforeEnter:y,onEnter:A,onEnterCancelled:_,onLeave:v,onLeaveCancelled:x,onBeforeAppear:C=y,onAppear:b=A,onAppearCancelled:w=_}=e,P=(t,e,n)=>{Fa(t,e?h:a),Fa(t,e?c:o),n&&n()},T=(t,e)=>{Fa(t,d),Fa(t,u),e&&e()},k=t=>(e,n)=>{const s=t?b:A,o=()=>P(e,t,n);Na(s,[e,o]),za((()=>{Fa(e,t?l:r),Da(e,t?h:a),Ba(s)||ja(e,i,m,o)}))};return jo(e,{onBeforeEnter(t){Na(y,[t]),Da(t,r),Da(t,o)},onBeforeAppear(t){Na(C,[t]),Da(t,l),Da(t,c)},onEnter:k(!1),onAppear:k(!0),onLeave(t,e){const n=()=>T(t,e);Da(t,p),Va(),Da(t,u),za((()=>{Fa(t,p),Da(t,d),Ba(v)||ja(t,i,g,n)})),Na(v,[t,n])},onEnterCancelled(t){P(t,!1),Na(_,[t])},onAppearCancelled(t){P(t,!0),Na(w,[t])},onLeaveCancelled(t){T(t),Na(x,[t])}})}function Oa(t){return ea(t)}function Da(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function Fa(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function za(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let Ra=0;function ja(t,e,n,i){const s=t._endId=++Ra,r=()=>{s===t._endId&&i()};if(n)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=Ua(t,e);if(!o)return i();const c=o+"end";let h=0;const p=()=>{t.removeEventListener(c,u),r()},u=e=>{e.target===t&&++h>=l&&p()};setTimeout((()=>{h<l&&p()}),a+1),t.addEventListener(c,u)}function Ua(t,e){const n=window.getComputedStyle(t),i=t=>(n[t]||"").split(", "),s=i(ka+"Delay"),r=i(ka+"Duration"),o=Za(s,r),a=i(Ea+"Delay"),l=i(Ea+"Duration"),c=Za(a,l);let h=null,p=0,u=0;e===ka?o>0&&(h=ka,p=o,u=r.length):e===Ea?c>0&&(h=Ea,p=c,u=l.length):(p=Math.max(o,c),h=p>0?o>c?ka:Ea:null,u=h?h===ka?r.length:l.length:0);return{type:h,timeout:p,propCount:u,hasTransform:h===ka&&/\b(transform|all)(,|$)/.test(n[ka+"Property"])}}function Za(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map(((e,n)=>Ha(e)+Ha(t[n]))))}function Ha(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Va(){return document.body.offsetHeight}const qa=new WeakMap,Ga=new WeakMap,Wa={name:"TransitionGroup",props:jo({},Ia,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=ar(),i=Dn();let s,r;return ci((()=>{if(!s.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!function(t,e,n){const i=t.cloneNode();t._vtc&&t._vtc.forEach((t=>{t.split(/\s+/).forEach((t=>t&&i.classList.remove(t)))}));n.split(/\s+/).forEach((t=>t&&i.classList.add(t))),i.style.display="none";const s=1===e.nodeType?e:e.parentNode;s.appendChild(i);const{hasTransform:r}=Ua(i);return s.removeChild(i),r}(s[0].el,n.vnode.el,e))return;s.forEach($a),s.forEach(Ka);const i=s.filter(Ja);Va(),i.forEach((t=>{const n=t.el,i=n.style;Da(n,e),i.transform=i.webkitTransform=i.transitionDuration="";const s=n._moveCb=t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",s),n._moveCb=null,Fa(n,e))};n.addEventListener("transitionend",s)}))})),()=>{const o=Ze(t),a=Ma(o);let l=o.tag||gs;s=r,r=e.default?Vn(e.default()):[];for(let t=0;t<r.length;t++){const e=r[t];null!=e.key&&Hn(e,jn(e,a,i,n))}if(s)for(let t=0;t<s.length;t++){const e=s[t];Hn(e,jn(e,a,i,n)),qa.set(e,e.el.getBoundingClientRect())}return Fs(l,null,r)}}};function $a(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function Ka(t){Ga.set(t,t.el.getBoundingClientRect())}function Ja(t){const e=qa.get(t),n=Ga.get(t),i=e.left-n.left,s=e.top-n.top;if(i||s){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${i}px,${s}px)`,e.transitionDuration="0s",t}}const Ya=t=>{const e=t.props["onUpdate:modelValue"];return Uo(e)?t=>((t,e)=>{for(let n=0;n<t.length;n++)t[n](e)})(e,t):e};function Xa(t){t.target.composing=!0}function Qa(t){const e=t.target;e.composing&&(e.composing=!1,function(t,e){const n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}(e,"input"))}const tl={created(t,{modifiers:{lazy:e,trim:n,number:i}},s){t._assign=Ya(s);const r=i||s.props&&"number"===s.props.type;ma(t,e?"change":"input",(e=>{if(e.target.composing)return;let i=t.value;n?i=i.trim():r&&(i=ea(i)),t._assign(i)})),n&&ma(t,"change",(()=>{t.value=t.value.trim()})),e||(ma(t,"compositionstart",Xa),ma(t,"compositionend",Qa),ma(t,"change",Qa))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:i,number:s}},r){if(t._assign=Ya(r),t.composing)return;if(document.activeElement===t){if(n)return;if(i&&t.value.trim()===e)return;if((s||"number"===t.type)&&ea(t.value)===e)return}const o=null==e?"":e;t.value!==o&&(t.value=o)}},el={deep:!0,created(t,e,n){t._assign=Ya(n),ma(t,"change",(()=>{const e=t._modelValue,n=ol(t),i=t.checked,s=t._assign;if(Uo(e)){const t=Fo(e,n),r=-1!==t;if(i&&!r)s(e.concat(n));else if(!i&&r){const n=[...e];n.splice(t,1),s(n)}}else if(Zo(e)){const t=new Set(e);i?t.add(n):t.delete(n),s(t)}else s(al(t,i))}))},mounted:nl,beforeUpdate(t,e,n){t._assign=Ya(n),nl(t,e,n)}};function nl(t,{value:e,oldValue:n},i){t._modelValue=e,Uo(e)?t.checked=Fo(e,i.props.value)>-1:Zo(e)?t.checked=e.has(i.props.value):e!==n&&(t.checked=Do(e,al(t,!0)))}const il={created(t,{value:e},n){t.checked=Do(e,n.props.value),t._assign=Ya(n),ma(t,"change",(()=>{t._assign(ol(t))}))},beforeUpdate(t,{value:e,oldValue:n},i){t._assign=Ya(i),e!==n&&(t.checked=Do(e,i.props.value))}},sl={deep:!0,created(t,{value:e,modifiers:{number:n}},i){const s=Zo(e);ma(t,"change",(()=>{const e=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>n?ea(ol(t)):ol(t)));t._assign(t.multiple?s?new Set(e):e:e[0])})),t._assign=Ya(i)},mounted(t,{value:e}){rl(t,e)},beforeUpdate(t,e,n){t._assign=Ya(n)},updated(t,{value:e}){rl(t,e)}};function rl(t,e){const n=t.multiple;if(!n||Uo(e)||Zo(e)){for(let i=0,s=t.options.length;i<s;i++){const s=t.options[i],r=ol(s);if(n)Uo(e)?s.selected=Fo(e,r)>-1:s.selected=e.has(r);else if(Do(ol(s),e))return void(t.selectedIndex!==i&&(t.selectedIndex=i))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function ol(t){return"_value"in t?t._value:t.value}function al(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const ll={created(t,e,n){cl(t,e,n,null,"created")},mounted(t,e,n){cl(t,e,n,null,"mounted")},beforeUpdate(t,e,n,i){cl(t,e,n,i,"beforeUpdate")},updated(t,e,n,i){cl(t,e,n,i,"updated")}};function cl(t,e,n,i,s){let r;switch(t.tagName){case"SELECT":r=sl;break;case"TEXTAREA":r=tl;break;default:switch(n.props&&n.props.type){case"checkbox":r=el;break;case"radio":r=il;break;default:r=tl}}const o=r[s];o&&o(t,e,n,i)}const hl=["ctrl","shift","alt","meta"],pl={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>hl.some((n=>t[`${n}Key`]&&!e.includes(n)))},ul=(t,e)=>(n,...i)=>{for(let t=0;t<e.length;t++){const i=pl[e[t]];if(i&&i(n,e))return}return t(n,...i)},dl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fl=(t,e)=>n=>{if(!("key"in n))return;const i=Qo(n.key);return e.some((t=>t===i||dl[t]===i))?t(n):void 0},ml={beforeMount(t,{value:e},{transition:n}){t._vod="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):gl(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),gl(t,!0),i.enter(t)):i.leave(t,(()=>{gl(t,!1)})):gl(t,e))},beforeUnmount(t,{value:e}){gl(t,e)}};function gl(t,e){t.style.display=e?t._vod:"none"}const yl=jo({patchProp:(t,e,n,i,s=!1,r,o,a,l)=>{"class"===e?function(t,e,n){const i=t._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}(t,i,s):"style"===e?function(t,e,n){const i=t.style,s=i.display;if(n)if(qo(n))e!==n&&(i.cssText=n);else{for(const t in n)oa(i,t,n[t]);if(e&&!qo(e))for(const t in e)null==n[t]&&oa(i,t,"")}else t.removeAttribute("style");"_vod"in t&&(i.display=s)}(t,n,i):(t=>Ro.test(t))(e)?(t=>t.startsWith("onUpdate:"))(e)||ga(t,e,0,i,o):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,n,i){if(i)return"innerHTML"===e||"textContent"===e||!!(e in t&&Aa.test(e)&&Vo(n));if("spellcheck"===e||"draggable"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if(Aa.test(e)&&qo(n))return!1;return e in t}(t,e,i,s))?function(t,e,n,i,s,r,o){if("innerHTML"===e||"textContent"===e)return i&&o(i,s,r),void(t[e]=null==n?"":n);if("value"===e&&"PROGRESS"!==t.tagName){t._value=n;const i=null==n?"":n;return t.value!==i&&(t.value=i),void(null==n&&t.removeAttribute(e))}if(""===n||null==n){const i=typeof t[e];if("boolean"===i)return void(t[e]=Oo(n));if(null==n&&"string"===i)return t[e]="",void t.removeAttribute(e);if("number"===i){try{t[e]=0}catch(t){}return void t.removeAttribute(e)}}try{t[e]=n}catch(t){}}(t,e,i,r,o,a,l):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),function(t,e,n,i){if(i&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(ca,e.slice(6,e.length)):t.setAttributeNS(ca,e,n);else{const i=Mo(e);null==n||i&&!Oo(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}(t,e,i,s))}},sa);let Al,_l=!1;function vl(){return Al||(Al=Yi(yl))}function xl(){return Al=_l?Al:Xi(yl),_l=!0,Al}const Cl=(...t)=>{vl().render(...t)},bl=(...t)=>{xl().hydrate(...t)},wl=(...t)=>{const e=vl().createApp(...t);const{mount:n}=e;return e.mount=t=>{const i=Tl(t);if(!i)return;const s=e._component;Vo(s)||s.render||s.template||(s.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},e},Pl=(...t)=>{const e=xl().createApp(...t);const{mount:n}=e;return e.mount=t=>{const e=Tl(t);if(e)return n(e,!0,e instanceof SVGElement)},e};function Tl(t){if(qo(t)){return document.querySelector(t)}return t}function kl(t,e){const n=Object.create(null),i=t.split(",");for(let t=0;t<i.length;t++)n[i[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const El=/;(?![^(]*\))/g,Sl=/:(.+)/;function Ll(t){const e={};return t.split(El).forEach((t=>{if(t){const n=t.split(Sl);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}const Il=kl("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),Nl=kl("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),Bl=kl("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr");const Ml={},Ol=()=>{},Dl=()=>!1,Fl=/^on[^a-z]/,zl=t=>Fl.test(t),Rl=Object.assign,jl=(Object.prototype.hasOwnProperty,Array.isArray),Ul=t=>"string"==typeof t,Zl=t=>"symbol"==typeof t,Hl=t=>null!==t&&"object"==typeof t,Vl=(Object.prototype.toString,kl(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted")),ql=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Gl=/-(\w)/g,Wl=ql((t=>t.replace(Gl,((t,e)=>e?e.toUpperCase():"")))),$l=/\B([A-Z])/g,Kl=ql((t=>t.replace($l,"-$1").toLowerCase())),Jl=ql((t=>t.charAt(0).toUpperCase()+t.slice(1))),Yl=ql((t=>t?`on${Jl(t)}`:""));n(172);function Xl(t){throw t}function Ql(t){}function tc(t,e,n,i){const s=new SyntaxError(String(t));return s.code=t,s.loc=e,s}const ec=Symbol(""),nc=Symbol(""),ic=Symbol(""),sc=Symbol(""),rc=Symbol(""),oc=Symbol(""),ac=Symbol(""),lc=Symbol(""),cc=Symbol(""),hc=Symbol(""),pc=Symbol(""),uc=Symbol(""),dc=Symbol(""),fc=Symbol(""),mc=Symbol(""),gc=Symbol(""),yc=Symbol(""),Ac=Symbol(""),_c=Symbol(""),vc=Symbol(""),xc=Symbol(""),Cc=Symbol(""),bc=Symbol(""),wc=Symbol(""),Pc=Symbol(""),Tc=Symbol(""),kc=Symbol(""),Ec=Symbol(""),Sc=Symbol(""),Lc=Symbol(""),Ic=Symbol(""),Nc=Symbol(""),Bc=Symbol(""),Mc=Symbol(""),Oc=Symbol(""),Dc=Symbol(""),Fc=Symbol(""),zc=Symbol(""),Rc=Symbol(""),jc={[ec]:"Fragment",[nc]:"Teleport",[ic]:"Suspense",[sc]:"KeepAlive",[rc]:"BaseTransition",[oc]:"openBlock",[ac]:"createBlock",[lc]:"createElementBlock",[cc]:"createVNode",[hc]:"createElementVNode",[pc]:"createCommentVNode",[uc]:"createTextVNode",[dc]:"createStaticVNode",[fc]:"resolveComponent",[mc]:"resolveDynamicComponent",[gc]:"resolveDirective",[yc]:"resolveFilter",[Ac]:"withDirectives",[_c]:"renderList",[vc]:"renderSlot",[xc]:"createSlots",[Cc]:"toDisplayString",[bc]:"mergeProps",[wc]:"normalizeClass",[Pc]:"normalizeStyle",[Tc]:"normalizeProps",[kc]:"guardReactiveProps",[Ec]:"toHandlers",[Sc]:"camelize",[Lc]:"capitalize",[Ic]:"toHandlerKey",[Nc]:"setBlockTracking",[Bc]:"pushScopeId",[Mc]:"popScopeId",[Oc]:"withCtx",[Dc]:"unref",[Fc]:"isRef",[zc]:"withMemo",[Rc]:"isMemoSame"};const Uc={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Zc(t,e,n,i,s,r,o,a=!1,l=!1,c=!1,h=Uc){return t&&(a?(t.helper(oc),t.helper(yh(t.inSSR,c))):t.helper(gh(t.inSSR,c)),o&&t.helper(Ac)),{type:13,tag:e,props:n,children:i,patchFlag:s,dynamicProps:r,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:h}}function Hc(t,e=Uc){return{type:17,loc:e,elements:t}}function Vc(t,e=Uc){return{type:15,loc:e,properties:t}}function qc(t,e){return{type:16,loc:Uc,key:Ul(t)?Gc(t,!0):t,value:e}}function Gc(t,e=!1,n=Uc,i=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:i}}function Wc(t,e=Uc){return{type:8,loc:e,children:t}}function $c(t,e=[],n=Uc){return{type:14,loc:n,callee:t,arguments:e}}function Kc(t,e=void 0,n=!1,i=!1,s=Uc){return{type:18,params:t,returns:e,newline:n,isSlot:i,loc:s}}function Jc(t,e,n,i=!0){return{type:19,test:t,consequent:e,alternate:n,newline:i,loc:Uc}}const Yc=t=>4===t.type&&t.isStatic,Xc=(t,e)=>t===e||t===Kl(e);function Qc(t){return Xc(t,"Teleport")?nc:Xc(t,"Suspense")?ic:Xc(t,"KeepAlive")?sc:Xc(t,"BaseTransition")?rc:void 0}const th=/^\d|[^\$\w]/,eh=t=>!th.test(t),nh=/[A-Za-z_$\xA0-\uFFFF]/,ih=/[\.\?\w$\xA0-\uFFFF]/,sh=/\s+[.[]\s*|\s*[.[]\s+/g,rh=t=>{t=t.trim().replace(sh,(t=>t.trim()));let e=0,n=[],i=0,s=0,r=null;for(let o=0;o<t.length;o++){const a=t.charAt(o);switch(e){case 0:if("["===a)n.push(e),e=1,i++;else if("("===a)n.push(e),e=2,s++;else if(!(0===o?nh:ih).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(e),e=3,r=a):"["===a?i++:"]"===a&&(--i||(e=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(e),e=3,r=a;else if("("===a)s++;else if(")"===a){if(o===t.length-1)return!1;--s||(e=n.pop())}break;case 3:a===r&&(e=n.pop(),r=null)}}return!i&&!s};function oh(t,e,n){const i={source:t.source.substr(e,n),start:ah(t.start,t.source,e),end:t.end};return null!=n&&(i.end=ah(t.start,t.source,e+n)),i}function ah(t,e,n=e.length){return lh(Rl({},t),e,n)}function lh(t,e,n=e.length){let i=0,s=-1;for(let t=0;t<n;t++)10===e.charCodeAt(t)&&(i++,s=t);return t.offset+=n,t.line+=i,t.column=-1===s?t.column+n:n-s,t}function ch(t,e,n=!1){for(let i=0;i<t.props.length;i++){const s=t.props[i];if(7===s.type&&(n||s.exp)&&(Ul(e)?s.name===e:e.test(s.name)))return s}}function hh(t,e,n=!1,i=!1){for(let s=0;s<t.props.length;s++){const r=t.props[s];if(6===r.type){if(n)continue;if(r.name===e&&(r.value||i))return r}else if("bind"===r.name&&(r.exp||i)&&ph(r.arg,e))return r}}function ph(t,e){return!(!t||!Yc(t)||t.content!==e)}function uh(t){return 5===t.type||2===t.type}function dh(t){return 7===t.type&&"slot"===t.name}function fh(t){return 1===t.type&&3===t.tagType}function mh(t){return 1===t.type&&2===t.tagType}function gh(t,e){return t||e?cc:hc}function yh(t,e){return t||e?ac:lc}const Ah=new Set([Tc,kc]);function _h(t,e=[]){if(t&&!Ul(t)&&14===t.type){const n=t.callee;if(!Ul(n)&&Ah.has(n))return _h(t.arguments[0],e.concat(t))}return[t,e]}function vh(t,e,n){let i;let s,r=13===t.type?t.props:t.arguments[2],o=[];if(r&&!Ul(r)&&14===r.type){const t=_h(r);r=t[0],o=t[1],s=o[o.length-1]}if(null==r||Ul(r))i=Vc([e]);else if(14===r.type){const t=r.arguments[0];Ul(t)||15!==t.type?r.callee===Ec?i=$c(n.helper(bc),[Vc([e]),r]):r.arguments.unshift(Vc([e])):t.properties.unshift(e),!i&&(i=r)}else if(15===r.type){let t=!1;if(4===e.key.type){const n=e.key.content;t=r.properties.some((t=>4===t.key.type&&t.key.content===n))}t||r.properties.unshift(e),i=r}else i=$c(n.helper(bc),[Vc([e]),r]),s&&s.callee===kc&&(s=o[o.length-2]);13===t.type?s?s.arguments[0]=i:t.props=i:s?s.arguments[0]=i:t.arguments[2]=i}function xh(t,e){return`_${e}_${t.replace(/[^\w]/g,((e,n)=>"-"===e?"_":t.charCodeAt(n).toString()))}`}function Ch(t,{helper:e,removeHelper:n,inSSR:i}){t.isBlock||(t.isBlock=!0,n(gh(i,t.isComponent)),e(oc),e(yh(i,t.isComponent)))}function bh(t,e){const n=e.options?e.options.compatConfig:e.compatConfig,i=n&&n[t];return"MODE"===t?i||3:i}function wh(t,e){const n=bh("MODE",e),i=bh(t,e);return 3===n?!0===i:!1!==i}function Ph(t,e,n,...i){return wh(t,e)}const Th=/&(gt|lt|amp|apos|quot);/g,kh={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Eh={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Dl,isPreTag:Dl,isCustomElement:Dl,decodeEntities:t=>t.replace(Th,((t,e)=>kh[e])),onError:Xl,onWarn:Ql,comments:!1};function Sh(t,e={}){const n=function(t,e){const n=Rl({},Eh);let i;for(i in e)n[i]=void 0===e[i]?Eh[i]:e[i];return{options:n,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(t,e),i=Hh(n);return function(t,e=Uc){return{type:0,children:t,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}(Lh(n,0,[]),Vh(n,i))}function Lh(t,e,n){const i=qh(n),s=i?i.ns:0,r=[];for(;!Yh(t,e,n);){const o=t.source;let a;if(0===e||1===e)if(!t.inVPre&&Gh(o,t.options.delimiters[0]))a=jh(t,e);else if(0===e&&"<"===o[0])if(1===o.length)Jh(t,5,1);else if("!"===o[1])Gh(o,"\x3c!--")?a=Bh(t):Gh(o,"<!DOCTYPE")?a=Mh(t):Gh(o,"<![CDATA[")?0!==s?a=Nh(t,n):(Jh(t,1),a=Mh(t)):(Jh(t,11),a=Mh(t));else if("/"===o[1])if(2===o.length)Jh(t,5,2);else{if(">"===o[2]){Jh(t,14,2),Wh(t,3);continue}if(/[a-z]/i.test(o[2])){Jh(t,23),Fh(t,1,i);continue}Jh(t,12,2),a=Mh(t)}else/[a-z]/i.test(o[1])?(a=Oh(t,n),wh("COMPILER_NATIVE_TEMPLATE",t)&&a&&"template"===a.tag&&!a.props.some((t=>7===t.type&&Dh(t.name)))&&(a=a.children)):"?"===o[1]?(Jh(t,21,1),a=Mh(t)):Jh(t,12,1);if(a||(a=Uh(t,e)),jl(a))for(let t=0;t<a.length;t++)Ih(r,a[t]);else Ih(r,a)}let o=!1;if(2!==e&&1!==e){const e="preserve"!==t.options.whitespace;for(let n=0;n<r.length;n++){const i=r[n];if(t.inPre||2!==i.type)3!==i.type||t.options.comments||(o=!0,r[n]=null);else if(/[^\t\r\n\f ]/.test(i.content))e&&(i.content=i.content.replace(/[\t\r\n\f ]+/g," "));else{const t=r[n-1],s=r[n+1];!t||!s||e&&(3===t.type||3===s.type||1===t.type&&1===s.type&&/[\r\n]/.test(i.content))?(o=!0,r[n]=null):i.content=" "}}if(t.inPre&&i&&t.options.isPreTag(i.tag)){const t=r[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}}return o?r.filter(Boolean):r}function Ih(t,e){if(2===e.type){const n=qh(t);if(n&&2===n.type&&n.loc.end.offset===e.loc.start.offset)return n.content+=e.content,n.loc.end=e.loc.end,void(n.loc.source+=e.loc.source)}t.push(e)}function Nh(t,e){Wh(t,9);const n=Lh(t,3,e);return 0===t.source.length?Jh(t,6):Wh(t,3),n}function Bh(t){const e=Hh(t);let n;const i=/--(\!)?>/.exec(t.source);if(i){i.index<=3&&Jh(t,0),i[1]&&Jh(t,10),n=t.source.slice(4,i.index);const e=t.source.slice(0,i.index);let s=1,r=0;for(;-1!==(r=e.indexOf("\x3c!--",s));)Wh(t,r-s+1),r+4<e.length&&Jh(t,16),s=r+1;Wh(t,i.index+i[0].length-s+1)}else n=t.source.slice(4),Wh(t,t.source.length),Jh(t,7);return{type:3,content:n,loc:Vh(t,e)}}function Mh(t){const e=Hh(t),n="?"===t.source[1]?1:2;let i;const s=t.source.indexOf(">");return-1===s?(i=t.source.slice(n),Wh(t,t.source.length)):(i=t.source.slice(n,s),Wh(t,s+1)),{type:3,content:i,loc:Vh(t,e)}}function Oh(t,e){const n=t.inPre,i=t.inVPre,s=qh(e),r=Fh(t,0,s),o=t.inPre&&!n,a=t.inVPre&&!i;if(r.isSelfClosing||t.options.isVoidTag(r.tag))return o&&(t.inPre=!1),a&&(t.inVPre=!1),r;e.push(r);const l=t.options.getTextMode(r,s),c=Lh(t,l,e);e.pop();{const e=r.props.find((t=>6===t.type&&"inline-template"===t.name));if(e&&Ph("COMPILER_INLINE_TEMPLATE",t,e.loc)){const n=Vh(t,r.loc.end);e.value={type:2,content:n.source,loc:n}}}if(r.children=c,Xh(t.source,r.tag))Fh(t,1,s);else if(Jh(t,24,0,r.loc.start),0===t.source.length&&"script"===r.tag.toLowerCase()){const e=c[0];e&&Gh(e.loc.source,"\x3c!--")&&Jh(t,8)}return r.loc=Vh(t,r.loc.start),o&&(t.inPre=!1),a&&(t.inVPre=!1),r}const Dh=kl("if,else,else-if,for,slot");function Fh(t,e,n){const i=Hh(t),s=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),r=s[1],o=t.options.getNamespace(r,n);Wh(t,s[0].length),$h(t);const a=Hh(t),l=t.source;t.options.isPreTag(r)&&(t.inPre=!0);let c=zh(t,e);0===e&&!t.inVPre&&c.some((t=>7===t.type&&"pre"===t.name))&&(t.inVPre=!0,Rl(t,a),t.source=l,c=zh(t,e).filter((t=>"v-pre"!==t.name)));let h=!1;if(0===t.source.length?Jh(t,9):(h=Gh(t.source,"/>"),1===e&&h&&Jh(t,4),Wh(t,h?2:1)),1===e)return;let p=0;return t.inVPre||("slot"===r?p=2:"template"===r?c.some((t=>7===t.type&&Dh(t.name)))&&(p=3):function(t,e,n){const i=n.options;if(i.isCustomElement(t))return!1;if("component"===t||/^[A-Z]/.test(t)||Qc(t)||i.isBuiltInComponent&&i.isBuiltInComponent(t)||i.isNativeTag&&!i.isNativeTag(t))return!0;for(let t=0;t<e.length;t++){const i=e[t];if(6===i.type){if("is"===i.name&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Ph("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}else{if("is"===i.name)return!0;if("bind"===i.name&&ph(i.arg,"is")&&Ph("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}}(r,c,t)&&(p=1)),{type:1,ns:o,tag:r,tagType:p,props:c,isSelfClosing:h,children:[],loc:Vh(t,i),codegenNode:void 0}}function zh(t,e){const n=[],i=new Set;for(;t.source.length>0&&!Gh(t.source,">")&&!Gh(t.source,"/>");){if(Gh(t.source,"/")){Jh(t,22),Wh(t,1),$h(t);continue}1===e&&Jh(t,3);const s=Rh(t,i);6===s.type&&s.value&&"class"===s.name&&(s.value.content=s.value.content.replace(/\s+/g," ").trim()),0===e&&n.push(s),/^[^\t\r\n\f />]/.test(t.source)&&Jh(t,15),$h(t)}return n}function Rh(t,e){const n=Hh(t),i=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(t.source)[0];e.has(i)&&Jh(t,2),e.add(i),"="===i[0]&&Jh(t,19);{const e=/["'<]/g;let n;for(;n=e.exec(i);)Jh(t,17,n.index)}let s;Wh(t,i.length),/^[\t\r\n\f ]*=/.test(t.source)&&($h(t),Wh(t,1),$h(t),s=function(t){const e=Hh(t);let n;const i=t.source[0],s='"'===i||"'"===i;if(s){Wh(t,1);const e=t.source.indexOf(i);-1===e?n=Zh(t,t.source.length,4):(n=Zh(t,e,4),Wh(t,1))}else{const e=/^[^\t\r\n\f >]+/.exec(t.source);if(!e)return;const i=/["'<=`]/g;let s;for(;s=i.exec(e[0]);)Jh(t,18,s.index);n=Zh(t,e[0].length,4)}return{content:n,isQuoted:s,loc:Vh(t,e)}}(t),s||Jh(t,13));const r=Vh(t,n);if(!t.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(i)){const e=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(i);let o,a=Gh(i,"."),l=e[1]||(a||Gh(i,":")?"bind":Gh(i,"@")?"on":"slot");if(e[2]){const s="slot"===l,r=i.lastIndexOf(e[2]),a=Vh(t,Kh(t,n,r),Kh(t,n,r+e[2].length+(s&&e[3]||"").length));let c=e[2],h=!0;c.startsWith("[")?(h=!1,c.endsWith("]")?c=c.substr(1,c.length-2):(Jh(t,27),c=c.substr(1))):s&&(c+=e[3]||""),o={type:4,content:c,isStatic:h,constType:h?3:0,loc:a}}if(s&&s.isQuoted){const t=s.loc;t.start.offset++,t.start.column++,t.end=ah(t.start,s.content),t.source=t.source.slice(1,-1)}const c=e[3]?e[3].substr(1).split("."):[];return a&&c.push("prop"),"bind"===l&&o&&c.includes("sync")&&Ph("COMPILER_V_BIND_SYNC",t,0,o.loc.source)&&(l="model",c.splice(c.indexOf("sync"),1)),{type:7,name:l,exp:s&&{type:4,content:s.content,isStatic:!1,constType:0,loc:s.loc},arg:o,modifiers:c,loc:r}}return!t.inVPre&&Gh(i,"v-")&&Jh(t,26),{type:6,name:i,value:s&&{type:2,content:s.content,loc:s.loc},loc:r}}function jh(t,e){const[n,i]=t.options.delimiters,s=t.source.indexOf(i,n.length);if(-1===s)return void Jh(t,25);const r=Hh(t);Wh(t,n.length);const o=Hh(t),a=Hh(t),l=s-n.length,c=t.source.slice(0,l),h=Zh(t,l,e),p=h.trim(),u=h.indexOf(p);u>0&&lh(o,c,u);return lh(a,c,l-(h.length-p.length-u)),Wh(t,i.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:p,loc:Vh(t,o,a)},loc:Vh(t,r)}}function Uh(t,e){const n=3===e?["]]>"]:["<",t.options.delimiters[0]];let i=t.source.length;for(let e=0;e<n.length;e++){const s=t.source.indexOf(n[e],1);-1!==s&&i>s&&(i=s)}const s=Hh(t);return{type:2,content:Zh(t,i,e),loc:Vh(t,s)}}function Zh(t,e,n){const i=t.source.slice(0,e);return Wh(t,e),2===n||3===n||-1===i.indexOf("&")?i:t.options.decodeEntities(i,4===n)}function Hh(t){const{column:e,line:n,offset:i}=t;return{column:e,line:n,offset:i}}function Vh(t,e,n){return{start:e,end:n=n||Hh(t),source:t.originalSource.slice(e.offset,n.offset)}}function qh(t){return t[t.length-1]}function Gh(t,e){return t.startsWith(e)}function Wh(t,e){const{source:n}=t;lh(t,n,e),t.source=n.slice(e)}function $h(t){const e=/^[\t\r\n\f ]+/.exec(t.source);e&&Wh(t,e[0].length)}function Kh(t,e,n){return ah(e,t.originalSource.slice(e.offset,n),n)}function Jh(t,e,n,i=Hh(t)){n&&(i.offset+=n,i.column+=n),t.options.onError(tc(e,{start:i,end:i,source:""}))}function Yh(t,e,n){const i=t.source;switch(e){case 0:if(Gh(i,"</"))for(let t=n.length-1;t>=0;--t)if(Xh(i,n[t].tag))return!0;break;case 1:case 2:{const t=qh(n);if(t&&Xh(i,t.tag))return!0;break}case 3:if(Gh(i,"]]>"))return!0}return!i}function Xh(t,e){return Gh(t,"</")&&t.substr(2,e.length).toLowerCase()===e.toLowerCase()&&/[\t\r\n\f />]/.test(t[2+e.length]||">")}function Qh(t,e){ep(t,e,tp(t,t.children[0]))}function tp(t,e){const{children:n}=t;return 1===n.length&&1===e.type&&!mh(e)}function ep(t,e,n=!1){let i=!0;const{children:s}=t,r=s.length;let o=0;for(let t=0;t<s.length;t++){const r=s[t];if(1===r.type&&0===r.tagType){const t=n?0:np(r,e);if(t>0){if(t<3&&(i=!1),t>=2){r.codegenNode.patchFlag="-1",r.codegenNode=e.hoist(r.codegenNode),o++;continue}}else{const t=r.codegenNode;if(13===t.type){const n=ap(t);if((!n||512===n||1===n)&&rp(r,e)>=2){const n=op(r);n&&(t.props=e.hoist(n))}t.dynamicProps&&(t.dynamicProps=e.hoist(t.dynamicProps))}}}else if(12===r.type){const t=np(r.content,e);t>0&&(t<3&&(i=!1),t>=2&&(r.codegenNode=e.hoist(r.codegenNode),o++))}if(1===r.type){const t=1===r.tagType;t&&e.scopes.vSlot++,ep(r,e),t&&e.scopes.vSlot--}else if(11===r.type)ep(r,e,1===r.children.length);else if(9===r.type)for(let t=0;t<r.branches.length;t++)ep(r.branches[t],e,1===r.branches[t].children.length)}i&&o&&e.transformHoist&&e.transformHoist(s,e,t),o&&o===r&&1===t.type&&0===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&jl(t.codegenNode.children)&&(t.codegenNode.children=e.hoist(Hc(t.codegenNode.children)))}function np(t,e){const{constantCache:n}=e;switch(t.type){case 1:if(0!==t.tagType)return 0;const i=n.get(t);if(void 0!==i)return i;const s=t.codegenNode;if(13!==s.type)return 0;if(ap(s))return n.set(t,0),0;{let i=3;const r=rp(t,e);if(0===r)return n.set(t,0),0;r<i&&(i=r);for(let s=0;s<t.children.length;s++){const r=np(t.children[s],e);if(0===r)return n.set(t,0),0;r<i&&(i=r)}if(i>1)for(let s=0;s<t.props.length;s++){const r=t.props[s];if(7===r.type&&"bind"===r.name&&r.exp){const s=np(r.exp,e);if(0===s)return n.set(t,0),0;s<i&&(i=s)}}return s.isBlock&&(e.removeHelper(oc),e.removeHelper(yh(e.inSSR,s.isComponent)),s.isBlock=!1,e.helper(gh(e.inSSR,s.isComponent))),n.set(t,i),i}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return np(t.content,e);case 4:return t.constType;case 8:let r=3;for(let n=0;n<t.children.length;n++){const i=t.children[n];if(Ul(i)||Zl(i))continue;const s=np(i,e);if(0===s)return 0;s<r&&(r=s)}return r}}const ip=new Set([wc,Pc,Tc,kc]);function sp(t,e){if(14===t.type&&!Ul(t.callee)&&ip.has(t.callee)){const n=t.arguments[0];if(4===n.type)return np(n,e);if(14===n.type)return sp(n,e)}return 0}function rp(t,e){let n=3;const i=op(t);if(i&&15===i.type){const{properties:t}=i;for(let i=0;i<t.length;i++){const{key:s,value:r}=t[i],o=np(s,e);if(0===o)return o;let a;if(o<n&&(n=o),a=4===r.type?np(r,e):14===r.type?sp(r,e):0,0===a)return a;a<n&&(n=a)}}return n}function op(t){const e=t.codegenNode;if(13===e.type)return e.props}function ap(t){const e=t.patchFlag;return e?parseInt(e,10):void 0}function lp(t,{filename:e="",prefixIdentifiers:n=!1,hoistStatic:i=!1,cacheHandlers:s=!1,nodeTransforms:r=[],directiveTransforms:o={},transformHoist:a=null,isBuiltInComponent:l=Ol,isCustomElement:c=Ol,expressionPlugins:h=[],scopeId:p=null,slotted:u=!0,ssr:d=!1,inSSR:f=!1,ssrCssVars:m="",bindingMetadata:g=Ml,inline:y=!1,isTS:A=!1,onError:_=Xl,onWarn:v=Ql,compatConfig:x}){const C=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),b={selfName:C&&Jl(Wl(C[1])),prefixIdentifiers:n,hoistStatic:i,cacheHandlers:s,nodeTransforms:r,directiveTransforms:o,transformHoist:a,isBuiltInComponent:l,isCustomElement:c,expressionPlugins:h,scopeId:p,slotted:u,ssr:d,inSSR:f,ssrCssVars:m,bindingMetadata:g,inline:y,isTS:A,onError:_,onWarn:v,compatConfig:x,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(t){const e=b.helpers.get(t)||0;return b.helpers.set(t,e+1),t},removeHelper(t){const e=b.helpers.get(t);if(e){const n=e-1;n?b.helpers.set(t,n):b.helpers.delete(t)}},helperString:t=>`_${jc[b.helper(t)]}`,replaceNode(t){b.parent.children[b.childIndex]=b.currentNode=t},removeNode(t){const e=b.parent.children,n=t?e.indexOf(t):b.currentNode?b.childIndex:-1;t&&t!==b.currentNode?b.childIndex>n&&(b.childIndex--,b.onNodeRemoved()):(b.currentNode=null,b.onNodeRemoved()),b.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(t){},removeIdentifiers(t){},hoist(t){Ul(t)&&(t=Gc(t)),b.hoists.push(t);const e=Gc(`_hoisted_${b.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache:(t,e=!1)=>function(t,e,n=!1){return{type:20,index:t,value:e,isVNode:n,loc:Uc}}(b.cached++,t,e)};return b.filters=new Set,b}function cp(t,e){const n=lp(t,e);hp(t,n),e.hoistStatic&&Qh(t,n),e.ssr||function(t,e){const{helper:n}=e,{children:i}=t;if(1===i.length){const n=i[0];if(tp(t,n)&&n.codegenNode){const i=n.codegenNode;13===i.type&&Ch(i,e),t.codegenNode=i}else t.codegenNode=n}else if(i.length>1){let i=64;0,t.codegenNode=Zc(e,n(ec),void 0,t.children,i+"",void 0,void 0,!0,void 0,!1)}}(t,n),t.helpers=[...n.helpers.keys()],t.components=[...n.components],t.directives=[...n.directives],t.imports=n.imports,t.hoists=n.hoists,t.temps=n.temps,t.cached=n.cached,t.filters=[...n.filters]}function hp(t,e){e.currentNode=t;const{nodeTransforms:n}=e,i=[];for(let s=0;s<n.length;s++){const r=n[s](t,e);if(r&&(jl(r)?i.push(...r):i.push(r)),!e.currentNode)return;t=e.currentNode}switch(t.type){case 3:e.ssr||e.helper(pc);break;case 5:e.ssr||e.helper(Cc);break;case 9:for(let n=0;n<t.branches.length;n++)hp(t.branches[n],e);break;case 10:case 11:case 1:case 0:!function(t,e){let n=0;const i=()=>{n--};for(;n<t.children.length;n++){const s=t.children[n];Ul(s)||(e.parent=t,e.childIndex=n,e.onNodeRemoved=i,hp(s,e))}}(t,e)}e.currentNode=t;let s=i.length;for(;s--;)i[s]()}function pp(t,e){const n=Ul(t)?e=>e===t:e=>t.test(e);return(t,i)=>{if(1===t.type){const{props:s}=t;if(3===t.tagType&&s.some(dh))return;const r=[];for(let o=0;o<s.length;o++){const a=s[o];if(7===a.type&&n(a.name)){s.splice(o,1),o--;const n=e(t,a,i);n&&r.push(n)}}return r}}}const up="/*#__PURE__*/";function dp(t,e={}){const n=function(t,{mode:e="function",prefixIdentifiers:n="module"===e,sourceMap:i=!1,filename:s="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssr:c=!1,isTS:h=!1,inSSR:p=!1}){const u={mode:e,prefixIdentifiers:n,sourceMap:i,filename:s,scopeId:r,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssr:c,isTS:h,inSSR:p,source:t.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:t=>`_${jc[t]}`,push(t,e){u.code+=t},indent(){d(++u.indentLevel)},deindent(t=!1){t?--u.indentLevel:d(--u.indentLevel)},newline(){d(u.indentLevel)}};function d(t){u.push("\n"+" ".repeat(t))}return u}(t,e);e.onContextCreated&&e.onContextCreated(n);const{mode:i,push:s,prefixIdentifiers:r,indent:o,deindent:a,newline:l,scopeId:c,ssr:h}=n,p=t.helpers.length>0,u=!r&&"module"!==i;!function(t,e){const{ssr:n,prefixIdentifiers:i,push:s,newline:r,runtimeModuleName:o,runtimeGlobalName:a}=e,l=a,c=t=>`${jc[t]}: _${jc[t]}`;if(t.helpers.length>0&&(s(`const _Vue = ${l}\n`),t.hoists.length)){s(`const { ${[cc,hc,pc,uc,dc].filter((e=>t.helpers.includes(e))).map(c).join(", ")} } = _Vue\n`)}(function(t,e){if(!t.length)return;e.pure=!0;const{push:n,newline:i,helper:s,scopeId:r,mode:o}=e;i();for(let s=0;s<t.length;s++){const r=t[s];r&&(n(`const _hoisted_${s+1} = `),yp(r,e),i())}e.pure=!1})(t.hoists,e),r(),s("return ")}(t,n);if(s(`function ${h?"ssrRender":"render"}(${(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),o(),u&&(s("with (_ctx) {"),o(),p&&(s(`const { ${t.helpers.map((t=>`${jc[t]}: _${jc[t]}`)).join(", ")} } = _Vue`),s("\n"),l())),t.components.length&&(fp(t.components,"component",n),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(fp(t.directives,"directive",n),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),fp(t.filters,"filter",n),l()),t.temps>0){s("let ");for(let e=0;e<t.temps;e++)s(`${e>0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(s("\n"),l()),h||s("return "),t.codegenNode?yp(t.codegenNode,n):s("null"),u&&(a(),s("}")),a(),s("}"),{ast:t,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function fp(t,e,{helper:n,push:i,newline:s,isTS:r}){const o=n("filter"===e?yc:"component"===e?fc:gc);for(let n=0;n<t.length;n++){let a=t[n];const l=a.endsWith("__self");l&&(a=a.slice(0,-6)),i(`const ${xh(a,e)} = ${o}(${JSON.stringify(a)}${l?", true":""})${r?"!":""}`),n<t.length-1&&s()}}function mp(t,e){const n=t.length>3||!1;e.push("["),n&&e.indent(),gp(t,e,n),n&&e.deindent(),e.push("]")}function gp(t,e,n=!1,i=!0){const{push:s,newline:r}=e;for(let o=0;o<t.length;o++){const a=t[o];Ul(a)?s(a):jl(a)?mp(a,e):yp(a,e),o<t.length-1&&(n?(i&&s(","),r()):i&&s(", "))}}function yp(t,e){if(Ul(t))e.push(t);else if(Zl(t))e.push(e.helper(t));else switch(t.type){case 1:case 9:case 11:case 12:yp(t.codegenNode,e);break;case 2:!function(t,e){e.push(JSON.stringify(t.content),t)}(t,e);break;case 4:Ap(t,e);break;case 5:!function(t,e){const{push:n,helper:i,pure:s}=e;s&&n(up);n(`${i(Cc)}(`),yp(t.content,e),n(")")}(t,e);break;case 8:_p(t,e);break;case 3:!function(t,e){const{push:n,helper:i,pure:s}=e;s&&n(up);n(`${i(pc)}(${JSON.stringify(t.content)})`,t)}(t,e);break;case 13:!function(t,e){const{push:n,helper:i,pure:s}=e,{tag:r,props:o,children:a,patchFlag:l,dynamicProps:c,directives:h,isBlock:p,disableTracking:u,isComponent:d}=t;h&&n(i(Ac)+"(");p&&n(`(${i(oc)}(${u?"true":""}), `);s&&n(up);const f=p?yh(e.inSSR,d):gh(e.inSSR,d);n(i(f)+"(",t),gp(function(t){let e=t.length;for(;e--&&null==t[e];);return t.slice(0,e+1).map((t=>t||"null"))}([r,o,a,l,c]),e),n(")"),p&&n(")");h&&(n(", "),yp(h,e),n(")"))}(t,e);break;case 14:!function(t,e){const{push:n,helper:i,pure:s}=e,r=Ul(t.callee)?t.callee:i(t.callee);s&&n(up);n(r+"(",t),gp(t.arguments,e),n(")")}(t,e);break;case 15:!function(t,e){const{push:n,indent:i,deindent:s,newline:r}=e,{properties:o}=t;if(!o.length)return void n("{}",t);const a=o.length>1||!1;n(a?"{":"{ "),a&&i();for(let t=0;t<o.length;t++){const{key:i,value:s}=o[t];vp(i,e),n(": "),yp(s,e),t<o.length-1&&(n(","),r())}a&&s(),n(a?"}":" }")}(t,e);break;case 17:!function(t,e){mp(t.elements,e)}(t,e);break;case 18:!function(t,e){const{push:n,indent:i,deindent:s}=e,{params:r,returns:o,body:a,newline:l,isSlot:c}=t;c&&n(`_${jc[Oc]}(`);n("(",t),jl(r)?gp(r,e):r&&yp(r,e);n(") => "),(l||a)&&(n("{"),i());o?(l&&n("return "),jl(o)?mp(o,e):yp(o,e)):a&&yp(a,e);(l||a)&&(s(),n("}"));c&&(t.isNonScopedSlot&&n(", undefined, true"),n(")"))}(t,e);break;case 19:!function(t,e){const{test:n,consequent:i,alternate:s,newline:r}=t,{push:o,indent:a,deindent:l,newline:c}=e;if(4===n.type){const t=!eh(n.content);t&&o("("),Ap(n,e),t&&o(")")}else o("("),yp(n,e),o(")");r&&a(),e.indentLevel++,r||o(" "),o("? "),yp(i,e),e.indentLevel--,r&&c(),r||o(" "),o(": ");const h=19===s.type;h||e.indentLevel++;yp(s,e),h||e.indentLevel--;r&&l(!0)}(t,e);break;case 20:!function(t,e){const{push:n,helper:i,indent:s,deindent:r,newline:o}=e;n(`_cache[${t.index}] || (`),t.isVNode&&(s(),n(`${i(Nc)}(-1),`),o());n(`_cache[${t.index}] = `),yp(t.value,e),t.isVNode&&(n(","),o(),n(`${i(Nc)}(1),`),o(),n(`_cache[${t.index}]`),r());n(")")}(t,e);break;case 21:gp(t.body,e,!0,!1)}}function Ap(t,e){const{content:n,isStatic:i}=t;e.push(i?JSON.stringify(n):n,t)}function _p(t,e){for(let n=0;n<t.children.length;n++){const i=t.children[n];Ul(i)?e.push(i):yp(i,e)}}function vp(t,e){const{push:n}=e;if(8===t.type)n("["),_p(t,e),n("]");else if(t.isStatic){n(eh(t.content)?t.content:JSON.stringify(t.content),t)}else n(`[${t.content}]`,t)}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const xp=pp(/^(if|else|else-if)$/,((t,e,n)=>function(t,e,n,i){if(!("else"===e.name||e.exp&&e.exp.content.trim())){const i=e.exp?e.exp.loc:t.loc;n.onError(tc(28,e.loc)),e.exp=Gc("true",!1,i)}0;if("if"===e.name){const s=Cp(t,e),r={type:9,loc:t.loc,branches:[s]};if(n.replaceNode(r),i)return i(r,s,!0)}else{const s=n.parent.children;let r=s.indexOf(t);for(;r-- >=-1;){const o=s[r];if(!o||2!==o.type||o.content.trim().length){if(o&&9===o.type){"else-if"===e.name&&void 0===o.branches[o.branches.length-1].condition&&n.onError(tc(30,t.loc)),n.removeNode();const s=Cp(t,e);0,o.branches.push(s);const r=i&&i(o,s,!1);hp(s,n),r&&r(),n.currentNode=null}else n.onError(tc(30,t.loc));break}n.removeNode(o)}}}(t,e,n,((t,e,i)=>{const s=n.parent.children;let r=s.indexOf(t),o=0;for(;r-- >=0;){const t=s[r];t&&9===t.type&&(o+=t.branches.length)}return()=>{if(i)t.codegenNode=bp(e,o,n);else{const i=function(t){for(;;)if(19===t.type){if(19!==t.alternate.type)return t;t=t.alternate}else 20===t.type&&(t=t.value)}(t.codegenNode);i.alternate=bp(e,o+t.branches.length-1,n)}}}))));function Cp(t,e){return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:3!==t.tagType||ch(t,"for")?[t]:t.children,userKey:hh(t,"key")}}function bp(t,e,n){return t.condition?Jc(t.condition,wp(t,e,n),$c(n.helper(pc),['""',"true"])):wp(t,e,n)}function wp(t,e,n){const{helper:i}=n,s=qc("key",Gc(`${e}`,!1,Uc,2)),{children:r}=t,o=r[0];if(1!==r.length||1!==o.type){if(1===r.length&&11===o.type){const t=o.codegenNode;return vh(t,s,n),t}{let e=64;return Zc(n,i(ec),Vc([s]),r,e+"",void 0,void 0,!0,!1,!1,t.loc)}}{const t=o.codegenNode,e=14===(a=t).type&&a.callee===zc?a.arguments[1].returns:a;return 13===e.type&&Ch(e,n),vh(e,s,n),t}var a}const Pp=pp("for",((t,e,n)=>{const{helper:i,removeHelper:s}=n;return function(t,e,n,i){if(!e.exp)return void n.onError(tc(31,e.loc));const s=Sp(e.exp,n);if(!s)return void n.onError(tc(32,e.loc));const{addIdentifiers:r,removeIdentifiers:o,scopes:a}=n,{source:l,value:c,key:h,index:p}=s,u={type:11,loc:e.loc,source:l,valueAlias:c,keyAlias:h,objectIndexAlias:p,parseResult:s,children:fh(t)?t.children:[t]};n.replaceNode(u),a.vFor++;const d=i&&i(u);return()=>{a.vFor--,d&&d()}}(t,e,n,(e=>{const r=$c(i(_c),[e.source]),o=ch(t,"memo"),a=hh(t,"key"),l=a&&(6===a.type?Gc(a.value.content,!0):a.exp),c=a?qc("key",l):null,h=4===e.source.type&&e.source.constType>0,p=h?64:a?128:256;return e.codegenNode=Zc(n,i(ec),void 0,r,p+"",void 0,void 0,!0,!h,!1,t.loc),()=>{let a;const p=fh(t),{children:u}=e;const d=1!==u.length||1!==u[0].type,f=mh(t)?t:p&&1===t.children.length&&mh(t.children[0])?t.children[0]:null;if(f?(a=f.codegenNode,p&&c&&vh(a,c,n)):d?a=Zc(n,i(ec),c?Vc([c]):void 0,t.children,"64",void 0,void 0,!0,void 0,!1):(a=u[0].codegenNode,p&&c&&vh(a,c,n),a.isBlock!==!h&&(a.isBlock?(s(oc),s(yh(n.inSSR,a.isComponent))):s(gh(n.inSSR,a.isComponent))),a.isBlock=!h,a.isBlock?(i(oc),i(yh(n.inSSR,a.isComponent))):i(gh(n.inSSR,a.isComponent))),o){const t=Kc(Ip(e.parseResult,[Gc("_cached")]));t.body={type:21,body:[Wc(["const _memo = (",o.exp,")"]),Wc(["if (_cached",...l?[" && _cached.key === ",l]:[],` && ${n.helperString(Rc)}(_cached, _memo)) return _cached`]),Wc(["const _item = ",a]),Gc("_item.memo = _memo"),Gc("return _item")],loc:Uc},r.arguments.push(t,Gc("_cache"),Gc(String(n.cached++)))}else r.arguments.push(Kc(Ip(e.parseResult),a,!0))}}))}));const Tp=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,kp=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ep=/^\(|\)$/g;function Sp(t,e){const n=t.loc,i=t.content,s=i.match(Tp);if(!s)return;const[,r,o]=s,a={source:Lp(n,o.trim(),i.indexOf(o,r.length)),value:void 0,key:void 0,index:void 0};let l=r.trim().replace(Ep,"").trim();const c=r.indexOf(l),h=l.match(kp);if(h){l=l.replace(kp,"").trim();const t=h[1].trim();let e;if(t&&(e=i.indexOf(t,c+l.length),a.key=Lp(n,t,e)),h[2]){const s=h[2].trim();s&&(a.index=Lp(n,s,i.indexOf(s,a.key?e+t.length:c+l.length)))}}return l&&(a.value=Lp(n,l,c)),a}function Lp(t,e,n){return Gc(e,!1,oh(t,n,e.length))}function Ip({value:t,key:e,index:n},i=[]){return function(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map(((t,e)=>t||Gc("_".repeat(e+1),!1)))}([t,e,n,...i])}const Np=Gc("undefined",!1),Bp=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){const n=ch(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},Mp=(t,e,n)=>Kc(t,e,!1,!0,e.length?e[0].loc:n);function Op(t,e,n=Mp){e.helper(Oc);const{children:i,loc:s}=t,r=[],o=[];let a=e.scopes.vSlot>0||e.scopes.vFor>0;const l=ch(t,"slot",!0);if(l){const{arg:t,exp:e}=l;t&&!Yc(t)&&(a=!0),r.push(qc(t||Gc("default",!0),n(e,i,s)))}let c=!1,h=!1;const p=[],u=new Set;for(let t=0;t<i.length;t++){const s=i[t];let d;if(!fh(s)||!(d=ch(s,"slot",!0))){3!==s.type&&p.push(s);continue}if(l){e.onError(tc(37,d.loc));break}c=!0;const{children:f,loc:m}=s,{arg:g=Gc("default",!0),exp:y,loc:A}=d;let _;Yc(g)?_=g?g.content:"default":a=!0;const v=n(y,f,m);let x,C,b;if(x=ch(s,"if"))a=!0,o.push(Jc(x.exp,Dp(g,v),Np));else if(C=ch(s,/^else(-if)?$/,!0)){let n,s=t;for(;s--&&(n=i[s],3===n.type););if(n&&fh(n)&&ch(n,"if")){i.splice(t,1),t--;let e=o[o.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=C.exp?Jc(C.exp,Dp(g,v),Np):Dp(g,v)}else e.onError(tc(30,C.loc))}else if(b=ch(s,"for")){a=!0;const t=b.parseResult||Sp(b.exp);t?o.push($c(e.helper(_c),[t.source,Kc(Ip(t),Dp(g,v),!0)])):e.onError(tc(32,b.loc))}else{if(_){if(u.has(_)){e.onError(tc(38,A));continue}u.add(_),"default"===_&&(h=!0)}r.push(qc(g,v))}}if(!l){const t=(t,i)=>{const r=n(t,i,s);return e.compatConfig&&(r.isNonScopedSlot=!0),qc("default",r)};c?p.length&&p.some((t=>zp(t)))&&(h?e.onError(tc(39,p[0].loc)):r.push(t(void 0,p))):r.push(t(void 0,i))}const d=a?2:Fp(t.children)?3:1;let f=Vc(r.concat(qc("_",Gc(d+"",!1))),s);return o.length&&(f=$c(e.helper(xc),[f,Hc(o)])),{slots:f,hasDynamicSlots:a}}function Dp(t,e){return Vc([qc("name",t),qc("fn",e)])}function Fp(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(2===n.tagType||Fp(n.children))return!0;break;case 9:if(Fp(n.branches))return!0;break;case 10:case 11:if(Fp(n.children))return!0}}return!1}function zp(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():zp(t.content))}const Rp=new WeakMap,jp=(t,e)=>function(){if(1!==(t=e.currentNode).type||0!==t.tagType&&1!==t.tagType)return;const{tag:n,props:i}=t,s=1===t.tagType;let r=s?function(t,e,n=!1){let{tag:i}=t;const s=Vp(i),r=hh(t,"is");if(r)if(s||wh("COMPILER_IS_ON_ELEMENT",e)){const t=6===r.type?r.value&&Gc(r.value.content,!0):r.exp;if(t)return $c(e.helper(mc),[t])}else 6===r.type&&r.value.content.startsWith("vue:")&&(i=r.value.content.slice(4));const o=!s&&ch(t,"is");if(o&&o.exp)return $c(e.helper(mc),[o.exp]);const a=Qc(i)||e.isBuiltInComponent(i);if(a)return n||e.helper(a),a;return e.helper(fc),e.components.add(i),xh(i,"component")}(t,e):`"${n}"`;let o,a,l,c,h,p,u=0,d=Hl(r)&&r.callee===mc||r===nc||r===ic||!s&&("svg"===n||"foreignObject"===n||hh(t,"key",!0));if(i.length>0){const n=Up(t,e);o=n.props,u=n.patchFlag,h=n.dynamicPropNames;const i=n.directives;p=i&&i.length?Hc(i.map((t=>function(t,e){const n=[],i=Rp.get(t);i?n.push(e.helperString(i)):(e.helper(gc),e.directives.add(t.name),n.push(xh(t.name,"directive")));const{loc:s}=t;t.exp&&n.push(t.exp);t.arg&&(t.exp||n.push("void 0"),n.push(t.arg));if(Object.keys(t.modifiers).length){t.arg||(t.exp||n.push("void 0"),n.push("void 0"));const e=Gc("true",!1,s);n.push(Vc(t.modifiers.map((t=>qc(t,e))),s))}return Hc(n,t.loc)}(t,e)))):void 0}if(t.children.length>0){r===sc&&(d=!0,u|=1024);if(s&&r!==nc&&r!==sc){const{slots:n,hasDynamicSlots:i}=Op(t,e);a=n,i&&(u|=1024)}else if(1===t.children.length&&r!==nc){const n=t.children[0],i=n.type,s=5===i||8===i;s&&0===np(n,e)&&(u|=1),a=s||2===i?n:t.children}else a=t.children}0!==u&&(l=String(u),h&&h.length&&(c=function(t){let e="[";for(let n=0,i=t.length;n<i;n++)e+=JSON.stringify(t[n]),n<i-1&&(e+=", ");return e+"]"}(h))),t.codegenNode=Zc(e,r,o,a,l,c,p,!!d,!1,s,t.loc)};function Up(t,e,n=t.props,i=!1){const{tag:s,loc:r}=t,o=1===t.tagType;let a=[];const l=[],c=[];let h=0,p=!1,u=!1,d=!1,f=!1,m=!1,g=!1;const y=[],A=({key:t,value:n})=>{if(Yc(t)){const i=t.content,s=zl(i);if(o||!s||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||Vl(i)||(f=!0),s&&Vl(i)&&(g=!0),20===n.type||(4===n.type||8===n.type)&&np(n,e)>0)return;"ref"===i?p=!0:"class"===i?u=!0:"style"===i?d=!0:"key"===i||y.includes(i)||y.push(i),!o||"class"!==i&&"style"!==i||y.includes(i)||y.push(i)}else m=!0};for(let h=0;h<n.length;h++){const u=n[h];if(6===u.type){const{loc:t,name:n,value:i}=u;let r=Gc(i?i.content:"",!0,i?i.loc:t);if("ref"===n&&(p=!0),"is"===n&&(Vp(s)||i&&i.content.startsWith("vue:")||wh("COMPILER_IS_ON_ELEMENT",e)))continue;a.push(qc(Gc(n,!0,oh(t,0,n.length)),r))}else{const{name:n,arg:h,exp:p,loc:d}=u,f="bind"===n,g="on"===n;if("slot"===n){o||e.onError(tc(40,d));continue}if("once"===n||"memo"===n)continue;if("is"===n||f&&ph(h,"is")&&(Vp(s)||wh("COMPILER_IS_ON_ELEMENT",e)))continue;if(g&&i)continue;if(!h&&(f||g)){if(m=!0,p)if(a.length&&(l.push(Vc(Zp(a),r)),a=[]),f){if(wh("COMPILER_V_BIND_OBJECT_ORDER",e)){l.unshift(p);continue}l.push(p)}else l.push({type:14,loc:d,callee:e.helper(Ec),arguments:[p]});else e.onError(tc(f?34:35,d));continue}const y=e.directiveTransforms[n];if(y){const{props:n,needRuntime:s}=y(u,t,e);!i&&n.forEach(A),a.push(...n),s&&(c.push(u),Zl(s)&&Rp.set(u,s))}else c.push(u)}6===u.type&&"ref"===u.name&&e.scopes.vFor>0&&Ph("COMPILER_V_FOR_REF",e,u.loc)&&a.push(qc(Gc("refInFor",!0),Gc("true",!1)))}let _;if(l.length?(a.length&&l.push(Vc(Zp(a),r)),_=l.length>1?$c(e.helper(bc),l,r):l[0]):a.length&&(_=Vc(Zp(a),r)),m?h|=16:(u&&!o&&(h|=2),d&&!o&&(h|=4),y.length&&(h|=8),f&&(h|=32)),0!==h&&32!==h||!(p||g||c.length>0)||(h|=512),!e.inSSR&&_)switch(_.type){case 15:let t=-1,n=-1,i=!1;for(let e=0;e<_.properties.length;e++){const s=_.properties[e].key;Yc(s)?"class"===s.content?t=e:"style"===s.content&&(n=e):s.isHandlerKey||(i=!0)}const s=_.properties[t],r=_.properties[n];i?_=$c(e.helper(Tc),[_]):(s&&!Yc(s.value)&&(s.value=$c(e.helper(wc),[s.value])),!r||Yc(r.value)||!d&&17!==r.value.type||(r.value=$c(e.helper(Pc),[r.value])));break;case 14:break;default:_=$c(e.helper(Tc),[$c(e.helper(kc),[_])])}return{props:_,directives:c,patchFlag:h,dynamicPropNames:y}}function Zp(t){const e=new Map,n=[];for(let i=0;i<t.length;i++){const s=t[i];if(8===s.key.type||!s.key.isStatic){n.push(s);continue}const r=s.key.content,o=e.get(r);o?("style"===r||"class"===r||zl(r))&&Hp(o,s):(e.set(r,s),n.push(s))}return n}function Hp(t,e){17===t.value.type?t.value.elements.push(e.value):t.value=Hc([t.value,e.value],t.loc)}function Vp(t){return t[0].toLowerCase()+t.slice(1)==="component"}const qp=/-(\w)/g,Gp=(t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))})((t=>t.replace(qp,((t,e)=>e?e.toUpperCase():"")))),Wp=(t,e)=>{if(mh(t)){const{children:n,loc:i}=t,{slotName:s,slotProps:r}=function(t,e){let n,i='"default"';const s=[];for(let e=0;e<t.props.length;e++){const n=t.props[e];6===n.type?n.value&&("name"===n.name?i=JSON.stringify(n.value.content):(n.name=Gp(n.name),s.push(n))):"bind"===n.name&&ph(n.arg,"name")?n.exp&&(i=n.exp):("bind"===n.name&&n.arg&&Yc(n.arg)&&(n.arg.content=Gp(n.arg.content)),s.push(n))}if(s.length>0){const{props:i,directives:r}=Up(t,e,s);n=i,r.length&&e.onError(tc(36,r[0].loc))}return{slotName:i,slotProps:n}}(t,e),o=[e.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let a=2;r&&(o[2]=r,a=3),n.length&&(o[3]=Kc([],n,!1,!1,i),a=4),e.scopeId&&!e.slotted&&(a=5),o.splice(a),t.codegenNode=$c(e.helper(vc),o,i)}};const $p=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Kp=(t,e,n,i)=>{const{loc:s,modifiers:r,arg:o}=t;let a;if(t.exp||r.length||n.onError(tc(35,s)),4===o.type)if(o.isStatic){const t=o.content;a=Gc(Yl(Wl(t)),!0,o.loc)}else a=Wc([`${n.helperString(Ic)}(`,o,")"]);else a=o,a.children.unshift(`${n.helperString(Ic)}(`),a.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const t=rh(l.content),e=!(t||$p.test(l.content)),n=l.content.includes(";");0,(e||c&&t)&&(l=Wc([`${e?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let h={props:[qc(a,l||Gc("() => {}",!1,s))]};return i&&(h=i(h)),c&&(h.props[0].value=n.cache(h.props[0].value)),h.props.forEach((t=>t.key.isHandlerKey=!0)),h},Jp=(t,e,n)=>{const{exp:i,modifiers:s,loc:r}=t,o=t.arg;return 4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),s.includes("camel")&&(4===o.type?o.isStatic?o.content=Wl(o.content):o.content=`${n.helperString(Sc)}(${o.content})`:(o.children.unshift(`${n.helperString(Sc)}(`),o.children.push(")"))),n.inSSR||(s.includes("prop")&&Yp(o,"."),s.includes("attr")&&Yp(o,"^")),!i||4===i.type&&!i.content.trim()?(n.onError(tc(34,r)),{props:[qc(o,Gc("",!0,r))]}):{props:[qc(o,i)]}},Yp=(t,e)=>{4===t.type?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},Xp=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{const n=t.children;let i,s=!1;for(let t=0;t<n.length;t++){const e=n[t];if(uh(e)){s=!0;for(let s=t+1;s<n.length;s++){const r=n[s];if(!uh(r)){i=void 0;break}i||(i=n[t]={type:8,loc:e.loc,children:[e]}),i.children.push(" + ",r),n.splice(s,1),s--}}}if(s&&(1!==n.length||0!==t.type&&(1!==t.type||0!==t.tagType||t.props.find((t=>7===t.type&&!e.directiveTransforms[t.name]))||"template"===t.tag)))for(let t=0;t<n.length;t++){const i=n[t];if(uh(i)||8===i.type){const s=[];2===i.type&&" "===i.content||s.push(i),e.ssr||0!==np(i,e)||s.push("1"),n[t]={type:12,content:i,loc:i.loc,codegenNode:$c(e.helper(uc),s)}}}}},Qp=new WeakSet,tu=(t,e)=>{if(1===t.type&&ch(t,"once",!0)){if(Qp.has(t)||e.inVOnce)return;return Qp.add(t),e.inVOnce=!0,e.helper(Nc),()=>{e.inVOnce=!1;const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0))}}},eu=(t,e,n)=>{const{exp:i,arg:s}=t;if(!i)return n.onError(tc(41,t.loc)),nu();const r=i.loc.source,o=4===i.type?i.content:r;n.bindingMetadata[r];if(!o.trim()||!rh(o))return n.onError(tc(42,i.loc)),nu();const a=s||Gc("modelValue",!0),l=s?Yc(s)?`onUpdate:${s.content}`:Wc(['"onUpdate:" + ',s]):"onUpdate:modelValue";let c;c=Wc([`${n.isTS?"($event: any)":"$event"} => (`,i," = $event)"]);const h=[qc(a,t.exp),qc(l,c)];if(t.modifiers.length&&1===e.tagType){const e=t.modifiers.map((t=>(eh(t)?t:JSON.stringify(t))+": true")).join(", "),n=s?Yc(s)?`${s.content}Modifiers`:Wc([s,' + "Modifiers"']):"modelModifiers";h.push(qc(n,Gc(`{ ${e} }`,!1,t.loc,2)))}return nu(h)};function nu(t=[]){return{props:t}}const iu=/[\w).+\-_$\]]/,su=(t,e)=>{wh("COMPILER_FILTER",e)&&(5===t.type&&ru(t.content,e),1===t.type&&t.props.forEach((t=>{7===t.type&&"for"!==t.name&&t.exp&&ru(t.exp,e)})))};function ru(t,e){if(4===t.type)ou(t,e);else for(let n=0;n<t.children.length;n++){const i=t.children[n];"object"==typeof i&&(4===i.type?ou(i,e):8===i.type?ru(t,e):5===i.type&&ru(i.content,e))}}function ou(t,e){const n=t.content;let i,s,r,o,a=!1,l=!1,c=!1,h=!1,p=0,u=0,d=0,f=0,m=[];for(r=0;r<n.length;r++)if(s=i,i=n.charCodeAt(r),a)39===i&&92!==s&&(a=!1);else if(l)34===i&&92!==s&&(l=!1);else if(c)96===i&&92!==s&&(c=!1);else if(h)47===i&&92!==s&&(h=!1);else if(124!==i||124===n.charCodeAt(r+1)||124===n.charCodeAt(r-1)||p||u||d){switch(i){case 34:l=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:d++;break;case 41:d--;break;case 91:u++;break;case 93:u--;break;case 123:p++;break;case 125:p--}if(47===i){let t,e=r-1;for(;e>=0&&(t=n.charAt(e)," "===t);e--);t&&iu.test(t)||(h=!0)}}else void 0===o?(f=r+1,o=n.slice(0,r).trim()):g();function g(){m.push(n.slice(f,r).trim()),f=r+1}if(void 0===o?o=n.slice(0,r).trim():0!==f&&g(),m.length){for(r=0;r<m.length;r++)o=au(o,m[r],e);t.content=o}}function au(t,e,n){n.helper(yc);const i=e.indexOf("(");if(i<0)return n.filters.add(e),`${xh(e,"filter")}(${t})`;{const s=e.slice(0,i),r=e.slice(i+1);return n.filters.add(s),`${xh(s,"filter")}(${t}${")"!==r?","+r:r}`}}const lu=new WeakSet,cu=(t,e)=>{if(1===t.type){const n=ch(t,"memo");if(!n||lu.has(t))return;return lu.add(t),()=>{const i=t.codegenNode||e.currentNode.codegenNode;i&&13===i.type&&(1!==t.tagType&&Ch(i,e),t.codegenNode=$c(e.helper(zc),[n.exp,Kc(void 0,i),"_cache",String(e.cached++)]))}}};function hu(t,e={}){const n=e.onError||Xl,i="module"===e.mode;!0===e.prefixIdentifiers?n(tc(46)):i&&n(tc(47));const s=!1;e.cacheHandlers&&n(tc(48)),e.scopeId&&!i&&n(tc(49));const r=Ul(t)?Sh(t,e):t,[o,a]=[[tu,xp,cu,Pp,su,Wp,jp,Bp,Xp],{on:Kp,bind:Jp,model:eu}];return cp(r,Rl({},e,{prefixIdentifiers:s,nodeTransforms:[...o,...e.nodeTransforms||[]],directiveTransforms:Rl({},a,e.directiveTransforms||{})})),dp(r,Rl({},e,{prefixIdentifiers:s}))}const pu=Symbol(""),uu=Symbol(""),du=Symbol(""),fu=Symbol(""),mu=Symbol(""),gu=Symbol(""),yu=Symbol(""),Au=Symbol(""),_u=Symbol(""),vu=Symbol("");var xu;let Cu;xu={[pu]:"vModelRadio",[uu]:"vModelCheckbox",[du]:"vModelText",[fu]:"vModelSelect",[mu]:"vModelDynamic",[gu]:"withModifiers",[yu]:"withKeys",[Au]:"vShow",[_u]:"Transition",[vu]:"TransitionGroup"},Object.getOwnPropertySymbols(xu).forEach((t=>{jc[t]=xu[t]}));const bu=kl("style,iframe,script,noscript",!0),wu={isVoidTag:Bl,isNativeTag:t=>Il(t)||Nl(t),isPreTag:t=>"pre"===t,decodeEntities:function(t,e=!1){return Cu||(Cu=document.createElement("div")),e?(Cu.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,Cu.children[0].getAttribute("foo")):(Cu.innerHTML=t,Cu.textContent)},isBuiltInComponent:t=>Xc(t,"Transition")?_u:Xc(t,"TransitionGroup")?vu:void 0,getNamespace(t,e){let n=e?e.ns:0;if(e&&2===n)if("annotation-xml"===e.tag){if("svg"===t)return 1;e.props.some((t=>6===t.type&&"encoding"===t.name&&null!=t.value&&("text/html"===t.value.content||"application/xhtml+xml"===t.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(n=0);else e&&1===n&&("foreignObject"!==e.tag&&"desc"!==e.tag&&"title"!==e.tag||(n=0));if(0===n){if("svg"===t)return 1;if("math"===t)return 2}return n},getTextMode({tag:t,ns:e}){if(0===e){if("textarea"===t||"title"===t)return 1;if(bu(t))return 2}return 0}},Pu=(t,e)=>{const n=Ll(t);return Gc(JSON.stringify(n),!1,e,3)};function Tu(t,e){return tc(t,e)}const ku=kl("passive,once,capture"),Eu=kl("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Su=kl("left,right"),Lu=kl("onkeyup,onkeydown,onkeypress",!0),Iu=(t,e)=>Yc(t)&&"onclick"===t.content.toLowerCase()?Gc(e,!0):4!==t.type?Wc(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t;const Nu=(t,e)=>{1!==t.type||0!==t.tagType||"script"!==t.tag&&"style"!==t.tag||(e.onError(Tu(60,t.loc)),e.removeNode())},Bu=[t=>{1===t.type&&t.props.forEach(((e,n)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[n]={type:7,name:"bind",arg:Gc("style",!0,e.loc),exp:Pu(e.value.content,e.loc),modifiers:[],loc:e.loc})}))}],Mu={cloak:()=>({props:[]}),html:(t,e,n)=>{const{exp:i,loc:s}=t;return i||n.onError(Tu(50,s)),e.children.length&&(n.onError(Tu(51,s)),e.children.length=0),{props:[qc(Gc("innerHTML",!0,s),i||Gc("",!0))]}},text:(t,e,n)=>{const{exp:i,loc:s}=t;return i||n.onError(Tu(52,s)),e.children.length&&(n.onError(Tu(53,s)),e.children.length=0),{props:[qc(Gc("textContent",!0),i?$c(n.helperString(Cc),[i],s):Gc("",!0))]}},model:(t,e,n)=>{const i=eu(t,e,n);if(!i.props.length||1===e.tagType)return i;t.arg&&n.onError(Tu(55,t.arg.loc));const{tag:s}=e,r=n.isCustomElement(s);if("input"===s||"textarea"===s||"select"===s||r){let o=du,a=!1;if("input"===s||r){const i=hh(e,"type");if(i){if(7===i.type)o=mu;else if(i.value)switch(i.value.content){case"radio":o=pu;break;case"checkbox":o=uu;break;case"file":a=!0,n.onError(Tu(56,t.loc))}}else(function(t){return t.props.some((t=>!(7!==t.type||"bind"!==t.name||t.arg&&4===t.arg.type&&t.arg.isStatic)))})(e)&&(o=mu)}else"select"===s&&(o=fu);a||(i.needRuntime=n.helper(o))}else n.onError(Tu(54,t.loc));return i.props=i.props.filter((t=>!(4===t.key.type&&"modelValue"===t.key.content))),i},on:(t,e,n)=>Kp(t,0,n,(e=>{const{modifiers:i}=t;if(!i.length)return e;let{key:s,value:r}=e.props[0];const{keyModifiers:o,nonKeyModifiers:a,eventOptionModifiers:l}=((t,e,n)=>{const i=[],s=[],r=[];for(let o=0;o<e.length;o++){const a=e[o];"native"===a&&Ph("COMPILER_V_ON_NATIVE",n)||ku(a)?r.push(a):Su(a)?Yc(t)?Lu(t.content)?i.push(a):s.push(a):(i.push(a),s.push(a)):Eu(a)?s.push(a):i.push(a)}return{keyModifiers:i,nonKeyModifiers:s,eventOptionModifiers:r}})(s,i,n,t.loc);if(a.includes("right")&&(s=Iu(s,"onContextmenu")),a.includes("middle")&&(s=Iu(s,"onMouseup")),a.length&&(r=$c(n.helper(gu),[r,JSON.stringify(a)])),!o.length||Yc(s)&&!Lu(s.content)||(r=$c(n.helper(yu),[r,JSON.stringify(o)])),l.length){const t=l.map(Jl).join("");s=Yc(s)?Gc(`${s.content}${t}`,!0):Wc(["(",s,`) + "${t}"`])}return{props:[qc(s,r)]}})),show:(t,e,n)=>{const{exp:i,loc:s}=t;return i||n.onError(Tu(58,s)),{props:[],needRuntime:n.helper(Au)}}};const Ou=Object.create(null);gr((function(t,e){if(!Ul(t)){if(!t.nodeType)return Ol;t=t.innerHTML}const n=t,s=Ou[n];if(s)return s;if("#"===t[0]){const e=document.querySelector(t);0,t=e?e.innerHTML:""}const{code:r}=function(t,e={}){return hu(t,Rl({},wu,e,{nodeTransforms:[Nu,...Bu,...e.nodeTransforms||[]],directiveTransforms:Rl({},Mu,e.directiveTransforms||{}),transformHoist:null}))}(t,Rl({hoistStatic:!0,onError:void 0,onWarn:Ol},e)),o=new Function("Vue",r)(i);return o._rc=!0,Ou[n]=o}));n(764);var Du=["innerHTML"];const Fu={props:{type:{type:String,default:"error"},message:{type:String,default:"",required:!0}},setup:function(t){return function(e,n){return Cs(),Es("div",{class:h(["alert","alert-"+t.type]),innerHTML:t.message},null,10,Du)}}};var zu=n(72),Ru=n.n(zu),ju=n(341),Uu={insert:"head",singleton:!1};Ru()(ju.A,Uu);ju.A.locals;var Zu=n(262);const Hu=(0,Zu.A)(Fu,[["__scopeId","data-v-70417498"]]);var Vu={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},qu=[Zs('<circle cx="50" cy="50" r="0" fill="none" stroke="currentColor" stroke-width="2"><animate attributeName="r" repeatCount="indefinite" dur="1s" values="0;40" keyTimes="0;1" keySplines="0 0.2 0.8 1" calcMode="spline" begin="0s"></animate><animate attributeName="opacity" repeatCount="indefinite" dur="1s" values="1;0" keyTimes="0;1" keySplines="0.2 0 0.8 1" calcMode="spline" begin="0s"></animate></circle><circle cx="50" cy="50" r="0" fill="none" stroke="currentColor" stroke-width="2"><animate attributeName="r" repeatCount="indefinite" dur="1s" values="0;40" keyTimes="0;1" keySplines="0 0.2 0.8 1" calcMode="spline" begin="-0.5s"></animate><animate attributeName="opacity" repeatCount="indefinite" dur="1s" values="1;0" keyTimes="0;1" keySplines="0.2 0 0.8 1" calcMode="spline" begin="-0.5s"></animate></circle>',2)];const Gu={props:{loading:{type:Boolean,required:!1,default:!1}},setup:function(t){return function(e,n){return t.loading?(Cs(),Es("svg",Vu,qu)):Hs("",!0)}}};var Wu=n(481),$u=n.n(Wu),Ku={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},Ju=["fill"];const Yu={props:{primaryColor:{type:String,required:!0}},emits:["closeCard"],setup:function(t,e){e.emit;return function(e,n){return Cs(),Es("button",{class:"owc-openkaarten-streetmap__tooltip-card__close-btn","aria-label":"Sluit",style:o({"--owc-openkaarten-streetmap--close-btn-color":t.primaryColor}),onClick:n[0]||(n[0]=function(t){return e.$emit("closeCard")})},[(Cs(),Es("svg",Ku,[Ds("path",{d:"M4.41205 4.41058C4.73748 4.08514 5.26512 4.08514 5.59056 4.41058L10.0013 8.82133L14.412 4.41058C14.7375 4.08514 15.2651 4.08514 15.5906 4.41058C15.916 4.73602 15.916 5.26366 15.5906 5.58909L11.1798 9.99984L15.5906 14.4106C15.916 14.736 15.916 15.2637 15.5906 15.5891C15.2651 15.9145 14.7375 15.9145 14.412 15.5891L10.0013 11.1783L5.59056 15.5891C5.26512 15.9145 4.73748 15.9145 4.41205 15.5891C4.08661 15.2637 4.08661 14.736 4.41205 14.4106L8.82279 9.99984L4.41205 5.58909C4.08661 5.26366 4.08661 4.73602 4.41205 4.41058Z",fill:t.primaryColor},null,8,Ju)]))],4)}}};var Xu=n(779),Qu={insert:"head",singleton:!1};Ru()(Xu.A,Qu);Xu.A.locals;const td=Yu;var ed=["for","aria-checked"],nd={class:"owc-openkaarten-streetmap__filters__checkbox__label"},id=["id","checked"],sd=function(t){return An("data-v-54c3bab0"),t=t(),_n(),t}((function(){return Ds("span",{class:"owc-openkaarten-streetmap__filters__checkbox__mark"},null,-1)}));const rd={props:{title:{type:String,required:!0},id:{type:Number,required:!0},color:{type:String,required:!0},selected:{type:Boolean,required:!0,default:!1}},emits:["onChange"],setup:function(t,e){e.emit;return function(e,n){return Cs(),Es("label",{for:"owc-checkbox-".concat(t.id),role:"checkbox","aria-checked":t.selected,class:"owc-openkaarten-streetmap__filters__checkbox"},[Ds("span",nd,u(t.title),1),Ds("input",{id:"owc-checkbox-".concat(t.id),type:"checkbox",checked:t.selected,onChange:n[0]||(n[0]=function(n){return e.$emit("onChange",t.id,!t.selected)})},null,40,id),sd],8,ed)}}};var od=n(176),ad={insert:"head",singleton:!1};Ru()(od.A,ad);od.A.locals;const ld=(0,Zu.A)(rd,[["__scopeId","data-v-54c3bab0"]]);function cd(t){return cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cd(t)}function hd(){hd=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var r=e&&e.prototype instanceof y?e:y,o=Object.create(r.prototype),a=new L(i||[]);return s(o,"_invoke",{value:T(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var u="suspendedStart",d="suspendedYield",f="executing",m="completed",g={};function y(){}function A(){}function _(){}var v={};c(v,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(I([])));C&&C!==n&&i.call(C,o)&&(v=C);var b=_.prototype=y.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(s,r,o,a){var l=p(t[s],t,r);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==cd(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(h).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,a)}))}a(l.arg)}var r;s(this,"_invoke",{value:function(t,i){function s(){return new e((function(e,s){n(t,i,e,s)}))}return r=r?r.then(s,s):s()}})}function T(e,n,i){var s=u;return function(r,o){if(s===f)throw Error("Generator is already running");if(s===m){if("throw"===r)throw o;return{value:t,done:!0}}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var l=k(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===u)throw s=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=f;var c=p(e,n,i);if("normal"===c.type){if(s=i.done?m:d,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(s=m,i.method="throw",i.arg=c.arg)}}}function k(e,n){var i=n.method,s=e.iterator[i];if(s===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=p(s,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function n(){for(;++s<e.length;)if(i.call(e,s))return n.value=e[s],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(cd(e)+" is not iterable")}return A.prototype=_,s(b,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:A,configurable:!0}),A.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(P.prototype),c(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,i,s,r){void 0===r&&(r=Promise);var o=new P(h(t,n,i,s),r);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,l,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=I,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function s(i,s){return a.type="throw",a.arg=e,n.next=i,s&&(n.method="next",n.arg=t),!!s}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return s("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return s(o.catchLoc,!0);if(this.prev<o.finallyLoc)return s(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return s(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return s(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var s=i.arg;S(n)}return s}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function pd(t,e,n,i,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,s)}var ud={class:"owc-openkaarten-streetmap__filters__header"},dd={id:"filters-title"},fd={id:"filters-description",class:"owc-openkaarten-streetmap__filters__body"},md={class:"owc-openkaarten-streetmap__filters__body__list"},gd={class:"owc-openkaarten-streetmap__filters__footer"},yd=["onClick","onKeydown"];const Ad={props:{open:Boolean,datasets:{type:Array,default:function(){return[]}},selectedDatasets:{type:Array,default:function(){return[]}},primaryColor:String,title:{type:String,default:"Filters"},confirm:{type:String,default:"Bevestigen"}},emits:["closeFilters","datasetChange"],setup:function(t,e){var n=e.emit,i=t,s=function(t){var e;return(null===(e=t.features[0])||void 0===e||null===(e=e.properties)||void 0===e||null===(e=e.marker)||void 0===e?void 0:e.color)||i.primaryColor},r=function(t,e){n("datasetChange",t,e)},a=$e(null),l=$e(null),c=function(t){if(i.open&&a.value){var e=a.value.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=e[0],s=e[e.length-1];t.shiftKey?document.activeElement===n&&(t.preventDefault(),s.focus()):document.activeElement===s&&(t.preventDefault(),n.focus())}},h=function(t){i.open&&"Escape"===t.key&&d()},p=function(t){i.open&&a.value&&!a.value.contains(t.target)&&d()},d=function(){var t=document.querySelector(".leaflet-control-filters");t&&t.focus(),n("closeFilters")},f=function(t){null==t||t.preventDefault(),null==t||t.stopPropagation();var e=document.querySelector(".leaflet-control-filters");e&&e.focus(),n("closeFilters")};return ro((function(){return i.open}),function(){var t,e=(t=hd().mark((function t(e){var n;return hd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return document.activeElement,t.next=4,Gr();case 4:null===(n=l.value)||void 0===n||n.focus();case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,s){var r=t.apply(e,n);function o(t){pd(r,i,s,o,a,"next",t)}function a(t){pd(r,i,s,o,a,"throw",t)}o(void 0)}))});return function(t){return e.apply(this,arguments)}}()),ai((function(){document.addEventListener("keydown",c),document.addEventListener("keyup",h),document.addEventListener("mousedown",p)})),pi((function(){document.removeEventListener("keydown",c),document.removeEventListener("keyup",h),document.removeEventListener("mousedown",p)})),function(e,n){return Cs(),Es("div",{ref:function(t,e){e.filterContainer=t,a.value=t},class:"owc-openkaarten-streetmap__filters",style:o({"--owc-filters-primary":t.primaryColor}),role:"dialog","aria-modal":"true","aria-labelledby":"filters-title","aria-describedby":"filters-description"},[Ds("div",ud,[Ds("h5",dd,u(t.title),1),Fs(td,{ref:function(t,e){e.closeButton=t,l.value=t},primaryColor:t.primaryColor,onCloseCard:d},null,8,["primaryColor"])]),Ds("div",fd,[Ds("ul",md,[(Cs(!0),Es(gs,null,$s(t.datasets,(function(e){return Cs(),Es("li",{key:e.id,class:"owc-openkaarten-streetmap__filters__body__list-item"},[Fs(ld,{title:e.title,id:e.id,color:t.primaryColor,selected:t.selectedDatasets.includes(e.id),onOnChange:r},null,8,["title","id","color","selected"]),Ds("div",{style:o({"background-color":s(e)}),class:"owc-openkaarten-streetmap__filters__body__list-item__dl-indicator"},null,4)])})),128))])]),Ds("div",gd,[Ds("button",{class:"owc-openkaarten-streetmap__filters__footer__btn",onClick:ul(f,["stop","prevent"]),onKeydown:fl(ul(f,["stop","prevent"]),["enter"])},u(t.confirm),41,yd)])],4)}}};var _d=n(907),vd={insert:"head",singleton:!1};Ru()(_d.A,vd);_d.A.locals;const xd=(0,Zu.A)(Ad,[["__scopeId","data-v-0580abcc"]]);var Cd={class:"owc-openkaarten-streetmap__tooltip-card__wraper"},bd={key:0,class:"owc-openkaarten-streetmap__tooltip-card__image"},wd=["src","alt"],Pd={class:"owc-openkaarten-streetmap__tooltip-card__content"},Td={class:"owc-openkaarten-streetmap__tooltip-card__header"},kd={class:"owc-openkaarten-streetmap__tooltip-card__title"},Ed={key:0,class:"owc-openkaarten-streetmap__tooltip-card__meta"},Sd={key:1,class:"owc-openkaarten-streetmap__tooltip-card__text"},Ld=["href"],Id=Ds("svg",{"aria-hidden":"true",width:"20",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ds("path",{d:"M10.243 4.91a.833.833 0 0 1 1.178 0l5 5a.833.833 0 0 1 0 1.18l-5 5a.833.833 0 0 1-1.178-1.18l3.577-3.577H4.165a.833.833 0 0 1 0-1.667h9.655L10.243 6.09a.833.833 0 0 1 0-1.178Z",fill:"#fff"})],-1),Nd={class:"sr-only"};const Bd={props:{id:Number,title:{type:String,default:"",required:!0},meta:{type:String,default:""},text:{type:String,default:""},button:{type:Object,default:null},image:{type:String,default:""},properties:{type:Object,default:function(){return{}}},primaryColor:{type:String,required:!0}},emits:["closeCard"],setup:function(t,e){var n=e.emit,i=function(t){if(t){t.focus();var e=function(t){"Escape"===t.key&&n("closeCard")};document.addEventListener("keydown",e),pi((function(){document.removeEventListener("keydown",e)}))}};return ai((function(){i(document.querySelector(".owc-openkaarten-streetmap__tooltip-card"))})),function(e,n){return Cs(),Es("div",{key:t.id,ref:i,class:"owc-openkaarten-streetmap__tooltip-card",tabindex:"0"},[Ds("div",Cd,[t.image?(Cs(),Es("div",bd,[Ds("img",{src:t.image,alt:t.title},null,8,wd)])):Hs("",!0),Ds("div",Pd,[Ds("div",Td,[Ds("h4",kd,u(t.title),1),Fs(td,{primaryColor:t.primaryColor,onCloseCard:n[0]||(n[0]=function(t){return e.$emit("closeCard")})},null,8,["primaryColor"])]),t.meta?(Cs(),Es("div",Ed,u(t.meta),1)):Hs("",!0),t.text?(Cs(),Es("div",Sd,u(t.text),1)):Hs("",!0),t.button?(Cs(),Es("a",{key:2,href:t.button.button_url,class:"owc-openkaarten-streetmap__tooltip-card__button"},[Id,Us(" "+u(t.button.button_text)+" ",1),Ds("span",Nd,"over "+u(t.title),1)],8,Ld)):Hs("",!0)])])])}}};var Md=n(145),Od={insert:"head",singleton:!1};Ru()(Md.A,Od);Md.A.locals;const Dd=Bd;L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,n=this._zoom;if(t.__parent)for(;e.__parent._zoom>=n;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var n,i=this._featureGroup,s=this._nonPointGroup,r=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,h=!0;if(this._map){var p=(new Date).getTime(),u=L.bind((function(){var d=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(r&&c%200==0)if((new Date).getTime()-d>o)break;if((n=t[c])instanceof L.LayerGroup)h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(n,t),l=t.length;else if(n.getLatLng){if(!this.hasLayer(n)&&(this._addLayer(n,this._maxZoom),e||this.fire("layeradd",{layer:n}),n.__parent&&2===n.__parent.getChildCount())){var f=n.__parent.getAllChildMarkers(),m=f[0]===n?f[1]:f[0];i.removeLayer(m)}}else s.addLayer(n),e||this.fire("layeradd",{layer:n})}a&&a(c,l,(new Date).getTime()-p),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(u,this.options.chunkDelay)}),this);u()}else for(var d=this._needsClustering;c<l;c++)(n=t[c])instanceof L.LayerGroup?(h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(n,t),l=t.length):n.getLatLng?this.hasLayer(n)||d.push(n):s.addLayer(n);return this},removeLayers:function(t){var e,n,i=t.length,s=this._featureGroup,r=this._nonPointGroup,o=!0;if(!this._map){for(e=0;e<i;e++)(n=t[e])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(n,t),i=t.length):(this._arraySplice(this._needsClustering,n),r.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push({layer:n,latlng:n._latlng}),this.fire("layerremove",{layer:n}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=i;for(e=0;e<l;e++)(n=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(n,a),l=a.length):this._unspiderfyLayer(n)}for(e=0;e<i;e++)(n=t[e])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(n,t),i=t.length):n.__parent?(this._removeLayer(n,!0,!0),this.fire("layerremove",{layer:n}),s.hasLayer(n)&&(s.removeLayer(n),n.clusterShow&&n.clusterShow())):(r.removeLayer(n),this.fire("layerremove",{layer:n}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;e>=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var n,i,s,r=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(r),i=r.length-1;i>=0;i--){for(n=!0,s=o.length-1;s>=0;s--)if(o[s].layer===r[i]){n=!1;break}n&&t.call(e,r[i])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(n){L.stamp(n)===t&&(e=n)})),e},hasLayer:function(t){if(!t)return!1;var e,n=this._needsClustering;for(e=n.length-1;e>=0;e--)if(n[e]===t)return!0;for(e=(n=this._needsRemoving).length-1;e>=0;e--)if(n[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var n=this._map;"function"!=typeof e&&(e=function(){});var i=function(){!n.hasLayer(t)&&!n.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",i,this),this.off("animationend",i,this),n.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",i,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",i,this),this.on("animationend",i,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,n,i;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,n=this._needsRemoving.length;e<n;e++)(i=this._needsRemoving[e]).newlatlng=i.layer._latlng,i.layer._latlng=i.latlng;for(e=0,n=this._needsRemoving.length;e<n;e++)i=this._needsRemoving[e],this._removeLayer(i.layer,!0),i.layer._latlng=i.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),n=this._needsClustering,this._needsClustering=[],this.addLayers(n,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var n=t.length-1;n>=0;n--)if(t[n]===e)return t.splice(n,1),!0},_removeFromGridUnclustered:function(t,e){for(var n=this._map,i=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());e>=s&&i[e].removeObject(t,n.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,n){t._latlng=e,this.removeLayer(t),t._latlng=n,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,n){var i=this._gridClusters,s=this._gridUnclustered,r=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,h=c._markers;for(this._arraySplice(h,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],i[c._zoom].removeObject(c,o.project(c._cLatLng,c._zoom)),s[c._zoom].addObject(l,o.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(r.removeLayer(c),n||r.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,n){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,n)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),n=" marker-cluster-";return n+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+n,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,s=this.options.spiderfyOnEveryZoom;(e||i||s)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),n&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,n=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===n._childClusters.length;)n=n._childClusters[0];n._zoom===this._maxZoom&&n._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,i=this.options.spiderfyOnEveryZoom,s=this._map;(t||n||i)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),s.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),n=this.options.maxClusterRadius,i=n;"function"!=typeof n&&(i=function(){return n}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var s=t;s>=e;s--)this._gridClusters[s]=new L.DistanceGrid(i(s)),this._gridUnclustered[s]=new L.DistanceGrid(i(s));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var n,i,s=this._gridClusters,r=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=o;e--){n=this._map.project(t.getLatLng(),e);var a=s[e].getNearObject(n);if(a)return a._addChild(t),void(t.__parent=a);if(a=r[e].getNearObject(n)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,e,a,t);s[e].addObject(c,this._map.project(c._cLatLng,e)),a.__parent=c,t.__parent=c;var h=c;for(i=e-1;i>l._zoom;i--)h=new this._markerCluster(this,i,h),s[i].addObject(h,this._map.project(a.getLatLng(),i));return l._addChild(h),void this._removeFromGridUnclustered(a,e)}r[e].addObject(t,n)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var n=e.getAllChildMarkers();this._featureGroup.removeLayer(n[0]),this._featureGroup.removeLayer(n[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var n,i=t.getLayers(),s=0;for(e=e||[];s<i.length;s++)(n=i[s])instanceof L.LayerGroup?this._extractNonGroupLayers(n,e):e.push(n);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var n,i=this._getExpandedVisibleBounds(),s=this._featureGroup,r=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(i,t,r,(function(r){var o,a=r._latlng,l=r._markers;for(i.contains(a)||(a=null),r._isSingleParent()&&t+1===e?(s.removeLayer(r),r._recursivelyAddChildrenToMap(null,e,i)):(r.clusterHide(),r._recursivelyAddChildrenToMap(a,e,i)),n=l.length-1;n>=0;n--)o=l[n],i.contains(o._latlng)||s.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(i,e),s.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(i,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(i,t,r,(function(t){s.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var n=this,i=this._featureGroup;i.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){i.removeLayer(t),t.clusterShow(),n._animationEnd()}))):(this._forceLayout(),n._animationStart(),n._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,n){var i=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(i,s,e+1,n);var r=this;this._forceLayout(),t._recursivelyBecomeVisible(i,n),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(i,n,s,(function(t){t._recursivelyRemoveChildrenFromMap(i,s,e+1)}));r._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,n,i){L.Marker.prototype.initialize.call(this,n?n._cLatLng||n.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,n&&this._addChild(n),i&&this._addChild(i)},getAllChildMarkers:function(t,e){t=t||[];for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n].getAllChildMarkers(t,e);for(var i=this._markers.length-1;i>=0;i--)e&&this._markers[i].__dragStart||t.push(this._markers[i]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,n=this._childClusters.slice(),i=this._group._map,s=i.getBoundsZoom(this._bounds),r=this._zoom+1,o=i.getZoom();n.length>0&&s>r;){r++;var a=[];for(e=0;e<n.length;e++)a=a.concat(n[e]._childClusters);n=a}s>r?this._group._map.setView(this._latlng,r):s<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,n,i,s=this._markers,r=this._childClusters,o=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<s.length;t++)n=s[t]._latlng,this._bounds.extend(n),o+=n.lat,a+=n.lng;for(t=0;t<r.length;t++)(e=r[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),n=e._wLatLng,i=e._childCount,o+=n.lat*i,a+=n.lng*i;this._latlng=this._wLatLng=new L.LatLng(o/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,n){this._recursively(t,this._group._map.getMinZoom(),n-1,(function(t){var n,i,s=t._markers;for(n=s.length-1;n>=0;n--)(i=s[n])._icon&&(i._setPos(e),i.clusterHide())}),(function(t){var n,i,s=t._childClusters;for(n=s.length-1;n>=0;n--)(i=s[n])._icon&&(i._setPos(e),i.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,n,i){this._recursively(t,i,e,(function(s){s._recursivelyAnimateChildrenIn(t,s._group._map.latLngToLayerPoint(s.getLatLng()).round(),n),s._isSingleParent()&&n-1===i?(s.clusterShow(),s._recursivelyRemoveChildrenFromMap(t,e,n)):s.clusterHide(),s._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,n){this._recursively(n,this._group._map.getMinZoom()-1,e,(function(i){if(e!==i._zoom)for(var s=i._markers.length-1;s>=0;s--){var r=i._markers[s];n.contains(r._latlng)&&(t&&(r._backupLatlng=r.getLatLng(),r.setLatLng(t),r.clusterHide&&r.clusterHide()),i._group._featureGroup.addLayer(r))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var n=this._markers[e];n._backupLatlng&&(n.setLatLng(n._backupLatlng),delete n._backupLatlng)}if(t-1===this._zoom)for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i]._restorePosition();else for(var s=this._childClusters.length-1;s>=0;s--)this._childClusters[s]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,n,i){var s,r;this._recursively(t,e-1,n-1,(function(t){for(r=t._markers.length-1;r>=0;r--)s=t._markers[r],i&&i.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}),(function(t){for(r=t._childClusters.length-1;r>=0;r--)s=t._childClusters[r],i&&i.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}))},_recursively:function(t,e,n,i,s){var r,o,a=this._childClusters,l=this._zoom;if(e<=l&&(i&&i(this),s&&l===n&&s(this)),l<e||l<n)for(r=a.length-1;r>=0;r--)(o=a[r])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,e,n,i,s)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}}),n(942),n(518),n(619),n(668),n(143);var Fd=function(t,e){var n,i,s=e.marker,r=e.defaultColor,o=(null==s?void 0:s.color)||r;s&&s.icon?(n=s.icon,i="hosted-svg"):(n='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><g transform="translate(0 -1028.4)"><path d="m12.031 1030.4c-3.8657 0-6.9998 3.1-6.9998 7 0 1.3 0.4017 2.6 1.0938 3.7 0.0334 0.1 0.059 0.1 0.0938 0.2l4.3432 8c0.204 0.6 0.782 1.1 1.438 1.1s1.202-0.5 1.406-1.1l4.844-8.7c0.499-1 0.781-2.1 0.781-3.2 0-3.9-3.134-7-7-7zm-0.031 3.9c1.933 0 3.5 1.6 3.5 3.5 0 2-1.567 3.5-3.5 3.5s-3.5-1.5-3.5-3.5c0-1.9 1.567-3.5 3.5-3.5z" fill="'.concat(o,'"/><path d="m12.031 1.0312c-3.8657 0-6.9998 3.134-6.9998 7 0 1.383 0.4017 2.6648 1.0938 3.7498 0.0334 0.053 0.059 0.105 0.0938 0.157l4.3432 8.062c0.204 0.586 0.782 1.031 1.438 1.031s1.202-0.445 1.406-1.031l4.844-8.75c0.499-0.963 0.781-2.06 0.781-3.2188 0-3.866-3.134-7-7-7zm-0.031 3.9688c1.933 0 3.5 1.567 3.5 3.5s-1.567 3.5-3.5 3.5-3.5-1.567-3.5-3.5 1.567-3.5 3.5-3.5z" fill="').concat(o,'" transform="translate(0 1028.4)"/></g></svg>'),i="inline-svg");var a={iconUrl:n,color:o};return"inline-svg"===i?t.divIcon({className:"leaflet-custom-icon",html:t.Util.template(a.iconUrl,a),iconAnchor:[12,32],iconSize:[25,30],popupAnchor:[0,-28]}):t.divIcon({className:"leaflet-custom-icon--hosted-svg",html:t.Util.template('<div style="--l-icon-color: '.concat(o,';" class="leaflet-svg"><img src=').concat(a.iconUrl," /></div>"),a),iconAnchor:[12,32],iconSize:[25,30],popupAnchor:[0,-28]})},zd=function(t,e){var n,i,s,r,o,a,l=e.title,c=e.type,h=(null===(n=t.properties)||void 0===n?void 0:n.tooltip)||[],p=Array.isArray(h)?h:Object.values(h);return{datasetTitle:l,datasetId:t.id,datasetType:c,locationTitle:(null===(i=p.find((function(t){return"title"===t.layout})))||void 0===i?void 0:i.title)||(null===(s=t.properties)||void 0===s?void 0:s.title),meta:(null===(r=p.find((function(t){return"meta"===t.layout})))||void 0===r?void 0:r.meta)||"",text:(null===(o=p.find((function(t){return"text"===t.layout})))||void 0===o?void 0:o.text)||"",button:p.find((function(t){return"button"===t.layout}))||null,image:(null===(a=p.find((function(t){return"image"===t.layout})))||void 0===a?void 0:a.image)||"",properties:t.properties,coordinates:t.geometry.coordinates}},Rd=function(t,e){return'\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M9 5C8.44772 5 8 5.44772 8 6C8 6.55228 8.44772 7 9 7C9.55228 7 10 6.55228 10 6C10 5.44772 9.55228 5 9 5ZM6.17071 5C6.58254 3.83481 7.69378 3 9 3C10.3062 3 11.4175 3.83481 11.8293 5H19C19.5523 5 20 5.44772 20 6C20 6.55228 19.5523 7 19 7H11.8293C11.4175 8.16519 10.3062 9 9 9C7.69378 9 6.58254 8.16519 6.17071 7H5C4.44772 7 4 6.55228 4 6C4 5.44772 4.44772 5 5 5H6.17071ZM15 11C14.4477 11 14 11.4477 14 12C14 12.5523 14.4477 13 15 13C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11ZM12.1707 11C12.5825 9.83481 13.6938 9 15 9C16.3062 9 17.4175 9.83481 17.8293 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H17.8293C17.4175 14.1652 16.3062 15 15 15C13.6938 15 12.5825 14.1652 12.1707 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H12.1707ZM9 17C8.44772 17 8 17.4477 8 18C8 18.5523 8.44772 19 9 19C9.55228 19 10 18.5523 10 18C10 17.4477 9.55228 17 9 17ZM6.17071 17C6.58254 15.8348 7.69378 15 9 15C10.3062 15 11.4175 15.8348 11.8293 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H11.8293C11.4175 20.1652 10.3062 21 9 21C7.69378 21 6.58254 20.1652 6.17071 19H5C4.44772 19 4 18.5523 4 18C4 17.4477 4.44772 17 5 17H6.17071Z" fill="'.concat(e,'"/>\n </svg>\n <span class="leaflet-control-filters__control-text">').concat(t,"</span>\n")},jd=function(t){return An("data-v-1430f0d4"),t=t(),_n(),t},Ud=jd((function(){return Ds("label",{class:"sr-only",for:"location-search"},"Zoek op straat en/of plaats of postcode",-1)})),Zd={class:"search-wrapper"},Hd={role:"status","aria-live":"polite","aria-atomic":"true",class:"sr-only"},Vd=["placeholder"],qd=[jd((function(){return Ds("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[Ds("path",{d:"M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z"})],-1)}))],Gd=["disabled"],Wd=[jd((function(){return Ds("svg",{"aria-hidden":"true",focusable:"false",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ds("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})],-1)}))];const $d={props:{placeholder:{type:String,default:"Zoeken..."},primaryColor:{type:String,required:!0},resultsCount:{type:Number,default:0}},emits:["search"],setup:function(t,e){var n=e.emit,i=t,s=$e(""),r=function(t){t.preventDefault(),n("search",s.value)},a=function(){s.value="",n("search","")},l=cn((function(){return s.value?"".concat(i.resultsCount,' resultaten gevonden voor "').concat(s.value,'"'):""}));return function(e,n){var i=hs("search");return Cs(),Ss(i,{class:"search-container"},{default:xn((function(){return[Ds("form",{onSubmit:r,class:"search-form",style:o({"--search-primary-color":t.primaryColor})},[Ud,Ds("div",Zd,[Ds("div",Hd,[Ds("span",null,u(Qe(l)),1)]),Ui(Ds("input",{id:"location-search",type:"search","onUpdate:modelValue":n[0]||(n[0]=function(t){return s.value=t}),placeholder:t.placeholder,class:"search-input"},null,8,Vd),[[tl,s.value]]),s.value?(Cs(),Es("button",{key:0,type:"button",class:"search-clear",onClick:a,"aria-label":"Zoekopdracht wissen"},qd)):Hs("",!0),Ds("button",{type:"submit",class:"search-submit",disabled:!s.value,"aria-label":"Zoeken"},Wd,8,Gd)])],36)]})),_:1})}}};var Kd=n(234),Jd={insert:"head",singleton:!1};Ru()(Kd.A,Jd);Kd.A.locals;const Yd=(0,Zu.A)($d,[["__scopeId","data-v-1430f0d4"]]);var Xd=n(843),Qd={insert:"head",singleton:!1};Ru()(Xd.A,Qd);Xd.A.locals;var tf=n(858),ef={insert:"head",singleton:!1};Ru()(tf.A,ef);tf.A.locals;function nf(t){return nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nf(t)}function sf(){sf=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var r=e&&e.prototype instanceof y?e:y,o=Object.create(r.prototype),a=new L(i||[]);return s(o,"_invoke",{value:T(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var u="suspendedStart",d="suspendedYield",f="executing",m="completed",g={};function y(){}function A(){}function _(){}var v={};c(v,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(I([])));C&&C!==n&&i.call(C,o)&&(v=C);var b=_.prototype=y.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(s,r,o,a){var l=p(t[s],t,r);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==nf(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(h).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,a)}))}a(l.arg)}var r;s(this,"_invoke",{value:function(t,i){function s(){return new e((function(e,s){n(t,i,e,s)}))}return r=r?r.then(s,s):s()}})}function T(e,n,i){var s=u;return function(r,o){if(s===f)throw Error("Generator is already running");if(s===m){if("throw"===r)throw o;return{value:t,done:!0}}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var l=k(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===u)throw s=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=f;var c=p(e,n,i);if("normal"===c.type){if(s=i.done?m:d,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(s=m,i.method="throw",i.arg=c.arg)}}}function k(e,n){var i=n.method,s=e.iterator[i];if(s===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=p(s,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function n(){for(;++s<e.length;)if(i.call(e,s))return n.value=e[s],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(nf(e)+" is not iterable")}return A.prototype=_,s(b,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:A,configurable:!0}),A.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(P.prototype),c(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,i,s,r){void 0===r&&(r=Promise);var o=new P(h(t,n,i,s),r);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,l,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=I,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function s(i,s){return a.type="throw",a.arg=e,n.next=i,s&&(n.method="next",n.arg=t),!!s}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return s("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return s(o.catchLoc,!0);if(this.prev<o.finallyLoc)return s(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return s(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return s(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var s=i.arg;S(n)}return s}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function rf(t,e,n,i,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,s)}function of(t){return function(){var e=this,n=arguments;return new Promise((function(i,s){var r=t.apply(e,n);function o(t){rf(r,i,s,o,a,"next",t)}function a(t){rf(r,i,s,o,a,"throw",t)}o(void 0)}))}}function af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function lf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?af(Object(n),!0).forEach((function(e){cf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cf(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=nf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=nf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nf(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hf={class:"owc-openkaarten-streetmap__controls"},pf=Ds("div",{id:"dataset-map"},null,-1),uf={key:0,class:"owc-openkaarten-streetmap__overlay"};const df={props:{datasets:{type:Array,default:function(){return[]}},selectedDatasets:{type:Array,required:!0},primaryColor:{type:String,required:!0,default:"#328725"},tileLayerUri:{type:String,required:!0}},emits:["toggleView","datasetChange"],setup:function(t,e){var n=e.emit,i=t,s=$e(null),r=$e(!1),a=$e(null),l=$e([]),c=$e(""),h=$e(0),p=$e(null),u={spiderfyOnMaxZoom:!0,showCoverageOnHover:!1,zoomToBoundsOnClick:!0,maxClusterRadius:40,disableClusteringAtZoom:13,iconCreateFunction:function(t){var e=t.getChildCount();return $u().divIcon({html:'\n <div class="owc-openkaarten-streetmap__cluster-group">\n <div class="owc-openkaarten-streetmap__cluster-group__circle">\n <span class="owc-openkaarten-streetmap__cluster-group__count">'.concat(e,"</span>\n </div>\n </div>\n "),className:"",iconSize:$u().point(40,40)})}},d=function(){var t;s.value=null,null===(t=document.getElementById("dataset-map"))||void 0===t||t.focus()},f=function(){r.value=!1},m=function(t,e){var i;if(!t)return null;n("datasetChange",t,e);var s=a.value,r=null===(i=l.value.find((function(e){return e.id===t})))||void 0===i?void 0:i.cluster,o=s.hasLayer(r);if(e){if(o)return null;s.addLayer(r)}else s.removeLayer(r)},g=function(t,e){if("Polygon"===t.geometry.type)return new($u().GeoJSON)(t,{style:function(){var e,n,s,r=(n=null===(e=t.properties)||void 0===e?void 0:e.marker)?n.color?n.color:null!==(s=n.icon)&&void 0!==s&&s.color?n.icon.color:i.primaryColor:i.primaryColor;return{color:r,fillColor:r,fillOpacity:.2,weight:2}}});if("MultiPoint"===t.geometry.type){var n=$u().featureGroup();return t.geometry.coordinates.forEach((function(e){var s,r=$u().latLng(e[1],e[0]),o=Fd($u(),{marker:null===(s=t.properties)||void 0===s?void 0:s.marker,defaultColor:i.primaryColor}),a=new($u().Marker)(r,{icon:o});n.addLayer(a)})),n}return new($u().GeoJSON)(t,{pointToLayer:function(t,e){var n,s=Fd($u(),{marker:null===(n=t.properties)||void 0===n?void 0:n.marker,defaultColor:i.primaryColor});return new($u().Marker)(e,{icon:s})}})},y=function(t){var e=function(t){var e=null,n=null,i=null,s=null,r=function(t){if(!Array.isArray(t[0])){var o=t[1],a=t[0];return e=null===e?o:Math.min(e,o),n=null===n?o:Math.max(n,o),i=null===i?a:Math.min(i,a),void(s=null===s?a:Math.max(s,a))}t.forEach((function(t){Array.isArray(t[0])?t.forEach((function(t){return r(t.slice())})):r(t.slice())}))};return t.forEach((function(t){var e=t.features;Array.isArray(e)||(e=[e]),e.forEach((function(t){var e=t.geometry;r(e.coordinates.slice())}))})),{minLat:e,maxLat:n,minLong:i,maxLong:s}}(t),o=function(t){return{lat:(t.minLat+t.maxLat)/2,long:(t.minLong+t.maxLong)/2}}(e),c={centerX:o.lat,centerY:o.long,minimumZoom:4,maximumZoom:18,defaultZoom:12,enableHomeControl:!0,enableZoomControl:!0,enableBoxZoomControl:!0,maxBounds:[[e.minLat,e.minLong],[e.maxLat,e.maxLong]]},h=new($u().Map)("dataset-map",{center:[c.centerX,c.centerY],zoom:c.defaultZoom,minZoom:c.minimumZoom,maxZoom:c.maximumZoom,zoomControl:c.enableZoomControl,boxZoom:c.enableBoxZoomControl,defaultExtentControl:c.enableHomeControl});h.setView([c.centerX,c.centerY],c.defaultZoom);var p=t.filter((function(t){return i.selectedDatasets.includes(t.id)})).map((function(t){var e=h.createPane(t.title.replace(" ","_")),n=$u().markerClusterGroup(lf(lf({},u),{},{clusterPane:e}));return t.features.constructor!==Array&&(t.features=[t.features]),t.features.forEach((function(e){var i=g(e);!function(t,e,n){t.on("click",(function(){s.value=zd(e,n)})),t.on("keydown",(function(t){13===t.originalEvent.keyCode&&(s.value=zd(e,n))}))}(i,e,t),n.addLayer(i)})),{id:t.id,cluster:n}}));$u().Control.DataLayerFilters=$u().Control.extend({options:{position:"topleft"},onAdd:function(){var t=$u().DomUtil.create("button","leaflet-control-filters");$u().DomEvent.addListener(t,"click",$u().DomEvent.stopPropagation).addListener(t,"click",$u().DomEvent.preventDefault).addListener(t,"click",(function(){r.value=!r.value}));return t.title="Filter",t.innerHTML=Rd("Filter",i.primaryColor),t}}),$u().Control.ListViewToggle=$u().Control.extend({options:{position:"topleft"},onAdd:function(){var t=$u().DomUtil.create("button","leaflet-control-list-view");$u().DomEvent.addListener(t,"click",$u().DomEvent.stopPropagation).addListener(t,"click",$u().DomEvent.preventDefault).addListener(t,"click",(function(){n("toggleView")}));var e="Lijst";return t.title=e,t.innerHTML=function(t,e){return'\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">\n <g clip-path="url(#a)" stroke="'.concat(e,'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M9 6h11M9 12h11M9 18h11M5 6v.01M5 12v.01M5 18v.01"/>\n </g>\n </svg>\n <span class="leaflet-control-list-view__control-text">').concat(t,"</span>\n")}(e,i.primaryColor),t}});var d=new($u().TileLayer)(i.tileLayerUri),f=new($u().Control.DataLayerFilters),m=new($u().Control.ListViewToggle);h.addLayer(d),h.addControl(m),(null==p?void 0:p.length)>1&&h.addControl(f),p.forEach((function(t){var e=t.cluster;h.addLayer(e)})),l.value=p,a.value=h};ai(of(sf().mark((function t(){return sf().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:document.getElementById("dataset-map")&&y(i.datasets);case 1:case"end":return t.stop()}}),t)}))));var A=function(){var t=of(sf().mark((function t(e){var n,i,s,r,o,l,u,d;return sf().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c.value=e,(n=a.value)&&e){t.next=4;break}return t.abrupt("return");case 4:return t.prev=4,t.next=7,fetch("https://nominatim.openstreetmap.org/search?format=json&q=".concat(encodeURIComponent(e)));case 7:return i=t.sent,t.next=10,i.json();case 10:(s=t.sent).length>0&&(r=s[0],o=r.lat,l=r.lon,u=$u().latLng(parseFloat(o),parseFloat(l)),d=$u().icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",iconSize:[15,24],iconAnchor:[0,24],popupAnchor:[8,-7]}),n&&n._loaded&&(n.once("zoomend",(function(){p.value&&n.removeLayer(p.value);var t=$u().marker(u,{icon:d});t.addTo(n),t.bindPopup("Gevonden locatie"),p.value=t})),n.flyTo(u,15,{animate:!0,duration:1})),h.value=s.length?1:0),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),console.error("Error in retrieving location:",t.t0);case 17:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(e){return t.apply(this,arguments)}}();return function(e,n){return Cs(),Es("div",{class:"owc-openkaarten-streetmap__map",style:o({"--owc-openkaarten-streetmap--primary-color":t.primaryColor,"--owc-openkaarten-streetmap--cluster-color":i.primaryColor})},[Ds("div",hf,[Fs(Yd,{placeholder:"Zoek op straat en/of plaats of postcode","primary-color":t.primaryColor,"results-count":h.value,onSearch:A},null,8,["primary-color","results-count"])]),pf,Fs(Sa,{name:"fade"},{default:xn((function(){return[r.value?(Cs(),Es("div",uf)):Hs("",!0)]})),_:1}),Fs(Sa,{name:"slide"},{default:xn((function(){return[t.datasets&&t.datasets.length>1&&r.value?(Cs(),Ss(xd,{key:0,open:r.value,datasets:t.datasets.filter((function(t){return t.features.length})),selectedDatasets:t.selectedDatasets,primaryColor:t.primaryColor,onCloseFilters:f,onDatasetChange:m},null,8,["open","datasets","selectedDatasets","primaryColor"])):Hs("",!0)]})),_:1}),s.value?(Cs(),Ss(Dd,{key:s.value.datasetId,id:s.value.datasetId,title:s.value.locationTitle,meta:s.value.meta,text:s.value.text,button:s.value.button,image:s.value.image,properties:s.value.properties,primaryColor:t.primaryColor,onCloseCard:d},null,8,["id","title","meta","text","button","image","properties","primaryColor"])):Hs("",!0)],4)}}};var ff=n(93),mf={insert:"head",singleton:!1};Ru()(ff.A,mf);ff.A.locals;const gf=df;var yf={class:"base-list-card"},Af={class:"base-list-card__content"},_f={class:"base-list-card__title"},vf={key:0,class:"base-list-card__address"},xf={key:1,class:"base-list-card__description"},Cf={key:0,class:"base-list-card__image"},bf=["src","alt"];const wf={props:{title:{type:String,required:!0},address:{type:String,default:""},description:{type:String,default:""},image:{type:String,default:""},primaryColor:{type:String,default:"#328725"}},setup:function(t){return function(e,n){return Cs(),Es("div",yf,[Ds("div",Af,[Ds("div",null,[Ds("h3",_f,u(t.title),1),t.address?(Cs(),Es("p",vf,u(t.address),1)):Hs("",!0),t.description?(Cs(),Es("p",xf,u(t.description),1)):Hs("",!0)]),Js(e.$slots,"footer")]),t.image?(Cs(),Es("div",Cf,[Ds("img",{src:t.image,alt:t.title},null,8,bf)])):Hs("",!0)])}}};var Pf=n(937),Tf={insert:"head",singleton:!1};Ru()(Pf.A,Tf);Pf.A.locals;const kf=wf;function Ef(t){return Ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(t)}function Sf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Lf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sf(Object(n),!0).forEach((function(e){If(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function If(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Ef(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Ef(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ef(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nf={class:"list-view__controls"},Bf=["innerHTML"],Mf=["innerHTML"],Of={key:0,class:"owc-openkaarten-streetmap__overlay"},Df={class:"list-view__results"},Ff=["href"],zf=Ds("svg",{"aria-hidden":"true",width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ds("path",{d:"M10.243 4.41a.833.833 0 0 1 1.178 0l5 5a.833.833 0 0 1 0 1.18l-5 5a.833.833 0 0 1-1.178-1.18l3.577-3.577H4.165a.833.833 0 0 1 0-1.667h9.655L10.243 5.59a.833.833 0 0 1 0-1.178Z",fill:"#1261A3"})],-1),Rf={class:"sr-only"};const jf={props:{datasets:{type:Array,required:!0},selectedDatasets:{type:Array,required:!0},primaryColor:{type:String,required:!0}},emits:["toggleView","datasetChange"],setup:function(t,e){var n=e.emit,i=t,s=$e(""),r=cn((function(){var t=i.datasets.filter((function(t){return i.selectedDatasets.includes(t.id)})).flatMap((function(t){return t.features.map((function(e){var n,i,s,r,o,a,l,c,h,p=(null===(n=e.properties)||void 0===n?void 0:n.tooltip)||[],u=e.geometry.coordinates,d=[null===(i=p.find((function(t){return"meta"===t.layout})))||void 0===i?void 0:i.meta,null===(s=p.find((function(t){return"title"===t.layout})))||void 0===s?void 0:s.title,null===(r=p.find((function(t){return"text"===t.layout})))||void 0===r?void 0:r.text,null===(o=e.properties)||void 0===o?void 0:o.name,null===(a=e.properties)||void 0===a?void 0:a.description,u?"".concat(u[1],",").concat(u[0]):null].filter(Boolean).join(" ");return Lf(Lf({},e),{},{datasetId:t.id,datasetTitle:t.title,title:(null===(l=p.find((function(t){return"title"===t.layout})))||void 0===l?void 0:l.title)||e.title,meta:(null===(c=p.find((function(t){return"meta"===t.layout})))||void 0===c?void 0:c.meta)||"",text:(null===(h=p.find((function(t){return"text"===t.layout})))||void 0===h?void 0:h.text)||"",searchableText:d.toLowerCase()})}))}));if(s.value){var e=s.value.toLowerCase();t=t.filter((function(t){return t.searchableText.includes(e)}))}return t})),a=$e(!1),l=function(){a.value=!a.value},c=function(){n("toggleView")},h=cn((function(){return Rd("Filter",i.primaryColor)})),p=cn((function(){return t="Kaart",e=i.primaryColor,'\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M20.5 3L20.34 3.03L15 5.1L9 3L3.36 4.9C3.15 4.97 3 5.15 3 5.38V20.5C3 20.78 3.22 21 3.5 21L3.66 20.97L9 18.9L15 21L20.64 19.1C20.85 19.03 21 18.85 21 18.62V3.5C21 3.22 20.78 3 20.5 3ZM15 19L9 16.89V5L15 7.11V19Z" fill="'.concat(e,'"/>\n </svg>\n <span class="leaflet-control-map-view__control-text">').concat(t,"</span>\n");var t,e})),d=function(t,e){n("datasetChange",t,e)},f=function(){a.value=!1},m=$e(12),g=$e([]),y=cn((function(){return r.value.slice(0,m.value)})),A=cn((function(){return m.value<r.value.length})),_=function(){var t=m.value+12;m.value=Math.min(t,r.value.length),Gr((function(){var t=m.value-12,e=g.value[t];e&&e.focus()}))},v=function(t){s.value=t};return function(e,n){return Cs(),Es("div",{class:"list-view",style:o({"--owc-filters-primary":t.primaryColor,"--owc-openkaarten-streetmap--primary-color":t.primaryColor,"--owc-filters-secondary":"#d2d2d2"})},[Ds("div",Nf,[Fs(Yd,{"primary-color":t.primaryColor,"results-count":Qe(r).length,onSearch:v},null,8,["primary-color","results-count"]),Ds("button",{onClick:c,class:"list-view__map-button",innerHTML:Qe(p)},null,8,Bf),t.datasets.length>1?(Cs(),Es("button",{key:0,onClick:l,class:"list-view__filters-button",innerHTML:Qe(h)},null,8,Mf)):Hs("",!0)]),Fs(Sa,{name:"fade"},{default:xn((function(){return[a.value?(Cs(),Es("div",Of)):Hs("",!0)]})),_:1}),Fs(Sa,{name:"slide"},{default:xn((function(){return[a.value?(Cs(),Ss(xd,{key:0,open:a.value,datasets:t.datasets.filter((function(t){return t.features.length&&!t.features.every((function(t){var e;return"Polygon"===(null===(e=t.geometry)||void 0===e?void 0:e.type)}))})),selectedDatasets:t.selectedDatasets,primaryColor:t.primaryColor,onCloseFilters:f,onDatasetChange:d},null,8,["open","datasets","selectedDatasets","primaryColor"])):Hs("",!0)]})),_:1}),Ds("ul",Df,[(Cs(!0),Es(gs,null,$s(Qe(y),(function(e,n){return Cs(),Es("li",{key:"".concat(e.datasetId,"-").concat(e.properties.id),class:"list-view__item",ref:function(t){g.value[n]=t},tabindex:"0"},[Fs(kf,{title:e.title||e.datasetTitle,address:e.meta,description:e.text,image:e.image,primaryColor:t.primaryColor},{footer:xn((function(){return[e.button?(Cs(),Es("a",{key:0,href:e.button.button_url,class:"base-list-card__button"},[zf,Us(" "+u(e.button.button_text)+" ",1),Ds("span",Rf,"over "+u(e.title),1)],8,Ff)):Hs("",!0)]})),_:2},1032,["title","address","description","image","primaryColor"])],512)})),128)),Qe(A)?(Cs(),Es("button",{key:0,onClick:_,class:"list-view__load-more",style:o({"--button-color":t.primaryColor})}," Toon meer resultaten ("+u(Qe(y).length)+" van "+u(Qe(r).length)+") ",5)):Hs("",!0)])],4)}}};var Uf=n(274),Zf={insert:"head",singleton:!1};Ru()(Uf.A,Zf);Uf.A.locals;const Hf=jf;function Vf(t){return Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(t)}function qf(){qf=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var r=e&&e.prototype instanceof y?e:y,o=Object.create(r.prototype),a=new L(i||[]);return s(o,"_invoke",{value:T(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var u="suspendedStart",d="suspendedYield",f="executing",m="completed",g={};function y(){}function A(){}function _(){}var v={};c(v,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(I([])));C&&C!==n&&i.call(C,o)&&(v=C);var b=_.prototype=y.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(s,r,o,a){var l=p(t[s],t,r);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==Vf(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(h).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,a)}))}a(l.arg)}var r;s(this,"_invoke",{value:function(t,i){function s(){return new e((function(e,s){n(t,i,e,s)}))}return r=r?r.then(s,s):s()}})}function T(e,n,i){var s=u;return function(r,o){if(s===f)throw Error("Generator is already running");if(s===m){if("throw"===r)throw o;return{value:t,done:!0}}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var l=k(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===u)throw s=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=f;var c=p(e,n,i);if("normal"===c.type){if(s=i.done?m:d,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(s=m,i.method="throw",i.arg=c.arg)}}}function k(e,n){var i=n.method,s=e.iterator[i];if(s===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=p(s,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function n(){for(;++s<e.length;)if(i.call(e,s))return n.value=e[s],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(Vf(e)+" is not iterable")}return A.prototype=_,s(b,"constructor",{value:_,configurable:!0}),s(_,"constructor",{value:A,configurable:!0}),A.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(P.prototype),c(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,i,s,r){void 0===r&&(r=Promise);var o=new P(h(t,n,i,s),r);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,l,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=I,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function s(i,s){return a.type="throw",a.arg=e,n.next=i,s&&(n.method="next",n.arg=t),!!s}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return s("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return s(o.catchLoc,!0);if(this.prev<o.finallyLoc)return s(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return s(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return s(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var s=i.arg;S(n)}return s}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function Gf(t,e,n,i,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,s)}const Wf={props:{endpoint:{type:String,default:"",required:!0},datasetIds:{type:Array,default:function(){return[]}},tileLayerUri:{type:String,default:"https://{s}.tile.osm.org/{z}/{x}/{y}.png",required:!0}},setup:function(t){var e=t,n=$e(null),i=$e(!1),s=$e(null),r=$e(null),o=$e([]),a=$e("#328725"),l=$e(!1),c=$e([]),p=function(t,e){if(!t)return null;if(e){var n=c.value;n.push(t),c.value=n}else c.value=c.value.filter((function(e){return e!==t}))},u=$e(null),d=function(){l.value=!l.value,Gr((function(){u.value&&u.value.focus()}))};function f(){var t;return t=qf().mark((function t(){var a,l;return qf().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.value=!0,e.endpoint){t.next=6;break}return console.error("Error: Endpoint URL is missing."),n.value="Endpoint URL is not defined.",i.value=!1,t.abrupt("return");case 6:t.prev=6,new URL(e.endpoint),t.next=16;break;case 10:return t.prev=10,t.t0=t.catch(6),console.error("Invalid endpoint URL:",t.t0),t.t0.value="Endpoint URL is invalid.",i.value=!1,t.abrupt("return");case 16:if(!(e.datasetIds.length>0)){t.next=28;break}if(a=m(e.endpoint)){t.next=23;break}return console.error("Invalid endpoint after stripping credentials."),n.value="Invalid endpoint URL after credential removal.",i.value=!1,t.abrupt("return");case 23:return l={url:"".concat(a,"/datasets?include=").concat(JSON.parse(e.datasetIds)),username:s.value,password:r.value},t.next=26,fetch("/wp-json/openkaarten-frontend-plugin/v1/proxy-datasets",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}).then((function(t){return t.ok?t.json():t.json().then((function(e){throw console.error("Server error response:",e),n.value="Status ".concat(t.status," ").concat(e.debug_info),new Error(e.message||"HTTP ".concat(t.status))})).catch((function(){throw new Error("Proxy error: ".concat(t.status))}))})).then((function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.error("Parsing error",t),void(o.value=[])}t&&"DatasetCollection"===t.type&&Array.isArray(t.datasets)?(o.value=t.datasets,c.value=o.value.map((function(t){return t.id}))):(n.value="Unexpected response format or 'datasets' is not an array.",console.error("Unexpected response format or 'datasets' is not an array."),o.value=[]),i.value=!1})).catch((function(t){t.response&&500===t.response.status?n.value="The server might be having issues, please try again later":t.message.includes("500")&&(n.value="The server is busy at the moment, please try again later"),i.value=!1}));case 26:t.next=29;break;case 28:i.value=!1;case 29:case"end":return t.stop()}}),t,null,[[6,10]])})),f=function(){var e=this,n=arguments;return new Promise((function(i,s){var r=t.apply(e,n);function o(t){Gf(r,i,s,o,a,"next",t)}function a(t){Gf(r,i,s,o,a,"throw",t)}o(void 0)}))},f.apply(this,arguments)}function m(t){try{var e=new URL(t);return s.value=e.username,r.value=e.password,(e.username||e.password)&&(e.username="",e.password=""),e.toString()}catch(e){return console.error("Invalid URL provided:",e),t}}return ai((function(){!function(){f.apply(this,arguments)}()})),function(e,s){return Cs(),Es("div",{class:"owc-openkaarten-streetmap-container",ref:function(t,e){e.containerRef=t,u.value=t},tabindex:"-1"},[n.value?(Cs(),Ss(Hu,{key:0,type:"error",message:n.value},null,8,["message"])):Hs("",!0),Ds("section",{class:h(["owc-openkaarten-streetmap__results",{"owc-openkaarten-streetmap__results--loading":i.value}]),"aria-live":"polite","aria-atomic":"true"},[Fs(Gu,{loading:i.value},null,8,["loading"]),i.value||l.value?Hs("",!0):(Cs(),Ss(gf,{key:0,title:"map",datasets:o.value,selectedDatasets:c.value,tileLayerUri:t.tileLayerUri,primaryColor:a.value,onToggleView:d,onDatasetChange:p},null,8,["datasets","selectedDatasets","tileLayerUri","primaryColor"])),!i.value&&l.value?(Cs(),Ss(Hf,{key:1,datasets:o.value,selectedDatasets:c.value,primaryColor:a.value,onToggleView:d,onDatasetChange:p},null,8,["datasets","selectedDatasets","primaryColor"])):Hs("",!0)],2)],512)}}};var $f=n(738),Kf={insert:"head",singleton:!1};Ru()($f.A,Kf);$f.A.locals;function Jf(t){return Jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(t)}function Yf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Xf(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Jf(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=Jf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jf(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}wl(Wf,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yf(Object(n),!0).forEach((function(e){Xf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},document.getElementById("owc-openkaarten-streetmap").dataset)).mount("#owc-openkaarten-streetmap")},764:(t,e,n)=>{var i;null!==(i=window)&&void 0!==i&&i.__webpack_nonce__&&(n.nc=window.__webpack_nonce__)},318:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/leaflet/dist/layers-2x.png?8f2c4d11474275fbc1614b9098334eae"},621:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/leaflet/dist/layers.png?416d91365b44e4b4f4777663e6f009f3"},563:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/leaflet/dist/marker-icon.png?2b3e1faf89f94a4835397e7a43b4f77d"},858:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}","",{version:3,sources:["webpack://./node_modules/leaflet.markercluster/dist/MarkerCluster.css"],names:[],mappings:"AAAA,wFAIC,qDACD,CAEA,4BAKC,oEACD",sourcesContent:[".leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {\n\t-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;\n\ttransition: transform 0.3s ease-out, opacity 0.3s ease-in;\n}\n\n.leaflet-cluster-spider-leg {\n\t/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */\n\t-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;\n\t-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;\n\t-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;\n\ttransition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;\n}\n"],sourceRoot:""}]);const a=o},843:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var i=n(627),s=n.n(i),r=n(798),o=n.n(r),a=n(21),l=n.n(a),c=n(621),h=n(318),p=n(563),u=o()(s()),d=l()(c.A),f=l()(h.A),m=l()(p.A);u.push([t.id,".leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:0 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-height:none!important;max-width:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-height:none!important;max-width:none!important;padding:0;width:auto}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;height:0;width:0;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:hsla(0,0%,100%,.5);border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;color:#000;display:block;height:26px;line-height:26px;text-align:center;text-decoration:none;width:26px}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:focus,.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.leaflet-bar a.leaflet-disabled{background-color:#f4f4f4;color:#bbb;cursor:default}.leaflet-touch .leaflet-bar a{height:30px;line-height:30px;width:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,.4)}.leaflet-control-layers-toggle{background-image:url("+d+");height:36px;width:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url("+f+");background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{overflow-x:hidden;overflow-y:scroll;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url("+m+')}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;line-height:1.4;padding:0 5px}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;height:.6669em;vertical-align:baseline!important;width:1em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background:hsla(0,0%,100%,.8);border:2px solid #777;border-top:none;box-sizing:border-box;line-height:1.1;padding:2px 5px 1px;text-shadow:1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:none;border-top:2px solid #777;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{margin-bottom:20px;position:absolute;text-align:center}.leaflet-popup-content-wrapper{border-radius:12px;padding:1px;text-align:left}.leaflet-popup-content{font-size:13px;font-size:1.08333em;line-height:1.3;margin:13px 24px 13px 20px;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{height:20px;left:50%;margin-left:-20px;margin-top:-1px;overflow:hidden;pointer-events:none;position:absolute;width:40px}.leaflet-popup-tip{height:17px;margin:-10px auto 0;padding:1px;pointer-events:auto;transform:rotate(45deg);width:17px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);color:#333}.leaflet-container a.leaflet-popup-close-button{background:transparent;border:none;color:#757575;font:16px/24px Tahoma,Verdana,sans-serif;height:24px;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:24px}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);margin:0 auto;width:24px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{background-color:#fff;border:1px solid #fff;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.4);color:#222;padding:6px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:transparent;border:6px solid transparent;content:"";pointer-events:none;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{border-top-color:#fff;bottom:0;margin-bottom:-12px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-left:-6px;margin-top:-12px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;left:0;margin-left:-12px}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}',"",{version:3,sources:["webpack://./node_modules/leaflet/dist/leaflet.css"],names:[],mappings:"AAEA,6LAWC,MAAO,CADP,iBAAkB,CAElB,KACA,CACD,mBACC,eACA,CACD,0DAMG,sBAAuB,CAHzB,wBAAyB,CACtB,qBAAsB,CACjB,gBAER,CAED,8BACC,sBACD,CAFA,yBACC,sBACD,CAEA,8BACC,yCACA,CAED,wCAEC,aAAc,CACd,4BAA6B,CAF7B,YAGA,CACD,4CAEC,aACA,CAGD,6CAEC,yBAA2B,CAD3B,wBAEA,CACD,8MAMC,yBAA2B,CAD3B,wBAA0B,CAG1B,SAAU,CADV,UAEA,CAED,oCAEC,2BACD,CAEA,sCAEC,wBACA,CACD,sCAGC,iBAAkB,CAClB,uBACD,CACA,yDAEC,iBACD,CACA,mBACC,uCACD,CACA,qBACC,+CACD,CACA,cACC,cAAe,CACf,iBACA,CACD,qBACC,kBACA,CACD,kBAIM,qBAAsB,CAF3B,QAAS,CADT,OAAQ,CAIR,WACA,CAED,0BACC,qBACA,CAED,cAAwB,WAAc,CAEtC,mBAAwB,WAAc,CACtC,sBAAwB,WAAc,CACtC,qBAAwB,WAAc,CACtC,qBAAwB,WAAc,CACtC,sBAA0B,WAAc,CACxC,oBAAwB,WAAc,CAEtC,yBAA2B,WAAc,CACzC,sBAA2B,WAAc,CAEzC,mBAEC,UAAW,CADX,SAEA,CACD,MACC,0BAA2B,CAC3B,oBAAqB,CACrB,iBACA,CAKD,iBAGC,6BAA8B,CAC9B,mBAAoB,CAHpB,iBAAkB,CAClB,WAGA,CACD,6BAIC,mBAAoB,CAFpB,iBAAkB,CAClB,YAEA,CACD,aACC,KACA,CACD,eACC,OACA,CACD,gBACC,QACA,CACD,cACC,MACA,CACD,iBAEC,UAAW,CADX,UAEA,CACD,gCACC,WACA,CACD,8BACC,eACA,CACD,iCACC,kBACA,CACD,+BACC,gBACA,CACD,gCACC,iBACA,CAKD,kCACC,SAAU,CAGF,6BACR,CACD,oDACC,SACA,CACD,uBAGS,oBACR,CACD,0BACC,qBACD,CAEA,0CAGS,iDACR,CACD,iEAIS,eACR,CAED,sCACC,iBACA,CAKD,qBACC,cACA,CACD,cAGC,WACA,CACD,2DAEC,gBACA,CACD,qCAEC,WACA,CACD,iIAGC,WAAY,CAGZ,eACA,CAGD,gHAKC,mBACA,CAED,8KAIC,6BAA8B,CAC9B,mBACA,CAID,mBACC,eAAgB,CAChB,kBACA,CACD,qBACC,aACA,CACD,kBAEC,6BAAiC,CADjC,sBAEA,CAID,mBACC,qDAA2D,CAC3D,cAAe,CACf,gBAAkB,CAClB,eACA,CAKD,aAEC,iBAAkB,CADlB,oCAEA,CACD,eACC,qBAAsB,CACtB,4BAA6B,CAO7B,UAAY,CAHZ,aAAc,CAFd,WAAY,CACZ,gBAAiB,CAEjB,iBAAkB,CAClB,oBAAqB,CALrB,UAOA,CACD,8CAEC,2BAA4B,CAC5B,2BAA4B,CAC5B,aACA,CACD,0CAEC,wBACA,CACD,2BACC,0BAA2B,CAC3B,2BACA,CACD,0BAGC,kBAAmB,CAFnB,6BAA8B,CAC9B,8BAEA,CACD,gCAEC,wBAAyB,CACzB,UAAW,CAFX,cAGA,CAED,8BAEC,WAAY,CACZ,gBAAiB,CAFjB,UAGA,CACD,0CACC,0BAA2B,CAC3B,2BACA,CACD,yCACC,6BAA8B,CAC9B,8BACA,CAID,mDAEC,6CAAmD,CACnD,eACA,CAED,iFACC,cACA,CAKD,wBAEC,eAAgB,CAChB,iBAAkB,CAFlB,mCAGA,CACD,+BACC,wDAAwC,CAExC,WAAY,CADZ,UAEA,CACD,+CACC,wDAA2C,CAC3C,yBACA,CACD,8CAEC,WAAY,CADZ,UAEA,CACD,qHAEC,YACA,CACD,8DACC,aAAc,CACd,iBACA,CACD,iCAGC,eAAgB,CADhB,UAAW,CADX,wBAGA,CACD,kCAEC,iBAAkB,CADlB,iBAAkB,CAElB,iBACA,CACD,iCACC,cAAe,CACf,iBAAkB,CAClB,OACA,CACD,8BACC,aAAc,CACd,cAAe,CACf,mBACA,CACD,kCAEC,yBAA0B,CAD1B,QAAS,CAET,yBACA,CAGD,2BACC,wDACA,CAKD,gDACC,eAAgB,CAChB,6BAAoC,CACpC,QACA,CACD,yDAGC,UAAW,CACX,eAAgB,CAFhB,aAGA,CACD,+BACC,oBACA,CACD,0EAEC,yBACA,CACD,0BACC,wBAA0B,CAG1B,cAAgB,CAFhB,iCAAmC,CACnC,SAEA,CACD,qCACC,eACA,CACD,uCACC,iBACA,CACD,4BAQC,6BAAoC,CANpC,qBAAgB,CAAhB,eAAgB,CAKX,qBAAsB,CAJ3B,eAAgB,CAChB,mBAAoB,CAKpB,wBAAyB,CAJzB,kBAKA,CACD,8CAEC,kBAAmB,CADnB,yBAA0B,CAE1B,eACA,CACD,+DACC,4BACA,CAED,+GAGC,eACA,CACD,mEAGC,2BAA4B,CAD5B,+BAEA,CAKD,eAGC,kBAAmB,CAFnB,iBAAkB,CAClB,iBAEA,CACD,+BAGC,kBAAmB,CAFnB,WAAY,CACZ,eAEA,CACD,uBAGC,cAAe,CACf,mBAAoB,CAFpB,eAAgB,CADhB,0BAA2B,CAI3B,cACA,CACD,yBAEC,cACA,CACD,6BAEC,WAAY,CAEZ,QAAS,CAET,iBAAkB,CADlB,eAAgB,CAEhB,eAAgB,CAChB,mBAAoB,CALpB,iBAAkB,CAFlB,UAQA,CACD,mBAEC,WAAY,CAGZ,mBAAoB,CAFpB,WAAY,CAGZ,mBAAoB,CAKZ,uBAAwB,CAVhC,UAWA,CACD,kDAEC,eAAiB,CAEjB,oCAAsC,CADtC,UAEA,CACD,gDAWC,sBAAuB,CAPvB,WAAY,CAKZ,aAAc,CADd,wCAA2C,CAD3C,WAAY,CANZ,iBAAkB,CAElB,OAAQ,CAER,iBAAkB,CAKlB,oBAAqB,CARrB,KAAM,CAIN,UAMA,CACD,4GAEC,aACA,CACD,wBACC,aACA,CAED,8CACC,UACA,CACD,kCAIC,sHAAuH,CACvH,6GAAiH,CAHjH,aAAc,CADd,UAKA,CAED,4JAIC,qBACA,CAKD,kBACC,eAAgB,CAChB,qBACA,CAKD,iBAGC,qBAAsB,CACtB,qBAAsB,CACtB,iBAAkB,CAQlB,mCAAqC,CAPrC,UAAW,CAJX,WAAY,CAUZ,mBAAoB,CAXpB,iBAAkB,CAOlB,wBAAyB,CACzB,qBAAsB,CAEtB,gBAAiB,CAJjB,kBAOA,CACD,qCACC,cAAe,CACf,mBACA,CACD,sHAOC,sBAAuB,CADvB,4BAA6B,CAE7B,UAAW,CAHX,mBAAoB,CADpB,iBAKA,CAID,wBACC,cACD,CACA,qBACC,eACD,CACA,2DAEC,QAAS,CACT,gBACA,CACD,4BAGC,qBAAsB,CAFtB,QAAS,CACT,mBAEA,CACD,+BAIC,wBAAyB,CADzB,gBAAiB,CADjB,gBAAiB,CADjB,KAIA,CACD,sBACC,gBACD,CACA,uBACC,eACD,CACA,2DAGC,eAAgB,CADhB,OAEA,CACD,6BAGC,sBAAuB,CADvB,kBAAmB,CADnB,OAGA,CACD,8BAGC,uBAAwB,CAFxB,MAAO,CACP,iBAEA,CAID,aAEC,iBACC,gCAAiC,CACjC,wBACA,CACD",sourcesContent:['/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t -moz-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers "stretching" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\twidth: auto;\r\n\tpadding: 0;\r\n\t}\r\n\r\n.leaflet-container img.leaflet-tile {\r\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\r\n\tmix-blend-mode: plus-lighter;\r\n}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn\'t support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane { z-index: 400; }\r\n\r\n.leaflet-tile-pane { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }\r\n.leaflet-shadow-pane { z-index: 500; }\r\n.leaflet-marker-pane { z-index: 600; }\r\n.leaflet-tooltip-pane { z-index: 650; }\r\n.leaflet-popup-pane { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn\'t have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t -moz-transition: opacity 0.2s linear;\r\n\t transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t -ms-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\r\n\t}\r\nsvg.leaflet-zoom-animated {\r\n\twill-change: transform;\r\n}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t -moz-transition: none;\r\n\t transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor: -moz-grab;\r\n\tcursor: grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor: -moz-grabbing;\r\n\tcursor: grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn\'t have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline-offset: 1px;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-size: 0.75rem;\r\n\tline-height: 1.5;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover,\r\n.leaflet-bar a:focus {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px \'Lucida Console\', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers.png);\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers-2x.png);\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\r\n\tbackground-image: url(images/marker-icon.png);\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover,\r\n.leaflet-control-attribution a:focus {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-attribution-flag {\r\n\tdisplay: inline !important;\r\n\tvertical-align: baseline !important;\r\n\twidth: 1em;\r\n\theight: 0.6669em;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\twhite-space: nowrap;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\ttext-shadow: 1px 1px #fff;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 24px 13px 20px;\r\n\tline-height: 1.3;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\tmin-height: 1px;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 17px 0;\r\n\tmargin: 1.3em 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-top: -1px;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\tpointer-events: auto;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t -moz-transform: rotate(45deg);\r\n\t -ms-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 24px;\r\n\theight: 24px;\r\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\r\n\tcolor: #757575;\r\n\ttext-decoration: none;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover,\r\n.leaflet-container a.leaflet-popup-close-button:focus {\r\n\tcolor: #585858;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-interactive {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n\r\n/* Printing */\r\n\r\n@media print {\r\n\t/* Prevent printers from removing background-images of controls. */\r\n\t.leaflet-control {\r\n\t\t-webkit-print-color-adjust: exact;\r\n\t\tprint-color-adjust: exact;\r\n\t\t}\r\n\t}\r\n'],sourceRoot:""}]);const g=u},341:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".alert[data-v-70417498]{border-radius:4px;font-size:1.2rem;font-weight:700;margin-bottom:1rem;padding:1rem;text-align:center}.alert-success[data-v-70417498]{background-color:#d4edda;color:#155724}.alert-warning[data-v-70417498]{background-color:#fff3cd;color:#856404}.alert-error[data-v-70417498]{background-color:#f8d7da;color:#721c24}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseAlert.vue"],names:[],mappings:"AAqBA,wBAGC,iBAAkB,CAClB,gBAAiB,CACjB,eAAiB,CAHjB,kBAAmB,CADnB,YAAa,CAKb,iBACD,CAEA,gCACC,wBAAyB,CACzB,aACD,CAEA,gCACC,wBAAyB,CACzB,aACD,CAEA,8BACC,wBAAyB,CACzB,aACD",sourcesContent:["<script setup>\nimport { defineProps } from 'vue';\n\ndefineProps({\n\ttype: {\n\t\ttype: String,\n\t\tdefault: 'error',\n\t},\n\tmessage: {\n\t\ttype: String,\n\t\tdefault: '',\n\t\trequired: true,\n\t},\n});\n<\/script>\n\n<template v-cloak>\n\t<div class=\"alert\" :class=\"'alert-' + type\" v-html=\"message\" />\n</template>\n\n<style scoped>\n.alert {\n\tpadding: 1rem;\n\tmargin-bottom: 1rem;\n\tborder-radius: 4px;\n\tfont-size: 1.2rem;\n\tfont-weight: bold;\n\ttext-align: center;\n}\n\n.alert-success {\n\tbackground-color: #d4edda;\n\tcolor: #155724;\n}\n\n.alert-warning {\n\tbackground-color: #fff3cd;\n\tcolor: #856404;\n}\n\n.alert-error {\n\tbackground-color: #f8d7da;\n\tcolor: #721c24;\n}\n</style>\n"],sourceRoot:""}]);const a=o},738:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,"#owc-openkaarten-streetmap{container-type:inline-size;max-width:100%}.owc-openkaarten-streetmap-container:focus,.owc-openkaarten-streetmap__results:focus{outline:none!important}.owc-openkaarten-streetmap-container{margin-inline:auto}@media only screen and (min-width:768px){.owc-openkaarten-streetmap-container{width:min(100% - 32px,1440px)}}.owc-openkaarten-streetmap :focus-visible{outline-offset:.25em}@container (max-width: 990px){.owc-openkaarten-streetmap__pagination,.owc-openkaarten-streetmap__results,.owc-openkaarten-streetmap__results-header{grid-column:1/span 2}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/App.vue"],names:[],mappings:"AACA,2BACE,0BAAA,CACA,cAAF,CAGA,qFAEE,sBAAF,CAGA,qCACE,kBAAF,CACE,yCAFF,qCAGI,6BAEF,CACF,CACA,0CACE,oBAEF,CACA,8BACE,sHAGE,oBAEF,CACF,CACA,SAOE,kBAAA,CAEA,cAAA,CANA,UAAA,CAEA,WAAA,CACA,eAAA,CAFA,SAAA,CAHA,iBAAA,CAOA,kBAAA,CANA,SAQF",sourcesContent:["\n#owc-openkaarten-streetmap {\n container-type: inline-size;\n max-width: 100%;\n}\n\n.owc-openkaarten-streetmap-container:focus,\n.owc-openkaarten-streetmap__results:focus {\n outline: none !important;\n}\n\n.owc-openkaarten-streetmap-container {\n margin-inline: auto;\n @media only screen and (min-width: 768px) {\n width: min(calc(100% - 32px), 1440px);\n }\n}\n\n.owc-openkaarten-streetmap *:focus-visible {\n outline-offset: 0.25em;\n}\n\n@container (max-width: 990px) {\n .owc-openkaarten-streetmap__results,\n .owc-openkaarten-streetmap__results-header,\n .owc-openkaarten-streetmap__pagination {\n grid-column: 1 / span 2;\n }\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n"],sourceRoot:""}]);const a=o},907:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".owc-openkaarten-streetmap__filters[data-v-0580abcc]{--owc-filters-card-padding:12px;--owc-filters-card-margin:10px;--owc-filters-secondary:var(--Grey-4,#7a7a7a);--owc-filters-title-color:var(--Primary-300,#001d5f);--owc-filters-checkbox-label-color:var(--Grey-4,#4b4b4b);background:#fff;border:none;bottom:var(--owc-filters-card-margin);display:flex;flex-direction:column;height:auto;justify-content:space-between;margin:0;max-height:661px;max-width:calc(100% - var(--owc-filters-card-margin)*2);padding:0;position:absolute;right:var(--owc-filters-card-margin);top:var(--owc-filters-card-margin);width:448px;z-index:9999}@media only screen and (min-width:768px){.owc-openkaarten-streetmap__filters[data-v-0580abcc]{--owc-filters-card-padding:24px;--owc-filters-card-margin:0}}.owc-openkaarten-streetmap__filters__header[data-v-0580abcc]{align-items:center;border-bottom:1px solid #d2d2d2;display:flex;justify-content:space-between;padding:var(--owc-filters-card-padding)}.owc-openkaarten-streetmap__filters__header h5[data-v-0580abcc]{color:var(--owc-filters-title-color);font-size:20px;font-style:normal;font-weight:700;line-height:120%;margin:0;padding:0}.owc-openkaarten-streetmap__filters__body[data-v-0580abcc]{display:flex;flex-direction:column;height:-webkit-fill-available;justify-content:flex-start;padding:var(--owc-filters-card-padding)}.owc-openkaarten-streetmap__filters__body__list[data-v-0580abcc]{list-style-type:none;margin-block:0;padding-left:0}.owc-openkaarten-streetmap__filters__body__list-item[data-v-0580abcc]{align-content:center;display:flex;justify-content:space-between}.owc-openkaarten-streetmap__filters__body__list-item__dl-indicator[data-v-0580abcc]{border-radius:50%;height:28px;opacity:.5;width:28px}.owc-openkaarten-streetmap__filters__footer[data-v-0580abcc]{border-top:1px solid #d2d2d2;padding:var(--owc-filters-card-padding)}.owc-openkaarten-streetmap__filters__footer__btn[data-v-0580abcc]{align-items:center;align-self:stretch;background:var(--owc-openkaarten-streetmap--primary-color);border:none;border-radius:3px;color:var(--Neutrals-White,#fff);display:flex;font-size:18px;font-style:normal;font-weight:400;justify-content:center;line-height:150%;padding:8px 16px;text-align:center;width:100%}.owc-openkaarten-streetmap__filters__footer__btn[data-v-0580abcc]:hover{cursor:pointer}.owc-openkaarten-streetmap__filters__footer__btn[data-v-0580abcc]:focus-visible{outline:2px solid var(--owc-openkaarten-streetmap--primary-color);outline-offset:2px}.owc-openkaarten-streetmap__filters__footer__btn[data-v-0580abcc]:where(:hover,:focus-visible){opacity:.8}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseFilters.vue"],names:[],mappings:"AACA,qDACC,+BAAA,CACA,8BAAA,CACA,6CAAA,CACA,oDAAA,CACA,wDAAA,CAcA,eAAA,CAMA,WAAA,CAHA,qCAAA,CAVA,YAAA,CACA,qBAAA,CAIA,WAAA,CAHA,6BAAA,CAaA,QAAA,CATA,gBAAA,CAFA,uDAAA,CAUA,SAAA,CANA,iBAAA,CAGA,oCAAA,CAFA,kCAAA,CANA,WAAA,CASA,YAHD,CAdC,yCAPD,qDAQE,+BAAA,CACA,2BAiBA,CACF,CAEC,6DAEC,kBAAA,CAGA,+BAAA,CAJA,YAAA,CAEA,6BAAA,CACA,uCACF,CACE,gEAGC,oCAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CALA,QAAA,CADA,SAOH,CAGC,2DACC,YAAA,CACA,qBAAA,CAEA,6BAAA,CADA,0BAAA,CAEA,uCADF,CAGE,iEAEC,oBAAA,CADA,cAAA,CAEA,cADH,CAIE,sEAEC,oBAAA,CADA,YAAA,CAEA,6BAFH,CAGG,oFAGC,iBAAA,CADA,WAAA,CAEA,UAAA,CAHA,UAEJ,CAMC,6DAEC,4BAAA,CADA,uCAHF,CAME,kEAIC,kBAAA,CACA,kBAAA,CAEA,0DAAA,CACA,WAAA,CAFA,iBAAA,CAIA,gCAAA,CATA,YAAA,CAWA,cAAA,CACA,iBAAA,CACA,eAAA,CAXA,sBAAA,CAYA,gBAAA,CAbA,gBAAA,CASA,iBAAA,CAFA,UAEH,CAMG,wEACC,cAJJ,CAOG,gFACC,iEAAA,CACA,kBALJ,CAQG,+FACC,UANJ",sourcesContent:["\n.owc-openkaarten-streetmap__filters {\n\t--owc-filters-card-padding: 12px;\n\t--owc-filters-card-margin: 10px;\n\t--owc-filters-secondary: var(--Grey-4, #7a7a7a);\n\t--owc-filters-title-color: var(--Primary-300, #001d5f);\n\t--owc-filters-checkbox-label-color: var(--Grey-4, #4b4b4b);\n\n\t@media only screen and (min-width: 768px) {\n\t\t--owc-filters-card-padding: 24px;\n\t\t--owc-filters-card-margin: 0;\n\t}\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\twidth: 448px;\n\tmax-width: calc(100% - calc(var(--owc-filters-card-margin) * 2));\n\theight: auto;\n\tmax-height: 661px;\n\tbackground: #fff;\n\tposition: absolute;\n\ttop: var(--owc-filters-card-margin);\n\tbottom: var(--owc-filters-card-margin);\n\tright: var(--owc-filters-card-margin);\n\tz-index: 9999;\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n\n\t&__header {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\t\tpadding: var(--owc-filters-card-padding);\n\t\tborder-bottom: 1px solid #d2d2d2;\n\t\th5 {\n\t\t\tpadding: 0;\n\t\t\tmargin: 0;\n\t\t\tcolor: var(--owc-filters-title-color);\n\t\t\tfont-size: 20px;\n\t\t\tfont-style: normal;\n\t\t\tfont-weight: 700;\n\t\t\tline-height: 120%; /* 24px */\n\t\t}\n\t}\n\n\t&__body {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: flex-start;\n\t\theight: -webkit-fill-available;\n\t\tpadding: var(--owc-filters-card-padding);\n\n\t\t&__list {\n\t\t\tmargin-block: 0;\n\t\t\tlist-style-type: none;\n\t\t\tpadding-left: 0;\n\t\t}\n\n\t\t&__list-item {\n\t\t\tdisplay: flex;\n\t\t\talign-content: center;\n\t\t\tjustify-content: space-between;\n\t\t\t&__dl-indicator {\n\t\t\t\twidth: 28px;\n\t\t\t\theight: 28px;\n\t\t\t\tborder-radius: 50%;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__footer {\n\t\tpadding: var(--owc-filters-card-padding);\n\t\tborder-top: 1px solid #d2d2d2;\n\n\t\t&__btn {\n\t\t\tdisplay: flex;\n\t\t\tpadding: 8px 16px;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\talign-self: stretch;\n\t\t\tborder-radius: 3px;\n\t\t\tbackground: var(--owc-openkaarten-streetmap--primary-color);\n\t\t\tborder: none;\n\t\t\twidth: 100%;\n\t\t\tcolor: var(--Neutrals-White, #fff);\n\t\t\ttext-align: center;\n\t\t\tfont-size: 18px;\n\t\t\tfont-style: normal;\n\t\t\tfont-weight: 400;\n\t\t\tline-height: 150%; /* 27px */\n\n\t\t\t&:hover {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t&:focus-visible {\n\t\t\t\toutline: 2px solid var(--owc-openkaarten-streetmap--primary-color);\n\t\t\t\toutline-offset: 2px;\n\t\t\t}\n\n\t\t\t&:where(:hover, :focus-visible) {\n\t\t\t\topacity: 0.8;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=o},176:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,'.owc-openkaarten-streetmap__filters__checkbox[data-v-54c3bab0]{cursor:pointer;display:block;margin-bottom:16px;padding-left:30px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.owc-openkaarten-streetmap__filters__checkbox[data-v-54c3bab0]:focus-within{outline:2px solid var(--owc-filters-primary)}.owc-openkaarten-streetmap__filters__checkbox__label[data-v-54c3bab0]{color:var(--owc-filters-checkbox-label-color);font-size:18px;font-style:normal;font-weight:700;line-height:120%}.owc-openkaarten-streetmap__filters__checkbox input[data-v-54c3bab0]{cursor:pointer;height:0;opacity:0;position:absolute;width:0}.owc-openkaarten-streetmap__filters__checkbox__mark[data-v-54c3bab0]{background-color:#fff;border:1px solid var(--owc-filters-secondary);border-radius:3px;height:18px;left:2px;position:absolute;top:2px;width:18px}.owc-openkaarten-streetmap__filters__checkbox__mark[data-v-54c3bab0]:after{border:solid #fff;border-width:0 3px 3px 0;content:"";display:none;height:10px;left:5px;position:absolute;top:1px;transform:rotate(45deg);width:6px}.owc-openkaarten-streetmap__filters__checkbox:hover input~.owc-openkaarten-streetmap__filters__checkbox__mark[data-v-54c3bab0]{background-color:#efefef}.owc-openkaarten-streetmap__filters__checkbox input:checked~.owc-openkaarten-streetmap__filters__checkbox__mark[data-v-54c3bab0]{background-color:var(--owc-filters-primary);border-color:var(--owc-filters-primary)}.owc-openkaarten-streetmap__filters__checkbox input:checked~.owc-openkaarten-streetmap__filters__checkbox__mark[data-v-54c3bab0]:after{display:block}',"",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseFiltersCheckbox.vue"],names:[],mappings:"AACA,+DAKC,cAAA,CAJA,aAAA,CAGA,kBAAA,CADA,iBAAA,CADA,iBAAA,CAIA,wBAAA,CACA,qBAAA,CAEA,gBAAD,CAEC,4EACC,4CAAF,CAGC,sEAKC,6CAAA,CAJA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAF,CAIC,qEAGC,cAAA,CACA,QAAA,CAFA,SAAA,CADA,iBAAA,CAIA,OAFF,CAKC,qEAMC,qBAAA,CACA,6CAAA,CACA,iBAAA,CAJA,WAAA,CADA,QAAA,CAFA,iBAAA,CACA,OAAA,CAGA,UAAF,CAKE,2EASC,iBAAA,CAAA,wBAAA,CARA,UAAA,CAEA,YAAA,CAIA,WAAA,CAHA,QAAA,CAFA,iBAAA,CAGA,OAAA,CAOA,uBAAA,CANA,SAGH,CAQE,+HACC,wBANH,CAUC,iIACC,2CAAA,CACA,uCARF,CASE,uIACC,aAPH",sourcesContent:["\n.owc-openkaarten-streetmap__filters__checkbox {\n\tdisplay: block;\n\tposition: relative;\n\tpadding-left: 30px; // 20px checkbox + 2px border + 8px gap\n\tmargin-bottom: 16px;\n\tcursor: pointer;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\n\t&:focus-within {\n\t\toutline: 2px solid var(--owc-filters-primary);\n\t}\n\n\t&__label {\n\t\tfont-size: 18px;\n\t\tfont-style: normal;\n\t\tfont-weight: 700;\n\t\tline-height: 120%;\n\t\tcolor: var(--owc-filters-checkbox-label-color);\n\t}\n\n\tinput {\n\t\tposition: absolute;\n\t\topacity: 0;\n\t\tcursor: pointer;\n\t\theight: 0;\n\t\twidth: 0;\n\t}\n\n\t&__mark {\n\t\tposition: absolute;\n\t\ttop: 2px;\n\t\tleft: 2px;\n\t\theight: 18px;\n\t\twidth: 18px;\n\t\tbackground-color: #fff;\n\t\tborder: 1px solid var(--owc-filters-secondary);\n\t\tborder-radius: 3px;\n\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tdisplay: none;\n\t\t\tleft: 5px;\n\t\t\ttop: 1px;\n\t\t\twidth: 6px;\n\t\t\theight: 10px;\n\t\t\tborder: solid white;\n\t\t\tborder-width: 0 3px 3px 0;\n\t\t\t-webkit-transform: rotate(45deg);\n\t\t\t-ms-transform: rotate(45deg);\n\t\t\ttransform: rotate(45deg);\n\t\t}\n\t}\n\n\t&:hover {\n\t\tinput ~ .owc-openkaarten-streetmap__filters__checkbox__mark {\n\t\t\tbackground-color: #efefef;\n\t\t}\n\t}\n\n\tinput:checked ~ .owc-openkaarten-streetmap__filters__checkbox__mark {\n\t\tbackground-color: var(--owc-filters-primary);\n\t\tborder-color: var(--owc-filters-primary);\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=o},937:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".base-list-card{--image-size:256px;border:1px solid #cacaca;border-radius:6px;display:flex;gap:1rem}.base-list-card__image{aspect-ratio:1/1;flex:0 0 var(--image-size)}.base-list-card__image img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.base-list-card__content{display:flex;flex:1;flex-direction:column;justify-content:space-between;padding:2rem}.base-list-card__title{color:#001d5f;font-size:1.5rem;font-weight:700;margin:0}.base-list-card__address{color:#4b4b4b;font-size:14px}.base-list-card__description{color:#4b4b4b;font-weight:400}.base-list-card__button{align-items:center;color:#1161a3;display:flex;gap:.25rem;margin-block-start:2rem;text-decoration:none}.base-list-card__button:hover{text-decoration:underline}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseListCard.vue"],names:[],mappings:"AACA,gBACC,kBAAA,CAIA,wBAAA,CACA,iBAAA,CAHA,YAAA,CACA,QACD,CAGC,uBAEC,gBAAA,CADA,0BAAF,CAGE,2BAEC,WAAA,CACA,mBAAA,CAAA,gBAAA,CAFA,UACH,CAKC,yBACC,YAAA,CAGA,MAAA,CAFA,qBAAA,CACA,6BAAA,CAEA,YAHF,CAMC,uBAEC,aAAA,CACA,gBAAA,CACA,eAAA,CAHA,QADF,CAOC,yBAEC,aAAA,CADA,cAJF,CAQC,6BACC,aAAA,CACA,eANF,CASC,wBAEC,kBAAA,CAGA,aAAA,CAJA,YAAA,CAEA,UAAA,CACA,uBAAA,CAEA,oBAPF,CASE,8BACC,yBAPH",sourcesContent:["\n.base-list-card {\n\t--image-size: 256px;\n\n\tdisplay: flex;\n\tgap: 1rem;\n\tborder: 1px solid #cacaca;\n\tborder-radius: 6px;\n\n\t&__image {\n\t\tflex: 0 0 var(--image-size);\n\t\taspect-ratio: 1 / 1;\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tobject-fit: cover;\n\t\t}\n\t}\n\n\t&__content {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: space-between;\n\t\tflex: 1;\n\t\tpadding: 2rem;\n\t}\n\n\t&__title {\n\t\tmargin: 0;\n\t\tcolor: #001d5f;\n\t\tfont-size: 1.5rem;\n\t\tfont-weight: bold;\n\t}\n\n\t&__address {\n\t\tfont-size: 14px;\n\t\tcolor: #4b4b4b\n\t}\n\n\t&__description {\n\t\tcolor: #4b4b4b;\n\t\tfont-weight: 400;\n\t}\n\n\t&__button {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 0.25rem;\n\t\tmargin-block-start: 2rem;\n\t\tcolor: #1161a3;\n\t\ttext-decoration: none;\n\n\t\t&:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=o},234:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".sr-only[data-v-1430f0d4]{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.search-container[data-v-1430f0d4]{display:block;flex-grow:1;margin-inline-end:1.5rem;width:100%}@media only screen and (min-width:768px){.search-container[data-v-1430f0d4]{margin-inline-end:1.5rem;width:auto}}.search-form[data-v-1430f0d4]{position:relative;width:100%}.search-wrapper[data-v-1430f0d4]{align-items:center;display:flex;position:relative}.search-input[data-v-1430f0d4]{border:1px solid #7a7a7a;border-radius:4px;font-size:1rem;padding:.75rem 1rem;padding-inline-end:4.5rem;width:100%}.search-input[data-v-1430f0d4]::-moz-placeholder{font-size:.875rem;overflow:visible}.search-input[data-v-1430f0d4]::placeholder{font-size:.875rem;overflow:visible}@media only screen and (min-width:768px){.search-input[data-v-1430f0d4]::-moz-placeholder{font-size:1rem}.search-input[data-v-1430f0d4]::placeholder{font-size:1rem}}.search-input[data-v-1430f0d4]:focus{outline:2px solid var(--search-primary-color);outline-offset:2px}.search-input input[type=search][data-v-1430f0d4]::-ms-clear,.search-input[data-v-1430f0d4]::-ms-reveal{display:none;height:0;width:0}.search-input[data-v-1430f0d4]::-webkit-search-cancel-button,.search-input[data-v-1430f0d4]::-webkit-search-decoration,.search-input[data-v-1430f0d4]::-webkit-search-results-button,.search-input[data-v-1430f0d4]::-webkit-search-results-decoration{display:none}.search-clear[data-v-1430f0d4],.search-submit[data-v-1430f0d4]{align-items:center;background:none;border:none;color:#666;cursor:pointer;display:flex;justify-content:center;padding:.5rem;position:absolute;transition:color .2s ease}.search-clear[data-v-1430f0d4]:focus-visible,.search-submit[data-v-1430f0d4]:focus-visible{outline:2px solid var(--search-primary-color);outline-offset:2px}.search-clear[data-v-1430f0d4]{inset-inline-end:2.5rem}.search-submit[data-v-1430f0d4]{background-color:var(--search-primary-color);border-radius:4px;color:#fff;inset-inline-end:.25rem}.search-submit[data-v-1430f0d4]:where(:hover,:focus-visible){opacity:.8}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseSearchInput.vue"],names:[],mappings:"AACA,0BAOE,kBAAA,CACA,QAAA,CALA,UAAA,CAEA,WAAA,CACA,eAAA,CAFA,SAAA,CAHA,iBAAA,CACA,SAMF,CAGA,mCACE,aAAA,CACA,WAAA,CAEA,wBAAA,CADA,UACF,CACE,yCALF,mCAOI,wBAAA,CADA,UAGF,CACF,CACA,8BACE,iBAAA,CACA,UAEF,CACA,iCAGE,kBAAA,CADA,YAAA,CADA,iBAIF,CACA,+BAIE,wBAAA,CACA,iBAAA,CACA,cAAA,CAJA,mBAAA,CACA,yBAAA,CAFA,UAQF,CAFE,iDAEE,iBAAA,CADA,gBAKJ,CANE,4CAEE,iBAAA,CADA,gBAKJ,CAHI,yCAHF,iDAII,cAMJ,CAVA,4CAII,cAMJ,CACF,CAHE,qCACE,6CAAA,CACA,kBAKJ,CAIE,wGACE,YAAA,CAEA,QAAA,CADA,OAIJ,CACE,uPAIE,YAFJ,CAMA,+DAIE,kBAAA,CAIA,eAAA,CADA,WAAA,CAEA,UAAA,CACA,cAAA,CAPA,YAAA,CAEA,sBAAA,CACA,aAAA,CAJA,iBAAA,CASA,yBAHF,CAKE,2FACE,6CAAA,CACA,kBAFJ,CAMA,+BACE,uBAHF,CAMA,gCAGE,4CAAA,CACA,iBAAA,CAFA,UAAA,CADA,uBAAF,CAKE,6DACE,UAHJ",sourcesContent:["\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.search-container {\n display: block;\n flex-grow: 1;\n width: 100%;\n margin-inline-end: 1.5rem;\n @media only screen and (min-width: 768px) {\n width: auto;\n margin-inline-end: 1.5rem;\n }\n}\n\n.search-form {\n position: relative;\n width: 100%;\n}\n\n.search-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.search-input {\n width: 100%;\n padding: 0.75rem 1rem;\n padding-inline-end: 4.5rem; // Space for both buttons\n border: 1px solid #7a7a7a;\n border-radius: 4px;\n font-size: 1rem;\n &::placeholder {\n overflow: visible;\n font-size: .875rem;\n @media only screen and (min-width: 768px) {\n font-size: 1rem;\n }\n }\n\n &:focus {\n outline: 2px solid var(--search-primary-color);\n outline-offset: 2px;\n }\n\n input[type=\"search\"]::-ms-clear {\n display: none;\n width: 0;\n height: 0;\n }\n\n &::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\n }\n\n /* clears the 'X' in searchbar from Chrome */\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n display: none;\n }\n}\n\n.search-clear,\n.search-submit {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0.5rem;\n border: none;\n background: none;\n color: #666;\n cursor: pointer;\n transition: color 0.2s ease;\n\n &:focus-visible {\n outline: 2px solid var(--search-primary-color);\n outline-offset: 2px;\n }\n}\n\n.search-clear {\n inset-inline-end: 2.5rem;\n}\n\n.search-submit {\n inset-inline-end: 0.25rem;\n color: white;\n background-color: var(--search-primary-color);\n border-radius: 4px;\n\n &:where(:hover, :focus-visible) {\n opacity: 0.8;\n }\n}\n"],sourceRoot:""}]);const a=o},145:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".owc-openkaarten-streetmap__tooltip-card{background-color:#fff;border-radius:4px;bottom:24px;inline-size:min(100%,360px);left:12px;position:absolute;right:12px;z-index:400}.owc-openkaarten-streetmap__tooltip-card__wraper{border-radius:4px}.owc-openkaarten-streetmap__tooltip-card__content{align-items:flex-start;display:flex;flex-direction:column;gap:16px;padding:16px}@media only screen and (min-width:768px){.owc-openkaarten-streetmap__tooltip-card{bottom:24px;left:auto;right:16px}}.owc-openkaarten-streetmap__tooltip-card:focus{outline:none}.owc-openkaarten-streetmap__tooltip-card__header{align-items:center;display:flex;gap:24px;justify-content:space-between}.owc-openkaarten-streetmap__tooltip-card__title{color:#001d5f;font-weight:700;margin-block:0}.owc-openkaarten-streetmap__tooltip-card:not(:has(img)) .owc-openkaarten-streetmap__tooltip-card__header{max-inline-size:85%}.owc-openkaarten-streetmap__tooltip-card__list{list-style-type:none;margin-block:0;padding-left:0;text-align:left;width:100%}.owc-openkaarten-streetmap__tooltip-card__list li{display:flex;flex-direction:column;font-size:14px;justify-content:space-between;width:100%}@media only screen and (min-width:500px){.owc-openkaarten-streetmap__tooltip-card__list li{flex-direction:row;gap:24px}}.owc-openkaarten-streetmap__tooltip-card__list li :first-child{font-weight:700}.owc-openkaarten-streetmap__tooltip-card__meta{color:#666;font-size:14px}.owc-openkaarten-streetmap__tooltip-card__image{height:180px;width:100%}.owc-openkaarten-streetmap__tooltip-card__image img{border-top-left-radius:4px;border-top-right-radius:4px;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.owc-openkaarten-streetmap__tooltip-card__button{align-items:center;background-color:var(--owc-openkaarten-streetmap--primary-color);border-radius:4px;color:#fff;display:inline-flex;gap:8px;padding:8px 16px;text-decoration:none}.owc-openkaarten-streetmap__tooltip-card__button:hover{opacity:.9}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseTooltipCard.vue"],names:[],mappings:"AAEC,yCACC,qBAAA,CAOA,iBAAA,CALA,WAAA,CAIA,2BAAA,CAHA,SAAA,CAFA,iBAAA,CAGA,UAAA,CACA,WACF,CAGE,iDACC,iBADH,CAIE,kDAGC,sBAAA,CAFA,YAAA,CACA,qBAAA,CAEA,QAAA,CACA,YAFH,CAKE,yCAtBD,yCAwBE,WAAA,CADA,SAAA,CAEA,UAFD,CACF,CAIE,+CACC,YAFH,CAKE,iDAEC,kBAAA,CADA,YAAA,CAGA,QAAA,CADA,6BAFH,CAME,gDAEC,aAAA,CACA,eAAA,CAFA,cAFH,CAOE,yGACC,mBALH,CAQE,+CAEC,oBAAA,CAGA,cAAA,CADA,cAAA,CADA,eAAA,CAFA,UAFH,CAQG,kDAEC,YAAA,CACA,qBAAA,CAEA,cAAA,CADA,6BAAA,CAHA,UAFJ,CAQE,yCAPC,kDAQA,kBAAA,CACA,QALD,CACF,CAQI,+DACC,eANL,CAWE,+CACC,UAAA,CACA,cATH,CAYE,gDAEC,YAAA,CADA,UATH,CAYG,oDAIC,0BAAA,CACA,2BAAA,CAHA,WAAA,CACA,mBAAA,CAAA,gBAAA,CAFA,UANJ,CAcE,iDAEC,kBAAA,CAGA,gEAAA,CAGA,iBAAA,CAFA,UAAA,CALA,mBAAA,CAEA,OAAA,CACA,gBAAA,CAGA,oBAXH,CAcG,uDACC,UAZJ",sourcesContent:["\n.owc-openkaarten-streetmap {\n\t&__tooltip-card {\n\t\tbackground-color: #fff;\n\t\tposition: absolute;\n\t\tbottom: 24px;\n\t\tleft: 12px;\n\t\tright: 12px;\n\t\tz-index: 400;\n\t\tinline-size: min(100%, 360px);\n\t\tborder-radius: 4px;\n\n\t\t&__wraper {\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\t&__content {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: flex-start;\n\t\t\tgap: 16px;\n\t\t\tpadding: 16px;\n\t\t}\n\n\t\t@media only screen and (min-width: 768px) {\n\t\t\tleft: auto;\n\t\t\tbottom: 24px;\n\t\t\tright: 16px;\n\t\t}\n\n\t\t&:focus {\n\t\t\toutline: none;\n\t\t}\n\n\t\t&__header {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\tgap: 24px;\n\t\t}\n\n\t\t&__title {\n\t\t\tmargin-block: 0;\n\t\t\tcolor: #001d5f;\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\t&:not(:has(img)) &__header {\n\t\t\tmax-inline-size: 85%;\n\t\t}\n\n\t\t&__list {\n\t\t\twidth: 100%;\n\t\t\tlist-style-type: none;\n\t\t\ttext-align: left;\n\t\t\tpadding-left: 0;\n\t\t\tmargin-block: 0;\n\n\t\t\tli {\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\tfont-size: 14px;\n\n\t\t@media only screen and (min-width: 500px) {\n\t\t\tflex-direction: row;\n\t\t\tgap: 24px;\n\n\t\t}\n\n\t\t\t\t:first-child {\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&__meta {\n\t\t\tcolor: #666;\n\t\t\tfont-size: 14px;\n\t\t}\n\n\t\t&__image {\n\t\t\twidth: 100%;\n\t\t\theight: 180px;\n\n\t\t\timg {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tobject-fit: cover;\n\t\t\t\tborder-top-left-radius: 4px;\n\t\t\t\tborder-top-right-radius: 4px;\n\t\t\t}\n\t\t}\n\n\t\t&__button {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tgap: 8px;\n\t\t\tpadding: 8px 16px;\n\t\t\tbackground-color: var(--owc-openkaarten-streetmap--primary-color);\n\t\t\tcolor: white;\n\t\t\ttext-decoration: none;\n\t\t\tborder-radius: 4px;\n\n\t\t\t&:hover {\n\t\t\t\topacity: 0.9;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const a=o},779:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,".owc-openkaarten-streetmap__tooltip-card__close-btn{align-items:center;background-color:#fff;border:1px solid var(--owc-openkaarten-streetmap--primary-color);border-radius:3px;cursor:pointer;display:flex;justify-content:center;min-height:44px;min-width:44px;position:absolute;right:8px;top:8px}","",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseTooltipCardClose.vue"],names:[],mappings:"AAEC,oDAOC,kBAAA,CAGA,qBAAA,CACA,gEAAA,CACA,iBAAA,CAXA,cAAA,CAIA,YAAA,CACA,sBAAA,CAEA,eAAA,CACA,cAAA,CAPA,iBAAA,CAEA,SAAA,CADA,OAQF",sourcesContent:["\n.owc-openkaarten-streetmap {\n\t&__tooltip-card__close-btn {\n\t\tcursor: pointer;\n\t\tposition: absolute;\n\t\ttop: 8px;\n\t\tright: 8px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tmin-height: 44px;\n\t\tmin-width: 44px;\n\t\tbackground-color: #fff;\n\t\tborder: 1px solid var(--owc-openkaarten-streetmap--primary-color);\n\t\tborder-radius: 3px;\n\t}\n}\n"],sourceRoot:""}]);const a=o},274:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,'.list-view{display:flex;flex-direction:column;gap:1rem;min-block-size:660px;overflow-x:clip;padding:.25rem;position:relative}.list-view__controls{display:flex;flex-wrap:wrap;gap:.5rem;margin-block-end:.5rem}@media only screen and (min-width:768px){.list-view__controls{justify-content:flex-end}}.list-view__controls button:not([class*=search]){align-items:center;background-color:#fff;border:1px solid #328725;border-radius:3px;display:flex;gap:8px;justify-content:space-between;min-height:50px;min-width:44px;padding:10px 24px}.list-view__controls button:not([class*=search]) span{color:#328725;font-size:20px;font-style:normal;font-weight:500;line-height:130%}.list-view__controls button:not([class*=search]):hover{background-color:#f4f4f4;cursor:pointer}.list-view__controls button:not([class*=search]):focus-visible{border-width:3px}.list-view__results{margin:0;padding:0}.list-view__item,.list-view__results{display:flex;flex-direction:column;gap:1rem}.list-view__item:focus{outline:2px solid var(--owc-openkaarten-streetmap--primary-color);outline-offset:1px}.list-view__load-more{background-color:#fff;border:2px solid var(--button-color);border-radius:4px;color:var(--button-color);cursor:pointer;font-size:1rem;font-weight:500;margin-top:1rem;margin-inline:auto;padding:1rem 2rem;transition:background-color .2s ease}.list-view__load-more:hover{background-color:#f4f4f4}.list-view__load-more:focus-visible{outline:2px solid var(--button-color);outline-offset:2px}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease-in-out}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transform:translateX(0);transition:transform .2s ease-in-out}.slide-enter-from,.slide-leave-to{transform:translateX(120%)}.owc-openkaarten-streetmap__overlay{background-color:var(--owc-map-overlay,rgba(0,0,0,.25));content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:999}',"",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/ListView.vue"],names:[],mappings:"AACA,WACE,YAAA,CACA,qBAAA,CACA,QAAA,CACA,oBAAA,CAGA,eAAA,CAFA,cAAA,CACA,iBACF,CAEE,qBACE,YAAA,CACA,cAAA,CACA,SAAA,CACA,sBAAJ,CACI,yCALF,qBAMI,wBAEJ,CACF,CADI,iDACE,kBAAA,CAEA,qBAAA,CADA,wBAAA,CAEA,iBAAA,CACA,YAAA,CAEA,OAAA,CADA,6BAAA,CAGA,eAAA,CADA,cAAA,CAEA,iBAGN,CADM,sDACE,aAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAGR,CAAM,uDAEE,wBAAA,CADA,cAGR,CACM,+DACE,gBACR,CAIE,oBAKE,QAAA,CADA,SADJ,CAKE,qCAPE,YAAA,CACA,qBAAA,CACA,QAKJ,CAKI,uBACE,iEAAA,CACA,kBAHN,CAOE,sBAIE,qBAAA,CACA,oCAAA,CAEA,iBAAA,CADA,yBAAA,CAKA,cAAA,CAHA,cAAA,CACA,eAAA,CARA,eAAA,CACA,kBAAA,CACA,iBAAA,CAOA,oCAJJ,CAOI,4BACE,wBALN,CAQI,oCACE,qCAAA,CACA,kBANN,CAWA,sCAEE,kCARF,CAWA,gCAEE,SARF,CAWA,wCAEE,uBAAA,CACA,oCARF,CAWA,kCAEE,0BARF,CAWA,oCACE,uDAAA,CAEA,UAAA,CAIA,WAAA,CAFA,MAAA,CAHA,iBAAA,CAEA,KAAA,CAEA,UAAA,CAEA,WARF",sourcesContent:["\n.list-view {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n min-block-size: 660px;\n padding: 0.25rem;\n position: relative;\n overflow-x: clip;\n\n &__controls {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin-block-end: 0.5rem;\n @media only screen and (min-width: 768px) {\n justify-content: flex-end;\n }\n button:not([class*=\"search\"]) {\n align-items: center;\n border: 1px solid #328725;\n background-color: #fff;\n border-radius: 3px;\n display: flex;\n justify-content: space-between;\n gap: 8px;\n min-width: 44px;\n min-height: 50px;\n padding: 10px 24px;\n\n span {\n color: #328725;\n font-size: 20px;\n font-style: normal;\n font-weight: 500;\n line-height: 130%;\n }\n\n &:hover {\n cursor: pointer;\n background-color: rgb(244, 244, 244);\n }\n\n &:focus-visible {\n border-width: 3px;\n }\n }\n }\n\n &__results {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n padding: 0;\n margin: 0;\n }\n\n &__item {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n\n &:focus {\n outline: 2px solid var(--owc-openkaarten-streetmap--primary-color);\n outline-offset: 1px;\n }\n }\n\n &__load-more {\n margin-top: 1rem;\n margin-inline: auto;\n padding: 1rem 2rem;\n background-color: white;\n border: 2px solid var(--button-color);\n color: var(--button-color);\n border-radius: 4px;\n font-size: 1rem;\n font-weight: 500;\n transition: background-color 0.2s ease;\n cursor: pointer;\n\n &:hover {\n background-color: rgb(244, 244, 244);\n }\n\n &:focus-visible {\n outline: 2px solid var(--button-color);\n outline-offset: 2px;\n }\n }\n}\n\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity 0.2s ease-in-out;\n}\n\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n\n.slide-enter-active,\n.slide-leave-active {\n transform: translateX(0);\n transition: transform 0.2s ease-in-out;\n}\n\n.slide-enter-from,\n.slide-leave-to {\n transform: translateX(120%);\n}\n\n.owc-openkaarten-streetmap__overlay {\n background-color: var(--owc-map-overlay, rgba(0, 0, 0, 0.25));\n position: absolute;\n content: '';\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n}\n"],sourceRoot:""}]);const a=o},93:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(627),s=n.n(i),r=n(798),o=n.n(r)()(s());o.push([t.id,'#dataset-map{height:80dvh;max-height:661px;width:100%}.owc-openkaarten-streetmap__results{display:flex;flex-direction:column;gap:8px;grid-area:results}.owc-openkaarten-streetmap__results--loading{display:flex;justify-content:center;min-height:30dvh;place-items:center}.owc-openkaarten-streetmap__results--loading svg{max-width:3rem}.owc-openkaarten-streetmap__cluster-group{border-radius:50%}.owc-openkaarten-streetmap__cluster-group__circle{--owc-cluster-background:color-mix(in srgb,var(--owc-openkaarten-streetmap--cluster-color),hsla(0,0%,100%,.05) 75%);align-items:center!important;background:var(--owc-cluster-background);border-radius:50%;display:flex!important;height:100%;justify-content:center!important;left:0;position:absolute;top:0;width:100%}.owc-openkaarten-streetmap__cluster-group__count{font-weight:700}.owc-openkaarten-streetmap__map{overflow:hidden;padding-top:80px;position:relative}@media only screen and (min-width:768px){.owc-openkaarten-streetmap__map{padding-top:0}}.owc-openkaarten-streetmap__map .leaflet-marker-icon:focus-visible{aspect-ratio:1/1;border-radius:50%;outline-color:var(--owc-openkaarten-streetmap--primary-color)}.owc-openkaarten-streetmap__map .leaflet-custom-icon--hosted-svg .leaflet-svg{background-color:#fff;border:4px solid var(--l-icon-color);border-radius:50% 50% 50% 0;height:32px;padding:2px;transform:rotate(-45deg);width:32px}.owc-openkaarten-streetmap__map .leaflet-custom-icon--hosted-svg .leaflet-svg img{transform:rotate(45deg)}.owc-openkaarten-streetmap__overlay{background-color:var(--owc-map-overlay,rgba(0,0,0,.25));content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:999}.owc-openkaarten-streetmap .fade-enter-active,.owc-openkaarten-streetmap .fade-leave-active{transition:opacity .2s ease-in-out}.owc-openkaarten-streetmap .fade-enter-from,.owc-openkaarten-streetmap .fade-leave-to{opacity:0}.owc-openkaarten-streetmap .slide-enter-active,.owc-openkaarten-streetmap .slide-leave-active{transform:translateX(0);transition:transform .2s ease-in-out}.owc-openkaarten-streetmap .slide-enter-from,.owc-openkaarten-streetmap .slide-leave-to{transform:translateX(120%)}.owc-openkaarten-streetmap__controls{display:flex;gap:.5rem;inset-block-start:20px;inset-inline-start:10px;position:absolute;width:100%;z-index:1000}@media only screen and (min-width:768px){.owc-openkaarten-streetmap__controls{inset-inline-start:20px;max-inline-size:min(300px,100% - 2rem)}}@media only screen and (min-width:900px){.owc-openkaarten-streetmap__controls{max-inline-size:min(450px,100% - 2rem)}}',"",{version:3,sources:["webpack://./src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/TheMap.vue"],names:[],mappings:"AACA,aACC,YAAA,CACA,gBAAA,CACA,UAAD,CAIC,oCACC,YAAA,CACA,qBAAA,CACA,OAAA,CACA,iBADF,CAGE,6CACC,YAAA,CACA,sBAAA,CACA,gBAAA,CACA,kBADH,CAEG,iDACC,cAAJ,CAIC,0CACC,iBAFF,CAIE,kDAUC,mHAAA,CADA,4BAAA,CAMA,wCAAA,CATA,iBAAA,CACA,sBAAA,CAFA,WAAA,CAGA,gCAAA,CALA,MAAA,CAFA,iBAAA,CACA,KAAA,CAEA,UASH,CAKE,iDACC,eAHH,CAOC,gCAGC,eAAA,CAFE,gBAAA,CACF,iBAJF,CAMI,yCAJH,gCAKK,aAHJ,CACF,CAKG,mEAGC,gBAAA,CAFA,iBAAA,CACA,6DAFJ,CASI,8EAKC,qBAAA,CACA,oCAAA,CAFA,2BAAA,CAFA,WAAA,CACA,WAAA,CAIA,wBAAA,CANA,UADL,CAQK,kFACC,uBANN,CAaC,oCACC,uDAAA,CAEA,UAAA,CAIA,WAAA,CAFA,MAAA,CAHA,iBAAA,CAEA,KAAA,CAEA,UAAA,CAEA,WAXF,CAcC,4FAEC,kCAZF,CAeC,sFAEC,SAbF,CAgBC,8FAEC,uBAAA,CACA,oCAdF,CAiBC,wFAEC,0BAfF,CAkBC,qCAKC,YAAA,CACA,SAAA,CAJA,sBAAA,CACA,uBAAA,CAFA,iBAAA,CAMA,UAAA,CAHA,YAbF,CAiBI,yCARH,qCASK,uBAAA,CACA,sCAdJ,CACF,CAeI,yCAZH,qCAaK,sCAZJ,CACF",sourcesContent:["\n#dataset-map {\n\theight: 80dvh;\n\tmax-height: 661px;\n\twidth: 100%;\n}\n\n.owc-openkaarten-streetmap {\n\t&__results {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 8px;\n\t\tgrid-area: results;\n\n\t\t&--loading {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\tmin-height: 30dvh;\n\t\t\tplace-items: center;\n\t\t\tsvg {\n\t\t\t\tmax-width: 3rem;\n\t\t\t}\n\t\t}\n\t}\n\t&__cluster-group {\n\t\tborder-radius: 50%;\n\n\t\t&__circle {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder-radius: 50%;\n\t\t\tdisplay: flex !important;\n\t\t\tjustify-content: center !important;\n\t\t\talign-items: center !important;\n\t\t\t--owc-cluster-background: color-mix(\n\t\t\t\tin srgb,\n\t\t\t\tvar(--owc-openkaarten-streetmap--cluster-color),\n\t\t\t\trgba(255, 255, 255, 0.05) 75%\n\t\t\t);\n\t\t\tbackground: var(--owc-cluster-background);\n\t\t}\n\n\t\t&__count {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n\n\t&__map {\n padding-top: 80px;\n\t\tposition: relative;\n\t\toverflow: hidden;\n @media only screen and (min-width: 768px) {\n padding-top: 0;\n }\n\t\t.leaflet-marker-icon {\n\t\t\t&:focus-visible {\n\t\t\t\tborder-radius: 50%;\n\t\t\t\toutline-color: var(--owc-openkaarten-streetmap--primary-color);\n\t\t\t\taspect-ratio: 1 / 1;\n\t\t\t}\n\t\t}\n\n\t\t.leaflet-custom-icon {\n\t\t\t&--hosted-svg {\n\t\t\t\t.leaflet-svg {\n\t\t\t\t\twidth: 32px;\n\t\t\t\t\theight: 32px;\n\t\t\t\t\tpadding: 2px;\n\t\t\t\t\tborder-radius: 50% 50% 50% 0;\n\t\t\t\t\tbackground-color: #fff;\n\t\t\t\t\tborder: 4px solid var(--l-icon-color);\n\t\t\t\t\ttransform: rotate(-45deg);\n\t\t\t\t\timg {\n\t\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t&__overlay {\n\t\tbackground-color: var(--owc-map-overlay, rgba(0, 0, 0, 0.25));\n\t\tposition: absolute;\n\t\tcontent: '';\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tz-index: 999;\n\t}\n\n\t.fade-enter-active,\n\t.fade-leave-active {\n\t\ttransition: opacity 0.2s ease-in-out;\n\t}\n\n\t.fade-enter-from,\n\t.fade-leave-to {\n\t\topacity: 0;\n\t}\n\n\t.slide-enter-active,\n\t.slide-leave-active {\n\t\ttransform: translateX(0);\n\t\ttransition: transform 0.2s ease-in-out;\n\t}\n\n\t.slide-enter-from,\n\t.slide-leave-to {\n\t\ttransform: translateX(120%);\n\t}\n\n\t&__controls {\n\t\tposition: absolute;\n\t\tinset-block-start: 20px;\n\t\tinset-inline-start: 10px;\n\t\tz-index: 1000;\n\t\tdisplay: flex;\n\t\tgap: 0.5rem;\n\t\twidth: 100%;\n @media only screen and (min-width: 768px) {\n inset-inline-start: 20px;\n max-inline-size: min(300px, calc(100% - 2rem));\n }\n @media only screen and (min-width: 900px) {\n max-inline-size: min(450px, calc(100% - 2rem));\n }\n\t}\n}\n"],sourceRoot:""}]);const a=o},798:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(i)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(s[o]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&s[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},627:t=>{"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var i,s,r=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);o=!0);}catch(t){a=!0,s=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw s}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(t){var n=e(t,4),i=n[1],s=n[3];if(!s)return i;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(o," */"),l=s.sources.map((function(t){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(t," */")}));return[i].concat(l).concat([a]).join("\n")}return[i].join("\n")}},21:t=>{"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},465:()=>{},306:()=>{},518:()=>{L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var n=this._getCoord(e.x),i=this._getCoord(e.y),s=this._grid,r=s[i]=s[i]||{},o=r[n]=r[n]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,o.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var n,i,s=this._getCoord(e.x),r=this._getCoord(e.y),o=this._grid,a=o[r]=o[r]||{},l=a[s]=a[s]||[];for(delete this._objectPoint[L.Util.stamp(t)],n=0,i=l.length;n<i;n++)if(l[n]===t)return l.splice(n,1),1===i&&delete a[s],!0},eachObject:function(t,e){var n,i,s,r,o,a,l=this._grid;for(n in l)for(i in o=l[n])for(s=0,r=(a=o[i]).length;s<r;s++)t.call(e,a[s])&&(s--,r--)},getNearObject:function(t){var e,n,i,s,r,o,a,l,c=this._getCoord(t.x),h=this._getCoord(t.y),p=this._objectPoint,u=this._sqCellSize,d=null;for(e=h-1;e<=h+1;e++)if(s=this._grid[e])for(n=c-1;n<=c+1;n++)if(r=s[n])for(i=0,o=r.length;i<o;i++)a=r[i],((l=this._sqDist(p[L.Util.stamp(a)],t))<u||l<=u&&null===d)&&(u=l,d=a);return d},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}}},619:()=>{L.QuickHull={getDistant:function(t,e){var n=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+n*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var n,i,s,r=0,o=null,a=[];for(n=e.length-1;n>=0;n--)i=e[n],(s=this.getDistant(i,t))>0&&(a.push(i),s>r&&(r=s,o=i));return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,e){var n=[],i=this.findMostDistantPointFromBaseLine(t,e);return i.maxPoint?n=(n=n.concat(this.buildConvexHull([t[0],i.maxPoint],i.newPoints))).concat(this.buildConvexHull([i.maxPoint,t[1]],i.newPoints)):[t[0]]},getConvexHull:function(t){var e,n=!1,i=!1,s=!1,r=!1,o=null,a=null,l=null,c=null,h=null,p=null;for(e=t.length-1;e>=0;e--){var u=t[e];(!1===n||u.lat>n)&&(o=u,n=u.lat),(!1===i||u.lat<i)&&(a=u,i=u.lat),(!1===s||u.lng>s)&&(l=u,s=u.lng),(!1===r||u.lng<r)&&(c=u,r=u.lng)}return i!==n?(p=a,h=o):(p=c,h=l),[].concat(this.buildConvexHull([p,h],t),this.buildConvexHull([h,p],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,n=this.getAllChildMarkers(),i=[];for(e=n.length-1;e>=0;e--)t=n[e].getLatLng(),i.push(t);return L.QuickHull.getConvexHull(i)}})},668:()=>{L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),n=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?t=this._group.options.spiderfyShapePositions(e.length,n):e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,n):(n.y+=10,t=this._generatePointsCircle(e.length,n)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var n,i,s=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,r=this._2PI/t,o=[];for(s=Math.max(s,35),o.length=t,n=0;n<t;n++)i=this._circleStartAngle+n*r,o[n]=new L.Point(e.x+s*Math.cos(i),e.y+s*Math.sin(i))._round();return o},_generatePointsSpiral:function(t,e){var n,i=this._group.options.spiderfyDistanceMultiplier,s=i*this._spiralLengthStart,r=i*this._spiralFootSeparation,o=i*this._spiralLengthFactor*this._2PI,a=0,l=[];for(l.length=t,n=t;n>=0;n--)n<t&&(l[n]=new L.Point(e.x+s*Math.cos(a),e.y+s*Math.sin(a))._round()),s+=o/(a+=r/s+5e-4*n);return l},_noanimationUnspiderfy:function(){var t,e,n=this._group,i=n._map,s=n._featureGroup,r=this.getAllChildMarkers(null,!0);for(n._ignoreMove=!0,this.setOpacity(1),e=r.length-1;e>=0;e--)t=r[e],s.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(i.removeLayer(t._spiderLeg),delete t._spiderLeg);n.fire("unspiderfied",{cluster:this,markers:r}),n._ignoreMove=!1,n._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var n,i,s,r,o=this._group,a=o._map,l=o._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,n=0;n<t.length;n++)r=a.layerPointToLatLng(e[n]),i=t[n],s=new L.Polyline([this._latlng,r],c),a.addLayer(s),i._spiderLeg=s,i._preSpiderfyLatlng=i._latlng,i.setLatLng(r),i.setZIndexOffset&&i.setZIndexOffset(1e6),l.addLayer(i);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var n,i,s,r,o,a,l=this,c=this._group,h=c._map,p=c._featureGroup,u=this._latlng,d=h.latLngToLayerPoint(u),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,n=0;n<t.length;n++)i=t[n],a=h.layerPointToLatLng(e[n]),s=new L.Polyline([u,a],m),h.addLayer(s),i._spiderLeg=s,f&&(o=(r=s._path).getTotalLength()+.1,r.style.strokeDasharray=o,r.style.strokeDashoffset=o),i.setZIndexOffset&&i.setZIndexOffset(1e6),i.clusterHide&&i.clusterHide(),p.addLayer(i),i._setPos&&i._setPos(d);for(c._forceLayout(),c._animationStart(),n=t.length-1;n>=0;n--)a=h.layerPointToLatLng(e[n]),(i=t[n])._preSpiderfyLatlng=i._latlng,i.setLatLng(a),i.clusterShow&&i.clusterShow(),f&&((r=(s=i._spiderLeg)._path).style.strokeDashoffset=0,s.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,n,i,s,r,o,a=this,l=this._group,c=l._map,h=l._featureGroup,p=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),u=this.getAllChildMarkers(null,!0),d=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),n=u.length-1;n>=0;n--)(e=u[n])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,o=!0,e._setPos&&(e._setPos(p),o=!1),e.clusterHide&&(e.clusterHide(),o=!1),o&&h.removeLayer(e),d&&(r=(s=(i=e._spiderLeg)._path).getTotalLength()+.1,s.style.strokeDashoffset=r,i.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(n=u.length-1;n>=0;n--)(e=u[n])._spiderLeg&&t++;for(n=u.length-1;n>=0;n--)(e=u[n])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&h.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:u})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}})},143:()=>{L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,n;for(e in t)for(n=t[e].__parent;n;)n._iconNeedsUpdate=!0,n=n.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,n;for(e in t)n=t[e],this.hasLayer(n)&&n.setIcon(this._overrideMarkerIcon(n))}}),L.Marker.include({refreshIconOptions:function(t,e){var n=this.options.icon;return L.setOptions(n,t),this.setIcon(n),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}})},942:()=>{L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}})},481:function(t,e){!function(t){"use strict";var e="1.9.4";function n(t){var e,n,i,s;for(n=1,i=arguments.length;n<i;n++)for(e in s=arguments[n])t[e]=s[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function s(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var r=0;function o(t){return"_leaflet_id"in t||(t._leaflet_id=++r),t._leaflet_id}function a(t,e,n){var i,s,r,o;return o=function(){i=!1,s&&(r.apply(n,s),s=!1)},r=function(){i?s=arguments:(t.apply(n,arguments),setTimeout(o,e),i=!0)},r}function l(t,e,n){var i=e[1],s=e[0],r=i-s;return t===i&&n?t:((t-s)%r+r)%r+s}function c(){return!1}function h(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function p(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return p(t).split(/\s+/)}function d(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,n){var i=[];for(var s in t)i.push(encodeURIComponent(n?s.toUpperCase():s)+"="+encodeURIComponent(t[s]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i}))}var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function A(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function v(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function C(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var b=window.requestAnimationFrame||v("RequestAnimationFrame")||C,w=window.cancelAnimationFrame||v("CancelAnimationFrame")||v("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,n){if(!n||b!==C)return b.call(window,s(t,e));t.call(e)}function T(t){t&&w.call(window,t)}var k={__proto__:null,extend:n,create:i,bind:s,get lastId(){return r},stamp:o,throttle:a,wrapNum:l,falseFn:c,formatNum:h,trim:p,splitWords:u,setOptions:d,getParamString:f,template:g,isArray:y,indexOf:A,emptyImageUrl:_,requestFn:b,cancelFn:w,requestAnimFrame:P,cancelAnimFrame:T};function E(){}function S(t){if("undefined"!=typeof L&&L&&L.Mixin){t=y(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}E.extend=function(t){var e=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},s=e.__super__=this.prototype,r=i(s);for(var o in r.constructor=e,e.prototype=r,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(e[o]=this[o]);return t.statics&&n(e,t.statics),t.includes&&(S(t.includes),n.apply(null,[r].concat(t.includes))),n(r,t),delete r.statics,delete r.includes,r.options&&(r.options=s.options?i(s.options):{},n(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},e},E.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},E.mergeOptions=function(t){return n(this.prototype.options,t),this},E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var I={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var s=0,r=(t=u(t)).length;s<r;s++)this._on(t[s],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=u(t);for(var s=1===arguments.length,r=0,o=t.length;r<o;r++)s?this._off(t[r]):this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var s={fn:e,ctx:n};i&&(s.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(s)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,s,r;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var o=this._listens(t,e,n);if(!1!==o){var a=i[o];this._firingCount&&(a.fn=c,this._events[t]=i=i.slice()),i.splice(o,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(s=0,r=i.length;s<r;s++)i[s].fn=c;delete this._events[t]}},fire:function(t,e,i){if(!this.listens(t,i))return this;var s=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var o=0,a=r.length;o<a;o++){var l=r[o],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,s)}this._firingCount--}}return i&&this._propagateEvent(s),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var s=e;"function"!=typeof e&&(i=!!e,s=void 0,n=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,s,n))return!0;if(i)for(var o in this._eventParents)if(this._eventParents[o].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var s=0,r=i.length;s<r;s++)if(i[s].fn===e&&i[s].ctx===n)return s;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var s=0,r=(t=u(t)).length;s<r;s++)this._on(t[s],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[o(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[o(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var N=E.extend(I);function B(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var M=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function O(t,e,n){return t instanceof B?t:y(t)?new B(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new B(t.x,t.y):new B(t,e,n)}function D(t,e){if(t)for(var n=e?[t,e]:t,i=0,s=n.length;i<s;i++)this.extend(n[i])}function F(t,e){return!t||t instanceof D?t:new D(t,e)}function z(t,e){if(t)for(var n=e?[t,e]:t,i=0,s=n.length;i<s;i++)this.extend(n[i])}function R(t,e){return t instanceof z?t:new z(t,e)}function j(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function U(t,e,n){return t instanceof j?t:y(t)&&"object"!=typeof t[0]?3===t.length?new j(t[0],t[1],t[2]):2===t.length?new j(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new j(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new j(t,e,n)}B.prototype={clone:function(){return new B(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new B(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new B(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=M(this.x),this.y=M(this.y),this},distanceTo:function(t){var e=(t=O(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=O(t)).x===this.x&&t.y===this.y},contains:function(t){return t=O(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},D.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof B||"number"==typeof t[0]||"x"in t)e=n=O(t);else if(e=(t=F(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return O((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return O(this.min.x,this.max.y)},getTopRight:function(){return O(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof B?O(t):F(t))instanceof D?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=F(t);var e=this.min,n=this.max,i=t.min,s=t.max,r=s.x>=e.x&&i.x<=n.x,o=s.y>=e.y&&i.y<=n.y;return r&&o},overlaps:function(t){t=F(t);var e=this.min,n=this.max,i=t.min,s=t.max,r=s.x>e.x&&i.x<n.x,o=s.y>e.y&&i.y<n.y;return r&&o},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,s=Math.abs(e.y-n.y)*t;return F(O(e.x-i,e.y-s),O(n.x+i,n.y+s))},equals:function(t){return!!t&&(t=F(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},z.prototype={extend:function(t){var e,n,i=this._southWest,s=this._northEast;if(t instanceof j)e=t,n=t;else{if(!(t instanceof z))return t?this.extend(U(t)||R(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||s?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),s.lat=Math.max(n.lat,s.lat),s.lng=Math.max(n.lng,s.lng)):(this._southWest=new j(e.lat,e.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,s=Math.abs(e.lng-n.lng)*t;return new z(new j(e.lat-i,e.lng-s),new j(n.lat+i,n.lng+s))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof j||"lat"in t?U(t):R(t);var e,n,i=this._southWest,s=this._northEast;return t instanceof z?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=s.lat&&e.lng>=i.lng&&n.lng<=s.lng},intersects:function(t){t=R(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),s=t.getNorthEast(),r=s.lat>=e.lat&&i.lat<=n.lat,o=s.lng>=e.lng&&i.lng<=n.lng;return r&&o},overlaps:function(t){t=R(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),s=t.getNorthEast(),r=s.lat>e.lat&&i.lat<n.lat,o=s.lng>e.lng&&i.lng<n.lng;return r&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=R(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(t,e){return!!t&&(t=U(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return V.distance(this,U(t))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return R([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var Z,H={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new D(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new j(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,s=e.lng-n.lng;if(0===i&&0===s)return t;var r=t.getSouthWest(),o=t.getNorthEast();return new z(new j(r.lat-i,r.lng-s),new j(o.lat-i,o.lng-s))}},V=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,s=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),o=Math.sin((e.lng-t.lng)*n/2),a=r*r+Math.cos(i)*Math.cos(s)*o*o,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),q=6378137,G={R:q,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),s=Math.sin(i*e);return new B(this.R*t.lng*e,this.R*Math.log((1+s)/(1-s))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(Z=q*Math.PI,new D([-Z,-Z],[Z,Z]))};function W(t,e,n,i){if(y(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function $(t,e,n,i){return new W(t,e,n,i)}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new B((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var K=n({},V,{code:"EPSG:3857",projection:G,transformation:function(){var t=.5/(Math.PI*G.R);return $(t,.5,-t,.5)}()}),J=n({},K,{code:"EPSG:900913"});function Y(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,e){var n,i,s,r,o,a,l="";for(n=0,s=t.length;n<s;n++){for(i=0,r=(o=t[n]).length;i<r;i++)l+=(i?"L":"M")+(a=o[i]).x+" "+a.y;l+=e?zt.svg?"z":"x":""}return l||"M0 0"}var Q,tt=document.documentElement.style,et="ActiveXObject"in window,nt=et&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),st=Ft("webkit"),rt=Ft("android"),ot=Ft("android 2")||Ft("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=rt&&Ft("Google")&&at<537&&!("AudioNode"in window),ct=!!window.opera,ht=!it&&Ft("chrome"),pt=Ft("gecko")&&!st&&!ct&&!et,ut=!ht&&Ft("safari"),dt=Ft("phantom"),ft="OTransition"in tt,mt=0===navigator.platform.indexOf("Win"),gt=et&&"transition"in tt,yt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,At="MozPerspective"in tt,_t=!window.L_DISABLE_3D&&(gt||yt||At)&&!ft&&!dt,vt="undefined"!=typeof orientation||Ft("mobile"),xt=vt&&st,Ct=vt&&yt,bt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!bt),Pt="ontouchstart"in window||!!window.TouchEvent,Tt=!window.L_NO_TOUCH&&(Pt||wt),kt=vt&&ct,Et=vt&&pt,St=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Lt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),It=!!document.createElement("canvas").getContext,Nt=!(!document.createElementNS||!Y("svg").createSVGRect),Bt=!!Nt&&((Q=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Q.firstChild&&Q.firstChild.namespaceURI)),Mt=!Nt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Ot=0===navigator.platform.indexOf("Mac"),Dt=0===navigator.platform.indexOf("Linux");function Ft(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var zt={ie:et,ielt9:nt,edge:it,webkit:st,android:rt,android23:ot,androidStock:lt,opera:ct,chrome:ht,gecko:pt,safari:ut,phantom:dt,opera12:ft,win:mt,ie3d:gt,webkit3d:yt,gecko3d:At,any3d:_t,mobile:vt,mobileWebkit:xt,mobileWebkit3d:Ct,msPointer:bt,pointer:wt,touch:Tt,touchNative:Pt,mobileOpera:kt,mobileGecko:Et,retina:St,passiveEvents:Lt,canvas:It,svg:Nt,vml:Mt,inlineSvg:Bt,mac:Ot,linux:Dt},Rt=zt.msPointer?"MSPointerDown":"pointerdown",jt=zt.msPointer?"MSPointerMove":"pointermove",Ut=zt.msPointer?"MSPointerUp":"pointerup",Zt=zt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:Rt,touchmove:jt,touchend:Ut,touchcancel:Zt},Vt={touchstart:te,touchmove:Qt,touchend:Qt,touchcancel:Qt},qt={},Gt=!1;function Wt(t,e,n){return"touchstart"===e&&Xt(),Vt[e]?(n=Vt[e].bind(this,n),t.addEventListener(Ht[e],n,!1),n):(console.warn("wrong event specified:",e),c)}function $t(t,e,n){Ht[e]?t.removeEventListener(Ht[e],n,!1):console.warn("wrong event specified:",e)}function Kt(t){qt[t.pointerId]=t}function Jt(t){qt[t.pointerId]&&(qt[t.pointerId]=t)}function Yt(t){delete qt[t.pointerId]}function Xt(){Gt||(document.addEventListener(Rt,Kt,!0),document.addEventListener(jt,Jt,!0),document.addEventListener(Ut,Yt,!0),document.addEventListener(Zt,Yt,!0),Gt=!0)}function Qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],qt)e.touches.push(qt[n]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ke(e),Qt(t,e)}function ee(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var ne=200;function ie(t,e){t.addEventListener("dblclick",e);var n,i=0;function s(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var s=Ye(t);if(!s.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||s.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var r=Date.now();r-i<=ne?2==++n&&e(ee(t)):n=1,i=r}}}else n=t.detail}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}function se(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var re,oe,ae,le,ce,he=ke(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),pe=ke(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ue="webkitTransition"===pe||"OTransition"===pe?pe+"End":"transitionend";function de(t){return"string"==typeof t?document.getElementById(t):t}function fe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function me(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ge(t){var e=t.parentNode;e&&e.removeChild(t)}function ye(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Ae(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function _e(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ve(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=we(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function xe(t,e){if(void 0!==t.classList)for(var n=u(e),i=0,s=n.length;i<s;i++)t.classList.add(n[i]);else if(!ve(t,e)){var r=we(t);be(t,(r?r+" ":"")+e)}}function Ce(t,e){void 0!==t.classList?t.classList.remove(e):be(t,p((" "+we(t)+" ").replace(" "+e+" "," ")))}function be(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function we(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Pe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Te(t,e)}function Te(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}function ke(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Ee(t,e,n){var i=e||new B(0,0);t.style[he]=(zt.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Se(t,e){t._leaflet_pos=e,zt.any3d?Ee(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Le(t){return t._leaflet_pos||new B(0,0)}if("onselectstart"in document)re=function(){Re(window,"selectstart",Ke)},oe=function(){Ue(window,"selectstart",Ke)};else{var Ie=ke(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);re=function(){if(Ie){var t=document.documentElement.style;ae=t[Ie],t[Ie]="none"}},oe=function(){Ie&&(document.documentElement.style[Ie]=ae,ae=void 0)}}function Ne(){Re(window,"dragstart",Ke)}function Be(){Ue(window,"dragstart",Ke)}function Me(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Oe(),le=t,ce=t.style.outlineStyle,t.style.outlineStyle="none",Re(window,"keydown",Oe))}function Oe(){le&&(le.style.outlineStyle=ce,le=void 0,ce=void 0,Ue(window,"keydown",Oe))}function De(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Fe(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var ze={__proto__:null,TRANSFORM:he,TRANSITION:pe,TRANSITION_END:ue,get:de,getStyle:fe,create:me,remove:ge,empty:ye,toFront:Ae,toBack:_e,hasClass:ve,addClass:xe,removeClass:Ce,setClass:be,getClass:we,setOpacity:Pe,testProp:ke,setTransform:Ee,setPosition:Se,getPosition:Le,get disableTextSelection(){return re},get enableTextSelection(){return oe},disableImageDrag:Ne,enableImageDrag:Be,preventOutline:Me,restoreOutline:Oe,getSizedParentNode:De,getScale:Fe};function Re(t,e,n,i){if(e&&"object"==typeof e)for(var s in e)Ve(t,s,e[s],n);else for(var r=0,o=(e=u(e)).length;r<o;r++)Ve(t,e[r],n,i);return this}var je="_leaflet_events";function Ue(t,e,n,i){if(1===arguments.length)Ze(t),delete t[je];else if(e&&"object"==typeof e)for(var s in e)qe(t,s,e[s],n);else if(e=u(e),2===arguments.length)Ze(t,(function(t){return-1!==A(e,t)}));else for(var r=0,o=e.length;r<o;r++)qe(t,e[r],n,i);return this}function Ze(t,e){for(var n in t[je]){var i=n.split(/\d/)[0];e&&!e(i)||qe(t,i,null,null,n)}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ve(t,e,n,i){var s=e+o(n)+(i?"_"+o(i):"");if(t[je]&&t[je][s])return this;var r=function(e){return n.call(i||t,e||window.event)},a=r;!zt.touchNative&&zt.pointer&&0===e.indexOf("touch")?r=Wt(t,e,r):zt.touch&&"dblclick"===e?r=ie(t,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,r,!!zt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,en(t,e)&&a(e)},t.addEventListener(He[e],r,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,r),t[je]=t[je]||{},t[je][s]=r}function qe(t,e,n,i,s){s=s||e+o(n)+(i?"_"+o(i):"");var r=t[je]&&t[je][s];if(!r)return this;!zt.touchNative&&zt.pointer&&0===e.indexOf("touch")?$t(t,e,r):zt.touch&&"dblclick"===e?se(t,r):"removeEventListener"in t?t.removeEventListener(He[e]||e,r,!1):t.detachEvent("on"+e,r),t[je][s]=null}function Ge(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function We(t){return Ve(t,"wheel",Ge),this}function $e(t){return Re(t,"mousedown touchstart dblclick contextmenu",Ge),t._leaflet_disable_click=!0,this}function Ke(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Je(t){return Ke(t),Ge(t),this}function Ye(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Xe(t,e){if(!e)return new B(t.clientX,t.clientY);var n=Fe(e),i=n.boundingClientRect;return new B((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Qe=zt.linux&&zt.chrome?window.devicePixelRatio:zt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tn(t){return zt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Qe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function en(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var nn={__proto__:null,on:Re,off:Ue,stopPropagation:Ge,disableScrollPropagation:We,disableClickPropagation:$e,preventDefault:Ke,stop:Je,getPropagationPath:Ye,getMousePosition:Xe,getWheelDelta:tn,isExternalTarget:en,addListener:Re,removeListener:Ue},sn=N.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=Le(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Se(this._el,n),this.fire("step")},_complete:function(){T(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),rn=N.extend({options:{crs:K,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(U(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=pe&&zt.any3d&&!zt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Re(this._proxy,ue,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(U(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),s=this.getSize().divideBy(2),r=(t instanceof B?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/i),o=this.containerPointToLatLng(s.add(r));return this.setView(o,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():R(t);var n=O(e.paddingTopLeft||e.padding||[0,0]),i=O(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,n.add(i));if((s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0)return{center:t.getCenter(),zoom:s};var r=i.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),s),a=this.project(t.getNorthEast(),s);return{center:this.unproject(o.add(a).divideBy(2).add(r),s),zoom:s}},fitBounds:function(t,e){if(!(t=R(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=O(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new sn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){xe(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!zt.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),s=this.project(t),r=this.getSize(),o=this._zoom;t=U(t),e=void 0===e?o:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(o,e),c=s.distanceTo(i)||1,h=1.42,p=h*h;function u(t){var e=(l*l-a*a+(t?-1:1)*p*p*c*c)/(2*(t?l:a)*p*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return d(t)/f(t)}var g=u(0);function y(t){return a*(f(g)/f(g+h*t))}function A(t){return a*(f(g)*m(g+h*t)-d(g))/p}function _(t){return 1-Math.pow(1-t,1.5)}var v=Date.now(),x=(u(1)-g)/h,C=n.duration?1e3*n.duration:1e3*x*.8;function b(){var n=(Date.now()-v)/C,r=_(n)*x;n<=1?(this._flyToFrame=P(b,this),this._move(this.unproject(i.add(s.subtract(i).multiplyBy(A(r)/c)),o),this.getScaleZoom(a/y(r),o),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),b.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=R(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,R(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=O((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=O(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),r=this.project(t),o=this.getPixelBounds(),a=F([o.min.add(n),o.max.subtract(i)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var c=r.subtract(a.getCenter()),h=a.extend(r).getSize().subtract(l);s.x+=c.x<0?-h.x:h.x,s.y+=c.y<0?-h.y:h.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),r=e.divideBy(2).round(),o=i.divideBy(2).round(),a=r.subtract(o);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=s(this._handleGeolocationResponse,this),i=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var s=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(s,i.maxZoom):s)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var o in t.coords)"number"==typeof t.coords[o]&&(r[o]=t.coords[o]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ge(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ge(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=me("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=R(t),n=O(n||[0,0]);var i=this.getZoom()||0,s=this.getMinZoom(),r=this.getMaxZoom(),o=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),c=F(this.project(a,i),this.project(o,i)).getSize(),h=zt.any3d?this.options.zoomSnap:1,p=l.x/c.x,u=l.y/c.y,d=e?Math.max(p,u):Math.min(p,u);return i=this.getScaleZoom(d,i),h&&(i=Math.round(i/(h/100))*(h/100),i=e?Math.ceil(i/h)*h:Math.floor(i/h)*h),Math.max(s,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new B(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new D(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(O(t),e)},layerPointToLatLng:function(t){var e=O(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(U(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(O(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return Xe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=de(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Re(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&zt.any3d,xe(t,"leaflet-container"+(zt.touch?" leaflet-touch":"")+(zt.retina?" leaflet-retina":"")+(zt.ielt9?" leaflet-oldie":"")+(zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=fe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Se(this._mapPane,new B(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(xe(t.markerPane,"leaflet-zoom-hide"),xe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Se(this._mapPane,new B(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var s=this._zoom!==e;this._moveStart(s,n)._move(t,e)._moveEnd(s),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((s||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Se(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?Ue:Re;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),zt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],s="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,a=!1;r;){if((n=this._targets[o(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(s&&!en(r,t))break;if(i.push(n),s)break}if(r===this._container)break;r=r.parentNode}return i.length||a||s||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Me(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var s=n({},t);s.type="preclick",this._fireDOMEvent(s,s.type,i)}var r=this._findEventTargets(t,e);if(i){for(var o=[],a=0;a<i.length;a++)i[a].listens(e,!0)&&o.push(i[a]);r=o.concat(r)}if(r.length){"contextmenu"===e&&Ke(t);var l=r[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var h=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=h?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=h?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<r.length;a++)if(r[a].fire(e,c,!0),c.originalEvent._stopped||!1===r[a].options.bubblingMouseEvents&&-1!==A(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Le(this._mapPane)||new B(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return F([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),s=this.getSize().divideBy(2),r=new D(i.subtract(s),i.add(s)),o=this._getBoundsOffset(r,n,e);return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?t:this.unproject(i.add(o),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new D(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=F(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),s=i.min.subtract(t.min),r=i.max.subtract(t.max);return new B(this._rebound(s.x,-r.x),this._rebound(s.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=zt.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ce(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=he,n=this._proxy.style[e];Ee(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ge(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ee(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),s=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(s)||(P((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ce(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 on(t,e){return new rn(t,e)}var an=E.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return xe(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ge(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ln=function(t){return new an(t)};rn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=me("div",e+"control-container",this._container);function i(i,s){var r=e+i+" "+e+s;t[i+s]=me("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ge(this._controlCorners[t]);ge(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var cn=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return an.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(o(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){xe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(xe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ce(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ce(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=me("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),$e(e),We(e);var i=this._section=me("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Re(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var s=this._layersLink=me("a",t+"-toggle",e);s.href="#",s.title="Layers",s.setAttribute("role","button"),Re(s,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ke(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=me("div",t+"-base",i),this._separator=me("div",t+"-separator",i),this._overlaysList=me("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&o(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(s((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ye(this._baseLayersList),ye(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,s=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,s+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&s>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+o(this),i),this._layerControlInputs.push(e),e.layerId=o(t.layer),Re(e,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("span");return n.appendChild(r),r.appendChild(e),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],s=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||s.push(e);for(r=0;r<s.length;r++)this._map.hasLayer(s[r])&&this._map.removeLayer(s[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),s=n.length-1;s>=0;s--)t=n[s],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Re(t,"click",Ke),this.expand();var e=this;setTimeout((function(){Ue(t,"click",Ke),e._preventClick=!1}))}}),hn=function(t,e,n){return new cn(t,e,n)},pn=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=me("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,s){var r=me("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),$e(r),Re(r,"click",Je),Re(r,"click",s,this),Re(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Ce(this._zoomInButton,e),Ce(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(xe(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(xe(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new pn,this.addControl(this.zoomControl))}));var un=function(t){return new pn(t)},dn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=me("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=me("div",e,n)),t.imperial&&(this._iScale=me("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,s=3.2808399*t;s>5280?(e=s/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(s),this._updateScale(this._iScale,i+" ft",i/s))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),fn=function(t){return new dn(t)},mn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',gn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(zt.inlineSvg?mn+" ":"")+"Leaflet</a>"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=me("div","leaflet-control-attribution"),$e(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new gn).addTo(this)}));var yn=function(t){return new gn(t)};an.Layers=cn,an.Zoom=pn,an.Scale=dn,an.Attribution=gn,ln.layers=hn,ln.zoom=un,ln.scale=fn,ln.attribution=yn;var An=E.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});An.addTo=function(t,e){return t.addHandler(e,this),this};var _n={Events:I},vn=zt.touch?"touchstart mousedown":"mousedown",xn=N.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Re(this._dragStartTarget,vn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xn._dragging===this&&this.finishDrag(!0),Ue(this._dragStartTarget,vn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ve(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)xn._dragging===this&&this.finishDrag();else if(!(xn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(xn._dragging=this,this._preventOutline&&Me(this._element),Ne(),re(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=De(this._element);this._startPoint=new B(e.clientX,e.clientY),this._startPos=Le(this._element),this._parentScale=Fe(n);var i="mousedown"===t.type;Re(document,i?"mousemove":"touchmove",this._onMove,this),Re(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new B(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ke(t),this._moved||(this.fire("dragstart"),this._moved=!0,xe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),xe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Se(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Ce(document.body,"leaflet-dragging"),this._lastTarget&&(Ce(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ue(document,"mousemove touchmove",this._onMove,this),Ue(document,"mouseup touchend touchcancel",this._onUp,this),Be(),oe();var e=this._moved&&this._moving;this._moving=!1,xn._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Cn(t,e,n){var i,s,r,o,a,l,c,h,p,u=[1,4,2,8];for(s=0,c=t.length;s<c;s++)t[s]._code=On(t[s],e);for(o=0;o<4;o++){for(h=u[o],i=[],s=0,r=(c=t.length)-1;s<c;r=s++)a=t[s],l=t[r],a._code&h?l._code&h||((p=Mn(l,a,h,e,n))._code=On(p,e),i.push(p)):(l._code&h&&((p=Mn(l,a,h,e,n))._code=On(p,e),i.push(p)),i.push(a));t=i}return t}function bn(t,e){var n,i,s,r,o,a,l,c,h;if(!t||0===t.length)throw new Error("latlngs not passed");zn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var p=U([0,0]),u=R(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(p=wn(t));var d=t.length,f=[];for(n=0;n<d;n++){var m=U(t[n]);f.push(e.project(U([m.lat-p.lat,m.lng-p.lng])))}for(a=l=c=0,n=0,i=d-1;n<d;i=n++)s=f[n],r=f[i],o=s.y*r.x-r.y*s.x,l+=(s.x+r.x)*o,c+=(s.y+r.y)*o,a+=3*o;h=0===a?f[0]:[l/a,c/a];var g=e.unproject(O(h));return U([g.lat+p.lat,g.lng+p.lng])}function wn(t){for(var e=0,n=0,i=0,s=0;s<t.length;s++){var r=U(t[s]);e+=r.lat,n+=r.lng,i++}return U([e/i,n/i])}var Pn,Tn={__proto__:null,clipPolygon:Cn,polygonCenter:bn,centroid:wn};function kn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Ln(t=Nn(t,n),n)}function En(t,e,n){return Math.sqrt(Fn(t,e,n,!0))}function Sn(t,e,n){return Fn(t,e,n)}function Ln(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,In(t,i,e,0,n-1);var s,r=[];for(s=0;s<n;s++)i[s]&&r.push(t[s]);return r}function In(t,e,n,i,s){var r,o,a,l=0;for(o=i+1;o<=s-1;o++)(a=Fn(t[o],t[i],t[s],!0))>l&&(r=o,l=a);l>n&&(e[r]=1,In(t,e,n,i,r),In(t,e,n,r,s))}function Nn(t,e){for(var n=[t[0]],i=1,s=0,r=t.length;i<r;i++)Dn(t[i],t[s])>e&&(n.push(t[i]),s=i);return s<r-1&&n.push(t[r-1]),n}function Bn(t,e,n,i,s){var r,o,a,l=i?Pn:On(t,n),c=On(e,n);for(Pn=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=On(o=Mn(t,e,r=l||c,n,s),n),r===l?(t=o,l=a):(e=o,c=a)}}function Mn(t,e,n,i,s){var r,o,a=e.x-t.x,l=e.y-t.y,c=i.min,h=i.max;return 8&n?(r=t.x+a*(h.y-t.y)/l,o=h.y):4&n?(r=t.x+a*(c.y-t.y)/l,o=c.y):2&n?(r=h.x,o=t.y+l*(h.x-t.x)/a):1&n&&(r=c.x,o=t.y+l*(c.x-t.x)/a),new B(r,o,s)}function On(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Dn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function Fn(t,e,n,i){var s,r=e.x,o=e.y,a=n.x-r,l=n.y-o,c=a*a+l*l;return c>0&&((s=((t.x-r)*a+(t.y-o)*l)/c)>1?(r=n.x,o=n.y):s>0&&(r+=a*s,o+=l*s)),a=t.x-r,l=t.y-o,i?a*a+l*l:new B(r,o)}function zn(t){return!y(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Rn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zn(t)}function jn(t,e){var n,i,s,r,o,a,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");zn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=U([0,0]),p=R(t);p.getNorthWest().distanceTo(p.getSouthWest())*p.getNorthEast().distanceTo(p.getNorthWest())<1700&&(h=wn(t));var u=t.length,d=[];for(n=0;n<u;n++){var f=U(t[n]);d.push(e.project(U([f.lat-h.lat,f.lng-h.lng])))}for(n=0,i=0;n<u-1;n++)i+=d[n].distanceTo(d[n+1])/2;if(0===i)c=d[0];else for(n=0,r=0;n<u-1;n++)if(o=d[n],a=d[n+1],(r+=s=o.distanceTo(a))>i){l=(r-i)/s,c=[a.x-l*(a.x-o.x),a.y-l*(a.y-o.y)];break}var m=e.unproject(O(c));return U([m.lat+h.lat,m.lng+h.lng])}var Un={__proto__:null,simplify:kn,pointToSegmentDistance:En,closestPointOnSegment:Sn,clipSegment:Bn,_getEdgeIntersection:Mn,_getBitCode:On,_sqClosestPointOnSegment:Fn,isFlat:zn,_flat:Rn,polylineCenter:jn},Zn={project:function(t){return new B(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new D([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,s=this.R_MINOR/n,r=Math.sqrt(1-s*s),o=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-o)/(1+o),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new B(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,s=this.R_MINOR/i,r=Math.sqrt(1-s*s),o=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(o),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=c=Math.PI/2-2*Math.atan(o*e)-a;return new j(a*n,t.x*n/i)}},Vn={__proto__:null,LonLat:Zn,Mercator:Hn,SphericalMercator:G},qn=n({},V,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return $(t,.5,-t,.5)}()}),Gn=n({},V,{code:"EPSG:4326",projection:Zn,transformation:$(1/180,1,-1/180,.5)}),Wn=n({},H,{projection:Zn,transformation:$(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});H.Earth=V,H.EPSG3395=qn,H.EPSG3857=K,H.EPSG900913=J,H.EPSG4326=Gn,H.Simple=Wn;var $n=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?y(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[o(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=o(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var s=this._zoomBoundLayers[i].options;t=void 0===s.minZoom?t:Math.min(t,s.minZoom),e=void 0===s.maxZoom?e:Math.max(e,s.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Kn=$n.extend({initialize:function(t,e){var n,i;if(d(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}}),Jn=function(t,e){return new Kn(t,e)},Yn=Kn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Kn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Kn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new z;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Xn=function(t,e){return new Yn(t,e)},Qn=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var s=O(i),r=O("shadow"===e&&n.shadowAnchor||n.iconAnchor||s&&s.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function ti(t){return new Qn(t)}var ei=Qn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof ei.imagePath&&(ei.imagePath=this._detectIconPath()),(this.options.imagePath||ei.imagePath)+Qn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=me("div","leaflet-default-icon-path",document.body),e=fe(t,"background-image")||fe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),ni=An.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new xn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),xe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ce(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,r=Le(e._icon),o=n.getPixelBounds(),a=n.getPixelOrigin(),l=F(o.min._subtract(a).add(s),o.max._subtract(a).subtract(s));if(!l.contains(r)){var c=O((Math.max(l.max.x,r.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Se(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(T(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=Le(e._icon),s=e._map.layerPointToLatLng(i);n&&Se(n,i),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ii=$n.extend({options:{icon:new ei,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=U(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),xe(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Re(n,"focus",this._panOnFocus,this);var s=t.icon.createShadow(this._shadow),r=!1;s!==this._shadow&&(this._removeShadow(),r=!0),s&&(xe(s,e),s.alt=""),this._shadow=s,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),s&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ue(this._icon,"focus",this._panOnFocus,this),ge(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ge(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Se(this._icon,t),this._shadow&&Se(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ni)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ni(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Pe(this._icon,t),this._shadow&&Pe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?O(e.iconSize):O(0,0),i=e.iconAnchor?O(e.iconAnchor):O(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function si(t,e){return new ii(t,e)}var ri=$n.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),oi=ri.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=U(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return ri.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new D(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ai(t,e){return new oi(t,e)}var li=oi.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=n({},i,{radius:e})),d(this,e),this._latlng=U(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ri.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===V.distance){var s=Math.PI/180,r=this._mRadius/V.R/s,o=n.project([e+r,t]),a=n.project([e-r,t]),l=o.add(a).divideBy(2),c=n.unproject(l).lat,h=Math.acos((Math.cos(r*s)-Math.sin(e*s)*Math.sin(c*s))/(Math.cos(e*s)*Math.cos(c*s)))/s;(isNaN(h)||0===h)&&(h=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(h)?0:l.x-n.project([c,t-h]).x,this._radiusY=l.y-o.y}else{var p=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(p).x}this._updateBounds()}});function ci(t,e,n){return new li(t,e,n)}var hi=ri.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,s=null,r=Fn,o=0,a=this._parts.length;o<a;o++)for(var l=this._parts[o],c=1,h=l.length;c<h;c++){var p=r(t,e=l[c-1],n=l[c],!0);p<i&&(i=p,s=r(t,e,n))}return s&&(s.distance=Math.sqrt(i)),s},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return jn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return zn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=zn(t),i=0,s=t.length;i<s;i++)n?(e[i]=U(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new B(t,t);this._rawPxBounds&&(this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,s,r=t[0]instanceof j,o=t.length;if(r){for(s=[],i=0;i<o;i++)s[i]=this._map.latLngToLayerPoint(t[i]),n.extend(s[i]);e.push(s)}else for(i=0;i<o;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,s,r,o,a,l=this._parts;for(e=0,i=0,s=this._rings.length;e<s;e++)for(n=0,r=(a=this._rings[e]).length;n<r-1;n++)(o=Bn(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(o[0]),o[1]===a[n+1]&&n!==r-2||(l[i].push(o[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=kn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,s,r,o,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(i=0,s=(o=(a=this._parts[n]).length)-1;i<o;s=i++)if((e||0!==i)&&En(t,a[s],a[i])<=l)return!0;return!1}});function pi(t,e){return new hi(t,e)}hi._flat=Rn;var ui=hi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return bn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=hi.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof j&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){hi.prototype._setLatLngs.call(this,t),zn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return zn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new B(e,e);if(t=new D(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,s=0,r=this._rings.length;s<r;s++)(i=Cn(this._rings[s],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,s,r,o,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,a=this._parts.length;s<a;s++)for(r=0,o=(l=(e=this._parts[s]).length)-1;r<l;o=r++)n=e[r],i=e[o],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||hi.prototype._containsPoint.call(this,t,!0)}});function di(t,e){return new ui(t,e)}var fi=Yn.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,s=y(t)?t:t.features;if(s){for(e=0,n=s.length;e<n;e++)((i=s[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var o=mi(t,r);return o?(o.feature=Ci(t),o.defaultOptions=o.options,this.resetStyle(o),r.onEachFeature&&r.onEachFeature(t,o),this.addLayer(o)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function mi(t,e){var n,i,s,r,o="Feature"===t.type?t.geometry:t,a=o?o.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||yi;if(!a&&!o)return null;switch(o.type){case"Point":return gi(c,t,n=h(a),e);case"MultiPoint":for(s=0,r=a.length;s<r;s++)n=h(a[s]),l.push(gi(c,t,n,e));return new Yn(l);case"LineString":case"MultiLineString":return i=Ai(a,"LineString"===o.type?0:1,h),new hi(i,e);case"Polygon":case"MultiPolygon":return i=Ai(a,"Polygon"===o.type?1:2,h),new ui(i,e);case"GeometryCollection":for(s=0,r=o.geometries.length;s<r;s++){var p=mi({geometry:o.geometries[s],type:"Feature",properties:t.properties},e);p&&l.push(p)}return new Yn(l);case"FeatureCollection":for(s=0,r=o.features.length;s<r;s++){var u=mi(o.features[s],e);u&&l.push(u)}return new Yn(l);default:throw new Error("Invalid GeoJSON object.")}}function gi(t,e,n,i){return t?t(e,n):new ii(n,i&&i.markersInheritOptions&&i)}function yi(t){return new j(t[1],t[0],t[2])}function Ai(t,e,n){for(var i,s=[],r=0,o=t.length;r<o;r++)i=e?Ai(t[r],e-1,n):(n||yi)(t[r]),s.push(i);return s}function _i(t,e){return void 0!==(t=U(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function vi(t,e,n,i){for(var s=[],r=0,o=t.length;r<o;r++)s.push(e?vi(t[r],zn(t[r])?0:e-1,n,i):_i(t[r],i));return!e&&n&&s.length>0&&s.push(s[0].slice()),s}function xi(t,e){return t.feature?n({},t.feature,{geometry:e}):Ci(e)}function Ci(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var bi={toGeoJSON:function(t){return xi(this,{type:"Point",coordinates:_i(this.getLatLng(),t)})}};function wi(t,e){return new fi(t,e)}ii.include(bi),li.include(bi),oi.include(bi),hi.include({toGeoJSON:function(t){var e=!zn(this._latlngs);return xi(this,{type:(e?"Multi":"")+"LineString",coordinates:vi(this._latlngs,e?1:0,!1,t)})}}),ui.include({toGeoJSON:function(t){var e=!zn(this._latlngs),n=e&&!zn(this._latlngs[0]),i=vi(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),xi(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Kn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),xi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){if(e.toGeoJSON){var s=e.toGeoJSON(t);if(n)i.push(s.geometry);else{var r=Ci(s);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}})),n?xi(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Pi=wi,Ti=$n.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=R(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(xe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ge(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Ae(this._image),this},bringToBack:function(){return this._map&&_e(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=R(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:me("img");xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ee(this._image,n,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Se(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){Pe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),ki=function(t,e,n){return new Ti(t,e,n)},Ei=Ti.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:me("video");if(xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=s(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],r=0;r<n.length;r++)i.push(n[r].src);this._url=n.length>0?i:[e.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var a=me("source");a.src=this._url[o],e.appendChild(a)}}}});function Si(t,e,n){return new Ei(t,e,n)}var Li=Ti.extend({_initImage:function(){var t=this._image=this._url;xe(t,"leaflet-image-layer"),this._zoomAnimated&&xe(t,"leaflet-zoom-animated"),this.options.className&&xe(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Ii(t,e,n){return new Li(t,e,n)}var Ni=$n.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof j||y(t))?(this._latlng=U(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Pe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Pe(this._container,1),this.bringToFront(),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Pe(this._container,0),this._removeTimeout=setTimeout(s(ge,void 0,this._container),200)):ge(this._container),this.options.interactive&&(Ce(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=U(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ae(this._container),this},bringToBack:function(){return this._map&&_e(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Yn){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=O(this.options.offset),n=this._getAnchor();this._zoomAnimated?Se(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,s=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=s+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(t,e,n,i){var s=e;return s instanceof t||(s=new t(i).setContent(e)),n&&s.setLatLng(n),s}}),$n.include({_initOverlay:function(t,e,n,i){var s=n;return s instanceof t?(d(s,i),s._source=this):(s=e&&!i?e:new t(i,this)).setContent(n),s}});var Bi=Ni.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Ni.prototype.openOn.call(this,t)},onAdd:function(t){Ni.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ri||this._source.on("preclick",Ge))},onRemove:function(t){Ni.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ri||this._source.off("preclick",Ge))},getEvents:function(){var t=Ni.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=me("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=me("div",t+"-content-wrapper",e);if(this._contentNode=me("div",t+"-content",n),$e(e),We(this._contentNode),Re(e,"contextmenu",Ge),this._tipContainer=me("div",t+"-tip-container",e),this._tip=me("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=me("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',Re(i,"click",(function(t){Ke(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,s=this.options.maxHeight,r="leaflet-popup-scrolled";s&&i>s?(e.height=s+"px",xe(t,r)):Ce(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Se(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(fe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,s=new B(this._containerLeft,-n-this._containerBottom);s._add(Le(this._container));var r=t.layerPointToContainerPoint(s),o=O(this.options.autoPanPadding),a=O(this.options.autoPanPaddingTopLeft||o),l=O(this.options.autoPanPaddingBottomRight||o),c=t.getSize(),h=0,p=0;r.x+i+l.x>c.x&&(h=r.x+i-c.x+l.x),r.x-h-a.x<0&&(h=r.x-a.x),r.y+n+l.y>c.y&&(p=r.y+n-c.y+l.y),r.y-p-a.y<0&&(p=r.y-a.y),(h||p)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([h,p]))}},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Mi=function(t,e){return new Bi(t,e)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(t,e,n){return this._initOverlay(Bi,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),$n.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Bi,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Yn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Je(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof ri?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Oi=Ni.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ni.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Ni.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Ni.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=me("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,s=this._container,r=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),a=this.options.direction,l=s.offsetWidth,c=s.offsetHeight,h=O(this.options.offset),p=this._getAnchor();"top"===a?(e=l/2,n=c):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=c/2):"right"===a?(e=0,n=c/2):"left"===a?(e=l,n=c/2):o.x<r.x?(a="right",e=0,n=c/2):(a="left",e=l+2*(h.x+p.x),n=c/2),t=t.subtract(O(e,n,!0)).add(h).add(p),Ce(s,"leaflet-tooltip-right"),Ce(s,"leaflet-tooltip-left"),Ce(s,"leaflet-tooltip-top"),Ce(s,"leaflet-tooltip-bottom"),xe(s,"leaflet-tooltip-"+a),Se(s,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Pe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Di=function(t,e){return new Oi(t,e)};rn.include({openTooltip:function(t,e,n){return this._initOverlay(Oi,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),$n.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Oi,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Yn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Re(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Re(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var Fi=Qn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ye(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=O(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function zi(t){return new Fi(t)}Qn.Default=ei;var Ri=$n.extend({options:{tileSize:256,opacity:1,updateWhenIdle:zt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ge(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ae(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_e(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof B?t:new B(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),s=0,r=n.length;s<r;s++)e=n[s].style.zIndex,n[s]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!zt.ielt9){Pe(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var s=this._tiles[i];if(s.current&&s.loaded){var r=Math.min(1,(t-s.loaded)/200);Pe(s.el,r),r<1?e=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(T(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=me("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(ge(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],s=this._map;return i||((i=this._levels[t]={}).el=me("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,s.getCenter(),s.getZoom()),c(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ge(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var s=Math.floor(t/2),r=Math.floor(e/2),o=n-1,a=new B(+s,+r);a.z=+o;var l=this._tileCoordsToKey(a),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),o>i&&this._retainParent(s,r,o,i))},_retainChildren:function(t,e,n,i){for(var s=2*t;s<2*t+2;s++)for(var r=2*e;r<2*e+2;r++){var o=new B(s,r);o.z=n+1;var a=this._tileCoordsToKey(o),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(s,r,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var s=Math.round(e);s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s);var r=this.options.updateWhenZooming&&s!==this._tileZoom;i&&!r||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),s=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();zt.any3d?Ee(t.el,s,i):Se(t.el,s)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),s=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new D(s.subtract(r),s.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(i),r=s.getCenter(),o=[],a=this.options.keepBuffer,l=new D(s.getBottomLeft().subtract([a,-a]),s.getTopRight().add([a,-a]));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var h=this._tiles[c].coords;h.z===this._tileZoom&&l.contains(new B(h.x,h.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var p=s.min.y;p<=s.max.y;p++)for(var u=s.min.x;u<=s.max.x;u++){var d=new B(u,p);if(d.z=this._tileZoom,this._isValidTile(d)){var f=this._tiles[this._tileCoordsToKey(d)];f?f.current=!0:o.push(d)}}if(o.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(u=0;u<o.length;u++)this._addTile(o[u],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),s=i.add(n);return[e.unproject(i,t.z),e.unproject(s,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new z(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new B(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ge(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){xe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,zt.ielt9&&this.options.opacity<1&&Pe(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&P(s(this._tileReady,this,t,null,r)),Se(r,n),this._tiles[i]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(Pe(n.el,0),T(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(xe(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),zt.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new B(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function ji(t){return new Ri(t)}var Ui=Ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&zt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Re(n,"load",s(this._tileOnLoad,this,e,n)),Re(n,"error",s(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return g(this._url,n(e,this.options))},_tileOnLoad:function(t,e){zt.ielt9?setTimeout(s(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=_;var n=this._tiles[t].coords;ge(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",_),Ri.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return Ri.prototype._tileReady.call(this,t,e,n)}});function Zi(t,e){return new Ui(t,e)}var Hi=Ui.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var s in e)s in this.options||(i[s]=e[s]);var r=(e=d(this,e)).detectRetina&&zt.retina?2:1,o=this.getTileSize();i.width=o.x*r,i.height=o.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Ui.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=F(n.project(e[0]),n.project(e[1])),s=i.min,r=i.max,o=(this._wmsVersion>=1.3&&this._crs===Gn?[s.y,s.x,r.y,r.x]:[s.x,s.y,r.x,r.y]).join(","),a=Ui.prototype.getTileUrl.call(this,t);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Vi(t,e){return new Hi(t,e)}Ui.WMS=Hi,Zi.wms=Vi;var qi=$n.extend({options:{padding:.1},initialize:function(t){d(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),xe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),r=i.multiplyBy(-n).add(s).subtract(this._map._getNewPixelOrigin(t,e));zt.any3d?Ee(this._container,r,n):Se(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Gi=qi.extend({options:{tolerance:0},getEvents:function(){var t=qi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){qi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this),Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,ge(this._container),Ue(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){qi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=zt.retina?2:1;Se(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",zt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){qi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),s=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;s.push(e)}t.options._dashArray=s}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,s,r,o=t._parts,a=o.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,s=o[n].length;i<s;i++)r=o[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==s&&(n.save(),n.scale(1,s)),n.beginPath(),n.arc(e.x,e.y/s,i,0,2*Math.PI,!1),1!==s&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(Ce(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(xe(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Wi(t){return zt.canvas?new Gi(t):null}var $i=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ki={_initContainer:function(){this._container=me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(qi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=$i("shape");xe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=$i("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ge(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,s=t._container;s.stroked=!!i.stroke,s.filled=!!i.fill,i.stroke?(e||(e=t._stroke=$i("stroke")),s.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=y(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(s.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=$i("fill")),s.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(s.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Ae(t._container)},_bringToBack:function(t){_e(t._container)}},Ji=zt.vml?$i:Y,Yi=qi.extend({_initContainer:function(){this._container=Ji("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ji("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ge(this._container),Ue(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){qi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Se(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Ji("path");t.options.className&&xe(e,t.options.className),t.options.interactive&&xe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ge(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Ae(t._path)},_bringToBack:function(t){_e(t._path)}});function Xi(t){return zt.svg||zt.vml?new Yi(t):null}zt.vml&&Yi.include(Ki),rn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Wi(t)||Xi(t)}});var Qi=ui.extend({initialize:function(t,e){ui.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=R(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function ts(t,e){return new Qi(t,e)}Yi.create=Ji,Yi.pointsToPath=X,fi.geometryToLayer=mi,fi.coordsToLatLng=yi,fi.coordsToLatLngs=Ai,fi.latLngToCoords=_i,fi.latLngsToCoords=vi,fi.getFeature=xi,fi.asFeature=Ci,rn.mergeOptions({boxZoom:!0});var es=An.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ue(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ge(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),re(),Ne(),this._startPoint=this._map.mouseEventToContainerPoint(t),Re(document,{contextmenu:Je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=me("div","leaflet-zoom-box",this._container),xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),n=e.getSize();Se(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ge(this._box),Ce(this._container,"leaflet-crosshair")),oe(),Be(),Ue(document,{contextmenu:Je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",es),rn.mergeOptions({doubleClickZoom:!0});var ns=An.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,s=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(s):e.setZoomAround(t.containerPoint,s)}});rn.addInitHook("addHandler","doubleClickZoom",ns),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var is=An.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ce(this._map._container,"leaflet-grab"),Ce(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,s=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,o=Math.abs(s+n)<Math.abs(r+n)?s:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var s=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,a=s.multiplyBy(o/r),l=a.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),h=a.multiplyBy(c/l),p=c/(n.inertiaDeceleration*o),u=h.multiplyBy(-p/2).round();u.x||u.y?(u=e._limitOffset(u,e.options.maxBounds),P((function(){e.panBy(u,{duration:p,easeLinearity:o,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});rn.addInitHook("addHandler","dragging",is),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ss=An.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Re(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ue(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},s=this.keyCodes;for(e=0,n=s.left.length;e<n;e++)i[s.left[e]]=[-1*t,0];for(e=0,n=s.right.length;e<n;e++)i[s.right[e]]=[t,0];for(e=0,n=s.down.length;e<n;e++)i[s.down[e]]=[0,t];for(e=0,n=s.up.length;e<n;e++)i[s.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},s=this.keyCodes;for(e=0,n=s.zoomIn.length;e<n;e++)i[s.zoomIn[e]]=t;for(e=0,n=s.zoomOut.length;e<n;e++)i[s.zoomOut[e]]=-t},_addHooks:function(){Re(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ue(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=O(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(O(e),i.options.maxBounds)),i.options.worldCopyJump){var s=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(s)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Je(t)}}});rn.addInitHook("addHandler","keyboard",ss),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var rs=An.extend({addHooks:function(){Re(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ue(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=tn(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),i),Je(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),s=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(s/n)*n:s,o=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,o&&("center"===t.options.scrollWheelZoom?t.setZoom(e+o):t.setZoomAround(this._lastMousePos,e+o))}});rn.addInitHook("addHandler","scrollWheelZoom",rs);var os=600;rn.mergeOptions({tapHold:zt.touchNative&&zt.safari&&zt.mobile,tapTolerance:15});var as=An.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ue(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new B(e.clientX,e.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(Re(document,"touchend",Ke),Re(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),os),Re(document,"touchend touchcancel contextmenu",this._cancel,this),Re(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ue(document,"touchend",Ke),Ue(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ue(document,"touchend touchcancel contextmenu",this._cancel,this),Ue(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new B(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",as),rn.mergeOptions({touchZoom:zt.touch,bounceAtZoomLimits:!0});var ls=An.extend({addHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ce(this._map._container,"leaflet-touch-zoom"),Ue(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Re(document,"touchmove",this._onTouchMove,this),Re(document,"touchend touchcancel",this._onTouchEnd,this),Ke(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var o=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===o.x&&0===o.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),T(this._animRequest);var a=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(a,this,!0),Ke(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),Ue(document,"touchmove",this._onTouchMove,this),Ue(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});rn.addInitHook("addHandler","touchZoom",ls),rn.BoxZoom=es,rn.DoubleClickZoom=ns,rn.Drag=is,rn.Keyboard=ss,rn.ScrollWheelZoom=rs,rn.TapHold=as,rn.TouchZoom=ls,t.Bounds=D,t.Browser=zt,t.CRS=H,t.Canvas=Gi,t.Circle=li,t.CircleMarker=oi,t.Class=E,t.Control=an,t.DivIcon=Fi,t.DivOverlay=Ni,t.DomEvent=nn,t.DomUtil=ze,t.Draggable=xn,t.Evented=N,t.FeatureGroup=Yn,t.GeoJSON=fi,t.GridLayer=Ri,t.Handler=An,t.Icon=Qn,t.ImageOverlay=Ti,t.LatLng=j,t.LatLngBounds=z,t.Layer=$n,t.LayerGroup=Kn,t.LineUtil=Un,t.Map=rn,t.Marker=ii,t.Mixin=_n,t.Path=ri,t.Point=B,t.PolyUtil=Tn,t.Polygon=ui,t.Polyline=hi,t.Popup=Bi,t.PosAnimation=sn,t.Projection=Vn,t.Rectangle=Qi,t.Renderer=qi,t.SVG=Yi,t.SVGOverlay=Li,t.TileLayer=Ui,t.Tooltip=Oi,t.Transformation=W,t.Util=k,t.VideoOverlay=Ei,t.bind=s,t.bounds=F,t.canvas=Wi,t.circle=ci,t.circleMarker=ai,t.control=ln,t.divIcon=zi,t.extend=n,t.featureGroup=Xn,t.geoJSON=wi,t.geoJson=Pi,t.gridLayer=ji,t.icon=ti,t.imageOverlay=ki,t.latLng=U,t.latLngBounds=R,t.layerGroup=Jn,t.map=on,t.marker=si,t.point=O,t.polygon=di,t.polyline=pi,t.popup=Mi,t.rectangle=ts,t.setOptions=d,t.stamp=o,t.svg=Xi,t.svgOverlay=Ii,t.tileLayer=Zi,t.tooltip=Di,t.transformation=$,t.version=e,t.videoOverlay=Si;var cs=window.L;t.noConflict=function(){return window.L=cs,this},window.L=t}(e)},72:(t,e,n)=>{"use strict";var i,s=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function a(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],s=0;s<t.length;s++){var r=t[s],l=e.base?r[0]+e.base:r[0],c=n[l]||0,h="".concat(l," ").concat(c);n[l]=c+1;var p=a(h),u={css:r[1],media:r[2],sourceMap:r[3]};-1!==p?(o[p].references++,o[p].updater(u)):o.push({identifier:h,updater:g(u,e),references:1}),i.push(h)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var s=n.nc;s&&(i.nonce=s)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var o=r(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var h,p=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function u(t,e,n,i){var s=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(e,s);else{var r=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function d(t,e,n){var i=n.css,s=n.media,r=n.sourceMap;if(s?t.setAttribute("media",s):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,m=0;function g(t,e){var n,i,s;if(e.singleton){var r=m++;n=f||(f=c(e)),i=u.bind(null,n,r,!1),s=u.bind(null,n,r,!0)}else n=c(e),i=d.bind(null,n,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=s());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var s=a(n[i]);o[s].references--}for(var r=l(t,e),c=0;c<n.length;c++){var h=a(n[c]);0===o[h].references&&(o[h].updater(),o.splice(h,1))}n=r}}}},262:(t,e)=>{"use strict";e.A=(t,e)=>{const n=t.__vccOpts||t;for(const[t,i]of e)n[t]=i;return n}},172:(t,e)=>{"use strict";function n(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}class i{constructor(t,e,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=n}}class s{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function r(t,e){const{line:n,column:s,index:r}=t;return new i(n,s+e,r+e)}const o="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var a={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:o},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:o}};const l={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},c=t=>"UpdateExpression"===t.type?l.UpdateExpression[`${t.prefix}`]:l[t.type];var h={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${c(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${c(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${c(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const p=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var u={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const d=["message"];function f(t,e,n){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:n})}function m({toMessage:t,code:e,reasonCode:n,syntaxPlugin:s}){const r="MissingPlugin"===n||"MissingOneOfPlugins"===n;{const t={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};t[n]&&(n=t[n])}return function o(a,l){const c=new SyntaxError;return c.code=e,c.reasonCode=n,c.loc=a,c.pos=a.index,c.syntaxPlugin=s,r&&(c.missingPlugin=l.missingPlugin),f(c,"clone",(function(t={}){var e;const{line:n,column:s,index:r}=null!=(e=t.loc)?e:a;return o(new i(n,s,r),Object.assign({},l,t.details))})),f(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){const e=`${t(l)} (${a.line}:${a.column})`;return this.message=e,e},set(t){Object.defineProperty(this,"message",{value:t,writable:!0})}}),c}}function g(t,e){if(Array.isArray(t))return e=>g(e,t[0]);const i={};for(const s of Object.keys(t)){const r=t[s],o="string"==typeof r?{message:()=>r}:"function"==typeof r?{message:r}:r,{message:a}=o,l=n(o,d),c="string"==typeof a?()=>a:a;i[s]=m(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:c},e?{syntaxPlugin:e}:{},l))}return i}const y=Object.assign({},g(a),g(h),g({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),g`pipelineOperator`(u)),{defineProperty:A}=Object,_=(t,e)=>{t&&A(t,e,{enumerable:!1,value:t[e]})};function v(t){return _(t.loc.start,"index"),_(t.loc.end,"index"),t}class x{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}const C={brace:new x("{"),j_oTag:new x("<tag"),j_cTag:new x("</tag"),j_expr:new x("<tag>...</tag>",!0)};C.template=new x("`",!0);const b=!0,w=!0,P=!0,T=!0,k=!0;class E{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}const S=new Map;function L(t,e={}){e.keyword=t;const n=R(t,e);return S.set(t,n),n}function I(t,e){return R(t,{beforeExpr:b,binop:e})}let N=-1;const B=[],M=[],O=[],D=[],F=[],z=[];function R(t,e={}){var n,i,s,r;return++N,M.push(t),O.push(null!=(n=e.binop)?n:-1),D.push(null!=(i=e.beforeExpr)&&i),F.push(null!=(s=e.startsExpr)&&s),z.push(null!=(r=e.prefix)&&r),B.push(new E(t,e)),N}function j(t,e={}){var n,i,s,r;return++N,S.set(t,N),M.push(t),O.push(null!=(n=e.binop)?n:-1),D.push(null!=(i=e.beforeExpr)&&i),F.push(null!=(s=e.startsExpr)&&s),z.push(null!=(r=e.prefix)&&r),B.push(new E("name",e)),N}const U={bracketL:R("[",{beforeExpr:b,startsExpr:w}),bracketHashL:R("#[",{beforeExpr:b,startsExpr:w}),bracketBarL:R("[|",{beforeExpr:b,startsExpr:w}),bracketR:R("]"),bracketBarR:R("|]"),braceL:R("{",{beforeExpr:b,startsExpr:w}),braceBarL:R("{|",{beforeExpr:b,startsExpr:w}),braceHashL:R("#{",{beforeExpr:b,startsExpr:w}),braceR:R("}"),braceBarR:R("|}"),parenL:R("(",{beforeExpr:b,startsExpr:w}),parenR:R(")"),comma:R(",",{beforeExpr:b}),semi:R(";",{beforeExpr:b}),colon:R(":",{beforeExpr:b}),doubleColon:R("::",{beforeExpr:b}),dot:R("."),question:R("?",{beforeExpr:b}),questionDot:R("?."),arrow:R("=>",{beforeExpr:b}),template:R("template"),ellipsis:R("...",{beforeExpr:b}),backQuote:R("`",{startsExpr:w}),dollarBraceL:R("${",{beforeExpr:b,startsExpr:w}),templateTail:R("...`",{startsExpr:w}),templateNonTail:R("...${",{beforeExpr:b,startsExpr:w}),at:R("@"),hash:R("#",{startsExpr:w}),interpreterDirective:R("#!..."),eq:R("=",{beforeExpr:b,isAssign:T}),assign:R("_=",{beforeExpr:b,isAssign:T}),slashAssign:R("_=",{beforeExpr:b,isAssign:T}),xorAssign:R("_=",{beforeExpr:b,isAssign:T}),moduloAssign:R("_=",{beforeExpr:b,isAssign:T}),incDec:R("++/--",{prefix:k,postfix:!0,startsExpr:w}),bang:R("!",{beforeExpr:b,prefix:k,startsExpr:w}),tilde:R("~",{beforeExpr:b,prefix:k,startsExpr:w}),doubleCaret:R("^^",{startsExpr:w}),doubleAt:R("@@",{startsExpr:w}),pipeline:I("|>",0),nullishCoalescing:I("??",1),logicalOR:I("||",1),logicalAND:I("&&",2),bitwiseOR:I("|",3),bitwiseXOR:I("^",4),bitwiseAND:I("&",5),equality:I("==/!=/===/!==",6),lt:I("</>/<=/>=",7),gt:I("</>/<=/>=",7),relational:I("</>/<=/>=",7),bitShift:I("<</>>/>>>",8),bitShiftL:I("<</>>/>>>",8),bitShiftR:I("<</>>/>>>",8),plusMin:R("+/-",{beforeExpr:b,binop:9,prefix:k,startsExpr:w}),modulo:R("%",{binop:10,startsExpr:w}),star:R("*",{binop:10}),slash:I("/",10),exponent:R("**",{beforeExpr:b,binop:11,rightAssociative:!0}),_in:L("in",{beforeExpr:b,binop:7}),_instanceof:L("instanceof",{beforeExpr:b,binop:7}),_break:L("break"),_case:L("case",{beforeExpr:b}),_catch:L("catch"),_continue:L("continue"),_debugger:L("debugger"),_default:L("default",{beforeExpr:b}),_else:L("else",{beforeExpr:b}),_finally:L("finally"),_function:L("function",{startsExpr:w}),_if:L("if"),_return:L("return",{beforeExpr:b}),_switch:L("switch"),_throw:L("throw",{beforeExpr:b,prefix:k,startsExpr:w}),_try:L("try"),_var:L("var"),_const:L("const"),_with:L("with"),_new:L("new",{beforeExpr:b,startsExpr:w}),_this:L("this",{startsExpr:w}),_super:L("super",{startsExpr:w}),_class:L("class",{startsExpr:w}),_extends:L("extends",{beforeExpr:b}),_export:L("export"),_import:L("import",{startsExpr:w}),_null:L("null",{startsExpr:w}),_true:L("true",{startsExpr:w}),_false:L("false",{startsExpr:w}),_typeof:L("typeof",{beforeExpr:b,prefix:k,startsExpr:w}),_void:L("void",{beforeExpr:b,prefix:k,startsExpr:w}),_delete:L("delete",{beforeExpr:b,prefix:k,startsExpr:w}),_do:L("do",{isLoop:P,beforeExpr:b}),_for:L("for",{isLoop:P}),_while:L("while",{isLoop:P}),_as:j("as",{startsExpr:w}),_assert:j("assert",{startsExpr:w}),_async:j("async",{startsExpr:w}),_await:j("await",{startsExpr:w}),_defer:j("defer",{startsExpr:w}),_from:j("from",{startsExpr:w}),_get:j("get",{startsExpr:w}),_let:j("let",{startsExpr:w}),_meta:j("meta",{startsExpr:w}),_of:j("of",{startsExpr:w}),_sent:j("sent",{startsExpr:w}),_set:j("set",{startsExpr:w}),_source:j("source",{startsExpr:w}),_static:j("static",{startsExpr:w}),_using:j("using",{startsExpr:w}),_yield:j("yield",{startsExpr:w}),_asserts:j("asserts",{startsExpr:w}),_checks:j("checks",{startsExpr:w}),_exports:j("exports",{startsExpr:w}),_global:j("global",{startsExpr:w}),_implements:j("implements",{startsExpr:w}),_intrinsic:j("intrinsic",{startsExpr:w}),_infer:j("infer",{startsExpr:w}),_is:j("is",{startsExpr:w}),_mixins:j("mixins",{startsExpr:w}),_proto:j("proto",{startsExpr:w}),_require:j("require",{startsExpr:w}),_satisfies:j("satisfies",{startsExpr:w}),_keyof:j("keyof",{startsExpr:w}),_readonly:j("readonly",{startsExpr:w}),_unique:j("unique",{startsExpr:w}),_abstract:j("abstract",{startsExpr:w}),_declare:j("declare",{startsExpr:w}),_enum:j("enum",{startsExpr:w}),_module:j("module",{startsExpr:w}),_namespace:j("namespace",{startsExpr:w}),_interface:j("interface",{startsExpr:w}),_type:j("type",{startsExpr:w}),_opaque:j("opaque",{startsExpr:w}),name:R("name",{startsExpr:w}),string:R("string",{startsExpr:w}),num:R("num",{startsExpr:w}),bigint:R("bigint",{startsExpr:w}),decimal:R("decimal",{startsExpr:w}),regexp:R("regexp",{startsExpr:w}),privateName:R("#name",{startsExpr:w}),eof:R("eof"),jsxName:R("jsxName"),jsxText:R("jsxText",{beforeExpr:!0}),jsxTagStart:R("jsxTagStart",{startsExpr:!0}),jsxTagEnd:R("jsxTagEnd"),placeholder:R("%%",{startsExpr:!0})};function Z(t){return t>=93&&t<=132}function H(t){return t>=58&&t<=132}function V(t){return t>=58&&t<=136}function q(t){return F[t]}function G(t){return t>=129&&t<=131}function W(t){return t>=58&&t<=92}function $(t){return M[t]}function K(t){return O[t]}function J(t){return t>=24&&t<=25}function Y(t){return B[t]}B[8].updateContext=t=>{t.pop()},B[5].updateContext=B[7].updateContext=B[23].updateContext=t=>{t.push(C.brace)},B[22].updateContext=t=>{t[t.length-1]===C.template?t.pop():t.push(C.template)},B[142].updateContext=t=>{t.push(C.j_expr,C.j_oTag)};let X="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Q="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const tt=new RegExp("["+X+"]"),et=new RegExp("["+X+Q+"]");X=Q=null;const nt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],it=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function st(t,e){let n=65536;for(let i=0,s=e.length;i<s;i+=2){if(n+=e[i],n>t)return!1;if(n+=e[i+1],n>=t)return!0}return!1}function rt(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&tt.test(String.fromCharCode(t)):st(t,nt)))}function ot(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&et.test(String.fromCharCode(t)):st(t,nt)||st(t,it))))}const at=["implements","interface","let","package","private","protected","public","static","yield"],lt=["eval","arguments"],ct=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ht=new Set(at),pt=new Set(lt);function ut(t,e){return e&&"await"===t||"enum"===t}function dt(t,e){return ut(t,e)||ht.has(t)}function ft(t){return pt.has(t)}function mt(t,e){return dt(t,e)||ft(t)}const gt=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class yt{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class At{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(64&t)>0&&!(2&t)}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(128&e)return!0;if(451&e)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new yt(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(130&t.flags||!this.parser.inModule&&1&t.flags)}declareName(t,e,n){let i=this.currentScope();if(8&e||16&e){this.checkRedeclarationInScope(i,t,e,n);let s=i.names.get(t)||0;16&e?s|=4:(i.firstLexicalName||(i.firstLexicalName=t),s|=2),i.names.set(t,s),8&e&&this.maybeExportDefined(i,t)}else if(4&e)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,e,n),i.names.set(t,1|(i.names.get(t)||0)),this.maybeExportDefined(i,t),!(387&i.flags));--s);this.parser.inModule&&1&i.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,n,i){this.isRedeclaredInScope(t,e,n)&&this.parser.raise(y.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,n){if(!(1&n))return!1;if(8&n)return t.names.has(e);const i=t.names.get(e);return 16&n?(2&i)>0||!this.treatFunctionsAsVarInScope(t)&&(1&i)>0:(2&i)>0&&!(8&t.flags&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(4&i)>0}checkLocalExport(t){const{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(387&e)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(451&e&&!(4&e))return e}}}class _t extends yt{constructor(...t){super(...t),this.declareFunctions=new Set}}class vt extends At{createScope(t){return new _t(t)}declareName(t,e,n){const i=this.currentScope();if(2048&e)return this.checkRedeclarationInScope(i,t,e,n),this.maybeExportDefined(i,t),void i.declareFunctions.add(t);super.declareName(t,e,n)}isRedeclaredInScope(t,e,n){if(super.isRedeclaredInScope(t,e,n))return!0;if(2048&n&&!t.declareFunctions.has(e)){const n=t.names.get(e);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class xt{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if("string"==typeof t)return this.plugins.has(t);{const[e,n]=t;if(!this.hasPlugin(e))return!1;const i=this.plugins.get(e);for(const t of Object.keys(n))if((null==i?void 0:i[t])!==n[t])return!1;return!0}}getPluginOption(t,e){var n;return null==(n=this.plugins.get(t))?void 0:n[e]}}function Ct(t,e){void 0===t.trailingComments?t.trailingComments=e:t.trailingComments.unshift(...e)}function bt(t,e){void 0===t.innerComments?t.innerComments=e:t.innerComments.unshift(...e)}function wt(t,e,n){let i=null,s=e.length;for(;null===i&&s>0;)i=e[--s];null===i||i.start>n.start?bt(t,n.comments):Ct(i,n.comments)}class Pt extends xt{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:e}=this.state,n=e.length;if(0===n)return;let i=n-1;const s=e[i];s.start===t.end&&(s.leadingNode=t,i--);const{start:r}=t;for(;i>=0;i--){const n=e[i],s=n.end;if(!(s>r)){s===r&&(n.trailingNode=t);break}n.containingNode=t,this.finalizeComment(n),e.splice(i,1)}}finalizeComment(t){const{comments:e}=t;if(null!==t.leadingNode||null!==t.trailingNode)null!==t.leadingNode&&Ct(t.leadingNode,e),null!==t.trailingNode&&function(t,e){void 0===t.leadingComments?t.leadingComments=e:t.leadingComments.unshift(...e)}(t.trailingNode,e);else{const{containingNode:n,start:i}=t;if(44===this.input.charCodeAt(i-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":wt(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":wt(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":wt(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":wt(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":wt(n,n.specifiers,t);break;default:bt(n,e)}else bt(n,e)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:e}=this.state,{length:n}=e;if(0===n)return;const i=e[n-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){const{commentStack:e}=this.state,{length:n}=e;0!==n&&(e[n-1].trailingNode===t?e[n-1].trailingNode=null:n>=2&&e[n-2].trailingNode===t&&(e[n-2].trailingNode=null))}takeSurroundingComments(t,e,n){const{commentStack:i}=this.state,s=i.length;if(0===s)return;let r=s-1;for(;r>=0;r--){const s=i[r],o=s.end;if(s.start===n)s.leadingNode=t;else if(o===e)s.trailingNode=t;else if(o<e)break}}}const Tt=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function kt(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Et(t,e,n){for(let i=e;i<n;i++)if(kt(t.charCodeAt(i)))return!0;return!1}const St=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Lt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function It(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Nt{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[C.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startLine:n,startColumn:s}){this.strict=!1!==t&&(!0===t||"module"===e),this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new i(n,s,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const t=new Nt;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var Bt=function(t){return t>=48&&t<=57};const Mt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ot={bin:t=>48===t||49===t,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Dt(t,e,n,i,s,r){const o=n,a=i,l=s;let c="",h=null,p=n;const{length:u}=e;for(;;){if(n>=u){r.unterminated(o,a,l),c+=e.slice(p,n);break}const d=e.charCodeAt(n);if(Ft(t,d,e,n)){c+=e.slice(p,n);break}if(92===d){c+=e.slice(p,n);const o=zt(e,n,i,s,"template"===t,r);null!==o.ch||h?c+=o.ch:h={pos:n,lineStart:i,curLine:s},({pos:n,lineStart:i,curLine:s}=o),p=n}else 8232===d||8233===d?(++s,i=++n):10===d||13===d?"template"===t?(c+=e.slice(p,n)+"\n",++n,13===d&&10===e.charCodeAt(n)&&++n,++s,p=i=n):r.unterminated(o,a,l):++n}return{pos:n,str:c,firstInvalidLoc:h,lineStart:i,curLine:s,containsInvalid:!!h}}function Ft(t,e,n,i){return"template"===t?96===e||36===e&&123===n.charCodeAt(i+1):e===("double"===t?34:39)}function zt(t,e,n,i,s,r){const o=!s;e++;const a=t=>({pos:e,ch:t,lineStart:n,curLine:i}),l=t.charCodeAt(e++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let s;return({code:s,pos:e}=Rt(t,e,n,i,2,!1,o,r)),a(null===s?null:String.fromCharCode(s))}case 117:{let s;return({code:s,pos:e}=Ut(t,e,n,i,o,r)),a(null===s?null:String.fromCodePoint(s))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===t.charCodeAt(e)&&++e;case 10:n=e,++i;case 8232:case 8233:return a("");case 56:case 57:if(s)return a(null);r.strictNumericEscape(e-1,n,i);default:if(l>=48&&l<=55){const o=e-1;let l=/^[0-7]+/.exec(t.slice(o,e+2))[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),e+=l.length-1;const h=t.charCodeAt(e);if("0"!==l||56===h||57===h){if(s)return a(null);r.strictNumericEscape(o,n,i)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Rt(t,e,n,i,s,r,o,a){const l=e;let c;return({n:c,pos:e}=jt(t,e,n,i,16,s,r,!1,a,!o)),null===c&&(o?a.invalidEscapeSequence(l,n,i):e=l-1),{code:c,pos:e}}function jt(t,e,n,i,s,r,o,a,l,c){const h=e,p=16===s?Mt.hex:Mt.decBinOct,u=16===s?Ot.hex:10===s?Ot.dec:8===s?Ot.oct:Ot.bin;let d=!1,f=0;for(let h=0,m=null==r?1/0:r;h<m;++h){const r=t.charCodeAt(e);let h;if(95!==r||"bail"===a){if(h=r>=97?r-97+10:r>=65?r-65+10:Bt(r)?r-48:1/0,h>=s){if(h<=9&&c)return{n:null,pos:e};if(h<=9&&l.invalidDigit(e,n,i,s))h=0;else{if(!o)break;h=0,d=!0}}++e,f=f*s+h}else{const s=t.charCodeAt(e-1),r=t.charCodeAt(e+1);if(a){if(Number.isNaN(r)||!u(r)||p.has(s)||p.has(r)){if(c)return{n:null,pos:e};l.unexpectedNumericSeparator(e,n,i)}}else{if(c)return{n:null,pos:e};l.numericSeparatorInEscapeSequence(e,n,i)}++e}}return e===h||null!=r&&e-h!==r||d?{n:null,pos:e}:{n:f,pos:e}}function Ut(t,e,n,i,s,r){let o;if(123===t.charCodeAt(e)){if(++e,({code:o,pos:e}=Rt(t,e,n,i,t.indexOf("}",e)-e,!0,s,r)),++e,null!==o&&o>1114111){if(!s)return{code:null,pos:e};r.invalidCodePoint(e,n,i)}}else({code:o,pos:e}=Rt(t,e,n,i,4,!1,s,r));return{code:o,pos:e}}function Zt(t,e,n){return new i(n,t-e,t)}const Ht=new Set([103,109,115,105,121,117,100,118]);class Vt{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new s(t.startLoc,t.endLoc)}}class qt extends Pt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(t,e,n,i)=>!!this.options.errorRecovery&&(this.raise(y.InvalidDigit,Zt(t,e,n),{radix:i}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(y.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(y.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(y.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(y.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,e,n)=>{this.recordStrictModeErrors(y.StrictNumericEscape,Zt(t,e,n))},unterminated:(t,e,n)=>{throw this.raise(y.UnterminatedString,Zt(t-1,e,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(y.StrictNumericEscape),unterminated:(t,e,n)=>{throw this.raise(y.UnterminatedTemplate,Zt(t,e,n))}}),this.state=new Nt,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Vt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return St.lastIndex=t,St.test(this.input)?St.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Lt.lastIndex=t,Lt.test(this.input)?Lt.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if(55296==(64512&e)&&++t<this.input.length){const n=this.input.charCodeAt(t);56320==(64512&n)&&(e=65536+((1023&e)<<10)+(1023&n))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach((([t,e])=>this.raise(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());const n=this.state.pos,i=this.input.indexOf(t,n+2);if(-1===i)throw this.raise(y.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,Tt.lastIndex=n+2;Tt.test(this.input)&&Tt.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Tt.lastIndex;if(this.isLookahead)return;const r={type:"CommentBlock",value:this.input.slice(n+2,i),start:n,end:i+t.length,loc:new s(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}skipLineComment(t){const e=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!kt(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const r=this.state.pos,o={type:"CommentLine",value:this.input.slice(e+t,r),start:e,end:r,loc:new s(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){const t=this.state.pos,e=[];t:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}case 47:{const t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}default:break t}break;default:if(It(n))++this.state.pos;else if(45===n&&!this.inModule&&this.options.annexB){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===t||this.state.lineStart>t))break t;{const t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}else{if(60!==n||this.inModule||!this.options.annexB)break t;{const t=this.state.pos;if(33!==this.input.charCodeAt(t+1)||45!==this.input.charCodeAt(t+2)||45!==this.input.charCodeAt(t+3))break t;{const t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}}}}if(e.length>0){const n={start:t,end:this.state.pos,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(n)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(y.UnexpectedDigitAfterHash,this.state.curPosition());if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===e?y.RecordExpressionHashIncorrectStartSyntaxType:y.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else rt(e)?(++this.state.pos,this.finishToken(138,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;const e=this.state.pos;for(this.state.pos+=1;!kt(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const n=this.input.slice(e+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(t){let e=42===t?55:54,n=1,i=this.input.charCodeAt(this.state.pos+1);42===t&&42===i&&(n++,i=this.input.charCodeAt(this.state.pos+2),e=57),61!==i||this.state.inType||(n++,e=37===t?33:30),this.finishOp(e,n)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==e?this.finishOp(124===t?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===t?41:42,2)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t||this.state.inType)if(94===t&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);e!==t?61===e?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(60===e)return 61===this.input.charCodeAt(t+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==e?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(62===e){const e=62===this.input.charCodeAt(t+2)?3:2;return 61===this.input.charCodeAt(t+e)?void this.finishOp(30,e+1):void this.finishOp(52,e)}61!==e?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===t?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(30,3):this.finishOp(40,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(rt(t))return void this.readWord(t)}throw this.raise(y.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){const n=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,n)}readRegexp(){const t=this.state.startLoc,e=this.state.start+1;let n,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(y.UnterminatedRegExp,r(t,1));const e=this.input.charCodeAt(s);if(kt(e))throw this.raise(y.UnterminatedRegExp,r(t,1));if(n)n=!1;else{if(91===e)i=!0;else if(93===e&&i)i=!1;else if(47===e&&!i)break;n=92===e}}const o=this.input.slice(e,s);++s;let a="";const l=()=>r(t,s+2-e);for(;s<this.length;){const t=this.codePointAtPos(s),e=String.fromCharCode(t);if(Ht.has(t))118===t?a.includes("u")&&this.raise(y.IncompatibleRegExpUVFlags,l()):117===t&&a.includes("v")&&this.raise(y.IncompatibleRegExpUVFlags,l()),a.includes(e)&&this.raise(y.DuplicateRegExpFlags,l());else{if(!ot(t)&&92!==t)break;this.raise(y.MalformedRegExpFlags,l())}++s,a+=e}this.state.pos=s,this.finishToken(137,{pattern:o,flags:a})}readInt(t,e,n=!1,i=!0){const{n:s,pos:r}=jt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,n,i,this.errorHandlers_readInt,!1);return this.state.pos=r,s}readRadixNumber(t){const e=this.state.curPosition();let n=!1;this.state.pos+=2;const i=this.readInt(t);null==i&&this.raise(y.InvalidDigit,r(e,2),{radix:t});const s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,n=!0;else if(109===s)throw this.raise(y.InvalidDecimal,e);if(rt(this.codePointAtPos(this.state.pos)))throw this.raise(y.NumberIdentifier,this.state.curPosition());if(n){const t=this.input.slice(e.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,t)}else this.finishToken(134,i)}readNumber(t){const e=this.state.pos,n=this.state.curPosition();let i=!1,s=!1,o=!1,a=!1,l=!1;t||null!==this.readInt(10)||this.raise(y.InvalidNumber,this.state.curPosition());const c=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(c){const t=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(y.StrictOctalLiteral,n),!this.state.strict){const e=t.indexOf("_");e>0&&this.raise(y.ZeroDigitNumericSeparator,r(n,e))}l=c&&!/[89]/.test(t)}let h=this.input.charCodeAt(this.state.pos);if(46!==h||l||(++this.state.pos,this.readInt(10),i=!0,h=this.input.charCodeAt(this.state.pos)),69!==h&&101!==h||l||(h=this.input.charCodeAt(++this.state.pos),43!==h&&45!==h||++this.state.pos,null===this.readInt(10)&&this.raise(y.InvalidOrMissingExponent,n),i=!0,a=!0,h=this.input.charCodeAt(this.state.pos)),110===h&&((i||c)&&this.raise(y.InvalidBigIntLiteral,n),++this.state.pos,s=!0),109===h&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(y.InvalidDecimal,n),++this.state.pos,o=!0),rt(this.codePointAtPos(this.state.pos)))throw this.raise(y.NumberIdentifier,this.state.curPosition());const p=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(135,p);if(o)return void this.finishToken(136,p);const u=l?parseInt(p,8):parseFloat(p);this.finishToken(134,u)}readCodePoint(t){const{code:e,pos:n}=Ut(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,e}readString(t){const{str:e,pos:n,curLine:i,lineStart:s}=Dt(34===t?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,this.finishToken(133,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:e,firstInvalidLoc:n,pos:s,curLine:r,lineStart:o}=Dt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=o,this.state.curLine=r,n&&(this.state.firstInvalidTemplateEscapePos=new i(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(s)?this.finishToken(24,n?null:t+e+"`"):(this.state.pos++,this.finishToken(25,n?null:t+e+"${"))}recordStrictModeErrors(t,e){const n=e.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,e):this.state.strictErrors.set(n,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="";const n=this.state.pos;let i=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const t=this.codePointAtPos(this.state.pos);if(ot(t))this.state.pos+=t<=65535?1:2;else{if(92!==t)break;{this.state.containsEsc=!0,e+=this.input.slice(i,this.state.pos);const t=this.state.curPosition(),s=this.state.pos===n?rt:ot;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(y.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;const r=this.readCodePoint(!0);null!==r&&(s(r)||this.raise(y.EscapedCharNotAnIdentifier,t),e+=String.fromCodePoint(r)),i=this.state.pos}}}return e+this.input.slice(i,this.state.pos)}readWord(t){const e=this.readWord1(t),n=S.get(e);void 0!==n?this.finishToken(n,$(n)):this.finishToken(132,e)}checkKeywordEscapes(){const{type:t}=this.state;W(t)&&this.state.containsEsc&&this.raise(y.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:$(t)})}raise(t,e,n={}){const s=t(e instanceof i?e:e.loc.start,n);if(!this.options.errorRecovery)throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(t,e,n={}){const s=e instanceof i?e:e.loc.start,r=s.index,o=this.state.errors;for(let e=o.length-1;e>=0;e--){const i=o[e];if(i.loc.index===r)return o[e]=t(s,n);if(i.loc.index<r)break}return this.raise(t,e,n)}updateContext(t){}unexpected(t,e){throw this.raise(y.UnexpectedToken,null!=t?t:this.state.startLoc,{expected:e?$(e):null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(y.MissingPlugin,null!=e?e:this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some((t=>this.hasPlugin(t))))throw this.raise(y.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,n,i)=>{this.raise(t,Zt(e,n,i))}}}class Gt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Wt{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Gt)}exit(){const t=this.stack.pop(),e=this.current();for(const[n,i]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(n)||e.undefinedPrivateNames.set(n,i):this.parser.raise(y.InvalidPrivateFieldResolution,i,{identifierName:n})}declarePrivateName(t,e,n){const{privateNames:i,loneAccessors:s,undefinedPrivateNames:r}=this.current();let o=i.has(t);if(3&e){const n=o&&s.get(t);if(n){o=(3&n)===(3&e)||(4&n)!==(4&e),o||s.delete(t)}else o||s.set(t,e)}o&&this.parser.raise(y.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),r.delete(t)}usePrivateName(t,e){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,e):this.parser.raise(y.InvalidPrivateFieldResolution,e,{identifierName:t})}}class $t{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Kt extends $t{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){const n=e.index;this.declarationErrors.set(n,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class Jt{constructor(t){this.parser=void 0,this.stack=[new $t],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const n=e.loc.start,{stack:i}=this;let s=i.length-1,r=i[s];for(;!r.isCertainlyParameterDeclaration();){if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(t,n),r=i[--s]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,e){const{stack:n}=this,i=n[n.length-1],s=e.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(t,s)}}recordAsyncArrowParametersError(t){const{stack:e}=this;let n=e.length-1,i=e[n];for(;i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(y.AwaitBindingIdentifier,t),i=e[--n]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors((([e,n])=>{this.parser.raise(e,n);let i=t.length-2,s=t[i];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(n.index),s=t[--i]}))}}function Yt(){return new $t}class Xt{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Qt(t,e){return(t?2:0)|(e?1:0)}class te extends qt{addExtra(t,e,n,i=!0){if(!t)return;let{extra:s}=t;null==s&&(s={},t.extra=s),i?s[e]=n:Object.defineProperty(s,e,{enumerable:i,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){const n=t+e.length;if(this.input.slice(t,n)===e){const t=this.input.charCodeAt(n);return!(ot(t)||55296==(64512&t))}return!1}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}expectContextual(t,e){if(!this.eatContextual(t)){if(null!=e)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Et(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return Et(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(y.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){const n={node:null};try{const i=t(((t=null)=>{throw n.node=t,n}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,this.state.tokensLength=t.tokensLength,{node:i,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const i=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:i};if(t===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:i};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:r}=t;if(!e)return!!(n||i||r||s);null!=n&&this.raise(y.InvalidCoverInitializedName,n),null!=i&&this.raise(y.DuplicateProto,i),null!=s&&this.raise(y.UnexpectedPrivateField,s),null!=r&&this.unexpected(r)}isLiteralPropertyName(){return V(this.state.type)}isPrivateName(t){return"PrivateName"===t.type}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}isObjectProperty(t){return"ObjectProperty"===t.type}isObjectMethod(t){return"ObjectMethod"===t.type}initializeScopes(t="module"===this.options.sourceType){const e=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const i=this.inModule;this.inModule=t;const s=this.scope,r=this.getScopeHandler();this.scope=new r(this,t);const o=this.prodParam;this.prodParam=new Xt;const a=this.classScope;this.classScope=new Wt(this);const l=this.expressionScope;return this.expressionScope=new Jt(this),()=>{this.state.labels=e,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:e}=t;null!==e&&this.expectPlugin("destructuringPrivate",e)}}class ee{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class ne{constructor(t,e,n){this.type="",this.start=e,this.end=0,this.loc=new s(n),null!=t&&t.options.ranges&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}}const ie=ne.prototype;function se(t){const{type:e,start:n,end:i,loc:s,range:r,extra:o,name:a}=t,l=Object.create(ie);return l.type=e,l.start=n,l.end=i,l.loc=s,l.range=r,l.extra=o,l.name=a,"Placeholder"===e&&(l.expectedNode=t.expectedNode),l}function re(t){const{type:e,start:n,end:i,loc:s,range:r,extra:o}=t;if("Placeholder"===e)return function(t){return se(t)}(t);const a=Object.create(ie);return a.type=e,a.start=n,a.end=i,a.loc=s,a.range=r,void 0!==t.raw?a.raw=t.raw:a.extra=o,a.value=t.value,a}ie.__clone=function(){const t=new ne(void 0,this.start,this.loc.start),e=Object.keys(this);for(let n=0,i=e.length;n<i;n++){const i=e[n];"leadingComments"!==i&&"trailingComments"!==i&&"innerComments"!==i&&(t[i]=this[i])}return t};class oe extends te{startNode(){const t=this.state.startLoc;return new ne(this,t.index,t)}startNodeAt(t){return new ne(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,n){return t.type=e,t.end=n.index,t.loc.end=n,this.options.ranges&&(t.range[1]=n.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,this.options.ranges&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,this.options.ranges&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}}const ae=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),le=g`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:n})=>`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${e}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${n}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ce(t){return"type"===t.importKind||"typeof"===t.importKind}const he={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const pe=/\*?\s*@((?:no)?flow)\b/;const ue={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},de=g`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function fe(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function me(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return me(t.object)+"."+me(t.property);throw new Error("Node had unexpected type: "+t.type)}class ge extends yt{constructor(...t){super(...t),this.tsNames=new Map}}class ye extends At{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new ge(t)}enter(t){256===t&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return 256===t&&this.importsStack.pop(),t}hasImport(t,e){const n=this.importsStack.length;if(this.importsStack[n-1].has(t))return!0;if(!e&&n>1)for(let e=0;e<n-1;e++)if(this.importsStack[e].has(t))return!0;return!1}declareName(t,e,n){if(4096&e)return this.hasImport(t,!0)&&this.parser.raise(y.VarRedeclaration,n,{identifierName:t}),void this.importsStack[this.importsStack.length-1].add(t);const i=this.currentScope();let s=i.tsNames.get(t)||0;if(1024&e)return this.maybeExportDefined(i,t),void i.tsNames.set(t,16|s);super.declareName(t,e,n),2&e&&(1&e||(this.checkRedeclarationInScope(i,t,e,n),this.maybeExportDefined(i,t)),s|=1),256&e&&(s|=2),512&e&&(s|=4),128&e&&(s|=8),s&&i.tsNames.set(t,s)}isRedeclaredInScope(t,e,n){const i=t.tsNames.get(e);if((2&i)>0){if(256&n){return!!(512&n)!==(4&i)>0}return!0}return 128&n&&(8&i)>0?!!(2&t.names.get(e))&&!!(1&n):!!(2&n&&(1&i)>0)||super.isRedeclaredInScope(t,e,n)}checkLocalExport(t){const{name:e}=t;if(this.hasImport(e))return;for(let t=this.scopeStack.length-1;t>=0;t--){const n=this.scopeStack[t].tsNames.get(e);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(t)}}const Ae=t=>"ParenthesizedExpression"===t.type?Ae(t.expression):t;class _e extends oe{toAssignable(t,e=!1){var n,i;let s;switch(("ParenthesizedExpression"===t.type||null!=(n=t.extra)&&n.parenthesized)&&(s=Ae(t),e?"Identifier"===s.type?this.expressionScope.recordArrowParameterBindingError(y.InvalidParenthesizedAssignment,t):"MemberExpression"===s.type||this.isOptionalMemberExpression(s)||this.raise(y.InvalidParenthesizedAssignment,t):this.raise(y.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let n=0,i=t.properties.length,s=i-1;n<i;n++){var r;const i=t.properties[n],o=n===s;this.toAssignableObjectExpressionProp(i,o,e),o&&"RestElement"===i.type&&null!=(r=t.extra)&&r.trailingCommaLoc&&this.raise(y.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:i}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(i,e);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,null==(i=t.extra)?void 0:i.trailingCommaLoc,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(y.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(s,e)}}toAssignableObjectExpressionProp(t,e,n){if("ObjectMethod"===t.type)this.raise("get"===t.kind||"set"===t.kind?y.PatternHasAccessor:y.PatternHasMethod,t.key);else if("SpreadElement"===t.type){t.type="RestElement";const i=t.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,n),e||this.raise(y.RestTrailingComma,t)}else this.toAssignable(t,n)}toAssignableList(t,e,n){const i=t.length-1;for(let s=0;s<=i;s++){const r=t[s];if(r){if("SpreadElement"===r.type){r.type="RestElement";const t=r.argument;this.checkToRestConversion(t,!0),this.toAssignable(t,n)}else this.toAssignable(r,n);"RestElement"===r.type&&(s<i?this.raise(y.RestTrailingComma,r):e&&this.raise(y.RestTrailingComma,e))}}}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const e=t.properties.length-1;return t.properties.every(((t,n)=>"ObjectMethod"!==t.type&&(n===e||"SpreadElement"!==t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>null===t||this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(const e of t)"ArrayExpression"===(null==e?void 0:e.type)&&this.toReferencedListDeep(e.elements)}parseSpread(t){const e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,n){const i=1&n,s=[];let r=!0;for(;!this.eat(t);)if(r?r=!1:this.expect(12),i&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){if(s.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{const t=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(y.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());s.push(this.parseAssignableListItem(n,t))}}return s}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:e}=this.state;if(21===t)return this.parseBindingRestProperty(this.startNode());const n=this.startNode();return 138===t?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,t);const i=this.parseMaybeDefault(n.loc.start,n);return e.length&&(n.decorators=e),i}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var n;if(null!=t||(t=this.state.startLoc),e=null!=(n=e)?n:this.parseBindingAtom(),!this.eat(29))return e;const i=this.startNodeAt(t);return i.left=e,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,e,n){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return"OptionalMemberExpression"===t.type}checkLVal(t,e,n=64,i=!1,s=!1,r=!1){var o;const a=t.type;if(this.isObjectMethod(t))return;const l=this.isOptionalMemberExpression(t);if(l||"MemberExpression"===a)return l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),"AssignmentExpression"!==e.type&&this.raise(y.InvalidLhsOptionalChaining,t,{ancestor:e})),void(64!==n&&this.raise(y.InvalidPropertyBindingPattern,t));if("Identifier"===a){this.checkIdentifier(t,n,s);const{name:e}=t;return void(i&&(i.has(e)?this.raise(y.ParamDupe,t):i.add(e)))}const c=this.isValidLVal(a,!(r||null!=(o=t.extra)&&o.parenthesized)&&"AssignmentExpression"===e.type,n);if(!0===c)return;if(!1===c){const i=64===n?y.InvalidLhs:y.InvalidLhsBinding;return void this.raise(i,t,{ancestor:e})}let h,p;"string"==typeof c?(h=c,p="ParenthesizedExpression"===a):[h,p]=c;const u="ArrayPattern"===a||"ObjectPattern"===a?{type:a}:e,d=t[h];if(Array.isArray(d))for(const t of d)t&&this.checkLVal(t,u,n,i,s,p);else d&&this.checkLVal(d,u,n,i,s,p)}checkIdentifier(t,e,n=!1){this.state.strict&&(n?mt(t.name,this.inModule):ft(t.name))&&(64===e?this.raise(y.StrictEvalArguments,t,{referenceName:t.name}):this.raise(y.StrictEvalArgumentsBinding,t,{bindingName:t.name})),8192&e&&"let"===t.name&&this.raise(y.LetInLexicalBinding,t),64&e||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(y.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===t?y.RestTrailingComma:y.ElementAfterRest,this.state.startLoc),!0)}}function ve(t){if(!t)throw new Error("Assert fail")}const xe=g`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function Ce(t){return"private"===t||"public"===t||"protected"===t}function be(t){return"in"===t||"out"===t}function we(t){if("MemberExpression"!==t.type)return!1;const{computed:e,property:n}=t;return(!e||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&ke(t.object)}function Pe(t,e){var n;const{type:i}=t;if(null!=(n=t.extra)&&n.parenthesized)return!1;if(e){if("Literal"===i){const{value:e}=t;if("string"==typeof e||"boolean"==typeof e)return!0}}else if("StringLiteral"===i||"BooleanLiteral"===i)return!0;return!(!Te(t,e)&&!function(t,e){if("UnaryExpression"===t.type){const{operator:n,argument:i}=t;if("-"===n&&Te(i,e))return!0}return!1}(t,e))||("TemplateLiteral"===i&&0===t.expressions.length||!!we(t))}function Te(t,e){return e?"Literal"===t.type&&("number"==typeof t.value||"bigint"in t):"NumericLiteral"===t.type||"BigIntLiteral"===t.type}function ke(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&ke(t.object)}const Ee=g`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});const Se=["minimal","fsharp","hack","smart"],Le=["^^","@@","^","%","#"];const Ie={estree:t=>class extends t{parse(){const t=v(super.parse());return this.options.tokens&&(t.tokens=t.tokens.map(v)),t}parseRegExpLiteral({pattern:t,flags:e}){let n=null;try{n=new RegExp(t,e)}catch(t){}const i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:e},i}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch(t){e=null}const n=this.estreeParseLiteral(e);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){const e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}directiveToStmt(t){const e=t.value;delete t.value,e.type="Literal",e.raw=e.extra.raw,e.value=e.extra.expressionValue;const n=t;return n.type="ExpressionStatement",n.expression=e,n.directive=e.extra.rawValue,delete e.extra,n}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null!=(e=t.expression.extra)&&e.parenthesized)}parseBlockBody(t,e,n,i,s){super.parseBlockBody(t,e,n,i,s);const r=t.directives.map((t=>this.directiveToStmt(t)));t.body=r.concat(t.body),delete t.directives}pushClassMethod(t,e,n,i,s,r){this.parseMethod(e,n,i,s,r,"ClassMethod",!0),e.typeParameters&&(e.value.typeParameters=e.typeParameters,delete e.typeParameters),t.body.push(e)}parsePrivateName(){const t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){const e=super.getPrivateNameSV(t);return delete t.id,t.name=e,t.type="PrivateIdentifier",t}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,e){const n=super.parseLiteral(t,e);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,e,n=!1){super.parseFunctionBody(t,e,n),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,n,i,s,r,o=!1){let a=this.startNode();return a.kind=t.kind,a=super.parseMethod(a,e,n,i,s,r,o),a.type="FunctionExpression",delete a.kind,t.value=a,"ClassPrivateMethod"===r&&(t.computed=!1),this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return"Literal"===t.type?"constructor"===t.value:super.nameIsConstructor(t)}parseClassProperty(...t){const e=super.parseClassProperty(...t);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(...t){const e=super.parseClassPrivateProperty(...t);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(t,e,n,i,s){const r=super.parseObjectMethod(t,e,n,i,s);return r&&(r.type="Property","method"===r.kind&&(r.kind="init"),r.shorthand=!1),r}parseObjectProperty(t,e,n,i){const s=super.parseObjectProperty(t,e,n,i);return s&&(s.kind="init",s.type="Property"),s}isValidLVal(t,e,n){return"Property"===t?"value":super.isValidLVal(t,e,n)}isAssignable(t,e){return null!=t&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t,e=!1){if(null!=t&&this.isObjectProperty(t)){const{key:n,value:i}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(i,e)}else super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,e,n){"Property"!==t.type||"get"!==t.kind&&"set"!==t.kind?"Property"===t.type&&t.method?this.raise(y.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,e,n):this.raise(y.PatternHasAccessor,t.key)}finishCallExpression(t,e){const n=super.finishCallExpression(t,e);if("Import"===n.callee.type){var i,s;if(n.type="ImportExpression",n.source=n.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))n.options=null!=(i=n.arguments[1])?i:null,n.attributes=null!=(s=n.arguments[1])?s:null;delete n.arguments,delete n.callee}return n}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t,e){const n=this.state.lastTokStartLoc,i=super.parseExport(t,e);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":1===i.specifiers.length&&"ExportNamespaceSpecifier"===i.specifiers[0].type&&(i.type="ExportAllDeclaration",i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{var s;const{declaration:t}=i;"ClassDeclaration"===(null==t?void 0:t.type)&&(null==(s=t.decorators)?void 0:s.length)>0&&t.start===i.start&&this.resetStartLocation(i,n)}}return i}parseSubscript(t,e,n,i){const s=super.parseSubscript(t,e,n,i);if(i.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),i.stop){const t=this.startNodeAtNode(s);return t.expression=s,this.finishNode(t,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s}isOptionalMemberExpression(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return"ChainExpression"===t.type&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return"Property"===t.type&&"init"===t.kind&&!t.method}isObjectMethod(t){return"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}finishNodeAt(t,e,n){return v(super.finishNodeAt(t,e,n))}resetStartLocation(t,e){super.resetStartLocation(t,e),v(t)}resetEndLocation(t,e=this.state.lastTokEndLoc){super.resetEndLocation(t,e),v(t)}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(de.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(n)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(141,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:kt(n)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){const e=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=t?"\n":"\r\n"):n=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let e="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(y.UnterminatedString,this.state.startLoc);const i=this.input.charCodeAt(this.state.pos);if(i===t)break;38===i?(e+=this.input.slice(n,this.state.pos),e+=this.jsxReadEntity(),n=this.state.pos):kt(i)?(e+=this.input.slice(n,this.state.pos),e+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}e+=this.input.slice(n,this.state.pos++),this.finishToken(133,e)}jsxReadEntity(){const t=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);const e=this.readInt(t,void 0,!1,"bail");if(null!==e&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(e)}else{let e=0,n=!1;for(;e++<10&&this.state.pos<this.length&&!(n=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const e=this.input.slice(t,this.state.pos),n=ue[e];if(++this.state.pos,n)return n}}return this.state.pos=t,"&"}jsxReadWord(){let t;const e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(ot(t)||45===t);this.finishToken(140,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){const t=this.startNode();return this.match(140)?t.name=this.state.value:W(this.state.type)?t.name=$(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){const t=this.state.startLoc,e=this.jsxParseIdentifier();if(!this.eat(14))return e;const n=this.startNodeAt(t);return n.namespace=e,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const t=this.state.startLoc;let e=this.jsxParseNamespacedName();if("JSXNamespacedName"===e.type)return e;for(;this.eat(16);){const n=this.startNodeAt(t);n.object=e,n.property=this.jsxParseIdentifier(),e=this.finishNode(n,"JSXMemberExpression")}return e}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(C.brace),this.next(),t=this.jsxParseExpressionContainer(t,C.j_oTag),"JSXEmptyExpression"===t.expression.type&&this.raise(de.AttributeIsEmpty,t),t;case 142:case 133:return this.parseExprAtom();default:throw this.raise(de.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(C.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,e){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{const e=this.parseExpression();t.expression=e}return this.setContext(e),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){const t=this.startNode();return this.match(5)?(this.setContext(C.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(C.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){const e=this.startNodeAt(t);return this.eat(143)?this.finishNode(e,"JSXOpeningFragment"):(e.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(e))}jsxParseOpeningElementAfterName(t){const e=[];for(;!this.match(56)&&!this.match(143);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(56),this.expect(143),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){const e=this.startNodeAt(t);return this.eat(143)?this.finishNode(e,"JSXClosingFragment"):(e.name=this.jsxParseElementName(),this.expect(143),this.finishNode(e,"JSXClosingElement"))}jsxParseElementAt(t){const e=this.startNodeAt(t),n=[],i=this.jsxParseOpeningElementAt(t);let s=null;if(!i.selfClosing){t:for(;;)switch(this.state.type){case 142:if(t=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(t);break t}n.push(this.jsxParseElementAt(t));break;case 141:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const t=this.startNode();this.setContext(C.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(t)):n.push(this.jsxParseExpressionContainer(t,C.j_expr));break}default:this.unexpected()}fe(i)&&!fe(s)&&null!==s?this.raise(de.MissingClosingTagFragment,s):!fe(i)&&fe(s)?this.raise(de.MissingClosingTagElement,s,{openingTagName:me(i.name)}):fe(i)||fe(s)||me(s.name)!==me(i.name)&&this.raise(de.MissingClosingTagElement,s,{openingTagName:me(i.name)})}if(fe(i)?(e.openingFragment=i,e.closingFragment=s):(e.openingElement=i,e.closingElement=s),e.children=n,this.match(47))throw this.raise(de.UnwrappedAdjacentJSXElements,this.state.startLoc);return fe(i)?this.finishNode(e,"JSXFragment"):this.finishNode(e,"JSXElement")}jsxParseElement(){const t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){const{context:e}=this.state;e[e.length-1]=t}parseExprAtom(t){return this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){const e=this.curContext();if(e!==C.j_expr){if(e===C.j_oTag||e===C.j_cTag){if(rt(t))return void this.jsxReadWord();if(62===t)return++this.state.pos,void this.finishToken(143);if((34===t||39===t)&&e===C.j_oTag)return void this.jsxReadString(t)}if(60===t&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(t)}else this.jsxReadToken()}updateContext(t){const{context:e,type:n}=this.state;if(56===n&&142===t)e.splice(-2,2,C.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)e.push(C.j_oTag);else if(143===n){const n=e[e.length-1];n===C.j_oTag&&56===t||n===C.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===C.j_expr):(this.setContext(C.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=D[n]}},flow:t=>class extends t{constructor(...t){super(...t),this.flowPragma=void 0}getScopeHandler(){return vt}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(t,e){133!==t&&13!==t&&28!==t&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){const e=pe.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else{if("noflow"!==e[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(t)}flowParseTypeInitialiser(t){const e=this.state.inType;this.state.inType=!0,this.expect(t||14);const n=this.flowParseType();return this.state.inType=e,n}flowParsePredicate(){const t=this.startNode(),e=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>e.index+1&&this.raise(le.UnexpectedSpaceBetweenModuloChecks,e),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(14);let e=null,n=null;return this.match(54)?(this.state.inType=t,n=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(54)&&(n=this.flowParsePredicate())),[e,n]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),n=this.startNode(),i=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const s=this.flowParseFunctionTypeParams();return n.params=s.params,n.rest=s.rest,n.this=s._this,this.expect(11),[n.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){return this.match(80)?this.flowParseDeclareClass(t):this.match(68)?this.flowParseDeclareFunction(t):this.match(74)?this.flowParseDeclareVariable(t):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(t):(e&&this.raise(le.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t)):this.isContextual(130)?this.flowParseDeclareTypeAlias(t):this.isContextual(131)?this.flowParseDeclareOpaqueType(t):this.isContextual(129)?this.flowParseDeclareInterface(t):this.match(82)?this.flowParseDeclareExportDeclaration(t,e):void this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(133)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),n=e.body=[];for(this.expect(5);!this.match(8);){let t=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(le.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(t)):(this.expectContextual(125,le.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),n.push(t)}this.scope.exit(),this.expect(8),this.finishNode(e,"BlockStatement");let i=null,s=!1;return n.forEach((t=>{!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(s&&this.raise(le.DuplicateDeclareModuleExports,t),"ES"===i&&this.raise(le.AmbiguousDeclareModuleKind,t),i="CommonJS",s=!0):("CommonJS"===i&&this.raise(le.AmbiguousDeclareModuleKind,t),i="ES")})),t.kind=i||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!e){const t=this.state.value;throw this.raise(le.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:t,suggestion:he[t]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(t=this.parseExport(t,null)).type&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t):void this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();const e=this.flowParseTypeAlias(t);return e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(t){this.next();const e=this.flowParseOpaqueType(t,!0);return e.type="DeclareOpaqueType",e}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,e){if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(12));if(e){if(t.implements=[],t.mixins=[],this.eatContextual(117))do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){const t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(le.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,e,n){ae.has(t)&&this.raise(n?le.AssignReservedType:le.UnexpectedReservedType,e,{reservedType:t})}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.startLoc,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){const e=this.state.startLoc,n=this.startNode(),i=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return n.name=s.name,n.variance=i,n.bound=s.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):t&&this.raise(le.MissingTypeParamDefault,e),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let n=!1;do{const t=this.flowParseTypeParameter(n);e.params.push(t),t.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expect(47);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){const t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,n){return t.static=e,14===this.lookahead().type?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=n,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const n=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(n),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:n,allowProto:i,allowInexact:s}){const r=this.state.inType;this.state.inType=!0;const o=this.startNode();let a,l;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let c=!1;for(e&&this.match(6)?(this.expect(6),a=9,l=!0):(this.expect(5),a=8,l=!1),o.exact=l;!this.match(a);){let e=!1,r=null,a=null;const h=this.startNode();if(i&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const p=this.flowParseVariance();if(this.eat(0))null!=r&&this.unexpected(r),this.eat(0)?(p&&this.unexpected(p.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,e))):o.indexers.push(this.flowParseObjectTypeIndexer(h,e,p));else if(this.match(10)||this.match(47))null!=r&&this.unexpected(r),p&&this.unexpected(p.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(h,e));else{let t="init";if(this.isContextual(99)||this.isContextual(104)){V(this.lookahead().type)&&(t=this.state.value,this.next())}const i=this.flowParseObjectTypeProperty(h,e,r,p,t,n,null!=s?s:!l);null===i?(c=!0,a=this.state.lastTokStartLoc):o.properties.push(i)}this.flowObjectTypeSemicolon(),!a||this.match(8)||this.match(9)||this.raise(le.UnexpectedExplicitInexactInObject,a)}this.expect(a),n&&(o.inexact=c);const h=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=r,h}flowParseObjectTypeProperty(t,e,n,i,s,r,o){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(r?o||this.raise(le.InexactInsideExact,this.state.lastTokStartLoc):this.raise(le.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(le.InexactVariance,i),null):(r||this.raise(le.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),i&&this.raise(le.SpreadVariance,i),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"))}{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=n,t.kind=s;let o=!1;return this.match(47)||this.match(10)?(t.method=!0,null!=n&&this.unexpected(n),i&&this.unexpected(i.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),"get"!==s&&"set"!==s||this.flowCheckGetterSetterParams(t),!r&&"constructor"===t.key.name&&t.value.this&&this.raise(le.ThisParamBannedInConstructor,t.value.this)):("init"!==s&&this.unexpected(),t.method=!1,this.eat(17)&&(o=!0),t.value=this.flowParseTypeInitialiser(),t.variance=i),t.optional=o,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,n=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise("get"===t.kind?le.GetterMayNotHaveThisParam:le.SetterMayNotHaveThisParam,t.value.this),n!==e&&this.raise("get"===t.kind?y.BadGetterArity:y.BadSetterArity,t),"set"===t.kind&&t.value.rest&&this.raise(y.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e){null!=t||(t=this.state.startLoc);let n=e||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const e=this.startNodeAt(t);e.qualification=n,e.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(e,"QualifiedTypeIdentifier")}return n}flowParseGenericType(t,e){const n=this.startNodeAt(t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(t,e),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let e=null,n=!1,i=null;const s=this.startNode(),r=this.lookahead(),o=78===this.state.type;return 14===r.type||17===r.type?(o&&!t&&this.raise(le.ThisParamMustBeFirst,s),e=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(le.ThisParamMayNotBeOptional,s)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),s.name=e,s.optional=n,s.typeAnnotation=i,this.finishNode(s,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){const e=this.startNodeAt(t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let e=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e=this.flowParseFunctionTypeParam(!1)),{params:t,rest:e,_this:n}}flowIdentToTypeAnnotation(t,e,n){switch(n.name){case"any":return this.finishNode(e,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(e,"BooleanTypeAnnotation");case"mixed":return this.finishNode(e,"MixedTypeAnnotation");case"empty":return this.finishNode(e,"EmptyTypeAnnotation");case"number":return this.finishNode(e,"NumberTypeAnnotation");case"string":return this.finishNode(e,"StringTypeAnnotation");case"symbol":return this.finishNode(e,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(t,n)}}flowParsePrimaryType(){const t=this.state.startLoc,e=this.startNode();let n,i,s=!1;const r=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,i=this.flowParseTupleType(),this.state.noAnonFunctionType=r,i;case 47:{const t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{const t=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Z(this.state.type)||this.match(78)){const t=this.lookahead().type;s=17!==t&&14!==t}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=r,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),i;this.eat(12)}return n=i?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return e.value=this.match(85),this.next(),this.finishNode(e,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",e);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",e);throw this.raise(le.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(e,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(e,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(e,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(e,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(W(this.state.type)){const t=$(this.state.type);return this.next(),super.createIdentifier(e,t)}if(Z(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,e,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const t=this.state.startLoc;let e=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const i=this.startNodeAt(t),s=this.eat(18);n=n||s,this.expect(0),!s&&this.match(3)?(i.elementType=e,this.next(),e=this.finishNode(i,"ArrayTypeAnnotation")):(i.objectType=e,i.indexType=this.flowParseType(),this.expect(3),n?(i.optional=s,e=this.finishNode(i,"OptionalIndexedAccessType")):e=this.finishNode(i,"IndexedAccessType"))}return e}flowParsePrefixType(){const t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const e=this.startNodeAt(t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.this=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){const t=this.startNode();this.eat(45);const e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){const t=this.startNode();this.eat(43);const e=this.flowParseIntersectionType();for(t.types=[e];this.eat(43);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){const t=this.state.inType;this.state.inType=!0;const e=this.flowParseUnionType();return this.state.inType=t,e}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const t=this.state.startLoc,e=this.parseIdentifier();return this.flowParseGenericType(t,e)}return this.flowParseType()}flowParseTypeAnnotation(){const t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){const e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,e,n=!1){e?this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,n))):super.parseFunctionBody(t,!1,n)}parseFunctionBodyAndFinish(t,e,n=!1){if(this.match(14)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,e,n)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){if(H(this.lookahead().type)){const t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}const e=super.parseStatementLike(t);return void 0!==this.flowPragma||this.isValidDirective(e)||(this.flowPragma=null),e}parseExpressionStatement(t,e,n){if("Identifier"===e.type)if("declare"===e.name){if(this.match(80)||Z(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(Z(this.state.type)){if("interface"===e.name)return this.flowParseInterface(t);if("type"===e.name)return this.flowParseTypeAlias(t);if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}return super.parseExpressionStatement(t,e,n)}shouldParseExportDeclaration(){const{type:t}=this.state;return G(t)||this.shouldParseEnums()&&126===t?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:t}=this.state;return G(t)||this.shouldParseEnums()&&126===t?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){const e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(n),t}this.expect(17);const i=this.state.clone(),s=this.state.noArrowAt,r=this.startNodeAt(e);let{consequent:o,failed:a}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(o);if(a||c.length>0){const t=[...s];if(c.length>0){this.state=i,this.state.noArrowAt=t;for(let e=0;e<c.length;e++)t.push(c[e].start);({consequent:o,failed:a}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(o)}a&&l.length>1&&this.raise(le.AmbiguousConditionalArrow,i.startLoc),a&&1===l.length&&(this.state=i,t.push(l[0].start),this.state.noArrowAt=t,({consequent:o,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(14),r.test=t,r.consequent=o,r.alternate=this.forwardNoArrowParamsConversionAt(r,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(r,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const t=this.parseMaybeAssignAllowIn(),e=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const n=[t],i=[];for(;0!==n.length;){const t=n.pop();"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):i.push(t),n.push(t.body)):"ConditionalExpression"===t.type&&(n.push(t.consequent),n.push(t.alternate))}return e?(i.forEach((t=>this.finishArrowValidation(t))),[i,[]]):function(t,e){const n=[],i=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?n:i).push(t[s]);return[n,i]}(i,(t=>t.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let n;return this.state.noArrowParamsConversionAt.includes(t.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=e(),this.state.noArrowParamsConversionAt.pop()):n=e(),n}parseParenItem(t,e){const n=super.parseParenItem(t,e);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){const t=this.startNodeAt(e);return t.expression=n,t.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t,"TypeCastExpression")}return n}assertModuleNodeAllowed(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";const e=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual(131)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual(129)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseInterface(e)}if(this.shouldParseEnums()&&this.isContextual(126)){t.exportKind="value";const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDeclaration(t)}eatExportStar(t){return!!super.eatExportStar(t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const{startLoc:e}=this.state,n=super.maybeParseExportNamespaceSpecifier(t);return n&&"type"===t.exportKind&&this.unexpected(e),n}parseClassId(t,e,n){super.parseClassId(t,e,n),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,n){const{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,n),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type&&"PropertyDefinition"!==e.type?this.raise(le.DeclareClassElement,i):e.value&&this.raise(le.DeclareClassFieldInitializer,e.value))}isIterator(t){return"iterator"===t||"asyncIterator"===t}readIterator(){const t=super.readWord1(),e="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(y.InvalidIdentifier,this.state.curPosition(),{identifierName:e}),this.finishToken(132,e)}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);123===t&&124===e?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===e?this.finishOp(18,2):this.finishOp(17,1):!function(t,e,n){return 64===t&&64===e&&rt(n)}(t,e,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(t):(this.state.pos+=2,this.readIterator()):this.finishOp(62===t?48:47,1)}isAssignable(t,e){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,e):super.isAssignable(t,e)}toAssignable(t,e=!1){e||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,e)}toAssignableList(t,e,n){for(let e=0;e<t.length;e++){const n=t[e];"TypeCastExpression"===(null==n?void 0:n.type)&&(t[e]=this.typeCastToParameter(n))}super.toAssignableList(t,e,n)}toReferencedList(t,e){for(let i=0;i<t.length;i++){var n;const s=t[i];!s||"TypeCastExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized||!(t.length>1)&&e||this.raise(le.TypeCastInPattern,s.typeAnnotation)}return t}parseArrayLike(t,e,n,i){const s=super.parseArrayLike(t,e,n,i);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(t,e,n){return"TypeCastExpression"===t||super.isValidLVal(t,e,n)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,n,i,s,r){if(e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,n,i,s,r),e.params&&s){const t=e.params;t.length>0&&this.isThisParam(t[0])&&this.raise(le.ThisParamBannedInConstructor,e)}else if("MethodDefinition"===e.type&&s&&e.value.params){const t=e.value.params;t.length>0&&this.isThisParam(t[0])&&this.raise(le.ThisParamBannedInConstructor,e)}}pushClassPrivateMethod(t,e,n,i){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,n,i)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const e=t.implements=[];do{const t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);const e=this.getObjectOrClassMethodParams(t);if(e.length>0){const n=e[0];this.isThisParam(n)&&"get"===t.kind?this.raise(le.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(le.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,e,n,i,s,r,o){let a;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!r&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(t,e,n,i,s,r,o);return a&&((l.value||l).typeParameters=a),l}parseAssignableListItemTypes(t){return this.eat(17)&&("Identifier"!==t.type&&this.raise(le.PatternIsOptional,t),this.isThisParam(t)&&this.raise(le.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(le.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(le.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,e){const n=super.parseMaybeDefault(t,e);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(le.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(le.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,e,n){e.local=ce(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,n))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;const e=this.lookaheadCharCode();return 123===e||42===e}return!t&&this.isContextual(87)}applyImportPhase(t,e,n,i){if(super.applyImportPhase(t,e,n,i),e){if(!n&&this.match(65))return;t.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),t.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(t,e,n,i,s){const r=t.imported;let o=null;"Identifier"===r.type&&("type"===r.name?o="type":"typeof"===r.name&&(o="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===o||H(this.state.type)?(t.imported=r,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=o,t.local=se(e))}else{if(null!==o&&H(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=o;else{if(e)throw this.raise(y.ImportBindingIsString,t,{importName:r.value});t.imported=r,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(a=!0,t.local=se(t.imported))}const l=ce(t);return n&&l&&this.raise(le.ImportTypeShorthandOnlyInPureImport,t),(n||l)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),!a||n||l||this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,e){const n=t.kind;"get"!==n&&"set"!==n&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(14)){const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e){var n;let i,s=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(s=this.state.clone(),i=this.tryParse((()=>super.parseMaybeAssign(t,e)),s),!i.error)return i.node;const{context:n}=this.state,r=n[n.length-1];r!==C.j_oTag&&r!==C.j_expr||n.pop()}if(null!=(n=i)&&n.error||this.match(47)){var r,o;let n;s=s||this.state.clone();const a=this.tryParse((i=>{var s;n=this.flowParseTypeParameterDeclaration();const r=this.forwardNoArrowParamsConversionAt(n,(()=>{const i=super.parseMaybeAssign(t,e);return this.resetStartLocationFromNode(i,n),i}));null!=(s=r.extra)&&s.parenthesized&&i();const o=this.maybeUnwrapTypeCastExpression(r);return"ArrowFunctionExpression"!==o.type&&i(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),r}),s);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(le.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),a.node;l=a.node}if(null!=(r=i)&&r.node)return this.state=i.failState,i.node;if(l)return this.state=a.failState,l;if(null!=(o=i)&&o.thrown)throw i.error;if(a.thrown)throw a.error;throw this.raise(le.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,e){this.state.noArrowParamsConversionAt.includes(t.start)?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,n,i=!0){if(!n||!this.state.noArrowParamsConversionAt.includes(t.start)){for(let e=0;e<t.params.length;e++)this.isThisParam(t.params[e])&&e>0&&this.raise(le.ThisParamMustBeFirst,t.params[e]);super.checkParams(t,e,n,i)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(t,e,n){if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(e.index)){this.next();const n=this.startNodeAt(e);n.callee=t,n.arguments=super.parseCallExpressionArguments(11,!1),t=this.finishNode(n,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){const i=this.state.clone(),s=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e)||t()),i);if(!s.error&&!s.aborted)return s.node;const r=this.tryParse((()=>super.parseSubscripts(t,e,n)),i);if(r.node&&!r.error)return r.node;if(s.node)return this.state=s.failState,s.node;if(r.node)return this.state=r.failState,r.node;throw s.error||r.error}return super.parseSubscripts(t,e,n)}parseSubscript(t,e,n,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,n)return i.stop=!0,t;this.next();const s=this.startNodeAt(e);return s.callee=t,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),s.arguments=this.parseCallExpressionArguments(11,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(e);n.callee=t;const s=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),i.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,i.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(t,e,n,i)}parseNewCallee(t){super.parseNewCallee(t);let e=null;this.shouldParseTypes()&&this.match(47)&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e}parseAsyncArrowWithTypeParameters(t){const e=this.startNodeAt(t);if(this.parseFunctionParams(e,!1),this.parseArrow(e))return super.parseArrowExpression(e,void 0,!0)}readToken_mult_modulo(t){const e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(t)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);124!==t||125!==e?super.readToken_pipe_amp(t):this.finishOp(9,2)}parseTopLevel(t,e){const n=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(le.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(le.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:t}=this.state;let e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;const n=this.input.charCodeAt(e+t),i=this.input.charCodeAt(e+t+1);return 58===n&&58===i?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===n&&58!==i&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(y.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:n}){this.raise(le.EnumBooleanMemberNotInitialized,t,{memberName:n,enumName:e})}flowEnumErrorInvalidMemberInitializer(t,e){return this.raise(e.explicitType?"symbol"===e.explicitType?le.EnumInvalidMemberInitializerSymbolType:le.EnumInvalidMemberInitializerPrimaryType:le.EnumInvalidMemberInitializerUnknownType,t,e)}flowEnumErrorNumberMemberNotInitialized(t,e){this.raise(le.EnumNumberMemberNotInitialized,t,e)}flowEnumErrorStringMemberInconsistentlyInitialized(t,e){this.raise(le.EnumStringMemberInconsistentlyInitialized,t,e)}flowEnumMemberInit(){const t=this.state.startLoc,e=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const n=this.parseNumericLiteral(this.state.value);return e()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 133:{const n=this.parseStringLiteral(this.state.value);return e()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return e()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){const t=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t}}}flowEnumCheckExplicitTypeMismatch(t,e,n){const{explicitType:i}=e;null!==i&&i!==n&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){const n=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}const r=this.startNode(),{id:o,init:a}=this.flowEnumMemberRaw(),l=o.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(le.EnumInvalidMemberName,o,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),n.has(l)&&this.raise(le.EnumDuplicateMemberName,o,{memberName:l,enumName:t}),n.add(l);const c={enumName:t,explicitType:e,memberName:l};switch(r.id=o,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"boolean"),r.init=a.value,i.booleanMembers.push(this.finishNode(r,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"number"),r.init=a.value,i.numberMembers.push(this.finishNode(r,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"string"),r.init=a.value,i.stringMembers.push(this.finishNode(r,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,c);case"none":switch(e){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,c);break;default:i.defaultedMembers.push(this.finishNode(r,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:s}}flowEnumStringMembers(t,e,{enumName:n}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!Z(this.state.type))throw this.raise(le.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:e}=this.state;return this.next(),"boolean"!==e&&"number"!==e&&"string"!==e&&"symbol"!==e&&this.raise(le.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:e}),e}flowEnumBody(t,e){const n=e.name,i=e.loc.start,s=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:r,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:s});switch(t.hasUnknownMembers=o,s){case"boolean":return t.explicitType=!0,t.members=r.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=r.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(r.stringMembers,r.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=r.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{const e=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const s=r.booleanMembers.length,o=r.numberMembers.length,a=r.stringMembers.length,l=r.defaultedMembers.length;if(s||o||a||l){if(s||o){if(!o&&!a&&s>=l){for(const t of r.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(t.loc.start,{enumName:n,memberName:t.id.name});return t.members=r.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}if(!s&&!a&&o>=l){for(const t of r.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(t.loc.start,{enumName:n,memberName:t.id.name});return t.members=r.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}return this.raise(le.EnumInconsistentMemberValues,i,{enumName:n}),e()}return t.members=this.flowEnumStringMembers(r.stringMembers,r.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody")}return e()}}}flowParseEnumDeclaration(t){const e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),e),this.finishNode(t,"EnumDeclaration")}isLookaheadToken_lt(){const t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){const e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{constructor(...t){super(...t),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xe.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter})}getScopeHandler(){return ye}tsIsIdentifier(){return Z(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,e){if(!Z(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(t.includes(n)){if(e&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:e,stopOnStartOfClassStaticBlock:n,errorTemplate:i=xe.InvalidModifierOnTypeMember},s){const r=(t,e,n,i)=>{e===n&&s[i]&&this.raise(xe.InvalidModifiersOrder,t,{orderedModifiers:[n,i]})},o=(t,e,n,i)=>{(s[n]&&e===i||s[i]&&e===n)&&this.raise(xe.IncompatibleModifiers,t,{modifiers:[n,i]})};for(;;){const{startLoc:a}=this.state,l=this.tsParseModifier(t.concat(null!=e?e:[]),n);if(!l)break;Ce(l)?s.accessibility?this.raise(xe.DuplicateAccessibilityModifier,a,{modifier:l}):(r(a,l,l,"override"),r(a,l,l,"static"),r(a,l,l,"readonly"),s.accessibility=l):be(l)?(s[l]&&this.raise(xe.DuplicateModifier,a,{modifier:l}),s[l]=!0,r(a,l,"in","out")):(hasOwnProperty.call(s,l)?this.raise(xe.DuplicateModifier,a,{modifier:l}):(r(a,l,"static","readonly"),r(a,l,"static","override"),r(a,l,"override","readonly"),r(a,l,"abstract","override"),o(a,l,"declare","override"),o(a,l,"static","abstract")),s[l]=!0),null!=e&&e.includes(l)&&this.raise(i,a,{modifier:l})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,e){const n=[];for(;!this.tsIsListTerminator(t);)n.push(e());return n}tsParseDelimitedList(t,e,n){return function(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}(this.tsParseDelimitedListWorker(t,e,!0,n))}tsParseDelimitedListWorker(t,e,n,i){const s=[];let r=-1;for(;!this.tsIsListTerminator(t);){r=-1;const i=e();if(null==i)return;if(s.push(i),!this.eat(12)){if(this.tsIsListTerminator(t))break;return void(n&&this.expect(12))}r=this.state.lastTokStartLoc.index}return i&&(i.value=r),s}tsParseBracketedList(t,e,n,i,s){i||(n?this.expect(0):this.expect(47));const r=this.tsParseDelimitedList(t,e,s);return n?this.expect(3):this.expect(48),r}tsParseImportType(){const t=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(xe.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName()),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t=!0){let e=this.parseIdentifier(t);for(;this.eat(16);){const n=this.startNodeAtNode(e);n.left=e,n.right=this.parseIdentifier(t),e=this.finishNode(n,"TSQualifiedName")}return e}tsParseTypeReference(){const t=this.startNode();return t.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();const e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){const t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){const t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(t){const e=this.startNode();return t(e),e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(81),e.default=this.tsEatThenParseType(29),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){const e=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const n={value:-1};return e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,n),0===e.params.length&&this.raise(xe.EmptyTypeParameters,e),-1!==n.value&&this.addExtra(e,"trailingComma",n.value),this.finishNode(e,"TSTypeParameterDeclaration")}tsFillSignature(t,e){const n=19===t,i="typeAnnotation";e.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),e.parameters=this.tsParseBindingListForSignature(),(n||this.match(t))&&(e[i]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){const t=super.parseBindingList(11,41,2);for(const e of t){const{type:t}=e;"AssignmentPattern"!==t&&"TSParameterProperty"!==t||this.raise(xe.UnsupportedSignatureParameterKind,e,{type:t})}return t}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(t,e){return this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!Z(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(t){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(3),t.parameters=[e];const n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){this.eat(17)&&(t.optional=!0);const n=t;if(this.match(10)||this.match(47)){e&&this.raise(xe.ReadonlyForMethodSignature,t);const i=n;i.kind&&this.match(47)&&this.raise(xe.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();const s="parameters",r="typeAnnotation";if("get"===i.kind)i[s].length>0&&(this.raise(y.BadGetterArity,this.state.curPosition()),this.isThisParam(i[s][0])&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===i.kind){if(1!==i[s].length)this.raise(y.BadSetterArity,this.state.curPosition());else{const t=i[s][0];this.isThisParam(t)&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(xe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(xe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}i[r]&&this.raise(xe.SetAccessorCannotHaveReturnType,i[r])}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}{const t=n;e&&(t.readonly=!0);const i=this.tsTryParseTypeAnnotation();return i&&(t.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){const e=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);const e=this.tsTryParseIndexSignature(t);return e||(super.parsePropertyName(t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,super.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){const t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const t=this.startNode();this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0);{const e=this.startNode();e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),t.typeParameter=this.finishNode(e,"TSTypeParameter")}return t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1;return t.elementTypes.forEach((t=>{const{type:n}=t;!e||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&t.optional||this.raise(xe.OptionalTypeBeforeRequired,t),e||(e="TSNamedTupleMember"===n&&t.optional||"TSOptionalType"===n)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const{startLoc:t}=this.state,e=this.eat(21);let n,i,s,r;const o=H(this.state.type)?this.lookaheadCharCode():null;if(58===o)n=!0,s=!1,i=this.parseIdentifier(!0),this.expect(14),r=this.tsParseType();else if(63===o){s=!0;const t=this.state.startLoc,e=this.state.value,o=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,i=this.createIdentifier(this.startNodeAt(t),e),this.expect(17),this.expect(14),r=this.tsParseType()):(n=!1,r=o,this.expect(17))}else r=this.tsParseType(),s=this.eat(17),n=this.eat(14);if(n){let t;i?(t=this.startNodeAtNode(i),t.optional=s,t.label=i,t.elementType=r,this.eat(17)&&(t.optional=!0,this.raise(xe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(t=this.startNodeAtNode(r),t.optional=s,this.raise(xe.InvalidTupleMemberLabel,r),t.label=r,t.elementType=this.tsParseType()),r=this.finishNode(t,"TSNamedTupleMember")}else if(s){const t=this.startNodeAtNode(r);t.typeAnnotation=r,r=this.finishNode(t,"TSOptionalType")}if(e){const e=this.startNodeAt(t);e.typeAnnotation=r,r=this.finishNode(e,"TSRestType")}return r}tsParseParenthesizedType(){const t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,e){const n=this.startNode();return"TSConstructorType"===t&&(n.abstract=!!e,e&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,n))),this.finishNode(n,t)}tsParseLiteralTypeNode(){const t=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){const t=this.startNode();return t.literal=super.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();return 134!==e.type&&135!==e.type&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:t}=this.state;if(Z(t)||88===t||84===t){const e=88===t?"TSVoidKeyword":84===t?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const e=this.startNodeAtNode(t);e.elementType=t,this.expect(3),t=this.finishNode(e,"TSArrayType")}else{const e=this.startNodeAtNode(t);e.objectType=t,e.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(e,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const t=this.startNode(),e=this.state.value;return this.next(),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xe.UnexpectedReadonly,t)}}tsParseInferType(){const t=this.startNode();this.expectContextual(115);const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const t=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){var t;return(t=this.state.type)>=121&&t<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(t,e,n){const i=this.startNode(),s=this.eat(n),r=[];do{r.push(e())}while(this.eat(n));return 1!==r.length||s?(i.types=r,this.finishNode(i,t)):r[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Z(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:t}=this.state,e=t.length;try{return this.parseObjectLike(8,!0),t.length===e}catch(t){return!1}}if(this.match(0)){this.next();const{errors:t}=this.state,e=t.length;try{return super.parseBindingList(3,93,1),t.length===e}catch(t){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const n=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){let t=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===t.type?(n.parameterName=t,n.asserts=!0,n.typeAnnotation=null,t=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(t,n),t.asserts=!0),e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s)return i?(n.parameterName=this.parseIdentifier(),n.asserts=i,n.typeAnnotation=null,e.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,e);const r=this.tsParseTypeAnnotation(!1);return n.parameterName=s,n.typeAnnotation=r,n.asserts=i,e.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const t=this.state.containsEsc;return this.next(),!(!Z(this.state.type)&&!this.match(78))&&(t&&this.raise(y.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(14),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){ve(this.state.inType);const t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),e.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),e.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(e,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xe.ReservedTypeAssertion,this.state.startLoc);const t=this.startNode();return t.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){const e=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const t=this.startNode();return t.expression=this.tsParseEntityName(),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}));return n.length||this.raise(xe.EmptyHeritageClauseType,e,{token:t}),n}tsParseInterfaceDeclaration(t,e={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),e.declare&&(t.declare=!0),Z(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(xe.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType((()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInNoContext(t){const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}tsInType(t){const e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsInDisallowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsInAllowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType((()=>(this.expect(t),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const t=this.startNode();return t.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e={}){return e.const&&(t.const=!0),e.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,e=!1){if(t.id=this.parseIdentifier(),e||this.checkIdentifier(t.id,1024),this.eat(16)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.global=!0,t.id=this.parseIdentifier()):this.match(133)?t.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e,n){t.isExport=n||!1,t.id=e||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);const i=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==i.type&&this.raise(xe.ImportAliasHasImportType,i),t.moduleReference=i,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),n=t();return this.state=e,n}tsTryParseAndCatch(t){const e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){const e=this.state.clone(),n=t();if(void 0!==n&&!1!==n)return n;this.state=e}tsTryParseDeclare(t){if(this.isLineTerminator())return;let e,n=this.state.type;return this.isContextual(100)&&(n=74,e="let"),this.tsInAmbientContext((()=>{switch(n){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,this.parseVarStatement(t,e||this.state.value,!0));case 129:{const e=this.tsParseInterfaceDeclaration(t,{declare:!0});if(e)return e}default:if(Z(n))return this.tsParseDeclaration(t,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(t,e,n){switch(e.name){case"declare":{const e=this.tsTryParseDeclare(t);return e&&(e.declare=!0),e}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const n=t;return n.global=!0,n.id=e,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1,n)}}tsParseDeclaration(t,e,n,i){switch(e){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||Z(this.state.type)))return this.tsParseAbstractDeclaration(t,i);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(t);if(Z(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&Z(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(n)&&Z(this.state.type))return this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminator(t){return t?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;const e=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch((()=>{const e=this.startNodeAt(t);return e.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(e),e.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),e}));return this.state.maybeInArrowParameters=e,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const t=this.startNode();return t.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length?this.raise(xe.EmptyTypeArguments,t):this.state.inType||this.curContext()!==C.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(t=this.state.type)>=124&&t<=130;var t}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(t,e){const n=this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);const s=i.accessibility,r=i.override,o=i.readonly;4&t||!(s||o||r)||this.raise(xe.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,t);const l=this.parseMaybeDefault(a.loc.start,a);if(s||o||r){const t=this.startNodeAt(n);return e.length&&(t.decorators=e),s&&(t.accessibility=s),o&&(t.readonly=o),r&&(t.override=r),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(xe.UnsupportedParameterPropertyKind,t),t.parameter=l,this.finishNode(t,"TSParameterProperty")}return e.length&&(a.decorators=e),l}isSimpleParameter(t){return"TSParameterProperty"===t.type&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(const e of t.params)"Identifier"!==e.type&&e.optional&&!this.state.isAmbientContext&&this.raise(xe.PatternIsOptional,e)}setArrowFunctionParameters(t,e,n){super.setArrowFunctionParameters(t,e,n),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,e,n=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const i="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e||"ClassPrivateMethod"===e?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,i):"TSDeclareFunction"===i&&this.state.isAmbientContext&&(this.raise(xe.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,i,n):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,e,n))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{"TSTypeCastExpression"===(null==t?void 0:t.type)&&this.raise(xe.UnexpectedTypeAnnotation,t.typeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,e,n,i){const s=super.parseArrayLike(t,e,n,i);return"ArrayExpression"===s.type&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(t,e,n,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"TSNonNullExpression")}let s=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return i.stop=!0,t;i.optionalChainMember=s=!0,this.next()}if(this.match(47)||this.match(51)){let r;const o=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e);if(t)return t}const o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(s&&!this.match(10))return void(r=this.state.curPosition());if(J(this.state.type)){const n=super.parseTaggedTemplateExpression(t,e,i);return n.typeParameters=o,n}if(!n&&this.eat(10)){const n=this.startNodeAt(e);return n.callee=t,n.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,i.optionalChainMember&&(n.optional=s),this.finishCallExpression(n,i.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&q(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(e);return l.expression=t,l.typeParameters=o,this.finishNode(l,"TSInstantiationExpression")}));if(r&&this.unexpected(r,10),o)return"TSInstantiationExpression"===o.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(xe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(t,e,n,i)}parseNewCallee(t){var e;super.parseNewCallee(t);const{callee:n}=t;"TSInstantiationExpression"!==n.type||null!=(e=n.extra)&&e.parenthesized||(t.typeParameters=n.typeParameters,t.callee=n.expression)}parseExprOp(t,e,n){let i;if(K(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){const s=this.startNodeAt(e);return s.expression=t,s.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(i&&this.raise(y.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(s,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,e,n)}return super.parseExprOp(t,e,n)}checkReservedWord(t,e,n,i){this.state.isAmbientContext||super.checkReservedWord(t,e,n,i)}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(xe.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){const e=this.lookaheadCharCode();return t?123===e||42===e:61!==e}return!t&&this.isContextual(87)}applyImportPhase(t,e,n,i){super.applyImportPhase(t,e,n,i),e?t.exportKind="type"===n?"type":"value":t.importKind="type"===n||"typeof"===n?n:"value"}parseImport(t){if(this.match(133))return t.importKind="value",super.parseImport(t);let e;if(Z(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,n);e=super.parseImportSpecifiersAndAfter(t,n)}else e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(xe.TypeImportCannotSpecifyDefaultAndNamed,e),e}parseExport(t,e){if(this.match(83)){this.next();const e=t;let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,n,!0)}if(this.eat(29)){const e=t;return e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")}if(this.eatContextual(93)){const e=t;return this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")}return super.parseExport(t,e)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,e,n=!1){const{isAmbientContext:i}=this.state,s=super.parseVarStatement(t,e,n||i);if(!i)return s;for(const{id:t,init:n}of s.declarations)n&&("const"!==e||t.typeAnnotation?this.raise(xe.InitializerNotAllowedInAmbientContext,n):Pe(n,this.hasPlugin("estree"))||this.raise(xe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return s}parseStatementContent(t,e){if(this.match(75)&&this.isLookaheadContextual("enum")){const t=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(t,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,e){return e.some((e=>Ce(e)?t.accessibility===e:!!t[e]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(t,e,n){const i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xe.InvalidModifierOnTypeParameterPositions},e);const s=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(e,i)&&this.raise(xe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,e)):this.parseClassMemberWithIsStatic(t,e,n,!!e.static)};e.declare?this.tsInAmbientContext(s):s()}parseClassMemberWithIsStatic(t,e,n,i){const s=this.tsTryParseIndexSignature(e);if(s)return t.body.push(s),e.abstract&&this.raise(xe.IndexSignatureHasAbstract,e),e.accessibility&&this.raise(xe.IndexSignatureHasAccessibility,e,{modifier:e.accessibility}),e.declare&&this.raise(xe.IndexSignatureHasDeclare,e),void(e.override&&this.raise(xe.IndexSignatureHasOverride,e));!this.state.inAbstractClass&&e.abstract&&this.raise(xe.NonAbstractClassHasAbstractMethod,e),e.override&&(n.hadSuperClass||this.raise(xe.OverrideNotInSubClass,e)),super.parseClassMemberWithIsStatic(t,e,n,i)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(xe.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(xe.ClassMethodHasDeclare,t)}parseExpressionStatement(t,e,n){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e,n):void 0)||super.parseExpressionStatement(t,e,n)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(t,e,n);const i=this.tryParse((()=>super.parseConditional(t,e)));return i.node?(i.error&&(this.state=i.failState),i.node):(i.error&&super.setOptionalParametersError(n,i.error),t)}parseParenItem(t,e){const n=super.parseParenItem(t,e);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){const n=this.startNodeAt(e);return n.expression=t,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(t)));const e=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(xe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const i=Z(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return i?(("TSInterfaceDeclaration"===i.type||"TSTypeAliasDeclaration"===i.type||n)&&(t.exportKind="type"),n&&(this.resetStartLocation(i,e),i.declare=!0),i):null}parseClassId(t,e,n,i){if((!e||n)&&this.isContextual(113))return;super.parseClassId(t,e,n,t.declare?1024:8331);const s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);s&&(t.typeParameters=s)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(29)&&this.raise(xe.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){const{key:e}=t;this.raise(xe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==e.type||t.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(xe.PrivateElementHasAbstract,t),t.accessibility&&this.raise(xe.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(xe.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,e,n,i,s,r){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&s&&this.raise(xe.ConstructorHasTypeParameters,o);const{declare:a=!1,kind:l}=e;!a||"get"!==l&&"set"!==l||this.raise(xe.DeclareAccessor,e,{kind:l}),o&&(e.typeParameters=o),super.pushClassMethod(t,e,n,i,s,r)}pushClassPrivateMethod(t,e,n,i){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(e.typeParameters=s),super.pushClassPrivateMethod(t,e,n,i)}declareClassPrivateMethodInScope(t,e){"TSDeclareMethod"!==t.type&&("MethodDefinition"!==t.type||hasOwnProperty.call(t.value,"body"))&&super.declareClassPrivateMethodInScope(t,e)}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,e,n,i,s,r,o){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(t.typeParameters=a),super.parseObjPropValue(t,e,n,i,s,r,o)}parseFunctionParams(t,e){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(t,e){var n,i,s,r,o;let a,l,c,h;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(t,e)),a),!l.error)return l.node;const{context:n}=this.state,i=n[n.length-1];i!==C.j_oTag&&i!==C.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(t,e);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((n=>{var i,s;h=this.tsParseTypeParameters(this.tsParseConstModifier);const r=super.parseMaybeAssign(t,e);return("ArrowFunctionExpression"!==r.type||null!=(i=r.extra)&&i.parenthesized)&&n(),0!==(null==(s=h)?void 0:s.params.length)&&this.resetStartLocationFromNode(r,h),r.typeParameters=h,r}),a);if(!p.error&&!p.aborted)return h&&this.reportReservedArrowTypeParam(h),p.node;if(!l&&(ve(!this.hasPlugin("jsx")),c=this.tryParse((()=>super.parseMaybeAssign(t,e)),a),!c.error))return c.node;if(null!=(i=l)&&i.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,h&&this.reportReservedArrowTypeParam(h),p.node;if(null!=(s=c)&&s.node)return this.state=c.failState,c.node;throw(null==(r=l)?void 0:r.error)||p.error||(null==(o=c)?void 0:o.error)}reportReservedArrowTypeParam(t){var e;1!==t.params.length||t.params[0].constraint||null!=(e=t.extra)&&e.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(xe.ReservedArrowTypeParam,t)}parseMaybeUnary(t,e){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseAssignableListItemTypes(t,e){if(!(2&e))return t;this.eat(17)&&(t.optional=!0);const n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),this.resetEndLocation(t),t}isAssignable(t,e){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,e);case"TSParameterProperty":return!0;default:return super.isAssignable(t,e)}}toAssignable(t,e=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,e);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":e?this.expressionScope.recordArrowParameterBindingError(xe.UnexpectedTypeCastInParameter,t):this.raise(xe.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,e);break;case"AssignmentExpression":e||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,e)}}toAssignableParenthesizedExpression(t,e){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;default:super.toAssignable(t,e)}}checkToRestConversion(t,e){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,e)}}isValidLVal(t,e,n){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==n||!e)&&["expression",!0];default:return super.isValidLVal(t,e,n)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t){if(this.match(47)||this.match(51)){const e=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(t);return n.typeParameters=e,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,e){const n=super.parseMaybeDefault(t,e);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(xe.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(t){if(this.state.inType){if(62===t)return void this.finishOp(48,1);if(60===t)return void this.finishOp(47,1)}super.getTokenFromCode(t)}reScan_lt_gt(){const{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableList(t,e,n){for(let e=0;e<t.length;e++){const n=t[e];"TSTypeCastExpression"===(null==n?void 0:n.type)&&(t[e]=this.typeCastToParameter(n))}super.toAssignableList(t,e,n)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every((t=>this.isAssignable(t,!0))):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t)[0];return n&&this.isThisParam(n)?e+1:e}parseCatchClauseParam(){const t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInAmbientContext(t){const{isAmbientContext:e,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=e,this.state.strict=n}}parseClass(t,e,n){const i=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,e,n)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(t,e){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(e,this.parseClass(t,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(xe.NonClassMethodPropertyHasAbstractModifer,t),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(t,e,n,i,s,r,o){const a=super.parseMethod(t,e,n,i,s,r,o);if(a.abstract){if(this.hasPlugin("estree")?!!a.value.body:!!a.body){const{key:t}=a;this.raise(xe.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==t.type||a.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,e,n,i){return!e&&i?(this.parseTypeOnlyImportExportSpecifier(t,!1,n),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,e,n,i))}parseImportSpecifier(t,e,n,i,s){return!e&&i?(this.parseTypeOnlyImportExportSpecifier(t,!0,n),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,e,n,i,n?4098:4096))}parseTypeOnlyImportExportSpecifier(t,e,n){const i=e?"imported":"local",s=e?"local":"exported";let r,o=t[i],a=!1,l=!0;const c=o.loc.start;if(this.isContextual(93)){const t=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();H(this.state.type)?(a=!0,o=t,r=e?this.parseIdentifier():this.parseModuleExportName(),l=!1):(r=n,l=!1)}else H(this.state.type)?(l=!1,r=e?this.parseIdentifier():this.parseModuleExportName()):(a=!0,o=t)}else H(this.state.type)&&(a=!0,e?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());a&&n&&this.raise(e?xe.TypeModifierIsUsedInTypeImports:xe.TypeModifierIsUsedInTypeExports,c),t[i]=o,t[s]=r;t[e?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(t[s]=e?this.parseIdentifier():this.parseModuleExportName()),t[s]||(t[s]=se(t[i])),e&&this.checkIdentifier(t[s],a?4098:4096)}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(54)){const t=this.state.startLoc,e=this.startNode();if(this.next(),Z(this.state.type)){const t=this.parseIdentifierName(),n=this.createIdentifier(e,t);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(144)){const e=this.startNode();return this.next(),this.assertNoSpace(),e.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){let n=t;return n.expectedNode&&n.type||(n=this.finishNode(n,"Placeholder")),n.expectedNode=e,n}getTokenFromCode(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,e,n,i){void 0!==t&&super.checkReservedWord(t,e,n,i)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,e,n){return"Placeholder"===t||super.isValidLVal(t,e,n)}toAssignable(t,e){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":super.toAssignable(t,e)}chStartsBindingIdentifier(t,e){if(super.chStartsBindingIdentifier(t,e))return!0;return 144===this.lookahead().type}verifyBreakContinue(t,e){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(t,e)}parseExpressionStatement(t,e){var n;if("Placeholder"!==e.type||null!=(n=e.extra)&&n.parenthesized)return super.parseExpressionStatement(t,e);if(this.match(14)){const n=t;return n.label=this.finishPlaceholder(e,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();const i=t;return i.name=e.name,this.finishPlaceholder(i,"Statement")}parseBlock(t,e,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,e,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,e,n){const i=e?"ClassDeclaration":"ClassExpression";this.next();const s=this.state.strict,r=this.parsePlaceholder("Identifier");if(r){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!e)return t.id=null,t.body=this.finishPlaceholder(r,"ClassBody"),this.finishNode(t,i);throw this.raise(Ee.ClassNameIsRequired,this.state.startLoc)}t.id=r}else this.parseClassId(t,e,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,s),this.finishNode(t,i)}parseExport(t,e){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,e);const i=t;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const s=this.startNode();return s.exported=n,i.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(i,e)}isExportDefaultSpecifier(){if(this.match(65)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith($(144),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,e){var n;return!(null==(n=t.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(t,e)}checkExport(t){const{specifiers:e}=t;null!=e&&e.length&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const n=this.startNodeAtNode(e);if(n.local=e,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)}return this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ee.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ne=Object.keys(Ie),Be={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Me extends _e{checkProto(t,e,n,i){if("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)return;const s=t.key;if("__proto__"===("Identifier"===s.type?s.name:s.value)){if(e)return void this.raise(y.RecordNoProto,s);n.used&&(i?null===i.doubleProtoLoc&&(i.doubleProtoLoc=s.loc.start):this.raise(y.DuplicateProto,s)),n.used=!0}}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){const i=this.startNodeAt(e);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e)))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd((()=>this.parseMaybeAssign(t,e)))}setOptionalParametersError(t,e){var n;t.optionalParametersLoc=null!=(n=null==e?void 0:e.loc)?n:this.state.startLoc}parseMaybeAssign(t,e){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let t=this.parseYield();return e&&(t=e.call(this,t,n)),t}let i;t?i=!1:(t=new ee,i=!0);const{type:s}=this.state;(10===s||Z(s))&&(this.state.potentialArrowAt=this.state.start);let r=this.parseMaybeConditional(t);if(e&&(r=e.call(this,r,n)),(o=this.state.type)>=29&&o<=33){const e=this.startNodeAt(n),i=this.state.value;if(e.operator=i,this.match(29)){this.toAssignable(r,!0),e.left=r;const i=n.index;null!=t.doubleProtoLoc&&t.doubleProtoLoc.index>=i&&(t.doubleProtoLoc=null),null!=t.shorthandAssignLoc&&t.shorthandAssignLoc.index>=i&&(t.shorthandAssignLoc=null),null!=t.privateKeyLoc&&t.privateKeyLoc.index>=i&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else e.left=r;return this.next(),e.right=this.parseMaybeAssign(),this.checkLVal(r,this.finishNode(e,"AssignmentExpression")),e}var o;return i&&this.checkExpressionErrors(t,!0),r}parseMaybeConditional(t){const e=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,e,t)}parseConditional(t,e,n){if(this.eat(17)){const n=this.startNodeAt(e);return n.test=t,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const e=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,e,-1)}parseExprOp(t,e,n){if(this.isPrivateName(t)){const e=this.getPrivateNameSV(t);(n>=K(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(y.PrivateInExpectedIn,t,{identifierName:e}),this.classScope.usePrivateName(e,t.loc.start)}const i=this.state.type;if((s=i)>=39&&s<=59&&(this.prodParam.hasIn||!this.match(58))){let s=K(i);if(s>n){if(39===i){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}const r=this.startNodeAt(e);r.left=t,r.operator=this.state.value;const o=41===i||42===i,a=40===i;if(a&&(s=K(42)),this.next(),39===i&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(y.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);r.right=this.parseExprOpRightExpr(i,s);const l=this.finishNode(r,o||a?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(a&&(41===c||42===c)||o&&40===c)throw this.raise(y.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,e,n)}}var s;return t}parseExprOpRightExpr(t,e){const n=this.state.startLoc;if(39===t)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(y.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),n)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}return this.parseExprOpBaseRightExpr(t,e)}parseExprOpBaseRightExpr(t,e){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===t?e-1:e)}parseHackPipeBody(){var t;const{startLoc:e}=this.state,n=this.parseMaybeAssign();return!p.has(n.type)||null!=(t=n.extra)&&t.parenthesized||this.raise(y.PipeUnparenthesizedBody,e,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(y.PipeTopicUnused,e),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(y.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){const n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();const t=this.parseAwait(n);return e||this.checkExponentialAfterUnary(t),t}const s=this.match(34),r=this.startNode();if(o=this.state.type,z[o]){r.operator=this.state.value,r.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),r.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&n){const t=r.argument;"Identifier"===t.type?this.raise(y.StrictDelete,r):this.hasPropertyAsPrivateName(t)&&this.raise(y.DeletePrivateField,r)}if(!s)return e||this.checkExponentialAfterUnary(r),this.finishNode(r,"UnaryExpression")}var o;const a=this.parseUpdate(r,s,t);if(i){const{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?q(t):q(t)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(y.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(t,e,n){if(e){const e=t;return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),t}const i=this.state.startLoc;let s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;34===this.state.type&&!this.canInsertSemicolon();){const t=this.startNodeAt(i);t.operator=this.state.value,t.prefix=!1,t.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(t,"UpdateExpression"))}return s}parseExprSubscripts(t){const e=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,e)}parseSubscripts(t,e,n){const i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,n,i),i.maybeAsyncArrow=!1}while(!i.stop);return t}parseSubscript(t,e,n,i){const{type:s}=this.state;if(!n&&15===s)return this.parseBind(t,e,n,i);if(J(s))return this.parseTaggedTemplateExpression(t,e,i);let r=!1;if(18===s){if(n&&(this.raise(y.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return i.stop=!0,t;i.optionalChainMember=r=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,r);{const n=this.eat(0);return n||r||this.eat(16)?this.parseMember(t,e,i,n,r):(i.stop=!0,t)}}parseMember(t,e,n,i,s){const r=this.startNodeAt(e);return r.object=t,r.computed=i,i?(r.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===t.type&&this.raise(y.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),r.property=this.parsePrivateName()):r.property=this.parseIdentifier(!0),n.optionalChainMember?(r.optional=s,this.finishNode(r,"OptionalMemberExpression")):this.finishNode(r,"MemberExpression")}parseBind(t,e,n,i){const s=this.startNodeAt(e);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),e,n)}parseCoverCallAndAsyncArrowHead(t,e,n,i){const s=this.state.maybeInArrowParameters;let r=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(e);o.callee=t;const{maybeAsyncArrow:a,optionalChainMember:l}=n;a&&(this.expressionScope.enter(new Kt(2)),r=new ee),l&&(o.optional=i),o.arguments=i?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===t.type,"Super"!==t.type,o,r);let c=this.finishCallExpression(o,l);return a&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(r),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(a&&(this.checkExpressionErrors(r,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,n){const i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(y.OptionalChainingNoTemplate,e),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if("Import"===t.callee.type)if(2===t.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===t.arguments.length||t.arguments.length>2)this.raise(y.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const e of t.arguments)"SpreadElement"===e.type&&this.raise(y.ImportCallSpreadArgument,e);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,n,i,s){const r=[];let o=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){!e||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(y.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}r.push(this.parseExprListItem(!1,s,n))}return this.state.inFSharpPipelineDirectBody=a,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var n;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(n=e.extra)?void 0:n.trailingCommaLoc),e.innerComments&&bt(t,e.innerComments),e.callee.trailingComments&&bt(t,e.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,n=null;const{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(y.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const t=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(t)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;const t=e.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(e,"BindExpression");throw this.raise(y.UnsupportedBind,t)}case 138:return this.raise(y.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const t=this.getPluginOption("pipelineOperator","proposal");if(t)return this.parseTopicReference(t);this.unexpected();break}case 47:{const t=this.input.codePointAt(this.nextTokenStart());rt(t)||62===t?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(Z(i)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const t=this.state.potentialArrowAt===this.state.start,e=this.state.containsEsc,n=this.parseIdentifier();if(!e&&"async"===n.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(Z(t))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===t)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return t&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(t){const e=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,n,t,i)}finishTopicReference(t,e,n,i){if(this.testTopicReferenceConfiguration(n,e,i)){const i="smart"===n?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===n?y.PrimaryTopicNotAllowed:y.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,i)}throw this.raise(y.PipeTopicUnconfiguredToken,e,{token:$(i)})}testTopicReferenceConfiguration(t,e,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:$(n)}]);case"smart":return 27===n;default:throw this.raise(y.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Qt(!0,this.prodParam.hasYield));const e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(y.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();const n=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(y.UnexpectedSuper,t):this.raise(y.SuperNotAllowed,t),this.match(10)||this.match(0)||this.match(16)||this.raise(y.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),e=this.startNodeAt(r(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(e,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,n){t.meta=e;const i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(y.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(y.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const e=this.isContextual(105);if(e||this.unexpected(),this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(y.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=t,this.next(),this.finishNode(n,e)}parseLiteral(t,e){const n=this.startNode();return this.parseLiteralAtNode(t,e,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const e=this.startNode();return this.addExtra(e,"raw",this.input.slice(e.start,this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){const e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const e=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new Kt(1));const i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const r=this.state.startLoc,o=[],a=new ee;let l,c,h=!0;for(;!this.match(11);){if(h)h=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const t=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),t)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(a,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let u=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(u=this.parseArrow(u))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(u,o,!1),u):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(r),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=o[0],this.wrapParenthesis(e,n))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const n=this.parseMetaProperty(t,e,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(y.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const e=this.match(83),n=this.parseNoCallExpr();t.callee=n,!e||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(y.ImportCallNotNewExpression,n)}parseTemplateElement(t){const{start:e,startLoc:n,end:i,value:s}=this.state,o=e+1,a=this.startNodeAt(r(n,1));null===s&&(t||this.raise(y.InvalidEscapeSequenceTemplate,r(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,h=i+c;a.value={raw:this.input.slice(o,h).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},a.tail=l,this.next();const p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,r(this.state.lastTokEndLoc,c)),p}parseTemplate(t){const e=this.startNode();let n=this.parseTemplateElement(t);const i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return e.expressions=s,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,n,i){n&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const r=Object.create(null);let o=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(a);break}let s;e?s=this.parseBindingProperty():(s=this.parsePropertyDefinition(i),this.checkProto(s,n,r,i)),n&&!this.isObjectProperty(s)&&"SpreadElement"!==s.type&&this.raise(y.InvalidRecordProperty,s),s.shorthand&&this.addExtra(s,"shorthand",!0),a.properties.push(s)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return e?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(y.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());const n=this.startNode();let i,s=!1,r=!1;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(n.decorators=e,e=[]),n.method=!1,t&&(i=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);const a=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!a&&this.maybeAsyncOrAccessorProp(n)){const{key:t}=n,e=t.name;"async"!==e||this.hasPrecedingLineBreak()||(s=!0,this.resetPreviousNodeTrailingComments(t),o=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(r=!0,this.resetPreviousNodeTrailingComments(t),n.kind=e,this.match(55)&&(o=!0,this.raise(y.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,i,o,s,!1,r,t)}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const n=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==n&&this.raise("get"===t.kind?y.BadGetterArity:y.BadSetterArity,t),"set"===t.kind&&"RestElement"===(null==(e=i[i.length-1])?void 0:e.type)&&this.raise(y.BadSetterRestParameter,t)}parseObjectMethod(t,e,n,i,s){if(s){const n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&"Identifier"===t.key.type){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(e,se(t.key));else if(this.match(29)){const n=this.state.startLoc;null!=i?null===i.shorthandAssignLoc&&(i.shorthandAssignLoc=n):this.raise(y.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(e,se(t.key))}else t.value=se(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,n,i,s,r,o){const a=this.parseObjectMethod(t,n,i,s,r)||this.parseObjectProperty(t,e,s,o);return a||this.unexpected(),a}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:i}=this.state;let s;if(H(n))s=this.parseIdentifier(!0);else switch(n){case 134:s=this.parseNumericLiteral(i);break;case 133:s=this.parseStringLiteral(i);break;case 135:s=this.parseBigIntLiteral(i);break;case 136:s=this.parseDecimalLiteral(i);break;case 138:{const t=this.state.startLoc;null!=e?null===e.privateKeyLoc&&(e.privateKeyLoc=t):this.raise(y.UnexpectedPrivateField,t),s=this.parsePrivateName();break}default:this.unexpected()}t.key=s,138!==n&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,n,i,s,r,o=!1){this.initFunction(t,n),t.generator=e,this.scope.enter(18|(o?64:0)|(s?32:0)),this.prodParam.enter(Qt(n,t.generator)),this.parseFunctionParams(t,i);const a=this.parseFunctionBodyAndFinish(t,r,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(t,e,n,i){n&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const r=this.startNode();return this.next(),r.elements=this.parseExprList(t,!n,i,r),this.state.inFSharpPipelineDirectBody=s,this.finishNode(r,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,n,i){this.scope.enter(6);let s=Qt(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);const r=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=r,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,n){this.toAssignableList(e,n,!1),t.params=e}parseFunctionBodyAndFinish(t,e,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,e)}parseFunctionBody(t,e,n=!1){const i=e&&!this.match(5);if(this.expressionScope.enter(Yt()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const i=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(s=>{const r=!this.isSimpleParamList(t.params);s&&r&&this.raise(y.IllegalLanguageModeDirective,"method"!==t.kind&&"constructor"!==t.kind||!t.key?t:t.key.loc.end);const o=!i&&this.state.strict;this.checkParams(t,!(this.state.strict||e||n||r),e,o),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,o)})),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}isSimpleParameter(t){return"Identifier"===t.type}isSimpleParamList(t){for(let e=0,n=t.length;e<n;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,n,i=!0){const s=!e&&new Set,r={type:"FormalParameters"};for(const e of t.params)this.checkLVal(e,r,5,s,i)}parseExprList(t,e,n,i){const s=[];let r=!0;for(;!this.eat(t);){if(r)r=!1;else if(this.expect(12),this.match(t)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(e,n))}return s}parseExprListItem(t,e,n){let i;if(this.match(12))t||this.raise(y.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const t=this.state.startLoc;i=this.parseParenItem(this.parseSpread(e),t)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(y.UnexpectedArgumentPlaceholder,this.state.startLoc);const t=this.startNode();this.next(),i=this.finishNode(t,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return i}parseIdentifier(t){const e=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(e,n)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t){let e;const{startLoc:n,type:i}=this.state;H(i)?e=this.state.value:this.unexpected();const s=i<=92;return t?s&&this.replaceToken(132):this.checkReservedWord(e,n,s,!1),this.next(),e}checkReservedWord(t,e,n,i){if(t.length>10)return;if(!function(t){return gt.has(t)}(t))return;if(n&&function(t){return ct.has(t)}(t))return void this.raise(y.UnexpectedKeyword,e,{keyword:t});if((this.state.strict?i?mt:dt:ut)(t,this.inModule))this.raise(y.UnexpectedReservedWord,e,{reservedWord:t});else if("yield"===t){if(this.prodParam.hasYield)return void this.raise(y.YieldBindingIdentifier,e)}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(y.AwaitBindingIdentifier,e);if(this.scope.inStaticBlock)return void this.raise(y.AwaitBindingIdentifierInStaticBlock,e);this.expressionScope.recordAsyncArrowParametersError(e)}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(y.ArgumentsInClass,e)}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(y.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(y.ObsoleteAwaitStar,e),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return 53===t||10===t||0===t||J(t)||102===t&&!this.state.containsEsc||137===t||56===t||this.hasPlugin("v8intrinsic")&&54===t}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(y.YieldInParameter,t),this.next();let e=!1,n=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:n=this.parseMaybeAssign()}return t.delegate=e,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===t.type&&this.raise(y.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){const n=this.startNodeAt(e);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(y.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(y.PipelineTopicUnused,t)}withTopicBindingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return t();{const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const e=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const Oe={kind:1},De={kind:2},Fe=/[\uD800-\uDFFF]/u,ze=/in(?:stanceof)?/y;class Re extends Me{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.comments,this.options.tokens&&(t.tokens=function(t,e){for(let n=0;n<t.length;n++){const i=t[n],{type:s}=i;if("number"==typeof s){if(138===s){const{loc:e,start:s,value:o,end:a}=i,l=s+1,c=r(e.start,1);t.splice(n,1,new Vt({type:Y(27),value:"#",start:s,end:l,startLoc:e.start,endLoc:c}),new Vt({type:Y(132),value:o,start:l,end:a,startLoc:c,endLoc:e.end})),n++;continue}if(J(s)){const{loc:o,start:a,value:l,end:c}=i,h=a+1,p=r(o.start,1);let u,d,f,m,g;u=96===e.charCodeAt(a)?new Vt({type:Y(22),value:"`",start:a,end:h,startLoc:o.start,endLoc:p}):new Vt({type:Y(8),value:"}",start:a,end:h,startLoc:o.start,endLoc:p}),24===s?(f=c-1,m=r(o.end,-1),d=null===l?null:l.slice(1,-1),g=new Vt({type:Y(22),value:"`",start:f,end:c,startLoc:m,endLoc:o.end})):(f=c-2,m=r(o.end,-2),d=null===l?null:l.slice(1,-2),g=new Vt({type:Y(23),value:"${",start:f,end:c,startLoc:m,endLoc:o.end})),t.splice(n,1,u,new Vt({type:Y(20),value:d,start:h,end:f,startLoc:p,endLoc:m}),g),n+=2;continue}i.type=Y(s)}}return t}(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,e=139,n=this.options.sourceType){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[t,e]of Array.from(this.scope.undefinedExports))this.raise(y.ModuleExportUndefined,e,{localName:t});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return i=139===e?this.finishNode(t,"Program"):this.finishNodeAt(t,"Program",r(this.state.startLoc,-1)),i}stmtToDirective(t){const e=t;e.type="Directive",e.value=e.expression,delete e.expression;const n=e.value,i=n.value,s=this.input.slice(n.start,n.end),r=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",r),this.addExtra(n,"expressionValue",i),n.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(t,e){if(rt(t)){if(ze.lastIndex=e,ze.test(this.input)){const t=this.codePointAtPos(ze.lastIndex);if(!ot(t)&&92!==t)return!1}return!0}return 92===t}chStartsBindingPattern(t){return 91===t||123===t}hasFollowingBindingAtom(){const t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return 123===e||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){const{type:t,containsEsc:e}=this.lookahead();return!(102===t&&!e)&&(Z(t)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){const n=this.state.type,i=this.startNode(),s=!!(2&t),r=!!(4&t),o=1&t;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(46===this.lookaheadCharCode())break;return r||this.raise(this.state.strict?y.StrictFunction:this.options.annexB?y.SloppyFunctionAnnexB:y.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&r);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?s||this.raise(y.UnexpectedLexicalDeclaration,i):this.raise(y.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(y.UnexpectedUsingDeclaration,this.state.startLoc):s||this.raise(y.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;const t=this.nextTokenStart(),e=this.codePointAtPos(t);if(91!==e){if(!s&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(e,t)&&123!==e)break}}case 75:s||this.raise(y.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const t=this.state.value;return this.parseVarStatement(i,t)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{const t=this.lookaheadCharCode();if(40===t||46===t)break}case 82:{let t;return this.options.allowImportExportEverywhere||o||this.raise(y.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?(t=this.parseImport(i),"ImportDeclaration"!==t.type||t.importKind&&"value"!==t.importKind||(this.sawUnambiguousESM=!0)):(t=this.parseExport(i,e),("ExportNamedDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&("ExportAllDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&"ExportDefaultDeclaration"!==t.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(t),t}default:if(this.isAsyncFunction())return s||this.raise(y.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&r)}const a=this.state.value,l=this.parseExpression();return Z(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(i,a,l,t):this.parseExpressionStatement(i,l,e)}assertModuleNodeAllowed(t){this.options.allowImportExportEverywhere||this.inModule||this.raise(y.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(t,e,n){return t&&(e.decorators&&e.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),n&&this.resetStartLocationFromNode(n,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const e=[];do{e.push(this.parseDecorator())}while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(y.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(y.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const e=this.state.startLoc;let n;if(this.match(10)){const e=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(e,n);const i=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n),!1===this.getPluginOption("decorators","allowCallParenthesized")&&t.expression!==n&&this.raise(y.DecoratorArgumentsOutsideParentheses,i)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const t=this.startNodeAt(e);t.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),t.property=this.parsePrivateName()):t.property=this.parseIdentifier(!0),t.computed=!1,n=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let n;for(n=0;n<this.state.labels.length;++n){const i=this.state.labels[n];if(null==t.label||i.name===t.label.name){if(null!=i.kind&&(e||1===i.kind))break;if(t.label&&e)break}}if(n===this.state.labels.length){const n=e?"BreakStatement":"ContinueStatement";this.raise(y.IllegalBreakContinue,t,{type:n})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Oe),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Oe);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==e&&this.unexpected(e),this.parseFor(t,null);const n=this.isContextual(100);{const i=this.isContextual(96)&&this.startsAwaitUsing(),s=i||this.isContextual(107)&&this.startsUsingForOf(),r=n&&this.hasFollowingBindingAtom()||s;if(this.match(74)||this.match(75)||r){const n=this.startNode();let r;i?(r="await using",this.recordAwaitIfAllowed()||this.raise(y.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):r=this.state.value,this.next(),this.parseVar(n,!0,r);const o=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&s&&this.raise(y.ForInUsing,o),(a||this.isContextual(102))&&1===o.declarations.length?this.parseForIn(t,o,e):(null!==e&&this.unexpected(e),this.parseFor(t,o))}}const i=this.isContextual(95),s=new ee,r=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(y.ForOfLet,r),null===e&&i&&"Identifier"===r.type&&this.raise(y.ForOfAsync,r)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(r,!0);const n=o?"ForOfStatement":"ForInStatement";return this.checkLVal(r,{type:n}),this.parseForIn(t,r,e)}return this.checkExpressionErrors(s,!0),null!==e&&this.unexpected(e),this.parseFor(t,r)}parseFunctionStatement(t,e,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(y.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];let n;this.expect(5),this.state.labels.push(De),this.scope.enter(0);for(let t;!this.match(8);)if(this.match(61)||this.match(65)){const i=this.match(61);n&&this.finishNode(n,"SwitchCase"),e.push(n=this.startNode()),n.consequent=[],this.next(),i?n.test=this.parseExpression():(t&&this.raise(y.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),t=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(y.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===t.type?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,t.handler||t.finalizer||this.raise(y.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,n=!1){return this.next(),this.parseVar(t,!1,e,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Oe),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(y.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,n,i){for(const t of this.state.labels)t.name===e&&this.raise(y.LabelRedeclaration,n,{labelName:e});const s=(r=this.state.type)>=90&&r<=92?1:this.match(71)?2:null;var r;for(let e=this.state.labels.length-1;e>=0;e--){const n=this.state.labels[e];if(n.statementStart!==t.start)break;n.statementStart=this.state.start,n.kind=s}return this.state.labels.push({name:e,kind:s,statementStart:this.state.start}),t.body=8&i?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,n){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,n){const i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,n,i,s){const r=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(r,e?o:void 0,n,i,s)}parseBlockOrModuleBlockBody(t,e,n,i,s){const r=this.state.strict;let o=!1,a=!1;for(;!this.match(i);){const i=n?this.parseModuleItem():this.parseStatementListItem();if(e&&!a){if(this.isValidDirective(i)){const t=this.stmtToDirective(i);e.push(t),o||"use strict"!==t.value.value||(o=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}t.push(i)}null==s||s.call(this,o),r||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,n){const i=this.match(58);return this.next(),i?null!==n&&this.unexpected(n):t.await=null!==n,"VariableDeclaration"!==e.type||null==e.declarations[0].init||i&&this.options.annexB&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(y.ForInOfLoopInitializer,e,{type:i?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===e.type&&this.raise(y.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,e,n,i=!1){const s=t.declarations=[];for(t.kind=n;;){const t=this.startNode();if(this.parseVarId(t,n),t.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==t.init||i||("Identifier"===t.id.type||e&&(this.match(58)||this.isContextual(102))?"const"!==n&&"using"!==n&&"await using"!==n||this.match(58)||this.isContextual(102)||this.raise(y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n}):this.raise(y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),s.push(this.finishNode(t,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){const n=this.parseBindingAtom();"using"!==e&&"await using"!==e||"ArrayPattern"!==n.type&&"ObjectPattern"!==n.type||this.raise(y.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},"var"===e?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){const n=2&e,i=!!(1&e),s=i&&!(4&e),r=!!(8&e);this.initFunction(t,r),this.match(55)&&(n&&this.raise(y.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Qt(r,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Z(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(new $t(3)),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,n){this.next();const i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return"Identifier"===t.type&&"constructor"===t.name||"StringLiteral"===t.type&&"constructor"===t.value}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:t};let i=[];const s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(y.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}const t=this.startNode();i.length&&(t.decorators=i,this.resetStartLocationFromNode(t,i[0]),i=[]),this.parseClassMember(s,t,n),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(y.DecoratorConstructor,t)}})),this.state.strict=e,this.next(),i.length)throw this.raise(y.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,e){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const i=e;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){const i=e;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,e,n){const i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,n,i)}parseClassMemberWithIsStatic(t,e,n,i){const s=e,r=e,o=e,a=e,l=e,c=s,h=s;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";const e=this.match(138);return this.parseClassElementName(c),e?void this.pushClassPrivateMethod(t,r,!0,!1):(this.isNonstaticConstructor(s)&&this.raise(y.ConstructorIsGenerator,s.key),void this.pushClassMethod(t,s,!0,!1,!1,!1))}const p=!this.state.containsEsc&&Z(this.state.type),u=this.parseClassElementName(e),d=p?u.name:null,f=this.isPrivateName(u),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(h),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(t,r,!1,!1);const i=this.isNonstaticConstructor(s);let o=!1;i&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(y.DuplicateConstructor,u),i&&this.hasPlugin("typescript")&&e.override&&this.raise(y.OverrideOnConstructor,u),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,i,o)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,a):this.pushClassProperty(t,o);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(t,a):this.pushClassProperty(t,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(u);const e=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,e)}else{this.resetPreviousNodeTrailingComments(u),c.kind=d;const e=this.match(138);this.parseClassElementName(s),e?this.pushClassPrivateMethod(t,r,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(y.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else{this.resetPreviousNodeTrailingComments(u);const e=this.eat(55);h.optional&&this.unexpected(m),c.kind="method";const n=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(h),n?this.pushClassPrivateMethod(t,r,e,!0):(this.isNonstaticConstructor(s)&&this.raise(y.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,e,!0,!1,!1))}}parseClassElementName(t){const{type:e,value:n}=this.state;if(132!==e&&133!==e||!t.static||"prototype"!==n||this.raise(y.StaticPrototype,this.state.startLoc),138===e){"constructor"===n&&this.raise(y.ConstructorClassPrivateField,this.state.startLoc);const e=this.parsePrivateName();return t.key=e,e}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var n;this.scope.enter(208);const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const s=e.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),null!=(n=e.decorators)&&n.length&&this.raise(y.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(y.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){const n=this.parseClassPrivateProperty(e);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,e,n){n||e.computed||!this.nameIsConstructor(e.key)||this.raise(y.ConstructorClassField,e.key);const i=this.parseClassAccessorProperty(e);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,e,n,i,s,r){t.body.push(this.parseMethod(e,n,i,s,r,"ClassMethod",!0))}pushClassPrivateMethod(t,e,n,i){const s=this.parseMethod(e,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);const r="get"===s.kind?s.static?6:2:"set"===s.kind?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,r)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Yt()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,n,i=8331){if(Z(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else{if(!n&&e)throw this.raise(y.MissingClassName,this.state.startLoc);t.id=null}}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){const n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),r=s&&this.eatExportStar(t),o=r&&this.maybeParseExportNamespaceSpecifier(t),a=s&&(!o||this.eat(12)),l=i||r;if(r&&!o){if(i&&this.unexpected(),e)throw this.raise(y.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(t);let h;if(i&&s&&!r&&!c&&this.unexpected(null,5),o&&a&&this.unexpected(null,98),l||c){if(h=!1,e)throw this.raise(y.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else h=this.maybeParseExportDeclaration(t);if(l||c||h){var p;const n=t;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(p=n.declaration)?void 0:p.type))this.maybeTakeDecorators(e,n.declaration,n);else if(e)throw this.raise(y.UnsupportedDecoratorExport,t);return this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=t,i=this.parseExportDefaultExpression();if(n.declaration=i,"ClassDeclaration"===i.type)this.maybeTakeDecorators(e,i,n);else if(e)throw this.raise(y.UnsupportedDecoratorExport,t);return this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==e?void 0:e.loc.start);const n=e||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e;null!=(e=t).specifiers||(e.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const e=t;e.specifiers||(e.specifiers=[]);const n="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(n)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(y.UnsupportedDefaultExport,this.state.startLoc);const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(Z(t)){if(95===t&&!this.state.containsEsc||100===t)return!1;if((130===t||129===t)&&!this.state.containsEsc){const{type:t}=this.lookahead();if(Z(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const e=this.nextTokenStart(),n=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||Z(this.state.type)&&n)return!0;if(this.match(65)&&n){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return 26===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(y.UsingDeclarationExport,this.state.startLoc),!0):74===t||75===t||68===t||80===t||this.isLet()||this.isAsyncFunction()}checkExport(t,e,n,i){var s;if(e)if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var r;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||null!=(r=e.extra)&&r.parenthesized||this.raise(y.ExportDefaultFromAsIdentifier,e)}}else if(null!=(s=t.specifiers)&&s.length)for(const e of t.specifiers){const{exported:t}=e,n="Identifier"===t.type?t.name:t.value;if(this.checkDuplicateExports(e,n),!i&&e.local){const{local:t}=e;"Identifier"!==t.type?this.raise(y.ExportBindingIsString,e,{localName:t.value,exportName:n}):(this.checkReservedWord(t.name,t.loc.start,!0,!1),this.scope.checkLocalExport(t))}}else if(t.declaration){const e=t.declaration;if("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type){const{id:n}=e;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(t,n.name)}else if("VariableDeclaration"===e.type)for(const t of e.declarations)this.checkDeclaration(t.id)}}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(const e of t.properties)this.checkDeclaration(e);else if("ArrayPattern"===t.type)for(const e of t.elements)e&&this.checkDeclaration(e);else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&("default"===e?this.raise(y.DuplicateDefaultExport,t):this.raise(y.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){const e=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const i=this.isContextual(130),s=this.match(133),r=this.startNode();r.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(r,s,t,i))}return e}parseExportSpecifier(t,e,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=re(t.local):t.exported||(t.exported=se(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const t=this.parseStringLiteral(this.state.value),e=Fe.exec(t.value);return e&&this.raise(y.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return null!=t.assertions&&t.assertions.some((({key:t,value:e})=>"json"===e.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)))}checkImportReflection(t){const{specifiers:e}=t,n=1===e.length?e[0].type:null;if("source"===t.phase)"ImportDefaultSpecifier"!==n&&this.raise(y.SourcePhaseImportRequiresDefault,e[0].loc.start);else if("defer"===t.phase)"ImportNamespaceSpecifier"!==n&&this.raise(y.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var i;"ImportDefaultSpecifier"!==n&&this.raise(y.ImportReflectionNotBinding,e[0].loc.start),(null==(i=t.assertions)?void 0:i.length)>0&&this.raise(y.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&"ExportAllDeclaration"!==t.type){const{specifiers:e}=t;if(null!=e){const t=e.find((t=>{let e;if("ExportSpecifier"===t.type?e=t.local:"ImportSpecifier"===t.type&&(e=t.imported),void 0!==e)return"Identifier"===e.type?"default"!==e.name:"default"!==e.value}));void 0!==t&&this.raise(y.ImportJSONBindingNotDefault,t.loc.start)}}}isPotentialImportPhase(t){return!t&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(t,e,n,i){e||("module"===n?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;const n=this.parseIdentifier(!0),{type:i}=this.state;return(H(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(t,e,n.name,n.loc.start),null):(this.applyImportPhase(t,e,null),n)}isPrecedingIdImportPhase(t){const{type:e}=this.state;return Z(e)?98!==e||102===this.lookaheadCharCode():12!==e}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),i=n&&this.maybeParseStarImportSpecifier(t);return n&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return null!=t.specifiers||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,n){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,n))}finishImportSpecifier(t,e,n=8201){return this.checkLVal(t.local,{type:e},n),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);const t=[],e=new Set;do{if(this.match(8))break;const n=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(y.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),e.add(i),this.match(133)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(y.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],e=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(y.ModuleAttributeDifferentFromType,n.key),e.has(n.key.name)&&this.raise(y.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),e.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(y.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(y.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else{if(!this.hasPlugin("moduleAttributes"))return;e=[]}!n&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){const n=this.startNodeAtNode(e);return n.local=e,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!H(this.state.type)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(55)){const e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(y.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),i=this.match(133),s=this.isContextual(130);n.imported=this.parseModuleExportName();const r=this.parseImportSpecifier(n,i,"type"===t.importKind||"typeof"===t.importKind,s,void 0);t.specifiers.push(r)}}parseImportSpecifier(t,e,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:n}=t;if(e)throw this.raise(y.ImportBindingIsString,t,{importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=se(n))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}class je extends Re{constructor(t,e,n){super(t=function(t){if(null==t)return Object.assign({},Be);if(null!=t.annexB&&!1!==t.annexB)throw new Error("The `annexB` option can only be set to `false`.");const e={};for(const i of Object.keys(Be)){var n;e[i]=null!=(n=t[i])?n:Be[i]}return e}(t),e),this.options=t,this.initializeScopes(),this.plugins=n,this.filename=t.sourceFilename}getScopeHandler(){return At}parse(){this.enterInitialScopes();const t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}const Ue=function(t){const e={};for(const n of Object.keys(t))e[n]=Y(t[n]);return e}(U);function Ze(t,e){let n=je;const i=new Map;if(null!=t&&t.plugins){for(const e of t.plugins){let t,n;"string"==typeof e?t=e:[t,n]=e,i.has(t)||i.set(t,n||{})}!function(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=t.get("decorators").decoratorsBeforeExport;if(null!=e&&"boolean"!=typeof e)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=t.get("decorators").allowCallParenthesized;if(null!=n&&"boolean"!=typeof n)throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;const n=t.get("pipelineOperator").proposal;if(!Se.includes(n)){const t=Se.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${t}.`)}const i="hash"===(null==(e=t.get("recordAndTuple"))?void 0:e.syntaxType);if("hack"===n){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const e=t.get("pipelineOperator").topicToken;if(!Le.includes(e)){const t=Le.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${t}.`)}if("#"===e&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}else if("smart"===n&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("importAttributes")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==t.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAttributes")&&t.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(t.has("recordAndTuple")){const e=t.get("recordAndTuple").syntaxType;if(null!=e){const t=["hash","bar"];if(!t.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+t.map((t=>`'${t}'`)).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){const t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(t.has("optionalChainingAssign")&&"2023-07"!==t.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(i),n=function(t){const e=[];for(const n of Ne)t.has(n)&&e.push(n);const n=e.join("|");let i=He.get(n);if(!i){i=je;for(const t of e)i=Ie[t](i);He.set(n,i)}return i}(i)}return new n(t,e,i)}const He=new Map}},n={};function i(t){var s=n[t];if(void 0!==s)return s.exports;var r=n[t]={id:t,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.exports}i.m=e,t=[],i.O=(e,n,s,r)=>{if(!n){var o=1/0;for(h=0;h<t.length;h++){for(var[n,s,r]=t[h],a=!0,l=0;l<n.length;l++)(!1&r||o>=r)&&Object.keys(i.O).every((t=>i.O[t](n[l])))?n.splice(l--,1):(a=!1,r<o&&(o=r));if(a){t.splice(h--,1);var c=s();void 0!==c&&(e=c)}}return e}r=r||0;for(var h=t.length;h>0&&t[h-1][2]>r;h--)t[h]=t[h-1];t[h]=[n,s,r]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={745:0,126:0,700:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var s,r,[o,a,l]=n,c=0;if(o.some((e=>0!==t[e]))){for(s in a)i.o(a,s)&&(i.m[s]=a[s]);if(l)var h=l(i)}for(e&&e(n);c<o.length;c++)r=o[c],i.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return i.O(h)},n=self.webpackChunkopenkaarten_frontend_plugin=self.webpackChunkopenkaarten_frontend_plugin||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0,i.O(void 0,[126,700],(()=>i(122))),i.O(void 0,[126,700],(()=>i(465)));var s=i.O(void 0,[126,700],(()=>i(306)));s=i.O(s)})();
//# sourceMappingURL=client.js.map