diff --git a/archesdataviewer/static/vite_build/.vite/manifest.json b/archesdataviewer/static/vite_build/.vite/manifest.json index faad59c..8bd8259 100644 --- a/archesdataviewer/static/vite_build/.vite/manifest.json +++ b/archesdataviewer/static/vite_build/.vite/manifest.json @@ -1,11 +1,18 @@ { "index.html": { - "file": "assets/index-CfkN74xE.js", + "file": "assets/index-B8yxRQuL.js", "name": "index", "src": "index.html", "isEntry": true, "css": [ - "assets/index-DyhztGso.css" + "assets/index-Ccl12rPz.css" + ], + "assets": [ + "assets/Inter-VariableFont_opsz_wght-c8O0ljhh.ttf" ] + }, + "src/assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf": { + "file": "assets/Inter-VariableFont_opsz_wght-c8O0ljhh.ttf", + "src": "src/assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf" } } \ No newline at end of file diff --git a/archesdataviewer/static/vite_build/assets/Inter-VariableFont_opsz_wght-c8O0ljhh.ttf b/archesdataviewer/static/vite_build/assets/Inter-VariableFont_opsz_wght-c8O0ljhh.ttf new file mode 100644 index 0000000..e31b51e Binary files /dev/null and b/archesdataviewer/static/vite_build/assets/Inter-VariableFont_opsz_wght-c8O0ljhh.ttf differ diff --git a/archesdataviewer/static/vite_build/assets/index-B8yxRQuL.js b/archesdataviewer/static/vite_build/assets/index-B8yxRQuL.js new file mode 100644 index 0000000..435d2dc --- /dev/null +++ b/archesdataviewer/static/vite_build/assets/index-B8yxRQuL.js @@ -0,0 +1,31 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(a){if(a.ep)return;a.ep=!0;const c=r(a);fetch(a.href,c)}})();/** +* @vue/shared v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function ka(t,n){const r=new Set(t.split(","));return o=>r.has(o)}const at={},Wi=[],rn=()=>{},Cd=()=>!1,Us=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Aa=t=>t.startsWith("onUpdate:"),gt=Object.assign,Ra=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},Ld=Object.prototype.hasOwnProperty,Ke=(t,n)=>Ld.call(t,n),Ee=Array.isArray,Gi=t=>qs(t)==="[object Map]",Fu=t=>qs(t)==="[object Set]",Me=t=>typeof t=="function",vt=t=>typeof t=="string",Ri=t=>typeof t=="symbol",ct=t=>t!==null&&typeof t=="object",Zu=t=>(ct(t)||Me(t))&&Me(t.then)&&Me(t.catch),Vu=Object.prototype.toString,qs=t=>Vu.call(t),xd=t=>qs(t).slice(8,-1),Hu=t=>qs(t)==="[object Object]",Ma=t=>vt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,$r=ka(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ks=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},Od=/-(\w)/g,tr=Ks(t=>t.replace(Od,(n,r)=>r?r.toUpperCase():"")),Id=/\B([A-Z])/g,ir=Ks(t=>t.replace(Id,"-$1").toLowerCase()),Uu=Ks(t=>t.charAt(0).toUpperCase()+t.slice(1)),Fo=Ks(t=>t?`on${Uu(t)}`:""),si=(t,n)=>!Object.is(t,n),Ts=(t,n)=>{for(let r=0;r{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,writable:o,value:r})},aa=t=>{const n=parseFloat(t);return isNaN(n)?t:n},kd=t=>{const n=vt(t)?Number(t):NaN;return isNaN(n)?t:n};let Cc;const Ku=()=>Cc||(Cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Na(t){if(Ee(t)){const n={};for(let r=0;r{if(r){const o=r.split(Rd);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function gn(t){let n="";if(vt(t))n=t;else if(Ee(t))for(let r=0;rvt(t)?t:t==null?"":Ee(t)||ct(t)&&(t.toString===Vu||!Me(t.toString))?JSON.stringify(t,Gu,2):String(t),Gu=(t,n)=>n&&n.__v_isRef?Gu(t,n.value):Gi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a],c)=>(r[Zo(o,c)+" =>"]=a,r),{})}:Fu(n)?{[`Set(${n.size})`]:[...n.values()].map(r=>Zo(r))}:Ri(n)?Zo(n):ct(n)&&!Ee(n)&&!Hu(n)?String(n):n,Zo=(t,n="")=>{var r;return Ri(t)?`Symbol(${(r=t.description)!=null?r:n})`:t};/** +* @vue/reactivity v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ht;class Ju{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ht,!n&&Ht&&(this.index=(Ht.scopes||(Ht.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const r=Ht;try{return Ht=this,n()}finally{Ht=r}}}on(){Ht=this}off(){Ht=this.parent}stop(n){if(this._active){let r,o;for(r=0,o=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),li()}return this._dirtyLevel>=4}set dirty(n){this._dirtyLevel=n?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let n=ii,r=Li;try{return ii=!0,Li=this,this._runnings++,Lc(this),this.fn()}finally{xc(this),this._runnings--,Li=r,ii=n}}stop(){this.active&&(Lc(this),xc(this),this.onStop&&this.onStop(),this.active=!1)}}function Fd(t){return t.value}function Lc(t){t._trackId++,t._depsLength=0}function xc(t){if(t.deps.length>t._depsLength){for(let n=t._depsLength;n{const r=new Map;return r.cleanup=t,r.computed=n,r},Rs=new WeakMap,xi=Symbol(""),ua=Symbol("");function Vt(t,n,r){if(ii&&Li){let o=Rs.get(t);o||Rs.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=rf(()=>o.delete(r))),tf(Li,a)}}function Bn(t,n,r,o,a,c){const u=Rs.get(t);if(!u)return;let f=[];if(n==="clear")f=[...u.values()];else if(r==="length"&&Ee(t)){const d=Number(o);u.forEach((p,_)=>{(_==="length"||!Ri(_)&&_>=d)&&f.push(p)})}else switch(r!==void 0&&f.push(u.get(r)),n){case"add":Ee(t)?Ma(r)&&f.push(u.get("length")):(f.push(u.get(xi)),Gi(t)&&f.push(u.get(ua)));break;case"delete":Ee(t)||(f.push(u.get(xi)),Gi(t)&&f.push(u.get(ua)));break;case"set":Gi(t)&&f.push(u.get(xi));break}za();for(const d of f)d&&nf(d,4);ja()}function Zd(t,n){const r=Rs.get(t);return r&&r.get(n)}const Vd=ka("__proto__,__v_isRef,__isVue"),sf=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ri)),Oc=Hd();function Hd(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=We(this);for(let c=0,u=this.length;c{t[n]=function(...r){ai(),za();const o=We(this)[n].apply(this,r);return ja(),li(),o}}),t}function Ud(t){Ri(t)||(t=String(t));const n=We(this);return Vt(n,"has",t),n.hasOwnProperty(t)}class of{constructor(n=!1,r=!1){this._isReadonly=n,this._isShallow=r}get(n,r,o){const a=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(a?c?rp:uf:c?cf:lf).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(o)?n:void 0;const u=Ee(n);if(!a){if(u&&Ke(Oc,r))return Reflect.get(Oc,r,o);if(r==="hasOwnProperty")return Ud}const f=Reflect.get(n,r,o);return(Ri(r)?sf.has(r):Vd(r))||(a||Vt(n,"get",r),c)?f:Pt(f)?u&&Ma(r)?f:f.value:ct(f)?a?ff(f):Gs(f):f}}class af extends of{constructor(n=!1){super(!1,n)}set(n,r,o,a){let c=n[r];if(!this._isShallow){const d=Rr(c);if(!Ms(o)&&!Rr(o)&&(c=We(c),o=We(o)),!Ee(n)&&Pt(c)&&!Pt(o))return d?!1:(c.value=o,!0)}const u=Ee(n)&&Ma(r)?Number(r)t,Ws=t=>Reflect.getPrototypeOf(t);function hs(t,n,r=!1,o=!1){t=t.__v_raw;const a=We(t),c=We(n);r||(si(n,c)&&Vt(a,"get",n),Vt(a,"get",c));const{has:u}=Ws(a),f=o?Ba:r?Ha:Mr;if(u.call(a,n))return f(t.get(n));if(u.call(a,c))return f(t.get(c));t!==a&&t.get(n)}function ds(t,n=!1){const r=this.__v_raw,o=We(r),a=We(t);return n||(si(t,a)&&Vt(o,"has",t),Vt(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ps(t,n=!1){return t=t.__v_raw,!n&&Vt(We(t),"iterate",xi),Reflect.get(t,"size",t)}function Ic(t){t=We(t);const n=We(this);return Ws(n).has.call(n,t)||(n.add(t),Bn(n,"add",t,t)),this}function kc(t,n){n=We(n);const r=We(this),{has:o,get:a}=Ws(r);let c=o.call(r,t);c||(t=We(t),c=o.call(r,t));const u=a.call(r,t);return r.set(t,n),c?si(n,u)&&Bn(r,"set",t,n):Bn(r,"add",t,n),this}function Ac(t){const n=We(this),{has:r,get:o}=Ws(n);let a=r.call(n,t);a||(t=We(t),a=r.call(n,t)),o&&o.call(n,t);const c=n.delete(t);return a&&Bn(n,"delete",t,void 0),c}function Rc(){const t=We(this),n=t.size!==0,r=t.clear();return n&&Bn(t,"clear",void 0,void 0),r}function ms(t,n){return function(o,a){const c=this,u=c.__v_raw,f=We(u),d=n?Ba:t?Ha:Mr;return!t&&Vt(f,"iterate",xi),u.forEach((p,_)=>o.call(a,d(p),d(_),c))}}function _s(t,n,r){return function(...o){const a=this.__v_raw,c=We(a),u=Gi(c),f=t==="entries"||t===Symbol.iterator&&u,d=t==="keys"&&u,p=a[t](...o),_=r?Ba:n?Ha:Mr;return!n&&Vt(c,"iterate",d?ua:xi),{next(){const{value:w,done:$}=p.next();return $?{value:w,done:$}:{value:f?[_(w[0]),_(w[1])]:_(w),done:$}},[Symbol.iterator](){return this}}}}function qn(t){return function(...n){return t==="delete"?!1:t==="clear"?void 0:this}}function Jd(){const t={get(c){return hs(this,c)},get size(){return ps(this)},has:ds,add:Ic,set:kc,delete:Ac,clear:Rc,forEach:ms(!1,!1)},n={get(c){return hs(this,c,!1,!0)},get size(){return ps(this)},has:ds,add:Ic,set:kc,delete:Ac,clear:Rc,forEach:ms(!1,!0)},r={get(c){return hs(this,c,!0)},get size(){return ps(this,!0)},has(c){return ds.call(this,c,!0)},add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear"),forEach:ms(!0,!1)},o={get(c){return hs(this,c,!0,!0)},get size(){return ps(this,!0)},has(c){return ds.call(this,c,!0)},add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear"),forEach:ms(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{t[c]=_s(c,!1,!1),r[c]=_s(c,!0,!1),n[c]=_s(c,!1,!0),o[c]=_s(c,!0,!0)}),[t,r,n,o]}const[Yd,Xd,Qd,ep]=Jd();function Fa(t,n){const r=n?t?ep:Qd:t?Xd:Yd;return(o,a,c)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Ke(r,a)&&a in o?r:o,a,c)}const tp={get:Fa(!1,!1)},np={get:Fa(!1,!0)},ip={get:Fa(!0,!1)};const lf=new WeakMap,cf=new WeakMap,uf=new WeakMap,rp=new WeakMap;function sp(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function op(t){return t.__v_skip||!Object.isExtensible(t)?0:sp(xd(t))}function Gs(t){return Rr(t)?t:Za(t,!1,Kd,tp,lf)}function ap(t){return Za(t,!1,Gd,np,cf)}function ff(t){return Za(t,!0,Wd,ip,uf)}function Za(t,n,r,o,a){if(!ct(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const c=a.get(t);if(c)return c;const u=op(t);if(u===0)return t;const f=new Proxy(t,u===2?o:r);return a.set(t,f),f}function Oi(t){return Rr(t)?Oi(t.__v_raw):!!(t&&t.__v_isReactive)}function Rr(t){return!!(t&&t.__v_isReadonly)}function Ms(t){return!!(t&&t.__v_isShallow)}function hf(t){return t?!!t.__v_raw:!1}function We(t){const n=t&&t.__v_raw;return n?We(n):t}function Va(t){return Object.isExtensible(t)&&qu(t,"__v_skip",!0),t}const Mr=t=>ct(t)?Gs(t):t,Ha=t=>ct(t)?ff(t):t;class df{constructor(n,r,o,a){this.getter=n,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Da(()=>n(this._value),()=>Cs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=We(this);return(!n._cacheable||n.effect.dirty)&&si(n._value,n._value=n.effect.run())&&Cs(n,4),pf(n),n.effect._dirtyLevel>=2&&Cs(n,2),n._value}set value(n){this._setter(n)}get _dirty(){return this.effect.dirty}set _dirty(n){this.effect.dirty=n}}function lp(t,n,r=!1){let o,a;const c=Me(t);return c?(o=t,a=rn):(o=t.get,a=t.set),new df(o,a,c||!a,r)}function pf(t){var n;ii&&Li&&(t=We(t),tf(Li,(n=t.dep)!=null?n:t.dep=rf(()=>t.dep=void 0,t instanceof df?t:void 0)))}function Cs(t,n=4,r){t=We(t);const o=t.dep;o&&nf(o,n)}function Pt(t){return!!(t&&t.__v_isRef===!0)}function Et(t){return cp(t,!1)}function cp(t,n){return Pt(t)?t:new up(t,n)}class up{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:We(n),this._value=r?n:Mr(n)}get value(){return pf(this),this._value}set value(n){const r=this.__v_isShallow||Ms(n)||Rr(n);n=r?n:We(n),si(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Mr(n),Cs(this,4))}}function Pe(t){return Pt(t)?t.value:t}const fp={get:(t,n,r)=>Pe(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Pt(a)&&!Pt(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function mf(t){return Oi(t)?t:new Proxy(t,fp)}function hp(t){const n=Ee(t)?new Array(t.length):{};for(const r in t)n[r]=pp(t,r);return n}class dp{constructor(n,r,o){this._object=n,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return Zd(We(this._object),this._key)}}function pp(t,n,r){const o=t[n];return Pt(o)?o:new dp(t,n,r)}/** +* @vue/runtime-core v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ri(t,n,r,o){try{return o?t(...o):t()}catch(a){Js(a,n,r)}}function sn(t,n,r,o){if(Me(t)){const a=ri(t,n,r,o);return a&&Zu(a)&&a.catch(c=>{Js(c,n,r)}),a}if(Ee(t)){const a=[];for(let c=0;c>>1,a=Rt[o],c=Dr(a);cCn&&Rt.splice(n,1)}function vp(t){Ee(t)?Ji.push(...t):(!Xn||!Xn.includes(t,t.allowRecurse?$i+1:$i))&&Ji.push(t),vf()}function Mc(t,n,r=Nr?Cn+1:0){for(;rDr(r)-Dr(o));if(Ji.length=0,Xn){Xn.push(...n);return}for(Xn=n,$i=0;$it.id==null?1/0:t.id,yp=(t,n)=>{const r=Dr(t)-Dr(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function wf(t){fa=!1,Nr=!0,Rt.sort(yp);try{for(Cn=0;Cnvt(x)?x.trim():x)),w&&(a=r.map(aa))}let f,d=o[f=Fo(n)]||o[f=Fo(tr(n))];!d&&c&&(d=o[f=Fo(ir(n))]),d&&sn(d,t,6,a);const p=o[f+"Once"];if(p){if(!t.emitted)t.emitted={};else if(t.emitted[f])return;t.emitted[f]=!0,sn(p,t,6,a)}}function bf(t,n,r=!1){const o=n.emitsCache,a=o.get(t);if(a!==void 0)return a;const c=t.emits;let u={},f=!1;if(!Me(t)){const d=p=>{const _=bf(p,n,!0);_&&(f=!0,gt(u,_))};!r&&n.mixins.length&&n.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!c&&!f?(ct(t)&&o.set(t,null),null):(Ee(c)?c.forEach(d=>u[d]=null):gt(u,c),ct(t)&&o.set(t,u),u)}function Ys(t,n){return!t||!Us(n)?!1:(n=n.slice(2).replace(/Once$/,""),Ke(t,n[0].toLowerCase()+n.slice(1))||Ke(t,ir(n))||Ke(t,n))}let bt=null,Xs=null;function Ns(t){const n=bt;return bt=t,Xs=t&&t.type.__scopeId||null,n}function Ka(t){Xs=t}function Wa(){Xs=null}function qt(t,n=bt,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&qc(-1);const c=Ns(n);let u;try{u=t(...a)}finally{Ns(c),o._d&&qc(1)}return u};return o._n=!0,o._c=!0,o._d=!0,o}function Vo(t){const{type:n,vnode:r,proxy:o,withProxy:a,propsOptions:[c],slots:u,attrs:f,emit:d,render:p,renderCache:_,props:w,data:$,setupState:x,ctx:O,inheritAttrs:C}=t,A=Ns(t);let T,B;try{if(r.shapeFlag&4){const J=a||o,Y=J;T=Tn(p.call(Y,J,_,w,x,$,O)),B=f}else{const J=n;T=Tn(J.length>1?J(w,{attrs:f,slots:u,emit:d}):J(w,null)),B=n.props?f:bp(f)}}catch(J){Lr.length=0,Js(J,t,1),T=Tt(Kt)}let U=T;if(B&&C!==!1){const J=Object.keys(B),{shapeFlag:Y}=U;J.length&&Y&7&&(c&&J.some(Aa)&&(B=Pp(B,c)),U=oi(U,B,!1,!0))}return r.dirs&&(U=oi(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(r.dirs):r.dirs),r.transition&&(U.transition=r.transition),T=U,Ns(A),T}const bp=t=>{let n;for(const r in t)(r==="class"||r==="style"||Us(r))&&((n||(n={}))[r]=t[r]);return n},Pp=(t,n)=>{const r={};for(const o in t)(!Aa(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function $p(t,n,r){const{props:o,children:a,component:c}=t,{props:u,children:f,patchFlag:d}=n,p=c.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?Nc(o,u,p):!!u;if(d&8){const _=n.dynamicProps;for(let w=0;w<_.length;w++){const $=_[w];if(u[$]!==o[$]&&!Ys(p,$))return!0}}}else return(a||f)&&(!f||!f.$stable)?!0:o===u?!1:o?u?Nc(o,u,p):!0:!!u;return!1}function Nc(t,n,r){const o=Object.keys(n);if(o.length!==Object.keys(t).length)return!0;for(let a=0;at.__isSuspense;function Cp(t,n){n&&n.pendingBranch?Ee(t)?n.effects.push(...t):n.effects.push(t):vp(t)}const Lp=Symbol.for("v-scx"),xp=()=>Cr(Lp),gs={};function Yi(t,n,r){return Pf(t,n,r)}function Pf(t,n,{immediate:r,deep:o,flush:a,once:c,onTrack:u,onTrigger:f}=at){if(n&&c){const ce=n;n=(...ye)=>{ce(...ye),Y()}}const d=It,p=ce=>o===!0?ce:Ci(ce,o===!1?1:void 0);let _,w=!1,$=!1;if(Pt(t)?(_=()=>t.value,w=Ms(t)):Oi(t)?(_=()=>p(t),w=!0):Ee(t)?($=!0,w=t.some(ce=>Oi(ce)||Ms(ce)),_=()=>t.map(ce=>{if(Pt(ce))return ce.value;if(Oi(ce))return p(ce);if(Me(ce))return ri(ce,d,2)})):Me(t)?n?_=()=>ri(t,d,2):_=()=>(x&&x(),sn(t,d,3,[O])):_=rn,n&&o){const ce=_;_=()=>Ci(ce())}let x,O=ce=>{x=U.onStop=()=>{ri(ce,d,4),x=U.onStop=void 0}},C;if(no)if(O=rn,n?r&&sn(n,d,3,[_(),$?[]:void 0,O]):_(),a==="sync"){const ce=xp();C=ce.__watcherHandles||(ce.__watcherHandles=[])}else return rn;let A=$?new Array(t.length).fill(gs):gs;const T=()=>{if(!(!U.active||!U.dirty))if(n){const ce=U.run();(o||w||($?ce.some((ye,oe)=>si(ye,A[oe])):si(ce,A)))&&(x&&x(),sn(n,d,3,[ce,A===gs?void 0:$&&A[0]===gs?[]:A,O]),A=ce)}else U.run()};T.allowRecurse=!!n;let B;a==="sync"?B=T:a==="post"?B=()=>Bt(T,d&&d.suspense):(T.pre=!0,d&&(T.id=d.uid),B=()=>qa(T));const U=new Da(_,rn,B),J=Xu(),Y=()=>{U.stop(),J&&Ra(J.effects,U)};return n?r?T():A=U.run():a==="post"?Bt(U.run.bind(U),d&&d.suspense):U.run(),C&&C.push(Y),Y}function Op(t,n,r){const o=this.proxy,a=vt(t)?t.includes(".")?$f(o,t):()=>o[t]:t.bind(o,o);let c;Me(n)?c=n:(c=n.handler,r=n);const u=Br(this),f=Pf(a,c.bind(o),r);return u(),f}function $f(t,n){const r=n.split(".");return()=>{let o=t;for(let a=0;a{Ci(o,n,r)});else if(Hu(t))for(const o in t)Ci(t[o],n,r);return t}function Ip(t,n){if(bt===null)return t;const r=io(bt)||bt.proxy,o=t.dirs||(t.dirs=[]);for(let a=0;a{t.isMounted=!0}),Lf(()=>{t.isUnmounting=!0}),t}const tn=[Function,Array],Sf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tn,onEnter:tn,onAfterEnter:tn,onEnterCancelled:tn,onBeforeLeave:tn,onLeave:tn,onAfterLeave:tn,onLeaveCancelled:tn,onBeforeAppear:tn,onAppear:tn,onAfterAppear:tn,onAppearCancelled:tn},Ap={name:"BaseTransition",props:Sf,setup(t,{slots:n}){const r=vm(),o=kp();return()=>{const a=n.default&&Tf(n.default(),!0);if(!a||!a.length)return;let c=a[0];if(a.length>1){for(const $ of a)if($.type!==Kt){c=$;break}}const u=We(t),{mode:f}=u;if(o.isLeaving)return Ho(c);const d=Dc(c);if(!d)return Ho(c);const p=ha(d,u,o,r);da(d,p);const _=r.subTree,w=_&&Dc(_);if(w&&w.type!==Kt&&!Si(d,w)){const $=ha(w,u,o,r);if(da(w,$),f==="out-in"&&d.type!==Kt)return o.isLeaving=!0,$.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Ho(c);f==="in-out"&&d.type!==Kt&&($.delayLeave=(x,O,C)=>{const A=Ef(o,w);A[String(w.key)]=w,x[Qn]=()=>{O(),x[Qn]=void 0,delete p.delayedLeave},p.delayedLeave=C})}return c}}},Rp=Ap;function Ef(t,n){const{leavingVNodes:r}=t;let o=r.get(n.type);return o||(o=Object.create(null),r.set(n.type,o)),o}function ha(t,n,r,o){const{appear:a,mode:c,persisted:u=!1,onBeforeEnter:f,onEnter:d,onAfterEnter:p,onEnterCancelled:_,onBeforeLeave:w,onLeave:$,onAfterLeave:x,onLeaveCancelled:O,onBeforeAppear:C,onAppear:A,onAfterAppear:T,onAppearCancelled:B}=n,U=String(t.key),J=Ef(r,t),Y=(oe,he)=>{oe&&sn(oe,o,9,he)},ce=(oe,he)=>{const $e=he[1];Y(oe,he),Ee(oe)?oe.every(we=>we.length<=1)&&$e():oe.length<=1&&$e()},ye={mode:c,persisted:u,beforeEnter(oe){let he=f;if(!r.isMounted)if(a)he=C||f;else return;oe[Qn]&&oe[Qn](!0);const $e=J[U];$e&&Si(t,$e)&&$e.el[Qn]&&$e.el[Qn](),Y(he,[oe])},enter(oe){let he=d,$e=p,we=_;if(!r.isMounted)if(a)he=A||d,$e=T||p,we=B||_;else return;let ne=!1;const Se=oe[vs]=be=>{ne||(ne=!0,be?Y(we,[oe]):Y($e,[oe]),ye.delayedLeave&&ye.delayedLeave(),oe[vs]=void 0)};he?ce(he,[oe,Se]):Se()},leave(oe,he){const $e=String(t.key);if(oe[vs]&&oe[vs](!0),r.isUnmounting)return he();Y(w,[oe]);let we=!1;const ne=oe[Qn]=Se=>{we||(we=!0,he(),Se?Y(O,[oe]):Y(x,[oe]),oe[Qn]=void 0,J[$e]===t&&delete J[$e])};J[$e]=t,$?ce($,[oe,ne]):ne()},clone(oe){return ha(oe,n,r,o)}};return ye}function Ho(t){if(Qs(t))return t=oi(t),t.children=null,t}function Dc(t){if(!Qs(t))return t;const{shapeFlag:n,children:r}=t;if(r){if(n&16)return r[0];if(n&32&&Me(r.default))return r.default()}}function da(t,n){t.shapeFlag&6&&t.component?da(t.component.subTree,n):t.shapeFlag&128?(t.ssContent.transition=n.clone(t.ssContent),t.ssFallback.transition=n.clone(t.ssFallback)):t.transition=n}function Tf(t,n=!1,r){let o=[],a=0;for(let c=0;c1)for(let c=0;c!!t.type.__asyncLoader,Qs=t=>t.type.__isKeepAlive;function Mp(t,n){Cf(t,"a",n)}function Np(t,n){Cf(t,"da",n)}function Cf(t,n,r=It){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(eo(n,o,r),r){let a=r.parent;for(;a&&a.parent;)Qs(a.parent.vnode)&&Dp(o,n,r,a),a=a.parent}}function Dp(t,n,r,o){const a=eo(n,t,o,!0);xf(()=>{Ra(o[n],a)},r)}function eo(t,n,r=It,o=!1){if(r){const a=r[t]||(r[t]=[]),c=n.__weh||(n.__weh=(...u)=>{if(r.isUnmounted)return;ai();const f=Br(r),d=sn(n,r,t,u);return f(),li(),d});return o?a.unshift(c):a.push(c),c}}const Fn=t=>(n,r=It)=>(!no||t==="sp")&&eo(t,(...o)=>n(...o),r),zp=Fn("bm"),Ga=Fn("m"),jp=Fn("bu"),Bp=Fn("u"),Lf=Fn("bum"),xf=Fn("um"),Fp=Fn("sp"),Zp=Fn("rtg"),Vp=Fn("rtc");function Hp(t,n=It){eo("ec",t,n)}function Er(t,n,r,o){let a;const c=r;if(Ee(t)||vt(t)){a=new Array(t.length);for(let u=0,f=t.length;un(u,f,void 0,c));else{const u=Object.keys(t);a=new Array(u.length);for(let f=0,d=u.length;f{const c=o.fn(...a);return c&&(c.key=o.key),c}:o.fn)}return t}function Ln(t,n,r={},o,a){if(bt.isCE||bt.parent&&Sr(bt.parent)&&bt.parent.isCE)return n!=="default"&&(r.name=n),Tt("slot",r,o);let c=t[n];c&&c._c&&(c._d=!1),xe();const u=c&&If(c(r)),f=zt(_t,{key:r.key||u&&u.key||`_${n}`},u||[],u&&t._===1?64:-2);return!a&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),c&&c._c&&(c._d=!0),f}function If(t){return t.some(n=>zs(n)?!(n.type===Kt||n.type===_t&&!If(n.children)):!0)?t:null}const pa=t=>t?qf(t)?io(t)||t.proxy:pa(t.parent):null,Tr=gt(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=>pa(t.parent),$root:t=>pa(t.root),$emit:t=>t.emit,$options:t=>Ja(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,qa(t.update)}),$nextTick:t=>t.n||(t.n=gf.bind(t.proxy)),$watch:t=>Op.bind(t)}),Uo=(t,n)=>t!==at&&!t.__isScriptSetup&&Ke(t,n),Up={get({_:t},n){if(n==="__v_skip")return!0;const{ctx:r,setupState:o,data:a,props:c,accessCache:u,type:f,appContext:d}=t;let p;if(n[0]!=="$"){const x=u[n];if(x!==void 0)switch(x){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return c[n]}else{if(Uo(o,n))return u[n]=1,o[n];if(a!==at&&Ke(a,n))return u[n]=2,a[n];if((p=t.propsOptions[0])&&Ke(p,n))return u[n]=3,c[n];if(r!==at&&Ke(r,n))return u[n]=4,r[n];ma&&(u[n]=0)}}const _=Tr[n];let w,$;if(_)return n==="$attrs"&&Vt(t.attrs,"get",""),_(t);if((w=f.__cssModules)&&(w=w[n]))return w;if(r!==at&&Ke(r,n))return u[n]=4,r[n];if($=d.config.globalProperties,Ke($,n))return $[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:c}=t;return Uo(a,n)?(a[n]=r,!0):o!==at&&Ke(o,n)?(o[n]=r,!0):Ke(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(c[n]=r,!0)},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:a,propsOptions:c}},u){let f;return!!r[u]||t!==at&&Ke(t,u)||Uo(n,u)||(f=c[0])&&Ke(f,u)||Ke(o,u)||Ke(Tr,u)||Ke(a.config.globalProperties,u)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:Ke(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};function zc(t){return Ee(t)?t.reduce((n,r)=>(n[r]=null,n),{}):t}let ma=!0;function qp(t){const n=Ja(t),r=t.proxy,o=t.ctx;ma=!1,n.beforeCreate&&jc(n.beforeCreate,t,"bc");const{data:a,computed:c,methods:u,watch:f,provide:d,inject:p,created:_,beforeMount:w,mounted:$,beforeUpdate:x,updated:O,activated:C,deactivated:A,beforeDestroy:T,beforeUnmount:B,destroyed:U,unmounted:J,render:Y,renderTracked:ce,renderTriggered:ye,errorCaptured:oe,serverPrefetch:he,expose:$e,inheritAttrs:we,components:ne,directives:Se,filters:be}=n;if(p&&Kp(p,o,null),u)for(const De in u){const le=u[De];Me(le)&&(o[De]=le.bind(r))}if(a){const De=a.call(r,r);ct(De)&&(t.data=Gs(De))}if(ma=!0,c)for(const De in c){const le=c[De],yt=Me(le)?le.bind(r,r):Me(le.get)?le.get.bind(r,r):rn,q=!Me(le)&&Me(le.set)?le.set.bind(r):rn,k=Qa({get:yt,set:q});Object.defineProperty(o,De,{enumerable:!0,configurable:!0,get:()=>k.value,set:K=>k.value=K})}if(f)for(const De in f)kf(f[De],o,r,De);if(d){const De=Me(d)?d.call(r):d;Reflect.ownKeys(De).forEach(le=>{Qp(le,De[le])})}_&&jc(_,t,"c");function ge(De,le){Ee(le)?le.forEach(yt=>De(yt.bind(r))):le&&De(le.bind(r))}if(ge(zp,w),ge(Ga,$),ge(jp,x),ge(Bp,O),ge(Mp,C),ge(Np,A),ge(Hp,oe),ge(Vp,ce),ge(Zp,ye),ge(Lf,B),ge(xf,J),ge(Fp,he),Ee($e))if($e.length){const De=t.exposed||(t.exposed={});$e.forEach(le=>{Object.defineProperty(De,le,{get:()=>r[le],set:yt=>r[le]=yt})})}else t.exposed||(t.exposed={});Y&&t.render===rn&&(t.render=Y),we!=null&&(t.inheritAttrs=we),ne&&(t.components=ne),Se&&(t.directives=Se)}function Kp(t,n,r=rn){Ee(t)&&(t=_a(t));for(const o in t){const a=t[o];let c;ct(a)?"default"in a?c=Cr(a.from||o,a.default,!0):c=Cr(a.from||o):c=Cr(a),Pt(c)?Object.defineProperty(n,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:u=>c.value=u}):n[o]=c}}function jc(t,n,r){sn(Ee(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function kf(t,n,r,o){const a=o.includes(".")?$f(r,o):()=>r[o];if(vt(t)){const c=n[t];Me(c)&&Yi(a,c)}else if(Me(t))Yi(a,t.bind(r));else if(ct(t))if(Ee(t))t.forEach(c=>kf(c,n,r,o));else{const c=Me(t.handler)?t.handler.bind(r):n[t.handler];Me(c)&&Yi(a,c,t)}}function Ja(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:c,config:{optionMergeStrategies:u}}=t.appContext,f=c.get(n);let d;return f?d=f:!a.length&&!r&&!o?d=n:(d={},a.length&&a.forEach(p=>Ds(d,p,u,!0)),Ds(d,n,u)),ct(n)&&c.set(n,d),d}function Ds(t,n,r,o=!1){const{mixins:a,extends:c}=n;c&&Ds(t,c,r,!0),a&&a.forEach(u=>Ds(t,u,r,!0));for(const u in n)if(!(o&&u==="expose")){const f=Wp[u]||r&&r[u];t[u]=f?f(t[u],n[u]):n[u]}return t}const Wp={data:Bc,props:Fc,emits:Fc,methods:br,computed:br,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:br,directives:br,watch:Jp,provide:Bc,inject:Gp};function Bc(t,n){return n?t?function(){return gt(Me(t)?t.call(this,this):t,Me(n)?n.call(this,this):n)}:n:t}function Gp(t,n){return br(_a(t),_a(n))}function _a(t){if(Ee(t)){const n={};for(let r=0;r1)return r&&Me(n)?n.call(o&&o.proxy):n}}function em(){return!!(It||bt||Xi)}const Rf={},Mf=()=>Object.create(Rf),Nf=t=>Object.getPrototypeOf(t)===Rf;function tm(t,n,r,o=!1){const a={},c=Mf();t.propsDefaults=Object.create(null),Df(t,n,a,c);for(const u in t.propsOptions[0])u in a||(a[u]=void 0);r?t.props=o?a:ap(a):t.type.props?t.props=a:t.props=c,t.attrs=c}function nm(t,n,r,o){const{props:a,attrs:c,vnode:{patchFlag:u}}=t,f=We(a),[d]=t.propsOptions;let p=!1;if((o||u>0)&&!(u&16)){if(u&8){const _=t.vnode.dynamicProps;for(let w=0;w<_.length;w++){let $=_[w];if(Ys(t.emitsOptions,$))continue;const x=n[$];if(d)if(Ke(c,$))x!==c[$]&&(c[$]=x,p=!0);else{const O=tr($);a[O]=ga(d,f,O,x,t,!1)}else x!==c[$]&&(c[$]=x,p=!0)}}}else{Df(t,n,a,c)&&(p=!0);let _;for(const w in f)(!n||!Ke(n,w)&&((_=ir(w))===w||!Ke(n,_)))&&(d?r&&(r[w]!==void 0||r[_]!==void 0)&&(a[w]=ga(d,f,w,void 0,t,!0)):delete a[w]);if(c!==f)for(const w in c)(!n||!Ke(n,w))&&(delete c[w],p=!0)}p&&Bn(t.attrs,"set","")}function Df(t,n,r,o){const[a,c]=t.propsOptions;let u=!1,f;if(n)for(let d in n){if($r(d))continue;const p=n[d];let _;a&&Ke(a,_=tr(d))?!c||!c.includes(_)?r[_]=p:(f||(f={}))[_]=p:Ys(t.emitsOptions,d)||(!(d in o)||p!==o[d])&&(o[d]=p,u=!0)}if(c){const d=We(r),p=f||at;for(let _=0;_{d=!0;const[$,x]=zf(w,n,!0);gt(u,$),x&&f.push(...x)};!r&&n.mixins.length&&n.mixins.forEach(_),t.extends&&_(t.extends),t.mixins&&t.mixins.forEach(_)}if(!c&&!d)return ct(t)&&o.set(t,Wi),Wi;if(Ee(c))for(let _=0;_-1,x[1]=C<0||O-1||Ke(x,"default"))&&f.push(w)}}}const p=[u,f];return ct(t)&&o.set(t,p),p}function Zc(t){return t[0]!=="$"&&!$r(t)}function Vc(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Hc(t,n){return Vc(t)===Vc(n)}function Uc(t,n){return Ee(n)?n.findIndex(r=>Hc(r,t)):Me(n)&&Hc(n,t)?0:-1}const jf=t=>t[0]==="_"||t==="$stable",Ya=t=>Ee(t)?t.map(Tn):[Tn(t)],im=(t,n,r)=>{if(n._n)return n;const o=qt((...a)=>Ya(n(...a)),r);return o._c=!1,o},Bf=(t,n,r)=>{const o=t._ctx;for(const a in t){if(jf(a))continue;const c=t[a];if(Me(c))n[a]=im(a,c,o);else if(c!=null){const u=Ya(c);n[a]=()=>u}}},Ff=(t,n)=>{const r=Ya(n);t.slots.default=()=>r},rm=(t,n)=>{const r=t.slots=Mf();if(t.vnode.shapeFlag&32){const o=n._;o?(gt(r,n),qu(r,"_",o,!0)):Bf(n,r)}else n&&Ff(t,n)},sm=(t,n,r)=>{const{vnode:o,slots:a}=t;let c=!0,u=at;if(o.shapeFlag&32){const f=n._;f?r&&f===1?c=!1:(gt(a,n),!r&&f===1&&delete a._):(c=!n.$stable,Bf(n,a)),u=n}else n&&(Ff(t,n),u={default:1});if(c)for(const f in a)!jf(f)&&u[f]==null&&delete a[f]};function va(t,n,r,o,a=!1){if(Ee(t)){t.forEach(($,x)=>va($,n&&(Ee(n)?n[x]:n),r,o,a));return}if(Sr(o)&&!a)return;const c=o.shapeFlag&4?io(o.component)||o.component.proxy:o.el,u=a?null:c,{i:f,r:d}=t,p=n&&n.r,_=f.refs===at?f.refs={}:f.refs,w=f.setupState;if(p!=null&&p!==d&&(vt(p)?(_[p]=null,Ke(w,p)&&(w[p]=null)):Pt(p)&&(p.value=null)),Me(d))ri(d,f,12,[u,_]);else{const $=vt(d),x=Pt(d);if($||x){const O=()=>{if(t.f){const C=$?Ke(w,d)?w[d]:_[d]:d.value;a?Ee(C)&&Ra(C,c):Ee(C)?C.includes(c)||C.push(c):$?(_[d]=[c],Ke(w,d)&&(w[d]=_[d])):(d.value=[c],t.k&&(_[t.k]=d.value))}else $?(_[d]=u,Ke(w,d)&&(w[d]=u)):x&&(d.value=u,t.k&&(_[t.k]=u))};u?(O.id=-1,Bt(O,r)):O()}}}const Bt=Cp;function om(t){return am(t)}function am(t,n){const r=Ku();r.__VUE__=!0;const{insert:o,remove:a,patchProp:c,createElement:u,createText:f,createComment:d,setText:p,setElementText:_,parentNode:w,nextSibling:$,setScopeId:x=rn,insertStaticContent:O}=t,C=(g,b,R,F=null,W=null,ee=null,re=void 0,X=null,te=!!b.dynamicChildren)=>{if(g===b)return;g&&!Si(g,b)&&(F=se(g),K(g,W,ee,!0),g=null),b.patchFlag===-2&&(te=!1,b.dynamicChildren=null);const{type:G,ref:ie,shapeFlag:pe}=b;switch(G){case to:A(g,b,R,F);break;case Kt:T(g,b,R,F);break;case Ko:g==null&&B(b,R,F,re);break;case _t:ne(g,b,R,F,W,ee,re,X,te);break;default:pe&1?Y(g,b,R,F,W,ee,re,X,te):pe&6?Se(g,b,R,F,W,ee,re,X,te):(pe&64||pe&128)&&G.process(g,b,R,F,W,ee,re,X,te,Ce)}ie!=null&&W&&va(ie,g&&g.ref,ee,b||g,!b)},A=(g,b,R,F)=>{if(g==null)o(b.el=f(b.children),R,F);else{const W=b.el=g.el;b.children!==g.children&&p(W,b.children)}},T=(g,b,R,F)=>{g==null?o(b.el=d(b.children||""),R,F):b.el=g.el},B=(g,b,R,F)=>{[g.el,g.anchor]=O(g.children,b,R,F,g.el,g.anchor)},U=({el:g,anchor:b},R,F)=>{let W;for(;g&&g!==b;)W=$(g),o(g,R,F),g=W;o(b,R,F)},J=({el:g,anchor:b})=>{let R;for(;g&&g!==b;)R=$(g),a(g),g=R;a(b)},Y=(g,b,R,F,W,ee,re,X,te)=>{b.type==="svg"?re="svg":b.type==="math"&&(re="mathml"),g==null?ce(b,R,F,W,ee,re,X,te):he(g,b,W,ee,re,X,te)},ce=(g,b,R,F,W,ee,re,X)=>{let te,G;const{props:ie,shapeFlag:pe,transition:de,dirs:ve}=g;if(te=g.el=u(g.type,ee,ie&&ie.is,ie),pe&8?_(te,g.children):pe&16&&oe(g.children,te,null,F,W,qo(g,ee),re,X),ve&&gi(g,null,F,"created"),ye(te,g,g.scopeId,re,F),ie){for(const He in ie)He!=="value"&&!$r(He)&&c(te,He,null,ie[He],ee,g.children,F,W,N);"value"in ie&&c(te,"value",null,ie.value,ee),(G=ie.onVnodeBeforeMount)&&En(G,F,g)}ve&&gi(g,null,F,"beforeMount");const Ie=lm(W,de);Ie&&de.beforeEnter(te),o(te,b,R),((G=ie&&ie.onVnodeMounted)||Ie||ve)&&Bt(()=>{G&&En(G,F,g),Ie&&de.enter(te),ve&&gi(g,null,F,"mounted")},W)},ye=(g,b,R,F,W)=>{if(R&&x(g,R),F)for(let ee=0;ee{for(let G=te;G{const X=b.el=g.el;let{patchFlag:te,dynamicChildren:G,dirs:ie}=b;te|=g.patchFlag&16;const pe=g.props||at,de=b.props||at;let ve;if(R&&vi(R,!1),(ve=de.onVnodeBeforeUpdate)&&En(ve,R,b,g),ie&&gi(b,g,R,"beforeUpdate"),R&&vi(R,!0),G?$e(g.dynamicChildren,G,X,R,F,qo(b,W),ee):re||le(g,b,X,null,R,F,qo(b,W),ee,!1),te>0){if(te&16)we(X,b,pe,de,R,F,W);else if(te&2&&pe.class!==de.class&&c(X,"class",null,de.class,W),te&4&&c(X,"style",pe.style,de.style,W),te&8){const Ie=b.dynamicProps;for(let He=0;He{ve&&En(ve,R,b,g),ie&&gi(b,g,R,"updated")},F)},$e=(g,b,R,F,W,ee,re)=>{for(let X=0;X{if(R!==F){if(R!==at)for(const X in R)!$r(X)&&!(X in F)&&c(g,X,R[X],null,re,b.children,W,ee,N);for(const X in F){if($r(X))continue;const te=F[X],G=R[X];te!==G&&X!=="value"&&c(g,X,G,te,re,b.children,W,ee,N)}"value"in F&&c(g,"value",R.value,F.value,re)}},ne=(g,b,R,F,W,ee,re,X,te)=>{const G=b.el=g?g.el:f(""),ie=b.anchor=g?g.anchor:f("");let{patchFlag:pe,dynamicChildren:de,slotScopeIds:ve}=b;ve&&(X=X?X.concat(ve):ve),g==null?(o(G,R,F),o(ie,R,F),oe(b.children||[],R,ie,W,ee,re,X,te)):pe>0&&pe&64&&de&&g.dynamicChildren?($e(g.dynamicChildren,de,R,W,ee,re,X),(b.key!=null||W&&b===W.subTree)&&Zf(g,b,!0)):le(g,b,R,ie,W,ee,re,X,te)},Se=(g,b,R,F,W,ee,re,X,te)=>{b.slotScopeIds=X,g==null?b.shapeFlag&512?W.ctx.activate(b,R,F,re,te):be(b,R,F,W,ee,re,te):ot(g,b,te)},be=(g,b,R,F,W,ee,re)=>{const X=g.component=gm(g,F,W);if(Qs(g)&&(X.ctx.renderer=Ce),ym(X),X.asyncDep){if(W&&W.registerDep(X,ge),!g.el){const te=X.subTree=Tt(Kt);T(null,te,b,R)}}else ge(X,g,b,R,W,ee,re)},ot=(g,b,R)=>{const F=b.component=g.component;if($p(g,b,R))if(F.asyncDep&&!F.asyncResolved){De(F,b,R);return}else F.next=b,gp(F.update),F.effect.dirty=!0,F.update();else b.el=g.el,F.vnode=b},ge=(g,b,R,F,W,ee,re)=>{const X=()=>{if(g.isMounted){let{next:ie,bu:pe,u:de,parent:ve,vnode:Ie}=g;{const an=Vf(g);if(an){ie&&(ie.el=Ie.el,De(g,ie,re)),an.asyncDep.then(()=>{g.isUnmounted||X()});return}}let He=ie,ze;vi(g,!1),ie?(ie.el=Ie.el,De(g,ie,re)):ie=Ie,pe&&Ts(pe),(ze=ie.props&&ie.props.onVnodeBeforeUpdate)&&En(ze,ve,ie,Ie),vi(g,!0);const Ye=Vo(g),Ct=g.subTree;g.subTree=Ye,C(Ct,Ye,w(Ct.el),se(Ct),g,W,ee),ie.el=Ye.el,He===null&&Sp(g,Ye.el),de&&Bt(de,W),(ze=ie.props&&ie.props.onVnodeUpdated)&&Bt(()=>En(ze,ve,ie,Ie),W)}else{let ie;const{el:pe,props:de}=b,{bm:ve,m:Ie,parent:He}=g,ze=Sr(b);if(vi(g,!1),ve&&Ts(ve),!ze&&(ie=de&&de.onVnodeBeforeMount)&&En(ie,He,b),vi(g,!0),pe&&z){const Ye=()=>{g.subTree=Vo(g),z(pe,g.subTree,g,W,null)};ze?b.type.__asyncLoader().then(()=>!g.isUnmounted&&Ye()):Ye()}else{const Ye=g.subTree=Vo(g);C(null,Ye,R,F,g,W,ee),b.el=Ye.el}if(Ie&&Bt(Ie,W),!ze&&(ie=de&&de.onVnodeMounted)){const Ye=b;Bt(()=>En(ie,He,Ye),W)}(b.shapeFlag&256||He&&Sr(He.vnode)&&He.vnode.shapeFlag&256)&&g.a&&Bt(g.a,W),g.isMounted=!0,b=R=F=null}},te=g.effect=new Da(X,rn,()=>qa(G),g.scope),G=g.update=()=>{te.dirty&&te.run()};G.id=g.uid,vi(g,!0),G()},De=(g,b,R)=>{b.component=g;const F=g.vnode.props;g.vnode=b,g.next=null,nm(g,b.props,F,R),sm(g,b.children,R),ai(),Mc(g),li()},le=(g,b,R,F,W,ee,re,X,te=!1)=>{const G=g&&g.children,ie=g?g.shapeFlag:0,pe=b.children,{patchFlag:de,shapeFlag:ve}=b;if(de>0){if(de&128){q(G,pe,R,F,W,ee,re,X,te);return}else if(de&256){yt(G,pe,R,F,W,ee,re,X,te);return}}ve&8?(ie&16&&N(G,W,ee),pe!==G&&_(R,pe)):ie&16?ve&16?q(G,pe,R,F,W,ee,re,X,te):N(G,W,ee,!0):(ie&8&&_(R,""),ve&16&&oe(pe,R,F,W,ee,re,X,te))},yt=(g,b,R,F,W,ee,re,X,te)=>{g=g||Wi,b=b||Wi;const G=g.length,ie=b.length,pe=Math.min(G,ie);let de;for(de=0;deie?N(g,W,ee,!0,!1,pe):oe(b,R,F,W,ee,re,X,te,pe)},q=(g,b,R,F,W,ee,re,X,te)=>{let G=0;const ie=b.length;let pe=g.length-1,de=ie-1;for(;G<=pe&&G<=de;){const ve=g[G],Ie=b[G]=te?ei(b[G]):Tn(b[G]);if(Si(ve,Ie))C(ve,Ie,R,null,W,ee,re,X,te);else break;G++}for(;G<=pe&&G<=de;){const ve=g[pe],Ie=b[de]=te?ei(b[de]):Tn(b[de]);if(Si(ve,Ie))C(ve,Ie,R,null,W,ee,re,X,te);else break;pe--,de--}if(G>pe){if(G<=de){const ve=de+1,Ie=vede)for(;G<=pe;)K(g[G],W,ee,!0),G++;else{const ve=G,Ie=G,He=new Map;for(G=Ie;G<=de;G++){const $t=b[G]=te?ei(b[G]):Tn(b[G]);$t.key!=null&&He.set($t.key,G)}let ze,Ye=0;const Ct=de-Ie+1;let an=!1,ln=0;const Wt=new Array(Ct);for(G=0;G=Ct){K($t,W,ee,!0);continue}let et;if($t.key!=null)et=He.get($t.key);else for(ze=Ie;ze<=de;ze++)if(Wt[ze-Ie]===0&&Si($t,b[ze])){et=ze;break}et===void 0?K($t,W,ee,!0):(Wt[et-Ie]=G+1,et>=ln?ln=et:an=!0,C($t,b[et],R,null,W,ee,re,X,te),Ye++)}const fi=an?cm(Wt):Wi;for(ze=fi.length-1,G=Ct-1;G>=0;G--){const $t=Ie+G,et=b[$t],Mi=$t+1{const{el:ee,type:re,transition:X,children:te,shapeFlag:G}=g;if(G&6){k(g.component.subTree,b,R,F);return}if(G&128){g.suspense.move(b,R,F);return}if(G&64){re.move(g,b,R,Ce);return}if(re===_t){o(ee,b,R);for(let pe=0;peX.enter(ee),W);else{const{leave:pe,delayLeave:de,afterLeave:ve}=X,Ie=()=>o(ee,b,R),He=()=>{pe(ee,()=>{Ie(),ve&&ve()})};de?de(ee,Ie,He):He()}else o(ee,b,R)},K=(g,b,R,F=!1,W=!1)=>{const{type:ee,props:re,ref:X,children:te,dynamicChildren:G,shapeFlag:ie,patchFlag:pe,dirs:de}=g;if(X!=null&&va(X,null,R,g,!0),ie&256){b.ctx.deactivate(g);return}const ve=ie&1&&de,Ie=!Sr(g);let He;if(Ie&&(He=re&&re.onVnodeBeforeUnmount)&&En(He,b,g),ie&6)P(g.component,R,F);else{if(ie&128){g.suspense.unmount(R,F);return}ve&&gi(g,null,b,"beforeUnmount"),ie&64?g.type.remove(g,b,R,W,Ce,F):G&&(ee!==_t||pe>0&&pe&64)?N(G,b,R,!1,!0):(ee===_t&&pe&384||!W&&ie&16)&&N(te,b,R),F&&D(g)}(Ie&&(He=re&&re.onVnodeUnmounted)||ve)&&Bt(()=>{He&&En(He,b,g),ve&&gi(g,null,b,"unmounted")},R)},D=g=>{const{type:b,el:R,anchor:F,transition:W}=g;if(b===_t){y(R,F);return}if(b===Ko){J(g);return}const ee=()=>{a(R),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(g.shapeFlag&1&&W&&!W.persisted){const{leave:re,delayLeave:X}=W,te=()=>re(R,ee);X?X(g.el,ee,te):te()}else ee()},y=(g,b)=>{let R;for(;g!==b;)R=$(g),a(g),g=R;a(b)},P=(g,b,R)=>{const{bum:F,scope:W,update:ee,subTree:re,um:X}=g;F&&Ts(F),W.stop(),ee&&(ee.active=!1,K(re,g,b,R)),X&&Bt(X,b),Bt(()=>{g.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},N=(g,b,R,F=!1,W=!1,ee=0)=>{for(let re=ee;reg.shapeFlag&6?se(g.component.subTree):g.shapeFlag&128?g.suspense.next():$(g.anchor||g.el);let ae=!1;const ke=(g,b,R)=>{g==null?b._vnode&&K(b._vnode,null,null,!0):C(b._vnode||null,g,b,null,null,null,R),ae||(ae=!0,Mc(),yf(),ae=!1),b._vnode=g},Ce={p:C,um:K,m:k,r:D,mt:be,mc:oe,pc:le,pbc:$e,n:se,o:t};let M,z;return{render:ke,hydrate:M,createApp:Xp(ke,M)}}function qo({type:t,props:n},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:r}function vi({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function lm(t,n){return(!t||t&&!t.pendingBranch)&&n&&!n.persisted}function Zf(t,n,r=!1){const o=t.children,a=n.children;if(Ee(o)&&Ee(a))for(let c=0;c>1,t[r[f]]0&&(n[o]=r[c-1]),r[c]=o)}}for(c=r.length,u=r[c-1];c-- >0;)r[c]=u,u=n[u];return r}function Vf(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:Vf(n)}const um=t=>t.__isTeleport,_t=Symbol.for("v-fgt"),to=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),Ko=Symbol.for("v-stc"),Lr=[];let yn=null;function xe(t=!1){Lr.push(yn=t?null:[])}function fm(){Lr.pop(),yn=Lr[Lr.length-1]||null}let zr=1;function qc(t){zr+=t}function Hf(t){return t.dynamicChildren=zr>0?yn||Wi:null,fm(),zr>0&&yn&&yn.push(t),t}function Je(t,n,r,o,a,c){return Hf(Le(t,n,r,o,a,c,!0))}function zt(t,n,r,o,a){return Hf(Tt(t,n,r,o,a,!0))}function zs(t){return t?t.__v_isVNode===!0:!1}function Si(t,n){return t.type===n.type&&t.key===n.key}const Uf=({key:t})=>t??null,Ls=({ref:t,ref_key:n,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?vt(t)||Pt(t)||Me(t)?{i:bt,r:t,k:n,f:!!r}:t:null);function Le(t,n=null,r=null,o=0,a=null,c=t===_t?0:1,u=!1,f=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&Uf(n),ref:n&&Ls(n),scopeId:Xs,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:bt};return f?(Xa(d,r),c&128&&t.normalize(d)):r&&(d.shapeFlag|=vt(r)?8:16),zr>0&&!u&&yn&&(d.patchFlag>0||c&6)&&d.patchFlag!==32&&yn.push(d),d}const Tt=hm;function hm(t,n=null,r=null,o=0,a=null,c=!1){if((!t||t===Ep)&&(t=Kt),zs(t)){const f=oi(t,n,!0);return r&&Xa(f,r),zr>0&&!c&&yn&&(f.shapeFlag&6?yn[yn.indexOf(t)]=f:yn.push(f)),f.patchFlag|=-2,f}if($m(t)&&(t=t.__vccOpts),n){n=dm(n);let{class:f,style:d}=n;f&&!vt(f)&&(n.class=gn(f)),ct(d)&&(hf(d)&&!Ee(d)&&(d=gt({},d)),n.style=Na(d))}const u=vt(t)?1:Tp(t)?128:um(t)?64:ct(t)?4:Me(t)?2:0;return Le(t,n,r,o,a,u,c,!0)}function dm(t){return t?hf(t)||Nf(t)?gt({},t):t:null}function oi(t,n,r=!1,o=!1){const{props:a,ref:c,patchFlag:u,children:f,transition:d}=t,p=n?pm(a||{},n):a,_={__v_isVNode:!0,__v_skip:!0,type:t.type,props:p,key:p&&Uf(p),ref:n&&n.ref?r&&c?Ee(c)?c.concat(Ls(n)):[c,Ls(n)]:Ls(n):c,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==_t?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&oi(t.ssContent),ssFallback:t.ssFallback&&oi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&o&&(_.transition=d.clone(_)),_}function Ii(t=" ",n=0){return Tt(to,null,t,n)}function Mt(t="",n=!1){return n?(xe(),zt(Kt,null,t)):Tt(Kt,null,t)}function Tn(t){return t==null||typeof t=="boolean"?Tt(Kt):Ee(t)?Tt(_t,null,t.slice()):typeof t=="object"?ei(t):Tt(to,null,String(t))}function ei(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:oi(t)}function Xa(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Ee(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),Xa(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!Nf(n)?n._ctx=bt:a===3&&bt&&(bt.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Me(n)?(n={default:n,_ctx:bt},r=32):(n=String(n),o&64?(r=16,n=[Ii(n)]):r=8);t.children=n,t.shapeFlag|=r}function pm(...t){const n={};for(let r=0;rIt||bt;let js,ya;{const t=Ku(),n=(r,o)=>{let a;return(a=t[r])||(a=t[r]=[]),a.push(o),c=>{a.length>1?a.forEach(u=>u(c)):a[0](c)}};js=n("__VUE_INSTANCE_SETTERS__",r=>It=r),ya=n("__VUE_SSR_SETTERS__",r=>no=r)}const Br=t=>{const n=It;return js(t),t.scope.on(),()=>{t.scope.off(),js(n)}},Kc=()=>{It&&It.scope.off(),js(null)};function qf(t){return t.vnode.shapeFlag&4}let no=!1;function ym(t,n=!1){n&&ya(n);const{props:r,children:o}=t.vnode,a=qf(t);tm(t,r,a,n),rm(t,o);const c=a?wm(t,n):void 0;return n&&ya(!1),c}function wm(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Up);const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Pm(t):null,c=Br(t);ai();const u=ri(o,t,0,[t.props,a]);if(li(),c(),Zu(u)){if(u.then(Kc,Kc),n)return u.then(f=>{Wc(t,f,n)}).catch(f=>{Js(f,t,0)});t.asyncDep=u}else Wc(t,u,n)}else Kf(t,n)}function Wc(t,n,r){Me(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:ct(n)&&(t.setupState=mf(n)),Kf(t,r)}let Gc;function Kf(t,n,r){const o=t.type;if(!t.render){if(!n&&Gc&&!o.render){const a=o.template||Ja(t).template;if(a){const{isCustomElement:c,compilerOptions:u}=t.appContext.config,{delimiters:f,compilerOptions:d}=o,p=gt(gt({isCustomElement:c,delimiters:f},u),d);o.render=Gc(a,p)}}t.render=o.render||rn}{const a=Br(t);ai();try{qp(t)}finally{li(),a()}}}const bm={get(t,n){return Vt(t,"get",""),t[n]}};function Pm(t){const n=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,bm),slots:t.slots,emit:t.emit,expose:n}}function io(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(mf(Va(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in Tr)return Tr[r](t)},has(n,r){return r in n||r in Tr}}))}function $m(t){return Me(t)&&"__vccOpts"in t}const Qa=(t,n)=>lp(t,n,no);function Sm(t,n,r){const o=arguments.length;return o===2?ct(n)&&!Ee(n)?zs(n)?Tt(t,null,[n]):Tt(t,n):Tt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&zs(r)&&(r=[r]),Tt(t,n,r))}const Em="3.4.27";/** +* @vue/runtime-dom v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Tm="http://www.w3.org/2000/svg",Cm="http://www.w3.org/1998/Math/MathML",ti=typeof document<"u"?document:null,Jc=ti&&ti.createElement("template"),Lm={insert:(t,n,r)=>{n.insertBefore(t,r||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,r,o)=>{const a=n==="svg"?ti.createElementNS(Tm,t):n==="mathml"?ti.createElementNS(Cm,t):ti.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>ti.createTextNode(t),createComment:t=>ti.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ti.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,r,o,a,c){const u=r?r.previousSibling:n.lastChild;if(a&&(a===c||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===c||!(a=a.nextSibling)););else{Jc.innerHTML=o==="svg"?`${t}`:o==="mathml"?`${t}`:t;const f=Jc.content;if(o==="svg"||o==="mathml"){const d=f.firstChild;for(;d.firstChild;)f.appendChild(d.firstChild);f.removeChild(d)}n.insertBefore(f,r)}return[u?u.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}},Kn="transition",vr="animation",jr=Symbol("_vtc"),ro=(t,{slots:n})=>Sm(Rp,xm(t),n);ro.displayName="Transition";const Wf={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};ro.props=gt({},Sf,Wf);const yi=(t,n=[])=>{Ee(t)?t.forEach(r=>r(...n)):t&&t(...n)},Yc=t=>t?Ee(t)?t.some(n=>n.length>1):t.length>1:!1;function xm(t){const n={};for(const ne in t)ne in Wf||(n[ne]=t[ne]);if(t.css===!1)return n;const{name:r="v",type:o,duration:a,enterFromClass:c=`${r}-enter-from`,enterActiveClass:u=`${r}-enter-active`,enterToClass:f=`${r}-enter-to`,appearFromClass:d=c,appearActiveClass:p=u,appearToClass:_=f,leaveFromClass:w=`${r}-leave-from`,leaveActiveClass:$=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=t,O=Om(a),C=O&&O[0],A=O&&O[1],{onBeforeEnter:T,onEnter:B,onEnterCancelled:U,onLeave:J,onLeaveCancelled:Y,onBeforeAppear:ce=T,onAppear:ye=B,onAppearCancelled:oe=U}=n,he=(ne,Se,be)=>{wi(ne,Se?_:f),wi(ne,Se?p:u),be&&be()},$e=(ne,Se)=>{ne._isLeaving=!1,wi(ne,w),wi(ne,x),wi(ne,$),Se&&Se()},we=ne=>(Se,be)=>{const ot=ne?ye:B,ge=()=>he(Se,ne,be);yi(ot,[Se,ge]),Xc(()=>{wi(Se,ne?d:c),Wn(Se,ne?_:f),Yc(ot)||Qc(Se,o,C,ge)})};return gt(n,{onBeforeEnter(ne){yi(T,[ne]),Wn(ne,c),Wn(ne,u)},onBeforeAppear(ne){yi(ce,[ne]),Wn(ne,d),Wn(ne,p)},onEnter:we(!1),onAppear:we(!0),onLeave(ne,Se){ne._isLeaving=!0;const be=()=>$e(ne,Se);Wn(ne,w),Wn(ne,$),Am(),Xc(()=>{ne._isLeaving&&(wi(ne,w),Wn(ne,x),Yc(J)||Qc(ne,o,A,be))}),yi(J,[ne,be])},onEnterCancelled(ne){he(ne,!1),yi(U,[ne])},onAppearCancelled(ne){he(ne,!0),yi(oe,[ne])},onLeaveCancelled(ne){$e(ne),yi(Y,[ne])}})}function Om(t){if(t==null)return null;if(ct(t))return[Wo(t.enter),Wo(t.leave)];{const n=Wo(t);return[n,n]}}function Wo(t){return kd(t)}function Wn(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[jr]||(t[jr]=new Set)).add(n)}function wi(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[jr];r&&(r.delete(n),r.size||(t[jr]=void 0))}function Xc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Im=0;function Qc(t,n,r,o){const a=t._endId=++Im,c=()=>{a===t._endId&&o()};if(r)return setTimeout(c,r);const{type:u,timeout:f,propCount:d}=km(t,n);if(!u)return o();const p=u+"end";let _=0;const w=()=>{t.removeEventListener(p,$),c()},$=x=>{x.target===t&&++_>=d&&w()};setTimeout(()=>{_(r[O]||"").split(", "),a=o(`${Kn}Delay`),c=o(`${Kn}Duration`),u=eu(a,c),f=o(`${vr}Delay`),d=o(`${vr}Duration`),p=eu(f,d);let _=null,w=0,$=0;n===Kn?u>0&&(_=Kn,w=u,$=c.length):n===vr?p>0&&(_=vr,w=p,$=d.length):(w=Math.max(u,p),_=w>0?u>p?Kn:vr:null,$=_?_===Kn?c.length:d.length:0);const x=_===Kn&&/\b(transform|all)(,|$)/.test(o(`${Kn}Property`).toString());return{type:_,timeout:w,propCount:$,hasTransform:x}}function eu(t,n){for(;t.lengthtu(r)+tu(t[o])))}function tu(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Am(){return document.body.offsetHeight}function Rm(t,n,r){const o=t[jr];o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}const nu=Symbol("_vod"),Mm=Symbol("_vsh"),Nm=Symbol(""),Dm=/(^|;)\s*display\s*:/;function zm(t,n,r){const o=t.style,a=vt(r);let c=!1;if(r&&!a){if(n)if(vt(n))for(const u of n.split(";")){const f=u.slice(0,u.indexOf(":")).trim();r[f]==null&&xs(o,f,"")}else for(const u in n)r[u]==null&&xs(o,u,"");for(const u in r)u==="display"&&(c=!0),xs(o,u,r[u])}else if(a){if(n!==r){const u=o[Nm];u&&(r+=";"+u),o.cssText=r,c=Dm.test(r)}}else n&&t.removeAttribute("style");nu in t&&(t[nu]=c?o.display:"",t[Mm]&&(o.display="none"))}const iu=/\s*!important$/;function xs(t,n,r){if(Ee(r))r.forEach(o=>xs(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=jm(t,n);iu.test(r)?t.setProperty(ir(o),r.replace(iu,""),"important"):t[o]=r}}const ru=["Webkit","Moz","ms"],Go={};function jm(t,n){const r=Go[n];if(r)return r;let o=tr(n);if(o!=="filter"&&o in t)return Go[n]=o;o=Uu(o);for(let a=0;aJo||(Um.then(()=>Jo=0),Jo=Date.now());function Km(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;sn(Wm(o,r.value),n,5,[o])};return r.value=t,r.attached=qm(),r}function Wm(t,n){if(Ee(n)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},n.map(o=>a=>!a._stopped&&o&&o(a))}else return n}const lu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Gm=(t,n,r,o,a,c,u,f,d)=>{const p=a==="svg";n==="class"?Rm(t,o,p):n==="style"?zm(t,r,o):Us(n)?Aa(n)||Vm(t,n,r,o,u):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):Jm(t,n,o,p))?Fm(t,n,o,c,u,f,d):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),Bm(t,n,o,p))};function Jm(t,n,r,o){if(o)return!!(n==="innerHTML"||n==="textContent"||n in t&&lu(n)&&Me(r));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return lu(n)&&vt(r)?!1:n in t}const cu=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ee(n)?r=>Ts(n,r):n};function Ym(t){t.target.composing=!0}function uu(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const Yo=Symbol("_assign"),Xm={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t[Yo]=cu(a);const c=o||a.props&&a.props.type==="number";qi(t,n?"change":"input",u=>{if(u.target.composing)return;let f=t.value;r&&(f=f.trim()),c&&(f=aa(f)),t[Yo](f)}),r&&qi(t,"change",()=>{t.value=t.value.trim()}),n||(qi(t,"compositionstart",Ym),qi(t,"compositionend",uu),qi(t,"change",uu))},mounted(t,{value:n}){t.value=n??""},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},c){if(t[Yo]=cu(c),t.composing)return;const u=(a||t.type==="number")&&!/^0\d/.test(t.value)?aa(t.value):t.value,f=n??"";u!==f&&(document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===f)||(t.value=f))}},Qm=gt({patchProp:Gm},Lm);let fu;function e_(){return fu||(fu=om(Qm))}const t_=(...t)=>{const n=e_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=i_(o);if(!a)return;const c=n._component;!Me(c)&&!c.render&&!c.template&&(c.template=a.innerHTML),a.innerHTML="";const u=r(a,!1,n_(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),u},n};function n_(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function i_(t){return vt(t)?document.querySelector(t):t}var r_=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Gf;const so=t=>Gf=t,Jf=Symbol();function wa(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var xr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(xr||(xr={}));function s_(){const t=Yu(!0),n=t.run(()=>Et({}));let r=[],o=[];const a=Va({install(c){so(a),a._a=c,c.provide(Jf,a),c.config.globalProperties.$pinia=a,o.forEach(u=>r.push(u)),o=[]},use(c){return!this._a&&!r_?o.push(c):r.push(c),this},_p:r,_a:null,_e:t,_s:new Map,state:n});return a}const Yf=()=>{};function hu(t,n,r,o=Yf){t.push(n);const a=()=>{const c=t.indexOf(n);c>-1&&(t.splice(c,1),o())};return!r&&Xu()&&Bd(a),a}function Hi(t,...n){t.slice().forEach(r=>{r(...n)})}const o_=t=>t();function ba(t,n){t instanceof Map&&n instanceof Map&&n.forEach((r,o)=>t.set(o,r)),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const r in n){if(!n.hasOwnProperty(r))continue;const o=n[r],a=t[r];wa(a)&&wa(o)&&t.hasOwnProperty(r)&&!Pt(o)&&!Oi(o)?t[r]=ba(a,o):t[r]=o}return t}const a_=Symbol();function l_(t){return!wa(t)||!t.hasOwnProperty(a_)}const{assign:Yn}=Object;function c_(t){return!!(Pt(t)&&t.effect)}function u_(t,n,r,o){const{state:a,actions:c,getters:u}=n,f=r.state.value[t];let d;function p(){f||(r.state.value[t]=a?a():{});const _=hp(r.state.value[t]);return Yn(_,c,Object.keys(u||{}).reduce((w,$)=>(w[$]=Va(Qa(()=>{so(r);const x=r._s.get(t);return u[$].call(x,x)})),w),{}))}return d=Xf(t,p,n,r,o,!0),d}function Xf(t,n,r={},o,a,c){let u;const f=Yn({actions:{}},r),d={deep:!0};let p,_,w=[],$=[],x;const O=o.state.value[t];!c&&!O&&(o.state.value[t]={}),Et({});let C;function A(oe){let he;p=_=!1,typeof oe=="function"?(oe(o.state.value[t]),he={type:xr.patchFunction,storeId:t,events:x}):(ba(o.state.value[t],oe),he={type:xr.patchObject,payload:oe,storeId:t,events:x});const $e=C=Symbol();gf().then(()=>{C===$e&&(p=!0)}),_=!0,Hi(w,he,o.state.value[t])}const T=c?function(){const{state:he}=r,$e=he?he():{};this.$patch(we=>{Yn(we,$e)})}:Yf;function B(){u.stop(),w=[],$=[],o._s.delete(t)}function U(oe,he){return function(){so(o);const $e=Array.from(arguments),we=[],ne=[];function Se(ge){we.push(ge)}function be(ge){ne.push(ge)}Hi($,{args:$e,name:oe,store:Y,after:Se,onError:be});let ot;try{ot=he.apply(this&&this.$id===t?this:Y,$e)}catch(ge){throw Hi(ne,ge),ge}return ot instanceof Promise?ot.then(ge=>(Hi(we,ge),ge)).catch(ge=>(Hi(ne,ge),Promise.reject(ge))):(Hi(we,ot),ot)}}const J={_p:o,$id:t,$onAction:hu.bind(null,$),$patch:A,$reset:T,$subscribe(oe,he={}){const $e=hu(w,oe,he.detached,()=>we()),we=u.run(()=>Yi(()=>o.state.value[t],ne=>{(he.flush==="sync"?_:p)&&oe({storeId:t,type:xr.direct,events:x},ne)},Yn({},d,he)));return $e},$dispose:B},Y=Gs(J);o._s.set(t,Y);const ye=(o._a&&o._a.runWithContext||o_)(()=>o._e.run(()=>(u=Yu()).run(n)));for(const oe in ye){const he=ye[oe];if(Pt(he)&&!c_(he)||Oi(he))c||(O&&l_(he)&&(Pt(he)?he.value=O[oe]:ba(he,O[oe])),o.state.value[t][oe]=he);else if(typeof he=="function"){const $e=U(oe,he);ye[oe]=$e,f.actions[oe]=he}}return Yn(Y,ye),Yn(We(Y),ye),Object.defineProperty(Y,"$state",{get:()=>o.state.value[t],set:oe=>{A(he=>{Yn(he,oe)})}}),o._p.forEach(oe=>{Yn(Y,u.run(()=>oe({store:Y,app:o._a,pinia:o,options:f})))}),O&&c&&r.hydrate&&r.hydrate(Y.$state,O),p=!0,_=!0,Y}function f_(t,n,r){let o,a;const c=typeof n=="function";o=t,a=c?r:n;function u(f,d){const p=em();return f=f||(p?Cr(Jf,null):null),f&&so(f),f=Gf,f._s.has(o)||(c?Xf(o,n,a,f):u_(o,a,f)),f._s.get(o)}return u.$id=o,u}const ci=f_("resource",()=>({resourceId:Et(void 0)})),h_=["src"],d_=["src"],p_={class:"search-result-metadata"},m_={class:"search-result-resource-type"},__={class:"search-result-title"},g_={key:0,class:"search-result-resource-description"},v_=on({__name:"SearchListItem",props:{resourceName:{},resourceId:{},resourceDescription:{},resourceType:{},imageTileData:{}},setup(t){const n=ci(),r=t,o=!0,a=r.imageTileData?"https://arches-app-demo.opentechstrategies.com"+r.imageTileData[0].url:void 0,c=u=>{n.$patch({resourceId:u})};return(u,f)=>(xe(),Je("div",{class:"search-result",onClick:f[0]||(f[0]=d=>c(r.resourceId))},[Pe(a)?(xe(),Je("img",{key:0,class:"search-result-image",loading:"lazy",src:Pe(a),alt:"thumbnail image"},null,8,h_)):(xe(),Je("img",{key:1,class:"search-result-image",src:Pe(o)?"/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,8,d_)),Le("div",p_,[Le("div",m_,Ut(r.resourceType??"Resource"),1),Le("div",__,Ut(r.resourceName),1),r.resourceDescription&&r.resourceDescription!=="Undefined"?(xe(),Je("div",g_,Ut(r.resourceDescription),1)):Mt("",!0)])]))}}),On=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},y_=On(v_,[["__scopeId","data-v-03b6144e"]]);var Qf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Pa={exports:{}},th={},Dn={},bi={},Fr={},Xo={},Qo={},du;function Bs(){return du||(du=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(B){if(super(),!t.IDENTIFIER.test(B))throw new Error("CodeGen: name must be a valid identifier");this.str=B}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class o extends n{constructor(B){super(),this._items=typeof B=="string"?[B]:B}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const B=this._items[0];return B===""||B==='""'}get str(){var B;return(B=this._str)!==null&&B!==void 0?B:this._str=this._items.reduce((U,J)=>`${U}${J}`,"")}get names(){var B;return(B=this._names)!==null&&B!==void 0?B:this._names=this._items.reduce((U,J)=>(J instanceof r&&(U[J.str]=(U[J.str]||0)+1),U),{})}}t._Code=o,t.nil=new o("");function a(T,...B){const U=[T[0]];let J=0;for(;J{if(w.scopePath===void 0)throw new Error(`CodeGen: name "${w}" has no value`);return(0,n._)`${p}${w.scopePath}`})}scopeCode(p=this._values,_,w){return this._reduceValues(p,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},_,w)}_reduceValues(p,_,w={},$){let x=n.nil;for(const O in p){const C=p[O];if(!C)continue;const A=w[O]=w[O]||new Map;C.forEach(T=>{if(A.has(T))return;A.set(T,o.Started);let B=_(T);if(B){const U=this.opts.es5?t.varKinds.var:t.varKinds.const;x=(0,n._)`${x}${U} ${T} = ${B};${this.opts._n}`}else if(B=$==null?void 0:$(T))x=(0,n._)`${x}${B}${this.opts._n}`;else throw new r(T);A.set(T,o.Completed)})}return x}}t.ValueScope=f}(ea)),ea}var _u;function Ve(){return _u||(_u=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=Bs(),r=mu();var o=Bs();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=mu();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class c{optimizeNodes(){return this}optimizeNames(y,P){return this}}class u extends c{constructor(y,P,N){super(),this.varKind=y,this.name=P,this.rhs=N}render({es5:y,_n:P}){const N=y?r.varKinds.var:this.varKind,se=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${se};`+P}optimizeNames(y,P){if(y[this.name.str])return this.rhs&&(this.rhs=be(this.rhs,y,P)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class f extends c{constructor(y,P,N){super(),this.lhs=y,this.rhs=P,this.sideEffects=N}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,P){if(!(this.lhs instanceof n.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=be(this.rhs,y,P),this}get names(){const y=this.lhs instanceof n.Name?{}:{...this.lhs.names};return Se(y,this.rhs)}}class d extends f{constructor(y,P,N,se){super(y,N,se),this.op=P}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class p extends c{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class _ extends c{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class w extends c{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class $ extends c{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,P){return this.code=be(this.code,y,P),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class x extends c{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((P,N)=>P+N.render(y),"")}optimizeNodes(){const{nodes:y}=this;let P=y.length;for(;P--;){const N=y[P].optimizeNodes();Array.isArray(N)?y.splice(P,1,...N):N?y[P]=N:y.splice(P,1)}return y.length>0?this:void 0}optimizeNames(y,P){const{nodes:N}=this;let se=N.length;for(;se--;){const ae=N[se];ae.optimizeNames(y,P)||(ot(y,ae.names),N.splice(se,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((y,P)=>ne(y,P.names),{})}}class O extends x{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class C extends x{}class A extends O{}A.kind="else";class T extends O{constructor(y,P){super(P),this.condition=y}render(y){let P=`if(${this.condition})`+super.render(y);return this.else&&(P+="else "+this.else.render(y)),P}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let P=this.else;if(P){const N=P.optimizeNodes();P=this.else=Array.isArray(N)?new A(N):N}if(P)return y===!1?P instanceof T?P:P.nodes:this.nodes.length?this:new T(ge(y),P instanceof T?[P]:P.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,P){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(y,P),!!(super.optimizeNames(y,P)||this.else))return this.condition=be(this.condition,y,P),this}get names(){const y=super.names;return Se(y,this.condition),this.else&&ne(y,this.else.names),y}}T.kind="if";class B extends O{}B.kind="for";class U extends B{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,P){if(super.optimizeNames(y,P))return this.iteration=be(this.iteration,y,P),this}get names(){return ne(super.names,this.iteration.names)}}class J extends B{constructor(y,P,N,se){super(),this.varKind=y,this.name=P,this.from=N,this.to=se}render(y){const P=y.es5?r.varKinds.var:this.varKind,{name:N,from:se,to:ae}=this;return`for(${P} ${N}=${se}; ${N}<${ae}; ${N}++)`+super.render(y)}get names(){const y=Se(super.names,this.from);return Se(y,this.to)}}class Y extends B{constructor(y,P,N,se){super(),this.loop=y,this.varKind=P,this.name=N,this.iterable=se}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,P){if(super.optimizeNames(y,P))return this.iterable=be(this.iterable,y,P),this}get names(){return ne(super.names,this.iterable.names)}}class ce extends O{constructor(y,P,N){super(),this.name=y,this.args=P,this.async=N}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}ce.kind="func";class ye extends x{render(y){return"return "+super.render(y)}}ye.kind="return";class oe extends O{render(y){let P="try"+super.render(y);return this.catch&&(P+=this.catch.render(y)),this.finally&&(P+=this.finally.render(y)),P}optimizeNodes(){var y,P;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(y,P){var N,se;return super.optimizeNames(y,P),(N=this.catch)===null||N===void 0||N.optimizeNames(y,P),(se=this.finally)===null||se===void 0||se.optimizeNames(y,P),this}get names(){const y=super.names;return this.catch&&ne(y,this.catch.names),this.finally&&ne(y,this.finally.names),y}}class he extends O{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}he.kind="catch";class $e extends O{render(y){return"finally"+super.render(y)}}$e.kind="finally";class we{constructor(y,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?` +`:""},this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new C]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,P){const N=this._extScope.value(y,P);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(y,P){return this._extScope.getValue(y,P)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,P,N,se){const ae=this._scope.toName(P);return N!==void 0&&se&&(this._constants[ae.str]=N),this._leafNode(new u(y,ae,N)),ae}const(y,P,N){return this._def(r.varKinds.const,y,P,N)}let(y,P,N){return this._def(r.varKinds.let,y,P,N)}var(y,P,N){return this._def(r.varKinds.var,y,P,N)}assign(y,P,N){return this._leafNode(new f(y,P,N))}add(y,P){return this._leafNode(new d(y,t.operators.ADD,P))}code(y){return typeof y=="function"?y():y!==n.nil&&this._leafNode(new $(y)),this}object(...y){const P=["{"];for(const[N,se]of y)P.length>1&&P.push(","),P.push(N),(N!==se||this.opts.es5)&&(P.push(":"),(0,n.addCodeArg)(P,se));return P.push("}"),new n._Code(P)}if(y,P,N){if(this._blockNode(new T(y)),P&&N)this.code(P).else().code(N).endIf();else if(P)this.code(P).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new T(y))}else(){return this._elseNode(new A)}endIf(){return this._endBlockNode(T,A)}_for(y,P){return this._blockNode(y),P&&this.code(P).endFor(),this}for(y,P){return this._for(new U(y),P)}forRange(y,P,N,se,ae=this.opts.es5?r.varKinds.var:r.varKinds.let){const ke=this._scope.toName(y);return this._for(new J(ae,ke,P,N),()=>se(ke))}forOf(y,P,N,se=r.varKinds.const){const ae=this._scope.toName(y);if(this.opts.es5){const ke=P instanceof n.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,n._)`${ke}.length`,Ce=>{this.var(ae,(0,n._)`${ke}[${Ce}]`),N(ae)})}return this._for(new Y("of",se,ae,P),()=>N(ae))}forIn(y,P,N,se=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,n._)`Object.keys(${P})`,N);const ae=this._scope.toName(y);return this._for(new Y("in",se,ae,P),()=>N(ae))}endFor(){return this._endBlockNode(B)}label(y){return this._leafNode(new p(y))}break(y){return this._leafNode(new _(y))}return(y){const P=new ye;if(this._blockNode(P),this.code(y),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ye)}try(y,P,N){if(!P&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const se=new oe;if(this._blockNode(se),this.code(y),P){const ae=this.name("e");this._currNode=se.catch=new he(ae),P(ae)}return N&&(this._currNode=se.finally=new $e,this.code(N)),this._endBlockNode(he,$e)}throw(y){return this._leafNode(new w(y))}block(y,P){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(P),this}endBlock(y){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-P;if(N<0||y!==void 0&&N!==y)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${y} expected`);return this._nodes.length=P,this}func(y,P=n.nil,N,se){return this._blockNode(new ce(y,P,N)),se&&this.code(se).endFunc(),this}endFunc(){return this._endBlockNode(ce)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,P){const N=this._currNode;if(N instanceof y||P&&N instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${y.kind}/${P.kind}`:y.kind}"`)}_elseNode(y){const P=this._currNode;if(!(P instanceof T))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const P=this._nodes;P[P.length-1]=y}}t.CodeGen=we;function ne(D,y){for(const P in y)D[P]=(D[P]||0)+(y[P]||0);return D}function Se(D,y){return y instanceof n._CodeOrName?ne(D,y.names):D}function be(D,y,P){if(D instanceof n.Name)return N(D);if(!se(D))return D;return new n._Code(D._items.reduce((ae,ke)=>(ke instanceof n.Name&&(ke=N(ke)),ke instanceof n._Code?ae.push(...ke._items):ae.push(ke),ae),[]));function N(ae){const ke=P[ae.str];return ke===void 0||y[ae.str]!==1?ae:(delete y[ae.str],ke)}function se(ae){return ae instanceof n._Code&&ae._items.some(ke=>ke instanceof n.Name&&y[ke.str]===1&&P[ke.str]!==void 0)}}function ot(D,y){for(const P in y)D[P]=(D[P]||0)-(y[P]||0)}function ge(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,n._)`!${K(D)}`}t.not=ge;const De=k(t.operators.AND);function le(...D){return D.reduce(De)}t.and=le;const yt=k(t.operators.OR);function q(...D){return D.reduce(yt)}t.or=q;function k(D){return(y,P)=>y===n.nil?P:P===n.nil?y:(0,n._)`${K(y)} ${D} ${K(P)}`}function K(D){return D instanceof n.Name?D:(0,n._)`(${D})`}}(Xo)),Xo}var fe={};Object.defineProperty(fe,"__esModule",{value:!0});fe.checkStrictMode=fe.getErrorPath=fe.Type=fe.useFunc=fe.setEvaluated=fe.evaluatedPropsToName=fe.mergeEvaluated=fe.eachItem=fe.unescapeJsonPointer=fe.escapeJsonPointer=fe.escapeFragment=fe.unescapeFragment=fe.schemaRefOrVal=fe.schemaHasRulesButRef=fe.schemaHasRules=fe.checkUnknownRules=fe.alwaysValidSchema=fe.toHash=void 0;const it=Ve(),w_=Bs();function b_(t){const n={};for(const r of t)n[r]=!0;return n}fe.toHash=b_;function P_(t,n){return typeof n=="boolean"?n:Object.keys(n).length===0?!0:(nh(t,n),!ih(n,t.self.RULES.all))}fe.alwaysValidSchema=P_;function nh(t,n=t.schema){const{opts:r,self:o}=t;if(!r.strictSchema||typeof n=="boolean")return;const a=o.RULES.keywords;for(const c in n)a[c]||oh(t,`unknown keyword: "${c}"`)}fe.checkUnknownRules=nh;function ih(t,n){if(typeof t=="boolean")return!t;for(const r in t)if(n[r])return!0;return!1}fe.schemaHasRules=ih;function $_(t,n){if(typeof t=="boolean")return!t;for(const r in t)if(r!=="$ref"&&n.all[r])return!0;return!1}fe.schemaHasRulesButRef=$_;function S_({topSchemaRef:t,schemaPath:n},r,o,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,it._)`${r}`}return(0,it._)`${t}${n}${(0,it.getProperty)(o)}`}fe.schemaRefOrVal=S_;function E_(t){return rh(decodeURIComponent(t))}fe.unescapeFragment=E_;function T_(t){return encodeURIComponent(el(t))}fe.escapeFragment=T_;function el(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}fe.escapeJsonPointer=el;function rh(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}fe.unescapeJsonPointer=rh;function C_(t,n){if(Array.isArray(t))for(const r of t)n(r);else n(t)}fe.eachItem=C_;function gu({mergeNames:t,mergeToName:n,mergeValues:r,resultToName:o}){return(a,c,u,f)=>{const d=u===void 0?c:u instanceof it.Name?(c instanceof it.Name?t(a,c,u):n(a,c,u),u):c instanceof it.Name?(n(a,u,c),c):r(c,u);return f===it.Name&&!(d instanceof it.Name)?o(a,d):d}}fe.mergeEvaluated={props:gu({mergeNames:(t,n,r)=>t.if((0,it._)`${r} !== true && ${n} !== undefined`,()=>{t.if((0,it._)`${n} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,it._)`${r} || {}`).code((0,it._)`Object.assign(${r}, ${n})`))}),mergeToName:(t,n,r)=>t.if((0,it._)`${r} !== true`,()=>{n===!0?t.assign(r,!0):(t.assign(r,(0,it._)`${r} || {}`),tl(t,r,n))}),mergeValues:(t,n)=>t===!0?!0:{...t,...n},resultToName:sh}),items:gu({mergeNames:(t,n,r)=>t.if((0,it._)`${r} !== true && ${n} !== undefined`,()=>t.assign(r,(0,it._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(t,n,r)=>t.if((0,it._)`${r} !== true`,()=>t.assign(r,n===!0?!0:(0,it._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(t,n)=>t===!0?!0:Math.max(t,n),resultToName:(t,n)=>t.var("items",n)})};function sh(t,n){if(n===!0)return t.var("props",!0);const r=t.var("props",(0,it._)`{}`);return n!==void 0&&tl(t,r,n),r}fe.evaluatedPropsToName=sh;function tl(t,n,r){Object.keys(r).forEach(o=>t.assign((0,it._)`${n}${(0,it.getProperty)(o)}`,!0))}fe.setEvaluated=tl;const vu={};function L_(t,n){return t.scopeValue("func",{ref:n,code:vu[n.code]||(vu[n.code]=new w_._Code(n.code))})}fe.useFunc=L_;var $a;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})($a||(fe.Type=$a={}));function x_(t,n,r){if(t instanceof it.Name){const o=n===$a.Num;return r?o?(0,it._)`"[" + ${t} + "]"`:(0,it._)`"['" + ${t} + "']"`:o?(0,it._)`"/" + ${t}`:(0,it._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,it.getProperty)(t).toString():"/"+el(t)}fe.getErrorPath=x_;function oh(t,n,r=t.opts.strictSchema){if(r){if(n=`strict mode: ${n}`,r===!0)throw new Error(n);t.self.logger.warn(n)}}fe.checkStrictMode=oh;var ys={},yu;function ui(){if(yu)return ys;yu=1,Object.defineProperty(ys,"__esModule",{value:!0});const t=Ve(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return ys.default=n,ys}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=Ve(),r=fe,o=ui();t.keywordError={message:({keyword:A})=>(0,n.str)`must pass "${A}" keyword validation`},t.keyword$DataError={message:({keyword:A,schemaType:T})=>T?(0,n.str)`"${A}" keyword must be ${T} ($data)`:(0,n.str)`"${A}" keyword is invalid ($data)`};function a(A,T=t.keywordError,B,U){const{it:J}=A,{gen:Y,compositeRule:ce,allErrors:ye}=J,oe=w(A,T,B);U??(ce||ye)?d(Y,oe):p(J,(0,n._)`[${oe}]`)}t.reportError=a;function c(A,T=t.keywordError,B){const{it:U}=A,{gen:J,compositeRule:Y,allErrors:ce}=U,ye=w(A,T,B);d(J,ye),Y||ce||p(U,o.default.vErrors)}t.reportExtraError=c;function u(A,T){A.assign(o.default.errors,T),A.if((0,n._)`${o.default.vErrors} !== null`,()=>A.if(T,()=>A.assign((0,n._)`${o.default.vErrors}.length`,T),()=>A.assign(o.default.vErrors,null)))}t.resetErrorsCount=u;function f({gen:A,keyword:T,schemaValue:B,data:U,errsCount:J,it:Y}){if(J===void 0)throw new Error("ajv implementation error");const ce=A.name("err");A.forRange("i",J,o.default.errors,ye=>{A.const(ce,(0,n._)`${o.default.vErrors}[${ye}]`),A.if((0,n._)`${ce}.instancePath === undefined`,()=>A.assign((0,n._)`${ce}.instancePath`,(0,n.strConcat)(o.default.instancePath,Y.errorPath))),A.assign((0,n._)`${ce}.schemaPath`,(0,n.str)`${Y.errSchemaPath}/${T}`),Y.opts.verbose&&(A.assign((0,n._)`${ce}.schema`,B),A.assign((0,n._)`${ce}.data`,U))})}t.extendErrors=f;function d(A,T){const B=A.const("err",T);A.if((0,n._)`${o.default.vErrors} === null`,()=>A.assign(o.default.vErrors,(0,n._)`[${B}]`),(0,n._)`${o.default.vErrors}.push(${B})`),A.code((0,n._)`${o.default.errors}++`)}function p(A,T){const{gen:B,validateName:U,schemaEnv:J}=A;J.$async?B.throw((0,n._)`new ${A.ValidationError}(${T})`):(B.assign((0,n._)`${U}.errors`,T),B.return(!1))}const _={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function w(A,T,B){const{createErrors:U}=A.it;return U===!1?(0,n._)`{}`:$(A,T,B)}function $(A,T,B={}){const{gen:U,it:J}=A,Y=[x(J,B),O(A,B)];return C(A,T,Y),U.object(...Y)}function x({errorPath:A},{instancePath:T}){const B=T?(0,n.str)`${A}${(0,r.getErrorPath)(T,r.Type.Str)}`:A;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,B)]}function O({keyword:A,it:{errSchemaPath:T}},{schemaPath:B,parentSchema:U}){let J=U?T:(0,n.str)`${T}/${A}`;return B&&(J=(0,n.str)`${J}${(0,r.getErrorPath)(B,r.Type.Str)}`),[_.schemaPath,J]}function C(A,{params:T,message:B},U){const{keyword:J,data:Y,schemaValue:ce,it:ye}=A,{opts:oe,propertyName:he,topSchemaRef:$e,schemaPath:we}=ye;U.push([_.keyword,J],[_.params,typeof T=="function"?T(A):T||(0,n._)`{}`]),oe.messages&&U.push([_.message,typeof B=="function"?B(A):B]),oe.verbose&&U.push([_.schema,ce],[_.parentSchema,(0,n._)`${$e}${we}`],[o.default.data,Y]),he&&U.push([_.propertyName,he])}})(Fr);var wu;function O_(){if(wu)return bi;wu=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.boolOrEmptySchema=bi.topBoolOrEmptySchema=void 0;const t=Fr,n=Ve(),r=ui(),o={message:"boolean schema is false"};function a(f){const{gen:d,schema:p,validateName:_}=f;p===!1?u(f,!1):typeof p=="object"&&p.$async===!0?d.return(r.default.data):(d.assign((0,n._)`${_}.errors`,null),d.return(!0))}bi.topBoolOrEmptySchema=a;function c(f,d){const{gen:p,schema:_}=f;_===!1?(p.var(d,!1),u(f)):p.var(d,!0)}bi.boolOrEmptySchema=c;function u(f,d){const{gen:p,data:_}=f,w={gen:p,keyword:"false schema",data:_,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:f};(0,t.reportError)(w,o,void 0,d)}return bi}var wt={},ki={};Object.defineProperty(ki,"__esModule",{value:!0});ki.getRules=ki.isJSONType=void 0;const I_=["string","number","integer","boolean","null","object","array"],k_=new Set(I_);function A_(t){return typeof t=="string"&&k_.has(t)}ki.isJSONType=A_;function R_(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}ki.getRules=R_;var zn={},bu;function ah(){if(bu)return zn;bu=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.shouldUseRule=zn.shouldUseGroup=zn.schemaHasRulesForType=void 0;function t({schema:o,self:a},c){const u=a.RULES.types[c];return u&&u!==!0&&n(o,u)}zn.schemaHasRulesForType=t;function n(o,a){return a.rules.some(c=>r(o,c))}zn.shouldUseGroup=n;function r(o,a){var c;return o[a.keyword]!==void 0||((c=a.definition.implements)===null||c===void 0?void 0:c.some(u=>o[u]!==void 0))}return zn.shouldUseRule=r,zn}Object.defineProperty(wt,"__esModule",{value:!0});wt.reportTypeError=wt.checkDataTypes=wt.checkDataType=wt.coerceAndCheckDataType=wt.getJSONTypes=wt.getSchemaTypes=wt.DataType=void 0;const M_=ki,N_=ah(),D_=Fr,Ne=Ve(),lh=fe;var Qi;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Qi||(wt.DataType=Qi={}));function z_(t){const n=ch(t.type);if(n.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&n.push("null")}return n}wt.getSchemaTypes=z_;function ch(t){const n=Array.isArray(t)?t:t?[t]:[];if(n.every(M_.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}wt.getJSONTypes=ch;function j_(t,n){const{gen:r,data:o,opts:a}=t,c=B_(n,a.coerceTypes),u=n.length>0&&!(c.length===0&&n.length===1&&(0,N_.schemaHasRulesForType)(t,n[0]));if(u){const f=nl(n,o,a.strictNumbers,Qi.Wrong);r.if(f,()=>{c.length?F_(t,n,c):il(t)})}return u}wt.coerceAndCheckDataType=j_;const uh=new Set(["string","number","integer","boolean","null"]);function B_(t,n){return n?t.filter(r=>uh.has(r)||n==="array"&&r==="array"):[]}function F_(t,n,r){const{gen:o,data:a,opts:c}=t,u=o.let("dataType",(0,Ne._)`typeof ${a}`),f=o.let("coerced",(0,Ne._)`undefined`);c.coerceTypes==="array"&&o.if((0,Ne._)`${u} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>o.assign(a,(0,Ne._)`${a}[0]`).assign(u,(0,Ne._)`typeof ${a}`).if(nl(n,a,c.strictNumbers),()=>o.assign(f,a))),o.if((0,Ne._)`${f} !== undefined`);for(const p of r)(uh.has(p)||p==="array"&&c.coerceTypes==="array")&&d(p);o.else(),il(t),o.endIf(),o.if((0,Ne._)`${f} !== undefined`,()=>{o.assign(a,f),Z_(t,f)});function d(p){switch(p){case"string":o.elseIf((0,Ne._)`${u} == "number" || ${u} == "boolean"`).assign(f,(0,Ne._)`"" + ${a}`).elseIf((0,Ne._)`${a} === null`).assign(f,(0,Ne._)`""`);return;case"number":o.elseIf((0,Ne._)`${u} == "boolean" || ${a} === null + || (${u} == "string" && ${a} && ${a} == +${a})`).assign(f,(0,Ne._)`+${a}`);return;case"integer":o.elseIf((0,Ne._)`${u} === "boolean" || ${a} === null + || (${u} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(f,(0,Ne._)`+${a}`);return;case"boolean":o.elseIf((0,Ne._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(f,!1).elseIf((0,Ne._)`${a} === "true" || ${a} === 1`).assign(f,!0);return;case"null":o.elseIf((0,Ne._)`${a} === "" || ${a} === 0 || ${a} === false`),o.assign(f,null);return;case"array":o.elseIf((0,Ne._)`${u} === "string" || ${u} === "number" + || ${u} === "boolean" || ${a} === null`).assign(f,(0,Ne._)`[${a}]`)}}}function Z_({gen:t,parentData:n,parentDataProperty:r},o){t.if((0,Ne._)`${n} !== undefined`,()=>t.assign((0,Ne._)`${n}[${r}]`,o))}function Sa(t,n,r,o=Qi.Correct){const a=o===Qi.Correct?Ne.operators.EQ:Ne.operators.NEQ;let c;switch(t){case"null":return(0,Ne._)`${n} ${a} null`;case"array":c=(0,Ne._)`Array.isArray(${n})`;break;case"object":c=(0,Ne._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":c=u((0,Ne._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":c=u();break;default:return(0,Ne._)`typeof ${n} ${a} ${t}`}return o===Qi.Correct?c:(0,Ne.not)(c);function u(f=Ne.nil){return(0,Ne.and)((0,Ne._)`typeof ${n} == "number"`,f,r?(0,Ne._)`isFinite(${n})`:Ne.nil)}}wt.checkDataType=Sa;function nl(t,n,r,o){if(t.length===1)return Sa(t[0],n,r,o);let a;const c=(0,lh.toHash)(t);if(c.array&&c.object){const u=(0,Ne._)`typeof ${n} != "object"`;a=c.null?u:(0,Ne._)`!${n} || ${u}`,delete c.null,delete c.array,delete c.object}else a=Ne.nil;c.number&&delete c.integer;for(const u in c)a=(0,Ne.and)(a,Sa(u,n,r,o));return a}wt.checkDataTypes=nl;const V_={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:n})=>typeof t=="string"?(0,Ne._)`{type: ${t}}`:(0,Ne._)`{type: ${n}}`};function il(t){const n=H_(t);(0,D_.reportError)(n,V_)}wt.reportTypeError=il;function H_(t){const{gen:n,data:r,schema:o}=t,a=(0,lh.schemaRefOrVal)(t,o,"type");return{gen:n,keyword:"type",data:r,schema:o.type,schemaCode:a,schemaValue:a,parentSchema:o,params:{},it:t}}var yr={},Pu;function U_(){if(Pu)return yr;Pu=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.assignDefaults=void 0;const t=Ve(),n=fe;function r(a,c){const{properties:u,items:f}=a.schema;if(c==="object"&&u)for(const d in u)o(a,d,u[d].default);else c==="array"&&Array.isArray(f)&&f.forEach((d,p)=>o(a,p,d.default))}yr.assignDefaults=r;function o(a,c,u){const{gen:f,compositeRule:d,data:p,opts:_}=a;if(u===void 0)return;const w=(0,t._)`${p}${(0,t.getProperty)(c)}`;if(d){(0,n.checkStrictMode)(a,`default is ignored for: ${w}`);return}let $=(0,t._)`${w} === undefined`;_.useDefaults==="empty"&&($=(0,t._)`${$} || ${w} === null || ${w} === ""`),f.if($,(0,t._)`${w} = ${(0,t.stringify)(u)}`)}return yr}var pn={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.validateUnion=Fe.validateArray=Fe.usePattern=Fe.callValidateCode=Fe.schemaProperties=Fe.allSchemaProperties=Fe.noPropertyInData=Fe.propertyInData=Fe.isOwnProperty=Fe.hasPropFunc=Fe.reportMissingProp=Fe.checkMissingProp=Fe.checkReportMissingProp=void 0;const lt=Ve(),rl=fe,Gn=ui(),q_=fe;function K_(t,n){const{gen:r,data:o,it:a}=t;r.if(ol(r,o,n,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,lt._)`${n}`},!0),t.error()})}Fe.checkReportMissingProp=K_;function W_({gen:t,data:n,it:{opts:r}},o,a){return(0,lt.or)(...o.map(c=>(0,lt.and)(ol(t,n,c,r.ownProperties),(0,lt._)`${a} = ${c}`)))}Fe.checkMissingProp=W_;function G_(t,n){t.setParams({missingProperty:n},!0),t.error()}Fe.reportMissingProp=G_;function fh(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,lt._)`Object.prototype.hasOwnProperty`})}Fe.hasPropFunc=fh;function sl(t,n,r){return(0,lt._)`${fh(t)}.call(${n}, ${r})`}Fe.isOwnProperty=sl;function J_(t,n,r,o){const a=(0,lt._)`${n}${(0,lt.getProperty)(r)} !== undefined`;return o?(0,lt._)`${a} && ${sl(t,n,r)}`:a}Fe.propertyInData=J_;function ol(t,n,r,o){const a=(0,lt._)`${n}${(0,lt.getProperty)(r)} === undefined`;return o?(0,lt.or)(a,(0,lt.not)(sl(t,n,r))):a}Fe.noPropertyInData=ol;function hh(t){return t?Object.keys(t).filter(n=>n!=="__proto__"):[]}Fe.allSchemaProperties=hh;function Y_(t,n){return hh(n).filter(r=>!(0,rl.alwaysValidSchema)(t,n[r]))}Fe.schemaProperties=Y_;function X_({schemaCode:t,data:n,it:{gen:r,topSchemaRef:o,schemaPath:a,errorPath:c},it:u},f,d,p){const _=p?(0,lt._)`${t}, ${n}, ${o}${a}`:n,w=[[Gn.default.instancePath,(0,lt.strConcat)(Gn.default.instancePath,c)],[Gn.default.parentData,u.parentData],[Gn.default.parentDataProperty,u.parentDataProperty],[Gn.default.rootData,Gn.default.rootData]];u.opts.dynamicRef&&w.push([Gn.default.dynamicAnchors,Gn.default.dynamicAnchors]);const $=(0,lt._)`${_}, ${r.object(...w)}`;return d!==lt.nil?(0,lt._)`${f}.call(${d}, ${$})`:(0,lt._)`${f}(${$})`}Fe.callValidateCode=X_;const Q_=(0,lt._)`new RegExp`;function eg({gen:t,it:{opts:n}},r){const o=n.unicodeRegExp?"u":"",{regExp:a}=n.code,c=a(r,o);return t.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,lt._)`${a.code==="new RegExp"?Q_:(0,q_.useFunc)(t,a)}(${r}, ${o})`})}Fe.usePattern=eg;function tg(t){const{gen:n,data:r,keyword:o,it:a}=t,c=n.name("valid");if(a.allErrors){const f=n.let("valid",!0);return u(()=>n.assign(f,!1)),f}return n.var(c,!0),u(()=>n.break()),c;function u(f){const d=n.const("len",(0,lt._)`${r}.length`);n.forRange("i",0,d,p=>{t.subschema({keyword:o,dataProp:p,dataPropType:rl.Type.Num},c),n.if((0,lt.not)(c),f)})}}Fe.validateArray=tg;function ng(t){const{gen:n,schema:r,keyword:o,it:a}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(d=>(0,rl.alwaysValidSchema)(a,d))&&!a.opts.unevaluated)return;const u=n.let("valid",!1),f=n.name("_valid");n.block(()=>r.forEach((d,p)=>{const _=t.subschema({keyword:o,schemaProp:p,compositeRule:!0},f);n.assign(u,(0,lt._)`${u} || ${f}`),t.mergeValidEvaluated(_,f)||n.if((0,lt.not)(u))})),t.result(u,()=>t.reset(),()=>t.error(!0))}Fe.validateUnion=ng;var $u;function ig(){if($u)return pn;$u=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.validateKeywordUsage=pn.validSchemaType=pn.funcKeywordCode=pn.macroKeywordCode=void 0;const t=Ve(),n=ui(),r=Fe,o=Fr;function a($,x){const{gen:O,keyword:C,schema:A,parentSchema:T,it:B}=$,U=x.macro.call(B.self,A,T,B),J=p(O,C,U);B.opts.validateSchema!==!1&&B.self.validateSchema(U,!0);const Y=O.name("valid");$.subschema({schema:U,schemaPath:t.nil,errSchemaPath:`${B.errSchemaPath}/${C}`,topSchemaRef:J,compositeRule:!0},Y),$.pass(Y,()=>$.error(!0))}pn.macroKeywordCode=a;function c($,x){var O;const{gen:C,keyword:A,schema:T,parentSchema:B,$data:U,it:J}=$;d(J,x);const Y=!U&&x.compile?x.compile.call(J.self,T,B,J):x.validate,ce=p(C,A,Y),ye=C.let("valid");$.block$data(ye,oe),$.ok((O=x.valid)!==null&&O!==void 0?O:ye);function oe(){if(x.errors===!1)we(),x.modifying&&u($),ne(()=>$.error());else{const Se=x.async?he():$e();x.modifying&&u($),ne(()=>f($,Se))}}function he(){const Se=C.let("ruleErrs",null);return C.try(()=>we((0,t._)`await `),be=>C.assign(ye,!1).if((0,t._)`${be} instanceof ${J.ValidationError}`,()=>C.assign(Se,(0,t._)`${be}.errors`),()=>C.throw(be))),Se}function $e(){const Se=(0,t._)`${ce}.errors`;return C.assign(Se,null),we(t.nil),Se}function we(Se=x.async?(0,t._)`await `:t.nil){const be=J.opts.passContext?n.default.this:n.default.self,ot=!("compile"in x&&!U||x.schema===!1);C.assign(ye,(0,t._)`${Se}${(0,r.callValidateCode)($,ce,be,ot)}`,x.modifying)}function ne(Se){var be;C.if((0,t.not)((be=x.valid)!==null&&be!==void 0?be:ye),Se)}}pn.funcKeywordCode=c;function u($){const{gen:x,data:O,it:C}=$;x.if(C.parentData,()=>x.assign(O,(0,t._)`${C.parentData}[${C.parentDataProperty}]`))}function f($,x){const{gen:O}=$;O.if((0,t._)`Array.isArray(${x})`,()=>{O.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${x} : ${n.default.vErrors}.concat(${x})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,o.extendErrors)($)},()=>$.error())}function d({schemaEnv:$},x){if(x.async&&!$.$async)throw new Error("async keyword in sync schema")}function p($,x,O){if(O===void 0)throw new Error(`keyword "${x}" failed to compile`);return $.scopeValue("keyword",typeof O=="function"?{ref:O}:{ref:O,code:(0,t.stringify)(O)})}function _($,x,O=!1){return!x.length||x.some(C=>C==="array"?Array.isArray($):C==="object"?$&&typeof $=="object"&&!Array.isArray($):typeof $==C||O&&typeof $>"u")}pn.validSchemaType=_;function w({schema:$,opts:x,self:O,errSchemaPath:C},A,T){if(Array.isArray(A.keyword)?!A.keyword.includes(T):A.keyword!==T)throw new Error("ajv implementation error");const B=A.dependencies;if(B!=null&&B.some(U=>!Object.prototype.hasOwnProperty.call($,U)))throw new Error(`parent schema must have dependencies of ${T}: ${B.join(",")}`);if(A.validateSchema&&!A.validateSchema($[T])){const J=`keyword "${T}" value is invalid at path "${C}": `+O.errorsText(A.validateSchema.errors);if(x.validateSchema==="log")O.logger.error(J);else throw new Error(J)}}return pn.validateKeywordUsage=w,pn}var jn={},Su;function rg(){if(Su)return jn;Su=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.extendSubschemaMode=jn.extendSubschemaData=jn.getSubschema=void 0;const t=Ve(),n=fe;function r(c,{keyword:u,schemaProp:f,schema:d,schemaPath:p,errSchemaPath:_,topSchemaRef:w}){if(u!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(u!==void 0){const $=c.schema[u];return f===void 0?{schema:$,schemaPath:(0,t._)`${c.schemaPath}${(0,t.getProperty)(u)}`,errSchemaPath:`${c.errSchemaPath}/${u}`}:{schema:$[f],schemaPath:(0,t._)`${c.schemaPath}${(0,t.getProperty)(u)}${(0,t.getProperty)(f)}`,errSchemaPath:`${c.errSchemaPath}/${u}/${(0,n.escapeFragment)(f)}`}}if(d!==void 0){if(p===void 0||_===void 0||w===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:p,topSchemaRef:w,errSchemaPath:_}}throw new Error('either "keyword" or "schema" must be passed')}jn.getSubschema=r;function o(c,u,{dataProp:f,dataPropType:d,data:p,dataTypes:_,propertyName:w}){if(p!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:$}=u;if(f!==void 0){const{errorPath:O,dataPathArr:C,opts:A}=u,T=$.let("data",(0,t._)`${u.data}${(0,t.getProperty)(f)}`,!0);x(T),c.errorPath=(0,t.str)`${O}${(0,n.getErrorPath)(f,d,A.jsPropertySyntax)}`,c.parentDataProperty=(0,t._)`${f}`,c.dataPathArr=[...C,c.parentDataProperty]}if(p!==void 0){const O=p instanceof t.Name?p:$.let("data",p,!0);x(O),w!==void 0&&(c.propertyName=w)}_&&(c.dataTypes=_);function x(O){c.data=O,c.dataLevel=u.dataLevel+1,c.dataTypes=[],u.definedProperties=new Set,c.parentData=u.data,c.dataNames=[...u.dataNames,O]}}jn.extendSubschemaData=o;function a(c,{jtdDiscriminator:u,jtdMetadata:f,compositeRule:d,createErrors:p,allErrors:_}){d!==void 0&&(c.compositeRule=d),p!==void 0&&(c.createErrors=p),_!==void 0&&(c.allErrors=_),c.jtdDiscriminator=u,c.jtdMetadata=f}return jn.extendSubschemaMode=a,jn}var Ot={},dh=function t(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var o,a,c;if(Array.isArray(n)){if(o=n.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!t(n[a],r[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(c=Object.keys(n),o=c.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[a]))return!1;for(a=o;a--!==0;){var u=c[a];if(!t(n[u],r[u]))return!1}return!0}return n!==n&&r!==r},ph={exports:{}},ni=ph.exports=function(t,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var o=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};Os(n,o,a,t,"",t)};ni.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ni.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ni.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ni.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Os(t,n,r,o,a,c,u,f,d,p){if(o&&typeof o=="object"&&!Array.isArray(o)){n(o,a,c,u,f,d,p);for(var _ in o){var w=o[_];if(Array.isArray(w)){if(_ in ni.arrayKeywords)for(var $=0;$n+=mh(o)),n===1/0))return 1/0}return n}function _h(t,n="",r){r!==!1&&(n=er(n));const o=t.parse(n);return gh(t,o)}Ot.getFullPath=_h;function gh(t,n){return t.serialize(n).split("#")[0]+"#"}Ot._getFullPath=gh;const dg=/#\/?$/;function er(t){return t?t.replace(dg,""):""}Ot.normalizeId=er;function pg(t,n,r){return r=er(r),t.resolve(n,r)}Ot.resolveUrl=pg;const mg=/^[a-z_][-a-z0-9._]*$/i;function _g(t,n){if(typeof t=="boolean")return{};const{schemaId:r,uriResolver:o}=this.opts,a=er(t[r]||n),c={"":a},u=_h(o,a,!1),f={},d=new Set;return cg(t,{allKeys:!0},(w,$,x,O)=>{if(O===void 0)return;const C=u+$;let A=c[O];typeof w[r]=="string"&&(A=T.call(this,w[r])),B.call(this,w.$anchor),B.call(this,w.$dynamicAnchor),c[$]=A;function T(U){const J=this.opts.uriResolver.resolve;if(U=er(A?J(A,U):U),d.has(U))throw _(U);d.add(U);let Y=this.refs[U];return typeof Y=="string"&&(Y=this.refs[Y]),typeof Y=="object"?p(w,Y.schema,U):U!==er(C)&&(U[0]==="#"?(p(w,f[U],U),f[U]=w):this.refs[U]=C),U}function B(U){if(typeof U=="string"){if(!mg.test(U))throw new Error(`invalid anchor "${U}"`);T.call(this,`#${U}`)}}}),f;function p(w,$,x){if($!==void 0&&!lg(w,$))throw _(x)}function _(w){return new Error(`reference "${w}" resolves to more than one schema`)}}Ot.getSchemaRefs=_g;var Eu;function oo(){if(Eu)return Dn;Eu=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.getData=Dn.KeywordCxt=Dn.validateFunctionCode=void 0;const t=O_(),n=wt,r=ah(),o=wt,a=U_(),c=ig(),u=rg(),f=Ve(),d=ui(),p=Ot,_=fe,w=Fr;function $(M){if(Y(M)&&(ye(M),J(M))){A(M);return}x(M,()=>(0,t.topBoolOrEmptySchema)(M))}Dn.validateFunctionCode=$;function x({gen:M,validateName:z,schema:g,schemaEnv:b,opts:R},F){R.code.es5?M.func(z,(0,f._)`${d.default.data}, ${d.default.valCxt}`,b.$async,()=>{M.code((0,f._)`"use strict"; ${B(g,R)}`),C(M,R),M.code(F)}):M.func(z,(0,f._)`${d.default.data}, ${O(R)}`,b.$async,()=>M.code(B(g,R)).code(F))}function O(M){return(0,f._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${M.dynamicRef?(0,f._)`, ${d.default.dynamicAnchors}={}`:f.nil}}={}`}function C(M,z){M.if(d.default.valCxt,()=>{M.var(d.default.instancePath,(0,f._)`${d.default.valCxt}.${d.default.instancePath}`),M.var(d.default.parentData,(0,f._)`${d.default.valCxt}.${d.default.parentData}`),M.var(d.default.parentDataProperty,(0,f._)`${d.default.valCxt}.${d.default.parentDataProperty}`),M.var(d.default.rootData,(0,f._)`${d.default.valCxt}.${d.default.rootData}`),z.dynamicRef&&M.var(d.default.dynamicAnchors,(0,f._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{M.var(d.default.instancePath,(0,f._)`""`),M.var(d.default.parentData,(0,f._)`undefined`),M.var(d.default.parentDataProperty,(0,f._)`undefined`),M.var(d.default.rootData,d.default.data),z.dynamicRef&&M.var(d.default.dynamicAnchors,(0,f._)`{}`)})}function A(M){const{schema:z,opts:g,gen:b}=M;x(M,()=>{g.$comment&&z.$comment&&Se(M),$e(M),b.let(d.default.vErrors,null),b.let(d.default.errors,0),g.unevaluated&&T(M),oe(M),be(M)})}function T(M){const{gen:z,validateName:g}=M;M.evaluated=z.const("evaluated",(0,f._)`${g}.evaluated`),z.if((0,f._)`${M.evaluated}.dynamicProps`,()=>z.assign((0,f._)`${M.evaluated}.props`,(0,f._)`undefined`)),z.if((0,f._)`${M.evaluated}.dynamicItems`,()=>z.assign((0,f._)`${M.evaluated}.items`,(0,f._)`undefined`))}function B(M,z){const g=typeof M=="object"&&M[z.schemaId];return g&&(z.code.source||z.code.process)?(0,f._)`/*# sourceURL=${g} */`:f.nil}function U(M,z){if(Y(M)&&(ye(M),J(M))){ce(M,z);return}(0,t.boolOrEmptySchema)(M,z)}function J({schema:M,self:z}){if(typeof M=="boolean")return!M;for(const g in M)if(z.RULES.all[g])return!0;return!1}function Y(M){return typeof M.schema!="boolean"}function ce(M,z){const{schema:g,gen:b,opts:R}=M;R.$comment&&g.$comment&&Se(M),we(M),ne(M);const F=b.const("_errs",d.default.errors);oe(M,F),b.var(z,(0,f._)`${F} === ${d.default.errors}`)}function ye(M){(0,_.checkUnknownRules)(M),he(M)}function oe(M,z){if(M.opts.jtd)return ge(M,[],!1,z);const g=(0,n.getSchemaTypes)(M.schema),b=(0,n.coerceAndCheckDataType)(M,g);ge(M,g,!b,z)}function he(M){const{schema:z,errSchemaPath:g,opts:b,self:R}=M;z.$ref&&b.ignoreKeywordsWithRef&&(0,_.schemaHasRulesButRef)(z,R.RULES)&&R.logger.warn(`$ref: keywords ignored in schema at path "${g}"`)}function $e(M){const{schema:z,opts:g}=M;z.default!==void 0&&g.useDefaults&&g.strictSchema&&(0,_.checkStrictMode)(M,"default is ignored in the schema root")}function we(M){const z=M.schema[M.opts.schemaId];z&&(M.baseId=(0,p.resolveUrl)(M.opts.uriResolver,M.baseId,z))}function ne(M){if(M.schema.$async&&!M.schemaEnv.$async)throw new Error("async schema in sync schema")}function Se({gen:M,schemaEnv:z,schema:g,errSchemaPath:b,opts:R}){const F=g.$comment;if(R.$comment===!0)M.code((0,f._)`${d.default.self}.logger.log(${F})`);else if(typeof R.$comment=="function"){const W=(0,f.str)`${b}/$comment`,ee=M.scopeValue("root",{ref:z.root});M.code((0,f._)`${d.default.self}.opts.$comment(${F}, ${W}, ${ee}.schema)`)}}function be(M){const{gen:z,schemaEnv:g,validateName:b,ValidationError:R,opts:F}=M;g.$async?z.if((0,f._)`${d.default.errors} === 0`,()=>z.return(d.default.data),()=>z.throw((0,f._)`new ${R}(${d.default.vErrors})`)):(z.assign((0,f._)`${b}.errors`,d.default.vErrors),F.unevaluated&&ot(M),z.return((0,f._)`${d.default.errors} === 0`))}function ot({gen:M,evaluated:z,props:g,items:b}){g instanceof f.Name&&M.assign((0,f._)`${z}.props`,g),b instanceof f.Name&&M.assign((0,f._)`${z}.items`,b)}function ge(M,z,g,b){const{gen:R,schema:F,data:W,allErrors:ee,opts:re,self:X}=M,{RULES:te}=X;if(F.$ref&&(re.ignoreKeywordsWithRef||!(0,_.schemaHasRulesButRef)(F,te))){R.block(()=>se(M,"$ref",te.all.$ref.definition));return}re.jtd||le(M,z),R.block(()=>{for(const ie of te.rules)G(ie);G(te.post)});function G(ie){(0,r.shouldUseGroup)(F,ie)&&(ie.type?(R.if((0,o.checkDataType)(ie.type,W,re.strictNumbers)),De(M,ie),z.length===1&&z[0]===ie.type&&g&&(R.else(),(0,o.reportTypeError)(M)),R.endIf()):De(M,ie),ee||R.if((0,f._)`${d.default.errors} === ${b||0}`))}}function De(M,z){const{gen:g,schema:b,opts:{useDefaults:R}}=M;R&&(0,a.assignDefaults)(M,z.type),g.block(()=>{for(const F of z.rules)(0,r.shouldUseRule)(b,F)&&se(M,F.keyword,F.definition,z.type)})}function le(M,z){M.schemaEnv.meta||!M.opts.strictTypes||(yt(M,z),M.opts.allowUnionTypes||q(M,z),k(M,M.dataTypes))}function yt(M,z){if(z.length){if(!M.dataTypes.length){M.dataTypes=z;return}z.forEach(g=>{D(M.dataTypes,g)||P(M,`type "${g}" not allowed by context "${M.dataTypes.join(",")}"`)}),y(M,z)}}function q(M,z){z.length>1&&!(z.length===2&&z.includes("null"))&&P(M,"use allowUnionTypes to allow union type keyword")}function k(M,z){const g=M.self.RULES.all;for(const b in g){const R=g[b];if(typeof R=="object"&&(0,r.shouldUseRule)(M.schema,R)){const{type:F}=R.definition;F.length&&!F.some(W=>K(z,W))&&P(M,`missing type "${F.join(",")}" for keyword "${b}"`)}}}function K(M,z){return M.includes(z)||z==="number"&&M.includes("integer")}function D(M,z){return M.includes(z)||z==="integer"&&M.includes("number")}function y(M,z){const g=[];for(const b of M.dataTypes)D(z,b)?g.push(b):z.includes("integer")&&b==="number"&&g.push("integer");M.dataTypes=g}function P(M,z){const g=M.schemaEnv.baseId+M.errSchemaPath;z+=` at "${g}" (strictTypes)`,(0,_.checkStrictMode)(M,z,M.opts.strictTypes)}class N{constructor(z,g,b){if((0,c.validateKeywordUsage)(z,g,b),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=b,this.data=z.data,this.schema=z.schema[b],this.$data=g.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,_.schemaRefOrVal)(z,this.schema,b,this.$data),this.schemaType=g.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=g,this.$data)this.schemaCode=z.gen.const("vSchema",Ce(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,g.schemaType,g.allowUndefined))throw new Error(`${b} value must be ${JSON.stringify(g.schemaType)}`);("code"in g?g.trackErrors:g.errors!==!1)&&(this.errsCount=z.gen.const("_errs",d.default.errors))}result(z,g,b){this.failResult((0,f.not)(z),g,b)}failResult(z,g,b){this.gen.if(z),b?b():this.error(),g?(this.gen.else(),g(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,g){this.failResult((0,f.not)(z),void 0,g)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:g}=this;this.fail((0,f._)`${g} !== undefined && (${(0,f.or)(this.invalid$data(),z)})`)}error(z,g,b){if(g){this.setParams(g),this._error(z,b),this.setParams({});return}this._error(z,b)}_error(z,g){(z?w.reportExtraError:w.reportError)(this,this.def.error,g)}$dataError(){(0,w.reportError)(this,this.def.$dataError||w.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,w.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,g){g?Object.assign(this.params,z):this.params=z}block$data(z,g,b=f.nil){this.gen.block(()=>{this.check$data(z,b),g()})}check$data(z=f.nil,g=f.nil){if(!this.$data)return;const{gen:b,schemaCode:R,schemaType:F,def:W}=this;b.if((0,f.or)((0,f._)`${R} === undefined`,g)),z!==f.nil&&b.assign(z,!0),(F.length||W.validateSchema)&&(b.elseIf(this.invalid$data()),this.$dataError(),z!==f.nil&&b.assign(z,!1)),b.else()}invalid$data(){const{gen:z,schemaCode:g,schemaType:b,def:R,it:F}=this;return(0,f.or)(W(),ee());function W(){if(b.length){if(!(g instanceof f.Name))throw new Error("ajv implementation error");const re=Array.isArray(b)?b:[b];return(0,f._)`${(0,o.checkDataTypes)(re,g,F.opts.strictNumbers,o.DataType.Wrong)}`}return f.nil}function ee(){if(R.validateSchema){const re=z.scopeValue("validate$data",{ref:R.validateSchema});return(0,f._)`!${re}(${g})`}return f.nil}}subschema(z,g){const b=(0,u.getSubschema)(this.it,z);(0,u.extendSubschemaData)(b,this.it,z),(0,u.extendSubschemaMode)(b,z);const R={...this.it,...b,items:void 0,props:void 0};return U(R,g),R}mergeEvaluated(z,g){const{it:b,gen:R}=this;b.opts.unevaluated&&(b.props!==!0&&z.props!==void 0&&(b.props=_.mergeEvaluated.props(R,z.props,b.props,g)),b.items!==!0&&z.items!==void 0&&(b.items=_.mergeEvaluated.items(R,z.items,b.items,g)))}mergeValidEvaluated(z,g){const{it:b,gen:R}=this;if(b.opts.unevaluated&&(b.props!==!0||b.items!==!0))return R.if(g,()=>this.mergeEvaluated(z,f.Name)),!0}}Dn.KeywordCxt=N;function se(M,z,g,b){const R=new N(M,g,z);"code"in g?g.code(R,b):R.$data&&g.validate?(0,c.funcKeywordCode)(R,g):"macro"in g?(0,c.macroKeywordCode)(R,g):(g.compile||g.validate)&&(0,c.funcKeywordCode)(R,g)}const ae=/^\/(?:[^~]|~0|~1)*$/,ke=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ce(M,{dataLevel:z,dataNames:g,dataPathArr:b}){let R,F;if(M==="")return d.default.rootData;if(M[0]==="/"){if(!ae.test(M))throw new Error(`Invalid JSON-pointer: ${M}`);R=M,F=d.default.rootData}else{const X=ke.exec(M);if(!X)throw new Error(`Invalid JSON-pointer: ${M}`);const te=+X[1];if(R=X[2],R==="#"){if(te>=z)throw new Error(re("property/index",te));return b[z-te]}if(te>z)throw new Error(re("data",te));if(F=g[z-te],!R)return F}let W=F;const ee=R.split("/");for(const X of ee)X&&(F=(0,f._)`${F}${(0,f.getProperty)((0,_.unescapeJsonPointer)(X))}`,W=(0,f._)`${W} && ${F}`);return W;function re(X,te){return`Cannot access ${X} ${te} levels up, current level is ${z}`}}return Dn.getData=Ce,Dn}var ws={},Tu;function al(){if(Tu)return ws;Tu=1,Object.defineProperty(ws,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return ws.default=t,ws}var rr={};Object.defineProperty(rr,"__esModule",{value:!0});const ta=Ot;class gg extends Error{constructor(n,r,o,a){super(a||`can't resolve reference ${o} from id ${r}`),this.missingRef=(0,ta.resolveUrl)(n,r,o),this.missingSchema=(0,ta.normalizeId)((0,ta.getFullPath)(n,this.missingRef))}}rr.default=gg;var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.resolveSchema=Zt.getCompilingSchema=Zt.resolveRef=Zt.compileSchema=Zt.SchemaEnv=void 0;const mn=Ve(),vg=al(),Pi=ui(),vn=Ot,Cu=fe,yg=oo();class ao{constructor(n){var r;this.refs={},this.dynamicAnchors={};let o;typeof n.schema=="object"&&(o=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=(r=n.baseId)!==null&&r!==void 0?r:(0,vn.normalizeId)(o==null?void 0:o[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=o==null?void 0:o.$async,this.refs={}}}Zt.SchemaEnv=ao;function ll(t){const n=vh.call(this,t);if(n)return n;const r=(0,vn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:o,lines:a}=this.opts.code,{ownProperties:c}=this.opts,u=new mn.CodeGen(this.scope,{es5:o,lines:a,ownProperties:c});let f;t.$async&&(f=u.scopeValue("Error",{ref:vg.default,code:(0,mn._)`require("ajv/dist/runtime/validation_error").default`}));const d=u.scopeName("validate");t.validateName=d;const p={gen:u,allErrors:this.opts.allErrors,data:Pi.default.data,parentData:Pi.default.parentData,parentDataProperty:Pi.default.parentDataProperty,dataNames:[Pi.default.data],dataPathArr:[mn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,mn.stringify)(t.schema)}:{ref:t.schema}),validateName:d,ValidationError:f,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:mn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,mn._)`""`,opts:this.opts,self:this};let _;try{this._compilations.add(t),(0,yg.validateFunctionCode)(p),u.optimize(this.opts.code.optimize);const w=u.toString();_=`${u.scopeRefs(Pi.default.scope)}return ${w}`,this.opts.code.process&&(_=this.opts.code.process(_,t));const x=new Function(`${Pi.default.self}`,`${Pi.default.scope}`,_)(this,this.scope.get());if(this.scope.value(d,{ref:x}),x.errors=null,x.schema=t.schema,x.schemaEnv=t,t.$async&&(x.$async=!0),this.opts.code.source===!0&&(x.source={validateName:d,validateCode:w,scopeValues:u._values}),this.opts.unevaluated){const{props:O,items:C}=p;x.evaluated={props:O instanceof mn.Name?void 0:O,items:C instanceof mn.Name?void 0:C,dynamicProps:O instanceof mn.Name,dynamicItems:C instanceof mn.Name},x.source&&(x.source.evaluated=(0,mn.stringify)(x.evaluated))}return t.validate=x,t}catch(w){throw delete t.validate,delete t.validateName,_&&this.logger.error("Error compiling schema, function code:",_),w}finally{this._compilations.delete(t)}}Zt.compileSchema=ll;function wg(t,n,r){var o;r=(0,vn.resolveUrl)(this.opts.uriResolver,n,r);const a=t.refs[r];if(a)return a;let c=$g.call(this,t,r);if(c===void 0){const u=(o=t.localRefs)===null||o===void 0?void 0:o[r],{schemaId:f}=this.opts;u&&(c=new ao({schema:u,schemaId:f,root:t,baseId:n}))}if(c!==void 0)return t.refs[r]=bg.call(this,c)}Zt.resolveRef=wg;function bg(t){return(0,vn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:ll.call(this,t)}function vh(t){for(const n of this._compilations)if(Pg(n,t))return n}Zt.getCompilingSchema=vh;function Pg(t,n){return t.schema===n.schema&&t.root===n.root&&t.baseId===n.baseId}function $g(t,n){let r;for(;typeof(r=this.refs[n])=="string";)n=r;return r||this.schemas[n]||lo.call(this,t,n)}function lo(t,n){const r=this.opts.uriResolver.parse(n),o=(0,vn._getFullPath)(this.opts.uriResolver,r);let a=(0,vn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&o===a)return na.call(this,r,t);const c=(0,vn.normalizeId)(o),u=this.refs[c]||this.schemas[c];if(typeof u=="string"){const f=lo.call(this,t,u);return typeof(f==null?void 0:f.schema)!="object"?void 0:na.call(this,r,f)}if(typeof(u==null?void 0:u.schema)=="object"){if(u.validate||ll.call(this,u),c===(0,vn.normalizeId)(n)){const{schema:f}=u,{schemaId:d}=this.opts,p=f[d];return p&&(a=(0,vn.resolveUrl)(this.opts.uriResolver,a,p)),new ao({schema:f,schemaId:d,root:t,baseId:a})}return na.call(this,r,u)}}Zt.resolveSchema=lo;const Sg=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function na(t,{baseId:n,schema:r,root:o}){var a;if(((a=t.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const f of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const d=r[(0,Cu.unescapeFragment)(f)];if(d===void 0)return;r=d;const p=typeof r=="object"&&r[this.opts.schemaId];!Sg.has(f)&&p&&(n=(0,vn.resolveUrl)(this.opts.uriResolver,n,p))}let c;if(typeof r!="boolean"&&r.$ref&&!(0,Cu.schemaHasRulesButRef)(r,this.RULES)){const f=(0,vn.resolveUrl)(this.opts.uriResolver,n,r.$ref);c=lo.call(this,o,f)}const{schemaId:u}=this.opts;if(c=c||new ao({schema:r,schemaId:u,root:o,baseId:n}),c.schema!==c.root.schema)return c}const Eg="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Tg="Meta-schema for $data reference (JSON AnySchema extension proposal)",Cg="object",Lg=["$data"],xg={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Og=!1,Ig={$id:Eg,description:Tg,type:Cg,required:Lg,properties:xg,additionalProperties:Og};var cl={},Ta={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(t,n){(function(r,o){o(n)})(Qf,function(r){function o(){for(var E=arguments.length,v=Array(E),I=0;I1){v[0]=v[0].slice(0,-1);for(var V=v.length-1,Z=1;Z= 0x80 (not a basic code point)","invalid-input":"Invalid input"},we=C-A,ne=Math.floor,Se=String.fromCharCode;function be(E){throw new RangeError($e[E])}function ot(E,v){for(var I=[],V=E.length;V--;)I[V]=v(E[V]);return I}function ge(E,v){var I=E.split("@"),V="";I.length>1&&(V=I[0]+"@",E=I[1]),E=E.replace(he,".");var Z=E.split("."),me=ot(Z,v).join(".");return V+me}function De(E){for(var v=[],I=0,V=E.length;I=55296&&Z<=56319&&I>1,v+=ne(v/I);v>we*T>>1;Z+=C)v=ne(v/we);return ne(Z+(we+1)*v/(v+B))},K=function(v){var I=[],V=v.length,Z=0,me=Y,_e=J,Ze=v.lastIndexOf(ce);Ze<0&&(Ze=0);for(var Ge=0;Ge=128&&be("not-basic"),I.push(v.charCodeAt(Ge));for(var ut=Ze>0?Ze+1:0;ut=V&&be("invalid-input");var Oe=yt(v.charCodeAt(ut++));(Oe>=C||Oe>ne((O-Z)/Qe))&&be("overflow"),Z+=Oe*Qe;var tt=ft<=_e?A:ft>=_e+T?T:ft-_e;if(Oene(O/ht)&&be("overflow"),Qe*=ht}var Xe=I.length+1;_e=k(Z-je,Xe,je==0),ne(Z/Xe)>O-me&&be("overflow"),me+=ne(Z/Xe),Z%=Xe,I.splice(Z++,0,me)}return String.fromCodePoint.apply(String,I)},D=function(v){var I=[];v=De(v);var V=v.length,Z=Y,me=0,_e=J,Ze=!0,Ge=!1,ut=void 0;try{for(var je=v[Symbol.iterator](),Qe;!(Ze=(Qe=je.next()).done);Ze=!0){var ft=Qe.value;ft<128&&I.push(Se(ft))}}catch(nt){Ge=!0,ut=nt}finally{try{!Ze&&je.return&&je.return()}finally{if(Ge)throw ut}}var Oe=I.length,tt=Oe;for(Oe&&I.push(ce);tt=Z&&Inne((O-me)/kt)&&be("overflow"),me+=(ht-Z)*kt,Z=ht;var At=!0,bn=!1,Yt=void 0;try{for(var cn=v[Symbol.iterator](),Ue;!(At=(Ue=cn.next()).done);At=!0){var rt=Ue.value;if(rtO&&be("overflow"),rt==Z){for(var kn=me,un=C;;un+=C){var fn=un<=_e?A:un>=_e+T?T:un-_e;if(kn>6|192).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase():I="%"+(v>>12|224).toString(16).toUpperCase()+"%"+(v>>6&63|128).toString(16).toUpperCase()+"%"+(v&63|128).toString(16).toUpperCase(),I}function ke(E){for(var v="",I=0,V=E.length;I=194&&Z<224){if(V-I>=6){var me=parseInt(E.substr(I+4,2),16);v+=String.fromCharCode((Z&31)<<6|me&63)}else v+=E.substr(I,6);I+=6}else if(Z>=224){if(V-I>=9){var _e=parseInt(E.substr(I+4,2),16),Ze=parseInt(E.substr(I+7,2),16);v+=String.fromCharCode((Z&15)<<12|(_e&63)<<6|Ze&63)}else v+=E.substr(I,9);I+=9}else v+=E.substr(I,3),I+=3}return v}function Ce(E,v){function I(V){var Z=ke(V);return Z.match(v.UNRESERVED)?Z:V}return E.scheme&&(E.scheme=String(E.scheme).replace(v.PCT_ENCODED,I).toLowerCase().replace(v.NOT_SCHEME,"")),E.userinfo!==void 0&&(E.userinfo=String(E.userinfo).replace(v.PCT_ENCODED,I).replace(v.NOT_USERINFO,ae).replace(v.PCT_ENCODED,u)),E.host!==void 0&&(E.host=String(E.host).replace(v.PCT_ENCODED,I).toLowerCase().replace(v.NOT_HOST,ae).replace(v.PCT_ENCODED,u)),E.path!==void 0&&(E.path=String(E.path).replace(v.PCT_ENCODED,I).replace(E.scheme?v.NOT_PATH:v.NOT_PATH_NOSCHEME,ae).replace(v.PCT_ENCODED,u)),E.query!==void 0&&(E.query=String(E.query).replace(v.PCT_ENCODED,I).replace(v.NOT_QUERY,ae).replace(v.PCT_ENCODED,u)),E.fragment!==void 0&&(E.fragment=String(E.fragment).replace(v.PCT_ENCODED,I).replace(v.NOT_FRAGMENT,ae).replace(v.PCT_ENCODED,u)),E}function M(E){return E.replace(/^0*(.*)/,"$1")||"0"}function z(E,v){var I=E.match(v.IPV4ADDRESS)||[],V=$(I,2),Z=V[1];return Z?Z.split(".").map(M).join("."):E}function g(E,v){var I=E.match(v.IPV6ADDRESS)||[],V=$(I,3),Z=V[1],me=V[2];if(Z){for(var _e=Z.toLowerCase().split("::").reverse(),Ze=$(_e,2),Ge=Ze[0],ut=Ze[1],je=ut?ut.split(":").map(M):[],Qe=Ge.split(":").map(M),ft=v.IPV4ADDRESS.test(Qe[Qe.length-1]),Oe=ft?7:8,tt=Qe.length-Oe,ht=Array(Oe),Xe=0;Xe1){var Vn=ht.slice(0,Gt.index),In=ht.slice(Gt.index+Gt.length);Jt=Vn.join(":")+"::"+In.join(":")}else Jt=ht.join(":");return me&&(Jt+="%"+me),Jt}else return E}var b=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R="".match(/(){0}/)[1]===void 0;function F(E){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I={},V=v.iri!==!1?w:_;v.reference==="suffix"&&(E=(v.scheme?v.scheme+":":"")+"//"+E);var Z=E.match(b);if(Z){R?(I.scheme=Z[1],I.userinfo=Z[3],I.host=Z[4],I.port=parseInt(Z[5],10),I.path=Z[6]||"",I.query=Z[7],I.fragment=Z[8],isNaN(I.port)&&(I.port=Z[5])):(I.scheme=Z[1]||void 0,I.userinfo=E.indexOf("@")!==-1?Z[3]:void 0,I.host=E.indexOf("//")!==-1?Z[4]:void 0,I.port=parseInt(Z[5],10),I.path=Z[6]||"",I.query=E.indexOf("?")!==-1?Z[7]:void 0,I.fragment=E.indexOf("#")!==-1?Z[8]:void 0,isNaN(I.port)&&(I.port=E.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),I.host&&(I.host=g(z(I.host,V),V)),I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&!I.path&&I.query===void 0?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",v.reference&&v.reference!=="suffix"&&v.reference!==I.reference&&(I.error=I.error||"URI is not a "+v.reference+" reference.");var me=se[(v.scheme||I.scheme||"").toLowerCase()];if(!v.unicodeSupport&&(!me||!me.unicodeSupport)){if(I.host&&(v.domainHost||me&&me.domainHost))try{I.host=N.toASCII(I.host.replace(V.PCT_ENCODED,ke).toLowerCase())}catch(_e){I.error=I.error||"Host's domain name can not be converted to ASCII via punycode: "+_e}Ce(I,_)}else Ce(I,V);me&&me.parse&&me.parse(I,v)}else I.error=I.error||"URI can not be parsed.";return I}function W(E,v){var I=v.iri!==!1?w:_,V=[];return E.userinfo!==void 0&&(V.push(E.userinfo),V.push("@")),E.host!==void 0&&V.push(g(z(String(E.host),I),I).replace(I.IPV6ADDRESS,function(Z,me,_e){return"["+me+(_e?"%25"+_e:"")+"]"})),(typeof E.port=="number"||typeof E.port=="string")&&(V.push(":"),V.push(String(E.port))),V.length?V.join(""):void 0}var ee=/^\.\.?\//,re=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,te=/^\/?(?:.|\n)*?(?=\/|$)/;function G(E){for(var v=[];E.length;)if(E.match(ee))E=E.replace(ee,"");else if(E.match(re))E=E.replace(re,"/");else if(E.match(X))E=E.replace(X,"/"),v.pop();else if(E==="."||E==="..")E="";else{var I=E.match(te);if(I){var V=I[0];E=E.slice(V.length),v.push(V)}else throw new Error("Unexpected dot segment condition")}return v.join("")}function ie(E){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=v.iri?w:_,V=[],Z=se[(v.scheme||E.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(E,v),E.host&&!I.IPV6ADDRESS.test(E.host)){if(v.domainHost||Z&&Z.domainHost)try{E.host=v.iri?N.toUnicode(E.host):N.toASCII(E.host.replace(I.PCT_ENCODED,ke).toLowerCase())}catch(Ze){E.error=E.error||"Host's domain name can not be converted to "+(v.iri?"Unicode":"ASCII")+" via punycode: "+Ze}}Ce(E,I),v.reference!=="suffix"&&E.scheme&&(V.push(E.scheme),V.push(":"));var me=W(E,v);if(me!==void 0&&(v.reference!=="suffix"&&V.push("//"),V.push(me),E.path&&E.path.charAt(0)!=="/"&&V.push("/")),E.path!==void 0){var _e=E.path;!v.absolutePath&&(!Z||!Z.absolutePath)&&(_e=G(_e)),me===void 0&&(_e=_e.replace(/^\/\//,"/%2F")),V.push(_e)}return E.query!==void 0&&(V.push("?"),V.push(E.query)),E.fragment!==void 0&&(V.push("#"),V.push(E.fragment)),V.join("")}function pe(E,v){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},V=arguments[3],Z={};return V||(E=F(ie(E,I),I),v=F(ie(v,I),I)),I=I||{},!I.tolerant&&v.scheme?(Z.scheme=v.scheme,Z.userinfo=v.userinfo,Z.host=v.host,Z.port=v.port,Z.path=G(v.path||""),Z.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(Z.userinfo=v.userinfo,Z.host=v.host,Z.port=v.port,Z.path=G(v.path||""),Z.query=v.query):(v.path?(v.path.charAt(0)==="/"?Z.path=G(v.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?Z.path="/"+v.path:E.path?Z.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+v.path:Z.path=v.path,Z.path=G(Z.path)),Z.query=v.query):(Z.path=E.path,v.query!==void 0?Z.query=v.query:Z.query=E.query),Z.userinfo=E.userinfo,Z.host=E.host,Z.port=E.port),Z.scheme=E.scheme),Z.fragment=v.fragment,Z}function de(E,v,I){var V=d({scheme:"null"},I);return ie(pe(F(E,V),F(v,V),V,!0),V)}function ve(E,v){return typeof E=="string"?E=ie(F(E,v),v):c(E)==="object"&&(E=F(ie(E,v),v)),E}function Ie(E,v,I){return typeof E=="string"?E=ie(F(E,I),I):c(E)==="object"&&(E=ie(E,I)),typeof v=="string"?v=ie(F(v,I),I):c(v)==="object"&&(v=ie(v,I)),E===v}function He(E,v){return E&&E.toString().replace(!v||!v.iri?_.ESCAPE:w.ESCAPE,ae)}function ze(E,v){return E&&E.toString().replace(!v||!v.iri?_.PCT_ENCODED:w.PCT_ENCODED,ke)}var Ye={scheme:"http",domainHost:!0,parse:function(v,I){return v.host||(v.error=v.error||"HTTP URIs must have a host."),v},serialize:function(v,I){var V=String(v.scheme).toLowerCase()==="https";return(v.port===(V?443:80)||v.port==="")&&(v.port=void 0),v.path||(v.path="/"),v}},Ct={scheme:"https",domainHost:Ye.domainHost,parse:Ye.parse,serialize:Ye.serialize};function an(E){return typeof E.secure=="boolean"?E.secure:String(E.scheme).toLowerCase()==="wss"}var ln={scheme:"ws",domainHost:!0,parse:function(v,I){var V=v;return V.secure=an(V),V.resourceName=(V.path||"/")+(V.query?"?"+V.query:""),V.path=void 0,V.query=void 0,V},serialize:function(v,I){if((v.port===(an(v)?443:80)||v.port==="")&&(v.port=void 0),typeof v.secure=="boolean"&&(v.scheme=v.secure?"wss":"ws",v.secure=void 0),v.resourceName){var V=v.resourceName.split("?"),Z=$(V,2),me=Z[0],_e=Z[1];v.path=me&&me!=="/"?me:void 0,v.query=_e,v.resourceName=void 0}return v.fragment=void 0,v}},Wt={scheme:"wss",domainHost:ln.domainHost,parse:ln.parse,serialize:ln.serialize},fi={},$t="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",et="[0-9A-Fa-f]",Mi=a(a("%[EFef]"+et+"%"+et+et+"%"+et+et)+"|"+a("%[89A-Fa-f]"+et+"%"+et+et)+"|"+a("%"+et+et)),fo="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Hr="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ur=o(Hr,'[\\"\\\\]'),qr="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ho=new RegExp($t,"g"),Zn=new RegExp(Mi,"g"),po=new RegExp(o("[^]",fo,"[\\.]",'[\\"]',Ur),"g"),Kr=new RegExp(o("[^]",$t,qr),"g"),mo=Kr;function ar(E){var v=ke(E);return v.match(ho)?v:E}var Ni={scheme:"mailto",parse:function(v,I){var V=v,Z=V.to=V.path?V.path.split(","):[];if(V.path=void 0,V.query){for(var me=!1,_e={},Ze=V.query.split("&"),Ge=0,ut=Ze.length;Genew RegExp(q,k);x.code="new RegExp";const O=["removeAdditional","useDefaults","coerceTypes"],C=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),A={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},B=200;function U(q){var k,K,D,y,P,N,se,ae,ke,Ce,M,z,g,b,R,F,W,ee,re,X,te,G,ie,pe,de;const ve=q.strict,Ie=(k=q.code)===null||k===void 0?void 0:k.optimize,He=Ie===!0||Ie===void 0?1:Ie||0,ze=(D=(K=q.code)===null||K===void 0?void 0:K.regExp)!==null&&D!==void 0?D:x,Ye=(y=q.uriResolver)!==null&&y!==void 0?y:$.default;return{strictSchema:(N=(P=q.strictSchema)!==null&&P!==void 0?P:ve)!==null&&N!==void 0?N:!0,strictNumbers:(ae=(se=q.strictNumbers)!==null&&se!==void 0?se:ve)!==null&&ae!==void 0?ae:!0,strictTypes:(Ce=(ke=q.strictTypes)!==null&&ke!==void 0?ke:ve)!==null&&Ce!==void 0?Ce:"log",strictTuples:(z=(M=q.strictTuples)!==null&&M!==void 0?M:ve)!==null&&z!==void 0?z:"log",strictRequired:(b=(g=q.strictRequired)!==null&&g!==void 0?g:ve)!==null&&b!==void 0?b:!1,code:q.code?{...q.code,optimize:He,regExp:ze}:{optimize:He,regExp:ze},loopRequired:(R=q.loopRequired)!==null&&R!==void 0?R:B,loopEnum:(F=q.loopEnum)!==null&&F!==void 0?F:B,meta:(W=q.meta)!==null&&W!==void 0?W:!0,messages:(ee=q.messages)!==null&&ee!==void 0?ee:!0,inlineRefs:(re=q.inlineRefs)!==null&&re!==void 0?re:!0,schemaId:(X=q.schemaId)!==null&&X!==void 0?X:"$id",addUsedSchema:(te=q.addUsedSchema)!==null&&te!==void 0?te:!0,validateSchema:(G=q.validateSchema)!==null&&G!==void 0?G:!0,validateFormats:(ie=q.validateFormats)!==null&&ie!==void 0?ie:!0,unicodeRegExp:(pe=q.unicodeRegExp)!==null&&pe!==void 0?pe:!0,int32range:(de=q.int32range)!==null&&de!==void 0?de:!0,uriResolver:Ye}}class J{constructor(k={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...U(k)};const{es5:K,lines:D}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:C,es5:K,lines:D}),this.logger=ne(k.logger);const y=k.validateFormats;k.validateFormats=!1,this.RULES=(0,c.getRules)(),Y.call(this,A,k,"NOT SUPPORTED"),Y.call(this,T,k,"DEPRECATED","warn"),this._metaOpts=$e.call(this),k.formats&&oe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&he.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),ye.call(this),k.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:K,schemaId:D}=this.opts;let y=w;D==="id"&&(y={...w},y.id=y.$id,delete y.$id),K&&k&&this.addMetaSchema(y,y[D],!1)}defaultMeta(){const{meta:k,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[K]||k:void 0}validate(k,K){let D;if(typeof k=="string"){if(D=this.getSchema(k),!D)throw new Error(`no schema with key or ref "${k}"`)}else D=this.compile(k);const y=D(K);return"$async"in D||(this.errors=D.errors),y}compile(k,K){const D=this._addSchema(k,K);return D.validate||this._compileSchemaEnv(D)}compileAsync(k,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return y.call(this,k,K);async function y(Ce,M){await P.call(this,Ce.$schema);const z=this._addSchema(Ce,M);return z.validate||N.call(this,z)}async function P(Ce){Ce&&!this.getSchema(Ce)&&await y.call(this,{$ref:Ce},!0)}async function N(Ce){try{return this._compileSchemaEnv(Ce)}catch(M){if(!(M instanceof a.default))throw M;return se.call(this,M),await ae.call(this,M.missingSchema),N.call(this,Ce)}}function se({missingSchema:Ce,missingRef:M}){if(this.refs[Ce])throw new Error(`AnySchema ${Ce} is loaded but ${M} cannot be resolved`)}async function ae(Ce){const M=await ke.call(this,Ce);this.refs[Ce]||await P.call(this,M.$schema),this.refs[Ce]||this.addSchema(M,Ce,K)}async function ke(Ce){const M=this._loading[Ce];if(M)return M;try{return await(this._loading[Ce]=D(Ce))}finally{delete this._loading[Ce]}}}addSchema(k,K,D,y=this.opts.validateSchema){if(Array.isArray(k)){for(const N of k)this.addSchema(N,void 0,D,y);return this}let P;if(typeof k=="object"){const{schemaId:N}=this.opts;if(P=k[N],P!==void 0&&typeof P!="string")throw new Error(`schema ${N} must be string`)}return K=(0,d.normalizeId)(K||P),this._checkUnique(K),this.schemas[K]=this._addSchema(k,D,K,y,!0),this}addMetaSchema(k,K,D=this.opts.validateSchema){return this.addSchema(k,K,!0,D),this}validateSchema(k,K){if(typeof k=="boolean")return!0;let D;if(D=k.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate(D,k);if(!y&&K){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return y}getSchema(k){let K;for(;typeof(K=ce.call(this,k))=="string";)k=K;if(K===void 0){const{schemaId:D}=this.opts,y=new u.SchemaEnv({schema:{},schemaId:D});if(K=u.resolveSchema.call(this,y,k),!K)return;this.refs[k]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=ce.call(this,k);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const K=k;this._cache.delete(K);let D=k[this.opts.schemaId];return D&&(D=(0,d.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(const K of k)this.addKeyword(K);return this}addKeyword(k,K){let D;if(typeof k=="string")D=k,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=D);else if(typeof k=="object"&&K===void 0){if(K=k,D=K.keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(be.call(this,D,K),!K)return(0,_.eachItem)(D,P=>ot.call(this,P)),this;De.call(this,K);const y={...K,type:(0,p.getJSONTypes)(K.type),schemaType:(0,p.getJSONTypes)(K.schemaType)};return(0,_.eachItem)(D,y.type.length===0?P=>ot.call(this,P,y):P=>y.type.forEach(N=>ot.call(this,P,y,N))),this}getKeyword(k){const K=this.RULES.all[k];return typeof K=="object"?K.definition:!!K}removeKeyword(k){const{RULES:K}=this;delete K.keywords[k],delete K.all[k];for(const D of K.rules){const y=D.rules.findIndex(P=>P.keyword===k);y>=0&&D.rules.splice(y,1)}return this}addFormat(k,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[k]=K,this}errorsText(k=this.errors,{separator:K=", ",dataVar:D="data"}={}){return!k||k.length===0?"No errors":k.map(y=>`${D}${y.instancePath} ${y.message}`).reduce((y,P)=>y+K+P)}$dataMetaSchema(k,K){const D=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const y of K){const P=y.split("/").slice(1);let N=k;for(const se of P)N=N[se];for(const se in D){const ae=D[se];if(typeof ae!="object")continue;const{$data:ke}=ae.definition,Ce=N[se];ke&&Ce&&(N[se]=yt(Ce))}}return k}_removeAllSchemas(k,K){for(const D in k){const y=k[D];(!K||K.test(D))&&(typeof y=="string"?delete k[D]:y&&!y.meta&&(this._cache.delete(y.schema),delete k[D]))}}_addSchema(k,K,D,y=this.opts.validateSchema,P=this.opts.addUsedSchema){let N;const{schemaId:se}=this.opts;if(typeof k=="object")N=k[se];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let ae=this._cache.get(k);if(ae!==void 0)return ae;D=(0,d.normalizeId)(N||D);const ke=d.getSchemaRefs.call(this,k,D);return ae=new u.SchemaEnv({schema:k,schemaId:se,meta:K,baseId:D,localRefs:ke}),this._cache.set(ae.schema,ae),P&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=ae),y&&this.validateSchema(k,!0),ae}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):u.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const K=this.opts;this.opts=this._metaOpts;try{u.compileSchema.call(this,k)}finally{this.opts=K}}}J.ValidationError=o.default,J.MissingRefError=a.default,t.default=J;function Y(q,k,K,D="error"){for(const y in q){const P=y;P in k&&this.logger[D](`${K}: option ${y}. ${q[P]}`)}}function ce(q){return q=(0,d.normalizeId)(q),this.schemas[q]||this.refs[q]}function ye(){const q=this.opts.schemas;if(q)if(Array.isArray(q))this.addSchema(q);else for(const k in q)this.addSchema(q[k],k)}function oe(){for(const q in this.opts.formats){const k=this.opts.formats[q];k&&this.addFormat(q,k)}}function he(q){if(Array.isArray(q)){this.addVocabulary(q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in q){const K=q[k];K.keyword||(K.keyword=k),this.addKeyword(K)}}function $e(){const q={...this.opts};for(const k of O)delete q[k];return q}const we={log(){},warn(){},error(){}};function ne(q){if(q===!1)return we;if(q===void 0)return console;if(q.log&&q.warn&&q.error)return q;throw new Error("logger must implement log, warn and error methods")}const Se=/^[a-z_$][a-z0-9_$:-]*$/i;function be(q,k){const{RULES:K}=this;if((0,_.eachItem)(q,D=>{if(K.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!Se.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function ot(q,k,K){var D;const y=k==null?void 0:k.post;if(K&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let N=y?P.post:P.rules.find(({type:ae})=>ae===K);if(N||(N={type:K,rules:[]},P.rules.push(N)),P.keywords[q]=!0,!k)return;const se={keyword:q,definition:{...k,type:(0,p.getJSONTypes)(k.type),schemaType:(0,p.getJSONTypes)(k.schemaType)}};k.before?ge.call(this,N,se,k.before):N.rules.push(se),P.all[q]=se,(D=k.implements)===null||D===void 0||D.forEach(ae=>this.addKeyword(ae))}function ge(q,k,K){const D=q.rules.findIndex(y=>y.keyword===K);D>=0?q.rules.splice(D,0,k):(q.rules.push(k),this.logger.warn(`rule ${K} is not defined`))}function De(q){let{metaSchema:k}=q;k!==void 0&&(q.$data&&this.opts.$data&&(k=yt(k)),q.validateSchema=this.compile(k,!0))}const le={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function yt(q){return{anyOf:[q,le]}}})(th);var ul={},fl={},hl={};Object.defineProperty(hl,"__esModule",{value:!0});const Ag={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};hl.default=Ag;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.callRef=Ai.getValidate=void 0;const Rg=rr,Lu=Fe,Ft=Ve(),Ui=ui(),xu=Zt,bs=fe,Mg={keyword:"$ref",schemaType:"string",code(t){const{gen:n,schema:r,it:o}=t,{baseId:a,schemaEnv:c,validateName:u,opts:f,self:d}=o,{root:p}=c;if((r==="#"||r==="#/")&&a===p.baseId)return w();const _=xu.resolveRef.call(d,p,a,r);if(_===void 0)throw new Rg.default(o.opts.uriResolver,a,r);if(_ instanceof xu.SchemaEnv)return $(_);return x(_);function w(){if(c===p)return Is(t,u,c,c.$async);const O=n.scopeValue("root",{ref:p});return Is(t,(0,Ft._)`${O}.validate`,p,p.$async)}function $(O){const C=wh(t,O);Is(t,C,O,O.$async)}function x(O){const C=n.scopeValue("schema",f.code.source===!0?{ref:O,code:(0,Ft.stringify)(O)}:{ref:O}),A=n.name("valid"),T=t.subschema({schema:O,dataTypes:[],schemaPath:Ft.nil,topSchemaRef:C,errSchemaPath:r},A);t.mergeEvaluated(T),t.ok(A)}}};function wh(t,n){const{gen:r}=t;return n.validate?r.scopeValue("validate",{ref:n.validate}):(0,Ft._)`${r.scopeValue("wrapper",{ref:n})}.validate`}Ai.getValidate=wh;function Is(t,n,r,o){const{gen:a,it:c}=t,{allErrors:u,schemaEnv:f,opts:d}=c,p=d.passContext?Ui.default.this:Ft.nil;o?_():w();function _(){if(!f.$async)throw new Error("async schema referenced by sync schema");const O=a.let("valid");a.try(()=>{a.code((0,Ft._)`await ${(0,Lu.callValidateCode)(t,n,p)}`),x(n),u||a.assign(O,!0)},C=>{a.if((0,Ft._)`!(${C} instanceof ${c.ValidationError})`,()=>a.throw(C)),$(C),u||a.assign(O,!1)}),t.ok(O)}function w(){t.result((0,Lu.callValidateCode)(t,n,p),()=>x(n),()=>$(n))}function $(O){const C=(0,Ft._)`${O}.errors`;a.assign(Ui.default.vErrors,(0,Ft._)`${Ui.default.vErrors} === null ? ${C} : ${Ui.default.vErrors}.concat(${C})`),a.assign(Ui.default.errors,(0,Ft._)`${Ui.default.vErrors}.length`)}function x(O){var C;if(!c.opts.unevaluated)return;const A=(C=r==null?void 0:r.validate)===null||C===void 0?void 0:C.evaluated;if(c.props!==!0)if(A&&!A.dynamicProps)A.props!==void 0&&(c.props=bs.mergeEvaluated.props(a,A.props,c.props));else{const T=a.var("props",(0,Ft._)`${O}.evaluated.props`);c.props=bs.mergeEvaluated.props(a,T,c.props,Ft.Name)}if(c.items!==!0)if(A&&!A.dynamicItems)A.items!==void 0&&(c.items=bs.mergeEvaluated.items(a,A.items,c.items));else{const T=a.var("items",(0,Ft._)`${O}.evaluated.items`);c.items=bs.mergeEvaluated.items(a,T,c.items,Ft.Name)}}}Ai.callRef=Is;Ai.default=Mg;Object.defineProperty(fl,"__esModule",{value:!0});const Ng=hl,Dg=Ai,zg=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ng.default,Dg.default];fl.default=zg;var dl={},pl={};Object.defineProperty(pl,"__esModule",{value:!0});const Fs=Ve(),Jn=Fs.operators,Zs={maximum:{okStr:"<=",ok:Jn.LTE,fail:Jn.GT},minimum:{okStr:">=",ok:Jn.GTE,fail:Jn.LT},exclusiveMaximum:{okStr:"<",ok:Jn.LT,fail:Jn.GTE},exclusiveMinimum:{okStr:">",ok:Jn.GT,fail:Jn.LTE}},jg={message:({keyword:t,schemaCode:n})=>(0,Fs.str)`must be ${Zs[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>(0,Fs._)`{comparison: ${Zs[t].okStr}, limit: ${n}}`},Bg={keyword:Object.keys(Zs),type:"number",schemaType:"number",$data:!0,error:jg,code(t){const{keyword:n,data:r,schemaCode:o}=t;t.fail$data((0,Fs._)`${r} ${Zs[n].fail} ${o} || isNaN(${r})`)}};pl.default=Bg;var ml={};Object.defineProperty(ml,"__esModule",{value:!0});const Or=Ve(),Fg={message:({schemaCode:t})=>(0,Or.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Or._)`{multipleOf: ${t}}`},Zg={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Fg,code(t){const{gen:n,data:r,schemaCode:o,it:a}=t,c=a.opts.multipleOfPrecision,u=n.let("res"),f=c?(0,Or._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,Or._)`${u} !== parseInt(${u})`;t.fail$data((0,Or._)`(${o} === 0 || (${u} = ${r}/${o}, ${f}))`)}};ml.default=Zg;var _l={},gl={};Object.defineProperty(gl,"__esModule",{value:!0});function bh(t){const n=t.length;let r=0,o=0,a;for(;o=55296&&a<=56319&&o(0,Ei._)`{limit: ${t}}`},qg={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Ug,code(t){const{keyword:n,data:r,schemaCode:o,it:a}=t,c=n==="maxLength"?Ei.operators.GT:Ei.operators.LT,u=a.opts.unicode===!1?(0,Ei._)`${r}.length`:(0,Ei._)`${(0,Vg.useFunc)(t.gen,Hg.default)}(${r})`;t.fail$data((0,Ei._)`${u} ${c} ${o}`)}};_l.default=qg;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});const Kg=Fe,Vs=Ve(),Wg={message:({schemaCode:t})=>(0,Vs.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Vs._)`{pattern: ${t}}`},Gg={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Wg,code(t){const{data:n,$data:r,schema:o,schemaCode:a,it:c}=t,u=c.opts.unicodeRegExp?"u":"",f=r?(0,Vs._)`(new RegExp(${a}, ${u}))`:(0,Kg.usePattern)(t,o);t.fail$data((0,Vs._)`!${f}.test(${n})`)}};vl.default=Gg;var yl={};Object.defineProperty(yl,"__esModule",{value:!0});const Ir=Ve(),Jg={message({keyword:t,schemaCode:n}){const r=t==="maxProperties"?"more":"fewer";return(0,Ir.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:t})=>(0,Ir._)`{limit: ${t}}`},Yg={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Jg,code(t){const{keyword:n,data:r,schemaCode:o}=t,a=n==="maxProperties"?Ir.operators.GT:Ir.operators.LT;t.fail$data((0,Ir._)`Object.keys(${r}).length ${a} ${o}`)}};yl.default=Yg;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});const wr=Fe,kr=Ve(),Xg=fe,Qg={message:({params:{missingProperty:t}})=>(0,kr.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,kr._)`{missingProperty: ${t}}`},ev={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Qg,code(t){const{gen:n,schema:r,schemaCode:o,data:a,$data:c,it:u}=t,{opts:f}=u;if(!c&&r.length===0)return;const d=r.length>=f.loopRequired;if(u.allErrors?p():_(),f.strictRequired){const x=t.parentSchema.properties,{definedProperties:O}=t.it;for(const C of r)if((x==null?void 0:x[C])===void 0&&!O.has(C)){const A=u.schemaEnv.baseId+u.errSchemaPath,T=`required property "${C}" is not defined at "${A}" (strictRequired)`;(0,Xg.checkStrictMode)(u,T,u.opts.strictRequired)}}function p(){if(d||c)t.block$data(kr.nil,w);else for(const x of r)(0,wr.checkReportMissingProp)(t,x)}function _(){const x=n.let("missing");if(d||c){const O=n.let("valid",!0);t.block$data(O,()=>$(x,O)),t.ok(O)}else n.if((0,wr.checkMissingProp)(t,r,x)),(0,wr.reportMissingProp)(t,x),n.else()}function w(){n.forOf("prop",o,x=>{t.setParams({missingProperty:x}),n.if((0,wr.noPropertyInData)(n,a,x,f.ownProperties),()=>t.error())})}function $(x,O){t.setParams({missingProperty:x}),n.forOf(x,o,()=>{n.assign(O,(0,wr.propertyInData)(n,a,x,f.ownProperties)),n.if((0,kr.not)(O),()=>{t.error(),n.break()})},kr.nil)}}};wl.default=ev;var bl={};Object.defineProperty(bl,"__esModule",{value:!0});const Ar=Ve(),tv={message({keyword:t,schemaCode:n}){const r=t==="maxItems"?"more":"fewer";return(0,Ar.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:t})=>(0,Ar._)`{limit: ${t}}`},nv={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tv,code(t){const{keyword:n,data:r,schemaCode:o}=t,a=n==="maxItems"?Ar.operators.GT:Ar.operators.LT;t.fail$data((0,Ar._)`${r}.length ${a} ${o}`)}};bl.default=nv;var Pl={},Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});const Ph=dh;Ph.code='require("ajv/dist/runtime/equal").default';Zr.default=Ph;Object.defineProperty(Pl,"__esModule",{value:!0});const ia=wt,xt=Ve(),iv=fe,rv=Zr,sv={message:({params:{i:t,j:n}})=>(0,xt.str)`must NOT have duplicate items (items ## ${n} and ${t} are identical)`,params:({params:{i:t,j:n}})=>(0,xt._)`{i: ${t}, j: ${n}}`},ov={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:sv,code(t){const{gen:n,data:r,$data:o,schema:a,parentSchema:c,schemaCode:u,it:f}=t;if(!o&&!a)return;const d=n.let("valid"),p=c.items?(0,ia.getSchemaTypes)(c.items):[];t.block$data(d,_,(0,xt._)`${u} === false`),t.ok(d);function _(){const O=n.let("i",(0,xt._)`${r}.length`),C=n.let("j");t.setParams({i:O,j:C}),n.assign(d,!0),n.if((0,xt._)`${O} > 1`,()=>(w()?$:x)(O,C))}function w(){return p.length>0&&!p.some(O=>O==="object"||O==="array")}function $(O,C){const A=n.name("item"),T=(0,ia.checkDataTypes)(p,A,f.opts.strictNumbers,ia.DataType.Wrong),B=n.const("indices",(0,xt._)`{}`);n.for((0,xt._)`;${O}--;`,()=>{n.let(A,(0,xt._)`${r}[${O}]`),n.if(T,(0,xt._)`continue`),p.length>1&&n.if((0,xt._)`typeof ${A} == "string"`,(0,xt._)`${A} += "_"`),n.if((0,xt._)`typeof ${B}[${A}] == "number"`,()=>{n.assign(C,(0,xt._)`${B}[${A}]`),t.error(),n.assign(d,!1).break()}).code((0,xt._)`${B}[${A}] = ${O}`)})}function x(O,C){const A=(0,iv.useFunc)(n,rv.default),T=n.name("outer");n.label(T).for((0,xt._)`;${O}--;`,()=>n.for((0,xt._)`${C} = ${O}; ${C}--;`,()=>n.if((0,xt._)`${A}(${r}[${O}], ${r}[${C}])`,()=>{t.error(),n.assign(d,!1).break(T)})))}}};Pl.default=ov;var $l={};Object.defineProperty($l,"__esModule",{value:!0});const Ca=Ve(),av=fe,lv=Zr,cv={message:"must be equal to constant",params:({schemaCode:t})=>(0,Ca._)`{allowedValue: ${t}}`},uv={keyword:"const",$data:!0,error:cv,code(t){const{gen:n,data:r,$data:o,schemaCode:a,schema:c}=t;o||c&&typeof c=="object"?t.fail$data((0,Ca._)`!${(0,av.useFunc)(n,lv.default)}(${r}, ${a})`):t.fail((0,Ca._)`${c} !== ${r}`)}};$l.default=uv;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});const Pr=Ve(),fv=fe,hv=Zr,dv={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Pr._)`{allowedValues: ${t}}`},pv={keyword:"enum",schemaType:"array",$data:!0,error:dv,code(t){const{gen:n,data:r,$data:o,schema:a,schemaCode:c,it:u}=t;if(!o&&a.length===0)throw new Error("enum must have non-empty array");const f=a.length>=u.opts.loopEnum;let d;const p=()=>d??(d=(0,fv.useFunc)(n,hv.default));let _;if(f||o)_=n.let("valid"),t.block$data(_,w);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const x=n.const("vSchema",c);_=(0,Pr.or)(...a.map((O,C)=>$(x,C)))}t.pass(_);function w(){n.assign(_,!1),n.forOf("v",c,x=>n.if((0,Pr._)`${p()}(${r}, ${x})`,()=>n.assign(_,!0).break()))}function $(x,O){const C=a[O];return typeof C=="object"&&C!==null?(0,Pr._)`${p()}(${r}, ${x}[${O}])`:(0,Pr._)`${r} === ${C}`}}};Sl.default=pv;Object.defineProperty(dl,"__esModule",{value:!0});const mv=pl,_v=ml,gv=_l,vv=vl,yv=yl,wv=wl,bv=bl,Pv=Pl,$v=$l,Sv=Sl,Ev=[mv.default,_v.default,gv.default,vv.default,yv.default,wv.default,bv.default,Pv.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},$v.default,Sv.default];dl.default=Ev;var El={},sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.validateAdditionalItems=void 0;const Ti=Ve(),La=fe,Tv={message:({params:{len:t}})=>(0,Ti.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ti._)`{limit: ${t}}`},Cv={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Tv,code(t){const{parentSchema:n,it:r}=t,{items:o}=n;if(!Array.isArray(o)){(0,La.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}$h(t,o)}};function $h(t,n){const{gen:r,schema:o,data:a,keyword:c,it:u}=t;u.items=!0;const f=r.const("len",(0,Ti._)`${a}.length`);if(o===!1)t.setParams({len:n.length}),t.pass((0,Ti._)`${f} <= ${n.length}`);else if(typeof o=="object"&&!(0,La.alwaysValidSchema)(u,o)){const p=r.var("valid",(0,Ti._)`${f} <= ${n.length}`);r.if((0,Ti.not)(p),()=>d(p)),t.ok(p)}function d(p){r.forRange("i",n.length,f,_=>{t.subschema({keyword:c,dataProp:_,dataPropType:La.Type.Num},p),u.allErrors||r.if((0,Ti.not)(p),()=>r.break())})}}sr.validateAdditionalItems=$h;sr.default=Cv;var Tl={},or={};Object.defineProperty(or,"__esModule",{value:!0});or.validateTuple=void 0;const Ou=Ve(),ks=fe,Lv=Fe,xv={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:n,it:r}=t;if(Array.isArray(n))return Sh(t,"additionalItems",n);r.items=!0,!(0,ks.alwaysValidSchema)(r,n)&&t.ok((0,Lv.validateArray)(t))}};function Sh(t,n,r=t.schema){const{gen:o,parentSchema:a,data:c,keyword:u,it:f}=t;_(a),f.opts.unevaluated&&r.length&&f.items!==!0&&(f.items=ks.mergeEvaluated.items(o,r.length,f.items));const d=o.name("valid"),p=o.const("len",(0,Ou._)`${c}.length`);r.forEach((w,$)=>{(0,ks.alwaysValidSchema)(f,w)||(o.if((0,Ou._)`${p} > ${$}`,()=>t.subschema({keyword:u,schemaProp:$,dataProp:$},d)),t.ok(d))});function _(w){const{opts:$,errSchemaPath:x}=f,O=r.length,C=O===w.minItems&&(O===w.maxItems||w[n]===!1);if($.strictTuples&&!C){const A=`"${u}" is ${O}-tuple, but minItems or maxItems/${n} are not specified or different at path "${x}"`;(0,ks.checkStrictMode)(f,A,$.strictTuples)}}}or.validateTuple=Sh;or.default=xv;Object.defineProperty(Tl,"__esModule",{value:!0});const Ov=or,Iv={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Ov.validateTuple)(t,"items")};Tl.default=Iv;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});const Iu=Ve(),kv=fe,Av=Fe,Rv=sr,Mv={message:({params:{len:t}})=>(0,Iu.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Iu._)`{limit: ${t}}`},Nv={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Mv,code(t){const{schema:n,parentSchema:r,it:o}=t,{prefixItems:a}=r;o.items=!0,!(0,kv.alwaysValidSchema)(o,n)&&(a?(0,Rv.validateAdditionalItems)(t,a):t.ok((0,Av.validateArray)(t)))}};Cl.default=Nv;var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});const nn=Ve(),Ps=fe,Dv={message:({params:{min:t,max:n}})=>n===void 0?(0,nn.str)`must contain at least ${t} valid item(s)`:(0,nn.str)`must contain at least ${t} and no more than ${n} valid item(s)`,params:({params:{min:t,max:n}})=>n===void 0?(0,nn._)`{minContains: ${t}}`:(0,nn._)`{minContains: ${t}, maxContains: ${n}}`},zv={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Dv,code(t){const{gen:n,schema:r,parentSchema:o,data:a,it:c}=t;let u,f;const{minContains:d,maxContains:p}=o;c.opts.next?(u=d===void 0?1:d,f=p):u=1;const _=n.const("len",(0,nn._)`${a}.length`);if(t.setParams({min:u,max:f}),f===void 0&&u===0){(0,Ps.checkStrictMode)(c,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,Ps.checkStrictMode)(c,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Ps.alwaysValidSchema)(c,r)){let C=(0,nn._)`${_} >= ${u}`;f!==void 0&&(C=(0,nn._)`${C} && ${_} <= ${f}`),t.pass(C);return}c.items=!0;const w=n.name("valid");f===void 0&&u===1?x(w,()=>n.if(w,()=>n.break())):u===0?(n.let(w,!0),f!==void 0&&n.if((0,nn._)`${a}.length > 0`,$)):(n.let(w,!1),$()),t.result(w,()=>t.reset());function $(){const C=n.name("_valid"),A=n.let("count",0);x(C,()=>n.if(C,()=>O(A)))}function x(C,A){n.forRange("i",0,_,T=>{t.subschema({keyword:"contains",dataProp:T,dataPropType:Ps.Type.Num,compositeRule:!0},C),A()})}function O(C){n.code((0,nn._)`${C}++`),f===void 0?n.if((0,nn._)`${C} >= ${u}`,()=>n.assign(w,!0).break()):(n.if((0,nn._)`${C} > ${f}`,()=>n.assign(w,!1).break()),u===1?n.assign(w,!0):n.if((0,nn._)`${C} >= ${u}`,()=>n.assign(w,!0)))}}};Ll.default=zv;var Eh={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=Ve(),r=fe,o=Fe;t.error={message:({params:{property:d,depsCount:p,deps:_}})=>{const w=p===1?"property":"properties";return(0,n.str)`must have ${w} ${_} when property ${d} is present`},params:({params:{property:d,depsCount:p,deps:_,missingProperty:w}})=>(0,n._)`{property: ${d}, + missingProperty: ${w}, + depsCount: ${p}, + deps: ${_}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[p,_]=c(d);u(d,p),f(d,_)}};function c({schema:d}){const p={},_={};for(const w in d){if(w==="__proto__")continue;const $=Array.isArray(d[w])?p:_;$[w]=d[w]}return[p,_]}function u(d,p=d.schema){const{gen:_,data:w,it:$}=d;if(Object.keys(p).length===0)return;const x=_.let("missing");for(const O in p){const C=p[O];if(C.length===0)continue;const A=(0,o.propertyInData)(_,w,O,$.opts.ownProperties);d.setParams({property:O,depsCount:C.length,deps:C.join(", ")}),$.allErrors?_.if(A,()=>{for(const T of C)(0,o.checkReportMissingProp)(d,T)}):(_.if((0,n._)`${A} && (${(0,o.checkMissingProp)(d,C,x)})`),(0,o.reportMissingProp)(d,x),_.else())}}t.validatePropertyDeps=u;function f(d,p=d.schema){const{gen:_,data:w,keyword:$,it:x}=d,O=_.name("valid");for(const C in p)(0,r.alwaysValidSchema)(x,p[C])||(_.if((0,o.propertyInData)(_,w,C,x.opts.ownProperties),()=>{const A=d.subschema({keyword:$,schemaProp:C},O);d.mergeValidEvaluated(A,O)},()=>_.var(O,!0)),d.ok(O))}t.validateSchemaDeps=f,t.default=a})(Eh);var xl={};Object.defineProperty(xl,"__esModule",{value:!0});const Th=Ve(),jv=fe,Bv={message:"property name must be valid",params:({params:t})=>(0,Th._)`{propertyName: ${t.propertyName}}`},Fv={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Bv,code(t){const{gen:n,schema:r,data:o,it:a}=t;if((0,jv.alwaysValidSchema)(a,r))return;const c=n.name("valid");n.forIn("key",o,u=>{t.setParams({propertyName:u}),t.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),n.if((0,Th.not)(c),()=>{t.error(!0),a.allErrors||n.break()})}),t.ok(c)}};xl.default=Fv;var co={};Object.defineProperty(co,"__esModule",{value:!0});const $s=Fe,_n=Ve(),Zv=ui(),Ss=fe,Vv={message:"must NOT have additional properties",params:({params:t})=>(0,_n._)`{additionalProperty: ${t.additionalProperty}}`},Hv={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Vv,code(t){const{gen:n,schema:r,parentSchema:o,data:a,errsCount:c,it:u}=t;if(!c)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=u;if(u.props=!0,d.removeAdditional!=="all"&&(0,Ss.alwaysValidSchema)(u,r))return;const p=(0,$s.allSchemaProperties)(o.properties),_=(0,$s.allSchemaProperties)(o.patternProperties);w(),t.ok((0,_n._)`${c} === ${Zv.default.errors}`);function w(){n.forIn("key",a,A=>{!p.length&&!_.length?O(A):n.if($(A),()=>O(A))})}function $(A){let T;if(p.length>8){const B=(0,Ss.schemaRefOrVal)(u,o.properties,"properties");T=(0,$s.isOwnProperty)(n,B,A)}else p.length?T=(0,_n.or)(...p.map(B=>(0,_n._)`${A} === ${B}`)):T=_n.nil;return _.length&&(T=(0,_n.or)(T,..._.map(B=>(0,_n._)`${(0,$s.usePattern)(t,B)}.test(${A})`))),(0,_n.not)(T)}function x(A){n.code((0,_n._)`delete ${a}[${A}]`)}function O(A){if(d.removeAdditional==="all"||d.removeAdditional&&r===!1){x(A);return}if(r===!1){t.setParams({additionalProperty:A}),t.error(),f||n.break();return}if(typeof r=="object"&&!(0,Ss.alwaysValidSchema)(u,r)){const T=n.name("valid");d.removeAdditional==="failing"?(C(A,T,!1),n.if((0,_n.not)(T),()=>{t.reset(),x(A)})):(C(A,T),f||n.if((0,_n.not)(T),()=>n.break()))}}function C(A,T,B){const U={keyword:"additionalProperties",dataProp:A,dataPropType:Ss.Type.Str};B===!1&&Object.assign(U,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(U,T)}}};co.default=Hv;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});const Uv=oo(),ku=Fe,ra=fe,Au=co,qv={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:n,schema:r,parentSchema:o,data:a,it:c}=t;c.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&Au.default.code(new Uv.KeywordCxt(c,Au.default,"additionalProperties"));const u=(0,ku.allSchemaProperties)(r);for(const w of u)c.definedProperties.add(w);c.opts.unevaluated&&u.length&&c.props!==!0&&(c.props=ra.mergeEvaluated.props(n,(0,ra.toHash)(u),c.props));const f=u.filter(w=>!(0,ra.alwaysValidSchema)(c,r[w]));if(f.length===0)return;const d=n.name("valid");for(const w of f)p(w)?_(w):(n.if((0,ku.propertyInData)(n,a,w,c.opts.ownProperties)),_(w),c.allErrors||n.else().var(d,!0),n.endIf()),t.it.definedProperties.add(w),t.ok(d);function p(w){return c.opts.useDefaults&&!c.compositeRule&&r[w].default!==void 0}function _(w){t.subschema({keyword:"properties",schemaProp:w,dataProp:w},d)}}};Ol.default=qv;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});const Ru=Fe,Es=Ve(),Mu=fe,Nu=fe,Kv={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:n,schema:r,data:o,parentSchema:a,it:c}=t,{opts:u}=c,f=(0,Ru.allSchemaProperties)(r),d=f.filter(C=>(0,Mu.alwaysValidSchema)(c,r[C]));if(f.length===0||d.length===f.length&&(!c.opts.unevaluated||c.props===!0))return;const p=u.strictSchema&&!u.allowMatchingProperties&&a.properties,_=n.name("valid");c.props!==!0&&!(c.props instanceof Es.Name)&&(c.props=(0,Nu.evaluatedPropsToName)(n,c.props));const{props:w}=c;$();function $(){for(const C of f)p&&x(C),c.allErrors?O(C):(n.var(_,!0),O(C),n.if(_))}function x(C){for(const A in p)new RegExp(C).test(A)&&(0,Mu.checkStrictMode)(c,`property ${A} matches pattern ${C} (use allowMatchingProperties)`)}function O(C){n.forIn("key",o,A=>{n.if((0,Es._)`${(0,Ru.usePattern)(t,C)}.test(${A})`,()=>{const T=d.includes(C);T||t.subschema({keyword:"patternProperties",schemaProp:C,dataProp:A,dataPropType:Nu.Type.Str},_),c.opts.unevaluated&&w!==!0?n.assign((0,Es._)`${w}[${A}]`,!0):!T&&!c.allErrors&&n.if((0,Es.not)(_),()=>n.break())})})}}};Il.default=Kv;var kl={};Object.defineProperty(kl,"__esModule",{value:!0});const Wv=fe,Gv={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:n,schema:r,it:o}=t;if((0,Wv.alwaysValidSchema)(o,r)){t.fail();return}const a=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),t.failResult(a,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};kl.default=Gv;var Al={};Object.defineProperty(Al,"__esModule",{value:!0});const Jv=Fe,Yv={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Jv.validateUnion,error:{message:"must match a schema in anyOf"}};Al.default=Yv;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});const As=Ve(),Xv=fe,Qv={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,As._)`{passingSchemas: ${t.passing}}`},ey={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Qv,code(t){const{gen:n,schema:r,parentSchema:o,it:a}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const c=r,u=n.let("valid",!1),f=n.let("passing",null),d=n.name("_valid");t.setParams({passing:f}),n.block(p),t.result(u,()=>t.reset(),()=>t.error(!0));function p(){c.forEach((_,w)=>{let $;(0,Xv.alwaysValidSchema)(a,_)?n.var(d,!0):$=t.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},d),w>0&&n.if((0,As._)`${d} && ${u}`).assign(u,!1).assign(f,(0,As._)`[${f}, ${w}]`).else(),n.if(d,()=>{n.assign(u,!0),n.assign(f,w),$&&t.mergeEvaluated($,As.Name)})})}}};Rl.default=ey;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});const ty=fe,ny={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:r,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=n.name("valid");r.forEach((c,u)=>{if((0,ty.alwaysValidSchema)(o,c))return;const f=t.subschema({keyword:"allOf",schemaProp:u},a);t.ok(a),t.mergeEvaluated(f)})}};Ml.default=ny;var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});const Hs=Ve(),Ch=fe,iy={message:({params:t})=>(0,Hs.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Hs._)`{failingKeyword: ${t.ifClause}}`},ry={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:iy,code(t){const{gen:n,parentSchema:r,it:o}=t;r.then===void 0&&r.else===void 0&&(0,Ch.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=Du(o,"then"),c=Du(o,"else");if(!a&&!c)return;const u=n.let("valid",!0),f=n.name("_valid");if(d(),t.reset(),a&&c){const _=n.let("ifClause");t.setParams({ifClause:_}),n.if(f,p("then",_),p("else",_))}else a?n.if(f,p("then")):n.if((0,Hs.not)(f),p("else"));t.pass(u,()=>t.error(!0));function d(){const _=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(_)}function p(_,w){return()=>{const $=t.subschema({keyword:_},f);n.assign(u,f),t.mergeValidEvaluated($,u),w?n.assign(w,(0,Hs._)`${_}`):t.setParams({ifClause:_})}}}};function Du(t,n){const r=t.schema[n];return r!==void 0&&!(0,Ch.alwaysValidSchema)(t,r)}Nl.default=ry;var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});const sy=fe,oy={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:r}){n.if===void 0&&(0,sy.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Dl.default=oy;Object.defineProperty(El,"__esModule",{value:!0});const ay=sr,ly=Tl,cy=or,uy=Cl,fy=Ll,hy=Eh,dy=xl,py=co,my=Ol,_y=Il,gy=kl,vy=Al,yy=Rl,wy=Ml,by=Nl,Py=Dl;function $y(t=!1){const n=[gy.default,vy.default,yy.default,wy.default,by.default,Py.default,dy.default,py.default,hy.default,my.default,_y.default];return t?n.push(ly.default,uy.default):n.push(ay.default,cy.default),n.push(fy.default),n}El.default=$y;var zl={},jl={};Object.defineProperty(jl,"__esModule",{value:!0});const dt=Ve(),Sy={message:({schemaCode:t})=>(0,dt.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,dt._)`{format: ${t}}`},Ey={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Sy,code(t,n){const{gen:r,data:o,$data:a,schema:c,schemaCode:u,it:f}=t,{opts:d,errSchemaPath:p,schemaEnv:_,self:w}=f;if(!d.validateFormats)return;a?$():x();function $(){const O=r.scopeValue("formats",{ref:w.formats,code:d.code.formats}),C=r.const("fDef",(0,dt._)`${O}[${u}]`),A=r.let("fType"),T=r.let("format");r.if((0,dt._)`typeof ${C} == "object" && !(${C} instanceof RegExp)`,()=>r.assign(A,(0,dt._)`${C}.type || "string"`).assign(T,(0,dt._)`${C}.validate`),()=>r.assign(A,(0,dt._)`"string"`).assign(T,C)),t.fail$data((0,dt.or)(B(),U()));function B(){return d.strictSchema===!1?dt.nil:(0,dt._)`${u} && !${T}`}function U(){const J=_.$async?(0,dt._)`(${C}.async ? await ${T}(${o}) : ${T}(${o}))`:(0,dt._)`${T}(${o})`,Y=(0,dt._)`(typeof ${T} == "function" ? ${J} : ${T}.test(${o}))`;return(0,dt._)`${T} && ${T} !== true && ${A} === ${n} && !${Y}`}}function x(){const O=w.formats[c];if(!O){B();return}if(O===!0)return;const[C,A,T]=U(O);C===n&&t.pass(J());function B(){if(d.strictSchema===!1){w.logger.warn(Y());return}throw new Error(Y());function Y(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function U(Y){const ce=Y instanceof RegExp?(0,dt.regexpCode)(Y):d.code.formats?(0,dt._)`${d.code.formats}${(0,dt.getProperty)(c)}`:void 0,ye=r.scopeValue("formats",{key:c,ref:Y,code:ce});return typeof Y=="object"&&!(Y instanceof RegExp)?[Y.type||"string",Y.validate,(0,dt._)`${ye}.validate`]:["string",Y,ye]}function J(){if(typeof O=="object"&&!(O instanceof RegExp)&&O.async){if(!_.$async)throw new Error("async format in sync schema");return(0,dt._)`await ${T}(${o})`}return typeof A=="function"?(0,dt._)`${T}(${o})`:(0,dt._)`${T}.test(${o})`}}}};jl.default=Ey;Object.defineProperty(zl,"__esModule",{value:!0});const Ty=jl,Cy=[Ty.default];zl.default=Cy;var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.contentVocabulary=nr.metadataVocabulary=void 0;nr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];nr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(ul,"__esModule",{value:!0});const Ly=fl,xy=dl,Oy=El,Iy=zl,zu=nr,ky=[Ly.default,xy.default,(0,Oy.default)(),Iy.default,zu.metadataVocabulary,zu.contentVocabulary];ul.default=ky;var Bl={},uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.DiscrError=void 0;var ju;(function(t){t.Tag="tag",t.Mapping="mapping"})(ju||(uo.DiscrError=ju={}));Object.defineProperty(Bl,"__esModule",{value:!0});const Ki=Ve(),xa=uo,Bu=Zt,Ay=rr,Ry=fe,My={message:({params:{discrError:t,tagName:n}})=>t===xa.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:t,tag:n,tagName:r}})=>(0,Ki._)`{error: ${t}, tag: ${r}, tagValue: ${n}}`},Ny={keyword:"discriminator",type:"object",schemaType:"object",error:My,code(t){const{gen:n,data:r,schema:o,parentSchema:a,it:c}=t,{oneOf:u}=a;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=o.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const d=n.let("valid",!1),p=n.const("tag",(0,Ki._)`${r}${(0,Ki.getProperty)(f)}`);n.if((0,Ki._)`typeof ${p} == "string"`,()=>_(),()=>t.error(!1,{discrError:xa.DiscrError.Tag,tag:p,tagName:f})),t.ok(d);function _(){const x=$();n.if(!1);for(const O in x)n.elseIf((0,Ki._)`${p} === ${O}`),n.assign(d,w(x[O]));n.else(),t.error(!1,{discrError:xa.DiscrError.Mapping,tag:p,tagName:f}),n.endIf()}function w(x){const O=n.name("valid"),C=t.subschema({keyword:"oneOf",schemaProp:x},O);return t.mergeEvaluated(C,Ki.Name),O}function $(){var x;const O={},C=T(a);let A=!0;for(let J=0;Jthis.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(c,u):c;this.addMetaSchema(O,f,!1),this.refs["http://json-schema.org/schema"]=f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}n.Ajv=d,t.exports=n=d,t.exports.Ajv=d,Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var p=oo();Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var _=Ve();Object.defineProperty(n,"_",{enumerable:!0,get:function(){return _._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return _.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return _.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return _.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return _.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return _.CodeGen}});var w=al();Object.defineProperty(n,"ValidationError",{enumerable:!0,get:function(){return w.default}});var $=rr;Object.defineProperty(n,"MissingRefError",{enumerable:!0,get:function(){return $.default}})})(Pa,Pa.exports);var Hy=Pa.exports;const Uy=eh(Hy),Vr=new Uy({coerceTypes:!0}),qy={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0},Ky=Vr.compile(qy),Wy={type:"object",properties:{Artist:{type:"string"},Description:{type:"string",nullable:!0},Photograph:{type:"object",properties:{Image:{type:"string"},Photographer:{type:"string"}},required:["Image","Photographer"],nullable:!0},Location:{type:"object",properties:{Coordinates:{type:"string",nullable:!0},"Located On":{type:"string"}},required:["Located On"]},Medium:{type:"string"},Title:{type:"string"}},required:["Artist","Title","Location"],additionalProperties:!0},Oa=Vr.compile(Wy),Gy={type:"object",properties:{type:{type:"string"},features:{type:"array",items:{type:"object",properties:{id:{type:"string"},type:{type:"string"},geometry:{type:"object",properties:{type:{type:"string"},coordinates:{type:"array",items:{type:"number"}}},required:["type","coordinates"]},properties:{type:"object",properties:{nodeId:{type:"string"}},required:["nodeId"]}},required:["id","type","properties"]}}},nullable:!0,required:["type","features"]};Vr.compile(Gy);var xn=(t=>(t.ARTWORK="Artwork",t.ARTIST="Artist",t.STRUCTURE="Structure",t.PHOTOGRAPHER="Photographer",t))(xn||{});const Jy={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0},Yy=Vr.compile(Jy),Xy={type:"object",properties:{Location:{type:"object",properties:{Address:{type:"string"},Coordinates:{type:"string",nullable:!0}},required:["Address"]}},required:["Location"],additionalProperties:!0},Qy=Vr.compile(Xy),Lh=(t,n,r,o)=>{let a;if(o.graphIdToNameTable[t.graph_id]==="Artwork")return a=n.find(u=>u.resourceinstance_id===t.resourceinstanceid),(a==null?void 0:a.data[o.imageNodeId])??void 0;const c=r.find(u=>u.resourceinstanceidto_id===t.resourceinstanceid&&u.resourceinstancefrom_graphid_id===o.nameToGraphIdTable.Artwork);if(c)return a=n.find(u=>u.resourceinstance_id===c.resourceinstanceidfrom_id),(a==null?void 0:a.data[o.imageNodeId])??void 0},e0=(t,n,r,o)=>{if(o.graphIdToNameTable[t.graph_id]!=="Artist")return;const a=r.filter(f=>f.resourceinstanceidto_id===t.resourceinstanceid&&f.resourceinstancefrom_graphid_id===o.nameToGraphIdTable.Artwork);if(!a)return;const c=a.map(f=>f.resourceinstanceidfrom_id);return n.filter(f=>c.includes(f.resourceinstanceid))??void 0},t0=t=>(Ka("data-v-4ddc2eef"),t=t(),Wa(),t),n0={class:"search-list-container"},i0={class:"search-header"},r0=t0(()=>Le("div",null,"Explore the artwork as a list",-1)),s0={class:"resource-selection-menu"},o0={class:"search-results"},a0=on({__name:"SearchList",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(t){const n=Et(""),r=Et(null),o=t,a=Qa(()=>o.resourcesPrefetch.filter(f=>{const d=f.descriptors.en.name.toLowerCase().includes(n.value.toLowerCase()),p=r.value?o.idReferences.graphIdToNameTable[f.graph_id]===r.value:!0;return d&&p})),c=()=>{r.value=null},u=f=>{r.value=f};return(f,d)=>(xe(),Je("div",n0,[Le("div",i0,[r0,Le("div",s0,[Le("button",{class:gn({active:r.value===null}),onClick:c}," Everything ",2),Le("button",{class:gn({active:r.value==="Artist"}),onClick:d[0]||(d[0]=p=>u("Artist"))}," Artists ",2),Le("button",{class:gn({active:r.value==="Artwork"}),onClick:d[1]||(d[1]=p=>u("Artwork"))}," Artworks ",2),Le("button",{class:gn({active:r.value==="Photographer"}),onClick:d[2]||(d[2]=p=>u("Photographer"))}," Photographers ",2),Le("button",{class:gn({active:r.value==="Structure"}),onClick:d[3]||(d[3]=p=>u("Structure"))}," Structures ",2)]),Ip(Le("input",{"onUpdate:modelValue":d[4]||(d[4]=p=>n.value=p),class:"search-bar",placeholder:"Search names..."},null,512),[[Xm,n.value]])]),Le("div",o0,[(xe(!0),Je(_t,null,Er(a.value,p=>(xe(),zt(y_,{key:p.resourceinstanceid,"resource-name":p.descriptors.en.name,"resource-description":p.descriptors.en.description,"resource-id":p.resourceinstanceid,"resource-type":o.idReferences.graphIdToNameTable[p.graph_id],"image-tile-data":Pe(Lh)(p,o.imagesPrefetch,o.resourceRelationsPrefetch,o.idReferences)},null,8,["resource-name","resource-description","resource-id","resource-type","image-tile-data"]))),128))])]))}}),l0=On(a0,[["__scopeId","data-v-4ddc2eef"]]);var Ia={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(t,n){(function(r,o){o(n)})(Qf,function(r){var o="1.9.4";function a(e){var i,s,l,h;for(s=1,l=arguments.length;s"u"||!L||!L.Mixin)){e=U(e)?e:[e];for(var i=0;i0?Math.floor(e):Math.ceil(e)};le.prototype={clone:function(){return new le(this.x,this.y)},add:function(e){return this.clone()._add(q(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(q(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new le(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new le(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=yt(this.x),this.y=yt(this.y),this},distanceTo:function(e){e=q(e);var i=e.x-this.x,s=e.y-this.y;return Math.sqrt(i*i+s*s)},equals:function(e){return e=q(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=q(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+$(this.x)+", "+$(this.y)+")"}};function q(e,i,s){return e instanceof le?e:U(e)?new le(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new le(e.x,e.y):new le(e,i,s)}function k(e,i){if(e)for(var s=i?[e,i]:e,l=0,h=s.length;l=this.min.x&&s.x<=this.max.x&&i.y>=this.min.y&&s.y<=this.max.y},intersects:function(e){e=K(e);var i=this.min,s=this.max,l=e.min,h=e.max,m=h.x>=i.x&&l.x<=s.x,S=h.y>=i.y&&l.y<=s.y;return m&&S},overlaps:function(e){e=K(e);var i=this.min,s=this.max,l=e.min,h=e.max,m=h.x>i.x&&l.xi.y&&l.y=i.lat&&h.lat<=s.lat&&l.lng>=i.lng&&h.lng<=s.lng},intersects:function(e){e=y(e);var i=this._southWest,s=this._northEast,l=e.getSouthWest(),h=e.getNorthEast(),m=h.lat>=i.lat&&l.lat<=s.lat,S=h.lng>=i.lng&&l.lng<=s.lng;return m&&S},overlaps:function(e){e=y(e);var i=this._southWest,s=this._northEast,l=e.getSouthWest(),h=e.getNorthEast(),m=h.lat>i.lat&&l.lati.lng&&l.lng1,mo=function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",w,i),window.removeEventListener("testPassiveEventSupport",w,i)}catch{}return e}(),ar=function(){return!!document.createElement("canvas").getContext}(),Ni=!!(document.createElementNS&&R("svg").createSVGRect),_o=!!Ni&&function(){var e=document.createElement("div");return e.innerHTML="",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Wr=!Ni&&function(){try{var e=document.createElement("div");e.innerHTML='';var i=e.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),go=navigator.platform.indexOf("Mac")===0,Gr=navigator.platform.indexOf("Linux")===0;function E(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var v={ie:ee,ielt9:re,edge:X,webkit:te,android:G,android23:ie,androidStock:de,opera:ve,chrome:Ie,gecko:He,safari:ze,phantom:Ye,opera12:Ct,win:an,ie3d:ln,webkit3d:Wt,gecko3d:fi,any3d:$t,mobile:et,mobileWebkit:Mi,mobileWebkit3d:fo,msPointer:Hr,pointer:Ur,touch:ho,touchNative:qr,mobileOpera:Zn,mobileGecko:po,retina:Kr,passiveEvents:mo,canvas:ar,svg:Ni,vml:Wr,inlineSvg:_o,mac:go,linux:Gr},I=v.msPointer?"MSPointerDown":"pointerdown",V=v.msPointer?"MSPointerMove":"pointermove",Z=v.msPointer?"MSPointerUp":"pointerup",me=v.msPointer?"MSPointerCancel":"pointercancel",_e={touchstart:I,touchmove:V,touchend:Z,touchcancel:me},Ze={touchstart:wn,touchmove:Xe,touchend:Xe,touchcancel:Xe},Ge={},ut=!1;function je(e,i,s){return i==="touchstart"&&ht(),Ze[i]?(s=Ze[i].bind(this,s),e.addEventListener(_e[i],s,!1),s):(console.warn("wrong event specified:",i),w)}function Qe(e,i,s){if(!_e[i]){console.warn("wrong event specified:",i);return}e.removeEventListener(_e[i],s,!1)}function ft(e){Ge[e.pointerId]=e}function Oe(e){Ge[e.pointerId]&&(Ge[e.pointerId]=e)}function tt(e){delete Ge[e.pointerId]}function ht(){ut||(document.addEventListener(I,ft,!0),document.addEventListener(V,Oe,!0),document.addEventListener(Z,tt,!0),document.addEventListener(me,tt,!0),ut=!0)}function Xe(e,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var s in Ge)i.touches.push(Ge[s]);i.changedTouches=[i],e(i)}}function wn(e,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&Lt(i),Xe(e,i)}function Gt(e){var i={},s,l;for(l in e)s=e[l],i[l]=s&&s.bind?s.bind(e):s;return e=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Jt=200;function Vn(e,i){e.addEventListener("dblclick",i);var s=0,l;function h(m){if(m.detail!==1){l=m.detail;return}if(!(m.pointerType==="mouse"||m.sourceCapabilities&&!m.sourceCapabilities.firesTouchEvents)){var S=Vl(m);if(!(S.some(function(H){return H instanceof HTMLLabelElement&&H.attributes.for})&&!S.some(function(H){return H instanceof HTMLInputElement||H instanceof HTMLSelectElement}))){var j=Date.now();j-s<=Jt?(l++,l===2&&i(Gt(m))):l=1,s=j}}}return e.addEventListener("click",h),{dblclick:i,simDblclick:h}}function In(e,i){e.removeEventListener("dblclick",i.dblclick),e.removeEventListener("click",i.simDblclick)}var kt=Yr(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),At=Yr(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),bn=At==="webkitTransition"||At==="OTransition"?At+"End":"transitionend";function Yt(e){return typeof e=="string"?document.getElementById(e):e}function cn(e,i){var s=e.style[i]||e.currentStyle&&e.currentStyle[i];if((!s||s==="auto")&&document.defaultView){var l=document.defaultView.getComputedStyle(e,null);s=l?l[i]:null}return s==="auto"?null:s}function Ue(e,i,s){var l=document.createElement(e);return l.className=i||"",s&&s.appendChild(l),l}function rt(e){var i=e.parentNode;i&&i.removeChild(e)}function kn(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function un(e){var i=e.parentNode;i&&i.lastChild!==e&&i.appendChild(e)}function fn(e){var i=e.parentNode;i&&i.firstChild!==e&&i.insertBefore(e,i.firstChild)}function Di(e,i){if(e.classList!==void 0)return e.classList.contains(i);var s=Jr(e);return s.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(s)}function Ae(e,i){if(e.classList!==void 0)for(var s=O(i),l=0,h=s.length;l0?2*window.devicePixelRatio:1;function Ul(e){return v.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/Rh:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function xo(e,i){var s=i.relatedTarget;if(!s)return!0;try{for(;s&&s!==e;)s=s.parentNode}catch{return!1}return s!==e}var Mh={__proto__:null,on:Re,off:st,stopPropagation:pi,disableScrollPropagation:Lo,disableClickPropagation:fr,preventDefault:Lt,stop:mi,getPropagationPath:Vl,getMousePosition:Hl,getWheelDelta:Ul,isExternalTarget:xo,addListener:Re,removeListener:st},ql=De.extend({run:function(e,i,s,l){this.stop(),this._el=e,this._inProgress=!0,this._duration=s||.25,this._easeOutPower=1/Math.max(l||.5,.2),this._startPos=di(e),this._offset=i.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=we(this._animate,this),this._step()},_step:function(e){var i=+new Date-this._startTime,s=this._duration*1e3;ithis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,i){this._enforcingBounds=!0;var s=this.getCenter(),l=this._limitCenter(s,this._zoom,y(e));return s.equals(l)||this.panTo(l,i),this._enforcingBounds=!1,this},panInside:function(e,i){i=i||{};var s=q(i.paddingTopLeft||i.padding||[0,0]),l=q(i.paddingBottomRight||i.padding||[0,0]),h=this.project(this.getCenter()),m=this.project(e),S=this.getPixelBounds(),j=K([S.min.add(s),S.max.subtract(l)]),H=j.getSize();if(!j.contains(m)){this._enforcingBounds=!0;var Q=m.subtract(j.getCenter()),ue=j.extend(m).getSize().subtract(H);h.x+=Q.x<0?-ue.x:ue.x,h.y+=Q.y<0?-ue.y:ue.y,this.panTo(this.unproject(h),i),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=a({animate:!1,pan:!0},e===!0?{animate:!0}:e);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var s=this.getSize(),l=i.divideBy(2).round(),h=s.divideBy(2).round(),m=l.subtract(h);return!m.x&&!m.y?this:(e.animate&&e.pan?this.panBy(m):(e.pan&&this._rawPanBy(m),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(u(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:s}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=a({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=u(this._handleGeolocationResponse,this),s=u(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,s,e):navigator.geolocation.getCurrentPosition(i,s,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var i=e.code,s=e.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+s+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var i=e.coords.latitude,s=e.coords.longitude,l=new P(i,s),h=l.toBounds(e.coords.accuracy*2),m=this._locateOptions;if(m.setView){var S=this.getBoundsZoom(h);this.setView(l,m.maxZoom?Math.min(S,m.maxZoom):S)}var j={latlng:l,bounds:h,timestamp:e.timestamp};for(var H in e.coords)typeof e.coords[H]=="number"&&(j[H]=e.coords[H]);this.fire("locationfound",j)}},addHandler:function(e,i){if(!i)return this;var s=this[e]=new i(this);return this._handlers.push(s),this.options[e]&&s.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ne(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)rt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,i){var s="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),l=Ue("div",s,i||this._mapPane);return e&&(this._panes[e]=l),l},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),i=this.unproject(e.getBottomLeft()),s=this.unproject(e.getTopRight());return new D(i,s)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,i,s){e=y(e),s=q(s||[0,0]);var l=this.getZoom()||0,h=this.getMinZoom(),m=this.getMaxZoom(),S=e.getNorthWest(),j=e.getSouthEast(),H=this.getSize().subtract(s),Q=K(this.project(j,l),this.project(S,l)).getSize(),ue=v.any3d?this.options.zoomSnap:1,Te=H.x/Q.x,Be=H.y/Q.y,Nt=i?Math.max(Te,Be):Math.min(Te,Be);return l=this.getScaleZoom(Nt,l),ue&&(l=Math.round(l/(ue/100))*(ue/100),l=i?Math.ceil(l/ue)*ue:Math.floor(l/ue)*ue),Math.max(h,Math.min(m,l))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new le(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,i){var s=this._getTopLeftPoint(e,i);return new k(s,s.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,i){var s=this.options.crs;return i=i===void 0?this._zoom:i,s.scale(e)/s.scale(i)},getScaleZoom:function(e,i){var s=this.options.crs;i=i===void 0?this._zoom:i;var l=s.zoom(e*s.scale(i));return isNaN(l)?1/0:l},project:function(e,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(N(e),i)},unproject:function(e,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(q(e),i)},layerPointToLatLng:function(e){var i=q(e).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(e){var i=this.project(N(e))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(N(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(y(e))},distance:function(e,i){return this.options.crs.distance(N(e),N(i))},containerPointToLayerPoint:function(e){return q(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return q(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var i=this.containerPointToLayerPoint(q(e));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(e)))},mouseEventToContainerPoint:function(e){return Hl(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var i=this._container=Yt(e);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Re(i,"scroll",this._onScroll,this),this._containerId=d(i)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&v.any3d,Ae(e,"leaflet-container"+(v.touch?" leaflet-touch":"")+(v.retina?" leaflet-retina":"")+(v.ielt9?" leaflet-oldie":"")+(v.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=cn(e,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pt(this._mapPane,new le(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ae(e.markerPane,"leaflet-zoom-hide"),Ae(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,i,s){pt(this._mapPane,new le(0,0));var l=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var h=this._zoom!==i;this._moveStart(h,s)._move(e,i)._moveEnd(h),this.fire("viewreset"),l&&this.fire("load")},_moveStart:function(e,i){return e&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(e,i,s,l){i===void 0&&(i=this._zoom);var h=this._zoom!==i;return this._zoom=i,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),l?s&&s.pinch&&this.fire("zoom",s):((h||s&&s.pinch)&&this.fire("zoom",s),this.fire("move",s)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ne(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){pt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[d(this._container)]=this;var i=e?st:Re;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),v.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ne(this._resizeRequest),this._resizeRequest=we(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,i){for(var s=[],l,h=i==="mouseout"||i==="mouseover",m=e.target||e.srcElement,S=!1;m;){if(l=this._targets[d(m)],l&&(i==="click"||i==="preclick")&&this._draggableMoved(l)){S=!0;break}if(l&&l.listens(i,!0)&&(h&&!xo(m,e)||(s.push(l),h))||m===this._container)break;m=m.parentNode}return!s.length&&!S&&!h&&this.listens(i,!0)&&(s=[this]),s},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var i=e.target||e.srcElement;if(!(!this._loaded||i._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(i))){var s=e.type;s==="mousedown"&&$o(i),this._fireDOMEvent(e,s)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,i,s){if(e.type==="click"){var l=a({},e);l.type="preclick",this._fireDOMEvent(l,l.type,s)}var h=this._findEventTargets(e,i);if(s){for(var m=[],S=0;S0?Math.round(e-i)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(i))},_limitZoom:function(e){var i=this.getMinZoom(),s=this.getMaxZoom(),l=v.any3d?this.options.zoomSnap:1;return l&&(e=Math.round(e/l)*l),Math.max(i,Math.min(s,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){nt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,i){var s=this._getCenterOffset(e)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(s)?!1:(this.panBy(s,i),!0)},_createAnimProxy:function(){var e=this._proxy=Ue("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(i){var s=kt,l=this._proxy.style[s];hi(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),l===this._proxy.style[s]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),i=this.getZoom();hi(this._proxy,this.project(e,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,i,s){if(this._animatingZoom)return!0;if(s=s||{},!this._zoomAnimated||s.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var l=this.getZoomScale(i),h=this._getCenterOffset(e)._divideBy(1-1/l);return s.animate!==!0&&!this.getSize().contains(h)?!1:(we(function(){this._moveStart(!0,s.noMoveStart||!1)._animateZoom(e,i,!0)},this),!0)},_animateZoom:function(e,i,s,l){this._mapPane&&(s&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=i,Ae(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:i,noUpdate:l}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(u(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&nt(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 Nh(e,i){return new qe(e,i)}var hn=be.extend({options:{position:"topright"},initialize:function(e){C(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var i=this._map;return i&&i.removeControl(this),this.options.position=e,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var i=this._container=this.onAdd(e),s=this.getPosition(),l=e._controlCorners[s];return Ae(i,"leaflet-control"),s.indexOf("bottom")!==-1?l.insertBefore(i,l.firstChild):l.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(rt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),hr=function(e){return new hn(e)};qe.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},i="leaflet-",s=this._controlContainer=Ue("div",i+"control-container",this._container);function l(h,m){var S=i+h+" "+i+m;e[h+m]=Ue("div",S,s)}l("top","left"),l("top","right"),l("bottom","left"),l("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)rt(this._controlCorners[e]);rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Kl=hn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,i,s,l){return s1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=i&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var i=this._getLayer(d(e.target)),s=i.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;s&&this._map.fire(s,i)},_createRadioElement:function(e,i){var s='",l=document.createElement("div");return l.innerHTML=s,l.firstChild},_addItem:function(e){var i=document.createElement("label"),s=this._map.hasLayer(e.layer),l;e.overlay?(l=document.createElement("input"),l.type="checkbox",l.className="leaflet-control-layers-selector",l.defaultChecked=s):l=this._createRadioElement("leaflet-base-layers_"+d(this),s),this._layerControlInputs.push(l),l.layerId=d(e.layer),Re(l,"click",this._onInputClick,this);var h=document.createElement("span");h.innerHTML=" "+e.name;var m=document.createElement("span");i.appendChild(m),m.appendChild(l),m.appendChild(h);var S=e.overlay?this._overlaysList:this._baseLayersList;return S.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,i,s,l=[],h=[];this._handlingClick=!0;for(var m=e.length-1;m>=0;m--)i=e[m],s=this._getLayer(i.layerId).layer,i.checked?l.push(s):i.checked||h.push(s);for(m=0;m=0;h--)i=e[h],s=this._getLayer(i.layerId).layer,i.disabled=s.options.minZoom!==void 0&&ls.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,Re(e,"click",Lt),this.expand();var i=this;setTimeout(function(){st(e,"click",Lt),i._preventClick=!1})}}),Dh=function(e,i,s){return new Kl(e,i,s)},Oo=hn.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(e){var i="leaflet-control-zoom",s=Ue("div",i+" leaflet-bar"),l=this.options;return this._zoomInButton=this._createButton(l.zoomInText,l.zoomInTitle,i+"-in",s,this._zoomIn),this._zoomOutButton=this._createButton(l.zoomOutText,l.zoomOutTitle,i+"-out",s,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),s},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,i,s,l,h){var m=Ue("a",s,l);return m.innerHTML=e,m.href="#",m.title=i,m.setAttribute("role","button"),m.setAttribute("aria-label",i),fr(m),Re(m,"click",mi),Re(m,"click",h,this),Re(m,"click",this._refocusOnMap,this),m},_updateDisabled:function(){var e=this._map,i="leaflet-disabled";nt(this._zoomInButton,i),nt(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(Ae(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(Ae(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});qe.mergeOptions({zoomControl:!0}),qe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Oo,this.addControl(this.zoomControl))});var zh=function(e){return new Oo(e)},Wl=hn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var i="leaflet-control-scale",s=Ue("div",i),l=this.options;return this._addScales(l,i+"-line",s),e.on(l.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),s},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,i,s){e.metric&&(this._mScale=Ue("div",i,s)),e.imperial&&(this._iScale=Ue("div",i,s))},_update:function(){var e=this._map,i=e.getSize().y/2,s=e.distance(e.containerPointToLatLng([0,i]),e.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(s)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var i=this._getRoundNum(e),s=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,s,i/e)},_updateImperial:function(e){var i=e*3.2808399,s,l,h;i>5280?(s=i/5280,l=this._getRoundNum(s),this._updateScale(this._iScale,l+" mi",l/s)):(h=this._getRoundNum(i),this._updateScale(this._iScale,h+" ft",h/i))},_updateScale:function(e,i,s){e.style.width=Math.round(this.options.maxWidth*s)+"px",e.innerHTML=i},_getRoundNum:function(e){var i=Math.pow(10,(Math.floor(e)+"").length-1),s=e/i;return s=s>=10?10:s>=5?5:s>=3?3:s>=2?2:1,i*s}}),jh=function(e){return new Wl(e)},Bh='',Io=hn.extend({options:{position:"bottomright",prefix:''+(v.inlineSvg?Bh+" ":"")+"Leaflet"},initialize:function(e){C(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=Ue("div","leaflet-control-attribution"),fr(this._container);for(var i in e._layers)e._layers[i].getAttribution&&this.addAttribution(e._layers[i].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var i in this._attributions)this._attributions[i]&&e.push(i);var s=[];this.options.prefix&&s.push(this.options.prefix),e.length&&s.push(e.join(", ")),this._container.innerHTML=s.join(' ')}}});qe.mergeOptions({attributionControl:!0}),qe.addInitHook(function(){this.options.attributionControl&&new Io().addTo(this)});var Fh=function(e){return new Io(e)};hn.Layers=Kl,hn.Zoom=Oo,hn.Scale=Wl,hn.Attribution=Io,hr.layers=Dh,hr.zoom=zh,hr.scale=jh,hr.attribution=Fh;var $n=be.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$n.addTo=function(e,i){return e.addHandler(i,this),this};var Zh={Events:ge},Gl=v.touch?"touchstart mousedown":"mousedown",Hn=De.extend({options:{clickTolerance:3},initialize:function(e,i,s,l){C(this,l),this._element=e,this._dragStartTarget=i||e,this._preventOutline=s},enable:function(){this._enabled||(Re(this._dragStartTarget,Gl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Hn._dragging===this&&this.finishDrag(!0),st(this._dragStartTarget,Gl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!Di(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){Hn._dragging===this&&this.finishDrag();return}if(!(Hn._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(Hn._dragging=this,this._preventOutline&&$o(this._element),wo(),lr(),!this._moving)){this.fire("down");var i=e.touches?e.touches[0]:e,s=Fl(this._element);this._startPoint=new le(i.clientX,i.clientY),this._startPos=di(this._element),this._parentScale=So(s);var l=e.type==="mousedown";Re(document,l?"mousemove":"touchmove",this._onMove,this),Re(document,l?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var i=e.touches&&e.touches.length===1?e.touches[0]:e,s=new le(i.clientX,i.clientY)._subtract(this._startPoint);!s.x&&!s.y||Math.abs(s.x)+Math.abs(s.y)m&&(S=j,m=H);m>s&&(i[S]=1,Ao(e,i,s,l,S),Ao(e,i,s,S,h))}function qh(e,i){for(var s=[e[0]],l=1,h=0,m=e.length;li&&(s.push(e[l]),h=l);return hi.max.x&&(s|=2),e.yi.max.y&&(s|=8),s}function Kh(e,i){var s=i.x-e.x,l=i.y-e.y;return s*s+l*l}function dr(e,i,s,l){var h=i.x,m=i.y,S=s.x-h,j=s.y-m,H=S*S+j*j,Q;return H>0&&(Q=((e.x-h)*S+(e.y-m)*j)/H,Q>1?(h=s.x,m=s.y):Q>0&&(h+=S*Q,m+=j*Q)),S=e.x-h,j=e.y-m,l?S*S+j*j:new le(h,m)}function Qt(e){return!U(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function nc(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Qt(e)}function ic(e,i){var s,l,h,m,S,j,H,Q;if(!e||e.length===0)throw new Error("latlngs not passed");Qt(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var ue=N([0,0]),Te=y(e),Be=Te.getNorthWest().distanceTo(Te.getSouthWest())*Te.getNorthEast().distanceTo(Te.getNorthWest());Be<1700&&(ue=ko(e));var Nt=e.length,St=[];for(s=0;sl){H=(m-l)/h,Q=[j.x-H*(j.x-S.x),j.y-H*(j.y-S.y)];break}var jt=i.unproject(q(Q));return N([jt.lat+ue.lat,jt.lng+ue.lng])}var Wh={__proto__:null,simplify:Xl,pointToSegmentDistance:Ql,closestPointOnSegment:Hh,clipSegment:tc,_getEdgeIntersection:es,_getBitCode:_i,_sqClosestPointOnSegment:dr,isFlat:Qt,_flat:nc,polylineCenter:ic},Ro={project:function(e){return new le(e.lng,e.lat)},unproject:function(e){return new P(e.y,e.x)},bounds:new k([-180,-90],[180,90])},Mo={R:6378137,R_MINOR:6356752314245179e-9,bounds:new k([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var i=Math.PI/180,s=this.R,l=e.lat*i,h=this.R_MINOR/s,m=Math.sqrt(1-h*h),S=m*Math.sin(l),j=Math.tan(Math.PI/4-l/2)/Math.pow((1-S)/(1+S),m/2);return l=-s*Math.log(Math.max(j,1e-10)),new le(e.lng*i*s,l)},unproject:function(e){for(var i=180/Math.PI,s=this.R,l=this.R_MINOR/s,h=Math.sqrt(1-l*l),m=Math.exp(-e.y/s),S=Math.PI/2-2*Math.atan(m),j=0,H=.1,Q;j<15&&Math.abs(H)>1e-7;j++)Q=h*Math.sin(S),Q=Math.pow((1-Q)/(1+Q),h/2),H=Math.PI/2-2*Math.atan(m*Q)-S,S+=H;return new P(S*i,e.x*i/s)}},Gh={__proto__:null,LonLat:Ro,Mercator:Mo,SphericalMercator:Ce},Jh=a({},ae,{code:"EPSG:3395",projection:Mo,transformation:function(){var e=.5/(Math.PI*Mo.R);return z(e,.5,-e,.5)}()}),rc=a({},ae,{code:"EPSG:4326",projection:Ro,transformation:z(1/180,1,-1/180,.5)}),Yh=a({},se,{projection:Ro,transformation:z(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,i){var s=i.lng-e.lng,l=i.lat-e.lat;return Math.sqrt(s*s+l*l)},infinite:!0});se.Earth=ae,se.EPSG3395=Jh,se.EPSG3857=g,se.EPSG900913=b,se.EPSG4326=rc,se.Simple=Yh;var dn=De.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[d(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[d(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var i=e.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var s=this.getEvents();i.on(s,this),this.once("remove",function(){i.off(s,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});qe.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var i=d(e);return this._layers[i]?this:(this._layers[i]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var i=d(e);return this._layers[i]?(this._loaded&&e.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return d(e)in this._layers},eachLayer:function(e,i){for(var s in this._layers)e.call(i,this._layers[s]);return this},_addLayers:function(e){e=e?U(e)?e:[e]:[];for(var i=0,s=e.length;ithis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&i[0]instanceof P&&i[0].equals(i[s-1])&&i.pop(),i},_setLatLngs:function(e){Rn.prototype._setLatLngs.call(this,e),Qt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Qt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,i=this.options.weight,s=new le(i,i);if(e=new k(e.min.subtract(s),e.max.add(s)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var l=0,h=this._rings.length,m;le.y!=h.y>e.y&&e.x<(h.x-l.x)*(e.y-l.y)/(h.y-l.y)+l.x&&(i=!i);return i||Rn.prototype._containsPoint.call(this,e,!0)}});function sd(e,i){return new Bi(e,i)}var Mn=An.extend({initialize:function(e,i){C(this,i),this._layers={},e&&this.addData(e)},addData:function(e){var i=U(e)?e:e.features,s,l,h;if(i){for(s=0,l=i.length;s0&&h.push(h[0].slice()),h}function Fi(e,i){return e.feature?a({},e.feature,{geometry:i}):os(i)}function os(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var jo={toGeoJSON:function(e){return Fi(this,{type:"Point",coordinates:zo(this.getLatLng(),e)})}};ts.include(jo),No.include(jo),ns.include(jo),Rn.include({toGeoJSON:function(e){var i=!Qt(this._latlngs),s=ss(this._latlngs,i?1:0,!1,e);return Fi(this,{type:(i?"Multi":"")+"LineString",coordinates:s})}}),Bi.include({toGeoJSON:function(e){var i=!Qt(this._latlngs),s=i&&!Qt(this._latlngs[0]),l=ss(this._latlngs,s?2:i?1:0,!0,e);return i||(l=[l]),Fi(this,{type:(s?"Multi":"")+"Polygon",coordinates:l})}}),zi.include({toMultiPoint:function(e){var i=[];return this.eachLayer(function(s){i.push(s.toGeoJSON(e).geometry.coordinates)}),Fi(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(e){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(e);var s=i==="GeometryCollection",l=[];return this.eachLayer(function(h){if(h.toGeoJSON){var m=h.toGeoJSON(e);if(s)l.push(m.geometry);else{var S=os(m);S.type==="FeatureCollection"?l.push.apply(l,S.features):l.push(S)}}}),s?Fi(this,{geometries:l,type:"GeometryCollection"}):{type:"FeatureCollection",features:l}}});function ac(e,i){return new Mn(e,i)}var od=ac,as=dn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,i,s){this._url=e,this._bounds=y(i),C(this,s)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ae(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){rt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&un(this._image),this},bringToBack:function(){return this._map&&fn(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=y(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG",i=this._image=e?this._url:Ue("img");if(Ae(i,"leaflet-image-layer"),this._zoomAnimated&&Ae(i,"leaflet-zoom-animated"),this.options.className&&Ae(i,this.options.className),i.onselectstart=w,i.onmousemove=w,i.onload=u(this.fire,this,"load"),i.onerror=u(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(e){var i=this._map.getZoomScale(e.zoom),s=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;hi(this._image,s,i)},_reset:function(){var e=this._image,i=new k(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),s=i.getSize();pt(e,i.min),e.style.width=s.x+"px",e.style.height=s.y+"px"},_updateOpacity:function(){Xt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),ad=function(e,i,s){return new as(e,i,s)},lc=as.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",i=this._image=e?this._url:Ue("video");if(Ae(i,"leaflet-image-layer"),this._zoomAnimated&&Ae(i,"leaflet-zoom-animated"),this.options.className&&Ae(i,this.options.className),i.onselectstart=w,i.onmousemove=w,i.onloadeddata=u(this.fire,this,"load"),e){for(var s=i.getElementsByTagName("source"),l=[],h=0;h0?l:[i.src];return}U(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var m=0;mh?(i.height=h+"px",Ae(e,m)):nt(e,m),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var i=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),s=this._getAnchor();pt(this._container,i.add(s))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,i=parseInt(cn(this._container,"marginBottom"),10)||0,s=this._container.offsetHeight+i,l=this._containerWidth,h=new le(this._containerLeft,-s-this._containerBottom);h._add(di(this._container));var m=e.layerPointToContainerPoint(h),S=q(this.options.autoPanPadding),j=q(this.options.autoPanPaddingTopLeft||S),H=q(this.options.autoPanPaddingBottomRight||S),Q=e.getSize(),ue=0,Te=0;m.x+l+H.x>Q.x&&(ue=m.x+l-Q.x+H.x),m.x-ue-j.x<0&&(ue=m.x-j.x),m.y+s+H.y>Q.y&&(Te=m.y+s-Q.y+H.y),m.y-Te-j.y<0&&(Te=m.y-j.y),(ue||Te)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([ue,Te]))}},_getAnchor:function(){return q(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ud=function(e,i){return new ls(e,i)};qe.mergeOptions({closePopupOnClick:!0}),qe.include({openPopup:function(e,i,s){return this._initOverlay(ls,e,i,s).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),dn.include({bindPopup:function(e,i){return this._popup=this._initOverlay(ls,this._popup,e,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof An||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){mi(e);var i=e.layer||e.target;if(this._popup._source===i&&!(i instanceof Un)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=i,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var cs=Sn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Sn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Sn.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Sn.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",i=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ue("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var i,s,l=this._map,h=this._container,m=l.latLngToContainerPoint(l.getCenter()),S=l.layerPointToContainerPoint(e),j=this.options.direction,H=h.offsetWidth,Q=h.offsetHeight,ue=q(this.options.offset),Te=this._getAnchor();j==="top"?(i=H/2,s=Q):j==="bottom"?(i=H/2,s=0):j==="center"?(i=H/2,s=Q/2):j==="right"?(i=0,s=Q/2):j==="left"?(i=H,s=Q/2):S.xthis.options.maxZoom||sl?this._retainParent(h,m,S,l):!1)},_retainChildren:function(e,i,s,l){for(var h=2*e;h<2*e+2;h++)for(var m=2*i;m<2*i+2;m++){var S=new le(h,m);S.z=s+1;var j=this._tileCoordsToKey(S),H=this._tiles[j];if(H&&H.active){H.retain=!0;continue}else H&&H.loaded&&(H.retain=!0);s+1this.options.maxZoom||this.options.minZoom!==void 0&&h1){this._setView(e,s);return}for(var Te=h.min.y;Te<=h.max.y;Te++)for(var Be=h.min.x;Be<=h.max.x;Be++){var Nt=new le(Be,Te);if(Nt.z=this._tileZoom,!!this._isValidTile(Nt)){var St=this._tiles[this._tileCoordsToKey(Nt)];St?St.current=!0:S.push(Nt)}}if(S.sort(function(jt,Vi){return jt.distanceTo(m)-Vi.distanceTo(m)}),S.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var en=document.createDocumentFragment();for(Be=0;Bes.max.x)||!i.wrapLat&&(e.ys.max.y))return!1}if(!this.options.bounds)return!0;var l=this._tileCoordsToBounds(e);return y(this.options.bounds).overlaps(l)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var i=this._map,s=this.getTileSize(),l=e.scaleBy(s),h=l.add(s),m=i.unproject(l,e.z),S=i.unproject(h,e.z);return[m,S]},_tileCoordsToBounds:function(e){var i=this._tileCoordsToNwSe(e),s=new D(i[0],i[1]);return this.options.noWrap||(s=this._map.wrapLatLngBounds(s)),s},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var i=e.split(":"),s=new le(+i[0],+i[1]);return s.z=+i[2],s},_removeTile:function(e){var i=this._tiles[e];i&&(rt(i.el),delete this._tiles[e],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){Ae(e,"leaflet-tile");var i=this.getTileSize();e.style.width=i.x+"px",e.style.height=i.y+"px",e.onselectstart=w,e.onmousemove=w,v.ielt9&&this.options.opacity<1&&Xt(e,this.options.opacity)},_addTile:function(e,i){var s=this._getTilePos(e),l=this._tileCoordsToKey(e),h=this.createTile(this._wrapCoords(e),u(this._tileReady,this,e));this._initTile(h),this.createTile.length<2&&we(u(this._tileReady,this,e,null,h)),pt(h,s),this._tiles[l]={el:h,coords:e,current:!0},i.appendChild(h),this.fire("tileloadstart",{tile:h,coords:e})},_tileReady:function(e,i,s){i&&this.fire("tileerror",{error:i,tile:s,coords:e});var l=this._tileCoordsToKey(e);s=this._tiles[l],s&&(s.loaded=+new Date,this._map._fadeAnimated?(Xt(s.el,0),ne(this._fadeFrame),this._fadeFrame=we(this._updateOpacity,this)):(s.active=!0,this._pruneTiles()),i||(Ae(s.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:s.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),v.ielt9||!this._map._fadeAnimated?we(this._pruneTiles,this):setTimeout(u(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var i=new le(this._wrapX?_(e.x,this._wrapX):e.x,this._wrapY?_(e.y,this._wrapY):e.y);return i.z=e.z,i},_pxBoundsToTileRange:function(e){var i=this.getTileSize();return new k(e.min.unscaleBy(i).floor(),e.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function dd(e){return new mr(e)}var Zi=mr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,i){this._url=e,i=C(this,i),i.detectRetina&&v.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,i){return this._url===e&&i===void 0&&(i=!0),this._url=e,i||this.redraw(),this},createTile:function(e,i){var s=document.createElement("img");return Re(s,"load",u(this._tileOnLoad,this,i,s)),Re(s,"error",u(this._tileOnError,this,i,s)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(s.referrerPolicy=this.options.referrerPolicy),s.alt="",s.src=this.getTileUrl(e),s},getTileUrl:function(e){var i={r:v.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-e.y;this.options.tms&&(i.y=s),i["-y"]=s}return B(this._url,a(i,this.options))},_tileOnLoad:function(e,i){v.ielt9?setTimeout(u(e,this,null,i),0):e(null,i)},_tileOnError:function(e,i,s){var l=this.options.errorTileUrl;l&&i.getAttribute("src")!==l&&(i.src=l),e(s,i)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,i=this.options.maxZoom,s=this.options.zoomReverse,l=this.options.zoomOffset;return s&&(e=i-e),e+l},_getSubdomain:function(e){var i=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var e,i;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(i=this._tiles[e].el,i.onload=w,i.onerror=w,!i.complete)){i.src=Y;var s=this._tiles[e].coords;rt(i),delete this._tiles[e],this.fire("tileabort",{tile:i,coords:s})}},_removeTile:function(e){var i=this._tiles[e];if(i)return i.el.setAttribute("src",Y),mr.prototype._removeTile.call(this,e)},_tileReady:function(e,i,s){if(!(!this._map||s&&s.getAttribute("src")===Y))return mr.prototype._tileReady.call(this,e,i,s)}});function fc(e,i){return new Zi(e,i)}var hc=Zi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,i){this._url=e;var s=a({},this.defaultWmsParams);for(var l in i)l in this.options||(s[l]=i[l]);i=C(this,i);var h=i.detectRetina&&v.retina?2:1,m=this.getTileSize();s.width=m.x*h,s.height=m.y*h,this.wmsParams=s},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,Zi.prototype.onAdd.call(this,e)},getTileUrl:function(e){var i=this._tileCoordsToNwSe(e),s=this._crs,l=K(s.project(i[0]),s.project(i[1])),h=l.min,m=l.max,S=(this._wmsVersion>=1.3&&this._crs===rc?[h.y,h.x,m.y,m.x]:[h.x,h.y,m.x,m.y]).join(","),j=Zi.prototype.getTileUrl.call(this,e);return j+A(this.wmsParams,j,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+S},setParams:function(e,i){return a(this.wmsParams,e),i||this.redraw(),this}});function pd(e,i){return new hc(e,i)}Zi.WMS=hc,fc.wms=pd;var Nn=dn.extend({options:{padding:.1},initialize:function(e){C(this,e),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ae(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,i){var s=this._map.getZoomScale(i,this._zoom),l=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,i),m=l.multiplyBy(-s).add(h).subtract(this._map._getNewPixelOrigin(e,i));v.any3d?hi(this._container,m,s):pt(this._container,m)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,i=this._map.getSize(),s=this._map.containerPointToLayerPoint(i.multiplyBy(-e)).round();this._bounds=new k(s,s.add(i.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),dc=Nn.extend({options:{tolerance:0},getEvents:function(){var e=Nn.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Nn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Re(e,"mousemove",this._onMouseMove,this),Re(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){ne(this._redrawRequest),delete this._ctx,rt(this._container),st(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var i in this._layers)e=this._layers[i],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Nn.prototype._update.call(this);var e=this._bounds,i=this._container,s=e.getSize(),l=v.retina?2:1;pt(i,e.min),i.width=l*s.x,i.height=l*s.y,i.style.width=s.x+"px",i.style.height=s.y+"px",v.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Nn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[d(e)]=e;var i=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var i=e._order,s=i.next,l=i.prev;s?s.prev=l:this._drawLast=l,l?l.next=s:this._drawFirst=s,delete e._order,delete this._layers[d(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray=="string"){var i=e.options.dashArray.split(/[, ]+/),s=[],l,h;for(h=0;h')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),md={_initContainer:function(){this._container=Ue("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Nn.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var i=e._container=_r("shape");Ae(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",e._path=_r("path"),i.appendChild(e._path),this._updateStyle(e),this._layers[d(e)]=e},_addPath:function(e){var i=e._container;this._container.appendChild(i),e.options.interactive&&e.addInteractiveTarget(i)},_removePath:function(e){var i=e._container;rt(i),e.removeInteractiveTarget(i),delete this._layers[d(e)]},_updateStyle:function(e){var i=e._stroke,s=e._fill,l=e.options,h=e._container;h.stroked=!!l.stroke,h.filled=!!l.fill,l.stroke?(i||(i=e._stroke=_r("stroke")),h.appendChild(i),i.weight=l.weight+"px",i.color=l.color,i.opacity=l.opacity,l.dashArray?i.dashStyle=U(l.dashArray)?l.dashArray.join(" "):l.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=l.lineCap.replace("butt","flat"),i.joinstyle=l.lineJoin):i&&(h.removeChild(i),e._stroke=null),l.fill?(s||(s=e._fill=_r("fill")),h.appendChild(s),s.color=l.fillColor||l.color,s.opacity=l.fillOpacity):s&&(h.removeChild(s),e._fill=null)},_updateCircle:function(e){var i=e._point.round(),s=Math.round(e._radius),l=Math.round(e._radiusY||s);this._setPath(e,e._empty()?"M0 0":"AL "+i.x+","+i.y+" "+s+","+l+" 0,"+65535*360)},_setPath:function(e,i){e._path.v=i},_bringToFront:function(e){un(e._container)},_bringToBack:function(e){fn(e._container)}},us=v.vml?_r:R,gr=Nn.extend({_initContainer:function(){this._container=us("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=us("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){rt(this._container),st(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Nn.prototype._update.call(this);var e=this._bounds,i=e.getSize(),s=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,s.setAttribute("width",i.x),s.setAttribute("height",i.y)),pt(s,e.min),s.setAttribute("viewBox",[e.min.x,e.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(e){var i=e._path=us("path");e.options.className&&Ae(i,e.options.className),e.options.interactive&&Ae(i,"leaflet-interactive"),this._updateStyle(e),this._layers[d(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){rt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[d(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var i=e._path,s=e.options;i&&(s.stroke?(i.setAttribute("stroke",s.color),i.setAttribute("stroke-opacity",s.opacity),i.setAttribute("stroke-width",s.weight),i.setAttribute("stroke-linecap",s.lineCap),i.setAttribute("stroke-linejoin",s.lineJoin),s.dashArray?i.setAttribute("stroke-dasharray",s.dashArray):i.removeAttribute("stroke-dasharray"),s.dashOffset?i.setAttribute("stroke-dashoffset",s.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),s.fill?(i.setAttribute("fill",s.fillColor||s.color),i.setAttribute("fill-opacity",s.fillOpacity),i.setAttribute("fill-rule",s.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(e,i){this._setPath(e,F(e._parts,i))},_updateCircle:function(e){var i=e._point,s=Math.max(Math.round(e._radius),1),l=Math.max(Math.round(e._radiusY),1)||s,h="a"+s+","+l+" 0 1,0 ",m=e._empty()?"M0 0":"M"+(i.x-s)+","+i.y+h+s*2+",0 "+h+-s*2+",0 ";this._setPath(e,m)},_setPath:function(e,i){e._path.setAttribute("d",i)},_bringToFront:function(e){un(e._path)},_bringToBack:function(e){fn(e._path)}});v.vml&&gr.include(md);function mc(e){return v.svg||v.vml?new gr(e):null}qe.include({getRenderer:function(e){var i=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var i=this._paneRenderers[e];return i===void 0&&(i=this._createRenderer({pane:e}),this._paneRenderers[e]=i),i},_createRenderer:function(e){return this.options.preferCanvas&&pc(e)||mc(e)}});var _c=Bi.extend({initialize:function(e,i){Bi.prototype.initialize.call(this,this._boundsToLatLngs(e),i)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=y(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function _d(e,i){return new _c(e,i)}gr.create=us,gr.pointsToPath=F,Mn.geometryToLayer=is,Mn.coordsToLatLng=Do,Mn.coordsToLatLngs=rs,Mn.latLngToCoords=zo,Mn.latLngsToCoords=ss,Mn.getFeature=Fi,Mn.asFeature=os,qe.mergeOptions({boxZoom:!0});var gc=$n.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){st(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){rt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),lr(),wo(),this._startPoint=this._map.mouseEventToContainerPoint(e),Re(document,{contextmenu:mi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=Ue("div","leaflet-zoom-box",this._container),Ae(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var i=new k(this._point,this._startPoint),s=i.getSize();pt(this._box,i.min),this._box.style.width=s.x+"px",this._box.style.height=s.y+"px"},_finish:function(){this._moved&&(rt(this._box),nt(this._container,"leaflet-crosshair")),cr(),bo(),st(document,{contextmenu:mi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(u(this._resetState,this),0);var i=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});qe.addInitHook("addHandler","boxZoom",gc),qe.mergeOptions({doubleClickZoom:!0});var vc=$n.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var i=this._map,s=i.getZoom(),l=i.options.zoomDelta,h=e.originalEvent.shiftKey?s-l:s+l;i.options.doubleClickZoom==="center"?i.setZoom(h):i.setZoomAround(e.containerPoint,h)}});qe.addInitHook("addHandler","doubleClickZoom",vc),qe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yc=$n.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new Hn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}Ae(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){nt(this._map._container,"leaflet-grab"),nt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=y(this._map.options.maxBounds);this._offsetLimit=K(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var i=this._lastTime=+new Date,s=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(s),this._times.push(i),this._prunePositions(i)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,i){return e-(e-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;e.xi.max.x&&(e.x=this._viscousLimit(e.x,i.max.x)),e.y>i.max.y&&(e.y=this._viscousLimit(e.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,i=Math.round(e/2),s=this._initialWorldOffset,l=this._draggable._newPos.x,h=(l-i+s)%e+i-s,m=(l+i+s)%e-i-s,S=Math.abs(h+s)0?m:-m))-i;this._delta=0,this._startTime=null,S&&(e.options.scrollWheelZoom==="center"?e.setZoom(i+S):e.setZoomAround(this._lastMousePos,i+S))}});qe.addInitHook("addHandler","scrollWheelZoom",bc);var gd=600;qe.mergeOptions({tapHold:v.touchNative&&v.safari&&v.mobile,tapTolerance:15});var Pc=$n.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){st(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var i=e.touches[0];this._startPos=this._newPos=new le(i.clientX,i.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(Re(document,"touchend",Lt),Re(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),gd),Re(document,"touchend touchcancel contextmenu",this._cancel,this),Re(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){st(document,"touchend",Lt),st(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),st(document,"touchend touchcancel contextmenu",this._cancel,this),st(document,"touchmove",this._onMove,this)},_onMove:function(e){var i=e.touches[0];this._newPos=new le(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,i){var s=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});s._simulated=!0,i.target.dispatchEvent(s)}});qe.addInitHook("addHandler","tapHold",Pc),qe.mergeOptions({touchZoom:v.touch,bounceAtZoomLimits:!0});var $c=$n.extend({addHooks:function(){Ae(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){nt(this._map._container,"leaflet-touch-zoom"),st(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var i=this._map;if(!(!e.touches||e.touches.length!==2||i._animatingZoom||this._zooming)){var s=i.mouseEventToContainerPoint(e.touches[0]),l=i.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(s.add(l)._divideBy(2))),this._startDist=s.distanceTo(l),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),Re(document,"touchmove",this._onTouchMove,this),Re(document,"touchend touchcancel",this._onTouchEnd,this),Lt(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var i=this._map,s=i.mouseEventToContainerPoint(e.touches[0]),l=i.mouseEventToContainerPoint(e.touches[1]),h=s.distanceTo(l)/this._startDist;if(this._zoom=i.getScaleZoom(h,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoomi.getMaxZoom()&&h>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,h===1)return}else{var m=s._add(l)._divideBy(2)._subtract(this._centerPoint);if(h===1&&m.x===0&&m.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(m),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),ne(this._animRequest);var S=u(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=we(S,this,!0),Lt(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ne(this._animRequest),st(document,"touchmove",this._onTouchMove,this),st(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))}});qe.addInitHook("addHandler","touchZoom",$c),qe.BoxZoom=gc,qe.DoubleClickZoom=vc,qe.Drag=yc,qe.Keyboard=wc,qe.ScrollWheelZoom=bc,qe.TapHold=Pc,qe.TouchZoom=$c,r.Bounds=k,r.Browser=v,r.CRS=se,r.Canvas=dc,r.Circle=No,r.CircleMarker=ns,r.Class=be,r.Control=hn,r.DivIcon=uc,r.DivOverlay=Sn,r.DomEvent=Mh,r.DomUtil=Ah,r.Draggable=Hn,r.Evented=De,r.FeatureGroup=An,r.GeoJSON=Mn,r.GridLayer=mr,r.Handler=$n,r.Icon=ji,r.ImageOverlay=as,r.LatLng=P,r.LatLngBounds=D,r.Layer=dn,r.LayerGroup=zi,r.LineUtil=Wh,r.Map=qe,r.Marker=ts,r.Mixin=Zh,r.Path=Un,r.Point=le,r.PolyUtil=Vh,r.Polygon=Bi,r.Polyline=Rn,r.Popup=ls,r.PosAnimation=ql,r.Projection=Gh,r.Rectangle=_c,r.Renderer=Nn,r.SVG=gr,r.SVGOverlay=cc,r.TileLayer=Zi,r.Tooltip=cs,r.Transformation=M,r.Util=Se,r.VideoOverlay=lc,r.bind=u,r.bounds=K,r.canvas=pc,r.circle=id,r.circleMarker=nd,r.control=hr,r.divIcon=hd,r.extend=a,r.featureGroup=Qh,r.geoJSON=ac,r.geoJson=od,r.gridLayer=dd,r.icon=ed,r.imageOverlay=ad,r.latLng=N,r.latLngBounds=y,r.layerGroup=Xh,r.map=Nh,r.marker=td,r.point=q,r.polygon=sd,r.polyline=rd,r.popup=ud,r.rectangle=_d,r.setOptions=C,r.stamp=d,r.svg=mc,r.svgOverlay=cd,r.tileLayer=fc,r.tooltip=fd,r.transformation=z,r.version=o,r.videoOverlay=ld;var vd=window.L;r.noConflict=function(){return window.L=vd,this},window.L=r})})(Ia,Ia.exports);var c0=Ia.exports;const sa=eh(c0),u0=on({__name:"LeafletMap",props:{resourcesPrefetch:{},locationsPrefetch:{},idReferences:{}},setup(t){const n=Et(!1),r=ci(),o=t,a=Et([]);a.value=o.resourcesPrefetch.map(p=>{var _;return{resource:p,coordinates:((_=o.locationsPrefetch.find(w=>w.resourceinstance_id===p.resourceinstanceid))==null?void 0:_.data[o.idReferences.coordinatesNodeId])??void 0}});const c=Et(null);let u;const f=new Map,d=p=>{const _=sa.map(p).setView([41.87213786,-87.62576558],13);return u=_,sa.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'© OpenStreetMap'}).addTo(_),a.value.forEach(w=>{var $;if(w.coordinates){const x=(($=w.coordinates)==null?void 0:$.features[0].geometry.coordinates)??void 0;if(x){const O=sa.marker([x[1],x[0]]);O.bindPopup(`${w.resource.descriptors.en.name}`),O.on("click",()=>{r.$patch({resourceId:w.resource.resourceinstanceid})}),f.set(w.resource.resourceinstanceid,O),O.addTo(_)}}}),u};return Ga(()=>{c.value&&(u=d(c.value))}),Yi(()=>r.resourceId,async p=>{var _;p&&(f.get(p)?(_=f.get(p))==null||_.openPopup():u==null||u.closePopup())},{immediate:!0}),(p,_)=>(xe(),Je(_t,null,[Le("div",{class:"expand-map-button",onClick:_[0]||(_[0]=w=>{n.value=!n.value})}," Explore the artwork geographically "),Le("div",{class:gn(n.value?"map-container-expanded":"map-container-collapsed")},[Le("div",{id:"map",ref_key:"mapElement",ref:c},null,512)],2)],64))}}),f0=On(u0,[["__scopeId","data-v-196963f7"]]),h0=on({__name:"ResourcePanelProvider",setup(t){const n=ci(),r=Et(),o=Et();async function a(){if(!n.resourceId)return;const u=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.resourceId}`),f=new URLSearchParams({format:"json"});u.search=f.toString();const p=await(await fetch(u.toString())).json();r.value=p}async function c(){if(!n.resourceId)return;const u=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.resourceId}`),f=await fetch(u.toString()).then(d=>d.json());o.value=f.related_resources.related_resources}return Yi(()=>n.resourceId,async u=>{u&&(a(),c())},{immediate:!0}),(u,f)=>(xe(),zt(ro,null,{default:qt(()=>[r.value?Ln(u.$slots,"default",{key:0,resource:r.value,resourceRelations:o.value}):Mt("",!0)]),_:3}))}}),d0={},p0=t=>(Ka("data-v-8d695187"),t=t(),Wa(),t),m0={class:"resource-detail-header"},_0={class:"resource-detail-header-label"},g0={class:"resource-detail-header-title"},v0={key:0,class:"resource-detail-more-by-artist"},y0={class:"resource-detail-metadata"},w0=p0(()=>Le("div",{class:"resource-detail-metadata-title"},"Arches metadata",-1)),b0={class:"resource-detail-metadata-content"};function P0(t,n){return xe(),Je(_t,null,[Le("div",m0,[Le("div",_0,[Ln(t.$slots,"header-label",{},void 0,!0)]),Le("div",g0,[Ln(t.$slots,"header-title",{},void 0,!0)])]),Ln(t.$slots,"items",{},void 0,!0),t.$slots["more-by-artist"]?(xe(),Je("div",v0,[Ln(t.$slots,"more-by-artist",{},void 0,!0)])):Mt("",!0),Le("div",y0,[w0,Le("div",b0,[Ln(t.$slots,"metadata",{},void 0,!0)])])],64)}const $0=On(d0,[["render",P0],["__scopeId","data-v-8d695187"]]),S0={class:"resource-detail-item"},E0={class:"resource-detail-item-header"},T0={key:0,class:"resource-detail-item-header-title"},C0={key:1,class:"resource-detail-item-header-byline"},L0={class:"resource-detail-item-image"},x0=["src"],O0=["src"],I0={key:2,class:"resource-detail-item-credit"},k0={key:0,class:"resource-detail-item-description"},A0=on({__name:"ResourceDetailItem",props:{imageUrl:{}},setup(t){const r=t,o=r.imageUrl?"https://arches-app-demo.opentechstrategies.com"+r.imageUrl:void 0;return(a,c)=>(xe(),Je("div",S0,[Le("div",E0,[a.$slots["item-header-title"]?(xe(),Je("div",T0,[Ln(a.$slots,"item-header-title",{},void 0,!0)])):Mt("",!0),a.$slots["item-header-byline"]?(xe(),Je("div",C0,[Ln(a.$slots,"item-header-byline",{},void 0,!0)])):Mt("",!0)]),Le("div",L0,[Pe(o)?(xe(),Je("img",{key:0,loading:"lazy",src:Pe(o),alt:"resource image"},null,8,x0)):(xe(),Je("img",{key:1,src:Pe(!0)?"/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,8,O0)),a.$slots["item-credit"]?(xe(),Je("div",I0,[Ln(a.$slots,"item-credit",{},void 0,!0)])):Mt("",!0)]),a.$slots["item-description"]?(xe(),Je("div",k0,[Ln(a.$slots,"item-description",{},void 0,!0)])):Mt("",!0)]))}}),R0=On(A0,[["__scopeId","data-v-f41f9903"]]),M0={key:0},N0={key:1},xh=on({__name:"ArtworkDetailItem",props:{artwork:{},artworkId:{},panelResourceType:{},resourceRelations:{},idReferences:{}},setup(t){const n=t,r=ci(),{graphIdToNameTable:o}=n.idReferences,a=d=>{r.$patch({resourceId:d})},c=n.resourceRelations.find(d=>o[d.graph_id]==="Photographer"),u=n.resourceRelations.find(d=>o[d.graph_id]==="Structure"),f=n.resourceRelations.find(d=>o[d.graph_id]==="Artist");return(d,p)=>{var _;return n.panelResourceType!==void 0?(xe(),zt(R0,{key:0,"image-url":(_=n.artwork.Photograph)==null?void 0:_.Image},Of({_:2},[n.panelResourceType!==Pe(xn).ARTWORK?{name:"item-header-title",fn:qt(()=>[Le("p",null,[Le("span",{class:"resource-link",onClick:p[0]||(p[0]=w=>a(n.artworkId))},Ut(d.artwork.Title),1)])]),key:"0"}:void 0,Pe(f)&&Pe(u)?{name:"item-header-byline",fn:qt(()=>[Le("p",null,[n.panelResourceType!==Pe(xn).ARTIST?(xe(),Je("span",M0,[Ii("by "),Le("span",{class:"resource-link",onClick:p[1]||(p[1]=w=>a(Pe(f).resourceinstanceid))},Ut(Pe(f).displayname),1)])):Mt("",!0),n.panelResourceType!==Pe(xn).STRUCTURE?(xe(),Je("span",N0,[Ii(" at "),Le("span",{class:"resource-link",onClick:p[2]||(p[2]=w=>a(Pe(u).resourceinstanceid))},Ut(Pe(u).displayname),1)])):Mt("",!0)])]),key:"1"}:void 0,Pe(c)&&n.panelResourceType!==Pe(xn).PHOTOGRAPHER?{name:"item-credit",fn:qt(()=>[Le("p",null,[Ii(" Photographer "),Le("span",{class:"resource-link",onClick:p[3]||(p[3]=w=>a(Pe(c).resourceinstanceid))},Ut(Pe(c).displayname),1)])]),key:"2"}:void 0,n.artwork.Description&&n.panelResourceType===Pe(xn).ARTWORK?{name:"item-description",fn:qt(()=>[Le("p",null,Ut(n.artwork.Description),1)]),key:"3"}:void 0]),1032,["image-url"])):Mt("",!0)}}}),oa=on({__name:"RelatedArtworkDetailItem",props:{relatedArtwork:{},idReferences:{},panelResourceType:{}},setup(t){const n=t,{graphIdToNameTable:r}=n.idReferences,o=Et(),a=Et();async function c(){const f=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.relatedArtwork.resourceinstanceid}`),d=new URLSearchParams({format:"json"});f.search=d.toString();const _=await(await fetch(f.toString())).json();o.value=_}async function u(){const f=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.relatedArtwork.resourceinstanceid}`),d=await fetch(f.toString()).then(p=>p.json());a.value=d.related_resources.related_resources}return c(),u(),(f,d)=>{var p;return Pe(Oa)((p=o.value)==null?void 0:p.resource)&&Pe(r)[o.value.graph_id]==="Artwork"&&a.value&&o.value!==void 0?(xe(),zt(xh,{key:0,artwork:o.value.resource,"artwork-id":o.value.resourceinstanceid,"resource-relations":a.value,"id-references":n.idReferences,"panel-resource-type":n.panelResourceType},null,8,["artwork","artwork-id","resource-relations","id-references","panel-resource-type"])):Mt("",!0)}}}),D0=["src"],z0=["src"],j0=on({__name:"MoreArtworksByArtistItem",props:{artwork:{},imageTileData:{}},setup(t){const n=ci(),r=t;console.log(r.artwork);const o=!0,a=r.imageTileData?"https://arches-app-demo.opentechstrategies.com"+r.imageTileData[0].url:void 0,c=u=>{n.$patch({resourceId:u})};return(u,f)=>(xe(),Je("div",{onClick:f[0]||(f[0]=d=>c(r.artwork.resourceinstanceid))},[Pe(a)?(xe(),Je("img",{key:0,class:gn(`more-artwork-image ${Pe(n).resourceId===r.artwork.resourceinstanceid?"blocked":""}`),loading:"lazy",src:Pe(a),alt:"thumbnail image"},null,10,D0)):(xe(),Je("img",{key:1,class:gn(`more-artwork-image ${Pe(n).resourceId===r.artwork.resourceinstanceid?"blocked":""}`),src:Pe(o)?"/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,10,z0))]))}}),B0=On(j0,[["__scopeId","data-v-51cd90fe"]]),F0={key:0,class:"more-artworks-by-artist-title"},Z0={key:1,class:"more-artworks-by-artist-gallery"},V0=on({__name:"MoreArtworksByArtist",props:{resource:{},resourcesPrefetch:{},resourceRelations:{},idReferences:{},resourceRelationsPrefetch:{},imagesPrefetch:{}},setup(t){const n=t,r=ci(),o=n.resourceRelations.find(u=>n.idReferences.graphIdToNameTable[u.graph_id]==="Artist"),a=o?e0(o,n.resourcesPrefetch,n.resourceRelationsPrefetch,n.idReferences):void 0,c=u=>{r.$patch({resourceId:u})};return(u,f)=>(xe(),Je(_t,null,[Pe(o)?(xe(),Je("div",F0,[Ii(" More artwork by "),Le("span",{class:"resource-link",onClick:f[0]||(f[0]=d=>c(Pe(o).resourceinstanceid))},Ut(Pe(o).displayname),1)])):Mt("",!0),Pe(a)?(xe(),Je("div",Z0,[(xe(!0),Je(_t,null,Er(Pe(a),d=>(xe(),zt(B0,{key:d.resourceinstanceid,artwork:d,"image-tile-data":Pe(Lh)(d,n.imagesPrefetch,n.resourceRelationsPrefetch,n.idReferences)},null,8,["artwork","image-tile-data"]))),128))])):Mt("",!0)],64))}}),H0=On(V0,[["__scopeId","data-v-25be0076"]]),U0={key:0,class:"resource-detail"},q0=on({__name:"ResourcePanel",props:{resource:{},resourceRelations:{},resourceRelationsPrefetch:{},imagesPrefetch:{},idReferences:{},resourcesPrefetch:{}},setup(t){const n=ci(),r=t,{graphIdToNameTable:o}=r.idReferences,a=()=>{n.$patch({resourceId:void 0})};return(c,u)=>r.resource?(xe(),Je("div",U0,[Le("div",{class:"resource-detail-back-button",onClick:a},"Back to search"),Tt($0,null,Of({"header-label":qt(()=>[Ii(Ut(Pe(o)[r.resource.graph_id]),1)]),"header-title":qt(()=>[Ii(Ut(r.resource.displayname??""),1)]),items:qt(()=>[Pe(Oa)(r.resource.resource)&&Pe(o)[r.resource.graph_id]==="Artwork"?(xe(),zt(xh,{key:0,artwork:r.resource.resource,"artwork-id":r.resource.resourceinstanceid,"resource-relations":r.resourceRelations,"id-references":r.idReferences,"panel-resource-type":Pe(xn).ARTWORK},null,8,["artwork","artwork-id","resource-relations","id-references","panel-resource-type"])):Pe(Ky)(r.resource.resource)&&Pe(o)[r.resource.graph_id]==="Artist"?(xe(!0),Je(_t,{key:1},Er(c.resourceRelations.filter(f=>Pe(o)[f.graph_id]==="Artwork"),f=>(xe(),zt(oa,{key:f.graph_id,"related-artwork":f,"id-references":r.idReferences,"panel-resource-type":Pe(xn).ARTIST},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):Pe(Qy)(r.resource.resource)&&Pe(o)[r.resource.graph_id]==="Structure"?(xe(!0),Je(_t,{key:2},Er(c.resourceRelations.filter(f=>Pe(o)[f.graph_id]==="Artwork"),f=>(xe(),zt(oa,{key:f.resourceinstanceid,"related-artwork":f,"id-references":r.idReferences,"panel-resource-type":Pe(xn).STRUCTURE},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):Pe(Yy)(r.resource.resource)&&Pe(o)[r.resource.graph_id]==="Photographer"?(xe(!0),Je(_t,{key:3},Er(c.resourceRelations.filter(f=>Pe(o)[f.graph_id]==="Artwork"),f=>(xe(),zt(oa,{key:f.root_ontology_class,"related-artwork":f,"id-references":r.idReferences,"panel-resource-type":Pe(xn).PHOTOGRAPHER},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):Mt("",!0)]),metadata:qt(()=>[Le("div",null,"Graph ID: "+Ut(r.resource.graph_id),1),Le("div",null,"Resource Instance ID: "+Ut(r.resource.resourceinstanceid),1)]),_:2},[Pe(Oa)(r.resource.resource)&&Pe(o)[r.resource.graph_id]==="Artwork"?{name:"more-by-artist",fn:qt(()=>[Tt(H0,{resource:r.resource,"resource-relations":c.resourceRelations,"resource-relations-prefetch":r.resourceRelationsPrefetch,"resources-prefetch":r.resourcesPrefetch,"images-prefetch":r.imagesPrefetch,"id-references":r.idReferences},null,8,["resource","resource-relations","resource-relations-prefetch","resources-prefetch","images-prefetch","id-references"])]),key:"0"}:void 0]),1024)])):Mt("",!0)}}),K0=On(q0,[["__scopeId","data-v-2077af6f"]]),Oh=t=>(Ka("data-v-02cef5c2"),t=t(),Wa(),t),W0={class:"home"},G0=Oh(()=>Le("div",{class:"welcome"},[Le("h2",null,"Wabash Arts Corridor"),Le("p",null," In 2013, Columbia College Chicago launched the Wabash Arts Corridor to immerse students in the creative spirit by using urban spaces and reclaimable resources to revitalize and transform the South Loop business district into one of the city’s major cultural assets. The heart of WAC is Wabash Avenue from Van Buren to Roosevelt and is framed to the east by Michigan Avenue and to the west by State Street. The corridor is regarded as an “living urban canvas” due to its ever-growing number of large-scale mural installations and collaborative projects. ")],-1)),J0={id:"map-container"},Y0={key:1,class:"map-placeholder"},X0={id:"search-list-container"},Q0=Oh(()=>Le("div",{class:"footer"},[Le("div",{class:"footer-blurb"},[Le("h2",null,"About / Credit"),Le("p",null," This site is a project of XYZ and ABC in association with DEF. All artwork is courtesy of the respective artist. You can email contact@example.org to suggest changes or pat our collective back. ")])],-1)),ew=on({__name:"HomePage",props:{idReferences:{},imagesPrefetch:{},locationsPrefetch:{},resourceRelationsPrefetch:{},resourcesPrefetch:{},loading:{type:Boolean}},setup(t){const n=ci(),r=t;return(o,a)=>(xe(),Je("div",W0,[G0,Le("div",J0,[r.resourcesPrefetch&&r.idReferences&&r.locationsPrefetch?(xe(),zt(f0,{key:0,"resources-prefetch":r.resourcesPrefetch,"id-references":r.idReferences,"locations-prefetch":r.locationsPrefetch},null,8,["resources-prefetch","id-references","locations-prefetch"])):(xe(),Je("div",Y0,"Loading Map..."))]),Le("div",X0,[Pe(n).resourceId===void 0&&r.resourcesPrefetch&&r.resourceRelationsPrefetch&&r.idReferences&&r.imagesPrefetch?(xe(),zt(ro,{key:0},{default:qt(()=>[Tt(l0,{"resources-prefetch":r.resourcesPrefetch,"resource-relations-prefetch":r.resourceRelationsPrefetch,"id-references":r.idReferences,"images-prefetch":r.imagesPrefetch},null,8,["resources-prefetch","resource-relations-prefetch","id-references","images-prefetch"])]),_:1})):(xe(),zt(h0,{key:1},{default:qt(({resource:c,resourceRelations:u})=>[r.resourceRelationsPrefetch&&r.idReferences&&r.imagesPrefetch&&r.resourcesPrefetch&&u&&c?(xe(),zt(K0,{key:0,resource:c,"resource-relations":u,"id-references":r.idReferences,"resource-relations-prefetch":r.resourceRelationsPrefetch,"images-prefetch":r.imagesPrefetch,"resources-prefetch":r.resourcesPrefetch},null,8,["resource","resource-relations","id-references","resource-relations-prefetch","images-prefetch","resources-prefetch"])):Mt("",!0)]),_:1}))]),Q0]))}}),tw=On(ew,[["__scopeId","data-v-02cef5c2"]]),nw=on({__name:"App",setup(t){const n=Et(void 0),r=Et(void 0),o=Et(void 0),a=Et(void 0),c=Et(void 0),u=Et(!0);async function f(){try{const d=new URL("https://arches-app-demo.opentechstrategies.com/archesdataviewer/prefetch"),_=await(await fetch(d.toString())).json();n.value=_.idReferences,r.value=_.images,o.value=_.locations,a.value=_.resourceRelations,c.value=_.resources}catch(d){console.error("Failed to fetch prefetch data:",d)}finally{u.value=!1}}return f(),(d,p)=>(xe(),Je("main",null,[Tt(tw,{"id-references":n.value,"images-prefetch":r.value,"locations-prefetch":o.value,"resource-relations-prefetch":a.value,"resources-prefetch":c.value,loading:u.value},null,8,["id-references","images-prefetch","locations-prefetch","resource-relations-prefetch","resources-prefetch","loading"])]))}}),iw=On(nw,[["__scopeId","data-v-29c95b94"]]),rw=s_(),Ih=t_(iw);Ih.use(rw);Ih.mount("#app"); diff --git a/archesdataviewer/static/vite_build/assets/index-Ccl12rPz.css b/archesdataviewer/static/vite_build/assets/index-Ccl12rPz.css new file mode 100644 index 0000000..1bcde35 --- /dev/null +++ b/archesdataviewer/static/vite_build/assets/index-Ccl12rPz.css @@ -0,0 +1 @@ +@font-face{font-family:Inter;src:url(/assets/Inter-VariableFont_opsz_wght-c8O0ljhh.ttf) format("truetype")}:root{--color-black: #363636;--color-white: #ffffff}body{background-color:var(--color-background);font-family:Inter,sans-serif}.v-enter-active,.v-leave-active{transition:opacity .5s ease}.v-enter-from,.v-leave-to{opacity:0}.resource-link{text-decoration:underline;cursor:pointer}.search-result[data-v-03b6144e]{display:flex;flex-direction:row;align-items:flex-start;padding:0;gap:16px;cursor:pointer}.search-result-metadata[data-v-03b6144e]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:8px}.search-result-title[data-v-03b6144e]{font-style:normal;font-weight:900;font-size:16px;line-height:120%;display:flex;align-items:center;text-decoration-line:underline}.search-result-resource-type[data-v-03b6144e]{font-style:normal;font-weight:400;font-size:14px;line-height:100%;display:flex;align-items:center}.search-result-resource-description[data-v-03b6144e]{font-style:normal;font-weight:400;font-size:12px;line-height:110%;display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.search-result-image[data-v-03b6144e]{width:150px;height:150px;object-fit:cover;flex-shrink:0}.search-list-container[data-v-4ddc2eef]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:32px;isolation:isolate}.search-header[data-v-4ddc2eef]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:16px;background:linear-gradient(180deg,#fff,#fff 75%,#fff0)}.search-results[data-v-4ddc2eef]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:16px;max-width:640px}.resource-selection-menu[data-v-4ddc2eef]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;align-content:space-between;padding:0;gap:8px}button[data-v-4ddc2eef]{flex-direction:row;padding:8px;gap:8px;border:none;background:none;font-style:normal;font-weight:700;font-size:16px;line-height:100%;display:flex;align-items:center;text-align:center;color:#000;transition:background-color .3s ease}button.active[data-v-4ddc2eef]{background:#ffe16a;transition:background-color .3s ease}.search-bar[data-v-4ddc2eef]{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:16px;gap:16px;width:100%;background:#fff;border:1px solid #000000;border-radius:5px}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.expand-map-button[data-v-196963f7]{cursor:pointer}#map[data-v-196963f7]{width:100%;height:100%}.map-container-collapsed[data-v-196963f7]{height:100px;transition:height .5s ease}.map-container-collapsed[data-v-196963f7] *{pointer-events:none}.map-container-expanded[data-v-196963f7]{height:400px;transition:height .5s ease}.resource-detail-header[data-v-8d695187]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:8px}.resource-detail-metadata[data-v-8d695187],.resource-detail-more-by-artist[data-v-8d695187]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:16px}.resource-detail-metadata-title[data-v-8d695187]{font-style:normal;font-weight:700;font-size:16px;line-height:100%;color:#999}.resource-detail-metadata-content[data-v-8d695187]{font-style:normal;font-weight:400;font-size:16px;line-height:140%;color:#999}.resource-detail-header-label[data-v-8d695187]{font-style:normal;font-weight:400;font-size:24px;line-height:100%}.resource-detail-header-title[data-v-8d695187]{font-style:normal;font-weight:900;font-size:32px;line-height:100%}.resource-detail-item[data-v-f41f9903]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:32px}.resource-detail-item-header[data-v-f41f9903]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:8px}.resource-detail-item-header-byline[data-v-f41f9903]{font-style:normal;font-weight:700;font-size:16px;line-height:100%;color:#000}.resource-detail-item-header-title[data-v-f41f9903]{font-style:normal;font-weight:900;font-size:24px;line-height:120%;text-decoration-line:underline;color:#000}.resource-detail-item-credit[data-v-f41f9903]{font-style:normal;font-weight:400;font-size:16px;line-height:140%;color:#000}.resource-detail-item-image[data-v-f41f9903]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:8px}.resource-detail-item-image img[data-v-f41f9903]{width:100%;height:100%}.more-artwork-image[data-v-51cd90fe]{width:150px;height:150px;object-fit:cover;flex-shrink:0;cursor:pointer}.more-artwork-image[data-v-51cd90fe]:hover{opacity:.5}.blocked[data-v-51cd90fe]{filter:brightness(50%);pointer-events:none}.more-artworks-by-artist-title[data-v-25be0076]{font-style:normal;font-weight:700;font-size:16px;line-height:100%;color:#000}.more-artworks-by-artist-gallery[data-v-25be0076]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;padding:0;gap:16px;isolation:isolate}.resource-detail-back-button[data-v-2077af6f]{display:flex;flex-direction:row;align-items:center;padding:8px 0;gap:8px}.resource-detail-panel[data-v-2077af6f]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:64px}.resource-detail-back-button[data-v-2077af6f]{cursor:pointer}.home[data-v-02cef5c2]{display:flex;flex-direction:column;align-items:flex-start;padding:32px 16px;gap:64px;position:relative;overflow-y:scroll}.footer[data-v-02cef5c2]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:32px}.footer-blurb[data-v-02cef5c2]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:8px}#map-container[data-v-02cef5c2]{width:100%}main[data-v-29c95b94]{background-color:var(--color-background);color:var(--color-text);padding:20px} diff --git a/archesdataviewer/static/vite_build/assets/index-CfkN74xE.js b/archesdataviewer/static/vite_build/assets/index-CfkN74xE.js deleted file mode 100644 index bfb505f..0000000 --- a/archesdataviewer/static/vite_build/assets/index-CfkN74xE.js +++ /dev/null @@ -1,32 +0,0 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();/** -* @vue/shared v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Ta(t,n){const r=new Set(t.split(","));return o=>r.has(o)}const st={},Zi=[],nn=()=>{},wd=()=>!1,Vs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),xa=t=>t.startsWith("onUpdate:"),St=Object.assign,Ca=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},bd=Object.prototype.hasOwnProperty,Ve=(t,n)=>bd.call(t,n),_e=Array.isArray,Vi=t=>Dr(t)==="[object Map]",Us=t=>Dr(t)==="[object Set]",wu=t=>Dr(t)==="[object Date]",Ce=t=>typeof t=="function",vt=t=>typeof t=="string",Bn=t=>typeof t=="symbol",at=t=>t!==null&&typeof t=="object",Ec=t=>(at(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),Tc=Object.prototype.toString,Dr=t=>Tc.call(t),Pd=t=>Dr(t).slice(8,-1),xc=t=>Dr(t)==="[object Object]",La=t=>vt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,yr=Ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hs=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},$d=/-(\w)/g,Gi=Hs(t=>t.replace($d,(n,r)=>r?r.toUpperCase():"")),Sd=/\B([A-Z])/g,Qi=Hs(t=>t.replace(Sd,"-$1").toLowerCase()),Cc=Hs(t=>t.charAt(0).toUpperCase()+t.slice(1)),Vo=Hs(t=>t?`on${Cc(t)}`:""),ii=(t,n)=>!Object.is(t,n),Ps=(t,n)=>{for(let r=0;r{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,writable:o,value:r})},Os=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let bu;const Oc=()=>bu||(bu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oa(t){if(_e(t)){const n={};for(let r=0;r{if(r){const o=r.split(Td);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function qs(t){let n="";if(vt(t))n=t;else if(_e(t))for(let r=0;rKs(r,n))}const Kt=t=>vt(t)?t:t==null?"":_e(t)||at(t)&&(t.toString===Tc||!Ce(t.toString))?JSON.stringify(t,Mc,2):String(t),Mc=(t,n)=>n&&n.__v_isRef?Mc(t,n.value):Vi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a],u)=>(r[Uo(o,u)+" =>"]=a,r),{})}:Us(n)?{[`Set(${n.size})`]:[...n.values()].map(r=>Uo(r))}:Bn(n)?Uo(n):at(n)&&!_e(n)&&!xc(n)?String(n):n,Uo=(t,n="")=>{var r;return Bn(t)?`Symbol(${(r=t.description)!=null?r:n})`:t};/** -* @vue/reactivity v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let qt;class kc{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qt,!n&&qt&&(this.index=(qt.scopes||(qt.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const r=qt;try{return qt=this,n()}finally{qt=r}}}on(){qt=this}off(){qt=this.parent}stop(n){if(this._active){let r,o;for(r=0,o=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),oi()}return this._dirtyLevel>=4}set dirty(n){this._dirtyLevel=n?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let n=ei,r=Pi;try{return ei=!0,Pi=this,this._runnings++,Pu(this),this.fn()}finally{$u(this),this._runnings--,Pi=r,ei=n}}stop(){this.active&&(Pu(this),$u(this),this.onStop&&this.onStop(),this.active=!1)}}function Nd(t){return t.value}function Pu(t){t._trackId++,t._depsLength=0}function $u(t){if(t.deps.length>t._depsLength){for(let n=t._depsLength;n{const r=new Map;return r.cleanup=t,r.computed=n,r},Is=new WeakMap,$i=Symbol(""),sa=Symbol("");function Ht(t,n,r){if(ei&&Pi){let o=Is.get(t);o||Is.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Bc(()=>o.delete(r))),zc(Pi,a)}}function Rn(t,n,r,o,a,u){const c=Is.get(t);if(!c)return;let f=[];if(n==="clear")f=[...c.values()];else if(r==="length"&&_e(t)){const d=Number(o);c.forEach((m,g)=>{(g==="length"||!Bn(g)&&g>=d)&&f.push(m)})}else switch(r!==void 0&&f.push(c.get(r)),n){case"add":_e(t)?La(r)&&f.push(c.get("length")):(f.push(c.get($i)),Vi(t)&&f.push(c.get(sa)));break;case"delete":_e(t)||(f.push(c.get($i)),Vi(t)&&f.push(c.get(sa)));break;case"set":Vi(t)&&f.push(c.get($i));break}Ma();for(const d of f)d&&jc(d,4);ka()}function Rd(t,n){const r=Is.get(t);return r&&r.get(n)}const Dd=Ta("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Bn)),Su=zd();function zd(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=qe(this);for(let u=0,c=this.length;u{t[n]=function(...r){si(),Ma();const o=qe(this)[n].apply(this,r);return ka(),oi(),o}}),t}function jd(t){Bn(t)||(t=String(t));const n=qe(this);return Ht(n,"has",t),n.hasOwnProperty(t)}class Zc{constructor(n=!1,r=!1){this._isReadonly=n,this._isShallow=r}get(n,r,o){const a=this._isReadonly,u=this._isShallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return u;if(r==="__v_raw")return o===(a?u?Xd:qc:u?Hc:Uc).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(o)?n:void 0;const c=_e(n);if(!a){if(c&&Ve(Su,r))return Reflect.get(Su,r,o);if(r==="hasOwnProperty")return jd}const f=Reflect.get(n,r,o);return(Bn(r)?Fc.has(r):Dd(r))||(a||Ht(n,"get",r),u)?f:yt(f)?c&&La(r)?f:f.value:at(f)?a?Kc(f):zr(f):f}}class Vc extends Zc{constructor(n=!1){super(!1,n)}set(n,r,o,a){let u=n[r];if(!this._isShallow){const d=Ir(u);if(!Ms(o)&&!Ir(o)&&(u=qe(u),o=qe(o)),!_e(n)&&yt(u)&&!yt(o))return d?!1:(u.value=o,!0)}const c=_e(n)&&La(r)?Number(r)t,Ws=t=>Reflect.getPrototypeOf(t);function hs(t,n,r=!1,o=!1){t=t.__v_raw;const a=qe(t),u=qe(n);r||(ii(n,u)&&Ht(a,"get",n),Ht(a,"get",u));const{has:c}=Ws(a),f=o?Aa:r?za:Mr;if(c.call(a,n))return f(t.get(n));if(c.call(a,u))return f(t.get(u));t!==a&&t.get(n)}function fs(t,n=!1){const r=this.__v_raw,o=qe(r),a=qe(t);return n||(ii(t,a)&&Ht(o,"has",t),Ht(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ds(t,n=!1){return t=t.__v_raw,!n&&Ht(qe(t),"iterate",$i),Reflect.get(t,"size",t)}function Eu(t){t=qe(t);const n=qe(this);return Ws(n).has.call(n,t)||(n.add(t),Rn(n,"add",t,t)),this}function Tu(t,n){n=qe(n);const r=qe(this),{has:o,get:a}=Ws(r);let u=o.call(r,t);u||(t=qe(t),u=o.call(r,t));const c=a.call(r,t);return r.set(t,n),u?ii(n,c)&&Rn(r,"set",t,n):Rn(r,"add",t,n),this}function xu(t){const n=qe(this),{has:r,get:o}=Ws(n);let a=r.call(n,t);a||(t=qe(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&Rn(n,"delete",t,void 0),u}function Cu(){const t=qe(this),n=t.size!==0,r=t.clear();return n&&Rn(t,"clear",void 0,void 0),r}function ps(t,n){return function(o,a){const u=this,c=u.__v_raw,f=qe(c),d=n?Aa:t?za:Mr;return!t&&Ht(f,"iterate",$i),c.forEach((m,g)=>o.call(a,d(m),d(g),u))}}function ms(t,n,r){return function(...o){const a=this.__v_raw,u=qe(a),c=Vi(u),f=t==="entries"||t===Symbol.iterator&&c,d=t==="keys"&&c,m=a[t](...o),g=r?Aa:n?za:Mr;return!n&&Ht(u,"iterate",d?sa:$i),{next(){const{value:y,done:C}=m.next();return C?{value:y,done:C}:{value:f?[g(y[0]),g(y[1])]:g(y),done:C}},[Symbol.iterator](){return this}}}}function qn(t){return function(...n){return t==="delete"?!1:t==="clear"?void 0:this}}function Ud(){const t={get(u){return hs(this,u)},get size(){return ds(this)},has:fs,add:Eu,set:Tu,delete:xu,clear:Cu,forEach:ps(!1,!1)},n={get(u){return hs(this,u,!1,!0)},get size(){return ds(this)},has:fs,add:Eu,set:Tu,delete:xu,clear:Cu,forEach:ps(!1,!0)},r={get(u){return hs(this,u,!0)},get size(){return ds(this,!0)},has(u){return fs.call(this,u,!0)},add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear"),forEach:ps(!0,!1)},o={get(u){return hs(this,u,!0,!0)},get size(){return ds(this,!0)},has(u){return fs.call(this,u,!0)},add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear"),forEach:ps(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ms(u,!1,!1),r[u]=ms(u,!0,!1),n[u]=ms(u,!1,!0),o[u]=ms(u,!0,!0)}),[t,r,n,o]}const[Hd,qd,Kd,Wd]=Ud();function Na(t,n){const r=n?t?Wd:Kd:t?qd:Hd;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Ve(r,a)&&a in o?r:o,a,u)}const Gd={get:Na(!1,!1)},Jd={get:Na(!1,!0)},Yd={get:Na(!0,!1)};const Uc=new WeakMap,Hc=new WeakMap,qc=new WeakMap,Xd=new WeakMap;function Qd(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ep(t){return t.__v_skip||!Object.isExtensible(t)?0:Qd(Pd(t))}function zr(t){return Ir(t)?t:Ra(t,!1,Fd,Gd,Uc)}function tp(t){return Ra(t,!1,Vd,Jd,Hc)}function Kc(t){return Ra(t,!0,Zd,Yd,qc)}function Ra(t,n,r,o,a){if(!at(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const c=ep(t);if(c===0)return t;const f=new Proxy(t,c===2?o:r);return a.set(t,f),f}function Si(t){return Ir(t)?Si(t.__v_raw):!!(t&&t.__v_isReactive)}function Ir(t){return!!(t&&t.__v_isReadonly)}function Ms(t){return!!(t&&t.__v_isShallow)}function Wc(t){return t?!!t.__v_raw:!1}function qe(t){const n=t&&t.__v_raw;return n?qe(n):t}function Da(t){return Object.isExtensible(t)&&Lc(t,"__v_skip",!0),t}const Mr=t=>at(t)?zr(t):t,za=t=>at(t)?Kc(t):t;class Gc{constructor(n,r,o,a){this.getter=n,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ia(()=>n(this._value),()=>$s(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=qe(this);return(!n._cacheable||n.effect.dirty)&&ii(n._value,n._value=n.effect.run())&&$s(n,4),Jc(n),n.effect._dirtyLevel>=2&&$s(n,2),n._value}set value(n){this._setter(n)}get _dirty(){return this.effect.dirty}set _dirty(n){this.effect.dirty=n}}function np(t,n,r=!1){let o,a;const u=Ce(t);return u?(o=t,a=nn):(o=t.get,a=t.set),new Gc(o,a,u||!a,r)}function Jc(t){var n;ei&&Pi&&(t=qe(t),zc(Pi,(n=t.dep)!=null?n:t.dep=Bc(()=>t.dep=void 0,t instanceof Gc?t:void 0)))}function $s(t,n=4,r){t=qe(t);const o=t.dep;o&&jc(o,n)}function yt(t){return!!(t&&t.__v_isRef===!0)}function Nt(t){return ip(t,!1)}function ip(t,n){return yt(t)?t:new rp(t,n)}class rp{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:qe(n),this._value=r?n:Mr(n)}get value(){return Jc(this),this._value}set value(n){const r=this.__v_isShallow||Ms(n)||Ir(n);n=r?n:qe(n),ii(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Mr(n),$s(this,4))}}function Ei(t){return yt(t)?t.value:t}const sp={get:(t,n,r)=>Ei(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return yt(a)&&!yt(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function Yc(t){return Si(t)?t:new Proxy(t,sp)}function op(t){const n=_e(t)?new Array(t.length):{};for(const r in t)n[r]=lp(t,r);return n}class ap{constructor(n,r,o){this._object=n,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return Rd(qe(this._object),this._key)}}function lp(t,n,r){const o=t[n];return yt(o)?o:new ap(t,n,r)}/** -* @vue/runtime-core v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ti(t,n,r,o){try{return o?t(...o):t()}catch(a){Gs(a,n,r)}}function _n(t,n,r,o){if(Ce(t)){const a=ti(t,n,r,o);return a&&Ec(a)&&a.catch(u=>{Gs(u,n,r)}),a}if(_e(t)){const a=[];for(let u=0;u>>1,a=kt[o],u=Ar(a);uEn&&kt.splice(n,1)}function fp(t){_e(t)?Ui.push(...t):(!Jn||!Jn.includes(t,t.allowRecurse?_i+1:_i))&&Ui.push(t),Qc()}function Lu(t,n,r=kr?En+1:0){for(;rAr(r)-Ar(o));if(Ui.length=0,Jn){Jn.push(...n);return}for(Jn=n,_i=0;_it.id==null?1/0:t.id,dp=(t,n)=>{const r=Ar(t)-Ar(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function th(t){oa=!1,kr=!0,kt.sort(dp);try{for(En=0;Envt(A)?A.trim():A)),y&&(a=r.map(Os))}let f,d=o[f=Vo(n)]||o[f=Vo(Gi(n))];!d&&u&&(d=o[f=Vo(Qi(n))]),d&&_n(d,t,6,a);const m=o[f+"Once"];if(m){if(!t.emitted)t.emitted={};else if(t.emitted[f])return;t.emitted[f]=!0,_n(m,t,6,a)}}function nh(t,n,r=!1){const o=n.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let c={},f=!1;if(!Ce(t)){const d=m=>{const g=nh(m,n,!0);g&&(f=!0,St(c,g))};!r&&n.mixins.length&&n.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!f?(at(t)&&o.set(t,null),null):(_e(u)?u.forEach(d=>c[d]=null):St(c,u),at(t)&&o.set(t,c),c)}function Js(t,n){return!t||!Vs(n)?!1:(n=n.slice(2).replace(/Once$/,""),Ve(t,n[0].toLowerCase()+n.slice(1))||Ve(t,Qi(n))||Ve(t,n))}let $t=null,Ys=null;function ks(t){const n=$t;return $t=t,Ys=t&&t.type.__scopeId||null,n}function Xs(t){Ys=t}function Qs(){Ys=null}function wr(t,n=$t,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&Bu(-1);const u=ks(n);let c;try{c=t(...a)}finally{ks(u),o._d&&Bu(1)}return c};return o._n=!0,o._c=!0,o._d=!0,o}function Ho(t){const{type:n,vnode:r,proxy:o,withProxy:a,propsOptions:[u],slots:c,attrs:f,emit:d,render:m,renderCache:g,props:y,data:C,setupState:A,ctx:I,inheritAttrs:x}=t,M=ks(t);let S,D;try{if(r.shapeFlag&4){const X=a||o,Y=X;S=Sn(m.call(Y,X,g,y,A,C,I)),D=f}else{const X=n;S=Sn(X.length>1?X(y,{attrs:f,slots:c,emit:d}):X(y,null)),D=n.props?f:mp(f)}}catch(X){Sr.length=0,Gs(X,t,1),S=pt(ri)}let U=S;if(D&&x!==!1){const X=Object.keys(D),{shapeFlag:Y}=U;X.length&&Y&7&&(u&&X.some(xa)&&(D=_p(D,u)),U=Ji(U,D,!1,!0))}return r.dirs&&(U=Ji(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(r.dirs):r.dirs),r.transition&&(U.transition=r.transition),S=U,ks(M),S}const mp=t=>{let n;for(const r in t)(r==="class"||r==="style"||Vs(r))&&((n||(n={}))[r]=t[r]);return n},_p=(t,n)=>{const r={};for(const o in t)(!xa(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function gp(t,n,r){const{props:o,children:a,component:u}=t,{props:c,children:f,patchFlag:d}=n,m=u.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?Ou(o,c,m):!!c;if(d&8){const g=n.dynamicProps;for(let y=0;yt.__isSuspense;function bp(t,n){n&&n.pendingBranch?_e(t)?n.effects.push(...t):n.effects.push(t):fp(t)}const Pp=Symbol.for("v-scx"),$p=()=>$r(Pp),_s={};function Ti(t,n,r){return ih(t,n,r)}function ih(t,n,{immediate:r,deep:o,flush:a,once:u,onTrack:c,onTrigger:f}=st){if(n&&u){const ae=n;n=(...Le)=>{ae(...Le),Y()}}const d=At,m=ae=>o===!0?ae:bi(ae,o===!1?1:void 0);let g,y=!1,C=!1;if(yt(t)?(g=()=>t.value,y=Ms(t)):Si(t)?(g=()=>m(t),y=!0):_e(t)?(C=!0,y=t.some(ae=>Si(ae)||Ms(ae)),g=()=>t.map(ae=>{if(yt(ae))return ae.value;if(Si(ae))return m(ae);if(Ce(ae))return ti(ae,d,2)})):Ce(t)?n?g=()=>ti(t,d,2):g=()=>(A&&A(),_n(t,d,3,[I])):g=nn,n&&o){const ae=g;g=()=>bi(ae())}let A,I=ae=>{A=U.onStop=()=>{ti(ae,d,4),A=U.onStop=void 0}},x;if(io)if(I=nn,n?r&&_n(n,d,3,[g(),C?[]:void 0,I]):g(),a==="sync"){const ae=$p();x=ae.__watcherHandles||(ae.__watcherHandles=[])}else return nn;let M=C?new Array(t.length).fill(_s):_s;const S=()=>{if(!(!U.active||!U.dirty))if(n){const ae=U.run();(o||y||(C?ae.some((Le,ge)=>ii(Le,M[ge])):ii(ae,M)))&&(A&&A(),_n(n,d,3,[ae,M===_s?void 0:C&&M[0]===_s?[]:M,I]),M=ae)}else U.run()};S.allowRecurse=!!n;let D;a==="sync"?D=S:a==="post"?D=()=>Ft(S,d&&d.suspense):(S.pre=!0,d&&(S.id=d.uid),D=()=>Fa(S));const U=new Ia(g,nn,D),X=Nc(),Y=()=>{U.stop(),X&&Ca(X.effects,U)};return n?r?S():M=U.run():a==="post"?Ft(U.run.bind(U),d&&d.suspense):U.run(),x&&x.push(Y),Y}function Sp(t,n,r){const o=this.proxy,a=vt(t)?t.includes(".")?rh(o,t):()=>o[t]:t.bind(o,o);let u;Ce(n)?u=n:(u=n.handler,r=n);const c=jr(this),f=ih(a,u.bind(o),r);return c(),f}function rh(t,n){const r=n.split(".");return()=>{let o=t;for(let a=0;a{bi(o,n,r)});else if(xc(t))for(const o in t)bi(t[o],n,r);return t}function Iu(t,n){if($t===null)return t;const r=ro($t)||$t.proxy,o=t.dirs||(t.dirs=[]);for(let a=0;a!!t.type.__asyncLoader,sh=t=>t.type.__isKeepAlive;function Ep(t,n){oh(t,"a",n)}function Tp(t,n){oh(t,"da",n)}function oh(t,n,r=At){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(eo(n,o,r),r){let a=r.parent;for(;a&&a.parent;)sh(a.parent.vnode)&&xp(o,n,r,a),a=a.parent}}function xp(t,n,r,o){const a=eo(n,t,o,!0);lh(()=>{Ca(o[n],a)},r)}function eo(t,n,r=At,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...c)=>{if(r.isUnmounted)return;si();const f=jr(r),d=_n(n,r,t,c);return f(),oi(),d});return o?a.unshift(u):a.push(u),u}}const Fn=t=>(n,r=At)=>(!io||t==="sp")&&eo(t,(...o)=>n(...o),r),Cp=Fn("bm"),ah=Fn("m"),Lp=Fn("bu"),Op=Fn("u"),Ip=Fn("bum"),lh=Fn("um"),Mp=Fn("sp"),kp=Fn("rtg"),Ap=Fn("rtc");function Np(t,n=At){eo("ec",t,n)}function aa(t,n,r,o){let a;const u=r;if(_e(t)||vt(t)){a=new Array(t.length);for(let c=0,f=t.length;cn(c,f,void 0,u));else{const c=Object.keys(t);a=new Array(c.length);for(let f=0,d=c.length;f$h(n)?!(n.type===ri||n.type===Vt&&!uh(n.children)):!0)?t:null}const la=t=>t?Eh(t)?ro(t)||t.proxy:la(t.parent):null,Pr=St(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=>la(t.parent),$root:t=>la(t.root),$emit:t=>t.emit,$options:t=>Za(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Fa(t.update)}),$nextTick:t=>t.n||(t.n=Ba.bind(t.proxy)),$watch:t=>Sp.bind(t)}),qo=(t,n)=>t!==st&&!t.__isScriptSetup&&Ve(t,n),Rp={get({_:t},n){if(n==="__v_skip")return!0;const{ctx:r,setupState:o,data:a,props:u,accessCache:c,type:f,appContext:d}=t;let m;if(n[0]!=="$"){const A=c[n];if(A!==void 0)switch(A){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return u[n]}else{if(qo(o,n))return c[n]=1,o[n];if(a!==st&&Ve(a,n))return c[n]=2,a[n];if((m=t.propsOptions[0])&&Ve(m,n))return c[n]=3,u[n];if(r!==st&&Ve(r,n))return c[n]=4,r[n];ua&&(c[n]=0)}}const g=Pr[n];let y,C;if(g)return n==="$attrs"&&Ht(t.attrs,"get",""),g(t);if((y=f.__cssModules)&&(y=y[n]))return y;if(r!==st&&Ve(r,n))return c[n]=4,r[n];if(C=d.config.globalProperties,Ve(C,n))return C[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return qo(a,n)?(a[n]=r,!0):o!==st&&Ve(o,n)?(o[n]=r,!0):Ve(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(u[n]=r,!0)},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:a,propsOptions:u}},c){let f;return!!r[c]||t!==st&&Ve(t,c)||qo(n,c)||(f=u[0])&&Ve(f,c)||Ve(o,c)||Ve(Pr,c)||Ve(a.config.globalProperties,c)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:Ve(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};function Mu(t){return _e(t)?t.reduce((n,r)=>(n[r]=null,n),{}):t}let ua=!0;function Dp(t){const n=Za(t),r=t.proxy,o=t.ctx;ua=!1,n.beforeCreate&&ku(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:c,watch:f,provide:d,inject:m,created:g,beforeMount:y,mounted:C,beforeUpdate:A,updated:I,activated:x,deactivated:M,beforeDestroy:S,beforeUnmount:D,destroyed:U,unmounted:X,render:Y,renderTracked:ae,renderTriggered:Le,errorCaptured:ge,serverPrefetch:we,expose:Ke,inheritAttrs:Ie,components:$e,directives:mt,filters:Ue}=n;if(m&&zp(m,o,null),c)for(const ze in c){const re=c[ze];Ce(re)&&(o[ze]=re.bind(r))}if(a){const ze=a.call(r,r);at(ze)&&(t.data=zr(ze))}if(ua=!0,u)for(const ze in u){const re=u[ze],Et=Ce(re)?re.bind(r,r):Ce(re.get)?re.get.bind(r,r):nn,Z=!Ce(re)&&Ce(re.set)?re.set.bind(r):nn,O=Ha({get:Et,set:Z});Object.defineProperty(o,ze,{enumerable:!0,configurable:!0,get:()=>O.value,set:V=>O.value=V})}if(f)for(const ze in f)ch(f[ze],o,r,ze);if(d){const ze=Ce(d)?d.call(r):d;Reflect.ownKeys(ze).forEach(re=>{Up(re,ze[re])})}g&&ku(g,t,"c");function pe(ze,re){_e(re)?re.forEach(Et=>ze(Et.bind(r))):re&&ze(re.bind(r))}if(pe(Cp,y),pe(ah,C),pe(Lp,A),pe(Op,I),pe(Ep,x),pe(Tp,M),pe(Np,ge),pe(Ap,ae),pe(kp,Le),pe(Ip,D),pe(lh,X),pe(Mp,we),_e(Ke))if(Ke.length){const ze=t.exposed||(t.exposed={});Ke.forEach(re=>{Object.defineProperty(ze,re,{get:()=>r[re],set:Et=>r[re]=Et})})}else t.exposed||(t.exposed={});Y&&t.render===nn&&(t.render=Y),Ie!=null&&(t.inheritAttrs=Ie),$e&&(t.components=$e),mt&&(t.directives=mt)}function zp(t,n,r=nn){_e(t)&&(t=ca(t));for(const o in t){const a=t[o];let u;at(a)?"default"in a?u=$r(a.from||o,a.default,!0):u=$r(a.from||o):u=$r(a),yt(u)?Object.defineProperty(n,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:c=>u.value=c}):n[o]=u}}function ku(t,n,r){_n(_e(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function ch(t,n,r,o){const a=o.includes(".")?rh(r,o):()=>r[o];if(vt(t)){const u=n[t];Ce(u)&&Ti(a,u)}else if(Ce(t))Ti(a,t.bind(r));else if(at(t))if(_e(t))t.forEach(u=>ch(u,n,r,o));else{const u=Ce(t.handler)?t.handler.bind(r):n[t.handler];Ce(u)&&Ti(a,u,t)}}function Za(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:u,config:{optionMergeStrategies:c}}=t.appContext,f=u.get(n);let d;return f?d=f:!a.length&&!r&&!o?d=n:(d={},a.length&&a.forEach(m=>As(d,m,c,!0)),As(d,n,c)),at(n)&&u.set(n,d),d}function As(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&As(t,u,r,!0),a&&a.forEach(c=>As(t,c,r,!0));for(const c in n)if(!(o&&c==="expose")){const f=jp[c]||r&&r[c];t[c]=f?f(t[c],n[c]):n[c]}return t}const jp={data:Au,props:Nu,emits:Nu,methods:gr,computed:gr,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:gr,directives:gr,watch:Fp,provide:Au,inject:Bp};function Au(t,n){return n?t?function(){return St(Ce(t)?t.call(this,this):t,Ce(n)?n.call(this,this):n)}:n:t}function Bp(t,n){return gr(ca(t),ca(n))}function ca(t){if(_e(t)){const n={};for(let r=0;r1)return r&&Ce(n)?n.call(o&&o.proxy):n}}function Hp(){return!!(At||$t||Hi)}const fh={},dh=()=>Object.create(fh),ph=t=>Object.getPrototypeOf(t)===fh;function qp(t,n,r,o=!1){const a={},u=dh();t.propsDefaults=Object.create(null),mh(t,n,a,u);for(const c in t.propsOptions[0])c in a||(a[c]=void 0);r?t.props=o?a:tp(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function Kp(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:c}}=t,f=qe(a),[d]=t.propsOptions;let m=!1;if((o||c>0)&&!(c&16)){if(c&8){const g=t.vnode.dynamicProps;for(let y=0;y{d=!0;const[C,A]=_h(y,n,!0);St(c,C),A&&f.push(...A)};!r&&n.mixins.length&&n.mixins.forEach(g),t.extends&&g(t.extends),t.mixins&&t.mixins.forEach(g)}if(!u&&!d)return at(t)&&o.set(t,Zi),Zi;if(_e(u))for(let g=0;g-1,A[1]=x<0||I-1||Ve(A,"default"))&&f.push(y)}}}const m=[c,f];return at(t)&&o.set(t,m),m}function Ru(t){return t[0]!=="$"&&!yr(t)}function Du(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function zu(t,n){return Du(t)===Du(n)}function ju(t,n){return _e(n)?n.findIndex(r=>zu(r,t)):Ce(n)&&zu(n,t)?0:-1}const gh=t=>t[0]==="_"||t==="$stable",Va=t=>_e(t)?t.map(Sn):[Sn(t)],Wp=(t,n,r)=>{if(n._n)return n;const o=wr((...a)=>Va(n(...a)),r);return o._c=!1,o},vh=(t,n,r)=>{const o=t._ctx;for(const a in t){if(gh(a))continue;const u=t[a];if(Ce(u))n[a]=Wp(a,u,o);else if(u!=null){const c=Va(u);n[a]=()=>c}}},yh=(t,n)=>{const r=Va(n);t.slots.default=()=>r},Gp=(t,n)=>{const r=t.slots=dh();if(t.vnode.shapeFlag&32){const o=n._;o?(St(r,n),Lc(r,"_",o,!0)):vh(n,r)}else n&&yh(t,n)},Jp=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,c=st;if(o.shapeFlag&32){const f=n._;f?r&&f===1?u=!1:(St(a,n),!r&&f===1&&delete a._):(u=!n.$stable,vh(n,a)),c=n}else n&&(yh(t,n),c={default:1});if(u)for(const f in a)!gh(f)&&c[f]==null&&delete a[f]};function fa(t,n,r,o,a=!1){if(_e(t)){t.forEach((C,A)=>fa(C,n&&(_e(n)?n[A]:n),r,o,a));return}if(br(o)&&!a)return;const u=o.shapeFlag&4?ro(o.component)||o.component.proxy:o.el,c=a?null:u,{i:f,r:d}=t,m=n&&n.r,g=f.refs===st?f.refs={}:f.refs,y=f.setupState;if(m!=null&&m!==d&&(vt(m)?(g[m]=null,Ve(y,m)&&(y[m]=null)):yt(m)&&(m.value=null)),Ce(d))ti(d,f,12,[c,g]);else{const C=vt(d),A=yt(d);if(C||A){const I=()=>{if(t.f){const x=C?Ve(y,d)?y[d]:g[d]:d.value;a?_e(x)&&Ca(x,u):_e(x)?x.includes(u)||x.push(u):C?(g[d]=[u],Ve(y,d)&&(y[d]=g[d])):(d.value=[u],t.k&&(g[t.k]=d.value))}else C?(g[d]=c,Ve(y,d)&&(y[d]=c)):A&&(d.value=c,t.k&&(g[t.k]=c))};c?(I.id=-1,Ft(I,r)):I()}}}const Ft=bp;function Yp(t){return Xp(t)}function Xp(t,n){const r=Oc();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:c,createText:f,createComment:d,setText:m,setElementText:g,parentNode:y,nextSibling:C,setScopeId:A=nn,insertStaticContent:I}=t,x=(b,T,F,H=null,q=null,G=null,ne=void 0,J=null,Q=!!T.dynamicChildren)=>{if(b===T)return;b&&!pr(b,T)&&(H=ee(b),V(b,q,G,!0),b=null),T.patchFlag===-2&&(Q=!1,T.dynamicChildren=null);const{type:K,ref:te,shapeFlag:ue}=T;switch(K){case no:M(b,T,F,H);break;case ri:S(b,T,F,H);break;case Wo:b==null&&D(T,F,H,ne);break;case Vt:$e(b,T,F,H,q,G,ne,J,Q);break;default:ue&1?Y(b,T,F,H,q,G,ne,J,Q):ue&6?mt(b,T,F,H,q,G,ne,J,Q):(ue&64||ue&128)&&K.process(b,T,F,H,q,G,ne,J,Q,be)}te!=null&&q&&fa(te,b&&b.ref,G,T||b,!T)},M=(b,T,F,H)=>{if(b==null)o(T.el=f(T.children),F,H);else{const q=T.el=b.el;T.children!==b.children&&m(q,T.children)}},S=(b,T,F,H)=>{b==null?o(T.el=d(T.children||""),F,H):T.el=b.el},D=(b,T,F,H)=>{[b.el,b.anchor]=I(b.children,T,F,H,b.el,b.anchor)},U=({el:b,anchor:T},F,H)=>{let q;for(;b&&b!==T;)q=C(b),o(b,F,H),b=q;o(T,F,H)},X=({el:b,anchor:T})=>{let F;for(;b&&b!==T;)F=C(b),a(b),b=F;a(T)},Y=(b,T,F,H,q,G,ne,J,Q)=>{T.type==="svg"?ne="svg":T.type==="math"&&(ne="mathml"),b==null?ae(T,F,H,q,G,ne,J,Q):we(b,T,q,G,ne,J,Q)},ae=(b,T,F,H,q,G,ne,J)=>{let Q,K;const{props:te,shapeFlag:ue,transition:le,dirs:de}=b;if(Q=b.el=c(b.type,G,te&&te.is,te),ue&8?g(Q,b.children):ue&16&&ge(b.children,Q,null,H,q,Ko(b,G),ne,J),de&&di(b,null,H,"created"),Le(Q,b,b.scopeId,ne,H),te){for(const je in te)je!=="value"&&!yr(je)&&u(Q,je,null,te[je],G,b.children,H,q,k);"value"in te&&u(Q,"value",null,te.value,G),(K=te.onVnodeBeforeMount)&&$n(K,H,b)}de&&di(b,null,H,"beforeMount");const Pe=Qp(q,le);Pe&&le.beforeEnter(Q),o(Q,T,F),((K=te&&te.onVnodeMounted)||Pe||de)&&Ft(()=>{K&&$n(K,H,b),Pe&&le.enter(Q),de&&di(b,null,H,"mounted")},q)},Le=(b,T,F,H,q)=>{if(F&&A(b,F),H)for(let G=0;G{for(let K=Q;K{const J=T.el=b.el;let{patchFlag:Q,dynamicChildren:K,dirs:te}=T;Q|=b.patchFlag&16;const ue=b.props||st,le=T.props||st;let de;if(F&&pi(F,!1),(de=le.onVnodeBeforeUpdate)&&$n(de,F,T,b),te&&di(T,b,F,"beforeUpdate"),F&&pi(F,!0),K?Ke(b.dynamicChildren,K,J,F,H,Ko(T,q),G):ne||re(b,T,J,null,F,H,Ko(T,q),G,!1),Q>0){if(Q&16)Ie(J,T,ue,le,F,H,q);else if(Q&2&&ue.class!==le.class&&u(J,"class",null,le.class,q),Q&4&&u(J,"style",ue.style,le.style,q),Q&8){const Pe=T.dynamicProps;for(let je=0;je{de&&$n(de,F,T,b),te&&di(T,b,F,"updated")},H)},Ke=(b,T,F,H,q,G,ne)=>{for(let J=0;J{if(F!==H){if(F!==st)for(const J in F)!yr(J)&&!(J in H)&&u(b,J,F[J],null,ne,T.children,q,G,k);for(const J in H){if(yr(J))continue;const Q=H[J],K=F[J];Q!==K&&J!=="value"&&u(b,J,K,Q,ne,T.children,q,G,k)}"value"in H&&u(b,"value",F.value,H.value,ne)}},$e=(b,T,F,H,q,G,ne,J,Q)=>{const K=T.el=b?b.el:f(""),te=T.anchor=b?b.anchor:f("");let{patchFlag:ue,dynamicChildren:le,slotScopeIds:de}=T;de&&(J=J?J.concat(de):de),b==null?(o(K,F,H),o(te,F,H),ge(T.children||[],F,te,q,G,ne,J,Q)):ue>0&&ue&64&&le&&b.dynamicChildren?(Ke(b.dynamicChildren,le,F,q,G,ne,J),(T.key!=null||q&&T===q.subTree)&&wh(b,T,!0)):re(b,T,F,te,q,G,ne,J,Q)},mt=(b,T,F,H,q,G,ne,J,Q)=>{T.slotScopeIds=J,b==null?T.shapeFlag&512?q.ctx.activate(T,F,H,ne,Q):Ue(T,F,H,q,G,ne,Q):wt(b,T,Q)},Ue=(b,T,F,H,q,G,ne)=>{const J=b.component=um(b,H,q);if(sh(b)&&(J.ctx.renderer=be),cm(J),J.asyncDep){if(q&&q.registerDep(J,pe),!b.el){const Q=J.subTree=pt(ri);S(null,Q,T,F)}}else pe(J,b,T,F,q,G,ne)},wt=(b,T,F)=>{const H=T.component=b.component;if(gp(b,T,F))if(H.asyncDep&&!H.asyncResolved){ze(H,T,F);return}else H.next=T,hp(H.update),H.effect.dirty=!0,H.update();else T.el=b.el,H.vnode=T},pe=(b,T,F,H,q,G,ne)=>{const J=()=>{if(b.isMounted){let{next:te,bu:ue,u:le,parent:de,vnode:Pe}=b;{const sn=bh(b);if(sn){te&&(te.el=Pe.el,ze(b,te,ne)),sn.asyncDep.then(()=>{b.isUnmounted||J()});return}}let je=te,Oe;pi(b,!1),te?(te.el=Pe.el,ze(b,te,ne)):te=Pe,ue&&Ps(ue),(Oe=te.props&&te.props.onVnodeBeforeUpdate)&&$n(Oe,de,te,Pe),pi(b,!0);const Ge=Ho(b),Tt=b.subTree;b.subTree=Ge,x(Tt,Ge,y(Tt.el),ee(Tt),b,q,G),te.el=Ge.el,je===null&&vp(b,Ge.el),le&&Ft(le,q),(Oe=te.props&&te.props.onVnodeUpdated)&&Ft(()=>$n(Oe,de,te,Pe),q)}else{let te;const{el:ue,props:le}=T,{bm:de,m:Pe,parent:je}=b,Oe=br(T);if(pi(b,!1),de&&Ps(de),!Oe&&(te=le&&le.onVnodeBeforeMount)&&$n(te,je,T),pi(b,!0),ue&&_t){const Ge=()=>{b.subTree=Ho(b),_t(ue,b.subTree,b,q,null)};Oe?T.type.__asyncLoader().then(()=>!b.isUnmounted&&Ge()):Ge()}else{const Ge=b.subTree=Ho(b);x(null,Ge,F,H,b,q,G),T.el=Ge.el}if(Pe&&Ft(Pe,q),!Oe&&(te=le&&le.onVnodeMounted)){const Ge=T;Ft(()=>$n(te,je,Ge),q)}(T.shapeFlag&256||je&&br(je.vnode)&&je.vnode.shapeFlag&256)&&b.a&&Ft(b.a,q),b.isMounted=!0,T=F=H=null}},Q=b.effect=new Ia(J,nn,()=>Fa(K),b.scope),K=b.update=()=>{Q.dirty&&Q.run()};K.id=b.uid,pi(b,!0),K()},ze=(b,T,F)=>{T.component=b;const H=b.vnode.props;b.vnode=T,b.next=null,Kp(b,T.props,H,F),Jp(b,T.children,F),si(),Lu(b),oi()},re=(b,T,F,H,q,G,ne,J,Q=!1)=>{const K=b&&b.children,te=b?b.shapeFlag:0,ue=T.children,{patchFlag:le,shapeFlag:de}=T;if(le>0){if(le&128){Z(K,ue,F,H,q,G,ne,J,Q);return}else if(le&256){Et(K,ue,F,H,q,G,ne,J,Q);return}}de&8?(te&16&&k(K,q,G),ue!==K&&g(F,ue)):te&16?de&16?Z(K,ue,F,H,q,G,ne,J,Q):k(K,q,G,!0):(te&8&&g(F,""),de&16&&ge(ue,F,H,q,G,ne,J,Q))},Et=(b,T,F,H,q,G,ne,J,Q)=>{b=b||Zi,T=T||Zi;const K=b.length,te=T.length,ue=Math.min(K,te);let le;for(le=0;lete?k(b,q,G,!0,!1,ue):ge(T,F,H,q,G,ne,J,Q,ue)},Z=(b,T,F,H,q,G,ne,J,Q)=>{let K=0;const te=T.length;let ue=b.length-1,le=te-1;for(;K<=ue&&K<=le;){const de=b[K],Pe=T[K]=Q?Yn(T[K]):Sn(T[K]);if(pr(de,Pe))x(de,Pe,F,null,q,G,ne,J,Q);else break;K++}for(;K<=ue&&K<=le;){const de=b[ue],Pe=T[le]=Q?Yn(T[le]):Sn(T[le]);if(pr(de,Pe))x(de,Pe,F,null,q,G,ne,J,Q);else break;ue--,le--}if(K>ue){if(K<=le){const de=le+1,Pe=dele)for(;K<=ue;)V(b[K],q,G,!0),K++;else{const de=K,Pe=K,je=new Map;for(K=Pe;K<=le;K++){const bt=T[K]=Q?Yn(T[K]):Sn(T[K]);bt.key!=null&&je.set(bt.key,K)}let Oe,Ge=0;const Tt=le-Pe+1;let sn=!1,on=0;const Wt=new Array(Tt);for(K=0;K=Tt){V(bt,q,G,!0);continue}let Qe;if(bt.key!=null)Qe=je.get(bt.key);else for(Oe=Pe;Oe<=le;Oe++)if(Wt[Oe-Pe]===0&&pr(bt,T[Oe])){Qe=Oe;break}Qe===void 0?V(bt,q,G,!0):(Wt[Qe-Pe]=K+1,Qe>=on?on=Qe:sn=!0,x(bt,T[Qe],F,null,q,G,ne,J,Q),Ge++)}const ai=sn?em(Wt):Zi;for(Oe=ai.length-1,K=Tt-1;K>=0;K--){const bt=Pe+K,Qe=T[bt],Li=bt+1{const{el:G,type:ne,transition:J,children:Q,shapeFlag:K}=b;if(K&6){O(b.component.subTree,T,F,H);return}if(K&128){b.suspense.move(T,F,H);return}if(K&64){ne.move(b,T,F,be);return}if(ne===Vt){o(G,T,F);for(let ue=0;ueJ.enter(G),q);else{const{leave:ue,delayLeave:le,afterLeave:de}=J,Pe=()=>o(G,T,F),je=()=>{ue(G,()=>{Pe(),de&&de()})};le?le(G,Pe,je):je()}else o(G,T,F)},V=(b,T,F,H=!1,q=!1)=>{const{type:G,props:ne,ref:J,children:Q,dynamicChildren:K,shapeFlag:te,patchFlag:ue,dirs:le}=b;if(J!=null&&fa(J,null,F,b,!0),te&256){T.ctx.deactivate(b);return}const de=te&1&&le,Pe=!br(b);let je;if(Pe&&(je=ne&&ne.onVnodeBeforeUnmount)&&$n(je,T,b),te&6)w(b.component,F,H);else{if(te&128){b.suspense.unmount(F,H);return}de&&di(b,null,T,"beforeUnmount"),te&64?b.type.remove(b,T,F,q,be,H):K&&(G!==Vt||ue>0&&ue&64)?k(K,T,F,!1,!0):(G===Vt&&ue&384||!q&&te&16)&&k(Q,T,F),H&&R(b)}(Pe&&(je=ne&&ne.onVnodeUnmounted)||de)&&Ft(()=>{je&&$n(je,T,b),de&&di(b,null,T,"unmounted")},F)},R=b=>{const{type:T,el:F,anchor:H,transition:q}=b;if(T===Vt){v(F,H);return}if(T===Wo){X(b);return}const G=()=>{a(F),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(b.shapeFlag&1&&q&&!q.persisted){const{leave:ne,delayLeave:J}=q,Q=()=>ne(F,G);J?J(b.el,G,Q):Q()}else G()},v=(b,T)=>{let F;for(;b!==T;)F=C(b),a(b),b=F;a(T)},w=(b,T,F)=>{const{bum:H,scope:q,update:G,subTree:ne,um:J}=b;H&&Ps(H),q.stop(),G&&(G.active=!1,V(ne,b,T,F)),J&&Ft(J,T),Ft(()=>{b.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},k=(b,T,F,H=!1,q=!1,G=0)=>{for(let ne=G;neb.shapeFlag&6?ee(b.component.subTree):b.shapeFlag&128?b.suspense.next():C(b.anchor||b.el);let ie=!1;const Ee=(b,T,F)=>{b==null?T._vnode&&V(T._vnode,null,null,!0):x(T._vnode||null,b,T,null,null,null,F),ie||(ie=!0,Lu(),eh(),ie=!1),T._vnode=b},be={p:x,um:V,m:O,r:R,mt:Ue,mc:ge,pc:re,pbc:Ke,n:ee,o:t};let We,_t;return{render:Ee,hydrate:We,createApp:Vp(Ee,We)}}function Ko({type:t,props:n},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:r}function pi({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Qp(t,n){return(!t||t&&!t.pendingBranch)&&n&&!n.persisted}function wh(t,n,r=!1){const o=t.children,a=n.children;if(_e(o)&&_e(a))for(let u=0;u>1,t[r[f]]0&&(n[o]=r[u-1]),r[u]=o)}}for(u=r.length,c=r[u-1];u-- >0;)r[u]=c,c=n[c];return r}function bh(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:bh(n)}const tm=t=>t.__isTeleport,Vt=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),ri=Symbol.for("v-cmt"),Wo=Symbol.for("v-stc"),Sr=[];let mn=null;function Ne(t=!1){Sr.push(mn=t?null:[])}function nm(){Sr.pop(),mn=Sr[Sr.length-1]||null}let Nr=1;function Bu(t){Nr+=t}function Ph(t){return t.dynamicChildren=Nr>0?mn||Zi:null,nm(),Nr>0&&mn&&mn.push(t),t}function Xe(t,n,r,o,a,u){return Ph(Be(t,n,r,o,a,u,!0))}function xn(t,n,r,o,a){return Ph(pt(t,n,r,o,a,!0))}function $h(t){return t?t.__v_isVNode===!0:!1}function pr(t,n){return t.type===n.type&&t.key===n.key}const Sh=({key:t})=>t??null,Ss=({ref:t,ref_key:n,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?vt(t)||yt(t)||Ce(t)?{i:$t,r:t,k:n,f:!!r}:t:null);function Be(t,n=null,r=null,o=0,a=null,u=t===Vt?0:1,c=!1,f=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&Sh(n),ref:n&&Ss(n),scopeId:Ys,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:$t};return f?(Ua(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=vt(r)?8:16),Nr>0&&!c&&mn&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&mn.push(d),d}const pt=im;function im(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===yp)&&(t=ri),$h(t)){const f=Ji(t,n,!0);return r&&Ua(f,r),Nr>0&&!u&&mn&&(f.shapeFlag&6?mn[mn.indexOf(t)]=f:mn.push(f)),f.patchFlag|=-2,f}if(pm(t)&&(t=t.__vccOpts),n){n=rm(n);let{class:f,style:d}=n;f&&!vt(f)&&(n.class=qs(f)),at(d)&&(Wc(d)&&!_e(d)&&(d=St({},d)),n.style=Oa(d))}const c=vt(t)?1:wp(t)?128:tm(t)?64:at(t)?4:Ce(t)?2:0;return Be(t,n,r,o,a,c,u,!0)}function rm(t){return t?Wc(t)||ph(t)?St({},t):t:null}function Ji(t,n,r=!1,o=!1){const{props:a,ref:u,patchFlag:c,children:f,transition:d}=t,m=n?om(a||{},n):a,g={__v_isVNode:!0,__v_skip:!0,type:t.type,props:m,key:m&&Sh(m),ref:n&&n.ref?r&&u?_e(u)?u.concat(Ss(n)):[u,Ss(n)]:Ss(n):u,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==Vt?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ji(t.ssContent),ssFallback:t.ssFallback&&Ji(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&o&&(g.transition=d.clone(g)),g}function sm(t=" ",n=0){return pt(no,null,t,n)}function Dn(t="",n=!1){return n?(Ne(),xn(ri,null,t)):pt(ri,null,t)}function Sn(t){return t==null||typeof t=="boolean"?pt(ri):_e(t)?pt(Vt,null,t.slice()):typeof t=="object"?Yn(t):pt(no,null,String(t))}function Yn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ji(t)}function Ua(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(_e(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),Ua(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!ph(n)?n._ctx=$t:a===3&&$t&&($t.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Ce(n)?(n={default:n,_ctx:$t},r=32):(n=String(n),o&64?(r=16,n=[sm(n)]):r=8);t.children=n,t.shapeFlag|=r}function om(...t){const n={};for(let r=0;r{let a;return(a=t[r])||(a=t[r]=[]),a.push(o),u=>{a.length>1?a.forEach(c=>c(u)):a[0](u)}};Ns=n("__VUE_INSTANCE_SETTERS__",r=>At=r),da=n("__VUE_SSR_SETTERS__",r=>io=r)}const jr=t=>{const n=At;return Ns(t),t.scope.on(),()=>{t.scope.off(),Ns(n)}},Fu=()=>{At&&At.scope.off(),Ns(null)};function Eh(t){return t.vnode.shapeFlag&4}let io=!1;function cm(t,n=!1){n&&da(n);const{props:r,children:o}=t.vnode,a=Eh(t);qp(t,r,a,n),Gp(t,o);const u=a?hm(t,n):void 0;return n&&da(!1),u}function hm(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Rp);const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?dm(t):null,u=jr(t);si();const c=ti(o,t,0,[t.props,a]);if(oi(),u(),Ec(c)){if(c.then(Fu,Fu),n)return c.then(f=>{Zu(t,f,n)}).catch(f=>{Gs(f,t,0)});t.asyncDep=c}else Zu(t,c,n)}else Th(t,n)}function Zu(t,n,r){Ce(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:at(n)&&(t.setupState=Yc(n)),Th(t,r)}let Vu;function Th(t,n,r){const o=t.type;if(!t.render){if(!n&&Vu&&!o.render){const a=o.template||Za(t).template;if(a){const{isCustomElement:u,compilerOptions:c}=t.appContext.config,{delimiters:f,compilerOptions:d}=o,m=St(St({isCustomElement:u,delimiters:f},c),d);o.render=Vu(a,m)}}t.render=o.render||nn}{const a=jr(t);si();try{Dp(t)}finally{oi(),a()}}}const fm={get(t,n){return Ht(t,"get",""),t[n]}};function dm(t){const n=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,fm),slots:t.slots,emit:t.emit,expose:n}}function ro(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Yc(Da(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in Pr)return Pr[r](t)},has(n,r){return r in n||r in Pr}}))}function pm(t){return Ce(t)&&"__vccOpts"in t}const Ha=(t,n)=>np(t,n,io),mm="3.4.27";/** -* @vue/runtime-dom v3.4.27 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const _m="http://www.w3.org/2000/svg",gm="http://www.w3.org/1998/Math/MathML",Xn=typeof document<"u"?document:null,Uu=Xn&&Xn.createElement("template"),vm={insert:(t,n,r)=>{n.insertBefore(t,r||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,r,o)=>{const a=n==="svg"?Xn.createElementNS(_m,t):n==="mathml"?Xn.createElementNS(gm,t):Xn.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>Xn.createTextNode(t),createComment:t=>Xn.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Xn.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,r,o,a,u){const c=r?r.previousSibling:n.lastChild;if(a&&(a===u||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{Uu.innerHTML=o==="svg"?`${t}`:o==="mathml"?`${t}`:t;const f=Uu.content;if(o==="svg"||o==="mathml"){const d=f.firstChild;for(;d.firstChild;)f.appendChild(d.firstChild);f.removeChild(d)}n.insertBefore(f,r)}return[c?c.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}},ym=Symbol("_vtc");function wm(t,n,r){const o=t[ym];o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}const Hu=Symbol("_vod"),bm=Symbol("_vsh"),Pm=Symbol(""),$m=/(^|;)\s*display\s*:/;function Sm(t,n,r){const o=t.style,a=vt(r);let u=!1;if(r&&!a){if(n)if(vt(n))for(const c of n.split(";")){const f=c.slice(0,c.indexOf(":")).trim();r[f]==null&&Es(o,f,"")}else for(const c in n)r[c]==null&&Es(o,c,"");for(const c in r)c==="display"&&(u=!0),Es(o,c,r[c])}else if(a){if(n!==r){const c=o[Pm];c&&(r+=";"+c),o.cssText=r,u=$m.test(r)}}else n&&t.removeAttribute("style");Hu in t&&(t[Hu]=u?o.display:"",t[bm]&&(o.display="none"))}const qu=/\s*!important$/;function Es(t,n,r){if(_e(r))r.forEach(o=>Es(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=Em(t,n);qu.test(r)?t.setProperty(Qi(o),r.replace(qu,""),"important"):t[o]=r}}const Ku=["Webkit","Moz","ms"],Go={};function Em(t,n){const r=Go[n];if(r)return r;let o=Gi(n);if(o!=="filter"&&o in t)return Go[n]=o;o=Cc(o);for(let a=0;aJo||(Im.then(()=>Jo=0),Jo=Date.now());function km(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;_n(Am(o,r.value),n,5,[o])};return r.value=t,r.attached=Mm(),r}function Am(t,n){if(_e(n)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},n.map(o=>a=>!a._stopped&&o&&o(a))}else return n}const Yu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Nm=(t,n,r,o,a,u,c,f,d)=>{const m=a==="svg";n==="class"?wm(t,o,m):n==="style"?Sm(t,r,o):Vs(n)?xa(n)||Lm(t,n,r,o,c):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):Rm(t,n,o,m))?xm(t,n,o,u,c,f,d):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),Tm(t,n,o,m))};function Rm(t,n,r,o){if(o)return!!(n==="innerHTML"||n==="textContent"||n in t&&Yu(n)&&Ce(r));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Yu(n)&&vt(r)?!1:n in t}const Rs=t=>{const n=t.props["onUpdate:modelValue"]||!1;return _e(n)?r=>Ps(n,r):n};function Dm(t){t.target.composing=!0}function Xu(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const qi=Symbol("_assign"),zm={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t[qi]=Rs(a);const u=o||a.props&&a.props.type==="number";gi(t,n?"change":"input",c=>{if(c.target.composing)return;let f=t.value;r&&(f=f.trim()),u&&(f=Os(f)),t[qi](f)}),r&&gi(t,"change",()=>{t.value=t.value.trim()}),n||(gi(t,"compositionstart",Dm),gi(t,"compositionend",Xu),gi(t,"change",Xu))},mounted(t,{value:n}){t.value=n??""},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t[qi]=Rs(u),t.composing)return;const c=(a||t.type==="number")&&!/^0\d/.test(t.value)?Os(t.value):t.value,f=n??"";c!==f&&(document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===f)||(t.value=f))}},jm={deep:!0,created(t,{value:n,modifiers:{number:r}},o){const a=Us(n);gi(t,"change",()=>{const u=Array.prototype.filter.call(t.options,c=>c.selected).map(c=>r?Os(Ds(c)):Ds(c));t[qi](t.multiple?a?new Set(u):u:u[0]),t._assigning=!0,Ba(()=>{t._assigning=!1})}),t[qi]=Rs(o)},mounted(t,{value:n,modifiers:{number:r}}){Qu(t,n)},beforeUpdate(t,n,r){t[qi]=Rs(r)},updated(t,{value:n,modifiers:{number:r}}){t._assigning||Qu(t,n)}};function Qu(t,n,r){const o=t.multiple,a=_e(n);if(!(o&&!a&&!Us(n))){for(let u=0,c=t.options.length;uString(g)===String(d)):f.selected=Md(n,d)>-1}else f.selected=n.has(d);else if(Ks(Ds(f),n)){t.selectedIndex!==u&&(t.selectedIndex=u);return}}!o&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ds(t){return"_value"in t?t._value:t.value}const Bm=["ctrl","shift","alt","meta"],Fm={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,n)=>Bm.some(r=>t[`${r}Key`]&&!n.includes(r))},Zm=(t,n)=>{const r=t._withMods||(t._withMods={}),o=n.join(".");return r[o]||(r[o]=(a,...u)=>{for(let c=0;c{const n=Um().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=Km(o);if(!a)return;const u=n._component;!Ce(u)&&!u.render&&!u.template&&(u.template=a.innerHTML),a.innerHTML="";const c=r(a,!1,qm(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),c},n};function qm(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Km(t){return vt(t)?document.querySelector(t):t}var Wm=!1;/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */let xh;const so=t=>xh=t,Ch=Symbol();function pa(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Er;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Er||(Er={}));function Gm(){const t=Ac(!0),n=t.run(()=>Nt({}));let r=[],o=[];const a=Da({install(u){so(a),a._a=u,u.provide(Ch,a),u.config.globalProperties.$pinia=a,o.forEach(c=>r.push(c)),o=[]},use(u){return!this._a&&!Wm?o.push(u):r.push(u),this},_p:r,_a:null,_e:t,_s:new Map,state:n});return a}const Lh=()=>{};function tc(t,n,r,o=Lh){t.push(n);const a=()=>{const u=t.indexOf(n);u>-1&&(t.splice(u,1),o())};return!r&&Nc()&&Ad(a),a}function zi(t,...n){t.slice().forEach(r=>{r(...n)})}const Jm=t=>t();function ma(t,n){t instanceof Map&&n instanceof Map&&n.forEach((r,o)=>t.set(o,r)),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const r in n){if(!n.hasOwnProperty(r))continue;const o=n[r],a=t[r];pa(a)&&pa(o)&&t.hasOwnProperty(r)&&!yt(o)&&!Si(o)?t[r]=ma(a,o):t[r]=o}return t}const Ym=Symbol();function Xm(t){return!pa(t)||!t.hasOwnProperty(Ym)}const{assign:Gn}=Object;function Qm(t){return!!(yt(t)&&t.effect)}function e_(t,n,r,o){const{state:a,actions:u,getters:c}=n,f=r.state.value[t];let d;function m(){f||(r.state.value[t]=a?a():{});const g=op(r.state.value[t]);return Gn(g,u,Object.keys(c||{}).reduce((y,C)=>(y[C]=Da(Ha(()=>{so(r);const A=r._s.get(t);return c[C].call(A,A)})),y),{}))}return d=Oh(t,m,n,r,o,!0),d}function Oh(t,n,r={},o,a,u){let c;const f=Gn({actions:{}},r),d={deep:!0};let m,g,y=[],C=[],A;const I=o.state.value[t];!u&&!I&&(o.state.value[t]={}),Nt({});let x;function M(ge){let we;m=g=!1,typeof ge=="function"?(ge(o.state.value[t]),we={type:Er.patchFunction,storeId:t,events:A}):(ma(o.state.value[t],ge),we={type:Er.patchObject,payload:ge,storeId:t,events:A});const Ke=x=Symbol();Ba().then(()=>{x===Ke&&(m=!0)}),g=!0,zi(y,we,o.state.value[t])}const S=u?function(){const{state:we}=r,Ke=we?we():{};this.$patch(Ie=>{Gn(Ie,Ke)})}:Lh;function D(){c.stop(),y=[],C=[],o._s.delete(t)}function U(ge,we){return function(){so(o);const Ke=Array.from(arguments),Ie=[],$e=[];function mt(pe){Ie.push(pe)}function Ue(pe){$e.push(pe)}zi(C,{args:Ke,name:ge,store:Y,after:mt,onError:Ue});let wt;try{wt=we.apply(this&&this.$id===t?this:Y,Ke)}catch(pe){throw zi($e,pe),pe}return wt instanceof Promise?wt.then(pe=>(zi(Ie,pe),pe)).catch(pe=>(zi($e,pe),Promise.reject(pe))):(zi(Ie,wt),wt)}}const X={_p:o,$id:t,$onAction:tc.bind(null,C),$patch:M,$reset:S,$subscribe(ge,we={}){const Ke=tc(y,ge,we.detached,()=>Ie()),Ie=c.run(()=>Ti(()=>o.state.value[t],$e=>{(we.flush==="sync"?g:m)&&ge({storeId:t,type:Er.direct,events:A},$e)},Gn({},d,we)));return Ke},$dispose:D},Y=zr(X);o._s.set(t,Y);const Le=(o._a&&o._a.runWithContext||Jm)(()=>o._e.run(()=>(c=Ac()).run(n)));for(const ge in Le){const we=Le[ge];if(yt(we)&&!Qm(we)||Si(we))u||(I&&Xm(we)&&(yt(we)?we.value=I[ge]:ma(we,I[ge])),o.state.value[t][ge]=we);else if(typeof we=="function"){const Ke=U(ge,we);Le[ge]=Ke,f.actions[ge]=we}}return Gn(Y,Le),Gn(qe(Y),Le),Object.defineProperty(Y,"$state",{get:()=>o.state.value[t],set:ge=>{M(we=>{Gn(we,ge)})}}),o._p.forEach(ge=>{Gn(Y,c.run(()=>ge({store:Y,app:o._a,pinia:o,options:f})))}),I&&u&&r.hydrate&&r.hydrate(Y.$state,I),m=!0,g=!0,Y}function t_(t,n,r){let o,a;const u=typeof n=="function";o=t,a=u?r:n;function c(f,d){const m=Hp();return f=f||(m?$r(Ch,null):null),f&&so(f),f=xh,f._s.has(o)||(u?Oh(o,n,a,f):e_(o,a,f)),f._s.get(o)}return c.$id=o,c}const n_=jt({__name:"SearchListProvider",props:{graphTable:{}},setup(t){const n=Nt(1),r=Nt(),o=Nt(!0),a=Nt(!1),u=zr({resourceName:"",resourceGraphId:""}),c=t;async function f({resourceName:y,resourceGraphId:C}={}){const A=new URL("https://arches-app-demo.opentechstrategies.com/search/resources"),I=new URLSearchParams({"paging-filter":n.value.toString()});y&&I.append("term-filter",`[{"inverted":false,"type":"string","context":"","context_label":"","id":"${y}","text":"${y}","value":"${y}","selected":true}]`),C&&I.append("resource-type-filter",`[{"graphid":"${C}","name":"${c.graphTable.get(C)}","inverted":false}]`),A.search=I.toString();const x=await fetch(A.toString()).then(M=>M.json());o.value=x["paging-filter"].paginator.has_next,a.value=x["paging-filter"].paginator.has_previous,r.value={items:x.results.hits.hits}}f(u);const d=()=>{o.value?(n.value++,f(u)):o.value=!1},m=()=>{a.value?(n.value--,f(u)):a.value=!1};Ti(()=>({resourceGraphId:u.resourceGraphId,resourceName:u.resourceName}),async y=>{try{await f(y)}catch(C){console.error("Unhandled error during execution of watcher callback",C)}},{deep:!0,immediate:!0});const g={has_next:o,has_previous:a};return(y,C)=>to(y.$slots,"default",{searchResults:r.value,fetchNextPage:d,fetchPreviousPage:m,pageValues:g,searchQuery:u})}}),oo=t_("resource",()=>({resourceId:Nt("")})),i_={key:0,class:"resource-list-item"},r_={class:"header"},s_={class:"title"},o_=["src"],a_=["src"],l_={class:"resource-type"},u_=jt({__name:"ResourceListItem",props:{resourceName:{},resourceId:{},resourceType:{}},emits:["set-resource"],setup(t,{emit:n}){const r=t,o=n,a=()=>{o("set-resource",r.resourceId)},u=!0,c=Nt(void 0);async function f(){const d=new URL(`https://arches-app-demo.opentechstrategies.com/archesdataviewer/getimage/${r.resourceId}`),m=await fetch(d.toString()).then(y=>y.json()),g=m==null?void 0:m.url;g&&(c.value="https://arches-app-demo.opentechstrategies.com"+g)}return f(),(d,m)=>r.resourceName!=="Rose McGowan"?(Ne(),Xe("div",i_,[Be("div",r_,[Be("div",s_,Kt(r.resourceName),1),c.value?(Ne(),Xe("img",{key:0,class:"thumbnail",src:c.value,alt:"thumbnail"},null,8,o_)):(Ne(),Xe("img",{key:1,class:"thumbnail",src:Ei(u)?"/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available"},null,8,a_))]),Be("div",l_,Kt(r.resourceType??"Resource"),1),Be("button",{class:"details-button",onClick:a},"details")])):Dn("",!0)}}),rn=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},Ih=rn(u_,[["__scopeId","data-v-cf046eae"]]);function c_(t,n){return Ne(),Xe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[Be("path",{"fill-rule":"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z","clip-rule":"evenodd"})])}function h_(t,n){return Ne(),Xe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[Be("path",{"fill-rule":"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z","clip-rule":"evenodd"})])}const Mh=t=>(Xs("data-v-0fa3dd46"),t=t(),Qs(),t),f_=["disabled"],d_={key:0},p_=Mh(()=>Be("p",null,"next page",-1)),m_={key:1},__=Mh(()=>Be("p",null,"previous page",-1)),g_=jt({__name:"SearchListButton",props:{type:{},flag:{}},emits:["next","previous"],setup(t,{emit:n}){const r=t,o=Nt(r.flag),a=n,u=()=>{r.type==="next"?a("next"):a("previous")};return(c,f)=>(Ne(),Xe("button",{class:qs(["list-button",{disabled:!o.value}]),disabled:!o.value,onClick:u},[r.type==="next"?(Ne(),Xe("div",d_,[pt(Ei(c_),{class:"icon"}),p_])):(Ne(),Xe("div",m_,[pt(Ei(h_),{class:"icon"}),__]))],10,f_))}}),nc=rn(g_,[["__scopeId","data-v-0fa3dd46"]]),v_=t=>(Xs("data-v-05d37195"),t=t(),Qs(),t),y_={class:"search-list-container"},w_={class:"search-bar"},b_=v_(()=>Be("option",{disabled:"",value:""},"Please select one",-1)),P_=["value"],$_={class:"search-list"},S_={class:"button-container"},E_=jt({__name:"SearchList",props:{pageValues:{},searchResults:{},graphTable:{},searchQuery:{}},emits:["next-page","previous-page"],setup(t,{emit:n}){const r=oo(),o=t,a=n,u=()=>{a("next-page")},c=()=>{a("previous-page")},f=d=>{r.$patch({resourceId:d})};return(d,m)=>(Ne(),Xe("div",y_,[Be("div",w_,[Iu(Be("input",{"onUpdate:modelValue":m[0]||(m[0]=g=>o.searchQuery.resourceName=g),class:"search-input",placeholder:"Search by name..."},null,512),[[zm,o.searchQuery.resourceName]]),Iu(Be("select",{"onUpdate:modelValue":m[1]||(m[1]=g=>o.searchQuery.resourceGraphId=g),class:"search-select"},[b_,(Ne(!0),Xe(Vt,null,aa(o.graphTable,(g,y)=>(Ne(),Xe("option",{key:y,value:g[0]},Kt(g[1]),9,P_))),128))],512),[[jm,o.searchQuery.resourceGraphId]])]),Be("div",$_,[(Ne(!0),Xe(Vt,null,aa(o.searchResults.items,g=>(Ne(),xn(Ih,{key:g._id,"resource-name":g._source.displayname,"resource-id":g._source.resourceinstanceid,"resource-type":o.graphTable.get(g._source.graph_id),onSetResource:f},null,8,["resource-name","resource-id","resource-type"]))),128))]),Be("div",S_,[pt(nc,{type:"previous",flag:o.pageValues.has_previous,onPrevious:c},null,8,["flag"]),pt(nc,{type:"next",flag:o.pageValues.has_next,onNext:u},null,8,["flag"])])]))}}),T_=rn(E_,[["__scopeId","data-v-05d37195"]]),x_=jt({__name:"LeafletMapProvider",setup(t){const n=Nt();async function r(){const o=new URL("https://arches-app-demo.opentechstrategies.com/archesdataviewer/artworks"),a=await fetch(o.toString()).then(u=>u.json());n.value=a}return r(),(o,a)=>to(o.$slots,"default",{artworks:n.value})}});var kh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ah(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _a={exports:{}};/* @preserve - * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com - * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */(function(t,n){(function(r,o){o(n)})(kh,function(r){var o="1.9.4";function a(e){var i,s,l,h;for(s=1,l=arguments.length;s"u"||!L||!L.Mixin)){e=U(e)?e:[e];for(var i=0;i0?Math.floor(e):Math.ceil(e)};re.prototype={clone:function(){return new re(this.x,this.y)},add:function(e){return this.clone()._add(Z(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(Z(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new re(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new re(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Et(this.x),this.y=Et(this.y),this},distanceTo:function(e){e=Z(e);var i=e.x-this.x,s=e.y-this.y;return Math.sqrt(i*i+s*s)},equals:function(e){return e=Z(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=Z(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+C(this.x)+", "+C(this.y)+")"}};function Z(e,i,s){return e instanceof re?e:U(e)?new re(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new re(e.x,e.y):new re(e,i,s)}function O(e,i){if(e)for(var s=i?[e,i]:e,l=0,h=s.length;l=this.min.x&&s.x<=this.max.x&&i.y>=this.min.y&&s.y<=this.max.y},intersects:function(e){e=V(e);var i=this.min,s=this.max,l=e.min,h=e.max,p=h.x>=i.x&&l.x<=s.x,P=h.y>=i.y&&l.y<=s.y;return p&&P},overlaps:function(e){e=V(e);var i=this.min,s=this.max,l=e.min,h=e.max,p=h.x>i.x&&l.xi.y&&l.y=i.lat&&h.lat<=s.lat&&l.lng>=i.lng&&h.lng<=s.lng},intersects:function(e){e=v(e);var i=this._southWest,s=this._northEast,l=e.getSouthWest(),h=e.getNorthEast(),p=h.lat>=i.lat&&l.lat<=s.lat,P=h.lng>=i.lng&&l.lng<=s.lng;return p&&P},overlaps:function(e){e=v(e);var i=this._southWest,s=this._northEast,l=e.getSouthWest(),h=e.getNorthEast(),p=h.lat>i.lat&&l.lati.lng&&l.lng1,go=function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",y,i),window.removeEventListener("testPassiveEventSupport",y,i)}catch{}return e}(),ir=function(){return!!document.createElement("canvas").getContext}(),Oi=!!(document.createElementNS&&F("svg").createSVGRect),vo=!!Oi&&function(){var e=document.createElement("div");return e.innerHTML="",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Kr=!Oi&&function(){try{var e=document.createElement("div");e.innerHTML='';var i=e.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),yo=navigator.platform.indexOf("Mac")===0,Wr=navigator.platform.indexOf("Linux")===0;function $(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var _={ie:G,ielt9:ne,edge:J,webkit:Q,android:K,android23:te,androidStock:le,opera:de,chrome:Pe,gecko:je,safari:Oe,phantom:Ge,opera12:Tt,win:sn,ie3d:on,webkit3d:Wt,gecko3d:ai,any3d:bt,mobile:Qe,mobileWebkit:Li,mobileWebkit3d:po,msPointer:Vr,pointer:Ur,touch:mo,touchNative:Hr,mobileOpera:Zn,mobileGecko:_o,retina:qr,passiveEvents:go,canvas:ir,svg:Oi,vml:Kr,inlineSvg:vo,mac:yo,linux:Wr},E=_.msPointer?"MSPointerDown":"pointerdown",j=_.msPointer?"MSPointerMove":"pointermove",z=_.msPointer?"MSPointerUp":"pointerup",ce=_.msPointer?"MSPointerCancel":"pointercancel",he={touchstart:E,touchmove:j,touchend:z,touchcancel:ce},De={touchstart:vn,touchmove:Je,touchend:Je,touchcancel:Je},He={},lt=!1;function Me(e,i,s){return i==="touchstart"&&ct(),De[i]?(s=De[i].bind(this,s),e.addEventListener(he[i],s,!1),s):(console.warn("wrong event specified:",i),y)}function Ye(e,i,s){if(!he[i]){console.warn("wrong event specified:",i);return}e.removeEventListener(he[i],s,!1)}function ut(e){He[e.pointerId]=e}function ve(e){He[e.pointerId]&&(He[e.pointerId]=e)}function et(e){delete He[e.pointerId]}function ct(){lt||(document.addEventListener(E,ut,!0),document.addEventListener(j,ve,!0),document.addEventListener(z,et,!0),document.addEventListener(ce,et,!0),lt=!0)}function Je(e,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var s in He)i.touches.push(He[s]);i.changedTouches=[i],e(i)}}function vn(e,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&xt(i),Je(e,i)}function Gt(e){var i={},s,l;for(l in e)s=e[l],i[l]=s&&s.bind?s.bind(e):s;return e=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Jt=200;function Vn(e,i){e.addEventListener("dblclick",i);var s=0,l;function h(p){if(p.detail!==1){l=p.detail;return}if(!(p.pointerType==="mouse"||p.sourceCapabilities&&!p.sourceCapabilities.firesTouchEvents)){var P=Rl(p);if(!(P.some(function(B){return B instanceof HTMLLabelElement&&B.attributes.for})&&!P.some(function(B){return B instanceof HTMLInputElement||B instanceof HTMLSelectElement}))){var N=Date.now();N-s<=Jt?(l++,l===2&&i(Gt(p))):l=1,s=N}}}return e.addEventListener("click",h),{dblclick:i,simDblclick:h}}function On(e,i){e.removeEventListener("dblclick",i.dblclick),e.removeEventListener("click",i.simDblclick)}var Ot=Jr(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),It=Jr(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),yn=It==="webkitTransition"||It==="OTransition"?It+"End":"transitionend";function Yt(e){return typeof e=="string"?document.getElementById(e):e}function an(e,i){var s=e.style[i]||e.currentStyle&&e.currentStyle[i];if((!s||s==="auto")&&document.defaultView){var l=document.defaultView.getComputedStyle(e,null);s=l?l[i]:null}return s==="auto"?null:s}function Fe(e,i,s){var l=document.createElement(e);return l.className=i||"",s&&s.appendChild(l),l}function it(e){var i=e.parentNode;i&&i.removeChild(e)}function In(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ln(e){var i=e.parentNode;i&&i.lastChild!==e&&i.appendChild(e)}function un(e){var i=e.parentNode;i&&i.firstChild!==e&&i.insertBefore(e,i.firstChild)}function Ii(e,i){if(e.classList!==void 0)return e.classList.contains(i);var s=Gr(e);return s.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(s)}function Se(e,i){if(e.classList!==void 0)for(var s=I(i),l=0,h=s.length;l0?2*window.devicePixelRatio:1;function zl(e){return _.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/xf:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function Io(e,i){var s=i.relatedTarget;if(!s)return!0;try{for(;s&&s!==e;)s=s.parentNode}catch{return!1}return s!==e}var Cf={__proto__:null,on:Te,off:rt,stopPropagation:ci,disableScrollPropagation:Oo,disableClickPropagation:ar,preventDefault:xt,stop:hi,getPropagationPath:Rl,getMousePosition:Dl,getWheelDelta:zl,isExternalTarget:Io,addListener:Te,removeListener:rt},jl=ze.extend({run:function(e,i,s,l){this.stop(),this._el=e,this._inProgress=!0,this._duration=s||.25,this._easeOutPower=1/Math.max(l||.5,.2),this._startPos=ui(e),this._offset=i.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=Ie(this._animate,this),this._step()},_step:function(e){var i=+new Date-this._startTime,s=this._duration*1e3;ithis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,i){this._enforcingBounds=!0;var s=this.getCenter(),l=this._limitCenter(s,this._zoom,v(e));return s.equals(l)||this.panTo(l,i),this._enforcingBounds=!1,this},panInside:function(e,i){i=i||{};var s=Z(i.paddingTopLeft||i.padding||[0,0]),l=Z(i.paddingBottomRight||i.padding||[0,0]),h=this.project(this.getCenter()),p=this.project(e),P=this.getPixelBounds(),N=V([P.min.add(s),P.max.subtract(l)]),B=N.getSize();if(!N.contains(p)){this._enforcingBounds=!0;var W=p.subtract(N.getCenter()),se=N.extend(p).getSize().subtract(B);h.x+=W.x<0?-se.x:se.x,h.y+=W.y<0?-se.y:se.y,this.panTo(this.unproject(h),i),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=a({animate:!1,pan:!0},e===!0?{animate:!0}:e);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var s=this.getSize(),l=i.divideBy(2).round(),h=s.divideBy(2).round(),p=l.subtract(h);return!p.x&&!p.y?this:(e.animate&&e.pan?this.panBy(p):(e.pan&&this._rawPanBy(p),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:s}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=a({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=c(this._handleGeolocationResponse,this),s=c(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,s,e):navigator.geolocation.getCurrentPosition(i,s,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var i=e.code,s=e.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+s+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var i=e.coords.latitude,s=e.coords.longitude,l=new w(i,s),h=l.toBounds(e.coords.accuracy*2),p=this._locateOptions;if(p.setView){var P=this.getBoundsZoom(h);this.setView(l,p.maxZoom?Math.min(P,p.maxZoom):P)}var N={latlng:l,bounds:h,timestamp:e.timestamp};for(var B in e.coords)typeof e.coords[B]=="number"&&(N[B]=e.coords[B]);this.fire("locationfound",N)}},addHandler:function(e,i){if(!i)return this;var s=this[e]=new i(this);return this._handlers.push(s),this.options[e]&&s.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),it(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&($e(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)it(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,i){var s="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),l=Fe("div",s,i||this._mapPane);return e&&(this._panes[e]=l),l},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),i=this.unproject(e.getBottomLeft()),s=this.unproject(e.getTopRight());return new R(i,s)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,i,s){e=v(e),s=Z(s||[0,0]);var l=this.getZoom()||0,h=this.getMinZoom(),p=this.getMaxZoom(),P=e.getNorthWest(),N=e.getSouthEast(),B=this.getSize().subtract(s),W=V(this.project(N,l),this.project(P,l)).getSize(),se=_.any3d?this.options.zoomSnap:1,me=B.x/W.x,ke=B.y/W.y,Rt=i?Math.max(me,ke):Math.min(me,ke);return l=this.getScaleZoom(Rt,l),se&&(l=Math.round(l/(se/100))*(se/100),l=i?Math.ceil(l/se)*se:Math.floor(l/se)*se),Math.max(h,Math.min(p,l))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new re(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,i){var s=this._getTopLeftPoint(e,i);return new O(s,s.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,i){var s=this.options.crs;return i=i===void 0?this._zoom:i,s.scale(e)/s.scale(i)},getScaleZoom:function(e,i){var s=this.options.crs;i=i===void 0?this._zoom:i;var l=s.zoom(e*s.scale(i));return isNaN(l)?1/0:l},project:function(e,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(k(e),i)},unproject:function(e,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(Z(e),i)},layerPointToLatLng:function(e){var i=Z(e).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(e){var i=this.project(k(e))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(k(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(v(e))},distance:function(e,i){return this.options.crs.distance(k(e),k(i))},containerPointToLayerPoint:function(e){return Z(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return Z(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var i=this.containerPointToLayerPoint(Z(e));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(k(e)))},mouseEventToContainerPoint:function(e){return Dl(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var i=this._container=Yt(e);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Te(i,"scroll",this._onScroll,this),this._containerId=d(i)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&_.any3d,Se(e,"leaflet-container"+(_.touch?" leaflet-touch":"")+(_.retina?" leaflet-retina":"")+(_.ielt9?" leaflet-oldie":"")+(_.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=an(e,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ft(this._mapPane,new re(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Se(e.markerPane,"leaflet-zoom-hide"),Se(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,i,s){ft(this._mapPane,new re(0,0));var l=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var h=this._zoom!==i;this._moveStart(h,s)._move(e,i)._moveEnd(h),this.fire("viewreset"),l&&this.fire("load")},_moveStart:function(e,i){return e&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(e,i,s,l){i===void 0&&(i=this._zoom);var h=this._zoom!==i;return this._zoom=i,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),l?s&&s.pinch&&this.fire("zoom",s):((h||s&&s.pinch)&&this.fire("zoom",s),this.fire("move",s)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return $e(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ft(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[d(this._container)]=this;var i=e?rt:Te;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),_.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){$e(this._resizeRequest),this._resizeRequest=Ie(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,i){for(var s=[],l,h=i==="mouseout"||i==="mouseover",p=e.target||e.srcElement,P=!1;p;){if(l=this._targets[d(p)],l&&(i==="click"||i==="preclick")&&this._draggableMoved(l)){P=!0;break}if(l&&l.listens(i,!0)&&(h&&!Io(p,e)||(s.push(l),h))||p===this._container)break;p=p.parentNode}return!s.length&&!P&&!h&&this.listens(i,!0)&&(s=[this]),s},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var i=e.target||e.srcElement;if(!(!this._loaded||i._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(i))){var s=e.type;s==="mousedown"&&Eo(i),this._fireDOMEvent(e,s)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,i,s){if(e.type==="click"){var l=a({},e);l.type="preclick",this._fireDOMEvent(l,l.type,s)}var h=this._findEventTargets(e,i);if(s){for(var p=[],P=0;P0?Math.round(e-i)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(i))},_limitZoom:function(e){var i=this.getMinZoom(),s=this.getMaxZoom(),l=_.any3d?this.options.zoomSnap:1;return l&&(e=Math.round(e/l)*l),Math.max(i,Math.min(s,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,i){var s=this._getCenterOffset(e)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(s)?!1:(this.panBy(s,i),!0)},_createAnimProxy:function(){var e=this._proxy=Fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(i){var s=Ot,l=this._proxy.style[s];li(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),l===this._proxy.style[s]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){it(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),i=this.getZoom();li(this._proxy,this.project(e,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,i,s){if(this._animatingZoom)return!0;if(s=s||{},!this._zoomAnimated||s.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var l=this.getZoomScale(i),h=this._getCenterOffset(e)._divideBy(1-1/l);return s.animate!==!0&&!this.getSize().contains(h)?!1:(Ie(function(){this._moveStart(!0,s.noMoveStart||!1)._animateZoom(e,i,!0)},this),!0)},_animateZoom:function(e,i,s,l){this._mapPane&&(s&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=i,Se(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:i,noUpdate:l}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tt(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 Lf(e,i){return new Ze(e,i)}var cn=Ue.extend({options:{position:"topright"},initialize:function(e){x(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var i=this._map;return i&&i.removeControl(this),this.options.position=e,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var i=this._container=this.onAdd(e),s=this.getPosition(),l=e._controlCorners[s];return Se(i,"leaflet-control"),s.indexOf("bottom")!==-1?l.insertBefore(i,l.firstChild):l.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(it(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),lr=function(e){return new cn(e)};Ze.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},i="leaflet-",s=this._controlContainer=Fe("div",i+"control-container",this._container);function l(h,p){var P=i+h+" "+i+p;e[h+p]=Fe("div",P,s)}l("top","left"),l("top","right"),l("bottom","left"),l("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)it(this._controlCorners[e]);it(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Bl=cn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,i,s,l){return s1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=i&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var i=this._getLayer(d(e.target)),s=i.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;s&&this._map.fire(s,i)},_createRadioElement:function(e,i){var s='",l=document.createElement("div");return l.innerHTML=s,l.firstChild},_addItem:function(e){var i=document.createElement("label"),s=this._map.hasLayer(e.layer),l;e.overlay?(l=document.createElement("input"),l.type="checkbox",l.className="leaflet-control-layers-selector",l.defaultChecked=s):l=this._createRadioElement("leaflet-base-layers_"+d(this),s),this._layerControlInputs.push(l),l.layerId=d(e.layer),Te(l,"click",this._onInputClick,this);var h=document.createElement("span");h.innerHTML=" "+e.name;var p=document.createElement("span");i.appendChild(p),p.appendChild(l),p.appendChild(h);var P=e.overlay?this._overlaysList:this._baseLayersList;return P.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,i,s,l=[],h=[];this._handlingClick=!0;for(var p=e.length-1;p>=0;p--)i=e[p],s=this._getLayer(i.layerId).layer,i.checked?l.push(s):i.checked||h.push(s);for(p=0;p=0;h--)i=e[h],s=this._getLayer(i.layerId).layer,i.disabled=s.options.minZoom!==void 0&&ls.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,Te(e,"click",xt),this.expand();var i=this;setTimeout(function(){rt(e,"click",xt),i._preventClick=!1})}}),Of=function(e,i,s){return new Bl(e,i,s)},Mo=cn.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(e){var i="leaflet-control-zoom",s=Fe("div",i+" leaflet-bar"),l=this.options;return this._zoomInButton=this._createButton(l.zoomInText,l.zoomInTitle,i+"-in",s,this._zoomIn),this._zoomOutButton=this._createButton(l.zoomOutText,l.zoomOutTitle,i+"-out",s,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),s},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,i,s,l,h){var p=Fe("a",s,l);return p.innerHTML=e,p.href="#",p.title=i,p.setAttribute("role","button"),p.setAttribute("aria-label",i),ar(p),Te(p,"click",hi),Te(p,"click",h,this),Te(p,"click",this._refocusOnMap,this),p},_updateDisabled:function(){var e=this._map,i="leaflet-disabled";tt(this._zoomInButton,i),tt(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(Se(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(Se(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ze.mergeOptions({zoomControl:!0}),Ze.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Mo,this.addControl(this.zoomControl))});var If=function(e){return new Mo(e)},Fl=cn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var i="leaflet-control-scale",s=Fe("div",i),l=this.options;return this._addScales(l,i+"-line",s),e.on(l.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),s},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,i,s){e.metric&&(this._mScale=Fe("div",i,s)),e.imperial&&(this._iScale=Fe("div",i,s))},_update:function(){var e=this._map,i=e.getSize().y/2,s=e.distance(e.containerPointToLatLng([0,i]),e.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(s)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var i=this._getRoundNum(e),s=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,s,i/e)},_updateImperial:function(e){var i=e*3.2808399,s,l,h;i>5280?(s=i/5280,l=this._getRoundNum(s),this._updateScale(this._iScale,l+" mi",l/s)):(h=this._getRoundNum(i),this._updateScale(this._iScale,h+" ft",h/i))},_updateScale:function(e,i,s){e.style.width=Math.round(this.options.maxWidth*s)+"px",e.innerHTML=i},_getRoundNum:function(e){var i=Math.pow(10,(Math.floor(e)+"").length-1),s=e/i;return s=s>=10?10:s>=5?5:s>=3?3:s>=2?2:1,i*s}}),Mf=function(e){return new Fl(e)},kf='',ko=cn.extend({options:{position:"bottomright",prefix:''+(_.inlineSvg?kf+" ":"")+"Leaflet"},initialize:function(e){x(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=Fe("div","leaflet-control-attribution"),ar(this._container);for(var i in e._layers)e._layers[i].getAttribution&&this.addAttribution(e._layers[i].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var i in this._attributions)this._attributions[i]&&e.push(i);var s=[];this.options.prefix&&s.push(this.options.prefix),e.length&&s.push(e.join(", ")),this._container.innerHTML=s.join(' ')}}});Ze.mergeOptions({attributionControl:!0}),Ze.addInitHook(function(){this.options.attributionControl&&new ko().addTo(this)});var Af=function(e){return new ko(e)};cn.Layers=Bl,cn.Zoom=Mo,cn.Scale=Fl,cn.Attribution=ko,lr.layers=Of,lr.zoom=If,lr.scale=Mf,lr.attribution=Af;var bn=Ue.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});bn.addTo=function(e,i){return e.addHandler(i,this),this};var Nf={Events:pe},Zl=_.touch?"touchstart mousedown":"mousedown",Un=ze.extend({options:{clickTolerance:3},initialize:function(e,i,s,l){x(this,l),this._element=e,this._dragStartTarget=i||e,this._preventOutline=s},enable:function(){this._enabled||(Te(this._dragStartTarget,Zl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Un._dragging===this&&this.finishDrag(!0),rt(this._dragStartTarget,Zl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!Ii(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){Un._dragging===this&&this.finishDrag();return}if(!(Un._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(Un._dragging=this,this._preventOutline&&Eo(this._element),Po(),rr(),!this._moving)){this.fire("down");var i=e.touches?e.touches[0]:e,s=Al(this._element);this._startPoint=new re(i.clientX,i.clientY),this._startPos=ui(this._element),this._parentScale=To(s);var l=e.type==="mousedown";Te(document,l?"mousemove":"touchmove",this._onMove,this),Te(document,l?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var i=e.touches&&e.touches.length===1?e.touches[0]:e,s=new re(i.clientX,i.clientY)._subtract(this._startPoint);!s.x&&!s.y||Math.abs(s.x)+Math.abs(s.y)p&&(P=N,p=B);p>s&&(i[P]=1,No(e,i,s,l,P),No(e,i,s,P,h))}function jf(e,i){for(var s=[e[0]],l=1,h=0,p=e.length;li&&(s.push(e[l]),h=l);return hi.max.x&&(s|=2),e.yi.max.y&&(s|=8),s}function Bf(e,i){var s=i.x-e.x,l=i.y-e.y;return s*s+l*l}function ur(e,i,s,l){var h=i.x,p=i.y,P=s.x-h,N=s.y-p,B=P*P+N*N,W;return B>0&&(W=((e.x-h)*P+(e.y-p)*N)/B,W>1?(h=s.x,p=s.y):W>0&&(h+=P*W,p+=N*W)),P=e.x-h,N=e.y-p,l?P*P+N*N:new re(h,p)}function Qt(e){return!U(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function Gl(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Qt(e)}function Jl(e,i){var s,l,h,p,P,N,B,W;if(!e||e.length===0)throw new Error("latlngs not passed");Qt(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var se=k([0,0]),me=v(e),ke=me.getNorthWest().distanceTo(me.getSouthWest())*me.getNorthEast().distanceTo(me.getNorthWest());ke<1700&&(se=Ao(e));var Rt=e.length,Pt=[];for(s=0;sl){B=(p-l)/h,W=[N.x-B*(N.x-P.x),N.y-B*(N.y-P.y)];break}var Bt=i.unproject(Z(W));return k([Bt.lat+se.lat,Bt.lng+se.lng])}var Ff={__proto__:null,simplify:Hl,pointToSegmentDistance:ql,closestPointOnSegment:Df,clipSegment:Wl,_getEdgeIntersection:Qr,_getBitCode:fi,_sqClosestPointOnSegment:ur,isFlat:Qt,_flat:Gl,polylineCenter:Jl},Ro={project:function(e){return new re(e.lng,e.lat)},unproject:function(e){return new w(e.y,e.x)},bounds:new O([-180,-90],[180,90])},Do={R:6378137,R_MINOR:6356752314245179e-9,bounds:new O([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var i=Math.PI/180,s=this.R,l=e.lat*i,h=this.R_MINOR/s,p=Math.sqrt(1-h*h),P=p*Math.sin(l),N=Math.tan(Math.PI/4-l/2)/Math.pow((1-P)/(1+P),p/2);return l=-s*Math.log(Math.max(N,1e-10)),new re(e.lng*i*s,l)},unproject:function(e){for(var i=180/Math.PI,s=this.R,l=this.R_MINOR/s,h=Math.sqrt(1-l*l),p=Math.exp(-e.y/s),P=Math.PI/2-2*Math.atan(p),N=0,B=.1,W;N<15&&Math.abs(B)>1e-7;N++)W=h*Math.sin(P),W=Math.pow((1-W)/(1+W),h/2),B=Math.PI/2-2*Math.atan(p*W)-P,P+=B;return new w(P*i,e.x*i/s)}},Zf={__proto__:null,LonLat:Ro,Mercator:Do,SphericalMercator:be},Vf=a({},ie,{code:"EPSG:3395",projection:Do,transformation:function(){var e=.5/(Math.PI*Do.R);return _t(e,.5,-e,.5)}()}),Yl=a({},ie,{code:"EPSG:4326",projection:Ro,transformation:_t(1/180,1,-1/180,.5)}),Uf=a({},ee,{projection:Ro,transformation:_t(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,i){var s=i.lng-e.lng,l=i.lat-e.lat;return Math.sqrt(s*s+l*l)},infinite:!0});ee.Earth=ie,ee.EPSG3395=Vf,ee.EPSG3857=b,ee.EPSG900913=T,ee.EPSG4326=Yl,ee.Simple=Uf;var hn=ze.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[d(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[d(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var i=e.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var s=this.getEvents();i.on(s,this),this.once("remove",function(){i.off(s,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});Ze.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var i=d(e);return this._layers[i]?this:(this._layers[i]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var i=d(e);return this._layers[i]?(this._loaded&&e.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return d(e)in this._layers},eachLayer:function(e,i){for(var s in this._layers)e.call(i,this._layers[s]);return this},_addLayers:function(e){e=e?U(e)?e:[e]:[];for(var i=0,s=e.length;ithis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&i[0]instanceof w&&i[0].equals(i[s-1])&&i.pop(),i},_setLatLngs:function(e){kn.prototype._setLatLngs.call(this,e),Qt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Qt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,i=this.options.weight,s=new re(i,i);if(e=new O(e.min.subtract(s),e.max.add(s)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var l=0,h=this._rings.length,p;le.y!=h.y>e.y&&e.x<(h.x-l.x)*(e.y-l.y)/(h.y-l.y)+l.x&&(i=!i);return i||kn.prototype._containsPoint.call(this,e,!0)}});function Xf(e,i){return new Ai(e,i)}var An=Mn.extend({initialize:function(e,i){x(this,i),this._layers={},e&&this.addData(e)},addData:function(e){var i=U(e)?e:e.features,s,l,h;if(i){for(s=0,l=i.length;s0&&h.push(h[0].slice()),h}function Ni(e,i){return e.feature?a({},e.feature,{geometry:i}):ss(i)}function ss(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var Fo={toGeoJSON:function(e){return Ni(this,{type:"Point",coordinates:Bo(this.getLatLng(),e)})}};es.include(Fo),zo.include(Fo),ts.include(Fo),kn.include({toGeoJSON:function(e){var i=!Qt(this._latlngs),s=rs(this._latlngs,i?1:0,!1,e);return Ni(this,{type:(i?"Multi":"")+"LineString",coordinates:s})}}),Ai.include({toGeoJSON:function(e){var i=!Qt(this._latlngs),s=i&&!Qt(this._latlngs[0]),l=rs(this._latlngs,s?2:i?1:0,!0,e);return i||(l=[l]),Ni(this,{type:(s?"Multi":"")+"Polygon",coordinates:l})}}),Mi.include({toMultiPoint:function(e){var i=[];return this.eachLayer(function(s){i.push(s.toGeoJSON(e).geometry.coordinates)}),Ni(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(e){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(e);var s=i==="GeometryCollection",l=[];return this.eachLayer(function(h){if(h.toGeoJSON){var p=h.toGeoJSON(e);if(s)l.push(p.geometry);else{var P=ss(p);P.type==="FeatureCollection"?l.push.apply(l,P.features):l.push(P)}}}),s?Ni(this,{geometries:l,type:"GeometryCollection"}):{type:"FeatureCollection",features:l}}});function eu(e,i){return new An(e,i)}var Qf=eu,os=hn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,i,s){this._url=e,this._bounds=v(i),x(this,s)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Se(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){it(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ln(this._image),this},bringToBack:function(){return this._map&&un(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=v(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG",i=this._image=e?this._url:Fe("img");if(Se(i,"leaflet-image-layer"),this._zoomAnimated&&Se(i,"leaflet-zoom-animated"),this.options.className&&Se(i,this.options.className),i.onselectstart=y,i.onmousemove=y,i.onload=c(this.fire,this,"load"),i.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(e){var i=this._map.getZoomScale(e.zoom),s=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;li(this._image,s,i)},_reset:function(){var e=this._image,i=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),s=i.getSize();ft(e,i.min),e.style.width=s.x+"px",e.style.height=s.y+"px"},_updateOpacity:function(){Xt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),ed=function(e,i,s){return new os(e,i,s)},tu=os.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",i=this._image=e?this._url:Fe("video");if(Se(i,"leaflet-image-layer"),this._zoomAnimated&&Se(i,"leaflet-zoom-animated"),this.options.className&&Se(i,this.options.className),i.onselectstart=y,i.onmousemove=y,i.onloadeddata=c(this.fire,this,"load"),e){for(var s=i.getElementsByTagName("source"),l=[],h=0;h0?l:[i.src];return}U(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var p=0;ph?(i.height=h+"px",Se(e,p)):tt(e,p),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var i=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),s=this._getAnchor();ft(this._container,i.add(s))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,i=parseInt(an(this._container,"marginBottom"),10)||0,s=this._container.offsetHeight+i,l=this._containerWidth,h=new re(this._containerLeft,-s-this._containerBottom);h._add(ui(this._container));var p=e.layerPointToContainerPoint(h),P=Z(this.options.autoPanPadding),N=Z(this.options.autoPanPaddingTopLeft||P),B=Z(this.options.autoPanPaddingBottomRight||P),W=e.getSize(),se=0,me=0;p.x+l+B.x>W.x&&(se=p.x+l-W.x+B.x),p.x-se-N.x<0&&(se=p.x-N.x),p.y+s+B.y>W.y&&(me=p.y+s-W.y+B.y),p.y-me-N.y<0&&(me=p.y-N.y),(se||me)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([se,me]))}},_getAnchor:function(){return Z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),id=function(e,i){return new as(e,i)};Ze.mergeOptions({closePopupOnClick:!0}),Ze.include({openPopup:function(e,i,s){return this._initOverlay(as,e,i,s).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),hn.include({bindPopup:function(e,i){return this._popup=this._initOverlay(as,this._popup,e,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof Mn||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){hi(e);var i=e.layer||e.target;if(this._popup._source===i&&!(i instanceof Hn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=i,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var ls=Pn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Pn.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Pn.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Pn.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",i=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Fe("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var i,s,l=this._map,h=this._container,p=l.latLngToContainerPoint(l.getCenter()),P=l.layerPointToContainerPoint(e),N=this.options.direction,B=h.offsetWidth,W=h.offsetHeight,se=Z(this.options.offset),me=this._getAnchor();N==="top"?(i=B/2,s=W):N==="bottom"?(i=B/2,s=0):N==="center"?(i=B/2,s=W/2):N==="right"?(i=0,s=W/2):N==="left"?(i=B,s=W/2):P.xthis.options.maxZoom||sl?this._retainParent(h,p,P,l):!1)},_retainChildren:function(e,i,s,l){for(var h=2*e;h<2*e+2;h++)for(var p=2*i;p<2*i+2;p++){var P=new re(h,p);P.z=s+1;var N=this._tileCoordsToKey(P),B=this._tiles[N];if(B&&B.active){B.retain=!0;continue}else B&&B.loaded&&(B.retain=!0);s+1this.options.maxZoom||this.options.minZoom!==void 0&&h1){this._setView(e,s);return}for(var me=h.min.y;me<=h.max.y;me++)for(var ke=h.min.x;ke<=h.max.x;ke++){var Rt=new re(ke,me);if(Rt.z=this._tileZoom,!!this._isValidTile(Rt)){var Pt=this._tiles[this._tileCoordsToKey(Rt)];Pt?Pt.current=!0:P.push(Rt)}}if(P.sort(function(Bt,Di){return Bt.distanceTo(p)-Di.distanceTo(p)}),P.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var en=document.createDocumentFragment();for(ke=0;kes.max.x)||!i.wrapLat&&(e.ys.max.y))return!1}if(!this.options.bounds)return!0;var l=this._tileCoordsToBounds(e);return v(this.options.bounds).overlaps(l)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var i=this._map,s=this.getTileSize(),l=e.scaleBy(s),h=l.add(s),p=i.unproject(l,e.z),P=i.unproject(h,e.z);return[p,P]},_tileCoordsToBounds:function(e){var i=this._tileCoordsToNwSe(e),s=new R(i[0],i[1]);return this.options.noWrap||(s=this._map.wrapLatLngBounds(s)),s},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var i=e.split(":"),s=new re(+i[0],+i[1]);return s.z=+i[2],s},_removeTile:function(e){var i=this._tiles[e];i&&(it(i.el),delete this._tiles[e],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){Se(e,"leaflet-tile");var i=this.getTileSize();e.style.width=i.x+"px",e.style.height=i.y+"px",e.onselectstart=y,e.onmousemove=y,_.ielt9&&this.options.opacity<1&&Xt(e,this.options.opacity)},_addTile:function(e,i){var s=this._getTilePos(e),l=this._tileCoordsToKey(e),h=this.createTile(this._wrapCoords(e),c(this._tileReady,this,e));this._initTile(h),this.createTile.length<2&&Ie(c(this._tileReady,this,e,null,h)),ft(h,s),this._tiles[l]={el:h,coords:e,current:!0},i.appendChild(h),this.fire("tileloadstart",{tile:h,coords:e})},_tileReady:function(e,i,s){i&&this.fire("tileerror",{error:i,tile:s,coords:e});var l=this._tileCoordsToKey(e);s=this._tiles[l],s&&(s.loaded=+new Date,this._map._fadeAnimated?(Xt(s.el,0),$e(this._fadeFrame),this._fadeFrame=Ie(this._updateOpacity,this)):(s.active=!0,this._pruneTiles()),i||(Se(s.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:s.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),_.ielt9||!this._map._fadeAnimated?Ie(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var i=new re(this._wrapX?g(e.x,this._wrapX):e.x,this._wrapY?g(e.y,this._wrapY):e.y);return i.z=e.z,i},_pxBoundsToTileRange:function(e){var i=this.getTileSize();return new O(e.min.unscaleBy(i).floor(),e.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function od(e){return new hr(e)}var Ri=hr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,i){this._url=e,i=x(this,i),i.detectRetina&&_.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,i){return this._url===e&&i===void 0&&(i=!0),this._url=e,i||this.redraw(),this},createTile:function(e,i){var s=document.createElement("img");return Te(s,"load",c(this._tileOnLoad,this,i,s)),Te(s,"error",c(this._tileOnError,this,i,s)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(s.referrerPolicy=this.options.referrerPolicy),s.alt="",s.src=this.getTileUrl(e),s},getTileUrl:function(e){var i={r:_.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-e.y;this.options.tms&&(i.y=s),i["-y"]=s}return D(this._url,a(i,this.options))},_tileOnLoad:function(e,i){_.ielt9?setTimeout(c(e,this,null,i),0):e(null,i)},_tileOnError:function(e,i,s){var l=this.options.errorTileUrl;l&&i.getAttribute("src")!==l&&(i.src=l),e(s,i)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,i=this.options.maxZoom,s=this.options.zoomReverse,l=this.options.zoomOffset;return s&&(e=i-e),e+l},_getSubdomain:function(e){var i=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var e,i;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(i=this._tiles[e].el,i.onload=y,i.onerror=y,!i.complete)){i.src=Y;var s=this._tiles[e].coords;it(i),delete this._tiles[e],this.fire("tileabort",{tile:i,coords:s})}},_removeTile:function(e){var i=this._tiles[e];if(i)return i.el.setAttribute("src",Y),hr.prototype._removeTile.call(this,e)},_tileReady:function(e,i,s){if(!(!this._map||s&&s.getAttribute("src")===Y))return hr.prototype._tileReady.call(this,e,i,s)}});function ru(e,i){return new Ri(e,i)}var su=Ri.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,i){this._url=e;var s=a({},this.defaultWmsParams);for(var l in i)l in this.options||(s[l]=i[l]);i=x(this,i);var h=i.detectRetina&&_.retina?2:1,p=this.getTileSize();s.width=p.x*h,s.height=p.y*h,this.wmsParams=s},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,Ri.prototype.onAdd.call(this,e)},getTileUrl:function(e){var i=this._tileCoordsToNwSe(e),s=this._crs,l=V(s.project(i[0]),s.project(i[1])),h=l.min,p=l.max,P=(this._wmsVersion>=1.3&&this._crs===Yl?[h.y,h.x,p.y,p.x]:[h.x,h.y,p.x,p.y]).join(","),N=Ri.prototype.getTileUrl.call(this,e);return N+M(this.wmsParams,N,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+P},setParams:function(e,i){return a(this.wmsParams,e),i||this.redraw(),this}});function ad(e,i){return new su(e,i)}Ri.WMS=su,ru.wms=ad;var Nn=hn.extend({options:{padding:.1},initialize:function(e){x(this,e),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Se(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,i){var s=this._map.getZoomScale(i,this._zoom),l=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,i),p=l.multiplyBy(-s).add(h).subtract(this._map._getNewPixelOrigin(e,i));_.any3d?li(this._container,p,s):ft(this._container,p)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,i=this._map.getSize(),s=this._map.containerPointToLayerPoint(i.multiplyBy(-e)).round();this._bounds=new O(s,s.add(i.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ou=Nn.extend({options:{tolerance:0},getEvents:function(){var e=Nn.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Nn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Te(e,"mousemove",this._onMouseMove,this),Te(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Te(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){$e(this._redrawRequest),delete this._ctx,it(this._container),rt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var i in this._layers)e=this._layers[i],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Nn.prototype._update.call(this);var e=this._bounds,i=this._container,s=e.getSize(),l=_.retina?2:1;ft(i,e.min),i.width=l*s.x,i.height=l*s.y,i.style.width=s.x+"px",i.style.height=s.y+"px",_.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Nn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[d(e)]=e;var i=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var i=e._order,s=i.next,l=i.prev;s?s.prev=l:this._drawLast=l,l?l.next=s:this._drawFirst=s,delete e._order,delete this._layers[d(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray=="string"){var i=e.options.dashArray.split(/[, ]+/),s=[],l,h;for(h=0;h')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ld={_initContainer:function(){this._container=Fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Nn.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var i=e._container=fr("shape");Se(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",e._path=fr("path"),i.appendChild(e._path),this._updateStyle(e),this._layers[d(e)]=e},_addPath:function(e){var i=e._container;this._container.appendChild(i),e.options.interactive&&e.addInteractiveTarget(i)},_removePath:function(e){var i=e._container;it(i),e.removeInteractiveTarget(i),delete this._layers[d(e)]},_updateStyle:function(e){var i=e._stroke,s=e._fill,l=e.options,h=e._container;h.stroked=!!l.stroke,h.filled=!!l.fill,l.stroke?(i||(i=e._stroke=fr("stroke")),h.appendChild(i),i.weight=l.weight+"px",i.color=l.color,i.opacity=l.opacity,l.dashArray?i.dashStyle=U(l.dashArray)?l.dashArray.join(" "):l.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=l.lineCap.replace("butt","flat"),i.joinstyle=l.lineJoin):i&&(h.removeChild(i),e._stroke=null),l.fill?(s||(s=e._fill=fr("fill")),h.appendChild(s),s.color=l.fillColor||l.color,s.opacity=l.fillOpacity):s&&(h.removeChild(s),e._fill=null)},_updateCircle:function(e){var i=e._point.round(),s=Math.round(e._radius),l=Math.round(e._radiusY||s);this._setPath(e,e._empty()?"M0 0":"AL "+i.x+","+i.y+" "+s+","+l+" 0,"+65535*360)},_setPath:function(e,i){e._path.v=i},_bringToFront:function(e){ln(e._container)},_bringToBack:function(e){un(e._container)}},us=_.vml?fr:F,dr=Nn.extend({_initContainer:function(){this._container=us("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=us("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){it(this._container),rt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Nn.prototype._update.call(this);var e=this._bounds,i=e.getSize(),s=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,s.setAttribute("width",i.x),s.setAttribute("height",i.y)),ft(s,e.min),s.setAttribute("viewBox",[e.min.x,e.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(e){var i=e._path=us("path");e.options.className&&Se(i,e.options.className),e.options.interactive&&Se(i,"leaflet-interactive"),this._updateStyle(e),this._layers[d(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){it(e._path),e.removeInteractiveTarget(e._path),delete this._layers[d(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var i=e._path,s=e.options;i&&(s.stroke?(i.setAttribute("stroke",s.color),i.setAttribute("stroke-opacity",s.opacity),i.setAttribute("stroke-width",s.weight),i.setAttribute("stroke-linecap",s.lineCap),i.setAttribute("stroke-linejoin",s.lineJoin),s.dashArray?i.setAttribute("stroke-dasharray",s.dashArray):i.removeAttribute("stroke-dasharray"),s.dashOffset?i.setAttribute("stroke-dashoffset",s.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),s.fill?(i.setAttribute("fill",s.fillColor||s.color),i.setAttribute("fill-opacity",s.fillOpacity),i.setAttribute("fill-rule",s.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(e,i){this._setPath(e,H(e._parts,i))},_updateCircle:function(e){var i=e._point,s=Math.max(Math.round(e._radius),1),l=Math.max(Math.round(e._radiusY),1)||s,h="a"+s+","+l+" 0 1,0 ",p=e._empty()?"M0 0":"M"+(i.x-s)+","+i.y+h+s*2+",0 "+h+-s*2+",0 ";this._setPath(e,p)},_setPath:function(e,i){e._path.setAttribute("d",i)},_bringToFront:function(e){ln(e._path)},_bringToBack:function(e){un(e._path)}});_.vml&&dr.include(ld);function lu(e){return _.svg||_.vml?new dr(e):null}Ze.include({getRenderer:function(e){var i=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var i=this._paneRenderers[e];return i===void 0&&(i=this._createRenderer({pane:e}),this._paneRenderers[e]=i),i},_createRenderer:function(e){return this.options.preferCanvas&&au(e)||lu(e)}});var uu=Ai.extend({initialize:function(e,i){Ai.prototype.initialize.call(this,this._boundsToLatLngs(e),i)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=v(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function ud(e,i){return new uu(e,i)}dr.create=us,dr.pointsToPath=H,An.geometryToLayer=ns,An.coordsToLatLng=jo,An.coordsToLatLngs=is,An.latLngToCoords=Bo,An.latLngsToCoords=rs,An.getFeature=Ni,An.asFeature=ss,Ze.mergeOptions({boxZoom:!0});var cu=bn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){rt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){it(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),rr(),Po(),this._startPoint=this._map.mouseEventToContainerPoint(e),Te(document,{contextmenu:hi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=Fe("div","leaflet-zoom-box",this._container),Se(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var i=new O(this._point,this._startPoint),s=i.getSize();ft(this._box,i.min),this._box.style.width=s.x+"px",this._box.style.height=s.y+"px"},_finish:function(){this._moved&&(it(this._box),tt(this._container,"leaflet-crosshair")),sr(),$o(),rt(document,{contextmenu:hi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ze.addInitHook("addHandler","boxZoom",cu),Ze.mergeOptions({doubleClickZoom:!0});var hu=bn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var i=this._map,s=i.getZoom(),l=i.options.zoomDelta,h=e.originalEvent.shiftKey?s-l:s+l;i.options.doubleClickZoom==="center"?i.setZoom(h):i.setZoomAround(e.containerPoint,h)}});Ze.addInitHook("addHandler","doubleClickZoom",hu),Ze.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var fu=bn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new Un(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}Se(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tt(this._map._container,"leaflet-grab"),tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=v(this._map.options.maxBounds);this._offsetLimit=V(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var i=this._lastTime=+new Date,s=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(s),this._times.push(i),this._prunePositions(i)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,i){return e-(e-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;e.xi.max.x&&(e.x=this._viscousLimit(e.x,i.max.x)),e.y>i.max.y&&(e.y=this._viscousLimit(e.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,i=Math.round(e/2),s=this._initialWorldOffset,l=this._draggable._newPos.x,h=(l-i+s)%e+i-s,p=(l+i+s)%e-i-s,P=Math.abs(h+s)0?p:-p))-i;this._delta=0,this._startTime=null,P&&(e.options.scrollWheelZoom==="center"?e.setZoom(i+P):e.setZoomAround(this._lastMousePos,i+P))}});Ze.addInitHook("addHandler","scrollWheelZoom",pu);var cd=600;Ze.mergeOptions({tapHold:_.touchNative&&_.safari&&_.mobile,tapTolerance:15});var mu=bn.extend({addHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){rt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var i=e.touches[0];this._startPos=this._newPos=new re(i.clientX,i.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(Te(document,"touchend",xt),Te(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),cd),Te(document,"touchend touchcancel contextmenu",this._cancel,this),Te(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){rt(document,"touchend",xt),rt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),rt(document,"touchend touchcancel contextmenu",this._cancel,this),rt(document,"touchmove",this._onMove,this)},_onMove:function(e){var i=e.touches[0];this._newPos=new re(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,i){var s=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});s._simulated=!0,i.target.dispatchEvent(s)}});Ze.addInitHook("addHandler","tapHold",mu),Ze.mergeOptions({touchZoom:_.touch,bounceAtZoomLimits:!0});var _u=bn.extend({addHooks:function(){Se(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),rt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var i=this._map;if(!(!e.touches||e.touches.length!==2||i._animatingZoom||this._zooming)){var s=i.mouseEventToContainerPoint(e.touches[0]),l=i.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(s.add(l)._divideBy(2))),this._startDist=s.distanceTo(l),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend touchcancel",this._onTouchEnd,this),xt(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var i=this._map,s=i.mouseEventToContainerPoint(e.touches[0]),l=i.mouseEventToContainerPoint(e.touches[1]),h=s.distanceTo(l)/this._startDist;if(this._zoom=i.getScaleZoom(h,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoomi.getMaxZoom()&&h>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,h===1)return}else{var p=s._add(l)._divideBy(2)._subtract(this._centerPoint);if(h===1&&p.x===0&&p.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(p),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),$e(this._animRequest);var P=c(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Ie(P,this,!0),xt(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,$e(this._animRequest),rt(document,"touchmove",this._onTouchMove,this),rt(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))}});Ze.addInitHook("addHandler","touchZoom",_u),Ze.BoxZoom=cu,Ze.DoubleClickZoom=hu,Ze.Drag=fu,Ze.Keyboard=du,Ze.ScrollWheelZoom=pu,Ze.TapHold=mu,Ze.TouchZoom=_u,r.Bounds=O,r.Browser=_,r.CRS=ee,r.Canvas=ou,r.Circle=zo,r.CircleMarker=ts,r.Class=Ue,r.Control=cn,r.DivIcon=iu,r.DivOverlay=Pn,r.DomEvent=Cf,r.DomUtil=Tf,r.Draggable=Un,r.Evented=ze,r.FeatureGroup=Mn,r.GeoJSON=An,r.GridLayer=hr,r.Handler=bn,r.Icon=ki,r.ImageOverlay=os,r.LatLng=w,r.LatLngBounds=R,r.Layer=hn,r.LayerGroup=Mi,r.LineUtil=Ff,r.Map=Ze,r.Marker=es,r.Mixin=Nf,r.Path=Hn,r.Point=re,r.PolyUtil=Rf,r.Polygon=Ai,r.Polyline=kn,r.Popup=as,r.PosAnimation=jl,r.Projection=Zf,r.Rectangle=uu,r.Renderer=Nn,r.SVG=dr,r.SVGOverlay=nu,r.TileLayer=Ri,r.Tooltip=ls,r.Transformation=We,r.Util=mt,r.VideoOverlay=tu,r.bind=c,r.bounds=V,r.canvas=au,r.circle=Jf,r.circleMarker=Gf,r.control=lr,r.divIcon=sd,r.extend=a,r.featureGroup=qf,r.geoJSON=eu,r.geoJson=Qf,r.gridLayer=od,r.icon=Kf,r.imageOverlay=ed,r.latLng=k,r.latLngBounds=v,r.layerGroup=Hf,r.map=Lf,r.marker=Wf,r.point=Z,r.polygon=Xf,r.polyline=Yf,r.popup=id,r.rectangle=ud,r.setOptions=x,r.stamp=d,r.svg=lu,r.svgOverlay=nd,r.tileLayer=ru,r.tooltip=rd,r.transformation=_t,r.version=o,r.videoOverlay=td;var hd=window.L;r.noConflict=function(){return window.L=hd,this},window.L=r})})(_a,_a.exports);var C_=_a.exports;const Yo=Ah(C_);function L_(t){const n=t.replace(/'/g,'"');try{return JSON.parse(n)}catch{throw new Error("Failed to parse Coordinates JSON string:")}}const O_=jt({__name:"LeafletMap",props:{artworks:{}},setup(t){const n=oo(),r=t,o=Nt(null);let a;const u=new Map,c=f=>{const d=Yo.map(f).setView([41.87213786,-87.62576558],13);return a=d,Yo.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'© OpenStreetMap'}).addTo(d),r.artworks.forEach(m=>{var g;if((g=m.Location)!=null&&g.Coordinates)try{const y=L_(m.Location.Coordinates);if(y){const C=Yo.marker([y.features[0].geometry.coordinates[1],y.features[0].geometry.coordinates[0]]);C.bindPopup(`Artwork Title: ${m.Title}
- By: ${m.Artist}
`),C.on("click",()=>{n.$patch({resourceId:m["@resource_id"]})}),u.set(m["@resource_id"],C),C.addTo(d)}}catch(y){console.error(`Error processing coordinates for artwork ${m.Title}:`,y)}else console.warn(`Coordinates not found for artwork ${m.Title}`)}),a};return ah(()=>{o.value&&(a=c(o.value))}),Ti(()=>n.resourceId,async f=>{var d;f&&(u.get(f)?(d=u.get(f))==null||d.openPopup():a==null||a.closePopup())},{immediate:!0}),(f,d)=>r.artworks?(Ne(),Xe("div",{key:0,id:"map",ref_key:"mapElement",ref:o},null,512)):Dn("",!0)}}),I_=rn(O_,[["__scopeId","data-v-d228b6be"]]);var ga={exports:{}},Nh={},gn={},Yi={},Br={},Re={},Rr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(D){if(super(),!t.IDENTIFIER.test(D))throw new Error("CodeGen: name must be a valid identifier");this.str=D}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class o extends n{constructor(D){super(),this._items=typeof D=="string"?[D]:D}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const D=this._items[0];return D===""||D==='""'}get str(){var D;return(D=this._str)!==null&&D!==void 0?D:this._str=this._items.reduce((U,X)=>`${U}${X}`,"")}get names(){var D;return(D=this._names)!==null&&D!==void 0?D:this._names=this._items.reduce((U,X)=>(X instanceof r&&(U[X.str]=(U[X.str]||0)+1),U),{})}}t._Code=o,t.nil=new o("");function a(S,...D){const U=[S[0]];let X=0;for(;X{if(y.scopePath===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return(0,n._)`${m}${y.scopePath}`})}scopeCode(m=this._values,g,y){return this._reduceValues(m,C=>{if(C.value===void 0)throw new Error(`CodeGen: name "${C}" has no value`);return C.value.code},g,y)}_reduceValues(m,g,y={},C){let A=n.nil;for(const I in m){const x=m[I];if(!x)continue;const M=y[I]=y[I]||new Map;x.forEach(S=>{if(M.has(S))return;M.set(S,o.Started);let D=g(S);if(D){const U=this.opts.es5?t.varKinds.var:t.varKinds.const;A=(0,n._)`${A}${U} ${S} = ${D};${this.opts._n}`}else if(D=C==null?void 0:C(S))A=(0,n._)`${A}${D}${this.opts._n}`;else throw new r(S);M.set(S,o.Completed)})}return A}}t.ValueScope=f})(va);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=Rr,r=va;var o=Rr;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=va;Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class u{optimizeNodes(){return this}optimizeNames(v,w){return this}}class c extends u{constructor(v,w,k){super(),this.varKind=v,this.name=w,this.rhs=k}render({es5:v,_n:w}){const k=v?r.varKinds.var:this.varKind,ee=this.rhs===void 0?"":` = ${this.rhs}`;return`${k} ${this.name}${ee};`+w}optimizeNames(v,w){if(v[this.name.str])return this.rhs&&(this.rhs=Ue(this.rhs,v,w)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class f extends u{constructor(v,w,k){super(),this.lhs=v,this.rhs=w,this.sideEffects=k}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,w){if(!(this.lhs instanceof n.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=Ue(this.rhs,v,w),this}get names(){const v=this.lhs instanceof n.Name?{}:{...this.lhs.names};return mt(v,this.rhs)}}class d extends f{constructor(v,w,k,ee){super(v,k,ee),this.op=w}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class m extends u{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class g extends u{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class y extends u{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class C extends u{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,w){return this.code=Ue(this.code,v,w),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class A extends u{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce((w,k)=>w+k.render(v),"")}optimizeNodes(){const{nodes:v}=this;let w=v.length;for(;w--;){const k=v[w].optimizeNodes();Array.isArray(k)?v.splice(w,1,...k):k?v[w]=k:v.splice(w,1)}return v.length>0?this:void 0}optimizeNames(v,w){const{nodes:k}=this;let ee=k.length;for(;ee--;){const ie=k[ee];ie.optimizeNames(v,w)||(wt(v,ie.names),k.splice(ee,1))}return k.length>0?this:void 0}get names(){return this.nodes.reduce((v,w)=>$e(v,w.names),{})}}class I extends A{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class x extends A{}class M extends I{}M.kind="else";class S extends I{constructor(v,w){super(w),this.condition=v}render(v){let w=`if(${this.condition})`+super.render(v);return this.else&&(w+="else "+this.else.render(v)),w}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let w=this.else;if(w){const k=w.optimizeNodes();w=this.else=Array.isArray(k)?new M(k):k}if(w)return v===!1?w instanceof S?w:w.nodes:this.nodes.length?this:new S(pe(v),w instanceof S?[w]:w.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,w){var k;if(this.else=(k=this.else)===null||k===void 0?void 0:k.optimizeNames(v,w),!!(super.optimizeNames(v,w)||this.else))return this.condition=Ue(this.condition,v,w),this}get names(){const v=super.names;return mt(v,this.condition),this.else&&$e(v,this.else.names),v}}S.kind="if";class D extends I{}D.kind="for";class U extends D{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,w){if(super.optimizeNames(v,w))return this.iteration=Ue(this.iteration,v,w),this}get names(){return $e(super.names,this.iteration.names)}}class X extends D{constructor(v,w,k,ee){super(),this.varKind=v,this.name=w,this.from=k,this.to=ee}render(v){const w=v.es5?r.varKinds.var:this.varKind,{name:k,from:ee,to:ie}=this;return`for(${w} ${k}=${ee}; ${k}<${ie}; ${k}++)`+super.render(v)}get names(){const v=mt(super.names,this.from);return mt(v,this.to)}}class Y extends D{constructor(v,w,k,ee){super(),this.loop=v,this.varKind=w,this.name=k,this.iterable=ee}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,w){if(super.optimizeNames(v,w))return this.iterable=Ue(this.iterable,v,w),this}get names(){return $e(super.names,this.iterable.names)}}class ae extends I{constructor(v,w,k){super(),this.name=v,this.args=w,this.async=k}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}ae.kind="func";class Le extends A{render(v){return"return "+super.render(v)}}Le.kind="return";class ge extends I{render(v){let w="try"+super.render(v);return this.catch&&(w+=this.catch.render(v)),this.finally&&(w+=this.finally.render(v)),w}optimizeNodes(){var v,w;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(w=this.finally)===null||w===void 0||w.optimizeNodes(),this}optimizeNames(v,w){var k,ee;return super.optimizeNames(v,w),(k=this.catch)===null||k===void 0||k.optimizeNames(v,w),(ee=this.finally)===null||ee===void 0||ee.optimizeNames(v,w),this}get names(){const v=super.names;return this.catch&&$e(v,this.catch.names),this.finally&&$e(v,this.finally.names),v}}class we extends I{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}we.kind="catch";class Ke extends I{render(v){return"finally"+super.render(v)}}Ke.kind="finally";class Ie{constructor(v,w={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...w,_n:w.lines?` -`:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,w){const k=this._extScope.value(v,w);return(this._values[k.prefix]||(this._values[k.prefix]=new Set)).add(k),k}getScopeValue(v,w){return this._extScope.getValue(v,w)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,w,k,ee){const ie=this._scope.toName(w);return k!==void 0&&ee&&(this._constants[ie.str]=k),this._leafNode(new c(v,ie,k)),ie}const(v,w,k){return this._def(r.varKinds.const,v,w,k)}let(v,w,k){return this._def(r.varKinds.let,v,w,k)}var(v,w,k){return this._def(r.varKinds.var,v,w,k)}assign(v,w,k){return this._leafNode(new f(v,w,k))}add(v,w){return this._leafNode(new d(v,t.operators.ADD,w))}code(v){return typeof v=="function"?v():v!==n.nil&&this._leafNode(new C(v)),this}object(...v){const w=["{"];for(const[k,ee]of v)w.length>1&&w.push(","),w.push(k),(k!==ee||this.opts.es5)&&(w.push(":"),(0,n.addCodeArg)(w,ee));return w.push("}"),new n._Code(w)}if(v,w,k){if(this._blockNode(new S(v)),w&&k)this.code(w).else().code(k).endIf();else if(w)this.code(w).endIf();else if(k)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new S(v))}else(){return this._elseNode(new M)}endIf(){return this._endBlockNode(S,M)}_for(v,w){return this._blockNode(v),w&&this.code(w).endFor(),this}for(v,w){return this._for(new U(v),w)}forRange(v,w,k,ee,ie=this.opts.es5?r.varKinds.var:r.varKinds.let){const Ee=this._scope.toName(v);return this._for(new X(ie,Ee,w,k),()=>ee(Ee))}forOf(v,w,k,ee=r.varKinds.const){const ie=this._scope.toName(v);if(this.opts.es5){const Ee=w instanceof n.Name?w:this.var("_arr",w);return this.forRange("_i",0,(0,n._)`${Ee}.length`,be=>{this.var(ie,(0,n._)`${Ee}[${be}]`),k(ie)})}return this._for(new Y("of",ee,ie,w),()=>k(ie))}forIn(v,w,k,ee=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,n._)`Object.keys(${w})`,k);const ie=this._scope.toName(v);return this._for(new Y("in",ee,ie,w),()=>k(ie))}endFor(){return this._endBlockNode(D)}label(v){return this._leafNode(new m(v))}break(v){return this._leafNode(new g(v))}return(v){const w=new Le;if(this._blockNode(w),this.code(v),w.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Le)}try(v,w,k){if(!w&&!k)throw new Error('CodeGen: "try" without "catch" and "finally"');const ee=new ge;if(this._blockNode(ee),this.code(v),w){const ie=this.name("e");this._currNode=ee.catch=new we(ie),w(ie)}return k&&(this._currNode=ee.finally=new Ke,this.code(k)),this._endBlockNode(we,Ke)}throw(v){return this._leafNode(new y(v))}block(v,w){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(w),this}endBlock(v){const w=this._blockStarts.pop();if(w===void 0)throw new Error("CodeGen: not in self-balancing block");const k=this._nodes.length-w;if(k<0||v!==void 0&&k!==v)throw new Error(`CodeGen: wrong number of nodes: ${k} vs ${v} expected`);return this._nodes.length=w,this}func(v,w=n.nil,k,ee){return this._blockNode(new ae(v,w,k)),ee&&this.code(ee).endFunc(),this}endFunc(){return this._endBlockNode(ae)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,w){const k=this._currNode;if(k instanceof v||w&&k instanceof w)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${w?`${v.kind}/${w.kind}`:v.kind}"`)}_elseNode(v){const w=this._currNode;if(!(w instanceof S))throw new Error('CodeGen: "else" without "if"');return this._currNode=w.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const w=this._nodes;w[w.length-1]=v}}t.CodeGen=Ie;function $e(R,v){for(const w in v)R[w]=(R[w]||0)+(v[w]||0);return R}function mt(R,v){return v instanceof n._CodeOrName?$e(R,v.names):R}function Ue(R,v,w){if(R instanceof n.Name)return k(R);if(!ee(R))return R;return new n._Code(R._items.reduce((ie,Ee)=>(Ee instanceof n.Name&&(Ee=k(Ee)),Ee instanceof n._Code?ie.push(...Ee._items):ie.push(Ee),ie),[]));function k(ie){const Ee=w[ie.str];return Ee===void 0||v[ie.str]!==1?ie:(delete v[ie.str],Ee)}function ee(ie){return ie instanceof n._Code&&ie._items.some(Ee=>Ee instanceof n.Name&&v[Ee.str]===1&&w[Ee.str]!==void 0)}}function wt(R,v){for(const w in v)R[w]=(R[w]||0)-(v[w]||0)}function pe(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,n._)`!${V(R)}`}t.not=pe;const ze=O(t.operators.AND);function re(...R){return R.reduce(ze)}t.and=re;const Et=O(t.operators.OR);function Z(...R){return R.reduce(Et)}t.or=Z;function O(R){return(v,w)=>v===n.nil?w:w===n.nil?v:(0,n._)`${V(v)} ${R} ${V(w)}`}function V(R){return R instanceof n.Name?R:(0,n._)`(${R})`}})(Re);var oe={};Object.defineProperty(oe,"__esModule",{value:!0});oe.checkStrictMode=oe.getErrorPath=oe.Type=oe.useFunc=oe.setEvaluated=oe.evaluatedPropsToName=oe.mergeEvaluated=oe.eachItem=oe.unescapeJsonPointer=oe.escapeJsonPointer=oe.escapeFragment=oe.unescapeFragment=oe.schemaRefOrVal=oe.schemaHasRulesButRef=oe.schemaHasRules=oe.checkUnknownRules=oe.alwaysValidSchema=oe.toHash=void 0;const nt=Re,M_=Rr;function k_(t){const n={};for(const r of t)n[r]=!0;return n}oe.toHash=k_;function A_(t,n){return typeof n=="boolean"?n:Object.keys(n).length===0?!0:(Rh(t,n),!Dh(n,t.self.RULES.all))}oe.alwaysValidSchema=A_;function Rh(t,n=t.schema){const{opts:r,self:o}=t;if(!r.strictSchema||typeof n=="boolean")return;const a=o.RULES.keywords;for(const u in n)a[u]||Bh(t,`unknown keyword: "${u}"`)}oe.checkUnknownRules=Rh;function Dh(t,n){if(typeof t=="boolean")return!t;for(const r in t)if(n[r])return!0;return!1}oe.schemaHasRules=Dh;function N_(t,n){if(typeof t=="boolean")return!t;for(const r in t)if(r!=="$ref"&&n.all[r])return!0;return!1}oe.schemaHasRulesButRef=N_;function R_({topSchemaRef:t,schemaPath:n},r,o,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,nt._)`${r}`}return(0,nt._)`${t}${n}${(0,nt.getProperty)(o)}`}oe.schemaRefOrVal=R_;function D_(t){return zh(decodeURIComponent(t))}oe.unescapeFragment=D_;function z_(t){return encodeURIComponent(qa(t))}oe.escapeFragment=z_;function qa(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}oe.escapeJsonPointer=qa;function zh(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}oe.unescapeJsonPointer=zh;function j_(t,n){if(Array.isArray(t))for(const r of t)n(r);else n(t)}oe.eachItem=j_;function ic({mergeNames:t,mergeToName:n,mergeValues:r,resultToName:o}){return(a,u,c,f)=>{const d=c===void 0?u:c instanceof nt.Name?(u instanceof nt.Name?t(a,u,c):n(a,u,c),c):u instanceof nt.Name?(n(a,c,u),u):r(u,c);return f===nt.Name&&!(d instanceof nt.Name)?o(a,d):d}}oe.mergeEvaluated={props:ic({mergeNames:(t,n,r)=>t.if((0,nt._)`${r} !== true && ${n} !== undefined`,()=>{t.if((0,nt._)`${n} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,nt._)`${r} || {}`).code((0,nt._)`Object.assign(${r}, ${n})`))}),mergeToName:(t,n,r)=>t.if((0,nt._)`${r} !== true`,()=>{n===!0?t.assign(r,!0):(t.assign(r,(0,nt._)`${r} || {}`),Ka(t,r,n))}),mergeValues:(t,n)=>t===!0?!0:{...t,...n},resultToName:jh}),items:ic({mergeNames:(t,n,r)=>t.if((0,nt._)`${r} !== true && ${n} !== undefined`,()=>t.assign(r,(0,nt._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(t,n,r)=>t.if((0,nt._)`${r} !== true`,()=>t.assign(r,n===!0?!0:(0,nt._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(t,n)=>t===!0?!0:Math.max(t,n),resultToName:(t,n)=>t.var("items",n)})};function jh(t,n){if(n===!0)return t.var("props",!0);const r=t.var("props",(0,nt._)`{}`);return n!==void 0&&Ka(t,r,n),r}oe.evaluatedPropsToName=jh;function Ka(t,n,r){Object.keys(r).forEach(o=>t.assign((0,nt._)`${n}${(0,nt.getProperty)(o)}`,!0))}oe.setEvaluated=Ka;const rc={};function B_(t,n){return t.scopeValue("func",{ref:n,code:rc[n.code]||(rc[n.code]=new M_._Code(n.code))})}oe.useFunc=B_;var ya;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(ya||(oe.Type=ya={}));function F_(t,n,r){if(t instanceof nt.Name){const o=n===ya.Num;return r?o?(0,nt._)`"[" + ${t} + "]"`:(0,nt._)`"['" + ${t} + "']"`:o?(0,nt._)`"/" + ${t}`:(0,nt._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,nt.getProperty)(t).toString():"/"+qa(t)}oe.getErrorPath=F_;function Bh(t,n,r=t.opts.strictSchema){if(r){if(n=`strict mode: ${n}`,r===!0)throw new Error(n);t.self.logger.warn(n)}}oe.checkStrictMode=Bh;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Mt=Re,Z_={data:new Mt.Name("data"),valCxt:new Mt.Name("valCxt"),instancePath:new Mt.Name("instancePath"),parentData:new Mt.Name("parentData"),parentDataProperty:new Mt.Name("parentDataProperty"),rootData:new Mt.Name("rootData"),dynamicAnchors:new Mt.Name("dynamicAnchors"),vErrors:new Mt.Name("vErrors"),errors:new Mt.Name("errors"),this:new Mt.Name("this"),self:new Mt.Name("self"),scope:new Mt.Name("scope"),json:new Mt.Name("json"),jsonPos:new Mt.Name("jsonPos"),jsonLen:new Mt.Name("jsonLen"),jsonPart:new Mt.Name("jsonPart")};Ln.default=Z_;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=Re,r=oe,o=Ln;t.keywordError={message:({keyword:M})=>(0,n.str)`must pass "${M}" keyword validation`},t.keyword$DataError={message:({keyword:M,schemaType:S})=>S?(0,n.str)`"${M}" keyword must be ${S} ($data)`:(0,n.str)`"${M}" keyword is invalid ($data)`};function a(M,S=t.keywordError,D,U){const{it:X}=M,{gen:Y,compositeRule:ae,allErrors:Le}=X,ge=y(M,S,D);U??(ae||Le)?d(Y,ge):m(X,(0,n._)`[${ge}]`)}t.reportError=a;function u(M,S=t.keywordError,D){const{it:U}=M,{gen:X,compositeRule:Y,allErrors:ae}=U,Le=y(M,S,D);d(X,Le),Y||ae||m(U,o.default.vErrors)}t.reportExtraError=u;function c(M,S){M.assign(o.default.errors,S),M.if((0,n._)`${o.default.vErrors} !== null`,()=>M.if(S,()=>M.assign((0,n._)`${o.default.vErrors}.length`,S),()=>M.assign(o.default.vErrors,null)))}t.resetErrorsCount=c;function f({gen:M,keyword:S,schemaValue:D,data:U,errsCount:X,it:Y}){if(X===void 0)throw new Error("ajv implementation error");const ae=M.name("err");M.forRange("i",X,o.default.errors,Le=>{M.const(ae,(0,n._)`${o.default.vErrors}[${Le}]`),M.if((0,n._)`${ae}.instancePath === undefined`,()=>M.assign((0,n._)`${ae}.instancePath`,(0,n.strConcat)(o.default.instancePath,Y.errorPath))),M.assign((0,n._)`${ae}.schemaPath`,(0,n.str)`${Y.errSchemaPath}/${S}`),Y.opts.verbose&&(M.assign((0,n._)`${ae}.schema`,D),M.assign((0,n._)`${ae}.data`,U))})}t.extendErrors=f;function d(M,S){const D=M.const("err",S);M.if((0,n._)`${o.default.vErrors} === null`,()=>M.assign(o.default.vErrors,(0,n._)`[${D}]`),(0,n._)`${o.default.vErrors}.push(${D})`),M.code((0,n._)`${o.default.errors}++`)}function m(M,S){const{gen:D,validateName:U,schemaEnv:X}=M;X.$async?D.throw((0,n._)`new ${M.ValidationError}(${S})`):(D.assign((0,n._)`${U}.errors`,S),D.return(!1))}const g={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function y(M,S,D){const{createErrors:U}=M.it;return U===!1?(0,n._)`{}`:C(M,S,D)}function C(M,S,D={}){const{gen:U,it:X}=M,Y=[A(X,D),I(M,D)];return x(M,S,Y),U.object(...Y)}function A({errorPath:M},{instancePath:S}){const D=S?(0,n.str)`${M}${(0,r.getErrorPath)(S,r.Type.Str)}`:M;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,D)]}function I({keyword:M,it:{errSchemaPath:S}},{schemaPath:D,parentSchema:U}){let X=U?S:(0,n.str)`${S}/${M}`;return D&&(X=(0,n.str)`${X}${(0,r.getErrorPath)(D,r.Type.Str)}`),[g.schemaPath,X]}function x(M,{params:S,message:D},U){const{keyword:X,data:Y,schemaValue:ae,it:Le}=M,{opts:ge,propertyName:we,topSchemaRef:Ke,schemaPath:Ie}=Le;U.push([g.keyword,X],[g.params,typeof S=="function"?S(M):S||(0,n._)`{}`]),ge.messages&&U.push([g.message,typeof D=="function"?D(M):D]),ge.verbose&&U.push([g.schema,ae],[g.parentSchema,(0,n._)`${Ke}${Ie}`],[o.default.data,Y]),we&&U.push([g.propertyName,we])}})(Br);Object.defineProperty(Yi,"__esModule",{value:!0});Yi.boolOrEmptySchema=Yi.topBoolOrEmptySchema=void 0;const V_=Br,U_=Re,H_=Ln,q_={message:"boolean schema is false"};function K_(t){const{gen:n,schema:r,validateName:o}=t;r===!1?Fh(t,!1):typeof r=="object"&&r.$async===!0?n.return(H_.default.data):(n.assign((0,U_._)`${o}.errors`,null),n.return(!0))}Yi.topBoolOrEmptySchema=K_;function W_(t,n){const{gen:r,schema:o}=t;o===!1?(r.var(n,!1),Fh(t)):r.var(n,!0)}Yi.boolOrEmptySchema=W_;function Fh(t,n){const{gen:r,data:o}=t,a={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,V_.reportError)(a,q_,void 0,n)}var gt={},xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.getRules=xi.isJSONType=void 0;const G_=["string","number","integer","boolean","null","object","array"],J_=new Set(G_);function Y_(t){return typeof t=="string"&&J_.has(t)}xi.isJSONType=Y_;function X_(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}xi.getRules=X_;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});zn.shouldUseRule=zn.shouldUseGroup=zn.schemaHasRulesForType=void 0;function Q_({schema:t,self:n},r){const o=n.RULES.types[r];return o&&o!==!0&&Zh(t,o)}zn.schemaHasRulesForType=Q_;function Zh(t,n){return n.rules.some(r=>Vh(t,r))}zn.shouldUseGroup=Zh;function Vh(t,n){var r;return t[n.keyword]!==void 0||((r=n.definition.implements)===null||r===void 0?void 0:r.some(o=>t[o]!==void 0))}zn.shouldUseRule=Vh;Object.defineProperty(gt,"__esModule",{value:!0});gt.reportTypeError=gt.checkDataTypes=gt.checkDataType=gt.coerceAndCheckDataType=gt.getJSONTypes=gt.getSchemaTypes=gt.DataType=void 0;const eg=xi,tg=zn,ng=Br,xe=Re,Uh=oe;var Ki;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Ki||(gt.DataType=Ki={}));function ig(t){const n=Hh(t.type);if(n.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&n.push("null")}return n}gt.getSchemaTypes=ig;function Hh(t){const n=Array.isArray(t)?t:t?[t]:[];if(n.every(eg.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}gt.getJSONTypes=Hh;function rg(t,n){const{gen:r,data:o,opts:a}=t,u=sg(n,a.coerceTypes),c=n.length>0&&!(u.length===0&&n.length===1&&(0,tg.schemaHasRulesForType)(t,n[0]));if(c){const f=Wa(n,o,a.strictNumbers,Ki.Wrong);r.if(f,()=>{u.length?og(t,n,u):Ga(t)})}return c}gt.coerceAndCheckDataType=rg;const qh=new Set(["string","number","integer","boolean","null"]);function sg(t,n){return n?t.filter(r=>qh.has(r)||n==="array"&&r==="array"):[]}function og(t,n,r){const{gen:o,data:a,opts:u}=t,c=o.let("dataType",(0,xe._)`typeof ${a}`),f=o.let("coerced",(0,xe._)`undefined`);u.coerceTypes==="array"&&o.if((0,xe._)`${c} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>o.assign(a,(0,xe._)`${a}[0]`).assign(c,(0,xe._)`typeof ${a}`).if(Wa(n,a,u.strictNumbers),()=>o.assign(f,a))),o.if((0,xe._)`${f} !== undefined`);for(const m of r)(qh.has(m)||m==="array"&&u.coerceTypes==="array")&&d(m);o.else(),Ga(t),o.endIf(),o.if((0,xe._)`${f} !== undefined`,()=>{o.assign(a,f),ag(t,f)});function d(m){switch(m){case"string":o.elseIf((0,xe._)`${c} == "number" || ${c} == "boolean"`).assign(f,(0,xe._)`"" + ${a}`).elseIf((0,xe._)`${a} === null`).assign(f,(0,xe._)`""`);return;case"number":o.elseIf((0,xe._)`${c} == "boolean" || ${a} === null - || (${c} == "string" && ${a} && ${a} == +${a})`).assign(f,(0,xe._)`+${a}`);return;case"integer":o.elseIf((0,xe._)`${c} === "boolean" || ${a} === null - || (${c} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(f,(0,xe._)`+${a}`);return;case"boolean":o.elseIf((0,xe._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(f,!1).elseIf((0,xe._)`${a} === "true" || ${a} === 1`).assign(f,!0);return;case"null":o.elseIf((0,xe._)`${a} === "" || ${a} === 0 || ${a} === false`),o.assign(f,null);return;case"array":o.elseIf((0,xe._)`${c} === "string" || ${c} === "number" - || ${c} === "boolean" || ${a} === null`).assign(f,(0,xe._)`[${a}]`)}}}function ag({gen:t,parentData:n,parentDataProperty:r},o){t.if((0,xe._)`${n} !== undefined`,()=>t.assign((0,xe._)`${n}[${r}]`,o))}function wa(t,n,r,o=Ki.Correct){const a=o===Ki.Correct?xe.operators.EQ:xe.operators.NEQ;let u;switch(t){case"null":return(0,xe._)`${n} ${a} null`;case"array":u=(0,xe._)`Array.isArray(${n})`;break;case"object":u=(0,xe._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":u=c((0,xe._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":u=c();break;default:return(0,xe._)`typeof ${n} ${a} ${t}`}return o===Ki.Correct?u:(0,xe.not)(u);function c(f=xe.nil){return(0,xe.and)((0,xe._)`typeof ${n} == "number"`,f,r?(0,xe._)`isFinite(${n})`:xe.nil)}}gt.checkDataType=wa;function Wa(t,n,r,o){if(t.length===1)return wa(t[0],n,r,o);let a;const u=(0,Uh.toHash)(t);if(u.array&&u.object){const c=(0,xe._)`typeof ${n} != "object"`;a=u.null?c:(0,xe._)`!${n} || ${c}`,delete u.null,delete u.array,delete u.object}else a=xe.nil;u.number&&delete u.integer;for(const c in u)a=(0,xe.and)(a,wa(c,n,r,o));return a}gt.checkDataTypes=Wa;const lg={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:n})=>typeof t=="string"?(0,xe._)`{type: ${t}}`:(0,xe._)`{type: ${n}}`};function Ga(t){const n=ug(t);(0,ng.reportError)(n,lg)}gt.reportTypeError=Ga;function ug(t){const{gen:n,data:r,schema:o}=t,a=(0,Uh.schemaRefOrVal)(t,o,"type");return{gen:n,keyword:"type",data:r,schema:o.type,schemaCode:a,schemaValue:a,parentSchema:o,params:{},it:t}}var ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.assignDefaults=void 0;const ji=Re,cg=oe;function hg(t,n){const{properties:r,items:o}=t.schema;if(n==="object"&&r)for(const a in r)sc(t,a,r[a].default);else n==="array"&&Array.isArray(o)&&o.forEach((a,u)=>sc(t,u,a.default))}ao.assignDefaults=hg;function sc(t,n,r){const{gen:o,compositeRule:a,data:u,opts:c}=t;if(r===void 0)return;const f=(0,ji._)`${u}${(0,ji.getProperty)(n)}`;if(a){(0,cg.checkStrictMode)(t,`default is ignored for: ${f}`);return}let d=(0,ji._)`${f} === undefined`;c.useDefaults==="empty"&&(d=(0,ji._)`${d} || ${f} === null || ${f} === ""`),o.if(d,(0,ji._)`${f} = ${(0,ji.stringify)(r)}`)}var Cn={},Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.validateUnion=Ae.validateArray=Ae.usePattern=Ae.callValidateCode=Ae.schemaProperties=Ae.allSchemaProperties=Ae.noPropertyInData=Ae.propertyInData=Ae.isOwnProperty=Ae.hasPropFunc=Ae.reportMissingProp=Ae.checkMissingProp=Ae.checkReportMissingProp=void 0;const ot=Re,Ja=oe,Kn=Ln,fg=oe;function dg(t,n){const{gen:r,data:o,it:a}=t;r.if(Xa(r,o,n,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ot._)`${n}`},!0),t.error()})}Ae.checkReportMissingProp=dg;function pg({gen:t,data:n,it:{opts:r}},o,a){return(0,ot.or)(...o.map(u=>(0,ot.and)(Xa(t,n,u,r.ownProperties),(0,ot._)`${a} = ${u}`)))}Ae.checkMissingProp=pg;function mg(t,n){t.setParams({missingProperty:n},!0),t.error()}Ae.reportMissingProp=mg;function Kh(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ot._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=Kh;function Ya(t,n,r){return(0,ot._)`${Kh(t)}.call(${n}, ${r})`}Ae.isOwnProperty=Ya;function _g(t,n,r,o){const a=(0,ot._)`${n}${(0,ot.getProperty)(r)} !== undefined`;return o?(0,ot._)`${a} && ${Ya(t,n,r)}`:a}Ae.propertyInData=_g;function Xa(t,n,r,o){const a=(0,ot._)`${n}${(0,ot.getProperty)(r)} === undefined`;return o?(0,ot.or)(a,(0,ot.not)(Ya(t,n,r))):a}Ae.noPropertyInData=Xa;function Wh(t){return t?Object.keys(t).filter(n=>n!=="__proto__"):[]}Ae.allSchemaProperties=Wh;function gg(t,n){return Wh(n).filter(r=>!(0,Ja.alwaysValidSchema)(t,n[r]))}Ae.schemaProperties=gg;function vg({schemaCode:t,data:n,it:{gen:r,topSchemaRef:o,schemaPath:a,errorPath:u},it:c},f,d,m){const g=m?(0,ot._)`${t}, ${n}, ${o}${a}`:n,y=[[Kn.default.instancePath,(0,ot.strConcat)(Kn.default.instancePath,u)],[Kn.default.parentData,c.parentData],[Kn.default.parentDataProperty,c.parentDataProperty],[Kn.default.rootData,Kn.default.rootData]];c.opts.dynamicRef&&y.push([Kn.default.dynamicAnchors,Kn.default.dynamicAnchors]);const C=(0,ot._)`${g}, ${r.object(...y)}`;return d!==ot.nil?(0,ot._)`${f}.call(${d}, ${C})`:(0,ot._)`${f}(${C})`}Ae.callValidateCode=vg;const yg=(0,ot._)`new RegExp`;function wg({gen:t,it:{opts:n}},r){const o=n.unicodeRegExp?"u":"",{regExp:a}=n.code,u=a(r,o);return t.scopeValue("pattern",{key:u.toString(),ref:u,code:(0,ot._)`${a.code==="new RegExp"?yg:(0,fg.useFunc)(t,a)}(${r}, ${o})`})}Ae.usePattern=wg;function bg(t){const{gen:n,data:r,keyword:o,it:a}=t,u=n.name("valid");if(a.allErrors){const f=n.let("valid",!0);return c(()=>n.assign(f,!1)),f}return n.var(u,!0),c(()=>n.break()),u;function c(f){const d=n.const("len",(0,ot._)`${r}.length`);n.forRange("i",0,d,m=>{t.subschema({keyword:o,dataProp:m,dataPropType:Ja.Type.Num},u),n.if((0,ot.not)(u),f)})}}Ae.validateArray=bg;function Pg(t){const{gen:n,schema:r,keyword:o,it:a}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(d=>(0,Ja.alwaysValidSchema)(a,d))&&!a.opts.unevaluated)return;const c=n.let("valid",!1),f=n.name("_valid");n.block(()=>r.forEach((d,m)=>{const g=t.subschema({keyword:o,schemaProp:m,compositeRule:!0},f);n.assign(c,(0,ot._)`${c} || ${f}`),t.mergeValidEvaluated(g,f)||n.if((0,ot.not)(c))})),t.result(c,()=>t.reset(),()=>t.error(!0))}Ae.validateUnion=Pg;Object.defineProperty(Cn,"__esModule",{value:!0});Cn.validateKeywordUsage=Cn.validSchemaType=Cn.funcKeywordCode=Cn.macroKeywordCode=void 0;const zt=Re,vi=Ln,$g=Ae,Sg=Br;function Eg(t,n){const{gen:r,keyword:o,schema:a,parentSchema:u,it:c}=t,f=n.macro.call(c.self,a,u,c),d=Gh(r,o,f);c.opts.validateSchema!==!1&&c.self.validateSchema(f,!0);const m=r.name("valid");t.subschema({schema:f,schemaPath:zt.nil,errSchemaPath:`${c.errSchemaPath}/${o}`,topSchemaRef:d,compositeRule:!0},m),t.pass(m,()=>t.error(!0))}Cn.macroKeywordCode=Eg;function Tg(t,n){var r;const{gen:o,keyword:a,schema:u,parentSchema:c,$data:f,it:d}=t;Cg(d,n);const m=!f&&n.compile?n.compile.call(d.self,u,c,d):n.validate,g=Gh(o,a,m),y=o.let("valid");t.block$data(y,C),t.ok((r=n.valid)!==null&&r!==void 0?r:y);function C(){if(n.errors===!1)x(),n.modifying&&oc(t),M(()=>t.error());else{const S=n.async?A():I();n.modifying&&oc(t),M(()=>xg(t,S))}}function A(){const S=o.let("ruleErrs",null);return o.try(()=>x((0,zt._)`await `),D=>o.assign(y,!1).if((0,zt._)`${D} instanceof ${d.ValidationError}`,()=>o.assign(S,(0,zt._)`${D}.errors`),()=>o.throw(D))),S}function I(){const S=(0,zt._)`${g}.errors`;return o.assign(S,null),x(zt.nil),S}function x(S=n.async?(0,zt._)`await `:zt.nil){const D=d.opts.passContext?vi.default.this:vi.default.self,U=!("compile"in n&&!f||n.schema===!1);o.assign(y,(0,zt._)`${S}${(0,$g.callValidateCode)(t,g,D,U)}`,n.modifying)}function M(S){var D;o.if((0,zt.not)((D=n.valid)!==null&&D!==void 0?D:y),S)}}Cn.funcKeywordCode=Tg;function oc(t){const{gen:n,data:r,it:o}=t;n.if(o.parentData,()=>n.assign(r,(0,zt._)`${o.parentData}[${o.parentDataProperty}]`))}function xg(t,n){const{gen:r}=t;r.if((0,zt._)`Array.isArray(${n})`,()=>{r.assign(vi.default.vErrors,(0,zt._)`${vi.default.vErrors} === null ? ${n} : ${vi.default.vErrors}.concat(${n})`).assign(vi.default.errors,(0,zt._)`${vi.default.vErrors}.length`),(0,Sg.extendErrors)(t)},()=>t.error())}function Cg({schemaEnv:t},n){if(n.async&&!t.$async)throw new Error("async keyword in sync schema")}function Gh(t,n,r){if(r===void 0)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,zt.stringify)(r)})}function Lg(t,n,r=!1){return!n.length||n.some(o=>o==="array"?Array.isArray(t):o==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==o||r&&typeof t>"u")}Cn.validSchemaType=Lg;function Og({schema:t,opts:n,self:r,errSchemaPath:o},a,u){if(Array.isArray(a.keyword)?!a.keyword.includes(u):a.keyword!==u)throw new Error("ajv implementation error");const c=a.dependencies;if(c!=null&&c.some(f=>!Object.prototype.hasOwnProperty.call(t,f)))throw new Error(`parent schema must have dependencies of ${u}: ${c.join(",")}`);if(a.validateSchema&&!a.validateSchema(t[u])){const d=`keyword "${u}" value is invalid at path "${o}": `+r.errorsText(a.validateSchema.errors);if(n.validateSchema==="log")r.logger.error(d);else throw new Error(d)}}Cn.validateKeywordUsage=Og;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.extendSubschemaMode=ni.extendSubschemaData=ni.getSubschema=void 0;const Tn=Re,Jh=oe;function Ig(t,{keyword:n,schemaProp:r,schema:o,schemaPath:a,errSchemaPath:u,topSchemaRef:c}){if(n!==void 0&&o!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){const f=t.schema[n];return r===void 0?{schema:f,schemaPath:(0,Tn._)`${t.schemaPath}${(0,Tn.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${n}`}:{schema:f[r],schemaPath:(0,Tn._)`${t.schemaPath}${(0,Tn.getProperty)(n)}${(0,Tn.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${n}/${(0,Jh.escapeFragment)(r)}`}}if(o!==void 0){if(a===void 0||u===void 0||c===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}ni.getSubschema=Ig;function Mg(t,n,{dataProp:r,dataPropType:o,data:a,dataTypes:u,propertyName:c}){if(a!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=n;if(r!==void 0){const{errorPath:m,dataPathArr:g,opts:y}=n,C=f.let("data",(0,Tn._)`${n.data}${(0,Tn.getProperty)(r)}`,!0);d(C),t.errorPath=(0,Tn.str)`${m}${(0,Jh.getErrorPath)(r,o,y.jsPropertySyntax)}`,t.parentDataProperty=(0,Tn._)`${r}`,t.dataPathArr=[...g,t.parentDataProperty]}if(a!==void 0){const m=a instanceof Tn.Name?a:f.let("data",a,!0);d(m),c!==void 0&&(t.propertyName=c)}u&&(t.dataTypes=u);function d(m){t.data=m,t.dataLevel=n.dataLevel+1,t.dataTypes=[],n.definedProperties=new Set,t.parentData=n.data,t.dataNames=[...n.dataNames,m]}}ni.extendSubschemaData=Mg;function kg(t,{jtdDiscriminator:n,jtdMetadata:r,compositeRule:o,createErrors:a,allErrors:u}){o!==void 0&&(t.compositeRule=o),a!==void 0&&(t.createErrors=a),u!==void 0&&(t.allErrors=u),t.jtdDiscriminator=n,t.jtdMetadata=r}ni.extendSubschemaMode=kg;var Lt={},Yh=function t(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var o,a,u;if(Array.isArray(n)){if(o=n.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!t(n[a],r[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(u=Object.keys(n),o=u.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,u[a]))return!1;for(a=o;a--!==0;){var c=u[a];if(!t(n[c],r[c]))return!1}return!0}return n!==n&&r!==r},Xh={exports:{}},Qn=Xh.exports=function(t,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var o=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};Ts(n,o,a,t,"",t)};Qn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Qn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Qn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Qn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ts(t,n,r,o,a,u,c,f,d,m){if(o&&typeof o=="object"&&!Array.isArray(o)){n(o,a,u,c,f,d,m);for(var g in o){var y=o[g];if(Array.isArray(y)){if(g in Qn.arrayKeywords)for(var C=0;Cn+=Qh(o)),n===1/0))return 1/0}return n}function ef(t,n="",r){r!==!1&&(n=Wi(n));const o=t.parse(n);return tf(t,o)}Lt.getFullPath=ef;function tf(t,n){return t.serialize(n).split("#")[0]+"#"}Lt._getFullPath=tf;const Zg=/#\/?$/;function Wi(t){return t?t.replace(Zg,""):""}Lt.normalizeId=Wi;function Vg(t,n,r){return r=Wi(r),t.resolve(n,r)}Lt.resolveUrl=Vg;const Ug=/^[a-z_][-a-z0-9._]*$/i;function Hg(t,n){if(typeof t=="boolean")return{};const{schemaId:r,uriResolver:o}=this.opts,a=Wi(t[r]||n),u={"":a},c=ef(o,a,!1),f={},d=new Set;return zg(t,{allKeys:!0},(y,C,A,I)=>{if(I===void 0)return;const x=c+C;let M=u[I];typeof y[r]=="string"&&(M=S.call(this,y[r])),D.call(this,y.$anchor),D.call(this,y.$dynamicAnchor),u[C]=M;function S(U){const X=this.opts.uriResolver.resolve;if(U=Wi(M?X(M,U):U),d.has(U))throw g(U);d.add(U);let Y=this.refs[U];return typeof Y=="string"&&(Y=this.refs[Y]),typeof Y=="object"?m(y,Y.schema,U):U!==Wi(x)&&(U[0]==="#"?(m(y,f[U],U),f[U]=y):this.refs[U]=x),U}function D(U){if(typeof U=="string"){if(!Ug.test(U))throw new Error(`invalid anchor "${U}"`);S.call(this,`#${U}`)}}}),f;function m(y,C,A){if(C!==void 0&&!Dg(y,C))throw g(A)}function g(y){return new Error(`reference "${y}" resolves to more than one schema`)}}Lt.getSchemaRefs=Hg;Object.defineProperty(gn,"__esModule",{value:!0});gn.getData=gn.KeywordCxt=gn.validateFunctionCode=void 0;const nf=Yi,ac=gt,Qa=zn,zs=gt,qg=ao,Tr=Cn,Xo=ni,fe=Re,ye=Ln,Kg=Lt,jn=oe,mr=Br;function Wg(t){if(of(t)&&(af(t),sf(t))){Yg(t);return}rf(t,()=>(0,nf.topBoolOrEmptySchema)(t))}gn.validateFunctionCode=Wg;function rf({gen:t,validateName:n,schema:r,schemaEnv:o,opts:a},u){a.code.es5?t.func(n,(0,fe._)`${ye.default.data}, ${ye.default.valCxt}`,o.$async,()=>{t.code((0,fe._)`"use strict"; ${lc(r,a)}`),Jg(t,a),t.code(u)}):t.func(n,(0,fe._)`${ye.default.data}, ${Gg(a)}`,o.$async,()=>t.code(lc(r,a)).code(u))}function Gg(t){return(0,fe._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${t.dynamicRef?(0,fe._)`, ${ye.default.dynamicAnchors}={}`:fe.nil}}={}`}function Jg(t,n){t.if(ye.default.valCxt,()=>{t.var(ye.default.instancePath,(0,fe._)`${ye.default.valCxt}.${ye.default.instancePath}`),t.var(ye.default.parentData,(0,fe._)`${ye.default.valCxt}.${ye.default.parentData}`),t.var(ye.default.parentDataProperty,(0,fe._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),t.var(ye.default.rootData,(0,fe._)`${ye.default.valCxt}.${ye.default.rootData}`),n.dynamicRef&&t.var(ye.default.dynamicAnchors,(0,fe._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{t.var(ye.default.instancePath,(0,fe._)`""`),t.var(ye.default.parentData,(0,fe._)`undefined`),t.var(ye.default.parentDataProperty,(0,fe._)`undefined`),t.var(ye.default.rootData,ye.default.data),n.dynamicRef&&t.var(ye.default.dynamicAnchors,(0,fe._)`{}`)})}function Yg(t){const{schema:n,opts:r,gen:o}=t;rf(t,()=>{r.$comment&&n.$comment&&uf(t),nv(t),o.let(ye.default.vErrors,null),o.let(ye.default.errors,0),r.unevaluated&&Xg(t),lf(t),sv(t)})}function Xg(t){const{gen:n,validateName:r}=t;t.evaluated=n.const("evaluated",(0,fe._)`${r}.evaluated`),n.if((0,fe._)`${t.evaluated}.dynamicProps`,()=>n.assign((0,fe._)`${t.evaluated}.props`,(0,fe._)`undefined`)),n.if((0,fe._)`${t.evaluated}.dynamicItems`,()=>n.assign((0,fe._)`${t.evaluated}.items`,(0,fe._)`undefined`))}function lc(t,n){const r=typeof t=="object"&&t[n.schemaId];return r&&(n.code.source||n.code.process)?(0,fe._)`/*# sourceURL=${r} */`:fe.nil}function Qg(t,n){if(of(t)&&(af(t),sf(t))){ev(t,n);return}(0,nf.boolOrEmptySchema)(t,n)}function sf({schema:t,self:n}){if(typeof t=="boolean")return!t;for(const r in t)if(n.RULES.all[r])return!0;return!1}function of(t){return typeof t.schema!="boolean"}function ev(t,n){const{schema:r,gen:o,opts:a}=t;a.$comment&&r.$comment&&uf(t),iv(t),rv(t);const u=o.const("_errs",ye.default.errors);lf(t,u),o.var(n,(0,fe._)`${u} === ${ye.default.errors}`)}function af(t){(0,jn.checkUnknownRules)(t),tv(t)}function lf(t,n){if(t.opts.jtd)return uc(t,[],!1,n);const r=(0,ac.getSchemaTypes)(t.schema),o=(0,ac.coerceAndCheckDataType)(t,r);uc(t,r,!o,n)}function tv(t){const{schema:n,errSchemaPath:r,opts:o,self:a}=t;n.$ref&&o.ignoreKeywordsWithRef&&(0,jn.schemaHasRulesButRef)(n,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function nv(t){const{schema:n,opts:r}=t;n.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,jn.checkStrictMode)(t,"default is ignored in the schema root")}function iv(t){const n=t.schema[t.opts.schemaId];n&&(t.baseId=(0,Kg.resolveUrl)(t.opts.uriResolver,t.baseId,n))}function rv(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function uf({gen:t,schemaEnv:n,schema:r,errSchemaPath:o,opts:a}){const u=r.$comment;if(a.$comment===!0)t.code((0,fe._)`${ye.default.self}.logger.log(${u})`);else if(typeof a.$comment=="function"){const c=(0,fe.str)`${o}/$comment`,f=t.scopeValue("root",{ref:n.root});t.code((0,fe._)`${ye.default.self}.opts.$comment(${u}, ${c}, ${f}.schema)`)}}function sv(t){const{gen:n,schemaEnv:r,validateName:o,ValidationError:a,opts:u}=t;r.$async?n.if((0,fe._)`${ye.default.errors} === 0`,()=>n.return(ye.default.data),()=>n.throw((0,fe._)`new ${a}(${ye.default.vErrors})`)):(n.assign((0,fe._)`${o}.errors`,ye.default.vErrors),u.unevaluated&&ov(t),n.return((0,fe._)`${ye.default.errors} === 0`))}function ov({gen:t,evaluated:n,props:r,items:o}){r instanceof fe.Name&&t.assign((0,fe._)`${n}.props`,r),o instanceof fe.Name&&t.assign((0,fe._)`${n}.items`,o)}function uc(t,n,r,o){const{gen:a,schema:u,data:c,allErrors:f,opts:d,self:m}=t,{RULES:g}=m;if(u.$ref&&(d.ignoreKeywordsWithRef||!(0,jn.schemaHasRulesButRef)(u,g))){a.block(()=>ff(t,"$ref",g.all.$ref.definition));return}d.jtd||av(t,n),a.block(()=>{for(const C of g.rules)y(C);y(g.post)});function y(C){(0,Qa.shouldUseGroup)(u,C)&&(C.type?(a.if((0,zs.checkDataType)(C.type,c,d.strictNumbers)),cc(t,C),n.length===1&&n[0]===C.type&&r&&(a.else(),(0,zs.reportTypeError)(t)),a.endIf()):cc(t,C),f||a.if((0,fe._)`${ye.default.errors} === ${o||0}`))}}function cc(t,n){const{gen:r,schema:o,opts:{useDefaults:a}}=t;a&&(0,qg.assignDefaults)(t,n.type),r.block(()=>{for(const u of n.rules)(0,Qa.shouldUseRule)(o,u)&&ff(t,u.keyword,u.definition,n.type)})}function av(t,n){t.schemaEnv.meta||!t.opts.strictTypes||(lv(t,n),t.opts.allowUnionTypes||uv(t,n),cv(t,t.dataTypes))}function lv(t,n){if(n.length){if(!t.dataTypes.length){t.dataTypes=n;return}n.forEach(r=>{cf(t.dataTypes,r)||el(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),fv(t,n)}}function uv(t,n){n.length>1&&!(n.length===2&&n.includes("null"))&&el(t,"use allowUnionTypes to allow union type keyword")}function cv(t,n){const r=t.self.RULES.all;for(const o in r){const a=r[o];if(typeof a=="object"&&(0,Qa.shouldUseRule)(t.schema,a)){const{type:u}=a.definition;u.length&&!u.some(c=>hv(n,c))&&el(t,`missing type "${u.join(",")}" for keyword "${o}"`)}}}function hv(t,n){return t.includes(n)||n==="number"&&t.includes("integer")}function cf(t,n){return t.includes(n)||n==="integer"&&t.includes("number")}function fv(t,n){const r=[];for(const o of t.dataTypes)cf(n,o)?r.push(o):n.includes("integer")&&o==="number"&&r.push("integer");t.dataTypes=r}function el(t,n){const r=t.schemaEnv.baseId+t.errSchemaPath;n+=` at "${r}" (strictTypes)`,(0,jn.checkStrictMode)(t,n,t.opts.strictTypes)}class hf{constructor(n,r,o){if((0,Tr.validateKeywordUsage)(n,r,o),this.gen=n.gen,this.allErrors=n.allErrors,this.keyword=o,this.data=n.data,this.schema=n.schema[o],this.$data=r.$data&&n.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,jn.schemaRefOrVal)(n,this.schema,o,this.$data),this.schemaType=r.schemaType,this.parentSchema=n.schema,this.params={},this.it=n,this.def=r,this.$data)this.schemaCode=n.gen.const("vSchema",df(this.$data,n));else if(this.schemaCode=this.schemaValue,!(0,Tr.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${o} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=n.gen.const("_errs",ye.default.errors))}result(n,r,o){this.failResult((0,fe.not)(n),r,o)}failResult(n,r,o){this.gen.if(n),o?o():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(n,r){this.failResult((0,fe.not)(n),void 0,r)}fail(n){if(n===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(n),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(n){if(!this.$data)return this.fail(n);const{schemaCode:r}=this;this.fail((0,fe._)`${r} !== undefined && (${(0,fe.or)(this.invalid$data(),n)})`)}error(n,r,o){if(r){this.setParams(r),this._error(n,o),this.setParams({});return}this._error(n,o)}_error(n,r){(n?mr.reportExtraError:mr.reportError)(this,this.def.error,r)}$dataError(){(0,mr.reportError)(this,this.def.$dataError||mr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,mr.resetErrorsCount)(this.gen,this.errsCount)}ok(n){this.allErrors||this.gen.if(n)}setParams(n,r){r?Object.assign(this.params,n):this.params=n}block$data(n,r,o=fe.nil){this.gen.block(()=>{this.check$data(n,o),r()})}check$data(n=fe.nil,r=fe.nil){if(!this.$data)return;const{gen:o,schemaCode:a,schemaType:u,def:c}=this;o.if((0,fe.or)((0,fe._)`${a} === undefined`,r)),n!==fe.nil&&o.assign(n,!0),(u.length||c.validateSchema)&&(o.elseIf(this.invalid$data()),this.$dataError(),n!==fe.nil&&o.assign(n,!1)),o.else()}invalid$data(){const{gen:n,schemaCode:r,schemaType:o,def:a,it:u}=this;return(0,fe.or)(c(),f());function c(){if(o.length){if(!(r instanceof fe.Name))throw new Error("ajv implementation error");const d=Array.isArray(o)?o:[o];return(0,fe._)`${(0,zs.checkDataTypes)(d,r,u.opts.strictNumbers,zs.DataType.Wrong)}`}return fe.nil}function f(){if(a.validateSchema){const d=n.scopeValue("validate$data",{ref:a.validateSchema});return(0,fe._)`!${d}(${r})`}return fe.nil}}subschema(n,r){const o=(0,Xo.getSubschema)(this.it,n);(0,Xo.extendSubschemaData)(o,this.it,n),(0,Xo.extendSubschemaMode)(o,n);const a={...this.it,...o,items:void 0,props:void 0};return Qg(a,r),a}mergeEvaluated(n,r){const{it:o,gen:a}=this;o.opts.unevaluated&&(o.props!==!0&&n.props!==void 0&&(o.props=jn.mergeEvaluated.props(a,n.props,o.props,r)),o.items!==!0&&n.items!==void 0&&(o.items=jn.mergeEvaluated.items(a,n.items,o.items,r)))}mergeValidEvaluated(n,r){const{it:o,gen:a}=this;if(o.opts.unevaluated&&(o.props!==!0||o.items!==!0))return a.if(r,()=>this.mergeEvaluated(n,fe.Name)),!0}}gn.KeywordCxt=hf;function ff(t,n,r,o){const a=new hf(t,r,n);"code"in r?r.code(a,o):a.$data&&r.validate?(0,Tr.funcKeywordCode)(a,r):"macro"in r?(0,Tr.macroKeywordCode)(a,r):(r.compile||r.validate)&&(0,Tr.funcKeywordCode)(a,r)}const dv=/^\/(?:[^~]|~0|~1)*$/,pv=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function df(t,{dataLevel:n,dataNames:r,dataPathArr:o}){let a,u;if(t==="")return ye.default.rootData;if(t[0]==="/"){if(!dv.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,u=ye.default.rootData}else{const m=pv.exec(t);if(!m)throw new Error(`Invalid JSON-pointer: ${t}`);const g=+m[1];if(a=m[2],a==="#"){if(g>=n)throw new Error(d("property/index",g));return o[n-g]}if(g>n)throw new Error(d("data",g));if(u=r[n-g],!a)return u}let c=u;const f=a.split("/");for(const m of f)m&&(u=(0,fe._)`${u}${(0,fe.getProperty)((0,jn.unescapeJsonPointer)(m))}`,c=(0,fe._)`${c} && ${u}`);return c;function d(m,g){return`Cannot access ${m} ${g} levels up, current level is ${n}`}}gn.getData=df;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});class mv extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}Fr.default=mv;var er={};Object.defineProperty(er,"__esModule",{value:!0});const Qo=Lt;class _v extends Error{constructor(n,r,o,a){super(a||`can't resolve reference ${o} from id ${r}`),this.missingRef=(0,Qo.resolveUrl)(n,r,o),this.missingSchema=(0,Qo.normalizeId)((0,Qo.getFullPath)(n,this.missingRef))}}er.default=_v;var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.resolveSchema=Ut.getCompilingSchema=Ut.resolveRef=Ut.compileSchema=Ut.SchemaEnv=void 0;const fn=Re,gv=Fr,mi=Ln,pn=Lt,hc=oe,vv=gn;class lo{constructor(n){var r;this.refs={},this.dynamicAnchors={};let o;typeof n.schema=="object"&&(o=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=(r=n.baseId)!==null&&r!==void 0?r:(0,pn.normalizeId)(o==null?void 0:o[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=o==null?void 0:o.$async,this.refs={}}}Ut.SchemaEnv=lo;function tl(t){const n=pf.call(this,t);if(n)return n;const r=(0,pn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:o,lines:a}=this.opts.code,{ownProperties:u}=this.opts,c=new fn.CodeGen(this.scope,{es5:o,lines:a,ownProperties:u});let f;t.$async&&(f=c.scopeValue("Error",{ref:gv.default,code:(0,fn._)`require("ajv/dist/runtime/validation_error").default`}));const d=c.scopeName("validate");t.validateName=d;const m={gen:c,allErrors:this.opts.allErrors,data:mi.default.data,parentData:mi.default.parentData,parentDataProperty:mi.default.parentDataProperty,dataNames:[mi.default.data],dataPathArr:[fn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,fn.stringify)(t.schema)}:{ref:t.schema}),validateName:d,ValidationError:f,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:fn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fn._)`""`,opts:this.opts,self:this};let g;try{this._compilations.add(t),(0,vv.validateFunctionCode)(m),c.optimize(this.opts.code.optimize);const y=c.toString();g=`${c.scopeRefs(mi.default.scope)}return ${y}`,this.opts.code.process&&(g=this.opts.code.process(g,t));const A=new Function(`${mi.default.self}`,`${mi.default.scope}`,g)(this,this.scope.get());if(this.scope.value(d,{ref:A}),A.errors=null,A.schema=t.schema,A.schemaEnv=t,t.$async&&(A.$async=!0),this.opts.code.source===!0&&(A.source={validateName:d,validateCode:y,scopeValues:c._values}),this.opts.unevaluated){const{props:I,items:x}=m;A.evaluated={props:I instanceof fn.Name?void 0:I,items:x instanceof fn.Name?void 0:x,dynamicProps:I instanceof fn.Name,dynamicItems:x instanceof fn.Name},A.source&&(A.source.evaluated=(0,fn.stringify)(A.evaluated))}return t.validate=A,t}catch(y){throw delete t.validate,delete t.validateName,g&&this.logger.error("Error compiling schema, function code:",g),y}finally{this._compilations.delete(t)}}Ut.compileSchema=tl;function yv(t,n,r){var o;r=(0,pn.resolveUrl)(this.opts.uriResolver,n,r);const a=t.refs[r];if(a)return a;let u=Pv.call(this,t,r);if(u===void 0){const c=(o=t.localRefs)===null||o===void 0?void 0:o[r],{schemaId:f}=this.opts;c&&(u=new lo({schema:c,schemaId:f,root:t,baseId:n}))}if(u!==void 0)return t.refs[r]=wv.call(this,u)}Ut.resolveRef=yv;function wv(t){return(0,pn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:tl.call(this,t)}function pf(t){for(const n of this._compilations)if(bv(n,t))return n}Ut.getCompilingSchema=pf;function bv(t,n){return t.schema===n.schema&&t.root===n.root&&t.baseId===n.baseId}function Pv(t,n){let r;for(;typeof(r=this.refs[n])=="string";)n=r;return r||this.schemas[n]||uo.call(this,t,n)}function uo(t,n){const r=this.opts.uriResolver.parse(n),o=(0,pn._getFullPath)(this.opts.uriResolver,r);let a=(0,pn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&o===a)return ea.call(this,r,t);const u=(0,pn.normalizeId)(o),c=this.refs[u]||this.schemas[u];if(typeof c=="string"){const f=uo.call(this,t,c);return typeof(f==null?void 0:f.schema)!="object"?void 0:ea.call(this,r,f)}if(typeof(c==null?void 0:c.schema)=="object"){if(c.validate||tl.call(this,c),u===(0,pn.normalizeId)(n)){const{schema:f}=c,{schemaId:d}=this.opts,m=f[d];return m&&(a=(0,pn.resolveUrl)(this.opts.uriResolver,a,m)),new lo({schema:f,schemaId:d,root:t,baseId:a})}return ea.call(this,r,c)}}Ut.resolveSchema=uo;const $v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ea(t,{baseId:n,schema:r,root:o}){var a;if(((a=t.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const f of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const d=r[(0,hc.unescapeFragment)(f)];if(d===void 0)return;r=d;const m=typeof r=="object"&&r[this.opts.schemaId];!$v.has(f)&&m&&(n=(0,pn.resolveUrl)(this.opts.uriResolver,n,m))}let u;if(typeof r!="boolean"&&r.$ref&&!(0,hc.schemaHasRulesButRef)(r,this.RULES)){const f=(0,pn.resolveUrl)(this.opts.uriResolver,n,r.$ref);u=uo.call(this,o,f)}const{schemaId:c}=this.opts;if(u=u||new lo({schema:r,schemaId:c,root:o,baseId:n}),u.schema!==u.root.schema)return u}const Sv="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Ev="Meta-schema for $data reference (JSON AnySchema extension proposal)",Tv="object",xv=["$data"],Cv={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Lv=!1,Ov={$id:Sv,description:Ev,type:Tv,required:xv,properties:Cv,additionalProperties:Lv};var nl={},Pa={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(t,n){(function(r,o){o(n)})(kh,function(r){function o(){for(var $=arguments.length,_=Array($),E=0;E<$;E++)_[E]=arguments[E];if(_.length>1){_[0]=_[0].slice(0,-1);for(var j=_.length-1,z=1;z= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ie=x-M,$e=Math.floor,mt=String.fromCharCode;function Ue($){throw new RangeError(Ke[$])}function wt($,_){for(var E=[],j=$.length;j--;)E[j]=_($[j]);return E}function pe($,_){var E=$.split("@"),j="";E.length>1&&(j=E[0]+"@",$=E[1]),$=$.replace(we,".");var z=$.split("."),ce=wt(z,_).join(".");return j+ce}function ze($){for(var _=[],E=0,j=$.length;E=55296&&z<=56319&&E>1,_+=$e(_/E);_>Ie*S>>1;z+=x)_=$e(_/Ie);return $e(z+(Ie+1)*_/(_+D))},V=function(_){var E=[],j=_.length,z=0,ce=Y,he=X,De=_.lastIndexOf(ae);De<0&&(De=0);for(var He=0;He=128&&Ue("not-basic"),E.push(_.charCodeAt(He));for(var lt=De>0?De+1:0;lt=j&&Ue("invalid-input");var ve=Et(_.charCodeAt(lt++));(ve>=x||ve>$e((I-z)/Ye))&&Ue("overflow"),z+=ve*Ye;var et=ut<=he?M:ut>=he+S?S:ut-he;if(ve$e(I/ct)&&Ue("overflow"),Ye*=ct}var Je=E.length+1;he=O(z-Me,Je,Me==0),$e(z/Je)>I-ce&&Ue("overflow"),ce+=$e(z/Je),z%=Je,E.splice(z++,0,ce)}return String.fromCodePoint.apply(String,E)},R=function(_){var E=[];_=ze(_);var j=_.length,z=Y,ce=0,he=X,De=!0,He=!1,lt=void 0;try{for(var Me=_[Symbol.iterator](),Ye;!(De=(Ye=Me.next()).done);De=!0){var ut=Ye.value;ut<128&&E.push(mt(ut))}}catch(tt){He=!0,lt=tt}finally{try{!De&&Me.return&&Me.return()}finally{if(He)throw lt}}var ve=E.length,et=ve;for(ve&&E.push(ae);et=z&&On$e((I-ce)/Ot)&&Ue("overflow"),ce+=(ct-z)*Ot,z=ct;var It=!0,yn=!1,Yt=void 0;try{for(var an=_[Symbol.iterator](),Fe;!(It=(Fe=an.next()).done);It=!0){var it=Fe.value;if(itI&&Ue("overflow"),it==z){for(var In=ce,ln=x;;ln+=x){var un=ln<=he?M:ln>=he+S?S:ln-he;if(In>6|192).toString(16).toUpperCase()+"%"+(_&63|128).toString(16).toUpperCase():E="%"+(_>>12|224).toString(16).toUpperCase()+"%"+(_>>6&63|128).toString(16).toUpperCase()+"%"+(_&63|128).toString(16).toUpperCase(),E}function Ee($){for(var _="",E=0,j=$.length;E=194&&z<224){if(j-E>=6){var ce=parseInt($.substr(E+4,2),16);_+=String.fromCharCode((z&31)<<6|ce&63)}else _+=$.substr(E,6);E+=6}else if(z>=224){if(j-E>=9){var he=parseInt($.substr(E+4,2),16),De=parseInt($.substr(E+7,2),16);_+=String.fromCharCode((z&15)<<12|(he&63)<<6|De&63)}else _+=$.substr(E,9);E+=9}else _+=$.substr(E,3),E+=3}return _}function be($,_){function E(j){var z=Ee(j);return z.match(_.UNRESERVED)?z:j}return $.scheme&&($.scheme=String($.scheme).replace(_.PCT_ENCODED,E).toLowerCase().replace(_.NOT_SCHEME,"")),$.userinfo!==void 0&&($.userinfo=String($.userinfo).replace(_.PCT_ENCODED,E).replace(_.NOT_USERINFO,ie).replace(_.PCT_ENCODED,c)),$.host!==void 0&&($.host=String($.host).replace(_.PCT_ENCODED,E).toLowerCase().replace(_.NOT_HOST,ie).replace(_.PCT_ENCODED,c)),$.path!==void 0&&($.path=String($.path).replace(_.PCT_ENCODED,E).replace($.scheme?_.NOT_PATH:_.NOT_PATH_NOSCHEME,ie).replace(_.PCT_ENCODED,c)),$.query!==void 0&&($.query=String($.query).replace(_.PCT_ENCODED,E).replace(_.NOT_QUERY,ie).replace(_.PCT_ENCODED,c)),$.fragment!==void 0&&($.fragment=String($.fragment).replace(_.PCT_ENCODED,E).replace(_.NOT_FRAGMENT,ie).replace(_.PCT_ENCODED,c)),$}function We($){return $.replace(/^0*(.*)/,"$1")||"0"}function _t($,_){var E=$.match(_.IPV4ADDRESS)||[],j=C(E,2),z=j[1];return z?z.split(".").map(We).join("."):$}function b($,_){var E=$.match(_.IPV6ADDRESS)||[],j=C(E,3),z=j[1],ce=j[2];if(z){for(var he=z.toLowerCase().split("::").reverse(),De=C(he,2),He=De[0],lt=De[1],Me=lt?lt.split(":").map(We):[],Ye=He.split(":").map(We),ut=_.IPV4ADDRESS.test(Ye[Ye.length-1]),ve=ut?7:8,et=Ye.length-ve,ct=Array(ve),Je=0;Je1){var Vn=ct.slice(0,Gt.index),On=ct.slice(Gt.index+Gt.length);Jt=Vn.join(":")+"::"+On.join(":")}else Jt=ct.join(":");return ce&&(Jt+="%"+ce),Jt}else return $}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,F="".match(/(){0}/)[1]===void 0;function H($){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E={},j=_.iri!==!1?y:g;_.reference==="suffix"&&($=(_.scheme?_.scheme+":":"")+"//"+$);var z=$.match(T);if(z){F?(E.scheme=z[1],E.userinfo=z[3],E.host=z[4],E.port=parseInt(z[5],10),E.path=z[6]||"",E.query=z[7],E.fragment=z[8],isNaN(E.port)&&(E.port=z[5])):(E.scheme=z[1]||void 0,E.userinfo=$.indexOf("@")!==-1?z[3]:void 0,E.host=$.indexOf("//")!==-1?z[4]:void 0,E.port=parseInt(z[5],10),E.path=z[6]||"",E.query=$.indexOf("?")!==-1?z[7]:void 0,E.fragment=$.indexOf("#")!==-1?z[8]:void 0,isNaN(E.port)&&(E.port=$.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?z[4]:void 0)),E.host&&(E.host=b(_t(E.host,j),j)),E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&!E.path&&E.query===void 0?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==E.reference&&(E.error=E.error||"URI is not a "+_.reference+" reference.");var ce=ee[(_.scheme||E.scheme||"").toLowerCase()];if(!_.unicodeSupport&&(!ce||!ce.unicodeSupport)){if(E.host&&(_.domainHost||ce&&ce.domainHost))try{E.host=k.toASCII(E.host.replace(j.PCT_ENCODED,Ee).toLowerCase())}catch(he){E.error=E.error||"Host's domain name can not be converted to ASCII via punycode: "+he}be(E,g)}else be(E,j);ce&&ce.parse&&ce.parse(E,_)}else E.error=E.error||"URI can not be parsed.";return E}function q($,_){var E=_.iri!==!1?y:g,j=[];return $.userinfo!==void 0&&(j.push($.userinfo),j.push("@")),$.host!==void 0&&j.push(b(_t(String($.host),E),E).replace(E.IPV6ADDRESS,function(z,ce,he){return"["+ce+(he?"%25"+he:"")+"]"})),(typeof $.port=="number"||typeof $.port=="string")&&(j.push(":"),j.push(String($.port))),j.length?j.join(""):void 0}var G=/^\.\.?\//,ne=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,Q=/^\/?(?:.|\n)*?(?=\/|$)/;function K($){for(var _=[];$.length;)if($.match(G))$=$.replace(G,"");else if($.match(ne))$=$.replace(ne,"/");else if($.match(J))$=$.replace(J,"/"),_.pop();else if($==="."||$==="..")$="";else{var E=$.match(Q);if(E){var j=E[0];$=$.slice(j.length),_.push(j)}else throw new Error("Unexpected dot segment condition")}return _.join("")}function te($){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=_.iri?y:g,j=[],z=ee[(_.scheme||$.scheme||"").toLowerCase()];if(z&&z.serialize&&z.serialize($,_),$.host&&!E.IPV6ADDRESS.test($.host)){if(_.domainHost||z&&z.domainHost)try{$.host=_.iri?k.toUnicode($.host):k.toASCII($.host.replace(E.PCT_ENCODED,Ee).toLowerCase())}catch(De){$.error=$.error||"Host's domain name can not be converted to "+(_.iri?"Unicode":"ASCII")+" via punycode: "+De}}be($,E),_.reference!=="suffix"&&$.scheme&&(j.push($.scheme),j.push(":"));var ce=q($,_);if(ce!==void 0&&(_.reference!=="suffix"&&j.push("//"),j.push(ce),$.path&&$.path.charAt(0)!=="/"&&j.push("/")),$.path!==void 0){var he=$.path;!_.absolutePath&&(!z||!z.absolutePath)&&(he=K(he)),ce===void 0&&(he=he.replace(/^\/\//,"/%2F")),j.push(he)}return $.query!==void 0&&(j.push("?"),j.push($.query)),$.fragment!==void 0&&(j.push("#"),j.push($.fragment)),j.join("")}function ue($,_){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments[3],z={};return j||($=H(te($,E),E),_=H(te(_,E),E)),E=E||{},!E.tolerant&&_.scheme?(z.scheme=_.scheme,z.userinfo=_.userinfo,z.host=_.host,z.port=_.port,z.path=K(_.path||""),z.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(z.userinfo=_.userinfo,z.host=_.host,z.port=_.port,z.path=K(_.path||""),z.query=_.query):(_.path?(_.path.charAt(0)==="/"?z.path=K(_.path):(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path?z.path="/"+_.path:$.path?z.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+_.path:z.path=_.path,z.path=K(z.path)),z.query=_.query):(z.path=$.path,_.query!==void 0?z.query=_.query:z.query=$.query),z.userinfo=$.userinfo,z.host=$.host,z.port=$.port),z.scheme=$.scheme),z.fragment=_.fragment,z}function le($,_,E){var j=d({scheme:"null"},E);return te(ue(H($,j),H(_,j),j,!0),j)}function de($,_){return typeof $=="string"?$=te(H($,_),_):u($)==="object"&&($=H(te($,_),_)),$}function Pe($,_,E){return typeof $=="string"?$=te(H($,E),E):u($)==="object"&&($=te($,E)),typeof _=="string"?_=te(H(_,E),E):u(_)==="object"&&(_=te(_,E)),$===_}function je($,_){return $&&$.toString().replace(!_||!_.iri?g.ESCAPE:y.ESCAPE,ie)}function Oe($,_){return $&&$.toString().replace(!_||!_.iri?g.PCT_ENCODED:y.PCT_ENCODED,Ee)}var Ge={scheme:"http",domainHost:!0,parse:function(_,E){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_},serialize:function(_,E){var j=String(_.scheme).toLowerCase()==="https";return(_.port===(j?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}},Tt={scheme:"https",domainHost:Ge.domainHost,parse:Ge.parse,serialize:Ge.serialize};function sn($){return typeof $.secure=="boolean"?$.secure:String($.scheme).toLowerCase()==="wss"}var on={scheme:"ws",domainHost:!0,parse:function(_,E){var j=_;return j.secure=sn(j),j.resourceName=(j.path||"/")+(j.query?"?"+j.query:""),j.path=void 0,j.query=void 0,j},serialize:function(_,E){if((_.port===(sn(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){var j=_.resourceName.split("?"),z=C(j,2),ce=z[0],he=z[1];_.path=ce&&ce!=="/"?ce:void 0,_.query=he,_.resourceName=void 0}return _.fragment=void 0,_}},Wt={scheme:"wss",domainHost:on.domainHost,parse:on.parse,serialize:on.serialize},ai={},bt="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Qe="[0-9A-Fa-f]",Li=a(a("%[EFef]"+Qe+"%"+Qe+Qe+"%"+Qe+Qe)+"|"+a("%[89A-Fa-f]"+Qe+"%"+Qe+Qe)+"|"+a("%"+Qe+Qe)),po="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Vr="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ur=o(Vr,'[\\"\\\\]'),Hr="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",mo=new RegExp(bt,"g"),Zn=new RegExp(Li,"g"),_o=new RegExp(o("[^]",po,"[\\.]",'[\\"]',Ur),"g"),qr=new RegExp(o("[^]",bt,Hr),"g"),go=qr;function ir($){var _=Ee($);return _.match(mo)?_:$}var Oi={scheme:"mailto",parse:function(_,E){var j=_,z=j.to=j.path?j.path.split(","):[];if(j.path=void 0,j.query){for(var ce=!1,he={},De=j.query.split("&"),He=0,lt=De.length;Henew RegExp(Z,O);A.code="new RegExp";const I=["removeAdditional","useDefaults","coerceTypes"],x=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),M={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},S={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},D=200;function U(Z){var O,V,R,v,w,k,ee,ie,Ee,be,We,_t,b,T,F,H,q,G,ne,J,Q,K,te,ue,le;const de=Z.strict,Pe=(O=Z.code)===null||O===void 0?void 0:O.optimize,je=Pe===!0||Pe===void 0?1:Pe||0,Oe=(R=(V=Z.code)===null||V===void 0?void 0:V.regExp)!==null&&R!==void 0?R:A,Ge=(v=Z.uriResolver)!==null&&v!==void 0?v:C.default;return{strictSchema:(k=(w=Z.strictSchema)!==null&&w!==void 0?w:de)!==null&&k!==void 0?k:!0,strictNumbers:(ie=(ee=Z.strictNumbers)!==null&&ee!==void 0?ee:de)!==null&&ie!==void 0?ie:!0,strictTypes:(be=(Ee=Z.strictTypes)!==null&&Ee!==void 0?Ee:de)!==null&&be!==void 0?be:"log",strictTuples:(_t=(We=Z.strictTuples)!==null&&We!==void 0?We:de)!==null&&_t!==void 0?_t:"log",strictRequired:(T=(b=Z.strictRequired)!==null&&b!==void 0?b:de)!==null&&T!==void 0?T:!1,code:Z.code?{...Z.code,optimize:je,regExp:Oe}:{optimize:je,regExp:Oe},loopRequired:(F=Z.loopRequired)!==null&&F!==void 0?F:D,loopEnum:(H=Z.loopEnum)!==null&&H!==void 0?H:D,meta:(q=Z.meta)!==null&&q!==void 0?q:!0,messages:(G=Z.messages)!==null&&G!==void 0?G:!0,inlineRefs:(ne=Z.inlineRefs)!==null&&ne!==void 0?ne:!0,schemaId:(J=Z.schemaId)!==null&&J!==void 0?J:"$id",addUsedSchema:(Q=Z.addUsedSchema)!==null&&Q!==void 0?Q:!0,validateSchema:(K=Z.validateSchema)!==null&&K!==void 0?K:!0,validateFormats:(te=Z.validateFormats)!==null&&te!==void 0?te:!0,unicodeRegExp:(ue=Z.unicodeRegExp)!==null&&ue!==void 0?ue:!0,int32range:(le=Z.int32range)!==null&&le!==void 0?le:!0,uriResolver:Ge}}class X{constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,...U(O)};const{es5:V,lines:R}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:x,es5:V,lines:R}),this.logger=$e(O.logger);const v=O.validateFormats;O.validateFormats=!1,this.RULES=(0,u.getRules)(),Y.call(this,M,O,"NOT SUPPORTED"),Y.call(this,S,O,"DEPRECATED","warn"),this._metaOpts=Ke.call(this),O.formats&&ge.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&we.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),Le.call(this),O.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:V,schemaId:R}=this.opts;let v=y;R==="id"&&(v={...y},v.id=v.$id,delete v.$id),V&&O&&this.addMetaSchema(v,v[R],!1)}defaultMeta(){const{meta:O,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[V]||O:void 0}validate(O,V){let R;if(typeof O=="string"){if(R=this.getSchema(O),!R)throw new Error(`no schema with key or ref "${O}"`)}else R=this.compile(O);const v=R(V);return"$async"in R||(this.errors=R.errors),v}compile(O,V){const R=this._addSchema(O,V);return R.validate||this._compileSchemaEnv(R)}compileAsync(O,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:R}=this.opts;return v.call(this,O,V);async function v(be,We){await w.call(this,be.$schema);const _t=this._addSchema(be,We);return _t.validate||k.call(this,_t)}async function w(be){be&&!this.getSchema(be)&&await v.call(this,{$ref:be},!0)}async function k(be){try{return this._compileSchemaEnv(be)}catch(We){if(!(We instanceof a.default))throw We;return ee.call(this,We),await ie.call(this,We.missingSchema),k.call(this,be)}}function ee({missingSchema:be,missingRef:We}){if(this.refs[be])throw new Error(`AnySchema ${be} is loaded but ${We} cannot be resolved`)}async function ie(be){const We=await Ee.call(this,be);this.refs[be]||await w.call(this,We.$schema),this.refs[be]||this.addSchema(We,be,V)}async function Ee(be){const We=this._loading[be];if(We)return We;try{return await(this._loading[be]=R(be))}finally{delete this._loading[be]}}}addSchema(O,V,R,v=this.opts.validateSchema){if(Array.isArray(O)){for(const k of O)this.addSchema(k,void 0,R,v);return this}let w;if(typeof O=="object"){const{schemaId:k}=this.opts;if(w=O[k],w!==void 0&&typeof w!="string")throw new Error(`schema ${k} must be string`)}return V=(0,d.normalizeId)(V||w),this._checkUnique(V),this.schemas[V]=this._addSchema(O,R,V,v,!0),this}addMetaSchema(O,V,R=this.opts.validateSchema){return this.addSchema(O,V,!0,R),this}validateSchema(O,V){if(typeof O=="boolean")return!0;let R;if(R=O.$schema,R!==void 0&&typeof R!="string")throw new Error("$schema must be a string");if(R=R||this.opts.defaultMeta||this.defaultMeta(),!R)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(R,O);if(!v&&V){const w="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(w);else throw new Error(w)}return v}getSchema(O){let V;for(;typeof(V=ae.call(this,O))=="string";)O=V;if(V===void 0){const{schemaId:R}=this.opts,v=new c.SchemaEnv({schema:{},schemaId:R});if(V=c.resolveSchema.call(this,v,O),!V)return;this.refs[O]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=ae.call(this,O);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{const V=O;this._cache.delete(V);let R=O[this.opts.schemaId];return R&&(R=(0,d.normalizeId)(R),delete this.schemas[R],delete this.refs[R]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(const V of O)this.addKeyword(V);return this}addKeyword(O,V){let R;if(typeof O=="string")R=O,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=R);else if(typeof O=="object"&&V===void 0){if(V=O,R=V.keyword,Array.isArray(R)&&!R.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Ue.call(this,R,V),!V)return(0,g.eachItem)(R,w=>wt.call(this,w)),this;ze.call(this,V);const v={...V,type:(0,m.getJSONTypes)(V.type),schemaType:(0,m.getJSONTypes)(V.schemaType)};return(0,g.eachItem)(R,v.type.length===0?w=>wt.call(this,w,v):w=>v.type.forEach(k=>wt.call(this,w,v,k))),this}getKeyword(O){const V=this.RULES.all[O];return typeof V=="object"?V.definition:!!V}removeKeyword(O){const{RULES:V}=this;delete V.keywords[O],delete V.all[O];for(const R of V.rules){const v=R.rules.findIndex(w=>w.keyword===O);v>=0&&R.rules.splice(v,1)}return this}addFormat(O,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[O]=V,this}errorsText(O=this.errors,{separator:V=", ",dataVar:R="data"}={}){return!O||O.length===0?"No errors":O.map(v=>`${R}${v.instancePath} ${v.message}`).reduce((v,w)=>v+V+w)}$dataMetaSchema(O,V){const R=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const v of V){const w=v.split("/").slice(1);let k=O;for(const ee of w)k=k[ee];for(const ee in R){const ie=R[ee];if(typeof ie!="object")continue;const{$data:Ee}=ie.definition,be=k[ee];Ee&&be&&(k[ee]=Et(be))}}return O}_removeAllSchemas(O,V){for(const R in O){const v=O[R];(!V||V.test(R))&&(typeof v=="string"?delete O[R]:v&&!v.meta&&(this._cache.delete(v.schema),delete O[R]))}}_addSchema(O,V,R,v=this.opts.validateSchema,w=this.opts.addUsedSchema){let k;const{schemaId:ee}=this.opts;if(typeof O=="object")k=O[ee];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let ie=this._cache.get(O);if(ie!==void 0)return ie;R=(0,d.normalizeId)(k||R);const Ee=d.getSchemaRefs.call(this,O,R);return ie=new c.SchemaEnv({schema:O,schemaId:ee,meta:V,baseId:R,localRefs:Ee}),this._cache.set(ie.schema,ie),w&&!R.startsWith("#")&&(R&&this._checkUnique(R),this.refs[R]=ie),v&&this.validateSchema(O,!0),ie}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):c.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){const V=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,O)}finally{this.opts=V}}}X.ValidationError=o.default,X.MissingRefError=a.default,t.default=X;function Y(Z,O,V,R="error"){for(const v in Z){const w=v;w in O&&this.logger[R](`${V}: option ${v}. ${Z[w]}`)}}function ae(Z){return Z=(0,d.normalizeId)(Z),this.schemas[Z]||this.refs[Z]}function Le(){const Z=this.opts.schemas;if(Z)if(Array.isArray(Z))this.addSchema(Z);else for(const O in Z)this.addSchema(Z[O],O)}function ge(){for(const Z in this.opts.formats){const O=this.opts.formats[Z];O&&this.addFormat(Z,O)}}function we(Z){if(Array.isArray(Z)){this.addVocabulary(Z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const O in Z){const V=Z[O];V.keyword||(V.keyword=O),this.addKeyword(V)}}function Ke(){const Z={...this.opts};for(const O of I)delete Z[O];return Z}const Ie={log(){},warn(){},error(){}};function $e(Z){if(Z===!1)return Ie;if(Z===void 0)return console;if(Z.log&&Z.warn&&Z.error)return Z;throw new Error("logger must implement log, warn and error methods")}const mt=/^[a-z_$][a-z0-9_$:-]*$/i;function Ue(Z,O){const{RULES:V}=this;if((0,g.eachItem)(Z,R=>{if(V.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!mt.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!O&&O.$data&&!("code"in O||"validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function wt(Z,O,V){var R;const v=O==null?void 0:O.post;if(V&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:w}=this;let k=v?w.post:w.rules.find(({type:ie})=>ie===V);if(k||(k={type:V,rules:[]},w.rules.push(k)),w.keywords[Z]=!0,!O)return;const ee={keyword:Z,definition:{...O,type:(0,m.getJSONTypes)(O.type),schemaType:(0,m.getJSONTypes)(O.schemaType)}};O.before?pe.call(this,k,ee,O.before):k.rules.push(ee),w.all[Z]=ee,(R=O.implements)===null||R===void 0||R.forEach(ie=>this.addKeyword(ie))}function pe(Z,O,V){const R=Z.rules.findIndex(v=>v.keyword===V);R>=0?Z.rules.splice(R,0,O):(Z.rules.push(O),this.logger.warn(`rule ${V} is not defined`))}function ze(Z){let{metaSchema:O}=Z;O!==void 0&&(Z.$data&&this.opts.$data&&(O=Et(O)),Z.validateSchema=this.compile(O,!0))}const re={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Et(Z){return{anyOf:[Z,re]}}})(Nh);var il={},rl={},sl={};Object.defineProperty(sl,"__esModule",{value:!0});const Mv={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};sl.default=Mv;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.callRef=Ci.getValidate=void 0;const kv=er,fc=Ae,Zt=Re,Bi=Ln,dc=Ut,gs=oe,Av={keyword:"$ref",schemaType:"string",code(t){const{gen:n,schema:r,it:o}=t,{baseId:a,schemaEnv:u,validateName:c,opts:f,self:d}=o,{root:m}=u;if((r==="#"||r==="#/")&&a===m.baseId)return y();const g=dc.resolveRef.call(d,m,a,r);if(g===void 0)throw new kv.default(o.opts.uriResolver,a,r);if(g instanceof dc.SchemaEnv)return C(g);return A(g);function y(){if(u===m)return xs(t,c,u,u.$async);const I=n.scopeValue("root",{ref:m});return xs(t,(0,Zt._)`${I}.validate`,m,m.$async)}function C(I){const x=_f(t,I);xs(t,x,I,I.$async)}function A(I){const x=n.scopeValue("schema",f.code.source===!0?{ref:I,code:(0,Zt.stringify)(I)}:{ref:I}),M=n.name("valid"),S=t.subschema({schema:I,dataTypes:[],schemaPath:Zt.nil,topSchemaRef:x,errSchemaPath:r},M);t.mergeEvaluated(S),t.ok(M)}}};function _f(t,n){const{gen:r}=t;return n.validate?r.scopeValue("validate",{ref:n.validate}):(0,Zt._)`${r.scopeValue("wrapper",{ref:n})}.validate`}Ci.getValidate=_f;function xs(t,n,r,o){const{gen:a,it:u}=t,{allErrors:c,schemaEnv:f,opts:d}=u,m=d.passContext?Bi.default.this:Zt.nil;o?g():y();function g(){if(!f.$async)throw new Error("async schema referenced by sync schema");const I=a.let("valid");a.try(()=>{a.code((0,Zt._)`await ${(0,fc.callValidateCode)(t,n,m)}`),A(n),c||a.assign(I,!0)},x=>{a.if((0,Zt._)`!(${x} instanceof ${u.ValidationError})`,()=>a.throw(x)),C(x),c||a.assign(I,!1)}),t.ok(I)}function y(){t.result((0,fc.callValidateCode)(t,n,m),()=>A(n),()=>C(n))}function C(I){const x=(0,Zt._)`${I}.errors`;a.assign(Bi.default.vErrors,(0,Zt._)`${Bi.default.vErrors} === null ? ${x} : ${Bi.default.vErrors}.concat(${x})`),a.assign(Bi.default.errors,(0,Zt._)`${Bi.default.vErrors}.length`)}function A(I){var x;if(!u.opts.unevaluated)return;const M=(x=r==null?void 0:r.validate)===null||x===void 0?void 0:x.evaluated;if(u.props!==!0)if(M&&!M.dynamicProps)M.props!==void 0&&(u.props=gs.mergeEvaluated.props(a,M.props,u.props));else{const S=a.var("props",(0,Zt._)`${I}.evaluated.props`);u.props=gs.mergeEvaluated.props(a,S,u.props,Zt.Name)}if(u.items!==!0)if(M&&!M.dynamicItems)M.items!==void 0&&(u.items=gs.mergeEvaluated.items(a,M.items,u.items));else{const S=a.var("items",(0,Zt._)`${I}.evaluated.items`);u.items=gs.mergeEvaluated.items(a,S,u.items,Zt.Name)}}}Ci.callRef=xs;Ci.default=Av;Object.defineProperty(rl,"__esModule",{value:!0});const Nv=sl,Rv=Ci,Dv=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Nv.default,Rv.default];rl.default=Dv;var ol={},al={};Object.defineProperty(al,"__esModule",{value:!0});const js=Re,Wn=js.operators,Bs={maximum:{okStr:"<=",ok:Wn.LTE,fail:Wn.GT},minimum:{okStr:">=",ok:Wn.GTE,fail:Wn.LT},exclusiveMaximum:{okStr:"<",ok:Wn.LT,fail:Wn.GTE},exclusiveMinimum:{okStr:">",ok:Wn.GT,fail:Wn.LTE}},zv={message:({keyword:t,schemaCode:n})=>(0,js.str)`must be ${Bs[t].okStr} ${n}`,params:({keyword:t,schemaCode:n})=>(0,js._)`{comparison: ${Bs[t].okStr}, limit: ${n}}`},jv={keyword:Object.keys(Bs),type:"number",schemaType:"number",$data:!0,error:zv,code(t){const{keyword:n,data:r,schemaCode:o}=t;t.fail$data((0,js._)`${r} ${Bs[n].fail} ${o} || isNaN(${r})`)}};al.default=jv;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});const xr=Re,Bv={message:({schemaCode:t})=>(0,xr.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,xr._)`{multipleOf: ${t}}`},Fv={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Bv,code(t){const{gen:n,data:r,schemaCode:o,it:a}=t,u=a.opts.multipleOfPrecision,c=n.let("res"),f=u?(0,xr._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${u}`:(0,xr._)`${c} !== parseInt(${c})`;t.fail$data((0,xr._)`(${o} === 0 || (${c} = ${r}/${o}, ${f}))`)}};ll.default=Fv;var ul={},cl={};Object.defineProperty(cl,"__esModule",{value:!0});function gf(t){const n=t.length;let r=0,o=0,a;for(;o=55296&&a<=56319&&o(0,yi._)`{limit: ${t}}`},Hv={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Uv,code(t){const{keyword:n,data:r,schemaCode:o,it:a}=t,u=n==="maxLength"?yi.operators.GT:yi.operators.LT,c=a.opts.unicode===!1?(0,yi._)`${r}.length`:(0,yi._)`${(0,Zv.useFunc)(t.gen,Vv.default)}(${r})`;t.fail$data((0,yi._)`${c} ${u} ${o}`)}};ul.default=Hv;var hl={};Object.defineProperty(hl,"__esModule",{value:!0});const qv=Ae,Fs=Re,Kv={message:({schemaCode:t})=>(0,Fs.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Fs._)`{pattern: ${t}}`},Wv={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Kv,code(t){const{data:n,$data:r,schema:o,schemaCode:a,it:u}=t,c=u.opts.unicodeRegExp?"u":"",f=r?(0,Fs._)`(new RegExp(${a}, ${c}))`:(0,qv.usePattern)(t,o);t.fail$data((0,Fs._)`!${f}.test(${n})`)}};hl.default=Wv;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});const Cr=Re,Gv={message({keyword:t,schemaCode:n}){const r=t==="maxProperties"?"more":"fewer";return(0,Cr.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:t})=>(0,Cr._)`{limit: ${t}}`},Jv={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Gv,code(t){const{keyword:n,data:r,schemaCode:o}=t,a=n==="maxProperties"?Cr.operators.GT:Cr.operators.LT;t.fail$data((0,Cr._)`Object.keys(${r}).length ${a} ${o}`)}};fl.default=Jv;var dl={};Object.defineProperty(dl,"__esModule",{value:!0});const _r=Ae,Lr=Re,Yv=oe,Xv={message:({params:{missingProperty:t}})=>(0,Lr.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Lr._)`{missingProperty: ${t}}`},Qv={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Xv,code(t){const{gen:n,schema:r,schemaCode:o,data:a,$data:u,it:c}=t,{opts:f}=c;if(!u&&r.length===0)return;const d=r.length>=f.loopRequired;if(c.allErrors?m():g(),f.strictRequired){const A=t.parentSchema.properties,{definedProperties:I}=t.it;for(const x of r)if((A==null?void 0:A[x])===void 0&&!I.has(x)){const M=c.schemaEnv.baseId+c.errSchemaPath,S=`required property "${x}" is not defined at "${M}" (strictRequired)`;(0,Yv.checkStrictMode)(c,S,c.opts.strictRequired)}}function m(){if(d||u)t.block$data(Lr.nil,y);else for(const A of r)(0,_r.checkReportMissingProp)(t,A)}function g(){const A=n.let("missing");if(d||u){const I=n.let("valid",!0);t.block$data(I,()=>C(A,I)),t.ok(I)}else n.if((0,_r.checkMissingProp)(t,r,A)),(0,_r.reportMissingProp)(t,A),n.else()}function y(){n.forOf("prop",o,A=>{t.setParams({missingProperty:A}),n.if((0,_r.noPropertyInData)(n,a,A,f.ownProperties),()=>t.error())})}function C(A,I){t.setParams({missingProperty:A}),n.forOf(A,o,()=>{n.assign(I,(0,_r.propertyInData)(n,a,A,f.ownProperties)),n.if((0,Lr.not)(I),()=>{t.error(),n.break()})},Lr.nil)}}};dl.default=Qv;var pl={};Object.defineProperty(pl,"__esModule",{value:!0});const Or=Re,ey={message({keyword:t,schemaCode:n}){const r=t==="maxItems"?"more":"fewer";return(0,Or.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:t})=>(0,Or._)`{limit: ${t}}`},ty={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ey,code(t){const{keyword:n,data:r,schemaCode:o}=t,a=n==="maxItems"?Or.operators.GT:Or.operators.LT;t.fail$data((0,Or._)`${r}.length ${a} ${o}`)}};pl.default=ty;var ml={},Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});const vf=Yh;vf.code='require("ajv/dist/runtime/equal").default';Zr.default=vf;Object.defineProperty(ml,"__esModule",{value:!0});const ta=gt,Ct=Re,ny=oe,iy=Zr,ry={message:({params:{i:t,j:n}})=>(0,Ct.str)`must NOT have duplicate items (items ## ${n} and ${t} are identical)`,params:({params:{i:t,j:n}})=>(0,Ct._)`{i: ${t}, j: ${n}}`},sy={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ry,code(t){const{gen:n,data:r,$data:o,schema:a,parentSchema:u,schemaCode:c,it:f}=t;if(!o&&!a)return;const d=n.let("valid"),m=u.items?(0,ta.getSchemaTypes)(u.items):[];t.block$data(d,g,(0,Ct._)`${c} === false`),t.ok(d);function g(){const I=n.let("i",(0,Ct._)`${r}.length`),x=n.let("j");t.setParams({i:I,j:x}),n.assign(d,!0),n.if((0,Ct._)`${I} > 1`,()=>(y()?C:A)(I,x))}function y(){return m.length>0&&!m.some(I=>I==="object"||I==="array")}function C(I,x){const M=n.name("item"),S=(0,ta.checkDataTypes)(m,M,f.opts.strictNumbers,ta.DataType.Wrong),D=n.const("indices",(0,Ct._)`{}`);n.for((0,Ct._)`;${I}--;`,()=>{n.let(M,(0,Ct._)`${r}[${I}]`),n.if(S,(0,Ct._)`continue`),m.length>1&&n.if((0,Ct._)`typeof ${M} == "string"`,(0,Ct._)`${M} += "_"`),n.if((0,Ct._)`typeof ${D}[${M}] == "number"`,()=>{n.assign(x,(0,Ct._)`${D}[${M}]`),t.error(),n.assign(d,!1).break()}).code((0,Ct._)`${D}[${M}] = ${I}`)})}function A(I,x){const M=(0,ny.useFunc)(n,iy.default),S=n.name("outer");n.label(S).for((0,Ct._)`;${I}--;`,()=>n.for((0,Ct._)`${x} = ${I}; ${x}--;`,()=>n.if((0,Ct._)`${M}(${r}[${I}], ${r}[${x}])`,()=>{t.error(),n.assign(d,!1).break(S)})))}}};ml.default=sy;var _l={};Object.defineProperty(_l,"__esModule",{value:!0});const $a=Re,oy=oe,ay=Zr,ly={message:"must be equal to constant",params:({schemaCode:t})=>(0,$a._)`{allowedValue: ${t}}`},uy={keyword:"const",$data:!0,error:ly,code(t){const{gen:n,data:r,$data:o,schemaCode:a,schema:u}=t;o||u&&typeof u=="object"?t.fail$data((0,$a._)`!${(0,oy.useFunc)(n,ay.default)}(${r}, ${a})`):t.fail((0,$a._)`${u} !== ${r}`)}};_l.default=uy;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});const vr=Re,cy=oe,hy=Zr,fy={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,vr._)`{allowedValues: ${t}}`},dy={keyword:"enum",schemaType:"array",$data:!0,error:fy,code(t){const{gen:n,data:r,$data:o,schema:a,schemaCode:u,it:c}=t;if(!o&&a.length===0)throw new Error("enum must have non-empty array");const f=a.length>=c.opts.loopEnum;let d;const m=()=>d??(d=(0,cy.useFunc)(n,hy.default));let g;if(f||o)g=n.let("valid"),t.block$data(g,y);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const A=n.const("vSchema",u);g=(0,vr.or)(...a.map((I,x)=>C(A,x)))}t.pass(g);function y(){n.assign(g,!1),n.forOf("v",u,A=>n.if((0,vr._)`${m()}(${r}, ${A})`,()=>n.assign(g,!0).break()))}function C(A,I){const x=a[I];return typeof x=="object"&&x!==null?(0,vr._)`${m()}(${r}, ${A}[${I}])`:(0,vr._)`${r} === ${x}`}}};gl.default=dy;Object.defineProperty(ol,"__esModule",{value:!0});const py=al,my=ll,_y=ul,gy=hl,vy=fl,yy=dl,wy=pl,by=ml,Py=_l,$y=gl,Sy=[py.default,my.default,_y.default,gy.default,vy.default,yy.default,wy.default,by.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Py.default,$y.default];ol.default=Sy;var vl={},tr={};Object.defineProperty(tr,"__esModule",{value:!0});tr.validateAdditionalItems=void 0;const wi=Re,Sa=oe,Ey={message:({params:{len:t}})=>(0,wi.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,wi._)`{limit: ${t}}`},Ty={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Ey,code(t){const{parentSchema:n,it:r}=t,{items:o}=n;if(!Array.isArray(o)){(0,Sa.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}yf(t,o)}};function yf(t,n){const{gen:r,schema:o,data:a,keyword:u,it:c}=t;c.items=!0;const f=r.const("len",(0,wi._)`${a}.length`);if(o===!1)t.setParams({len:n.length}),t.pass((0,wi._)`${f} <= ${n.length}`);else if(typeof o=="object"&&!(0,Sa.alwaysValidSchema)(c,o)){const m=r.var("valid",(0,wi._)`${f} <= ${n.length}`);r.if((0,wi.not)(m),()=>d(m)),t.ok(m)}function d(m){r.forRange("i",n.length,f,g=>{t.subschema({keyword:u,dataProp:g,dataPropType:Sa.Type.Num},m),c.allErrors||r.if((0,wi.not)(m),()=>r.break())})}}tr.validateAdditionalItems=yf;tr.default=Ty;var yl={},nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.validateTuple=void 0;const pc=Re,Cs=oe,xy=Ae,Cy={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:n,it:r}=t;if(Array.isArray(n))return wf(t,"additionalItems",n);r.items=!0,!(0,Cs.alwaysValidSchema)(r,n)&&t.ok((0,xy.validateArray)(t))}};function wf(t,n,r=t.schema){const{gen:o,parentSchema:a,data:u,keyword:c,it:f}=t;g(a),f.opts.unevaluated&&r.length&&f.items!==!0&&(f.items=Cs.mergeEvaluated.items(o,r.length,f.items));const d=o.name("valid"),m=o.const("len",(0,pc._)`${u}.length`);r.forEach((y,C)=>{(0,Cs.alwaysValidSchema)(f,y)||(o.if((0,pc._)`${m} > ${C}`,()=>t.subschema({keyword:c,schemaProp:C,dataProp:C},d)),t.ok(d))});function g(y){const{opts:C,errSchemaPath:A}=f,I=r.length,x=I===y.minItems&&(I===y.maxItems||y[n]===!1);if(C.strictTuples&&!x){const M=`"${c}" is ${I}-tuple, but minItems or maxItems/${n} are not specified or different at path "${A}"`;(0,Cs.checkStrictMode)(f,M,C.strictTuples)}}}nr.validateTuple=wf;nr.default=Cy;Object.defineProperty(yl,"__esModule",{value:!0});const Ly=nr,Oy={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Ly.validateTuple)(t,"items")};yl.default=Oy;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});const mc=Re,Iy=oe,My=Ae,ky=tr,Ay={message:({params:{len:t}})=>(0,mc.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,mc._)`{limit: ${t}}`},Ny={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Ay,code(t){const{schema:n,parentSchema:r,it:o}=t,{prefixItems:a}=r;o.items=!0,!(0,Iy.alwaysValidSchema)(o,n)&&(a?(0,ky.validateAdditionalItems)(t,a):t.ok((0,My.validateArray)(t)))}};wl.default=Ny;var bl={};Object.defineProperty(bl,"__esModule",{value:!0});const tn=Re,vs=oe,Ry={message:({params:{min:t,max:n}})=>n===void 0?(0,tn.str)`must contain at least ${t} valid item(s)`:(0,tn.str)`must contain at least ${t} and no more than ${n} valid item(s)`,params:({params:{min:t,max:n}})=>n===void 0?(0,tn._)`{minContains: ${t}}`:(0,tn._)`{minContains: ${t}, maxContains: ${n}}`},Dy={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Ry,code(t){const{gen:n,schema:r,parentSchema:o,data:a,it:u}=t;let c,f;const{minContains:d,maxContains:m}=o;u.opts.next?(c=d===void 0?1:d,f=m):c=1;const g=n.const("len",(0,tn._)`${a}.length`);if(t.setParams({min:c,max:f}),f===void 0&&c===0){(0,vs.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,vs.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,vs.alwaysValidSchema)(u,r)){let x=(0,tn._)`${g} >= ${c}`;f!==void 0&&(x=(0,tn._)`${x} && ${g} <= ${f}`),t.pass(x);return}u.items=!0;const y=n.name("valid");f===void 0&&c===1?A(y,()=>n.if(y,()=>n.break())):c===0?(n.let(y,!0),f!==void 0&&n.if((0,tn._)`${a}.length > 0`,C)):(n.let(y,!1),C()),t.result(y,()=>t.reset());function C(){const x=n.name("_valid"),M=n.let("count",0);A(x,()=>n.if(x,()=>I(M)))}function A(x,M){n.forRange("i",0,g,S=>{t.subschema({keyword:"contains",dataProp:S,dataPropType:vs.Type.Num,compositeRule:!0},x),M()})}function I(x){n.code((0,tn._)`${x}++`),f===void 0?n.if((0,tn._)`${x} >= ${c}`,()=>n.assign(y,!0).break()):(n.if((0,tn._)`${x} > ${f}`,()=>n.assign(y,!1).break()),c===1?n.assign(y,!0):n.if((0,tn._)`${x} >= ${c}`,()=>n.assign(y,!0)))}}};bl.default=Dy;var bf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=Re,r=oe,o=Ae;t.error={message:({params:{property:d,depsCount:m,deps:g}})=>{const y=m===1?"property":"properties";return(0,n.str)`must have ${y} ${g} when property ${d} is present`},params:({params:{property:d,depsCount:m,deps:g,missingProperty:y}})=>(0,n._)`{property: ${d}, - missingProperty: ${y}, - depsCount: ${m}, - deps: ${g}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[m,g]=u(d);c(d,m),f(d,g)}};function u({schema:d}){const m={},g={};for(const y in d){if(y==="__proto__")continue;const C=Array.isArray(d[y])?m:g;C[y]=d[y]}return[m,g]}function c(d,m=d.schema){const{gen:g,data:y,it:C}=d;if(Object.keys(m).length===0)return;const A=g.let("missing");for(const I in m){const x=m[I];if(x.length===0)continue;const M=(0,o.propertyInData)(g,y,I,C.opts.ownProperties);d.setParams({property:I,depsCount:x.length,deps:x.join(", ")}),C.allErrors?g.if(M,()=>{for(const S of x)(0,o.checkReportMissingProp)(d,S)}):(g.if((0,n._)`${M} && (${(0,o.checkMissingProp)(d,x,A)})`),(0,o.reportMissingProp)(d,A),g.else())}}t.validatePropertyDeps=c;function f(d,m=d.schema){const{gen:g,data:y,keyword:C,it:A}=d,I=g.name("valid");for(const x in m)(0,r.alwaysValidSchema)(A,m[x])||(g.if((0,o.propertyInData)(g,y,x,A.opts.ownProperties),()=>{const M=d.subschema({keyword:C,schemaProp:x},I);d.mergeValidEvaluated(M,I)},()=>g.var(I,!0)),d.ok(I))}t.validateSchemaDeps=f,t.default=a})(bf);var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0});const Pf=Re,zy=oe,jy={message:"property name must be valid",params:({params:t})=>(0,Pf._)`{propertyName: ${t.propertyName}}`},By={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:jy,code(t){const{gen:n,schema:r,data:o,it:a}=t;if((0,zy.alwaysValidSchema)(a,r))return;const u=n.name("valid");n.forIn("key",o,c=>{t.setParams({propertyName:c}),t.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},u),n.if((0,Pf.not)(u),()=>{t.error(!0),a.allErrors||n.break()})}),t.ok(u)}};Pl.default=By;var co={};Object.defineProperty(co,"__esModule",{value:!0});const ys=Ae,dn=Re,Fy=Ln,ws=oe,Zy={message:"must NOT have additional properties",params:({params:t})=>(0,dn._)`{additionalProperty: ${t.additionalProperty}}`},Vy={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Zy,code(t){const{gen:n,schema:r,parentSchema:o,data:a,errsCount:u,it:c}=t;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=c;if(c.props=!0,d.removeAdditional!=="all"&&(0,ws.alwaysValidSchema)(c,r))return;const m=(0,ys.allSchemaProperties)(o.properties),g=(0,ys.allSchemaProperties)(o.patternProperties);y(),t.ok((0,dn._)`${u} === ${Fy.default.errors}`);function y(){n.forIn("key",a,M=>{!m.length&&!g.length?I(M):n.if(C(M),()=>I(M))})}function C(M){let S;if(m.length>8){const D=(0,ws.schemaRefOrVal)(c,o.properties,"properties");S=(0,ys.isOwnProperty)(n,D,M)}else m.length?S=(0,dn.or)(...m.map(D=>(0,dn._)`${M} === ${D}`)):S=dn.nil;return g.length&&(S=(0,dn.or)(S,...g.map(D=>(0,dn._)`${(0,ys.usePattern)(t,D)}.test(${M})`))),(0,dn.not)(S)}function A(M){n.code((0,dn._)`delete ${a}[${M}]`)}function I(M){if(d.removeAdditional==="all"||d.removeAdditional&&r===!1){A(M);return}if(r===!1){t.setParams({additionalProperty:M}),t.error(),f||n.break();return}if(typeof r=="object"&&!(0,ws.alwaysValidSchema)(c,r)){const S=n.name("valid");d.removeAdditional==="failing"?(x(M,S,!1),n.if((0,dn.not)(S),()=>{t.reset(),A(M)})):(x(M,S),f||n.if((0,dn.not)(S),()=>n.break()))}}function x(M,S,D){const U={keyword:"additionalProperties",dataProp:M,dataPropType:ws.Type.Str};D===!1&&Object.assign(U,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(U,S)}}};co.default=Vy;var $l={};Object.defineProperty($l,"__esModule",{value:!0});const Uy=gn,_c=Ae,na=oe,gc=co,Hy={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:n,schema:r,parentSchema:o,data:a,it:u}=t;u.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&gc.default.code(new Uy.KeywordCxt(u,gc.default,"additionalProperties"));const c=(0,_c.allSchemaProperties)(r);for(const y of c)u.definedProperties.add(y);u.opts.unevaluated&&c.length&&u.props!==!0&&(u.props=na.mergeEvaluated.props(n,(0,na.toHash)(c),u.props));const f=c.filter(y=>!(0,na.alwaysValidSchema)(u,r[y]));if(f.length===0)return;const d=n.name("valid");for(const y of f)m(y)?g(y):(n.if((0,_c.propertyInData)(n,a,y,u.opts.ownProperties)),g(y),u.allErrors||n.else().var(d,!0),n.endIf()),t.it.definedProperties.add(y),t.ok(d);function m(y){return u.opts.useDefaults&&!u.compositeRule&&r[y].default!==void 0}function g(y){t.subschema({keyword:"properties",schemaProp:y,dataProp:y},d)}}};$l.default=Hy;var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});const vc=Ae,bs=Re,yc=oe,wc=oe,qy={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:n,schema:r,data:o,parentSchema:a,it:u}=t,{opts:c}=u,f=(0,vc.allSchemaProperties)(r),d=f.filter(x=>(0,yc.alwaysValidSchema)(u,r[x]));if(f.length===0||d.length===f.length&&(!u.opts.unevaluated||u.props===!0))return;const m=c.strictSchema&&!c.allowMatchingProperties&&a.properties,g=n.name("valid");u.props!==!0&&!(u.props instanceof bs.Name)&&(u.props=(0,wc.evaluatedPropsToName)(n,u.props));const{props:y}=u;C();function C(){for(const x of f)m&&A(x),u.allErrors?I(x):(n.var(g,!0),I(x),n.if(g))}function A(x){for(const M in m)new RegExp(x).test(M)&&(0,yc.checkStrictMode)(u,`property ${M} matches pattern ${x} (use allowMatchingProperties)`)}function I(x){n.forIn("key",o,M=>{n.if((0,bs._)`${(0,vc.usePattern)(t,x)}.test(${M})`,()=>{const S=d.includes(x);S||t.subschema({keyword:"patternProperties",schemaProp:x,dataProp:M,dataPropType:wc.Type.Str},g),u.opts.unevaluated&&y!==!0?n.assign((0,bs._)`${y}[${M}]`,!0):!S&&!u.allErrors&&n.if((0,bs.not)(g),()=>n.break())})})}}};Sl.default=qy;var El={};Object.defineProperty(El,"__esModule",{value:!0});const Ky=oe,Wy={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:n,schema:r,it:o}=t;if((0,Ky.alwaysValidSchema)(o,r)){t.fail();return}const a=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),t.failResult(a,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};El.default=Wy;var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});const Gy=Ae,Jy={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Gy.validateUnion,error:{message:"must match a schema in anyOf"}};Tl.default=Jy;var xl={};Object.defineProperty(xl,"__esModule",{value:!0});const Ls=Re,Yy=oe,Xy={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Ls._)`{passingSchemas: ${t.passing}}`},Qy={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Xy,code(t){const{gen:n,schema:r,parentSchema:o,it:a}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const u=r,c=n.let("valid",!1),f=n.let("passing",null),d=n.name("_valid");t.setParams({passing:f}),n.block(m),t.result(c,()=>t.reset(),()=>t.error(!0));function m(){u.forEach((g,y)=>{let C;(0,Yy.alwaysValidSchema)(a,g)?n.var(d,!0):C=t.subschema({keyword:"oneOf",schemaProp:y,compositeRule:!0},d),y>0&&n.if((0,Ls._)`${d} && ${c}`).assign(c,!1).assign(f,(0,Ls._)`[${f}, ${y}]`).else(),n.if(d,()=>{n.assign(c,!0),n.assign(f,y),C&&t.mergeEvaluated(C,Ls.Name)})})}}};xl.default=Qy;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});const e0=oe,t0={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:r,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=n.name("valid");r.forEach((u,c)=>{if((0,e0.alwaysValidSchema)(o,u))return;const f=t.subschema({keyword:"allOf",schemaProp:c},a);t.ok(a),t.mergeEvaluated(f)})}};Cl.default=t0;var Ll={};Object.defineProperty(Ll,"__esModule",{value:!0});const Zs=Re,$f=oe,n0={message:({params:t})=>(0,Zs.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Zs._)`{failingKeyword: ${t.ifClause}}`},i0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:n0,code(t){const{gen:n,parentSchema:r,it:o}=t;r.then===void 0&&r.else===void 0&&(0,$f.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=bc(o,"then"),u=bc(o,"else");if(!a&&!u)return;const c=n.let("valid",!0),f=n.name("_valid");if(d(),t.reset(),a&&u){const g=n.let("ifClause");t.setParams({ifClause:g}),n.if(f,m("then",g),m("else",g))}else a?n.if(f,m("then")):n.if((0,Zs.not)(f),m("else"));t.pass(c,()=>t.error(!0));function d(){const g=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);t.mergeEvaluated(g)}function m(g,y){return()=>{const C=t.subschema({keyword:g},f);n.assign(c,f),t.mergeValidEvaluated(C,c),y?n.assign(y,(0,Zs._)`${g}`):t.setParams({ifClause:g})}}}};function bc(t,n){const r=t.schema[n];return r!==void 0&&!(0,$f.alwaysValidSchema)(t,r)}Ll.default=i0;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});const r0=oe,s0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:r}){n.if===void 0&&(0,r0.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Ol.default=s0;Object.defineProperty(vl,"__esModule",{value:!0});const o0=tr,a0=yl,l0=nr,u0=wl,c0=bl,h0=bf,f0=Pl,d0=co,p0=$l,m0=Sl,_0=El,g0=Tl,v0=xl,y0=Cl,w0=Ll,b0=Ol;function P0(t=!1){const n=[_0.default,g0.default,v0.default,y0.default,w0.default,b0.default,f0.default,d0.default,h0.default,p0.default,m0.default];return t?n.push(a0.default,u0.default):n.push(o0.default,l0.default),n.push(c0.default),n}vl.default=P0;var Il={},Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});const ht=Re,$0={message:({schemaCode:t})=>(0,ht.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ht._)`{format: ${t}}`},S0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:$0,code(t,n){const{gen:r,data:o,$data:a,schema:u,schemaCode:c,it:f}=t,{opts:d,errSchemaPath:m,schemaEnv:g,self:y}=f;if(!d.validateFormats)return;a?C():A();function C(){const I=r.scopeValue("formats",{ref:y.formats,code:d.code.formats}),x=r.const("fDef",(0,ht._)`${I}[${c}]`),M=r.let("fType"),S=r.let("format");r.if((0,ht._)`typeof ${x} == "object" && !(${x} instanceof RegExp)`,()=>r.assign(M,(0,ht._)`${x}.type || "string"`).assign(S,(0,ht._)`${x}.validate`),()=>r.assign(M,(0,ht._)`"string"`).assign(S,x)),t.fail$data((0,ht.or)(D(),U()));function D(){return d.strictSchema===!1?ht.nil:(0,ht._)`${c} && !${S}`}function U(){const X=g.$async?(0,ht._)`(${x}.async ? await ${S}(${o}) : ${S}(${o}))`:(0,ht._)`${S}(${o})`,Y=(0,ht._)`(typeof ${S} == "function" ? ${X} : ${S}.test(${o}))`;return(0,ht._)`${S} && ${S} !== true && ${M} === ${n} && !${Y}`}}function A(){const I=y.formats[u];if(!I){D();return}if(I===!0)return;const[x,M,S]=U(I);x===n&&t.pass(X());function D(){if(d.strictSchema===!1){y.logger.warn(Y());return}throw new Error(Y());function Y(){return`unknown format "${u}" ignored in schema at path "${m}"`}}function U(Y){const ae=Y instanceof RegExp?(0,ht.regexpCode)(Y):d.code.formats?(0,ht._)`${d.code.formats}${(0,ht.getProperty)(u)}`:void 0,Le=r.scopeValue("formats",{key:u,ref:Y,code:ae});return typeof Y=="object"&&!(Y instanceof RegExp)?[Y.type||"string",Y.validate,(0,ht._)`${Le}.validate`]:["string",Y,Le]}function X(){if(typeof I=="object"&&!(I instanceof RegExp)&&I.async){if(!g.$async)throw new Error("async format in sync schema");return(0,ht._)`await ${S}(${o})`}return typeof M=="function"?(0,ht._)`${S}(${o})`:(0,ht._)`${S}.test(${o})`}}}};Ml.default=S0;Object.defineProperty(Il,"__esModule",{value:!0});const E0=Ml,T0=[E0.default];Il.default=T0;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.contentVocabulary=Xi.metadataVocabulary=void 0;Xi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Xi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(il,"__esModule",{value:!0});const x0=rl,C0=ol,L0=vl,O0=Il,Pc=Xi,I0=[x0.default,C0.default,(0,L0.default)(),O0.default,Pc.metadataVocabulary,Pc.contentVocabulary];il.default=I0;var kl={},ho={};Object.defineProperty(ho,"__esModule",{value:!0});ho.DiscrError=void 0;var $c;(function(t){t.Tag="tag",t.Mapping="mapping"})($c||(ho.DiscrError=$c={}));Object.defineProperty(kl,"__esModule",{value:!0});const Fi=Re,Ea=ho,Sc=Ut,M0=er,k0=oe,A0={message:({params:{discrError:t,tagName:n}})=>t===Ea.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:t,tag:n,tagName:r}})=>(0,Fi._)`{error: ${t}, tag: ${r}, tagValue: ${n}}`},N0={keyword:"discriminator",type:"object",schemaType:"object",error:A0,code(t){const{gen:n,data:r,schema:o,parentSchema:a,it:u}=t,{oneOf:c}=a;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=o.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!c)throw new Error("discriminator: requires oneOf keyword");const d=n.let("valid",!1),m=n.const("tag",(0,Fi._)`${r}${(0,Fi.getProperty)(f)}`);n.if((0,Fi._)`typeof ${m} == "string"`,()=>g(),()=>t.error(!1,{discrError:Ea.DiscrError.Tag,tag:m,tagName:f})),t.ok(d);function g(){const A=C();n.if(!1);for(const I in A)n.elseIf((0,Fi._)`${m} === ${I}`),n.assign(d,y(A[I]));n.else(),t.error(!1,{discrError:Ea.DiscrError.Mapping,tag:m,tagName:f}),n.endIf()}function y(A){const I=n.name("valid"),x=t.subschema({keyword:"oneOf",schemaProp:A},I);return t.mergeEvaluated(x,Fi.Name),I}function C(){var A;const I={},x=S(a);let M=!0;for(let X=0;Xthis.addVocabulary(I)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const I=this.opts.$data?this.$dataMetaSchema(u,c):u;this.addMetaSchema(I,f,!1),this.refs["http://json-schema.org/schema"]=f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}n.Ajv=d,t.exports=n=d,t.exports.Ajv=d,Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var m=gn;Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var g=Re;Object.defineProperty(n,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}});var y=Fr;Object.defineProperty(n,"ValidationError",{enumerable:!0,get:function(){return y.default}});var C=er;Object.defineProperty(n,"MissingRefError",{enumerable:!0,get:function(){return C.default}})})(ga,ga.exports);var V0=ga.exports;const U0=Ah(V0),fo=new U0({coerceTypes:!0}),H0={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0},q0=fo.compile(H0),K0={type:"object",properties:{Artist:{type:"string"},Description:{type:"string",nullable:!0},Photograph:{type:"object",properties:{Image:{type:"string"},Photographer:{type:"string"}},required:["Image","Photographer"]},Location:{type:"object",properties:{Coordinates:{type:"string",nullable:!0},"Located On":{type:"string"}},required:["Located On"]},Medium:{type:"string"},Title:{type:"string"}},required:["Artist","Title","Location"],additionalProperties:!0},W0=fo.compile(K0),G0={type:"object",properties:{Location:{type:"object",properties:{Address:{type:"string"},Coordinates:{type:"string",nullable:!0}},required:["Address"]}},required:["Location"],additionalProperties:!0},J0=fo.compile(G0),Y0={type:"object",properties:{type:{type:"string"},features:{type:"array",items:{type:"object",properties:{id:{type:"string"},type:{type:"string"},geometry:{type:"object",properties:{type:{type:"string"},coordinates:{type:"array",items:{type:"number"}}},required:["type","coordinates"]},properties:{type:"object",properties:{nodeId:{type:"string"}},required:["nodeId"]}},required:["id","type","properties"]}}},nullable:!0,required:["type","features"]};fo.compile(Y0);const X0=jt({__name:"ModalComponent",props:{visible:{type:Boolean}},emits:["update:visible"],setup(t,{emit:n}){const r=t,o=n,a=()=>{o("update:visible",!1)};return(u,c)=>r.visible?(Ne(),Xe("div",{key:0,class:"modal-overlay",onClick:a},[Be("div",{class:"modal-content",onClick:c[0]||(c[0]=Zm(()=>{},["stop"]))},[to(u.$slots,"default",{},void 0,!0)])])):Dn("",!0)}}),Q0=rn(X0,[["__scopeId","data-v-cd4c3848"]]),ew={class:"artwork-detail"},tw=["href"],nw=["src"],iw={key:0},rw=["src"],sw=jt({__name:"ArtworkDetail",props:{artwork:{}},setup(t){const n=t,r=Nt(!1),o=Ha(()=>n.artwork.Photograph?`https://arches-app-demo.opentechstrategies.com${n.artwork.Photograph.Image}`:"");return(a,u)=>{var c,f;return Ne(),Xe("div",ew,[Be("h1",null,"Title: "+Kt(n.artwork.Title),1),Be("h2",null,"Artist: "+Kt(n.artwork.Artist),1),Be("h4",null,"Description: "+Kt((c=n.artwork)==null?void 0:c.Description),1),Be("a",{href:o.value},[Be("img",{src:o.value,alt:"artwork image"},null,8,nw)],8,tw),Be("h4",null,"Photographer: "+Kt((f=n.artwork.Photograph)==null?void 0:f.Photographer),1),n.artwork.Location?(Ne(),Xe("div",iw,[Be("h4",null,"Address: "+Kt(n.artwork.Location["Located On"]),1)])):Dn("",!0),pt(Q0,{visible:r.value,"onUpdate:visible":u[1]||(u[1]=d=>r.value=d)},{default:wr(()=>[Be("img",{src:o.value,alt:"Expanded artwork image",class:"expanded-image",onClick:u[0]||(u[0]=d=>r.value=!1)},null,8,rw)]),_:1},8,["visible"])])}}}),ow=rn(sw,[["__scopeId","data-v-4ba6e5b1"]]),aw={class:"artist-detail"},lw=jt({__name:"ArtistDetail",props:{artist:{}},setup(t){const n=t;return(r,o)=>(Ne(),Xe("div",aw,[Be("h1",null,"Artist Name: "+Kt(n.artist.Name),1)]))}}),uw=rn(lw,[["__scopeId","data-v-183b1cfa"]]),cw=t=>(Xs("data-v-710b1a41"),t=t(),Qs(),t),hw={class:"resource-relation-list-container"},fw=cw(()=>Be("h4",null,"Related Resources:",-1)),dw={key:0,class:"resource-relation-list"},pw=jt({__name:"ResourceRelationList",props:{resourceRelations:{},graphTable:{}},setup(t){const n=oo(),r=t,o=a=>{n.$patch({resourceId:a})};return(a,u)=>(Ne(),Xe("div",hw,[fw,r.resourceRelations?(Ne(),Xe("div",dw,[(Ne(!0),Xe(Vt,null,aa(r.resourceRelations,c=>(Ne(),xn(Ih,{key:c.resourceinstanceid,"resource-name":c.displayname,"resource-id":c.resourceinstanceid,"resource-type":a.graphTable.get(c.graph_id),onSetResource:o},null,8,["resource-name","resource-id","resource-type"]))),128))])):Dn("",!0)]))}}),mw=rn(pw,[["__scopeId","data-v-710b1a41"]]),_w={class:"structure-detail"},gw=jt({__name:"StructureDetail",props:{structure:{}},setup(t){const n=t;return(r,o)=>(Ne(),Xe("div",_w,[Be("h1",null,"Structure Location: "+Kt(n.structure.Location.Address),1)]))}}),vw=rn(gw,[["__scopeId","data-v-3fa3774d"]]),yw=t=>(Xs("data-v-4f574e7f"),t=t(),Qs(),t),ww={id:"resource-panel"},bw={key:0},Pw={key:4},$w={key:1},Sw=yw(()=>Be("p",null,"Click on a resource on the map or search list to display details",-1)),Ew=[Sw],Tw=jt({__name:"ResourcePanel",props:{resource:{},resourceRelations:{},graphTable:{}},setup(t){const n=t,r=Nt(!1);return(o,a)=>{var u,c,f;return Ne(),Xe("div",ww,[n.resource!==void 0?(Ne(),Xe("div",bw,[Ei(W0)((u=n.resource)==null?void 0:u.resource)?(Ne(),xn(ow,{key:0,artwork:n.resource.resource},null,8,["artwork"])):Ei(q0)((c=n.resource)==null?void 0:c.resource)?(Ne(),xn(uw,{key:1,artist:n.resource.resource},null,8,["artist"])):Ei(J0)((f=n.resource)==null?void 0:f.resource)?(Ne(),xn(vw,{key:2,structure:n.resource.resource},null,8,["structure"])):Dn("",!0),o.resourceRelations?(Ne(),xn(mw,{key:3,"resource-relations":o.resourceRelations,"graph-table":n.graphTable},null,8,["resource-relations","graph-table"])):Dn("",!0),Be("button",{onClick:a[0]||(a[0]=d=>r.value=!r.value)},Kt(r.value?"Hide Arches Metadata":"Show Arches Metadata"),1),r.value?(Ne(),Xe("div",Pw,[Be("ul",null,[Be("li",null,"Graph Id: "+Kt(n.resource.graph_id),1),Be("li",null,"Resource Instance Id: "+Kt(n.resource.resourceinstanceid),1)])])):Dn("",!0)])):(Ne(),Xe("div",$w,Ew))])}}}),xw=rn(Tw,[["__scopeId","data-v-4f574e7f"]]),Cw=jt({__name:"ResourcePanelProvider",setup(t){const n=oo(),r=Nt(),o=Nt();async function a(){if(!n.resourceId)return;const c=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.resourceId}`),f=new URLSearchParams({format:"json"});c.search=f.toString();const m=await(await fetch(c.toString())).json();r.value=m}async function u(){if(!n.resourceId)return;const c=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.resourceId}`),f=await fetch(c.toString()).then(d=>d.json());o.value=f.related_resources.related_resources}return Ti(()=>n.resourceId,async c=>{c&&(a(),u())},{immediate:!0}),(c,f)=>to(c.$slots,"default",{resource:r.value,resourceRelations:o.value})}}),Lw={class:"home"},Ow={id:"search-list-container",class:"column"},Iw={id:"map-container",class:"column"},Mw={key:1,class:"map-placeholder"},kw={id:"resource-panel-container",class:"column"},Aw=jt({__name:"HomePage",props:{graphTable:{}},setup(t){const n=t;return(r,o)=>(Ne(),Xe("div",Lw,[Be("div",Ow,[pt(n_,{"graph-table":n.graphTable},{default:wr(({searchResults:a,fetchNextPage:u,fetchPreviousPage:c,pageValues:f,searchQuery:d})=>[a?(Ne(),xn(T_,{key:0,"search-results":a,"page-values":f,"graph-table":n.graphTable,"search-query":d,onNextPage:u,onPreviousPage:c},null,8,["search-results","page-values","graph-table","search-query","onNextPage","onPreviousPage"])):Dn("",!0)]),_:1},8,["graph-table"])]),Be("div",Iw,[pt(x_,null,{default:wr(({artworks:a})=>[a?(Ne(),xn(I_,{key:0,artworks:a},null,8,["artworks"])):(Ne(),Xe("div",Mw,"Loading Map..."))]),_:1})]),Be("div",kw,[pt(Cw,null,{default:wr(({resource:a,resourceRelations:u})=>[pt(xw,{"graph-table":n.graphTable,resource:a,"resource-relations":u},null,8,["graph-table","resource","resource-relations"])]),_:1})])]))}}),Nw=rn(Aw,[["__scopeId","data-v-1b9cf38d"]]),Rw=jt({__name:"App",setup(t){const n=Nt(new Map);async function r(){const o=new URL("https://arches-app-demo.opentechstrategies.com/archesdataviewer/graphs"),a=await fetch(o.toString()).then(c=>c.json()),u=new Map;a.forEach(c=>{c.name!=="Arches System Settings"&&u.set(c.graphid,c.name)}),n.value=u}return r(),(o,a)=>(Ne(),Xe("main",null,[pt(Nw,{"graph-table":n.value},null,8,["graph-table"])]))}}),Dw=rn(Rw,[["__scopeId","data-v-ac0ede86"]]),zw=Gm(),Sf=Hm(Dw);Sf.use(zw);Sf.mount("#app"); diff --git a/archesdataviewer/static/vite_build/assets/index-DyhztGso.css b/archesdataviewer/static/vite_build/assets/index-DyhztGso.css deleted file mode 100644 index 46c37ba..0000000 --- a/archesdataviewer/static/vite_build/assets/index-DyhztGso.css +++ /dev/null @@ -1 +0,0 @@ -body{max-height:80vh;color:var(--color-black);background:var(--color-light-green);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:16px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root{--color-light-green: #c9e7d7;--color-dark-green: #41935b;--color-grey: #e2e2e2;--color-black: #363636;--color-white: #ffffff}body{background-color:var(--color-light-green);color:var(--color-black)}#app{margin:0 auto;padding:2rem;font-weight:400}@media (hover: hover){a:hover{background-color:var(--color-dark-green)}}button{background-color:var(--color-dark-green);color:var(--color-white);border:none;border-radius:4px;padding:10px 20px;cursor:pointer;transition:background-color .3s ease,transform .3s ease}button:hover{background-color:var(--color-light-green);transform:translateY(-2px)}button:disabled{background-color:var(--color-grey);cursor:not-allowed}h1,h2,h3,h4,h5,h6{font-weight:700}h1{font-size:2rem}h2{font-size:1.75rem}h3{font-size:1.5rem}h4{font-size:1.25rem}h5{font-size:1rem}h6{font-size:.875rem}.resource-list-item[data-v-cf046eae]{position:relative;display:flex;flex-direction:row;align-items:center;padding:15px 15px 50px;margin:10px;background-color:var(--color-white);border:1px solid var(--color-grey);border-radius:8px;transition:background-color .3s ease}.header[data-v-cf046eae]{display:flex;flex:1;align-items:center;justify-content:space-between;margin-right:10px;font-weight:700}.title[data-v-cf046eae]{font-size:1.2rem;margin-right:10px;flex:1;text-align:left}.details-button[data-v-cf046eae]{position:absolute;bottom:15px;left:15px;padding:10px 20px;background-color:var(--color-dark-green);color:var(--color-white);border:none;border-radius:4px;cursor:pointer;transition:background-color .3s ease,transform .3s ease}.details-button[data-v-cf046eae]:hover{background-color:var(--color-light-green)}.resource-type[data-v-cf046eae]{position:absolute;top:10px;right:10px;font-size:1rem;font-weight:lighter}.thumbnail[data-v-cf046eae]{width:150px;height:150px;object-fit:cover;margin-right:20%}@media (max-width: 768px){.resource-list-item[data-v-cf046eae]{flex-direction:column;align-items:flex-start}.header[data-v-cf046eae]{flex-direction:column;align-items:flex-start;margin-right:0;margin-bottom:10px}.title[data-v-cf046eae]{font-size:1rem;margin-right:0}.details-button[data-v-cf046eae]{padding:8px 16px;margin-bottom:10px}.thumbnail[data-v-cf046eae]{width:100%;height:auto;margin-left:0}.resource-type[data-v-cf046eae]{position:static;margin-top:10px}}.icon[data-v-0fa3dd46]{width:24px}.search-list-container[data-v-05d37195]{display:flex;flex-direction:column;height:100%}.search-bar[data-v-05d37195]{display:flex;justify-content:center;align-items:center;gap:10px;padding:20px;background-color:var(--color-light-grey);border-radius:8px;margin-bottom:20px}.search-input[data-v-05d37195]{padding:10px;font-size:16px;border:1px solid var(--color-grey);border-radius:4px;width:300px}.search-select[data-v-05d37195]{padding:10px;font-size:16px;border:1px solid var(--color-grey);border-radius:4px;width:200px}.search-list[data-v-05d37195]{flex-grow:1;overflow-y:auto}.button-container[data-v-05d37195]{display:flex;justify-content:space-between;background-color:var(--color-white);padding:10px 0;position:sticky;bottom:0;z-index:10}.button-container button[data-v-05d37195]{background-color:var(--color-dark-green);color:var(--color-white);border:none;border-radius:4px;padding:10px 20px;cursor:pointer;transition:background-color .3s ease,transform .3s ease}.button-container button[data-v-05d37195]:hover{background-color:var(--color-light-green);transform:translateY(-2px)}.button-container button[data-v-05d37195]:disabled{background-color:var(--color-grey);cursor:not-allowed}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}#map[data-v-d228b6be]{height:100%;width:100%;border-radius:8px;box-shadow:0 4px 8px #0000001a}@media (max-width: 768px){#map[data-v-d228b6be]{height:300px}}.modal-overlay[data-v-cd4c3848]{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content[data-v-cd4c3848]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.artwork-detail[data-v-4ba6e5b1]{padding:20px;margin:20px;background-color:var(--color-white);border-radius:8px;box-shadow:0 4px 8px #0000001a}img[data-v-4ba6e5b1]{width:100%;height:auto;border-radius:8px;margin-top:10px;object-fit:contain;cursor:pointer}.expanded-image[data-v-4ba6e5b1]{width:100%;height:100%;object-fit:contain;cursor:pointer}.artist-detail[data-v-183b1cfa]{padding:20px;margin:20px;background-color:#f9f9f9;border-radius:8px}@media (max-width: 768px){.artist-detail[data-v-183b1cfa]{padding:15px;margin:10px}}.resource-relation-list-container[data-v-710b1a41]{padding:20px;margin:20px;background-color:#f9f9f9;border-radius:8px}@media (max-width: 768px){.resource-relation-list-container[data-v-710b1a41]{padding:15px;margin:10px}}.structure-detail[data-v-3fa3774d]{padding:20px;margin:20px;background-color:#f9f9f9;border-radius:8px}@media (max-width: 768px){.structure-detail[data-v-3fa3774d]{padding:15px;margin:10px}}#resource-panel[data-v-4f574e7f]{padding:20px;margin:20px;background-color:var(--color-white);border-radius:8px;box-shadow:0 4px 8px #0000001a}button[data-v-4f574e7f]{margin-top:10px}@media (max-width: 768px){#resource-panel[data-v-4f574e7f]{padding:15px;margin:10px}}.home[data-v-1b9cf38d]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;height:80vh}.column[data-v-1b9cf38d]{display:flex;flex-direction:column;overflow-y:auto;background-color:var(--color-white);border-radius:8px;box-shadow:0 4px 8px #0000001a}.map-placeholder[data-v-1b9cf38d]{margin-top:30vh;text-align:center;font-size:larger}@media (max-width: 1200px){.home[data-v-1b9cf38d]{grid-template-columns:1fr;grid-template-rows:auto auto auto}#map-container[data-v-1b9cf38d]{order:1}#search-list-container[data-v-1b9cf38d]{order:2}#resource-panel-container[data-v-1b9cf38d]{order:3}}main[data-v-ac0ede86]{background-color:var(--color-background);color:var(--color-text);font-family:Inter,sans-serif;padding:20px} diff --git a/archesdataviewer/static/vite_build/index.html b/archesdataviewer/static/vite_build/index.html index 991243f..8d53585 100644 --- a/archesdataviewer/static/vite_build/index.html +++ b/archesdataviewer/static/vite_build/index.html @@ -4,8 +4,8 @@ Arches Data Viewer - - + +
diff --git a/front-end/src/App.vue b/front-end/src/App.vue index 93cda58..2ac4211 100644 --- a/front-end/src/App.vue +++ b/front-end/src/App.vue @@ -55,7 +55,6 @@ prefetchResources(); main { background-color: var(--color-background); color: var(--color-text); - font-family: 'Inter'; padding: 20px; } diff --git a/front-end/src/components/MoreArtworksByArtist.vue b/front-end/src/components/MoreArtworksByArtist.vue index 4e3204a..161ca5f 100644 --- a/front-end/src/components/MoreArtworksByArtist.vue +++ b/front-end/src/components/MoreArtworksByArtist.vue @@ -67,7 +67,6 @@ const setActiveResource = (newResourceId: string) => {