1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CZ-0XUlz.js","./DNMOoLPe.js","./BDdVT1Lp.js","./mu3xnyXM.js","./CwnanWyn.js","./COSZxPWK.js","./DUDkZLZH.js","./CfGtKDGo.js","./D73PCarl.js","./V8U4eSPV.js","./Dln7qXO4.js","./yIMfKWjW.js","./jzClrJQN.js","./default.Bf8xaLHZ.css","./Bs482S5m.js","./ohP78L7z.js","./81G4Sj40.js","./D-PwTACt.js","./CbC7B6Pq.js","./Nbq5UwG2.js"])))=>i.map(i=>d[i]); 2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function DE(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const zn={},lh=[],Jl=()=>{},rH=()=>!1,tv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ex=e=>e.startsWith("onUpdate:"),pi=Object.assign,IE=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hhe=Object.prototype.hasOwnProperty,lr=(e,t)=>hhe.call(e,t),It=Array.isArray,Rd=e=>t1(e)==="[object Map]",wc=e=>t1(e)==="[object Set]",pL=e=>t1(e)==="[object Date]",phe=e=>t1(e)==="[object RegExp]",Gt=e=>typeof e=="function",_r=e=>typeof e=="string",Yo=e=>typeof e=="symbol",rr=e=>e!==null&&typeof e=="object",$E=e=>(rr(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),iH=Object.prototype.toString,t1=e=>iH.call(e),mhe=e=>t1(e).slice(8,-1),LE=e=>t1(e)==="[object Object]",Mx=e=>_r(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Th=DE(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ax=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ghe=/-\w/g,ji=Ax(e=>e.replace(ghe,t=>t.slice(1).toUpperCase())),yhe=/\B([A-Z])/g,$c=Ax(e=>e.replace(yhe,"-$1").toLowerCase()),Px=Ax(e=>e.charAt(0).toUpperCase()+e.slice(1)),vy=Ax(e=>e?`on${Px(e)}`:""),ea=(e,t)=>!Object.is(e,t),Y0=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},aH=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Dx=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oH=e=>{const t=_r(e)?Number(e):NaN;return isNaN(t)?e:t};let mL;const Ix=()=>mL||(mL=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Li(e){if(It(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=_r(r)?xhe(r):Li(r);if(i)for(const a in i)t[a]=i[a]}return t}else if(_r(e)||rr(e))return e}const vhe=/;(?![^(]*\))/g,_he=/:([^]+)/,bhe=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function xhe(e){const t={};return e.replace(bhe,n=>n.startsWith("/*")?"":n).split(vhe).forEach(n=>{if(n){const r=n.split(_he);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function L(e){let t="";if(_r(e))t=e;else if(It(e))for(let n=0;n<e.length;n++){const r=L(e[n]);r&&(t+=r+" ")}else if(rr(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function un(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_r(t)&&(e.class=L(t)),n&&(e.style=Li(n)),e}const whe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",She=DE(whe);function sH(e){return!!e||e===""}function Che(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=pl(e[i],t[i],n);return r}function gL(e,t,n){if(e.size!==t.size)return!1;const r=Array.from(t),i=new Uint8Array(r.length);for(const a of e){let o=-1;for(let s=0;s<r.length;s++)if(!i[s]&&pl(a,r[s],n)){o=s;break}if(o<0)return!1;i[o]=1}return!0}function The(e,t,n){let r=Rd(e),i=Rd(t);if(r||i||(r=wc(e),i=wc(t),r||i))return r&&i?gL(e,t,n):!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const s in e){const l=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(l&&!u||!l&&u||!pl(e[s],t[s],n))return!1}return String(e)===String(t)}function yL(e,t,n,r){n||(n=[new Map,new Map]);const[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);const o=r(e,t,n);return i.delete(e),a.delete(t),o}function pl(e,t,n){if(e===t)return!0;let r=pL(e),i=pL(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=Yo(e),i=Yo(t),r||i?e===t:(r=It(e),i=It(t),r||i?r&&i?yL(e,t,n,Che):!1:(r=rr(e),i=rr(t),r||i?!r||!i?!1:yL(e,t,n,The):String(e)===String(t))))}function RE(e,t){return e.findIndex(n=>pl(n,t))}const lH=e=>!!(e&&e.__v_isRef===!0),de=e=>_r(e)?e:e==null?"":It(e)||rr(e)&&(e.toString===iH||!Gt(e.toString))?lH(e)?de(e.value):JSON.stringify(e,uH,2):String(e),uH=(e,t)=>lH(t)?uH(e,t.value):Rd(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[K8(r,a)+" =>"]=i,n),{})}:wc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>K8(n))}:Yo(t)?K8(t):rr(t)&&!It(t)&&!LE(t)?String(t):t,K8=(e,t="")=>{var n;return Yo(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ei;class cH{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ei&&(Ei.active?(this.parent=Ei,this.index=(Ei.scopes||(Ei.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const i=this.scopes.slice();for(t=0,n=i.length;t<n;t++)i[t].resume()}const r=this.effects.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}}run(t){if(this._active){const n=Ei;try{return Ei=this,t()}finally{Ei=n}}}on(){++this._on===1&&(this.prevScope=Ei,Ei=this)}off(){if(this._on>0&&--this._on===0){if(Ei===this)Ei=this.prevScope;else{let t=Ei;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const i=this.scopes.slice();for(n=0,r=i.length;n<r;n++)i[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function lp(e){return new cH(e)}function qa(){return Ei}function vo(e,t=!1){Ei&&Ei.cleanups.push(e)}let xr;const Y8=new WeakSet;class dH{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 7,512 bytes, line 2
2=void 0,Ei&&(Ei.active?Ei.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Y8.has(this)&&(Y8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hH(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,vL(this),pH(this);const t=xr,n=al;xr=this,al=!0;try{return this.fn()}finally{mH(this),xr=t,al=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)FE(t);this.deps=this.depsTail=void 0,vL(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Y8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){TS(this)&&this.run()}get dirty(){return TS(this)}}let fH=0,_y,by;function hH(e,t=!1){if(e.flags|=8,t){e.next=by,by=e;return}e.next=_y,_y=e}function OE(){fH++}function BE(){if(--fH>0)return;if(by){let t=by;for(by=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_y;){let t=_y;for(_y=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function pH(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mH(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),FE(r),khe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function TS(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gH(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gH(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qy)||(e.globalVersion=Qy,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!TS(e))))return;e.flags|=2;const t=e.dep,n=xr,r=al;xr=e,al=!0;try{pH(e);const i=e.fn(e._value);(t.version===0||ea(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{xr=n,al=r,mH(e),e.flags&=-3}}function FE(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)FE(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function khe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let al=!0;const yH=[];function Sc(){yH.push(al),al=!1}function Cc(){const e=yH.pop();al=e===void 0?!0:e}function vL(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xr;xr=void 0;try{t()}finally{xr=n}}}let Qy=0,Ehe=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class $x{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!xr||!al||xr===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xr)n=this.activeLink=new Ehe(xr,this),xr.deps?(n.prevDep=xr.depsTail,xr.depsTail.nextDep=n,xr.depsTail=n):xr.deps=xr.depsTail=n,vH(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=xr.depsTail,n.nextDep=void 0,xr.depsTail.nextDep=n,xr.depsTail=n,xr.deps===n&&(xr.deps=r)}return n}trigger(t){this.version++,Qy++,this.notify(t)}notify(t){OE();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{BE()}}}function vH(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)vH(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const s4=new WeakMap,kh=Symbol(""),kS=Symbol(""),e2=Symbol("");function ba(e,t,n){if(al&&xr){let r=s4.get(e);r||s4.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new $x),i.map=r,i.key=n),i.track()}}function Zu(e,t,n,r,i,a){const o=s4.get(e);if(!o){Qy++;return}const s=l=>{l&&l.trigger()};if(OE(),t==="clear")o.forEach(s);else{const l=It(e),u=l&&Mx(n);if(l&&n==="length"){const c=Number(r);o.forEach((d,f)=>{(f==="length"||f===e2||!Yo(f)&&f>=c)&&s(d)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),u&&s(o.get(e2)),t){case"add":l?u&&s(o.get("length")):(s(o.get(kh)),Rd(e)&&s(o.get(kS)));break;case"delete":l||(s(o.get(kh)),Rd(e)&&s(o.get(kS)));break;case"set":Rd(e)&&s(o.get(kh));break}}BE()}function Mhe(e,t){const n=s4.get(e);return n&&n.get(t)}function d0(e){const t=_t(e);return t===e||(ba(t,"iterate",e2),qo(e))?t:ml(e)?ol(e)?t.map(n=>Hd(Fs(n))):t.map(Hd):t.map(Fs)}function Lx(e){return ba(e=_t(e),"iterate",e2),e}function Vl(e,t){return ml(e)?Hd(ol(e)?Fs(t):t):Fs(t)}const Ahe={__proto__:null,[Symbol.iterator](){return X8(this,Symbol.iterator,e=>Vl(this,e))},concat(...e){return d0(this).concat(...e.map(t=>It(t)?d0(t):t))},entries(){return X8(this,"entries",e=>(e[1]=Vl(this,e[1]),e))},every(e,t){return Au(this,"every",e,t,void 0,arguments)},filter(e,t){return Au(this,"filter",e,t,n=>n.map(r=>Vl(this,r)),arguments)},find(e,t){return Au(this,"find",e,t,n=>Vl(this,n),arguments)},findIndex(e,t){return Au(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Au(this,"findLast",e,t,n=>Vl(this,n),arguments)},findLastIndex(e,t){return Au(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Au(this,"forEach",e,t,void 0,arguments)},includes(...e){return J8(this,"includes",e)},indexOf(...e){return J8(this,"indexOf",e)},join(e){return d0(this).join(e)},lastIndexOf(...e){return J8(this,"lastIndexOf",e)},map(e,t){return Au(this,"map",e,t,void 0,arguments)},pop(){return wg(this,"pop")},push(...e){return wg(this,"push",e)},reduce(e,...t){return _L(this,"reduce",e,t)},reduceRight(e,...t){return _L(this,"reduceRight",e,t)},shift(){return wg(this,"shift")},some(e,t){return Au(this,"some",e,t,void 0,arguments)},splice(...e){return wg(this,"splice",e)},toReversed(){return d0(this).toReversed()},toSorted(e){return d0(this).toSorted(e)},toSpliced(...e){return d0(this).toSpliced(...e)},unshift(...e){return wg(this,"unshift",e)},values(){return X8(this,"values",e=>Vl(this,e))}};function X8(e,t,n){const r=Lx(e),i=r[t]();return r!==e&&!qo(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const Phe=Array.prototype;function Au(e,t,n,r,i,a){const o=Lx(e),s=o!==e&&!qo(e),l=o[t];if(l!==Phe[t]){const d=l.apply(e,a);return s?Fs(d):d}let u=n;o!==e&&(s?u=function(d,f){return n.call(this,Vl(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(o,u,r);return s&&i?i(c):c}function _L(e,t,n,r){const i=Lx(e),a=i!==e&&!qo(e);let o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(u,c,d){return s&&(s=!1,u=Vl(e,u)),n.call(this,u,Vl(e,c),d,e)}):n.length>3&&(o=function(u,c,d){return n.call(this,u,c,d,e)}));const l=i[t](o,...r);return s?Vl(e,l):l}function J8(e,t,n){const r=_t(e);ba(r,"iterate",e2);const i=r[t](...n);return(i===-1||i===!1)&&Bx(n[0])?(n[0]=_t(n[0]),r[t](...n)):i}function wg(e,t,n=[]){Sc(),OE();const r=_t(e)[t].apply(e,n);return BE(),Cc(),r}const Dhe=DE("__proto__,__v_isRef,__isVue"),_H=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Yo));function Ihe(e){Yo(e)||(e=String(e));const t=_t(this);return ba(t,"has",e),t.hasOwnProperty(e)}class bH{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;
vendor: 6,028 bytes, line 2
2if(n==="__v_raw")return r===(i?a?kH:TH:a?CH:SH).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=It(t);if(!i){let l;if(o&&(l=Ahe[n]))return l;if(n==="hasOwnProperty")return Ihe}const s=Reflect.get(t,n,$t(t)?t:r);if((Yo(n)?_H.has(n):Dhe(n))||(i||ba(t,"get",n),a))return s;if($t(s)){const l=o&&Mx(n)?s:s.value;return i&&rr(l)?jh(l):l}return rr(s)?i?jh(s):mi(s):s}}class xH extends bH{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];const o=It(t)&&Mx(n);if(!this._isShallow){const u=ml(a);if(!qo(r)&&!ml(r)&&(a=_t(a),r=_t(r)),!o&&$t(a)&&!$t(r))return u||(a.value=r),!0}const s=o?Number(n)<t.length:lr(t,n),l=Reflect.set(t,n,r,$t(t)?t:i);return t===_t(i)&&l&&(s?ea(r,a)&&Zu(t,"set",n,r):Zu(t,"add",n,r)),l}deleteProperty(t,n){const r=lr(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Zu(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Yo(n)||!_H.has(n))&&ba(t,"has",n),r}ownKeys(t){return ba(t,"iterate",It(t)?"length":kh),Reflect.ownKeys(t)}}class wH extends bH{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $he=new xH,Lhe=new wH,Rhe=new xH(!0),Ohe=new wH(!0),ES=e=>e,Z_=e=>Reflect.getPrototypeOf(e);function Bhe(e,t,n){return function(...r){const i=this.__v_raw,a=_t(i),o=Rd(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?ES:t?Hd:Fs;return!t&&ba(a,"iterate",l?kS:kh),pi(Object.create(u),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}}})}}function K_(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fhe(e,t){const n={get(i){const a=this.__v_raw,o=_t(a),s=_t(i);e||(ea(i,s)&&ba(o,"get",i),ba(o,"get",s));const{has:l}=Z_(o),u=t?ES:e?Hd:Fs;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&ba(_t(i),"iterate",kh),i.size},has(i){const a=this.__v_raw,o=_t(a),s=_t(i);return e||(ea(i,s)&&ba(o,"has",i),ba(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=_t(s),u=t?ES:e?Hd:Fs;return!e&&ba(l,"iterate",kh),s.forEach((c,d)=>i.call(a,u(c),u(d),o))}};return pi(n,e?{add:K_("add"),set:K_("set"),delete:K_("delete"),clear:K_("clear")}:{add(i){const a=_t(this),o=Z_(a),s=_t(i),l=!t&&!qo(i)&&!ml(i)?s:i;return o.has.call(a,l)||ea(i,l)&&o.has.call(a,i)||ea(s,l)&&o.has.call(a,s)||(a.add(l),Zu(a,"add",l,l)),this},set(i,a){!t&&!qo(a)&&!ml(a)&&(a=_t(a));const o=_t(this),{has:s,get:l}=Z_(o);let u=s.call(o,i);u||(i=_t(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?ea(a,c)&&Zu(o,"set",i,a):Zu(o,"add",i,a),this},delete(i){const a=_t(this),{has:o,get:s}=Z_(a);let l=o.call(a,i);l||(i=_t(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&Zu(a,"delete",i,void 0),u},clear(){const i=_t(this),a=i.size!==0,o=i.clear();return a&&Zu(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Bhe(i,e,t)}),n}function Rx(e,t){const n=Fhe(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(lr(n,i)&&i in r?n:r,i,a)}const zhe={get:Rx(!1,!1)},Nhe={get:Rx(!1,!0)},Vhe={get:Rx(!0,!1)},jhe={get:Rx(!0,!0)},SH=new WeakMap,CH=new WeakMap,TH=new WeakMap,kH=new WeakMap;function Uhe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mi(e){return ml(e)?e:Ox(e,!1,$he,zhe,SH)}function Wl(e){return Ox(e,!1,Rhe,Nhe,CH)}function jh(e){return Ox(e,!0,Lhe,Vhe,TH)}function jl(e){return Ox(e,!0,Ohe,jhe,kH)}function Ox(e,t,n,r,i){if(!rr(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const a=i.get(e);if(a)return a;const o=Uhe(mhe(e));if(o===0)return e;const s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function ol(e){return ml(e)?ol(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function qo(e){return!!(e&&e.__v_isShallow)}function Bx(e){return e?!!e.__v_raw:!1}function _t(e){const t=e&&e.__v_raw;return t?_t(t):e}function up(e){return!lr(e,"__v_skip")&&Object.isExtensible(e)&&aH(e,"__v_skip",!0),e}const Fs=e=>rr(e)?mi(e):e,Hd=e=>rr(e)?jh(e):e;function $t(e){return e?e.__v_isRef===!0:!1}function G(e){return EH(e,!1)}function Bt(e){return EH(e,!0)}function EH(e,t){return $t(e)?e:new Hhe(e,t)}class Hhe{constructor(t,n){this.dep=new $x,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:_t(t),this._value=n?t:Fs(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||qo(t)||ml(t);t=r?t:_t(t),ea(t,n)&&(this._rawValue=t,this._value=r?t:Fs(t),this.dep.trigger())}}function m(e){return $t(e)?e.value:e}function Le(e){return Gt(e)?e():m(e)}const qhe={get:(e,t,n)=>t==="__v_raw"?e:m(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function MH(e){return ol(e)?e:new Proxy(e,qhe)}class Whe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new $x,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function n1(e){return new Whe(e)}function An(e){const t=It(e)?new Array(e.length):{};for(const n in e)t[n]=AH(e,n);return t}class Ghe{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Yo(n)?n:String(n),this._raw=_t(t);let i=!0,a=t;if(!It(t)||Yo(this._key)||!Mx(this._key))do i=!Bx(a)||qo(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=m(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&$t(this._raw[this._key])){const n=this._object[this._key];if($t(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Mhe(this._raw,this._key)}}class Zhe{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}
vendor: 1,721 bytes, line 2
2function Ts(e,t,n){return $t(e)?e:Gt(e)?new Zhe(e):rr(e)&&arguments.length>1?AH(e,t,n):G(e)}function AH(e,t,n){return new Ghe(e,t,n)}class Khe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new $x(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qy-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&xr!==this)return hH(this,!0),!0}get value(){const t=this.dep.track();return gH(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Yhe(e,t,n=!1){let r,i;return Gt(e)?r=e:(r=e.get,i=e.set),new Khe(r,i,n)}const Y_={},l4=new WeakMap;let Yf;function Xhe(e,t=!1,n=Yf){if(n){let r=l4.get(n);r||l4.set(n,r=[]),r.push(e)}}function Jhe(e,t,n=zn){const{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=n,u=w=>i?w:qo(w)||i===!1||i===0?Ku(w,1):Ku(w);let c,d,f,h,p=!1,g=!1;if($t(e)?(d=()=>e.value,p=qo(e)):ol(e)?(d=()=>u(e),p=!0):It(e)?(g=!0,p=e.some(w=>ol(w)||qo(w)),d=()=>e.map(w=>{if($t(w))return w.value;if(ol(w))return u(w);if(Gt(w))return l?l(w,2):w()})):Gt(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Sc();try{f()}finally{Cc()}}const w=Yf;Yf=c;try{return l?l(e,3,[h]):e(h)}finally{Yf=w}}:d=Jl,t&&i){const w=d,C=i===!0?1/0:i;d=()=>Ku(w(),C)}const v=qa(),b=()=>{c.stop(),v&&v.active&&IE(v.effects,c)};if(a&&t){const w=t;t=(...C)=>{const T=w(...C);return b(),T}}let x=g?new Array(e.length).fill(Y_):Y_;const _=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const C=c.run();if(w||i||p||(g?C.some((T,k)=>ea(T,x[k])):ea(C,x))){f&&f();const T=Yf;Yf=c;try{const k=[C,x===Y_?void 0:g&&x[0]===Y_?[]:x,h];x=C,l?l(t,3,k):t(...k)}finally{Yf=T}}}else c.run()};
vendor: 2,902 bytes, line 2
2return s&&s(_),c=new dH(d),c.scheduler=o?()=>o(_,!1):_,h=w=>Xhe(w,!1,c),f=c.onStop=()=>{const w=l4.get(c);if(w){if(l)l(w,4);else for(const C of w)C();l4.delete(c)}},t?r?_(!0):x=c.run():o?o(_.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Ku(e,t=1/0,n){if(t<=0||!rr(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,$t(e))Ku(e.value,t,n);else if(It(e))for(let r=0;r<e.length;r++)Ku(e[r],t,n);else if(wc(e)||Rd(e))e.forEach(r=>{Ku(r,t,n)});else if(LE(e)){for(const r in e)Ku(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ku(e[r],t,n)}return e}function nv(e,t,n,r){try{return r?e(...r):e()}catch(i){r1(i,t,n)}}function zs(e,t,n,r){if(Gt(e)){const i=nv(e,t,n,r);return i&&$E(i)&&i.catch(a=>{r1(a,t,n)}),i}if(It(e)){const i=[];for(let a=0;a<e.length;a++)i.push(zs(e[a],t,n,r));return i}}function r1(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||zn;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(a){Sc(),nv(a,null,10,[e,l,u]),Cc();return}}Qhe(e,n,i,r,o)}function Qhe(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Ra=[];let Rl=-1;const X0=[];let yd=null,k0=0;const PH=Promise.resolve();let u4=null;function At(e){const t=u4||PH;return e?t.then(this?e.bind(this):e):t}function epe(e){let t=Rl+1,n=Ra.length;for(;t<n;){const r=t+n>>>1,i=Ra[r],a=n2(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function zE(e){if(!(e.flags&1)){const t=n2(e),n=Ra[Ra.length-1];!n||!(e.flags&2)&&t>=n2(n)?Ra.push(e):Ra.splice(epe(t),0,e),e.flags|=1,DH()}}function DH(){u4||(u4=PH.then(IH))}function t2(e){if(!It(e))yd&&e.id===-1?yd.splice(k0+1,0,e):e.flags&1||(X0.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)X0.push(e[t]);DH()}function bL(e,t,n=Rl+1){for(;n<Ra.length;n++){const r=Ra[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ra.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function c4(e){if(X0.length){const t=[...new Set(X0)].sort((n,r)=>n2(n)-n2(r));if(X0.length=0,yd){for(let n=0;n<t.length;n++)yd.push(t[n]);return}for(yd=t,k0=0;k0<yd.length;k0++){const n=yd[k0];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}yd=null,k0=0}}const n2=e=>e.id==null?e.flags&2?-1:1/0:e.id;function IH(e){try{for(Rl=0;Rl<Ra.length;Rl++){const t=Ra[Rl];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),nv(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Rl<Ra.length;Rl++){const t=Ra[Rl];t&&(t.flags&=-2)}Rl=-1,Ra.length=0,c4(),u4=null,(Ra.length||X0.length)&&IH()}}let la=null,$H=null;function d4(e){const t=la;return la=e,$H=e&&e.type.__scopeId||null,t}function N(e,t=la,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&v4(-1);const a=d4(t),o=mc.length;let s;
vendor: 4,322 bytes, line 2
2try{s=e(...i)}finally{for(let l=mc.length;l>o;l--)Hx();d4(a),r._d&&v4(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function _o(e,t){if(la===null)return e;const n=qx(la),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=zn]=t[i];a&&(Gt(a)&&(a={mounted:a,updated:a}),a.deep&&Ku(o),r.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function zl(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[r];l&&(Sc(),zs(l,n,8,[e.el,s,e,t]),Cc())}}function Si(e,t){if(sa){let n=sa.provides;const r=sa.parent&&sa.parent.provides;r===n&&(n=sa.provides=Object.create(r)),n[e]=t}}function cr(e,t,n=!1){const r=$n();if(r||Eh){let i=Eh?Eh._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Gt(t)?t.call(r&&r.proxy):t}}function cp(){return!!($n()||Eh)}const tpe=Symbol.for("v-scx"),npe=()=>cr(tpe);function ii(e,t){return rv(e,null,t)}function rpe(e,t){return rv(e,null,{flush:"post"})}function LH(e,t){return rv(e,null,{flush:"sync"})}function Je(e,t,n){return rv(e,t,n)}function rv(e,t,n=zn){const{immediate:r,deep:i,flush:a,once:o}=n,s=pi({},n),l=t&&r||!t&&a!=="post";let u;if(Uh){if(a==="sync"){const h=npe();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Jl,h.resume=Jl,h.pause=Jl,h}}const c=sa;s.call=(h,p,g)=>zs(h,c,p,g);let d=!1;a==="post"?s.scheduler=h=>{gi(h,c&&c.suspense)}:a!=="sync"&&(d=!0,s.scheduler=(h,p)=>{p?h():zE(h)}),s.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=Jhe(e,t,s);return Uh&&(u?u.push(f):l&&f()),f}function ipe(e,t,n){const r=this.proxy,i=_r(e)?e.includes(".")?RH(r,e):()=>r[e]:e.bind(r,r);let a;Gt(t)?a=t:(a=t.handler,n=t);const o=a1(this),s=rv(i,a.bind(r),n);return o(),s}function RH(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const dd=new WeakMap,OH=Symbol("_vte"),Fx=e=>e.__isTeleport,ih=e=>e&&(e.disabled||e.disabled===""),ape=e=>e&&(e.defer||e.defer===""),xL=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wL=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,MS=(e,t)=>{const n=e&&e.to;return _r(n)?t?t(n):null:n},ope={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,o,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:v,parentNode:b}}=u,x=ih(t.props);let{dynamicChildren:_}=t;const w=(k,A,P)=>{k.shapeFlag&16&&c(k.children,A,P,i,a,o,s,l)},C=(k=t)=>{const A=ih(k.props),P=k.target=MS(k.props,p),D=AS(P,k,g,h);P&&(o!=="svg"&&xL(P)?o="svg":o!=="mathml"&&wL(P)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(P),A||(w(k,P,D),Yg(k,!1)))},T=k=>{const A=()=>{if(dd.get(k)===A){if(dd.delete(k),ih(k.props)){const P=b(k.el)||n;w(k,P,k.anchor),Yg(k,!0)}C(k)}};dd.set(k,A),gi(A,a)};if(e==null){const k=t.el=g(""),A=t.anchor=g("");if(h(k,n,r),h(A,n,r),ape(t.props)||a&&a.pendingBranch){T(t);return}x&&(w(t,n,A),Yg(t,!0)),C()}else{t.el=e.el;const k=t.anchor=e.anchor,A=dd.get(e);if(A){A.flags|=8,dd.delete(e),T(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,D=t.targetAnchor=e.targetAnchor,$=ih(e.props),O=$?n:P,z=$?k:D;if(o==="svg"||xL(P)?o="svg":(o==="mathml"||wL(P))&&(o="mathml"),_?(f(e.dynamicChildren,_,O,i,a,o,s),YE(e,t,!0)):l||d(e,t,O,z,i,a,o,s,!1),x)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):X_(t,n,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=MS(t.props,p);j&&(t.target=j,X_(t,j,null,u,0))}else $&&X_(t,P,D,u,1);Yg(t,x)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e,h=ih(f),p=a||!h,g=dd.get(e);if(g&&(g.flags|=8,dd.delete(e)),d&&(i(u),i(c)),a&&i(l),!g&&(h||d)&&o&16)for(let v=0;v<s.length;v++){const b=s[v];r(b,t,n,p,!!b.dynamicChildren)}},move:X_,hydrate:spe};function X_(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=a===2;if(d&&r(o,t,n),!dd.has(e)&&(!d||ih(c))&&l&16)for(let f=0;f<u.length;f++)i(u[f],t,n,2);d&&r(s,t,n)}function spe(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:c}},d){function f(v,b){let x=b;
2for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,v._lpa=t.targetAnchor&&o(t.targetAnchor);break}}x=o(x)}}function h(v,b){b.anchor=d(o(v),b,s(v),n,r,i,a)}const p=t.target=MS(t.props,l),g=ih(t.props);if(p){const v=p._lpa||p.firstChild;t.shapeFlag&16&&(g?(h(e,t),f(p,v),t.targetAnchor||AS(p,t,c,u,s(e)===p?e:null)):(t.anchor=o(e),f(p,v),t.targetAnchor||AS(p,t,c,u),d(v&&o(v),t,p,n,r,i,a))),Yg(t,g)}else g&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const zx=ope;function Yg(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function AS(e,t,n,r,i=null){const a=t.targetStart=n(""),o=t.targetAnchor=n("");return a[OH]=o,e&&(r(a,e,i),r(o,e,i)),o}const Ss=Symbol("_leaveCb"),Sg=Symbol("_enterCb");function lpe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ot(()=>{e.isMounted=!0}),Wa(()=>{e.isUnmounting=!0}),e}const ds=[Function,Array],BH={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ds,onEnter:ds,onAfterEnter:ds,onEnterCancelled:ds,onBeforeLeave:ds,onLeave:ds,onAfterLeave:ds,onLeaveCancelled:ds,onBeforeAppear:ds,onAppear:ds,onAfterAppear:ds,onAppearCancelled:ds},FH=e=>{const t=e.subTree;return t.component?FH(t.component):t},upe={name:"BaseTransition",props:BH,setup(e,{slots:t}){const n=$n(),r=lpe();return()=>{const i=t.default&&VH(t.default(),!0),a=i&&i.length?zH(i):n.subTree?ae():void 0;if(!a)return;const o=_t(e),{mode:s}=o;if(r.isLeaving)return Q8(a);const l=f4(a);if(!l)return Q8(a);let u=PS(l,o,r,n,d=>u=d);l.type!==Zr&&xm(l,u);let c=n.subTree&&f4(n.subTree);if(c&&c.type!==Zr&&!el(c,l)&&FH(n).type!==Zr){let d=PS(c,o,r,n);if(xm(c,d),s==="out-in"&&l.type!==Zr)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Q8(a);s==="in-out"&&l.type!==Zr?d.delayLeave=(f,h,p)=>{const g=NH(r,c);g[String(c.key)]=c,f[Ss]=()=>{h(),f[Ss]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function zH(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Zr){t=n;break}}return t}const cpe=upe;function NH(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function PS(e,t,n,r,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:x,onAppearCancelled:_}=t,w=String(e.key),C=NH(n,e),T=(P,D)=>{P&&zs(P,r,9,D)},k=(P,D)=>{const $=D[1];T(P,D),It(P)?P.every(O=>O.length<=1)&&$():P.length<=1&&$()},A={mode:o,persisted:s,beforeEnter(P){let D=l;if(!n.isMounted)if(a)D=v||l;else return;P[Ss]&&P[Ss](!0);const $=C[w];$&&el(e,$)&&$.el[Ss]&&$.el[Ss](),T(D,[P])},enter(P){if(C[w]===e)return;let D=u,$=c,O=d;if(!n.isMounted)if(a)D=b||u,$=x||c,O=_||d;else return;let z=!1;P[Sg]=B=>{z||(z=!0,B?T(O,[P]):T($,[P]),A.delayedLeave&&A.delayedLeave(),P[Sg]=void 0)};const j=P[Sg].bind(null,!1);D?k(D,[P,j]):j()},leave(P,D){const $=String(e.key);if(P[Sg]&&P[Sg](!0),n.isUnmounting)return D();T(f,[P]);let O=!1;P[Ss]=j=>{O||(O=!0,D(),j?T(g,[P]):T(p,[P]),P[Ss]=void 0,C[$]===e&&delete C[$])};const z=P[Ss].bind(null,!1);C[$]=e,h?k(h,[P,z]):z()},clone(P){const D=PS(P,t,n,r,i);return i&&i(D),D}};return A}function Q8(e){if(iv(e))return e=gl(e),e.children=null,e}function f4(e){if(!iv(e))return Fx(e.type)&&e.children?zH(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Gt(n.default))return n.default()}}function xm(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;xm(Fx(n.type)&&f4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function VH(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:a);o.type===Ae?(o.patchFlag&128&&i++,r=r.concat(VH(o.children,t,s))):(t||o.type!==Zr)&&r.push(s!=null?gl(o,{key:s}):o)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Q(e,t){return Gt(e)?pi({name:e.name},t,{setup:e}):e}function Tc(){const e=$n();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}
2function NE(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dpe(e){const t=$n(),n=Bt(null);if(t){const i=t.refs===zn?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:a=>n.value=a})}return n}function SL(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const h4=new WeakMap;function J0(e,t,n,r,i=!1){if(It(e)){e.forEach((g,v)=>J0(g,t&&(It(t)?t[v]:t),n,r,i));return}if(pc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&J0(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?qx(r.component):r.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===zn?s.refs={}:s.refs,d=s.setupState,f=_t(d),h=d===zn?rH:g=>SL(c,g)?!1:lr(f,g),p=(g,v)=>!(v&&SL(c,v));if(u!=null&&u!==l){if(CL(t),_r(u))c[u]=null,h(u)&&(d[u]=null);else if($t(u)){const g=t;p(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(Gt(l))nv(l,s,12,[o,c]);else{const g=_r(l),v=$t(l);if(g||v){const b=()=>{if(e.f){const x=g?h(l)?d[l]:c[l]:p()||!e.k?l.value:c[e.k];if(i)It(x)&&IE(x,a);else if(It(x))x.includes(a)||x.push(a);else if(g)c[l]=[a],h(l)&&(d[l]=c[l]);else{const _=[a];p(l,e.k)&&(l.value=_),e.k&&(c[e.k]=_)}}else g?(c[l]=o,h(l)&&(d[l]=o)):v&&(p(l,e.k)&&(l.value=o),e.k&&(c[e.k]=o))};if(o){const x=()=>{b(),h4.delete(e)};x.id=-1,h4.set(e,x),gi(x,n)}else CL(e),b()}}}function CL(e){const t=h4.get(e);t&&(t.flags|=8,h4.delete(e))}let TL=!1;const f0=()=>{TL||(console.error("Hydration completed but contains mismatches."),TL=!0)},fpe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",hpe=e=>e.namespaceURI.includes("MathML"),J_=e=>{if(e.nodeType===1){if(fpe(e))return"svg";if(hpe(e))return"mathml"}},U0=e=>e.nodeType===8;function ppe(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(_,w)=>{if(!w.hasChildNodes()){n(null,_,w),c4(),w._vnode=_;return}d(w.firstChild,_,null,null,null),c4(),w._vnode=_},d=(_,w,C,T,k,A=!1)=>{A=A||!!w.dynamicChildren;const P=U0(_)&&_.data==="[",D=()=>g(_,w,C,T,k,P),{type:$,ref:O,shapeFlag:z,patchFlag:j}=w;let B=_.nodeType;w.el=_,j===-2&&(A=!1,w.dynamicChildren=null);let R=null;switch($){case Od:B!==3?w.children===""?(l(w.el=i(""),o(_),_),R=_):R=D():(_.data!==w.children&&(f0(),_.data=w.children),R=a(_));break;case Zr:x(_)?(R=a(_),b(w.el=_.content.firstChild,_,C)):B!==8||P?R=D():R=a(_);break;case em:if(P&&(_=a(_),B=_.nodeType),B===1||B===3){R=_;const J=!w.children.length;for(let K=0;K<w.staticCount;K++)J&&(w.children+=R.nodeType===1?R.outerHTML:R.data),K===w.staticCount-1&&(w.anchor=R),R=a(R);return P?a(R):R}else D();break;case Ae:P?R=p(_,w,C,T,k,A):R=D();break;default:if(z&1)(B!==1||w.type.toLowerCase()!==_.tagName.toLowerCase())&&!x(_)?R=D():R=f(_,w,C,T,k,A);else if(z&6){w.slotScopeIds=k;const J=o(_);if(P?R=v(_):U0(_)&&_.data==="teleport start"?R=v(_,_.data,"teleport end"):R=a(_),t(w,J,null,C,T,J_(J),A),(pc(w)||w.component.asyncDep)&&!w.component.subTree){let K;P?(K=H(em),K.anchor=R?R.previousSibling:J.lastChild):K=_.nodeType===3?st(""):H(_.nodeType===8?Zr:"div"),K.el=_,w.component.subTree=K}}else z&64?B!==8?R=D():R=w.type.hydrate(_,w,C,T,k,A,e,h):z&128&&(R=w.type.hydrate(_,w,C,T,J_(o(_)),k,A,e,d))}return O!=null&&J0(O,null,T,w),R},f=(_,w,C,T,k,A)=>{A=A||!!w.dynamicChildren;const{type:P,dynamicProps:D,props:$,patchFlag:O,shapeFlag:z,dirs:j,transition:B}=w,R=P==="input"||P==="option",J=!!D;if(R||J||O!==-1){j&&zl(w,null,C,"created");let K=!1;if(x(_)){K=fq(null,B)&&C&&C.vnode.props&&C.vnode.props.appear;const ne=_.content.firstChild;if(K){const se=ne.getAttribute("class");se&&(ne.$cls=se),B.beforeEnter(ne)}b(ne,_,C),w.el=_=ne}if(z&16&&!($&&($.innerHTML||$.textContent))){let ne=h(_.firstChild,w,_,C,T,k,A);for(ne&&!Cb(_,1)&&f0();ne;){const se=ne;ne=ne.nextSibling,s(se)}}else if(z&8){let ne=w.children;ne[0]===` 3`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(ne=ne.slice(1));const{textContent:se}=_;se!==ne&&se!==ne.replace(/\r\n|\r/g,` 4`)&&(Cb(_,0)||f0(),_.textContent=w.children)}if($){if(R||J||!A||O&48){const ne=_.tagName.includes("-"),se=_.namespaceURI.includes("svg")?"svg":_.namespaceURI.includes("MathML")?"mathml":void 0;for(const ce in $)if(R&&(ce.endsWith("value")||ce==="indeterminate")||tv(ce)&&!Th(ce)||ce[0]==="."||ne&&!Th(ce)||D&&D.includes(ce)){if(gpe(_,ce,$[ce]))continue;r(_,ce,null,$[ce],se,C)}}else if($.onClick)r(_,"onClick",null,$.onClick,void 0,C);else if(O&4&&ol($.style))for(const ne in $.style)$.style[ne]}let Z;(Z=$&&$.onVnodeBeforeMount)&&to(Z,C,w),j&&zl(w,null,C,"beforeMount"),((Z=$&&$.onVnodeMounted)||j||K)&&gq(()=>{Z&&to(Z,C,w),K&&B.enter(_),j&&zl(w,null,C,"mounted")},T)}return _.nextSibling},h=(_,w,C,T,k,A,P)=>{P=P||!!w.dynamicChildren;const D=w.children,$=D.length;let O=!1;for(let z=0;z<$;z++){const j=P?D[z]:D[z]=Bo(D[z]),B=j.type===Od;_?(B&&!P&&z+1<$&&Bo(D[z+1]).type===Od&&(l(i(_.data.slice(j.children.length)),C,a(_)),_.data=j.children),_=d(_,j,T,k,A,P)):B&&!j.children?l(j.el=i(""),C):(O||(O=!0,Cb(C,1)||f0()),n(null,j,C,null,T,k,J_(C),A))}return _},p=(_,w,C,T,k,A)=>{const{slotScopeIds:P}=w;P&&(k=k?k.concat(P):P);const D=o(_),$=h(a(_),w,D,C,T,k,A);return $&&U0($)&&$.data==="]"?a(w.anchor=$):(f0(),l(w.anchor=u("]"),D,$),$)},g=(_,w,C,T,k,A)=>{if(vpe(_,w)||f0(),w.el=null,A){const $=v(_);for(;;){const O=a(_);if(O&&O!==$)s(O);else break}}const P=a(_),D=o(_);return s(_),n(null,w,D,P,C,T,J_(D),k),C&&(C.vnode.el=w.el,Ux(C,w.el)),P},v=(_,w="[",C="]")=>{let T=0;for(;_;
4)if(_=a(_),_&&U0(_)&&(_.data===w&&T++,_.data===C)){if(T===0)return a(_);T--}return _},b=(_,w,C)=>{const T=w.parentNode;T&&T.replaceChild(_,w);let k=C;for(;k;)k.vnode.el===w&&(k.vnode.el=k.subTree.el=_),k=k.parent},x=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[c,d]}const mpe=new Set(["src","srcset","href","poster"]);function gpe(e,t,n){return mpe.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}const p4="data-allow-mismatch",ype={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Cb(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(p4);)e=e.parentElement;return VE(e&&e.getAttribute(p4),t)}function VE(e,t){if(e==null)return!1;if(e==="")return!0;{const n=e.split(",");return t===0&&n.includes("children")?!0:n.includes(ype[t])}}function vpe(e,t){return Cb(e.parentElement,1)||_pe(e)||bpe(t)}function _pe(e){return e.nodeType===1&&VE(e.getAttribute(p4),1)}function bpe({props:e}){const t=e&&e[p4];return typeof t=="string"&&VE(t,1)}Ix().requestIdleCallback;Ix().cancelIdleCallback;function xpe(e,t){if(U0(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(U0(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const pc=e=>!!e.type.__asyncLoader;function Or(e){Gt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=e;let u=null,c,d=0;const f=()=>(d++,u=null,h()),h=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((v,b)=>{l(g,()=>v(f()),()=>b(g),d+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Q({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,v){const b=p.isConnected;let x=!1;(g.bu||(g.bu=[])).push(()=>x=!0);const _=()=>{x||!p.parentNode||b&&!p.isConnected||v()},w=a?()=>{const C=a(_,T=>xpe(p,T));C&&(g.bum||(g.bum=[])).push(C)}:_;c?w():h().then(()=>!g.isUnmounted&&w())},get __asyncResolved(){return c},setup(){const p=sa;if(NE(p),c)return()=>Q_(c,p);const g=C=>{u=null,r1(C,p,13,!r)};if(s&&p.suspense||Uh)return h().then(C=>()=>Q_(C,p)).catch(C=>(g(C),()=>r?H(r,{error:C}):null));const v=G(!1),b=G(),x=G(!!i);let _,w;return br(()=>{_!=null&&clearTimeout(_),w!=null&&clearTimeout(w)}),i&&(w=setTimeout(()=>{p.isUnmounted||(x.value=!1)},i)),o!=null&&(_=setTimeout(()=>{if(!p.isUnmounted&&!v.value&&!b.value){const C=new Error(`Async component timed out after ${o}ms.`);g(C),b.value=C}},o)),h().then(()=>{p.isUnmounted||(v.value=!0,p.parent&&iv(p.parent.vnode)&&p.parent.update())}).catch(C=>{if(p.isUnmounted){u=null;return}g(C),b.value=C}),()=>{if(v.value&&c)return Q_(c,p);if(b.value&&r)return H(r,{error:b.value});if(n&&!x.value)return Q_(n,p)}}})}function Q_(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,o=H(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const iv=e=>e.type.__isKeepAlive,wpe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=$n(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const i=new Map,a=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,f=d("div");r.activate=(x,_,w,C,T)=>{const k=x.component;u(x,_,w,0,s),l(k.vnode,x,_,w,k,s,C,x.slotScopeIds,T),gi(()=>{k.isDeactivated=!1,k.a&&Y0(k.a);const A=x.props&&x.props.onVnodeMounted;A&&to(A,k.parent,x)},s)},r.deactivate=x=>{const _=x.component;g4(_.m),g4(_.a),u(x,f,null,1,s),gi(()=>{_.da&&Y0(_.da);const w=x.props&&x.props.onVnodeUnmounted;w&&to(w,_.parent,x),_.isDeactivated=!0},s)};function h(x){e7(x),c(x,n,s,!0)}function p(x){i.forEach((_,w)=>{const C=BS(pc(_)?_.type.__asyncResolved||{}:_.type);C&&!x(C)&&g(w)})}function g(x){const _=i.get(x);_&&(!o||!el(_,o))?h(_):o&&e7(o),i.delete(x),a.delete(x)}Je(()=>[e.include,e.exclude],([x,_])=>{x&&p(w=>Xg(x,w)),_&&p(w=>!Xg(_,w))},{flush:"post",deep:!0});let v=null;const b=()=>{v!=null&&(y4(n.subTree.type)?gi(()=>{const x=e3(n.subTree);x.component&&i.set(v,x)},n.subTree.suspense):i.set(v,e3(n.subTree)))};return Ot(b),av(b),Wa(()=>
vendor: 5,033 bytes, line 4
4{i.forEach(x=>{const{subTree:_,suspense:w}=n,C=e3(_);if(x.type===C.type&&x.key===C.key){e7(C);const T=C.component.da;T&&gi(T,w);return}h(x)})}),()=>{if(v=null,!t.default)return o=null;const x=t.default(),_=x[0];if(x.length>1)return o=null,x;if(!qd(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let w=e3(_);if(w.type===Zr)return o=null,w;const C=w.type,T=BS(pc(w)?w.type.__asyncResolved||{}:C),{include:k,exclude:A,max:P}=e;if(k&&(!T||!Xg(k,T))||A&&T&&Xg(A,T))return w.shapeFlag&=-257,o=w,_;const D=w.key==null?C:w.key,$=i.get(D);return w.el&&(w=gl(w),_.shapeFlag&128&&(_.ssContent=w)),v=D,$?(w.el=$.el,w.component=$.component,w.transition&&xm(w,w.transition),w.shapeFlag|=512,a.delete(D),a.add(D)):(a.add(D),P&&a.size>parseInt(P,10)&&g(a.values().next().value)),w.shapeFlag|=256,o=w,y4(_.type)?_:w}}},Spe=wpe;function Xg(e,t){return It(e)?e.some(n=>Xg(n,t)):_r(e)?e.split(",").includes(t):phe(e)?(e.lastIndex=0,e.test(t)):!1}function jH(e,t){HH(e,"a",t)}function UH(e,t){HH(e,"da",t)}function HH(e,t,n=sa){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Nx(t,r,n),n){let i=n.parent;for(;i&&i.parent;)iv(i.parent.vnode)&&Cpe(r,t,n,i),i=i.parent}}function Cpe(e,t,n,r){const i=Nx(t,e,r,!0);br(()=>{IE(r[t],i)},n)}function e7(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function e3(e){return e.shapeFlag&128?e.ssContent:e}function Nx(e,t,n=sa,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Sc();const s=a1(n),l=zs(t,n,e,o);return s(),Cc(),l});return r?i.unshift(a):i.push(a),a}}const Lc=e=>(t,n=sa)=>{(!Uh||e==="sp")&&Nx(e,(...r)=>t(...r),n)},Vx=Lc("bm"),Ot=Lc("m"),jE=Lc("bu"),av=Lc("u"),Wa=Lc("bum"),br=Lc("um"),Tpe=Lc("sp"),kpe=Lc("rtg"),Epe=Lc("rtc");function UE(e,t=sa){Nx("ec",e,t)}const HE="components",Mpe="directives";function xa(e,t){return WE(HE,e,!0,t)||e}const qH=Symbol.for("v-ndc");function yn(e){return _r(e)?WE(HE,e,!1)||e:e||qH}function qE(e){return WE(Mpe,e)}function WE(e,t,n=!0,r=!1){const i=la||sa;if(i){const a=i.type;if(e===HE){const s=BS(a,!1);if(s&&(s===t||s===ji(t)||s===Px(ji(t))))return a}const o=kL(i[e]||a[e],t)||kL(i.appContext[e],t);return!o&&r?a:o}}function kL(e,t){return e&&(e[t]||e[ji(t)]||e[Px(ji(t))])}function ft(e,t,n,r){let i;const a=n,o=It(e);if(o||_r(e)){const s=o&&ol(e);let l=!1,u=!1;s&&(l=!qo(e),u=ml(e),e=Lx(e)),i=new Array(e.length);for(let c=0,d=e.length;c<d;c++)i[c]=t(l?u?Hd(Fs(e[c])):Fs(e[c]):e[c],c,void 0,a)}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,a)}else if(rr(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=t(e[c],c,l,a)}}else i=[];return i}function Apt(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(It(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function me(e,t,n,r,i,a){if(n==null&&(n={}),la.ce||la.parent&&pc(la.parent)&&la.parent.ce){const u=a!=null&&n.key==null?pi({},n,{key:a}):n,c=Object.keys(u).length>0;return t!=="default"&&(u.name=t),E(),V(Ae,null,[H("slot",u,r&&r())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const s=mc.length;E();let l;try{const u=o&&WH(o(n)),c=n.key||a||u&&u.key;l=V(Ae,{key:(c&&!Yo(c)?c:`_${t}`)+(!u&&r?"_fb":"")},u||(r?r():[]),u&&e._===1?64:-2)}catch(u){for(let c=mc.length;c>s;c--)Hx();throw u}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function WH(e){return e.some(t=>qd(t)?!(t.type===Zr||t.type===Ae&&!WH(t.children)):!0)?e:null}function GH(e,t){const n={};for(const r in e)n[vy(r)]=e[r];return n}const DS=e=>e?_q(e)?qx(e):DS(e.parent):null,xy=pi(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>DS(e.parent),$root:e=>DS(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>JH(e),$forceUpdate:e=>e.f||(e.f=()=>{zE(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>ipe.bind(e)}),t7=(e,t)=>e!==zn&&!e.__isScriptSetup&&lr(e,t),Ape={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:l}=e;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(t7(r,t))return o[t]=1,r[t];if(i!==zn&&lr(i,t))return o[t]=2,i[t];if(lr(a,t))return o[t]=3,a[t];if(n!==zn&&lr(n,t))return o[t]=4,n[t];IS&&(o[t]=0)}}const u=xy[t];let c,d;if(u)return t==="$attrs"&&ba(e.attrs,"get",""),u(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(n!==zn&&lr(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,lr(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return t7(i,t)?(i[t]=n,!0):r!==zn&&lr(r,t)?(r[t]=n,!0):lr(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let l;return!!(n[s]||e!==zn&&s[0]!=="$"&&lr(e,s)||t7(t,s)||lr(a,s)||lr(r,s)||lr(
vendor: 5,553 bytes, line 4
4xy,s)||lr(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:lr(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ZH(){return KH().slots}function Ppt(){return KH().attrs}function KH(e){const t=$n();return t.setupContext||(t.setupContext=xq(t))}function r2(e){return It(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function YH(e,t){const n=r2(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?It(i)||Gt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function Ppe(e,t){return!e||!t?e||t:It(e)&&It(t)?e.concat(t):pi({},r2(e),r2(t))}function GE(e){const t=$n(),n=Uh;let r=e();a2(),n&&Bd(!1);const i=()=>{a1(t),n&&Bd(!0)},a=()=>{$n()!==t&&t.scope.off(),a2(),n&&Bd(!1)};return $E(r)&&(r=r.catch(o=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),o})),[r,()=>{i(),Promise.resolve().then(a)}]}let IS=!0;function Dpe(e){const t=JH(e),n=e.proxy,r=e.ctx;IS=!1,t.beforeCreate&&EL(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:x,destroyed:_,unmounted:w,render:C,renderTracked:T,renderTriggered:k,errorCaptured:A,serverPrefetch:P,expose:D,inheritAttrs:$,components:O,directives:z,filters:j}=t;if(u&&Ipe(u,r,null),o)for(const J in o){const K=o[J];Gt(K)&&(r[J]=K.bind(n))}if(i){const J=i.call(n,n);rr(J)&&(e.data=mi(J))}if(IS=!0,a)for(const J in a){const K=a[J],Z=Gt(K)?K.bind(n,n):Gt(K.get)?K.get.bind(n,n):Jl,ne=!Gt(K)&&Gt(K.set)?K.set.bind(n):Jl,se=W({get:Z,set:ne});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>se.value,set:ce=>se.value=ce})}if(s)for(const J in s)XH(s[J],r,n,J);if(l){const J=Gt(l)?l.call(n):l;Reflect.ownKeys(J).forEach(K=>{Si(K,J[K])})}c&&EL(c,e,"c");function R(J,K){It(K)?K.forEach(Z=>J(Z.bind(n))):K&&J(K.bind(n))}if(R(Vx,d),R(Ot,f),R(jE,h),R(av,p),R(jH,g),R(UH,v),R(UE,A),R(Epe,T),R(kpe,k),R(Wa,x),R(br,w),R(Tpe,P),It(D))if(D.length){const J=e.exposed||(e.exposed={});D.forEach(K=>{Object.defineProperty(J,K,{get:()=>n[K],set:Z=>n[K]=Z,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===Jl&&(e.render=C),$!=null&&(e.inheritAttrs=$),O&&(e.components=O),z&&(e.directives=z),P&&NE(e)}function Ipe(e,t,n=Jl){It(e)&&(e=$S(e));for(const r in e){const i=e[r];let a;rr(i)?"default"in i?a=cr(i.from||r,i.default,!0):a=cr(i.from||r):a=cr(i),$t(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[r]=a}}function EL(e,t,n){zs(It(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function XH(e,t,n,r){let i=r.includes(".")?RH(n,r):()=>n[r];if(_r(e)){const a=t[e];Gt(a)&&Je(i,a)}else if(Gt(e))Je(i,e.bind(n));else if(rr(e))if(It(e))e.forEach(a=>XH(a,t,n,r));else{const a=Gt(e.handler)?e.handler.bind(n):t[e.handler];Gt(a)&&Je(i,a,e)}}function JH(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>m4(l,u,o,!0)),m4(l,t,o)),rr(t)&&a.set(t,l),l}function m4(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&m4(e,a,n,!0),i&&i.forEach(o=>m4(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=$pe[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const $pe={data:ML,props:AL,emits:AL,methods:Jg,computed:Jg,beforeCreate:Ia,created:Ia,beforeMount:Ia,mounted:Ia,beforeUpdate:Ia,updated:Ia,beforeDestroy:Ia,beforeUnmount:Ia,destroyed:Ia,unmounted:Ia,activated:Ia,deactivated:Ia,errorCaptured:Ia,serverPrefetch:Ia,components:Jg,directives:Jg,watch:Rpe,provide:ML,inject:Lpe};function ML(e,t){return t?e?function(){return pi(Gt(e)?e.call(this,this):e,Gt(t)?t.call(this,this):t)}:t:e}function Lpe(e,t){return Jg($S(e),$S(t))}function $S(e){if(It(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ia(e,t){return e?[...new Set([].concat(e,t))]:t}function Jg(e,t){return e?pi(Object.create(null),e,t):t}function AL(e,t){return e?It(e)&&It(t)?[...new Set([...e,...t])]:pi(Object.create(null),r2(e),r2(t??{})):t}function Rpe(e,t){if(!e)return t;if(!t)return e;const n=pi(Object.create(null),e);for(const r in t)n[r]=Ia(e[r],t[r]);return n}function QH(){return{app:null,config:{isNativeTag:rH,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ope=0;function Bpe(e,t){return function(r,i=null){Gt(r)||(r=pi({},r)),i!=null&&!rr(i)&&(i=null);const a=QH(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:Ope++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:p0e,get config(){return a.config},set config(c){},use(c,...d){return o.has(c)||(c&&Gt(c.install)?(o.add(c),c.install(u,...d)):Gt(c)&&(o.add(c),c(u,...d))),u},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),u},component(c,d){return d?(a.components[c]=d,u):a.components[c]},directive(c,d){return d?(a.directives[c]=d,u):a.directives[c]},mount(c,d,f){if(!l){const h=u._ceVNode||H(r,i);return h.appContext=a,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(h,c):e(h,c,f),l=!0,u._container=c,c.__vue_app__=u,qx(h.component)}},onUnmount(c){s.push(c)},unmount(){l&&(zs(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return a.provides[c]=d,u}
vendor: 10,413 bytes, line 4
4,runWithContext(c){const d=Eh;Eh=u;try{return c()}finally{Eh=d}}};return u}}let Eh=null;function Fpe(e,t,n=zn){const r=$n(),i=ji(t),a=$c(t),o=eq(e,i),s=n1((l,u)=>{let c,d=zn,f;return LH(()=>{const h=e[i];ea(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const p=n.set?n.set(h):h;if(!ea(p,c)&&!(d!==zn&&ea(h,d)))return;const g=r.vnode.props,v=!!(g&&(t in g||i in g||a in g)&&(`onUpdate:${t}`in g||`onUpdate:${i}`in g||`onUpdate:${a}`in g));v||(c=h,u()),r.emit(`update:${t}`,p),ea(h,d)&&(ea(h,p)&&!ea(p,f)||v&&d!==zn&&!ea(p,c))&&u(),d=h,f=p}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||zn:s,done:!1}:{done:!0}}}},s}const eq=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ji(t)}Modifiers`]||e[`${$c(t)}Modifiers`];function zpe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||zn;let i=n;const a=t.startsWith("update:"),o=a&&eq(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>_r(c)?c.trim():c)),o.number&&(i=i.map(Dx)));let s,l=r[s=vy(t)]||r[s=vy(ji(t))];!l&&a&&(l=r[s=vy($c(t))]),l&&zs(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,zs(u,e,6,i)}}const Npe=new WeakMap;function tq(e,t,n=!1){const r=n?Npe:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Gt(e)){const l=u=>{const c=tq(u,t,!0);c&&(s=!0,pi(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(rr(e)&&r.set(e,null),null):(It(a)?a.forEach(l=>o[l]=null):pi(o,a),rr(e)&&r.set(e,o),o)}function jx(e,t){return!e||!tv(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),lr(e,t[0].toLowerCase()+t.slice(1))||lr(e,$c(t))||lr(e,t))}function n7(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,v=d4(e);let b,x;try{if(n.shapeFlag&4){const w=i||r,C=w;b=Bo(u.call(C,w,c,d,h,f,p)),x=s}else{const w=t;b=Bo(w.length>1?w(d,{attrs:s,slots:o,emit:l}):w(d,null)),x=t.props?s:jpe(s)}}catch(w){mc.length=0,r1(w,e,1),b=H(Zr)}let _=b;if(x&&g!==!1){const w=Object.keys(x),{shapeFlag:C}=_;w.length&&C&7&&(a&&w.some(Ex)&&(x=Upe(x,a)),_=gl(_,x,!1,!0))}if(n.dirs&&(_=gl(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition){const w=Fx(_.type)&&f4(_)||_;xm(w,n.transition)}return b=_,d4(v),b}function Vpe(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(qd(i)){if(i.type!==Zr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const jpe=e=>{let t;for(const n in e)(n==="class"||n==="style"||tv(n))&&((t||(t={}))[n]=e[n]);return t},Upe=(e,t)=>{const n={};for(const r in e)(!Ex(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Hpe(e,t,n){const{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?PL(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(nq(o,r,f)&&!jx(u,f))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?PL(r,o,u):!0:!!o;return!1}function PL(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(nq(t,e,a)&&!jx(n,a))return!0}return!1}function nq(e,t,n){const r=e[n],i=t[n];return n==="style"&&rr(r)&&rr(i)?!pl(r,i):r!==i}function Ux({vnode:e,parent:t,suspense:n},r){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=r,e=i),i===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const rq={},iq=()=>Object.create(rq),aq=e=>Object.getPrototypeOf(e)===rq;function qpe(e,t,n,r=!1){const i={},a=iq();e.propsDefaults=Object.create(null),oq(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:Wl(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Wpe(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=_t(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(jx(e.emitsOptions,f))continue;const h=t[f];if(l)if(lr(a,f))h!==a[f]&&(a[f]=h,u=!0);else{const p=ji(f);i[p]=LS(l,s,p,h,e,!1)}else h!==a[f]&&(a[f]=h,u=!0)}}}else{oq(e,t,i,a)&&(u=!0);let c;for(const d in s)(!t||!lr(t,d)&&((c=$c(d))===d||!lr(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=LS(l,s,d,void 0,e,!0)):delete i[d]);if(a!==s)for(const d in a)(!t||!lr(t,d))&&(delete a[d],u=!0)}u&&Zu(e.attrs,"set","")}function oq(e,t,n,r){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(Th(l))continue;const u=t[l];let c;i&&lr(i,c=ji(l))?!a||!a.includes(c)?n[c]=u:(s||(s={}))[c]=u:jx(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(a){const l=_t(n),u=s||zn;for(let c=0;c<a.length;c++){const d=a[c];n[d]=LS(i,l,d,u[d],e,!lr(u,d))}}return o}function LS(e,t,n,r,i,a){const o=e[n];if(o!=null){const s=lr(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Gt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=a1(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!s?r=!1:o[1]&&(r===""||r===$c(n))&&(r=!0))}return r}const Gpe=new WeakMap;function sq(e,t,n=!1){const r=n?Gpe:t.propsCache,i=r.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!Gt(e)){const c=d=>{l=!0;const[f,h]=sq(d,t,!0);pi(o,f),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return rr(e)&&r.set(e,lh),lh;if(It(a))for(let c=0;c<a.length;c++){const d=ji(a[c]);DL(d)&&(o[d]=zn)}else if(a)for(const c in a){const d=ji(c);if(DL(d)){const f=a[c],h=o[d]=It(f)||Gt(f)?{type:f}:pi({},f),p=h.type;let g=!1,v=!0;if(It(p))for(let b=0;b<p.length;++b){const x=p[b],_=Gt(x)&&x.name;if(_==="Boolean"){g=!0;break}else _==="String"&&(v=!1)}else g=Gt(p)&&p.name==="Boolean";h[0]=g,h[1]=v,(g||lr(h,"default"))&&s.push(d)}}const u=[o,s];return rr(e)&&r.set(e,u),u}function DL(e){return e[0]!=="$"&&!Th(e)}const ZE=e=>e==="_"||e==="_ctx"||e==="$stable",KE=e=>It(e)?e.map(Bo):[Bo(e)],Zpe=(e,t,n)=>{if(t._n)return t;const r=N((...i)=>KE(t(...i)),n);return r._c=!1,r},lq=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ZE(i))continue;const a=e[i];if(Gt(a))t[i]=Zpe(i,a,r);else if(a!=null){const o=KE(a);t[i]=()=>o}}},uq=(e,t)=>{const n=KE(t);e.slots.default=()=>n},cq=(e,t,n)=>{for(const r in t)(n||!ZE(r))&&(e[r]=t[r])},Kpe=(e,t,n)=>{const r=e.slots=iq();if(e.vnode.shapeFlag&32){const i=t._;i?(cq(r,t,n),n&&aH(r,"_",i,!0)):lq(t,r)}else t&&uq(e,t)},Ype=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,o=zn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?a=!1:cq(i,t,n):(a=!t.$stable,lq(t,i)),o=t}else t&&(uq(e,t),o={default:1});if(a)for(const s in i)!ZE(s)&&o[s]==null&&delete i[s]},gi=gq;function Xpe(e){return dq(e)}function Jpe(e){return dq(e,ppe)}function dq(e,t){const n=Ix();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Jl,insertStaticContent:p}=e,g=(re,le,ye,Me=null,ve=null,X=null,ee=void 0,oe=null,_e=!!le.dynamicChildren)=>{if(re===le)return;re&&!el(re,le)&&(Me=Ve(re),ce(re,ve,X,!0),re=null),le.patchFlag===-2&&(_e=!1,le.dynamicChildren=null),le.dynamicChildren&&re&&re.dynamicChildren&&re.dynamicChildren.hasOnce&&(le.dynamicChildren===lh&&(le.dynamicChildren=[]),le.dynamicChildren.hasOnce=!0);const{type:ge,ref:Oe,shapeFlag:Se}=le;switch(ge){case Od:v(re,le,ye,Me);break;case Zr:b(re,le,ye,Me);break;case em:re==null&&x(le,ye,Me,ee);break;case Ae:O(re,le,ye,Me,ve,X,ee,oe,_e);break;default:Se&1?C(re,le,ye,Me,ve,X,ee,oe,_e):Se&6?z(re,le,ye,Me,ve,X,ee,oe,_e):(Se&64||Se&128)&&ge.process(re,le,ye,Me,ve,X,ee,oe,_e,Pe)}Oe!=null&&ve?J0(Oe,re&&re.ref,X,le||re,!le):Oe==null&&re&&re.ref!=null&&J0(re.ref,null,X,re,!0)},v=(re,le,ye,Me)=>{if(re==null)r(le.el=s(le.children),ye,Me);else{const ve=le.el=re.el;le.children!==re.children&&u(ve,le.children)}},b=(re,le,ye,Me)=>{re==null?r(le.el=l(le.children||""),ye,Me):le.el=re.el},x=(re,le,ye,Me)=>{[re.el,re.anchor]=p(re.children,le,ye,Me,re.el,re.anchor)},_=({el:re,anchor:le},ye,Me)=>{let ve;for(;re&&re!==le;)ve=f(re),r(re,ye,Me),re=ve;r(le,ye,Me)},w=({el:re,anchor:le})=>{let ye;for(;re&&re!==le;)ye=f(re),i(re),re=ye;i(le)},C=(re,le,ye,Me,ve,X,ee,oe,_e)=>{if(le.type==="svg"?ee="svg":le.type==="math"&&(ee="mathml"),re==null)T(le,ye,Me,ve,X,ee,oe,_e);else{const ge=re.el&&re.el._isVueCE?re.el:null;try{ge&&ge._beginPatch(),P(re,le,ve,X,ee,oe,_e)}finally{ge&&ge._endPatch()}}},T=(re,le,ye,Me,ve,X,ee,oe)=>{let _e,ge;const{props:Oe,shapeFlag:Se,transition:he,dirs:Te}=re;if(_e=re.el=o(re.type,X,Oe&&Oe.is,Oe),Se&8?c(_e,re.children):Se&16&&A(re.children,_e,null,Me,ve,r7(re,X),ee,oe),Te&&zl(re,null,Me,"created"),k(_e,re,re.scopeId,ee,Me),Oe){for(const qe in Oe)qe!=="value"&&!Th(qe)&&a(_e,qe,null,Oe[qe],X,Me);"value"in Oe&&a(_e,"value",null,Oe.value,X),(ge=Oe.onVnodeBeforeMount)&&to(ge,Me,re)}Te&&zl(re,null,Me,"beforeMount");const ze=fq(ve,he);ze&&he.beforeEnter(_e),r(_e,le,ye),((ge=Oe&&Oe.onVnodeMounted)||ze||Te)&&gi(()=>{ge&&to(ge,Me,re),ze&&he.enter(_e),Te&&zl(re,null,Me,"mounted")},ve)},k=(re,le,ye,Me,ve)=>{if(ye&&h(re,ye),Me)for(let X=0;X<Me.length;X++)h(re,Me[X]);if(ve){let X=ve.subTree;if(le===X||y4(X.type)&&(X.ssContent===le||X.ssFallback===le)){const ee=ve.vnode;k(re,ee,ee.scopeId,ee.slotScopeIds,ve.parent)}}},A=(re,le,ye,Me,ve,X,ee,oe,_e=0)=>{for(let ge=_e;ge<re.length;ge++){const Oe=re[ge]=oe?Gu(re[ge]):Bo(re[ge]);g(null,Oe,le,ye,Me,ve,X,ee,oe)}},P=(re,le,ye,Me,ve,X,ee)=>{const oe=le.el=re.el;let{patchFlag:_e,dynamicChildren:ge,dirs:Oe}=le;_e|=re.patchFlag&16;const Se=re.props||zn,he=le.props||zn;let Te;if(ye&&Of(ye,!1),(Te=he.onVnodeBeforeUpdate)&&to(Te,ye,le,re),Oe&&zl(le,re,ye,"beforeUpdate"),ye&&Of(ye,!0),ge&&(!re.dynamicChildren||re.dynamicChildren.length!==ge.length)&&(_e=0,ee=!1,ge=null),(Se.innerHTML&&he.innerHTML==null||Se.textContent&&he.textContent==null)&&c(oe,""),ge?D(re.dynamicChildren,ge,oe,ye,Me,r7(le,ve),X):ee||K(re,le,oe,null,ye,Me,r7(le,ve),X,!1),_e>0){if(_e&16)$(oe,Se,he,ye,ve);else if(_e&2&&Se.class!==he.class&&a(oe,"class",null,he.class,ve),_e&4&&a(oe,"style",Se.style,he.style,ve),_e&8){const ze=le.dynamicProps;for(let qe=0;qe<ze.length;qe++){const lt=ze[qe],bt=Se[lt],fe=he[lt];(fe!==bt||lt==="value")&&a(oe,lt,bt,fe,ve,ye)}}_e&1&&re.children!==le.children&&c(oe,le.children)}
vendor: 4,621 bytes, line 4
4else!ee&&ge==null&&$(oe,Se,he,ye,ve);((Te=he.onVnodeUpdated)||Oe)&&gi(()=>{Te&&to(Te,ye,le,re),Oe&&zl(le,re,ye,"updated")},Me)},D=(re,le,ye,Me,ve,X,ee)=>{for(let oe=0;oe<le.length;oe++){const _e=re[oe],ge=le[oe],Oe=_e.el&&(_e.type===Ae||!el(_e,ge)||_e.shapeFlag&198)?d(_e.el):ye;g(_e,ge,Oe,null,Me,ve,X,ee,!0)}},$=(re,le,ye,Me,ve)=>{if(le!==ye){if(le!==zn)for(const X in le)!Th(X)&&!(X in ye)&&a(re,X,le[X],null,ve,Me);for(const X in ye){if(Th(X))continue;const ee=ye[X],oe=le[X];ee!==oe&&X!=="value"&&a(re,X,oe,ee,ve,Me)}"value"in ye&&a(re,"value",le.value,ye.value,ve)}},O=(re,le,ye,Me,ve,X,ee,oe,_e)=>{const ge=le.el=re?re.el:s(""),Oe=le.anchor=re?re.anchor:s("");let{patchFlag:Se,dynamicChildren:he,slotScopeIds:Te}=le;Te&&(oe=oe?oe.concat(Te):Te),re==null?(r(ge,ye,Me),r(Oe,ye,Me),A(le.children||[],ye,Oe,ve,X,ee,oe,_e)):Se>0&&Se&64&&he&&re.dynamicChildren&&re.dynamicChildren.length===he.length?(D(re.dynamicChildren,he,ye,ve,X,ee,oe),(le.key!=null||ve&&le===ve.subTree)&&YE(re,le,!0)):K(re,le,ye,Oe,ve,X,ee,oe,_e)},z=(re,le,ye,Me,ve,X,ee,oe,_e)=>{le.slotScopeIds=oe,re==null?le.shapeFlag&512?ve.ctx.activate(le,ye,Me,ee,_e):j(le,ye,Me,ve,X,ee,_e):B(re,le,_e)},j=(re,le,ye,Me,ve,X,ee)=>{const oe=re.component=u0e(re,Me,ve);if(iv(re)&&(oe.ctx.renderer=Pe),c0e(oe,!1,ee),oe.asyncDep){if(ve&&ve.registerDep(oe,R,ee),!re.el){const _e=oe.subTree=H(Zr);b(null,_e,le,ye),re.placeholder=_e.el}}else R(oe,re,le,ye,ve,X,ee)},B=(re,le,ye)=>{const Me=le.component=re.component;if(Hpe(re,le,ye))if(Me.asyncDep&&!Me.asyncResolved){le.el=re.el,J(Me,le,ye);return}else Me.next=le,Me.update();else le.el=re.el,Me.vnode=le},R=(re,le,ye,Me,ve,X,ee)=>{const oe=()=>{if(re.isMounted){let{next:Se,bu:he,u:Te,parent:ze,vnode:qe}=re;{const De=hq(re);if(De){Se&&(Se.el=qe.el,J(re,Se,ee)),De.asyncDep.then(()=>{gi(()=>{re.isUnmounted||ge()},ve)});return}}let lt=Se,bt;Of(re,!1),Se?(Se.el=qe.el,J(re,Se,ee)):Se=qe,he&&Y0(he),(bt=Se.props&&Se.props.onVnodeBeforeUpdate)&&to(bt,ze,Se,qe),Of(re,!0);const fe=n7(re),pe=re.subTree;re.subTree=fe,g(pe,fe,d(pe.el),Ve(pe),re,ve,X),Se.el=fe.el,lt===null&&Ux(re,fe.el),Te&&gi(Te,ve),(bt=Se.props&&Se.props.onVnodeUpdated)&&gi(()=>to(bt,ze,Se,qe),ve)}else{let Se;const{el:he,props:Te}=le,{bm:ze,m:qe,parent:lt,root:bt,type:fe}=re,pe=pc(le);if(Of(re,!1),ze&&Y0(ze),!pe&&(Se=Te&&Te.onVnodeBeforeMount)&&to(Se,lt,le),Of(re,!0),he&&Fe){const De=()=>{re.subTree=n7(re),Fe(he,re.subTree,re,ve,null)};pe&&fe.__asyncHydrate?fe.__asyncHydrate(he,re,De):De()}else{bt.ce&&bt.ce._hasShadowRoot()&&bt.ce._injectChildStyle(fe,re.parent?re.parent.type:void 0);const De=re.subTree=n7(re);g(null,De,ye,Me,re,ve,X),le.el=De.el}if(qe&&gi(qe,ve),!pe&&(Se=Te&&Te.onVnodeMounted)){const De=le;gi(()=>to(Se,lt,De),ve)}(le.shapeFlag&256||lt&&pc(lt.vnode)&<.vnode.shapeFlag&256)&&re.a&&gi(re.a,ve),re.isMounted=!0,le=ye=Me=null}};re.scope.on();const _e=re.effect=new dH(oe);re.scope.off();const ge=re.update=_e.run.bind(_e),Oe=re.job=_e.runIfDirty.bind(_e);Oe.i=re,Oe.id=re.uid,_e.scheduler=()=>zE(Oe),Of(re,!0),ge()},J=(re,le,ye)=>{le.component=re;const Me=re.vnode.props;re.vnode=le,re.next=null,Wpe(re,le.props,Me,ye),Ype(re,le.children,ye),Sc(),bL(re),Cc()},K=(re,le,ye,Me,ve,X,ee,oe,_e=!1)=>{const ge=re&&re.children,Oe=re?re.shapeFlag:0,Se=le.children,{patchFlag:he,shapeFlag:Te}=le;if(he>0){if(he&128){ne(ge,Se,ye,Me,ve,X,ee,oe,_e);return}else if(he&256){Z(ge,Se,ye,Me,ve,X,ee,oe,_e);return}}Te&8?(Oe&16&&ke(ge,ve,X),Se!==ge&&c(ye,Se)):Oe&16?Te&16?ne(ge,Se,ye,Me,ve,X,ee,oe,_e):ke(ge,ve,X,!0):(Oe&8&&c(ye,""),Te&16&&A(Se,ye,Me,ve,X,ee,oe,_e))},Z=(re,le,ye,Me,ve,X,ee,oe,_e)=>{re=re||lh,le=le||lh;const ge=re.length,Oe=le.length,Se=Math.min(ge,Oe);let he;for(he=0;he<Se;he++){const Te=le[he]=_e?Gu(le[he]):Bo(le[he]);g(re[he],Te,ye,null,ve,X,ee,oe,_e)}ge>Oe?ke(re,ve,X,!0,!1,Se):A(le,ye,Me,ve,X,ee,oe,_e,Se)},ne=(re,le,ye,Me,ve,X,ee,oe,_e)=>{let ge=0;const Oe=le.length;let Se=re.length-1,he=Oe-1;for(;ge<=Se&&ge<=he;){const Te=re[ge],ze=le[ge]=_e?Gu(le[ge]):Bo(le[ge]);if(el(Te,ze))g(Te,ze,ye,null,ve,X,ee,oe,_e);else break;ge++}for(;ge<=Se&&ge<=he;){const Te=re[Se],ze=le[he]=_e?Gu(le[he]):Bo(le[he]);if(el(Te,ze))g(Te,ze,ye,null,ve,X,ee,oe,_e);else break;Se--,he--}if(ge>Se){if(ge<=he){const Te=he+1,ze=Te<Oe?le[Te].el:Me;for(;ge<=he;)g(null,le[ge]=_e?Gu(le[ge]):Bo(le[ge]),ye,ze,ve,X,ee,oe,_e),ge++}}else if(ge>he)for(;ge<=Se;)ce(re[ge],ve,X,!0),ge++;else{const Te=ge,ze=ge,qe=new Map;for(ge=ze;ge<=he;ge++){const it=le[ge]=_e?Gu(le[ge]):Bo(le[ge]);it.key!=null&&qe.set(it.key,ge)}let lt,bt=0;const fe=he-ze+1;let pe=!1,De=0;const Ge=new Array(fe);for(ge=0;ge<fe;ge++)Ge[ge]=0;for(ge=Te;ge<=Se;ge++){const it=re[ge];
vendor: 14,100 bytes, line 4
4if(bt>=fe){ce(it,ve,X,!0);continue}let mt;if(it.key!=null)mt=qe.get(it.key);else for(lt=ze;lt<=he;lt++)if(Ge[lt-ze]===0&&el(it,le[lt])){mt=lt;break}mt===void 0?ce(it,ve,X,!0):(Ge[mt-ze]=ge+1,mt>=De?De=mt:pe=!0,g(it,le[mt],ye,null,ve,X,ee,oe,_e),bt++)}const ut=pe?Qpe(Ge):lh;for(lt=ut.length-1,ge=fe-1;ge>=0;ge--){const it=ze+ge,mt=le[it],Be=le[it+1],Ze=it+1<Oe?Be.el||pq(Be):Me;Ge[ge]===0?g(null,mt,ye,Ze,ve,X,ee,oe,_e):pe&&(lt<0||ge!==ut[lt]?se(mt,ye,Ze,2):lt--)}}},se=(re,le,ye,Me,ve=null)=>{const{el:X,type:ee,transition:oe,children:_e,shapeFlag:ge}=re;if(ge&6){se(re.component.subTree,le,ye,Me);return}if(ge&128){re.suspense.move(le,ye,Me);return}if(ge&64){ee.move(re,le,ye,Pe);return}if(ee===Ae){r(X,le,ye);for(let Se=0;Se<_e.length;Se++)se(_e[Se],le,ye,Me);r(re.anchor,le,ye);return}if(ee===em){_(re,le,ye);return}if(Me!==2&&ge&1&&oe)if(Me===0)oe.persisted&&!X[Ss]?r(X,le,ye):(oe.beforeEnter(X),r(X,le,ye),gi(()=>oe.enter(X),ve));else{const{leave:Se,delayLeave:he,afterLeave:Te}=oe,ze=()=>{re.ctx.isUnmounted?i(X):r(X,le,ye)},qe=()=>{const lt=X._isLeaving||!!X[Ss];X._isLeaving&&X[Ss](!0),oe.persisted&&!lt?ze():Se(X,()=>{ze(),Te&&Te()})};he?he(X,ze,qe):qe()}else r(X,le,ye)},ce=(re,le,ye,Me=!1,ve=!1)=>{const{type:X,props:ee,ref:oe,children:_e,dynamicChildren:ge,shapeFlag:Oe,patchFlag:Se,dirs:he,cacheIndex:Te,memo:ze}=re;if((Se===-2||ge&&ge.hasOnce)&&(ve=!1),oe!=null&&(Sc(),J0(oe,null,ye,re,!0),Cc()),Te!=null&&(!re.ctx||re.ctx===le)&&(le.renderCache[Te]=void 0),Oe&256){le.ctx.deactivate(re);return}const qe=Oe&1&&he,lt=!pc(re);let bt;if(lt&&(bt=ee&&ee.onVnodeBeforeUnmount)&&to(bt,le,re),Oe&6)$e(re.component,ye,Me);else{if(Oe&128){re.suspense.unmount(ye,Me);return}qe&&zl(re,null,le,"beforeUnmount"),Oe&64?re.type.remove(re,le,ye,Pe,Me):ge&&!ge.hasOnce&&(X!==Ae||Se>0&&Se&64)?ke(ge,le,ye,!1,!0):(X===Ae&&Se&384||!ve&&Oe&16)&&ke(_e,le,ye),Me&&Re(re)}const fe=ze!=null&&Te==null;(lt&&(bt=ee&&ee.onVnodeUnmounted)||qe||fe)&&gi(()=>{bt&&to(bt,le,re),qe&&zl(re,null,le,"unmounted"),fe&&(re.el=null)},ye)},Re=re=>{const{type:le,el:ye,anchor:Me,transition:ve}=re;if(le===Ae){Ue(ye,Me);return}if(le===em){w(re),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave();return}const X=()=>{i(ye),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(re.shapeFlag&1&&ve&&!ve.persisted){const{leave:ee,delayLeave:oe}=ve,_e=()=>ee(ye,X);oe?oe(re.el,X,_e):_e()}else X()},Ue=(re,le)=>{let ye;for(;re!==le;)ye=f(re),i(re),re=ye;i(le)},$e=(re,le,ye)=>{const{bum:Me,scope:ve,job:X,subTree:ee,um:oe,m:_e,a:ge}=re;g4(_e),g4(ge),Me&&Y0(Me),ve.stop(),X?(X.flags|=8,ce(ee,re,le,ye)):re.vnode.el&&ee&&(ee.transition=re.vnode.transition,ce(ee,re,le,ye)),oe&&gi(oe,le),gi(()=>{re.isUnmounted=!0},le)},ke=(re,le,ye,Me=!1,ve=!1,X=0)=>{for(let ee=X;ee<re.length;ee++)ce(re[ee],le,ye,Me,ve)},Ve=re=>{if(re.shapeFlag&6)return Ve(re.component.subTree);if(re.shapeFlag&128)return re.suspense.next();const le=f(re.anchor||re.el),ye=le&&le[OH];return ye?f(ye):le};let nt=!1;const xe=(re,le,ye)=>{let Me;re==null?le._vnode&&(ce(le._vnode,null,null,!0),Me=le._vnode.component):g(le._vnode||null,re,le,null,null,null,ye),le._vnode=re,nt||(nt=!0,bL(Me),c4(),nt=!1)},Pe={p:g,um:ce,m:se,r:Re,mt:j,mc:A,pc:K,pbc:D,n:Ve,o:e};let je,Fe;return t&&([je,Fe]=t(Pe)),{render:xe,hydrate:je,createApp:Bpe(xe,je)}}function r7({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Of({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fq(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function YE(e,t,n=!1){const r=e.children,i=t.children;if(It(r)&&It(i))for(let a=0;a<r.length;a++){const o=r[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Gu(i[a]),s.el=o.el),!n&&s.patchFlag!==-2&&YE(o,s)),s.type===Od&&(s.patchFlag===-1&&(s=i[a]=Gu(s)),s.el=o.el),s.type===Zr&&!s.el&&(s.el=o.el)}}function Qpe(e){const t=e.slice(),n=[0];let r,i,a,o,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<u?a=s+1:o=s;u<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function hq(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:hq(t)}function g4(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function pq(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?pq(t.subTree):null}const y4=e=>e.__isSuspense;let RS=0;const e0e={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,o,s,l,u){if(e==null)t0e(t,n,r,i,a,o,s,l,u);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}n0e(e,t,n,r,i,o,s,l,u)}},hydrate:r0e,normalize:i0e},XE=e0e;function i2(e,t){const n=e.props&&e.props[t];Gt(n)&&n()}function t0e(e,t,n,r,i,a,o,s,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=mq(e,i,r,t,d,n,a,o,s,l);u(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(i2(e,"onPending"),i2(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,a,o),Q0(f,e.ssFallback)):f.resolve(!1,!0)}function n0e(e,t,n,r,i,a,o,s,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:v,isHydrating:b}=d;if(g)d.pendingBranch=f,el(g,f)?(d.deps++,l(g,f,b?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():v&&!b&&!d.isFallbackMountPending&&(l(p,h,n,r,i,null,a,o,s),Q0(d,h))):(d.pendingId=RS++,b?(d.isHydrating=!1,d.activeBranch=g):u(g,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(l(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(l(p,h,n,r,i,null,a,o,s),Q0(d,h))):p&&el(p,f)?(l(p,f,n,r,i,d,a,o,s),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(p&&el(p,f))l(p,f,n,r,i,d,a,o,s),Q0(d,f);else if(i2(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=RS++,l(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{const{timeout:x,pendingId:_}=d;x>0?setTimeout(()=>{d.pendingId===_&&d.fallback(h)},x):x===0&&d.fallback(h)}}function mq(e,t,n,r,i,a,o,s,l,u,c=!1){const{p:d,m:f,um:h,n:p,o:{parentNode:g,remove:v}}=u;let b;const x=a0e(e);x&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const _=e.props?oH(e.props.timeout):void 0,w=a,C={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:RS++,timeout:typeof _=="number"?_:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(T=!1,k=!1){const{vnode:A,activeBranch:P,pendingBranch:D,pendingId:$,effects:O,parentComponent:z,container:j,isInFallback:B}=C;let R=!1;if(C.isHydrating)C.isHydrating=!1;else if(!T){R=P&&D.transition&&D.transition.mode==="out-in";let Z=!1;R&&(P.transition.afterLeave=()=>{$===C.pendingId&&(f(D,j,a===w&&!Z?p(P):a,0),t2(O),B&&A.ssFallback&&(A.ssFallback.el=null))}),P&&!C.isFallbackMountPending&&(g(P.el)===j&&(a=p(P),Z=!0),h(P,z,C,!0),!R&&B&&A.ssFallback&&gi(()=>A.ssFallback.el=null,C)),R||f(D,j,a,0)}C.isFallbackMountPending=!1,Q0(C,D),C.pendingBranch=null,C.isInFallback=!1;let J=C.parent,K=!1;for(;J;){if(J.pendingBranch){for(let Z=0;Z<O.length;Z++)J.effects.push(O[Z]);K=!0;break}J=J.parent}!K&&!R&&t2(O),C.effects=[],x&&t&&t.pendingBranch&&b===t.pendingId&&(b=void 0,t.deps--,t.deps===0&&!k&&t.resolve()),i2(A,"onResolve")},fallback(T){if(!C.pendingBranch)return;const{vnode:k,activeBranch:A,parentComponent:P,container:D,namespace:$}=C;i2(k,"onFallback");const O=p(A),z=()=>{if(C.isFallbackMountPending=!1,!C.isInFallback)return;const B=C.vnode.ssFallback;d(null,B,D,O,P,null,$,s,l),Q0(C,B)},j=T.transition&&T.transition.mode==="out-in";j&&(C.isFallbackMountPending=!0,A.transition.afterLeave=z),C.isInFallback=!0,h(A,P,null,!0),j||z()},move(T,k,A){C.activeBranch&&f(C.activeBranch,T,k,A),C.container=T},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(T,k,A){const P=!!C.pendingBranch;P&&C.deps++;const D=T.vnode.el;T.asyncDep.catch($=>{r1($,T,0)}).then($=>{if(T.isUnmounted||C.isUnmounted||C.pendingId!==T.suspenseId)return;if(a2(),D&&!T.scope.active){P&&--C.deps===0&&C.resolve();return}T.asyncResolved=!0;const{vnode:O}=T;OS(T,$),D&&(O.el=D);const z=!D&&T.subTree.el;k(T,O,g(D||T.subTree.el),D?null:p(T.subTree),C,o,A),z&&(O.placeholder=null,v(z)),Ux(T,O.el),P&&--C.deps===0&&C.resolve()})},unmount(T,k){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,T,k),C.pendingBranch&&h(C.pendingBranch,n,T,k)}};return C}function r0e(e,t,n,r,i,a,o,s,l){const u=t.suspense=mq(t,r,n,e.parentNode,document.createElement("div"),null,i,a,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,a,o);return u.deps===0&&u.resolve(!1,!0),c}function i0e(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=IL(r?n.default:n),e.ssFallback=r?IL(n.fallback):H(Zr)}function IL(e){let t;if(Gt(e)){const n=wm&&e._c;n&&(e._d=!1,E()),e=e(),n&&(e._d=!0,t=uo,Hx())}return It(e)&&(e=Vpe(e)),e=Bo(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function gq(e,t){t&&t.pendingBranch?It(e)?t.effects.push(...e):t.effects.push(e):t2(e)}function Q0(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Ux(r,i))}function a0e(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ae=Symbol.for("v-fgt"),Od=Symbol.for("v-txt"),Zr=Symbol.for("v-cmt"),em=Symbol.for("v-stc"),mc=[];let uo=null;function E(e=!1){mc.push(uo=e?null:[])}function Hx(){mc.pop(),uo=mc[mc.length-1]||null}let wm=1;function v4(e,t=!1){wm+=e,e<0&&uo&&t&&(uo.hasOnce=!0)}function yq(e){return e.dynamicChildren=wm>0?uo||lh:null,Hx(),wm>0&&uo&&uo.push(e),e}function U(e,t,n,r,i,a){return yq(Y(e,t,n,r,i,a,!0))}function V(e,t,n,r,i){return yq(H(e,t,n,r,i,!0))}function qd(e){return e?e.__v_isVNode===!0:!1}function el(e,t){return e.type===t.type&&e.key===t.key}const vq=({key:e})=>e??null,Tb=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_r(e)||$t(e)||Gt(e)?{i:la,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,i=null,a=e===Ae?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vq(t),ref:t&&Tb(t),scopeId:$H,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:la};return s?(_4(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=_r(n)?8:16),wm>0&&!o&&uo&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&uo.push(l),l}const H=o0e;function o0e(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===qH)&&(e=Zr),qd(e)){const s=gl(e,t,!0);return n&&_4(s,n),wm>0&&!a&&uo&&(s.shapeFlag&6?uo[uo.indexOf(e)]=s:uo.push(s)),s.patchFlag=-2,s}if(h0e(e)&&(e=e.__vccOpts),t){t=pn(t);let{class:s,style:l}=t;s&&!_r(s)&&(t.class=L(s)),rr(l)&&(Bx(l)&&!It(l)&&(l=pi({},l)),t.style=Li(l))}const o=_r(e)?1:y4(e)?128:Fx(e)?64:rr(e)?4:Gt(e)?2:0;return Y(e,t,n,r,i,o,a,!0)}function pn(e){return e?Bx(e)||aq(e)?pi({},e):e:null}function gl(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?rt(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vq(u),ref:t&&t.ref?n&&a?It(a)?a.concat(Tb(t)):[a,Tb(t)]:Tb(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gl(e.ssContent),ssFallback:e.ssFallback&&gl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return l&&r&&xm(c,l.clone(c)),c}function st(e=" ",t=0){return H(Od,null,e,t)}function i1(e,t){const n=H(em,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(E(),V(Zr,null,e)):H(Zr,null,e)}function Bo(e){return e==null||typeof e=="boolean"?H(Zr):It(e)?H(Ae,null,e.slice()):qd(e)?Gu(e):H(Od,null,String(e))}function Gu(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gl(e)}function _4(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(It(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),_4(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!aq(t)?t._ctx=la:i===3&&la&&(la.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Gt(t)){if(r&65){_4(e,{default:t});return}t={default:t,_ctx:la},n=32}else t=String(t),r&64?(n=16,t=[st(t)]):n=8;e.children=t,e.shapeFlag|=n}function rt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=L([t.class,r.class]));else if(i==="style")t.style=Li([t.style,r.style]);else if(tv(i)){const a=t[i],o=r[i];o&&a!==o&&!(It(a)&&a.includes(o))?t[i]=a?[].concat(a,o):o:o==null&&a==null&&!Ex(i)&&(t[i]=o)}else i!==""&&(t[i]=r[i])}return t}function to(e,t,n,r=null){zs(e,t,7,[n,r])}const s0e=QH();let l0e=0;function u0e(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||s0e,a={uid:l0e++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new cH(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sq(r,i),emitsOptions:tq(r,i),emit:null,emitted:null,propsDefaults:zn,inheritAttrs:r.inheritAttrs,ctx:zn,data:zn,props:zn,attrs:zn,slots:zn,refs:zn,setupState:zn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 2,752 bytes, line 4
4sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=zpe.bind(null,a),e.ce&&e.ce(a),a}let sa=null;const $n=()=>sa||la;let b4,Bd;{const e=Ix(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};b4=t("__VUE_INSTANCE_SETTERS__",n=>sa=n),Bd=t("__VUE_SSR_SETTERS__",n=>Uh=n)}const a1=e=>{const t=sa;return b4(e),e.scope.on(),()=>{e.scope.off(),b4(t)}},a2=()=>{sa&&sa.scope.off(),b4(null)};function _q(e){return e.vnode.shapeFlag&4}let Uh=!1;function c0e(e,t=!1,n=!1){t&&Bd(t);const{props:r,children:i}=e.vnode,a=_q(e);qpe(e,r,a,t),Kpe(e,i,n||t);const o=a?d0e(e,t):void 0;return t&&Bd(!1),o}function d0e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ape);const{setup:r}=n;if(r){Sc();const i=e.setupContext=r.length>1?xq(e):null,a=a1(e),o=nv(r,e,0,[e.props,i]),s=$E(o);if(Cc(),a(),(s||e.sp)&&!pc(e)&&NE(e),s){if(o.then(a2,a2),t)return o.then(l=>{Bd(!0);try{OS(e,l,t)}finally{Bd(!1)}}).catch(l=>{r1(l,e,0)});e.asyncDep=o}else OS(e,o)}else bq(e)}function OS(e,t,n){Gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:rr(t)&&(e.setupState=MH(t)),bq(e)}function bq(e,t,n){const r=e.type;e.render||(e.render=r.render||Jl);{const i=a1(e);Sc();try{Dpe(e)}finally{Cc(),i()}}}const f0e={get(e,t){return ba(e,"get",""),e[t]}};function xq(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,f0e),slots:e.slots,emit:e.emit,expose:t}}function qx(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(MH(up(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xy)return xy[n](e)},has(t,n){return n in t||n in xy}})):e.proxy}function BS(e,t=!0){return Gt(e)?e.displayName||e.name:e.name||t&&e.__name}function h0e(e){return Gt(e)&&"__vccOpts"in e}const W=(e,t)=>Yhe(e,t,Uh);function Nt(e,t,n){try{v4(-1);const r=arguments.length;return r===2?rr(t)&&!It(t)?qd(t)?H(e,null,[t]):H(e,t):H(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&qd(n)&&(n=[n]),H(e,t,n))}finally{v4(1)}}const p0e="3.5.43";let FS;const $L=typeof window<"u"&&window.trustedTypes;if($L)try{FS=$L.createPolicy("vue",{createHTML:e=>e})}catch{}const wq=FS?e=>FS.createHTML(e):e=>e,m0e="http://www.w3.org/2000/svg",g0e="http://www.w3.org/1998/Math/MathML",qu=typeof document<"u"?document:null,LL=qu&&qu.createElement("template"),y0e={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?qu.createElementNS(m0e,e):t==="mathml"?qu.createElementNS(g0e,e):n?qu.createElement(e,{is:n}):qu.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>qu.createTextNode(e),createComment:e=>qu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 4,223 bytes, line 4
4{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qu.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{LL.innerHTML=wq(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=LL.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},od="transition",Cg="animation",o2=Symbol("_vtc"),Sq={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},v0e=pi({},BH,Sq),_0e=e=>(e.displayName="Transition",e.props=v0e,e),b0e=_0e((e,{slots:t})=>Nt(cpe,x0e(e),t)),Bf=(e,t=[])=>{It(e)?e.forEach(n=>n(...t)):e&&e(...t)},RL=e=>e?It(e)?e.some(t=>t.length>1):e.length>1:!1;function x0e(e){const t={};for(const O in e)O in Sq||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=w0e(i),g=p&&p[0],v=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:_,onLeave:w,onLeaveCancelled:C,onBeforeAppear:T=b,onAppear:k=x,onAppearCancelled:A=_}=t,P=(O,z,j,B)=>{O._enterCancelled=B,Ff(O,z?c:s),Ff(O,z?u:o),j&&j()},D=(O,z)=>{O._isLeaving=!1,Ff(O,d),Ff(O,h),Ff(O,f),z&&z()},$=O=>(z,j)=>{const B=O?k:x,R=()=>P(z,O,j);Bf(B,[z,R]),OL(()=>{Ff(z,O?l:a),Pu(z,O?c:s),RL(B)||BL(z,r,g,R)})};return pi(t,{onBeforeEnter(O){Bf(b,[O]),Pu(O,a),Pu(O,o)},onBeforeAppear(O){Bf(T,[O]),Pu(O,l),Pu(O,u)},onEnter:$(!1),onAppear:$(!0),onLeave(O,z){O._isLeaving=!0;const j=()=>D(O,z);Pu(O,d),O._enterCancelled?(Pu(O,f),NL(O)):(NL(O),Pu(O,f)),OL(()=>{O._isLeaving&&(Ff(O,d),Pu(O,h),RL(w)||BL(O,r,v,j))}),Bf(w,[O,j])},onEnterCancelled(O){P(O,!1,void 0,!0),Bf(_,[O])},onAppearCancelled(O){P(O,!0,void 0,!0),Bf(A,[O])},onLeaveCancelled(O){D(O),Bf(C,[O])}})}function w0e(e){if(e==null)return null;if(rr(e))return[i7(e.enter),i7(e.leave)];{const t=i7(e);return[t,t]}}function i7(e){return oH(e)}function Pu(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[o2]||(e[o2]=new Set)).add(t)}function Ff(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[o2];n&&(n.delete(t),n.size||(e[o2]=void 0))}function OL(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let S0e=0;function BL(e,t,n,r){const i=e._endId=++S0e,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=C0e(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function C0e(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),i=r(`${od}Delay`),a=r(`${od}Duration`),o=FL(i,a),s=r(`${Cg}Delay`),l=r(`${Cg}Duration`),u=FL(s,l);let c=null,d=0,f=0;t===od?o>0&&(c=od,d=o,f=a.length):t===Cg?u>0&&(c=Cg,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?od:Cg:null,f=c?c===od?a.length:l.length:0);const h=c===od&&/\b(?:transform|all)(?:,|$)/.test(r(`${od}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function FL(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>zL(n)+zL(e[r])))}function zL(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function NL(e){return(e?e.ownerDocument:document).body.offsetHeight}function T0e(e,t,n){const r=e[o2];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const x4=Symbol("_vod"),Cq=Symbol("_vsh"),Wx={name:"show",beforeMount(e,{value:t},{transition:n}){e[x4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tg(e,t)}
vendor: 4,656 bytes, line 4
4,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Tg(e,!0),r.enter(e)):r.leave(e,()=>{Tg(e,!1)}):Tg(e,t))},beforeUnmount(e,{value:t}){Tg(e,t)}};function Tg(e,t){e.style.display=t?e[x4]:"none",e[Cq]=!t}const k0e=Symbol(""),E0e=/(?:^|;)\s*display\s*:/;function M0e(e,t,n){const r=e.style,i=_r(n);let a=!1;if(n&&!i){if(t)if(_r(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();n[s]==null&&Qg(r,s,"")}else for(const o in t)n[o]==null&&Qg(r,o,"");for(const o in n){o==="display"&&(a=!0);const s=n[o];s!=null?P0e(e,o,!_r(t)&&t?t[o]:void 0,s)||Qg(r,o,s):Qg(r,o,"")}}else if(i){if(t!==n){const o=r[k0e];o&&(n+=";"+o),r.cssText=n,a=E0e.test(n)}}else t&&e.removeAttribute("style");x4 in e&&(e[x4]=a?r.display:"",e[Cq]&&(r.display="none"))}const t3=/\s*!important$/;function Qg(e,t,n){if(It(n))n.forEach(r=>Qg(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))t3.test(n)?e.setProperty(t,n.replace(t3,""),"important"):e.setProperty(t,n);else{const r=A0e(e,t);t3.test(n)?e.setProperty($c(r),n.replace(t3,""),"important"):e[r]=n}}const VL=["Webkit","Moz","ms"],a7={};function A0e(e,t){const n=a7[t];if(n)return n;let r=ji(t);if(r!=="filter"&&r in e)return a7[t]=r;r=Px(r);for(let i=0;i<VL.length;i++){const a=VL[i]+r;if(a in e)return a7[t]=a}return t}function P0e(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&_r(r)&&n===r}const jL="http://www.w3.org/1999/xlink";function UL(e,t,n,r,i,a=She(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(jL,t.slice(6,t.length)):e.setAttributeNS(jL,t,n):n==null||a&&!sH(n)?e.removeAttribute(t):e.setAttribute(t,a?"":Yo(n)?String(n):n)}function HL(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wq(n):n);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=sH(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Yu(e,t,n,r){e.addEventListener(t,n,r)}function D0e(e,t,n,r){e.removeEventListener(t,n,r)}const qL=Symbol("_vei");function I0e(e,t,n,r,i=null){const a=e[qL]||(e[qL]={}),o=a[t];if(r&&o)o.value=r;else{const[s,l]=R0e(t);if(r){const u=a[t]=F0e(r,i);Yu(e,s,u,l)}else o&&(D0e(e,s,o,l),a[t]=void 0)}}const $0e=/(Once|Passive|Capture)$/,L0e=/^on:?(?:Once|Passive|Capture)$/;function R0e(e){let t,n;for(;(n=e.match($0e))&&!L0e.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):$c(e.slice(2)),t]}let o7=0;const O0e=Promise.resolve(),B0e=()=>o7||(O0e.then(()=>o7=0),o7=Date.now());function F0e(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const i=n.value;if(It(i)){const a=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{a.call(r),r._stopped=!0};const o=i.slice(),s=[r];for(let l=0;l<o.length&&!r._stopped;l++){const u=o[l];u&&zs(u,t,5,s)}}else zs(i,t,5,[r])};return n.value=e,n.attached=B0e(),n}const WL=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,z0e=(e,t,n,r,i,a)=>{const o=i==="svg";t==="class"?T0e(e,r,o):t==="style"?M0e(e,n,r):tv(t)?Ex(t)||I0e(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):N0e(e,t,r,o))?(HL(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&UL(e,t,r,o,a,t!=="value")):e._isVueCE&&(V0e(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!_r(r)))?HL(e,ji(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),UL(e,t,r,o))};function N0e(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&WL(t)&&Gt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return WL(t)&&_r(n)?!1:t in e}function V0e(e,t){const n=e._def.props;if(!n)return!1;const r=ji(t);return Array.isArray(n)?n.some(i=>ji(i)===r):Object.keys(n).some(i=>ji(i)===r)}const Wd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return It(t)?n=>Y0(t,n):t};function j0e(e){e.target.composing=!0}function GL(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const jo=Symbol("_assign"),n3=Symbol("_initialValue");
4function s7(e,t,n){return t&&(e=e.trim()),n&&(e=Dx(e)),e}const s2={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type==="text"?e[n3]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[n3]=e.defaultValue.replace(/\r\n?/g,` 5`))),e[jo]=Wd(i);const a=r||i.props&&i.props.type==="number";Yu(e,t?"change":"input",o=>{o.target.composing||e[jo](s7(e.value,n,a))}),(n||a)&&Yu(e,"change",()=>{e.value=s7(e.value,n,a)}),t||(Yu(e,"compositionstart",j0e),Yu(e,"compositionend",GL),Yu(e,"change",GL))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const i=t??"",a=e[n3];delete e[n3],a!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==a?e[jo](s7(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[jo]=Wd(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?Dx(e.value):e.value,l=t??"";if(s===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},U0e={deep:!0,created(e,t,n){e[jo]=Wd(n),Yu(e,"change",()=>{const r=e._modelValue,i=Sm(e),a=e.checked,o=e[jo];if(It(r)){const s=RE(r,i),l=s!==-1;if(a&&!l)o(r.concat(i));else if(!a&&l){const u=[...r];u.splice(s,1),o(u)}}else if(wc(r)){const s=new Set(r);a?s.add(i):s.delete(i),o(s)}else o(kq(e,a))})},mounted:ZL,beforeUpdate(e,t,n){e[jo]=Wd(n),ZL(e,t,n)}};function ZL(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(It(t))i=RE(t,r.props.value)>-1;else if(wc(t))i=t.has(r.props.value);else{if(t===n)return;i=pl(t,kq(e,!0))}e.checked!==i&&(e.checked=i)}const H0e={created(e,{value:t},n){e.checked=pl(t,n.props.value),e[jo]=Wd(n),Yu(e,"change",()=>{e[jo](Sm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[jo]=Wd(r),t!==n&&(e.checked=pl(t,r.props.value))}},Tq={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Yu(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Dx(Sm(l)):Sm(l)),a=e.multiple,o=a?wc(e._modelValue)?new Set(i):i:i[0],s=e._pendingValue=[a,a?It(o)?i.slice():i:o];try{e[jo](o)}finally{At(()=>{e._pendingValue===s&&(e._pendingValue=void 0)})}}),e[jo]=Wd(r)},mounted(e,{value:t}){KL(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[jo]=Wd(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!q0e(t,n[1],n[0]))&&KL(e,t)}};function q0e(e,t,n){if(!n||It(e))return pl(e,t);if(wc(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function KL(e,t){const n=e.multiple,r=It(t);if(!(n&&!r&&!wc(t))){for(let i=0,a=e.options.length;i<a;i++){const o=e.options[i],s=Sm(o);if(n)if(r){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=RE(t,s)>-1}else o.selected=t.has(s);else if(pl(Sm(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sm(e){return"_value"in e?e._value:e.value}function kq(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Eq={created(e,t,n){r3(e,t,n,null,"created")},mounted(e,t,n){r3(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){r3(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){r3(e,t,n,r,"updated")}};function W0e(e,t){switch(e){case"SELECT":return Tq;case"TEXTAREA":return s2;default:switch(t){case"checkbox":return U0e;case"radio":return H0e;default:return s2}}}function r3(e,t,n,r,i){const o=W0e(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const G0e=["ctrl","shift","alt","meta"],Z0e={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>G0e.some(n=>e[`${n}Key`]&&!t.includes(n))},nr=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...a)=>{for(let o=0;o<t.length;o++){const s=Z0e[t[o]];if(s&&s(i,t))return}return e(i,...a)}))},K0e={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},po=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=$c(i.key);if(t.some(o=>o===a||K0e[o]===a))return e(i)}))},Mq=pi({patchProp:z0e},y0e);let wy,YL=!1;function Y0e(){return wy||(wy=Xpe(Mq))}function X0e(){return wy=YL?wy:Jpe(Mq),YL=!0,wy}const J0e=((...e)=>{const t=Y0e().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Pq(r);if(!i)return;const a=t._component;!Gt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Aq(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t}),Q0e=((...e)=>{const t=X0e().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Pq(r);if(i)return n(i,!0,Aq(i))},t});function Aq(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pq(e){return _r(e)?document.querySelector(e):e}const eme=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,tme=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,nme=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function rme(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ime(e);return}return t}function ime(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function l2(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!nme.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(eme.test(e)||tme.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,rme)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Dq=/#/g,Iq=/&/g,ame=/\//g,ome=/=/g,sme=/\?/g,Gx=/\+/g,lme=/%5e/gi,ume=/%60/gi,cme=/%7c/gi,dme=/%20/gi,fme=/%2f/gi,hme=/%252f/gi;function $q(e){return encodeURI(""+e).replace(cme,"|")}function zS(e){return $q(typeof e=="string"?e:JSON.stringify(e)).replace(Gx,"%2B").replace(dme,"+").replace(Dq,"%23").replace(Iq,"%26").replace(ume,"`").replace(lme,"^").replace(ame,"%2F")}function l7(e){return zS(e).replace(ome,"%3D")}function pme(e){return $q(e).replace(Dq,"%23").replace(sme,"%3F").replace(hme,"%2F").replace(Iq,"%26").replace(Gx,"%2B")}function Hh(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function mme(e){return Hh(e.replace(fme,"%252F"))}function gme(e){return Hh(e.replace(Gx," "))}function yme(e){return Hh(e.replace(Gx," "))}function Cm(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=gme(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=yme(r[2]||"");t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}return t}function vme(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${l7(e)}=${zS(n)}`).join("&"):`${l7(e)}=${zS(t)}`:l7(e)}function _me(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
5vme(t,e[t])).filter(Boolean).join("&")}const bme=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Lq=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,xme=/^([/\\]\s*){2,}[^/\\]/,wme=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Sme=/\/$|\/\?|\/#/,Cme=/^\.?\//;function Na(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bme.test(e):Lq.test(e)||(t.acceptRelative?xme.test(e):!1)}function w4(e){return!!e&&wme.test(e)}function NS(e="",t){return t?Sme.test(e):e.endsWith("/")}function Tm(e="",t){if(!t)return(NS(e)?e.slice(0,-1):e)||"/";if(!NS(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i!==-1&&(n=e.slice(0,i),r=e.slice(i));const[a,...o]=n.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function u2(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(NS(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[a,...o]=n.split("?");return a+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function Tme(e=""){return e.startsWith("/")}function XL(e=""){return Tme(e)?e:"/"+e}function JE(e,t){if(Rq(t)||Na(e))return e;const n=Tm(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return o1(n,e)}function JL(e,t){if(Rq(t))return e;const n=Tm(t);if(!e.startsWith(n))return e;const r=e[n.length];return r&&r!=="/"&&r!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function ov(e,t){const n=kc(e),r={...Cm(n.search),...t};return n.search=_me(r),Pme(n)}function Rq(e){return!e||e==="/"}function kme(e){return e&&e!=="/"}function o1(e,...t){let n=e||"";for(const r of t.filter(i=>kme(i)))if(n){const i=r.replace(Cme,"");n=u2(n)+i}else n=r;return n}function Oq(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const o of n)if(!(!o||o==="/")){for(const[s,l]of o.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Na(r[0]))continue;r.pop(),i--;continue}if(s===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),i++}}let a=r.join("/");return i>=0?n[0]?.startsWith("/")&&!a.startsWith("/")?a="/"+a:n[0]?.startsWith("./")&&!a.startsWith("./")&&(a="./"+a):a="../".repeat(-1*i)+a,n[n.length-1]?.endsWith("/")&&!a.endsWith("/")&&(a+="/"),a}function Eme(e){return Mme(e,"https://")}function Mme(e,t){let n=e.match(Lq);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function Bq(e,t){return Hh(Tm(e))===Hh(Tm(t))}function Ame(e,t,n={}){return n.trailingSlash||(e=u2(e),t=u2(t)),n.leadingSlash||(e=XL(e),t=XL(t)),n.encoding||(e=Hh(e),t=Hh(t)),e===t}const Fq=Symbol.for("ufo:protocolRelative");function kc(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Na(e,{acceptRelative:!0}))return t?kc(t+e):S4(e);const[,r="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=S4(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:u,hash:c,[Fq]:!r}}function S4(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Pme(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[Fq]?(e.protocol||"")+"//":"")+i+a+t+n+r}let Dme=class extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}};function Ime(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${i}: ${a}${t?` ${t}`:""}`,s=new Dme(o,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(s,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,l,{get(){return e.response&&e.response[u]}});return s}const $me=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function QL(e="GET"){return $me.has(e.toUpperCase())}function Lme(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Rme=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ome=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Bme(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Ome.test(t)?"json":t==="text/event-stream"?"stream":Rme.has(t)||t.startsWith("text/")?"text":"blob"}function Fme(e,t,n,r){const i=zme(t?.headers??e?.headers,n?.headers,r);let a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function zme(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[i,a]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(i,a);return r}async function i3(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Nme=new Set([408,409,425,429,500,502,503,504]),Vme=new Set([101,204,205,304]);function zq(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;
5async function i(s){const l=s.error&&s.error.name==="AbortError"&&!s.options.timeout||!1;if(s.options.retry!==!1&&!l){let c;typeof s.options.retry=="number"?c=s.options.retry:c=QL(s.options.method)?0:1;const d=s.response&&s.response.status||500;if(c>0&&(Array.isArray(s.options.retryStatusCodes)?s.options.retryStatusCodes.includes(d):Nme.has(d))){const f=typeof s.options.retryDelay=="function"?s.options.retryDelay(s):s.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),a(s.request,{...s.options,retry:c-1})}}const u=Ime(s);throw Error.captureStackTrace&&Error.captureStackTrace(u,a),u}const a=async function(l,u={}){const c={request:l,options:Fme(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await i3(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=JE(c.request,c.options.baseURL)),c.options.query&&(c.request=ov(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&QL(c.options.method))if(Lme(c.options.body)){const h=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),h||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let d;if(!c.options.signal&&c.options.timeout){const h=new r;d=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await i3(c,c.options.onRequestError),await i(c)}finally{d&&clearTimeout(d)}if((c.response.body||c.response._bodyInit)&&!Vme.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||Bme(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||l2;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await i3(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await i3(c,c.options.onResponseError),await i(c)):c.response},o=async function(l,u){return(await a(l,u))._data};return o.raw=a,o.native=(...s)=>t(...s),o.create=(s={},l={})=>zq({...e,...l,defaults:{...e.defaults,...l.defaults,...s}}),o}const C4=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),jme=C4.fetch?(...e)=>C4.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ume=C4.Headers,Hme=C4.AbortController,qme=zq({fetch:jme,Headers:Ume,AbortController:Hme}),Wme=qme,Gme=()=>window?.__NUXT__?.config||{},QE=()=>Gme().app,Zme=()=>QE().baseURL,Kme=()=>QE().buildAssetsDir,eM=(...e)=>Oq(Nq(),Kme(),...e),Nq=(...e)=>{const t=QE(),n=t.cdnURL||t.baseURL;return e.length?Oq(n,...e):n};globalThis.__buildAssetsURL=eM,globalThis.__publicAssetsURL=Nq;globalThis.$fetch||(globalThis.$fetch=Wme.create({baseURL:Zme()}));"global"in globalThis||(globalThis.global=globalThis);function VS(e,t={},n){for(const r in e){const i=e[r],a=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?VS(i,t,a):typeof i=="function"&&(t[a]=i)}return t}const Yme={run:e=>e()},Xme=()=>Yme,Vq=typeof console.createTask<"u"?console.createTask:Xme;function Jme(e,t){const n=t.shift(),r=Vq(n);return e.reduce((i,a)=>i.then(()=>r.run(()=>a(...t))),Promise.resolve())}function Qme(e,t){const n=t.shift(),r=Vq(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}function u7(e,t){for(const n of[...e])n(t)}let e1e=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const i=t;let a;for(;this._deprecatedHooks[t];)a=this._deprecatedHooks[t],t=a.to;if(a&&!r.allowDeprecated){let o=a.message;o||(o=`${i} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||
5(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,i=(...a)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...a));return r=this.hook(t,i),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const i of r)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=VS(t),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(t){const n=VS(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Jme,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Qme,t,...n)}callHookWith(t,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&u7(this._before,i);const a=t(n in this._hooks?[...this._hooks[n]]:[],r);return a instanceof Promise?a.finally(()=>{this._after&&i&&u7(this._after,i)}):(this._after&&i&&u7(this._after,i),a)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}};function t1e(){return new e1e}function n1e(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let i;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?i=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const a=()=>{if(i){const o=i.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=a();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>a(),set:(o,s)=>{s||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,s)=>{r(o),t=o;try{return i?i.run(o,s):s()}finally{n||(t=void 0)}},async callAsync(o,s){t=o;const l=()=>{t=o},u=()=>t===o?l:void 0;jS.add(u);try{const c=i?i.run(o,s):s();return n||(t=void 0),await c}finally{jS.delete(u)}}}}function r1e(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=n1e({...e,...r})),t[n]}}}const T4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},eR="__unctx__",i1e=T4[eR]||(T4[eR]=r1e()),a1e=(e,t={})=>i1e.get(e,t),tR="__unctx_async_handlers__",jS=T4[tR]||(T4[tR]=new Set);function Sy(e){const t=[];for(const i of jS){const a=i();a&&t.push(a)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const nR=!1,rR=!1,o1e=!1,s1e={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Qu={value:null,errorValue:null,deep:!0},l1e=null,u1e={},c1e="#__nuxt",jq="nuxt-app",iR=36e5,d1e="vite:preloadError";function Uq(e=jq){return a1e(e,{asyncContext:!1})}const f1e="__nuxt_plugin";function Hq(e){let t=0;const n={_id:e.id||jq||"nuxt-app",_scope:lp(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.21.11"},get vue(){return n.vueApp.version}},payload:Wl({...e.ssrContext?.payload||{},data:Wl({}),state:mi({}),once:new Set,_errors:Wl({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!qa()?n._scope.run(()=>US(n,i)):US(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Wl({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const a in i)switch(a){case"data":case"state":case"_errors":Object.assign(n.payload[a],i[a]);break;default:n.payload[a]=i[a]}}n.hooks=t1e(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(i,a)=>{const o="$"+i;a3(n,o,a),a3(n.vueApp.config.globalProperties,o,a)},a3(n.vueApp,"$nuxt",n),a3(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(d1e,a=>{n.callHook("app:chunkError",{error:a.payload}),a.payload?.message?.includes("Unable to preload CSS")&&a.preventDefault()}),window.useNuxtApp||=vt;const i=n.hook("app:error",(...a)=>{console.error("[nuxt] error caught during app initialization",...a)});n.hook("app:mounted",i)}const r=n.payload.config;return n.provide("config",r),n}function qq(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Wq(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function Gq(e,t){const n=new Set,r=[],i=[];let a,o=0;
5async function s(l){const u=l.dependsOn?.filter(c=>t.some(d=>d._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=Wq(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([d,f])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(o++,await s(f)))})))}).catch(d=>{if(!l.parallel&&!e.payload.error)throw d;a||=d});l.parallel?i.push(c):await c}}for(const l of t)qq(e,l);for(const l of t)await s(l);if(await Promise.all(i),o)for(let l=0;l<o;l++)await Promise.all(i);if(a)throw e.payload.error||a}function hr(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[f1e]:!0,_name:t})}const Zq=hr;function US(e,t,n){const r=()=>t();return Uq(e._id).set(e),e.vueApp.runWithContext(r)}function tM(e){let t;return cp()&&(t=$n()?.appContext.app.$nuxt),t||=Uq(e).tryUse(),t||null}function vt(e){const t=tM(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Ga(e){return vt().$config}function a3(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function h1e(e){return e}function c7(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function HS(e,t,n=".",r){if(!c7(t))return HS(e,{},n,r);const i={...t};for(const a of Object.keys(e)){if(a==="__proto__"||a==="constructor")continue;const o=e[a];o!=null&&(r&&r(i,a,o,n)||(Array.isArray(o)&&Array.isArray(i[a])?i[a]=[...o,...i[a]]:c7(o)&&c7(i[a])?i[a]=HS(o,i[a],(n?`${n}.`:"")+a.toString(),r):i[a]=o))}return i}function nM(e){return(...t)=>t.reduce((n,r)=>HS(n,r,"",e),{})}const Gd=nM(),p1e=nM((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function m1e(e,t){try{return t in e}catch{return!1}}class aR extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:qS(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Kq(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function g1e(e){if(typeof e=="string")return new aR(e);if(y1e(e))return e;const t=new aR(e.message??e.statusMessage??"",{cause:e.cause||e});if(m1e(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=qS(e.statusCode,t.statusCode):e.status&&(t.statusCode=qS(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Kq(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function y1e(e){return e?.constructor?.__h3_error__===!0}const v1e=/[^\u0009\u0020-\u007E]/g;function Kq(e=""){return e.replace(v1e,"")}function qS(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}function _1e(e,t){for(const[n,r]of Object.entries(t))e.node.res.setHeader(n,r)}const WS=Symbol("layout-meta"),qh=Symbol("route");function b1e(e){return Array.isArray(e)?e:[e]}import.meta.url.replace(/\/app\/.*$/,"/");const ai=()=>vt()?.$router;function x1e(e){const t=e.scope;let n=qa();for(;n;){if(n===t)return!0;n=n.parent}return!1}const nu=()=>{if(cp()){const e=$n();if(!e||x1e(e))return cr(qh,vt()._route)}return vt()._route};function w1e(e){return e}const k4=(e,t,n={})=>{const r=vt(),i=n.global||typeof e!="string",a=typeof e!="string"?e:t;if(!a){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}i?r._middleware.global.push(a):r._middleware.named[e]=a},S1e=()=>{try{if(vt()._processingMiddleware)return!0}catch{return!1}return!1},wl=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?GS(e):ai().resolve(e).href;if(t?.open){const{protocol:u}=new URL(n,window.location.href);if(u&&w4(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`);
5const{target:c="_blank",windowFeatures:d={}}=t.open,f=[];for(const[h,p]of Object.entries(d))p!==void 0&&f.push(`${h.toLowerCase()}=${p}`);return open(n,c,f.join(", ")),Promise.resolve()}const r=Na(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(n,window.location.href);if(u&&w4(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const a=S1e();if(!i&&a){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:d}=kc(e);return{path:u,...c&&{query:Cm(c)},...d&&{hash:d},replace:!0}}return{...e,replace:!0}}return e}const o=ai(),s=vt();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?Yq(e):e;return t?.replace?o.replace(l):o.push(l)};function GS(e){return ov(e.path||"",e.query||{})+(e.hash||"")}function Yq(e){const t=kc(e);return pme(mme(t.pathname))+t.search+t.hash}const Xq="__nuxt_error",s1=()=>Ts(vt().payload,"error"),Ul=e=>{const t=gc(e);try{const n=s1();vt().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},Jq=async(e={})=>{const t=vt(),n=s1();t.callHook("app:error:cleared",e),e.redirect&&await ai().replace(e.redirect),n.value=l1e},rM=e=>!!e&&typeof e=="object"&&Xq in e,gc=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=g1e(e);return Object.defineProperty(t,Xq,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};let Qq;const km=e=>Qq=e,eW=Symbol();function oR(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}function C1e(){const e=lp(!0),t=e.run(()=>G({}));let n=[],r=[];const i=up({install(a){km(i),i._a=a,a.provide(eW,i),a.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ZS=()=>{};function sR(e,t,n,r=ZS){e.add(t);const i=()=>{e.delete(t)&&r()};return!n&&qa()&&vo(i),i}function h0(e,...t){e.forEach(n=>{n(...t)})}const T1e=e=>e(),lR=Symbol(),d7=Symbol();function KS(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!Object.hasOwn(t,n))continue;const r=t[n],i=e[n];oR(i)&&oR(r)&&Object.hasOwn(e,n)&&!$t(r)&&!ol(r)?e[n]=KS(i,r):e[n]=r}return e}const k1e=Symbol();function E1e(e){return!e||typeof e!="object"||!Object.hasOwn(e,k1e)}const{assign:fd}=Object;function M1e(e){return!!($t(e)&&e.effect)}function A1e(e,t,n,r){const{state:i,actions:a,getters:o}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=i?i():{});const c=An(n.state.value[e]);return fd(c,a,Object.keys(o||{}).reduce((d,f)=>(d[f]=up(W(()=>{km(n);const h=n._s.get(e);return o[f].call(h,h)})),d),{}))}return l=tW(e,u,t,n,r,!0),l}function tW(e,t,n={},r,i,a){let o;const s=fd({actions:{}},n),l={deep:!0};let u,c,d=new Set,f=new Set,h;const p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let g;function v(k){let A;u=c=!1,typeof k=="function"?(k(r.state.value[e]),A={type:"patch function",storeId:e,events:h}
5):(KS(r.state.value[e],k),A={type:"patch object",payload:k,storeId:e,events:h});const P=g=Symbol();At().then(()=>{g===P&&(u=!0)}),c=!0,h0(d,A,r.state.value[e])}const b=a?function(){const{state:A}=n,P=A?A():{};this.$patch(D=>{fd(D,P)})}:ZS;function x(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}const _=(k,A="")=>{if(lR in k)return k[d7]=A,k;const P=function(){km(r);const D=Array.from(arguments),$=new Set,O=new Set;function z(R){$.add(R)}function j(R){O.add(R)}h0(f,{args:D,name:P[d7],store:C,after:z,onError:j});let B;try{B=k.apply(this&&this.$id===e?this:C,D)}catch(R){throw h0(O,R),R}return B instanceof Promise?B.then(R=>(h0($,R),R)).catch(R=>(h0(O,R),Promise.reject(R))):(h0($,B),B)};return P[lR]=!0,P[d7]=A,P},w={_p:r,$id:e,$onAction:sR.bind(null,f),$patch:v,$reset:b,$subscribe(k,A={}){if(d.has(k))return ZS;const P=sR(d,k,A.detached,()=>D()),D=o.run(()=>Je(()=>r.state.value[e],$=>{(A.flush==="sync"?c:u)&&k({storeId:e,type:"direct",events:h},$)},fd({},l,A)));return P},$dispose:x},C=mi(w);r._s.set(e,C);const T=(r._a&&r._a.runWithContext||T1e)(()=>r._e.run(()=>(o=lp()).run(()=>t({action:_}))));for(const k in T){const A=T[k];$t(A)&&!M1e(A)||ol(A)?a||(p&&E1e(A)&&($t(A)?A.value=p[k]:((A instanceof Set||A instanceof Map)&&A.clear(),KS(A,p[k]))),r.state.value[e][k]=A):typeof A=="function"&&(T[k]=_(A,k),s.actions[k]=A)}return fd(C,T),fd(_t(C),T),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:k=>{v(A=>{fd(A,k)})}}),r._p.forEach(k=>{const A=o.run(()=>k({store:C,app:r._a,pinia:r,options:s}));fd(C,A)}),p&&a&&n.hydrate&&n.hydrate(C.$state,p),u=!0,c=!0,C}function P1e(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function a(o,s){const l=cp();return o=o||(l?cr(eW,null):null),o&&km(o),o=Qq,o._s.has(e)||(i?tW(e,t,r,o):A1e(e,r,o)),o._s.get(e)}return a.$id=e,a}const D1e=-1,I1e=-2,$1e=-3,L1e=-4,R1e=-5,O1e=-6,B1e=-7,nW=2**32-1,YS=nW-1;function F1e(e){return!(!Number.isInteger(e)||e<0||e>YS)}function z1e(e){return!(!Number.isInteger(e)||e<0||e>nW)}function N1e(e){return Uint8Array.fromBase64(e).buffer}function V1e(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function j1e(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}const U1e=typeof Uint8Array.fromBase64=="function",H1e=typeof process=="object"&&process.versions?.node!==void 0,q1e=U1e?N1e:H1e?V1e:j1e;function W1e(e,t){return e}const G1e=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,uR=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Z1e={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{try{G1e.call(t)}catch(a){if(!uR)throw a;uR.call(t)}const i=globalThis[e];return n!==void 0?new i(t,n,r):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[YS]=void 0,delete t[YS],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}},K1e=Object.freeze(Z1e);function Y1e(e,t,n){return X1e(JSON.parse(e),t)}function X1e(e,t,n){const r=W1e(K1e);if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let o=null;function s(l,u=!1){if(l===D1e)return r.fromPrimitive(void 0);if(l===$1e)return r.fromPrimitive(NaN);if(l===L1e)return r.fromPrimitive(1/0);if(l===R1e)return r.fromPrimitive(-1/0);if(l===O1e)return r.fromPrimitive(-0);if(u||typeof l!="number")throw new Error("Invalid input");if(l in a)return a[l];if(l>=i.length)throw new Error("Invalid input");const c=i[l];if(!c||typeof c!="object")a[l]=r.fromPrimitive(c);else if(Array.isArray(c))if(typeof c[0]=="string"){const d=c[0],f=t&&Object.hasOwn(t,d)?t[d]:void 0;if(f){let h=c[1];if(typeof h!="number"&&(h=i.push(c[1])-1),Object.hasOwn(a,h))return a[l]=f(a[h]);if(o??=new Set,o.has(h))throw new Error("Invalid circular reference");return o.add(h),a[l]=f(s(h)),o.delete(h),a[l]}switch(d){case"Date":a[l]=r.fromISOString(c[1]);break;case"Set":const h=r.createSet();a[l]=h;for(let v=1;v<c.length;v+=1)r.addValue(h,s(c[v]));break;case"Map":const p=r.createMap();a[l]=p;for(let v=1;v<c.length;v+=2)r.addEntry(p,s(c[v]),s(c[v+1]));break;case"RegExp":a[l]=r.fromRegExpInfo(c[1],c[2]);break;case"Object":{const v=c[1];if(typeof i[v]=="object"&&i[v][0]!=="BigInt")throw new Error("Invalid input");a[l]=r.box(s(v));break}case"BigInt":a[l]=r.fromPrimitive(BigInt(c[1]));break;case"null":const g=r.createNullPrototypeObject();a[l]=g;for(let v=1;v<c.length;v+=2){const b=c[v];if(typeof b!="string")throw new Error("Cannot parse an object with a non-string key");if(b==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(g,b,s(c[v+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const v=s(c[1]);a[l]=r.fromViewInfo(d,v,c[2],c[3]);break}case"ArrayBuffer":{const v=c[1];if(typeof v!="string")throw new Error("Invalid ArrayBuffer encoding");a[l]=r.fromArrayBuffer(q1e(v));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[l]=r.fromStringValue(d,c[1]);break}default:throw new Error(`Unknown type ${d}`)}}else if(c[0]===B1e){const d=c[1];if(!z1e(d))throw new Error("Invalid input");const f=r.createSparseArray(d);a[l]=f;for(let h=2;h<c.length;h+=2){const p=c[h];if(!F1e(p)||p>=d)throw new Error("Invalid input");r.set(f,p,s(c[h+1]))}}else{const d=r.createArray(c.length);a[l]=d;for(let f=0;f<c.length;f+=1){const h=c[f];h!==I1e&&r.set(d,f,s(h))}}else{const d=r.createObject();a[l]=d;
5for(const f of Object.keys(c)){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(d,f,s(c[f]))}}return a[l]}return s(0)}const J1e=new Set(["link","style","script","noscript"]),Q1e=new Set(["title","titleTemplate","script","style","noscript"]),XS=new Set(["base","meta","link","style","script","noscript"]),ege=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),tge=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),cR=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),nge=new Set(["onload","onerror"]),rge=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ige=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),f7=e=>typeof e=="number"?Number.isFinite(e):e;function rW(e){return e==="__proto__"||e==="constructor"||e==="prototype"}const JS=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,dR={base:-10,title:10},age={critical:-8,high:-1,low:2},fR={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},oge=/@import/,kg=e=>e===""||e===!0;function sge(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=age[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:fR;if(t.tag in dR)n=dR[t.tag];else if(t.tag==="meta"){const a=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;a&&(n=fR.meta[a])}else if(t.tag==="link"&&t.props.rel)n=i.link[t.props.rel];else if(t.tag==="script"){const a=String(t.props.type);kg(t.props.async)?n=i.script.async:t.props.src&&!kg(t.props.defer)&&!kg(t.props.async)&&a!=="module"&&!a.endsWith("json")||t.innerHTML&&!a.endsWith("json")?n=i.script.sync:(kg(t.props.defer)&&t.props.src&&!kg(t.props.async)||a==="module")&&(n=i.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&oge.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function QS(e,t={},n){for(const r in e){const i=e[r],a=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?QS(i,t,a):typeof i=="function"&&(t[a]=i)}return t}const iW=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function aW(e,t,n,r){for(let i=n;i<e.length;i+=1)try{const a=r?r.run(()=>e[i](...t)):e[i](...t);if(a&&typeof a.then=="function")return Promise.resolve(a).then(()=>aW(e,t,i+1,r))}catch(a){return Promise.reject(a)}}function lge(e,t,n){if(e.length>0)return aW(e,t,0,iW(n))}function uge(e,t,n){if(e.length>0){const r=iW(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}}function h7(e,t){for(const n of[...e])n(t)}var cge=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let a=i.message;a||(a=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...i)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...i));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=QS(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=QS(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(lge,e,t)}callHookParallel(e,...t){return this.callHookWith(uge,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&h7(this._before,r);const i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&h7(this._after,r)}):(this._after&&r&&h7(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function dge(){return new cge}const fge=["name","property","http-equiv"],hge=new Set(["viewport","description","keywords","robots"]);function oW(e){const t=e.indexOf(":");if(t===-1)return!1;const n=e.indexOf(":",t+1),r=e.slice(t+1,n===-1?e.length:n);return r==="twitter"?e==="meta:twitter:image"||e.startsWith("meta:twitter:image:"):ige.has(r)}function eC(e){const{props:t,tag:n}=e;if(tge.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of fge)if(t[r]!==void 0){const i=t[r],a=i&&typeof i=="string"&&i.includes(":"),o=i&&hge.has(i),l=!(a||o)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(Q1e.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function sW(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;if(n)return n;const r=Object.keys(e.props).sort();return`${e.tag}:${r.map(i=>`${i}:${String(e.props[i])}`).join(",")}`}function E4(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const i=t?t(n,e):e;if(Array.isArray(i)){let a;for(let o=0;o<i.length;o++){const s=E4(i[o],t);a?a[o]=s:s!==i[o]&&(a=i.slice(0,o),a[o]=s)}return a||i}if(i?.constructor===Object){let a;for(const o in i){const s=rW(o),l=s?void 0:E4(i[o],t,o);if(!a&&(s||o==="_resolver"||l!==i[o])){a={};for(const c in i){if(c===o)break;a[c]=i[c]}}a&&!s&&(a[o]=l)}return a||i}return i}const pge=/[\s"'<>/=\x00-\x1F\x7F]/;function mge(e,t){const n=e==="style"?new Map:new Set;function r(i){if(i==null||i===void 0)return;const a=String(i).trim();if(a)if(e==="style"){const[o,...s]=a.split(":").map(l=>l?l.trim():"");o&&s.length&&n.set(o,s.join(":"))}
5else a.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(i=>r(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,a])=>{a&&a!=="false"&&(e==="style"?n.set(String(i).trim(),String(a)):r(i))}),n}function lW(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=XS.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";for(const r of Object.keys(t)){if(rW(r))continue;const i=r.startsWith("data-"),a=n&&!cR.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||pge.test(o)))continue;const s=t[r];if(s===null){e.props[o]=null;continue}if(r==="class"||r==="style"){e.props[r]=mge(r,s);continue}if(cR.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof s=="object"){let c=t.type;if(t.type||(c="application/json"),!c?.endsWith("json")&&c!=="speculationrules")continue;t.type=c,e.props.type=c,e[r]=JSON.stringify(s)}else e[r]=s;continue}const l=String(s),u=e.tag==="meta"&&o==="content";l==="true"||l===""?e.props[o]=i||u?l:!0:!s&&i&&l==="false"?e.props[o]="false":s!==void 0&&(e.props[o]=s)}return e}function gge(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=lW({tag:e,props:{}},n);return r.key&&J1e.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function yge(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,a)=>{for(let o=0;o<t.length;o++)a=t[o](i,a);return a};e=n(void 0,e);const r=[];return e=E4(e,n),Object.entries(e||{}).forEach(([i,a])=>{if(a!==void 0)for(const o of Array.isArray(a)?a:[a])r.push(gge(i,o))}),r.flat()}function hR(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function vge(e={}){const t=dge();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,i=new Map,a=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:s=>hR(o,s),push(s,l){const u={...l||{}};delete u.head;const c=u._index??o._entryCount++,d={_i:c,input:s,options:u},f={_poll(h=!1){o.dirty=!0,!h&&a.add(c),t.callHook("entries:updated",o)},dispose(){r.delete(c)&&o.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=h,r.set(c,d),f._poll())}};return f.patch(s),f},async resolveTags(){const s={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",s);a.size;){const f=a.values().next().value;a.delete(f);const h=r.get(f);if(h){const p={tags:yge(h.input,e.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((g,v)=>(g._w=sge(o,g),g._p=(h._i<<10)+v,g._d=eC(g),g._d||(g._h=sW(g)),g))}}let l=!1;s.entries.flatMap(f=>(f._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(JS).reduce((f,h)=>{const p=h._d||h._h;if(!f.has(p))return f.set(p,h);const g=f.get(p);if((h?.tagDuplicateStrategy||(rge.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const b={...g.props};Object.entries(h.props).forEach(([x,_])=>b[x]=x==="style"?new Map([...g.props.style||new Map,..._]):x==="class"?new Set([...g.props.class||new Set,..._]):_),f.set(p,{...h,props:b})}else h._p>>10===g._p>>10&&h.tag==="meta"&&oW(p)?(f.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&f.set(p,h);return f},s.tagMap);const u=s.tagMap.get("title"),c=s.tagMap.get("titleTemplate");if(o._title=u?.textContent,c){const f=c?.textContent;if(o._titleTemplate=f,f){let h=typeof f=="function"?f(u?.textContent):f;typeof h=="string"&&!o.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?s.tagMap.delete("title"):s.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}s.tags=Array.from(s.tagMap.values()),l&&(s.tags=s.tags.flat().sort(JS)),await t.callHook("tags:beforeResolve",s),await t.callHook("tags:resolve",s),await t.callHook("tags:afterResolve",s);const d=[];for(const f of s.tags){const{innerHTML:h,tag:p,props:g}=f;if(ege.has(p)&&!(Object.keys(g).length===0&&!f7(f.innerHTML)&&!f7(f.textContent))&&!(p==="meta"&&!f7(g.content)&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(String(g.type).endsWith("json")){const v=typeof h=="string"?h:JSON.stringify(h);f.innerHTML=v.replace(/</g,"\\u003C")}else typeof h=="string"&&(f.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=eC(f)}d.push(f)}}return d},invalidate(){for(const s of r.values())a.add(s._i);o.dirty=!0,t.callHook("entries:updated",o)}};
5return(e?.plugins||[]).forEach(s=>hR(o,s)),o.hooks.callHook("init",o),e.init?.forEach(s=>s&&o.push(s)),o}function _ge(){}function bge(e,t){t.forEach(n=>{let r=e,i=e;n.forEach(({type:a,key:o,args:s})=>{a==="get"?(i=r,r=r[o]):a==="apply"&&(r=Reflect.apply(r,i,s))})})}function pR(e,t){let n,r=e;for(const i of t){if(r==null)return{owner:void 0,value:void 0};n=r,r=r[i]}return{owner:n,value:r}}function xge(e={}){const t=[];let n,r=-1;function i(a){const o=new Map;return new Proxy(_ge,{get(s,l){if(n){const{value:c}=pR(n,a),d=c==null?void 0:Reflect.get(c,l,c);if(typeof d!="function")return d}else if(a.length)t[r].push({type:"get",key:l});else{const c=Reflect.get(e,l);if(typeof c<"u")return c;r++,t[r]=[{type:"get",key:l}]}let u=o.get(l);return u||(u=i([...a,l]),o.set(l,u)),u},apply(s,l,u){if(n){const{owner:c,value:d}=pR(n,a);typeof d=="function"&&Reflect.apply(d,c,u)}else t[r].push({type:"apply",key:"",args:u})}})}return{proxy:i([]),stack:t,resolve(a){n=a,bge(a,t),t.length=0}}}function wge(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}const Sge=["preconnect","dns-prefetch"];function Cge(e,t,n){const r=typeof t=="string"?{src:t}:t,i=n||{},a=wge(r),o=e._scripts||(e._scripts=Object.create(null)),s=Object.prototype.hasOwnProperty.call(o,a)?o[a]:void 0;if(s)return s.setupTriggerHandler(i.trigger),s;i.beforeInit?.();const l=g=>{h.status=g,e.hooks.callHook("script:updated",p)};nge.forEach(g=>{const v=g,b=typeof r[v]=="function"?r[v].bind(i.eventContext):null;r[v]=x=>{h.status!=="removed"&&(l(g==="onload"?"loaded":g==="onerror"?"error":"loading"),b?.(x))}});const u={loaded:[],error:[]},c=new Set,d=(g,v,b)=>{if(e.ssr)return;let x;if(b?.key){if(x=`${g}:${b.key}`,c.has(x))return;c.add(x)}return u[g]?(u[g].push(v),()=>{const _=u[g]?.indexOf(v)??-1;_!==-1&&u[g]?.splice(_,1),x&&c.delete(x)}):(g==="loaded"&&h.status==="loaded"?v(h.instance):g==="error"&&h.status==="error"&&v(),()=>{x&&c.delete(x)})},f=new Promise(g=>{if(e.ssr)return;const v=x=>queueMicrotask(()=>g(x)),b=e.hooks.hook("script:updated",({script:x})=>{if(x!==h)return;const _=x.status;if(_==="loaded"||_==="error"||_==="removed"){if(_==="loaded")if(typeof i.use=="function"){const w=i.use();w&&v(w)}else v({});else(_==="error"||_==="removed")&&g(!1);b()}})}),h={_loadPromise:f,instance:!e.ssr&&i?.use?.()||null,proxy:null,id:a,status:"awaitingLoad",remove(){const g=!!h.entry;return h._triggerAbortControllers?.forEach(v=>v.abort()),h._triggerAbortControllers?.clear(),h._triggerPromises=[],h._warmupEl?.dispose(),h._warmupEl=void 0,h.entry&&(h.entry.dispose(),h.entry=void 0),o[a]===h&&delete o[a],h.status!=="removed"&&l("removed"),g},warmup(g){const{src:v}=r,b=!v.startsWith("/")||v.startsWith("//"),x=g&&Sge.includes(g);let _=v;if(!g||x&&!b)return;if(x){const C=new URL(v);_=`${C.protocol}//${C.host}`}const w={href:_,rel:g,crossorigin:typeof r.crossorigin<"u"?r.crossorigin:b?"anonymous":void 0,referrerpolicy:typeof r.referrerpolicy<"u"?r.referrerpolicy:b?"no-referrer":void 0,fetchpriority:typeof r.fetchpriority<"u"?r.fetchpriority:"low",integrity:r.integrity,as:g==="preload"?"script":void 0};return h._warmupEl=e.push({link:[w]},{head:e,tagPriority:"high"}),h._warmupEl},load(g){if(h.status==="removed")return f;if(h._triggerAbortControllers?.forEach(v=>v.abort()),h._triggerAbortControllers?.clear(),h._triggerPromises=[],!h.entry){l("loading");const v={defer:!0,fetchpriority:"low"};r.src&&(r.src.startsWith("http")||r.src.startsWith("//"))&&(v.crossorigin="anonymous",v.referrerpolicy="no-referrer"),h.entry=e.push({script:[{...v,...r}]},i)}return g&&d("loaded",g),f},onLoaded(g,v){return d("loaded",g,v)},onError(g,v){return d("error",g,v)},setupTriggerHandler(g){if(h.status==="awaitingLoad")if((typeof g>"u"||g==="client")&&!e.ssr||g==="server")h.load();else if(g instanceof Promise){if(e.ssr)return;const v=new AbortController;h._triggerAbortControllers=h._triggerAbortControllers||new Set,h._triggerAbortControllers.add(v);const b=new Promise(_=>{v.signal.addEventListener("abort",()=>{h._triggerAbortControllers?.delete(v),_()})});h._triggerAbortController=v,h._triggerPromises=h._triggerPromises||[];
5const x=Promise.race([g.then(_=>typeof _>"u"||_?h.load:void 0),b]).catch(()=>{}).then(_=>{_?.()}).finally(()=>{h._triggerAbortControllers?.delete(v);const _=h._triggerPromises?.indexOf(x)??-1;_!==-1&&h._triggerPromises?.splice(_,1)});h._triggerPromises.push(x)}else typeof g=="function"&&g(h.load)},_cbs:u};f.then(g=>{g!==!1?(h.instance=g,u.loaded?.forEach(v=>v(g)),u.loaded=null):(h.status==="error"&&u.error?.forEach(v=>v()),u.loaded=null,u.error=null)});const p={script:h};if(h.setupTriggerHandler(i.trigger),i.use){const{proxy:g,resolve:v}=xge(e.ssr?{}:i.use()||{});h.proxy=g,h.onLoaded(v)}return!i.warmupStrategy&&(typeof i.trigger>"u"||i.trigger==="client")&&(i.warmupStrategy="preload"),i.warmupStrategy&&h.warmup(i.warmupStrategy),o[a]=h,h}const p7="%separator";function Tge(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");r=e[t.substring(0,i)]?.[t.substring(i+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function o3(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const a=i.match(/%\w+(?:\.\w+)?/g);if(!a)return e;const o=e.includes(p7);return e=e.replace(/%\w+(?:\.\w+)?/g,s=>{if(s===p7||!a.includes(s))return s;const l=Tge(t,s.slice(1),r);return l!==void 0?l:s}).trim(),o&&(e=e.split(p7).map(s=>s.trim()).filter(s=>s!=="").join(n?` ${n} `:" ")),e}const mR=e=>e.includes(":key")?e:e.split(":").join(":key:"),kge={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const i=String(r);if(i.startsWith("before:")){const a=mR(i.slice(7)),o=e.tagMap.get(a);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,t=!0)}else if(i.startsWith("after:")){const a=mR(i.slice(6)),o=e.tagMap.get(a);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,t=!0)}}t&&(e.tags=e.tags.sort(JS))}}},Ege={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function tC(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>tC(n)));if(e?.constructor===Object){const n={};for(const r of Object.keys(e))n[r]=await tC(e[r]);return n}return e}const Mge={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(tC(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},Age={meta:"content",link:"href",htmlAttrs:"lang"},Pge=["innerHTML","textContent"],Dge=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const n=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{const r=t.get("templateParams")?.props||{},i=r.separator||"|";delete r.separator,r.pageTitle=o3(r.pageTitle||e._title||"",r,i);for(const a of n){if(a.processTemplateParams===!1)continue;const o=Age[a.tag];if(o&&typeof a.props[o]=="string")a.props[o]=o3(a.props[o],r,i);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const s of Pge)typeof a[s]=="string"&&(a[s]=o3(a[s],r,i,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=o3(n.textContent,e._templateParams,e._separator))}}}),Ige=(e,t)=>
5$t(t)?Le(t):t,iM="usehead";function $ge(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(iM,e)}}.install}function uW(){if(cp()){const e=cr(iM);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Lge(e,t={}){const n=t.head||uW();return n.ssr?n.push(e||{},t):Rge(n,e,t)}function Rge(e,t,n={}){const r=qa();if(r&&!r.active)return{patch(){},dispose(){},_poll(){}};const i=G(!1);let a;return ii(()=>{const s=i.value?{}:E4(t,Ige);a?a.patch(s):a=e.push(s,n)}),$n()&&(Wa(()=>{a.dispose()}),UH(()=>{i.value=!0}),jH(()=>{i.value=!1})),a}function Oge(e,t){if(!t)return;const n=o=>s=>{const l=o(s)??(()=>{});return vo(l),l},r=e.onLoaded,i=e.onError;e.onLoaded=n(r),e.onError=n(i);const a=e._triggerAbortController;vo(()=>{a?.abort()})}function gR(e,t){const n=typeof e=="string"?{src:e}:e,r=t||{},i=r?.head||uW();r.head=i;const a=$n();if(r.eventContext=a,a&&typeof r.trigger>"u")r.trigger=Ot;else if($t(r.trigger)||typeof r.trigger=="function"&&r.trigger.length===0){const s=r.trigger;let l;r.trigger=new Promise(u=>{l=Je(s,c=>{c&&u(!0)},{immediate:!0}),vo(()=>u(!1),!0)}).then(u=>(l?.(),u))}i._scriptStatusWatcher=i._scriptStatusWatcher||i.hooks.hook("script:updated",({script:s})=>{s._statusRef&&(s._statusRef.value=s.status)});const o=Cge(i,n,r);return o._statusRef=o._statusRef||G(o.status),Oge(o,a),new Proxy(o,{get(s,l,u){return Reflect.get(s,l==="status"?"_statusRef":l,u)}})}function aM(e){const t=e||tM();return t?.ssrContext?.head||t?.runWithContext(()=>{if(cp())return cr(iM)})}function mo(e,t={}){const n=aM(t.nuxt);if(n)return Lge(e,{head:n,...t})}const oM=e=>e.startsWith("/");function cW(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Bge(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cW(e.default)}const or=Object.assign;function m7(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ns(i)?i.map(e):e(i)}return n}const Cy=()=>{},Ns=Array.isArray;function yR(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const dW=Symbol("");function Em(e,t){return or(new Error,{type:e,[dW]:!0},t)}function Du(e,t){return e instanceof Error&&dW in e&&(t==null||!!(e.type&t))}const Fge=Symbol(""),vR=Symbol(""),sM=Symbol(""),lM=Symbol(""),nC=Symbol("");function fW(e){return cr(lM)}const E0=typeof document<"u",hW=/#/g,zge=/&/g,Nge=/\//g,Vge=/=/g,jge=/\?/g,pW=/\+/g,Uge=/%5B/g,Hge=/%5D/g,mW=/%5E/g,qge=/%60/g,gW=/%7B/g,Wge=/%7C/g,yW=/%7D/g,Gge=/%20/g;function uM(e){return e==null?"":encodeURI(""+e).replace(Wge,"|").replace(Uge,"[").replace(Hge,"]")}function Zge(e){return uM(e).replace(gW,"{").replace(yW,"}").replace(mW,"^")}function rC(e){return uM(e).replace(pW,"%2B").replace(Gge,"+").replace(hW,"%23").replace(zge,"%26").replace(qge,"`").replace(gW,"{").replace(yW,"}").replace(mW,"^")}function Kge(e){return rC(e).replace(Vge,"%3D")}function Yge(e){return uM(e).replace(hW,"%23").replace(jge,"%3F")}function Xge(e){return Yge(e).replace(Nge,"%2F")}function M4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Jge=/\/$/,Qge=e=>e.replace(Jge,"");function g7(e,t,n="/"){let r,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(r=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=rye(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:M4(o)}}function eye(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _R(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function tye(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Mm(t.matched[r],n.matched[i])&&vW(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Mm(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vW(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!nye(e[n],t[n]))return!1;return!0}function nye(e,t){return Ns(e)?bR(e,t):Ns(t)?bR(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function bR(e,t){return Ns(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function rye(e,t){if(oM(e))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(o).join("/")}const no={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function iye(e){if(!e)if(E0){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Qge(e)}const aye=/^[^#]+#/;function oye(e,t){return e.replace(aye,"#")+t}function sye(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const cM=()=>history.scrollRestoration==="manual"?{left:window.scrollX,top:window.scrollY}:null;function lye(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=sye(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}
vendor: 4,220 bytes, line 5
5function xR(e,t){return(history.state?history.state.position-t:-1)+e}const iC=new Map;function uye(e){iC.set(e,cM())}function cye(e){const t=iC.get(e);return iC.delete(e),t}function dye(e){return typeof e=="string"||e&&typeof e=="object"}function _W(e){return typeof e=="string"||typeof e=="symbol"}function fye(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(pW," "),a=i.indexOf("="),o=M4(a<0?i:i.slice(0,a)),s=a<0?null:M4(i.slice(a+1));if(o in t){let l=t[o];Ns(l)||(l=t[o]=[l]),l.push(s)}else t[o]=s}return t}function wR(e){let t="";for(let n in e){const r=e[n];if(n=Kge(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ns(r)?r.map(i=>i&&rC(i)):[r&&rC(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function hye(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ns(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}function Eg(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function vd(e,t,n,r,i,a=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=f=>{f===!1?l(Em(4,{from:n,to:t})):f instanceof Error?l(f):dye(f)?l(Em(2,{from:t,to:f})):(o&&r.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),s())},c=a(()=>e.call(r&&r.instances[i],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function y7(e,t,n,r,i=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(cW(l)){const u=(l.__vccOpts||l)[t];u&&a.push(vd(u,n,r,o,s,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const d=Bge(c)?c.default:c;o.mods[s]=c,o.components[s]=d;const f=(d.__vccOpts||d)[t];return f&&vd(f,n,r,o,s,i)()}))}}return a}function pye(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>Mm(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Mm(u,l))||i.push(l))}return[n,r,i]}let mye=()=>location.protocol+"//"+location.host;function bW(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let o=i.includes(e.slice(a))?e.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),_R(s,"")}return _R(n,e)+r+i}function gye(e,t,n,r){let i=[],a=[],o=null;const s=({state:f})=>{const h=bW(e,location),p=n.value,g=t.value;let v=0;if(f){if(n.value=h,t.value=f,o&&o===p){o=null;return}v=g?f.position-g.position:0}else r(h);i.forEach(b=>{b(n.value,p,{delta:v,type:"pop",direction:v?v>0?"forward":"back":""})})};function l(){o=n.value}function u(f){i.push(f);const h=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return a.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(or({},f.state,{scroll:cM()}),"")}function d(){for(const f of a)f();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",c)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",c),{pauseListeners:l,listen:u,destroy:d}}function SR(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function yye(e){const{history:t,location:n}=window,r={value:bW(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:mye()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function o(l,u){a(l,or({},t.state,SR(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),r.value=l}function s(l,u){const c=or({},i.value,t.state,{forward:l,scroll:cM()});a(c.current,c,!0),a(l,or({},SR(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:i,push:s,replace:o}}function vye(e){e=iye(e);const t=yye(e),n=gye(e,t.state,t.location,t.replace);function r(a,o=!0){o||n.pauseListeners(),history.go(a)}
vendor: 4,349 bytes, line 5
5const i=or({location:"",base:e,go:r,createHref:oye.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}const _ye={type:0,value:""},bye=/[a-zA-Z0-9_]/;function xye(e){if(!e)return[[]];if(e==="/")return[[_ye]];if(!oM(e))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function d(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s<e.length;)switch(l=e[s++],n){case 0:l==="\\"?(r=n,n=4):l==="/"?(u&&d(),o()):l===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:bye.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state")}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),i}const CR="[^/]+?",wye={sensitive:!1,strict:!1,start:!0,end:!0},Sye=/[.+*?^${}()[\]/\\]/g;function Cye(e,t){const n=or({},wye,t),r=[];let i=n.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const f=u[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(i+="/"),i+=f.value.replace(Sye,"\\$&"),h+=40;else if(f.type===1){const{value:p,repeatable:g,optional:v,regexp:b}=f;a.push({name:p,repeatable:g,optional:v});const x=b||CR;if(x!==CR){h+=10;try{new RegExp(`(${x})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${x}): `+w.message)}}let _=g?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;d||(_=v&&u.length<2?`(?:/${_})`:"/"+_),v&&(_+="?"),i+=_,h+=20,v&&(h+=-8),g&&(h+=-20),x===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function s(u){const c=u.match(o),d={};if(!c)return null;for(let f=1;f<c.length;f++){const h=c[f]||"",p=a[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of f)if(h.type===0)c+=h.value;else if(h.type===1){const{value:p,repeatable:g,optional:v}=h,b=p in u?u[p]:"";if(Ns(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const x=Ns(b)?b.join("/"):b;if(!x)if(v)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);c+=x}}return c||"/"}return{re:o,score:r,keys:a,parse:s,stringify:l}}function Tye(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function xW(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=Tye(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(TR(r))return 1;if(TR(i))return-1}return i.length-r.length}function TR(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const kye={strict:!1,end:!0,sensitive:!1};function Eye(e,t,n){const r=Cye(xye(e.path),n),i=or(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Mye(e,t){const n=[],r=new Map;t=yR(kye,t);function i(d){return r.get(d)}function a(d,f,h){const p=!h,g=ER(d);g.aliasOf=h&&h.record;const v=yR(t,d),b=[g];if("alias"in d){const w=typeof d.alias=="string"?[d.alias]:d.alias;for(const C of w)b.push(ER(or({},g,{components:h?h.record.components:g.components,path:C,aliasOf:h?h.record:g})))}let x,_;for(const w of b){const{path:C}=w;if(f&&!oM(C)){const T=f.record.path,k=T[T.length-1]==="/"?"":"/";w.path=f.record.path+(C&&k+C)}if(x=Eye(w,f,v),h?h.alias.push(x):(_=_||x,_!==x&&_.alias.push(x),p&&d.name&&!MR(x)&&o(d.name)),wW(x)&&l(x),g.children){const T=g.children;for(let k=0;k<T.length;k++)a(T[k],x,h&&h.children[k])}h=h||x}return _?()=>{o(_)}:Cy}
vendor: 4,921 bytes, line 5
5function o(d){if(_W(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function s(){return n}function l(d){const f=Dye(d,n);n.splice(f,0,d),d.record.name&&!MR(d)&&r.set(d.record.name,d)}function u(d,f){let h,p={},g,v;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Em(1,{location:d});v=h.record.name,p=or(kR(f.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),d.params&&kR(d.params,h.keys.map(_=>_.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(_=>_.re.test(g)),h&&(p=h.parse(g),v=h.record.name,h.keys.forEach(_=>{_.optional&&!p[_.name]&&delete p[_.name]}));else{if(h=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw Em(1,{location:d,currentLocation:f});v=h.record.name,p=or({},f.params,d.params),g=h.stringify(p)}const b=[];let x=h;for(;x;)b.unshift(x.record),x=x.parent;return{name:v,path:g,params:p,matched:b,meta:Pye(b)}}e.forEach(d=>a(d));function c(){n.length=0,r.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function kR(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ER(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Aye(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Aye(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function MR(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pye(e){return e.reduce((t,n)=>or(t,n.meta),{})}function Dye(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;xW(e,t[a])<0?r=a:n=a+1}const i=Iye(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Iye(e){let t=e;for(;t=t.parent;)if(wW(t)&&xW(e,t)===0)return t}function wW({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function AR(e){const t=cr(sM),n=cr(lM),r=W(()=>{const l=m(e.to);return t.resolve(l)}),i=W(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Mm.bind(null,c));if(f>-1)return f;const h=PR(l[u-2]);return u>1&&PR(c)===h&&d[d.length-1].path!==h?d.findIndex(Mm.bind(null,l[u-2])):f}),a=W(()=>i.value>-1&&Oye(n.params,r.value.params)),o=W(()=>i.value>-1&&i.value===n.matched.length-1&&vW(n.params,r.value.params));function s(l={}){if(Rye(l)){const u=t[m(e.replace)?"replace":"push"](m(e.to)).catch(Cy);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:W(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function $ye(e){return e.length===1?e[0]:e}const Lye=Q({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:AR,setup(e,{slots:t}){const n=mi(AR(e)),{options:r}=cr(sM),i=W(()=>({[DR(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[DR(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&$ye(t.default(n));return e.custom?a:Nt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function Rye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Oye(e,t){for(const n in t){const r=t[n],i=e[n];if(Ns(r)){if(!Ns(i)||i.length!==r.length||r.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}else if(r!==i)return!1}return!0}function PR(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const DR=(e,t,n)=>e??t??n,Bye=Q({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=cr(nC),i=W(()=>e.route||r.value),a=cr(vR,0),o=W(()=>{let u=m(a);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=W(()=>i.value.matched[o.value]);Si(vR,W(()=>o.value+1)),Si(Fge,s),Si(nC,i);const l=G();return Je(()=>[l.value,s.value,e.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!
5h||!Mm(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,d=s.value,f=d&&d.components[c];if(!f)return IR(n.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=Nt(f,or({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return IR(n.default,{Component:v,route:u})||v}}});function IR(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const SW=Bye;function Fye(e){const t=Mye(e.routes,e),n=e.parseQuery||fye,r=e.stringifyQuery||wR,i=e.history,a=Eg(),o=Eg(),s=Eg(),l=Bt(no),u=Bt(0);let c=no;E0&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=m7.bind(null,xe=>""+xe),f=m7.bind(null,Xge),h=m7.bind(null,M4);function p(xe,Pe){let je,Fe;_W(xe)?(je=t.getRecordMatcher(xe),Fe=Pe):Fe=xe;const re=t.addRoute(Fe,je);return u.value++,()=>{re(),u.value++}}function g(xe){const Pe=t.getRecordMatcher(xe);Pe&&(t.removeRoute(Pe),u.value++)}function v(){t.clearRoutes(),u.value++}function b(){return t.getRoutes().map(xe=>xe.record)}function x(xe){return!!t.getRecordMatcher(xe)}function _(xe,Pe){if(u.value,typeof xe=="string"){Pe=Pe||(xe.startsWith("/")?no:l.value);const Me=g7(n,xe,Pe.path),ve=t.resolve({path:Me.path},Pe),X=i.createHref(Me.fullPath);return or(Me,ve,{params:h(ve.params),redirectedFrom:void 0,href:X})}Pe=or({},Pe||(xe.path!=null&&xe.path.startsWith("/")&&!("name"in xe&&xe.name)?no:l.value));let je;if(xe.path!=null)je=or({},xe,{path:g7(n,xe.path,Pe.path).path});else{const Me=or({},xe.params);for(const ve in Me)Me[ve]==null&&delete Me[ve];je=or({},xe,{params:f(Me)}),Pe.params=f(Pe.params)}const Fe=t.resolve(je,Pe),re=xe.hash||"";Fe.params=d(h(Fe.params));const le=eye(r,or({},xe,{hash:Zge(re),path:Fe.path})),ye=i.createHref(le);return or({fullPath:le,hash:re,query:r===wR?hye(xe.query):xe.query||{}},Fe,{redirectedFrom:void 0,href:ye})}function w(xe){return typeof xe=="string"?g7(n,xe,l.value.path):or({},xe)}function C(xe,Pe){if(c!==xe)return Em(8,{from:Pe,to:xe})}function T(xe){return P(xe)}function k(xe){return T(or(w(xe),{replace:!0}))}function A(xe,Pe){const je=xe.matched[xe.matched.length-1];if(je&&je.redirect){const{redirect:Fe}=je;let re=typeof Fe=="function"?Fe(xe,Pe):Fe;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=w(re):{path:re},re.params={}),or({query:xe.query,hash:xe.hash,params:re.path!=null?{}:xe.params},re)}}function P(xe,Pe){const je=c=_(xe),Fe=l.value,re=xe.state,le=xe.force,ye=xe.replace===!0,Me=A(je,Fe);if(Me)return P(or(w(Me),{state:typeof Me=="object"?or({},re,Me.state):re,force:le,replace:ye}),Pe||je);const ve=je;ve.redirectedFrom=Pe;let X;return!le&&tye(r,Fe,je)&&(X=Em(16,{to:ve,from:Fe}),Re(Fe,Fe,!0,!1)),(X?Promise.resolve(X):O(ve,Fe)).catch(ee=>Du(ee)?Du(ee,2)?ee:ce(ee):ne(ee,ve,Fe)).then(ee=>{if(ee){if(Du(ee,2))return P(or({replace:ye},w(ee.to),{state:typeof ee.to=="object"?or({},re,ee.to.state):re,force:le}),Pe||ve)}else ee=j(ve,Fe,!0,ye,re);return z(ve,Fe,ee),ee})}function D(xe,Pe){const je=C(xe,Pe);return je?Promise.reject(je):Promise.resolve()}function $(xe){const Pe=ke.values().next().value;return Pe&&typeof Pe.runWithContext=="function"?Pe.runWithContext(xe):xe()}function O(xe,Pe){let je;const[Fe,re,le]=pye(xe,Pe);je=y7(Fe.reverse(),"beforeRouteLeave",xe,Pe);for(const Me of Fe)Me.leaveGuards.forEach(ve=>{je.push(vd(ve,xe,Pe))});const ye=D.bind(null,xe,Pe);return je.push(ye),nt(je).then(()=>{je=[];for(const Me of a.list())je.push(vd(Me,xe,Pe));return je.push(ye),nt(je)}).then(()=>{je=y7(re,"beforeRouteUpdate",xe,Pe);for(const Me of re)Me.updateGuards.forEach(ve=>{je.push(vd(ve,xe,Pe))});return je.push(ye),nt(je)}).then(()=>{je=[];for(const Me of le)if(Me.beforeEnter)if(Ns(Me.beforeEnter))for(const ve of Me.beforeEnter)je.push(vd(ve,xe,Pe));else je.push(vd(Me.beforeEnter,xe,Pe));return je.push(ye),nt(je)}).then(()=>(xe.matched.forEach(Me=>Me.enterCallbacks={}),je=y7(le,"beforeRouteEnter",xe,Pe,$),je.push(ye),nt(je))).then(()=>{je=[];for(const Me of o.list())je.push(vd(Me,xe,Pe));return je.push(ye),nt(je)}).catch(Me=>Du(Me,8)?Me:Promise.reject(Me))}
5function z(xe,Pe,je){s.list().forEach(Fe=>$(()=>Fe(xe,Pe,je)))}function j(xe,Pe,je,Fe,re){const le=C(xe,Pe);if(le)return le;const ye=Pe===no,Me=E0?history.state:{};je&&(Fe||ye?i.replace(xe.fullPath,or({scroll:ye&&Me&&Me.scroll},re)):i.push(xe.fullPath,re)),l.value=xe,Re(xe,Pe,je,ye),ce()}let B;function R(){B||(B=i.listen((xe,Pe,je)=>{if(!Ve.listening)return;const Fe=_(xe),re=A(Fe,Ve.currentRoute.value);if(re){P(or(re,{replace:!0,force:!0}),Fe).catch(Cy);return}c=Fe;const le=l.value;E0&&je.delta&&uye(xR(le.fullPath,je.delta)),O(Fe,le).catch(ye=>Du(ye,12)?ye:Du(ye,2)?(P(or(w(ye.to),{force:!0}),Fe).then(Me=>{Du(Me,20)&&!je.delta&&je.type==="pop"&&i.go(-1,!1)}).catch(Cy),Promise.reject()):(je.delta&&i.go(-je.delta,!1),ne(ye,Fe,le))).then(ye=>{ye=ye||j(Fe,le,!1),ye&&(je.delta&&!Du(ye,8)?i.go(-je.delta,!1):je.type==="pop"&&Du(ye,20)&&i.go(-1,!1)),z(Fe,le,ye)}).catch(Cy)}))}let J=Eg(),K=Eg(),Z;function ne(xe,Pe,je){ce(xe);const Fe=K.list();return Fe.length?Fe.forEach(re=>re(xe,Pe,je)):console.error(xe),Promise.reject(xe)}function se(){return Z&&l.value!==no?Promise.resolve():new Promise((xe,Pe)=>{J.add([xe,Pe])})}function ce(xe){return Z||(Z=!xe,R(),J.list().forEach(([Pe,je])=>xe?je(xe):Pe()),J.reset()),xe}function Re(xe,Pe,je,Fe){const{scrollBehavior:re}=e;if(!E0||!re)return Promise.resolve();const le=!je&&cye(xR(xe.fullPath,0))||(Fe||!je)&&history.state&&history.state.scroll||null;return At().then(()=>re(xe,Pe,le)).then(ye=>xe===l.value&&ye&&lye(ye)).catch(ye=>xe===l.value&&ne(ye,xe,Pe))}const Ue=xe=>i.go(xe);let $e;
5const ke=new Set,Ve={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:v,hasRoute:x,getRoutes:b,resolve:_,options:e,push:T,replace:k,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:K.add,isReady:se,install(xe){xe.component("RouterLink",Lye),xe.component("RouterView",SW),xe.config.globalProperties.$router=Ve,Object.defineProperty(xe.config.globalProperties,"$route",{enumerable:!0,get:()=>m(l)}),E0&&!$e&&l.value===no&&($e=!0,T(i.location).catch(Fe=>{}));const Pe={};for(const Fe in no)Object.defineProperty(Pe,Fe,{get:()=>l.value[Fe],enumerable:!0});xe.provide(sM,Ve),xe.provide(lM,Wl(Pe)),xe.provide(nC,l);const je=xe.unmount;ke.add(xe),xe.unmount=function(){ke.delete(xe),ke.size<1&&(c=no,B&&B(),B=null,l.value=no,$e=!1,Z=!1),je()}}};function nt(xe){return xe.reduce((Pe,je)=>Pe.then(()=>$(je)),Promise.resolve())}return Ve}const CW=(e,t)=>({default:()=>e?Nt(b0e,e===!0?{}:e,t):t.default?.()}),zye=/(:\w+)\([^)]+\)/g,Nye=/(:\w+)[?+*]/g,Vye=/:\w+/g;function $R(e){const t=e?.meta.key??e.path.replace(zye,"$1").replace(Nye,"$1").replace(Vye,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function jye(e,t){return e===t||t===no?!1:$R(e)!==$R(t)?!0:!e.matched.every((r,i)=>r.components&&r.components.default===t.matched[i]?.components?.default)}const Uye=/^[a-z][a-z0-9-]*$/i;function Hye(e,t){return e&&Uye.test(e)?e:t}function LR(e){return Array.isArray(e)?e:[e]}function TW(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?LR(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?LR(n.onBeforeLeave):void 0});return Gd(...t)}const qye={scrollBehavior(e,t,n){const r=vt(),i=ai(),a=i.options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:kW(e.hash),behavior:a}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===no?RR(e,t,n,a):new Promise(s=>{const l=()=>{requestAnimationFrame(()=>{if(i.currentRoute.value.fullPath!==e.fullPath){s(!1);return}s(RR(e,t,n,a))})};r.hooks.hookOnce("page:loading:end",()=>{const u=r["~transitionPromise"];u?u.then(l):l()})})}};function kW(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function RR(e,t,n,r){return n||(e.hash?{el:e.hash,top:kW(e.hash),behavior:jye(e,t)?r:"instant"}:{left:0,top:0})}const Wye={linkActiveClass:"active",linkExactActiveClass:"active-strict",hashMode:!1,scrollBehaviorType:"auto"},Fu={...Wye,...qye},EW=(()=>{const e={};return(t,n)=>{let r=[];return n.charCodeAt(n.length-1)===47&&(n=n.slice(0,-1)),n==="/_nuxt"?r.push({data:e}):n.charCodeAt(n.length-1)===47&&n==="/_nuxt/"&&r.push({data:e}),r.reverse()}})(),Gye=EW,Zye=function(t){if(!t.includes("%"))return t;const n=t.indexOf("?"),r=n===-1?t:t.slice(0,n);try{return n===-1?decodeURI(r):decodeURI(r)+t.slice(n)}catch{return t}},OR=(e,t)=>{if(typeof e!="string")return e;const n=Zye(e);return t?n.toLowerCase():n},MW=e=>Fu.sensitive?Gd({},...EW("",OR(e,!1)).map(t=>t.data).reverse()):Gd({},...Gye("",OR(e,!0)).map(t=>t.data).reverse()),Kye=MW;let kb;function Yye(){let e;return e=$fetch(eM(`builds/meta/${Ga().app.buildId}.json`),{responseType:"json"}).then(t=>{if(!t||typeof t!="object"||!Array.isArray(t.prerendered))throw new Error("[nuxt] Received malformed app manifest. Ensure that `builds/meta/*.json` is served as JSON by your hosting/proxy and not rewritten to an HTML fallback.");return t}),kb=e,e.catch(t=>{kb===e&&(kb=void 0),console.error("[nuxt] Error fetching app manifest.",t)}),e}function AW(){return kb||Yye()}function dM(e){const t=typeof e=="string"?e:e.path;try{return Kye(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Xye(e,t){return null}let zf=null;
5async function Jye(){if(zf)return zf;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Qye(e.textContent||""),n=e.dataset.src?await Xye(e.dataset.src,t.prerenderedAt?"force-cache":"no-cache"):void 0;return zf={...t,...n,...window.__NUXT__},zf.config?.public&&(zf.config.public=mi(zf.config.public)),zf}async function Qye(e){return await Y1e(e,vt()._payloadRevivers)}function fM(e,t){vt()._payloadRevivers[e]=t}const e2e=Zq(()=>{fM("skipHydrate",e=>{})}),t2e=[["NuxtError",e=>gc(e)],["EmptyShallowRef",e=>Bt(e==="_"?void 0:e==="0n"?BigInt(0):l2(e))],["EmptyRef",e=>G(e==="_"?void 0:e==="0n"?BigInt(0):l2(e))],["ShallowRef",e=>Bt(e)],["ShallowReactive",e=>Wl(e)],["Ref",e=>G(e)],["Reactive",e=>mi(e)]],n2e=hr({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,i]of t2e)fM(r,i);Object.assign(e.payload,([t,n]=Sy(()=>e.runWithContext(Jye)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function hM(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const a=new Map,o=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(g=>{const v=a.get(g._d)||0,b={tag:g,id:(v?`${g._d}:${v}`:g._d)||g._h,shouldRender:!0};return g._d&&oW(g._d)&&a.set(g._d,v+1),b}))})});let s=e._dom;if(!s){s={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const g of p){const v=g.tagName.toLowerCase();if(!XS.has(v))continue;const b=lW({tag:v,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((x,_)=>(x[_]=g.getAttribute(_),x),{})||{}});if(b.key=g.getAttribute("data-hid")||void 0,b._d=eC(b)||sW(b),s.elMap.has(b._d)){let x=1,_=b._d;for(;s.elMap.has(_);)_=`${b._d}:${x++}`;s.elMap.set(_,g)}else s.elMap.set(b._d,g)}}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};function l(h,p,g){const v=`${h}:${p}`;s.sideEffects[v]=g,delete s.pendingSideEffects[v]}function u({id:h,$el:p,tag:g}){const v=g.tag.endsWith("Attrs");s.elMap.set(h,p),v||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),s.elMap.delete(h)}));for(const b in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,b))continue;const x=g.props[b];if(b.startsWith("on")&&typeof x=="function"){const w=p?.dataset;if(w&&w[`${b}fired`]){const C=b.slice(0,-5);x.call(p,new Event(C.substring(2)))}p.getAttribute(`data-${b}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(b.substring(2),x.bind(p)),p.setAttribute(`data-${b}`,""));continue}const _=`attr:${b}`;if(b==="class"){if(!x)continue;for(const w of x)v&&l(h,`${_}:${w}`,()=>p.classList.remove(w)),!p.classList.contains(w)&&p.classList.add(w)}else if(b==="style"){if(!x)continue;for(const[w,C]of x)l(h,`${_}:${w}`,()=>{p.style.removeProperty(w)}),p.style.setProperty(w,C)}else x!==!1&&x!==null&&(p.getAttribute(b)!==x&&p.setAttribute(b,x===!0?"":String(x)),v&&l(h,_,()=>p.removeAttribute(b)))}}const c=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await o;for(const h of f){const{tag:p,shouldRender:g,id:v}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=s.title);continue}h.$el=h.$el||s.elMap.get(v),h.$el?u(h):XS.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),d[p]=d[p]||n.createDocumentFragment(),d[p].appendChild(h.$el)}for(const h of f)await e.hooks.callHook("dom:renderTag",h,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const h in s.pendingSideEffects)s.pendingSideEffects[h]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:f}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function r2e(e={}){const t=e.domOptions?.render||hM;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1,r=vge({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]});return r.ssr=!1,r}function i2e(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function a2e(e={}){const t=r2e({domOptions:{render:i2e(()=>hM(t),n=>setTimeout(n,0))},...e});return t.install=$ge(t),t}const o2e={disableDefaults:!0,disableCapoSorting:!1,plugins:[Ege,Mge,Dge,kge]},s2e=hr({name:"nuxt:head",enforce:"pre",setup(e){const t=a2e(o2e);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await hM(t)};t.hooks.hook("dom:beforeRender",a=>{a.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r);const i=t.push.bind(t);t.push=((a,o)=>{const s=i(a,o),l=s.dispose.bind(s);return s.dispose=()=>{const u=e["~transitionPromise"];u?u.then(l):l()},s})}}}),l2e=/(:\w+)\([^)]+\)/g,u2e=/(:\w+)[?+*]/g,c2e=/:\w+/g,d2e=(e,t)=>
5t.path.replace(l2e,"$1").replace(u2e,"$1").replace(c2e,n=>e.params[n.slice(1)]?.toString()||""),c2=(e,t)=>{const n=e.route.matched.find(i=>i.components?.default===e.Component.type),r=t??n?.meta.key??(n&&d2e(e.route,n));return typeof r=="function"?r(e.route):r},f2e=(e,t)=>({default:()=>e?Nt(Spe,e===!0?{}:e,t):t});function PW(e){return Array.isArray(e)?e:[e]}const h2e="modulepreload",p2e=function(e,t){return new URL(e,t).href},BR={},Cn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=u(n.map(c=>{if(c=p2e(c,r),c in BR)return;BR[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(r)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===c&&(!d||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":h2e,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},FR={layout:!1},v7=[{name:"slug___fr",path:"/:slug(.*)*",meta:FR||{},component:()=>Cn(()=>import("./CIHRVYg5.js"),[],import.meta.url)},{name:"slug___en",path:"/en/:slug(.*)*",meta:FR||{},component:()=>Cn(()=>import("./CIHRVYg5.js"),[],import.meta.url)},{name:"page___fr",path:"/:slug(.*)*",component:()=>Cn(()=>import("./CZ-0XUlz.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"page___en",path:"/en/:slug(.*)*",component:()=>Cn(()=>import("./CZ-0XUlz.js"),__vite__mapDeps([0,1]),import.meta.url)}],m2e=async e=>{let t,n;if(!e.meta?.validate)return;const r=([t,n]=Sy(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);return r===!0?void 0:gc({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})};function g2e(){return globalThis.AsyncLocalStorage||globalThis.process?.getBuiltinModule?.("node:async_hooks")?.AsyncLocalStorage}const y2e=globalThis.WeakRef||class{#e;constructor(t){this.#e=t}deref(){return this.#e}};function v2e(e={}){let t,n=!1;const r=l=>{if(t&&t!==l)throw new Error("Context conflict")};let i;if(e.asyncContext){const l=e.AsyncLocalStorage||g2e();l?i=new l:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const a=l=>i&&l!==null&&typeof l=="object"?{__unctx_weak:new y2e(l)}:l,o=l=>l&&l.__unctx_weak?l.__unctx_weak.deref():l,s=()=>{if(i){const l=i.getStore();if(l!==void 0)return o(l)}return t};return{use:()=>{const l=s();if(l===void 0)throw new Error("Context is not available");return l},tryUse:()=>s()??null,set:(l,u)=>{u||r(l),t=l,n=!0},unset:()=>{t=void 0,n=!1},call:(l,u)=>{r(l),t=l;try{return i?i.run(a(l),u):u()}finally{n||(t=void 0)}},async callAsync(l,u){t=l;const c=()=>{t=l},d=()=>t===l?c:void 0;aC.add(d);try{const f=i?i.run(a(l),u):u();return n||(t=void 0),await f}finally{aC.delete(d)}}}}function _2e(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=v2e({...e,...r})),t[n]}}}const A4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},zR="__unctx__";A4[zR]||(A4[zR]=_2e());const NR="__unctx_async_handlers__",aC=A4[NR]||(A4[NR]=new Set);function tm(e){const t=[];for(const i of aC){const a=i();a&&t.push(a)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const Yt=P1e("typo3",{state:()=>({initialData:null,pageData:null,userData:null}),getters:{backendLayout(){return this.pageData?.appearance?.backendLayout||null},headData(){return this.pageData?.meta||null},isLoggedIn(){return this.userData?.logged||!1},feUser(){return this.userData?.feUser||null},siteBuilderInfos(){return this.initialData?.siteBuilderInfos||null},colors(){return this.initialData?.siteBuilderInfos?.colors||null},favicon(){return this.initialData?.siteBuilderInfos?.favicon||null},logo(){return this.initialData?.siteBuilderInfos?.logo||null}}});var s3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 6,647 bytes, line 5
5function dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lpt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Eb={exports:{}},b2e=Eb.exports,VR;function DW(){return VR||(VR=1,(function(e,t){(function(n,r){e.exports=r()})(b2e,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",d="month",f="quarter",h="year",p="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var B=["th","st","nd","rd"],R=j%100;return"["+j+(B[(R-20)%10]||B[R]||B[0])+"]"}},_=function(j,B,R){var J=String(j);return!J||J.length>=B?j:""+Array(B+1-J.length).join(R)+j},w={s:_,z:function(j){var B=-j.utcOffset(),R=Math.abs(B),J=Math.floor(R/60),K=R%60;return(B<=0?"+":"-")+_(J,2,"0")+":"+_(K,2,"0")},m:function j(B,R){if(B.date()<R.date())return-j(R,B);var J=12*(R.year()-B.year())+(R.month()-B.month()),K=B.clone().add(J,d),Z=R-K<0,ne=B.clone().add(J+(Z?-1:1),d);return+(-(J+(R-K)/(Z?K-ne:ne-K))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:d,y:h,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},C="en",T={};T[C]=x;var k="$isDayjsObject",A=function(j){return j instanceof O||!(!j||!j[k])},P=function j(B,R,J){var K;if(!B)return C;if(typeof B=="string"){var Z=B.toLowerCase();T[Z]&&(K=Z),R&&(T[Z]=R,K=Z);var ne=B.split("-");if(!K&&ne.length>1)return j(ne[0])}else{var se=B.name;T[se]=B,K=se}return!J&&K&&(C=K),K||!J&&C},D=function(j,B){if(A(j))return j.clone();var R=typeof B=="object"?B:{};return R.date=j,R.args=arguments,new O(R)},$=w;$.l=P,$.i=A,$.w=function(j,B){return D(j,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var O=(function(){function j(R){this.$L=P(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[k]=!0}var B=j.prototype;return B.parse=function(R){this.$d=(function(J){var K=J.date,Z=J.utc;if(K===null)return new Date(NaN);if($.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var ne=K.match(v);if(ne){var se=ne[2]-1||0,ce=(ne[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ne[1],se,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ce)):new Date(ne[1],se,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ce)}}return new Date(K)})(R),this.init()},B.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},B.$utils=function(){return $},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(R,J){var K=D(R);return this.startOf(J)<=K&&K<=this.endOf(J)},B.isAfter=function(R,J){return D(R)<this.startOf(J)},B.isBefore=function(R,J){return this.endOf(J)<D(R)},B.$g=function(R,J,K){return $.u(R)?this[J]:this.set(K,R)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(R,J){var K=this,Z=!!$.u(J)||J,ne=$.p(R),se=function(xe,Pe){var je=$.w(K.$u?Date.UTC(K.$y,Pe,xe):new Date(K.$y,Pe,xe),K);return Z?je:je.endOf(u)},ce=function(xe,Pe){return $.w(K.toDate()[xe].apply(K.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(Pe)),K)},Re=this.$W,Ue=this.$M,$e=this.$D,ke="set"+(this.$u?"UTC":"");switch(ne){case h:return Z?se(1,0):se(31,11);case d:return Z?se(1,Ue):se(0,Ue+1);case c:var Ve=this.$locale().weekStart||0,nt=(Re<Ve?Re+7:Re)-Ve;return se(Z?$e-nt:$e+(6-nt),Ue);case u:case p:return ce(ke+"Hours",0);case l:return ce(ke+"Minutes",1);case s:return ce(ke+"Seconds",2);case o:return ce(ke+"Milliseconds",3);default:return this.clone()}},B.endOf=function(R){return this.startOf(R,!1)},B.$set=function(R,J){var K,Z=$.p(R),ne="set"+(this.$u?"UTC":""),se=(K={},K[u]=ne+"Date",K[p]=ne+"Date",K[d]=ne+"Month",K[h]=ne+"FullYear",K[l]=ne+"Hours",K[s]=ne+"Minutes",K[o]=ne+"Seconds",K[a]=ne+"Milliseconds",K)[Z],ce=Z===u?this.$D+(J-this.$W):J;if(Z===d||Z===h){var Re=this.clone().set(p,1);Re.$d[se](ce),Re.init(),this.$d=Re.set(p,Math.min(this.$D,Re.daysInMonth())).$d}else se&&this.$d[se](ce);return this.init(),this},B.set=function(R,J){return this.clone().$set(R,J)},B.get=function(R){return this[$.p(R)]()},B.add=function(R,J){var K,Z=this;R=Number(R);var ne=$.p(J),se=function(Ue){var $e=D(Z);return $.w($e.date($e.date()+Math.round(Ue*R)),Z)};if(ne===d)return this.set(d,this.$M+R);if(ne===h)return this.set(h,this.$y+R);if(ne===u)return se(1);if(ne===c)return se(7);var ce=(K={},K[s]=r,K[l]=i,K[o]=n,K)[ne]||1,Re=this.$d.getTime()+R*ce;return $.w(Re,this)},B.subtract=function(R,J){return this.add(-1*R,J)},B.format=function(R){var J=this,K=this.$locale();if(!this.isValid())return K.invalidDate||g;var Z=R||"YYYY-MM-DDTHH:mm:ssZ",ne=$.z(this),se=this.$H,ce=this.$m,Re=this.$M,Ue=K.weekdays,$e=K.months,ke=K.meridiem,Ve=function(Pe,je,Fe,re){return Pe&&(Pe[je]||Pe(J,Z))||Fe[je].slice(0,re)},nt=function(Pe){return $.s(se%12||12,Pe,"0")},xe=ke||function(Pe,je,Fe){var re=Pe<12?"AM":"PM";return Fe?re.toLowerCase():re};return Z.replace(b,(function(Pe,je){return je||(function(Fe){switch(Fe){case"YY":return String(J.$y).slice(-2);case"YYYY":return $.s(J.$y,4,"0");case"M":return Re+1;case"MM":return $.s(Re+1,2,"0");case"MMM":return Ve(K.monthsShort,Re,$e,3);case"MMMM":return Ve($e,Re);case"D":return J.$D;case"DD":return $.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return Ve(K.weekdaysMin,J.$W,Ue,2);case"ddd":return Ve(K.weekdaysShort,J.$W,Ue,3);case"dddd":return Ue[J.$W];case"H":return String(se);case"HH":return $.s(se,2,"0");case"h":return nt(1);case"hh":return nt(2);case"a":return xe(se,ce,!0);case"A":return xe(se,ce,!1);case"m":return String(ce);case"mm":return $.s(ce,2,"0");case"s":return String(J.$s);case"ss":return $.s(J.$s,2,"0");case"SSS":return $.s(J.$ms,3,"0");case"Z":return ne}return null})(Pe)||ne.replace(":","")}))}
5,B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(R,J,K){var Z,ne=this,se=$.p(J),ce=D(R),Re=(ce.utcOffset()-this.utcOffset())*r,Ue=this-ce,$e=function(){return $.m(ne,ce)};switch(se){case h:Z=$e()/12;break;case d:Z=$e();break;case f:Z=$e()/3;break;case c:Z=(Ue-Re)/6048e5;break;case u:Z=(Ue-Re)/864e5;break;case l:Z=Ue/i;break;case s:Z=Ue/r;break;case o:Z=Ue/n;break;default:Z=Ue}return K?Z:$.a(Z)},B.daysInMonth=function(){return this.endOf(d).$D},B.$locale=function(){return T[this.$L]},B.locale=function(R,J){if(!R)return this.$L;var K=this.clone(),Z=P(R,J,!0);return Z&&(K.$L=Z),K},B.clone=function(){return $.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},j})(),z=O.prototype;return D.prototype=z,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",d],["$y",h],["$D",p]].forEach((function(j){z[j[1]]=function(B){return this.$g(B,j[0],j[1])}})),D.extend=function(j,B){return j.$i||(j(B,O,D),j.$i=!0),D},D.locale=P,D.isDayjs=A,D.unix=function(j){return D(1e3*j)},D.en=T[C],D.Ls=T,D.p={},D}))})(Eb)),Eb.exports}var x2e=DW();const yi=dp(x2e);function oC(e){return typeof e=="string"?`'${e}'`:new S2e().serialize(e)}const w2e=" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz",l3=(function(){const e=new Uint8Array(128);for(let t=0;t<69;t++)e[w2e.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function _7(e,t){if(e===t)return 0;const n=Math.min(e.length,t.length);let r=0;for(let i=0;i<n;i++){const a=e.charCodeAt(i),o=t.charCodeAt(i);if(a===o)continue;const s=a<128&&l3[a]?l3[a]:a+128,l=o<128&&l3[o]?l3[o]:o+128;if(s!==l)return s<l?-1:1;r===0&&(r=a>o?-1:1)}return e.length!==t.length?e.length<t.length?-1:1:r}const S2e=(function(){class e{#e=new Map;compare(n,r){const i=typeof n,a=typeof r;return i==="string"&&a==="string"?_7(n,r):i==="number"&&a==="number"?n-r:_7(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const i=n.constructor,a=i===Object||i===void 0?"":i.name;if(a!==""&&globalThis[a]===i)return this.serializeBuiltInType(a,n);if("toJSON"in n&&typeof n.toJSON=="function"){const l=n.toJSON();return a+(l!==null&&typeof l=="object"?this.$object(l):`(${this.serialize(l)})`)}const o=Object.keys(n).sort(_7);let s=`${a}{`;for(let l=0;l<o.length;l++){const u=o[l];s+=`${u}:${this.serialize(n[u])}`,l<o.length-1&&(s+=",")}return s+"}"}serializeBuiltInType(n,r){const i=this["$"+n];if(i)return i.call(this,r);if(typeof r.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const i=Array.from(r).sort((o,s)=>this.compare(o[0],s[0]));let a=`${n}{`;for(let o=0;o<i.length;o++){const[s,l]=i[o];a+=`${this.serialize(s,!0)}:${this.serialize(l)}`,o<i.length-1&&(a+=",")}return a+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let i=0;i<n.length;i++)r+=this.serialize(n[i]),i<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,i)=>this.compare(r,i)))}`}
5$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function C2e(e,t){return e===t||oC(e)===oC(t)}const T2e=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],k2e=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],E2e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Nf=[];var M2e=class{_data=new u3;_hash=new u3([...T2e]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);const t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7];for(let d=0;d<64;d++){if(d<16)Nf[d]=e[t+d]|0;else{const x=Nf[d-15],_=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,w=Nf[d-2],C=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;Nf[d]=_+Nf[d-7]+C+Nf[d-16]}const f=s&l^~s&u,h=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),g=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),v=c+g+f+k2e[d]+Nf[d],b=p+h;c=u,u=l,l=s,s=o+v|0,o=a,a=i,i=r,r=v+b|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+c|0}_append(e){typeof e=="string"&&(e=u3.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;e?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let a=0;a<r;a+=16)this._doProcessBlock(this._data.words,a);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new u3(t,i)}},u3=class IW{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let a=0;a<r;a++)i[a>>>2]|=(n.charCodeAt(a)&255)<<24-a%4*8;return new IW(i,r)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,i=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,a=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,o=r<<16|i<<8|a;for(let s=0;s<4&&n*8+s*6<this.sigBytes*8;s++)t.push(E2e.charAt(o>>>6*(3-s)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}};function A2e(e){return new M2e().finalize(e).toBase64()}function ah(e){return A2e(oC(e))}const P2e={trailing:!0};function D2e(e,t=25,n={}){if(n={...P2e,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s;const l=(d,f)=>(o=I2e(e,d,f),o.finally(()=>{if(o=null,n.trailing&&s&&!i){const h=l(d,s);return s=null,h}}),o),u=function(...d){return n.trailing&&(s=d),o||new Promise(f=>{const h=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const p=n.leading?r:l(this,d);s=null;for(const g of a)g(p);a=[]},t),h?(r=l(this,d),f(r)):a.push(f)})},c=d=>{d&&(clearTimeout(d),i=null)};return u.isPending=()=>!!i,u.cancel=()=>{c(i),a=[],s=null},u.flush=()=>
5{if(c(i),!s||o)return;const d=s;return s=null,l(this,d)},u}async function I2e(e,t,n){return await e.apply(t,n)}const $W=Symbol.for("nuxt:client-only"),Rpt=Q({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Bt(!1);Ot(()=>{r.value=!0});const i=$n();return i&&(i._nuxtClientOnly=!0),Si($W,!0),()=>{if(r.value){const l=t.default?.();return l&&l.length===1?[gl(l[0],n)]:l}const a=t.fallback||t.placeholder;if(a)return Nt(a);const o=e.fallback||e.placeholder||"",s=Hye(e.fallbackTag||e.placeholderTag,"span");return U(s,n,o)}}}),P4=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),LW=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),sv=e=>{const t=vt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{P4(()=>e())}):P4(()=>e())},$2e=e=>e==="defer"||e===!1;function pM(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;L2e(e[0],e[1])&&e.unshift(t);let[n,r,i={}]=e,a=!1;const o=W(()=>Le(n));if(typeof o.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const s=vt();i.server??=!0,i.default??=O2e,i.getCachedData??=OW,i.lazy??=!1,i.immediate??=!0,i.deep??=Qu.deep,i.dedupe??="cancel",i._functionName,s._asyncData[o.value];function l(){const p={cause:"initial",dedupe:i.dedupe};return s._asyncData[o.value]?._init||(p.cachedData=i.getCachedData(o.value,s,{cause:"initial"}),s._asyncData[o.value]=jR(s,o.value,r,i,p.cachedData)),()=>s._asyncData[o.value].execute(p)}const u=l(),c=s._asyncData[o.value];c._deps++;const d=i.server!==!1&&s.payload.serverRendered;{let p=function(w){const C=s._asyncData[w];C?._deps&&(C._deps--,C._deps===0&&C?._off())};const g=$n();if(g&&d&&i.immediate&&!g.sp&&(g.sp=[]),g&&!g._nuxtOnBeforeMountCbs){g._nuxtOnBeforeMountCbs=[];const w=g._nuxtOnBeforeMountCbs;Vx(()=>{w.forEach(C=>{C()}),w.splice(0,w.length)}),br(()=>w.splice(0,w.length))}const v=g&&(g._nuxtClientOnly||cr($W,!1));d&&s.isHydrating&&(c.error.value||c.data.value!=null)?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):g&&(!v&&s.payload.serverRendered&&s.isHydrating||i.lazy)&&i.immediate?g._nuxtOnBeforeMountCbs.push(u):i.immediate&&u();const b=qa(),x=Je(o,(w,C)=>{if((w||C)&&w!==C){a=!0;const T=s._asyncData[C]?.data.value!==Qu.value,k=s._asyncDataPromises[C]!==void 0,A={cause:"initial",dedupe:i.dedupe};if(!s._asyncData[w]?._init){const P=i.getCachedData(w,s,{cause:"initial"});A.cachedData=P;const D=C&&T&&P===void 0?s._asyncData[C].data.value:P;s._asyncData[w]=jR(s,w,r,i,D)}s._asyncData[w]._deps++,C&&p(C),(i.immediate||T||k)&&s._asyncData[w].execute(A),t2(()=>{a=!1})}},{flush:"sync"}),_=i.watch?Je(i.watch,()=>{a||(s._asyncData[o.value]?._execute.isPending()&&t2(()=>{s._asyncData[o.value]?._execute.flush()}),s._asyncData[o.value]?._execute({cause:"watch",dedupe:i.dedupe}))}):()=>{};b&&vo(()=>{x(),_(),p(o.value)})}const f={data:c3(()=>s._asyncData[o.value]?.data),pending:c3(()=>s._asyncData[o.value]?.pending),status:c3(()=>s._asyncData[o.value]?.status),error:c3(()=>s._asyncData[o.value]?.error),refresh:(...p)=>s._asyncData[o.value]?._init?s._asyncData[o.value].execute(...p):l()(),execute:(...p)=>f.refresh(...p),clear:()=>{const p=s._asyncData[o.value];if(p?._abortController)try{p._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{p._abortController=void 0}mM(s,o.value)}},h=Promise.resolve(s._asyncDataPromises[o.value]).then(()=>f);return Object.assign(h,f),Object.defineProperties(h,{then:{enumerable:!0,value:h.then.bind(h)},catch:{enumerable:!0,value:h.catch.bind(h)},finally:{enumerable:!0,value:h.finally.bind(h)}}),h}function c3(e){return W({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function L2e(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function RW(e){const t=vt(),n=Object.keys(t.payload.data),r=e?typeof e=="function"?n.filter(e):b1e(e):n;for(const i of r)mM(t,i)}function mM(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Qu.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Qu.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function R2e(e,t){const n={};for(const r of t)n[r]=e[r];return n}function jR(e,t,n,r,i){e.payload._errors[t]??=Qu.errorValue;const a=r.getCachedData!==OW,o=n,s=r.deep?G:Bt,l=i!=null,u=e.hook("app:data:refresh",async d=>{(!d||d.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:s(l?i:r.default()),pending:Bt(!l),error:Ts(e.payload._errors,t),status:Bt("idle"),execute:(...d)=>{const[f,h=void 0]=d,p=f&&h===void 0&&typeof f=="object"?f:{};if(e._asyncDataPromises[t]&&$2e(p.dedupe??r.dedupe))return e._asyncDataPromises[t];if(p.cause==="initial"||e.isHydrating){const b="cachedData"in p?p.cachedData:r.getCachedData(t,e,{cause:p.cause??"refresh:manual"});if(b!=null)return e.payload.data[t]=c.data.value=b,c.error.value=Qu.errorValue,c.status.value="success",Promise.resolve(b)}c.pending.value=!0,c._abortController&&c._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),c._abortController=new AbortController,c.status.value="pending";const g=new AbortController,v=new Promise((b,x)=>{try{const _=p.timeout??r.timeout,w=B2e([c._abortController?.signal,p?.signal],g.signal,_);if(w.aborted){const C=w.reason;x(C instanceof Error?C:new DOMException(String(C??"Aborted"),"AbortError"));return}return w.addEventListener("abort",()=>{const C=w.reason;x(C instanceof Error?C:new DOMException(String(C??"Aborted"),"AbortError"))},{once:!0,signal:g.signal}),Promise.resolve(o(e,{signal:w})).then(b,x)}catch(_){x(_)}}).then(async b=>{if(e._asyncDataPromises[t]!==v)return;let x=b;r.transform&&(x=await r.transform(b)),r.pick&&(x=R2e(x,r.pick)),e.payload.data[t]=x,c.data.value=x,c.error.value=Qu.errorValue,c.status.value="success"}).catch(b=>{if(e._asyncDataPromises[t]!==v||c._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&b instanceof DOMException&&b.name==="AbortError")return c.status.value="idle",e._asyncDataPromises[t];c.error.value=gc(b),c.data.value=m(r.default()),c.status.value="error"}).finally(()=>{g.abort(),e._asyncDataPromises[t]===v&&(c.pending.value=!1,delete e._asyncDataPromises[t])});return e._asyncDataPromises[t]=v,e._asyncDataPromises[t]},_execute:D2e((...d)=>c.execute(...d),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(c._abortController?.abort(new DOMException("AsyncData request cancelled by unmount","AbortError")),delete e._asyncDataPromises[t],c.status.value==="pending"&&(c.status.value="idle"),c.pending.value=!1),a||At(()=>{e._asyncData[t]?._init||(mM(e,t),c.execute=()=>Promise.resolve(),c.data.value=Qu.value)})}};return c}const O2e=()=>Qu.value,OW=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function B2e(e,t,n){const r=e.filter(o=>!!o);if(typeof n=="number"&&n>=0){const o=AbortSignal.timeout?.(n);o&&r.push(o)}if(AbortSignal.any)return AbortSignal.any(r);const i=new AbortController;for(const o of r)if(o.aborted){const s=o.reason??new DOMException("Aborted","AbortError");try{i.abort(s)}catch{i.abort()}return i.signal}const a=()=>{const s=r.find(l=>l.aborted)?.reason??new DOMException("Aborted","AbortError");try{i.abort(s)}catch{i.abort()}};for(const o of r)o.addEventListener?.("abort",a,{once:!0,signal:t});return i.signal}
5const BW=(e,t,n)=>{const r=vt();r.hooks.hook("app:created",()=>{n(r.payload[e])})};async function FW(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r,i]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [callOnce] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [callOnce] fn must be a function: "+r);const a=vt();if(i?.mode==="navigation"){const o=ai().beforeResolve(()=>{a.payload.once.delete(n),o()})}if(!a.payload.once.has(n)){a._once||={},a._once[n]||=r()||!0;try{await a._once[n]}catch(o){throw delete a._once[n],o}a.payload.once.add(n),delete a._once[n]}}const F2e="$s";function of(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const i=F2e+n,a=vt(),o=Ts(a.payload.state,i);if(o.value===void 0&&r){const s=r();if($t(s))return a.payload.state[i]=s,s;o.value=s}return o}function z2e(e){}function gM(e){return{}}function N2e(e){}function zW(e,t,n){const[r={},i]=[{},t],a=W(()=>Le(e)),o=W(()=>Le(r.key)||"$f"+ah([i,typeof a.value=="string"?a.value:"",...j2e(r)]));if(!r.baseURL&&typeof a.value=="string"&&a.value[0]==="/"&&a.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:s,lazy:l,default:u,transform:c,pick:d,watch:f,immediate:h,getCachedData:p,deep:g,dedupe:v,timeout:b,...x}=r,_=mi({...u1e,...x,cache:typeof r.cache=="boolean"?void 0:r.cache}),w={server:s,lazy:l,default:u,transform:c,pick:d,immediate:h,getCachedData:p,deep:g,dedupe:v,timeout:b,watch:f===!1?[]:[...f||[],_]};if(!h){let T=function(){w.immediate=!0};Je(o,T,{flush:"sync",once:!0}),Je([...f||[],_],T,{flush:"sync",once:!0})}return pM(f===!1?o.value:o,(T,{signal:k})=>{let A=r.$fetch||globalThis.$fetch;const P={signal:k,..._};for(const D of V2e)typeof P[D]=="function"&&(P[D]=Le(P[D]));return A(a.value,P)},w)}const V2e=["method","baseURL","query","params","body","headers"];function j2e(e){const t=[Le(e.method)?.toUpperCase()||"GET",Le(e.baseURL)];for(const n of[e.query||e.params]){const r=Le(n);if(!r)continue;const i={};for(const[a,o]of Object.entries(r))i[Le(a)]=Le(o);t.push(i)}if(e.body){const n=Le(e.body);if(!n)t.push(ah(n));else if(n instanceof ArrayBuffer)t.push(ah(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,i])=>[r,i.toString()]))));else if(n instanceof FormData){const r=[];for(const i of n.entries()){const[a,o]=i;r.push([a,o instanceof File?`${o.name}:${o.size}:${o.lastModified}`:o])}t.push(ah(r))}else if(LE(n))t.push(ah(mi(n)));else try{t.push(ah(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const U2e=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function H2e(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n=new U2e,r=t||{},i=r.decode||q2e;let a=0;for(;a<e.length;){const o=e.indexOf("=",a);if(o===-1)break;let s=e.indexOf(";",a);if(s===-1)s=e.length;else if(s<o){a=e.lastIndexOf(";",o-1)+1;continue}const l=e.slice(a,o).trim();if(r?.filter&&!r?.filter(l)){a=s+1;continue}if(n[l]===void 0){let u=e.slice(o+1,s).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),n[l]=W2e(u,i)}a=s+1}return n}function q2e(e){return e.includes("%")?decodeURIComponent(e):e}function W2e(e,t){try{return t(e)}catch{return e}}const d3=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function UR(e,t,n){const r=n||{},i=r.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!d3.test(e))throw new TypeError("argument name is invalid");const a=i(t);if(a&&!d3.test(a))throw new TypeError("argument val is invalid");let o=e+"="+a;if(r.maxAge!==void 0&&r.maxAge!==null){const s=r.maxAge-0;if(Number.isNaN(s)||!Number.isFinite(s))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!d3.test(r.domain))throw new TypeError("option domain is invali
5d");o+="; Domain="+r.domain}if(r.path){if(!d3.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!G2e(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function G2e(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Qs(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Qs(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:Qs(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Qs(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=Qs(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(i){n.add(Qs(i))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(i,a){n.set(Qs(a),Qs(i))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(Qs(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const Z2e={path:"/",watch:!0,decode:e=>{const t=decodeURIComponent(e),n=l2(t);return typeof n=="number"&&(!Number.isFinite(n)||String(n)!==t)?t:n},encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},f3=globalThis.cookieStore;function sl(e,t){const n={...Z2e,...t};n.filter??=u=>u===e;const r=HR(n)||{};let i;n.maxAge!==void 0?i=n.maxAge*1e3:n.expires&&(i=n.expires.getTime()-Date.now());const a=i!==void 0&&i<=0,o=a||r[e]===void 0||r[e]===null,s=Qs(a?void 0:r[e]??n.default?.()),l=i&&!a?X2e(s,i,n.watch&&n.watch!=="shallow"):G(s);{let u=null;try{!f3&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const c=(p=!1)=>{!p&&(n.readonly||C2e(l.value,r[e]))||(Y2e(e,l.value,n),r[e]=Qs(l.value),u?.postMessage({value:n.encode(l.value)}))},d=p=>{const g=p.refresh?HR(n)?.[e]:n.decode(p.value);f=!0,l.value=g,r[e]=Qs(g),At(()=>{f=!1})};let f=!1;const h=!!qa();if(h&&vo(()=>{f=!0,c(),u?.close()}),f3){const p=g=>{const v=g.changed.find(x=>x.name===e),b=g.deleted.find(x=>x.name===e);v&&d({value:v.value}),b&&d({value:null})};f3.addEventListener("change",p),h&&vo(()=>f3.removeEventListener("change",p))}else u&&(u.onmessage=({data:p})=>d(p));n.watch&&Je(l,()=>{f||c()},{deep:n.watch!=="shallow"}),o&&c(o)}return l}function HR(e={}){return H2e(document.cookie,e)}function K2e(e,t,n={}){return t==null?UR(e,t,{...n,maxAge:-1}):UR(e,t,n)}function Y2e(e,t,n={}){document.cookie=K2e(e,t,n)}const qR=2147483647;function X2e(e,t,n){let r,i,a=0;const o=n?G(e):{value:e};return qa()&&vo(()=>{i?.(),clearTimeout(r)}),n1((s,l)=>{n&&(i=Je(o,l));function u(){const d=t-a,f=d<qR?d:qR;r=setTimeout(()=>{if(a+=f,a<t)return u();o.value=void 0,l()},f)}function c(){a=0,clearTimeout(r),u()}return{get(){return s(),o.value},set(d){c(),o.value=d,l()}}})}function J2e(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function yM(e,t=ai()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>yM(e,t));t._routePreloaded.add(n);for(const a of r){const o=a.components?.default;if(typeof o!="function")continue;const s=Promise.resolve(o()).catch(()=>{}).finally(()=>i.splice(i.indexOf(s),1));i.push(s)}await Promise.all(i)}function vM(e={}){const t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw new Error(`Cannot navigate to a URL with a different host: '${t}'.`);if(n.protocol&&w4(n.protocol))throw new Error(`Cannot navigate to a URL with '${n.protocol}' protocol.`);let r={};try{r=l2(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:vt().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function l1(e){return new URL(globalThis.location.href)}const Q2e=(...e)=>e.find(t=>t!==void 0);function WR(e){let t=e.replace(/[\u0000-\u001f\s]+/g,"");for(;t.toLowerCase().startsWith("view-source:");)t=t.slice(12);const n=t.indexOf(":");return n>0&&w4(t.slice(0,n+1))?null:e}function NW(e){const t=e.componentName||"NuxtLink";
5function n(a){return typeof a=="string"&&a.startsWith("#")}function r(a,o,s){const l=s??e.trailingSlash;if(!a||l!=="append"&&l!=="remove")return a;if(typeof a=="string")return h3(a,l);const u="path"in a&&a.path!==void 0?a.path:o(a).path;return{...a,name:void 0,path:h3(u,l)}}function i(a){const o=ai(),s=Ga(),l=W(()=>!!m(a.target)&&m(a.target)!=="_self"),u=W(()=>{const v=m(a.to)||m(a.href)||"";return typeof v=="string"&&Na(v,{acceptRelative:!0})}),c=xa("RouterLink"),d=c&&typeof c!="string"?c.useLink:void 0,f=W(()=>{if(m(a.external))return!0;const v=m(a.to)||m(a.href)||"";return typeof v=="object"?!1:v===""||u.value}),h=W(()=>{const v=m(a.to)||m(a.href)||"";return f.value?v:r(v,o.resolve,m(a.trailingSlash))}),p=f.value?void 0:d?.({...a,to:h,viewTransition:m(a.viewTransition)}),g=W(()=>{const v=m(a.trailingSlash)??e.trailingSlash;if(!h.value||u.value||n(h.value)){const b=h.value;return typeof b=="string"?WR(b):b}if(f.value){const b=typeof h.value=="object"&&"path"in h.value?GS(h.value):h.value,x=typeof b=="object"?o.resolve(b).href:b,_=typeof x=="string"?WR(x):x;return _===null?null:h3(_,v)}return typeof h.value=="object"?o.resolve(h.value)?.href??null:h3(o1(s.app.baseURL,h.value),v)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:f,href:g,isActive:p?.isActive??W(()=>h.value===o.currentRoute.value.path),isExactActive:p?.isExactActive??W(()=>h.value===o.currentRoute.value.path),route:p?.route??W(()=>o.resolve(h.value)),async navigate(v){g.value!==null&&await wl(g.value,{replace:m(a.replace),external:f.value||l.value})}}}return Q({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(a,{slots:o}){const s=ai(),{to:l,href:u,navigate:c,isExternal:d,hasTarget:f,isAbsoluteUrl:h}=i(a),p=Bt(!1),g=G(null),v=_=>{g.value=a.custom?_?.$el?.nextElementSibling:_?.$el};function b(_){return!p.value&&(typeof a.prefetchOn=="string"?a.prefetchOn===_:a.prefetchOn?.[_]??e.prefetchOn?.[_])&&(a.prefetch??e.prefetch)!==!1&&a.noPrefetch!==!0&&a.target!=="_blank"&&!nve()}async function x(_=vt()){if(p.value||u.value===null)return;p.value=!0;const w=typeof l.value=="string"?l.value:d.value?GS(l.value):s.resolve(l.value).fullPath,C=d.value?new URL(w,window.location.href).href:w;await Promise.all([_.hooks.callHook("link:prefetch",C).catch(()=>{}),!d.value&&!f.value&&yM(l.value,s).catch(()=>{})])}if(b("visibility")){const _=vt();let w,C=null;Ot(()=>{const T=eve();sv(()=>{w=P4(()=>{g?.value?.tagName&&(C=T.observe(g.value,async()=>{C?.(),C=null,await x(_)}))})})}),Wa(()=>{w&&LW(w),C?.(),C=null})}return()=>{if(!d.value&&!f.value&&!n(l.value)){const C={ref:v,to:l.value,activeClass:a.activeClass||e.activeClass,exactActiveClass:a.exactActiveClass||e.exactActiveClass,replace:a.replace,ariaCurrentValue:a.ariaCurrentValue,custom:a.custom};
5return a.custom||(b("interaction")&&(C.onPointerenter=x.bind(null,void 0),C.onFocus=x.bind(null,void 0)),p.value&&(C.class=a.prefetchedClass||e.prefetchedClass),C.rel=a.rel||void 0),Nt(xa("RouterLink"),C,o.default)}const _=a.target||null,w=Q2e(a.noRel?"":a.rel,e.externalRelAttribute,h.value||f.value?"noopener noreferrer":"")||null;return a.custom?o.default?o.default({href:u.value,navigate:c,prefetch:x,get route(){if(!u.value)return;const C=new URL(u.value,window.location.href);return{path:C.pathname,fullPath:C.pathname,get query(){return Cm(C.search)},hash:C.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:w,target:_,isExternal:d.value||f.value,isActive:!1,isExactActive:!1}):null:Nt("a",{ref:g,href:u.value||null,rel:w,target:_,onClick:async C=>{if(!(d.value||f.value)){C.preventDefault();try{const T=Yq(u.value??"");return await(a.replace?s.replace(T):s.push(T))}finally{if(n(l.value)){const T=l.value.slice(1);let k=T;try{k=decodeURIComponent(T)}catch{}document.getElementById(k)?.focus()}}}}},o.default?.())}}})}const u1=NW(s1e);function h3(e,t){if(t!=="append"&&t!=="remove")return e;const n=t==="append"?u2:Tm;return Na(e)&&!e.startsWith("http")?e:n(e,!0)}function eve(){const e=vt();if(e._observer)return e._observer;let t=null;const n=new Map,r=(a,o)=>(t||=new IntersectionObserver(s=>{for(const l of s){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(a,o),t.observe(a),()=>{n.delete(a),t?.unobserve(a),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const tve=/2g/;function nve(){const e=navigator.connection;return!!(e&&(e.saveData||tve.test(e.effectiveType)))}const rve="Nom",ive="Prénom",ave="[email protected]",ove=!0,sve="https://intranet-ville-vitrolles13.api.cimeos.dev/fileadmin/mediatheque/pictos/user/agent.jpg",lve={0:{href:"/",target:"",text:"Gérer mon compte"},1:{href:"/",target:"",text:"Déconnexion"}},uve=[{links:[{href:"/",target:"",text:"Mon annuaire"}]},{links:[{href:"/",target:"",text:"Mes e-mails"}]},{links:[{href:"/",target:"",text:"Mes rendez-vous"}]},{links:[{href:"/",target:"",text:"Mes outils"}]},{links:[{href:"/",target:"",text:"Mes liens"}]}],cve={name:rve,forename:ive,email:ave,hasNewMessage:ove,picture:sve,links:lve,items:uve},dve={cim_primary_color:{hexa:"#E82531"},cim_secondary_color:{hexa:"#E82531"},cim_third_color:{hexa:"#E82531"},cim_fourth_color:{hexa:"#E82531"}},fve={},hve={},pve={},mve={colors:dve,fonts:fve,favicon:hve,logo:pve},gve={user:cve,site:mve,blocHomeHeaderSliderFields:["cim_news","datetime","place"],blocHomeNewsFields:["datetime","specific_categories"],blocHomeBrevesFields:["datetime"],blocHomeEventFields:["cim_news","datetime","event_type","place","address"],blocHomeZoomSurFields:["teaser"],blocInfosFields:["cim_news","datetime","place"],blocGeolocationFields:["schedule","phone","mobilePhone","mail","website","address","address_secondary","adresse_ternary","postcode","city_txt","fax","email","phone_secondary","mobile_phone"],blocTinyInteractiveMapFields:["address","city"],nonDisplayedFieldsAlways:["title","picture_show","picture_list","falc","import_id","postcode","city_txt"],nonDisplayedFieldsList:[],nonDisplayedFieldsDetail:["ticketing_label","t
5icketing_link","trajectoire_territorial_file"],commonHeadFields:["city","cim_news","specific_categories","date","datetime","place","contract","answer_deadline","event_type","teaser","schedule","structure","intervention_europeenne","region","status","territoire","address"],commonHeadFieldsAndPrincipal:[""],commonZoneContextuelle:["cim_news_schedule_dates","lieu","organiser","reservation","medias","delegated_town"],listItemTplEdito:["departement","initiative","projet","territoire"],blocsAlwaysInSummary:[],titleDelimiter:"~"},yve={nuxt:{}},vve=p1e(gve,yve);function Va(){const e=vt();return e._appConfig||=mi(vve),e._appConfig}const _ve=Object.freeze(Object.defineProperty({__proto__:null,addRouteMiddleware:k4,applyPlugin:Wq,applyPlugins:Gq,callOnce:FW,callWithNuxt:US,cancelIdleCallback:LW,clearError:Jq,clearNuxtData:RW,createError:gc,createNuxtApp:Hq,defineAppConfig:h1e,defineNuxtLink:NW,defineNuxtPlugin:hr,defineNuxtRouteMiddleware:w1e,definePayloadPlugin:Zq,definePayloadReviver:fM,getAppManifest:AW,getRouteRules:dM,injectHead:aM,isNuxtError:rM,navigateTo:wl,onNuxtReady:sv,preloadRouteComponents:yM,prerenderRoutes:N2e,registerPluginHooks:qq,reloadNuxtApp:vM,requestIdleCallback:P4,showError:Ul,tryUseNuxtApp:tM,useAppConfig:Va,useAsyncData:pM,useCookie:sl,useError:s1,useFetch:zW,useHead:mo,useHydration:BW,useNuxtApp:vt,useRequestEvent:z2e,useRequestHeaders:gM,useRequestURL:l1,useRoute:nu,useRouter:ai,useRuntimeConfig:Ga,useState:of},Symbol.toStringTag,{value:"Module"})),VW=()=>of("T3:Page"),jW=()=>of("T3:InitialData"),Wo=(e,t)=>{const n=vt(),{$typo3:r,callHook:i}=n,a=e||nu().fullPath,o=t,s=VW(),l=jW(),u=Ga().public.typo3Internals?.useLegacyAsyncDataPageKey;return{pageData:s,initialData:l,$fetch:async(v=a,b=o)=>await r.api.$fetch(v,b),getPage:async(v=a,b=o)=>{const x=await r.api.getPage(v,b);return await i("t3:page",x),x},getPageKey:(v=a)=>u?"t3:page":`t3:page:${ah(v)}`,getInitialData:async(v=a,b=o)=>{const x=await r.api.getInitialData(v,b);return await i("t3:initialData",x),x},setHeaders:v=>{r.api.setHeaders(v)},setOption:(v,b)=>{r.api.fetchOptions[v]=b}}};function Zx(){const e=vt(),{callHook:t}=e,n=Yt();return{getUser:async()=>{const a=await Wo().$fetch("/?type=840");return n.userData=a,await t("t3:userData",a),a},logout:async a=>{const o=G(n.userData?.logoutUrl),s=G(n.initialData?.loginUrl);await Wo().$fetch(o.value,{method:"POST",headers:{},params:{logintype:"logout"},credentials:"include"});const l=await Wo().getInitialData("/");n.initialData=l;const u=sl("fe_typo_user",{});u.value=null;const c=sl("oauth2-state",{});c.value=null;const d=sl("oauth2-token",{});if(d.value=null,a)return wl(s.value||"/")}}}const bve=async(e,t)=>{let n,r;const i="code",a="token",o="id_token",s=Yt(),l={};_t(e).hash.replace("#","").split("&").forEach(c=>{let d=c.split("=");d[0]!=""&&(l[d[0]]=d[1])});const u={...e.query,...l};if(Object.keys(u).includes("logintype")&&Object.keys(u).includes("authconfig")&&Object.keys(u).includes("state")&&(Object.keys(u).includes("code")||Object.keys(u).includes("id_token")||Object.keys(u).includes("access_token"))){const c=Object.keys(u).includes("access_token")?a:Object.keys(u).includes("id_token")?o:i,d=new FormData;if(d.append("state",u.state),d.append("session_state",u.session_state),d.append("scope",u.scope),c===a?(d.append("access_token",u.access_token),d.append("token_type",u.token_type),d.append("expires_in",u.expires_in)):c===o?d.append("id_token",u.id_token):d.append("code",u.code),[n,r]=tm(()=>Wo().$fetch("/?type=840",{method:"POST",params:{logintype:"login",authconfig:u.authconfig},body:d,credentials:"include"})),await n,r(),([n,r]=tm(()=>Zx().getUser()),n=await n,r(),n).logged){const h=sl("oauth2-state",{});h.value=null;const p=sl("oauth2-token",{});let g={id_token:u.id_token,access_token:u.access_token,token_type:u.token_type,duration:+u.expires_in,expires_at:"",authconfig:+u.authconfig};return u?.expires_in&&(g.expires_at=yi().add(+u.expires_in,"seconds")?.toISOString()),p.value=g,vM({path:"/",force:!0})}}else if(Object.keys(u).includes("logintype")&&!Object.keys(u).includes("authconfig")){const d=(s.initialData??([n,r]=tm(()=>Wo().getInitialData("/")),n=await n,r(),n))?.myacountUrl||"/";return wl(d)}else if(!Object.keys(u).includes("logintype"))return},xve=e=>{const t=dM({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return Na(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},wve=[m2e,bve,xve],sC={};function GR(e,t,n){const{pathname:r,search:i,hash:a}=t,o=e.indexOf("#");if(o>-1){const u=a.includes(e.slice(o))?e.slice(o).length:1;let c=a.slice(u);return c[0]!=="/"&&(c="/"+c),JL(c,"")}const s=JL(r,e),l=!n||Bq(s,n)?s:n;
5return l+(l.includes("?")?"":i)+a}const Sve=hr({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=Ga().app.baseURL;const i=Fu.history?.(r)??vye(r),a=Fu.routes?([t,n]=Sy(()=>Fu.routes(v7)),t=await t,n(),t??v7):v7;let o;const s=Fye({...Fu,scrollBehavior:(_,w,C)=>{if(w===no){o=C;return}if(Fu.scrollBehavior){if(s.options.scrollBehavior=Fu.scrollBehavior,"scrollRestoration"in window.history){const T=s.beforeEach(()=>{T(),window.history.scrollRestoration="manual"})}return Fu.scrollBehavior(_,no,o||C)}},history:i,routes:a});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(s);const l=Bt(s.currentRoute.value);s.afterEach((_,w)=>{l.value=w}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=GR(r,window.location,e.payload.path),c=Bt(s.currentRoute.value),d=()=>{c.value=s.currentRoute.value};s.afterEach((_,w)=>{const C=_.matched.at(-1)?.components?.default,T=w.matched.at(-1)?.components?.default;if(C===T){const k=c2({route:_,Component:{type:C}}),A=c2({route:w,Component:{type:T}});k===A&&d();return}_.matched.length<w.matched.length&&_.matched.every((k,A)=>k.components?.default===w.matched[A]?.components?.default)&&d()});const f={sync:d};for(const _ in c.value)Object.defineProperty(f,_,{get:()=>c.value[_],enumerable:!0});e._route=Wl(f),e._middleware||={global:[],named:{}};const h=s1();s.afterEach(async(_,w,C)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(Jq),C&&await e.callHook("page:loading:end")});try{[t,n]=Sy(()=>s.isReady()),await t,n()}catch(_){[t,n]=Sy(()=>e.runWithContext(()=>Ul(_))),await t,n()}const p=u!==s.currentRoute.value.fullPath?s.resolve(u):s.currentRoute.value,g=s.currentRoute.value.fullPath,v=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&Bq(s.currentRoute.value.path,e.payload.path);d();function b(_){!e.isHydrating&&_.fullPath!==GR(r,window.location)&&i.push(_.fullPath)}const x=e.payload.state._layout;return s.beforeEach(async(_,w)=>{await e.callHook("page:loading:start"),_.meta=mi(_.meta),e.isHydrating&&x&&!ml(_.meta.layout)&&(_.meta.layout=x),e._processingMiddleware=!0;{const C=new Set([...wve,...e._middleware.global]);for(const k of _.matched){const A=k.meta.middleware;if(A)for(const P of PW(A))C.add(P)}const T=dM({path:_.path});if(T.appMiddleware)for(const k in T.appMiddleware)T.appMiddleware[k]?C.add(k):C.delete(k);for(const k of C){const A=typeof k=="string"?e._middleware.named[k]||await sC[k]?.().then(P=>P.default||P):k;if(!A)throw new Error(`Unknown route middleware: '${k}'.`);try{const P=await e.runWithContext(()=>A(_,w));if(!e.payload.serverRendered&&e.isHydrating&&(P===!1||P instanceof Error)){const D=P||gc({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Ul(D)),!1}if(P===!0)continue;if(P===!1)return P;if(P)return rM(P)&&P.fatal&&(await e.runWithContext(()=>Ul(P)),b(_)),P}catch(P){const D=gc(P);return D.fatal&&(await e.runWithContext(()=>Ul(D)),b(_)),D}}}}),s.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),s.afterEach(_=>{if(_.matched.length===0&&!h.value)return e.runWithContext(()=>Ul(gc({status:404,fatal:!1,statusText:`Page not found: ${_.fullPath}`,data:{path:_.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in p&&(p.name=void 0),!(s.currentRoute.value.fullPath!==g))if(v){const w=s.resolve(e.payload.path);"name"in w&&(w.name=void 0),await s.replace({...w,force:!0});const C=()=>{e["~restoreDeferredRoute"]&&(e["~restoreDeferredRoute"]=void 0,s.currentRoute.value=s.resolve(u),d(),s.replace({...p,force:!0}).catch(()=>{}))};e["~restoreDeferredRoute"]=C,e.hooks.hookOnce("app:suspense:resolve",C)}else await s.replace({...p,force:!0});s.options.scrollBehavior=Fu.scrollBehavior}catch(_){await e.runWithContext(()=>Ul(_))}}),{provide:{router:s}}}}),Cve={build:-1};function Tve(e){return typeof e=="function"?e():e&&e.__v_isRef===!0?e.value:e}function kve(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Na(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=Eme(String(e.url)));const t=Object.keys(e).sort((r,i)=>r.localeCompare(i)),n={};for(const r of t)n[r]=e[r];return n}function Eve(e){const n=[];function r(a){if(!a||typeof a!="object"||Object.keys(a).length===0)return()=>{};a._context;const o={};for(const s in a){const l=a[s];typeof l<"u"&&l!==""&&(o[s]=l)}return Object.keys(o).some(s=>!s.startsWith("_"))?(n.push(o),()=>{const s=n.indexOf(o);s!==-1&&n.splice(s,1)}):()=>{}}function i(a){const o={};a?.debug&&(o._context={}),o._priority={};for(const s in n.sort((l,u)=>(l._priority||0)-(u._priority||0)))for(const l in n[s]){const u=l,c=a?.resolveRefs?Tve(n[s][l]):n[s][l];!l.startsWith("_")&&typeof c<"u"&&c!==""&&(o[l]=c,typeof n[s]._priority<"u"&&n[s]._priority!==-1&&(o._priority[u]=n[s]._priority),a?.debug&&(o._context[u]=n[s]._context?.[u]||n[s]._context||"anonymous"))}return a?.skipNormalize?o:kve(o)}return{stack:n,push:r,get:i}}const Mve=hr({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=Eve(),n=of("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const i in r)i[0]!=="_"&&t.push({[i]:r[i],_priority:r._priority?.[i]||-1})}return{provide:{nuxtSiteConfig:t}}}}),Ave=hr(()=>{const e=ai();sv(()=>
5{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Pve=hr(e=>{let t;async function n(){let r;try{r=await AW()}catch(i){const a=i;if(!("status"in a&&(a.status===404||a.status===403)))throw a}t&&clearTimeout(t),t=setTimeout(n,iR);try{const i=await $fetch(eM("builds/latest.json")+`?${Date.now()}`);i.id!==r?.id&&(e.hooks.callHook("app:manifest:update",i),t&&clearTimeout(t))}catch{}}sv(()=>{t=setTimeout(n,iR)})}),Dve=hr({name:"nuxt:chunk-reload",setup(e){const t=ai(),n=Ga(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:a})=>{r.add(a)});function i(a){const o=o1(n.app.baseURL,a.fullPath);vM({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((a,o)=>{r.has(a)&&i(o)})}}),Ive=hr({name:"nuxt:island-link-navigation",setup(e){}}),$ve=hr({name:"pinia",setup(e){const t=C1e();return e.vueApp.use(t),km(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){const e=vt();e.payload.pinia=_t(e.$pinia).state.value,km(void 0)}}}),Lve=Or(()=>Cn(()=>import("./x4fVPELD.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Rve=Or(()=>Cn(()=>import("./CH7kTn14.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ove=Or(()=>Cn(()=>import("./D1qp4t10.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Bve=Or(()=>Cn(()=>import("./Yf39ctSU.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Fve=Or(()=>Cn(()=>import("./DNMOoLPe.js"),[],import.meta.url).then(e=>e.default||e.default||e)),zve=Or(()=>Cn(()=>import("./DnulmeNr.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Nve=Or(()=>Cn(()=>import("./Cwfjar0-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Vve=Or(()=>Cn(()=>import("./Bbs9Am2d.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jve=Or(()=>Cn(()=>import("./guLwp9Mp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Uve=Or(()=>Cn(()=>Promise.resolve().then(()=>Aht),void 0,import.meta.url).then(e=>e.default||e.default||e)),Hve=Or(()=>Cn(()=>import("./Cbq6wCYm.js"),[],import.meta.url).then(e=>e.default||e.default||e)),qve=Or(()=>Cn(()=>import("./BDdVT1Lp.js"),__vite__mapDeps([2,3]),import.meta.url).then(e=>e.default||e.default||e)),Wve=Or(()=>Cn(()=>import("./CwnanWyn.js"),__vite__mapDeps([4,3]),import.meta.url).then(e=>e.default||e.default||e)),Gve=Or(()=>Cn(()=>import("./COSZxPWK.js"),__vite__mapDeps([5,3]),import.meta.url).then(e=>e.default||e.default||e)),Zve=Or(()=>Cn(()=>import("./C7srBFtX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Kve=Or(()=>Cn(()=>import("./DJxi07P7.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Yve=Or(()=>Cn(()=>import("./B_KMsWaz.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Xve=Or(()=>Cn(()=>import("./BveaXEPv.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Jve=Or(()=>Cn(()=>Promise.resolve().then(()=>kht),void 0,import.meta.url).then(e=>e.default||e.default||e)),Qve=Or(()=>Cn(()=>import("./CZqMA1FX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),e_e=Or(()=>Cn(()=>import("./DUDkZLZH.js"),__vite__mapDeps([6,7]),import.meta.url).then(e=>e.default||e.default||e)),t_e=Or(()=>Cn(()=>import("./D73PCarl.js"),__vite__mapDeps([8,7,9]),import.meta.url).then(e=>e.default||e.default||e)),n_e=Or(()=>Cn(()=>import("./Dln7qXO4.js"),__vite__mapDeps([10,7,9]),import.meta.url).then(e=>e.default||e.default||e)),r_e=Or(()=>Cn(()=>import("./yIMfKWjW.js"),__vite__mapDeps([11,7]),import.meta.url).then(e=>e.default||e.default||e)),i_e=[["MediaAudio",Lve],["MediaVideo",Rve],["MediaVimeo",Ove],["MediaYoutube",Bve],["T3BackendLayout",Fve],["T3BlDefault",zve],["T3CeBullets",Nve],["T3CeDefault",Vve],["T3CeDiv",jve],["T3CeHeader",Uve],["T3CeImage",Hve],["T3CeMenuAbstract",qve],["T3CeMenuSitemap",Wve],["T3CeMenuSubpages",Gve],["T3CeTable",Zve],["T3CeText",Kve],["T3CeTextmedia",Yve],["T3CeUploads",Xve],["T3Link",Jve],["T3LocaleSwitcher",Qve],["T3FormFieldDatepicker",e_e],["T3FormFieldMulti",t_e],["T3FormFieldSelect",n_e],["T3FormFieldUpload",r_e]],a_e=hr({name:"nuxt:global-components",setup(e){for(const[t,n]of i_e)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),ec={default:Or(()=>Cn(()=>import("./jzClrJQN.js"),__vite__mapDeps([12,13]),import.meta.url).then(e=>e.default||e))},o_e=hr({name:"nuxt:prefetch",setup(e){const t=ai();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof ec[r]=="function"&&await ec[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Na(n))return;const r=t.resolve(n);if(!r)return;const i=r.meta.layout;let a=PW(r.meta.middleware);a=a.filter(o=>
5typeof o=="string");for(const o of a)typeof sC[o]=="function"&&sC[o]();typeof i=="string"&&i in ec&&J2e(ec[i])})}});function ZR(e){return e?.defaultForDomains?.[0]||e?.domain||e?.domains?.[0]}function s_e(e,t){return ZR(e)||ZR(t)}const l_e=["i18n:plugin","i18n:plugin:ssg-detect","i18n:plugin:route-locale-detect"];function u_e(){return vt().$nuxtSiteConfig}function UW(e){const t=Le(e.locales).find(n=>n.code===e.defaultLocale);return t?.language||t?.iso||e.defaultLocale}function c_e(e,t){const n=Le(e.baseUrl)||void 0;if(!Le(e.differentDomains))return n;const i=Le(e.locales).find(o=>o.code===Le(e.defaultLocale)),a=s_e(Le(e.localeProperties),i);return a?Na(a,{strict:!0})?a:`${t}//${a}`:n}function d_e(e){const t=Le(e.localeProperties);return t.language?t.language:UW(e)}function f_e(e){return e.te("nuxtSiteConfig.description")?e.t("nuxtSiteConfig.description"):void 0}function h_e(e){return e.te("nuxtSiteConfig.name")?e.t("nuxtSiteConfig.name"):void 0}const p_e=hr({name:"nuxt-site-config:i18n",dependsOn:l_e,setup(e){const t=e.$i18n;if(!t)return;const n=u_e(),r=l1().protocol,i=Le(t.baseUrl);if(i){const d=n.get({resolveRefs:!0}),f=d.url;if(f&&!f.includes("localhost")){const h=kc(i,"https://"),p=kc(f,"https://");h.host!==p.host&&d.env==="production"&&console.error(`[Nuxt Site Config] Your I18n baseUrl \`${h.host}\` doesn't match your site url ${p.host}. This will cause production SEO issues. Either provide a matching baseUrl or remove the site url config.`)}}const a=W(()=>UW(t)),o=W(()=>c_e(t,r)),s=W(()=>d_e(t)),l=W(()=>f_e(t)),u=W(()=>h_e(t));let c;Je(t.locale,()=>{c&&c(),c=n.push({_priority:Cve.build,_context:"@nuxtjs/i18n",url:o,defaultLocale:a,currentLocale:s,description:l,name:u})},{immediate:!0})}}),m_e="~",g_e="en",y_e=e=>v_e([...e.cookies.necessary,...e.cookies.optional]).join(""),v_e=e=>e.map(t=>t.id),Opt=e=>sl(e).value=void 0,Bpt=(e,t=g_e)=>{if(typeof e=="string")return e;if(!t)throw new Error("No locale given for translatable that is not a string.");const n=e[t];if(!n)throw new Error(`Could not get translation for locale ${t}.`);return n},__e=hr(e=>{const n=Ga().public.cookieControl,r=sl(n.cookieNameIsConsentGiven,n.cookieOptions),i=sl(n.cookieNameCookiesEnabledIds,n.cookieOptions).value?.split(m_e),a=G(r.value===void 0?void 0:r.value===y_e(n));return{provide:{cookies:{cookiesEnabled:G(i===void 0?void 0:[...n.cookies.necessary.filter(d=>i.includes(d.id)),...n.cookies.optional.filter(d=>i.includes(d.id))]),cookiesEnabledIds:G(i),isConsentGiven:a,isModalActive:G(),locale:G(),moduleOptions:n}}}}),Vf={loadingClass:"isLoading",loadedClass:"isLoaded",appendClass:"lazyLoad",observerConfig:{}},b_e=hr(e=>{let t=null;const n=o=>o.parentNode&&o.parentNode.tagName.toLowerCase()==="picture",r=(o,s)=>{const l=`data-${s}`;if(Array.isArray(o))for(const u of o)r(u,s);else if(o.getAttribute(l))o.setAttribute(s,o.getAttribute(l)),o.removeAttribute(l),o.parentNode.load&&o.parentNode.load();else if(o.tagName.toLowerCase()==="picture"){const u=o.querySelector("img");u&&(r(u,"src"),r(u,"srcset"),u.addEventListener("load",()=>i(o)))}},i=o=>{o.classList.remove(Vf.loadingClass),o.classList.add(Vf.loadedClass)},a=o=>{const s=o.tagName.toLowerCase();let l="load";["video","audio"].includes(s)&&(l="loadeddata"),o.addEventListener(l,()=>{n(o)?o.parentNode.getAttribute("data-not-lazy")===null?i(o.parentNode):o.parentNode.removeAttribute("data-not-lazy"):i(o)})};t=new IntersectionObserver((o,s)=>{for(const{isIntersecting:l,target:u}of o)if(l){let c=u;!n(c)&&Vf.loadingClass&&c.classList.add(Vf.loadingClass);const d=c.querySelectorAll("source");r(c,"poster"),d.length&&(c=[...d]),r(c,"src"),r(c,"srcset"),s.unobserve(u)}},Vf.observerConfig),e.vueApp.directive("lazy-load",{beforeMount(o){a(o),!n(o)&&Vf.appendClass&&o.classList.add(Vf.appendClass)},mounted(o){t&&t.observe(o)},getSSRProps(){return{}}}),e.vueApp.directive("not-lazy",{beforeMount(o){for(const s of[...o.querySelectorAll("source"),...o.querySelectorAll("img")])r(s,"src"),r(s,"srcset");o.tagName.toLowerCase()!=="picture"&&o.removeAttribute("data-not-lazy")},getSSRProps(){return{}}})});var Mb={exports:{}},x_e=Mb.exports,KR;function w_e(){return KR||(KR=1,(function(e,t){(function(n,r){e.exports=r()})(x_e,(function(){function n(){return n=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},n.apply(this,arguments)}return function(r,i,a){a.updateLocale=function(o,s){var l=a.Ls[o];
5if(l)return(s?Object.keys(s):[]).forEach((function(u){l[u]&&s[u]&&typeof l[u]=="object"&&typeof s[u]=="object"&&!Array.isArray(l[u])?l[u]=n({},l[u],s[u]):l[u]=s[u]})),l}}}))})(Mb)),Mb.exports}var S_e=w_e();const C_e=dp(S_e);var Ab={exports:{}},T_e=Ab.exports,YR;function k_e(){return YR||(YR=1,(function(e,t){(function(n,r){e.exports=r()})(T_e,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})(Ab)),Ab.exports}k_e();var Pb={exports:{}},E_e=Pb.exports,XR;function M_e(){return XR||(XR=1,(function(e,t){(function(n,r){e.exports=r(DW())})(E_e,(function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(o){return""+o+(o===1?"er":"")}};return i.default.locale(a,null,!0),a}))})(Pb)),Pb.exports}M_e();var Db={exports:{}},A_e=Db.exports,JR;function P_e(){return JR||(JR=1,(function(e,t){(function(n,r){e.exports=r()})(A_e,(function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,c,d,f){return a.fromToBase(u,c,d,f)}i.en.relativeTime=o,a.fromToBase=function(u,c,d,f,h){for(var p,g,v,b=d.$locale().relativeTime||o,x=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=x.length,w=0;w<_;w+=1){var C=x[w];C.d&&(p=f?i(u).diff(d,C.d,!0):d.diff(u,C.d,!0));var T=(n.rounding||Math.round)(Math.abs(p));if(v=p>0,T<=C.r||!C.r){T<=1&&w>0&&(C=x[w-1]);var k=b[C.l];h&&(T=h(""+T)),g=typeof k=="string"?k.replace("%d",T):k(T,c,C.l,v);break}}if(c)return g;var A=v?b.future:b.past;return typeof A=="function"?A(g):A.replace("%s",g)},a.to=function(u,c){return s(u,c,this,!0)},a.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(l(this),u)},a.fromNow=function(u){return this.from(l(this),u)}}}))})(Db)),Db.exports}var D_e=P_e();const I_e=dp(D_e);var Ib={exports:{}},$_e=Ib.exports,QR;function L_e(){return QR||(QR=1,(function(e,t){(function(n,r){e.exports=r()})($_e,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,s){var l=o.prototype;s.utc=function(g){var v={date:g,utc:!0,args:arguments};return new o(v)},l.utc=function(g){var v=s(this.toDate(),{locale:this.$L,utc:!0});return g?v.add(this.utcOffset(),n):v},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var c=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else c.call(this)};var d=l.utcOffset;l.utcOffset=function(g,v){var b=this.$utils().u;if(b(g))return this.$u?0:b(this.$offset)?d.call(this):this.$offset;if(typeof g=="string"&&(g=(function(C){C===void 0&&(C="");var T=C.match(r);if(!T)return null;var k=(""+T[0]).match(i)||["-",0,0],A=k[0],P=60*+k[1]+ +k[2];return P===0?0:A==="+"?P:-P})(g),g===null))return this;var x=Math.abs(g)<=16?60*g:g;if(x===0)return this.utc(v);var _=this.clone();if(v)return _.$offset=x,_.$u=!1,_;var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(x+w,n)).$offset=x,_.$x.$localOffset=w,_};var f=l.format;l.format=function(g){var v=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,v)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var p=l.diff;l.diff=function(g,v,b){if(g&&this.$u===g.$u)return p.call(this,g,v,b);var x=this.local(),_=s(g).local();return p.call(x,_,v,b)}}}))})(Ib)),Ib.exports}var R_e=L_e();const O_e=dp(R_e);var $b={exports:{}},B_e=$b.exports,eO;function F_e(){return eO||(eO=1,(function(e,t){(function(n,r){e.exports=r()})(B_e,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,o){var s,l=function(f,h,p){p===void 0&&(p={});var g=new Date(f),v=(function(b,x){x===void 0&&(x={});var _=x.timeZoneName||"short",w=b+"|"+_,C=r[w];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),r[w]=C),C})(h,p);return v.formatToParts(g)},u=function(f,h){for(var p=l(f,h),g=[],v=0;v<p.length;v+=1){var b=p[v],x=b.type,_=b.value,w=n[x];w>=0&&(g[w]=parseInt(_,10))}var C=g[3],T=C===24?0:C,k=g[0]+"-"+g[1]+"-"+g[2]+" "+T+":"+g[4]+":"+g[5]+":000",A=+f;return(o.utc(k).valueOf()-(A-=A%1e3))/6e4},c=a.prototype;c.tz=function(f,h){if(f===void 0&&(f=s),!this.isValid())return this;
5var p,g=this.utcOffset(),v=this.toDate(),b=v.toLocaleString("en-US",{timeZone:f}),x=u(+v,f);if(!Number(x))p=this.utcOffset(0,h);else if(p=o(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(x,!0),h){var _=p.utcOffset();p=p.add(g-_,"minute")}return p.$x.$timezone=f,p},c.offsetName=function(f){var h=this.$x.$timezone||o.tz.guess(),p=l(this.valueOf(),h,{timeZoneName:f}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return p&&p.value};var d=c.startOf;c.startOf=function(f,h){if(!this.$x||!this.$x.$timezone)return d.call(this,f,h);var p=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return d.call(p,f,h).tz(this.$x.$timezone,!0)},o.tz=function(f,h,p){var g=p&&h,v=p||h||s,b=u(+o(),v);if(typeof f!="string")return o(f).tz(v);var x=o.utc(f,g).valueOf();if(Number.isNaN(x)){var _=o(NaN);return _.$x.$timezone=v,_}var w=(function(A,P,D){var $=A-60*P*1e3,O=u($,D);if(P===O)return[$,P];var z=u($-=60*(O-P)*1e3,D);return O===z?[$,O]:[A-60*Math.min(O,z)*1e3,Math.max(O,z)]})(x,b,v),C=w[0],T=w[1],k=o(C).utcOffset(T);return k.$x.$timezone=v,k},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(f){s=f}}}))})($b)),$b.exports}var z_e=F_e();const N_e=dp(z_e);yi.extend(C_e);yi.extend(I_e);yi.extend(O_e);yi.extend(N_e);yi.tz.setDefault("Europe/Paris");yi.updateLocale("fr",{weekStart:7});yi.locale("fr");const V_e=hr(async e=>e.provide("dayjs",yi));const D4=typeof window<"u",sf=(e,t=!1)=>t?Symbol.for(e):Symbol(e),j_e=(e,t,n)=>U_e({l:e,k:t,s:n}),U_e=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),bi=e=>typeof e=="number"&&isFinite(e),HW=e=>Kx(e)==="[object Date]",I4=e=>Kx(e)==="[object RegExp]",_M=e=>Cr(e)&&Object.keys(e).length===0,Kr=Object.assign,H_e=Object.create,Kn=(e=null)=>H_e(e);let tO;const q_e=()=>tO||(tO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Kn()),W_e=Object.prototype.hasOwnProperty;function Es(e,t){return W_e.call(e,t)}const Ir=Array.isArray,mr=e=>typeof e=="function",xt=e=>typeof e=="string",Wr=e=>typeof e=="boolean",Rn=e=>e!==null&&typeof e=="object",G_e=e=>Rn(e)&&mr(e.then)&&mr(e.catch),qW=Object.prototype.toString,Kx=e=>qW.call(e),Cr=e=>Kx(e)==="[object Object]",Z_e=e=>e==null?"":Ir(e)||Cr(e)&&e.toString===qW?JSON.stringify(e,null,2):String(e);function bM(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function K_e(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function nO(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Y_e(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const X_e=/^javascript:/i,J_e=/^(?:href|src|action|formaction)$/i,Q_e=/&#(?:x([0-9a-f]+)|(\d+));?/gi,e3e=/&(?:Tab|NewLine);/g,t3e=/:?/gi,n3e=/[\u0000-\u0020\u007f-\u009f]/g,r3e=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,i3e=/(^|[\s"'<>/])on(\w+\s*=)/gi,a3e=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function o3e(e,t,n){const r=t||n;if(!r)return e;const i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function xM(e){const t=e.replace(Q_e,o3e).replace(e3e,"").replace(t3e,":").replace(n3e,"");return X_e.test(t)}function s3e(e){const t=/url\s*\(/gi;let n="",r=0,i;for(;(i=t.exec(e))!==null;){const a=i.index,o=t.lastIndex-1;let s=o+1,l=1,u=null;for(;s<e.length;s++){const f=e[s];if(u){f===u&&(u=null);continue}if(f==='"'||f==="'")u=f;else if(f==="(")l++;else if(f===")"&&(l--,l===0))break}if(l!==0)break;const c=e.slice(o+1,s).trim(),d=c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'")?c.slice(1,-1).trim():c;n+=e.slice(r,a),n+=xM(d)?"url(about:blank)":e.slice(a,s+1),r=s+1}return n+e.slice(r)}function rO(e,t){if(J_e.test(e)&&xM(t))return"about:blank";const n=e.toLowerCase()==="style"?s3e(t):t;return Y_e(n)}function l3e(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,r)=>`${n}="${rO(n,r)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,r)=>`${n}='${rO(n,r)}'`),r3e.test(e)&&(e=e.replace(i3e,"$1on$2")),e=e.replace(a3e,(t,n,r,i)=>xM(i)?`${n}${r}about:blank`:t),e}const iO=e=>!Rn(e)||Ir(e);function nm(e,t){if(iO(e)||iO(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(a=>{if(a==="__proto__")return;const o=r[a];if(Ir(o)){const s=[];
5s.length=o.length,i[a]=s,n.push({src:o,des:s})}else Rn(o)?((!Rn(i[a])||Ir(i[a]))&&(i[a]=Kn()),n.push({src:o,des:i[a]})):i[a]=o})}}function u3e(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){const r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){const i=e.strictCanonicals?e.getRouteWithoutQuery():void 0,a=d3e(e,i),o=wM(e,i);r.link=r.link.concat(a,h3e(e,o)),r.meta=r.meta.concat(p3e(e,o),m3e(e),y3e(e,g3e(e,a)))}return r}function c3e(e){const t=new Map;for(const n of e){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[r,i]=n.language.split("-");r&&i&&(n.isCatchallLocale||!t.has(r))&&t.set(r,n),t.set(n.language,n)}return t}function d3e(e,t=e.strictCanonicals?e.getRouteWithoutQuery():void 0){if(!e.hreflangLinks)return[];const n=[],r=c3e(e.locales),i=new Map;for(const[a,o]of r.entries()){const s=i.get(o.code)??f3e(o.code,e,t);if(!s)continue;i.set(o.code,s);const l=e.strictSeo?{rel:"alternate",href:s,hreflang:a}:{[e.key]:`i18n-alt-${a}`,rel:"alternate",href:s,hreflang:a};n.push(l),e.defaultLocale&&e.defaultLocale===o.code&&n[0].hreflang!=="x-default"&&n.unshift(e.strictSeo?{rel:"alternate",href:s,hreflang:"x-default"}:{[e.key]:"i18n-xd",rel:"alternate",href:s,hreflang:"x-default"})}return n}function f3e(e,t,n=t.strictCanonicals?t.getRouteWithoutQuery():void 0){const r=t.getLocalizedRoute(e,n);if(r)return ov(JE(r,t.baseUrl),t.strictCanonicals?WW(t):{})}function wM(e,t=e.strictCanonicals?e.getRouteWithoutQuery():void 0){const n=e.getLocalizedRoute(e.currentLocale,t);return n?ov(JE(n,e.baseUrl),WW(e)):""}function h3e(e,t=wM(e)){return t?[e.strictSeo?{rel:"canonical",href:t}:{[e.key]:"i18n-can",rel:"canonical",href:t}]:[]}function WW(e,t=e.getCurrentRoute()){if(!e.canonicalQueries.length)return{};const r=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},i={};for(const a of e.canonicalQueries.filter(o=>o in r)){i[a]??=[];for(const o of v3e(r[a]))i[a].push(o||"")}return i}function p3e(e,t=wM(e)){return t?[e.strictSeo?{property:"og:url",content:t}:{[e.key]:"i18n-og-url",property:"og:url",content:t}]:[]}function m3e(e,t=e.getCurrentLanguage()){return t?[e.strictSeo?{property:"og:locale",content:$4(t)}:{[e.key]:"i18n-og",property:"og:locale",content:$4(t)}]:[]}function g3e(e,t){const n=e.locales.map(i=>i.language||i.code);if(!e.strictSeo)return n;const r=new Set(t.map(i=>i.hreflang));return n.filter(i=>r.has(i))}function y3e(e,t,n=e.getCurrentLanguage()){return t.filter(i=>i&&i!==n).map(i=>e.strictSeo?{property:"og:locale:alternate",content:$4(i)}:{[e.key]:`i18n-og-alt-${i}`,property:"og:locale:alternate",content:$4(i)})}function $4(e=""){return e.replace(/-/g,"_")}function v3e(e){return Array.isArray(e)?e:[e]}function SM(e,t,n=e.getLocale()){if(xt(t)&&Na(t,{acceptRelative:!0}))return t;try{return ZW(e,t,n).fullPath}catch{return""}}function GW(e,t,n=e.getLocale()){try{return ZW(e,t,n)}catch{return}}function _3e(e){if(!xt(e))return Kr({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=S4(e);return{path:t,query:Cm(n),hash:r}}return{name:e}}function ZW(e,t,n){const r=_3e(t),i=e.resolveLocalizedRouteObject(r,n);i.name&&(i.path=void 0);const a=e.router.resolve(i);return a.name?a:e.router.resolve(t)}function CM(e,t,n=e.router.currentRoute.value){const r=e.getRouteBaseName(n);if(!r)return"";const i={name:r,params:Kr({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,meta:n.meta},a=SM(e,i,t);return e.afterSwitchLocalePath(a,t)}function b3e(e,t,n=e.getLocale(),r=e.getLocales(),i=e.routingOptions.domains?e.getBaseUrl(n):e.getBaseUrl()){const a=r.find(l=>l.code===n)||{},o=[...new Set(typeof t.seo=="object"&&t.seo?.canonicalQueries||[])],s={...e,afterSwitchLocalePath:e.getAlternatePath};
5if(!i&&!e.routingOptions.domains){if(e.strictSeo)throw new Error("I18n `baseUrl` is required to generate valid SEO tag links.");console.warn("I18n `baseUrl` is required to generate valid SEO tag links.")}return{...t,key:e.strictSeo?"key":"id",strictSeo:e.strictSeo,locales:r,currentLocale:n,baseUrl:i,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.strictSeo||e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>a.language,getCurrentDirection:()=>a.dir||"ltr",getLocaleRoute:l=>GW(e,l),getLocalizedRoute:(l,u)=>CM(s,l,u),getRouteWithoutQuery:()=>{try{return Kr({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function x3e(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return u3e(b3e(e,{dir:t,lang:n,seo:r}))}function w3e(e=0){return t=>{const i=(typeof t=="string"?t:t.pathname).split("?")[0].split("/");return i[0]===""&&i.shift(),i.length>e&&i[e]||""}}const d2="___",S3e="default",C3e=d2+S3e;function lC(e){return typeof e=="string"?e:e!=null?e.toString():""}function Lb(e){return lC(typeof e=="object"?e?.name:e).split(d2)[0]}function uC(e,t,n){return n?e+d2+t+C3e:e+d2+t}const T3e=e=>e?u2:Tm;function k3e(e,t,n){return n.routing&&(e!==t||n.strategy==="prefix")}const E3e=w3e(0),L4=e=>E3e(e),M3e=e=>e.split(d2).at(1)??"";function A3e(e){return String(typeof e!="object"?e:e?.name||e?.path||"")}function P3e(e){const t=A3e(e);if(t[0]==="/")return L4(t);const n=M3e(t);return n||(typeof e=="object"&&e?.path?L4(String(e.path)):"")}function D3e(e,t){return!t.routing&&!t.domains?n=>lC(n):(n,r)=>{const i=lC(n),a=uC(i,r,!0);return e(a)?a:uC(i,r,!1)}}function I3e(e,t){return t.routing?t.strategy==="prefix"?(n,r)=>{const i="/"+r+(n.path==="/"?"":n.path),a=e.options.routes.find(o=>o.path===i);return a!=null?e.resolve(Kr({},n,a,{path:i})):n}:n=>e.resolve(n):n=>n}const f2=["fr","en"],Ty={fr:[],en:[]},$3e=[()=>Cn(()=>import("./B4QS9ZDZ.js"),[],import.meta.url)],fp=[{code:"fr",language:"fr",domains:[],defaultForDomains:[]},{code:"en",language:"en",domains:[],defaultForDomains:[]}],hp=(e="")=>e.replace(/^https?:\/\//i,"").toLowerCase();function h2(e,t){return!!e?.domains.some(n=>hp(n)===t)}function L3e(e,t,n){const r=e.find(i=>i.code===n);return!r?.domains.length||h2(r,t)?"here":e.some(i=>h2(i,t))?"other-domain":"off-host"}function KW(e,t,n){return L3e(e,t,n)!=="other-domain"}const YW=e=>e?.defaultForDomains[0]||e?.domain||e?.domains[0];function R3e(e,t,n){if(!KW(n,e,t))return YW(n.find(r=>r.code===t))}function O3e(e,t,n){const r=e.filter(i=>h2(i,t));return(r.find(i=>i.code===n)||r.find(i=>i.defaultForDomains.some(a=>hp(a)===t))||r[0])?.code}function B3e(e,t){const n=t.replace(/^\./,"").replace(/:\d+$/,"").toLowerCase();return e.every(r=>r.domains.concat(r.domain||[]).every(i=>{const a=hp(i).replace(/:\d+$/,"");return a===n||a.endsWith("."+n)}))}const XW=(e,t)=>Na(e,{strict:!0})?e:t.protocol+"//"+e;function F3e(e,t,n,r=fp){const i=r.find(o=>o.code===n),a=e?.[n]?.domain||i?.domain||i?.domains.find(o=>hp(o)===t.host)||R3e(t.host,n,r);if(a)return XW(a,t)}function z3e(e,t,n=fp){let r;for(const i of n){const a=R4(i,e);for(const o of[a.domain,...a.domains])!o||hp(o)!==t.host||(!r||!Na(r,{strict:!0})&&Na(o,{strict:!0}))&&(r=o)}return r&&XW(r,t)}function R4(e,t){if(typeof e=="string")return e;const n=e,r=t[n.code]?.domain;return!r||r===n.domain?e:{...n,domain:r,domains:[r],defaultForDomains:n.defaultForDomains.length?[r]:[]}}function N3e(e){const t={};for(const n of f2){const r=V3e(e,[n]),i=j3e(n,r);t[n]={fallbacks:r,cacheable:i}}return t}function V3e(e,t){if(e===!1)return[];if(Ir(e))return e;let n=[];if(xt(e))return t.every(i=>i!==e)&&n.push(e),n;const r=[...t,"default"];for(const i of r)i in e&&(n=[...n,...e[i].filter(Boolean)]);return n}function aO(e){return Ty[e]!=null&&Ty[e].every(t=>t.cache!==!1)}function j3e(e,t){return aO(e)&&t.every(n=>aO(n))}function U3e(e,t=fp){return t.find(n=>n.defaultForDomains.some(r=>hp(r)===e))?.code}function JW(e,t,n=fp){const r=U3e(e,n)||t;return r||(n.some(i=>i.domains.length)?n[0]?.code:"")||""}const Mh=e=>f2.includes(e||""),oO=e=>Mh(e)?e:void 0,H3e=e=>!!e.path&&!e.name;function q3e(e){const{router:t,defaultLocale:n,strictSeo:r,compactRoutes:i}=e,a={strategy:e.strategy,routing:e.routing,domains:e.domains},o=T3e(e.trailingSlash),s=D3e(w=>t.hasRoute(w),a);function l(w,C){w.name=Lb(w.name||t.currentRoute.value);const T=s(w.name,C);if(t.hasRoute(T))w.name=T,i&&w.params&&delete w.params.locale;else if(i&&Mh(C)&&d().has(w.name))return w.params={...w.params||{},locale:C},w;return w.name=T,w}const u=I3e(t,a);let c;function d(){if(c)return c;if(c=new Set,i)for(const w of t.getRoutes())w.name!=null&&/^\/:locale\(/.test(w.path)&&c.add(String(w.name));return c}
5function f(w,C){const T=u(w,C),k=Lb(T);if(k){const A=s(k,C);if(t.hasRoute(A)){T.name=A;const P=T;return i&&P.params&&delete P.params.locale,T}if(i&&d().has(k)){const P=T;return P.name=k,P.params={...P.params||{},locale:C},P}return T.name=A,T}return k3e(C,n,a)&&(T.path="/"+C+T.path),T.path=o(T.path,!0),T}const h=()=>t.currentRoute.value.meta.nuxtI18nInternal??{},p=(w,C=h())=>r&&!!w&&Object.keys(C).length>0&&!C[w],g=a.strategy==="prefix_except_default"||a.strategy==="prefix_and_default",v=(w,C,T)=>!!w&&JW(hp(w),e.configuredDefaultLocale,T)===C,b=w=>(C,T,k,A)=>{const P=w(T);return P?(g&&v(YW(k),T,A)&&L4(C)===T&&(C=C.slice(T.length+1)||"/"),o1(P,C)):C},x=b(e.getBaseUrl),_=b(e.getCanonicalBaseUrl);return{router:t,getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:Lb,getRouteLocalizedParams:h,getLocalizedDynamicParams:w=>{const C=e.getLocalePathPayload?.();return C?C[w]||{}:h()?.[w]},afterSwitchLocalePath:(w,C)=>{if(p(C))return"";if(!a.domains)return w;const T=e.getHost()??"",k=e.getLocales(),A=k.find(P=>P.code===C);return h2(A,T)||!w?w:x(w,C,A,k)},getAlternatePath:(w,C)=>{if(C!==e.getLocale()&&p(C))return"";if(!a.domains||!w)return w;const T=e.getLocales();return _(w,C,T.find(k=>k.code===C),T)},resolveLocalizedRouteObject:(w,C)=>H3e(w)?f(w,C):l(w,C)}}function lv(e){const t=e?._nuxtI18n?.composableCtx;if(!t)throw new Error("i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.");return t}function W3e(e,t=vt()){const n=G3e(t);return{...q3e({router:ai(),defaultLocale:e.getDefaultLocale(),configuredDefaultLocale:e.config.defaultLocale||"",getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getCanonicalBaseUrl:e.getCanonicalBaseUrl,getHost:()=>l1().host,getLocalePathPayload:()=>!1,strategy:"prefix_except_default",routing:!0,domains:!1,trailingSlash:!1,strictSeo:!1,compactRoutes:!1}),strictSeo:!1,_head:void 0,get head(){return this._head??=mo({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:typeof e.config.experimental.strictSeo=="object"&&e.config.experimental.strictSeo||!1},localePathPayload:n,routingOptions:{defaultLocale:e.config.defaultLocale||"",domains:!1,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!0}}}function G3e(e=vt()){const t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||"{}")}function Z3e(e,t,n){return{line:e,column:t,offset:n}}function cC(e,t,n){return{start:e,end:t}}const sr={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},K3e=17;function Yx(e,t,n={}){const{domain:r,messages:i,args:a}=n,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function Y3e(e){throw e}const Il=" ",X3e="\r",ya=` 6`,J3e="\u2028",Q3e="\u2029";function ebe(e){const t=e;let n=0,r=1,i=1,a=0;const o=k=>t[k]===X3e&&t[k+1]===ya,s=k=>t[k]===ya,l=k=>t[k]===Q3e,u=k=>t[k]===J3e,c=k=>o(k)||s(k)||l(k)||u(k),d=()=>n,f=()=>r,h=()=>i,p=()=>a,g=k=>o(k)||l(k)||u(k)?ya:t[k],v=()=>g(n),b=()=>g(n+a);function x(){return a=0,c(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function _(){return o(n+a)&&a++,a++,t[n+a]}function w(){n=0,r=1,i=1,a=0}function C(k=0){a=k}function T(){const k=n+a;for(;k!==n;)x();a=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:v,currentPeek:b,next:x,peek:_,reset:w,resetPeek:C,skipToPeek:T}}const Iu=void 0,tbe=".",sO="'",nbe="tokenizer";function rbe(e,t={}){const n=t.location!==!1,r=ebe(e),i=()=>r.index(),a=()=>Z3e(r.line(),r.column(),r.index()),o=a(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(X,ee,oe,..._e){const ge=u();if(ee.column+=oe,ee.offset+=oe,c){const Oe=n?cC(ge.startLoc,ee):null,Se=Yx(X,Oe,{domain:nbe,args:_e});c(Se)}}function f(X,ee,oe){X.endLoc=a(),X.currentType=ee;const _e={type:ee};return n&&(_e.loc=cC(X.startLoc,X.endLoc)),oe!=null&&(_e.value=oe),_e}const h=X=>f(X,13);function p(X,ee){return X.currentChar()===ee?(X.next(),ee):(d(sr.EXPECTED_TOKEN,a(),0,ee),"")}function g(X){let ee="";for(;X.currentPeek()===Il||X.currentPeek()===ya;)ee+=X.currentPeek(),X.peek();return ee}function v(X){const ee=g(X);return X.skipToPeek(),ee}function b(X){if(X===Iu)return!1;const ee=X.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee===95}function x(X){if(X===Iu)return!1;const ee=X.charCodeAt(0);return ee>=48&&ee<=57}function _(X,ee){const{currentType:oe}=ee;if(oe!==2)return!1;g(X);const _e=b(X.currentPeek());return X.resetPeek(),_e}function w(X,ee){const{currentType:oe}=ee;if(oe!==2)return!1;g(X);const _e=X.currentPeek()==="-"?X.peek():X.currentPeek(),ge=x(_e);return X.resetPeek(),ge}function C(X,ee){const{currentType:oe}=ee;if(oe!==2)return!1;g(X);const _e=X.currentPeek()===sO;return X.resetPeek(),_e}function T(X,ee){const{currentType:oe}=ee;if(oe!==7)return!1;g(X);const _e=X.currentPeek()===".";return X.resetPeek(),_e}function k(X,ee){const{currentType:oe}=ee;if(oe!==8)return!1;g(X);const _e=b(X.currentPeek());return X.resetPeek(),_e}function A(X,ee){const{currentType:oe}=ee;if(!(oe===7||oe===11))return!1;g(X);const _e=X.currentPeek()===":";return X.resetPeek(),_e}function P(X,ee){const{currentType:oe}=ee;if(oe!==9)return!1;const _e=()=>{const Oe=X.currentPeek();return Oe==="{"?b(X.peek()):Oe==="@"||Oe==="|"||Oe===":"||Oe==="."||Oe===Il||!Oe?!1:Oe===ya?(X.peek(),_e()):$(X,!1)},ge=_e();return X.resetPeek(),ge}function D(X){g(X);const ee=X.currentPeek()==="|";return X.resetPeek(),ee}function $(X,ee=!0){const oe=(ge=!1,Oe="")=>{const Se=X.currentPeek();return Se==="{"||Se==="@"||!Se?ge:Se==="|"?!(Oe===Il||Oe===ya):Se===Il?(X.peek(),oe(!0,Il)):Se===ya?(X.peek(),oe(!0,ya)):!0},_e=oe();return ee&&X.resetPeek(),_e}function O(X,ee){const oe=X.currentChar();return oe===Iu?Iu:ee(oe)?(X.next(),oe):null}function z(X){const ee=X.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===95||ee===36}function j(X){return O(X,z)}function B(X){const ee=X.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===95||ee===36||ee===45}function R(X){return O(X,B)}function J(X){const ee=X.charCodeAt(0);return ee>=48&&ee<=57}function K(X){return O(X,J)}function Z(X){const ee=X.charCodeAt(0);return ee>=48&&ee<=57||ee>=65&&ee<=70||ee>=97&&ee<=102}function ne(X){return O(X,Z)}function se(X){let ee="",oe="";for(;ee=K(X);)oe+=ee;return oe}function ce(X){let ee="";for(;;){const oe=X.currentChar();if(oe==="\\"){const _e=X.peek();_e==="{"||_e==="}"||_e==="@"||_e==="|"||_e==="\\"?(ee+=oe+_e,X.next(),X.next()):(X.resetPeek(),ee+=oe,X.next())}else{if(oe==="{"||oe==="}"||oe==="@"||oe==="|"||!oe)break;if(oe===Il||oe===ya)if($(X))ee+=oe,X.next();else{if(D(X))break;ee+=oe,X.next()}else ee+=oe,X.next()}}return ee}function Re(X){v(X);let ee="",oe="";for(;ee=R(X);)oe+=ee;const _e=X.currentChar();if(_e&&_e!=="}"&&_e!==Iu&&_e!==Il&&_e!==ya&&_e!=="ã"){const ge=Pe(X);return d(sr.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,oe+ge),oe+ge}return X.currentChar()===Iu&&d(sr.UNTERMINATED_CLOSING_BRACE,a(),0),oe}function Ue(X){v(X);let ee="";
6return X.currentChar()==="-"?(X.next(),ee+=`-${se(X)}`):ee+=se(X),X.currentChar()===Iu&&d(sr.UNTERMINATED_CLOSING_BRACE,a(),0),ee}function $e(X){return X!==sO&&X!==ya}function ke(X){v(X),p(X,"'");let ee="",oe="";for(;ee=O(X,$e);)ee==="\\"?oe+=Ve(X):oe+=ee;const _e=X.currentChar();return _e===ya||_e===Iu?(d(sr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),_e===ya&&(X.next(),p(X,"'")),oe):(p(X,"'"),oe)}function Ve(X){const ee=X.currentChar();switch(ee){case"\\":case"'":return X.next(),`\\${ee}`;case"u":return nt(X,ee,4);case"U":return nt(X,ee,6);default:return d(sr.UNKNOWN_ESCAPE_SEQUENCE,a(),0,ee),""}}function nt(X,ee,oe){p(X,ee);let _e="";for(let ge=0;ge<oe;ge++){const Oe=ne(X);if(!Oe){d(sr.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${ee}${_e}${X.currentChar()}`);break}_e+=Oe}return`\\${ee}${_e}`}function xe(X){return X!=="{"&&X!=="}"&&X!==Il&&X!==ya}function Pe(X){v(X);let ee="",oe="";for(;ee=O(X,xe);)oe+=ee;return oe}function je(X){let ee="",oe="";for(;ee=j(X);)oe+=ee;return oe}function Fe(X){const ee=oe=>{const _e=X.currentChar();return _e==="{"||_e==="@"||_e==="|"||_e==="("||_e===")"||!_e||_e===Il?oe:(oe+=_e,X.next(),ee(oe))};return ee("")}function re(X){v(X);const ee=p(X,"|");return v(X),ee}function le(X,ee){let oe=null;switch(X.currentChar()){case"{":return ee.braceNest>=1&&d(sr.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),X.next(),oe=f(ee,2,"{"),v(X),ee.braceNest++,oe;case"}":return ee.braceNest>0&&ee.currentType===2&&d(sr.EMPTY_PLACEHOLDER,a(),0),X.next(),oe=f(ee,3,"}"),ee.braceNest--,ee.braceNest>0&&v(X),ee.inLinked&&ee.braceNest===0&&(ee.inLinked=!1),oe;case"@":return ee.braceNest>0&&d(sr.UNTERMINATED_CLOSING_BRACE,a(),0),oe=ye(X,ee)||h(ee),ee.braceNest=0,oe;default:{let ge=!0,Oe=!0,Se=!0;if(D(X))return ee.braceNest>0&&d(sr.UNTERMINATED_CLOSING_BRACE,a(),0),oe=f(ee,1,re(X)),ee.braceNest=0,ee.inLinked=!1,oe;if(ee.braceNest>0&&(ee.currentType===4||ee.currentType===5||ee.currentType===6))return d(sr.UNTERMINATED_CLOSING_BRACE,a(),0),ee.braceNest=0,Me(X,ee);if(ge=_(X,ee))return oe=f(ee,4,Re(X)),v(X),oe;if(Oe=w(X,ee))return oe=f(ee,5,Ue(X)),v(X),oe;if(Se=C(X,ee))return oe=f(ee,6,ke(X)),v(X),oe;if(!ge&&!Oe&&!Se)return oe=f(ee,12,Pe(X)),d(sr.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,oe.value),v(X),oe;break}}return oe}function ye(X,ee){const{currentType:oe}=ee;let _e=null;const ge=X.currentChar();switch((oe===7||oe===8||oe===11||oe===9)&&(ge===ya||ge===Il)&&d(sr.INVALID_LINKED_FORMAT,a(),0),ge){case"@":return X.next(),_e=f(ee,7,"@"),ee.inLinked=!0,_e;case".":return v(X),X.next(),f(ee,8,".");case":":return v(X),X.next(),f(ee,9,":");default:return D(X)?(_e=f(ee,1,re(X)),ee.braceNest=0,ee.inLinked=!1,_e):T(X,ee)||A(X,ee)?(v(X),ye(X,ee)):k(X,ee)?(v(X),f(ee,11,je(X))):P(X,ee)?(v(X),ge==="{"?le(X,ee)||_e:f(ee,10,Fe(X))):(oe===7&&d(sr.INVALID_LINKED_FORMAT,a(),0),ee.braceNest=0,ee.inLinked=!1,Me(X,ee))}}function Me(X,ee){let oe={type:13};if(ee.braceNest>0)return le(X,ee)||h(ee);if(ee.inLinked)return ye(X,ee)||h(ee);switch(X.currentChar()){case"{":return le(X,ee)||h(ee);case"}":return d(sr.UNBALANCED_CLOSING_BRACE,a(),0),X.next(),f(ee,3,"}");case"@":return ye(X,ee)||h(ee);default:{if(D(X))return oe=f(ee,1,re(X)),ee.braceNest=0,ee.inLinked=!1,oe;if($(X))return f(ee,0,ce(X));break}}return oe}function ve(){const{currentType:X,offset:ee,startLoc:oe,endLoc:_e}=l;return l.lastType=X,l.lastOffset=ee,l.lastStartLoc=oe,l.lastEndLoc=_e,l.offset=i(),l.startLoc=a(),r.currentChar()===Iu?f(l,13):Me(r,l)}return{nextToken:ve,currentOffset:i,currentPosition:a,context:u}}const ibe="parser",abe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,obe=/\\([\\@{}|])/g;function sbe(e,t){return t}function lbe(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ube(e={}){const t=e.location!==!1,{onError:n}=e;function r(b,x,_,w,...C){const T=b.currentPosition();if(T.offset+=w,T.column+=w,n){const k=t?cC(_,T):null,A=Yx(x,k,{domain:ibe,args:C});n(A)}}function i(b,x,_){const w={type:b};return t&&(w.start=x,w.end=x,w.loc={start:_,end:_}),w}function a(b,x,_,w){t&&(b.end=x,b.loc&&(b.loc.end=_))}function o(b,x){const _=b.context(),w=i(3,_.offset,_.startLoc);return w.value=x.replace(obe,sbe),a(w,b.currentOffset(),b.currentPosition()),w}function s(b,x){const _=b.context(),{lastOffset:w,lastStartLoc:C}=_,T=i(5,w,C);return T.index=parseInt(x,10),b.nextToken(),a(T,b.currentOffset(),b.currentPosition()),T}function l(b,x){const _=b.context(),{lastOffset:w,lastStartLoc:C}=_,T=i(4,w,C);return T.key=x,b.nextToken(),a(T,b.currentOffset(),b.currentPosition()),T}function u(b,x){const _=b.context(),{lastOffset:w,lastStartLoc:C}=_,T=i(9,w,C);return T.value=x.replace(abe,lbe),b.nextToken(),a(T,b.currentOffset(),b.currentPosition()),T}function c(b){const x=b.nextToken(),_=b.context(),{lastOffset:w,lastStartLoc:C}=_,T=i(8,w,C);return x.type!==11?(r(b,sr.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),T.value="",a(T,w,C),{nextConsumeToken:x,node:T}):(x.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,$l(x)),T.value=x.value||"",a(T,b.currentOffset(),b.currentPosition()),{node:T})}function d(b,x){const _=b.context(),w=i(7,_.offset,_.startLoc);return w.value=x,a(w,b.currentOffset(),b.currentPosition()),w}function f(b){const x=b.context(),_=i(6,x.offset,x.startLoc);let w=b.nextToken();if(w.type===8){const C=c(b);_.modifier=C.node,w=C.nextConsumeToken||b.nextToken()}switch(w.type!==9&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(w)),w=b.nextToken(),w.type===2&&(w=b.nextToken()),w.type){case 10:w.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(w)),_.key=d(b,w.value||"");break;case 4:w.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(w)),_.key=l(b,w.value||"");break;case 5:w.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(w)),_.key=s(b,w.value||"");break;case 6:w.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(w)),_.key=u(b,w.value||"");break;default:{r(b,sr.UNEXPECTED_EMPTY_LINKED_KEY,x.lastStartLoc,0);const C=b.context(),T=i(7,C.offset,C.startLoc);return T.value="",a(T,C.offset,C.startLoc),_.key=T,a(_,C.offset,C.startLoc),{nextConsumeToken:w,node:_}}}return a(_,b.currentOffset(),b.currentPosition()),{node:_}}function h(b){const x=b.context(),_=x.currentType===1?b.currentOffset():x.offset,w=x.currentType===1?x.endLoc:x.startLoc,C=i(2,_,w);C.items=[];let T=null;do{const P=T||b.nextToken();switch(T=null,P.type){case 0:P.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(P)),C.items.push(o(b,P.value||""));break;case 5:P.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(P)),C.items.push(s(b,P.value||""));break;case 4:P.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(P)),C.items.push(l(b,P.value||""));break;case 6:P.value==null&&r(b,sr.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,$l(P)),C.items.push(u(b,P.value||""));break;case 7:{const D=f(b);C.items.push(D.node),T=D.nextConsumeToken||null;break}}}while(x.currentType!==13&&x.currentType!==1);const k=x.currentType===1?x.lastOffset:b.currentOffset(),A=x.currentType===1?x.lastEndLoc:b.currentPosition();return a(C,k,A),C}function p(b,x,_,w){const C=b.context();let T=w.items.length===0;const k=i(1,x,_);k.cases=[],k.cases.push(w);do{const A=h(b);T||(T=A.items.length===0),k.cases.push(A)}while(C.currentType!==13);return T&&r(b,sr.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),a(k,b.currentOffset(),b.currentPosition()),k}function g(b){const x=b.context(),{offset:_,startLoc:w}=x,C=h(b);return x.currentType===13?C:p(b,_,w,C)}function v(b){const x=rbe(b,Kr({}
6,e)),_=x.context(),w=i(0,_.offset,_.startLoc);return t&&w.loc&&(w.loc.source=b),w.body=g(x),e.onCacheKey&&(w.cacheKey=e.onCacheKey(b)),_.currentType!==13&&r(x,sr.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,b[_.offset]||""),a(w,x.currentOffset(),x.currentPosition()),w}return{parse:v}}function $l(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}function cbe(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function lO(e,t){for(let n=0;n<e.length;n++)TM(e[n],t)}function TM(e,t){switch(e.type){case 1:lO(e.cases,t),t.helper("plural");break;case 2:lO(e.items,t);break;case 6:{TM(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function dbe(e,t={}){const n=cbe(e);n.helper("normalize"),e.body&&TM(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function fbe(e){const t=e.body;return t.type===2?uO(t):t.cases.forEach(n=>uO(n)),e}function uO(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=bM(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function M0(e){switch(e.t=e.type,e.type){case 0:{const t=e;M0(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)M0(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)M0(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;M0(t.key),t.k=t.key,delete t.key,t.modifier&&(M0(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function hbe(e,t){const{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const s=()=>o;function l(g,v){o.code+=g}function u(g,v=!0){const b=v?r:"";l(i?b+" ".repeat(g):b)}function c(g=!0){const v=++o.indentLevel;g&&u(v)}function d(g=!0){const v=--o.indentLevel;g&&u(v)}function f(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:d,newline:f,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function pbe(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Am(e,t.key),t.modifier?(e.push(", "),Am(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function mbe(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let a=0;a<i&&(Am(e,t.items[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function gbe(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let a=0;a<i&&(Am(e,t.cases[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function ybe(e,t){t.body?Am(e,t.body):e.push("null")}function Am(e,t){const{helper:n}=e;switch(t.type){case 0:ybe(e,t);break;case 1:gbe(e,t);break;case 2:mbe(e,t);break;case 6:pbe(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const vbe=(e,t={})=>{const n=xt(t.mode)?t.mode:"normal",r=xt(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` 7`,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],s=hbe(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(a),o.length>0&&(s.push(`const { ${bM(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),Am(s,e),s.deindent(a),s.push("}"),delete e.helpers;const{code:l,map:u}=s.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function _be(e,t={}){const n=Kr({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,s=ube(n).parse(e);return r?(a&&fbe(s),i&&M0(s),{ast:s,code:""}):(dbe(s,n),vbe(s,n))}function Ql(e){return Rn(e)&&kM(e)===0&&(Es(e,"b")||Es(e,"body"))}const QW=["b","body"];function bbe(e){return lf(e,QW)}const eG=["c","cases"];function xbe(e){return lf(e,eG,[])}const tG=["s","static"];function wbe(e){return lf(e,tG)}const nG=["i","items"];function Sbe(e){return lf(e,nG,[])}const rG=["t","type"];function kM(e){return lf(e,rG)}const iG=["v","value"];function p3(e,t){const n=lf(e,iG);if(n!=null)return n;throw p2(t)}const aG=["m","modifier"];function Cbe(e){return lf(e,aG)}const oG=["k","key"];function Tbe(e){const t=lf(e,oG);if(t)return t;throw p2(6)}function lf(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];
7if(Es(e,i)&&e[i]!=null)return e[i]}return n}const sG=[...QW,...eG,...tG,...nG,...oG,...aG,...iG,...rG];function p2(e){return new Error(`unhandled node type: ${e}`)}function b7(e){return n=>kbe(n,e)}function kbe(e,t){const n=bbe(t);if(n==null)throw p2(0);if(kM(n)===1){const a=xbe(n);return e.plural(a.reduce((o,s)=>[...o,cO(e,s)],[]))}else return cO(e,n)}function cO(e,t){const n=wbe(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Sbe(t).reduce((i,a)=>[...i,dC(e,a)],[]);return e.normalize(r)}}function dC(e,t){const n=kM(t);switch(n){case 3:return p3(t,n);case 9:return p3(t,n);case 4:{const r=t;if(Es(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Es(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw p2(n)}case 5:{const r=t;if(Es(r,"i")&&bi(r.i))return e.interpolate(e.list(r.i));if(Es(r,"index")&&bi(r.index))return e.interpolate(e.list(r.index));throw p2(n)}case 6:{const r=t,i=Cbe(r),a=Tbe(r);return e.linked(dC(e,a),i?dC(e,i):void 0,e.type)}case 7:return p3(t,n);case 8:return p3(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ebe=e=>e;let m3=Kn();function Mbe(e,t={}){let n=!1;const r=t.onError||Y3e;return t.onError=i=>{n=!0,r(i)},{..._be(e,t),detectError:n}}function Abe(e,t){if(xt(e)){Wr(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Ebe)(e),i=m3[r];if(i)return i;const{ast:a,detectError:o}=Mbe(e,{...t,location:!1,jit:!0}),s=b7(a);return o?s:m3[r]=s}else{const n=e.cacheKey;if(n){const r=m3[n];return r||(m3[n]=b7(e))}else return b7(e)}}const tc={INVALID_ARGUMENT:K3e,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Pbe=24;function nc(e){return Yx(e,null,void 0)}function EM(e,t){return t.locale!=null?dO(t.locale):dO(e.locale)}let x7;function dO(e){if(xt(e))return e;if(mr(e)){if(e.resolvedOnce&&x7!=null)return x7;if(e.constructor.name==="Function"){const t=e();if(G_e(t))throw nc(tc.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return x7=t}else throw nc(tc.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw nc(tc.NOT_SUPPORT_LOCALE_TYPE)}function Dbe(e,t,n){return[...new Set([n,...Ir(t)?t:Rn(t)?Object.keys(t).filter(r=>r!=="default"):xt(t)?[t]:[n]])]}function fC(e,t,n){const r=xt(n)?n:O4,i=e;let a;Rn(t)?(i.__localeChainObjectCache||(i.__localeChainObjectCache=new WeakMap),a=i.__localeChainObjectCache.get(t),a||(a=new Map,i.__localeChainObjectCache.set(t,a))):(i.__localeChainCache||(i.__localeChainCache=new Map),a=i.__localeChainCache.get(t),a||(a=new Map,i.__localeChainCache.set(t,a)));const o=a.get(r);if(o)return o;const s=[];let l=[n];for(;Ir(l);)l=fO(s,l,t);const u=Ir(t)||!Cr(t)?t:t.default?t.default:null;return l=xt(u)?[u]:u,Ir(l)&&fO(s,l,!1),a.set(r,s),s}function fO(e,t,n){let r=!0;for(let i=0;i<t.length&&Wr(r);i++){const a=t[i];xt(a)&&(r=Ibe(e,t[i],n))}return r}function Ibe(e,t,n){let r;const i=t.split("-");do{const a=i.join("-");r=$be(e,a,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function $be(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Ir(n)||Cr(n))&&n[i]&&(r=n[i])}return r}const uf=[];uf[0]={w:[0],i:[3,0],"[":[4],o:[7]};uf[1]={w:[1],".":[2],"[":[4],o:[7]};uf[2]={w:[2],i:[3,0],0:[3,0]};uf[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};uf[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};uf[5]={"'":[4,0],o:8,l:[5,0]};uf[6]={'"':[4,0],o:8,l:[6,0]};const Lbe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rbe(e){return Lbe.test(e)}function Obe(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Bbe(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Fbe(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rbe(t)?Obe(t):"*"+t}function zbe(e){const t=[];let n=-1,r=0,i=0,a,o,s,l,u,c,d;const f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>
7{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Fbe(o),o===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&h())){if(l=Bbe(a),d=uf[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=a,c()===!1))))return;if(r===7)return t}}const hO=new Map;function Nbe(e,t){return Rn(e)?e[t]:null}function Vbe(e,t){if(!Rn(e))return null;let n=hO.get(t);if(n||(n=zbe(t),n&&hO.set(t,n)),!n)return null;const r=n.length;let i=e,a=0;for(;a<r;){const o=n[a];if(sG.includes(o)&&Ql(i)||!Rn(i)||!Es(i,o))return null;const s=i[o];if(s===void 0||mr(i))return null;i=s,a++}return i}const jbe="11.4.12",Xx=-1,O4="en-US",B4="",pO=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ube(){return{upper:(e,t)=>t==="text"&&xt(e)?e.toUpperCase():t==="vnode"&&Rn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&xt(e)?e.toLowerCase():t==="vnode"&&Rn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&xt(e)?pO(e):t==="vnode"&&Rn(e)&&"__v_isVNode"in e?pO(e.children):e}}let lG;function Hbe(e){lG=e}let uG;function qbe(e){uG=e}let cG;function Wbe(e){cG=e}let dG=null;const mO=e=>{dG=e},gO=()=>dG;let yO=0;function Gbe(e={}){const t=mr(e.onWarn)?e.onWarn:K_e,n=xt(e.version)?e.version:jbe,r=xt(e.locale)||mr(e.locale)?e.locale:O4,i=mr(r)?O4:r,a=Ir(e.fallbackLocale)||Cr(e.fallbackLocale)||xt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Cr(e.messages)?e.messages:w7(i),s=Cr(e.datetimeFormats)?e.datetimeFormats:w7(i),l=Cr(e.numberFormats)?e.numberFormats:w7(i),u=Kr(Kn(),e.modifiers,Ube()),c=e.pluralRules||Kn(),d=mr(e.missing)?e.missing:null,f=Wr(e.missingWarn)||I4(e.missingWarn)?e.missingWarn:!0,h=Wr(e.fallbackWarn)||I4(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,v=mr(e.postTranslation)?e.postTranslation:null,b=Cr(e.processor)?e.processor:null,x=Wr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,w=mr(e.messageCompiler)?e.messageCompiler:lG,C=mr(e.messageResolver)?e.messageResolver:uG||Nbe,T=mr(e.localeFallbacker)?e.localeFallbacker:cG||Dbe,k=Rn(e.fallbackContext)?e.fallbackContext:void 0,A=e,P=Rn(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,D=Rn(A.__numberFormatters)?A.__numberFormatters:new Map,$=Rn(A.__meta)?A.__meta:{};yO++;const O={version:n,cid:yO,locale:r,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:v,processor:b,warnHtmlMessage:x,escapeParameter:_,messageCompiler:w,messageResolver:C,localeFallbacker:T,fallbackContext:k,onWarn:t,__meta:$};return O.datetimeFormats=s,O.numberFormats=l,O.__datetimeFormatters=P,O.__numberFormatters=D,O}const w7=e=>({[e]:Kn()});function fG(e,t,n,r,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,n,t,i);return xt(s)?s:t}else return t}function vO(e,t){const n=e;Rn(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function g3(e,t,n){vO(e,n),e.fallbackContext&&vO(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function Zbe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Kbe(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Zbe(e,t[r]))return!0;return!1}function hG(e,t,n,r,i,a,o){const{fallbackLocale:s,localeFallbacker:l,onWarn:u}=e,c=l(e,s,n);for(let d=0;d<c.length;d++){const f=c[d],h=(r[f]||{})[t];if(Cr(h)&&xt(f))return f;fG(e,t,f,i,o)}return null}function pG(e,t,n){let r=`${e}__${t}`;return Cr(n)&&!_M(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function mG(e,t,n){for(const r in n){const i=`${t}__${r}`;for(const a of e.keys())(a===i||a.startsWith(`${i}__`))&&e.delete(a)}}function gG(e,t,n,r){const[,i,a,o]=e;let s=n;
7return xt(i)?t.key=i:Cr(i)&&Object.keys(i).forEach(l=>{r.includes(l)?s[l]=i[l]:t[l]=i[l]}),xt(a)?t.locale=a:Cr(a)&&(s=a),Cr(o)&&(s=o),s}function _O(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!xt(t[0])&&!HW(t[0])&&!bi(t[0]))return B4;const[o,s,l,u]=hC(...t),c=Wr(l.missingWarn)?l.missingWarn:e.missingWarn,d=Wr(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=!!l.part,h=EM(e,l);if(!xt(o)||o===""){const x=new Intl.DateTimeFormat(h.replace(/!/g,""),u);return f?x.formatToParts(s):x.format(s)}const p=hG(e,o,h,n,c,d,"datetime format");if(!xt(p))return r?Xx:o;const g=n[p][o],v=pG(p,o,u);let b=a.get(v);return b||(b=new Intl.DateTimeFormat(p,Kr({},g,u)),a.set(v,b)),f?b.formatToParts(s):b.format(s)}const yG=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function hC(...e){const[t]=e,n=Kn(),r=Kn();let i;if(xt(t)){const o=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!o)throw nc(tc.INVALID_ISO_DATE_ARGUMENT);const s=o[3]?o[3].trim().startsWith("T")?`${o[1].trim()}${o[3].trim()}`:`${o[1].trim()}T${o[3].trim()}`:o[1].trim();i=new Date(s);try{i.toISOString()}catch{throw nc(tc.INVALID_ISO_DATE_ARGUMENT)}}else if(HW(t)){if(isNaN(t.getTime()))throw nc(tc.INVALID_DATE_ARGUMENT);i=t}else if(bi(t))i=t;else throw nc(tc.INVALID_ARGUMENT);const a=gG(e,n,r,yG);return[n.key||"",i,n,a]}function bO(e,t,n){mG(e.__datetimeFormatters,t,n)}function xO(e,...t){const{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!bi(t[0]))return B4;const[o,s,l,u]=pC(...t),c=Wr(l.missingWarn)?l.missingWarn:e.missingWarn,d=Wr(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=!!l.part,h=EM(e,l);if(!xt(o)||o===""){const x=new Intl.NumberFormat(h.replace(/!/g,""),u);return f?x.formatToParts(s):x.format(s)}const p=hG(e,o,h,n,c,d,"number format");if(!xt(p))return r?Xx:o;const g=n[p][o],v=pG(p,o,u);let b=a.get(v);return b||(b=new Intl.NumberFormat(p,Kr({},g,u)),a.set(v,b)),f?b.formatToParts(s):b.format(s)}const vG=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function pC(...e){const[t]=e,n=Kn(),r=Kn();if(!bi(t))throw nc(tc.INVALID_ARGUMENT);const i=t,a=gG(e,n,r,vG);return[n.key||"",i,n,a]}function wO(e,t,n){mG(e.__numberFormatters,t,n)}const Ybe=e=>e,Xbe=e=>"",Jbe="text",Qbe=e=>e.length===0?"":bM(e),e4e=Z_e;function S7(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function t4e(e){const t=bi(e.pluralIndex)?e.pluralIndex:-1;return bi(e.named?.count)?e.named.count:bi(e.named?.n)?e.named.n:t}function n4e(e={}){const t=e.locale,n=t4e(e),r=xt(t)&&mr(e.pluralRules?.[t])?e.pluralRules[t]:S7,i=r===S7?void 0:S7,a=b=>b[r(n,b.length,i)],o=e.list||[],s=b=>o[b],l=e.named||Kn();bi(e.pluralIndex)&&(l.count||=e.pluralIndex,l.n||=e.pluralIndex);const u=b=>l[b];function c(b,x){const _=mr(e.messages)?e.messages(b,!!x):Rn(e.messages)?e.messages[b]:!1;return _||(e.parent?e.parent.message(b):Xbe)}const d=b=>e.modifiers?e.modifiers[b]:Ybe,f=mr(e.processor?.normalize)?e.processor.normalize:Qbe,h=mr(e.processor?.interpolate)?e.processor.interpolate:e4e,p=xt(e.processor?.type)?e.processor.type:Jbe,v={list:s,named:u,plural:a,linked:(b,...x)=>{const[_,w]=x;let C="text",T="";x.length===1?Rn(_)?(T=_.modifier||T,C=_.type||C):xt(_)&&(T=_||T):x.length===2&&(xt(_)&&(T=_||T),xt(w)&&(C=w||C));const k=c(b,!0)(v),A=k===""||k===void 0?b:k,P=C==="vnode"&&Ir(A)&&T?A[0]:A;return T?d(T)(P,C):P},message:c,type:p,interpolate:h,normalize:f,values:Kr(Kn(),o,l)};return v}const SO=()=>"",yc=e=>mr(e);function CO(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=mC(...t),c=Wr(u.missingWarn)?u.missingWarn:e.missingWarn,d=Wr(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,f=Wr(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,p=xt(u.default)||Wr(u.default)?Wr(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:null,g=n||p!=null&&(xt(p)||mr(p)),v=EM(e,u);f&&r4e(u);let[b,x,_]=h?[l,v,s[v]||Kn()]:_G(e,l,v,o,d,c),w=b,C=l;if(!h&&!(xt(w)||Ql(w)||yc(w))&&g&&(w=p,C=w),!h&&(!(xt(w)||Ql(w)||yc(w))||!xt(x)))return i?Xx:l;let T=!1;const k=()=>{T=!0},A=yc(w)?w:bG(e,l,x,w,C,k);if(T)return w;const P=o4e(e,x,_,u),D=n4e(P),$=i4e(e,A,D);let O=r?r($,l):$;return f&&xt(O)&&(O=l3e(O)),O}function r4e(e){Ir(e.list)?e.list=e.list.map(t=>
7xt(t)?nO(t):t):Rn(e.named)&&Object.keys(e.named).forEach(t=>{xt(e.named[t])&&(e.named[t]=nO(e.named[t]))})}function _G(e,t,n,r,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let d=Kn(),f,h=null;const p="translate";for(let g=0;g<c.length&&(f=c[g],d=o[f]||Kn(),(h=l(d,t))===null&&(h=d[t]),!(xt(h)||Ql(h)||yc(h)));g++)if(!Kbe(f,c)){const v=fG(e,t,f,a,p);v!==t&&(h=v)}return[h,f,d]}function bG(e,t,n,r,i,a){const{messageCompiler:o,warnHtmlMessage:s}=e;if(yc(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=(()=>r);return u.locale=n,u.key=t,u}const l=o(r,a4e(e,n,i,r,s,a));return l.locale=n,l.key=t,l.source=r,l}function i4e(e,t,n){return t(n)}function mC(...e){const[t,n,r]=e,i=Kn();if(!xt(t)&&!bi(t)&&!yc(t)&&!Ql(t))throw nc(tc.INVALID_ARGUMENT);const a=bi(t)?String(t):(yc(t),t);return bi(n)?i.plural=n:xt(n)?i.default=n:Cr(n)&&!_M(n)?i.named=n:Ir(n)&&(i.list=n),bi(r)?i.plural=r:xt(r)?i.default=r:Cr(r)&&Kr(i,r),[a,i]}function a4e(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>j_e(t,n,o)}}function o4e(e,t,n,r){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,f={locale:t,modifiers:i,pluralRules:a,messages:(h,p)=>{let g=o(n,h);if(g==null&&(c||p)){const[v,,b]=_G(c||e,h,t,s,l,u);g=v??o(b,h)}if(xt(g)||Ql(g)){let v=!1;const x=bG(e,h,t,g,h,()=>{v=!0});return v?SO:x}else return yc(g)?g:SO}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),bi(r.plural)&&(f.pluralIndex=r.plural),f}const s4e="11.4.12",Go={UNEXPECTED_RETURN_TYPE:Pbe,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Ds(e,...t){return Yx(e,null,void 0)}const gC=sf("__translateVNode"),yC=sf("__datetimeParts"),vC=sf("__numberParts"),l4e=sf("__setPluralRules"),u4e=sf("__injectWithOption"),H0=sf("__dispose");let xG=null;{const e=q_e().__VUE_INSTANCE_SETTERS__;Ir(e)&&e.push(t=>{xG=t})}function m2(e){if(!Rn(e)||Ql(e))return e;for(const t in e)if(Es(e,t))if(!t.includes("."))Rn(e[t])&&m2(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,a=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in i||(i[n[o]]=Kn()),!Rn(i[n[o]])){a=!0;break}i=i[n[o]]}if(a||(Ql(i)?sG.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!Ql(i)){const o=i[n[r]];Rn(o)&&m2(o)}}return e}function wG(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=Cr(n)?n:Ir(r)?Kn():{[e]:Kn()};if(Ir(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||Kn(),nm(u,o[l])):nm(u,o)}else xt(s)&&nm(JSON.parse(s),o)}),i==null&&a)for(const s in o)Es(o,s)&&m2(o[s]);return o}function c4e(e){return e.type}function d4e(e,t,n){let r=Rn(t.messages)?t.messages:Kn();"__i18nGlobal"in n&&(r=wG(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(Rn(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Rn(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function TO(e){return H(Od,null,e,0)}function SG(){return xG??$n()}const kO=()=>[],f4e=()=>!1;let EO=0;function MO(e){return((t,n,r,i)=>e(n,r,SG()||void 0,i))}function _C(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=D4?G:Bt;let o=Wr(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:xt(e.locale)?e.locale:O4),l=a(t&&o?t.fallbackLocale.value:xt(e.fallbackLocale)||Ir(e.fallbackLocale)||Cr(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(wG(s.value,e)),c=a(Cr(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(Cr(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:Wr(e.missingWarn)||I4(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:Wr(e.fallbackWarn)||I4(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:Wr(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,v=mr(e.missing)?e.missing:null,b=mr(e.missing)?MO(e.missing):null,x=mr(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:Wr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const C=t?t.modifiers:Cr(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,k;k=(()=>{r&&mO(null);const he={version:s4e,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:T,missing:b===null?void 0:b,missingWarn:f,fallbackWarn:h,fallbackFormat:g,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:_,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};he.datetimeFormats=c.value,he.numberFormats=d.value,he.__datetimeFormatters=Cr(k)?k.__datetimeFormatters:void 0,he.__numberFormatters=Cr(k)?k.__numberFormatters:void 0;const Te=Gbe(he);return r&&mO(Te),Te})(),g3(k,s.value,l.value);function P(){return[s.value,l.value,u.value,c.value,d.value]}const D=W({get:()=>s.value,set:he=>{k.locale=he,s.value=he}});function $(he){r||(k.fallbackContext=t?gO():void 0);try{g3(k,s.value,he)}finally{r||(k.fallbackContext=void 0)}}const O=W({get:()=>l.value,set:he=>{l.value=he,k.fallbackLocale=l.value,$(l.value)}}),z=W(()=>u.value),j=W(()=>c.value),B=W(()=>d.value);function R(){return mr(x)?x:null}function J(he){x=he,k.postTranslation=he}function K(){return v}function Z(he){he!==null&&(b=MO(he)),v=he,k.missing=b}const ne=(he,Te,ze,qe,lt,bt)=>{P();let fe;try{r||(k.fallbackContext=t?gO():void 0),fe=he(k)}finally{r||(k.fallbackContext=void 0)}if(ze!=="translate exists"&&bi(fe)&&fe===Xx||ze==="translate exists"&&!fe){const[pe,De]=Te();return t&&p?qe(t):lt(pe)}else{if(bt(fe))return fe;throw Ds(Go.UNEXPECTED_RETURN_TYPE)}};function se(...he){return ne(Te=>Reflect.apply(CO,null,[Te,...he]),()=>mC(...he),"translate",Te=>Reflect.apply(Te.t,Te,[...he]),Te=>Te,Te=>xt(Te))}function ce(...he){const[Te,ze,qe]=he;if(qe&&!Rn(qe))throw Ds(Go.INVALID_ARGUMENT);return se(Te,ze,Kr({resolvedMessage:!0},qe||{}))}function Re(...he){return ne(Te=>Reflect.apply(_O,null,[Te,...he]),()=>hC(...he),"datetime format",Te=>Reflect.apply(Te.d,Te,[...he]),()=>B4,Te=>xt(Te)||Ir(Te))}function Ue(...he){return ne(Te=>Reflect.apply(xO,null,[Te,...he]),()=>pC(...he),"number format",Te=>Reflect.apply(Te.n,Te,[...he]),()=>B4,Te=>xt(Te)||Ir(Te))}function $e(he){return he.map(Te=>xt(Te)||bi(Te)||Wr(Te)?TO(String(Te)):Te)}const Ve={normalize:$e,interpolate:he=>he,type:"vnode"};function nt(...he){return ne(Te=>{let ze;const qe=Te;try{qe.processor=Ve,ze=Reflect.apply(CO,null,[qe,...he])}finally{qe.processor=null}return ze},()=>mC(...he),"translate",Te=>Te[gC](...he),Te=>[TO(Te)],Te=>Ir(Te))}function xe(...he){return ne(Te=>Reflect.apply(xO,null,[Te,...he]),()=>pC(...he),"number format",Te=>Te[vC](...he),kO,Te=>xt(Te)||Ir(Te))}function Pe(...he){return ne(Te=>Reflect.apply(_O,null,[Te,...he]),()=>hC(...he),"datetime format",Te=>Te[yC](...he),kO,Te=>xt(Te)||Ir(Te))}function je(he){T=he,k.pluralRules=T}function Fe(he,Te){return ne(()=>{if(!he)return!1;const ze=xt(Te)?Te:s.value,qe=xt(Te)?[ze]:fC(k,l.value,ze);for(let lt=0;lt<qe.length;lt++){const bt=ye(qe[lt]);let fe=k.messageResolver(bt,he);if(fe===null&&(fe=bt[he]),Ql(fe)||yc(fe)||xt(fe))return!0}return!1},()=>[he],"translate exists",ze=>Reflect.apply(ze.te,ze,[he,Te]),f4e,ze=>Wr(ze))}function re(he){let Te=null;const ze=fC(k,l.value,s.value);for(let qe=0;qe<ze.length;qe++){const lt=u.value[ze[qe]]||{},bt=k.messageResolver(lt,he);if(bt!=null){Te=bt;break}}return Te}function le(he){const Te=re(he);return Te??(t?t.tm(he)||{}:{})}function ye(he){return u.value[he]||{}}function Me(he,Te){if(i){const ze={[he]:Te};for(const qe in ze)Es(ze,qe)&&m2(ze[qe]);Te=ze[he]}u.value[he]=Te,k.messages=u.value}function ve(he,Te){u.value[he]=u.value[he]||{};const ze={[he]:Te};if(i)for(const qe in ze)Es(ze,qe)&&m2(ze[qe]);Te=ze[he],nm(Te,u.value[he]),k.messages=u.value}function X(he){return c.value[he]||{}}function ee(he,Te){c.value[he]=Te,k.datetimeFormats=c.value,bO(k,he,Te)}function oe(he,Te){c.value[he]=Kr(c.value[he]||{},Te),k.datetimeFormats=c.value,bO(k,he,Te)}function _e(he){return d.value[he]||{}}function ge(he,Te){d.value[he]=Te,k.numberFormats=d.value,wO(k,he,Te)}function Oe(he,Te){d.value[he]=Kr(d.value[he]||{},Te),k.numberFormats=d.value,wO(k,he,Te)}EO++,Je(l,()=>$(l.value),{deep:!0,flush:"sync"}),t&&D4&&(Je(t.locale,he=>{o&&(s.value=he,k.locale=he,g3(k,s.value,l.value))}),Je(t.fallbackLocale,he=>{o&&(l.value=he,k.fallbackLocale=l.value,g3(k,s.value,l.value))}));const Se={id:EO,locale:D,fallbackLocale:O,get inheritLocale(){return o},set inheritLocale(he){o=he,he&&t&&(D.value=t.locale.value,O.value=t.fallbackLocale.value)},get availableLocales(){return Object.keys(u.value).sort()},messages:z,get modifiers(){return C},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(he){f=he,k.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(he){h=he,k.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(he){p=he},get fallbackFormat(){return g},set fallbackFormat(he){g=he,k.fallbackFormat=g},get warnHtmlMessage(){return _},set warnHtmlMessage(he){_=he,k.warnHtmlMessage=he},get escapeParameter(){return w},set escapeParameter(he){w=he,k.escapeParameter=he},t:se,getLocaleMessage:ye,setLocaleMessage:Me,mergeLocaleMessage:ve,getPostTranslationHandler:R,setPostTranslationHandler:J,getMissingHandler:K,setMissingHandler:Z,[l4e]:je};return Se.datetimeFormats=j,Se.numberFormats=B,Se.rt=ce,Se.te=Fe,Se.tm=le,Se.d=Re,Se.n=Ue,Se.getDateTimeFormat=X,Se.setDateTimeFormat=ee,Se.mergeDateTimeFormat=oe,Se.getNumberFormat=_e,Se.setNumberFormat=ge,Se.mergeNumberFormat=Oe,Se[u4e]=n,Se[gC]=nt,Se[yC]=Pe,Se[vC]=xe,Se}const MM={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function h4e({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ae?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Kn())}function CG(){return Ae}const p4e=Q({name:"i18n-t",props:Kr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>bi(e)||!isNaN(e)}},MM),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||dr({useScope:e.scope,__useComponent:!0});return()=>{const a=()=>{const l=Object.keys(n).filter(d=>d[0]!=="_"),u=Kn();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=xt(e.plural)?+e.plural:e.plural);const c=h4e(t,l);return i[gC](e.keypath,c,u)}
7,o=Kr(Kn(),r),s=xt(e.tag)||Rn(e.tag)?e.tag:CG();return Rn(s)?Nt(s,o,{default:a}):Nt(s,o,a())}}}),AO=p4e;function m4e(e){return Ir(e)&&!xt(e[0])}function TG(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const o=()=>{const u={part:!0};let c=Kn();e.locale&&(u.locale=e.locale),xt(e.format)?u.key=e.format:Rn(e.format)&&(xt(e.format.key)&&(u.key=e.format.key),c=Object.keys(e.format).reduce((h,p)=>n.includes(p)?Kr(Kn(),h,{[p]:e.format[p]}):h,Kn()));const d=r(e.value,u,c);let f=[u.key];return Ir(d)?f=d.map((h,p)=>{const g=i[h.type],v=g?g({[h.type]:h.value,index:p,parts:d}):[h.value];return m4e(v)&&(v[0].key=`${h.type}-${p}`),v}):xt(d)&&(f=[d]),f},s=Kr(Kn(),a),l=xt(e.tag)||Rn(e.tag)?e.tag:CG();return Rn(l)?Nt(l,s,{default:o}):Nt(l,s,o())}}const g4e=Q({name:"i18n-n",props:Kr({value:{type:Number,required:!0},format:{type:[String,Object]}},MM),setup(e,t){const n=e.i18n||dr({useScope:e.scope,__useComponent:!0});return TG(e,t,vG,(...r)=>n[vC](...r))}}),PO=g4e;function y4e(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function v4e(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw Ds(Go.UNEXPECTED_ERROR);const u=y4e(e,s.$),c=DO(l);return[Reflect.apply(u.t,u,[...IO(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);D4&&(o.__i18nWatcher=Je(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{D4&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=DO(s);o.textContent=Reflect.apply(l.t,l,[...IO(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function DO(e){if(xt(e))return{path:e};if(Cr(e)){if(!("path"in e))throw Ds(Go.REQUIRED_VALUE,"path");return e}else throw Ds(Go.INVALID_VALUE)}function IO(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return xt(n)&&(o.locale=n),bi(i)&&(o.plural=i),bi(a)&&(o.plural=a),[t,s,o]}function _4e(e,t,...n){const r=Cr(n[0])?n[0]:{};(!Wr(r.globalInstall)||r.globalInstall)&&([AO.name,"I18nT"].forEach(a=>e.component(a,AO)),[PO.name,"I18nN"].forEach(a=>e.component(a,PO)),[RO.name,"I18nD"].forEach(a=>e.component(a,RO))),e.directive("t",v4e(t))}const b4e=sf("global-vue-i18n");function x4e(e={}){const t=Wr(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=w4e(e),a=sf("");function o(c){return n.get(c)||null}function s(c,d){n.set(c,d)}function l(c){n.delete(c)}const u={get mode(){return"composition"},async install(c,...d){if(c.__VUE_I18N_SYMBOL__=a,c.provide(c.__VUE_I18N_SYMBOL__,u),Cr(d[0])){const p=d[0];u.__composerExtend=p.__composerExtend,u.__vueI18nExtend=p.__vueI18nExtend}let f=null;t&&(f=A4e(c,u.global)),_4e(c,u,...d);const h=c.unmount;c.unmount=()=>{f&&f(),u.dispose(),h()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:l};return u}function dr(e={}){const t=SG();if(t==null)throw Ds(Go.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ds(Go.NOT_INSTALLED);const n=S4e(t),r=T4e(n),i=c4e(t),a=C4e(e,i);if(a==="global")return d4e(r,e,i),r;if(a==="parent"){let l=$O(n,t,e.__useComponent);return l==null&&(l=r),l}if(a==="isolated"){if(n.mode!=="composition")throw Ds(Go.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const l=n,u=Kr({},e),c=$O(n,t);u.__root=c||r;const d=_C(u);return l.__composerExtend&&(d[H0]=l.__composerExtend(d)),qa()&&vo(()=>{const h=d[H0];h&&(h(),delete d[H0])}),d}const o=n;let s=o.__getInstance(t);if(s==null){const l=Kr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=_C(l),o.__composerExtend&&(s[H0]=o.__composerExtend(s)),E4e(o,t,s),o.__setInstance(t,s)}return s}function w4e(e,t){const n=lp(),r=n.run(()=>_C(e));if(r==null)throw Ds(Go.UNEXPECTED_ERROR);return[n,r]}function S4e(e){const t=cr(e.isCE?b4e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ds(e.isCE?Go.NOT_INSTALLED_WITH_PROVIDE:Go.UNEXPECTED_ERROR);return t}function C4e(e,t){return _M(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function T4e(e){return e.mode==="composition"?e.global:e.global.__composer}function $O(e,t,n=!1){let r=null;const i=t.root;let a=k4e(t,n);for(;a!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function k4e(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function E4e(e,t,n){Ot(()=>{},t),br(()=>{const r=n;e.__deleteInstance(t);const i=r[H0];i&&(i(),delete r[H0])},t)}const M4e=["locale","fallbackLocale","availableLocales"],LO=["t","rt","d","n","tm","te"];function A4e(e,t){const n=Object.create(null);return M4e.forEach(i=>
7{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw Ds(Go.UNEXPECTED_ERROR);const o=$t(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,LO.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw Ds(Go.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,LO.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const P4e=Q({name:"i18n-d",props:Kr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},MM),setup(e,t){const n=e.i18n||dr({useScope:e.scope,__useComponent:!0});return TG(e,t,yG,(...r)=>n[yC](...r))}}),RO=P4e;Hbe(Abe);qbe(Vbe);Wbe(fC);function OO(e=vt()){const t=lv(e);return n=>{if(n!=null)return t.getRouteBaseName(n)||void 0}}function kG(e=vt()){const t=lv(e);return(n,r)=>SM(t,n,r)}function D4e(e=vt()){const t=lv(e);return(n,r)=>GW(t,n,r)}function EG(e=vt()){const t=lv(e);return n=>CM(t,n)}function Jx(e,t){return e?e.$config.public.i18n:Ga().public.i18n}function Qx(e){const t=Jx(e).detectBrowserLanguage,n=t||{};return{...n,enabled:!!t,cookieKey:n.cookieKey||"i18n_redirected"}}function I4e(e){if(e)return{path:"/"+(xt(e)?e:e.path).replace(/^\//,""),code:!xt(e)&&e.statusCode||302}}const $4e={"&":"&",'"':""","'":"'","<":"<",">":">"};function L4e(e){return e.replace(/["'&<>]/g,t=>$4e[t])}const BO="nuxt-i18n-slp",R4e=new RegExp([`<!--${BO}-\\[(\\w+)\\]-->`,".+?",`<!--/${BO}-->`].join(""),"g"),O4e=hr({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=vt(e._id),n=EG(t);t.hook("app:rendered",r=>{r.renderResult?.html!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(R4e,(i,a)=>{const o=L4e(n(a??""));return i.replace(/href="([^"]+)"/,()=>`href="${o||"#"}" `)}))})}}),B4e=new Map;function bC(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(bC);const t=Kn(null);for(const n of Object.keys(e))t[n]=bC(e[n]);return t}const F4e=nM((e,t,n)=>{if(t==="messages"||t==="datetimeFormats"||t==="numberFormats")return e[t]??=Kn(null),nm(n,e[t]),!0});async function z4e(e){const t=vt();let n={messages:Kn(null)};for(const r of e){const i=await r().then(o=>MG(o)?o.default:o),a=mr(i)?await t.runWithContext(()=>i()):i;n=F4e(Kn(null),a,n)}return n.fallbackLocale??=!1,n}const MG=e=>Kx(e)==="[object Module]";async function N4e(e,t){const n=vt();try{const r=await n.runWithContext(t.load).then(i=>MG(i)?i.default:i);return mr(r)?await n.runWithContext(()=>r(e)):r}catch(r){throw new Error(`Failed loading locale (${e}): `+r.message,{cause:r})}}async function V4e(e,t=[]){const n=vt(),r=await Promise.all(t.map(async a=>{const o=void 0,s=o||await n.runWithContext(()=>N4e(e,a));return!o&&a.cache!==!1&&B4e.set(a.key,{ttl:Date.now()+-1*1e3,value:s}),s})),i={};for(const a of r)nm(a,i);return i}function j4e(e){return t=>!e.dynamic.includes(t)&&!e.undeliverable.includes(t)}function U4e(e){return t=>!0}function AM(e){return e!=null&&"global"in e&&"mode"in e?e.global:e}function y3(e){const t=AM(e);return"__composer"in t?t.__composer:t}var H4e=[],q4e={fr:"852996d0",en:"852996d0"},W4e=[];const AG=()=>of("i18n:cached-locale-configs",()=>{}),PG=()=>of("i18n:resolved-locale",()=>"");function G4e(e,t){const n=!mr(t)&&kc(t).protocol;return n?{host:e.host,protocol:n}:e}function Z4e(e){const{baseUrl:t,appBase:n,domains:r,getDomainForHost:i,getDomainFromLocale:a}=e,o=mr(t)?t:()=>r&&i()||t||"";return s=>o1(s&&a(s)||o(),n)}function K4e({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){const i=new Date;return sl(r||"i18n_redirected",{path:"/",readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?"none":"lax",domain:t||void 0,secure:e||n})}const Y4e=j4e({dynamic:H4e,undeliverable:W4e});function X4e(e,t,n,r=!1){const i=AM(t),a=Jx(e),o=Qx(e),s=AG(),l=K4e(o),u=new Set,c=k=>s.value[k];let d;const f=()=>d??=G4e(l1(),a.baseUrl),h=k=>F3e(a.domainLocales,f(),k),p={baseUrl:mr(a.baseUrl)?()=>a.baseUrl(e):a.baseUrl,appBase:e.$config.app.baseURL,domains:!1,getDomainForHost:()=>z3e(a.domainLocales,f())},g=Z4e({...p,getDomainFromLocale:h}),v=g,b=PG(),x=U4e(),_=k=>"",w=async k=>
7{if(!(k in Ty))return;const A=await e.runWithContext(()=>V4e(k,Ty[k])),P=r?bC(A):A;i.mergeLocaleMessage(k,P)},C=async k=>{if(!(k in Ty))return;const A=O=>Object.keys(O).filter(z=>!T.usesRuntimeLoaders(z)),P=c(k)?.cacheable?{}:{"Cache-Control":"no-cache"},D=o1(_(),"/_i18n",q4e[k],k,"messages.json"),$=await $fetch(D,{headers:P});for(const O of A($))i.mergeLocaleMessage(O,$[O])},T={vueI18n:t,initial:!0,preloaded:!1,config:a,rootRedirect:I4e(a.rootRedirect),redirectStatusCode:a.redirectStatusCode??302,usesRuntimeLoaders:k=>x(k),getDefaultLocale:()=>n,getLocale:()=>m(i.locale),setLocale:async k=>{const A=T.getLocale();k===A||!Mh(k)||($t(i.locale)?i.locale.value=k:i.locale=k,await e.callHook("i18n:localeSwitched",{newLocale:k,oldLocale:A}),b.value=k)},setLocaleSuspend:async k=>{Mh(k)&&(T.vueI18n.__pendingLocale=k,T.vueI18n.__pendingLocalePromise=new Promise(A=>{T.vueI18n.__resolvePendingLocalePromise=async()=>{T.setCookieLocale(k),await T.setLocale(k),T.vueI18n.__pendingLocale=void 0,A()}}),(e.isHydrating||!T.config.skipSettingLocaleOnNavigate)&&await T.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>m(i.locales).map(k=>xt(k)?{code:k,domains:[],defaultForDomains:[]}:k),setCookieLocale:k=>{o.useCookie&&Mh(k)&&(l.value=k)},getBaseUrl:g,getCanonicalBaseUrl:v,loadMessages:async k=>{if(!(e.isHydrating&&u.has(k)))try{const A=c(k)?.fallbacks??[],P=A.includes(k)?A:[...A,k];if(!P.some(D=>T.usesRuntimeLoaders(D)))return await C(k);for(const D of P)try{await(T.usesRuntimeLoaders(D)?w(D):C(D))}catch($){console.warn(`Failed to load messages for locale "${D}"`,$)}}catch(A){console.warn(`Failed to load messages for locale "${k}"`,A)}finally{u.add(k)}},composableCtx:void 0};return T.composableCtx=W3e(T,e),T}function e6(e){if(e._nuxtI18n==null)throw new Error("Nuxt I18n context has not been set up yet.");return e._nuxtI18n}function J4e(e){const{strategy:t,compactRoutes:n}=e;function r(i){if(t==="no_prefix"||i.name==null)return!1;const a=String(i.name);return Lb(a)!==a||n&&i.matched.some(o=>o.meta.__i18nCompact)?!1:!e.getLocaleCodes().some(o=>e.hasRoute(uC(a,o,!1)))}return function(a,o,s=!1){const l=e.localeReach?.(o);if(l==="off-host")return;if(l==="other-domain"){if(r(a)||s)return;const c=e.switchLocalePath(o,a);return!c||!Na(c,{strict:!0})?void 0:{path:c,code:e.redirectStatusCode,external:!0}}if(a.path==="/"&&e.rootRedirect)return{path:e.localePath(e.rootRedirect.path,o),code:e.rootRedirect.code};if(r(a)||s||e.routeLocale(a)===o)return;const u=e.switchLocalePath(o,a)||e.localePath(a.fullPath,o);if(!Ame(u,a.fullPath))return{path:u,code:e.redirectStatusCode}}}function Q4e(e,t){const n=[];for(const[r,i]of t.entries()){const a=e.find(o=>o.language?.toLowerCase()===i.toLowerCase());if(a){n.push({code:a.code,score:1-r/t.length});break}}for(const[r,i]of t.entries()){const a=i.split("-")[0].toLowerCase(),o=e.find(s=>s.language?.split("-")[0].toLowerCase()===a);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function e5e(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function t5e(e,t){return Q4e(e.map(r=>({code:r.code,language:r.language||r.code})),t).sort(e5e).at(0)?.code??""}const n5e=(e,t)=>sl(t).value||void 0,r5e=(e,t)=>P3e(t),i5e=e=>t5e(fp,navigator.languages),a5e=e=>new URL(window.location.href).host,o5e=e=>{const t=document.referrer;try{return t&&new URL(t).host||void 0}catch{return}},s5e=e=>fp.map(t=>R4(t,e)),PM=(e,t,n)=>{const r=Jx(n);let i,a;const o=()=>i??=a5e(),s=()=>a??=s5e(r.domainLocales);return{cookie:()=>n5e(e,t.cookieKey),header:()=>{},navigator:()=>i5e(),host:l=>O3e(s(),o(),L4(l)),route:l=>r5e(e,l),onHost:l=>!l||KW(s(),o(),l)?l:void 0,fromOwnDomain:()=>{const l=o5e();return!!l&&s().some(u=>h2(u,l))},cookieSpans:()=>!!t.cookieDomain&&B3e(s(),t.cookieDomain)}};function l5e(e){const{detection:t}=e,n=e.isSupportedLocale??Mh;function r(i,a){return!!(t.redirectOn==="root"&&i!=="/"||t.redirectOn==="no prefix"&&!t.alwaysRedirect&&n(a))}return function(a,o,s){const l=xt(o)?S4(o).pathname:o.path,c=f=>f;function*d(){const f=s&&t.enabled&&!r(l,a.route(l));if(f){const h=c,p=c;yield h(a.cookie()),yield p(a.header()),yield p(a.navigator())}yield a.route(o),f&&(yield c(t.fallbackLocale))}for(const f of d())if(f&&n(f))return f;return""}}
7async function xC(e,t){const n=e6(e),r=n.getLocale();if(t===r&&!n.initial&&(!n.vueI18n.__pendingLocale||n.vueI18n.__pendingLocale===t))return t;const i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e};let a=await e.callHook("i18n:beforeLocaleSwitch",i);return a!=null,a??=i.newLocale,Mh(a)&&(t=a),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function FO(e,t){const n=Qx(e),r=PM(void 0,n,e),i=e6(e);return l5e({detection:n})(r,t,i.initial)||i.getLocale()||i.getDefaultLocale()||""}function DG(e,t,n){const r=e6(e),i=lv(e),a=PM(void 0,Qx(e),e),s=J4e({localeReach:void 0,rootRedirect:r.rootRedirect,redirectStatusCode:r.redirectStatusCode,localePath:(l,u)=>SM(i,l,u),switchLocalePath:(l,u)=>CM(i,l,u),routeLocale:l=>a.route(l),hasRoute:l=>i.router.hasRoute(l),getLocaleCodes:()=>i.getLocales().map(l=>l.code),strategy:"prefix_except_default",compactRoutes:!1})(t,n,!!r.vueI18n.__pendingLocale&&!!vt()._processingMiddleware);if(s)return wl(s.path,{redirectCode:s.code,external:s.external})}const u5e=hr({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=vt(e._id),i=e6(r),a=PG();[t,n]=tm(()=>r.runWithContext(()=>xC(r,i.initial&&a.value||FO(r,r.$router.currentRoute.value)))),await t,n(),k4("locale-changing",async o=>{let s,l;const u=([s,l]=tm(()=>r.runWithContext(()=>xC(r,FO(r,o)))),s=await s,l(),s);return i.initial=!1,r.runWithContext(()=>DG(r,o,u))},{global:!0})}}),c5e=hr({name:"i18n:plugin:preload",dependsOn:["i18n:plugin"],async setup(e){}});function d5e(e,{extendComposer:t,extendComposerInstance:n}){const r=lp(),i=e.install.bind(e);e.install=(a,...o)=>{const s=Kr({},o[0]);s.__composerExtend=u=>(n(u,y3(e)),()=>{}),e.mode==="legacy"&&(s.__vueI18nExtend=u=>(n(u,y3(u)),()=>{})),Reflect.apply(i,e,[a,s]);const l=y3(e);if(r.run(()=>{t(l),e.mode==="legacy"&&"__composer"in e.global&&n(e.global,y3(e.global))}),e.mode==="composition"&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,l),a.unmount){const u=a.unmount.bind(a);a.unmount=()=>{r.stop(),u()}}}}const f5e=async e=>{const t=await z4e($3e);t.locale=e||t.locale||"en-US",t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(const n of f2)t.messages[n]??={};return t};var h5e={fr:"852996d0",en:"852996d0"};const p5e=hr({name:"i18n:plugin",parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"10.6.0"});const r=vt(e._id),i=Jx(r),a=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,o=JW(l1().host,i.defaultLocale),s=a||([t,n]=tm(()=>f5e(o)),t=await t,n(),t),l=AG();l.value??=N3e(s.fallbackLocale),f2.filter(Y4e).map(f=>`/_i18n/${h5e[f]}/${f}/messages.json`);const u=x4e(s),c=PM(void 0,Qx(r),r),d=X4e(r,u,s.defaultLocale,!!s.flatJson);r._nuxtI18n=d,d5e(u,{extendComposer(f){f.locales=W(()=>i.locales.map(p=>R4(p,i.domainLocales))),f.localeCodes=W(()=>f2);const h=G(d.getBaseUrl());f.baseUrl=W(()=>h.value),Je(f.locale,()=>h.value=d.getBaseUrl()),f.strategy="prefix_except_default",f.localeProperties=W(()=>R4(fp.find(p=>p.code===f.locale.value)||{code:f.locale.value,domains:[],defaultForDomains:[]},i.domainLocales)),f.setLocale=async p=>{await xC(r,p),await r.runWithContext(()=>DG(r,r.$router.currentRoute.value,p))},f.loadLocaleMessages=d.loadMessages,f.differentDomains=!1,f.defaultLocale=s.defaultLocale,f.getBrowserLocale=()=>oO(c.navigator()),f.getLocaleCookie=()=>oO(c.cookie()),f.setLocaleCookie=d.setCookieLocale,f.finalizePendingLocaleChange=async()=>{u.__pendingLocale&&await u.__resolvePendingLocalePromise?.()},f.waitForPendingLocaleChange=async()=>{await u?.__pendingLocalePromise}},extendComposerInstance(f,h){const p=[["locales",()=>h.locales],["localeCodes",()=>h.localeCodes],["baseUrl",()=>h.baseUrl],["strategy",()=>"prefix_except_default"],["localeProperties",()=>h.localeProperties],["setLocale",()=>g=>Reflect.apply(h.setLocale,h,[g])],["loadLocaleMessages",()=>g=>Reflect.apply(h.loadLocaleMessages,h,[g])],["differentDomains",()=>!1],["defaultLocale",()=>h.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(h.getBrowserLocale,h,[])],["getLocaleCookie",()=>()=>Reflect.apply(h.getLocaleCookie,h,[])],["setLocaleCookie",()=>g=>Reflect.apply(h.setLocaleCookie,h,[g])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(h.finalizePendingLocaleChange,h,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(h.waitForPendingLocaleChange,h,[])]];for(const[g,v]of p)Object.defineProperty(f,g,{get:v})}}),r.vueApp.use(u),Object.defineProperty(r,"$i18n",{get:()=>AM(u)}),r.provide("localeHead",f=>x3e(r._nuxtI18n.composableCtx,f)),r.provide("localePath",kG(r)),r.provide("localeRoute",D4e(r)),r.provide("routeBaseName",OO(r)),r.provide("getRouteBaseName",OO(r)),r.provide("switchLocalePath",EG(r))}}),m5e=e=>{const t=e.match(/^(http:\/\/|https:\/\/)?([^/:]*).*$/);return t!=null&&t.length>
72&&typeof t[2]=="string"&&t[2].length>0?t[2]:null},g5e=()=>of("T3:Options"),uv=()=>{const e=Ga().public.typo3,t=g5e(),n=r=>{const{sites:i}=e;if(!i||!i.length)return e;const a=r||gM()?.host||window?.location.origin,o=m5e(a),s=i.find(({hostname:l})=>o&&Array.isArray(l)?l.includes(o):l===o);if(!s)throw new Error(`Hostname: ${a} not found in sites configuration`);return s};return t.value||(t.value=n()),{options:e,getSiteOptions:n,currentSiteOptions:t}},y5e=/#/g,v5e=/&/g,_5e=/\//g,b5e=/=/g,DM=/\+/g,x5e=/%5e/gi,w5e=/%60/gi,S5e=/%7c/gi,C5e=/%20/gi;function T5e(e){return encodeURI(""+e).replace(S5e,"|")}function wC(e){return T5e(typeof e=="string"?e:JSON.stringify(e)).replace(DM,"%2B").replace(C5e,"+").replace(y5e,"%23").replace(v5e,"%26").replace(w5e,"`").replace(x5e,"^").replace(_5e,"%2F")}function C7(e){return wC(e).replace(b5e,"%3D")}function F4(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function k5e(e){return F4(e.replace(DM," "))}function E5e(e){return F4(e.replace(DM," "))}function ky(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=k5e(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=E5e(r[2]||"");t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}return t}function M5e(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${C7(e)}=${wC(n)}`).join("&"):`${C7(e)}=${wC(t)}`:C7(e)}function A5e(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>M5e(t,e[t])).filter(Boolean).join("&")}const P5e=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,D5e=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,I5e=/^([/\\]\s*){2,}[^/\\]/,$5e=/^\.?\//;function IM(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?P5e.test(e):D5e.test(e)||(t.acceptRelative?I5e.test(e):!1)}function L5e(e="",t){return e.endsWith("/")}function $M(e="",t){return(L5e(e)?e.slice(0,-1):e)||"/"}function SC(e="",t){return e.endsWith("/")?e:e+"/"}function R5e(e=""){return e.startsWith("/")}function zO(e=""){return R5e(e)?e:"/"+e}function IG(e=""){return e.split("://").map(t=>t.replace(/\/{2,}/g,"/")).join("://")}function O5e(e,t){if(B5e(t)||IM(e))return e;const n=$M(t);return e.startsWith(n)?e:z5e(n,e)}function ey(e,t){const n=rm(e),r={...ky(n.search),...t};return n.search=A5e(r),V5e(n)}function B5e(e){return!e||e==="/"}function F5e(e){return e&&e!=="/"}function z5e(e,...t){let n=e||"";for(const r of t.filter(i=>F5e(i)))if(n){const i=r.replace($5e,"");n=SC(n)+i}else n=r;return n}function N5e(e,t,n={}){return n.trailingSlash||(e=SC(e),t=SC(t)),n.leadingSlash||(e=zO(e),t=zO(t)),n.encoding||(e=F4(e),t=F4(t)),e===t}const $G=Symbol.for("ufo:protocolRelative");function rm(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!IM(e,{acceptRelative:!0}))return NO(e);const[,r="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=NO(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:u,hash:c,[$G]:!r}}function NO(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function V5e(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[$G]?(e.protocol||"")+"//":"")+i+a+t+n+r}const LG=()=>of("T3:i18n"),t6=e=>{const{callHook:t}=vt(),n=e,{currentSiteOptions:r}=uv(),{i18n:i}=r.value,a=LG(),o=d=>{const f=d??(n||nu().fullPath),{pathname:h}=rm(f),p=h?.split("/")[1];return i.locales&&i.locales?.find(g=>g===p)?p:i.default},s=async d=>{const f=n||nu().fullPath,{getInitialData:h,initialData:p}=Wo(f),g=a.value;a.value=d,await t("t3:i18n",d,g),p.value=await h(u())},l=async()=>{a.value=o(),await t("t3:i18n",a.value,i.default)},u=(d="")=>$M(a.value===i.default?d:`/${a.value}${d}`);return{currentLocale:a,getLocale:o,setLocale:s,initLocale:l,getPathWithLocale:u,getCurrentLocaleData:()=>{const d=jW();return d.value&&W(()=>d.value.i18n).value?.find(h=>{const p=a.value.split("-")[0];return h.twoLetterIsoCode===p})||null}}},j5e=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,U5e=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,H5e=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function q5e(e,t){if(e!=="__proto__"&&!(e==="constructor"&&t&&typeof t=="object"&&"prototype"in t))return t}function W5e(e,t={}){if(typeof e!="string")return e;const n=e.toLowerCase().trim();if(n==="true")return!0;
7if(n==="false")return!1;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n!=="undefined"){if(!H5e.test(e)){if(t.strict)throw new SyntaxError("Invalid JSON");return e}try{return j5e.test(e)||U5e.test(e)?JSON.parse(e,q5e):JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}}class G5e extends Error{constructor(){super(...arguments),this.name="FetchError"}}function Z5e(e,t,n){let r="";t&&(r=t.message),e&&n?r=`${r} (${n.status} ${n.statusText} (${e.toString()}))`:e&&(r=`${r} (${e.toString()})`);const i=new G5e(r);return Object.defineProperty(i,"request",{get(){return e}}),Object.defineProperty(i,"response",{get(){return n}}),Object.defineProperty(i,"data",{get(){return n&&n._data}}),Object.defineProperty(i,"status",{get(){return n&&n.status}}),Object.defineProperty(i,"statusText",{get(){return n&&n.statusText}}),Object.defineProperty(i,"statusCode",{get(){return n&&n.status}}),Object.defineProperty(i,"statusMessage",{get(){return n&&n.statusText}}),i}const K5e=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function VO(e="GET"){return K5e.has(e.toUpperCase())}function Y5e(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const X5e=new Set(["image/svg","application/xml","application/xhtml","application/html"]),J5e=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Q5e(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return J5e.test(t)?"json":X5e.has(t)||t.startsWith("text/")?"text":"blob"}const exe=new Set([408,409,425,429,500,502,503,504]);function RG(e){const{fetch:t,Headers:n}=e;function r(o){const s=o.error&&o.error.name==="AbortError"||!1;if(o.options.retry!==!1&&!s){let u;typeof o.options.retry=="number"?u=o.options.retry:u=VO(o.options.method)?0:1;const c=o.response&&o.response.status||500;if(u>0&&exe.has(c))return i(o.request,{...o.options,retry:u-1})}const l=Z5e(o.request,o.error,o.response);throw Error.captureStackTrace&&Error.captureStackTrace(l,i),l}const i=async function(s,l={}){const u={request:s,options:{...e.defaults,...l},response:void 0,error:void 0};u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=O5e(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=ey(u.request,{...u.options.params,...u.options.query})),u.options.body&&VO(u.options.method)&&Y5e(u.options.body)&&(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json"))),u.response=await t(u.request,u.options).catch(async d=>(u.error=d,u.options.onRequestError&&await u.options.onRequestError(u),r(u)));const c=(u.options.parseResponse?"json":u.options.responseType)||Q5e(u.response.headers.get("content-type")||"");if(c==="json"){const d=await u.response.text(),f=u.options.parseResponse||W5e;u.response._data=f(d)}else c==="stream"?u.response._data=u.response.body:u.response._data=await u.response[c]();return u.options.onResponse&&await u.options.onResponse(u),u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),r(u)):u.response},a=function(s,l){return i(s,l).then(u=>u._data)};return a.raw=i,a.native=t,a.create=(o={})=>RG({...e,defaults:{...e.defaults,...o}}),a}const OG=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),txe=OG.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),nxe=OG.Headers,rxe=RG({fetch:txe,Headers:nxe}),ixe=rxe;class axe{_$fetch;initialDataEndpoint;fetchOptions={headers:{}};constructor(t){this.siteOptions=t,this.initialDataEndpoint=t.api.endpoints.initialData,this.apiHeaders={},this.fetchOptions={baseURL:this.siteOptions.api.baseUrl,headers:this.siteOptions.api.headers,credentials:this.siteOptions.api.credentials,retry:!1},this._$fetch=ixe.create(this.fetchOptions)}apiHeaders;siteOptions;$fetch(t,n){return this._$fetch(t,this.getOptions(n))}getPage(t="/",n){return this.$fetch(this.filterQuery(t),this.getOptions(n))}getInitialData(t="/",n){const{pathname:r,search:i}=rm(t),o={...ky(i),...n?.query??{}};return this.$fetch(this.filterQuery(IG(r)),{...this.getOptions(n),query:o})}setHeaders(t){this.fetchOptions.headers=Gd(t,this.fetchOptions.headers)}getOptions(t){return Gd(t,{onResponse:n=>{this.fetchOptions.onResponse&&this.fetchOptions.onResponse(n)}},this.fetchOptions)}filterQuery(t){const{baseUrl:n,allowQuery:r}=this.siteOptions.api;if(r&&r===!0)return t;const i=new URL(t,n);if(!r)return i.pathname;const a=i.searchParams,o="type";
7return r&&Array.isArray(r)?(Array.from(a).forEach(([s])=>{r.includes(s)||s===o||a.delete(s)}),i.pathname+i.search):t}mapResponseHeaders(t){const n=this.siteOptions.api?.proxyHeaders;if(!n||!n.length)return{};let r=Array.from(t.entries());return r=r.filter(i=>n.includes(i[0])),Object.fromEntries(new Headers(r))}}async function oxe(e,t){const{getLocale:n,setLocale:r,currentLocale:i}=t6(e.fullPath),a=n(e.fullPath);!N5e(e.fullPath,t.fullPath)&&i.value!==a&&await r(a)}async function sxe(e){const{initialData:t,getInitialData:n}=Wo(e.fullPath),{currentSiteOptions:r}=uv(),{getPathWithLocale:i}=t6(e.fullPath),a=r.value.api.endpoints?.initialData,o=r.value.api.endpoints?.initialDataFallback,s=(c,d)=>{const{pathname:f,search:h}=rm(c),p=ky(h);if(d&&c.startsWith("?")){const{pathname:g,search:v}=rm(d),x={...ky(v),...p};return ey($M(g),x)}return ey(i(f),p)},l=(c,d)=>{const{pathname:f,search:h}=rm(c),g={...ky(h),...d};return ey(i(f),g)},u=c=>{if(c.startsWith("?"))return s(c,e.fullPath);const d=e.query;return Object.keys(d).length?Object.keys(d).some(f=>f.includes("[controller]"))?ey(e.fullPath,d):l(c,d):s(c)};try{let c;try{c=await n(u(a))}catch{c=await n(u(o))}t.value=c}catch(c){Ul({fatal:!0,unhandled:!1,statusCode:c.statusCode||500,statusMessage:c.statusMessage,data:c.response?._data,message:`Initial Data is unavailable: ${c.message}`})}}async function lxe(e){await FW("t3:initialData",async()=>await sxe(e),"$ZAJP2t_5iA")}const uxe=hr(e=>{const{currentSiteOptions:t}=uv(),{initLocale:n}=t6(),r=new axe(t.value);n(),cxe(r);const i={api:r,$fetch:r.$fetch.bind(r)},a=r.siteOptions.api.proxyReqHeaders,o=a&&Array.isArray(a)&&a.length?gM():{};r.fetchOptions.headers={...r.fetchOptions.headers,...o},e.provide("typo3",i),t.value.features?.initInitialData&&k4("typo3-initialData-middleware",lxe,{global:!0}),t.value.features?.i18nMiddleware&&k4("typo3-i18n-middleware",oxe,{global:!0}),e.hook("app:rendered",()=>{r.siteOptions.api.proxyHeaders&&_1e(void 0,r.apiHeaders)})}),cxe=e=>{BW("T3:api:headers",()=>e.fetchOptions.headers,t=>{e.fetchOptions.headers=t;const{payload:n}=vt();n["T3:api:headers"]=null})};function dxe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const fxe=hr(e=>{const t=dxe();return{provide:{emit:t.emit,on:t.on,off:t.off,clear:t.all.clear}}});var T7={exports:{}},jO;function hxe(){return jO||(jO=1,(function(e,t){(function(n,r){e.exports=r()})(window,(function(){return(function(n){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return n[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=n,i.c=r,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:s})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,o){if(1&o&&(a=i(a)),8&o||4&o&&typeof a=="object"&&a&&a.__esModule)return a;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:a}),2&o&&typeof a!="string")for(var l in a)i.d(s,l,(function(u){return a[u]}).bind(null,l));return s},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=0)})([function(n,r,i){function a(){return window.Piwik.getAsyncTracker()}function o(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;return new Promise((function(v,b){var x=document.createElement("script");x.async=!0,x.defer=!0,x.src=p,g&&["anonymous","use-credentials"].includes(g)&&(x.crossOrigin=g),(document.head||document.getElementsByTagName("head")[0]).appendChild(x),x.onload=v,x.onerror=b}))}function s(p,g){return p.resolve(g).href}i.r(r),i.d(r,"matomoKey",(function(){return u})),i.d(r,"default",(function(){return h}));var l={debug:!1,disableCookies:!1,requireCookieConsent:!1,enableHeartBeatTimer:!1,enableLinkTracking:!0,heartBeatTimerInterval:15,requireConsent:!1,trackInitialView:!0,trackSiteSearch:!1,trackerFileName:"matomo",trackerUrl:void 0,trackerScriptUrl:void 0,userId:void 0,cookieDomain:void 0,domains:void 0,preInitActions:[],crossOrigin:void 0},u="Matomo";function c(p,g,v){if(typeof p.trackSiteSearch=="function"){var b=p.trackSiteSearch(g);
7if(b)return void(function(x,_){var w=_.keyword,C=_.category,T=_.resultsCount,k=a();x.debug&&console.debug("[vue-matomo] Site Search "+w),k.trackSiteSearch(w,C,T)})(p,b)}(function(x,_,w){var C,T,k,A=a();if(x.router){if(T=s(x.router,_.fullPath),k=w&&w.fullPath?s(x.router,w.fullPath):void 0,_.meta.analyticsIgnore)return void(x.debug&&console.debug("[vue-matomo] Ignoring "+T));x.debug&&console.debug("[vue-matomo] Tracking "+T),C=_.meta.title||T}k&&A.setReferrerUrl(window.location.origin+k),T&&A.setCustomUrl(window.location.origin+T),A.trackPageView(C)})(p,g,v)}function d(p,g){var v=a();if(Number(p.version.split(".")[0])>2?(p.config.globalProperties.$piwik=v,p.config.globalProperties.$matomo=v,p.provide(u,v)):(p.prototype.$piwik=v,p.prototype.$matomo=v),g.trackInitialView&&g.router){var b=g.router.currentRoute.value?g.router.currentRoute.value:g.router.currentRoute;c(g,b)}g.router&&g.router.afterEach((function(x,_){c(g,x,_),g.enableLinkTracking&&v.enableLinkTracking()}))}function f(){return new Promise((function(p,g){var v=Date.now(),b=setInterval((function(){if(window.Piwik)return clearInterval(b),p();if(Date.now()>=v+3e3)throw clearInterval(b),new Error("[vue-matomo]: window.Piwik undefined after waiting for ".concat(3e3,"ms"))}),50)}))}function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=Object.assign({},l,g),b=v.host,x=v.siteId,_=v.trackerFileName,w=v.trackerUrl,C=v.trackerScriptUrl,T=C||"".concat(b,"/").concat(_,".js"),k=w||"".concat(b,"/").concat(_,".php");window._paq=window._paq||[],window._paq.push(["setTrackerUrl",k]),window._paq.push(["setSiteId",x]),v.requireConsent&&window._paq.push(["requireConsent"]),v.userId&&window._paq.push(["setUserId",v.userId]),v.enableLinkTracking&&window._paq.push(["enableLinkTracking"]),v.disableCookies&&window._paq.push(["disableCookies"]),v.requireCookieConsent&&window._paq.push(["requireCookieConsent"]),v.enableHeartBeatTimer&&window._paq.push(["enableHeartBeatTimer",v.heartBeatTimerInterval]),v.cookieDomain&&window._paq.push(["setCookieDomain",v.cookieDomain]),v.domains&&window._paq.push(["setDomains",v.domains]),v.preInitActions.forEach((function(A){return window._paq.push(A)})),o(T,v.crossOrigin).then((function(){return f()})).then((function(){return d(p,v)})).catch((function(A){if(A.target)return console.error("[vue-matomo] An error occurred trying to load ".concat(A.target.src,". ")+"If the file exists you may have an ad- or trackingblocker enabled.");console.error(A)}))}}])}))})(T7)),T7.exports}var pxe=hxe();const mxe=dp(pxe);var BG=typeof global=="object"&&global&&global.Object===Object&&global,gxe=typeof self=="object"&&self&&self.Object===Object&&self,cf=BG||gxe||Function("return this")(),Pm=cf.Symbol,FG=Object.prototype,yxe=FG.hasOwnProperty,vxe=FG.toString,Mg=Pm?Pm.toStringTag:void 0;function _xe(e){var t=yxe.call(e,Mg),n=e[Mg];try{e[Mg]=void 0;var r=!0}catch{}var i=vxe.call(e);return r&&(t?e[Mg]=n:delete e[Mg]),i}var bxe=Object.prototype,xxe=bxe.toString;function wxe(e){return xxe.call(e)}var Sxe="[object Null]",Cxe="[object Undefined]",UO=Pm?Pm.toStringTag:void 0;function df(e){return e==null?e===void 0?Cxe:Sxe:UO&&UO in Object(e)?_xe(e):wxe(e)}function c1(e){return e!=null&&typeof e=="object"}var Txe="[object Symbol]";function zG(e){return typeof e=="symbol"||c1(e)&&df(e)==Txe}function kxe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Ii=Array.isArray,HO=Pm?Pm.prototype:void 0,qO=HO?HO.toString:void 0;function LM(e){if(typeof e=="string")return e;if(Ii(e))return kxe(e,LM)+"";if(zG(e))return qO?qO.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Exe=/\s/;function Mxe(e){for(var t=e.length;t--&&Exe.test(e.charAt(t)););return t}var Axe=/^\s+/;function NG(e){return e&&e.slice(0,Mxe(e)+1).replace(Axe,"")}function z4(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var WO=NaN,Pxe=/^[-+]0x[0-9a-f]+$/i,Dxe=/^0b[01]+$/i,Ixe=/^0o[0-7]+$/i,$xe=parseInt;function Lxe(e){if(typeof e=="number")return e;if(zG(e))return WO;if(z4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NG(e);var n=Dxe.test(e);return n||Ixe.test(e)?$xe(e.slice(2),n?2:8):Pxe.test(e)?WO:+e}var GO=1/0,Rxe=17976931348623157e292;function Oxe(e){if(!e)return e===0?e:0;if(e=Lxe(e),e===GO||e===-GO){var t=e<0?-1:1;return t*Rxe}return e===e?e:0}function Bxe(e){var t=Oxe(e),n=t%1;return t===t?n?t-n:t:0}function Fxe(e){return e}var zxe="[object AsyncFunction]",Nxe="[object Function]",Vxe="[object GeneratorFunction]",jxe="[object Proxy]";function RM(e){if(!z4(e))return!1;var t=df(e);return t==Nxe||t==Vxe||t==zxe||t==jxe}var k7=cf["__core-js_shared__"],ZO=(function(){var e=/[^.]+$/.exec(k7&&k7.keys&&k7.keys.IE_PROTO||"");
7return e?"Symbol(src)_1."+e:""})();function Uxe(e){return!!ZO&&ZO in e}var Hxe=Function.prototype,qxe=Hxe.toString;function pp(e){if(e!=null){try{return qxe.call(e)}catch{}try{return e+""}catch{}}return""}var Wxe=/[\\^$.*+?()[\]{}|]/g,Gxe=/^\[object .+?Constructor\]$/,Zxe=Function.prototype,Kxe=Object.prototype,Yxe=Zxe.toString,Xxe=Kxe.hasOwnProperty,Jxe=RegExp("^"+Yxe.call(Xxe).replace(Wxe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qxe(e){if(!z4(e)||Uxe(e))return!1;var t=RM(e)?Jxe:Gxe;return t.test(pp(e))}function e6e(e,t){return e?.[t]}function d1(e,t){var n=e6e(e,t);return Qxe(n)?n:void 0}var CC=d1(cf,"WeakMap");function t6e(){}function n6e(e,t,n,r){for(var i=e.length,a=n+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function r6e(e){return e!==e}function i6e(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function OM(e,t,n){return t===t?i6e(e,t,n):n6e(e,r6e,n)}function a6e(e,t){var n=e==null?0:e.length;return!!n&&OM(e,t,0)>-1}function o6e(e,t){return e===t||e!==e&&t!==t}var s6e=9007199254740991;function VG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=s6e}function l6e(e){return e!=null&&VG(e.length)&&!RM(e)}var u6e=Object.prototype;function jG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||u6e;return e===n}var c6e="[object Arguments]";function KO(e){return c1(e)&&df(e)==c6e}var UG=Object.prototype,d6e=UG.hasOwnProperty,f6e=UG.propertyIsEnumerable,h6e=KO((function(){return arguments})())?KO:function(e){return c1(e)&&d6e.call(e,"callee")&&!f6e.call(e,"callee")};function p6e(){return!1}var HG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,YO=HG&&typeof module=="object"&&module&&!module.nodeType&&module,m6e=YO&&YO.exports===HG,XO=m6e?cf.Buffer:void 0,g6e=XO?XO.isBuffer:void 0,y6e=g6e||p6e,v6e="[object Arguments]",_6e="[object Array]",b6e="[object Boolean]",x6e="[object Date]",w6e="[object Error]",S6e="[object Function]",C6e="[object Map]",T6e="[object Number]",k6e="[object Object]",E6e="[object RegExp]",M6e="[object Set]",A6e="[object String]",P6e="[object WeakMap]",D6e="[object ArrayBuffer]",I6e="[object DataView]",$6e="[object Float32Array]",L6e="[object Float64Array]",R6e="[object Int8Array]",O6e="[object Int16Array]",B6e="[object Int32Array]",F6e="[object Uint8Array]",z6e="[object Uint8ClampedArray]",N6e="[object Uint16Array]",V6e="[object Uint32Array]",Ar={};Ar[$6e]=Ar[L6e]=Ar[R6e]=Ar[O6e]=Ar[B6e]=Ar[F6e]=Ar[z6e]=Ar[N6e]=Ar[V6e]=!0;Ar[v6e]=Ar[_6e]=Ar[D6e]=Ar[b6e]=Ar[I6e]=Ar[x6e]=Ar[w6e]=Ar[S6e]=Ar[C6e]=Ar[T6e]=Ar[k6e]=Ar[E6e]=Ar[M6e]=Ar[A6e]=Ar[P6e]=!1;function j6e(e){return c1(e)&&VG(e.length)&&!!Ar[df(e)]}function U6e(e){return function(t){return e(t)}}var qG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ey=qG&&typeof module=="object"&&module&&!module.nodeType&&module,H6e=Ey&&Ey.exports===qG,E7=H6e&&BG.process,JO=(function(){try{var e=Ey&&Ey.require&&Ey.require("util").types;return e||E7&&E7.binding&&E7.binding("util")}catch{}})(),QO=JO&&JO.isTypedArray,q6e=QO?U6e(QO):j6e;function W6e(e,t){return function(n){return e(t(n))}}var G6e=W6e(Object.keys,Object),Z6e=Object.prototype,K6e=Z6e.hasOwnProperty;function Y6e(e){if(!jG(e))return G6e(e);var t=[];for(var n in Object(e))K6e.call(e,n)&&n!="constructor"&&t.push(n);return t}var g2=d1(Object,"create");function X6e(){this.__data__=g2?g2(null):{},this.size=0}function J6e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Q6e="__lodash_hash_undefined__",ewe=Object.prototype,twe=ewe.hasOwnProperty;function nwe(e){var t=this.__data__;if(g2){var n=t[e];return n===Q6e?void 0:n}return twe.call(t,e)?t[e]:void 0}var rwe=Object.prototype,iwe=rwe.hasOwnProperty;function awe(e){var t=this.__data__;return g2?t[e]!==void 0:iwe.call(t,e)}var owe="__lodash_hash_undefined__";function swe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=g2&&t===void 0?owe:t,this}function Wh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wh.prototype.clear=X6e;Wh.prototype.delete=J6e;Wh.prototype.get=nwe;Wh.prototype.has=awe;Wh.prototype.set=swe;function lwe(){this.__data__=[],this.size=0}function n6(e,t){for(var n=e.length;n--;)if(o6e(e[n][0],t))return n;return-1}var uwe=Array.prototype,cwe=uwe.splice;function dwe(e){var t=this.__data__,n=n6(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():cwe.call(t,n,1),--this.size,!0}function fwe(e){var t=this.__data__,n=n6(t,e);return n<0?void 0:t[n][1]}function hwe(e){return n6(this.__data__,e)>-1}function pwe(e,t){var n=this.__data__,r=n6(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function f1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f1.prototype.clear=lwe;f1.prototype.delete=dwe;f1.prototype.get=fwe;f1.prototype.has=hwe;f1.prototype.set=pwe;var N4=d1(cf,"Map");function mwe(){this.size=0,this.__data__={hash:new Wh,map:new(N4||f1),string:new Wh}}function gwe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function r6(e,t){var n=e.__data__;return gwe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ywe(e){var t=r6(this,e).delete(e);return this.size-=t?1:0,t}function vwe(e){return r6(this,e).get(e)}function _we(e){return r6(this,e).has(e)}function bwe(e,t){var n=r6(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function h1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}h1.prototype.clear=mwe;h1.prototype.delete=ywe;h1.prototype.get=vwe;h1.prototype.has=_we;h1.prototype.set=bwe;function mp(e){return e==null?"":LM(e)}function xwe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function WG(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:xwe(e,t,n)}var wwe="\\ud800-\\udfff",Swe="\\u0300-\\u036f",Cwe="\\ufe20-\\ufe2f",Twe="\\u20d0-\\u20ff",kwe=Swe+Cwe+Twe,Ewe="\\ufe0e\\ufe0f",Mwe="\\u200d",Awe=RegExp("["+Mwe+wwe+kwe+Ewe+"]");function GG(e){return Awe.test(e)}function Pwe(e){return e.split("")}var ZG="\\ud800-\\udfff",Dwe="\\u0300-\\u036f",Iwe="\\ufe20-\\ufe2f",$we="\\u20d0-\\u20ff",Lwe=Dwe+Iwe+$we,Rwe="\\ufe0e\\ufe0f",Owe="["+ZG+"]",TC="["+Lwe+"]",kC="\\ud83c[\\udffb-\\udfff]",Bwe="(?:"+TC+"|"+kC+")",KG="[^"+ZG+"]",YG="(?:\\ud83c[\\udde6-\\uddff]){2}",XG="[\\ud800-\\udbff][\\udc00-\\udfff]",Fwe="\\u200d",JG=Bwe+"?",QG="["+Rwe+"]?",zwe="(?:"+Fwe+"(?:"+[KG,YG,XG].join("|")+")"+QG+JG+")*",Nwe=QG+JG+zwe,Vwe="(?:"+[KG+TC+"?",TC,YG,XG,Owe].join("|")+")",jwe=RegExp(kC+"(?="+kC+")|"+Vwe+Nwe,"g");function Uwe(e){return e.match(jwe)||[]}function EC(e){return GG(e)?Uwe(e):Pwe(e)}function Hwe(e){return function(t){t=mp(t);var n=GG(t)?EC(t):void 0,r=n?n[0]:t.charAt(0),i=n?WG(n,1).join(""):t.slice(1);return r[e]()+i}}var eZ=Hwe("toUpperCase");function qwe(e){return eZ(mp(e).toLowerCase())}function Wwe(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;)n=t(n,e[i],i,e);return n}function Gwe(e){return function(t){return e?.[t]}}var Zwe={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}
7,Kwe=Gwe(Zwe),Ywe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xwe="\\u0300-\\u036f",Jwe="\\ufe20-\\ufe2f",Qwe="\\u20d0-\\u20ff",e8e=Xwe+Jwe+Qwe,t8e="["+e8e+"]",n8e=RegExp(t8e,"g");function r8e(e){return e=mp(e),e&&e.replace(Ywe,Kwe).replace(n8e,"")}var i8e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function a8e(e){return e.match(i8e)||[]}var o8e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function s8e(e){return o8e.test(e)}var tZ="\\ud800-\\udfff",l8e="\\u0300-\\u036f",u8e="\\ufe20-\\ufe2f",c8e="\\u20d0-\\u20ff",d8e=l8e+u8e+c8e,nZ="\\u2700-\\u27bf",rZ="a-z\\xdf-\\xf6\\xf8-\\xff",f8e="\\xac\\xb1\\xd7\\xf7",h8e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p8e="\\u2000-\\u206f",m8e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",iZ="A-Z\\xc0-\\xd6\\xd8-\\xde",g8e="\\ufe0e\\ufe0f",aZ=f8e+h8e+p8e+m8e,oZ="['â]",eB="["+aZ+"]",y8e="["+d8e+"]",sZ="\\d+",v8e="["+nZ+"]",lZ="["+rZ+"]",uZ="[^"+tZ+aZ+sZ+nZ+rZ+iZ+"]",_8e="\\ud83c[\\udffb-\\udfff]",b8e="(?:"+y8e+"|"+_8e+")",x8e="[^"+tZ+"]",cZ="(?:\\ud83c[\\udde6-\\uddff]){2}",dZ="[\\ud800-\\udbff][\\udc00-\\udfff]",A0="["+iZ+"]",w8e="\\u200d",tB="(?:"+lZ+"|"+uZ+")",S8e="(?:"+A0+"|"+uZ+")",nB="(?:"+oZ+"(?:d|ll|m|re|s|t|ve))?",rB="(?:"+oZ+"(?:D|LL|M|RE|S|T|VE))?",fZ=b8e+"?",hZ="["+g8e+"]?",C8e="(?:"+w8e+"(?:"+[x8e,cZ,dZ].join("|")+")"+hZ+fZ+")*",T8e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",k8e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",E8e=hZ+fZ+C8e,M8e="(?:"+[v8e,cZ,dZ].join("|")+")"+E8e,A8e=RegExp([A0+"?"+lZ+"+"+nB+"(?="+[eB,A0,"$"].join("|")+")",S8e+"+"+rB+"(?="+[eB,A0+tB,"$"].join("|")+")",A0+"?"+tB+"+"+nB,A0+"+"+rB,k8e,T8e,sZ,M8e].join("|"),"g");function P8e(e){return e.match(A8e)||[]}function D8e(e,t,n){return e=mp(e),t=t,t===void 0?s8e(e)?P8e(e):a8e(e):e.match(t)||[]}var I8e="['â]",$8e=RegExp(I8e,"g");function L8e(e){return function(t){return Wwe(D8e(r8e(t).replace($8e,"")),e,"")}}var Is=L8e(function(e,t,n){return t=t.toLowerCase(),e+(n?qwe(t):t)}),MC=d1(cf,"DataView"),AC=d1(cf,"Promise"),im=d1(cf,"Set"),iB="[object Map]",R8e="[object Object]",aB="[object Promise]",oB="[object Set]",sB="[object WeakMap]",lB="[object DataView]",O8e=pp(MC),B8e=pp(N4),F8e=pp(AC),z8e=pp(im),N8e=pp(CC),Xf=df;(MC&&Xf(new MC(new ArrayBuffer(1)))!=lB||N4&&Xf(new N4)!=iB||AC&&Xf(AC.resolve())!=aB||im&&Xf(new im)!=oB||CC&&Xf(new CC)!=sB)&&(Xf=function(e){var t=df(e),n=t==R8e?e.constructor:void 0,r=n?pp(n):"";if(r)switch(r){case O8e:return lB;case B8e:return iB;case F8e:return aB;case z8e:return oB;case N8e:return sB}return t});var V8e="__lodash_hash_undefined__";function j8e(e){return this.__data__.set(e,V8e),this}function U8e(e){return this.__data__.has(e)}function V4(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new h1;++t<n;)this.add(e[t])}V4.prototype.add=V4.prototype.push=j8e;V4.prototype.has=U8e;function H8e(e,t){return e.has(t)}function pZ(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var q8e="[object String]";function mZ(e){return typeof e=="string"||!Ii(e)&&c1(e)&&df(e)==q8e}var W8e="[object Map]",G8e="[object Set]",Z8e=Object.prototype,K8e=Z8e.hasOwnProperty;function i6(e){if(e==null)return!0;if(l6e(e)&&(Ii(e)||typeof e=="string"||typeof e.splice=="function"||y6e(e)||q6e(e)||h6e(e)))return!e.length;var t=Xf(e);if(t==W8e||t==G8e)return!e.size;if(jG(e))return!Y6e(e).length;for(var n in e)if(K8e.call(e,n))return!1;return!0}function Y8e(e){return typeof e=="number"&&e==Bxe(e)}var X8e="[object Number]";function BM(e){return typeof e=="number"||c1(e)&&df(e)==X8e}function Ec(e){return BM(e)&&e!=+e}function J8e(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}function gZ(e){return e&&e.length?J8e(e,Fxe):0}function uB(e){return mp(e).toLowerCase()}function cB(e){return mp(e).toUpperCase()}function Q8e(e,t){for(var n=e.length;n--&&OM(t,e[n],0)>-1;);return n}function e7e(e,t){for(var n=-1,r=e.length;++n<r&&OM(t,e[n],0)>-1;);return n}
7function PC(e,t,n){if(e=mp(e),e&&(n||t===void 0))return NG(e);if(!e||!(t=LM(t)))return e;var r=EC(e),i=EC(t),a=e7e(r,i),o=Q8e(r,i)+1;return WG(r,a,o).join("")}var t7e=1/0,n7e=im&&1/pZ(new im([,-0]))[1]==t7e?function(e){return new im(e)}:t6e,r7e=200;function i7e(e,t,n){var r=-1,i=a6e,a=e.length,o=!0,s=[],l=s;if(a>=r7e){var u=n7e(e);if(u)return pZ(u);o=!1,i=H8e,l=new V4}else l=s;e:for(;++r<a;){var c=e[r],d=c;if(c=c!==0?c:0,o&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function a7e(e){return e&&e.length?i7e(e):[]}const yZ=()=>vt().$cookies,o7e=hr(e=>{e.hook("t3:initialData",t=>{const n=PC(t.siteBuilderInfos?.matomo?.host,"/"),r=t.siteBuilderInfos?.matomo?.id,{cookiesEnabledIds:i}=yZ();Je(()=>i.value,(a,o)=>{o?.includes("matomo")!==a?.includes("matomo")&&window.location.reload()},{deep:!0}),n&&r&&Ii(i.value)&&_t(i.value)?.includes("matomo")&&e.vueApp.use(mxe,{host:n,siteId:r,router:e.$router,enableLinkTracking:!0,trackInitialView:!0,disableCookies:!0,requireConsent:!1,requireCookieConsent:!1})})}),s7e=hr(e=>{e.hook("t3:page",t=>{const n=window.location.hash;n&&At(()=>{setTimeout(()=>{const r=document.querySelector(n);if(r){const a=r.getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:a,behavior:"smooth"})}},300),setTimeout(()=>{const r=document.querySelector(n);if(r){const i=r.getBoundingClientRect();if(!(i.top>=0&&i.bottom<=window.innerHeight)){const s=r.getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:s,behavior:"smooth"})}}},1500)})})}),l7e=hr(e=>{e.hook("t3:initialData",t=>{}),e.hook("t3:page",t=>{})});function Rb(){const e=i=>{const a=W(()=>{let s=[];for(const[l,u]of Object.entries(i.value)){let c=`--${l}:${u.hexa};`;s.push(c)}return s.join("")}),o=W(()=>{let s=[];for(const[l,u]of Object.entries(i.value)){let c=n(l,u);s.push(c)}return s.toString()});return`${a.value} ${o.value}`},t=i=>{let a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i),o=parseInt(a?.[1]||"16",16),s=parseInt(a?.[2]||"16",16),l=parseInt(a?.[3]||"16",16);o/=255,s/=255,l/=255;let u=Math.max(o,s,l),c=Math.min(o,s,l),d=0,f,h=(u+c)/2;if(u==c)d=f=0;else{let p=u-c;switch(f=h>.5?p/(2-u-c):p/(u+c),u){case o:d=(s-l)/p+(s<l?6:0);break;case s:d=(l-o)/p+2;break;case l:d=(o-s)/p+4;break}d/=6}return f=f*100,f=Math.round(f),h=h*100,h=Math.round(h),d=Math.round(360*d),{h:d,s:f,l:h}},n=(i,a)=>{const{h:o,s,l}=t(a.hexa),u="--"+i+"_h:"+o+";",c="--"+i+"_s:"+s+"%;",d="--"+i+"_l:"+l+"%;";return`${u} ${c} ${d}`};return{hexaToHSL:t,HSLtoCSSvar:n,createHeadStyle:e,hexaToRGB:(i,a)=>{let o=!1,s=i.slice(i.startsWith("#")?1:0);return s.length===3?s=[...s].map(l=>l+l).join(""):s.length===8&&(o=!0),s=parseInt(s,16),"rgb"+(o||typeof a<"u"?"a":"")+"("+(s>>>(o?24:16))+", "+((s&(o?16711680:65280))>>>(o?16:8))+", "+((s&(o?65280:255))>>>(o?8:0))+(o?`, ${s&255}`:typeof a<"u"?`, ${a}`:"")+")"}}}function u7e(){return{setFromStore:()=>{const t=Yt(),n=G(t.colors),r=G(t.favicon),{createHeadStyle:i}=Rb(),a=i(n);mo({link:[{rel:"icon",type:"image/x-icon",href:r.value?.ico?.[0]?.url??"/img/favicon/default.svg"},{rel:"icon",type:"image/png",href:r.value?.png?.[0]?.url}],meta:[{name:"theme-color",content:n.value?.cim_primary_color?.hexa}],style:[`:root{${a}}`]})}}}function dB(e){return typeof e=="function"}function c7e(e){return typeof e=="object"&&e!==null}function d7e(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function fB(e){if(!c7e(e)||d7e(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function vZ(e,t){return Object.keys(t).forEach(n=>{if(fB(t[n])&&fB(e[n])){e[n]||(e[n]={}),vZ(e[n],t[n]);return}e[n]=t[n]}),e}function hB(e,t,n){const{prefix:r,suffix:i}=n,a=f7e(r,i);return e.replace(a,function(o,s,l){if(!s||!t.params)return l in t?t[l]:t.params&&l in t.params?t.params[l]:`${r}${l}${i}`;if(!Array.isArray(t.params))return l in t.params?t.params[l]:`${r}${l}${i}`;const u=Number(s.replace(":",""));return u in t.params?t.params[u]:`${s}${r}${l}${i}`})}function pB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function f7e(e,t){const n=pB(e),r=pB(t);return new RegExp(`([0-9]:)?${n}((?:(?!${r}).)+)${r}`,"g")}class h7e{constructor(t,n,r={prefix:"{",suffix:"}"}){this.container={}
7,this.locale=t,this.interpolateOptions=r,this.merge(n)}resolve(t,n){let r=this.format(this.locale,t,n);return!r&&this.fallbackLocale&&this.fallbackLocale!==this.locale&&(r=this.format(this.fallbackLocale,t,n)),r||this.getDefaultMessage(this.locale,t)}getDefaultMessage(t,n){const{label:r,name:i}=n;return`${this.resolveLabel(t,i,r)} is not valid`}getLocaleDefault(t,n){var r,i,a,o,s;return((a=(i=(r=this.container[t])===null||r===void 0?void 0:r.fields)===null||i===void 0?void 0:i[n])===null||a===void 0?void 0:a._default)||((s=(o=this.container[t])===null||o===void 0?void 0:o.messages)===null||s===void 0?void 0:s._default)}resolveLabel(t,n,r){var i,a,o,s;return r?((a=(i=this.container[t])===null||i===void 0?void 0:i.names)===null||a===void 0?void 0:a[r])||r:((s=(o=this.container[t])===null||o===void 0?void 0:o.names)===null||s===void 0?void 0:s[n])||n}format(t,n,r){var i,a,o,s,l;let u;const{rule:c,form:d,label:f,name:h}=n,p=this.resolveLabel(t,h,f);return c?(u=((o=(a=(i=this.container[t])===null||i===void 0?void 0:i.fields)===null||a===void 0?void 0:a[h])===null||o===void 0?void 0:o[c.name])||((l=(s=this.container[t])===null||s===void 0?void 0:s.messages)===null||l===void 0?void 0:l[c.name]),u||(u=this.getLocaleDefault(t,h)||""),dB(u)?u(n):hB(u,Object.assign(Object.assign({},d),{field:p,params:c.params}),r??this.interpolateOptions)):(u=this.getLocaleDefault(t,h)||"",dB(u)?u(n):hB(u,Object.assign(Object.assign({},d),{field:p}),r??this.interpolateOptions))}merge(t){vZ(this.container,t)}}const Ob=new h7e("en",{});function p7e(e,t,n){const r=i=>Ob.resolve(i,n);return typeof e=="string"?(Ob.locale=e,r):(Ob.merge(e),r)}function m7e(e){Ob.locale=e}function Vi(e){return typeof e=="function"}function q0(e){return e==null}const Gh=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function FM(e){return Number(e)>=0}function g7e(e){const t=parseFloat(e);return isNaN(t)?e:t}function y7e(e){return typeof e=="object"&&e!==null}function v7e(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function mB(e){if(!y7e(e)||v7e(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function y2(e,t){return Object.keys(t).forEach(n=>{if(mB(t[n])&&mB(e[n])){e[n]||(e[n]={}),y2(e[n],t[n]);return}e[n]=t[n]}),e}function ty(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let r=1;r<t.length;r++){if(FM(t[r])){n+=`[${t[r]}]`;continue}n+=`.${t[r]}`}return n}const _Z={};function Ed(e,t){b7e(e,t),_Z[e]=t}function _7e(e){return _Z[e]}function b7e(e,t){if(!Vi(t))throw new Error(`Extension Error: The validator '${e}' must be a function.`)}function gB(e,t,n){typeof n.value=="object"&&(n.value=Sn(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function Sn(e){if(typeof e!="object")return e;var t=0,n,r,i,a=Object.prototype.toString.call(e);if(a==="[object Object]"?i=Object.create(e.__proto__||null):a==="[object Array]"?i=Array(e.length):a==="[object Set]"?(i=new Set,e.forEach(function(o){i.add(Sn(o))})):a==="[object Map]"?(i=new Map,e.forEach(function(o,s){i.set(Sn(s),Sn(o))})):a==="[object Date]"?i=new Date(+e):a==="[object RegExp]"?i=new RegExp(e.source,e.flags):a==="[object DataView]"?i=new e.constructor(Sn(e.buffer)):a==="[object ArrayBuffer]"?i=e.slice(0):a.slice(-6)==="Array]"&&(i=new e.constructor(e)),i){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)gB(i,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(i,n=r[t])&&i[n]===e[n]||gB(i,n,Object.getOwnPropertyDescriptor(e,n))}return i||e}const p1=Symbol("vee-validate-form"),x7e=Symbol("vee-validate-form-context"),w7e=Symbol("vee-validate-field-instance"),j4=Symbol("Default empty value"),S7e=typeof window<"u";function DC(e){return Vi(e)&&!!e.__locatorRef}function nl(e){return!!e&&Vi(e.parse)&&e.__type==="VVTypedSchema"}function U4(e){return!!e&&Vi(e.validate)}function cv(e){return e==="checkbox"||e==="radio"}function C7e(e){return Gh(e)||Array.isArray(e)}function T7e(e){return Array.isArray(e)?e.length===0:Gh(e)&&Object.keys(e).length===0}function a6(e){return/^\[.+\]$/i.test(e)}function k7e(e){return bZ(e)&&e.multiple}function bZ(e){return e.tagName==="SELECT"}function E7e(e,t){const n=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&n}function M7e(e,t){return!E7e(e,t)&&t.type!=="file"&&!cv(t.type)}function xZ(e){return zM(e)&&e.target&&"submit"in e.target}function zM(e){return e?!!(typeof Event<"u"&&Vi(Event)&&e instanceof Event||e&&e.srcElement):!1}function yB(e,t){return t in e&&e[t]!==j4}function Ui(e,t){if(e===t)return!0;
7if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ui(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!Ui(r[1],t.get(r[0])))return!1;return!0}if(_B(e)&&_B(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=vB(e),t=vB(t),i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){var a=i[r];if(!Ui(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function vB(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function _B(e){return S7e?e instanceof File:!1}function NM(e){return a6(e)?e.replace(/\[|\]/gi,""):e}function Hr(e,t,n){return e?a6(t)?e[NM(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,a)=>C7e(i)&&a in i?i[a]:n,e):n}function Ji(e,t,n){if(a6(t)){e[NM(t)]=n;return}const r=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let a=0;a<r.length;a++){if(a===r.length-1){i[r[a]]=n;return}(!(r[a]in i)||q0(i[r[a]]))&&(i[r[a]]=FM(r[a+1])?[]:{}),i=i[r[a]]}}function M7(e,t){if(Array.isArray(e)&&FM(t)){e.splice(Number(t),1);return}Gh(e)&&delete e[t]}function bB(e,t){if(a6(t)){delete e[NM(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let a=0;a<n.length;a++){if(a===n.length-1){M7(r,n[a]);break}if(!(n[a]in r)||q0(r[n[a]]))break;r=r[n[a]]}const i=n.map((a,o)=>Hr(e,n.slice(0,o).join(".")));for(let a=i.length-1;a>=0;a--)if(T7e(i[a])){if(a===0){M7(e,n[0]);continue}M7(i[a-1],n[a-1])}}function Lo(e){return Object.keys(e)}function o6(e,t=void 0){const n=$n();return n?.provides[e]||cr(e,t)}function xB(e,t,n){if(Array.isArray(e)){const r=[...e],i=r.findIndex(a=>Ui(a,t));return i>=0?r.splice(i,1):r.push(t),r}return Ui(e,t)?n:t}function wB(e,t=0){let n=null,r=[];return function(...i){return n&&clearTimeout(n),n=setTimeout(()=>{const a=e(...i);r.forEach(o=>o(a)),r=[]},t),new Promise(a=>r.push(a))}}function A7e(e,t){return Gh(t)&&t.number?g7e(e):e}function IC(e,t){let n;return async function(...i){const a=e(...i);n=a;const o=await a;return a!==n?o:(n=void 0,t(o,i))}}function P7e({get:e,set:t}){const n=G(Sn(e()));return Je(e,r=>{Ui(r,n.value)||(n.value=Sn(r))},{deep:!0}),Je(n,r=>{Ui(r,e())||t(Sn(r))},{deep:!0}),n}function $C(e){return Array.isArray(e)?e:e?[e]:[]}function v3(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function D7e(e){let t=null,n=[];return function(...r){const i=At(()=>{if(t!==i)return;const a=e(...r);n.forEach(o=>o(a)),n=[],t=null});return t=i,new Promise(a=>n.push(a))}}function VM(e,t,n){return t.slots.default?typeof e=="string"||!e?t.slots.default(n()):{default:()=>{var r,i;return(i=(r=t.slots).default)===null||i===void 0?void 0:i.call(r,n())}}:t.slots.default}function A7(e){if(wZ(e))return e._value}function wZ(e){return"_value"in e}function I7e(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function H4(e){if(!zM(e))return e;const t=e.target;if(cv(t.type)&&wZ(t))return A7(t);if(t.type==="file"&&t.files){const n=Array.from(t.files);return t.multiple?n:n[0]}if(k7e(t))return Array.from(t.options).filter(n=>n.selected&&!n.disabled).map(A7);if(bZ(t)){const n=Array.from(t.options).find(r=>r.selected);return n?A7(n):t.value}return I7e(t)}function SZ(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,
7configurable:!1}),e?Gh(e)&&e._$$isNormalized?e:Gh(e)?Object.keys(e).reduce((n,r)=>{const i=$7e(e[r]);return e[r]!==!1&&(n[r]=SB(i)),n},t):typeof e!="string"?t:e.split("|").reduce((n,r)=>{const i=L7e(r);return i.name&&(n[i.name]=SB(i.params)),n},t):t}function $7e(e){return e===!0?[]:Array.isArray(e)||Gh(e)?e:[e]}function SB(e){const t=n=>typeof n=="string"&&n[0]==="@"?R7e(n.slice(1)):n;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}const L7e=e=>{let t=[];const n=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:n,params:t}};function R7e(e){const t=n=>{var r;return(r=Hr(n,e))!==null&&r!==void 0?r:n[e]};return t.__locatorRef=e,t}function O7e(e){return Array.isArray(e)?e.filter(DC):Lo(e).filter(t=>DC(e[t])).map(t=>e[t])}const B7e={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let LC=Object.assign({},B7e);const uh=()=>LC,F7e=e=>{LC=Object.assign(Object.assign({},LC),e)},z7e=F7e;async function CZ(e,t,n={}){const r=n?.bails,i={name:n?.name||"{field}",rules:t,label:n?.label,bails:r??!0,formData:n?.values||{}},a=await N7e(i,e);return Object.assign(Object.assign({},a),{valid:!a.errors.length})}async function N7e(e,t){const n=e.rules;if(nl(n)||U4(n))return j7e(t,Object.assign(Object.assign({},e),{rules:n}));if(Vi(n)||Array.isArray(n)){const s={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},l=Array.isArray(n)?n:[n],u=l.length,c=[];for(let d=0;d<u;d++){const f=l[d],h=await f(t,s);if(!(typeof h!="string"&&!Array.isArray(h)&&h)){if(Array.isArray(h))c.push(...h);else{const g=typeof h=="string"?h:kZ(s);c.push(g)}if(e.bails)return{errors:c}}}return{errors:c}}const r=Object.assign(Object.assign({},e),{rules:SZ(n)}),i=[],a=Object.keys(r.rules),o=a.length;for(let s=0;s<o;s++){const l=a[s],u=await U7e(r,t,{name:l,params:r.rules[l]});if(u.error&&(i.push(u.error),e.bails))return{errors:i}}return{errors:i}}function V7e(e){return!!e&&e.name==="ValidationError"}function TZ(e){return{__type:"VVTypedSchema",async parse(n,r){var i;try{return{output:await e.validate(n,{abortEarly:!1,context:r?.formData||{}}),errors:[]}}catch(a){if(!V7e(a))throw a;if(!(!((i=a.inner)===null||i===void 0)&&i.length)&&a.errors.length)return{errors:[{path:a.path,errors:a.errors}]};const o=a.inner.reduce((s,l)=>{const u=l.path||"";return s[u]||(s[u]={errors:[],path:u}),s[u].errors.push(...l.errors),s},{});return{errors:Object.values(o)}}}}}async function j7e(e,t){const r=await(nl(t.rules)?t.rules:TZ(t.rules)).parse(e,{formData:t.formData}),i=[];for(const a of r.errors)a.errors.length&&i.push(...a.errors);return{value:r.value,errors:i}}async function U7e(e,t,n){const r=_7e(n.name);if(!r)throw new Error(`No such validator '${n.name}' exists.`);const i=H7e(n.params,e.formData),a={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:i})},o=await r(t,i,a);return typeof o=="string"?{error:o}:{error:o?void 0:kZ(a)}}function kZ(e){const t=uh().generateMessage;return t?t(e):"Field is invalid"}function H7e(e,t){const n=r=>DC(r)?r(t):r;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((r,i)=>(r[i]=n(e[i]),r),{})}async function q7e(e,t){const r=await(nl(e)?e:TZ(e)).parse(Sn(t),{formData:Sn(t)}),i={},a={};for(const o of r.errors){const s=o.errors,l=(o.path||"").replace(/\["(\d+)"\]/g,(u,c)=>`[${c}]`);i[l]={valid:!s.length,errors:s},s.length&&(a[l]=s[0])}return{valid:!r.errors.length,results:i,errors:a,values:r.value,source:"schema"}}async function W7e(e,t,n){const i=Lo(e).map(async u=>{var c,d,f;const h=(c=n?.names)===null||c===void 0?void 0:c[u],p=await CZ(Hr(t,u),e[u],{name:h?.name||u,label:h?.label,values:t,bails:(f=(d=n?.bailsMap)===null||d===void 0?void 0:d[u])!==null&&f!==void 0?f:!0});return Object.assign(Object.assign({},p),{path:u})});let a=!0;const o=await Promise.all(i),s={},l={};for(const u of o)s[u.path]={valid:u.valid,errors:u.errors},u.valid||(a=!1,l[u.path]=u.errors[0]);return{valid:a,results:s,errors:l,source:"schema"}}let CB=0;function G7e(e,t){const{value:n,initialValue:r,setInitialValue:i}=Z7e(e,t.modelValue,t.form);if(!t.form){let l=function(h){var p;"value"in h&&(n.value=h.value),"errors"in h&&c(h.errors),"touched"in h&&(f.touched=(p=h.touched)!==null&&p!==void 0?p:f.touched),"initialValue"in h&&i(h.initialValue)};const{errors:u,setErrors:c}=X7e(),d=CB>=Number.MAX_SAFE_INTEGER?0:++CB,f=Y7e(n,r,u,t.schema);return{id:d,path:e,value:n,initialValue:r,meta:f,flags:{pendingUnmount:{[d]:!1},pendingReset:!1},errors:u,setState:l}}const a=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),o=W(()=>a.errors);function s(l){var u,c,d;"value"in l&&(n.value=l.value),"errors"in l&&((u=t.form)===null||u===void 0||u.setFieldError(m(e),l.errors)),"touched"in l&&((c=t.form)===null||c===void 0||c.setFieldTouched(m(e),(d=l.touched)!==null&&d!==void 0?d:!1)),"initialValue"in l&&i(l.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:e,value:n,errors:o,meta:a,initialValue:r,flags:a.__flags,setState:s}}function Z7e(e,t,n){const r=G(m(t));function i(){return n?Hr(n.initialValues.value,m(e),m(r)):m(r)}function a(u){if(!n){r.value=u;return}n.setFieldInitialValue(m(e),u,!0)}const o=W(i);if(!n)return{value:G(i()),initialValue:o,setInitialValue:a};const s=K7e(t,n,o,e);return n.stageInitialValue(m(e),s,!0),{value:W({get(){return Hr(n.values,m(e))},set(u){n.setFieldValue(m(e),u,!1)}}),initialValue:o,setInitialValue:a}}function K7e(e,t,n,r){return $t(e)?m(e):e!==void 0?e:Hr(t.values,m(r),m(n))}function Y7e(e,t,n,r){const i=W(()=>{var o,s,l;return(l=(s=(o=Le(r))===null||o===void 0?void 0:o.describe)===null||s===void 0?void 0:s.call(o).required)!==null&&l!==void 0?l:!1}),a=mi({touched:!1,pending:!1,valid:!0,required:i,validated:!!m(n).length,initialValue:W(()=>m(t)),dirty:W(()=>!Ui(m(e),m(t)))});return Je(n,o=>{a.valid=!o.length},{immediate:!0,flush:"sync"}),a}function X7e(){const e=G([]);return{errors:e,setErrors:t=>{e.value=$C(t)}}}function ri(e,t,n){return cv(n?.type)?Q7e(e,t,n):EZ(e,t,n)}
7function EZ(e,t,n){const{initialValue:r,validateOnMount:i,bails:a,type:o,checkedValue:s,label:l,validateOnValueUpdate:u,uncheckedValue:c,controlled:d,keepValueOnUnmount:f,syncVModel:h,form:p}=J7e(n),g=d?o6(p1):void 0,v=p||g,b=W(()=>ty(Le(e))),x=W(()=>{if(Le(v?.schema))return;const Ve=m(t);return U4(Ve)||nl(Ve)||Vi(Ve)||Array.isArray(Ve)?Ve:SZ(Ve)}),_=!Vi(x.value)&&nl(Le(t)),{id:w,value:C,initialValue:T,meta:k,setState:A,errors:P,flags:D}=G7e(b,{modelValue:r,form:v,bails:a,label:l,type:o,validate:x.value?R:void 0,schema:_?t:void 0}),$=W(()=>P.value[0]);h&&e9e({value:C,prop:h,handleChange:J,shouldValidate:()=>u&&!D.pendingReset});const O=(ke,Ve=!1)=>{k.touched=!0,Ve&&j()};async function z(ke){var Ve,nt;if(v?.validateSchema){const{results:xe}=await v.validateSchema(ke);return(Ve=xe[Le(b)])!==null&&Ve!==void 0?Ve:{valid:!0,errors:[]}}return x.value?CZ(C.value,x.value,{name:Le(b),label:Le(l),values:(nt=v?.values)!==null&&nt!==void 0?nt:{},bails:a}):{valid:!0,errors:[]}}const j=IC(async()=>(k.pending=!0,k.validated=!0,z("validated-only")),ke=>(D.pendingUnmount[Ue.id]||(A({errors:ke.errors}),k.pending=!1,k.valid=ke.valid),ke)),B=IC(async()=>z("silent"),ke=>(k.valid=ke.valid,ke));function R(ke){return ke?.mode==="silent"?B():j()}function J(ke,Ve=!0){const nt=H4(ke);se(nt,Ve)}Ot(()=>{if(i)return j();(!v||!v.validateSchema)&&B()});function K(ke){k.touched=ke}function Z(ke){var Ve;const nt=ke&&"value"in ke?ke.value:T.value;A({value:Sn(nt),initialValue:Sn(nt),touched:(Ve=ke?.touched)!==null&&Ve!==void 0?Ve:!1,errors:ke?.errors||[]}),k.pending=!1,k.validated=!1,B()}const ne=$n();function se(ke,Ve=!0){C.value=ne&&h?A7e(ke,ne.props.modelModifiers):ke,(Ve?j:B)()}function ce(ke){A({errors:Array.isArray(ke)?ke:[ke]})}const Re=W({get(){return C.value},set(ke){se(ke,u)}}),Ue={id:w,name:b,label:l,value:Re,meta:k,errors:P,errorMessage:$,type:o,checkedValue:s,uncheckedValue:c,bails:a,keepValueOnUnmount:f,resetField:Z,handleReset:()=>Z(),validate:R,handleChange:J,handleBlur:O,setState:A,setTouched:K,setErrors:ce,setValue:se};if(Si(w7e,Ue),$t(t)&&typeof m(t)!="function"&&Je(t,(ke,Ve)=>{Ui(ke,Ve)||(k.validated?j():B())},{deep:!0}),!v)return Ue;const $e=W(()=>{const ke=x.value;return!ke||Vi(ke)||U4(ke)||nl(ke)||Array.isArray(ke)?{}:Object.keys(ke).reduce((Ve,nt)=>{const xe=O7e(ke[nt]).map(Pe=>Pe.__locatorRef).reduce((Pe,je)=>{const Fe=Hr(v.values,je)||v.values[je];return Fe!==void 0&&(Pe[je]=Fe),Pe},{});return Object.assign(Ve,xe),Ve},{})});return Je($e,(ke,Ve)=>{if(!Object.keys(ke).length)return;!Ui(ke,Ve)&&(k.validated?j():B())}),Wa(()=>{var ke;const Ve=(ke=Le(Ue.keepValueOnUnmount))!==null&&ke!==void 0?ke:Le(v.keepValuesOnUnmount),nt=Le(b);if(Ve||!v||D.pendingUnmount[Ue.id]){v?.removePathState(nt,w);return}D.pendingUnmount[Ue.id]=!0;const xe=v.getPathState(nt);if(Array.isArray(xe?.id)&&xe?.multiple?xe?.id.includes(Ue.id):xe?.id===Ue.id){if(xe?.multiple&&Array.isArray(xe.value)){const je=xe.value.findIndex(Fe=>Ui(Fe,Le(Ue.checkedValue)));if(je>-1){const Fe=[...xe.value];Fe.splice(je,1),v.setFieldValue(nt,Fe)}
7Array.isArray(xe.id)&&xe.id.splice(xe.id.indexOf(Ue.id),1)}else v.unsetPathValue(Le(b));v.removePathState(nt,w)}}),Ue}function J7e(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!e?.syncVModel,r=typeof e?.syncVModel=="string"?e.syncVModel:e?.modelPropName||"modelValue",i=n&&!("initialValue"in(e||{}))?RC($n(),r):e?.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});const a="valueProp"in e?e.valueProp:e.checkedValue,o="standalone"in e?!e.standalone:e.controlled,s=e?.modelPropName||e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:o??!0,checkedValue:a,syncVModel:s})}function Q7e(e,t,n){const r=n?.standalone?void 0:o6(p1),i=n?.checkedValue,a=n?.uncheckedValue;function o(s){const l=s.handleChange,u=W(()=>{const d=Le(s.value),f=Le(i);return Array.isArray(d)?d.findIndex(h=>Ui(h,f))>=0:Ui(f,d)});function c(d,f=!0){var h,p;if(u.value===((h=d?.target)===null||h===void 0?void 0:h.checked)){f&&s.validate();return}const g=Le(e),v=r?.getPathState(g),b=H4(d);let x=(p=Le(i))!==null&&p!==void 0?p:b;r&&v?.multiple&&v.type==="checkbox"?x=xB(Hr(r.values,g)||[],x,void 0):n?.type==="checkbox"&&(x=xB(Le(s.value),x,Le(a))),l(x,f)}return Object.assign(Object.assign({},s),{checked:u,checkedValue:i,uncheckedValue:a,handleChange:c})}return o(EZ(e,t,n))}function e9e({prop:e,value:t,handleChange:n,shouldValidate:r}){const i=$n();if(!i||!e)return;const a=typeof e=="string"?e:"modelValue",o=`update:${a}`;a in i.props&&(Je(t,s=>{Ui(s,RC(i,a))||i.emit(o,s)}),Je(()=>RC(i,a),s=>{if(s===j4&&t.value===void 0)return;const l=s===j4?void 0:s;Ui(l,t.value)||n(l,r())}))}function RC(e,t){if(e)return e.props[t]}const t9e=Q({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>uh().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:j4},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,t){const n=Ts(e,"rules"),r=Ts(e,"name"),i=Ts(e,"label"),a=Ts(e,"uncheckedValue"),o=Ts(e,"keepValue"),{errors:s,value:l,errorMessage:u,validate:c,handleChange:d,handleBlur:f,setTouched:h,resetField:p,handleReset:g,meta:v,checked:b,setErrors:x,setValue:_}=ri(r,n,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:r9e(e,t),checkedValue:t.attrs.value,uncheckedValue:a,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),w=function(D,$=!0){d(D,$)},C=W(()=>{const{validateOnInput:P,validateOnChange:D,validateOnBlur:$,validateOnModelUpdate:O}=n9e(e);function z(J){f(J,$),Vi(t.attrs.onBlur)&&t.attrs.onBlur(J)}function j(J){w(J,P),Vi(t.attrs.onInput)&&t.attrs.onInput(J)}function B(J){w(J,D),Vi(t.attrs.onChange)&&t.attrs.onChange(J)}const R={name:e.name,onBlur:z,onInput:j,onChange:B};return R["onUpdate:modelValue"]=J=>w(J,O),R}),T=W(()=>{const P=Object.assign({},C.value);cv(t.attrs.type)&&b&&(P.checked=b.value);const D=TB(e,t);return M7e(D,t.attrs)&&(P.value=l.value),P}),k=W(()=>Object.assign(Object.assign({},C.value),{modelValue:l.value}));function A(){return{field:T.value,componentField:k.value,value:l.value,meta:v,errors:s.value,errorMessage:u.value,validate:c,resetField:p,handleChange:w,handleInput:P=>w(P,!1),handleReset:g,handleBlur:C.value.onBlur,setTouched:h,setErrors:x,setValue:_}}return t.expose({value:l,meta:v,errors:s,errorMessage:u,setErrors:x,setTouched:h,setValue:_,reset:p,validate:c,handleChange:d}),()=>{const P=yn(TB(e,t)),D=VM(P,t,A);return P?Nt(P,Object.assign(Object.assign({},t.attrs),T.value),D):D}}});function TB(e,t){let n=e.as||"";return!e.as&&!t.slots.default&&(n="input"),n}function n9e(e){var t,n,r,i;const{validateOnInput:a,validateOnChange:o,validateOnBlur:s,validateOnModelUpdate:l}=uh();return{validateOnInput:(t=e.validateOnInput)!==null&&t!==void 0?t:a,validateOnChange:(n=e.validateOnChange)!==null&&n!==void 0?n:o,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:s,validateOnModelUpdate:(i=e.validateOnModelUpdate)!==null&&i!==void 0?i:l}}function r9e(e,t){return cv(t.attrs.type)?yB(e,"modelValue")?e.modelValue:void 0:yB(e,"modelValue")?e.modelValue:t.attrs.value}const Ag=t9e;let i9e=0;
7const _3=["bails","fieldsCount","id","multiple","type","validate"];function MZ(e){const t=e?.initialValues||{},n=Object.assign({},Le(t)),r=m(e?.validationSchema);return r&&nl(r)&&Vi(r.cast)?Sn(r.cast(n)||{}):Sn(n)}function m1(e){var t;const n=i9e++,r=e?.name||"Form";let i=0;const a=G(!1),o=G(!1),s=G(0),l=[],u=mi(MZ(e)),c=G([]),d=G({}),f=G({}),h=D7e(()=>{f.value=c.value.reduce((fe,pe)=>(fe[ty(Le(pe.path))]=pe,fe),{})});function p(fe,pe){const De=J(fe);if(!De){typeof fe=="string"&&(d.value[ty(fe)]=$C(pe));return}if(typeof fe=="string"){const Ge=ty(fe);d.value[Ge]&&delete d.value[Ge]}De.errors=$C(pe),De.valid=!De.errors.length}function g(fe){Lo(fe).forEach(pe=>{p(pe,fe[pe])})}e?.initialErrors&&g(e.initialErrors);const v=W(()=>{const fe=c.value.reduce((pe,De)=>(De.errors.length&&(pe[Le(De.path)]=De.errors),pe),{});return Object.assign(Object.assign({},d.value),fe)}),b=W(()=>Lo(v.value).reduce((fe,pe)=>{const De=v.value[pe];return De?.length&&(fe[pe]=De[0]),fe},{})),x=W(()=>c.value.reduce((fe,pe)=>(fe[Le(pe.path)]={name:Le(pe.path)||"",label:pe.label||""},fe),{})),_=W(()=>c.value.reduce((fe,pe)=>{var De;return fe[Le(pe.path)]=(De=pe.bails)!==null&&De!==void 0?De:!0,fe},{})),w=Object.assign({},e?.initialErrors||{}),C=(t=e?.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:T,originalInitialValues:k,setInitialValues:A}=o9e(c,u,e),P=a9e(c,u,k,b),D=W(()=>c.value.reduce((fe,pe)=>{const De=Hr(u,Le(pe.path));return Ji(fe,Le(pe.path),De),fe},{})),$=e?.validationSchema;function O(fe,pe){var De,Ge;const ut=W(()=>Hr(T.value,Le(fe))),it=f.value[Le(fe)],mt=pe?.type==="checkbox"||pe?.type==="radio";if(it&&mt){it.multiple=!0;const xn=i++;return Array.isArray(it.id)?it.id.push(xn):it.id=[it.id,xn],it.fieldsCount++,it.__flags.pendingUnmount[xn]=!1,it}const Be=W(()=>Hr(u,Le(fe))),Ze=Le(fe),wt=Z.findIndex(xn=>xn===Ze);wt!==-1&&Z.splice(wt,1);const yt=W(()=>{var xn,jn,Yr,ts;const Ma=Le($);if(nl(Ma))return(jn=(xn=Ma.describe)===null||xn===void 0?void 0:xn.call(Ma,Le(fe)).required)!==null&&jn!==void 0?jn:!1;const Hs=Le(pe?.schema);return nl(Hs)&&(ts=(Yr=Hs.describe)===null||Yr===void 0?void 0:Yr.call(Hs).required)!==null&&ts!==void 0?ts:!1}),jt=i++,zt=mi({id:jt,path:fe,touched:!1,pending:!1,valid:!0,validated:!!(!((De=w[Ze])===null||De===void 0)&&De.length),required:yt,initialValue:ut,errors:Bt([]),bails:(Ge=pe?.bails)!==null&&Ge!==void 0?Ge:!1,label:pe?.label,type:pe?.type||"default",value:Be,multiple:!1,__flags:{pendingUnmount:{[jt]:!1},pendingReset:!1},fieldsCount:1,validate:pe?.validate,dirty:W(()=>!Ui(m(Be),m(ut)))});return c.value.push(zt),f.value[Ze]=zt,h(),b.value[Ze]&&!w[Ze]&&At(()=>{oe(Ze,{mode:"silent"})}),$t(fe)&&Je(fe,xn=>{h();const jn=Sn(Be.value);f.value[xn]=zt,At(()=>{Ji(u,xn,jn)})}),zt}const z=wB(Se,5),j=wB(Se,5),B=IC(async fe=>await(fe==="silent"?z():j()),(fe,[pe])=>{const De=Lo(Ve.errorBag.value),ut=[...new Set([...Lo(fe.results),...c.value.map(it=>it.path),...De])].sort().reduce((it,mt)=>{var Be;const Ze=mt,wt=J(Ze)||K(Ze),yt=((Be=fe.results[Ze])===null||Be===void 0?void 0:Be.errors)||[],jt=Le(wt?.path)||Ze,zt=s9e({errors:yt,valid:!yt.length},it.results[jt]);return it.results[jt]=zt,zt.valid||(it.errors[jt]=zt.errors[0]),wt&&d.value[jt]&&delete d.value[jt],wt?(wt.valid=zt.valid,pe==="silent"||pe==="validated-only"&&!wt.validated||p(wt,zt.errors),it):(p(jt,yt),it)},{valid:fe.valid,results:{},errors:{},source:fe.source});return fe.values&&(ut.values=fe.values,ut.source=fe.source),Lo(ut.results).forEach(it=>{var mt;const Be=J(it);Be&&pe!=="silent"&&(pe==="validated-only"&&!Be.validated||p(Be,(mt=ut.results[it])===null||mt===void 0?void 0:mt.errors))}),ut});function R(fe){c.value.forEach(fe)}function J(fe){const pe=typeof fe=="string"?ty(fe):fe;return typeof pe=="string"?f.value[pe]:pe}function K(fe){return c.value.filter(De=>fe.startsWith(Le(De.path))).reduce((De,Ge)=>De?Ge.path.length>De.path.length?Ge:De:Ge,void 0)}let Z=[],ne;function se(fe){return Z.push(fe),ne||(ne=At(()=>{[...Z].sort().reverse().forEach(De=>{bB(u,De)}),Z=[],ne=null})),ne}function ce(fe){return function(De,Ge){return function(it){return it instanceof Event&&(it.preventDefault(),it.stopPropagation()),R(mt=>mt.touched=!0),a.value=!0,s.value++,ee().then(mt=>{const Be=Sn(u);if(mt.valid&&typeof De=="function"){const Ze=Sn(D.value);
7let wt=fe?Ze:Be;return mt.values&&(wt=mt.source==="schema"?mt.values:Object.assign({},wt,mt.values)),De(wt,{evt:it,controlledValues:Ze,setErrors:g,setFieldError:p,setTouched:Me,setFieldTouched:Fe,setValues:Pe,setFieldValue:nt,resetForm:X,resetField:ve})}!mt.valid&&typeof Ge=="function"&&Ge({values:Be,evt:it,errors:mt.errors,results:mt.results})}).then(mt=>(a.value=!1,mt),mt=>{throw a.value=!1,mt})}}}const Ue=ce(!1);Ue.withControlled=ce(!0);function $e(fe,pe){const De=c.value.findIndex(ut=>ut.path===fe&&(Array.isArray(ut.id)?ut.id.includes(pe):ut.id===pe)),Ge=c.value[De];if(!(De===-1||!Ge)){if(At(()=>{oe(fe,{mode:"silent",warn:!1})}),Ge.multiple&&Ge.fieldsCount&&Ge.fieldsCount--,Array.isArray(Ge.id)){const ut=Ge.id.indexOf(pe);ut>=0&&Ge.id.splice(ut,1),delete Ge.__flags.pendingUnmount[pe]}(!Ge.multiple||Ge.fieldsCount<=0)&&(c.value.splice(De,1),_e(fe),h(),delete f.value[fe])}}function ke(fe){Lo(f.value).forEach(pe=>{pe.startsWith(fe)&&delete f.value[pe]}),c.value=c.value.filter(pe=>!pe.path.startsWith(fe)),At(()=>{h()})}const Ve={name:r,formId:n,values:u,controlledValues:D,errorBag:v,errors:b,schema:$,submitCount:s,meta:P,isSubmitting:a,isValidating:o,fieldArrays:l,keepValuesOnUnmount:C,validateSchema:m($)?B:void 0,validate:ee,setFieldError:p,validateField:oe,setFieldValue:nt,setValues:Pe,setErrors:g,setFieldTouched:Fe,setTouched:Me,resetForm:X,resetField:ve,handleSubmit:Ue,useFieldModel:ze,defineInputBinds:qe,defineComponentBinds:lt,defineField:Te,stageInitialValue:ge,unsetInitialValue:_e,setFieldInitialValue:Oe,createPathState:O,getPathState:J,unsetPathValue:se,removePathState:$e,initialValues:T,getAllPathStates:()=>c.value,destroyPath:ke,isFieldTouched:re,isFieldDirty:le,isFieldValid:ye};function nt(fe,pe,De=!0){const Ge=Sn(pe),ut=typeof fe=="string"?fe:fe.path;J(ut)||O(ut),Ji(u,ut,Ge),De&&oe(ut)}function xe(fe,pe=!0){Lo(u).forEach(De=>{delete u[De]}),Lo(fe).forEach(De=>{nt(De,fe[De],!1)}),pe&&ee()}function Pe(fe,pe=!0){y2(u,fe),l.forEach(De=>De&&De.reset()),pe&&ee()}function je(fe,pe){const De=J(Le(fe))||O(fe);return W({get(){return De.value},set(Ge){var ut;const it=Le(fe);nt(it,Ge,(ut=Le(pe))!==null&&ut!==void 0?ut:!1)}})}function Fe(fe,pe){const De=J(fe);De&&(De.touched=pe)}function re(fe){const pe=J(fe);return pe?pe.touched:c.value.filter(De=>De.path.startsWith(fe)).some(De=>De.touched)}function le(fe){const pe=J(fe);return pe?pe.dirty:c.value.filter(De=>De.path.startsWith(fe)).some(De=>De.dirty)}function ye(fe){const pe=J(fe);return pe?pe.valid:c.value.filter(De=>De.path.startsWith(fe)).every(De=>De.valid)}function Me(fe){if(typeof fe=="boolean"){R(pe=>{pe.touched=fe});return}Lo(fe).forEach(pe=>{Fe(pe,!!fe[pe])})}function ve(fe,pe){var De;const Ge=pe&&"value"in pe?pe.value:Hr(T.value,fe),ut=J(fe);ut&&(ut.__flags.pendingReset=!0),Oe(fe,Sn(Ge),!0),nt(fe,Ge,!1),Fe(fe,(De=pe?.touched)!==null&&De!==void 0?De:!1),p(fe,pe?.errors||[]),At(()=>{ut&&(ut.__flags.pendingReset=!1)})}function X(fe,pe){let De=Sn(fe?.values?fe.values:k.value);De=pe?.force?De:y2(k.value,De),De=nl($)&&Vi($.cast)?$.cast(De):De,A(De,{force:pe?.force}),R(Ge=>{var ut;Ge.__flags.pendingReset=!0,Ge.validated=!1,Ge.touched=((ut=fe?.touched)===null||ut===void 0?void 0:ut[Le(Ge.path)])||!1,nt(Le(Ge.path),Hr(De,Le(Ge.path)),!1),p(Le(Ge.path),void 0)}),pe?.force?xe(De,!1):Pe(De,!1),g(fe?.errors||{}),s.value=fe?.submitCount||0,At(()=>{ee({mode:"silent"}),R(Ge=>{Ge.__flags.pendingReset=!1})})}async function ee(fe){const pe=fe?.mode||"force";if(pe==="force"&&R(mt=>mt.validated=!0),Ve.validateSchema)return Ve.validateSchema(pe);o.value=!0;const De=await Promise.all(c.value.map(mt=>mt.validate?mt.validate(fe).then(Be=>({key:Le(mt.path),valid:Be.valid,errors:Be.errors,value:Be.value})):Promise.resolve({key:Le(mt.path),valid:!0,errors:[],value:void 0})));o.value=!1;const Ge={},ut={},it={};for(const mt of De)Ge[mt.key]={valid:mt.valid,errors:mt.errors},mt.value&&Ji(it,mt.key,mt.value),mt.errors.length&&(ut[mt.key]=mt.errors[0]);return{valid:De.every(mt=>mt.valid),results:Ge,errors:ut,values:it,source:"fields"}}async function oe(fe,pe){var De;const Ge=J(fe);if(Ge&&pe?.mode!=="silent"&&(Ge.validated=!0),$){const{results:ut}=await B(pe?.mode||"validated-only");return ut[fe]||{errors:[],valid:!0}}return Ge?.validate?Ge.validate(pe):(!Ge&&(De=pe?.warn),Promise.resolve({errors:[],valid:!0}))}function _e(fe){bB(T.value,fe)}function ge(fe,pe,De=!1){Oe(fe,pe),Ji(u,fe,pe),De&&!e?.initialValues&&Ji(k.value,fe,Sn(pe))}function Oe(fe,pe,De=!1){Ji(T.value,fe,Sn(pe)),De&&Ji(k.value,fe,Sn(pe))}async function Se(){const fe=m($);if(!fe)return{valid:!0,results:{},errors:{},source:"none"};o.value=!0;const pe=U4(fe)||nl(fe)?await q7e(fe,u):await W7e(fe,u,{names:x.value,bailsMap:_.value});return o.value=!1,pe}const he=Ue((fe,{evt:pe})=>{xZ(pe)&&pe.target.submit()});Ot(()=>{if(e?.initialErrors&&g(e.initialErrors),e?.initialTouched&&Me(e.initialTouched),e?.validateOnMount){ee();return}Ve.validateSchema&&Ve.validateSchema("silent")}),$t($)&&Je($,()=>{var fe;(fe=Ve.validateSchema)===null||fe===void 0||fe.call(Ve,"validated-only")}),Si(p1,Ve);function Te(fe,pe){const De=Vi(pe)?void 0:pe?.label,Ge=J(Le(fe))||O(fe,{label:De}),ut=()=>Vi(pe)?pe(v3(Ge,_3)):pe||{};function it(){var yt;Ge.touched=!0,((yt=ut().validateOnBlur)!==null&&yt!==void 0?yt:uh().validateOnBlur)&&oe(Le(Ge.path))}function mt(){var yt;((yt=ut().validateOnInput)!==null&&yt!==void 0?yt:uh().validateOnInput)&&At(()=>{oe(Le(Ge.path))})}function Be(){var yt;((yt=ut().validateOnChange)!==null&&yt!==void 0?yt:uh().validateOnChange)&&At(()=>{oe(Le(Ge.path))})}const Ze=W(()=>{const yt={onChange:Be,onInput:mt,onBlur:it};return Vi(pe)?Object.assign(Object.assign({},yt),pe(v3(Ge,_3)).props||{}):pe?.props?Object.assign(Object.assign({},yt),pe.props(v3(Ge,_3))):yt});return[je(fe,()=>{var yt,jt,zt;return(zt=(yt=ut().validateOnModelUpdate)!==null&&yt!==void 0?yt:(jt=uh())===null||jt===void 0?void 0:jt.validateOnModelUpdate)!==null&&zt!==void 0?zt:!0}),Ze]}function ze(fe){return Array.isArray(fe)?fe.map(pe=>je(pe,!0)):je(fe)}function qe(fe,pe){const[De,Ge]=Te(fe,pe);function ut(){Ge.value.onBlur()}function it(Be){const Ze=H4(Be);nt(Le(fe),Ze,!1),Ge.value.onInput()}function mt(Be){const Ze=H4(Be);nt(Le(fe),Ze,!1),Ge.value.onChange()}return W(()=>Object.assign(Object.assign({},Ge.value),{onBlur:ut,onInput:it,onChange:mt,value:De.value}))}function lt(fe,pe){const[De,Ge]=Te(fe,pe),ut=J(Le(fe));function it(mt){De.value=mt}return W(()=>{const mt=Vi(pe)?pe(v3(ut,_3)):pe||{};return Object.assign({[mt.model||"modelValue"]:De.value,[`onUpdate:${mt.model||"modelValue"}`]:it},Ge.value)})}const bt=Object.assign(Object.assign({},Ve),{values:jh(u),handleReset:()=>X(),submitForm:he});return Si(x7e,bt),bt}function a9e(e,t,n,r){const i={touched:"some",pending:"some",valid:"every"},a=W(()=>!Ui(t,m(n)));function o(){const l=e.value;return Lo(i).reduce((u,c)=>{const d=i[c];return u[c]=l[d](f=>f[c]),u},{})}const s=mi(o());return ii(()=>{const l=o();
7s.touched=l.touched,s.valid=l.valid,s.pending=l.pending}),W(()=>Object.assign(Object.assign({initialValues:m(n)},s),{valid:s.valid&&!Lo(r.value).length,dirty:a.value}))}function o9e(e,t,n){const r=MZ(n),i=G(r),a=G(Sn(r));function o(s,l){l?.force?(i.value=Sn(s),a.value=Sn(s)):(i.value=y2(Sn(i.value)||{},Sn(s)),a.value=y2(Sn(a.value)||{},Sn(s))),l?.updateFields&&e.value.forEach(u=>{if(u.touched)return;const d=Hr(i.value,Le(u.path));Ji(t,Le(u.path),Sn(d))})}return{initialValues:i,originalInitialValues:a,setInitialValues:o}}function s9e(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const l9e=Q({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,t){const n=Ts(e,"validationSchema"),r=Ts(e,"keepValues"),{errors:i,errorBag:a,values:o,meta:s,isSubmitting:l,isValidating:u,submitCount:c,controlledValues:d,validate:f,validateField:h,handleReset:p,resetForm:g,handleSubmit:v,setErrors:b,setFieldError:x,setFieldValue:_,setValues:w,setFieldTouched:C,setTouched:T,resetField:k}=m1({validationSchema:n.value?n:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),A=v((R,{evt:J})=>{xZ(J)&&J.target.submit()},e.onInvalidSubmit),P=e.onSubmit?v(e.onSubmit,e.onInvalidSubmit):A;function D(R){zM(R)&&R.preventDefault(),p(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function $(R,J){return v(typeof R=="function"&&!J?R:J,e.onInvalidSubmit)(R)}function O(){return Sn(o)}function z(){return Sn(s.value)}function j(){return Sn(i.value)}function B(){return{meta:s.value,errors:i.value,errorBag:a.value,values:o,isSubmitting:l.value,isValidating:u.value,submitCount:c.value,controlledValues:d.value,validate:f,validateField:h,handleSubmit:$,handleReset:p,submitForm:A,setErrors:b,setFieldError:x,setFieldValue:_,setValues:w,setFieldTouched:C,setTouched:T,resetForm:g,resetField:k,getValues:O,getMeta:z,getErrors:j}}return t.expose({setFieldError:x,setErrors:b,setFieldValue:_,setValues:w,setFieldTouched:C,setTouched:T,resetForm:g,validate:f,validateField:h,resetField:k,getValues:O,getMeta:z,getErrors:j,values:o,meta:s,errors:i}),function(){const J=e.as==="form"?e.as:e.as?yn(e.as):null,K=VM(J,t,B);return J?Nt(J,Object.assign(Object.assign(Object.assign({},J==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:P,onReset:D}),K):K}}}),u9e=l9e;function AZ(e){const t=o6(p1,void 0),n=G([]),r=()=>{},i={fields:n,remove:r,push:r,swap:r,insert:r,update:r,replace:r,prepend:r,move:r};
7if(!t||!m(e))return i;const a=t.fieldArrays.find(C=>m(C.path)===m(e));if(a)return a;let o=0;function s(){return Hr(t?.values,Le(e),[])||[]}function l(){const C=s();Array.isArray(C)&&(n.value=C.map((T,k)=>c(T,k,n.value)),u())}l();function u(){const C=n.value.length;for(let T=0;T<C;T++){const k=n.value[T];k.isFirst=T===0,k.isLast=T===C-1}}function c(C,T,k){if(k&&!q0(T)&&k[T])return k[T];const A=o++;return{key:A,value:P7e({get(){const D=Hr(t?.values,Le(e),[])||[],$=n.value.findIndex(O=>O.key===A);return $===-1?C:D[$]},set(D){const $=n.value.findIndex(O=>O.key===A);$!==-1&&b($,D)}}),isFirst:!1,isLast:!1}}function d(){u(),t?.validate({mode:"silent"})}function f(C){const T=Le(e),k=Hr(t?.values,T);if(!k||!Array.isArray(k))return;const A=[...k];A.splice(C,1);const P=T+`[${C}]`;t.destroyPath(P),t.unsetInitialValue(P),Ji(t.values,T,A),n.value.splice(C,1),d()}function h(C){const T=Sn(C),k=Le(e),A=Hr(t?.values,k),P=q0(A)?[]:A;if(!Array.isArray(P))return;const D=[...P];D.push(T),t.stageInitialValue(k+`[${D.length-1}]`,T),Ji(t.values,k,D),n.value.push(c(T)),d()}function p(C,T){const k=Le(e),A=Hr(t?.values,k);if(!Array.isArray(A)||!(C in A)||!(T in A))return;const P=[...A],D=[...n.value],$=P[C];P[C]=P[T],P[T]=$;const O=D[C];D[C]=D[T],D[T]=O,Ji(t.values,k,P),n.value=D,u()}function g(C,T){const k=Sn(T),A=Le(e),P=Hr(t?.values,A);if(!Array.isArray(P)||P.length<C)return;const D=[...P],$=[...n.value];D.splice(C,0,k),$.splice(C,0,c(k)),Ji(t.values,A,D),n.value=$,d()}function v(C){const T=Le(e);t.stageInitialValue(T,C),Ji(t.values,T,C),l(),d()}function b(C,T){const k=Le(e),A=Hr(t?.values,k);!Array.isArray(A)||A.length-1<C||(Ji(t.values,`${k}[${C}]`,T),t?.validate({mode:"validated-only"}))}function x(C){const T=Sn(C),k=Le(e),A=Hr(t?.values,k),P=q0(A)?[]:A;if(!Array.isArray(P))return;const D=[T,...P];Ji(t.values,k,D),t.stageInitialValue(k+"[0]",T),n.value.unshift(c(T)),d()}function _(C,T){const k=Le(e),A=Hr(t?.values,k),P=q0(A)?[]:[...A];if(!Array.isArray(A)||!(C in A)||!(T in A))return;const D=[...n.value],$=D[C];D.splice(C,1),D.splice(T,0,$);const O=P[C];P.splice(C,1),P.splice(T,0,O),Ji(t.values,k,P),n.value=D,d()}const w={fields:n,remove:f,push:h,swap:p,insert:g,update:b,replace:v,prepend:x,move:_};return t.fieldArrays.push(Object.assign({path:e,reset:l},w)),Wa(()=>{const C=t.fieldArrays.findIndex(T=>Le(T.path)===Le(e));C>=0&&t.fieldArrays.splice(C,1)}),Je(s,C=>{const T=n.value.map(k=>k.value);Ui(C,T)||l()}),w}const c9e=Q({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const n=cr(p1,void 0),r=W(()=>n?.errors.value[e.name]);function i(){return{message:r.value}}return()=>{if(!r.value)return;const a=e.as?yn(e.as):e.as,o=VM(a,t,i),s=Object.assign({role:"alert"},t.attrs);return!a&&(Array.isArray(o)||!o)&&o?.length?o:(Array.isArray(o)||!o)&&!o?.length?Nt(a||"span",s,r.value):Nt(a,s,o)}}}),b3=c9e;function d9e(){const e=o6(p1);return W(()=>{var t;return(t=e?.meta.value.touched)!==null&&t!==void 0?t:!1})}const f9e="fr",h9e={_default:"Le champ {field} est invalide",alpha:"Le champ {field} ne peut contenir que des lettres",alpha_num:"Le champ {field} ne peut contenir que des caractères alpha-numériques",alpha_dash:"Le champ {field} ne peut contenir que des caractères alpha-numériques, tirets ou soulignés",alpha_spaces:"Le champ {field} ne peut contenir que des lettres ou des espaces",between:"Le champ {field} doit être compris entre 0:{min} et 1:{max}",confirmed:"Le champ {field} ne correspond pas",digits:"Le champ {field} doit être un nombre entier de 0:{length} chiffres",dimensions:"Le champ {field} doit avoir une taille de 0:{width} pixels par 1:{height} pixels",email:"Veuillez saisir une adresse e-mail valide. Par exemple : [email protected]",not_one_of:"Le champ {field} doit être une valeur valide",ext:"Le champ {field} doit être un fichier valide",image:"Le champ {field} doit être une image",integer:"Le champ {field} doit être un entier",length:"Le champ {field} doit contenir 0:{length} caractères",max_value:"Le champ {field} doit avoir une valeur de 0:{max} ou moins",max:"Le champ {field} ne peut pas contenir plus de 0:{length} caractères",mimes:"Le champ {field} doit avoir un type MIME valide",min_value:"Le champ {field} doit avoir une valeur de 0:{min} ou plus",min:"Le champ {field} doit contenir au minimum 0:{length} caractères",numeric:"Le champ {field} ne peut contenir que des chiffres",one_of:"Le champ {field} doit être une valeur valide",regex:"Le champ {field} est invalide",required:"Le champ {field} est obligatoire",required_if:"Le champ {field} est obligatoire lorsque {target} possède cette valeur",size:"Le champ {field} doit avoir un poids inférieur à 0:{size}KB"},p9e={code:f9e,messages:h9e},m9e="en",g9e={_default:"The {field}
7 is not valid",alpha:"The {field} field may only contain alphabetic characters",alpha_num:"The {field} field may only contain alpha-numeric characters",alpha_dash:"The {field} field may contain alpha-numeric characters as well as dashes and underscores",alpha_spaces:"The {field} field may only contain alphabetic characters as well as spaces",between:"The {field} field must be between 0:{min} and 1:{max}",confirmed:"The {field} field confirmation does not match",digits:"The {field} field must be numeric and exactly contain 0:{length} digits",dimensions:"The {field} field must be 0:{width} pixels by 1:{height} pixels",email:"The {field} field must be a valid email",not_one_of:"The {field} field is not a valid value",ext:"The {field} field is not a valid file",image:"The {field} field must be an image",integer:"The {field} field must be an integer",length:"The {field} field must be 0:{length} long",max_value:"The {field} field must be 0:{max} or less",max:"The {field} field may not be greater than 0:{length} characters",mimes:"The {field} field must have a valid file type",min_value:"The {field} field must be 0:{min} or more",min:"The {field} field must be at least 0:{length} characters",numeric:"The {field} field may only contain numeric characters",one_of:"The {field} field is not a valid value",regex:"The {field} field format is invalid",required_if:"The {field} field is required",required:"The {field} field is required",size:"The {field} field size must be less than 0:{size}KB",url:"The {field} field is not a valid URL"},y9e={code:m9e,messages:g9e},v9e="de",_9e={_default:"{field} ist ungültig",alpha:"{field} darf nur alphabetische Zeichen enthalten",alpha_dash:"{field} darf alphanumerische Zeichen sowie Striche und Unterstriche enthalten",alpha_num:"{field} darf nur alphanumerische Zeichen enthalten",alpha_spaces:"{field} darf nur alphanumerische Zeichen und Leerzeichen enthalten",between:"{field} muss zwischen 0:{min} und 1:{max} liegen",confirmed:"Die Bestätigung von {field} stimmt nicht überein",digits:"{field} muss numerisch sein und exakt 0:{length} Ziffern enthalten",dimensions:"{field} muss 0:{width} x 1:{height} Bildpunkte groà sein",email:"{field} muss eine gültige E-Mail-Adresse sein",not_one_of:"{field} muss ein gültiger Wert sein",ext:"{field} muss eine gültige Datei sein",image:"{field} muss eine Grafik sein",one_of:"{field} muss ein gültiger Wert sein",integer:"{field} muss eine ganze Zahl sein",length:"Die Länge von {field} muss 0:{length} sein",max:"{field} darf nicht länger als 0:{length} Zeichen sein",max_value:"{field} darf maximal 0:{max} sein",mimes:"{field} muss einen gültigen Dateityp haben",min:"{field} muss mindestens 0:{length} Zeichen lang sein",min_value:"{field} muss mindestens 0:{min} sein",numeric:"{field} darf nur numerische Zeichen enthalten",regex:"Das Format von {field} ist ungültig",required:"{field} ist ein Pflichtfeld",required_if:"{field} ist ein Pflichtfeld",size:"{field} muss kleiner als 0:{size}KB sein",url:"{field} ist keine gültige URL"},b9e={code:v9e,messages:_9e},x9e="es",w9e={alpha:"El campo {field} solo debe contener letras",alpha_dash:"El campo {field} solo debe contener letras, números y guiones",alpha_num:"El campo {field} solo debe contener letras y números",alpha_spaces:"El campo {field} solo debe contener letras y espacios",between:"El campo {field} debe estar entre 0:{min} y 1:{max}",confirmed:"El campo {field} no coincide",digits:"El campo {field} debe ser numérico y contener exactamente 0:{length} dÃgitos",dimensions:"El campo {field} debe ser de 0:{width} pÃxeles por 1:{height} pÃxeles",email:"El campo {field} debe ser un correo electrónico válido",not_one_of:"El campo {field} debe ser un valor válido",ext:"El campo {field} debe ser un archivo válido",image:"El campo {field} debe ser una imagen",one_of:"El campo {field} debe ser un valor válido",integer:"El campo {field} debe ser un entero",length:"El largo del campo {field} debe ser 0:{length}",max:"El campo {field} no debe ser mayor a 0:{length} caracteres",max_value:"El campo {field} debe de ser 0:{max} o menor",mimes:"El campo {field} debe ser un tipo de archivo válido",min:"El campo {field} debe tener al menos 0:{length} caracteres",min_value:"El campo {field} debe ser 0:{min} o superior",numeric:"El campo {field} debe contener solo caracteres numéricos",regex:"El formato del campo {field} no es válido",required:"El campo {field} es obligatorio",required_if:"El campo {field} es obligatorio",size:"El campo {field} debe ser menor a 0:{size}KB"},S9e={code:x9e,messages:w9e},C9e=e=>{if(z7e({generateMessage:p7e({fr:p9e,en:y9e,de:b9e,es:S9e})}),e.i18n){const t=e.i18n.filter(n=>n.current)[0]||e.i18n.filter(n=>n.active)[0];m7e(t.twoLetterIsoCode)}},q4=(e,t)=>{const n=(o,s,l,u)=>
7{Object.keys(o).forEach(c=>{mo({[s]:[{id:c,[l]:c,[u]:o[c]}]})})};t=_t(t);const r=t?.title||t?.meta?.title,i=t?.teaser||t?.description||t?.meta?.subtitle||t?.meta?.description,a=t?.pictureShow?.[0]?.publicUrl||t?.pictureBannerEditorial?.[0]?.publicUrl;n({description:i,"og:type":i6(t.type)?"website":"article","og:site_name":e?.siteBuilderInfos?.title||e?.title,"og:title":r,"og:description":i,"og:image":a,"og:locale":t.i18n?.filter(o=>o.active)?.[0]?.locale,"twitter:title":r,"twitter:description":i},"meta","property","content"),n({canonical:l1().origin},"link","rel","href")},T9e=hr(e=>{const{pageData:t,initialData:n}=Wo(),r=Yt();r.initialData=n.value,r.pageData=t.value,e.hook("t3:initialData",i=>{r.initialData=i,u7e().setFromStore(),r.userData===null&&Zx().getUser()}),e.hook("t3:page",i=>{r.pageData=i,C9e(r.pageData),r.pageData?.appearance?.backendLayout!=="detail"&&q4(n.value,r.pageData)})}),k9e=hr({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),E9e=[e2e,n2e,s2e,Sve,Mve,Ave,Pve,Dve,Ive,$ve,a_e,o_e,p_e,__e,b_e,V_e,O4e,u5e,c5e,p5e,uxe,fxe,o7e,s7e,l7e,T9e,k9e];function M9e(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function A9e(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:i=400}=e,a=e.estimatedProgress||M9e,o=vt(),s=Bt(0),l=Bt(!1),u=Bt(!1);let c=!1,d,f,h,p;const g=(k={})=>{_(),u.value=!1,v(0,k)};function v(k=0,A={}){if(o.isHydrating)return;if(k>=100)return x({force:A.force});_(),w(),s.value=k<0?0:k;const P=A.force?0:n;P?f=setTimeout(()=>{l.value=!0,C()},P):(l.value=!0,C())}function b(){h=setTimeout(()=>{l.value=!1,p=setTimeout(()=>{s.value=0},i)},r)}function x(k={}){s.value=100,c=!0,w(),_(),k.error&&(u.value=!0),k.force?(s.value=0,l.value=!1):b()}function _(){clearTimeout(h),clearTimeout(p)}function w(){clearTimeout(f),cancelAnimationFrame(d)}function C(){c=!1;let k;function A(P){if(c)return;k??=P;const D=P-k;s.value=Math.max(0,Math.min(100,a(t,D))),d=requestAnimationFrame(A)}d=requestAnimationFrame(A)}let T=()=>{};{const k=o.hook("page:loading:start",()=>{g()}),A=o.hook("page:loading:end",()=>{x()}),P=o.hook("vue:error",()=>x({error:!0}));T=()=>{P(),k(),A(),w(),_()}}return{_cleanup:T,progress:jl(s),isLoading:jl(l),error:jl(u),start:g,set:v,finish:x,clear:w}}function P9e(e={}){const t=vt(),n=t._loadingIndicator||=A9e(e);return qa()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,vo(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const D9e=Q({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:i,error:a,start:o,finish:s,clear:l}=P9e({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:i,error:a,start:o,finish:s,clear:l}),()=>Nt("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:i.value?1:0,background:a.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),PZ=(e="RouteProvider")=>Q({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,i={};for(const a in t.route)Object.defineProperty(i,a,{get:()=>n===t.renderKey?t.route[a]:r[a],enumerable:!0});return Si(qh,Wl(i)),()=>t.vnode?Nt(t.vnode,{ref:t.vnodeRef}):t.vnode}}),I9e=PZ(),kB=new WeakMap,$9e=Q({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const i=vt(),a=G(),o=cr(qh,null),s=new Set;let l;r({pageRef:a});const u=cr(WS,null);let c;const d=i.deferHydration();let f=!1,h=!1,p,g=0;if(i.isHydrating){const b=i.hooks.hookOnce("app:error",d),x=ai().beforeEach(()=>{b(),x()})}e.pageKey&&Je(()=>e.pageKey,(b,x)=>{b!==x&&i.callHook("page:loading:start")});let v=!1;{const b=ai().beforeResolve(()=>{v=!1});Wa(()=>{b(),d()})}return()=>Nt(SW,{name:e.name,route:e.route,...t},{default:O9e(b=>{const x=L9e(o,b.route,b.Component),_=o&&o.matched.length===b.route.matched.length;if(!b.Component){if(c&&!_&&!P7(c))return c;d();return}if(c&&u&&!P7(c)&&!u.isCurrent(b.route))return c;
7if(x&&o&&(!u||u?.isCurrent(o)))return(_||c)&&!P7(c)?c:null;const w=c2(b,e.pageKey),C=R9e(o,b.route,b.Component);!i.isHydrating&&l===w&&!C&&At(()=>{v||(v=!0,i.callHook("page:loading:end"))}),f&&l!==w&&h&&g++,l=w;const T=!!(e.transition??b.route.meta.pageTransition??rR),k=T&&TW([e.transition,b.route.meta.pageTransition,rR,{onAfterLeave(){i["~transitionFinish"]?.(),delete i["~transitionFinish"],delete i["~transitionPromise"],i.callHook("page:transition:finish",b.Component)}}]),A=e.keepalive??b.route.meta.keepalive??o1e,P=b.Component.type,D=P.name||P.__name;b.route.meta.keepalive&&D&&s.add(D);let $;if(s.size>0&&e.keepalive==null&&(!A||typeof A=="object"&&A&&A.include)){const z=typeof A=="object"&&A?{...A}:{},j=z.include?Array.isArray(z.include)?z.include:[z.include]:[];$={...z,include:Array.from(new Set([...j,...s]))}}else $=A;return c=CW(T&&k,f2e($,Nt(XE,{key:g,suspensible:!0,onPending:()=>{f=!0,T&&!i["~transitionPromise"]&&(i["~transitionPromise"]=new Promise(z=>{i["~transitionFinish"]=z})),p=i.callHook("page:start",b.Component)}
7,onResolve:async()=>{f=!1,h=!0,i.isHydrating&&i["~restoreDeferredRoute"]?.();try{await At(),i._route.sync?.(),await p,await i.callHook("page:finish",b.Component),!v&&!C&&(v=!0,await i.callHook("page:loading:end"))}finally{d()}}},{default:()=>{const z={key:w||void 0,vnode:n.default?B9e(n.default,b):b.Component,route:b.route,renderKey:w||void 0,trackRootNodes:T,vnodeRef:a};if(!$)return Nt(I9e,z);const j=P;let B=kB.get(j);return B||(B=PZ(D),kB.set(j,B)),Nt(B,z)}}))).default(),c})})}});function L9e(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>o.components?.default===n?.type);if(r===-1)return!1;const i=t.matched.slice(0,r).filter(o=>o.components?.default);if(!i.length)return!1;const a=e.matched.filter(o=>o.components?.default);return i.some((o,s)=>o.components?.default!==a[s]?.components?.default)||n&&c2({route:t,Component:n})!==c2({route:e,Component:n})}function R9e(e,t,n){return e?t.matched.findIndex(i=>i.components?.default===n?.type)<t.matched.length-1:!1}function O9e(e){const t=(n=>{const r=e(n);return Array.isArray(r)?r:r==null||!qd(r)?[ae()]:[r]});return t._n=!0,t}function B9e(e,t){const n=e(t);return n.length===1?Nt(n[0]):Nt(Ae,void 0,n)}function P7(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}const F9e=Q({__name:"app",setup(e){UE(n=>{console.error("Silent Error",n)});const t=Yt();return(n,r)=>{const i=D9e,a=$9e;return E(),U(Ae,null,[H(i,{color:m(t).colors?.cim_primary_color?.hexa},null,8,["color"]),H(a)],64)}}}),z9e={key:0},N9e={key:1},s6=Q({__name:"CimTitle",props:{header:{default:""},headerLayout:{default:2},home:{type:Boolean,default:!1},big:{type:Boolean,default:!1},picto:{type:Boolean,default:!1}},setup(e){const t=e,n=Va(),r=W(()=>Math.max(+t.headerLayout,2)),i=W(()=>t.header?.split(n.titleDelimiter||"|")||[t.header]);return(a,o)=>e.header?(E(),V(yn(`h${m(r)}`),{key:0,class:L([e.home?"bloc_home_title":null,e.big?"big":null,e.picto?"picto":null])},{default:N(()=>[Y("span",null,de(m(i)[0]),1),m(i).length>1?(E(),U("span",z9e,de(m(i)[1]),1)):ae("",!0),m(i).length>2?(E(),U("span",N9e,de(m(i)[2]),1)):ae("",!0)]),_:1},8,["class"])):ae("",!0)}});function W4(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var V9e=e=>typeof e=="object"&&e!==null;function l6(e){return Object.fromEntries(Object.entries(e??{}).filter(([t,n])=>n!==void 0))}var j9e=e=>e==="base";function U9e(e){return e.slice().filter(t=>!j9e(t))}function EB(e){return String.fromCharCode(e+(e>25?39:97))}function H9e(e){let t="",n;for(n=Math.abs(e);n>52;n=n/52|0)t=EB(n%52)+t;return EB(n%52)+t}function q9e(e,t){let n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return e}function W9e(e){return H9e(q9e(5381,e)>>>0)}var DZ=/\s*!(important)?/i;function G9e(e){return typeof e=="string"?DZ.test(e):!1}function Z9e(e){return typeof e=="string"?e.replace(DZ,"").trim():e}function IZ(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var dv=e=>{const t=new Map;return(...r)=>{const i=JSON.stringify(r);if(t.has(i))return t.get(i);const a=e(...r);return t.set(i,a),a}},K9e=new Set(["__proto__","constructor","prototype"]);function jM(...e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{if(K9e.has(r))return;const i=t[r],a=n[r];W4(i)&&W4(a)?t[r]=jM(i,a):t[r]=a}),t),{})}var Y9e=e=>e!=null;function UM(e,t,n={}){const{stop:r,getKey:i}=n;function a(o,s=[]){if(V9e(o)){const l={};for(const[u,c]of Object.entries(o)){const d=i?.(u,c)??u,f=[...s,d];if(r?.(o,f))return t(o,s);const h=a(c,f);Y9e(h)&&(l[d]=h)}return l}return t(o,s)}return a(e)}function X9e(e,t){return Array.isArray(e)?e.map(n=>t(n)):W4(e)?UM(e,n=>t(n)):t(e)}function J9e(e,t){return e.reduce((n,r,i)=>{const a=t[i];return r!=null&&(n[a]=r),n},{})}function $Z(e,t,n=!0){const{utility:r,conditions:i}=t,{hasShorthand:a,resolveShorthand:o}=r;return UM(e,s=>Array.isArray(s)?J9e(s,i.breakpoints.keys):s,{stop:s=>Array.isArray(s),getKey:n?s=>a?o(s):s:void 0})}var Q9e={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},eSe=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function tSe(e){const{utility:t,hash:n,conditions:r=Q9e}=e,i=o=>[t.prefix,o].filter(Boolean).join("-"),a=(o,s)=>{let l;if(n){const u=[...r.finalize(o),s];l=i(t.toHash(u,W9e))}else l=[...r.finalize(o),i(s)].join(":");return l};return dv(({base:o,...s}={})=>{const l=Object.assign(s,o),u=$Z(l,e),c=new Set;return UM(u,(d,f)=>{if(d==null)return;const h=G9e(d),[p,...g]=r.shift(f),v=U9e(g),b=t.transform(p,Z9e(eSe(d
7)));let x=a(v,b.className);h&&(x=`${x}!`),c.add(x)}),Array.from(c).join(" ")})}function nSe(...e){return e.flat().filter(t=>W4(t)&&Object.keys(l6(t)).length>0)}function rSe(e){function t(i){const a=nSe(...i);return a.length===1?a:a.map(o=>$Z(o,e))}function n(...i){return jM(...t(i))}function r(...i){return Object.assign({},...t(i))}return{mergeCss:dv(n),assignCss:r}}var iSe=/([A-Z])/g,aSe=/^ms-/,oSe=dv(e=>e.startsWith("--")?e:e.replace(iSe,"-$1").replace(aSe,"-ms-").toLowerCase()),sSe=["min","max","clamp","calc"],lSe=new RegExp(`^(${sSe.join("|")})\\(.*\\)`),uSe=e=>typeof e=="string"&&lSe.test(e),cSe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",dSe=`(?:${cSe.split(",").join("|")})`,fSe=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${dSe}$`),hSe=e=>typeof e=="string"&&fSe.test(e),pSe=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),kr={map:X9e,isCssFunction:uSe,isCssVar:pSe,isCssUnit:hSe},Er=(e,t)=>{if(!e?.defaultValues)return t;const n=typeof e.defaultValues=="function"?e.defaultValues(t):e.defaultValues;return Object.assign({},n,l6(t))},mSe=(e={})=>{const t=i=>({className:[e.className,i].filter(Boolean).join("__"),base:e.base?.[i]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?gSe(e.compoundVariants,i):[]}),r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,a]of Object.entries(e.variants??{}))for(const[o,s]of Object.entries(a))r.forEach(([l,u])=>{u.variants[i]??={},u.variants[i][o]=s[l]??{}});return Object.fromEntries(r)},gSe=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function LZ(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=o=>{const s={};for(let l=0;l<o.length;l++){const u=o[l];n[u]&&(Object.defineProperty(s,u,n[u]),delete n[u])}return s},a=o=>i(Array.isArray(o)?o:r.filter(o));return t.map(a).concat(i(r))}var ySe=(...e)=>{const t=e.reduce((n,r)=>(r&&r.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};const vSe="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xxl,xxlOnly,xxlDown,smToMd,smToLg,smToXl,smToXxl,mdToLg,mdToXl,mdToXxl,lgToXl,lgToXxl,xlToXxl,base",RZ=new Set(vSe.split(",")),_Se=/^@|&|&$/;function MB(e){return RZ.has(e)||_Se.test(e)}const bSe=/^_/,xSe=/&|@/;function wSe(e){return e.map(t=>RZ.has(t)?t.replace(bSe,""):xSe.test(t)?`[${IZ(t.trim())}]`:t)}
7function SSe(e){return e.sort((t,n)=>{const r=MB(t),i=MB(n);return r&&!i?1:!r&&i?-1:0})}const CSe="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h
7/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,WebkitTextFillColor:wktf-c,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor",OZ=new Map,BZ=new Map;
7CSe.split(",").forEach(e=>{const[t,n]=e.split(":"),[r,...i]=n.split("/");OZ.set(t,r),i.length&&i.forEach(a=>{BZ.set(a==="1"?r:a,t)})});const AB=e=>BZ.get(e)||e,FZ={conditions:{shift:SSe,finalize:wSe,breakpoints:{keys:["base","sm","md","lg","xl","xxl"]}},utility:{transform:(e,t)=>{const n=AB(e);return{className:`${OZ.get(n)||oSe(n)}_${IZ(t)}`}},hasShorthand:!0,toHash:(e,t)=>t(e.join(":")),resolveShorthand:AB}},TSe=tSe(FZ),F=(...e)=>TSe(ch(...e));F.raw=(...e)=>ch(...e);const{mergeCss:ch}=rSe(FZ);function kSe(){let e="",t=0,n;for(;t<arguments.length;)(n=arguments[t++])&&typeof n=="string"&&(e&&(e+=" "),e+=n);return e}const PB=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function zZ(e){const{base:t,variants:n,defaultVariants:r,compoundVariants:i}=PB(e),a=f=>({...r,...l6(f)});function o(f={}){const h=a(f);let p={...t};for(const[v,b]of Object.entries(h))n[v]?.[b]&&(p=ch(p,n[v][b]));const g=ESe(i,h);return ch(p,g)}function s(f){const h=PB(f.config),p=ySe(f.variantKeys,Object.keys(n));return zZ({base:ch(t,h.base),variants:Object.fromEntries(p.map(g=>[g,ch(n[g],h.variants[g])])),defaultVariants:jM(r,h.defaultVariants),compoundVariants:[...i,...h.compoundVariants]})}function l(f){return F(o(f))}const u=Object.keys(n);function c(f){return LZ(f,u)}const d=Object.fromEntries(Object.entries(n).map(([f,h])=>[f,Object.keys(h)]));return Object.assign(dv(l),{__cva__:!0,variantMap:d,variantKeys:u,raw:o,config:e,merge:s,splitVariantProps:c,getVariantProps:a})}function ESe(e,t){let n={};return e.forEach(r=>{Object.entries(r).every(([a,o])=>a==="css"?!0:(Array.isArray(o)?o:[o]).some(l=>t[a]===l))&&(n=ch(n,r.css))}),n}function NZ(e){const t=Object.entries(mSe(e)).map(([d,f])=>[d,zZ(f)]),n=e.defaultVariants??{},r=t.reduce((d,[f,h])=>(e.className&&(d[f]=h.config.className),d),{});function i(d){const f=t.map(([h,p])=>[h,kSe(p(d),r[h])]);return Object.fromEntries(f)}function a(d){const f=t.map(([h,p])=>[h,p.raw(d)]);return Object.fromEntries(f)}const o=e.variants??{},s=Object.keys(o);function l(d){return LZ(d,s)}const u=d=>({...n,...l6(d)}),c=Object.fromEntries(Object.entries(o).map(([d,f])=>[d,Object.keys(f)]));return Object.assign(dv(i),{__cva__:!1,raw:a,config:e,variantMap:c,variantKeys:s,classNameMap:r,splitVariantProps:l,getVariantProps:u})}const DB={transform(e){const{direction:t,align:n,justify:r,wrap:i,basis:a,grow:o,shrink:s,...l}=e;return{display:"flex",flexDirection:t,alignItems:n,justifyContent:r,flexWrap:i,flexBasis:a,flexGrow:o,flexShrink:s,...l}}},VZ=(e={})=>{const t=Er(DB,e);return DB.transform(t,kr)},MSe=e=>F(VZ(e));MSe.raw=VZ;const IB={transform(e){const{align:t,justify:n,direction:r,gap:i,...a}=e;return{display:"flex",flexDirection:r,alignItems:t,justifyContent:n,gap:i,...a}},defaultValues:{direction:"column",gap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},jZ=(e={})=>{const t=Er(IB,e);return IB.transform(t,kr)},UZ=e=>F(jZ(e));UZ.raw=jZ;const $B={transform(e){const{justify:t,gap:n,...r}=e;return{display:"flex",alignItems:"center",justifyContent:t,gap:n,flexDirection:"column",...r}},defaultValues:{gap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},HZ=(e={})=>{const t=Er($B,e);return $B.transform(t,kr)},Vn=e=>F(HZ(e));Vn.raw=HZ;const LB={transform(e){const{justify:t,gap:n,...r}=e;return{display:"flex",alignItems:"center",justifyContent:t,gap:n,flexDirection:"row",...r}},defaultValues:{gap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},qZ=(e={})=>{const t=Er(LB,e);return LB.transform(t,kr)},rn=e=>F(qZ(e));rn.raw=qZ;const RB={transform(e){const{size:t,...n}=e;return{display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 auto",width:t,height:t,borderRadius:"9999px",...n}}},WZ=(e={})=>{const t=Er(RB,e);return RB.transform(t,kr)},gp=e=>F(WZ(e));gp.raw=WZ;const OB={transform(e){const{inline:t,...n}=e;return{display:t?"inline-flex":"flex",alignItems:"center",justifyContent:"center",...n}}},GZ=(e={})=>{const t=Er(OB,e);return OB.transform(t,kr)},ASe=e=>F(GZ(e));ASe.raw=GZ;const BB={transform(e,{map:t,isCssUnit:n}){const{columnGap:r,rowGap:i,gap:a,columns:o,minChildWidth:s,...l}=e,u=c=>n(c)?c:`token(sizes.${c}, ${c})`;return{display:"grid",gridTemplateColumns:o!=null?t(o,c=>`repeat(${c}, minmax(0, 1fr))`):s!=null?t(s,c=>`repeat(auto-fit, minmax(${u(c)}, 1fr))`):void 0,gap:a,columnGap:r,rowGap:i,...l}},defaultValues:{columnGap:"{spacing.gutter}",rowGap:"{spacing.gutter}",_print:{display:"block"}}},ZZ=(e={})=>{const t=Er(BB,e);return BB.transform(t,kr)},vi=e=>F(ZZ(e));
7vi.raw=ZZ;const FB={transform(e){const{columnGap:t,rowGap:n,gap:r=t||n?void 0:"8px",align:i,justify:a,...o}=e;return{display:"flex",flexWrap:"wrap",alignItems:i,justifyContent:a,gap:r,columnGap:t,rowGap:n,...o}},defaultValues:{columnGap:"{spacing.gutter}",rowGap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},KZ=(e={})=>{const t=Er(FB,e);return FB.transform(t,kr)},js=e=>F(KZ(e));js.raw=KZ;const zB={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}},defaultValues:{maxWidth:"{spacing.wrap}",marginX:"auto",position:"relative",paddingX:"1.5rem",width:"100%",_print:{maxWidth:"65rem"}}},YZ=(e={})=>{const t=Er(zB,e);return zB.transform(t,kr)},g1=e=>F(YZ(e));g1.raw=YZ;const NB={transform(e){return{srOnly:!0,...e}}},XZ=(e={})=>{const t=Er(NB,e);return NB.transform(t,kr)},fn=e=>F(XZ(e));fn.raw=XZ;const VB={transform(e){const{...t}=e;return{"& h2, & form > fieldset > legend":{position:"relative",zIndex:"0",display:"grid",_after:{content:"''",display:"block",width:"4.4rem",height:"1rem",marginTop:"1rem",backgroundImage:"url(~/assets/img/svg/cdrDots.svg)",bgSize:"contain",bgRepeat:"no-repeat",_print:{display:"none"},...t}}}}},JZ=(e={})=>{const t=Er(VB,e);return VB.transform(t,kr)},y1=e=>F(JZ(e));y1.raw=JZ;const jB={transform(e){const{...t}=e;return{width:"100%",transform:"translateY(calc(-1 * {spacing.header}))",...t}}},QZ=(e={})=>{const t=Er(jB,e);return jB.transform(t,kr)},eK=e=>F(QZ(e));eK.raw=QZ;const UB={transform(e){const{shadowInitial:t,shadowColor:n,textColor:r,...i}=e;return{"& p > a, & li > a, & h2 > a, & h3 > a, & h4 > a, & table a":{boxShadow:`inset 0 -${t} 0 0 ${n}`,paddingLeft:"0.2rem",paddingRight:"0.2rem",...i,_hover:{boxShadow:`inset 0 -1.4em 0 0 ${n}`,color:r},_print:{boxShadow:"none"}}}},defaultValues:{shadowInitial:"0.1rem",shadowColor:"{colors.primary}",textColor:"{colors.white}"}},tK=(e={})=>{const t=Er(UB,e);return UB.transform(t,kr)},Sa=e=>F(tK(e));Sa.raw=tK;const HB={transform(e){const{color:t,hoverColor:n,...r}=e;return{"& a.external-link":{marginRight:"0.75rem",_after:{content:"''",display:"inline-block",width:"1.5rem",height:"1.5rem",maskImage:"url(~/assets/img/svg/external.svg)",maskSize:"contain",maskPosition:"center center",maskRepeat:"no-repeat",bgColor:t,marginLeft:"0.5rem"},_hover:{_after:{bgColor:n}}}}},defaultValues:{color:"{colors.primary}",hoverColor:"{colors.white}"}},nK=(e={})=>{const t=Er(HB,e);return HB.transform(t,kr)},Zd=e=>F(nK(e));Zd.raw=nK;const qB={transform(e){const{textColor:t,pictoColor:n,noPicto:r,...i}=e;return{"& ul, & ol":{paddingLeft:{base:"2rem",md:"2.5rem"}},"& ul li, & ol li":{marginBottom:"1rem"},"& li li":{fontSize:"1em"},"& ul > li":{color:t,_before:{content:"''",display:r?"none !important":"inline-block",verticalAlign:"top",width:"0.5rem",height:"0.5rem",bgColor:n,borderRadius:"50%",marginRight:{base:"1rem",md:"{spacing.md}"},marginTop:"0.8rem"},"& p":{display:"inline"},...i},"& li > *:is(ul, ol)":{marginTop:"{spacing.md}",marginBottom:"0","& li":{_before:{borderRadius:"0",width:{base:"0.5rem",md:"1rem"},height:{base:"0.5rem",md:"1rem"},maskImage:"url(~/assets/img/svg/btn/lien.svg)",maskSize:"contain",maskRepeat:"no-repeat"}}}}},defaultValues:{textColor:"{colors.black}",pictoColor:"{colors.primary}",noPicto:!1}},rK=(e={})=>{const t=Er(qB,e);return qB.transform(t,kr)},ru=e=>F(rK(e));ru.raw=rK;const WB={transform(e){const{...t}=e;
7return{"& [data-img-container]":{float:{base:"initial",md:"left"},marginRight:"{spacing.gutter}",marginBottom:"2rem",...t}}},defaultValues:{}},iK=(e={})=>{const t=Er(WB,e);return WB.transform(t,kr)},u6=e=>F(iK(e));u6.raw=iK;const GB={transform(e){const{...t}=e;return{position:"fixed",bgColor:"{colors.black/70}",zIndex:"10",width:"100%",height:"100%",top:"0",left:"0",_print:{display:"none"},...t}}},aK=(e={})=>{const t=Er(GB,e);return GB.transform(t,kr)},HM=e=>F(aK(e));HM.raw=aK;const ZB={transform(e){const{...t}=e;return{bgColor:"{colors.primary}",width:"3rem !important",height:"3rem !important",padding:"0.6rem",minWidth:"3rem","& *":{fill:"{colors.white}"},borderRadius:"50%",_print:{display:"none"},...t}}},oK=(e={})=>{const t=Er(ZB,e);return ZB.transform(t,kr)},tl=e=>F(oK(e));tl.raw=oK;const KB={transform(e){const{size:t,fill:n,stroke:r,...i}=e;return{width:t,height:t,"& *":{fill:n,stroke:r},"[data-name=primary]":{fill:"{colors.primary"},"[data-name=secondary]":{fill:"{colors.secondary"},"[data-name=third]":{fill:"{colors.third"},"[data-name=black]":{fill:"{colors.black"},"[data-name=white]":{fill:"{colors.white"},"[data-name=gray]":{fill:"{colors.darkgray"},...i}},defaultValues:{size:"2rem"}},sK=(e={})=>{const t=Er(KB,e);return KB.transform(t,kr)},vn=e=>F(sK(e));vn.raw=sK;const YB={transform(){return{fontSize:{base:"1.4em",sm:"1.6em",_print:"10pt"}}}},lK=(e={})=>{const t=Er(YB,e);return YB.transform(t,kr)},uK=e=>F(lK(e));uK.raw=lK;const XB={transform(){return{position:{base:"relative",sm:"absolute",_print:"static"},zIndex:"0",bgColor:"transparent",display:{base:"flex",_print:"block"},alignItems:"center",padding:"0",bottom:{base:"0",sm:"-1.5rem"},left:{base:"0",sm:"-1.5rem"},"& > svg":{width:{base:"2rem",md:"2.5rem"},height:{base:"2rem",md:"2.5rem"},position:{base:"absolute",_print:"static"},transform:{base:"translate(-60%, -50%)",md:"translate(-60%, -50%)",_print:"none"},left:"50%",top:"50%"},"& [data-date-part]":{display:{base:"flex",_print:"inline-block"},flexDir:"column",alignItems:"center",justifyContent:"center",padding:{base:"1rem",_print:"0"},borderRadius:{base:"50%",_print:"0"},bgColor:{base:"{colors.primary}",_print:"transparent"},color:{base:"{colors.white}",_print:"{colors.black}"},aspectRatio:{base:"1/1",_print:"initial"},minWidth:{base:"8rem",md:"11rem",_print:"auto"},position:"relative","& [data-nb]":{fontSize:{base:"2.5rem",md:"3rem"},fontFamily:"{fonts.bold}",lineHeight:"1"},"& [data-month]":{fontSize:{base:"1.6rem",md:"1.8rem"}},"&:not(:first-of-type)":{zIndex:"-1",marginLeft:"-1rem",_before:{content:"''",position:"absolute",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",borderRadius:"inherit",bgColor:"{colors.black}",opacity:"0.5",_print:{display:"none"}}}}}}},cK=(e={})=>{const t=Er(XB,e);return XB.transform(t,kr)},dK=e=>F(cK(e));dK.raw=cK;const JB={transform(){return{display:"flex",flexDir:"column",alignItems:"center",justifyContent:"center",padding:"2rem",gap:"1.5rem",position:"absolute",top:"24rem",left:"0",transform:"translateY(-100%)",bgColor:"{colors.lightGray}","& > svg":{rotate:"90deg"},"& [data-date-part]":{display:"flex",flexDir:"column",alignItems:"center",justifyContent:"middle"},"& [data-nb]":{fontSize:"3rem",fontFamily:"{fonts.bold}",lineHeight:"1"},"& [data-month]":{fontSize:"1.8rem"}}}},fK=(e={})=>{const t=Er(JB,e);return JB.transform(t,kr)},hK=e=>F(fK(e));hK.raw=fK;const QB={transform(){return{maxWidth:{base:"38rem",_print:"initial"},margin:"0 auto","& [data-list-item-content]":{flexDir:"column-reverse"},"& [data-txt]":{width:"100%","& > [data-list-category], & > [data-category]:not(.eventType)":{position:{base:"absolute",_print:"static"},top:{base:"1rem",sm:"2rem"},left:{base:"1rem",sm:"2.5rem"}}},"& [data-list-item-title]":{fontSize:"{fontSizes.h4}"},"& [data-img]":{aspectRatio:"1/1",width:"100%","& img, & svg":{width:"100%",height:"100%",objectFit:"cover"}}}}},pK=(e={})=>{const t=Er(QB,e);return QB.transform(t,kr)},qM=e=>F(pK(e));qM.raw=pK;const eF={transform(){return{"& [data-list-item-content]":{gap:{sm:"3.5rem"}},"& [data-txt]":{paddingBottom:"5rem"},"& [data-date=complexe]":{left:{md:"1.5rem"},position:{md:"absolute"},top:"0",order:"-1"},"& [data-date-container]":{bottom:"auto",top:{sm:"38rem"},left:{base:"0",sm:"-1.5rem"},transform:{sm:"translateY(-100%)"}}}}},mK=(e={})=>{const t=Er(eF,e);return eF.transform(t,kr)},WM=e=>F(mK(e));WM.raw=mK;const tF={transform(){return{"& [data-list-item-content]":{gap:"0 !important",bgColor:"{colors.lightGray}",height:"100%"},"& [data-txt]":{display:"grid",gridTemplateColumns:"auto 1fr",rowGap:"0",columnGap:"0","& > *:not([data-date=complexe]):not([data-category]):not([data-list-category])":{padding:"1rem 2rem"},"& > *:first-child":{paddingTop:"2.5rem !important"}},"& [data-date=complexe]":{gridArea:"1 / 1 / 1 / 2",height:"100%","& [data-date-container]":{position:"static",transform:"translateY(0)",borderRight:"{borders.sm} {colors.black}",alignItems:"initial",height:"100%"}}}}},gK=(e={})=>{const t=Er(tF,e);return tF.transform(t,kr)},GM=e=>F(gK(e));GM.raw=gK;const nF={transform(){return{width:"100%",height:"24rem",display:"block",position:"relative",backgroundImage:"linear-gradient(100deg, transparent, {colors.white} 50%, transparent 80%), linear-gradient({colors.lightGray} 2rem, transparent 0), linear-gradient({colors.lightGray} 2rem, transparent 0), linear-gradient({colors.lightGray} 2rem, transparent 0)",backgroundRepeat:"no-repeat",backgroundSize:"7.5rem 10rem, 12.5rem 2rem, 26rem 2rem, 26rem 2rem",backgroundPosition:"0% 0, 27rem 1.5rem, 27rem 5.5rem, 27rem 9.5rem",marginBottom:"{spacing.gutter}",_after:{content:"''",height:"24rem",aspectRatio:"240/240",backgroundColor:"{colors.lightGray}",position:"absolute",top:"0",left:"0"}}}},yK=(e={})=>{const t=Er(nF,e);return nF.transform(t,kr)},vK=e=>F(yK(e));vK.raw=yK;function fv(e,t){return qa()?(vo(e,t),!0):!1}function rF(){const e=new Set,t=a=>{e.delete(a)};return{on:a=>{e.add(a);const o=()=>t(a);return fv(o),{off:o}},off:t,trigger:(...a)=>Promise.all(Array.from(e).map(o=>o(...a))),clear:()=>{e.clear()}}}const D7=new WeakMap,PSe=(...e)=>{var t;const n=e[0],r=(t=$n())===null||t===void 0?void 0:t.proxy,i=r??qa();if(i==null&&!cp())throw new Error("injectLocal must be called in setup");return i&&D7.has(i)&&n in D7.get(i)?D7.get(i)[n]:cr(...e)},ZM=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _K=e=>e!=null,DSe=Object.prototype.toString,bK=e=>DSe.call(e)==="[object Object]",ao=()=>{};function ISe(...e){if(e.length!==1)return Ts(...e);const t=e[0];return typeof t=="function"?jh(n1(()=>({get:t,set:ao}))):G(t)}
7function c6(e,t){function n(...r){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(a)})}return"cancel"in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}const xK=e=>e();function wK(e,t={}){let n,r,i=ao,a=ao;const o=Bt(!1),s=c=>{clearTimeout(c),i(),i=ao};let l;return Object.assign(c=>{const d=Le(e),f=Le(t.maxWait);return n&&s(n),d<=0||f!==void 0&&f<=0?(r&&(s(r),r=void 0),o.value=!1,Promise.resolve(c())):(o.value=!0,new Promise((h,p)=>{i=t.rejectOnCancel?p:h,a=h,l=c,f&&!r&&(r=setTimeout(()=>{n&&s(n),r=void 0,o.value=!1,h(l())},f)),n=setTimeout(()=>{r&&s(r),r=void 0,o.value=!1,h(c())},d)}))},{cancel:()=>{n&&(s(n),n=void 0),r&&(s(r),r=void 0),o.value=!1,a=ao},flush:()=>{if(o.value){n&&(clearTimeout(n),n=void 0),r&&(clearTimeout(r),r=void 0),o.value=!1;const c=a;i=ao,a=ao,c(l())}},isPending:jl(o)})}function $Se(...e){let t=0,n,r=!0,i=ao,a,o,s,l,u;!$t(e[0])&&typeof e[0]=="object"?{delay:o,trailing:s=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[o,s=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,i(),i=ao)};return f=>{const h=Le(o),p=Date.now()-t,g=()=>a=f();return c(),h<=0?(t=Date.now(),g()):(p>h?(t=Date.now(),(l||!r)&&g()):s&&(a=new Promise((v,b)=>{i=u?b:v,n=setTimeout(()=>{t=Date.now(),r=!0,v(g()),c()},Math.max(0,h-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,a)}}function iF(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function My(e){return Array.isArray(e)?e:[e]}function LSe(e){return $n()}function RSe(e,t=200,n={}){return c6(wK(t,n),e)}function OSe(e,t=200,n=!0,r=!0,i=!1){return c6($Se(t,n,r,i),e)}function BSe(e,t,n={}){const{eventFilter:r=xK,...i}=n;return Je(e,c6(r,t),i)}function FSe(e,t={}){if(!$t(e))return An(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=n1(()=>({get(){return e.value[r]},set(i){var a;if(!((a=Le(t.replaceRef))!==null&&a!==void 0)||a)if(Array.isArray(e.value)){const o=[...e.value];o[r]=i,e.value=o}else{const o={...e.value,[r]:i};Object.setPrototypeOf(o,Object.getPrototypeOf(e.value)),e.value=o}else e.value[r]=i}}));return n}function KM(e,t=!0,n){LSe()?Ot(e,n):t?e():At(e)}function zSe(e){return Array.from(new Set(e))}function NSe(e,t){return e.reduce((n,r)=>(n.some(i=>t(r,i,e))||n.push(r),n),[])}function hv(e,t){return W(()=>{const n=Le(e).map(r=>Le(r));return t?NSe(n,t):zSe(n)})}function VSe(e,t,n={}){const{debounce:r=0,maxWait:i=void 0,...a}=n;return BSe(e,t,{...a,eventFilter:wK(r,{maxWait:i})})}function aF(e,t,n={}){const{eventFilter:r=xK,...i}=n,a=c6(r,t);let o,s,l;if(i.flush==="sync"){let u=!1;s=()=>{},o=c=>{u=!0,c(),u=!1},l=Je(e,(...c)=>{u||a(...c)},i)}else{const u=[];let c=0,d=0;s=()=>{c=d},u.push(Je(e,()=>{d++},{...i,flush:"sync"})),o=f=>{const h=d;f(),c+=d-h},u.push(Je(e,(...f)=>{const h=c>0&&c===d;c=0,d=0,!h&&a(...f)},i)),l=()=>{u.forEach(f=>f())}}return{stop:l,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}function jSe(e,t,n){return Je(e,t,{...n,immediate:!0})}function d6(e,t,n){const r=Je(e,(i,a,o)=>{i&&(n?.once&&At(()=>r()),t(i,a,o))},{...n,once:!1});return r}const Rc=ZM?window:void 0,USe=ZM?window.document:void 0;function ll(e){var t;const n=Le(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Hn(...e){const t=(r,i,a,o)=>(r.addEventListener(i,a,o),()=>r.removeEventListener(i,a,o)),n=W(()=>{const r=My(Le(e[0])).filter(i=>i!=null);return r.every(i=>typeof i!="string")?r:void 0});return jSe(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(a=>ll(a)))!==null&&r!==void 0?r:[Rc].filter(a=>a!=null),My(Le(n.value?e[1]:e[0])),My(m(n.value?e[2]:e[1])),Le(n.value?e[3]:e[2])]},([r,i,a,o],s,l)=>{if(!r?.length||!i?.length||!a?.length)return;const u=bK(o)?{...o}:o,c=r.flatMap(d=>i.flatMap(f=>a.map(h=>t(d,f,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}function HSe(){const e=Bt(!1),t=$n();return t&&Ot(()=>{e.value=!0},t),e}function f6(e){const t=HSe();return W(()=>(t.value,!!e()))}function SK(e,t,n={}){const{window:r=Rc,...i}=n;let a;const o=f6(()=>r&&"MutationObserver"in r),s=()=>{a&&(a.disconnect(),a=void 0)},l=W(()=>{const f=Le(e),h=My(f).map(ll).filter(_K);return new Set(h)}),u=Je(l,f=>{s(),o.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,i)))},{immediate:!0,flush:"post"}),c=()=>a?.takeRecords(),d=()=>{u(),s()};return fv(d),{isSupported:o,stop:d,takeRecords:c}}const qSe=Symbol("vueuse-ssr-width");function WSe(){const e=cp()?PSe(qSe,null):null;return typeof e=="number"?e:void 0}function YM(e,t={}){const{window:n=Rc,ssrWidth:r=WSe()}=t,i=f6(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),a=Bt(typeof r=="number"),o=Bt(),s=Bt(!1),l=u=>{s.value=u.matches};return ii(()=>
7{if(a.value){a.value=!i.value;const u=Le(e).split(",");s.value=u.some(c=>{const d=c.includes("not all"),f=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),h=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(f||h);return f&&p&&(p=r>=iF(f[1])),h&&p&&(p=r<=iF(h[1])),d?!p:p});return}i.value&&(o.value=n.matchMedia(Le(e)),s.value=o.value.matches)}),Hn(o,"change",l,{passive:!0}),W(()=>s.value)}const x3={speed:2,margin:30,direction:"both"};function GSe(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function Fpt(e,t={}){var n,r,i,a;const{pointerTypes:o,preventDefault:s,stopPropagation:l,exact:u,onMove:c,onEnd:d,onStart:f,initialValue:h,axis:p="both",draggingElement:g=Rc,containerElement:v,handle:b=e,buttons:x=[0],restrictInView:_,autoScroll:w=!1}=t,C=G((n=Le(h))!==null&&n!==void 0?n:{x:0,y:0}),T=G(),k=se=>o?o.includes(se.pointerType):!0,A=se=>{Le(s)&&se.preventDefault(),Le(l)&&se.stopPropagation()},P=Le(w),D=typeof P=="object"?{speed:(r=Le(P.speed))!==null&&r!==void 0?r:x3.speed,margin:(i=Le(P.margin))!==null&&i!==void 0?i:x3.margin,direction:(a=P.direction)!==null&&a!==void 0?a:x3.direction}:x3,$=se=>typeof se=="number"?[se,se]:[se.x,se.y],O=(se,ce,Re)=>{const{clientWidth:Ue,clientHeight:$e,scrollLeft:ke,scrollTop:Ve,scrollWidth:nt,scrollHeight:xe}=se,[Pe,je]=$(D.margin),[Fe,re]=$(D.speed);let le=0,ye=0;(D.direction==="x"||D.direction==="both")&&(Re.x<Pe&&ke>0?le=-Fe:Re.x+ce.width>Ue-Pe&&ke<nt-Ue&&(le=Fe)),(D.direction==="y"||D.direction==="both")&&(Re.y<je&&Ve>0?ye=-re:Re.y+ce.height>$e-je&&Ve<xe-$e&&(ye=re)),(le||ye)&&se.scrollBy({left:le,top:ye,behavior:"auto"})};let z=null;const j=()=>{const se=Le(v);se&&!z&&(z=setInterval(()=>{const ce=Le(e).getBoundingClientRect(),{x:Re,y:Ue}=C.value,$e={x:Re-se.scrollLeft,y:Ue-se.scrollTop};$e.x>=0&&$e.y>=0&&(O(se,ce,$e),$e.x+=se.scrollLeft,$e.y+=se.scrollTop,C.value=$e)},1e3/60))},B=()=>{z&&(clearInterval(z),z=null)},R=(se,ce,Re,Ue)=>{const[$e,ke]=typeof Re=="number"?[Re,Re]:[Re.x,Re.y],{clientWidth:Ve,clientHeight:nt}=ce;return se.x<$e||se.x+Ue.width>Ve-$e||se.y<ke||se.y+Ue.height>nt-ke},J=()=>{if(Le(t.disabled)||!T.value)return;const se=Le(v);if(!se)return;const ce=Le(e).getBoundingClientRect(),{x:Re,y:Ue}=C.value,$e={x:Re-se.scrollLeft,y:Ue-se.scrollTop};R($e,se,D.margin,ce)?j():B()};Le(w)&&Je(C,J);const K=se=>{var ce;if(!Le(x).includes(se.button)||Le(t.disabled)||!k(se)||Le(u)&&se.target!==Le(e))return;const Re=Le(v),Ue=Re==null||(ce=Re.getBoundingClientRect)===null||ce===void 0?void 0:ce.call(Re),$e=Le(e).getBoundingClientRect(),ke={x:se.clientX-(Re?$e.left-Ue.left+(w?0:Re.scrollLeft):$e.left),y:se.clientY-(Re?$e.top-Ue.top+(w?0:Re.scrollTop):$e.top)};f?.(ke,se)!==!1&&(T.value=ke,A(se))},Z=se=>{if(Le(t.disabled)||!k(se)||!T.value)return;const ce=Le(v);ce instanceof HTMLElement&&GSe(ce);const Re=Le(e).getBoundingClientRect();let{x:Ue,y:$e}=C.value;if((p==="x"||p==="both")&&(Ue=se.clientX-T.value.x,ce&&(Ue=Math.min(Math.max(0,Ue),ce.scrollWidth-Re.width))),(p==="y"||p==="both")&&($e=se.clientY-T.value.y,ce&&($e=Math.min(Math.max(0,$e),ce.scrollHeight-Re.height))),Le(w)&&ce&&(z===null&&O(ce,Re,{x:Ue,y:$e}),Ue+=ce.scrollLeft,$e+=ce.scrollTop),ce&&(_||w)){if(p!=="y"){const ke=Ue-ce.scrollLeft;ke<0?Ue=ce.scrollLeft:ke>ce.clientWidth-Re.width&&(Ue=ce.clientWidth-Re.width+ce.scrollLeft)}if(p!=="x"){const ke=$e-ce.scrollTop;ke<0?$e=ce.scrollTop:ke>ce.clientHeight-Re.height&&($e=ce.clientHeight-Re.height+ce.scrollTop)}}C.value={x:Ue,y:$e},c?.(C.value,se),A(se)},ne=se=>{Le(t.disabled)||!k(se)||T.value&&(T.value=void 0,w&&B(),d?.(C.value,se),A(se))};if(ZM){const se=()=>{var ce;return{capture:(ce=t.capture)!==null&&ce!==void 0?ce:!0,passive:!Le(s)}};Hn(b,"pointerdown",K,se),Hn(g,"pointermove",Z,se),Hn(g,["pointerup","pointercancel"],ne,se)}return{...FSe(C),position:C,isDragging:W(()=>!!T.value),style:W(()=>` 8 left: ${C.value.x}px; 9 top: ${C.value.y}px; 10 ${w?"text-wrap: nowrap;":""} 11 `)}}function ZSe(e,t,n={}){const{window:r=Rc,...i}=n;let a;const o=f6(()=>r&&"ResizeObserver"in r),s=()=>{a&&(a.disconnect(),a=void 0)},l=W(()=>{const d=Le(e);return Array.isArray(d)?d.map(f=>ll(f)):[ll(d)]}),u=Je(l,d=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(const f of d)f instanceof Element&&a.observe(f,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return fv(c),{isSupported:o,stop:c}}function dh(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o="sync"}=t,s=Bt(0),l=Bt(0),u=Bt(0),c=Bt(0),d=Bt(0),f=Bt(0),h=Bt(0),p=Bt(0);function g(){const b=ll(e);
11if(!b){n&&(s.value=0,l.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,p.value=0);return}const x=b.getBoundingClientRect();s.value=x.height,l.value=x.bottom,u.value=x.left,c.value=x.right,d.value=x.top,f.value=x.width,h.value=x.x,p.value=x.y}function v(){o==="sync"?g():o==="next-frame"&&requestAnimationFrame(()=>g())}return ZSe(e,v),Je(()=>ll(e),b=>!b&&v()),SK(e,v,{attributeFilter:["style","class"]}),i&&Hn("scroll",v,{capture:!0,passive:!0}),r&&Hn("resize",v,{passive:!0}),KM(()=>{a&&v()}),{height:s,bottom:l,left:u,right:c,top:d,width:f,x:h,y:p,update:v}}function XM(e,t,n={}){const{root:r,rootMargin:i,threshold:a=0,window:o=Rc,immediate:s=!0}=n,l=f6(()=>o&&"IntersectionObserver"in o),u=W(()=>{const p=Le(e);return My(p).map(ll).filter(_K)});let c=ao;const d=Bt(s),f=l.value?Je(()=>[u.value,ll(r),Le(i),d.value],([p,g,v])=>{if(c(),!d.value||!p.length)return;const b=new IntersectionObserver(t,{root:ll(g),rootMargin:v,threshold:a});p.forEach(x=>x&&b.observe(x)),c=()=>{b.disconnect(),c=ao}},{immediate:s,flush:"post"}):ao,h=()=>{c(),f(),d.value=!1};return fv(h),{isSupported:l,isActive:d,pause(){c(),d.value=!1},resume(){d.value=!0},stop:h}}function KSe(e,t={}){const{initialValue:n=!1,focusVisible:r=!1,preventScroll:i=!1}=t,a=Bt(!1),o=W(()=>ll(e)),s={passive:!0};Hn(o,"focus",u=>{var c,d;(!r||!((c=(d=u.target).matches)===null||c===void 0)&&c.call(d,":focus-visible"))&&(a.value=!0)},s),Hn(o,"blur",()=>a.value=!1,s);const l=W({get:()=>a.value,set(u){var c,d;!u&&a.value?(c=o.value)===null||c===void 0||c.blur():u&&!a.value&&((d=o.value)===null||d===void 0||d.focus({preventScroll:i}))}});return Je(o,()=>{l.value=n},{immediate:!0,flush:"post"}),{focused:l}}const oF=1;function YSe(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=ao,onScroll:a=ao,offset:o={left:0,right:0,top:0,bottom:0},observe:s={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=Rc,onError:d=P=>{console.error(P)}}=t,f=typeof s=="boolean"?{mutation:s}:s,h=Bt(0),p=Bt(0),g=W({get(){return h.value},set(P){b(P,void 0)}}),v=W({get(){return p.value},set(P){b(void 0,P)}});function b(P,D){var $,O,z,j;if(!c)return;const B=Le(e);if(!B)return;($=B instanceof Document?c.document.body:B)===null||$===void 0||$.scrollTo({top:(O=Le(D))!==null&&O!==void 0?O:v.value,left:(z=Le(P))!==null&&z!==void 0?z:g.value,behavior:Le(u)});const R=(B==null||(j=B.document)===null||j===void 0?void 0:j.documentElement)||B?.documentElement||B;g!=null&&(h.value=R.scrollLeft),v!=null&&(p.value=R.scrollTop)}const x=Bt(!1),_=mi({left:!0,right:!1,top:!0,bottom:!1}),w=mi({left:!1,right:!1,top:!1,bottom:!1}),C=P=>{x.value&&(x.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,i(P))},T=RSe(C,n+r),k=P=>{var D;if(!c)return;const $=(P==null||(D=P.document)===null||D===void 0?void 0:D.documentElement)||P?.documentElement||ll(P),{display:O,flexDirection:z,direction:j}=c.getComputedStyle($),B=j==="rtl"?-1:1,R=$.scrollLeft;w.left=R<h.value,w.right=R>h.value;const J=Math.abs(R*B)<=(o.left||0),K=Math.abs(R*B)+$.clientWidth>=$.scrollWidth-(o.right||0)-oF;O==="flex"&&z==="row-reverse"?(_.left=K,_.right=J):(_.left=J,_.right=K),h.value=R;let Z=$.scrollTop;P===c.document&&!Z&&(Z=c.document.body.scrollTop),w.top=Z<p.value,w.bottom=Z>p.value;const ne=Math.abs(Z)<=(o.top||0),se=Math.abs(Z)+$.clientHeight>=$.scrollHeight-(o.bottom||0)-oF;O==="flex"&&z==="column-reverse"?(_.top=se,_.bottom=ne):(_.top=ne,_.bottom=se),p.value=Z},A=P=>{var D;if(!c)return;const $=(D=P.target.documentElement)!==null&&D!==void 0?D:P.target;k($),x.value=!0,T(P),a(P)};return Hn(e,"scroll",n?OSe(A,n,!0,!1):A,l),KM(()=>{try{const P=Le(e);if(!P)return;k(P)}catch(P){d(P)}}),f?.mutation&&e!=null&&e!==c&&e!==document&&SK(e,()=>{const P=Le(e);P&&k(P)},{attributes:!0,childList:!0,subtree:!0}),Hn(e,"scrollend",C,l),{x:g,y:v,isScrolling:x,arrivedState:_,directions:w,measure(){const P=Le(e);c&&P&&k(P)}}}function I7(e,t){Le(e)&&t(Le(e))}function XSe(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function $7(e){return Array.from(e).map(({label:t,kind:n,language:r,mode:i,activeCues:a,cues:o,inBandMetadataTrackDispatchType:s},l)=>({id:l,label:t,kind:n,language:r,mode:i,activeCues:a,cues:o,inBandMetadataTrackDispatchType:s}))}const JSe={src:"",tracks:[]};function sF(e,t={}){e=ISe(e),t={...JSe,...t};const{document:n=USe}=t,r={passive:!0},i=Bt(0),a=Bt(0),o=Bt(!1),s=Bt(1),l=Bt(!1),u=Bt(!1),c=Bt(!1),d=Bt(1),f=Bt(!1),h=Bt([]),p=Bt([]),g=Bt(-1),v=Bt(!1),b=Bt(!1),x=!!(n&&"pictureInPictureEnabled"in n),_=rF(),w=rF(),C=O=>{I7(e,z=>{if(O){const j=typeof O=="number"?O:O.id;z.textTracks[j].mode="disabled"}else for(let j=0;j<z.textTracks.length;++j)z.textTracks[j].mode="disabled";g.value=-1})},T=(O,z=!0)=>{I7(e,j=>{const B=typeof O=="number"?O:O.id;z&&C(),j.textTracks[B].mode="showing",g.value=B})},k=()=>new Promise((O,z)=>{I7(e,async j=>{x&&(v.value?n.exitPictureInPicture().then(O).catch(z):j.requestPictureInPicture().then(O).catch(z))})});ii(()=>
11{if(!n)return;const O=Le(e);if(!O)return;const z=Le(t.src);let j=[];z&&(typeof z=="string"?j=[{src:z}]:Array.isArray(z)?j=z:bK(z)&&(j=[z]),O.querySelectorAll("source").forEach(B=>{B.remove()}),j.forEach(({src:B,type:R,media:J})=>{const K=n.createElement("source");K.setAttribute("src",B),K.setAttribute("type",R||""),K.setAttribute("media",J||""),Hn(K,"error",_.trigger,r),O.appendChild(K)}),O.load())}),Je([e,s],()=>{const O=Le(e);O&&(O.volume=s.value)}),Je([e,b],()=>{const O=Le(e);O&&(O.muted=b.value)}),Je([e,d],()=>{const O=Le(e);O&&(O.playbackRate=d.value)}),ii(()=>{if(!n)return;const O=Le(t.tracks),z=Le(e);!O||!O.length||!z||(z.querySelectorAll("track").forEach(j=>j.remove()),O.forEach(({default:j,kind:B,label:R,src:J,srcLang:K},Z)=>{const ne=n.createElement("track");ne.default=j||!1,ne.kind=B,ne.label=R,ne.src=J,ne.srclang=K,ne.default&&(g.value=Z),z.appendChild(ne)}))});const{ignoreUpdates:A}=aF(i,O=>{const z=Le(e);z&&(z.currentTime=O)}),{ignoreUpdates:P}=aF(c,O=>{const z=Le(e);z&&(O?z.play().catch(j=>{throw w.trigger(j),j}):z.pause())});Hn(e,"timeupdate",()=>A(()=>i.value=Le(e).currentTime),r),Hn(e,"durationchange",()=>a.value=Le(e).duration,r),Hn(e,"progress",()=>h.value=XSe(Le(e).buffered),r),Hn(e,"seeking",()=>o.value=!0,r),Hn(e,"seeked",()=>o.value=!1,r),Hn(e,["waiting","loadstart"],()=>{l.value=!0,P(()=>c.value=!1)},r),Hn(e,"loadeddata",()=>l.value=!1,r),Hn(e,"playing",()=>{l.value=!1,u.value=!1,P(()=>c.value=!0)},r),Hn(e,"ratechange",()=>d.value=Le(e).playbackRate,r),Hn(e,"stalled",()=>f.value=!0,r),Hn(e,"ended",()=>u.value=!0,r),Hn(e,"pause",()=>P(()=>c.value=!1),r),Hn(e,"play",()=>P(()=>c.value=!0),r),Hn(e,"enterpictureinpicture",()=>v.value=!0,r),Hn(e,"leavepictureinpicture",()=>v.value=!1,r),Hn(e,"volumechange",()=>{const O=Le(e);O&&(s.value=O.volume,b.value=O.muted)},r);const D=[],$=Je([e],()=>{const O=Le(e);O&&($(),D[0]=Hn(O.textTracks,"addtrack",()=>p.value=$7(O.textTracks),r),D[1]=Hn(O.textTracks,"removetrack",()=>p.value=$7(O.textTracks),r),D[2]=Hn(O.textTracks,"change",()=>p.value=$7(O.textTracks),r))});return fv(()=>D.forEach(O=>O())),{currentTime:i,duration:a,waiting:l,seeking:o,ended:u,stalled:f,buffered:h,playing:c,rate:d,volume:s,muted:b,tracks:p,selectedTrack:g,enableTrack:T,disableTrack:C,supportsPictureInPicture:x,togglePictureInPicture:k,isPictureInPicture:v,onSourceError:_.on,onPlaybackError:w.on}}function QSe(e={}){const{window:t=Rc,...n}=e;return YSe(t,n)}function zpt(e={}){const{window:t=Rc,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=Bt(n),l=Bt(r),u=()=>{if(t)if(o==="outer")s.value=t.outerWidth,l.value=t.outerHeight;else if(o==="visual"&&t.visualViewport){const{width:d,height:f,scale:h}=t.visualViewport;s.value=Math.round(d*h),l.value=Math.round(f*h)}else a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),KM(u);const c={passive:!0};if(Hn("resize",u,c),t&&o==="visual"&&t.visualViewport&&Hn(t.visualViewport,"resize",u,c),i){const d=YM("(orientation: portrait)");Je(d,()=>u())}return{width:s,height:l}}const JM=()=>{let e=eK();const t=(i,a)=>{let s=(()=>{if(i?.includes("<h2")){var c=new DOMParser,d=c.parseFromString(i,"text/html");return d.querySelectorAll("h2").forEach((h,p)=>{let g=d.createElement("div");g.setAttribute("id",`c${a}_${p}`),g.setAttribute("class",e),g.setAttribute("tabindex","0"),h?.parentNode?.insertBefore(g,h)}),d.body.innerHTML}else if(i?.includes("<h3")){var c=new DOMParser,d=c.parseFromString(i,"text/html");return d.querySelectorAll("h3").forEach((g,v)=>{let b=d.createElement("div");b.setAttribute("id",`c${a}_${v}`),b.setAttribute("class",e),b.setAttribute("tabindex","0"),g?.parentNode?.insertBefore(b,g)}),d.body.innerHTML}else return i})()?.replaceAll('<span class="at"></span>',"@")?.replaceAll('<span class="dot"></span>',"."),l="";return s?.startsWith("<")?l=s:l=`<p>${s}</p>`,l},n=(i,a,o,s)=>(i=i+s,s>0&&i>o?i=a+(i-o-1):s<0&&i<a&&(i=o-(a-i-1)),String.fromCharCode(i));return{computedbodytext:t,decryptString:(i,a)=>{let o="";for(let s=0;s<i.length;s++){const l=i.charCodeAt(s);l>=43&&l<=58?o+=n(l,43,58,a):l>=64&&l<=90?o+=n(l,64,90,a):l>=97&&l<=122?o+=n(l,97,122,a):o+=i.charAt(s)}return o}}},eCe=["innerHTML"],du=Q({__name:"T3HtmlParser",props:{content:{},uid:{}},setup(e){const t=G([]),n=G([]),r=e,{computedbodytext:i,decryptString:a}=JM(),o=W(()=>i(r.content,r.uid)),s=G();Ot(()=>{l()}),br(()=>{u()});function l(){t.value=Object.entries(s.value.getElementsByTagName("a")).reduce((p,[g,v])=>(v.dataset.mailtoToken===void 0&&p.push(v),p),[]);
11for(const p of t.value)h(p)&&p.classList.add("external-link"),p.addEventListener("click",c);n.value=Object.entries(s.value.getElementsByTagName("a")).reduce((p,[g,v])=>(v.dataset.mailtoToken!==void 0&&p.push(v),p),[]);for(const p of n.value)p.addEventListener("click",f)}function u(){for(const p of t.value)p.removeEventListener("click",c);for(const p of n.value)p.removeEventListener("click",f)}function c(p){let g=p.target,v=0;for(;v<5&&!(g instanceof HTMLAnchorElement)&&g&&g.parentNode;)g=g.parentNode,v++;if(g instanceof HTMLAnchorElement)return d(p,g)}function d(p,g){const v=g.getAttribute("href"),b=g.getAttribute("target"),x=p.ctrlKey||p.metaKey,_=b&&b==="_blank"||x;v&&v[0]==="/"&&!_&&(p.preventDefault(),wl(v))}function f(p){let g=p.target;g.nodeName!=="A"&&(g=g.parentNode),g.dataset.mailtoVector||console.warn("missing mailto vector"),g.dataset.mailtoToken||console.warn("missing mailto token");const v=parseInt(g.dataset.mailtoVector,10)*-1;document.location.href=a(g.dataset.mailtoToken,v)}function h(p){try{return new URL(p.href,window.location.href).origin!==window.location.origin}catch{return!1}}return(p,g)=>(E(),U("div",{ref_key:"htmlparser",ref:s,class:L(["t3-ce-rte",m(F)({"& > *:last-child":{marginBottom:0},"& > p.copyright":{fontSize:"sm"}})]),innerHTML:m(o)},null,10,eCe))}}),tCe=Q({__name:"defaultImage",setup(e){const t=Yt(),n=G(t.favicon),r=W(()=>n.value?.png?.[2]?.url);return(i,a)=>(E(),U("div",{style:Li(`background-image:url(${m(r)})`),class:L([m(F)({bgRepeat:"no-repeat",bgPosition:"center center",bgSize:"auto",bgColor:"lightGray",height:"100%",_print:{display:"none"}})])},null,6))}}),nCe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 95 71"};function rCe(e,t){return E(),U("svg",nCe,[...t[0]||(t[0]=[Y("path",{fill:"#007F79",d:"M20.366 48.116c-.094.179-3.146 5.373-6.784 11.544-3.638 6.17-6.637 11.244-6.665 11.275-.077.083-6.93-3.92-6.917-4.04.006-.057 4.235-7.262 9.397-16.011l9.385-15.908 3.617-.021 3.617-.02.821.781c3.411 3.25 7.482 5.225 12.386 6.01 1.278.203 5.194.203 6.471 0 4.184-.67 7.69-2.177 10.88-4.677.38-.296 1.262-1.108 1.964-1.803l1.275-1.265 2.952 2.649c1.623 1.457 2.951 2.677 2.951 2.712 0 .125-2.238 2.36-3.111 3.108-4.813 4.119-10.379 6.536-16.87 7.328-1.138.14-5.42.14-6.553 0-4.678-.575-8.604-1.889-12.488-4.18-.983-.58-2.591-1.67-3.147-2.133-.128-.107-.26-.194-.295-.194-.057 0-2.463 4.04-2.886 4.845"},null,-1),Y("path",{fill:"#007F79",d:"M21.386 62.986H95V71H21.386zM90.663 50.712c.006.082-1.079.75-3.227 1.986-1.78 1.024-3.33 1.918-3.444 1.985l-.208.121-13.18-22.393c-7.249-12.316-13.2-22.395-13.225-22.395-.025-.002-2.951 4.94-6.503 10.98-3.743 6.368-6.498 10.974-6.556 10.96-.055-.013-1.63-.907-3.5-1.987-3.237-1.868-3.397-1.971-3.308-2.134.051-.094 3.752-6.395 8.223-14.003L53.865 0h7.038l14.875 25.294c8.182 13.912 14.88 25.35 14.885 25.418"},null,-1)])])}const iCe={render:rCe},aCe=["aria-label"],oCe=["src","width","height","data-not-lazy","alt","id"],sCe=["src","width","height","data-not-lazy","alt","id"],Qo=Q({__name:"Image",props:{image:{},defaultImg:{type:Boolean,default:!0},noDefaultImg:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},altOverride:{},altPrefix:{},altSuffix:{},id:{},class:{},initialDimensions:{type:Boolean},noFigcaption:{type:Boolean,default:!1},inRte:{type:Boolean,default:!1},noDescription:{type:Boolean,default:!1}},setup(e){const t=e,n=Yt(),i=G(n.siteBuilderInfos).value?.identifier==="Cdr",a=t.altPrefix||"",o=t.altOverride||t.image?.properties?.alternative||"",s=t.altSuffix||"",l=W(()=>{if(a||o||s)return`${a||""}${a&&o?", ":""}${o}${o&&s?", ":""}${s||""}`}),u=W(()=>t.initialDimensions?{width:t.image?.properties?.initialDimensions.width,height:t.image?.properties?.initialDimensions.height}:{width:t.image?.properties?.dimensions.width,height:t.image?.properties?.dimensions.height}),c=["xlsx","xls","doc","docx","ppt","pptx","odt","ods","odp","zip"],d=W(()=>!c.includes(t.image?.properties?.extension));return(f,h)=>{const p=du,g=tCe;return e.image?.publicUrl&&m(d)?(E(),U(Ae,{key:0},[(e.image?.properties?.copyright||!e.image?.properties?.description||e.image?.properties?.title)&&!e.noFigcaption?(E(),U("figure",{key:0,"data-img-container":"",role:"group","aria-label":`${m(l)?m(l):""}${m(l)?", ":""}${e.image?.properties?.title}, ${e.image?.properties?.copyright}
11`,class:L(m(Vn)({flexDir:"column-reverse",alignItems:"start",gap:0}))},[Y("img",{src:e.initialDimensions?e.image?.properties?.originalUrl:e.image?.publicUrl,width:m(u).width,height:m(u).height,"data-not-lazy":e.lazy?null:!0,alt:m(l)||f.$t("common.medias.images.illustration"),id:e.id},null,8,oCe),e.image?.properties?.title||e.image?.properties?.copyright?(E(),U("figcaption",{key:0,"data-description":"",class:L(m(F)({position:"relative",width:"100% !important"})),style:Li(`max-width:calc(${m(u).width}px - 3rem)`)},[e.image?.properties?.title&&e.inRte?(E(),U("span",{key:0,"data-description-title":"",class:L([m(F)({fontSize:"{fontSizes.h4}",fontFamily:"{fonts.bold}",display:"block",paddingBottom:"1rem"}),i?m(F)({position:"relative",paddingLeft:"2rem",marginLeft:"3rem",_before:{content:"''",position:"absolute",top:0,left:0,width:"0.2rem",minHeight:"8rem",height:"100%",bgColor:"{colors.primary}"}}):null])},de(e.image?.properties?.title),3)):ae("",!0),e.image?.properties?.copyright?(E(),U("span",{key:1,"data-copyright":"",class:L(m(F)({fontSize:"1.2em",width:"auto",position:"absolute",bottom:0,left:0,margin:0,transform:"translateY(100%)",padding:"0.5rem 1rem",maxWidth:"100% !important",width:"auto !important",bgColor:"lightGray/80",color:"{colors.black}"}))},de("© "+e.image?.properties?.copyright),3)):ae("",!0)],6)):ae("",!0)],10,aCe)):(E(),U("img",{key:1,"data-img-container":"",src:e.initialDimensions?e.image?.properties?.originalUrl:e.image?.publicUrl,width:m(u).width,height:m(u).height,"data-not-lazy":e.lazy?null:!0,alt:m(l)||"",id:e.id,class:L(e.class)},null,10,sCe)),e.image?.properties?.description&&!e.noDescription?(E(),U("div",{key:2,"data-long-description":"",class:L(m(F)({bgColor:"{colors.lightGray}",padding:"2.5rem","& .t3-ce-rte > *:last-child":{marginBottom:0},"& p":{fontSize:"md"}})),style:Li(`max-width:${m(u).width}px`)},[e.image?.properties?.description?(E(),V(p,{key:0,content:e.image?.properties?.description},null,8,["content"])):ae("",!0)],6)):ae("",!0)],64)):e.noDefaultImg?ae("",!0):(E(),U(Ae,{key:1},[i?(E(),V(m(iCe),{key:1,"data-img-container":"","aria-hidden":"true",class:L(m(F)({backgroundImage:"linear-gradient(0deg,{colors.lightGray},{colors.lightGray}), linear-gradient(0deg,rgba(255,255,255,1),rgba(255,255,255,1))",padding:{base:"5rem",sm:"7rem"}}))},null,8,["class"])):(E(),V(g,{key:0,"data-img-container":""}))],64))}}}),lCe=["id"],uCe=["id"],cCe=["id"],Mr=Q({__name:"BlocCol",props:{template:{},header:{},headerLayout:{},colPos:{},uid:{},bgPrimary:{type:Boolean},bgGray:{type:Boolean},bgThird:{type:Boolean},bgFiligrane:{type:Boolean},showFiligrane:{type:Boolean},titleInside:{type:Boolean,default:!1},headerId:{},itemsMini:{},showInSummary:{type:Boolean,default:!1},type:{},titreSr:{type:Boolean,default:!1}},setup(e){const t=Yt(),n=G(t.initialData),r=G(t.siteBuilderInfos),i=W(()=>n.value?.decoration?.content?.decoration?.[0]),a=e,o=Va(),s=Object.values(o.blocsAlwaysInSummary),l=W(()=>s.includes(a.type)),u=[r.value?.identifier==="Cdr"?y1():null,rn({flexDir:"row-reverse",justifyContent:"start",gap:{base:"1.5rem",sm:"2rem"}}),F({marginBottom:"{spacing.lg}","& > *:not(svg)":{color:{base:a.bgPrimary||a.bgThird?"{colors.white}":null},marginBottom:"0"}})];return(c,d)=>{const f=s6,h=Qo;return E(),U("div",{class:L(m(F)({marginBottom:{base:"3rem",md:"4rem"},position:"relative"}))},[!e.showInSummary&&!m(l)?(E(),U("div",{key:0,id:`c${e.uid}`,class:L(m(F)({width:"100%",position:"absolute",top:"calc(-1 * {spacing.header})"})),tabindex:"0"},null,10,lCe)):ae("",!0),e.titleInside?ae("",!0):me(c.$slots,"title",{},()=>[e.showInSummary||m(l)?(E(),U("div",{key:0,id:`c${e.uid}`,class:L(m(F)({width:"100%",position:"absolute",top:"calc(-1 * {spacing.header})"})),tabindex:"0"},null,10,uCe)):ae("",!0),e.header?(E(),U("div",{key:1,class:L([u,e.titreSr?m(fn)():null])},[H(f,{header:e.header,headerLayout:e.headerLayout,id:e.headerId},null,8,["header","headerLayout","id"]),e.header?me(c.$slots,"picto",{},void 0,void 0,0):ae("",!0)],2)):ae("",!0)],void 0,1),Y("div",{"data-bloc-content":"",class:L(m(F)({padding:e.bgPrimary||e.bgThird||e.bgGray||e.bgFiligrane?{base:"2rem",sm:"3rem",md:"5rem",_print:"0"}
11:null,bgColor:{base:e.bgPrimary?"{colors.primary}":e.bgThird?"{colors.third}":e.bgGray?"{colors.lightGray}":null,_print:"transparent"},border:e.bgFiligrane?"{borders.sm} {colors.third}":null,color:{base:e.bgPrimary||e.bgThird?"{colors.white}":"{colors.black}"},position:"relative"}))},[e.titleInside?me(c.$slots,"title",{},()=>[e.showInSummary||m(l)?(E(),U("div",{key:0,id:`c${e.uid}`,class:L(m(F)({width:"100%",position:"absolute",top:"calc(-1 * {spacing.header})"})),tabindex:"0"},null,10,cCe)):ae("",!0),Y("div",{class:L(u)},[H(f,{header:e.header,headerLayout:e.headerLayout,id:e.headerId},null,8,["header","headerLayout","id"]),e.header?me(c.$slots,"picto",{},void 0,void 0,0):ae("",!0)])],void 0,0):ae("",!0),me(c.$slots,"content"),m(r)?.theme==="Theme1"&&e.showFiligrane?(E(),V(h,{key:1,image:m(i),"no-figcaption":!0,class:L([m(F)({position:"absolute",top:0,right:0,width:"100%",height:{sm:"100%"},margin:"0 !important",filter:"brightness(0.5)",objectFit:"cover",maskImage:{base:"linear-gradient(-180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%)",sm:"linear-gradient(-90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 5%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0) 30%)"},pointerEvents:"none"})])},null,8,["image","class"])):ae("",!0)],2)],2)}}}),dCe=Q({__name:"T3CeCimeos2cols",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},left:{},right:{},showInSummary:{type:Boolean},type:{}},setup(e){return(t,n)=>{const r=N1,i=Mr;return E(),V(i,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,type:e.type},{content:N(()=>[Y("div",{class:L([m(vi)({columns:{lg:2}}),m(F)({"& .t3-ce-textpic:first-of-type":{marginTop:"0"}})])},[Y("div",null,[e.left?(E(),V(r,{key:0,content:e.left},null,8,["content"])):ae("",!0)]),Y("div",null,[e.right?(E(),V(r,{key:0,content:e.right},null,8,["content"])):ae("",!0)])],2)]),_:1},8,["header","header-layout","uid","showInSummary","type"])}}}),fCe=Q({__name:"T3CeCimeos3cols",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},left:{},middle:{},right:{},showInSummary:{type:Boolean},type:{}},setup(e){return(t,n)=>{const r=N1,i=Mr;return E(),V(i,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,type:e.type},{content:N(()=>[Y("div",{class:L([m(vi)({columns:{lg:3,md:2}}),m(F)({"& .t3-ce-textpic:first-of-type":{marginTop:"0"}})])},[Y("div",null,[e.left?(E(),V(r,{key:0,content:e.left},null,8,["content"])):ae("",!0)]),Y("div",null,[e.middle?(E(),V(r,{key:0,content:e.middle},null,8,["content"])):ae("",!0)]),Y("div",null,[e.right?(E(),V(r,{key:0,content:e.right},null,8,["content"])):ae("",!0)])],2)]),_:1},8,["header","header-layout","uid","showInSummary","type"])}}}),hCe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 25 25"};function pCe(e,t){return E(),U("svg",hCe,[...t[0]||(t[0]=[Y("path",{fill:"#0f857c",d:"M20 11.25h-6.25V5h-2.5v6.25H5v2.5h6.25V20h2.5v-6.25H20z"},null,-1)])])}const mCe={render:pCe};function am(e,t){return e-t*Math.floor(e/t)}const CK=1721426;function fh(e,t,n,r){t=pv(e,t);let i=t-1,a=-2;return n<=2?a=0:Md(t)&&(a=-1),CK-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Md(e){return e%4===0&&(e%100!==0||e%400===0)}function pv(e,t){return e==="BC"?1-t:t}function h6(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const gCe={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class yl{fromJulianDay(t){let n=t,r=n-CK,i=Math.floor(r/146097),a=am(r,146097),o=Math.floor(a/36524),s=am(a,36524),l=Math.floor(s/1461),u=am(s,1461),c=Math.floor(u/365),d=i*400+o*100+l*4+c+(o!==4&&c!==4?1:0),[f,h]=h6(d),p=n-fh(f,h,1,1),g=2;n<fh(f,h,3,1)?g=0:Md(h)&&(g=1);let v=Math.floor(((p+g)*12+373)/367),b=n-fh(f,h,v,1)+1;return new Wn(f,h,v,b)}toJulianDay(t){return fh(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return gCe[Md(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Md(t.year)?366:365}getMaximumMonthsInYear(){return 12}
11getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const yCe={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Zh(e,t){return t=co(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function TK(e,t){return t=co(t,e.calendar),e=OC(e),t=OC(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Ay(e,t){return QM(e.calendar,t.calendar)&&Zh(e,t)}function lF(e,t){return QM(e.calendar,t.calendar)&&TK(e,t)}function QM(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function vCe(e,t){return Zh(e,v2(t))}function kK(e,t,n){let r=e.calendar.toJulianDay(e),i=SCe(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function _Ce(e){return rc(Date.now(),e)}function v2(e){return kCe(_Ce(e))}function EK(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function bCe(e,t){return uF(e)-uF(t)}function uF(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let L7=null,xCe=!1;function Kd(){return L7==null&&(L7=new Intl.DateTimeFormat().resolvedOptions().timeZone),L7}function MK(){return xCe}function OC(e){return e.subtract({days:e.day-1})}function cF(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}const dF=new Map,R7=new Map;function wCe(e){if(Intl.Locale){let n=dF.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&dF.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function SCe(e){let t=R7.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return R7.set(e,t),t.firstDay}let n=wCe(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&yCe[n]||0};R7.set(e,t)}return t.firstDay}function Dm(e){e=co(e,new yl);let t=pv(e.era,e.year);return AK(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function AK(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function BC(e,t){if(t==="UTC")return 0;if(e>0&&t===Kd()&&!MK())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=PK(e,t);return AK(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const fF=new Map;function PK(e,t){let n=fF.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),fF.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const hF=864e5;function CCe(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>TCe(e,t,a))}function TCe(e,t,n){let r=PK(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Xu(e,t,n="compatible"){let r=Im(e);if(t==="UTC")return Dm(r);if(t===Kd()&&n==="compatible"&&!MK()){r=co(r,new yl);let l=new Date,u=pv(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=Dm(r),a=BC(i-hF,t),o=BC(i+hF,t),s=CCe(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function DK(e,t,n="compatible"){return new Date(Xu(e,t,n))}function rc(e,t){let n=BC(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Lm(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,s,l,u,c)}function kCe(e){return new Wn(e.calendar,e.era,e.year,e.month,e.day)}function Im(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new $m(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function co(e,t){if(QM(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Kh(r),r}function ECe(e,t,n){if(e instanceof Lm)return e.timeZone===t?e:ACe(e,t);let r=Xu(e,t,n);return rc(r,t)}function MCe(e){let t=Dm(e)-e.offset;return new Date(t)}function ACe(e,t){let n=Dm(e)-e.offset;return co(rc(n,t),e.calendar)}const Pg=36e5;function p6(e,t){let n=e.copy(),r="hour"in n?$Ce(n,t):0;FC(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,zC(n),IK(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,PCe(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let o=n.calendar.isInverseEra?.(n);n.year=i,n.month=o?1:n.calendar.getMonthsInYear(n),n.day=o?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function FC(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function zC(e){for(;e.month<1;)FC(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,FC(e,1)}function PCe(e){for(;e.day<1;)e.month--,zC(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,zC(e)}function IK(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Kh(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),IK(e)}function $K(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function LK(e,t){return p6(e,$K(t))}function eA(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Kh(n),n}function G4(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),ICe(n),n}function DCe(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=w3(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=w3(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=w3(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=w3(e.hour,24),t}function ICe(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function w3(e,t){let n=e%t;return n<0&&(n+=t),n}function $Ce(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,DCe(e)}function tA(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),o=a.indexOf(e.era);if(o<0)throw new Error("Invalid era: "+e.era);o=ic(o,n,0,a.length-1,r?.round),i.era=a[o],Kh(i);break}case"year":i.calendar.isInverseEra?.(i)&&(n=-n),i.year=ic(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=ic(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":i.day=ic(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Kh(i),i}function RK(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if(r?.hourCycle===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=ic(a,n,o,s,r?.round);break}case"minute":i.minute=ic(e.minute,n,0,59,r?.round);break;case"second":i.second=ic(e.second,n,0,59,r?.round);break;case"millisecond":i.millisecond=ic(e.millisecond,n,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return i}function ic(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function OK(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=p6(Im(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Xu(i,e.timeZone)}else n=Dm(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=rc(n,e.timeZone);return co(r,e.calendar)}function LCe(e,t){return OK(e,$K(t))}function RCe(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if(r?.hourCycle===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let o=Im(e),s=co(G4(o,{hour:i}),new yl),l=[Xu(s,e.timeZone,"earlier"),Xu(s,e.timeZone,"later")].filter(p=>rc(p,e.timeZone).day===s.day)[0],u=co(G4(o,{hour:a}),new yl),c=[Xu(u,e.timeZone,"earlier"),Xu(u,e.timeZone,"later")].filter(p=>rc(p,e.timeZone).day===u.day).pop(),d=Dm(e)-e.offset,f=Math.floor(d/Pg),h=d%Pg;return d=ic(f,n,Math.floor(l/Pg),Math.floor(c/Pg),r?.round)*Pg+h,co(rc(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return RK(e,t,n,r);case"era":case"year":case"month":case"day":{let i=tA(Im(e),t,n,r),a=Xu(i,e.timeZone);
11return co(rc(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function OCe(e,t,n){let r=Im(e),i=G4(eA(r,t),t);if(i.compare(r)===0)return e;let a=Xu(i,e.timeZone,n);return co(rc(a,e.timeZone),e.calendar)}const BCe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,FCe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function S3(e){let t=e.match(BCe);if(!t)throw FCe.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new Wn(O7(t[1],0,9999),O7(t[2],1,12),1);return n.day=O7(t[3],1,n.calendar.getDaysInMonth(n)),n}function O7(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function zCe(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function BK(e){let t=co(e,new yl),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function FK(e){return`${BK(e)}T${zCe(e)}`}function NCe(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function VCe(e){return`${FK(e)}${NCe(e.offset)}[${e.timeZone}]`}function nA(e){let t=typeof e[0]=="object"?e.shift():new yl,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}class Wn{#e;constructor(...t){let[n,r,i,a,o]=nA(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Kh(this)}copy(){return this.era?new Wn(this.calendar,this.era,this.year,this.month,this.day):new Wn(this.calendar,this.year,this.month,this.day)}add(t){return p6(this,t)}subtract(t){return LK(this,t)}set(t){return eA(this,t)}cycle(t,n,r){return tA(this,t,n,r)}toDate(t){return DK(this,t)}toString(){return BK(this)}compare(t){return EK(this,t)}}class $m{#e;constructor(...t){let[n,r,i,a,o]=nA(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Kh(this)}copy(){return this.era?new $m(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new $m(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return p6(this,t)}subtract(t){return LK(this,t)}set(t){return eA(G4(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return tA(this,t,n,r);default:return RK(this,t,n,r)}}toDate(t,n){return DK(this,t,n)}toString(){return FK(this)}compare(t){let n=EK(this,t);return n===0?bCe(this,Im(t)):n}}class Lm{#e;constructor(...t){let[n,r,i,a,o]=nA(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Kh(this)}copy(){return this.era?new Lm(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Lm(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return OK(this,t)}subtract(t){return LCe(this,t)}set(t,n){return OCe(this,t,n)}cycle(t,n,r){return RCe(this,t,n,r)}toDate(){return MCe(this)}toString(){return VCe(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-ECe(t,this.timeZone).toDate().getTime()}}const om=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],jCe=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Bb=[1867,1911,1925,1988,2018],_d=["meiji","taisho","showa","heisei","reiwa"];function pF(e){const t=om.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?om.length-1:t===0?0:t-1}function B7(e){let t=Bb[_d.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Wn(e.year+t,e.month,e.day)}class UCe extends yl{fromJulianDay(t){let n=super.fromJulianDay(t),r=pF(n);return new Wn(this,_d[r],n.year-Bb[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(B7(t))}balanceDate(t){let n=B7(t),r=pF(n);_d[r]!==t.era&&(t.era=_d[r],t.year=n.year-Bb[r]),this.constrainDate(t)}constrainDate(t){let n=_d.indexOf(t.era),r=jCe[n];if(r!=null){let[i,a,o]=r,s=i-Bb[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=om[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return _d}getYearsInEra(t){let n=_d.indexOf(t.era),r=om[n],i=om[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(B7(t))}getMinimumMonthInYear(t){let n=mF(t);
11return n?n[1]:1}getMinimumDayInMonth(t){let n=mF(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function mF(e){if(e.year===1){let t=_d.indexOf(e.era);return om[t]}}const zK=-543;class HCe extends yl{fromJulianDay(t){let n=super.fromJulianDay(t),r=pv(n.era,n.year);return new Wn(this,r-zK,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gF(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(gF(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function gF(e){let[t,n]=h6(e.year+zK);return new Wn(t,n,e.month,e.day)}const Z4=1911;function NK(e){return e.era==="minguo"?e.year+Z4:1-e.year+Z4}function yF(e){let t=e-Z4;return t>0?["minguo",t]:["before_minguo",1-t]}class qCe extends yl{fromJulianDay(t){let n=super.fromJulianDay(t),r=pv(n.era,n.year),[i,a]=yF(r);return new Wn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(vF(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=yF(NK(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(vF(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Z4}constructor(...t){super(...t),this.identifier="roc"}}function vF(e){let[t,n]=h6(NK(e));return new Wn(t,n,e.month,e.day)}const _F=1948320,bF=[0,31,62,93,124,155,186,216,246,276,306,336];class WCe{fromJulianDay(t){let n=t-_F,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-bF[o]+1;return new Wn(this,r,o+1,s)}toJulianDay(t){let n=_F-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=bF[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||am(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const F7=78,xF=80;class GCe extends yl{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-F7,i=t-fh(n.era,n.year,1,1),a;i<xF?(r--,a=Md(n.year-1)?31:30,i+=a+155+90+10):(a=Md(n.year)?31:30,i-=xF);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new Wn(this,r,o,s)}toJulianDay(t){let n=t.year+F7,[r,i]=h6(n),a,o;return Md(i)?(a=31,o=fh(r,i,3,21)):(a=30,o=fh(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Md(t.year+F7)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const K4=1948440,wF=1948439,ws=1300,p0=1600,ZCe=460322;function Y4(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function VK(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Y4(t,r,1,1)))/29.5)+1),a=n-Y4(t,r,i,1)+1;return new Wn(e,r,i,a)}function SF(e){return(14+11*e)%30<11}class rA{fromJulianDay(t){return VK(this,K4,t)}toJulianDay(t){return Y4(K4,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&SF(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return SF(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class KCe extends rA{fromJulianDay(t){return VK(this,wF,t)}toJulianDay(t){return Y4(wF,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const YCe="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let NC,sm;function Fb(e){return ZCe+sm[e-ws]}function ny(e,t){let n=e-ws,r=1<<11-(t-1);return(NC[n]&r)===0?29:30}function CF(e,t){let n=Fb(e);for(let r=1;r<t;r++)n+=ny(e,r);return n}function TF(e){return sm[e+1-ws]-sm[e-ws]}class XCe extends rA{constructor(){if(super(),this.identifier="islamic-umalqura",NC||(NC=new Uint16Array(Uint8Array.from(atob(YCe),t=>t.charCodeAt(0)).buffer)),!sm){sm=new Uint32Array(p0-ws+1);let t=0;for(let n=ws;n<=p0;n++){sm[n-ws]=t;
11for(let r=1;r<=12;r++)t+=ny(n,r)}}}fromJulianDay(t){let n=t-K4,r=Fb(ws),i=Fb(p0);if(n<r||n>i)return super.fromJulianDay(t);{let a=ws-1,o=1,s=1;for(;s>0;){a++,s=n-Fb(a)+1;let l=TF(a);if(s===l){o=12;break}else if(s<l){let u=ny(a,o);for(o=1;s>u;)s-=u,o++,u=ny(a,o);break}}return new Wn(this,a,o,n-CF(a,o)+1)}}toJulianDay(t){return t.year<ws||t.year>p0?super.toJulianDay(t):K4+CF(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ws||t.year>p0?super.getDaysInMonth(t):ny(t.year,t.month)}getDaysInYear(t){return t.year<ws||t.year>p0?super.getDaysInYear(t):TF(t.year)}}const kF=347997,jK=1080,UK=24*jK,JCe=29,QCe=12*jK+793,eTe=JCe*UK+QCe;function oh(e){return am(e*7+1,19)<7}function zb(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return am(3*(r+1),7)<3&&(r+=1),r}function tTe(e){let t=zb(e-1),n=zb(e);return zb(e+1)-n===356?2:n-t===382?1:0}function Py(e){return zb(e)+tTe(e)}function HK(e){return Py(e+1)-Py(e)}function nTe(e){let t=HK(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function C3(e,t){if(t>=6&&!oh(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=nTe(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?oh(e)?30:0:30}class rTe{fromJulianDay(t){let n=t-kF,r=n*UK/eTe,i=Math.floor((19*r+234)/235)+1,a=Py(i),o=Math.floor(n-a);for(;o<1;)i--,a=Py(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=C3(i,s),s++;s--,l-=C3(i,s);let u=o-l;return new Wn(this,i,s,u)}toJulianDay(t){let n=Py(t.year);for(let r=1;r<t.month;r++)n+=C3(t.year,r);return n+t.day+kF}getDaysInMonth(t){return C3(t.year,t.month)}getMonthsInYear(t){return oh(t.year)?13:12}getDaysInYear(t){return HK(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(oh(n.year)&&!oh(t.year)&&n.month>6?t.month--:!oh(n.year)&&oh(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const VC=1723856,EF=1824665,jC=5500;function Dy(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function iA(e,t){let n=Math.floor(4*(t-e)/1461);t>=Dy(e,n+1,1,1)&&n++;let r=1+Math.floor((t-Dy(e,n,1,1))/30),i=t+1-Dy(e,n,r,1);return[n,r,i]}function qK(e){return Math.floor(e%4/3)}function WK(e,t){return t%13!==0?30:qK(e)+5}class aA{fromJulianDay(t){let[n,r,i]=iA(VC,t),a="AM";return n<=0&&(a="AA",n+=jC),new Wn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=jC),Dy(VC,n,t.month,t.day)}getDaysInMonth(t){return WK(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+qK(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class iTe extends aA{fromJulianDay(t){let[n,r,i]=iA(VC,t);return n+=jC,new Wn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class aTe extends aA{fromJulianDay(t){let[n,r,i]=iA(EF,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Wn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Dy(EF,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),WK(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function oTe(e){switch(e){case"buddhist":return new HCe;case"ethiopic":return new aA;case"ethioaa":return new iTe;case"coptic":return new aTe;case"hebrew":return new rTe;case"indian":return new GCe;case"islamic-civil":return new rA;case"islamic-tbla":return new KCe;case"islamic-umalqura":return new XCe;case"japanese":return new UCe;case"persian":return new WCe;case"roc":return new qCe;default:return new yl}}let z7=new Map;class zu{constructor(t,n={}){this.formatter=GK(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} â ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" â ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return uTe()&&(this.resolvedHourCycle||(this.resolvedHourCycle=cTe(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const sTe={true:{ja:"h11"},false:{}};function GK(e,t={}){if(typeof t.hour12=="boolean"&&lTe()){t={...t};let i=sTe[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(z7.has(n))return z7.get(n);let r=new Intl.DateTimeFormat(e,t);return z7.set(n,r),r}let N7=null;function lTe(){return N7==null&&(N7=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),N7}let V7=null;function uTe(){return V7==null&&(V7=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),V7}function cTe(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=GK(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function dTe(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function ks(e,t=Kd()){return m6(e)?e.toDate():e.toDate(t)}function fTe(e){return e instanceof $m}function m6(e){return e instanceof Lm}function UC(e){return fTe(e)||m6(e)}function iu(e){if(e instanceof Date){const t=e.getFullYear(),n=e.getMonth()+1;return new Date(t,n,0).getDate()}else return e.set({day:100}).day}function W0(e,t){return e.compare(t)<0}function T3(e,t){return e.compare(t)>0}function hTe(e,t,n){const r=kK(e,n);return t>r?e.subtract({days:r+7-t}):t===r?e:e.subtract({days:r-t})}function pTe(e,t,n){const r=kK(e,n),i=t===0?6:t-1;return r===i?e:r>i?e.add({days:7-r+i}):e.add({days:i-r})}function MF(e,t){const n=[];let r=e.add({days:1});const i=t;for(;r.compare(i)<0;)n.push(r),r=r.add({days:1});return n}function j7(e){const{dateObj:t,weekStartsOn:n,fixedWeeks:r,locale:i}=e,a=iu(t),o=Array.from({length:a},(v,b)=>t.set({day:b+1})),s=OC(t),l=cF(t),u=hTe(s,n,i),c=pTe(l,n,i),d=MF(u.subtract({days:1}),s),f=MF(l,c.add({days:1})),h=d.length+o.length+f.length;if(r&&h<42){const v=42-h;let b=f[f.length-1];b||(b=cF(t));const x=Array.from({length:v},(_,w)=>{const C=w+1;return b.add({days:C})});f.push(...x)}const p=d.concat(o,f),g=dTe(p,7);return{value:t,cells:p,rows:g}}function jf(e){const{numberOfMonths:t,dateObj:n,...r}=e,i=[];if(!t||t===1)return i.push(j7({...r,dateObj:n})),i;i.push(j7({...r,dateObj:n}));for(let a=1;a<t;a++){const o=n.add({months:a});i.push(j7({...r,dateObj:o}))}return i}const mTe=["top","right","bottom","left"],Yd=Math.min,vc=Math.max,X4=Math.round,k3=Math.floor,_c=e=>({x:e,y:e}
11),gTe={left:"right",right:"left",bottom:"top",top:"bottom"};function ZK(e,t,n){return vc(e,Yd(t,n))}function Mc(e,t){return typeof e=="function"?e(t):e}function Xd(e){return e.split("-")[0]}function v1(e){return e.split("-")[1]}function oA(e){return e==="x"?"y":"x"}function sA(e){return e==="y"?"height":"width"}function Gl(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lA(e){return oA(Gl(e))}function yTe(e,t,n){n===void 0&&(n=!1);const r=v1(e),i=lA(e),a=sA(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=J4(o)),[o,J4(o)]}function vTe(e){const t=J4(e);return[HC(e),t,HC(t)]}function HC(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const AF=["left","right"],PF=["right","left"],_Te=["top","bottom"],bTe=["bottom","top"];function xTe(e,t,n){switch(e){case"top":case"bottom":return n?t?PF:AF:t?AF:PF;case"left":case"right":return t?_Te:bTe;default:return[]}}function wTe(e,t,n,r){const i=v1(e);let a=xTe(Xd(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(HC)))),a}function J4(e){const t=Xd(e);return gTe[t]+e.slice(t.length)}function STe(e){var t,n,r,i;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(i=e.left)!=null?i:0}}function KK(e){return typeof e!="number"?STe(e):{top:e,right:e,bottom:e,left:e}}function Q4(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function DF(e,t,n){let{reference:r,floating:i}=e;const a=Gl(t),o=lA(t),s=sA(o),l=Xd(t),u=a==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}const p=v1(t);return p&&(h[o]+=f*(p==="end"?1:-1)*(n&&u?-1:1)),h}async function CTe(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Mc(t,e),p=KK(h),v=s[f?d==="floating"?"reference":"floating":d],b=Q4(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),x=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),w=await(a.isElement==null?void 0:a.isElement(_))&&await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1},C=Q4(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:_,strategy:l}):x);return{top:(b.top-C.top+p.top)/w.y,bottom:(C.bottom-b.bottom+p.bottom)/w.y,left:(b.left-C.left+p.left)/w.x,right:(C.right-b.right+p.right)/w.x}}const TTe=50,kTe=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:CTe},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=DF(u,r,l),f=r,h=0;const p={};for(let g=0;g<a.length;g++){const v=a[g];if(!v)continue;const{name:b,fn:x}=v,{x:_,y:w,data:C,reset:T}=await x({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=_??c,d=w??d,p[b]={...p[b],...C},T&&h<TTe&&(h++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(u=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:c,y:d}=DF(u,f,l)),g=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}},ETe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Mc(e,t)||{};if(u==null)return{};const d=KK(c),f={x:n,y:r},h=lA(i),p=sA(h),g=await o.getDimensions(u),v=h==="y",b=v?"top":"left",x=v?"bottom":"right",_=v?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[h]-f[h]-a.floating[p],C=f[h]-a.reference[h],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=T?T[_]:0;(!k||!await(o.isElement==null?void 0:o.isElement(T)))&&(k=s.floating[_]||a.floating[p]);const A=w/2-C/2,P=k/2-g[p]/2-1,D=Yd(d[b],P),$=Yd(d[x],P),O=k-g[p]-$,z=k/2-g[p]/2+A,j=ZK(D,z,O),B=!l.arrow&&v1(i)!=null&&z!==j&&a.reference[p]/2-(z<D?D:$)-g[p]/2<0,R=B?z<D?z-D:z-O:0;return{[h]:f[h]+R,data:{[h]:j,centerOffset:z-j-R,...B&&{alignmentOffset:R}},reset:B}}}),MTe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=Mc(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Xd(i),x=Gl(s),_=Xd(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(_||!g?[J4(s)]:vTe(s)),T=p!=="none";!f&&T&&C.push(...wTe(s,g,p,w));const k=[s,...C],A=await l.detectOverflow(t,v),P=[];let D=((r=a.flip)==null?void 0:r.overflows)||[];
11if(c&&P.push(A[b]),d){const j=yTe(i,o,w);P.push(A[j[0]],A[j[1]])}if(D=[...D,{placement:i,overflows:P}],!P.every(j=>j<=0)){var $,O;const j=((($=a.flip)==null?void 0:$.index)||0)+1,B=k[j];if(B&&(!(d==="alignment"?x!==Gl(B):!1)||D.every(K=>Gl(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:j,overflows:D},reset:{placement:B}};let R=(O=D.filter(J=>J.overflows[0]<=0).sort((J,K)=>J.overflows[1]-K.overflows[1])[0])==null?void 0:O.placement;if(!R)switch(h){case"bestFit":{var z;const J=(z=D.filter(K=>{if(T){const Z=Gl(K.placement);return Z===x||Z==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(Z=>Z>0).reduce((Z,ne)=>Z+ne,0)]).sort((K,Z)=>K[1]-Z[1])[0])==null?void 0:z[0];J&&(R=J);break}case"initialPlacement":R=s;break}if(i!==R)return{reset:{placement:R}}}return{}}}};function IF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $F(e){return mTe.some(t=>e[t]>=0)}const ATe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=Mc(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...a,elementContext:"reference"}),s=IF(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$F(s)}}}case"escaped":{const o=await r.detectOverflow(t,{...a,altBoundary:!0}),s=IF(o,n.floating);return{data:{escapedOffsets:s,escaped:$F(s)}}}default:return{}}}}},YK=new Set(["left","top"]);async function PTe(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xd(n),s=v1(n),l=Gl(n)==="y",u=YK.has(o)?-1:1,c=a&&l?-1:1,d=Mc(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const DTe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await PTe(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},ITe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:_,y:w}=x;return{x:_,y:w}}},...u}=Mc(e,t),c={x:n,y:r},d=await a.detectOverflow(t,u),f=Gl(i),h=oA(f);let p=c[h],g=c[f];const v=(x,_)=>ZK(_+d[x==="y"?"top":"left"],_,_-d[x==="y"?"bottom":"right"]);o&&(p=v(h,p)),s&&(g=v(f,g));const b=l.fn({...t,[h]:p,[f]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:o,[f]:s}}}}}},$Te=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:i,y:a,placement:o,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Mc(e,t),f={x:i,y:a},h=Gl(o),p=oA(h);let g=f[p],v=f[h];const b=Mc(u,t),x=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(r=b.crossAxis)!=null?r:0};if(c){const C=p==="y"?"height":"width",T=s.reference[p]-s.floating[C]+x.mainAxis,k=s.reference[p]+s.reference[C]-x.mainAxis;g<T?g=T:g>k&&(g=k)}if(d){var _,w;const C=p==="y"?"width":"height",T=YK.has(Xd(o)),k=s.reference[h]-s.floating[C]+(T&&((_=l.offset)==null?void 0:_[h])||0)+(T?0:x.crossAxis),A=s.reference[h]+s.reference[C]+(T?0:((w=l.offset)==null?void 0:w[h])||0)-(T?x.crossAxis:0);v<k?v=k:v>A&&(v=A)}return{[p]:g,[h]:v}}}},LTe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Mc(e,t),l=await i.detectOverflow(t,s),u=Xd(n),c=v1(n),d=Gl(n)==="y",{width:f,height:h}=r.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=c===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,p=c==="end"?"top":"bottom");const v=h-l.top-l.bottom,b=f-l.left-l.right,x=Yd(h-l[p],v),_=Yd(f-l[g],b),w=t.middlewareData.shift,C=!w;let T=x,k=_;w!=null&&w.enabled.x&&(k=b),w!=null&&w.enabled.y&&(T=v),C&&!c&&(d?k=f-2*vc(l.left,l.right):T=h-2*vc(l.top,l.bottom)),await o({...t,availableWidth:k,availableHeight:T});const A=await i.getDimensions(a.floating);return f!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function g6(){return typeof window<"u"}function yp(e){return uA(e)?(e.nodeName||"").toLowerCase():"#document"}function go(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oc(e){var t;return(t=(uA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uA(e){return g6()?e instanceof Node||e instanceof go(e).Node:!1}function au(e){return g6()?e instanceof Element||e instanceof go(e).Element:!1}function ff(e){return g6()?e instanceof HTMLElement||e instanceof go(e).HTMLElement:!1}function LF(e){return!g6()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof go(e).ShadowRoot}function y6(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ou(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function RTe(e){return/^(table|td|th)$/.test(yp(e))}function v6(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const OTe=/transform|translate|scale|rotate|perspective|filter/,BTe=/paint|layout|strict|content/,Uf=e=>!!e&&e!=="none";let U7;function cA(e){const t=au(e)?ou(e):e;return Uf(t.transform)||Uf(t.translate)||Uf(t.scale)||Uf(t.rotate)||Uf(t.perspective)||!dA()&&(Uf(t.backdropFilter)||Uf(t.filter))||OTe.test(t.willChange||"")||BTe.test(t.contain||"")}function FTe(e){let t=Yh(e);for(;ff(t)&&!_2(t);){if(cA(t))return t;if(v6(t))return null;t=Yh(t)}return null}function dA(){return U7==null&&(U7=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),U7}function _2(e){return/^(html|body|#document)$/.test(yp(e))}function ou(e){return go(e).getComputedStyle(e)}function _6(e){return au(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yh(e){if(yp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||LF(e)&&e.host||Oc(e);return LF(t)?t.host:t}function XK(e){const t=Yh(e);return _2(t)?(e.ownerDocument||e).body:ff(t)&&y6(t)?t:XK(t)}function b2(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=XK(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=go(i);if(a){const s=qC(o);
11return t.concat(o,o.visualViewport||[],y6(i)?i:[],s&&n?b2(s):[])}else return t.concat(i,b2(i,[],n))}function qC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function JK(e){const t=ou(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ff(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=X4(n)!==a||X4(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function fA(e){return au(e)?e:e.contextElement}function lm(e){const t=fA(e);if(!ff(t))return _c(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=JK(t);let o=(a?X4(n.width):n.width)/r,s=(a?X4(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const zTe=_c(0);function QK(e){const t=go(e);return!dA()||!t.visualViewport?zTe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NTe(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===go(e)}function Xh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=fA(e);let o=_c(1);t&&(r?au(r)&&(o=lm(r)):o=lm(e));const s=NTe(a,n,r)?QK(a):_c(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(a&&r){const f=go(a),h=au(r)?go(r):r;let p=f,g=qC(p);for(;g&&h!==p;){const v=lm(g),b=g.getBoundingClientRect(),x=ou(g),_=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,w=b.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=_,u+=w,p=go(g),g=qC(p)}}return Q4({width:c,height:d,x:l,y:u})}function b6(e,t){const n=_6(e).scrollLeft;return t?t.left+n:Xh(Oc(e)).left+n}function eY(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-b6(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function VTe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Oc(r),s=t?v6(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=_c(1);const c=_c(0),d=ff(r);if((d||!a)&&((yp(r)!=="body"||y6(o))&&(l=_6(r)),d)){const h=Xh(r);u=lm(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=o&&!d&&!a?eY(o,l):_c(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function jTe(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function UTe(e){const t=_6(e),n=e.ownerDocument.body,r=vc(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=vc(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+b6(e);const o=-t.scrollTop;return ou(n).direction==="rtl"&&(a+=vc(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}const HTe=25;function qTe(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",i=go(e),a=Oc(e),o=i.visualViewport;let s=a.clientWidth,l=a.clientHeight,u=0,c=0;if(o){const f=!dA()||t==="fixed";r?f||(u=-o.offsetLeft,c=-o.offsetTop):(s=o.width,l=o.height,f&&(u=o.offsetLeft,c=o.offsetTop))}if(b6(a)<=0){const f=a.ownerDocument,h=f.body,p=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(a.clientWidth-h.clientWidth-g),b=getComputedStyle(a).scrollbarGutter==="stable both-edges"?v/2:v;b<=HTe&&(s-=b)}return{width:s,height:l,x:u,y:c}}function WTe(e,t){const n=Xh(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=lm(e),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:o,height:s,x:l,y:u}}function RF(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=qTe(e,n,t);else if(t==="document")r=UTe(Oc(e));else if(au(t))r=WTe(t,n);else{const i=QK(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Q4(r)}function GTe(e,t){const n=t.get(e);if(n)return n;let r=b2(e,[],!1).filter(s=>au(s)&&yp(s)!=="body"),i=null;const a=ou(e).position==="fixed";let o=a?Yh(e):e;for(;au(o)&&!_2(o);){const s=ou(o),l=cA(o),u=i?i.position:a?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?r=r.filter(d=>d!==o):i=s,o=Yh(o)}return t.set(e,r),r}function ZTe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?v6(t)?[]:GTe(t,this._c):[].concat(n),r],s=RF(t,o[0],i);let l=s.top,u=s.right,c=s.bottom,d=s.left;for(let f=1;f<o.length;f++){const h=RF(t,o[f],i);l=vc(h.top,l),u=Yd(h.right,u),c=Yd(h.bottom,c),d=vc(h.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function KTe(e){const{width:t,height:n}=JK(e);return{width:t,height:n}}function YTe(e,t,n){const r=ff(t),i=Oc(t),a=n==="fixed",o=Xh(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=_c(0);
11if((r||!a)&&((yp(t)!=="body"||y6(i))&&(s=_6(t)),r)){const f=Xh(t,!0,a,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&i&&(l.x=b6(i));const u=i&&!r&&!a?eY(i,s):_c(0),c=o.left+s.scrollLeft-l.x-u.x,d=o.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:o.width,height:o.height}}function H7(e){return ou(e).position==="static"}function OF(e,t){if(!ff(e)||ou(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oc(e)===n&&(n=n.ownerDocument.body),n}function tY(e,t){const n=go(e);if(v6(e))return n;if(!ff(e)){let i=Yh(e);for(;i&&!_2(i);){if(au(i)&&!H7(i))return i;i=Yh(i)}return n}let r=OF(e,t);for(;r&&RTe(r)&&H7(r);)r=OF(r,t);return r&&_2(r)&&H7(r)&&!cA(r)?n:r||FTe(e)||n}const XTe=async function(e){const t=this.getOffsetParent||tY,n=this.getDimensions,r=await n(e.floating);return{reference:YTe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JTe(e){return ou(e).direction==="rtl"}const QTe={convertOffsetParentRelativeRectToViewportRelativeRect:VTe,getDocumentElement:Oc,getClippingRect:ZTe,getOffsetParent:tY,getElementRects:XTe,getClientRects:jTe,getDimensions:KTe,getScale:lm,isElement:au,isRTL:JTe};function nY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eke(e,t,n){let r=null,i;const a=Oc(e);function o(){var c;clearTimeout(i),(c=r)==null||c.disconnect(),r=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const f=e.getBoundingClientRect(),{left:h,top:p,width:g,height:v}=f;if(c||t(),!g||!v)return;const b=k3(p),x=k3(a.clientWidth-(h+g)),_=k3(a.clientHeight-(p+v)),w=k3(h),T={rootMargin:-b+"px "+-x+"px "+-_+"px "+-w+"px",threshold:vc(0,Yd(1,d))||1};let k=!0;function A(P){const D=P[0].intersectionRatio;if(!nY(f,e.getBoundingClientRect()))return s();if(D!==d){if(!k)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(A,{...T,root:a.ownerDocument})}catch{r=new IntersectionObserver(A,T)}r.observe(e)}const l=go(e),u=()=>s(n);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),o()}}function tke(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=fA(e),c=i||a?[...u?b2(u):[],...t?b2(t):[]]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n),a&&b.addEventListener("resize",n)});const d=u&&s?eke(u,n,a):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[x]=b;x&&x.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let p,g=l?Xh(e):null;l&&v();function v(){const b=Xh(e);g&&!nY(g,b)&&n(),g=b,p=requestAnimationFrame(v)}return n(),()=>{var b;c.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),d?.(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const nke=DTe,rke=ITe,BF=MTe,ike=LTe,ake=ATe,oke=ETe,ske=$Te,lke=(e,t,n)=>{const r=new Map,i=n??{},a={...QTe,...i.platform,_c:r};return kTe(e,t,{...i,platform:a})};function uke(e){return e!=null&&typeof e=="object"&&"$el"in e}function WC(e){if(uke(e)){const t=e.$el;return uA(t)&&yp(t)==="#comment"?null:t}return e}function P0(e){return typeof e=="function"?e():m(e)}function cke(e){return{name:"arrow",options:e,fn(t){const n=WC(P0(e.element));return n==null?{}:oke({element:n,padding:e.padding}).fn(t)}}}function rY(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function FF(e,t){const n=rY(e);return Math.round(t*n)/n}function dke(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=W(()=>{var k;return(k=P0(n.open))!=null?k:!0}),a=W(()=>P0(n.middleware)),o=W(()=>{var k;return(k=P0(n.placement))!=null?k:"bottom"}),s=W(()=>{var k;return(k=P0(n.strategy))!=null?k:"absolute"}),l=W(()=>{var k;return(k=P0(n.transform))!=null?k:!0}),u=W(()=>WC(e.value)),c=W(()=>WC(t.value)),d=G(0),f=G(0),h=G(s.value),p=G(o.value),g=Bt({}),v=G(!1),b=W(()=>{const k={position:h.value,left:"0",top:"0"};if(!c.value)return k;const A=FF(c.value,d.value),P=FF(c.value,f.value);return l.value?{...k,transform:"translate("+A+"px, "+P+"px)",...rY(c.value)>=1.5&&{willChange:"transform"}}
11:{position:h.value,left:A+"px",top:P+"px"}});let x;function _(){if(u.value==null||c.value==null)return;const k=i.value;lke(u.value,c.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(A=>{d.value=A.x,f.value=A.y,h.value=A.strategy,p.value=A.placement,g.value=A.middlewareData,v.value=k!==!1})}function w(){typeof x=="function"&&(x(),x=void 0)}function C(){if(w(),r===void 0){_();return}if(u.value!=null&&c.value!=null){x=r(u.value,c.value,_);return}}function T(){i.value||(v.value=!1)}return Je([a,o,s,i],_,{flush:"sync"}),Je([u,c],C,{flush:"sync"}),Je(i,T,{flush:"sync"}),qa()&&vo(w),{x:jl(d),y:jl(f),strategy:jl(h),placement:jl(p),middlewareData:jl(g),isPositioned:jl(v),floatingStyles:b,update:_}}function mn(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const a=cr(r,i);if(a||a===null)return a;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Si(r,i),i)]}function hA(e,t,n){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function e5(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function fke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hke=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const hh=fke(hke);function um(e){return e==null}function pA(e){const{defaultValue:t,defaultPlaceholder:n,granularity:r="day",locale:i="en"}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(n)return n.copy();const a=new Date,o=a.getFullYear(),s=a.getMonth()+1,l=a.getDate(),u=["hour","minute","second"],c=new zu(i),d=oTe(c.resolvedOptions().calendar);return u.includes(r??"day")?co(new $m(o,s,l,0,0,0),d):co(new Wn(o,s,l),d)}const pke=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],mke=["year","month","day"],q7={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"áááá",month:"áá",day:"áá"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"Ø³ÙØ©",month:"Ø´ÙØ±",day:"ÙÙÙ
"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"Ù
اÙÚ¯",day:"ÚÛÚ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"ساÙ",month:"Ù
اÙ",day:"Ø±ÙØ²"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"×©× ×",month:"×××ש",day:"×××"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" å¹´ ",month:"æ",day:"æ¥"},ka:{year:"á¬á¬á¬á¬",month:"áá",day:"á á "},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮà³",day:"ದಿದಿ"},ko:{year:"ì°ë",month:"ì",day:"ì¼"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"àºàºàºàº",month:"àºàº",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷà´",month:"മാസà´",day:"à´¤àµà´¯à´¤à´¿"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"}
11,rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"ÑÑÑÑ",month:"мм",day:"ÑÑ"},th:{year:"à¸à¸à¸à¸",month:"à¸à¸",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"ÑÑÑÑ",month:"мм",day:"дд"},"zh-CN":{year:"å¹´",month:"æ",day:"æ¥"},"zh-TW":{year:"å¹´",month:"æ",day:"æ¥"}};function gke(e){if(zF(e))return q7[e];{const t=bke(e);return zF(t)?q7[t]:q7.en}}function W7(e,t,n){return yke(e)?gke(n)[e]:_ke(e)?t:vke(e)?"ââ":""}function zF(e){return pke.includes(e)}function yke(e){return mke.includes(e)}function vke(e){return e==="hour"||e==="minute"||e==="second"}function _ke(e){return e==="era"||e==="dayPeriod"}function bke(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const mA=["day","month","year"],iY=["hour","minute","second","dayPeriod"],aY=[...mA,...iY];function xke(e){return mA.includes(e)}function oY(e){return aY.includes(e)}function wke(e,t){const n={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short",hourCycle:t===24?"h24":void 0,hour12:t===24?!1:void 0};return e==="day"&&(delete n.second,delete n.hour,delete n.minute,delete n.timeZoneName),e==="hour"&&(delete n.minute,delete n.second),e==="minute"&&delete n.second,n}function Ske(e){const t=e.querySelector("[data-selected]");if(t)return t.focus();const n=e.querySelector("[data-today]");if(n)return n.focus();const r=e.querySelector("[data-radix-vue-calendar-day]");if(r)return r.focus()}function Cke(e,t){var n;const r=Bt();return ii(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),jh(r)}function vp(e){return qa()?(vo(e),!0):!1}function Tke(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const r=()=>t(n);return vp(r),{off:r}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(r=>r(...n)))}}function kke(e){let t=!1,n;const r=lp(!0);return(...i)=>(t||(n=r.run(()=>e(...i)),t=!0),n)}function sY(e){let t=0,n,r;const i=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,n||(r=lp(!0),n=r.run(()=>e(...a))),vp(i),n)}function ul(e){return typeof e=="function"?e():m(e)}const Bc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Eke=e=>typeof e<"u",Mke=e=>e!=null,Ake=Object.prototype.toString,Pke=e=>Ake.call(e)==="[object Object]",GC=()=>{},NF=Dke();function Dke(){var e,t;return Bc&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Ike(e,t){function n(...r){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(a)})}return n}function $ke(e,t={}){let n,r,i=GC;const a=o=>{clearTimeout(o),i(),i=GC};return o=>{const s=ul(e),l=ul(t.maxWait);return n&&a(n),s<=0||l!==void 0&&l<=0?(r&&(a(r),r=null),Promise.resolve(o())):new Promise((u,c)=>{i=t.rejectOnCancel?c:u,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,u(o())},l)),n=setTimeout(()=>{r&&a(r),r=null,u(o())},s)})}}function Lke(e){return $n()}function x6(e,t=1e4){return n1((n,r)=>{let i=ul(e),a;const o=()=>setTimeout(()=>{i=ul(e),r()},ul(t));return vp(()=>{clearTimeout(a)}),{get(){return n(),i},set(s){i=s,r(),clearTimeout(a),a=o()}}})}function Rke(e,t=200,n={}){return Ike($ke(t,n),e)}function Oke(e,t){Lke()&&Wa(e,t)}function lY(e,t,n={}){const{immediate:r=!0}=n,i=G(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function l(...u){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...u)},ul(t))}return r&&(i.value=!0,Bc&&l()),vp(s),{isPending:jh(i),start:l,stop:s}}function Xo(e){var t;const n=ul(e);return(t=n?.$el)!=null?t:n}const mv=Bc?window:void 0;function Jd(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=mv):[t,n,r,i]=e,!t)return GC;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,d,f,h)=>(c.addEventListener(d,f,h),()=>c.removeEventListener(d,f,h)),l=Je(()=>[Xo(t),ul(i)],([c,d])=>{if(o(),!c)return;const f=Pke(d)?{...d}:d;a.push(...n.flatMap(h=>r.map(p=>s(c,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return vp(u),u}function Bke(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Fke(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=mv,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=r,l=Bke(t);return Jd(i,a,u=>{u.repeat&&ul(s)||l(u)&&n(u)},o)}function w6(){const e=G(!1),t=$n();return t&&Ot(()=>{e.value=!0},t),e}function uY(e){const t=w6();return W(()=>
11(t.value,!!e()))}function zke(e,t,n={}){const{window:r=mv,...i}=n;let a;const o=uY(()=>r&&"MutationObserver"in r),s=()=>{a&&(a.disconnect(),a=void 0)},l=W(()=>{const f=ul(e),h=(Array.isArray(f)?f:[f]).map(Xo).filter(Mke);return new Set(h)}),u=Je(()=>l.value,f=>{s(),o.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,i)))},{immediate:!0,flush:"post"}),c=()=>a?.takeRecords(),d=()=>{s(),u()};return vp(d),{isSupported:o,stop:d,takeRecords:c}}function Nke(e){return JSON.parse(JSON.stringify(e))}function cY(e,t,n={}){const{window:r=mv,...i}=n;let a;const o=uY(()=>r&&"ResizeObserver"in r),s=()=>{a&&(a.disconnect(),a=void 0)},l=W(()=>Array.isArray(e)?e.map(d=>Xo(d)):[Xo(e)]),u=Je(l,d=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(const f of d)f&&a.observe(f,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return vp(c),{isSupported:o,stop:c}}function Yn(e,t,n,r={}){var i,a,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=r,h=$n(),p=n||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((o=(a=h?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(h?.proxy));let g=u;t||(t="modelValue"),g=g||`update:${t.toString()}`;const v=_=>s?typeof s=="function"?s(_):Nke(_):_,b=()=>Eke(e[t])?v(e[t]):d,x=_=>{f?f(_)&&p(g,_):p(g,_)};if(l){const _=b(),w=G(_);let C=!1;return Je(()=>e[t],T=>{C||(C=!0,w.value=v(T),At(()=>C=!1))}),Je(w,T=>{!C&&(T!==e[t]||c)&&x(T)},{deep:c}),w}else return W({get(){return b()},set(_){x(_)}})}function S6(e){return e?e.flatMap(t=>t.type===Ae?S6(t.children):[t]):[]}function hi(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}const Vke=["INPUT","TEXTAREA"];function C6(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Vke.includes(t.nodeName))return null;const{arrowKeyOptions:i="both",attributeName:a="[data-radix-vue-collection-item]",itemsArray:o=[],loop:s=!0,dir:l="ltr",preventScroll:u=!0,focus:c=!1}=r,[d,f,h,p,g,v]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],b=h||p,x=d||f;if(!g&&!v&&(!b&&!x||i==="vertical"&&x||i==="horizontal"&&b))return null;const _=n?Array.from(n.querySelectorAll(a)):o;if(!_.length)return null;u&&e.preventDefault();let w=null;return x||b?w=dY(_,t,{goForward:b?p:l==="ltr"?d:f,loop:s}):g?w=_.at(0)||null:v&&(w=_.at(-1)||null),c&&w?.focus(),w}function dY(e,t,n,r=e.length){if(--r===0)return null;const i=e.indexOf(t),a=n.goForward?i+1:i-1;if(!n.loop&&(a<0||a>=e.length))return null;const o=(a+e.length)%e.length,s=e[o];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?dY(e,s,n,r):s:null}function G7(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ZC(e,t,n=".",r){if(!G7(t))return ZC(e,{},n);const i=Object.assign({},t);for(const a in e){if(a==="__proto__"||a==="constructor")continue;const o=e[a];o!=null&&(Array.isArray(o)&&Array.isArray(i[a])?i[a]=[...o,...i[a]]:G7(o)&&G7(i[a])?i[a]=ZC(o,i[a],(n?`${n}.`:"")+a.toString()):i[a]=o)}return i}function jke(e){return(...t)=>t.reduce((n,r)=>ZC(n,r,""),{})}const Uke=jke(),[T6]=mn("ConfigProvider");let Hke="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qke=(e=21)=>{let t="",n=e;for(;n--;)t+=Hke[Math.random()*64|0];return t};const Wke=sY(()=>{const e=G(new Map),t=G(),n=W(()=>{for(const o of e.value.values())if(o)return!0;return!1}),r=T6({scrollBody:G(!0)});let i=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",NF&&i?.(),t.value=void 0};return Je(n,(o,s)=>{var l;if(!Bc)return;if(!o){s&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,c={padding:u,margin:0},d=(l=r.scrollBody)!=null&&l.value?typeof r.scrollBody.value=="object"?Uke({padding:r.scrollBody.value.padding===!0?u:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?u:r.scrollBody.value.margin},c):c:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof d.padding=="number"?`${d.padding}px`:String(d.padding),document.body.style.marginRight=typeof d.margin=="number"?`${d.margin}px`:String(d.margin),document.body.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),NF&&(i=Jd(document,"touchmove",f=>Gke(f),{passive:!1})),At(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});
11function gv(e){const t=qke(6),n=Wke();n.value.set(t,e??!1);const r=W({get:()=>n.value.get(t)??!1,set:i=>n.value.set(t,i)});return Oke(()=>{n.value.delete(t)}),r}function fY(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:fY(n)}}function Gke(e){const t=e||window.event,n=t.target;return n instanceof Element&&fY(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}const Zke="data-radix-vue-collection-item";function hf(e,t=Zke){const n=e??Symbol();return{createCollection:r=>{const i=G([]);function a(){const o=Xo(r);return o?i.value=Array.from(o.querySelectorAll(`[${t}]:not([data-disabled])`)):i.value=[]}return jE(()=>{i.value=[]}),Ot(a),av(a),Je(()=>r?.value,a,{immediate:!0}),Si(n,i),i},injectCollection:()=>cr(n,G([]))}}function hY(e){const t=G(e);function n(){return t.value}function r(g){t.value=g}function i(g,v){return new zu(t.value,v).format(g)}function a(g,v=!0){return UC(g)&&v?i(ks(g),{dateStyle:"long",timeStyle:"long"}):i(ks(g),{dateStyle:"long"})}function o(g,v={}){return new zu(t.value,{month:"long",year:"numeric",...v}).format(g)}function s(g,v={}){return new zu(t.value,{month:"long",...v}).format(g)}function l(){const g=v2(Kd());return[1,2,3,4,5,6,7,8,9,10,11,12].map(v=>({label:s(ks(g.set({month:v}))),value:v}))}function u(g,v={}){return new zu(t.value,{year:"numeric",...v}).format(g)}function c(g,v){return m6(g)?new zu(t.value,{...v,timeZone:g.timeZone}).formatToParts(ks(g)):new zu(t.value,v).formatToParts(ks(g))}function d(g,v="narrow"){return new zu(t.value,{weekday:v}).format(g)}function f(g){var v;return((v=new zu(t.value,{hour:"numeric",minute:"numeric"}).formatToParts(g).find(b=>b.type==="dayPeriod"))==null?void 0:v.value)==="PM"?"PM":"AM"}const h={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function p(g,v,b={}){const x={...h,...b},_=c(g,x).find(w=>w.type===v);return _?_.value:""}return{setLocale:r,getLocale:n,fullMonth:s,fullYear:u,fullMonthAndYear:o,toParts:c,custom:i,part:p,dayPeriod:f,selectedDate:a,dayOfWeek:d,getMonths:l}}function Za(e){const t=T6({dir:G("ltr")});return W(()=>{var n;return e?.value||((n=t.dir)==null?void 0:n.value)||"ltr"})}function _p(e){const t=$n(),n=t?.type.emits,r={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(i=>{r[vy(ji(i))]=(...a)=>e(i,...a)}),r}let Z7=0;function gA(){ii(e=>{if(!Bc)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??VF()),document.body.insertAdjacentElement("beforeend",t[1]??VF()),Z7++,e(()=>{Z7===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Z7--})})}function VF(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function _1(e){return W(()=>{var t;return ul(e)?!!((t=Xo(e))!=null&&t.closest("form")):!0})}function b1(e){const t=$n(),n=Object.keys(t?.type.props??{}).reduce((i,a)=>{const o=(t?.type.props[a]).default;return o!==void 0&&(i[a]=o),i},{}),r=Ts(e);return W(()=>{const i={},a=t?.vnode.props??{};return Object.keys(a).forEach(o=>{i[ji(o)]=a[o]}),Object.keys({...n,...i}).reduce((o,s)=>(r.value[s]!==void 0&&(o[s]=r.value[s]),o),{})})}function Sl(e,t){const n=b1(e),r=t?_p(t):{};return W(()=>({...n.value,...r}))}function Qe(){const e=$n(),t=G(),n=W(()=>{var o,s;return["#text","#comment"].includes((o=t.value)==null?void 0:o.$el.nodeName)?(s=t.value)==null?void 0:s.$el.nextElementSibling:Xo(t)}),r=Object.assign({},e.exposed),i={};for(const o in e.props)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(r).length>0)for(const o in r)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>r[o]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(o){t.value=o,o&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),e.exposed=i)}return{forwardRef:a,currentRef:t,currentElement:n}}function Kke(e,t){const n=x6(!1,300),r=G(null),i=Tke();function a(){r.value=null,n.value=!1}function o(s,l){const u=s.currentTarget,c={x:s.clientX,y:s.clientY},d=Yke(c,u.getBoundingClientRect()),f=Xke(c,d),h=Jke(l.getBoundingClientRect()),p=eEe([...f,...h]);r.value=p,n.value=!0}return ii(s=>{if(e.value&&t.value){const l=c=>o(c,t.value),u=c=>o(c,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",u),s(()=>{var c,d;(c=e.value)==null||c.removeEventListener("pointerleave",l),(d=t.value)==null||d.removeEventListener("pointerleave",u)})}}),ii(s=>{var l;if(r.value){const u=c=>{var d,f;if(!r.value)return;const h=c.target,p={x:c.clientX,y:c.clientY},g=((d=e.value)==null?void 0:d.contains(h))||((f=t.value)==null?void 0:f.contains(h)),v=!Qke(p,r.value),b=!!h.closest("[data-grace-area-trigger]");g?a():(v||b)&&(a(),i.trigger())};(l=e.value)==null||l.ownerDocument.addEventListener("pointermove",u),s(()=>{var c;return(c=e.value)==null?void 0:c.ownerDocument.removeEventListener("pointermove",u)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function Yke(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Xke(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Jke(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Qke(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a].x,l=t[a].y,u=t[o].x,c=t[o].y;l>r!=c>r&&n<(u-s)*(r-l)/(c-l)+s&&(i=!i)}return i}function eEe(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),tEe(t)}function tEe(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var nEe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},m0=new WeakMap,E3=new WeakMap,M3={},K7=0,pY=function(e){return e&&(e.host||pY(e.parentNode))},rEe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pY(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},iEe=function(e,t,n,r){var i=rEe(t,Array.isArray(e)?e:[e]);M3[n]||(M3[n]=new WeakMap);var a=M3[n],o=[],s=new Set,l=new Set(i),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};
11i.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else try{var h=f.getAttribute(r),p=h!==null&&h!=="false",g=(m0.get(f)||0)+1,v=(a.get(f)||0)+1;m0.set(f,g),a.set(f,v),o.push(f),g===1&&p&&E3.set(f,!0),v===1&&f.setAttribute(n,"true"),p||f.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return c(t),s.clear(),K7++,function(){o.forEach(function(d){var f=m0.get(d)-1,h=a.get(d)-1;m0.set(d,f),a.set(d,h),f||(E3.has(d)||d.removeAttribute(r),E3.delete(d)),h||d.removeAttribute(n)}),K7--,K7||(m0=new WeakMap,m0=new WeakMap,E3=new WeakMap,M3={})}},aEe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=nEe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),iEe(r,i,n,"aria-hidden")):function(){return null}};function yv(e){let t;Je(()=>Xo(e),n=>{n?t=aEe(n):t&&t()}),br(()=>{t&&t()})}let oEe=0;function Ri(e,t="radix"){if(e)return e;const n=T6({useId:void 0});return Tc?`${t}-${Tc()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++oEe}`}function mY(e){const t=G(),n=W(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),r=W(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return Ot(()=>{const i=Xo(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,u;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,u=d.blockSize}else l=i.offsetWidth,u=i.offsetHeight;t.value={width:l,height:u}});return a.observe(i,{box:"border-box"}),()=>a.unobserve(i)}else t.value=void 0}),{width:n,height:r}}function sEe(e,t){const n=G(e);function r(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=r(i)}}}const lEe="data-item-text";function yA(e){const t=x6("",1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(!(e!=null&&e.value)&&!r)return;t.value=t.value+n;const i=e?.value??r,a=hi(),o=i.map(d=>{var f;return{ref:d,textValue:((f=(d.querySelector(`[${lEe}]`)??d).textContent)==null?void 0:f.trim())??""}}),s=o.find(d=>d.ref===a),l=o.map(d=>d.textValue),u=cEe(l,t.value,s?.textValue),c=o.find(d=>d.textValue===u);return c&&c.ref.focus(),c?.ref},resetTypeahead:()=>{t.value=""}}}function uEe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cEe(e,t,n){const r=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=uEe(e,Math.max(i,0));r.length===1&&(a=a.filter(s=>s!==n));const o=a.find(s=>s.toLowerCase().startsWith(r.toLowerCase()));return o!==n?o:void 0}function vv(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}const vA=Q({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var r,i;if(!n.default)return null;const a=S6(n.default()),o=a.findIndex(c=>c.type!==Zr);if(o===-1)return a;const s=a[o];(r=s.props)==null||delete r.ref;const l=s.props?rt(t,s.props):t;t.class&&(i=s.props)!=null&&i.class&&delete s.props.class;const u=gl(s,l);for(const c in l)c.startsWith("on")&&(u.props||(u.props={}),u.props[c]=l[c]);return a.length===1?u:(a[o]=u,a)}}}),ot=Q({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&["area","img","input"].includes(r)?()=>Nt(r,t):r!=="template"?()=>Nt(e.as,t,{default:n.default}):()=>Nt(vA,t,{default:n.default})}});function _v(){const e=G(),t=W(()=>{var n,r;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(r=e.value)==null?void 0:r.$el.nextElementSibling:Xo(e)});return{primitiveElement:e,currentElement:t}}const[gY,dEe]=mn("CollapsibleRoot"),k6=Q({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{expose:t,emit:n}){const r=e,i=Yn(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=Yn(r,"disabled");return dEe({contentId:"",disabled:a,open:i,onOpenToggle:()=>{i.value=!i.value}}),t({open:i}),Qe(),(o,s)=>(E(),V(m(ot),{as:o.as,"as-child":r.asChild,"data-state":m(i)?"open":"closed","data-disabled":m(a)?"":void 0},{default:N(()=>
11[me(o.$slots,"default",{open:m(i)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),E6=Q({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=gY();return(r,i)=>{var a,o;return E(),V(m(ot),{type:r.as==="button"?"button":void 0,as:r.as,"as-child":t.asChild,"aria-controls":m(n).contentId,"aria-expanded":m(n).open.value,"data-state":m(n).open.value?"open":"closed","data-disabled":(a=m(n).disabled)!=null&&a.value?"":void 0,disabled:(o=m(n).disabled)==null?void 0:o.value,onClick:m(n).onOpenToggle},{default:N(()=>[me(r.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}});function fEe(e,t){var n;const r=G({}),i=G("none"),a=G(e),o=e.value?"mounted":"unmounted";let s;const l=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??mv,{state:u,dispatch:c}=sEe(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=v=>{var b;if(Bc){const x=new CustomEvent(v,{bubbles:!1,cancelable:!1});(b=t.value)==null||b.dispatchEvent(x)}};Je(e,async(v,b)=>{var x;const _=b!==v;if(await At(),_){const w=i.value,C=A3(t.value);v?(c("MOUNT"),d("enter"),C==="none"&&d("after-enter")):C==="none"||((x=r.value)==null?void 0:x.display)==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):b&&w!==C?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=v=>{const b=A3(t.value),x=b.includes(v.animationName),_=u.value==="mounted"?"enter":"leave";if(v.target===t.value&&x&&(d(`after-${_}`),c("ANIMATION_END"),!a.value)){const w=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=l?.setTimeout(()=>{var C;((C=t.value)==null?void 0:C.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=w)})}v.target===t.value&&b==="none"&&c("ANIMATION_END")},h=v=>{v.target===t.value&&(i.value=A3(t.value))},p=Je(t,(v,b)=>{v?(r.value=getComputedStyle(v),v.addEventListener("animationstart",h),v.addEventListener("animationcancel",f),v.addEventListener("animationend",f)):(c("ANIMATION_END"),s!==void 0&&l?.clearTimeout(s),b?.removeEventListener("animationstart",h),b?.removeEventListener("animationcancel",f),b?.removeEventListener("animationend",f))},{immediate:!0}),g=Je(u,()=>{const v=A3(t.value);i.value=u.value==="mounted"?v:"none"});return br(()=>{p(),g()}),{isPresent:W(()=>["mounted","unmountSuspended"].includes(u.value))}}function A3(e){return e&&getComputedStyle(e).animationName||"none"}const Cl=Q({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var r;const{present:i,forceMount:a}=An(e),o=G(),{isPresent:s}=fEe(i,o);n({present:s});let l=t.default({present:s});l=S6(l||[]);const u=$n();if(l&&l?.length>
111){const c=(r=u?.parent)!=null&&r.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(d=>` - ${d}`).join(` 12`)].join(` 13`))}return()=>a.value||i.value||s.value?Nt(t.default({present:s})[0],{ref:c=>{const d=Xo(c);return typeof d?.hasAttribute>"u"||(d!=null&&d.hasAttribute("data-radix-popper-content-wrapper")?o.value=d.firstElementChild:o.value=d),d}}):null}}),M6=Q({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=gY();n.contentId||(n.contentId=Ri(void 0,"radix-vue-collapsible-content"));const r=G(),{forwardRef:i,currentElement:a}=Qe(),o=G(0),s=G(0),l=W(()=>n.open.value),u=G(l.value),c=G();return Je(()=>{var d;return[l.value,(d=r.value)==null?void 0:d.present]},async()=>{await At();const d=a.value;if(!d)return;c.value=c.value||{transitionDuration:d.style.transitionDuration,animationName:d.style.animationName},d.style.transitionDuration="0s",d.style.animationName="none";const f=d.getBoundingClientRect();s.value=f.height,o.value=f.width,u.value||(d.style.transitionDuration=c.value.transitionDuration,d.style.animationName=c.value.animationName)},{immediate:!0}),Ot(()=>{requestAnimationFrame(()=>{u.value=!1})}),(d,f)=>(E(),V(m(Cl),{ref_key:"presentRef",ref:r,present:d.forceMount||m(n).open.value,"force-mount":!0},{default:N(()=>{var h,p;return[H(m(ot),rt(d.$attrs,{id:m(n).contentId,ref:m(i),"as-child":t.asChild,as:d.as,"data-state":m(n).open.value?"open":"closed","data-disabled":(h=m(n).disabled)!=null&&h.value?"":void 0,hidden:!((p=r.value)!=null&&p.present),style:{"--radix-collapsible-content-height":`${s.value}px`,"--radix-collapsible-content-width":`${o.value}px`}}),{default:N(()=>{var g;return[(g=r.value)!=null&&g.present?me(d.$slots,"default",{key:0}):ae("",!0)]}),_:3},16,["id","as-child","as","data-state","data-disabled","hidden","style"])]}),_:3},8,["present"]))}});function yY({type:e,defaultValue:t,modelValue:n}){const r=n||t;if(um(e)&&um(n)&&um(t))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(n!==void 0&&t!==void 0&&typeof n!=typeof t)throw new Error(`Invalid prop \`value\` of value \`${n}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${t}\`. The \`value\` prop must be: 14 ${e==="single"?"- a string":e==="multiple"?"- an array of strings":`- a string 15- an array of strings`} 16 - \`undefined\``);const i=n!==void 0||t!==void 0;if(e&&i){const a=Array.isArray(n)||Array.isArray(t),o=n!==void 0?"modelValue":"defaultValue",s=o==="modelValue"?typeof n:typeof t;if(e==="single"&&a)return console.error(`Invalid prop \`${o}\` of type ${s} supplied with type \`single\`. The \`modelValue\` prop must be a string or \`undefined\`. 17 You can remove the \`type\` prop to let the component infer the type from the ${o} prop.`),"multiple";if(e==="multiple"&&!a)return console.error(`Invalid prop \`${o}\` of type ${s} supplied with type \`multiple\`. The \`modelValue\` prop must be an array of strings or \`undefined\`. 18 You can remove the \`type\` prop to let the component infer the type from the ${o} prop.`),"single"}return i?Array.isArray(r)?"multiple":"single":e}function hEe({type:e,defaultValue:t,modelValue:n}){return e||yY({type:e,defaultValue:t,modelValue:n})}function pEe({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function vY(e,t){const n=G(hEe(e)),r=Yn(e,"modelValue",t,{defaultValue:pEe(e),passive:e.modelValue===void 0,deep:!0});Je(()=>[e.type,e.modelValue,e.defaultValue],()=>{const o=yY(e);n.value!==o&&(n.value=o)},{immediate:!0});function i(o){if(n.value==="single")r.value=o===r.value?void 0:o;else{const s=[...r.value||[]];if(s.includes(o)){const l=s.findIndex(u=>u===o);s.splice(l,1)}else s.push(o);r.value=s}}const a=W(()=>n.value==="single");return{modelValue:r,type:n,changeModelValue:i,isSingle:a}}
18const[A6,mEe]=mn("AccordionRoot"),_Y=Q({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{dir:i,disabled:a}=An(n),o=Za(i),{modelValue:s,changeModelValue:l,isSingle:u}=vY(n,r),{forwardRef:c,currentElement:d}=Qe();return mEe({disabled:a,direction:o,orientation:n.orientation,parentElement:d,isSingle:u,collapsible:n.collapsible,modelValue:s,changeModelValue:l}),(f,h)=>(E(),V(m(ot),{ref:m(c),"as-child":f.asChild,as:f.as},{default:N(()=>[me(f.$slots,"default",{modelValue:m(s)})]),_:3},8,["as-child","as"]))}}),[_A,gEe]=mn("AccordionItem"),bY=Q({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,r=A6(),i=W(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),a=W(()=>r.disabled.value||n.disabled),o=W(()=>a.value?"":void 0),s=W(()=>i.value?"open":"closed");t({open:i,dataDisabled:o});const{currentRef:l,currentElement:u}=Qe();gEe({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:"",currentRef:l,currentElement:u,value:W(()=>n.value)});function c(d){var f;const h=d.target;if(Array.from(((f=r.parentElement.value)==null?void 0:f.querySelectorAll("[data-radix-vue-collection-item]"))??[]).findIndex(p=>p===h)===-1)return null;C6(d,u.value,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(d,f)=>(E(),V(m(k6),{"data-orientation":m(r).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:n.as,"as-child":n.asChild,onKeydown:po(c,["up","down","left","right","home","end"])},{default:N(()=>[me(d.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child"]))}}),xY=Q({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=A6(),r=_A();return Qe(),(i,a)=>(E(),V(m(M6),{role:"region",hidden:!m(r).open.value,"as-child":t.asChild,"force-mount":t.forceMount,"aria-labelledby":m(r).triggerId,"data-state":m(r).dataState.value,"data-disabled":m(r).dataDisabled.value,"data-orientation":m(n).orientation,style:{"--radix-accordion-content-width":"var(--radix-collapsible-content-width)","--radix-accordion-content-height":"var(--radix-collapsible-content-height)"}},{default:N(()=>[me(i.$slots,"default")]),_:3},8,["hidden","as-child","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),wY=Q({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(e){const t=e,n=A6(),r=_A();return Qe(),(i,a)=>(E(),V(m(ot),{as:t.as,"as-child":t.asChild,"data-orientation":m(n).orientation,"data-state":m(r).dataState.value,"data-disabled":m(r).dataDisabled.value},{default:N(()=>[me(i.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),SY=Q({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=A6(),r=_A();r.triggerId||(r.triggerId=Ri(void 0,"radix-vue-accordion-trigger"));function i(){const a=n.isSingle.value&&r.open.value&&!n.collapsible;r.disabled.value||a||n.changeModelValue(r.value.value)}return(a,o)=>(E(),V(m(E6),{id:m(r).triggerId,ref:m(r).currentRef,"data-radix-vue-collection-item":"",as:t.as,"as-child":t.asChild,"aria-disabled":m(r).disabled.value||void 0,"aria-expanded":m(r).open.value||!1,"data-disabled":m(r).dataDisabled.value,"data-orientation":m(n).orientation,"data-state":m(r).dataState.value,disabled:m(r).disabled.value,onClick:i},{default:N(()=>[me(a.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[fu,yEe]=mn("DialogRoot"),CY=Q({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=Yn(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=G(),a=G(),{modal:o}=An(n);return yEe({open:r,modal:o,openModal:()=>{r.value=!0},onOpenChange:s=>{r.value=s},onOpenToggle:()=>{r.value=!r.value}
18,contentId:"",titleId:"",descriptionId:"",triggerElement:i,contentElement:a}),(s,l)=>me(s.$slots,"default",{open:m(r)})}}),vEe=Q({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=fu(),{forwardRef:r,currentElement:i}=Qe();return n.contentId||(n.contentId=Ri(void 0,"radix-vue-dialog-content")),Ot(()=>{n.triggerElement.value=i.value}),(a,o)=>(E(),V(m(ot),rt(t,{ref:m(r),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":m(n).open.value||!1,"aria-controls":m(n).open.value?m(n).contentId:void 0,"data-state":m(n).open.value?"open":"closed",onClick:m(n).onOpenToggle}),{default:N(()=>[me(a.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),bv=Q({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=w6();return(n,r)=>m(t)||n.forceMount?(E(),V(zx,{key:0,to:n.to,disabled:n.disabled},[me(n.$slots,"default")],8,["to","disabled"])):ae("",!0)}}),bA=Q({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(E(),V(m(bv),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),_Ee="dismissableLayer.pointerDownOutside",bEe="dismissableLayer.focusOutside";function TY(e,t){const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&r===n||i.indexOf(r)<i.indexOf(n))}function xEe(e,t){var n;const r=((n=t?.value)==null?void 0:n.ownerDocument)??globalThis?.document,i=G(!1),a=G(()=>{});return ii(o=>{if(!Bc)return;const s=async u=>{const c=u.target;if(t!=null&&t.value){if(TY(t.value,c)){i.value=!1;return}if(u.target&&!i.value){let d=function(){hA(_Ee,e,f)};const f={originalEvent:u};u.pointerType==="touch"?(r.removeEventListener("click",a.value),a.value=d,r.addEventListener("click",a.value,{once:!0})):d()}else r.removeEventListener("click",a.value);i.value=!1}},l=window.setTimeout(()=>{r.addEventListener("pointerdown",s)},0);o(()=>{window.clearTimeout(l),r.removeEventListener("pointerdown",s),r.removeEventListener("click",a.value)})}),{onPointerDownCapture:()=>i.value=!0}}function wEe(e,t){var n;const r=((n=t?.value)==null?void 0:n.ownerDocument)??globalThis?.document,i=G(!1);return ii(a=>{if(!Bc)return;const o=async s=>{t!=null&&t.value&&(await At(),!(!t.value||TY(t.value,s.target))&&s.target&&!i.value&&hA(bEe,e,{originalEvent:s}))};r.addEventListener("focusin",o),a(()=>r.removeEventListener("focusin",o))}),{onFocusCapture:()=>i.value=!0,onBlurCapture:()=>i.value=!1}}const $u=mi({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bp=Q({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=Qe(),o=W(()=>{var p;return((p=a.value)==null?void 0:p.ownerDocument)??globalThis.document}),s=W(()=>$u.layersRoot),l=W(()=>a.value?Array.from(s.value).indexOf(a.value):-1),u=W(()=>$u.layersWithOutsidePointerEventsDisabled.size>0),c=W(()=>{const p=Array.from(s.value),[g]=[...$u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g);return l.value>=v}),d=xEe(async p=>{const g=[...$u.branches].some(v=>v?.contains(p.target));!c.value||g||(r("pointerDownOutside",p),r("interactOutside",p),await At(),p.defaultPrevented||r("dismiss"))},a),f=wEe(p=>{[...$u.branches].some(g=>g?.contains(p.target))||(r("focusOutside",p),r("interactOutside",p),p.defaultPrevented||r("dismiss"))},a);Fke("Escape",p=>{l.value===s.value.size-1&&(r("escapeKeyDown",p),p.defaultPrevented||r("dismiss"))});let h;return ii(p=>{a.value&&(n.disableOutsidePointerEvents&&($u.layersWithOutsidePointerEventsDisabled.size===0&&(h=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),$u.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),p(()=>{n.disableOutsidePointerEvents&&$u.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=h)}))}),ii(p=>{p(()=>{a.value&&(s.value.delete(a.value),$u.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(p,g)=>(E(),V(m(ot),{ref:m(i),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Li({pointerEvents:u.value?c.value?"auto":"none":void 0}),onFocusCapture:m(f).onFocusCapture,onBlurCapture:m(f).onBlurCapture,onPointerdownCapture:m(d
18).onPointerDownCapture},{default:N(()=>[me(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Y7="focusScope.autoFocusOnMount",X7="focusScope.autoFocusOnUnmount",jF={bubbles:!1,cancelable:!0};function SEe(e,{select:t=!1}={}){const n=hi();for(const r of e)if(hd(r,{select:t}),hi()!==n)return!0}function CEe(e){const t=kY(e),n=UF(t,e),r=UF(t.reverse(),e);return[n,r]}function kY(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function UF(e,t){for(const n of e)if(!TEe(n,{upTo:t}))return n}function TEe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kEe(e){return e instanceof HTMLInputElement&&"select"in e}function hd(e,{select:t=!1}={}){if(e&&e.focus){const n=hi();e.focus({preventScroll:!0}),e!==n&&kEe(e)&&t&&e.select()}}const EEe=kke(()=>G([]));function MEe(){const e=EEe();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=HF(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=HF(e.value,t),(n=e.value[0])==null||n.resume()}}}function HF(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function AEe(e){return e.filter(t=>t.tagName!=="A")}const P6=Q({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:i,currentElement:a}=Qe(),o=G(null),s=MEe(),l=mi({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});ii(c=>{if(!Bc)return;const d=a.value;if(!n.trapped)return;function f(v){if(l.paused||!d)return;const b=v.target;d.contains(b)?o.value=b:hd(o.value,{select:!0})}function h(v){if(l.paused||!d)return;const b=v.relatedTarget;b!==null&&(d.contains(b)||hd(o.value,{select:!0}))}function p(v){d.contains(o.value)||hd(d)}document.addEventListener("focusin",f),document.addEventListener("focusout",h);const g=new MutationObserver(p);d&&g.observe(d,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",h),g.disconnect()})}),ii(async c=>{const d=a.value;if(await At(),!d)return;s.add(l);const f=hi();if(!d.contains(f)){const h=new CustomEvent(Y7,jF);d.addEventListener(Y7,p=>r("mountAutoFocus",p)),d.dispatchEvent(h),h.defaultPrevented||(SEe(AEe(kY(d)),{select:!0}),hi()===f&&hd(d))}c(()=>{d.removeEventListener(Y7,g=>r("mountAutoFocus",g));const h=new CustomEvent(X7,jF),p=g=>{r("unmountAutoFocus",g)};d.addEventListener(X7,p),d.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||hd(f??document.body,{select:!0}),d.removeEventListener(X7,p),s.remove(l)},0)})});function u(c){if(!n.loop&&!n.trapped||l.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,f=hi();if(d&&f){const h=c.currentTarget,[p,g]=CEe(h);p&&g?!c.shiftKey&&f===g?(c.preventDefault(),n.loop&&hd(p,{select:!0})):c.shiftKey&&f===p&&(c.preventDefault(),n.loop&&hd(g,{select:!0})):f===h&&c.preventDefault()}}return(c,d)=>(E(),V(m(ot),{ref_key:"currentRef",ref:i,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:u},{default:N(()=>[me(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),PEe="menu.itemSelect",KC=["Enter"," "],DEe=["ArrowDown","PageUp","Home"],EY=["ArrowUp","PageDown","End"],IEe=[...DEe,...EY];[...KC],[...KC];function MY(e){return e?"open":"closed"}function YC(e){const t=hi();for(const n of e)if(n===t||(n.focus(),hi()!==t))return}function $Ee(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a].x,l=t[a].y,u=t[o].x,c=t[o].y;l>r!=c>r&&n<(u-s)*(r-l)/(c-l)+s&&(i=!i)}return i}function LEe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return $Ee(n,t)}function XC(e){return e.pointerType==="mouse"}const AY=Q({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=fu(),{forwardRef:a,currentElement:o}=Qe();return i.titleId||(i.titleId=Ri(void 0,"radix-vue-dialog-title")),i.descriptionId||(i.descriptionId=Ri(void 0,"radix-vue-dialog-description")),Ot(()=>{i.contentElement=o,hi()!==document.body&&(i.triggerElement.value=hi())}),(s,l)=>(E(),V(m(P6),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>r("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>r("closeAutoFocus",u))},{default:N(()=>[H(m(bp),rt({id:m(i).contentId,ref:m(a),as:s.as,"as-child":s.asChild,"disable-outside-pointer-events":s.disableOutsidePointerEvents,role:"dialog","aria-describedby":m(i).descriptionId,"aria-labelledby":m(i).titleId,"data-state":m(MY)(m(i).open.value)},s.$attrs,{onDismiss:l[0]||(l[0]=u=>m(i).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>r("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>r("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>r("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>r("pointerDownOutside",u))}),{default:N(()=>[me(s.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),REe=Q({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=fu(),a=_p(r),{forwardRef:o,currentElement:s}=Qe();return yv(s),(l,u)=>(E(),V(AY,rt({...n,...m(a)},{ref:m(o),"trap-focus":m(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=c=>{var d;c.defaultPrevented||(c.preventDefault(),(d=m(i).triggerElement.value)==null||d.focus())}),onPointerDownOutside:u[1]||(u[1]=c=>{const d=c.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&c.preventDefault()}),onFocusOutside:u[2]||(u[2]=c=>{c.preventDefault()})}),{default:N(()=>[me(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),OEe=Q({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=_p(t);Qe();const i=fu(),a=G(!1),o=G(!1);return(s,l)=>(E(),V(AY,rt({...n,...m(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=u=>{var c;u.defaultPrevented||(a.value||(c=m(i).triggerElement.value)==null||c.focus(),u.preventDefault()),a.value=!1,o.value=!1}),onInteractOutside:l[1]||(l[1]=u=>{var c;u.defaultPrevented||(a.value=!0,u.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const d=u.target;(c=m(i).triggerElement.value)!=null&&c.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.value&&u.preventDefault()})}),{default:N(()=>[me(s.$slots,"default")]),_:3},16))}}),PY=Q({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=fu(),a=_p(r),{forwardRef:o}=Qe();return(s,l)=>(E(),V(m(Cl),{present:s.forceMount||m(i).open.value},{default:N(()=>[m(i).modal.value?(E(),V(REe,rt({key:0,ref:m(o)},{...n,...m(a),...s.$attrs}),{default:N(()=>[me(s.$slots,"default")]),_:3},16)):(E(),V(OEe,rt({key:1,ref:m(o)},{...n,...m(a),...s.$attrs}),{default:N(()=>[me(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),BEe=Q({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=fu();return gv(!0),Qe(),(n,r)=>(E(),V(m(ot),{as:n.as,"as-child":n.asChild,"data-state":m(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:N(()=>[me(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),DY=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=fu(),{forwardRef:n}=Qe();return(r,i)=>{var a;return(a=m(t))!=null&&a.modal.value?(E(),V(m(Cl),{key:0,present:r.forceMount||m(t).open.value},{default:N(()=>[H(BEe,rt(r.$attrs,{ref:m(n),as:r.as,"as-child":r.asChild}),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):ae("",!0)}}}),IY=Q({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=fu();return(r,i)=>(E(),V(m(ot),rt(t,{type:r.as==="button"?"button":void 0,onClick:i[0]||(i[0]=a=>m(n).onOpenChange(!1))}),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["type"]))}}),FEe=Q({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=fu();return Qe(),(r,i)=>(E(),V(m(ot),rt(t,{id:m(n).titleId}),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["id"]))}}),$Y=Q({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;Qe();const n=fu();return(r,i)=>(E(),V(m(ot),rt(t,{id:m(n).descriptionId}),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["id"]))}}),[zEe]=mn("AvatarRoot");function NEe(e,t){const n=G("idle"),r=G(!1),i=a=>()=>{r.value&&(n.value=a)};return Ot(()=>{r.value=!0,Je([()=>e.value,()=>t?.value],([a,o])=>{if(!a)n.value="error";else{const s=new window.Image;n.value="loading",s.onload=i("loaded"),s.onerror=i("error"),s.src=a,o&&(s.referrerPolicy=o)}},{immediate:!0})}),br(()=>{r.value=!1}),n}const VEe=Q({__name:"AvatarImage",props:{src:{},referrerPolicy:{},asChild:{type:Boolean},as:{default:"img"}},emits:["loadingStatusChange"],setup(e,{emit:t}){const n=e,r=t,{src:i,referrerPolicy:a}=An(n);Qe();const o=zEe(),s=NEe(i,a);return Je(s,l=>{r("loadingStatusChange",l),l!=="idle"&&(o.imageLoadingStatus.value=l)},{immediate:!0}),(l,u)=>_o((E(),V(m(ot),{role:"img","as-child":l.asChild,as:l.as,src:m(i),"referrer-policy":m(a)},{default:N(()=>[me(l.$slots,"default")]),_:3},8,["as-child","as","src","referrer-policy"])),[[Wx,m(s)==="loaded"]])}});function jEe(e){function t(r){return Array.isArray(e.date.value)?e.date.value.some(i=>Zh(i,r)):e.date.value?Zh(e.date.value,r):!1}const n=W(()=>{var r,i,a,o;if(Array.isArray(e.date.value)){if(!e.date.value.length)return!1;for(const s of e.date.value)if((r=e.isDateDisabled)!=null&&r.call(e,s)||(i=e.isDateUnavailable)!=null&&i.call(e,s))return!0}else{if(!e.date.value)return!1;if((a=e.isDateDisabled)!=null&&a.call(e,e.date.value)||(o=e.isDateUnavailable)!=null&&o.call(e,e.date.value))return!0}return!1});return{isDateSelected:t,isInvalid:n}}function UEe(e,t){const n=t(e),r=n.compare(e),i={};return r>=7&&(i.day=1),r>=iu(e)&&(i.month=1),n.set({...i})}function HEe(e,t){const n=t(e),r=e.compare(n),i={};return r>=7&&(i.day=35),r>=iu(e)&&(i.month=13),n.set({...i})}function qEe(e,t){return t(e)}function WEe(e,t){return t(e)}function GEe(e){const t=hY(e.locale.value),n=W(()=>{const g={calendar:e.placeholder.value.calendar.identifier};return e.placeholder.value.calendar.identifier==="gregory"&&e.placeholder.value.era==="BC"&&(g.era="short"),g}),r=G(jf({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,
18numberOfMonths:e.numberOfMonths.value})),i=W(()=>r.value.map(g=>g.value));function a(g){return!i.value.some(v=>lF(g,v))}const o=(g="month",v)=>{if(!e.maxValue.value||!r.value.length)return!1;if(e.disabled.value)return!0;const b=r.value[r.value.length-1].value;if(v||e.nextPage.value){const _=UEe(b,v||e.nextPage.value);return T3(_,e.maxValue.value)}if(g==="year"){const _=b.add({years:1}).set({day:1,month:1});return T3(_,e.maxValue.value)}const x=b.add({months:1}).set({day:1});return T3(x,e.maxValue.value)},s=(g="month",v)=>{if(!e.minValue.value||!r.value.length)return!1;if(e.disabled.value)return!0;const b=r.value[0].value;if(v||e.prevPage.value){const _=HEe(b,v||e.prevPage.value);return W0(_,e.minValue.value)}if(g==="year"){const _=b.subtract({years:1}).set({day:35,month:13});return W0(_,e.minValue.value)}const x=b.subtract({months:1}).set({day:35});return W0(x,e.minValue.value)};function l(g){var v;return!!((v=e.isDateDisabled)!=null&&v.call(e,g)||e.disabled.value||e.maxValue.value&&T3(g,e.maxValue.value)||e.minValue.value&&W0(g,e.minValue.value))}const u=g=>{var v;return!!((v=e.isDateUnavailable)!=null&&v.call(e,g))},c=W(()=>r.value.length?r.value[0].rows[0].map(g=>t.dayOfWeek(ks(g),e.weekdayFormat.value)):[]),d=(g="month",v)=>{const b=r.value[0].value;if(v||e.nextPage.value){const w=qEe(b,v||e.nextPage.value),C=jf({dateObj:w,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=C;const T={};if(!v){const k=C[0].value.compare(b);k>=iu(b)&&(T.day=1),k>=365&&(T.month=1)}e.placeholder.value=C[0].value.set({...T});return}const x=g==="month"?b.add({months:e.pagedNavigation.value?e.numberOfMonths.value:1}):b.add({years:1}),_=jf({dateObj:x,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=_,e.placeholder.value=_[0].value.set({day:1})},f=(g="month",v)=>{const b=r.value[0].value;if(v||e.prevPage.value){const w=WEe(b,v||e.prevPage.value),C=jf({dateObj:w,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=C;const T={};if(!v){const k=b.compare(C[0].value);k>=iu(b)&&(T.day=1),k>=365&&(T.month=1)}e.placeholder.value=C[0].value.set({...T});return}const x=g==="month"?b.subtract({months:e.pagedNavigation.value?e.numberOfMonths.value:1}):b.subtract({years:1}),_=jf({dateObj:x,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=_,e.placeholder.value=_[0].value.set({day:1})};Je(e.placeholder,g=>{i.value.some(v=>lF(v,g))||(r.value=jf({dateObj:g,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value}))}),Je([e.locale,e.weekStartsOn,e.fixedWeeks,e.numberOfMonths],()=>{r.value=jf({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})});const h=W(()=>{if(!r.value.length)return"";if(e.locale.value!==t.getLocale()&&t.setLocale(e.locale.value),r.value.length===1){const C=r.value[0].value;return`${t.fullMonthAndYear(ks(C),n.value)}`}const g=ks(r.value[0].value),v=ks(r.value[r.value.length-1].value),b=t.fullMonth(g,n.value),x=t.fullMonth(v,n.value),_=t.fullYear(g,n.value),w=t.fullYear(v,n.value);return _===w?`${b} - ${x} ${w}`:`${b} ${_} - ${x} ${w}`}),p=W(()=>`${e.calendarLabel.value??"Event Date"}, ${h.value}`);return{isDateDisabled:l,isDateUnavailable:u,isNextButtonDisabled:o,isPrevButtonDisabled:s,grid:r,weekdays:c,visibleView:i,isOutsideVisibleView:a,formatter:t,nextPage:d,prevPage:f,headingValue:h,fullCalendarLabel:p}}const ZEe={style:{border:"0px",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute","white-space":"nowrap",width:"1px"}},KEe={role:"heading","aria-level":"2"},[x1,YEe]=mn("CalendarRoot"),LY=Q({__name:"CalendarRoot",props:{modelValue:{},multiple:{type:Boolean,default:!1},defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},pagedNavigation:{type:Boolean,default:!1},preventDeselect:{type:Boolean,default:!1},weekStartsOn:{default:0},weekdayFormat:{default:"narrow"},calendarLabel:{},fixedWeeks:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{default:"en"},numberOfMonths:{default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},initialFocus:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},isDateUnavailable:{type:Function,default:void 0},dir:{},nextPage:{},prevPage:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue","update:placeholder"],setup(e,{emit:t}){const n=e,r=t,{locale:i,disabled:a,readonly:o,initialFocus:s,pagedNavigation:l,weekStartsOn:u,weekdayFormat:c,fixedWeeks:d,multiple:f,minValue:h,maxValue:p,numberOfMonths:g,preventDeselect:v,isDateDisabled:b,isDateUnavailable:x,calendarLabel:_,defaultValue:w,nextPage:C,prevPage:T,dir:k}=An(n),{primitiveElement:A,currentElement:P}=_v(),D=Za(k),$=Yn(n,"modelValue",r,{defaultValue:w.value,passive:n.modelValue===void 0}),O=pA({defaultPlaceholder:n.placeholder,defaultValue:$.value,locale:n.locale}),z=Yn(n,"placeholder",r,{defaultValue:n.defaultPlaceholder??O.copy(),passive:n.placeholder===void 0});function j(Pe){z.value=Pe.copy()}const{fullCalendarLabel:B,headingValue:R,isDateDisabled:J,isDateUnavailable:K,isNextButtonDisabled:Z,isPrevButtonDisabled:ne,weekdays:se,isOutsideVisibleView:ce,nextPage:Re,prevPage:Ue,formatter:$e,grid:ke}=GEe({locale:i,placeholder:z,weekStartsOn:u,fixedWeeks:d,numberOfMonths:g,minValue:h,maxValue:p,disabled:a,weekdayFormat:c,pagedNavigation:l,isDateDisabled:b.value,isDateUnavailable:x.value,calendarLabel:_,nextPage:C,prevPage:T}),{isInvalid:Ve,isDateSelected:nt}=jEe({date:$,isDateDisabled:J,isDateUnavailable:K});Je($,Pe=>{if(Array.isArray(Pe)&&Pe.length){const je=Pe[Pe.length-1];je&&!Ay(z.value,je)&&j(je)}else!Array.isArray(Pe)&&Pe&&!Ay(z.value,Pe)&&j(Pe)});function xe(Pe){if(f.value){if(!$.value)$.value=[Pe.copy()];else if(Array.isArray($.value)){if($.value.findIndex(je=>Zh(je,Pe))===-1)$.value=[...$.value,Pe];else if(!v.value){const je=$.value.filter(Fe=>!Zh(Fe,Pe));if(!je.length){z.value=Pe.copy(),$.value=void 0;return}$.value=je.map(Fe=>Fe.copy())}}}else{if(!$.value){$.value=Pe.copy();return}!v.value&&Ay($.value,Pe)?(z.value=Pe.copy(),$.value=void 0):$.value=Pe.copy()}}return Ot(()=>{s.value&&Ske(P.value)}),YEe({isDateUnavailable:K,dir:D,isDateDisabled:J,locale:i,formatter:$e,modelValue:$,placeholder:z,disabled:a,initialFocus:s,pagedNavigation:l,weekStartsOn:u,weekdayFormat:c,fixedWeeks:d,multiple:f,numberOfMonths:g,readonly:o,preventDeselect:v,fullCalendarLabel:B,headingValue:R,isInvalid:Ve,isDateSelected:nt,isNextButtonDisabled:Z,isPrevButtonDisabled:ne,isOutsideVisibleView:ce,nextPage:Re,prevPage:Ue,parentElement:P,onPlaceholderChange:j,onDateChange:xe}),(Pe,je)=>(E(),V(m(ot),{ref_key:"primitiveElement",ref:A,as:Pe.as,"as-child":Pe.asChild,role:"application","aria-label":m(B),"data-readonly":m(o)?"":void 0,"data-disabled":m(a)?"":void 0,"data-invalid":m(Ve)?"":void 0,dir:m(D)},{default:N(()=>[me(Pe.$slots,"default",{date:m(z),grid:m(ke),weekDays:m(se),weekStartsOn:m(u),locale:m(i),fixedWeeks:m(d)}),Y("div",ZEe,[Y("div",KEe,de(m(B)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),RY=Q({__name:"CalendarHeader",props:{asChild:{type:Boolean},as:{default:"div"}},setup(e){const t=e;return(n,r)=>(E(),V(m(ot),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),OY=Q({__name:"CalendarHeading",props:{asChild:{type:Boolean},as:{default:"div"}},setup(e){const t=e,n=x1();return(r,i)=>(E(),V(m(ot),rt(t,{"data-disabled":m(n).disabled.value?"":void 0}),{default:N(()=>[me(r.$slots,"default",{headingValue:m(n).headingValue.value},()=>[st(de(m(n).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),BY=Q({__name:"CalendarGrid",props:{asChild:{type:Boolean},as:{default:"table"}},setup(e){const t=e,n=x1(),r=W(()=>n.disabled.value?!0:void 0),i=W(()=>n.readonly.value?!0:void 0);return(a,o)=>(E(),V(m(ot),rt(t,{tabindex:"-1",role:"grid","aria-readonly":i.value,"aria-disabled":r.value,"data-readonly":i.value&&"","data-disabled":r.value&&""}),{default:N(()=>[me(a.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),FY=Q({__name:"CalendarCell",props:{date:{},asChild:{type:Boolean},as:{default:"td"}},setup(e){const t=x1();return(n,r)=>{var i,a;return E(),V(m(ot),{as:n.as,"as-child":n.asChild,role:"gridcell","aria-selected":m(t).isDateSelected(n.date)?!0:void 0,"aria-disabled":m(t).isDateDisabled(n.date)||((a=(i=m(t)).isDateUnavailable)==null?void 0:a.call(i,n.date)),"data-disabled":m(t).isDateDisabled(n.date)?"":void 0},{default:N(()=>[me(n.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"])}}}),zY=Q({__name:"CalendarHeadCell",props:{asChild:{type:Boolean},as:{default:"th"}},setup(e){const t=e;return(n,r)=>(E(),V(m(ot),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}
18),NY=Q({__name:"CalendarNext",props:{step:{default:"month"},nextPage:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=W(()=>r.disabled.value||r.isNextButtonDisabled(t.step,t.nextPage)),r=x1();return(i,a)=>(E(),V(m(ot),{as:t.as,"as-child":t.asChild,"aria-label":"Next page",type:i.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:a[0]||(a[0]=o=>m(r).nextPage(t.step,t.nextPage))},{default:N(()=>[me(i.$slots,"default",{},()=>[st("Next page")])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),VY=Q({__name:"CalendarPrev",props:{step:{default:"month"},prevPage:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=W(()=>r.disabled.value||r.isPrevButtonDisabled(t.step,t.prevPage)),r=x1();return(i,a)=>(E(),V(m(ot),{"aria-label":"Previous page",as:t.as,"as-child":t.asChild,type:i.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:a[0]||(a[0]=o=>m(r).prevPage(t.step,t.prevPage))},{default:N(()=>[me(i.$slots,"default",{},()=>[st("Prev page")])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),jY=Q({__name:"CalendarGridHead",props:{asChild:{type:Boolean},as:{default:"thead"}},setup(e){const t=e;return(n,r)=>(E(),V(m(ot),rt(t,{"aria-hidden":"true"}),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),UY=Q({__name:"CalendarGridBody",props:{asChild:{type:Boolean},as:{default:"tbody"}},setup(e){const t=e;return(n,r)=>(E(),V(m(ot),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),HY=Q({__name:"CalendarGridRow",props:{asChild:{type:Boolean},as:{default:"tr"}},setup(e){const t=e;return(n,r)=>(E(),V(m(ot),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),qY=Q({__name:"CalendarCellTrigger",props:{day:{},month:{},asChild:{type:Boolean},as:{default:"div"}},setup(e){const t=e,n=vv(),r=x1(),{primitiveElement:i,currentElement:a}=_v(),o=W(()=>t.day.day.toLocaleString(r.locale.value)),s=W(()=>r.formatter.custom(ks(t.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),l=W(()=>r.isDateDisabled(t.day)),u=W(()=>{var _;return(_=r.isDateUnavailable)==null?void 0:_.call(r,t.day)}),c=W(()=>vCe(t.day,Kd())),d=W(()=>!TK(t.day,t.month)),f=W(()=>r.isOutsideVisibleView(t.day)),h=W(()=>!r.disabled.value&&Zh(t.day,r.placeholder.value)),p=W(()=>r.isDateSelected(t.day)),g="[data-radix-vue-calendar-cell-trigger]:not([data-disabled]):not([data-outside-view]):not([data-outside-visible-view])";function v(_){var w;r.readonly.value||r.isDateDisabled(_)||(w=r.isDateUnavailable)!=null&&w.call(r,_)||r.onDateChange(_)}function b(){v(t.day)}function x(_){_.preventDefault(),_.stopPropagation();const w=r.parentElement.value,C=w?Array.from(w.querySelectorAll(g)):[];let T=C.indexOf(a.value);const k=7,A=r.dir.value==="rtl"?-1:1;switch(_.code){case n.ARROW_RIGHT:T+=A;break;case n.ARROW_LEFT:T-=A;break;case n.ARROW_UP:T-=k;break;case n.ARROW_DOWN:T+=k;break;case n.ENTER:case n.SPACE_CODE:v(t.day);return;default:return}if(T>=0&&T<C.length){C[T].focus();return}if(T<0){if(r.isPrevButtonDisabled("month"))return;r.prevPage(),At(()=>{const P=w?Array.from(w.querySelectorAll(g)):[];if(!r.pagedNavigation.value){const D=iu(r.placeholder.value);P[D-Math.abs(T)].focus();return}P[P.length-Math.abs(T)].focus()});return}if(T>=C.length){if(r.isNextButtonDisabled("month"))return;r.nextPage(),At(()=>{const P=w?Array.from(w.querySelectorAll(g)):[];if(!r.pagedNavigation.value){const D=iu(r.placeholder.value.add({months:r.numberOfMonths.value-1}));P[P.length-D+T-C.length].focus();return}P[T-C.length].focus()})}}return(_,w)=>(E(),V(m(ot),rt({ref_key:"primitiveElement",ref:i},t,{role:"button","aria-label":s.value,"data-radix-vue-calendar-cell-trigger":"","aria-disabled":l.value||u.value?!0:void 0,"data-selected":p.value?!0:void 0,"data-value":_.day.toString(),"data-disabled":l.value?"":void 0,"data-unavailable":u.value?"":void 0,"data-today":c.value?"":void 0,"data-outside-view":d.value?"":void 0,"data-outside-visible-view":f.value?"":void 0,"data-focused":h.value?"":void 0,tabindex:h.value?0:d.value||l.value?void 0:-1,onClick:b,onKeydown:[po(x,["up","down","left","right","space","enter"]),w[0]||(w[0]=po(nr(()=>{},["prevent"]),["enter"]))]}),{default:N(()=>[me(_.$slots,"default",{dayValue:o.value},()=>[st(de(o.value),1)])]),_:3},16,["aria-label","aria-disabled","data-selected","data-value","data-disabled","data-unavailable","data-today","data-outside-view","data-outside-visible-view","data-focused","tabindex"]))}});function JC(e){return e==="indeterminate"}function XEe(e){return JC(e)?"indeterminate":e?"checked":"unchecked"}const JEe=["value","checked","name","disabled","required"],[Npt,QEe]=mn("CheckboxRoot"),xA=Q({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=t,{disabled:i}=An(n),a=Yn(n,"checked",r,{defaultValue:n.defaultChecked,passive:n.checked===void 0}),{forwardRef:o,currentElement:s}=Qe(),l=_1(s),u=W(()=>{var c;return n.id&&s.value?(c=document.querySelector(`[for="${n.id}"]`))==null?void 0:c.innerText:void 0});return QEe({disabled:i,state:a}),(c,d)=>(E(),U(Ae,null,[H(m(ot),rt(c.$attrs,{id:c.id,ref:m(o),role:"checkbox","as-child":n.asChild,as:c.as,type:c.as==="button"?"button":void 0,"aria-checked":m(JC)(m(a))?"mixed":m(a),"aria-required":n.required,"aria-label":c.$attrs["aria-label"]||u.value,"data-state":m(XEe)(m(a
18)),"data-disabled":m(i)?"":void 0,disabled:m(i),onKeydown:po(nr(()=>{},["prevent"]),["enter"]),onClick:d[0]||(d[0]=f=>a.value=m(JC)(m(a))?!0:!m(a))}),{default:N(()=>[me(c.$slots,"default",{checked:m(a)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","onKeydown"]),m(l)?(E(),U("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:c.value,checked:!!m(a),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,JEe)):ae("",!0)],64))}}),[WY,eMe]=mn("PopperRoot"),xv=Q({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=G();return eMe({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>me(n.$slots,"default")}}),w1=Q({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:r}=Qe(),i=WY();return ii(()=>{i.onAnchorChange(t.element??r.value)}),(a,o)=>(E(),V(m(ot),{ref:m(n),as:a.as,"as-child":a.asChild},{default:N(()=>[me(a.$slots,"default")]),_:3},8,["as","as-child"]))}});function tMe(e){return e!==null}function nMe(e){return{name:"transformOrigin",options:e,fn(t){var n,r,i;const{placement:a,rects:o,middlewareData:s}=t,l=((n=s.arrow)==null?void 0:n.centerOffset)!==0,u=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[d,f]=QC(a),h={start:"0%",center:"50%",end:"100%"}[f],p=(((r=s.arrow)==null?void 0:r.x)??0)+u/2,g=(((i=s.arrow)==null?void 0:i.y)??0)+c/2;let v="",b="";return d==="bottom"?(v=l?h:`${p}px`,b=`${-c}px`):d==="top"?(v=l?h:`${p}px`,b=`${o.floating.height+c}px`):d==="right"?(v=`${-c}px`,b=l?h:`${g}px`):d==="left"&&(v=`${o.floating.width+c}px`,b=l?h:`${g}px`),{data:{x:v,y:b}}}}}function QC(e){const[t,n="center"]=e.split("-");return[t,n]}const GY={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[rMe,iMe]=mn("PopperContent"),Rm=Q({inheritAttrs:!1,__name:"PopperContent",props:YH({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...GY}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,i=WY(),{forwardRef:a,currentElement:o}=Qe(),s=G(),l=G(),{width:u,height:c}=mY(l),d=W(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),f=W(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),h=W(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=W(()=>({padding:f.value,boundary:h.value.filter(tMe),altBoundary:h.value.length>0})),g=Cke(()=>[nke({mainAxis:n.sideOffset+c.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&BF({...p.value}),n.avoidCollisions&&rke({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?ske():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&BF({...p.value}),ike({...p.value,apply:({elements:D,rects:$,availableWidth:O,availableHeight:z})=>{const{width:j,height:B}=$.reference,R=D.floating.style;R.setProperty("--radix-popper-available-width",`${O}px`),R.setProperty("--radix-popper-available-height",`${z}px`),R.setProperty("--radix-popper-anchor-width",`${j}px`),R.setProperty("--radix-popper-anchor-height",`${B}px`)}}),l.value&&cke({element:l.value,padding:n.arrowPadding}),nMe({arrowWidth:u.value,arrowHeight:c.value}),n.hideWhenDetached&&ake({strategy:"referenceHidden",...p.value})]),{floatingStyles:v,placement:b,isPositioned:x,middlewareData:_}=dke(i.anchor,s,{strategy:"fixed",placement:d,whileElementsMounted:(...D)=>tke(...D,{animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),w=W(()=>QC(b.value)[0]),C=W(()=>QC(b.value)[1]);rpe(()=>{x.value&&r("placed")});const T=W(()=>{var D;return((D=_.value.arrow)==null?void 0:D.centerOffset)!==0}),k=G("");ii(()=>{o.value&&(k.value=window.getComputedStyle(o.value).zIndex)});const A=W(()=>{var D;return((D=_.value.arrow)==null?void 0:D.x)??0}),P=W(()=>{var D;return((D=_.value.arrow)==null?void 0:D.y)??0});return iMe({placedSide:w,onArrowChange:D=>l.value=D,arrowX:A,arrowY:P,shouldHideArrow:T}),(D,$)=>{var O,z,j;return E(),U("div",{ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:Li({...m(v),transform:m(x)?m(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:k.value,"--radix-popper-transform-origin":[(O=m(_).transformOrigin)==null?void 0:O.x,(z=m(_).transformOrigin)==null?void 0:z.y].join(" "),...((j=m(_).hide)==null?void 0:j.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[H(m(ot),rt({ref:m(a)},D.$attrs,{"as-child":n.asChild,as:D.as,"data-side":w.value,"data-align":C.value,style:{animation:m(x)?void 0:"none"}}),{default:N(()=>[me(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),aMe=Y("polygon",{points:"0,0 30,0 15,10"},null,-1),oMe=Q({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return Qe(),(n,r)=>(E(),V(m(ot),rt(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 30 10",preserveAspectRatio:n.asChild?void 0:"none"}),{default:N(()=>[me(n.$slots,"default",{},()=>[aMe])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}
18),sMe={top:"bottom",right:"left",bottom:"top",left:"right"},ZY=Q({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const{forwardRef:t}=Qe(),n=rMe(),r=W(()=>sMe[n.placedSide.value]);return(i,a)=>{var o,s,l,u;return E(),U("span",{ref:c=>{m(n).onArrowChange(c)},style:Li({position:"absolute",left:(o=m(n).arrowX)!=null&&o.value?`${(s=m(n).arrowX)==null?void 0:s.value}px`:void 0,top:(l=m(n).arrowY)!=null&&l.value?`${(u=m(n).arrowY)==null?void 0:u.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m(n).placedSide.value],visibility:m(n).shouldHideArrow.value?"hidden":void 0})},[H(oMe,rt(i.$attrs,{ref:m(t),style:{display:"block"},as:i.as,"as-child":i.asChild,width:i.width,height:i.height}),{default:N(()=>[me(i.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),D6=Q({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return Qe(),(t,n)=>(E(),V(m(ot),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:N(()=>[me(t.$slots,"default")]),_:3},8,["as","as-child"]))}}),lMe=Q({__name:"VisuallyHiddenInput",props:{name:{},value:{},required:{type:Boolean},disabled:{type:Boolean}},setup(e){const t=e,n=W(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((r,i)=>typeof r=="object"?Object.entries(r).map(([a,o])=>({name:`[${i}][${t.name}][${a}]`,value:o})):{name:`[${t.name}][${i}]`,value:r}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([r,i])=>({name:`[${t.name}][${r}]`,value:i})):[]);return(r,i)=>(E(!0),U(Ae,null,ft(n.value,a=>(E(),V(D6,{key:a.name,as:"input",type:"hidden",hidden:"",readonly:"",name:a.name,value:a.value,required:r.required,disabled:r.disabled},null,8,["name","value","required","disabled"]))),128))}}),uMe="data-radix-vue-collection-item",[wA,cMe]=mn("CollectionProvider");function SA(e=uMe){const t=G(new Map),n=G(),r=cMe({collectionRef:n,itemMap:t,attrName:e}),{getItems:i}=TA(r),a=W(()=>
18Array.from(r.itemMap.value.values())),o=W(()=>r.itemMap.value.size);return{getItems:i,reactiveItems:a,itemMapSize:o}}const CA=Q({name:"CollectionSlot",setup(e,{slots:t}){const n=wA(),{primitiveElement:r,currentElement:i}=_v();return Je(i,()=>{n.collectionRef.value=i.value}),()=>Nt(vA,{ref:r},t)}}),I6=Q({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const r=wA(),{primitiveElement:i,currentElement:a}=_v();return ii(o=>{if(a.value){const s=up(a.value);r.itemMap.value.set(s,{ref:a.value,value:e.value}),o(()=>r.itemMap.value.delete(s))}}),()=>Nt(vA,{...n,[r.attrName]:"",ref:i},t)}});function TA(e){const t=e??wA();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const r=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((i,a)=>r.indexOf(i.ref)-r.indexOf(a.ref))}}}const[S1,dMe]=mn("ComboboxRoot"),Vpt=Q({__name:"ComboboxRoot",props:{modelValue:{},defaultValue:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean,default:!0},resetSearchTermOnSelect:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(e,{emit:t}){const n=e,r=t,{multiple:i,disabled:a,dir:o}=An(n),s=Za(o),l=Yn(n,"searchTerm",r,{defaultValue:"",passive:n.searchTerm===void 0}),u=Yn(n,"modelValue",r,{defaultValue:n.defaultValue??i.value?[]:void 0,passive:n.modelValue===void 0,deep:!0}),c=Yn(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),d=Yn(n,"selectedValue",r,{defaultValue:void 0,passive:n.selectedValue===void 0});async function f(Z){var ne,se;c.value=Z,await At(),Z?(u.value&&(Array.isArray(u.value)&&i.value?d.value=(ne=_().find(ce=>{var Re,Ue;return((Ue=(Re=ce.ref)==null?void 0:Re.dataset)==null?void 0:Ue.state)==="checked"}))==null?void 0:ne.value:d.value=u.value),await At(),(se=g.value)==null||se.focus(),z()):(p.value=!1,n.resetSearchTermOnBlur&&A("blur"))}function h(Z){if(Array.isArray(u.value)&&i.value){const ne=u.value.findIndex(ce=>hh(ce,Z)),se=[...u.value];ne===-1?se.push(Z):se.splice(ne,1),u.value=se}else u.value=Z,f(!1)}const p=G(!1),g=G(),v=G(),{forwardRef:b,currentElement:x}=Qe(),{getItems:_,reactiveItems:w,itemMapSize:C}
18=SA("data-radix-vue-combobox-item"),T=G([]);Je(()=>C.value,()=>{T.value=_().map(Z=>Z.value)},{immediate:!0,flush:"post"});const k=W(()=>{if(p.value){if(n.filterFunction)return n.filterFunction(T.value,l.value);const Z=T.value.filter(ne=>typeof ne=="string");if(Z.length)return Z.filter(ne=>{var se;return ne.toLowerCase().includes((se=l.value)==null?void 0:se.toLowerCase())})}return T.value});function A(Z){const ne=Z==="blur"||Z==="select"&&n.resetSearchTermOnSelect;!i.value&&u.value&&!Array.isArray(u.value)?n.displayValue?l.value=n.displayValue(u.value):typeof u.value!="object"?l.value=u.value.toString():ne&&(l.value=""):ne&&(l.value="")}const P=W(()=>k.value.findIndex(Z=>hh(Z,d.value))),D=W(()=>{var Z;return(Z=w.value.find(ne=>hh(ne.value,d.value)))==null?void 0:Z.ref}),$=W(()=>JSON.stringify(u.value));Je($,async()=>{await At(),await At(),A("select")},{immediate:!n.searchTerm}),Je(()=>[k.value.length,l.value.length],async([Z,ne],[se,ce])=>{await At(),await At(),Z&&(ce>ne||P.value===-1)&&(d.value=k.value[0])});const O=_1(x);function z(){var Z;D.value instanceof Element&&((Z=D.value)==null||Z.scrollIntoView({block:"nearest"}))}function j(){D.value instanceof Element&&D.value.focus&&D.value.focus()}const B=G(!1);function R(){B.value=!0}function J(){requestAnimationFrame(()=>{B.value=!1})}async function K(Z){var ne;k.value.length&&d.value&&D.value instanceof Element&&(Z.preventDefault(),Z.stopPropagation(),B.value||(ne=D.value)==null||ne.click())}return dMe({searchTerm:l,modelValue:u,onValueChange:h,isUserInputted:p,multiple:i,disabled:a,open:c,onOpenChange:f,filteredOptions:k,contentId:"",inputElement:g,selectedElement:D,onInputElementChange:Z=>g.value=Z,onInputNavigation:async Z=>{const ne=P.value;ne===0&&Z==="up"||ne===k.value.length-1&&Z==="down"||(ne===-1&&k.value.length||Z==="home"?d.value=k.value[0]:Z==="end"?d.value=k.value[k.value.length-1]:d.value=k.value[Z==="up"?ne-1:ne+1],await At(),z(),j(),At(()=>{var se;return(se=g.value)==null?void 0:se.focus({preventScroll:!0})}
18))},onInputEnter:K,onCompositionEnd:J,onCompositionStart:R,selectedValue:d,onSelectedValueChange:Z=>d.value=Z,parentElement:x,contentElement:v,onContentElementChange:Z=>v.value=Z}),(Z,ne)=>(E(),V(m(xv),null,{default:N(()=>[H(m(ot),rt({ref:m(b),style:{pointerEvents:m(c)?"auto":void 0},as:Z.as,"as-child":Z.asChild,dir:m(s)},Z.$attrs),{default:N(()=>[me(Z.$slots,"default",{open:m(c),modelValue:m(u)}),m(O)&&n.name?(E(),V(m(lMe),{key:0,name:n.name,value:m(u)},null,8,["name","value"])):ae("",!0)]),_:3},16,["style","as","as-child","dir"])]),_:3}))}}),jpt=Q({__name:"ComboboxInput",props:{type:{default:"text"},disabled:{type:Boolean},autoFocus:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},setup(e){const t=e,n=S1(),{forwardRef:r,currentElement:i}=Qe();Ot(()=>{const c=i.value.nodeName==="INPUT"?i.value:i.value.querySelector("input");c&&(n.onInputElementChange(c),setTimeout(()=>{t.autoFocus&&c?.focus()},1))});const a=W(()=>t.disabled||n.disabled.value||!1),o=G();LH(()=>{var c;return o.value=(c=n.selectedElement.value)==null?void 0:c.id});function s(c){n.open.value?n.onInputNavigation(c.key==="ArrowUp"?"up":"down"):n.onOpenChange(!0)}function l(c){n.open.value&&n.onInputNavigation(c.key==="Home"?"home":"end")}function u(c){var d;n.searchTerm.value=(d=c.target)==null?void 0:d.value,n.open.value||n.onOpenChange(!0),n.isUserInputted.value=!0}return(c,d)=>(E(),V(m(ot),{ref:m(r),as:c.as,"as-child":c.asChild,type:c.type,disabled:a.value,value:m(n).searchTerm.value,"aria-expanded":m(n).open.value,"aria-controls":m(n).contentId,"aria-disabled":a.value??void 0,"aria-activedescendant":o.value,"aria-autocomplete":"list",role:"combobox",autocomplete:"false",onInput:u,onKeydown:[po(nr(s,["prevent"]),["down","up"]),po(m(n).onInputEnter,["enter"]),po(nr(l,["prevent"]),["home","end"])],onCompositionstart:m(n).onCompositionStart,onCompositionend:m(n).onCompositionEnd},{default:N(()=>[me(c.$slots,"default")]),_:3},8,["as","as-child","type","disabled","value","aria-expanded","aria-controls","aria-disabled","aria-activedescendant","onKeydown","onCompositionstart","onCompositionend"]))}}),Upt=Q({__name:"ComboboxAnchor",props:{asChild:{type:Boolean},as:{}},setup(e){const{forwardRef:t}=Qe();return(n,r)=>(E(),V(m(w1),{"as-child":""},{default:N(()=>[H(m(ot),rt({ref:m(t),"as-child":n.asChild,as:n.as},n.$attrs),{default:N(()=>[me(n.$slots,"default")]),_:3},16,["as-child","as"])]),_:3}))}}),Hpt=Q({__name:"ComboboxTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=S1(),r=W(()=>t.disabled||n.disabled.value||!1);return(i,a)=>(E(),V(m(ot),rt(t,{type:i.as==="button"?"button":void 0,tabindex:"-1","aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":m(n).open.value,"aria-controls":m(n).contentId,"data-state":m(n).open.value?"open":"closed",disabled:r.value,"data-disabled":r.value?"":void 0,"aria-disabled":r.value??void 0,onClick:a[0]||(a[0]=o=>m(n).onOpenChange(!m(n).open.value))}),{default:N(()=>[me(i.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","disabled","data-disabled","aria-disabled"]))}}),[fMe,hMe]=mn("ComboboxGroup"),qpt=Q({__name:"ComboboxGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{currentRef:n,currentElement:r}=Qe(),i=Ri(void 0,"radix-vue-combobox-group"),a=S1(),o=G(!1);function s(){if(!r.value)return;const l=r.value.querySelectorAll("[data-radix-vue-combobox-item]:not([data-hidden])");o.value=!!l.length}return zke(r,()=>{At(()=>{s()})},{childList:!0}),Je(()=>a.searchTerm.value,()=>{At(()=>{s()})},{immediate:!0}),hMe({id:i}),(l,u)=>_o((E(),V(m(ot),rt(t,{ref_key:"currentRef",ref:n,role:"group","aria-labelledby":m(i)}),{default:N(()=>[me(l.$slots,"default")]),_:3},16,["aria-labelledby"])),[[Wx,o.value]])}}),[Wpt,pMe]=mn("ComboboxContent"),mMe=Q({__name:"ComboboxContentImpl",props:{position:{default:"inline"},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!0},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,{position:i}=An(n),a=S1();gv(n.bodyLock);const{forwardRef:o,currentElement:s}=Qe();yv(a.parentElement);const l=W(()=>n.position==="popper"?n:{}),u=b1(l.value);function c(f){a.onSelectedValueChange("")}Ot(()=>{a.onContentElementChange(s.value)});const d={boxSizing:"border-box","--radix-combobox-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-combobox-content-available-width":"var(--radix-popper-available-width)","--radix-combobox-content-available-height":"var(--radix-popper-available-height)","--radix-combobox-trigger-width":"var(--radix-popper-anchor-width)","--radix-combobox-trigger-height":"var(--radix-popper-anchor-height)"};return pMe({position:i}),(f,h)=>(E(),V(m(CA),null,{default:N(()=>[f.dismissable?(E(),V(m(bp),{key:0,"as-child":"","disable-outside-pointer-events":f.disableOutsidePointerEvents,onDismiss:h[0]||(h[0]=p=>m(a).onOpenChange(!1)),onFocusOutside:h[1]||(h[1]=p=>{var g;(g=m(a).parentElement.value)!=null&&g.contains(p.target)&&p.preventDefault(),r("focusOutside",p)}),onInteractOutside:h[2]||(h[2]=p=>r("interactOutside",p)),onEscapeKeyDown:h[3]||(h[3]=p=>r("escapeKeyDown",p)),onPointerDownOutside:h[4]||(h[4]=p=>{var g;(g=m(a).parentElement.value)!=null&&g.contains(p.target)&&p.preventDefault(),r("pointerDownOutside",p)})},{default:N(()=>[(E(),V(yn(m(i)==="popper"?m(Rm):m(ot)),rt({...f.$attrs,...m(u)},{id:m(a).contentId,ref:m(o),role:"listbox","data-state":m(a).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...m(i)==="popper"?d:{}},onPointerleave:c}),{default:N(()=>[me(f.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3},8,["disable-outside-pointer-events"])):(E(),V(yn(m(i)==="popper"?m(Rm):m(ot)),rt({key:1},{...f.$attrs,...l.value},{id:m(a).contentId,ref:m(o),role:"listbox","data-state":m(a).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...m(i)==="popper"?d:{}},onPointerleave:c}),{default:N(()=>[me(f.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3}))}}),Gpt=Q({__name:"ComboboxContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=Sl(e,t),{forwardRef:r}=Qe(),i=S1();return i.contentId||(i.contentId=Ri(void 0,"radix-vue-combobox-content")),(a,o)=>(E(),V(m(Cl),{present:a.forceMount||m(i).open.value},{default:N(()=>[H(mMe,rt({...m(n),...a.$attrs},{ref:m(r)}),{default:N(()=>[me(a.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}});function KY(e){const t=T6({nonce:G()});return W(()=>{var n;return e?.value||((n=t.nonce)==null?void 0:n.value)})}const Zpt=Q({__name:"ComboboxViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=Qe(),{nonce:r}=An(t),i=KY(r);return(a,o)=>(E(),U(Ae,null,[H(m(ot),rt({...a.$attrs,...t},{ref:m(n),"data-radix-combobox-viewport":"",role:"presentation",style:{position:"relative",flex:1,overflow:"auto"}}),{default:N(()=>[me(a.$slots,"default")]),_:3},16),H(m(ot),{as:"style",nonce:m(i)},{default:N(()=>[st(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-combobox-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),[Kpt,gMe]=mn("ComboboxItem"),yMe="combobox.select",Ypt=Q({__name:"ComboboxItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{disabled:i}=An(n),a=S1();fMe({id:"",options:G([])});const{forwardRef:o}=Qe(),s=W(()=>{var g,v;return a.multiple.value&&Array.isArray(a.modelValue.value)?(g=a.modelValue.value)==null?void 0:g.some(b=>hh(b,n.value)):hh((v=a.modelValue)==null?void 0:v.value,n.value)}),l=W(()=>hh(a.selectedValue.value,n.value)),u=Ri(void 0,"radix-vue-combobox-item"),c=Ri(void 0,"radix-vue-combobox-option"),d=W(()=>a.isUserInputted.value?a.searchTerm.value===""||!!a.filteredOptions.value.find(g=>hh(g,n.value)):!0);async function f(g){r("select",g),!(g!=null&&g.defaultPrevented)&&!i.value&&g&&a.onValueChange(n.value)}function h(g){if(!g)return;const v={originalEvent:g,value:n.value};hA(yMe,f,v)}async function p(g){await At(),!g.defaultPrevented&&a.onSelectedValueChange(n.value)}if(n.value==="")throw new Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");return gMe({isSelected:s}),(g,v)=>(E(),V(m(I6),{value:g.value},{default:N(()=>[_o(H(m(ot),{id:m(c),ref:m(o),role:"option",tabindex:"-1","aria-labelledby":m(u),"data-highlighted":l.value?"":void 0,"aria-selected":s.value,"data-state":s.value?"checked":"unchecked","aria-disabled":m(i)||void 0,"data-disabled":m(i)?"":void 0,as:g.as,"as-child":g.asChild,"data-hidden":d.value?void 0:!0,onClick:h,onPointermove:p},{default:N(()=>[me(g.$slots,"default",{},()=>[st(de(g.value),1)])]),_:3},8,["id","aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","as","as-child","data-hidden"]),[[Wx,d.value]])]),_:3},8,["value"]))}}),vMe=Q({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(w1),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}});function _Me(){const e=G(!1);return Ot(()=>{Jd("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),Jd(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const bMe=sY(_Me),[$6,xMe]=mn(["MenuRoot","MenuSub"],"MenuContext"),[kA,wMe]=mn("MenuRoot"),SMe=Q({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:i,dir:a}=An(n),o=Za(a),s=Yn(n,"open",r),l=G(),u=bMe();return xMe({open:s,onOpenChange:c=>{s.value=c},content:l,onContentChange:c=>{l.value=c}}),wMe({onClose:()=>{s.value=!1},isUsingKeyboardRef:u,dir:o,modal:i}),(c,d)=>(E(),V(m(xv),null,{default:N(()=>[me(c.$slots,"default")]),_:3}))}}),CMe="rovingFocusGroup.onEntryFocus",TMe={bubbles:!1,cancelable:!0},kMe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function EMe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function MMe(e,t,n){const r=EMe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return kMe[r]}
18function YY(e,t=!1){const n=hi();for(const r of e)if(r===n||(r.focus({preventScroll:t}),hi()!==n))return}function AMe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const[PMe,DMe]=mn("RovingFocusGroup"),wv=Q({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,i=n,{loop:a,orientation:o,dir:s}=An(r),l=Za(s),u=Yn(r,"currentTabStopId",i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),c=G(!1),d=G(!1),f=G(0),{getItems:h}=SA();function p(v){const b=!d.value;if(v.currentTarget&&v.target===v.currentTarget&&b&&!c.value){const x=new CustomEvent(CMe,TMe);if(v.currentTarget.dispatchEvent(x),i("entryFocus",x),!x.defaultPrevented){const _=h().map(k=>k.ref).filter(k=>k.dataset.disabled!==""),w=_.find(k=>k.getAttribute("data-active")==="true"),C=_.find(k=>k.id===u.value),T=[w,C,..._].filter(Boolean);YY(T,r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:h}),DMe({loop:a,dir:l,orientation:o,currentTabStopId:u,onItemFocus:v=>{u.value=v},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(v,b)=>(E(),V(m(CA),null,{default:N(()=>[H(m(ot),{tabindex:c.value||f.value===0?-1:0,"data-orientation":m(o),as:v.as,"as-child":v.asChild,dir:m(l),style:{outline:"none"},onMousedown:b[0]||(b[0]=x=>d.value=!0),onMouseup:g,onFocus:p,onBlur:b[1]||(b[1]=x=>c.value=!1)},{default:N(()=>[me(v.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),L6=Q({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=PMe(),r=W(()=>t.tabStopId||Ri()),i=W(()=>n.currentTabStopId.value===r.value),{getItems:a}=TA();Ot(()=>{t.focusable&&n.onFocusableItemAdd()}),br(()=>{t.focusable&&n.onFocusableItemRemove()});function o(s){if(s.key==="Tab"&&s.shiftKey){n.onItemShiftTab();return}if(s.target!==s.currentTarget)return;
18const l=MMe(s,n.orientation.value,n.dir.value);if(l!==void 0){if(s.metaKey||s.ctrlKey||s.altKey||!t.allowShiftKey&&s.shiftKey)return;s.preventDefault();let u=[...a().map(c=>c.ref).filter(c=>c.dataset.disabled!=="")];if(l==="last")u.reverse();else if(l==="prev"||l==="next"){l==="prev"&&u.reverse();const c=u.indexOf(s.currentTarget);u=n.loop.value?AMe(u,c+1):u.slice(c+1)}At(()=>YY(u))}}return(s,l)=>(E(),V(m(I6),null,{default:N(()=>[H(m(ot),{tabindex:i.value?0:-1,"data-orientation":m(n).orientation.value,"data-active":s.active,"data-disabled":s.focusable?void 0:"",as:s.as,"as-child":s.asChild,onMousedown:l[0]||(l[0]=u=>{s.focusable?m(n).onItemFocus(r.value):u.preventDefault()}),onFocus:l[1]||(l[1]=u=>m(n).onItemFocus(r.value)),onKeydown:o},{default:N(()=>[me(s.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[XY,IMe]=mn("MenuContent"),JY=Q({__name:"MenuContentImpl",props:YH({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...GY}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,r=t,i=$6(),a=kA(),{trapFocus:o,disableOutsidePointerEvents:s,loop:l}=An(n);gA(),gv(s.value);const u=G(""),c=G(0),d=G(0),f=G(null),h=G("right"),p=G(0),g=G(null),{createCollection:v}=hf(),{forwardRef:b,currentElement:x}=Qe(),_=v(x);Je(x,D=>{i.onContentChange(D)});const{handleTypeaheadSearch:w}=yA(_);br(()=>{window.clearTimeout(c.value)});function C(D){var $,O;return h.value===(($=f.value)==null?void 0:$.side)&&LEe(D,(O=f.value)==null?void 0:O.area)}async function T(D){var $;r("openAutoFocus",D),!D.defaultPrevented&&(D.preventDefault(),($=x.value)==null||$.focus({preventScroll:!0}))}function k(D){if(D.defaultPrevented)return;const $=D.target.closest("[data-radix-menu-content]")===D.currentTarget,O=D.ctrlKey||D.altKey||D.metaKey,z=D.key.length===1,j=C6(D,hi(),x.value,{loop:l.value,arrowKeyOptions:"vertical",dir:a?.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(j)return j?.focus();if(D.code==="Space"||($&&(D.key==="Tab"&&D.preventDefault(),!O&&z&&w(D.key)),D.target!==x.value)||!IEe.includes(D.key))return;D.preventDefault();const B=_.value;EY.includes(D.key)&&B.reverse(),YC(B)}function A(D){var $,O;(O=($=D?.currentTarget)==null?void 0:$.contains)!=null&&O.call($,D.target)||(window.clearTimeout(c.value),u.value="")}function P(D){var $;if(!XC(D))return;const O=D.target,z=p.value!==D.clientX;if(($=D?.currentTarget)!=null&&$.contains(O)&&z){const j=D.clientX>p.value?"right":"left";h.value=j,p.value=D.clientX}}return IMe({onItemEnter:D=>!!C(D),onItemLeave:D=>{var $;C(D)||(($=x.value)==null||$.focus(),g.value=null)},onTriggerLeave:D=>!!C(D),searchRef:u,pointerGraceTimerRef:d,onPointerGraceIntentChange:D=>{f.value=D}}),(D,$)=>(E(),V(m(P6),{"as-child":"",trapped:m(o),onMountAutoFocus:T,onUnmountAutoFocus:$[7]||($[7]=O=>r("closeAutoFocus",O))},{default:N(()=>[H(m(bp),{"as-child":"","disable-outside-pointer-events":m(s),onEscapeKeyDown:$[2]||($[2]=O=>r("escapeKeyDown",O)),onPointerDownOutside:$[3]||($[3]=O=>r("pointerDownOutside",O)),onFocusOutside:$[4]||($[4]=O=>r("focusOutside",O)),onInteractOutside:$[5]||($[5]=O=>r("interactOutside",O)),onDismiss:$[6]||($[6]=O=>r("dismiss"))},{default:N(()=>[H(m(wv),{"current-tab-stop-id":g.value,"onUpdate:currentTabStopId":$[0]||($[0]=O=>g.value=O),"as-child":"",orientation:"vertical",dir:m(a).dir.value,loop:m(l),onEntryFocus:$[1]||($[1]=O=>{r("entryFocus",O),m(a).isUsingKeyboardRef.value||O.preventDefault()})},{default:N(()=>[H(m(Rm),{ref:m(b),role:"menu",as:D.as,"as-child":D.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":m(MY)(m(i).open.value),dir:m(a).dir.value,side:D.side,"side-offset":D.sideOffset,align:D.align,"align-offset":D.alignOffset,"avoid-collisions":D.avoidCollisions,"collision-boundary":D.collisionBoundary,"collision-padding":D.collisionPadding,"arrow-padding":D.arrowPadding,"prioritize-position":D.prioritizePosition,sticky:D.sticky,"hide-when-detached":D.hideWhenDetached,onKeydown:k,onBlur:A,onPointermove:P},{default:N(()=>[me(D.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),$Me=Q({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=XY(),{forwardRef:r}=Qe(),i=G(!1);async function a(s){if(!s.defaultPrevented&&XC(s)){if(t.disabled)n.onItemLeave(s);else if(!n.onItemEnter(s)){const l=s.currentTarget;l?.focus({preventScroll:!0})}}}async function o(s){await At(),!s.defaultPrevented&&XC(s)&&n.onItemLeave(s)}return(s,l)=>(E(),V(m(I6),{value:{textValue:s.textValue}},{default:N(()=>[H(m(ot),rt({ref:m(r),role:"menuitem",tabindex:"-1"},s.$attrs,{as:s.as,"as-child":s.asChild,"data-radix-vue-collection-item":"","aria-disabled":s.disabled||void 0,"data-disabled":s.disabled?"":void 0,"data-highlighted":i.value?"":void 0,onPointermove:a,onPointerleave:o,onFocus:l[0]||(l[0]=async u=>{await At(),!(u.defaultPrevented||s.disabled)&&(i.value=!0)}),onBlur:l[1]||(l[1]=async u=>{await At(),!u.defaultPrevented&&(i.value=!1)})}),{default:N(()=>[me(s.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}
18),LMe=Q({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=Qe(),o=kA(),s=XY(),l=G(!1);async function u(){const c=a.value;if(!n.disabled&&c){const d=new CustomEvent(PEe,{bubbles:!0,cancelable:!0});r("select",d),await At(),d.defaultPrevented?l.value=!1:o.onClose()}}return(c,d)=>(E(),V($Me,rt(n,{ref:m(i),onClick:u,onPointerdown:d[0]||(d[0]=()=>{l.value=!0}),onPointerup:d[1]||(d[1]=async f=>{var h;await At(),!f.defaultPrevented&&(l.value||(h=f.currentTarget)==null||h.click())}),onKeydown:d[2]||(d[2]=async f=>{const h=m(s).searchRef.value!=="";c.disabled||h&&f.key===" "||m(KC).includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}),{default:N(()=>[me(c.$slots,"default")]),_:3},16))}}),RMe=Q({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Sl(n,r),a=$6(),{forwardRef:o,currentElement:s}=Qe();return yv(s),(l,u)=>(E(),V(JY,rt(m(i),{ref:m(o),"trap-focus":m(a).open.value,"disable-outside-pointer-events":m(a).open.value,"disable-outside-scroll":!0,onDismiss:u[0]||(u[0]=c=>m(a).onOpenChange(!1)),onFocusOutside:u[1]||(u[1]=nr(c=>r("focusOutside",c),["prevent"]))}),{default:N(()=>[me(l.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),OMe=Q({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Sl(e,t),r=$6();return(i,a)=>(E(),V(JY,rt(m(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:a[0]||(a[0]=o=>m(r).onOpenChange(!1))}),{default:N(()=>[me(i.$slots,"default")]),_:3},16))}}),BMe=Q({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Sl(e,t),r=$6(),i=kA();return(a,o)=>(E(),V(m(Cl),{present:a.forceMount||m(r).open.value},{default:N(()=>[m(i).modal.value?(E(),V(RMe,un(rt({key:0},{...a.$attrs,...m(n)})),{default:N(()=>[me(a.$slots,"default")]),_:3},16)):(E(),V(OMe,un(rt({key:1},{...a.$attrs,...m(n)})),{default:N(()=>[me(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),FMe=Q({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(E(),V(m(bv),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),zMe=["hour","minute","second"];function qF(e){const{formatter:t}=e,n=mA.map(r=>[r,e.value[r]]);if("hour"in e.value){const r=iY.map(a=>a==="dayPeriod"?[a,t.dayPeriod(ks(e.value))]:[a,e.value[a]]),i=[...n,...r];return Object.fromEntries(i)}return Object.fromEntries(n)}function NMe(e){const t=aY.map(n=>n==="dayPeriod"?[n,"AM"]:[n,null]).filter(([n])=>n==="literal"||n===null||e==="minute"&&n==="second"||e==="hour"&&(n==="second"||n==="minute")?!1:e==="day"?!zMe.includes(n)&&n!=="dayPeriod":!0);return Object.fromEntries(t)}function VMe(e){const{segmentValues:t,formatter:n,locale:r}=e;function i(a){if("hour"in t){const o=t[a];return o!==null?a==="day"&&t.month!==null?n.part(e.dateRef.set({[a]:o,month:t.month}),a,{hourCycle:e.hourCycle===24?"h24":void 0}):n.part(e.dateRef.set({[a]:o}),a,{hourCycle:e.hourCycle===24?"h24":void 0}):W7(a,"",r.value)}else{if(xke(a)){const o=t[a];return o!==null?a==="day"&&t.month!==null?n.part(e.dateRef.set({[a]:o,month:t.month}),a):n.part(e.dateRef.set({[a]:o}),a):W7(a,"",r.value)}return""}}return Object.keys(t).reduce((a,o)=>
18{if(!oY(o))return a;if("hour"in t&&o==="dayPeriod"){const s=t[o];s!==null?a[o]=s:a[o]=W7(o,"AM",r.value)}else a[o]=i(o);return a},{})}function jMe(e){const{granularity:t,formatter:n,contentObj:r,hideTimeZone:i,hourCycle:a}=e;return n.toParts(e.dateRef,wke(t,a)).map(o=>["literal","timeZoneName",null].includes(o.type)||!oY(o.type)?{part:o.type,value:o.value}:{part:o.type,value:r[o.type]}).filter(o=>!(o.part===null||o.value===null||o.part==="timeZoneName"&&(!m6(e.dateRef)||i)))}function UMe(e){const t=VMe(e),n=jMe({contentObj:t,...e});return{obj:t,arr:n}}function pd(e){const t=vv();return e===t.ARROW_RIGHT||e===t.ARROW_LEFT}function Jf(e){return!Number.isNaN(Number.parseInt(e))}function sd(e){const t=vv();return!!([t.ENTER,t.ARROW_UP,t.ARROW_DOWN,t.ARROW_LEFT,t.ARROW_RIGHT,t.BACKSPACE,t.SPACE,"a","A","p","P"].includes(e)||Jf(e))}function WF(e){return Array.from(e.querySelectorAll("[data-radix-vue-date-field-segment]")).filter(t=>t.getAttribute("data-radix-vue-date-field-segment")!=="literal")}const HMe=["id","value","name","disabled","required"],[qMe,WMe]=mn("DateFieldRoot"),GMe=Q({inheritAttrs:!1,__name:"DateFieldRoot",props:{defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},modelValue:{},hourCycle:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{default:"en"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},name:{},required:{type:Boolean},id:{},dir:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:n}){const r=e,i=n,{locale:a,disabled:o,readonly:s,isDateUnavailable:l,granularity:u,defaultValue:c,dir:d}=An(r),f=hY(r.locale),h=Za(d),{primitiveElement:p,currentElement:g}=_v(),v=G(new Set);Ot(()=>{WF(g.value).forEach(K=>v.value.add(K))});const b=Yn(r,"modelValue",i,{defaultValue:c.value,passive:r.modelValue===void 0}),x=pA({defaultPlaceholder:r.placeholder,granularity:u.value,defaultValue:b.value,locale:r.locale}),_=Yn(r,"placeholder",i,{defaultValue:r.defaultPlaceholder??x.copy(),passive:r.placeholder===void 0}),w=W(()=>r.granularity?UC(_.value)?r.granularity:"day":UC(_.value)?"minute":"day"),C=W(()=>{var K;return b.value?!!((K=l.value)!=null&&K.call(l,b.value)||r.minValue&&W0(b.value,r.minValue)||r.maxValue&&W0(r.maxValue,b.value)):!1}),T=NMe(w.value),k=G(b.value?{...qF({value:b.value,formatter:f})}:{...T}),A=W(()=>UMe({granularity:w.value,dateRef:_.value,formatter:f,hideTimeZone:r.hideTimeZone,hourCycle:r.hourCycle,segmentValues:k.value,locale:a})),P=W(()=>A.value.arr),D=W(()=>P.value.filter(({part:K})=>K!=="literal"));Je(a,K=>{f.getLocale()!==K&&(f.setLocale(K),At(()=>{v.value.clear(),WF(g.value).forEach(Z=>v.value.add(Z))}))}),Je(b,K=>{!um(K)&&_.value.compare(K)!==0&&(_.value=K.copy())}),Je([b,a],([K])=>{um(K)?Object.values(k.value).every(Z=>Z!==null)&&K===void 0&&(k.value={...T}):k.value={...qF({value:K,formatter:f})}});const $=G(null),O=W(()=>Array.from(v.value).findIndex(K=>{var Z;return K.getAttribute("data-radix-vue-date-field-segment")===((Z=$.value)==null?void 0:Z.getAttribute("data-radix-vue-date-field-segment"))})),z=W(()=>{const K=h.value==="rtl"?-1:1;return(K<0?O.value<0:O.value>v.value.size-1)?null:Array.from(v.value)[O.value+K]}),j=W(()=>{const K=h.value==="rtl"?-1:1;return(K>0?O.value<0:O.value>v.value.size-1)?null:Array.from(v.value)[O.value-K]}),B=vv();function R(K){var Z,ne;pd(K.key)&&(K.key===B.ARROW_LEFT&&((Z=j.value)==null||Z.focus()),K.key===B.ARROW_RIGHT&&((ne=z.value)==null||ne.focus()))}function J(K){$.value=K}return WMe({isDateUnavailable:l.value,locale:a,modelValue:b,placeholder:_,disabled:o,formatter:f,hourCycle:r.hourCycle,readonly:s,segmentValues:k,isInvalid:C,segmentContents:D,elements:v,setFocusedElement:J,focusNext(){var K;(K=z.value)==null||K.focus()}}),t({setFocusedElement:J}),(K,Z)=>(E(),U(Ae,null,[H(m(ot),rt(K.$attrs,{ref_key:"primitiveElement",ref:p,role:"group","aria-disabled":m(o)?!0:void 0,"data-disabled":m(o)?"":void 0,"data-readonly":m(s)?"":void 0,"data-invalid":C.value?"":void 0,dir:m(h),onKeydown:po(R,["left","right"])}),{default:N(()=>[me(K.$slots,"default",{modelValue:m(b),segments:P.value,isInvalid:C.value})]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]),Y("input",{id:K.id,type:"text",tabindex:"-1","aria-hidden":"true",value:m(b)?m(b).toString():"",name:K.name,disabled:m(o),required:K.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0},onFocus:Z[0]||(Z[0]=ne=>{var se,ce;return(ce=(se=Array.from(v.value))==null?void 0:se[0])==null?void 0:ce.focus()})},null,40,HMe)],64))}});function pf(e){return{role:"spinbutton",contenteditable:!0,tabindex:e.disabled?void 0:0,spellcheck:!1,inputmode:"numeric",autocorrect:"off",enterkeyhint:"next",style:"caret-color: transparent;"}}function ZMe(e){const{segmentValues:t,placeholder:n}=e,r=t.day===null,i=t.day?n.set({day:t.day}
18):n,a=i.day,o=1,s=iu(i),l=r?"Empty":`${a}`;return{...pf(e),"aria-label":"day,","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":a,"aria-valuetext":l,"data-placeholder":r?"":void 0}}function KMe(e){const{segmentValues:t,placeholder:n,formatter:r}=e,i=t.month===null,a=t.month?n.set({month:t.month}):n,o=a.month,s=1,l=12,u=i?"Empty":`${o} - ${r.fullMonth(ks(a))}`;return{...pf(e),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":o,"aria-valuetext":u,"data-placeholder":i?"":void 0}}function YMe(e){const{segmentValues:t,placeholder:n}=e,r=t.year===null,i=t.year?n.set({year:t.year}):n,a=1,o=9999,s=i.year,l=r?"Empty":`${s}`;return{...pf(e),"aria-label":"year, ","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":s,"aria-valuetext":l,"data-placeholder":r?"":void 0}}function XMe(e){const{segmentValues:t,hourCycle:n,placeholder:r}=e;if(!("hour"in t)||!("hour"in r))return{};const i=t.hour===null,a=t.hour?r.set({hour:t.hour}):r,o=n===12?1:0,s=n===12?12:23,l=a.hour,u=i?"Empty":`${l} ${t.dayPeriod??""}`;return{...pf(e),"aria-label":"hour, ","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":i?"":void 0}}function JMe(e){const{segmentValues:t,placeholder:n}=e;if(!("minute"in t)||!("minute"in n))return{};const r=t.minute===null,i=(t.minute?n.set({minute:t.minute}):n).minute,a=0,o=59,s=r?"Empty":`${i}`;return{...pf(e),"aria-label":"minute, ","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":i,"aria-valuetext":s,"data-placeholder":r?"":void 0}}function QMe(e){const{segmentValues:t,placeholder:n}=e;if(!("second"in t)||!("second"in n))return{};const r=t.second===null,i=(t.second?n.set({second:t.second}):n).second,a=0,o=59,s=r?"Empty":`${i}`;return{...pf(e),"aria-label":"second, ","aria-valuemin":a,"aria-valuemax":o,"aria-valuenow":i,"aria-valuetext":s,"data-placeholder":r?"":void 0}}function eAe(e){const{segmentValues:t}=e;if(!("dayPeriod"in t))return{};const n=0,r=12,i=t.hour?t.hour>12?t.hour-12:t.hour:0,a=t.dayPeriod??"AM";return{...pf(e),inputmode:"text","aria-label":"AM/PM","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":i,"aria-valuetext":a}}function tAe(e){return{"aria-hidden":!0,"data-segment":"literal"}}function nAe(e){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:e.disabled?void 0:0,style:"caret-color: transparent;"}}function rAe(e){const{segmentValues:t,placeholder:n}=e,r=0,i=0,a=0,o="era"in t?t.era:n.era;return{...pf(e),"aria-label":"era","aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":a,"aria-valuetext":o}}const iAe={day:{attrs:ZMe},month:{attrs:KMe},year:{attrs:YMe},hour:{attrs:XMe},minute:{attrs:JMe},second:{attrs:QMe},dayPeriod:{attrs:eAe},literal:{attrs:tAe},timeZoneName:{attrs:nAe},era:{attrs:rAe}};function aAe(e){const t=vv();function n({e:_,part:w,dateRef:C,prevValue:T}){const k=_.key===t.ARROW_UP?1:-1,A=0,P=59;if(T===null)return k>0?A:P;const D=[w,k];return C.set({[w]:T}).cycle(...D)[w]}function r(_){if(e.hasLeftFocus.value=!1,_===null)return _;const w=_.toString();return w.length===1?(e.modelValue.value=void 0,null):Number.parseInt(w.slice(0,-1))}function i({e:_,part:w,dateRef:C,prevValue:T,hourCycle:k}){const A=_.key===t.ARROW_UP?1:-1;if(T===null)return C[w];if(w==="hour"&&"hour"in C){const D=[w,A,{hourCycle:k}];return C.set({[w]:T}).cycle(...D)[w]}const P=[w,A];return w==="day"&&e.segmentValues.value.month!==null?C.set({[w]:T,month:e.segmentValues.value.month}).cycle(...P)[w]:C.set({[w]:T}).cycle(...P)[w]}function a(_,w,C){let T=!1;const k=Math.floor(_/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,C=null),C===null)return w===0?(e.lastKeyZero.value=!0,{value:null,moveToNext:T}):((e.lastKeyZero.value||w>k)&&(T=!0),e.lastKeyZero.value=!1,{value:w,moveToNext:T});const A=C.toString().length,P=Number.parseInt(C.toString()+w.toString());return A===2||P>_?((w>k||P>_)&&(T=!0),{value:w,moveToNext:T}):(T=!0,{value:P,moveToNext:T})}function o(_,w){let C=!1;const T=Math.floor(59/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,w=null),w===null)return _===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:C}):((e.lastKeyZero.value||_>T)&&(C=!0),e.lastKeyZero.value=!1,{value:_,moveToNext:C});const k=w.toString().length,A=Number.parseInt(w.toString()+_.toString());return k===2||A>59?(_>T&&(C=!0),{value:_,moveToNext:C}):(C=!0,{value:A,moveToNext:C})}function s(_,w){let C=!1;const T=Math.floor(24/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,w=null),w===null)return _===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:C}):((e.lastKeyZero.value||_>T)&&(C=!0),e.lastKeyZero.value=!1,{value:_,moveToNext:C});const k=w.toString().length,A=Number.parseInt(w.toString()+_.toString());return k===2||A>24?(_>T&&(C=!0),{value:_,moveToNext:C}):(C=!0,{value:A,moveToNext:C})}function l(_,w){let C=!1;if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,w=null),w===null)return{value:_===0?1:_,moveToNext:C};const T=w.toString()+_.toString();return T.length>4?{value:_===0?1:_,moveToNext:C}:(T.length===4&&(C=!0),{value:Number.parseInt(T),moveToNext:C})}const u=W(()=>{var _;return((_=iAe[e.part])==null?void 0:_.attrs({disabled:e.disabled.value,placeholder:e.placeholder.value,hourCycle:e.hourCycle,segmentValues:e.segmentValues.value,formatter:e.formatter}))??{}});function c(_){if(!sd(_.key)||pd(_.key))return;const w=e.segmentValues.value.day;if(_.key===t.ARROW_DOWN||_.key===t.ARROW_UP){e.segmentValues.value.day=i({e:_,part:"day",dateRef:e.placeholder.value,prevValue:w});return}if(Jf(_.key)){const C=Number.parseInt(_.key),T=e.segmentValues.value.month,k=iu(T?e.placeholder.value.set({month:T}):e.placeholder.value),{value:A,moveToNext:P}=a(k,C,w);e.segmentValues.value.day=A,P&&e.focusNext()}_.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.day=r
18(w))}function d(_){if(!sd(_.key)||pd(_.key))return;const w=e.segmentValues.value.month;if(_.key===t.ARROW_DOWN||_.key===t.ARROW_UP){e.segmentValues.value.month=i({e:_,part:"month",dateRef:e.placeholder.value,prevValue:w});return}if(Jf(_.key)){const C=Number.parseInt(_.key),{value:T,moveToNext:k}=a(12,C,w);e.segmentValues.value.month=T,k&&e.focusNext()}_.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.month=r(w))}function f(_){if(!sd(_.key)||pd(_.key))return;const w=e.segmentValues.value.year;if(_.key===t.ARROW_DOWN||_.key===t.ARROW_UP){e.segmentValues.value.year=i({e:_,part:"year",dateRef:e.placeholder.value,prevValue:w});return}if(Jf(_.key)){const C=Number.parseInt(_.key),{value:T,moveToNext:k}=l(C,w);e.segmentValues.value.year=T,k&&e.focusNext()}_.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.year=r(w))}function h(_){const w=e.placeholder.value;if(!sd(_.key)||pd(_.key)||!("hour"in w)||!("hour"in e.segmentValues.value))return;const C=e.segmentValues.value.hour,T=e.hourCycle;if(_.key===t.ARROW_UP||_.key===t.ARROW_DOWN){e.segmentValues.value.hour=i({e:_,part:"hour",dateRef:e.placeholder.value,prevValue:C,hourCycle:T}),"dayPeriod"in e.segmentValues.value&&(e.segmentValues.value.hour<12?e.segmentValues.value.dayPeriod="AM":e.segmentValues.value.hour&&(e.segmentValues.value.dayPeriod="PM"));return}if(Jf(_.key)){const k=Number.parseInt(_.key),{value:A,moveToNext:P}=s(k,C);"dayPeriod"in e.segmentValues.value&&A&&A>12?e.segmentValues.value.dayPeriod="PM":"dayPeriod"in e.segmentValues.value&&A&&(e.segmentValues.value.dayPeriod="AM"),e.segmentValues.value.hour=A,P&&e.focusNext()}_.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.hour=r(C))}function p(_){const w=e.placeholder.value;if(!sd(_.key)||pd(_.key)||!("minute"in w)||!("minute"in e.segmentValues.value))return;const C=e.segmentValues.value.minute;if(e.segmentValues.value.minute=n({e:_,part:"minute",dateRef:e.placeholder.value,prevValue:C}),Jf(_.key)){const T=Number.parseInt(_.key),{value:k,moveToNext:A}=o(T,C);e.segmentValues.value.minute=k,A&&e.focusNext()}_.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.minute=r(C))}function g(_){const w=e.placeholder.value;if(!sd(_.key)||pd(_.key)||!("second"in w)||!("second"in e.segmentValues.value))return;const C=e.segmentValues.value.second;if(e.segmentValues.value.second=n({e:_,part:"second",dateRef:e.placeholder.value,prevValue:C}),Jf(_.key)){const T=Number.parseInt(_.key),{value:k,moveToNext:A}=o(T,C);e.segmentValues.value.second=k,A&&e.focusNext()}_.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.second=r(C))}function v(_){if(!((!sd(_.key)||pd(_.key))&&_.key!=="a"&&_.key!=="p"||!("hour"in e.placeholder.value)||!("dayPeriod"in e.segmentValues.value))){if(_.key===t.ARROW_UP||_.key===t.ARROW_DOWN){if(e.segmentValues.value.dayPeriod==="AM"){e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12;return}e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}if(["a","A"].includes(_.key)&&e.segmentValues.value.dayPeriod!=="AM"){e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}["p","P"].includes(_.key)&&e.segmentValues.value.dayPeriod!=="PM"&&(e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12)}}function b(_){e.disabled.value&&_.preventDefault()}function x(_){const w=e.disabled.value,C=e.readonly.value;if(_.key!==t.TAB&&_.preventDefault(),!(w||C)&&({day:c,month:d,year:f,hour:h,minute:p,second:g,dayPeriod:v,timeZoneName:()=>{}}[e.part](_),![t.ARROW_LEFT,t.ARROW_RIGHT].includes(_.key)&&_.key!==t.TAB&&_.key!==t.SHIFT&&sd(_.key)&&Object.values(e.segmentValues.value).every(T=>T!==null))){const T={...e.segmentValues.value};let k=e.placeholder.value.copy();Object.keys(T).forEach(A=>{const P=T[A];k=k.set({[A]:P})}),e.modelValue.value=k.copy()}}return{handleSegmentClick:b,handleSegmentKeydown:x,attributes:u}}const oAe=Q({__name:"DateFieldInput",props:{part:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=qMe(),r=G(!0),i=G(!1),{handleSegmentClick:a,handleSegmentKeydown:o,attributes:s}=aAe({hasLeftFocus:r,lastKeyZero:i,placeholder:n.placeholder,hourCycle:n.hourCycle,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),l=W(()=>n.disabled.value),u=W(()=>
18n.readonly.value),c=W(()=>n.isInvalid.value);return(d,f)=>(E(),V(m(ot),rt({as:d.as,"as-child":d.asChild},m(s),{contenteditable:l.value||u.value?!1:d.part!=="literal","data-radix-vue-date-field-segment":d.part,"aria-disabled":l.value?!0:void 0,"aria-readonly":u.value?!0:void 0,"data-disabled":l.value?"":void 0,"data-invalid":c.value?"":void 0,"aria-invalid":c.value?!0:void 0},GH(d.part!=="literal"?{mousedown:m(a),keydown:m(o),focusout:()=>{r.value=!0},focusin:h=>{m(n).setFocusedElement(h.target)}}:{})),{default:N(()=>[me(d.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-radix-vue-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),sAe=Q({__name:"DatePickerHeader",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(RY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),lAe=Q({__name:"DatePickerHeading",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(OY),un(pn(t)),{default:N(({headingValue:i})=>[me(n.$slots,"default",{headingValue:i},()=>[st(de(i),1)])]),_:3},16))}}),uAe=Q({__name:"DatePickerGrid",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(BY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),cAe=Q({__name:"DatePickerCell",props:{date:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(FY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),dAe=Q({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(zY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),fAe=Q({__name:"DatePickerNext",props:{step:{},nextPage:{type:Function},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(NY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),hAe=Q({__name:"DatePickerPrev",props:{step:{},prevPage:{type:Function},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(VY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),pAe=Q({__name:"DatePickerGridHead",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(jY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),mAe=Q({__name:"DatePickerGridBody",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(UY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),gAe=Q({__name:"DatePickerGridRow",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(HY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),yAe=Q({__name:"DatePickerCellTrigger",props:{day:{},month:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(qY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),vAe=Q({__name:"DatePickerInput",props:{part:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(oAe),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),[EA,_Ae]=mn("DatePickerRoot"),bAe=Q({inheritAttrs:!1,__name:"DatePickerRoot",props:{defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},modelValue:{},hourCycle:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{default:"en"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},name:{},required:{type:Boolean},id:{},dir:{},asChild:{type:Boolean},as:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},pagedNavigation:{type:Boolean,default:!1},weekStartsOn:{default:0},weekdayFormat:{default:"narrow"},fixedWeeks:{type:Boolean,default:!1},numberOfMonths:{default:1},preventDeselect:{type:Boolean,default:!1}},emits:["update:modelValue","update:placeholder","update:open"],setup(e,{emit:t}){const n=e,r=t,{locale:i,disabled:a,readonly:o,pagedNavigation:s,weekStartsOn:l,weekdayFormat:u,fixedWeeks:c,numberOfMonths:d,preventDeselect:f,isDateDisabled:h,isDateUnavailable:p,defaultOpen:g,modal:v,id:b,name:x,required:_,minValue:w,maxValue:C,granularity:T,hideTimeZone:k,hourCycle:A,defaultValue:P,dir:D}=An(n),$=Za(D),O=Yn(n,"modelValue",r,{defaultValue:P.value,passive:n.modelValue===void 0}),z=W(()=>pA({defaultPlaceholder:n.placeholder,granularity:n.granularity,defaultValue:O.value,locale:n.locale})),j=Yn(n,"placeholder",r,{defaultValue:n.defaultPlaceholder??z.value.copy(),passive:n.placeholder===void 0}),B=Yn(n,"open",r,{defaultValue:g.value,passive:n.open===void 0}
18),R=G();return Je(O,J=>{J&&J.compare(j.value)!==0&&(j.value=J.copy())}),_Ae({isDateUnavailable:p.value,isDateDisabled:h.value,locale:i,disabled:a,pagedNavigation:s,weekStartsOn:l,weekdayFormat:u,fixedWeeks:c,numberOfMonths:d,readonly:o,preventDeselect:f,modelValue:O,placeholder:j,defaultOpen:g,modal:v,open:B,id:b,name:x,required:_,minValue:w,maxValue:C,granularity:T,hideTimeZone:k,hourCycle:A,dateFieldRef:R,dir:$,onDateChange(J){!J||!O.value?O.value=J?.copy()??void 0:!f.value&&J&&O.value.compare(J)===0?O.value=void 0:O.value=J.copy()},onPlaceholderChange(J){j.value=J.copy()}}),(J,K)=>(E(),V(m(T1),{open:m(B),"onUpdate:open":K[0]||(K[0]=Z=>$t(B)?B.value=Z:null),"default-open":m(g),modal:m(v)},{default:N(()=>[me(J.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),xAe=Q({__name:"DatePickerCalendar",setup(e){const t=EA();return(n,r)=>(E(),V(m(LY),rt({isDateDisabled:m(t).isDateDisabled,isDateUnavailable:m(t).isDateUnavailable,minValue:m(t).minValue.value,maxValue:m(t).maxValue.value,locale:m(t).locale.value,disabled:m(t).disabled.value,pagedNavigation:m(t).pagedNavigation.value,weekStartsOn:m(t).weekStartsOn.value,weekdayFormat:m(t).weekdayFormat.value,fixedWeeks:m(t).fixedWeeks.value,numberOfMonths:m(t).numberOfMonths.value,readonly:m(t).readonly.value,preventDeselect:m(t).preventDeselect.value,dir:m(t).dir.value},{"model-value":m(t).modelValue.value,placeholder:m(t).placeholder.value,"initial-focus":"",multiple:!1,"onUpdate:modelValue":r[0]||(r[0]=i=>{i&&m(t).modelValue.value&&m(Ay)(i,m(t).modelValue.value)||m(t).onDateChange(i)}),"onUpdate:placeholder":r[1]||(r[1]=i=>{m(Ay)(i,m(t).placeholder.value)||m(t).onPlaceholderChange(i)})}),{default:N(({weekDays:i,grid:a,date:o,weekStartsOn:s,locale:l,fixedWeeks:u})=>[me(n.$slots,"default",{date:o,grid:a,weekDays:i,weekStartsOn:s,locale:l,fixedWeeks:u})]),_:3},16,["model-value","placeholder"]))}}),wAe=Q({__name:"DatePickerField",setup(e){const t=EA();return(n,r)=>(E(),V(m(GMe),rt({ref:m(t).dateFieldRef,"model-value":m(t).modelValue.value,placeholder:m(t).placeholder.value},{id:m(t).id.value,name:m(t).name.value,disabled:m(t).disabled.value,minValue:m(t).minValue.value,maxValue:m(t).maxValue.value,readonly:m(t).readonly.value,hourCycle:m(t).hourCycle.value,granularity:m(t).granularity.value,hideTimeZone:m(t).hideTimeZone.value,locale:m(t).locale.value,isDateUnavailable:m(t).isDateUnavailable,required:m(t).required.value,dir:m(t).dir.value},{"onUpdate:modelValue":r[0]||(r[0]=i=>{i&&m(t).modelValue.value&&i.compare(m(t).modelValue.value)===0||m(t).onDateChange(i)}),"onUpdate:placeholder":r[1]||(r[1]=i=>{i.compare(m(t).placeholder.value)!==0&&m(t).onPlaceholderChange(i)})}),{default:N(({segments:i,modelValue:a})=>[me(n.$slots,"default",{segments:i,modelValue:a})]),_:3},16,["model-value","placeholder"]))}}),SAe=Q({__name:"DatePickerAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(O6),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),CAe=Q({__name:"DatePickerArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(E(),V(m(DA),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),TAe=Q({__name:"DatePickerTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=EA();return(r,i)=>(E(),V(m(k1),rt({"data-radix-vue-date-field-segment":"trigger"},t,{disabled:m(n).disabled.value,onFocusin:i[0]||(i[0]=a=>{var o;(o=m(n).dateFieldRef.value)==null||o.setFocusedElement(a.target)})}),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["disabled"]))}}),kAe=Q({__name:"DatePickerContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Sl(e,t);return(r,i)=>(E(),V(m(PA),null,{default:N(()=>[H(m(E1),un(pn({...m(n),...r.$attrs})),{default:N(()=>[me(r.$slots,"default")]),_:3},16)]),_:3}))}}),[QY,EAe]=mn("DropdownMenuRoot"),Xpt=Q({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;Qe();const i=Yn(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=G(),{modal:o,dir:s}=An(n),l=Za(s);return EAe({open:i,onOpenChange:u=>{i.value=u},onOpenToggle:()=>{i.value=!i.value},triggerId:"",triggerElement:a,contentId:"",modal:o,dir:l}),(u,c)=>(E(),V(m(SMe),{open:m(i),"onUpdate:open":c[0]||(c[0]=d=>$t(i)?i.value=d:null),dir:m(l),modal:m(o)},{default:N(()=>[me(u.$slots,"default",{open:m(i)})]),_:3},8,["open","dir","modal"]))}}),Jpt=Q({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=QY(),{forwardRef:r,currentElement:i}=Qe();return Ot(()=>{n.triggerElement=i}),n.triggerId||(n.triggerId=Ri(void 0,"radix-vue-dropdown-menu-trigger")),(a,o)=>(E(),V(m(vMe),{"as-child":""},{default:N(()=>[H(m(ot),{id:m(n).triggerId,ref:m(r),type:a.as==="button"?"button":void 0,"as-child":t.asChild,as:a.as,"aria-haspopup":"menu","aria-expanded":m(n).open.value,"aria-controls":m(n).open.value?m(n).c
18ontentId:void 0,"data-disabled":a.disabled?"":void 0,disabled:a.disabled,"data-state":m(n).open.value?"open":"closed",onClick:o[0]||(o[0]=async s=>{var l;!a.disabled&&s.button===0&&s.ctrlKey===!1&&((l=m(n))==null||l.onOpenToggle(),await At(),m(n).open.value&&s.preventDefault())}),onKeydown:o[1]||(o[1]=po(s=>{a.disabled||(["Enter"," "].includes(s.key)&&m(n).onOpenToggle(),s.key==="ArrowDown"&&m(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())},["enter","space","arrow-down"]))},{default:N(()=>[me(a.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),Qpt=Q({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(E(),V(m(FMe),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),e0t=Q({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=Sl(e,t);Qe();const r=QY(),i=G(!1);function a(o){o.defaultPrevented||(i.value||setTimeout(()=>{var s;(s=r.triggerElement.value)==null||s.focus()},0),i.value=!1,o.preventDefault())}return r.contentId||(r.contentId=Ri(void 0,"radix-vue-dropdown-menu-content")),(o,s)=>{var l;return E(),V(m(BMe),rt(m(n),{id:m(r).contentId,"aria-labelledby":(l=m(r))==null?void 0:l.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:a,onInteractOutside:s[0]||(s[0]=u=>{var c;if(u.defaultPrevented)return;const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,h=d.button===2||f;(!m(r).modal.value||h)&&(i.value=!0),(c=m(r).triggerElement.value)!=null&&c.contains(u.target)&&u.preventDefault()})}),{default:N(()=>[me(o.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),t0t=Q({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=_p(t);return Qe(),(i,a)=>(E(),V(m(LMe),un(pn({...n,...m(r)})),{default:N(()=>[me(i.$slots,"default")]),_:3},16))}}),[xp,eX]=mn(["NavigationMenuRoot","NavigationMenuSub"],"NavigationMenuContext"),n0t=Q({__name:"NavigationMenuRoot",props:{modelValue:{default:void 0},defaultValue:{},dir:{},orientation:{default:"horizontal"},delayDuration:{default:200},skipDelayDuration:{default:300},disableClickTrigger:{type:Boolean,default:!1},disableHoverTrigger:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"nav"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Yn(n,"modelValue",t,{defaultValue:n.defaultValue??"",passive:n.modelValue===void 0}),i=G(""),{forwardRef:a,currentElement:o}=Qe(),s=G(),l=G(),{createCollection:u}=hf("nav");u(s);const{delayDuration:c,skipDelayDuration:d,dir:f,disableClickTrigger:h,disableHoverTrigger:p}=An(n),g=Za(f),v=x6(!1,d),b=W(()=>r.value!==""||v.value?150:c.value),x=Rke(_=>{typeof _=="string"&&(i.value=r.value,r.value=_)},b);return eX({isRootMenu:!0,modelValue:r,previousValue:i,baseId:Ri(void 0,"radix-navigation-menu"),disableClickTrigger:h,disableHoverTrigger:p,dir:g,orientation:n.orientation,rootNavigationMenu:o,indicatorTrack:s,onIndicatorTrackChange:_=>{s.value=_},viewport:l,onViewportChange:_=>{l.value=_},onTriggerEnter:_=>{x(_)},onTriggerLeave:()=>{v.value=!0,x("")},onContentEnter:()=>{x()},onContentLeave:()=>{x("")},onItemSelect:_=>{i.value=r.value,r.value=_},onItemDismiss:()=>{i.value=r.value,r.value=""}}),(_,w)=>(E(),V(m(ot),{ref:m(a),"aria-label":"Main",as:_.as,"as-child":_.asChild,"data-orientation":_.orientation,dir:m(g),"data-radix-navigation-menu":""},{default:N(()=>[me(_.$slots,"default",{modelValue:m(r)})]),_:3},8,["as","as-child","data-orientation","dir"]))}});function R6(e){return e?"open":"closed"}function tX(e,t){return`${e}-trigger-${t}`}function MA(e,t){return`${e}-content-${t}`}
18const J7="navigationMenu.rootContentDismiss";function eT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nX(e){const t=hi();return e.some(n=>n===t?!0:(n.focus(),hi()!==t))}function MAe(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function rX(e){return t=>t.pointerType==="mouse"?e(t):void 0}const[AA,AAe]=mn("NavigationMenuItem"),r0t=Q({__name:"NavigationMenuItem",props:{value:{},asChild:{type:Boolean},as:{default:"li"}},setup(e){const t=e;Qe();const{injectCollection:n}=hf("nav"),r=n(),i=xp(),a=Ri(t.value),o=G(),s=G(),l=MA(i.baseId,a);let u=()=>({});const c=G(!1);async function d(g="start"){const v=document.getElementById(l);if(v){u();const b=eT(v);b.length&&nX(g==="start"?b:b.reverse())}}function f(){const g=document.getElementById(l);if(g){const v=eT(g);v.length&&(u=MAe(v))}}AAe({value:a,contentId:l,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onContentFocusOutside:f,onRootContentClose:f});function h(){var g;i.onItemDismiss(),(g=o.value)==null||g.focus()}function p(g){const v=hi();if(g.keyCode===32||g.key==="Enter")if(i.modelValue.value===a){h(),g.preventDefault();return}else{g.target.click(),g.preventDefault();return}const b=r.value.filter(_=>{var w;return(w=_.parentElement)==null?void 0:w.hasAttribute("data-menu-item")});if(!b.includes(v))return;const x=C6(g,v,void 0,{itemsArray:b,loop:!1});x&&x?.focus(),g.preventDefault(),g.stopPropagation()}return(g,v)=>(E(),V(m(ot),{"as-child":g.asChild,as:g.as,"data-menu-item":"",onKeydown:po(p,["up","down","left","right","home","end","space"])},{default:N(()=>[me(g.$slots,"default")]),_:3},8,["as-child","as"]))}}),PAe=Q({__name:"NavigationMenuContentImpl",props:{disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,{injectCollection:i}=hf("nav"),a=i(),{forwardRef:o,currentElement:s}=Qe(),l=xp(),u=AA(),c=tX(l.baseId,u.value),d=MA(l.baseId,u.value),f=G(null),h=W(()=>{const _=a.value.map(P=>P.id.split("trigger-")[1]);l.dir.value==="rtl"&&_.reverse();const w=_.indexOf(l.modelValue.value),C=_.indexOf(l.previousValue.value),T=u.value===l.modelValue.value,k=C===_.indexOf(u.value);if(!T&&!k)return f.value;const A=(()=>{if(w!==C){if(T&&C!==-1)return w>C?"from-end":"from-start";if(k&&w!==-1)return w>C?"to-start":"to-end"}return null})();return f.value=A,A});function p(_){var w,C;if(r("focusOutside",_),r("interactOutside",_),!_.defaultPrevented){u.onContentFocusOutside();const T=_.target;(C=(w=l.rootNavigationMenu)==null?void 0:w.value)!=null&&C.contains(T)&&_.preventDefault()}}function g(_){var w;if(r("pointerDownOutside",_),!_.defaultPrevented){const C=_.target,T=a.value.some(A=>A.contains(C)),k=l.isRootMenu&&((w=l.viewport.value)==null?void 0:w.contains(C));(T||k||!l.isRootMenu)&&_.preventDefault()}}ii(_=>{const w=s.value;if(l.isRootMenu&&w){const C=()=>{var T;l.onItemDismiss(),u.onRootContentClose(),w.contains(hi())&&((T=u.triggerRef.value)==null||T.focus())};w.addEventListener(J7,C),_(()=>w.removeEventListener(J7,C))}});function v(_){var w,C;r("escapeKeyDown",_),_.defaultPrevented||(l.onItemDismiss(),(C=(w=u.triggerRef)==null?void 0:w.value)==null||C.focus(),u.wasEscapeCloseRef.value=!0)}function b(_){var w;if(_.target.closest("[data-radix-navigation-menu]")!==l.rootNavigationMenu.value)return;const C=_.altKey||_.ctrlKey||_.metaKey,T=_.key==="Tab"&&!C,k=eT(_.currentTarget);if(T){const P=hi(),D=k.findIndex(O=>O===P),$=_.shiftKey?k.slice(0,D).reverse():k.slice(D+1,k.length);if(nX($))_.preventDefault();else{(w=u.focusProxyRef.value)==null||w.focus();return}}const A=C6(_,hi(),void 0,{itemsArray:k,loop:!1,enableIgnoredElement:!0});A?.focus()}function x(){var _;const w=new Event(J7,{bubbles:!0,cancelable:!0});(_=s.value)==null||_.dispatchEvent(w)}return(_,w)=>(E(),V(m(bp),rt({id:m(d),ref:m(o),"aria-labelledby":m(c),"data-motion":h.value,"data-state":m(R6)(m(l).modelValue.value===m(u).value),"data-orientation":m(l).orientation},n,{onKeydown:b,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:p,onDismiss:x}),{default:N(()=>[me(_.$slots,"default")]),_:3},16,["id","aria-labelledby","data-motion","data-state","data-orientation"]))}}),i0t=Q({inheritAttrs:!1,__name:"NavigationMenuContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,i=_p(r),{forwardRef:a}=Qe(),o=w6(),s=xp(),l=AA(),u=W(()=>l.value===s.modelValue.value),c=W(()=>s.viewport.value&&!s.modelValue.value&&s.previousValue.value?s.previousValue.value===l.value:!1);return(d,f)=>m(o)?(E(),V(zx,{key:0,to:m(s).viewport.value,disabled:!m(s).viewport.value},[H(m(Cl),{present:d.forceMount||u.value||c.value},{default:N(()=>[H(PAe,rt({ref:m(a),"data-state":m(R6)(u.value),style:{pointerEvents:!u.value&&m(s).isRootMenu?"none":void 0}},{...d.$attrs,...n,...m(i)},{onPointerenter:f[0]||(f[0]=h=>m(s).onContentEnter(m(l).value)),onPointerleave:f[1]||(f[1]=h=>m(rX)(()=>m(s).onContentLeave())(h)),onPointerDownOutside:f[2]||(f[2]=h=>r("pointerDownOutside",h)),onFocusOutside:f[3]||(f[3]=h=>r("focusOutside",h)),onInteractOutside:f[4]||(f[4]=h=>r("interactOutside",h))}),{default:N(()=>[me(d.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["present"])],8,["to","disabled"])):ae("",!0)}}),a0t=Q({inheritAttrs:!1,__name:"NavigationMenuList",props:{asChild:{type:Boolean},as:{default:"ul"}},setup(e){const t=e,n=xp(),{forwardRef:r,currentElement:i}=Qe();return Ot(()=>{n.onIndicatorTrackChange(i.value)}),(a,o)=>(E(),V(m(ot),{ref:m(r),style:{position:"relative"}}
18,{default:N(()=>[H(m(ot),rt(a.$attrs,{"as-child":t.asChild,as:a.as,"data-orientation":m(n).orientation}),{default:N(()=>[me(a.$slots,"default")]),_:3},16,["as-child","as","data-orientation"])]),_:3},512))}}),o0t=Q({__name:"NavigationMenuSub",props:{modelValue:{},defaultValue:{},orientation:{default:"horizontal"},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Yn(n,"modelValue",t,{defaultValue:n.defaultValue??"",passive:n.modelValue===void 0}),i=G(""),a=xp(),{forwardRef:o,currentElement:s}=Qe(),l=G(),u=G(),{createCollection:c}=hf("nav");return c(l),eX({...a,isRootMenu:!1,modelValue:r,previousValue:i,orientation:n.orientation,rootNavigationMenu:s,indicatorTrack:l,onIndicatorTrackChange:d=>{l.value=d},viewport:u,onViewportChange:d=>{u.value=d},onTriggerEnter:d=>{r.value=d},onTriggerLeave:()=>{},onContentEnter:()=>{},onContentLeave:()=>{},onItemSelect:d=>{r.value=d},onItemDismiss:()=>{r.value=""}}),(d,f)=>(E(),V(m(ot),{ref:m(o),"data-orientation":d.orientation,"as-child":n.asChild,as:d.as,"data-radix-navigation-menu":""},{default:N(()=>[me(d.$slots,"default",{modelValue:m(r)})]),_:3},8,["data-orientation","as-child","as"]))}}),DAe=["aria-owns"],s0t=Q({inheritAttrs:!1,__name:"NavigationMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=xp(),r=AA(),{forwardRef:i,currentElement:a}=Qe(),o=G(""),s=G(""),l=x6(!1,300),u=G(!1),c=W(()=>r.value===n.modelValue.value);Ot(()=>{r.triggerRef=a,o.value=tX(n.baseId,r.value),s.value=MA(n.baseId,r.value)});function d(){n.disableHoverTrigger.value||(u.value=!1,r.wasEscapeCloseRef.value=!1)}function f(x){if(!n.disableHoverTrigger.value&&x.pointerType==="mouse"){if(t.disabled||u.value||r.wasEscapeCloseRef.value||l.value)return;n.onTriggerEnter(r.value),l.value=!0}}function h(x){if(!n.disableHoverTrigger.value&&x.pointerType==="mouse"){if(t.disabled)return;n.onTriggerLeave(),l.value=!1}}function p(x){x.pointerType==="mouse"&&n.disableClickTrigger.value||l.value||(c.value?n.onItemSelect(""):n.onItemSelect(r.value),u.value=c.value)}function g(x){const _={horizontal:"ArrowDown",vertical:n.dir.value==="rtl"?"ArrowLeft":"ArrowRight"}[n.orientation];c.value&&x.key===_&&(r.onEntryKeyDown(),x.preventDefault(),x.stopPropagation())}function v(x){r.focusProxyRef.value=Xo(x)}function b(x){const _=document.getElementById(r.contentId),w=x.relatedTarget,C=w===a.value,T=_?.contains(w);(C||!T)&&r.onFocusProxyEnter(C?"start":"end")}return(x,_)=>(E(),U(Ae,null,[H(m(ot),rt({id:o.value,ref:m(i),disabled:x.disabled,"data-disabled":x.disabled?"":void 0,"data-state":m(R6)(c.value),"aria-expanded":c.value,"aria-controls":s.value,"as-child":t.asChild,as:x.as},x.$attrs,{"data-radix-vue-collection-item":"",onPointerenter:d,onPointermove:f,onPointerleave:h,onClick:p,onKeydown:g}),{default:N(()=>[me(x.$slots,"default")]),_:3},16,["id","disabled","data-disabled","data-state","aria-expanded","aria-controls","as-child","as"]),c.value?(E(),U(Ae,{key:0},[H(m(D6),{ref:v,"aria-hidden":"true",tabindex:0,onFocus:b}),m(n).viewport?(E(),U("span",{key:0,"aria-owns":s.value},null,8,DAe)):ae("",!0)],64)):ae("",!0)],64))}}),l0t=Q({inheritAttrs:!1,__name:"NavigationMenuViewport",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const{forwardRef:t,currentElement:n}=Qe(),r=xp(),i=G(),a=W(()=>!!r.modelValue.value),o=W(()=>r.modelValue.value);Je(n,()=>{n.value&&r.onViewportChange(n.value)});const s=G();return Je([o,a],async()=>{var l,u;if(await At(),!n.value)return;const c=(u=(l=n.value.querySelector("[data-state=open]"))==null?void 0:l.children)==null?void 0:u[0];s.value=c},{immediate:!0}),cY(s,()=>{s.value&&(i.value={width:s.value.offsetWidth,height:s.value.offsetHeight})}),(l,u)=>(E(),V(m(Cl),{present:l.forceMount||a.value},{default:N(()=>{var c,d;return[H(m(ot),rt(l.$attrs,{ref:m(t),as:l.as,"as-child":l.asChild,"data-state":m(R6)(a.value),"data-orientation":m(r).orientation,style:{pointerEvents:!a.value&&m(r).isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":i.value?`${(c=i.value)==null?void 0:c.width}px`:void 0,"--radix-navigation-menu-viewport-height":i.value?`${(d=i.value)==null?void 0:d.height}px`:void 0},onPointerenter:u[0]||(u[0]=f=>m(r).onContentEnter(m(r).modelValue.value)),onPointerleave:u[1]||(u[1]=f=>m(rX)(()=>m(r).onContentLeave())(f))}),{default:N(()=>[me(l.$slots,"default")]),_:3},16,["as","as-child","data-state","data-orientation","style"])]}),_:3},8,["present"]))}}),[C1,IAe]=mn("PaginationRoot"),$Ae=Q({__name:"PaginationRoot",props:{page:{},defaultPage:{default:1},itemsPerPage:{default:10},total:{default:0},siblingCount:{default:2},disabled:{type:Boolean},showEdges:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"nav"}},emits:["update:page"],setup(e,{emit:t}){const n=e,r=t,{siblingCount:i,disabled:a,showEdges:o}=An(n);Qe();const s=Yn(n,"page",r,{defaultValue:n.defaultPage,passive:n.page===void 0}),l=W(()=>Math.max(1,Math.ceil(n.total/n.itemsPerPage)));return IAe({page:s,onPageChange(u){s.value=u},pageCount:l,siblingCount:i,disabled:a,showEdges:o}),(u,c)=>(E(),V(m(ot),{as:u.as,"as-child":u.asChild},{default:N(()=>[me(u.$slots,"default",{page:m(s),pageCount:l.value})]),_:3},8,["as","as-child"]))}}),LAe=Q({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return Qe(),(n,r)=>(E(),V(m(ot),rt(t,{"data-type":"ellipsis"}),{default:N(()=>[me(n.$slots,"default",{},()=>[st("â¦")])]),_:3},16))}}),RAe=Q({__name:"PaginationFirst",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=C1();Qe();const r=W(()=>n.page.value===1||n.disabled.value);return(i,a)=>(E(),V(m(ot),rt(t,{"aria-label":"First Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=o=>!r.value&&m(n).onPageChange(1))}),{default:N(()=>[me(i.$slots,"default",{},()=>[st("First page")])]),_:3},16,["type","disabled"]))}}),OAe=Q({__name:"PaginationLast",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=C1();Qe();const r=W(()=>n.page.value===n.pageCount.value||n.disabled.value);return(i,a)=>(E(),V(m(ot),rt(t,{"aria-label":"Last Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=o=>!r.value&&m(n).onPageChange(m(n).pageCount.value))}),{default:N(()=>[me(i.$slots,"default",{},()=>[st("Last page")])]),_:3},16,["type","disabled"]))}});function ld(e,t){const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)}function BAe(e){return e.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"})}const P3="ellipsis";function FAe(e,t,n,r){const i=t,a=Math.max(e-n,1),o=Math.min(e+n,i);if(r){const s=Math.min(2*n+5,t)-2,l=a>3&&Math.abs(i-s-1+1)>2&&Math.abs(a-1)>2,u=o<i-2&&Math.abs(i-s)>2&&Math.abs(i-o)>2;if(!l&&u)return[...ld(1,s),P3,i];if(l&&!u){const c=ld(i-s+1,i);return[1,P3,...c]}if(l&&u){const c=ld(a,o);return[1,P3,...c,P3,i]}return ld(1,i)}else{const s=n*2+1;return t<s?ld(1,i):e<=n+1?ld(1,s):t-e<=n?ld(t-s+1,i):ld(a,o)}}const zAe=Q({__name:"PaginationList",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;Qe();const n=C1(),r=W(()=>BAe(FAe(n.page.value,n.pageCount.value,n.siblingCount.value,n.showEdges.value)));return(i,a)=>(E(),V(m(ot),un(pn(t)),{default:N(()=>[me(i.$slots,"default",{items:r.value})]),_:3},16))}}),NAe=Q({__name:"PaginationListItem",props:{value:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=C1(),r=W(()=>n.page.value===t.value),i=W(()=>n.disabled.value);return(a,o)=>(E(),V(m(ot),rt(t,{"data-type":"page","aria-label":`Page ${a.value}`,"aria-current":r.value?"page":void 0,"data-selected":r.value?"true":void 0,disabled:i.value,type:a.as==="button"?"button":void 0,onClick:o[0]||(o[0]=s=>!i.value&&m(n).onPageChange(a.value))}),{default:N(()=>[me(a.$slots,"default",{},()=>[st(de(a.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),VAe=Q({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=C1(),r=W(()=>n.page.value===n.pageCount.value||n.disabled.value);return(i,a)=>(E(),V(m(ot),rt(t,{"aria-label":"Next Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=o=>!r.value&&m(n).onPageChange(m(n).page.value+1))}),{default:N(()=>[me(i.$slots,"default",{},()=>[st("Next page")])]),_:3},16,["type","disabled"]))}}),jAe=Q({__name:"PaginationPrev",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=C1(),r=W(()=>n.page.value===1||n.disabled.value);return(i,a)=>(E(),V(m(ot),rt(t,{"aria-label":"Previous Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=o=>!r.value&&m(n).onPageChange(m(n).page.value-1))}),{default:N(()=>[me(i.$slots,"default",{},()=>[st("Prev page")])]),_:3},16,["type","disabled"]))}}),[wp,UAe]=mn("PopoverRoot"),T1=Q({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:i}=An(n),a=Yn(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return UAe({contentId:"",modal:i,open:a,onOpenChange:l=>{a.value=l},onOpenToggle:()=>{a.value=!a.value},triggerElement:G(),hasCustomAnchor:G(!1)}),(l,u)=>(E(),V(m(xv),null,{default:N(()=>[me(l.$slots,"default",{open:m(a)})]),_:3}))}}),k1=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=wp(),{forwardRef:r,currentElement:i}=Qe();return Ot(()=>{n.triggerElement.value=i.value}),(a,o)=>(E(),V(yn(m(n).hasCustomAnchor.value?m(ot):m(w1)),{"as-child":""},{default:N(()=>[H(m(ot),{ref:m(r),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":m(n).open.value,"aria-controls":m(n).contentId,"data-state":m(n).open.value?"open":"closed",as:a.as,"as-child":t.asChild,onClick:m(n).onOpenToggle},{default:N(()=>[me(a.$slots,"default")]),_:3},8,["type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),PA=Q({__name:"PopoverPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(E(),V(m(bv),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),iX=Q({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=b1(n),{forwardRef:a}=Qe(),o=wp();return gA(),(s,l)=>(E(),V(m(P6),{"as-child":"",loop:"",trapped:s.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>r("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>r("closeAutoFocus",u))},{default:N(()=>[H(m(bp),{"as-child":"","disable-outside-pointer-events":s.disableOutsidePointerEvents,onPointerDownOutside:l[0]||(l[0]=u=>r("pointerDownOutside",u)),onInteractOutside:l[1]||(l[1]=u=>r("interactOutside",u)),onEscapeKeyDown:l[2]||(l[2]=u=>r("escapeKeyDown",u)),onFocusOutside:l[3]||(l[3]=u=>r("focusOutside",u)),onDismiss:l[4]||(l[4]=u=>m(o).onOpenChange(!1))},{default:N(()=>[H(m(Rm),rt(m(i),{id:m(o).contentId,ref:m(a),"data-state":m(o).open.value?"open":"closed",role:"dialog",style:{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:N(()=>[me(s.$slots,"default")]),_:3},16,["id","data-state"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),HAe=Q({__name:"PopoverContentModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=wp(),a=G(!1);gv(!0);const o=Sl(n,r),{forwardRef:s,currentElement:l}=Qe();return yv(l),(u,c)=>(E(),V(iX,rt(m(o),{ref:m(s),"trap-focus":m(i).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=nr(d=>{var f;r("closeAutoFocus",d),a.value||(f=m(i).triggerElement.value)==null||f.focu
18s()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=d=>{r("pointerDownOutside",d);const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;a.value=p}),onFocusOutside:c[2]||(c[2]=nr(()=>{},["prevent"]))}),{default:N(()=>[me(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),qAe=Q({__name:"PopoverContentNonModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=wp(),a=G(!1),o=G(!1),s=Sl(n,r);return(l,u)=>(E(),V(iX,rt(m(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=c=>{var d;r("closeAutoFocus",c),c.defaultPrevented||(a.value||(d=m(i).triggerElement.value)==null||d.focus(),c.preventDefault()),a.value=!1,o.value=!1}),onInteractOutside:u[1]||(u[1]=async c=>{var d;r("interactOutside",c),c.defaultPrevented||(a.value=!0,c.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const f=c.target;(d=m(i).triggerElement.value)!=null&&d.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.value&&c.preventDefault()})}),{default:N(()=>[me(l.$slots,"default")]),_:3},16))}}),E1=Q({__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=wp(),a=Sl(n,r),{forwardRef:o}=Qe();return i.contentId||(i.contentId=Ri(void 0,"radix-vue-popover-content")),(s,l)=>(E(),V(m(Cl),{present:s.forceMount||m(i).open.value},{default:N(()=>[m(i).modal.value?(E(),V(HAe,rt({key:0},m(a),{ref:m(o)}),{default:N(()=>[me(s.$slots,"default")]),_:3},16)):(E(),V(qAe,rt({key:1},m(a),{ref:m(o)}),{default:N(()=>[me(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),DA=Q({__name:"PopoverArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return Qe(),(n,r)=>(E(),V(m(ZY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),WAe=Q({__name:"PopoverClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;Qe();const n=wp();return(r,i)=>(E(),V(m(ot),{type:r.as==="button"?"button":void 0,as:r.as,"as-child":t.asChild,onClick:i[0]||(i[0]=a=>m(n).onOpenChange(!1))},{default:N(()=>[me(r.$slots,"default")]),_:3},8,["type","as","as-child"]))}}),O6=Q({__name:"PopoverAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;Qe();const n=wp();return Vx(()=>{n.hasCustomAnchor.value=!0}),br(()=>{n.hasCustomAnchor.value=!1}),(r,i)=>(E(),V(m(w1),un(pn(t)),{default:N(()=>[me(r.$slots,"default")]),_:3},16))}}),[GAe,ZAe]=mn("RadioGroupRoot"),KAe=Q({__name:"RadioGroupRoot",props:{modelValue:{},defaultValue:{},disabled:{type:Boolean,default:!1},name:{},required:{type:Boolean,default:!1},orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i}=Qe(),a=Yn(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:o,loop:s,orientation:l,name:u,required:c,dir:d}
18=An(n),f=Za(d);return ZAe({modelValue:a,changeModelValue:h=>{a.value=h},disabled:o,loop:s,orientation:l,name:u?.value,required:c}),(h,p)=>(E(),V(m(wv),{"as-child":"",orientation:m(l),dir:m(f),loop:m(s)},{default:N(()=>[H(m(ot),{ref:m(i),role:"radiogroup","data-disabled":m(o)?"":void 0,"as-child":h.asChild,as:h.as,required:m(c),"aria-orientation":m(l),"aria-required":m(c),dir:m(f),name:m(u)},{default:N(()=>[me(h.$slots,"default",{modelValue:m(a)})]),_:3},8,["data-disabled","as-child","as","required","aria-orientation","aria-required","dir","name"])]),_:3},8,["orientation","dir","loop"]))}}),YAe=["value","checked","name","disabled","required"],XAe=Q({__name:"Radio",props:{id:{},value:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},checked:{type:Boolean,default:void 0},name:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=Yn(n,"checked",t,{passive:n.checked===void 0}),{value:i}=An(n),{forwardRef:a,currentElement:o}=Qe(),s=_1(o),l=W(()=>{var c;return n.id&&o.value?((c=document.querySelector(`[for="${n.id}"]`))==null?void 0:c.innerText)??n.value:void 0});function u(c){r.value=!0,s.value&&c.stopPropagation()}return(c,d)=>(E(),V(m(ot),rt(c.$attrs,{id:c.id,ref:m(a),role:"radio",type:c.as==="button"?"button":void 0,as:c.as,"aria-checked":m(r),"aria-label":l.value,"as-child":c.asChild,disabled:c.disabled?"":void 0,"data-state":m(r)?"checked":"unchecked","data-disabled":c.disabled?"":void 0,value:m(i),required:c.required,name:c.name,onClick:nr(u,["stop"])}),{default:N(()=>[me(c.$slots,"default",{checked:m(r)}),m(s)?(E(),U("input",{key:0,type:"radio",tabindex:"-1","aria-hidden":"true",value:m(i),checked:!!m(r),name:c.name,disabled:c.disabled,required:c.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,YAe)):ae("",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),[u0t,JAe]=mn("RadioGroupItem"),QAe=Q({inheritAttrs:!1,__name:"RadioGroupItem",props:{id:{},value:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},name:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n,currentElement:r}=Qe(),i=GAe(),a=W(()=>i.disabled.value||t.disabled),o=W(()=>i.required.value||t.required),s=W(()=>{var d;return((d=i.modelValue)==null?void 0:d.value)===t.value});JAe({disabled:a,checked:s});const l=G(!1),u=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];Jd("keydown",d=>{u.includes(d.key)&&(l.value=!0)}),Jd("keyup",()=>{l.value=!1});function c(){setTimeout(()=>{var d;l.value&&((d=r.value)==null||d.click())},0)}return(d,f)=>(E(),V(m(L6),{checked:s.value,disabled:a.value,"as-child":"",focusable:!a.value,active:s.value},{default:N(()=>[H(XAe,rt({...d.$attrs,...t},{ref:m(n),checked:s.value,required:o.value,disabled:a.value,"onUpdate:checked":f[0]||(f[0]=h=>m(i).changeModelValue(d.value)),onKeydown:f[1]||(f[1]=po(nr(()=>{},["prevent"]),["enter"])),onFocus:c}),{default:N(()=>[me(d.$slots,"default")]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),ePe=["default-value"],tPe=Q({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(e){const t=e,{value:n}=An(t),r=G();return(i,a)=>(E(),V(m(D6),{"as-child":""},{default:N(()=>[_o(Y("select",rt({ref_key:"selectElement",ref:r},t,{"onUpdate:modelValue":a[0]||(a[0]=o=>$t(n)?n.value=o:null),"default-value":m(n)}),[me(i.$slots,"default")],16,ePe),[[Tq,m(n)]])]),_:3}))}}),nPe={key:0,value:""},[Sp,aX]=mn("SelectRoot"),[rPe,iPe]=mn("SelectRoot"),IA=Q({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,r=t,i=Yn(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),a=Yn(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=G(),s=G(),l=G({x:0,y:0}),u=G(!1),{required:c,disabled:d,dir:f}=An(n),h=Za(f);aX({triggerElement:o,onTriggerChange:b=>{o.value=b},valueElement:s,onValueElementChange:b=>{s.value=b},valueElementHasChildren:u,onValueElementHasChildrenChange:b=>{u.value=b},contentId:"",modelValue:i,onValueChange:b=>
18{i.value=b},open:a,required:c,onOpenChange:b=>{a.value=b},dir:h,triggerPointerDownPosRef:l,disabled:d});const p=_1(o),g=G(new Set),v=W(()=>Array.from(g.value).map(b=>{var x;return(x=b.props)==null?void 0:x.value}).join(";"));return iPe({onNativeOptionAdd:b=>{g.value.add(b)},onNativeOptionRemove:b=>{g.value.delete(b)}}),(b,x)=>(E(),V(m(xv),null,{default:N(()=>[me(b.$slots,"default",{modelValue:m(i),open:m(a)}),m(p)?(E(),V(tPe,rt({key:v.value},b.$attrs,{"aria-hidden":"true",tabindex:"-1",required:m(c),name:b.name,autocomplete:b.autocomplete,disabled:m(d),value:m(i),onChange:x[0]||(x[0]=_=>i.value=_.target.value)}),{default:N(()=>[m(i)===void 0?(E(),U("option",nPe)):ae("",!0),(E(!0),U(Ae,null,ft(Array.from(g.value),_=>(E(),V(yn(_),rt({ref_for:!0},_.props,{key:_.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):ae("",!0)]),_:3}))}}),aPe=[" ","Enter","ArrowUp","ArrowDown"],oPe=[" ","Enter"],Js=10;function oX(e){return e===""||um(e)}const $A=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Sp(),r=W(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled}),{forwardRef:i,currentElement:a}=Qe();n.contentId||(n.contentId=Ri(void 0,"radix-vue-select-content")),Ot(()=>{n.triggerElement=a});const{injectCollection:o}=hf(),s=o(),{search:l,handleTypeaheadSearch:u,resetTypeahead:c}=yA(s);function d(){r.value||(n.onOpenChange(!0),c())}function f(h){d(),n.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}return(h,p)=>(E(),V(m(w1),{"as-child":""},{default:N(()=>{var g,v,b,x;return[H(m(ot),{ref:m(i),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":m(n).contentId,"aria-expanded":m(n).open.value||!1,"aria-required":(g=m(n).required)==null?void 0:g.value,"aria-autocomplete":"none",disabled:r.value,dir:(v=m(n))==null?void 0:v.dir.value,"data-state":(b=m(n))!=null&&b.open.value?"open":"closed","data-disabled":r.value?"":void 0,"data-placeholder":m(oX)((x=m(n).modelValue)==null?void 0:x.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:p[0]||(p[0]=_=>{var w;(w=_?.currentTarget)==null||w.focus()}),onPointerdown:p[1]||(p[1]=_=>{if(_.pointerType==="touch")return _.preventDefault();const w=_.target;w.hasPointerCapture(_.pointerId)&&w.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&(f(_),_.preventDefault())}),onPointerup:p[2]||(p[2]=nr(_=>{_.pointerType==="touch"&&f(_)},["prevent"])),onKeydown:p[3]||(p[3]=_=>{const w=m(l)!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&w&&_.key===" "||(m(u)(_.key),m(aPe).includes(_.key)&&(d(),_.preventDefault()))})},{default:N(()=>[me(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),LA=Q({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(E(),V(m(bv),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),[sPe,lPe]=mn("SelectItemAlignedPosition"),uPe=Q({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(e,{emit:t}){const n=e,r=t,{injectCollection:i}=hf(),a=Sp(),o=B6(),s=i(),l=G(!1),u=G(!0),c=G(),{forwardRef:d,currentElement:f}=Qe(),{viewport:h,selectedItem:p,selectedItemText:g,focusSelectedItem:v}=o;function b(){if(a.triggerElement.value&&a.valueElement.value&&c.value&&f.value&&h!=null&&h.value&&p!=null&&p.value&&g!=null&&g.value){const w=a.triggerElement.value.getBoundingClientRect(),C=f.value.getBoundingClientRect(),T=a.valueElement.value.getBoundingClientRect(),k=g.value.getBoundingClientRect();if(a.dir.value!=="rtl"){const Ve=k.left-C.left,nt=T.left-Ve,xe=w.left-nt,Pe=w.width+xe,je=Math.max(Pe,C.width),Fe=window.innerWidth-Js,re=e5(nt,Js,Math.max(Js,Fe-je));c.value.style.minWidth=`${Pe}px`,c.value.style.left=`${re}px`}else{const Ve=C.right-k.right,nt=window.innerWidth-T.right-Ve,xe=window.innerWidth-w.right-nt,Pe=w.width+xe,je=Math.max(Pe,C.width),Fe=window.innerWidth-Js,re=e5(nt,Js,Math.max(Js,Fe-je));c.value.style.minWidth=`${Pe}px`,c.value.style.right=`${re}px`}const A=s.value,P=window.innerHeight-Js*2,D=h.value.scrollHeight,$=window.getComputedStyle(f.value),O=Number.parseInt($.borderTopWidth,10),z=Number.parseInt($.paddingTop,10),j=Number.parseInt($.borderBottomWidth,10),B=Number.parseInt($.paddingBottom,10),R=O+z+D+B+j,J=Math.min(p.value.offsetHeight*5,R),K=window.getComputedStyle(h.value),Z=Number.parseInt(K.paddingTop,10),ne=Number.parseInt(K.paddingBottom,10),se=w.top+w.height/2-Js,ce=P-se,Re=p.value.offsetHeight/2,Ue=p.value.offsetTop+Re,$e=O+z+Ue,ke=R-$e;if($e<=se){const Ve=p.value===A[A.length-1];c.value.style.bottom="0px";const nt=f.value.clientHeight-h.value.offsetTop-h.value.offsetHeight,xe=Math.max(ce,Re+(Ve?ne:0)+nt+j),Pe=$e+xe;c.value.style.height=`${Pe}px`}else{const Ve=p.value===A[0];c.value.style.top="0px";const nt=Math.max(se,O+h.value.offsetTop+(Ve?Z:0)+Re)+ke;c.value.style.height=`${nt}
18px`,h.value.scrollTop=$e-se+h.value.offsetTop}c.value.style.margin=`${Js}px 0`,c.value.style.minHeight=`${J}px`,c.value.style.maxHeight=`${P}px`,r("placed"),requestAnimationFrame(()=>l.value=!0)}}const x=G("");Ot(async()=>{await At(),b(),f.value&&(x.value=window.getComputedStyle(f.value).zIndex)});function _(w){w&&u.value===!0&&(b(),v?.(),u.value=!1)}return lPe({contentWrapper:c,shouldExpandOnScrollRef:l,onScrollButtonChange:_}),(w,C)=>(E(),U("div",{ref_key:"contentWrapperElement",ref:c,style:Li({display:"flex",flexDirection:"column",position:"fixed",zIndex:x.value})},[H(m(ot),rt({ref:m(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{...w.$attrs,...n}),{default:N(()=>[me(w.$slots,"default")]),_:3},16)],4))}}),cPe=Q({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:Js},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=b1(e);return(n,r)=>(E(),V(m(Rm),rt(m(t),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),RA={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[B6,dPe]=mn("SelectContent"),fPe=Q({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,i=Sp();gA(),gv(n.bodyLock);const{createCollection:a}=hf(),o=G();yv(o);const s=a(o),{search:l,handleTypeaheadSearch:u}=yA(s),c=G(),d=G(),f=G(),h=G(!1),p=G(!1);function g(){d.value&&o.value&&YC([d.value,o.value])}Je(h,()=>{g()});const{onOpenChange:v,triggerPointerDownPosRef:b}=i;ii(C=>{if(!o.value)return;let T={x:0,y:0};const k=P=>{var D,$;T={x:Math.abs(Math.round(P.pageX)-(((D=b.value)==null?void 0:D.x)??0)),y:Math.abs(Math.round(P.pageY)-((($=b.value)==null?void 0:$.y)??0))}},A=P=>{var D;P.pointerType!=="touch"&&(T.x<=10&&T.y<=10?P.preventDefault():(D=o.value)!=null&&D.contains(P.target)||v(!1),document.removeEventListener("pointermove",k),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",k),document.addEventListener("pointerup",A,{capture:!0,once:!0})),C(()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",A,{capture:!0})})});function x(C){const T=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!T&&C.key.length===1&&u(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let k=s.value;if(["ArrowUp","End"].includes(C.key)&&(k=k.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const A=C.target,P=k.indexOf(A);k=k.slice(P+1)}setTimeout(()=>YC(k)),C.preventDefault()}}const _=W(()=>n.position==="popper"?n:{}),w=b1(_.value);return dPe({content:o,viewport:c,onViewportChange:C=>{c.value=C},itemRefCallback:(C,T,k)=>{var A,P;const D=!p.value&&!k;(((A=i.modelValue)==null?void 0:A.value)!==void 0&&((P=i.modelValue)==null?void 0:P.value)===T||D)&&(d.value=C,D&&(p.value=!0))},selectedItem:d,selectedItemText:f,onItemLeave:()=>{var C;(C=o.value)==null||C.focus()},itemTextRefCallback:(C,T,k)=>{var A,P;const D=!p.value&&!k;(((A=i.modelValue)==null?void 0:A.value)!==void 0&&((P=i.modelValue)==null?void 0:P.value)===T||D)&&(f.value=C)},focusSelectedItem:g,position:n.position,isPositioned:h,searchRef:l}),(C,T)=>(E(),V(m(P6),{"as-child":"",onMountAutoFocus:T[6]||(T[6]=nr(()=>{},["prevent"])),onUnmountAutoFocus:T[7]||(T[7]=k=>{var A;r("closeAutoFocus",k),!k.defaultPrevented&&((A=m(i).triggerElement.value)==null||A.focus({preventScroll:!0}),k.preventDefault())})},{default:N(()=>[H(m(bp),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:T[2]||(T[2]=nr(()=>{},["prevent"])),onDismiss:T[3]||(T[3]=k=>m(i).onOpenChange(!1)),onEscapeKeyDown:T[4]||(T[4]=k=>r("escapeKeyDown",k)),onPointerDownOutside:T[5]||(T[5]=k=>r("pointerDownOutside",k))},{default:N(()=>[(E(),V(yn(C.position==="popper"?cPe:uPe),rt({...C.$attrs,...m(w)},{id:m(i).contentId,ref:k=>{o.value=m(Xo)(k)},role:"listbox","data-state":m(i).open.value?"open":"closed",dir:m(i).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:T[0]||(T[0]=nr(()=>{},["prevent"])),onPlaced:T[1]||(T[1]=k=>h.value=!0),onKeydown:x}),{default:N(()=>[me(C.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),hPe=Q({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(e){return aX(e.context),(t,n)=>me(t.$slots,"default")}}),pPe={key:1},OA=Q({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=Sl(n,t),i=Sp(),a=G();Ot(()=>{a.value=new DocumentFragment});
18const o=G(),s=W(()=>n.forceMount||i.open.value);return(l,u)=>{var c;return s.value?(E(),V(m(Cl),{key:0,ref_key:"presenceRef",ref:o,present:!0},{default:N(()=>[H(fPe,un(pn({...m(r),...l.$attrs})),{default:N(()=>[me(l.$slots,"default")]),_:3},16)]),_:3},512)):!((c=o.value)!=null&&c.present)&&a.value?(E(),U("div",pPe,[(E(),V(zx,{to:a.value},[H(hPe,{context:m(i)},{default:N(()=>[me(l.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):ae("",!0)}}}),[mPe,gPe]=mn("SelectItem"),BA=Q({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{disabled:n}=An(t),r=Sp(),i=B6(RA),{forwardRef:a,currentElement:o}=Qe(),s=W(()=>{var g;return((g=r.modelValue)==null?void 0:g.value)===t.value}),l=G(!1),u=G(t.textValue??""),c=Ri(void 0,"radix-vue-select-item-text");async function d(g){await At(),!(g!=null&&g.defaultPrevented)&&(n.value||(r.onValueChange(t.value),r.onOpenChange(!1)))}async function f(g){var v;await At(),!g.defaultPrevented&&(n.value?(v=i.onItemLeave)==null||v.call(i):g.currentTarget.focus({preventScroll:!0}))}async function h(g){var v;await At(),!g.defaultPrevented&&g.currentTarget===hi()&&((v=i.onItemLeave)==null||v.call(i))}async function p(g){var v;await At(),!(g.defaultPrevented||((v=i.searchRef)==null?void 0:v.value)!==""&&g.key===" ")&&(oPe.includes(g.key)&&d(),g.key===" "&&g.preventDefault())}if(t.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Ot(()=>{o.value&&i.itemRefCallback(o.value,t.value,t.disabled)}),gPe({value:t.value,disabled:n,textId:c,isSelected:s,onItemTextChange:g=>{u.value=((u.value||g?.textContent)??"").trim()}}),(g,v)=>(E(),V(m(ot),{ref:m(a),role:"option","data-radix-vue-collection-item":"","aria-labelledby":m(c),"data-highlighted":l.value?"":void 0,"aria-selected":s.value,"data-state":s.value?"checked":"unchecked","aria-disabled":m(n)||void 0,"data-disabled":m(n)?"":void 0,tabindex:m(n)?void 0:-1,as:g.as,"as-child":g.asChild,onFocus:v[0]||(v[0]=b=>l.value=!0),onBlur:v[1]||(v[1]=b=>l.value=!1),onPointerup:d,onPointerdown:v[2]||(v[2]=b=>{b.currentTarget.focus({preventScroll:!0})}),onTouchend:v[3]||(v[3]=nr(()=>{},["prevent","stop"])),onPointermove:f,onPointerleave:h,onKeydown:p},{default:N(()=>[me(g.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),FA=Q({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=Sp(),r=B6(RA),i=rPe(),a=mPe(),{forwardRef:o,currentElement:s}=Qe(),l=W(()=>{var u;return Nt("option",{key:a.value,value:a.value,disabled:a.disabled.value,textContent:(u=s.value)==null?void 0:u.textContent})});return Ot(()=>{s.value&&(a.onItemTextChange(s.value),r.itemTextRefCallback(s.value,a.value,a.disabled.value),i.onNativeOptionAdd(l.value))}),Wa(()=>{i.onNativeOptionRemove(l.value)}),(u,c)=>(E(),U(Ae,null,[H(m(ot),rt({id:m(a).textId,ref:m(o)},{...t,...u.$attrs},{"data-item-text":""}),{default:N(()=>[me(u.$slots,"default")]),_:3},16,["id"]),m(a).isSelected.value&&m(n).valueElement.value&&!m(n).valueElementHasChildren.value?(E(),V(zx,{key:0,to:m(n).valueElement.value},[me(u.$slots,"default")],8,["to"])):ae("",!0)],64))}}),zA=Q({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{nonce:n}=An(t),r=KY(n),i=B6(RA),a=i.position==="item-aligned"?sPe():void 0,{forwardRef:o,currentElement:s}=Qe();Ot(()=>{i?.onViewportChange(s.value)});const l=G(0);function u(c){const d=c.currentTarget,{shouldExpandOnScrollRef:f,contentWrapper:h}=a??{};if(f!=null&&f.value&&h!=null&&h.value){const p=Math.abs(l.value-d.scrollTop);if(p>0){const g=window.innerHeight-Js*2,v=Number.parseFloat(h.value.style.minHeight),b=Number.parseFloat(h.value.style.height),x=Math.max(v,b);if(x<g){const _=x+p,w=Math.min(g,_),C=_-w;h.value.style.height=`${w}px`,h.value.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,h.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(c,d)=>(E(),U(Ae,null,[H(m(ot),rt({ref:m(o),"data-radix-select-viewport":"",role:"presentation"},{...c.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:u}),{default:N(()=>[me(c.$slots,"default")]),_:3},16),H(m(ot),{as:"style",nonce:m(r)},{default:N(()=>[st(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),sX=Q({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t,currentElement:n}=Qe(),r=Sp(),i=ZH();return Vx(()=>{var a;const o=!!S6((a=i?.default)==null?void 0:a.call(i)).length;r.onValueElementHasChildrenChange(o)}),Ot(()=>{r.valueElement=n}),(a,o)=>(E(),V(m(ot),{ref:m(t),as:a.as,"as-child":a.asChild,style:{pointerEvents:"none"}},{default:N(()=>{var s;return[m(oX)((s=m(r).modelValue)==null?void 0:s.value)?(E(),U(Ae,{key:0},[st(de(a.placeholder),1)],64)):me(a.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),yPe=Q({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=["horizontal","vertical"];function r(s){return n.includes(s)}const i=W(()=>r(t.orientation)?t.orientation:"horizontal"),a=W(()=>i.value==="vertical"?t.orientation:void 0),o=W(()=>t.decorative?{role:"none"}:{"aria-orientation":a.value,role:"separator"});return(s,l)=>(E(),V(m(ot),rt({as:s.as,"as-child":s.asChild,"data-orientation":i.value},o.value),{default:N(()=>[me(s.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}});function vPe(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,a)=>i-a)}function lX(e,t,n){const r=100/(n-t)*(e-t);return e5(r,0,100)}function _Pe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function bPe(e,t){if(e.length===1)return 0;const n=e.map(i=>
18Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function xPe(e,t,n){const r=e/2,i=NA([0,50],[0,r]);return(r-i(t)*n)*n}function wPe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function SPe(e,t){if(t>0){const n=wPe(e);return Math.min(...n)>=t}return!0}function NA(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function CPe(e){return(String(e).split(".")[1]||"").length}function TPe(e,t){const n=10**t;return Math.round(e*n)/n}const uX=["PageUp","PageDown"],cX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dX={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},[fX,hX]=mn(["SliderVertical","SliderHorizontal"]),pX=Q({__name:"SliderImpl",props:{asChild:{type:Boolean},as:{default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,i=F6();return(a,o)=>(E(),V(m(ot),rt({"data-slider-impl":""},n,{onKeydown:o[0]||(o[0]=s=>{s.key==="Home"?(r("homeKeyDown",s),s.preventDefault()):s.key==="End"?(r("endKeyDown",s),s.preventDefault()):m(uX).concat(m(cX)).includes(s.key)&&(r("stepKeyDown",s),s.preventDefault())}),onPointerdown:o[1]||(o[1]=s=>{const l=s.target;l.setPointerCapture(s.pointerId),s.preventDefault(),m(i).thumbElements.value.includes(l)?l.focus():r("slideStart",s)}),onPointermove:o[2]||(o[2]=s=>{s.target.hasPointerCapture(s.pointerId)&&r("slideMove",s)}),onPointerup:o[3]||(o[3]=s=>{const l=s.target;l.hasPointerCapture(s.pointerId)&&(l.releasePointerCapture(s.pointerId),r("slideEnd",s))})}),{default:N(()=>[me(a.$slots,"default")]),_:3},16))}}),kPe=Q({__name:"SliderHorizontal",props:{dir:{},min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,{max:i,min:a,dir:o,inverted:s}=An(n),{forwardRef:l,currentElement:u}=Qe(),c=G(),d=W(()=>o?.value==="ltr"&&!s.value||o?.value!=="ltr"&&s.value);function f(h){const p=c.value||u.value.getBoundingClientRect(),g=[0,p.width],v=d.value?[a.value,i.value]:[i.value,a.value],b=NA(g,v);return c.value=p,b(h-p.left)}return hX({startEdge:d.value?"left":"right",endEdge:d.value?"right":"left",direction:d.value?1:-1,size:"width"}),(h,p)=>(E(),V(pX,{ref:m(l),dir:m(o),"data-orientation":"horizontal",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:p[0]||(p[0]=g=>{const v=f(g.clientX);r("slideStart",v)}),onSlideMove:p[1]||(p[1]=g=>{const v=f(g.clientX);r("slideMove",v)}),onSlideEnd:p[2]||(p[2]=()=>{c.value=void 0,r("slideEnd")}),onStepKeyDown:p[3]||(p[3]=g=>{const v=d.value?"from-left":"from-right",b=m(dX)[v].includes(g.key);r("stepKeyDown",g,b?-1:1)}),onEndKeyDown:p[4]||(p[4]=g=>r("endKeyDown",g)),onHomeKeyDown:p[5]||(p[5]=g=>r("homeKeyDown",g))},{default:N(()=>[me(h.$slots,"default")]),_:3},8,["dir"]))}}),EPe=Q({__name:"SliderVertical",props:{min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,{max:i,min:a,inverted:o}=An(n),{forwardRef:s,currentElement:l}=Qe(),u=G(),c=W(()=>!o.value);function d(f){const h=u.value||l.value.getBoundingClientRect(),p=[0,h.height],g=c.value?[i.value,a.value]:[a.value,i.value],v=NA(p,g);return u.value=h,v(f-h.top)}return hX({startEdge:c.value?"bottom":"top",endEdge:c.value?"top":"bottom",size:"height",direction:c.value?1:-1}),(f,h)=>(E(),V(pX,{ref:m(s),"data-orientation":"vertical",style:{"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h[0]||(h[0]=p=>{const g=d(p.clientY);r("slideStart",g)}),onSlideMove:h[1]||(h[1]=p=>{const g=d(p.clientY);r("slideMove",g)}),onSlideEnd:h[2]||(h[2]=()=>{u.value=void 0,r("slideEnd")}),onStepKeyDown:h[3]||(h[3]=p=>{const g=c.value?"from-bottom":"from-top",v=m(dX)[g].includes(p.key);r("stepKeyDown",p,v?-1:1)}),onEndKeyDown:h[4]||(h[4]=p=>r("endKeyDown",p)),onHomeKeyDown:h[5]||(h[5]=p=>r("homeKeyDown",p))},{default:N(()=>[me(f.$slots,"default")]),_:3},512))}}),MPe=["value","name","disabled","step"],[F6,APe]=mn("SliderRoot"),mX=Q({inheritAttrs:!1,__name:"SliderRoot",props:{name:{},defaultValue:{default:()=>[0]},modelValue:{},disabled:{type:Boolean,default:!1},orientation:{default:"horizontal"},dir:{},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const n=e,r=t,{min:i,max:a,step:o,minStepsBetweenThumbs:s,orientation:l,disabled:u,dir:c}=An(n),d=Za(c),{forwardRef:f,currentElement:h}=Qe(),p=_1(h);SA();const g=Yn(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),v=G(0),b=G(g.value);function x(k){const A=bPe(g.value,k);C(k,A)}function _(k){C(k,v.value)}function w(){const k=b.value[v.value];g.value[v.value]!==k&&r("valueCommit",_t(g.value))}function C(k,A,{commit:P}={commit:!1}){var D;const $=CPe(o.value),O=TPe(Math.round((k-i.value)/o.value)*o.value+i.value,$),z=e5(O,i.value,a.value),j=vPe(g.value,z,A);if(SPe(j,s.value*o.value)){v.value=j.indexOf(z);const B=String(j)!==String(g.value);B&&P&&r("valueCommit",j),B&&((D=T.value[v.value])==null||D.focus(),g.value=j)}}const T=G([]);return APe({modelValue:g,valueIndexToChangeRef:v,thumbElements:T,orientation:l,min:i,max:a,disabled:u}),(k,A)=>(E(),U(Ae,null,[H(m(CA),null,{default:N(()=>[(E(),V(yn(m(l)==="horizontal"?kPe:EPe),rt(k.$attrs,{ref:m(f),"as-child":k.asChild,as:k.as,min:m(i),max:m(a),dir:m(d
18),inverted:k.inverted,"aria-disabled":m(u),"data-disabled":m(u)?"":void 0,onPointerdown:A[0]||(A[0]=()=>{m(u)||(b.value=m(g))}),onSlideStart:A[1]||(A[1]=P=>!m(u)&&x(P)),onSlideMove:A[2]||(A[2]=P=>!m(u)&&_(P)),onSlideEnd:A[3]||(A[3]=P=>!m(u)&&w()),onHomeKeyDown:A[4]||(A[4]=P=>!m(u)&&C(m(i),0,{commit:!0})),onEndKeyDown:A[5]||(A[5]=P=>!m(u)&&C(m(a),m(g).length-1,{commit:!0})),onStepKeyDown:A[6]||(A[6]=(P,D)=>{if(!m(u)){const $=m(uX).includes(P.key)||P.shiftKey&&m(cX).includes(P.key)?10:1,O=v.value,z=m(g)[O],j=m(o)*$*D;C(z+j,O,{commit:!0})}})}),{default:N(()=>[me(k.$slots,"default",{modelValue:m(g)})]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}),m(p)?(E(!0),U(Ae,{key:0},ft(m(g),(P,D)=>(E(),U("input",{key:D,value:P,type:"number",style:{display:"none"},name:k.name?k.name+(m(g).length>1?"[]":""):void 0,disabled:m(u),step:m(o)},null,8,MPe))),128)):ae("",!0)],64))}}),PPe=Q({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=F6(),r=fX(),{forwardRef:i,currentElement:a}=Qe(),o=W(()=>{var h,p;return(p=(h=n.modelValue)==null?void 0:h.value)==null?void 0:p[t.index]}),s=W(()=>o.value===void 0?0:lX(o.value,n.min.value??0,n.max.value??100)),l=W(()=>{var h,p;return _Pe(t.index,((p=(h=n.modelValue)==null?void 0:h.value)==null?void 0:p.length)??0)}),u=mY(a),c=W(()=>u[r.size].value),d=W(()=>c.value?xPe(c.value,s.value,r.direction):0),f=w6();return Ot(()=>{n.thumbElements.value.push(a.value)}),br(()=>{const h=n.thumbElements.value.findIndex(p=>p===a.value)??-1;n.thumbElements.value.splice(h,1)}),(h,p)=>(E(),V(m(I6),null,{default:N(()=>[H(m(ot),rt(h.$attrs,{ref:m(i),role:"slider","data-radix-vue-collection-item":"",tabindex:m(n).disabled.value?void 0:0,"aria-label":h.$attrs["aria-label"]||l.value,"data-disabled":m(n).disabled.value?"":void 0,"data-orientation":m(n).orientation.value,"aria-valuenow":o.value,"aria-valuemin":m(n).min.value,"aria-valuemax":m(n).max.value,"aria-orientation":m(n).orientation.value,"as-child":h.asChild,as:h.as,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[m(r).startEdge]:`calc(${s.value}% + ${d.value}px)`,display:!m(f)&&o.value===void 0?"none":void 0},onFocus:p[0]||(p[0]=()=>{m(n).valueIndexToChangeRef.value=h.index})}),{default:N(()=>[me(h.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),gX=Q({__name:"SliderThumb",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{getItems:n}=TA(),{forwardRef:r,currentElement:i}=Qe(),a=W(()=>i.value?n().findIndex(o=>o.ref===i.value):-1);return(o,s)=>(E(),V(PPe,rt({ref:m(r)},t,{index:a.value}),{default:N(()=>[me(o.$slots,"default")]),_:3},16,["index"]))}}),yX=Q({__name:"SliderTrack",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=F6();return Qe(),(n,r)=>(E(),V(m(ot),{"as-child":n.asChild,as:n.as,"data-disabled":m(t).disabled.value?"":void 0,"data-orientation":m(t).orientation.value},{default:N(()=>[me(n.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),vX=Q({__name:"SliderRange",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=F6(),n=fX();Qe();const r=W(()=>{var o,s;return(s=(o=t.modelValue)==null?void 0:o.value)==null?void 0:s.map(l=>lX(l,t.min.value,t.max.value))}),i=W(()=>t.modelValue.value.length>1?Math.min(...r.value):0),a=W(()=>100-Math.max(...r.value));return(o,s)=>(E(),V(m(ot),{"data-disabled":m(t).disabled.value?"":void 0,"data-orientation":m(t).orientation.value,"as-child":o.asChild,as:o.as,style:Li({[m(n).startEdge]:`${i.value}%`,[m(n).endEdge]:`${a.value}%`})},{default:N(()=>[me(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}});function DPe(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}DPe();const IPe=["name","disabled","required","value","checked","data-state","data-disabled"],[$Pe,LPe]=mn("SwitchRoot"),RPe=Q({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,r=t,{disabled:i}=An(n),a=Yn(n,"checked",r,{defaultValue:n.defaultChecked,passive:n.checked===void 0});function o(){i.value||(a.value=!a.value)}const{forwardRef:s,currentElement:l}=Qe(),u=_1(l),c=W(()=>{var d;return n.id&&l.value?(d=document.querySelector(`[for="${n.id}"]`))==null?void 0:d.innerText:void 0});return LPe({checked:a,toggleCheck:o,disabled:i}),(d,f)=>(E(),U(Ae,null,[H(m(ot),rt(d.$attrs,{id:d.id,ref:m(s),role:"switch",type:d.as==="button"?"button":void 0,value:d.value,"aria-label":d.$attrs["aria-label"]||c.value,"aria-checked":m(a),"aria-required":d.required,"data-state":m(a)?"checked":"unchecked","data-disabled":m(i)?"":void 0,"as-child":d.asChild,as:d.as,disabled:m(i),onClick:o,onKeydown:po(nr(o,["prevent"]),["enter"])}),{default:N(()=>[me(d.$slots,"default",{checked:m(a)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),m(u)?(E(),U("input",{key:0,t
18ype:"checkbox",name:d.name,tabindex:"-1","aria-hidden":"true",disabled:m(i),required:d.required,value:d.value,checked:!!m(a),"data-state":m(a)?"checked":"unchecked","data-disabled":m(i)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,IPe)):ae("",!0)],64))}}),OPe=Q({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=$Pe();return Qe(),(n,r)=>{var i;return E(),V(m(ot),{"data-state":(i=m(t).checked)!=null&&i.value?"checked":"unchecked","data-disabled":m(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:N(()=>[me(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[z6,BPe]=mn("TabsRoot"),FPe=Q({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{orientation:i,dir:a}=An(n),o=Za(a);Qe();const s=Yn(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=G();return BPe({modelValue:s,changeModelValue:u=>{s.value=u},orientation:i,dir:o,activationMode:n.activationMode,baseId:Ri(void 0,"radix-vue-tabs"),tabsList:l}),(u,c)=>(E(),V(m(ot),{dir:m(o),"data-orientation":m(i),"as-child":u.asChild,as:u.as},{default:N(()=>[me(u.$slots,"default",{modelValue:m(s)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),zPe=Q({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(e){const t=e,{loop:n}=An(t),{forwardRef:r,currentElement:i}=Qe(),a=z6();return a.tabsList=i,(o,s)=>(E(),V(m(wv),{"as-child":"",orientation:m(a).orientation.value,dir:m(a).dir.value,loop:m(n)},{default:N(()=>[H(m(ot),{ref:m(r),role:"tablist","as-child":o.asChild,as:o.as,"aria-orientation":m(a).orientation.value},{default:N(()=>[me(o.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function _X(e,t){return`${e}-trigger-${t}`}function bX(e,t){return`${e}-content-${t}`}const NPe=Q({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=Qe(),r=z6(),i=W(()=>_X(r.baseId,t.value)),a=W(()=>bX(r.baseId,t.value)),o=W(()=>t.value===r.modelValue.value),s=G(o.value);return Ot(()=>{requestAnimationFrame(()=>{s.value=!1})}),(l,u)=>(E(),V(m(Cl),{present:o.value,"force-mount":""},{default:N(({present:c})=>[H(m(ot),{id:a.value,ref:m(n),"as-child":l.asChild,as:l.as,role:"tabpanel","data-state":o.value?"active":"inactive","data-orientation":m(r).orientation.value,"aria-labelledby":i.value,hidden:!c.value,tabindex:"0",style:Li({animationDuration:s.value?"0s":void 0})},{default:N(()=>[l.forceMount||o.value?me(l.$slots,"default",{key:0}):ae("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),VPe=Q({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n}=Qe(),r=z6(),i=W(()=>_X(r.baseId,t.value)),a=W(()=>bX(r.baseId,t.value)),o=W(()=>t.value===r.modelValue.value);return(s,l)=>(E(),V(m(L6),{"as-child":"",focusable:!s.disabled,active:o.value},{default:N(()=>[H(m(ot),{id:i.value,ref:m(n),role:"tab",type:s.as==="button"?"button":void 0,as:s.as,"as-child":s.asChild,"aria-selected":o.value?"true":"false","aria-controls":a.value,"data-state":o.value?"active":"inactive",disabled:s.disabled,"data-disabled":s.disabled?"":void 0,"data-orientation":m(r).orientation.value,onMousedown:l[0]||(l[0]=nr(u=>{!s.disabled&&u.ctrlKey===!1?m(r).changeModelValue(s.value):u.preventDefault()},["left"])),onKeydown:l[1]||(l[1]=po(u=>m(r).changeModelValue(s.value),["enter","space"])),onFocus:l[2]||(l[2]=()=>{const u=m(r).activationMode!=="manual";!o.value&&!s.disabled&&u&&m(r).changeModelValue(s.value)})},{default:N(()=>[me(s.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}
18),jPe=Q({__name:"TabsIndicator",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=z6();Qe();const r=G(),i=G({size:null,position:null});Je(()=>[n.modelValue.value,n?.dir.value],async()=>{await At(),a()},{immediate:!0}),cY([n.tabsList,r],a);function a(){var o;r.value=(o=n.tabsList.value)==null?void 0:o.querySelector('[role="tab"][data-state="active"]'),r.value&&(n.orientation.value==="horizontal"?i.value={size:r.value.offsetWidth,position:r.value.offsetLeft}:i.value={size:r.value.offsetHeight,position:r.value.offsetTop})}return(o,s)=>typeof i.value.size=="number"?(E(),V(m(ot),rt({key:0},t,{style:{"--radix-tabs-indicator-size":`${i.value.size}px`,"--radix-tabs-indicator-position":`${i.value.position}px`}}),{default:N(()=>[me(o.$slots,"default")]),_:3},16,["style"])):ae("",!0)}}),UPe=Q({__name:"Toggle",props:{defaultValue:{type:Boolean},pressed:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},emits:["update:pressed"],setup(e,{emit:t}){const n=e,r=t;Qe();const i=Yn(n,"pressed",r,{defaultValue:n.defaultValue,passive:n.pressed===void 0});function a(){i.value=!i.value}const o=W(()=>i.value?"on":"off");return(s,l)=>(E(),V(m(ot),{type:s.as==="button"?"button":void 0,"as-child":n.asChild,as:s.as,"aria-pressed":m(i),"data-state":o.value,"data-disabled":s.disabled?"":void 0,disabled:s.disabled,onClick:a},{default:N(()=>[me(s.$slots,"default",{pressed:m(i)})]),_:3},8,["type","as-child","as","aria-pressed","data-state","data-disabled","disabled"]))}}),[HPe,qPe]=mn("ToggleGroupRoot"),WPe=Q({__name:"ToggleGroupRoot",props:{rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},orientation:{},dir:{},loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{loop:i,rovingFocus:a,disabled:o,dir:s}=An(n),l=Za(s),{forwardRef:u}=Qe(),{modelValue:c,changeModelValue:d,isSingle:f}=vY(n,r);return qPe({isSingle:f,modelValue:c,changeModelValue:d,dir:l,orientation:n.orientation,loop:i,rovingFocus:a,disabled:o}),(h,p)=>
18(E(),V(yn(m(a)?m(wv):m(ot)),{"as-child":"",orientation:m(a)?h.orientation:void 0,dir:m(l),loop:m(a)?m(i):void 0},{default:N(()=>[H(m(ot),{ref:m(u),role:"group","as-child":h.asChild,as:h.as},{default:N(()=>[me(h.$slots,"default",{modelValue:m(c)})]),_:3},8,["as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),GPe=Q({__name:"ToggleGroupItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=HPe(),r=W(()=>{var s;return((s=n.disabled)==null?void 0:s.value)||t.disabled}),i=W(()=>{var s;return(s=n.modelValue.value)==null?void 0:s.includes(t.value)}),a=W(()=>{var s;return n.isSingle.value?n.modelValue.value===t.value:(s=n.modelValue.value)==null?void 0:s.includes(t.value)}),{forwardRef:o}=Qe();return(s,l)=>(E(),V(yn(m(n).rovingFocus.value?m(L6):m(ot)),{"as-child":"",focusable:!r.value,active:i.value},{default:N(()=>[H(m(UPe),rt(t,{ref:m(o),disabled:r.value,pressed:a.value,"onUpdate:pressed":l[0]||(l[0]=u=>m(n).changeModelValue(s.value))}),{default:N(()=>[me(s.$slots,"default")]),_:3},16,["disabled","pressed"])]),_:3},8,["focusable","active"]))}}),[xX,ZPe]=mn("ToolbarRoot"),KPe=Q({__name:"ToolbarRoot",props:{orientation:{default:"horizontal"},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,{orientation:n,dir:r}=An(t),i=Za(r),{forwardRef:a}=Qe();return ZPe({orientation:n,dir:i}),(o,s)=>(E(),V(m(wv),{"as-child":"",orientation:m(n),dir:m(i),loop:o.loop},{default:N(()=>[H(m(ot),{ref:m(a),role:"toolbar","aria-orientation":m(n),"as-child":o.asChild,as:o.as},{default:N(()=>[me(o.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),wX=Q({__name:"ToolbarButton",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n}=Qe();return(r,i)=>(E(),V(m(L6),{"as-child":"",focusable:!r.disabled},{default:N(()=>[H(m(ot),rt({ref:m(n),type:r.as==="button"?"button":void 0},t),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),YPe=Q({__name:"ToolbarToggleGroup",props:{rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=xX(),a=_p(r);return Qe(),(o,s)=>(E(),V(m(WPe),rt({...n,...m(a)},{"data-orientation":m(i).orientation.value,dir:m(i).dir.value,"roving-focus":!1}),{default:N(()=>[me(o.$slots,"default")]),_:3},16,["data-orientation","dir"]))}}),XPe=Q({__name:"ToolbarToggleItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=Qe();return(r,i)=>(E(),V(wX,{"as-child":""},{default:N(()=>[H(m(GPe),rt(t,{ref:m(n)}),{default:N(()=>[me(r.$slots,"default")]),_:3},16)]),_:3}))}}),JPe=Q({__name:"ToolbarSeparator",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=xX();return Qe(),(r,i)=>(E(),V(yPe,{orientation:m(n).orientation.value,"as-child":t.asChild,as:r.as},{default:N(()=>[me(r.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),SX="tooltip.open",[VA,QPe]=mn("TooltipProvider"),eDe=Q({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:i,disableClosingTrigger:a,ignoreNonKeyboardFocus:o,disabled:s}=An(t);Qe();const l=G(!0),u=G(!1),{start:c,stop:d}=lY(()=>{l.value=!0},r,{immediate:!1});return QPe({isOpenDelayed:l,delayDuration:n,onOpen(){d(),l.value=!1},onClose(){c()},isPointerInTransitRef:u,disableHoverableContent:i,disableClosingTrigger:a,disabled:s,ignoreNonKeyboardFocus:o}),(f,h)=>me(f.$slots,"default")}}),[N6,tDe]=mn("TooltipRoot"),nDe=Q({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;Qe();const i=VA(),a=W(()=>n.disableHoverableContent??i.disableHoverableContent.value),o=W(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=W(()=>n.disabled??i.disabled.value),l=W(()=>n.delayDuration??i.delayDuration.value),u=W(()=>
18n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),c=Yn(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Je(c,_=>{i.onClose&&(_?(i.onOpen(),document.dispatchEvent(new CustomEvent(SX))):i.onClose())});const d=G(!1),f=G(),h=W(()=>c.value?d.value?"delayed-open":"instant-open":"closed"),{start:p,stop:g}=lY(()=>{d.value=!0,c.value=!0},l,{immediate:!1});function v(){g(),d.value=!1,c.value=!0}function b(){g(),c.value=!1}function x(){p()}return tDe({contentId:"",open:c,stateAttribute:h,trigger:f,onTriggerChange(_){f.value=_},onTriggerEnter(){i.isOpenDelayed.value?x():v()},onTriggerLeave(){a.value?b():g()},onOpen:v,onClose:b,disableHoverableContent:a,disableClosingTrigger:o,disabled:s,ignoreNonKeyboardFocus:u}),(_,w)=>(E(),V(m(xv),null,{default:N(()=>[me(_.$slots,"default",{open:m(c)})]),_:3}))}}),rDe=Q({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=N6(),r=VA();n.contentId||(n.contentId=Ri(void 0,"radix-vue-tooltip-content"));const{forwardRef:i,currentElement:a}=Qe(),o=G(!1),s=G(!1),l=W(()=>n.disabled.value?{}:{click:g,focus:h,pointermove:d,pointerleave:f,pointerdown:c,blur:p});Ot(()=>{n.onTriggerChange(a.value)});function u(){setTimeout(()=>{o.value=!1},1)}function c(){o.value=!0,document.addEventListener("pointerup",u,{once:!0})}function d(v){v.pointerType!=="touch"&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function f(){n.onTriggerLeave(),s.value=!1}function h(v){var b,x;o.value||n.ignoreNonKeyboardFocus.value&&!((x=(b=v.target).matches)!=null&&x.call(b,":focus-visible"))||n.onOpen()}function p(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(v,b)=>(E(),V(m(w1),{"as-child":""},{default:N(()=>[H(m(ot),rt({ref:m(i),"aria-describedby":m(n).open.value?m(n).contentId:void 0,"data-state":m(n).stateAttribute.value,as:v.as,"as-child":t.asChild,"data-grace-area-trigger":""},GH(l.value)),{default:N(()=>[me(v.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),CX=Q({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,i=N6(),{forwardRef:a}=Qe(),o=ZH(),s=W(()=>{var c;return(c=o.default)==null?void 0:c.call(o)}),l=W(()=>{var c;if(n.ariaLabel)return n.ariaLabel;let d="";function f(h){typeof h.children=="string"&&h.type!==Zr?d+=h.children:Array.isArray(h.children)&&h.children.forEach(p=>f(p))}return(c=s.value)==null||c.forEach(h=>f(h)),d}),u=W(()=>{const{ariaLabel:c,...d}=n;return d});return Ot(()=>{Jd(window,"scroll",c=>{const d=c.target;d!=null&&d.contains(i.trigger.value)&&i.onClose()}),Jd(window,SX,i.onClose)}),(c,d)=>(E(),V(m(bp),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=f=>r("escapeKeyDown",f)),onPointerDownOutside:d[1]||(d[1]=f=>{var h;m(i).disableClosingTrigger.value&&(h=m(i).trigger.value)!=null&&h.contains(f.target)&&f.preventDefault(),r("pointerDownOutside",f)}),onFocusOutside:d[2]||(d[2]=nr(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=f=>m(i).onClose())},{default:N(()=>[H(m(Rm),rt({ref:m(a),"data-state":m(i).stateAttribute.value},{...c.$attrs,...u.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:N(()=>[me(c.$slots,"default"),H(m(D6),{id:m(i).contentId,role:"tooltip"},{default:N(()=>[st(de(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),iDe=Q({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=b1(e),{forwardRef:n,currentElement:r}=Qe(),{trigger:i,onClose:a}=N6(),o=VA(),{isPointerInTransit:s,onPointerExit:l}=Kke(i,r);return o.isPointerInTransitRef=s,l(()=>{a()}),(u,c)=>(E(),V(CX,rt({ref:m(n)},m(t)),{default:N(()=>[me(u.$slots,"default")]),_:3},16))}}),aDe=Q({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,i=N6(),a=Sl(n,r),{forwardRef:o}=Qe();return(s,l)=>(E(),V(m(Cl),{present:s.forceMount||m(i).open.value},{default:N(()=>[(E(),V(yn(m(i).disableHoverableContent.value?CX:iDe),rt({ref:m(o)},m(a)),{default:N(()=>[me(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),oDe=Q({__name:"TooltipArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return Qe(),(n,r)=>(E(),V(m(ZY),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),sDe=Q({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(E(),V(m(bv),un(pn(t)),{default:N(()=>[me(n.$slots,"default")]),_:3},16))}}),lDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25"};function uDe(e,t){return E(),U("svg",lDe,[...t[0]||(t[0]=[Y("path",{fill:"#007F79",d:"M14.2 22.5H7.8c-1.8 0-2.8 0-3.6-.4s-1.4-1-1.7-1.7c-.5-.9-.5-1.9-.5-3.7v-6.4c0-1.8 0-2.8.4-3.6s1-1.4 1.7-1.7c.9-.5 1.9-.5 3.7-.5H10c.6 0 1 .4 1 1s-.4 1-1 1H7.8c-1.5 0-2.3 0-2.7.2q-.6.3-.9.9C4 8 4 8.8 4 10.3v6.4c0 1.5 0 2.3.2 2.7q.3.6.9.9c.4.2 1.2.2 2.7.2h6.4c1.5 0 2.3 0 2.7-.2q.6-.3.9-.9c.2-.4.2-1.2.2-2.7v-2.2c0-.6.4-1 1-1s1 .4 1 1v2.2c0 1.8 0 2.8-.4 3.6s-1 1.4-1.7 1.7c-.9.5-1.9.5-3.7.5m-1.2-10c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l6.3-6.3H15c-.6 0-1-.4-1-1s.4-1 1-1h6c.1 0 .3 0 .4.1.1 0 .2.1.3.2s.2.2.2.3c.1.1.1.3.1.4v6c0 .6-.4 1-1 1s-1-.4-1-1V5.9l-6.3 6.3c-.2.2-.4.3-.7.3"},null,-1)])])}const cDe={render:uDe},Fc=Q({__name:"CimLink",props:{link:{},showSr:{type:Boolean,default:!1},hideExternal:{type:Boolean,default:!1}},setup(e){const t=u1,n=e,r=Va(),{t:i}=dr(),a=W(()=>n.link?.text||n.link?.href||""),o=W(()=>a.value.split(r.titleDelimiter||"|")||[a.value]),s=W(()=>!n.link?.href||n.link?.href===""||n.link?.href===null),{decryptString:l}=JM(),u=G(),c=(h,p)=>{const g=h,v=parseInt(p,10)*-1;document.location.href=l(g,v)},d=h=>h.type==="email"?null:h?.href?h?.target:null,f=h=>d(h)?h?.target?h.text+" "+i("common.newWindow"):null:h.type==="email"?`${i("common.contact.contact")} ${h.text} ${i("common.contact.byEmail")}`:null;return(h,p)=>{const g=cDe;return E(),V(yn(m(s)?"span":m(t)),{ref_key:"theLink",ref:u,to:m(s)?null:e.link?.href,target:d(e.link),title:f(e.link),onClick:p[
180]||(p[0]=v=>e.link?.type==="email"?c(e.link?.additionalAttributes?.["data-mailto-token"],e.link?.additionalAttributes?.["data-mailto-vector"]):null)},{default:N(()=>[me(h.$slots,"default",{},()=>[m(o).length>0?(E(),U("span",{key:0,class:L(e.showSr?m(fn)():null)},de(m(o)[0]),3)):ae("",!0),m(o).length>1?(E(),U("span",{key:1,class:L(e.showSr?m(fn)():null)}," "+de(m(o)[1]),3)):ae("",!0)]),me(h.$slots,"icon"),!m(s)&&e.link?.target==="_blank"&&!e.hideExternal?(E(),V(g,{key:0,"aria-hidden":"true","data-external-icon":"",class:L([m(vn)({size:"2rem",fill:"primary"}),m(F)({order:-1,display:"inline-block",minWidth:"2rem"})])},null,8,["class"])):ae("",!0)]),_:3},8,["to","target","title"])}}}),tT=Symbol("head-component"),jA={body:{type:Boolean,default:void 0},tagPosition:{type:String}};function Sv(e,t){const n=Object.fromEntries(Object.entries(e).filter(([r,i])=>i!==void 0));return typeof n.body<"u"&&(n.tagPosition=n.body?"bodyClose":"head"),typeof n.renderPriority<"u"&&(n.tagPriority=n.renderPriority),{...n,key:t}}function Cv(){const e=$n()?.vnode.key;return e!=null&&typeof e!="symbol"?String(e):void 0}function M1(){return cr(tT,dDe,!0)}function dDe(){const e=cr(tT,null);if(e)return e;const t=mi({}),n=mo(t),r={input:t,entry:n,update:()=>n.patch(t)};return Si(tT,r),r}const A1={accesskey:String,autocapitalize:String,autofocus:{type:Boolean,default:void 0},class:{type:[String,Object,Array],default:void 0},contenteditable:{type:Boolean,default:void 0},contextmenu:String,dir:String,draggable:{type:Boolean,default:void 0},enterkeyhint:String,exportparts:String,hidden:{type:Boolean,default:void 0},id:String,inputmode:String,is:String,itemid:String,itemprop:String,itemref:String,itemscope:String,itemtype:String,lang:String,nonce:String,part:String,slot:String,spellcheck:{type:Boolean,default:void 0},style:{type:[String,Object,Array],default:void 0},tabindex:String,title:String,translate:String,renderPriority:[String,Number],tagPriority:{type:[String,Number]}};({...A1,...jA});({...A1,...jA});({...A1});({...A1});({...A1,...jA});({...A1});function fDe(e){const t=G(),{decryptString:n}=JM(),r=G([]);function i(){r.value=Object.entries(e.value.getElementsByTagName("a")).reduce((u,[c,d])=>(d.dataset.mailtoToken!==void 0&&u.push(d),u),[]);for(const u of r.value)u.addEventListener("click",l)}function a(u){t.value=u,u.addEventListener("click",l)}function o(u){u.removeEventListener("click",l)}function s(){for(const u of r.value)u.removeEventListener("click",l)}function l(u){t.value.dataset.mailtoVector&&console.warn("missing mailto vector"),t.value.dataset.mailtoToken&&console.warn("missing mailto token");const c=parseInt(t.value.dataset.mailtoVector,10)*-1;document.location.href=n(t.value.dataset.mailtoToken,c)}return{addListeners:i,removeListeners:s,addListenerFor:a,removeListenerFor:o}}const hDe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 16 16"};function pDe(e,t){return E(),U("svg",hDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M10.67 8.67h-2V2H7.34v6.67h-2l2.67 2.67 2.67-2.67Zm-8 4V14h10.67v-1.33z"},null,-1)])])}const mDe={render:pDe},gDe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 16 16"};function yDe(e,t){return E(),U("svg",gDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M14 2.67H2C1.26 2.67.67 3.27.67 4v8.67c0 .74.6 1.33 1.33 1.33h12c.74 0 1.33-.6 1.33-1.33V4c0-.74-.6-1.33-1.33-1.33m-12 10V4h5.33v8.67zm12 0H8.67V4H14z"},null,-1),Y("path",{fill:"#fff",d:"M9.33 6.33h4v1h-4zM9.33 8h4v1h-4zM9.33 9.67h4v1h-4z"},null,-1)])])}const vDe={render:yDe},_De={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 16 16"};function bDe(e,t){return E(),U("svg",_De,[...t[0]||(t[0]=[Y("g",{fill:"#fff","data-name":"Groupe 6455"},[Y("path",{d:"M11.75 5.63c-.24-.27-.64-.3-.92-.06s-.3.64-.06.92c.65.92.65 2.15 0 3.08-.21.28-.19.67.06.92.12.07.25.11.39.13.21 0 .41-.09.52-.26a3.915 3.915 0 0 0 0-4.71Z","data-name":"Tracé 46357"}),Y("path",{d:"M13.59 2.88a.574.574 0 0 0-.82-.04c-.04.04-.07.07-.1.11-.21.33-.19.75.06 1.05a5.26 5.26 0 0 1 1.77 3.98 5.15 5.15 0 0 1-1.7 3.91c-.28.29-.31.73-.06 1.05.13.16.32.27.52.3.14 0 .28-.06.39-.15a7.05 7.05 0 0 0 2.23-5.1 7.35 7.35 0 0 0-2.29-5.1Z","data-name":"Tracé 46358"}),Y("path",{d:"M8.97 1.5a.555.555 0 0 0-.65 0L4.07 4.78H.79c-.36 0-.66.29-.66.65v5.11c-.04.36.21.69.57.72h3.35l4.19 3.21c.11.08.25.13.39.14.36 0 .66-.29.66-.65V2.15c0-.26-.11-.5-.33-.65Zm-.98 10.93L4.65 9.87a.77.77 0 0 0-.39-.14H1.44V6.24h2.81c.14-.01.28-.06.39-.14l3.34-2.56v8.89Z","data-name":"Tracé 46359"})],-1)])])}const xDe={render:bDe},wDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 21"};function SDe(e,t){return E(),U("svg",wDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"m6.88 5.997 1.38-1.38 5.98 6-5.95 6-1.37-1.37 4.57-4.62z"},null,-1)])])}const CDe={render:SDe},TDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 21"};function kDe(e,t){return E(),U("svg",TDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"m13.12 5.997-1.38-1.38-5.98 6 5.95 6 1.37-1.37-4.57-4.62z"},null,-1)])])}const TX={render:kDe},EDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function MDe(e,t){return E(),U("svg",EDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M16.09 5.38 14.71 4l-5.98 6 5.94 6 1.38-1.37-4.57-4.62zM5.85 4.16H3.91v11.67h1.94z"},null,-1)])])}const ADe={render:MDe},PDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function DDe(e,t){return E(),U("svg",PDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"m8.52 10.
1801-4.57 4.62L5.33 16l5.94-6-5.98-6-1.38 1.38zM16.09 4.16h-1.94v11.67h1.94z"},null,-1)])])}const IDe={render:DDe},$De={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 22"};function LDe(e,t){return E(),U("svg",$De,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"m18.15 5.26-1.41-1.41L11 9.59 5.26 3.85 3.85 5.26 9.59 11l-5.74 5.74 1.41 1.41L11 12.41l5.74 5.74 1.41-1.41L12.41 11z"},null,-1)])])}const RDe={render:LDe},ODe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 18 14"};function BDe(e,t){return E(),U("svg",ODe,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"M9 0C6.47 0 4.45 1.15 2.98 2.52 1.52 3.88.54 5.5.08 6.62c-.1.25-.1.52 0 .77.46 1.12 1.44 2.74 2.9 4.1 1.47 1.37 3.49 2.52 6.02 2.52s4.55-1.15 6.02-2.52c1.46-1.36 2.44-2.98 2.91-4.1.1-.25.1-.52 0-.77-.47-1.12-1.44-2.74-2.91-4.1C13.55 1.15 11.53 0 9 0M4.5 7c0-2.49 2.01-4.5 4.5-4.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5S4.5 9.49 4.5 7M9 5c0 1.1-.9 2-2 2-.22 0-.43-.04-.63-.1-.17-.06-.37.05-.37.23 0 .22.04.43.1.65.43 1.6 2.08 2.55 3.67 2.12s2.55-2.07 2.12-3.68A2.99 2.99 0 0 0 9.12 4c-.18 0-.29.19-.23.37.07.2.1.41.1.63Z"},null,-1)])])}const FDe={render:BDe},zDe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 16"};function NDe(e,t){return E(),U("svg",zDe,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"M1.21.16A.74.74 0 0 0 .16.29c-.26.32-.2.79.13 1.05l18.5 14.5c.33.26.8.2 1.05-.13s.2-.8-.13-1.05l-3.29-2.57c1.24-1.27 2.08-2.69 2.5-3.7.1-.25.1-.52 0-.77-.47-1.12-1.44-2.74-2.91-4.1C14.54 2.15 12.52 1 9.99 1c-2.13 0-3.91.82-5.29 1.9zm5.76 4.51A4.47 4.47 0 0 1 10 3.5a4.507 4.507 0 0 1 3.96 6.65l-1.21-.94c.26-.6.33-1.29.15-1.98a2.99 2.99 0 0 0-2.77-2.22c-.18 0-.29.19-.23.37.07.2.1.41.1.63 0 .32-.07.62-.21.88L6.97 4.68Zm4.69 7.51c-.51.2-1.07.32-1.66.32-2.48 0-4.5-2.02-4.5-4.5 0-.22.02-.43.04-.63L2.59 5.05c-.71.93-1.22 1.85-1.52 2.57-.1.25-.1.52 0 .77.47 1.12 1.44 2.74 2.91 4.1 1.47 1.37 3.49 2.52 6.02 2.52 1.49 0 2.81-.4 3.94-1.02l-2.29-1.8Z"},null,-1)])])}const VDe={render:NDe},jDe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function UDe(e,t){return E(),U("svg",jDe,[...t[0]||(t[0]=[Y("path",{d:"m18.76 17.64-4.36-4.29a7.38 7.38 0 0 0 1.82-4.85c0-4.13-3.41-7.49-7.61-7.49S1 4.36 1 8.49s3.41 7.49 7.61 7.49c1.67 0 3.3-.55 4.62-1.54l4.39 4.32c.16.16.36.23.57.23s.41-.08.57-.23c.15-.15.24-.35.24-.57s-.08-.42-.24-.57Zm-4.15-9.15c0 3.25-2.69 5.9-6 5.9s-6-2.65-6-5.9 2.69-5.9 6-5.9 6 2.65 6 5.9",style:{"stroke-width":"0"}},null,-1),Y("path",{d:"M11.43 7.82h-2v-2c0-.43-.35-.79-.79-.79s-.79.35-.79.79v2h-2c-.43 0-.79.35-.79.79s.35.79.79.79h2v2c0 .43.35.79.79.79s.79-.35.79-.79v-2h2c.43 0 .79-.35.79-.79s-.35-.79-.79-.79",style:{"stroke-width":"0"}},null,-1)])])}const HDe={render:UDe},qDe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function WDe(e,t){return E(),U("svg",qDe,[...t[0]||(t[0]=[Y("path",{d:"M11.47 7.79h-5.5c-.43 0-.78.35-.78.77s.35.77.78.77h5.5c.43 0 .78-.35.78-.77s-.35-.77-.78-.77",style:{"stroke-width":"0"}},null,-1),Y("path",{d:"m18.76 17.63-4.36-4.29a7.38 7.38 0 0 0 1.82-4.85C16.22 4.36 12.8 1 8.61 1S1 4.36 1 8.49s3.41 7.49 7.61 7.49c1.66 0 3.3-.55 4.62-1.54l4.39 4.32c.16.15.36.23.57.23s.41-.08.57-.23c.15-.15.24-.35.24-.57 0-.21-.08-.42-.24-.57ZM14.6 8.49c0 3.25-2.69 5.89-5.99 5.89s-5.99-2.64-5.99-5.89S5.31 2.6 8.61 2.6s5.99 2.64 5.99 5.89",style:{"stroke-width":"0"}},null,-1)])])}const GDe={render:WDe},ZDe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 20"};function KDe(e,t){return E(),U("svg",ZDe,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"M14.5 13.06c-.54 0-1.07.21-1.47.58l-5.35-3.11c.04-.17.06-.35.07-.52 0-.18-.03-.35-.07-.52l5.29-3.08a2.244 2.244 0 1 0-.72-1.64c0 .18.03.35.07.53L7.03 8.38c-.91-.85-2.33-.8-3.18.1-.85.91-.8 2.33.1 3.18.87.81 2.21.81 3.08 0l5.34 3.12c-.04.16-.06.32-.06.49a2.19 2.19 0 1 0 2.19-2.19Zm0-9.06c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75m-9 6.75c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m9 5.26c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75"},null,-1)])])}const YDe={render:KDe},XDe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"};function JDe(e,t){return E(),U("svg",XDe,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"M0 10.5V12h4.5v-1.5zm0-9V3h7.5V1.5zm7.5 12V12h6v-1.5h-6V9H6v4.5zM3 4.5V6H0v1.5h3V9h1.5V4.5zm10.5 3V6H6v1.5zM9 4.5h1.5V3h3V1.5h-3V0H9z","data-name":"Tracé 18070"},null,-1)])])}const kX={render:JDe},QDe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21.636 21.636"};function eIe(e,t){return E(),U("svg",QDe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M10.818 0a10.818 10.818 0 1 0 10.818 10.818A10.82 10.82 0 0 0 10.818 0m4.147 11.482L9.448 15.16a.687.687 0 0 1-1.067-.57V7.046a.687.687 0 0 1 1.067-.57l5.517 3.678a.8.8 0 0 1 0 1.328"},null,-1)])])}const nT={render:eIe},tIe={xmlns:"http://www.w3.org/2000/svg","data-name":"Capa 1",viewBox:"0 0 50 50"};function nIe(e,t){return E(),U("svg",tIe,[...t[0]||(t[0]=[Y("path",{d:"M42.68 7.32c-9.76-9.76-25.59-9.76-35.36 0-9.76 9.76-9.76 25.59 0 35.36 9.76 9.76 25.59 9.76 35.36 0 9.76-9.76 9.76-25.59 0-35.36M21.88 34.6a2.88 2.88 0 0 1-5.76 0V15.4a2.88 2.88 0 0 1 5.76 0zm12 0a2.88 2.88 0 0 1-5.76 0V15.4a2.88 2.88 0 0 1 5.76 0z"},null,-1)])])}const rT={render:nIe},rIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.17 17"};function iIe(e,t){return E(),U("svg",rIe,[...t[0]||(t[0]=[Y("path",{fill:"#1778F2",d:"M2.553 9.6H.447C.107 9.6 0 9.472 0 9.153V6.574c0-.34.128-.447.447-.447h2.106V4.255a4.7 4.7 0 0 1 .574-2.4A3.53 3.53 0 0 1 5.021.281 4.7 4.7 0 0 1 6.66 0h2.085c.3 0 .426.128.426.426v2.426c0 .3-.128.426-.426.426-.574 0-1.149 0-1.723.021a.768.768 0 0 0-.872.872c-.021.638 0 1.255 0 1.915h2.468c.34 0 .468.128.468.468v2.574c0 .34-.106.447-.468.447H6.149v6.936c0 .362-.106.489-.489.489H3c-.319 0-.447-.128-.447-.447z"},null,-1)])])}const aIe={render:iIe},oIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 21"};function sIe(e,t){return E(),U("svg",oIe,[...t[0]||(t[0]=[i1('<path fill="url(#i1062443020__a)" fill-rule="evenodd" d="M17.315 4.813a1.203 1.203 0 1 1-2.406 0 1.203 1.203 0 0 1 2.406 0m-6.548 8.683a3.338 3.338 0 1 1 0-6.677 3.338 3.338 0 0 1 0 6.677m0-8.484a5.146 5.146 0 1 0 0 10.291 5.146 5.146 0 0 0 0-10.291m0-3.062c2.667 0 2.991 0 4.047.058a5.6 5.6 0 0 1 1.858.34c.436.16.83.418 1.152.753.332.323.587.717.745 1.152.224.594.342 1.223.348 1.858.045 1.056.057 1.37.
18057 4.046s0 2.991-.057 4.047a5.4 5.4 0 0 1-.348 1.858 3.28 3.28 0 0 1-1.897 1.897 5.4 5.4 0 0 1-1.859.348c-1.055.045-1.376.058-4.046.058s-2.99 0-4.046-.058a5.4 5.4 0 0 1-1.858-.348 3.1 3.1 0 0 1-1.152-.745 3.06 3.06 0 0 1-.753-1.152 5.5 5.5 0 0 1-.34-1.858c-.052-1.056-.065-1.377-.065-4.047s0-2.99.065-4.046a5.5 5.5 0 0 1 .34-1.858A3 3 0 0 1 3.711 3.1a3 3 0 0 1 1.152-.753 5.6 5.6 0 0 1 1.858-.34c1.056-.05 1.37-.057 4.046-.057m0-1.807c-2.72 0-3.062 0-4.13.058a7.3 7.3 0 0 0-2.43.47 5.08 5.08 0 0 0-2.928 2.926 7.3 7.3 0 0 0-.47 2.431c-.057 1.068-.057 1.41-.057 4.13 0 2.722 0 3.062.057 4.139.018.829.177 1.649.47 2.424a4.8 4.8 0 0 0 1.152 1.776c.501.51 1.107.905 1.775 1.158a7.3 7.3 0 0 0 2.432.43c1.068.052 1.408.058 4.13.058 2.72 0 3.06 0 4.129-.057a7.3 7.3 0 0 0 2.424-.464 5.15 5.15 0 0 0 2.933-2.933 7.3 7.3 0 0 0 .437-2.393c.052-1.068.058-1.408.058-4.13 0-2.72 0-3.06-.058-4.129a7.3 7.3 0 0 0-.463-2.431A4.95 4.95 0 0 0 19.07 1.83 4.9 4.9 0 0 0 17.32.67 7.3 7.3 0 0 0 14.906.2C13.829.144 13.488.144 10.767.144" clip-rule="evenodd"></path><defs><radialGradient id="i1062443020__a" cx="0" cy="0" r="1" gradientTransform="matrix(-6.15397 -17.94872 14.35896 -4.92317 9.724 18.97)" gradientUnits="userSpaceOnUse"><stop offset=".148" stop-color="#FFA700"></stop><stop offset=".413" stop-color="#FF1B20"></stop><stop offset=".728" stop-color="#FC00BD"></stop><stop offset="1" stop-color="#820AFC"></stop></radialGradient></defs>',2)])])}const lIe={render:sIe},uIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function cIe(e,t){return E(),U("svg",uIe,[...t[0]||(t[0]=[Y("g",{fill:"#384050","clip-path":"url(#i-594498800__a)"},[Y("path",{d:"M17 17v-6.218c0-3.059-.658-5.4-4.227-5.4a3.69 3.69 0 0 0-3.335 1.827h-.042V5.658H6.019V17h3.526v-5.628c0-1.487.276-2.91 2.1-2.91 1.805 0 1.827 1.678 1.827 2.995v5.525h3.526zM.276 5.658h3.526V17H.276zM2.039 0a2.05 2.05 0 1 0 2.039 2.039A2.04 2.04 0 0 0 2.039 0"})],-1),Y("defs",null,[Y("clipPath",{id:"i-594498800__a"},[Y("path",{fill:"#fff",d:"M0 0h17v17H0z"})])],-1)])])}const dIe={render:cIe},fIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 14"};function hIe(e,t){return E(),U("svg",fIe,[...t[0]||(t[0]=[Y("path",{fill:"#384050",d:"M19.588 2.191A2.5 2.5 0 0 0 17.825.428C16.26 0 10 0 10 0S3.74 0 2.175.412c-.84.23-1.533.922-1.763 1.78C0 3.755 0 7.001 0 7.001s0 3.261.412 4.81c.23.857.906 1.532 1.763 1.763 1.581.428 7.825.428 7.825.428s6.26 0 7.825-.412a2.5 2.5 0 0 0 1.763-1.762C20 10.263 20 7.019 20 7.019s.016-3.263-.412-4.828M8.007 10V4.003l5.205 2.999z"},null,-1)])])}const pIe={render:hIe},Tn=Q({__name:"CimButton",props:{link:{default:{}},variante:{default:{}},align:{default:""},noContainer:{type:Boolean,default:!1},type:{default:""},showSr:{type:Boolean,default:!1},picto:{}},setup(e){const t=e,n=G(),r=fDe(n);Ot(()=>{n.value!=null&&r.addListenerFor(n.value)}),br(()=>{n.value!=null&&r.removeListenerFor(n.value)});const i=W(()=>t.type!==""),a=W(()=>t.link?.href),o=W(()=>t.link?.type==="email"),s=()=>{if(t.picto)switch(t.picto){case"telecharger":return mDe;case"feuilleter":return vDe;case"ecouter":return xDe;case"next":return CDe;case"prev":return TX;case"first":return ADe;case"last":return IDe;case"close":return RDe;case"showField":return FDe;case"hideField":return VDe;case"zoomIn":return HDe;case"zoomOut":return GDe;case"share":return YDe;case"filters":return kX;case"play":return nT;case"pause":return rT;case"fb":return aIe;case"ig":return lIe;case"li":return dIe;case"yt":return pIe;default:return null}else return null},u=NZ({className:"boutonsRecipe",slots:["btnContainer","fontSize","skin","hasHover"],base:{btnContainer:{},fontSize:{marginBottom:"0",_print:{display:"none"}},skin:{"& svg":{transition:"{durations.fast} {easings.easeIn}","& *":{transition:"{durations.fast} {easings.easeIn}"}}},hasHover:{}},variants:{classes:{button:{btnContainer:{},fontSize:{fontSize:"{fontSizes.btnBig}",lineHeight:"1.4"},skin:{display:"inline-flex",alignItems:"center",padding:{base:"1.5rem 3rem",md:"1.5rem 3rem"},bgColor:"{colors.primary}",color:"{colors.white}",borderRadius:"{radii.button}",border:"{borders.md} transparent"},hasHover:{}},btnPicto:{fontSize:{fontSize:"{fontSizes.p}"},skin:{fontFamily:"{fonts.bold}",display:"flex",alignItems:"center","& svg":{width:{base:"3rem",sm:"5rem"},height:{base:"3rem",sm:"5rem"},padding:{base:"0.5rem",sm:"1.2rem"},borderRadius:"50%",border:"{borders.sm} transparent"}},hasHover:{_hover:{color:"inherit"}}},btnTxt:{fontSize:{fontSize:"{fontSizes.p}",lineHeight:"1.2"},skin:{padding:"0.5rem 0.2rem",content:"txt"},hasHover:{}},btnTxtPicto:{fontSize:{fontSize:"{fontSizes.p}",lineHeight:"1.2"},skin:{padding:"0.5rem 0.2rem",content:"txt",display:"flex",alignItems:"center","& svg":{width:"2rem",height:"2rem"}},hasHover:{}},pictoOnly:{fontSize:{},skin:{"& > span":{srOnly:!0},"& svg":{overflow:"visible",width:{base:"3rem",sm:"5rem"},height:{base:"3rem",sm:"5rem"},padding:{base:"0.5rem",sm:"1rem"},borderRadius:"50%",border:"{borders.sm} transparent"}},hasHover:{}}},bgColor:{white:{skin:{bgColor:"{colors.white}",color:"{colors.black}",borderColor:"{colors.black}","&.content_txt":{bgColor:"transparent !important",color:"{colors.white}",boxShadow:"inset 0 -0.2rem 0 0 {colors.white}"}},hasHover:{_hover:{color:"{colors.white}",bgColor:"{colors.black}",borderColor:"{colors.white}","&.content_txt":{boxShadow:"inset 0 -1.8em 0 0 {colors.white}",color:"{colors.black}"}}}},black:{skin:{bgColor:"{colors.black}",color:"{colors.white}",borderColor:"{colors.white}","&.content_txt":{bgColor:"transparent !important",color:"{colors.black}",boxShadow:"inset 0 -0.2rem 0 0 {colors.black}"}},hasHover:{_hover:{color:"{colors.black}",bgColor:"{colors.white}",borderColor:"{colors.black}","&.content_txt":{boxShadow:"inset 0 -1.8em 0 0 {colors.black}",color:"{colors.white}"}}}},primary:{skin:{bgColor:"{colors.primary}",color:"{colors.white}",borderColor:"{colors.primary}","&.content_txt":{bgColor:"transparent !important",color:"{colors.primary}",boxShadow:"inset 0 -0.2rem 0 0 {colors.primary}"}},hasHover:{_hover:{bgColor:"{colors.white}",color:"{colors.primary}","&.content_txt":{boxShadow:"inset 0 -1.8em 0 0 {colors.primary}",color:"{colors.white}"}}}},secondary:{skin:{bgColor:"{colors.secondary}",color:"{colors.black}","&.content_txt":{bgColor:"transparent !important",color:"{colors.secondary}",boxShadow:"inset 0 -0.2rem 0 0 {colors.secondary}"}},hasHover:{_hover:{bgColor:"{colors.black}",color:"{colors.white}",borderColor:"{colors.white}","&.content_txt":{boxShadow:"inset 0 -1.8em 0 0 {colors.secondary}",color:"{colors.black}"}}}},third:{skin:{bgColor:"{colors.third}",color:"{colors.white}","&.content_txt":{bgColor:"transparent !important",color:"{colors.third}",boxShadow:"inset 0 -0.2rem 0 0 {colors.third}"}},hasHover:{_hover:{bgColor:"{colors.white}",color:"{colors.third}",borderColor:"{colors.third}","&.content_txt":{boxShadow:"inset 0 -1.8em 0 0 {colors.third}",color:"{colors.white}"}}}},borderThird:{skin:{bgColor:"{colors.white}",color:"{colors.third}",borderColor:"{colors.third}"},hasHover:{_hover:{color:"{colors.white}",bgColor:"{colors.third}",borderColor:"{colors.third}"}}},transparentWhite:{skin:{bgColor:"transparent",color:"{colors.white}",borderColor:"{colors.white}","&.content_txt":{bgColor:"transparent !important",color:"{colors.white}"}},hasHover:{_hover:{bgColor:"{colors.white}",color:"{colors.black}",borderColor:"transparent","&.content_txt":{color:"{colors.black}"}}}},transparentBlack:{skin:{bgColor:"transparent",color:"{colors.black}",borderColor:"{colors.black}","&.content_txt":{bgColor:"transparent !important",color:"{colors.black}"}},hasHover:{_hover:{bgColor:"{colors.black}",color:"{colors.white}",borderColor:"transparent","&.content_txt":{color:"{colors.white}"}}}}},pictoColor:{white:{fontSize:{},skin:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.black}","& *":{fill:"{colors.third}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.white}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.third}",borderColor:"{colors.white}","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{"& *":{fill:"{colors.black}"}}}}}},black:{fontSize:{},skin:{"& svg":{bgColor:"{colors.black}",borderColor:"{colors.white}","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.black}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.black}","& *":{fill:"{colors.black}"}},"&.content_txt":{"& svg":{"& *":{fill:"{colors.white}"}}}}}},primary:{fontSize:{},skin:{"& svg":{bgColor:"{colors.primary}",borderColor:"{colors.primary}","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.primary}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.primary}","& *":{fill:"{colors.primary}"}},"&.content_txt":{"& svg":{"& *":{fill:"{colors.white}"}}}}}},secondary:{fontSize:{},skin:{"& svg":{bgColor:"{colors.secondary}","& *":{fill:"{colors.black}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.secondary}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.black}",borderColor:"{colors.white}","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{"& *":{fill:"{colors.black}"}}}}}},third:{fontSize:{},skin:{"& svg":{bgColor:"{colors.third}","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.third}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.third}","& *":{fill:"{colors.third}"}},"&.content_txt":{"& svg":{"& *":{fill:"{colors.white}"}}}}}},transparentWhite:{fontSize:{},skin:{"& svg":{bgColor:"transparent",borderColor:"{colors.white}","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.white}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"transparent","& *":{fill:"{colors.black}"}},"&.content_txt":{"& svg":{"& *":{fill:"transparent"}}}}}},transparentBlack:{fontSize:{},skin:{"& svg":{bgColor:"transparent",borderColor:"{colors.black}","& *":{fill:"{colors.black}"}},"&.content_txt":{"& svg":{bgColor:"transparent !important","& *":{fill:"{colors.black}"}}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.black}",borderColor:"transparent","& *":{fill:"{colors.white}"}},"&.content_txt":{"& svg":{"& *":{fill:"transparent"}}}}}}},pictoPlacement:{right:{skin:{"& svg":{marginLeft:"{spacing.lg}"}}},left:{fontSize:{display:"inline-flex"},skin:{flexDirection:"row-reverse",justifyContent:"start","& svg":{marginRight:"{spacing.md}"}}}},size:{xs:{skin:{"& svg":{width:"3rem",height:"3rem",padding:"0.5rem"}}},sm:{skin:{"& svg":{width:"4rem",height:"4rem",padding:"1rem"}}},md:{skin:{"& svg":{width:"5rem",height:"5rem",padding:"1rem"}}},lg:{skin:{"& svg":{width:{base:"4rem",md:"6rem"},height:{base:"4rem",md:"6rem"},padding:{base:"0.8rem",md:"1.5rem"}}}}}},defaultVariants:{}})(t.variante);return(c,d)=>(E(),V(yn(m(i)?"button":m(a)?"p":"span"),{class:L([m(u).fontSize,m(i)?[m(u).skin,m(u).hasHover]:null])},{default:N(()=>
18[!m(i)&&!m(o)?(E(),V(yn(m(a)?Fc:"span"),{key:0,link:m(a)?e.link:null,hideExternal:m(a)?!0:null,class:L([m(u).skin,m(a)?m(u).hasHover:null])},{default:N(()=>[Y("span",{class:L(m(fn)({srOnly:e.showSr}))},de(e.link?.text),3),me(c.$slots,"icon",{},()=>[(E(),V(yn(s()),{"aria-hidden":"true"}))])]),_:3},8,["link","hideExternal","class"])):!m(i)&&m(o)?(E(),V(yn(m(a)?"a":null),{key:1,ref_key:"buttonLiRef",ref:n,link:m(a)?e.link.href:null,"data-mailto-token":e.link.additionalAttributes["data-mailto-token"],"data-mailto-vector":e.link.additionalAttributes["data-mailto-vector"],hideExternal:m(a)?!0:null,class:L([m(u).skin,m(a)?m(u).hasHover:null,m(F)({cursor:"pointer"})])},{default:N(()=>[Y("span",{class:L(m(fn)({srOnly:e.showSr}))},de(e.link?.text),3),me(c.$slots,"icon",{},()=>[(E(),V(yn(s()),{"aria-hidden":"true"}))])]),_:3},8,["link","data-mailto-token","data-mailto-vector","hideExternal","class"])):(E(),U(Ae,{key:2},[Y("span",{class:L(m(fn)({srOnly:e.showSr}))},de(e.link?.text),3),me(c.$slots,"icon",{},()=>[(E(),V(yn(s()),{"aria-hidden":"true"}))])],64))]),_:3},8,["class"]))}}),mIe=Q({__name:"MediaImage",props:{file:{},enlargeImageOnClick:{type:Boolean}},setup(e){const{$emit:t}=vt(),n=(o,s)=>{t("lightbox:open",{index:o,items:s})},r=Yt(),a=G(r.siteBuilderInfos).value?.identifier==="Cdr";return(o,s)=>{const l=Qo,u=Fc,c=Tn;return E(),U("div",rt(o.$attrs,{class:["t3-ce-media-image",o.$attrs.class,o.$attrs.staticClass,m(F)({position:"relative"}),!a&&e.file?.properties?.title?m(F)({padding:"1rem 0 1rem 1.5rem",borderLeft:"0.5rem solid {colors.primary}"}):null]}),[e.file.properties.linkData?.href?(E(),V(u,{key:0,link:{text:"",title:e.file.properties.linkData?.linkText||e.file.properties.title,href:e.file.properties.linkData?.href},class:L(m(F)({"& img":{transition:"{easings.global}"},_hover:{"& img":{transform:"scale(1.05)"}}}))},{default:N(()=>[H(l,{image:e.file,defaultImg:!1,inRte:!0},null,8,["image"])]),_:1},8,["link","class"])):(E(),V(l,{key:1,image:e.file,defaultImg:!1,inRte:!0},null,8,["image"])),e.enlargeImageOnClick?(E(),V(c,{key:2,link:{text:o.$t("common.medias.images.popin.btnTitle")},title:o.$t("common.medias.images.popin.btnTitle"),showSr:!0,type:"button",picto:"zoomIn",class:L(m(F)({position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"2",opacity:"0",bgColor:"{colors.black}/20","& svg":{width:"5rem",height:"5rem","& *":{fill:"{colors.white}"}},_hover:{opacity:"1"}})),onClick:s[0]||(s[0]=d=>n(1,[e.file]))},null,8,["link","title","class"])):ae("",!0)],16)}}}),gIe=e=>{const t=W(()=>{switch(e.properties.type){case"video":return e.properties.mimeType.includes("youtube")?xa("MediaYoutube"):e.properties.mimeType.includes("vimeo")?xa("MediaVimeo"):xa("MediaVideo");case"audio":return xa("MediaAudio");default:return xa("MediaImage")}}),n=W(()=>!!e.properties.link);return{mediaTypeComponent:t,hasLink:n}},yIe=Q({__name:"MediaFile",props:{file:{},enlargeImageOnClick:{type:Boolean}},setup(e){gIe(e.file);const n=r=>{let i;return r==="image"&&(i=mIe),i};return(r,i)=>e.file?(E(),V(yn(n(e.file.properties?.type)),{key:0,file:e.file,enlargeImageOnClick:e.enlargeImageOnClick},null,8,["file","enlargeImageOnClick"])):ae("",!0)}}),vIe=e=>({galleryClassList:W(()=>[`t3-ce-gallery--horizontal-${e.position.horizontal}`,`t3-ce-gallery--vertical-${e.position.vertical}`,{"t3-ce-gallery--no-wrap":e.position.noWrap},{"t3-ce-gallery--border":e.border.enabled}])}),_Ie={key:0,class:"t3-ce-gallery__text"},bIe={key:2,class:"t3-ce-gallery__text"},UA=Q({__name:"T3MediaGallery",props:{gallery:{},enlargeImageOnClick:{type:Boolean},imgOnly:{type:Boolean}},setup(e){const t=e,{galleryClassList:n}=vIe(t.gallery),r=t.gallery?.position?.horizontal==="left",i=t.gallery?.position?.horizontal==="right",a=t.gallery?.position?.horizontal==="center",o=t.gallery?.position?.vertical==="above",s=t.gallery?.position?.vertical==="below"||t.gallery?.position?.vertical==="down";return(l,u)=>{const c=yIe;return e.gallery?(E(),U("div",{key:0,class:L(["t3-ce-gallery",m(n),m(F)({_after:{content:"''",clear:"both",display:"table"}})])},[me(l.$slots,"before"),m(s)?(E(),U("div",_Ie,[me(l.$slots,"default")])):ae("",!0),e.gallery?.count?.files?(E(),U("div",{key:1,class:L([m(Vn)({gap:"1rem",alignItems:"initial"}),o?m(F)({marginBottom:e.imgOnly?0:"1.5rem"}):null,m(s)?m(F)({marginTop:e.imgOnly?0:"1.5rem"}):null,!o&&!m(s)?m(F)({float:r?{sm:"left"}:i?{sm:"right"}:"none",margin:e.imgOnly?0:r?{sm:"0 {spacing.gutter} 1.5rem 0"}:i?{sm:"0 0 1.5rem {spacing.gutter}"}:{sm:"0 0 {spacing.gutter} 0"}}):null,m(F)({marginBottom:{smDown:"2rem"},_print:{display:"none"}})])},[(E(!0),U(Ae,null,ft(e.gallery?.rows,(d,f)=>(E(),U("div",{key:`${f}-r`,class:L([m(rn)({gap:"1rem",alignItems:"initial",justifyContent:r?"left":i?"right":a?"center":"initial"})])},[(E(!0),U(Ae,null,ft(d.columns,(h,p)=>(E(),U("div",{key:`${p}-c`,class:"t3-ce-gallery__col"},[H(c,{file:h,enlargeImageOnClick:e.enlargeImageOnClick},null,8,["file","enlargeImageOnClick"])]))),128))],2))),128))],2)):ae("",!0),m(s)?ae("",!0):(E(),U("div",bIe,[me(l.$slots,"default")])),me(l.$slots,"after")],2)):ae("",!0)}}}),xIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 34 34"};function wIe(e,t){return E(),U("svg",xIe,[...t[0]||(t[0]=[i1('<g fill="#007F79" fill-rule="evenodd" clip-path="url(#i29390848__a)" clip-rule="evenodd"><path d="M21.584 15.625v3.083a4.24 4.24 0 0 0 4.24 4.24h3.082a4.24 4.24 0 0 0 4.24-4.24v-3.083a4.24 4.24 0 0 0-4.24-4.24h-3.083a4.24 4.24 0 0 0-4.24 4.24m2.312 0c0-1.064.863-1.927 1.927-1.927h3.083c1.064 0 1.928.863 1.928 1.927v3.083a1.93 1.93 0 0 1-1.928 1.927h-3.083a1.93 1.93 0 0 1-1.927-1.927zM0 4.833v3.084a4.24 4.24 0 0 0 4.24 4.24h3.083a4.24 4.24 0 0 0 4.24-4.24V4.833a4.24 4.24 0 0 0-4.24-4.24H4.24A4.24 4.24 0 0 0 0 4.834m2.313 0c0-1.063.863-1.927 1.927-1.927h3.083c1.064 0 1.927.864 1.927 1.927v3.084a1.93 1.93 0 0 1-1.927 1.927H4.24a1.93 1.93 0 0 1-1.928-1.927zM0 26.417V29.5a4.24 4.24 0 0 0 4.24 4.24h3.083a4.24 4.24 0 0 0 4.24-4.24v-3.083a4.24 4.24 0 0 0-4.24-4.24H4.24A4.24 4.24 0 0 0 0 26.417m2.313 0c0-1.064.863-1.927 1.927-1.927h3.083c1.064 0 1.927.863 1.927 1.927V29.5a1.93 1.93 0 0 1-1.927 1.927H4.24A1.93 1.93 0 0 1 2.312 29.5z"></path><path d="m5.721 24.488.06.001.05-.006c.222-.03 1.106-.219 1.106-1.17v-1.521a3.47 3.47 0 0 1 3.47-3.47H22.74a1.157 1.157 0 0 0 0-2.312H10.406a5.78 5.78 0 0 0-4.088 1.693 5.78 5.78 0 0 0-1.693 4.089v1.541q0 .12.025.235c.03.165.092.3.172.411.
18198.293.526.49.9.509M27.305 13.696l.06.002.049-.006c.222-.031 1.107-.22 1.107-1.17V11a5.78 5.78 0 0 0-1.693-4.088 5.79 5.79 0 0 0-4.088-1.693H10.406a1.157 1.157 0 0 0 0 2.312H22.74A3.47 3.47 0 0 1 26.208 11v1.541q0 .121.025.235c.03.165.093.3.173.412.197.292.525.49.899.508M10.406 29.115h10.792a1.157 1.157 0 0 0 .817-1.974l-3.083-3.083a1.155 1.155 0 1 0-1.634 1.634l1.108 1.11h-8a1.157 1.157 0 0 0 0 2.313"></path><path d="m20.38 27.141-3.083 3.083a1.155 1.155 0 1 0 1.634 1.634l3.084-3.083a1.155 1.155 0 1 0-1.634-1.634"></path></g><defs><clipPath id="i29390848__a"><path fill="#fff" d="M0 .594h33.146V33.74H0z"></path></clipPath></defs>',2)])])}const SIe={render:wIe},EX=Q({__name:"FieldAccordion",props:{header:{},headerLayout:{},uid:{},colPos:{},result:{},config:{},first_element_opened:{type:Boolean},showInSummary:{type:Boolean},type:{}},setup(e){return(t,n)=>{const r=mCe,i=SY,a=wY,o=du,s=UA,l=xY,u=bY,c=_Y,d=Mr;return E(),V(d,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,type:e.type},{content:N(()=>[(E(!0),U(Ae,null,ft(e.result,(f,h)=>(E(),V(c,{key:"key_"+h,type:"single",asChild:"",collapsible:!0,"default-value":e.first_element_opened?"accordion-item-0":void 0},{default:N(()=>[H(u,{value:"accordion-item-"+h,class:L(m(F)({marginTop:"2rem",_first:{marginTop:"1.5rem"}}))},{default:N(()=>[H(a,{asChild:""},{default:N(()=>[H(i,{class:L([m(rn)({justifyContent:"start",gap:"1.5rem"}),m(F)({fontFamily:"{fonts.bold}",fontSize:"{fontSizes.h4}",padding:{base:"1rem",sm:"2rem 3rem"},width:"100%",textAlign:"left",bgColor:{base:"{colors.lightGray}",_expanded:"{colors.primary}/10"},_expanded:{color:"{colors.primary}","& [data-accordion-plus]":{rotate:"45deg"}},_hover:{paddingLeft:"4rem"}})])},{default:N(()=>[Y("span",{class:L(m(F)({flex:"auto"}))},de(f.title),3),f.show_picto?(E(),V(m(SIe),{key:0,"aria-hidden":"true",class:L([m(vn)({fill:"{colors.primary}",size:{base:"2rem",sm:"3rem"}}),m(F)({order:"-1"})])},null,8,["class"])):ae("",!0),H(r,{"data-accordion-plus":"","aria-hidden":"true",class:L([m(vn)({fill:"{colors.primary}",size:{base:"2rem",sm:"2.5rem"}}),m(F)({transition:"{easings.global}",_print:{display:"none"}})])},null,8,["class"])]),_:2},1032,["class"])]),_:2},1024),H(l,{class:L([m(Sa)(),m(ru)(),m(u6)(),m(Zd)({color:"primary",hoverColor:"white"}),m(F)({padding:{base:"2rem",sm:"3.5rem {spacing.gutter}"},border:"{borders.sm} {colors.primary}",borderTopWidth:0,_print:{"& figure, & img":{display:"none"}}})])},{default:N(()=>[me(t.$slots,"content",{},()=>[H(s,{gallery:{position:{horizontal:f.image_position,noWrap:!1,vertical:f.image_position},count:{columns:1,files:f.images?.length,rows:1},border:{enabled:!1,padding:0,width:2},rows:{1:{columns:{1:f.images?.[0]}}}}},{default:N(()=>[f.description?(E(),V(o,{key:0,content:f.description},null,8,["content"])):ae("",!0)]),_:2},1032,["gallery"])])]),_:2},1032,["class"])]),_:2},1032,["value","class"])]),_:2},1032,["default-value"]))),128))]),_:3},8,["header","header-layout","uid","showInSummary","type"])}}}),CIe=Q({__name:"T3CeMaskBlocAccordion",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},type:{},colPos:{},first_element_opened:{type:Boolean,default:!1},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=EX;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,colPos:e.colPos,result:e.items,uid:e.uid,first_element_opened:e.first_element_opened,showInSummary:e.show_in_summary,type:e.type},null,8,["header","headerLayout","colPos","result","uid","first_element_opened","showInSummary","type"])}}}),TIe=Q({__name:"Progressbar",props:{playing:{type:Boolean},duration:{},sliderThumbStyle:{}},setup(e,{expose:t}){const n=G([0]),{t:r}=dr(),i=r("common.medias.audio.progressbar.minutes"),a=r("common.medias.audio.progressbar.secondes"),o=r("common.medias.audio.progressbar.sur"),s=l=>new Date(1e3*l).toISOString().slice(14,19).replace(":",` ${i} `)+` ${a}`;return t({progress:n}),(l,u)=>{const c=vX,d=yX,f=gX,h=mX;return e.duration?(E(),V(h,{key:0,modelValue:m(n),"onUpdate:modelValue":u[0]||(u[0]=p=>$t(n)?n.value=p:null),step:1,min:0,max:e.duration,class:L(m(F)({display:"block",cursor:"pointer"}))},{default:N(()=>[H(d,null,{default:N(()=>[H(c,{class:L(m(F)({position:"absolute",height:"100%",top:"0",bgColor:"{colors.primary}",borderRadius:"{radii.sm}",border:"{borders.md} {colors.white}"}))},null,8,["class"])]),_:1}),H(f,{"aria-label":l.$t("common.medias.audio.progressbar.label"),"aria-valuetext":s(m(n)?.[0])+" "+m(o)+" "+s(e.duration),class:L(e.sliderThumbStyle)},{default:N(()=>[st(de(new Date(1e3*m(n)).toISOString().slice(14,19)),1)]),_:1},8,["aria-label","aria-valuetext","class"])]),_:1},8,["modelValue","max","class"])):ae("",!0)}}}),kIe=["opacity"],EIe=["opacity"],MIe=["opacity"],AIe=["opacity"],PIe=["opacity"],DIe=Q({__name:"VolumeButton",props:{volume:{default:1},sliderThumbStyle:{}},setup(e,{expose:t}){const r=G([e.volume]);t({audioVolume:r});const{t:i}=dr();return(a,o)=>{const s=vX,l=yX,u=gX,c=mX;return E(),V(c,{modelValue:m(r),"onUpdate:modelValue":o[0]||(o[0]=d=>$t(r)?r.value=d:null),step:.2,min:0,max:1,class:L(m(F)({display:"block",width:{base:"2rem",sm:"2.6rem"},height:"auto",cursor:"pointer",position:"relative"}))},{default:N(()=>[H(l,null,{default:N(()=>[H(s),(E(),U("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26.356",height:"19.768",viewBox:"0 0 26.356 19.768",class:L(m(F)({width:"100%",height:"100%","& *":{fill:"{colors.white}"}}
18))},[Y("path",{d:"M3.844,320H.549a.549.549,0,0,0-.549.549v5.491a.549.549,0,0,0,.549.549H3.844a.549.549,0,0,0,.549-.549v-5.491A.549.549,0,0,0,3.844,320Z",transform:"translate(0 -306.822)",opacity:m(r)?.[0]>0?1:.5},null,8,kIe),Y("path",{d:"M110.51,256h-3.294a.549.549,0,0,0-.549.549v8.785a.549.549,0,0,0,.549.549h3.294a.549.549,0,0,0,.549-.549v-8.785A.549.549,0,0,0,110.51,256Z",transform:"translate(-101.175 -246.117)",opacity:m(r)?.[0]>.2?1:.5},null,8,EIe),Y("path",{d:"M217.177,192h-3.294a.549.549,0,0,0-.549.549v12.08a.549.549,0,0,0,.549.549h3.294a.549.549,0,0,0,.549-.549v-12.08A.549.549,0,0,0,217.177,192Z",transform:"translate(-202.351 -185.411)",opacity:m(r)?.[0]>.4?1:.5},null,8,MIe),Y("path",{d:"M323.844,128h-3.295a.549.549,0,0,0-.549.549v15.374a.549.549,0,0,0,.549.549h3.295a.549.549,0,0,0,.549-.549V128.549A.549.549,0,0,0,323.844,128Z",transform:"translate(-303.527 -124.705)",opacity:m(r)?.[0]>.6?1:.5},null,8,AIe),Y("path",{d:"M430.51,64h-3.294a.549.549,0,0,0-.549.549V83.218a.549.549,0,0,0,.549.549h3.294a.549.549,0,0,0,.549-.549V64.549A.549.549,0,0,0,430.51,64Z",transform:"translate(-404.703 -64) ",opacity:m(r)?.[0]>.8?1:.5},null,8,PIe)],2))]),_:1}),H(u,{class:L(e.sliderThumbStyle),"aria-label":a.$t("common.medias.audio.volume.label")},{default:N(()=>[st(de(m(r)[0]),1)]),_:1},8,["class","aria-label"])]),_:1},8,["modelValue","class"])}}}),IIe={xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 50 45.24"};function $Ie(e,t){return E(),U("svg",IIe,[...t[0]||(t[0]=[Y("path",{d:"M0 33.33h23.81v4.76H0zm0-16.66h47.62v4.76H0zM0 0h47.62v4.76H0zm38.1 33.33v-7.14h4.76v7.14H50v4.76h-7.14v7.14H38.1v-7.14h-7.14v-4.76z"},null,-1)])])}const LIe={render:$Ie},RIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 47.62 42.85"};function OIe(e,t){return E(),U("svg",RIe,[...t[0]||(t[0]=[Y("path",{d:"M0 33.33h23.81v4.76H0zm0-16.66h47.62v4.76H0zM0 0h47.62v4.76H0z","data-name":"Layer 1"},null,-1),Y("g",{"data-name":"Calque 1"},[Y("path",{d:"M35.36 42.85h12.26v-4.76H35.36z","data-name":"Tracé 46739"})],-1)])])}const BIe={render:OIe},FIe=["title","onClick","tabindex"],zIe=Q({__name:"Playlist",props:{playlist:{default:{}},playlist_container:{},currentAudio:{},playing:{type:Boolean},playPauseTitle:{},pauseIcon:{},playIcon:{}},setup(e,{expose:t}){const n=e,r=G(!1),i=l=>l?.properties?.filename===n.currentAudio?.properties?.filename,a=G("0:00"),{t:o}=dr(),s=l=>i(l)?n.playPauseTitle:`${o("common.medias.audio.play")} ${l?.properties?.title||l?.properties?.filename} - ${a.value} ${o("common.medias.audio.progressbar.minutes")}`;return t({open:r}),(l,u)=>{const c=k1,d=O6,f=E1,h=bA,p=T1;return E(),V(p,{open:m(r),"onUpdate:open":u[2]||(u[2]=g=>$t(r)?r.value=g:null)},{default:N(()=>[H(c,{title:m(r)?l.$t("common.medias.audio.playlist.close"):l.$t("common.medias.audio.playlist.open"),class:L(m(F)({_hover:{"& svg *":{fill:"{colors.white}"}}}))},{default:N(()=>[Y("span",{class:L(m(fn)())},de(m(r)?l.$t("common.medias.audio.playlist.close"):l.$t("common.medias.audio.playlist.open")),3),(E(),V(yn(m(r)?m(BIe):m(LIe)),{"aria-hidden":"true",class:L([m(vn)({fill:"{colors.white}/75",size:{base:"1.5rem",sm:"2rem"}}),m(F)({"& *":{transition:"{easings.global}"}})])},null,8,["class"]))]),_:1},8,["title","class"]),H(d),H(h,{to:e.playlist_container},{default:N(()=>[H(f,{onInteractOutside:u[0]||(u[0]=nr(()=>{},["prevent"])),onPointerDownOutside:u[1]||(u[1]=nr(()=>{},["prevent"])),forceMount:!0,class:L(m(F)({bgColor:"{colors.black}",padding:"0 2rem",borderRadius:m(r)?"0 0 1.8em 1.8em":"1.8em",transition:"{easings.global}","&[data-state=closed]":{transform:"translateY(-100%)",position:"absolute",top:"0",left:"0",width:"100%"}}))},{default:N(()=>[Y("ul",{class:L(m(F)({marginBottom:"0",paddingBottom:"2rem"}))},[(E(!0),U(Ae,null,ft(e.playlist,g=>(E(),U("li",{class:L(m(F)({position:"relative",padding:"1rem 0",borderTop:"0.1rem solid {colors.white}",transition:"{easings.global}",zIndex:"0","& *":{color:"{colors.white}"},_hover:{paddingLeft:"1rem",paddingRight:"1rem",bgColor:"{colors.white}/15"}}))},[Y("button",{title:s(g),onClick:v=>i(g)?l.$emit("playPause"):l.$emit("changeCurrentAudio",g),tabindex:m(r)?"0":"-1",class:L([m(rn)({gap:{base:"1.5rem",sm:"2rem"}}),m(F)({width:"100%",textAlign:"left"})])},[Y("span",{class:L(m(F)({flex:"auto",overflowWrap:"break-word",wordBreak:"break-word"}))},de(g?.properties?.title||g?.properties?.filename),3),(E(),V(yn(i(g)&&e.playing?e.pauseIcon:e.playIcon),{"aria-hidden":"true",class:L([m(vn)({fill:"{colors.white}"}),m(F)({minWidth:"2rem","& *":{transition:"{durations.fast} {easings.easeIn}"}})])},null,8,["class"])),Y("span",null,de(m(a)),1)],10,FIe)],2))),256))],2)]),_:1},8,["class"])]),_:1},8,["to"])]),_:1},8,["open"])}}}),NIe=["title"],VIe=Q({__name:"T3CeMaskBlocAudioPlayer",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},audio_files:{},folder_audio_files:{},show_in_summary:{type:Boolean}},setup(e){const t=e,n=W(()=>t.audio_files?.length>
180?t.audio_files:t.folder_audio_files),r=G(),i=G(),a=G(),o=G(),s=G(),l=G(n.value?.[0]),u=G();Ot(()=>{u.value=sF(r,{src:l?.value?.publicUrl})});const c=()=>{u.value.playing=!u.value.playing},d=()=>{u.value.currentTime=i.value.progress[0]};ii(()=>{u.value&&(i.value.progress=[u.value.currentTime])});const f=()=>{u.value.volume=a.value.audioVolume},h=C=>{l.value=C,u.value=sF(r,{src:l?.value?.publicUrl}),i.value.progress=[0],u.value.playing=!0},p=C=>new Date(1e3*C).toISOString().slice(14,19),g=W(()=>l?.value?.properties?.title||l?.value?.properties?.filename),{t:v}=dr(),b=W(()=>u?.value?.playing?`${v("common.medias.audio.pause",{title:g.value})}`:`${v("common.medias.audio.play")} ${g.value}`),{$on:x,$off:_}=vt();Ot(()=>{x("playPause",c),x("changeCurrentAudio",h)}),br(()=>{_("playPause",c),_("changeCurrentAudio",h)});const w=F({bgColor:"{colors.white}",color:"{colors.black}",fontFamily:"{fonts.bold}",fontSize:"1.2em",padding:"0.2rem 0.3rem",borderRadius:"0.2em",transform:"translate(-50%, calc(-100% - 0.5rem)) !important",opacity:"0",top:"0",_focus:{opacity:"1",outline:"none"}});return(C,T)=>{const k=TIe,A=DIe,P=zIe,D=Mr,$=qE("not-lazy");return E(),V(D,{header:e.header,"header-layout":e.headerLayout,showInSummary:e.show_in_summary,uid:e.uid,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[Y("div",{class:L(m(F)({position:"relative",zIndex:"0",overflow:"hidden",borderRadius:"1.8em"}))},[Y("div",{class:L([m(rn)({gap:{base:"1.5rem",sm:"2rem"},alignItems:"end",justifyContent:"space-between"}),m(F)({bgColor:"{colors.black}",color:"{colors.white}",borderRadius:m(s)?.open?"1.8em 1.8em 0 0":"1.8em",padding:{base:"1.5rem",sm:"2rem 2.5rem"}})])},[Y("div",{class:L(m(F)({flex:"auto"}))},[Y("h3",{class:L(m(F)({fontSize:"{fontSizes.p}",marginBottom:"1rem",overflowWrap:"break-word",wordBreak:"break-word",color:"{colors.white}"}))},de(m(g)),3),Y("div",null,[Y("div",{class:L(m(F)({width:"100%",height:"1.2rem",bgColor:"{colors.white}",borderRadius:"{radii.sm}"}))},[H(k,{ref_key:"progressbar",ref:i,"onUpdate:modelValue":d,playing:m(u)?.playing,duration:m(u)?.duration,class:L(m(F)({width:"100%",height:"1.2rem",bgColor:"{colors.white}",borderRadius:"{radii.sm}",position:"relative"})),sliderThumbStyle:m(w)},null,8,["playing","duration","class","sliderThumbStyle"])],2),m(u)?(E(),U("div",{key:0,class:L([m(js)(),m(F)({marginTop:"0.5rem",justifyContent:"space-between"})])},[Y("p",{class:L(m(F)({marginBottom:"0",fontSize:"1.4em"}))},de(p(m(u)?.currentTime)),3),Y("p",{class:L(m(F)({marginBottom:"0",fontSize:"1.4em"}))},de(p(m(u)?.duration)),3)],2)):ae("",!0)])],2),Y("div",{class:L(m(F)({order:"-1",paddingBottom:"2rem"}))},[Y("button",{onClick:T[0]||(T[0]=O=>c()),title:m(b),class:L(m(F)({width:"2rem",height:"2rem",_hover:{"& svg *":{fill:"{colors.white}"}},_focusVisible:{"& svg *":{fill:"{colors.white}"}}}))},[Y("span",{class:L(m(fn)())},de(m(b)),3),(E(),V(yn(m(u)?.playing?m(rT):m(nT)),{"aria-hidden":"true",class:L(m(F)({"& *":{fill:"{colors.white}/75",transition:"{durations.fast} {easings.easeIn}"}}))},null,8,["class"]))],10,NIe)],2),Y("div",{class:L(m(F)({paddingBottom:"2.5rem"}))},[H(A,{ref_key:"volumeButton",ref:a,volume:m(u)?.volume,"onUpdate:modelValue":f,sliderThumbStyle:m(w)},null,8,["volume","sliderThumbStyle"])],2),m(n)?.length>1?(E(),U("div",{key:0,class:L(m(F)({paddingBottom:"2rem"}))},[H(P,{ref_key:"playlistPopover",ref:s,playlist:m(n),playlist_container:m(o),playing:m(u)?.playing,currentAudio:m(l),playPauseTitle:m(b),playIcon:m(nT),pauseIcon:m(rT),onPlayPause:T[1]||(T[1]=O=>m(u).playing=!m(u)?.playing),onChangeCurrentAudio:T[2]||(T[2]=O=>h(O))},null,8,["playlist","playlist_container","playing","currentAudio","playPauseTitle","playIcon","pauseIcon"])],2)):ae("",!0)],2),m(n)?.length>1?(E(),U("div",{key:0,ref_key:"playlist_container",ref:o,class:L(m(F)({position:"relative",width:"100%",left:"0",zIndex:"-1",transition:"{easings.global}",height:"100%","& > *":{position:"static !important",transform:"none !important",minWidth:"auto !important"}}))},null,2)):ae("",!0)],2),_o(Y("audio",{"data-not-lazy":"",ref_key:"audio",ref:r},null,512),[[$]])]),_:1},8,["header","header-layout","showInSummary","uid","class"])}}}),jIe=Q({__name:"T3CeMaskBlocButtons",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},id:{},index:{},appearance:{},colPos:{},buttons:{},show_in_summary:{type:Boolean},display_mode:{}},setup(e){return(t,n)=>{const r=Tn,i=Mr;return e.buttons.length?(E(),V(i,{key:0,header:e.header||t.config?.title,"header-layout":e.headerLayout,uid:e.uid,showInSummary:e.show_in_summary,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[Y("ul",{class:L(m(js)({rowGap:{base:"1rem",sm:"{spacing.gutter}"}}))},[(E(!0),U(Ae,null,ft(e.buttons,(a,o)=>(E(),U("li",{key:o,class:L([m(F)({fontSize:"1em",width:"100%"}),m(rn)({justifyContent:a.position==="right"?"end":a.position==="left"?"start":a.position==="center"?"center":"start"})])},[H(r,{link:a.links[0],variante:{classes:"button",bgColor:e.display_mode==="color3"?"borderThird":"primary"}},null,8,["link","variante"])],2))),128))],2)]),_:1},8,["header","header-layout","uid","showInSummary","class"])):ae("",!0)}}}),UIe={class:"accordion_container"},HIe={class:"accordion"},qIe=Q({__name:"ListItemFaq",props:{result:{default:()=>[]}},setup(e){return(t,n)=>{const r=SY,i=wY,a=Qo,o=du,s=xY,l=bY,u=_Y;return E(),U("div",UIe,[Y("div",HIe,[H(u,{type:"single",asChild:"",collapsible:!0},{default:N(()=>[H(l,{class:"accordion-item",value:"accordion-item-"+e.result?.id},{default:N(()=>[H(i,{asChild:""},{default:N(()=>[H(r,{class:"accordion-title"},{default:N(()=>
18[st(de(e.result?.title),1)]),_:1})]),_:1}),H(s,{asChild:""},{default:N(()=>[Y("div",{class:L(["accordion-content",e.result?.imageList?.[0]?"img_"+e.result?.image_position:null])},[e.result?.imageList?.[0]?(E(),V(a,{key:0,image:e.result?.imageList?.[0]},null,8,["image"])):ae("",!0),e.result?.description?(E(),V(o,{key:1,content:e.result?.description},null,8,["content"])):ae("",!0)],2)]),_:1})]),_:1},8,["value"])]),_:1})])])}}}),WIe=["title","href","target"],GIe={key:1},MX=Q({__name:"ListItemTitle",props:{title:{},link:{},listItemLink:{type:Boolean,default:!0},popin:{type:Boolean},options:{}},setup(e){const t=e,{$emit:n}=vt(),r=()=>{!t.link||typeof t.link>"u"||typeof t.link?.href>"u"||n("popinDetail:open",{link:t.link,showArrows:!1})},i=F({_before:{content:"''",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"2"}});return(a,o)=>{const s=Fc;return E(),V(yn(e.options?.hn||"h3"),{"data-list-item-title":""},{default:N(()=>[e.popin?(E(),U("a",{key:0,title:`${e.title}, ${a.$t("listItem.popin.btnTitle")}`,onClick:nr(r,["prevent"]),"aria-controls":"popin_detail",href:e.link?.href,target:e.link?.target,class:L(m(i))},de(e.title),11,WIe)):!e.listItemLink||!e.link?.href?(E(),U("span",GIe,de(e.title),1)):e.link?.href&&e.listItemLink!==!1?(E(),V(s,{key:2,link:e.link,class:L(m(i))},null,8,["link","class"])):ae("",!0)]),_:1})}}}),ZIe=Q({__name:"ListItemType",props:{type:{}},setup(e){return(t,n)=>(E(),U("p",{class:L(m(F)({textTransform:"capitalize"}))},de(t.$t("listItem.type."+e.type)),3))}}),HA=Q({__name:"T3CeHtml",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},bodytext:{},gallery:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos);return(r,i)=>{const a=du;return E(),U("div",{class:L(["t3-ce-html",m(Sa)(),m(Zd)(),m(ru)(),m(F)({overflow:"hidden",marginTop:"{spacing.gutter}",marginBottom:"{spacing.gutter}",position:"relative"}),m(n)?.identifier==="Cdr"?m(y1)():null])},[H(a,{content:e.bodytext,uid:e.uid},null,8,["content","uid"])],2)}}}),KIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function YIe(e,t){return E(),U("svg",KIe,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M10 3a4.97 4.97 0 0 0-5 5c0 2.783 5 9.286 5 9.286s5-6.5 5-9.286a4.97 4.97 0 0 0-5-5m0 7.143a2.104 2.104 0 0 1-2.145-2.145 2.145 2.145 0 0 1 4.285 0A2.105 2.105 0 0 1 10 10.143"},null,-1)])])}const t5={render:YIe},XIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"};function JIe(e,t){return E(),U("svg",XIe,[...t[0]||(t[0]=[Y("path",{d:"M7.5 15C3.36 15 0 11.64 0 7.5S3.36 0 7.5 0 15 3.36 15 7.5 11.64 15 7.5 15m3.44-4.94c.17-.23.13-.56-.11-.73L8.02 7.24V2.71c0-.29-.23-.52-.52-.52s-.52.23-.52.52V7.5c0 .17.08.32.21.42l3.02 2.25c.23.17.56.12.73-.11",style:{fill:"#fff","fill-rule":"evenodd","stroke-width":"0"}},null,-1)])])}const QIe={render:JIe},e$e={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 16 16"};function t$e(e,t){return E(),U("svg",e$e,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M13.33 2.67H2.67c-.73 0-1.33.6-1.33 1.33v8c0 .74.59 1.33 1.33 1.33h10.67c.74 0 1.33-.6 1.33-1.33V4c0-.74-.6-1.33-1.33-1.33Zm0 9.33H2.67V5.33L8 8.66l5.33-3.33zM8 7.33 2.67 4h10.67L8.01 7.33Z"},null,-1)])])}const GF={render:t$e},n$e={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 16 16"};function r$e(e,t){return E(),U("svg",n$e,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M4.36 3.33c.04.58.14 1.16.3 1.73l-.8.8c-.28-.82-.45-1.67-.51-2.53zm6.57 8.02c.57.16 1.15.26 1.73.3v.99c-.86-.06-1.71-.23-2.53-.5zM5 2H2.67C2.3 2 2 2.3 2 2.67 2 8.93 7.07 14 13.33 14c.37 0 .67-.3.67-.67V11c0-.37-.3-.67-.67-.67-.81 0-1.61-.13-2.38-.38-.07-.02-.14-.04-.21-.03-.18 0-.35.07-.47.19L8.8 11.58c-1.89-.97-3.43-2.5-4.39-4.39l1.47-1.47c.18-.18.24-.44.17-.68-.25-.77-.38-1.57-.38-2.38 0-.37-.3-.67-.67-.67Z"},null,-1)])])}const ZF={render:r$e},i$e={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 16 16"};function a$e(e,t){return E(),U("svg",i$e,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M7.99 1.33C4.31 1.33 1.33 4.32 1.33 8S4.32 14.66 8 14.66s6.66-2.99 6.66-6.67S11.68 1.33 8 1.32h-.01Zm4.62 4h-1.97c-.21-.83-.52-1.62-.92-2.37a5.37 5.37 0 0 1 2.89 2.37M8 2.69c.56.81.99 1.7 1.27 2.64H6.72c.28-.94.71-1.83 1.27-2.64ZM2.84 9.33c-.23-.87-.23-1.79 0-2.67h2.25a10 10 0 0 0 0 2.66H2.84Zm.55 1.34h1.97c.21.83.52 1.62.92 2.37a5.37 5.37 0 0 1-2.89-2.37m1.96-5.34H3.38a5.3 5.3 0 0 1 2.89-2.37c-.4.75-.71 1.55-.92 2.37M8 13.31c-.56-.81-.99-1.7-1.27-2.64h2.55c-.28.94-.71 1.83-1.27 2.64Zm1.56-3.98H6.44c-.07-.44-.1-.89-.11-1.33 0-.45.04-.89.11-1.33h3.12c.07.44.1.89.11 1.33 0 .45-.04.89-.11 1.33m.17 3.71c.4-.75.71-1.55.92-2.37h1.97a5.37 5.37 0 0 1-2.89 2.37m1.18-3.71c.06-.44.09-.89.09-1.33 0-.45-.04-.89-.09-1.33h2.25c.23.87.23 1.79 0 2.67h-2.25Z"},null,-1)])])}const KF={render:a$e},o$e=["data-field-name"],s$e=["data-field-type"],l$e=["href"],u$e=["href"],P1=Q({__name:"FieldText",props:{result:{},config:{}},setup(e){const t=e,n=Yt(),i=G(n.siteBuilderInfos).value?.identifier==="Cdr",a=Is(t?.config?.system_name??t.config),o=t?.config?.sub_type??t.config,s=W(()=>{let d;return typeof t?.result=="object"?typeof t?.result?.[a]=="object"?d=t?.result?.[a]?.[0]?.title?.replaceAll('<span class="at"></span>',"@")?.replaceAll('<span class="dot"></span>',"."):d=t?.result?.[a]?.replaceAll('<span class="at"></span>',"@")?.replaceAll('<span class="dot"></span>',"."):typeof t?.result=="string"?d=t?.result.replaceAll('<span class="at"></span>',"@")?.replaceAll('<span class="dot"></span>',"."):d=t.result,d});function l(d){return"mailto:"+d}const u=["place"],c=()=>{switch(t.config?.frontend_picto||t.config?.sub_type||u.includes(t.config?.system_name)){case"adresse":case"place":return t5;case"horaires":return QIe;case"mail":return GF;case"tel":return ZF;case"website":return KF;default:return null}};return(d,f)=>{const h=HA,p=Tn,g=Fc;return e.config?.type==="richtext"&&m(s)?(E(),U("div",{key:0,"data-field-name":e.config?.system_name,class:"richtext_field"},[m(a)==="projet"||m(a)==="mission"?(E(),U("p",{key:0,class:L(m(F)({fontFamily:"{fonts.bold}",display:"inline"}))},de(m(a)==="projet"?d.$t("listItem.contacts.projects"):null)+" "+de(m(a)==="mission"?`${d.$t("listItem.contacts.mission")} `:null),3)):ae("",!0),H(h,{bodytext:m(s),class:L(m(F)({display:"inline","& *":{display:"inline"}}))},null,8,["bodytext","class"])],8,o$e)):m(s)&&e.result?.type==="contact"&&(m(o)==="mail"||e.config?.system_name==="mail"||e.config?.system_name==="email")?(E(),U(Ae,{key:1},[e.result?.type==="contact"?(E(),V(p,{key:0,link:{text:d.$t("common.contact.mail"),href:l(m(s)),target:"_blank"},variante:{classes:"button",bgColor:"primary"},class:L([m(F)({fontSize:"{fontSizes.md} !important",lineHeight:"1.2 !important","& a":{boxShadow:"none !important",padding:"1rem 2.5rem !important",_hover:{color:"{colors.primary} !important"}}})])},null,8,["link","class"])):ae("",!0)],64)):(E(),U(Ae,{key:2},[m(s)?(E(),U("p",{key:0,"data-field-type":e.config?.frontend_picto||e.config?.sub_type||m(a)||null,class:L([m(rn)({flexDirection:"row-reverse",justifyContent:"start",alignItems:"start",ga
18p:"1.2rem"}),m(F)({whiteSpace:"pre-line","& > *:is(a, span)":{flexBasis:"fit-content"},"& > *:not(svg)":{paddingTop:"0.2rem"},"&[data-field-type=structure], &[data-field-type=function], &[data-field-type=function_secondary]":{fontFamily:"{fonts.bold}",fontSize:"{fontSizes.h4}"},"&[data-field-type=status]":{padding:"0.2rem 0.5rem",bgColor:"{colors.primary}",color:"{colors.white}",fontSize:"{fontSizes.sm}",order:"-1"}})])},[m(o)==="telephone"||m(o)==="mobilePhone"||m(o)==="phone"?(E(),U(Ae,{key:0},[Y("a",{href:`tel:${("_trim"in d?d._trim:m(PC))(m(s))}`},[Y("span",null,de(("_trim"in d?d._trim:m(PC))(m(s))),1)],8,l$e),H(m(ZF),{"aria-hidden":"true",class:L([m(tl)(),i?m(F)({bgColor:"{colors.third} !important"}):null])},null,8,["class"])],64)):m(o)==="mail"||e.config?.system_name==="mail"||e.config?.system_name==="email"?(E(),U(Ae,{key:1},[Y("a",{href:`mailto:${m(s)}`},[Y("span",null,de(m(s)),1)],8,u$e),H(m(GF),{"aria-hidden":"true",class:L([m(tl)(),i?m(F)({bgColor:"{colors.third} !important"}):null])},null,8,["class"])],64)):m(o)==="website"?(E(),U(Ae,{key:2},[H(g,{link:{href:m(s),text:d.$t("common.contact.website"),target:"_blank"}},null,8,["link"]),H(m(KF),{"aria-hidden":"true",class:L([m(tl)(),i?m(F)({bgColor:"{colors.third} !important"}):null])},null,8,["class"])],64)):e.config?.system_name==="address"||e.config?.system_name==="address_secondary"||e.config?.system_name==="address_tertiary"?(E(),U(Ae,{key:3},[Y("span",null,de(m(s))+" "+de(m(s)&&(e.result.postcode||e.result.cityTxt)?"-":null)+" "+de(e.result.postcode)+" "+de(e.result.cityTxt),1),H(m(t5),{"aria-hidden":"true",class:L([m(tl)(),i?m(F)({bgColor:"{colors.third} !important"}):null])},null,8,["class"])],64)):(E(),U(Ae,{key:4},[Y("span",null,de(m(s)),1),(E(),V(yn(c()),{"aria-hidden":"true",class:L([m(tl)(),i?m(F)({bgColor:"{colors.third} !important"}):null])},null,8,["class"]))],64))],10,s$e)):ae("",!0)],64))}}}),c$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.618 19"};function d$e(e,t){return E(),U("svg",c$e,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"M12.121 8.377a1.845 1.845 0 0 0 0-2.606 1.887 1.887 0 0 0-2.606 0l.663.663a.927.927 0 0 1 1.281 0 .906.906 0 0 1 0 1.281ZM0 18.242l8.764-8.764.758.758L.758 19z"},null,-1),Y("path",{fill:"#212121",d:"M18.614.773 17.859 0l-3.872 3.958a4.3 4.3 0 0 0-3.258-1.507A4.407 4.407 0 0 0 6.377 6.9a4.5 4.5 0 0 0 .235 1.435l.145.263 1.031-1.054-.018-.074a3.02 3.02 0 1 1 5.975-.57 2.8 2.8 0 0 1-.506 1.716c-.138.179-.294.373-.48.605-1.121 1.393-2.815 3.5-2.87 5.655a1.359 1.359 0 1 1-2.718 0v-.137H5.83v.137a2.7 2.7 0 1 0 5.4.019c.041-1.674 1.56-3.558 2.565-4.806.182-.228.354-.438.5-.632a4.16 4.16 0 0 0 .79-2.557 4.5 4.5 0 0 0-.48-2.021l4.013-4.1Z"},null,-1)])])}const f$e={render:d$e},h$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17.522 19"};function p$e(e,t){return E(),U("svg",h$e,[...t[0]||(t[0]=[Y("g",{fill:"#212121"},[Y("path",{d:"M17.204 5.538a1.35 1.35 0 0 0-1.013-.432c.123-3.359-.838-4.8-.879-4.863a.563.563 0 0 0-.785-.137.59.59 0 0 0-.149.8c.007.015.893 1.425.644 4.78a.58.58 0 0 0 .182.471.56.56 0 0 0 .477.144c.551-.095.678.011.678.011.119.133-.1.946-.182 1.258a7 7 0 0 0-.212.957 6 6 0 0 0 .019 1.3c.015.137.037.384.037.46a1.2 1.2 0 0 1-.395.068.57.57 0 0 0-.536.555c-.13 3.2-.946 5.255-2.5 6.292a4.27 4.27 0 0 1-3.514.433.54.54 0 0 0-.436.023.57.57 0 0 0-.294.331.58.58 0 0 0 .022.445.56.56 0 0 0 .324.3 5.5 5.5 0 0 0 1.727.27 4.95 4.95 0 0 0 2.792-.821c1.8-1.2 2.777-3.4 2.989-6.729a1.24 1.24 0 0 0 .689-.4 1.7 1.7 0 0 0 .226-1.348 4.7 4.7 0 0 1-.024-1.037 7 7 0 0 1 .179-.783c.22-.817.465-1.74-.071-2.348Z"}),Y("path",{d:"M8.138 15.815V15.8a3.5 3.5 0 0 1 .261-.6.68.68 0 0 0 .112-.624.64.64 0 0 0-.521-.418c-.082-.019-.238-.068-.387-.114a9 9 0 0 1-.577-.187c-.637-.217-1.3-.437-1.534-.966a8 8 0 0 1 .849.339c.29.126.566.247.786.316A2.4 2.4 0 0 0 8.3 13.8a.96.96 0 0 0 .741-.392 1.44 1.44 0 0 0 .141-1.122 1.36 1.36 0 0 0 1.437-1.05A2.4 2.4 0 0 0 10.1 9.6l-.011-.019a2.4 2.4 0 0 1-.141-.441C9.59 7.61 9.363 5.9 9.166 4.4a11.7 11.7 0 0 0-1.024-2.632c-.1-.205-.2-.407-.3-.616A.59.59 0 0 0 7.5.859a.55.55 0 0 0-.443.049.57.57 0 0 0-.272.354.58.58 0 0 0 .056.445q.128.251.268.5a12 12 0 0 1 1.048 2.334l.026.186c.227 1.594.439 3.1.823 4.675l.022.084a2.3 2.3 0 0 0 .272.677c.145.221.532.81.316 1.038a1.3 1.3 0 0 1-.7.122h-.059a.7.7 0 0 0-.48.183.67.67 0 0 0-.208.422 1.5 1.5 0 0 0 .078.517 1 1 0 0 1 .052.224.4.4 0 0 1 0 .167.9.9 0 0 1-.5-.034c-.037-.011-.112-.042-.182-.068s-.134-.049-.171-.065a9 9 0 0 1-.815-.32 6 6 0 0 0-1.176-.415.785.785 0 0 0-.856.437 1.44 1.44 0 0 0 .432 1.461 4.6 4.6 0 0 0 2.029 1.023l.41.129a2.4 2.4 0 0 0-.3 1.229 5 5 0 0 0 .071.475 1.26 1.26 0 0 1-.015.882.59.59 0 0 1-.406.224 7 7 0 0 1-2.729-.175 10.3 10.3 0 0 1-3.138-2.158.56.56 0 0 0-.428-.152.57.57 0 0 0-.4.213.59.59 0 0 0 .086.818c1.921 1.7 3.634 2.526 5.208 2.526a4 4 0 0 0 .5-.03c1.221.038 1.966-.289 2.211-.966a2.64 2.64 0 0 0 .015-1.415 1.04 1.04 0 0 1-.015-.647Z"})],-1),Y("path",{fill:"#212121",d:"M4.452 7.375a4.7 4.7 0 0 0 .879.089c.22 0 .51-.011 1-.034a.463.463 0 0 0 .436-.454A1.18 1.18 0 0 0 5.74 5.875a1.77 1.77 0 0 0-1.452.648.6.6 0 0 0-.179.588.41.41 0 0 0 .339.268Zm1.162-.864a.67.67 0 0 1 .447.279 6.5 6.5 0 0 1-1.109 0 1.05 1.05 0 0 1 .659-.274ZM11.001 7.383h.67c.208 0 .413.007.6.007s.383 0 .547-.007a.453.453 0 0 0 .439-.439 1.14 1.14 0 0 0-1.02-1.071 1.79 1.79 0 0 0-1.5.73.52.52 0 0 0-.119.558.41.41 0 0 0 .383.222m1.106-.867a.75.75 0 0 1 .417.22h-.975a.95.95 0 0 1 .558-.22M11.716 13.65c-.272.283-1.013.376-2.2.272l-.089-.007a.456.456 0 1 0-.074.908l.086.007c.294.026.611.045.923.045a2.79 2.79
180 0 0 2.022-.6.458.458 0 1 0-.663-.633Z"},null,-1)])])}const m$e={render:p$e},g$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.235 18.996"};function y$e(e,t){return E(),U("svg",g$e,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"M14.756 13.45c-.983-1.031-1.951-2.074-2.941-3.1-1.095-1.131-1.132-1.15-1.512-1.15H8.669V7.46c.748 0 1.452-.012 2.156 0 .369.008.622-.05.633-.527s-.2-.623-.625-.612c-.7.015-1.411 0-2.211 0 0-.466.007-.823 0-1.177a1.422 1.422 0 0 0-1.636-1.447c-1.061.008-1.593.485-1.6 1.47q-.011 3.013-.015 6.025c0 .45 0 .75.756.75 1.184 0 2.364-.019 3.544-.019.707 0 .588-.054 1.121.5.838.866 1.657 1.747 2.5 2.612.577.6 1.173.654 1.634.181a1.217 1.217 0 0 0-.168-1.766Z"},null,-1),Y("path",{fill:"#212121",d:"M10.735 14.348a4.9 4.9 0 0 1-4.951 3.466 4.96 4.96 0 0 1-4.482-3.92A5.05 5.05 0 0 1 3.889 8.33c.138-.071.573-.3.625-.331V6.82c-.1.022-.2.041-.29.071a6.234 6.234 0 0 0 .462 11.939 6.044 6.044 0 0 0 6.716-3.045 6 6 0 0 0 .391-1.02l-.9-.912c-.06.19-.108.343-.156.488ZM7.083 3.231a1.587 1.587 0 0 0 1.619-1.575 1.571 1.571 0 1 0-3.138-.041 1.59 1.59 0 0 0 1.519 1.612Z"},null,-1)])])}const v$e={render:y$e},_$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.842 16.805"};function b$e(e,t){return E(),U("svg",_$e,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"M18.637 8.19c-2.048-2.667-3.991-4.724-8.734-4.945a12 12 0 0 0-.64-.015h-.082L8.455 0l-.853.2.689 3.071a11.55 11.55 0 0 0-7.4 4.065c-.268.3-.454.541-.566.686l-.141.19-.179.259.179.259c.034.05.16.229.38.5.194.236.514.61.938 1.032l.223.225-.482-2.197q.224-.27.477-.545l.737 3.394.026.019c.283.236.562.45.853.651l.194.137-1.077-4.94c.257-.24.536-.472.823-.7l1.37 6.3.041.019c.249.13.517.251.793.366l.164.069-1.59-7.319q.387-.258.786-.476l1.8 8.119.056.015c.242.065.5.122.752.168l.138.023-.576-2.614a3.3 3.3 0 0 0 1.2.671l.447 2.05h.071l.115.011c.056 0 .112.008.168.008h.291l.257-.008-.423-1.898h.041a3.2 3.2 0 0 0 .99-.168l1.158 5.162.853-.2-.692-3.078c3.656-.579 5.4-2.507 7.144-4.777l.212-.278-.213-.281ZM6.962 5.913a3.4 3.4 0 0 0-.812 1.166l-.491-2.222a10 10 0 0 1 .994-.377l.313 1.429Zm1.735-.838a3.2 3.2 0 0 0-.957.3l-.238-1.1a8 8 0 0 1 .99-.122l.208.926Zm3.8 3.341a3.35 3.35 0 0 0-2.9-3.349l-.208-.937c.164 0 .328.008.473.015a4.393 4.393 0 0 1 1.37 8.2l-.246-1.09a3.39 3.39 0 0 0 1.512-2.835Zm1.914.05a5.3 5.3 0 0 0-1.6-3.814 9.9 9.9 0 0 1 4.929 3.814 9.97 9.97 0 0 1-4.951 3.836 5.29 5.29 0 0 0 1.621-3.837Z"},null,-1)])])}const x$e={render:b$e},w$e={key:0,"data-container-access":""},S$e=["title"],C$e=["title"],AX=Q({__name:"FieldAccessibility",props:{config:{},result:{default:()=>[]},type:{},notSr:{type:Boolean,default:!1}},setup(e){const t=r=>{switch(r?.replace("handicap-","")){case"hi":return f$e;case"ii":return m$e;case"mi":return v$e;case"vi":return x$e;default:return null}},n=rn({flexDir:"row-reverse",justifyContent:"start",gap:"1rem"});return(r,i)=>e.result?.length>0?(E(),U(Ae,{key:0},[e.result.length>1?(E(),U("ul",w$e,[(E(!0),U(Ae,null,ft(e.result,a=>(E(),U("li",{title:e.notSr?"":a.title,class:L(m(n))},[Y("span",{class:L(m(fn)({srOnly:!e.notSr}))},de(a.title),3),(E(),V(yn(t(a.slug)),{"aria-hidden":"true",class:L(m(vn)())},null,8,["class"]))],10,S$e))),256))])):(E(),U("p",{key:1,"data-container-access":"",class:L(m(n)),title:e.notSr?"":e.result[0].title},[Y("span",{class:L(m(fn)({srOnly:!e.notSr}))},de(e.result[0].title),3),(E(),V(yn(t(e.result[0].slug)),{"aria-hidden":"true",class:L(m(vn)())},null,8,["class"]))],10,C$e))],64)):ae("",!0)}}),T$e=["title"],k$e=["title"],E$e=Q({__name:"FieldLabels",props:{config:{},result:{default:()=>[]},type:{},notSr:{type:Boolean,default:!1}},setup(e){const t=[rn({flexDir:"row-reverse",justifyContent:"start",gap:"1rem"}),F({"& img":{maxHeight:"4rem",width:"auto"}})];return(n,r)=>{const i=Qo;return e.result?.length>0?(E(),U(Ae,{key:0},[e.result.length>1?(E(),U("ul",{key:0,"data-container-labels":"",class:L(m(rn)({gap:"1rem"}))},[(E(!0),U(Ae,null,ft(e.result,a=>(E(),U("li",{title:e.notSr?"":a.title,class:L(t)},[Y("span",{class:L(m(fn)({srOnly:!e.notSr}))},de(a.title),3),a.imageList?.length>0?(E(),V(i,{key:0,image:a.imageList?.[0],"no-figcaption":!0},null,8,["image"])):ae("",!0)],8,T$e))),256))],2)):(E(),U("p",{key:1,"data-container-labels":"",class:L(t),title:e.notSr?"":e.result[0].title},[Y("span",{class:L(m(fn)({srOnly:!e.notSr}))},de(e.result[0].title),3),e.result[0].imageList?.length>0?(E(),V(i,{key:0,image:e.result[0].imageList?.[0],"no-figcaption":!0},null,8,["image"])):ae("",!0)],8,k$e))],64)):ae("",!0)}}}),M$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"};function A$e(e,t){return E(),U("svg",M$e,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M10.635 1h-6.24c-.287 0-.52.25-.52.56l.003 10.043c.043.434.527.657.85.367L7.515 9.47l2.787 2.501c.339.304.853.045.853-.43V1.56c0-.31-.233-.56-.52-.56"},null,-1)])])}const P$e={render:A$e};function D$e(){return{filtered:n=>n?.filter(r=>!r.feBlacklist),computedFiltered:(n,r,i,a)=>n.filter(o=>!o.feBlacklist)}}const I$e={key:1},PX=Q({__name:"FieldCategory",props:{config:{},result:{default:()=>[]},type:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=G(t.backendLayout),i=e,a=Is(i?.config?.system_name),o=r.value==="detail",s=W(()=>!!i.config),l=G(!0),{filtered:u,computedFiltered:c}=D$e(),d=W(()=>l.value?u(s.value?i.result?.[a]:i.result?.categories):c(i.result?.categories||i.result?.[a],s.value,i.result?.type,a)),f=F({display:"inline-flex",order:"-1",gap:"0.5rem",flexWrap:"wrap"}),h=F({fontSize:{base:"1.2rem",sm:"1.3rem",_print:"10pt"},padding:{base:"0.8rem 1rem",sm:"1rem 1.5rem"},fontFamily:"{fonts.black}
18",textTransform:"uppercase",bgColor:{base:"{colors.secondary}",_print:"{colors.lightGray}"},display:"inline-block",lineHeight:"1",order:"-1",color:n.value?.theme==="Theme1"?"{colors.black}":"{colors.white}",_print:{color:"{colors.black}"}}),p=[o&&(i.config?.frontend_picto||i.config?.system_name==="event_type")?F({display:"flex",flexDir:"row-reverse",gap:"1rem",lineHeight:"1.6"}):F({fontSize:{base:"1.4rem",sm:"1.6rem",_print:"10pt"},textTransform:"uppercase"})];return(g,v)=>{const b=P1,x=AX,_=E$e,w=P$e;return m(a)==="cityList"?(E(),V(b,{key:0,"data-cat":"",result:m(d)?.[0]?.title,config:e.config},null,8,["result","config"])):(m(a)==="accessibility"||e.type==="accessibility")&&m(d)?.length>0?(E(),V(x,{key:1,result:m(d),config:e.config},null,8,["result","config"])):m(a)==="labels"&&m(d)?.length>0?(E(),V(_,{key:2,result:m(d),config:e.config},null,8,["result","config"])):m(d)?.length>0?(E(),U(Ae,{key:3},[m(d).length>0&&m(a)==="region"?(E(),U("div",{key:0,class:L(m(rn)({gap:"1.2rem",alignItems:"start"}))},[H(m(t5),{"aria-hidden":"true",class:L([m(tl)(),m(F)({bgColor:"{colors.third} !important"})])},null,8,["class"]),m(d).length>0&&!e.result.regionAll?(E(),U("ul",{key:0,"data-list-category":"",class:L(m(a))},[(E(!0),U(Ae,null,ft(m(d),(C,T)=>(E(),U("li",{"data-category":"",class:L(m(F)({display:"inline"}))},de(C.title)+de(m(s)&&T+1!==m(d).length?", ":null),3))),256))],2)):(E(),U("p",I$e,de(g.$t("listItem.allRegions")),1))],2)):m(d).length>0&&m(a)!=="region"?(E(),U("ul",{key:1,"data-list-category":"",class:L([m(a),m(f)])},[(E(!0),U(Ae,null,ft(m(d),(C,T)=>(E(),U("li",{"data-category":"",class:L(m(s)?p:m(h))},de(C.title)+de(m(s)&&T+1!==m(d).length?", ":null),3))),256)),o&&m(a)==="eventType"?(E(),V(w,{key:0,"aria-hidden":"true",class:L([m(tl)(),m(F)({bgColor:"{colors.third} !important"})])},null,8,["class"])):ae("",!0)],2)):e.config?.frontend_picto?(E(),V(b,{key:2,"data-category":"",result:m(d)[0]?.title,config:e.config},null,8,["result","config"])):(E(),U("p",{key:3,"data-category":"",class:L([m(a),m(s)&&m(a)!=="specificCategories"?p:m(h)])},[st(de(m(d)[0].title)+" ",1),o&&m(a)==="eventType"?(E(),V(w,{key:0,"aria-hidden":"true",class:L([m(tl)(),m(F)({bgColor:"{colors.third} !important"})])},null,8,["class"])):ae("",!0)],2))],64)):ae("",!0)}}});function DX(){return yi}const ro=(e,t)=>{const{locale:n}=dr(),r={FULL_DATETIME:"DD/MM/YYYY HH:mm",FULL_DATE:"DD/MM/YYYY",WEEK_DAY:"dddd",DAY_MONTH:"DD/MM",DAY_MONTH_ABBR:"DD MMM",DAY_MONTH_FULL_TEXT:"DD MMMM",DAY_MONTH_YEAR_FULL_TEXT:"DD MMMM YYYY",DAY_ONLY:"DD",MONTH_ONLY:"MM",YEAR_ONLY:"YYYY",MONTH_YEAR_FULL_TEXT:"MMMM YYYY",MONTH_ABBR_ONLY:"MMM",MONTH_FULL_TEXT_ONLY:"MMMM",TIME_ONLY:"HH:mm",HOUR_ONLY:"HH",MINUTE_ONLY:"mm"};function i(){yi.locale(n.value);let a=null;return Y8e(e)?a=yi.unix(e):mZ(e)&&(a=yi(e)),a!==null?a.format(r[t]):""}return i()};function $$e(e,t=2){function n(){const r=Number(e);if(Ec(r))return"Taille inconnue";const i=1024,a=["o","Ko","Mo","Go","To","Po","Eo"];let o=0;for(;e>i&&++o;)e=e/i;return e?.toFixed(t)+" "+a[o]}return n()}const L$e={key:0},R$e={key:0},IX=Q({__name:"FieldFileMetadata",props:{metadata:{},links:{},title:{},itemConfig:{},showPrintButton:{type:Boolean,default:!0}},setup(e){const t=e,n=DX(),{t:r}=dr(),{$emit:i}=vt(),{siteBuilderInfos:a}=Yt(),o=t.metadata?.dateDisplayed||t.metadata?.date_displayed||t.metadata?.creation_date;ro(o,"YEAR_ONLY");const s=W(()=>typeof t.metadata?.size<"u"&&t.metadata?.size!==null?$$e(t.metadata?.size):""),l=W(()=>{let d=`${t.title}`;return o&&(d+=` - ${eZ(n(o).format("MMMM YYYY"))}`),d+=` - ${cB(t.metadata?.extension)}`,t.metadata?.extension==="pdf"&&(d+=` - ${t.metadata?.nbPages} ${r("common.medias.documents.pages")}`),d+=` - ${s.value}`,d}),u=W(()=>t.metadata.file_print?.[0]?.properties?.originalUrl),c=W(()=>{const d=t.metadata?.extension?.toLowerCase();return["jpeg","jpg","png","webp"].includes(d||"")?t.links?.href||t.links?.[0]?.href:t.metadata?.originalUrl||t.metadata?.publicUrl||t.links?.[0]?.href||t.links?.href});return(d,f)=>{const h=Tn;return e.metadata||e.links?.[0]?.href||e.links?.href||e.metadata?.external_url||e.metadata?.extension=="pdf"||e.metadata?.listen_url?(E(),U("div",L$e,[e.metadata?(E(),U("p",R$e,[e.metadata?.numero?(E(),U("span",{key:0,class:L(m(F)({display:"block",fontFamily:"bold",fontSize:{base:"1.4rem",sm:"1.6rem",md:"1.8rem",lg:"2.1rem"},textTransform:"uppercase"}))},[e.metadata?.numero?(E(),U(Ae,{key:0},[st(" n° "+de(e.metadata?.numero),1)],64)):ae("",!0)],2)):ae("",!0),Y("span",{class:L(m(F)({display:"block",fontSize:"0.9em",marginBottom:"1rem !important"}))},[e.metadata?.extension?(E(),U(Ae,{key:0},[st(de(("_toUpper"in d?d._toUpper:m(cB))(e.metadata?.extension)),1)],64)):ae("",!0),e.metadata?.extension&&(e.metadata?.nbPages||m(s))?(E(),U(Ae,{key:1},[st(" - ")],64)):ae("",!0),e.metadata?.nbPages?(E(),U(Ae,{key:2},[st(de(e.metadata?.nbPages)+" "+de(d.$t("common.medias.documents.pages")),1)],64)):ae("",!0),e.metadata?.nbPages&&m(s)?(E(),U(Ae,{key:3},[st(" - ")],64)):ae("",!0),m(s)?(E(),U(Ae,{key:4},[st(de(m(s)),1)],64)):ae("",!0)],2)])):ae("",!0),m(c)||e.metadata?.external_url||e.metadata?.extension=="pdf"||e.metadata?.listen_url||m(u)?(E(),U("div",{key:1,"data-kiosque-links":"",class:L(m(js)({rowGap:{base:"1rem",md:"2.5rem"},columnGap:{base:"1.5rem",md:"2.5rem"}}))},[m(c)?(E(),V(h,{key:0,variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},link:{href:m(c),target:"_blank",text:d.$t("common.medias.documents.download")},picto:"telecharger",title:`${d.$t("common.medias.documents.download")} ${m(l)}`},null,8,["link","title"])):ae("",!0),m(u)?(E(),V(h,{key:1,variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},link:{href:m(u),target:"_blank",text:d.$t("common.medias.documents.print")},picto:"telecharger",title:`${d.$t("common.medias.documents.print")} ${m(l)}`},null,8,["link","title"])):ae("",!0),e.metadata?.external_url?(E(),V(h,{key:2,variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},link:{href:e.metadata.external_url,target:"_blank",text:d.$t("common.medias.documents.read")},picto:"feuilleter",title:`${d.$t("common.medias.documents.readOnline")} ${m(l)}`},null,8,["link","title"])):ae("",!0),e.metadata.listen_url?(E(),V(h,{key:3,variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},link:{href:e.metadata.listen_url,target:"_blank",text:d.$t("common.medias.documents.listen")},picto:"ecouter",title:`${d.$t("common.medias.documents.listen")} ${m(l)}`},null,8,["link","title"])):ae("",!0)],2)):ae("",!0)])):ae("",!0)}}}),O$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 127 128"};function B$e(e,t){return E(),U("svg",O$e,[...t[0]||(t[0]=[Y("path",{stroke:"#007F79","stroke-dasharray":"4 8 12 16","stroke-width":"2",d:"M126.467 55.673q.424 3.28.512 6.653l-1 .026a65 65 0 0 1 0 3.296l1 .026c-.116 4.54-.7 8.96-1.707 13.218l-.973-.23a63 63 0 0 1-3.009 9.376l.925.379a64 64 0 0 1-2.849 6.034l-.881-.474a64 64 0 0 1-1.631 2.853l.855.519a64.2
1864.2 0 0 1-8.062 10.615l-.729-.684a63 63 0 0 1-7.279 6.634l.614.79a64 64 0 0 1-5.476 3.814l-.528-.849a63 63 0 0 1-2.835 1.66l.483.876a63 63 0 0 1-12.29 5.155l-.287-.958a62 62 0 0 1-9.625 2.061l.13.992a63 63 0 0 1-6.651.523l-.027-.999a64 64 0 0 1-3.295 0l-.026.999a63 63 0 0 1-13.211-1.746l.235-.972a61.6 61.6 0 0 1-9.352-3.073l-.386.923a63 63 0 0 1-6.009-2.905l.483-.876a63 63 0 0 1-2.835-1.66l-.528.849a63.8 63.8 0 0 1-10.523-8.18l.692-.721a63 63 0 0 1-6.55-7.356l-.796.605a64 64 0 0 1-3.755-5.517l.855-.52a63 63 0 0 1-1.631-2.852l-.88.474A64 64 0 0 1 2.58 82.119l.96-.28a63 63 0 0 1-2.017-9.64l-.991.128a65 65 0 0 1-.512-6.653l1-.026a65 65 0 0 1 0-3.296l-1-.026c.116-4.54.7-8.96 1.707-13.218l.973.23a63 63 0 0 1 3.01-9.376l-.926-.379a64 64 0 0 1 2.85-6.034l.88.474a63 63 0 0 1 1.631-2.853l-.855-.519a64.2 64.2 0 0 1 8.062-10.615l.73.684a63 63 0 0 1 7.278-6.634l-.614-.79a64 64 0 0 1 5.476-3.814l.527.849a62 62 0 0 1 2.836-1.66l-.483-.876a63 63 0 0 1 12.29-5.155l.287.958a62 62 0 0 1 9.625-2.061l-.13-.992a64 64 0 0 1 6.651-.523l.026 1a63 63 0 0 1 3.295 0l.027-1c4.538.118 8.958.716 13.211 1.746l-.235.972a61.7 61.7 0 0 1 9.352 3.073l.386-.923a63 63 0 0 1 6.008 2.905l-.482.876q1.44.794 2.835 1.66l.528-.85a63.8 63.8 0 0 1 10.524 8.181l-.693.721a63.3 63.3 0 0 1 6.55 7.356l.796-.605a64 64 0 0 1 3.755 5.517l-.855.52a64 64 0 0 1 1.631 2.852l.881-.474a64 64 0 0 1 5.053 12.332l-.959.28a63 63 0 0 1 2.016 9.64z"},null,-1)])])}const F$e={render:B$e},z$e={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 20"};function N$e(e,t){return E(),U("svg",z$e,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"m11.39 10.01-4.57 4.62L8.2 16l5.94-6-5.98-6-1.38 1.38z"},null,-1)])])}const V6={render:N$e},V$e={key:0},j$e={key:0,"data-date-part":""},U$e={"data-nb":""},H$e={"data-month":""},q$e={key:2,"data-date-part":""},W$e={key:0,"data-wording":""},G$e={"data-nb":""},Z$e={"data-month":""},$X=Q({__name:"FieldDateComplexe",props:{result:{},config:{default:{}},showTime:{type:Boolean,default:!1}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=e,{t:i}=dr(),a=Is(r?.config?.system_name),o=r.config?.type==="date_start_end",s=W(()=>{if(o&&(!r.result?.[c.value]||r.result?.[c.value]==="")&&(!r.result?.[d.value]||r.result?.[d.value]==="")){if(r.result?.cimNewsScheduleDates?.length>0)return r.result?.cimNewsScheduleDates?.[0]}else return r.result}),l=r?.config?.start_suffix,u=r?.config?.end_suffix,c=W(()=>a==="cimNewsScheduleDates"?"cimNewsStartDate":`${a}${l}`),d=W(()=>a==="cimNewsScheduleDates"?"cimNewsEndDate":`${a}${u}`),f=(p,g)=>{if(p&&g)return i("common.dates.au");if(g)return i("common.dates.jusquau")},h=W(()=>ro(s.value?.[c.value],"DAY_MONTH_YEAR_FULL_TEXT")===ro(s.value?.[d.value],"DAY_MONTH_YEAR_FULL_TEXT")?null:s.value?.[d.value]);return(p,g)=>{const v=F$e;return m(s)?.[m(c)]||m(h)?(E(),U("span",V$e,[me(p.$slots,"default"),m(s)?.[m(c)]?(E(),U("span",j$e,[Y("span",U$e,de(o?null:("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(s)?.[m(c)],"WEEK_DAY"))+" "+de(("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(s)?.[m(c)],"DAY_ONLY")),1),Y("span",H$e,de(` ${("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(s)?.[m(c)],o?"MONTH_ABBR_ONLY":"MONTH_FULL_TEXT_ONLY")}`),1),m(n)?.theme==="Theme1"&&o?(E(),V(v,{key:0,"aria-hidden":"true",class:L([m(vn)({size:{base:"9rem",sm:"10rem",md:"12.8rem"},stroke:"{colors.primary}"}),m(F)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"})])},null,8,["class"])):ae("",!0)])):ae("",!0),m(s)?.[m(c)]&&m(h)?(E(),U(Ae,{key:1},[o?(E(),V(m(V6),{key:0,"aria-hidden":"true",class:L([m(vn)({size:{base:"1.5rem",md:"2rem"},fill:{base:m(n)?.theme==="Theme1"?"{colors.white}":"{colors.black}",_print:"{colors.black}"}}),m(F)({display:"inline-block"})])},null,8,["class"])):(E(),U(Ae,{key:1},[st("Â ")],64))],64)):ae("",!0),m(h)?(E(),U("span",q$e,[o?ae("",!0):(E(),U("span",W$e,de(f(m(s)?.[m(c)],m(h))),1)),Y("span",G$e,de(o?null:` ${("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(h),"WEEK_DAY")}`)+" "+de(("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(h),"DAY_ONLY"))+"Â ",1),Y("span",Z$e,de(` ${("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(h),o?"MONTH_ABBR_ONLY":"MONTH_FULL_TEXT_ONLY")}`),1),m(n)?.theme==="Theme1"&&o?(E(),V(v,{key:1,"aria-hidden":"true",class:L([m(vn)({size:{base:"9rem",sm:"10rem",md:"12.8rem"},stroke:"{colors.primary}"}),m(F)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",filter:"brightness(50%)"})])},null,8,["class"])):ae("",!0)])):ae("",!0),e.showTime?(E(),U(Ae,{key:3},[st(", "+de(("useDisplayDate"in p?p.useDisplayDate:m(ro))(m(s)?.[m(c)],"TIME_ONLY")),1)],64)):ae("",!0)])):ae("",!0)}}}),K$e=["data-date"],Y$e={key:0,"data-date-inline":""},j6=Q({__name:"FieldDate",props:{result:{},config:{default:{}}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=G(t.backendLayout),i=e,a=r.value==="list",o=Is(i?.config?.system_name),s=W(()=>typeof i?.result?.[o]<"u"?typeof i?.result?.[o].date=="object"?i?.result?.[o].date:i?.result?.[o]:i?.result),l=W(()=>a?s.value?.filter(d=>u(d.cimNewsStartDate||d.cimNewsEndDate))?.slice(0,1):s),u=c=>Date.parse(c)>Date.now();return(c,d)=>{const f=$X;return m(s)?(E(),U("p",{key:0,"data-date":e.config?.type==="date_time"||e.config?.type==="date"?"inline":"complexe",class:L([e.config?.type==="date_time"||e.config?.type==="date"?m(uK)():null,m(F)({_print:{"& svg":{display:"none"},"& [data-date-container]":{transform:"none"}}})])},[(e.config?.type==="date_time"||e.config?.type==="date")&&m(s)?(E(),U("span",Y$e,[me(c.$slots,"default"),st(" "+de(e.config?.system_name==="answer_deadline"?c.$t("common.dates.limit"):null)+" ",1),e.result.type==="publication"?(E(),U(Ae,{key:0},[st(de(("useDisplayDate"in c?c.useDisplayDate:m(ro))(m(s).date||m(s),"MONTH_YEAR_FULL_TEXT")),1)],64)):(E(),U(Ae,{key:1},[st(de(("useDisplayDate"in c?c.useDisplayDate:m(ro))(m(s).date||m(s),"DAY_MONTH_YEAR_FULL_TEXT")),1)],64))])):m(s)?.length>1?(E(!0),U(Ae,{key:1},ft(m(l),h=>(E(),V(f,{result:h,config:e.config},null,8,["result","config"]))),256)):(E(),V(f,{key:2,"data-date-container":"",result:m(s),config:e.config,class:L(m(n)?.theme==="Theme1"?m(dK)():m(hK)())},null,8,["result","config","class"]))],10,K$e)):ae("",!0)}}}),X$e=Q({__name:"FieldRelation",props:{result:{},config:{}},setup(e){return(t,n)=>{const r=j6,i=P1;return e.config?.frontend_template==="session"?(E(),V(r,{key:0,result:e.result,config:e.config},null,8,["result","config"])):e.config?.system_name==="territoire"&&e.result?.[e.config?.system_name]?(E(),V(i,{key:1,result:e.result?.[e.config.system_name]?.map(a=>a.title)?.join(", "),config:e.config},null,8,["result","config"])):(E(),V(i,{key:2,result:e.result?.[e.config?.system_name]?.[0]?.title,config:e.config},null,8,["result","config"]))}}}),Tv=Q({__name:"CimButtonContainer",props:{align:{}},setup(e){return(t,n)=>(E(),U("div",{class:L(m(js)({justify:e.align}))},[me(t.$slots,"default")],2))}}),J$e=Q({__name:"FieldLink",props:{result:{},config:{}},setup(e){const t=e,{t:n}=dr(),r=t?.config?.system_name;t?.config?.sub_type;const i=W(()=>{if(typeof t?.result=="object")return t?.result?.[r];if(typeof t?.result=="string")return t?.result}),a=s=>s?.type==="elus"?s?.estLeMaire?n("common.contact.maire"):n("common.contact.elu"):s?.type==="tool"||s?.type==="publication"?n("common.consult"):n("common.knowMore"),o=W(()=>[{title:n("common.buttons.productTypes.criteres"),href:t.result?.critere,type:"critere"},{title:n("common.buttons.productTypes.synthese"),href:t.result?.synthese,type:"synthese"}]);return(s,l)=>{const u=Tn,c=Tv;return m(i)||m(i)?.length>0?(E(),U(Ae,{key:0},[m(r)!=="critere"&&m(r)!=="synthese"?(E(),V(u,{key:0,"data-field-link":"",link:{text:a(e.result),href:m(i),target:"_blank"},variante:e.result?.type==="publication"?{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"}:{classes:"button",bgColor:"primary"},picto:e.result?.type==="publication"?"feuilleter":null,class:L([m(F)({fontSize:"{fontSizes.md} !important",lineHeight:"1.2 !important","& a":{boxShadow:"none !important",padding:e.result?.type==="publication"?"0 !important":"1rem 2.5rem !important",_hover:{color:"{colors.primary} !important"}}}),e.result?.type==="publication"?m(F)({"& a":{padding:"0 !important",color:"{colors.black} !important"}}):null])},null,8,["link","variante","picto","class"])):m(r)!=="critere"||m(r)!=="synthese"&&!e.result?.critere?(E(),V(c,{key:1,class:L(m(F)({gap:"1.5rem !important"}))},{default:N(()=>[(E(!0),U(Ae,null,ft(m(o),d=>(E(),V(u,{link:{text:d.title,href:d.href,target:"_blank"},variante:d.type==="synthese"?{classes:"button",bgColor:"third"}:{classes:"button",bgColor:"primary"},class:L([m(F)({fontSize:"{fontSizes.md} !important",lineHeight:"1.2","& a":{padding:"1rem 2.5rem !important",boxShadow:"none !important",_hover:{color:d.type==="synthese"?"{colors.third} !important":"{colors.primary} !important"}}})])},null,8,["link","variante","class"]))),256))]),_:1},8,["class"])):ae("",!0)],64)):ae("",!0)}}}),Q$e=Q({__name:"FieldBoolean",props:{result:{},config:{}},setup(e){const t=e,n=Is(t?.config?.system_name??t.config);t?.config?.sub_type;const r=W(()=>{if(typeof t?.result=="object")return t?.result?.[n];if(typeof t?.result=="string")return t?.result});return(i,a)=>{const o=P1;return m(r)?(E(),V(o,{key:0,result:e.config?.title,config:e.config},null,8,["result","config"])):ae("",!0)}}}),eLe=Q({__name:"DirRendererList",props:{result:{default:()=>[]},config:{}},setup(e){const t=n=>{let r;switch(n){case"select_category":r=PX;break;case"date":case"date_time":case"session":case"date_start_end":r=j6;break;case"relation":r=X$e;break;case"typolink":r=J$e;break;case"boolean":r=Q$e;break;default:r=P1;break}return r};return(n,r)=>(E(),V(yn(t(e.config?.type)),{config:e.config,result:e.result},null,8,["config","result"]))}});function qA(){const e=Yt(),t=Va(),n=G(e.initialData),r=G(e.backendLayout);let i=r.value==="list"||r.value==="interactive_map";const a=r.value==="detail",o=Object.values(t.nonDisplayedFieldsAlways),s=Object.values(t.nonDisplayedFieldsList),l=Object.values(t.nonDisplayedFieldsDetail),u=Object.values(t.commonHeadFields),c=Object.values(t.commonHeadFieldsAndPrincipal),d=Object.values(t.commonZoneContextuelle),f=Object.values(t.blocGeolocationFields);d.concat(f);const h=x=>n.value?.directories[x?.type+".json"]?.fields??n.value?.directories["events.json"].fields;return{itemConfig:h,filteredFieldsToShow:(x,_,w)=>{const C=h(x);let T=[];return x.type==="elus"&&r.value==="editorial"&&(i=!0),_?.length>0?_.forEach(k=>{C.filter(A=>{(k===A.system_name||k.system_name===A.system_name)&&T.push(A)})}):T=C,i?T=T.filter(k=>!s.includes(k.system_name)&&!o.includes(k.system_name)):a?T=T.filter(k=>!l.includes(k.system_name)&&!o.includes(k.system_name)):T=T.filter(k=>!o.includes(k.system_name)),w!==!0&&(i?T=T.filter(k=>k.auto_list_display):a&&(T=T.filter(k=>k.auto_display))),{fieldsToShow:_,directoryBaseConfiguration:C,configListItemFields:T,isList:i,isDetail:a,ignoreAutoDisplay:w}},filteredConfigPage:x=>{const _=h(x);let w=[];u.forEach(k=>{_.filter(A=>{k===A.system_name&&A.auto_display&&w.push(A)})}
18),c.forEach(k=>{_.filter(A=>{k===A.system_name&&A.auto_display&&w.push(A)})});let C=[];d.forEach(k=>{_.filter(A=>{k===A.system_name&&A.auto_display&&!u.includes(A.system_name)&&C.push(A)})});const T=_.filter(k=>!u.includes(k.system_name)&&!d.includes(k.system_name)&&!l?.includes(k.system_name)&&!o?.includes(k.system_name)&&k.auto_display);return{headFields:w,contextualFields:C,principalFields:T}},getFieldType:(x,_)=>{if(_&&!f.includes(x.system_name))switch(x?.frontend_template||x?.type){case"session":return"FieldSessions";case"place":case"geoloc":return"FieldGeoloc";case"video":return"FieldDiaporamaVideos";case"image":return"FieldDiaporamaPictures";case"download":case"fal":case"folder":return"FieldDownload";case"link":case"other":return"FieldLinks";default:return"Description"}else if(!_)switch(x?.type){case"picture_show":case"picture_list":return;case"select_category":return"Category";case"date":case"date_time":case"session":case"date_start_end":return"Date";case"relation":return"Relation";case"typolink":return"Link";case"boolean":return"Boolean";default:return"Text"}},checkIfResults:(x,_)=>{const w=Is(_?.system_name);if(w==="description")return x?.[w];if(_?.type==="date_start_end"){const C=x?.[Is(`${w}${_?.start_suffix}`)],T=x?.[Is(`${w}${_?.end_suffix}`)];return C||T}else{if(_?.system_name==="cim_news_schedule_dates")return x?.[w]?.length>1;if(_?.type==="boolean")return x?.[w];if(typeof x?.[w]=="object")return x?.[w]?.length>0||x?.[w]!==0;if(typeof x?.[w]=="string")return x?.[w]!==""}}}}const tLe=Q({__name:"ListItemFields",props:{result:{},relation:{type:Boolean},isHeadPage:{type:Boolean,default:!1},fieldsToShow:{default:[]},ignoreAutoDisplay:{type:Boolean,default:!1}},setup(e){const t=e,{filteredFieldsToShow:n}=qA(),r=W(()=>t.isHeadPage?t.fieldsToShow:n(t.result,t.fieldsToShow,t.ignoreAutoDisplay).configListItemFields);return(i,a)=>{const o=eLe;return e.result?(E(!0),U(Ae,{key:0},ft(m(r),s=>(E(),V(o,{config:s,result:e.result},null,8,["config","result"]))),256)):ae("",!0)}}});function ur(e){return e==null||typeof e>"u"||typeof e=="object"&&e==null||e.constructor===Array&&e.length===0||typeof e=="string"&&e==""}const LX=Q({__name:"ListItemContent",props:{result:{},options:{default:{}},fieldsToShow:{default:()=>[]},popin:{type:Boolean},ignoreAutoDisplay:{type:Boolean,default:!1},isHeadPage:{type:Boolean,default:!1}},setup(e){const t=Yt(),n=G(t.initialData),r=G(t.backendLayout),i=G(t.siteBuilderInfos),a=W(()=>n.value?.decoration?.content?.decoration?.[0]),o=e,s=W(()=>o.result?.type==="kiosque"||o.result?.type==="bibliotheque_cp"),l=o.result?.type==="publication"||o.result?._type==="publication",u=r.value==="list",c=W(()=>n.value?.directories[o.result?.type+".json"]),d=["kiosque","elus","contact","type_produit","acteur","tool","publication","initiative","profil","bibliotheque_cp"],f=W(()=>d.includes(o.result?.type)||!ur(o.result?.links?.[0].target)?!1:o.popin),h=["kiosque","elus","contact","type_produit","acteur","tool","bibliotheque_cp"],p=W(()=>!(o?.options?.noLink||h.includes(o?.result?.type))),g=W(()=>{const v=o.result?.imageList?.[0],b=v?.properties?.dimensions?.width,x=v?.properties?.dimensions?.height;return b>x});return(v,b)=>{const x=MX,_=ZIe,w=PX,C=IX,T=tLe,k=Tn,A=Qo;return E(),U("div",{"data-list-item-content":"",class:L([m(F)({position:"relative",zIndex:"0",_hover:{"& [data-img]":{_before:{width:m(p)?m(s)||m(l)||e.options?.seemore?.show?null:"150%":null,opacity:m(p)?"0.8":null},"& > *":{scale:e.result?.links?.[0]?.href&&m(p)?1.1:null}}}}),m(UZ)({flexDirection:{base:"column-reverse",sm:"row-reverse"},gap:{base:"1.5rem",sm:"{spacing.gutter}"},justifyContent:{base:"center",sm:"start"},alignItems:{base:"start",sm:"center"},_print:{padding:"0 !important"}})])},[Y("div",{"data-txt":"",class:L([m(Vn)({alignItems:"start",gap:m(l)?"0rem":"1rem"}),m(F)({flex:"auto",flexBasis:"auto","& *":{marginBottom:"0"},"& p > a":{zIndex:"2",position:"relative"},_print:{padding:"0 !important",bgColor:"transparent !important",color:"{colors.black} !important","& [data-date], [data-field-type]":{display:"block",position:"relative",inset:"0"}}}),e.result?.type!=="kiosque"&&m(u)?m(Sa)({shadowColor:"{colors.black}"}):null,m(u)?m(F)({"& [data-container-access]":{order:"-1",display:"flex",gap:"1rem",position:"relative",zIndex:"3"},"& [data-date-inline] > span:not([data-date-container])":{display:"block"}}):null,e.result?.type==="publication"&&e.result?.author?[m(F)({alignItems:{base:"center",md:"start"},flexDir:"row !important",flexWrap:"wrap","& >
18 *:not([data-category], [data-date], .richtext_field)":{width:"100%"},"& [data-category]":{marginBottom:"1rem",marginRight:"1rem"},"& [data-list-item-title]":{marginBottom:"1rem"},"& [data-date]":{position:"relative",order:1,lineHeight:1.5,_before:{content:"'-'"}},"& [data-field-name=author]":{paddingRight:"0.5rem"}})]:null])},[e.result?.title||e.result?.metadata?.title||e.result?.metadata?.name?(E(),V(x,{key:0,title:e.result?.title||e.result?.metadata?.title||e.result?.metadata?.name,link:m(l)?{text:e.result?.title,href:e.result?.links?.[0]?.href,target:"_blank"}:e.result?.links?.[0],listItemLink:m(p),options:e.options,popin:m(f),class:L([m(F)({display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden","& a":{boxShadow:"none !important",color:"{colors.black}","& [data-external-icon]":{display:"inline-block",marginLeft:"1rem"},_hover:{color:"{colors.primary} !important"}},_print:{marginBottom:"1rem"}}),m(s)||m(l)?m(F)({maxWidth:"100%",wordBreak:"break-word"}):null])},null,8,["title","link","listItemLink","options","popin","class"])):ae("",!0),e.result?.type&&e.options?.showtype?(E(),V(_,{key:1,"data-type":"",type:e.result?.type,class:L(m(F)({order:"-1"}))},null,8,["type","class"])):ae("",!0),m(c)?.enable_categories!==!1&&e.options?.showcategories!==!1?(E(),V(w,{key:2,result:e.result},null,8,["result"])):ae("",!0),m(s)?(E(),V(C,{key:3,"data-metadata":"",metadata:e.result?.metadata,links:e.result?.links,title:e.result?.title},null,8,["metadata","links","title"])):(E(),V(T,{key:4,result:e.result,fieldsToShow:e.fieldsToShow,ignoreAutoDisplay:e.ignoreAutoDisplay,isHeadPage:e.isHeadPage},null,8,["result","fieldsToShow","ignoreAutoDisplay","isHeadPage"])),e.options?.seemore?.show?(E(),V(k,{key:5,"data-see-more":"",link:{text:e.options?.seemore?.text},variante:e.options?.seemore?.btnVariante,class:L(m(F)({transition:"{durations.fast} {easings.easeIn}",_print:{display:"none"}}))},null,8,["link","variante","class"])):ae("",!0),e.options.showbgtxt&&m(i)?.theme==="Theme1"?(E(),V(A,{key:6,image:m(a),"no-figcaption":!0,noDefaultImg:!0,class:L(m(F)({position:"absolute",top:"0",right:"0",height:"100%",objectFit:"cover",zIndex:"0",pointerEvents:"none",maxWidth:"initial",maskImage:"linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0) 50%)"}))},null,8,["image","class"])):ae("",!0)],2),e.options?.showimg!==!1?(E(),U("div",{key:0,"data-img":"",class:L([m(F)({aspectRatio:"240/240",zIndex:"-1",minWidth:"24rem",width:"24rem",alignSelf:{base:"center",sm:"start"},overflow:m(s)||m(l)?null:"hidden",position:"relative",_before:{content:"''",position:"absolute",borderRadius:"50%",bgColor:"{colors.third}",width:"0",top:"50%",left:"50%",transform:"translate(-50%, -50%)",transition:"all {durations.slow}{easings.easeIn}",opacity:"0",aspectRatio:"1/1",zIndex:"1"},"& *":{transition:"{durations.fast} {easings.easeIn}",aspectRatio:"inherit",objectFit:"cover",width:m(s)||m(l)?m(g)?"20rem":"15rem":"24rem"},_print:{display:"none"}}),(m(s)||m(l))&&m(u)?m(F)({display:"flex",justifyContent:"center",alignItems:"end",position:"relative",zIndex:"0",bgColor:"transparent",aspectRatio:"240/271","& [data-img-container]":{alignSelf:"center"},"& *":{aspectRatio:"initial",boxShadow:"{shadows.subtle}"}}):null])},[H(A,{image:e.isHeadPage?e.result?.pictureShow?.[0]||e.result?.pictureHome?.[0]:e.result?.imageList?.[0]||e.result?.finalResource,noFigcaption:!e.isHeadPage,noDescription:e.isHeadPage||e.options?.img?.noDescription},null,8,["image","noFigcaption","noDescription"])],2)):ae("",!0)],2)}}}),es=Q({__name:"ListItem",props:{result:{},options:{},fieldsToShow:{},popin:{type:Boolean},ignoreAutoDisplay:{type:Boolean,default:!1},isHeadPage:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const r=qIe,i=LX;return e.result?.type==="faq"?(E(),V(r,{key:0,result:e.result},null,8,["result"])):e.result?.title?(E(),U("article",{key:1,class:L([e.result?.type,m(F)({_print:{border:"{borders.sm} {colors.mediumGray}",padding:"1.5rem",width:"100%",marginBottom:"1rem"}})])},[H(i,{result:e.result,options:e.options,fieldsToShow:e.fieldsToShow,popin:e.popin,ignoreAutoDisplay:e.ignoreAutoDisplay,isHeadPage:e.isHeadPage},null,8,["result","options","fieldsToShow","popin","ignoreAutoDisplay","isHeadPage"])],2)):ae("",!0)}}}),RX=Q({__name:"FieldContact",props:{colPos:{},result:{},config:{},isLocated:{type:Boolean,default:!1},isBlocContact:{type:Boolean,default:!1}},setup(e){const t=e,n=W(()=>{let a=[];return t.result?.[0]?a=t.result:a.push(t.result),a}),r=Va(),i=t.isBlocContact?["function","mail","email"]:Object.values(r.blocGeolocationFields);return(a,o)=>{const s=es,l=Tn;return E(),U("div",{class:L([m(Vn)({alignItems:"initial"}),m(F)({width:{base:"100%",sm:e.isLocated?"1/2":"100%",md:e.colPos===0?e.isBlocContact?"100%":e.isLocated?"7/12":"100%":"100%"}
18,bgColor:{base:e.isBlocContact?null:"{colors.primary}",_print:"transparent"},padding:{_print:"0",base:e.isBlocContact?null:"2rem",sm:e.isBlocContact?null:"3.5rem 1.5rem",md:e.colPos===0&&!e.isBlocContact?"4.5rem 3.5rem":e.isBlocContact?null:"3.5rem 2.5rem"}})])},[(E(!0),U(Ae,null,ft(m(n),u=>(E(),U("div",{key:u,class:L(m(Vn)({alignItems:"initial"}))},[H(s,{result:u,options:{showimg:!!e.isBlocContact,showcategories:!1,showbgtxt:!!e.isBlocContact},fieldsToShow:m(i),ignoreAutoDisplay:!0,class:L([m(F)({color:{base:"{colors.white}",_print:"{colors.black}"},"& [data-list-item-title]":{fontSize:"{fontSizes.h4}",color:"{colors.white}"},"& [data-field-type]":{fontSize:"{fontSizes.md}",gap:"1rem","& > *:not(svg)":{paddingTop:"0.4rem",wordBreak:"break-word"}},"& [data-field-type] a":{"& [data-external-icon]":{marginLeft:"0.5rem","& *":{fill:"white"}},_hover:{"& [data-external-icon]":{"& *":{fill:"black"}}}}}),e.isBlocContact?m(F)({maxWidth:"60rem",width:"100%","& [data-list-item-content]":{bgColor:"{colors.third}",flexDir:e.colPos===0?"row-reverse":"column-reverse",padding:{base:"2.5rem",sm:e.colPos===0?"2.5rem 4rem":"2.5rem"},width:"100%",gap:{base:"1.5rem",sm:"2.5rem"},alignItems:"initial",position:"relative",_hover:{"& [data-img]::before":{content:"none"}},_print:{bgColor:"transparent"}},"& [data-txt] ":{gap:"0",position:"static","& [data-field-type=function] ":{fontFamily:"regular",fontSize:"{fontSizes.p}",marginBottom:"1rem"}},"& [data-img] ":{minWidth:{base:"7rem",sm:"8.5rem"},borderRadius:"50%",alignSelf:"start"},"& [data-img], [data-img] > * ":{width:{base:"7rem",sm:"8.5rem"},height:{base:"7rem",sm:"8.5rem"}},"& [data-img] > svg ":{padding:"2rem"},"& [data-txt] [data-img-container]":{position:"absolute",width:"100%",height:"100%",inset:"0",maskImage:`linear-gradient(-90deg, 19 rgba(0,0,0,0.2) 0%, 20 rgba(0,0,0,0.1) 30%, 21 rgba(0,0,0,0.05) 40%, 22 rgba(0,0,0,0) 50%)`,_print:{display:"none"}},"& .boutonsRecipe__fontSize a":{border:"{borders.sm}{colors.white}",color:"{colors.white}",bgColor:"transparent",padding:"1.5rem 2.5rem !important",_hover:{color:"{colors.third}",bgColor:"{colors.white}"}},_print:{bgColor:"{colors.lightGray}"}}):m(Sa)({shadowColor:"{colors.white}",textColor:"{colors.black}"})])},null,8,["result","options","fieldsToShow","class"])],2))),128)),e.isLocated?(E(),V(l,{key:0,link:{href:"https://www.google.com/maps?q="+e.result.address,text:a.$t("blocks.geoloc.goTo"),target:"_blank"},variante:{classes:"button",bgColor:"transparentWhite"},class:L(m(F)({marginBottom:"0"}))},null,8,["link","class"])):ae("",!0)],2)}}}),nLe=Q({__name:"T3CeMaskBlocContact",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},directories:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=RX,i=Mr;return E(),V(i,{header:e.header,"header-layout":e.headerLayout,showInSummary:e.show_in_summary,uid:e.uid},{content:N(()=>[H(r,{header:e.header,headerLayout:e.headerLayout,result:e.directories,colPos:e.colPos,isBlocContact:!0},null,8,["header","headerLayout","result","colPos"])]),_:1},8,["header","header-layout","showInSummary","uid"])}}}),rLe=Q({__name:"SliderButton",props:{side:{default:""},classes:{default:""},variante:{default:{classes:"pictoOnly",pictoColor:"third"}}},setup(e){return(t,n)=>{const r=Tn;return E(),V(r,{link:{text:e.side==="prev"?`${t.$t("common.medias.swiper.slide")} ${t.$t("common.prev")}`:`${t.$t("common.medias.swiper.slide")} ${t.$t("common.next")}`},variante:e.variante,type:"button",role:"button",title:e.side==="prev"?`${t.$t("common.medias.swiper.slide")} ${t.$t("common.prev")}`:`${t.$t("common.medias.swiper.slide")} ${t.$t("common.next")}`,"aria-label":e.side==="prev"?`${t.$t("common.medias.swiper.slide")} ${t.$t("common.prev")}`:`${t.$t("common.medias.swiper.slide")} ${t.$t("common.next")}`,picto:e.side,showSr:!0,class:L([`btn_slider_${e.side}`,m(F)({position:"absolute",top:"50%",left:e.side==="prev"?"0":null,right:e.side==="prev"?null:"0",transform:"translate(0, -50%)",zIndex:"5",_print:{display:"none"}})])}
22,null,8,["link","variante","title","aria-label","picto","class"])}}}),WA=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},iLe={},aLe={class:"swiper_pagination","aria-live":"polite"};function oLe(e,t){return E(),U("p",aLe)}const OX=WA(iLe,[["render",oLe]]),sLe=["aria-current","aria-label","title","onClick"],lLe=Q({__name:"SliderPagination",props:{swiper:{},nbSlides:{}},setup(e){const t=e,{t:n}=dr(),r=W(()=>t.swiper?.activeIndex||0),i=o=>r.value===o-1,a=o=>{const s=n("common.medias.swiper.goTo")+" ",l=n("common.medias.swiper.slide")+" ",u=n("common.active")+" ";return`${i(o)?"":s}${l}${i(o)?u:""}${o}`};return(o,s)=>(E(),U("ul",{"data-slider-pagination":"",class:L([m(rn)({gap:"0.8rem"}),m(F)({bgColor:"{colors.black}",position:"absolute",bottom:{base:"2rem",sm:"4rem",md:"8rem",lg:"10rem"},left:"0",padding:{base:"1rem 2rem",sm:"1.2rem 2rem"},zIndex:5,marginBottom:"0",_print:{display:"none !important"}})])},[(E(!0),U(Ae,null,ft(e.nbSlides,l=>(E(),U("li",null,[Y("button",{type:"button","aria-current":!!i(l),"aria-label":a(l),title:a(l),onClick:u=>e.swiper.slideTo(l-1),class:L([m(gp)({size:"1.2rem"}),m(F)({bgColor:i(l)?"{colors.white}":"transparent",border:"{borders.sm} {colors.black}",boxShadow:"0 0 0 0.2rem {colors.white}",transition:"{durations.fast} {easings.easeIn}",_hover:{bgColor:"{colors.white}/50"},_focusVisible:{boxShadow:"0 0 0 0.3rem {colors.white}"}})])},[Y("span",{class:L(m(fn)())},de(l),3)],10,sLe)]))),256))],2))}});function uLe(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function cLe(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function BX(e,t=0){return setTimeout(e,t)}function n5(){return Date.now()}function dLe(e){return window.getComputedStyle(e,null)}function fLe(e,t="x"){const n=dLe(e),r=n.transform||n.webkitTransform;if(!r||r==="none")return 0;const i=new DOMMatrixReadOnly(r);return t==="x"?i.m41:i.m42}function D3(e){return typeof e=="object"&&e!==null&&!!e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function hLe(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:!!e&&typeof e=="object"&&(e.nodeType===1||e.nodeType===11)}function Oo(e,...t){const n=Object(e);for(let r=0;r<t.length;r+=1){const i=t[r];if(i==null||hLe(i))continue;const a=i,o=Object.keys(Object(a));for(let s=0,l=o.length;s<l;s+=1){const u=o[s];if(u==="__proto__"||u==="constructor"||u==="prototype")continue;const c=Object.getOwnPropertyDescriptor(a,u);if(!c||!c.enumerable)continue;const d=a[u];D3(n[u])&&D3(d)?d.__swiper__?n[u]=d:Oo(n[u],d):!D3(n[u])&&D3(d)?(n[u]={},d.__swiper__?n[u]=d:Oo(n[u],d)):n[u]=d}}return n}function g0(e,t,n){e.style.setProperty(t,n)}function c0t(e){const t=e.querySelector(".swiper-slide-transform");if(t)return t;if(e.shadowRoot){const n=e.shadowRoot.querySelector(".swiper-slide-transform");if(n)return n}return e}function Zl(e,t=""){const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function pLe(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}return!1}function mLe(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=pLe(e,t))),n}function r5(e){try{console.warn(e)}catch{}}function x2(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:uLe(t)),n}function d0t(e){const t=e.getBoundingClientRect();return{top:t.top-(e.clientTop||0),left:t.left-(e.clientLeft||0)}}function gLe(e,t){const n=[];let r=e.previousElementSibling;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.previousElementSibling;return n}function yLe(e,t){const n=[];let r=e.nextElementSibling;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.nextElementSibling;return n}function Ad(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function w2(e){if(!(!e||!e.parentNode))return[...e.parentNode.children].indexOf(e)}function FX(e,t){const n=[];let r=e.parentElement;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.parentElement;return n}function f0t(e,t){t&&e.addEventListener("transitionend",function n(r){r.target===e&&(e.removeEventListener("transitionend",n),t.call(e,r))})}function iT(e,t,n){{const r=window.getComputedStyle(e,null);return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}}function Dn(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}
22function Om(e,t=""){const n=globalThis.trustedTypes;typeof n<"u"?e.innerHTML=n.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}const zX=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreload","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ui(e){if(typeof e!="object"||e===null)return!1;const t=e;return!!t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function cm(e,t){const n=e,r=t,i=Object.keys(r);for(let a=0,o=i.length;a<o;a+=1){const s=i[a];if(s==="__proto__"||s==="constructor"||s==="prototype")continue;const l=r[s],u=n[s];typeof u>"u"?n[s]=l:ui(l)&&ui(u)&&Object.keys(l).length>0?l.__swiper__?n[s]=l:cm(u,l):n[s]=l}return e}function NX(e={}){const t=e.navigation;return t?t===!0?!0:typeof t.nextEl>"u"&&typeof t.prevEl>"u":!1}function VX(e={}){const t=e.pagination;return t?t===!0?!0:typeof t.el>"u":!1}function jX(e={}){const t=e.scrollbar;return t?t===!0?!0:typeof t.el>"u":!1}function UX(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function vLe(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function _Le(e){let{nextEl:t,prevEl:n,scrollbarEl:r,paginationEl:i}=e;const{swiper:a,slides:o,passedParams:s,changedParams:l}=e,u=l.filter(K=>K!=="children"&&K!=="direction"&&K!=="wrapperClass"),{params:c,pagination:d,navigation:f,scrollbar:h,virtual:p,thumbs:g}=a,v=s,b=c;let x,_,w,C,T,k,A,P;const D=v.thumbs,$=b.thumbs;l.includes("thumbs")&&ui(D)&&D.swiper&&!D.swiper.destroyed&&ui($)&&(!$.swiper||$.swiper.destroyed)&&(x=!0);const O=v.controller,z=b.controller;l.includes("controller")&&ui(O)&&O.control&&ui(z)&&!z.control&&(_=!0);const j=v.pagination;l.includes("pagination")&&ui(j)&&(j.el||i)&&(b.pagination||b.pagination===!1)&&d&&!d.el&&(w=!0);const B=v.scrollbar;l.includes("scrollbar")&&ui(B)&&(B.el||r)&&(b.scrollbar||b.scrollbar===!1)&&h&&!h.el&&(C=!0);const R=v.navigation;l.includes("navigation")&&ui(R)&&(R.prevEl||n)&&(R.nextEl||t)&&(b.navigation||b.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(T=!0);const J=K=>{const Z=a[K];if(!Z)return;Z.destroy();const ne=b[K],se=ui(ne)?ne:void 0;K==="navigation"?(a.isElement&&(Z.prevEl?.remove(),Z.nextEl?.remove()),se&&(se.prevEl=void 0,se.nextEl=void 0),Z.prevEl=void 0,Z.nextEl=void 0):(a.isElement&&Z.el?.remove(),se&&(se.el=void 0),Z.el=void 0)};if(l.includes("loop")&&a.isElement&&(c.loop&&!s.loop?k=!0:!c.loop&&s.loop?A=!0:P=!0),u.forEach(K=>{const Z=b[K],ne=v[K];
22ui(Z)&&ui(ne)?(Object.assign(Z,ne),(K==="navigation"||K==="pagination"||K==="scrollbar")&&"enabled"in ne&&!ne.enabled&&J(K)):(ne===!0||ne===!1)&&(K==="navigation"||K==="pagination"||K==="scrollbar")?ne===!1&&J(K):b[K]=ne}),u.includes("controller")&&!_&&a.controller&&a.controller.control&&ui(z)&&z.control&&(a.controller.control=z.control),l.includes("children")&&o&&p&&c.virtual?.enabled?(p.slides=o,p.update(!0)):l.includes("virtual")&&p&&c.virtual?.enabled&&(o&&(p.slides=o),p.update(!0)),l.includes("children")&&o&&c.loop&&(P=!0),x&&g&&g.init()&&g.update(!0),_&&a.controller&&ui(z)&&(a.controller.control=z.control),w&&d){if(a.isElement&&(!i||typeof i=="string")){const Z=document.createElement("div");Z.classList.add("swiper-pagination"),Z.part.add("pagination"),a.el.appendChild(Z),i=Z}const K=b.pagination;i&&ui(K)&&(K.el=i),d.init(),d.render(),d.update()}if(C&&h){if(a.isElement&&(!r||typeof r=="string")){const Z=document.createElement("div");Z.classList.add("swiper-scrollbar"),Z.part.add("scrollbar"),a.el.appendChild(Z),r=Z}const K=b.scrollbar;r&&ui(K)&&(K.el=r),h.init(),h.updateSize(),h.setTranslate()}if(T&&f){if(a.isElement){if(!t||typeof t=="string"){const Z=document.createElement("div");Z.classList.add("swiper-button-next"),Om(Z,f.arrowSvg),Z.part.add("button-next"),a.el.appendChild(Z),t=Z}if(!n||typeof n=="string"){const Z=document.createElement("div");Z.classList.add("swiper-button-prev"),Om(Z,f.arrowSvg),Z.part.add("button-prev"),a.el.appendChild(Z),n=Z}}const K=b.navigation;t&&ui(K)&&(K.nextEl=t),n&&ui(K)&&(K.prevEl=n),f.init(),f.update()}l.includes("allowSlideNext")&&(a.allowSlideNext=v.allowSlideNext),l.includes("allowSlidePrev")&&(a.allowSlidePrev=v.allowSlidePrev),l.includes("direction")&&a.changeDirection(v.direction,!1),(k||P)&&a.loopDestroy(),(A||P)&&(a.params.watchOverflow&&a.updateSlides(),a.loopCreate()),a.update()}let Q7;function bLe(){return typeof window>"u"?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}}function HX(){return Q7||(Q7=bLe()),Q7}let e9;function xLe({userAgent:e}={}){if(typeof window>"u")return{ios:!1,android:!1};const t=HX(),n=navigator.platform,r=e||navigator.userAgent,i={ios:!1,android:!1},a=/(Android);?[\s/]+([\d.]+)?/.test(r),o=/(iPhone\sOS|iOS|iPod)/.test(r),s=/iPad/.test(r),l=n==="MacIntel"&&t.touch&&navigator.maxTouchPoints>1,u=s||l;return a&&!(n==="Win32")&&(i.os="android",i.android=!0),(u||o)&&(i.os="ios",i.ios=!0),i}function qX(e={}){return e9||(e9=xLe(e)),e9}let t9;function wLe(){if(typeof window>"u")return{isSafari:!1,isWebView:!1,need3dFix:!1};const e=qX(),t=navigator.userAgent,n=t.toLowerCase(),r=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t),a=r||i&&e.ios;return{isSafari:r,isWebView:i,need3dFix:a}}function WX(){return t9||(t9=wLe()),t9}const aT=(e,t)=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(r.shadowRoot){const a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);a&&!a.lazyPreloaderManaged&&a.remove()}})),i&&!i.lazyPreloaderManaged&&i.remove()}},n9=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},GX=e=>{if(!e||e.destroyed||!e.params||!e.params.lazyPreload)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){const o=i,s=[o-t];s.push(...Array.from({length:t}).map((l,u)=>o+r+u)),e.slides.forEach((l,u)=>{l.column!==void 0&&s.includes(l.column)&&n9(e,u)});return}const a=i+r-1;if(e.params.rewind||e.params.loop)for(let o=i-t;o<=a+t;o+=1){const s=(o%n+n)%n;(s<i||s>a)&&n9(e,s)}else for(let o=Math.max(i-t,0);o<=Math.min(a+t,n-1);o+=1)o!==i&&(o>a||o<i)&&n9(e,o)};function SLe(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=t==="window"?window.innerHeight:n.clientHeight,a=Object.keys(e).map(o=>
vendor: 21,443 bytes, line 22
22{if(typeof o=="string"&&o.indexOf("@")===0){const s=parseFloat(o.substr(1));return{value:i*s,point:o}}return{value:o,point:o}});a.sort((o,s)=>parseInt(String(o.value),10)-parseInt(String(s.value),10));for(let o=0;o<a.length;o+=1){const{point:s,value:l}=a[o];t==="window"?window.matchMedia(`(min-width: ${l}px)`).matches&&(r=s):l<=n.clientWidth&&(r=s)}return r||"max"}const YF=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);function CLe(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const o=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",s=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:document.querySelector(r.breakpointsBase),l=e.getBreakpoint(a,o,s);if(!l||e.currentBreakpoint===l)return;const u=a,d=(l in u?u[l]:void 0)||e.originalParams,f=YF(e,r),h=YF(e,d),p=e.params.grabCursor,g=d.grabCursor,v=r.enabled;f&&!h?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&h&&(i.classList.add(`${r.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!g?e.unsetGrabCursor():!p&&g&&e.setGrabCursor();const b=(k,A)=>k[A];["navigation","pagination","scrollbar"].forEach(k=>{const A=b(d,k);if(typeof A>"u")return;const P=b(r,k),D=typeof P=="object"&&P!==null&&P.enabled,$=typeof A=="object"&&A!==null&&A.enabled,O=e[k];D&&!$&&O?.disable?.(),!D&&$&&O?.enable?.()});const x=d.direction&&d.direction!==r.direction,_=r.loop&&(d.slidesPerView!==r.slidesPerView||x),w=r.loop;x&&n&&e.changeDirection(),Oo(e.params,d);const C=e.params.enabled,T=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!C?e.disable():!v&&C&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",d),n&&(_?(e.loopDestroy(),e.updateSlides(),e.loopCreate(t)):!w&&T?(e.updateSlides(),e.loopCreate(t)):w&&!T&&e.loopDestroy()),e.emit("breakpoint",d)}var TLe={setBreakpoint:CLe,getBreakpoint:SLe};function kLe(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,a=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>a}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var ELe={checkOverflow:kLe};function MLe(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function ALe(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=MLe(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function PLe(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var DLe={addClasses:ALe,removeClasses:PLe};const GA={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreload:!0,lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var ILe={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(a=>{r.eventsListeners[a]||(r.eventsListeners[a]=[]),r.eventsListeners[a][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=function(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)};return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,a)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(a,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0]))n=e[0],r=e.slice(1,e.length),i=t;else{const o=e[0];n=o.events,r=o.data??[],i=o.context||t}return r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(o=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(i,[o,...r])}),t.eventsListeners&&t.eventsListeners[o]&&t.eventsListeners[o].forEach(s=>{s.apply(i,r)})}),t}};function $Le(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function LLe(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}function RLe(e){const t=this;t.destroyed||(aT(t,e.target),!(e.type==="error"||t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update())}function OLe(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=o&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){const l=o?e.virtual.slides.length:e.slides.length;e.slideTo(l-1,0,!1,!0)}else e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){const l=e.autoplay;clearTimeout(l.resizeTimeout),l.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function BLe(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const a=e.maxTranslate()-e.minTranslate();a===0?i=0:i=(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function FLe(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let r=e.originalEvent??e;if(r.type==="touchend"||r.type==="touchcancel"){const C=[...r.changedTouches].find(T=>T.identifier===n.touchId);if(!C||C.identifier!==n.touchId)return}else if(n.touchId!==null||r.pointerId!==n.pointerId)return;if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null,n.startEventPath=void 0,n.lastMoveEvent=void 0;const{params:a,touches:o,rtlTranslate:s,slidesGrid:l,enabled:u}=t;if(!u||!a.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=n5(),d=c-n.touchStartTime;if(t.allowClick){const w=r.path??(r.composedPath&&r.composedPath());t.updateClickedSlide(w&&w[0],w),t.emit("tap click",r),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=n5(),BX(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(a.followFinger?f=s?t.translate:-t.translate:f=-(n.currentTranslate??0),a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const h=f>=-t.maxTranslate()&&!t.params.loop;let p=0,g=t.slidesSizesGrid[0];for(let w=0;w<l.length;w+=w<a.slidesPerGroupSkip?1:a.slidesPerGroup){const C=w<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof l[w+C]<"u"?(h||f>=l[w]&&f<l[w+C])&&(p=w,g=l[w+C]-l[w]):(h||f>=l[w])&&(p=w,g=l[l.length-1]-l[l.length-2])}let v=null,b=null;a.rewind&&(t.isBeginning?b=a.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const x=(f-l[p])/g,_=p<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(x>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?v:p+_):t.slideTo(p)),t.swipeDirection==="prev"&&(x>1-a.longSwipesRatio?t.slideTo(p+_):b!==null&&x<0&&Math.abs(x)>a.longSwipesRatio?t.slideTo(b):t.slideTo(p))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(p+_):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:p+_),t.swipeDirection==="prev"&&t.slideTo(b!==null?b:p))}}function zLe(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData,{params:r,touches:i,rtlTranslate:a,enabled:o}=t;if(!o||!r.simulateTouch&&e.pointerType==="mouse")return;const s=e,l=s.originalEvent??s;if(l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let u;if(l.type==="touchmove"){const k=[...l.changedTouches].find(A=>A.identifier===n.touchId);if(!k||k.identifier!==n.touchId)return;u=k}else u=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l);return}if(n.lastMoveEvent===l)return;n.lastMoveEvent=l;for(const T of n.startEventPath??[]){if(T===t.el)break;const k=T.swiper;k&&k!==t&&!k.destroyed&&k.params.nested&&k.touchEventsData.isTouched&&k.onTouchMove(e)}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){i.startX=c,i.startY=d;return}if(!t.allowTouchMove){l.target.matches(n.focusableElements)||(t.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:c,startY:d,currentX:c,currentY:d}),n.touchStartTime=n5());return}if(r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(d<i.startY&&t.translate<=t.maxTranslate()||d>i.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(a&&(c>i.startX&&-t.translate<=t.maxTranslate()||c<i.startX&&-t.translate>=t.minTranslate()))return;if(!a&&(c<i.startX&&t.translate<=t.maxTranslate()||c>i.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&l.pointerType!=="mouse"&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,t.allowClick=!1;return}n.allowTouchCallbacks&&t.emit("touchMove",l),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=c,i.currentY=d;const f=i.currentX-i.startX,h=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(f**2+h**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let T;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:f*f+h*h>=25&&(T=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,n.isScrolling=t.isHorizontal()?T>r.touchAngle:90-T>r.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let p=t.isHorizontal()?f:h,g=t.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;r.oneWayMovement&&(p=Math.abs(p)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),i.diff=p,p*=r.touchRatio,a&&(p=-p,g=-g);const v=t.touchesDirection;t.swipeDirection=p>0?"prev":"next",t.touchesDirection=g>0?"prev":"next";const b=t.params.loop&&!r.cssMode,x=t.touchesDirection==="next"&&t.allowSlideNext||t.touchesDirection==="prev"&&t.allowSlidePrev;if(!n.isMoved){if(b&&x&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(T)}n.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&v!==t.touchesDirection&&b&&x&&Math.abs(p)>=1){Object.assign(i,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}t.emit("sliderMove",l),n.isMoved=!0;const _=n.startTranslate??0;n.currentTranslate=p+_;let w=!0,C=r.resistanceRatio;if(r.touchReleaseOnEdges&&(C=0),p>0?(b&&x&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-(r.slidesPerView!=="auto"&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(w=!1,r.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+_+p)**C))):p<0&&(b&&x&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+(r.slidesPerView!=="auto"&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(r.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(r.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(w=!1,r.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-_-p)**C))),w&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&(n.currentTranslate??0)<_&&(n.currentTranslate=_),!t.allowSlidePrev&&t.swipeDirection==="prev"&&(n.currentTranslate??0)>_&&(n.currentTranslate=_),!t.allowSlidePrev&&!t.allowSlideNext&&(n.currentTranslate=_),r.threshold>0)if(Math.abs(p)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function NLe(e,t){function n(r){if(!r||r===document||r===window)return null;let i=r;i.assignedSlot&&(i=i.assignedSlot);const a=i.closest(e);if(!a&&!i.getRootNode)return null;const o=i.getRootNode();return a||n(o.host)}return n(t)}function XF(e,t,n){const{params:r}=e,i=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return i&&(n<=a||n>=window.innerWidth-a)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function VLe(e){const t=this;if(t.destroyed)return;const n=e.originalEvent??e,r=t.touchEventsData;if(n.type==="pointerdown"){const x=n;if(r.pointerId!==null&&r.pointerId!==x.pointerId)return;r.pointerId=x.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(r.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){XF(t,n,n.targetTouches[0].pageX);return}const{params:i,touches:a,enabled:o}=t;if(!o||!i.simulateTouch&&n.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let s=n.target;if(i.touchEventsTarget==="wrapper"&&!mLe(s,t.wrapperEl))return;const l=n;if(typeof l.which=="number"&&l.which===3||typeof l.button=="number"&&l.button>0||r.isTouched&&r.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(s=c[0]);const d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(f?NLe(d,s):s.closest(d))){t.allowClick=!0;return}if(i.swipeHandler&&typeof i.swipeHandler=="string"&&!s.closest(i.swipeHandler))return;const h=n;a.currentX=h.pageX,a.currentY=h.pageY;const p=a.currentX,g=a.currentY;if(!XF(t,n,p))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=g,r.touchStartTime=n5(),r.startEventPath=c,t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let v=!0;s.matches(r.focusableElements)&&(v=!1,s.nodeName==="SELECT"&&(r.isTouched=!1)),document.activeElement&&document.activeElement.matches(r.focusableElements)&&document.activeElement!==s&&(h.pointerType==="mouse"||h.pointerType!=="mouse"&&!s.matches(r.focusableElements))&&document.activeElement.blur();const b=v&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||b)&&!s.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}const ZX=(e,t)=>{const{params:n,el:r,wrapperEl:i,device:a}=e,o=!!n.nested,s=t==="on"?"addEventListener":"removeEventListener",l=t;if(!r||typeof r=="string")return;document[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[s]("touchstart",e.onTouchStart,{passive:!1}),r[s]("pointerdown",e.onTouchStart,{passive:!1}),document[s]("touchmove",e.onTouchMove,{passive:!1,capture:o}),document[s]("pointermove",e.onTouchMove,{passive:!1,capture:o}),document[s]("touchend",e.onTouchEnd,{passive:!0}),document[s]("pointerup",e.onTouchEnd,{passive:!0}),document[s]("pointercancel",e.onTouchEnd,{passive:!0}),document[s]("touchcancel",e.onTouchEnd,{passive:!0}),document[s]("pointerout",e.onTouchEnd,{passive:!0}),document[s]("pointerleave",e.onTouchEnd,{passive:!0}),document[s]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[s]("click",e.onClick,!0),n.cssMode&&i[s]("scroll",e.onScroll);const u=c=>{e[l](c,OLe,!0)};n.updateOnWindowResize?u(a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate"):u("observerUpdate"),n.lazyPreload&&(r[s]("load",e.onLoad,{capture:!0}),r[s]("error",e.onLoad,{capture:!0}))};function jLe(){const e=this,{params:t}=e;e.onTouchStart=VLe.bind(e),e.onTouchMove=zLe.bind(e),e.onTouchEnd=FLe.bind(e),e.onDocumentTouchStart=LLe.bind(e),t.cssMode&&(e.onScroll=BLe.bind(e)),e.onClick=$Le.bind(e),e.onLoad=RLe.b
22ind(e),ZX(e,"on")}function ULe(){ZX(this,"off")}var HLe={attachEvents:jLe,detachEvents:ULe};function qLe(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function WLe(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var GLe={setGrabCursor:qLe,unsetGrabCursor:WLe};function ZLe(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual?.enabled)return;const a=()=>{Zl(i,`.${r.slideClass}, swiper-slide`).forEach((p,g)=>{p.setAttribute("data-swiper-slide-index",String(g))})},o=()=>{const h=Zl(i,`.${r.slideBlankClass}`);h.forEach(p=>{p.remove()}),h.length>0&&(n.recalcSlides(),n.updateSlides())},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&o();const l=r.slidesPerGroup*(s?r.grid.rows:1),u=n.slides.length%l!==0,c=s&&n.slides.length%r.grid.rows!==0,d=h=>{for(let p=0;p<h;p+=1){const g=n.isElement?x2("swiper-slide",[r.slideBlankClass]):x2("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(g)}};if(u){if(r.loopAddBlankSlides){const h=l-n.slides.length%l;d(h),n.recalcSlides(),n.updateSlides()}else r5("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(c){if(r.loopAddBlankSlides){const h=r.grid.rows-n.slides.length%r.grid.rows;d(h),n.recalcSlides(),n.updateSlides()}else r5("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();const f=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:f?void 0:"next",initial:t})}function KLe(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const a=i,o=typeof a.swiperSlideIndex>"u"?Number(i.getAttribute("data-swiper-slide-index")):a.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}function YLe(e={}){const{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:a,initial:o,byController:s,byMousewheel:l}=e;let u=a;const c=this;if(!c.params.loop||c.params.watchOverflow&&c.isLocked)return;c.emit("beforeLoopFix"),c.__loopFixInProgress__=!0;const{slides:d,allowSlidePrev:f,allowSlideNext:h,slidesEl:p,params:g}=c,{centeredSlides:v,slidesOffsetBefore:b,slidesOffsetAfter:x,initialSlide:_}=g,w=v||!!b||!!x;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&g.virtual?.enabled){if(n){const $e=c.virtual.slides.length,ke=c.virtual.slidesBefore??0;!w&&c.snapIndex===0?c.slideTo($e,0,!1,!0):w&&c.snapIndex<g.slidesPerView?c.slideTo($e+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(ke,0,!1,!0)}c.allowSlidePrev=f,c.allowSlideNext=h,c.__loopFixInProgress__=!1,c.emit("loopFix");return}let C=g.slidesPerView;C==="auto"?C=c.slidesPerViewDynamic():(C=Math.ceil(parseFloat(String(g.slidesPerView))),w&&C%2===0&&(C=C+1));const T=g.slidesPerGroupAuto?C:g.slidesPerGroup,k=$e=>(typeof $e=="function"?$e.call(c):$e)||0,A=c.slidesGrid.length>1?(c.slidesGrid[c.slidesGrid.length-1]-c.slidesGrid[0])/(c.slidesGrid.length-1):c.size,P=A>0?k(b)/A:0,D=A>0?k(x)/A:0;let $=w?Math.max(T,(v?Math.ceil(C/2):0)+Math.ceil(Math.max(P,D))):T;$%T!==0&&($+=T-$%T),$+=g.loopAdditionalSlides,c.loopedSlides=$;const O=c.grid&&g.grid&&g.grid.rows>1;d.length<C+$||c.params.effect==="cards"&&d.length<C+$*2?r5("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):O&&g.grid.fill==="row"&&r5("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const z=[],j=[],B=O?Math.ceil(d.length/g.grid.rows):d.length,R=o&&B-_<C&&!w;let J=R?_:c.activeIndex;typeof u>"u"?u=c.getSlideIndex(d.find($e=>$e.classList.contains(g.slideActiveClass))):J=u;const K=r==="next"||!r,Z=r==="prev"||!r;let ne=0,se=0;const Re=(O?d[u].column??0:u)+(w&&typeof i>"u"?(v?-C/2+.5:0)-P:0);if(Re<$){ne=Math.max($-Re,T);for(let $e=0;$e<$-Re;$e+=1){const ke=$e-Math.floor($e/B)*B;if(O){const Ve=B-ke-1;for(let nt=d.length-1;nt>=0;nt-=1)d[nt].column===Ve&&z.push(nt)}else z.push(B-ke-1)}}else if(Re+C>B-$){se=Math.max(Re-(B-$*2),T),R&&(se=Math.max(se,C-B+_+1));for(let $e=0;$e<se;$e+=1){const ke=$e-Math.floor($e/B)*B;O?d.forEach((Ve,nt)=>{Ve.column===ke&&j.push(nt)}):j.push(ke)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&d.length<C+$*2&&(j.includes(u)&&j.splice(j.indexOf(u),1),z.includes(u)&&z.splice(z.indexOf(u),1)),Z&&z.forEach($e=>{const ke=d[$e];ke.swiperLoopMoveDOM=!0,p.prepend(ke),ke.swiperLoopMoveDOM=!1}
vendor: 33,794 bytes, line 22
22),K&&j.forEach($e=>{const ke=d[$e];ke.swiperLoopMoveDOM=!0,p.append(ke),ke.swiperLoopMoveDOM=!1}),c.recalcSlides(),g.slidesPerView==="auto"?c.updateSlides():O&&(z.length>0&&Z||j.length>0&&K)&&c.slides.forEach(($e,ke)=>{c.grid.updateSlide(ke,$e,c.slides)}),g.watchSlidesProgress&&c.updateSlidesOffset(),n){if(z.length>0&&Z){if(typeof t>"u"){const $e=c.slidesGrid[J],Ve=c.slidesGrid[J+ne]-$e;l?c.setTranslate(c.translate-Ve):(c.slideTo(J+Math.ceil(ne),0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-Ve,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-Ve))}else if(i){const $e=O?z.length/g.grid.rows:z.length;c.slideTo(c.activeIndex+$e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(j.length>0&&K)if(typeof t>"u"){const $e=c.slidesGrid[J],Ve=c.slidesGrid[J-se]-$e;l?c.setTranslate(c.translate-Ve):(c.slideTo(J-se,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-Ve,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-Ve))}else{const $e=O?j.length/g.grid.rows:j.length;c.slideTo(c.activeIndex-$e,0,!1,!0)}}c.allowSlidePrev=f,c.allowSlideNext=h;const Ue=c.controller?.control;if(Ue&&!s){const $e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:u,byController:!0};Array.isArray(Ue)?Ue.forEach(ke=>{!ke.destroyed&&ke.params.loop&&ke.loopFix({...$e,slideTo:ke.params.slidesPerView===g.slidesPerView?n:!1})}):Ue instanceof c.constructor&&Ue.params.loop&&Ue.loopFix({...$e,slideTo:Ue.params.slidesPerView===g.slidesPerView?n:!1})}c.__loopFixInProgress__=!1,c.emit("loopFix")}var XLe={loopCreate:ZLe,loopFix:YLe,loopDestroy:KLe};function JLe(e,t){return function(r={}){const i=Object.keys(r)[0],a=r[i];if(typeof a!="object"||a===null){Oo(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in a)){Oo(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Oo(t,r)}}const QLe=({swiper:e,extendParams:t,on:n})=>{const r=[],i=(s,l={})=>{const u=window.MutationObserver||window.WebkitMutationObserver;if(!u)return;const c=new u(d=>{if(e.__preventObserver__)return;if(d.length===1){e.emit("observerUpdate",d[0]);return}const f=function(){e.emit("observerUpdate",d[0])};window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,0)});c.observe(s,{attributes:typeof l.attributes>"u"?!0:l.attributes,childList:e.isElement||(typeof l.childList>"u"?!0:l.childList),characterData:typeof l.characterData>"u"?!0:l.characterData}),r.push(c)},a=()=>{if(e.params.observer){if(e.params.observeParents){const s=FX(e.hostEl);for(let l=0;l<s.length;l+=1)i(s[l])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},o=()=>{r.forEach(s=>{s.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",a),n("destroy",o)},eRe=({swiper:e,on:t,emit:n})=>{let r=null,i=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},o=()=>{if(!e||e.destroyed||!e.initialized)return;let u=e.width,c=e.height;r=new ResizeObserver(d=>{i=window.requestAnimationFrame(()=>{let f=u,h=c;d.forEach(({contentBoxSize:p,contentRect:g,target:v})=>{if(v&&v!==e.el)return;const b=Array.isArray(p)?p[0]:p;f=g?g.width:b.inlineSize,h=g?g.height:b.blockSize}),(f!==u||h!==c)&&(u=f,c=h,a())})}),r.observe(e.el)},s=()=>{i&&window.cancelAnimationFrame(i),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},l=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof window.ResizeObserver<"u"){o();return}window.addEventListener("resize",a),window.addEventListener("orientationchange",l)}),t("destroy",()=>{s(),window.removeEventListener("resize",a),window.removeEventListener("orientationchange",l)})};function tRe(e,t=!0,n){const r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<a.slidesPerGroupSkip?1:s,u=r.virtual&&a.virtual?.enabled;if(a.loop){if(o&&!u&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function nRe(e,t=!0,n){const r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual?.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=s?r.translate:-r.translate;function f(x){return x<0?-Math.floor(Math.abs(x)):Math.floor(x)}const h=f(d),p=a.map(x=>f(x)),g=i.freeMode&&i.freeMode.enabled;let v=a[p.indexOf(h)-1];if(typeof v>"u"&&(i.cssMode||g)){let x;a.forEach((_,w)=>{h>=_&&(x=w)}),typeof x<"u"&&(v=g?a[x]:a[x>0?x-1:x])}let b=0;if(typeof v<"u"&&(b=o.indexOf(v),b<0&&(b=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),i.rewind&&r.isBeginning){const x=r.params.virtual?.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(x,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(b,e,t,n)}),!0;return r.slideTo(b,e,t,n)}function rRe(e,t=!0,n){const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function iRe(e=0,t,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const a=this;let o=e;o<0&&(o=0);const{params:s,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:d,rtlTranslate:f,wrapperEl:h,enabled:p}=a;if(!p&&!r&&!i||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=a.params.speed);const g=Math.min(a.params.slidesPerGroupSkip,o);let v=g+Math.floor((o-g)/a.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const b=-l[v];if(s.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const A=-Math.floor(b*100),P=Math.floor(u[k]*100),D=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?A>=P&&A<D-(D-P)/2?o=k:A>=P&&A<D&&(o=k+1):A>=P&&(o=k)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?b>a.translate&&b>a.minTranslate():b<a.translate&&b<a.minTranslate())||!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(d||0)!==o))return!1;o!==(c||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(b);let x;o>d?x="next":o<d?x="prev":x="reset";const _=a.virtual&&a.params.virtual?.enabled;if(!(_&&i)&&(f&&-b===a.translate||!f&&b===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!=="slide"&&a.setTranslate(b),x!=="reset"&&(a.transitionStart(n,x),a.transitionEnd(n,x)),!1;if(s.cssMode){const k=a.isHorizontal(),A=f?b:-b;return t===0?(_&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),_&&!a._cssModeVirtualInitialSet&&(a.params.initialSlide??0)>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[k?"scrollLeft":"scrollTop"]=A})):h[k?"scrollLeft":"scrollTop"]=A,_&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})):h.scrollTo({[k?"left":"top"]:A,behavior:"smooth"}),!0}const T=WX().isSafari;return _&&!i&&T&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,x),t===0?a.transitionEnd(n,x):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(A){!a||a.destroyed||A.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,x))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function aRe(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n,clickedSlide:r,clickedIndex:i}=e;if(r===void 0||i===void 0)return;const a=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.getSlideIndexWhenGrid(i),s;const l=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(r.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):o>(u?(e.slides.length-a)/2-(e.params.grid.rows-1):e.slides.length-a)?(e.loopFix(),o=e.getSlideIndex(Zl(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),BX(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}function oRe(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let a=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const u=i.snapGrid[s],c=i.snapGrid[s+1];l-u>(c-u)*r&&(a+=i.params.slidesPerGroup)}else{const u=i.snapGrid[s-1],c=i.snapGrid[s];l-u<=(c-u)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function sRe(e=0,t,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const a=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=e;if(i.params.loop)if(i.virtual&&i.params.virtual?.enabled)o=o+(i.virtual.slidesBefore??0);else{let s;if(a){const g=o*i.params.grid.rows;s=i.slides.find(b=>Number(b.getAttribute("data-swiper-slide-index"))===g)?.column??0}else s=i.getSlideIndexByData(o);const l=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u,slidesOffsetBefore:c,slidesOffsetAfter:d}=i.params,f=u||!!c||!!d;let h;i.params.slidesPerView==="auto"?h=i.slidesPerViewDynamic():(h=Math.ceil(parseFloat(String(i.params.slidesPerView))),f&&h%2===0&&(h=h+1));let p=l-s<h;if(f&&(p=p||s<Math.ceil(h/2)),r&&f&&i.params.slidesPerView!=="auto"&&!a&&(p=!1),p){const g=f?s<i.activeIndex?"prev":"next":s-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?s+1:s-l+1,slideRealIndex:g==="next"?i.realIndex:void 0})}if(a){const g=o*i.params.grid.rows;o=i.slides.find(b=>Number(b.getAttribute("data-swiper-slide-index"))===g)?.column??0}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}var lRe={slideTo:iRe,slideToLoop:sRe,slideNext:tRe,slidePrev:nRe,slideReset:rRe,slideToClosest:oRe,slideToClickedSlide:aRe};function uRe(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function KX({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:a}=e;let o=n;o||(i>a?o="next":i<a?o="prev":o="reset"),e.emit(`transition${r}`),t&&o==="reset"?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function cRe(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),KX({swiper:n,runCallbacks:e,direction:t,step:"End"}))}function dRe(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),KX({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}var fRe={setTransition:uRe,transitionStart:dRe,transitionEnd:cRe};function hRe(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=fLe(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function pRe(){return-this.snapGrid[this.snapGrid.length-1]}function mRe(){return-this.snapGrid[0]}function gRe(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n;let s=0,l=0;const u=0;n.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l,i.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-l:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${l}px, ${u}px)`);let c;const d=n.maxTranslate()-n.minTranslate();d===0?c=0:c=(e-n.minTranslate())/d,c!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function yRe(e=0,t=this.params.speed,n=!0,r=!0,i){const a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;const l=a.minTranslate(),u=a.maxTranslate();let c;if(r&&e>l?c=l:r&&e<u?c=u:c=e,a.updateProgress(c),o.cssMode){const d=a.isHorizontal();return t===0?s[d?"scrollLeft":"scrollTop"]=-c:s.scrollTo({[d?"left":"top"]:-c,behavior:"smooth"}),!0}return t===0?(a.setTransition(0),a.setTranslate(c),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(c),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(f){!a||a.destroyed||f.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}var vRe={getTranslate:hRe,setTranslate:gRe,minTranslate:mRe,maxTranslate:pRe,translateTo:yRe};function _Re(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let a=0;a<t.length;a+=1)typeof t[a+1]<"u"?r>=t[a]&&r<t[a+1]-(t[a+1]-t[a])/2?i=a:r>=t[a]&&r<t[a+1]&&(i=a+1):r>=t[a]&&(i=a);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function bRe(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t;let l=e,u;const c=h=>{const p=t.virtual.slides;let g=h-(t.virtual.slidesBefore??0);return g<0&&(g=p.length+g),g>=p.length&&(g-=p.length),g};if(typeof l>"u"&&(l=_Re(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const h=Math.min(i.slidesPerGroupSkip,l);u=h+Math.floor((l-h)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===a&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(l===a&&t.params.loop&&t.virtual&&t.params.virtual?.enabled){t.realIndex=c(l);return}const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual?.enabled)i.loop?f=c(l):f=l;else if(d){const h=t.slides.find(g=>g.column===l);let p=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(p)&&(p=Math.max(t.slides.indexOf(h),0)),f=Math.floor(p/i.grid.rows)}else if(t.slides[l]){const h=t.slides[l].getAttribute("data-swiper-slide-index");h?f=parseInt(h,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:s,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:l}),t.initialized&&GX(t),!t.__loopFixInProgress__&&(t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&((t.__lastEmittedRealIndex__??o)!==f&&t.emit("realIndexChange"),t.emit("slideChange")),t.__lastEmittedRealIndex__=f)}function xRe(e){const t=this,n=[],r=t.virtual&&t.params.virtual?.enabled;let i=0,a;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=s=>r?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const s=t.activeIndex+a;if(s>t.slides.length&&!r)break;const l=o(s);l&&n.push(l)}else{const s=o(t.activeIndex);s&&n.push(s)}for(a=0;a<n.length;a+=1)if(typeof n[a]<"u"){const s=n[a].offsetHeight;i=s>i?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function wRe(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(s=>{!i&&s.matches&&s.matches(`.${r.slideClass}, swiper-slide`)&&(i=s)});let a=!1,o;if(i){for(let s=0;s<n.slides.length;s+=1)if(n.slides[s]===i){a=!0,o=s;break}}if(i&&a)n.clickedSlide=i,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}function SRe(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:a,isEnd:o}=t,s=t.progressLoop;const l=a,u=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;a=c||i<=0,o=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],h=t.slidesGrid[d],p=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=f?s=(g-f)/p:s=(g+p-h)/p,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(l&&!a||u&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}function CRe(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Ad(r,"padding-left")||"0",10)-parseInt(Ad(r,"padding-right")||"0",10),n=n-parseInt(Ad(r,"padding-top")||"0",10)-parseInt(Ad(r,"padding-bottom")||"0",10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function TRe(){const e=this;function t($,O){return parseFloat($.getPropertyValue(e.getDirectionLabel(O))||"0")}const n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:o}=e,s=!!(e.virtual&&n.virtual?.enabled),l=s?e.virtual.slides.length:e.slides.length,u=Zl(i,`.${e.params.slideClass}, swiper-slide`),c=s?e.virtual.slides.length:u.length;let d=[];const f=[],h=[],p=$=>typeof $=="function"?$.call(e):$,g=p(n.slidesOffsetBefore),v=p(n.slidesOffsetAfter),b=e.snapGrid.length,x=e.slidesGrid.length,_=e.size-g-v;let w=n.spaceBetween,C=-g,T=0,k=0;if(typeof _>"u")return;typeof w=="string"&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*_:typeof w=="string"&&(w=parseFloat(w)),e.virtualSize=-w-g-v,u.forEach($=>{a?$.style.marginLeft="":$.style.marginRight="",$.style.marginBottom="",$.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(g0(r,"--swiper-centered-offset-before",""),g0(r,"--swiper-centered-offset-after","")),n.cssMode&&(g0(r,"--swiper-slides-offset-before",`${g}px`),g0(r,"--swiper-slides-offset-after",`${v}px`));const A=n.grid&&n.grid.rows>1&&e.grid;A?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let P=0;const D=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter($=>typeof n.breakpoints[$]?.slidesPerView<"u").length>0;for(let $=0;$<c;$+=1){P=0;const O=u[$];if(!(O&&(A&&e.grid.updateSlide($,O,u),Ad(O,"display")==="none"))){if(s&&n.slidesPerView==="auto")n.virtual?.slidesPerViewAutoSlideSize&&(P=n.virtual.slidesPerViewAutoSlideSize),P&&O&&(n.roundLengths&&(P=Math.floor(P)),O.style[e.getDirectionLabel("width")]=`${P}px`);else if(n.slidesPerView==="auto"){D&&(O.style[e.getDirectionLabel("width")]="");const z=getComputedStyle(O),j=O.style.transform,B=O.style.webkitTransform;if(j&&(O.style.transform="none"),B&&(O.style.webkitTransform="none"),n.roundLengths)P=e.isHorizontal()?iT(O,"width"):iT(O,"height");else{const R=t(z,"width"),J=t(z,"padding-left"),K=t(z,"padding-right"),Z=t(z,"margin-left"),ne=t(z,"margin-right"),se=z.getPropertyValue("box-sizing");if(se&&se==="border-box")P=R+Z+ne;else{const{clientWidth:ce,offsetWidth:Re}=O;P=R+J+K+Z+ne+(Re-ce)}}j&&(O.style.transform=j),B&&(O.style.webkitTransform=B),n.roundLengths&&(P=Math.floor(P))}else P=(_-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(P=Math.floor(P)),O&&(O.style[e.getDirectionLabel("width")]=`${P}px`);O&&(O.swiperSlideSize=P),h.push(P),n.centeredSlides?(C=C+P/2+T/2+w,T===0&&$!==0&&(C=C-_/2-w),$===0&&(C=C-_/2-w),Math.abs(C)<1/1e3&&(C=0),n.roundLengths&&(C=Math.floor(C)),k%n.slidesPerGroup===0&&d.push(C),f.push(C)):(n.roundLengths&&(C=Math.floor(C)),(k-Math.min(e.params.slidesPerGroupSkip,k))%e.params.slidesPerGroup===0&&d.push(C),f.push(C),C=C+P+w),e.virtualSize+=P+w,T=P,k+=1}}if(e.virtualSize=Math.max(e.virtualSize,_)+v,a&&o&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),A&&e.grid.updateWrapperSize(P,d),!n.centeredSlides){const $=n.slidesPerView!=="auto"&&n.slidesPerView%1!==0,O=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView==="auto"||$);let z=d.length;if(O){let B;if(n.slidesPerView==="auto"){B=1;let R=0;for(let J=h.length-1;J>=0&&(R+=h[J]+(J<h.length-1?w:0),R<=_);J-=1)B=h.length-J}else B=Math.floor(n.slidesPerView);z=Math.max(c-B,0)}const j=[];for(let B=0;B<d.length;B+=1){let R=d[B];n.roundLengths&&(R=Math.floor(R)),O?B<=z&&j.push(R):d[B]<=e.virtualSize-_&&j.push(R)}d=j,Math.floor(e.virtualSize-_)-Math.floor(d[d.length-1])>1&&(O||d.push(e.virtualSize-_))}if(s&&n.loop){const $=h[0]+w,O=e.virtual.slidesBefore??0,z=e.virtual.slidesAfter??0,j=O+z;if(n.slidesPerGroup>1){const B=Math.ceil(j/n.slidesPerGroup),R=$*n.slidesPerGroup;for(let J=0;J<B;J+=1)d.push(d[d.length-1]+R)}for(let B=0;B<j;B+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+$),f.push(f[f.length-1]+$),e.virtualSize+=$}if(d.length===0&&(d=[0]),w!==0){const $=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");u.filter((O,z)=>!n.cssMode||n.loop?!0:z!==u.length-1).forEach(O=>{O.style[$]=`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let $=0;h.forEach(z=>{$+=z+(w||0)}),$-=w;const O=$>_?$-_:0;d=d.map(z=>z<=0?-g:z>O?O+v:z)}if(n.centerInsufficientSlides){let $=0;if(h.forEach(O=>{$+=O+(w||0)}),$-=w,$<_){const O=(_-$)/2;d.forEach((z,j)=>{d[j]=z-O}),f.forEach((z,j)=>{f[j]=z+O})}}if(Object.assign(e,{slides:u,snapGrid:d,slidesGrid:f,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){g0(r,"--swiper-centered-offset-before",`${-d[0]}px`),g0(r,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const $=-e.snapGrid[0],O=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(z=>z+$),e.slidesGrid=e.slidesGrid.map(z=>z+O)}if(c!==l&&e.emit("slidesLengthChange"),d.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==x&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const $=`${n.containerModifierClass}backface-hidden`,O=e.el.classList.contains($);c<=n.maxBackfaceHiddenSlides?O||e.el.classList.add($):O&&e.el.classList.remove($)}}const r9=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function kRe(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=!!(e.virtual&&n.virtual?.enabled),o=e.grid&&n.grid&&n.grid.rows>1,s=d=>Zl(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(a)if(n.loop){const d=e.virtual.slides;let f=i-(e.virtual.slidesBefore??0);f<0&&(f=d.length+f),f>=d.length&&(f-=d.length),l=s(`[data-swiper-slide-index="${f}"]`)}else l=s(`[data-swiper-slide-index="${i}"]`);else o?(l=t.find(d=>d.column===i),c=t.find(d=>d.column===i+1),u=t.find(d=>d.column===i-1)):l=t[i];l&&(o||(c=yLe(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=gLe(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(d=>{r9(d,d===l,n.slideActiveClass),r9(d,d===c,n.slideNextClass),r9(d,d===u,n.slidePrevClass)}),e.emitSlidesClasses()}function ERe(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const JF=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function MRe(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let l=0;l<r.length;l+=1){const u=r[l];let c=u.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset??0);const d=u.swiperSlideSize??0,f=(o+(n.centeredSlides?t.minTranslate():0)-c)/(d+s),h=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-c)/(d+s),p=-(o-c),g=p+t.slidesSizesGrid[l],v=p>=0&&p<=t.size-t.slidesSizesGrid[l],b=p>=0&&p<t.size-1||g>1&&g<=t.size||p<=0&&g>=t.size;b&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(l)),JF(u,b,n.slideVisibleClass),JF(u,v,n.slideFullyVisibleClass),u.progress=i?-f:f,u.originalProgress=i?-h:h}}var ARe={updateSize:CRe,updateSlides:TRe,updateAutoHeight:xRe,updateSlidesOffset:ERe,updateSlidesProgress:MRe,updateProgress:SRe,updateSlidesClasses:kRe,updateActiveIndex:bRe,updateClickedSlide:wRe};const PRe={eventsEmitter:ILe,update:ARe,translate:vRe,transition:fRe,slide:lRe,loop:XLe,grabCursor:GLe,events:HLe,breakpoints:TLe,checkOverflow:ELe,classes:DLe},oT={};let kv=class Nu{static extendedDefaults;static defaults;constructor(...t){let n,r;if(t.length===1&&t[0]!==null&&typeof t[0]=="object"&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Oo({},r),n&&!r.el&&(r.el=n),r.el&&typeof r.el=="string"&&typeof document<"u"&&document.querySelectorAll(r.el).length>1){const s=[];return document.querySelectorAll(r.el).forEach(l=>{const u=Oo({},r,{el:l});s.push(new Nu(u))}),s}const i=this;i.__swiper__=!0,i.support=HX(),i.device=qX({userAgent:r.userAgent??void 0}),i.browser=WX(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(s=>{const l=s;typeof l=="function"&&i.modules.indexOf(l)<0&&i.modules.push(l)});const a={};i.modules.forEach(s=>{s({params:r,swiper:i,extendParams:JLe(r,a),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=Oo({},GA,a);if(i.params=Oo({},o,oT,r),i.originalParams=Oo({},i.params),i.passedParams=Oo({},r),i.params&&i.params.on){const s=i.params.on;Object.keys(s).forEach(l=>{const u=s[l];u&&i.on(l,u)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}isHorizontal(){return this.params.direction==="horizontal"}isVertical(){return this.params.direction==="vertical"}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=Zl(n,`.${r.slideClass}, swiper-slide`),a=w2(i[0]);return w2(t)-(a??0)}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>Number(n.getAttribute("data-swiper-slide-index"))===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const{slidesEl:t,params:n}=this;this.slides=Zl(t,`.${n.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(t,n){t=Math.min(Math.max(t,0),1);const r=this.minTranslate(),a=(this.maxTranslate()-r)*t+r;this.translateTo(a,typeof n>"u"?0:n),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const t=this.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(this.params.containerModifierClass)===0);this.emit("_containerClasses",t.join(" "))}getSlideClasses(t){return this.destroyed?"":t.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(this.params.slideClass)===0).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const t=[];this.slides.forEach(n=>{const r=this.getSlideClasses(n);t.push({slideEl:n,classNames:r}),this.emit("_slideClass",n,r)}),this.emit("_slideClasses",t)}slidesPerViewDynamic(t="current",n=!1){const{params:r,slides:i,slidesGrid:a,slidesSizesGrid:o,size:s,activeIndex:l}=this;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(!s)return u;if(r.centeredSlides){let c=i[l]?Math.ceil(i[l].swiperSlideSize??0):0,d=!1;for(let f=l+1;f<i.length;f+=1)i[f]&&!d&&(c+=Math.ceil(i[f].swiperSlideSize??0),u+=1,c>s&&(d=!0));for(let f=l-1;f>=0;f-=1)i[f]&&!d&&(c+=i[f].swiperSlideSize??0,u+=1,c>s&&(d=!0))}else if(t==="current")for(let c=l+1;c<i.length;c+=1)(n?a[c]+o[c]-a[l]<s:a[c]-a[l]<s)&&(u+=1);else for(let c=l-1;c>=0;c-=1)a[l]-a[c]<s&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),r.lazyPreload&&[...t.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&aT(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const o=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let a;if(r.freeMode?.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual?.enabled?t.virtual.slides.length:t.slides.length;a=t.slideTo(o-1,0,!1,!0)}else a=t.slideTo(t.activeIndex,0,!1,!0);a||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.rtlTranslate=t==="horizontal"&&r.rtl,r.slides.forEach(a=>{t==="vertical"?a.style.width="":a.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;if(typeof document>"u")return!1;const r=t??n.params.el;let i=null;if(typeof r=="string"?i=document.querySelector(r):r instanceof HTMLElement&&(i=r),!i)return!1;i.swiper=n;const a=i.parentNode;a&&a.host&&a.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=i&&i.shadowRoot?i.shadowRoot.querySelector(o()):Zl(i,o())[0];!l&&n.params.createElements&&(l=x2("div",n.params.wrapperClass),i.append(l),Zl(i,`.${n.params.slideClass}`).forEach(c=>{l.append(c)}));const u=n.isElement?i.parentNode.host:null;return Object.assign(n,{el:i,wrapperEl:l,slidesEl:n.isElement&&!u.slideSlots?u:l,hostEl:n.isElement?u:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||Ad(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||Ad(i,"direction")==="rtl"),wrongRTL:Ad(l,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;if(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(
22),n.params.loop&&n.virtual&&n.params.virtual?.enabled?n.slideTo((n.params.initialSlide??0)+(n.virtual.slidesBefore??0),0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents(),n.params.lazyPreload){const i=[...n.el.querySelectorAll('[loading="lazy"]')];n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(a=>{a.complete&&aT(n,a)})}return n.initialized=!0,GX(n),n.emit("init"),n.emit("afterInit"),n}destroy(t=!0,n=!0){const r=this,{params:i,el:a,wrapperEl:o,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),cLe(r)),r.destroyed=!0),null}static extendDefaults(t){Oo(oT,t)}static installModule(t){Nu.prototype.__modules__||(Nu.prototype.__modules__=[]);const n=Nu.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Nu.installModule(n)),Nu):(Nu.installModule(t),Nu)}};Object.defineProperty(kv,"extendedDefaults",{get(){return oT}});Object.defineProperty(kv,"defaults",{get(){return GA}});const QF=PRe,DRe=kv.prototype;Object.keys(QF).forEach(e=>{const t=QF[e];Object.keys(t).forEach(n=>{DRe[n]=t[n]})});kv.use([eRe,QLe]);function IRe(e,t,n,r,i){const a=[];if(!t)return a;const o=l=>{a.indexOf(l)<0&&a.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return zX.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t){const u=e[l],c=t[l];if(ui(u)&&ui(c)){const d=Object.keys(u),f=Object.keys(c);d.length!==f.length?o(l):(d.forEach(h=>{u[h]!==c[h]&&o(l)}),f.forEach(h=>{u[h]!==c[h]&&o(l)}))}else u!==c&&o(l)}}),a}function ez(e={},t=!0){const n={on:{}},r={},i={};cm(n,GA),n._emitClasses=!0,n.init=!1;const a={},o=zX.map(l=>l.replace(/_/,"")),s={...e};return Object.keys(s).forEach(l=>{const u=e[l];if(!(typeof u>"u"))if(o.indexOf(l)>=0)ui(u)?(n[l]={},i[l]={},cm(n[l],u),cm(i[l],u)):(n[l]=u,i[l]=u);else if(l.search(/on[A-Z]/)===0&&typeof u=="function"){const c=`${l[2].toLowerCase()}${l.substring(3)}`,d=u;t?r[c]=d:n.on[c]=d}else a[l]=u}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:a,events:r}}function $Re(e,t){const{el:n,nextEl:r,prevEl:i,paginationEl:a,scrollbarEl:o,swiper:s}=e;if(NX(t)&&r&&i){const l=s.params.navigation,u=s.originalParams.navigation;l.nextEl=r,u.nextEl=r,l.prevEl=i,u.prevEl=i}VX(t)&&a&&(s.params.pagination.el=a,s.originalParams.pagination.el=a),jX(t)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(n)}const LRe=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate?.())};function RRe(e={},t,n){const r=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},a=(o,s)=>{if(!Array.isArray(o))return;let l=s==="default"?"container-end":s;o.forEach(u=>{if(typeof u.type=="symbol"&&u.children){a(u.children,l);return}const d=u.type,f=u.componentOptions?.tag;d&&(d.name==="SwiperSlide"||d.name==="AsyncComponentWrapper")||f==="SwiperSlide"?r.push(u):i[l]&&i[l].push(u)})};return Object.keys(e).forEach(o=>{const s=e[o];if(typeof s!="function")return;const l=s();a(l,o)}),n.value=t.value,t.value=r,{slides:r,slots:i}}function ORe(e,t,n){if(!n)return null;const r=e.value;if(!r)return null;const i=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f-=t.length),f},a=r.isHorizontal()?{[r.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:s}=n,l=r.params.loop?-t.length:0,u=r.params.loop?t.length*2:t.length,c=[];for(let d=l;d<u;d+=1)if(d>=o&&d<=s&&c.length<t.length){const f=t[i(d)];f&&c.push(f)}return c.map(d=>{const f=d.props??{};if(f.style=f.style??{}
22,f.swiperRef=e,f.style=a,d.props=f,d.type)return Nt(d.type,{...f},d.children);if(d.componentOptions)return Nt(d.componentOptions.Ctor,{...f},d.componentOptions.children)})}const BRe=["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],FRe=Q({name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreload:{type:Boolean,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:Object,default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:BRe,setup(e,{slots:t,emit:n}){const{tag:r,wrapperTag:i}=e,a=G("swiper"),o=G(null),s=G(!1),l=G(!1),u=G(null),c=Bt(null),d=G(null),f={value:[]},h={value:[]},p=G(null),g=G(null),v=G(null),b=G(null),{params:x,passedParams:_}=ez(e,!1);d.value=_;const w=()=>{s.value=!0};x.onAny=(k,...A)=>{n(k,...A)},Object.assign(x.on,{_beforeBreakpoint:w,_containerClasses(k,A){a.value=A}});const C={...x};delete C.wrapperClass,c.value=new kv(C),av(()=>{!l.value&&c.value&&!c.value.destroyed&&(c.value.emitSlidesClasses(),l.value=!0);const{passedParams:k}=ez(e,!1),A=IRe(k,d.value,f.value,h.value,P=>P.props?P.props.key:void 0);d.value=k,(A.length||s.value)&&c.value&&!c.value.destroyed&&_Le({swiper:c.value,slides:f.value,passedParams:k,changedParams:A,nextEl:p.value,prevEl:g.value,scrollbarEl:b.value,paginationEl:v.value}),s.value=!1}),Si("swiper",c),Je(o,()=>{At(()=>{LRe(c.value)})}),Ot(()=>{if(!u.value||!c.value)return;const k=c.value;if(k.virtual&&k.params.virtual?.enabled){k.virtual.slides=f.value;const A={cache:!1,slides:f.value,renderExternal:P=>{o.value=P},renderExternalUpdate:!1};cm(k.params.virtual,A),k.originalParams.virtual&&cm(k.originalParams.virtual,A)}$Re({el:u.value,nextEl:p.value,prevEl:g.value,paginationEl:v.value,scrollbarEl:b.value,swiper:c.value},x),n("swiper",c.value)}),Wa(()=>{c.value&&!c.value.destroyed&&c.value.destroy(!0,!1)});function T(k){return x.virtual?ORe(c,k,o.value):(k.forEach((A,P)=>{const D=A.props??{};D.swiperRef=c,D.swiperSlideIndex=P,A.props=D}),k)}return()=>{const{slides:k,slots:A}=RRe(t,f,h);return Nt(r,{ref:u,class:UX(a.value)},[A["container-start"],Nt(i,{class:vLe(x.wrapperClass)},[A["wrapper-start"],T(k),A["wrapper-end"]]),NX(e)&&[Nt("div",{ref:g,class:"swiper-button-prev"}),Nt("div",{ref:p,class:"swiper-button-next"})],jX(e)&&Nt("div",{ref:b,class:"swiper-scrollbar"}),VX(e)&&Nt("div",{ref:v,class:"swiper-pagination"}),A["container-end"]])}}}),zRe=Q({name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:[Boolean,Number],default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,{slots:t}){let n=!1;const{swiperRef:r}=e,i=G(null),a=G("swiper-slide"),o=G(!1);
22function s(d,f,h){f===i.value&&(a.value=h)}Ot(()=>{!r||!r.value||(r.value.on("_slideClass",s),n=!0)}),jE(()=>{n||!r||!r.value||(r.value.on("_slideClass",s),n=!0)}),av(()=>{!i.value||!r||!r.value||(typeof e.swiperSlideIndex<"u"&&(i.value.swiperSlideIndex=e.swiperSlideIndex),r.value.destroyed&&a.value!=="swiper-slide"&&(a.value="swiper-slide"))}),Wa(()=>{!r||!r.value||r.value.off("_slideClass",s)});const l=W(()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0}));Si("swiperSlide",l);const u=()=>{o.value=!0},c=d=>{const f=d.el;f&&(f.lazyPreloaderManaged=!0)};return()=>Nt(e.tag,{class:UX(`${a.value}`),ref:i,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&r&&r.value&&r.value.params?.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?Nt("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[t.default&&t.default(l.value),e.lazy&&!o.value&&Nt("div",{class:"swiper-lazy-preloader",onVnodeMounted:c})]):[t.default&&t.default(l.value),e.lazy&&!o.value&&Nt("div",{class:"swiper-lazy-preloader",onVnodeMounted:c})])}});function YX(e,t,n,r){const i=n??{},a=t??{};return e.params.createElements&&Object.keys(r).forEach(o=>{if(!i[o]&&i.auto===!0){let s=Zl(e.el,`.${r[o]}`)[0];s||(s=x2("div",r[o]),s.className=r[o],e.el.append(s)),i[o]=s,a[o]=s}}),i}const tz='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',ZA=({swiper:e,extendParams:t,on:n,emit:r})=>{t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:tz};function i(){return e.params.navigation}function a(p){let g;return p&&typeof p=="string"&&e.isElement&&(g=e.el.querySelector(p)||e.hostEl.querySelector(p),g)?g:(p&&(typeof p=="string"&&(g=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&g&&g.length>1&&e.el.querySelectorAll(p).length===1?g=e.el.querySelector(p):g&&g.length===1&&(g=g[0])),p&&!g?p:g)}function o(p,g){const v=i();Dn(p).forEach(x=>{x&&(x.classList[g?"add":"remove"](...v.disabledClass.split(" ")),x.tagName==="BUTTON"&&(x.disabled=g),e.params.watchOverflow&&e.enabled&&x.classList[e.isLocked?"add":"remove"](v.lockClass))})}function s(){const{nextEl:p,prevEl:g}=e.navigation;if(e.params.loop){o(g,!1),o(p,!1);return}o(g,e.isBeginning&&!e.params.rewind),o(p,e.isEnd&&!e.params.rewind)}function l(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){e.params.navigation=YX(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const p=i();if(!(p.nextEl||p.prevEl))return;const g=a(p.nextEl),v=a(p.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:v});const b=Dn(g),x=Dn(v),_=(w,C)=>{if(w){if(p.addIcons&&w.matches(".swiper-button-next,.swiper-button-prev")&&!w.querySelector("svg")){const T=document.createElement("div");Om(T,tz);const k=T.querySelector("svg");k&&w.appendChild(k),T.remove()}w.addEventListener("click",C==="next"?u:l)}!e.enabled&&w&&w.classList.add(...p.lockClass.split(" "))};b.forEach(w=>_(w,"next")),x.forEach(w=>_(w,"prev"))}function d(){const p=i(),{nextEl:g,prevEl:v}=e.navigation,b=Dn(g),x=Dn(v),_=(w,C)=>{w.removeEventListener("click",C==="next"?u:l),w.classList.remove(...p.disabledClass.split(" "))};b.forEach(w=>_(w,"next")),x.forEach(w=>_(w,"prev"))}n("init",()=>{i().enabled===!1?h():(c(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{d()}),n("enable disable",()=>{const p=i(),{nextEl:g,prevEl:v}=e.navigation,b=Dn(g),x=Dn(v);if(e.enabled){s();return}[...b,...x].filter(_=>!!_).forEach(_=>_.classList.add(p.lockClass))}),n("click",(p,g)=>{const v=i(),{nextEl:b,prevEl:x}=e.navigation,_=Dn(b),w=Dn(x),C=g.target;let T=w.includes(C)||_.includes(C);if(e.isElement&&!T){const k=g.composedPath?g.composedPath():[];k.length&&(T=k.find(A=>_.includes(A)||w.includes(A)))}if(v.hideOnClick&&!T){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===C||e.pagination.el.contains(C)))return;let k;_.length?k=_[0].classList.contains(v.hiddenClass):w.length&&(k=w[0].classList.contains(v.hiddenClass)),r(k===!0?"navigationShow":"navigationHide"),[..._,...w].filter(A=>!!A).forEach(A=>A.classList.toggle(v.hiddenClass))}});const f=()=>{const p=i();e.el.classList.remove(...p.navigationDisabledClass.split(" ")),c(),s()},h=()=>{const p=i();e.el.classList.add(...p.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:h,update:s,init:c,destroy:d})};function Sd(e=""){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const NRe=e=>!!e.virtual&&!!e.params.virtual?.enabled,VRe=e=>!!e.params.freeMode?.enabled,nz=e=>{if(NRe(e))return e.virtual.slides.length;const t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},XX=({swiper:e,extendParams:t,on:n,emit:r})=>{const i="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:x=>x,formatFractionTotal:x=>x,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function s(){return e.params.pagination}function l(){return!s().el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(x,_){const{bulletActiveClass:w}=s();if(!x)return;let C=x[`${_==="prev"?"previous":"next"}ElementSibling`];C&&(C.classList.add(`${w}-${_}`),C=C[`${_==="prev"?"previous":"next"}ElementSibling`],C&&C.classList.add(`${w}-${_}-${_}`))}function c(x,_,w){if(x=x%w,_=_%w,_===x+1)return"next";if(_===x-1)return"previous"}function d(x){const w=x.target.closest(Sd(s().bulletClass));if(!w)return;x.preventDefault();const C=(w2(w)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===C)return;const T=c(e.realIndex,C,e.slides.length);T==="next"?e.slideNext():T==="previous"?e.slidePrev():e.slideToLoop(C)}else e.slideTo(C)}function f(){const x=e.rtl,_=s();if(l())return;const w=Dn(e.pagination.el);let C,T;
22const k=nz(e),A=e.params.loop?Math.ceil(k/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(T=e.previousRealIndex||0,C=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):typeof e.snapIndex<"u"?(C=e.snapIndex,T=e.previousSnapIndex):(T=e.previousIndex||0,C=e.activeIndex||0),_.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let D=0,$=0,O=0;if(_.dynamicBullets){a=iT(P[0],e.isHorizontal()?"width":"height");const z=e.isHorizontal()?"width":"height";w.forEach(j=>{j.style[z]=`${(a??0)*(_.dynamicMainBullets+4)}px`}),_.dynamicMainBullets>1&&T!==void 0&&(o+=C-(T||0),o>_.dynamicMainBullets-1?o=_.dynamicMainBullets-1:o<0&&(o=0)),D=Math.max(C-o,0),$=D+(Math.min(P.length,_.dynamicMainBullets)-1),O=($+D)/2}if(P.forEach(z=>{const j=["","-next","-next-next","-prev","-prev-prev","-main"].map(B=>`${_.bulletActiveClass}${B}`).flatMap(B=>typeof B=="string"&&B.includes(" ")?B.split(" "):[B]);z.classList.remove(...j)}),w.length>1)P.forEach(z=>{const j=w2(z);j===C?z.classList.add(..._.bulletActiveClass.split(" ")):e.isElement&&z.setAttribute("part","bullet"),_.dynamicBullets&&j!==void 0&&(j>=D&&j<=$&&z.classList.add(...`${_.bulletActiveClass}-main`.split(" ")),j===D&&u(z,"prev"),j===$&&u(z,"next"))});else{const z=P[C];if(z&&z.classList.add(..._.bulletActiveClass.split(" ")),e.isElement&&P.forEach((j,B)=>{j.setAttribute("part",B===C?"bullet-active":"bullet")}),_.dynamicBullets){const j=P[D],B=P[$];for(let R=D;R<=$;R+=1)P[R]&&P[R].classList.add(...`${_.bulletActiveClass}-main`.split(" "));u(j,"prev"),u(B,"next")}}if(_.dynamicBullets){const z=Math.min(P.length,_.dynamicMainBullets+4),j=((a??0)*z-(a??0))/2-O*(a??0),B=x?"right":"left",R=e.isHorizontal()?B:"top";P.forEach(J=>{J.style[R]=`${j}px`})}}w.forEach((P,D)=>{if(_.type==="fraction"&&(P.querySelectorAll(Sd(_.currentClass)).forEach($=>{$.textContent=String(_.formatFractionCurrent(C+1))}),P.querySelectorAll(Sd(_.totalClass)).forEach($=>{$.textContent=String(_.formatFractionTotal(A))})),_.type==="progressbar"){let $;_.progressbarOpposite?$=e.isHorizontal()?"vertical":"horizontal":$=e.isHorizontal()?"horizontal":"vertical";const O=(C+1)/A;let z=1,j=1;$==="horizontal"?z=O:j=O,P.querySelectorAll(Sd(_.progressbarFillClass)).forEach(B=>{B.style.transform=`translate3d(0,0,0) scaleX(${z}) scaleY(${j})`,B.style.transitionDuration=`${e.params.speed}ms`})}_.type==="custom"&&_.renderCustom?(Om(P,_.renderCustom(e,C+1,A)),D===0&&r("paginationRender",P)):(D===0&&r("paginationRender",P),r("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](_.lockClass)})}function h(){const x=s();if(l())return;const _=nz(e),w=Dn(e.pagination.el);let C="";if(x.type==="bullets"){let T=e.params.loop?Math.ceil(_/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&VRe(e)&&T>_&&(T=_);for(let k=0;k<T;k+=1)x.renderBullet?C+=x.renderBullet.call(e,k,x.bulletClass):C+=`<${x.bulletElement} ${e.isElement?'part="bullet"':""} class="${x.bulletClass}"></${x.bulletElement}>`}x.type==="fraction"&&(x.renderFraction?C=x.renderFraction.call(e,x.currentClass,x.totalClass):C=`<span class="${x.currentClass}"></span> / <span class="${x.totalClass}"></span>`),x.type==="progressbar"&&(x.renderProgressbar?C=x.renderProgressbar.call(e,x.progressbarFillClass):C=`<span class="${x.progressbarFillClass}"></span>`),e.pagination.bullets=[],w.forEach(T=>{x.type!=="custom"&&Om(T,C||""),x.type==="bullets"&&e.pagination.bullets.push(...Array.from(T.querySelectorAll(Sd(x.bulletClass))))}),x.type!=="custom"&&r("paginationRender",w[0])}function p(){e.params.pagination=YX(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const x=s();if(!x.el)return;let _;if(typeof x.el=="string"&&e.isElement&&(_=e.el.querySelector(x.el)),!_&&typeof x.el=="string"&&(_=[...document.querySelectorAll(x.el)]),_||(_=x.el),!_||Array.isArray(_)&&_.length===0)return;if(e.params.uniqueNavElements&&typeof x.el=="string"&&Array.isArray(_)&&_.length>1&&(_=[...e.el.querySelectorAll(x.el)],_.length>1)){const C=_.find(T=>FX(T,".swiper")[0]===e.el);C&&(_=C)}Array.isArray(_)&&_.length===1&&(_=_[0]),Object.assign(e.pagination,{el:_}),Dn(_).forEach(C=>{x.type==="bullets"&&x.clickable&&C.classList.add(...(x.clickableClass||"").split(" ")),C.classList.add(x.modifierClass+x.type),C.classList.add(e.isHorizontal()?x.horizontalClass:x.verticalClass),x.type==="bullets"&&x.dynamicBullets&&(C.classList.add(`${x.modifierClass}${x.type}-dynamic`),o=0,x.dynamicMainBullets<1&&(x.dynamicMainBullets=1)),x.type==="progressbar"&&x.progressbarOpposite&&C.classList.add(x.progressbarOppositeClass),x.clickable&&C.addEventListener("click",d),e.enabled||C.classList.add(x.lockClass)})}function g(){const x=s();if(l())return;const _=e.pagination.el;_&&Dn(_).forEach(C=>{C.classList.remove(x.hiddenClass),C.classList.remove(x.modifierClass+x.type),C.classList.remove(e.isHorizontal()?x.horizontalClass:x.verticalClass),x.clickable&&(C.classList.remove(...(x.clickableClass||"").split(" ")),C.removeEventListener("click",d))}
22),e.pagination.bullets&&e.pagination.bullets.forEach(w=>w.classList.remove(...x.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const x=s();Dn(e.pagination.el).forEach(w=>{w.classList.remove(x.horizontalClass,x.verticalClass),w.classList.add(e.isHorizontal()?x.horizontalClass:x.verticalClass)})}),n("init",()=>{s().enabled===!1?b():(p(),h(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{h(),f()}),n("destroy",()=>{g()}),n("enable disable",()=>{const{el:x}=e.pagination;if(x){const _=s();Dn(x).forEach(C=>C.classList[e.enabled?"remove":"add"](_.lockClass))}}),n("lock unlock",()=>{f()}),n("click",(x,_)=>{const w=_.target,C=Dn(e.pagination.el),T=s();if(T.el&&T.hideOnClick&&C&&C.length>0&&!w.classList.contains(T.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&w===e.navigation.nextEl||e.navigation.prevEl&&w===e.navigation.prevEl))return;const k=C[0].classList.contains(T.hiddenClass);r(k===!0?"paginationShow":"paginationHide"),C.forEach(A=>A.classList.toggle(T.hiddenClass))}});const v=()=>{const x=s();e.el.classList.remove(x.paginationDisabledClass);const{el:_}=e.pagination;_&&Dn(_).forEach(C=>C.classList.remove(x.paginationDisabledClass)),p(),h(),f()},b=()=>{const x=s();e.el.classList.add(x.paginationDisabledClass);const{el:_}=e.pagination;_&&Dn(_).forEach(C=>C.classList.add(x.paginationDisabledClass)),g()};Object.assign(e.pagination,{enable:v,disable:b,render:h,update:f,init:p,destroy:g})},rz=e=>!!e.virtual&&!!e.params.virtual?.enabled,jRe=({swiper:e,extendParams:t,on:n})=>{t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let r=null,i=!1,a,o=new Date().getTime();function s(){return e.params.a11y}function l(Z){const ne=r;!ne||!Z||Om(ne,Z)}function u(Z=16){const ne=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(Z).replace(/x/g,ne)}function c(Z){Dn(Z).forEach(se=>{se.setAttribute("tabIndex","0")})}function d(Z){Dn(Z).forEach(se=>{se.setAttribute("tabIndex","-1")})}function f(Z,ne){Dn(Z).forEach(ce=>{ce.setAttribute("role",ne)})}function h(Z,ne){Dn(Z).forEach(ce=>{ce.setAttribute("aria-roledescription",ne)})}function p(Z,ne){Dn(Z).forEach(ce=>{ce.setAttribute("aria-label",ne)})}function g(Z,ne){Dn(Z).forEach(ce=>{ce.setAttribute("id",ne)})}function v(Z,ne){Dn(Z).forEach(ce=>{ce.setAttribute("aria-live",ne)})}function b(Z){Dn(Z).forEach(se=>{se.setAttribute("aria-disabled","true")})}function x(Z){Dn(Z).forEach(se=>{se.removeAttribute("aria-disabled")})}function _(Z){if(Z.keyCode!==13&&Z.keyCode!==32)return;const ne=s(),se=e.params.pagination,ce=Z.target;if(!(e.pagination&&e.pagination.el&&(ce===e.pagination.el||e.pagination.el.contains(ce))&&!ce.matches(Sd(se?.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const Re=Dn(e.navigation.prevEl);Dn(e.navigation.nextEl).includes(ce)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(ne.lastSlideMessage):l(ne.nextSlideMessage)),Re.includes(ce)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(ne.firstSlideMessage):l(ne.prevSlideMessage))}e.pagination&&ce.matches(Sd(se?.bulletClass))&&ce.click()}}function w(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:Z,prevEl:ne}=e.navigation;ne&&(e.isBeginning?(b(ne),d(ne)):(x(ne),c(ne))),Z&&(e.isEnd?(b(Z),d(Z)):(x(Z),c(Z)))}function C(){return!!(e.pagination&&e.pagination.bullets&&e.pagination.bullets.length)}function T(){const Z=e.params.pagination;return C()&&!!Z?.clickable}function k(){const Z=s();if(!C())return;const ne=e.params.pagination;e.pagination.bullets.forEach(se=>{ne.clickable&&(c(se),ne.renderBullet||(f(se,"button"),p(se,Z.paginationBulletMessage.replace(/\{\{index\}\}/,String((w2(se)??0)+1))))),se.matches(Sd(ne.bulletActiveClass))?se.setAttribute("aria-current","true"):se.removeAttribute("aria-current")})}const A=(Z,ne,se)=>{c(Z),Z.tagName!=="BUTTON"&&(f(Z,"button"),Z.addEventListener("keydown",_)),p(Z,se)},P=Z=>{a&&a!==Z.target&&!a.contains(Z.target)&&(i=!0),e.a11y.clicked=!0},D=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},$=Z=>{o=new Date().getTime()};let O=[];const z=()=>{O.forEach(Z=>Z.removeAttribute("inert")),O=[]},j=Z=>{if(Z.key!=="Tab"||!e.params.loop||e.destroyed)return;const se=Z.target?.closest?.(`.${e.params.slideClass}, swiper-slide`);if(!se||!e.slides.includes(se))return;const ce=parseInt(se.getAttribute("data-swiper-slide-index")||"",10);if(Number.isNaN(ce))return;const Re=rz(e)?e.virtual.slides.length:e.slides.length;
22(Z.shiftKey?ce===0:ce===Re-1)&&(z(),e.slides.forEach($e=>{$e===se||$e.hasAttribute("inert")||($e.setAttribute("inert",""),O.push($e))}),setTimeout(z,0))},B=Z=>{const ne=s();if(e.a11y.clicked||!ne.scrollOnFocus||new Date().getTime()-o<100)return;const ce=Z.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!ce||!e.slides.includes(ce))return;a=ce;const Re=rz(e),Ue=(Re?parseInt(ce.getAttribute("data-swiper-slide-index")||"0",10):e.slides.indexOf(ce))===e.activeIndex,$e=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(ce);if(Ue||$e)return;const ke=Z.sourceCapabilities;ke&&ke.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(ce.getAttribute("data-swiper-slide-index")||"0",10)),0):Re?e.slideTo(e.getSlideIndexWhenGrid(parseInt(ce.getAttribute("data-swiper-slide-index")||"0",10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(ce)),0),i=!1)}))},R=()=>{const Z=s();Z.itemRoleDescriptionMessage&&h(e.slides,Z.itemRoleDescriptionMessage),Z.slideRole&&f(e.slides,Z.slideRole);const ne=e.slides.length,se=Z.slideLabelMessage;se&&e.slides.forEach((ce,Re)=>{const Ue=e.params.loop?parseInt(ce.getAttribute("data-swiper-slide-index")||"0",10):Re,$e=se.replace(/\{\{index\}\}/,String(Ue+1)).replace(/\{\{slidesLength\}\}/,String(ne));p(ce,$e)})},J=()=>{const Z=s();r&&e.el.append(r);const ne=e.el;Z.containerRoleDescriptionMessage&&h(ne,Z.containerRoleDescriptionMessage),Z.containerMessage&&p(ne,Z.containerMessage),Z.containerRole&&f(ne,Z.containerRole);const se=e.wrapperEl,ce=String(Z.id||se.getAttribute("id")||`swiper-wrapper-${u(16)}`);if(g(se,ce),Z.wrapperLiveRegion){const ke=e.params.autoplay,Ve=e.params.autoplay&&ke?.enabled?"off":"polite";v(se,Ve)}R();const Re=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},Ue=Dn(Re.nextEl),$e=Dn(Re.prevEl);Ue&&Ue.forEach(ke=>A(ke,ce,Z.nextSlideMessage)),$e&&$e.forEach(ke=>A(ke,ce,Z.prevSlideMessage)),T()&&Dn(e.pagination.el).forEach(Ve=>{Ve.addEventListener("keydown",_)}),document.addEventListener("visibilitychange",$),e.el.addEventListener("focus",B,!0),e.el.addEventListener("keydown",j,!0),e.el.addEventListener("pointerdown",P,!0),e.el.addEventListener("pointerup",D,!0)};function K(){r&&r.remove();const Z=e.navigation?e.navigation:{nextEl:void 0,prevEl:void 0},ne=Dn(Z.nextEl),se=Dn(Z.prevEl);ne&&ne.forEach(ce=>ce.removeEventListener("keydown",_)),se&&se.forEach(ce=>ce.removeEventListener("keydown",_)),T()&&Dn(e.pagination.el).forEach(Re=>{Re.removeEventListener("keydown",_)}),document.removeEventListener("visibilitychange",$),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",B,!0),e.el.removeEventListener("keydown",j,!0),e.el.removeEventListener("pointerdown",P,!0),e.el.removeEventListener("pointerup",D,!0)),z()}n("beforeInit",()=>{r=x2("span",s().notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),n("afterInit",()=>{s().enabled&&J()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{s().enabled&&R()}),n("fromEdge toEdge afterInit lock unlock",()=>{s().enabled&&w()}),n("paginationUpdate",()=>{s().enabled&&k()}),n("destroy",()=>{s().enabled&&K()})},URe={key:0,"data-navigation":""},HRe=["title"],D1=Q({__name:"CimSwiper",props:{slides:{},breakpoints:{default:null},modules:{default:[ZA]},zoom:{type:Boolean,default:!1},autoplay:{default:()=>{}},grabCursor:{type:Boolean,default:!0},allowTouchMove:{type:Boolean,default:!0},initialSlide:{default:0},slidesPerView:{default:"auto"},direction:{default:"horizontal"},wrapperTag:{default:"div"},slideTag:{default:"div"},blocTitleId:{},ariaLabel:{},loop:{type:Boolean,default:!1},loopAdditionalSlides:{default:0},grid:{default:()=>{}},autoHeight:{type:Boolean,default:!0},centeredSlides:{type:Boolean,default:!1},spaceBetween:{default:30},speed:{default:600},effect:{default:""},materialEffect:{default:()=>{}},carouselEffect:{default:()=>{}},isLightbox:{type:Boolean,default:!1},SliderButtonVariante:{},noNavigation:{type:Boolean,default:!1},yesPagination:{type:Boolean,default:!1},pagination:{default:()=>{}},visualPagination:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,r=G(null),i=G(!1),a=G(n.initialSlide),o=G(!1),s=W(()=>n.slides?.length),l=W(()=>r.value?.currentBreakpoint),u=W(()=>r.value?.params?.breakpoints),c=G(!1),d=G(!1),f=G(!1),h=G(!1),p=C=>{r.value=C,b(),x()},g=C=>!!C?.properties?.mimeType?.includes("video"),v=C=>!!C?.mimetype?.includes("audio");Je(s,()=>
22{b(),r.value?.update()});const b=()=>{const C=n.slidesPerView,T=u.value?.[l.value]?.slidesPerView;W(()=>T?n.grid?T*2:T:n.grid&&C?C*2:C).value<s.value||n.slidesPerView==="auto"&&!u.value?i.value=!0:i.value=!1},x=()=>{let C=r.value?.realIndex||n.initialSlide;n.zoom?g(n.slides?.[C])?c.value=!1:c.value=!0:c.value=!1},_=()=>{r.value?.zoom.toggle(1.75),d.value=!d.value};Je(f,()=>{f?.value?r.value?.autoplay.stop():r.value?.autoplay.start()});const w=()=>{f.value=!f.value,f?.value?h.value=!0:h.value=!1};return t({theSlider:r,activeIndex:a}),(C,T)=>{const k=Tn,A=rLe,P=OX,D=lLe;return E(),U("div",{"aria-live":"polite",class:L(e.isLightbox?m(F)({height:"100%"}):null)},[H(m(FRe),{wrapperTag:e.wrapperTag,onActiveIndexChange:T[0]||(T[0]=$=>a.value=m(r)?.realIndex),role:"region","aria-roledescription":"carousel","aria-labelledby":e.blocTitleId?e.blocTitleId:null,"aria-label":e.ariaLabel?e.ariaLabel:null,onInit:p,onSlideChange:T[1]||(T[1]=$=>d.value=!1),onSlideChangeTransitionEnd:x,onMouseover:T[2]||(T[2]=$=>e.autoplay?f.value=!0:null),onMouseleave:T[3]||(T[3]=$=>e.autoplay?m(h)?null:f.value=!1:null),modules:e.modules,pagination:e.pagination,zoom:e.zoom,direction:e.direction,navigation:{prevEl:`#${e.blocTitleId}_slider_prev`,nextEl:`#${e.blocTitleId}_slider_next`},initialSlide:e.initialSlide,slidesPerView:e.breakpoints?null:e.slidesPerView,breakpoints:e.breakpoints,grid:e.grid,"space-between":e.spaceBetween,autoHeight:e.autoHeight,rewind:!e.loop,loop:e.loop,loopAdditionalSlides:e.loopAdditionalSlides!==0?e.loopAdditionalSlides:null,autoplay:e.autoplay,watchOverflow:!0,watchSlidesProgress:!0,effect:e.effect,materialEffect:e.materialEffect,carouselEffect:e.carouselEffect,centeredSlides:e.centeredSlides,grabCursor:e.grabCursor,allowTouchMove:e.allowTouchMove,speed:e.speed,class:L([e.isLightbox?m(F)({height:"100%"}):null,m(F)({"& .swiper-wrapper":{_print:{display:"block !important",height:"auto !important",transform:"none !important"}},"& .swiper-slide":{marginBottom:"2rem",_print:{"& [data-img-container], img":{margin:"0 auto",filter:"grayscale(100%)"}}}}),m(i)?"show_arrows":m(F)({"& .swiper-wrapper":{transform:"none !important"}})])},{default:N(()=>[m(c)?(E(),V(k,{key:0,onClick:_,link:{text:m(d)?C.$t("common.medias.images.popin.zoomOut"):C.$t("common.medias.images.popin.zoomIn")},title:m(d)?C.$t("common.medias.images.popin.zoomOut"):C.$t("common.medias.images.popin.zoomIn"),variante:{classes:"pictoOnly",pictoColor:"white"},type:"button",picto:m(d)?"zoomOut":"zoomIn",showSr:!0,class:L(m(F)({position:"fixed",zIndex:"999",top:{base:"1.5rem",md:"9rem"},right:{base:"7rem",sm:"8rem",md:"3rem"}}))},null,8,["link","title","picto","class"])):ae("",!0),(E(!0),U(Ae,null,ft(e.slides,($,O)=>(E(),V(m(zRe),{key:O,tag:e.slideTag,role:"group","aria-roledescription":"slide","aria-label":`${C.$t("common.medias.swiper.slide")} ${O+1} sur ${Object.keys(e.slides)?.length}`,class:L(m(F)({display:"flex",justifyContent:"center","&:is(li)":{fontSize:"1em"},"&.swiper-slide-zoomed":{"& [data-description], & [data-long-description]":{opacity:"0 !important"}},_print:{marginRight:"0 !important",width:"100% !important"}}))},{default:N(()=>[me(C.$slots,"slideContent",{slide:$,index:O,isVideo:g($),isAudio:v($),hideDescriptions:m(o)})]),_:2},1032,["tag","aria-label","class"]))),128))]),_:3},8,["wrapperTag","aria-labelledby","aria-label","modules","pagination","zoom","direction","navigation","initialSlide","slidesPerView","breakpoints","grid","space-between","autoHeight","rewind","loop","loopAdditionalSlides","autoplay","effect","materialEffect","carouselEffect","centeredSlides","grabCursor","allowTouchMove","speed","class"]),!e.noNavigation||e.yesPagination||e.autoplay?(E(),U("div",URe,[m(i)&&e.autoplay?(E(),V(k,{key:0,"data-play-pause":"",onClick:w,type:"button",link:{text:m(f)?C.$t("common.medias.swiper.play"):C.$t("common.medias.swiper.pause")},title:m(f)?C.$t("common.medias.swiper.play"):C.$t("common.medias.swiper.pause"),picto:m(f)?"play":"pause","show-sr":!0,class:L([m(F)({borderRadius:"50%","& svg":{width:"2rem",height:"2rem","& *":{fill:"white"}},_hover:{boxShadow:"0 0 0 0.2rem {colors.white}",bgColor:"white","& svg":{"& *":{fill:"primary"}}}})])},null,8,["link","title","picto","class"])):ae("",!0),e.noNavigation?ae("",!0):(E(),V(A,{key:1,"data-button-slider":"prev",side:"prev",id:e.blocTitleId?`${e.blocTitleId}_slider_prev`:null,variante:e.SliderButtonVariante,class:L(m(F)({display:m(i)?"block":"none !important"}))},null,8,["id","variante","class"])),e.pagination?.el?(E(),V(P,{key:2,class:L(["pagination",e.visualPagination?m(fn)():null])},null,8,["class"])):ae("",!0),e.noNavigation?ae("",!0):(E(),V(A,{key:3,"data-button-slider":"next",side:"next",id:e.blocTitleId?`${e.blocTitleId}_slider_next`:null,variante:e.SliderButtonVariante,class:L(m(F)({display:m(i)?"block":"none !important"}))},null,8,["id","variante","class"])),e.yesPagination?(E(),V(D,{key:4,swiper:m(r),activeIndex:m(a),nbSlides:e.slides?.length}
22,null,8,["swiper","activeIndex","nbSlides"])):ae("",!0),e.zoom?(E(),V(k,{key:5,onClick:T[4]||(T[4]=$=>o.value=!m(o)),type:"button",link:{text:m(o)?"Afficher les textes":"Masquer les textes"},title:m(o)?"Afficher les textes":"Masquer les textes",picto:m(o)?"showField":"hideField","show-sr":!0,variante:{classes:"pictoOnly",pictoColor:"white"},class:L(m(F)({position:"fixed",zIndex:"999",top:{base:"1.5rem",md:"15rem"},right:{base:"7rem",sm:"8rem",md:"3rem"}}))},null,8,["link","title","picto","class"])):ae("",!0),e.visualPagination?(E(),U("div",{key:6,"data-progressbar":"","aria-live":"polite",title:`${m(a)+1} / ${m(s)}`,class:L(m(F)({height:"4.5rem",width:"1rem",position:"relative",borderRadius:"1em",overflow:"hidden"}))},[Y("span",{class:L(m(F)({bgColor:"white",position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:.2}))},null,2),Y("span",{class:L(m(F)({bgColor:"white",position:"absolute",top:0,left:0,width:"100%",transition:"{easings.global}",borderRadius:"inherit"})),style:Li(`height:${(m(a)+1)/m(s)*100}%`)},null,6)],10,HRe)):ae("",!0)])):ae("",!0)],2)}}});typeof window<"u"&&window.SwiperElementRegisterParams&&window.SwiperElementRegisterParams(["materialEffect"]);function qRe(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function WRe({swiper:e,duration:t,transformElements:n,allSlides:r}){const{activeIndex:i}=e;if(e.params.virtualTranslate&&t!==0){let a=!1,o;o=n,o.forEach(s=>{qRe(s,()=>{if(a||!e||e.destroyed)return;a=!0,e.animating=!1;const l=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(l)})})}}function JX({swiper:e,on:t,extendParams:n}){n({materialEffect:{slideSplitRatio:.65}});const r=()=>{const{slides:a,slidesSizesGrid:o,params:s,size:l}=e,{slidesPerView:u,spaceBetween:c,cssMode:d,centeredSlides:f}=s,h=f?.5:Math.min(Math.max(s.materialEffect.slideSplitRatio,0),1),p=f?.5:1-Math.min(Math.max(s.materialEffect.slideSplitRatio,0),1);for(let g=0;g<a.length;g+=1){const v=a[g],b=v.querySelector(".swiper-material-wrapper"),x=v.querySelectorAll(".swiper-material-animate-opacity"),_=v.querySelectorAll("[data-swiper-material-scale]"),w=-v.progress,C=v.swiperSlideOffset,T=e.translate;let k,A=0,P=0;const D=o[g],$=p===0&&!f?0:c/2/D,O=d?T:0,z=f&&u%2===1,j=f&&u%2===0;if(w<=0)if(f&&u>1){if(w<=0&&w>=-(u-2)&&(A=T,k=1,P=1),z&&w<-(u-Math.ceil(u/2))){const B=Math.ceil(u/2)-Math.abs(w);k=B,P=k**4,A=T+D*(1-B)*(1+$*2)}if(j&&w<-(u/2-1)&&w>=-(u/2)){const B=u/2-Math.abs(w);k=h-$+(p+$*2)*(u/2-Math.abs(w)),P=((k-h)/(1-h))**4,A=T+D*(p+$)*(1-B)}if(j&&w<-u/2){let B=u/2+1-Math.abs(w);k=0,B>=0&&(B=-$*2+B*(1+$*2),B=Math.max(Math.min(B,1),0),k=(p-$)*B),A=T+D*(p+$)*(2-B)+D*(p-$)*(1-B)}}else k=1+w,A=-C,P=k**4;if(u===1)w>0&&(k=1-w,A=-C+l*Math.min(w,1),P=k**4);else{if(w>0&&w<=u-2&&(A=T,k=1,P=1),j?w>u/2-1&&w<=u/2:w>u-2&&w<=u-1){const R=j?Math.floor(u/2):1;k=h-$+(p+$*2)*(u-R-Math.abs(w)),A=T,h===1?P=k**4:P=((k-h)/(1-h))**4}if(z&&w>u-Math.ceil(u/2)){const R=Math.ceil(u/2)-(u-Math.abs(w));A=T-D*($*2)*R,k=1-R,P=k**4}if(w>u-1&&w<=u&&!f){const R=u-Math.abs(w),J=h-$,K=p-$;k=K+(J-K)*R,A=T-D*(p+$)*(1-R),p===0&&(P=k**4)}if(w>(f?u/2:u)&&!z){let R=(f?u/2+1:u+1)-Math.abs(w),J=0;k=0,R>=0&&(R=-$*2+R*(1+$*2),R=Math.max(Math.min(R,1),0),k=(p-$)*R,J=-R*(p+$)*D+R*c),A=-C+l*Math.min(w,1)+J,P=0}}k<0&&(k=0),k>1&&(k=1),v.style.setProperty("--swiper-material-scale",k),x.forEach(B=>{B.style.opacity=P}),_.forEach(B=>{let R=parseFloat(B.getAttribute("data-swiper-material-scale"));(Number.isNaN(R)||!R&&R!==0)&&(R=1),B.style.transform=`scale(${1+(R-1)*(1-k)})`}),e.isHorizontal()?(b.style.width=`${100*k}%`,b.style.transform=`translate3d(${A-O}px, 0, 0)`):(b.style.height=`${100*k}%`,b.style.transform=`translate3d(0, ${A-O}px, 0)`)}},i=a=>{const{slides:o}=e,s=[];for(let l=0;l<o.length;l+=1){const u=o[l],c=u.querySelector(".swiper-material-wrapper"),d=u.querySelectorAll(".swiper-material-animate-opacity"),f=u.querySelectorAll("[data-swiper-material-scale]");[c,...f,...d].forEach(h=>{h.style.transitionDuration=`${a}ms`}),s.push(c)}WRe({swiper:e,duration:a,transformElements:s,allSlides:!0})};t("beforeInit",()=>{if(e.params.effect!=="material")return;e.classNames.push(`${e.params.containerModifierClass}material`),e.isElement&&e.hostEl&&e.hostEl.classList.add(`swiper-${e.params.direction}`);const a={loopAdditionalSlides:1,watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode};Object.assign(e.params,a),Object.assign(e.originalParams,a)}),t("setTranslate",()=>{e.params.effect==="material"&&r()}),t("setTransition",(a,o)=>{e.params.effect==="material"&&i(o)}),t("slidesUpdated",()=>{if(!e.params.centeredSlides&&e.params.slidesPerView>1&&!e.params.loop&&e.params.materialEffect.slideSplitRatio<1){const a=e.snapGrid[e.snapGrid.length-1];e.snapGrid.push(a+e.slidesSizesGrid[0]+e.params.spaceBetween)}e.el.style.setProperty("--swiper-material-slide-size",`${e.slidesSizesGrid[0]}px`)}
22)}const GRe=["id"],QX=Q({__name:"FieldDiaporamaPictures",props:{colPos:{},result:{},header:{},config:{},headerLayout:{},showInSummary:{type:Boolean}},setup(e){const{$emit:t}=vt(),n=(i,a)=>{t("lightbox:open",{index:i,items:a})},r=Tc();return(i,a)=>{const o=Tn,s=Qo,l=D1,u=OX,c=Mr;return E(),V(c,{header:e.header||e.config?.title,"header-layout":e.headerLayout,headerId:`bloc_diaporama_images_${m(r)}`,showInSummary:e.showInSummary,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[Y("div",{"aria-live":"polite",id:`diaporama_images_container_${m(r)}`,class:L(m(F)({position:"relative",padding:{base:"0 1.5rem",md:"0"},"& .btn_slider_prev":{transform:{base:"translate(calc(-50% + 0.5rem), 0) !important",md:"translate(-50%, 0) !important"},top:{base:"30%",sm:"40%",md:"25rem"},left:{base:"1.5rem",md:"0"}},"& .btn_slider_next":{transform:{base:"translate(calc(50% - 0.5rem), 0) !important",md:"translate(50%, 0) !important"},top:{base:"30%",sm:"40%",md:"25rem"},right:{base:"1.5rem",md:"0"}}}))},[H(l,{slides:e.result,blocTitleId:`bloc_diaporama_images_${m(r)}`,modules:[m(ZA),m(XX),m(JX)],wrapperTag:"div",slideTag:"div",pagination:{el:`#diaporama_images_container_${m(r)} + .diaporama_image_pagination`,type:"fraction"},effect:"material",materialEffect:{slideSplitRatio:.65},autoHeight:!0,slidesPerView:1,spaceBetween:16,speed:600},{slideContent:N(d=>[Y("div",{class:L(["swiper-material-wrapper",m(F)({position:"relative !important"})])},[Y("div",{class:L(["swiper-material-content",m(Vn)({alignItems:"start",gap:"0"}),m(F)({position:"relative !important","& figure":{minWidth:"100%"},"& img":{aspectRatio:"810/450",objectFit:"cover",minWidth:"100%"},"& [data-description]":{maxWidth:"calc(100% - 3rem) !important"},"& [data-long-description]":{marginBottom:0,maxWidth:"100% !important"}})])},[H(o,{link:{text:`${i.$t("common.medias.images.popin.btnTitle")} ${d.index+1}`},title:`${i.$t("common.medias.images.popin.btnTitle")} ${d.index+1}`,showSr:!0,type:"button",picto:"zoomIn",class:L(m(F)({position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"2",opacity:"0",bgColor:"{colors.black}/20","& svg":{width:"5rem",height:"5rem","& *":{fill:"{colors.white}"}},_hover:{opacity:"1"}})),onClick:f=>n(d.index,e.result)},null,8,["link","title","class","onClick"]),H(s,{inRte:!0,image:d.slide,altPrefix:`${i.$t("common.medias.images.illustration")} ${d.index+1}`},null,8,["image","altPrefix"])],2)],2)]),_:1},8,["slides","blocTitleId","modules","pagination"])],10,GRe),H(u,{class:L(["diaporama_image_pagination",m(F)({fontFamily:"{fonts.bold}",fontSize:"2em",marginTop:"{spacing.md}"})])},null,8,["class"])]),_:1},8,["header","header-layout","headerId","showInSummary","class"])}}}),ZRe=Q({__name:"T3CeMaskBlocDiaporamaPictures",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=QX;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,result:e.items,colPos:e.colPos,showInSummary:e.show_in_summary,uid:e.uid},null,8,["header","headerLayout","result","colPos","showInSummary","uid"])}}}),KRe=["controls","autoplay","muted","loop"],YRe=["data-src","type"],XRe=["title","data-src","allow"],eJ=Q({__name:"Video",props:{video:{},controls:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,{cookiesEnabled:r,cookiesEnabledIds:i,moduleOptions:a,isConsentGiven:o}=yZ(),s=d=>i.value?.includes(d),l=d=>{const f=a.cookies.optional.filter(p=>p.id===d)?.[0],h=r.value?.indexOf(f);typeof h>"u"?r.value=[f]:h<0&&r.value?.push(f),typeof i.value>"u"?i.value=[d]:i.value?.push(d)},u=G("htmlVideo");t({htmlVideo:u});const c=(n.video?.properties?.autoplay===1?"autoplay;":"")+(n.muted===!0?"muted;":"")+(n.loop===!0?"loop;":"");return(d,f)=>{const h=Tn,p=qE("lazy-load");return E(),U(Ae,null,[e.video?.properties?.extension==="mp4"?_o((E(),U("video",{key:0,"data-ratio":"",controls:e.controls!==!1,autoplay:e.video?.properties?.autoplay===1,muted:e.muted!==!1,loop:e.loop===!0,preload:"none",ref_key:"htmlVideo",ref:u},[Y("source",{"data-src":e.video?.publicUrl,type:e.video?.properties?.mimeType?e.video?.properties?.mimeType:null},null,8,YRe)],8,KRe)),[[p]]):s(e.video?.properties?.extension)?_o((E(),U("iframe",{key:2,title:e.video?.properties?.title,"data-ratio":"",type:"text/html","data-src":e.video?.publicUrl,webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:"",allow:c===""?null:c},null,8,XRe)),[[p]]):(E(),U("div",{key:1,"data-ratio":"",class:L([m(rn)({justifyContent:"center"}),m(F)({width:"100%",borderRadius:"1rem",color:"{colors.white}",bgColor:"{colors.black}"})])},[Y("div",{class:L(m(Vn)({gap:"0"}))},[Y("p",null,[Y("span",{class:L(m(F)({textTransform:"capitalize"}))},de(e.video?.properties?.extension),3),st(" "+de(d.$t("cookies.messageBlocked")),1
22)]),H(h,{link:{text:d.$t("cookies.allow")},variante:{classes:"button",bg:"white"},type:"button",onClick:f[0]||(f[0]=g=>l(e.video?.properties?.extension))},null,8,["link"])],2)],2)),e.video?.properties?.description||e.video?.properties?.copyright||e.video?.properties?.title?(E(),U("p",{key:3,"data-description":"",class:L(m(F)({margin:"{spacing.md} 0",fontSize:"1em"}))},[e.video?.properties?.title?(E(),U("span",{key:0,class:L(["legend",m(F)({fontSize:"{fontSizes.h3}",fontFamily:"{fonts.bold}",display:"block"})])},de(e.video?.properties?.title),3)):ae("",!0),e.video?.properties?.copyright?(E(),U("span",{key:1,class:L(m(F)({fontSize:"{fontSizes.h4}"}))},"© "+de(e.video?.properties?.copyright),3)):ae("",!0)],2)):ae("",!0)],64)}}}),tJ=Q({__name:"FieldDiaporamaVideos",props:{colPos:{},result:{},header:{},config:{},headerLayout:{},noNavigation:{type:Boolean,default:!1},uid:{}},setup(e){const t=e,n=Tc(),r=t.uid??n;return(i,a)=>{const o=eJ,s=D1,l=Mr;return E(),V(l,{header:e.header||e.config?.title,"header-layout":e.headerLayout,headerId:`bloc_diaporama_videos_${m(r)}`,uid:m(r),class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[H(s,{slides:e.result,blocTitleId:`bloc_diaporama_videos_${m(n)}`,modules:[m(jRe),m(ZA),m(XX),m(JX)],wrapperTag:"div",slideTag:"div",pagination:{el:`#c${e.uid} .pagination`,type:"fraction"},effect:"'material'",materialEffect:{slideSplitRatio:.65},rewind:!0,autoHeight:!0,grabCursor:!0,slidesPerView:1,spaceBetween:60,speed:600,class:L(m(F)({"& .pagination":{fontWeight:"{fontWeights.bold}",fontSize:"2em",marginTop:"{spacing.md}"},"& .btn_slider_prev":{transform:"translate(-50%, 0)",top:"25rem"},"& .btn_slider_next":{transform:"translate(50%, 0)",top:"25rem"}}))},{slideContent:N(u=>[Y("div",{class:L(["swiper-material-wrapper",m(F)({position:"relative !important"})])},[Y("div",{class:L(["swiper-material-content",m(Vn)({alignItems:"start !important",gap:"1rem"}),m(F)({position:"relative !important","& > [data-ratio]":{aspectRatio:"16/9",width:"100%"}})])},[u.slide?(E(),V(o,{key:0,video:u.slide},null,8,["video"])):ae("",!0)],2)],2)]),_:1},8,["slides","blocTitleId","modules","pagination","class"])]),_:1},8,["header","header-layout","headerId","uid","class"])}}}),JRe=Q({__name:"T3CeMaskBlocDiaporamaVideos",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=tJ;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,result:e.items,colPos:e.colPos,showInSummary:e.show_in_summary,uid:e.uid},null,8,["header","headerLayout","result","colPos","showInSummary","uid"])}}}),QRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 262 325"};function eOe(e,t){return E(),U("svg",QRe,[...t[0]||(t[0]=[i1('<g opacity=".25"><path fill="#F59E1C" d="M187.944 212.401h-.111c-13.316.045-24.855 7.674-30.123 19.886l-34.415 79.92 29.524 12.723 34.414-79.92c.178-.4.711-.423.711-.445.2 0 .534.067.712.445l34.925 79.698 29.435-12.902-34.926-79.697c-5.335-12.167-16.874-19.708-30.123-19.708z"></path><path fill="#EA5830" d="M134.79 190.625c-9.449-9.387-22.988-12.145-35.348-7.252l-80.834 32.164L30.48 245.41l80.811-32.164a.8.8 0 0 1 .823.178.74.74 0 0 1 .178.823l-31.636 81.077 29.924 11.7 31.635-81.077c4.824-12.39 1.979-25.936-7.47-35.322z"></path><path fill="#F08472" d="M112.669 138.33c.111-13.301-7.381-24.957-19.52-30.362L13.673 72.602.6 101.985l79.477 35.367c.4.178.445.511.445.711a.75.75 0 0 1-.445.712L0 172.763l12.539 29.606 80.077-34.01c12.25-5.205 19.919-16.705 20.053-30.029"></path><path fill="#DBBDDC" d="M111.29 94.378c8.537 0 16.807-3.381 23.166-9.787 9.381-9.454 12.16-23 7.247-35.367l-32.147-80.877L79.7-19.775l32.146 80.854c.156.4-.044.69-.178.823a.74.74 0 0 1-.822.178L29.812 30.428 18.12 60.368 99.152 92.02c4.002 1.557 8.092 2.313 12.138 2.313z"></path><path fill="#BCD3B5" d="M187.255 62.459h.112c13.316-.045 24.854-7.674 30.123-19.886l34.414-79.92-29.523-12.723-34.414 79.92c-.178.4-.512.445-.712.445a.75.75 0 0 1-.711-.445l-34.926-79.698-29.434 12.901 34.926 79.698c5.335 12.167 16.873 19.708 30.123 19.708z"></path><path fill="#759CA1" d="M240.41 84.257c6.358 6.317 14.562 9.631 23.032 9.631 4.112 0 8.292-.778 12.338-2.402l80.833-32.164-11.871-29.873-80.811 32.164c-.378.156-.689-.044-.823-.178a.74.74 0 0 1-.178-.823l31.636-81.077-29.924-11.7-31.635 81.077c-4.824 12.39-1.979 25.936 7.47 35.323z"></path><path fill="#DDC118" d="M240.744 190.269c-9.382 9.453-12.161 22.999-7.248 35.366l32.147 80.877 29.857-11.878-32.147-80.854a.74.74 0 0 1 .178-.823.73.73 0 0 1 .823-.178l81.033 31.652 11.694-29.94-81.034
22-31.652c-12.383-4.849-25.922-1.979-35.303 7.474z"></path></g>',1)])])}const tOe={render:eOe},nOe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 662 670"};function rOe(e,t){return E(),U("svg",nOe,[...t[0]||(t[0]=[i1('<path stroke="url(#i-1673076966__a)" stroke-width="2" d="M331 1c182.243 0 330 149.526 330 334S513.243 669 331 669 1 519.474 1 335 148.757 1 331 1Z"></path><path fill="#31877d" d="M154.837 380.666c-.551 1.061-18.514 32.009-39.918 68.773-21.404 36.765-39.053 66.988-39.22 67.172-.453.496-40.775-23.35-40.699-24.068.036-.338 24.918-43.264 55.292-95.391l55.227-94.776 21.282-.123 21.283-.124 4.832 4.66c20.071 19.361 44.023 31.126 72.88 35.799 7.518 1.217 30.562 1.217 38.08 0 24.619-3.987 45.251-12.964 64.023-27.858 2.225-1.766 7.422-6.601 11.55-10.746l7.504-7.535 17.367 15.782c9.552 8.68 17.367 15.953 17.367 16.159 0 .747-13.167 14.066-18.308 18.519-28.322 24.535-61.069 38.938-99.265 43.659-6.695.831-31.896.829-38.556 0-27.528-3.426-50.628-11.255-73.483-24.904-5.785-3.455-15.25-9.951-18.521-12.712-.751-.634-1.533-1.153-1.736-1.153-.332 0-14.489 24.068-16.981 28.867"></path><path fill="#31877d" d="M160.837 469.254H594V517H160.837zM568.48 396.127c.036.489-6.347 4.467-18.986 11.833a13280 13280 0 0 0-20.265 11.825l-1.225.726-77.553-133.414c-42.655-73.377-77.674-133.426-77.822-133.426-.148-.008-17.365 29.432-38.262 65.421-22.025 37.933-38.241 65.375-38.581 65.293-.322-.078-9.591-5.405-20.598-11.837-19.044-11.129-19.985-11.744-19.462-12.713.303-.56 22.077-38.102 48.388-83.427L351.952 94h41.413l87.53 150.695c48.141 82.882 87.556 151.026 87.585 151.432"></path><defs><linearGradient id="i-1673076966__a" x1="449.5" x2="51.5" y1="18.5" y2="153.501" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity=".3"></stop><stop offset=".245" stop-color="#fff" stop-opacity=".15"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></linearGradient></defs>',4)])])}const iOe={render:rOe},aOe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 34 90"};function oOe(e,t){return E(),U("svg",aOe,[...t[0]||(t[0]=[i1('<g opacity=".25"><path fill="#F59E1C" d="M-10.394 63.223h-.026c-3.16.01-5.9 1.821-7.15 4.72l-8.167 18.967 7.006 3.02 8.168-18.968c.042-.095.169-.1.169-.106.047 0 .127.016.169.106l8.289 18.915 6.986-3.062L-3.24 67.9c-1.266-2.887-4.004-4.677-7.149-4.677z"></path><path fill="#BCD3B5" d="M-10.558 27.637h.027c3.16-.01 5.898-1.821 7.149-4.72L4.785 3.95-2.22.93l-8.168 18.968c-.042.095-.121.105-.169.105a.18.18 0 0 1-.169-.105L-19.016.983l-6.986 3.062 8.29 18.915c1.266 2.887 4.004 4.677 7.149 4.677z"></path><path fill="#759CA1" d="M2.058 32.81c1.509 1.5 3.456 2.286 5.466 2.286a7.9 7.9 0 0 0 2.928-.57l19.185-7.633-2.818-7.09L7.64 27.436a.18.18 0 0 1-.195-.042.18.18 0 0 1-.042-.195L14.91 7.957 7.809 5.18.3 24.422c-1.145 2.94-.47 6.155 1.773 8.383z"></path><path fill="#866F18" d="M15.043 45.517c-.095-.042-.106-.121-.106-.169 0-.047.016-.127.106-.169l18.904-8.293-3.06-6.99-18.905 8.294c-2.891 1.272-4.685 4.022-4.674 7.18.01 3.161 1.82 5.901 4.717 7.152l18.957 8.172L34 53.684l-18.957-8.172z"></path><path fill="#DDC118" d="M2.136 57.97C-.09 60.214-.75 63.43.416 66.364l7.63 19.195 7.086-2.82-7.63-19.189a.18.18 0 0 1 .043-.195.17.17 0 0 1 .195-.042l19.232 7.512 2.775-7.106-19.232-7.512c-2.939-1.15-6.152-.47-8.379 1.774z"></path></g>',1)])])}const sOe={render:oOe},lOe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 15"};function uOe(e,t){return E(),U("svg",lOe,[...t[0]||(t[0]=[Y("path",{fill:"#EA5830",d:"M12.316 7.367a3.42 3.42 0 0 0-2.092-3.172L1.811.572.471 3.68l8.411 3.622a.08.08 0 0 1 .048.074c0 .02-.006.057-.048.075L.491 11.13l1.356 3.1 8.392-3.681a3.425 3.425 0 0 0 2.074-3.186z"},null,-1)])])}const cOe={render:uOe},dOe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function fOe(e,t){return E(),U("svg",dOe,[...t[0]||(t[0]=[Y("path",{fill:"#384050",d:"M12.5 11.773c2.307 0 4.178-1.964 4.178-4.386S14.808 3 12.5 3 8.322 4.964 8.322 7.387s1.87 4.386 4.178 4.386M19.914 18.892a8.13 8.13 0 0 0-2.84-4.065 7.5 7.5 0 0 0-4.574-1.53 7.5 7.5 0 0 0-4.575 1.53 8.13 8.13 0 0 0-2.84 4.065 1.9 1.9 0 0 0 .253 1.64c.168.243.388.44.642.577s.535.208.82.208h11.4c.285 0 .566-.072.82-.208a1.84 1.84 0 0 0 .642-.577 1.892 1.892 0 0 0 .252-1.64"},null,-1)])])}const hOe={render:fOe},pOe={key:2},mOe={key:1},gOe={key:2},i9="#1D2B4D",yOe=Q({__name:"FieldEvenementsAVenir",props:{colPos:{},events:{},header:{},config:{},headerLayout:{},template:{},uid:{},showInSummary:{type:Boolean}},setup(e){const t=Yt(),n=W(()=>t.siteBuilderInfos?.identifier==="Cdr");return(r,i)=>{const a=tOe,o=iOe,s=sOe,l=Fc,u=cOe,c=hOe,d=Mr;return E(),V(d,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,class:L(m(F)({border:`{borders.sm} ${i9}`,padding:{base:"2rem",sm:"3rem",md:"5rem"},position:"relative",overflow:"hidden","& [data-bloc-content]":{position:"static"},"& h2":{fontFamily:"bold",color:i9,_after:{display:"none"}}}))},{content:N(()=>[e.template==="proximite"?(E(),V(a,{key:0,"aria-hidden":"true",class:L([m(vn)({size:{base:"0rem",sm:"20rem",md:"25rem",xl:"37.5rem"}}),m(F)({position:"absolute",top:0,right:"-3.5rem",zIndex:-2})])},null,8,["class"])):(E(),V(o,{key:1,"aria-hidden":"true",class:L([m(vn)({size:{base:"0rem",sm:"20rem",md:"25rem",xl:"37.5rem"}}),m(F)({position:"absolute",top:0,right:"-3.5rem",zIndex:-2,opacity:.5})])},null,8,["class"])),e.template==="proximite"?(E(),V(s,{key:2,"aria-hidden":"true",class:L([m(vn)({size:{base:"5rem",sm:"5rem",md:"8.9rem"}}),m(F)({position:"absolute",top:{base:"1.5rem",sm:"2rem",md:"2.8rem"},left:{base:"-1.8rem",sm:"-1.5rem",md:"-2.8rem"},zIndex:-2})])},null,8,["class"])):ae("",!0),(E(!0),U(Ae,null,ft(e.events,f=>(E(),U("ul",null,[f.link?(E(),U("li",{key:0,class:L([m(Vn)({overflow:"hidden",position:"relative",alignItems:"start",ga
22p:{base:"0.75rem",sm:"0.5rem"}}),m(F)({bgColor:"#EAEAEABF/80",padding:{base:"1.5rem",sm:"2.5rem"},color:i9})])},[f.link?.[0]?(E(),V(l,{key:0,class:L(m(F)({fontSize:{base:"1.8rem",sm:"2rem"},fontFamily:"bold",_before:{content:f.contact?"":"''",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"2"},_hover:{textDecoration:"underline"}})),link:f.link?.[0]},null,8,["class","link"])):ae("",!0),f.date?(E(),U("div",{key:1,class:L([m(rn)({flexDir:"row-reverse",gap:"1rem"}),m(F)({order:-1})])},[Y("p",{class:L(m(F)({fontWeight:500,marginBottom:0}))},de(f.date),3),H(u,{"aria-hidden":"true",class:L(m(vn)({size:"1.3rem",minWidth:"1.3rem"}))},null,8,["class"])],2)):ae("",!0),f.contact?(E(),U("div",pOe,[H(l,{link:{href:`mailto:${f.contact}`,text:f.contact},class:L(m(rn)({flexDir:"row-reverse",gap:"1rem"}))},{icon:N(()=>[H(c,{"aria-hidden":"true",class:L([m(tl)(),m(n)?m(F)({bgColor:"{colors.third} !important"}):null])},null,8,["class"])]),_:1},8,["link","class"])])):ae("",!0),Y("div",{class:L([m(rn)({flexWrap:"wrap",gap:{base:"1.5rem",md:"{spacing.gutter}"}}),m(F)({marginTop:"1rem"})])},[f.place?(E(),U("div",{key:0,class:L([m(rn)({flexDir:"row-reverse",gap:"1rem"})])},[Y("p",{class:L(m(F)({fontWeight:500,marginBottom:0}))},de(f.place),3),H(m(t5),{"aria-hidden":"true",class:L([m(tl)(),m(F)({bgColor:"{colors.third} !important"})])},null,8,["class"])],2)):ae("",!0),f.niveau_expertise?(E(),U("div",mOe,[Y("p",{class:L(m(F)({marginBottom:0,position:"relative",fontWeight:700,textTransform:"capitalize",_before:{content:"''",bgColor:f.niveau_expertise==="débutant"?"green":f.niveau_expertise==="intermédiaire"?"orange":"red",width:"calc(100% + 3rem)",height:"calc(100% + 2rem)",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:-1}}))},de(f.niveau_expertise),3)])):ae("",!0),f.cible?(E(),U("div",gOe,[Y("p",{class:L(m(F)({marginBottom:0}))},[Y("span",{class:L(m(F)({fontWeight:700}))},"Cible",2),st(" : "+de(f.cible),1)],2)])):ae("",!0)],2)],2)):ae("",!0)]))),256))]),_:1},8,["header","header-layout","uid","showInSummary","class"])}}}),vOe=Q({__name:"T3CeMaskBlocEvenementsAVenir",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},show_images:{type:Boolean},events:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=yOe;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,events:e.events,colPos:e.colPos,show_images:e.show_images,uid:e.uid,showInSummary:e.show_in_summary},null,8,["header","headerLayout","events","colPos","show_images","uid","showInSummary"])}}}),U6=Q({__name:"FieldDownload",props:{colPos:{},result:{},header:{},headerLayout:{},config:{},show_images:{type:Boolean},uid:{},id:{},showInSummary:{type:Boolean},itemTitle:{},showDocDate:{type:Boolean},content:{}},setup(e){const t=e,n=i=>t.itemTitle??i?.properties?.title??i?.properties?.filename,r=i=>(t.show_images||t.config)&&(i?.image?.[0]||i?.publicUrl);return(i,a)=>{const o=IX,s=Qo,l=Mr;return e.result?.length>0?(E(),V(l,{key:0,header:e.header||e.config?.title,headerLayout:e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[Y("ul",{class:L(m(vi)({columns:{base:1,md:e.colPos===0&&!e.show_images?2:1},columnGap:"2.5rem",alignItems:"initial"}))},[(E(!0),U(Ae,null,ft(e.result,u=>(E(),U("li",{class:L([m(rn)({flexWrap:{base:"wrap",sm:r(u)&&e.colPos===1?"wrap":"nowrap"}}),m(F)({fontSize:"1em",padding:"2.5rem",bgColor:"{colors.lightGray}","& [data-img-container]":{order:"-1",minWidth:r(u)&&e.colPos===0?"19rem":"initial",maxHeight:"26rem",maxWidth:"19rem",width:"auto",boxShadow:"{shadows.accent}"}})])},[Y("span",{class:L([m(Vn)({alignItems:"start",gap:"1rem"}),m(F)({maxWidth:{base:"100%",sm:r(u)&&e.colPos===0&&e.show_images?"calc(100% - 3rem - 19rem)":"100%"}})])},[n(u)?(E(),U("span",{key:0,class:L(m(F)({fontSize:"p",fontFamily:"{fonts.bold}",maxWidth:"100%",overflowWrap:"break-word"}))},de(n(u)),3)):ae("",!0),e.showDocDate&&u.properties?.tstamp?(E(),U("span",{key:1,class:L(m(F)({fontSize:"{fontSizes.md}"}))},de(i.$t("common.dates.maj"))+" "+de(("useDisplayDate"in i?i.useDisplayDate:m(ro))(u.properties?.tstamp,"MONTH_YEAR_FULL_TEXT")),3)):ae("",!0),Y("span",null,de(e.content?.colPos0[0].content?.data?.relatedContent?.profils[i.index]?.finalResource?.properties?.filename),1),me(i.$slots,"metadata",{item:u},()=>[H(o,{metadata:u?.properties,links:{href:u?.publicUrl??u?.properties?.originalUrl,text:n(u)},title:n(u),"show-print-button":!0,class:L(m(F)({"& > p > span":{fontSize:"md"},"& [data-kiosque-links]":{rowGap:"1rem","& > *":{marginBottom:0,fontSize:"md"}}}))},null,8,["metadata","links","title","class"])])],2),me(i.$slots,"image",{image:u?.image?.[0]},()=>[e.show_images&&r(u)||e.show_images&&r(u?.properties?.thumbnail?.[0])?(E(),V(s,{key:0,image:u?.properties?.thumbnail?.[0]||u,"no-default-img":!0,"no-figcaption":!0},null,8,["image"])):ae("",!0)])],2))),256))],2)]),_:3},8,["header","headerLayout","uid","showInSummary","class"])):ae("",!0)}}}),_Oe=Q({__name:"T3CeMaskBlocDownloads",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},show_images:{type:Boolean},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=U6;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,result:e.items,colPos:e.colPos,show_images:e.show_images,uid:e.uid,showInSummary:e.show_in_summary},null,8,["header","headerLayout","result","colPos","show_images","uid","showInSummary"])}}}),bOe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.804 9.02"};function xOe(e,t){return E(),U("svg",bOe,[...t[0]||(t[0]=[Y("g",{fill:"none",stroke:"#0f857c","stroke-width":"2"},[Y("path",{d:"M0 4.51h10.779M7.59.707l3.8 3.8-3.8 3.8"})],-1)])])}const KA={render:xOe},wOe=Q({__name:"FieldExternalsLinks",props:{colPos:{},result:{},header:{},headerLayout:{},config:{},show_images:{type:Boolean},uid:{},id:{},showInSummary:{type:Boolean},itemTitle:{},showDocDate:{type:Boolean},content:{}},setup(e){const t=n=>n?.image?.[0]?.publicUrl;return(n,r)=>{const i=KA,a=Fc,o=Qo,s=Mr;return e.result?.length>0?(E(),V(s,{key:0,header:e.header||e.config?.title,headerLayout:e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[Y("ul",{class:L(m(Vn)())},[(E(!0),U(Ae,null,ft(e.result,l=>(E(),U("li",{class:L([m(rn)({justifyContent:e.colPos===0?"center":"start"}),m(F)({fontSize:"1em",padding:"2.5rem",bgColor:"{colors.lightGray}","& [data-img-container]":{order:"-1",minWidth:t(l)&&e.colPos===0?"19rem":"initial",maxHeight:"26rem",maxWidth:"19rem",width:"auto",boxShadow:"{shadows.accent}"}})])},[H(a,{link:{href:l?.links?.[0]?.href,text:l?.links?.[0]?.text,target:l?.links?.[0]?.target},class:L([m(F)({fontSize:"p",fontWeight:"bold"}
22),m(rn)({flexDir:"row-reverse",justifyContent:"start",gap:"1rem"})])},{icon:N(()=>[H(i,{"aria-hidden":"true",class:L([m(vn)({size:{base:"1rem",sm:"1.5rem"},stroke:"{colors.third}"}),m(F)({minWidth:{base:"1rem",sm:"1.5rem"},marginRight:"1rem"})])},null,8,["class"])]),_:1},8,["link","class"]),me(n.$slots,"image",{image:l?.image?.[0]},()=>[l?.image?.[0]?.publicUrl?(E(),V(o,{key:0,image:l?.image?.[0],"no-default-img":!0,"no-figcaption":!0,class:L(m(F)({aspectRatio:"240/320",objectFit:"cover"}))},null,8,["image","class"])):ae("",!0)])],2))),256))],2)]),_:3},8,["header","headerLayout","uid","showInSummary","class"])):ae("",!0)}}}),SOe=Q({__name:"T3CeMaskBlocExternalsLinks",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},show_images:{type:Boolean},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=wOe;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,result:e.items,colPos:e.colPos,show_images:e.show_images,uid:e.uid,showInSummary:e.show_in_summary},null,8,["header","headerLayout","result","colPos","show_images","uid","showInSummary"])}}}),nJ=Q({__name:"FieldsElus",props:{colPos:{},maire:{type:Boolean},header:{},headerLayout:{},related:{},links:{default:()=>[]},isRelated:{type:Boolean,default:!1},uid:{},showInSummary:{type:Boolean}},setup(e){return(t,n)=>{const r=es,i=Mr;return e.related?.length>0?(E(),V(i,{key:0,header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary},{content:N(()=>[Y("div",{class:L([m(Vn)({alignItems:"start"})])},[(E(!0),U(Ae,null,ft(e.related,a=>(E(),V(r,{result:a,key:a.id,options:{noLink:!0,showcategories:!1},class:L([m(F)({width:"100%","& [data-list-item-content]":{bgColor:"{colors.primary}/10",padding:{base:"3rem",sm:"4rem"},flexDir:{base:"column-reverse",sm:"row-reverse"},gap:"2.5rem",alignItems:{base:"start",sm:"center"}},"& [data-txt]":{flex:"auto",gap:"1.5rem"},"& [data-list-item-title]":{fontSize:{base:"{fontSizes.h4}",md:"2.5em"},fontFamily:"{fonts.bold}",marginBottom:"0"},"& [data-field-type=function]":{marginTop:{base:"-1.5rem",_print:"0"}},"& [data-img]":{aspectRatio:"1/1",minWidth:"15rem",maxWidth:{base:"15rem",sm:"none"},width:{base:"100%",sm:"15rem"},"& img, & svg":{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%",aspectRatio:"inherit"},"& svg":{padding:{base:"3rem",sm:"5rem"}}}})])},null,8,["result","class"]))),128))],2)]),_:1},8,["header","header-layout","uid","showInSummary"])):ae("",!0)}}}),COe=Q({__name:"T3CeMaskBlocElected",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},maire:{type:Boolean,default:!1},related:{default:()=>[]},links:{default:()=>[]},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=nJ;return E(),V(r,{colPos:e.colPos,maire:e.maire,related:e.related,header:e.header,headerLayout:e.headerLayout,links:e.links,uid:e.uid,showInSummary:e.show_in_summary},null,8,["colPos","maire","related","header","headerLayout","links","uid","showInSummary"])}}}),TOe=Q({__name:"T3CeMaskBlocTeaser",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},show_in_summary:{type:Boolean},bodytext:{}},setup(e){return(t,n)=>{const r=du,i=Mr;return E(),V(i,{class:L([m(ru)({}),m(Sa)(),m(Zd)()])},{content:N(()=>[H(r,{content:e.bodytext,uid:e.uid,class:L(m(F)({"& > p":{fontSize:"{fontSizes.h4}"}}))},null,8,["content","uid","class"])]),_:1},8,["class"])}}}),kOe=Q({__name:"T3CeMaskBlocExternalWidget",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},widget_content:{},items:{}},setup(e){const t=e,n=[];return t.items.length>0&&t.items.forEach(r=>{n.push({src:r.script,type:"text/javascript",async:!0})}),n.length>0&&mo({script:n}),(r,i)=>{const a=HA;return E(),V(a,{bodytext:e.widget_content},null,8,["bodytext"])}}});var EOe=Object.create,rJ=Object.defineProperty,MOe=Object.getOwnPropertyDescriptor,AOe=Object.getOwnPropertyNames,POe=Object.getPrototypeOf,DOe=Object.prototype.hasOwnProperty,YA=(e,t)=>
vendor: 4,640 bytes, line 22
22()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),IOe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=AOe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!DOe.call(e,s)&&s!==n&&rJ(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=MOe(t,s))||r.enumerable});return e},$Oe=(e,t,n)=>(n=e==null?{}:EOe(POe(e)),IOe(rJ(n,"default",{value:e,enumerable:!0}),e));function we(e,t){this.x=e,this.y=t}we.prototype={clone(){return new we(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround(e,t){let n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),a=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:we},we.convert=function(e){if(e instanceof we)return e;if(Array.isArray(e))return new we(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new we(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};function LOe(e,t,n,r){let i=3*e,a=3*(n-e)-i,o=1-i-a,s=3*t,l=3*(r-t)-s,u=1-s-l;return function(c,d=1e-6){if(c<=0)return 0;if(c>=1)return 1;let f=c;for(let g=0;g<8;g++){let v=((o*f+a)*f+i)*f-c;if(Math.abs(v)<d)return((u*f+l)*f+s)*f;let b=(3*o*f+2*a)*f+i;if(Math.abs(b)<1e-6)break;f-=v/b}let h=0,p=1;f=c;for(let g=0;g<20;g++){let v=((o*f+a)*f+i)*f;if(Math.abs(v-c)<d)break;c>v?h=f:p=f,f=(h+p)*.5}return((u*f+l)*f+s)*f}}let iz;function XA(){return iz??=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function",iz}let I3;function iJ(){if(I3==null&&(I3=!1,XA())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let n=0;n<25;n++){let r=n*4;e.fillStyle=`rgb(${r},${r+1},${r+2})`,e.fillRect(n%5,Math.floor(n/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let n=0;n<100;n++)if(n%4!=3&&t[n]!==n){I3=!0;break}}}return I3||!1}var Oi=typeof Float32Array<"u"?Float32Array:Array;function aJ(){var e=new Oi(9);return Oi!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function ROe(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*a-o*l)+n*(-u*i+o*s)+r*(l*i-a*s)}function OOe(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function BOe(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,d=r*s,f=i*o,h=i*s,p=i*l,g=a*o,v=a*s,b=a*l;return e[0]=1-d-p,e[3]=c-b,e[6]=f+v,e[1]=c+b,e[4]=1-u-p,e[7]=h-g,e[2]=f-v,e[5]=h+g,e[8]=1-u-d,e}function mf(){var e=new Oi(16);return Oi!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function sT(e){var t=new Oi(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function FOe(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function vl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
vendor: 2,661 bytes, line 22
22]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function i5(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],d=t[9],f=t[10],h=t[11],p=t[12],g=t[13],v=t[14],b=t[15],x=n*s-r*o,_=n*l-i*o,w=n*u-a*o,C=r*l-i*s,T=r*u-a*s,k=i*u-a*l,A=c*g-d*p,P=c*v-f*p,D=c*b-h*p,$=d*v-f*g,O=d*b-h*g,z=f*b-h*v,j=x*z-_*O+w*$+C*D-T*P+k*A;return j?(j=1/j,e[0]=(s*z-l*O+u*$)*j,e[1]=(i*O-r*z-a*$)*j,e[2]=(g*k-v*T+b*C)*j,e[3]=(f*T-d*k-h*C)*j,e[4]=(l*D-o*z-u*P)*j,e[5]=(n*z-i*D+a*P)*j,e[6]=(v*w-p*k-b*_)*j,e[7]=(c*k-f*w+h*_)*j,e[8]=(o*O-s*D+u*A)*j,e[9]=(r*D-n*O-a*A)*j,e[10]=(p*T-g*w+b*x)*j,e[11]=(d*w-c*T-h*x)*j,e[12]=(s*P-o*$-l*A)*j,e[13]=(n*$-r*P+i*A)*j,e[14]=(g*_-p*C-v*x)*j,e[15]=(c*C-d*_+f*x)*j,e):null}function D0(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=t[8],f=t[9],h=t[10],p=t[11],g=t[12],v=t[13],b=t[14],x=t[15],_=n[0],w=n[1],C=n[2],T=n[3];return e[0]=_*r+w*s+C*d+T*g,e[1]=_*i+w*l+C*f+T*v,e[2]=_*a+w*u+C*h+T*b,e[3]=_*o+w*c+C*p+T*x,_=n[4],w=n[5],C=n[6],T=n[7],e[4]=_*r+w*s+C*d+T*g,e[5]=_*i+w*l+C*f+T*v,e[6]=_*a+w*u+C*h+T*b,e[7]=_*o+w*c+C*p+T*x,_=n[8],w=n[9],C=n[10],T=n[11],e[8]=_*r+w*s+C*d+T*g,e[9]=_*i+w*l+C*f+T*v,e[10]=_*a+w*u+C*h+T*b,e[11]=_*o+w*c+C*p+T*x,_=n[12],w=n[13],C=n[14],T=n[15],e[12]=_*r+w*s+C*d+T*g,e[13]=_*i+w*l+C*f+T*v,e[14]=_*a+w*u+C*h+T*b,e[15]=_*o+w*c+C*p+T*x,e}function ci(e,t,n){var r=n[0],i=n[1],a=n[2],o,s,l,u,c,d,f,h,p,g,v,b;return t===e?(e[12]=t[0]*r+t[4]*i+t[8]*a+t[12],e[13]=t[1]*r+t[5]*i+t[9]*a+t[13],e[14]=t[2]*r+t[6]*i+t[10]*a+t[14],e[15]=t[3]*r+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],d=t[5],f=t[6],h=t[7],p=t[8],g=t[9],v=t[10],b=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=d,e[6]=f,e[7]=h,e[8]=p,e[9]=g,e[10]=v,e[11]=b,e[12]=o*r+c*i+p*a+t[12],e[13]=s*r+d*i+g*a+t[13],e[14]=l*r+f*i+v*a+t[14],e[15]=u*r+h*i+b*a+t[15]),e}function ta(e,t,n){var r=n[0],i=n[1],a=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Bm(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*r,e[5]=o*i+c*r,e[6]=s*i+d*r,e[7]=l*i+f*r,e[8]=u*i-a*r,e[9]=c*i-o*r,e[10]=d*i-s*r,e[11]=f*i-l*r,e}function oJ(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],d=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*r,e[1]=o*i-c*r,e[2]=s*i-d*r,e[3]=l*i-f*r,e[8]=a*r+u*i,e[9]=o*r+c*i,e[10
vendor: 21,049 bytes, line 22
22]=s*r+d*i,e[11]=l*r+f*i,e}function Pd(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],d=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*r,e[1]=o*i+c*r,e[2]=s*i+d*r,e[3]=l*i+f*r,e[4]=u*i-a*r,e[5]=c*i-o*r,e[6]=d*i-s*r,e[7]=f*i-l*r,e}function zOe(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function NOe(e,t,n,r,i){var a=1/Math.tan(t/2);if(e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,i!=null&&i!==1/0){var o=1/(r-i);e[10]=(i+r)*o,e[14]=2*i*r*o}else e[10]=-1,e[14]=-2*r;return e}var lT=NOe;function VOe(e,t,n,r,i,a,o){var s=1/(t-n),l=1/(r-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(o+a)*u,e[15]=1,e}var Nl=VOe;function jOe(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function UOe(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],h=e[11],p=e[12],g=e[13],v=e[14],b=e[15],x=t[0],_=t[1],w=t[2],C=t[3],T=t[4],k=t[5],A=t[6],P=t[7],D=t[8],$=t[9],O=t[10],z=t[11],j=t[12],B=t[13],R=t[14],J=t[15];return Math.abs(n-x)<=1e-6*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(r-_)<=1e-6*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(i-w)<=1e-6*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-C)<=1e-6*Math.max(1,Math.abs(a),Math.abs(C))&&Math.abs(o-T)<=1e-6*Math.max(1,Math.abs(o),Math.abs(T))&&Math.abs(s-k)<=1e-6*Math.max(1,Math.abs(s),Math.abs(k))&&Math.abs(l-A)<=1e-6*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(u-P)<=1e-6*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(c-D)<=1e-6*Math.max(1,Math.abs(c),Math.abs(D))&&Math.abs(d-$)<=1e-6*Math.max(1,Math.abs(d),Math.abs($))&&Math.abs(f-O)<=1e-6*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(h-z)<=1e-6*Math.max(1,Math.abs(h),Math.abs(z))&&Math.abs(p-j)<=1e-6*Math.max(1,Math.abs(p),Math.abs(j))&&Math.abs(g-B)<=1e-6*Math.max(1,Math.abs(g),Math.abs(B))&&Math.abs(v-R)<=1e-6*Math.max(1,Math.abs(v),Math.abs(R))&&Math.abs(b-J)<=1e-6*Math.max(1,Math.abs(b),Math.abs(J))}function sJ(){var e=new Oi(3);return Oi!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function uT(e){var t=new Oi(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function cl(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function az(e,t,n){var r=new Oi(3);return r[0]=e,r[1]=t,r[2]=n,r}function Ms(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function JA(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Tr(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function a5(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function HOe(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function qOe(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Oa(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function di(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function fo(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],l=n[2];return e[0]=i*l-a*s,e[1]=a*o-r*l,e[2]=r*s-i*o,e}function WOe(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o||=1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}function GOe(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function a9(e,t,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],l=t[1],u=t[2],c=i*u-a*l,d=a*s-r*u,f=r*l-i*s;return c+=c,d+=d,f+=f,e[0]=s+o*c+i*f-a*d,e[1]=l+o*d+a*c-r*f,e[2]=u+o*f+r*d-i*c,e}function Dg(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function y0(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function o9(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function ZOe(e){return e[0]=0,e[1]=0,e[2]=0,e}var Ac=JA,o5=cl;(function(){var e=sJ();return function(t,n,r,i,a,o){var s,l;for(n||=3,r||=0,l=i?Math.min(i*n+r,t.length):t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}})();function KOe(){var e=new Oi(4);return Oi!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function YOe(e,t,n,r){var i=new Oi(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function XOe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function JOe(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function QOe(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=a*o,e}function na(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,e[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,e[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,e[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,e}var eBe=XOe;(function(){var e=KOe();return function(t,n,r,i,a,o){var s,l;for(n||=4,r||=0,l=i?Math.min(i*n+r,t.length):t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}})();function oz(){var e=new Oi(4);return Oi!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function tBe(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function nBe(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],l=n[1],u=n[2],c=n[3];return e[0]=r*c+o*s+i*u-a*l,e[1]=i*c+o*l+a*s-r*u,e[2]=a*c+o*u+r*l-i*s,e[3]=o*c-r*s-i*l-a*u,e}function Nb(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3],l=n[0],u=n[1],c=n[2],d=n[3],f,h=i*l+a*u+o*c+s*d,p,g,v;return h<0&&(h=-h,l=-l,u=-u,c=-c,d=-d),1-h>1e-6?(f=Math.acos(h),p=Math.sin(f),g=Math.sin((1-r)*f)/p,v=Math.sin(r*f)/p):(g=1-r,v=r),e[0]=g*i+v*l,e[1]=g*a+v*u,e[2]=g*o+v*c,e[3]=g*s+v*d,e}function rBe(e,t){var n=t[0]+t[4]+t[8],r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(t[i*3+i]-t[a*3+a]-t[o*3+o]+1),e[i]=.5*r,r=.5/r,e[3]=(t[a*3+o]-t[o*3+a])*r,e[a]=(t[a*3+i]+t[i*3+a])*r,e[o]=(t[o*3+i]+t[i*3+o])*r}return e}function QA(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",a=Math.PI/360;t*=a,r*=a,n*=a;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(n),u=Math.cos(n),c=Math.sin(r),d=Math.cos(r);switch(i){case"xyz":e[0]=o*u*d+s*l*c,e[1]=s*l*d-o*u*c,e[2]=s*u*c+o*l*d,e[3]=s*u*d-o*l*c;break;case"xzy":e[0]=o*u*d-s*l*c,e[1]=s*l*d-o*u*c,e[2]=s*u*c+o*l*d,e[3]=s*u*d+o*l*c;break;case"yxz":e[0]=o*u*d+s*l*c,e[1]=s*l*d-o*u*c,e[2]=s*u*c-o*l*d,e[3]=s*u*d+o*l*c;break;case"yzx":e[0]=o*u*d+s*l*c,e[1]=s*l*d+o*u*c,e[2]=s*u*c-o*l*d,e[3]=s*u*d-o*l*c;break;case"zxy":e[0]=o*u*d-s*l*c,e[1]=s*l*d+o*u*c,e[2]=s*u*c+o*l*d,e[3]=s*u*d-o*l*c;break;case"zyx":e[0]=o*u*d-s*l*c,e[1]=s*l*d+o*u*c,e[2]=s*u*c-o*l*d,e[3]=s*u*d+o*l*c;break;default:throw Error("Unknown angle order "+i)}return e}var sz=YOe,lz=QOe;(function(){var e=sJ(),t=az(1,0,0),n=az(0,1,0);return function(r,i,a){var o=di(i,a);return o<-.999999?(fo(e,t,i),o5(e)<1e-6&&fo(e,n,i),Oa(e,e),tBe(r,e,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(fo(e,i,a),r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=1+o,lz(r,r))}})(),(function(){var e=oz(),t=oz();return function(n,r,i,a,o,s){return Nb(e,r,o,s),Nb(t,i,a,s),Nb(n,e,t,2*s*(1-s)),n}})(),(function(){var e=aJ();return function(t,n,r,i){return e[0]=r[0],e[3]=r[1],e[6]=r[2],e[1]=i[0],e[4]=i[1],e[7]=i[2],e[2]=-n[0],e[5]=-n[1],e[8]=-n[2],lz(t,rBe(t,e))}})();function cT(){var e=new Oi(2);return Oi!=Float32Array&&(e[0]=0,e[1]=0),e}function uz(e,t){var n=new Oi(2);return n[0]=e,n[1]=t,n}function cz(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function dz(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)}function iBe(e){var t=e[0],n=e[1];return t*t+n*n}function aBe(e,t){return e[0]*t[0]+e[1]*t[1]}function fz(e){return e[0]=0,e[1]=0,e}var oBe=iBe;(function(){var e=cT();return function(t,n,r,i,a,o){var s,l;for(n||=2,r||=0,l=i?Math.min(i*n+r,t.length):t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],a(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}})();const He=8192;function Jo(e,t,n){return t*(He/(e.tileSize*2**(n-e.tileID.overscaledZ)))}function fa(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function ph(){return new Float64Array(4)}function On(){return new Float64Array(3)}function mh(){return new Float64Array(16)}function $3(){let e=new Float64Array(16);return vl(e),e}function lJ(){let e=new Float32Array(16);return vl(e),e}function Qd(e,t,n,r,i=!1){if(!n[0]&&!n[1])return[0,0];let a=i?r==="map"?-e.bearingInRadians:0:r==="viewport"?e.bearingInRadians:0;if(a){let o=Math.sin(a),s=Math.cos(a);n=[n[0]*s-n[1]*o,n[0]*o+n[1]*s]}return[i?n[0]:Jo(t,n[0],e.zoom),i?n[1]:Jo(t,n[1],e.zoom)]}function dT(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function fs(e,t,n){let r=ROe([e[0],e[1],e[2],t[0],t[1],t[2],n[0],n[1],n[2]]);if(r===0)return null;let i=fo([],[t[0],t[1],t[2]],[n[0],n[1],n[2]]),a=fo([],[n[0],n[1],n[2]],[e[0],e[1],e[2]]),o=fo([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=Tr([],i,-e[3]);return Ms(s,s,Tr([],a,-t[3])),Ms(s,s,Tr([],o,-n[3])),Tr(s,s,1/r),s}function sBe(e,t,n){let r=e[0]*n[0]+e[1]*n[1]+e[2]*n[2],i=t[0]*n[0]+t[1]*n[1]+t[2]*n[2];return i===0?null:(-r-n[3])/i}function L3(e,t,n,r){let i=Math.sqrt(e*e+t*t),a=Math.sqrt(n*n+r*r);e/=i,t/=i,n/=a,r/=a;let o=e*n+t*r,s=Math.acos(o);return-t*n+e*r>0?s:-s}function $o(e,t){let n=Jh(e,360),r=Jh(t,360),i=r-n,a=r>n?i-360:i+360;return Math.abs(i)<Math.abs(a)?i:a}function R3(e,t){let n=Jh(e,Math.PI*2),r=Jh(t,Math.PI*2);return Math.min(Math.abs(n-r),Math.abs(n-r+Math.PI*2),Math.abs(n-r-Math.PI*2))}function Jh(e,t){return(e%t+t)%t}function Vb(e,t,n,r,i){return dm(r,i,qt((e-t)/(n-t),0,1))}function dm(e,t,n){return e*(1-n)+t*n}function lBe(e){let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x),i=Math.max(i,a.y);return[t,n,r,i]}function uBe(e){if(!e.length)return new Set;let t=Math.max(...e.map(l=>l.canonical.z)),n=1/0,r=-1/0,i=1/0,a=-1/0,o=[];for(let l of e){let{x:u,y:c,z:d}=l.canonical,f=2**(t-d),h=u*f,p=c*f;o.push({id:l,x:h,y:p}),h<n&&(n=h),h>r&&(r=h),p<i&&(i=p),p>a&&(a=p)}let s=new Set;for(let l of o)(l.x===n||l.x===r||l.y===i||l.y===a)&&s.add(l.id);return s}function cBe(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function eP(e,t,n,r){return LOe(e,t,n,r)}const fT=eP(.25,.1,.25,1);function qt(e,t,n){return Math.min(n,Math.max(t,e))}function As(e,t,n){let r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function St(e,...t){for(let n of t)for(let r in n)e[r]=n[r];return e}function Ev(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}let dBe=1;function uJ(){return dBe++}function fBe(e){return Math.log(e)/Math.LN2%1==0}function hBe(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function Fa(e){return 2**e}function ua(e){return Math.log(e)/Math.LN2}function Fo(e,t,n){if(t<=0)return e;let r=1/t;return n===void 0||Math.abs(n)<1e-10?Math.round(e*r)/r:(n>0?Math.ceil(e*r-1e-9):Math.floor(e*r+1e-10))/r}function tP(e,t,n){let r={};for(let i in e)r[i]=t.call(this,e[i],i,e);return r}function cJ(e,t,n){let r={};for(let i in e)t.call(this,e[i],i,e)&&(r[i]=e[i]);return r}function Hl(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Hl(e[n],t[n]))return!1;return!0}if(typeof e=="object"&&e&&t!==null){if(typeof t!="object"||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!Hl(e[n],t[n]))return!1;return!0}return e===t}function oo(e){return Array.isArray(e)?e.map(oo):typeof e=="object"&&e?tP(e,oo):e}const hz={};function hn(e){hz[e]||(typeof console<"u"&&console.warn(e),hz[e]=!0)}function Dd(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function pBe(e,t,n,r){let i=t.y-e.y,a=t.x-e.x,o=r.y-n.y,s=r.x-n.x,l=o*a-s*i;if(l===0)return null;let u=e.y-n.y,c=e.x-n.x,d=(s*u-o*c)/l;return new we(e.x+d*a,e.y+d*i)}function mBe([e,t,n]){return t+=90,t*=Math.PI/180,n*=Math.PI/180,[e*Math.cos(t)*Math.sin(n),e*Math.sin(t)*Math.sin(n),e*Math.cos(n)]}function Fm(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function gBe(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,n={};if(e.replace(t,(r,i,a,o)=>{let s=a||o;return n[i]=!s||s.toLowerCase(),""}),n["max-age"]){let r=parseInt(n["max-age"],10);isNaN(r)?delete n["max-age"]:n["max-age"]=r}return n}let s9=null;function yBe(e){if(s9==null){let t=e.navigator?e.navigator.userAgent:null;s9=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return s9}function Ah(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}const vBe=async(e,t)=>{let n=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(n,t)}catch(r){throw Error(`Could not load image because of ${fa(r).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}},_Be=e=>new Promise((t,n)=>{let r=new Image;r.onload=()=>{t(r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},r.onerror=()=>n(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let i=new Blob([new Uint8Array(e)],{type:"image/png"});r.src=URL.createObjectURL(i)});function bBe(e,t,n,r,i){let a=Math.max(-t,0)*4,o=(Math.max(0,n)-n)*r*4+a,s=r*4,l=Math.max(0,t),u=Math.max(0,n),c=Math.min(e.width,t+r),d=Math.min(e.height,n+i);return{rect:{x:l,y:u,width:c-l,height:d-u},layout:[{offset:o,stride:s}]}}async function xBe(e,t,n,r,i){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(e,{timestamp:0});try{let o=a?.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(r*i*4);if(await a.copyTo(l,bBe(e,t,n,r,i)),s)for(let u=0;u<l.length;u+=4){let c=l[u];l[u]=l[u+2],l[u+2]=c}return l}finally{a.close()}}function s5(e,t,n,r){return e.addEventListener(t,n,r),{unsubscribe:()=>{e.removeEventListener(t,n,r)}}}function Sr(e){return e*Math.PI/180}function Kl(e){return e/Math.PI*180}function dJ(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function wBe(e){let t=new Float64Array(9);BOe(t,e);let n=Kl(-Math.asin(qt(t[2],-1,1))),r,i;return Math.hypot(t[5],t[8])<.001?(r=0,i=-Kl(Math.atan2(t[3],t[4]))):(r=Kl(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),i=Kl(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:r,pitch:n+90,bearing:i}}function fJ(e,t,n){let r=uz(t.x-n.x,t.y-n.y),i=uz(e.x-n.x,e.y-n.y),a=r[0]*i[1]-r[1]*i[0];return Kl(Math.atan2(a,aBe(r,i)))}function pz(e,t,n){let r=new Float64Array(4);return QA(r,e,t-90,n),r}const su=85.051129,hJ={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},pJ={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};function SBe(e,t){return hJ[t]&&"touches"in e}function CBe(e,t){if(!pJ[t])return!1;let n=e,r=n?.target?.ownerDocument?.defaultView||window;return n instanceof r.MouseEvent||n instanceof r.WheelEvent}function TBe(e){return hJ[e]||pJ[e]}const mz="AbortError";var Mv=class extends Error{constructor(e=mz){super(e instanceof Error?e.message:e),this.name=mz,e instanceof Error&&e.stack&&(this.stack=e.stack)}};function ef(e){return e instanceof Error&&e.name==="AbortError"}function nP(e){if(e.aborted)throw new Mv(e.reason)}const tf={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function mJ(e){return tf.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}const hT="global-dispatcher";var S2=class extends Error{constructor(e,t,n,r){super(`AJAXError: ${t} (${e}): ${n}`),this.status=e,this.statusText=t,this.url=n,this.body=r}};function rP(){if(Fm(self))return self.worker?.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch{}return window.location.href}const kBe=e=>e.startsWith("file:")||rP()?.startsWith("file:")&&!/^\w+:/.test(e);async function EBe(e,t){let n=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:rP(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!n.headers.has("Accept")&&n.headers.set("Accept","application/json");let r;try{r=await fetch(n)}catch(o){throw ef(o)?o:new S2(0,fa(o).message,e.url,new Blob)}if(!r.ok){let o=await r.blob();throw new S2(r.status,r.statusText,e.url,o)}let i;i=e.type==="arrayBuffer"||e.type==="image"?r.arrayBuffer():e.type==="json"?r.json():r.text();let a=await i;return nP(t.signal),{data:a,cacheControl:r.headers.get("Cache-Control"),expires:r.headers.get("Expires"),etag:r.headers.get("ETag")}}function MBe(e,t){return new Promise((n,r)=>{let i=new XMLHttpRequest;i.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(i.responseType="arraybuffer");for(let a in e.headers)i.setRequestHeader(a,e.headers[a]);e.type==="json"&&(i.responseType="text",e.headers?.Accept||i.setRequestHeader("Accept","application/json")),i.withCredentials=e.credentials==="include",i.onerror=()=>{r(Error(i.statusText))},i.onload=()=>{if(!t.signal.aborted)if((i.status>=200&&i.status<300||i.status===0)&&i.response!==null){let a=i.response;if(e.type==="json")try{a=JSON.parse(i.response)}catch(o){r(o);return}n({data:a,cacheControl:i.getResponseHeader("Cache-Control"),expires:i.getResponseHeader("Expires"),etag:i.getResponseHeader("ETag")})}else{let a=new Blob([i.response],{type:i.getResponseHeader("Content-Type")});r(new S2(i.status,i.statusText,e.url,a))}},t.signal.addEventListener("abort",()=>{i.abort(),r(new Mv(t.signal.reason))}),i.send(e.body)})}const H6=async function(e,t){if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let n=mJ(e.url);if(n){let r=await n(e,t);return!r.data&&e.type==="arrayBuffer"?St(r,{data:new ArrayBuffer(0)}):r}if(Fm(self)&&self.worker?.actor)return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:hT},t)}if(!kBe(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return EBe(e,t);if(Fm(self)&&self.worker?.actor)return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:hT},t)}return MBe(e,t)},q6=(e,t)=>H6(St(e,{type:"json"}),t),gJ=(e,t)=>H6(St(e,{type:"arrayBuffer"}),t);function yJ(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),n=window.location;return t.protocol===n.protocol&&t.host===n.host}const ABe=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(n=>{t.onloadstart=()=>{n(t)};for(let r of e){let i=window.document.createElement("source");yJ(r)||(t.crossOrigin="Anonymous"),i.src=r,t.appendChild(i)}})};function gz(e,t,n){n[e]?.includes(t)||(n[e]||=[],n[e].push(t))}function l9(e,t,n){if(n?.[e]){let r=n[e].indexOf(t);r!==-1&&n[e].splice(r,1)}}var Us=class{constructor(e,t={}){St(this,t),this.type=e}},Et=class extends Us{constructor(e,t={}){super("error",St({error:e},t))}},Ci=class{on(e,t){return this._listeners||={},gz(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return l9(e,t,this._listeners),l9(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||={},gz(e,t,this._oneTimeListeners),this):new Promise(n=>this.once(e,n))}fire(e,t){let n=typeof e=="string"?new Us(e,t||{}):e,r=n.type;if(this.listens(r)){n.target=this;let i=this._listeners?.[r]?.slice()??[];for(let s of i)s.call(this,n);let a=this._oneTimeListeners?.[r]?.slice()??[];for(let s of a)l9(r,s,this._oneTimeListeners),s.call(this,n);let o=this._eventedParent;o&&(St(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),o.fire(n))}else n instanceof Et&&console.error(n.error);return this}listens(e){return!!(this._listeners?.[e]?.length||this._oneTimeListeners?.[e]?.length||this._eventedParent?.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},vJ
vendor: 34,767 bytes, line 22
22={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}};const
vendor: 16,881 bytes, line 22
22Ie=vJ,PBe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];var Xe=class{constructor(e,t,n,r,i="error"){this.message=(e?`${e}: `:"")+n,r&&(this.identifier=r),this.severity=i,t!=null&&t.__line__&&(this.line=t.__line__)}};const Av={kind:"null"},ct={kind:"number"},Xt={kind:"string"},ln={kind:"boolean"},dl={kind:"color"},W6={kind:"projectionDefinition"},Ph={kind:"object"},Jt={kind:"value"},DBe={kind:"error"},G6={kind:"collator"},Pv={kind:"formatted"},Z6={kind:"padding"},C2={kind:"colorArray"},K6={kind:"numberArray"},Dv={kind:"resolvedImage"},Y6={kind:"variableAnchorOffsetCollection"};function _a(e,t){return{kind:"array",itemType:e,N:t}}function Nr(e){if(e.kind==="array"){let t=Nr(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}const IBe=[Av,ct,Xt,ln,dl,W6,Pv,Ph,_a(Jt),Z6,K6,C2,Dv,Y6];function T2(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!T2(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let n of IBe)if(!T2(n,t))return null}}return`Expected ${Nr(e)} but found ${Nr(t)} instead.`}function iP(e,t){return t.some(n=>n.kind===e.kind)}function Dh(e,t){return t.some(n=>n==="null"?e===null:n==="array"?Array.isArray(e):n==="object"?e&&!Array.isArray(e)&&typeof e=="object":n===typeof e)}function ud(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}const _J=.96422,bJ=.82521,xJ=4/29,pT=6/29,wJ=3*pT*pT,$Be=Math.PI/180,LBe=180/Math.PI;function SJ(e){return e%=360,e<0&&(e+=360),e}function CJ([e,t,n,r]){e=u9(e),t=u9(t),n=u9(n);let i,a,o=c9((.2225045*e+.7168786*t+.0606169*n)/1);e===t&&t===n?i=a=o:(i=c9((.4360747*e+.3850649*t+.1430804*n)/_J),a=c9((.0139322*e+.0971045*t+.7141733*n)/bJ));let s=116*o-16;return[s<0?0:s,500*(i-o),200*(o-a),r]}function u9(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function c9(e){return e>.008856451679035631?e**(1/3):e/wJ+xJ}function TJ([e,t,n,r]){let i=(e+16)/116,a=isNaN(t)?i:i+t/500,o=isNaN(n)?i:i-n/200;return i=1*f9(i),a=_J*f9(a),o=bJ*f9(o),[d9(3.1338561*a-1.6168667*i-.4906146*o),d9(-.9787684*a+1.9161415*i+.033454*o),d9(.0719453*a-.2289914*i+1.4052427*o),r]}function d9(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function f9(e){return e>pT?e*e*e:wJ*(e-xJ)}function RBe(e){let[t,n,r,i]=CJ(e),a=Math.sqrt(n*n+r*r);return[Math.round(a*1e4)?SJ(Math.atan2(r,n)*LBe):NaN,a,t,i]}function OBe([e,t,n,r]){return e=isNaN(e)?0:e*$Be,TJ([n,Math.cos(e)*t,Math.sin(e)*t,r])}function BBe([e,t,n,r]){e=SJ(e),t/=100,n/=100;function i(a){let o=(a+e/30)%12,s=t*Math.min(n,1-n);return n-s*Math.max(-1,Math.min(o-3,9-o,1))}return[i(0),i(8),i(4),r]}const FBe=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function Iy(e,t){return FBe(e,t)?e[t]:void 0}function zBe(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Iy(NBe,e);if(t){let[r,i,a]=t;return[r/255,i/255,a/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let r=e.length<6?1:2,i=1;return[O3(e.slice(i,i+=r)),O3(e.slice(i,i+=r)),O3(e.slice(i,i+=r)),O3(e.slice(i,i+r)||"ff")]}if(e.startsWith("rgb")){let r=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,a,o,s,l,u,c,d,f,h,p,g]=r,v=[s||" ",c||" ",h].join("");if(v===" "||v===" /"||v===",,"||v===",,,"){let b=[o,u,f].join(""),x=b==="%%%"?100:b===""?255:0;if(x){let _=[I0(+a/x,0,1),I0(+l/x,0,1),I0(+d/x,0,1),p?yz(+p,g):1];if(vz(_))return _}}return}}let n=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(n){let[r,i,a,o,s,l,u,c,d]=n,f=[a||" ",s||" ",u].join("");if(f===" "||f===" /"||f===",,"||f===",,,"){let h=[+i,I0(+o,0,100),I0(+l,0,100),c?yz(+c,d):1];if(vz(h))return BBe(h)}}}function O3(e){return parseInt(e.padEnd(2,e),16)/255}function yz(e,t){return I0(t?e/100:e,0,1)}function I0(e,t,n){return Math.min(Math.max(t,e),n)}function vz(e){return!e.some(Number.isNaN)}const NBe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function Fd(e,t,n){return e+n*(t-e)}function zm(e,t,n){return e.map((r,i)=>Fd(r,t[i],n))}function VBe(e){return e==="rgb"||e==="hcl"||e==="lab"}var Ni,Kt=(Ni=class{constructor(t,n,r,i=1,a=!0){this.r=t,this.g=n,this.b=r,this.a=i,a||(this.r*=i,this.g*=i,this.b*=i,i||this.overwriteGetter("rgb",[t,n,r,i]))}static parse(t){if(t instanceof Ni)return t;if(typeof t!="string")return;let n=zBe(t);if(n)return new Ni(...n,!1)}get rgb(){let{r:t,g:n,b:r,a:i}=this,a=i||1/0;return this.overwriteGetter("rgb",[t/a,n/a,r/a,i])}get hcl(){return this.overwriteGetter("hcl",RBe(this.rgb))}get lab(){return this.overwriteGetter("lab",CJ(this.rgb))}overwriteGetter(t,n){return Object.defineProperty(this,t,{value:n}),n}toString(){let[t,n,r,i]=this.rgb;return`rgba(${[t,n,r].map(a=>Math.round(a*255)).join(",")},${i})`}static interpolate(t,n,r,i="rgb"){switch(i){case"rgb":{let[a,o,s,l]=zm(t.rgb,n.rgb,r);return new Ni(a,o,s,l,!1)}case"hcl":{let[a,o,s,l]=t.hcl,[u,c,d,f]=n.hcl,h,p;if(!isNaN(a)&&!isNaN(u)){let _=u-a;u>a&&_>180?_-=360:u<a&&a-u>180&&(_+=360),h=a+r*_}else isNaN(a)?isNaN(u)?h=NaN:(h=u,(s===1||s===0)&&(p=c)):(h=a,(d===1||d===0)&&(p=o));let[g,v,b,x]=OBe([h,p??Fd(o,c,r),Fd(s,d,r),Fd(l,f,r)]);return new Ni(g,v,b,x,!1)}case"lab":{let[a,o,s,l]=TJ(zm(t.lab,n.lab,r));return new Ni(a,o,s,l,!1)}}}},Ni.black=new Ni(0,0,0,1),Ni.white=new Ni(1,1,1,1),Ni.transparent=new Ni(0,0,0,0),Ni.red=new Ni(1,0,0,1),Ni);const jBe=["bottom","center","top"];var mT=class{constructor(t,n,r,i,a,o){this.text=t,this.image=n,this.scale=r,this.fontStack=i,this.textColor=a,this.verticalAlign=o}},Pc=class jb{constructor(t){this.sections=t}static fromString(t){return new jb([new mT(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof jb?t:jb.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},hu=class ry{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ry)return t;if(typeof t=="number")return new ry([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let n of t)if(typeof n!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new ry(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,n,r){return new ry(zm(t.values,n.values,r))}},pu=class iy{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof iy)return t;if(typeof t=="number")return new iy([t]);if(Array.isArray(t)){for(let n of t)if(typeof n!="number")return;return new iy(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,n,r){return new iy(zm(t.values,n.values,r))}},$s=class ay{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ay)return t;if(typeof t=="string"){let r=Kt.parse(t);return r?new ay([r]):void 0}if(!Array.isArray(t))return;let n=[];for(let r of t){if(typeof r!="string")return;let i=Kt.parse(r);if(!i)return;n.push(i)}return new ay(n)}toString(){return JSON.stringify(this.values)}static interpolate(t,n,r,i="rgb"){let a=[];if(t.values.length!=n.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${n.values.length}), cannot interpolate.`);for(let o=0;o<t.values.length;o++)a.push(Kt.interpolate(t.values[o],n.values[o],r,i));return new ay(a)}},Dr=class extends Error{constructor(e,t){super(e),this.name="RuntimeError",this.path=t}toJSON(){return this.message}};const UBe=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);var lu=class Ub{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Ub)return t;if(!(!Array.isArray(t)||t.length<1||t.length%2!=0)){for(let n=0;n<t.length;n+=2){let r=t[n],i=t[n+1];if(typeof r!="string"||!UBe.has(r)||!Array.isArray(i)||i.length!==2||typeof i[0]!="number"||typeof i[1]!="number")return}return new Ub(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,n,r,i){let a=t.values,o=n.values;if(a.length!==o.length)throw new Dr(`Cannot interpolate values of different length. from: ${t.toString()}, to: ${n.toString()}`,i);let s=[];for(let l=0;l<a.length;l+=2){if(a[l]!==o[l])throw new Dr(`Cannot interpolate values containing mismatched anchors. from[${l}]: ${a[l]}, to[${l}]: ${o[l]}`,i);s.push(a[l]);let[u,c]=a[l+1],[d,f]=o[l+1];s.push([Fd(u,d,r),Fd(c,f,r)])}return new Ub(s)}},uu=class kJ{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(t){return t?new kJ({name:t,available:!1}):null}},gf=class $0{constructor(t,n,r){this.from=t,this.to=n,this.transition=r}toString(){return this.from===this.to&&this.transition===1?this.from:JSON.stringify([this.from,this.to,this.transition])}static interpolate(t,n,r){return new $0(t,n,r)}static parse(t){if(t instanceof $0)return t;if(Array.isArray(t)&&t.length===3&&typeof t[0]=="string"&&typeof t[1]=="string"&&typeof t[2]=="number")return new $0(t[0],t[1],t[2]);if(typeof t=="object"&&typeof t.from=="string"&&typeof t.to=="string"&&typeof t.transition=="number")return new $0(t.from,t.to,t.transition);if(typeof t=="string")return new $0(t,t,1)}},aP=class{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}};function EJ(e,t,n,r){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof n=="number"&&n>=0&&n<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Nm(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof gf||e instanceof Kt||e instanceof aP||e instanceof Pc||e instanceof hu||e instanceof pu||e instanceof $s||e instanceof lu||e instanceof uu)return!0;if(Array.isArray(e)){for(let t of e)if(!Nm(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!Nm(e[t]))return!1;return!0}return!1}function ni(e){if(e===null)return Av;if(typeof e=="string")return Xt;if(typeof e=="boolean")return ln;if(typeof e=="number")return ct;if(e instanceof Kt)return dl;if(e instanceof gf)return W6;if(e instanceof aP)return G6;if(e instanceof Pc)return Pv;if(e instanceof hu)return Z6;if(e instanceof pu)return K6;if(e instanceof $s)return C2;if(e instanceof lu)return Y6;if(e instanceof uu)return Dv;if(Array.isArray(e)){let t=e.length,n;for(let r of e){let i=ni(r);if(!n)n=i;else{if(n===i)continue;n=Jt;break}}return _a(n||Jt,t)}return Ph}function $y(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof Kt||e instanceof gf||e instanceof Pc||e instanceof hu||e instanceof pu||e instanceof $s||e instanceof lu||e instanceof uu?e.toString():JSON.stringify(e)}var Vm=class MJ{constructor(t,n){this.type=t,this.value=n}static parse(t,n){if(t.length!==2)return n.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!Nm(t[1]))return n.error(`invalid value of type "${typeof t[1]}"`);let r=t[1],i=ni(r),a=n.expectedType;return i.kind==="array"&&i.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(i=a),new MJ(i,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}};const HBe=["Unknown","Point","LineString","Polygon"];var AJ=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?HBe[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let n=this._parseColorCache.get(t);return n||(n=Kt.parse(t),this._parseColorCache.set(t,n)),n}};function X6(e,t,n){let r=e.length-1,i=0,a=r,o=0,s,l;for(;i<=a;)if(o=Math.floor((i+a)/2),s=e[o],l=e[o+1],s<=t){if(o===r||t<l)return o;i=o+1}else if(s>t)a=o-1;else throw new Dr("Input is not a number.",n);return 0}var oP=class PJ{constructor(t,n,r,i){this.type=t,this.input=n,this.key=i,this.labels=[],this.outputs=[];for(let[a,o]of r)this.labels.push(a),this.outputs.push(o)}static parse(t,n){if(t.length-1<4)return n.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return n.error("Expected an even number of arguments.");let r=n.parse(t[1],1,ct);if(!r)return null;let i=[],a=null;n.expectedType&&n.expectedType.kind!=="value"&&(a=n.expectedType);for(let o=1;o<t.length;o+=2){let s=o===1?-1/0:t[o],l=t[o+1],u=o,c=o+1;if(typeof s!="number")return n.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
22omputed expressions) for the input values.',u);if(i.length&&i[i.length-1][0]>=s)return n.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let d=n.parse(l,c,a);if(!d)return null;a||=d.type,i.push([s,d])}return new PJ(a,r,i,n.key)}evaluate(t){let n=this.labels,r=this.outputs;if(n.length===1)return r[0].evaluate(t);let i=this.input.evaluate(t);if(i<=n[0])return r[0].evaluate(t);let a=n.length;return i>=n[a-1]?r[a-1].evaluate(t):r[X6(n,i,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let n of this.outputs)t(n)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};function qBe(e,t,n,r){let i=3*e,a=3*(n-e)-i,o=1-i-a,s=3*t,l=3*(r-t)-s,u=1-s-l;return function(c,d=1e-6){if(c<=0)return 0;if(c>=1)return 1;let f=c;for(let g=0;g<8;g++){let v=((o*f+a)*f+i)*f-c;if(Math.abs(v)<d)return((u*f+l)*f+s)*f;let b=(3*o*f+2*a)*f+i;if(Math.abs(b)<1e-6)break;f-=v/b}let h=0,p=1;f=c;for(let g=0;g<20;g++){let v=((o*f+a)*f+i)*f;if(Math.abs(v-c)<d)break;c>v?h=f:p=f,f=(h+p)*.5}return((u*f+l)*f+s)*f}}var Ls=class gT{constructor(t,n,r,i,a,o){this.type=t,this.operator=n,this.interpolation=r,this.input=i,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of a)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,n,r,i){let a=0;if(t.name==="exponential")a=h9(n,t.base,r,i);else if(t.name==="linear")a=h9(n,1,r,i);else if(t.name==="cubic-bezier"){let o=t.controlPoints;a=qBe(o[0],o[1],o[2],o[3])(h9(n,1,r,i))}return a}static parse(t,n){let[r,i,a,...o]=t;if(!Array.isArray(i)||i.length===0)return n.error("Expected an interpolation type expression.",1);if(i[0]==="linear")i={name:"linear"};else if(i[0]==="exponential"){let u=i[1];if(typeof u!="number")return n.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:u}}else if(i[0]==="cubic-bezier"){let u=i.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return n.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:u}}else return n.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(t.length-1<4)return n.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(a=n.parse(a,2,ct),!a)return null;let s=[],l=null;(r==="interpolate-hcl"||r==="interpolate-lab")&&n.expectedType!=C2?l=dl:n.expectedType&&n.expectedType.kind!=="value"&&(l=n.expectedType);for(let u=0;u<o.length;u+=2){let c=o[u],d=o[u+1],f=u+3,h=u+4;if(typeof c!="number")return n.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',f);if(s.length&&s[s.length-1][0]>=c)return n.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);let p=n.parse(d,h,l);if(!p)return null;l||=p.type,s.push([c,p])}return!ud(l,ct)&&!ud(l,W6)&&!ud(l,dl)&&!ud(l,Z6)&&!ud(l,K6)&&!ud(l,C2)&&!ud(l,Y6)&&!ud(l,_a(ct))?n.error(`Type ${Nr(l)} is not interpolatable.`):new gT(l,r,i,a,s,n.key)}evaluate(t){let n=this.labels,r=this.outputs;if(n.length===1)return r[0].evaluate(t);let i=this.input.evaluate(t);if(i<=n[0])return r[0].evaluate(t);let a=n.length;if(i>=n[a-1])return r[a-1].evaluate(t);let o=X6(n,i,this.key),s=n[o],l=n[o+1],u=gT.interpolationFactor(this.interpolation,i,s,l),c=r[o].evaluate(t),d=r[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return Fd(c,d,u);case"color":return Kt.interpolate(c,d,u);case"padding":return hu.interpolate(c,d,u);case"colorArray":return $s.interpolate(c,d,u);case"numberArray":return pu.interpolate(c,d,u);case"variableAnchorOffsetCollection":return lu.interpolate(c,d,u,this.key);case"array":return zm(c,d,u);case"projectionDefinition":return gf.interpolate(c,d,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return Kt.interpolate(c,d,u,"hcl");case"colorArray":return $s.interpolate(c,d,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return Kt.interpolate(c,d,u,"lab");case"colorArray":return $s.interpolate(c,d,u,"lab")}}}eachChild(t){t(this.input);for(let n of this.outputs)t(n)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};function h9(e,t,n,r){let i=r-n,a=e-n;return i===0?0:t===1?a/i:(t**+a-1)/(t**+i-1)}const Lr={color:Kt.interpolate,number:Fd,padding:hu.interpolate,numberArray:pu.interpolate,colorArray:$s.interpolate,variableAnchorOffsetCollection:lu.interpolate,array:zm};var DJ=class IJ{constructor(t){this.type=Pv,this.sections=t}static parse(t,n){if(t.length<2)return n.error("Expected at least one argument.");let r=t[1];if(!Array.isArray(r)&&typeof r=="object")return n.error("First argument must be an image or text section.");let i=[],a=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=n.parse(s["font-scale"],1,ct),!l))return null;let u=null;if(s["text-font"]&&(u=n.parse(s["text-font"],1,_a(Xt)),!u))return null;
vendor: 59,352 bytes, line 22
22let c=null;if(s["text-color"]&&(c=n.parse(s["text-color"],1,dl),!c))return null;let d=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!jBe.includes(s["vertical-align"]))return n.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(d=n.parse(s["vertical-align"],1,Xt),!d)return null}let f=i[i.length-1];f.scale=l,f.font=u,f.textColor=c,f.verticalAlign=d}else{let l=n.parse(t[o],1,Jt);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return n.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,i.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new IJ(i)}evaluate(t){return new Pc(this.sections.map(n=>{let r=n.content.evaluate(t);return ni(r)===Dv?new mT("",r,null,null,null,n.verticalAlign?n.verticalAlign.evaluate(t):null):new mT($y(r),null,n.scale?n.scale.evaluate(t):null,n.font?n.font.evaluate(t).join(","):null,n.textColor?n.textColor.evaluate(t):null,n.verticalAlign?n.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let n of this.sections)t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor),n.verticalAlign&&t(n.verticalAlign)}outputDefined(){return!1}};function $J(e,t,n=0,r=e.length-1,i=WBe){for(;r>n;){if(r-n>600){let l=r-n+1,u=t-n+1,c=Math.log(l),d=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*d*(l-d)/l)*(u-l/2<0?-1:1);$J(e,t,Math.max(n,Math.floor(t-u*d/l+f)),Math.min(r,Math.floor(t+(l-u)*d/l+f)),i)}let a=e[t],o=n,s=r;for(Ig(e,n,t),i(e[r],a)>0&&Ig(e,n,r);o<s;){for(Ig(e,o,s),o++,s--;i(e[o],a)<0;)o++;for(;i(e[s],a)>0;)s--}i(e[n],a)===0?Ig(e,n,s):(s++,Ig(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}}function Ig(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function WBe(e,t){return e<t?-1:+(e>t)}function J6(e,t){if(e.length<=1)return[e];let n=[],r,i;for(let a of e){let o=ZBe(a);o!==0&&(a.area=Math.abs(o),i===void 0&&(i=o<0),i===o<0?(r&&n.push(r),r=[a]):r.push(a))}if(r&&n.push(r),t>1)for(let a=0;a<n.length;a++)n[a].length<=t||($J(n[a],t,1,n[a].length-1,GBe),n[a]=n[a].slice(0,t));return n}function GBe(e,t){return t.area-e.area}function ZBe(e){let t=0;for(let n=0,r=e.length,i=r-1,a,o;n<r;i=n++)a=e[n],o=e[i],t+=(o.x-a.x)*(a.y+o.y);return t}const B3={string:Xt,number:ct,boolean:ln,object:Ph};var Ju=class LJ{constructor(t,n,r){this.type=t,this.args=n,this.key=r}static parse(t,n){if(t.length<2)return n.error("Expected at least one argument.");let r=1,i,a=t[0];if(a==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in B3)||u==="object")return n.error('The item type argument of "array" must be one of string, number, boolean',1);s=B3[u],r++}else s=Jt;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return n.error('The length argument to "array" must be a positive integer literal',2);l=t[2],r++}i=_a(s,l)}else{if(!B3[a])throw Error(`Types doesn't contain name = ${a}`);i=B3[a]}let o=[];for(;r<t.length;r++){let s=n.parse(t[r],r,Jt);if(!s)return null;o.push(s)}return new LJ(i,o,n.key)}evaluate(t){for(let n=0;n<this.args.length;n++){let r=this.args[n].evaluate(t);if(!T2(this.type,ni(r)))return r;if(n===this.args.length-1)throw new Dr(`Expected value to be of type ${Nr(this.type)}, but found ${Nr(ni(r))} instead.`,this.key)}throw Error()}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};const _z={"to-boolean":ln,"to-color":dl,"to-number":ct,"to-string":Xt};var G0=class RJ{constructor(t,n,r){this.type=t,this.args=n,this.key=r}static parse(t,n){if(t.length<2)return n.error("Expected at least one argument.");let r=t[0];if(!_z[r])throw Error(`Can't parse ${r} as it is not part of the known types`);if((r==="to-boolean"||r==="to-string")&&t.length!==2)return n.error("Expected one argument.");let i=_z[r],a=[];for(let o=1;o<t.length;o++){let s=n.parse(t[o],o,Jt);if(!s)return null;a.push(s)}return new RJ(i,a,n.key)}evaluate(t){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(t);case"color":{let n,r;for(let i of this.args){if(n=i.evaluate(t),r=null,n instanceof Kt)return n;if(typeof n=="string"){let a=t.parseColor(n);if(a)return a}else if(Array.isArray(n)&&(r=n.length<3||n.length>4?`Invalid rgba value ${JSON.stringify(n)}: expected an array containing either three or four numeric values.`:EJ(n[0],n[1],n[2],n[3]),!r))return new Kt(n[0]/255,n[1]/255,n[2]/255,n[3])}throw new Dr(r||`Could not parse color from value '${typeof n=="string"?n:JSON.stringify(n)}'`,this.key)}case"padding":{let n;for(let r of this.args){n=r.evaluate(t);let i=hu.parse(n);if(i)return i}throw new Dr(`Could not parse padding from value '${typeof n=="string"?n:JSON.stringify(n)}'`,this.key)}case"numberArray":{let n;for(let r of this.args){n=r.evaluate(t);let i=pu.parse(n);if(i)return i}throw new Dr(`Could not parse numberArray from value '${typeof n=="string"?n:JSON.stringify(n)}'`,this.key)}case"colorArray":{let n;for(let r of this.args){n=r.evaluate(t);let i=$s.parse(n);if(i)return i}throw new Dr(`Could not parse colorArray from value '${typeof n=="string"?n:JSON.stringify(n)}'`,this.key)}case"variableAnchorOffsetCollection":{let n;for(let r of this.args){n=r.evaluate(t);let i=lu.parse(n);if(i)return i}throw new Dr(`Could not parse variableAnchorOffsetCollection from value '${typeof n=="string"?n:JSON.stringify(n)}'`,this.key)}case"number":{let n=null;for(let r of this.args){if(n=r.evaluate(t),n===null)return 0;let i=Number(n);if(!isNaN(i))return i}throw new Dr(`Could not convert ${JSON.stringify(n)} to number.`,this.key)}case"formatted":return Pc.fromString($y(this.args[0].evaluate(t)));case"resolvedImage":return uu.fromString($y(this.args[0].evaluate(t)));case"projectionDefinition":{let n=this.args[0].evaluate(t);if(gf.parse(n))return n;throw new Dr(`Could not parse projectionDefinition from value '${typeof n=="string"?n:JSON.stringify(n)}'`,this.key)}default:return $y(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},OJ=class BJ{constructor(t,n){this.type=n.type,this.bindings=[].concat(t),this.result=n}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let n of this.bindings)t(n[1]);t(this.result)}static parse(t,n){if(t.length<4)return n.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let r=[];for(let a=1;a<t.length-1;a+=2){let o=t[a];if(typeof o!="string")return n.error(`Expected string, but found ${typeof o} instead.`,a);if(/[^a-zA-Z0-9_]/.test(o))return n.error("Variable names must contain only alphanumeric characters or '_'.",a);let s=n.parse(t[a+1],a+1);if(!s)return null;r.push([o,s])}let i=n.parse(t[t.length-1],t.length-1,n.expectedType,r);return i?new BJ(r,i):null}outputDefined(){return this.result.outputDefined()}},FJ=class zJ{constructor(t,n){this.type=n.type,this.name=t,this.boundExpression=n}static parse(t,n){if(t.length!==2||typeof t[1]!="string")return n.error("'var' expression requires exactly one string literal argument.");let r=t[1];return n.scope.has(r)?new zJ(r,n.scope.get(r)):n.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}},KBe=class NJ{constructor(t,n,r,i){this.type=t,this.index=n,this.input=r,this.key=i}static parse(t,n){if(t.length!==3)return n.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let r=n.parse(t[1],1,ct),i=n.parse(t[2],2,_a(n.expectedType||Jt));if(!r||!i)return null;let a=i.type;return new NJ(a.itemType,r,i,n.key)}evaluate(t){let n=this.index.evaluate(t),r=this.input.evaluate(t);if(n<0)throw new Dr(`Array index out of bounds: ${n} < 0.`,this.key);if(n>=r.length)throw new Dr(`Array index out of bounds: ${n} > ${r.length-1}.`,this.key);if(n!==Math.floor(n))throw new Dr(`Array index must be an integer, but found ${n} instead.`,this.key);return r[n]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},YBe=class VJ{constructor(t,n,r){this.needle=t,this.haystack=n,this.key=r,this.type=ln}static parse(t,n){if(t.length!==3)return n.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let r=n.parse(t[1],1,Jt),i=n.parse(t[2],2,Jt);return!r||!i?null:iP(r.type,[ln,Xt,ct,Av,Jt])?new VJ(r,i,n.key):n.error(`Expected first argument to be of type boolean, string, number or null, but found ${Nr(r.type)} instead`)}evaluate(t){let n=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Dh(n,["boolean","string","number","null"]))throw new Dr(`Expected first argument to be of type boolean, string, number or null, but found ${Nr(ni(n))} instead.`,this.key);if(!Dh(r,["string","array"]))throw new Dr(`Expected second argument to be of type array or string, but found ${Nr(ni(r))} instead.`,this.key);return r.indexOf(n)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},XBe=class yT{constructor(t,n,r,i){this.needle=t,this.haystack=n,this.key=r,this.fromIndex=i,this.type=ct}static parse(t,n){if(t.length<=2||t.length>=5)return n.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let r=n.parse(t[1],1,Jt),i=n.parse(t[2],2,Jt);if(!r||!i)return null;if(!iP(r.type,[ln,Xt,ct,Av,Jt]))return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${Nr(r.type)} instead`);if(t.length===4){let a=n.parse(t[3],3,ct);return a?new yT(r,i,n.key,a):null}return new yT(r,i,n.key)}evaluate(t){let n=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Dh(n,["boolean","string","number","null"]))throw new Dr(`Expected first argument to be of type boolean, string, number or null, but found ${Nr(ni(n))} instead.`,this.key);let i;if(this.fromIndex&&(i=this.fromIndex.evaluate(t)),Dh(r,["string"])){let a=r.indexOf(n,i);return a===-1?-1:[...r.slice(0,a)].length}if(Dh(r,["array"]))return r.indexOf(n,i);throw new Dr(`Expected second argument to be of type array or string, but found ${Nr(ni(r))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},JBe=class jJ{constructor(t,n,r,i,a,o){this.inputType=t,this.type=n,this.input=r,this.cases=i,this.outputs=a,this.otherwise=o}static parse(t,n){if(t.length<5)return n.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return n.error("Expected an even number of arguments.");let r,i;n.expectedType&&n.expectedType.kind!=="value"&&(i=n.expectedType);let a={},o=[];for(let u=2;u<t.length-1;u+=2){let c=t[u],d=t[u+1];Array.isArray(c)||(c=[c]);let f=n.concat(u);if(c.length===0)return f.error("Expected at least one branch label.");for(let p of c){if(typeof p!="number"&&typeof p!="string")return f.error("Branch labels must be numbers or strings.");if(typeof p=="number"&&Math.abs(p)>2**53-1)return f.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof p=="number"&&Math.floor(p)!==p)return f.error("Numeric branch labels must be integer values.");if(!r)r=ni(p);else if(f.checkSubtype(r,ni(p)))return null;if(a[String(p)]!==void 0)return f.error("Branch labels must be unique.");a[String(p)]=o.length}let h=n.parse(d,u,i);if(!h)return null;i||=h.type,o.push(h)}let s=n.parse(t[1],1,Jt);if(!s)return null;let l=n.parse(t[t.length-1],t.length-1,i);return!l||s.type.kind!=="value"&&n.concat(1).checkSubtype(r,s.type)?null:new jJ(r,i,s,a,o,l)}evaluate(t){let n=this.input.evaluate(t);return(ni(n)===this.inputType&&this.outputs[this.cases[n]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},QBe=class UJ{constructor(t,n,r){this.type=t,this.branches=n,this.otherwise=r}static parse(t,n){if(t.length<4)return n.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return n.error("Expected an odd number of arguments.");let r;n.expectedType&&n.expectedType.kind!=="value"&&(r=n.expectedType);let i=[];for(let o=1;o<t.length-1;o+=2){let s=n.parse(t[o],o,ln);if(!s)return null;let l=n.parse(t[o+1],o+1,r);if(!l)return null;i.push([s,l]),r||=l.type}let a=n.parse(t[t.length-1],t.length-1,r);if(!a)return null;if(!r)throw Error("Can't infer output type");return new UJ(r,i,a)}evaluate(t){for(let[n,r]of this.branches)if(n.evaluate(t))return r.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(let[n,r]of this.branches)t(n),t(r);t(this.otherwise)}outputDefined(){return this.branches.every(([t,n])=>n.outputDefined())&&this.otherwise.outputDefined()}},eFe=class vT{constructor(t,n,r,i,a){this.type=t,this.input=n,this.beginIndex=r,this.key=i,this.endIndex=a}static parse(t,n){if(t.length<=2||t.length>=5)return n.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let r=n.parse(t[1],1,Jt),i=n.parse(t[2],2,ct);if(!r||!i)return null;if(!iP(r.type,[_a(Jt),Xt,Jt]))return n.error(`Expected first argument to be of type array or string, but found ${Nr(r.type)} instead`);if(t.length===4){let a=n.parse(t[3],3,ct);return a?new vT(r.type,r,i,n.key,a):null}return new vT(r.type,r,i,n.key)}evaluate(t){let n=this.input.evaluate(t),r=this.beginIndex.evaluate(t),i;if(this.endIndex&&(i=this.endIndex.evaluate(t)),Dh(n,["string"]))return[...n].slice(r,i).join("");if(Dh(n,["array"]))return n.slice(r,i);throw new Dr(`Expected first argument to be of type array or string, but found ${Nr(ni(n))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},HJ=class _T{constructor(t,n){this.type=t,this.args=n}static parse(t,n){if(t.length<2)return n.error("Expected at least one argument.");let r=null,i=n.expectedType;i&&i.kind!=="value"&&(r=i);let a=[];for(let o of t.slice(1)){let s=n.parse(o,1+a.length,r,void 0,{typeAnnotation:"omit"});if(!s)return null;r||=s.type,a.push(s)}if(!r)throw Error("No output type");return i&&a.some(o=>T2(i,o.type))?new _T(Jt,a):new _T(r,a)}evaluate(t){let n=null,r=0,i;for(let a of this.args)if(r++,n=a.evaluate(t),n&&n instanceof uu&&!n.available&&(i||=n.name,n=null,r===this.args.length&&(n=i)),n!==null)break;return n}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};function bz(e,t){return e==="=="||e==="!="?t.kind==="boolean"||t.kind==="string"||t.kind==="number"||t.kind==="null"||t.kind==="value":t.kind==="string"||t.kind==="number"||t.kind==="value"}function tFe(e,t,n){return t===n}function nFe(e,t,n){return t!==n}function rFe(e,t,n){return t<n}function iFe(e,t,n){return t>n}function aFe(e,t,n){return t<=n}function oFe(e,t,n){return t>=n}function qJ(e,t,n,r){return r.compare(t,n)===0}function sFe(e,t,n,r){return!qJ(e,t,n,r)}function lFe(e,t,n,r){return r.compare(t,n)<0}function uFe(e,t,n,r){return r.compare(t,n)>0}function cFe(e,t,n,r){return r.compare(t,n)<=0}function dFe(e,t,n,r){return r.compare(t,n)>=0}function I1(e,t,n){let r=e!=="=="&&e!=="!=";return class WJ{constructor(a,o,s,l){this.lhs=a,this.rhs=o,this.key=s,this.collator=l,this.type=ln,this.hasUntypedArgument=a.type.kind==="value"||o.type.kind==="value"}static parse(a,o){if(a.length!==3&&a.length!==4)return o.error("Expected two or three arguments.");let s=a[0],l=o.parse(a[1],1,Jt);if(!l)return null;if(!bz(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${Nr(l.type)}'.`);let u=o.parse(a[2],2,Jt);if(!u)return null;if(!bz(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${Nr(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${Nr(l.type)}' and '${Nr(u.type)}'.`);r&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Ju(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Ju(l.type,[u],o.key)));let c=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(c=o.parse(a[3],3,G6),!c)return null}return new WJ(l,u,o.key,c)}evaluate(a){let o=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(r&&this.hasUntypedArgument){let l=ni(o),u=ni(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new Dr(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!r&&this.hasUntypedArgument){let l=ni(o),u=ni(s);if(l.kind!=="string"||u.kind!=="string")return t(a,o,s)}return this.collator?n(a,o,s,this.collator.evaluate(a)):t(a,o,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}const fFe=I1("==",tFe,qJ),hFe=I1("!=",nFe,sFe),pFe=I1("<",rFe,lFe),mFe=I1(">",iFe,uFe),gFe=I1("<=",aFe,cFe),yFe=I1(">=",oFe,dFe);var GJ=class ZJ{constructor(t,n,r){this.type=G6,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=n}static parse(t,n){if(t.length!==2)return n.error("Expected one argument.");let r=t[1];if(typeof r!="object"||Array.isArray(r))return n.error("Collator options argument must be an object.");let i=n.parse(r["case-sensitive"]!==void 0&&r["case-sensitive"],1,ln);if(!i)return null;let a=n.parse(r["diacritic-sensitive"]!==void 0&&r["diacritic-sensitive"],1,ln);if(!a)return null;let o=null;return r.locale&&(o=n.parse(r.locale,1,Xt),!o)?null:new ZJ(i,a,o)}evaluate(t){return new aP(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},vFe=class KJ{constructor(t,n,r,i,a,o){this.type=Xt,this.number=t,this.locale=n,this.currency=r,this.unit=i,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(t,n){if(t.length!==3)return n.error("Expected two arguments.");let r=n.parse(t[1],1,ct);if(!r)return null;let i=t[2];if(typeof i!="object"||Array.isArray(i))return n.error("NumberFormat options argument must be an object.");let a=null;if(i.locale&&(a=n.parse(i.locale,1,Xt),!a))return null;let o=null;if(i.currency&&(o=n.parse(i.currency,1,Xt),!o))return null;let s=null;if(i.unit&&(s=n.parse(i.unit,1,Xt),!s))return null;if(o&&s)return n.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(i["min-fraction-digits"]&&(l=n.parse(i["min-fraction-digits"],1,ct),!l))return null;let u=null;return i["max-fraction-digits"]&&(u=n.parse(i["max-fraction-digits"],1,ct),!u)?null:new KJ(r,a,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},_Fe=class YJ{constructor(t){this.type=Dv,this.input=t}static parse(t,n){if(t.length!==2)return n.error("Expected two arguments.");let r=n.parse(t[1],1,Xt);return r?new YJ(r):n.error("No image name provided.")}evaluate(t){let n=this.input.evaluate(t),r=uu.fromString(n);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(n)>-1),r}eachChild(t){t(this.input)}outputDefined(){return!1}},bFe=class XJ{constructor(t,n){this.input=t,this.key=n,this.type=ct}static parse(t,n){if(t.length!==2)return n.error(`Expected 1 argument, but found ${t.length-1} instead.`);let r=n.parse(t[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?n.error(`Expected argument of type string or array, but found ${Nr(r.type)} instead.`):new XJ(r,n.key):null}evaluate(t){let n=this.input.evaluate(t);if(typeof n=="string")return[...n].length;if(Array.isArray(n))return n.length;throw new Dr(`Expected value to be of type string or array, but found ${Nr(ni(n))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}};const eu=8192;function xFe(e,t){let n=wFe(e[0]),r=CFe(e[1]),i=2**t.z;return[Math.round(n*i*eu),Math.round(r*i*eu)]}function sP(e,t){let n=2**t.z,r=(e[0]/eu+t.x)/n,i=(e[1]/eu+t.y)/n;return[SFe(r),TFe(i)]}function wFe(e){return(180+e)/360}function SFe(e){return e*360-180}function CFe(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function TFe(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function Iv(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function k2(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function kFe(e,t,n){return t[1]>e[1]!=n[1]>e[1]&&e[0]<(n[0]-t[0])*(e[1]-t[1])/(n[1]-t[1])+t[0]}function EFe(e,t,n){let r=e[0]-t[0],i=e[1]-t[1],a=e[0]-n[0],o=e[1]-n[1];return r*o-a*i===0&&r*a<=0&&i*o<=0}function Q6(e,t,n,r){let i=[t[0]-e[0],t[1]-e[1]];return DFe([r[0]-n[0],r[1]-n[1]],i)!==0&&!!(xz(e,t,n,r)&&xz(n,r,e,t))}function MFe(e,t,n){for(let r of n)for(let i=0;i<r.length-1;++i)if(Q6(e,t,r[i],r[i+1]))return!0;return!1}function $1(e,t,n=!1){let r=!1;for(let i of t)for(let a=0;a<i.length-1;a++){if(EFe(e,i[a],i[a+1]))return n;kFe(e,i[a],i[a+1])&&(r=!r)}return r}function AFe(e,t){for(let n of t)if($1(e,n))return!0;return!1}function JJ(e,t){for(let n of e)if(!$1(n,t))return!1;for(let n=0;n<e.length-1;++n)if(MFe(e[n],e[n+1],t))return!1;return!0}function PFe(e,t){for(let n of t)if(JJ(e,n))return!0;return!1}function DFe(e,t){return e[0]*t[1]-e[1]*t[0]}function xz(e,t,n,r){let i=e[0]-n[0],a=e[1]-n[1],o=t[0]-n[0],s=t[1]-n[1],l=r[0]-n[0],u=r[1]-n[1],c=i*u-l*a,d=o*u-l*s;return c>0&&d<0||c<0&&d>0}function lP(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=[];for(let o=0;o<e[i].length;o++){let s=xFe(e[i][o],n);Iv(t,s),a.push(s)}r.push(a)}return r}function QJ(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=lP(e[i],t,n);r.push(a)}return r}function eQ(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){let i=r*.5,a=e[0]-n[0]>i?-r:n[0]-e[0]>i?r:0;a===0&&(a=e[0]-n[2]>i?-r:n[2]-e[0]>i?r:0),e[0]+=a}Iv(t,e)}function IFe(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function wz(e,t,n,r){let i=2**r.z*eu,a=[r.x*eu,r.y*eu],o=[];for(let s of e)for(let l of s){let u=[l.x+a[0],l.y+a[1]];eQ(u,t,n,i),o.push(u)}return o}function Sz(e,t,n,r){let i=2**r.z*eu,a=[r.x*eu,r.y*eu],o=[];for(let s of e){let l=[];for(let u of s){let c=[u.x+a[0],u.y+a[1]];Iv(t,c),l.push(c)}o.push(l)}if(t[2]-t[0]<=i/2){IFe(t);for(let s of o)for(let l of s)eQ(l,t,n,i)}return o}function $Fe(e,t){let n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(t.type==="Polygon"){let a=lP(t.coordinates,r,i),o=wz(e.geometry(),n,r,i);if(!k2(n,r))return!1;for(let s of o)if(!$1(s,a))return!1}if(t.type==="MultiPolygon"){let a=QJ(t.coordinates,r,i),o=wz(e.geometry(),n,r,i);if(!k2(n,r))return!1;for(let s of o)if(!AFe(s,a))return!1}return!0}function LFe(e,t){let n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(t.type==="Polygon"){let a=lP(t.coordinates,r,i),o=Sz(e.geometry(),n,r,i);if(!k2(n,r))return!1;for(let s of o)if(!JJ(s,a))return!1}if(t.type==="MultiPolygon"){let a=QJ(t.coordinates,r,i),o=Sz(e.geometry(),n,r,i);if(!k2(n,r))return!1;for(let s of o)if(!PFe(s,a))return!1}return!0}var uP=class Hb{constructor(t,n){this.type=ln,this.geojson=t,this.geometries=n}static parse(t,n){if(t.length!==2)return n.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(Nm(t[1])){let r=t[1];if(r.type==="FeatureCollection"){let i=[];for(let a of r.features){let{type:o,coordinates:s}=a.geometry;o==="Polygon"&&i.push(s),o==="MultiPolygon"&&i.push(...s)}if(i.length)return new Hb(r,{type:"MultiPolygon",coordinates:i})}else if(r.type==="Feature"){let i=r.geometry.type;if(i==="Polygon"||i==="MultiPolygon")return new Hb(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new Hb(r,r)}return n.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return $Fe(t,this.geometries);if(t.geometryType()==="LineString")return LFe(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},tQ=class{constructor(t=[],n=(r,i)=>r<i?-1:+(r>i)){if(this.data=t,this.length=this.data.length,this.compare=n,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],n=this.data.pop();return--this.length>0&&(this.data[0]=n,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:n,compare:r}=this,i=n[t];for(;t>0;){let a=t-1>>1,o=n[a];if(r(i,o)>=0)break;n[t]=o,t=a}n[t]=i}_down(t){let{data:n,compare:r}=this,i=this.length>>1,a=n[t];for(;t<i;){let o=(t<<1)+1,s=o+1;if(s<this.length&&r(n[s],n[o])<0&&(o=s),r(n[o],a)>=0)break;n[t]=n[o],t=o}n[t]=a}};const Cz=Math.PI/180;var cP=class{constructor(t){let n=Cz*6378.137*1e3,r=Math.cos(t*Cz),i=1/(1-.0066943799901413165*(1-r*r)),a=Math.sqrt(i);this.kx=n*a*r,this.ky=n*a*i*.9933056200098587}distance(t,n){let r=this.wrap(t[0]-n[0])*this.kx,i=(t[1]-n[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,n){let r=1/0,i,a,o,s;for(let l=0;l<t.length-1;l++){let u=t[l][0],c=t[l][1],d=this.wrap(t[l+1][0]-u)*this.kx,f=(t[l+1][1]-c)*this.ky,h=0;(d!==0||f!==0)&&(h=(this.wrap(n[0]-u)*this.kx*d+(n[1]-c)*this.ky*f)/(d*d+f*f),h>1?(u=t[l+1][0],c=t[l+1][1]):h>0&&(u+=d/this.kx*h,c+=f/this.ky*h)),d=this.wrap(n[0]-u)*this.kx,f=(n[1]-c)*this.ky;let p=d*d+f*f;p<r&&(r=p,i=u,a=c,o=l,s=h)}return{point:[i,a],index:o,t:Math.max(0,Math.min(1,s))}}wrap(t){for(;t<-180;)t+=360;for(;t>180;)t-=360;return t}};function nQ(e,t){return t[0]-e[0]}function l5(e){return e[1]-e[0]+1}function Dc(e,t){return e[1]>=e[0]&&e[1]<t}function bT(e,t){if(e[0]>e[1])return[null,null];let n=l5(e);if(t){if(n===2)return[e,null];let i=Math.floor(n/2);return[[e[0],e[0]+i],[e[0]+i,e[1]]]}if(n===1)return[e,null];let r=Math.floor(n/2)-1;return[[e[0],e[0]+r],[e[0]+r+1,e[1]]]}function xT(e,t){if(!Dc(t,e.length))return[1/0,1/0,-1/0,-1/0];let n=[1/0,1/0,-1/0,-1/0];for(let r=t[0];r<=t[1];++r)Iv(n,e[r]);return n}function wT(e){let t=[1/0,1/0,-1/0,-1/0];for(let n of e)for(let r of n)Iv(t,r);return t}function Tz(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function dP(e,t,n){if(!Tz(e)||!Tz(t))return NaN;let r=0,i=0;return e[2]<t[0]&&(r=t[0]-e[2]),e[0]>t[2]&&(r=e[0]-t[2]),e[1]>t[3]&&(i=e[1]-t[3]),e[3]<t[1]&&(i=t[1]-e[3]),n.distance([0,0],[r,i])}function gh(e,t,n){let r=n.pointOnLine(t,e);return n.distance(e,r.point)}function fP(e,t,n,r,i){let a=Math.min(gh(e,[n,r],i),gh(t,[n,r],i)),o=Math.min(gh(n,[e,t],i),gh(r,[e,t],i));return Math.min(a,o)}function RFe(e,t,n,r,i){if(!(Dc(t,e.length)&&Dc(r,n.length)))return 1/0;let a=1/0;for(let o=t[0];o<t[1];++o){let s=e[o],l=e[o+1];for(let u=r[0];u<r[1];++u){let c=n[u],d=n[u+1];if(Q6(s,l,c,d))return 0;a=Math.min(a,fP(s,l,c,d,i))}}return a}function OFe(e,t,n,r,i){if(!(Dc(t,e.length)&&Dc(r,n.length)))return NaN;let a=1/0;for(let o=t[0];o<=t[1];++o)for(let s=r[0];s<=r[1];++s)if(a=Math.min(a,i.distance(e[o],n[s])),a===0)return a;return a}function BFe(e,t,n){if($1(e,t,!0))return 0;let r=1/0;for(let i of t){let a=i[0],o=i[i.length-1];if(a!==o&&(r=Math.min(r,gh(e,[o,a],n)),r===0))return r;let s=n.pointOnLine(i,e);if(r=Math.min(r,n.distance(e,s.point)),r===0)return r}return r}function FFe(e,t,n,r){if(!Dc(t,e.length))return NaN;for(let a=t[0];a<=t[1];++a)if($1(e[a],n,!0))return 0;let i=1/0;for(let a=t[0];a<t[1];++a){let o=e[a],s=e[a+1];for(let l of n)for(let u=0,c=l.length,d=c-1;u<c;d=u++){let f=l[d],h=l[u];if(Q6(o,s,f,h))return 0;i=Math.min(i,fP(o,s,f,h,r))}}return i}function kz(e,t){for(let n of e)for(let r of n)if($1(r,t,!0))return!0;return!1}function zFe(e,t,n,r=1/0){let i=wT(e),a=wT(t);if(r!==1/0&&dP(i,a,n)>=r)return r;if(k2(i,a)){if(kz(e,t))return 0}else if(kz(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,c=u-1;l<u;c=l++){let d=s[c],f=s[l];for(let h of t)for(let p=0,g=h.length,v=g-1;p<g;v=p++){let b=h[v],x=h[p];if(Q6(d,f,b,x))return 0;o=Math.min(o,fP(d,f,b,x,n))}}return o}function Ez(e,t,n,r,i,a){if(!a)return;let o=dP(xT(r,a),i,n);o<t&&e.push([o,a,[0,0]])}function F3(e,t,n,r,i,a,o){if(!a||!o)return;let s=dP(xT(r,a),xT(i,o),n);s<t&&e.push([s,a,o])}function u5(e,t,n,r,i=1/0){let a=Math.min(r.distance(e[0],n[0][0]),i);if(a===0)return a;let o=new tQ([[0,[0,e.length-1],[0,0]]],nQ),s=wT(n);for(;o.length>0;){let l=o.pop();if(l[0]>=a)continue;let u=l[1],c=t?50:100;if(l5(u)<=c){if(!Dc(u,e.length))return NaN;if(t){let d=FFe(e,u,n,r);if(isNaN(d)||d===0)return d;a=Math.min(a,d)}else for(let d=u[0];d<=u[1];++d){let f=BFe(e[d],n,r);if(a=Math.min(a,f),a===0)return 0}}else{let d=bT(u,t);Ez(o,a,r,e,s,d[0]),Ez(o,a,r,e,s,d[1])}}return a}function c5(e,t,n,r,i,a=1/0){let o=Math.min(a,i.distance(e[0],n[0]));if(o===0)return o;let s=new tQ([[0,[0,e.length-1],[0,n.length-1]]],nQ);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],c=l[2],d=t?50:100,f=r?50:100;if(l5(u)<=d&&l5(c)<=f){if(!Dc(u,e.length)&&Dc(c,n.length))return NaN;let h;if(t&&r)h=RFe(e,u,n,c,i),o=Math.min(o,h);else if(t&&!r){let p=e.slice(u[0],u[1]+1);for(let g=c[0];g<=c[1];++g)if(h=gh(n[g],p,i),o=Math.min(o,h),o===0)return o}else if(!t&&r){let p=n.slice(c[0],c[1]+1);for(let g=u[0];g<=u[1];++g)if(h=gh(e[g],p,i),o=Math.min(o,h),o===0)return o}else h=OFe(e,u,n,c,i),o=Math.min(o,h)}else{let h=bT(u,t),p=bT(c,r);F3(s,o,i,e,n,h[0],p[0]),F3(s,o,i,e,n,h[0],p[1]),F3(s,o,i,e,n,h[1],p[0]),F3(s,o,i,e,n,h[1],p[1])}}return o}function NFe(e,t){let n=e.geometry(),r=n.flat().map(o=>sP([o.x,o.y],e.canonical));if(n.length===0)return NaN;let i=new cP(r[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,c5(r,!1,[o.coordinates],!1,i,a));break;case"LineString":a=Math.min(a,c5(r,!1,o.coordinates,!0,i,a));break;case"Polygon":a=Math.min(a,u5(r,!1,o.coordinates,i,a))}if(a===0)return a}return a}function VFe(e,t){let n=e.geometry(),r=n.flat().map(o=>sP([o.x,o.y],e.canonical));if(n.length===0)return NaN;let i=new cP(r[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,c5(r,!0,[o.coordinates],!1,i,a));break;case"LineString":a=Math.min(a,c5(r,!0,o.coordinates,!0,i,a));break;case"Polygon":a=Math.min(a,u5(r,!0,o.coordinates,i,a))}if(a===0)return a}return a}function jFe(e,t){let n=e.geometry();if(n.length===0||n[0].length===0)return NaN;let r=J6(n,0).map(o=>o.map(s=>s.map(l=>sP([l.x,l.y],e.canonical)))),i=new cP(r[0][0][0][1]),a=1/0;for(let o of t)for(let s of r){switch(o.type){case"Point":a=Math.min(a,u5([o.coordinates],!1,s,i,a));break;case"LineString":a=Math.min(a,u5(o.coordinates,!0,s,i,a));break;case"Polygon":a=Math.min(a,zFe(s,o.coordinates,i,a))}if(a===0)return a}return a}function p9(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}var hP=class qb{constructor(t,n){this.type=ct,this.geojson=t,this.geometries=n}static parse(t,n){if(t.length!==2)return n.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(Nm(t[1])){let r=t[1];if(r.type==="FeatureCollection")return new qb(r,r.features.map(i=>p9(i.geometry)).flat());if(r.type==="Feature")return new qb(r,p9(r.geometry));if("type"in r&&"coordinates"in r)return new qb(r,p9(r))}return n.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return NFe(t,this.geometries);if(t.geometryType()==="LineString")return VFe(t,this.geometries);if(t.geometryType()==="Polygon")return jFe(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},UFe=class rQ{constructor(t){let n=null;for(let r of t)if(!n)n=r.type;else{if(n===r.type)continue;n=Jt;break}this.type=_a(n??Jt,t.length),this.arr=t}static parse(t,n){if(t.length!==2)return n.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!Nm(t[1]))return n.error(`invalid value of type "${typeof t[1]}"`);let r=t[1],i=ni(r);if(i.kind==="array"){let a=r,o=n.concat(1),s=[];for(let l=0;l<a.length;l++){let u=o.parse(a[l],l,Jt);if(!u)return null;s.push(u)}return new rQ(s)}return new Vm(i,r)}evaluate(t){return this.arr.map(n=>n.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},pP=class iQ{constructor(t){this.key=t,this.type=Jt}static parse(t,n){if(t.length!==2)return n.error(`Expected 1 argument, but found ${t.length-1} instead.`);let r=t[1];return r==null?n.error("Global state property must be defined."):typeof r=="string"?new iQ(r):n.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){let n=t.globals?.globalState;return!n||Object.keys(n).length===0?null:Iy(n,this.key)??null}eachChild(){}outputDefined(){return!1}};const fm={"==":fFe,"!=":hFe,">":mFe,"<":pFe,">=":yFe,"<=":gFe,array:Ju,at:KBe,boolean:Ju,case:QBe,coalesce:HJ,collator:GJ,format:DJ,image:_Fe,in:YBe,"index-of":XBe,interpolate:Ls,"interpolate-hcl":Ls,"interpolate-lab":Ls,length:bFe,let:OJ,literal:Vm,match:JBe,number:Ju,"number-format":vFe,object:Ju,semiliteral:UFe,slice:eFe,step:oP,string:Ju,"to-boolean":G0,"to-color":G0,"to-number":G0,"to-string":G0,var:FJ,within:uP,distance:hP,"global-state":pP};var ql=class extends Error{constructor(t,n){super(n),this.message=n,this.key=t}},HFe=class aQ{constructor(t,n=[]){this.parent=t,this.bindings={};for(let[r,i]of n)this.bindings[r]=i}concat(t){return new aQ(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},oQ=class sQ{constructor(t,n,r=[],i,a=new HFe,o=[]){this.registry=t,this.path=r,this.key=r.map(s=>`[${s}]`).join(""),this.scope=a,this.errors=o,this.expectedType=i,this._isConstant=n}parse(t,n,r,i,a={}){return n==null?this._parse(t,a):this.concat(n,r,i)._parse(t,a)}_parse(t,n){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let r=this.key;function i(a,o,s){return s==="assert"?new Ju(o,[a],r):s==="coerce"?new G0(o,[a],r):a}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let a=t[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[a];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=i(s,l,n.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=i(s,l,n.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof Vm)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new AJ;try{s=new Vm(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,n,r){let i=typeof t=="number"?this.path.concat(t):this.path,a=r?this.scope.concat(r):this.scope;return new sQ(this.registry,this._isConstant,i,n||null,a,this.errors)}error(t,...n){let r=`${this.key}${n.map(i=>`[${i}]`).join("")}`;this.errors.push(new ql(r,t))}checkSubtype(t,n){let r=T2(t,n);return r&&this.error(r),r}},Cp=class oy{constructor(t,n,r,i,a){this.name=t,this.type=n,this._evaluate=r,this.args=i,this.key=a}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,n){let r=t[0],i=oy.definitions[r];if(!i)return n.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,c]of s){l=new oQ(n.registry,d5,n.path,null,n.scope);let d=[],f=!1;for(let h=1;h<t.length;h++){let p=t[h],g=Array.isArray(u)?u[h-1]:u.type,v=l.parse(p,1+d.length,g);if(!v){f=!0;break}d.push(v)}if(!f){if(Array.isArray(u)&&u.length!==d.length){l.error(`Expected ${u.length} arguments, but found ${d.length} instead.`);continue}for(let h=0;h<d.length;h++){let p=Array.isArray(u)?u[h]:u.type,g=d[h];l.concat(h+1).checkSubtype(p,g.type)}if(l.errors.length===0)return new oy(r,a,c,d,n.key)}}if(s.length===1)n.errors.push(...l.errors);else{let u=(s.length?s:o).map(([d])=>WFe(d)).join(" | "),c=[];for(let d=1;d<t.length;d++){let f=n.parse(t[d],1+c.length);if(!f)return null;c.push(Nr(f.type))}n.error(`Expected arguments of type ${u}, but found (${c.join(", ")}) instead.`)}return null}static register(t,n){oy.definitions=n;for(let r in n)t[r]=oy}};function Mz(e,[t,n,r,i],a){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);let o=i?i.evaluate(e):1,s=EJ(t,n,r,o);if(s)throw new Dr(s,a);return new Kt(t/255,n/255,r/255,o,!1)}function Az(e,t){return e in t&&t[e]!==void 0}function m9(e,t){let n=t[e];return n===void 0?null:n}function qFe(e,t,n,r){for(;n<=r;){let i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}function Hf(e){return{type:e}}Cp.register(fm,{error:[DBe,[Xt],(e,[t],n)=>{throw new Dr(t.evaluate(e),n)}],typeof:[Xt,[Jt],(e,[t])=>Nr(ni(t.evaluate(e)))],"to-rgba":[_a(ct,4),[dl],(e,[t])=>{let[n,r,i,a]=t.evaluate(e).rgb;return[n*255,r*255,i*255,a]}],rgb:[dl,[ct,ct,ct],Mz],rgba:[dl,[ct,ct,ct,ct],Mz],has:{type:ln,overloads:[[[Xt],(e,[t])=>Az(t.evaluate(e),e.properties())],[[Xt,Ph],(e,[t,n])=>Az(t.evaluate(e),n.evaluate(e))]]},get:{type:Jt,overloads:[[[Xt],(e,[t])=>m9(t.evaluate(e),e.properties())],[[Xt,Ph],(e,[t,n])=>m9(t.evaluate(e),n.evaluate(e))]]},"feature-state":[Jt,[Xt],(e,[t])=>m9(t.evaluate(e),e.featureState||{})],properties:[Ph,[],e=>e.properties()],"geometry-type":[Xt,[],e=>e.geometryType()],id:[Jt,[],e=>e.id()],zoom:[ct,[],e=>e.globals.zoom],"heatmap-density":[ct,[],e=>e.globals.heatmapDensity||0],elevation:[ct,[],e=>e.globals.elevation||0],"line-progress":[ct,[],e=>e.globals.lineProgress||0],accumulated:[Jt,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[ct,Hf(ct),(e,t)=>{let n=0;for(let r of t)n+=r.evaluate(e);return n}],"*":[ct,Hf(ct),(e,t)=>{let n=1;for(let r of t)n*=r.evaluate(e);return n}],"-":{type:ct,overloads:[[[ct,ct],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[ct],(e,[t])=>-t.evaluate(e)]]},"/":[ct,[ct,ct],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[ct,[ct,ct],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[ct,[],()=>Math.LN2],pi:[ct,[],()=>Math.PI],e:[ct,[],()=>Math.E],"^":[ct,[ct,ct],(e,[t,n])=>t.evaluate(e)**+n.evaluate(e)],sqrt:[ct,[ct],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ct,[ct],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ct,[ct],(e,[t])=>Math.log(t.evaluate(e))],log2:[ct,[ct],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ct,[ct],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ct,[ct],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ct,[ct],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ct,[ct],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ct,[ct],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ct,[ct],(e,[t])=>Math.atan(t.evaluate(e))],min:[ct,Hf(ct),(e,t)=>Math.min(...t.map(n=>n.evaluate(e)))],max:[ct,Hf(ct),(e,t)=>Math.max(...t.map(n=>n.evaluate(e)))],abs:[ct,[ct],(e,[t])=>Math.abs(t.evaluate(e))],round:[ct,[ct],(e,[t])=>{let n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ct,[ct],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ct,[ct],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[ln,[Xt,Jt],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[ln,[Jt],(e,[t])=>e.id()===t.value],"filter-type-==":[ln,[Xt],(e,[t])=>e.geometryType()===t.value],"filter-<":[ln,[Xt,Jt],(e,[t,n])=>{let r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<i}],"filter-id-<":[ln,[Jt],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n<r}],"filter->":[ln,[Xt,Jt],(e,[t,n])=>{let r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[ln,[Jt],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[ln,[Xt,Jt],(e,[t,n])=>{let r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[ln,[Jt],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[ln,[Xt,Jt],(e,[t,n])=>{let r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[ln,[Jt],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[ln,[Jt],(e,[t])=>{let n=t.value,r=e.properties();return n in r&&r[n]!==void 0}],"filter-has-id":[ln,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[ln,[_a(Xt)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[ln,[_a(Jt)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[ln,[Xt,_a(Jt)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[ln,[Xt,_a(Jt)],(e,[t,n])=>qFe(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:ln,overloads:[[[ln,ln],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Hf(ln),(e,t)=>{for(let n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:ln,overloads:[[[ln,ln],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Hf(ln),(e,t)=>{for(let n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[ln,[ln],(e,[t])=>!t.evaluate(e)],"is-supported-script":[ln,[Xt],(e,[t])=>{let n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[Xt,[Xt],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Xt,[Xt],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Xt,Hf(Jt),(e,t)=>t.map(n=>$y(n.evaluate(e))).join("")],split:[_a(Xt),[Xt,Xt],(e,[t,n])=>t.evaluate(e).split(n.evaluate(e))],join:[Xt,[_a(Xt),Xt],(e,[t,n])=>t.evaluate(e).join(n.evaluate(e))],"resolved-locale":[Xt,[G6],(e,[t])=>t.evaluate(e).resolvedLocale()]});function WFe(e){return Array.isArray(e)?`(${e.map(Nr).join(", ")})`:`(${Nr(e.type)}...)`}function d5(e){if(e instanceof FJ)return d5(e.boundExpression);if(e instanceof Cp&&e.name==="error"||e instanceof GJ||e instanceof uP||e instanceof hP||e instanceof pP)return!1;let t=e instanceof G0||e instanceof Ju,n=!0;return e.eachChild(r=>{n&&=t?d5(r):r instanceof Vm}),n?ew(e)&&tw(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function ew(e){if(e instanceof Cp&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof uP||e instanceof hP)return!1;let t=!0;return e.eachChild(n=>{t&&!ew(n)&&(t=!1)}),t}function E2(e){if(e instanceof Cp&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(n=>{t&&!E2(n)&&(t=!1)}),t}function tw(e,t){if(e instanceof Cp&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild(r=>{n&&!tw(r,t)&&(n=!1)}),n}function jm(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function lQ(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function mP(e){return!!e.expression&&e.expression.interpolated}const gP=/^(.*)-transition$/;function M2(e,...t){for(let n of t)for(let r in n)e[r]=n[r];return e}function on(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function nw(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&ni(e)===Ph}function GFe(e){return e}function ZFe(e){switch(e.type){case"color":return Kt.parse;case"padding":return hu.parse;case"numberArray":return pu.parse;case"colorArray":return $s.parse;default:return null}}function KFe(e){switch(e){case"exponential":return cQ;case"interval":return XFe;case"categorical":return YFe;case"identity":return JFe;default:throw Error(`Unknown function type "${e}"`)}}function uQ(e,t){let n=e.stops&&typeof e.stops[0][0]=="object",r=n||e.property!==void 0,i=n||!r,a=e.type||(mP(t)?"exponential":"interval"),o=ZFe(t);if(o&&(e=M2({},e),e.stops&&(e.stops=e.stops.map(c=>[c[0],o(c[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!VBe(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=KFe(a),l,u;if(a==="categorical"){l=Object.create(null);for(let c of e.stops)l[c[0]]=c[1];u=typeof e.stops[0][0]}if(n){let c={},d=[];for(let p=0;p<e.stops.length;p++){let g=e.stops[p],v=g[0].zoom;c[v]===void 0&&(c[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),c[v].stops.push([g[0].value,g[1]])}let f=[];for(let p of d)f.push([c[p].zoom,uQ(c[p],t)]);let h={name:"linear"};return{kind:"composite",interpolationType:h,interpolationFactor:Ls.interpolationFactor.bind(void 0,h),zoomStops:f.map(p=>p[0]),evaluate({zoom:p},g){return cQ({stops:f,base:e.base},t,p).evaluate(p,g)}}}if(i){let c=a==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:c,interpolationFactor:Ls.interpolationFactor.bind(void 0,c),zoomStops:e.stops.map(d=>d[0]),evaluate:({zoom:d})=>s(e,t,d,l,u)}}return{kind:"source",evaluate(c,d){let f=d&&d.properties?d.properties[e.property]:void 0;return f===void 0?$v(e.default,t.default):s(e,t,f,l,u)}}}function $v(e,t,n){if(e!==void 0)return e;if(t!==void 0)return t;if(n!==void 0)return n}function YFe(e,t,n,r,i){return $v(typeof n===i?r[n]:void 0,e.default,t.default)}function XFe(e,t,n){if(on(n)!=="number")return $v(e.default,t.default);let r=e.stops.length;if(r===1||n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];let i=X6(e.stops.map(a=>a[0]),n,"");return e.stops[i][1]}function cQ(e,t,n){let r=e.base===void 0?1:e.base;if(on(n)!=="number")return $v(e.default,t.default);let i=e.stops.length;if(i===1||n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];let a=X6(e.stops.map(c=>c[0]),n,""),o=QFe(n,r,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],l=e.stops[a+1][1],u=Lr[t.type]||GFe;return typeof s.evaluate=="function"?{evaluate(...c){let d=s.evaluate.apply(void 0,c),f=l.evaluate.apply(void 0,c);if(d!==void 0&&f!==void 0)return u(d,f,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function JFe(e,t,n){switch(t.type){case"color":n=Kt.parse(n);break;case"formatted":n=Pc.fromString(n.toString());break;case"resolvedImage":n=uu.fromString(n.toString());break;case"padding":n=hu.parse(n);break;case"colorArray":n=$s.parse(n);break;case"numberArray":n=pu.parse(n);break;default:on(n)!==t.type&&(t.type!=="enum"||!t.values[n])&&(n=void 0)}return $v(n,e.default,t.default)}function QFe(e,t,n,r){let i=r-n,a=e-n;return i===0?0:t===1?a/i:(t**+a-1)/(t**+i-1)}function ST(e){return{result:"success",value:e}}function L0(e){return{result:"error",value:e}}var yP=class{constructor(t,n,r,i){this.expression=t,this._warningHistory={},this._evaluator=new AJ,this._defaultValue=r?gQ(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=n}evaluateWithoutErrorHandling(t,n,r,i,a,o){return this._globalState&&(t=Um(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=n,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}evaluate(t,n,r,i,a,o){this._globalState&&(t=Um(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=n||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new Dr(`Expected value to be one of ${Object.keys(this._enumValues).map(l=>JSON.stringify(l)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let l=s instanceof Dr?s.path:"",u=`${l}|${s.message}`;return this._warningHistory[u]||(this._warningHistory[u]=!0,typeof console<"u"&&console.warn(dQ(this._rootKey,l,s.message,this._defaultValue))),this._defaultValue}}};function dQ(e,t,n,r){return`${e}${t}: ${n}${r==null?"":` Falling back to ${String(r)}.`}`}function fQ(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function rw(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in fm}function iw(e,t,n,r){fQ(t);let i=new oQ(fm,d5,[],n?nze(n):void 0),a=i.parse(e,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ST(new yP(a,t,n,r)):L0(i.errors)}var A2=class{constructor(t,n,r){this.kind=t,this._styleExpression=n,this.isStateDependent=t!=="constant"&&!E2(n.expression),this.globalStateRefs=Lv(n.expression),this._globalState=r}evaluateWithoutErrorHandling(t,n,r,i,a,o){return this._globalState&&(t=Um(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,n,r,i,a,o)}evaluate(t,n,r,i,a,o){return this._globalState&&(t=Um(t,this._globalState)),this._styleExpression.evaluate(t,n,r,i,a,o)}},f5=class{constructor(t,n,r,i,a){this.kind=t,this.zoomStops=r,this._styleExpression=n,this.isStateDependent=t!=="camera"&&!E2(n.expression),this.globalStateRefs=Lv(n.expression),this.interpolationType=i,this._globalState=a}evaluateWithoutErrorHandling(t,n,r,i,a,o){return this._globalState&&(t=Um(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,n,r,i,a,o)}evaluate(t,n,r,i,a,o){return this._globalState&&(t=Um(t,this._globalState)),this._styleExpression.evaluate(t,n,r,i,a,o)}interpolationFactor(t,n,r){return this.interpolationType?Ls.interpolationFactor(this.interpolationType,t,n,r):0}};function eze(e){return e._styleExpression!==void 0}function hQ(e,t,n,r){let i=iw(e,t,n,r);if(i.result==="error")return i;let a=i.value.expression,o=ew(a);if(!o&&!jm(n))return L0([new ql("","data expressions not supported")]);let s=tw(a,["zoom"]);if(!s&&!lQ(n))return L0([new ql("","zoom expressions not supported")]);let l=Wb(a);if(!l&&!s)return L0([new ql("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof ql)return L0([l]);if(l instanceof Ls&&!mP(n))return L0([new ql("",'"interpolate" expressions cannot be used with this property')]);if(!l)return ST(o?new A2("constant",i.value,r):new A2("source",i.value,r));let u=l instanceof Ls?l.interpolation:void 0;return ST(o?new f5("camera",i.value,l.labels,u,r):new f5("composite",i.value,l.labels,u,r))}var pQ=class mQ{constructor(t,n,r){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,fQ(n),this._parameters=t,this._specification=r,this._rootKey=n,this._defaultValue=gQ(r),this._warningHistory={};let i=uQ(this._parameters,this._specification);this.kind=i.kind,this.interpolationFactor=i.interpolationFactor,this.zoomStops=i.zoomStops,this.interpolationType=i.interpolationType,this._innerEvaluate=i.evaluate}evaluate(t,n){try{return this._innerEvaluate(t,n)}catch(r){let i=r instanceof Error?r.message:String(r),a=`|${i}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(dQ(this._rootKey,"",i,this._defaultValue))),this._defaultValue}}static deserialize(t){return new mQ(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};function tze(e,t,n,r){if(nw(e))return new pQ(e,t,n);if(rw(e)){let i=hQ(e,t,n,r);if(i.result==="error")throw Error(i.value.map(a=>`${a.key}: ${a.message}`).join(", "));return i.value}{let i=e;return n.type==="color"&&typeof e=="string"?i=Kt.parse(e):n.type==="padding"&&(typeof e=="number"||Array.isArray(e))?i=hu.parse(e):n.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?i=pu.parse(e):n.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?i=$s.parse(e):n.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?i=lu.parse(e):n.type==="projectionDefinition"&&typeof e=="string"&&(i=gf.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>i}}}function Wb(e){let t=null;if(e instanceof OJ)t=Wb(e.result);else if(e instanceof HJ){for(let n of e.args)if(t=Wb(n),t)break}else(e instanceof oP||e instanceof Ls)&&e.input instanceof Cp&&e.input.name==="zoom"&&(t=e);return t instanceof ql||e.eachChild(n=>{let r=Wb(n);r instanceof ql?t=r:!t&&r?t=new ql("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&r&&t!==r&&(t=new ql("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function Lv(e,t=new Set){return e instanceof pP&&t.add(e.key),e.eachChild(n=>{Lv(n,t)}),t}function nze(e){let t={color:dl,string:Xt,number:ct,enum:Xt,boolean:ln,formatted:Pv,padding:Z6,numberArray:K6,colorArray:C2,projectionDefinition:W6,resolvedImage:Dv,variableAnchorOffsetCollection:Y6};return e.type==="array"?_a(t[e.value]||Jt,e.length):t[e.type]}function gQ(e){if(e.type==="color"&&nw(e.default))return new Kt(0,0,0,0);switch(e.type){case"color":return Kt.parse(e.default)||null;case"padding":return hu.parse(e.default)||null;case"numberArray":return pu.parse(e.default)||null;case"colorArray":return $s.parse(e.default)||null;case"variableAnchorOffsetCollection":return lu.parse(e.default)||null;case"projectionDefinition":return gf.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function Um(e,t){let{zoom:n,heatmapDensity:r,elevation:i,lineProgress:a,isSupportedScript:o,accumulated:s}=e??{};return{zoom:n,heatmapDensity:r,elevation:i,lineProgress:a,isSupportedScript:o,accumulated:s,globalState:t}}function rze(e){let t=!1;for(let n of e){let r=yQ(n);if(r==="expression")return"expression";r==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function yQ(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return rze(e.slice(1));default:return"expression"}}function vP(e){return yQ(e)!=="legacy"}function Pz(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function ize(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],Pz(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",Pz(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function vQ(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=ize(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function g9(e,t,n){let r=n[e];return Array.isArray(r)?vP(r)?_P(r,t.concat(e)):{path:t.concat(e),legacyFilter:r}:null}function _P(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let n=1;n<e.length;n++){let r=g9(n,t,e);if(r)return r}break;case"!":{let n=g9(1,t,e);if(n)return n;break}case"case":for(let n=1;n<e.length-1;n+=2){let r=g9(n,t,e);if(r)return r}}return null}function aze(e,t){let n=_P(e);if(!n||typeof console>"u")return;let r=n.path.map(i=>`[${i}]`).join("");console.warn(`${t}${r}: ${vQ(n.legacyFilter)}`)}const oze={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function P2(e,t,n){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};vP(e)?aze(e,t):e=h5(e);let r=iw(e,t,oze,n);if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return{filter:(i,a,o)=>r.value.evaluate(i,a,{},o),needGeometry:_Q(e),getGlobalStateRefs:()=>Lv(r.value.expression)}}function sze(e,t){return e<t?-1:+(e>t)}function _Q(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t<e.length;t++)if(_Q(e[t]))return!0;return!1}function h5(e){if(!e)return!0;let t=e[0];return e.length<=1?t!=="any":t==="=="?y9(e[1],e[2],"=="):t==="!="?z3(y9(e[1],e[2],"==")):t==="<"||t===">"||t==="<="||t===">="?y9(e[1],e[2],t):t==="any"?lze(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(h5)):t==="none"?["all"].concat(e.slice(1).map(h5).map(z3)):t==="in"?Dz(e[1],e.slice(2)):t==="!in"?z3(Dz(e[1],e.slice(2))):t==="has"?Iz(e[1]):t!=="!has"||z3(Iz(e[1]))}function y9(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function lze(e){return["any"].concat(e.map(h5))}function Dz(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(n=>typeof n!=typeof t[0])?["filter-in-large",e,["literal",t.sort(sze)]]:["filter-in-small",e,["literal",t]]}}function Iz(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function z3(e){return["!",e]}function bQ(e){let t=e.key,n=e.value;return n?[new Xe(t,n,"constants have been deprecated as of v8")]:[]}function ei(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Qh(e){if(Array.isArray(e))return e.map(Qh);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let n in e)t[n]=Qh(e[n]);return t}return ei(e)}function Uo(e){let t=e.key,n=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},a=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=on(n);if(u!=="object")return[new Xe(t,n,`object expected, ${u}
22 found`)];for(let c in n){let d=c.split(".")[0],f=Iy(r,d)||r["*"],h;if(Iy(i,d))h=i[d];else if(Iy(r,d)){if(n[c]===void 0)continue;h=s}else if(i["*"])h=i["*"];else if(r["*"])h=s;else{l.push(new Xe(t,n[c],`unknown property "${c}"`));continue}l=l.concat(h({key:(t&&`${t}.`)+c,value:n[c],valueSpec:f,style:a,styleSpec:o,object:n,objectKey:c,validateSpec:s},n))}for(let c in r)i[c]||r[c].required&&r[c].default===void 0&&n[c]===void 0&&l.push(new Xe(t,n,`missing required property "${c}"`));return l}function bP(e){let t=e.value,n=e.valueSpec,r=e.validateSpec,i=e.style,a=e.styleSpec,o=e.key,s=e.arrayElementValidator||r;if(on(t)!=="array")return[new Xe(o,t,`array expected, ${on(t)} found`)];if(n.length&&t.length!==n.length)return[new Xe(o,t,`array length ${n.length} expected, length ${t.length} found`)];let l={type:n.value,values:n.values};a.$version<7&&(l.function=n.function),on(n.value)==="object"&&(l=n.value);let u=[];for(let c=0;c<t.length;c++)u=u.concat(s({array:t,arrayIndex:c,value:t[c],valueSpec:l,validateSpec:e.validateSpec,style:i,styleSpec:a,key:`${o}[${c}]`}));return u}function aw(e){let t=e.key,n=e.value,r=e.valueSpec,i=on(n);return i==="number"&&n!==n&&(i="NaN"),i==="number"?"minimum"in r&&n<r.minimum?[new Xe(t,n,`${n} is less than the minimum value ${r.minimum}`)]:"maximum"in r&&n>r.maximum?[new Xe(t,n,`${n} is greater than the maximum value ${r.maximum}`)]:[]:[new Xe(t,n,`number expected, ${i} found`)]}function xQ(e){let t=e.valueSpec,n=ei(e.value.type),r,i={},a,o,s=n!=="categorical"&&e.value.property===void 0,l=!s,u=on(e.value.stops)==="array"&&on(e.value.stops[0])==="array"&&on(e.value.stops[0][0])==="object",c=Uo({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:d,default:p}});return n==="identity"&&s&&c.push(new Xe(e.key,e.value,'missing required property "property"')),n!=="identity"&&!e.value.stops&&c.push(new Xe(e.key,e.value,'missing required property "stops"')),n==="exponential"&&e.valueSpec.expression&&!mP(e.valueSpec)&&c.push(new Xe(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!jm(e.valueSpec)?c.push(new Xe(e.key,e.value,"property functions not supported")):s&&!lQ(e.valueSpec)&&c.push(new Xe(e.key,e.value,"zoom functions not supported"))),(n==="categorical"||u)&&e.value.property===void 0&&c.push(new Xe(e.key,e.value,'"property" property is required')),c;function d(g){if(n==="identity")return[new Xe(g.key,g.value,'identity function may not have a "stops" property')];let v=[],b=g.value;return v=v.concat(bP({key:g.key,value:b,valueSpec:g.valueSpec,validateSpec:g.validateSpec,style:g.style,styleSpec:g.styleSpec,arrayElementValidator:f})),on(b)==="array"&&b.length===0&&v.push(new Xe(g.key,b,"array must have at least one stop")),v}function f(g){let v=[],b=g.value,x=g.key;if(on(b)!=="array")return[new Xe(x,b,`array expected, ${on(b)} found`)];if(b.length!==2)return[new Xe(x,b,`array length 2 expected, length ${b.length} found`)];if(u){if(on(b[0])!=="object")return[new Xe(x,b,`object expected, ${on(b[0])} found`)];if(b[0].zoom===void 0)return[new Xe(x,b,"object stop key must have zoom")];if(b[0].value===void 0)return[new Xe(x,b,"object stop key must have value")];if(o&&o>ei(b[0].zoom))return[new Xe(x,b[0].zoom,"stop zoom values must appear in ascending order")];ei(b[0].zoom)!==o&&(o=ei(b[0].zoom),a=void 0,i={}),v=v.concat(Uo({key:`${x}[0]`,value:b[0],valueSpec:{zoom:{}},validateSpec:g.validateSpec,style:g.style,styleSpec:g.styleSpec,objectElementValidators:{zoom:aw,value:h}}))}else v=v.concat(h({key:`${x}[0]`,value:b[0],validateSpec:g.validateSpec,style:g.style,styleSpec:g.styleSpec},b));return rw(Qh(b[1]))?v.concat([new Xe(`${x}[1]`,b[1],"expressions are not allowed in function stops.")]):v.concat(g.validateSpec({key:`${x}[1]`,value:b[1],valueSpec:t,validateSpec:g.validateSpec,style:g.style,styleSpec:g.styleSpec}))}function h(g,v){let b=on(g.value),x=ei(g.value),_=g.value===null?v:g.value;if(!r)r=b;else if(b!==r)return[new Xe(g.key,_,`${b} stop domain type must match previous stop domain type ${r}`)];if(b!=="number"&&b!=="string"&&b!=="boolean")return[new Xe(g.key,_,"stop domain value must be a number, string, or boolean")];
vendor: 9,909 bytes, lines 22-23
22if(b!=="number"&&n!=="categorical"){let w=`number expected, ${b} found`;return jm(t)&&n===void 0&&(w+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Xe(g.key,_,w)]}return n==="categorical"&&b==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new Xe(g.key,_,`integer expected, found ${x}`)]:n!=="categorical"&&b==="number"&&a!==void 0&&x<a?[new Xe(g.key,_,"stop domain values must appear in ascending order")]:(a=x,n==="categorical"&&x in i?[new Xe(g.key,_,"stop domain values must be unique")]:(i[x]=!0,[]))}function p(g){return g.validateSpec({key:g.key,value:g.value,valueSpec:t,validateSpec:g.validateSpec,style:g.style,styleSpec:g.styleSpec})}}function Hm(e){let t=(e.expressionContext==="property"?hQ:iw)(Qh(e.value),e.key,e.valueSpec);if(t.result==="error")return t.value.map(r=>new Xe(`${e.key}${r.key}`,e.value,r.message));let n=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!n.outputDefined())return[new Xe(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!E2(n))return[new Xe(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!E2(n))return[new Xe(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!tw(n,["zoom","feature-state"]))return[new Xe(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!ew(n))return[new Xe(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function uze(e){let t=e.value,n=e.key,r=on(t);return r==="boolean"?[]:[new Xe(n,t,`boolean expected, ${r} found`)]}function CT(e){let t=e.key,n=e.value,r=on(n);return r==="string"?Kt.parse(String(n))?[]:[new Xe(t,n,`color expected, "${n}" found`)]:[new Xe(t,n,`color expected, ${r} found`)]}function D2(e){let t=e.key,n=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?r.values.indexOf(ei(n))===-1&&i.push(new Xe(t,n,`expected one of [${r.values.join(", ")}], ${JSON.stringify(n)} found`)):Object.keys(r.values).indexOf(ei(n))===-1&&i.push(new Xe(t,n,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(n)} found`)),i}function cze(e,t){let n=e;for(let r of t)n=n[r];return n}function dze(e,t){let n=_P(t);return n?[new Xe(`${e.key}${n.path.map(r=>`[${r}]`).join("")}`,cze(e.value,n.path),vQ(n.legacyFilter),null,"warning")]:[]}function xP(e){let t=Qh(e.value);return vP(t)?[...dze(e,t),...Hm(M2({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:wQ(e)}function wQ(e){let t=e.value,n=e.key;if(on(t)!=="array")return[new Xe(n,t,`array expected, ${on(t)} found`)];let r=e.styleSpec,i,a=[];if(t.length<1)return[new Xe(n,t,"filter array must have at least 1 element")];switch(a=a.concat(D2({key:`${n}[0]`,value:t[0],valueSpec:r.filter_operator,style:e.style,styleSpec:e.styleSpec})),ei(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&ei(t[1])==="$type"&&a.push(new Xe(n,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&a.push(new Xe(n,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(i=on(t[1]),i!=="string"&&a.push(new Xe(`${n}[1]`,t[1],`string expected, ${i} found`)));for(let o=2;o<t.length;o++)i=on(t[o]),ei(t[1])==="$type"?a=a.concat(D2({key:`${n}[${o}]`,value:t[o],valueSpec:r.geometry_type,style:e.style,styleSpec:e.styleSpec})):i!=="string"&&i!=="number"&&i!=="boolean"&&a.push(new Xe(`${n}[${o}]`,t[o],`string, number, or boolean expected, ${i} found`));break;case"any":case"all":case"none":for(let o=1;o<t.length;o++)a=a.concat(wQ({key:`${n}[${o}]`,value:t[o],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":i=on(t[1]),t.length===2?i!=="string"&&a.push(new Xe(`${n}[1]`,t[1],`string expected, ${i} found`)):a.push(new Xe(n,t,`filter array for "${t[0]}" operator must have 2 elements`))}return a}function SQ(e,t){let n=e.key,r=e.validateSpec,i=e.style,a=e.styleSpec,o=e.value,s=e.objectKey,l=a[`${t}_${e.layerType}`];if(!l)return[];let u=s.match(gP);if(t==="paint"&&u&&l[u[1]]&&l[u[1]].transition)return r({key:n,value:o,valueSpec:a.transition,style:i,styleSpec:a});let c=e.valueSpec||l[s];if(!c)return[new Xe(n,o,`unknown property "${s}"`)];let d;if(on(o)==="string"&&jm(c)&&!c.tokens&&(d=/^{([^}]+)}$/.exec(o)))return[new Xe(n,o,`"${s}" does not support interpolation syntax 23Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(d[1])} }\`.`)];let f=[];return e.layerType==="symbol"&&s==="text-font"&&nw(Qh(o))&&ei(o.type)==="identity"&&f.push(new Xe(n,o,'"text-font" does not support identity functions')),f.concat(r({key:e.key,value:o,valueSpec:c,style:i,styleSpec:a,expressionContext:"property",propertyType:t,propertyKey:s}))}function CQ(e){return SQ(e,"paint")}function TQ(e){return SQ(e,"layout")}function kQ(e){let t=[],n=e.value,r=e.key,i=e.style,a=e.styleSpec;if(on(n)!=="object")return[new Xe(r,n,`object expected, ${on(n)} found`)];!n.type&&!n.ref&&t.push(new Xe(r,n,'either "type" or "ref" is required'));let o=ei(n.type),s=ei(n.ref);if(n.id){let l=ei(n.id);for(let u=0;u<e.arrayIndex;u++){let c=i.layers[u];ei(c.id)===l&&t.push(new Xe(r,n.id,`duplicate layer id "${n.id}", previously used at line ${c.id.__line__}`))}}if("ref"in n){["type","source","source-layer","filter","layout"].forEach(u=>{u in n&&t.push(new Xe(r,n[u],`"${u}" is prohibited for ref layers`))});let l;i.layers.forEach(u=>{ei(u.id)===s&&(l=u)}),l?l.ref?t.push(new Xe(r,n.ref,"ref cannot reference another ref layer")):o=ei(l.type):t.push(new Xe(r,n.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!n.source)t.push(new Xe(r,n,'missing required property "source"'));else{let l=i.sources&&i.sources[n.source],u=l&&ei(l.type);l?u==="vector"&&o==="raster"?t.push(new Xe(r,n.source,`layer "${n.id}" requires a raster source`)):u!=="raster-dem"&&o==="hillshade"||u!=="raster-dem"&&o==="color-relief"?t.push(new Xe(r,n.source,`layer "${n.id}" requires a raster-dem source`)):u==="raster"&&o!=="raster"?t.push(new Xe(r,n.source,`layer "${n.id}" requires a vector source`)):u==="vector"&&!n["source-layer"]?t.push(new Xe(r,n,`layer "${n.id}" must specify a "source-layer"`)):u==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new Xe(r,n.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&n.paint&&n.paint["line-gradient"]&&(u!=="geojson"||!l.lineMetrics)&&t.push(new Xe(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Xe(r,n.source,`source "${n.source}" not found`))}return o==="raster"&&n.paint?.resampling&&n.paint?.["raster-resampling"]&&t.push(new Xe(r,n.paint,`layer "${n.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(Uo({key:r,value:n,valueSpec:a.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${r}.type`,value:n.type,valueSpec:a.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:n,objectKey:"type"})},filter:xP,layout(l){return Uo({layer:n,key:l.key,value:l.value,style:l.style,styleSpec:l.styleSpec,validateSpec:l.validateSpec,objectElementValidators:{"*"(u){return TQ(M2({layerType:o},u))}}})},paint(l){return Uo({layer:n,key:l.key,value:l.value,style:l.style,styleSpec:l.styleSpec,validateSpec:l.validateSpec,objectElementValidators:{"*"(u){return CQ(M2({layerType:o},u))}}})}}})),t}function nf(e){let t=e.value,n=e.key,r=on(t);return r==="string"?[]:[new Xe(n,t,`string expected, ${r} found`)]}function fze(e){let t=e.sourceName??"",n=e.value,r=e.styleSpec,i=r.source_raster_dem,a=e.style,o=[],s=on(n);if(n===void 0)return o;if(s!=="object")return o.push(new Xe("source_raster_dem",n,`object expected, ${s} found`)),o;let l=ei(n.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],c=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let d in n)!l&&u.includes(d)?o.push(new Xe(d,n[d],`In "${t}": "${d}" is only valid when "encoding" is set to "custom". ${c} encoding found`)):i[d]?o=o.concat(e.validateSpec({key:d,value:n[d],valueSpec:i[d],validateSpec:e.validateSpec,style:a,styleSpec:r})):o.push(new Xe(d,n[d],`unknown property "${d}"`));return o}const $z={promoteId:hze};function EQ(e){let t=e.value,n=e.key,r=e.styleSpec,i=e.style,a=e.validateSpec;if(!t.type)return[new Xe(n,t,'"type" is required')];let o=ei(t.type),s;switch(o){case"vector":case"raster":return s=Uo({key:n,value:t,valueSpec:r[`source_${o.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:$z,validateSpec:a}),s;case"raster-dem":return s=fze({sourceName:n,value:t,style:e.style,styleSpec:r,validateSpec:a}),s;case"geojson":if(s=Uo({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:a,objectElementValidators:$z}),t.cluster)for(let l in t.clusterProperties){let[u,c]=t.clusterProperties[l],d=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...Hm({key:`${n}.${l}.map`,value:c,expressionContext:"cluster-map"})),s.push(...Hm({key:`${n}.${l}.reduce`,value:d,expressionContext:"cluster-reduce"}))}return s;case"video":return Uo({key:n,value:t,valueSpec:r.source_video,style:i,validateSpec:a,styleSpec:r});case"image":return Uo({key:n,value:t,valueSpec:r.source_image,style:i,validateSpec:a,styleSpec:r});case"canvas":return[new Xe(n,null,"Please use runtime APIs to add canvas sources, rather than
23including them in stylesheets.","source.canvas")];default:return D2({key:`${n}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]}})}}function hze({key:e,value:t}){if(on(t)==="string")return nf({key:e,value:t});{let n=[];for(let r in t)n.push(...nf({key:`${e}.${r}`,value:t[r]}));return n}}function MQ(e){let t=e.value,n=e.styleSpec,r=n.light,i=e.style,a=[],o=on(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new Xe("light",t,`object expected, ${o} found`)]),a;for(let s in t){let l=s.match(gP);a=l&&r[l[1]]&&r[l[1]].transition?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:n.transition,validateSpec:e.validateSpec,style:i,styleSpec:n})):r[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:r[s],validateSpec:e.validateSpec,style:i,styleSpec:n})):a.concat([new Xe(s,t[s],`unknown property "${s}"`)])}return a}function AQ(e){let t=e.value,n=e.styleSpec,r=n.sky,i=e.style,a=on(t);if(t===void 0)return[];if(a!=="object")return[new Xe("sky",t,`object expected, ${a} found`)];let o=[];for(let s in t){let l=s.match(gP);o=l&&r[l[1]]&&r[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:n.transition,style:i,styleSpec:n})):r[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n})):o.concat([new Xe(s,t[s],`unknown property "${s}"`)])}return o}function PQ(e){let t=e.value,n=e.styleSpec,r=n.terrain,i=e.style,a=[],o=on(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new Xe("terrain",t,`object expected, ${o} found`)]),a;for(let s in t)a=r[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:r[s],validateSpec:e.validateSpec,style:i,styleSpec:n})):a.concat([new Xe(s,t[s],`unknown property "${s}"`)]);return a}function pze(e){return nf(e).length===0?[]:Hm(e)}function mze(e){return nf(e).length===0?[]:Hm(e)}function gze(e){let t=e.key,n=e.value;if(on(n)==="array"){if(n.length<1||n.length>4)return[new Xe(t,n,`padding requires 1 to 4 values; ${n.length} values found`)];let r={type:"number"},i=[];for(let a=0;a<n.length;a++)i=i.concat(e.validateSpec({key:`${t}[${a}]`,value:n[a],validateSpec:e.validateSpec,valueSpec:r}));return i}return aw({key:t,value:n,valueSpec:{}})}function yze(e){let t=e.key,n=e.value;if(on(n)==="array"){let r={type:"number"};if(n.length<1)return[new Xe(t,n,"array length at least 1 expected, length 0 found")];let i=[];for(let a=0;a<n.length;a++)i=i.concat(e.validateSpec({key:`${t}[${a}]`,value:n[a],validateSpec:e.validateSpec,valueSpec:r}));return i}return aw({key:t,value:n,valueSpec:{}})}function vze(e){let t=e.key,n=e.value;if(on(n)==="array"){if(n.length<1)return[new Xe(t,n,"array length at least 1 expected, length 0 found")];let r=[];for(let i=0;i<n.length;i++)r=r.concat(CT({key:`${t}[${i}]`,value:n[i]}));return r}return CT({key:t,value:n})}function _ze(e){let t=e.key,n=e.value,r=on(n),i=e.styleSpec;if(r!=="array"||n.length<1||n.length%2!=0)return[new Xe(t,n,"variableAnchorOffsetCollection requires a non-empty array of even length")];let a=[];for(let o=0;o<n.length;o+=2)a=a.concat(D2({key:`${t}[${o}]`,value:n[o],valueSpec:i.layout_symbol["text-anchor"]})),a=a.concat(bP({key:`${t}[${o+1}]`,value:n[o+1],valueSpec:{length:2,value:"number"},validateSpec:e.validateSpec,style:e.style,styleSpec:i}));return a}function DQ(e){let t=[],n=e.value,r=e.key;if(Array.isArray(n)){let i=[],a=[];for(let o in n)n[o].id&&i.includes(n[o].id)&&t.push(new Xe(r,n,`all the sprites' ids must be unique, but ${n[o].id} is duplicated`)),i.push(n[o].id),n[o].url&&a.includes(n[o].url)&&t.push(new Xe(r,n,`all the sprites' URLs must be unique, but ${n[o].url} is duplicated`)),a.push(n[o].url),t=t.concat(Uo({key:`${r}[${o}]`,value:n[o],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:e.validateSpec}));return t}return nf({key:r,value:n})}function bze(e){let t=e.value,n=e.styleSpec,r=n.projection,i=e.style,a=on(t);if(t===void 0)return[];if(a!=="object")return[new Xe("projection",t,`object expected, ${a} found`)];let o=[];for(let s in t)o=r[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n}
vendor: 47,067 bytes, line 23
23)):o.concat([new Xe(s,t[s],`unknown property "${s}"`)]);return o}function xze(e){let t=e.key,n=e.value;n=n instanceof String?n.valueOf():n;let r=on(n);return r==="array"&&!Sze(n)&&!wze(n)?[new Xe(t,n,`projection expected, invalid array ${JSON.stringify(n)} found`)]:["array","string"].includes(r)?[]:[new Xe(t,n,`projection expected, invalid type "${r}" found`)]}function wze(e){return!!["interpolate","step","literal"].includes(e[0])}function Sze(e){return Array.isArray(e)&&e.length===3&&typeof e[0]=="string"&&typeof e[1]=="string"&&typeof e[2]=="number"}function TT(e){return!!e&&e.constructor===Object}function IQ(e){return TT(e.value)?[]:[new Xe(e.key,e.value,`object expected, ${on(e.value)} found`)]}const Lz=1114111,Cze=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;function Tze(e,t){if(on(t)!=="string")return[];let n=`${t}`,r=()=>[new Xe(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],i=n.match(Cze);if(!i)return r();let[,a,o,s]=i;if(s!==void 0)return s.length>6?r():[];let l=parseInt(a,16),u=o===void 0?l:parseInt(o,16);return l>Lz||u>Lz?[new Xe(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new Xe(e,t,`unicode range start must not be greater than its end, but ${n} is`)]:[]}function $Q(e){let t=e.key??"font-faces",n=e.value,r=e.validateSpec,i=e.styleSpec??vJ,a=e.style;if(!TT(n))return[new Xe(t,n,`object expected, ${on(n)} found`)];let o=[];for(let s in n){let l=n[s],u=on(l);if(u==="string")o.push(...nf({key:`${t}.${s}`,value:l}));else if(u==="array"){let c={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[d,f]of l.entries()){let h=`${t}.${s}[${d}]`;o.push(...Uo({key:h,value:f,valueSpec:c,styleSpec:i,style:a,validateSpec:r}));let p=TT(f)?f["unicode-range"]:void 0;if(on(p)==="array")for(let[g,v]of p.entries())o.push(...Tze(`${h}.unicode-range[${g}]`,v))}}else o.push(new Xe(`${t}.${s}`,l,`string or array expected, ${u} found`))}return o}const Rz={"*"(){return[]},array:bP,boolean:uze,number:aw,color:CT,constants:bQ,enum:D2,filter:xP,function:xQ,layer:kQ,object:Uo,source:EQ,light:MQ,sky:AQ,terrain:PQ,projection:bze,projectionDefinition:xze,string:nf,formatted:pze,resolvedImage:mze,padding:gze,numberArray:yze,colorArray:vze,variableAnchorOffsetCollection:_ze,sprite:DQ,state:IQ,fontFaces:$Q};function p5(e){let t=e.value,n=e.valueSpec,r=e.styleSpec;return e.validateSpec=p5,n.expression&&nw(ei(t))?xQ(e):n.expression&&rw(Qh(t))?Hm(e):n.type&&Rz[n.type]?Rz[n.type](e):Uo(M2({},e,{valueSpec:n.type?r[n.type]:n}))}function LQ(e){let t=e.value,n=e.key,r=nf(e);return r.length||(t.indexOf("{fontstack}")===-1&&r.push(new Xe(n,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&r.push(new Xe(n,t,'"glyphs" url must include a "{range}" token'))),r}function Io(e,t=Ie){let n=[];return n=n.concat(p5({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:p5,objectElementValidators:{glyphs:LQ,"*"(){return[]}}})),e.constants&&(n=n.concat(bQ({key:"constants",value:e.constants}))),RQ(n)}Io.source=ps(hs(EQ)),Io.sprite=ps(hs(DQ)),Io.glyphs=ps(hs(LQ)),Io.fontFaces=ps(hs($Q)),Io.light=ps(hs(MQ)),Io.sky=ps(hs(AQ)),Io.terrain=ps(hs(PQ)),Io.state=ps(hs(IQ)),Io.layer=ps(hs(kQ)),Io.filter=ps(hs(xP)),Io.paintProperty=ps(hs(CQ)),Io.layoutProperty=ps(hs(TQ));function hs(e){return function(t){return e(Object.assign({},t,{validateSpec:p5}))}}function RQ(e){return[].concat(e).sort((t,n)=>t.line-n.line)}function ps(e){return function(...t){return RQ(e.apply(this,t))}}const kze={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"};var Eze=class{constructor(t,n,r){this._rootKey=n,this._globalState=r,this.setValue(t)}evaluate(){return this._literalValue??this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let n=iw(t,this._rootKey,kze,this._globalState);if(n.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(n.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=n.value,this._globalStateRefs=Lv(n.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function Mze(e,t,n){return new Eze(e,t,n)}const io=Io,OQ=new Set(Object.keys(Ie).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));function Aze(e){return Object.entries(e.sources??{}).filter(([,t])=>!OQ.has(t.type)).map(([t])=>`sources.${t}`)}function Oz(e,t){let n=Aze(t);return wP(e,io(t).filter(({message:r})=>!n.some(i=>r.startsWith(`${i}:`)||r.startsWith(`${i}.`))))}function wP(e,t){let n=!1;for(let r of t){if(r.severity==="warning"){hn(r.message);continue}e.fire(new Et(Error(r.message))),n=!0}return n}function Rv(e,t,n,r){return r?.validate!==!1&&wP(e,t({styleSpec:Ie,...n}))}var kT=class BQ{constructor(t,n,r){let i=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],n=o[1],r=o[2],this.d=n+2*r;for(let u=0;u<this.d*this.d;u++){let c=o[3+u],d=o[3+u+1];i.push(c===d?null:o.subarray(c,d))}let s=o[3+i.length],l=o[3+i.length+1];this.keys=o.subarray(s,l),this.bboxes=o.subarray(l),this.insert=this._insertReadonly}else{this.d=n+2*r;for(let o=0;o<this.d*this.d;o++)i.push([]);this.keys=[],this.bboxes=[]}this.n=n,this.extent=t,this.padding=r,this.scale=n/t,this.uid=0;let a=r/n*t;this.min=-a,this.max=t+a}insert(t,n,r,i,a){this._forEachCell(n,r,i,a,this._insertCell,this.uid++,void 0,void 0),this.keys.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i),this.bboxes.push(a)}_insertReadonly(){throw Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(t,n,r,i,a,o){this.cells[a].push(o)}query(t,n,r,i,a){let o=this.min,s=this.max;if(t<=o&&n<=o&&s<=r&&s<=i&&!a)return[...this.keys];{let l=[];return this._forEachCell(t,n,r,i,this._queryCell,l,{},a),l}}_queryCell(t,n,r,i,a,o,s,l){let u=this.cells[a];if(u!==null){let c=this.keys,d=this.bboxes;for(let f of u)if(s[f]===void 0){let h=f*4;(l?l(d[h+0],d[h+1],d[h+2],d[h+3]):t<=d[h+2]&&n<=d[h+3]&&r>=d[h+0]&&i>=d[h+1])?(s[f]=!0,o.push(c[f])):s[f]=!1}}}_forEachCell(t,n,r,i,a,o,s,l){let u=this._convertToCellCoord(t),c=this._convertToCellCoord(n),d=this._convertToCellCoord(r),f=this._convertToCellCoord(i);for(let h=u;h<=d;h++)for(let p=c;p<=f;p++){let g=this.d*p+h;if((!l||l(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&&a.call(this,t,n,r,i,g,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,n=3+this.cells.length+1+1,r=0;for(let o of this.cells)r+=o.length;let i=new Int32Array(n+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;let a=n;for(let o=0;o<t.length;o++){let s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[3+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer}static serialize(t,n){let r=t.toArrayBuffer();return n&&n.push(r),{buffer:r}}static deserialize(t){return new BQ(t.buffer)}};const ac={};function pt(e,t,n={}){if(ac[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),ac[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}pt("Object",Object),pt("Set",Set),pt("TransferableGridIndex",kT),pt("Color",Kt),pt("Error",Error),pt("AJAXError",S2),pt("ResolvedImage",uu),pt("StylePropertyFunction",pQ),pt("StyleExpression",yP,{omit:["_evaluator"]}),pt("ZoomDependentExpression",f5),pt("ZoomConstantExpression",A2),pt("CompoundExpression",Cp,{omit:["_evaluate"]});for(let e in fm)fm[e]._classRegistryKey||pt(`Expression_${e}`,fm[e]);function FQ(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor?.name==="ArrayBuffer")}function SP(e){let t=e.constructor;return e.$name||t._classRegistryKey}function Pze(e){if(typeof e!="object"||!e)return!1;let t=SP(e);return t&&t!=="Object"}function zQ(e){return!Pze(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||FQ(e)||Ah(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Ly(e,t){if(zQ(e))return(FQ(e)||Ah(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let a=[];for(let o of e)a.push(Ly(o,t));return a}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let n=SP(e);if(!n)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!ac[n])throw Error(`${n} is not registered.`);let{klass:r}=ac[n],i=r.serialize?r.serialize(e,t):{};if(r.serialize){if(i===t?.[t.length-1])throw Error("statically serialized object won't survive transfer of $name property")}else{for(let a in e){if(!e.hasOwnProperty(a)||ac[n].omit.includes(a))continue;let o=e[a];o!==void 0&&(i[a]=ac[n].shallow.includes(a)?o:Ly(o,t))}e instanceof Error&&(i.message=e.message)}if(i.$name)throw Error("$name property is reserved for worker serialization logic.");return n!=="Object"&&(i.$name=n),i}function Ry(e){if(zQ(e))return e;if(Array.isArray(e))return e.map(Ry);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=SP(e)||"Object";if(!ac[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:n}=ac[t];if(!n)throw Error(`can't deserialize unregistered class ${t}`);if(n.deserialize)return n.deserialize(e);let r=Object.create(n.prototype);for(let i of Object.keys(e)){if(i==="$name")continue;let a=e[i];r[i]=ac[t].shallow.includes(i)?a:Ry(a)}return r}var ET=class{constructor(){this.first=!0}update(t,n){let r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=n):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=n),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))}},Zn=class{constructor(t,n){this.zoom=t,n?(this.now=n.now||0,this.fadeDuration=n.fadeDuration||0,this.zoomHistory=n.zoomHistory||new ET,this.transition=n.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ET,this.transition={})}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let t=this.zoom,n=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:n+(1-n)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*n}}},I2=class{constructor(t,n,r,i){this.property=t,this.value=n,this.expression=tze(n===void 0?t.specification.default:n,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let n=this.getGlobalStateRefs();return t.some(r=>n.has(r))}possiblyEvaluate(t,n,r){return this.property.possiblyEvaluate(this,t,n,r)}},MT=class{constructor(t,n,r){this.property=t,this.value=new I2(t,void 0,n,r)}transitioned(t,n){return n.value===this.value?n:new Bz(this.property,this.value,n,St({},t.transition,this.transition),t.now)}untransitioned(){return new Bz(this.property,this.value,null,{},0)}},ow=class{constructor(t,n,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=n}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return oo(this._values[t].value.value)}setValue(t,n){Object.hasOwn(this._values,t)||(this._values[t]=new MT(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new I2(this._values[t].property,n===null?void 0:oo(n),this._propertyRootKey(t),this._globalState)}setValues(t){for(let n in t){let r=t[n];n.endsWith("-transition")?this.setTransition(n.slice(0,-11),r):Hl(this._values[n].value.value,r)||this.setValue(n,r)}}getTransition(t){return oo(this._values[t].transition)}setTransition(t,n){Object.hasOwn(this._values,t)||(this._values[t]=new MT(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=oo(n)||void 0}retainPriorGlobalState(t,n,r){for(let i of Object.keys(r._values))for(let a=r._values[i];a;a=a.prior){let{value:o}=a;o.property.specification.transition&&!o.isDataDriven()&&o.expression._globalState===this._globalState&&o.readsGlobalState(t)&&(a.value=new I2(o.property,o.value,this._propertyRootKey(i),n))}}applyGlobalStateChange(t,n,r,i){this.retainPriorGlobalState(t,n,r);let a=!1;for(let o of Object.keys(this._values)){let{value:s}=this._values[o];s.readsGlobalState(t)&&(this.setValue(o,s.value),a=!0)}return a?this.transitioned(i,r):r}serialize(){let t={};for(let n of Object.keys(this._values)){let r=this.getValue(n);r!==void 0&&(t[n]=r);let i=this.getTransition(n);i!==void 0&&(t[`${n}-transition`]=i)}return t}transitioned(t,n){let r=new Fz(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,n._values[i]);return r}untransitioned(){let t=new Fz(this._properties);for(let n of Object.keys(this._values))t._values[n]=this._values[n].untransitioned();return t}},Bz=class{constructor(t,n,r,i,a){this.property=t,this.value=n,this.begin=a+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,n,r){let i=t.now||0,a=this.value.possiblyEvaluate(t,n,r),o=this.prior;if(!o)return a;if(i>this.end||this.value.isDataDriven())return this.prior=null,a;if(i<this.begin)return o.possiblyEvaluate(t,n,r);{let s=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,n,r),a,cBe(s))}}},Fz=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,n,r){let i=new sw(this._properties);for(let a of Object.keys(this._values))i._values[a]=this._values[a].possiblyEvaluate(t,n,r);return i}hasTransition(){for(let t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}},Dze=class{constructor(t,n,r){this._properties=t,this._values=Object.create(t.defaultPropertyValues),this._globalState=r,this._rootKey=n}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasValue(t){return this._values[t].value!==void 0}hasProperty(t){return t in this._properties.defaultPropertyValues}getValue(t){return oo(this._values[t].value)}setValue(t,n){this._values[t]=new I2(this._values[t].property,n===null?void 0:oo(n),this._propertyRootKey(t),this._globalState)}serialize(){let t={};for(let n of Object.keys(this._values)){let r=this.getValue(n);r!==void 0&&(t[n]=r)}return t}possiblyEvaluate(t,n,r){let i=new sw(this._properties);for(let a of Object.keys(this._values))i._values[a]=this._values[a].possiblyEvaluate(t,n,r);return i}},Ps=class{constructor(t,n,r){this.property=t,this.value=n,this.parameters=r}isConstant(){return this.value.kind==="constant"}constantOr(t){return this.value.kind==="constant"?this.value.value:t}evaluate(t,n,r,i){return this.property.evaluate(this.value,this.parameters,t,n,r,i)}},sw=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}};function zz(e){if(Array.isArray(e))return e.length;let t=e?.values;return Array.isArray(t)?t.length:void 0}function NQ(e,t){let n=zz(e),r=zz(t);return n!==void 0&&r!==void 0&&n!==r}var dt=class{constructor(t,n){this.specification=t,this.name=n}possiblyEvaluate(t,n){if(t.isDataDriven())throw Error("Value should not be data driven");return t.expression.evaluate(n)}interpolate(t,n,r){if(NQ(t,n))return hn(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),n;let i=this.specification.type,a=Lr[i];return a?a(t,n,r):t}},Dt=class{constructor(t,n,r){this.specification=t,this.name=n,this.overrides=r}possiblyEvaluate(t,n,r,i){return t.expression.kind==="constant"||t.expression.kind==="camera"?new Ps(this,{kind:"constant",value:t.expression.evaluate(n,null,{},r,i)},n):new Ps(this,t.expression,n)}interpolate(t,n,r){if(t.value.kind!=="constant"||n.value.kind!=="constant")return t;if(t.value.value===void 0||n.value.value===void 0)return new Ps(this,{kind:"constant",value:void 0},t.parameters);if(NQ(t.value.value,n.value.value))return hn(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),n;let i=this.specification.type,a=Lr[i];if(a){let o=a(t.value.value,n.value.value,r);return new Ps(this,{kind:"constant",value:o},t.parameters)}return t}evaluate(t,n,r,i,a,o){return t.kind==="constant"?t.value:t.evaluate(n,r,i,a,o)}},$2=class extends Dt{possiblyEvaluate(t,n,r,i){if(t.value===void 0)return new Ps(this,{kind:"constant",value:void 0},n);if(t.expression.kind==="constant"){let a=t.expression.evaluate(n,null,{},r,i),o=t.property.specification.type==="resolvedImage"&&typeof a!="string"?a.name:a,s=this._calculate(o,o,o,n);return new Ps(this,{kind:"constant",value:s},n)}if(t.expression.kind==="camera"){let a=this._calculate(t.expression.evaluate({zoom:n.zoom-1}),t.expression.evaluate({zoom:n.zoom}),t.expression.evaluate({zoom:n.zoom+1}),n);return new Ps(this,{kind:"constant",value:a},n)}return new Ps(this,t.expression,n)}evaluate(t,n,r,i,a,o){if(t.kind==="source"){let s=t.evaluate(n,r,i,a,o);return this._calculate(s,s,s,n)}return t.kind==="composite"?this._calculate(t.evaluate({zoom:Math.floor(n.zoom)-1},r,i),t.evaluate({zoom:Math.floor(n.zoom)},r,i),t.evaluate({zoom:Math.floor(n.zoom)+1},r,i),n):t.value}_calculate(t,n,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:n}:{from:r,to:n}}interpolate(t){return t}},VQ=class{constructor(t,n){this.specification=t,this.name=n}possiblyEvaluate(t,n,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let a=t.expression.evaluate(n,null,{},r,i);return this._calculate(a,a,a,n)}return this._calculate(t.expression.evaluate(new Zn(Math.floor(n.zoom-1),n)),t.expression.evaluate(new Zn(Math.floor(n.zoom),n)),t.expression.evaluate(new Zn(Math.floor(n.zoom+1),n)),n)}}_calculate(t,n,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:n}:{from:r,to:n}}interpolate(t){return t}},lw=class{constructor(t,n){this.specification=t,this.name=n}possiblyEvaluate(t,n,r,i){return!!t.expression.evaluate(n,null,{},r,i)}interpolate(){return!1}},Wi=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let n in t){let r=t[n];r.specification.overridable&&this.overridableProperties.push(n);let i=this.defaultPropertyValues[n]=new I2(r,void 0,r.name,void 0),a=this.defaultTransitionablePropertyValues[n]=new MT(r,r.name,void 0);this.defaultTransitioningPropertyValues[n]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[n]=i.possiblyEvaluate({})}}};pt("DataDrivenProperty",Dt),pt("DataConstantProperty",dt),pt("CrossFadedDataDrivenProperty",$2),pt("CrossFadedProperty",VQ),pt("ColorRampProperty",lw);const Nz=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",v9=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";var Tl=class extends Ci{constructor(t,n,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=Mze(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=P2(t.filter,`layers[${this.id}].filter`,r)),n.layout&&(this._unevaluatedLayout=new Dze(n.layout,`layers[${this.id}].layout`,r)),n.paint)){this._transitionablePaint=new ow(n.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new sw(n.paint)}}setFilter(t){this.filter=t,this._featureFilter=P2(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){if(t==="visibility")return this.visibility;if(this._transitionablePaint?.hasProperty(t))throw Error(t+Nz);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let n of this._visibilityExpression.getGlobalStateRefs())t.add(n);if(this._unevaluatedLayout)for(let n in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[n];for(let i of r.getGlobalStateRefs())t.add(i)}for(let n of this._featureFilter.getGlobalStateRefs())t.add(n);return t}getPaintAffectingGlobalStateRefs(){let t=new globalThis.Map;if(this._transitionablePaint)for(let n in this._transitionablePaint._values){let r=this._transitionablePaint._values[n].value;for(let i of r.getGlobalStateRefs()){let a=t.get(i)??[];a.push({name:n,value:r.value}),t.set(i,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,n,r={}){if(t==="visibility"){this.visibility=n,this._visibilityExpression.setValue(n),this.recalculateVisibility();return}if(this._transitionablePaint?.hasProperty(t)){this.fire(new Et(Error(t+Nz)));return}n!=null&&this._validate(io.layoutProperty,`layers.${this.id}.layout.${t}`,t,n,r)||this._unevaluatedLayout.setValue(t,n)}getPaintProperty(t){if(t.endsWith("-transition")){let n=t.slice(0,-11);if(n==="visibility"||this._unevaluatedLayout?.hasProperty(n))throw Error(t+v9);return this._transitionablePaint.getTransition(n)}if(t==="visibility"||this._unevaluatedLayout?.hasProperty(t))throw Error(t+v9);return this._transitionablePaint.getValue(t)}setPaintProperty(t,n,r={}){if(t==="visibility"||this._unevaluatedLayout?.hasProperty(t))return this.fire(new Et(Error(t+v9))),!1;if(n!=null&&this._validate(io.paintProperty,`layers.${this.id}.paint.${t}`,t,n,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),n||void 0),!1;{let i=this._transitionablePaint._values[t],a=i.property.specification["property-type"]==="cross-faded-data-driven",o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,n),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,n,r){return!1}isHidden(t=this.minzoom,n=!1){return this.minzoom&&t<(n?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,n){this._transitionablePaint?.retainPriorGlobalState(t,n,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,n){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,n)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,n)}serialize(){let t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout?.serialize(),paint:this._transitionablePaint?.serialize()};return this.visibility&&(t.layout||={},t.layout.visibility=this.visibility),cJ(t,(n,r)=>n!==void 0&&!(r==="layout"&&!Object.keys(n).length)&&!(r==="paint"&&!Object.keys(n).length))}_validate(t,n,r,i,a={}){return Rv(this,t,{key:n,layerType:this.type,objectKey:r,value:i},a)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let n=this.paint.get(t);if(n instanceof Ps&&jm(n.property.specification)&&(n.value.kind==="source"||n.value.kind==="composite")&&n.value.isStateDependent)return!0}return!1}};let Ize;const $ze=()=>Ize||=new Wi({"raster-opacity":new dt(Ie.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new dt(Ie.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new dt(Ie.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new dt(Ie.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new dt(Ie.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new dt(Ie.paint_raster["raster-contrast"],"raster-contrast"),resampling:new dt(Ie.paint_raster.resampling,"resampling"),"raster-resampling":new dt(Ie.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new dt(Ie.paint_raster["raster-fade-duration"],"raster-fade-duration")});var Lze={get paint(){return $ze()}};const AT=e=>e.type==="raster";var Rze=class extends Tl{constructor(t,n){super(t,Lze,n)}};const Oze={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};var Ov=class{constructor(t,n){this._structArray=t,this._pos1=n*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},Vr=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,n){return t._trim(),n&&(t.isTransferred=!0,n.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let n=Object.create(this.prototype);return n.arrayBuffer=t.arrayBuffer,n.length=t.length,n.capacity=t.arrayBuffer.byteLength/n.bytesPerElement,n._refreshViews(),n}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let n=this.uint8;this._refreshViews(),n&&this.uint8.set(n)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function zr(e,t=1){let n=0,r=0;return{members:e.map(i=>{let a=Bze(i.type),o=n=Vz(n,Math.max(t,a)),s=i.components||1;return r=Math.max(r,a),n+=a*s,{name:i.name,type:i.type,components:s,offset:o}}),size:Vz(n,Math.max(r,t)),alignment:t}}function Bze(e){return Oze[e].BYTES_PER_ELEMENT}function Vz(e,t){return Math.ceil(e/t)*t}var L2=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,n)}emplace(t,n,r){let i=t*2;return this.int16[i+0]=n,this.int16[i+1]=r,t}};L2.prototype.bytesPerElement=4,pt("StructArrayLayout2i4",L2);var m5=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,n,r)}emplace(t,n,r,i){let a=t*3;return this.int16[a+0]=n,this.int16[a+1]=r,this.int16[a+2]=i,t}};m5.prototype.bytesPerElement=6,pt("StructArrayLayout3i6",m5);var PT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r,i){let a=this.length;return this.resize(a+1),this.emplace(a,t,n,r,i)}emplace(t,n,r,i,a){let o=t*4;return this.int16[o+0]=n,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=a,t}};PT.prototype.bytesPerElement=8,pt("StructArrayLayout4i8",PT);var DT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,n,r,i,a,o)}emplace(t,n,r,i,a,o,s){let l=t*6;return this.int16[l+0]=n,this.int16[l+1]=r,this.int16[l+2]=i,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=s,t}};DT.prototype.bytesPerElement=12,pt("StructArrayLayout2i4i12",DT);var IT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,n,r,i,a,o)}emplace(t,n,r,i,a,o,s){let l=t*4,u=t*8;return this.int16[l+0]=n,this.int16[l+1]=r,this.uint8[u+4]=i,this.uint8[u+5]=a,this.uint8[u+6]=o,this.uint8[u+7]=s,t}};IT.prototype.bytesPerElement=8,pt("StructArrayLayout2i4ub8",IT);var R2=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,n)}emplace(t,n,r){let i=t*2;return this.float32[i+0]=n,this.float32[i+1]=r,t}};R2.prototype.bytesPerElement=8,pt("StructArrayLayout2f8",R2);var $T=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o,s,l,u,c){let d=this.length;return this.resize(d+1),this.emplace(d,t,n,r,i,a,o,s,l,u,c)}emplace(t,n,r,i,a,o,s,l,u,c,d){let f=t*10;return this.uint16[f+0]=n,this.uint16[f+1]=r,this.uint16[f+2]=i,this.uint16[f+3]=a,this.uint16[f+4]=o,this.uint16[f+5]=s,this.uint16[f+6]=l,this.uint16[f+7]=u,this.uint16[f+8]=c,this.uint16[f+9]=d,t}};$T.prototype.bytesPerElement=20,pt("StructArrayLayout10ui20",$T);var LT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,n,r,i,a,o,s,l)}emplace(t,n,r,i,a,o,s,l,u){let c=t*8;return this.uint16[c+0]=n,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=a,this.uint16[c+4]=o,this.uint16[c+5]=s,this.uint16[c+6]=l,this.uint16[c+7]=u,t}};LT.prototype.bytesPerElement=16,pt("StructArrayLayout8ui16",LT);var RT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o,s,l,u,c,d,f,h){let p=this.length;return this.resize(p+1),this.emplace(p,t,n,r,i,a,o,s,l,u,c,d,f,h)}emplace(t,n,r,i,a,o,s,l,u,c,d,f,h,p){let g=t*14,v=t*7;return this.int16[g+0]=n,this.int16[g+1]=r,this.int16[g+2]=i,this.int16[g+3]=a,this.uint16[g+4]=o,this.uint16[g+5]=s,this.uint16[g+6]=l,this.uint16[g+7]=u,this.int16[g+8]=c,this.int16[g+9]=d,this.int16[g+10]=f,this.int16[g+11]=h,this.float32[v+6]=p,t}};RT.prototype.bytesPerElement=28,pt("StructArrayLayout4i4ui4i1f28",RT);var OT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,n,r)}emplace(t,n,r,i){let a=t*3;return this.float32[a+0]=n,this.float32[a+1]=r,this.float32[a+2]=i,t}};OT.prototype.bytesPerElement=12,pt("StructArrayLayout3f12",OT);var BT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let n=this.length;return this.resize(n+1),this.emplace(n,t)}emplace(t,n){let r=t*1;return this.uint32[r+0]=n,t}};BT.prototype.bytesPerElement=4,pt("StructArrayLayout1ul4",BT);var FT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o,s,l,u){let c=this.length;return this.resize(c+1),this.emplace(c,t,n,r,i,a,o,s,l,u)}emplace(t,n,r,i,a,o,s,l,u,c){let d=t*10,f=t*5;return this.int16[d+0]=n,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=a,this.int16[d+4]=o,this.int16[d+5]=s,this.uint32[f+3]=l,this.uint16[d+8]=u,this.uint16[d+9]=c,t}};FT.prototype.bytesPerElement=20,pt("StructArrayLayout6i1ul2ui20",FT);var zT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,n,r,i,a,o)}emplace(t,n,r,i,a,o,s){let l=t*6;return this.int16[l+0]=n,this.int16[l+1]=r,this.int16[l+2]=i,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=s,t}};zT.prototype.bytesPerElement=12,pt("StructArrayLayout2i2i2i12",zT);var NT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,n,r,i,a)}emplace(t,n,r,i,a,o){let s=t*4,l=t*8;return this.float32[s+0]=n,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[l+6]=a,this.int16[l+7]=o,t}};NT.prototype.bytesPerElement=16,pt("StructArrayLayout2f1f2i16",NT);var VT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,n,r,i,a,o)}emplace(t,n,r,i,a,o,s){let l=t*16,u=t*4,c=t*8;return this.uint8[l+0]=n,this.uint8[l+1]=r,this.float32[u+1]=i,this.float32[u+2]=a,this.int16[c+6]=o,this.int16[c+7]=s,t}};VT.prototype.bytesPerElement=16,pt("StructArrayLayout2ub2f2i16",VT);var g5=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,n,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,n,r)}emplace(t,n,r,i){let a=t*3;return this.uint16[a+0]=n,this.uint16[a+1]=r,this.uint16[a+2]=i,t}};g5.prototype.bytesPerElement=6,pt("StructArrayLayout3ui6",g5);var jT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x){let _=this.length;return this.resize(_+1),this.emplace(_,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x)}emplace(t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x,_){let w=t*26,C=t*13,T=t*52;return this.int16[w+0]=n,this.int16[w+1]=r,this.uint16[w+2]=i,this.uint16[w+3]=a,this.uint32[C+2]=o,this.uint32[C+3]=s,this.uint32[C+4]=l,this.uint16[w+10]=u,this.uint16[w+11]=c,this.uint16[w+12]=d,this.float32[C+7]=f,this.float32[C+8]=h,this.uint8[T+36]=p,this.uint8[T+37]=g,this.uint8[T+38]=v,this.uint32[C+10]=b,this.int16[w+22]=x,this.float32[C+12]=_,t}};jT.prototype.bytesPerElement=52,pt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",jT);var UT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x,_,w,C,T,k,A,P,D,$,O,z){let j=this.length;return this.resize(j+1),this.emplace(j,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x,_,w,C,T,k,A,P,D,$,O,z)}emplace(t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x,_,w,C,T,k,A,P,D,$,O,z,j){let B=t*34,R=t*17;return this.int16[B+0]=n,this.int16[B+1]=r,this.int16[B+2]=i,this.int16[B+3]=a,this.int16[B+4]=o,this.int16[B+5]=s,this.int16[B+6]=l,this.int16[B+7]=u,this.uint16[B+8]=c,this.uint16[B+9]=d,this.uint16[B+10]=f,this.uint16[B+11]=h,this.uint16[B+12]=p,this.uint16[B+13]=g,this.uint16[B+14]=v,this.uint16[B+15]=b,this.uint16[B+16]=x,this.uint16[B+17]=_,this.uint16[B+18]=w,this.uint16[B+19]=C,this.uint16[B+20]=T,this.uint16[B+21]=k,this.uint16[B+22]=A,this.uint32[R+12]=P,this.float32[R+13]=D,this.float32[R+14]=$,this.uint16[B+30]=O,this.uint16[B+31]=z,this.float32[R+16]=j,t}};UT.prototype.bytesPerElement=68,pt("StructArrayLayout8i15ui1ul2f2ui1f68",UT);var y5=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let n=this.length;return this.resize(n+1),this.emplace(n,t)}emplace(t,n){let r=t*1;return this.float32[r+0]=n,t}};y5.prototype.bytesPerElement=4,pt("StructArrayLayout1f4",y5);var HT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,n,r)}emplace(t,n,r,i){let a=t*6,o=t*3;return this.uint16[a+0]=n,this.float32[o+1]=r,this.float32[o+2]=i,t}};HT.prototype.bytesPerElement=12,pt("StructArrayLayout1ui2f12",HT);var qT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,n,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,n,r)}emplace(t,n,r,i){let a=t*2,o=t*4;return this.uint32[a+0]=n,this.uint16[o+2]=r,this.uint16[o+3]=i,t}};qT.prototype.bytesPerElement=8,pt("StructArrayLayout1ul2ui8",qT);var WT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,n)}emplace(t,n,r){let i=t*2;return this.uint16[i+0]=n,this.uint16[i+1]=r,t}};WT.prototype.bytesPerElement=4,pt("StructArrayLayout2ui4",WT);var GT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let n=this.length;return this.resize(n+1),this.emplace(n,t)}emplace(t,n){let r=t*1;return this.uint16[r+0]=n,t}};GT.prototype.bytesPerElement=2,pt("StructArrayLayout1ui2",GT);var ZT=class extends Vr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,n,r,i){let a=this.length;return this.resize(a+1),this.emplace(a,t,n,r,i)}emplace(t,n,r,i,a){let o=t*4;return this.float32[o+0]=n,this.float32[o+1]=r,this.float32[o+2]=i,this.float32[o+3]=a,t}};ZT.prototype.bytesPerElement=16,pt("StructArrayLayout4f16",ZT);var jQ=class extends Ov{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new we(this.anchorPointX,this.anchorPointY)}};jQ.prototype.size=20;var UQ=class extends FT{get(t){return new jQ(this,t)}};pt("CollisionBoxArray",UQ);var HQ=class extends Ov{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};HQ.prototype.size=52;var qQ=class extends jT{get(t){return new HQ(this,t)}};pt("PlacedSymbolArray",qQ);var WQ=class extends Ov{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};WQ.prototype.size=68;var GQ=class extends UT{get(t){return new WQ(this,t)}};pt("SymbolInstanceArray",GQ);var ZQ=class extends y5{getoffsetX(t){return this.float32[t*1+0]}};pt("GlyphOffsetArray",ZQ);var KQ=class extends m5{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};pt("SymbolLineVertexArray",KQ);var YQ=class extends Ov{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};YQ.prototype.size=12;var XQ=class extends HT{get(t){return new YQ(this,t)}};pt("TextAnchorOffsetArray",XQ);var JQ=class extends Ov{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};JQ.prototype.size=8;var QQ=class extends qT{get(t){return new JQ(this,t)}};pt("FeatureIndexArray",QQ);var Id=class extends L2{},Fze=class extends m5{},zze=class extends PT{},Nze=class extends L2{},Vze=class extends L2{},jze=class extends DT{},Uze=class extends IT{},Hze=class extends R2{},v0=class extends $T{},jz=class extends LT{},qze=class extends RT{},Wze=class extends OT{},Gze=class extends BT{},Uz=class extends zT{},Zze=class extends NT{},Kze=class extends VT{},Yze=class extends g5{},mu=class extends g5{},KT=class extends WT{},Xze=class extends GT{};const Jze=zr([{name:"a_pos",components:2,type:"Int16"}],4),Qze=Jze.members;var $r=class R0{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,n,r,i){let a=this.segments[this.segments.length-1];return t>R0.MAX_VERTEX_ARRAY_LENGTH&&hn(`Max vertices per segment is ${R0.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${R0.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+t>R0.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==i?this.createNewSegment(n,r,i):a}createNewSegment(t,n,r){let i={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0,vaos:{}};return r!==void 0&&(i.sortKey=r),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(i),i}getOrCreateLatestSegment(t,n,r){return this.prepareSegment(0,t,n,r)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let n in t.vaos)t.vaos[n].destroy()}static simpleSegment(t,n,r,i){return new R0([{vertexOffset:t,primitiveOffset:n,vertexLength:r,primitiveLength:i,vaos:{},sortKey:0}])}};$r.MAX_VERTEX_ARRAY_LENGTH=2**16-1,pt("SegmentVector",$r);function Hz(e,t){return e=qt(Math.floor(e),0,255),t=qt(Math.floor(t),0,255),256*e+t}const eNe=zr([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),tNe=zr([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]);var nNe=YA(((e,t)=>{function n(r,i){for(var a=r.length&3,o=r.length-a,s=i,l,u=3432918353,c=461845907,d,f=0;f<o;)d=r.charCodeAt(f)&255|(r.charCodeAt(++f)&255)<<8|(r.charCodeAt(++f)&255)<<16|(r.charCodeAt(++f)&255)<<24,++f,d=(d&65535)
vendor: 6,150 bytes, line 23
23*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*c+(((d>>>16)*c&65535)<<16)&4294967295,s^=d,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(d=0,a){case 3:d^=(r.charCodeAt(f+2)&255)<<16;case 2:d^=(r.charCodeAt(f+1)&255)<<8;case 1:d^=r.charCodeAt(f)&255,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*c+(((d>>>16)*c&65535)<<16)&4294967295,s^=d}return s^=r.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=n)})),rNe=YA(((e,t)=>{function n(r,i){for(var a=r.length,o=i^a,s=0,l;a>=4;)l=r.charCodeAt(s)&255|(r.charCodeAt(++s)&255)<<8|(r.charCodeAt(++s)&255)<<16|(r.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,a-=4,++s;switch(a){case 3:o^=(r.charCodeAt(s+2)&255)<<16;case 2:o^=(r.charCodeAt(s+1)&255)<<8;case 1:o^=r.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=n})),v5=$Oe(YA(((e,t)=>{var n=nNe(),r=rNe();t.exports=n,t.exports.murmur3=n,t.exports.murmur2=r}))()),eee=class tee{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,n,r,i){this.ids.push(qz(t)),this.positions.push(n,r,i)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let n=qz(t),r=0,i=this.ids.length-1;for(;r<i;){let o=r+i>>1;this.ids[o]>=n?i=o:r=o+1}let a=[];for(;this.ids[r]===n;){let o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a}static serialize(t,n){let r=new Float64Array(t.ids),i=new Uint32Array(t.positions);return YT(r,i,0,r.length-1),n&&n.push(r.buffer,i.buffer),{ids:r,positions:i}}static deserialize(t){let n=new tee;return n.ids=t.ids,n.positions=t.positions,n.indexed=!0,n}};function qz(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,v5.default)(String(e))}function YT(e,t,n,r){for(;n<r;){let i=e[n+r>>1],a=n-1,o=r+1;for(;;){do a++;while(e[a]<i);do o--;while(e[o]>i);if(a>=o)break;N3(e,a,o),N3(t,3*a,3*o),N3(t,3*a+1,3*o+1),N3(t,3*a+2,3*o+2)}o-n<r-o?(YT(e,t,n,o),n=o+1):(YT(e,t,o+1,r),r=o)}}function N3(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}pt("FeaturePositionMap",eee);var zc=class{constructor(t,n){this.gl=t.gl,this.location=n}},Mt=class extends zc{constructor(t,n){super(t,n),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))}},ht=class extends zc{constructor(t,n){super(t,n),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))}},tn=class extends zc{constructor(t,n){super(t,n),this.current=[0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1])&&(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))}},za=class extends zc{constructor(t,n){super(t,n),this.current=[0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2])&&(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))}},O2=class extends zc{constructor(t,n){super(t,n),this.current=[0,0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2]||t[3]!==this.current[3])&&(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))}},rf=class extends zc{constructor(t,n){super(t,n),this.current=Kt.transparent}set(t){(t.r!==this.current.r||t.g!==this.current.g||t.b!==this.current.b||t.a!==this.current.a)&&(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))}},Wz=class extends zc{constructor(t,n){super(t,n),this.current=[]}set(t){if(t!=this.current){this.current=t;let n=new Float32Array(t.length*4);for(let r=0;r<t.length;r++)n[4*r]=t[r].r,n[4*r+1]=t[r].g,n[4*r+2]=t[r].b,n[4*r+3]=t[r].a;this.gl.uniform4fv(this.location,n)}}},Gz=class extends zc{constructor(t,n){super(t,n),this.current=[]}set(t){if(t!=this.current){this.current=t;let n=new Float32Array(t);this.gl.uniform1fv(this.location,n)}}};const iNe=new Float32Array(16);var _l=class extends zc{constructor(t,n){super(t,n),this.current=iNe}set(t){if(t[12]!==this.current[12]||t[0]!==this.current[0]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);return}for(let n=1;n<16;n++)if(t[n]!==this.current[n]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}}};function XT(e){return[Hz(255*e.r,255*e.g),Hz(255*e.b,255*e.a)]}var sy=class{constructor(t,n,r){this.value=t,this.uniformNames=n.map(i=>`u_${i}`),this.type=r}setUniform(t,n,r){t.set(r.constantOr(this.value))}getBinding(t,n,r){return this.type==="color"?new rf(t,n):new ht(t,n)}},Qf=class{constructor(t,n){this.uniformNames=n.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,n){this.pixelRatioFrom=n.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=n.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,n){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,n.y,n.height,n.width]}setUniform(t,n,r,i){let a=null;i==="u_pattern_to"?a=this.patternTo:i==="u_pattern_from"?a=this.patternFrom:i==="u_dasharray_to"?a=this.dashTo:i==="u_dasharray_from"?a=this.dashFrom:i==="u_pixel_ratio_to"?a=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(a=this.pixelRatioFrom),a!==null&&t.set(a)}getBinding(t,n,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new O2(t,n):new ht(t,n)}},Vu=class{constructor(t,n,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=n.map(a=>({name:`a_${a}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,n,r){let i=this.paintVertexArray.length,a=this.expression.evaluate(new Zn(0,r),n,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,a)}updatePaintArray(t,n,r,i,a){let o=this.expression.evaluate(new Zn(0,a),r,i);this._setPaintValue(t,n,o)}
vendor: 31,388 bytes, line 23
23_setPaintValue(t,n,r){if(this.type==="color"){let i=XT(r);for(let a=t;a<n;a++)this.paintVertexArray.emplace(a,i[0],i[1])}else{for(let i=t;i<n;i++)this.paintVertexArray.emplace(i,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},Xs=class{constructor(t,n,r,i,a,o){this.expression=t,this.uniformNames=n.map(s=>`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=n.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(t,n,r){let i=this.expression.evaluate(new Zn(this.zoom,r),n,{},r.canonical,[],r.formattedSection),a=this.expression.evaluate(new Zn(this.zoom+1,r),n,{},r.canonical,[],r.formattedSection),o=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(o,t,i,a)}updatePaintArray(t,n,r,i,a){let o=this.expression.evaluate(new Zn(this.zoom,a),r,i),s=this.expression.evaluate(new Zn(this.zoom+1,a),r,i);this._setPaintValue(t,n,o,s)}_setPaintValue(t,n,r,i){if(this.type==="color"){let a=XT(r),o=XT(i);for(let s=t;s<n;s++)this.paintVertexArray.emplace(s,a[0],a[1],o[0],o[1])}else{for(let a=t;a<n;a++)this.paintVertexArray.emplace(a,r,i);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(i))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,n){let r=this.useIntegerZoom?Math.floor(n.zoom):n.zoom,i=qt(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(i)}getBinding(t,n,r){return new ht(t,n)}},bd=class{constructor(t,n,r,i,a,o){this.expression=t,this.type=n,this.useIntegerZoom=r,this.zoom=i,this.layerId=o,this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a}populatePaintArray(t,n,r){let i=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(i,t,this.getPositionIds(n),r)}updatePaintArray(t,n,r,i,a){this._setPaintValues(t,n,this.getPositionIds(r),a)}_setPaintValues(t,n,r,i){let a=this.getPositions(i);if(!a||!r)return;let o=a[r.min],s=a[r.mid],l=a[r.max];if(o&&s&&l)for(let u=t;u<n;u++)this.emplace(this.zoomInPaintVertexArray,u,o,s),this.emplace(this.zoomOutPaintVertexArray,u,l,s)}upload(t){if(this.zoomInPaintVertexArray?.arrayBuffer.byteLength&&this.zoomOutPaintVertexArray?.arrayBuffer.byteLength){let n=this.getVertexAttributes();this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,n,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,n,this.expression.isStateDependent)}}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}},nee=class extends bd{getPositions(t){return t.imagePositions}getPositionIds(t){return t.patterns?.[this.layerId]}getVertexAttributes(){return eNe.members}emplace(t,n,r,i){t.emplace(n,r.tlbr[0],r.tlbr[1],r.tlbr[2],r.tlbr[3],i.tlbr[0],i.tlbr[1],i.tlbr[2],i.tlbr[3],r.pixelRatio,i.pixelRatio)}},ree=class extends bd{getPositions(t){return t.dashPositions}getPositionIds(t){return t.dashes?.[this.layerId]}getVertexAttributes(){return tNe.members}emplace(t,n,r,i){t.emplace(n,0,r.y,r.height,r.width,0,i.y,i.height,i.width)}},iee=class{constructor(t,n,r){this.binders={},this._buffers=[];let i=[];for(let a in t.paint._values){if(!r(a))continue;let o=t.paint.get(a);if(!(o instanceof Ps)||!jm(o.property.specification))continue;let s=aNe(a,t.type),l=o.value,u=o.property.specification.type,c=o.property.useIntegerZoom,d=o.property.specification["property-type"],f=d==="cross-faded"||d==="cross-faded-data-driven";if(l.kind==="constant")this.binders[a]=f?new Qf(l.value,s):new sy(l.value,s,u),i.push(`/u_${a}`);else if(l.kind==="source"||f){let h=Zz(a,u,"source");this.binders[a]=f?a==="line-dasharray"?new ree(l,u,c,n,h,t.id):new nee(l,u,c,n,h,t.id):new Vu(l,s,u,h),i.push(`/a_${a}`)}else{let h=Zz(a,u,"composite");this.binders[a]=new Xs(l,s,u,c,n,h),i.push(`/z_${a}`)}}this.cacheKey=i.sort().join("")}getMaxValue(t){let n=this.binders[t];return n instanceof Vu||n instanceof Xs?n.maxValue:0}populatePaintArrays(t,n,r){for(let i in this.binders){let a=this.binders[i];(a instanceof Vu||a instanceof Xs||a instanceof bd)&&a.populatePaintArray(t,n,r)}}setConstantPatternPositions(t,n){for(let r in this.binders){let i=this.binders[r];i instanceof Qf&&i.setConstantPatternPositions(t,n)}}setConstantDashPositions(t,n){for(let r in this.binders){let i=this.binders[r];i instanceof Qf&&i.setConstantDashPositions(t,n)}}updatePaintArrays(t,n,r,i,a){let o=!1;for(let s of t){let l=n.getPositions(s.id);for(let u of l){let c=r.feature(u.index);for(let d in this.binders){let f=this.binders[d];(f instanceof Vu||f instanceof Xs||f instanceof bd)&&f.expression.isStateDependent===!0&&(f.expression=i.paint.get(d).value,f.updatePaintArray(u.start,u.end,c,s.state,a),o=!0)}}}return o}defines(){let t=[];for(let n in this.binders){let r=this.binders[n];(r instanceof sy||r instanceof Qf)&&t.push(...r.uniformNames.map(i=>`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let n in this.binders){let r=this.binders[n];if(r instanceof Vu||r instanceof Xs)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof bd){let i=r.getVertexAttributes();for(let a of i)t.push(a.name)}}return t}getBinderUniforms(){let t=[];for(let n in this.binders){let r=this.binders[n];if(r instanceof sy||r instanceof Qf||r instanceof Xs)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,n){let r=[];for(let i in this.binders){let a=this.binders[i];if(a instanceof sy||a instanceof Qf||a instanceof Xs){for(let o of a.uniformNames)if(n[o]){let s=a.getBinding(t,n[o],o);r.push({name:o,property:i,binding:s})}}}return r}setUniforms(t,n,r,i){for(let{name:a,property:o,binding:s}of n)this.binders[o].setUniform(s,i,r.get(o),a)}updatePaintBuffers(t){this._buffers=[];for(let n in this.binders){let r=this.binders[n];if(t&&r instanceof bd){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Vu||r instanceof Xs)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let n in this.binders){let r=this.binders[n];(r instanceof Vu||r instanceof Xs||r instanceof bd)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let n=this.binders[t];(n instanceof Vu||n instanceof Xs||n instanceof bd)&&n.destroy()}}},ep=class{constructor(t,n,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new iee(i,n,r);this.needsUpload=!1,this._featureMap=new eee,this._bufferOffset=0}populatePaintArrays(t,n,r,i){for(let a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(t,n,i);n.id!==void 0&&this._featureMap.add(n.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,n,r,i){for(let a of r)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,n,a,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let n in this.programConfigurations)this.programConfigurations[n].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function aNe(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}function oNe(e){return{"line-pattern":{source:v0,composite:v0},"fill-pattern":{source:v0,composite:v0},"fill-extrusion-pattern":{source:v0,composite:v0},"line-dasharray":{source:jz,composite:jz}}[e]}function Zz(e,t,n){let r={color:{source:R2,composite:ZT},number:{source:y5,composite:R2}};return oNe(e)?.[n]||r[t][n]}pt("ConstantBinder",sy),pt("CrossFadedConstantBinder",Qf),pt("SourceExpressionBinder",Vu),pt("CrossFadedPatternBinder",nee),pt("CrossFadedDasharrayBinder",ree),pt("CompositeExpressionBinder",Xs),pt("ProgramConfiguration",iee,{omit:["_buffers"]}),pt("ProgramConfigurationSet",ep);const JT=2**14-1,Kz=-JT-1;function Tp(e){let t=He/e.extent,n=e.loadGeometry();for(let r of n)for(let i of r){let a=Math.round(i.x*t),o=Math.round(i.y*t);i.x=qt(a,Kz,JT),i.y=qt(o,Kz,JT),(a<i.x||a>i.x+1||o<i.y||o>i.y+1)&&hn("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function kp(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Tp(e):[]}}const Yz=-32768;function sNe(e,t,n,r,i){e.emplaceBack(Yz+t*8+r,Yz+n*8+i)}var CP=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(n=>n.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new Nze,this.indexArray=new mu,this.segments=new $r,this.programConfigurations=new ep(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(n=>n.isStateDependent()).map(n=>n.id)}populate(t,n,r){let i=this.layers[0],a=[],o=null,s=!1,l=i.type==="heatmap";if(i.type==="circle"){let f=i;o=f.layout.get("circle-sort-key"),s=!o.isConstant(),l||=f.paint.get("circle-pitch-alignment")==="map"}let u=l?n.subdivisionGranularity.circle:1,c=new Zn(this.zoom),d=this.layers[0]._featureFilter.needGeometry;for(let{feature:f,id:h,index:p,sourceLayerIndex:g}of t){let v=kp(f,d);if(!this.layers[0]._featureFilter.filter(c,v,r))continue;let b=s?o.evaluate(v,{},r):void 0,x={id:h,properties:f.properties,type:f.type,sourceLayerIndex:g,index:p,geometry:d?v.geometry:Tp(f),patterns:{},sortKey:b};a.push(x)}s&&a.sort((f,h)=>f.sortKey-h.sortKey);for(let f of a){let{geometry:h,index:p,sourceLayerIndex:g}=f,v=t[p].feature;this.addFeature(f,h,p,r,u),n.featureIndex.insert(v,h,p,g,this.index)}}update(t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,n,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Qze),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,n,r,i,a=1){let o;switch(a){case 1:o=[0,7];break;case 3:o=[0,2,5,7];break;case 5:o=[0,1,3,4,6,7];break;case 7:o=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${a}; valid values are 1, 3, 5, 7.`)}let s=o.length;for(let l of n)for(let u of l){let c=u.x,d=u.y;if(c<0||c>=8192||d<0||d>=8192)continue;let f=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;for(let p=0;p<s;p++)for(let g=0;g<s;g++)sNe(this.layoutVertexArray,c,d,o[g],o[p]);for(let p=0;p<s-1;p++)for(let g=0;g<s-1;g++){let v=h+p*s+g,b=h+(p+1)*s+g;this.indexArray.emplaceBack(v,b+1,v+1),this.indexArray.emplaceBack(v,b,b+1)}f.vertexLength+=s*s,f.primitiveLength+=(s-1)*(s-1)*2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:{},canonical:i})}};pt("CircleBucket",CP,{omit:["layers"]});function aee(e,t){for(let n of e)if(qm(t,n))return!0;for(let n of t)if(qm(e,n))return!0;return TP(e,t)}function uw(e,t,n){return qm(e,t)?!0:QT(t,e,n)}function oee(e,t){if(e.length===1)return Xz(t,e[0]);for(let n of t)for(let r of n)if(qm(e,r))return!0;for(let n of e)if(Xz(t,n))return!0;for(let n of t)if(TP(e,n))return!0;return!1}function lNe(e,t,n){for(let r of t){if(e.length>=3){for(let i of r)if(qm(e,i))return!0}if(uNe(e,r,n))return!0}return!1}function uNe(e,t,n){if(e.length>1){if(TP(e,t))return!0;for(let r of t)if(QT(r,e,n))return!0}for(let r of e)if(QT(r,t,n))return!0;return!1}function TP(e,t){if(e.length===0||t.length===0)return!1;for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];for(let a=0;a<t.length-1;a++){let o=t[a],s=t[a+1];if(cNe(r,i,o,s))return!0}}return!1}function cNe(e,t,n,r){return Dd(e,n,r)!==Dd(t,n,r)&&Dd(e,t,n)!==Dd(e,t,r)}function QT(e,t,n){let r=n*n;if(t.length===1)return e.distSqr(t[0])<r;for(let i=1;i<t.length;i++){let a=t[i-1],o=t[i];if(see(e,a,o)<r)return!0}return!1}function see(e,t,n){let r=t.distSqr(n);if(r===0)return e.distSqr(t);let i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return i<0?e.distSqr(t):i>1?e.distSqr(n):e.distSqr(n.sub(t)._mult(i)._add(t))}function Xz(e,t){let n=!1,r,i,a;for(let o of e){r=o;for(let s=0,l=r.length-1;s<r.length;l=s++)i=r[s],a=r[l],i.y>t.y!=a.y>t.y&&t.x<(a.x-i.x)*(t.y-i.y)/(a.y-i.y)+i.x&&(n=!n)}return n}function qm(e,t){let n=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){let a=e[r],o=e[i];a.y>t.y!=o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(n=!n)}return n}function dNe(e,t,n,r,i){for(let o of e)if(t<=o.x&&n<=o.y&&r>=o.x&&i>=o.y)return!0;let a=[new we(t,n),new we(t,i),new we(r,i),new we(r,n)];if(e.length>2){for(let o of a)if(qm(e,o))return!0}for(let o=0;o<e.length-1;o++){let s=e[o],l=e[o+1];if(fNe(s,l,a))return!0}return!1}function fNe(e,t,n){let r=n[0],i=n[2];if(e.x<r.x&&t.x<r.x||e.x>i.x&&t.x>i.x||e.y<r.y&&t.y<r.y||e.y>i.y&&t.y>i.y)return!1;let a=Dd(e,t,n[0]);return a!==Dd(e,t,n[1])||a!==Dd(e,t,n[2])||a!==Dd(e,t,n[3])}function hm(e,t,n){let r=t.paint.get(e).value;return r.kind==="constant"?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function cw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dw(e,t,n,r,i){if(!t[0]&&!t[1])return e;let a=we.convert(t)._mult(i);n==="viewport"&&a._rotate(-r);let o=[];for(let s of e)o.push(s.sub(a));return o}function hNe(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.at(-1);(n===0||i&&!r.equals(i))&&t.push(r)}return t}function pNe(e,t){let n=[];for(let r of e){let i=hNe(r),a=[];for(let o=0;o<i.length;o++){let s=i[o],l=i[o-1],u=i[o+1],c=o===0?new we(0,0):s.sub(l)._unit()._perp(),d=o===i.length-1?new we(0,0):u.sub(s)._unit()._perp(),f=c._add(d)._unit(),h=f.x*d.x+f.y*d.y;h!==0&&f._mult(1/h),a.push(f._mult(t)._add(s))}n.push(a)}return n}function mNe({queryGeometry:e,size:t},n){return uw(e,n,t)}function gNe({queryGeometry:e,size:t,transform:n,unwrappedTileID:r,getElevation:i},a){return uw(e,a,t*(n.projectTileCoordinates(a.x,a.y,r,i?.(a.x,a.y)).signedDistanceFromCamera/n.cameraToCenterDistance))}function yNe({queryGeometry:e,size:t,transform:n,unwrappedTileID:r,getElevation:i},a){let o=n.projectTileCoordinates(a.x,a.y,r,i?.(a.x,a.y)).signedDistanceFromCamera,s=t*(n.cameraToCenterDistance/o);return uw(e,kP(a,n,r,i),s)}function vNe({queryGeometry:e,size:t,transform:n,unwrappedTileID:r,getElevation:i},a){return uw(e,kP(a,n,r,i),t)}function lee({queryGeometry:e,size:t,transform:n,unwrappedTileID:r,getElevation:i,pitchAlignment:a="map",pitchScale:o="map"},s){let l=a==="map"?o==="map"?mNe:gNe:o==="map"?yNe:vNe,u={queryGeometry:e,size:t,transform:n,unwrappedTileID:r,getElevation:i};for(let c of s)for(let d of c)if(l(u,d))return!0;return!1}function kP(e,t,n,r){let i=t.projectTileCoordinates(e.x,e.y,n,r?.(e.x,e.y)).point;return new we((i.x*.5+.5)*t.width,(-i.y*.5+.5)*t.height)}function _Ne(e,t,n,r){return e.map(i=>kP(i,t,n,r))}let bNe;const xNe=()=>bNe||=new Wi({"circle-sort-key":new Dt(Ie.layout_circle["circle-sort-key"],"circle-sort-key")});let wNe;const SNe=()=>wNe||=new Wi({"circle-radius":new Dt(Ie.paint_circle["circle-radius"],"circle-radius"),"circle-color":new Dt(Ie.paint_circle["circle-color"],"circle-color"),"circle-blur":new Dt(Ie.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new Dt(Ie.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new dt(Ie.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new dt(Ie.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new dt(Ie.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new dt(Ie.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new Dt(Ie.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new Dt(Ie.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new Dt(Ie.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")});var CNe={get paint(){return SNe()},get layout(){return xNe()}};const TNe=e=>e.type==="circle";var kNe=class extends Tl{constructor(t,n){super(t,CNe,n)}createBucket(t){return new CP(t)}queryRadius(t){let n=t;return hm("circle-radius",this,n)+hm("circle-stroke-width",this,n)+cw(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:n,featureState:r,geometry:i,transform:a,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){let u=dw(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-a.bearingInRadians,o),c=this.paint.get("circle-radius").evaluate(n,r)+this.paint.get("circle-stroke-width").evaluate(n,r),d=this.paint.get("circle-pitch-scale"),f=this.paint.get("circle-pitch-alignment"),h,p;return f==="map"?(h=u,p=c*o):(h=_Ne(u,a,s,l),p=c),lee({queryGeometry:h,size:p,transform:a,unwrappedTileID:s,getElevation:l,pitchAlignment:f,pitchScale:d},i)}},uee=class extends CP{};pt("HeatmapBucket",uee,{omit:["layers"]});let ENe;const MNe=()=>ENe||=new Wi({"heatmap-radius":new Dt(Ie.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new Dt(Ie.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new dt(Ie.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new lw(Ie.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new dt(Ie.paint_heatmap["heatmap-opacity"],"heatmap-opacity")});var ANe={get paint(){return MNe()}};function EP(e,{width:t,height:n},r,i){if(!i)i=new Uint8Array(t*n*r);else if(i instanceof Uint8ClampedArray)i=new Uint8Array(i.buffer);else if(i.length!==t*n*r)throw RangeError(`mismatched image size. expected: ${i.length} but got: ${t*n*r}`);return e.width=t,e.height=n,e.data=i,e}function cee(e,{width:t,height:n},r){if(t===e.width&&n===e.height)return;let i=EP({},{width:t,height:n},r);MP(e,i,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,n)},r),e.width=t,e.height=n,e.data=i.data}function MP(e,t,n,r,i,a){if(i.width===0||i.height===0)return t;if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l<i.height;l++){let u=((n.y+l)*e.width+n.x)*a,c=((r.y+l)*t.width+r.x)*a;for(let d=0;d<i.width*a;d++)s[c+d]=o[u+d]}return t}var AP=class dee{constructor(t,n){EP(this,t,1,n)}resize(t){cee(this,t,1)}clone(){return new dee({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,n,r,i,a){MP(t,n,r,i,a,1)}},gr=class fee{constructor(t,n){EP(this,t,4,n)}resize(t){cee(this,t,4)}replace(t,n){n?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new fee({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,n,r,i,a){MP(t,n,r,i,a,4)}setPixel(t,n,r){let i=(t*this.width+n)*4;this.data[i+0]=Math.round(r.r*255/r.a),this.data[i+1]=Math.round(r.g*255/r.a),this.data[i+2]=Math.round(r.b*255/r.a),this.data[i+3]=Math.round(r.a*255)}};function _9(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=4){let r=e[n+3];t[n+0]=Math.round(e[n+0]*r/255),t[n+1]=Math.round(e[n+1]*r/255),t[n+2]=Math.round(e[n+2]*r/255),t[n+3]=r}return t}pt("AlphaImage",AP),pt("RGBAImage",gr);function hee(e){let t={},n=e.resolution||256,r=e.clips?e.clips.length:1,i=e.image||new gr({width:n,height:r});if(!fBe(n))throw Error(`width is not a power of 2 - ${n}`);let a=(o,s,l)=>{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);i.setPixel(o/4/n,s/4,u)};if(e.clips)for(let o=0,s=0;o<r;++o,s+=n*4)for(let l=0,u=0;l<n;l++,u+=4){let c=l/(n-1),{start:d,end:f}=e.clips[o],h=d*(1-c)+f*c;a(s,u,h)}else for(let o=0,s=0;o<n;o++,s+=4){let l=o/(n-1);a(0,s,l)}return i}const _5="big-fb",PNe=e=>e.type==="heatmap";var DNe=class extends Tl{createBucket(t){return new uee(t)}constructor(t,n){super(t,ANe,n),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){t==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=hee({expression:t,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(_5)}queryRadius(t){return hm("heatmap-radius",this,t)}queryIntersectsFeature({queryGeometry:t,feature:n,featureState:r,geometry:i,transform:a,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){return lee({queryGeometry:t,size:this.paint.get("heatmap-radius").evaluate(n,r)*o,transform:a,unwrappedTileID:s,getElevation:l},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}};let INe;const $Ne=()=>INe||=new Wi({"hillshade-illumination-direction":new dt(Ie.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new dt(Ie.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new dt(Ie.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new dt(Ie.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new dt(Ie.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new dt(Ie.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new dt(Ie.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new dt(Ie.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new dt(Ie.paint_hillshade.resampling,"resampling")});var LNe={get paint(){return $Ne()}};const RNe=e=>e.type==="hillshade";var ONe=class extends Tl{constructor(t,n){super(t,LNe,n),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,n=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,a=Math.max(t.length,n.length,r.length,i.length);t=t.concat(Array(a-t.length).fill(t.at(-1))),n=n.concat(Array(a-n.length).fill(n.at(-1))),r=r.concat(Array(a-r.length).fill(r.at(-1))),i=i.concat(Array(a-i.length).fill(i.at(-1)));let o=n.map(Sr);return{directionRadians:t.map(Sr),altitudeRadians:o,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}};let BNe;const FNe=()=>BNe||=new Wi({"color-relief-opacity":new dt(Ie["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new lw(Ie["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new dt(Ie["paint_color-relief"].resampling,"resampling")});var zNe={get paint(){return FNe()}};function V3(e){return"data"in e}var xi=class{constructor(t,n,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(n,i)}update(t,n,r){let{width:i,height:a}=t,o=(this.size?.[0]!==i||this.size[1]!==a)&&!r,{context:s}=this,{gl:l}=s;this.useMipmap=!!n?.useMipmap,o&&this.size&&this.format===l.RGBA&&(l.deleteTexture(this.texture),this.texture=l.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let u=this.format===l.RGBA&&n?.premultiply!==!1;if(o)if(this.size=[i,a],this.format===l.RGBA&&i>0&&a>0){let c=this.useMipmap?Math.floor(Math.log2(Math.max(i,a)))+1:1;if(l.texStorage2D(l.TEXTURE_2D,c,l.RGBA8,i,a),V3(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:d}=t;u&&d&&(d=_9(d)),d&&l.texSubImage2D(l.TEXTURE_2D,0,0,0,i,a,l.RGBA,l.UNSIGNED_BYTE,d)}else s.pixelStoreUnpackPremultiplyAlpha.set(u),l.texSubImage2D(l.TEXTURE_2D,0,0,0,l.RGBA,l.UNSIGNED_BYTE,t)}else V3(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,u,i,a,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(u),this._uploadDomImage(t,l));else{let{x:c,y:d}=r||{x:0,y:0};V3(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,u,c,d,i,a,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(u),this._updateDomImage(t,c,d,l))}this.useMipmap&&!(V3(t)&&t.data===null)&&l.generateMipmap(l.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,n){n.texImage2D(n.TEXTURE_2D,0,this.format,this.format,n.UNSIGNED_BYTE,t)}_uploadRawData(t,n,r,i,a){let{data:o}=t;n&&o&&(o=_9(o)),a.texImage2D(a.TEXTURE_2D,0,this.format,r,i,0,this.format,a.UNSIGNED_BYTE,o)}_updateDomImage(t,n,r,i){i.texSubImage2D(i.TEXTURE_2D,0,n,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,n,r,i,a,o,s){let{data:l}=t;n&&l&&(l=_9(l)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,a,o,s.RGBA,s.UNSIGNED_BYTE,l)}bind(t,n,r){let{context:i}=this,{gl:a}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),a.bindTexture(a.TEXTURE_2D,this.texture),(r===a.LINEAR_MIPMAP_NEAREST||r===a.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=a.LINEAR);let o=r||t;t!==this.magFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,t),this.magFilter=t),o!==this.minFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,o),this.minFilter=o),n!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,n),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,n),this.wrap=n)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},fc,NNe=(fc=class{constructor(t,n,r,i=1,a=1,o=1,s=0){if(this.uid=t,n.height!==n.width)throw RangeError("DEM tiles must be square");if(r&&!["mapbox","terrarium","custom"].includes(r)){hn(`"${r}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=n.height;let l=this.dim=n.height-4;switch(this.data=new Uint32Array(n.data.buffer),fc.byteViewCache.set(this,new Uint8Array(this.data.buffer)),r){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=i,this.greenFactor=a,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let c=-2;c<l+2;c++){let d=this._idx(0,Math.max(0,Math.min(l-1,c)));(c<0||c>=l)&&this.data.copyWithin(this._idx(0,c),d,d+l),this.data.fill(this.data[d],this._idx(-2,c),this._idx(0,c)),this.data.fill(this.data[d+l-1],this._idx(l,c),this._idx(l+1,c)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-9007199254740991;for(let c=0;c<l;c++)for(let d=0;d<l;d++){let f=this._idx(c,d)*4,h=this._unpackAtIndex(u,f);h>this.max&&(this.max=h),h<this.min&&(this.min=h)}}get(t,n){let r=this._getByteView(),i=this._idx(t,n)*4;return this._unpackAtIndex(r,i)}sampleBilinear(t,n){let r=Math.floor(t),i=Math.floor(n);if(r<-1||r>=this.dim||i<-1||i>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${n}, dim: ${this.dim}`);let a=this._getByteView(),o=((i+2)*this.stride+r+2)*4,s=this.stride*4,l=t-r,u=n-i,c=this._unpackAtIndex(a,o),d=this._unpackAtIndex(a,o+4),f=this._unpackAtIndex(a,o+s),h=this._unpackAtIndex(a,o+s+4);return c*(1-l)*(1-u)+d*l*(1-u)+f*(1-l)*u+h*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,n){if(t<-2||t>=this.dim+2||n<-2||n>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${n}, dim: ${this.dim}`);return(n+2)*this.stride+(t+2)}unpack(t,n,r){return t*this.redFactor+n*this.greenFactor+r*this.blueFactor-this.baseShift}pack(t){return pee(t,this.getUnpackVector())}getPixels(){return new gr({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,n,r){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let i=n*this.dim,a=n*this.dim+this.dim,o=r*this.dim,s=r*this.dim+this.dim;switch(n){case-1:i=a-2;break;case 1:a=i+2}switch(r){case-1:o=s-2;break;case 1:s=o+2}let l=-n*this.dim,u=-r*this.dim;for(let c=o;c<s;c++)for(let d=i;d<a;d++)this.data[this._idx(d,c)]=t.data[this._idx(d+l,c+u)]}_getByteView(){let t=fc.byteViewCache.get(this);return t?.buffer!==this.data.buffer&&(t=new Uint8Array(this.data.buffer),fc.byteViewCache.set(this,t)),t}_unpackAtIndex(t,n){return this.unpack(t[n],t[n+1],t[n+2])}},fc.byteViewCache=new WeakMap,fc);function pee(e,t){let n=t[0],r=t[1],i=t[2],a=t[3],o=Math.min(n,r,i),s=Math.round((e+a)/o);return{r:Math.floor(s*o/n)%256,g:Math.floor(s*o/r)%256,b:Math.floor(s*o/i)%256}}pt("DEMData",NNe);const VNe=e=>e.type==="color-relief";var jNe=class extends Tl{constructor(t,n){super(t,zNe,n)}_createColorRamp(t){let n={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof A2&&r._styleExpression.expression instanceof Ls){this.colorRampExpression=r;let o=r._styleExpression.expression;n.elevationStops=o.labels,n.colorStops=[];for(let s of n.elevationStops)n.colorStops.push(o.evaluate({globals:{elevation:s}}))}if(n.elevationStops.length<1&&(n.elevationStops=[0],n.colorStops=[Kt.transparent]),n.elevationStops.length<2&&(n.elevationStops.push(n.elevationStops[0]+1),n.colorStops.push(n.colorStops[0])),n.elevationStops.length<=t)return n;let i={elevationStops:[],colorStops:[]},a=(n.elevationStops.length-1)/(t-1);for(let o=0;o<n.elevationStops.length-.5;o+=a)i.elevationStops.push(n.elevationStops[Math.round(o)]),i.colorStops.push(n.colorStops[Math.round(o)]);return hn(`Too many colors in specification of ${this.id}
23 color-relief layer, may not render properly. Max possible colors: ${t}, provided: ${n.elevationStops.length}`),i}_colorRampChanged(){return this.colorRampExpression!=this._transitionablePaint._values["color-relief-color"].value.expression}getColorRampTextures(t,n,r){if(this.colorRampTextures&&!this._colorRampChanged())return this.colorRampTextures;let i=this._createColorRamp(n),a=new gr({width:i.colorStops.length,height:1}),o=new gr({width:i.colorStops.length,height:1});for(let s=0;s<i.elevationStops.length;s++){let l=pee(i.elevationStops[s],r);o.setPixel(0,s,new Kt(l.r/255,l.g/255,l.b/255,1)),a.setPixel(0,s,i.colorStops[s])}return this.colorRampTextures={elevationTexture:new xi(t,o,t.gl.RGBA),colorTexture:new xi(t,a,t.gl.RGBA)},this.colorRampTextures}hasOffscreenPass(){return!this.isHidden()&&!!this.colorRampTextures}};const UNe=zr([{name:"a_pos",components:2,type:"Int16"}],4),HNe=UNe.members;function b5(e,t,n){let r=n.patternDependencies,i=!1;for(let a of t){let o=a.paint.get(`${e}-pattern`);o.isConstant()||(i=!0);let s=o.constantOr(null);s&&(i=!0,r[s.to]=!0,r[s.from]=!0)}return i}function PP(e,t,n,r,i){let{zoom:a}=r,o=i.patternDependencies;for(let s of t){let l=s.paint.get(`${e}-pattern`).value;if(l.kind!=="constant"){let u=l.evaluate({zoom:a-1},n,{},i.availableImages),c=l.evaluate({zoom:a},n,{},i.availableImages),d=l.evaluate({zoom:a+1},n,{},i.availableImages);u=u?.name?u.name:u,c=c?.name?c.name:c,d=d?.name?d.name:d,o[u]=!0,o[c]=!0,o[d]=!0,n.patterns[s.id]={min:u,mid:c,max:d}}}return n}const B2=new Set;let ek=!1;function qNe(e,t,n=2){let r=t&&t.length,i=r?t[0]*n:e.length;B2.size&&B2.clear();let a=mee(e,0,i,n,!0),o=[];if(!a||a.next===a.prev)return o;let s=0,l=0,u=0;
vendor: 4,129 bytes, line 23
23if(r&&(a=YNe(e,t,a,n)),e.length>80*n){s=e[0],l=e[1];let c=s,d=l;for(let f=n;f<i;f+=n){let h=e[f],p=e[f+1];h<s&&(s=h),p<l&&(l=p),h>c&&(c=h),p>d&&(d=p)}u=Math.max(c-s,d-l),u=u===0?0:32767/u}return tk(a,o,s,l,u),o}function mee(e,t,n,r,i){let a=null;if(i===uVe(e,t,n,r)>0)for(let o=t;o<n;o+=r)a=eN(o/r|0,e[o],e[o+1],a);else for(let o=n-r;o>=t;o-=r)a=eN(o/r|0,e[o],e[o+1],a);return a&&F2(a,a.next)&&(N2(a),a=a.next),a}function tp(e,t=e){let n=t===e,r=e,i;do i=!1,r!==r.next&&(B2.size===0||!B2.has(r))&&(F2(r,r.next)||_i(r.prev,r,r.next)===0)?((n||r===t)&&(t=r.prev),ek=!0,N2(r),r=r.prev,i=!0):(n||r!==t)&&(r=r.next,i=!n);while(i||r!==t);return t}function tk(e,t,n,r,i){i&&rVe(e,n,r,i);let a=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if(_i(s,e,l)<0&&(i?GNe(e,n,r,i):WNe(e))){t.push(s.i,e.i,l.i),N2(e),e=l,a=l;continue}if(e=l,e===a){if(ek=!1,e=tp(e),ek){a=e;continue}if(!o){e=ZNe(e,t),a=e,o=!0;continue}KNe(e,t,n,r,i);break}}}function WNe(e){let t=e.prev,n=e,r=e.next,i=t.x,a=n.x,o=r.x,s=t.y,l=n.y,u=r.y,c=Math.min(i,a,o),d=Math.min(s,l,u),f=Math.max(i,a,o),h=Math.max(s,l,u),p=r.next;for(;p!==t;){if(p.x>=c&&p.x<=f&&p.y>=d&&p.y<=h&&(i!==p.x||s!==p.y)&&w5(i,s,a,l,o,u,p.x,p.y)&&_i(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function GNe(e,t,n,r){let i=e.prev,a=e,o=e.next,s=i.x,l=a.x,u=o.x,c=i.y,d=a.y,f=o.y,h=Math.min(s,l,u),p=Math.min(c,d,f),g=Math.max(s,l,u),v=Math.max(c,d,f),b=ak(h,p,t,n,r),x=ak(g,v,t,n,r),_=e.prevZ;for(;_&&_.z>=b;){if(_.x>=h&&_.x<=g&&_.y>=p&&_.y<=v&&_!==o&&(s!==_.x||c!==_.y)&&w5(s,c,l,d,u,f,_.x,_.y)&&_i(_.prev,_,_.next)>=0)return!1;_=_.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=g&&w.y>=p&&w.y<=v&&w!==o&&(s!==w.x||c!==w.y)&&w5(s,c,l,d,u,f,w.x,w.y)&&_i(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function ZNe(e,t){let n=e,r=!1;do{let i=n.prev,a=n.next.next;yee(i,n,n.next,a,!1)&&z2(i,a)&&z2(a,i)&&(t.push(i.i,n.i,a.i),N2(n),N2(n.next),n=e=a,r=!0),n=n.next}while(n!==e);return r?tp(n):n}function KNe(e,t,n,r,i){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&oVe(a,o)){let s=vee(a,o);a=tp(a,a.next),s=tp(s,s.next),tk(a,t,n,r,i),tk(s,t,n,r,i);return}o=o.next}a=a.next}while(a!==e)}let nk=!1;function YNe(e,t,n,r){let i=[];for(let a=0,o=t.length;a<o;a++){let s=mee(e,t[a]*r,a<o-1?t[a+1]*r:e.length,r,!1);s===s.next&&B2.add(s),i.push(aVe(s))}i.sort(XNe),QNe(e.length/r,t.length),gee(n,n),nk=!0;for(let a=0;a<i.length;a++)n=JNe(i[a],n);return nk=!1,tp(n)}function XNe(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function JNe(e,t){let n=tVe(e,t);if(!n)return t;let r=vee(n,e),i=r.next;return gee(n,i.next),tp(r,r.next),tp(n,n.next)}let Qr=new Float64Array,x5=0;const rk=[],ik=[];function QNe(e,t){let n=Math.ceil((e+2*t)/16)+t+2;Qr.length<n*4&&(Qr=new Float64Array(n*4)),x5=0}function gee(e,t){let n=e;do{let r=x5++;rk[r]=n;let i=1/0,a=1/0,o=-1/0,s=-1/0,l=0;do{let c=n.next;n.z=r,n.x<i&&(i=n.x),n.x>o&&(o=n.x),n.y<a&&(a=n.y),n.y>s&&(s=n.y),c.x<i&&(i=c.x),c.x>o&&(o=c.x),c.y<a&&(a=c.y),c.y>s&&(s=c.y),n=c}while(++l<16&&n!==t);ik[r]=n;let u=r*4;Qr[u]=i,Qr[u+1]=a,Qr[u+2]=o,Qr[u+3]=s}while(n!==t)}function eVe(e,t){let n=e.z*4;t.x<Qr[n]&&(Qr[n]=t.x),t.y<Qr[n+1]&&(Qr[n+1]=t.y),t.x>Qr[n+2]&&(Qr[n+2]=t.x),t.y>Qr[n+3]&&(Qr[n+3]=t.y)}function Jz(e){let t=ik[e];for(;t.prev.next!==t;)t=t.next;return ik[e]=t,t}function Qz(e){let t=rk[e];for(;t.prev.next!==t;)t=t.next;return rk[e]=t,t}function tVe(e,t){let n=t,r=e.x,i=e.y,a=-1/0,o;if(F2(e,n))return n;for(let f=0,h=0;f<x5;f++,h+=4){if(i<Qr[h+1]||i>Qr[h+3]||Qr[h]>r||Qr[h+2]<=a)continue;let p=Jz(f);n=Qz(f);do{if(n.prev.next===n){if(F2(e,n.next))return n.next;if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){let g=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(g<=r&&g>a&&(a=g,o=n.x<n.next.x?n:n.next,g===r))return o}}n=n.next}while(n!==p)}if(!o)return null;let s=o.x,l=o.y,u=Math.min(i,l),c=Math.max(i,l),d=1/0;for(let f=0,h=0;f<x5;f++,h+=4){if(Qr[h+2]<s||Qr[h]>r||Qr[h+3]<u||Qr[h+1]>c)continue;let p=Jz(f);n=Qz(f);do{if(n.prev.next===n&&r>=n.x&&n.x>=s&&r!==n.x&&w5(i<l?r:a,i,s,l,i<l?a:r,i,n.x,n.y)){let g=Math.abs(i-n.y)/(r-n.x);(z2(n,e)||n.y===i&&n.next.y===i&&n.next.x>r)&&(g<d||g===d&&(n.x>
vendor: 17,104 bytes, line 23
23o.x||n.x===o.x&&nVe(o,n)))&&(o=n,d=g)}n=n.next}while(n!==p)}return o}function nVe(e,t){return _i(e.prev,e,t.prev)<0&&_i(t.next,e,e.next)<0}const _s=[];let $g=[],qf=new Uint32Array,Lg=new Uint32Array;const Rg=new Uint32Array(256);function rVe(e,t,n,r){let i=e,a=0;do i.z=ak(i.x,i.y,t,n,r),_s[a++]=i,i=i.next;while(i!==e);iVe(a);let o=null;for(let s=0;s<a;s++){let l=_s[s];l.prevZ=o,o&&(o.nextZ=l),o=l}o.nextZ=null}function iVe(e){if(e<=32){for(let t=1;t<e;t++){let n=_s[t],r=n.z,i=t-1;for(;i>=0&&_s[i].z>r;)_s[i+1]=_s[i],i--;_s[i+1]=n}return}qf.length<e&&(qf=new Uint32Array(e),Lg=new Uint32Array(e),$g=Array(e));for(let t=0;t<e;t++)qf[t]=_s[t].z;j3(e,_s,qf,$g,Lg,0),j3(e,$g,Lg,_s,qf,8),j3(e,_s,qf,$g,Lg,16),j3(e,$g,Lg,_s,qf,24)}function j3(e,t,n,r,i,a){Rg.fill(0);for(let s=0;s<e;s++)Rg[n[s]>>>a&255]++;let o=0;for(let s=0;s<256;s++){let l=Rg[s];Rg[s]=o,o+=l}for(let s=0;s<e;s++){let l=n[s],u=Rg[l>>>a&255]++;r[u]=t[s],i[u]=l}}function ak(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function aVe(e){let t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function w5(e,t,n,r,i,a,o,s){return(i-o)*(t-s)>=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function oVe(e,t){let n=F2(e,t)&&_i(e.prev,e,e.next)>0&&_i(t.prev,t,t.next)>0;return e.next.i!==t.i&&(n||z2(e,t)&&z2(t,e)&&(_i(e.prev,e,t.prev)!==0||_i(e,t.prev,t)!==0))&&!sVe(e,t)&&(n||lVe(e,t))}function _i(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function F2(e,t){return e.x===t.x&&e.y===t.y}function yee(e,t,n,r,i=!0){let a=_i(e,t,n),o=_i(e,t,r),s=_i(n,r,e),l=_i(n,r,t);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:i?!!(a===0&&U3(e,n,t)||o===0&&U3(e,r,t)||s===0&&U3(n,e,r)||l===0&&U3(n,t,r)):!1}function U3(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function sVe(e,t){let n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>r&&s.x>r||o.x<n&&s.x<n||o.y>a&&s.y>a||o.y<i&&s.y<i){o=s;continue}if(o.i!==e.i&&s.i!==e.i&&o.i!==t.i&&s.i!==t.i&&yee(o,s,e,t))return!0;o=s}while(o!==e);return!1}function z2(e,t){return _i(e.prev,e,e.next)<0?_i(e,t,e.next)>=0&&_i(e,e.prev,t)>=0:_i(e,t,e.prev)<0||_i(e,e.next,t)<0}function lVe(e,t){let n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{let o=n.next;n.y>a!=o.y>a&&i<(o.x-n.x)*(a-n.y)/(o.y-n.y)+n.x&&(r=!r),n=o}while(n!==e);return r}function vee(e,t){let n=ok(e.i,e.x,e.y),r=ok(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function eN(e,t,n,r){let i=ok(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function N2(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),nk&&eVe(e.prev,e.next)}function ok(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function uVe(e,t,n,r){let i=0;for(let a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}var oc=class{constructor(t,n){if(n>t)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=n}getGranularityForZoomLevel(t){let n=1<<t;return Math.max(Math.floor(this._baseZoomGranularity/n),this._minGranularity,1)}},Nh,DP=(Nh=class{constructor(t){this.fill=t.fill,this.line=t.line,this.tile=t.tile,this.stencil=t.stencil,this.circle=t.circle}},Nh.noSubdivision=new Nh({fill:new oc(0,0),line:new oc(0,0),tile:new oc(0,0),stencil:new oc(0,0),circle:1}),Nh);pt("SubdivisionGranularityExpression",oc),pt("SubdivisionGranularitySetting",DP);const Oy=-32768,By=32767;var cVe=class{constructor(t,n){this._vertexBuffer=[],this._vertexDictionary=new Map,this._used=!1,this._granularity=t,this._granularityCellSize=He/t,this._canonical=n}_getKey(t,n){return t+=32768,n+=32768,t<<16|n<<0}_vertexToIndex(t,n){if(t<-32768||n<-32768||t>32767||n>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(n)|0,a=this._getKey(r,i),o=this._vertexDictionary.get(a);if(o!==void 0)return o;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(a,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,n){if(this._granularity<2)return hVe(this._vertexBuffer,fVe(t,n));let r=[],i=t.length;for(let a=0;a<i;a+=3){let o=[n[t[a+0]],n[t[a+1]],n[t[a+2]]],s=[this._vertexBuffer[o[0]*2+0],this._vertexBuffer[o[0]*2+1],this._vertexBuffer[o[1]*2+0],this._vertexBuffer[o[1]*2+1],this._vertexBuffer[o[2]*2+0],this._vertexBuffer[o[2]*2+1]],l=1/0,u=1/0,c=-1/0,d=-1/0;for(let v=0;v<3;v++){let b=s[v*2],x=s[v*2+1];l=Math.min(l,b),c=Math.max(c,b),u=Math.min(u,x),d=Math.max(d,x)}if(l===c||u===d)continue;let f=Math.floor(l/this._granularityCellSize),h=Math.ceil(c/this._granularityCellSize),p=Math.floor(u/this._granularityCellSize),g=Math.ceil(d/this._granularityCellSize);if(f===h&&p===g){r.push(...o);continue}for(let v=p;v<g;v++){let b=this._scanlineGenerateVertexRingForCellRow(v,s,o);pVe(this._vertexBuffer,b,r)}}return r}_scanlineGenerateVertexRingForCellRow(t,n,r){let i=t*this._granularityCellSize,a=i+this._granularityCellSize,o=[];for(let s=0;s<3;s++){let l=n[s*2],u=n[s*2+1],c=n[(s+1)*2%6],d=n[((s+1)*2+1)%6],f=n[(s+2)*2%6],h=n[((s+2)*2+1)%6],p=c-l,g=d-u,v=p===0,b=g===0,x=(i-u)/g,_=(a-u)/g,w=Math.min(x,_),C=Math.max(x,_);if(!b&&(w>=1||C<=0)||b&&(u<i||u>a)){d>=i&&d<=a&&o.push(r[(s+1)%3]);continue}if(!b&&w>0){let A=l+p*w,P=u+g*w;o.push(this._vertexToIndex(A,P))}let T=l+p*Math.max(w,0),k=l+p*Math.min(C,1);if(v||this._generateIntraEdgeVertices(o,l,u,c,d,T,k),!b&&C<1){let A=l+p*C,P=u+g*C;o.push(this._vertexToIndex(A,P))}(b||d>=i&&d<=a)&&o.push(r[(s+1)%3]),!b&&(d<=i||d>=a)&&this._generateInterEdgeVertices(o,l,u,c,d,f,h,k,i,a)}return o}_generateIntraEdgeVertices(t,n,r,i,a,o,s){let l=i-n,u=a-r,c=u===0,d=c?Math.min(n,i):Math.min(o,s),f=c?Math.max(n,i):Math.max(o,s),h=Math.floor(d/this._granularityCellSize)+1,p=Math.ceil(f/this._granularityCellSize)-1;if(c?n<i:o<s)for(let g=h;g<=p;g++){let v=g*this._granularityCellSize,b=r+u*(v-n)/l;t.push(this._vertexToIndex(v,b))}else for(let g=p;g>=h;g--){let v=g*this._granularityCellSize,b=r+u*(v-n)/l;t.push(this._vertexToIndex(v,b))}}_generateInterEdgeVertices(t,n,r,i,a,o,s,l,u,c){let d=a-r,f=o-i,h=s-a,p=(u-a)/h,g=(c-a)/h,v=Math.min(p,g),b=Math.max(p,g),x=i+f*v,_=Math.floor(Math.min(x,l)/this._granularityCellSize)+1,w=Math.ceil(Math.max(x,l)/this._granularityCellSize)-1,C=l<x,T=h===0;if(T&&(s===u||s===c))return;if(T||v>=1||b<=0){let A=n-o,P=r-s,D=(u-s)/P,$=(c-s)/P,O=o+A*Math.min(D,$);_=Math.floor(Math.min(O,l)/this._granularityCellSize)+1,w=Math.ceil(Math.max(O,l)/this._granularityCellSize)-1,C=l<O}let k=d>0?c:u;if(C)for(let A=_;A<=w;A++){let P=A*this._granularityCellSize;t.push(this._vertexToIndex(P,k))}else for(let A=w;A>=_;A--){let P=A*this._granularityCellSize;t.push(this._vertexToIndex(P,k))}}_generateOutline(t,n){let r=[],i=0;for(let a of t){let o=this._granularity<2?this._ringPathIndices(a,i,n):this._pointArrayToIndices(yh(a,this._granularity,!0));i+=a.length;let s=[];for(let l=1;l<o.length;l++)s.push(o[l-1]),s.push(o[l]);r.push(s)}return r}_ringPathIndices(t,n,r){let i=r.slice(n,n+t.length);return i.length>=2&&bee(t)&&i.push(i[0]),i}_handlePoles(t){let n=!1,r=!1;this._canonical&&(this._canonical.y===0&&(n=!0),this._canonical.y===(1<<this._canonical.z)-1&&(r=!0)),(n||r)&&this._fillPoles(t,n,r)}_ensureNoPoleVertices(){let t=this._vertexBuffer;for(let n=0;n<t.length;n+=2){let r=t[n+1];r===-32768&&(t[n+1]=-32767),r===32767&&(t[n+1]=32766)}}_generatePoleQuad(t,n,r,i,a,o){i>a==(o===-32768)?(t.push(r),t.push(n),t.push(this._vertexToIndex(i,o)),t.push(this._vertexToIndex(a,o)),t.push(r),t.push(this._vertexToIndex(i,o))):(t.push(n),t.push(r),t.push(this._vertexToIndex(i,o)),t.push(r),t.push(this._vertexToIndex(a,o)),t.push(this._vertexToIndex(i,o)))}_fillPoles(t,n,r){let i=this._vertexBuffer,a=He,o=t.length;for(let s=2;s<o;s+=3){let l=t[s-2],u=t[s-1],c=t[s],d=i[l*2],f=i[l*2+1],h=i[u*2],p=i[u*2+1],g=i[c*2],v=i[c*2+1];n&&(f===0&&p===0&&this._generatePoleQuad(t,l,u,d,h,Oy),p===0&&v===0&&this._generatePoleQuad(t,u,c,h,g,Oy),v===0&&f===0&&this._generatePoleQuad(t,c,l,g,d,Oy)),r&&(f===a&&p===a&&this._generatePoleQuad(t,l,u,d,h,By),p===a&&v===a&&this._generatePoleQuad(t,u,c,h,g,By),v===a&&f===a&&this._generatePoleQuad(t,c,l,g,d,By))}}_initializeVertices(t){let n=[];for(let r=0;r<t.length;r+=2)n.push(this._vertexToIndex(t[r],t[r+1]));return n}subdividePolygonInternal(t,n){if(this._used)throw Error("Subdivision: multiple use not allowed.");this._used=!0;let{flattened:r,holeIndices:i}=dVe(t),a=this._initializeVertices(r),o;try{let l=qNe(r,i);o=this._subdivideTrianglesScanline(l,a)}catch(l){console.error(l)}let s=[];return n&&(s=this._generateOutline(t,a)),this._ensureNoPoleVertices(),this._handlePoles(o),this._granularity>=2&&this._canonical?.z===0&&(o=this._removeTrianglesOutsideTileX(o),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:o,indicesLineList:s}}_vertexOutsideTileX(t){let n=this._vertexBuffer[t*2];return n<0||n>8192}_removeTrianglesOutsideTileX(t){let n=[];for(let r=0;r<t.length;r+=3)this._vertexOutsideTileX(t[r])||this._vertexOutsideTileX(t[r+1])||this._vertexOutsideTileX(t[r+2])||n.push(t[r],t[r+1],t[r+2]);return n}_removeLinesOutsideTileX(t){let n=[];for(let r=0;r<t.length;r+=2)this._vertexOutsideTileX(t[r])||this._vertexOutsideTileX(t[r+1])||n.push(t[r],t[r+1]);return n}_pointArrayToIndices(t){let n=[];for(let r of t)n.push(this._vertexToIndex(r.x,r.y));return n}};function _ee(e,t,n,r=!0){return new cVe(n,t).subdividePolygonInternal(e,r)}function yh(e,t,n=!1){if(!e||e.length<1||e.length<2)return[];let r=n&&bee(e);if(t<2)return r?[...e,e[0]]:[...e];let i=Math.floor(He/t),a=[];a.push(new we(e[0].x,e[0].y));let o=e.length,s=r?o:o-1;for(let l=0;l<s;l++){let u=e[l],c=l<o-1?e[l+1]:e[0],d=u.x,f=u.y,h=c.x,p=c.y,g=d!==h,v=f!==p;if(!g&&!v)continue;let b=h-d,x=p-f,_=Math.abs(b),w=Math.abs(x),C=d,T=f;for(;;){let A=b>0?(Math.floor(C/i)+1)*i:(Math.ceil(C/i)-1)*i,P=x>0?(Math.floor(T/i)+1)*i:(Math.ceil(T/i)-1)*i,D=Math.abs(C-A),$=Math.abs(T-P),O=Math.abs(C-h),z=Math.abs(T-p),j=g?D/_:1/0,B=v?$/w:1/0;if((O<=D||!g)&&(z<=$||!v))break;if(j<B&&g||!v){C=A,T+=x*j;let R=new we(C,Math.round(T));(a[a.length-1].x!==R.x||a[a.length-1].y!==R.y)&&a.push(R)}else{C+=b*B,T=P;let R=new we(Math.round(C),T);(a[a.length-1].x!==R.x||a[a.length-1].y!==R.y)&&a.push(R)}}let k=new we(h,p);(a[a.length-1].x!==k.x||a[a.length-1].y!==k.y)&&a.push(k)}return a}function bee(e){return!e[0].equals(e[e.length-1])}function dVe(e){let t=[],n=[];for(let r of e)if(r.length!==0){r!==e[0]&&t.push(n.length/2);for(let i of r)n.push(i.x),n.push(i.y)}return{flattened:n,holeIndices:t}}function fVe(e,t){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return n}function hVe(e,t){let n=[];for(let r=0;r<t.length;r+=3){let i=t[r],a=t[r+1],o=t[r+2],s=e[i*2],l=e[i*2+1],u=e[a*2],c=e[a*2+1],d=e[o*2],f=e[o*2+1],h=u-s,p=c-l,g=d-s;h*(f-l)-p*g>0?(n.push(i),n.push(o),n.push(a)):(n.push(i),n.push(a),n.push(o))}return n}function pVe(e,t,n){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let r=0,i=e[t[0]*2];for(let l=1;l<t.length;l++){let u=e[t[l]*2];u<i&&(i=u,r=l)}let a=t.length,o=r,s=(o+1)%a;for(;;){let l=o-1>=0?o-1:a-1,u=(s+1)%a,c=e[t[l]*2],d=e[t[l]*2+1],f=e[t[u]*2],h=e[t[u]*2+1],p=e[t[o]*2],g=e[t[o]*2+1],v=e[t[s]*2],b=e[t[s]*2+1],x=!1;if(c<f)x=!0;else if(c>f)x=!1;else{let _=b-g,w=-(v-p),C=g<b?1:-1;((c-p)*_+(d-g)*w)*C>((f-p)*_+(h-g)*w)*C&&(x=!0)}if(x){let _=t[l],w=t[o],C=t[s];_!==w&&_!==C&&w!==C&&n.push(C,w,_),o--,o<0&&(o=a-1)}else{let _=t[u],w=t[o],C=t[s];_!==w&&_!==C&&w!==C&&n.push(C,w,_),s++,s>=a&&(s=0)}if(l===u)break}}function xee(e,t,n,r,i,a,o,s,l){let u=i.length/2,c=o&&s&&l;if(u<$r.MAX_VERTEX_ARRAY_LENGTH){let d=t.prepareSegment(u,n,r),f=d.vertexLength;for(let g=0;g<a.length;g+=3)r.emplaceBack(f+a[g],f+a[g+1],f+a[g+2]);d.vertexLength+=u,d.primitiveLength+=a.length/3;let h,p;c&&(p=o.prepareSegment(u,n,s),h=p.vertexLength,p.vertexLength+=u);for(let g=0;g<i.length;g+=2)e(i[g],i[g+1]);if(c)for(let g of l){for(let v=1;v<g.length;v+=2)s.emplaceBack(h+g[v-1],h+g[v]);p.primitiveLength+=g.length/2}}else mVe(t,n,r,i,a,e),c&&gVe(o,n,s,i,l,e),t.forceNewSegmentOnNextPrepare(),o?.forceNewSegmentOnNextPrepare()}function Fy(e,t,n,r,i,a,o){if(a){let s=r.count;return n(t[i*2],t[i*2+1]),e[i]=r.count,r.count++,o.vertexLength++,s}return e[i]}function mVe(e,t,n,r,i,a){let o=[];for(let d=0;d<r.length/2;d++)o.push(-1);let s={count:0},l=0,u=e.getOrCreateLatestSegment(t,n),c=u.vertexLength;for(let d=2;d<i.length;d+=3){let f=i[d-2],h=i[d-1],p=i[d],g=o[f]<l,v=o[h]<l,b=o[p]<l,x=+!!g+ +!!v+ +!!b;u.vertexLength+x>$r.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,n),l=s.count,g=!0,v=!0,b=!0,c=0);let _=Fy(o,r,a,s,f,g,u),w=Fy(o,r,a,s,h,v,u),C=Fy(o,r,a,s,p,b,u);n.emplaceBack(c+_-l,c+w-l,c+C-l),u.primitiveLength++}}function gVe(e,t,n,r,i,a){let o=[];for(let d=0;d<r.length/2;d++)o.push(-1);let s={count:0},l=0,u=e.getOrCreateLatestSegment(t,n),c=u.vertexLength;for(let d of i)for(let f=1;f<d.length;f+=2){let h=d[f-1],p=d[f],g=o[h]<l,v=o[p]<l,b=+!!g+ +!!v;u.vertexLength+b>$r.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,n),l=s.count,g=!0,v=!0,c=0);let x=Fy(o,r,a,s,h,g,u),_=Fy(o,r,a,s,p,v,u);n.emplaceBack(c+x-l,c+_-l),u.primitiveLength++}}var wee=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(n=>n.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new Vze,this.indexArray=new mu,this.indexArray2=new KT,this.programConfigurations=new ep(t.layers,t.zoom),this.segments=new $r,this.segments2=new $r,this.stateDependentLayerIds=this.layers.filter(n=>n.isStateDependent()).map(n=>n.id)}populate(t,n,r){this.hasDependencies=b5("fill",this.layers,n);let i=this.layers[0].layout.get("fill-sort-key"),a=!i.isConstant(),o=[],s=new Zn(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:u,id:c,index:d,sourceLayerIndex:f}of t){let h=kp(u,l);if(!this.layers[0]._featureFilter.filter(s,h,r))continue;let p=a?i.evaluate(h,{},r,n.availableImages):void 0,g={id:c,properties:u.properties,type:u.type,sourceLayerIndex:f,index:d,geometry:l?h.geometry:Tp(u),patterns:{},sortKey:p};o.push(g)}a&&o.sort((u,c)=>u.sortKey-c.sortKey);for(let u of o){let{geometry:c,index:d,sourceLayerIndex:f}=u;if(this.hasDependencies){let p=PP("fill",this.layers,u,{zoom:this.zoom},n);this.patternFeatures.push(p)}else this.addFeature(u,c,d,r,{},n.subdivisionGranularity);let h=t[d].feature;n.featureIndex.insert(h,c,d,f,this.index)}}update(t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,n,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:n,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,n,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let n of this.patternFeatures)for(let r in n.patterns){let i=n.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let n of this.layers){let r=n.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(n.id,t[r.from.toString()]),this.recordSdfPattern(n.id,t[r.to.toString()]))}}recordSdfPattern(t,n){if(!n)return;let r=n.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&hn(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,HNe),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,n,r,i,a,o){for(let s of J6(n,500)){let l=_ee(s,i,o.fill.getGranularityForZoomLevel(i.z)),u=this.layoutVertexArray;xee((c,d)=>{u.emplaceBack(c,d)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles,this.segments2,this.indexArray2,l.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:a,canonical:i})}};pt("FillBucket",wee,{omit:["layers","patternFeatures"]});let yVe;const vVe=()=>yVe||=new Wi({"fill-sort-key":new Dt(Ie.layout_fill["fill-sort-key"],"fill-sort-key")});let _Ve;const bVe=()=>_Ve||=new Wi({"fill-antialias":new dt(Ie.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new Dt(Ie.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer
23-opacity":new dt(Ie.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new Dt(Ie.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new Dt(Ie.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new dt(Ie.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new dt(Ie.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new $2(Ie.paint_fill["fill-pattern"],"fill-pattern")});var xVe={get paint(){return bVe()},get layout(){return vVe()}};const wVe=e=>e.type==="fill";var SVe=class extends Tl{constructor(t,n){super(t,xVe,n)}recalculate(t,n){super.recalculate(t,n);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new wee(t)}queryRadius(){return cw(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:n,transform:r,pixelsToTileUnits:i}){return oee(dw(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),n)}isTileClipped(){return!0}};const CVe=zr([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),TVe=zr([{name:"a_centroid",components:2,type:"Int16"}],4),kVe=CVe.members;var fl=class sk{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let n=new sk;return n.extend(t(new we(this.minX,this.minY))),n.extend(t(new we(this.maxX,this.minY))),n.extend(t(new we(this.minX,this.maxY))),n.extend(t(new we(this.maxX,this.maxY))),n}static fromPoints(t){let n=new sk;for(let r of t)n.extend(r);return n}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}};const EVe=fl.fromPoints([new we(0,0),new we(He,He)]);function lk(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function tN(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}var Bv=class{constructor(t,n,r,i,a){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=a;t.pos<n;){let o=t.readVarint();if(o===8)this.id=t.readVarint();else if(o===18){let s=t.readVarint()+t.pos;for(;t.pos<s;){let l=i[t.readVarint()],u=a[t.readVarint()];this.properties[l]=u}}else o===24?this.type=t.readVarint():(o===34&&(this._geometry=t.pos),t.skip(o))}}loadGeometry(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let n=t.readVarint()+t.pos,r=[],i,a=1,o=0,s=0,l=0;for(;t.pos<n;){if(o<=0){let u=t.readVarint();if(a=u&7,o=u>>3,o===0)continue}if(o--,a===1)s+=t.readSVarint(),l+=t.readSVarint(),i&&r.push(i),i=[new we(s,l)];else if(a===2)s+=t.readSVarint(),l+=t.readSVarint(),i&&i.push(new we(s,l));else if(a===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${a}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let n=t.readVarint()+t.pos,r=1,i=0,a=0,o=0,s=1/0,l=-1/0,u=1/0,c=-1/0;for(;t.pos<n;){if(i<=0){let d=t.readVarint();if(r=d&7,i=d>>3,i===0)continue}if(i--,r===1||r===2)a+=t.readSVarint(),o+=t.readSVarint(),a<s&&(s=a),a>l&&(l=a),o<u&&(u=o),o>c&&(c=o);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,u,l,c]}toGeoJSON(t,n,r){let i=this.extent*2**r,a=this.extent*t,o=this.extent*n,s=this.loadGeometry();function l(f){return[(f.x+a)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(f.y+o)*2/i)*Math.PI))-90]}function u(f){return f.map(l)}let c;
vendor: 32,711 bytes, line 23
23if(this.type===1){let f=[];for(let p of s)f.push(p[0]);let h=u(f);c=f.length===1?{type:"Point",coordinates:h[0]}:{type:"MultiPoint",coordinates:h}}else if(this.type===2){let f=s.map(u);c=f.length===1?{type:"LineString",coordinates:f[0]}:{type:"MultiLineString",coordinates:f}}else if(this.type===3){let f=See(s),h=[];for(let p of f)h.push(p.map(u));c=h.length===1?{type:"Polygon",coordinates:h[0]}:{type:"MultiPolygon",coordinates:h}}else throw Error("unknown feature type");let d={type:"Feature",geometry:c,properties:this.properties};return this.id!=null&&(d.id=this.id),d}};Bv.types=["Unknown","Point","LineString","Polygon"];function See(e){let t=e.length;if(t<=1)return[e];let n=[],r,i;for(let a=0;a<t;a++){let o=MVe(e[a]);o!==0&&(i===void 0&&(i=o<0),i===o<0?(r&&n.push(r),r=[e[a]]):r&&r.push(e[a]))}return r&&n.push(r),n}function MVe(e){let t=0;for(let n=0,r=e.length,i=r-1,a,o;n<r;i=n++)a=e[n],o=e[i],t+=(o.x-a.x)*(a.y+o.y);return t}var AVe=class{constructor(t,n){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],n===void 0&&(n=t.length);t.pos<n;){let r=t.readVarint();r===10?this.name=t.readString():r===18?(this._features.push(t.pos),t.skip(r)):r===26?this._keys.push(t.readString()):r===34?this._values.push(PVe(t)):r===40?this.extent=t.readVarint():r===120?this.version=t.readVarint():t.skip(r)}this.length=this._features.length}feature(t){if(t<0||t>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let n=this._pbf.readVarint()+this._pbf.pos;return new Bv(this._pbf,n,this.extent,this._keys,this._values)}};function PVe(e){let t=null,n=e.readVarint()+e.pos;for(;e.pos<n;){let r=e.readVarint();t=r===10?e.readString():r===21?e.readFloat():r===25?e.readDouble():r===32?e.readVarint(!0):r===40?e.readVarint():r===48?e.readSVarint():r===56?e.readBoolean():(e.skip(r),null)}if(t==null)throw Error("unknown feature value");return t}var DVe=class{constructor(t,n=t.length){let r=Object.create(null);for(;t.pos<n;){let i=t.readVarint();if(i===26){let a=new AVe(t,t.readVarint()+t.pos);a.length&&(r[a.name]=a)}else t.skip(i)}this.layers=r}};const La=63710088e-1;var kt=class ly{constructor(t,n){if(isNaN(t)||isNaN(n))throw Error(`Invalid LngLat object: (${t}, ${n})`);if(this.lng=+t,this.lat=+n,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new ly(As(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let n=Math.PI/180,r=this.lat*n,i=t.lat*n,a=Math.sin(r)*Math.sin(i)+Math.cos(r)*Math.cos(i)*Math.cos((t.lng-this.lng)*n);return La*Math.acos(Math.min(a,1))}static convert(t){if(t instanceof ly)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new ly(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new ly(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}};const Cee=2*Math.PI*La;function Tee(e){return Cee*Math.cos(e*Math.PI/180)}function Wm(e){return(180+e)/360}function Gm(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Ih(e,t){return e/Tee(t)}function uk(e){return e*360-180}function V2(e){let t=180-e*360;return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}function kee(e,t){return e*Tee(V2(t))}function IVe(e){return 1/Math.cos(e*Math.PI/180)}var Fn=class Eee{constructor(t,n,r=0){this.x=+t,this.y=+n,this.z=+r}static fromLngLat(t,n=0){let r=kt.convert(t);return new Eee(Wm(r.lng),Gm(r.lat),Ih(n,r.lat))}toLngLat(){return new kt(uk(this.x),V2(this.y))}toAltitude(){return kee(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Cee*IVe(V2(this.y))}};const $h=89.25;function Mee(e,t,n){let r=1/(1<<n.z);return new Fn(e/He*r+n.x*r,t/He*r+n.y*r)}function $Ve(e,t,n){return Mee(e,t,n).toLngLat()}function Yl(e,t){let n=qt(t.lat,-85.051129,su);return new we(Wm(t.lng)*e,Gm(n)*e)}function j2(e,t){return new Fn(t.x/e,t.y/e).toLngLat()}function zy(e){return e.cameraToCenterDistance*Math.min(Math.tan(Sr(90-e.pitch))*.85,Math.tan(Sr($h-e.pitch)))}function b9(e,t){let n=e.canonical,r=t/Fa(n.z),i=n.x+2**n.z*e.wrap,a=new Float64Array(16);return vl(a),ci(a,a,[i*r,n.y*r,0]),ta(a,a,[r/He,r/He,1]),a}function Aee(e,t,n,r,i){let a=Fn.fromLngLat(e,t),o=i*Ih(1,e.lat),{x:s,y:l,z:u}=ck(n,r),c=o*-s,d=o*-l,f=o*u;return new Fn(a.x+c,a.y+d,a.z+f)}function LVe(e){let t=Ih(1,e.center.lat)*e.worldSize;return Aee(e.center,e.elevation,e.pitch,e.bearing,e.cameraToCenterDistance/t)}function ck(e,t){let n=Sr(e),r=Sr(t),i=Math.cos(-n),a=Math.sin(n);return{x:a*Math.sin(r),y:-a*Math.cos(r),z:i}}function RVe(e,t){return t<=0||!e||e.length===0?e:e.map(n=>BVe(n,t))}function OVe(e,t){let n=$Ve(He/2,He/2,t),r=Fn.fromLngLat(n).meterInMercatorCoordinateUnits(),i=(1<<t.z)*He;return e*r*i}function BVe(e,t){if(!e||e.length<3)return e;let n=e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y,r=n?e.length-1:e.length;if(r<3)return e;let i=[],a=lk(e[r-1],e[0]);for(let s=0;s<r;s++){let l=e[(s-1+r)%r],u=e[s],c=e[(s+1)%r],d=lk(u,c);a||d?i.push(u.clone()):zVe(i,l,u,c,t),a=d}let o=FVe(i);return o.length<3?e:(n&&o.push(o[0].clone()),o)}function FVe(e){let t=[];for(let n of e){let r=n.round(),i=t[t.length-1];(i?.x!==r.x||i?.y!==r.y)&&t.push(r)}for(;t.length>1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function zVe(e,t,n,r,i){let a=t.sub(n),o=r.sub(n),s=a.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(n.clone());return}a._div(s),o._div(l);let u=a.x*o.x+a.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(n.clone());return}let c=.2,d=Math.min(i,s*c,l*c),f=n.add(a.mult(d)),h=n.add(o.mult(d)),p=Math.sqrt((1+u)/2),g=n.add(a.add(o)._unit()._mult(d/p)),v=f.sub(g).angleWith(h.sub(g)),b=Math.max(2,Math.ceil(Math.abs(v)/(Math.PI/6)-1e-6));for(let x=0;x<=b;x++)e.push(f.rotateAround(x/b*v,g))}const x9=8192;function Og(e,t,n,r,i,a,o,s){e.emplaceBack(t,n,Math.floor(r*x9)*2+o,i*x9*2,a*x9*2,Math.round(s))}var Pee=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(n=>n.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new jze,this.centroidVertexArray=new Id,this.indexArray=new mu,this.programConfigurations=new ep(t.layers,t.zoom),this.segments=new $r,this.stateDependentLayerIds=this.layers.filter(n=>n.isStateDependent()).map(n=>n.id)}populate(t,n,r){this.features=[],this.hasDependencies=b5("fill-extrusion",this.layers,n);let i=new Zn(this.zoom),a=this.layers[0],o=a.layout.get("fill-extrusion-rounded-corner-distance"),s=o>0?OVe(o,r):0,l=a._featureFilter.needGeometry;for(let{feature:u,id:c,index:d,sourceLayerIndex:f}of t){let h=kp(u,l);if(!a._featureFilter.filter(i,h,r))continue;let p={id:c,sourceLayerIndex:f,index:d,geometry:RVe(l?h.geometry:Tp(u),s),properties:u.properties,type:u.type,patterns:{}};this.hasDependencies?this.features.push(PP("fill-extrusion",this.layers,p,{zoom:this.zoom},n)):this.addFeature(p,p.geometry,d,r,{},n.subdivisionGranularity),n.featureIndex.insert(u,p.geometry,d,f,this.index,!0)}}addFeatures({options:t,canonical:n,patternPositions:r}){for(let i of this.features){let{geometry:a}=i;this.addFeature(i,a,i.index,n,r,t.subdivisionGranularity)}}update(t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,n,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,kVe),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,TVe.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,n,r,i,a,o){for(let s of J6(n,500)){let l={x:0,y:0,sampleCount:0},u=this.layoutVertexArray.length;this.processPolygon(l,i,t,s,o);let c=this.layoutVertexArray.length-u,d=Math.floor(l.x/l.sampleCount),f=Math.floor(l.y/l.sampleCount);for(let h=0;h<c;h++)this.centroidVertexArray.emplaceBack(d,f)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:a,canonical:i})}processPolygon(t,n,r,i,a){if(i.length<1||tN(i[0]))return;for(let d of i)d.length!==0&&NVe(t,d);let o={segment:this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray)},s=a.fill.getGranularityForZoomLevel(n.z),l=Bv.types[r.type]==="Polygon";for(let d of i){if(d.length===0||tN(d))continue;let f=yh(d,s,l);this._generateSideFaces(f,o)}if(!l)return;let u=_ee(i,n,s,!1),c=this.layoutVertexArray;xee((d,f)=>{Og(c,d,f,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,u.verticesFlattened,u.indicesTriangles)}_generateSideFaces(t,n){let r=0;for(let i=1;i<t.length;i++){let a=t[i],o=t[i-1];if(lk(a,o))continue;n.segment.vertexLength+4>$r.MAX_VERTEX_ARRAY_LENGTH&&(n.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=a.sub(o)._perp()._unit(),l=o.dist(a);r+l>32768&&(r=0),Og(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Og(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r),r+=l,Og(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,0,r),Og(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,1,r);let u=n.segment.vertexLength;this.indexArray.emplaceBack(u,u+2,u+1),this.indexArray.emplaceBack(u+1,u+2,u+3),n.segment.vertexLength+=4,n.segment.primitiveLength+=2}}};function NVe(e,t){for(let n=0;n<t.length;n++){let r=t[n];(n!==t.length-1||t[0].x!==r.x||t[0].y!==r.y)&&(e.x+=r.x,e.y+=r.y,e.sampleCount++)}}pt("FillExtrusionBucket",Pee,{omit:["layers","features"]});let VVe;const jVe=()=>VVe||=new Wi({"fill-extrusion-rounded-corner-distance":new dt(Ie["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")});let UVe;const HVe=()=>UVe||=new Wi({"fill-extrusion-opacity":new dt(Ie["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new Dt(Ie["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new dt(Ie["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new dt(Ie["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new $2(Ie["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new Dt(Ie["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new Dt(Ie["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new dt(Ie["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")});var qVe={get paint(){return HVe()},get layout(){return jVe()}};const WVe=e=>e.type==="fill-extrusion";var GVe=class extends Tl{constructor(t,n){super(t,qVe,n)}createBucket(t){return new Pee(t)}queryRadius(){return cw(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:n,featureState:r,geometry:i,transform:a,pixelsToTileUnits:o,pixelPosMatrix:s}){let l=dw(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-a.bearingInRadians,o),u=this.paint.get("fill-extrusion-height").evaluate(n,r),c=this.paint.get("fill-extrusion-base").evaluate(n,r),d=YVe(l,s,0),f=KVe(i,c,u,s),h=f[0],p=f[1];return ZVe(h,p,d)}};function Bg(e,t){return e.x*t.x+e.y*t.y}function nN(e,t){if(e.length===1){let n=0,r=t[n++],i;for(;!i||r.equals(i);)if(i=t[n++],!i)return 1/0;for(;n<t.length;n++){let a=t[n],o=e[0],s=i.sub(r),l=a.sub(r),u=o.sub(r),c=Bg(s,s),d=Bg(s,l),f=Bg(l,l),h=Bg(u,s),p=Bg(u,l),g=c*f-d*d,v=(f*h-d*p)/g,b=(c*p-d*h)/g,x=1-v-b,_=r.z*x+i.z*v+a.z*b;if(isFinite(_))return _}return 1/0}{let n=1/0;for(let r of t)n=Math.min(n,r.z);return n}}function ZVe(e,t,n){let r=1/0;oee(n,t)&&(r=nN(n,t[0]));for(let i=0;i<t.length;i++){let a=t[i],o=e[i];for(let s=0;s<a.length-1;s++){let l=a[s],u=a[s+1],c=o[s],d=[l,u,o[s+1],c,l];aee(n,d)&&(r=Math.min(r,nN(n,d)))}}return r!==1/0&&r}function KVe(e,t,n,r){let i=[],a=[],o=r[8]*t,s=r[9]*t,l=r[10]*t,u=r[11]*t,c=r[8]*n,d=r[9]*n,f=r[10]*n,h=r[11]*n;for(let p of e){let g=[],v=[];for(let b of p){let x=b.x,_=b.y,w=r[0]*x+r[4]*_+r[12],C=r[1]*x+r[5]*_+r[13],T=r[2]*x+r[6]*_+r[14],k=r[3]*x+r[7]*_+r[15],A=w+o,P=C+s,D=T+l,$=k+u,O=w+c,z=C+d,j=T+f,B=k+h,R=new we(A/$,P/$);R.z=D/$,g.push(R);let J=new we(O/B,z/B);J.z=j/B,v.push(J)}i.push(g),a.push(v)}return[i,a]}function YVe(e,t,n){let r=[];for(let i of e){let a=[i.x,i.y,n,1];na(a,a,t),r.push(new we(a[0]/a[3],a[1]/a[3]))}return r}const XVe="geojsonvt_clip_start",JVe="geojsonvt_clip_end",QVe=zr([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),eje=QVe.members,tje=zr([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),nje=tje.members,rje=Math.cos(75/2*(Math.PI/180)),Dee=1/2,rN=2**14/Dee;var Iee=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new Uze,this.layoutVertexArray2=new Hze,this.indexArray=new mu,this.programConfigurations=new ep(e.layers,e.zoom),this.segments=new $r,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,n){this.hasDependencies=b5("line",this.layers,t)||this.hasLineDasharray(this.layers);let r=this.layers[0].layout.get("line-sort-key"),i=!r.isConstant(),a=[],o=new Zn(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:d}of e){let f=kp(l,s);if(!this.layers[0]._featureFilter.filter(o,f,n))continue;let h=i?r.evaluate(f,{},n):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:d,index:c,geometry:s?f.geometry:Tp(l),patterns:{},dashes:{},sortKey:h};a.push(p)}i&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:c,sourceLayerIndex:d}=l;this.hasDependencies?(b5("line",this.layers,t)?PP("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,c,n,{},{},t.subdivisionGranularity);let f=e[c].feature;t.featureIndex.insert(f,u,c,d,this.index)}}update(e,t,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:n,dashPositions:r})}addFeatures({options:e,canonical:t,patternPositions:n,dashPositions:r}){for(let i of this.patternFeatures)this.addFeature(i,i.geometry,i.index,t,n,r,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,nje)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,eje),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[XVe],end:+e.properties[JVe]}}addFeature(e,t,n,r,i,a,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit").evaluate(e,{}),d=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let f of t)this.addLine(f,e,l,u,c,d,r,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{imagePositions:i,dashPositions:a,canonical:r})}addLine(e,t,n,r,i,a,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=yh(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let _=0;_<e.length-1;_++)this.totalDistance+=e[_].dist(e[_+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}let u=Bv.types[t.type]==="Polygon",c=e.length;for(;c>=2&&e[c-1].equals(e[c-2]);)c--;let d=0;for(;d<c-1&&e[d].equals(e[d+1]);)d++;if(c-d<(u?3:2))return;n==="bevel"&&(i=1.05);let f=this.overscaling<=16?15*He/(512*this.overscaling):0,h=this.segments.prepareSegment(c*10,this.layoutVertexArray,this.indexArray),p,g,v,b,x;this.e1=this.e2=-1,u&&(p=e[c-2],x=e[d].sub(p)._unit()._perp());for(let _=d;_<c;_++){if(v=_===c-1?u?e[d+1]:void 0:e[_+1],v&&e[_].equals(v))continue;x&&(b=x),p&&(g=p),p=e[_],x=v?v.sub(p)._unit()._perp():b,b||=x;let w=b.add(x);(w.x!==0||w.y!==0)&&w._unit();let C=b.x*x.x+b.y*x.y,T=w.x*x.x+w.y*x.y,k=T===0?1/0:1/T,A=2*Math.sqrt(2-2*T),P=T<rje&&g&&v,D=b.x*x.y-b.y*x.x>0;if(P&&_>d){let z=p.dist(g);if(z>2*f){let j=p.sub(p.sub(g)._mult(f/z)._round());this.updateDistance(g,j),this.addCurrentVertex(j,b,0,0,h),g=j}}let $=g&&v,O=$?n:u?"butt":r;if($&&O==="round"&&(k<a?O="miter":k<=2&&(O="fakeround")),O==="miter"&&k>i&&(O="bevel"),O==="bevel"&&(k>2&&(O="flipbevel"),k<i&&(O="miter")),g&&this.updateDistance(g,p),O==="miter")w._mult(k),this.addCurrentVertex(p,w,0,0,h);else if(O==="flipbevel"){if(k>100)w=x.mult(-1);else{let z=k*b.add(x).mag()/b.sub(x).mag();w._perp()._mult(z*(D?-1:1))}this.addCurrentVertex(p,w,0,0,h),this.addCurrentVertex(p,w.mult(-1),0,0,h)}else if(O==="bevel"||O==="fakeround"){let z=-Math.sqrt(k*k-1),j=D?z:0,B=D?0:z;if(g&&this.addCurrentVertex(p,b,j,B,h),O==="fakeround"){let R=Math.round(A*180/Math.PI/20);for(let J=1;J<R;J++){let K=J/R;if(K!==.5){let ne=K-.5,se=1.0904+C*(-3.2452+C*(3.55645-C*1.43519)),ce=.848013+C*(-1.06021+C*.215638);K+=K*ne*(K-1)*(se*ne*ne+ce)}let Z=x.sub(b)._mult(K)._add(b)._unit()._mult(D?-1:1);this.addHalfVertex(p,Z.x,Z.y,!1,D,0,h)}}v&&this.addCurrentVertex(p,x,-j,-B,h)}else if(O==="butt")this.addCurrentVertex(p,w,0,0,h);else if(O==="square"){let z=g?1:-1;this.addCurrentVertex(p,w,z,z,h)}else O==="round"&&(g&&(this.addCurrentVertex(p,b,0,0,h),this.addCurrentVertex(p,b,1,1,h,!0)),v&&(this.addCurrentVertex(p,x,-1,-1,h,!0),this.addCurrentVertex(p,x,0,0,h)));if(P&&_<c-1){let z=p.dist(v);if(z>2*f){let j=p.add(v.sub(p)._mult(f/z)._round());this.updateDistance(p,j),this.addCurrentVertex(j,x,0,0,h),p=j}}}}addCurrentVertex(e,t,n,r,i,a=!1){let o=t.x+t.y*n,s=t.y-t.x*n,l=-t.x+t.y*r,u=-t.y-t.x*r;this.addHalfVertex(e,o,s,a,!1,n,i),this.addHalfVertex(e,l,u,a,!0,-r,i),this.distance>rN/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,n,r,i,a))}addHalfVertex({x:e,y:t},n,r,i,a,o,s){let l=(this.lineClips?this.scaledDistance*(rN-1):this.scaledDistance)*Dee;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!i,(t<<1)+ +!!a,Math.round(63*n)+128,Math.round(63*r)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let c=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(c,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let n=t.paint.get("line-dasharray");if(n&&!n.isConstant())return!0}return!1}addLineDashDependencies(e,t,n,r){for(let i of e){let a=i.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let o=i.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:a.value.evaluate({zoom:n-1},t,{}),round:o},l={dasharray:a.value.evaluate({zoom:n},t,{}),round:o},u={dasharray:a.value.evaluate({zoom:n+1},t,{}),round:o},c=`${s.dasharray.join(",")},${s.round}`,d=`${l.dasharray.join(",")},${l.round}`,f=`${u.dasharray.join(",")},${u.round}`;r.dashDependencies[c]=s,r.dashDependencies[d]=l,r.dashDependencies[f]=u,t.dashes[i.id]={min:c,mid:d,max:f}}}};pt("LineBucket",Iee,{omit:["layers","patternFeatures"]});let ije;const aje=()=>ije||=new Wi({"line-cap":new Dt(Ie.layout_line["line-cap"],"line-cap"),"line-join":new Dt(Ie.layout_line["line-join"],"line-join"),"line-miter-limit":new Dt(Ie.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new Dt(Ie.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new Dt(Ie.layout_line["line-sort-key"],"line-sort-key")});let oje;const sje=()=>oje||=new Wi({"line-opacity":new Dt(Ie.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new dt(Ie.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new Dt(Ie.paint_line["line-color"],"line-color"),"line-translate":new dt(Ie.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new dt(Ie.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new Dt(Ie.paint_line["line-width"],"line-width"),"line-gap-width":new Dt(Ie.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new Dt(Ie.paint_line["line-offset"],"line-offset"),"line-blur":new Dt(Ie.paint_line["line-blur"],"line-blur"),"line-dasharray":new $2(Ie.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new $2(Ie.paint_line["line-pattern"],"line-pattern"),"line-gradient":new lw(Ie.paint_line["line-gradient"],"line-gradient")});var iN={get paint(){return sje()},get layout(){return aje()}},lje=class extends Dt{possiblyEvaluate(e,t){return t=new Zn(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,r){return t=St({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,r)}};let H3;const uje=e=>e.type==="line";var cje=class extends Tl{constructor(e,t){super(e,iN,t),this.gradientVersion=0,H3||(H3=new lje(iN.paint.properties["line-width"].specification,"line-floorwidth"),H3.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=eze(t)?t._styleExpression.expression instanceof oP:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=H3.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Iee(e)}queryRadius(e){let t=e,n=aN(hm("line-width",this,t),hm("line-gap-width",this,t)),r=hm("line-offset",this,t);return n/2+Math.abs(r)+cw(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:n,geometry:r,transform:i,pixelsToTileUnits:a}){let o=dw(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-i.bearingInRadians,a),s=a/2*aN(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),l=this.paint.get("line-offset").evaluate(t,n);return l&&(r=pNe(r,l*a)),lNe(o,r,s)}isTileClipped(){return!0}};function aN(e,t){return t>0?t+2*e:e}const dje=zr([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),fje=zr([{name:"a_projected_pos",components:3,type:"Float32"}],4);zr([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const hje=zr([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);zr([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const oN=zr([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),pje=zr([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);zr([{name:"triangle",components:3,type:"Uint16"}]),zr([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),zr([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),zr([{type:"Float32",name:"offsetX"}]),zr([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),zr([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const S5=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if(S5.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}async syncState(e,t){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let n=e.pluginURL,r=new Promise(a=>{this.loadScriptResolve=a}),i=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(await t(n),await Promise.race([r,i]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:n};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${n}`)}};function mje(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function gje(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function yje(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function vje(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function fw(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20
23DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function _je(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function bje(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE4
230\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function sN(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function xje(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}const wje={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},Sje={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
vendor: 6,092 bytes, line 23
237],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},Cje={ÙØ¢:[65269,65270],ÙØ£:[65271,65272],ÙØ¥:[65273,65274],ÙØ§:[65275,65276]},lN=1604,Tje=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;function kje(e,t,n){let r=0;for(let i of e.split(";")){let[a,o]=i.split(",").map(l=>parseInt(l,36)),s=r+a;for(let l=s;l<s+o;l++)n.set(l,t);r=s+o}}const $ee=new Map;for(let[e,t]of Object.entries(wje))kje(t,e,$ee);function Eje(e){return $ee.get(e)??"U"}function Mje(e){return e==="D"||e==="L"||e==="C"}function Aje(e){return e==="D"||e==="R"||e==="C"}function Pje(e,t,n){return e==="D"?t&&n?3:t?1:n?2:0:e==="R"?+!!t:e==="L"?n?2:0:null}function Dje(e){return[...e].map(t=>{let n=t.codePointAt(0);return{codePoint:n,type:Eje(n),form:null}})}function Ije(e){let t=e.filter(n=>n.type!=="T");for(let n=0;n<t.length;n++){let r=t[n],i=n>0&&Mje(t[n-1].type),a=n+1<t.length&&Aje(t[n+1].type);r.form=Pje(r.type,i,a)}}function $je(e){let t=!1;for(let n of e)n.type==="T"?n.form=t?3:0:t=n.form===2||n.form===3}function Lje(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.codePoint!==lN){t.push(r);continue}let i=n+1;for(;i<e.length&&e[i].type==="T";)i++;let a=e[i],o=a&&Cje[String.fromCodePoint(lN,a.codePoint)];if(!o){t.push(r);continue}let s=r.form===3||r.form===1;t.push({codePoint:o[+!!s],type:"R",form:0}),t.push(...e.slice(n+1,i)),n=i}return t}function Rje(e){if(e.form===null)return e.codePoint;let t=Sje[e.codePoint];return t&&(t[e.form]||t[0])||e.codePoint}function Oje(e){if(!Tje.test(e))return e;let t=Dje(e);return Ije(t),$je(t),Lje(t).map(n=>String.fromCodePoint(Rje(n))).join("")}function Bje(e,t,n){let r=t.layout.get("text-transform").evaluate(n,{});return r==="uppercase"?e=e.toLocaleUpperCase():r==="lowercase"&&(e=e.toLocaleLowerCase()),(S5.applyArabicShaping??Oje)(e)}function Fje(e,t,n){for(let r of e.sections)r.text=Bje(r.text,t,n);return e}function w9(e,t,n){let r=n?t.last.points:t.first.points,i=n?r[r.length-1]:r[0];return`${e}:${i.x}:${i.y}`}function zje(e){let t=e.first.points,n=t.length;for(let a=e.first.next;a;a=a.next)n+=a.points.length-1;let r=Array(n);for(let a=0;a<t.length;a++)r[a]=t[a];let i=t.length;for(let a=e.first.next;a;a=a.next){let o=a.points;for(let s=1;s<o.length;s++)r[i++]=o[s]}return r}function uN(e,t,n,r,i){let a=t[n];delete t[n],t[r]=a;let o=e[a];return o.last.next=i.first,o.last=i.last,a}function cN(e,t,n,r,i){let a=t[r];delete t[r],t[n]=a;let o=e[a];return i.last.next=o.first,o.first=i.first,a}function Nje(e){let t={},n={},r=[];for(let a of e){let o=a.text?a.text.toString():null,s={points:a.geometry[0],next:null},l={feature:a,first:s,last:s};if(!o){r.push(l);continue}let u=w9(o,l),c=w9(o,l,!0);if(u in n&&c in t&&n[u]!==t[c]){let d=cN(r,t,u,c,l),f=uN(r,n,u,c,r[d]);delete t[u],delete n[c],n[w9(o,r[f],!0)]=f,r[d].feature.geometry=null}else if(u in n)uN(r,n,u,c,l);else if(c in t)cN(r,t,u,c,l);else{let d=r.push(l)-1;t[u]=d,n[c]=d}}let i=[];for(let a of r){let o=a.feature;o.geometry&&(a.first.next&&(o.geometry[0]=zje(a)),i.push(o))}return i}const Lee=typeof Intl<"u"&&"Segmenter"in Intl;let dN,fN;function dk(e){if(!Lee||!bje(e))return[...e];dN??=new Intl.Segmenter(void 0,{granularity:"grapheme"});let t=[];for(let{segment:n}of dN.segment(e)){let r=t.length-1;r>=0&&xje(t[r],n)?t[r]+=n:t.push(n)}return t}function Vje(e){let t=new Set;if(Lee){fN??=new Intl.Segmenter(void 0,{granularity:"word"});for(let{index:r}of fN.segment(e))t.add(r);return t}let n=0;for(let r of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(n),n+=r.length;return t}function C5(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function IP(e){return/\s/u.test(String.fromCodePoint(e))}function fk(e){for(let t of e)if(fw(t.codePointAt(0)))return!0;return!1}function jje(e){for(let t of e)if(!Uje(t.codePointAt(0)))return!1;return!0}function Uje(e){return!mje(e)}function hN(e){return!(fw(e)||_je(e))}function Ree(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function Oee(e){return gje(e)}function Bee(e){for(let t of e)if(Oee(t.codePointAt(0)))return!0;return!1}const Z0={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼
","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â¯":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹"};function Hje(e){let t="",n={premature:!0,value:void 0},r=e[Symbol.iterator](),i=r.next(),a=e[Symbol.iterator]();a.next();let o=a.next();for(;!i.done;)(o.done||!hN(o.value.codePointAt(0))||Z0[o.value])&&(n.premature||!hN(n.value.codePointAt(0))||Z0[n.value])&&Z0[i.value]?t+=Z0[i.value]:t+=i.value,
vendor: 5,306 bytes, line 23
23n={value:i.value,premature:!1},i=r.next(),o=a.next();return t}const qje={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Wje={40:!0};function pN(e,t,n,r,i,a){if("fontStack"in t){let o=n[t.fontStack]?.default,s=o?.[e];if(s)return s.metrics.advance*t.scale+i;let l=0;for(let u of e){let c=o?.[u];c&&(l+=c.metrics.advance*t.scale+i)}return l}{let o=r[t.imageName];return o?o.displaySize[0]*t.scale*24/a+i:0}}function mN(e,t,n,r){let i=(e-t)**2;return r?e<t?i/2:i*2:i+Math.abs(n)*n}function gN(e){return/^\s+$/u.test(e)}function Gje(e,t,n){let r=0;return(e===10||e===13)&&(r-=1e4),n&&(r+=150),(e===40||e===65288)&&(r+=50),(t===41||t===65289)&&(r+=50),r}function yN(e,t,n,r,i,a){let o=null,s=mN(t,n,i,a);for(let l of r){let u=mN(t-l.x,n,i,a)+l.badness;u<=s&&(o=l,s=u)}return{index:e,x:t,priorBreak:o,badness:s}}function Fee(e){return e?Fee(e.priorBreak).concat(e.index):[]}var $P=class hk{constructor(t="",n=[],r=[]){this.text=t,this.sections=n,this.sectionIndex=r,this.imageSectionID=null,this._graphemes=null}graphemes(){return this._graphemes??=dk(this.text),this._graphemes}static fromFeature(t,n){let r=new hk;for(let i of t.sections)i.image?r.addImageSection(i):r.addTextSection(i,n);return r}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=Hje(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("â")}trim(){let t=this.graphemes(),n=0;for(;n<t.length&&gN(t[n]);)n++;let r=t.length;for(;r>n&&gN(t[r-1]);)r--;this.text=t.slice(n,r).join(""),this.sectionIndex=this.sectionIndex.slice(n,r),this._graphemes=null}substring(t,n){let r=this.graphemes().slice(t,n).join(""),i=this.sectionIndex.slice(t,n);return new hk(r,this.sections,i)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,n)=>Math.max(t,this.sections[n].scale),0)}getMaxImageSize(t){let n=0,r=0;for(let i=0;i<this.length();i++){let a=this.getSection(i);if("imageName"in a){let o=t[a.imageName];if(!o)continue;let s=o.displaySize;n=Math.max(n,s[0]),r=Math.max(r,s[1])}}return{maxImageWidth:n,maxImageHeight:r}}_appendSection(t,n){let r=this.graphemes(),i=r.length>0?r[r.length-1]:"",a=dk(i+t);this.text+=t,this._graphemes=r.slice(0,i?-1:void 0).concat(a);let o=a.length-+!!i;for(let s=0;s<o;s++)this.sectionIndex.push(n)}addTextSection(t,n){this.sections.push({scale:t.scale||1,verticalAlign:t.verticalAlign||"bottom",fontStack:t.fontStack||n}),this._appendSection(t.text,this.sections.length-1)}addImageSection(t){let n=t.image?t.image.name:"";if(n.length===0){hn("Can't add FormattedSection with an empty image.");return}let r=this.getNextImageSectionCharCode();if(!r){hn("Reached maximum number of images 6401");return}this.sections.push({scale:1,verticalAlign:t.verticalAlign||"bottom",imageName:n}),this._appendSection(String.fromCharCode(r),this.sections.length-1)}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,n,r,i,a){let o=[],s=this.determineAverageLineWidth(t,n,r,i,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),c=null,d=0,f=0;for(let h=0;h<u.length;h++){let p=u[h];if(h>0){let g=u[h-1].codePointAt(0),v=p.codePointAt(0),b=vje(g),x=sN(g)&&sN(v);(qje[g]||b||"imageName"in this.getSection(h-1)||u[h+1]!==void 0&&Wje[v]||x&&(c??=Vje(this.text)).has(f))&&o.push(yN(h,d,s,o,Gje(g,v,b&&l),!1))}IP(p.codePointAt(0))||(d+=pN(p,this.getSection(h),r,i,t,a)),f+=p.length}return Fee(yN(this.length(),d,s,o,0,!0))}determineAverageLineWidth(t,n,r,i,a){let o=0,s=0;for(let u of this.graphemes()){let c=this.getSection(s);o+=pN(u,c,r,i,t,a),s++}let l=Math.max(1,Math.ceil(o/n));return o/l}};function Zje(){return(function(e){var t={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,
23119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},n={},r={};n.L=1,r[1]="L",Object.keys(t).forEach(function(ve,X){n[ve]=1<<X+1,r[n[ve]]=ve}),Object.freeze(n);var i=n.LRI|n.RLI|n.FSI,a=n.L|n.R|n.AL,o=n.B|n.S|n.WS|n.ON|n.FSI|n.LRI|n.RLI|n.PDI,s=n.BN|n.RLE|n.LRE|n.RLO|n.LRO|n.PDF,l=n.S|n.WS|n.B|i|n.PDI|s,u=null;function c(){if(!u){u=new Map;var ve=0;for(var X in t)if(t.hasOwnProperty(X))for(var ee=t[X],oe="",_e=void 0,ge=!1,Oe=0,Se=0;Se<=ee.length+1;Se+=1){var he=ee[Se];if(he!==","&&Se!==ee.length)he==="+"?(ge=!0,Oe=ve=Oe+parseInt(oe,36),oe=""):oe+=he;else{ge?_e=ve+parseInt(oe,36):(Oe=ve=Oe+parseInt(oe,36),_e=ve),ge=!1,oe="",Oe=_e;for(var Te=ve;Te<_e+1;Te+=1)u.set(Te,n[X])}}}}function d(ve){return c(),u.get(ve.codePointAt(0))||n.L}function f(ve){return r[d(ve)]}var h={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function p(ve,X){var ee=0,oe=new Map,_e=X&&new Map,ge;return ve.split(",").forEach(function Oe(Se){if(Se.indexOf("+")!==-1)for(var he=+Se;he--;)Oe(ge);else{ge=Se;var Te=Se.split(">"),ze=Te[0],qe=Te[1];ze=String.fromCodePoint(ee+=parseInt(ze,36)),qe=String.fromCodePoint(ee+=parseInt(qe,36)),oe.set(ze,qe),X&&_e.set(qe,ze)}}),{map:oe,reverseMap:_e}}var g,v,b;function x(){if(!g){var ve=p(h.pairs,!0),X=ve.map,ee=ve.reverseMap;g=X,v=ee,b=p(h.canonical,!1).map}}function _(ve){return x(),g.get(ve)||null}function w(ve){return x(),v.get(ve)||null}function C(ve){return x(),b.get(ve)||null}var T=n.L,k=n.R,A=n.EN,P=n.ES,D=n.ET,$=n.AN,O=n.CS,z=n.B,j=n.S,B=n.ON,R=n.BN,J=n.NSM,K=n.AL,Z=n.LRO,ne=n.RLO,se=n.LRE,ce=n.RLE,Re=n.PDF,Ue=n.LRI,$e=n.RLI,ke=n.FSI,Ve=n.PDI;function nt(ve,X){for(var ee=125,oe=new Uint32Array(ve.length),_e=0;_e<ve.length;_e++)oe[_e]=d(ve[_e]);var ge=new Map;function Oe(Gi,Ya){var Zi=oe[Gi];oe[Gi]=Ya,ge.set(Zi,ge.get(Zi)-1),Zi&o&&ge.set(o,ge.get(o)-1),ge.set(Ya,(ge.get(Ya)||0)+1),Ya&o&&ge.set(o,(ge.get(o)||0)+1)}for(var Se=new Uint8Array(ve.length),he=new Map,Te=[],ze=null,qe=0;qe<ve.length;qe++)ze||Te.push(ze={start:qe,end:ve.length-1,level:X==="rtl"?1:X==="ltr"?0:Xp(qe,!1)}),oe[qe]&z&&(ze.end=qe,ze=null);for(var lt=ce|se|ne|Z|i|Ve|Re|z,bt=function(Gi){return Gi+(Gi&1?1:2)},fe=function(Gi){return Gi+(Gi&1?2:1)},pe=0;pe<Te.length;pe++){ze=Te[pe];var De=[{_level:ze.level,_override:0,_isolate:0}],Ge=void 0,ut=0,it=0,mt=0;ge.clear();for(var Be=ze.start;Be<=ze.end;Be++){var Ze=oe[Be];if(Ge=De[De.length-1],ge.set(Ze,(ge.get(Ze)||0)+1),Ze&o&&ge.set(o,(ge.get(o)||0)+1),Ze<)if(Ze&(ce|se)){Se[Be]=Ge._level;var wt=(Ze===ce?fe:bt)(Ge._level);wt<=ee&&!ut&&!it?De.push({_level:wt,_override:0,_isolate:0}):ut||it++}else if(Ze&(ne|Z)){Se[Be]=Ge._level;var yt=(Ze===ne?fe:bt)(Ge._level);yt<=ee&&!ut&&!it?De.push({_level:yt,_override:Ze&ne?k:T,_isolate:0}):ut||it++}else if(Ze&i){Ze&ke&&(Ze=Xp(Be+1,!0)===1?$e:Ue),Se[Be]=Ge._level,Ge._override&&Oe(Be,Ge._override);var jt=(Ze===$e?fe:bt)(Ge._level);
vendor: 4,100 bytes, line 23
23jt<=ee&&ut===0&&it===0?(mt++,De.push({_level:jt,_override:0,_isolate:1,_isolInitIndex:Be})):ut++}else if(Ze&Ve){if(ut>0)ut--;else if(mt>0){for(it=0;!De[De.length-1]._isolate;)De.pop();var zt=De[De.length-1]._isolInitIndex;zt!=null&&(he.set(zt,Be),he.set(Be,zt)),De.pop(),mt--}Ge=De[De.length-1],Se[Be]=Ge._level,Ge._override&&Oe(Be,Ge._override)}else Ze&Re?(ut===0&&(it>0?it--:!Ge._isolate&&De.length>1&&(De.pop(),Ge=De[De.length-1])),Se[Be]=Ge._level):Ze&z&&(Se[Be]=ze.level);else Se[Be]=Ge._level,Ge._override&&Ze!==R&&Oe(Be,Ge._override)}for(var xn=[],jn=null,Yr=ze.start;Yr<=ze.end;Yr++){var ts=oe[Yr];if(!(ts&s)){var Ma=Se[Yr],Hs=ts&i,$p=ts===Ve;jn&&Ma===jn._level?(jn._end=Yr,jn._endsWithIsolInit=Hs):xn.push(jn={_start:Yr,_end:Yr,_level:Ma,_startsWithPDI:$p,_endsWithIsolInit:Hs})}}for(var yu=[],vu=0;vu<xn.length;vu++){var Lp=xn[vu];if(!Lp._startsWithPDI||Lp._startsWithPDI&&!he.has(Lp._start)){for(var _f=[jn=Lp],Yv=void 0;jn&&jn._endsWithIsolInit&&(Yv=he.get(jn._end))!=null;)for(var Rp=vu+1;Rp<xn.length;Rp++)if(xn[Rp]._start===Yv){_f.push(jn=xn[Rp]);break}for(var jc=[],V1=0;V1<_f.length;V1++)for(var Xv=_f[V1],Op=Xv._start;Op<=Xv._end;Op++)jc.push(Op);for(var Uw=Se[jc[0]],Jv=ze.level,bf=jc[0]-1;bf>=0;bf--)if(!(oe[bf]&s)){Jv=Se[bf];break}var j1=jc[jc.length-1],Hw=Se[j1],Qv=ze.level;if(!(oe[j1]&i)){for(var Bp=j1+1;Bp<=ze.end;Bp++)if(!(oe[Bp]&s)){Qv=Se[Bp];break}}yu.push({_seqIndices:jc,_sosType:Math.max(Jv,Uw)%2?k:T,_eosType:Math.max(Qv,Hw)%2?k:T})}}for(var U1=0;U1<yu.length;U1++){var H1=yu[U1],Lt=H1._seqIndices,xf=H1._sosType,Fp=H1._eosType,Uc=Se[Lt[0]]&1?k:T;if(ge.get(J))for(var zp=0;zp<Lt.length;zp++){var e_=Lt[zp];if(oe[e_]&J){for(var Np=xf,wf=zp-1;wf>=0;wf--)if(!(oe[Lt[wf]]&s)){Np=oe[Lt[wf]];break}Oe(e_,Np&(i|Ve)?B:Np)}}if(ge.get(A))for(var Sf=0;Sf<Lt.length;Sf++){var t_=Lt[Sf];if(oe[t_]&A)for(var Vp=Sf-1;Vp>=-1;Vp--){var n_=Vp===-1?xf:oe[Lt[Vp]];if(n_&a){n_===K&&Oe(t_,$);break}}}if(ge.get(K))for(var q1=0;q1<Lt.length;q1++){var W1=Lt[q1];oe[W1]&K&&Oe(W1,k)}if(ge.get(P)||ge.get(O))for(var Hc=1;Hc<Lt.length-1;Hc++){var jp=Lt[Hc];if(oe[jp]&(P|O)){for(var kl=0,G1=0,Up=Hc-1;Up>=0&&(kl=oe[Lt[Up]],kl&s);Up--);for(var qc=Hc+1;qc<Lt.length&&(G1=oe[Lt[qc]],G1&s);qc++);kl===G1&&(oe[jp]===P?kl===A:kl&(A|$))&&Oe(jp,kl)}}if(ge.get(A)){for(var wo=0;wo<Lt.length;wo++)if(oe[Lt[wo]]&A){for(var Hp=wo-1;Hp>=0&&oe[Lt[Hp]]&(D|s);Hp--)Oe(Lt[Hp],A);for(wo++;wo<Lt.length&&oe[Lt[wo]]&(D|s|A);wo++)oe[Lt[wo]]!==A&&Oe(Lt[wo],A)}}if(ge.get(D)||ge.get(P)||ge.get(O))for(var Wc=0;Wc<Lt.length;Wc++){var Z1=Lt[Wc];if(oe[Z1]&(D|P|O)){Oe(Z1,B);for(var Gc=Wc-1;Gc>=0&&oe[Lt[Gc]]&s;Gc--)Oe(Lt[Gc],B);for(var qp=Wc+1;qp<Lt.length&&oe[Lt[qp]]&s;qp++)Oe(Lt[qp],B)}}if(ge.get(A))for(var Wp=0,Gp=xf;Wp<Lt.length;Wp++){var Zp=Lt[Wp],El=oe[Zp];El&A?Gp===T&&Oe(Zp,T):El&a&&(Gp=El)}if(ge.get(o)){for(var Zc=k|A|$,K1=Zc|T,Kp=[],_u=[],bu=0;bu<Lt.length;bu++)if(oe[Lt[bu]]&o){var Kc=ve[Lt[bu]],Y1=void 0;if(_(Kc)!==null)if(_u.length<63)_u.push({char:Kc,seqIndex:bu});else break;else if((Y1=w(Kc))!==null)for(var Cf=_u.length-1;Cf>=0;Cf--){var X1=_u[Cf].char;if(X1===Y1||X1===w(C(Kc))||_(C(X1))===Kc){Kp.push([_u[Cf].seqIndex,bu]),_u.length=Cf;break}}}Kp.sort(function(Gi,Ya){return Gi[0]-Ya[0]});for(var J1=0;J1<Kp.length;J1++){for(var Q1=Kp[J1],Yp=Q1[0],eg=Q1[1],r_=!1,ns=0,Tf=Yp+1;Tf<eg;Tf++){var i_=Lt[Tf];if(oe[i_]&K1){r_=!0;var a_=oe[i_]&Zc?k:T;if(a_===Uc){ns=a_;break}}}if(r_&&!ns){ns=xf;for(var tg=Yp-1;tg>=0;tg--){var o_=Lt[tg];if(oe[o_]&K1){var s_=oe[o_]&Zc?k:T;ns=s_===Uc?Uc:s_;break}}}if(ns){if(oe[Lt[Yp]]=oe[Lt[eg]]=ns,ns!==Uc){for(var Jn=Yp+1;Jn<Lt.length;Jn++)if(!(oe[Lt[Jn]]&s)){d(ve[Lt[Jn]])&J&&(oe[Lt[Jn]]=ns);break}}if(ns!==Uc){for(var Un=eg+1;Un<Lt.length;Un++)if(!(oe[Lt[Un]]&s)){d(ve[Lt[Un]])&J&&(oe[Lt[Un]]=ns);break}}}}for(var Ml=0;Ml<Lt.length;Ml++)if(oe[Lt[Ml]]&o){for(var l_=Ml,ng=Ml,rg=xf,kf=Ml-1;kf>=0;kf--)if(oe[Lt[kf]]&s)l_=kf;else{rg=oe[Lt[kf]]&Zc?k:T;break}for(var u_=Fp,Yc=Ml+1;Yc<Lt.length;Yc++)if(oe[Lt[Yc]]&(o|s))ng=Yc;else{u_=oe[Lt[Yc]]&Zc?k:T;break}for(var ig=l_;ig<=ng;ig++)oe[Lt[ig]]=rg===u_?rg:Uc;Ml=ng}}}for(var Qn=ze.start;Qn<=ze.end;Qn++){var ag=Se[Qn],rs=oe[Qn];
vendor: 13,148 bytes, line 23
23if(ag&1?rs&(T|A|$)&&Se[Qn]++:rs&k?Se[Qn]++:rs&($|A)&&(Se[Qn]+=2),rs&s&&(Se[Qn]=Qn===0?ze.level:Se[Qn-1]),Qn===ze.end||d(ve[Qn])&(j|z))for(var Ef=Qn;Ef>=0&&d(ve[Ef])&l;Ef--)Se[Ef]=ze.level}}return{levels:Se,paragraphs:Te};function Xp(Gi,Ya){for(var Zi=Gi;Zi<ve.length;Zi++){var qs=oe[Zi];if(qs&(k|K))return 1;if(qs&(z|T)||Ya&&qs===Ve)return 0;if(qs&i){var og=Ka(Zi);Zi=og===-1?ve.length:og}}return 0}function Ka(Gi){for(var Ya=1,Zi=Gi+1;Zi<ve.length;Zi++){var qs=oe[Zi];if(qs&z)break;if(qs&Ve){if(--Ya===0)return Zi}else qs&i&&Ya++}return-1}}var xe="14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",Pe;function je(){if(!Pe){var ve=p(xe,!0),X=ve.map;ve.reverseMap.forEach(function(ee,oe){X.set(oe,ee)}),Pe=X}}function Fe(ve){return je(),Pe.get(ve)||null}function re(ve,X,ee,oe){var _e=ve.length;ee=Math.max(0,ee==null?0:+ee),oe=Math.min(_e-1,oe==null?_e-1:+oe);for(var ge=new Map,Oe=ee;Oe<=oe;Oe++)if(X[Oe]&1){var Se=Fe(ve[Oe]);Se!==null&&ge.set(Oe,Se)}return ge}function le(ve,X,ee,oe){var _e=ve.length;ee=Math.max(0,ee==null?0:+ee),oe=Math.min(_e-1,oe==null?_e-1:+oe);var ge=[];return X.paragraphs.forEach(function(Oe){var Se=Math.max(ee,Oe.start),he=Math.min(oe,Oe.end);if(Se<he){for(var Te=X.levels.slice(Se,he+1),ze=he;ze>=Se&&d(ve[ze])&l;ze--)Te[ze]=Oe.level;for(var qe=Oe.level,lt=1/0,bt=0;bt<Te.length;bt++){var fe=Te[bt];fe>qe&&(qe=fe),fe<lt&&(lt=fe|1)}for(var pe=qe;pe>=lt;pe--)for(var De=0;De<Te.length;De++)if(Te[De]>=pe){for(var Ge=De;De+1<Te.length&&Te[De+1]>=pe;)De++;De>Ge&&ge.push([Ge+Se,De+Se])}}}),ge}function ye(ve,X,ee,oe){var _e=Me(ve,X,ee,oe),ge=[].concat(ve);return _e.forEach(function(Oe,Se){ge[Se]=(X.levels[Oe]&1?Fe(ve[Oe]):null)||ve[Oe]}),ge.join("")}function Me(ve,X,ee,oe){for(var _e=le(ve,X,ee,oe),ge=[],Oe=0;Oe<ve.length;Oe++)ge[Oe]=Oe;return _e.forEach(function(Se){for(var he=Se[0],Te=Se[1],ze=ge.slice(he,Te+1),qe=ze.length;qe--;)ge[Te-qe]=ze[qe]}),ge}return e.closingToOpeningBracket=w,e.getBidiCharType=d,e.getBidiCharTypeName=f,e.getCanonicalBracket=C,e.getEmbeddingLevels=nt,e.getMirroredCharacter=Fe,e.getMirroredCharactersMap=re,e.getReorderSegments=le,e.getReorderedIndices=Me,e.getReorderedString=ye,e.openingToClosingBracket=_,Object.defineProperty(e,"__esModule",{value:!0}),e})({})}const LP=Zje(),Kje=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,Yje=new Set(["WS","FSI","LRI","RLI","PDI"]),Xje=new Set(["S","B"]);function Jje(e,t,n,r){let i=[],a=n;for(let o of dk(e.slice(n,r)))i.push({index:a,text:o,level:t[a]}),a+=o.length;return i}function Qje(e,t){let n=!0;for(let r=e.length-1;r>=0;r--){let i=LP.getBidiCharTypeName(e[r].text[0]);Xje.has(i)?(e[r].level=t,n=!0):n&&Yje.has(i)?e[r].level=t:n=!1}}function eUe(e,t){let n=t,r=1/0;for(let{level:a}of e)a>n&&(n=a),(a|1)<r&&(r=a|1);let i=e.slice();for(let a=n;a>=r;a--)for(let o=0;o<i.length;o++){if(i[o].level<a)continue;let s=o;for(;s+1<i.length&&i[s+1].level>=a;)s++;for(let l=o,u=s;l<u;l++,u--)[i[l],i[u]]=[i[u],i[l]];o=s}return i}function tUe(e){return e.level%2==0?e.text:LP.getMirroredCharacter(e.text)??e.text}function nUe(e,t){return e.find(n=>t>=n.start&&t<=n.end)?.level??0}function rUe(e,t,n,r,i){let a=Jje(e,t,r,i);Qje(a,n);let o="",s=[];for(let l of eUe(a,n)){if(Kje.test(l.text))continue;let u=tUe(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function iUe(e,t){let n=t.filter(a=>a>0&&a<e.length),r=[...new Set([0,...n,e.length])].sort((a,o)=>a-o),i=[];for(let a=0;a+1<r.length;a++)i.push([r[a],r[a+1]]);return i}function zee(e,t){let{levels:n,paragraphs:r}=LP.getEmbeddingLevels(e);return iUe(e,t.concat(r.map(i=>i.start))).map(([i,a])=>rUe(e,n,nUe(r,i),i,a))}function aUe(e,t){return zee(e,t).map(n=>n.text)}function oUe(e,t,n){return zee(e,n).map(r=>[r.text,r.sourceIndices.map(i=>t[i]??0)])}const vN=4294967296,_N=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");var Nee=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,n=this.length){let r;for(;r=this.nextField(n);)e(r,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*vN;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*vN;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,n=t[this.pos++];if(n<128)return n;let r=n&127,i;return i=t[this.pos++],r|=(i&127)<<7,i<128||(i=t[this.pos++],r|=(i&127)<<14,i<128)||(i=t[this.pos++],r|=(i&127)<<21,i<128)?r:(i=t[this.pos],r|=(i&15)<<28,sUe(r,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&_N?_N.decode(this.buf.subarray(t,e)):uUe(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let n=this.readPackedEnd();for(;this.pos<n;)e.push(this.readVarint(t));return e}readPackedSVarint(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSVarint());return e}readPackedBoolean(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readBoolean());return e}readPackedFloat(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFloat());return e}readPackedDouble(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readDouble());return e}readPackedFixed32(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFixed32());return e}readPackedSFixed32(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSFixed32());return e}readPackedFixed64(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFixed64());return e}readPackedSFixed64(e=[]){let t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSFixed64());return e}readPackedEnd(){return this.type===2?this.readVarint()+this.pos:this.pos+1}nextField(e=this.length){if(this.pos===this._valueStart&&this.skip(this.type),this.pos>=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};function sUe(e,t,n){let r=n.buf,i,a;if(a=r[n.pos++],i=(a&112)>>4,a<128||(a=r[n.pos++],i|=(a&127)<<3,a<128)||(a=r[n.pos++],i|=(a&127)<<10,a<128)||(a=r[n.pos++],i|=(a&127)<<17,a<128)||(a=r[n.pos++],i|=(a&127)<<24,a<128)||(a=r[n.pos++],i|=(a&1)<<31,a<128))return lUe(e,i,t);throw Error("Expected varint not more than 10 bytes")}function lUe(e,t,n){return n?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function uUe(e,t,n){let r="",i=t;for(;i<n;){let a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s>n)break;let l,u,c;s===1?a<128&&(o=a):s===2?(l=e[i+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[i+1],u=e[i+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[i+1],u=e[i+2],c=e[i+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,r+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),r+=String.fromCharCode(o),i+=s}return r}function cUe(e,t,n){e===1&&n.readMessage(dUe,t)}function dUe(e,t,n){if(e===3){let{id:r,bitmap:i,width:a,height:o,left:s,top:l,advance:u}=n.readMessage(fUe,{});t.push({id:r,bitmap:new AP({width:a+6,height:o+6},i),metrics:{width:a,height:o,left:s,top:l,advance:u}})}}function fUe(e,t,n){e===1?t.id=n.readVarint():e===2?t.bitmap=n.readBytes():e===3?t.width=n.readVarint():e===4?t.height=n.readVarint():e===5?t.left=n.readSVarint():e===6?t.top=n.readSVarint():e===7&&(t.advance=n.readVarint())}function hUe(e){return new Nee(e).readFields(cUe,[])}function T5(e){return typeof e?.renderWithWebGL=="function"}function pUe(e){let{userImage:t}=e;return!t?.render||!t.render()?!1:(T5(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function Vee(e){let t=0,n=0;for(let o of e)t+=o.w*o.h,n=Math.max(n,o.w);e.sort((o,s)=>s.h-o.h);let r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],i=0,a=0;for(let o of e)for(let s=r.length-1;s>=0;s--){let l=r[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,a=Math.max(a,o.y+o.h),i=Math.max(i,o.x+o.w),o.w===l.w&&o.h===l.h){let u=r.pop();u&&s<r.length&&(r[s]=u)}else o.h===l.h?(l.x+=o.w,l.w-=o.w):o.w===l.w?(l.y+=o.h,l.h-=o.h):(r.push({x:l.x+o.w,y:l.y,w:l.w-o.w,h:o.h}),l.y+=o.h,l.h-=o.h);break}}return{w:i,h:a,fill:t/(i*a)||0}}var RP=class{constructor(e,{pixelRatio:t,version:n,isWebGLImage:r=!1,stretchX:i,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n,this.needsFirstWebGLRender=r,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},mUe=class{constructor(e,t){let n={},r={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let i=[];this.addImages(e,n,i),this.addImages(t,r,i);let{w:a,h:o}=Vee(i),s=new gr({width:a||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let c=n[l].paddedRect;gr.copy(u.data,s,{x:0,y:0},{x:c.x+1,y:c.y+1},u.data)}for(let l in t){let u=t[l],c=r[l].paddedRect,d=c.x+1,f=c.y+1,h=u.data.width,p=u.data.height;gr.copy(u.data,s,{x:0,y:0},{x:d,y:f},u.data),gr.copy(u.data,s,{x:0,y:p-1},{x:d,y:f-1},{width:h,height:1}),gr.copy(u.data,s,{x:0,y:0},{x:d,y:f+p},{width:h,height:1}),gr.copy(u.data,s,{x:h-1,y:0},{x:d-1,y:f},{width:1,height:p}),gr.copy(u.data,s,{x:0,y:0},{x:d+h,y:f},{width:1,height:p})}this.image=s,this.iconPositions=n,this.patternPositions=r}addImages(e,t,n){for(let r in e){let i=e[r],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(a),t[r]=new RP(a,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let n in this.iconPositions)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t);for(let n in this.patternPositions)this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}}patchUpdatedImage(e,t,n){if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[r,i]=e.tl,a=t.userImage?.data;if(!T5(a)){n.update(t.data,void 0,{x:r,y:i});return}let{width:o,height:s}=t.data;n.context.setCustomLayerDefaults(),a.renderWithWebGL({gl:n.context.gl,texture:n.texture,x:r,y:i,width:o,height:s}),n.context.setDirty()}};pt("ImagePosition",RP),pt("ImageAtlas",mUe);var jee=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(jee||{});function gUe(e){for(let t of e)if(t.positionedGlyphs.length!==0)return!1;return!0}function yUe(e,t){let n=[],r=0;for(let i of t)n.push(e.substring(r,i)),r=i;return r<e.length()&&n.push(e.substring(r,e.length())),n}const bN=new RegExp("^\\p{gc=M}$","u");function vUe(e){let t=[],n=0;for(;n<e.length;){if(!bN.test(e[n])){t.push(n),n++;continue}let r=n;for(;r<e.length&&bN.test(e[r]);)r++;let i=e[r];if(i!==void 0&&Oee(i.codePointAt(0))){t.push(r);for(let a=r-1;a>=n;a--)t.push(a);n=r+1}else{for(let a=n;a<r;a++)t.push(a);n=r}}return t}function _Ue(e){let t=[],n=0;for(let r of e.graphemes())t.push(...Array(r.length).fill(e.sectionIndex[n])),n++;return t}function bUe(e,t){let n=t.map(a=>e.toCodeUnitIndex(a)),r=S5.isParsed()?S5:null;if(e.sections.length===1)return r?r.processBidirectionalText(e.toString(),n).map(a=>xN(a,e.sections,[...a].map(()=>0))):aUe(e.toString(),n).map(a=>pk([...a],e.sections,[...a].map(()=>0)));let i=_Ue(e);return r?r.processStyledBidirectionalText(e.text,i,n).map(([a,o])=>xN(a,e.sections,o)):oUe(e.text,i,n).map(([a,o])=>{let s=[...a];
vendor: 4,266 bytes, line 23
23return pk(s,e.sections,Uee(s).map(l=>o[l]??0))})}function pk(e,t,n){let r=new $P(e.join(""),t,[]),i=0;for(let a of r.graphemes())r.sectionIndex.push(n[i]??0),i+=[...a].length;return r}function Uee(e){let t=[],n=0;for(let r of e)t.push(n),n+=r.length;return t}function xN(e,t,n){let r=[...e],i=Uee(r),a=vUe(r);return pk(a.map(o=>r[o]),t,a.map(o=>n[i[o]]??0))}function q3(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p){let g=$P.fromFeature(e,i);d===2&&g.verticalizePunctuation();let v=g.determineLineBreaks(u,a,t,r,h),b=Bee(g.text)?bUe(g,v):yUe(g,v),x=[],_={positionedLines:x,text:g.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:d,iconsInText:!1,verticalizable:!1};return AUe(_,t,n,r,b,o,s,l,d,u,f,p),!gUe(x)&&_}function hw(e){let t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function xUe(e,t,n){let r=t.getMaxScale()*24,{maxImageWidth:i,maxImageHeight:a}=t.getMaxImageSize(e),o=Math.max(r,a*n);return{verticalLineContentWidth:Math.max(r,i*n),horizontalLineContentHeight:o}}function Hee(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function wUe(e,t,n,r){if(e?.rect)return e;let i=t[n.fontStack]?.default?.[r];return i?{rect:null,metrics:i.metrics}:null}function SUe(e,t,n){return!(e===1||!t&&!fw(n)||t&&(IP(n)||Ree(n)))}function Gb(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function qee(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function CUe(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function TUe(e){let t=e.some(Gb)&&e.every(r=>Gb(r)||CUe(r)),n=e.length<=3&&e.every(r=>qee(r)||Gb(r));return t||n}function kUe(e){return(Gb(e)||qee(e))&&!Ree(e)}function EUe(e,t){let n=!1;for(let r=0;r<e.length;r++){if(t[r])continue;let i=Z0[e[r]];i&&(r===0||t[r-1])&&(r===e.length-1||t[r+1])&&(e[r]=i,t[r]=!0,n=!0)}return n}function MUe(e){let t=e.graphemes().slice(),n=t.map(a=>a.codePointAt(0)),r=n.map(fw),i=a=>!r[a]&&!IP(n[a])&&!("imageName"in e.getSection(a));for(let a=0;a<n.length;a++){if(!i(a))continue;let o=a;for(;o+1<n.length&&i(o+1);)o++;if(TUe(n.slice(a,o+1)))for(let s=a;s<=o;s++)r[s]=kUe(n[s]);a=o}return EUe(t,r)&&(e.text=t.join(""),e._graphemes=null),r}function AUe(e,t,n,r,i,a,o,s,l,u,c,d){let f=0,h=0,p=0,g=0,v=s==="right"?1:s==="left"?0:.5,b=24/d,x=0;for(let C of i){C.trim();let T=C.getMaxScale(),k={positionedGlyphs:[],lineOffset:0};e.positionedLines[x]=k;let A=k.positionedGlyphs,P=0;if(!C.length()){h+=a,++x;continue}let D=xUe(r,C,b),$=l===2&&!c?MUe(C):null,O=C.graphemes();for(let B=0;B<O.length;B++){let R=C.getSection(B),J=O[B],K=J.codePointAt(0),Z=$?$[B]:SUe(l,c,K),ne="fontStack"in R&&C5(J)&&!t[R.fontStack]?.default?.[J]?[...J]:[J];for(let se of ne){let ce={glyph:se.codePointAt(0),grapheme:se,imageName:null,x:f,y:h+-17,vertical:Z,scale:1,fontStack:"",sectionIndex:C.getSectionIndex(B),metrics:null,rect:null},Re;if("fontStack"in R){if(Re=PUe(R,se,Z,D,t,n),!Re)continue;ce.fontStack=R.fontStack}else{if(e.iconsInText=!0,R.scale*=b,Re=DUe(R,Z,T,D,r),!Re)continue;P=Math.max(P,Re.imageOffset),ce.imageName=R.imageName}let{rect:Ue,metrics:$e,baselineOffset:ke}=Re;if(ce.y+=ke,ce.scale=R.scale,ce.metrics=$e,ce.rect=Ue,A.push(ce),!Z)f+=$e.advance*R.scale+u;else{e.verticalizable=!0;let Ve="imageName"in R?$e.advance:24;f+=Ve*R.scale+u}}}if(A.length!==0){let B=f-u;p=Math.max(B,p),IUe(A,0,A.length-1,v)}f=0;let z=(T-1)*24;k.lineOffset=Math.max(P,z);let j=a*T+P;h+=j,g=Math.max(j,g),++x}let{horizontalAlign:_,verticalAlign:w}=hw(o);$Ue(e.positionedLines,v,_,w,p,g,a,h,i.length),e.top+=-w*h,e.bottom=e.top+h,e.left+=-_*p,e.right=e.left+p}function PUe(e,t,n,r,i,a){let o=a[e.fontStack]?.default?.[t],s=wUe(o,i,e,t);if(s===null)return null;let l;if(n)l=r.verticalLineContentWidth-e.scale*24;else{let u=Hee(e.verticalAlign);l=(r.horizontalLineContentHeight-e.scale*24)*u}return{rect:s.rect,metrics:s.metrics,baselineOffset:l}}function DUe(e,t,n,r,i){let a=i[e.imageName];if(!a)return null;let o=a.paddedRect,s=a.displaySize,l={width:s[0],height:s[1],left:1,top:-3,advance:t?s[1]:s[0]},u;if(t)u=r.verticalLineContentWidth-s[1]*e.scale;
vendor: 21,193 bytes, line 23
23else{let d=Hee(e.verticalAlign);u=(r.horizontalLineContentHeight-s[1]*e.scale)*d}let c=(t?s[0]:s[1])*e.scale-24*n;return{rect:o,metrics:l,baselineOffset:u,imageOffset:c}}function IUe(e,t,n,r){if(r===0)return;let i=e[n],a=i.metrics.advance*i.scale,o=(e[n].x+a)*r;for(let s=t;s<=n;s++)e[s].x-=o}function $Ue(e,t,n,r,i,a,o,s,l){let u=(t-n)*i,c=0;c=a===o?-r*l*o+.5*o:-s*r- -17;for(let d of e)for(let f of d.positionedGlyphs)f.x+=u,f.y+=c}function LUe(e,t,n){let{horizontalAlign:r,verticalAlign:i}=hw(n),a=t[0],o=t[1],s=a-e.displaySize[0]*r,l=s+e.displaySize[0],u=o-e.displaySize[1]*i;return{image:e,top:u,bottom:u+e.displaySize[1],left:s,right:l}}function Wee(e){let t=e.left,n=e.top,r=e.right-t,i=e.bottom-n,a=e.image.content[2]-e.image.content[0],o=e.image.content[3]-e.image.content[1],s=e.image.textFitWidth??"stretchOrShrink",l=e.image.textFitHeight??"stretchOrShrink",u=a/o;if(l==="proportional"){if(s==="stretchOnly"&&r/i<u||s==="proportional"){let c=Math.ceil(i*u);t*=c/r,r=c}}else if(s==="proportional"&&l==="stretchOnly"&&u!==0&&r/i>u){let c=Math.ceil(r/u);n*=c/i,i=c}return{x1:t,y1:n,x2:t+r,y2:n+i}}function wN(e,t,n,r,i,a){let o=e.image,s;if(o.content){let v=o.content,b=o.pixelRatio||1;s=[v[0]/b,v[1]/b,o.displaySize[0]-v[2]/b,o.displaySize[1]-v[3]/b]}let l=t.left*a,u=t.right*a,c,d,f,h;n==="width"||n==="both"?(h=i[0]+l-r[3],d=i[0]+u+r[1]):(h=i[0]+(l+u-o.displaySize[0])/2,d=h+o.displaySize[0]);let p=t.top*a,g=t.bottom*a;return n==="height"||n==="both"?(c=i[1]+p-r[0],f=i[1]+g+r[2]):(c=i[1]+(p+g-o.displaySize[1])/2,f=c+o.displaySize[1]),{image:o,top:c,right:d,bottom:f,left:h,collisionPadding:s}}const SN=32640;function CN(e,t){let{expression:n}=t;if(n.kind==="constant")return{kind:"constant",layoutSize:n.evaluate(new Zn(e+1))};if(n.kind==="source")return{kind:"source"};if(n.kind==="composite"){let{minZoom:r,maxZoom:i}=RUe(n.zoomStops,e);return{kind:"composite",minZoom:r,maxZoom:i,interpolationType:n.interpolationType}}{let r=OUe(n),i=n.evaluate(new Zn(e+1));return{kind:"camera",zoomStops:n.zoomStops,sizes:r,layoutSize:i,interpolationType:n.interpolationType}}}function RUe(e,t){let n=0;for(;n<e.length&&e[n]<=t;)n++;n=Math.max(0,n-1);let r=n;for(;r<e.length&&e[r]<t+1;)r++;return r=Math.min(e.length-1,r),{minZoom:e[n],maxZoom:e[r]}}function OUe(e){return e.zoomStops.map(t=>e.evaluate(new Zn(t===-1/0?e.zoomStops[1]-1:t)))}function OP(e,{uSize:t,uSizeT:n},{lowerSize:r,upperSize:i}){return e.kind==="source"?r/128:e.kind==="composite"?Lr.number(r/128,i/128,n):t}function pw(e,t){let n=0,r=0;return e.kind==="constant"?r=e.layoutSize:e.kind==="camera"?r=BUe(e,t):e.kind==="composite"&&(n=FUe(e,t)),{uSizeT:n,uSize:r}}function BUe({zoomStops:e,sizes:t,layoutSize:n,interpolationType:r},i){let a=e.length-1;for(;a>0&&e[a]>i;)a--;let o=Math.min(a+1,e.length-1),s=r?qt(Ls.interpolationFactor(r,i,e[a],e[o]),0,1):0;return Math.min(Lr.number(t[a],t[o],s),n)}function FUe({interpolationType:e,minZoom:t,maxZoom:n},r){return e?qt(Ls.interpolationFactor(e,r,t,n),0,1):0}var pm=class Gee extends we{constructor(t,n,r,i){super(t,n),this.angle=r,i!==void 0&&(this.segment=i)}clone(){return new Gee(this.x,this.y,this.angle,this.segment)}};pt("Anchor",pm);function Zee(e,t,n,r,i){if(t.segment===void 0||n===0)return!0;let a=t,o=t.segment+1,s=0;for(;s>-n/2;){if(o--,o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;s<n/2;){let c=e[o-1],d=e[o],f=e[o+1];if(!f)return!1;let h=c.angleTo(d)-d.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(Math.PI*2)-Math.PI),l.push({distance:s,angleDelta:h}),u+=h;s-l[0].distance>r;)u-=l.shift().angleDelta;if(u>i)return!1;o++,s+=d.dist(f)}return!0}function Kee(e){let t=0;for(let n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Yee(e,t,n){return e?3/5*t*n:0}function Xee(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function zUe(e,t,n,r,i,a){let o=Yee(n,i,a),s=Xee(n,r)*a,l=0,u=Kee(e)/2;for(let c=0;c<e.length-1;c++){let d=e[c],f=e[c+1],h=d.dist(f);if(l+h>u){let p=(u-l)/h,g=new pm(Lr.number(d.x,f.x,p),Lr.number(d.y,f.y,p),f.angleTo(d),c);return g._round(),!o||Zee(e,g,s,o,t)?g:void 0}l+=h}}function NUe(e,t,n,r,i,a,o,s,l){let u=Yee(r,a,o),c=Xee(r,i),d=c*o,f=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-d<t/4&&(t=d+t/4);let h=a*2;return Jee(e,f?t/2*s%t:(c/2+h)*o*s%t,t,u,n,d,f,!1,l)}function Jee(e,t,n,r,i,a,o,s,l){let u=a/2,c=Kee(e),d=0,f=t-n,h=[];for(let p=0;p<e.length-1;p++){let g=e[p],v=e[p+1],b=g.dist(v),x=v.angleTo(g);for(;f+n<d+b;){f+=n;let _=(f-d)/b,w=Lr.number(g.x,v.x,_),C=Lr.number(g.y,v.y,_);if(w>=0&&w<l&&C>=0&&C<l&&f-u>=0&&f+u<=c){let T=new pm(w,C,x,p);T._round(),(!r||Zee(e,T,a,r,i))&&h.push(T)}}d+=b}return!s&&!h.length&&!o&&(h=Jee(e,d/2,n,r,i,a,o,!0,l)),h}function Qee(e,t,n,r,i){let a=[];for(let o of e){let s;for(let l=0;l<o.length-1;l++){let u=o[l],c=o[l+1];u.x<t&&c.x<t||(u.x<t?u=new we(t,u.y+(c.y-u.y)*((t-u.x)/(c.x-u.x)))._round():c.x<t&&(c=new we(t,u.y+(c.y-u.y)*((t-u.x)/(c.x-u.x)))._round()),!(u.y<n&&c.y<n)&&(u.y<n?u=new we(u.x+(c.x-u.x)*((n-u.y)/(c.y-u.y)),n)._round():c.y<n&&(c=new we(u.x+(c.x-u.x)*((n-u.y)/(c.y-u.y)),n)._round()),!(u.x>=r&&c.x>=r)&&(u.x>=r?u=new we(r,u.y+(c.y-u.y)*((r-u.x)/(c.x-u.x)))._round():c.x>=r&&(c=new we(r,u.y+(c.y-u.y)*((r-u.x)/(c.x-u.x)))._round()),!(u.y>=i&&c.y>=i)&&(u.y>=i?u=new we(u.x+(c.x-u.x)*((i-u.y)/(c.y-u.y)),i)._round():c.y>=i&&(c=new we(u.x+(c.x-u.x)*((i-u.y)/(c.y-u.y)),i)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],a.push(s)),s.push(c)))))}}return a}function TN(e,t,n,r){let i=[],a=e.image,o=a.pixelRatio,s=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},c=a.stretchX||[[0,s]],d=a.stretchY||[[0,l]],f=(j,B)=>j+B[1]-B[0],h=c.reduce(f,0),p=d.reduce(f,0),g=s-h,v=l-p,b=0,x=h,_=0,w=p,C=0,T=g,k=0,A=v;if(a.content&&r){let j=a.content,B=j[2]-j[0],R=j[3]-j[1];(a.textFitWidth||a.textFitHeight)&&(u=Wee(e)),b=W3(c,0,j[0]),_=W3(d,0,j[1]),x=W3(c,j[0],j[2]),w=W3(d,j[1],j[3]),C=j[0]-b,k=j[1]-_,T=B-x,A=R-w}let P=u.x1,D=u.y1,$=u.x2-P,O=u.y2-D,z=(j,B,R,J)=>{let K=G3(j.stretch-b,x,$,P),Z=Z3(j.fixed-C,T,j.stretch,h),ne=G3(B.stretch-_,w,O,D),se=Z3(B.fixed-k,A,B.stretch,p),ce=G3(R.stretch-b,x,$,P),Re=Z3(R.fixed-C,T,R.stretch,h),Ue=G3(J.stretch-_,w,O,D),$e=Z3(J.fixed-k,A,J.stretch,p),ke=new we(K,ne),Ve=new we(ce,ne),nt=new we(ce,Ue),xe=new we(K,Ue),Pe=new we(Z/o,se/o),je=new we(Re/o,$e/o),Fe=t*Math.PI/180;if(Fe){let ve=Math.sin(Fe),X=Math.cos(Fe),ee=[X,-ve,ve,X];ke._matMult(ee),Ve._matMult(ee),xe._matMult(ee),nt._matMult(ee)}let re=j.stretch+j.fixed,le=R.stretch+R.fixed,ye=B.stretch+B.fixed,Me=J.stretch+J.fixed;return{tl:ke,tr:Ve,bl:xe,br:nt,tex:{x:a.paddedRect.x+1+re,y:a.paddedRect.y+1+ye,w:le-re,h:Me-ye},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Pe,pixelOffsetBR:je,minFontScaleX:T/o/$,minFontScaleY:A/o/O,isSDF:n}};if(!r||!a.stretchX&&!a.stretchY)i.push(z({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let j=kN(c,g,h),B=kN(d,v,p);for(let R=0;R<j.length-1;R++){let J=j[R],K=j[R+1];for(let Z=0;Z<B.length-1;Z++){let ne=B[Z],se=B[Z+1];i.push(z(J,ne,K,se))}}}return i}function W3(e,t,n){let r=0;for(let i of e)r+=Math.max(t,Math.min(n,i[1]))-Math.max(t,Math.min(n,i[0]));return r}function kN(e,t,n){let r=[{fixed:-1,stretch:0}];for(let[i,a]of e){let o=r[r.length-1];r.push({fixed:i-o.stretch,stretch:o.stretch}),r.push({fixed:i-o.stretch,stretch:o.stretch+(a-i)})}return r.push({fixed:t+1,stretch:n}),r}function G3(e,t,n,r){return e/t*n+r}function Z3(e,t,n,r){return e-t*n/r}function VUe(e,t,n,r,i,a,o,s){let l=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,u=[];for(let c of t.positionedLines)for(let d of c.positionedGlyphs){if(!d.rect)continue;let f=d.rect||{},h=4,p=!0,g=1,v=0,b=(i||s)&&d.vertical,x=d.metrics.advance*d.scale/2;if(s&&t.verticalizable){let J=(d.scale-1)*24,K=(24-d.metrics.width*d.scale)/2;v=c.lineOffset/2-(d.imageName?-K:J)}if(d.imageName){let J=o[d.imageName];p=J.sdf,g=J.pixelRatio,h=1/g}let _=i?[d.x+x,d.y]:[0,0],w=i?[0,0]:[d.x+x+n[0],d.y+n[1]-v],C=[0,0];b&&(C=w,w=[0,0]);let T=d.metrics.isDoubleResolution?2:1,k=(d.metrics.left-h)*d.scale-x+w[0],A=(-d.metrics.top-h)*d.scale+w[1],P=k+f.w/T*d.scale/g,D=A+f.h/T*d.scale/g,$=new we(k,A),O=new we(P,A),z=new we(k,D),j=new we(P,D);if(b){let J=new we(-x,x- -17),K=-Math.PI/2,Z=12-x,ne=d.imageName?Z:0,se=new we(22-Z,-ne),ce=new we(...C);$._rotateAround(K,J)._add(se)._add(ce),O._rotateAround(K,J)._add(se)._add(ce),z._rotateAround(K,J)._add(se)._add(ce),j._rotateAround(K,J)._add(se)._add(ce)}if(l){let J=Math.sin(l),K=Math.cos(l),Z=[K,-J,J,K];$._matMult(Z),O._matMult(Z),z._matMult(Z),j._matMult(Z)}let B=new we(0,0),R=new we(0,0);u.push({tl:$,tr:O,bl:z,br:j,tex:f,writingMode:t.writingMode,glyphOffset:_,sectionIndex:d.sectionIndex,isSDF:p,pixelOffsetTL:B,pixelOffsetBR:R,minFontScaleX:0,minFontScaleY:0})}return u}var K3=class{constructor(e,t,n,r,i,a,o,s,l,u){if(this.boxStartIndex=e.length,l){let c=a.top,d=a.bottom,f=a.collisionPadding;f&&(c-=f[1],d+=f[3]);let h=d-c;h>0&&(h=Math.max(10,h),this.circleDiameter=h)}else{let c=a.image?.content&&(a.image.textFitWidth||a.image.textFitHeight)?Wee(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*o-s[0],c.y2=c.y2*o+s[2],c.x1=c.x1*o-s[3],c.x2=c.x2*o+s[1];let d=a.collisionPadding;if(d&&(c.x1-=d[0]*o,c.y1-=d[1]*o,c.x2+=d[2]*o,c.y2+=d[3]*o),u){let f=new we(c.x1,c.y1),h=new we(c.x2,c.y1),p=new we(c.x1,c.y2),g=new we(c.x2,c.y2),v=u*Math.PI/180;f._rotate(v),h._rotate(v),p._rotate(v),g._rotate(v),c.x1=Math.min(f.x,h.x,p.x,g.x),c.x2=Math.max(f.x,h.x,p.x,g.x),c.y1=Math.min(f.y,h.y,p.y,g.y),c.y2=Math.max(f.y,h.y,p.y,g.y)}e.emplaceBack(t.x,t.y,c.x1,c.y1,c.x2,c.y2,n,r,i)}this.boxEndIndex=e.length}},jUe=class{constructor(e=[],t=(n,r)=>n<r?-1:+(n>r)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let i=e-1>>1,a=t[i];if(n(r,a)>=0)break;t[e]=a,e=i}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let a=(e<<1)+1,o=a+1;if(o<this.length&&n(t[o],t[a])<0&&(a=o),n(t[a],i)>=0)break;t[e]=t[a],e=a}t[e]=i}};function UUe(e,t=1){let n=fl.fromPoints(e[0]),r=Math.min(n.width(),n.height()),i=r/2,a=new jUe([],HUe),{minX:o,minY:s,maxX:l,maxY:u}=n;if(r===0)return new we(o,s);for(let f=o;f<l;f+=r)for(let h=s;h<u;h+=r)a.push(new O0(f+i,h+i,i,e));let c=WUe(e),d=c;for(;a.length;){let f=a.pop();(f.d>d.d||!d.d)&&(d=f),!(f.max-d.d<=t)&&(i=f.h/2,a.push(new O0(f.p.x-i,f.p.y-i,i,e)),a.push(new O0(f.p.x+i,f.p.y-i,i,e)),a.push(new O0(f.p.x-i,f.p.y+i,i,e)),a.push(new O0(f.p.x+i,f.p.y+i,i,e)))}return c.d>0&&d.d-c.d<=t?c.p:d.p}function HUe(e,t){return t.max-e.max}var O0=class{constructor(e,t,n,r){this.p=new we(e,t),this.h=n,this.d=qUe(this.p,r),this.max=this.d+this.h*Math.SQRT2}};function qUe(e,t){let n=!1,r=1/0;for(let i of t)for(let a=0,o=i.length,s=o-1;a<o;s=a++){let l=i[a],u=i[s];l.y>e.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(n=!n),r=Math.min(r,see(e,l,u))}return(n?1:-1)*Math.sqrt(r)}function WUe(e){let t=0,n=0,r=0,i=e[0];for(let a=0,o=i.length,s=o-1;a<o;s=a++){let l=i[a],u=i[s],c=l.x*u.y-u.x*l.y;n+=(l.x+u.x)*c,r+=(l.y+u.y)*c,t+=c*3}return new O0(n/t,r/t,0,e)}let mk=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({});const BP=1/0;function ete(e,t){function n(i,a){let o=0,s=0;a<0&&(a=0);let l=a/Math.SQRT2;switch(i){case"top-right":case"top-left":s=l-7;break;case"bottom-right":case"bottom-left":s=-l+7;break;case"bottom":s=-a+7;break;case"top":s=a-7}switch(i){case"top-right":case"bottom-right":o=-l;break;case"top-left":case"bottom-left":o=l;break;case"left":o=a;break;case"right":o=-a}return[o,s]}function r(i,a,o){let s=0,l=0;switch(a=Math.abs(a),o=Math.abs(o),i){case"top-right":case"top-left":case"top":l=o-7;break;case"bottom-right":case"bottom-left":case"bottom":l=-o+7}switch(i){case"top-right":case"bottom-right":case"right":s=-a;break;case"top-left":case"bottom-left":case"left":s=a}return[s,l]}return t[1]===BP?n(e,t[0]):r(e,t[0],t[1])}function tte(e,t,n){let r=e.layout,i=r.get("text-variable-anchor-offset")?.evaluate(t,{},n);if(i){let o=i.values,s=[];for(let l=0;l<o.length;l+=2){let u=s[l]=o[l],c=o[l+1].map(d=>d*24);u.startsWith("top")?c[1]-=7:u.startsWith("bottom")&&(c[1]+=7),s[l+1]=c}return new lu(s)}let a=r.get("text-variable-anchor");if(a){let o;o=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?r.get("text-offset").evaluate(t,{},n).map(l=>l*24):[r.get("text-radial-offset").evaluate(t,{},n)*24,BP];let s=[];for(let l of a)s.push(l,ete(l,o));return new lu(s)}return null}function GUe(e){e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=He/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let n=e.bucket.layers[0],r=n.layout,i=n._unevaluatedLayout._values,a={layoutIconSize:i["icon-size"].possiblyEvaluate(new Zn(e.bucket.zoom+1),e.canonical),layoutTextSize:i["text-size"].possiblyEvaluate(new Zn(e.bucket.zoom+1),e.canonical),textMaxSize:i["text-size"].possiblyEvaluate(new Zn(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:c,maxZoom:d}=e.bucket.textSizeData;a.compositeTextSizes=[i["text-size"].possiblyEvaluate(new Zn(c),e.canonical),i["text-size"].possiblyEvaluate(new Zn(d),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:c,maxZoom:d}=e.bucket.iconSizeData;a.compositeIconSizes=[i["icon-size"].possiblyEvaluate(new Zn(c),e.canonical),i["icon-size"].possiblyEvaluate(new Zn(d),e.canonical)]}let o=r.get("text-line-height")*24,s=r.get("text-rotation-alignment")!=="viewport"&&r.get("symbol-placement")!=="point",l=r.get("text-keep-upright"),u=r.get("text-size");for(let c of e.bucket.features){let d=r.get("text-font").evaluate(c,{},e.canonical).join(","),f=u.evaluate(c,{},e.canonical),h=a.layoutTextSize.evaluate(c,{},e.canonical),p=a.layoutIconSize.evaluate(c,{},e.canonical),g={horizontal:{},vertical:void 0},v=c.text,b=[0,0];if(v){let C=v.toString(),T=r.get("text-letter-spacing").evaluate(c,{},e.canonical)*24,k=jje(C)?T:0,A=r.get("text-anchor").evaluate(c,{},e.canonical),P=tte(n,c,e.canonical);if(!P){let z=r.get("text-radial-offset").evaluate(c,{},e.canonical);b=z?ete(A,[z*24,BP]):r.get("text-offset").evaluate(c,{},e.canonical).map(j=>j*24)}let D=s?"center":r.get("text-justify").evaluate(c,{},e.canonical),$=r.get("symbol-placement")==="point"?r.get("text-max-width").evaluate(c,{},e.canonical)*24:1/0,O=()=>{e.bucket.allowVerticalPlacement&&fk(C)&&(g.vertical=q3(v,e.glyphMap,e.glyphPositions,e.imagePositions,d,$,o,A,"left",k,b,2,!0,h,f))};if(!s&&P){let z=new Set;if(D==="auto")for(let B=0;B<P.values.length;B+=2)z.add(gk(P.values[B]));else z.add(D);let j=!1;for(let B of z)if(!g.horizontal[B])if(j)g.horizontal[B]=g.horizontal[0];else{let R=q3(v,e.glyphMap,e.glyphPositions,e.imagePositions,d,$,o,"center",B,k,b,1,!1,h,f);R&&(g.horizontal[B]=R,j=R.positionedLines.length===1)}O()}else{D==="auto"&&(D=gk(A));let z=q3(v,e.glyphMap,e.glyphPositions,e.imagePositions,d,$,o,A,D,k,b,1,!1,h,f);z&&(g.horizontal[D]=z),O(),fk(C)&&s&&l&&(g.vertical=q3(v,e.glyphMap,e.glyphPositions,e.imagePositions,d,$,o,A,D,k,b,2,!1,h,f))}}let x,_=!1;if(c.icon?.name){let C=e.imageMap[c.icon.name];C&&(x=LUe(e.imagePositions[c.icon.name],r.get("icon-offset").evaluate(c,{},e.canonical),r.get("icon-anchor").evaluate(c,{},e.canonical)),_=!!C.sdf,e.bucket.sdfIcons===void 0?e.bucket.sdfIcons=_:e.bucket.sdfIcons!==_&&hn("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),C.pixelRatio===e.bucket.pixelRatio?r.get("icon-rotate").constantOr(1)!==0&&(e.bucket.iconsNeedLinear=!0):e.bucket.iconsNeedLinear=!0)}let w=nte(g.horizontal)||g.vertical;e.bucket.iconsInText||=w?w.iconsInText:!1,(w||x)&&ZUe(e.bucket,c,g,x,e.imageMap,a,h,p,b,_,e.canonical,e.subdivisionGranularity,e.hasPromoteId)}e.showCollisionBoxes&&e.bucket.generateCollisionDebugBuffers()}function gk(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ZUe(e,t,n,r,i,a,o,s,l,u,c,d,f){let h=a.textMaxSize.evaluate(t,{});h===void 0&&(h=o);let p=e.layers[0].layout,g=p.get("icon-offset").evaluate(t,{},c),v=nte(n.horizontal),b=o/24,x=e.tilePixelRatio*b,_=e.tilePixelRatio*h/24,w=e.tilePixelRatio*s,C=e.tilePixelRatio*p.get("symbol-spacing"),T=p.get("text-padding")*e.tilePixelRatio,k=sHe(p,t,c,e.tilePixelRatio),A=p.get("text-max-angle")/180*Math.PI,P=p.get("text-rotation-alignment")!=="viewport"&&p.get("symbol-placement")!=="point",D=p.get("icon-rotation-alignment").constantOr("viewport")==="map"&&p.get("symbol-placement")!=="point",$=p.get("symbol-placement"),O=C/2,z=p.get("icon-text-fit"),j;r&&z!=="none"&&(e.allowVerticalPlacement&&n.vertical&&(j=wN(r,n.vertical,z,p.get("icon-text-fit-padding"),g,b)),v&&(r=wN(r,v,z,p.get("icon-text-fit-padding"),g,b)));let B=c?d.line.getGranularityForZoomLevel(c.z):1,R=(J,K)=>{K.x<0||K.x>=8192||K.y<0||K.y>=8192||YUe(e,K,J,n,r,i,j,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,x,[T,T,T,T],P,l,w,k,D,g,t,a,u,c,o,f)};if($==="line")for(let J of Qee(t.geometry,0,0,He,He)){let K=yh(J,B),Z=NUe(K,C,A,n.vertical||v,r,24,_,e.overscaling,He);for(let ne of Z){let se=v;(!se||!XUe(e,se.text,O,ne))&&R(K,ne)}}else if($==="line-center"){for(let J of t.geometry)if(J.length>1){let K=yh(J,B),Z=zUe(K,A,n.vertical||v,r,24,_);Z&&R(K,Z)}}else if(t.type==="Polygon")for(let J of J6(t.geometry,0)){let K=UUe(J,16);R(yh(J[0],B,!0),new pm(K.x,K.y,0))}else if(t.type==="LineString")for(let J of t.geometry){let K=yh(J,B);R(K,new pm(K[0].x,K[0].y,0))}else if(t.type==="Point")for(let J of t.geometry)for(let K of J)R([K],new pm(K.x,K.y,0))}function KUe(e,t){let n=e.length,r=t?.values;if(r?.length>0)for(let i=0;i<r.length;i+=2){let a=mk[r[i]],o=r[i+1];e.emplaceBack(a,o[0],o[1])}return[n,e.length]}function EN(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g){let v=VUe(t,n,s,i,a,o,r,e.allowVerticalPlacement),b=e.textSizeData,x=null;b.kind==="source"?(x=[128*i.layout.get("text-size").evaluate(o,{})],x[0]>32640&&hn(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):b.kind==="composite"&&(x=[128*p.compositeTextSizes[0].evaluate(o,{},g),128*p.compositeTextSizes[1].evaluate(o,{},g)],(x[0]>32640||x[1]>32640)&&hn(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,v,x,s,a,o,c,t,u.lineStartIndex,u.lineLength,h,g,l);for(let _ of d)f[_]=e.text.placedSymbolArray.length-1;return v.length*4}function nte(e){for(let t in e)return e[t];return null}function YUe(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x,_,w,C,T,k,A,P){let D=e.addToLineVertexArray(t,n),$=s.layout.get("symbol-height-offset").evaluate(w,{},k);$>e.maxHeightOffset&&(e.maxHeightOffset=$);let O,z,j,B,R=0,J=0,K=0,Z=0,ne=-1,se=-1,ce={},Re=(0,v5.default)("");if(e.allowVerticalPlacement&&r.vertical){let ee=s.layout.get("text-rotate").evaluate(w,{},k)+90,oe=r.vertical;j=new K3(l,t,u,c,d,oe,f,h,p,ee),o&&(B=new K3(l,t,u,c,d,o,v,b,p,ee))}if(i){let ee=s.layout.get("icon-rotate").evaluate(w,{}),oe=s.layout.get("icon-text-fit")!=="none",_e=TN(i,ee,T,oe),ge=o?TN(o,ee,T,oe):void 0;z=new K3(l,t,u,c,d,i,v,b,!1,ee),R=_e.length*4;let Oe=e.iconSizeData,Se=null;Oe.kind==="source"?(Se=[128*s.layout.get("icon-size").evaluate(w,{})],Se[0]>32640&&hn(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):Oe.kind==="composite"&&(Se=[128*C.compositeIconSizes[0].evaluate(w,{},k),128*C.compositeIconSizes[1].evaluate(w,{},k)],(Se[0]>32640||Se[1]>32640)&&hn(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,_e,Se,_,x,w,0,t,D.lineStartIndex,D.lineLength,-1,k,$),ne=e.icon.placedSymbolArray.length-1,ge&&(J=ge.length*4,e.addSymbols(e.icon,ge,Se,_,x,w,2,t,D.lineStartIndex,D.lineLength,-1,k,$),se=e.icon.placedSymbolArray.length-1)}let Ue=Object.keys(r.horizontal);for(let ee of Ue){let oe=r.horizontal[ee];O||=(Re=(0,v5.default)(oe.text),new K3(l,t,u,c,d,oe,f,h,p,s.layout.get("text-rotate").evaluate(w,{},k)));let _e=oe.positionedLines.length===1;if(K+=EN(e,t,oe,a,s,p,w,g,$,D,r.vertical?1:3,_e?Ue:[ee],ce,ne,C,k),_e)break}r.vertical&&(Z+=EN(e,t,r.vertical,a,s,p,w,g,$,D,2,["vertical"],ce,se,C,k));let $e=O?O.boxStartIndex:e.collisionBoxArray.length,ke=O?O.boxEndIndex:e.collisionBoxArray.length,Ve=j?j.boxStartIndex:e.collisionBoxArray.length,nt=j?j.boxEndIndex:e.collisionBoxArray.length,xe=z?z.boxStartIndex:e.collisionBoxArray.length,Pe=z?z.boxEndIndex:e.collisionBoxArray.length,je=B?B.boxStartIndex:e.collisionBoxArray.length,Fe=B?B.boxEndIndex:e.collisionBoxArray.length,re=-1,le=(ee,oe)=>ee?.circleDiameter?Math.max(ee.circleDiameter,oe):oe;re=le(O,re),re=le(j,re),re=le(z,re),re=le(B,re);let ye=+(re>-1);ye&&(re*=A/24),e.glyphOffsetArray.length>=e.maxGlyphs&&hn("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),w.sortKey!==void 0&&e.addToSortKey
vendor: 5,216 bytes, line 23
23Ranges(e.symbolInstances.length,w.sortKey);let Me=tte(s,w,k),[ve,X]=KUe(e.textAnchorOffsets,Me);P&&(Re=JUe(Re,w)),e.symbolInstances.emplaceBack(t.x,t.y,ce.right>=0?ce.right:-1,ce.center>=0?ce.center:-1,ce.left>=0?ce.left:-1,ce.vertical||-1,ne,se,Re,$e,ke,Ve,nt,xe,Pe,je,Fe,u,K,Z,R,J,ye,0,f,re,ve,X,$)}function XUe(e,t,n,r){let i=e.compareText;if(!(t in i))i[t]=[];else{let a=i[t];for(let o=a.length-1;o>=0;o--)if(r.dist(a[o])<n)return!0}return i[t].push(r),!1}function JUe(e,t){return t.id==null||t.properties?.cluster?e:(0,v5.default)(String(t.id),e)}function k5(e,t,n){let r="never",i=e.get(t);return i?r=i:e.get(n)&&(r="always"),r}const QUe=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Y3(e,t,n,r,i,a,o,s,l,u,c,d,f,h){let p=s?Math.min(SN,Math.round(s[0])):0,g=s?Math.min(SN,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(r*32),Math.round(i*32),a,o,(p<<1)+ +!!l,g,u*16,c*16,d*256,f*256,h)}function E5(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function eHe(e){for(let t of e.sections)if(Bee(t.text))return!0;return!1}var yk=class{constructor(e){this.layoutVertexArray=new qze,this.indexArray=new mu,this.programConfigurations=e,this.segments=new $r,this.dynamicLayoutVertexArray=new Wze,this.opacityVertexArray=new Gze,this.hasVisibleVertices=!1,this.placedSymbolArray=new qQ}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,dje.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,fje.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,QUe,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};pt("SymbolBuffers",yk);var vk=class{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new $r,this.collisionVertexArray=new Kze}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,hje.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};pt("CollisionBuffers",vk);var M5=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=CN(this.zoom,t["text-size"]),this.iconSizeData=CN(this.zoom,t["icon-size"]);let n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.canOverlap=k5(n,"text-overlap","text-allow-overlap")!=="never"||k5(n,"icon-overlap","icon-allow-overlap")!=="never"||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey=i!=="viewport-y"&&!r.isConstant();let a=i==="viewport-y"||i==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,n.get("symbol-placement")==="point"&&(this.writingModes=n.get("text-writing-mode").map(o=>jee[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new yk(new ep(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new yk(new ep(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new ZQ,this.lineVertexArray=new KQ,this.symbolInstances=new GQ,this.textAnchorOffsets=new XQ}calculateGlyphDependencies(e,t,n,r,i){let a=(r||this.allowVerticalPlacement)&&i,o=$P.fromFeature(e,n),s=o.graphemes();for(let l=0;l<s.length;l++){let u=o.getSection(l);if("imageName"in u)continue;let c=(t[u.fontStack]||={default:{}}).default,d=s[l];C5(d)&&(c[d]=!0);for(let f of d){if(c[f]=!0,!a)continue;let h=Z0[f];h&&(c[h]=!0)}}}populate(e,t,n){let r=this.layers[0],i=r.layout,a=i.get("text-font"),o=i.get("text-field"),s=i.get("icon-image"),l=(o.value.kind!=="constant"||o.value.value instanceof Pc&&!o.value.value.isEmpty()||o.value.value.toString().length>0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let d=t.iconDependencies,f=t.glyphDependencies,h=t.availableImages,p=new Zn(this.zoom);for(let{feature:g,id:v,index:b,sourceLayerIndex:x}of e){let _=r._featureFilter.needGeometry,w=kp(g,_);
vendor: 42,285 bytes, line 23
23if(!r._featureFilter.filter(p,w,n))continue;_||(w.geometry=Tp(g));let C;if(l){let P=r.getValueAndResolveTokens("text-field",w,n,h),D=Pc.factory(P);this.hasRTLText||=eHe(D),C=Fje(D,r,w)}let T;if(u){let P=r.getValueAndResolveTokens("icon-image",w,n,h);T=P instanceof uu?P:uu.fromString(P)}if(!C&&!T)continue;let k=this.sortFeaturesByKey?c.evaluate(w,{},n):void 0,A={id:v,text:C,icon:T,index:b,sourceLayerIndex:x,geometry:w.geometry,properties:g.properties,type:Bv.types[g.type],sortKey:k};if(this.features.push(A),T&&(d[T.name]=!0),C){let P=a.evaluate(w,{},n).join(","),D=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes?.includes(2);let $=fk(C.toString());this.calculateGlyphDependencies(C,f,P,D,$);for(let O of C.sections)O.image&&(d[O.image.name]=!0)}}i.get("symbol-placement")==="line"&&(this.features=Nje(this.features)),this.sortFeaturesByKey&&this.features.sort((g,v)=>g.sortKey-v.sortKey)}update(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:n}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:n}))}addFeatures({options:e,canonical:t,glyphMap:n,glyphPositions:r,iconMap:i,iconPositions:a,showCollisionBoxes:o}){GUe({bucket:this,glyphMap:n,glyphPositions:r,imageMap:i,imagePositions:a,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let n=this.lineVertexArray.length;if(e.segment!==void 0){let r=e.dist(t[e.segment+1]),i=e.dist(t[e.segment]),a={};for(let o=e.segment+1;o<t.length;o++)a[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:r},o<t.length-1&&(r+=t[o+1].dist(t[o]));for(let o=e.segment||0;o>=0;o--)a[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:i},o>0&&(i+=t[o-1].dist(t[o]));for(let o=0;o<t.length;o++){let s=a[o];this.lineVertexArray.emplaceBack(s.x,s.y,s.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(e,t,n,r,i,a,o,s,l,u,c,d,f){let h=e.indexArray,p=e.layoutVertexArray,g=e.segments.prepareSegment(4*t.length,p,h,this.canOverlap?a.sortKey:void 0),v=this.glyphOffsetArray.length,b=g.vertexLength,x=this.allowVerticalPlacement&&o===2?Math.PI/2:0,_=a.text&&a.text.sections;for(let w=0;w<t.length;w++){let{tl:C,tr:T,bl:k,br:A,tex:P,pixelOffsetTL:D,pixelOffsetBR:$,minFontScaleX:O,minFontScaleY:z,glyphOffset:j,isSDF:B,sectionIndex:R}=t[w],J=g.vertexLength,K=j[1];Y3(p,s.x,s.y,C.x,K+C.y,P.x,P.y,n,B,D.x,D.y,O,z,f),Y3(p,s.x,s.y,T.x,K+T.y,P.x+P.w,P.y,n,B,$.x,D.y,O,z,f),Y3(p,s.x,s.y,k.x,K+k.y,P.x,P.y+P.h,n,B,D.x,$.y,O,z,f),Y3(p,s.x,s.y,A.x,K+A.y,P.x+P.w,P.y+P.h,n,B,$.x,$.y,O,z,f),E5(e.dynamicLayoutVertexArray,s,x),h.emplaceBack(J,J+2,J+1),h.emplaceBack(J+1,J+2,J+3),g.vertexLength+=4,g.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(j[0]),(w===t.length-1||R!==t[w+1].sectionIndex)&&e.programConfigurations.populatePaintArrays(p.length,a,a.index,{imagePositions:{},canonical:d,formattedSection:_?.[R]})}e.placedSymbolArray.emplaceBack(s.x,s.y,v,this.glyphOffsetArray.length-v,b,l,u,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],o,0,!1,0,c,f)}_addCollisionDebugVertex(e,t,n,r,i,a){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,i,Math.round(a.x),Math.round(a.y))}addCollisionDebugVertices(e,t,n,r,i,a,o){let s=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),l=s.vertexLength,u=i.layoutVertexArray,c=i.collisionVertexArray,d=o.anchorX,f=o.anchorY;this._addCollisionDebugVertex(u,c,a,d,f,new we(e,t)),this._addCollisionDebugVertex(u,c,a,d,f,new we(n,t)),this._addCollisionDebugVertex(u,c,a,d,f,new we(n,r)),this._addCollisionDebugVertex(u,c,a,d,f,new we(e,r)),s.vertexLength+=4;let h=i.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),s.primitiveLength+=4}addDebugCollisionBoxes(e,t,n,r){for(let i=e;i<t;i++){let a=this.collisionBoxArray.get(i),o=a.x1,s=a.y1,l=a.x2,u=a.y2;this.addCollisionDebugVertices(o,s,l,u,r?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,n)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new vk(Uz,oN.members,KT),this.iconCollisionBox=new vk(Uz,oN.members,KT);for(let e=0;e<this.symbolInstances.length;e++){let t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}}_deserializeCollisionBoxesForSymbol(e,t,n,r,i,a,o,s,l){let u={};for(let c=t;c<n;c++){let d=e.get(c);u.textBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.textFeatureIndex=d.featureIndex;break}for(let c=r;c<i;c++){let d=e.get(c);u.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.verticalTextFeatureIndex=d.featureIndex;break}for(let c=a;c<o;c++){let d=e.get(c);u.iconBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.iconFeatureIndex=d.featureIndex;break}for(let c=s;c<l;c++){let d=e.get(c);u.verticalIconBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.verticalIconFeatureIndex=d.featureIndex;break}return u}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){let n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+n.numGlyphs*4;for(let i=n.vertexStartIndex;i<r;i+=4)e.indexArray.emplaceBack(i,i+2,i+1),e.indexArray.emplaceBack(i+1,i+2,i+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;let t=Math.sin(e),n=Math.cos(e),r=[],i=[],a=[];for(let o=0;o<this.symbolInstances.length;++o){a.push(o);let s=this.symbolInstances.get(o);r.push(Math.round(t*s.anchorX+n*s.anchorY)|0),i.push(s.featureIndex)}return a.sort((o,s)=>r[o]-r[s]||i[s]-i[o]),a}addToSortKeyRanges(e,t){let n=this.sortKeyRanges[this.sortKeyRanges.length-1];n?.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let n=this.symbolInstances.get(t);this.featureSortOrder.push(n.featureIndex);let r=[n.rightJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.leftJustifiedTextSymbolIndex];for(let i=0;i<r.length;i++){let a=r[i];a>=0&&r.indexOf(a)===i&&this.addIndicesForPlacedSymbol(this.text,a)}n.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,n.verticalPlacedTextSymbolIndex),n.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,n.placedIconSymbolIndex),n.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,n.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};pt("SymbolBucket",M5,{omit:["layers","collisionBoxArray","features","compareText"]});function tHe(e,t){return t.replace(/{([^{}]+)}/g,(n,r)=>e&&r in e?String(e[r]):"")}let nHe;const rHe=()=>nHe||=new Wi({"symbol-placement":new dt(Ie.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new dt(Ie.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new dt(Ie.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new Dt(Ie.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new dt(Ie.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new dt(Ie.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new dt(Ie.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new dt(Ie.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new dt(Ie.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new Dt(Ie.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new Dt(Ie.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new dt(Ie.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new dt(Ie.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new Dt(Ie.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new Dt(Ie.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new Dt(Ie.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new dt(Ie.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new Dt(Ie.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new Dt(Ie.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new dt(Ie.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new dt(Ie.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new dt(Ie.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new Dt(Ie.layout_symbol["text-field"],"text-field"),"text-font":new Dt(Ie.layout_symbol["text-font"],"text-font"),"text-size":new Dt(Ie.layout_symbol["text-size"],"text-size"),"text-max-width":new Dt(Ie.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new dt(Ie.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new Dt(Ie.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new Dt(Ie.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new Dt(Ie.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new dt(Ie.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new Dt(Ie.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new Dt(Ie.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new dt(Ie.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new dt(Ie.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new Dt(Ie.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new dt(Ie.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new dt(Ie.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new Dt(Ie.layout_symbol["text-transform"],"text-transform"),"text-offset":new Dt(Ie.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new dt(Ie.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new dt(Ie.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new dt(Ie.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new dt(Ie.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new Dt(Ie.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new dt(Ie.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")});let iHe;const aHe=()=>iHe||=new Wi({"icon-opacity":new Dt(Ie.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new Dt(Ie.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new Dt(Ie.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new Dt(Ie.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new Dt(Ie.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new dt(Ie.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new dt(Ie.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new Dt(Ie.paint_symbol["text-opacity"],"text-opacity"),"text-color":new Dt(Ie.paint_symbol["text-color"],"text-color",{runtimeType:dl,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Dt(Ie.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new Dt(Ie.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new Dt(Ie.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new dt(Ie.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new dt(Ie.paint_symbol["text-translate-anchor"],"text-translate-anchor")});var S9={get paint(){return aHe()},get layout(){return rHe()}},rte=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:Av,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t?.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};pt("FormatSectionOverride",rte,{omit:["defaultValue"]});const ite=e=>e.type==="symbol";var oHe=class _k extends Tl{constructor(t,n){super(t,S9,n)}recalculate(t,n){super.recalculate(t,n);let r=this.layout.get("icon-rotation-alignment");if((r.value.kind!=="constant"||r.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new Ps(r.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},r.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let i=this.layout.get("text-writing-mode");if(i){let a=[];for(let o of i)a.includes(o)||a.push(o);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,n,r,i){let a=this.layout.get(t).evaluate(n,{},r,i),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!rw(o.value)&&a?tHe(n.properties,a):a}createBucket(t){return new M5(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of S9.paint.overridableProperties){if(!_k.hasPaintOverride(this.layout,t))continue;let n=this.paint.get(t),r=new yP(new rte(n),`layers[${this.id}].paint.${n.property.name}`,n.property.specification),i=null;i=n.value.kind==="constant"||n.value.kind==="source"?new A2("source",r):new f5("composite",r,n.value.zoomStops),this.paint._values[t]=new Ps(n.property,i,n.parameters)}}_handleOverridablePaintPropertyUpdate(t,n,r){return!this.layout||n.isDataDriven()||r.isDataDriven()?!1:_k.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,n){let r=t.get("text-field"),i=S9.paint.properties[n],a=!1,o=s=>{for(let l of s)if(i.overrides?.hasOverride(l)){a=!0;return}};if(r.value.kind==="constant"&&r.value.value instanceof Pc)o(r.value.value.sections);else if(r.value.kind==="source"||r.value.kind==="composite"){let s=u=>{if(!a)if(u instanceof Vm&&ni(u.value)===Pv){let c=u.value;o(c.sections)}else u instanceof DJ?o(u.sections):u.eachChild(s)},l=r.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};function sHe(e,t,n,r=1){let i=e.get("icon-padding").evaluate(t,{},n)?.values;return[i[0]*r,i[1]*r,i[2]*r,i[3]*r]}let lHe;const uHe=()=>lHe||=new Wi({"background-color":new dt(Ie.paint_background["background-color"],"background-color"),"background-pattern":new VQ(Ie.paint_background["background-pattern"],"background-pattern"),"background-opacity":new dt(Ie.paint_background["background-opacity"],"background-opacity")});var cHe={get paint(){return uHe()}};const dHe=e=>e.type==="background";var fHe=class extends Tl{constructor(e,t){super(e,cHe,t)}};function hHe(e){let t=[],n=e.id;return n===void 0&&t.push(new Xe(`layers.${n}`,null,'missing required property "id"')),e.render===void 0&&t.push(new Xe(`layers.${n}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new Xe(`layers.${n}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}const pHe=e=>e.type==="custom";var mHe=class extends Tl{constructor(e,t){super(e,{},t),this.onAdd=n=>{this.implementation.onAdd&&this.implementation.onAdd(n,n.painter.context.gl)},this.onRemove=n=>{this.implementation.onRemove&&this.implementation.onRemove(n,n.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function C9(e,t){if(e.type==="custom")return new mHe(e,t);switch(e.type){case"background":return new fHe(e,t);case"circle":return new kNe(e,t);case"color-relief":return new jNe(e,t);case"fill":return new SVe(e,t);case"fill-extrusion":return new GVe(e,t);case"heatmap":return new DNe(e,t);case"hillshade":return new ONe(e,t);case"line":return new cje(e,t);case"raster":return new Rze(e,t);case"symbol":return new oHe(e,t)}}var gHe=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){this._triggered||(this._triggered=!0,this._channel?.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}};const yHe={once:!0};var vHe=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new gHe(()=>this.process()),this.subscription=s5(this.target,"message",n=>this.receive(n),!1),this.globalScope=Fm(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((n,r)=>{let i=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=t?s5(t.signal,"abort",()=>{a?.unsubscribe(),delete this.resolveRejects[i];let l={id:i,type:"<cancel>",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),r(new Mv(t.signal.reason))},yHe):null;this.resolveRejects[i]={resolve:l=>{a?.unsubscribe(),n(l)},reject:l=>{a?.unsubscribe(),r(l)}};let o=[],s={...e,id:i,sourceMapId:this.mapId,origin:location.origin,data:Ly(e.data,o)};this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,n=t.id,r=["file://","resource://android","null"],i=[t.origin,location.origin],a=t.origin===location.origin,o=i.some(s=>r.includes(s));if((a||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type==="<cancel>"){delete this.tasks[n];let s=this.abortControllers[n];delete this.abortControllers[n],s&&s.abort();return}if(Fm(self)||t.mustQueue){this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger();return}this.processTask(n,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}async processTask(e,t){if(t.type==="<response>"){let i=this.resolveRejects[e];if(delete this.resolveRejects[e],!i)return;t.error?i.reject(fa(Ry(t.error))):i.resolve(Ry(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let n=Ry(t.data),r=new AbortController;this.abortControllers[e]=r;try{let i=await this.messageHandlers[t.type](t.sourceMapId,n,r);this.completeTask(e,null,i)}catch(i){this.completeTask(e,fa(i))}}completeTask(e,t,n){let r=[];delete this.abortControllers[e];let i={id:e,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:t?Ly(t):null,data:Ly(n,r)};this.target.postMessage(i,{transfer:r})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function _He(e,t,n){return!(e<0||e>25||n<0||n>=2**e||t<0||t>=2**e)}function MN(e,t){let{x:n,y:r}=Fn.fromLngLat(t);return!(e<0||e>25||r<0||r>=1||n<0||n>=1)}var mw=class{constructor(e,t,n){if(!_He(e,t,n))throw Error(`x=${t}, y=${n}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=n,this.key=mm(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,n){let r=bHe(this.x,this.y,this.z),i=xHe(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(n==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,i).replace(/{bbox-epsg-3857}/g,r)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new we((e.x*t-this.x)*He,(e.y*t-this.y)*He)}toString(){return`${this.z}/${this.x}/${this.y}`}},A5=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=mm(e,t.z,t.z,t.x,t.y)}},Qi=class vs{constructor(t,n,r,i,a){if(this.terrainRttPosMatrix32f=null,t<r)throw Error(`overscaledZ should be >= z; overscaledZ = ${t}; z = ${r}`);this.overscaledZ=t,this.wrap=n,this.canonical=new mw(r,+i,+a),this.key=mm(n,t,r,i,a)}clone(){return new vs(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let n=this.canonical.z-t;return t>this.canonical.z?new vs(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new vs(t,this.wrap,t,this.canonical.x>>n,this.canonical.y>>n)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,n){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?mm(this.wrap*+n,t,this.canonical.z,this.canonical.x,this.canonical.y):mm(this.wrap*+n,t,t,this.canonical.x>>r,this.canonical.y>>r)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let n=this.canonical.z-t.canonical.z;return n<0?!1:t.canonical.x===this.canonical.x>>n&&t.canonical.y===this.canonical.y>>n}children(t){if(this.overscaledZ>=t)return[new vs(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let n=this.canonical.z+1,r=this.canonical.x*2,i=this.canonical.y*2;return[new vs(n,this.wrap,n,r,i),new vs(n,this.wrap,n,r+1,i),new vs(n,this.wrap,n,r,i+1),new vs(n,this.wrap,n,r+1,i+1)]}isLessThan(t){return this.wrap<t.wrap?!0:this.wrap>t.wrap?!1:this.overscaledZ<t.overscaledZ?!0:this.overscaledZ>t.overscaledZ?!1:this.canonical.x<t.canonical.x?!0:this.canonical.x>t.canonical.x?!1:this.canonical.y<t.canonical.y}wrapped(){return new vs(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(t){return new vs(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return 2**(this.overscaledZ-this.canonical.z)}toUnwrapped(){return new A5(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(t){return this.canonical.getTilePoint(new Fn(t.x-this.wrap,t.y))}normalizeCoordinates(t,n,r=He){if(t>=0&&t<r&&n>=0&&n<r)return{tileID:this,x:t,y:n};let i=Math.floor(t/r),a=Math.floor(n/r),o=t-i*r,s=n-a*r,l=this.canonical.z,u=1<<l,c=this.canonical.y+a;if(c<0||c>=u)return null;let d=this.canonical.x+i,f=this.wrap;return d<0?(f-=Math.ceil(-d/u),d=(d%u+u)%u):d>=u&&(f+=Math.floor(d/u),d%=u),{tileID:new vs(this.overscaledZ,f,l,d,c),x:o,y:s}}};function mm(e,t,n,r,i){e*=2,e<0&&(e=e*-1-1);let a=1<<n;return(a*a*e+a*i+r).toString(36)+n.toString(36)+t.toString(36)}const T9=Math.PI*6378137;function bHe(e,t,n){t=2**n-t-1;let r=AN(e*256,t*256,n),i=AN((e+1)*256,(t+1)*256,n);return`${r[0]},${r[1]},${i[0]},${i[1]}`}function AN(e,t,n){let r=2*T9/256/2**n;return[e*r-T9,t*r-T9]}function xHe(e,t,n){let r="";for(let i=e;i>0;i--){let a=1<<i-1;r+=(t&a?1:0)+(n&a?2:0)}return r}function PN(e,t){let n=Math.abs(e.wrap*2)-+(e.wrap<0),r=Math.abs(t.wrap*2)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}pt("CanonicalTileID",mw),pt("OverscaledTileID",Qi,{omit:["terrainRttPosMatrix32f"]});const Zb="_geojsonTileLayer";var wHe=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){let n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}}encode(e){return this._stringToNumber[e]}decode(e){if(e>=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},ate=class{constructor(e,t,n,r,i){this.type="Feature",this._vectorTileFeature=e,this._x=n,this._y=r,this._z=t;for(let a in e.properties)typeof e.properties[a]=="string"&&e.properties[a].startsWith("__$json__:")&&(e.properties[a]=JSON.parse(e.properties[a].slice(10)));this.properties=e.properties,this.id=i}projectPoint(e,t,n,r){return[(e.x+t)*360/r-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+n)*2/r)*Math.PI))-90]}projectLine(e,t,n,r){return e.map(i=>this.projectPoint(i,t,n,r))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,n=e.extent*this._x,r=e.extent*this._y,i=e.loadGeometry();switch(e.type){case 1:{let a=[];for(let s of i)a.push(s[0]);let o=this.projectLine(a,n,r,t);this._geometry=a.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let a=i.map(o=>this.projectLine(o,n,r,t));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=See(i),o=[];for(let s of a)o.push(s.map(l=>this.projectLine(l,n,r,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},Ep=class{constructor(e,t,n){this._name=e,this.dataBuffer=t,typeof n=="number"?this._size=n:(this.nullabilityBuffer=n,this._size=n.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){return this.nullabilityBuffer?.get(e)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},gw=class extends Ep{},FP=class extends gw{getValueFromBuffer(e){return this.dataBuffer[e]}},zP=class extends gw{getValueFromBuffer(e){return this.dataBuffer[e]}},ote=class extends Ep{constructor(e,t,n,r){super(e,t,r),this.delta=n}},NP=class extends ote{constructor(e,t,n,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),n,r)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},VP=class extends Ep{constructor(e,t,n,r){super(e,r?Int32Array.of(t):Uint32Array.of(t),n)}getValueFromBuffer(e){return this.dataBuffer[0]}},SHe=class{constructor(e,t,n,r,i=4096){if(this._name=e,this._geometryVector=t,this._idVector=n,this._propertyVectors=r,this._extent=i,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors??[]}getPropertyVector(e){return this.propertyVectorsMap||=new Map(this.propertyVectors.map(t=>[t.name,t])),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let n=0;n<this.numFeatures;n++){let r;if(this.idVector){let o=this.idVector.getValue(n);o!==null&&(r=this.containsMaxSafeIntegerValues(this.idVector)?Number(o):o)}let i={coordinates:t[n],type:this.geometryVector.geometryType(n)},a={};for(let o of this.propertyVectors){if(!o)continue;let s=o.name,l=o.getValue(n);l!==null&&(a[s]=l)}e.push({id:r,geometry:i,properties:a})}return e}containsMaxSafeIntegerValues(e){return e instanceof FP||e instanceof VP||e instanceof NP||e instanceof zP}};const uy={FEATURE:0},In={BOOLEAN:0,INT_8:1,UINT_8:2,INT_32:3,UINT_32:4,INT_64:5,UINT_64:6,FLOAT:7,DOUBLE:8,STRING:9},zd={GEOMETRY:0,STRUCT:1,MAP:2},ste={ID:0};var lte=class{constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}increment(){return this.value++}add(e){this.value+=e}},Qt;(function(e){e.NONE="NONE",e.DELTA="DELTA",e.COMPONENTWISE_DELTA="COMPONENTWISE_DELTA",e.RLE="RLE",e.MORTON="MORTON"})(Qt||={});var Rs;(function(e){e.NONE="NONE",e.FAST_PFOR="FAST_PFOR",e.VARINT="VARINT"})(Rs||={});const jP=new Uint32Array(33);jP[0]=0;for(let e=1;e<=32;e++)jP[e]=e===32?4294967295:4294967295>>>32-e;const bk=jP,ute=65536;function UP(e,t){return e-e%t}function CHe(e){return UP(e+31,32)}function THe(e){if(!Number.isFinite(e)||e<=0)return ute;let t=UP(Math.floor(e),256);return t===0?256:t}function kHe(e){let t=e>>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function EHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0;n[i++]=a>>>0&3,n[i++]=a>>>2&3,n[i++]=a>>>4&3,n[i++]=a>>>6&3,n[i++]=a>>>8&3,n[i++]=a>>>10&3,n[i++]=a>>>12&3,n[i++]=a>>>14&3,n[i++]=a>>>16&3,n[i++]=a>>>18&3,n[i++]=a>>>20&3,n[i++]=a>>>22&3,n[i++]=a>>>24&3,n[i++]=a>>>26&3,n[i++]=a>>>28&3,n[i++]=a>>>30&3,n[i++]=o>>>0&3,n[i++]=o>>>2&3,n[i++]=o>>>4&3,n[i++]=o>>>6&3,n[i++]=o>>>8&3,n[i++]=o>>>10&3,n[i++]=o>>>12&3,n[i++]=o>>>14&3,n[i++]=o>>>16&3,n[i++]=o>>>18&3,n[i++]=o>>>20&3,n[i++]=o>>>22&3,n[i++]=o>>>24&3,n[i++]=o>>>26&3,n[i++]=o>>>28&3,n[i]=o>>>30&3}function MHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;n[i++]=a>>>0&7,n[i++]=a>>>3&7,n[i++]=a>>>6&7,n[i++]=a>>>9&7,n[i++]=a>>>12&7,n[i++]=a>>>15&7,n[i++]=a>>>18&7,n[i++]=a>>>21&7,n[i++]=a>>>24&7,n[i++]=a>>>27&7,n[i++]=(a>>>30|(o&1)<<2)&7,n[i++]=o>>>1&7,n[i++]=o>>>4&7,n[i++]=o>>>7&7,n[i++]=o>>>10&7,n[i++]=o>>>13&7,n[i++]=o>>>16&7,n[i++]=o>>>19&7,n[i++]=o>>>22&7,n[i++]=o>>>25&7,n[i++]=o>>>28&7,n[i++]=(o>>>31|(s&3)<<1)&7,n[i++]=s>>>2&7,n[i++]=s>>>5&7,n[i++]=s>>>8&7,n[i++]=s>>>11&7,n[i++]=s>>>14&7,n[i++]=s>>>17&7,n[i++]=s>>>20&7,n[i++]=s>>>23&7,n[i++]=s>>>26&7,n[i]=s>>>29&7}function AHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;n[i++]=a>>>0&15,n[i++]=a>>>4&15,n[i++]=a>>>8&15,n[i++]=a>>>12&15,n[i++]=a>>>16&15,n[i++]=a>>>20&15,n[i++]=a>>>24&15,n[i++]=a>>>28&15,n[i++]=o>>>0&15,n[i++]=o>>>4&15,n[i++]=o>>>8&15,n[i++]=o>>>12&15,n[i++]=o>>>16&15,n[i++]=o>>>20&15,n[i++]=o>>>24&15,n[i++]=o>>>28&15,n[i++]=s>>>0&15,n[i++]=s>>>4&15,n[i++]=s>>>8&15,n[i++]=s>>>12&15,n[i++]=s>>>16&15,n[i++]=s>>>20&15,n[i++]=s>>>24&15,n[i++]=s>>>28&15,n[i++]=l>>>0&15,n[i++]=l>>>4&15,n[i++]=l>>>8&15,n[i++]=l>>>12&15,n[i++]=l>>>16&15,n[i++]=l>>>20&15,n[i++]=l>>>24&15,n[i]=l>>>28&15}function PHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;n[i++]=a>>>0&31,n[i++]=a>>>5&31,n[i++]=a>>>10&31,n[i++]=a>>>15&31,n[i++]=a>>>20&31,n[i++]=a>>>25&31,n[i++]=(a>>>30|(o&7)<<2)&31,n[i++]=o>>>3&31,n[i++]=o>>>8&31,n[i++]=o>>>13&31,n[i++]=o>>>18&31,n[i++]=o>>>23&31,n[i++]=(o>>>28|(s&1)<<4)&31,n[i++]=s>>>1&31,n[i++]=s>>>6&31,n[i++]=s>>>11&31,n[i++]=s>>>16&31,n[i++]=s>>>21&31,n[i++]=s>>>26&31,n[i++]=(s>>>31|(l&15)<<1)&31,n[i++]=l>>>4&31,n[i++]=l>>>9&31,n[i++]=l>>>14&31,n[i++]=l>>>19&31,n[i++]=l>>>24&31,n[i++]=(l>>>29|(u&3)<<3)&31,n[i++]=u>>>2&31,n[i++]=u>>>7&31,n[i++]=u>>>12&31,n[i++]=u>>>17&31,n[i++]=u>>>22&31,n[i]=u>>>27&31}function DHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0;n[i++]=a>>>0&63,n[i++]=a>>>6&63,n[i++]=a>>>12&63,n[i++]=a>>>18&63,n[i++]=a>>>24&63,n[i++]=(a>>>30|(o&15)<<2)&63,n[i++]=o>>>4&63,n[i++]=o>>>10&63,n[i++]=o>>>16&63,n[i++]=o>>>22&63,n[i++]=(o>>>28|(s&3)<<4)&63,n[i++]=s>>>2&63,n[i++]=s>>>8&63,n[i++]=s>>>14&63,n[i++]=s>>>20&63,n[i++]=s>>>26&63,n[i++]=l>>>0&63,n[i++]=l>>>6&63,n[i++]=l>>>12&63,n[i++]=l>>>18&63,n[i++]=l>>>24&63,n[i++]=(l>>>30|(u&15)<<2)&63,n[i++]=u>>>4&63,n[i++]=u>>>10&63,n[i++]=u>>>16&63,n[i++]=u>>>22&63,n[i++]=(u>>>28|(c&3)<<4)&63,n[i++]=c>>>2&63,n[i++]=c>>>8&63,n[i++]=c>>>14&63,n[i++]=c>>>20&63,n[i]=c>>>26&63}function IHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0;n[i++]=a>>>0&127,n[i++]=a>>>7&127,n[i++]=a>>>14&127,n[i++]=a>>>21&127,n[i++]=(a>>>28|(o&7)<<4)&127,n[i++]=o>>>3&127,n[i++]=o>>>10&127,n[i++]=o>>>17&127,n[i++]=o>>>24&127,n[i++]=(o>>>31|(s&63)<<1)&127,n[i++]=s>>>6&127,n[i++]=s>>>13&127,n[i++]=s>>>20&127,n[i++]=(s>>>27|(l&3)<<5)&127,n[i++]=l>>>2&127,n[i++]=l>>>9&127,n[i++]=l>>>16&127,n[i++]=l>>>23&127,n[i++]=(l>>>30|(u&31)<<2)&127,n[i++]=u>>>5&127,n[i++]=u>>>12&127,n[i++]=u>>>19&127,n[i++]=(u>>>26|(c&1)<<6)&127,n[i++]=c>>>1&127,n[i++]=c>>>8&127,n[i++]=c>>>15&127,n[i++]=c>>>22&127,n[i++]=(c>>>29|(d&15)<<3)&127,n[i++]=d>>>4&127,n[i++]=d>>>11&127,n[i++]=d>>>18&127,n[i]=d>>>25&127}function $He(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0,f=e[t+7]>>>0;n[i++]=a>>>0&255,n[i++]=a>>>8&255,n[i++]=a>>>16&255,n[i++]=a>>>24&255,n[i++]=o>>>0&255,n[i++]=o>>>8&255,n[i++]=o>>>16&255,n[i++]=o>>>24&255,n[i++]=s>>>0&255,n[i++]=s>>>8&255,n[i++]=s>>>16&255,n[i++]=s>>>24&255,n[i++]=l>>>0&255,n[i++]=l>>>8&255,n[i++]=l>>>16&255,n[i++]=l>>>24&255,n[i++]=u>>>0&255,n[i++]=u>>>8&255,n[i++]=u>>>16&255,n[i++]=u>>>24&255,n[i++]=c>>>0&255,n[i++]=c>>>8&255,n[i++]=c>>>16&255,n[i++]=c>>>24&255,n[i++]=d>>>0&255,n[i++]=d>>>8&255,n[i++]=d>>>16&255,n[i++]=d>>>24&255,n[i++]=f>>>0&255,n[i++]=f>>>8&255,n[i++]=f>>>16&255,n[i]=f>>>24&255}function LHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0,f=e[t+7]>>>0,h=e[t+8]>>>0;n[i++]=a>>>0&511,n[i++]=a>>>9&511,n[i++]=a>>>18&511,n[i++]=(a>>>27|(o&15)<<5)&511,n[i++]=o>>>4&511,n[i++]=o>>>13&511,n[i++]=o>>>22&511,n[i++]=(o>>>31|(s&255)<<1)&511,n[i++]=s>>>8&511,n[i++]=s>>>17&511,n[i++]=(s>>>26|(l&7)<<6)&511,n[i++]=l>>>3&511,n[i++]=l>>>12&511,n[i++]=l>>>21&511,n[i++]=(l>>>30|(u&127)<<2)&511,n[i++]=u>>>7&511,n[i++]=u>>>16&511,n[i++]=(u>>>25|(c&3)<<7)&511,n[i++]=c>>>2&511,n[i++]=c>>>11&511,n[i++]=c>>>20&511,n[i++]=(c>>>29|(d&63)<<3)&511,n[i++]=d>>>6&511,n[i++]=d>>>15&511,n[i++]=(d>>>24|(f&1)<<8)&511,n[i++]=f>>>1&511,n[i++]=f>>>10&511,n[i++]=f>>>19&511,n[i++]=(f>>>28|(h&31)<<4)&511,n[i++]=h>>>5&511,n[i++]=h>>>14&511,n[i]=h>>>23&511}function RHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0,f=e[t+7]>>>0,h=e[t+8]>>>0,p=e[t+9]>>>0;n[i++]=a>>>0&1023,n[i++]=a>>>10&1023,n[i++]=a>>>20&1023,n[i++]=(a>>>30|(o&255)<<2)&1023,n[i++]=o>>>8&1023,n[i++]=o>>>18&1023,n[i++]=(o>>>28|(s&63)<<4)&1023,n[i++]=s>>>6&1023,n[i++]=s>>>16&1023,n[i++]=(s>>>26|(l&15)<<6)&1023,n[i++]=l>>>4&1023,n[i++]=l>>>14&1023,n[i++]=(l>>>24|(u&3)<<8)&1023,n[i++]=u>>>2&1023,n[i++]=u>>>12&1023,n[i++]=u>>>22&1023,n[i++]=c>>>0&1023,n[i++]=c>>>10&1023,n[i++]=c>>>20&1023,n[i++]=(c>>>30|(d&255)<<2)&1023,n[i++]=d>>>8&1023,n[i++]=d>>>18&1023,n[i++]=(d>>>28|(f&63)<<4)&1023,n[i++]=f>>>6&1023,n[i++]=f>>>16&1023,n[i++]=(f>>>26|(h&15)<<6)&1023,n[i++]=h>>>4&1023,n[i++]=h>>>14&1023,n[i++]=(h>>>24|(p&3)<<8)&1023,n[i++]=p>>>2&1023,n[i++]=p>>>12&1023,n[i]=p>>>22&1023}function OHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0,f=e[t+7]>>>0,h=e[t+8]>>>0,p=e[t+9]>>>0,g=e[t+10]>>>0;n[i++]=a>>>0&2047,n[i++]=a>>>11&2047,n[i++]=(a>>>22|(o&1)<<10)&2047,n[i++]=o>>>1&2047,n[i++]=o>>>12&2047,n[i++]=(o>>>23|(s&3)<<9)&2047,n[i++]=s>>>2&2047,n[i++]=s>>>13&2047,n[i++]=(s>>>24|(l&7)<<8)&2047,n[i++]=l>>>3&2047,n[i++]=l>>>14&2047,n[i++]=(l>>>25|(u&15)<<7)&2047,n[i++]=u>>>4&2047,n[i++]=u>>>15&2047,n[i++]=(u>>>26|(c&31)<<6)&2047,n[i++]=c>>>5&2047,n[i++]=c>>>16&2047,n[i++]=(c>>>27|(d&63)<<5)&2047,n[i++]=d>>>6&2047,n[i++]=d>>>17&2047,n[i++]=(d>>>28|(f&127)<<4)&2047,n[i++]=f>>>7&2047,n[i++]=f>>>18&2047,n[i++]=(f>>>29|(h&255)<<3)&2047,n[i++]=h>>>8&2047,n[i++]=h>>>19&2047,n[i++]=(h>>>30|(p&511)<<2)&2047,n[i++]=p>>>9&2047,n[i++]=p>>>20&2047,n[i++]=(p>>>31|(g&1023)<<1)&2047,n[i++]=g>>>10&2047,n[i]=g>>>21&2047}function BHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0,f=e[t+7]>>>0,h=e[t+8]>>>0,p=e[t+9]>>>0,g=e[t+10]>>>0,v=e[t+11]>>>0;n[i++]=a>>>0&4095,n[i++]=a>>>12&4095,n[i++]=(a>>>24|(o&15)<<8)&4095,n[i++]=o>>>4&4095,n[i++]=o>>>16&4095,n[i++]=(o>>>28|(s&255)<<4)&4095,n[i++]=s>>>8&4095,n[i++]=s>>>20&4095,n[i++]=l>>>0&4095,n[i++]=l>>>12&4095,n[i++]=(l>>>24|(u&15)<<8)&4095,n[i++]=u>>>4&4095,n[i++]=u>>>16&4095,n[i++]=(u>>>28|(c&255)<<4)&4095,n[i++]=c>>>8&4095,n[i++]=c>>>20&4095,n[i++]=d>>>0&4095,n[i++]=d>>>12&4095,n[i++]=(d>>>24|(f&15)<<8)&4095,n[i++]=f>>>4&4095,n[i++]=f>>>16&4095,n[i++]=(f>>>28|(h&255)<<4)&4095,n[i++]=h>>>8&4095,n[i++]=h>>>20&4095,n[i++]=p>>>0&4095,n[i++]=p>>>12&4095,n[i++]=(p>>>24|(g&15)<<8)&4095,n[i++]=g>>>4&4095,n[i++]=g>>>16&4095,n[i++]=(g>>>28|(v&255)<<4)&4095,n[i++]=v>>>8&4095,n[i]=v>>>20&4095}function FHe(e,t,n,r){let i=r,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,d=e[t+6]>>>0,f=e[t+7]>>>0,h=e[t+8]>>>0,p=e[t+9]>>>0,g=e[t+10]>>>0,v=e[t+11]>>>0,b=e[t+12]>>>0,x=e[t+13]>>>0,_=e[t+14]>>>0,w=e[t+15]>>>0;n[i++]=a>>>0&65535,n[i++]=a>>>16&65535,n[i++]=o>>>0&65535,n[i++]=o>>>16&65535,n[i++]=s>>>0&65535,n[i++]=s>>>16&65535,n[i++]=l>>>0&65535,n[i++]=l>>>16&65535,n[i++]=u>>>0&65535,n[i++]=u>>>16&65535,n[i++]=c>>>0&65535,n[i++]=c>>>16&65535,n[i++]=d>>>0&65535,n[i++]=d>>>16&65535,n[i++]=f>>>0&65535,n[i++]=f>>>16&65535,n[i++]=h>>>0&65535,n[i++]=h>>>16&65535,n[i++]=p>>>0&65535,n[i++]=p>>>16&65535,n[i++]=g>>>0&65535,n[i++]=g>>>16&65535,n[i++]=v>>>0&65535,n[i++]=v>>>16&65535,n[i++]=b>>>0&65535,n[i++]=b>>>16&65535,n[i++]=x>>>0&65535,n[i++]=x>>>16&65535,n[i++]=_>>>0&65535,n[i++]=_>>>16&65535,n[i++]=w>>>0&65535,n[i]=w>>>16&65535}function zHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0;n[i++]=s>>>0&1,n[i++]=s>>>1&1,n[i++]=s>>>2&1,n[i++]=s>>>3&1,n[i++]=s>>>4&1,n[i++]=s>>>5&1,n[i++]=s>>>6&1,n[i++]=s>>>7&1,n[i++]=s>>>8&1,n[i++]=s>>>9&1,n[i++]=s>>>10&1,n[i++]=s>>>11&1,n[i++]=s>>>12&1,n[i++]=s>>>13&1,n[i++]=s>>>14&1,n[i++]=s>>>15&1,n[i++]=s>>>16&1,n[i++]=s>>>17&1,n[i++]=s>>>18&1,n[i++]=s>>>19&1,n[i++]=s>>>20&1,n[i++]=s>>>21&1,n[i++]=s>>>22&1,n[i++]=s>>>23&1,n[i++]=s>>>24&1,n[i++]=s>>>25&1,n[i++]=s>>>26&1,n[i++]=s>>>27&1,n[i++]=s>>>28&1,n[i++]=s>>>29&1,n[i++]=s>>>30&1,n[i++]=s>>>31&1}}function NHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0;n[i++]=s>>>0&3,n[i++]=s>>>2&3,n[i++]=s>>>4&3,n[i++]=s>>>6&3,n[i++]=s>>>8&3,n[i++]=s>>>10&3,n[i++]=s>>>12&3,n[i++]=s>>>14&3,n[i++]=s>>>16&3,n[i++]=s>>>18&3,n[i++]=s>>>20&3,n[i++]=s>>>22&3,n[i++]=s>>>24&3,n[i++]=s>>>26&3,n[i++]=s>>>28&3,n[i++]=s>>>30&3,n[i++]=l>>>0&3,n[i++]=l>>>2&3,n[i++]=l>>>4&3,n[i++]=l>>>6&3,n[i++]=l>>>8&3,n[i++]=l>>>10&3,n[i++]=l>>>12&3,n[i++]=l>>>14&3,n[i++]=l>>>16&3,n[i++]=l>>>18&3,n[i++]=l>>>20&3,n[i++]=l>>>22&3,n[i++]=l>>>24&3,n[i++]=l>>>26&3,n[i++]=l>>>28&3,n[i++]=l>>>30&3}}function VHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0;n[i++]=s>>>0&7,n[i++]=s>>>3&7,n[i++]=s>>>6&7,n[i++]=s>>>9&7,n[i++]=s>>>12&7,n[i++]=s>>>15&7,n[i++]=s>>>18&7,n[i++]=s>>>21&7,n[i++]=s>>>24&7,n[i++]=s>>>27&7,n[i++]=(s>>>30|(l&1)<<2)&7,n[i++]=l>>>1&7,n[i++]=l>>>4&7,n[i++]=l>>>7&7,n[i++]=l>>>10&7,n[i++]=l>>>13&7,n[i++]=l>>>16&7,n[i++]=l>>>19&7,n[i++]=l>>>22&7,n[i++]=l>>>25&7,n[i++]=l>>>28&7,n[i++]=(l>>>31|(u&3)<<1)&7,n[i++]=u>>>2&7,n[i++]=u>>>5&7,n[i++]=u>>>8&7,n[i++]=u>>>11&7,n[i++]=u>>>14&7,n[i++]=u>>>17&7,n[i++]=u>>>20&7,n[i++]=u>>>23&7,n[i++]=u>>>26&7,n[i++]=u>>>29&7}}function jHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0;n[i++]=s>>>0&15,n[i++]=s>>>4&15,n[i++]=s>>>8&15,n[i++]=s>>>12&15,n[i++]=s>>>16&15,n[i++]=s>>>20&15,n[i++]=s>>>24&15,n[i++]=s>>>28&15,n[i++]=l>>>0&15,n[i++]=l>>>4&15,n[i++]=l>>>8&15,n[i++]=l>>>12&15,n[i++]=l>>>16&15,n[i++]=l>>>20&15,n[i++]=l>>>
2324&15,n[i++]=l>>>28&15,n[i++]=u>>>0&15,n[i++]=u>>>4&15,n[i++]=u>>>8&15,n[i++]=u>>>12&15,n[i++]=u>>>16&15,n[i++]=u>>>20&15,n[i++]=u>>>24&15,n[i++]=u>>>28&15,n[i++]=c>>>0&15,n[i++]=c>>>4&15,n[i++]=c>>>8&15,n[i++]=c>>>12&15,n[i++]=c>>>16&15,n[i++]=c>>>20&15,n[i++]=c>>>24&15,n[i++]=c>>>28&15}}function UHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,d=e[a++]>>>0;n[i++]=s>>>0&31,n[i++]=s>>>5&31,n[i++]=s>>>10&31,n[i++]=s>>>15&31,n[i++]=s>>>20&31,n[i++]=s>>>25&31,n[i++]=(s>>>30|(l&7)<<2)&31,n[i++]=l>>>3&31,n[i++]=l>>>8&31,n[i++]=l>>>13&31,n[i++]=l>>>18&31,n[i++]=l>>>23&31,n[i++]=(l>>>28|(u&1)<<4)&31,n[i++]=u>>>1&31,n[i++]=u>>>6&31,n[i++]=u>>>11&31,n[i++]=u>>>16&31,n[i++]=u>>>21&31,n[i++]=u>>>26&31,n[i++]=(u>>>31|(c&15)<<1)&31,n[i++]=c>>>4&31,n[i++]=c>>>9&31,n[i++]=c>>>14&31,n[i++]=c>>>19&31,n[i++]=c>>>24&31,n[i++]=(c>>>29|(d&3)<<3)&31,n[i++]=d>>>2&31,n[i++]=d>>>7&31,n[i++]=d>>>12&31,n[i++]=d>>>17&31,n[i++]=d>>>22&31,n[i++]=d>>>27&31}}function HHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,d=e[a++]>>>0,f=e[a++]>>>0;n[i++]=s>>>0&63,n[i++]=s>>>6&63,n[i++]=s>>>12&63,n[i++]=s>>>18&63,n[i++]=s>>>24&63,n[i++]=(s>>>30|(l&15)<<2)&63,n[i++]=l>>>4&63,n[i++]=l>>>10&63,n[i++]=l>>>16&63,n[i++]=l>>>22&63,n[i++]=(l>>>28|(u&3)<<4)&63,n[i++]=u>>>2&63,n[i++]=u>>>8&63,n[i++]=u>>>14&63,n[i++]=u>>>20&63,n[i++]=u>>>26&63,n[i++]=c>>>0&63,n[i++]=c>>>6&63,n[i++]=c>>>12&63,n[i++]=c>>>18&63,n[i++]=c>>>24&63,n[i++]=(c>>>30|(d&15)<<2)&63,n[i++]=d>>>4&63,n[i++]=d>>>10&63,n[i++]=d>>>16&63,n[i++]=d>>>22&63,n[i++]=(d>>>28|(f&3)<<4)&63,n[i++]=f>>>2&63,n[i++]=f>>>8&63,n[i++]=f>>>14&63,n[i++]=f>>>20&63,n[i++]=f>>>26&63}}function qHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,d=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0;n[i++]=s>>>0&127,n[i++]=s>>>7&127,n[i++]=s>>>14&127,n[i++]=s>>>21&127,n[i++]=(s>>>28|(l&7)<<4)&127,n[i++]=l>>>3&127,n[i++]=l>>>10&127,n[i++]=l>>>17&127,n[i++]=l>>>24&127,n[i++]=(l>>>31|(u&63)<<1)&127,n[i++]=u>>>6&127,n[i++]=u>>>
vendor: 48,861 bytes, line 23
2313&127,n[i++]=u>>>20&127,n[i++]=(u>>>27|(c&3)<<5)&127,n[i++]=c>>>2&127,n[i++]=c>>>9&127,n[i++]=c>>>16&127,n[i++]=c>>>23&127,n[i++]=(c>>>30|(d&31)<<2)&127,n[i++]=d>>>5&127,n[i++]=d>>>12&127,n[i++]=d>>>19&127,n[i++]=(d>>>26|(f&1)<<6)&127,n[i++]=f>>>1&127,n[i++]=f>>>8&127,n[i++]=f>>>15&127,n[i++]=f>>>22&127,n[i++]=(f>>>29|(h&15)<<3)&127,n[i++]=h>>>4&127,n[i++]=h>>>11&127,n[i++]=h>>>18&127,n[i++]=h>>>25&127}}function WHe(e,t,n,r){let i=r,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,d=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0,p=e[a++]>>>0;n[i++]=s>>>0&255,n[i++]=s>>>8&255,n[i++]=s>>>16&255,n[i++]=s>>>24&255,n[i++]=l>>>0&255,n[i++]=l>>>8&255,n[i++]=l>>>16&255,n[i++]=l>>>24&255,n[i++]=u>>>0&255,n[i++]=u>>>8&255,n[i++]=u>>>16&255,n[i++]=u>>>24&255,n[i++]=c>>>0&255,n[i++]=c>>>8&255,n[i++]=c>>>16&255,n[i++]=c>>>24&255,n[i++]=d>>>0&255,n[i++]=d>>>8&255,n[i++]=d>>>16&255,n[i++]=d>>>24&255,n[i++]=f>>>0&255,n[i++]=f>>>8&255,n[i++]=f>>>16&255,n[i++]=f>>>24&255,n[i++]=h>>>0&255,n[i++]=h>>>8&255,n[i++]=h>>>16&255,n[i++]=h>>>24&255,n[i++]=p>>>0&255,n[i++]=p>>>8&255,n[i++]=p>>>16&255,n[i++]=p>>>24&255}}function GHe(e,t,n,r){let i=r,a=t;for(let o=0;o<128;o++){let s=e[a++]>>>0;n[i++]=s&65535,n[i++]=s>>>16&65535}}function ZHe(e,t,n,r,i){let a=bk[i]>>>0,o=t,s=0,l=e[o]>>>0,u=r;for(let c=0;c<8;c++){for(let d=0;d<32;d++)if(s+i<=32){let f=l>>>s&a;n[u+d]=f|0,s+=i,s===32&&(s=0,o++,d!==31&&(l=e[o]>>>0))}else{let f=32-s,h=l>>>s;o++,l=e[o]>>>0;let p=i-f,g=-1>>>32-p>>>0,v=(h|(l&g)<<f)&a;n[u+d]=v|0,s=p}u+=32,s=0,c<7&&(l=e[o]>>>0)}}const xk=THe(ute),KHe=3*xk/256+xk|0;function cte(){let e=new Uint8Array(KHe);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function YHe(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:cte()}}function XHe(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let n=new Uint32Array(Math.max(16,t*2));return e.encodedWords=n,n}function JHe(e,t,n,r){r.byteContainer.length<n&&(r.byteContainer=new Uint8Array(n*2),r.byteContainerI32=void 0);let i=r.byteContainer,a=n>>>2;if(i.byteOffset&3)for(let s=0;s<a;s=s+1|0){let l=e[t+s|0]|0,u=s<<2;i[u]=l&255,i[u+1|0]=l>>>8&255,i[u+2|0]=l>>>16&255,i[u+3|0]=l>>>24&255}else{let s=r.byteContainerI32;(!s||s.buffer!==i.buffer||s.byteOffset!==i.byteOffset||s.length<a)&&(s=r.byteContainerI32=new Int32Array(i.buffer,i.byteOffset,i.byteLength>>>2)),s.set(e.subarray(t,t+a))}let o=n&3;if(o>0){let s=e[t+a|0]|0,l=a<<2;for(let u=0;u<o;u=u+1|0)i[l+u|0]=s>>>(u<<3)&255}return i}function QHe(e,t,n){let r=e[t++]|0,i=n.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(r>>>a-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=CHe(o),l=o*a+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=i[a];(!u||u.length<s)&&(u=i[a]=new Uint32Array(s));let c=0;for(;c<o;c=c+32|0)uqe(e,t,u,c,a),t=t+a|0;let d=c-o|0;t=t-(d*a>>>5)|0,n.exceptionSizes[a]=o}return t}function eqe(e,t,n,r,i){switch(i){case 1:zHe(e,t,n,r);break;case 2:NHe(e,t,n,r);break;case 3:VHe(e,t,n,r);break;case 4:jHe(e,t,n,r);break;case 5:UHe(e,t,n,r);break;case 6:HHe(e,t,n,r);break;case 7:qHe(e,t,n,r);break;case 8:WHe(e,t,n,r);break;case 16:GHe(e,t,n,r);break;default:ZHe(e,t,n,r,i)}return t+(i<<3)|0}function tqe(e,t,n,r){if(n+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${r} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${n}, byteSize=${t})`);let i=e[n++],a=e[n++];if(i>32)throw Error(`FastPFOR decode: invalid bitWidth=${i} at block=${r} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:i,exceptionCount:a,bytePosIn:n}}function nqe(e,t,n,r,i,a){if(n+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${n}, byteSize=${t})`);let o=e[n++];if(o<r||o>32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${a} (bitWidth=${r}, expected ${r}..32)`);let s=o-r|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${a} (bitWidth=${r}, maxBits=${o})`);if(n+i>t)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${i}, have=${t-n})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:n}}function rqe(e,t,n,r,i,a,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:d}=nqe(i,a,o,n,r,l);if(o=d,c===1){let v=1<<n;for(let b=0;b<r;b=b+1|0){let x=i[o++];e[x+t|0]|=v}return o}let f=s.dataToBePacked[c];if(!f)throw Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${c} (bitWidth=${n}, maxBits=${u}) at block ${l}`);let h=s.dataPointers,p=h[c]|0,g=s.exceptionSizes[c]|0;if(p+r>g)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${c} (ptr=${p}, need ${r}, size=${g}) at block ${l}`);for(let v=0;v<r;v=v+1|0){let b=i[o++],x=f[p++]|0;e[b+t|0]|=x<<n}return h[c]=p,o}function iqe(e,t,n,r,i,a,o,s,l,u){let c=n|0,d=0;for(let f=0;f<o;f=f+1|0){let h=tqe(s,l,d,f);d=h.bytePosIn;let p=h.bitWidth,g=h.exceptionCount,v=a+f*256|0;switch(p){case 0:i.fill(0,v,v+256);break;case 32:for(let b=0;b<256;b=b+1|0)i[v+b|0]=e[c+b|0]|0;c=c+256|0;break;default:c=eqe(e,c,i,v,p)}g>0&&(d=rqe(i,v,p,g,s,l,d,u,f))}if(c!==r)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${n}, consumedPackedEnd=${c}, expectedPackedEnd=${r}, packedWords=${r-n}, encoded.length=${e.length})`)}function aqe(e,t,n,r,i,a){let o=n|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,c=e[u]>>>0,d=c+3>>>2,f=u+1,h=f+d;if(h>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${c} (metaInts=${d}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${f}) causes bitmapPos=${h} out of bounds (encoded.length=${e.length})`);let p=JHe(e,f,c,a),g=c,v=QHe(e,h,a);return a.dataPointers.fill(0),iqe(e,o,l,u,t,r|0,i/256|0,p,g,a),v}function oqe(e,t,n,r,i,a){let o=r+UP(i,256),s=r,l=n;for(;s!==o;){let u=Math.min(xk,o-s);l=aqe(e,t,l,s,u,a),s=s+u|0}return l}function sqe(e,t,n,r,i,a){if(a===0)return t;let o=0,s=t,l=t+n,u=i,c=i,d=i+a,f=0,h=0;for(;s<l&&c<d;){let p=e[s]>>>o&255;if(o+=8,s+=o>>>5,o&=31,f|=(p&127)<<h,p&128)r[c++]=f|0,f=0,h=0;else if(h+=7,h>28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${h}, partial=${f}, decoded=${c-u}/${a}, inPos=${s}, inEnd=${l})`)}if(c!==d)throw Error(`FastPFOR VByte: truncated stream (decoded=${c-u}, expected=${a}, consumedWords=${s-t}/${n}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function lqe(e,t,n){let r=0,i=0,a=new Uint32Array(t),o=n??cte();if(e.length>0){let u=e[r]|0;if(r=r+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(i+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${i}, alignedLength=${u}, out.length=${a.length})`);r=oqe(e,a,r,i,u,o),i=i+u|0}let s=e.length-r|0,l=t-i|0;return sqe(e,r,s,a,i,l),a}function uqe(e,t,n,r,i){switch(i){case 2:EHe(e,t,n,r);return;case 3:MHe(e,t,n,r);return;case 4:AHe(e,t,n,r);return;case 5:PHe(e,t,n,r);return;case 6:DHe(e,t,n,r);return;case 7:IHe(e,t,n,r);return;case 8:$He(e,t,n,r);return;case 9:LHe(e,t,n,r);return;case 10:RHe(e,t,n,r);return;case 11:OHe(e,t,n,r);return;case 12:BHe(e,t,n,r);return;case 16:FHe(e,t,n,r);return;case 32:for(let u=0;u<32;u=u+1|0)n[r+u|0]=e[t+u|0]|0;return}let a=bk[i]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+i<=32){let c=l>>>s&a;n[r+u]=c|0,s+=i,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let c=32-s,d=l>>>s;o++,l=e[o]>>>0;let f=bk[i-c]>>>0,h=(d|(l&f)<<c)&a;n[r+u]=h|0,s=i-c}}function cqe(e,t,n,r){if(t<0||n<0||t+n>e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${n}, bytes.length=${e.length})`);let i=Math.floor(n/4),a=n%4!=0,o=a?i+1:i;if(r.length<o)throw RangeError(`decodeBigEndianInt32sInto: out.length=${r.length} < ${o}`);if(i>0){let s=e.byteOffset+t;if(s&3)for(let l=0;l<i;l++){let u=t+l*4;r[l]=e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]|0}else{let l=new Uint32Array(e.buffer,s,i);for(let u=0;u<i;u++)r[u]=kHe(l[u])|0}}if(a){let s=t+i*4,l=n-i*4,u=0;for(let c=0;c<l;c++)u|=e[s+c]<<24-c*8;r[i]=u|0}return o}function ca(e,t,n){let r=new Uint32Array(n),i=0,a=t.get();for(let o=0;o<r.length;o++){let s=e[a++],l=s&127;if(s<128){r[i++]=l;continue}if(s=e[a++],l|=(s&127)<<7,s<128){r[i++]=l;continue}if(s=e[a++],l|=(s&127)<<14,s<128){r[i++]=l;continue}if(s=e[a++],l|=(s&127)<<21,s<128){r[i++]=l;continue}s=e[a++],l|=(s&15)<<28,r[i++]=l}return t.set(a),r}function HP(e,t,n){let r=new BigUint64Array(n);for(let i=0;i<r.length;i++)r[i]=dqe(e,t);return r}function dqe(e,t){let n=0n,r=0,i=t.get();for(;i<e.length;){let a=e[i++];if(n|=BigInt(a&127)<<BigInt(r),!(a&128))break;if(r+=7,r>=64)throw Error("Varint too long")}return t.set(i),n}function fqe(e,t,n){let r=new Float64Array(n);for(let i=0;i<n;i++)r[i]=hqe(e,t);return r}function hqe(e,t){let n,r;return r=e[t.get()],t.increment(),n=r&127,r<128||(r=e[t.get()],t.increment(),n|=(r&127)<<7,r<128)||(r=e[t.get()],t.increment(),n|=(r&127)<<14,r<128)||(r=e[t.get()],t.increment(),n|=(r&127)<<21,r<128)?n:(r=e[t.get()],n|=(r&15)<<28,pqe(n,e,t))}function pqe(e,t,n){let r,i;if(i=t[n.get()],n.increment(),r=(i&112)>>4,i<128||(i=t[n.get()],n.increment(),r|=(i&127)<<3,i<128)||(i=t[n.get()],n.increment(),r|=(i&127)<<10,i<128)||(i=t[n.get()],n.increment(),r|=(i&127)<<17,i<128)||(i=t[n.get()],n.increment(),r|=(i&127)<<24,i<128)||(i=t[n.get()],n.increment(),r|=(i&1)<<31,i<128))return r*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function mqe(e,t,n,r){return gqe(e,t,n,r,YHe(n>>>2))}function gqe(e,t,n,r,i){let a=r.get();if(n&3)throw Error(`FastPFOR: invalid encodedByteLength=${n} at offset=${a} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=n>>>2,s=XHe(i,o);cqe(e,a,n,s);let l=lqe(s.subarray(0,o),t,i.decoderWorkspace);return r.add(n),l}function Gn(e){return e>>>1^-(e&1)}function ra(e){return e>>1n^-(e&1n)}function eh(e){return e%2==1?(e+1)/-2:e/2}function yqe(e){let t=new Int32Array(e.length);for(let n=0;n<e.length;n++)t[n]=Gn(e[n]);return t}function vqe(e){let t=new BigInt64Array(e.length);for(let n=0;n<e.length;n++)t[n]=ra(e[n]);return t}function wk(e,t,n){if(n===void 0){n=0;for(let a=0;a<t;a++)n+=e[a]}let r=new Uint32Array(n),i=0;for(let a=0;a<t;a++){let o=e[a],s=e[a+t];r.fill(s,i,i+o),i+=o}return r}function Sk(e,t,n){if(n===void 0){n=0;for(let a=0;a<t;a++)n+=Number(e[a])}let r=new BigUint64Array(n),i=0;for(let a=0;a<t;a++){let o=Number(e[a]),s=e[a+t];r.fill(s,i,i+o),i+=o}return r}function dte(e,t,n){let r=new Float64Array(n),i=0;for(let a=0;a<t;a++){let o=e[a],s=e[a+t];r.fill(s,i,i+o),i+=o}return r}function DN(e){let t=new Int32Array(e.length);t[0]=Gn(e[0]);let n=e.length/4*4,r=1;if(n>=4)for(;r<n-4;r+=4){let i=e[r],a=e[r+1],o=e[r+2],s=e[r+3];t[r]=Gn(i)+t[r-1],t[r+1]=Gn(a)+t[r],t[r+2]=Gn(o)+t[r+1],t[r+3]=Gn(s)+t[r+2]}for(;r!==e.length;++r)t[r]=Gn(e[r])+t[r-1];return t}function IN(e){let t=new BigInt64Array(e.length);t[0]=ra(e[0]);let n=e.length/4*4,r=1;if(n>=4)for(;r<n-4;r+=4){let i=e[r],a=e[r+1],o=e[r+2],s=e[r+3];t[r]=ra(i)+t[r-1],t[r+1]=ra(a)+t[r],t[r+2]=ra(o)+t[r+1],t[r+3]=ra(s)+t[r+2]}for(;r!==t.length;++r)t[r]=ra(e[r])+t[r-1];return t}function _qe(e){e[0]=eh(e[0]);let t=e.length/4*4,n=1;if(t>=4)for(;n<t-4;n+=4){let r=e[n],i=e[n+1],a=e[n+2],o=e[n+3];e[n]=eh(r)+e[n-1],e[n+1]=eh(i)+e[n],e[n+2]=eh(a)+e[n+1],e[n+3]=eh(o)+e[n+2]}for(;n!==e.length;++n)e[n]=eh(e[n])+e[n-1]}function bqe(e,t,n){if(n===void 0){n=0;for(let a=0;a<t;a++)n+=e[a]}let r=new Int32Array(n),i=0;for(let a=0;a<t;a++){let o=e[a],s=e[a+t];s=Gn(s),r.fill(s,i,i+o),i+=o}return r}function xqe(e,t,n){if(n===void 0){n=0;for(let a=0;a<t;a++)n+=Number(e[a])}let r=new BigInt64Array(n),i=0;for(let a=0;a<t;a++){let o=Number(e[a]),s=e[a+t];s=ra(s),r.fill(s,i,i+o),i+=o}return r}function wqe(e,t,n){let r=new Float64Array(n),i=0;for(let a=0;a<t;a++){let o=e[a],s=e[a+t];s=eh(s),r.fill(s,i,i+o),i+=o}return r}function qP(e){let t=e.length/4*4,n=1;if(t>=4)for(let r=e[0];n<t-4;n+=4)r=e[n]+=r,r=e[n+1]+=r,r=e[n+2]+=r,r=e[n+3]+=r;for(;n!==e.length;)e[n]+=e[n-1],++n}function Sqe(e){let t=0;for(let n=0;n<e.length;n++)e[n]+=t,t=e[n]}function Cqe(e){if(e.length<2)return new Int32Array(e);let t=new Int32Array(e.length);t[0]=Gn(e[0]),t[1]=Gn(e[1]);let n=e.length/4*4,r=2;if(n>=4)for(;r<n-4;r+=4){let i=e[r],a=e[r+1],o=e[r+2],s=e[r+3];t[r]=Gn(i)+t[r-2],t[r+1]=Gn(a)+t[r-1],t[r+2]=Gn(o)+t[r],t[r+3]=Gn(s)+t[r+1]}for(;r!==e.length;r+=2)t[r]=Gn(e[r])+t[r-2],t[r+1]=Gn(e[r+1])+t[r-1];return t}function Tqe(e){let t=new Int32Array(e.length+1);t[0]=0,t[1]=Gn(e[0]);let n=t[1];for(let r=2;r!==t.length;++r){let i=e[r-1],a=Gn(i);n+=a,t[r]=t[r-1]+n}return new Uint32Array(t)}function kqe(e,t,n){let r=new Int32Array(n+1);r[0]=0;let i=1,a=r[0];for(let o=0;o<t;o++){let s=e[o],l=e[o+t];l=Gn(l);for(let u=i;u<i+s;u++)r[u]=l+a,a=r[u];i+=s}return r}function Eqe(e,t,n){let r=new Uint32Array(n+1);r[0]=0;let i=1,a=r[0];for(let o=0;o<t;o++){let s=e[o],l=e[o+t];for(let u=i;u<i+s;u++)r[u]=l+a,a=r[u];i+=s}return r}function Mqe(e,t,n){let r=new Int32Array(n),i=0,a=0;for(let o=0;o<t;o++){let s=e[o],l=e[o+t],u=Gn(l);for(let c=0;c<s;c++)a+=u,r[i++]=a}return r}function Aqe(e,t,n){let r=new BigInt64Array(n),i=0,a=0n;for(let o=0;o<t;o++){let s=Number(e[o]),l=e[o+t],u=ra(l);for(let c=0;c<s;c++)a+=u,r[i++]=a}return r}function $N(e){let t=new Uint32Array(e.length);t[0]=Gn(e[0])>>>0;for(let n=1;n<e.length;n++)t[n]=t[n-1]+Gn(e[n])>>>0;return t}function LN(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,ra(e[0]));for(let n=1;n<e.length;n++)t[n]=BigInt.asUintN(64,t[n-1]+ra(e[n]));return t}function Pqe(e){if(e.length<2)return new Uint32Array(e);let t=new Uint32Array(e.length);t[0]=Gn(e[0])>>>0,t[1]=Gn(e[1])>>>0;for(let n=2;n<e.length;n+=2)t[n]=t[n-2]+Gn(e[n])>>>0,t[n+1]=t[n-1]+Gn(e[n+1])>>>0;return t}function Dqe(e){return e[1]}function Iqe(e){return Gn(e[1])}function $qe(e){if(e.length===2){let t=Gn(e[1]);return[t,t]}return[Gn(e[2]),Gn(e[3])]}function Lqe(e){return e[1]}function Rqe(e){return ra(e[1])}function Oqe(e){if(e.length===2){let t=ra(e[1]);return[t,t]}return[ra(e[2]),ra(e[3])]}var fi;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(fi||={});var Ba;(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(Ba||={});var sc;(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(sc||={});var Pi;(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(Pi||={});const Bqe=[fi.PRESENT,fi.DATA,fi.OFFSET,fi.LENGTH],RN=[Qt.NONE,Qt.DELTA,Qt.COMPONENTWISE_DELTA,Qt.RLE,Qt.MORTON],Fqe=[Rs.NONE,Rs.FAST_PFOR,Rs.VARINT],zqe=[Ba.NONE,Ba.SINGLE,Ba.SHARED,Ba.VERTEX,Ba.MORTON,Ba.FSST],Nqe=[sc.VERTEX,sc.INDEX,sc.STRING,sc.KEY],Vqe=[Pi.VAR_BINARY,Pi.GEOMETRIES,Pi.PARTS,Pi.RINGS,Pi.TRIANGLES,Pi.SYMBOL,Pi.DICTIONARY];function Rr(e,t){let n=Hqe(e,t);return n.logicalLevelTechnique1===Qt.MORTON?jqe(n,e,t):(Qt.RLE===n.logicalLevelTechnique1||Qt.RLE===n.logicalLevelTechnique2)&&Rs.NONE!==n.physicalLevelTechnique?Uqe(n,e,t):n}function jqe(e,t,n){let r=ca(t,n,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:r[0],coordinateShift:r[1]}}function Uqe(e,t,n){let r=ca(t,n,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:r[1],runs:r[0],numRleValues:r[1]}}function Hqe(e,t){let n=e[t.get()],r=Bqe[n>>4],i={};switch(r){case fi.DATA:i={dictionaryType:zqe[n&15]};break;case fi.OFFSET:i={offsetType:Nqe[n&15]};break;case fi.LENGTH:i={lengthType:Vqe[n&15]}}t.increment();let a=e[t.get()],o=RN[a>>5],s=RN[a>>2&7],l=Fqe[a&3];t.increment();let u=ca(e,t,2),c=u[0],d=u[1];return{physicalStreamType:r,logicalStreamType:i,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:c,byteLength:d,decompressedCount:c}}var wr;(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(wr||={});var bl=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),n=e%8;return(this.values[t]>>n&1)==1}set(e,t){let n=Math.floor(e/8),r=e%8;this.values[n]=this.values[n]|+!!t<<r}getInt(e){let t=Math.floor(e/8),n=e%8;return this.values[t]>>n&1}size(){return this._size}getBuffer(){return this.values}};function Mp(e,t,n){if(!t)return e;let r=t.size(),i=e.constructor,a=new i(r),o=0;for(let s=0;s<r;s++)a[s]=t.get(s)?e[o++]:n;return a}function qqe(e,t,n){if(!n)return e;let r=n.size(),i=new bl(e,t),a=new bl(new Uint8Array(Math.ceil(r/8)),r),o=0;for(let s=0;s<r;s++){let l=n.get(s)?i.get(o++):!1;a.set(s,l)}return a.getBuffer()}function L1(e,t,n,r,i){let a=Wqe(e,Math.ceil(t/8),n,r);return i?qqe(a,t,i):a}function Wqe(e,t,n,r){let i=new Uint8Array(t),a=0,o=r.get()+n;for(;a<t&&!(r.get()>=o);){let s=e[r.increment()];if(s<=127){let l=s+3,u=e[r.increment()],c=Math.min(a+l,t);i.fill(u,a,c),a=c}else{let l=256-s;for(let u=0;u<l&&a<t;u++)i[a++]=e[r.increment()]}}return r.set(o),i}function fte(e,t,n,r){let i=t.get(),a=i+n*Float32Array.BYTES_PER_ELEMENT,o=new Uint8Array(e.subarray(i,a)).buffer,s=new Float32Array(o);return t.set(a),r?Mp(s,r,0):s}function hte(e,t,n,r){let i=t.get(),a=i+n*Float64Array.BYTES_PER_ELEMENT,o=new Uint8Array(e.subarray(i,a)).buffer,s=new Float64Array(o);return t.set(a),r?Mp(s,r,0):s}function Gqe(e,t,n){let r=t.get(),i=n*Uint32Array.BYTES_PER_ELEMENT,a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=new Uint32Array(n);for(let s=0;s<n;s++)o[s]=a.getUint32(r+s*Uint32Array.BYTES_PER_ELEMENT,!0);return t.add(i),o}function Zqe(e,t,n){let r=t.get(),i=n*BigUint64Array.BYTES_PER_ELEMENT,a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=new BigUint64Array(n);for(let s=0;s<n;s++)o[s]=a.getBigUint64(r+s*BigUint64Array.BYTES_PER_ELEMENT,!0);return t.add(i),o}const Kqe=new TextDecoder;function WP(e,t,n){return n-t>=12?Kqe.decode(e.subarray(t,n)):Yqe(e,t,n)}function Yqe(e,t,n){let r="",i=t;for(;i<n;){let a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s>n)break;let l,u,c;s===1?a<128&&(o=a):s===2?(l=e[i+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[i+1],u=e[i+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[i+1],u=e[i+2],c=e[i+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,r+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),r+=String.fromCharCode(o),i+=s}return r}function P5(e,t,n,r,i){return tWe(R1(e,t,n),n,r,i)}function Xi(e,t,n,r,i){return nWe(R1(e,t,n),n,r,i)}function Cd(e,t,n){return aWe(R1(e,t,n),n)}function R1(e,t,n){let r=n.physicalLevelTechnique;switch(r){case Rs.FAST_PFOR:return mqe(e,n.numValues,n.byteLength,t);case Rs.VARINT:return ca(e,t,n.numValues);case Rs.NONE:return Gqe(e,t,n.numValues);default:throw Error(`Specified physicalLevelTechnique ${r} is not supported (yet).`)}}function Fv(e,t,n){let r=n.physicalLevelTechnique;switch(r){case Rs.VARINT:return HP(e,t,n.numValues);case Rs.NONE:return Zqe(e,t,n.numValues);default:throw Error(`Specified physicalLevelTechnique ${r} is not supported (yet).`)}}function Xqe(e,t,n){let r=R1(e,t,n);return r.length===1?Gn(r[0]):Iqe(r)}function GP(e,t,n){let r=R1(e,t,n);return r.length===1?n.logicalLevelTechnique1===Qt.DELTA?Gn(r[0]):r[0]:Dqe(r)}function pte(e,t,n){return $qe(R1(e,t,n))}function mte(e,t,n){return Oqe(HP(e,t,n.numValues))}function gte(e,t,n,r){return rWe(Fv(e,t,n),n,r)}function ZP(e,t,n,r){return vte(Fv(e,t,n),n,r)}function Jqe(e,t,n,r){let i=Qqe(e,t,n,!1);return r?Mp(i,r,0):i}function Qqe(e,t,n,r){if(n.physicalLevelTechnique===Rs.VARINT)return iWe(fqe(e,t,n.numValues),n,r);let i=Fv(e,t,n),a=vte(i,n);return Float64Array.from(a,Number)}function eWe(e,t,n){let r=Fv(e,t,n);return r.length===1?ra(r[0]):Rqe(r)}function yte(e,t,n){let r=Fv(e,t,n);return r.length===1?n.logicalLevelTechnique1===Qt.DELTA?ra(r[0]):r[0]:Lqe(r)}function tWe(e,t,n,r){let i;switch(t.logicalLevelTechnique1){case Qt.DELTA:if(t.logicalLevelTechnique2===Qt.RLE){let a=t;if(!r)return Mqe(e,a.runs,a.numRleValues);e=wk(e,a.runs,a.numRleValues),i=DN(e)}else i=DN(e);break;case Qt.RLE:i=bqe(e,t.runs,t.numRleValues);break;case Qt.MORTON:qP(e),i=new Int32Array(e);break;case Qt.COMPONENTWISE_DELTA:i=Cqe(e);break;case Qt.NONE:i=yqe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?Mp(i,r,0):i}function nWe(e,t,n,r){let i;switch(t.logicalLevelTechnique1){case Qt.DELTA:if(t.logicalLevelTechnique2===Qt.RLE){let a=t;i=$N(wk(e,a.runs,a.numRleValues))}else i=$N(e);break;case Qt.RLE:i=wk(e,t.runs,t.numRleValues);break;case Qt.MORTON:qP(e),i=e;break;case Qt.COMPONENTWISE_DELTA:i=Pqe(e);break;case Qt.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?Mp(i,r,0):i}function rWe(e,t,n){let r;switch(t.logicalLevelTechnique1){case Qt.DELTA:if(t.logicalLevelTechnique2===Qt.RLE){let i=t;if(!n)return Aqe(e,i.runs,i.numRleValues);e=Sk(e,i.runs,i.numRleValues),r=IN(e)}else r=IN(e);break;case Qt.RLE:r=xqe(e,t.runs,t.numRleValues);break;case Qt.NONE:r=vqe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return n?Mp(r,n,0n):r}function vte(e,t,n){let r;switch(t.logicalLevelTechnique1){case Qt.DELTA:if(t.logicalLevelTechnique2===Qt.RLE){let i=t;r=LN(Sk(e,i.runs,i.numRleValues))}else r=LN(e);break;case Qt.RLE:r=Sk(e,t.runs,t.numRleValues);break;case Qt.NONE:r=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return n?Mp(r,n,0n):r}function iWe(e,t,n){switch(t.logicalLevelTechnique1){case Qt.DELTA:if(t.logicalLevelTechnique2===Qt.RLE){let r=t;e=dte(e,r.runs,r.numRleValues)}return _qe(e),e;case Qt.RLE:return sWe(e,t,n);case Qt.NONE:return e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function aWe(e,t){if(t.logicalLevelTechnique1===Qt.DELTA&&t.logicalLevelTechnique2===Qt.NONE)return Tqe(e);if(t.logicalLevelTechnique1===Qt.RLE&&t.logicalLevelTechnique2===Qt.NONE){let n=t;return Eqe(e,n.runs,n.numRleValues)}if(t.logicalLevelTechnique1===Qt.NONE&&t.logicalLevelTechnique2===Qt.NONE){Sqe(e);let n=new Uint32Array(t.numValues+1);return n[0]=0,n.set(e,1),n}if(t.logicalLevelTechnique1===Qt.DELTA&&t.logicalLevelTechnique2===Qt.RLE){let n=t,r=kqe(e,n.runs,n.numRleValues);return qP(r),new Uint32Array(r)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function yw(e,t,n,r,i="int32"){let a=e.logicalLevelTechnique1;if(a===Qt.RLE)return e.runs===1?wr.CONST:wr.FLAT;if(a!==Qt.DELTA||e.logicalLevelTechnique2!==Qt.RLE)return e.numValues===1?wr.CONST:wr.FLAT;let o=t instanceof bl?t.size():t,s=e;if(s.numRleValues!==o)return wr.FLAT;if(s.runs===1)return wr.SEQUENCE;if(s.runs!==2)return e.numValues===1?wr.CONST:wr.FLAT;let l=r.get();if(e.physicalLevelTechnique===Rs.VARINT)return oWe(n,r,i)?wr.SEQUENCE:e.numValues===1?wr.CONST:wr.FLAT;let u=r.get(),c=new Int32Array(n.buffer,n.byteOffset+u,4);return r.set(l),c[2]===2&&c[3]===2?wr.SEQUENCE:e.numValues===1?wr.CONST:wr.FLAT}function oWe(e,t,n){let r=new lte(t.get());if(n==="int64"){let a=HP(e,r,4);return a[2]===2n&&a[3]===2n}let i=ca(e,r,4);return i[2]===2&&i[3]===2}function sWe(e,t,n){return n?wqe(e,t.runs,t.numRleValues):dte(e,t.runs,t.numRleValues)}var _te=class extends gw{getValueFromBuffer(e){return this.dataBuffer[e]}},bte=class extends ote{constructor(e,t,n,r,i){super(e,i?BigInt64Array.of(t):BigUint64Array.of(t),n,r)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};function KP(e,t,n){return{x:ON(e,t)-n,y:ON(e>>1,t)-n}}function ON(e,t){let n=0;for(let r=0;r<t;r++)n|=(e&1<<2*r)>>r;return n}var ia;(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})(ia||={});var lWe;(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(lWe||={});var Ap;(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(Ap||={});function uWe(e){let t=Array(e.numGeometries),n=1,r=1,i=1,a=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,c=u.geometryOffsets,d=u.partOffsets,f=u.ringOffsets,h=e.vertexOffsets,p=!h||h.length===0,g=e.containsPolygonGeometry(),v=e.vertexBuffer;for(let b=0;b<e.numGeometries;b++){let x=e.geometryType(b);switch(x){case ia.POINT:{let _,w;if(p)_=v[o++],w=v[o++];else if(e.vertexBufferType===Ap.MORTON){let C=v[h[s++]],T=KP(C,l.numBits,l.coordinateShift);_=T.x,w=T.y}else{let C=h[s++]*2;_=v[C],w=v[C+1]}t[a++]=[[new we(_,w)]],c&&i++,d&&n++,f&&r++}break;case ia.MULTIPOINT:{let _=c[i]-c[i-1];i++;let w;if(p){w=Array(_);for(let C=0;C<_;C++){let T=v[o++],k=v[o++];w[C]=new we(T,k)}}else w=Wf(e.vertexBufferType,v,h,s,_,!1,l),s+=_;t[a++]=w.map(C=>[C]),n+=_,r+=_}break;case ia.LINESTRING:{let _;g?(_=f[r]-f[r-1],r++):_=d[n]-d[n-1],n++;let w;p?(w=_0(v,o,_,!1),o+=_*2):(w=Wf(e.vertexBufferType,v,h,s,_,!1,l),s+=_),t[a++]=[w],c&&i++}break;case ia.POLYGON:{let _=d[n]-d[n-1];n++;let w=Array(_-1),C,T=f[r]-f[r-1];if(r++,p){C=_0(v,o,T,!0),o+=T*2;for(let k=0;k<w.length;k++)T=f[r]-f[r-1],r++,w[k]=_0(v,o,T,!0),o+=T*2}else{C=Wf(e.vertexBufferType,v,h,s,T,!0,l),s+=T;for(let k=0;k<w.length;k++)T=f[r]-f[r-1],r++,w[k]=Wf(e.vertexBufferType,v,h,s,T,!0,l),s+=T}t[a++]=[C].concat(w),c&&i++}break;case ia.MULTILINESTRING:{let _=c[i]-c[i-1];i++;let w=Array(_);for(let C=0;C<_;C++){let T;if(g?(T=f[r]-f[r-1],r++):T=d[n]-d[n-1],n++,p)w[C]=_0(v,o,T,!1),o+=T*2;else{let k=Wf(e.vertexBufferType,v,h,s,T,!1,l);w[C]=k,s+=T}}t[a++]=w}break;case ia.MULTIPOLYGON:{let _=c[i]-c[i-1];i++;let w=Array(_);for(let C=0;C<_;C++){let T=d[n]-d[n-1];n++;let k,A=Array(T-1),P=f[r]-f[r-1];r++,p?(k=_0(v,o,P,!0),o+=P*2):(k=Wf(e.vertexBufferType,v,h,s,P,!0,l),s+=P);for(let D=0;D<A.length;D++){let $=f[r]-f[r-1];r++,p?(A[D]=_0(v,o,$,!0),o+=$*2):(A[D]=Wf(e.vertexBufferType,v,h,s,$,!0,l),s+=$)}w[C]=[k].concat(A)}t[a++]=w.flat()}break;default:throw Error(`The specified geometry type (${x}) is currently not supported.`)}}return t}function Wf(e,t,n,r,i,a,o){return e===Ap.MORTON?dWe(t,n,r,i,a,o):cWe(t,n,r,i,a)}function _0(e,t,n,r){let i=Array(r?n+1:n);for(let a=0;a<n*2;a+=2){let o=e[t+a],s=e[t+a+1];i[a/2]=new we(o,s)}return r&&(i[i.length-1]=i[0]),i}function cWe(e,t,n,r,i){let a=Array(i?r+1:r);for(let o=0;o<r*2;o+=2){let s=t[n+o/2]*2,l=e[s],u=e[s+1];a[o/2]=new we(l,u)}return i&&(a[a.length-1]=a[0]),a}function dWe(e,t,n,r,i,a){let o=Array(i?r+1:r);for(let s=0;s<r;s++){let l=e[t[n+s]],u=KP(l,a.numBits,a.coordinateShift);o[s]=new we(u.x,u.y)}return i&&(o[o.length-1]=o[0]),o}var xte=class{constructor(e,t,n,r,i){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=n,this._vertexBuffer=r,this._mortonSettings=i}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let n=this.vertexOffsets[e],r=this.vertexBuffer[n],i=KP(r,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[i.x,i.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return uWe(this)}get mortonSettings(){return this._mortonSettings}};function fWe(e,t,n,r,i){return new wte(e,t,Ap.VEC_2,n,r,i)}function hWe(e,t,n,r,i,a){return new wte(e,t,Ap.MORTON,n,r,i,a)}var wte=class extends xte{constructor(e,t,n,r,i,a,o){super(n,r,i,a,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===ia.POLYGON||this._geometryType===ia.MULTIPOLYGON}containsSingleGeometryType(){return!0}};function Ste(e,t,n,r){return new Cte(Ap.VEC_2,e,t,n,r)}function pWe(e,t,n,r,i){return new Cte(Ap.MORTON,e,t,n,r,i)}var Cte=class extends xte{constructor(e,t,n,r,i,a){super(e,n,r,i,a),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;e<this.numGeometries;e++)if(this.geometryType(e)===ia.POLYGON||this.geometryType(e)===ia.MULTIPOLYGON)return!0;return!1}containsSingleGeometryType(){return!1}},Tte=class{constructor(e,t,n,r){this._triangleOffsets=e,this._indexBuffer=t,this._vertexBuffer=n,this._topologyVector=r}get triangleOffsets(){return this._triangleOffsets}get indexBuffer(){return this._indexBuffer}get vertexBuffer(){return this._vertexBuffer}get topologyVector(){return this._topologyVector}getGeometries(){if(!this._topologyVector)throw Error("Cannot convert GpuVector to coordinates without topology information");let e=new Uint32Array(this.numGeometries);for(let t=0;t<this.numGeometries;t++)e[t]=this.geometryType(t);return Ste(e,this._topologyVector,void 0,this._vertexBuffer).getGeometries()}[Symbol.iterator](){return null}};function BN(e,t,n,r,i,a){return new mWe(e,t,n,r,i,a)}var mWe=class extends Tte{constructor(e,t,n,r,i,a){super(n,r,i,a),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}};function FN(e,t,n,r,i){return new gWe(e,t,n,r,i)}var gWe=class extends Tte{constructor(e,t,n,r,i){super(t,n,r,i),this._geometryTypes=e}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}};function yWe(e,t,n,r,i){let a=Rr(e,n),o=yw(a,r,e,n),s,l,u,c;if(o===wr.CONST){let _=GP(e,n,a),w,C,T,k;for(let A=0;A<t-1;A++){let P=Rr(e,n);switch(P.physicalStreamType){case fi.LENGTH:switch(P.logicalStreamType.lengthType){case Pi.GEOMETRIES:w=Cd(e,n,P);break;case Pi.PARTS:C=Cd(e,n,P);break;case Pi.RINGS:T=Cd(e,n,P);break;case Pi.TRIANGLES:k=Cd(e,n,P)}break;case fi.OFFSET:switch(P.logicalStreamType.offsetType){case sc.VERTEX:s=Xi(e,n,P);break;case sc.INDEX:c=Xi(e,n,P)}break;case fi.DATA:if(Ba.VERTEX===P.logicalStreamType.dictionaryType)l=P5(e,n,P,i);else{let D=P;u={numBits:D.numBits,coordinateShift:D.coordinateShift},l=Xi(e,n,P,i)}}}return c?w!==void 0||C!==void 0?BN(r,_,k,c,l,{geometryOffsets:w,partOffsets:C,ringOffsets:T}):BN(r,_,k,c,l):u===void 0?fWe(r,_,{geometryOffsets:w,partOffsets:C,ringOffsets:T},s,l):hWe(r,_,{geometryOffsets:w,partOffsets:C,ringOffsets:T},s,l,u)}let d=Xi(e,n,a),f,h,p,g;for(let _=0;_<t-1;_++){let w=Rr(e,n);switch(w.physicalStreamType){case fi.LENGTH:switch(w.logicalStreamType.lengthType){case Pi.GEOMETRIES:f=Xi(e,n,w);break;case Pi.PARTS:h=Xi(e,n,w);break;case Pi.RINGS:p=Xi(e,n,w);break;case Pi.TRIANGLES:g=Cd(e,n,w)}break;case fi.OFFSET:switch(w.logicalStreamType.offsetType){case sc.VERTEX:s=Xi(e,n,w);break;case sc.INDEX:c=Xi(e,n,w)}break;case fi.DATA:if(Ba.VERTEX===w.logicalStreamType.dictionaryType)l=P5(e,n,w,i);else{let C=w;u={numBits:C.numBits,coordinateShift:C.coordinateShift},l=Xi(e,n,w,i)}}}let v,b,x;return f?(v=k9(d,f,2),h&&p?(b=zN(d,v,h,!1),x=_We(d,v,b,p)):h&&(b=vWe(d,v,h))):h&&p?(b=k9(d,h,1),x=zN(d,b,p,!0)):h&&(b=k9(d,h,0)),c&&!b?FN(d,g,c,l):c?FN(d,g,c,l,{geometryOffsets:v,partOffsets:b,ringOffsets:x}):u===void 0?Ste(d,{geometryOffsets:v,partOffsets:b,ringOffsets:x},s,l):pWe(d,{geometryOffsets:v,partOffsets:b,ringOffsets:x},s,l,u)}function k9(e,t,n){let r=new Uint32Array(e.length+1),i=0;r[0]=i;let a=0;for(let o=0;o<e.length;o++)i=r[o+1]=i+(e[o]>n?t[a++]:1);return r}function zN(e,t,n,r){let i=new Uint32Array(t[t.length-1]+1),a=0;i[0]=a;let o=1,s=0;for(let l=0;l<e.length;l++){let u=e[l],c=t[l+1]-t[l];if(u===5||u===2||r&&(u===4||u===1))for(let d=0;d<c;d++)a=i[o++]=a+n[s++];else for(let d=0;d<c;d++)i[o++]=++a}return i}function vWe(e,t,n){let r=new Uint32Array(t[t.length-1]+1),i=0;r[0]=i;let a=1,o=0;for(let s=0;s<e.length;s++){let l=e[s],u=t[s+1]-t[s];if(l===4||l===1)for(let c=0;c<u;c++)i=r[a++]=i+n[o++];else for(let c=0;c<u;c++)r[a++]=++i}return r}function _We(e,t,n,r){let i=new Uint32Array(n[n.length-1]+1),a=0;i[0]=a;let o=1,s=1,l=0;for(let u=0;u<e.length;u++){let c=e[u],d=t[u+1]-t[u];if(c!==0&&c!==3)for(let f=0;f<d;f++){let h=n[o]-n[o-1];o++;for(let p=0;p<h;p++)a=i[s++]=a+r[l++]}else for(let f=0;f<d;f++)i[s++]=++a,o++}return i}var bWe=class extends Ep{constructor(e,t,n){super(e,t.getBuffer(),n),this.dataVector=t}getValueFromBuffer(e){return this.dataVector.get(e)}},xWe=class extends gw{getValueFromBuffer(e){return this.dataBuffer[e]}},kte=class extends Ep{constructor(e,t,n,r){super(e,r?BigInt64Array.of(t):BigUint64Array.of(t),n)}getValueFromBuffer(e){return this.dataBuffer[0]}},YP=class extends Ep{constructor(e,t,n,r){super(e,n,r),this.offsetBuffer=t}},NN=class extends YP{constructor(e,t,n,r){super(e,t,n,r??t.length-1)}getValueFromBuffer(e){let t=this.offsetBuffer[e],n=this.offsetBuffer[e+1];return WP(this.dataBuffer,t,n)}},gm=class extends YP{constructor(e,t,n,r,i){super(e,n,r,i??t.length),this.indexBuffer=t,this.indexBuffer=t}getValueFromBuffer(e){let t=this.indexBuffer[e],n=this.offsetBuffer[t],r=this.offsetBuffer[t+1];return WP(this.dataBuffer,n,r)}};function wWe(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r];i===255?(n++,r++):n+=e[i]}return n}function SWe(e,t,n){let r=new Uint32Array(t.length);for(let o=1;o<t.length;o++)r[o]=r[o-1]+t[o-1];let i=new Uint8Array(wWe(t,n)),a=0;for(let o=0;o<n.length;o++){let s=n[o];if(s===255)o++,i[a++]=n[o];else{let l=t[s],u=r[s];for(;l-- >0;)i[a++]=e[u++]}}return i}var Ete=class extends YP{constructor(e,t,n,r,i,a,o,s){super(e,n,r,o??t.length),this.indexBuffer=t,this.symbolOffsetBuffer=i,this.symbolTableBuffer=a,this.sharedDictionaryCache=s}getValueFromBuffer(e){this.decodedDictionary??(this.decodedDictionary=this.sharedDictionaryCache?.decodedDictionary,this.decodedDictionary??(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let t=this.indexBuffer[e],n=this.offsetBuffer[t],r=this.offsetBuffer[t+1];return WP(this.decodedDictionary,n,r)}decodeDictionary(){return this.symbolLengthBuffer??=this.offsetToLengthBuffer(this.symbolOffsetBuffer),SWe(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(e){let t=new Uint32Array(e.length-1),n=e[0];for(let r=1;r<e.length;r++){let i=e[r];t[r-1]=i-n,n=i}return t}};function Mte(e,t,n,r,i){let a,o,s,l,u,c=i,d,f;for(let h=0;h<r;h++){let p=Rr(t,n);switch(p.physicalStreamType){case fi.PRESENT:{let g=new bl(L1(t,p.numValues,p.byteLength,n),p.numValues);c=i??g;break}case fi.OFFSET:o=Xi(t,n,p,void 0,c);break;case fi.LENGTH:{let g=Cd(t,n,p);Pi.DICTIONARY===p.logicalStreamType.lengthType?a=g:Pi.SYMBOL===p.logicalStreamType.lengthType?l=g:d=g;break}case fi.DATA:{let g=t.subarray(n.get(),n.get()+p.byteLength);n.add(p.byteLength);let v=p.logicalStreamType.dictionaryType;Ba.FSST===v?u=g:Ba.SINGLE===v||Ba.SHARED===v?s=g:Ba.NONE===v&&(f=g);break}}}return CWe(e,u,o,a,s,l,c)??TWe(e,s,o,a,c)??kWe(e,d,f,o,c)}function CWe(e,t,n,r,i,a,o){if(t){if(!n||!r||!i||!a)throw Error(`Incomplete FSST dictionary string column "${e}"`);return new Ete(e,n,r,i,a,t,o)}}function TWe(e,t,n,r,i){if(t){if(!n||!r)throw Error(`Incomplete dictionary string column "${e}"`);return i?new gm(e,n,r,t,i):new gm(e,n,r,t)}}function kWe(e,t,n,r,i){if(t&&n){if(r)return i?new gm(e,r,t,n,i):new gm(e,r,t,n);if(i&&i.size()!==t.length-1){let a=new Uint32Array(i.size()),o=0;for(let s=0;s<i.size();s++)i.get(s)?a[s]=o++:a[s]=0;return new gm(e,a,t,n,i)}return i?new NN(e,t,n,i):new NN(e,t,n)}}function EWe(e,t,n,r){let i,a,o,s,l=!1;for(;!l;){let h=Rr(e,t);switch(h.physicalStreamType){case fi.LENGTH:Pi.DICTIONARY===h.logicalStreamType.lengthType?i=Cd(e,t,h):o=Cd(e,t,h);break;case fi.DATA:Ba.SINGLE===h.logicalStreamType.dictionaryType||Ba.SHARED===h.logicalStreamType.dictionaryType?(a=e.subarray(t.get(),t.get()+h.byteLength),l=!0):s=e.subarray(t.get(),t.get()+h.byteLength),t.add(h.byteLength)}}if(n.type!=="complexType")throw Error(`Shared dictionary column ${n.name} must be a complex (struct) column.`);if(!i||!a)throw Error(`Incomplete shared dictionary for column "${n.name}"`);let u=n.complexType.children,c=[],d=s?{}:void 0,f=0;for(let h of u){let p=ca(e,t,1)[0];if(p===0)continue;let g=h.name?`${n.name}${h.name}`:n.name;if(h.type!=="scalarField"||h.scalarField.physicalType!==In.STRING)throw Error("Currently only scalar string fields are implemented for a struct.");if(p>1&&!h.nullable||p===1&&h.nullable)throw Error(`The number of streams for the child field ${h.name} does not match its nullability. nullibilty: ${h.nullable}, numStreams: ${p}`);let v;if(h.nullable){let x=Rr(e,t);v=new bl(L1(e,x.numValues,x.byteLength,t),x.numValues)}let b=Xi(e,t,Rr(e,t),void 0,v);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${g}"`);c[f++]=new Ete(g,b,i,a,o,s,v,d)}else c[f++]=new gm(g,b,i,a,v)}return c}var VN=class extends Ep{constructor(e,t,n){super(e,new Uint8Array,n??t.length),this.values=t}getValueFromBuffer(e){return this.values[e]}},lc;(function(e){e[e.STRING=1]="STRING",e[e.INT32=2]="INT32",e[e.UINT32=4]="UINT32",e[e.INT64=8]="INT64",e[e.UINT64=16]="UINT64",e[e.FLOAT=32]="FLOAT",e[e.DOUBLE=64]="DOUBLE",e[e.PRESENCE=128]="PRESENCE"})(lc||={});var vh;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE",e[e.START_MAP=2]="START_MAP",e[e.START_LIST=3]="START_LIST",e[e.COUNT=4]="COUNT"})(vh||={});function MWe(e,t,n,r){let i=AWe(n);if(r===0)return i.map(c=>new VN(c,[]));let a=PWe(e,t,r),o=(a.presentStream?a.presentCount:a.lengthStream.length)/i.length,s=[],l=0,u=0;for(let c=0;c<i.length;c++){let d=RWe(a,c,o,l,u);s.push(new VN(i[c],d.value,d.nullabilityBuffer)),l=d.countsEnd,u=d.valuesEnd}return s}function AWe(e){let t=e.type==="complexType"?e.complexType.children:void 0;return!t||t.length===0?[e.name]:t.map(n=>e.name+(n.name??""))}function PWe(e,t,n){let r=e[t.get()];t.add(1);let i=Xi(e,t,Rr(e,t)),a=n-1,o=[];r&lc.STRING&&(a-=DWe(e,t,o)),a-=IWe(e,t,r,o),a-=$We(e,t,r,o);let s,l=0;if(r&lc.PRESENCE){let c=LWe(e,t);s=c.value,l=c.count,a--}let u=new Uint32Array;if(a>0&&(u=Xi(e,t,Rr(e,t)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:i,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function DWe(e,t,n){let r=e[t.get()];t.add(1);let i=Mte("",e,t,r);if(i)for(let a=0;a<i.size;a++)n.push(i.getValue(a));return r}function IWe(e,t,n,r){let i=0;return n&lc.INT32?(K0(r,P5(e,t,Rr(e,t))),i++):n&lc.INT64&&(K0(r,gte(e,t,Rr(e,t))),i++),n&lc.UINT32?(K0(r,Xi(e,t,Rr(e,t))),i++):n&lc.UINT64&&(K0(r,ZP(e,t,Rr(e,t))),i++),i}function $We(e,t,n,r){let i=0;return n&lc.FLOAT&&(K0(r,fte(e,t,Rr(e,t).numValues)),i++),n&lc.DOUBLE&&(K0(r,hte(e,t,Rr(e,t).numValues)),i++),i}function LWe(e,t){let n=Rr(e,t);if(n.physicalStreamType!==fi.PRESENT)throw Error(`Expected PRESENT stream for map column but found: ${n.physicalStreamType}`);let r=n.numValues,i=t.get(),a=new bl(L1(e,r,n.byteLength,t),r);return t.set(i+n.byteLength),{value:a,count:r}}function RWe(e,t,n,r,i){let{lengthStream:a,flattenedValues:o,presentStream:s,dictionary:l}=e,u=t*n,c=n,d;if(s){d=new bl(new Uint8Array(Math.ceil(n/8)),n),c=0;for(let x=0;x<n;x++)s.get(u+x)&&(d.set(x,!0),c++)}let f=r+c;if(f>a.length)throw Error("Merged map counts underflow while decoding child streams");let h=Array(n),p=r,g=i;for(let x=0;x<n;x++){if(s&&!s.get(u+x)){h[x]=null;continue}let _=g+a[p++];if(_>o.length)throw Error("Map value stream underflow while decoding feature payload");let w=OWe(o,g,_,l);h[x]=w.value,g=w.nextIndex}let v=0;for(let x=r;x<f;x++)v+=a[x];let b=i+v;if(g!==b)throw Error("Unused flattened map values remain after decode");return{value:h,nullabilityBuffer:d,countsEnd:f,valuesEnd:b}}function OWe(e,t,n,r){return n-t===1||e[t]===vh.START_LIST?XP(e,t,n,r):Ate(e,t,n,r)}function Ate(e,t,n,r){let i=Object.create(null),a=t;for(;a<n;){let o=Pte(e[a++],r);if(typeof o!="string")throw Error(`Map key dictionary index does not resolve to a string: ${o}`);let s=XP(e,a,n,r);i[o]=s.value,a=s.nextIndex}return{value:i,nextIndex:a}}function XP(e,t,n,r){if(t>=n)throw Error("Unexpected end of map value stream");let i=e[t];if(i===vh.FALSE)return{value:!1,nextIndex:t+1};if(i===vh.TRUE)return{value:!0,nextIndex:t+1};if(i===vh.START_MAP){let a=jN(e,t,n);return{value:Ate(e,t+2,a,r).value,nextIndex:a}}if(i===vh.START_LIST){let a=jN(e,t,n),o=[],s=t+2;for(;s<a;){let l=XP(e,s,a,r);o.push(l.value),s=l.nextIndex}return{value:o,nextIndex:a}}return{value:Pte(i,r),nextIndex:t+1}}function jN(e,t,n){if(t+1>=n)throw Error("Missing length for nested map/list payload");let r=e[t+1];if(r<2)throw Error(`Invalid nested payload length: ${r}`);let i=t+r;if(i>n)throw Error("Nested payload exceeds containing payload bounds");return i}function Pte(e,t){let n=e-vh.COUNT;if(n<0||n>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[n]}function K0(e,t){for(let n of t)e.push(n)}function BWe(e,t,n,r,i,a){return n.type==="scalarType"?FWe(r,e,t,i,n.scalarType,n):n.complexType?.physicalType===zd.MAP?MWe(e,t,n,r):r===0?null:EWe(e,t,n)}function FWe(e,t,n,r,i,a){let o;if(e===0)return null;if(a.nullable){let l=Rr(t,n),u=l.numValues,c=n.get(),d=L1(t,u,l.byteLength,n);n.set(c+l.byteLength),o=new bl(d,l.numValues)}let s=o??r;switch(i.physicalType){case In.UINT_32:case In.INT_32:return UWe(t,n,a,i,s);case In.STRING:{let l=a.nullable?e-1:e;return Mte(a.name,t,n,l,o)??null}case In.BOOLEAN:return zWe(t,n,a,r,s);case In.UINT_64:case In.INT_64:return jWe(t,n,a,s,i);case In.FLOAT:return NWe(t,n,a,s);case In.DOUBLE:return VWe(t,n,a,s);default:throw Error(`The specified data type for the field is currently not supported: ${i}`)}}function zWe(e,t,n,r,i){let a=Rr(e,t),o=a.numValues,s=t.get(),l=zv(i)?i:void 0,u=L1(e,o,a.byteLength,t,l);t.set(s+a.byteLength);let c=new bl(u,o);return new bWe(n.name,c,i)}function NWe(e,t,n,r){let i=Rr(e,t),a=zv(r)?r:void 0,o=fte(e,t,i.numValues,a);return new xWe(n.name,o,r)}function VWe(e,t,n,r){let i=Rr(e,t),a=zv(r)?r:void 0,o=hte(e,t,i.numValues,a);return new zP(n.name,o,r)}function jWe(e,t,n,r,i){let a=Rr(e,t),o=yw(a,r,e,t,"int64"),s=i.physicalType===In.INT_64;if(o===wr.FLAT){let u=zv(r)?r:void 0,c=s?gte(e,t,a,u):ZP(e,t,a,u);return new _te(n.name,c,r)}if(o===wr.SEQUENCE){let u=mte(e,t,a);return new bte(n.name,u[0],u[1],a.numRleValues,s)}let l=s?eWe(e,t,a):yte(e,t,a);return new kte(n.name,l,r,s)}function UWe(e,t,n,r,i){let a=Rr(e,t),o=yw(a,i,e,t),s=r.physicalType===In.INT_32;if(o===wr.FLAT){let u=zv(i)?i:void 0,c=s?P5(e,t,a,void 0,u):Xi(e,t,a,void 0,u);return new FP(n.name,c,i)}if(o===wr.SEQUENCE){let u=pte(e,t,a);return new NP(n.name,u[0],u[1],a.numRleValues,s)}let l=s?Xqe(e,t,a):GP(e,t,a);return new VP(n.name,l,i,s)}function zv(e){return e instanceof bl}const Mi={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function Dte(e){switch(e){case Mi.ID:case Mi.ID|Mi.ID_NULLABLE:case Mi.ID|Mi.ID_LONG:case Mi.ID|Mi.ID_LONG|Mi.ID_NULLABLE:return{nullable:(e&Mi.ID_NULLABLE)!==0,columnScope:uy.FEATURE,type:"scalarType",scalarType:{longID:(e&Mi.ID_LONG)!==0,type:"logicalType",logicalType:ste.ID}};case Mi.GEOMETRY:return{nullable:!1,columnScope:uy.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:zd.GEOMETRY,children:[]}};case Mi.STRUCT:return{nullable:!1,columnScope:uy.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:zd.STRUCT,children:[]}};case Mi.MAP:return{nullable:!0,columnScope:uy.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:zd.MAP,children:[]}};default:return ZWe(e)}}function HWe(e){return e>=Mi.SCALAR_BASE}function Ite(e){return e===Mi.STRUCT||e===Mi.MAP}function qWe(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case In.BOOLEAN:case In.INT_8:case In.UINT_8:case In.INT_32:case In.UINT_32:case In.INT_64:case In.UINT_64:case In.FLOAT:case In.DOUBLE:return!1;case In.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case zd.GEOMETRY:case zd.STRUCT:case zd.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function WWe(e){return e.type==="scalarType"&&e.scalarType?.type==="logicalType"&&e.scalarType.logicalType===ste.ID}function GWe(e){return e.type==="complexType"&&e.complexType?.type==="physicalType"&&e.complexType.physicalType===zd.GEOMETRY}function ZWe(e){let t;switch(e){case 10:case 11:t=In.BOOLEAN;break;case 12:case 13:t=In.INT_8;break;case 14:case 15:t=In.UINT_8;break;case 16:case 17:t=In.INT_32;break;case 18:case 19:t=In.UINT_32;break;case 20:case 21:t=In.INT_64;break;case 22:case 23:t=In.UINT_64;break;case 24:case 25:t=In.FLOAT;break;case 26:case 27:t=In.DOUBLE;break;case 28:case 29:t=In.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:uy.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}const KWe=new TextDecoder,UN="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function JP(e,t){let n=ca(e,t,1)[0];if(n===0)return"";let r=t.get(),i=r+n,a=e.subarray(r,i);return t.add(n),KWe.decode(a)}function YWe(e){let t=e.name,n=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:n}:{type:"complexField",complexField:e.complexType,name:t,nullable:n}}function $te(e,t){let n=ca(e,t,1)[0]>>>0,r=n>=Mi.SCALAR_BASE?Dte(n):null;if(!r)throw Error(`Unsupported field type code ${n}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let i={...r,name:JP(e,t)};if(i.type==="complexType"&&Ite(n)){let a=i.complexType,o=ca(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s<o;s++)a.children[s]=$te(e,t)}return YWe(i)}function XWe(e,t){let n=ca(e,t,1)[0]>>>0,r=Dte(n);if(!r)throw Error(`Unsupported column type code ${n}. Supported: ${UN}`);let i;if(HWe(n))i=JP(e,t);else if(n<Mi.GEOMETRY)i="id";else if(n===Mi.GEOMETRY)i="geometry";else throw Error(`Unsupported column type code ${n}. Supported: ${UN}`);let a={...r,name:i};if(a.type==="complexType"&&Ite(n)){let o=ca(e,t,1)[0]>>>0,s=a.complexType;s.children=Array(o);for(let l=0;l<o;l++)s.children[l]=$te(e,t)}return a}function JWe(e,t){let n={};n.featureTables=[];let r={};if(r.name=JP(e,t),r.name.length===0)throw Error("Missing layer name");let i=ca(e,t,1)[0]>>>0,a=ca(e,t,1)[0]>>>0;r.columns=Array(a);for(let o=0;o<a;o++)r.columns[o]=XWe(e,t);return n.featureTables.push(r),[n,i]}function QWe(e,t,n=!0){let r=new lte(0),i=[];for(;r.get()<e.length;){let a=ca(e,r,1)[0]>>>0,o=r.get()+a;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=ca(e,r,1)[0]>>>0;if(s!==1&&s!==2){r.set(o);continue}let[l,u]=JWe(e,r),c=l.featureTables[0],d=null,f=null,h=[],p=0;for(let v of c.columns){let b=v.name;if(WWe(v)){let x=null;if(v.nullable){let w=Rr(e,r),C=r.get(),T=L1(e,w.numValues,w.byteLength,r);r.set(C+w.byteLength),x=new bl(T,w.numValues)}let _=Rr(e,r);p=x?x.size():_.decompressedCount,d=eGe(e,v,r,b,_,x??p,n)}else if(GWe(v)){let x=ca(e,r,1)[0];if(p===0){let _=r.get();p=Rr(e,r).decompressedCount,r.set(_)}f=yWe(e,x,r,p,t)}else{let x=qWe(v)?ca(e,r,1)[0]:1;if(x===0)continue;let _=BWe(e,r,v,x,p);if(_)if(Array.isArray(_))for(let w of _)h.push(w);else h.push(_)}}let g=new SHe(c.name,f,d,h,u);i.push(g),r.set(o)}return i}function eGe(e,t,n,r,i,a,o=!1){let s=t.scalarType?.longID?In.UINT_64:In.UINT_32,l=typeof a=="number"?void 0:a,u=yw(i,a,e,
vendor: 5,632 bytes, line 23
23n,s===In.UINT_64?"int64":"int32");if(s===In.UINT_32)switch(u){case wr.FLAT:return new FP(r,Xi(e,n,i,void 0,l),a);case wr.SEQUENCE:{let c=pte(e,n,i);return new NP(r,c[0],c[1],i.numRleValues,!1)}case wr.CONST:return new VP(r,GP(e,n,i),a,!1)}switch(u){case wr.FLAT:return o?new zP(r,Jqe(e,n,i,l),a):new _te(r,ZP(e,n,i,l),a);case wr.SEQUENCE:{let c=mte(e,n,i);return new bte(r,c[0],c[1],i.numRleValues,!1)}case wr.CONST:return new kte(r,yte(e,n,i),a,!1)}throw Error("Vector type not supported for id column.")}var tGe=class{constructor(e,t){switch(this._featureData=e,this.properties=this._featureData.properties||{},this._featureData.geometry?.type){case ia.POINT:case ia.MULTIPOINT:this.type=1;break;case ia.LINESTRING:case ia.MULTILINESTRING:this.type=2;break;case ia.POLYGON:case ia.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=t,this.id=Number(this._featureData.id)}loadGeometry(){let e=[];for(let t of this._featureData.geometry.coordinates){let n=[];for(let r of t)n.push(new we(r.x,r.y));e.push(n)}return e}},nGe=class{constructor(e){this.features=[],this.featureTable=e,this.name=e.name,this.extent=e.extent,this.version=2,this.features=e.getFeatures(),this.length=this.features.length}feature(e){return new tGe(this.features[e],this.extent)}},rGe=class{constructor(e){this.layers={};let t=QWe(new Uint8Array(e));this.layers=t.reduce((n,r)=>({...n,[r.name]:new nGe(r)}),{})}},iGe=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new kT(He,16,0),this.grid3D=new kT(He,16,0),this.featureIndexArray=new QQ,this.promoteId=t}insert(e,t,n,r,i,a){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);let s=a?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let c of l)u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new rGe(this.rawTileData).layers:this.vtLayers=new DVe(new Nee(this.rawTileData)).layers,this.sourceLayerCoder=new wHe(this.vtLayers?Object.keys(this.vtLayers).sort():[Zb])),this.vtLayers}query(e,t,n,r){this.loadVTLayers();let i=e.params,a=He/e.tileSize/e.scale,o=P2(i.filter,"queryRenderedFeatures filter",i.globalState),s=e.queryGeometry,l=e.queryPadding*a,u=fl.fromPoints(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),d=fl.fromPoints(e.cameraQueryGeometry).expandBy(l),f=this.grid3D.query(d.minX,d.minY,d.maxX,d.maxY,(g,v,b,x)=>dNe(e.cameraQueryGeometry,g-l,v-l,b+l,x+l));for(let g of f)c.push(g);c.sort(oGe);let h={},p;for(let g of c){if(g===p)continue;p=g;let v=this.featureIndexArray.get(g),b=null;this.loadMatchingFeature(h,v.bucketIndex,v.sourceLayerIndex,v.featureIndex,o,i.layers,i.availableImages,t,n,r,(x,_,w)=>(b||=Tp(x),_.queryIntersectsFeature({queryGeometry:s,feature:x,featureState:w,geometry:b,zoom:this.z,transform:e.transform,pixelsToTileUnits:a,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return h}loadMatchingFeature(e,t,n,r,i,a,o,s,l,u,c){let d=this.bucketLayerIDs[t];if(a&&!d.some(g=>a.has(g)))return;let f=this.sourceLayerCoder.decode(n),h=this.vtLayers[f].feature(r);if(i.needGeometry){let g=kp(h,!0);if(!i.filter(new Zn(this.tileID.overscaledZ),g,this.tileID.canonical))return}else if(!i.filter(new Zn(this.tileID.overscaledZ),h))return;let p=this.getId(h,f);for(let g of d){if(a&&!a.has(g))continue;let v=s[g];if(!v)continue;let b={};p&&u&&(b=u.getState(v.sourceLayer||"_geojsonTileLayer",p));let x=St({},l[g]);x.paint=HN(x.paint,v.paint,h,b,o),x.layout=HN(x.layout,v.layout,h,b,o);let _=!c||c(h,v,b);if(!_)continue;let w=new ate(h,this.z,this.x,this.y,p);w.layer=x;let C=e[g];C===void 0&&(C=e[g]=[]),C.push({featureIndex:r,feature:w,intersectionZ:_})}}lookupSymbolFeatures(e,t,n,r,i,a,o,s){let l={};this.loadVTLayers();let u=P2(i.filterSpec,"queryRenderedFeatures symbol filter",i.globalState);for(let c of e)this.loadMatchingFeature(l,n,r,c,u,a,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let n of t)if(e===n)return!0;return!1}getId(e,t){let n=e.id;if(this.promoteId){let r=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];n=e.properties[r],typeof n=="boolean"&&(n=Number(n)),n===void 0&&e.properties?.cluster&&this.promoteId&&(n=Number(e.properties.cluster_id))}return n}};pt("FeatureIndex",iGe,{omit:["rawTileData","sourceLayerCoder"]});function aGe(e){return typeof e=="object"&&!!e&&"evaluate"in e}function HN(e,t,n,r,i){return tP(e,(a,o)=>{let s=t instanceof sw?t.get(o):null;return aGe(s)?s.evaluate(n,r,void 0,i):s})}function oGe(e,t){return t-e}var sGe=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){let r=e.wrapped().key;this.data[r]===void 0&&(this.data[r]=[]);let i={value:t,timeout:void 0};if(n!==void 0&&(i.timeout=setTimeout(()=>{this.remove(e,i)},n)),this.data[r].push(i),this.order.push(r),this.order.length>this.max){let a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}
23get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let n=e.wrapped().key,r=t===void 0?0:this.data[n].indexOf(t),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),this.data[n].length===0&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let n in this.data)for(let r of this.data[n])e(r.value)||t.push(r);for(let n of t)this.remove(n.value.tileID,n)}};var lGe="6.11.2";function Lte(){var e=new Oi(4);return Oi!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function uGe(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*a-i*r;return o?(o=1/o,e[0]=a*o,e[1]=-r*o,e[2]=-i*o,e[3]=n*o,e):null}function cGe(e){return e[0]*e[3]-e[2]*e[1]}function dGe(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+a*s,e[1]=i*l+o*s,e[2]=r*-s+a*l,e[3]=i*-s+o*l,e}let E9,qN,M9;const ho={frame(e,t,n,r){let i=r||window,a=i.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=s5(e.signal,"abort",()=>{o(),i.cancelAnimationFrame(a),n(new Mv(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((n,r)=>{this.frame(e,n,r,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(XA()&&!iJ())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let n=window.document.createElement("canvas");n.width=e.width,n.height=e.height,t=n.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return E9||=document.createElement("a"),E9.href=e,E9.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return M9===void 0?matchMedia?(qN??=matchMedia("(prefers-reduced-motion: reduce)"),qN.matches):!1:M9},set prefersReducedMotion(e){M9=e}},fGe=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};function Nn(){return fGe.getCurrentTime()}const hGe=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),pGe=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),mGe=new Set(["href","src"]),gGe=new Set(["http:","https:","mailto:"]);let WN;function A9(){return WN??={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get},WN}var tr,nn=(tr=class{static create(t,n,r){let i=window.document.createElement(t);return n!==void 0&&(i.className=n),r&&r.appendChild(i),i}static createNS(t,n){return window.document.createElementNS(t,n)}static disableDrag(){tr.docStyle&&tr.selectProp&&(tr.userSelect=tr.docStyle[tr.selectProp],tr.docStyle[tr.selectProp]="none")}static enableDrag(){tr.docStyle&&tr.selectProp&&(tr.docStyle[tr.selectProp]=tr.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",tr.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",tr.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",tr.suppressClickInternal,!0)},0)}static getScale(t){let n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth||1,y:n.height/t.offsetHeight||1,boundingClientRect:n}}static getPoint(t,n,r){let i=n.boundingClientRect;return new we((r.clientX-i.left)/n.x-t.clientLeft,(r.clientY-i.top)/n.y-t.clientTop)}static mousePos(t,n){let r=tr.getScale(t);return tr.getPoint(t,r,n)}static touchPos(t,n){let r=[],i=tr.getScale(t);for(let a of n)r.push(tr.getPoint(t,i,a));return r}static sanitize(t){let n=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:r,remove:i}=A9();for(let o of Array.from(r.call(n,"*")))tr.isAllowedElement(o)?tr.removeDisallowedAttributes(o):i.call(o);let a=document.createDocumentFragment();return a.append(...n.childNodes),a}static isAllowedElement(t){let{namespaceURI:n,localName:r}=A9();return n.call(t)==="http://www.w3.org/1999/xhtml"&&hGe.has(r.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:n,getAttribute:r,removeAttribute:i}=A9();for(let a of n.call(t))tr.isAllowedAttribute(a,r.call(t,a))||i.call(t,a)}static isAllowedAttribute(t,n){if(!pGe.has(t)&&!t.startsWith("aria-"))return!1;if(!mGe.has(t))return!0;
vendor: 21,294 bytes, line 23
23try{return gGe.has(new URL(n,"https://maplibre.invalid/").protocol)}catch{return!1}}},tr.docStyle=typeof window<"u"&&window.document?.documentElement.style,tr.selectProp=!tr.docStyle||"userSelect"in tr.docStyle?"userSelect":"webkitUserSelect",tr);let tu;(function(e){let t,n,r,i;e.resetRequestQueue=()=>{t=[],n=0,r=0,i={}},e.addThrottleControl=d=>{let f=r++;return i[f]=d,f},e.removeThrottleControl=d=>{delete i[d],u()};let a=()=>{for(let d of Object.keys(i))if(i[d]())return!0;return!1};async function o(d,f,h,p,g=!0,v){let b=await d.transformRequest(f,h);return nP(p.signal),tu.getImage(b,p,g,v)}e.transformAndGetImage=o,e.getImage=(d,f,h=!0,p)=>new Promise((g,v)=>{d.headers||={},d.headers.accept="image/webp,*/*",St(d,{type:"image"});let b={abortController:f,requestParameters:d,supportImageRefresh:h,imageBitmapOptions:p,state:"queued",onError:x=>{v(x)},onSuccess:x=>{g(x)}};t.push(b),u()});let s=(d,f)=>typeof createImageBitmap=="function"?vBe(d,f):_Be(d),l=async d=>{d.state="running";let{requestParameters:f,supportImageRefresh:h,imageBitmapOptions:p,onError:g,onSuccess:v,abortController:b}=d,x=h===!1&&!p&&!Fm(self)&&!mJ(f.url)&&(!f.headers||Object.keys(f.headers).reduce((w,C)=>w&&C==="accept",!0));n++;let _=x?c(f,b):H6(f,b);try{let w=await _;delete d.abortController,d.state="completed",w.data instanceof HTMLImageElement||Ah(w.data)?v(w):!w.data||w.data.byteLength===0?v({data:null,cacheControl:w.cacheControl,expires:w.expires}):v({data:await s(w.data,p),cacheControl:w.cacheControl,expires:w.expires})}catch(w){delete d.abortController,g(fa(w))}finally{n--,u()}},u=()=>{let d=a()?tf.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:tf.MAX_PARALLEL_IMAGE_REQUESTS;for(let f=n;f<d&&t.length>0;f++){let h=t.shift();if(h.abortController.signal.aborted){f--;continue}l(h)}},c=(d,f)=>new Promise((h,p)=>{let g=new Image,v=d.url,b=d.credentials;b&&b==="include"?g.crossOrigin="use-credentials":(b&&b==="same-origin"||!yJ(v))&&(g.crossOrigin="anonymous"),f.signal.addEventListener("abort",()=>{g.src="",p(new Mv(f.signal.reason))}),g.fetchPriority="high",g.onload=()=>{g.onerror=g.onload=null,h({data:g})},g.onerror=()=>{g.onerror=g.onload=null,!f.signal.aborted&&p(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},g.src=v})})(tu||={}),tu.resetRequestQueue();var yGe=class{constructor(e){this._transformRequestFn=e??null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},Di=class extends Us{},Pt=class extends Di{},Ck=class extends Di{constructor(e={}){super("style.load",e)}},xs=class extends Di{constructor(e,t={}){super(e,t),this.dataType="style"}},yr=class extends Di{constructor(e,t={}){super(e,t),this.dataType="source"}},so=class extends Di{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,n,r={}){n=n instanceof MouseEvent?n:new MouseEvent(e,n);let i=nn.mousePos(t.getCanvas(),n),a=t.unproject(i);super(e,St({point:i,lngLat:a,originalEvent:n},r)),this._defaultPrevented=!1,this.target=t}},cy=class extends Di{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,n){let r=e==="touchend"?n.changedTouches:n.touches,i=nn.touchPos(t.getCanvasContainer(),r),a=i.map(l=>t.unproject(l)),o=i.reduce((l,u,c,d)=>l.add(u.div(d.length)),new we(0,0)),s=t.unproject(o);super(e,{points:i,point:o,lngLats:a,lngLat:s,originalEvent:n}),this._defaultPrevented=!1}},Rte=class extends Di{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},Tk=class extends Di{},Ote=class extends Di{constructor(e={}){super("terrain",e)}},Bte=class extends Di{constructor(e={}){super("projectiontransition",e)}},Kb=class extends Di{},Fte=class extends Di{constructor(e={}){super("styleimagemissing",e)}};function vGe(e,t){let n={};for(let r in e)r!=="ref"&&(n[r]=e[r]);return PBe.forEach(r=>{r in t&&(n[r]=t[r])}),n}function GN(e){e=e.slice();let t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].id]=e[n];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=vGe(e[n],t[e[n].ref]));return e}function qn(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!qn(e[n],t[n]))return!1;return!0}if(typeof e=="object"&&e&&t!==null){if(typeof t!="object"||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!qn(e[n],t[n]))return!1;return!0}return e===t}function Ro(e,t){e.push(t)}function zte(e,t,n){Ro(n,{command:"addSource",args:[e,t[e]]})}function Nte(e,t,n){Ro(t,{command:"removeSource",args:[e]}),n[e]=!0}function _Ge(e,t,n,r){Nte(e,n,r),zte(e,t,n)}function bGe(e,t,n){let r;for(r in e[n])if(Object.prototype.hasOwnProperty.call(e[n],r)&&r!=="data"&&!qn(e[n][r],t[n][r]))return!1;for(r in t[n])if(Object.prototype.hasOwnProperty.call(t[n],r)&&r!=="data"&&!qn(e[n][r],t[n][r]))return!1;return!0}function xGe(e,t,n,r){e||={},t||={};let i;for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Object.prototype.hasOwnProperty.call(t,i)||Nte(i,n,r));for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(Object.prototype.hasOwnProperty.call(e,i)?qn(e[i],t[i])||(e[i].type==="geojson"&&t[i].type==="geojson"&&bGe(e,t,i)?Ro(n,{command:"setGeoJSONSourceData",args:[i,t[i].data]}):_Ge(i,t,n,r)):zte(i,t,n))}function ZN(e,t,n,r,i){Ro(t,{command:i,args:[n,r,e[r]]})}function X3(e,t,n,r,i){e||={},t||={};for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&(qn(e[a],t[a])||ZN(t,n,r,a,i));for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&!Object.prototype.hasOwnProperty.call(e,a)&&(qn(e[a],t[a])||ZN(t,n,r,a,i))}function KN(e){return e.id}function YN(e,t){return e[t.id]=t,e}function wGe(e,t,n){e||=[],t||=[];let r=e.map(KN),i=t.map(KN),a=e.reduce(YN,{}),o=t.reduce(YN,{}),s=r.slice(),l=Object.create(null),u,c,d,f,h;for(let p=0,g=0;p<r.length;p++)u=r[p],Object.prototype.hasOwnProperty.call(o,u)?g++:(Ro(n,{command:"removeLayer",args:[u]}),s.splice(s.indexOf(u,g),1));for(let p=0,g=0;p<i.length;p++)u=i[i.length-1-p],s[s.length-1-p]!==u&&(Object.prototype.hasOwnProperty.call(a,u)?(Ro(n,{command:"removeLayer",args:[u]}),s.splice(s.lastIndexOf(u,s.length-g),1)):g++,f=s[s.length-p],Ro(n,{command:"addLayer",args:[o[u],f]}),s.splice(s.length-p,0,u),l[u]=!0);for(let p=0;p<i.length;p++)if(u=i[p],c=a[u],d=o[u],!(l[u]||qn(c,d))){if(!qn(c.source,d.source)||!qn(c["source-layer"],d["source-layer"])||!qn(c.type,d.type)){Ro(n,{command:"removeLayer",args:[u]}),f=s[s.lastIndexOf(u)+1],Ro(n,{command:"addLayer",args:[d,f]});continue}for(h in X3(c.layout,d.layout,n,u,"setLayoutProperty"),X3(c.paint,d.paint,n,u,"setPaintProperty"),qn(c.filter,d.filter)||Ro(n,{command:"setFilter",args:[u,d.filter]}),(!qn(c.minzoom,d.minzoom)||!qn(c.maxzoom,d.maxzoom))&&Ro(n,{command:"setLayerZoomRange",args:[u,d.minzoom,d.maxzoom]}),c)Object.prototype.hasOwnProperty.call(c,h)&&h!=="layout"&&h!=="paint"&&h!=="filter"&&h!=="metadata"&&h!=="minzoom"&&h!=="maxzoom"&&(h.indexOf("paint.")===0?X3(c[h],d[h],n,u,"setPaintProperty"):qn(c[h],d[h])||Ro(n,{command:"setLayerProperty",args:[u,h,d[h]]}));for(h in d)Object.prototype.hasOwnProperty.call(d,h)&&!Object.prototype.hasOwnProperty.call(c,h)&&h!=="layout"&&h!=="paint"&&h!=="filter"&&h!=="metadata"&&h!=="minzoom"&&h!=="maxzoom"&&(h.indexOf("paint.")===0?X3(c[h],d[h],n,u,"setPaintProperty"):qn(c[h],d[h])||Ro(n,{command:"setLayerProperty",args:[u,h,d[h]]}))}}function SGe(e,t){if(!e)return[{command:"setStyle",args:[t]}];let n=[];try{if(!qn(e.version,t.version))return[{command:"setStyle",args:[t]}];qn(e.center,t.center)||n.push({command:"setCenter",args:[t.center]}),qn(e.state,t.state)||n.push({command:"setGlobalState",args:[t.state]}),qn(e.centerAltitude,t.centerAltitude)||n.push({command:"setCenterAltitude",args:[t.centerAltitude]}),qn(e.zoom,t.zoom)||n.push({command:"setZoom",args:[t.zoom]}),qn(e.bearing,t.bearing)||n.push({command:"setBearing",args:[t.bearing]}),qn(e.pitch,t.pitch)||n.push({command:"setPitch",args:[t.pitch]}),qn(e.roll,t.roll)||n.push({command:"setRoll",args:[t.roll]}),qn(e.sprite,t.sprite)||n.push({command:"setSprite",args:[t.sprite]}),qn(e.glyphs,t.glyphs)||n.push({command:"setGlyphs",args:[t.glyphs]}),qn(e["font-faces"],t["font-faces"])||n.push({command:"setFontFaces",args:[t["font-faces"]]}),qn(e.transition,t.transition)||n.push({command:"setTransition",args:[t.transition]}),qn(e.light,t.light)||n.push({command:"setLight",args:[t.light]});let r=!qn(e.terrain,t.terrain);r&&!t.terrain&&n.push({command:"setTerrain",args:[void 0]}),qn(e.sky,t.sky)||n.push({command:"setSky",args:[t.sky]}),qn(e.projection,t.projection)||n.push({command:"setProjection",args:[t.projection]});let i={},a=[];xGe(e.sources,t.sources,a,i);let o=[];e.layers&&e.layers.forEach(s=>{"source"in s&&i[s.source]?n.push({command:"removeLayer",args:[s.id]}):o.push(s)}),n=n.concat(a),wGe(o,t.layers,n),r&&t.terrain&&n.push({command:"setTerrain",args:[t.terrain]})}catch(r){console.warn("Unable to compute style diff:",r),n=[{command:"setStyle",args:[t]}]}return n}function CGe(){let e={},t=Ie.$version;for(let n in Ie.$root){let r=Ie.$root[n];if(r.required){let i=null;i=n==="version"?t:r.type==="array"?[]:{},i!=null&&(e[n]=i)}}return e}function Yb(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let n=[];for(let{id:r,url:i}of e){let a=`${r}${i}`;n.includes(a)||(n.push(a),t.push({id:r,url:i}))}}return t}function XN(e,t,n){try{let r=new URL(e);return r.pathname+=`${t}${n}`,r.toString()}catch{throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}async function TGe(e,t,n,r){let i=Yb(e),a=n>1?"@2x":"",o={},s={};for(let{id:l,url:u}of i){let c=await t.transformRequest(XN(u,a,".json"),"SpriteJSON");o[l]=q6(c,r);let d=await t.transformRequest(XN(u,a,".png"),"SpriteImage");s[l]=tu.getImage(d,r)}return await Promise.all([...Object.values(o),...Object.values(s)]),kGe(o,s)}async function kGe(e,t){let n={};for(let r in e){n[r]={};let i=(await t[r]).data;if(!i)throw Error(`Could not load sprite image for ${r}: the response is empty`);let a=ho.getImageCanvasContext(i),o=(await e[r]).data;for(let s in o){let{width:l,height:u,x:c,y:d,sdf:f,pixelRatio:h,stretchX:p,stretchY:g,content:v,textFitWidth:b,textFitHeight:x}=o[s],_={width:l,height:u,x:c,y:d,context:a};n[r][s]={data:null,pixelRatio:h,sdf:f,stretchX:p,stretchY:g,content:v,textFitWidth:b,textFitHeight:x,spriteData:_}}}return n}var EGe=class extends Ci{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:n}of this.requestors)n(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let n=t.spriteData;t.data=new gr({width:n.width,height:n.height},n.context.getImageData(n.x,n.y,n.width,n.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let n=!0,r=t.data||t.spriteData;return this._validateStretch(t.stretchX,r?.width)||(this.fire(new Et(Error(`Image "${e}" has invalid "stretchX" value`))),n=!1),this._validateStretch(t.stretchY,r?.height)||(this.fire(new Et(Error(`Image "${e}" has invalid "stretchY" value`))),n=!1),this._validateContent(t.content,t)||(this.fire(new Et(Error(`Image "${e}" has invalid "content" value`))),n=!1),n}_validateStretch(e,t){if(!e)return!0;let n=0;for(let r of e){if(r[0]<n||r[1]<r[0]||t<r[1])return!1;n=r[1]}return!0}_validateContent(e,t){if(!e)return!0;if(e.length!==4)return!1;let n=t.spriteData,r=n?.width||t.data.width,i=n?.height||t.data.height;return e[0]<0||r<e[0]||e[1]<0||i<e[1]||e[2]<0||r<e[2]||e[3]<0||i<e[3]||e[2]<e[0]?!1:e[3]>=e[1]}updateImage(e,t,n=!0){let r=this.images[e];if(n){let i=r.data||r.spriteData;if(i.width!==t.data.width||i.height!==t.data.height)throw Error(`size mismatch between old image (${i.width}x${i.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=(r.version??0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,t.userImage?.onRemove&&t.userImage.onRemove())}listImages(){return this._imagesIds??=Object.keys(this.images),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){let n=this._spriteImagesIds[e]??[],r=[];for(let o in t){let s=this._getSpriteImageId(e,o);r.push(s),s in this.images?this.updateImage(s,t[o],!1):this.addImage(s,t[o])}let i=new Set(r),a=n.filter(o=>!i.has(o));for(let o of a)this.removeImage(o);return this._spriteImagesIds[e]=r,{loaded:r,removed:a}}removeSpriteImages(e){let t=this._spriteImagesIds[e]??[];for(let n of t)this.removeImage(n);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,n)=>{let r=!0;if(!this.isLoaded())for(let i of e)this.images[i]||(r=!1);this.isLoaded()||r?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}async _getImagesForIds(e){let t=new Set(e.filter(i=>!this.getImage(i))),n=this.missingImageResolver;n&&await Promise.allSettled(Array.from(t,i=>n(i)));let r={};for(let i of e){let a=this.getImage(i);a&&(t.delete(i),r[i]={data:a.data.clone(),pixelRatio:a.pixelRatio,sdf:a.sdf,version:a.version,stretchX:a.stretchX,stretchY:a.stretchY,content:a.content,textFitWidth:a.textFitWidth,textFitHeight:a.textFitHeight,hasRenderCallback:!!a.userImage?.render,isWebGLImage:a.isWebGLImage})}for(let i of t)this.fire(new Fte({id:i})),hn(`Image "${i}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return r}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let n=this.getImage(t);n||hn(`Image with ID: "${t}" was not found`),pUe(n)&&this.updateImage(t,n)}}cloneImages(){let e={};for(let t in this.images){let n=this.images[t];e[t]={...n,data:n.data?n.data.clone():null}}return e}},MGe=class{constructor(e){this._imageManager=e,this._entries={},this._image=new gr({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&=(this._texture.destroy(),null),this._entries={},this._image=new gr({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let n=this._entries[e];if(n?.image!==t){let r={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:r,position:new RP(r,t),image:t}}else if(n.position.version!==t.version)n.position.version=t.version;else return n.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&=(this._texture.update(this._image),!1):(this._texture=new xi(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let i in this._entries)this._imageManager.getImage(i)||delete this._entries[i];let e=[];for(let i in this._entries)e.push(this._entries[i].bin);let{w:t,h:n}=Vee(e),r=this._image;r.resize({width:t||1,height:n||1});for(let i in this._entries){let{bin:a}=this._entries[i],o=a.x+1,s=a.y+1,l=this._entries[i].image.data,u=l.width,c=l.height;gr.copy(l,r,{x:0,y:0},{x:o,y:s},{width:u,height:c}),gr.copy(l,r,{x:0,y:c-1},{x:o,y:s-1},{width:u,height:1}),gr.copy(l,r,{x:0,y:0},{x:o,y:s+c},{width:u,height:1}),gr.copy(l,r,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:c}),gr.copy(l,r,{x:0,y:0},{x:o+u,y:s},{width:1,height:c})}this._dirty=!0}};const kk=1114111,AGe={start:0,end:kk};let PGe=0;function DGe(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,i,a]=t;return i.length+a.length>6?null:JN(parseInt(`${i}${"0".repeat(a.length)}`,16),parseInt(`${i}${"f".repeat(a.length)}`,16))}let n=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!n)return null;let r=parseInt(n[1],16);return JN(r,n[2]===void 0?r:parseInt(n[2],16))}function JN(e,t){return e>t||e>kk?null:{start:e,end:Math.min(t,kk)}}function IGe(e,t){return e.ranges.some(({start:n,end:r})=>t>=n&&t<=r)}var $Ge=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,n]of Object.entries(e??{})){let r=Array.isArray(n)?n:[n];this._faces[t]=r.map(i=>this._declareFontFace(t,i)).filter(i=>i!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}async getFontFamily(e,t){for(let n of e.split(","))for(let r of this._faces[n.trim()]??[])if(IGe(r,t)&&(r.loaded??=this._loadFontFace(r),await r.loaded))return r.family;return null}_declareFontFace(e,t){let n=typeof t=="string"?{url:t}:t;if(typeof n?.url!="string")return hn(`Ignoring the font face declared for "${e}": it has no URL.`),null;let r=`maplibre-gl-font-face-${PGe++}`,i=n["unicode-range"];if(!i?.length)return{url:n.url,ranges:[AGe],family:r};let a=[];for(let o of i){let s=DGe(o);if(!s){hn(`Ignoring the unicode range "${o}" of the font face at ${n.url}: it is not a valid range.`);continue}a.push(s)}return a.length?{url:n.url,ranges:a,family:r}:null}async _loadFontFace(e){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return hn(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,await this._downloadFontFile(e.url)),Object.values(this._faces).some(n=>n.includes(e))?(document.fonts.add(t),this._registered.add(t),await t.load(),!0):!1}catch(n){return t&&this._unregister(t),hn(`Ignoring the font face at ${e.url}: ${fa(n).message}`),!1}}async _downloadFontFile(e){let t=await this.requestManager.transformRequest(e,"Glyphs"),n=await gJ(t,new AbortController);if(!n?.data)throw Error(`the response was empty for the font file at ${e}`);return n.data}_unregister(e){document.fonts?.delete(e),this._registered.delete(e)}_unregisterAll(){for(let e of this._registered)document.fonts?.delete(e);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}};const Ek=1e20,QP=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;QP[e]=t*Math.abs(t)}QP[255]=-1e20;var LGe=class{constructor({fontSize:e=24,buffer:t=3,radius:n=8,cutoff:r=.25,fontFamily:i="sans-serif",fontWeight:a="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=n,this.cutoff=r,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),c=this.ctx=u.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${a} ${e}px ${i}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:i,actualBoundingBoxRight:a}=this.ctx.measureText(e),o=Math.ceil(n),s=Math.floor(-i),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(a)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(r))),c=l+2*this.buffer,d=u+2*this.buffer,f=Math.max(c*d,0),h=new Uint8ClampedArray(f),p={data:h,width:c,height:d,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return p;let{ctx:g,buffer:v,gridInner:b,gridOuter:x}=this;this.lang&&(g.lang=this.lang),g.clearRect(v,v,l,u),g.fillText(e,v-s,v+o);let _=g.getImageData(v,v,l,u);x.fill(Ek,0,f),b.fill(0,0,f);let w=3;for(let A=0;A<u;A++){let P=(A+v)*c+v;for(let D=0;D<l;D++,w+=4,P++){let $=_.data[w];if($===0)continue;let O=QP[$];x[P]=Math.max(0,O),b[P]=Math.max(0,-O)}}QN(x,0,0,c,d,c,this.f,this.v,this.z);let C=Math.min(v,1);QN(b,v-C,v-C,l+2*C,u+2*C,c,this.f,this.v,this.z);let T=255/this.radius,k=255*(1-this.cutoff);for(let A=0;A<f;A++){let P=Math.sqrt(x[A])-Math.sqrt(b[A]);h[A]=Math.round(k-T*P)}return p}};function QN(e,t,n,r,i,a,o,s,l){for(let u=t;u<t+r;u++)eV(e,n*a+u,a,i,o,s,l);for(let u=n;u<n+i;u++)eV(e,u*a+t,1,r,o,s,l)}function eV(e,t,n,r,i,a,o){a[0]=0,o[0]=-1e20,o[1]=Ek,i[0]=e[t];for(let s=1,l=0,u=0;s<r;s++){i[s]=e[t+s*n];let c=s*s;do{let d=a[l];u=(i[s]-i[d]+c-d*d)/(s-d)/2}while(u<=o[l]&&--l>-1);l++,a[l]=s,o[l]=u,o[l+1]=Ek}for(let s=0,l=0;s<r;s++){for(;o[l+1]<s;)l++;let u=a[l],c=s-u;e[t+s*n]=i[u]+c*c}}const RGe=Ie.layout_symbol["text-font"].default.join(","),OGe=(e,t)=>
vendor: 4,913 bytes, line 23
23{let n=new LGe(e);return n.buffer=t,n};var BGe=class{constructor(e,t,n,r=OGe){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=n,this.fontFaceManager=new $Ge(e),this.createRasterizer=r}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}async getGlyphs(e){let t=[];for(let i in e)for(let a in e[i])for(let o of e[i][a])t.push(this._getAndCacheGlyphsPromise(i,o,a));let n=await Promise.all(t),r={};for(let{stack:i,id:a,variant:o,glyph:s}of n)r[i]||={},r[i][o]||={},r[i][o][a]=s&&{id:s.id,bitmap:s.bitmap.clone(),metrics:s.metrics};return r}async _getAndCacheGlyphsPromise(e,t,n){this.entries[e]??={glyphs:{default:{}},requests:{},ranges:{}};let r=this.entries[e],i=r.glyphs[n]||={},a=i[t];if(a!==void 0)return{stack:e,id:t,variant:n,glyph:a};if(n!=="default")return i[t]=null,{stack:e,id:t,variant:n,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?await this.fontFaceManager.getFontFamily(e,o):null;return s?(a=i[t]=await this._drawGlyph(r,e,t,s),{stack:e,id:t,variant:n,glyph:a}):!this.url||C5(t)||this._charUsesLocalIdeographFontFamily(o)?(a=i[t]=await this._drawGlyph(r,e,t),{stack:e,id:t,variant:n,glyph:a}):{...await this._downloadAndCacheRangePromise(e,t),variant:n}}async _downloadAndCacheRangePromise(e,t){let n=t.codePointAt(0),r=this.entries[e],i=Math.floor(n/256);if(r.ranges[i])return{stack:e,id:t,glyph:null};r.requests[i]||=this._loadGlyphRange(e,i);try{let a=await r.requests[i];for(let o in a)r.glyphs.default[String.fromCodePoint(+o)]=a[+o];return r.ranges[i]=!0,{stack:e,id:t,glyph:a[n]||null}}catch(a){let o=r.glyphs.default[t]=await this._drawGlyph(r,e,t);return this._warnOnMissingGlyphRange(o,i,n,fa(a)),{stack:e,id:t,glyph:o}}}async _loadGlyphRange(e,t){let n=t*256,r=n+255,i=await this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${n}-${r}`),"Glyphs"),a=await gJ(i,new AbortController);if(!a?.data)throw Error(`Could not load glyph range. range: ${t}, ${n}-${r}`);let o={};for(let s of hUe(a.data))o[s.id]=s;return o}_warnOnMissingGlyphRange(e,t,n,r){let i=t*256,a=i+255,o=n.toString(16).padStart(4,"0").toUpperCase();hn(`Unable to load glyph range ${t}, ${i}-${a}. Rendering codepoint U+${o} locally instead. ${r}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&yje(e)}async _drawGlyph(e,t,n,r){let i=(await this._getTinySDF(e,t,n,r)).draw(n),a=new RegExp("^\\p{gc=Cf}+$","u").test(n);return{id:n.codePointAt(0),bitmap:new AP({width:i.width||60,height:i.height||60},i.data),metrics:{width:a?0:i.glyphWidth/2||24,height:i.glyphHeight/2||24,left:i.glyphLeft/2+.5||0,top:i.glyphTop/2-27.5||-8,advance:a?0:i.glyphAdvance/2||24,isDoubleResolution:!0}}}_getTinySDF(e,t,n,r){let i=C5(n);if(r){let l=i?"clusterTinySDFs":"fontFaceTinySDFs";return e[l]??={},e[l][r]||=this._createTinySDF(r,!1,i?3:1),e[l][r]}let a=t===RGe&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(n.codePointAt(0)),o=a?this.localIdeographFontFamily:t;if(i)return e.clusterTinySDFs??={},e.clusterTinySDFs[o]||=this._createTinySDF(o,!0,3),e.clusterTinySDFs[o];let s=a?"ideographTinySDF":"tinySDF";return e[s]||=this._createTinySDF(o),e[s]}async _createTinySDF(e,t=!0,n=1){let r=e?e.split(","):[];r.push("sans-serif");let i=r.map(s=>/[-\w]+/.test(s)?s:`'${CSS.escape(s)}'`).join(","),a=t?this._fontWeight(r[0]):void 0,o=t?this._fontStyle(r[0]):"normal";if(typeof document<"u"&&document.fonts?.load)try{await document.fonts.load(`${o} ${a||"normal"} 48px ${i}`)}catch(s){hn(`Failed to load font "${i}": ${fa(s).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(n-1)/4)),radius:16,cutoff:.25,fontFamily:i,fontWeight:a,fontStyle:o,lang:this.lang},6)}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},n;for(let[r,i]of Object.entries(t))RegExp(`\\b${r}\\b`,"i").test(e)&&(n=`${i}`);return n}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}};let FGe;const zGe=()=>FGe||=new Wi({anchor:new dt(Ie.light.anchor,"anchor"),position:new dt(Ie.light.position,"position"),color:new dt(Ie.light.color,"color"),intensity:new dt(Ie.light.intensity,"intensity")});var NGe=class extends Ci{constructor(e,t){super(),this._transitionable=new ow(zGe(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return mBe(this.properties.get("position"))}setLight(e,t={}
vendor: 123,172 bytes, lines 23-50
23){this._validate(io.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,n){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,n)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,n){return Rv(this,e,{value:t},n)}};let VGe;const jGe=()=>VGe||=new Wi({"sky-color":new dt(Ie.sky["sky-color"],"sky-color"),"horizon-color":new dt(Ie.sky["horizon-color"],"horizon-color"),"fog-color":new dt(Ie.sky["fog-color"],"fog-color"),"fog-ground-blend":new dt(Ie.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new dt(Ie.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new dt(Ie.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new dt(Ie.sky["atmosphere-blend"],"atmosphere-blend")});var UGe=class extends Ci{constructor(e,t){super(),this._transitionable=new ow(jGe(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Zn(0))}setSky(e,t={}){return!this._validate(io.sky,e,t)&&(e||={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0},this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,n){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,n)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,n={}){return Rv(this,e,{value:t},n)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},HGe=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){let n=e.join(",")+String(t);return this.dashEntry[n]||=this.addDash(e,t),this.dashEntry[n]}getDashRanges(e,t,n){let r=e.length%2==1,i=[],a=r?-e[e.length-1]*n:0,o=e[0]*n,s=!0;i.push({left:a,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u<e.length;u++){s=!s;let c=e[u];a=l*n,l+=c,o=l*n,i.push({left:a,right:o,isDash:s,zeroLength:c===0})}return i}addRoundDash(e,t,n){let r=t/2;for(let i=-n;i<=n;i++){let a=this.nextRow+n+i,o=this.width*a,s=0,l=e[s];for(let u=0;u<this.width;u++){u/l.right>1&&(l=e[++s]);let c=Math.abs(u-l.left),d=Math.abs(u-l.right),f=Math.min(c,d),h,p=i/n*(r+1);if(l.isDash){let g=r-Math.abs(p);h=Math.sqrt(f*f+g*g)}else h=r-Math.sqrt(f*f+p*p);this.data[o+u]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):l?.isDash===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],n=e[e.length-1];t.isDash===n.isDash&&(t.left=n.left-this.width,n.right=t.right+this.width);let r=this.width*this.nextRow,i=0,a=e[i];for(let o=0;o<this.width;o++){o/a.right>1&&(a=e[++i]);let s=Math.abs(o-a.left),l=Math.abs(o-a.right),u=Math.min(s,l),c=a.isDash?u:-u;this.data[r+o]=Math.max(0,Math.min(255,c+128))}}addDash(e,t){let n=t?7:0,r=2*n+1;if(this.nextRow+r>this.height)return hn("LineAtlas out of space"),null;let i=0;for(let o of e)i+=o;if(i!==0){let o=this.width/i,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,n):this.addRegularDash(s)}let a={y:this.nextRow+n,height:2*n,width:i};return this.nextRow+=r,this.dirty=!0,a}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};function qGe(e){if(!e)return!1;let t=globalThis.location;if(!t)return!1;try{return new URL(e,t.href).origin!==t.origin}catch{return!1}}function WGe(){let e=import.meta.url;if(!/^https?:/.test(e))return"";let t=e.endsWith("-dev.mjs")?"maplibre-gl-worker-dev.mjs":"maplibre-gl-worker.mjs";return new URL(`./${t}`,e).href}function P9(e,t){if(t)try{return new Worker(e,{type:"module"})}catch(n){console.warn("Module worker not supported, falling back to classic worker",n)}return new Worker(e)}async function GGe(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch worker script (${t.status}): ${e}`);let n=await t.text(),r=new Blob([n],{type:"text/javascript"});return URL.createObjectURL(r)}function ZGe(e){let t=new Blob([`import ${JSON.stringify(new URL(e,import.meta.url).href)}`],{type:"text/javascript"});return URL.createObjectURL(t)}async function KGe(){let e=tf.WORKER_URL||WGe(),t=!e?.endsWith(".cjs");if(!qGe(e))return P9(e,t);if(t){let r=ZGe(e);try{return P9(r,t)}finally{URL.revokeObjectURL(r)}}let n=await GGe(e);try{return P9(n,t)}finally{URL.revokeObjectURL(n)}}const YGe="maplibre_preloaded_worker_pool";var Vte=class jte{constructor(){this.active={},this.workersPromise=null}async acquire(t){if(this.active[t]=!0,!this.workersPromise){let n=[];for(;n.length<jte.workerCount;)n.push(KGe());this.workersPromise=Promise.all(n)}return(await this.workersPromise).slice()}release(t){if(delete this.active[t],this.numActive()===0&&this.workersPromise){let n=this.workersPromise;this.workersPromise=null,n.then(r=>{for(let i of r)i.terminate()})}}isPreloaded(){return!!this.active[YGe]}numActive(){return Object.keys(this.active).length}};const XGe=Math.floor(ho.hardwareConcurrency/2);Vte.workerCount=yBe(globalThis)?Math.max(Math.min(XGe,3),1):1;let tV;function Ute(){return tV||=new Vte,tV}var Hte=class extends Ci{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}async initActors(e){let t=await this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((n,r)=>{this.workerErrorSubscriptions.push(s5(n,"error",()=>{this.fire(new Et(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let i=new vHe(n,e);return i.name=`Worker ${r}`,i}),!this.actors.length)throw Error("No actors found");return this.actors}async broadcast(e,t){let n=await this.actorsPromise;return Promise.all(n.map(r=>r.sendAsync({type:e,data:t})))}async getActor(){let e=await this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]}async waitForInitComplete(){this.actors.length===0&&await this.actorsPromise}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}async registerMessageHandler(e,t){let n=await this.actorsPromise;for(let r of n)r.registerMessageHandler(e,t)}async unregisterMessageHandler(e){let t=await this.actorsPromise;for(let n of t)n.unregisterMessageHandler(e)}};let J3;function qte(){return J3||(J3=new Hte(Ute(),hT),J3.registerMessageHandler("GR",(e,t,n)=>H6(t,n))),J3}function JGe(e,t){let n=mf();return ci(n,n,[1,1,0]),ta(n,n,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?D0(n,n,e.calculatePosMatrix(t.toUnwrapped())):n}function QGe(e,t,n){if(e)for(let r of e){let i=t[r];if(i?.source===n&&i.type==="fill-extrusion")return!0}else for(let r in t){let i=t[r];if(i.source===n&&i.type==="fill-extrusion")return!0}return!1}function eZe(e,t,n,r,i,a,o){let s=QGe(i?.layers??null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(r,l,s);u.sort(Wte);let c=[];for(let d of u)c.push({wrappedTileID:d.tileID.wrapped().key,queryResults:d.tile.queryRenderedFeatures(t,n,e.getState(),d.queryGeometry,d.cameraQueryGeometry,d.scale,i,a,l,JGe(a,d.tileID),o?(f,h)=>o(d.tileID,f,h):void 0)});return iZe(rZe(c),e)}function tZe(e,t,n,r,i,a,o){let s={},l=a.queryRenderedSymbols(r),u=[];for(let c of Object.keys(l).map(Number))u.push(o[c]);u.sort(Wte);for(let c of u){let d=c.featureIndex.lookupSymbolFeatures(l[c.bucketInstanceId],t,c.bucketIndex,c.sourceLayerIndex,{filterSpec:i.filter,globalState:i.globalState},i.layers,i.availableImages,e);for(let f in d){s[f]||=[];let h=d[f];h.sort((p,g)=>{let v=c.featureSortOrder;if(v){let b=v.indexOf(p.featureIndex);return v.indexOf(g.featureIndex)-b}return g.featureIndex-p.featureIndex});for(let p of h)s[f].push(p)}}return aZe(s,e,n)}function nZe(e,t){let n=e.getRenderableIds().map(a=>e.getTileByID(a)),r=[],i={};for(let a of n){let o=a.tileID.canonical.key;i[o]||(i[o]=!0,a.querySourceFeatures(r,t))}return r}function Wte(e,t){let n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function rZe(e){let t={},n={};for(let{queryResults:r,wrappedTileID:i}of e){n[i]||={};let a=n[i];for(let o in r){let s=r[o];a[o]||={};let l=a[o];t[o]||=[];for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function iZe(e,t){for(let n in e)for(let r of e[n])Gte(r,t);return e}function aZe(e,t,n){for(let r in e)for(let i of e[r]){let a=n[t[r].source];Gte(i,a)}return e}function Gte(e,t){let n=e.feature,r=t.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}async function Zte(e,t,n,r){let i=e;if(e.url?i=(await q6(await t.transformRequest(e.url,"Source"),n)).data:await ho.frameAsync(n,r),!i)return null;let a=Ev(St(i,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in i&&i.vector_layers&&(a.vectorLayerIds=i.vector_layers.map(o=>o.id)),a}var xl=class ju{constructor(t,n){t&&(n?this.setSouthWest(t).setNorthEast(n):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof kt?new kt(t.lng,t.lat):kt.convert(t),this}setSouthWest(t){return this._sw=t instanceof kt?new kt(t.lng,t.lat):kt.convert(t),this}extend(t){let n=this._sw,r=this._ne,i,a;if(t instanceof kt)i=t,a=t;else if(t instanceof ju){if(i=t._sw,a=t._ne,!i||!a)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(ju.convert(o))}{let o=t;return this.extend(kt.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(kt.convert(t)):this}return!n&&!r?(this._sw=new kt(i.lng,i.lat),this._ne=new kt(a.lng,a.lat)):(n.lng=Math.min(i.lng,n.lng),n.lat=Math.min(i.lat,n.lat),r.lng=Math.max(a.lng,r.lng),r.lat=Math.max(a.lat,r.lat)),this}getCenter(){return new kt((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new kt(this.getWest(),this.getNorth())}getSouthEast(){return new kt(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:n,lat:r}=kt.convert(t),i=this._sw.lat<=r&&r<=this._ne.lat,a=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=n&&n>=this._ne.lng),i&&a}intersects(t){if(t=ju.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let n=Math.abs(this.getEast()-this.getWest()),r=Math.abs(t.getEast()-t.getWest());if(n>=360||r>=360)return!0;let i=As(this.getWest(),-180,180),a=As(this.getEast(),-180,180),o=As(t.getWest(),-180,180),s=As(t.getEast(),-180,180),l=i>a,u=o>s;return l&&u?!0:l?s>=i||o<=a:u?a>=o||i<=s:o<=a&&s>=i}static convert(t){return t instanceof ju||!t?t:new ju(t)}static fromLngLat(t,n=0){let r=360*n/40075017,i=r/Math.cos(Math.PI/180*t.lat);return new ju(new kt(t.lng-i,t.lat-r),new kt(t.lng+i,t.lat+r))}adjustAntiMeridian(){let t=new kt(this._sw.lng,this._sw.lat),n=new kt(this._ne.lng,this._ne.lat);return t.lng>n.lng?new ju(t,new kt(n.lng+360,n.lat)):new ju(t,n)}},Kte=class{constructor(e,t,n){this.bounds=xl.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=n||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,n={minX:Math.floor(Wm(this.bounds.getWest())*t),minY:Math.floor(Gm(this.bounds.getNorth())*t),maxX:Math.ceil(Wm(this.bounds.getEast())*t),maxY:Math.ceil(Gm(this.bounds.getSouth())*t)};return e.x>=n.minX&&e.x<n.maxX&&e.y>=n.minY&&e.y<n.maxY}},Yte=class extends Ci{constructor(e,t,n,r){if(super(),this.id=e,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,St(this,Ev(t,["url","scheme","tileSize","promoteId","encoding"])),this._options=St({type:"vector"},t),this._collectResourceTiming=t.collectResourceTiming,this.tileSize!==512)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r)}async load(e=!1){this._loaded=!1,this.fire(new yr("dataloading")),this._tileJSONRequest=new AbortController;try{let t=await Zte(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(St(this,t),t.bounds&&(this.tileBounds=new Kte(t.bounds,this.minzoom,this.maxzoom)),this.fire(new yr("data",{sourceDataType:"metadata"})),this.fire(new yr("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,ef(t)||this.fire(new Et(fa(t)))}}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.abort(),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}serialize(){return St({},this._options)}async loadTile(e){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n={request:await this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:await this._getOverzoomParameters(e),etag:e.etag};if(n.request.collectResourceTiming=this._collectResourceTiming,await this.dispatcher.waitForInitComplete(),e.aborted)return;let r="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),r="LT";else if(e.state==="loading")return new Promise((i,a)=>{e.reloadPromise={resolve:i,reject:a}});e.abortController=new AbortController;try{let i=await e.actor.sendAsync({type:r,data:n},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,i);let a={};return i?.etagUnmodified&&(a.unmodified=!0),a}catch(i){if(delete e.abortController,e.aborted||ef(i))return;if(i&&i.status!==404)throw i;this._afterTileLoadWorkerResponse(e,null)}}async _getOverzoomParameters(e){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,n=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:await this.map._requestManager.transformRequest(n,"Tile")}}_afterTileLoadWorkerResponse(e,t){if(t?.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t?.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let n=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(n.resolve).catch(n.reject)}}async abortTile(e){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&await e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}})}async unloadTile(e){e.unloadVectorData(),e.actor&&await e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})}hasTransition(){return!1}},eD=class extends Ci{constructor(e,t,n,r){super(),this.id=e,this.dispatcher=n,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=St({type:"raster"},t),St(this,Ev(t,["url","scheme","tileSize"]))}async load(e=!1){this._loaded=!1,this.fire(new yr("dataloading")),this._tileJSONRequest=new AbortController;try{let t=await Zte(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(St(this,t),t.bounds&&(this.tileBounds=new Kte(t.bounds,this.minzoom,this.maxzoom)),this.fire(new yr("data",{sourceDataType:"metadata"})),this.fire(new yr("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,ef(t)||this.fire(new Et(fa(t)))}}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}setSourceProperty(e){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return St({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}async loadTile(e){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n=this._premultiplyAlpha,r=n?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let i=await tu.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,r);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(i){this.map._refreshExpiredTiles&&(i.cacheControl||i.expires)&&e.setExpiryData({cacheControl:i.cacheControl,expires:i.expires});let a=this.map.painter.context,o=a.gl,s=i.data??new gr({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(s.width),e.texture?e.texture.update(s,{useMipmap:!0,premultiply:n}):(e.texture=new xi(a,s,o.RGBA,{useMipmap:!0,premultiply:n}),e.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(i){if(delete e.abortController,e.aborted)e.state="unloaded";else if(i)throw e.state="errored",i}}async abortTile(e){e.abortController&&(e.abortController.abort(),delete e.abortController)}async unloadTile(e){e.texture&&this.map.painter.saveTileTexture(e.texture)}hasTransition(){return!1}},Xte=class extends eD{constructor(e,t,n,r){super(e,t,n,r),this.type="raster-dem",this.maxzoom=22,this._options=St({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}async loadTile(e){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let n=await tu.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(n){if(this.map._refreshExpiredTiles&&(n.cacheControl||n.expires)&&e.setExpiryData({cacheControl:n.cacheControl,expires:n.expires}),!n.data){e.state="loaded";return}let r=n.data,i=Ah(r)&&XA()?r:await this.readImageNow(r),a={type:this.type,uid:e.uid,source:this.id,rawImageData:i,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;await this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=await e.actor.sendAsync({type:"LDT",data:a}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(n){if(delete e.abortController,e.aborted)e.state="unloaded";else if(n)throw e.state="errored",n}}async readImageNow(e){if(typeof VideoFrame<"u"&&iJ()){let t=e.width+4,n=e.height+4;try{return new gr({width:t,height:n},await xBe(e,-2,-2,t,n))}catch{}}return ho.getImageData(e,2)}_getNeighboringTiles(e){let t=e.canonical,n=2**t.z,r=(t.x-1+n)%n,i=t.x===0?e.wrap-1:e.wrap,a=(t.x+1+n)%n,o=t.x+1===n?e.wrap+1:e.wrap,s={};return s[new Qi(e.overscaledZ,i,t.z,r,t.y).key]={backfilled:!1},s[new Qi(e.overscaledZ,o,t.z,a,t.y).key]={backfilled:!1},t.y>0&&(s[new Qi(e.overscaledZ,i,t.z,r,t.y-1).key]={backfilled:!1},s[new Qi(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new Qi(e.overscaledZ,o,t.z,a,t.y-1).key]={backfilled:!1}),t.y+1<n&&(s[new Qi(e.overscaledZ,i,t.z,r,t.y+1).key]={backfilled:!1},s[new Qi(e.overscaledZ,e.wrap,t.z,t.x,t.y+1).key]={backfilled:!1},s[new Qi(e.overscaledZ,o,t.z,a,t.y+1).key]={backfilled:!1}),s}async unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&await e.actor.sendAsync({type:"RDT",data:{type:this.type,uid:e.uid,source:this.id}})}};function D5(e,t){return t?e.properties[t]:e.id}function oZe(e,t){let n=new Map;if(e==null||e.type==null)return n;if(e.type==="Feature"){let r=D5(e,t);return r==null?void 0:(n.set(r,e),n)}if(e.type==="FeatureCollection"){let r=new Set;for(let i of e.features){let a=D5(i,t);if(a==null||r.has(a))return;r.add(a),n.set(a,i)}return n}}function sZe(e,t,n){let r=[];if(t.removeAll)e.clear();else if(t.remove)for(let i of t.remove){let a=e.get(i);a&&(r.push(a.geometry),e.delete(i))}if(t.add)for(let i of t.add){let a=D5(i,n);if(a==null)continue;let o=e.get(a);o&&r.push(o.geometry),r.push(i.geometry),e.set(a,i)}if(t.update)for(let i of t.update){let a=e.get(i.id);if(!a)continue;let o=!!i.newGeometry,s=i.removeAllProperties||i.removeProperties?.length>0||i.addOrUpdateProperties?.length>0;if(!o&&!s)continue;r.push(a.geometry);let l={...a};if(e.set(i.id,l),o&&(r.push(i.newGeometry),l.geometry=i.newGeometry),s){if(l.properties=i.removeAllProperties?{}:{...l.properties||{}},i.removeProperties)for(let u of i.removeProperties)delete l.properties[u];if(i.addOrUpdateProperties)for(let{key:u,value:c}of i.addOrUpdateProperties)l.properties[u]=c}}return r}function lZe(e,t,n){if(!e)return t||{};if(!t)return e||{};let r=nV(e,n),i=nV(t,n);uZe(r,i);let a={};if((r.removeAll||i.removeAll)&&(a.removeAll=!0),a.remove=new Set([...r.remove,...i.remove]),a.add=new Map([...r.add,...i.add]),a.update=new Map([...r.update,...i.update]),a.remove.size&&a.add.size)for(let o of a.add.keys())a.remove.delete(o);return dZe(a)}function uZe(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let n of t.remove)e.add.delete(n),e.update.delete(n);for(let[n,r]of t.update){let i=e.update.get(n);i&&(t.update.set(n,cZe(i,r)),e.update.delete(n))}}function cZe(e,t){let n={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let r=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(i=>!r.has(i.key))}return(e.removeAllProperties||t.removeAllProperties)&&(n.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(n.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(n.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(n.newGeometry=t.newGeometry||e.newGeometry),n}function nV(e,t){if(!e)return{};let n={};return n.removeAll=e.removeAll,n.remove=new Set(e.remove||[]),n.add=new Map(e.add?.map(r=>[D5(r,t),r])),n.update=new Map(e.update?.map(r=>[r.id,r])),n}function dZe(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function Jte(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>Jte(t))}function Xb(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>Xb(t)):Jte(e.coordinates)}function rV(e){let t=new xl,n;switch(e.type){case"FeatureCollection":n=e.features.flatMap(r=>Xb(r.geometry));break;case"Feature":n=Xb(e.geometry);break;default:n=Xb(e)}if(n.length===0)return t;for(let r of n){let[i,a]=r;t.extend([i,a])}return t}function fZe({x:e,y:t,z:n},r=0){let i=uk((e-r)/2**n),a=V2((t+1+r)/2**n),o=uk((e+1+r)/2**n),s=V2((t-r)/2**n);return new xl([i,a],[o,s])}var Qte=class extends Ci{constructor(e,t,n,r){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:t.data},this.actorPromise=n.getActor(),this.setEventedParent(r),this._data=typeof t.data=="string"?{url:t.data}:{geojson:t.data},this._options=St({},t),this._collectResourceTiming=t.collectResourceTiming,t.maxzoom!==void 0&&(this.maxzoom=t.maxzoom),t.type&&(this.type=t.type),t.attribution&&(this.attribution=t.attribution),this.promoteId=t.promoteId,t.clusterMaxZoom!==void 0&&this.maxzoom<=t.clusterMaxZoom&&hn(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${t.clusterMaxZoom}".`),this.workerOptions=St({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(t.buffer===void 0?128:t.buffer),tolerance:this._pixelsToTileUnits(t.tolerance===void 0?.375:t.tolerance),extent:He,maxZoom:this.maxzoom,lineMetrics:t.lineMetrics||!1,generateId:t.generateId||!1,promoteId:this._promoteIdKey,cluster:t.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(t.clusterMaxZoom),minPoints:Math.max(2,t.clusterMinPoints||2),extent:He,radius:this._pixelsToTileUnits(t.clusterRadius||50),log:!1,generateId:t.generateId||!1}},clusterProperties:t.clusterProperties,filter:t.filter},t.workerOptions)}get _promoteIdKey(){return typeof this.promoteId=="string"?this.promoteId:void 0}_hasPendingWorkerUpdate(){return this._pendingWorkerUpdate.data!==void 0||this._pendingWorkerUpdate.diff!==void 0||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(e){return e*(He/this.tileSize)}_tileUnitsToPixels(e){return e/(He/this.tileSize)}_getClusterMaxZoom(e){let t=e?Math.round(e):this.maxzoom-1;return Number.isInteger(e)||e===void 0||hn(`Integer expected for option 'clusterMaxZoom': provided value "${e}" rounded to "${t}"`),t}async load(){await this._updateWorkerData()}onAdd(e){this.map=e,this.load()}setData(e){return this._data=typeof e=="string"?{url:e}:{geojson:e},this._pendingWorkerUpdate={data:e},this._updateWorkerData()}updateData(e){return this._pendingWorkerUpdate.diff=lZe(this._pendingWorkerUpdate.diff,e,this._promoteIdKey),this._updateWorkerData()}async getData(){return this._data.url&&await this.once("data"),this._data.geojson?this._data.geojson:{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}}async getBounds(){return rV(await this.getData())}setClusterOptions(e){return this.workerOptions.geojsonVtOptions.cluster=e.cluster,e.clusterRadius!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(e.clusterRadius)),e.clusterMaxZoom!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(e.clusterMaxZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData()}getClusterOptions(){let{cluster:e,clusterOptions:t}=this.workerOptions.geojsonVtOptions;return{cluster:e,clusterMaxZoom:t.maxZoom,clusterRadius:this._tileUnitsToPixels(t.radius)}}async getClusterExpansionZoom(e){return(await this.actorPromise).sendAsync({type:"GCEZ",data:{type:this.type,clusterId:e,source:this.id}})}async getClusterChildren(e){return(await this.actorPromise).sendAsync({type:"GCC",data:{type:this.type,clusterId:e,source:this.id}})}async getClusterLeaves(e,t,n){return(await this.actorPromise).sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:e,limit:t,offset:n}})}async _updateWorkerData(){if(this._isUpdatingWorker)return this._updatePromise;if(!this._hasPendingWorkerUpdate()){hn(`No pending worker updates for GeoJSONSource ${this.id}.`);return}let{data:e,diff:t,updateCluster:n}=this._pendingWorkerUpdate,r=this._getLoadGeoJSONParameters(e,t,n);e===void 0?t?this._pendingWorkerUpdate.diff=void 0:n&&(this._pendingWorkerUpdate.updateCluster=void 0):this._pendingWorkerUpdate.data=void 0,this._updatePromise=this._dispatchWorkerUpdate(r),await this._updatePromise}async _getLoadGeoJSONParameters(e,t,n){let r=St({type:this.type,source:this.id},this.workerOptions);if(typeof e=="string")return r.request=await this.map._requestManager.transformRequest(ho.resolveURL(e),"Source"),r.request.collectResourceTiming=this._collectResourceTiming,r;if(e!==void 0)return r.data=e,r;if(t)return r.dataDiff=t,r;if(n)return r.updateCluster=!0,r}async _dispatchWorkerUpdate(e){this._isUpdatingWorker=!0,this.fire(new yr("dataloading"));try{let t=await e,n=await(await this.actorPromise).sendAsync({type:"LD",data:t});if(this._isUpdatingWorker=!1,this._removed||n.abandoned){this.fire(new yr("dataabort"));return}n.data&&(this._data={geojson:n.data});let r=this._applyDiffToSource(t.dataDiff),i=this._getShouldReloadTileOptions(r),a={};this._applyResourceTiming(a,n),this.fire(new yr("data",{...a,sourceDataType:"metadata"})),this.fire(new yr("data",{...a,sourceDataType:"content",shouldReloadTileOptions:i}))}catch(t){if(this._isUpdatingWorker=!1,this._removed){this.fire(new yr("dataabort"));return}this.fire(new Et(fa(t)))}finally{this._hasPendingWorkerUpdate()&&await this._updateWorkerData()}}_applyResourceTiming(e,t){if(!this._collectResourceTiming)return;let n=t.resourceTiming?.[this.id];if(!n)return;let r=n.slice(0);r?.length&&St(e,{resourceTiming:r})}_applyDiffToSource(e){if(!e)return;let t=this._promoteIdKey;if(!this._data.url&&!this._data.updateable){let r=oZe(this._data.geojson,t);if(!r)throw Error(`GeoJSONSource "${this.id}": GeoJSON data is not compatible with updateData`);this._data={updateable:r}}if(!this._data.updateable)return;let n=sZe(this._data.updateable,e,t);if(!(e.removeAll||this._options.cluster))return n}_getShouldReloadTileOptions(e){if(e)return{affectedBounds:e.filter(Boolean).map(t=>rV(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:n,extent:r}=this.workerOptions.geojsonVtOptions,i=fZe(e.tileID.canonical,n/r);for(let a of t)if(i.intersects(a))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}async loadTile(e){let t=e.actor?"RT":"LT";e.actor=await this.actorPromise;let n={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let r=await(await this.actorPromise).sendAsync({type:t,data:n},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(r,this.map.painter,t==="RT")}catch(r){if(delete e.abortController,e.aborted||ef(r))return;throw r}}async abortTile(e){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0}async unloadTile(e){e.unloadVectorData(),await(await this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return St({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}};const ym=[0,0,1],hZe=(e,t)=>({u_tl_parent:new tn(e,t.u_tl_parent),u_scale_parent:new ht(e,t.u_scale_parent),u_buffer_scale:new ht(e,t.u_buffer_scale),u_image_warp:new za(e,t.u_image_warp),u_fade_t:new ht(e,t.u_fade_t),u_opacity:new ht(e,t.u_opacity),u_image0:new Mt(e,t.u_image0),u_image1:new Mt(e,t.u_image1),u_brightness_low:new ht(e,t.u_brightness_low),u_brightness_high:new ht(e,t.u_brightness_high),u_saturation_factor:new ht(e,t.u_saturation_factor),u_contrast_factor:new ht(e,t.u_contrast_factor),u_spin_weights:new za(e,t.u_spin_weights),u_coords_top:new O2(e,t.u_coords_top),u_coords_bottom:new O2(e,t.u_coords_bottom)}),pZe=(e,t,n,r,i,a)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:a,u_fade_t:n.mix,u_opacity:n.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:yZe(r.paint.get("raster-saturation")),u_contrast_factor:gZe(r.paint.get("raster-contrast")),u_spin_weights:mZe(r.paint.get("raster-hue-rotate")),u_coords_top:[i[0].x,i[0].y,i[1].x,i[1].y],u_coords_bottom:[i[3].x,i[3].y,i[2].x,i[2].y]});function mZe(e){e*=Math.PI/180;let t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}function gZe(e){return e>0?1/(1-e):1+e}function yZe(e){return e>0?1-1/(1.001-e):-e}var Nv=class{constructor(e,t,n){this.vertexBuffer=e,this.indexBuffer=t,this.segments=n}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}};const _h=zr([{name:"a_pos",type:"Int16",components:2}]),Q3=He/128;function ene(e,t){let n=tne(t,"16bit"),r=Id.deserialize({arrayBuffer:n.vertices,length:n.vertices.byteLength/2/2}),i=mu.deserialize({arrayBuffer:n.indices,length:n.indices.byteLength/2/3});return new Nv(e.createVertexBuffer(r,_h.members),e.createIndexBuffer(i),$r.simpleSegment(0,0,r.length,i.length))}function tne(e,t){let n=e.granularity===void 0?1:Math.max(e.granularity,1),r=n+(e.generateBorders?2:0),i=n+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),a=r+1,o=i+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=n+ +!!e.generateBorders,c=n+(e.generateBorders||e.extendToSouthPole?1:0),d=a*o,f=r*i*6,h=a*o>65536;if(h&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let p=h||t==="32bit",g=new Int16Array(d*2),v=0;for(let _=l;_<=c;_++)for(let w=s;w<=u;w++){let C=w/n*He;w===-1&&(C=-Q3),w===n+1&&(C=He+Q3);let T=_/n*He;_===-1&&(T=e.extendToNorthPole?Oy:-Q3),_===n+1&&(T=e.extendToSouthPole?By:He+Q3),g[v++]=C,g[v++]=T}let b=p?new Uint32Array(f):new Uint16Array(f),x=0;for(let _=0;_<i;_++)for(let w=0;w<r;w++){let C=w+_*a,T=w+1+_*a,k=w+(_+1)*a,A=w+1+(_+1)*a;b[x++]=C,b[x++]=k,b[x++]=T,b[x++]=T,b[x++]=k,b[x++]=A}return{vertices:g.buffer.slice(0),indices:b.buffer.slice(0),uses32bitIndices:p}}var O1=class extends Ci{constructor(e,t,n,r){super(),this.imageWarp=ym,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=t}async load(e){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new yr("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=await tu.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t?.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new Et(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(ef(t))return;this._abortController=null,this._loaded=!0,this.fire(new Et(fa(t)))}}loaded(){return this._loaded}updateImage(e){return this._abortController&&=(this._abortController.abort(),null),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){return!this._subdividedQuad||t?null:(this._subdividedMesh??=ene(e,{granularity:16}),this._subdividedMesh)}_disposeTexture(){this.texture?.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new yr("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this._abortController&&=(this._abortController.abort(),null),this._disposeTexture(),this._subdividedMesh?.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(Fn.fromLngLat);return this.tileID=vZe(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(n=>this.tileID.getTilePoint(n)._round()),this.imageWarp=bZe(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!nne(this.tileCoords),this.flippedWindingOrder=_Ze(this.tileCoords),this.fire(new yr("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new xi(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let n=!1;for(let r in this.tiles){let i=this.tiles[r];i.state!=="loaded"&&(i.state="loaded",i.texture=this.texture,n=!0)}n&&this.fire(new yr("data",{sourceDataType:"idle",sourceId:this.id}))}async loadTile(e){this.tileID?.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:n,maxX:r,maxY:i}=fl.fromPoints(e),a={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(n*s),c=Math.floor(r*s),d=Math.floor(i*s),f=(l%s+s)%s,h=c%s,p=Math.floor(l/s),g=Math.floor(c/s);a[o]={minWrap:p,maxWrap:g,minTileXWrapped:f,maxTileXWrapped:h,minTileY:u,maxTileY:d}}return a}};function vZe(e){let t=fl.fromPoints(e),n=t.width(),r=t.height(),i=Math.max(0,Math.floor(-Math.log(Math.max(n,r))/Math.LN2)),a=2**i;return new mw(i,Math.floor((t.minX+t.maxX)/2*a),Math.floor((t.minY+t.maxY)/2*a))}function _Ze(e){let t=e[1].x-e[0].x,n=e[1].y-e[0].y,r=e[2].x-e[0].x;return t*(e[2].y-e[0].y)-n*r<0}function bZe(e,t){if(t==="flat"||nne(e))return ym;let[n,r,i,a]=e,o=n.x-r.x+i.x-a.x,s=n.y-r.y+i.y-a.y,l=[r.x-i.x,r.y-i.y,a.x-i.x,a.y-i.y],[u,c,d,f]=l,h=cGe(l),p=(o*f-d*s)/h,g=(u*s-o*c)/h,v=[1,1+p,1+p+g,1+g],b=Math.max(...v)/Math.min(...v),x=t==="perspective"?0:xZe(b);return!(b>=1&&b<=512)||x>=1?ym:[p,g,x]}function xZe(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function nne(e){let[t,n,r,i]=e;return t.x+r.x===n.x+i.x&&t.y+r.y===n.y+i.y}var rne=class extends O1{constructor(e,t,n,r){super(e,t,n,r),this._onPlayingHandler=()=>{this.map?.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}async load(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((await this.map._requestManager.transformRequest(t,"Source")).url);try{let t=await ABe(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new Et(fa(t)))}}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;e<t.start(0)||e>t.end(0)?this.fire(new Et(new Xe(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new xi(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let n=!1;for(let r in this.tiles){let i=this.tiles[r];i.state!=="loaded"&&(i.state="loaded",i.texture=this.texture,n=!0)}n&&this.fire(new yr("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},ine=class extends O1{constructor(e,t,n,r){super(e,t,n,r),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(i=>!Array.isArray(i)||i.length!==2||i.some(a=>typeof a!="number")))&&this.fire(new Et(new Xe(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new Et(new Xe(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new Et(new Xe(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new Et(new Xe(`sources.${e}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new Et(new Xe(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}async load(){if(this._loaded=!0,this.canvas||=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new Et(Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&=(this.prepare(),!1)},this._finishLoading()}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,n=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new xi(t,this.canvas,n.RGBA,{premultiply:!0}),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let a=this.tiles[i];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,r=!0)}r&&this.fire(new yr("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}};const wZe={},SZe=(e,t,n,r)=>{let i=new(CZe(t.type))(e,t,n,r);if(i.id!==e)throw Error(`Expected Source id to be ${e} instead of ${i.id}`);return i},CZe=e=>{switch(e){case"geojson":return Qte;case"image":return O1;case"raster":return eD;case"raster-dem":return Xte;case"vector":return Yte;case"video":return rne;case"canvas":return ine}return wZe[e]};function TZe(e,t){let n={};if(!t)return n;for(let r of e){let i=r.layerIds.map(a=>t.getLayer(a)).filter(Boolean);if(i.length!==0){r.layers=i,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(a=>i.filter(o=>o.id===a)[0]));for(let a of i)n[a.id]=r}}return n}const Mk="RTLPluginLoaded";var kZe=class extends Ci{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=qte()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}async setRTLTextPlugin(e,t=!1){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=ho.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()}async _requestImport(){await this._syncState("loading"),this.status="loaded",this.fire(new Us(Mk))}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}};let iV=null;function Ak(){return iV||=new kZe,iV}var ane=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=uJ(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:n,fadeEndTime:r}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=n,this.fadeEndTime=r}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=Nn(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,n){return this.rttObjects[t]=e.acquireRTT(n)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,n){if(e?.etagUnmodified===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new UQ;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=TZe(e.buckets,t?.style),this.hasSymbolBuckets=!1;for(let r in this.buckets){let i=this.buckets[r];if(i instanceof M5)if(this.hasSymbolBuckets=!0,n)i.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let r in this.buckets){let i=this.buckets[r];if(i instanceof M5&&i.hasRTLText){this.hasRTLText=!0,Ak().lazyLoad();break}}this.queryPadding=0;for(let r in this.buckets){let i=this.buckets[r];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(r).queryRadius(i))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let n in this.buckets){let r=this.buckets[n];r.uploadPending()&&r.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new xi(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&=(this.glyphAtlasTexture=new xi(e,this.glyphAtlasImage,t.ALPHA),null)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,r,i,a,o,s,l,u,c){return this.latestFeatureIndex?.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:c},e,t,n):{}}querySourceFeatures(e,t){let n=this.latestFeatureIndex;if(!n?.rawTileData)return;let r=n.loadVTLayers(),i=t?.sourceLayer?t.sourceLayer:"",a=r._geojsonTileLayer||r[i];if(!a)return;let o=P2(t?.filter,`querySourceFeatures[${i}].filter`,t?.globalState),{z:s,x:l,y:u}=this.tileID.canonical,c={z:s,x:l,y:u};for(let d=0;d<a.length;d++){let f=a.feature(d);if(o.needGeometry){let g=kp(f,!0);if(!o.filter(new Zn(this.tileID.overscaledZ),g,this.tileID.canonical))continue}else if(!o.filter(new Zn(this.tileID.overscaledZ),f))continue;let h=n.getId(f,i),p=new ate(f,s,l,u,h);p.tile=c,e.push(p)}}hasData(){return this.state==="loaded"||this.state==="reloading"||this.state==="expired"}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){let t=this.expirationTime;if(e.cacheControl){let n=gBe(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+n["max-age"]*1e3)}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){let n=Date.now(),r=!1;if(this.expirationTime>n)r=!1;else if(!t)r=!0;else if(this.expirationTime<t)r=!0;else{let i=this.expirationTime-t;i?this.expirationTime=n+Math.max(i,3e4):r=!0}r?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),2**31-1)}setFeatureState(e,t,n){if(!this.latestFeatureIndex?.rawTileData||Object.keys(e).length===0||this.featureStateRevision===n)return;this.featureStateRevision=n;let r=this.latestFeatureIndex.loadVTLayers();for(let i in this.buckets){if(!t.style.hasLayer(i))continue;let a=this.buckets[i],o=a.layers[0].sourceLayer||"_geojsonTileLayer",s=r[o],l=e[o];if(!s||!l||l.length===0)continue;a.update(l,s,this.imageAtlas?.patternPositions||{},this.dashPositions||{});let u=t?.style?.getLayer(i);u&&(this.queryPadding=Math.max(this.queryPadding,u.queryRadius(a)))}}holdingForSymbolFade(){return this.symbolFadeHoldUntil!==void 0}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Nn()}clearSymbolFadeHold(){this.symbolFadeHoldUntil=void 0}setSymbolHoldDuration(e){this.symbolFadeHoldUntil=Nn()+e}setDependencies(e,t){let n={};for(let r of t)n[r]=!0;this.dependencies[e]=n}hasDependency(e,t){for(let n of e){let r=this.dependencies[n];if(r){for(let i of t)if(r[i])return!0}}return!1}};function aV(e){let t=[];for(let n in e)t.push({id:n,state:e[n]});return t}var EZe=class{constructor(){this.state={},this.stateChanges={},this.deletedStates={},this.revision=0}updateState(e,t,n){let r=String(t);if(this.stateChanges[e]||={},this.stateChanges[e][r]||={},St(this.stateChanges[e][r],n),this.deletedStates[e]===null){this.deletedStates[e]={};for(let i in this.state[e])if(i===r){this.deletedStates[e][r]={};for(let a in this.state[e][i])n[a]===void 0&&(this.deletedStates[e][r][a]=null)}else this.deletedStates[e][i]=null}else if(this.deletedStates[e]?.[r]===null){this.deletedStates[e][r]={};for(let i in this.state[e][r])n[i]===void 0&&(this.deletedStates[e][r][i]=null)}else for(let i in n)this.deletedStates[e]?.[r]?.[i]===null&&delete this.deletedStates[e][r][i]}removeFeatureState(e,t,n){if(this.deletedStates[e]===null)return;let r=String(t);if(this.deletedStates[e]||={},n&&t!==void 0)this.deletedStates[e][r]!==null&&(this.deletedStates[e][r]||={},this.deletedStates[e][r][n]=null);else if(t!==void 0)if(this.stateChanges[e]?.[r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(e,t){let n=String(t),r=this.state[e]||{},i=this.stateChanges[e]||{},a=St({},r[n],i[n]);if(this.deletedStates[e]===null)return{};if(this.deletedStates[e]){let o=this.deletedStates[e][t];if(o===null)return{};for(let s in o)delete a[s]}return a}initializeTileState(e,t){let n={};for(let r in this.state)n[r]=aV(this.state[r]);e.setFeatureState(n,t,this.revision)}coalesceChanges(e,t){let n={};for(let i in this.stateChanges){this.state[i]||={},n[i]||={};for(let a in this.stateChanges[i])this.state[i][a]||={},St(this.state[i][a],this.stateChanges[i][a]),n[i][a]=this.state[i][a]}for(let i in this.deletedStates)if(this.state[i]||={},n[i]||={},this.deletedStates[i]===null)for(let a in this.state[i])this.state[i][a]={},n[i][a]={};else for(let a in this.deletedStates[i]){if(this.deletedStates[i][a]===null)this.state[i][a]={};else for(let o of Object.keys(this.deletedStates[i][a]))delete this.state[i][a][o];n[i][a]=this.state[i][a]}if(this.stateChanges={},this.deletedStates={},Object.keys(n).length===0)return;this.revision++;let r={};for(let i in n)r[i]=aV(n[i]);e.setFeatureState(r,t,this.revision)}},tD=class one{constructor(t,n){this.min=t,this.max=n,this.center=Tr([],Ms([],this.min,this.max),.5)}quadrant(t){let n=[t%2==0,t<2],r=uT(this.min),i=uT(this.max);for(let a=0;a<n.length;a++)r[a]=n[a]?this.min[a]:this.center[a],i[a]=n[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new one(r,i)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}intersectsFrustum(t){let n=!0;for(let r of t.planes){let i=this.intersectsPlane(r);if(i===0)return 0;i===1&&(n=!1)}return n?2:t.aabb.min[0]>this.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]<this.min[0]||t.aabb.max[1]<this.min[1]||t.aabb.max[2]<this.min[2]?0:1}intersectsPlane(t){let n=t[3],r=t[3];for(let i=0;i<3;i++)t[i]>0?(n+=t[i]*this.min[i],r+=t[i]*this.max[i]):(r+=t[i]*this.min[i],n+=t[i]*this.max[i]);return n>=0?2:r<0?0:1}},nD=class sne{constructor(t,n,r){this.points=t,this.planes=n,this.aabb=r}static fromInvProjectionMatrix(t,n=1,r=0,i,a){let o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],s=a?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**r,u=o.map(h=>MZe(h,t,n,l));i&&AZe(u,s[0],i,a);let c=s.map(h=>{let p=Ac([],u[h[0]],u[h[1]]),g=Ac([],u[h[2]],u[h[1]]),v=Oa([],fo([],p,g)),b=-di(v,u[h[1]]);return v.concat(b)}),d=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0];for(let h of u)for(let p=0;p<3;p++)d[p]=Math.min(d[p],h[p]),f[p]=Math.max(f[p],h[p]);return new sne(u,c,new tD(d,f))}};function MZe(e,t,n,r){let i=na([],e,t),a=1/i[3]/n*r;return eBe(i,i,[a,a,1/i[3],a])}function AZe(e,t,n,r){let i=r?4:0,a=r?0:4,o=0,s=[],l=[];for(let d=0;d<4;d++){let f=Ac([],e[d+a],e[d+i]),h=cl(f);Tr(f,f,1/h),s.push(h),l.push(f)}for(let d=0;d<4;d++){let f=sBe(e[d+i],l[d],n);o=f!==null&&f>=0?Math.max(o,f):Math.max(o,s[d])}let u=PZe(e,t),c=DZe(n,u);if(c!==null){let d=c/di(l[0],u);o=Math.min(o,d)}for(let d=0;d<4;d++){let f=Math.min(o,s[d]);e[d+a]=[e[d+i][0]+l[d][0]*f,e[d+i][1]+l[d][1]*f,e[d+i][2]+l[d][2]*f,1]}}function PZe(e,t){let n=Ac([],e[t[0]],e[t[1]]),r=Ac([],e[t[2]],e[t[1]]),i=[0,0,0,0];return Oa(i,fo([],n,r)),i[3]=-di(i,e[t[0]]),i}function DZe(e,t){let n=o5(e),r=JOe([],e,1/n),i=Ac([],t,Tr([],r,di(t,r))),a=o5(i);if(a>0){let o=Math.sqrt(1-r[3]*r[3]),s=Tr([],r,-r[3]),l=Ms([],s,Tr([],i,o/a));return dT(t,l)}return null}function IZe(e,t,n){let r=t.intersectsFrustum(e);if(!n||r===0)return r;let i=t.intersectsPlane(n);return i===0?0:r===2&&i===2?2:1}function oV(e,t,n){let r=0,i=(n-t)/10;for(let a=0;a<10;a++){let o=t+(a+.5)/10*(n-t);r+=i*Math.cos(o)**+e}return r}function Pk(e,t){return function(n,r,i,a,o){let s=2*((e-1)/ua(Math.cos(Sr($h-o))/Math.cos(Sr($h)))-1),l=Math.acos(i/a),u=2*oV(s-1,0,Sr(o/2)),c=Math.min(Sr($h),l+Sr(o/2)),d=Math.min(c,l-Sr(o/2)),f=oV(s-1,d,c),h=Math.atan(r/i),p=Math.hypot(r,i),g=n;return g+=ua(a/p/Math.max(.5,Math.cos(Sr(o/2)))),g+=s*ua(Math.cos(h))/2,g-=ua(Math.max(1,f/u/t))/2,g}}const $Ze=Pk(9.314,3);function rD(e,t){let n=(t.roundZoom?Math.round:Math.floor)(e.zoom+ua(e.tileSize/t.tileSize));return Math.max(0,n)}function LZe(e,t){let n=$h-e.pitch-e.fov/2,r=qt((15-n)/15,0,1),i=Math.max(500,t??0);return e.elevation+r*i}function RZe(e,t,n){let r=e.planes[1],i=e.points.map(l=>{let u=r[0]*l[0]+r[1]*l[1]+r[2]*l[2]+r[3];if(Math.abs(u)>1e-6)return l;let c=[l[0]-n[0],l[1]-n[1],l[2]-n[2]],d=r[0]*c[0]+r[1]*c[1]+r[2]*c[2];if(d>=-1e-9)return l;let f=t/-d;return[l[0]+c[0]*f,l[1]+c[1]*f,l[2]+c[2]*f,l[3]]}),a=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of i)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new nD(i,a,new tD(o,s))}function OZe(e,t,n,r){let i=Math.hypot(t[0],t[1],t[2]);if(i===0)return{frustum:e,plane:t};let a=1+r/La,o=qt(-t[3]/i,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/a));return{frustum:RZe(e,Math.sqrt(a*a-1),n),plane:[t[0],t[1],t[2],-s*i]}}function B1(e,t){let n=e.getCameraFrustum(),r=e.getClippingPlane();r&&t.maxContentElevation>0&&({frustum:n,plane:r}=OZe(n,r,e.cameraPosition,t.maxContentElevation));let i=LVe(e),a=Fn.fromLngLat(e.center,e.elevation),o=LZe(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=rD(e,t),c=t.minzoom||0,d=t.maxzoom===void 0?e.maxZoom:t.maxzoom,f=Math.min(Math.max(0,u),d),h=2**f,p=[h*i.x,h*i.y,0],g=[h*a.x,h*a.y,0],v=Math.hypot(a.x-i.x,a.y-i.y),b=Math.abs(a.z-i.z),x=Math.hypot(v,b),_=T=>({zoom:0,x:0,y:0,wrap:T,fullyVisible:!1}),w=[],C=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let T=1;T<=3;T++)w.push(_(-T)),w.push(_(T));for(w.push(_(0));w.length>0;){let T=w.pop(),k=T.x,A=T.y,P=T.fullyVisible,D={x:k,y:A,z:T.zoom},$=s.getTileBoundingVolume(D,T.wrap,o,t);if(!P){let B=IZe(n,$,r);if(B===0)continue;P=B===2}let O=s.distanceToTile2d(i.x,i.y,D,$),z=u;l&&(z=(t.calculateTileZoom||$Ze)(e.zoom+ua(e.tileSize/t.tileSize),O,b,x,e.fov)),z=(t.roundZoom?Math.round:Math.floor)(z),z=Math.max(0,z);let j=Math.min(z,d);if(T.wrap=s.getWrap(a,D,T.wrap),T.zoom>=j){if(T.zoom<c)continue;let B=f-T.zoom,R=p[0]-.5-(k<<B),J=p[1]-.5-(A<<B),K=t.reparseOverscaled?Math.max(T.zoom,z):T.zoom;C.push({tileID:new Qi(T.zoom===d?K:T.zoom,T.wrap,T.zoom,k,A),distanceSq:oBe([g[0]-.5-k,g[1]-.5-A]),tileDistanceToCamera:Math.sqrt(R*R+J*J)});continue}for(let B=0;B<4;B++){let R=(k<<1)+B%2,J=(A<<1)+(B>>1),K=T.zoom+1;w.push({zoom:K,x:R,y:J,wrap:T.wrap,fullyVisible:P})}}return C.sort((T,k)=>T.distanceSq-k.distanceSq).map(T=>T.tileID)}function sV(e){return e==="raster"||e==="image"||e==="video"}function BZe(e,t,n,r,i,a,o){let s=Nn(),l=uBe(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!FZe(e,c,n,s,r,i,o)&&(zZe(e,c,n,s,a,o)||NZe(c,l,s,o)||c.resetFadeLogic())}}function FZe(e,t,n,r,i,a,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:c}=t;if(l===0&&u===1&&c)return n[c.key]=c,!0;let d=Math.max(s.overscaledZ-i,a);for(let f=s.overscaledZ-1;f>=d;f--){let h=s.scaledTo(f),p=e.getLoadedTile(h);if(p)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:p.tileID,fadeEndTime:r+o}),p.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:r+o}),n[h.key]=h,!0}return!1}function zZe(e,t,n,r,i,a){if(!t.hasData())return!1;let o=t.tileID.children(i),s=lV(e,t,o,n,r,i,a);if(s)return!0;for(let l of o)lV(e,t,l.children(i),n,r,i,a)&&(s=!0);return s}function lV(e,t,n,r,i,a,o){if(n[0].overscaledZ>=a)return!1;let s=!1;for(let l of n){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:c,fadingDirection:d,fadingParentID:f}=u;(c!==0||d!==0||!f)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:i+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:i+o})),r[l.key]=l,s=!0}return s}function NZe(e,t,n,r){let i=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(i)){let a=n+r;return e.setSelfFadeLogic(a),!0}return!1}function VZe(e,t){if(t<=0)return!1;let n=Nn();for(let r of e.getAllTiles())if(r.fadeEndTime>=n)return!0;return!1}function jZe(e,t){let n=t.getRenderableIds();for(let r of n){if(!e.neighboringTiles?.[r])continue;let i=t.getTileById(r);e.neighboringTiles[r].backfilled||uV(e,i),!i.neighboringTiles?.[e.tileID.key]?.backfilled&&uV(i,e)}}function uV(e,t){e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,i=2**e.tileID.canonical.z,a=t.tileID.key;(n!==0||r!==0)&&(Math.abs(r)>1||(Math.abs(n)>1&&(Math.abs(n+i)===1?n+=i:Math.abs(n-i)===1&&(n-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles?.[a]&&(e.neighboringTiles[a].backfilled=!0))))}var cV=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let n in this._tiles){let r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+e),t[r.tileID.key]=r}this._tiles=t}setFeatureState(e,t,n){for(let r in this._tiles)this._tiles[r].setFeatureState(e,t,n)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(PN).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t?.hasData()?t:null}isIdRenderable(e,t=!1){return this.getTileById(e)?.isRenderable(t)}getRenderableIds(e=0,t){let n=[];for(let r of this.getAllIds())this.isIdRenderable(r,t)&&n.push(this.getTileById(r));return t?n.sort((r,i)=>{let a=r.tileID,o=i.tileID,s=new we(a.canonical.x,a.canonical.y)._rotate(-e),l=new we(o.canonical.x,o.canonical.y)._rotate(-e);return a.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(r=>r.tileID.key):n.map(r=>r.tileID).sort(PN).map(r=>r.key)}},hc,Dk=(hc=class extends Ci{constructor(t,n,r){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=r,this.on("data",i=>{this._dataHandler(i)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=SZe(t,n,r,this),this._inViewTiles=new cV,this._outOfViewCache=new sGe(0,i=>this._unloadTile(i)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new EZe,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source?.onAdd&&this._source.onAdd(t)}onRemove(t){for(let n of this._inViewTiles.getAllTiles())n.unloadVectorData();this.clearTiles(),this._source?.onRemove&&this._source.onRemove(t),this._inViewTiles=new cV}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}async _loadTile(t,n,r,i){try{let a=await this._source.loadTile(t);this._tileLoaded(t,n,r,i,a)}catch(a){t.state="errored",a.status===404?this.update(this.transform,this.terrain):this._source.fire(new Et(fa(a),{tile:t}))}}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new yr("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let n of this._inViewTiles.getAllTiles())n.upload(t),n.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){return this._inViewTiles.getRenderableIds(this.transform?.bearingInRadians,t)}hasRenderableParent(t){let n=t.overscaledZ-1;if(n>=this._source.minzoom){let r=this.getLoadedTile(t.scaledTo(n));if(r)return this._inViewTiles.isIdRenderable(r.tileID.key)}return!1}reload(t,n=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(!n||this._source.shouldReloadTile(i,n))&&(t?this._reloadTile(r,i.state==="errored"?"loading":"expired"):i.state!=="errored"&&this._reloadTile(r,"reloading"))}}async _reloadTile(t,n){let r=this._inViewTiles.getTileById(t);if(!r)return;let i=r.hasData();r.state!=="loading"&&(r.state=n),await this._loadTile(r,t,n,i)}_tileLoaded(t,n,r,i,a){i||(t.timeAdded=Nn(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),r==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),!a?.unmodified&&(this.getSource().type==="raster-dem"&&t.dem&&jZe(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new yr("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,n){let r=this._getLoadedDescendents(n),i=new Set;for(let a of n){let o=r[a.key];if(!o?.length){i.add(a);continue}let s=a.overscaledZ+hc.maxOverzooming,l=o.filter(d=>d.tileID.overscaledZ<=s);if(!l.length){i.add(a);continue}let u=Math.min(...l.map(d=>d.tileID.overscaledZ)),c=l.filter(d=>d.tileID.overscaledZ===u).map(d=>d.tileID);for(let d of c)t[d.key]=d;this._areDescendentsComplete(c,u,a.overscaledZ)||i.add(a)}return i}_getLoadedDescendents(t){let n={};for(let r of this._inViewTiles.getAllTiles().filter(i=>i.hasData()))for(let i of t)r.tileID.isChildOf(i)&&(n[i.key]||=[],n[i.key].push(r));return n}_areDescendentsComplete(t,n,r){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===n:4**(n-r)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let n=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=this._maxTileCacheZoomLevels===null?tf.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,i=Math.floor(n*r),a=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,i):i;this._outOfViewCache.setMaxSize(a)}handleWrapJump(t){let n=(t-(this._prevLng===void 0?t:this._prevLng))/360,r=Math.round(n);this._prevLng=t,r&&(this._inViewTiles.handleWrapJump(r),this._resetTileReloadTimers())}_updateMaxContentElevation(){let t=this._maxContentElevationSeen,n=this.map?.style?._layers;if(!n)return t;let r=this._inViewTiles.getAllTiles();for(let i in n){let a=n[i];if(a.type!=="symbol"||a.source!==this.id||a.isHidden(this.transform.zoom))continue;let o=a;if(!o.layout)continue;let s=o.layout.get("symbol-height-offset");if(t=Math.max(t,s.constantOr(0)),!s.isConstant())for(let l of r){let u=l.getBucket(a);u&&u.maxHeightOffset>t&&(t=u.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,n){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=n,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let r;!this.used&&!this.usedForTerrain?r=[]:this._source.tileID?r=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new Qi(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(r=B1(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:n,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(r=r.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(r=this._addTerrainIdealTiles(r));let i=r.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,i&&this.fire(new yr("data",{sourceDataType:"idle",sourceId:this.id}));let a=rD(t,this._source),o=this._updateRetainedTiles(r,a),s=sV(this._source.type);s&&this._rasterFadeDuration>0&&!n&&BZe(this._inViewTiles,r,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let n of this._inViewTiles.getAllIds())t[n]||this._removeTile(n)}_cleanUpVectorTiles(t){for(let n of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(n);if(t[n]){r.clearSymbolFadeHold();continue}if(!r.hasSymbolBuckets){this._removeTile(n);continue}r.holdingForSymbolFade()?r.symbolFadeFinished()&&this._removeTile(n):r.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let n=[];for(let r of t)if(r.canonical.z>this._source.minzoom){let i=r.scaledTo(r.canonical.z-1);n.push(i);let a=r.scaledTo(Math.max(this._source.minzoom,Math.min(r.canonical.z,5)));n.push(a)}return t.concat(n)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,n){let r=new Set;for(let l of t)this._addTile(l).hasData()||r.add(l);let i=t.reduce((l,u)=>(l[u.key]=u,l),{}),a=this._retainLoadedChildren(i,r),o={},s=Math.max(n-hc.maxUnderzooming,this._source.minzoom);for(let l of a){let u=this._inViewTiles.getTileById(l.key),c=u?.wasRequested();for(let d=l.overscaledZ-1;d>=s;--d){let f=l.scaledTo(d);if(o[f.key])break;if(o[f.key]=!0,u=this.getTile(f),!u&&c&&(u=this._addTile(f)),u){let h=u.hasData();if((h||!this.map?.cancelPendingTileRequestsWhileZooming||c)&&(i[f.key]=f),c=u.wasRequested(),h)break}}}return i}_addTile(t){let n=this._inViewTiles.getTileById(t.key);if(n)return n;n=this._outOfViewCache.getAndRemove(t),n&&(n.resetFadeLogic(),this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null));let r=n;return n||(n=new ane(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,t.key,n.state,!1)),n.uses++,this._inViewTiles.setTile(t.key,n),r||this._source.fire(new yr("dataloading",{tile:n,coord:n.tileID})),n}_setTileReloadTimer(t,n){this._clearTileReloadTimer(t);let r=n.getExpiryTimeout();if(r){let i=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(i,r)}}_clearTileReloadTimer(t){let n=this._timers[t];n&&(clearTimeout(n),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,n)}}refreshTiles(t){for(let n of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(n);(this._inViewTiles.isIdRenderable(n)||r.state=="errored")&&t.some(i=>i.equals(r.tileID.canonical))&&this._reloadTile(n,"expired")}}_removeTile(t){let n=this._inViewTiles.getTileById(t);n&&(n.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(n.uses>0)&&(n.hasData()&&n.state!=="reloading"?this._outOfViewCache.add(n.tileID,n,n.getExpiryTimeout()):(n.aborted=!0,this._abortTile(n),this._unloadTile(n))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,n,r){let i=[],a=this.transform;if(!a)return i;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=r?a.getCameraQueryGeometry(t):t,l=h=>a.screenPointToMercatorCoordinate(h,this.terrain),u=this.transformBbox(t,l,!o),c=this.transformBbox(s,l,!o),d=this.getIds(),f=fl.fromPoints(c);for(let h of d){let p=this._inViewTiles.getTileById(h);if(p.holdingForSymbolFade())continue;let g=o?[p.tileID]:[p.tileID.unwrapTo(-1),p.tileID.unwrapTo(0)],v=2**(a.zoom-p.tileID.overscaledZ),b=n*p.queryPadding*He/p.tileSize/v;for(let x of g){let _=f.map(w=>x.getTilePoint(new Fn(w.x,w.y)));if(_.expandBy(b),_.intersects(EVe)){let w=u.map(T=>x.getTilePoint(T)),C=c.map(T=>x.getTilePoint(T));i.push({tile:p,tileID:o?x:x.unwrapTo(0),queryGeometry:w,cameraQueryGeometry:C,scale:v})}}}return i}transformBbox(t,n,r){let i=t.map(n);if(r){let a=fl.fromPoints(t);a.shrinkBy(Math.min(a.width(),a.height())*.001);let o=a.map(n);fl.fromPoints(i).covers(o)||(i=i.map(s=>s.x>.5?new Fn(s.x-1,s.y,s.z):s))}return i}getVisibleCoordinates(t){let n=this.getRenderableIds(t).map(r=>this._inViewTiles.getTileById(r).tileID);return this.transform&&this.transform.populateCache(n),n}hasTransition(){return this._source.hasTransition()?!0:sV(this._source.type)&&VZe(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,n,r){t||=Zb,this._state.updateState(t,n,r)}removeFeatureState(t,n,r){t||=Zb,this._state.removeFeatureState(t,n,r)}getFeatureState(t,n){return t||=Zb,this._state.getState(t,n)}setDependencies(t,n,r){let i=this._inViewTiles.getTileById(t);i&&i.setDependencies(n,r)}reloadTilesForDependencies(t,n){for(let r of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(r).hasDependency(t,n)&&this._reloadTile(r,"reloading");this._outOfViewCache.filter(r=>!r.hasDependency(t,n))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},hc.maxUnderzooming=10,hc.maxOverzooming=3,hc),UZe=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,this.length*.5),this.paddedLength=this.length-this.padding*2}lerp(e){if(this.points.length===1)return this.points[0];e=qt(e,0,1);let t=1,n=this._distances[t],r=e*this.paddedLength+this.padding;for(;n<r&&t<this._distances.length;)n=this._distances[++t];let i=t-1,a=this._distances[i],o=n-a,s=o>0?(r-a)/o:0;return this.points[i].mult(1-s).add(this.points[t].mult(s))}};function Jb(e,t,n,r,i){return i?e?e(t,n)+r:r===0?void 0:r:r}function eb(e,t){let n=!0;return e==="always"||(e==="never"||t==="never")&&(n=!1),n}var dV=class{constructor(e,t,n){let r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let a=0;a<this.xCellCount*this.yCellCount;a++)r.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)}insertCircle(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)}_insertBoxCell(e,t,n,r,i,a){this.boxCells[i].push(a)}_insertCircleCell(e,t,n,r,i,a){this.circleCells[i].push(a)}_query(e,t,n,r,i,a,o){if(n<0||e>this.width||r<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return[{key:null,x1:e,y1:t,x2:n,y2:r}];for(let l=0;l<this.boxKeys.length;l++)s.push({key:this.boxKeys[l],x1:this.bboxes[l*4],y1:this.bboxes[l*4+1],x2:this.bboxes[l*4+2],y2:this.bboxes[l*4+3]});for(let l=0;l<this.circleKeys.length;l++){let u=this.circles[l*3],c=this.circles[l*3+1],d=this.circles[l*3+2];s.push({key:this.circleKeys[l],x1:u-d,y1:c-d,x2:u+d,y2:c+d})}}else{let l={hitTest:i,overlapMode:a,seenUids:{box:{},circle:{}}};this._forEachCell(e,t,n,r,this._queryCell,s,l,o)}return s}query(e,t,n,r){return this._query(e,t,n,r,!1,null)}hitTest(e,t,n,r,i,a){return this._query(e,t,n,r,!0,i,a).length>0}hitTestCircle(e,t,n,r,i){let a=e-n,o=e+n,s=t-n,l=t+n;if(o<0||a>this.width||l<0||s>this.height)return!1;let u=[],c={hitTest:!0,overlapMode:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,u,c,i),u.length>0}_queryCell(e,t,n,r,i,a,o,s){let{seenUids:l,hitTest:u,overlapMode:c}=o,d=this.boxCells[i],f=1e-6;if(d!==null){let p=this.bboxes;for(let g of d)if(!l.box[g]){l.box[g]=!0;let v=g*4,b=this.boxKeys[g];if(e<=p[v+2]+f&&t<=p[v+3]+f&&n>=p[v+0]-f&&r>=p[v+1]-f&&(!s||s(b))&&(!u||!eb(c,b.overlapMode))&&(a.push({key:b,x1:p[v],y1:p[v+1],x2:p[v+2],y2:p[v+3]}),u))return!0}}let h=this.circleCells[i];if(h!==null){let p=this.circles;for(let g of h)if(!l.circle[g]){l.circle[g]=!0;let v=g*3,b=this.circleKeys[g];if(this._circleAndRectCollide(p[v],p[v+1],p[v+2],e,t,n,r)&&(!s||s(b))&&(!u||!eb(c,b.overlapMode))){let x=p[v],_=p[v+1],w=p[v+2];if(a.push({key:b,x1:x-w,y1:_-w,x2:x+w,y2:_+w}),u)return!0}}}return!1}_queryCellCircle(e,t,n,r,i,a,o,s){let{circle:l,seenUids:u,overlapMode:c}=o,d=this.boxCells[i];if(d!==null){let h=this.bboxes;for(let p of d)if(!u.box[p]){u.box[p]=!0;let g=p*4,v=this.boxKeys[p];if(this._circleAndRectCollide(l.x,l.y,l.radius,h[g+0],h[g+1],h[g+2],h[g+3])&&(!s||s(v))&&!eb(c,v.overlapMode))return a.push(!0),!0}}let f=this.circleCells[i];if(f!==null){let h=this.circles;for(let p of f)if(!u.circle[p]){u.circle[p]=!0;let g=p*3,v=this.circleKeys[p];if(this._circlesCollide(h[g],h[g+1],h[g+2],l.x,l.y,l.radius)&&(!s||s(v))&&!eb(c,v.overlapMode))return a.push(!0),!0}}}_forEachCell(e,t,n,r,i,a,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),d=this._convertToYCellCoord(r);for(let f=l;f<=c;f++)for(let h=u;h<=d;h++){let p=this.xCellCount*h+f;if(i.call(this,e,t,n,r,p,a,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,r,i,a){let o=r-e,s=i-t,l=n+a;return l*l>o*o+s*s}_circleAndRectCollide(e,t,n,r,i,a,o){let s=(a-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;let u=(o-i)/2,c=Math.abs(t-(i+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;let d=l-s,f=c-u;return d*d+f*f<=n*n}};function HZe(e,t){let n=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),r=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),i=t[0]*n,a=t[4]*n,o=t[8]*r,s=t[1]*n,l=t[5]*n,u=t[9]*r,c=t[2]*n,d=t[6]*n,f=t[10]*r;e[0]=i,e[1]=a,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=c,e[9]=d,e[10]=f;let h=t[12],p=t[13],g=t[14];return e[12]=-i*h-s*p-c*g,e[13]=-a*h-l*p-d*g,e[14]=-o*h-u*p-f*g,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function qZe(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function WZe(e,t){let n=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*n,e[1]=-t[1]*n,e[2]=0,e[3]=0,e[4]=-t[4]*n,e[5]=t[0]*n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}const GZe=mf();function iD(e,t,n){let r=mf();if(!e){let{vecSouth:i,vecEast:a}=aD(t),o=Lte();o[0]=a[0],o[1]=a[1],o[2]=i[0],o[3]=i[1],uGe(o,o),r[0]=o[0],r[1]=o[1],r[4]=o[2],r[5]=o[3]}return ta(r,r,[1/n,1/n,1]),r}function ZZe(e,t,n,r){if(e){let i=mf();if(!t){let{vecSouth:a,vecEast:o}=aD(n);i[0]=o[0],i[1]=o[1],i[4]=a[0],i[5]=a[1]}return ta(i,i,[r,r,1]),i}return n.pixelsToClipSpaceMatrix}function aD(e){let t=Math.cos(e.rollInRadians),n=Math.sin(e.rollInRadians),r=Math.cos(e.pitchInRadians),i=Math.cos(e.bearingInRadians),a=Math.sin(e.bearingInRadians),o=cT();o[0]=-i*r*n-a*t,o[1]=-a*r*n+i*t;let s=dz(o);s<1e-9?fz(o):cz(o,o,1/s);let l=cT();l[0]=i*r*t-a*n,l[1]=a*r*t+i*n;let u=dz(l);return u<1e-9?fz(l):cz(l,l,1/u),{vecEast:l,vecSouth:o}}function np(e,t,n){return Jb(e.getElevation,t,n,e.heightOffset??0,e.heightAnchorGround??!0)}function oD(e,t,n,r){let i;r==null?(i=[e,t,0,1],sD(i,i,n)):(i=[e,t,r,1],na(i,i,n));let a=i[3];return{point:new we(i[0]/a,i[1]/a),signedDistanceFromCamera:a,isOccluded:!1}}function lne(e,t){return .5+e/t*.5}function KZe(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function YZe(e,t,n,r,i,a,o,s,l,u,c,d,f){let h=n?e.textSizeData:e.iconSizeData,p=pw(h,t.transform.zoom),g=[256/t.width*2+1,256/t.height*2+1],v=n?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;v.clear();let b=e.lineVertexArray,x=n?e.text.placedSymbolArray:e.icon.placedSymbolArray,_=t.transform.width/t.transform.height,w=!1;for(let C=0;C<x.length;C++){let T=x.get(C);if(T.hidden||T.writingMode===2&&!w){vm(T.numGlyphs,v);continue}w=!1;let k=new we(T.anchorX,T.anchorY),A={getElevation:f,pitchedLabelPlaneMatrix:r,lineVertexArray:b,pitchWithMap:a,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:t.transform,tileAnchorPoint:k,unwrappedTileID:l,width:u,height:c,translation:d},P=dne(T.anchorX,T.anchorY,A);if(!KZe(P.point,g)){vm(T.numGlyphs,v);continue}let D=P.signedDistanceFromCamera,$=lne(t.transform.cameraToCenterDistance,D),O=OP(h,p,T),z=a?O*t.transform.getPitchedTextCorrection(T.anchorX,T.anchorY,l)/$:O*$,j=hV({projectionContext:A,pitchedLabelPlaneMatrixInverse:i,symbol:T,fontSize:z,flip:!1,keepUpright:o,glyphOffsetArray:e.glyphOffsetArray,dynamicLayoutVertexArray:v,aspectRatio:_,rotateToLine:s});w=j.useVertical,(j.notEnoughRoom||w||j.needsFlipping&&hV({projectionContext:A,pitchedLabelPlaneMatrixInverse:i,symbol:T,fontSize:z,flip:!0,keepUpright:o,glyphOffsetArray:e.glyphOffsetArray,dynamicLayoutVertexArray:v,aspectRatio:_,rotateToLine:s}).notEnoughRoom)&&vm(T.numGlyphs,v)}n?e.text.dynamicLayoutVertexBuffer.updateData(v):e.icon.dynamicLayoutVertexBuffer.updateData(v)}function une(e,t,n,r,i,a,o,s){let l=a.glyphStartIndex+a.numGlyphs,u=a.lineStartIndex,c=a.lineStartIndex+a.lineLength,d=t.getoffsetX(a.glyphStartIndex),f=t.getoffsetX(l-1),h=I5(e*d,n,r,i,a.segment,u,c,s,o);if(!h)return null;let p=I5(e*f,n,r,i,a.segment,u,c,s,o);return!p||s.projectionCache.anyProjectionOccluded?null:{first:h,last:p}}function fV(e,t,n,r){return e===1&&Math.abs(n.y-t.y)>Math.abs(n.x-t.x)*r?{useVertical:!0}:(e===2?t.y<n.y:t.x>n.x)?{needsFlipping:!0}:null}function hV(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:n,symbol:r,fontSize:i,flip:a,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:c}=e,d=i/24,f=r.lineOffsetX*d,h=r.lineOffsetY*d,p;if(r.numGlyphs>1){let g=r.glyphStartIndex+r.numGlyphs,v=r.lineStartIndex,b=r.lineStartIndex+r.lineLength,x=une(d,s,f,h,a,r,c,t);if(!x)return{notEnoughRoom:!0};let _=tb(x.first.point.x,x.first.point.y,t,n),w=tb(x.last.point.x,x.last.point.y,t,n);if(o&&!a){let C=fV(r.writingMode,_,w,u);if(C)return C}p=[x.first];for(let C=r.glyphStartIndex+1;C<g-1;C++){let T=I5(d*s.getoffsetX(C),f,h,a,r.segment,v,b,t,c);if(!T)return{notEnoughRoom:!0};p.push(T)}p.push(x.last)}else{if(o&&!a){let v=rp(t.tileAnchorPoint.x,t.tileAnchorPoint.y,t).point,b=r.lineStartIndex+r.segment+1,x=new we(t.lineVertexArray.getx(b),t.lineVertexArray.gety(b)),_=rp(x.x,x.y,t),w=_.signedDistanceFromCamera>0?_.point:cne(t.tileAnchorPoint,x,v,1,t),C=tb(v.x,v.y,t,n),T=tb(w.x,w.y,t,n),k=fV(r.writingMode,C,T,u);if(k)return k}let g=I5(d*s.getoffsetX(r.glyphStartIndex),f,h,a,r.segment,r.lineStartIndex,r.lineStartIndex+r.lineLength,t,c);if(!g||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};p=[g]}for(let g of p)E5(l,g.point,g.angle);return{}}function cne(e,t,n,r,i){let a=e.add(e.sub(t)._unit()),o=rp(a.x,a.y,i).point,s=n.sub(o);return n.add(s._mult(r/s.mag()))}function Ik(e,t,n){let r=t.projectionCache;if(r.projections[e])return r.projections[e];let i=new we(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),a=rp(i.x,i.y,t);if(a.signedDistanceFromCamera>0)return r.projections[e]=a.point,r.anyProjectionOccluded||=a.isOccluded,a.point;let o=e-n.direction,s=n.distanceFromAnchor===0?t.tileAnchorPoint:new we(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=n.absOffsetX-n.distanceFromAnchor+1;return cne(s,i,n.previousVertex,l,t)}function rp(e,t,n){let r=e+n.translation[0],i=t+n.translation[1],a;return n.pitchWithMap?(a=oD(r,i,n.pitchedLabelPlaneMatrix,np(n,r,i)),a.isOccluded=!1):(a=n.transform.projectTileCoordinates(r,i,n.unwrappedTileID,np(n,r,i)),a.point.x=(a.point.x*.5+.5)*n.width,a.point.y=(-a.point.y*.5+.5)*n.height),a}function tb(e,t,n,r){if(n.pitchWithMap){let i=[e,t,0,1];na(i,i,r);let a=i[0]/i[3],o=i[1]/i[3];return n.transform.projectTileCoordinates(a,o,n.unwrappedTileID,np(n,a,o)).point}return{x:e/n.width*2-1,y:1-t/n.height*2}}function dne(e,t,n){return n.transform.projectTileCoordinates(e,t,n.unwrappedTileID,np(n,e,t))}function $k(e,t,n){return e._unit()._perp()._mult(t*n)}function XZe(e,t,n,r,i,a,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=n.add(t);if(e+l.direction<r||e+l.direction>=i)return s.projectionCache.offsets[e]=u,u;let c=Ik(e+l.direction,s,l),d=$k(c.sub(n),o,l.direction),f=n.add(d),h=c.add(d);return s.projectionCache.offsets[e]=pBe(a,u,f,h)||u,s.projectionCache.offsets[e]}function I5(e,t,n,r,i,a,o,s,l){let u=r?e-t:e+t,c=u>0?1:-1,d=0;r&&(c*=-1,d=Math.PI),c<0&&(d+=Math.PI);let f=c>0?a+i:a+i+1,h;s.projectionCache.cachedAnchorPoint?h=s.projectionCache.cachedAnchorPoint:(h=rp(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=h);let p=h,g=h,v,b,x=0,_=0,w=Math.abs(u),C=[],T;for(;x+_<=w;){if(f+=c,f<a||f>=o)return null;x+=_,g=p,b=v;let D={absOffsetX:w,direction:c,distanceFromAnchor:x,previousVertex:g};if(p=Ik(f,s,D),n===0)C.push(g),T=p.sub(g);else{let $,O=p.sub(g);$=O.mag()===0?$k(Ik(f+c,s,D).sub(p),n,c):$k(O,n,c),b||=g.add($),v=XZe(f,$,p,a,o,b,n,s,D),C.push(b),T=v.sub(b)}_=T.mag()}let k=(w-x)/_,A=T._mult(k)._add(b||g),P=d+Math.atan2(p.y-g.y,p.x-g.x);return C.push(A),{point:A,angle:l?P:0,path:C}}const JZe=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function vm(e,t){for(let n=0;n<e;n++){let r=t.length;t.resize(r+4),t.float32.set(JZe,r*3)}}function sD(e,t,n){let r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e[3]=n[3]*r+n[7]*i+n[15],e}function QZe(e,t){let n=GZe;return WZe(n,t.pitchedLabelPlaneMatrix),e.map(r=>{let i=oD(r.x,r.y,n,np(t,r.x,r.y)),a=t.transform.projectTileCoordinates(i.point.x,i.point.y,t.unwrappedTileID,np(t,i.point.x,i.point.y));return a.point.x=(a.point.x*.5+.5)*t.width,a.point.y=(-a.point.y*.5+.5)*t.height,a})}function eKe(e){let t=0,n=0,r=0,i=0;for(let a=0;a<e.length;a++)e[a].isOccluded?(r=a+1,i=0):(i++,i>n&&(n=i,t=r));return e.slice(t,t+n)}var tKe=class{constructor(e,t=new dV(e.width+200,e.height+200,25),n=new dV(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=n,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,n,r,i,a,o,s,l,u,c,d,f=0,h=!0){let p=e.anchorPointX+s[0],g=e.anchorPointY+s[1],v=this.projectAndGetPerspectiveRatio(p,g,i,Jb(u,p,g,f,h),d),b=n*v.perspectiveRatio,x;if(!a&&!o){let P=v.x+(c?c.x*b:0),D=v.y+(c?c.y*b:0);x={allPointsOccluded:!1,box:[P+e.x1*b,D+e.y1*b,P+e.x2*b,D+e.y2*b]}}else x=this._projectCollisionBox(e,b,r,i,a,o,s,v,u,c,d,f,h);let[_,w,C,T]=x.box,k=a?x.allPointsOccluded:v.isOccluded,A=k;return A||=v.perspectiveRatio<this.perspectiveRatioCutoff,A||=!this.isInsideGrid(_,w,C,T),A||t!=="always"&&this.grid.hitTest(_,w,C,T,t,l)?{box:[_,w,C,T],placeable:!1,offscreen:!1,occluded:k}:{box:[_,w,C,T],placeable:!0,offscreen:this.isOffscreen(_,w,C,T),occluded:k}}placeCollisionCircles(e,t,n,r,i,a,o,s,l,u,c,d,f,h){let p=[],g=new we(t.anchorX,t.anchorY),v=this.getPerspectiveRatio(g.x,g.y,a,h?.(g.x,g.y)),b=(l?i*this.transform.getPitchedTextCorrection(t.anchorX,t.anchorY,a)/v:i*v)/24,x={projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},_=t.lineOffsetX*b,w=t.lineOffsetY*b,C={getElevation:h,pitchedLabelPlaneMatrix:o,lineVertexArray:n,pitchWithMap:l,projectionCache:x,transform:this.transform,tileAnchorPoint:g,unwrappedTileID:a,width:this.transform.width,height:this.transform.height,translation:f},T=une(b,r,_,w,!1,t,!1,C),k=!1,A=!1,P=!0;if(T){let D=c*.5*v+d,$=new we(-100,-100),O=new we(this.screenRightBoundary,this.screenBottomBoundary),z=new UZe,j=T.first,B=T.last,R=[];for(let Z=j.path.length-1;Z>=1;Z--)R.push(j.path[Z]);for(let Z=1;Z<B.path.length;Z++)R.push(B.path[Z]);let J=D*2.5;if(l){let Z=this.projectPathToScreenSpace(R,C);R=Z.some(ne=>ne.signedDistanceFromCamera<=0)?[]:Z.map(ne=>ne.point)}let K=[];if(R.length>0){let Z=R[0].clone(),ne=R[0].clone();for(let se=1;se<R.length;se++)Z.x=Math.min(Z.x,R[se].x),Z.y=Math.min(Z.y,R[se].y),ne.x=Math.max(ne.x,R[se].x),ne.y=Math.max(ne.y,R[se].y);K=Z.x>=$.x&&ne.x<=O.x&&Z.y>=$.y&&ne.y<=O.y?[R]:ne.x<$.x||Z.x>O.x||ne.y<$.y||Z.y>O.y?[]:Qee([R],$.x,$.y,O.x,O.y)}for(let Z of K){z.reset(Z,D*.25);let ne=0;ne=z.length<=.5*D?1:Math.ceil(z.paddedLength/J)+1;for(let se=0;se<ne;se++){let ce=se/Math.max(ne-1,1),Re=z.lerp(ce),Ue=Re.x+100,$e=Re.y+100;p.push(Ue,$e,D,0);let ke=Ue-D,Ve=$e-D,nt=Ue+D,xe=$e+D;if(P&&=this.isOffscreen(ke,Ve,nt,xe),A||=this.isInsideGrid(ke,Ve,nt,xe),e!=="always"&&this.grid.hitTestCircle(Ue,$e,D,e,u)&&(k=!0,!s))return{circles:[],offscreen:!1,collisionDetected:k}}}}return{circles:!s&&k||!A||v<this.perspectiveRatioCutoff?[]:p,offscreen:P,collisionDetected:k}}projectPathToScreenSpace(e,t){return eKe(QZe(e,t))}queryRenderedSymbols(e){if(e.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let t=[],n=new fl;for(let c of e){let d=new we(c.x+100,c.y+100);n.extend(d),t.push(d)}let{minX:r,minY:i,maxX:a,maxY:o}=n,s=this.grid.query(r,i,a,o).concat(this.ignoredGrid.query(r,i,a,o)),l={},u={};for(let c of s){let d=c.key;if(l[d.bucketInstanceId]===void 0&&(l[d.bucketInstanceId]={}),l[d.bucketInstanceId][d.featureIndex])continue;let f=[new we(c.x1,c.y1),new we(c.x2,c.y1),new we(c.x2,c.y2),new we(c.x1,c.y2)];aee(t,f)&&(l[d.bucketInstanceId][d.featureIndex]=!0,u[d.bucketInstanceId]===void 0&&(u[d.bucketInstanceId]=[]),u[d.bucketInstanceId].push(d.featureIndex))}return u}insertCollisionBox(e,t,n,r,i,a){let o=n?this.ignoredGrid:this.grid,s={bucketInstanceId:r,featureIndex:i,collisionGroupID:a,overlapMode:t};o.insert(s,e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,n,r,i,a){let o=n?this.ignoredGrid:this.grid,s={bucketInstanceId:r,featureIndex:i,collisionGroupID:a,overlapMode:t};for(let l=0;l<e.length;l+=4)o.insertCircle(s,e[l],e[l+1],e[l+2])}projectAndGetPerspectiveRatio(e,t,n,r,i){if(i){let a;r==null?(a=[e,t,0,1],sD(a,a,i)):(a=[e,t,r,1],na(a,a,i));let o=a[3];return{x:(a[0]/o+1)/2*this.transform.width+100,y:(-a[1]/o+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/o),isOccluded:!1,signedDistanceFromCamera:o}}{let a=this.transform.projectTileCoordinates(e,t,n,r);return{x:(a.point.x+1)/2*this.transform.width+100,y:(-a.point.y+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/a.signedDistanceFromCamera),isOccluded:a.isOccluded,signedDistanceFromCamera:a.signedDistanceFromCamera}}}getPerspectiveRatio(e,t,n,r){let i=this.transform.projectTileCoordinates(e,t,n,r);return .5+.5*(this.transform.cameraToCenterDistance/i.signedDistanceFromCamera)}isOffscreen(e,t,n,r){return n<100||e>=this.screenRightBoundary||r<100||t>this.screenBottomBoundary}isInsideGrid(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary}getViewportMatrix(){let e=vl([]);return ci(e,e,[-100,-100,0]),e}_projectCollisionBox(e,t,n,r,i,a,o,s,l,u,c,d=0,f=!0){let h=1,p=0,g=0,v=1,b=e.anchorPointX+o[0],x=e.anchorPointY+o[1];if(a&&!i){let B=this.projectAndGetPerspectiveRatio(b+1,x,r,Jb(l,b+1,x,d,f),c),R=B.x-s.x,J=B.y-s.y,K=Math.atan(J/R)+(R<0?Math.PI:0),Z=Math.sin(K),ne=Math.cos(K);h=ne,p=Z,g=-Z,v=ne}else if(!a&&i){let B=aD(this.transform);h=B.vecEast[0],p=B.vecEast[1],g=B.vecSouth[0],v=B.vecSouth[1]}let _=s.x,w=s.y,C=t;if(i&&(_=b,w=x,C=2**-(this.transform.zoom-n.overscaledZ),C*=this.transform.getPitchedTextCorrection(b,x,r),!u)){let B=s.signedDistanceFromCamera/this.transform.cameraToCenterDistance,R=qt(.5+.5*B,0,4);C*=R}u&&(_+=h*u.x*C+g*u.y*C,w+=p*u.x*C+v*u.y*C);let T=e.x1*C,k=e.x2*C,A=(T+k)/2,P=e.y1*C,D=e.y2*C,$=(P+D)/2,O=[{offsetX:T,offsetY:P},{offsetX:A,offsetY:P},{offsetX:k,offsetY:P},{offsetX:k,offsetY:$},{offsetX:k,offsetY:D},{offsetX:A,offsetY:D},{offsetX:T,offsetY:D},{offsetX:T,offsetY:$}],z=[];for(let{offsetX:B,offsetY:R}of O)z.push(new we(_+h*B+g*R,w+p*B+v*R));let j=!1;if(i){let B=z.map(R=>this.projectAndGetPerspectiveRatio(R.x,R.y,r,Jb(l,R.x,R.y,d,f),c));j=B.some(R=>!R.isOccluded),z=B.map(R=>new we(R.x,R.y))}else j=!0;return{box:lBe(z),allPointsOccluded:!j}}},pV=class{constructor(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n}isHidden(){return this.opacity===0&&!this.placed}},Fg=class{constructor(e,t,n,r,i){this.text=new pV(e?e.text:null,t,n,i),this.icon=new pV(e?e.icon:null,t,r,i)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},mV=class{constructor(e,t,n){this.text=e,this.icon=t,this.skipFade=n}},nKe=class{constructor(e,t,n,r,i){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i}},rKe=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:n=>n.collisionGroupID===t}}return this.collisionGroups[e]}};function gV(e,t,n,r,i){let{horizontalAlign:a,verticalAlign:o}=hw(e),s=-(a-.5)*t,l=-(o-.5)*n;return new we(s+r[0]*i,l+r[1]*i)}var iKe=class{constructor(e,t,n,r,i){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new tKe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=n,this.retainedQueryData={},this.collisionGroups=new rKe(r),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(n,r)=>t.getElevation(e,n,r)}getBucketParts(e,t,n,r){let i=n.getBucket(t),a=n.latestFeatureIndex;if(!i||!a||t.id!==i.layerIds[0])return;let o=n.collisionBoxArray,s=i.layers[0].layout,l=i.layers[0].paint,u=2**(this.transform.zoom-n.tileID.overscaledZ),c=n.tileSize/He,d=n.tileID.toUnwrapped(),f=s.get("text-rotation-alignment")==="map",h=Jo(n,1,this.transform.zoom),p=Qd(this.collisionIndex.transform,n,l.get("text-translate"),l.get("text-translate-anchor")),g=Qd(this.collisionIndex.transform,n,l.get("icon-translate"),l.get("icon-translate-anchor")),v=iD(f,this.transform,h);this.retainedQueryData[i.bucketInstanceId]=new nKe(i.bucketInstanceId,a,i.sourceLayerIndex,i.index,n.tileID);let b={bucket:i,layout:s,translationText:p,translationIcon:g,unwrappedTileID:d,pitchedLabelPlaneMatrix:v,scale:u,textPixelRatio:c,holdingForFade:n.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:pw(i.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(i.sourceID)};if(r)for(let x of i.sortKeyRanges){let{sortKey:_,symbolInstanceStart:w,symbolInstanceEnd:C}=x;e.push({sortKey:_,symbolInstanceStart:w,symbolInstanceEnd:C,parameters:b})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:i.symbolInstances.length,parameters:b})}attemptAnchorPlacement(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x,_,w,C){let T=mk[e.textAnchor],k=[e.textOffset0,e.textOffset1],A=gV(T,n,r,k,i),P=this.collisionIndex.placeCollisionBox(t,d,s,l,u,o,a,g,c.predicate,x,A,_,w,C);if((!b||this.collisionIndex.placeCollisionBox(b,d,s,l,u,o,a,v,c.predicate,x,A,_,w,C).placeable)&&P.placeable){let D;if(this.prevPlacement?.variableOffsets[f.crossTileID]&&this.prevPlacement?.placements[f.crossTileID]?.text&&(D=this.prevPlacement.variableOffsets[f.crossTileID].anchor),f.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[f.crossTileID]={textOffset:k,width:n,height:r,anchor:T,textBoxScale:i,prevAnchor:D},this.markUsedJustification(h,T,f,p),h.allowVerticalPlacement&&(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:A,placedGlyphBoxes:P}}}placeLayerBucketPart(e,t,n){let{bucket:r,layout:i,translationText:a,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:c,collisionBoxArray:d,partiallyEvaluatedTextSize:f,collisionGroup:h}=e.parameters,p=i.get("text-optional"),g=i.get("icon-optional"),v=k5(i,"text-overlap","text-allow-overlap"),b=v==="always",x=k5(i,"icon-overlap","icon-allow-overlap"),_=x==="always",w=i.get("text-rotation-alignment")==="map",C=i.get("text-pitch-alignment")==="map",T=i.get("icon-text-fit")!=="none",k=i.get("symbol-z-order")==="viewport-y",A=i.get("symbol-height-anchor")==="ground",P=b&&(_||!r.hasIconData()||g),D=_&&(b||!r.hasTextData()||p);!r.collisionArrays&&d&&r.deserializeCollisionBoxes(d);let $=this.retainedQueryData[r.bucketInstanceId].tileID,O=this._getTerrainElevationFunc($),z=this.transform.getFastPathSimpleProjectionMatrix($),j=(B,R,J)=>{if(t[B.crossTileID])return;if(c){this.placements[B.crossTileID]=new mV(!1,!1,!1);return}let K=B.heightOffset,Z=!1,ne=!1,se=!0,ce=null,Re={box:null,placeable:!1,offscreen:null,occluded:!1},Ue={placeable:!1},$e=null,ke=null,Ve=null,nt=0,xe=0,Pe=0;R.textFeatureIndex?nt=R.textFeatureIndex:B.useRuntimeCollisionCircles&&(nt=B.featureIndex),R.verticalTextFeatureIndex&&(xe=R.verticalTextFeatureIndex);let je=R.textBox;if(je){let X=ge=>{let Oe=1;if(r.allowVerticalPlacement&&!ge&&this.prevPlacement){let Se=this.prevPlacement.placedOrientations[B.crossTileID];Se&&(this.placedOrientations[B.crossTileID]=Se,Oe=Se,this.markUsedOrientation(r,Oe,B))}return Oe},ee=(ge,Oe)=>{if(r.allowVerticalPlacement&&B.numVerticalGlyphVertices>0&&R.verticalTextBox){for(let Se of r.writingModes)if(Se===2?(Re=Oe(),Ue=Re):Re=ge(),Re?.placeable)break}else Re=ge()},oe=B.textAnchorOffsetStartIndex,_e=B.textAnchorOffsetEndIndex;if(_e===oe){let ge=(Oe,Se)=>{let he=this.collisionIndex.placeCollisionBox(Oe,v,u,$,s,C,w,a,h.predicate,O,void 0,z,K,A);return he?.placeable&&(this.markUsedOrientation(r,Se,B),this.placedOrientations[B.crossTileID]=Se),he};ee(()=>ge(je,1),()=>{let Oe=R.verticalTextBox;return r.allowVerticalPlacement&&B.numVerticalGlyphVertices>0&&Oe?ge(Oe,2):{box:null,offscreen:null}}),X(Re?.placeable)}else{let ge=mk[this.prevPlacement?.variableOffsets[B.crossTileID]?.anchor],Oe=(he,Te,ze)=>{let qe=he.x2-he.x1,lt=he.y2-he.y1,bt=B.textBoxScale,fe=T&&x==="never"?Te:null,pe=null,De=v==="never"?1:2,Ge="never";ge&&De++;for(let ut=0;ut<De;ut++){for(let it=oe;it<_e;it++){let mt=r.textAnchorOffsets.get(it);if(ge&&mt.textAnchor!==ge)continue;let Be=this.attemptAnchorPlacement(mt,he,qe,lt,bt,w,C,u,$,s,h,Ge,B,r,ze,a,o,fe,O,z,K,A);if(Be&&(pe=Be.placedGlyphBoxes,pe?.placeable))return Z=!0,ce=Be.shift,pe}ge?ge=null:Ge=v}return n&&!pe&&(pe={box:this.collisionIndex.placeCollisionBox(je,"always",u,$,s,C,w,a,h.predicate,O,void 0,z,K,A).box,offscreen:!1,placeable:!1,occluded:!1}),pe};ee(()=>Oe(je,R.iconBox,1),()=>{let he=R.verticalTextBox,Te=Re?.placeable;return r.allowVerticalPlacement&&!Te&&B.numVerticalGlyphVertices>0&&he?Oe(he,R.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),Re&&(Z=Re.placeable,se=Re.offscreen);let Se=X(Re?.placeable);if(!Z&&this.prevPlacement){let he=this.prevPlacement.variableOffsets[B.crossTileID];he&&(this.variableOffsets[B.crossTileID]=he,this.markUsedJustification(r,he.anchor,B,Se))}}}if($e=Re,Z=$e?.placeable,se=$e?.offscreen,B.useRuntimeCollisionCircles&&B.centerJustifiedTextSymbolIndex>=0){let X=r.text.placedSymbolArray.get(B.centerJustifiedTextSymbolIndex),ee=OP(r.textSizeData,f,X),oe=i.get("text-padding"),_e=B.collisionCircleDiameter;ke=this.collisionIndex.placeCollisionCircles(v,X,r.lineVertexArray,r.glyphOffsetArray,ee,s,l,n,C,h.predicate,_e,oe,a,O),ke.circles.length&&ke.collisionDetected&&!n&&hn("Collisions detected, but collision boxes are not shown"),Z=b||ke.circles.length>0&&!ke.collisionDetected,se&&=ke.offscreen}if(R.iconFeatureIndex&&(Pe=R.iconFeatureIndex),R.iconBox){let X=ee=>this.collisionIndex.placeCollisionBox(ee,x,u,$,s,C,w,o,h.predicate,O,T&&ce?ce:void 0,z,K,A);Ue&&Ue.placeable&&R.verticalIconBox?(Ve=X(R.verticalIconBox),ne=Ve.placeable):(Ve=X(R.iconBox),ne=Ve.placeable),se&&=Ve.offscreen}let Fe=p||B.numHorizontalGlyphVertices===0&&B.numVerticalGlyphVertices===0,re=g||B.numIconVertices===0;!Fe&&!re?ne=Z=ne&&Z:re?Fe||(ne&&=Z):Z=ne&&Z;let le=Z&&$e.placeable,ye=ne&&Ve.placeable;if(le&&(Ue&&Ue.placeable&&xe?this.collisionIndex.insertCollisionBox($e.box,v,i.get("text-ignore-placement"),r.bucketInstanceId,xe,h.ID):this.collisionIndex.insertCollisionBox($e.box,v,i.get("text-ignore-placement"),r.bucketInstanceId,nt,h.ID)),ye&&this.collisionIndex.insertCollisionBox(Ve.box,x,i.get("icon-ignore-placement"),r.bucketInstanceId,Pe,h.ID),ke&&Z&&this.collisionIndex.insertCollisionCircles(ke.circles,v,i.get("text-ignore-placement"),r.bucketInstanceId,nt,h.ID),n&&this.storeCollisionData(r.bucketInstanceId,J,R,$e,Ve,ke),B.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(r.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let Me=(Z||P)&&!$e?.occluded,ve=(ne||D)&&!Ve?.occluded;this.placements[B.crossTileID]=new mV(Me,ve,se||r.justReloaded),t[B.crossTileID]=!0};if(k){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let B=r.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let R=B.length-1;R>=0;--R){let J=B[R];j(r.symbolInstances.get(J),r.collisionArrays[J],J)}}else for(let B=e.symbolInstanceStart;B<e.symbolInstanceEnd;B++)j(r.symbolInstances.get(B),r.collisionArrays[B],B);r.justReloaded=!1}storeCollisionData(e,t,n,r,i,a){if(n.textBox||n.iconBox){let o;this.collisionBoxArrays.has(e)?o=this.collisionBoxArrays.get(e):(o=new Map,this.collisionBoxArrays.set(e,o));let s;o.has(t)?s=o.get(t):(s={text:null,icon:null},o.set(t,s)),n.textBox&&(s.text=r.box),n.iconBox&&(s.icon=i.box)}if(a){let o=this.collisionCircleArrays[e];o===void 0&&(o=this.collisionCircleArrays[e]=[]);for(let s=0;s<a.circles.length;s+=4)o.push(a.circles[s+0]-100),o.push(a.circles[s+1]-100),o.push(a.circles[s+2]),o.push(+!!a.collisionDetected)}}markUsedJustification(e,t,n,r){let i={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex},a;a=r===2?n.verticalPlacedTextSymbolIndex:i[gk(t)];let o=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];for(let s of o)s>=0&&(a>=0&&s!==a?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=n.crossTileID)}markUsedOrientation(e,t,n){let r=t===1||t===3?t:0,i=t===2?t:0,a=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];for(let o of a)e.text.placedSymbolArray.get(o).placedOrientation=r;n.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=i)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let r=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},a=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=i[s];u?(this.opacities[s]=new Fg(u,r,l.text,l.icon),n||=l.text!==u.text.placed,n||=l.icon!==u.icon.placed):(this.opacities[s]=new Fg(null,r,l.text,l.icon,l.skipFade),n||=l.text||l.icon)}for(let s in i){let l=i[s];if(!this.opacities[s]){let u=new Fg(l,r,!1,!1);u.isHidden()||(this.opacities[s]=u,n||=l.text.placed,n||=l.icon.placed)}}for(let s in a)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=a[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");n?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let n={};for(let r of t){let i=r.getBucket(e);i&&r.latestFeatureIndex&&e.id===i.layerIds[0]&&this.updateBucketOpacities(i,r.tileID,n,r.collisionBoxArray)}}updateBucketOpacities(e,t,n,r){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let i=e.layers[0],a=i.layout,o=new Fg(null,0,!1,!1,!0),s=a.get("text-allow-overlap"),l=a.get("icon-allow-overlap"),u=i._unevaluatedLayout.hasValue("text-variable-anchor")||i._unevaluatedLayout.hasValue("text-variable-anchor-offset"),c=a.get("text-rotation-alignment")==="map",d=a.get("text-pitch-alignment")==="map",f=a.get("icon-text-fit")!=="none",h=new Fg(null,0,s&&(l||!e.hasIconData()||a.get("icon-optional")),l&&(s||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&r&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(r);let p=(v,b,x)=>{for(let _=0;_<b/4;_++)v.opacityVertexArray.emplaceBack(x);v.hasVisibleVertices||=x!==zg},g=this.collisionBoxArrays.get(e.bucketInstanceId);for(let v=0;v<e.symbolInstances.length;v++){let b=e.symbolInstances.get(v),{numHorizontalGlyphVertices:x,numVerticalGlyphVertices:_,crossTileID:w}=b,C=n[w],T=this.opacities[w];C?T=o:T||(T=h,this.opacities[w]=T),n[w]=!0;let k=x>0||_>0,A=b.numIconVertices>0,P=this.placedOrientations[b.crossTileID],D=P===2,$=P===1||P===3;if(k){let z=vV(T.text),j=D?zg:z;p(e.text,x,j);let B=$?zg:z;p(e.text,_,B);let R=T.text.isHidden(),J=[b.rightJustifiedTextSymbolIndex,b.centerJustifiedTextSymbolIndex,b.leftJustifiedTextSymbolIndex];for(let ne of J)ne>=0&&(e.text.placedSymbolArray.get(ne).hidden=R||D?1:0);b.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(b.verticalPlacedTextSymbolIndex).hidden=R||$?1:0);let K=this.variableOffsets[b.crossTileID];K&&this.markUsedJustification(e,K.anchor,b,P);let Z=this.placedOrientations[b.crossTileID];Z&&(this.markUsedJustification(e,"left",b,Z),this.markUsedOrientation(e,Z,b))}if(A){let z=vV(T.icon),j=!(f&&b.verticalPlacedIconSymbolIndex&&D);if(b.placedIconSymbolIndex>=0){let B=j?z:zg;p(e.icon,b.numIconVertices,B),e.icon.placedSymbolArray.get(b.placedIconSymbolIndex).hidden=T.icon.isHidden()}if(b.verticalPlacedIconSymbolIndex>=0){let B=j?zg:z;p(e.icon,b.numVerticalIconVertices,B),e.icon.placedSymbolArray.get(b.verticalPlacedIconSymbolIndex).hidden=T.icon.isHidden()}}let O=g?.has(v)?g.get(v):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let z=e.collisionArrays[v];if(z){let j=new we(0,0);if(z.textBox||z.verticalTextBox){let B=!0;if(u){let R=this.variableOffsets[w];R?(j=gV(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),c&&j._rotate(d?-this.transform.bearingInRadians:this.transform.bearingInRadians)):B=!1}if(z.textBox||z.verticalTextBox){let R;z.textBox&&(R=D),z.verticalTextBox&&(R=$),yV(e.textCollisionBox.collisionVertexArray,T.text.placed,!B||R,O.text,j.x,j.y)}}if(z.iconBox||z.verticalIconBox){let B=!($||!z.verticalIconBox),R;z.iconBox&&(R=B),z.verticalIconBox&&(R=!B),yV(e.iconCollisionBox.collisionVertexArray,T.icon.placed,R,O.icon,f?j.x:0,f?j.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){let n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e}setStale(){this.stale=!0}};function yV(e,t,n,r,i,a){(!r||r.length===0)&&(r=[0,0,0,0]);let o=r[0]-100,s=r[1]-100,l=r[2]-100,u=r[3]-100;e.emplaceBack(+!!t,+!!n,i||0,a||0,o,s),e.emplaceBack(+!!t,+!!n,i||0,a||0,l,s),e.emplaceBack(+!!t,+!!n,i||0,a||0,l,u),e.emplaceBack(+!!t,+!!n,i||0,a||0,o,u)}const aKe=2**25,oKe=2**24,sKe=2**17,lKe=2**16;function vV(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,n=Math.floor(e.opacity*127);return n*aKe+t*oKe+n*sKe+t*lKe+n*512+t*256+n*2+t}const zg=0;var uKe=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,n,r,i){let a=this._bucketParts;for(;this._currentTileIndex<e.length;){let o=e[this._currentTileIndex];if(t.getBucketParts(a,r,o,this._sortAcrossTiles),this._currentTileIndex++,i())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,a.sort((o,s)=>o.sortKey-s.sortKey));this._currentPartIndex<a.length;){let o=a[this._currentPartIndex];if(t.placeLayerBucketPart(o,this._seenCrossTileIDs,n),this._currentPartIndex++,i())return!0}return!1}},cKe=class{constructor(e,t,n,r,i,a,o,s){this.placement=new iKe(e,t,a,o,s),this._currentPlacementIndex=n.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=i,this._done=!1}isDone(){return this._done}continuePlacement(e,t,n){let r=Nn(),i=()=>!this._forceFullPlacement&&Nn()-r>2;for(;this._currentPlacementIndex>=0;){let a=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(ite(a)&&a.layout&&(!a.minzoom||a.minzoom<=o)&&(!a.maxzoom||a.maxzoom>o)){if(this._inProgressLayer||=new uKe(a),this._inProgressLayer.continuePlacement(n[a.source],this.placement,this._showCollisionBoxes,a,i))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}};const _V=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Fr=new Uint32Array(96);var dKe=class fne{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[n,r]=new Uint8Array(t,0,2);if(n!==219)throw Error("Data does not appear to be in a KDBush format.");let i=r>>4;if(i!==1)throw Error(`Got v${i} data when expected v1.`);let a=_V[r&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new fne(s,o,a,void 0,t)}constructor(t,n=64,r=Float64Array,i=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=_V.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${r}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new r(a,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let c=this.data=new i(8+s+l+u);this.ids=new this.IndexArrayType(c,8,t),this.coords=new r(c,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(c,0,2).set([219,16+o]),new Uint16Array(c,2,1)[0]=n,new Uint32Array(c,4,1)[0]=t}}add(t,n){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=n,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return Lk(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,r,i){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;Fr[0]=0,Fr[1]=a.length-1,Fr[2]=0;let l=3,u=[];for(;l>0;){let c=Fr[--l],d=Fr[--l],f=Fr[--l];if(d-f<=s){for(let v=f;v<=d;v++){let b=o[2*v],x=o[2*v+1];b>=t&&b<=r&&x>=n&&x<=i&&u.push(a[v])}continue}let h=f+d>>1,p=o[2*h],g=o[2*h+1];p>=t&&p<=r&&g>=n&&g<=i&&u.push(a[h]),(c===0?t<=p:n<=g)&&(Fr[l++]=f,Fr[l++]=h-1,Fr[l++]=1-c),(c===0?r>=p:i>=g)&&(Fr[l++]=h+1,Fr[l++]=d,Fr[l++]=1-c)}return u}within(t,n,r){let i=[];return this.withinInto(t,n,r,i),i}withinInto(t,n,r,i){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;Fr[0]=0,Fr[1]=a.length-1,Fr[2]=0;let l=3,u=0,c=r*r;for(;l>0;){let d=Fr[--l],f=Fr[--l],h=Fr[--l];if(f-h<=s){for(let b=h;b<=f;b++)bV(o[2*b],o[2*b+1],t,n)<=c&&(i[u++]=a[b]);continue}let p=h+f>>1,g=o[2*p],v=o[2*p+1];bV(g,v,t,n)<=c&&(i[u++]=a[p]),(d===0?t-r<=g:n-r<=v)&&(Fr[l++]=h,Fr[l++]=p-1,Fr[l++]=1-d),(d===0?t+r>=g:n+r>=v)&&(Fr[l++]=p+1,Fr[l++]=f,Fr[l++]=1-d)}return u}};function Lk(e,t,n,r,i,a){if(i-r<=n)return;let o=r+i>>1;hne(e,t,o,r,i,a),Lk(e,t,n,r,o-1,1-a),Lk(e,t,n,o+1,i,1-a)}function hne(e,t,n,r,i,a){for(;i>r;){if(i-r>600){let u=i-r+1,c=n-r+1,d=Math.log(u),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(u-f)/u)*(c-u/2<0?-1:1);hne(e,t,n,Math.max(r,Math.floor(n-c*f/u+h)),Math.min(i,Math.floor(n+(u-c)*f/u+h)),a)}let o=t[2*n+a],s=r,l=i;for(Ng(e,t,r,n),t[2*i+a]>o&&Ng(e,t,r,i);s<l;){for(Ng(e,t,s,l),s++,l--;t[2*s+a]<o;)s++;for(;t[2*l+a]>o;)l--}t[2*r+a]===o?Ng(e,t,r,l):(l++,Ng(e,t,l,i)),l<=n&&(r=l+1),n<=l&&(i=l-1)}}function Ng(e,t,n,r){D9(e,n,r),D9(t,2*n,2*r),D9(t,2*n+1,2*r+1)}function D9(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function bV(e,t,n,r){let i=e-n,a=t-r;return i*i+a*a}const Vg=512/He/2;var fKe=class{constructor(e,t,n){this.tileID=e,this.bucketInstanceId=n,this._symbolsByKey={};let r=new Map;for(let i=0;i<t.length;i++){let a=t.get(i),o=a.key,s=r.get(o);s?s.push(a):r.set(o,[a])}for(let[i,a]of r){let o={positions:a.map(s=>({x:Math.floor(s.anchorX*Vg),y:Math.floor(s.anchorY*Vg)})),crossTileIDs:a.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new dKe(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[i]=o}}getScaledCoordinates(e,t){let{x:n,y:r,z:i}=this.tileID.canonical,{x:a,y:o,z:s}=t.canonical,l=s-i,u=Vg/2**l,c=(a*He+e.anchorX)*u,d=(o*He+e.anchorY)*u,f=n*He*Vg,h=r*He*Vg;return{x:Math.floor(c-f),y:Math.floor(d-h)}}findMatches(e,t,n){let r=this.tileID.canonical.z<t.canonical.z?1:2**(this.tileID.canonical.z-t.canonical.z);for(let i=0;i<e.length;i++){let a=e.get(i);if(a.crossTileID)continue;let o=this._symbolsByKey[a.key];if(!o)continue;let s=this.getScaledCoordinates(a,t);o.index?this.findMatchesForIndexedEntry(o,a,s,r,n):o.positions&&this.findMatchesForNonIndexedEntry(o,a,s,r,n)}}findMatchesForIndexedEntry(e,t,n,r,i){let a=e.index.range(n.x-r,n.y-r,n.x+r,n.y+r),o=1/0;for(let s of a)s<o&&!i[e.crossTileIDs[s]]&&(o=s);if(o!==1/0){let s=e.crossTileIDs[o];i[s]=!0,t.crossTileID=s}}findMatchesForNonIndexedEntry(e,t,n,r,i){for(let a=0;a<e.positions.length;a++){let o=e.positions[a],s=e.crossTileIDs[a];if(Math.abs(o.x-n.x)<=r&&Math.abs(o.y-n.y)<=r&&!i[s]){i[s]=!0,t.crossTileID=s;break}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:e})=>e)}},hKe=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},pKe=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let n in this.indexes){let r=this.indexes[n],i={};for(let a in r){let o=r[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),i[o.tileID.key]=o}this.indexes[n]=i}this.lng=e}addBucket(e,t,n){if(this.indexes[e.overscaledZ]?.[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let i=0;i<t.symbolInstances.length;i++){let a=t.symbolInstances.get(i);a.crossTileID=0}this.usedCrossTileIDs[e.overscaledZ]||={};let r=this.usedCrossTileIDs[e.overscaledZ];for(let i in this.indexes){let a=this.indexes[i];if(Number(i)>e.overscaledZ)for(let o in a){let s=a[o];s.tileID.isChildOf(e)&&s.findMatches(t.symbolInstances,e,r)}else{let o=a[e.scaledTo(Number(i)).key];o&&o.findMatches(t.symbolInstances,e,r)}}for(let i=0;i<t.symbolInstances.length;i++){let a=t.symbolInstances.get(i);a.crossTileID||(a.crossTileID=n.generate(),r[a.crossTileID]=!0)}return this.indexes[e.overscaledZ]===void 0&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new fKe(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(let n of t.getCrossTileIDsLists())for(let r of n)delete this.usedCrossTileIDs[e][r]}removeStaleBuckets(e){let t=!1;for(let n in this.indexes){let r=this.indexes[n];for(let i in r)e[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],t=!0)}return t}},pne=class{constructor(){this.layerIndexes={},this.crossTileIDs=new hKe,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,n){let r=this.layerIndexes[e.id];r===void 0&&(r=this.layerIndexes[e.id]=new pKe);let i=!1,a={};r.handleWrapJump(n);for(let o of t){let s=o.getBucket(e);e.id===s?.layerIds[0]&&(s.bucketInstanceId||=(this.maxBucketInstanceId+=1,this.maxBucketInstanceId),r.addBucket(o.tileID,s,this.crossTileIDs)&&(i=!0),a[s.bucketInstanceId]=!0)}return r.removeStaleBuckets(a)&&(i=!0),i}pruneUnusedLayers(e){let t={};for(let n of e)t[n]=!0;for(let n in this.layerIndexes)t[n]||delete this.layerIndexes[n]}},mKe=`#ifdef GL_ES 24precision mediump float; 25#else 26#if !defined(lowp) 27#define lowp 28#endif 29#if !defined(mediump) 30#define mediump 31#endif 32#if !defined(highp) 33#define highp 34#endif 35#endif 36out highp vec4 fragColor;layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,gKe=`#ifdef GL_ES 37precision highp float; 38#else 39#if !defined(lowp) 40#define lowp 41#endif 42#if !defined(mediump) 43#define mediump 44#endif 45#if !defined(highp) 46#define highp 47#endif 48#endif 49vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const uint packedOpacity) {return vec2(float(packedOpacity >> 1u)/127.0,float(packedOpacity & 1u));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 50);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);
50return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c 51);} 52#ifdef TERRAIN3D 53uniform sampler2D u_terrain;uniform highp sampler2D u_depth;layout(std140) uniform TerrainUBO {highp mat4 u_terrain_matrix;highp vec4 u_terrain_unpack;highp float u_terrain_dim;highp float u_terrain_exaggeration;}; 54#endif 55const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { 56#ifdef TERRAIN3D 57highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); 58#else 59return 1.0; 60#endif 61}float calculate_visibility(vec4 pos) { 62#ifdef TERRAIN3D 63vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; 64#else 65return 1.0; 66#endif 67}float ele(ivec2 pos) { 68#ifdef TERRAIN3D 69vec4 rgb=(texelFetch(u_terrain,pos,0)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; 70#else 71return 0.0; 72#endif 73}float get_elevation(vec2 pos) { 74#ifdef TERRAIN3D 75#ifdef GLOBE 76if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;} 77#endif 78vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.5;vec2 f=fract(coord);ivec2 c=ivec2(floor(coord));ivec2 hi=textureSize(u_terrain,0)-1;float tl=ele(clamp(c,ivec2(0),hi));float tr=ele(clamp(c+ivec2(1,0),ivec2(0),hi));float bl=ele(clamp(c+ivec2(0,1),ivec2(0),hi));float br=ele(clamp(c+ivec2(1,1),ivec2(0),hi));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; 79#else 80return 0.0; 81#endif 82}const float PI=3.141592653589793; 83#define PROJECTION_UBO 84layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,yKe=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity; 85#ifdef OVERDRAW_INSPECTOR 86fragColor=vec4(1.0); 87#endif 88}`,vKe="layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}",_Ke=`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity; 89#ifdef OVERDRAW_INSPECTOR 90fragColor=vec4(1.0); 91#endif 92}`,bKe="uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}",xKe=`in vec3 v_data;flat in float v_visibility; 93#pragma maplibre: define highp vec4 color 94#pragma maplibre: define mediump float radius 95#pragma maplibre: define lowp float blur 96#pragma maplibre: define lowp float opacity 97#pragma maplibre: define highp vec4 stroke_color 98#pragma maplibre: define mediump float stroke_width 99#pragma maplibre: define lowp float stroke_opacity 100void main() { 101#pragma maplibre: initialize highp vec4 color 102#pragma maplibre: initialize mediump float radius 103#pragma maplibre: initialize lowp float blur 104#pragma maplibre: initialize lowp float opacity 105#pragma maplibre: initialize highp vec4 stroke_color 106#pragma maplibre: initialize mediump float stroke_width 107#pragma maplibre: initialize lowp float stroke_opacity 108vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius
108/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;} 109#ifdef OVERDRAW_INSPECTOR 110fragColor=vec4(1.0); 111#endif 112}`,wKe=`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform vec2 u_translate;layout(location=0) in ivec2 a_pos;out vec3 v_data;flat out float v_visibility; 113#pragma maplibre: define highp vec4 color 114#pragma maplibre: define mediump float radius 115#pragma maplibre: define lowp float blur 116#pragma maplibre: define lowp float opacity 117#pragma maplibre: define highp vec4 stroke_color 118#pragma maplibre: define mediump float stroke_width 119#pragma maplibre: define lowp float stroke_opacity 120void main(void) { 121#pragma maplibre: initialize highp vec4 color 122#pragma maplibre: initialize mediump float radius 123#pragma maplibre: initialize lowp float blur 124#pragma maplibre: initialize lowp float opacity 125#pragma maplibre: initialize highp vec4 stroke_color 126#pragma maplibre: initialize mediump float stroke_width 127#pragma maplibre: initialize lowp float stroke_opacity 128ivec2 pos_raw=a_pos+32768;vec2 extrude=vec2(pos_raw & 7)/7.0*2.0-1.0;vec2 circle_center=vec2(pos_raw >> 3)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) { 129#ifdef GLOBE 130vec3 center_vector=projectToSphere(circle_center); 131#endif 132float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else { 133#ifdef GLOBE 134vec4 projected_center=interpolateProjection(circle_center,center_vector,ele); 135#else 136vec4 projected_center=projectTileWithElevation(circle_center,ele); 137#endif 138corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);} 139#ifdef GLOBE 140vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele); 141#else 142gl_Position=projectTileWithElevation(corner_position,ele); 143#endif 144} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,xV="void main() {fragColor=vec4(1.0);}";const Xl={prelude:En(mKe,gKe),projectionMercator:En(` 145void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:En("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8 146#ifndef PROJECTION_UBO 147uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix; 148#endif 149out highp float v_projection_tile_x;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos 150);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));
150float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy 151);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:En(yKe,vKe),backgroundPattern:En(_Ke,bKe),circle:En(xKe,wKe),clippingMask:En(xV,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:En(`uniform highp float u_intensity;in vec2 v_extrude; 152#pragma maplibre: define highp float weight 153#define GAUSS_COEF 0.3989422804014327 154void main() { 155#pragma maplibre: initialize highp float weight 156float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0); 157#ifdef OVERDRAW_INSPECTOR 158fragColor=vec4(1.0); 159#endif 160}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;layout(location=0) in ivec2 a_pos;out vec2 v_extrude; 161#pragma maplibre: define highp float weight 162#pragma maplibre: define mediump float radius 163const highp float ZERO=1.0/255.0/16.0; 164#define GAUSS_COEF 0.3989422804014327 165void main(void) { 166#pragma maplibre: initialize highp float weight 167#pragma maplibre: initialize mediump float radius 168ivec2 pos_raw=a_pos+32768;vec2 unscaled_extrude=vec2(pos_raw & 7)/7.0*2.0-1.0;float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=vec2(pos_raw >> 3); 169#ifdef GLOBE 170vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0); 171#else 172gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center)); 173#endif 174}`),heatmapTexture:En(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity; 175#ifdef OVERDRAW_INSPECTOR 176fragColor=vec4(0.0); 177#endif 178}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:En("flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;flat out float v_placed;flat out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:En("flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;flat out float v_radius;out vec2 v_extrude;flat out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:En(`#ifdef GL_ES 179precision highp float; 180#endif 181uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {vec4 data=texelFetch(u_elevation_stops,ivec2(stop,0),0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else 182{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0)); 183#ifdef OVERDRAW_INSPECTOR 184fragColor=vec4(1.0); 185#endif 186}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:En("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:En(xV,`layout(location=0) in vec2 a_pos;void main() { 187#ifdef GLOBE 188gl_Position=projectTileFor3D(a_pos,0.0); 189#else 190gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0); 191#endif 192}`),fill:En(`#pragma maplibre: define highp vec4 color 193#pragma maplibre: define lowp float opacity 194void main() { 195#pragma maplibre: initialize highp vec4 color 196#pragma maplibre: initialize lowp float opacity 197fragColor=color*opacity; 198#ifdef OVERDRAW_INSPECTOR 199fragColor=vec4(1.0); 200#endif 201}`,`uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos; 202#pragma maplibre: define highp vec4 color 203#pragma maplibre: define lowp float opacity 204void main() { 205#pragma maplibre: initialize highp vec4 color 206#pragma maplibre: initialize lowp float opacity 207if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:En(`in vec2 v_pos; 208#ifdef GLOBE 209in float v_depth; 210#endif 211#pragma maplibre: define highp vec4 outline_color 212#pragma maplibre: define lowp float opacity 213void main() { 214#pragma maplibre: initialize highp vec4 outline_color 215#pragma maplibre: initialize lowp float opacity 216float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity); 217#ifdef GLOBE 218if (v_depth > 1.0) {discard;} 219#endif 220#ifdef OVERDRAW_INSPECTOR 221fragColor=vec4(1.0); 222#endif 223}`,`uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos; 224#ifdef GLOBE 225out float v_depth; 226#endif 227#pragma maplibre: define highp vec4 outline_color 228#pragma maplibre: define lowp float opacity 229void main() { 230#pragma maplibre: initialize highp vec4 outline_color 231#pragma maplibre: initialize lowp float opacity 232if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world_size; 233#ifdef GLOBE 234v_depth=gl_Position.z/gl_Position.w; 235#endif 236}`),fillOutlinePattern:En(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos; 237#ifdef GLOBE 238in float v_depth; 239#endif 240#pragma maplibre: define lowp float opacity 241#pragma maplibre: define highp vec4 color 242#pragma maplibre: define lowp vec4 pattern_from 243#pragma maplibre: define lowp vec4 pattern_to 244void main() { 245#pragma maplibre: initialize lowp float opacity 246#pragma maplibre: initialize highp vec4 color 247#pragma maplibre: initialize mediump vec4 pattern_from 248#pragma maplibre: initialize mediump vec4 pattern_to 249vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);if (u_sdf_pattern) {highp float sdf_edge=(256.0-64.0)/256.0;highp float sdf_gamma_a=max(fwidth(color1.a)*0.5,1.0/255.0/16.0);highp float sdf_gamma_b=max(fwidth(color2.a)*0.5,1.0/255.0/16.0);float sdf_alpha_a=smoothstep(sdf_edge-sdf_gamma_a,sdf_edge+sdf_gamma_a,color1.a);float sdf_alpha_b=smoothstep(sdf_edge-sdf_gamma_b,sdf_edge+sdf_gamma_b,color2.a);fragColor=mix(color*sdf_alpha_a,color*sdf_alpha_b,u_fade)*alpha*opacity;} else {fragColor=mix(color1,color2,u_fade)*alpha*opacity;} 250#ifdef GLOBE 251if (v_depth > 1.0) {discard;} 252#endif 253#ifdef OVERDRAW_INSPECTOR 254fragColor=vec4(1.0); 255#endif 256}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos; 257#ifdef GLOBE 258out float v_depth; 259#endif 260#pragma maplibre: define lowp float opacity 261#pragma maplibre: define highp vec4 color 262#pragma maplibre: define lowp vec4 pattern_from 263#pragma maplibre: define lowp vec4 pattern_to 264#pragma maplibre: define lowp float pixel_ratio_from 265#pragma maplibre: define lowp float pixel_ratio_to 266void main() { 267#pragma maplibre: initialize lowp float opacity 268#pragma maplibre: initialize highp vec4 color 269#pragma maplibre: initialize mediump vec4 pattern_from 270#pragma maplibre: initialize mediump vec4 pattern_to 271#pragma maplibre: initialize lowp float pixel_ratio_from 272#pragma maplibre: initialize lowp float pixel_ratio_to 273if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world_size; 274#ifdef GLOBE 275v_depth=gl_Position.z/gl_Position.w; 276#endif 277}`),fillPattern:En(`#ifdef GL_ES 278precision highp float; 279#endif 280uniform vec2 u_texsize;uniform float u_fade;uniform bool u_sdf_pattern;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b; 281#pragma maplibre: define lowp float opacity 282#pragma maplibre: define highp vec4 color 283#pragma maplibre: define lowp vec4 pattern_from 284#pragma maplibre: define lowp vec4 pattern_to 285void main() { 286#pragma maplibre: initialize lowp float opacity 287#pragma maplibre: initialize highp vec4 color 288#pragma maplibre: initialize mediump vec4 pattern_from 289#pragma maplibre: initialize mediump vec4 pattern_to 290vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);if (u_sdf_pattern) {highp float sdf_edge=(256.0-64.0)/256.0;highp float sdf_gamma_a=max(fwidth(color1.a)*0.5,1.0/255.0/16.0);highp float sdf_gamma_b=max(fwidth(color2.a)*0.5,1.0/255.0/16.0);float sdf_alpha_a=smoothstep(sdf_edge-sdf_gamma_a,sdf_edge+sdf_gamma_a,color1.a);float sdf_alpha_b=smoothstep(sdf_edge-sdf_gamma_b,sdf_edge+sdf_gamma_b,color2.a);fragColor=mix(color*sdf_alpha_a,color*sdf_alpha_b,u_fade)*opacity;} else {fragColor=mix(color1,color2,u_fade)*opacity;} 291#ifdef OVERDRAW_INSPECTOR 292fragColor=vec4(1.0); 293#endif 294}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b; 295#pragma maplibre: define lowp float opacity 296#pragma maplibre: define highp vec4 color 297#pragma maplibre: define lowp vec4 pattern_from 298#pragma maplibre: define lowp vec4 pattern_to 299#pragma maplibre: define lowp float pixel_ratio_from 300#pragma maplibre: define lowp float pixel_ratio_to 301void main() { 302#pragma maplibre: initialize lowp float opacity 303#pragma maplibre: initialize highp vec4 color 304#pragma maplibre: initialize mediump vec4 pattern_from 305#pragma maplibre: initialize mediump vec4 pattern_to 306#pragma maplibre: initialize lowp float pixel_ratio_from 307#pragma maplibre: initialize lowp float pixel_ratio_to 308if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:En(`in vec4 v_color;void main() {fragColor=v_color; 309#ifdef OVERDRAW_INSPECTOR 310fragColor=vec4(1.0); 311#endif 312}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uni
312form lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;layout(location=1) in ivec4 a_normal_ed; 313#ifdef TERRAIN3D 314layout(location=2) in vec2 a_centroid; 315#endif 316out vec4 v_color; 317#pragma maplibre: define highp float base 318#pragma maplibre: define highp float height 319#pragma maplibre: define highp vec4 color 320void main() { 321#pragma maplibre: initialize highp float base 322#pragma maplibre: initialize highp float height 323#pragma maplibre: initialize highp vec4 color 324vec3 normal=vec3(a_normal_ed.xyz);float gradient_base=max(0.0,base);float gradient_height=max(0.0,height); 325#ifdef TERRAIN3D 326float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); 327#else 328float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; 329#endif 330base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=float(a_normal_ed.x & 1);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate; 331#ifdef GLOBE 332vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation); 333#else 334gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0); 335#endif 336float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0); 337#ifdef GLOBE 338mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition); 339#endif 340directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:En(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting; 341#pragma maplibre: define lowp float base 342#pragma maplibre: define lowp float height 343#pragma maplibre: define lowp vec4 pattern_from 344#pragma maplibre: define lowp vec4 pattern_to 345#pragma maplibre: define lowp float pixel_ratio_from 346#pragma maplibre: define lowp float pixel_ratio_to 347void main() { 348#pragma maplibre: initialize lowp float base 349#pragma maplibre: initialize lowp float height 350#pragma maplibre: initialize mediump vec4 pattern_from 351#pragma maplibre: initialize mediump vec4 pattern_to 352#pragma maplibre: initialize lowp float pixel_ratio_from 353#pragma maplibre: initialize lowp float pixel_ratio_to 354vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting; 355#ifdef OVERDRAW_INSPECTOR 356fragColor=vec4(1.0); 357#endif 358}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;layout(location=0) in vec2 a_pos;layout(location=1) in ivec4 a_normal_ed; 359#ifdef TERRAIN3D 360layout(location=2) in vec2 a_centroid; 361#endif 362#ifdef GLOBE 363out vec3 v_sphere_pos; 364#endif 365out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting; 366#pragma maplibre: define lowp float base 367#pragma maplibre: define lowp float height 368#pragma maplibre: define lowp vec4 pattern_from 369#pragma maplibre: define lowp vec4 pattern_to 370#pragma maplibre: define lowp float pixel_ratio_from 371#pragma maplibre: define lowp float pixel_ratio_to 372void main() { 373#pragma maplibre: initialize lowp float base 374#pragma maplibre: initialize lowp float height 375#pragma maplibre: initialize mediump vec4 pattern_from 376#pragma maplibre: initialize mediump vec4 pattern_to 377#pragma maplibre: initialize lowp float pixel_ratio_from 378#pragma maplibre: initialize lowp float pixel_ratio_to 379vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=vec3(a_normal_ed.xyz);float edgedistance=float(a_normal_ed.w);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;float gradient_base=max(0.0,base);float gradient_height=max(0.0,height); 380#ifdef TERRAIN3D 381float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); 382#else 383float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; 384#endif 385base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=float(a_normal_ed.x & 1);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate; 386#ifdef GLOBE 387vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation); 388#else 389gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0); 390#endif 391vec2 pos=a_normal_ed.x==1 && a_normal_ed.y==0 && a_normal_ed.z==16384 392? a_pos 393: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:En(`#ifdef GL_ES 394precision highp float; 395#endif 396uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(ivec2 texel) {vec4 data=texelFetch(u_image,texel,0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {ivec2 pos=ivec2(gl_FragCoord.xy)+ivec2(1);float tileSize=u_dimension.x-4.0;float a=getElevation(pos+ivec2(-1,-1));float b=getElevation(pos+ivec2(0,-1));float c=getElevation(pos+ivec2(1,-1));float d=getElevation(pos+ivec2(-1,0));float e=getElevation(pos);float f=getElevation(pos+ivec2(1,0));float g=getElevation(pos+ivec2(-1,1));float h=getElevation(pos+ivec2(0,1));float i=getElevation(pos+ivec2(1,1));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/p
396ow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+128.0/255.0,deriv.y/8.0+128.0/255.0,1.0,1.0),0.0,1.0); 397#ifdef OVERDRAW_INSPECTOR 398fragColor=vec4(1.0); 399#endif 400}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:En(`uniform sampler2D u_image;in highp vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES]; 401#define PI 3.141592653589793 402#define STANDARD 0 403#define COMBINED 1 404#define IGOR 2 405#define MULTIDIRECTIONAL 3 406#define BASIC 4 407float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else 408{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else 409{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {highp vec2 size=vec2(textureSize(u_image,0));highp vec2 texturePos=(v_pos*(size-2.0)+1.0)/size;vec4 pixel=texture(u_image,texturePos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=(pixel.rg-128.0/255.0)*8.0/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);} 410#ifdef OVERDRAW_INSPECTOR 411fragColor=vec4(1.0); 412#endif 413}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:En(`flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale; 414#ifdef GLOBE 415in float v_depth; 416#endif 417#pragma maplibre: define highp vec4 color 418#pragma maplibre: define lowp float blur 419#pragma maplibre: define lowp float opacity 420void main() { 421#pragma maplibre: initialize highp vec4 color 422#pragma maplibre: initialize lowp float blur 423#pragma maplibre: initialize lowp float opacity 424clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity); 425#ifdef GLOBE 426if (v_depth > 1.0) {discard;} 427#endif 428#ifdef OVERDRAW_INSPECTOR 429fragColor=vec4(1.0); 430#endif 431}`,` 432#define scale 0.015873016 433layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar; 434#ifdef GLOBE 435out float v_depth; 436#endif 437#pragma maplibre: define highp vec4 color 438#pragma maplibre: define lowp float blur 439#pragma maplibre: define lowp float opacity 440#pragma maplibre: define mediump float gapwidth 441#pragma maplibre: define lowp float offset 442#pragma maplibre: define mediump float width 443void main() { 444#pragma maplibre: initialize highp vec4 color 445#pragma maplibre: initialize lowp float blur 446#pragma maplibre: initialize lowp float opacity 447#pragma maplibre: initialize mediump float gapwidth 448#pragma maplibre: initialize lowp float offset 449#pragma maplibre: initialize mediump float width 450if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);v_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*2.0;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);
450float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude; 451#ifdef GLOBE 452v_depth=gl_Position.z/gl_Position.w; 453#endif 454#ifdef TERRAIN3D 455v_gamma_scale=1.0; 456#else 457float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; 458#endif 459v_width2=vec2(outset,inset);}`),lineGradient:En(`uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv; 460#ifdef GLOBE 461in float v_depth; 462#endif 463#pragma maplibre: define lowp float blur 464#pragma maplibre: define lowp float opacity 465void main() { 466#pragma maplibre: initialize lowp float blur 467#pragma maplibre: initialize lowp float opacity 468clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity); 469#ifdef GLOBE 470if (v_depth > 1.0) {discard;} 471#endif 472#ifdef OVERDRAW_INSPECTOR 473fragColor=vec4(1.0); 474#endif 475}`,` 476#define scale 0.015873016 477layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;layout(location=2) in float a_uv_x;layout(location=3) in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform float u_image_height;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv; 478#ifdef GLOBE 479out float v_depth; 480#endif 481#pragma maplibre: define lowp float blur 482#pragma maplibre: define lowp float opacity 483#pragma maplibre: define mediump float gapwidth 484#pragma maplibre: define lowp float offset 485#pragma maplibre: define mediump float width 486void main() { 487#pragma maplibre: initialize lowp float blur 488#pragma maplibre: initialize lowp float opacity 489#pragma maplibre: initialize mediump float gapwidth 490#pragma maplibre: initialize lowp float offset 491#pragma maplibre: initialize mediump float width 492if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude; 493#ifdef GLOBE 494v_depth=gl_Position.z/gl_Position.w; 495#endif 496#ifdef TERRAIN3D 497v_gamma_scale=1.0; 498#else 499float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; 500#endif 501v_width2=vec2(outset,inset);}`),linePattern:En(`#ifdef GL_ES 502precision highp float; 503#endif 504uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;flat in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;flat in float v_width; 505#ifdef GLOBE 506in float v_depth; 507#endif 508#pragma maplibre: define lowp vec4 pattern_from 509#pragma maplibre: define lowp vec4 pattern_to 510#pragma maplibre: define lowp float pixel_ratio_from 511#pragma maplibre: define lowp float pixel_ratio_to 512#pragma maplibre: define lowp float blur 513#pragma maplibre: define lowp float opacity 514void main() { 515#pragma maplibre: initialize mediump vec4 pattern_from 516#pragma maplibre: initialize mediump vec4 pattern_to 517#pragma maplibre: initialize lowp float pixel_ratio_from 518#pragma maplibre: initialize lowp float pixel_ratio_to 519#pragma maplibre: initialize lowp float blur 520#pragma maplibre: initialize lowp float opacity 521clipAntimeridian();vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity; 522#ifdef GLOBE 523if (v_depth > 1.0) {discard;} 524#endif 525#ifdef OVERDRAW_INSPECTOR 526fragColor=vec4(1.0); 527#endif 528}`,` 529#define scale 0.015873016 530#define LINE_DISTANCE_SCALE 2.0 531layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;out vec2 v_normal;flat out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;flat out float v_width; 532#ifdef GLOBE 533out float v_depth; 534#endif 535#pragma maplibre: define lowp float blur 536#pragma maplibre: define lowp float opacity 537#pragma maplibre: define lowp float offset 538#pragma maplibre: define mediump float gapwidth 539#pragma maplibre: define mediump float width 540#pragma maplibre: define lowp float floorwidth 541#pragma maplibre: define lowp vec4 pattern_from 542#pragma maplibre: define lowp vec4 pattern_to 543#pragma maplibre: define lowp float pixel_ratio_from 544#pragma maplibre: define lowp float pixel_ratio_to 545void main() { 546#pragma maplibre: initialize lowp float blur 547#pragma maplibre: initialize lowp float opacity 548#pragma maplibre: initialize lowp float offset 549#pragma maplibre: initialize mediump float gapwidth 550#pragma maplibre: initialize mediump float width 551#pragma maplibre: initialize lowp float floorwidth 552#pragma maplibre: initialize mediump vec4 pattern_from 553#pragma maplibre: initialize mediump vec4 pattern_to 554#pragma maplibre: initialize lowp float pixel_ratio_from 555#pragma maplibre: initialize lowp float pixel_ratio_to 556if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);
556float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude; 557#ifdef GLOBE 558v_depth=gl_Position.z/gl_Position.w; 559#endif 560#ifdef TERRAIN3D 561v_gamma_scale=1.0; 562#else 563float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; 564#endif 565v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:En(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale; 566#ifdef GLOBE 567in float v_depth; 568#endif 569#pragma maplibre: define highp vec4 color 570#pragma maplibre: define lowp float blur 571#pragma maplibre: define lowp float opacity 572#pragma maplibre: define mediump float width 573#pragma maplibre: define lowp float floorwidth 574#pragma maplibre: define mediump vec4 dasharray_from 575#pragma maplibre: define mediump vec4 dasharray_to 576void main() { 577#pragma maplibre: initialize highp vec4 color 578#pragma maplibre: initialize lowp float blur 579#pragma maplibre: initialize lowp float opacity 580#pragma maplibre: initialize mediump float width 581#pragma maplibre: initialize lowp float floorwidth 582#pragma maplibre: initialize mediump vec4 dasharray_from 583#pragma maplibre: initialize mediump vec4 dasharray_to 584clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);
584float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity); 585#ifdef GLOBE 586if (v_depth > 1.0) {discard;} 587#endif 588#ifdef OVERDRAW_INSPECTOR 589fragColor=vec4(1.0); 590#endif 591}`,` 592#define scale 0.015873016 593#define LINE_DISTANCE_SCALE 2.0 594layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;flat out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale; 595#ifdef GLOBE 596out float v_depth; 597#endif 598#pragma maplibre: define highp vec4 color 599#pragma maplibre: define lowp float blur 600#pragma maplibre: define lowp float opacity 601#pragma maplibre: define mediump float gapwidth 602#pragma maplibre: define lowp float offset 603#pragma maplibre: define mediump float width 604#pragma maplibre: define lowp float floorwidth 605#pragma maplibre: define mediump vec4 dasharray_from 606#pragma maplibre: define mediump vec4 dasharray_to 607void main() { 608#pragma maplibre: initialize highp vec4 color 609#pragma maplibre: initialize lowp float blur 610#pragma maplibre: initialize lowp float opacity 611#pragma maplibre: initialize mediump float gapwidth 612#pragma maplibre: initialize lowp float offset 613#pragma maplibre: initialize mediump float width 614#pragma maplibre: initialize lowp float floorwidth 615#pragma maplibre: initialize mediump vec4 dasharray_from 616#pragma maplibre: initialize mediump vec4 dasharray_to 617if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude; 618#ifdef GLOBE 619v_depth=gl_Position.z/gl_Position.w; 620#endif 621#ifdef TERRAIN3D 622v_gamma_scale=1.0; 623#else 624float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; 625#endif 626float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:En(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv; 627#ifdef GLOBE 628in float v_depth; 629#endif 630#pragma maplibre: define lowp float blur 631#pragma maplibre: define lowp float opacity 632#pragma maplibre: define mediump float width 633#pragma maplibre: define lowp float floorwidth 634#pragma maplibre: define mediump vec4 dasharray_from 635#pragma maplibre: define mediump vec4 dasharray_to 636void main() { 637#pragma maplibre: initialize lowp float blur 638#pragma maplibre: initialize lowp float opacity 639#pragma maplibre: initialize mediump float width 640#pragma maplibre: initialize lowp float floorwidth 641#pragma maplibre: initialize mediump vec4 dasharray_from 642#pragma maplibre: initialize mediump vec4 dasharray_to 643clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);
643float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity); 644#ifdef GLOBE 645if (v_depth > 1.0) {discard;} 646#endif 647#ifdef OVERDRAW_INSPECTOR 648fragColor=vec4(1.0); 649#endif 650}`,` 651#define scale 0.015873016 652#define LINE_DISTANCE_SCALE 2.0 653layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;layout(location=2) in float a_uv_x;layout(location=3) in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b; 654#ifdef GLOBE 655out float v_depth; 656#endif 657#pragma maplibre: define lowp float blur 658#pragma maplibre: define lowp float opacity 659#pragma maplibre: define mediump float gapwidth 660#pragma maplibre: define lowp float offset 661#pragma maplibre: define mediump float width 662#pragma maplibre: define lowp float floorwidth 663#pragma maplibre: define mediump vec4 dasharray_from 664#pragma maplibre: define mediump vec4 dasharray_to 665void main() { 666#pragma maplibre: initialize lowp float blur 667#pragma maplibre: initialize lowp float opacity 668#pragma maplibre: initialize mediump float gapwidth 669#pragma maplibre: initialize lowp float offset 670#pragma maplibre: initialize mediump float width 671#pragma maplibre: initialize lowp float floorwidth 672#pragma maplibre: initialize mediump vec4 dasharray_from 673#pragma maplibre: initialize mediump vec4 dasharray_to 674if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude; 675#ifdef GLOBE 676v_depth=gl_Position.z/gl_Position.w; 677#endif 678#ifdef TERRAIN3D 679v_gamma_scale=1.0; 680#else 681float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; 682#endif 683float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerOpacity:En(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity; 684#ifdef OVERDRAW_INSPECTOR 685fragColor=vec4(0.0); 686#endif 687}`,"layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),raster:En(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); 688#ifdef OVERDRAW_INSPECTOR 689fragColor=vec4(1.0); 690#endif 691}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec3 u_image_warp;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;layout(location=0) in vec2 a_pos;out vec3 v_pos0;out vec3 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 topLeft=u_coords_top.xy;vec2 topRight=u_coords_top.zw;vec2 bottomLeft=u_coords_bottom.xy;vec2 bottomRight=u_coords_bottom.zw;
691vec2 bilinearPos=mix(mix(topLeft,topRight,fractionalPos.x),mix(bottomLeft,bottomRight,fractionalPos.x),fractionalPos.y);float denominator=dot(u_image_warp.xy,fractionalPos)+1.0;vec2 acrossTop=topRight-topLeft+u_image_warp.x*topRight;vec2 downLeft=bottomLeft-topLeft+u_image_warp.y*bottomLeft;vec2 projectivePos=(acrossTop*fractionalPos.x+downLeft*fractionalPos.y+topLeft)/denominator;vec2 position=mix(projectivePos,bilinearPos,u_image_warp.z);gl_Position=projectTile(position,position);vec2 texturePos=((fractionalPos-0.5)/u_buffer_scale)+0.5; 692#ifdef GLOBE 693if (a_pos.y <-32767.5) {texturePos.y=0.0;}if (a_pos.y > 32766.5) {texturePos.y=1.0;} 694#endif 695float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:En(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity; 696#ifdef OVERDRAW_INSPECTOR 697fragColor=vec4(1.0); 698#endif 699}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec4 a_pixeloffset;layout(location=3) in vec3 a_projected_pos;layout(location=4) in uint a_fade_opacity;layout(location=5) in float a_height_offset;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform bool u_rotate_symbol;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;uniform bool u_height_anchor_ground;out vec2 v_tex;flat out float v_total_opacity; 700#pragma maplibre: define lowp float opacity 701void main() { 702#pragma maplibre: initialize lowp float opacity 703vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=a_height_offset+(u_height_anchor_ground ? get_elevation(a_pos) : 0.0);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_symbol_fade_change :-u_symbol_fade_change;float visibility=calculate_visibility(projectedPoint);v_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? 704camera_to_anchor_distance/u_camera_to_center_distance : 705u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0; 706#ifdef GLOBE 707if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} 708#endif 709vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:En(`#define SDF_PX 8.0 710uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1; 711#pragma maplibre: define highp vec4 fill_color 712#pragma maplibre: define highp vec4 halo_color 713#pragma maplibre: define lowp float halo_width 714#pragma maplibre: define lowp float halo_blur 715void main() { 716#pragma maplibre: initialize highp vec4 fill_color 717#pragma maplibre: initialize highp vec4 halo_color 718#pragma maplibre: initialize lowp float halo_width 719#pragma maplibre: initialize lowp float halo_blur 720float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;} 721#ifdef OVERDRAW_INSPECTOR 722fragColor=vec4(1.0); 723#endif 724}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec4 a_pixeloffset;layout(location=3) in vec3 a_projected_pos;layout(location=4) in uint a_fade_opacity;layout(location=5) in float a_height_offset;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform bool u_rotate_symbol;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;uniform bool u_height_anchor_ground;out vec2 v_data0;out vec3 v_data1; 725#pragma maplibre: define highp vec4 fill_color 726#pragma maplibre: define highp vec4 halo_color 727#pragma maplibre: define lowp float opacity 728#pragma maplibre: define lowp float halo_width 729#pragma maplibre: define lowp float halo_blur 730void main() { 731#pragma maplibre: initialize highp vec4 fill_color 732#pragma maplibre: initialize highp vec4 halo_color 733#pragma maplibre: initialize lowp float opacity 734#pragma maplibre: initialize lowp float halo_width 735#pragma maplibre: initialize lowp float halo_blur 736vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=a_height_offset+(u_height_anchor_ground ? get_elevation(a_pos) : 0.0);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_symbol_fade_change :-u_symbol_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? 737camera_to_anchor_distance/u_camera_to_center_distance : 738u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0; 739#ifdef GLOBE 740if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} 741#endif 742vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:En(`#define SDF_PX 8.0 743#define SDF 1.0 744#define ICON 0.0 745uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;in vec4 v_data0;in vec3 v_data1;flat in float v_is_sdf; 746#pragma maplibre: define highp vec4 fill_color 747#pragma maplibre: define highp vec4 halo_color 748#pragma maplibre: define lowp float halo_width 749#pragma maplibre: define lowp float halo_blur 750void main() { 751#pragma maplibre: initialize highp vec4 fill_color 752#pragma maplibre: initialize highp vec4 halo_color 753#pragma maplibre: initialize lowp float halo_width 754#pragma maplibre: initialize lowp float halo_blur 755float total_opacity=v_data1[2];if (v_is_sdf==ICON) {vec2 tex_icon=v_data0.zw;
755fragColor=texture(u_texture_icon,tex_icon)*total_opacity; 756#ifdef OVERDRAW_INSPECTOR 757fragColor=vec4(1.0); 758#endif 759return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;} 760#ifdef OVERDRAW_INSPECTOR 761fragColor=vec4(1.0); 762#endif 763}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec3 a_projected_pos;layout(location=3) in uint a_fade_opacity;layout(location=4) in float a_height_offset;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;uniform bool u_height_anchor_ground;out vec4 v_data0;out vec3 v_data1;flat out float v_is_sdf; 764#pragma maplibre: define highp vec4 fill_color 765#pragma maplibre: define highp vec4 halo_color 766#pragma maplibre: define lowp float opacity 767#pragma maplibre: define lowp float halo_width 768#pragma maplibre: define lowp float halo_blur 769void main() { 770#pragma maplibre: initialize highp vec4 fill_color 771#pragma maplibre: initialize highp vec4 halo_color 772#pragma maplibre: initialize lowp float opacity 773#pragma maplibre: initialize lowp float halo_width 774#pragma maplibre: initialize lowp float halo_blur 775vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);float is_sdf=float(a_data.z & 1u);float ele=a_height_offset+(u_height_anchor_ground ? get_elevation(a_pos) : 0.0);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_symbol_fade_change :-u_symbol_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? 776camera_to_anchor_distance/u_camera_to_center_distance : 777u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0; 778#ifdef GLOBE 779if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} 780#endif 781vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:En("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);
781float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:En("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),atmosphere:En(`#ifdef GL_ES 782precision highp float; 783#endif 784in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758 785);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:En("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);
785float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};function En(e,t){let n=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/in ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(i):i,s=r?r.length:0,l={};return e=e.replace(n,(u,c,d,f,h)=>(l[h]=!0,c==="define"?` 786#ifndef HAS_UNIFORM_u_${h} 787in ${d} ${f} ${h}; 788#else 789uniform ${d} ${f} u_${h}; 790#endif 791`:` 792#ifdef HAS_UNIFORM_u_${h} 793 ${d} ${f} ${h} = u_${h}; 794#endif 795`)),t=t.replace(n,(u,c,d,f,h)=>{let p=f==="float"?"vec2":"vec4",g=h.match(/color/)?"color":p;return l[h]?c==="define"?` 796#ifndef HAS_UNIFORM_u_${h} 797uniform lowp float u_${h}_t; 798layout(location = ${s++}) in ${d} ${p} a_${h}; 799out ${d} ${f} ${h}; 800#else 801uniform ${d} ${f} u_${h}; 802#endif 803`:g==="vec4"?` 804#ifndef HAS_UNIFORM_u_${h} 805 ${h} = a_${h}; 806#else 807 ${d} ${f} ${h} = u_${h}; 808#endif 809`:` 810#ifndef HAS_UNIFORM_u_${h} 811 ${h} = unpack_mix_${g}(a_${h}, u_${h}_t); 812#else 813 ${d} ${f} ${h} = u_${h}; 814#endif 815`:c==="define"?` 816#ifndef HAS_UNIFORM_u_${h} 817uniform lowp float u_${h}_t; 818layout(location = ${s++}) in ${d} ${p} a_${h}; 819#else 820uniform ${d} ${f} u_${h}; 821#endif 822`:g==="vec4"?` 823#ifndef HAS_UNIFORM_u_${h} 824 ${d} ${f} ${h} = a_${h}; 825#else 826 ${d} ${f} ${h} = u_${h}; 827#endif 828`:` 829#ifndef HAS_UNIFORM_u_${h} 830 ${d} ${f} ${h} = unpack_mix_${g}(a_${h}, u_${h}_t); 831#else 832 ${d} ${f} ${h} = u_${h}; 833#endif 834`}),{fragmentSource:e,vertexSource:t,staticAttributes:r,staticUniforms:o}}const mne="#define PROJECTION_MERCATOR",gne="mercator";var Rk=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return gne}get shaderDefine(){return mne}get shaderPreludeCode(){return Xl.projectionMercator}get vertexShaderPreludeCode(){return Xl.projectionMercator.vertexSource}get subdivisionGranularity(){return DP.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,n,r,i){if(this._cachedMesh)return this._cachedMesh;let a=new Id;a.emplaceBack(0,0),a.emplaceBack(He,0),a.emplaceBack(0,He),a.emplaceBack(He,He);let o=e.createVertexBuffer(a,_h.members),s=$r.simpleSegment(0,0,4,2),l=new mu;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new Nv(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},Ok=class yne{constructor(t=0,n=0,r=0,i=0){if(isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0||isNaN(i)||i<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=n,this.left=r,this.right=i}interpolate(t,n,r){return n.top!=null&&t.top!=null&&(this.top=Lr.number(t.top,n.top,r)),n.bottom!=null&&t.bottom!=null&&(this.bottom=Lr.number(t.bottom,n.bottom,r)),n.left!=null&&t.left!=null&&(this.left=Lr.number(t.left,n.left,r)),n.right!=null&&t.right!=null&&(this.right=Lr.number(t.right,n.right,r)),this}getCenter(t,n){let r=qt((this.left+t-this.right)/2,0,t),i=qt((this.top+n-this.bottom)/2,0,n);return new we(r,i)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new yne(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};function $5(e,t){if(!e.renderWorldCopies||e.lngRange)return;let n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}function wV(e){return Math.max(0,Math.floor(e))}var lD=class{constructor(e,t){this.applyConstrain=(n,r)=>this._constrainOverride===null?this._callbacks.defaultConstrain(n,r):this._constrainOverride(n,r),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=t?.renderWorldCopies===void 0||!!t?.renderWorldCopies,this._minZoom=t?.minZoom||0,this._maxZoom=t?.maxZoom||22,this._minPitch=t?.minPitch===void 0||t?.minPitch===null?0:t?.minPitch,this._maxPitch=t?.maxPitch===void 0||t?.maxPitch===null?60:t?.maxPitch,this._constrainOverride=t?.constrainOverride??null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new kt(0,0),this._elevation=0,this._zoom=0,this._tileZoom=wV(this._zoom),this._scale=Fa(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Ok,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=wV(this._zoom),this._scale=Fa(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new Ok(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}
vendor: 6,876 bytes, line 834
834get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new we(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=As(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=Lte(),dGe(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=qt(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return Kl(this._fovInRadians)}setFov(e){e=qt(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=Sr(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=Fa(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this.constrainInternal(),this._calcMatrices()}resize(e,t,n=!0){this._width=e,this._height=t,n&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){return this._latRange?.length!==2||this._lngRange?.length!==2?null:new xl([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-su,su])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:n,minY:r,maxX:i,maxY:a}=fl.fromPoints(t).extend(e);return[new we(n,r),new we(i,r),new we(i,a),new we(n,a),new we(n,r)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:n}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(n),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=Ih(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=vl(new Float64Array(16));ta(e,e,[this._width/2,-this._height/2,1]),ci(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=vl(new Float64Array(16)),ta(e,e,[1,-1,1]),ci(e,e,[-1,-1,0]),ta(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,n,r){let i=n===void 0?this.bearing:n,a=r=r===void 0?this.pitch:r,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,a),{x:l,y:u}=ck(a,i),c=Fn.fromLngLat(e,t),d=kee(1,c.y),f,h,p=0;do{if(p+=1,p>10)break;h=o/d;let g=l*h,v=u*h;f=new Fn(c.x+g,c.y+v),d=1/f.meterInMercatorCoordinateUnits()}while(Math.abs(o-h*d)>1e-12);return{center:f.toLngLat(),elevation:s,zoom:ua(this.height/2/Math.tan(this.fovInRadians/2)/h/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,n=Ih(1,this.center.lat)*this.worldSize,r=Fn.fromLngLat(this.center,this.elevation),i=r.x/t,a=r.y/t,o=r.z/t,s=this.pitch,l=this.bearing,{x:u,y:c,z:d}=ck(s,l),f=this.cameraToCenterDistance,h=i+f*-u,p=a+f*-c,g=o+f*d,{distanceToCenter:v,clampedElevation:b}=this._distanceToCenterFromAltElevationPitch(g/n,e,s),x=v*n,_=h+u*x,w=p+c*x,C=new Fn(_*t,w*t,0).toLngLat(),T=Ih(1,C.lat),k=ua(this.height/2/Math.tan(this.fovInRadians/2)/v/T/this.tileSize);this._elevation=b,this._center=C,this.setZoom(k)}
vendor: 5,396 bytes, line 834
834_distanceToCenterFromAltElevationPitch(e,t,n){let r=-Math.cos(Sr(n)),i=e-t,a,o=t;return r*i>=0||Math.abs(r)<Math.cos(Sr(89.25))?(a=1e4,o=e+a*r):a=-i/r,{distanceToCenter:a,clampedElevation:o}}getCameraPoint(){let e=this.pitchInRadians,t=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new we(t*Math.sin(this.rollInRadians),t*Math.cos(this.rollInRadians)))}getMercatorTileCoordinates(e){if(!e)return[0,0,1,1];let t=e.canonical.z>=0?1<<e.canonical.z:2**e.canonical.z;return[e.canonical.x/t,e.canonical.y/t,1/t/He,1/t/He]}},SKe=class{distanceToTile2d(e,t,n,r){let i=r,a=i.distanceX([e,t]),o=i.distanceY([e,t]);return Math.hypot(a,o)}getWrap(e,t,n){return n}getTileBoundingVolume(e,t,n,r){let i=Math.min(0,n),a=Math.max(0,n);if(r?.terrain){let s=new Qi(e.z,t,e.z,e.x,e.y),l=r.terrain.getMinMaxElevation(s);i=l.minElevation??i,a=l.maxElevation??a}let o=1<<e.z;return new tD([t+e.x/o,e.y/o,i],[t+(e.x+1)/o,(e.y+1)/o,a])}allowVariableZoom(e,t){let n=e.fov*(Math.abs(Math.cos(e.rollInRadians))*e.height+Math.abs(Math.sin(e.rollInRadians))*e.width)/e.height,r=qt(78.5-n/2,0,60);return!!t.terrain||e.pitch>r}allowWorldCopies(){return!0}prepareNextFrame(){}};const CKe=zr([{name:"a_pos3d",type:"Int16",components:3}]);var TKe=class extends Ci{constructor(e){super(),this._lastTilesetChange=Nn(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let n={},r=!1;for(let i of B1(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))n[i.key]=!0,this._renderableTilesKeys.push(i.key),this._tiles[i.key]||(i.terrainRttPosMatrix32f=new Float32Array(16),Nl(i.terrainRttPosMatrix32f,0,He,He,0,0,1),this._tiles[i.key]=new ane(i,this.tileSize),this._lastTilesetChange=Nn(),r=!0);for(let i in this._tiles)n[i]||(this._tiles[i].releaseRTT(this.tileManager.map.painter),delete this._tiles[i],r=!0);return r}releaseRTT(e){for(let t in this._tiles){let n=this._tiles[t];(n.tileID.equals(e)||n.tileID.isChildOf(e)||e.isChildOf(n.tileID))&&n.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let n of this._renderableTilesKeys){let r=this._tiles[n].tileID,i=e.clone(),a=mh();if(r.canonical.equals(e.canonical))Nl(a,0,He,He,0,0,1);else if(r.canonical.isChildOf(e.canonical)){let o=r.canonical.z-e.canonical.z,s=r.canonical.x-(r.canonical.x>>o<<o),l=r.canonical.y-(r.canonical.y>>o<<o),u=He>>o;Nl(a,0,u,u,0,0,1),ci(a,a,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(r.canonical)){let o=e.canonical.z-r.canonical.z,s=e.canonical.x-(e.canonical.x>>o<<o),l=e.canonical.y-(e.canonical.y>>o<<o),u=He>>o;Nl(a,0,He,He,0,0,1),ci(a,a,[s*u,l*u,0]),ta(a,a,[1/2**o,1/2**o,0])}else continue;i.terrainRttPosMatrix32f=new Float32Array(a),t[n]=i}return t}_getTerrainCoordsForTileRanges(e,t){let n={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID;if(!this._isWithinTileRanges(i,t))continue;let a=e.clone(),o=mh();if(i.canonical.z===e.canonical.z){let s=e.canonical.x-i.canonical.x+e.wrap*(1<<e.canonical.z),l=e.canonical.y-i.canonical.y;Nl(o,0,He,He,0,0,1),ci(o,o,[s*He,l*He,0])}else if(i.canonical.z>e.canonical.z){let s=i.canonical.z-e.canonical.z,l=i.canonical.x-(i.canonical.x>>s<<s)+e.wrap*(1<<i.canonical.z),u=i.canonical.y-(i.canonical.y>>s<<s),c=e.canonical.x-(i.canonical.x>>s),d=e.canonical.y-(i.canonical.y>>s),f=He>>s;Nl(o,0,f,f,0,0,1),ci(o,o,[-l*f+c*He,-u*f+d*He,0])}else{let s=e.canonical.z-i.canonical.z,l=e.canonical.x-(e.canonical.x>>s<<s)+e.wrap*(1<<e.canonical.z),u=e.canonical.y-(e.canonical.y>>s<<s),c=(e.canonical.x>>s)-i.canonical.x,d=(e.canonical.y>>s)-i.canonical.y,f=He<<s;Nl(o,0,f,f,0,0,1),ci(o,o,[l*He+c*f,u*He+d*f,0])}a.terrainRttPosMatrix32f=new Float32Array(o),n[r]=a}return n}getSourceTile(e,t){let n=this.tileManager._source,r=e.overscaledZ-this.deltaZoom;if(r>n.maxzoom&&(r=n.maxzoom),r<n.minzoom)return;this._sourceTileCache[e.key]||=e.scaledTo(r).key;let i=this.findTileInCaches(this._sourceTileCache[e.key]);if(!i?.dem&&t)for(;r>=n.minzoom&&!i?.dem;)i=this.findTileInCaches(e.scaledTo(r--).key);return i}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=Nn()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let n=t[e.canonical.z];return!!n&&(e.wrap>n.minWrap||e.wrap<n.maxWrap||e.canonical.x>=n.minTileXWrapped&&e.canonical.x<=n.maxTileXWrapped&&e.canonical.y>=n.minTileY&&e.canonical.y<=n.maxTileY)}};const SV=He*(1-1e-12),CV=-.5;var kKe=class{constructor(e,t,n,r="auto"){this._meshCache={},this.painter=e,this.tileManager=new TKe(t),this.options=n,this.exaggeration=typeof n.exaggeration=="number"?n.exaggeration:1,this._terrainSkirtLength=r,this.qual
vendor: 15,547 bytes, line 834
834ityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&=(this._fbo.destroy(),null),this._fboDepthTexture&&=(this._fboDepthTexture.destroy(),null),this._emptyDemTexture&&=(this._emptyDemTexture.destroy(),null),this._emptyDepthTexture&&=(this._emptyDepthTexture.destroy(),null);for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,n,r=He){let i=e.normalizeCoordinates(t,n,r);if(!i)return 0;let a=this.getElevationSampler(i.tileID);return a?a(i.x,i.y,r):0}getElevationForLngLatZoom(e,t){if(!MN(t,e.wrap()))return 0;let{tileID:n,mercatorX:r,mercatorY:i}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(n,r%He,i%He,He)}getElevationForLngLat(e,t){let n=this.getCoverageIndex();if(n){let a=Fn.fromLngLat(e),o=uD(n,this.exaggeration,a.x,a.y);if(o.demLoaded)return o.elevation}let r=B1(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),i=0;for(let a of r)a.canonical.z>i&&(i=Math.min(a.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,i)}getElevation(e,t,n,r=He){return this.getDEMElevation(e,t,n,r)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,n=0,r=0;for(let i of this.tileManager.getRenderableTiles()){if(!i)continue;let{canonical:a,wrap:o}=i.tileID;e.includes(a.z)||e.push(a.z);let s=this.getElevationSampler(i.tileID);t.set(`${o}/${a.z}/${a.x}/${a.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(i.tileID);n=Math.min(n,l??0),r=Math.max(r,u??0)}return t.size===0?null:(e.sort((i,a)=>a-i),{zooms:e,samplerPerTile:t,minElevation:n-10,maxElevation:r+10})}getElevationSampler(e){let t=e.key,n=this._elevationSamplerCache.get(t);if(n)return n;let r=this.tileManager.getSourceTile(e,!0),i=r?.dem;if(!r||!i)return null;let a=this._getDEMTileMatrix(e,r),o=a[0]*i.dim,s=a[5]*i.dim,l=a[12]*i.dim+CV,u=a[13]*i.dim+CV,c=(d,f,h)=>{let p=h===8192?1:He/h;return i.sampleBilinear(d*p*o+l,f*p*s+u)};return this._elevationSamplerCache.set(t,c),c}_getDEMTileMatrix(e,t){let n=`${t.tileID.key}/${e.key}`,r=this._demMatrixCache.get(n);if(r)return r;let i=e.canonical.z-t.tileID.canonical.z,a=e.canonical.x-(e.canonical.x>>i<<i),o=e.canonical.y-(e.canonical.y>>i<<i),s=zOe(new Float64Array(16),[1/(He<<i),1/(He<<i),0]);return ci(s,s,[a*He,o*He,0]),this._demMatrixCache.set(n,s),s}getTerrainData(e){if(!this._emptyDemTexture){let r=this.painter.context,i=new gr({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new xi(r,i,r.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new xi(r,new gr({width:1,height:1}),r.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(r.gl.NEAREST,r.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=vl([])}let t=this.tileManager.getSourceTile(e,!0);if(t?.dem&&(!t.demTexture||t.needsTerrainPrepare)){let r=this.painter.context;t.demTexture||=this.painter.getTileTexture(t.dem.stride),t.demTexture?t.demTexture.update(t.dem.getPixels(),{premultiply:!1}):t.demTexture=new xi(r,t.dem.getPixels(),r.gl.RGBA,{premultiply:!1}),t.demTexture.bind(r.gl.NEAREST,r.gl.CLAMP_TO_EDGE),t.needsTerrainPrepare=!1}let n=t?this._getDEMTileMatrix(e,t):this._emptyDemMatrix;return{u_depth:2,u_terrain:3,u_terrain_dim:t?.dem?.dim||1,u_terrain_matrix:n,u_terrain_unpack:t?.dem?.getUnpackVector()||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(t?.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:t}}getFramebuffer(){let e=this.painter,t=e.width/devicePixelRatio,n=e.height/devicePixelRatio;return this._fbo&&(this._fbo.width!==t||this._fbo.height!==n)&&(this._fbo.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture),this._fboDepthTexture||(this._fboDepthTexture=new xi(e.context,{width:t,height:n,data:null},e.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(e.context.gl.NEAREST,e.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=e.context.createFramebuffer(t,n,!0,!1),this._fbo.depthAttachment.set(e.context.createRenderbuffer(e.context.gl.DEPTH_COMPONENT16,t,n))),this._fbo.colorAttachment.set(this._fboDepthTexture.texture),this._fbo}getTerrainMesh(e){let t=this.painter.style.projection?.transitionState>0,n=t&&e.canonical.y===0,r=t&&e.canonical.y===(1<<e.canonical.z)-1,i=`m_${n?"n":""}_${r?"s":""}`;if(this._meshCache[i])return this._meshCache[i];let a=this.painter.context,o=new Fze,s=new mu,l=this.meshSize,u=He/l,c=l*l;for(let f=0;f<=l;f++)for(let h=0;h<=l;h++)o.emplaceBack(h*u,f*u,0);for(let f=0;f<c;f+=l+1)for(let h=0;h<l;h++)s.emplaceBack(h+f,l+h+f+1,l+h+f+2),s.emplaceBack(h+f,l+h+f+2,h+f+1);this._terrainSkirtLength!=="none"&&this._buildSkirts(o,s,l,u,n,r);let d=new Nv(a.createVertexBuffer(o,CKe.members),a.createIndexBuffer(s),$r.simpleSegment(0,0,o.length,s.length));return this._meshCache[i]=d,d}getSkirtLength(e){return 2*Math.PI*La/2**Math.max(e,0)/5}getMinTileElevationForLngLatZoom(e,t){if(!MN(t,e.wrap()))return 0;let{tileID:n}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getMinMaxElevation(n).minElevation??0}getMinMaxElevation(e){let t=this.tileManager.getSourceTile(e,!0),n={minElevation:null,maxElevation:null};return t?.dem&&(n.minElevation=t.dem.min*this.exaggeration,n.maxElevation=t.dem.max*this.exaggeration),n}_getOverscaledTileIDFromLngLatZoom(e,t){let n=Fn.fromLngLat(e.wrap()),r=(1<<t)*He,i=n.x*r,a=n.y*r,o=Math.floor(i/He),s=Math.floor(a/He);return{tileID:new Qi(t,0,t,o,s),mercatorX:i,mercatorY:a}}_buildSkirts(e,t,n,r,i,a){let o=e.length,s=o+(n+1),l=(n+1)*n,u=i?Oy:0,c=+!i,d=a?By:He,f=+!a;for(let g=0;g<=n;g++)e.emplaceBack(g*r,u,c);for(let g=0;g<=n;g++)e.emplaceBack(g*r,d,f);for(let g=0;g<n;g++)t.emplaceBack(l+g,s+g,s+g+1),t.emplaceBack(l+g,s+g+1,l+g+1),t.emplaceBack(0+g,o+g+1,o+g),t.emplaceBack(0+g,0+g+1,o+g+1);let h=e.length,p=h+(n+1)*2;for(let g of[0,1])for(let v=0;v<=n;v++)for(let b of[0,1])e.emplaceBack(g*He,v*r,b);for(let g=0;g<n*2;g+=2)t.emplaceBack(h+g,h+g+1,h+g+3),t.emplaceBack(h+g,h+g+3,h+g+2),t.emplaceBack(p+g,p+g+3,p+g+1),t.emplaceBack(p+g,p+g+2,p+g+3)}};const TV={covered:!1,demLoaded:!1,elevation:0};function uD(e,t,n,r){if(r<0||r>=1)return TV;let i=Math.floor(n),a=n-i;for(let o of e.zooms){let s=1<<o,l=a*s,u=r*s,c=Math.floor(l),d=Math.floor(u),f=`${i}/${o}/${c}/${d}`;if(!e.samplerPerTile.has(f))continue;let h=e.samplerPerTile.get(f);return h?{covered:!0,demLoaded:!0,elevation:h(Math.min((l-c)*He,SV),Math.min((u-d)*He,SV),He)*t}:{covered:!0,demLoaded:!1,elevation:0}}return TV}function vne(e,t){return e.covered&&t<=e.elevation+1e-6}function _ne(e,t,n,r,i){for(let a=0;a<40&&r-n>i;a++){let o=(n+r)/2;t(e,o)?r=o:n=o}return{lo:n,hi:r}}var L5=class bne{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,r){this._helper.interpolatePadding(t,n,r)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n,r=!0){this._helper.resize(t,n,r)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(t){}constructor(t,n){this._posMatrixCache=new Map,this._alignedPosMatrixCache=new Map,this._fogMatrixCacheF32=new Map,this.defaultConstrain=(r,i)=>{i=qt(+i,this.minZoom,this.maxZoom);let a={center:new kt(r.lng,r.lat),zoom:i},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*Fa(a.zoom),l=0,u=s,c=0,d=s,f=0,h=0,{x:p,y:g}=this.size;if(this._helper._latRange){let C=this._helper._latRange;l=Gm(C[1])*s,u=Gm(C[0])*s,u-l<g&&(f=g/(u-l))}o&&(c=As(Wm(o[0])*s,0,s),d=As(Wm(o[1])*s,0,s),d<c&&(d+=s),d-c<p&&(h=p/(d-c)));let{x:v,y:b}=Yl(s,r),x,_,w=Math.max(h||0,f||0);if(w){let C=new we(h?(d+c)/2:v,f?(u+l)/2:b);return a.center=j2(s,C).wrap(),a.zoom+=ua(w),a}if(this._helper._latRange){let C=g/2;b-C<l&&(_=l+C),b+C>u&&(_=u-C)}if(o){let C=(c+d)/2,T=v;this._helper._renderWorldCopies&&(T=As(v,C-s/2,C+s/2));let k=p/2;T-k<c&&(x=c+k),T+k>d&&(x=d-k)}if(x!==void 0||_!==void 0){let C=new we(x??v,_??b);a.center=j2(s,C).wrap()}return a},this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=n??new lD({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._coveringTilesDetailsProvider=new SKe}clone(){let t=new bne;return t.apply(this,!1),t}apply(t,n){this._helper.apply(t,n)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let n=[new A5(0,t)];if(this._helper._renderWorldCopies){let r=this.screenPointToMercatorCoordinate(new we(0,0)),i=this.screenPointToMercatorCoordinate(new we(this._helper._width,0)),a=this.screenPointToMercatorCoordinate(new we(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new we(0,this._helper._height)),s=Math.floor(Math.min(r.x,i.x,a.x,o.x)),l=Math.floor(Math.max(r.x,i.x,a.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&n.push(new A5(u,t))}return n}getCameraFrustum(){return nD.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let n=this.screenPointToLocation(this.centerPoint,t),r=t?t.getElevationForLngLat(n,this):0;this._helper.recalculateZoomAndCenter(r)}setLocationAtPoint(t,n,r=this.elevation){let i=r-this.elevation,a=this.screenPointToMercatorCoordinateAtZ(n,i),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=Fn.fromLngLat(t),l=new Fn(s.x-(a.x-o.x),s.y-(a.y-o.y));this.setCenter(l?.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,n){return n?this.coordinatePoint(Fn.fromLngLat(t),n.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(Fn.fromLngLat(t))}screenPointToLocation(t,n){return this.screenPointToMercatorCoordinate(t,n)?.toLngLat()}screenPointToLocationAtElevation(t,n){return this.screenPointToMercatorCoordinateAtZ(t,n-this.elevation)?.toLngLat()}screenPointToMercatorCoordinate(t,n){if(n){let r=this.screenTerrainPointToMercatorCoordinate(t,n);if(r!=null)return r}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,n){let r=n.getCoverageIndex();if(!r)return null;let{near:i,far:a}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=a[0]-i[0],l=a[1]-i[1],u=a[2]-i[2],c={index:r,exaggeration:n.exaggeration,near:i,dx:s,dy:l,dz:u,worldSize:o},d=0,f=1;if(u===0){if(i[2]>r.maxElevation||i[2]<r.minElevation)return null}else{let b=(r.maxElevation-i[2])/u,x=(r.minElevation-i[2])/u;if(d=Math.max(d,Math.min(b,x)),f=Math.min(f,Math.max(b,x)),d>f)return null}let h=Math.hypot(s,l),p=qt(Math.ceil(h*(f-d)/4),1,512),g=0,v=!nb(c,0);for(let b=0;b<=p;b++){let x=d+(f-d)*b/p;if(!v)v=!nb(c,x);else if(nb(c,x)){let{lo:_,hi:w}=_ne(c,nb,g,x,.001/h),C=Qb(c,_),T=Qb(c,w),k=i[2]+_*u-C.elevation,A=i[2]+w*u-T.elevation,P=C.covered&&k>A?qt(_+k*(w-_)/(k-A),_,w):w;return new Fn((i[0]+P*s)/o,(i[1]+P*l)/o,Qb(c,P).elevation)}g=x}return null}getRaySegmentFromPixel(t){let n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];na(n,n,this._pixelMatrixInverse),na(r,r,this._pixelMatrixInverse);let i=n[3],a=r[3],o=this.elevation;return{near:[n[0]/i,n[1]/i,n[2]/i+o],far:[r[0]/a,r[1]/a,r[2]/a+o]}}screenPointToMercatorCoordinateAtZ(t,n){let r=n||0,{near:i,far:a}=this.getRaySegmentFromPixel(t),o=i[2]===a[2]?0:(r+this.elevation-i[2])/(a[2]-i[2]);return new Fn(Lr.number(i[0],a[0],o)/this.worldSize,Lr.number(i[1],a[1],o)/this.worldSize,r)}coordinatePoint(t,n=0,r=this._pixelMatrix){let i=this._coordinateClipPoint(t,n,r),a=i[3];return a>0?new we(i[0]/a,i[1]/a):this._offScreenPointBehindCamera(i[0],i[1],a)}_coordinateClipPoint(t,n,r){let i=[t.x*this.worldSize,t.y*this.worldSize,n,1];return na(i,i,r)}_offScreenPointBehindCamera(t,n,r){let i=this.width/2,a=this.height/2,o=t-i*r,s=n-a*r;o===0&&s===0&&(s=1);let l=i+this.width,u=a+this.height,c=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new we(i+o*c,a+s*c)}getBounds(){let t=Math.max(0,this._helper._height/2-zy(this));return new xl().extend(this.screenPointToLocation(new we(0,t))).extend(this.screenPointToLocation(new we(this._helper._width,t))).extend(this.screenPointToLocation(new we(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new we(0,this._helper._height)))}
vendor: 5,837 bytes, line 834
834isPointOnMapSurface(t,n){return n?this.screenTerrainPointToMercatorCoordinate(t,n)!=null:t.y>this.centerPoint.y-zy(this)}calculatePosMatrix(t,n=!1,r=!1){let i=t.key??mm(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),a=n?this._alignedPosMatrixCache:this._posMatrixCache;if(a.has(i)){let l=a.get(i);return r?l.f32:l.f64}let o=b9(t,this.worldSize);D0(o,n?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return a.set(i,s),r?s.f32:s.f64}calculateFogMatrix(t){let n=t.key,r=this._fogMatrixCacheF32;if(r.has(n))return r.get(n);let i=b9(t,this.worldSize);return D0(i,this._fogMatrix,i),r.set(n,new Float32Array(i)),r.get(n)}calculateCenterFromCameraLngLatAlt(t,n,r,i){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,r,i)}calculateCameraOptionsFromTo(t,n,r,i){let a=Fn.fromLngLat(t,n),o=Fn.fromLngLat(r,i),s=o.x-a.x,l=o.y-a.y,u=o.z-a.z,c=Math.hypot(s,l,u);if(c===0)throw Error("Can't calculate camera options with same From and To");let d=Math.hypot(s,l),f=ua(this.cameraToCenterDistance/c/this.tileSize),h=Kl(Math.atan2(s,-l)),p=Kl(Math.acos(d/c));return p=u<0?90-p:90+p,{center:o.toLngLat(),elevation:i,zoom:f,pitch:p,bearing:h}}_calculateNearFarZ(t,n,r){let i=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),a=t-i*this._helper._pixelPerMeter/Math.cos(n),o=i<0?a:t,s=Math.PI/2+this.pitchInRadians,l=Sr(this.fov)*(Math.abs(Math.cos(Sr(this.roll)))*this.height+Math.abs(Math.sin(Sr(this.roll)))*this.width)/this.height*(.5+r.y/this.height),u=Math.sin(l)*o/Math.sin(qt(Math.PI-s-l,.01,Math.PI-.01)),c=zy(this),d=Math.atan(c/this._helper.cameraToCenterDistance),f=Sr(90-$h),h=d>f?2*d*(.5+r.y/(c*2)):f,p=Math.sin(h)*o/Math.sin(qt(Math.PI-s-h,.01,Math.PI-.01)),g=Math.min(u,p);this._helper._farZ=(Math.cos(Math.PI/2-n)*g+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let n=this.centerOffset,r=Yl(this.worldSize,this.center),i=r.x,a=r.y,o=Sr(Math.min(this.pitch,$h)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,n);let l;l=new Float64Array(16),lT(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),qZe(this._invProjMatrix,l),l[8]=-n.x*2/this._helper._width,l[9]=n.y*2/this._helper._height,this._projectionMatrix=sT(l),ta(l,l,[1,-1,1]),ci(l,l,[0,0,-this._helper.cameraToCenterDistance]),Pd(l,l,-this.rollInRadians),Bm(l,l,this.pitchInRadians),Pd(l,l,-this.bearingInRadians),ci(l,l,[-i,-a,0]),this._mercatorMatrix=ta([],l,[this.worldSize,this.worldSize,this.worldSize]),ta(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=D0(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),ci(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=i5([],l);let u=[0,0,-1,1];na(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),lT(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-n.x*2/this.width,this._fogMatrix[9]=n.y*2/this.height,ta(this._fogMatrix,this._fogMatrix,[1,-1,1]),ci(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),Pd(this._fogMatrix,this._fogMatrix,-this.rollInRadians),Bm(this._fogMatrix,this._fogMatrix,this.pitchInRadians),Pd(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),ci(this._fogMatrix,this._fogMatrix,[-i,-a,0]),ta(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),ci(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=D0(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let c=this._helper._width%2/2,d=this._helper._height%2/2,f=Math.cos(this.bearingInRadians),h=Math.sin(-this.bearingInRadians),p=i-Math.round(i)+f*c+h*d,g=a-Math.round(a)+f*d+h*c,v=new Float64Array(l);if(ci(v,v,[p>.5?p-1:p,g>.5?g-1:g,0]),this._alignedProjMatrix=v,l=i5(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new we(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return na(n,n,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=Ih(1,this.center.lat)*this.worldSize,n=this._helper.cameraToCenterDistance/t;return Aee(this.center,this.elevation,this.pitch,this.bearing,n).toLngLat()}getProjectionData(t){let{overscaledTileID:n,aligned:r,applyTerrainMatrix:i}=t,a=this._helper.getMercatorTileCoordinates(n),o=n?this.calculatePosMatrix(n,r,!0):null,s;return s=n?.terrainRttPosMatrix32f&&i?n.terrainRttPosMatrix32f:o||lJ(),{mainMatrix:s,tileMercatorCoords:a,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,n,r){if(!n?.getCoverageIndex())return!1;let i=Fn.fromLngLat(t);r??=n.getElevationForLngLat(t,this);let a=this._coordinateClipPoint(i,r,this._pixelMatrix3D),o=a[3];if(o<=0||a[2]>o)return!0;let s=new we(a[0]/o,a[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,n);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),c=kV(u,i.x*this.worldSize,i.y*this.worldSize,r);return kV(u,l.x*this.worldSize,l.y*this.worldSize,l.z)<c*.99}getPixelScale(){return 1}getCircleRadiusCorrection(){return 1}getPitchedTextCorrection(t,n,r){return 1}transformLightDirection(t){return uT(t)}
vendor: 1,984 bytes, line 834
834getRayDirectionFromPixel(t){throw Error("Not implemented.")}projectTileCoordinates(t,n,r,i){let a=this.calculatePosMatrix(r),o;i==null?(o=[t,n,0,1],sD(o,o,a)):(o=[t,n,i,1],na(o,o,a));let s=o[3];return{point:new we(o[0]/s,o[1]/s),signedDistanceFromCamera:s,isOccluded:!1}}populateCache(t){for(let n of t)this.calculatePosMatrix(n)}getProjectionDataForCustomLayer(t=!0){let n=new Qi(0,0,0,0,0),r=this.getProjectionData({overscaledTileID:n,applyGlobeMatrix:t}),i=b9(n,this.worldSize);D0(i,this._viewProjMatrix,i);let a=[He,He,this.worldSize/this._helper.pixelsPerMeter],o=mh();return ta(o,i,a),{...r,tileMercatorCoords:[0,0,1,1],fallbackMatrix:o,mainMatrix:o}}getFastPathSimpleProjectionMatrix(t){return this.calculatePosMatrix(t)}};function Qb(e,t){return uD(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function nb(e,t){return vne(Qb(e,t),e.near[2]+t*e.dz)}function kV({near:e,far:t},n,r,i){let a=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((n-e[0])*a+(r-e[1])*o+(i-e[2])*s)/(a*a+o*o+s*s)}function xne(){hn("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function wne(e){if(e.useSlerp)if(e.k<1){let t=pz(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),n=pz(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),r=new Float64Array(4);Nb(r,t,n,e.k);let i=wBe(r);e.tr.setRoll(i.roll),e.tr.setPitch(i.pitch),e.tr.setBearing(i.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(Lr.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(Lr.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(Lr.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function Sne(e,t,n,r,i){let a=i.padding,o=Yl(i.worldSize,n.getNorthWest()),s=Yl(i.worldSize,n.getNorthEast()),l=Yl(i.worldSize,n.getSouthEast()),u=Yl(i.worldSize,n.getSouthWest
vendor: 14,415 bytes, line 834
834()),c=Sr(-r),d=o.rotate(c),f=s.rotate(c),h=l.rotate(c),p=u.rotate(c),g=new we(Math.max(d.x,f.x,p.x,h.x),Math.max(d.y,f.y,p.y,h.y)),v=new we(Math.min(d.x,f.x,p.x,h.x),Math.min(d.y,f.y,p.y,h.y)),b=g.sub(v),x=i.width-(a.left+a.right+t.left+t.right),_=i.height-(a.top+a.bottom+t.top+t.bottom),w=x/b.x,C=_/b.y;if(C<0||w<0){xne();return}let T=Math.min(ua(i.scale*Math.min(w,C)),e.maxZoom),k=we.convert(e.offset),A=(t.left-t.right)/2,P=(t.top-t.bottom)/2,D=new we(A,P).rotate(Sr(r)),$=k.add(D).mult(i.scale/Fa(T));return{center:j2(i.worldSize,o.add(l).div(2).sub($)),zoom:T,bearing:r}}var R5=class{get useGlobeControls(){return!1}handlePanInertia(e,t){let n=e.mag(),r=Math.abs(zy(t));return{easingOffset:e.mult(Math.min(r*.75/n,1)),easingCenter:t.center}}handleMapControlsRollPitchBearingZoom(e,t){e.bearingDelta&&t.setBearing(t.bearing+e.bearingDelta),e.pitchDelta&&t.setPitch(t.pitch+e.pitchDelta),e.rollDelta&&t.setRoll(t.roll+e.rollDelta),e.zoomDelta&&t.setZoom(t.zoom+e.zoomDelta)}handleMapControlsPan(e,t,n){e.around.distSqr(t.centerPoint)<.01||t.setLocationAtPoint(n,e.around,e.aroundElevation)}cameraForBoxAndBearing(e,t,n,r,i){return Sne(e,t,n,r,i)}handleJumpToCenterZoom(e,t){let n=t.zoom===void 0?e.zoom:+t.zoom;e.zoom!==n&&e.setZoom(+t.zoom),t.center!==void 0&&e.setCenter(kt.convert(t.center))}handleEaseTo(e,t){let n=e.zoom,r=e.padding,i={roll:e.roll,pitch:e.pitch,bearing:e.bearing},a={roll:t.roll===void 0?e.roll:t.roll,pitch:t.pitch===void 0?e.pitch:t.pitch,bearing:t.bearing===void 0?e.bearing:t.bearing},o=t.zoom!==void 0,s=!e.isPaddingEqual(t.padding),l=!1,u=o?+t.zoom:e.zoom,c=e.centerPoint.add(t.offsetAsPoint),d=e.screenPointToLocation(c),{center:f,zoom:h}=e.applyConstrain(kt.convert(t.center||d),u??n);$5(e,f);let p=Yl(e.worldSize,d),g=Yl(e.worldSize,f).sub(p),v=Fa(h-n);l=h!==n;let b=_=>{if(l&&e.setZoom(Lr.number(n,h,_)),dJ(i,a)||wne({startEulerAngles:i,endEulerAngles:a,tr:e,k:_,useSlerp:i.roll!=a.roll}),s&&(e.interpolatePadding(r,t.padding,_),c=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let w=Fa(e.zoom-n),C=(h>n?Math.min(2,v):Math.max(.5,v))**(1-_),T=j2(e.worldSize,p.add(g.mult(_*C)).mult(w));e.setLocationAtPoint(e.renderWorldCopies?T.wrap():T,c)}},x=this._transformAtAnimationEnd(e,h,a,t.padding);return t.around?x.setLocationAtPoint(t.around,t.aroundPoint):x.setLocationAtPoint(f,x.centerPoint.add(t.offsetAsPoint)),{easeFunc:b,isZooming:l,elevationCenter:x.center}}handleFlyTo(e,t){let n=t.zoom!==void 0,r=e.zoom,i=e.applyConstrain(kt.convert(t.center||t.locationAtOffset),n?+t.zoom:r),a=i.center,o=i.zoom;$5(e,a);let s=e.worldSize,l=Yl(s,t.locationAtOffset),u=Yl(s,a).sub(l),c=u.mag(),d=Fa(o-r),f=t.minZoom===void 0?e.minZoom:+t.minZoom,h=Math.max(f,e.minZoom),p=Math.min(h,r,o),g=e.applyConstrain(a,p).zoom,v=Fa(g-r),b=(_,w,C,T)=>{e.setZoom(_===1?o:r+ua(w));let k=_===1?a:j2(s,l.add(u.mult(C)));e.setLocationAtPoint(e.renderWorldCopies?k.wrap():k,T)},x=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return x.setLocationAtPoint(a,x.centerPoint.add(t.offsetAsPoint)),{easeFunc:b,scaleOfZoom:d,targetCenter:x.center,scaleOfMinZoom:v,pixelPathLength:c}}_transformAtAnimationEnd(e,t,n,r){let i=e.clone();return i.setZoom(t),i.setRoll(n.roll),i.setPitch(n.pitch),i.setBearing(n.bearing),i.setPadding(r),i}};let EKe;const MKe=()=>EKe||=new Wi({type:new dt(Ie.projection.type,"type")}),I9=new DP({fill:new oc(128,2),line:new oc(512,0),tile:new oc(128,32),stencil:new oc(128,1),circle:3});var Cne=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return Xl.projectionGlobe}get vertexShaderPreludeCode(){return Xl.projectionMercator.vertexSource}get subdivisionGranularity(){return I9}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,n,r,i){let a=(i==="stencil"?I9.stencil:I9.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&r,s=t.y===(1<<t.z)-1&&r;return this._getMesh(e,{granularity:a,generateBorders:n,extendToNorthPole:o,extendToSouthPole:s})}_getMesh(e,t){let n=this._getMeshKey(t);if(n in this._tileMeshCache)return this._tileMeshCache[n];let r=ene(e,t);return this._tileMeshCache[n]=r,r}recalculate(e){}hasTransition(){return!1}},EV=class extends Ci{constructor(e,t){super(),this._transitionable=new ow(MKe(),"projection",t),this.setProjection(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Zn(0)),this._mercatorProjection=new Rk,this._verticalPerspectiveProjection=new Cne}get transitionState(){let e=this.properties.get("type");if(typeof e=="string"&&e==="mercator")return 0;if(typeof e=="string"&&e==="vertical-perspective")return 1;if(e instanceof gf){if(e.from===e.to)return e.from==="mercator"?0:1;if(e.from==="vertical-perspective"&&e.to==="mercator")return 1-e.transition;if(e.from==="mercator"&&e.to==="vertical-perspective")return e.transition}return 1}get useGlobeRendering(){return this.transitionState>0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,n,r,i){return this.currentProjection.getMeshFromTileID(e,t,n,r,i)}setProjection(e){this._transitionable.setValue("type",e?.type||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};function Tne(e){let t=Zm(e.worldSize,e.center.lat);return 2*Math.PI*t}function AKe(e,t,n){let r=Ai(t),i=Ai(n),a=di(r,i),o=Math.acos(a),s=Tne(e);return o/(2*Math.PI)*s}function PKe(e,t){return[Jh(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function DKe(e,t){let n=Math.cos(t),r=new Float64Array(3);return r[0]=Math.sin(e)*n,r[1]=Math.sin(t),r[2]=Math.cos(e)*n,r}function md(e,t,n,r,i){let a=1/(1<<i),o=e/He*a+n*a,s=t/He*a+r*a,l=Jh(o*Math.PI*2+Math.PI,Math.PI*2),u=2*Math.atan(Math.exp(Math.PI-s*Math.PI*2))-Math.PI*.5,c=Math.cos(u),d=new Float64Array(3);return d[0]=Math.sin(l)*c,d[1]=Math.sin(u),d[2]=Math.cos(l)*c,d}function Ai(e){return DKe(e.lng*Math.PI/180,e.lat*Math.PI/180)}function Zm(e,t){return e/(2*Math.PI)/Math.cos(t*Math.PI/180)}function kne(e){let t=na(ph(),[0,0,0,1],e.modelViewProjectionMatrix);return na(t,t,e.inverseProjectionMatrix),[t[0]/t[3],t[1]/t[3],t[2]/t[3]]}function Ny(e){let t=Math.asin(e[1])/Math.PI*180,n=Math.sqrt(e[0]*e[0]+e[2]*e[2]);if(n>1e-6){let r=e[0]/n,i=e[2]/n,a=Math.acos(i),o=(r>0?a:-a)/Math.PI*180;return new kt(As(o,-180,180),t)}return new kt(0,t)}function IKe(e,t){return QA(ph(),-e.lng,-e.lat,t)}function $Ke(e){let t=e[0],n=e[1],r=e[2],i=e[3];return{lng:-Math.atan2(2*(i*t+n*r),1-2*(t*t+n*n))*180/Math.PI,lat:-Math.asin(qt(2*(i*n-r*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(i*r+t*n),1-2*(n*n+r*r))*180/Math.PI}}const $9=Math.PI*.98;function MV(e,t){let n=e.cameraPosition,r=cl(n);if(r<=1)return e.screenPointToLocation(t);let i=On();Oa(i,n);let a=e.getRayDirectionFromPixel(t),o=-di(a,i),s=On();a5(s,a,i,o);let l=cl(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),c=Math.asin(1/r)*.9;if(u<c)return e.screenPointToLocation(t);let d=r*Math.sin(c),f=Math.asin(qt(d,-1,1))-c,h=r*Math.cos(c)/Math.sqrt(Math.max(1-d*d,1e-12))-1,p=$9-f,g=u-c,v=f+h*g*p/(p+h*g),b=On();Tr(b,s,1/l);let x=On();return Tr(x,i,Math.cos(qt(v,0,$9))),a5(x,x,b,Math.sin(qt(v,0,$9))),Oa(x,x),Ny(x)}function LKe(e,t,n,r,i=!0){let a=MV(e,n),o=t;if(r)o=MV(e,n.sub(r));else if(!e.isPointOnMapSurface(n))return;let s=Ai(a),l=Ai(o),u=IKe(e.center,e.bearing),c=fo(On(),l,s),d=Math.sqrt(di(c,c)),f=Math.acos(qt(di(l,s),-1,1))/2,h=Math.sin(f),p=d?sz(c[1]/d*h,-c[0]/d*h,c[2]/d*h,Math.cos(f)):sz(0,0,0,1),{lng:g,lat:v,bearing:b}=$Ke(nBe(ph(),u,p)),x=e.center.lat,_=e.zoom,w=qt(v,-90,90),C=i?RKe(e,n,r,g):g;e.setCenter(new kt(As(C,-180,180),w)),i||e.setBearing(b),e.setZoom(_+zi(x,e.center.lat))}function RKe(e,t,n,r){let i=e.center.lng,a=e.center.lat,o=a>=0?90:-90,s=e.locationToScreenPoint(new kt(0,o)),l=t.x-s.x,u=t.y-s.y,c=l*l+u*u,d=qt(1-(su-Math.abs(a))/12,0,1),f=d*d*(3-2*d),h=Jh(r-i+180,360)-180,p=0;if(f>0&&n){let g=(l*n.y-u*n.x)/Math.max(c,400);p=(o>0?1:-1)*g*180/Math.PI}return i+(1-f)*h+f*p}function OKe(e){let t=On();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function BKe(e,t,n){let r=On();Ac(r,n,e);let i=On();return a5(i,e,r,t/o5(r)),i}function O5(e){return Math.cos(e*Math.PI/180)}function zi(e,t){let n=O5(e),r=O5(t);return ua(r/n)}function FKe(e,t){return 360/Tne({worldSize:e,center:{lat:t}})}function zKe(e,t){let n=e.rotate(t.bearingInRadians),r=t.zoom+zi(t.center.lat,0),i=dm(1/O5(t.center.lat),1/O5(Math.min(Math.abs(t.center.lat),60)),Vb(r,7,3,0,1)),a=FKe(t.worldSize,t.center.lat);return new kt(t.center.lng-n.x*a*i,qt(t.center.lat+n.y*a,-su,su))}function L9(e){let t=.5*e,n=Math.sin(t),r=Math.cos(t);return Math.log(n+r)-Math.log(r-n)}function AV(e,t,n,r){let i=e.lat+n*r;if(Math.abs(n)>1){let a=e.lat+n,o=(Math.sign(a)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+n)*Math.PI/180,l=L9(o+r*(s-o)),u=L9(o),c=L9(s),d=(l-u)/(c-u),f=e.lng+t*d;return new kt(f,i)}{let a=e.lng+t*r;return new kt(a,i)}}function rb(e,t,n=1){let r=di(e,t),i=n*n,a=On(),o=On();Tr(o,t,r),Ac(a,e,o);let s=i-di(a,a);if(s<0)return null;let l=di(e,e)-i,u=-r+(r<0?1:-1)*Math.sqrt(s),c=l/u,d=u,f=Math.max(c,d);return f<0?null:{tMin:Math.min(c,d),tMax:f}}function Ene(e,t){let n=t*.01569612305760477,r=qt((e-n)/(9*n),0,1);return r*r*(3-2*r)}var NKe=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,n,r){let i=`${e.z}_${e.x}_${e.y}_${r?.terrain?"t":""}_${Math.round(n)}`,a=this._cache.get(i);if(a)return a;let o=this._cachePrevious.get(i);if(o)return this._cache.set(i,o),o;let s=this._boundingVolumeFactory(e,t,n,r);return this._cache.set(i,s),this._hadAnyChanges=!0,s}},R9=class Bk{constructor(t,n,r,i){this.min=r,this.max=i,this.points=t,this.planes=n}static fromAabb(t,n){let r=[];for(let i=0;i<8;i++)r.push([(i>>0&1)==1?n[0]:t[0],(i>>1&1)==1?n[1]:t[1],(i>>2&1)==1?n[2]:t[2]]);return new Bk(r,[[-1,0,0,n[0]],[1,0,0,-t[0]],[0,-1,0,n[1]],[0,1,0,-t[1]],[0,0,-1,n[2]],[0,0,1,-t[2]]],t,n)}static fromCenterSizeAngles(t,n,r){let i=QA([],r[0],r[1],r[2]),a=a9([],[n[0],0,0],i),o=a9([],[0,n[1],0],i),s=a9([],[0,0,n[2]],i),l=[...t],u=[...t];for(let d=0;d<8;d++)for(let f=0;f<3;f++){let h=t[f]+a[f]*((d>>0&1)==1?1:-1)+o[f]*((d>>1&1)==1?1:-1)+s[f]*((d>>2&1)==1?1:-1);l[f]=Math.min(l[f],h),u[f]=Math.max(u[f],h)}let c=[];for(let d=0;d<8;d++){let f=[...t];Ms(f,f,Tr([],a,(d>>0&1)==1?1:-1)),Ms(f,f,Tr([],o,(d>>1&1)==1?1:-1)),Ms(f,f,Tr([],s,(d>>2&1)==1?1:-1)),c.push(f)}return new Bk(c,[[...a,-di(a,c[0])],[...o,-di(o,c[0])],[...s,-di(s,c[0])],[-a[0],-a[1],-a[2],-di(a,c[7])],[-o[0],-o[1],-o[2],-di(o,c[7])],[-s[0],-s[1],-s[2],-di(s,c[7])]],l,u)}intersectsFrustum(t){let n=!0,r=this.points.length,i=this.planes.length,a=t.planes.length,o=t.points.length;for(let s=0;s<a;s++){let l=t.planes[s],u=0;for(let c=0;c<r;c++){let d=this.points[c];l[0]*d[0]+l[1]*d[1]+l[2]*d[2]+l[3]>=0&&u++}if(u===0)return 0;u<r&&(n=!1)}if(n)return 2;for(let s=0;s<i;s++){let l=this.planes[s],u=0;for(let c=0;c<o;c++){let d=t.points[c];l[0]*d[0]+l[1]*d[1]+l[2]*d[2]+l[3]>=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let n=this.points.length,r=0;for(let i=0;i<n;i++){let a=this.points[i];t[0]*a[0]+t[1]*a[1]+t[2]*a[2]+t[3]>=0&&r++}return r===n?2:r===0?0:1}};function e4(e,t,n){let r=e-t;return r<0?-r:Math.max(0,r-n)}function O9(e,t,n,r,i){let a=e-n,o;return o=a<0?Math.min(-a,1+a-i):a>i?Math.min(Math.max(a-i,0),1-a):0,Math.max(o,e4(t,r,i))}var VKe=class{constructor(){this._boundingVolumeCache=new NKe(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,n,r){let i=1<<n.z,a=1/i,o=n.x/i,s=n.y/i,l=.5,u=2;return u=Math.min(u,O9(e,t,o,s,a)),u=Math.min(u,O9(e,t,o+l,-s-a,a)),u=Math.min(u,O9(e,t,o+l,2-s-a,a)),u}getWrap(e,t,n){let r=1<<t.z,i=1/r,a=t.x/r,o=e4(e.x,a,i),s=e4(e.x,a-1,i),l=e4(e.x,a+1,i),u=Math.min(o,s,l);return u===l?1:u===s?-1:0}allowVariableZoom(e,t){return rD(e,t)>4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,n,r){return this._boundingVolumeCache.getTileBoundingVolume(e,t,n,r)}_computeTileBoundingVolume(e,t,n,r){let i=Math.min(0,n),a=Math.max(0,n);if(r?.terrain){let o=new Qi(e.z,t,e.z,e.x,e.y),s=r.terrain.getMinMaxElevation(o);i=s.minElevation??i,a=Math.max(s.maxElevation??a,a)}if(i/=La,a/=La,i+=1,a+=1,e.z<=0)return R9.fromAabb([-a,-a,-a],[a,a,a]);if(e.z===1)return R9.fromAabb([e.x===0?-a:0,e.y===0?0:-a,-a],[e.x===0?0:a,e.y===0?a:0,a]);{let o=[md(0,0,e.x,e.y,e.z),md(He,0,e.x,e.y,e.z),md(He,He,e.x,e.y,e.z),md(0,He,e.x,e.y,e.z)],s=[];for(let A of o)s.push(Tr([],A,a));if(a!==i)for(let A of o)s.push(Tr([],A,i));e.y===0&&s.push([0,1,0]),e.y===(1<<e.z)-1&&s.push([0,-1,0]);let l=[1,1,1],u=[-1,-1,-1];for(let A of s)for(let P=0;P<3;P++)l[P]=Math.min(l[P],A[P]),u[P]=Math.max(u[P],A[P]);let c=md(He/2,He/2,e.x,e.y,e.z),d=fo([],[0,1,0],c);Oa(d,d);let f=fo([],c,d);Oa(f,f);let h=fo([],o[2],o[1]);Oa(h,h);let p=fo([],o[0],o[3]);Oa(p,p),s.push(Tr([],c,a)),e.y>=(1<<e.z)/2&&s.push(Tr([],md(He/2,0,e.x,e.y,e.z),a)),e.y<(1<<e.z)/2&&s.push(Tr([],md(He/2,He,e.x,e.y,e.z),a));
vendor: 21,786 bytes, line 834
834let g=PV(c,s),v=PV(f,s),b=[-c[0],-c[1],-c[2],g.max],x=[c[0],c[1],c[2],-g.min],_=[-f[0],-f[1],-f[2],v.max],w=[f[0],f[1],f[2],-v.min],C=[...h,0],T=[...p,0],k=[];return e.y===0?k.push(fs(T,C,b),fs(T,C,x)):k.push(fs(_,C,b),fs(_,C,x),fs(_,T,b),fs(_,T,x)),e.y===(1<<e.z)-1?k.push(fs(T,C,b),fs(T,C,x)):k.push(fs(w,C,b),fs(w,C,x),fs(w,T,b),fs(w,T,x)),new R9(k,[b,x,_,w,C,T],l,u)}}};function PV(e,t){let n=1/0,r=-1/0;for(let i of t){let a=di(e,i);n=Math.min(n,a),r=Math.max(r,a)}return{min:n,max:r}}const DV=1e-12;var Mne=class Ane{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,r){this._helper.interpolatePadding(t,n,r)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n){this._helper.resize(t,n)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(t){}constructor(t,n){this._cachedClippingPlane=ph(),this._projectionMatrix=$3(),this._globeViewProjMatrix32f=lJ(),this._globeViewProjMatrixF64=$3(),this._globeViewProjMatrixF64Inverted=$3(),this._globeProjMatrixInverted=$3(),this._cameraPosition=On(),this.defaultConstrain=(r,i)=>{let a=qt(r.lat,-su,su),o=qt(+i,this.minZoom+zi(0,a),this.maxZoom);return{center:new kt(r.lng,a),zoom:o}},this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=n??new lD({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._coveringTilesDetailsProvider=new VKe}clone(){let t=new Ane;return t.apply(this,!1),t}apply(t,n){this._helper.apply(t,n)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=On();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:n,applyGlobeMatrix:r}=t,i=this._helper.getMercatorTileCoordinates(n);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:i,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!r,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:n?.canonical.z===0}}_computeClippingPlane(t){let n=this.pitchInRadians,r=this.cameraToCenterDistance/t,i=Math.sin(n)*r,a=Math.cos(n)*r+1,o=1/Math.sqrt(i*i+a*a)*1,s=-i,l=a,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let c=[0,s,l];o9(c,c,[0,0,0],-this.bearingInRadians),Dg(c,c,[0,0,0],-1*this.center.lat*Math.PI/180),y0(c,c,[0,0,0],this.center.lng*Math.PI/180);let d=1/cl(c);return Tr(c,c,d),[...c,-o*d]}isLocationOccluded(t,n,r){let i=n?.getCoverageIndex();r??=i?n.getElevationForLngLat(t,this):0;let a=$V(t,r);if(!this.isSurfacePointVisible(a))return!0;if(!i)return!1;let o=this._projectSurfacePointToScreen(a),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=LV(s,l,a);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,n);return c!=null&&LV(s,l,$V(c.toLngLat(),c.z))<u*.99}transformLightDirection(t){let n=this._helper._center.lng*Math.PI/180,r=this._helper._center.lat*Math.PI/180,i=Math.cos(r),a=[Math.sin(n)*i,Math.sin(r),Math.cos(n)*i],o=[a[2],0,-a[0]],s=[0,0,0];fo(s,o,a),Oa(o,o),Oa(s,s);let l=[o[0]*t[0]+s[0]*t[1]+a[0]*t[2],o[1]*t[0]+s[1]*t[1]+a[1]*t[2],o[2]*t[0]+s[2]*t[1]+a[2]*t[2]],u=[0,0,0];return Oa(u,l),u}getPixelScale(){return 1/Math.cos(this._helper._center.lat*Math.PI/180)}getCircleRadiusCorrection(){return Math.cos(this._helper._center.lat*Math.PI/180)}getPitchedTextCorrection(t,n,r){let i=Mee(t,n,r.canonical),a=PKe(i.x,i.y);return this.getCircleRadiusCorrection()/Math.cos(a[1])}projectTileCoordinates(t,n,r,i){let a=r.canonical,o=md(t,n,a.x,a.y,a.z),s=1+(i??0)/La,l=o[0]*s,u=o[1]*s,c=o[2]*s,d=[l,u,c,1];na(d,d,this._globeViewProjMatrixF64);let f;if(s<=1){let h=this._cachedClippingPlane;f=h[0]*o[0]+h[1]*o[1]+h[2]*o[2]+h[3]<0}else f=this._isLineOfSightBlocked(l,u,c);return{point:new we(d[0]/d[3],d[1]/d[3]),signedDistanceFromCamera:d[3],isOccluded:f}}_isLineOfSightBlocked(t,n,r){let i=this._cameraPosition,a=t-i[0],o=n-i[1],s=r-i[2],l=a*a+o*o+s*s;if(l===0)return!1;let u=qt(-(i[0]*a+i[1]*o+i[2]*s)/l,0,1),c=i[0]+u*a,d=i[1]+u*o,f=i[2]+u*s;return c*c+d*d+f*f<1}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let n=Zm(this.worldSize,this.center.lat),r=mh();t&&(this._helper._nearZ=.5,this._helper._farZ=this.cameraToCenterDistance+n*2),lT(r,this.fovInRadians,this.width/this.height,this._helper._nearZ,this._helper._farZ);let i=this.centerOffset;r[8]=-i.x*2/this._helper._width,r[9]=i.y*2/this._helper._height,this._projectionMatrix=sT(r),this._globeProjMatrixInverted=mh(),i5(this._globeProjMatrixInverted,r),ci(r,r,[0,0,-this.cameraToCenterDistance]),Pd(r,r,this.rollInRadians),Bm(r,r,-this.pitchInRadians),Pd(r,r,this.bearingInRadians),ci(r,r,[0,0,-n]);let a=On();a[0]=n,a[1]=n,a[2]=n,Bm(r,r,this.center.lat*Math.PI/180),oJ(r,r,-this.center.lng*Math.PI/180),ta(r,r,a),this._globeViewProjMatrixF64=r,this._globeViewProjMatrix32f=new Float32Array(r),this._globeViewProjMatrixF64Inverted=mh(),i5(this._globeViewProjMatrixF64Inverted,r);let o=On();this._cameraPosition=On(),this._cameraPosition[2]=this.cameraToCenterDistance/n,o9(this._cameraPosition,this._cameraPosition,o,-this.rollInRadians),Dg(this._cameraPosition,this._cameraPosition,o,this.pitchInRadians),o9(this._cameraPosition,this._cameraPosition,o,-this.bearingInRadians),Ms(this._cameraPosition,this._cameraPosition,[0,0,1]),Dg(this._cameraPosition,this._cameraPosition,o,-this.center.lat*Math.PI/180),y0(this._cameraPosition,this._cameraPosition,o,this.center.lng*Math.PI/180),this._cachedClippingPlane=this._computeClippingPlane(n);let s=sT(this._globeViewProjMatrixF64Inverted);ta(s,s,[1,1,-1]),this._cachedFrustum=nD.fromInvProjectionMatrix(s,1,0,this._cachedClippingPlane,!0)}calculateFogMatrix(t){hn("calculateFogMatrix is not supported on globe projection.");let n=mh();return vl(n),n}getVisibleUnwrappedCoordinates(t){return[new A5(0,t)]}getCameraFrustum(){return this._cachedFrustum}getClippingPlane(){return this._cachedClippingPlane}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){if(t){hn("terrain is not fully supported on vertical perspective projection.");return}this._helper.recalculateZoomAndCenter(0)}maxPitchScaleFactor(){return 1}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return(cl(this._cameraPosition)-1)*La}getCameraLngLat(){let t=On();return Oa(t,this._cameraPosition),Ny(t)}populateCache(t){}getBounds(){let t=this.width*.5,n=this.height*.5,r=[new we(0,0),new we(t,0),new we(this.width,0),new we(this.width,n),new we(this.width,this.height),new we(t,this.height),new we(0,this.height),new we(0,n)],i=[];for(let d of r)i.push(this.unprojectScreenPoint(d));let a=0,o=0,s=0,l=0,u=this.center;for(let d of i){let f=$o(u.lng,d.lng),h=$o(u.lat,d.lat);f<o&&(o=f),f>a&&(a=f),h<l&&(l=h),h>s&&(s=h)}let c=[u.lng+o,u.lat+l,u.lng+a,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(c[3]=90,c[0]=-180,c[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(c[1]=-90,c[0]=-180,c[2]=180),new xl(c)}calculateCenterFromCameraLngLatAlt(t,n,r,i){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,r,i)}calculateCameraOptionsFromTo(t,n,r,i){let a=kt.convert(r),o=Ai(kt.convert(t));Tr(o,o,1+n/La);let s=Ai(a),l=Tr(On(),s,1+i/La),u=JA(On(),o,s),c=cl(u);if(c<DV||HOe(o,l)<DV)throw Error("Can't calculate camera options with same From and To");let d=On();y0(u,u,d,-Sr(a.lng)),Dg(u,u,d,Sr(a.lat));let f=Kl(Math.acos(qt(u[2]/c,-1,1))),h=Math.hypot(u[0],u[1])<c*1e-9?this.bearing:Kl(Math.atan2(-u[0],-u[1]));return{center:a,elevation:i,zoom:ua(this.cameraToCenterDistance/c/Zm(this.tileSize,a.lat)),pitch:f,bearing:h}}setLocationAtPoint(t,n,r){let i=Ai(this.unprojectScreenPoint(n)),a=Ai(t),o=On();ZOe(o);let s=On();y0(s,i,o,-this.center.lng*Math.PI/180),Dg(s,s,o,this.center.lat*Math.PI/180);let l=a[0]*a[0]+a[2]*a[2],u=s[0]*s[0];if(l<u)return;let c=Math.sqrt(l-u),d=-c,f=L3(a[0],a[2],s[0],c),h=L3(a[0],a[2],s[0],d),p=On();y0(p,a,o,-f);let g=L3(p[1],p[2],s[1],s[2]),v=On();y0(v,a,o,-h);let b=L3(v[1],v[2],s[1],s[2]),x=Math.PI*.5,_=g>=-x&&g<=x,w=b>=-x&&b<=x,C,T;if(_&&w){let D=this.center.lng*Math.PI/180,$=this.center.lat*Math.PI/180,O=R3(f,D),z=R3(g,$),j=R3(h,D),B=R3(b,$);O+z<j+B?(C=f,T=g):(C=h,T=b)}else if(_)C=f,T=g;else if(w)C=h,T=b;else return;let k=C/Math.PI*180,A=T/Math.PI*180,P=this.center.lat;this.setCenter(new kt(k,qt(A,-90,90))),this.setZoom(this.zoom+zi(P,this.center.lat))}locationToScreenPoint(t,n){let r=Ai(t);if(n){let i=n.getElevationForLngLatZoom(t,this._helper._tileZoom);Tr(r,r,1+i/La)}return this._projectSurfacePointToScreen(r)}_projectSurfacePointToScreen(t){let n=ph();return na(n,[...t,1],this._globeViewProjMatrixF64),n[0]/=n[3],n[1]/=n[3],new we((n[0]*.5+.5)*this.width,(-n[1]*.5+.5)*this.height)}screenPointToMercatorCoordinate(t,n){if(n){let r=this.screenTerrainPointToMercatorCoordinate(t,n);if(r)return r}return Fn.fromLngLat(this.unprojectScreenPoint(t))}screenTerrainPointToMercatorCoordinate(t,n){let r=n.getCoverageIndex();if(!r)return null;let i=this.cameraPosition,a=this.getRayDirectionFromPixel(t),o=rb(i,a,1+r.maxElevation/La);if(!o)return null;let s=rb(i,a,1+r.minElevation/La),l=Math.max(o.tMin,0),u=s?s.tMin:o.tMax;if(u<=l)return null;let c={index:r,exaggeration:n.exaggeration,origin:i,direction:a},d=0;for(let f=0;f<=256;f++){let h=l+(u-l)*f/256;if(IV(c,h)){let{hi:p}=_ne(c,IV,d,h,1e-12),{sample:g,mercator:v}=Pne(c,p);return new Fn(v.x,v.y,g.elevation)}d=h}return null}screenPointToLocation(t,n){return this.screenPointToMercatorCoordinate(t,n)?.toLngLat()}screenPointToLocationAtElevation(t,n){return this.screenPointToLocation(t)}isPointOnMapSurface(t,n){let r=this._cameraPosition;return!!rb(r,this.getRayDirectionFromPixel(t))}getRayDirectionFromPixel(t){let n=ph();n[0]=t.x/this.width*2-1,n[1]=(t.y/this.height*2-1)*-1,n[2]=1,n[3]=1,na(n,n,this._globeViewProjMatrixF64Inverted),n[0]/=n[3],n[1]/=n[3],n[2]/=n[3];let r=On();r[0]=n[0]-this._cameraPosition[0],r[1]=n[1]-this._cameraPosition[1],r[2]=n[2]-this._cameraPosition[2];let i=On();return Oa(i,r),i}isSurfacePointVisible(t){let n=this._cachedClippingPlane;return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]>=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let n=ph();return na(n,[...t,1],this._globeViewProjMatrixF64),n[0]/=n[3],n[1]/=n[3],n[2]/=n[3],n[0]>-1&&n[0]<1&&n[1]>-1&&n[1]<1&&n[2]>-1&&n[2]<1}unprojectScreenPoint(t){let n=this._cameraPosition,r=this.getRayDirectionFromPixel(t),i=rb(n,r);if(i){let c=On();Ms(c,n,[r[0]*i.tMin,r[1]*i.tMin,r[2]*i.tMin]);let d=On();return Oa(d,c),Ny(d)}let a=this._cachedClippingPlane,o=a[0]*r[0]+a[1]*r[1]+a[2]*r[2],s=-dT(a,n)/o,l=On();if(s>0)Ms(l,n,[r[0]*s,r[1]*s,r[2]*s]);else{let c=On();Ms(c,n,[r[0]*2,r[1]*2,r[2]*2]);let d=dT(this._cachedClippingPlane,c);Ac(l,c,[this._cachedClippingPlane[0]*d,this._cachedClippingPlane[1]*d,this._cachedClippingPlane[2]*d])}let u=OKe(a);return Ny(BKe(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let n=this.getProjectionData({overscaledTileID:new Qi(0,0,0,0,0),applyGlobeMatrix:t});return n.tileMercatorCoords=[0,0,1,1],n}getFastPathSimpleProjectionMatrix(t){}};function Pne(e,t){let n=On();a5(n,e.origin,e.direction,t);let r=cl(n),i=On();Tr(i,n,1/r);let a=Ny(i),o=Fn.fromLngLat(a),s=new Fn(o.x,qt(o.y,0,.999999999)),l=uD(e.index,e.exaggeration,s.x,s.y),u=Math.abs(a.lat)>85.051129?0:l.elevation;return{sample:{...l,elevation:u},radius:r,mercator:s}}function IV(e,t){let{sample:n,radius:r}=Pne(e,t);return vne(n,(r-1)*La)}function $V(e,t){let n=Ai(e);return Tr(n,n,1+t/La)}function LV(e,t,n){let r=JA(On(),n,e);return di(r,t)}var RV=class Dne{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,r){this._helper.interpolatePadding(t,n,r)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n,r=!0){this._helper.resize(t,n,r)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(n,r)=>this.currentTransform.defaultConstrain(n,r),this.applyConstrain=(n,r)=>this._helper.applyConstrain(n,r),this._helper=new lD({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,r)=>this.defaultConstrain(n,r)},t),this._globeness=1,this._mercatorTransform=new L5(void 0,this._helper),this._verticalPerspectiveTransform=new Mne(void 0,this._helper)}clone(){let t=new Dne;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,n){this._helper.apply(t,n)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let n=this._mercatorTransform.getProjectionData(t),r=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?r.mainMatrix:n.mainMatrix,clippingPlane:r.clippingPlane,tileMercatorCoords:r.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:n.fallbackMatrix,clipAntimeridian:r.clipAntimeridian}}isLocationOccluded(t,n,r){return this.currentTransform.isLocationOccluded(t,n,r)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return dm(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return dm(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,n,r){let i=this._mercatorTransform.getPitchedTextCorrection(t,n,r),a=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,n,r);return dm(i,a,this._globeness)}projectTileCoordinates(t,n,r,i){return this.currentTransform.projectTileCoordinates(t,n,r,i)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,n,r,i){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,r,i)}calculateCameraOptionsFromTo(t,n,r,i){return this.currentTransform.calculateCameraOptionsFromTo(t,n,r,i)}setLocationAtPoint(t,n,r){this.currentTransform.setLocationAtPoint(t,n,r)}locationToScreenPoint(t,n){return this.currentTransform.locationToScreenPoint(t,n)}screenPointToMercatorCoordinate(t,n){return this.currentTransform.screenPointToMercatorCoordinate(t,n)}screenTerrainPointToMercatorCoordinate(t,n){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,n)}screenPointToLocation(t,n){return this.currentTransform.screenPointToLocation(t,n)}screenPointToLocationAtElevation(t,n){return this.currentTransform.screenPointToLocationAtElevation(t,n)}
vendor: 2,460 bytes, line 834
834isPointOnMapSurface(t,n){return this.currentTransform.isPointOnMapSurface(t,n)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let n=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return n;let r=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return r.fallbackMatrix=n.mainMatrix,r.projectionTransition=this._globeness,r}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},Ine=class Uu{get useGlobeControls(){return!0}handlePanInertia(t,n){let r=zKe(t,n);return Math.abs(r.lng-n.center.lng)>180&&(r.lng=n.center.lng+179.5*Math.sign(r.lng-n.center.lng)),{easingCenter:r,easingOffset:new we(0,0)}}handleMapControlsRollPitchBearingZoom(t,n){let r=t.around,i=n.screenPointToLocation(r);t.bearingDelta&&n.setBearing(n.bearing+t.bearingDelta),t.pitchDelta&&n.setPitch(n.pitch+t.pitchDelta),t.rollDelta&&n.setRoll(n.roll+t.rollDelta);let a=n.zoom;t.zoomDelta&&n.setZoom(n.zoom+t.zoomDelta);let o=n.zoom-a;if(o===0)return;let s=$o(n.center.lng,i.lng),l=s/(Math.abs(s/180)+1),u=$o(n.center.lat,i.lat),c=n.getRayDirectionFromPixel(r),d=n.cameraPosition,f=di(d,c)*-1,h=On();Ms(h,d,[c[0]*f,c[1]*f,c[2]*f]);let p=cl(h),g=p-1,v=Math.exp(-Math.max(g-.3,0)*.5),b=Vb(p,.95,.999,0,1),x=Zm(n.worldSize,n.center.lat)/Math.min(n.width,n.height),_=Vb(x,.9,.5,1,.25),w=Math.min(v,dm(1,_,b)),C=(1-Fa(-o))*w,T=n.center.lat,k=n.zoom,A=new kt(n.center.lng+l*C,qt(n.center.lat+u*C,-su,su));n.setLocationAtPoint(i,r);let P=n.center,D=Vb(Math.abs(s),45,85,0,1),$=Math.max(D,b)**.25,O=$o(P.lng,A.lng),z=$o(P.lat,A.lat);n.setCenter(new kt(P.lng+O*$,P.lat+z*$).wrap()),n.setZoom(k+zi(T,n.center.lat))}handleMapControlsPan(t,n,r){t.panDelta&&LKe(n,r,n.isPointOnMapSurface(t.around)?t.around:n.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,n,r,i,a){let o=Sne(t,n,r,i,a);if(!o)return;let s=n.left/a.width*2-1,l=(a.width-n.right)/a.width*2-1,u=n.top/a.height*-2+1,c=(a.height-n.bottom)/a.height*-2+1,d=$o(r.getWest(),r.getEast())<0,f=d?r.getEast():r.getWest(),h=d?r.getWest():r.getEast(),p=Math.max(r.getNorth(),r.getSouth()),g=Math.min(r.getNorth(),r.getSouth()),v=f+$o(f,h)*.5,b=p+$o(p,g)*.5,x=a.clone();x.setCenter(o.center),x.setBearing(o.bearing),x.setPitch(0),x.setRoll(0),x.setZoom(o.zoom);let _=x.modelViewProjectionMatrix,w=[Ai(r.getNorthWest()),Ai(r.getNorthEast()),Ai(r.getSouthWest
vendor: 31,754 bytes, line 834
834()),Ai(r.getSouthEast()),Ai(new kt(h,b)),Ai(new kt(f,b)),Ai(new kt(v,p)),Ai(new kt(v,g))],C=Ai(o.center),T=1/0;for(let k of w)s<0&&(T=Uu.getLesserNonNegativeNonNull(T,Uu.solveVectorScale(k,C,_,"x",s))),l>0&&(T=Uu.getLesserNonNegativeNonNull(T,Uu.solveVectorScale(k,C,_,"x",l))),u>0&&(T=Uu.getLesserNonNegativeNonNull(T,Uu.solveVectorScale(k,C,_,"y",u))),c<0&&(T=Uu.getLesserNonNegativeNonNull(T,Uu.solveVectorScale(k,C,_,"y",c)));if(!Number.isFinite(T)||T===0){xne();return}return o.zoom=Math.min(x.zoom+ua(T),t.maxZoom),o}handleJumpToCenterZoom(t,n){let r=t.center.lat,i=t.applyConstrain(n.center?kt.convert(n.center):t.center,t.zoom).center;t.setCenter(i.wrap());let a=n.zoom===void 0?t.zoom+zi(r,i.lat):+n.zoom;t.zoom!==a&&t.setZoom(a)}handleEaseTo(t,n){let r=t.zoom,i=t.center,a=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:n.roll===void 0?t.roll:n.roll,pitch:n.pitch===void 0?t.pitch:n.pitch,bearing:n.bearing===void 0?t.bearing:n.bearing},l=n.zoom!==void 0,u=!t.isPaddingEqual(n.padding),c=!1,d=n.center?kt.convert(n.center):i,f=t.applyConstrain(d,r).center;$5(t,f);let h=t.clone();h.setCenter(f),h.setZoom(l?+n.zoom:r+zi(i.lat,d.lat)),h.setBearing(n.bearing);let p=new we(qt(t.centerPoint.x+n.offsetAsPoint.x,0,t.width),qt(t.centerPoint.y+n.offsetAsPoint.y,0,t.height));h.setLocationAtPoint(f,p);let g=(n.offset&&n.offsetAsPoint.mag())>0?h.center:f,v=l?+n.zoom:r+zi(i.lat,g.lat),b=r+zi(i.lat,0),x=v+zi(g.lat,0),_=$o(i.lng,g.lng),w=$o(i.lat,g.lat),C=Fa(x-b);return c=v!==r,{easeFunc:T=>{if(dJ(o,s)||wne({startEulerAngles:o,endEulerAngles:s,tr:t,k:T,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(a,n.padding,T),n.around)hn("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(n.around,n.aroundPoint);else{let k=T*(x>b?Math.min(2,C):Math.max(.5,C))**(1-T),A=AV(i,_,w,k);t.setCenter(A.wrap())}if(c){let k=Lr.number(b,x,T)+zi(0,t.center.lat);t.setZoom(k)}},isZooming:c,elevationCenter:g}}handleFlyTo(t,n){let r=n.zoom!==void 0,i=t.center,a=t.zoom,o=t.padding,s=!t.isPaddingEqual(n.padding),l=t.applyConstrain(kt.convert(n.center||n.locationAtOffset),a).center,u=r?+n.zoom:t.zoom+zi(t.center.lat,l.lat),c=t.clone();c.setCenter(l),c.setZoom(u),c.setBearing(n.bearing);let d=new we(qt(t.centerPoint.x+n.offsetAsPoint.x,0,t.width),qt(t.centerPoint.y+n.offsetAsPoint.y,0,t.height));c.setLocationAtPoint(l,d);let f=c.center;$5(t,f);let h=AKe(t,i,f),p=a+zi(i.lat,0),g=u+zi(f.lat,0),v=Fa(g-p),b=typeof n.minZoom=="number"?+n.minZoom:t.minZoom,x=Math.max(b,t.minZoom)+zi(f.lat,0),_=Math.min(x,p,g)+zi(0,f.lat),w=t.applyConstrain(f,_).zoom+zi(f.lat,0),C=Fa(w-p),T=$o(i.lng,f.lng),k=$o(i.lat,f.lat);return{easeFunc:(A,P,D,$)=>{let O=AV(i,T,k,D);s&&t.interpolatePadding(o,n.padding,A);let z=A===1?f:O;t.setCenter(z.wrap());let j=p+ua(P);t.setZoom(A===1?u:j+zi(0,z.lat))},scaleOfZoom:v,targetCenter:f,scaleOfMinZoom:C,pixelPathLength:h}}static solveVectorScale(t,n,r,i,a){let o=a,s=i==="x"?[r[0],r[4],r[8],r[12]]:[r[1],r[5],r[9],r[13]],l=[r[3],r[7],r[11],r[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],c=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],d=n[0]*s[0]+n[1]*s[1]+n[2]*s[2],f=n[0]*l[0]+n[1]*l[1]+n[2]*l[2],h=(d+s[3]-o*f-o*l[3])/(d-u-o*f+o*c);return d+o*c===u+o*f||l[3]*(u-d)+s[3]*(f-c)+u*f===d*c?null:h}static getLesserNonNegativeNonNull(t,n){return n!==null&&n>=0&&n<t?n:t}},OV=class{constructor(e){this._globe=e,this._mercatorCameraHelper=new R5,this._verticalPerspectiveCameraHelper=new Ine}get useGlobeControls(){return this._globe.useGlobeRendering}get currentHelper(){return this.useGlobeControls?this._verticalPerspectiveCameraHelper:this._mercatorCameraHelper}handlePanInertia(e,t){return this.currentHelper.handlePanInertia(e,t)}handleMapControlsRollPitchBearingZoom(e,t){this.currentHelper.handleMapControlsRollPitchBearingZoom(e,t)}handleMapControlsPan(e,t,n){this.currentHelper.handleMapControlsPan(e,t,n)}cameraForBoxAndBearing(e,t,n,r,i){return this.currentHelper.cameraForBoxAndBearing(e,t,n,r,i)}handleJumpToCenterZoom(e,t){this.currentHelper.handleJumpToCenterZoom(e,t)}handleEaseTo(e,t){return this.currentHelper.handleEaseTo(e,t)}handleFlyTo(e,t){return this.currentHelper.handleFlyTo(e,t)}};function jKe(e,t,n){let r={constrainOverride:t};if(Array.isArray(e)){let i=new EV({type:e},n);return{projection:i,transform:new RV(r),cameraHelper:new OV(i)}}switch(e){case"mercator":return{projection:new Rk,transform:new L5(r),cameraHelper:new R5};case"globe":{let i=new EV({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:i,transform:new RV(r),cameraHelper:new OV(i)}}case"vertical-perspective":return{projection:new Cne,transform:new Mne(r),cameraHelper:new Ine};default:return hn(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new Rk,transform:new L5(r),cameraHelper:new R5}}}const UKe=CGe();var Fk=class extends Ci{constructor(e,t={}){super(),this._rtlPluginLoaded=()=>{for(let r in this.tileManagers){let i=this.tileManagers[r].getSource().type;(i==="vector"||i==="geojson")&&this.tileManagers[r].reload()}},this.map=e,this.dispatcher=new Hte(Ute(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(r,i)=>this.getGlyphs(r,i)),this.dispatcher.registerMessageHandler("GI",(r,i)=>this.getImages(r,i)),this.dispatcher.registerMessageHandler("GDA",(r,i)=>this.getDashes(r,i)),this.imageManager=new EGe,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new MGe(this.imageManager);let n=e._container?.lang||typeof document<"u"&&document.documentElement?.lang||void 0;this.glyphManager=new BGe(e._requestManager,t.localIdeographFontFamily,n),this.lineAtlas=new HGe(256,512),this.crossTileSymbolIndex=new pne,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",rP()),Ak().on(Mk,this._rtlPluginLoaded),this.on("data",r=>{if(r.dataType!=="source"||r.sourceDataType!=="metadata")return;let i=this.tileManagers[r.sourceId];if(!i)return;let a=i.getSource();if(a?.vectorLayerIds)for(let o in this._layers){let s=this._layers[o];s.source===a.id&&this._validateLayer(s)}})}_setInitialValues(){this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new ET,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(this.crossTileSymbolIndex?.constructor||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){this._checkLoaded();let n=t===null?this.stylesheet.state?.[e]?.default??null:t;return this._setGlobalStateValues({[e]:n}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let n in e)t[n]=e[n].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let r in e)Hl(e[r],this._globalState[r])||t.push(r);if(t.length===0)return;let n={...this._globalState};for(let r of t)this._globalState[r]=e[r];this._applyGlobalStateChanges(t,n)}_applyGlobalStateChanges(e,t){let n=new Set,r={};for(let a of e)r[a]=this._globalState[a];for(let a in this._layers){let o=this._layers[a];o.retainPriorGlobalState(e,t);let s=o.getLayoutAffectingGlobalStateRefs(),l=o.getPaintAffectingGlobalStateRefs(),u=o.getVisibilityAffectingGlobalStateRefs();for(let c of e){if(s.has(c)&&n.add(o.source),l.has(c))for(let{name:d,value:f}of l.get(c))this._updatePaintProperty(o,d,f,{validate:!1});u?.has(c)&&(o.recalculateVisibility(),this._updateLayer(o))}}let i={now:Nn(),transition:this.getTransition()};this.light?.applyGlobalStateChange(e,t,i),this.sky?.applyGlobalStateChange(e,t,i),this.dispatcher.broadcast("UGS",r);for(let a in this.tileManagers)n.has(a)&&(this._reloadSource(a),this._changed=!0)}async loadURL(e,t={},n){this.fire(new xs("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let r=this._loadStyleRequest;try{let i=await this.map._requestManager.transformRequest(e,"Style");nP(r.signal);let a=await q6(i,r);this._loadStyleRequest===r&&(this._loadStyleRequest=null),this._load(a.data,t,n)}catch(i){this._loadStyleRequest===r&&(this._loadStyleRequest=null),i&&!r.signal.aborted&&this.fire(new Et(fa(i)))}}loadJSON(e,t={},n){this.fire(new xs("dataloading")),this._frameRequest=new AbortController,ho.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,n)}).catch(()=>{})}loadEmpty(){this.fire(new xs("dataloading")),this._load(UKe,{validate:!1})}_load(e,t,n){let r=t.transformStyle?t.transformStyle(n,e):e;if(!(t.validate&&Oz(this,r))){r={...r},this._loaded=!0,this.stylesheet=r;for(let i in r.sources)this.addSource(i,r.sources[i],{validate:!1});r.sprite?this._loadSprite(r.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(r.glyphs),this.glyphManager.setFontFaces(r["font-faces"]),this._createLayers(),this.light=new NGe(this.stylesheet.light??{},this._globalState),this._setProjectionInternal(this.stylesheet.projection?.type||"mercator"),this.sky=new UGe(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain(this.stylesheet.terrain??null,{validate:!1}),this.fire(new xs("data")),this.fire(new Ck)}}_createLayers(){let e=GN(this.stylesheet.layers);this.setGlobalState(this.stylesheet.state??null),this.dispatcher.broadcast("SL",e),this._order=e.map(t=>t.id),this._layers={},this._serializedLayers=null;for(let t of e){let n=C9(t,this._globalState);if(n.setEventedParent(this,{layer:{id:t.id}}),this._layers[t.id]=n,AT(n)&&this.tileManagers[n.source]){let r=t.paint?.["raster-fade-duration"]??n.paint.get("raster-fade-duration");this.tileManagers[n.source].setRasterFadeDuration(r)}}}async _loadSprite(e,t=!1,n=void 0){this.imageManager.setLoaded(!1);let r=new AbortController;this._spriteRequest=r;let i;try{let a=await TGe(e,this.map._requestManager,this.map.getPixelRatio(),r);if(!a)return;for(let o in a){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,a[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(a){i=a,r.signal.aborted||this.fire(new Et(i))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new xs("data")),n?.(i)}}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new xs("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let n=e.sourceLayer;if(!n)return;let r=t.getSource();(r.type==="geojson"||r.vectorLayerIds&&!r.vectorLayerIds.includes(n))&&this.fire(new Et(Error(`Source layer "${n}" does not exist on source "${r.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let n=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?oo(n):n);let r=[];for(let i of e)if(n[i]){let a=t?oo(n[i]):n[i];r.push(a)}return r}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let n of t){let r=this._layers[n];r.type!=="custom"&&(e[n]=r.serialize())}return e}hasTransitions(){if(this.light?.hasTransition()||this.sky?.hasTransition()||this.projection?.hasTransition())return!0;for(let e in this.tileManagers)if(this.tileManagers[e].hasTransition())return!0;for(let e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1);let i=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);(i.length||a.length)&&this._updateWorkerLayers(i,a);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let n={};for(let i in this.tileManagers){let a=this.tileManagers[i];n[i]=a.used,a.used=!1}let r=this.imageManager.listImages();for(let i of this._order){let a=this._layers[i];a.recalculate(e,r),!a.isHidden(e.zoom)&&a.source&&(this.tileManagers[a.source].used=!0)}for(let i in n){let a=this.tileManagers[i];!!n[i]!=!!a.used&&a.fire(new yr("data",{sourceDataType:"visibility",sourceId:i}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new xs("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){this._checkLoaded();let n=this.serialize();if(e=t.transformStyle?t.transformStyle(n,e):e,(t.validate??!0)&&Oz(this,e))return!1;e=oo(e),e.layers=GN(e.layers);let r=SGe(n,e),i=this._getOperationsToPerform(r);if(i.unimplemented.length>0)throw Error(`Unimplemented: ${i.unimplemented.join(", ")}.`);if(i.operations.length===0)return!1;for(let a of i.operations)a();return this.stylesheet=e,this._serializedLayers=null,this.fire(new Ck({style:this})),!0}_getOperationsToPerform(e){let t=[],n=[];for(let r of e)switch(r.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[i,a]=r.args;t.push(()=>this.addLayer(i,a));break}case"removeLayer":{let[i]=r.args;t.push(()=>this.removeLayer(i));break}case"setPaintProperty":{let[i,a,o]=r.args;t.push(()=>this.setPaintProperty(i,a,o));break}case"setLayoutProperty":{let[i,a,o]=r.args;t.push(()=>this.setLayoutProperty(i,a,o));break}case"setFilter":{let[i,a]=r.args;t.push(()=>this.setFilter(i,a));break}case"addSource":{let[i,a]=r.args;t.push(()=>this.addSource(i,a));break}case"removeSource":{let[i]=r.args;t.push(()=>this.removeSource(i));break}case"setLayerZoomRange":{let[i,a,o]=r.args;t.push(()=>this.setLayerZoomRange(i,a,o));break}case"setLight":{let[i]=r.args;t.push(()=>this.setLight(i));break}case"setGeoJSONSourceData":{let[i,a]=r.args;t.push(()=>this.setGeoJSONSourceData(i,a));break}case"setGlyphs":{let[i]=r.args;t.push(()=>this.setGlyphs(i));break}case"setFontFaces":{let[i]=r.args;t.push(()=>this.setFontFaces(i));break}case"setSprite":{let[i]=r.args;t.push(()=>this.setSprite(i));break}case"setTerrain":{let[i]=r.args;t.push(()=>this.map.setTerrain(i));break}case"setSky":{let[i]=r.args;t.push(()=>this.setSky(i));break}case"setProjection":{let[i]=r.args;t.push(()=>this.setProjection(i));break}case"setGlobalState":{let[i]=r.args;t.push(()=>this.setGlobalState(i));break}case"setTransition":t.push(()=>{});break;default:n.push(r.command)}return{operations:t,unimplemented:n}}addImage(e,t){if(this.getImage(e)){this.fire(new Et(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new Et(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new xs("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,n={}){if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if(OQ.has(t.type)&&this._validate(io.source,`sources.${e}`,t,null,n))return;this.map?._collectResourceTiming&&(t.collectResourceTiming=!0);let r=this.tileManagers[e]=new Dk(e,t,this.dispatcher);r.style=this,r.setEventedParent(this,()=>({isSourceLoaded:r.loaded(),source:r.serialize(),sourceId:e})),r.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let n in this._layers)if(this._layers[n].source===e)return this.fire(new Et(Error(`Source "${e}" cannot be removed while layer "${n}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new yr("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let n=this.tileManagers[e].getSource();if(n.type!=="geojson")throw Error(`geojsonSource.type is ${n.type}, which is !== 'geojson`);n.setData(t),this._changed=!0}getSource(e){return this.tileManagers[e]?.getSource()}addLayer(e,t,n={}){this._checkLoaded();let r=e.id;if(this.getLayer(r)){this.fire(new Et(Error(`Layer "${r}" already exists on this map.`)));return}let i;if(e.type==="custom"){if(wP(this,hHe(e)))return;i=C9(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(r,e.source),e=oo(e),e=St(e,{source:r})),this._validate(io.layer,`layers.${r}`,e,{arrayIndex:-1},n))return;i=C9(e,this._globalState),this._validateLayer(i),i.setEventedParent(this,{layer:{id:r}})}let a=t?this._order.indexOf(t):this._order.length;if(t&&a===-1){this.fire(new Et(Error(`Cannot add layer "${r}" before non-existing layer "${t}".`)));return}if(this._order.splice(a,0,r),this._layerOrderChanged=!0,this._layers[r]=i,this._removedLayers[r]&&i.source&&i.type!=="custom"){let o=this._removedLayers[r];delete this._removedLayers[r],o.type===i.type?(this._updatedSources[i.source]="reload",this.tileManagers[i.source].pause()):this._updatedSources[i.source]="clear"}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new Et(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new Et(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let n=this._order.indexOf(e);this._order.splice(n,1);let r=t?this._order.indexOf(t):this._order.length;this._order.splice(r,0,e),this._layerOrderChanged=!0}removeLayer(e){this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new Et(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&this.tileManagers[t.source]?.resetMaxContentElevation(),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,n){this._checkLoaded();let r=this.getLayer(e);if(!r){this.fire(new Et(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(r.minzoom!==t||r.maxzoom!==n)&&(t!=null&&(r.minzoom=t),n!=null&&(r.maxzoom=n),this._updateLayer(r))}setFilter(e,t,n={}){this._checkLoaded();let r=this.getLayer(e);if(!r){this.fire(new Et(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!Hl(r.filter,t)){if(t==null){r.setFilter(void 0),this._updateLayer(r);return}this._validate(io.filter,`layers.${r.id}.filter`,t,null,n)||(r.setFilter(oo(t)),this._updateLayer(r))}}getFilter(e){return oo(this.getLayer(e).filter)}setLayoutProperty(e,t,n,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new Et(Error(`Cannot style non-existing layer "${e}".`)));return}Hl(i.getLayoutProperty(t),n)||(i.setLayoutProperty(t,n,r),this._updateLayer(i))}getLayoutProperty(e,t){let n=this.getLayer(e);if(!n){this.fire(new Et(Error(`Cannot get style of non-existing layer "${e}".`)));return}return n.getLayoutProperty(t)}setPaintProperty(e,t,n,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new Et(Error(`Cannot style non-existing layer "${e}".`)));return}Hl(i.getPaintProperty(t),n)||this._updatePaintProperty(i,t,n,r)}_updatePaintProperty(e,t,n,r={}){e.setPaintProperty(t,n,r)&&this._updateLayer(e),AT(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(n),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let n=e.source,r=e.sourceLayer,i=this.tileManagers[n];if(i===void 0){this.fire(new Et(Error(`The source '${n}' does not exist in the map's style.`)));return}let a=i.getSource().type;if(a==="geojson"&&r){this.fire(new Et(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(a==="vector"&&!r){this.fire(new Et(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new Et(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new Et(Error(`The feature state should not include one of the following keys: ${o}`)));return}i.setFeatureState(r,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let n=e.source,r=this.tileManagers[n];if(r===void 0){this.fire(new Et(Error(`The source '${n}' does not exist in the map's style.`)));return}let i=r.getSource().type,a=i==="vector"?e.sourceLayer:void 0;if(i==="vector"&&!a){this.fire(new Et(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new Et(Error("A feature id is required to remove its specific state property.")));return}r.removeFeatureState(a,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,n=e.sourceLayer,r=this.tileManagers[t];if(r===void 0){this.fire(new Et(Error(`The source '${t}' does not exist in the map's style.`)));return}if(r.getSource().type==="vector"&&!n){this.fire(new Et(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new Et(Error("The feature id parameter must be provided."))),r.getFeatureState(n,e.id)}getTransition(){return St({duration:300,delay:0},this.stylesheet?.transition)}serialize(){if(!this._loaded)return;let e=tP(this.tileManagers,i=>i.serialize()),t=this._serializeByIds(this._order,!0),n=this.map.getTerrain()||void 0,r=this.stylesheet;return cJ({version:r.version,name:r.name,metadata:r.metadata,light:r.light,sky:r.sky,center:r.center,zoom:r.zoom,bearing:r.bearing,pitch:r.pitch,sprite:r.sprite,glyphs:r.glyphs,"font-faces":r["font-faces"],transition:r.transition,projection:r.projection,state:r.state,sources:e,layers:t,terrain:n},i=>i!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=a=>this._layers[a].type==="fill-extrusion",n={},r=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o)){n[o]=a;for(let s of e){let l=s[o];if(l)for(let u of l)r.push(u)}}}r.sort((a,o)=>o.intersectionZ-a.intersectionZ);let i=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o))for(let s=r.length-1;s>=0;s--){let l=r[s].feature;if(n[l.layer.id]<a)break;i.push(l),r.pop()}else for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u.feature)}}return i}queryRenderedFeatures(e,t,n){t?.filter&&this._validate(io.filter,"queryRenderedFeatures.filter",t.filter,null,t);let r={};if(t?.layers){if(!(Array.isArray(t.layers)||t.layers instanceof Set))return this.fire(new Et(Error("parameters.layers must be an Array or a Set of strings"))),[];for(let l of t.layers){let u=this._layers[l];if(!u)return this.fire(new Et(Error(`The layer '${l}' does not exist in the map's style and cannot be queried for features.`))),[];r[u.source]=!0}}let i=[];t.availableImages=this.imageManager.listImages();let a=this._serializedAllLayers(),o=t.layers instanceof Set?t.layers:Array.isArray(t.layers)?new Set(t.layers):null,s={...t,layers:o,globalState:this._globalState};for(let l in this.tileManagers)(!t.layers||r[l])&&i.push(eZe(this.tileManagers[l],this._layers,a,e,s,n,this.map.terrain?(u,c,d)=>this.map.terrain.getElevation(u,c,d):void 0));return this.placement&&i.push(tZe(this._layers,a,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(i)}querySourceFeatures(e,t){t?.filter&&this._validate(io.filter,"querySourceFeatures.filter",t.filter,null,t);let n=this.tileManagers[e];return n?nZe(n,t?{...t,globalState:this._globalState}:{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let n=this.light.getLight(),r=!1;for(let a in e)if(!Hl(e[a],n[a])){r=!0;break}if(!r)return;let i={now:Nn(),transition:St({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(i)}getProjection(){return this.stylesheet?.projection}setProjection(e){this._checkLoaded();let t=e??{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){return this.stylesheet?.sky}setSky(e,t={}){this._checkLoaded();let n=this.getSky(),r=!1;if(!e&&!n)return;if(e&&!n)r=!0;else if(!e&&n)r=!0;else for(let a in e)if(!Hl(e[a],n[a])){r=!0;break}if(!r)return;let i={now:Nn(),transition:St({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(i))}_setProjectionInternal(e){let t=jKe(e,this.map._camera?.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let n in this.tileManagers)this.tileManagers[n].reload()}_validate(e,t,n,r,i={}){return i.validate!==!1&&Rv(this,e,{key:t,style:this.serialize(),value:n,...r},i)}_remove(e=!0){this._frameRequest&&=(this._frameRequest.abort(),null),this._loadStyleRequest&&=(this._loadStyleRequest.abort(),null),this._spriteRequest&&=(this._spriteRequest.abort(),null),Ak().off(Mk,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let n=this.tileManagers[t];n.setEventedParent(null),n.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,n){let r=this.pauseablePlacement;return!r||this._symbolPlacementTriggered||this._placedProjectionTransition!==this.projection?.transitionState||r._showCollisionBoxes!==t||r.placement.collisionGroups.crossSourceCollisions!==n||r.placement.transform.renderWorldCopies!==e.renderWorldCopies||!jOe(r.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,n,r,i=!1){let a=!1,o=!1,s={};for(let c of this._order){let d=this._layers[c];if(d.type!=="symbol")continue;if(!s[d.source]){let h=this.tileManagers[d.source];s[d.source]=h.getRenderableIds(!0).map(p=>h.getTileByID(p)).sort((p,g)=>g.tileID.overscaledZ-p.tileID.overscaledZ||(p.tileID.isLessThan(g.tileID)?-1:1))}let f=this.crossTileSymbolIndex.addLayer(d,s[d.source],e.center.lng);a||=f}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),i||=this._layerOrderChanged||n===0;let l=a||this._placementInputsChanged(e,t,r),u=this.pauseablePlacement?.isDone()&&!this.placement.stillRecent(Nn(),e.zoom);if((i||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=this.projection?.transitionState,this.pauseablePlacement=new cKe(e,this.map.terrain,this._order,i,t,n,r,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Nn()),o=!0),a&&this.pauseablePlacement.placement.setStale()),o||a)for(let c of this._order){let d=this._layers[c];d.type==="symbol"&&this.placement.updateLayerOpacities(d,s[d.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Nn())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}async getImages(e,t){let n=await this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let r=this.tileManagers[t.source];return r&&r.setDependencies(t.tileID.key,t.type,t.icons),n}async getGlyphs(e,t){let n=await this.glyphManager.getGlyphs(t.stacks),r=this.tileManagers[t.source];return r&&r.setDependencies(t.tileID.key,t.type,[""]),n}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(io.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}async getDashes(e,t){let n={};for(let[r,i]of Object.entries(t.dashes))n[r]=this.lineAtlas.getDash(i.dasharray,i.round);return n}addSprite(e,t,n={},r){this._checkLoaded();let i=[{id:e,url:t}],a=[...Yb(this.stylesheet.sprite),...i];this._validate(io.sprite,"sprite",a,null,n)||(this.stylesheet.sprite=a,this._loadSprite(i,!0,r))}removeSprite(e){this._checkLoaded();let t=Yb(this.stylesheet.sprite);if(!t.find(r=>r.id===e)){this.fire(new Et(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let n=this.imageManager.removeSpriteImages(e);this._markImagesChanged(n),t.splice(t.findIndex(r=>
vendor: 11,423 bytes, lines 834-836
834r.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new xs("data"))}getSprite(){return Yb(this.stylesheet.sprite)}setSprite(e,t={},n){this._checkLoaded(),!(e&&this._validate(io.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,n):(this._unloadSprite(),n&&n(null)))}destroy(){this._frameRequest&&=(this._frameRequest.abort(),null),this._loadStyleRequest&&=(this._loadStyleRequest.abort(),null),this._spriteRequest&&=(this._spriteRequest.abort(),null);for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}};const HKe=zr([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);var qKe=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,n,r,i,a,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==r.length;for(let c=0;!u&&c<r.length;c++)this.boundPaintVertexBuffers[c]!==r[c]&&(u=!0);!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||u||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s||this.boundDynamicVertexBuffer3!==l?this.freshBind(t,n,r,i,a,o,s,l):e.bindVertexArray.set(this.vao)}freshBind(e,t,n,r,i,a,o,s){let l=e.numAttributes,u=this.context,c=u.gl;this.vao&&this.destroy(),this.vao=u.createVertexArray(),u.bindVertexArray.set(this.vao),this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o,this.boundDynamicVertexBuffer3=s,t.enableAttributes(c,e);for(let d of n)d.enableAttributes(c,e);a&&a.enableAttributes(c,e),o&&o.enableAttributes(c,e),s&&s.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,i);for(let d of n)d.bind(),d.setVertexAttribPointers(c,e,i);a&&(a.bind(),a.setVertexAttribPointers(c,e,i)),r&&r.bind(),o&&(o.bind(),o.setVertexAttribPointers(c,e,i)),s&&(s.bind(),s.setVertexAttribPointers(c,e,i)),u.currentNumAttributes=l}destroy(){this.vao&&=(this.context.deleteVertexArray(this.vao),null)}};const WKe=(e,t)=>({u_depth:new Mt(e,t.u_depth),u_terrain:new Mt(e,t.u_terrain)}),GKe=(e,t)=>({u_texture:new Mt(e,t.u_texture),u_ele_delta:new ht(e,t.u_ele_delta),u_fog_matrix:new _l(e,t.u_fog_matrix),u_fog_color:new rf(e,t.u_fog_color),u_fog_ground_blend:new ht(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new ht(e,t.u_fog_ground_blend_opacity),u_horizon_color:new rf(e,t.u_horizon_color),u_horizon_fog_blend:new ht(e,t.u_horizon_fog_blend),u_is_globe_mode:new ht(e,t.u_is_globe_mode)}),ZKe=(e,t)=>({u_ele_delta:new ht(e,t.u_ele_delta)}),KKe=(e,t,n,r,i)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:n?n.properties.get("fog-color"):Kt.white,u_fog_ground_blend:n?n.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:i?0:n?n.calculateFogBlendOpacity(r):0,u_horizon_color:n?n.properties.get("horizon-color"):Kt.white,u_horizon_fog_blend:n?n.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!i}),YKe=e=>({u_ele_delta:e}),vw={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};function XKe(e,t){for(let[n,r]of Object.entries(vw)){let i=e.getUniformBlockIndex(t,n);i!==e.INVALID_INDEX&&e.uniformBlockBinding(t,i,r)}}const JKe={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};function cD(e){let t={},n=0;for(let{name:r,type:i}of e){let[a,o]=JKe[i];n=Math.ceil(n/o)*o,t[r]=n,n+=a}return{offsets:t,contentWords:n,sizeWords:Math.ceil(n/4)*4}}var dD=class{constructor(e,t,n){this.context=e,this.binding=t,this.contentWords=n.contentWords;let r=e.gl;this.buffer=r.createBuffer(),r.bindBuffer(r.UNIFORM_BUFFER,this.buffer),r.bufferData(r.UNIFORM_BUFFER,n.sizeWords*4,r.DYNAMIC_DRAW),this.uploaded=new Float32Array(n.sizeWords),this.pending=new Float32Array(n.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let n=this.pendingWords,r=this.uploadedWords;for(let i=0;i<this.contentWords;i++)if(n[i]!==r[i]){t=!0;break}}if(!t){this.bind();return}e.bindBufferBase(e.UNIFORM_BUFFER,this.binding,this.buffer),this.context.boundUniformBuffers[this.binding]=this.buffer,e.bufferData(e.UNIFORM_BUFFER,this.pending,e.DYNAMIC_DRAW),this.uploaded.set(this.pending),this.hasData=!0}bind(){let e=this.context.boundUniformBuffers;if(e[this.binding]===this.buffer)return;let t=this.context.gl;t.bindBufferBase(t.UNIFORM_BUFFER,this.binding,this.buffer),e[this.binding]=this.buffer}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}};const $ne=cD([{name:"u_projection_matrix",type:"mat4"},{name:"u_projection_fallback_matrix",type:"mat4"},{name:"u_projection_tile_mercator_coords",type:"vec4"},{name:"u_projection_clipping_plane",type:"vec4"},{name:"u_projection_transition",type:"float"},{name:"u_projection_clip_antimeridian",type:"int"}]),b0=$ne.offsets;function Lne(e){return new dD(e,vw.ProjectionUBO,$ne)}function BV(e,t){let n=e.pending;n.set(t.mainMatrix,b0.u_projection_matrix),n.set(t.fallbackMatrix,b0.u_projection_fallback_matrix),n.set(t.tileMercatorCoords,b0.u_projection_tile_mercator_coords),n.set(t.clippingPlane,b0.u_projection_clipping_plane),n[b0.u_projection_transition]=t.projectionTransition,e.pendingWords[b0.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function QKe(e,t){if(!t){e.projectionUniformBuffer.bind();return}let n=t.uniformBufferKey;if(n===void 0){BV(e.projectionUniformBuffer,t);return}let r=e.keyedProjectionUniformBuffers.get(n);if(r){r.bind();return}let i=e.freeProjectionUniformBuffers.pop()??Lne(e);e.keyedProjectionUniformBuffers.set(n,i),BV(i,t)}function eYe(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function tYe(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}const Rne=cD([{name:"u_terrain_matrix",type:"mat4"},{name:"u_terrain_unpack",type:"vec4"},{name:"u_terrain_dim",type:"float"},{name:"u_terrain_exaggeration",type:"float"}]),ib=Rne.offsets;function nYe(e){return new dD(e,vw.TerrainUBO,Rne)}function rYe(e,t){let n=e.pending;n.set(t.u_terrain_matrix,ib.u_terrain_matrix),n.set(t.u_terrain_unpack,ib.u_terrain_unpack),n[ib.u_terrain_dim]=t.u_terrain_dim,n[ib.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function B9(e){let t=[];for(let n of e){if(n===null)continue;let r=n.split(" ");t.push(r.pop())}return t}function iYe(e,t){let n=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),r=new Set,i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a<i;a++){let o=e.getActiveAttrib(t,a);o&&n.has(o.type)&&r.add(o.name)}return r}var aYe=class{constructor(e,t,n,r,i,a,o,s,l=[]){let u=e.gl;this.program=u.createProgram();let c=B9(t.staticAttributes),d=n?n.getBinderAttributes():[],f=c.concat(d),h=Xl.prelude.staticUniforms?B9(Xl.prelude.staticUniforms):[],p=t.staticUniforms?B9(t.staticUniforms):[],g=n?n.getBinderUniforms():[],v=h.concat(p).concat(g),b=[];for(let P of v)b.includes(P)||b.push(P);let x=n?n.defines():[];x.unshift("#version 300 es"),i&&x.push("#define OVERDRAW_INSPECTOR;"),a&&x.push("#define TERRAIN3D;"),s&&x.push(s),l&&x.push(...l);let _=x.concat(Xl.prelude.fragmentSource,o.fragmentSource,t.fragmentSource).join(` 835`),w=x.concat(Xl.prelude.vertexSource,o.vertexSource,t.vertexSource).join(` 836`),C=u.createShader(u.FRAGMENT_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(C,_),u.compileShader(C),u.attachShader(this.program,C);let T=u.createShader(u.VERTEX_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(T,w),u.compileShader(T),u.attachShader(this.program,T),this.attributes={};let k={};if(this.numAttributes=f.length,u.linkProgram(this.program),!u.getProgramParameter(this.program,u.LINK_STATUS)){if(u.isContextLost()){this.failedToCreate=!0;return}throw u.getShaderParameter(C,u.COMPILE_STATUS)?u.getShaderParameter(T,u.COMPILE_STATUS)?Error(`Program failed to link: ${u.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${u.getShaderInfoLog(T)}`):Error(`Could not compile fragment shader: ${u.getShaderInfoLog(C)}`)}XKe(u,this.program);let A=iYe(u,this.program);for(let P of f){if(!P)continue;let D=u.getAttribLocation(this.program,P);D>=0&&(this.attributes[P]={location:D,isInteger:A.has(P)})}u.deleteShader(T),u.deleteShader(C);for(let P of b)if(P&&!k[P]){let D=u.getUniformLocation(this.program,P);D&&(k[P]=D)}this.fixedUniforms=r(e,k),this.terrainUniforms=WKe(e,k),this.binderUniforms=n?n.getUniforms(e,k):[]}draw(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g,v,b,x){let _=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(a),s){e.activeTexture.set(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,s.depthTexture),e.activeTexture.set(_.TEXTURE3),_.bindTexture(_.TEXTURE_2D,s.texture);for(let C in this.terrainUniforms)this.terrainUniforms[C].set(s[C]);rYe(e.terrainUniformBuffer,s)}if(QKe(e,l),o)for(let C in this.fixedUniforms)this.fixedUniforms[C].set(o[C]);g&&g.setUniforms(e,this.binderUniforms,h,{zoom:p});let w=0;switch(t){case _.LINES:w=2;break;case _.TRIANGLES:w=3;break;case _.LINE_STRIP:w=1}for(let C of f.get())C.vaos||={},C.vaos[u]||=new qKe,C.vaos[u].bind(e,this,c,g?g.getPaintVertexBuffers():[],d,C.vertexOffset,v,b,x),_.drawElements(t,C.primitiveLength*w,_.UNSIGNED_SHORT,C.primitiveOffset*w*2)}};function One(e,t,n){let r=1/Jo(n,1,t.transform.tileZoom),i=2**n.tileID.overscaledZ,a=n.tileSize*2**t.transform.tileZoom/i,o=a*(n.tileID.canonical.x+n.tileID.wrap*i),s=a*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function oYe(e,t,n,r){let i=n.patternAtlas.getPattern(e.from.toString()),a=n.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=n.patternAtlas.getPixelSize(),l=2**r.tileID.overscaledZ,u=r.tileSize*2**n.transform.tileZoom/l,c=u*(r.tileID.canonical.x+r.tileID.wrap*l),d=u*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Jo(r,1,n.transform.tileZoom),u_pixel_coord_upper:[
vendor: 22,993 bytes, line 836
836c>>16,d>>16],u_pixel_coord_lower:[c&65535,d&65535]}}const sYe=(e,t)=>({u_lightpos:new za(e,t.u_lightpos),u_lightpos_globe:new za(e,t.u_lightpos_globe),u_lightintensity:new ht(e,t.u_lightintensity),u_lightcolor:new za(e,t.u_lightcolor),u_vertical_gradient:new ht(e,t.u_vertical_gradient),u_opacity:new ht(e,t.u_opacity),u_fill_translate:new tn(e,t.u_fill_translate)}),lYe=(e,t)=>({u_lightpos:new za(e,t.u_lightpos),u_lightpos_globe:new za(e,t.u_lightpos_globe),u_lightintensity:new ht(e,t.u_lightintensity),u_lightcolor:new za(e,t.u_lightcolor),u_vertical_gradient:new ht(e,t.u_vertical_gradient),u_height_factor:new ht(e,t.u_height_factor),u_opacity:new ht(e,t.u_opacity),u_fill_translate:new tn(e,t.u_fill_translate),u_image:new Mt(e,t.u_image),u_texsize:new tn(e,t.u_texsize),u_pixel_coord_upper:new tn(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new tn(e,t.u_pixel_coord_lower),u_scale:new za(e,t.u_scale),u_fade:new ht(e,t.u_fade)}),Bne=(e,t,n,r)=>{let i=e.style.light,a=i.getCartesianPosition(),o=aJ();i.properties.get("anchor")==="viewport"&&OOe(o,e.transform.bearingInRadians),GOe(a,a,o);let s=e.transform.transformLightDirection(a),l=i.properties.get("color");return{u_lightpos:a,u_lightpos_globe:s,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:n,u_fill_translate:r}},uYe=(e,t,n,r,i,a,o)=>St(Bne(e,t,n,r),One(a,e,o),{u_height_factor:-(2**i.overscaledZ)/o.tileSize/8}),cYe=(e,t)=>({u_fill_translate:new tn(e,t.u_fill_translate)}),dYe=(e,t)=>({u_image:new Mt(e,t.u_image),u_texsize:new tn(e,t.u_texsize),u_pixel_coord_upper:new tn(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new tn(e,t.u_pixel_coord_lower),u_scale:new za(e,t.u_scale),u_fade:new ht(e,t.u_fade),u_sdf_pattern:new Mt(e,t.u_sdf_pattern),u_fill_translate:new tn(e,t.u_fill_translate)}),fYe=(e,t)=>({u_fill_translate:new tn(e,t.u_fill_translate)}),hYe=(e,t)=>({u_image:new Mt(e,t.u_image),u_texsize:new tn(e,t.u_texsize),u_pixel_coord_upper:new tn(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new tn(e,t.u_pixel_coord_lower),u_scale:new za(e,t.u_scale),u_fade:new ht(e,t.u_fade),u_sdf_pattern:new Mt(e,t.u_sdf_pattern),u_fill_translate:new tn(e,t.u_fill_translate)}),Fne=(e,t,n,r,i)=>St(One(t,e,n),{u_fill_translate:r,u_sdf_pattern:+!!i}),pYe=e=>({u_fill_translate:e}),mYe=e=>({u_fill_translate:e}),gYe=(e,t,n,r,i)=>Fne(e,t,n,r,i),yYe=(e,t)=>({u_scale_with_map:new Mt(e,t.u_scale_with_map),u_pitch_with_map:new Mt(e,t.u_pitch_with_map),u_extrude_scale:new tn(e,t.u_extrude_scale),u_globe_extrude_scale:new ht(e,t.u_globe_extrude_scale),u_translate:new tn(e,t.u_translate)}),vYe=(e,t,n,r,i)=>{let a=e.transform,o,s,l=0;if(n.paint.get("circle-pitch-alignment")==="map"){let u=Jo(t,1,a.zoom);o=!0,s=[u,u],l=u/(He*2**t.tileID.overscaledZ)*2*Math.PI*i}else o=!1,s=a.pixelsToGLUnits;return{u_scale_with_map:+(n.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:r}},_Ye=(e,t)=>({u_color:new rf(e,t.u_color),u_overlay:new Mt(e,t.u_overlay),u_overlay_scale:new ht(e,t.u_overlay_scale)}),FV=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),bYe=(e,t)=>({u_extrude_scale:new ht(e,t.u_extrude_scale),u_intensity:new ht(e,t.u_intensity),u_globe_extrude_scale:new ht(e,t.u_globe_extrude_scale)}),xYe=(e,t)=>({u_matrix:new _l(e,t.u_matrix),u_image:new Mt(e,t.u_image),u_color_ramp:new Mt(e,t.u_color_ramp),u_opacity:new ht(e,t.u_opacity)}),zne=(e,t,n,r)=>{let i=Jo(e,1,t)/(He*2**e.tileID.overscaledZ)*2*Math.PI*r;return{u_extrude_scale:Jo(e,1,t),u_intensity:n,u_globe_extrude_scale:i}},Nne=(e,t,n,r)=>{let i=mf();return Nl(i,0,e.width,e.height,0,0,1),{u_matrix:i,u_image:n,u_color_ramp:r,u_opacity:t.paint.get("heatmap-opacity")}},wYe=(e,t)=>({u_image:new Mt(e,t.u_image),u_latrange:new tn(e,t.u_latrange),u_exaggeration:new ht(e,t.u_exaggeration),u_altitudes:new Gz(e,t.u_altitudes),u_azimuths:new Gz(e,t.u_azimuths),u_accent:new rf(e,t.u_accent),u_method:new Mt(e,t.u_method),u_shadows:new Wz(e,t.u_shadows),u_highlights:new Wz(e,t.u_highlights)}),SYe=(e,t)=>({u_matrix:new _l(e,t.u_matrix),u_image:new Mt(e,t.u_image),u_dimension:new tn(e,t.u_dimension),u_zoom:new ht(e,t.u_zoom),u_unpack:new O2(e,t.u_unpack)}),CYe=(e,t,n)=>{let r=n.paint.get("hillshade-accent-color"),i;switch(n.paint.get("hillshade-method")){case"basic":i=4;break;case"combined":i=1;break;case"igor":i=2;break;case"multidirectional":i=3;break;default:i=0}let a=n.getIlluminationProperties();for(let o=0;o<a.directionRadians.length;o++)n.paint.get("hillshade-illumination-anchor")==="viewport"&&(a.directionRadians[o]+=e.transform.bearingInRadians);return{u_image:0,u_latrange:kYe(e,t.tileID),u_exaggeration:n.paint.get("hillshade-exaggeration"),u_altitudes:a.altitudeRadians,u_azimuths:a.directionRadians,u_accent:r,u_method:i,u_highlights:a.highlightColor,u_shadows:a.shadowColor}},TYe=(e,t)=>{let n=t.stride,r=mf();return Nl(r,0,He,-He,0,0,1),ci(r,r,[0,-He,0]),{u_matrix:r,u_image:1,u_dimension:[n,n],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};function kYe(e,t){let n=2**t.canonical.z,r=t.canonical.y;return[new Fn(0,r/n).toLngLat().lat,new Fn(0,(r+1)/n).toLngLat().lat]}const EYe=(e,t)=>({u_image:new Mt(e,t.u_image),u_unpack:new O2(e,t.u_unpack),u_dimension:new tn(e,t.u_dimension),u_elevation_stops:new Mt(e,t.u_elevation_stops),u_color_stops:new Mt(e,t.u_color_stops),u_color_ramp_size:new Mt(e,t.u_color_ramp_size),u_opacity:new ht(e,t.u_opacity)}),MYe=(e,t,n=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:n,u_opacity:e.paint.get("color-relief-opacity")}),AYe=(e,t)=>({u_translation:new tn(e,t.u_translation),u_ratio:new ht(e,t.u_ratio)}),PYe=(e,t)=>({u_translation:new tn(e,t.u_translation),u_ratio:new ht(e,t.u_ratio),u_image:new Mt(e,t.u_image),u_image_height:new ht(e,t.u_image_height)}),DYe=(e,t)=>({u_translation:new tn(e,t.u_translation),u_texsize:new tn(e,t.u_texsize),u_ratio:new ht(e,t.u_ratio),u_image:new Mt(e,t.u_image),u_scale:new za(e,t.u_scale),u_fade:new ht(e,t.u_fade)}),IYe=(e,t)=>({u_translation:new tn(e,t.u_translation),u_ratio:new ht(e,t.u_ratio),u_image:new Mt(e,t.u_image),u_mix:new ht(e,t.u_mix),u_tileratio:new ht(e,t.u_tileratio),u_crossfade_from:new ht(e,t.u_crossfade_from),u_crossfade_to:new ht(e,t.u_crossfade_to),u_lineatlas_width:new ht(e,t.u_lineatlas_width),u_lineatlas_height:new ht(e,t.u_lineatlas_height)}),$Ye=(e,t)=>({u_translation:new tn(e,t.u_translation),u_ratio:new ht(e,t.u_ratio),u_image:new Mt(e,t.u_image),u_image_height:new ht(e,t.u_image_height),u_tileratio:new ht(e,t.u_tileratio),u_crossfade_from:new ht(e,t.u_crossfade_from),u_crossfade_to:new ht(e,t.u_crossfade_to),u_image_dash:new Mt(e,t.u_image_dash),u_mix:new ht(e,t.u_mix),u_lineatlas_width:new ht(e,t.u_lineatlas_width),u_lineatlas_height:new ht(e,t.u_lineatlas_height)}),_w=(e,t,n,r)=>{let i=e.transform;return{u_translation:Vne(e,t,n),u_ratio:r/Jo(t,1,i.zoom)}},LYe=(e,t,n,r,i)=>St(_w(e,t,n,r),{u_image:0,u_image_height:i}),RYe=(e,t,n,r,i)=>{let a=e.transform,o=fD(t,a);return{u_translation:Vne(e,t,n),u_texsize:t.imageAtlasTexture.size,u_ratio:r/Jo(t,1,a.zoom),u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t}},OYe=(e,t,n,r,i)=>{let a=e.transform,o=fD(t,a);return St(_w(e,t,n,r),{u_tileratio:o,u_crossfade_from:i.fromScale,u_crossfade_to:i.toScale,u_image:0,u_mix:i.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},BYe=(e,t,n,r,i,a)=>{let o=e.transform,s=fD(t,o);return St(_w(e,t,n,r),{u_image:0,u_image_height:a,u_tileratio:s,u_crossfade_from:i.fromScale,u_crossfade_to:i.toScale,u_image_dash:1,u_mix:i.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};function fD(e,t){return 1/Jo(e,1,t.tileZoom)}function Vne(e,t,n){return Qd(e.transform,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}const FYe=(e,t)=>({u_image:new Mt(e,t.u_image),u_opacity:new ht(e,t.u_opacity)}),zYe=(e,t)=>({u_image:t,u_opacity:e}),NYe=(e,t)=>({u_is_size_zoom_constant:new Mt(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Mt(e,t.u_is_size_feature_constant),u_size_t:new ht(e,t.u_size_t),u_size:new ht(e,t.u_size),u_rotate_symbol:new Mt(e,t.u_rotate_symbol),u_label_plane_matrix:new _l(e,t.u_label_plane_matrix),u_coord_matrix:new _l(e,t.u_coord_matrix),u_is_text:new Mt(e,t.u_is_text),u_pitch_with_map:new Mt(e,t.u_pitch_with_map),u_is_along_line:new Mt(e,t.u_is_along_line),u_is_variable_anchor:new Mt(e,t.u_is_variable_anchor),u_texsize:new tn(e,t.u_texsize),u_texture:new Mt(e,t.u_texture),u_translation:new tn(e,t.u_translation),u_pitched_scale:new ht(e,t.u_pitched_scale),u_is_offset:new Mt(e,t.u_is_offset),u_height_anchor_ground:new Mt(e,t.u_height_anchor_ground)}),VYe=(e,t)=>({u_is_size_zoom_constant:new Mt(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Mt(e,t.u_is_size_feature_constant),u_size_t:new ht(e,t.u_size_t),u_size:new ht(e,t.u_size),u_rotate_symbol:new Mt(e,t.u_rotate_symbol),u_label_plane_matrix:new _l(e,t.u_label_plane_matrix),u_coord_matrix:new _l(e,t.u_coord_matrix),u_is_text:new Mt(e,t.u_is_text),u_pitch_with_map:new Mt(e,t.u_pitch_with_map),u_is_along_line:new Mt(e,t.u_is_along_line),u_is_variable_anchor:new Mt(e,t.u_is_variable_anchor),u_texsize:new tn(e,t.u_texsize),u_texture:new Mt(e,t.u_texture),u_gamma_scale:new ht(e,t.u_gamma_scale),u_is_halo:new Mt(e,t.u_is_halo),u_is_plain:new Mt(e,t.u_is_plain),u_translation:new tn(e,t.u_translation),u_pitched_scale:new ht(e,t.u_pitched_scale),u_is_offset:new Mt(e,t.u_is_offset),u_height_anchor_ground:new Mt(e,t.u_height_anchor_ground)}),jYe=(e,t)=>({u_is_size_zoom_constant:new Mt(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Mt(e,t.u_is_size_feature_constant),u_size_t:new ht(e,t.u_size_t),u_size:new ht(e,t.u_size),u_rotate_symbol:new Mt(e,t.u_rotate_symbol),u_label_plane_matrix:new _l(e,t.u_label_plane_matrix),u_coord_matrix:new _l(e,t.u_coord_matrix),u_is_text:new Mt(e,t.u_is_text),u_pitch_with_map:new Mt(e,t.u_pitch_with_map),u_is_along_line:new Mt(e,t.u_is_along_line),u_is_variable_anchor:new Mt(e,t.u_is_variable_anchor),u_texsize:new tn(e,t.u_texsize),u_texsize_icon:new tn(e,t.u_texsize_icon),u_texture:new Mt(e,t.u_texture),u_texture_icon:new Mt(e,t.u_texture_icon),u_gamma_scale:new ht(e,t.u_gamma_scale),u_is_halo:new Mt(e,t.u_is_halo),u_translation:new tn(e,t.u_translation),u_pitched_scale:new ht(e,t.u_pitched_scale),u_is_offset:new Mt(e,t.u_is_offset),u_height_anchor_ground:new Mt(e,t.u_height_anchor_ground)}),jne=(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+n,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+r,u_is_along_line:i,u_is_variable_anchor:a,u_texsize:d,u_texture:0,u_translation:u,u_pitched_scale:f,u_is_offset:h,u_height_anchor_ground:+p}),Une=(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p,g)=>{let v=o.transform;return St(jne(e,t,n,r,i,a,o,s,l,u,c,d,h,p,g),{u_gamma_scale:r?Math.cos(v.pitch*Math.PI/180)*v.cameraToCenterDistance:1,u_is_halo:+!!f,u_is_plain:1})},UYe=(e,t,n,r,i,a,o,s,l,u,c,d,f,h,p)=>St(Une(e,t,n,r,i,a,o,s,l,u,!0,c,!0,f,h,p),{u_texsize_icon:d,u_texture_icon:1}),HYe=(e,t)=>({u_opacity:new ht(e,t.u_opacity),u_color:new rf(e,t.u_color)}),qYe=(e,t)=>({u_opacity:new ht(e,t.u_opacity),u_image:new Mt(e,t.u_image),u_pattern_tl_a:new tn(e,t.u_pattern_tl_a),u_pattern_br_a:new tn(e,t.u_pattern_br_a),u_pattern_tl_b:new tn(e,t.u_pattern_tl_b),u_pattern_br_b:new tn(e,t.u_pattern_br_b),u_texsize:new tn(e,t.u_texsize),u_mix:new ht(e,t.u_mix),u_pattern_size_a:new tn(e,t.u_pattern_size_a),u_pattern_size_b:new tn(e,t.u_pattern_size_b),u_scale_a:new ht(e,t.u_scale_a),u_scale_b:new ht(e,t.u_scale_b),u_pixel_coord_upper:new tn(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new tn(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new ht(e,t.u_tile_units_to_pixels)}),WYe=(e,t)=>({u_opacity:e,u_color:t}),GYe=(e,t,n,r,i)=>St(oYe(n,i,t,r),{u_opacity:e}),ZYe=(e,t)=>({u_sun_pos:new za(e,t.u_sun_pos),u_atmosphere_blend:new ht(e,t.u_atmosphere_blend),u_globe_position:new za(e,t.u_globe_position),u_globe_radius:new ht(e,t.u_globe_radius),u_inv_proj_matrix:new _l(e,t.u_inv_proj_matrix)}),KYe=(e,t,n,r,i)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:n,u_globe_radius:r,u_inv_proj_matrix:i}),YYe=(e,t)=>({u_sky_color:new rf(e,t.u_sky_color),u_horizon_color:new rf(e,t.u_horizon_color),u_horizon:new tn(e,t.u_horizon),u_horizon_normal:new tn(e,t.u_horizon_normal),u_sky_horizon_blend:new ht(e,t.u_sky_horizon_blend),u_sky_blend:new ht(e,t.u_sky_blend),u_inv_proj_matrix:new _l(e,t.u_inv_proj_matrix),u_globe_position:new za(e,t.u_globe_position),u_globe_radius:new ht(e,t.u_globe_radius),u_atmosphere_blend:new ht(e,t.u_atmosphere_blend)}),XYe=(e,t,n)=>{let r=Math.cos(t.rollInRadians),i=Math.sin(t.rollInRadians),a=zy(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=kne(t),l=Zm(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-a*i)*n,(t.height/2+a*r)*n],u_horizon_normal:[-i,r],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*n,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*Ene(cl(s)-l,l)}},ab=(e,t)=>({}),JYe={fillExtrusion:sYe,fillExtrusionPattern:lYe,fill:cYe,fillPattern:dYe,fillOutline:fYe,fillOutlinePattern:hYe,circle:yYe,collisionBox:ab,collisionCircle:ab,debug:_Ye,depth:ab,clippingMask:ab,heatmap:bYe,heatmapTexture:xYe,hillshade:wYe,hillshadePrepare:SYe,colorRelief:EYe,line:AYe,lineGradient:PYe,linePattern:DYe,lineSDF:IYe,lineGradientSDF:$Ye,layerOpacity:FYe,raster:hZe,symbolIcon:NYe,symbolSDF:VYe,symbolTextAndIcon:jYe,background:HYe,backgroundPattern:qYe,terrain:GKe,terrainDepth:ZKe,atmosphere:ZYe,sky:YYe};var QYe=class{constructor(e,t,n){this.context=e;let r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=!!n,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}};const zV={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};var eXe=class{constructor(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;let i=e.gl;this.buffer=i.createBuffer(),e.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n of this.attributes){let r=t.attributes[n.name];r!==void 0&&e.enableVertexAttribArray(r.location)}}setVertexAttribPointers(e,t,n){for(let r of this.attributes){let i=t.attributes[r.name];if(i!==void 0){let a=r.offset+this.itemSize*(n||0);i.isInteger?e.vertexAttribIPointer(i.location,r.components,e[zV[r.type]],this.itemSize,a):e.vertexAttribPointer(i.location,r.components,e[zV[r.type]],!1,this.itemSize,a)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Xn=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},tXe=class extends Xn{getDefault(){return Kt.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},nXe=class extends Xn{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},rXe=class extends Xn{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},iXe=class extends Xn{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},aXe=class extends Xn{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},oXe=class extends Xn{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},sXe=class extends Xn{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},lXe=class extends Xn{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},uXe=class extends Xn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},cXe=class extends Xn{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},dXe=class extends Xn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},fXe=class extends Xn{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},hXe=class extends Xn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},pXe=class extends Xn{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},mXe=class extends Xn{getDefault(){return Kt.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},gXe=class extends Xn{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},yXe=class extends Xn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},vXe=class extends Xn{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},_Xe=class extends Xn{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},bXe=class extends Xn{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},xXe=class extends Xn{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},wXe=class extends Xn{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},SXe=class extends Xn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},CXe=class extends Xn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},TXe=class extends Xn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},kXe=class extends Xn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},EXe=class extends Xn{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},MXe=class extends Xn{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},AXe=class extends Xn{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},PXe=class extends Xn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},DXe=class extends Xn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},hD=class extends Xn{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},IXe=class extends hD{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},$Xe=class extends hD{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},LXe=class extends hD{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},RXe=class{constructor(e,t,n,r,i){this.context=e,this.width=t,this.height=n;let a=e.gl,o=this.framebuffer=a.createFramebuffer();if(this.colorAttachment=new IXe(e,o),r)this.depthAttachment=i?new LXe(e,o):new $Xe(e,o);else if(i)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let n=this.depthAttachment.get();n&&e.deleteRenderbuffer(n)}e.deleteFramebuffer(this.framebuffer)}};const Hne=cD([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"}
vendor: 7,722 bytes, line 836
836,{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),Po=Hne.offsets;function OXe(e){return new dD(e,vw.FrameUBO,Hne)}function BXe(e,t){let n=e.pending,{transform:r}=t,i=t.context.gl;n[Po.u_units_to_pixels]=1/r.pixelsToGLUnits[0],n[Po.u_units_to_pixels+1]=1/r.pixelsToGLUnits[1],n[Po.u_world_size]=i.drawingBufferWidth,n[Po.u_world_size+1]=i.drawingBufferHeight,n[Po.u_camera_to_center_distance]=r.cameraToCenterDistance,n[Po.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,n[Po.u_aspect_ratio]=r.width/r.height,n[Po.u_device_pixel_ratio]=t.pixelRatio,n[Po.u_viewport_size]=r.width,n[Po.u_viewport_size+1]=r.height,n[Po.u_pixel_extrude_scale]=1/r.width,n[Po.u_pixel_extrude_scale+1]=1/r.height,n[Po.u_pitch]=r.pitch/360*2*Math.PI,e.upload()}var qr=class{constructor(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n}};qr.Replace=[1,0],qr.disabled=new qr(qr.Replace,Kt.transparent,[!1,!1,!1,!1]),qr.unblended=new qr(qr.Replace,Kt.transparent,[!0,!0,!0,!0]),qr.alphaBlended=new qr([1,771],Kt.transparent,[!0,!0,!0,!0]);var FXe=class{constructor(e){this.gl=e,this.clearColor=new tXe(this),this.clearDepth=new nXe(this),this.clearStencil=new rXe(this),this.colorMask=new iXe(this),this.depthMask=new aXe(this),this.stencilMask=new oXe(this),this.stencilFunc=new sXe(this),this.stencilOp=new lXe(this),this.stencilTest=new uXe(this),this.depthRange=new cXe(this),this.depthTest=new dXe(this),this.depthFunc=new fXe(this),this.blend=new hXe(this),this.blendFunc=new pXe(this),this.blendColor=new mXe(this),this.blendEquation=new gXe(this),this.cullFace=new yXe(this),this.cullFaceSide=new vXe(this),this.frontFace=new _Xe(this),this.program=new bXe(this),this.activeTexture=new xXe(this),this.viewport=new wXe(this),this.bindFramebuffer=new SXe(this),this.bindRenderbuffer=new CXe(this),this.bindTexture=new TXe(this),this.bindVertexBuffer=new kXe(this),this.bindElementBuffer=new EXe(this),this.bindVertexArray=new MXe(this),this.pixelStoreUnpack=new AXe(this),this.pixelStoreUnpackPremultiplyAlpha=new PXe(this),this.pixelStoreUnpackFlipY=new DXe(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=Lne(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=nYe(this),this.frameUniformBuffer=OXe(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new QYe(this,e,t)}createVertexBuffer(e,t,n){return new eXe(this,e,t,n)}createRenderbuffer(e,t,n){let r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),i}createFramebuffer(e,t,n,r){return new RXe(this,e,t,n,r)}clear({color:e,depth:t,stencil:n}){let r=this.gl,i=0;e&&(i|=r.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(i|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),n!==void 0&&(i|=r.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),r.clear(i)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){Hl(e.blendFunction,qr.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},dn=class{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}};dn.ReadOnly=!1,dn.ReadWrite=!0,dn.disabled=new dn(519,dn.ReadOnly,[0,1]);const F9=7680;var Bn=class{constructor(e,t,n,r,i,a){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=i,this.pass=a}};Bn.disabled=new Bn({func:519,mask:0},0,0,F9,F9,F9);const NV=1029,z9=2305;var Ln=class{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}};Ln.disabled=new Ln(!1,NV,z9),Ln.backCCW=new Ln(!0,NV,z9),Ln.frontCCW=new Ln(!0,1028,z9);function zXe(e,t,n){let r=t?.transitionState??0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:n,projectionTransition:r,isRenderingGlobe:r>0}}function ha(e,t,n={}){let r=e.transform.getProjectionData({overscaledTileID:t,aligned:n.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:n.applyTerrainMatrix??!0});return e.isRenderingToTexture||(r.uniformBufferKey=n.aligned?`${t.key}/aligned`:t.key),r}function ja(e,t){return e.isRenderingToTexture?null:e.terrain?.getTerrainData(t)??null}let ob;function VV(e,t,n,r,i,a){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],c=0,d=0;for(let b of r){let x=t.getTile(b).getBucket(n);if(!x)continue;let _=i?x.textCollisionBox:x.iconCollisionBox,w=x.collisionCircleArray;w.length>
vendor: 18,347 bytes, line 836
8360&&(u.push({circleArray:w,circleOffset:d,coord:b}),c+=w.length/4,d=c),_&&l.draw(o,s.LINES,dn.disabled,Bn.disabled,e.colorModeForRenderPass(),Ln.disabled,null,ja(a,b),ha(a,b),n.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}if(!i||!u.length)return;let f=e.useProgram("collisionCircle"),h=new Zze;h.resize(c*4),h._trim();let p=0;for(let b of u)for(let x=0;x<b.circleArray.length/4;x++){let _=x*4,w=b.circleArray[_+0],C=b.circleArray[_+1],T=b.circleArray[_+2],k=b.circleArray[_+3];h.emplace(p++,w,C,T,k,0),h.emplace(p++,w,C,T,k,1),h.emplace(p++,w,C,T,k,2),h.emplace(p++,w,C,T,k,3)}(!ob||ob.length<c*2)&&(ob=NXe(c));let g=o.createIndexBuffer(ob,!0),v=o.createVertexBuffer(h,pje.members,!0);for(let b of u)f.draw(o,s.TRIANGLES,dn.disabled,Bn.disabled,e.colorModeForRenderPass(),Ln.disabled,null,ja(a,b.coord),null,n.id,v,g,$r.simpleSegment(0,b.circleOffset*2,b.circleArray.length,b.circleArray.length/2),null,e.transform.zoom,null,null,null);v.destroy(),g.destroy()}function NXe(e){let t=e*2,n=new Yze;n.resize(t),n._trim();for(let r=0;r<t;r++){let i=r*6;n.uint16[i+0]=r*4+0,n.uint16[i+1]=r*4+1,n.uint16[i+2]=r*4+2,n.uint16[i+3]=r*4+2,n.uint16[i+4]=r*4+3,n.uint16[i+5]=r*4+0}return n}const VXe=vl(new Float32Array(16));function jXe(e,t,n,r,i,a){if(a.currentPass!=="translucent")return;let o=Bn.disabled,s=e.colorModeForRenderPass();(n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&HXe(r,e,n,t,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),i),n.paint.get("icon-opacity").constantOr(1)!==0&&jV(e,t,n,r,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment").constantOr("viewport"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),o,s,a),n.paint.get("text-opacity").constantOr(1)!==0&&jV(e,t,n,r,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),o,s,a),t.map.showCollisionBoxes&&(VV(e,t,n,r,!0,a),VV(e,t,n,r,!1,a))}function UXe(e,t,n,r,i,a){let{horizontalAlign:o,verticalAlign:s}=hw(e),l=-(o-.5)*t,u=-(s-.5)*n;return new we((l/i+r[0])*a,(u/i+r[1])*a)}function HXe(e,t,n,r,i,a,o,s,l){let u=t.transform,c=t.style.map.terrain,d=i==="map",f=a==="map";for(let h of e){let p=r.getTile(h),g=p.getBucket(n);if(!g?.text?.segments.get().length)continue;let v=g.textSizeData,b=pw(v,u.zoom),x=Jo(p,1,t.transform.zoom),_=iD(d,t.transform,x),w=n.layout.get("icon-text-fit")!=="none"&&g.hasIconData();if(b){let C=2**(u.zoom-p.tileID.overscaledZ),T=c?(k,A)=>c.getElevation(h,k,A):void 0;WXe(g,d,f,l,u,_,C,b,w,Qd(u,p,o,s),h.toUnwrapped(),T,n.layout.get("symbol-height-anchor")==="ground")}}}function qXe(e,t,n,r,i,a){let o=t.tileAnchorPoint.add(new we(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=r.mult(a);n||(s=s.rotate(-i));let l=o.add(s);return oD(l.x,l.y,t.pitchedLabelPlaneMatrix,np(t,l.x,l.y)).point}if(n){let s=rp(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(r.rotate(l))}return e.add(r)}function WXe(e,t,n,r,i,a,o,s,l,u,c,d,f){let h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,g=e.icon.dynamicLayoutVertexArray,v={};p.clear();for(let b=0;b<h.length;b++){let x=h.get(b),_=e.allowVerticalPlacement&&!x.placedOrientation,w=!x.hidden&&x.crossTileID&&!_?r[x.crossTileID]:null;if(!w)vm(x.numGlyphs,p);else{let C=new we(x.anchorX,x.anchorY),T={getElevation:d,heightOffset:x.heightOffset,heightAnchorGround:f,width:i.width,height:i.height,pitchedLabelPlaneMatrix:a,pitchWithMap:n,transform:i,tileAnchorPoint:C,translation:u,unwrappedTileID:c},k=n?dne(C.x,C.y,T):rp(C.x,C.y,T),A=lne(i.cameraToCenterDistance,k.signedDistanceFromCamera),P=OP(e.textSizeData,s,x)*A/24;n&&(P*=e.tilePixelRatio/o);let{width:D,height:$,anchor:O,textOffset:z,textBoxScale:j}=w,B=UXe(O,D,$,z,j,P),R=i.getPitchedTextCorrection(C.x+u[0],C.y+u[1],c),J=qXe(k.point,T,t,B,-i.bearingInRadians,R),K=e.allowVerticalPlacement&&x.placedOrientation===2?Math.PI/2:0;for(let Z=0;Z<x.numGlyphs;Z++)E5(p,J,K);l&&x.associatedIconIndex>=0&&(v[x.associatedIconIndex]={shiftedAnchor:J,angle:K})}}if(l){g.clear();let b=e.icon.placedSymbolArray;for(let x=0;x<b.length;x++){let _=b.get(x);if(_.hidden)vm(_.numGlyphs,g);else{let w=v[x];if(!w)vm(_.numGlyphs,g);else for(let C=0;C<_.numGlyphs;C++)E5(g,w.shiftedAnchor,w.angle)}}e.icon.dynamicLayoutVertexBuffer.updateData(g)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function GXe(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function jV(e,t,n,r,i,a,o,s,l,u,c,d,f){let h=e.context,p=h.gl,g=e.transform,v=s==="map",b=l==="map",x=s!=="viewport"&&n.layout.get("symbol-placement")!=="point",_=v&&!b&&!x,w=!n.layout.get("symbol-sort-key").isConstant(),C=!1,T=e.getDepthModeForSublayer(0,dn.ReadOnly),k=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),A=[],P=g.getCircleRadiusCorrection();for(let O of r){let z=t.getTile(O),j=z.getBucket(n);if(!j)continue;let B=i?j.text:j.icon;if(!B?.segments.get().length||!B.hasVisibleVertices)continue;let R=B.programConfigurations.get(n.id),J=i||j.sdfIcons,K=i?j.textSizeData:j.iconSizeData,Z=b||g.pitch!==0,ne=e.useProgram(GXe(J,i,j),R),se=pw(K,g.zoom),ce=ja(f,O),Re,Ue=[0,0],$e,ke,Ve=null,nt;if(i){if($e=z.glyphAtlasTexture,ke=p.LINEAR,Re=z.glyphAtlasTexture.size,j.iconsInText){Ue=z.imageAtlasTexture.size,Ve=z.imageAtlasTexture;let Se=K.kind==="composite"||K.kind==="camera";nt=Z||e.options.rotating||e.options.zooming||Se?p.LINEAR:p.NEAREST}}else{let Se=n.layout.get("icon-size").constantOr(0)!==1||j.iconsNeedLinear;$e=z.imageAtlasTexture,ke=J||e.options.rotating||e.options.zooming||Se||Z?p.LINEAR:p.NEAREST,Re=z.imageAtlasTexture.size}let xe=Jo(z,1,e.transform.zoom),Pe=iD(v,e.transform,xe),je=ZZe(b,v,e.transform,xe),Fe=Qd(g,z,a,o),re=ha(f,O),le=k&&j.hasTextData(),ye=n.layout.get("icon-text-fit")!=="none"&&le&&j.hasIconData(),Me=n._unevaluatedLayout.hasValue("icon-offset"),ve=n.layout.get("symbol-height-anchor")==="ground";if(x){let Se=mf();HZe(Se,Pe);let he=e.style.map.terrain?(Te,ze)=>e.style.map.terrain.getElevation(O,Te,ze):void 0;YZe(j,e,i,Pe,Se,b,u,n.layout.get("text-rotation-alignment")==="map",O.toUnwrapped(),g.width,g.height,Fe,he)}let X=i&&k||ye,ee=b?Pe:e.transform.clipSpaceToPixelsMatrix,oe=x||X?VXe:ee,_e=J&&n.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(1)!==0,ge;ge=J?j.iconsInText?UYe(K.kind,se,_,b,x,X,e,oe,je,Fe,Re,Ue,P,Me,ve):Une(K.kind,se,_,b,x,X,e,oe,je,Fe,i,Re,_e,P,Me,ve):jne(K.kind,se,_,b,x,X,e,oe,je,Fe,i,Re,P,Me,ve);let Oe={program:ne,buffers:B,uniformValues:ge,projectionData:re,atlasTexture:$e,atlasTextureIcon:Ve,atlasInterpolation:ke,atlasInterpolationIcon:nt,isSDF:J,hasHalo:_e};if(w&&j.canOverlap){C=!0;let Se=B.segments.get();for(let he of Se)A.push({segments:new $r([he]),sortKey:he.sortKey,state:Oe,terrainData:ce})}else A.push({segments:B.segments,sortKey:0,state:Oe,terrainData:ce})}C&&A.sort((O,z)=>O.sortKey-z.sortKey);let D=n.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(null)??1/0,$=n.layout.get("text-letter-spacing").constantOr(0)*24<0||D>1;for(let O of A){let z=O.state;h.activeTexture.set(p.TEXTURE0),z.atlasTexture.bind(z.atlasInterpolation,p.CLAMP_TO_EDGE),z.atlasTextureIcon&&(h.activeTexture.set(p.TEXTURE1),z.atlasTextureIcon&&z.atlasTextureIcon.bind(z.atlasInterpolationIcon,p.CLAMP_TO_EDGE));let j=z.isSDF&&z.hasHalo;if(j){let B=z.uniformValues;B.u_is_halo=1,$&&(B.u_is_plain=0,UV(z.buffers,O.segments,n,e,z.program,T,c,d,B,z.projectionData,O.terrainData),B.u_is_halo=0,B.u_is_plain=1)}UV(z.buffers,O.segments,n,e,z.program,T,c,d,z.uniformValues,z.projectionData,O.terrainData),j&&!$&&(z.uniformValues.u_is_halo=0)}}function UV(e,t,n,r,i,a,o,s,l,u,c){let d=r.context,f=d.gl;i.draw(d,f.TRIANGLES,a,o,s,Ln.backCCW,l,c,u,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function ZXe(e,t,n,r,i){if(i.currentPass!=="translucent")return;let a=n.paint.get("circle-opacity"),o=n.paint.get("circle-stroke-width"),s=n.paint.get("circle-stroke-opacity"),l=!n.layout.get("circle-sort-key").isConstant();if(a.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,c=u.gl,d=e.transform,f=e.getDepthModeForSublayer(0,dn.ReadOnly),h=Bn.disabled,p=e.colorModeForRenderPass(),g=[],v=d.getCircleRadiusCorrection();for(let b of r){let x=t.getTile(b),_=x.getBucket(n);if(!_)continue;let w=n.paint.get("circle-translate"),C=n.paint.get("circle-translate-anchor"),T=Qd(d,x,w,C),k=_.programConfigurations.get(n.id),A=e.useProgram("circle",k),P=_.layoutVertexBuffer,D=_.indexBuffer,$=ja(i,b),O={programConfiguration:k,program:A,layoutVertexBuffer:P,indexBuffer:D,uniformValues:vYe(e,x,n,T,v),terrainData:$,projectionData:ha(i,b)};if(l){let z=_.segments.get();for(let j of z)g.push({segments:new $r([j]),sortKey:j.sortKey,state:O})}else g.push({segments:_.segments,sortKey:0,state:O})}l&&g.sort((b,x)=>b.sortKey-x.sortKey);for(let b of g){let{programConfiguration:x,program:_,layoutVertexBuffer:w,indexBuffer:C,uniformValues:T,terrainData:k,projectionData:A}=b.state,P=b.segments;_.draw(u,c.TRIANGLES,f,h,p,Ln.backCCW,T,k,A,n.id,w,C,P,n.paint,e.transform.zoom,x)}}function KXe(e,t,n,r,i){if(n.paint.get("heatmap-opacity")===0)return;let a=e.context;if(e.style.map.terrain){for(let o of r){let s=t.getTile(o);t.hasRenderableParent(o)||(i.currentPass==="offscreen"?JXe(e,s,n,o,i):i.currentPass==="translucent"&&QXe(e,n,o,i))}a.viewport.set([0,0,e.width,e.height])}else i.currentPass==="offscreen"?YXe(e,t,n,r,i):i.currentPass==="translucent"&&XXe(e,n)}function YXe(e,t,n,r,i){let a=e.context,o=a.gl,s=e.transform,l=Bn.disabled,u=new qr([o.ONE,o.ONE],Kt.transparent,[!0,!0,!0,!0]);eJe(a,e,n),a.clear({color:Kt.transparent});for(let c of r){if(t.hasRenderableParent(c))continue;let d=t.getTile(c),f=d.getBucket(n);if(!f)continue;let h=f.programConfigurations.get(n.id),p=e.useProgram("heatmap",h),g=ha(i,c,{applyTerrainMatrix:!1}),v=s.getCircleRadiusCorrection();p.draw(a,o.TRIANGLES,dn.disabled,l,u,Ln.backCCW,zne(d,s.zoom,n.paint.get("heatmap-intensity"),v),null,g,n.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,n.paint,s.zoom,h)}a.viewport.set([0,0,e.width,e.height])}function XXe(e,t){let n=e.context,r=n.gl;n.setColorMode(e.colorModeForRenderPass());let i=t.heatmapFbos.get(_5);i&&(n.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),n.activeTexture.set(r.TEXTURE1),Wne(n,t).bind(r.LINEAR,r.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(n,r.TRIANGLES,dn.disabled,Bn.disabled,e.colorModeForRenderPass(),Ln.disabled,Nne(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function JXe(e,t,n,r,i){let a=e.context,o=a.gl,s=Bn.disabled,l=new qr([o.ONE,o.ONE],Kt.transparent,[!0,!0,!0,!0]),u=t.getBucket(n);if(!u)return;let c=r.key,d=n.heatmapFbos.get(c);d||(d=qne(a,t.tileSize,t.tileSize),n.heatmapFbos.set(c,d)),a.bindFramebuffer.set(d.framebuffer),a.viewport.set([0,0,t.tileSize,t.tileSize]),a.clear({color:Kt.transparent});let f=u.programConfigurations.get(n.id),h=e.useProgram("heatmap",f,!i.isRenderingGlobe),p=ha(i,t.tileID),g=ja(i,r);h.draw(a,o.TRIANGLES,dn.disabled,s,l,Ln.disabled,zne(t,e.transform.zoom,n.paint.get("heatmap-intensity"),1),g,p,n.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,n.paint,e.transform.zoom,f)}function QXe(e,t,n,r){let i=e.context,a=i.gl,o=e.transform;i.setColorMode(e.colorModeForRenderPass());let s=Wne(i,t),l=n.key,u=t.heatmapFbos.get(l);if(!u)return;i.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,u.colorAttachment.get()),i.activeTexture.set(a.TEXTURE1),s.bind(a.LINEAR,a.CLAMP_TO_EDGE);let c=ha(r,n,{applyTerrainMatrix:r.isRenderingGlobe});e.useProgram("heatmapTexture").draw(i,a.TRIANGLES,dn.disabled,Bn.disabled,e.colorModeForRenderPass(),Ln.disabled,Nne(e,t,0,1),null,c,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function eJe(e,t,n){let r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let i=n.heatmapFbos.get(_5);i?(r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),e.bindFramebuffer.set(i.framebuffer)):(i=qne(e,t.width/4,t.height/4),n.heatmapFbos.set(_5,i))}function qne(e,t,n){let r=e.gl,i=r.createTexture();r.bindTexture(r.TEXTURE_2D,i),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texStorage2D(r.TEXTURE_2D,1,r.RGBA16F,t,n);let a=e.createFramebuffer(t,n,!1,!1);return a.colorAttachment.set(i),a}function Wne(e,t){return t.colorRampTexture||=new xi(e,t.colorRamp,e.gl.RGBA),t.colorRampTexture}function Gne(e,t,n){let r=e.context,i=r.bindFramebuffer.get(),a=r.viewport.get(),[,,o,s]=a;return tJe(e,o,s),r.viewport.set([0,0,o,s]),r.clear({color:Kt.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,n),{compositeTarget:i,compositeViewport:a}}function tJe(e,t,n){let r=e.context.gl;if(!e.layerOpacityFbo){let a=e.context.createFramebuffer(t,n,!0,!0),o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t,n,0,r.RGBA,r.UNSIGNED_BYTE,null),a.colorAttachment.set(o),a.depthAttachment.set(e.context.createRenderbuffer(r.DEPTH_STENCIL,t,n)),e.layerOpacityFbo=a,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===n){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let i=e.layerOpacityFbo;r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t,n,0,r.RGBA,r.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(i.depthAttachment.get()),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t,n),e.context.bindRenderbuffer.set(null),i.width=t,i.height=n,e.context.bindFramebuffer.set(i.framebuffer)}function Zne(e,t,n,r){let i=e.context,a=i.gl;i.bindFramebuffer.set(n.compositeTarget),i.viewport.set(n.compositeViewport),i.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(i,a.TRIANGLES,dn.disabled,Bn.disabled,e.colorModeForRenderPass(),Ln.disabled,zYe(t,0),null,null,r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom),e.currentStencilSource=void 0}function Kne(e,t,n,r,i,a,o,s){let l=256;if(i.stepInterpolant){let u=t.getSource().maxzoom,c=o.canonical.z===u?Math.ceil(1<<e.transform.maxZoom-o.canonical.z):1,d=a.maxLineLength/He*1024*c;l=qt(hBe(d),256,n.maxTextureSize)}return s.gradient=hee({expression:i.gradientExpression(),evaluationKey:"lineProgress",resolution:l,image:s.gradient||void 0,clips:a.lineClipsArray}),s.texture?s.texture.update(s.gradient):s.texture=new xi(n,s.gradient,r.RGBA),s.version=i.gradientVersion,s.texture}function nJe(e,t,n,r,i){e.activeTexture.set(t.TEXTURE0),n.imageAtlasTexture.bind(t.LINEAR,t.CLAMP_TO_EDGE),r.updatePaintBuffers(i)}function rJe(e,t,n,r,i,a){(i||e.lineAtlas.dirty)&&(t.activeTexture.set(n.TEXTURE0),e.lineAtlas.bind(t)),r.updatePaintBuffers(a)}function iJe(e,t,n,r,i,a,o){let s=a.gradients[i.id],l=s.texture;i.gradientVersion!==s.version&&(l=Kne(e,t,n,r,i,a,o,s)),n.activeTexture.set(r.TEXTURE0),l.bind(i.stepInterpolant?r.NEAREST:r.LINEAR,r.CLAMP_TO_EDGE)}function aJe(e,t,n,r,i,a,o,s,l){let u=a.gradients[i.id],c=u.texture;i.gradientVersion!==u.version&&(c=Kne(e,t,n,r,i,a,o,u)),n.activeTexture.set(r.TEXTURE0),c.bind(i.stepInterpolant?r.NEAREST:r.LINEAR,r.CLAMP_TO_EDGE),n.activeTexture.set(r.TEXTURE1),e.lineAtlas.bind(n),s.updatePaintBuffers(l)}function oJe(e,t,n,r,i){if(i.currentPass!=="translucent")return;let a=n.paint.get("line-opacity"),o=n.paint.get("line-width"),s=n.paint.get("line-layer-opacity");if(a.constantOr(1)!==0&&o.constantOr(1)!==0&&s!==0){if(s<1){let l=Gne(e,n,r);HV(e,t,n,r,i),Zne(e,s,l,n);return}HV(e,t,n,r,i)}}function HV(e,t,n,r,i){let a=e.getDepthModeForSublayer(0,dn.ReadOnly),o=e.colorModeForRenderPass(),s=n.paint.get("line-dasharray"),l=s.constantOr(1),u=n.paint.get("line-pattern"),c=u.constantOr(1),d=n.paint.get("line-gradient"),f=n.getCrossfadeParameters(),h;h=c?"linePattern":l&&d?"lineGradientSDF":l?"lineSDF":d?"lineGradient":"line";let p=e.context,g=p.gl,v=e.transform,b=!0;for(let x of r){let _=t.getTile(x);if(c&&!_.patternsLoaded())continue;let w=_.getBucket(n);if(!w)continue;let C=w.programConfigurations.get(n.id),T=e.context.program.get(),k=e.useProgram(h,C),A=b||k.program!==T,P=ja(i,x),D=u.constantOr(null),$=s?.constantOr(null);if(D&&_.imageAtlas){let R=_.imageAtlas,J=R.patternPositions[D.to.toString()],K=R.patternPositions[D.from.toString()];J&&K&&C.setConstantPatternPositions(J,K)}else if($){let R=n.layout.get("line-cap").constantOr(null)==="round",J=e.lineAtlas.getDash($.to,R),K=e.lineAtlas.getDash($.from,R);C.setConstantDashPositions(J,K)}let O=ha(i,x),z=v.getPixelScale(),j;c?(j=RYe(e,_,n,z,f),nJe(p,g,_,C,f)):l&&d?(j=BYe(e,_,n,z,f,w.lineClipsArray.length),aJe(e,t,p,g,n,w,x,C,f)):l?(j=OYe(e,_,n,z,f),rJe(e,p,g,C,A,f)):d?(j=LYe(e,_,n,z,w.lineClipsArray.length),iJe(e,t,p,g,n,w,x)):j=_w(e,_,n,z);let B=e.stencilModeForClipping(x);k.draw(p,g.TRIANGLES,a,B,o,Ln.disabled,j,P,O,n.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,n.paint,e.transform.zoom,C,w.layoutVertexBuffer2),b=!1}}function Yne(e,t,n,r,i){if(!n||!r?.imageAtlas)return;let a=r.imageAtlas.patternPositions,o=a[n.to.toString()],s=a[n.from.toString()];if(!o&&s&&(o=s),!s&&o&&(s=o),!o||!s){let l=i.getPaintProperty(t);o=a[l],s=a[l]}o&&s&&e.setConstantPatternPositions(o,s)}function sJe(e,t,n,r,i){let a=n.paint.get("fill-color"),o=n.paint.get("fill-opacity"),s=n.paint.get("fill-layer
836-opacity");if(o.constantOr(1)===0||s===0)return;if(s<1){if(i.currentPass!=="translucent")return;let c=Gne(e,n,r);qV(e,t,n,r,i),Zne(e,s,c,n);return}let l=n.paint.get("fill-pattern"),u=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&a.constantOr(Kt.transparent).a===1&&o.constantOr(0)===1;if(u&&i.currentPass==="opaque"){let c=e.colorModeForRenderPass();pD(e,t,n,r,e.getDepthModeForSublayer(1,dn.ReadWrite),c,!1,i);return}if(u&&i.currentPass==="translucent"){Xne(e,t,n,r,i);return}i.currentPass==="translucent"&&qV(e,t,n,r,i)}function qV(e,t,n,r,i){let a=e.colorModeForRenderPass();pD(e,t,n,r,e.getDepthModeForSublayer(1,dn.ReadOnly),a,!1,i),Xne(e,t,n,r,i)}function Xne(e,t,n,r,i){if(!n.paint.get("fill-antialias"))return;let a=e.colorModeForRenderPass();pD(e,t,n,r,e.getDepthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,dn.ReadOnly),a,!0,i)}function pD(e,t,n,r,i,a,o,s){let l=e.context.gl,u="fill-pattern",c=n.paint.get(u),d=c?.constantOr(1),f=n.getCrossfadeParameters(),h,p,g,v,b,x=e.transform,_=n.paint.get("fill-translate"),w=n.paint.get("fill-translate-anchor");o?(p=d&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",h=l.LINES):(p=d?"fillPattern":"fill",h=l.TRIANGLES);let C=c.constantOr(null);for(let T of r){let k=t.getTile(T);if(d&&!k.patternsLoaded())continue;let A=k.getBucket(n);if(!A)continue;let P=A.sdfPatterns[n.id]??!1,D=A.programConfigurations.get(n.id),$=e.useProgram(p,D),O=ja(s,T);d&&(e.context.activeTexture.set(l.TEXTURE0),k.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),D.updatePaintBuffers(f)),Yne(D,u,C,k,n);let z=ha(s,T),j=Qd(x,k,_,w);o?(v=A.indexBuffer2,b=A.segments2,g=p==="fillOutlinePattern"&&d?gYe(e,f,k,j,P):mYe(j)):(v=A.indexBuffer,b=A.segments,g=d?Fne(e,f,k,j,P):pYe(j));let B=e.stencilModeForClipping(T);$.draw(e.context,h,i,B,a,Ln.backCCW,g,O,z,n.id,A.layoutVertexBuffer,v,b,n.paint,e.transform.zoom,D)}}function lJe(e,t,n,r,i){let a=n.paint.get("fill-extrusion-opacity");if(a!==0&&i.currentPass==="translucent"){let o=new dn(e.context.gl.LEQUAL,dn.ReadWrite,i.depthRangeFor3D);if(a===1&&!n.paint.get("fill-extrusion-pattern").constantOr(1)){let s=e.colorModeForRenderPass();N9(e,t,n,r,o,Bn.disabled,s,i)}else N9(e,t,n,r,o,Bn.disabled,qr.disabled,i),N9(e,t,n,r,o,e.stencilModeFor3D(),e.colorModeForRenderPass(),i)}}function N9(e,t,n,r,i,a,o,s){let l=e.context,u=l.gl,c="fill-extrusion-pattern",d=n.paint.get(c),f=d.constantOr(1),h=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity"),g=d.constantOr(null),v=e.transform;for(let b of r){let x=t.getTile(b),_=x.getBucket(n);if(!_)continue;let w=ja(s,b),C=_.programConfigurations.get(n.id),T=e.useProgram(f?"fillExtrusionPattern":"fillExtrusion",C);f&&(e.context.activeTexture.set(u.TEXTURE0),x.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),C.updatePaintBuffers(h));let k=ha(s,b);Yne(C,c,g,x,n);let A=Qd(v,x,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),P=n.paint.get("fill-extrusion-vertical-gradient"),D=f?uYe(e,P,p,A,b,h,x):Bne(e,P,p,A);T.draw(l,l.gl.TRIANGLES,i,a,o,Ln.backCCW,D,w,k,n.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,n.paint,e.transform.zoom,C,e.style.map.terrain&&_.centroidVertexBuffer)}}function uJe(e,t,n,r,i){if(i.currentPass!=="offscreen"&&i.currentPass!=="translucent")return;let a=e.context,o=e.style.projection.useSubdivision,s=e.getDepthModeForSublayer(0,dn.ReadOnly),l=e.colorModeForRenderPass();if(i.currentPass==="offscreen")cJe(e,t,r,n,s,Bn.disabled,l),a.viewport.set([0,0,e.width,e.height]);else if(i.currentPass==="translucent")if(o){let[u,c,d]=e.stencilConfigForOverlapTwoPass(r);V9(e,t,n,d,u,s,l,!1,i),V9(e,t,n,d,c,s,l,!0,i)}else{let[u,c]=e.getStencilConfigForOverlapAndUpdateStencilID(r);V9(e,t,n,c,u,s,l,!1,i)}}function V9(e,t,n,r,i,a,o,s,l){let u=e.style.projection,c=e.context,d=c.gl,f=[`#define NUM_ILLUMINATION_SOURCES ${n.paint.get("hillshade-highlight-color").values.length}`],h=e.useProgram("hillshade",null,!1,f),p=!e.options.moving;for(let g of r){let v=t.getTile(g),b=v.fbo;if(!b)continue;let x=u.getMeshFromTileID(c,g.canonical,s,!0,"raster"),_=ja(l,g);c.activeTexture.set(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,b.colorAttachment.get());let w=ha(l,g,{aligned:p});h.draw(c,d.TRIANGLES,a,i[g.overscaledZ],o,Ln.backCCW,CYe(e,v,n),_,w,n.id,x.vertexBuffer,x.indexBuffer,x.segments)}}function cJe(e,t,n,r,i,a,o){let s=e.context,l=s.gl,u=r.paint.get("resampling")==="nearest"?l.NEAREST:l.LINEAR;for(let c of n){let d=t.getTile(c),f=d.dem;if(!f?.data||!d.needsHillshadePrepare)continue;let h=f.dim+2,p=f.stride,g=f.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),d.demTexture||=e.getTileTexture(p),d.demTexture){let b=d.demTexture;b.update(g,{premultiply:!1}),b.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else d.demTexture=new xi(s,g,l.RGBA,{premultiply:!1}),d.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);let v=d.fbo;if(!v){let b=new xi(s,{width:h,height:h,data:null},l.RGBA);b.bind(u,l.CLAMP_TO_EDGE),v=d.fbo=s.createFramebuffer(h,h,!0,!1),v.colorAttachment.set(b.texture)}s.bindFramebuffer.set(v.framebuffer),s.viewport.set([0,0,h,h]),e.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,i,a,o,Ln.disabled,TYe(d.tileID,f),null,null,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),d.needsHillshadePrepare=!1}}function dJe(e,t,n,r,i){if(i.currentPass!=="translucent"||!r.length)return;let a=e.style.projection.useSubdivision,o=e.getDepthModeForSublayer(0,dn.ReadOnly),s=e.colorModeForRenderPass();if(a){let[l,u,c]=e.stencilConfigForOverlapTwoPass(r);j9(e,t,n,c,l,o,s,!1,i),j9(e,t,n,c,u,o,s,!0,i)}else{let[l,u]=e.getStencilConfigForOverlapAndUpdateStencilID(r);j9(e,t,n,u,l,o,s,!1,i)}}let WV=0;function j9(e,t,n,r,i,a,o,s,l){let u=e.style.projection,c=e.context,d=c.gl,f=e.useProgram("colorRelief"),h=!e.options.moving,p=n.paint.get("resampling")==="nearest"?d.NEAREST:d.LINEAR,g=!0,v=0;for(let b of r){let x=t.getTile(b),_=x.dem;if(!_?.data)continue;if(g){WV||=d.getParameter(d.MAX_TEXTURE_SIZE);let A=WV,{elevationTexture:P,colorTexture:D}=n.getColorRampTextures(c,A,_.getUnpackVector());c.activeTexture.set(d.TEXTURE1),P.bind(d.NEAREST,d.CLAMP_TO_EDGE),c.activeTexture.set(d.TEXTURE4),D.bind(d.LINEAR,d.CLAMP_TO_EDGE),g=!1,v=P.size[0]}let w=_.stride;
vendor: 8,959 bytes, lines 836-838
836c.activeTexture.set(d.TEXTURE0),(!x.demTexture||x.needsColorReliefPrepare)&&(c.pixelStoreUnpackPremultiplyAlpha.set(!1),x.demTexture||=e.getTileTexture(w)??new xi(c,{width:w,height:w,data:null},d.RGBA),x.demTexture.update(_.getPixels(),{premultiply:!1}),x.needsColorReliefPrepare=!1),x.demTexture.bind(p,d.CLAMP_TO_EDGE);let C=u.getMeshFromTileID(c,b.canonical,s,!0,"raster"),T=ja(l,b),k=ha(l,b,{aligned:h});f.draw(c,d.TRIANGLES,a,i[b.overscaledZ],o,Ln.backCCW,MYe(n,x.dem,v),T,k,n.id,C.vertexBuffer,C.indexBuffer,C.segments)}}const U9=[new we(0,0),new we(He,0),new we(He,He),new we(0,He)];function fJe(e,t,n,r,i){if(i.currentPass!=="translucent"||n.paint.get("raster-opacity")===0||!r.length)return;let a=t.getSource(),o=e.style.projection.useSubdivision;if(a instanceof O1)sb(e,t,n,r,null,!1,!1,a.tileCoords,a.imageWarp,a.flippedWindingOrder,i,a.getMesh(e.context,o));else if(o){let[s,l,u]=e.stencilConfigForOverlapTwoPass(r);sb(e,t,n,u,s,!1,!0,U9,ym,!1,i),sb(e,t,n,u,l,!0,!0,U9,ym,!1,i)}else{let[s,l]=e.getStencilConfigForOverlapAndUpdateStencilID(r);sb(e,t,n,l,s,!1,!0,U9,ym,!1,i)}}function sb(e,t,n,r,i,a,o,s,l,u=!1,c,d=null){let f=r[r.length-1].overscaledZ,h=e.context,p=h.gl,g=e.useProgram("raster"),v=e.style.projection,b=e.colorModeForRenderPass(),x=!e.options.moving,_=n.paint.get("raster-opacity"),w=n.paint.get("resampling")==="nearest"||n.paint.get("raster-resampling")==="nearest"?p.NEAREST:p.LINEAR,C=n.paint.get("raster-fade-duration"),T=!!e.style.map.terrain;for(let k of r){let A=e.getDepthModeForSublayer(k.overscaledZ-f,_===1?dn.ReadWrite:dn.ReadOnly,p.LESS),P=t.getTile(k);h.activeTexture.set(p.TEXTURE0),P.texture.bind(w,p.CLAMP_TO_EDGE,p.LINEAR_MIPMAP_NEAREST),h.activeTexture.set(p.TEXTURE1);let{parentTile:D,parentScaleBy:$,parentTopLeft:O,fadeValues:z}=hJe(P,t,C,T);P.fadeOpacity=z.tileOpacity,D?(D.fadeOpacity=z.parentTileOpacity,D.texture.bind(w,p.CLAMP_TO_EDGE,p.LINEAR_MIPMAP_NEAREST)):P.texture.bind(w,p.CLAMP_TO_EDGE,p.LINEAR_MIPMAP_NEAREST),P.texture.useMipmap&&h.extTextureFilterAnisotropic&&e.transform.pitch>e.options.anisotropicFilterPitch&&p.texParameterf(p.TEXTURE_2D,h.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,h.extTextureFilterAnisotropicMax);let j=ja(c,k),B=ha(c,k,{aligned:x}),R=pZe(O,$,z.fadeMix,n,s,l),J=d??v.getMeshFromTileID(h,k.canonical,a,o,"raster"),K=i?i[k.overscaledZ]:Bn.disabled;g.draw(h,p.TRIANGLES,A,K,b,u?Ln.frontCCW:Ln.backCCW,R,j,B,n.id,J.vertexBuffer,J.indexBuffer,J.segments)}}function hJe(e,t,n,r){let i={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(n===0||r)return i;if(e.fadingParentID){let a=t.getLoadedTile(e.fadingParentID);if(!a)return i;let o=2**(a.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:a,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:pJe(e,a,n)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:mJe(e,n)}:i}function pJe(e,t,n){let r=Nn(),i=(r-e.timeAdded)/n,a=(r-t.timeAdded)/n,o=e.fadingDirection===1,s=qt(i,0,1),l=qt(1-a,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function mJe(e,t){let n=(Nn()-e.timeAdded)/t,r=qt(n,0,1);return{tileOpacity:r,fadeMix:{opacity:r,mix:0}}}function gJe(e,t,n,r,i){let a=n.paint.get("background-color"),o=n.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,c=e.transform,d=c.tileSize,f=n.paint.get("background-pattern");if(e.isPatternMissing(f))return;let h=!f&&a.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(i.currentPass!==h)return;let p=Bn.disabled,g=e.getDepthModeForSublayer(0,h==="opaque"?dn.ReadWrite:dn.ReadOnly),v=e.colorModeForRenderPass(),b=e.useProgram(f?"backgroundPattern":"background"),x=r||B1(c,{tileSize:d,terrain:e.style.map.terrain});f&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let _=n.getCrossfadeParameters();for(let w of x){let C=ha(i,w),T=f?GYe(o,e,f,{tileID:w,tileSize:d},_):WYe(o,a),k=ja(i,w),A=u.getMeshFromTileID(s,w.canonical,!1,!0,"raster");b.draw(s,l.TRIANGLES,g,p,v,Ln.backCCW,T,k,C,n.id,A.vertexBuffer,A.indexBuffer,A.segments)}}const yJe=new Kt(1,0,0,1),vJe=new Kt(0,1,0,1),_Je=new Kt(0,0,1,1),bJe=new Kt(1,0,1,1),xJe=new Kt(0,1,1,1);function wJe(e){let t=e.transform.padding;GV(e,e.transform.height-(t.top||0),3,yJe),GV(e,t.bottom||0,3,vJe),ZV(e,t.left||0,3,_Je),ZV(e,e.transform.width-(t.right||0),3,bJe);let n=e.transform.centerPoint;SJe(e,n.x,e.transform.height-n.y,xJe)}function SJe(e,t,n,r){B5(e,t-1,n-10,2,20,r),B5(e,t-10,n-1,20,2,r)}function GV(e,t,n,r){B5(e,0,t+n/2,e.transform.width,n,r)}function ZV(e,t,n,r){B5(e,t-n/2,0,n,e.transform.height,r)}function B5(e,t,n,r,i,a){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,n*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio),o.clear({color:a}),s.disable(s.SCISSOR_TEST)}function CJe(e,t,n,r){for(let i of n)TJe(e,t,i,r)}function TJe(e,t,n,r){let i=e.context,a=i.gl,o=e.useProgram("debug"),s=dn.disabled,l=Bn.disabled,u=e.colorModeForRenderPass(),c="$debug",d=ja(r,n);i.activeTexture.set(a.TEXTURE0);let f=t.getTileByID(n.key).latestRawTileData?.byteLength||0,h=Math.floor(f/1024),p=t.getTile(n).tileSize,g=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,v=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(v+=` => ${n.overscaledZ}`),kJe(e,`${v} ${h}kB`);let b=ha(r,n);o.draw(i,a.TRIANGLES,s,l,qr.alphaBlended,Ln.disabled,FV(Kt.transparent,g),null,b,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(i,a.LINE_STRIP,s,l,u,Ln.disabled,FV(Kt.red),d,b,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function kJe(e,t){e.initDebugOverlayCanvas();let n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}function EJe(e,t){let n=null,r=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),i=r.filter(s=>s.getSource().type==="vector"),a=r.filter(s=>s.getSource().type!=="vector"),o=s=>{(!n||n.getSource().maxzoom<s.getSource().maxzoom)&&(n=s)};for(let s of i)o(s);if(!n)for(let s of a)o(s);return n}function MJe(e,t,n,r){let{isRenderingGlobe:i}=r,a=e.context,o=n.implementation,s=e.style.projection,l=e.transform,u=l.getProjectionDataForCustomLayer(i),c={farZ:l.farZ,nearZ:l.nearZ,fov:l.fov*Math.PI/180,modelViewProjectionMatrix:l.modelViewProjectionMatrix,projectionMatrix:l.projectionMatrix,shaderData:{variantName:s.shaderVariantName,vertexShaderPrelude:`const float PI = 3.141592653589793; 837uniform mat4 u_projection_matrix; 838${s.shaderPreludeCode.vertexSource}`,define:s.shaderDefine},defaultProjectionData:u,getProjectionData:f=>l.getProjectionData({overscaledTileID:new Qi(f.tileID.canonical.z,f.tileID.wrap??0,f.tileID.canonical.z,f.tileID.canonical.x,f.tileID.canonical.y),aligned:f.aligned,applyGlobeMatrix:f.applyGlobeMatrix,applyTerrainMatrix:f.applyTerrainMatrix})},d=o.renderingMode?o.renderingMode:"2d";if(r.currentPass==="offscreen"){let f=o.prerender;f&&(e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),f.call(o,a.gl,c),a.setDirty(),e.setBaseState())}else if(r.currentPass==="translucent"){e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),a.setStencilMode(Bn.disabled);let f=d==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,dn.ReadOnly);a.setDepthMode(f),o.render(a.gl,c),a.setDirty(),e.setBaseState(),a.bindFramebuffer.set(null)}}function AJe(e,t){let n=e.context,r=n.gl,i=e.transform,a=qr.unblended,o=new dn(r.LEQUAL,dn.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");n.bindFramebuffer.set(t.getFramebuffer().framebuffer),n.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),n.clear({color:Kt.white,depth:1});for(let u of s){let c=t.getTerrainMesh(u.tileID),d=t.getTerrainData(u.tileID),f=i.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),h=YKe(t.getSkirtLength(i.zoom));l.draw(n,r.TRIANGLES,o,Bn.disabled,a,Ln.backCCW,h,d,f,"terrain",c.vertexBuffer,c.indexBuffer,c.segments)}n.bindFramebuffer.set(null),n.viewport.set([0,0,e.width,e.height])}function PJe(e,t,n,r){let{isRenderingGlobe:i}=r,a=e.context,o=a.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),c=e.useProgram("terrain");a.bindFramebuffer.set(null),a.viewport.set([0,0,e.width,e.height]);for(let d of n){let f=t.getTerrainMesh(d.tileID),h=e.renderToTexture.getTexture(d),p=t.getTerrainData(d.tileID);a.activeTexture.set(o.TEXTURE0),h.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let g=t.getSkirtLength(s.zoom),v=s.calculateFogMatrix(d.tileID.toUnwrapped()),b=KKe(g,v,e.
vendor: 16,136 bytes, line 838
838style.sky,s.pitch,i),x=ha(r,d.tileID,{applyTerrainMatrix:!1});c.draw(a,o.TRIANGLES,u,Bn.disabled,l,Ln.backCCW,b,p,x,"terrain",f.vertexBuffer,f.indexBuffer,f.segments)}}function Jne(e,t){if(!t.mesh){let n=new Id;n.emplaceBack(-1,-1),n.emplaceBack(1,-1),n.emplaceBack(1,1),n.emplaceBack(-1,1);let r=new mu;r.emplaceBack(0,1,2),r.emplaceBack(0,2,3),t.mesh=new Nv(e.createVertexBuffer(n,_h.members),e.createIndexBuffer(r),$r.simpleSegment(0,0,n.length,r.length))}return t.mesh}function DJe(e,t){let n=e.context,r=n.gl,i=XYe(t,e.transform,e.pixelRatio),a=new dn(r.LEQUAL,dn.ReadWrite,[0,1]),o=Bn.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=Jne(n,t);l.draw(n,r.TRIANGLES,a,o,s,Ln.disabled,i,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function IJe(e,t){let n=e.getCartesianPosition();qOe(n,n);let r=vl(new Float64Array(16));return e.properties.get("anchor")==="map"&&(Pd(r,r,t.rollInRadians),Bm(r,r,-t.pitchInRadians),Pd(r,r,t.bearingInRadians),Bm(r,r,t.center.lat*Math.PI/180),oJ(r,r,-t.center.lng*Math.PI/180)),WOe(n,n,r),n}function $Je(e,t,n){let r=e.context,i=r.gl,a=e.useProgram("atmosphere"),o=new dn(i.LEQUAL,dn.ReadOnly,[0,1]),s=e.transform,l=IJe(n,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=Zm(s.worldSize,s.center.lat),d=kne(s),f=Ene(cl(d)-c,c),h=t.properties.get("atmosphere-blend")*u.projectionTransition*f;if(h===0)return;let p=KYe(l,h,d,c,s.inverseProjectionMatrix),g=Jne(r,t);a.draw(r,i.TRIANGLES,o,Bn.disabled,qr.alphaBlended,Ln.disabled,p,null,null,"atmosphere",g.vertexBuffer,g.indexBuffer,g.segments)}const LJe={symbol:jXe,circle:ZXe,heatmap:KXe,line:oJe,fill:sJe,fillExtrusion:lJe,hillshade:uJe,colorRelief:dJe,raster:fJe,background:gJe,sky:DJe,atmosphere:$Je,custom:MJe,debug:CJe,debugPadding:wJe,terrainDepth:AJe};var Vh,RJe=(Vh=class{constructor(t,n){this.drawFunctions=LJe,this.context=new FXe(t),this.transform=n,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:vl(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=Dk.maxOverzooming+Dk.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new pne}resize(t,n,r){if(this.width=Math.round(t*r),this.height=Math.round(n*r),this.pixelRatio=r,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let i of this.style._order)this.style._layers[i].resize()}setup(){let t=this.context,n=new Id;n.emplaceBack(0,0),n.emplaceBack(He,0),n.emplaceBack(0,He),n.emplaceBack(He,He),this.tileExtentBuffer=t.createVertexBuffer(n,_h.members),this.tileExtentSegments=$r.simpleSegment(0,0,4,2);let r=new Id;r.emplaceBack(0,0),r.emplaceBack(He,0),r.emplaceBack(0,He),r.emplaceBack(He,He),this.debugBuffer=t.createVertexBuffer(r,_h.members),this.debugSegments=$r.simpleSegment(0,0,4,5);let i=new zze;i.emplaceBack(0,0,0,0),i.emplaceBack(He,0,He,0),i.emplaceBack(0,He,0,He),i.emplaceBack(He,He,He,He),this.rasterBoundsBuffer=t.createVertexBuffer(i,HKe.members),this.rasterBoundsSegments=$r.simpleSegment(0,0,4,2);let a=new Id;a.emplaceBack(0,0),a.emplaceBack(He,0),a.emplaceBack(0,He),a.emplaceBack(He,He),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(a,_h.members),this.rasterBoundsSegmentsPosOnly=$r.simpleSegment(0,0,4,5);let o=new Id;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,_h.members),this.viewportSegments=$r.simpleSegment(0,0,4,2);let s=new Xze;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new mu;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Bn({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new Nv(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let r=mf();Nl(r,0,this.width,this.height,0,0,1),ta(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]);let i={mainMatrix:r,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:r,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,n.TRIANGLES,dn.disabled,this.stencilClearMode,qr.disabled,Ln.disabled,null,null,i,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,n){if(this.currentStencilSource===t.source||!t.isTileClipped()||!n?.length)return;this.currentStencilSource=t.source,this.nextStencilID+n.length>256&&this.clearStencil();let r=this.context;r.setColorMode(qr.disabled),r.setDepthMode(dn.disabled);let i={};for(let a of n)i[a.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(i,n,!0),this._renderTileMasks(i,n,!1),this._tileClippingMaskIDs=i}_renderTileMasks(t,n,r){let i=this.context,a=i.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of n){let c=t[u.key],d=ja(s,u),f=o.getMeshFromTileID(this.context,u.canonical,r,!0,"stencil"),h=ha(s,u);l.draw(i,a.TRIANGLES,dn.disabled,new Bn({func:a.ALWAYS,mask:0},c,255,a.KEEP,a.KEEP,a.REPLACE),qr.disabled,s.isRenderingToTexture?Ln.disabled:Ln.backCCW,null,d,h,"$clipping",f.vertexBuffer,f.indexBuffer,f.segments)}}_renderTilesDepthBuffer(){let t=this.context,n=t.gl,r=this.style.projection,i=this.transform,a=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=B1(i,{tileSize:i.tileSize});for(let l of s){let u=ja(this.renderContext,l),c=r.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),d=ha(this.renderContext,l);a.draw(t,n.TRIANGLES,o,Bn.disabled,qr.disabled,Ln.backCCW,null,u,d,"$clipping",c.vertexBuffer,c.indexBuffer,c.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,n=this.context.gl;return new Bn({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){let n=this.context.gl;return new Bn({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let n=this.context.gl,r=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),i=r[r.length-1].overscaledZ,a=r[0].overscaledZ-i+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let o={};for(let s=0;s<a;s++)o[s+i]=new Bn({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=a,[o,r]}return[{[i]:Bn.disabled},r]}stencilConfigForOverlapTwoPass(t){let n=this.context.gl,r=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),i=r[r.length-1].overscaledZ,a=r[0].overscaledZ-i+1;if(this.clearStencil(),a>1){let o={},s={};for(let l=0;l<a;l++)o[l+i]=new Bn({func:n.GREATER,mask:255},a+1+l,255,n.KEEP,n.KEEP,n.REPLACE),s[l+i]=new Bn({func:n.GREATER,mask:255},1+l,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID=a*2+1,[o,s,r]}return this.nextStencilID=3,[{[i]:new Bn({func:n.GREATER,mask:255},2,255,n.KEEP,n.KEEP,n.REPLACE)},{[i]:new Bn({func:n.GREATER,mask:255},1,255,n.KEEP,n.KEEP,n.REPLACE)},r]}colorModeForRenderPass(){let t=this.context.gl;if(this._showOverdrawInspector){let n=.125;return new qr([t.CONSTANT_COLOR,t.ONE],new Kt(n,n,n,0),[!0,!0,!0,!0])}return this.renderContext.currentPass==="opaque"?qr.unblended:qr.alphaBlended}getDepthModeForSublayer(t,n,r){if(!this.opaquePassEnabledForLayer())return dn.disabled;let i=1-((1+this.renderContext.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new dn(r||this.context.gl.LEQUAL,n,[i,i])}getDepthModeFor3D(){return new dn(this.context.gl.LEQUAL,dn.ReadWrite,this.renderContext.depthRangeFor3D)}opaquePassEnabledForLayer(){return this.renderContext.currentLayer<this.renderContext.opaquePassCutoff}render(t,n){this.style=t,this.options=n;let r=this.renderContext=zXe(this.transform,t.projection,t.map.terrain??null);this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.patternAtlas=t.patternAtlas,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(Nn()),BXe(this.context.frameUniformBuffer,this),this.imageManager.beginFrame(),eYe(this.context);let i=this.style._order,a=this.style.tileManagers,o={},s={},l={};for(let c in a){let d=a[c];d.used&&d.prepare(this.context),o[c]=d.getVisibleCoordinates(!1),s[c]=o[c].slice().reverse(),l[c]=d.getVisibleCoordinates(!0).reverse()}r.opaquePassCutoff=1/0;for(let c=0;c<i.length;c++){let d=i[c];if(this.style._layers[d].is3D()){r.opaquePassCutoff=c;break}}this.maybeDrawDepth(),this.renderToTexture&&(this.renderToTexture.prepareForRender(this.style,this.transform.zoom),r.opaquePassCutoff=0),r.currentPass="offscreen";for(let c of i){let d=this.style._layers[c];if(!d.hasOffscreenPass()||d.isHidden(this.transform.zoom))continue;let f=s[d.source];(d.type==="custom"||f.length)&&this.renderLayer(this,a[d.source],d,f,r)}if(this.context.viewport.set([0,0,this.width,this.height]),this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?Kt.black:Kt.transparent,depth:1}),this.clearStencil(),this.style.sky&&this.drawFunctions.sky(this,this.style.sky),this._showOverdrawInspector=n.showOverdrawInspector,r.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(r.currentPass="opaque",r.currentLayer=i.length-1;r.currentLayer>=0;r.currentLayer--){let c=this.style._layers[i[r.currentLayer]];if(c.isHidden(this.transform.zoom))continue;let d=a[c.source],f=o[c.source];this.renderTileClippingMasks(c,f),this.renderLayer(this,d,c,f,r)}r.currentPass="translucent";let u=!1;for(r.currentLayer=0;r.currentLayer<i.length;r.currentLayer++){let c=this.style._layers[i[r.currentLayer]];if(c.isHidden(this.transform.zoom))continue;let d=a[c.source];if(this.renderToTexture?.renderLayer(c,r))continue;!this.opaquePassEnabledForLayer()&&!u&&(u=!0,r.isRenderingGlobe&&!this.style.map.terrain&&this._renderTilesDepthBuffer());let f=(c.type==="symbol"?l:s)[c.source];this.renderTileClippingMasks(c,o[c.source]),this.renderLayer(this,d,c,f,r)}if(r.isRenderingGlobe&&this.drawFunctions.atmosphere(this,this.style.sky,this.style.light),this.options.showTileBoundaries){let c=EJe(this.style,this.transform.zoom);c&&this.drawFunctions.debug(this,c,c.getVisibleCoordinates(),r)}this.options.showPadding&&this.drawFunctions.debugPadding(this),this.renderToTexture&&!this.options.moving&&this.clearRTTPool(),this.context.setDefault()}markTerrainDepthDirty(){this.terrainFacilitator.depthDirty=!0}maybeDrawDepth(){if(!this.style?.projection||!this.style.map?.terrain)return;let t=this.terrainFacilitator.matrix,n=this.transform.modelViewProjectionMatrix,r=this.terrainFacilitator.depthDirty;r||=!UOe(t,n),r||=this.style.map.terrain.tileManager.anyTilesAfterTime(this.terrainFacilitator.renderTime),r&&(FOe(t,n),this.terrainFacilitator.renderTime=Nn(),this.terrainFacilitator.depthDirty=!1,this.drawFunctions.terrainDepth(this,this.style.map.terrain))}renderLayer(t,n,r,i,a){if(r.isHidden(this.transform.zoom)||r.type!=="background"&&r.type!=="custom"&&!(i||[]).length)return;this.id=r.id;let o=this.drawFunctions;ite(r)?o.symbol(t,n,r,i,this.style.placement.variableOffsets,a):TNe(r)?o.circle(t,n,r,i,a):PNe(r)?o.heatmap(t,n,r,i,a):uje(r)?o.line(t,n,r,i,a):wVe(r)?o.fill(t,n,r,i,a):WVe(r)?o.fillExtrusion(t,n,r,i,a):RNe(r)?o.hillshade(t,n,r,i,a):VNe(r)?o.colorRelief(t,n,r,i,a):AT(r)?o.raster(t,n,r,i,a):dHe(r)?o.background(t,n,r,i,a):pHe(r)&&o.custom(t,n,r,a)}saveTileTexture(t){let n=this._tileTextures[t.size[0]];n?n.length<Vh.MAX_TEXTURE_POOL_SIZE_PER_BUCKET?n.push(t):t.destroy():this._tileTextures[t.size[0]]=[t]}getTileTexture(t){let n=this._tileTextures[t];return n&&n.length>0?n.pop():null}acquireRTT(t){let n=this.context.gl,r=this._rttObjectRecyclePool.pop();if(r)return r.size!==t&&(r.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),r.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE,n.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&n.texParameterf(n.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),r.size=t),r;let i=new xi(this.context,{width:t,height:t,data:null},n.RGBA,{premultiply:!1,useMipmap:!0});return i.bind(n.LINEAR,n.CLAMP_TO_EDGE,n.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&n.texParameterf(n.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:i,size:t}}bindRTT(t){let n=this.context.gl,r=t.size;if(!this._rttSharedFbo){let i=this.context.createFramebuffer(r,r,!0,!0),a=this.context.createRenderbuffer(n.DEPTH_STENCIL,r,r);i.depthAttachment.set(a),this._rttSharedFbo={fbo:i,depthRenderbuffer:a,size:r}}this._rttSharedFbo.size!==r&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,r,r),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=r,this._rttSharedFbo.fbo.height=r,this._rttSharedFbo.size=r),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let n=this.patternAtlas.getPattern(t.from.toString()),r=this.patternAtlas.getPattern(t.to.toString());return!n||!r}useProgram(t,n,r=!1,i=[]){this.cache||={};let a=!!this.style.map.terrain,o=this.style.projection,s=r?Xl.projectionMercator:o.shaderPreludeCode,l=r?mne:o.shaderDefine,u=`/${r?gne:o.shaderVariantName}`,c=n?n.cacheKey:"",d=this._showOverdrawInspector?"/overdraw":"",f=a?"/terrain":"",h=i?`/${i.join("/")}`:"",p=t+c+u+d+f+h;return this.cache[p]||=new aYe(this.context,Xl[t],n,JYe[t],this._showOverdrawInspector,a,s,l,i),this.cache[p]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new xi(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){if(this._tileTextures){for(let t in this._tileTextures){let n=this._tileTextures[t];if(n)for(let r of n)r.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),this.layerOpacityFbo?.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&this.tileExtentMesh.vertexBuffer?.destroy(),this.tileExtentMesh&&this.tileExtentMesh.indexBuffer?.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),tYe(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let t in this.cache){let n=this.cache[t];n?.program&&this.context.gl.deleteProgram(n.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:n}=this.context.gl;return this.width!==t||this.height!==n}}
vendor: 11,536 bytes, line 838
838,Vh.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,Vh),Qne=class extends Error{constructor(e,t){super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=t?.statusMessage??null}};function mD(e,t){let n=!1,r=null,i,a=()=>{r=null,n&&=(e(...i),r=setTimeout(a,t),!1)};return(...o)=>(n=!0,i=o,r||a(),r)}var ere=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):([...t.keys()][0]??"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let n=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let a=Array.from(t.keys());a.length>0&&t.delete(a[0])}let n=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),r=n?`#${n}`:"",i=window.location.href.replace(/(#.+)?$/,r);i=i.replace("&&","&"),window.history.replaceState(window.history.state,null,i)},this._updateHash=mD(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),n=Math.round(this._map.getZoom()*100)/100,r=10**Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.round(t.lng*r)/r,a=Math.round(t.lat*r)/r,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${i}/${a}/${n}`:`${n}/${a}/${i}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(i=>isNaN(+i)))return!1;try{new kt(+e[2],+e[1])}catch{return!1}let t=+e[0],n=+(e[3]||0),r=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&n>=-180&&n<=180&&r>=this._map.getMinPitch()&&r<=this._map.getMaxPitch()}};const Vv={linearity:.3,easing:eP(0,0,.3,1)},OJe=St({deceleration:2500,maxSpeed:1400},Vv),BJe=St({deceleration:20,maxSpeed:1400},Vv),FJe=St({deceleration:1e3,maxSpeed:360},Vv),zJe=St({deceleration:1e3,maxSpeed:90},Vv),NJe=St({deceleration:1e3,maxSpeed:360},Vv);var VJe=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Nn(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=Nn();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=Nn()-60,n=Math.max(0,e.length-2);for(;n>0&&e[n-1].time>=t;)n--;return e.slice(n)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let n={zoom:0,bearing:0,pitch:0,roll:0,pan:new we(0,0),pinchAround:void 0,around:void 0};for(let{settings:a}of t)a.around&&(n.around=a.around),a.pinchAround&&(n.pinchAround=a.pinchAround);for(let{settings:a}of t.slice(1))n.zoom+=a.zoomDelta||0,n.bearing+=a.bearingDelta||0,n.pitch+=a.pitchDelta||0,n.roll+=a.rollDelta||0,a.panDelta&&n.pan._add(a.panDelta);if(!n.pan.mag()&&!n.zoom&&!n.bearing&&!n.pitch&&!n.roll){this.clear();return}let r=Nn()-t[0].time,i={};if(n.pan.mag()){let a=Ug(n.pan.mag(),r,St({},OJe,e||{})),o=n.pan.mult(a.amount/n.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);i.center=s.easingCenter,i.offset=s.easingOffset,jg(i,a)}if(n.zoom){let a=Ug(n.zoom,r,BJe);i.zoom=Fo(this._map.getZoom()+a.amount,this._map.getZoomSnap(),a.amount),jg(i,a)}if(n.bearing){let a=Ug(n.bearing,r,FJe);i.bearing=this._map.getBearing()+qt(a.amount,-179,179),jg(i,a)}if(n.pitch){let a=Ug(n.pitch,r,zJe);i.pitch=this._map.getPitch()+a.amount,jg(i,a)}if(n.roll){let a=Ug(n.roll,r,NJe);i.roll=this._map.getRoll()+qt(a.amount,-179,179),jg(i,a)}if(i.zoom||i.bearing){let a=n.pinchAround===void 0?n.around:n.pinchAround;i.around=a?this._map.unproject(a):this._map.getCenter()}return this.clear(),St(i,{noMoveStart:!0})}};function jg(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function Ug(e,t,n){let{maxSpeed:r,linearity:i,deceleration:a}=n,o=qt(e*i/(t/1e3),-r,r),s=Math.abs(o)/(a*i);return{easing:n.easing,duration:s*1e3,amount:s/2*o}}var jJe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Rte(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new so(e.type,this._map,e))}mouseup(e){this._map.fire(new so(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new so(e.type,this._map,e))}dblclick(e){return this._firePreventable(new so(e.type,this._map,e))}mouseover(e){this._map.fire(new so(e.type,this._map,e))}mouseout(e){this._map.fire(new so(e.type,this._map,e))}touchstart(e){return this._firePreventable(new cy(e.type,this._map,e))}touchmove(e){this._map.fire(new cy(e.type,this._map,e))}touchend(e){this._map.fire(new cy(e.type,this._map,e))}touchcancel(e){this._map.fire(new cy(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},UJe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new so(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new so("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,n){if(this._clearLongPress(),this._touchActive=n.length>0,n.length!==1)return;this._longPressStart=t[0];let r=n[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let i=new MouseEvent("contextmenu",{clientX:r.clientX,clientY:r.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new so("contextmenu",this._map,i))},500)}touchmove(e,t,n){this._longPressTimer&&(n.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&=(clearTimeout(this._longPressTimer),void 0),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new so(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},tre=class{constructor(e,t,n){this._map=e,this._tr=n,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(nn.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let n=t;if(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)return;let r=this._startPos;this._lastPos=n,this._box||(this._box=nn.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",e));let i=Math.min(r.x,n.x),a=Math.max(r.x,n.x),o=Math.min(r.y,n.y),s=Math.max(r.y,n.y);this._box.style.transform=`translate(${i}px,${o}px)`,this._box.style.width=`${a-i}px`,this._box.style.height=`${s-o}px`}mouseupWindow(e,t){if(!this._active||e.button!==0)return;let n=this._startPos,r=t;if(this.reset(),nn.suppressClick(),n.x===r.x&&n.y===r.y)this._fireEvent("boxzoomcancel",e);else{if(this._map.fire(new Tk("boxzoomend",{originalEvent:e})),this._boxZoomEnd){this._boxZoomEnd(this._map,n,r,e);return}return{cameraAnimation:i=>i.fitScreenCoordinates(n,r,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&=(this._box.remove(),null),nn.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new Tk(e,{originalEvent:t}))}};function zk(e,t){if(e.length!==t.length)throw Error(`The number of touches and points are not equal - touches ${e.length}, points ${t.length}`);let n={};for(let r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}function HJe(e){let t=new we(0,0);for(let n of e)t._add(n);return t.div(e.length)}var qJe=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=HJe(t),this.touches=zk(n,t)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;let r=zk(n,t);for(let i in this.touches){let a=this.touches[i],o=r[i];(!o||o.dist(a)>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),n.length===0){let r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}},Nk=class{constructor(e){this.singleTap=new qJe(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){let r=this.singleTap.touchend(e,t,n);if(r){let i=e.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(r)<30;if((!i||!a)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}},WJe=class{constructor(e,t){this._tr=t,this._zoomIn=new Nk({numTouches:1,numTaps:2}),this._zoomOut=new Nk({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){let r=this._zoomIn.touchend(e,t,n),i=this._zoomOut.touchend(e,t,n),a=this._tr;if(r)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>
vendor: 4,331 bytes, line 838
838o.easeTo({duration:300,zoom:Fo(a.zoom+1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(r)?a.unproject(r):void 0},{originalEvent:e})};if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:Fo(a.zoom-1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(i)?a.unproject(i):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},jv=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let n=this._lastPoint;if(!n)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let r=Array.isArray(t)?t[0]:t;if(!(!this._moved&&r.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=r,this._move(n,r)}dragEnd(e){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(e)&&(this._moved&&nn.suppressClick(),this.reset(e))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}};const GJe={0:1,2:2};function ZJe(e,t){let n=GJe[t];return e.buttons===void 0||(e.buttons&n)!==n}var Uv=class{constructor(e){this._correctEvent=e.checkCorrectEvent}startMove(e){this._eventButton=e.button}endMove(e){delete this._eventButton}isValidStartEvent(e){return this._correctEvent(e)}isValidMoveEvent(e){return!ZJe(e,this._eventButton)}isValidEndEvent(e){return e.button===this._eventButton}},KJe=class{constructor(){this._firstTouch=void 0}_isOneFingerTouch(e){return e.targetTouches.length===1}_isSameTouchEvent(e){return e.targetTouches[0].identifier===this._firstTouch}startMove(e){this._firstTouch=e.targetTouches[0].identifier}endMove(e){delete this._firstTouch}isValidStartEvent(e){return this._isOneFingerTouch(e)}isValidMoveEvent(e){return this._isOneFingerTouch(e)&&this._isSameTouchEvent(e)}isValidEndEvent(e){return this._isOneFingerTouch(e)&&this._isSameTouchEvent(e)}},YJe=class{constructor(e=new Uv({checkCorrectEvent:()=>!0}),t=new KJe){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,n){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return n(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}};const bw=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};function XJe({enable:e,clickTolerance:t}){return new jv({clickTolerance:t,move:(n,r)=>({around:r,panDelta:r.sub(n)}),activateOnStart:!0,moveStateManager:new Uv({checkCorrectEvent:n=>n.button===0&&!n.ctrlKey}),enable:e,assignEvents:bw})}function JJe({enable:e,clickTolerance:t,aroundCenter:n=!0,minPixelCenterThreshold:r=100,rotateSpeed:i=.8},a){return new jv({clickTolerance:t,move:(o,s)=>{let l=a();
vendor: 8,269 bytes, line 838
838if(n&&Math.abs(l.y-o.y)>r)return{bearingDelta:fJ(new we(o.x,s.y),s,l)};let u=(s.x-o.x)*i;return n&&s.y<l.y&&(u=-u),{bearingDelta:u}},moveStateManager:new Uv({checkCorrectEvent:o=>o.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:bw})}function QJe({enable:e,clickTolerance:t,pitchSpeed:n=-.5}){return new jv({clickTolerance:t,move:(r,i)=>({pitchDelta:(i.y-r.y)*n}),moveStateManager:new Uv({checkCorrectEvent:r=>r.button===0&&r.ctrlKey||r.button===2}),enable:e,assignEvents:bw})}function eQe({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:n=.3},r){return new jv({clickTolerance:t,move:(i,a)=>{let o=r(),s=(a.x-i.x)*n;return a.y<o.y&&(s=-s),{rollDelta:s}},moveStateManager:new Uv({checkCorrectEvent:i=>i.button===2&&i.ctrlKey}),enable:e,assignEvents:bw})}var tQe=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new we(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,n){return this._calculateTransform(e,t,n)}touchmove(e,t,n){if(this._active){if(this._shouldBePrevented(n.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,n)}}touchend(e,t,n){this._calculateTransform(e,t,n),this._active&&this._shouldBePrevented(n.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,n){n.length>0&&(this._active=!0);let r=zk(n,t),i=new we(0,0),a=new we(0,0),o=0;for(let l in r){let u=r[l],c=this._touches[l];c&&(i._add(u),a._add(u.sub(c)),o++,r[l]=u)}if(this._touches=r,this._shouldBePrevented(o)||!a.mag())return;let s=a.div(o);if(this._sum._add(s),!(this._sum.mag()<this._clickTolerance))return{around:i.div(o),panDelta:s}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},gD=class{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(t,n,r){this._firstTwoTouches||r.length<2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([n[0],n[1]]))}touchmove(t,n,r){if(!this._firstTwoTouches)return;t.preventDefault();let[i,a]=this._firstTwoTouches,o=lb(r,n,i),s=lb(r,n,a);if(!o||!s)return;let l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,t)}touchend(t,n,r){if(!this._firstTwoTouches)return;let[i,a]=this._firstTwoTouches,o=lb(r,n,i),s=lb(r,n,a);o&&s||(this._active&&nn.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(t){this._enabled=!0,this._aroundCenter=!!t&&t.around==="center"}disable(){this._enabled=!1,this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}};function lb(e,t,n){for(let r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}const KV=.1;function YV(e,t){return Math.log(e/t)/Math.LN2}var nre=class extends gD{constructor(){super(),this._zoomRate=1,this._zoomThreshold=KV}setZoomRate(e){this._zoomRate=e??1}setZoomThreshold(e){this._zoomThreshold=e??KV}reset(){super.reset(),delete this._distance,delete this._startDistance}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){let n=this._distance;if(this._distance=e[0].dist(e[1]),!(!this._active&&Math.abs(YV(this._distance,this._startDistance))<this._zoomThreshold))return this._active=!0,{zoomDelta:YV(this._distance,n)*this._zoomRate,pinchAround:t}}};function XV(e,t){return e.angleWith(t)*180/Math.PI}var rre=class extends gD{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t,n){let r=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:XV(this._vector,r),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());let t=25/(Math.PI*this._minDiameter)*360,n=XV(e,this._startVector);return Math.abs(n)<t}};function H9(e){return Math.abs(e.y)>Math.abs(e.x)}var ire=class extends gD{constructor(e){super(),this._currentTouchCount=0,this._map=e}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(e,t,n){super.touchstart(e,t,n),this._currentTouchCount=n.length}_start(e){this._lastPoints=e,H9(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,n){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let r=e[0].sub(this._lastPoints[0]),i=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}}gestureBeginsVertically(e,t,n){if(this._valid!==void 0)return this._valid;let r=e.mag()>=2,i=t.mag()>=2;if(!r&&!i)return;if(!r||!i)return this._firstMove===void 0&&(this._firstMove=n),n-this._firstMove<100&&void 0;let a=e.y>0==t.y>0;return H9(e)&&H9(t)&&a}};const nQe={panStep:100,bearingStep:15,pitchStep:10};var are=class{constructor(e,t){this._tr=t;let n=nQe;this._panStep=n.panStep,this._bearingStep=n.bearingStep,this._pitchStep=n.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,r=0,i=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(n=0,r=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:rQe,zoom:t?Fo(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+n*this._bearingStep,pitch:s.pitch+r*this._pitchStep,offset:[-i*this._panStep,-a*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};function rQe(e){return e*(2-e)}const JV=4.000244140625;var ore=class{constructor(e,t,n){this._onTimeout=r=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(r)},this._map=e,this._tr=n,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,n=Nn(),r=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,t!==0&&t%JV==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(r*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=nn.mousePos(this._map.getCanvas(),e),n=this._tr;this._aroundPoint=this._aroundCenter?n.transform.locationToScreenPoint(kt.convert(n.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;
vendor: 8,101 bytes, line 838
838typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>JV?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?Fa(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),ua(l*s)).zoom,c=this._map.getZoomSnap();if(this._type==="wheel"&&c>0){let d=Fo(e.zoom,c);this._targetZoom=Fo(u,c,u-d)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,n=this._startZoom,r=this._easing,i=!1,a;if(this._type==="wheel"&&n&&r){let o=Nn()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=r(s);a=Lr.number(n,t,l),s<1?this._needsRerender=!0:i=!0}else a=t,i=!0;return this._active=!0,i&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=a,{noInertia:!0,needsRenderFrame:!i,zoomDelta:a-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=fT;if(this._prevEase){let n=this._prevEase,r=(Nn()-n.start)/n.duration,i=n.easing(r+.01)-n.easing(r),a=.27/Math.sqrt(i*i+1e-4)*.01,o=Math.sqrt(.0729-a*a);t=eP(a,o,.25,1)}return this._prevEase={start:Nn(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},sre=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},iQe=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:Fo(this._tr.zoom+(e.shiftKey?-1:1),n.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},aQe=class{constructor(){this._tap=new Nk({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e??1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,n){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,n);else{let r=t[0],i=e.timeStamp-this._tapTime<500,a=this._tapPoint.dist(r)<30;!i||!a?this.reset():n.length>0&&(this._swipePoint=r,this._swipeTouch=n[0].identifier)}}touchmove(e,t,n){if(!this._tapTime)this._tap.touchmove(e,t,n);else if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;let r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128*this._zoomRate}}}touchend(e,t,n){if(this._tapTime)this._swipePoint&&n.length===0&&this.reset();else{let r=this._tap.touchend(e,t,n);r&&(this._tapTime=e.timeStamp,this._tapPoint=r)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},lre=class{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},ure=class{constructor(e,t,n,r){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=n,this._mouseRoll=r}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},cre=class{constructor(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},dre=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=nn.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let n=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),r=document.createElement("div");r.className="maplibregl-desktop-message",r.textContent=t,this._container.appendChild(r);let i=document.createElement("div");i.className="maplibregl-mobile-message",i.textContent=n,this._container.appendChild(i),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new Di("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},oQe=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(we.convert(e),this._camera.terrain)}};const ub=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate;var sQe=class extends Us{};function q9(e){return e.panDelta?.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}var lQe=class{get _ownerDocument(){return this._el?.ownerDocument||document}get _ownerWindow(){return this._el?.ownerDocument?.defaultView||window}constructor(e,t,n){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=i=>{this.handleEvent(i,`${i.type}Window`)},this.handleEvent=(i,a)=>
vendor: 5,718 bytes, line 838
838{if(i.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=i.type==="renderFrame"?void 0:i,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:f,handler:h,allowed:p}of this._handlers){if(!h.isEnabled())continue;let g;if(this._blockedByActive(u,p,f))h.reset();else if(h[a||i.type]){if(CBe(i,a||i.type)){let v=nn.mousePos(this._map.getCanvas(),i);g=h[a||i.type](i,v)}else if(SBe(i,a||i.type)){let v=i.touches,b=this._getMapTouches(v),x=nn.touchPos(this._map.getCanvas(),b);g=h[a||i.type](i,x,b)}else TBe(a||i.type)||(g=h[a||i.type](i));this.mergeHandlerResult(s,l,g,f,o),g?.needsRenderFrame&&this._triggerRenderFrame()}(g||h.isActive())&&(u[f]=h)}let c={};for(let f in this._previousActiveHandlers)u[f]||(c[f]=o);this._previousActiveHandlers=u,(Object.keys(c).length||q9(s))&&(this._changes.push([s,l,c]),this._triggerRenderFrame()),(Object.keys(u).length||q9(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:d}=s;d&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],d(this._map))},this._map=e,this._camera=t,this._transformProvider=new oQe(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new VJe(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n);let r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[i,a,o]of this._listeners)i.addEventListener(a,i===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,n]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(e){let t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new jJe(t,e));let r=t.boxZoom=new tre(t,e,this._transformProvider);this._add("boxZoom",r),e.interactive&&e.boxZoom&&r.enable();let i=t.cooperativeGestures=new dre(t,e.cooperativeGestures);this._add("cooperativeGestures",i),e.cooperativeGestures&&i.enable();let a=new WJe(t,this._transformProvider),o=new iQe(t,this._transformProvider);t.doubleClickZoom=new sre(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new aQe;this._add("tapDragZoom",s);let l=t.touchPitch=new ire(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=JJe(e,u),d=QJe(e),f=eQe(e,u);t.dragRotate=new ure(e,c,d,f),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",d,["mouseRotate","mouseRoll"]),this._add("mouseRoll",f,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let h=XJe(e),p=new tQe(e,t);t.dragPan=new lre(n,h,p),this._add("mousePan",h),this._add("touchPan",p,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let g=new rre,v=new nre;t.touchZoomRotate=new cre(n,v,g,s),this._add("touchRotate",g,["touchPan","touchZoom"]),this._add("touchZoom",v,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new UJe(t,e),["touchPan"]);let b=t.scrollZoom=new ore(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",b,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let x=t.keyboard=new are(t,this._transformProvider);this._add("keyboard",x),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!ub(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,n){for(let r in e)if(r!==n&&!t?.includes(r))return!0;return!1}_getMapTouches(e){let t=[];for(let n of e){let r=n.target;this._el.contains(r)&&t.push(n)}return t}mergeHandlerResult(e,t,n,r,i){if(!n)return;St(e,n);let a={handlerName:r,originalEvent:n.originalEvent||i};n.zoomDelta!==void 0&&(t.zoom=a),n.panDelta!==void 0&&(t.drag=a),n.rollDelta!==void 0&&(t.roll=a),n.pitchDelta!==void 0&&(t.pitch=a),n.bearingDelta!==void 0&&(t.rotate=a)}_applyChanges(){let e={},t={},n={};for(let[r,i,a]of this._changes)r.panDelta&&(e.panDelta=(e.panDelta||new we(0,0))._add(r.panDelta)),r.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+r.zoomDelta),r.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+r.bearingDelta),r.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+r.pitchDelta),r.rollDelta&&(e.rollDelta=(e.rollDelta||0)+r.rollDelta),r.around!==void 0&&(e.around=r.around),r.pinchAround!==void 0&&(e.pinchAround=r.pinchAround),r.noInertia&&(e.noInertia=r.noInertia),St(t,i),St(n,a);this._updateMapTransform(e,t,n),this._changes=[]}_updateMapTransform(e,t,n){let r=this._map.terrain;if(!q9(e)){this._fireEvents(t,n,!0);return}let i=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:a,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:c,aroundOnSurface:d}
vendor: 20,129 bytes, line 838
838=this._resolveAround(e,r,i),f=r?this._terrainGestureElevation(r,c,d,i,t):void 0,h={panDelta:a,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:c,aroundElevation:f};this._camera.cameraHelper.useGlobeControls&&!i.isPointOnMapSurface(c)&&(c=i.centerPoint);let p=this._computePreZoomAroundLoc(i,c,a,f);this._handleMapControls({terrain:r,tr:i,deltasForHelper:h,preZoomAroundLoc:p,combinedEventsInProgress:t,panDelta:a}),this._camera.applyUpdatedTransform(i),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n,!0)}_resolveAround(e,t,n){let r=e.pinchAround===void 0?e.around:e.pinchAround;return r||=this._camera.transform.centerPoint,t&&!n.isPointOnMapSurface(r)?{around:n.centerPoint,aroundOnSurface:!1}:{around:r,aroundOnSurface:!0}}_terrainGestureElevation(e,t,n,r,i){if(!n)return;if(this._terrainGesture.anchorElevation===null&&(i.drag||i.zoom)){let o=r.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let a=this._terrainGesture.anchorElevation;if(a!=null&&!(t.distSqr(r.centerPoint)<.01)&&!(a-r.elevation>=.9*(r.getCameraAltitude()-r.elevation)))return a}_computePreZoomAroundLoc(e,t,n,r){if(t.distSqr(e.centerPoint)<.01)return e.center;let i=n?t.sub(n):t;return r===void 0?e.screenPointToLocation(i):e.screenPointToLocationAtElevation(i,r)}_handleMapControls({terrain:e,tr:t,deltasForHelper:n,preZoomAroundLoc:r,combinedEventsInProgress:i,panDelta:a}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(n,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(n.around)){a&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}if(!e){o.handleMapControlsPan(n,t,r);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(n,t,r);return}if(!o.useGlobeControls&&n.aroundElevation===void 0&&i.drag&&a){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}o.handleMapControlsPan(n,t,r)}_fireEvents(e,t,n){let r=ub(this._eventsInProgress),i=ub(e),a={};for(let c in e){let{originalEvent:d}=e[c];this._eventsInProgress[c]||(a[`${c}start`]=d),this._eventsInProgress[c]=e[c]}!r&&i&&this._fireEvent("movestart",i.originalEvent);for(let c in a)this._fireEvent(c,a[c]);i&&this._fireEvent("move",i.originalEvent);for(let c in e){let{originalEvent:d}=e[c];this._fireEvent(c,d)}let o={},s;for(let c in this._eventsInProgress){let{handlerName:d,originalEvent:f}=this._eventsInProgress[c];this._handlersById[d].isActive()||(delete this._eventsInProgress[c],s=t[d]||f,o[`${c}end`]=s)}for(let c in o)this._fireEvent(c,o[c]);let l=ub(this._eventsInProgress),u=(r||i)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let c=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&c.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(c)}if(n&&u){this._updatingCamera=!0;let c=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),d=f=>f!==0&&-this._bearingSnap<f&&f<this._bearingSnap;c&&(c.essential||!ho.prefersReducedMotion)?(d(c.bearing||this._map.getBearing())&&(c.bearing=0),c.freezeElevation=!0,this._map.easeTo(c,{originalEvent:s})):(this._fireEvent("moveend",s),d(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(e,t){this._camera.fire(new Pt(e,t?{originalEvent:t}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(e=>{delete this._frameId,this.handleEvent(new sQe("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},uQe=class extends Ci{constructor(e){super(),this._renderFrameCallback=()=>{let t=Math.min((Nn()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new L5,this.cameraHelper=new R5,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=e.centerClampedToGround??!0,this.transformCameraUpdate=e.transformCameraUpdate??null,this._stopHandlers=e.stopHandlers??(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let n=e.clone();n.apply(this._requestedCameraState,!0),this._requestedCameraState=n}}getCenter(){return new kt(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,n){return e=we.convert(e).mult(-1),this.panTo(this.transform.center,St({offset:e},t),n)}panTo(e,t,n){return this.easeTo(St({center:e},t),n)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,n){return this.easeTo(St({zoom:e},t),n)}zoomIn(e,t){return this.zoomTo(Fo(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(Fo(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(n=>n.setFov(e)),this.fire(new Pt("movestart",t)).fire(new Pt("move",t)).fire(new Pt("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,n){return this.easeTo(St({bearing:e},t),n)}resetNorth(e,t){return this.rotateTo(0,St({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(St({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}getRoll(){return this.transform.roll}setRoll(e,t){return this.jumpTo({roll:e},t),this}cameraForBounds(e,t){e=xl.convert(e).adjustAntiMeridian();let n=t?.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),n,t)}_cameraForBoxAndBearing(e,t,n,r){let i={top:0,bottom:0,right:0,left:0};if(r=St({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},r),typeof r.padding=="number"){let u=r.padding;r.padding={top:u,bottom:u,right:u,left:u}}let a=St(i,r.padding);r.padding=a;let o=this.transform,s=new xl(e,t),l=this.cameraHelper.cameraForBoxAndBearing(r,a,s,n,o);return l&&this._zoomSnap&&(l.zoom=Fo(l.zoom,this._zoomSnap,-1)),l}fitBounds(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)}fitScreenCoordinates(e,t,n,r,i){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.screenPointToLocation(we.convert(e)),this.transform.screenPointToLocation(we.convert(t)),n,r),r,i)}_fitInternal(e,t,n){return e?(t=St(e,t),delete t.padding,t.linear?this.easeTo(t,n):this.flyTo(t,n)):this}jumpTo(e,t){this.stop(),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=Fo(e.zoom,this._zoomSnap));let n=this.getTransformForUpdate(),r=!1,i=!1,a=!1,o=n.zoom;this.terrain&&n.setElevation(this.terrain.getElevationForLngLat(e.center?kt.convert(e.center):n.center,n)),this.cameraHelper.handleJumpToCenterZoom(n,e);let s=n.zoom!==o;return e.elevation!==void 0&&n.elevation!==+e.elevation&&n.setElevation(+e.elevation),e.bearing!==void 0&&n.bearing!==+e.bearing&&(r=!0,n.setBearing(+e.bearing)),e.pitch!==void 0&&n.pitch!==+e.pitch&&(i=!0,n.setPitch(+e.pitch)),e.roll!==void 0&&n.roll!==+e.roll&&(a=!0,n.setRoll(+e.roll)),e.padding!=null&&!n.isPaddingEqual(e.padding)&&n.setPadding(e.padding),this.applyUpdatedTransform(n),this.fire(new Pt("movestart",t)).fire(new Pt("move",t)),s&&this.fire(new Pt("zoomstart",t)).fire(new Pt("zoom",t)).fire(new Pt("zoomend",t)),r&&this.fire(new Pt("rotatestart",t)).fire(new Pt("rotate",t)).fire(new Pt("rotateend",t)),i&&this.fire(new Pt("pitchstart",t)).fire(new Pt("pitch",t)).fire(new Pt("pitchend",t)),a&&this.fire(new Pt("rollstart",t)).fire(new Pt("roll",t)).fire(new Pt("rollend",t)),this.fire(new Pt("moveend",t))}calculateAnchoredCameraOptions(e){let t=this.transform.clone(),n=kt.convert(e.anchorLocation),r=we.convert(e.anchorScreenPoint),i={panDelta:r.sub(this.transform.locationToScreenPoint(n,this.terrain)),zoomDelta:e.zoom===void 0?0:e.zoom-t.zoom,bearingDelta:0,pitchDelta:0,rollDelta:0,around:r,aroundElevation:this.terrain?.getElevationForLngLat(n,t)};return this.cameraHelper.handleMapControlsRollPitchBearingZoom(i,t),this.cameraHelper.handleMapControlsPan(i,t,n),{center:t.center,zoom:t.zoom}}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,n,r,i){let a=this.transform.calculateCenterFromCameraLngLatAlt(e,t,n,r);return{center:a.center,elevation:a.elevation,zoom:a.zoom,bearing:n,pitch:r,roll:i}}easeTo(e,t){this._stop(!1,e.easeId),e=St({offset:[0,0],duration:500,easing:fT},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=Fo(e.zoom,this._zoomSnap)),(e.animate===!1||!e.essential&&ho.prefersReducedMotion)&&(e.duration=0);let n=this.getTransformForUpdate(),r=this.getBearing(),i=n.pitch,a=n.roll,o=e.bearing===void 0?r:this._normalizeBearing(e.bearing,r),s=e.pitch===void 0?i:+e.pitch,l=e.roll===void 0?a:this._normalizeBearing(e.roll,a),u=e.padding===void 0?n.padding:e.padding,c=we.convert(e.offset),d,f;e.around&&(d=kt.convert(e.around),f=n.locationToScreenPoint(d));let h={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching,rolling:this._rolling},p=this.cameraHelper.handleEaseTo(n,{bearing:o,pitch:s,roll:l,padding:u,around:d,aroundPoint:f,offsetAsPoint:c,offset:e.offset,zoom:e.zoom,center:e.center});return this._rotating||=r!==o,this._pitching||=s!==i,this._rolling||=l!==a,this._padding=!n.isPaddingEqual(u),this._zooming||=p.isZooming,this._easeId=e.easeId,this._prepareEase(t,e.noMoveStart,h),this.terrain&&this._prepareElevation(p.elevationCenter,n),this._ease(g=>{p.easeFunc(g),this.terrain&&!e.freezeElevation&&this._updateElevation(g,n),this.applyUpdatedTransform(n),this._fireMoveEvents(t)},g=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,g)},e),this}_prepareEase(e,t,n={}){this._moving=!0,!t&&!n.moving&&this.fire(new Pt("movestart",e)),this._zooming&&!n.zooming&&this.fire(new Pt("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new Pt("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new Pt("pitchstart",e)),this._rolling&&!n.rolling&&this.fire(new Pt("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let n=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&n!==this._elevationTarget){let r=this._elevationTarget-this._elevationStart,i=(n-(r*e+this._elevationStart))/(1-e);this._elevationStart+=e*(r-i),this._elevationTarget=n}t.setElevation(Lr.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||=this.transform.clone(),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),n=e.getCameraAltitude(),r=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(n<r){let i=e.calculateCameraOptionsFromTo(t,r,e.center,e.elevation);return{pitch:i.pitch,zoom:i.zoom}}return{}}applyUpdatedTransform(e){let t=[];if(t.push(r=>this._elevateCameraIfInsideTerrain(r)),this.transformCameraUpdate&&t.push(r=>this.transformCameraUpdate(r)),!t.length)return;let n=e.clone();for(let r of t){let i=n.clone(),{center:a,zoom:o,roll:s,pitch:l,bearing:u,elevation:c}=r(i);a&&i.setCenter(a),c!==void 0&&i.setElevation(c),o!==void 0&&i.setZoom(o),s!==void 0&&i.setRoll(s),l!==void 0&&i.setPitch(l),u!==void 0&&i.setBearing(u),n.apply(i,!1)}this.transform.apply(n,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,n=this.getTransformForUpdate();e(n),this.applyUpdatedTransform(n),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new Pt("move",e)),this._zooming&&this.fire(new Pt("zoom",e)),this._rotating&&this.fire(new Pt("rotate",e)),this._pitching&&this.fire(new Pt("pitch",e)),this._rolling&&this.fire(new Pt("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let n=this._zooming,r=this._rotating,i=this._pitching,a=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,n&&this.fire(new Pt("zoomend",e)),r&&this.fire(new Pt("rotateend",e)),i&&this.fire(new Pt("pitchend",e)),a&&this.fire(new Pt("rollend",e)),this.fire(new Pt("moveend",e))}flyTo(e,t){if(!e.essential&&ho.prefersReducedMotion){let z=Ev(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(z,t)}this.stop(),e=St({offset:[0,0],speed:1.2,curve:1.42,easing:fT},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=Fo(e.zoom,this._zoomSnap));let n=this.getTransformForUpdate(),r=n.bearing,i=n.pitch,a=n.roll,o=n.padding,s=e.bearing===void 0?r:this._normalizeBearing(e.bearing,r),l=e.pitch===void 0?i:+e.pitch,u=e.roll===void 0?a:this._normalizeBearing(e.roll,a),c=e.padding===void 0?n.padding:e.padding,d=we.convert(e.offset),f=n.centerPoint.add(d),h=n.screenPointToLocation(f),p=this.cameraHelper.handleFlyTo(n,{bearing:s,pitch:l,roll:u,padding:c,locationAtOffset:h,offsetAsPoint:d,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),g=e.curve,v=Math.max(n.width,n.height),b=v/p.scaleOfZoom,x=p.pixelPathLength,_=v/p.scaleOfMinZoom;g=Math.min(g,Math.sqrt(_/x*2));let w=g*g;function C(z){let j=(b*b-v*v+(z?-1:1)*w*w*x*x)/(2*(z?b:v)*w*x);return Math.log(Math.sqrt(j*j+1)-j)}function T(z){return(Math.exp(z)-Math.exp(-z))/2}function k(z){return(Math.exp(z)+Math.exp(-z))/2}function A(z){return T(z)/k(z)}let P=C(!1),D=function(z){return k(P)/k(P+g*z)},$=function(z){return v*((k(P)*A(P+g*z)-T(P))/w)/x},O=(C(!0)-P)/g;if(Math.abs(x)<2e-6||!isFinite(O)){if(Math.abs(v-b)<1e-6)return this.easeTo(e,t);let z=b<v?-1:1;O=Math.abs(Math.log(b/v))/g,$=()=>0,D=j=>Math.exp(z*g*j)}if(e.duration!==void 0)e.duration=+e.duration;else{let z=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/g;e.duration=1e3*O/z}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=r!==s,this._pitching=l!==i,this._rolling=u!==a,this._padding=!n.isPaddingEqual(c),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(p.targetCenter,n),this._ease(z=>{let j=z*O,B=1/D(j),R=$(j);this._rotating&&n.setBearing(Lr.number(r,s,z)),this._pitching&&n.setPitch(Lr.number(i,l,z)),this._rolling&&n.setRoll(Lr.number(a,u,z)),this._padding&&(n.interpolatePadding(o,c,z),f=n.centerPoint.add(d)),p.easeFunc(z,B,R,f),this.terrain&&!e.freezeElevation&&this._updateElevation(z,n),this.applyUpdatedTransform(n),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,n){n.animate===!1||n.duration===0?(e(1),t()):(this._easeStart=Nn(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=As(e,-180,180);let n=Math.abs(e-t);return Math.abs(e-360-t)<n&&(e-=360),Math.abs(e+360-t)<n&&(e+=360),e}isMoving(){return this._moving}isZooming(){return this._zooming}isRotating(){return this._rotating}};const fre={compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank">MapLibre</a>'};var hre=class{constructor(e=fre){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=nn.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=nn.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=nn.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let n=this._map._getUIString(`AttributionControl.${t}`);e.title=n,e.setAttribute("aria-label",n)}_updateAttributions(){if(!this._map.style)return;let e=[];
vendor: 17,214 bytes, line 838
838if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(r=>typeof r=="string"?r:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let r=this._map.style.stylesheet;this.styleOwner=r.owner,this.styleId=r.id}let t=this._map.style.tileManagers;for(let r in t){let i=t[r];if(i.used||i.usedForTerrain){let a=i.getSource();a.attribution&&!e.includes(a.attribution)&&e.push(a.attribution)}}e=e.filter(r=>String(r).trim()),e.sort((r,i)=>r.length-i.length),e=e.filter((r,i)=>{for(let a=i+1;a<e.length;a++)if(e[a].includes(r))return!1;return!0});let n=e.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.replaceChildren(nn.sanitize(n)),this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}},pre=class{constructor(e={}){this._updateCompact=()=>{let t=this._container.children;if(t.length){let n=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&n.classList.add("maplibregl-compact"):n.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){this._map=e,this._compact=this.options?.compact,this._container=nn.create("div","maplibregl-ctrl");let t=nn.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},cQe=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(let r of n)if(r.id===e){r.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let n=!1,r;for(let i of t)if(!i.cancelled){try{i.callback(e)}catch(a){n||(n=!0,r=a)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,n)throw r}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}};const QV=["none","zoom","sourceTiles","visibleLayers","revision"];var dQe=class{constructor(e,t,n,r){this._tileKeys=e.map(i=>i.key).sort().join(),this._revision=t,this._zoom=n,this._visibleLayerIds=r}difference(e){return this._revision===e?._revision?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}};const x0={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0};var fQe=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let n=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let r=this._renderableLayerIds.join(),i=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&x0[l.type]&&i.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of i){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],c=l.getSource(),d=c instanceof O1?c.terrainTileRanges:null;for(let p of l.getVisibleCoordinates()){let g=this.terrain.tileManager.getTerrainCoords(p,d);for(let v in g)u[v]||=[],u[v].push(g[v])}this._rttFingerprints[s]={};let f=this._rttFingerprints[s],h=l.getState().revision;for(let p in u)f[p]=new dQe(u[p],h,t,r)}this.needsFollowUpFrame=!1;let a=n||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&a||l==="visibleLayers"&&n?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let n in this._rttFingerprints){let r=this._rttFingerprints[n][e.tileID.key];if(!r)continue;let i=r.difference(e.rttFingerprint[n]);QV.indexOf(i)>QV.indexOf(t)&&(t=i)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let n=e.type,r=this.painter,i=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(x0[n]&&((!this._prevType||!x0[this._prevType])&&this._stacks.push([]),this._prevType=n,this._stacks[this._stacks.length-1].push(e.id),!i))return!0;if(x0[this._prevType]||x0[n]&&i){this._prevType=n;let a=this._stacks.length-1,o=this._stacks[a]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(a))continue;let l=s.acquireRTT(r,a,this.rttSize);r.bindRTT(l),r.context.clear({color:Kt.transparent,stencil:0}),r.currentStencilSource=void 0;for(let u of o){let c=r.style._layers[u],d=c.source?this._coordsAscending[c.source][s.tileID.key]:[s.tileID];r.context.viewport.set([0,0,this.rttSize,this.rttSize]),r.renderTileClippingMasks(c,d),r.renderLayer(r,r.style.tileManagers[c.source],c,d,t),c.source&&(s.rttFingerprint[c.source]=this._rttFingerprints[c.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,PJe(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],x0[n]}return!1}};const hQe={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use â + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},pQe=lGe,ej={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:fre,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:tf.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20};var tj=class extends Ci{get _ownerWindow(){return this._container?.ownerDocument?.defaultView||window}constructor(e){super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new cQe,this._controls=[],this._mapId=uJ(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=i=>{if(i.preventDefault(),this._frameRequest&&=(this._frameRequest.abort(),null),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new Kb("webglcontextlost",{originalEvent:i}));return}for(let a of Object.values(this.style._layers))if(a.type==="custom"&&console.warn(`Custom layer with id '${a.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),a._listeners)for(let[o]of Object.entries(a._listeners))console.warn(`Custom layer with id '${a.id}' had event listeners for event '${o}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new Kb("webglcontextlost",{originalEvent:i}))},this._contextRestored=i=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let a in this._lostContextStyle.images){let o=this._lostContextStyle.images[a];o.isWebGLImage&&this.style.imageManager.updateImage(a,o,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(a){this.fire(new Et(a));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new Kb("webglcontextrestored",{originalEvent:i}))},this._onMapScroll=i=>{if(i.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t={...ej,...e,canvasContextAttributes:{...ej.canvasContextAttributes,...e.canvasContextAttributes}};if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new uQe({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:i=>this._requestRenderFrame(i),cancelRenderFrame:i=>this._cancelRenderFrame(i),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>this._handlers?.stop(!1)}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes={...t.canvasContextAttributes},this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale={...hQe,...t.locale},this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(ho.prefersReducedMotion=t.reduceMotion),this._requestManager=new yGe(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(i){throw this._cleanupContainer(),i}this._imageQueueHandle=tu.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new lQe(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let n=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new ere(n).addTo(this):void 0,this._hash?._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,St({},t.fitBoundsOptions,{duration:0}))));let r=typeof t.style=="string"||t.style?.projection?.type!=="globe";this.resize(null,r),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new hre(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new pre,t.logoPosition),this.on("style.load",()=>{if(r||this._resizeTransform(),this._camera.transform.unmodified){let i=Ev(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(i)}}),this.on("data",i=>{this._update(i.dataType==="style"),this.fire(i.dataType==="style"?new xs("styledata",i):new yr("sourcedata",i))}),this.on("dataloading",i=>{this.fire(i.dataType==="style"?new xs("styledataloading",i):new yr("sourcedataloading",i))}),this.on("dataabort",i=>{this.fire(new yr("sourcedataabort",i))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e?.onAdd)return this.fire(new Et(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let n=e.onAdd(this);this._controls.push(e);let r=this._controlPositions[t];return t.includes("bottom")?r.insertBefore(n,r.firstChild):r.appendChild(n),this}removeControl(e){if(!e?.onRemove)return this.fire(new Et(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return B1(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new kt(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,n){return this._camera.panBy(e,t,n),this}panTo(e,t,n){return this._camera.panTo(e,t,n),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,n){return this._camera.zoomTo(e,t,n),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,n){return this._camera.rotateTo(e,t,n),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,n){return this._camera.fitBounds(e,t,n),this}fitScreenCoordinates(e,t,n,r,i){return this._camera.fitScreenCoordinates(e,t,n,r,i),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,n,r,i){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,n,r,i)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(kt.convert(e),this._camera.transform):null}
vendor: 7,340 bytes, line 838
838getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,n,r){return r==null&&this.terrain&&(r=this.terrain.getElevationForLngLat(n,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,n,r??0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let n=!this._camera._moving;return n&&(this.stop(),this.fire(new Pt("movestart",e)).fire(new Pt("move",e))),this.fire(new Di("resize",e)),n&&this.fire(new Pt("moveend",e)),this}_resizeInternal(e=!0){let[t,n]=this._containerDimensions(),r=this._getClampedPixelRatio(t,n);if(this._resizeCanvas(t,n,r),this.painter.resize(t,n,r),this.painter.overLimit()){let i=this.painter.context.gl;this._maxCanvasSize=[i.drawingBufferWidth,i.drawingBufferHeight];let a=this._getClampedPixelRatio(t,n);this._resizeCanvas(t,n,a),this.painter.resize(t,n,a)}this._resizeTransform(e)}_resizeTransform(e=!0){let[t,n]=this._containerDimensions();this._camera.transform.resize(t,n,e),this._camera._requestedCameraState?.resize(t,n,e)}_getClampedPixelRatio(e,t){let{0:n,1:r}=this._maxCanvasSize,i=this.getPixelRatio(),a=e*i,o=t*i,s=a>n?n/a:1,l=o>r?r/o:1,u=Math.min(s,l);return u<1&&hn("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*i}getPixelRatio(){return this._overridePixelRatio??devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(xl.convert(e))),this._update()}setMinZoom(e){if(e??=-2,e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(n=>n.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new Pt("zoomstart")).fire(new Pt("zoom")).fire(new Pt("zoomend")).fire(new Pt("movestart")).fire(new Pt("move")).fire(new Pt("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e??=22,e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(n=>n.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new Pt("zoomstart")).fire(new Pt("zoom")).fire(new Pt("zoomend")).fire(new Pt("movestart")).fire(new Pt("move")).fire(new Pt("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e??=0,e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(n=>n.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new Pt("pitchstart")).fire(new Pt("pitch")).fire(new Pt("pitchend")).fire(new Pt("movestart")).fire(new Pt("move")).fire(new Pt("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e??=60,e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(n=>n.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new Pt("pitchstart")).fire(new Pt("pitch")).fire(new Pt("pitchend")).fire(new Pt("movestart")).fire(new Pt("move")).fire(new Pt("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e??=20,e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(kt.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(we.convert(e),this.terrain)}isMoving(){return this._camera.isMoving()||this._handlers?.isMoving()||!1}isZooming(){return this._camera.isZooming()||this._handlers?.isZooming()||!1}isRotating(){return this._camera.isRotating()||this._handlers?.isRotating()||!1}_createDelegates(e,t,n){if(e==="mouseenter"||e==="mouseover"){let r=!1;return{mousemove:i=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(i.point,{layers:a});o.length?r||(r=!0,n.call(this,new so(e,this,i.originalEvent,{features:o}))):r=!1},mouseout:()=>{r=!1}}}if(e==="mouseleave"||e==="mouseout"){let r=!1;return{mousemove:i=>{let a=t.filter(o=>this.getLayer(o));(a.length===0?[]:this.queryRenderedFeatures(i.point,{layers:a})).length?r=!0:r&&(r=!1,n.call(this,new so(e,this,i.originalEvent)))},mouseout:i=>{r&&(r=!1,n.call(this,new so(e,this,i.originalEvent)))}}}{let r=i=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(i.point,{layers:a});o.length&&(i.features=o,n.call(this,i),delete i.features)};return{[e]:r}}}_addDelegatedListener(e,t){this._delegatedListeners||={},this._delegatedListeners[e]||=[],this._delegatedListeners[e].push(t);for(let n in t.delegates)this.on(n,t.delegates[n])}_removeDelegatedListener(e,t,n){if(!this._delegatedListeners?.[e])return;let r=this._delegatedListeners[e];for(let i=0;i<r.length;i++){let a=r[i];if(a.listener===n&&a.layers.length===t.length&&a.layers.every(o=>t.includes(o))){for(let o in a.delegates)this.off(o,a.delegates[o]);r.splice(i,1);return}}}on(e,t,n){if(n===void 0)return super.on(e,t);let r=typeof t=="string"?[t]:t,i={layers:r,listener:n,delegates:this._createDelegates(e,r,n)};return this._addDelegatedListener(e,i),{unsubscribe:()=>{this._removeDelegatedListener(e,r,n)}}}once(e,t,n){if(n===void 0)return super.once(e,t);let r=typeof t=="string"?[t]:t,i={layers:r,listener:n,delegates:this._createDelegates(e,r,a=>{this._removeDelegatedListener(e,r,n),n.call(this,a)})};return this._addDelegatedListener(e,i),this}off(e,t,n){if(n===void 0)return super.off(e,t);let r=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,r,n),this}queryRenderedFeatures(e,t){if(!this.style)return[];let n,r=e instanceof we||Array.isArray(e),i=r?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||=(r?{}:e)||{},i instanceof we||typeof i[0]=="number")n=[we.convert(i)];else{let a=we.convert(i[0]),o=we.convert(i[1]);n=[a,new we(o.x,a.y),o,new we(a.x,o.y),a]}return this.style.queryRenderedFeatures(n,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=St({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._val
vendor: 6,244 bytes, line 838
838idateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){if(this._diffStyleRequest?.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let n=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new Fk(this,t||{});else return this._frameRequest&&=(this._frameRequest.abort(),null),this.style?.projection?.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,n):this.style.loadJSON(e,t,n),this}_lazyInitEmptyStyle(){this.style||(this.style=new Fk(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}async _diffStyle(e,t){if(this._diffStyleRequest?.abort(),typeof e=="string"){let n=e;this._diffStyleRequest=new AbortController;let r=this._diffStyleRequest;try{let i=await this._requestManager.transformRequest(n,"Style");if(r.signal.aborted){this._diffStyleRequest=null;return}let a=await q6(i,r);this._diffStyleRequest=null,this._updateDiff(a.data,t)}catch(i){this._diffStyleRequest=null,ef(i)||this.fire(new Et(fa(i)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(n){hn(`Unable to perform style diff: ${fa(n).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){hn("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){let t=this.style?.tileManagers[e];if(t===void 0){this.fire(new Et(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&Rv(this,io.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let n=this.style.tileManagers[e.source];if(!n)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&n.reload();for(let r in this.style._layers){let i=this.style._layers[r];i.type==="hillshade"&&i.source===e.source&&hn("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),i.type==="color-relief"&&i.source===e.source&&hn("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new kKe(this.painter,n,e,this._terrainSkirtLength),this.painter.renderToTexture=new fQe(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=r=>this._handleTerrainDataEvent(r,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new Ote({terrain:e})),this}_handleTerrainDataEvent(e,t){if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let n=e.sourceId===t;if(n&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),n&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(e.source?.type==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){return this.terrain?.options??null}areTilesLoaded(){let e=this.style?.tileManagers;for(let t of Object.values(e))if(!t.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){return this.style?.getSource(e)}setSourceTileLodParams(e,t,n){if(n){let r=this.getSource(n);if(!r)throw Error(`There is no source with ID "${n}", cannot set LOD parameters`);r.calculateTileZoom=Pk(Math.max(1,e),Math.max(1,t))}else for(let r in this.style.tileManagers)this.style.tileManagers[r].getSource().calculateTileZoom=Pk(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let n=this.style.tileManagers[e];if(!n)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?n.reload(!0):n.refreshTiles(t.map(r=>new mw(r.z,r.x,r.y)))}addImage(e,t,n={}){this._lazyInitEmptyStyle();let r=this._createStyleImage(t,n);return r?(this.style.addImage(e,r),r.userImage?.onAdd&&r.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){return this._missingStyleImageResolver=e,this.style?.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:n=1,sdf:r=!1,stretchX:i,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||Ah(e)){let{width:u,height:c,data:d}=ho.getImageData(e);return{data:new gr({width:u,height:c},d),pixelRatio:n,stretchX:i,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:r,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new Et(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:c,data:d}=e,f=e,h=T5(f.data);return{data:h?new gr({width:u,height:c}):new gr({width:u,height:c},new Uint8Array(d)),pixelRatio:n,stretchX:i,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:r,version:0,isWebG
vendor: 5,017 bytes, line 838
838LImage:h,userImage:f}}}updateImage(e,t){let n=this.style.getImage(e);if(!n)return this.fire(new Et(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:r,height:i,data:a}=t instanceof HTMLImageElement||Ah(t)?ho.getImageData(t):t;if(r===void 0||i===void 0)return this.fire(new Et(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(r!==n.data.width||i!==n.data.height)return this.fire(new Et(Error("The width and height of the updated image must be that same as the previous version of the image")));if(n.isWebGLImage=T5(a),n.isWebGLImage)n.userImage=t;else{let o=!(t instanceof HTMLImageElement||Ah(t));n.data.replace(a,o)}return this.style.updateImage(e,n),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new Et(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}async loadImage(e){let t=await tu.getImage(await this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t}listImages(){return this.style?.listImages()??[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style?.getLayer(e)}getLayersOrder(){return this.style?.getLayersOrder()??[]}setLayerZoomRange(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}setFilter(e,t,n={}){return this.style?.setFilter(e,t,n),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,n,r={}){return this.style?.setPaintProperty(e,t,n,r),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,n,r={}){return this.style.setLayoutProperty(e,t,n,r),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,n={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,n,r=>{r||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,n=>{n||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){if(!this._container?.clientWidth||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){let e=!1,t=mD(r=>{this._trackResize&&!this._removed&&(this.resize(r),this.redraw())},50),n=this._ownerWindow.ResizeObserver??ResizeObserver;this._resizeObserver=new n(r=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(r)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),n=this._container;n.classList.add("maplibregl-map");let r=this._canvasContainer=nn.create("div","maplibregl-canvas-container",n);this._interactive&&r.classList.add("maplibregl-interactive"),this._canvas=nn.create("canvas","maplibregl-canvas",r),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","regi
838on"),this._resizeCanvas(e[0],e[1],t);let i=this._controlContainer=nn.create("div","maplibregl-control-container",n),a=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])a[o]=nn.create("div",`maplibregl-ctrl-${o} `,i);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,n){let r=Math.round(n*e),i=Math.round(n*t);this._canvas.width=r,this._canvas.height=i,this._canvas.style.width=`${r/n}px`,this._canvas.style.height=`${i/n}px`}_setupPainter(){let e={...this._canvasContextAttributes,alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0},t=null;this._canvas.addEventListener("webglcontextcreationerror",r=>{t=r},{once:!0});let n=this._canvas.getContext("webgl2",e);if(!n)throw new Qne(e,t);this.painter=new RJe(n,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Bte({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?._loaded?(this._styleDirty||=e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){let t=this._idleTriggered?this._fadeDuration:0,n=this.style.projection?.transitionState>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let r=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let o=this._camera.transform.zoom,s=Nn();this.style.zoomHistory.update(o,s);let l=new Zn(o,{now:s,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=l.crossFadingFactor();(u!==1||u!==this._crossFadingFactor)&&(r=!0,this._crossFadingFactor=u),this.style.update(l)}let i=this.style.projection?.transitionState>0!==n;this._camera.transform.setTransitionState(this.style.projection?.transitionState),this.style&&(this._sourcesDirty||i)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=this.style?._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,i),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new Di("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new Di("load"))),this.style&&(this.style.hasTransitions()||r)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty||this.painter.renderToTexture?.needsFollowUpFrame;return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new Di("idle")),this._loaded&&!this._fullyLoaded&&!a&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&=(this._frameRequest.abort(),null),this._render(0)),this}remove(){this._hash&&this._hash.remove();for(let t of this._controls)t.onRemove(this);this._controls=[],this._frameRequest&&=(this._frameRequest.abort(),null),this._renderTaskQueue.clear(),this._diffStyleRequest?.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),tu.removeThrottleControl(this._imageQueueHandle),this._resizeObserver?.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e?.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new Di("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,ho.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!ef(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return pQe}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}};const mQe={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0};var gQe=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),n=t===this._map.getMaxZoom(),r=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=n,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),n=this._map.getRoll(),r=this._map.getBearing(),i=1/Math.cos(Sr(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${i}) rotateZ(${-n}deg) rotateX(${t}deg) rotateZ(${-r}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${i}) rotateX(${t}deg) rotateZ(${-r}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-r-n}deg)`;return}this._compassIcon.style.transform=`rotate(${-r}deg)`},this._setButtonTitle=(t,n)=>{let r=this._map._getUIString(`NavigationControl.${n}`);t.title=r,t.setAttribute("aria-label",r)},this.options=St({},mQe,e),this._container=nn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),nn.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),nn.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=nn.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new yQe(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let n=nn.create("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}},yQe=class{constructor(e,t,n=!1){this.mousedown=i=>{this.startMove(i,nn.mousePos(this.element,i)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=i=>{this.move(i,nn.mousePos(this.element,i))},this.mouseup=i=>{this._rotatePitchHandler.dragEnd(i),this.offTemp()},this.touchstart=i=>{i.targetTouches.length===1?(this._startPos=this._lastPos=nn.touchPos(this.element,i.targetTouches)[0],this.startMove(i,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=i=>{i.targetTouches.length===1?(this._lastPos=nn.touchPos(this.element,i.targetTouches)[0],this.move(i,this._lastPos)):this.reset()},this.touchend=i=>{i.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let r=new YJe;this._rotatePitchHandler=new jv({clickTolerance:3,move:(i,a)=>{let o=t.getBoundingClientRect(),s=new we((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:fJ(new we(i.x,a.y),a,s),pitchDelta:n?(a.y-i.y)*-.5:void 0}},moveStateManager:r,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),nn.disableDrag()}move(e,t){let n=this.map,{bearingDelta:r,pitchDelta:i}=this._rotatePitchHandler.dragMove(e,t)||{};r&&n.setBearing(n.getBearing()+r),i&&n.setPitch(n.getPitch()+i)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){nn.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};let Gf;async function vQe(e=!1){if(Gf!==void 0&&!e)return Gf;
vendor: 13,890 bytes, line 838
838if(window.navigator.permissions===void 0)return Gf=!!window.navigator.geolocation,Gf;try{Gf=(await window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch{Gf=!!window.navigator.geolocation}return Gf}function mre(e,t,n,r=!1){if(r||!n.getCoveringTilesDetailsProvider().allowWorldCopies())return e?.wrap();let i=new kt(e.lng,e.lat);if(e=new kt(e.lng,e.lat),t){let a=new kt(e.lng-360,e.lat),o=new kt(e.lng+360,e.lat),s=n.locationToScreenPoint(e).distSqr(t);n.locationToScreenPoint(a).distSqr(t)<s?e=a:n.locationToScreenPoint(o).distSqr(t)<s&&(e=o)}for(;Math.abs(e.lng-n.center.lng)>180;){let a=n.locationToScreenPoint(e);if(a.x>=0&&a.y>=0&&a.x<=n.width&&a.y<=n.height)break;e.lng>n.center.lng?e.lng-=360:e.lng+=360}return e.lng!==i.lng&&n.isPointOnMapSurface(n.locationToScreenPoint(e))?e:i}const yD={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function gre(e,t,n){let r=e.classList;for(let i in yD)r.remove(`maplibregl-${n}-anchor-${i}`);r.add(`maplibregl-${n}-anchor-${t}`)}const nj={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},yre="#3FB1CE";function ms(e,t,n=[]){let r=nn.createNS("http://www.w3.org/2000/svg",e);for(let i in t)r.setAttributeNS(null,i,t[i]);for(let i of n)r.appendChild(i);return r}let W9;function _Qe(){return W9||(W9=ms("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[ms("g",{"fill-rule":"nonzero"},[ms("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>ms("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),ms("g",{fill:yre},[ms("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),ms("g",{opacity:"0.25",fill:"#000000"},[ms("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),ms("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),ms("g",{transform:"translate(8.0, 8.0)"},[ms("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),ms("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),W9)}function bQe(e){return e.firstElementChild.children[1]}var th=class extends Us{},vre=class extends Us{},Vk=class extends Ci{constructor(e){if(super(),this._onClick=t=>{this.fire(new vre("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let n=nj[t.key];if(!n)return;t.preventDefault(),t.stopPropagation();let r=t.shiftKey?10:1,i=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new we(i.x+n[0]*r,i.y+n[1]*r))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new th("dragstart"))),this.fire(new th("drag"))},this._onKeyUp=t=>{nj[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let n=t.originalEvent.target,r=this._element;this._popup&&(n===r||r.contains(n))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{let t=this._map?.terrain;if(!t||!this._isInViewport())return;let n=this._isCovered(t);n&&this._popup?.isOpen()&&this._popup.remove(),this._element.style.opacity=n?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",n)},this._updateCovered=mD(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=mre(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let n="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?n=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(n=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let r="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?r="rotateX(0deg)":this._pitchAlignment==="map"&&(r=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&t?.type!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${yD[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${r} ${n}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let n=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=n}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new th("dragstart"))),this.fire(new th("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new th("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=e?.anchor||"center",this._color=e?.color||yre,this._scale=e?.scale||1,this._draggable=e?.draggable||!1,this._clickTolerance=e?.clickTolerance||0,this._subpixelPositioning=e?.subpixelPositioning||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=e?.rotation||0,this._rotationAlignment=e?.rotationAlignment||"auto",this._pitchAlignment=e?.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e?.opacity,e?.opacityWhenCovered),e?.element)this._element=e.element,this._offset=we.convert(e?.offset||[0,0]);else{this._defaultMarker=!0,this._element=nn.create("div");let t=_Qe().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),bQe(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=we.convert(e?.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),gre(this._element,this._anchor,"marker"),e?.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=kt.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new th("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){if(!this._isInViewport())return;let e=this._map?.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let n=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==n&&(this._element.style.opacity=n,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,n=e.getElevationForLngLat(this._lngLat,t),r=Math.max(0,-this._offset.y)/t.pixelsPerMeter,i=Math.sin(this._map.getPitch()*Math.PI/180)*r;return t.isLocationOccluded(this._lngLat,e,n+i)}getOffset(){return this._offset}setOffset(e){return this._offset=we.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1)}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}};const xQe={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let cb=0,Hg=!1;var nh=class extends Us{},jk=class extends Us{},_re=class extends Us{},wQe=class extends Ci{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new jk("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
838RROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new jk("geolocate",t)),this._finish()}},this._updateCamera=t=>{let n=new kt(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),a=St({bearing:i},this.options.fitBoundsOptions),o=xl.fromLngLat(n,r);this._map.fitBounds(o,a,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let n=new kt(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&Hg)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new _re("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let n=t?.[0]instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!n&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new nh("trackuserlocationend")),this.fire(new nh("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=nn.create("button","maplibregl-ctrl-geolocate",this._container),nn.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){hn("Geolocation support is not available so the GeolocateControl will be disabled.");let n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n)}else{let n=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=nn.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Vk({element:this._dotElement}),this._circleElement=nn.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vk({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=St({},xQe,e)}onAdd(e){return this._map=e,this._container=nn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),vQe().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,cb=0,Hg=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
838RROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),n=this._map.unproject([t.x+100,t.y]),r=e.distanceTo(n)/100,i=2*this._accuracy/r;this._circleElement.style.width=`${i.toFixed(2)}px`,this._circleElement.style.height=`${i.toFixed(2)}px`}trigger(){if(!this._setup)return hn("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new nh("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":cb--,Hg=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new nh("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new nh("trackuserlocationstart")),this.fire(new nh("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),cb++;let e;cb>1?(e={maximumAge:6e5,timeout:0},Hg=!0):(e=this.options.positionOptions,Hg=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}};const SQe={maxWidth:100,unit:"metric"};var CQe=class{constructor(e){this._onMove=()=>{rj(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,rj(this._map,this._container,this.options)},this.options={...SQe,...e}}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=nn.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};function rj(e,t,n){let r=n?.maxWidth||100,{width:i,height:a}=e._camera.transform,o=a/2,s=i/2,l=e.unproject([s-r/2,o]),u=e.unproject([s+r/2,o]),c=Math.round(e.project(u).x-e.project(l).x),d=Math.min(r,c,i),f=l.distanceTo(u);if(n?.unit==="imperial"){let h=3.2808*f;h>5280?qg(t,d,h/5280,e._getUIString("ScaleControl.Miles")):qg(t,d,h,e._getUIString("ScaleControl.Feet"))}else n?.unit==="nautical"?qg(t,d,f/1852,e._getUIString("ScaleControl.NauticalMiles")):f>=1e3?qg(t,d,f/1e3,e._getUIString("ScaleControl.Kilometers")):qg(t,d,f,e._getUIString("ScaleControl.Meters"))}function qg(e,t,n,r){let i=kQe(n),a=i/n;e.style.width=`${t*a}px`;let o=`${i}Â ${r}`;e.textContent!==o&&(e.textContent=o)}function TQe(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function kQe(e){let t=10**(`${Math.floor(e)}`.length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:TQe(n),t*n}const EQe={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0}
838,MQe=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");var Uk=class extends Us{},AQe=class extends Ci{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new Uk("close"))),this),this._update=t=>{let n=this._lngLat||this._trackPointer;if(!this._map||!n||!this._content)return;if(!this._container){if(this._container=nn.create("div","maplibregl-popup",this._map.getContainer()),this._tip=nn.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=mre(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let r;if(t&&"point"in t&&t.point&&(r=t.point),this._trackPointer&&!r)return;let i=this._flatPos=this._pos=this._trackPointer&&r?r:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&r?r:this._map._camera.transform.locationToScreenPoint(this._lngLat));let a=this.options.anchor,o=bre(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=PQe(this.options.padding),d;d=i.y+o.bottom.y<u+c.top?["top"]:i.y>this._map._camera.transform.height-u-c.bottom?["bottom"]:[],i.x<l/2+c.left?d.push("left"):i.x>this._map._camera.transform.width-l/2-c.right&&d.push("right"),a=d.length===0?"bottom":d.join("-")}let s=i.add(o[a]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${yD[a]} translate(${s.x}px,${s.y}px)`,gre(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=St(Object.create(EQe),e)}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new Uk("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=kt.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),n=document.createElement("body"),r;for(n.innerHTML=e;r=n.firstChild,r;)t.appendChild(r);return this.setDOMContent(t)}getMaxWidth(){return this._container?.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=nn.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=nn.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(MQe);e&&e.focus()}};function bre(e){if(!e)return bre(new we(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new we(0,0),top:new we(0,e),"top-left":new we(t,t),"top-right":new we(-t,t),bottom:new we(0,-e),"bottom-left":new we(t,-t),"bottom-right":new we(-t,-t),left:new we(e,0),right:new we(-e,0)}}if(e instanceof we||Array.isArray(e)){let t=we.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:we.convert(e.center||[0,0]),top:we.convert(e.top||[0,0]),"top-left":we.convert(e["top-left"]||[0,0]),"top-right":we.convert(e["top-right"]||[0,0]),bottom:we.convert(e.bottom||[0,0]),"bottom-left":we.convert(e["bottom-left"]||[0,0]),"bottom-right":we.convert(e["bottom-right"]||[0,0]),left:we.convert(e.left||[0,0]),right:we.convert(e.right||[0,0])}}function PQe(e){return e?{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}:{top:0,right:0,bottom:0,left:0}}function xre(e){tf.WORKER_URL=e}const DQe=Object.freeze(Object.defineProperty({__proto__:null,AJAXError:S2,AttributionControl:hre,BoxZoomHandler:tre,CanvasSource:ine,CooperativeGesturesHandler:dre,DoubleClickZoomHandler:sre,DragPanHandler:lre,DragRotateHandler:ure,EXTENT:He,EdgeInsets:Ok,ErrorEvent:Et,Event:Us,Evented:Ci,GPUInitializationError:Qne,GeoJSONSource:Qte,GeolocateControl:wQe,GeolocateErrorEvent:_re,GeolocateEvent:nh,GeolocatePositionEvent:jk,Hash:ere,ImageSource:O1,KeyboardHandler:are,LngLat:kt,LngLatBounds:xl,LogoControl:pre,Map:tj,MapBoxZoomEvent:Tk,MapContextEvent:Kb,MapLibreEvent:Di,MapLibreMap:tj,MapMouseEvent:so,MapMovementEvent:Pt,MapProjectionEvent:Bte,MapSourceDataEvent:yr,MapStyleDataEvent:xs,MapStyleImageMissingEvent:Fte,MapStyleLoadEvent:Ck,MapTerrainEvent:Ote,MapTouchEvent:cy,MapWheelEvent:Rte,Marker:Vk,MarkerClickEvent:vre,MarkerDragEvent:th,MercatorCoordinate:Fn,NavigationControl:gQe,Point:we,Popup:AQe,PopupEvent:Uk,RasterDEMTileSource:Xte,RasterTileSource:eD,ScaleControl:CQe,ScrollZoomHandler:ore,Style:Fk,TwoFingersTouchPitchHandler:ire,TwoFingersTouchRotateHandler:rre,TwoFingersTouchZoomHandler:nre,TwoFingersTouchZoomRotateHandler:cre,VectorTileSource:Yte,VideoSource:rne,config:tf,createTileMesh:tne,getGlobalDispatcher:qte,now:Nn,setWorkerUrl:xre},Symbol.toStringTag,{value:"Module"})),IQe=""+new URL("maplibre-gl-worker-Ceb832pW.js",import.meta.url).href,ij=globalThis.setInterval,zo=(e,t={})=>{const{$fetch:n}=Wo();return n(e,t)};xre(IQe);async function wre(e,t,n,r,i){const{Map:a,NavigationControl:o,GeolocateControl:s,Popup:l,ScaleControl:u,LngLat:c,LngLatBoundsLike:d,GeoJSONFeature:f,MapMouseEvent:h,GeoJSONSource:p,PaddingOptions:g}=await Cn(async()=>{const{Map:Be,NavigationControl:Ze,GeolocateControl:wt,Popup:yt,ScaleControl:jt,LngLat:zt,LngLatBoundsLike:xn,GeoJSONFeature:jn,MapMouseEvent:Yr,GeoJSONSource:ts,PaddingOptions:Ma}=await Promise.resolve().then(()=>DQe);return{Map:Be,NavigationControl:Ze,GeolocateControl:wt,Popup:yt,ScaleControl:jt,LngLat:zt,LngLatBoundsLike:xn,GeoJSONFeature:jn,MapMouseEvent:Yr,GeoJSONSource:ts,PaddingOptions:Ma}},void 0,import.meta.url),{Feature:v,Geometry:b,FeatureCollection:x}=await Cn(async()=>{const{Feature:Be,Geometry:Ze,FeatureCollection:wt}=await import("./D-PwTACt.js");return{Feature:Be,Geometry:Ze,FeatureCollection:wt}},[],import.meta.url),_=(await Cn(async()=>{const{default:Be}=await import("./Bs482S5m.js");return{default:Be}},__vite__mapDeps([14,15]),import.meta.url)).default,w=(await Cn(async()=>{const{default:Be}=await import("./81G4Sj40.js");return{default:Be}},__vite__mapDeps([16,17]),import.meta.url)).default,C=(await Cn(async()=>{const{default:Be}=await import("./CbC7B6Pq.js");return{default:Be}},__vite__mapDeps([18,17,15]),import.meta.url)).default,T=(await Cn(async()=>{const{default:Be}=await import("./Nbq5UwG2.js");return{default:Be}},__vite__mapDeps([19,17,15]),import.meta.url)).default,k="points",A="highlight-point",P="geocoder",D="geometry",$="feature-point",O="unclustered-point-default",z="cluster
838s",j="feature-geometry-polygon",B="feature-geometry-line",R=Bt(),J=G([]),K=G([]),Z=G(()=>{}),ne=G([]),se=G(),ce=G(t.zoom),Re=G(t.center);let Ue,$e;const ke=G(!1);let Ve=!1,nt=null;const xe={type:"FeatureCollection",features:[]},Pe={type:"FeatureCollection",features:[]},je={type:"FeatureCollection",features:[]},Fe={type:"FeatureCollection",features:[]},re=async()=>{if(await le(),typeof e.value>"u")return;const Be=`/map/configuration/${t.option}.json`;t={..._t((await zW(Be,"$nDx_QdE8jz")).data.value),...t,container:e.value};try{R.value=up(new a(t))}catch{R.value=void 0;return}Oe(),t.scrollZoom===!1&&R.value.scrollZoom.disable(),R.value.on("load",()=>{setTimeout(()=>{if(X(),ve(),ee(),oe(),Ue=new l({anchor:"top",className:"maplibregl-popup-cluster"}).setHTML(" ").on("close",Ge),$e=new l({closeButton:!1,closeOnClick:!1,anchor:"top",className:"maplibregl-popup-hover"}),typeof i<"u"&&d6(i,()=>{typeof Ue<"u"&&Ue.setDOMContent(i.value)},{immediate:!0}),RM(r)){let wt=ij(()=>{R.value?.loaded()&&(r(),clearInterval(wt))},1e3)}},10)})},le=async()=>{typeof R.value==typeof a&&R.value?.remove(),R.value=void 0;const{$off:Be}=vt();Be("popinDetail:close",Me)},ye=(Be,Ze,wt)=>{setTimeout(()=>{typeof wt>"u"&&(wt={top:0,bottom:0,left:0,right:0}),R.value?.easeTo({center:Be,zoom:Ze,padding:wt})},10)},Me=Be=>{ye(Re.value,ce.value??8)},ve=()=>{R.value?.getSource(k)?.setData(xe),R.value?.getSource(A)?.setData(Pe),R.value?.getSource(P)?.setData(je),R.value?.getSource(D)?.setData(Fe)},X=()=>{R.value?.setPaintProperty("feature-geometry-polygon","fill-color",Rb().hexaToRGB(t.primary_color,.3)),R.value?.setPaintProperty("geometry-border","line-color",Rb().hexaToRGB(t.primary_color)),R.value?.setPaintProperty("geometry","fill-color",{base:1,stops:[[15.5,Rb().hexaToRGB(t.primary_color,.3)]]})},ee=()=>{typeof t.icons>"u"||t.icons.forEach(Be=>{R.value?.loadImage(Be.path,(Ze,wt)=>{if(Ze)throw Ze;R.value?.addImage(Be.id,wt,{sdf:!1})}),K.value.push("unclustered-point-"+Be.id),Be.id!=="default"&&R.value?.addLayer({id:"unclustered-point-"+Be.id,type:"symbol",source:k,filter:["all",["!has","point_count"],["==","icon",Be.id]],layout:{"icon-image":Be.id||"default","icon-anchor":Be.anchor||"bottom","icon-allow-overlap":!0}})})},oe=()=>{typeof R.value>"u"||(R.value.on("mouseenter",O,Be=>{t.points?.shouldDisplayPopupOnHover&&(R.value.getCanvas().style.cursor="pointer",it(Be.features[0],!1))}),R.value.on("mouseleave",O,Be=>{R.value.getCanvas().style.cursor="",mt()}),R.value.on("mouseenter",$,Be=>{t.points?.shouldDisplayPopupOnHover&&(R.value.getCanvas().style.cursor="pointer")}),R.value.on("mouseleave",$,Be=>{R.value.getCanvas().style.cursor=""}),R.value.on("mouseenter",j,Be=>{t.points?.shouldDisplayPopupOnHover&&(R.value.getCanvas().style.cursor="pointer",it(Be.features[0],!1))}),R.value.on("mousemove",j,Be=>{if(t.points?.shouldDisplayPopupOnHover){const Ze=Be.features[0];if(typeof Ze>"u")return;it(Ze)}}),R.value.on("mouseleave",j,Be=>{R.value.getCanvas().style.cursor="",mt()}),R.value.on("mouseenter",B,Be=>{t.points?.shouldDisplayPopupOnHover&&(R.value.getCanvas().style.cursor="pointer")}),R.value.on("mouseleave",B,Be=>{R.value.getCanvas().style.cursor=""}),R.value.on("mouseenter",z,Be=>{t.points?.shouldDisplayPopupOnHover&&(R.value.getCanvas().style.cursor="pointer")}),R.value.on("mouseleave",z,Be=>{R.value.getCanvas().style.cursor=""}),R.value.on("zoomend",()=>{}),R.value.on("click",ge),vt().$on("popinDetail:close",Me))},_e=()=>{ce.value=R.value?.getZoom(),Re.value=R.value?.getCenter()},ge=Be=>{const Ze=R.value?.queryRenderedFeatures(Be.point,{layers:["clusters"]}),wt=R.value?.queryRenderedFeatures(Be.point,{layers:["feature-point","feature-geometry-polygon","feature-geometry-line"]});if(typeof Ze<"u"&&Ze.length>0&&typeof Ze[0].properties<"u"){const yt=Ze[0].properties.cluster_id,jt=Ze[0].properties.point_count,zt=R.value?.getSource(k);typeof zt<"u"&&(yt!==se.value?zt.getClusterExpansionZoom(yt,(xn,jn)=>{if(xn||typeof jn>"u"||jn==null)return;const Yr=Ze[0].geometry.coordinates;jn>=t.maxZoom?(R.value?.setFeatureState({id:yt,source:k},{active:1}),zt?.getClusterLeaves(yt,jt,0,(ts,Ma)=>{if(typeof Ma?.[0].properties?.onClick?.args>"u")return;const Hs={...Ma[0].properties?.onClick?.args,coordinates:Yr};ne.value=[];const $p=[];Ma?.forEach((yu,vu)=>{ne.value.push(yu.properties),$p.push(yu.properties.pid+"_"+yu.properties.uid)}),Hs.formData["tx_cimsearchelastic_displaysearch[identifiers]"]=$p,se.value=yt,De(Hs)}),_e(),ye(Yr,jn)):(_e(),ye(Yr,jn))}):Ge())}else if(typeof wt<"u"&&wt.length>0){const yt=wt[0];let jt;yt.geometry.type==="LineString"?jt=Be.lngLat:yt.geometry.type==="Point"?jt=yt.geometry.coordinates.slice():jt=T(yt).geometry.coordinates.slice();
838const zt=yt.properties??null;if(typeof zt.onClick<"u"){const xn={...typeof zt.onClick=="string"?JSON.parse(zt.onClick):zt.onClick,properties:zt};if(_e(),typeof yt.geometry<"u")lt(yt.geometry);else{const jn=R.value?.getZoom()>t.maxZoom-2?R.value?.getZoom():t.maxZoom-2;ye(jt,jn,{top:10,bottom:10})}typeof yt<"u"&&(mt(),ut(xn))}se.value=void 0}else Ge()},Oe=()=>{t.controls?.navigation?.enable&&R.value?.addControl(new o,t.controls?.navigation?.position||"bottom-right"),t.controls?.geolocate?.enable&&R.value?.addControl(new s({positionOptions:{enableHighAccuracy:!0},trackUserLocation:!0}),t.controls?.geolocate?.position||"bottom-right"),t.controls?.scale?.enable&&R.value?.addControl(new u(t),t.controls?.scale?.position||"bottom-left")},Se=Be=>{Be.forEach(Ze=>{const wt={...Ze};if(delete wt.mapLatitude,delete wt.mapLongitude,delete wt.mapGeometry,typeof Ze.mapGeometry<"u"&&Ze.mapGeometry.length>0)try{const yt=JSON.parse(Ze.mapGeometry);Array.isArray(yt)?yt.forEach(jt=>Te(jt,wt)):Te(yt,wt)}catch(yt){console.error({from:"useMapLibre",error:"Geometry could not be parsed",data:Ze.mapGeometry,originalError:yt})}else typeof Ze.mapLatitude<"u"&&typeof Ze.mapLongitude<"u"&&Ze.mapLatitude!==0&&Ze.mapLongitude!==0&&(Ze.mapLatitude!==1||Ze.mapLongitude!==1)&&Ze.mapLatitude>=-90&&Ze.mapLatitude<=90&&Ze.mapLongitude>=-180&&Ze.mapLongitude<=180&&he(Ze?.mapLatitude??Ze.latitude,Ze?.mapLongitude??Ze.longitude,{...Ze})})},he=(Be,Ze,wt)=>{if(typeof Be>"u"||typeof Ze>"u"){console.error("No longitude/latitude provided for item",wt.title,`${wt.type}_${wt.uid}`);return}let yt=new c(Ze,Be),jt={...wt,longitude:Ze,latitude:Be};return typeof jt.mapLatitude<"u"&&delete jt.mapLatitude,typeof jt.mapLongitude<"u"&&delete jt.mapLongitude,J.value.push(yt),bt(jt,k,xe)},Te=(Be,Ze)=>{if(typeof Be>"u")throw"No geometry provided";if(typeof Be.coordinates>"u")throw"No geometry coordinates provided";if(typeof Be.type>"u")throw"No geometry type provided";let wt={type:"Feature",geometry:Be,properties:Ze};return Fe.features.push(wt),fe(D,Fe),wt},ze=()=>{J.value=[],qe(k,xe),qe(A,Pe),qe(P,je),qe(D,Fe)},qe=(Be,Ze)=>{Ze.features=[],fe(Be,Ze)},lt=Be=>{let Ze=[1/0,1/0,-1/0,-1/0],wt=_(xe),yt=_(Fe);const jt={top:80,bottom:80,left:60,right:60};if(typeof Be<"u")Ze=_(Be),R.value?.setPadding(jt),R.value?.fitBounds(Ze);else if(xe.features.length>0||Pe.features.length>0||je.features.length>0||Fe.features.length>0){if(xe.features.length>0&&Fe.features.length>
8380){const zt=w(wt),xn=w(yt),jn=C(zt,xn);Ze=_(jn)}else{if(xe.features.length>0)if(xe.features.length===1){R.value?.jumpTo({center:xe.features[0].geometry.coordinates,zoom:15});return}else Ze=wt;Fe.features.length>0&&(Ze=yt)}R.value?.setPadding(jt),R.value?.fitBounds(Ze)}},bt=(Be,Ze,wt)=>{const yt={type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(Be.longitude),parseFloat(Be.latitude)]},properties:Be};return wt.features.push(yt),fe(Ze,wt),yt},fe=(Be,Ze)=>{typeof R.value<"u"&&typeof Z.value[Be]>"u"&&(Z.value[Be]=setTimeout(()=>{const wt=ij(()=>{let yt=R.value?.getSource(Be);typeof R.value<"u"&&R.value?.loaded()&&typeof yt<"u"&&(yt.setData(Ze),R.value?.triggerRepaint(),clearInterval(wt))},25);delete Z.value[Be]},15))},pe=(Be,Ze,wt,yt,jt)=>Be.map(zt=>{const xn={type:zt.type,uid:zt.uid,pid:zt.pid,title:zt.title,mapLatitude:zt.mapLatitude,mapLongitude:zt.mapLongitude,mapGeometry:zt.mapGeometry,categories:ur(zt.categories)?[]:zt.categories.map(Yr=>Yr.title??Yr),onClick:void 0},jn={"tx_cimsearchelastic_displaysearch[contentElementId]":n.settings.content_element,"tx_cimsearchelastic_displaysearch[itemUid]":xn.uid,"tx_cimsearchelastic_displaysearch[itemPid]":xn.pid};return Ze==="displayListPopin"&&(xn.onClick={link:zt?.links?.[0],callback:Ze,args:{urlShow:zt.popinUrl,urlCluster:n.urlShow,formData:jn}}),Ze==="displayPopup"&&(xn.onClick={link:zt?.links?.[0],callback:Ze,args:{templateId:"popin_poi",additionalCssClasses:yt,contentId:jt}}),xn}),De=Be=>{if(Ue.setHTML(" ").setLngLat(Be.coordinates),typeof Be.formData>"u")return;Be.additionalCssClasses!==""&&Ue.addClassName(Be.additionalCssClasses),ne.value=[],ke.value=!0;let Ze=new FormData;Object.keys(Be.formData).forEach(wt=>{i6(Be.formData[wt])||Ze.append(wt,Be.formData[wt])}),ne.value=[],zo(Be.urlCluster,{method:"POST",body:new URLSearchParams(Ze),onResponse({request:wt,response:yt,options:jt}
838){const zt=yt._data?.results||[];if(zt.length>0)if(zt.forEach(xn=>{ne.value.push(xn)}),typeof i?.value<"u")Ue.setDOMContent(i.value).addTo(R.value);else throw`clusterResultsRef is undefined (value: ${i.value})`}})},Ge=()=>{ke&&(ne.value=[],ke.value=!1,typeof Ue<"u"&&Ue.setHTML(" "),typeof R.value<"u"&&typeof se.value<"u"&&(R.value.setFeatureState({id:se.value,source:k},{active:0}),se.value=void 0),ye(Re.value,ce.value??15))},ut=Be=>{const{$emit:Ze}=vt();Be.link&&typeof Be.link<"u"&&typeof Be.link?.href<"u"&&Ze("popinDetail:open",{link:Be.link,showArrows:!1,result:Be.properties})},it=(Be,Ze=!1)=>{if(t.points?.shouldDisplayPopupOnHover&&nt!==Be){const wt=T(Be).geometry.coordinates.slice(),yt=Be.properties;let jt=yt.title;if(ur(jt)&&!ur(yt.categories)&&(jt=(JSON.parse(yt.categories)??[])[0].title),ur(jt)&&!ur(yt.specificCategories)&&(jt=(JSON.parse(yt.specificCategories)??[])[0].title),!ur(jt)){Ve&&$e.remove();const zt=` 839 <div class="contenu_bloc"> 840 <div class="content"> 841 <p class="subtitle">${jt}</p> 842 </div> 843 </div>`;$e.setLngLat(wt).setHTML(zt),Ze&&$e.trackPointer(),$e.addTo(R.value),nt=Be,Ve=!0}}},mt=()=>{$e.remove(),Ve=!1};return{create:re,destroy:le,addMarker:he,addFeatures:Se,clearAll:ze,fitBounds:lt,prepareResults:pe,closePopupCluster:Ge,moveTo:ye,map:R,options:t,data:{markers:J,layerIds:K,refresh:Z,popupItems:ne,lastZoom:ce,lastCenter:Re,isClusterOpen:ke},layers:{LAYER_POINTS:k,LAYER_HIGHLIGHT:A,LAYER_GEOCODER:P,LAYER_GEOMETRY:D}}}const vD=Q({__name:"FieldGeoloc",props:{colPos:{},result:{},header:{},headerLayout:{},config:{},uid:{},showInSummary:{type:Boolean}},async setup(e){let t,n;const r=e,i=Yt(),a=G(i.initialData),o=G(),s={container:o,option:"Main/block",style:"/map/styles/ign.json",center:[i.siteBuilderInfos?.coordinates.longitude??6.026403379674599,i.siteBuilderInfos?.coordinates.latitude??47.23573908488227],zoom:8,minZoom:6,primary_color:a.value.siteBuilderInfos.colors.cim_primary_color.hexa,maxZoom:17,antialias:!0},l=W(()=>r.result?.mapLatitude&&r.result?.mapLongitude),u=([t,n]=GE(()=>wre(o,s,()=>{},()=>{u.addFeatures([r.result]),u.fitBounds()},void 0)),t=await t,n(),t);return Ot(()=>{l.value&&u.create()}),br(()=>{l.value&&u.destroy()}),(c,d)=>{const f=RX,h=Mr;return e.result?(E(),V(h,{key:0,header:e.header||e.config?.title,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,class:L([m(ru)(),m(F)({})]),showInSummary:e.showInSummary},{content:N(()=>[Y("div",{class:L([m(rn)({flexDir:{base:"column",sm:"row",md:e.colPos===0?"row":"column"},gap:"0",alignItems:"stretch"}),m(F)()])},[m(l)?(E(),U("div",{key:0,class:L(m(F)({width:{base:"100%",sm:"1/2",md:e.colPos===0?"5/12":"100%"},_print:{display:"none"}}))},[Y("div",{ref_key:"mapContainerRef",ref:o,class:L(m(F)({position:"relative",minHeight:{base:"22rem",md:e.colPos===0?"22rem":null},height:{base:"100%",md:e.colPos===0?"100%":"22rem"},"& > .maplibregl-canvas-container":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",borderRadius:"0",overflow:"hidden"},"& > .maplibregl-control-container":{position:"absolute",bottom:"0",left:"0",width:"100%",bgColor:"{colors.white}/80"}}))},null,2)],2)):ae("",!0),H(f,{result:e.result,colPos:e.colPos,isLocated:m(l)},null,8,["result","colPos","isLocated"])],2)]),_:1},8,["header","header-layout","uid","class","showInSummary"])):ae("",!0)}}}),$Qe=Q({__name:"T3CeMaskBlocGeolocation",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},directory:{default:void 0},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=vD;return E(),V(r,{header:e.header,result:e.directory,colPos:e.colPos,"header-layout":e.headerLayout,uid:e.uid,showInSummary:e.show_in_summary},null,8,["header","result","colPos","header-layout","uid","showInSummary"])}}}),LQe={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 35 35"};function RQe(e,t){return E(),U("svg",LQe,[...t[0]||(t[0]=[i1('<g data-name="Groupe 7035"><g data-name="Groupe 7034"><path fill="#101010" d="M17.5 6.08a.87.87 0 0 0 0 1.74c2.89 0 5.24 2.35 5.24 5.24a.87.87 0 0 0 1.74 0 6.99 6.99 0 0 0-6.99-6.99Z" data-name="Tracé 49613"></path></g></g><g data-name="Groupe 7037"><g data-name="Groupe 7036"><path fill="#101010" d="M15.25 2.82c-5.66 1.24-9.24 6.83-8 12.48.38 1.76 1.22 3.39 2.41 4.73a6.76 6.76 0 0 1 1.72 4.46v1.75c0 1.14.73 2.14 1.81 2.49.37 2.38 2.6 4 4.98 3.63a4.35 4.35 0 0 0 3.63-3.63 2.62 2.62 0 0 0 1.81-2.49v-1.75c.
84302-1.67.65-3.28 1.77-4.52 3.82-4.36 3.37-10.99-.99-14.8a10.49 10.49 0 0 0-9.16-2.35Zm2.25 27.86a2.68 2.68 0 0 1-2.47-1.81h4.94a2.67 2.67 0 0 1-2.47 1.81m4.37-4.43c0 .48-.39.87-.87.87h-7a.87.87 0 0 1-.87-.87v-.87h8.74zm2.21-7.42a8.8 8.8 0 0 0-2.16 4.8h-8.84c-.2-1.76-.94-3.42-2.12-4.75-3.21-3.61-2.88-9.13.73-12.34s9.13-2.88 12.34.73a8.745 8.745 0 0 1 .04 11.56Z" data-name="Tracé 49614"></path></g></g><g data-name="Groupe 7039"><g data-name="Groupe 7038"><path fill="#101010" d="M5.2 13.08H3.45a.87.87 0 0 0 0 1.74H5.2a.87.87 0 0 0 0-1.74" data-name="Tracé 49615"></path></g></g><g data-name="Groupe 7041"><g data-name="Groupe 7040"><path fill="#101010" d="M5.57 8.71 4.33 7.47a.88.88 0 0 0-1.24 0 .87.87 0 0 0 0 1.23l1.24 1.24c.34.34.9.34 1.24 0a.87.87 0 0 0 0-1.23" data-name="Tracé 49616"></path></g></g><g data-name="Groupe 7043"><g data-name="Groupe 7042"><path fill="#101010" d="M5.57 17.96a.88.88 0 0 0-1.24 0L3.09 19.2c-.34.34-.34.9 0 1.24s.89.34 1.23 0l1.24-1.24c.34-.34.34-.89 0-1.24Z" data-name="Tracé 49617"></path></g></g><g data-name="Groupe 7045"><g data-name="Groupe 7044"><path fill="#101010" d="M31.54 13.08h-1.75a.87.87 0 0 0 0 1.74h1.75a.87.87 0 0 0 0-1.74" data-name="Tracé 49618"></path></g></g><g data-name="Groupe 7047"><g data-name="Groupe 7046"><path fill="#101010" d="M31.91 7.47a.88.88 0 0 0-1.24 0l-1.24 1.24c-.34.34-.34.9 0 1.24s.89.34 1.23 0l1.24-1.24c.34-.34.34-.89 0-1.24Z" data-name="Tracé 49619"></path></g></g><g data-name="Groupe 7049"><g data-name="Groupe 7048"><path fill="#101010" d="m31.91 19.19-1.24-1.24a.88.88 0 0 0-1.24 0 .87.87 0 0 0 0 1.23l1.24 1.24c.34.34.89.35 1.24 0s.35-.89 0-1.24Z" data-name="Tracé 49620"></path></g></g>',8)])])}const OQe={render:RQe},Sre=Q({__name:"T3CeMaskBlocHighlightContent",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},id:{},index:{},appearance:{},colPos:{},picto:{},description:{},images:{},display_template:{},display_mode:{},show_in_summary:{type:Boolean},link:{}},setup(e){const t=e,{t:n}=dr(),r=W(()=>{if(t.header)return t.header}),i=W(()=>t.display_mode==="color3"||t.display_mode==="");return(a,o)=>{const s=Qo,l=du,u=Tn,c=Tv,d=Mr;return E(),V(d,{template:e.display_template,header:m(r),"header-layout":e.headerLayout,uid:e.uid,bgThird:e.display_mode==="color3"||e.display_mode==="",bgFiligrane:e.display_mode==="default",showFiligrane:!0,titleInside:!0,showInSummary:e.show_in_summary,class:L([m(i)?[m(Sa)({shadowColor:"{colors.white}",textColor:"{colors.black}"}),m(Zd)({color:"white",hoverColor:"black"}),m(ru)({textColor:{base:"{colors.white}",_print:"{colors.black}"},pictoColor:{base:"{colors.white}",_print:"{colors.black}"}}),m(F)({"& blockquote":{_before:{bgColor:"{colors.white}"},_after:{bgColor:"{colors.white}"}}})]:[m(Sa)(),m(ru)(),m(F)({"& .boutonsRecipe__hasHover:hover":{color:"third !important"}}),m(Zd)()],m(u6)(),m(F)({"& .boutonsRecipe__skin":{padding:{base:"1.5rem 3rem !important",md:"1.5rem 3rem !important"},boxShadow:"none !important",borderColor:m(i)?"white":"transparent"},"& .boutonsRecipe__skin::after":{display:"none !important"},_print:{"& figure, & img":{display:"none"},"& *":{color:"{colors.black}"}}})])},{picto:N(()=>[e.picto!=="none"?(E(),V(m(OQe),{key:0,"aria-hidden":"true",class:L(m(vn)({size:{base:"3rem",sm:"6rem"},fill:m(i)?"white":"primary"}))},null,8,["class"])):ae("",!0)]),content:N(()=>[e.images?.length>0?(E(),V(s,{key:0,image:e.images[0]},null,8,["image"])):ae("",!0),e.description?(E(),V(l,{key:1,content:e.description},null,8,["content"])):ae("",!0),H(c,{class:L(m(F)({marginTop:"2rem"}))},{default:N(()=>[e.link?.[0]?.href?(E(),V(u,{key:0,link:e.link?.[0],variante:{classes:"button",bgColor:"third"}},null,8,["link"])):ae("",!0)]),_:1},8,["class"])]),_:1},8,["template","header","header-layout","uid","bgThird","bgFiligrane","showInSummary","class"])}}}),BQe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 315 316"};function FQe(e,t){return E(),U("svg",BQe,[...t[0]||(t[0]=[Y("circle",{cx:"157.5",cy:"158.062",r:"156.5",stroke:"#007F79","stroke-dasharray":"4 8 12 16","stroke-width":"2"},null,-1)])])}const zQe={render:FQe},NQe=Q({__name:"T3CeMaskBlocKeyNumbers",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},display_mode:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),i=e.display_mode==="circle";return(a,o)=>{const s=zQe,l=Mr;return e.items?(E(),V(l,{key:0,header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.show_in_summary},{content:N(()=>[Y("ul",{class:L([i?m(js)({justifyContent:"center",alignItems:{base:"center",sm:"start"}
843,rowGap:"4rem",columnGap:"4rem",flexDir:{base:"column",sm:"row"},flexWrap:{base:"no-wrap",sm:"wrap"}}):m(vi)({columns:{base:1,sm:e.colPos===0?2:1}})])},[(E(!0),U(Ae,null,ft(e.items,u=>(E(),U("li",{class:L([m(Vn)({alignItems:i?"center":"start",gap:"1.5rem"}),m(F)({fontSize:"1em",padding:{base:"2em",md:"2.5em"},bgColor:i?{base:"{colors.primary}",_print:"{colors.lightGray}"}:"{colors.lightGray}",_print:{marginBottom:"1.5rem",color:"{colors.black}",display:"block",border:i?null:"{borders.sm} {colors.mediumGray}"}}),i?[m(gp)({size:"15vw"}),m(F)({aspectRatio:"1/1",textAlign:"center",color:"{colors.white}",position:"relative",border:"{borders.md} {colors.white}",minWidth:"20rem",minHeight:"20rem"})]:m(F)({})])},[Y("span",{class:L([m(F)({fontSize:{base:"{fontSizes.h2}",md:"3em"},lineHeight:"1",fontFamily:"{fonts.medium}",fontWeight:"800",position:"relative",zIndex:"0",_before:{content:"''",position:"absolute"},_print:{display:"block"}}),i?m(F)({paddingBottom:"1.5rem",_before:{left:"50%",transform:"translateX(-50%)",height:"0.2rem",width:"10rem",bgColor:"{colors.white}",bottom:"0",_print:{bgColor:"{colors.black}"}}}):m(F)({textDecoration:{base:"underline",_print:"none"},textDecorationColor:"{colors.primary}/50",textDecorationThickness:"1.5rem",textUnderlineOffset:"-.5rem",textDecorationSkipInk:"none"})])},de(u.number)+de(u.unit?"Â "+u.unit:""),3),u.description?(E(),U("span",{key:0,class:L([m(F)({fontSize:"{fontSizes.p}"}),i?null:m(F)({fontFamily:"{fonts.medium}"})])},de(u.description),3)):ae("",!0),i&&m(n)?.theme==="Theme1"?(E(),V(s,{key:1,"aria-hidden":"true",class:L([m(vn)({size:"calc(100% + 2rem)",stroke:"{colors.primary}"}),m(F)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",objectFit:"cover"})])},null,8,["class"])):ae("",!0)],2))),256))],2)]),_:1},8,["header","header-layout","uid","showInSummary"])):ae("",!0)}}}),VQe={key:0},jQe={key:1},UQe=Q({__name:"T3CeMaskBlocQuote",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},image:{},colPos:{},quote:{},author:{},function:{},show_in_summary:{type:Boolean}},setup(e){const t=e,{t:n}=dr(),r=W(()=>t.header?t.header:null),i=Yt(),a=G(i.siteBuilderInfos),o=W(()=>a.value?.identifier==="methanisation");return(s,l)=>{const u=Qo,c=Mr;return E(),V(c,{header:m(r),"header-layout":e.headerLayout,titleInside:!0,uid:e.uid,class:L([m(Sa)(),m(ru)(),m(F)({"& img":{maxWidth:"15rem"}})]),showInSummary:e.show_in_summary},{content:N(()=>[Y("blockquote",{class:L(m(F)({color:m(o)?"#B58E5E":"{colors.fourth}",paddingLeft:{base:"7rem",sm:"13rem"},_before:{bgColor:"{colors.fourth}",width:{base:"3.5rem",md:"7rem"},height:{base:"3.5rem",md:"7rem"}},_after:{bgColor:"{colors.fourth}",left:{base:"5rem",md:"10rem"}}}))},[Y("p",{class:L(m(F)({fontSize:"2rem"}))},de(e.quote),3),Y("p",{class:L(m(F)({fontFamily:"{fonts.bold}"}))},[e.author?(E(),U("span",VQe,de(e.author),1)):ae("",!0),e.function?(E(),U("span",jQe,de(e.author?", ":"")+de(e.function),1)):ae("",!0)],2),e.image[0]?(E(),U("div",{key:0,class:L(m(F)({marginTop:"1rem"}))},[H(u,{image:e.image[0]},null,8,["image"])],2)):ae("",!0)],2)]),_:1},8,["header","header-layout","uid","class","showInSummary"])}}}),xw=Q({__name:"FieldSeeAlso",props:{colPos:{},result:{},header:{},headerLayout:{},display_mode:{},loop:{type:Boolean,default:!1},isCarrefour:{type:Boolean,default:!1},isRelated:{type:Boolean,default:!1},showInSummary:{type:Boolean},hide_tile_title:{type:Boolean,default:!1},showItemType:{type:Boolean,default:!1}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=e,i=Tc(),a=W(()=>r.result?.subpages?r.result.subpages:r.result),{t:o}=dr(),s=W(()=>{if(a?.value?.[0]?.type)return`${o("blocks.blocsLies.title")} ${o(`blocks.blocsLies.type.${a?.value?.[0]?.type}`)}`}),l=r?.display_mode==="list_type",u=l?["city","cim_news","schedule","tarif_type","online_process","profil","teaser","status","delivery_date","elu","annee","link","specific_categories"]:["teaser","description"],c=F({maxWidth:{base:l?"100%":"25rem",_print:"initial"},width:"100%","& [data-list-item-content]":{flexDir:l?null:"column-reverse",alignItems:l?"center":"start",ga
843p:"1.5rem",position:"relative !"},"& [data-list-item-title]":{fontSize:"{fontSizes.h4}"},"& [data-field-type=teaser]":{lineClamp:"2"},"& [data-img]":{aspectRatio:"1/1",overflow:"hidden",width:l?null:"100%",minWidth:l?null:"100%","& > *":{width:"100%",height:"100%",objectFit:"cover"}},"& [data-type]":{fontSize:{base:"1.2rem",sm:"1.3rem",_print:"10pt"},padding:{base:"0.8rem 1rem",sm:"1rem 1.5rem"},fontFamily:"{fonts.black}",textTransform:"uppercase",bgColor:{base:"{colors.secondary}",_print:"{colors.lightGray}"},display:"inline-block",lineHeight:"1",order:"-1",color:n.value?.theme==="Theme1"?"{colors.black}":"{colors.white}",_print:{color:"{colors.black}"}}});return(d,f)=>{const h=es,p=D1,g=Mr;return e.result?.length>0?(E(),V(g,{key:0,template:e.display_mode,header:e.isRelated?m(s):e.header,headerId:`bloc_seealso_${m(i)}`,"header-layout":e.headerLayout,titleInside:!1,uid:m(i),showInSummary:e.showInSummary},{content:N(()=>[e.loop?(E(),V(p,{key:1,slides:e.result,blocTitleId:`bloc_seealso_${m(i)}`,breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:2,autoHeight:!0},800:{slidesPerView:3,autoHeight:!0},1024:{slidesPerView:3,autoHeight:!1}},wrapperTag:"div",slideTag:"div",class:L(m(F)({padding:{base:"0 3.5rem",md:"1.5rem"},"& [data-button-slider=prev]":{transform:{base:"translate(50%, -50%)",md:"translate(0%, -50%)"}},"& [data-button-slider=next]":{transform:{base:"translate(-50%, -50%)",md:"translate(0%, -50%)"}},"& .swiper-slide":{display:"flex !important"}}))},{slideContent:N(v=>[v.slide?.link||v.slide?.links?(E(),V(h,{key:0,result:v.slide?.link||v.slide,options:{showtype:e.showItemType,showcategories:!!(e.isRelated||l)},"fields-to-show":e.isCarrefour?[""]:m(u),class:L([m(c),e.hide_tile_title?m(F)({"& [data-list-item-title]":{height:"0 !important"}}):null])},null,8,["result","options","fields-to-show","class"])):ae("",!0)]),_:1},8,["slides","blocTitleId","class"])):(E(),U("div",{key:0,class:L([l?null:m(vi)({marginTop:{base:"3rem",sm:"1.5rem",md:"0"},columns:{base:2,sm:3,md:3},rowGap:{base:"1.5rem",md:"{spacing.gutter}"},columnGap:{base:"1.5rem",md:"{spacing.gutter}"}}),m(F)({display:{base:"grid !important",_print:"block !important"},justifyItems:{base:"center",md:"initial"},"& article":{width:{base:"100%",md:"auto"}}}),m(js)({alignItems:"start"})])},[(E(!0),U(Ae,null,ft(e.result,v=>(E(),U(Ae,null,[v.link||v.links?(E(),V(h,{key:0,result:v.link||v,options:{showtype:e.showItemType,showcategories:!!(e.isRelated||l)},"fields-to-show":e.isCarrefour?[""]:m(u),class:L([m(c),e.hide_tile_title?m(F)({"& [data-list-item-title] span":{srOnly:!0}}):null])},null,8,["result","options","fields-to-show","class"])):ae("",!0)],64))),256))],2))]),_:1},8,["template","header","headerId","header-layout","uid","showInSummary"])):ae("",!0)}}}),HQe=Q({__name:"T3CeMaskBlocSeeAlso",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},display_mode:{},links:{},show_in_summary:{type:Boolean},hide_tile_title:{type:Boolean}},setup(e){return(t,n)=>{const r=xw;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,colPos:e.colPos,display_mode:e.display_mode,uid:e.uid,result:e.links,showInSummary:e.show_in_summary,hide_tile_title:e.hide_tile_title},null,8,["header","headerLayout","colPos","display_mode","uid","result","showInSummary","hide_tile_title"])}}}),qQe=Q({__name:"T3CeMaskBlocDirectoryList",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},display_mode:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=xw;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,colPos:e.colPos,display_mode:e.display_mode,uid:e.uid,result:e.items,showInSummary:e.show_in_summary,showItemType:!0},null,8,["header","headerLayout","colPos","display_mode","uid","result","showInSummary"])}}}),WQe=Q({__name:"T3CeMaskBlocTestIntegration",setup(e){return(t,n)=>{const r=Tn,i=Tv;return E(),U(Ae,null,[n[1]||(n[1]=Y("h2",null,"Trame Boutons",-1)),n[2]||(n[2]=Y("h3",null,"button Colors",-1)),Y("div",{class:L(m(vi)({columns:2}))},[H(i,{class:L(m(F)({bg:"{colors.black}"}))},{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"button",bgColor:"white"}}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"button",bgColor:"black"}}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"button",bgColor:"primary"}}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"button",bgColor:"secondary"}}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"button",bgColor:"third"}})]),_:1},8,["class"]),H(i,null,{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"button",bgColor:"white"}}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"button",bgColor:"black"}}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"button",bgColor:"primary"}}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"button",bgColor:"secondary"}}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"button",bgColor:"third"}})]),_:1})],2),n[3]||(n[3]=Y("h3",null,"button Align",-1)),Y("div",null,[n[0]||(n[0]=Y("h4",null,"Base",-1)),H(i,null,{default:N(()=>[H(r,{link:{href:"#",text:"Btn à gauche"},type:"button",variante:{classes:"button",bgColor:"primary"}})]),_:1}),H(i,{align:"center"},{default:N(()=>[H(r,{link:{href:"#",text:"Btn au centre"},type:"button",variante:{classes:"button",bgColor:"primary"}})]),_:1}),H(i,{align:"flex-end"},{default:N(()=>[H(r,{link:{href:"#",text:"Btn aligné à droite"},type:"button",variante:{classes:"button",bgColor:"primary"}})]),_:1})]),n[4]||(n[4]=Y("h3",null,"btnPicto",-1)),Y("div",{class:L(m(vi)({columns:2}))},[H(i,{class:L(m(F)({bg:"{colors.black}",color:"{colors.white}"}))},{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"white"},picto:"close"}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"black"},picto:"prev"}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"primary"},picto:"feuilleter"}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"secondary"},picto:"telecharger"}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},picto:"feuilleter"})]),_:1},8,["class"]),H(i,null,{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"white"},picto:"close"}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"black"},picto:"prev"}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"primary"},picto:"feuilleter"}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"secondary"},picto:"telecharger"}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},picto:"feuilleter"})]),_:1})],2),n[5]||(n[5]=Y("h3",null,"btnTxt",-1)),Y("div",{class:L(m(vi)({columns:2}))},[H(i,{class:L(m(F)({bg:"{colors.black}"}))},{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"btnTxt",bgColor:"white"}}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"btnTxt",bgColor:"black"}}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"btnTxt",bgColor:"primary"}}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"btnTxt",bgColor:"secondary"}}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"btnTxt",bgColor:"third"}})]),_:1},8,["class"]),H(i,null,{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"btnTxt",bgColor:"white"}}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"btnTxt",bgColor:"black"}}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"btnTxt",bgColor:"secondary"}}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"btnTxt",bgColor:"third"}})]),_:1})],2),n[6]||(n[6]=Y("h3",null,"btnTxtPicto",-1)),Y("div",{class:L(m(vi)({columns:2}))},[H(i,{class:L(m(F)({bg:"{colors.black}"}))},{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"btnTxtPicto",bgColor:"white",pictoPlacement:"left",pictoColor:"white"},picto:"close"}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"btnTxtPicto",bgColor:"black",pictoPlacement:"left",pictoColor:"black"},picto:"prev"}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"btnTxtPicto",bgColor:"primary",pictoPlacement:"left",pictoColor:"primary"},picto:"feuilleter"}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"btnTxtPicto",bgColor:"secondary",pictoPlacement:"left",pictoColor:"secondary"},picto:"telecharger"}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"btnTxtPicto",bgColor:"third",pictoPlacement:"left",pictoColor:"third"},picto:"feuilleter"})]),_:1},8,["class"]),H(i,null,{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"btnTxtPicto",bgColor:"white",pictoPlacement:"left",pictoColor:"white"},picto:"close"}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"btnTxtPicto",bgColor:"black",pictoPlacement:"left",pictoColor:"black"},picto:"prev"}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"btnTxtPicto",bgColor:"primary",pictoPlacement:"left",pictoColor:"primary"},picto:"feuilleter"}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"btnTxtPicto",bgColor:"secondary",pictoPlacement:"left",pictoColor:"secondary"},picto:"telecharger"}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"btnTxtPicto",bgColor:"third",pictoPlacement:"left",pictoColor:"third"},picto:"feuilleter"})]),_:1})],2),n[7]||(n[7]=Y("h3",null,"pictoOnly",-1)),Y("div",{class:L(m(vi)({columns:2}))},[H(i,{class:L(m(F)({bg:"{colors.black}"}))},{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"pictoOnly",pictoColor:"white",size:"sm"},picto:"close"}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"pictoOnly",pictoColor:"black",size:"md"},picto:"prev"}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"pictoOnly",pictoColor:"primary",size:"lg"},picto:"ecouter"}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"pictoOnly",pictoColor:"secondary"},picto:"telecharger"}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"pictoOnly",pictoColor:"third"},picto:"feuilleter"})]),_:1},8,["class"]),H(i,null,{default:N(()=>[H(r,{link:{href:"#",text:"Btn fond blanc"},variante:{classes:"pictoOnly",pictoColor:"white"},picto:"close"}),H(r,{link:{href:"#",text:"Btn fond noir"},variante:{classes:"pictoOnly",pictoColor:"black"},picto:"prev"}),H(r,{link:{href:"#",text:"Btn fond primary"},variante:{classes:"pictoOnly",pictoColor:"primary"},picto:"ecouter"}),H(r,{link:{href:"#",text:"Btn fond secondary"},variante:{classes:"pictoOnly",pictoColor:"secondary"},picto:"telecharger"}),H(r,{link:{href:"#",text:"Btn fond third"},variante:{classes:"pictoOnly",pictoColor:"third"},picto:"feuilleter"})]),_:1})],2)],64)}}}),GQe={key:0},_D=Q({__name:"FieldLinks",props:{colPos:{},result:{},header:{},config:{},headerLayout:{},uid:{},showInSummary:{type:Boolean}},setup(e){const t=e,n=r=>t.config?.frontend_template==="link"?{href:r.link,text:r.title}:r.links?.[0];return(r,i)=>{const a=KA,o=Fc,s=Mr;return E(),V(s,{header:e.header||e.config?.title,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[e.result?(E(),U("ul",GQe,[(E(!0),U(Ae,null,ft(e.result,l=>(E(),U("li",{class:L(m(F)({borderBottom:"{borders.sm} {colors.mediumGray}",marginBottom:"1.5rem"}))},[l?.links?.[0]?.subtext?(E(),U("span",{key:0,class:L(m(F)({display:"block",fontSize:"1.6rem",marginBottom:"0.5rem",paddingLeft:{base:"1.5rem",sm:"2rem"}}))},de(l?.links?.[0]?.subtext),3)):ae("",!0),H(o,{link:n(l),class:L([m(rn)({flexDir:"row-reverse",justifyContent:"start",ga
843p:"2rem"}),m(F)({padding:{base:"1rem 1.5rem 1rem 1.5rem",sm:"0 3.5rem 1.5rem 2.5rem"},fontFamily:"{fonts.bold}",transition:"{easings.global}",_hover:{transform:"translateX(1rem)",color:"inherit"}})])},{icon:N(()=>[H(a,{"aria-hidden":"true",class:L([m(vn)({size:{base:"1rem",sm:"1.5rem"},stroke:"{colors.third}"}),m(F)({minWidth:{base:"1rem",sm:"1.5rem"}})])},null,8,["class"])]),_:1},8,["link","class"])],2))),256))])):ae("",!0)]),_:1},8,["header","header-layout","uid","showInSummary","class"])}}}),ZQe=Q({__name:"T3CeMaskBlocUsefulLinks",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=_D;return E(),V(r,{result:e.items,colPos:e.colPos,header:e.header,"header-layout":e.headerLayout,uid:e.uid,showInSummary:e.show_in_summary},null,8,["result","colPos","header","header-layout","uid","showInSummary"])}}}),KQe=Q({__name:"T3CeMaskBlocVideo",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},video:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=eJ,i=Mr;return e.video?(E(),V(i,{key:0,header:e.header,"header-layout":e.headerLayout,showInSummary:e.show_in_summary,uid:e.uid,class:L(m(F)({_print:{display:"none !important"}}))},{content:N(()=>[Y("div",{class:L(m(F)({"& > [data-ratio]":{aspectRatio:"16/9",width:"100%"}}))},[e.video?.[0]?(E(),V(r,{key:0,video:e.video[0]},null,8,["video"])):ae("",!0)],2)]),_:1},8,["header","header-layout","showInSummary","uid","class"])):ae("",!0)}}}),YQe=Q({__name:"T3CeMaskBlocTimeline",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},steps:{},show_in_summary:{type:Boolean}},setup(e){const t=Tc();return(n,r)=>{const i=du,a=Qo,o=D1,s=Mr;return e.steps?(E(),V(s,{key:0,header:e.header,"header-layout":e.headerLayout,headerId:`bloc_frise_${m(t)}`,titleInside:!1,uid:e.uid,showInSummary:e.show_in_summary},{content:N(()=>[Y("div",{"aria-live":"polite",class:L(m(F)({position:"relative",marginTop:"5rem","& ol":{marginLeft:"0"}}))},[H(o,{slides:e.steps,blocTitleId:`bloc_frise_${m(t)}`,wrapperTag:"ol",slideTag:"li",breakpoints:{320:{slidesPerView:1},450:{slidesPerView:1},640:{slidesPerView:2},800:{slidesPerView:2},1024:{slidesPerView:2}},class:L(m(F)({paddingTop:"2.5rem","& .swiper":{_before:{content:"''",position:"absolute",top:"0",left:"0",width:"100%",height:"0.2rem",bgColor:"{colors.third}"}},"& .btn_slider_prev, & .btn_slider_next":{top:"0",transform:{base:"translate(0, 1rem)",sm:"translate(0, 0)"}}}))},{slideContent:N(l=>[Y("div",{class:L([m(Vn)({gap:"1rem"}),m(F)({position:"relative",paddingTop:"2.5rem",textAlign:"center",maxWidth:"25rem",margin:"0 auto",_before:{content:"''",position:"absolute",top:"0",left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:"1.5rem",bgColor:"{colors.third}"},"& [data-img-container]":{order:"-1",maxWidth:"15rem",maxHeight:"15rem"}})])},[Y("p",{class:L(m(F)({fontSize:"{fontSizes.md}",color:"{colors.third}",textTransform:"uppercase",marginBottom:"0"}))},de(l.slide?.date),3),Y("div",{class:L(m(F)({fontSize:"{fontSizes.h4}",fontFamily:"{fonts.bold}"}))},[l.slide?.description?(E(),V(i,{key:0,content:l.slide?.description},null,8,["content"])):ae("",!0)],2),l.slide?.images?.[0]?(E(),V(a,{key:0,image:l.slide?.images?.[0],"no-figcaption":!0},null,8,["image"])):ae("",!0)],2)]),_:1},8,["slides","blocTitleId","class"])],2)]),_:1},8,["header","header-layout","headerId","uid","showInSummary"])):ae("",!0)}}}),XQe={class:"grid-x grid-padding-x"},JQe={class:"cell auto dashboard_profile"},QQe={class:"grid-x grid-padding-x align-middle"},eet={class:"cell shrink"},tet={class:"cell auto"},net={class:"username"},ret={class:"small"},iet={class:"cell shrink"},aet={class:"grid-x grid-padding-x"},oet={class:"cell large-6"},set=Q({__name:"T3CeCimdashboardShow",props:{header:{},data:{}},setup(e){const t=Yt(),n=G(t.feUser);return(r,i)=>{const a=VEe,o=Tn,s=u1;return E(),U(Ae,null,[Y("div",XQe,[Y("div",JQe,[Y("div",QQe,[Y("div",eet,[H(a,{"user-data":m(n),class:"avatar"},null,8,["user-data"])]),Y("div",tet,[Y("p",net,de(m(n)?.firstName)+" "+de(m(n)?.lastName),1),Y("p",ret,de(m(n)?.email),1)])])]),Y("div",iet,[H(o,{link:{href:"?login=lougout",text:r.$t("dashboard.logout")},classes:"button"},null,8,["link"])])]),Y("div",aet,[(E(!0),U(Ae,null,ft(Object.values(e.data.pages),(l,u)=>(E(),U("div",oet,[Y("ul",{class:L(["grid-x grid-margin-x dashboard_nav",{"dashboard_shortcuts large-up-2":u===0,dashboard_settings:u!==0}])},[(E(!0),U(Ae,null,ft(l.pages,c=>(E(),U("li",{class:L(["cell dashboard_link",c.dashboard_menu_class])},[H(s,{to:c.link},{default:N(()=>[st(de(c.title),1)]),_:2},1032,["to"])],2))),256))],2)]))),256))])],64)}}}),uet=Q({__name:"ButtonBack",props:{popin:{type:Boolean},itemType:{},link:{default:{}},variante:{},align:{default:""},noContainer:{type:Boolean,default:!1},type:{},showSr:{type:Boolean},picto:{}},setup(e){return(t,n)=>{const r=Tn;return E(),V(r,{link:{text:`${t.$t("common.buttons.btnBack")} ${t.$t("listItem.type."+e.itemType,2)}`,href:e.link?.href},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},picto:"prev"},null,8,["link"])}}}),cet=Q({__name:"FieldDownloadTerritoires",props:{profils:{},content:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=n.value?.identifier==="ordec",i=n.value?.identifier==="orcae",a=e,o=W(()=>{let c=[];return a.profils?.forEach(d=>{const f=d.finalResource;f&&(f.properties.title=d.title,f.category=d.groupCategories?.[0]?.uid,c.push(f))}),c}),s=W(()=>{const c=[];return a.profils?.forEach(d=>{c.push({uid:d.groupCategories?.[0]?.uid,title:d.groupCategories?.[0]?.title})}),c.sort((d,f)=>d.uid-f.uid)}),l=hv(s,(c,d)=>c.uid===d.uid),u=c=>o.value?.filter(d=>d?.category===c.uid);return(c,d)=>{const f=U6;return E(),U(Ae,null,[r&&m(l).length?(E(),U("p",{key:0,class:L(m(F)({color:"primary",fontWeight:700,fontSize:"h4"}))},"Ces tableaux contiennent l'ensemble des données, classées par type de territoire. Pour accéder aux données d'un territoire précis, appliquez la fonction filtre.",2)):ae("",!0),i&&m(l).length?(E(),U("p",{key:1,class:L(m(F)({color:"primary",fontWeight:700,fontSize:"h4"}))},"Les pilotes et opérateurs de lâORCAE envisagent des modifications dans la diffusion des données de l'observatoire à compter de cette année. Plus dâinformation à venir dans le courant 2026.",2)):ae("",!0),(E(!0),U(Ae,null,ft(m(l),h=>(E(),V(f,{result:u(h),config:{title:h.title},colPos:0,show_images:!1,showDocDate:!0,content:e.content},null,8,["result","config","content"]))),256))],64)}}}),det=Q({__name:"FieldTerritoireInfos",props:{communes:{},area:{},population:{}},setup(e){function t(r){return new Intl.NumberFormat("fr-FR",{minimumFractionDigits:0,maximumFractionDigits:2}).format(r)}const n=[Vn({justifyContent:"center"}),F({bgColor:"lightGray",padding:"3.5rem 2.5rem","& > p":{marginBottom:0,textAlign:"center","& > span":{fontSize:"3rem",fontWeight:"bold",lineHeight:1}}})];return(r,i)=>(E(),U(Ae,null,[Y("h2",{class:L(m(F)({marginBottom:"1.5rem"}))},"Présentation du territoire",2),Y("ul",{class:L([m(F)({marginBottom:"5rem"}),m(vi)({gridTemplateColumns:"repeat(auto-fill, minmax(20rem, 1fr))",columnGap:{base:"2rem",md:"3rem"},rowGap:"1rem"})])},[e.communes?(E(),U("li",{key:0,class:L(n)},[Y("p",null,[Y("span",null,de(t(e.communes)),1),i[0]||(i[0]=st(" c
843ommunes",-1))])])):ae("",!0),e.area?(E(),U("li",{key:1,class:L(n)},[Y("p",null,[Y("span",null,de(t(e.area)),1),i[1]||(i[1]=st(" km²",-1))])])):ae("",!0),e.population?(E(),U("li",{key:2,class:L(n)},[Y("p",null,[Y("span",null,de(t(e.population)),1),i[2]||(i[2]=st(" habitants",-1))])])):ae("",!0)],2)],64))}}),fet=Q({__name:"FieldDescription",props:{data:{},descriptionFields:{}},setup(e){const t=Tc();return(n,r)=>{const i=AX,a=j6,o=P1,s=Mr;return e.descriptionFields?.length>0?(E(),V(s,{key:0,header:e.data?.type==="territoire"?n.$t("blocks.description.territoireTitle"):n.$t("blocks.description.defaultTitle"),uid:m(t),titleInside:!1,showInSummary:!0,class:L(m(F)({"& [data-bloc-content]":{display:"flex",gap:"1rem",flexDir:"column"}}))},{content:N(()=>[(E(!0),U(Ae,null,ft(e.descriptionFields,l=>(E(),U("div",null,[l.title&&l?.system_name!=="description"?(E(),U("p",{key:0,class:L(m(F)({lineHeight:1.4,display:"inline-block !important",marginBottom:0,"& + *":{display:"inline"},"& + [data-field-type=structure], & + [data-field-type=function], & + [data-field-type=function_secondary]":{fontFamily:"{fonts.regular}",fontSize:"p"}}))},[Y("strong",null,de(l.title)+" "+de(l?.type==="boolean"?null:": "),1)],2)):ae("",!0),l?.system_name==="accessibility"?(E(),V(i,{key:1,result:e.data?.[("_stringToCamelCase"in n?n._stringToCamelCase:m(Is))(l?.system_name)],config:l,notSr:!0},null,8,["result","config"])):l?.frontend_template==="date_inline"?(E(),V(a,{key:2,result:e.data,config:l},null,8,["result","config"])):l?.type!=="boolean"?(E(),V(o,{key:3,result:e.data?.[("_stringToCamelCase"in n?n._stringToCamelCase:m(Is))(l?.system_name)]?.[0]?.title||e.data?.[("_stringToCamelCase"in n?n._stringToCamelCase:m(Is))(l?.system_name)],config:l},null,8,["result","config"])):ae("",!0)]))),256))]),_:1},8,["header","uid","class"])):ae("",!0)}}}),het=Q({__name:"FieldSessions",props:{colPos:{},result:{},header:{},config:{}},setup(e){const t=e,n=Tc();t.result?.slice(3)?.length>0;const r=W(()=>t.result?.filter(o=>a(o.cimNewsStartDate&&o.cimNewsEndDate||o.cimNewsEndDate))),{t:i}=dr(),a=o=>Date.parse(o)>Date.now();return(o,s)=>{const l=$X,u=P1,c=Mr;return m(r)?.length>1?(E(),V(c,{key:0,header:o.$t("blocks.sessions.title"),uid:m(n),showInSummary:!0,class:L(m(F)({overflow:"hidden"}))},{content:N(()=>[Y("ul",{class:L([m(Vn)({alignItems:"start",gap:"0"}),m(F)({marginBottom:"2rem"})])},[(E(!0),U(Ae,null,ft(m(r),d=>(E(),U("li",{class:L(m(F)({padding:"1rem 2rem",width:"100%",_odd:{bgColor:"{colors.lightGray}"},_first:{bgColor:"{colors.third}",color:"{colors.white}"},"& p":{marginBottom:"0"}}))},[H(l,{result:d,config:e.config,class:L(m(F)({fontFamily:"{fonts.bold}"}))},null,8,["result","config","class"]),H(u,{result:d.schedule,config:{system_name:"schedule"}},null,8,["result"])],2))),256))],2)]),_:1},8,["header","uid","class"])):ae("",!0)}}}),pet=Q({__name:"DirRendererDetail",props:{result:{default:()=>[]},config:{}},setup(e){const t=n=>{let r;switch(n){case"session":r=het;break;case"place":case"geoloc":r=vD;break;case"video":r=tJ;break;case"image":r=QX;break;case"download":case"fal":case"folder":r=U6;break;case"link":case"other":r=_D;break;default:r=xa("FieldInformations");break}return r};return(n,r)=>(E(),V(yn(t(e.config?.frontend_template??e.config?.type)),{config:e.config,result:e.result},null,8,["config","result"]))}}),met=Q({__name:"AutoDetailBlocks",props:{data:{},colPos:{},configPage:{},descriptionFields:{},configBoucle:{},blocGeoloc:{}},setup(e){const t=e;qA();const n=r=>{const i=Is(r?.system_name);return r?.frontend_template==="geoloc"||r?.type==="place"?t.data?.[i]?.[0]:r?.type==="select_category"?t?.data?.[i]?.[0]?.title:t.data?.[i]};return(r,i)=>{const a=fet,o=vD,s=pet;return E(),U(Ae,null,[e.descriptionFields?.length>0&&e.data?.type!=="territoire"?(E(),V(a,{key:0,descriptionFields:e.descriptionFields,data:e.data},null,8,["descriptionFields","data"])):ae("",!0),e.blocGeoloc?.length>0?(E(),V(o,{key:1,result:e.data,colPos:e.colPos},null,8,["result","colPos"])):ae("",!0),e.data?(E(!0),U(Ae,{key:2},ft(e.configBoucle,l=>(E(),V(s,{config:l,result:n(l),colPos:e.colPos},null,8,["config","result","colPos"]))),256)):ae("",!0)],64)}}}),get=Q({__name:"FieldParticipants",props:{colPos:{},result:{}},setup(e){let n=e?.result.sort((i,a)=>i.nom.localeCompare(a.nom));n=n.map(i=>({...i,prenom:i.prenom.toLowerCase()}));const r=Tc();return(i,a)=>{const o=EX;return E(),V(o,{header:i.$t("blocks.participants.title"),colPos:e.colPos,result:[{title:i.$t("blocks.participants.accordionHeader")+" ("+e.result.length+")"}],uid:m(r)},{content:N(()=>[Y("table",{class:L(m(F)({marginBottom:"0"}))},[Y("caption",{class:L(m(F)({srOnly:!0}))},de(i.$t("blocks.participants.accordionHeader")),3),Y("thead",null,[Y("tr",null,[Y("th",null,de(i.$t("blocks.participants.thead.surname")),1),Y("th",
843null,de(i.$t("blocks.participants.thead.name")),1),Y("th",null,de(i.$t("blocks.participants.thead.structure")),1)])]),Y("tbody",null,[(E(!0),U(Ae,null,ft(m(n),s=>(E(),U("tr",null,[Y("td",{class:L(m(F)({textTransform:"uppercase"}))},de(s?.nom),3),Y("td",{class:L(m(F)({textTransform:"capitalize"}))},de(s?.prenom),3),Y("td",null,de(s?.organisme),1)]))),256))])],2)]),_:1},8,["header","colPos","result","uid"])}}}),yet=Q({__name:"ListResults",props:{results:{},fieldsToShow:{}},setup(e){return(t,n)=>{const r=es;return E(),U("div",{class:L([m(Vn)({gap:"0",alignItems:"flex-start"}),m(F)({overflow:"auto",height:"100%","& > *":{width:"100%"},"& > *:nth-child(odd)":{backgroundColor:"{colors.lightGray}"}})])},[(E(!0),U(Ae,null,ft(e.results,(i,a)=>(E(),V(r,{key:a,result:i,options:{showimg:!1},popin:!0,"fields-to-show":["cim_news","datetime","place","address","schedule","phone","mobilePhone","mail","website","city"]},null,8,["result"]))),128))],2)}}}),bD=Q({__name:"Map",props:{settings:{},results:{default:()=>[]},fieldsToShow:{},display:{default:"block"},isInteractiveMap:{type:Boolean,default:!1}},async setup(e,{expose:t}){let n,r;const i=e,a=G(),o=G(),s=Yt(),l=G(s.initialData),u={container:a,option:`Main/${i.display}`,style:"/map/styles/ign.json",center:[l.value.siteBuilderInfos.coordinates.longitude,l.value.siteBuilderInfos.coordinates.latitude],primary_color:l.value.siteBuilderInfos.colors.cim_primary_color.hexa,zoom:8,minZoom:5,maxZoom:17,antialias:!0},c=([n,r]=GE(()=>wre(a,u,i.settings,()=>{d(i.results)},o)),n=await n,r(),n),d=h=>{c.clearAll(),h=c.prepareResults(h,"displayListPopin","","",`modal_multi_${i.settings?.settings?.content_element}`),h.length>0&&(c.addFeatures(h),c.fitBounds())};Ot(()=>{c.create(),d(i.results)}),d6(()=>i.results,()=>d(i.results)),br(()=>{c.destroy()}),t({isClusterOpen:W(()=>typeof c<"u"?c.data.isClusterOpen:!1)});const f={position:"relative",height:"100%",display:"flex",flexDir:"column","& .maplibregl-popup-cluster":{maxWidth:{base:"100% !important",sm:"75% !important",md:"50% !important"},transform:"none !important",zIndex:"3",height:"100%",position:"absolute",top:"0",left:"0",width:"54.5rem","& .maplibregl-map":{marginBottom:"3rem"},"& .maplibregl-popup-tip":{display:"none"},"& .maplibregl-popup-content":{padding:"0",height:"100%"},"& .maplibregl-popup-close-button":{top:"1rem",right:"2rem",position:"absolute",bgColor:"{colors.white}",width:"3.5rem",height:"3.5rem",borderRadius:"50%",color:"transparent",boxShadow:"{shadows.accent}",_before:{content:"''",position:"absolute",top:"50%",left:"50%",width:"2rem",height:"2rem",maskImage:"url(~/assets/img/svg/btn/close.svg)",bgColor:"{colors.black}",maskPosition:"center center",maskSize:"contain",maskRepeat:"no-repeat",transform:"translate(-50%, -50%)",borderRadius:"inherit",transition:"{easings.global}"},_hover:{bgColor:"{colors.black}",_before:{bgColor:"{colors.white}"}}}},"& .maplibregl-popup:not(.maplibregl-popup-cluster)":{pointerEvents:"none","& > div":{transform:i.isInteractiveMap?"translate(0,-100rem) !important":"translate(0,-59rem) !important"},"& p":{marginBottom:0,lineHeight:"1.2"},"& .maplibregl-popup-tip":{borderBottomColor:"{colors.secondary} !important",backgroundColor:"{colors.black} !important"},"& .maplibregl-popup-content":{padding:"1rem",backgroundColor:"{colors.black} !important",color:"{colors.white} !important",textAlign:"center !important"}},"& .maplibregl-control-container":{"& .maplibregl-ctrl-bottom-right":{pointerEvents:"none",position:"absolute",zIndex:"2",bottom:"0",right:"0"},"& .maplibregl-ctrl-attrib":{backgroundColor:"hsla(0, 0%, 100%, .5)",margin:"0",padding:"0 5px","& summary":{appearance:"none",listStyle:"none"}}}};return(h,p)=>{const g=yet;return E(),U("div",null,[Y("div",{class:L(m(F)(f))},[Y("div",{ref_key:"mapContainer",ref:a,class:L([e.isInteractiveMap?m(F)({flex:"auto",position:"absolute",width:"100%",height:"100%"}):m(F)({height:"60rem"})])},null,2)],2),Y("div",{ref_key:"clusterResultsRef",ref:o,class:L([m(F)({bgColor:"{colors.white}",height:"100%",overflow:"auto",border:"{borders.sm} {colors.lightGray}",display:"flex",flexDir:"column"}),m(c)?.data.isClusterOpen?m(F)({animation:"listResultsSwipeIn ease-in-out .1s forwards"}):null])},[Y("p",{class:L(m(F)({padding:"1rem 5rem 1rem 5rem",marginBottom:"0"}))},[Y("span",{class:L(m(F)({fontFamily:"{fonts.bold}"}))},[Y("span",{class:L(m(F)({fontSize:"2.5rem"}))},de(m(c)?.data.popupItems.value.length),3),st(" "+de(h.$t("search.filters.results")),1)],2),st(" "+de(h.$t("search.map.inTheZone")),1)],2),H(g,{results:m(c)?.data.popupItems.value||[],"fields-to-show":e.fieldsToShow,class:L(m(F)({paddingBottom:"3rem","& article":{_odd:{bgColor:"{colors.lightGray}"}},"& [data-list-item-content]":{padding:"2rem 5rem"}}))},null,8,["results","fields-to-show","class"])],2)])}}}),Cre=Q({__name:"PopinClose",props:{title:{},popinFull:{type:Boolean},variante:{}},setup(e){return(t,n)=>{const r=Tn;return E(),V(r,{link:{text:e.title},title:e.title,type:"button",variante:e.variante!=null?e.variante:{classes:"pictoOnly",pictoColor:"third",size:e.popinFull?null:"sm"},picto:"close"},null,8,["link","title","variante"])}}});function Hk(e){return ur(e)?null:e}function Lh(e,t=!1){if(typeof e!="object")return()=>{};let n={};return Object.keys(e).forEach(r=>{let i=Hk(Ii(e[r])?e[r].filter(o=>!ur(o)):e[r]),a=r;Ii(i)&&!a.endsWith("[]")&&(a+="[]"),(!i6(i)||!t)&&(n[a]=i)}),n}function No(e){return Array.isArray(e)?e?.filter(t=>!ur(t))??[]:[]}function ww(){let e=[],t=[],n=[];const r=async(p,g,v,b=!1)=>{let x=new FormData;if(Object.keys(g).forEach(_=>{if(!ur(g[_]))if(Ii(g[_])&&g[_].length>0){let w=_;w.endsWith("[]")||(w+="[]");for(let C=0;C<g[_].length;C++)x.append(w,g[_][C])}else x.append(_,g[_])}),v=Math.max(v,0),x.append("page",v.toString()),JSON.stringify(Object.fromEntries(x.entries()))==JSON.stringify(t)&&!b)return{success:!1,response:null,documents:[],nbResults:0,form:null};{t=Object.fromEntries(x.entries());const w=(await zo(p,{method:"POST",body:new URLSearchParams(x)})).content.colPos0[0].content.data;return{success:!0,response:w,documents:w?.results||[],nbResults:w?.nbResults||0,form:w?.form}}},i=async(p,g,v,b=!1)=>{const x=new FormData;let _=new Map;if(Object.keys(g).forEach(w=>{if(!ur(g[w]))if(Ii(g[w])&&g[w].length>0){let C=w;C.endsWith("[]")||(C+="[]");let T=[];for(let k=0;k<g[w].length;k++)x.append(C,g[w][k]),T.push(g[w][k]);_.set(C,T)}else x.append(w,g[w]),_.set(w,g[w])}),x.append("tx_cimsearchelastic_displaysearch[page]",Math.max(0,v-1).toString()),_.set("tx_cimsearchelastic_displaysearch[page]",Math.max(0,v-1).toString()),JSON.stringify(Object.fromEntries(_.entries()))==JSON.stringify(e)&&!b)return{success:!1,response:null,documents:[],nbResults:0,form:null};{e=Object.fromEntries(_.entries());let w=await zo(p,{method:"POST",body:new URLSearchParams(x)});return{success:!0,response:w,documents:w?.documents||[],nbResults:w?.nb_results||0,form:w?.form?.fieldset?.[0]}}},a=async(p,g,v=!1)=>{const b=new FormData;let x=new Map;if(Object.keys(g).forEach(_=>{if(!ur(g[_]))if(Ii(g[_])&&g[_].length>0){let w=_;w.endsWith("[]")||(w+="[]");let C=[];for(let T=0;T<g[_].length;T++)b.append(w,g[_][T]),C.push(g[_][T]);x.set(w,C)}else b.append(_,g[_]),x.set(_,g[_])}),JSON.stringify(Object.fromEntries(x.entries()))==JSON.stringify(n)&&!v)return{success:!1,response:null,documents:[],nbResults:0,form:null};{n=Object.fromEntries(x.entries());let _=await zo(p,{method:"POST",body:new URLSearchParams(b)});return{success:!0,response:_,documents:_?.documents||[],nbResults:_?.nb_results||0,form:_?.form?.fieldset?.[0]}}},o=async p=>{let g=await zo(p,{method:"GET"});return{response:g,content:g?.content?.colPos0?.[0]?.content?.data}},s=async(p,g,v,b)=>{await zo("/",{method:"HEAD",params:{"tx_cimelastic_viewcount[action]":"count","tx_cimelastic_viewcount[controller]":"ViewCount","tx_cimelastic_viewcount[countType]":p,"tx_cimelastic_viewcount[pid]":g,"tx_cimelastic_viewcount[uid]":v,"tx_cimelastic_viewcount[table]":b??"",type:1597406382,no_cache:1}})},l=p=>{const v=ai().currentRoute.value;return Object.values(p).map(b=>({identifier:b.identifier,type:d(b),name:b.name,label:b.label,validators:"",value:u(v,b),fieldlist:!1,properties:{options:f(b),fluidAdditionalAttributes:{placeholder:b.placeholder,autocomplete:"off",isKeyword:b?.isKeyword,required:!1}},elements:typeof b.subFields<"u"?l(b.subFields):[],cssClass:b?.cssClass,placeholder:b.placeholder,required:!1}))};function u(p,g){return typeof p.query[g.name]>"u"?g.value!==null&&!ur(g.value)?Array.isArray(g.value)?No(g.value):g.value:void 0:p.query[g.name]}const c=(p,g,v="_popin")=>p.map(b=>{const x={...b};for(const _ in g)x.type===_&&(x.type=g[_]);return x.identifier=`${x.identifier}${v}`,x}),d=p=>{let g;switch(p?.fieldType){case"checkbox":g="Checkbox";break;case"list":case"calendar_interval":switch(p.template){case"checkbox":g="Multicheckbox";break;case"radio":g="Radiobutton";break;case"select_multiple":g="Multiselect";break;default:g="Singleselect";break}break;case"dates":case"periods":g="DatePeriod";break;case"calendar":g="DateCalendar";break;default:g="Text";break}return g},f=p=>{let g={};return p?.items?.forEach(v=>{let b=typeof v.count<"u"?`${v.label} (${v.count})`:v.label;g[b]=v.value}),g};return{computeFieldFromSettings:l,modifyFiltersForPopin:c,requestSearch:r,requestScroll:i,requestGeo:a,requestDetail:o,requestViewCount:s,activeFilterCount:p=>{const g=Lh(p,!0);if(!g)return 0;const v=Object.values(g)?.map(b=>typeof b=="string"?b.trim().length>0?1:0:Ii(b)?b.length:0);return gZ(v)}}}const vet={key:0},xD=Q({__name:"PopinDetail",props:{resultsScrollCount:{}},emits:["onPrevious","onNext"],setup(e,{emit:t}){const{$on:n,$off:r,$emit:i}=vt(),{requestDetail:a}=ww(),s=ai().currentRoute,l=G(),u=Yt(),c=G(u.initialData),d=G(u.pageData),f=G(d.value?.meta?.title),h=G(null),p=G(null),g=G(!1),v=G(!1),b=async({link:C,showArrows:T})=>{const{response:k,content:A}=await a(C.href);h.value=k,p.value=A,g.value=!0,v.value=T||!1,w(C),mo({title:A.title,htmlAttrs:{class:A.type}}),l.value&&(l.value.scrollTop=0),q4(c.value,A)},x=C=>{C||_()},_=()=>{i("popinDetail:close",{}),p.value=null,g.value=!1,w(),mo({title:f.value}),q4(c.value,d.value)},w=C=>{history.pushState({},"",g.value?C?.href:s.value.href)};return Ot(()=>{n("popinDetail:open",b),addEventListener("popstate",C=>{C?.state?.current===s.value.href&&(p.value=null,g.value=!1)})}),br(()=>{r("popinDetail:open",b)}),mo({htmlAttrs:{class:{overflow:g,popin_opened:g}}}),(C,T)=>{const k=DY,A=Tn,P=IY,D=$re,$=$Y,O=Cre,z=PY,j=bA,B=CY;return E(),V(B,{open:m(g),"onUpdate:open":[T[2]||(T[2]=R=>$t(g)?g.value=R:null),x]},{default:N(()=>[H(j,null,{default:N(()=>[H(k,{class:L(m(HM)())},null,8,["class"]),H(z,{id:"popin_detail","aria-label":`${C.$t("listItem.popin.ariaLabel")} ${m(p)?.title}`,class:L([m(F)({position:"fixed",zIndex:"9999",top:"calc(50% - 45vh)",left:"calc(50% - 45vw)",width:"90vw",minHeight:"90vh",_print:{position:"static",height:"initial",width:"initial",left:0,top:0}}),m(Vn)({justifyContent:"center"})])},{default:N(()=>[Y("div",{ref_key:"popinScrollContainer",ref:l,class:L(m(F)({bgColor:"{colors.white}",maxWidth:{base:"95vw",md:"90vw"},maxHeight:"90vh",height:"100%",width:"100%",overflow:"hidden",overflowY:"auto",_print:{maxHeight:"initial",maxWidth:"initial"}}))},[m(p)?(E(),V($,{key:0,as:"div",class:L(m(F)({height:"100%"}))},{default:N(()=>[H(D,{popin:!0,"page-data":m(h),data:m(p)},{btnBack:N(()=>[H(P,{"as-child":""},{default:N(()=>[H(A,{link:{text:`${C.$t("common.buttons.btnBack")} ${C.$t("listItem.type."+m(p)?.type,2)}`},variante:{classes:"btnPicto",pictoPlacement:"left",pictoColor:"third"},picto:"prev",type:"button"},null,8,["link"])]),_:1})]),_:1},8,["page-data","data"])]),_:1},8,["class"])):ae("",!0),H(P,{asChild:""},{default:N(()=>[H(O,{title:C.$t("listItem.popin.btnClose"),popinFull:!0,class:L(m(F)({position:"fixed",top:{base:"1.5rem",md:"3rem"},right:{base:"1.5rem",md:"3rem"},"& svg":{padding:{base:"0.6rem !important",md:"auto"},width:{base:"4rem !important",md:"auto"},height:{base:"4rem !important",md:"auto"}}}))},null,8,["title","class"])]),_:1})],2),m(v)?(E(),U("div",vet,[H(A,{onClick:T[0]||(T[0]=R=>m(i)("onPrevious",m(p))),link:{text:C.$t("common.prev")},variante:{classes:"pictoOnly",pictoColor:"third"}
843,type:"button",picto:"prev",showSr:!0,class:L(m(F)({position:"fixed",top:"50%",left:{base:"0.5rem",md:"0"},transform:{base:"translate(0,0)",md:"translate(50%, -50%)"},zIndex:"2","& svg":{padding:{base:"0.6rem !important",md:"auto"},width:{base:"4rem !important",md:"auto"},height:{base:"4rem !important",md:"auto"}}}))},null,8,["link","class"]),H(A,{onClick:T[1]||(T[1]=R=>m(i)("onNext",m(p))),link:{text:C.$t("common.next")},variante:{classes:"pictoOnly",pictoColor:"third"},type:"button",picto:"next",showSr:!0,class:L(m(F)({position:"fixed",top:"50%",right:{base:"0.5rem",md:"0"},transform:{base:"translate(0,0)",md:"translate(-50%, -50%)"},zIndex:"2","& svg":{padding:{base:"0.6rem !important",md:"auto"},width:{base:"4rem !important",md:"auto"},height:{base:"4rem !important",md:"auto"}}}))},null,8,["link","class"])])):ae("",!0)]),_:1},8,["aria-label","class"])]),_:1})]),_:1},8,["open"])}}}),_et={class:"map_container"},bet=Q({__name:"TinyInteractiveMap",props:{data:{},items:{}},setup(e){const t=e,n=Va(),r=G(Object.values(n.blocTinyInteractiveMapFields)),i=G(),a=G([]);return Ot(()=>{t.items?a.value=t.items:zo(t.data.urlGeo).then(o=>{a.value=o.documents})}),(o,s)=>{const l=bD,u=xD,c=Mr;return m(a)?.length>0?(E(),V(c,{key:0,header:e.data?.settings?.title,titleInside:!1},{content:N(()=>[Y("div",_et,[H(l,{class:"map-wrap_container",ref_key:"mapRef",ref:i,settings:e.data,results:m(a),fieldsToShow:m(r),display:"map"},null,8,["settings","results","fieldsToShow"])]),H(u)]),_:1},8,["header"])):ae("",!0)}}}),Tre=Q({__name:"FieldCarteTrajectoire",props:{colPos:{},result:{},header:{},config:{},show_images:{type:Boolean},uid:{},showInSummary:{type:Boolean},image:{},itemTitle:{}},setup(e){const t=Yt(),r=G(t.siteBuilderInfos).value?.identifier==="Cdr";return(i,a)=>{const o=Qo,s=U6;return e.result.length>0&&r?(E(),V(s,{key:0,header:e.header,result:[{publicUrl:e.result?.[0].links?.[0]?.href??e.result?.[0]?.properties?.originalUrl,hrefOverride:e.result?.[0].links?.[0]?.href??e.result?.[0]?.properties?.originalUrl,properties:e.result?.[0].image?.[0]?.properties??e.result?.[0]?.properties}],colPos:e.colPos,show_images:!0,uid:e.uid,showInSummary:e.showInSummary,itemTitle:e.itemTitle},{image:N(()=>[H(o,{image:e.image??e.result?.[0]?.image?.[0]??e.result?.[0]},null,8,["image"])]),_:1},8,["header","result","colPos","uid","showInSummary","itemTitle"])):ae("",!0)}}}),xet={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 289 289"};function wet(e,t){return E(),U("svg",xet,[...t[0]||(t[0]=[Y("path",{fill:"#E85444","fill-rule":"evenodd",d:"m77.748 16.767.46.888.458.889a147 147 0 0 0-3.308 1.76l-.482-.877-.481-.876a150 150 0 0 1 3.353-1.784m-9.89 5.587.525.851.525.851a145 145 0 0 0-9.29 6.232l-.59-.808-.588-.808a147 147 0 0 1 9.418-6.318M46.696 38.193l.67.742.67.743q-1.39 1.253-2.742 2.534l-.689-.725-.688-.725q1.37-1.3 2.779-2.57m-8.127 7.915.725.689.726.688a143 143 0 0 0-7.377 8.404l-.777-.63-.777-.63a145 145 0 0 1 7.48-8.52M22.19 66.853l.838.546.839.545a143 143 0 0 0-1.994 3.152l-.852-.524-.853-.523a145 145 0 0 1 2.022-3.196m-5.812 9.738.878.478.878.479a144 144 0 0 0-4.967 10.022l-.913-.409-.913-.409a146 146 0 0 1 5.037-10.161M5.887 100.85l.95.312.95.312q-.581 1.772-1.116 3.558l-.959-.288-.958-.287q.543-1.81 1.133-3.607m-3.114 10.904.972.237.972.237a143 143 0 0 0-2.22 10.962l-.988-.161-.987-.16a145 145 0 0 1 2.251-11.115m41.3 138.243.682-.731.681-.732a140 140 0 0 0 8.487 7.284l-.62.783-.621.784a142 142 0 0 1-8.608-7.388m20.952 16.13q1.6 1.01 3.224 1.977l.512-.859.511-.859a144 144 0 0 1-3.179-1.949l-.534.845zm9.825 5.673.465-.885.466-.884a142 142 0 0 0 10.1 4.815l-.394.918-.394.919a144 144 0 0 1-10.243-4.883m24.434 10.117.297-.954.296-.955q1.782.553 3.577 1.06l-.272.963-.271.962a147 147 0 0 1-3.627-1.076m10.958 2.942.222-.975.221-.975q5.455 1.24 11.002 2.052l-.145.989-.144.99a146 146 0 0 1-11.156-2.081m26.214 3.493.041-.999.042-.999q1.862.078 3.729.107l-.015 1-.016.999a140 140 0 0 1-3.781-.108m11.347.03-.037-.999-.037-.999a144 144 0 0 0 11.156-.844l.114.993.115.994c-3.771.433-7.544.718-11.311.855m26.225-3.363-.217-.976-.218-.976a142 142 0 0 0 3.635-.858l.242.97.243.97a146 146 0 0 1-3.685.87m10.973-2.892-.293-.956-.293-.956a145 145 0 0 0 10.564-3.682l.366.93.366.931a147 147 0 0 1-10.71 3.733m24.484-9.973a135 135 0 0 0 1.683-.881q.839-.447 1.671-.902l-.482-.877-.481-.87
8437a144 144 0 0 1-3.308 1.76l.459.889zm9.891-5.587-.525-.851-.526-.851c3.2-1.972 6.298-4.052 9.291-6.232l.589.808.589.808a147 147 0 0 1-9.418 6.318m21.162-15.838-.67-.743-.67-.743q1.39-1.251 2.741-2.534l.689.725.689.725q-1.37 1.3-2.779 2.57m8.127-7.916-.726-.688-.725-.689a143 143 0 0 0 7.376-8.403l.777.629.778.63a145 145 0 0 1-7.48 8.521m16.378-20.745-.839-.546-.838-.545a146 146 0 0 0 1.994-3.151l.852.523.852.524a144 144 0 0 1-2.021 3.195m5.812-9.738-.878-.478-.879-.479a144 144 0 0 0 4.968-10.022l.913.409.912.409a145 145 0 0 1-5.036 10.161m10.492-24.26-.951-.312-.95-.312q.582-1.772 1.117-3.557l.958.287.958.287q-.542 1.811-1.132 3.607m3.114-10.904-.972-.237-.972-.237a142 142 0 0 0 2.22-10.961l.988.16.987.16a145 145 0 0 1-2.251 11.115m3.881-26.144-.999-.056-.998-.056q.102-1.86.157-3.724l1 .029.999.029q-.054 1.891-.159 3.778m.178-11.339-1 .023-1 .024a140 140 0 0 0-.714-11.157l.995-.104.995-.103c.393 3.772.633 7.547.724 11.317m-3.093-26.248-.978.209-.978.209q-.39-1.823-.83-3.639l.972-.235.973-.235q.446 1.843.841 3.691m-2.817-10.99-.958.287-.958.286a140 140 0 0 0-3.634-10.571l.933-.363.932-.362a142 142 0 0 1 3.685 10.723m-9.903-24.506-.889.458-.889.459a144 144 0 0 0-1.761-3.306l.876-.482.877-.48a136 136 0 0 1 1.786 3.351m-5.601-9.882-.85.526-.85.526a141 141 0 0 0-6.266-9.262l.806-.592.806-.593a143 143 0 0 1 6.354 9.395M251.152 46.98l-.738.675-.738.674q-1.262-1.38-2.557-2.72l.72-.694.719-.694a138 138 0 0 1 2.594 2.759m-7.992-8.057-.682.732-.681.731a140 140 0 0 0-8.486-7.283l.621-.784.62-.784a142 142 0 0 1 8.608 7.388m-20.951-16.13-.534.846-.534.845a141 141 0 0 0-3.18-1.95l.512-.859.511-.859q1.624.968 3.225 1.977m-9.825-5.673-.466.885-.465.885a143 143 0 0 0-10.101-4.815l.394-.919.395-.919a145 145 0 0 1 10.243 4.883M187.95 7.004l-.297.955-.297.954q-1.781-.553-3.577-1.06l.272-.962.272-.962q1.821.513 3.627 1.075m-10.959-2.942-.221.975-.221.975a144 144 0 0 0-11.002-2.052l.144-.99.145-.988c3.748.549 7.47 1.243 11.155 2.08M150.778.57l-.042.999-.041.999a144 144 0 0 0-3.729-.107l.015-1 .015-1q1.893.03 3.782.109m-11.347-.03.037 1 .036.999q-5.575.202-11.155.843l-.115-.993-.115-.993c3.771-.434 7.545-.718 11.312-.856m-26.226 3.363.218.976.217.976a144 144 0 0 0-3.634.858l-.243-.97-.242-.97q1.84-.459 3.684-.87m-10.972 2.892.293.956.292.956a144 144 0 0 0-10.563 3.683l-.366-.931-.366-.93a146 146 0 0 1 10.71-3.734m-60.336 232.68a5 5 0 1 0-8.827 4.7 5 5 0 0 0 8.827-4.7","clip-rule":"evenodd"},null,-1)])])}const wD={render:wet},Cet=["data-bloc-home"],Tet={"data-grid":""},F1=Q({__name:"BlocHome",props:{data:{},header:{},subheader:{},isSubtitle:{type:Boolean,default:!1},headerId:{},link_to_list:{},imageOnTheRight:{type:Boolean},colPos:{},otherLinkTitle:{},titleAlign:{default:"center"},type:{},show_in_summary:{type:Boolean}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=G(null),i=G(!1);return XM(r,([{isIntersecting:a}])=>{i.value=a}),(a,o)=>{const s=s6,l=Tv;return E(),U("div",{"data-bloc-home":e.type,class:L([m(g1)(),m(F)({margin:"0 auto",paddingTop:{base:"2.5rem",md:"5rem",lg:"6rem"},paddingBottom:{base:"2.5rem",md:"5rem",lg:"6rem"}}),m(js)()])},[Y("div",Tet,[me(a.$slots,"title",{},()=>[Y("div",{ref_key:"blocTitle",ref:r,"data-title-container":"",class:L([m(F)({position:"relative",paddingTop:e.subheader?{base:"3.5rem",sm:"4rem",md:"6.7rem",_print:0}:null}),e.isSubtitle&&m(n)?.identifier==="Cdr"?m(y1)():null])},[e.header?(E(),V(s,{key:0,header:e.header,"data-title":"",id:e.headerId||null,class:L([m(F)({fontFamily:"{fonts.bold}"}),e.isSubtitle?m(F)({color:"{colors.white}",bgColor:"{colors.third}",fontSize:{base:"2.5em",sm:"3em",md:"3.5em"}}):m(F)({color:"{colors.third}",marginBottom:"3.5rem",fontSize:{base:"2.8em",sm:"3.5em",md:"{fontSizes.xl}"},textAlign:{base:"center",md:e.titleAlign==="left"?"left":"center",_print:"left"},lineHeight:"1.1"})])},null,8,["header","id","class"])):ae("",!0),e.subheader?(E(),U("p",{key:1,"aria-hidden":"true",class:L([m(F)({fontFamily:"{fonts.bold}",width:"100%",textAlign:"center",fontSize:{base:"4.5em",sm:"6em",md:"8.6em"},color:"{colors.primary}",opacity:m(i)?"0.1":"0",position:"absolute",top:"0",left:e.titleAlign==="left"?{base:"50%",md:"0"}:"50%",transform:e.titleAlign==="left"?m(i)?{base:"translate(-50%, 0)",md:"translate(0, 0)"}:{base:"translate(-50%, 0)",md:"translate(0, -100%)"}:m(i)?"translate(-50%, 0)":"translate(-50%, -100%)",textTransform:"uppercase",letterSpacing:"0.25em",transition:"0.8s ease-in-out",_print:{display:"none"}})])},de(e.subheader),3)):ae("",!0)],2)]),me(a.$slots,"content"),a.$slots.bottom?(E(),V(l,{key:0,"data-buttons-container":"",align:"center",class:L(m(F)({marginTop:{base:"3rem",md:"4rem"}}))},{default:N(()=>[me(a.$slots,"bottom")]),_:3},8,["class"])):ae("",!0)])],10,Cet)}}}),ket=Q({__name:"BottomDirectory",props:{data:{},header:{}},setup(e){const t=e,n=Yt(),r=G(n.backendLayout),i=G(n.siteBuilderInfos),a=i.value?.theme==="Theme1",o=W(()=>t.data?.results?t.data?.results:t.data),s=W(()=>r.value==="home"),{t:l}=dr(),u=W(()=>s.value?t?.header||t.data?.settings?.title:l("blocks.blocsLies.type.mixed")),c=Va(),d=G(Object.values(c.blocHomeEventFields));return(f,h)=>{const p=es,g=wD,v=F1;return m(o)?.length>0?(E(),V(v,{key:0,header:m(u),class:L([m(F)({marginTop:"7rem",justifyContent:"center","& [data-grid]":{width:{base:"100%",lg:"10/12"},position:"relative"},"& [data-title]":{textAlign:"center"}})])},{content:N(()=>[Y("div",{class:L(m(vi)({columns:{base:1,sm:2,lg:3}}))},[(E(!0),U(Ae,null,ft(m(o),b=>(E(),V(p,{result:b,"fields-to-show":m(d),class:L([m(qM)(),a?m(WM)():m(GM)(),a?null:m(F)({"& [data-list-item-content]":{bgColor:"transparent"}}),!a&&b.type!=="events"?m(F)({"& [data-txt]":{display:"flex !important","& > *:not([data-date], [data-category]:not(.eventType))":{padding:0}}}):null])},null,8,["result","fields-to-show","class"]))),256))],2),m(i)?.theme==="Theme1"?(E(),V(g,{key:0,"aria-hidden":"true",class:L([m(vn)({size:"28rem",fill:"{colors.fourth}"}),m(F)({position:"absolute",top:"0",right:"0",transform:"translate(30%, 0) rotate(-120deg)",zIndex:"-1",hideBelow:"lg",_print:{display:"none"}})])},null,8,["class"])):ae("",!0)]),_:1},8,["header","class"])):ae("",!0)}}}
843),Eet={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 383 384"};function Met(e,t){return E(),U("svg",Eet,[...t[0]||(t[0]=[Y("path",{stroke:"#fff","stroke-dasharray":"4 8 12 16","stroke-width":"2",d:"M317.808 123.717a148 148 0 0 1 3.401 6.761l-.904.427q.402.852.794 1.713.392.86.773 1.722l.915-.403a148 148 0 0 1 5.393 14.14l-.952.308c1.166 3.6 2.183 7.22 3.055 10.85l.972-.233a146 146 0 0 1 1.575 7.403l-.983.182a145 145 0 0 1 .638 3.708l.988-.157a145 145 0 0 1 1.593 15.049l-.999.053q.301 5.652.161 11.271l.999.025a145 145 0 0 1-.385 7.56l-.997-.077a145 145 0 0 1-.337 3.744l.994.103a145 145 0 0 1-2.334 14.951l-.979-.205a145 145 0 0 1-2.743 10.937l.959.281a146 146 0 0 1-2.314 7.206l-.944-.33q-.62 1.774-1.288 3.531l.935.355a145 145 0 0 1-6.1 13.85l-.893-.451a143 143 0 0 1-5.468 9.86l.855.519a144 144 0 0 1-4.098 6.364l-.826-.563a145 145 0 0 1-2.158 3.076l.811.585a143 143 0 0 1-9.49 11.789l-.745-.668a141 141 0 0 1-7.852 8.084l.688.725a141 141 0 0 1-5.624 5.066l-.649-.761a140 140 0 0 1-2.894 2.404l.628.777a142 142 0 0 1-12.259 8.869l-.542-.84a142 142 0 0 1-9.706 5.728l.474.881a145 145 0 0 1-6.758 3.409l-.427-.904a140 140 0 0 1-3.435 1.566l.403.915a144 144 0 0 1-14.15 5.365l-.305-.953a141 141 0 0 1-10.861 3.002l.227.974a141 141 0 0 1-7.412 1.526l-.176-.985q-1.855.331-3.712.611l.149.988a142 142 0 0 1-15.063 1.452l-.042-.999c-3.766.161-7.526.17-11.272.031l-.037.999a143 143 0 0 1-7.554-.481l.09-.996a146 146 0 0 1-3.738-.387l-.116.993a144 144 0 0 1-14.918-2.547l.22-.975a144 144 0 0 1-10.893-2.908l-.296.956a146 146 0 0 1-7.17-2.425l.345-.939a142 142 0 0 1-3.511-1.342l-.369.93a146 146 0 0 1-13.755-6.31l.463-.886a145 145 0 0 1-9.779-5.613l-.531.848a146 146 0 0 1-6.307-4.186l.575-.818a148 148 0 0 1-3.049-2.2l-.595.804a146 146 0 0 1-11.673-9.635l.676-.737c-2.759-2.53-5.43-5.176-8.003-7.936l-.731.682a145 145 0 0 1-5.016-5.668l.766-.643q-1.208-1.439-2.382-2.913l-.782.623a146 146 0 0 1-8.797-12.312l.843-.539a146 146 0 0 1-5.7-9.727l-.88.472a148 148 0 0 1-3.402-6.762l.904-.426a143 143 0 0 1-1.567-3.435l-.915.403a148 148 0 0 1-5.392-14.14l.951-.308c-1.166-3.6-2.183-7.22-3.054-10.851l-.973.234a146 146 0 0 1-1.575-7.403l.984-.182q-.345-1.854-.64-3.708l-.987.157a145 145 0 0 1-1.593-15.049l1-.053a144 144 0 0 1-.161-11.271l-1-.025q.094-3.793.385-7.56l.997.077q.144-1.876.337-3.744l-.994-.103c.52-5.033 1.3-10.024 2.334-14.952l.979.206a145 145 0 0 1 2.744-10.937l-.96-.281q1.065-3.635 2.314-7.206l.944.33q.621-1.774 1.288-3.531l-.935-.355a145 145 0 0 1 6.1-13.85l.893.451a143 143 0 0 1 5.468-9.86l-.854-.519a144 144 0 0 1 4.097-6.364l.827.563q1.058-1.552 2.157-3.076l-.81-.585a143 143 0 0 1 9.49-11.79l.744.669a141 141 0 0 1 7.853-8.084l-.69-.726a142 142 0 0 1 5.625-5.065l.649.761q1.429-1.22 2.894-2.404l-.628-.778a142 142 0 0 1 12.259-8.868l.542.84a142 142 0 0 1 9.706-5.728l-.473-.88a144 144 0 0 1 6.758-3.41l.426.904a147 147 0 0 1 3.435-1.566l-.403-.916a144 144 0 0 1 14.15-5.364l.305.953a141 141 0 0 1 10.862-3.003l-.228-.973a142 142 0 0 1 7.413-1.526l.175.984q1.855-.33 3.713-.61l-.149-.988a142 142 0 0 1 15.062-1.452l.043 1c3.765-.162 7.525-.17 11.271-.032l.037-1q3.789.141 7.554.482l-.09.996q1.873.17 3.738.387l.116-.993a144 144 0 0 1 14.918 2.547l-.22.975a144 144 0 0 1 10.893 2.908l.296-.956q3.616 1.119 7.17 2.425l-.345.939a144 144 0 0 1 3.511 1.342l.37-.93a146 146 0 0 1 13.755 6.31l-.464.886a145 145 0 0 1 9.779 5.613l.532-.848a146 146 0 0 1 6.306 4.186l-.575.818q1.538 1.08 3.049 2.2l.595-.804a145 145 0 0 1 11.673 9.635l-.676.736a144 144 0 0 1 8.003 7.937l.731-.682a145 145 0 0 1 5.017 5.668l-.766.643q1.207 1.439 2.381 2.913l.782-.623a146 146 0 0 1 8.797 12.312l-.843.538a146 146 0 0 1 5.7 9.727z"},null,-1)])])}const kre={render:Met},Aet={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 745 860"};function Pet(e,t){return E(),U("svg",Aet,[...t[0]||(t[0]=[Y("g",{fill:"#62810E",opacity:".1"},[Y("path",{d:"m741.79 123.576.135.134.135-.134-.135-.135zM741.79 147.756l.135.131.135-.131-.135-.137zM741.79 171.996l.135.134.135-.134-.135-.135zM741.79 196.204l.135.168.135-.168-.135-.134zM741.79 220.412l.135.135.135-.135-.135-.134zM741.73 244.641q0 .04.014.078a.2.2 0 0 0 .11.11.2.2 0 0 0 .078.014l.202-.202a.2.2 0 0 0-.014-.078.18.18 0 0 0-.11-.
84311.2.2 0 0 0-.078-.014.2.2 0 0 0-.081.008.16.16 0 0 0-.07.043.2.2 0 0 0-.043.069.2.2 0 0 0-.008.082M741.73 268.861a.19.19 0 0 0 .124.188.2.2 0 0 0 .078.014l.202-.202-.202-.201a.19.19 0 0 0-.145.057.2.2 0 0 0-.043.066.2.2 0 0 0-.014.078M741.73 293.078a.182.182 0 0 0 .051.152.18.18 0 0 0 .151.05.2.2 0 0 0 .078-.014.188.188 0 0 0 .11-.109.2.2 0 0 0 .014-.079l-.202-.201a.2.2 0 0 0-.144.057.2.2 0 0 0-.058.144M741.593 317.33a.34.34 0 0 0 .209.312.4.4 0 0 0 .129.025.36.36 0 0 0 .337-.337.335.335 0 0 0-.337-.336.317.317 0 0 0-.336.336M741.427 341.515a.49.49 0 0 0 .504.471.457.457 0 0 0 .438-.471.487.487 0 0 0-.438-.504.52.52 0 0 0-.504.504M741.427 365.734a.49.49 0 0 0 .505.471.473.473 0 0 0 0-.942.49.49 0 0 0-.505.471M741.292 414.171a.634.634 0 0 0 .639.605.596.596 0 0 0 .572-.605.59.59 0 0 0-.153-.438.6.6 0 0 0-.419-.201.639.639 0 0 0-.639.639M741.292 438.389a.634.634 0 0 0 .639.605.607.607 0 0 0 0-1.211.63.63 0 0 0-.639.606M741.091 462.608a.79.79 0 0 0 .496.749.81.81 0 0 0 .87-.173.8.8 0 0 0 .171-.862.79.79 0 0 0-.73-.488.79.79 0 0 0-.741.473.8.8 0 0 0-.067.301M741.091 486.86a.78.78 0 0 0 .243.554.79.79 0 0 0 .564.22.8.8 0 0 0 .559-.232.793.793 0 0 0 0-1.118.81.81 0 0 0-.87-.173.8.8 0 0 0-.438.439.8.8 0 0 0-.059.31M740.956 511.045a.91.91 0 0 0 .942.911.897.897 0 0 0 .941-.911.92.92 0 0 0-.941-.942.93.93 0 0 0-.667.276.952.952 0 0 0-.275.666M740.956 535.263a.95.95 0 0 0 .275.667.95.95 0 0 0 .667.275.94.94 0 0 0 .942-.942.942.942 0 0 0-1.884 0M740.889 559.48a1.01 1.01 0 0 0 1.009 1.009.99.99 0 0 0 1.01-1.009.97.97 0 0 0-.624-.915 1 1 0 0 0-.386-.061.98.98 0 0 0-.93.596 1 1 0 0 0-.079.38M740.788 583.734a1.125 1.125 0 0 0 1.141 1.076 1.1 1.1 0 0 0 1.052-.652c.059-.134.091-.278.094-.424a1.1 1.1 0 0 0-.317-.838 1.114 1.114 0 0 0-.829-.339 1.13 1.13 0 0 0-.821.346 1.14 1.14 0 0 0-.322.831M740.653 607.919a1.27 1.27 0 0 0 .375.904 1.272 1.272 0 0 0 1.808 0 1.286 1.286 0 0 0 .374-.904 1.3 1.3 0 0 0-1.279-1.278 1.3 1.3 0 0 0-1.278 1.278M740.586 632.138a1.344 1.344 0 0 0 1.346 1.375 1.35 1.35 0 0 0 1.251-.851 1.372 1.372 0 0 0-1.251-1.87 1.373 1.373 0 0 0-1.346 1.346M740.452 656.39a1.515 1.515 0 0 0 1.482 1.48 1.516 1.516 0 0 0 1.478-1.48 1.494 1.494 0 0 0-1.478-1.48 1.495 1.495 0 0 0-1.48 1.48M740.317 680.575a1.613 1.613 0 0 0 2.756 1.141 1.615 1.615 0 1 0-2.756-1.141M740.181 704.793a1.736 1.736 0 0 0 1.749 1.749 1.75 1.75 0 1 0 0-3.498 1.732 1.732 0 0 0-1.749 1.749M740.115 729.012a1.8 1.8 0 0 0 .52 1.306 1.82 1.82 0 0 0 1.296.544 1.834 1.834 0 0 0 0-3.667 1.81 1.81 0 0 0-1.816 1.817M739.947 753.264a1.983 1.983 0 0 0 1.985 1.952 1.966 1.966 0 0 0 1.918-1.968 1.967 1.967 0 0 0-1.918-1.967 1.987 1.987 0 0 0-1.985 1.984M739.813 777.449a2.092 2.092 0 0 0 2.88 1.925 2.07 2.07 0 0 0 1.284-1.925 2.051 2.051 0 0 0-2.082-2.052 2.07 2.07 0 0 0-2.082 2.052M739.611 801.667a2.286 2.286 0 0 0 3.905 1.617c.429-.429.67-1.01.67-1.617a2.286 2.286 0 0 0-2.288-2.253 2.26 2.26 0 0 0-2.287 2.253M739.476 825.886a2.43 2.43 0 0 0 1.472 2.262 2.423 2.423 0 1 0 .95-4.65 2.414 2.414 0 0 0-2.422 2.388M739.409 850.104a2.44 2.44 0 0 0 .73 1.75 2.46 2.46 0 0 0 1.759.707 2.432 2.432 0 0 0 2.277-1.512c.122-.3.183-.621.179-.945a2.461 2.461 0 0 0-3.409-2.3 2.5 2.5 0 0 0-1.348 1.347 2.5 2.5 0 0 0-.188.953M717.548 123.576l.166.134.137-.134-.137-.135-.168.135M717.548 147.756l.166.131.137-.131-.137-.137-.168.135M717.548 171.996l.166.134.137-.134-.137-.135-.168.135M717.548 196.204l.166.168.137-.168-.137-.134-.168.134M717.548 220.412l.166.135.137-.135-.137-.134-.168.135M717.478 244.641a.226.226 0 0 0 .235.202l.202-.202a.2.2 0 0 0-.014-.078.18.18 0 0 0-.11-.11.2.2 0 0 0-.078-.014c-.134 0-.235.065-.235.202M717.478 268.861a.22.22 0 0 0 .077.148c.044.038.1.057.158.054l.202-.202-.202-.202a.23.23 0 0 0-.158.054.22.22 0 0 0-.077.148M717.478 293.078c0 .135.101.202.235.202a.2.2 0 0 0 .078-.014.188.188 0 0 0 .11-.109.2.2 0 0 0 .014-.079l-.202-.201a.23.23 0 0 0-.158.053.23.23 0 0 0-.077.148M717.343 317.33a.37.37 0 0 0 .37.337.363.363 0 0 0 .337-.337.34.34 0 0 0-.337-.336.352.352 0 0 0-.339.201.4.4 0 0 0-.031.135M717.209 341.515a.487.487 0 0 0 .504.471.473.473 0 0 0 .437-.471.5.5 0 0 0-.125-.333.5.5 0 0 0-.312-.171.52.52 0 0 0-.504.504M717.209 365.734a.49.49 0 0 0 .504.471.473.473 0 0 0 0-.942.49.49 0 0 0-.504.471M717.209 389.985c.004.13.06.252.155.34.094.089.22.136.349.132a.48.48 0 0 0 .437-.472.515.51
8435 0 0 0-.437-.504.52.52 0 0 0-.504.504M717.074 414.171a.62.62 0 0 0 .398.568.6.6 0 0 0 .241.037.59.59 0 0 0 .572-.605.606.606 0 0 0-.572-.639.62.62 0 0 0-.639.639M717.074 438.389a.62.62 0 0 0 .191.438q.09.086.207.129a.6.6 0 0 0 .813-.567.61.61 0 0 0-.572-.606.6.6 0 0 0-.448.167.6.6 0 0 0-.191.439M716.906 462.608a.8.8 0 0 0 .497.749c.098.04.204.06.31.058a.787.787 0 0 0 .791-.79.8.8 0 0 0-.232-.559.78.78 0 0 0-.559-.232.79.79 0 0 0-.807.774M716.906 486.86a.8.8 0 0 0 .067.301.785.785 0 0 0 .74.473.78.78 0 0 0 .73-.488.788.788 0 0 0-.73-1.093.78.78 0 0 0-.574.233.8.8 0 0 0-.233.574M716.772 511.045a.91.91 0 0 0 .941.911.913.913 0 0 0 .942-.911.94.94 0 0 0-.942-.942.94.94 0 0 0-.941.942M716.772 535.263a.95.95 0 0 0 .581.87.95.95 0 0 0 1.026-.204.946.946 0 0 0-.143-1.449.945.945 0 0 0-1.393.423.9.9 0 0 0-.071.36M716.704 559.48a1.005 1.005 0 0 0 1.008 1.046 1.01 1.01 0 0 0 1.009-1.046 1 1 0 0 0-.3-.7.978.978 0 0 0-.709-.276.983.983 0 0 0-1.009.976M716.57 583.734a1.107 1.107 0 0 0 1.144 1.076 1.074 1.074 0 0 0 1.109-1.076 1.1 1.1 0 0 0-.667-1.091 1.1 1.1 0 0 0-.443-.086 1.11 1.11 0 0 0-.828.339q-.161.168-.245.386a1.1 1.1 0 0 0-.07.452M716.435 607.919a1.29 1.29 0 0 0 .374.904 1.275 1.275 0 0 0 1.388.275 1.26 1.26 0 0 0 .675-.693c.06-.154.09-.319.086-.486a1.27 1.27 0 0 0-1.245-1.278 1.304 1.304 0 0 0-1.278 1.278M716.367 632.138a1.35 1.35 0 0 0 1.346 1.345 1.316 1.316 0 0 0 1.312-1.345 1.344 1.344 0 0 0-1.312-1.346 1.373 1.373 0 0 0-1.346 1.346M716.232 656.39a1.515 1.515 0 0 0 1.48 1.48 1.54 1.54 0 0 0 1.481-1.48 1.52 1.52 0 0 0-.443-1.037 1.52 1.52 0 0 0-1.037-.443 1.493 1.493 0 0 0-1.481 1.48M716.065 680.574c-.003.323.089.639.265.91a1.64 1.64 0 0 0 1.668.71 1.63 1.63 0 0 0 1.295-1.268 1.63 1.63 0 0 0-.677-1.682 1.64 1.64 0 0 0-1.53-.169 1.63 1.63 0 0 0-.893.875c-.084.198-.127.41-.128.624M715.931 704.793a1.748 1.748 0 1 0 1.783-1.75 1.763 1.763 0 0 0-1.783 1.749M715.863 729.012a1.84 1.84 0 0 0 .54 1.31 1.86 1.86 0 0 0 1.31.54 1.83 1.83 0 0 0 1.799-1.833 1.83 1.83 0 0 0-1.799-1.834 1.837 1.837 0 0 0-1.85 1.817M715.729 753.264a1.98 1.98 0 0 0 1.985 1.952 1.966 1.966 0 0 0 1.918-1.968 1.967 1.967 0 0 0-1.918-1.967 1.987 1.987 0 0 0-1.985 1.984M715.594 777.449a2.085 2.085 0 1 0 4.013-.794 2.03 2.03 0 0 0-1.129-1.112 2 2 0 0 0-.795-.146 2.044 2.044 0 0 0-2.083 2.052M715.426 801.667a2.285 2.285 0 0 0 2.713 2.282 2.3 2.3 0 0 0 1.18-.618 2.28 2.28 0 0 0 .511-2.497 2.29 2.29 0 0 0-2.117-1.42 2.25 2.25 0 0 0-1.611.652 2.27 2.27 0 0 0-.676 1.601M715.291 825.886a2.423 2.423 0 1 0 2.422-2.388 2.414 2.414 0 0 0-2.422 2.388M715.224 850.104a2.45 2.45 0 0 0 .731 1.75 2.45 2.45 0 0 0 1.758.707 2.443 2.443 0 0 0 2.456-2.457 2.48 2.48 0 0 0-.724-1.748 2.47 2.47 0 0 0-1.749-.724 2.48 2.48 0 0 0-1.748.724 2.47 2.47 0 0 0-.724 1.748M693.34 99.333l.135.135.134-.135-.135-.134zM693.34 123.576l.135.135.134-.135-.135-.135zM693.34 147.756l.135.131.134-.131-.135-.134zM693.34 171.996l.135.134.134-.134-.135-.135zM693.34 196.204l.135.168.134-.168-.135-.134zM693.259 220.423a.193.193 0 0 0 .202.201.177.177 0 0 0 .202-.201.2.2 0 0 0-.057-.145.2.2 0 0 0-.067-.044.2.2 0 0 0-.078-.013zM693.259 244.641l.202.202a.197.197 0 0 0 .145-.057.2.2 0 0 0 .057-.145.18.18 0 0 0-.051-.151.177.177 0 0 0-.151-.051.197.197 0 0 0-.145.057.2.2 0 0 0-.057.145M693.259 268.861l.202.202a.203.203 0 0 0 .202-.202.203.203 0 0 0-.202-.201zM693.125 293.078a.337.337 0 1 0 .674.001.337.337 0 0 0-.674-.001M693.024 317.33a.47.47 0 0 0 .289.439q.088.034.183.033a.49.49 0 0 0 .344-.132.47.47 0 0 0 .107-.524.468.468 0 0 0-.451-.286.46.46 0 0 0-.439.289.5.5 0 0 0-.033.182M693.024 341.515a.47.47 0 0 0 .135.336.47.47 0 0 0 .336.135.478.478 0 0 0 .334-.814.5.5 0 0 0-.334-.161.486.486 0 0 0-.471.504M693.024 365.734a.47.47 0 0 0 .135.336.45.45 0 0 0 .337.135.47.47 0 0 0 .344-.131.473.473 0 0 0 0-.679.467.467 0 0 0-.344-.131.456.456 0 0 0-.472.47M692.889 389.986q0 .12.045.232a.62.62 0 0 0 .328.328q.112.046.232.045a.61.61 0 0 0 .586-.605.607.607 0 0 0-.586-.606.62.62 0 0 0-.429.177.618.618 0 0 0-.176.429M692.889 414.171a.62.62 0 0 0 .176.429.62.62 0 0 0 .429.176.625.625 0 0 0 .605-.605.63.63 0 0 0-.605-.639.61.61 0 0 0-.605.639M692.688 438.39a.76.76 0 0 0 .773.774.77.77 0 0 0 .59-.203.77.77 0 0 0 .25-.571.774.774 0 0 0-.84-.773.76.76 0 0 0-.773.773M692.688 462.608a.79.79 0 0 0 .774.808.792.792 0 1 0 0-1.582.78.78 0 0 0-.774.774M692.553 486.86a.9.9 0 0 0 .265.646.91.91 0 0 0 .646.265.94.94 0 0 0 .69-.251.927.927 0 0 0-.69-1.599.9.9 0 0 0-.656.277.91.91 0 0 0-.255.664M692.552 511.045a.9.9 0 0 0 .062.353.9.9 0 0 0 .197.299.9.9 0 0 0 .299.197.9.9 0 0 0 .353.062.93.93 0 0 0 .684-.246.919.919 0 0 0 .003-1.342.95.95 0 0 0-.687-.265.92.92 0 0 0-.655.278.91.91 0 0 0-.256.664M692.486 535.264a.98.98 0 0 0 .976 1.009 1 1 0 0 0 .401-.062 1 1 0 0 0 .578-.548 1.01 1.01 0 0 0-.232-1.131 1.015 1.015 0 0 0-.747-.276 1 1 0 0 0-.7.3 1 1 0 0 0-.276.709M692.314 559.482a1.136 1.136 0 0 0 1.144 1.144 1.1 1.1 0 0 0 .82-.325 1.12 1.12 0 0 0 .327-.819 1.14 1.14 0 0 0-.342-.792 1.13 1.13 0 0 0-.802-.318 1.153 1.153 0 0 0-1.147 1.11M692.186 583.734a1.274 1.274 0 0 0 1.276 1.244 1.27 1.27 0 0 0 .91-.359 1.263 1.263 0 0 0 0-1.804 1.25 1.25 0 0 0-.91-.359 1.276 1.276 0 0 0-1.276 1.278M692.116 607.919a1.35 1.35 0 0 0 1.346 1.345 1.327 1.327 0 0 0 1.345-1.345 1.35 1.35 0 0 0-1.346-1.346 1.373 1.373 0 0 0-1.345 1.346M691.981 632.137a1.496 1.496 0 0 0 1.48 1.482 1.47 1.47 0 0 0 1.067-.423 1.47 1.47 0 0 0 .444-1.057 1.5 1.5 0 0 0-.444-1.058 1.5 1.5 0 0 0-1.067-.422 1.495 1.495 0 0 0-1.48 1.48M691.846 656.391a1.615 1.615 0 0 0 1.614 1.615 1.632 1.632 0 1 0 0-3.263 1.63 1.63 0 0 0-1.151.487 1.63 1.63 0 0 0-.463 1.161M691.712 680.575a1.749 1.749 0 1 0 3.497 0 1.749 1.749 0 0 0-3.497 0M691.679 704.793a1.81 1.81 0 0 0 1.12 1.68 1.8 1.8 0 0 0 1.969-.397 1.77 1.77 0 0 0 .51-1.283 1.804 1.804 0 0 0-1.783-1.816 1.834 1.834 0 0 0-1.816 1.816M691.544 729.012a1.97 1.97 0 0 0 1.199 1.831c.238.1.494.153.753.153a1.969 1.969 0 1 0 0-3.935 1.95 1.95 0 0 0-1.952 1.952M691.409 753.264a2.08 2.08 0 0 0 .607 1.477 2.07 2.07 0 0 0 1.475.609 2.085 2.085 0 1 0 0-4.171 2.08 2.08 0 0 0-1.474.607 2.07 2.07 0 0 0-.608 1.475M691.208 777.449a2.253 2.253 0 0 0 2.253 2.253 2.29 2.29 0 0 0 2.321-2.253 2.32 2.32 0 0 0-2.321-2.288 2.286 2.286 0 0 0-2.253 2.288M691.073 801.667a2.405 2.405 0 0 0 2.388 2.422 2.41 2.41 0 0 0 2.325-1.458 2.41 2.41 0 0 0-2.325-3.352 2.396 2.396 0 0 0-2.388 2.388M691.006 825.886a2.454 2.454 0 0 0 2.456 2.489 2.473 2.473 0 1 0-1.739-4.228 2.45 2.45 0 0 0-.717 1.739M690.837 850.104a2.63 2.63 0 0 0 1.618 2.427 2.622 2.622 0 0 0 3.579-1.91 2.626 2.626 0 0 0-2.573-3.137 2.63 2.63 0 0 0-2.624 2.62M669.131 75.125l.135.135.135-.135-.135-.168zM669.131 123.576l.135.135.135-.135-.135-.135zM669.131 147.756l.135.131.135-.131-.135-.134zM669.131 171.996l.135.134.135-.134-.135-.135zM669.064 196.204l.201.236.202-.236-.202-.202zM669.075 220.423a.2.2 0 0 0 .201.201.2.2 0 0 0 .202-.201l-.202-.202zM669.075 244.641l.201.202.202-.202a.201.201 0 1 0-.403 0M668.94 268.86a.367.367 0 0 0 .336.37.37.37 0 0 0 .241-.119.36.36 0 0 0 .07-.38.337.337 0 0 0-.647.129M668.805 293.078a.47.47 0 0 0 .289.439q.088.035.182.032a.467.467 0 0 0 .434-.47.473.473 0 0 0-.434-.471.463.463 0 0 0-.471.47M668.805 317.33a.465.465 0 0 0 .471.472.473.473 0 0 0 0-.942.47.47 0 0 0-.336.135.46.46 0 0 0-.135.336M668.805 341.515a.47.47 0 0 0 .135.336.46.46 0 0 0 .336.135.457.457 0 0 0 .438-.471.487.487 0 0 0-.438-.504.486.486 0 0 0-.471.504M668.671 365.734a.6.6 0 0 0 .176.428.6.6 0 0 0 .429.177.605.605 0 0 0 .406-1.022.6.6 0 0 0-.406-.189.6.6 0 0 0-.429.177.6.6 0 0 0-.176.429M668.671 389.986a.6.6 0 0 0 .605.605.6.6 0 0 0 .406-.189.6.6 0 0 0 0-.833.6.6 0 0 0-.406-.189.6.6 0 0 0-.429.177.6.6 0 0 0-.176.429M668.436 414.171a.82.82 0 0 0 .239.567.82.82 0 0 0 .878.181.79.79 0 0 0 .497-.748.776.776 0 0 0-.807-.808.8.8 0 0 0-.574.234.8.8 0 0 0-.233.574M668.436 438.39a.78.78 0 0 0 .237.561.767.767 0 0 0 .57.213.775.775 0 1 0 0-1.547.766.766 0 0 0-.807.773M668.3 462.608a.95.95 0 0 0 .277.667.93.93 0 0 0 .668.275.96.96 0 0 0 .9-.575.91.91 0 0 0-.216-1.032.92.92 0 0 0-.684-.246.91.91 0 0 0-.941.911M668.3 486.86a.93.93 0 0 0 .942.911.94.94 0 0 0 .69-.251.927.927 0 0 0-.69-1.599.93.93 0 0 0-.87.581.9.9 0 0 0-.072.36M668.233 511.045a1.03 1.03 0 0 0 .626.961 1.023 1.023 0 0 0 1.407-.748c.04-.201.018-.409-.062-.597a1.032 1.032 0 0 0-.962-.626 1.013 1.013 0 0 0-1.009 1.01M668.099 535.264a1.155 1.155 0 0 0 1.144 1.144 1.14 1.14 0 0 0 .791-.345 1.14 1.14 0 0 0 0-1.598 1.15 1.15 0 0 0-.791-.345 1.16 1.16 0 0 0-1.144 1.144M667.964 559.482a1.282 1.282
8430 0 0 1.505 1.295 1.279 1.279 0 1 0-1.504-1.292M667.898 583.734a1.345 1.345 0 1 0 2.689-.058 1.345 1.345 0 0 0-2.689.058M667.796 607.917a1.47 1.47 0 0 0 .422 1.067 1.49 1.49 0 0 0 2.116 0 1.47 1.47 0 0 0 .422-1.067 1.481 1.481 0 0 0-2.96 0M667.661 632.137a1.615 1.615 0 1 0 3.23-.002 1.615 1.615 0 0 0-3.23.002M667.527 656.389a1.756 1.756 0 0 0 2.998 1.232 1.766 1.766 0 0 0-1.249-3.015 1.763 1.763 0 0 0-1.621 1.106c-.086.215-.13.445-.128.677M667.46 680.575a1.81 1.81 0 0 0 1.816 1.816 1.823 1.823 0 0 0 1.783-1.816 1.806 1.806 0 0 0-1.8-1.835 1.8 1.8 0 0 0-1.284.54 1.8 1.8 0 0 0-.515 1.295M667.325 704.793a1.94 1.94 0 0 0 1.202 1.772 1.93 1.93 0 0 0 2.099-.423 1.933 1.933 0 1 0-3.301-1.349M667.191 729.012a2.06 2.06 0 0 0 1.285 1.898 2.068 2.068 0 1 0-.679-3.375 2.08 2.08 0 0 0-.606 1.477M666.953 753.264a2.288 2.288 0 1 0 4.575 0 2.288 2.288 0 0 0-4.575 0M666.821 777.449a2.4 2.4 0 0 0 .706 1.715 2.41 2.41 0 0 0 1.716.707 2.425 2.425 0 0 0 2.422-2.422 2.42 2.42 0 0 0-.71-1.713 2.425 2.425 0 0 0-3.953.784c-.121.295-.183.61-.181.929M666.753 801.668a2.489 2.489 0 1 0 4.789-.948 2.469 2.469 0 0 0-2.299-1.508 2.456 2.456 0 0 0-2.49 2.456M666.619 825.885a2.623 2.623 0 1 0 5.247 0 2.6 2.6 0 0 0-.773-1.841 2.6 2.6 0 0 0-.85-.559 2.6 2.6 0 0 0-1-.19 2.6 2.6 0 0 0-1.001.19 2.59 2.59 0 0 0-1.623 2.4M666.451 850.104a2.83 2.83 0 0 0 1.744 2.61 2.827 2.827 0 0 0 3.692-3.691 2.82 2.82 0 0 0-2.611-1.744 2.845 2.845 0 0 0-2.825 2.825M644.923 50.916l.134.135.135-.135-.135-.134zM644.923 75.125l.134.135.135-.135-.135-.168zM644.923 99.333l.134.135.135-.135-.135-.134zM644.923 123.576l.134.135.135-.135-.135-.135zM644.923 147.756l.134.131.135-.131-.135-.134zM644.856 171.985a.2.2 0 0 0 .008.082.2.2 0 0 0 .043.07.2.2 0 0 0 .069.043.2.2 0 0 0 .082.007.201.201 0 1 0 0-.403.177.177 0 0 0-.202.201M644.856 196.204a.23.23 0 0 0 .053.159.23.23 0 0 0 .149.077l.202-.236-.202-.201a.19.19 0 0 0-.145.057.2.2 0 0 0-.057.144M644.856 220.423a.2.2 0 0 0 .008.081.2.2 0 0 0 .043.07.177.177 0 0 0 .151.05.19.19 0 0 0 .145-.057.2.2 0 0 0 .057-.144l-.202-.202a.2.2 0 0 0-.078.013.2.2 0 0 0-.11.11.2.2 0 0 0-.014.079M644.687 244.641a.338.338 0 0 0 .232.32.34.34 0 0 0 .138.018.335.335 0 0 0 .238-.574.34.34 0 0 0-.238-.099.3.3 0 0 0-.137.019.345.345 0 0 0-.233.318M644.553 268.859a.52.52 0 0 0 .504.505.5.5 0 0 0 .314-.171.506.506 0 0 0 0-.669.5.5 0 0 0-.314-.17.52.52 0 0 0-.504.505M644.553 293.078a.487.487 0 0 0 .504.471.472.472 0 0 0 0-.941.49.49 0 0 0-.504.47M644.553 317.33a.487.487 0 0 0 .504.472.473.473 0 0 0 0-.942.49.49 0 0 0-.504.471M644.417 341.515a.66.66 0 0 0 .638.639.625.625 0 0 0 .572-.639.6.6 0 0 0-.033-.234.6.6 0 0 0-.309-.346.6.6 0 0 0-.23-.059.636.636 0 0 0-.638.639M644.416 365.734a.634.634 0 0 0 .639.605.607.607 0 0 0 0-1.211.63.63 0 0 0-.639.606M644.217 389.986a.78.78 0 0 0 .243.554.8.8 0 0 0 .564.22.795.795 0 0 0 .79-.791.79.79 0 0 0-.79-.79.79.79 0 0 0-.575.233.8.8 0 0 0-.233.574M644.217 414.171a.807.807 0 0 0 1.614 0 .8.8 0 0 0-.244-.557.81.81 0 0 0-1.126 0 .8.8 0 0 0-.244.557M644.082 438.388a.92.92 0 0 0 .278.656.9.9 0 0 0 .664.255.908.908 0 0 0 .903-1.273.91.91 0 0 0-.903-.543.903.903 0 0 0-.87.555.9.9 0 0 0-.072.356M644.082 462.608a.94.94 0 0 0 1.608.666.94.94 0 0 0 .204-1.022.92.92 0 0 0-.87-.555.91.91 0 0 0-.942.911M644.048 486.86q.002.198.08.38a.98.98 0 0 0 .929.596.96.96 0 0 0 .716-.27.96.96 0 0 0 .294-.706 1 1 0 0 0-.29-.719.982.982 0 0 0-.72-.29 1.01 1.01 0 0 0-1.009 1.009M643.914 511.045a1.156 1.156 0 0 0 1.144 1.144 1.123 1.123 0 0 0 1.11-1.144 1.1 1.1 0 0 0-.074-.435 1.1 1.1 0 0 0-.603-.622 1.144 1.144 0 0 0-1.245.246 1.12 1.12 0 0 0-.332.811M643.779 535.263a1.278 1.278 0 0 0 2.557 0 1.304 1.304 0 0 0-1.278-1.278 1.3 1.3 0 0 0-1.279 1.278M643.712 559.482a1.33 1.33 0 0 0 .828 1.248c.165.067.341.1.518.098a1.34 1.34 0 0 0 .957-.389 1.35 1.35 0 0 0 .389-.957 1.373 1.373 0 0 0-1.346-1.346 1.373 1.373 0 0 0-1.346 1.346M643.578 583.734a1.48 1.48 0 0 0 2.96 0 1.52 1.52 0 0 0-1.48-1.513 1.52 1.52 0 0 0-1.48 1.513M643.443 607.919a1.613 1.613 0 0 0 2.756 1.141 1.614 1.614 0 1 0-2.756-1.142M643.275 632.138a1.748 1.748 0 1 0 1.783-1.749 1.768 1.768 0 0 0-1.783 1.749M643.207 656.388a1.82 1.82 0 0 0 1.136 1.652 1.815 1.815 0 0 0 2.461-1.321 1.82 1.82 0 0 0-.095-1.043 1.822 1.822 0 0 0-1.652-1.137 1.84 1.84 0 0 0-1.311.538 1.84 1.84 0 0 0-.539 1.311M643.073 680.575a1.96 1.96 0 0 0 1.22 1.776 1.95 1.95 0 0 0 2.113-.429 1.95 1.95 0 0 0 .429-2.112 1.96 1.96 0 0 0-1.777-1.22 1.987 1.987 0 0 0-1.985 1.985M642.94 704.796a2.065 2.065 0 0 0 2.082 2.051 2.047 2.047 0 0 0 2.082-2.051 2.07 2.07 0 0 0-1.284-1.926 2.1 2.1 0 0 0-.798-.157 2.096 2.096 0 0 0-2.082 2.083M642.737 729.011a2.29 2.29 0 0 0 2.713 2.283 2.29 2.29 0 0 0 1.816-1.789 2.29 2.29 0 0 0-.967-2.359 2.3 2.3 0 0 0-1.274-.388 2.264 2.264 0 0 0-2.287 2.253M642.635 753.264a2.426 2.426 0 0 0 2.422 2.422 2.422 2.422 0 1 0-2.422-2.422M642.568 777.449a2.48 2.48 0 0 0 1.534 2.271 2.473 2.473 0 1 0 .955-4.76 2.47 2.47 0 0 0-1.761.727 2.5 2.5 0 0 0-.728 1.762M642.434 801.667a2.626 2.626 0 0 0 4.479 1.855 2.624 2.624 0 1 0-4.479-1.855M642.233 825.886a2.823 2.823 0 0 0 4.812 2.044 2.827 2.827 0 0 0-1.987-4.836 2.8 2.8 0 0 0-1.994.807 2.8 2.8 0 0 0-.831 1.985M642.097 850.104a2.963 2.963 0 0 0 3.538 2.904 2.97 2.97 0 0 0 2.325-2.326 2.957 2.957 0 0 0-4.994-2.669 2.96 2.96 0 0 0-.869 2.091
843M620.678 2.463l.134.134.134-.134-.134-.135zM620.678 26.677l.134.13.134-.13-.134-.135zM620.678 50.916l.134.135.134-.135-.134-.134zM620.678 75.125l.134.135.134-.135-.134-.168zM620.678 99.333l.134.135.134-.135-.134-.134zM620.678 123.576l.134.135.134-.135-.134-.135zM620.603 147.769a.226.226 0 0 0 .202.235.22.22 0 0 0 .168-.067.237.237 0 0 0 .068-.168.254.254 0 0 0-.236-.202zM620.604 171.985a.2.2 0 0 0 .013.078.2.2 0 0 0 .11.11.2.2 0 0 0 .078.014c.135 0 .236-.065.236-.202 0-.136-.101-.202-.236-.202a.2.2 0 0 0-.078.014.2.2 0 0 0-.066.044.19.19 0 0 0-.057.144M620.604 196.204l.201.236a.25.25 0 0 0 .162-.074.25.25 0 0 0 .074-.162.23.23 0 0 0-.236-.202zM620.469 220.423a.335.335 0 0 0 .336.336.4.4 0 0 0 .138-.018.3.3 0 0 0 .119-.071.356.356 0 0 0 .114-.247.37.37 0 0 0-.12-.241.36.36 0 0 0-.251-.096.36.36 0 0 0-.336.337M620.335 244.642a.463.463 0 0 0 .471.471.473.473 0 0 0 .454-.471.474.474 0 0 0-.454-.471.47.47 0 0 0-.337.135.45.45 0 0 0-.134.336M620.335 268.859a.49.49 0 0 0 .471.505.506.506 0 0 0 0-1.01.491.491 0 0 0-.471.505M620.335 293.078a.45.45 0 0 0 .134.337.454.454 0 0 0 .337.134.467.467 0 0 0 .488-.47.47.47 0 0 0-.488-.471.457.457 0 0 0-.471.47M620.234 317.332a.6.6 0 0 0 .177.429.61.61 0 0 0 .856 0 .6.6 0 0 0 .178-.429.633.633 0 0 0-.605-.639.64.64 0 0 0-.606.639M620.234 341.515a.63.63 0 0 0 .605.639.634.634 0 0 0 .605-.639.596.596 0 0 0-.365-.591.604.604 0 0 0-.81.349.6.6 0 0 0-.036.242M620.032 365.734a.76.76 0 0 0 .774.774.8.8 0 0 0 .589-.203.78.78 0 0 0 0-1.142.77.77 0 0 0-.589-.203.76.76 0 0 0-.718.476.8.8 0 0 0-.056.298M620.032 389.986a.78.78 0 0 0 .774.774.792.792 0 1 0 0-1.581.79.79 0 0 0-.774.807M619.897 414.171a.957.957 0 0 0 .911.941.97.97 0 0 0 .976-.941.955.955 0 0 0-.606-.879.95.95 0 0 0-1.018.221.94.94 0 0 0-.263.658M619.898 438.388a.91.91 0 0 0 .264.647.912.912 0 0 0 .647.264.908.908 0 0 0 .903-1.273.91.91 0 0 0-.903-.543.91.91 0 0 0-.647.264.9.9 0 0 0-.264.647M619.83 462.608a.978.978 0 0 0 .976 1.009 1.02 1.02 0 0 0 1.041-1.009.99.99 0 0 0-.65-.916 1 1 0 0 0-.391-.06.949.949 0 0 0-.976.976M619.698 486.861a1.105 1.105 0 0 0 .681 1.025q.204.083.425.082a1.13 1.13 0 0 0 1.066-.69 1.13 1.13 0 0 0-1.066-1.564 1.11 1.11 0 0 0-1.034.712 1.1 1.1 0 0 0-.072.435M619.561 511.045a1.294 1.294 0 0 0 1.245 1.278 1.28 1.28 0 0 0 1.181-.788 1.3 1.3 0 0 0 .097-.49 1.257 1.257 0 0 0-2.163-.894c-.232.239-.362.56-.36.894M619.46 535.264a1.373 1.373 0 0 0 1.346 1.345 1.347 1.347 0 0 0 1.346-1.346 1.373 1.373 0 0 0-1.346-1.345 1.395 1.395 0 0 0-1.346 1.346M619.326 559.481a1.516 1.516 0 0 0 1.483 1.481 1.497 1.497 0 0 0 1.477-1.481 1.517 1.517 0 0 0-1.477-1.479 1.54 1.54 0 0 0-1.481 1.479M619.191 583.734a1.61 1.61 0 0 0 1.614 1.581c.213.004.424-.034.622-.112a1.61 1.61 0 0 0 .884-.867 1.6 1.6 0 0 0 0-1.238 1.6 1.6 0 0 0-1.506-.979 1.59 1.59 0 0 0-1.497.994 1.6 1.6 0 0 0-.117.621M619.055 607.919a1.752 1.752 0 0 0 1.079 1.616 1.749 1.749 0 1 0 .671-3.365 1.75 1.75 0 0 0-1.75 1.749M618.991 632.137c0 .482.192.944.532 1.285a1.82 1.82 0 0 0 2.569 0 1.816 1.816 0 1 0-3.101-1.285M618.855 656.387a1.975 1.975 0 0 0 1.952 1.952 1.97 1.97 0 0 0 1.392-3.359 1.97 1.97 0 0 0-1.392-.577 1.983 1.983 0 0 0-1.952 1.985M618.754 680.575a2.07 2.07 0 0 0 1.283 1.928 2.089 2.089 0 0 0 2.884-1.928 2.084 2.084 0 0 0-2.085-2.086 2.08 2.08 0 0 0-1.926 1.284 2.1 2.1 0 0 0-.156.798M618.552 704.793a2.285 2.285 0 0 0 2.253 2.287 2.317 2.317 0 0 0 2.321-2.287 2.29 2.29 0 0 0-2.321-2.253 2.253 2.253 0 0 0-2.253 2.253M618.417 729.011a2.41 2.41 0 0 0 2.388 2.422 2.41 2.41 0 0 0 2.52-2.405 2.41 2.41 0 0 0-2.52-2.405 2.4 2.4 0 0 0-1.686.702 2.4 2.4 0 0 0-.702 1.686M618.349 753.263a2.48 2.48 0 0 0 1.542 2.275 2.47 2.47 0 0 0 2.691-.554 2.473 2.473 0 1 0-4.233-1.721M618.215 777.449a2.6 2.6 0 0 0 4.445 1.855 2.624 2.624 0 0 0-1.855-4.478c-.343.001-.682.07-.998.202a2.62 2.62 0 0 0-1.402 1.421 2.6 2.6 0 0 0-.19 1M617.98 801.667a2.83 2.83 0 0 0 1.744 2.61 2.823 2.823 0 0 0 3.852-2.059 2.819 2.819 0 0 0-2.771-3.376 2.823 2.823 0 0 0-2.825 2.825M617.845 825.886a2.965 2.965 0 0 0 1.827 2.735 2.96 2.96 0 0 0 3.226-.642 2.96 2.96 0 0 0 .642-3.226 2.96 2.96 0 0 0-4.827-.959 2.97 2.97 0 0 0-.868 2.092M617.71 850.104a3.098 3.098 0 0 0 3.699 3.036 3.1 3.1 0 0 0 2.431-2.432 3.1 3.1 0 0 0-1.315-3.177 3.1 3.1 0 0 0-1.72-.521 3.087 3.087 0 0 0-3.095 3.094M596.471 2.463l.13.134.137-.134-.137-.135zM596.471 26.677l.13.13.137-.13-.137-.137zM596.471 50.916l.13.135.137-.135-.137-.134-.135.135M596.471 75.125l.13.135.137-.135-.137-.169-.135.168M596.471 99.333l.13.135.137-.135-.137-.134-.135.134M596.419 123.582l.202.202.201-.202a.23.23 0 0 0-.053-.158.23.23 0 0 0-.148-.077.224.224 0 0 0-.202.235M596.419 147.769a.224.224 0 0 0 .202.235.23.23 0 0 0 .148-.077.23.23 0 0 0 .053-.158l-.201-.202zM596.419 171.985a.202.202 0 0 0 .4.04.205.205 0 0 0-.086-.208.2.2 0 0 0-.112-.034.2.2 0 0 0-.145.058.2.2 0 0 0-.043.066.2.2 0 0 0-.014.078M596.284 196.204a.339.339 0 0 0 .657.138.3.3 0 0 0 .016-.138.337.337 0 1 0-.673 0M596.149 220.423a.487.487 0 0 0 .472.504.486.486 0 0 0 .437-.504.456.456 0 0 0-.619-.439.46.46 0 0 0-.29.439M596.15 244.642a.45.45 0 0 0 .289.438.5.5 0 0 0 .182.033.473.473 0 0 0 0-.942.47.47 0 0 0-.439.289.5.5 0 0 0-.032.182M596.15 268.859a.487.487 0 0 0 .471.505.512.512 0 0 0 .314-.84.52.52 0 0 0-.314-.17.49.49 0 0 0-.471.505M596.015 293.078a.6.6 0 0 0 .177.429.6.6 0 0 0 .856-.001.6.6 0 0 0 .131-.66.6.6 0 0 0-.559-.374.62.62 0 0 0-.429.177.618.618 0 0 0-.176.429M596.015 317.332a.6.6 0 0 0 .176.429.62.62 0 0 0 .429.177.625.625 0 0 0 .605-.606.655.655 0 0 0-.605-.639.633.633 0 0 0-.605.639M595.813 341.516a.814.814 0 0 0 1.371.585.82.82 0 0 0 .251-.586.8.8 0 0 0-.527-.757.82.82 0 0 0-.869.2.8.8 0 0 0-.226.558M595.813 365.734a.76.76 0 0 0 .774.774.8.8 0 0 0 .589-.203.78.78 0 0 0 0-1.142.77.77 0 0 0-.589-.203.76.76 0 0 0-.718.476.8.8 0 0 0-.056.298M595.645 389.985a.9.9 0 0 0 .277.656.91.91 0 0 0 .664.25
8435.91.91 0 0 0 .898-.548.9.9 0 0 0 .078-.363.96.96 0 0 0-1.917 0M595.645 414.171a.96.96 0 1 0 1.917 0 .96.96 0 0 0-1.917 0M595.578 438.387q.002.198.08.38a.98.98 0 0 0 .929.596.976.976 0 0 0 0-1.952.983.983 0 0 0-1.009.976M595.444 462.608a1.157 1.157 0 0 0 1.958.824 1.12 1.12 0 0 0 .34-.807c0-.15-.03-.299-.089-.437a1.132 1.132 0 0 0-1.065-.689 1.147 1.147 0 0 0-1.144 1.11M595.308 486.86a1.273 1.273 0 0 0 1.279 1.244 1.22 1.22 0 0 0 .906-.347 1.23 1.23 0 0 0 .372-.897 1.269 1.269 0 0 0-.368-.911 1.25 1.25 0 0 0-.91-.367 1.3 1.3 0 0 0-1.279 1.278M595.242 511.045a1.394 1.394 0 0 0 1.346 1.346 1.375 1.375 0 0 0 1.345-1.346 1.327 1.327 0 0 0-1.345-1.345 1.35 1.35 0 0 0-1.346 1.345M595.106 535.263a1.48 1.48 0 1 0 1.481-1.48 1.49 1.49 0 0 0-1.481 1.48M595.006 559.481a1.59 1.59 0 0 0 .993 1.497c.197.081.408.12.621.118a1.615 1.615 0 0 0 1.614-1.615 1.637 1.637 0 0 0-1.614-1.614 1.61 1.61 0 0 0-1.614 1.614M594.872 583.734a1.727 1.727 0 0 0 1.749 1.716 1.73 1.73 0 0 0 1.6-1.07 1.73 1.73 0 0 0-1.6-2.395 1.717 1.717 0 0 0-1.749 1.749M594.805 607.919a1.83 1.83 0 0 0 1.816 1.815 1.8 1.8 0 0 0 1.783-1.815 1.78 1.78 0 0 0-1.093-1.679 1.8 1.8 0 0 0-.69-.138 1.8 1.8 0 0 0-1.68 1.121c-.091.22-.137.457-.136.696M594.669 632.137a1.95 1.95 0 0 0 .554 1.391 1.93 1.93 0 0 0 2.129.428 1.93 1.93 0 0 0 1.186-1.819 1.935 1.935 0 0 0-3.869 0M594.535 656.39a2.08 2.08 0 0 0 .607 1.477 2.07 2.07 0 0 0 1.475.608 2.086 2.086 0 1 0-1.925-2.886 2.1 2.1 0 0 0-.157.798M594.333 680.574a2.26 2.26 0 0 0 2.254 2.254 2.27 2.27 0 0 0 1.641-.646 2.28 2.28 0 0 0 .684-1.624 2.26 2.26 0 0 0-.684-1.625 2.27 2.27 0 0 0-1.641-.646 2.25 2.25 0 0 0-1.603.675 2.25 2.25 0 0 0-.651 1.612M594.165 704.792a2.4 2.4 0 0 0 .706 1.715 2.398 2.398 0 0 0 1.716.706 2.42 2.42 0 0 0 2.422-2.421 2.42 2.42 0 0 0-.71-1.713 2.4 2.4 0 0 0-1.712-.709 2.41 2.41 0 0 0-2.24 1.493c-.122.295-.183.61-.182.929M594.097 729.012a2.495 2.495 0 0 0 2.954 2.48 2.495 2.495 0 0 0 1.975-1.948 2.491 2.491 0 0 0-4.189-2.272 2.49 2.49 0 0 0-.74 1.74M593.963 753.264a2.624 2.624 0 1 0 5.247-.001 2.624 2.624 0 0 0-5.247.001M593.761 777.449a2.825 2.825 0 1 0 5.65.001 2.825 2.825 0 0 0-5.65-.001M593.63 801.667a2.959 2.959 0 1 0 5.694-1.133 2.955 2.955 0 0 0-2.734-1.827 2.95 2.95 0 0 0-2.74 1.825c-.148.36-.223.746-.22 1.135M593.526 825.886a3.094 3.094 0 1 0 3.095-3.095 3.113 3.113 0 0 0-3.095 3.095M593.324 850.104a3.285 3.285 0 0 0 2.033 3.016 3.27 3.27 0 0 0 3.566-.714 3.278 3.278 0 0 0-2.302-5.598 3.3 3.3 0 0 0-3.297 3.296M572.26 2.463l.135.134.135-.134-.135-.135zM572.26 26.677l.135.13.135-.13-.135-.135zM572.26 50.916l.135.135.135-.135-.135-.134zM572.26 75.125l.135.135.135-.135-.135-.168zM572.201 99.33a.17.17 0 0 0 .05.15.18.18 0 0 0 .151.051.202.202 0 1 0 0-.403.18.18 0 0 0-.194.12.2.2 0 0 0-.007.081M572.201 123.582a.22.22 0 0 0 .062.14.22.22 0 0 0 .139.062l.202-.202a.224.224 0 0 0-.202-.235c-.134 0-.201.101-.201.235M572.201 147.769c0 .135.065.235.201.235a.224.224 0 0 0 .202-.235l-.202-.202a.2.2 0 0 0-.139.063.2.2 0 0 0-.062.139M572.065 171.985a.31.31 0 0 0 .093.244.31.31 0 0 0 .244.093.337.337 0 0 0 0-.673.31.31 0 0 0-.244.092.32.32 0 0 0-.093.244M571.929 196.204a.487.487 0 0 0 .471.505.49.49 0 0 0 .44-.505.476.476 0 0 0-.438-.471.48.48 0 0 0-.471.471M571.929 220.423a.485.485 0 0 0 .471.504.487.487 0 0 0 .44-.504.456.456 0 0 0-.62-.439.46.46 0 0 0-.256.257.5.5 0 0 0-.033.182M571.929 244.642a.45.45 0 0 0 .289.438.5.5 0 0 0 .182.033.473.473 0 0 0 0-.942.47.47 0 0 0-.337.135.454.454 0 0 0-.134.336M571.763 268.859a.66.66 0 0 0 .639.639.642.642 0 0 0 .408-1.068.65.65 0 0 0-.408-.21.663.663 0 0 0-.639.639M571.763 293.078a.634.634 0 0 0 .639.605.6.6 0 0 0 .406-.189.6.6 0 0 0 0-.833.6.6 0 0 0-.406-.189.635.635 0 0 0-.639.606M571.561 317.33a.806.806 0 0 0 1.379.571.807.807 0 0 0-.572-1.378.796.796 0 0 0-.807.807M571.561 341.516a.805.805 0 0 0 .965.792.81.81 0 0 0 .635-.635.808.808 0 0 0-.792-.965.816.816 0 0 0-.808.808M571.426 365.734q0 .188.072.36a.9.9 0 0 0 .204.306.92.92 0 0 0 .666.275.9.9 0 0 0 .673-.269.92.92 0 0 0 .269-.672.894.894 0 0 0-.942-.911.91.91 0 0 0-.942.911M571.426 389.985q0 .186.073.356a.9.9 0 0 0 .511.495.9.9 0 0 0 .358.06.89.89 0 0 0 .875-.552.9.9 0 0 0 .067-.359.92.92 0 0 0-.942-.941.95.95 0 0 0-.666.275.94.94 0 0 0-.276.666M571.359 414.171a1.03 1.03 0 0 0 .626.961 1.023 1.023 0 0 0 1.407-.748c.04-.201.018-.409-.062-.597a1.03 1.03 0 0 0-.385-.46 1.035 1.035 0 0 0-1.289.131 1 1 0 0 0-.297.713M571.221 438.39a1.155 1.155 0 0 0 1.144 1.144 1.145 1.145 0 0 0 0-2.288 1.155 1.155 0 0 0-1.144 1.144M571.126 462.607a1.277 1.277 0 0 0 1.279 1.279 1.277 1.277 0 1 0 0-2.557 1.28 1.28 0 0 0-1.279 1.278M571.057 486.859a1.34 1.34 0 0 0 .83 1.243 1.346 1.346 0 1 0-.83-1.243M570.922 511.045a1.48 1.48 0 0 0 .906 1.395 1.47 1.47 0 0 0 1.148 0 1.48 1.48 0 1 0-2.054-1.395M570.787 535.263a1.615 1.615 0 1 0 3.23 0 1.615 1.615 0 0 0-3.23-.001M570.653 559.482a1.75 1.75 0 0 0 1.749 1.783 1.766 1.766 0 1 0 0-3.532 1.73 1.73 0 0 0-1.619 1.078 1.8 1.8 0 0 0-.13.671M570.585 583.734a1.803 1.803 0 0 0 2.176 1.712 1.799 1.799 0 0 0 .631-3.253 1.795 1.795 0 0 0-2.291.231 1.8 1.8 0 0 0-.516 1.31M570.452 607.919a1.929 1.929 0 0 0 2.315 1.877 1.932 1.932 0 0 0 .704-3.496 1.936 1.936 0 0 0-2.454.232 1.9 1.9 0 0 0-.422.637 1.9 1.9 0 0 0-.143.75M570.283 632.138a2.096 2.096 0 0 0 2.086 2.082 2.085 2.085 0 0 0 0-4.171 2.1 2.1 0 0 0-2.086 2.082M570.081 656.389a2.29 2.29 0 0 0 3.886 1.583c.427-.418.675-.986.689-1.583a2.287 2.287 0 0 0-4.575 0M569.947 680.575a2.421 2.421 0 1 0 4.843 0 2.421 2.421 0 0 0-4.843 0M569.879 704.79a2.48 2.48 0 0 0 2.489 2.493 2.49 2.49 0 0 0 0-4.979 2.47 2.47 0 0 0-1.761.727 2.48 2.48 0 0 0-.728 1.759M569.778 729.011a2.624 2.624 0 1 0 5.247-.001 2.624 2.624 0 0 0-5.247.001M569.577 753.263a2.83 2.83 0 0 0 1.744 2.611 2.824 2.824 0 0 0 2.651-4.96 2.83 2.83 0 0 0-3.569.35 2.84 2.84 0 0 0-.826 1.999M569.442 777.449a2.962 2.962 0 0 0 3.538 2.903 2.96 2.96 0 0 0 2.325-2.326 2.95 2.95 0 0 0-1.258-3.039 2.96 2.96 0 0 0-1.645-.498 2.93 2.93 0 0 0-2.098.862 2.94 2.94 0 0 0-.862 2.098M569.307 801.67a3.094 3.094 0 1 0 5.954-1.185 3.096 3.096 0 0 0-5.954 1.185M569.103 825.886a3.285 3.285 0 0 0 2.033 3.016 3.28 3.28 0 1 0 1.264-6.312 3.28 3.28 0 0 0-2.334.963 3.29 3.29 0 0 0-.963 2.333M568.971 850.105a3.418 3.418 0 0 0 4.105 3.293 3.414 3.414 0 0 0-.674-6.758 3.43 3.43 0 0 0-2.44 1.015 3.43 3.43 0 0 0-.991 2.45M548.019 50.916l.168.135.134-.135-.134-.134zM547.947 75.111a.225.225 0 0 0 .236.202l.202-.202-.202-.235a.25.25 0 0 0-.236.235M547.947 99.33c0 .134.101.201.236.201a.202.202 0 0 0 .202-.202.2.2 0 0 0-.202-.201c-.135 0-.236.065-.236.201M547.947 123.582a.254.254 0 0 0 .236.202l.201-.202a.23.23 0 0 0-.053-.158.23.23 0 0 0-.148-.077.24.24 0 0 0-.169.067.2.2 0 0 0-.051.077.2.2 0 0 0-.016.091M547.813 147.767c.001.098.04.191.109.261.07.069.163.108.261.109a.37.37 0 0 0 .337-.37.364.364 0 0 0-.337-.337.372.372 0 0 0-.37.337M547.679 171.986a.49.49 0 0 0 .504.471.473.473 0 0 0 0-.942.487.487 0 0 0-.504.471M547.679 196.204a.52.52 0 0 0 .504.505.52.52 0 0 0 .313-.171.52.52 0 0 0 .125-.334.505.505 0 0 0-.438-.471.515.515 0 0 0-.504.471M547.679 220.423a.53.53 0 0 0 .152.352c.094.093.22.148.352.152a.52.52 0 0 0 .313-.171.52.52 0 0 0 .125-.333.48.48 0 0 0-.438-.472.487.487 0 0 0-.504.472M547.544 244.641a.62.62 0 0 0 .191.438q.09.086.207.129a.6.6 0 0 0 .813-.567.61.61 0 0 0-.572-.606.
8436.6 0 0 0-.448.167.61.61 0 0 0-.191.438M547.544 268.859a.64.64 0 0 0 .639.639.642.642 0 0 0 0-1.278.64.64 0 0 0-.639.639M547.377 293.078a.8.8 0 0 0 .474.771.8.8 0 0 0 .47.06.808.808 0 0 0-.138-1.604.797.797 0 0 0-.806.773M547.376 317.33a.807.807 0 1 0 .807-.807.79.79 0 0 0-.807.807M547.242 341.515a.94.94 0 1 0 1.881 0 .94.94 0 0 0-1.881 0M547.242 365.734a.94.94 0 1 0 1.811-.356.9.9 0 0 0-.511-.495.9.9 0 0 0-.358-.06.91.91 0 0 0-.942.911M547.177 389.986a1.01 1.01 0 0 0 2.017 0 1 1 0 0 0-.282-.737 1.015 1.015 0 0 0-1.121-.228 1.01 1.01 0 0 0-.614.965M547.04 414.171a1.14 1.14 0 0 0 .332.812 1.14 1.14 0 0 0 .812.332 1.147 1.147 0 0 0 1.117-1.143 1.145 1.145 0 0 0-1.117-1.144 1.136 1.136 0 0 0-1.144 1.144M546.905 438.389a1.28 1.28 0 0 0 .789 1.181c.155.064.321.097.489.097a1.281 1.281 0 0 0 .886-2.172 1.28 1.28 0 0 0-.886-.385 1.28 1.28 0 0 0-1.181.789 1.3 1.3 0 0 0-.097.49M546.838 462.608a1.32 1.32 0 0 0 .828 1.247c.164.067.34.1.517.098a1.28 1.28 0 0 0 .943-.393 1.3 1.3 0 0 0 .369-.953 1.343 1.343 0 0 0-1.312-1.345 1.373 1.373 0 0 0-1.345 1.346M546.704 486.857a1.517 1.517 0 0 0 1.479 1.48 1.541 1.541 0 0 0 1.481-1.48 1.517 1.517 0 0 0-1.481-1.477 1.494 1.494 0 0 0-1.479 1.477M546.535 511.045a1.631 1.631 0 1 0 1.021-1.499 1.61 1.61 0 0 0-1.021 1.499M546.401 535.263a1.75 1.75 0 0 0 1.072 1.613 1.748 1.748 0 0 0 1.673-3.051 1.75 1.75 0 0 0-.962-.311 1.763 1.763 0 0 0-1.783 1.749M546.333 559.481a1.81 1.81 0 0 0 .52 1.307 1.82 1.82 0 0 0 2 .403 1.8 1.8 0 0 0 .985-1.004c.089-.224.133-.464.128-.706a1.816 1.816 0 0 0-3.633 0M546.199 583.734a1.954 1.954 0 0 0 3.905 0 1.953 1.953 0 0 0-3.905 0M546.065 607.919a2.095 2.095 0 0 0 2.882 1.93 2.1 2.1 0 0 0 1.13-1.13c.104-.254.157-.526.155-.8a2.04 2.04 0 0 0-.611-1.465 2.05 2.05 0 0 0-1.474-.587 2.066 2.066 0 0 0-2.082 2.052M545.893 632.137a2.285 2.285 0 0 0 1.387 2.138 2.289 2.289 0 1 0 .903-4.391 2.26 2.26 0 0 0-1.613.651 2.26 2.26 0 0 0-.677 1.602M545.765 656.39a2.421 2.421 0 1 0 4.843 0 2.421 2.421 0 0 0-4.843 0M545.694 680.575a2.48 2.48 0 0 0 1.534 2.271 2.473 2.473 0 1 0 .955-4.76 2.47 2.47 0 0 0-1.761.727 2.5 2.5 0 0 0-.728 1.762M545.56 704.793a2.63 2.63 0 0 0 2.624 2.624 2.624 2.624 0 1 0-2.624-2.624M545.358 729.012a2.814 2.814 0 0 0 3.36 2.736 2.8 2.8 0 0 0 2.202-2.201 2.8 2.8 0 0 0-1.183-2.88 2.813 2.813 0 0 0-4.171 1.259 2.8 2.8 0 0 0-.208 1.086M545.223 753.264a2.965 2.965 0 0 0 1.828 2.735 2.96 2.96 0 1 0 1.132-5.695 2.964 2.964 0 0 0-2.96 2.96M545.058 777.449a3.114 3.114 0 0 0 3.704 3.072 3.12 3.12 0 0 0 2.457-2.434 3.112 3.112 0 0 0-3.038-3.732 3.113 3.113 0 0 0-3.123 3.094M544.854 801.666a3.29 3.29 0 0 0 2.027 3.042 3.296 3.296 0 1 0 1.303-6.338 3.3 3.3 0 0 0-1.273.239 3.299 3.299 0 0 0-1.806 1.787 3.3 3.3 0 0 0-.251 1.27M544.719 825.886a3.43 3.43 0 0 0 6.792.689 3.435 3.435 0 0 0-1.431-3.526 3.4 3.4 0 0 0-1.897-.594 3.46 3.46 0 0 0-2.439 1.001 3.46 3.46 0 0 0-1.025 2.43M544.55 850.104a3.64 3.64 0 0 0 2.243 3.357 3.63 3.63 0 0 0 4.953-2.648 3.625 3.625 0 0 0-1.544-3.729 3.64 3.64 0 0 0-2.019-.613 3.6 3.6 0 0 0-1.393.271 3.6 3.6 0 0 0-2.24 3.362M523.81 2.463l.135.134.134-.134-.135-.135zM523.81 26.677l.135.13.134-.13-.135-.135zM523.73 50.927l.201.201a.2.2 0 0 0 .145-.057.2.2 0 0 0 .043-.066.2.2 0 0 0 .014-.078.2.2 0 0 0-.007-.082.2.2 0 0 0-.043-.07.179.179 0 0 0-.152-.05.2.2 0 0 0-.188.123.2.2 0 0 0-.013.079M523.729 75.111l.202.202a.197.197 0 0 0 .145-.057.2.2 0 0 0 .043-.067.2.2 0 0 0 .014-.078.224.224 0 0 0-.202-.235zM523.73 99.33a.2.2 0 0 0 .057.144.2.2 0 0 0 .144.057.18.18 0 0 0 .202-.202.2.2 0 0 0-.007-.081.2.2 0 0 0-.043-.07.18.18 0 0 0-.152-.05.2.2 0 0 0-.188.123.2.2 0 0 0-.013.078M523.595 123.582a.36.36 0 0 0 .336.337.34.34 0 0 0 .337-.337.36.36 0 0 0-.089-.257.4.4 0 0 0-.112-.082.4.4 0 0 0-.136-.031.37.37 0 0 0-.336.37M523.494 147.765a.49.49 0 0 0 .132.349c.088.095.21.151.34.155a.51.51 0 0 0 .47-.504.478.478 0 0 0-.653-.438.46.46 0 0 0-.289.438M523.495 171.986a.45.45 0 0 0 .289.438.5.5 0 0 0 .182.033.47.47 0 0 0 .344-.132.46.46 0 0 0 .144-.339.465.465 0 0 0-.303-.44.5.5 0 0 0-.185-.031.47.47 0 0 0-.337.135.454.454 0 0 0-.134.336M523.495 196.204a.487.487 0 0 0 .471.505.513.513 0 0 0 .471-.505.51.51 0 0 0-.471-.471.483.483 0 0 0-.471.471M523.357 220.422a.63.63 0 0 0 .605.639.66.66 0 0 0 .606-.639.63.63 0 0 0-.606-.606.6.6 0 0 0-.429.177.6.6 0 0 0-.176.429M523.357 244.641a.6.6 0 0 0 .605.605c.16 0 .314-.064.428-.177a.61.61 0 0 0 0-.857.61.61 0 0 0-.988.196.6.6 0 0 0-.045.232M523.158 268.86a.814.814 0 0 0 1.371.585.81.81 0 0 0-.276-1.343.82.82 0 0 0-.869.2.8.8 0 0 0-.226.558M523.158 293.078a.79.79 0 0 0 .774.808.792.792 0 1 0 0-1.581.777.777 0 0 0-.774.773M523.023 317.33a.877.877 0 0 0 .558.849.9.9 0 0 0 .353.062.94.94 0 0 0 .683-.246.92.92 0 0 0 .293-.665.95.95 0 0 0-.976-.942.91.91 0 0 0-.911.942M523.023 341.515a.934.934 0 0 0 .911.942.971.971 0 0 0 .976-.942.95.95 0 0 0-.606-.878 1 1 0 0 0-.37-.064.91.91 0 0 0-.911.942M522.956 365.733a.98.98 0 0 0 .976 1.01 1.04 1.04 0 0 0 .731-.288 1.01 1.01 0 0 0 .31-.722.99.99 0 0 0-.65-.916 1 1 0 0 0-.391-.06.955.955 0 0 0-.976.976M522.822 389.985a1.13 1.13 0 0 0 1.127 1.1 1.13
8431.13 0 0 0 1.126-1.1 1.1 1.1 0 0 0-.072-.445 1.124 1.124 0 0 0-1.868-.382 1.13 1.13 0 0 0-.313.827M522.653 414.171a1.326 1.326 0 0 0 1.279 1.276 1.28 1.28 0 0 0 1.181-.789 1.3 1.3 0 0 0 .097-.489 1.257 1.257 0 0 0-1.278-1.276 1.299 1.299 0 0 0-1.279 1.278M522.586 438.39a1.4 1.4 0 0 0 1.346 1.345 1.347 1.347 0 1 0 0-2.69 1.394 1.394 0 0 0-1.346 1.345M522.451 462.608a1.482 1.482 0 0 0 2.528 1.047 1.48 1.48 0 0 0-1.047-2.527 1.49 1.49 0 0 0-1.481 1.48M522.317 486.86a1.615 1.615 0 0 0 1.614 1.615 1.64 1.64 0 0 0 1.521-1 1.635 1.635 0 0 0-1.19-2.232 1.625 1.625 0 0 0-1.945 1.617M522.182 511.045a1.747 1.747 0 0 0 1.749 1.749 1.75 1.75 0 1 0-1.749-1.749M522.149 535.263a1.8 1.8 0 0 0 .529 1.287 1.807 1.807 0 0 0 2.561-.003 1.8 1.8 0 0 0 .509-1.284 1.804 1.804 0 0 0-1.783-1.816 1.83 1.83 0 0 0-1.816 1.816M522.014 559.482a1.96 1.96 0 0 0 1.205 1.804 1.958 1.958 0 0 0 2.662-1.423 1.953 1.953 0 0 0-1.915-2.333 1.99 1.99 0 0 0-1.372.58 1.99 1.99 0 0 0-.58 1.372M521.88 583.736a2.07 2.07 0 0 0 2.082 2.05 2.069 2.069 0 1 0 0-4.137 2.04 2.04 0 0 0-1.482.603 2.05 2.05 0 0 0-.6 1.484M521.678 607.919a2.253 2.253 0 0 0 2.253 2.253 2.29 2.29 0 0 0 1.626-.647c.436-.422.685-1 .695-1.606a2.32 2.32 0 0 0-2.321-2.291 2.286 2.286 0 0 0-2.253 2.288M521.543 632.137a2.41 2.41 0 0 0 2.388 2.422 2.41 2.41 0 0 0 2.52-2.405 2.41 2.41 0 0 0-2.52-2.405 2.4 2.4 0 0 0-1.686.702 2.4 2.4 0 0 0-.702 1.686M521.476 656.389a2.447 2.447 0 0 0 2.456 2.456 2.471 2.471 0 0 0 1.765-4.221 2.474 2.474 0 0 0-3.811.385c-.271.409-.413.89-.41 1.38M521.341 680.575a2.6 2.6 0 0 0 4.445 1.855 2.625 2.625 0 0 0 0-3.711 2.62 2.62 0 0 0-1.855-.768 2.6 2.6 0 0 0-1.841.773 2.6 2.6 0 0 0-.749 1.851M521.106 704.793a2.83 2.83 0 0 0 1.744 2.61 2.823 2.823 0 0 0 3.852-2.059 2.819 2.819 0 0 0-2.771-3.376 2.823 2.823 0 0 0-2.825 2.825M520.971 729.012a2.96 2.96 0 1 0 5.92-.001 2.96 2.96 0 0 0-5.92.001M520.836 753.264a3.096 3.096 0 1 0 5.954-1.186 3.09 3.09 0 0 0-2.859-1.91 3.087 3.087 0 0 0-3.095 3.095M520.669 777.449a3.278 3.278 0 0 0 5.598 2.302 3.28 3.28 0 0 0-2.302-5.599 3.3 3.3 0 0 0-3.296 3.297M520.532 801.665a3.43 3.43 0 0 0 4.101 3.365 3.43 3.43 0 0 0 2.695-2.696 3.429 3.429 0 0 0-3.365-4.1 3.424 3.424 0 0 0-3.431 3.431M520.332 825.885a3.632 3.632 0 1 0 3.599-3.599 3.6 3.6 0 0 0-2.541 1.058 3.6 3.6 0 0 0-1.058 2.541M520.198 850.104a3.768 3.768 0 1 0 7.534-.1 3.768 3.768 0 0 0-7.534.1M499.534 2.462l.202.202.201-.202-.201-.202zM499.545 26.676a.2.2 0 0 0 .202.202.2.2 0 0 0 .201-.202l-.201-.201zM499.545 50.927l.202.201.201-.201a.2.2 0 0 0-.201-.202.2.2 0 0 0-.202.202M499.534 75.125l.202.201.201-.201-.201-.236zM499.408 99.33a.337.337 0 1 0 .575-.238.34.34 0 0 0-.476 0 .34.34 0 0 0-.099.238M499.275 123.582a.47.47 0 0 0 .135.336.46.46 0 0 0 .337.135.455.455 0 0 0 .437-.471.486.486 0 0 0-.437-.505.49.49 0 0 0-.472.505M499.275 147.765a.49.49 0 0 0 .132.349c.088.095.21.151.34.155a.486.486 0 0 0 .437-.504.457.457 0 0 0-.437-.471.457.457 0 0 0-.472.471M499.276 171.986a.45.45 0 0 0 .289.438.5.5 0 0 0 .182.033.473.473 0 0 0 0-.942.47.47 0 0 0-.439.289.5.5 0 0 0-.032.182M499.141 196.204a.6.6 0 0 0 .153.451.591.591 0 0 0 1.025-.451.6.6 0 0 0-.572-.606.6.6 0 0 0-.429.177.62.62 0 0 0-.177.429M499.142 220.422a.63.63 0 0 0 .605.639.63.63 0 0 0 .572-.639.597.597 0 0 0-.572-.606.6.6 0 0 0-.429.177.6.6 0 0 0-.176.429M498.905 244.642a.77.77 0 0 0 .808.773.78.78 0 0 0 .774-.462.81.81 0 0 0-.181-.895.807.807 0 0 0-.593-.224.8.8 0 0 0-.574.233.8.8 0 0 0-.234.575M498.905 268.86a.83.83 0 0 0 .501.775.824.824 0 1 0 .307-1.583.82.82 0 0 0-.808.808M498.771 293.078a.96.96 0 0 0 .958.959.956.956 0 0 0 .959-.959.913.913 0 0 0-.976-.911.913.913 0 0 0-.941.911M498.771 317.33a.91.91 0 0 0 .941.911.93.93 0 0 0 .684-.246.91.91 0 0 0 .292-.665.96.96 0 0 0-1.917 0M498.702 341.516a1.026 1.026 0 1 0 1.009-1.01 1.015 1.015 0 0 0-1.009 1.01M498.57 365.734a1.135 1.135 0 0 0 1.142 1.141 1.12 1.12 0 0 0 1.065-.699c.057-.14.084-.291.08-.442a1.1 1.1 0 0 0-.093-.43 1.12 1.12 0 0 0-.619-.601 1.1 1.1 0 0 0-.433-.079 1.15 1.15 0 0 0-1.144 1.11M498.434 389.986a1.273 1.273 0 0 0 1.279 1.245 1.256 1.256 0 0 0 1.278-1.245 1.31 1.31 0 0 0-1.278-1.312 1.334 1.334 0 0 0-1.278 1.312M498.368 414.171a1.34 1.34 0 0 0 .83 1.243 1.345 1.345 0 1 0 .516-2.589 1.35 1.35 0 0 0-1.346 1.346M498.266 438.39a1.48 1.48 0 1 0 1.483-1.481 1.496 1.496 0 0 0-1.481 1.481M498.132 462.607a1.615 1.615 0 1 0 3.23 0 1.615 1.615 0 0 0-3.23 0M497.996 486.86c.002.463.187.907.514 1.235a1.76 1.76 0 0 0 1.235.514 1.766 1.766 0 1 0-1.749-1.749M497.93 511.045a1.8 1.8 0 0 0 1.118 1.649 1.8 1.8 0 0 0 1.954-.393 1.8 1.8 0 0 0-1.955-2.942 1.801 1.801 0 0 0-.987.986c-.089.222-.134.46-.13.7M497.795 535.263a1.94 1.94 0 0 0 1.202 1.772 1.934 1.934 0 1 0-1.202-1.772M497.661 559.481a2.069 2.069 0 1 0 4.138-.002 2.069 2.069 0 0 0-4.138.002M497.426 583.734a2.28 2.28 0 0 0 2.287 2.22 2.304 2.304 0 0 0 2.321-2.22 2.346 2.346 0 0 0-2.321-2.321 2.32 2.32 0 0 0-2.287 2.321M497.289 607.919a2.4 2.4 0 0 0 .706 1.715 2.4 2.4 0 0 0 1.716.707 2.42 2.42 0 0 0 2.237-1.495 2.42 2.42 0 0 0-2.237-3.349 2.4 2.4 0 0 0-.929.181 2.41 2.41 0 0 0-1.493 2.241M497.223 632.138a2.489 2.489 0 1 0 4.979 0 2.493 2.493 0 0 0-2.49-2.449 2.487 2.487 0 0 0-2.489 2.449M497.089 656.39a2.63 2.63 0 0 0 1.62 2.424 2.622 2.622 0 0 0 3.577-1.912 2.624 2.624 0 0 0-2.573-3.136 2.62 2.62 0 0 0-1.863.761 2.62 2.62 0 0 0-.761 1.863M496.921 680.575c0 .558.166 1.105.477 1.569a2.82 2.82 0 0 0 4.346.428 2.82 2.82 0 0 0 .613-3.079 2.83 2.83 0 0 0-2.61-1.744 2.845 2.845 0 0 0-2.826 2.826M496.787 704.793a2.957 2.957 0 0 0 5.053 2.093 2.96 2.96 0 0 0 .641-3.226 2.955 2.955 0 0 0-2.734-1.827 2.95 2.95 0 0 0-2.74 1.824 3 3 0 0 0-.22 1.136M496.652 729.012a3.094 3.094 0 1 0 3.095-3.095 3.1 3.1 0 0 0-2.191.904 3.08 3.08 0 0 0-.904 2.191
843M496.45 753.264a3.28 3.28 0 1 0 3.297-3.33 3.3 3.3 0 0 0-2.342.979 3.3 3.3 0 0 0-.955 2.351M496.315 777.449a3.416 3.416 0 0 0 5.829 2.397 3.416 3.416 0 1 0-5.575-3.715 3.4 3.4 0 0 0-.254 1.318M496.114 801.667a3.616 3.616 0 1 0 7.233.034 3.616 3.616 0 0 0-7.233-.034M495.945 825.886a3.79 3.79 0 0 0 2.305 3.534 3.78 3.78 0 0 0 5.189-2.736c.149-.736.075-1.5-.213-2.194a3.787 3.787 0 0 0-6.16-1.242 3.78 3.78 0 0 0-1.119 2.638M495.744 850.104a3.966 3.966 0 0 0 4.743 3.893 3.97 3.97 0 0 0 3.119-3.118 3.965 3.965 0 0 0-3.893-4.744 3.97 3.97 0 0 0-3.969 3.969M475.327 2.455a.2.2 0 0 0 .057.145.2.2 0 0 0 .144.057l.202-.202-.202-.201a.2.2 0 0 0-.188.123.2.2 0 0 0-.013.078M475.327 26.676a.17.17 0 0 0 .05.152q.03.03.07.043a.2.2 0 0 0 .081.007.2.2 0 0 0 .145-.057.2.2 0 0 0 .044-.066.2.2 0 0 0 .013-.079l-.202-.201a.2.2 0 0 0-.188.123.2.2 0 0 0-.013.078M475.327 50.927a.2.2 0 0 0 .057.144.2.2 0 0 0 .144.057l.202-.201a.2.2 0 0 0-.013-.079.2.2 0 0 0-.189-.123.18.18 0 0 0-.151.05.174.174 0 0 0-.05.151M475.157 75.112a.367.367 0 0 0 .371.336.36.36 0 0 0 .336-.336.367.367 0 0 0-.336-.37.374.374 0 0 0-.371.37M475.023 99.33a.49.49 0 0 0 .505.471.454.454 0 0 0 .437-.47.457.457 0 0 0-.437-.472.49.49 0 0 0-.505.471M475.023 123.582a.49.49 0 0 0 .505.471.455.455 0 0 0 .437-.471.486.486 0 0 0-.437-.505.52.52 0 0 0-.352.153.52.52 0 0 0-.153.352M475.023 147.765a.52.52 0 0 0 .505.504.486.486 0 0 0 .437-.504.457.457 0 0 0-.437-.471.49.49 0 0 0-.505.471M474.889 171.986a.63.63 0 0 0 .639.605.605.605 0 0 0 .406-1.022.6.6 0 0 0-.406-.189.63.63 0 0 0-.639.606M474.889 196.204a.64.64 0 0 0 .187.452.62.62 0 0 0 .452.187.6.6 0 0 0 .418-.201.6.6 0 0 0 .121-.203.6.6 0 0 0 .033-.235.6.6 0 0 0-.572-.606.633.633 0 0 0-.639.606M474.687 220.423a.81.81 0 0 0 .474.77.808.808 0 1 0 .333-1.544.8.8 0 0 0-.807.774M474.687 244.642a.77.77 0 0 0 .237.56.76.76 0 0 0 .57.213.763.763 0 0 0 .747-.469q.06-.146.06-.304a.807.807 0 0 0-1.614 0M474.552 268.859a.95.95 0 0 0 .276.667.9.9 0 0 0 .306.204.942.942 0 1 0-.581-.871M474.552 293.078q0 .187.071.361a.94.94 0 0 0 .871.581.9.9 0 0 0 .672-.269.92.92 0 0 0 .269-.673.89.89 0 0 0-.272-.661.9.9 0 0 0-.669-.25.913.913 0 0 0-.942.911M474.485 317.33a1.01 1.01 0 0 0 1.01.977 1 1 0 0 0 .709-.277.98.98 0 0 0 .3-.7.976.976 0 0 0-1.009-1.011 1 1 0 0 0-.39.071q-.186.077-.33.219a1 1 0 0 0-.29.719M474.384 341.516a1.155 1.155 0 0 0 1.144 1.144 1.146 1.146 0 0 0 0-2.288 1.155 1.155 0 0 0-1.144 1.144M474.25 365.734a1.278 1.278 0 1 0 2.556 0 1.278 1.278 0 0 0-2.556 0M474.183 389.985a1.345 1.345 0 0 0 2.69 0 1.376 1.376 0 0 0-1.345-1.378 1.374 1.374 0 0 0-1.345 1.378M474.047 414.171a1.47 1.47 0 0 0 .914 1.367 1.48 1.48 0 1 0 .565-2.848 1.493 1.493 0 0 0-1.479 1.481M473.913 438.389a1.615 1.615 0 1 0 3.23-.002 1.615 1.615 0 0 0-3.23.002M473.779 462.608a1.727 1.727 0 0 0 1.075 1.625c.214.086.443.128.674.124a1.76 1.76 0 0 0 1.749-1.749 1.78 1.78 0 0 0-1.749-1.75 1.73 1.73 0 0 0-1.619 1.078 1.8 1.8 0 0 0-.13.672M473.678 486.859a1.82 1.82 0 0 0 2.179 1.747 1.816 1.816 0 0 0-.329-3.596 1.835 1.835 0 0 0-1.85 1.849M473.544 511.045a1.96 1.96 0 0 0 1.197 1.8 1.96 1.96 0 0 0 2.124-.409 1.952 1.952 0 0 0-2.093-3.202 1.96 1.96 0 0 0-1.228 1.811M473.409 535.263a2.1 2.1 0 0 0 2.082 2.086 2.08 2.08 0 0 0 1.476-.609 2.06 2.06 0 0 0 .606-1.477 2.04 2.04 0 0 0-.61-1.463 2.05 2.05 0 0 0-1.472-.589 2.07 2.07 0 0 0-2.082 2.052M473.207 559.481a2.29 2.29 0 0 0 2.713 2.283c.446-.084.857-.3 1.181-.618a2.29 2.29 0 0 0 .511-2.498 2.29 2.29 0 0 0-2.118-1.42 2.27 2.27 0 0 0-2.108 1.386 2.3 2.3 0 0 0-.179.867M473.072 583.734a2.426 2.426 0 0 0 2.422 2.367 2.42 2.42 0 0 0 2.422-2.367 2.421 2.421 0 1 0-4.844 0M473.039 607.919a2.475 2.475 0 0 0 2.958 2.409 2.47 2.47 0 0 0 1.939-1.938 2.473 2.473 0 0 0-2.408-2.959 2.48 2.48 0 0 0-2.489 2.488M472.905 632.138a2.63 2.63 0 0 0 2.621 2.623 2.623 2.623 0 1 0-2.624-2.623M472.703 656.389a2.826 2.826 0 0 0 5.651 0 2.825 2.825 0 1 0-5.651 0M472.569 680.575a2.962 2.962 0 0 0 5.054 2.093 2.962 2.962 0 0 0-2.094-5.053 2.963 2.963 0 0 0-2.96 2.96M472.433 704.793a3.095 3.095 0 1 0 3.095-3.094 3.1 3.1 0 0 0-2.191.904 3.07 3.07 0 0 0-.904 2.19M472.232 729.012a3.28 3.28 0 0 0 2.032 3.016 3.282 3.282 0 0 0 4.463-2.389 3.28 3.28 0 0 0-4.462-3.675 3.29 3.29 0 0 0-2.033 3.048M472.063 753.263a3.43 3.43 0 0 0 4.109 3.331 3.44 3.44 0 0 0 2.686-2.686 3.44 3.44 0 0 0-1.437-3.517 3.44 3.44 0 0 0-1.893-.592 3.455 3.455 0 0 0-3.465 3.464M471.861 777.449a3.634 3.634 0 0 0 6.202 2.568 3.63 3.63 0 0 0 .788-3.959 3.64 3.64 0 0 0-3.35
8437-2.242 3.62 3.62 0 0 0-2.575 1.057 3.6 3.6 0 0 0-1.058 2.576M471.727 801.668a3.765 3.765 0 0 0 3.767 3.718 3.768 3.768 0 0 0 3.767-3.718 3.765 3.765 0 0 0-3.767-3.718 3.765 3.765 0 0 0-3.767 3.718M471.559 825.886a3.952 3.952 0 1 0 7.905.034 3.952 3.952 0 0 0-7.905-.034M471.357 850.104a4.168 4.168 0 0 0 4.984 4.091 4.17 4.17 0 0 0 1.504-7.559 4.17 4.17 0 0 0-2.317-.703 4.195 4.195 0 0 0-4.171 4.171M451.074 2.455l.201.202a.225.225 0 0 0 .236-.202.225.225 0 0 0-.236-.201zM451.074 26.676a.2.2 0 0 0 .057.145.2.2 0 0 0 .144.057c.135 0 .236-.065.236-.202a.225.225 0 0 0-.236-.201zM450.939 50.927a.36.36 0 0 0 .336.336.336.336 0 0 0 .339-.336.31.31 0 0 0-.092-.244.32.32 0 0 0-.244-.093.34.34 0 0 0-.336.337M450.805 75.111a.51.51 0 0 0 .471.471.51.51 0 0 0 .471-.47.515.515 0 0 0-.472-.505.515.515 0 0 0-.47.504M450.805 99.33a.47.47 0 0 0 .563.462.473.473 0 0 0 .17-.854.47.47 0 0 0-.262-.079.48.48 0 0 0-.471.471M450.805 123.582a.47.47 0 0 0 .131.344.473.473 0 0 0 .679 0 .48.48 0 0 0 .132-.344.514.514 0 0 0-.472-.505.52.52 0 0 0-.333.161.52.52 0 0 0-.137.344M450.67 147.767a.6.6 0 0 0 .366.591.6.6 0 0 0 .48 0 .6.6 0 0 0 .329-.349.6.6 0 0 0 .036-.242.605.605 0 1 0-1.211 0M450.67 171.986a.61.61 0 0 0 .372.561.607.607 0 0 0 .793-.789.605.605 0 0 0-1.165.231M450.502 196.204a.79.79 0 0 0 .774.807.8.8 0 0 0 .587-1.384.82.82 0 0 0-.587-.23.813.813 0 0 0-.774.807M450.502 220.423a.794.794 0 0 0 .774.807.8.8 0 0 0 .773-.477.8.8 0 0 0 0-.627.8.8 0 0 0-.456-.43.8.8 0 0 0-.317-.047.78.78 0 0 0-.774.774M450.368 244.641a.91.91 0 0 0 .264.646.92.92 0 0 0 .647.265.92.92 0 0 0 .686-1.587.948.948 0 0 0-1.335.019.93.93 0 0 0-.262.657M450.368 268.859a.94.94 0 0 0 .262.658.937.937 0 0 0 1.331.017.94.94 0 0 0-.682-1.617.94.94 0 0 0-.649.284.94.94 0 0 0-.262.658M450.3 293.078a.96.96 0 0 0 .27.716 1 1 0 0 0 .322.22q.184.076.384.073a1 1 0 0 0 1.041-1.009 1.015 1.015 0 0 0-1.041-.976.976.976 0 0 0-.976.976M450.166 317.33a1.09 1.09 0 0 0 .683 1.029q.206.083.427.082a1.094 1.094 0 0 0 1.063-.674c.056-.138.084-.287.08-.437a1.1 1.1 0 0 0-.319-.824 1.1 1.1 0 0 0-.825-.319 1.1 1.1 0 0 0-.798.335 1.1 1.1 0 0 0-.238.373 1.1 1.1 0 0 0-.074.435M450.031 341.515a1.27 1.27 0 0 0 1.245 1.278 1.278 1.278 0 0 0 0-2.557 1.27 1.27 0 0 0-1.245 1.278M449.964 365.734a1.367 1.367 0 0 0 1.311 1.346 1.35 1.35 0 0 0 1.346-1.346 1.33 1.33 0 0 0-.399-.937 1.312 1.312 0 0 0-.947-.375 1.335 1.335 0 0 0-1.311 1.312M449.796 389.986a1.48 1.48 0 1 0 2.96-.065 1.48 1.48 0 0 0-2.96.065M449.661 414.171a1.616 1.616 0 0 0 1.613 1.615 1.63 1.63 0 0 0 1.163-.462 1.624 1.624 0 0 0 .359-1.779 1.63 1.63 0 0 0-.894-.875 1.6 1.6 0 0 0-.628-.114 1.617 1.617 0 0 0-1.614 1.615M449.526 438.389a1.75 1.75 0 0 0 1.079 1.619c.213.088.441.132.671.13a1.76 1.76 0 0 0 1.268-.495 1.747 1.747 0 0 0 0-2.508 1.75 1.75 0 0 0-1.268-.495 1.74 1.74 0 0 0-1.619 1.078 1.8 1.8 0 0 0-.131.671M449.459 462.607c0 .482.192.944.532 1.285a1.82 1.82 0 0 0 2.569 0 1.816 1.816 0 1 0-3.101-1.285M449.325 486.86a1.945 1.945 0 0 0 1.228 1.78 1.95 1.95 0 0 0 2.641-1.443 1.96 1.96 0 0 0-.836-1.995 1.95 1.95 0 0 0-1.081-.326 1.97 1.97 0 0 0-1.952 1.984M449.224 511.045a2.05 2.05 0 0 0 .61 1.463 2.05 2.05 0 0 0 1.472.588 2.05 2.05 0 0 0 1.468-.593 2.07 2.07 0 0 0 .618-1.458 2.1 2.1 0 0 0-2.086-2.086 2.07 2.07 0 0 0-1.476.609 2.08 2.08 0 0 0-.606 1.477M449.022 535.263a2.263 2.263 0 0 0 2.253 2.287 2.281 2.281 0 0 0 2.133-1.392 2.265 2.265 0 0 0-.502-2.498 2.28 2.28 0 0 0-1.631-.651 2.257 2.257 0 0 0-2.253 2.254M448.887 559.482a2.41 2.41 0 0 0 2.388 2.422 2.41 2.41 0 0 0 2.326-1.458 2.406 2.406 0 0 0-1.37-3.202 2.4 2.4 0 0 0-.956-.15 2.4 2.4 0 0 0-2.388 2.388M448.82 583.734a2.48 2.48 0 0 0 1.565 2.25 2.48 2.48 0 0 0 2.679-.575 2.474 2.474 0 0 0-1.788-4.197 2.49 2.49 0 0 0-2.456 2.522M448.686 607.919a2.6 2.6 0 0 0 2.589 2.623 2.623 2.623 0 1 0 0-5.247 2.6 2.6 0 0 0-1.84.773 2.6 2.6 0 0 0-.749 1.851M448.484 632.137a2.81 2.81 0 0 0 2.809 2.809 2.808 2.808 0 1 0-2.809-2.809M448.315 656.39a2.961 2.961 0 1 0 5.922-.001 2.961 2.961 0 0 0-5.922.001M448.181 680.576a3.12 3.12 0 0 0 1.913 2.889 3.115 3.115 0 0 0 4.252-2.269 3.11 3.11 0 0 0-3.07-3.714 3.1 3.1 0 0 0-2.191.904 3.09 3.09 0 0 0-.904 2.19M447.979 704.793a3.296 3.296 0 1 0 6.592.001 3.296 3.296 0 0 0-6.592-.001M447.845 729.012a3.43 3.43 0 0 0 4.101 3.365 3.43 3.43 0 0 0 2.695-2.696 3.429 3.429 0 0 0-3.365-4.1 3.45 3.45 0 0 0-3.43
8431 3.431M447.676 753.264a3.59 3.59 0 0 0 2.219 3.331 3.6 3.6 0 0 0 1.38.268 3.62 3.62 0 0 0 3.355-2.224 3.617 3.617 0 1 0-6.954-1.375M447.542 777.449a3.768 3.768 0 1 0 7.534-.1 3.768 3.768 0 0 0-7.534.1M447.34 801.667a3.954 3.954 0 0 0 7.83.782 3.956 3.956 0 0 0-3.897-4.718 3.97 3.97 0 0 0-3.936 3.936M447.138 825.886a4.156 4.156 0 0 0 7.092 2.954 4.157 4.157 0 0 0-.64-6.398 4.16 4.16 0 0 0-2.315-.693 4.14 4.14 0 0 0-4.137 4.137M447.004 850.104a4.29 4.29 0 0 0 2.662 3.952 4.29 4.29 0 0 0 4.67-.947 4.29 4.29 0 0 0 .913-4.677 4.29 4.29 0 0 0-3.972-2.633 4.306 4.306 0 0 0-4.271 4.305M426.754 2.456a.36.36 0 0 0 .337.336.336.336 0 0 0 .336-.336.37.37 0 0 0-.336-.37.394.394 0 0 0-.337.37M426.755 26.674a.336.336 0 0 0 .336.337.317.317 0 0 0 .336-.337.31.31 0 0 0-.092-.244.32.32 0 0 0-.244-.092.34.34 0 0 0-.336.336M426.62 50.926a.46.46 0 0 0 .288.44q.088.035.183.032a.456.456 0 0 0 .437-.47.457.457 0 0 0-.778-.323.46.46 0 0 0-.133.322M426.62 75.111a.48.48 0 0 0 .471.471.48.48 0 0 0 .437-.47.457.457 0 0 0-.455-.456.454.454 0 0 0-.456.455M426.62 99.33a.45.45 0 0 0 .289.439.5.5 0 0 0 .182.032.456.456 0 0 0 .437-.47.456.456 0 0 0-.437-.472.46.46 0 0 0-.471.471M426.485 123.582a.6.6 0 0 0 .374.559.6.6 0 0 0 .232.046.625.625 0 0 0 .605-.605.63.63 0 0 0-.605-.639.61.61 0 0 0-.568.397.6.6 0 0 0-.038.242M426.485 147.767a.6.6 0 0 0 .167.448.6.6 0 0 0 .439.191.634.634 0 0 0 .605-.639.62.62 0 0 0-.183-.422.62.62 0 0 0-.422-.183.6.6 0 0 0-.429.176.6.6 0 0 0-.177.429M426.284 171.985a.77.77 0 0 0 .223.551.74.74 0 0 0 .551.223.77.77 0 0 0 .59-.203.78.78 0 0 0 0-1.142.79.79 0 0 0-.59-.202.754.754 0 0 0-.719.475.8.8 0 0 0-.055.298M426.284 196.204a.79.79 0 0 0 .774.807.81.81 0 0 0 .593-.224.8.8 0 0 0 .247-.583.825.825 0 0 0-.84-.807.813.813 0 0 0-.774.807M426.149 220.423a.92.92 0 0 0 .255.664.93.93 0 0 0 .656.277.947.947 0 0 0 .976-.941.92.92 0 0 0-.609-.859.9.9 0 0 0-.367-.052.885.885 0 0 0-.85.558.9.9 0 0 0-.061.353M426.149 244.641a.885.885 0 0 0 .558.849.9.9 0 0 0 .353.062.92.92 0 0 0 .686-1.587.948.948 0 0 0-.686-.266.9.9 0 0 0-.356.073.9.9 0 0 0-.495.511.9.9 0 0 0-.06.358M426.048 268.86a1.03 1.03 0 0 0 .626.961 1.026 1.026 0 1 0 .384-1.97 1.01 1.01 0 0 0-1.01 1.009M425.914 293.078a1.13 1.13 0 0 0 .332.812 1.12 1.12 0 0 0 .812.332 1.12 1.12 0 0 0 .814-.32 1.12 1.12 0 0 0 .251-1.244 1.14 1.14 0 0 0-.626-.611 1.1 1.1 0 0 0-.439-.078 1.128 1.128 0 0 0-1.144 1.11M425.779 317.33a1.273 1.273 0 0 0 1.278 1.245 1.23 1.23 0 0 0 1.276-1.245 1.28 1.28 0 0 0-.78-1.208 1.3 1.3 0 0 0-.495-.103 1.327 1.327 0 0 0-1.279 1.311M425.712 341.516a1.37 1.37 0 0 0 1.87 1.251 1.34 1.34 0 0 0 .746-.729 1.36 1.36 0 0 0 0-1.044 1.36 1.36 0 0 0-.746-.73 1.37 1.37 0 0 0-1.87 1.252M425.577 365.731a1.5 1.5 0 0 0 .423 1.067 1.47 1.47 0 0 0 1.058.445 1.482 1.482 0 0 0 0-2.961 1.48 1.48 0 0 0-1.481 1.449M425.442 389.986a1.605 1.605 0 0 0 1.614 1.581 1.62 1.62 0 0 0 1.495-1.004 1.615 1.615 0 1 0-3.109-.577M425.342 414.171a1.746 1.746 0 0 0 2.09 1.715 1.747 1.747 0 0 0 1.275-2.385 1.751 1.751 0 0 0-1.616-1.079 1.76 1.76 0 0 0-1.749 1.749M425.275 438.389a1.83 1.83 0 0 0 1.817 1.816 1.815 1.815 0 0 0 1.262-3.089 1.82 1.82 0 0 0-1.262-.544 1.83 1.83 0 0 0-1.817 1.816M425.139 462.607a1.937 1.937 0 0 0 2.316 1.878 1.934 1.934 0 0 0-.363-3.83 1.96 1.96 0 0 0-1.953 1.952M425.005 486.86a2.066 2.066 0 0 0 1.286 1.93c.254.104.526.157.8.156a2.085 2.085 0 0 0 0-4.171 2.07 2.07 0 0 0-2.086 2.085M424.8 511.045a2.256 2.256 0 0 0 2.257 2.251 2.272 2.272 0 0 0 1.631-3.89 2.26 2.26 0 0 0-1.631-.651 2.266 2.266 0 0 0-2.257 2.29M424.672 535.264a2.384 2.384 0 0 0 2.388 2.422 2.42 2.42 0 0 0 1.713-.71 2.43 2.43 0 0 0 .709-1.712 2.42 2.42 0 0 0-2.422-2.422 2.38 2.38 0 0 0-1.702.71 2.39 2.39 0 0 0-.686 1.712M424.568 559.482a2.49 2.49 0 1 0 4.98.067 2.49 2.49 0 0 0-4.98-.067M424.433 583.734a2.63 2.63 0 0 0 1.643 2.4 2.63 2.63 0 0 0 2.848-.59 2.627 2.627 0 0 0-.413-4.027 2.624 2.624 0 0 0-4.078 2.217M424.232 607.919a2.822 2.822 0 0 0 3.376 2.771 2.827 2.827 0 0 0 1.019-5.12 2.82 2.82 0 0 0-1.57-.476 2.84 2.84 0 0 0-2.825 2.825M424.097 632.138a2.96 2.96 0 0 0 1.83 2.732 2.96 2.96 0 0 0 3.225-.645 2.959 2.959 0 0 0-2.098-5.051 2.95 2.95 0 0 0-2.098.862 2.947 2.947 0 0 0-.862 2.099M423.996 656.39a3.096 3.096 0 0 0 5.295 2.142 3.092 3.092 0 1 0-5.067-3.335 3.1 3.1 0 0 0-.23 1.192M423.795 680.574c.003.647.198 1.279.559 1.816a3.283 3.283 0 0 0 5.039.486 3.28 3.28 0 0 0 .714-3.566 3.3 3.3 0 0 0-1.2-1.473 3.3 3.3 0 0 0-1.816-.559 3.3 3.3 0 0 0-2.329.967 3.3 3.3 0 0 0-.967 2.329M423.66 704.794a3.415 3.415 0 0 0 5.828 2.397 3.41 3.41 0 0 0-.507-5.246 3.4 3.4 0 0 0-1.89-.583 3.42 3.42 0 0 0-2.429 1.003 3.43 3.43 0 0 0-1.002 2.429M423.458 729.014a3.64 3.64 0 0 0 2.227 3.383 3.634 3.634 0 1 0 1.372-6.982 3.61 3.61 0 0 0-3.599 3.599M423.324 753.264a3.768 3.768 0 1 0 7.534-.1 3.768 3.768 0 0 0-7.534.1M423.088 777.449a4 4 0 0 0 3.969 3.969 3.968 3.968 0 1 0 0-7.939 4 4 0 0 0-3.969 3.97M422.886 801.667a4.173 4.173
8430 0 0 4.985 4.091 4.17 4.17 0 0 0 2.135-1.142 4.165 4.165 0 0 0 .905-4.545 4.17 4.17 0 0 0-3.854-2.575 4.195 4.195 0 0 0-4.171 4.171M422.751 825.886a4.31 4.31 0 0 0 2.635 4.002 4.31 4.31 0 0 0 4.703-.912 4.3 4.3 0 0 0 .949-4.696 4.3 4.3 0 0 0-1.585-1.938 4.3 4.3 0 0 0-2.396-.728 4.313 4.313 0 0 0-4.306 4.272M422.584 850.104a4.507 4.507 0 1 0 4.507-4.507 4.53 4.53 0 0 0-4.507 4.507M402.401 2.455a.487.487 0 0 0 .472.505.487.487 0 0 0 .437-.505.49.49 0 0 0-.437-.504.487.487 0 0 0-.472.504M402.401 26.673a.47.47 0 0 0 .135.336.47.47 0 0 0 .337.135.454.454 0 0 0 .437-.471.457.457 0 0 0-.437-.472.46.46 0 0 0-.472.471M402.401 50.926a.47.47 0 0 0 .135.337.46.46 0 0 0 .337.135.454.454 0 0 0 .437-.47.454.454 0 0 0-.456-.456.456.456 0 0 0-.455.455M402.401 75.111a.483.483 0 0 0 .472.471.477.477 0 0 0 .437-.47.454.454 0 0 0-.456-.456.46.46 0 0 0-.455.455M402.231 99.33a.633.633 0 0 0 .639.605.606.606 0 0 0 0-1.211.633.633 0 0 0-.639.605M402.231 123.582a.634.634 0 0 0 .639.605.597.597 0 0 0 .572-.605.6.6 0 0 0-.154-.438.6.6 0 0 0-.418-.201.64.64 0 0 0-.639.639M402.032 147.767a.8.8 0 0 0 .474.771.82.82 0 0 0 .893-.153.813.813 0 0 0-.108-1.254.8.8 0 0 0-.452-.138.795.795 0 0 0-.808.774M402.032 171.985a.76.76 0 0 0 .237.561.77.77 0 0 0 .57.213.775.775 0 1 0 0-1.547.75.75 0 0 0-.307.047.761.761 0 0 0-.5.726M401.896 196.204a.96.96 0 1 0 1.918 0 .96.96 0 0 0-1.918 0M401.896 220.423a.96.96 0 0 0 1.918 0 .92.92 0 0 0-.609-.859.9.9 0 0 0-.367-.052.913.913 0 0 0-.942.911M401.829 244.641a1.031 1.031 0 0 0 1.732.689 1.03 1.03 0 0 0 .32-.689 1.027 1.027 0 0 0-2.052 0M401.695 268.86a1.16 1.16 0 0 0 1.144 1.144 1.144 1.144 0 0 0 0-2.287 1.154 1.154 0 0 0-1.144 1.144M401.594 293.078a1.278 1.278 0 1 0 2.556 0 1.278 1.278 0 0 0-2.556 0M401.527 317.33a1.35 1.35 0 0 0 1.345 1.316 1.345 1.345 0 0 0 .522-2.586 1.34 1.34 0 0 0-1.484.299 1.34 1.34 0 0 0-.383.971M401.392 341.515a1.478 1.478 0 0 0 2.931.289 1.48 1.48 0 0 0-1.45-1.769 1.497 1.497 0 0 0-1.481 1.48M401.258 365.733a1.59 1.59 0 0 0 .993 1.497c.197.08.408.12.621.118a1.615 1.615 0 0 0 1.614-1.615 1.64 1.64 0 0 0-.479-1.135 1.64 1.64 0 0 0-1.135-.479 1.61 1.61 0 0 0-1.614 1.614M401.124 389.986c.001.228.048.453.137.662s.219.399.381.559a1.737 1.737 0 0 0 1.231.494 1.75 1.75 0 0 0 1.749-1.715 1.79 1.79 0 0 0-1.749-1.783 1.78 1.78 0 0 0-1.244.529 1.78 1.78 0 0 0-.505 1.254M401.056 414.171a1.8 1.8 0 0 0 1.118 1.649 1.8 1.8 0 0 0 1.954-.393 1.8 1.8 0 0 0-1.256-3.072 1.783 1.783 0 0 0-1.816 1.816M400.921 438.39a1.935 1.935 0 1 0 1.952-1.985 1.961 1.961 0 0 0-1.811 1.229c-.096.24-.144.497-.141.756M400.755 462.607a2.094 2.094 0 0 0 2.884 1.927 2.06 2.06 0 0 0 1.13-1.128 2.08 2.08 0 0 0-.002-1.593 2.03 2.03 0 0 0-1.133-1.113 2 2 0 0 0-.797-.144 2.07 2.07 0 0 0-2.082 2.051M400.552 486.86a2.3 2.3 0 0 0 .688 1.583 2.29 2.29 0 0 0 3.886-1.583 2.287 2.287 0 0 0-4.574 0M400.417 511.045a2.42 2.42 0 0 0 4.133 1.713 2.423 2.423 0 0 0-.364-3.726 2.4 2.4 0 0 0-1.345-.409 2.41 2.41 0 0 0-2.422 2.422M400.349 535.263a2.49 2.49 0 0 0 1.537 2.3 2.49 2.49 0 0 0 3.393-1.814 2.5 2.5 0 0 0-.142-1.438 2.48 2.48 0 0 0-2.299-1.537 2.47 2.47 0 0 0-1.761.728 2.48 2.48 0 0 0-.728 1.761M400.215 559.481a2.626 2.626 0 0 0 2.624 2.624 2.623 2.623 0 1 0-2.624-2.624M400.046 583.734a2.82 2.82 0 0 0 1.768 2.587 2.821 2.821 0 0 0 3.068-.634 2.82 2.82 0 0 0 .598-3.075 2.82 2.82 0 0 0-2.608-1.737 2.82 2.82 0 0 0-2.015.834 2.8 2.8 0 0 0-.811 2.025M399.912 607.919a2.96 2.96 0 1 0 2.96-2.96 2.946 2.946 0 0 0-2.96 2.96M399.777 632.138a3.095 3.095 0 1 0 1.909-2.862 3.1 3.1 0 0 0-1.676 1.676 3.1 3.1 0 0 0-.233 1.185M399.576 656.39a3.28 3.28 0 1 0 3.296-3.33 3.3 3.3 0 0 0-2.341.979 3.292 3.292 0 0 0-.955 2.351M399.441 680.572a3.414 3.414 0 1 0 3.432-3.431 3.43 3.43 0 0 0-2.429 1.003 3.422 3.422 0 0 0-1.003 2.428M399.206 704.793a3.632 3.632 0 1 0 7.265 0 3.632 3.632 0 0 0-7.265 0M399.072 729.012a3.768 3.768 0 0 0 7.534 0 3.765 3.765 0 0 0-6.414-2.632 3.77 3.77 0 0 0-1.12 2.632M398.869 753.264a3.968 3.968 0 0 0 6.776 2.807 3.98 3.98 0 0 0 1.087-2.032 3.971 3.971 0 0 0-6.7-3.582 3.97 3.97 0 0 0-1.163 2.807M398.701 777.449a4.18 4.18 0 0 0 2.575 3.854 4.18 4.18 0 0 0 4.546-.904 4.18 4.18 0 0 0 .904-4.546 4.18 4.18 0 0 0-3.854-2.575 4.195 4.195 0 0 0-4.171 4.171M398.566 801.668a4.307 4.307 0 1 0 6.698-3.584 4.3 4.3 0 0 0-2.392-.725 4.335 4.335 0 0 0-4.306 4.305M398.365 825.886a4.5 4.5 0 0 0 2.783 4.164 4.506 4.506 0 1 0 1.724-8.671 4.533 4.533 0 0 0-4.507 4.507M398.23 850.104a4.628 4.628 0 0 0 5.533 4.519 4.62 4.62 0 0 0 3.628-3.63 4.626 4.626 0 0 0-4.52-5.531 4.66 4.66 0 0 0-3.28 1.362 4.66 4.66 0 0 0-1.362 3.28M378.149 2.455a.52.52 0 0 0 .505.505.51.51 0 0 0 .439-.505.51.51 0 0 0-.439-.505.52.52 0 0 0-.505.505M378.149 26.673a.49.49 0 0 0 .504.47.472.472 0 0 0 0-.941.487.487 0 0 0-.504.471M378.149 50.926a.49.49 0 0 0 .505.472.48.48 0 0 0 .437-.47.516.516 0 0 0-.437-.505.52.52 0 0 0-.505.504M378.015 75.114a.6.6 0 0 0 .177.428.606.606 0 0 0 1.034
843-.428.613.613 0 0 0-.606-.64.61.61 0 0 0-.605.64M378.015 99.33a.61.61 0 0 0 .373.558.607.607 0 0 0 .825-.44.6.6 0 0 0-.257-.621.604.604 0 0 0-.941.502M377.813 123.582a.806.806 0 1 0 .807-.807.79.79 0 0 0-.751.495.8.8 0 0 0-.056.312M377.813 147.767a.8.8 0 0 0 .474.771.82.82 0 0 0 .893-.153.813.813 0 0 0-.108-1.254.8.8 0 0 0-.452-.138.795.795 0 0 0-.807.774M377.712 171.986a.941.941 0 0 0 1.106.959.942.942 0 0 0-.164-1.87.91.91 0 0 0-.942.911M377.712 196.204a.942.942 0 1 0 1.885 0 .942.942 0 0 0-1.885 0M377.645 220.423a1 1 0 0 0 .29.719 1 1 0 0 0 .719.29.94.94 0 0 0 .921-.621.9.9 0 0 0 .055-.388.95.95 0 0 0-.976-.976 1.003 1.003 0 0 0-1.009.976M377.512 244.644a1.1 1.1 0 0 0 .337.794 1.1 1.1 0 0 0 .805.312 1.09 1.09 0 0 0 .793-.314 1.08 1.08 0 0 0 .317-.792 1.08 1.08 0 0 0-.674-1.064 1.1 1.1 0 0 0-.436-.08 1.11 1.11 0 0 0-1.063.702 1.1 1.1 0 0 0-.079.442M377.376 268.859a1.28 1.28 0 0 0 1.278 1.278 1.275 1.275 0 0 0 1.249-1.278 1.277 1.277 0 0 0-1.249-1.278 1.28 1.28 0 0 0-1.278 1.278M377.308 293.078a1.329 1.329 0 1 0 2.658.001 1.329 1.329 0 0 0-2.658-.001M377.174 317.33a1.483 1.483 0 0 0 1.482 1.447 1.507 1.507 0 0 0 1.48-1.447 1.545 1.545 0 0 0-1.48-1.513 1.523 1.523 0 0 0-1.48 1.513M377.039 341.515a1.59 1.59 0 0 0 1.615 1.614 1.61 1.61 0 0 0 1.614-1.614 1.614 1.614 0 0 0-1.614-1.615 1.59 1.59 0 0 0-1.498.993c-.08.197-.12.409-.117.621M376.87 365.734a1.74 1.74 0 0 0 .495 1.268 1.751 1.751 0 0 0 3.003-1.268 1.75 1.75 0 1 0-3.498 0M376.806 389.985a1.83 1.83 0 0 0 1.849 1.783 1.8 1.8 0 0 0 1.258-.525c.333-.334.522-.786.525-1.258a1.835 1.835 0 0 0-1.783-1.85 1.87 1.87 0 0 0-1.849 1.85M376.67 414.171a1.96 1.96 0 0 0 1.197 1.8 1.96 1.96 0 0 0 2.124-.409 1.952 1.952 0 0 0-2.093-3.202 1.96 1.96 0 0 0-1.228 1.811M376.535 438.389a2.09 2.09 0 0 0 2.085 2.082 2.087 2.087 0 0 0 1.475-3.56 2.09 2.09 0 0 0-1.475-.611 2.097 2.097 0 0 0-2.085 2.086M376.366 462.607a2.29 2.29 0 0 0 2.713 2.283 2.29 2.29 0 0 0 1.816-1.789 2.29 2.29 0 0 0-.967-2.359 2.3 2.3 0 0 0-1.275-.388 2.26 2.26 0 0 0-1.61.652 2.27 2.27 0 0 0-.677 1.601M376.232 486.86a2.407 2.407 0 1 0 4.814-.03 2.407 2.407 0 0 0-4.814.029M376.164 511.045c0 .492.146.973.42 1.382a2.492 2.492 0 0 0 3.829.378 2.492 2.492 0 0 0-.377-3.83 2.49 2.49 0 0 0-3.872 2.07M376.031 535.263a2.624 2.624 0 1 0 2.623-2.623 2.63 2.63 0 0 0-2.623 2.623M375.828 559.482a2.81 2.81 0 0 0 5.56.581 2.811 2.811 0 0 0-3.812-3.168 2.8 2.8 0 0 0-.916.603 2.794 2.794 0 0 0-.832 1.984M375.693 583.734c.007.584.186 1.153.515 1.636a2.97 2.97 0 0 0 3.043 1.23 2.96 2.96 0 0 0 2.308-2.334 2.963 2.963 0 0 0-2.906-3.525 2.955 2.955 0 0 0-2.745 1.85 3 3 0 0 0-.215 1.143M375.559 607.919a3.095 3.095 0 1 0 3.095-3.094 3.1 3.1 0 0 0-2.191.904 3.07 3.07 0 0 0-.904 2.19M375.324 632.138a3.297 3.297 0 1 0 3.33-3.297 3.3 3.3 0 0 0-2.355.951 3.28 3.28 0 0 0-.975 2.346M375.189 656.389a3.43 3.43 0 0 0 4.121 3.328 3.43 3.43 0 0 0 2.678-2.704 3.432 3.432 0 0 0-3.368-4.088 3.446 3.446 0 0 0-3.431 3.464M374.987 680.575a3.634 3.634 0 0 0 6.202 2.568 3.63 3.63 0 0 0 .788-3.959 3.64 3.64 0 0 0-3.35
8437-2.242 3.62 3.62 0 0 0-2.575 1.057 3.62 3.62 0 0 0-1.058 2.576M374.887 704.793a3.767 3.767 0 1 0 7.533.102 3.767 3.767 0 0 0-7.533-.102M374.687 729.009a3.952 3.952 0 1 0 3.969-3.935 3.977 3.977 0 0 0-3.969 3.935M374.483 753.264a4.157 4.157 0 0 0 7.092 2.921 4.158 4.158 0 0 0-2.921-7.092 4.165 4.165 0 0 0-4.171 4.171M374.348 777.448a4.287 4.287 0 1 0 8.254-1.65 4.29 4.29 0 0 0-3.949-2.656 4.314 4.314 0 0 0-4.305 4.306M374.146 801.668a4.51 4.51 0 0 0 5.386 4.421 4.506 4.506 0 0 0-.879-8.928 4.51 4.51 0 0 0-4.507 4.507M373.98 825.886a4.643 4.643 0 1 0 4.676-4.642 4.683 4.683 0 0 0-4.676 4.642M373.642 850.105a4.979 4.979 0 1 0 4.978-4.978 4.956 4.956 0 0 0-4.978 4.978M353.965 2.455a.49.49 0 0 0 .471.505.513.513 0 0 0 .471-.505.515.515 0 0 0-.471-.504.49.49 0 0 0-.471.504M353.965 26.673a.457.457 0 0 0 .471.471.48.48 0 0 0 .471-.472.483.483 0 0 0-.653-.438.46.46 0 0 0-.289.438M353.83 50.927a.6.6 0 0 0 .177.428.596.596 0 0 0 .852-.006.63.63 0 0 0 .183-.422.657.657 0 0 0-.606-.64.63.63 0 0 0-.606.64M353.83 75.114a.6.6 0 0 0 .177.428.596.596 0 0 0 .852-.006.63.63 0 0 0 .183-.422.633.633 0 0 0-.606-.64.61.61 0 0 0-.606.64M353.628 99.33a.76.76 0 0 0 .774.774.77.77 0 0 0 .774-.462.78.78 0 0 0 0-.624.775.775 0 0 0-.774-.462.76.76 0 0 0-.774.774M353.628 123.582a.78.78 0 0 0 .774.774.8.8 0 0 0 .773-.477.8.8 0 0 0 0-.627.8.8 0 0 0-.456-.431.8.8 0 0 0-.317-.046.78.78 0 0 0-.554.243.79.79 0 0 0-.22.564M353.494 147.767a.94.94 0 0 0 .252.677.94.94 0 0 0 .659.299.977.977 0 0 0 .976-.976.95.95 0 0 0-.613-.852.9.9 0 0 0-.363-.059.91.91 0 0 0-.647.265.912.912 0 0 0-.264.646M353.493 171.986a.895.895 0 0 0 .558.849.9.9 0 0 0 .353.062.915.915 0 0 0 .908-.543.915.915 0 0 0-.537-1.226.9.9 0 0 0-.371-.047.9.9 0 0 0-.652.258.9.9 0 0 0-.259.653M353.426 196.204a.983.983 0 0 0 .976 1.009 1.02 1.02 0 0 0 .747-.276 1.01 1.01 0 0 0-.345-1.679 1 1 0 0 0-.402-.062.979.979 0 0 0-.976 1.01M353.292 220.423a1.11 1.11 0 0 0 .312.808 1.1 1.1 0 0 0 .798.335 1.096 1.096 0 0 0 1.143-1.143 1.11 1.11 0 0 0-.336-.799 1.1 1.1 0 0 0-.808-.312 1.13 1.13 0 0 0-.782.328 1.13 1.13 0 0 0-.328.783M353.123 244.642a1.273 1.273 0 0 0 1.278 1.244 1.22 1.22 0 0 0 1.186-.758c.063-.154.095-.319.093-.486a1.26 1.26 0 0 0-1.278-1.279 1.3 1.3 0 0 0-1.279 1.279M353.056 268.86a1.34 1.34 0 0 0 .831 1.243 1.34 1.34 0 0 0 1.466-.292 1.34 1.34 0 0 0 .292-1.466 1.35 1.35 0 0 0-1.243-.831 1.35 1.35 0 0 0-.95.396 1.35 1.35 0 0 0-.396.95M352.921 293.078a1.47 1.47 0 0 0 .422 1.067 1.48 1.48 0 1 0-.422-1.067M352.787 317.33a1.61 1.61 0 0 0 1.614 1.582 1.617 1.617 0 0 0 1.581-1.942 1.613 1.613 0 0 0-3.195.36M352.652 341.515a1.75 1.75 0 0 0 1.08 1.615 1.75 1.75 0 0 0 2.385-1.275 1.75 1.75 0 0 0-.744-1.795 1.75 1.75 0 0 0-.972-.295 1.756 1.756 0 0 0-1.749 1.75M352.585 365.733a1.81 1.81 0 0 0 .52 1.307 1.83 1.83 0 0 0 1.297.544 1.824 1.824 0 0 0 1.816-1.851 1.816 1.816 0 0 0-3.633 0M352.484 389.986a1.952 1.952 0 1 0 3.903-.066 1.952 1.952 0 0 0-3.903.066M352.35 414.171a2.04 2.04 0 0 0 .597 1.454 2.046 2.046 0 0 0 1.454.597 2.084 2.084 0 0 0 1.951-1.254c.108-.252.166-.523.169-.797a2.1 2.1 0 0 0-.629-1.48 2.1 2.1 0 0 0-1.491-.603 2.07 2.07 0 0 0-2.051 2.083M352.148 438.389a2.283 2.283 0 0 0 2.253 2.29 2.276 2.276 0 0 0 2.163-1.399 2.28 2.28 0 0 0 0-1.776 2.29 2.29 0 0 0-2.163-1.399 2.29 2.29 0 0 0-1.597.68 2.3 2.3 0 0 0-.656 1.607M352.013 462.607a2.41 2.41 0 0 0 2.388 2.422 2.41 2.41 0 0 0 2.326-1.458 2.406 2.406 0 0 0-1.37-3.202 2.4 2.4 0 0 0-.956-.15 2.4 2.4 0 0 0-1.686.702 2.4 2.4 0 0 0-.702 1.686M351.946 486.86c.004.489.152.966.426 1.371a2.48 2.48 0 0 0 2.546 1.034 2.465 2.465 0 0 0 1.929-1.956 2.473 2.473 0 1 0-4.901-.449M351.812 511.045a2.6 2.6 0 0 0 4.445 1.855 2.63 2.63 0 0 0 .569-2.859 2.62 2.62 0 0 0-2.424-1.62 2.6 2.6 0 0 0-1.841.773 2.6 2.6 0 0 0-.749 1.851M351.576 535.263a2.83 2.83 0 0 0 1.744 2.61 2.823 2.823 0 0 0 3.852-2.059 2.823 2.823 0 0 0-2.771-3.376 2.8 2.8 0 0 0-1.999.826 2.83 2.83 0 0 0-.826 1.999M351.444 559.482a2.96 2.96 0 0 0 1.827 2.735 2.961 2.961 0 0 0 3.868-3.868 2.96 2.96 0 0 0-2.735-1.827 2.967 2.967 0 0 0-2.96 2.96M351.307 583.734a3.089 3.089 0 0 0 3.719 2.998 3.098 3.098 0 0 0 2.231-4.224 3.1 3.1 0 0 0-2.856-1.902 3.07 3.07 0 0 0-2.873 1.931c-.153.38-.228.787-.221 1.197M351.139 607.919a3.296 3.296 0 1 0 6.592.001 3.296 3.296 0 0 0-6.592-.001M351.005 632.138c0 .68.202 1.345.58 1.91a3.44 3.44 0 0 0 3.533 1.452 3.43 3.43 0 0 0-.716-6.793 3.44 3.44 0 0 0-2.399 1.022 3.44 3.44 0 0 0-.998 2.409M350.802 656.39a3.604 3.604 0 0 0 3.599 3.599 3.62 3.62 0 0 0 3.355-2.224 3.617 3.617 0 1 0-6.954-1.375M350.668 680.575a3.768 3.768 0 1 0 7.534-.1 3.768 3.768 0 0 0-7.534.1M350.466 704.794a3.95 3.95 0 0 0 2.455 3.64 3.953 3.953 0 0 0 5.377-2.903 3.96 3.96 0 0 0-1.698-4.05 3.95 3.95 0 0 0-2.199-.657 3.967 3.967 0 0 0-3.935 3.97M350.264 729.011a4.156 4.156 0 0 0 7.092 2.954 4.153 4.153 0 0 0-2.955-7.091 4.164 4.164 0 0 0-4.137 4.137M350.096 753.264a4.305 4.305 0 1 0 8.61.001 4.305 4.305 0 0 0-8.61-.001M349.894 777.449a4.5 4.5 0 0 0 2.782 4.164 4.51 4.51 0 0 0 6.146-3.285 4.507 4.507 0 0 0-4.421-5.387 4.53 4.53 0 0 0-4.507 4.508M349.759 801.668a4.63 4.63 0 0 0 2.861 4.261 4.626 4.626 0 0 0 6.041-6.036 4.62 4.62 0 0 0-4.26-2.864 4.65 4.65 0 0 0-4.642 4.642M349.457 825.883a4.98 4.98 0 0 0 8.499 3.553 4.978 4.978 0 0 0-3.553-8.499 4.96 4.96 0 0 0-4.946 4.946M349.255 850.104a5.12 5.12 0 0 0 1.501 3.646 5.13 5.13 0 0 0 3.645 1.501 5.164 5.164 0 1 0-5.146-5.147M329.612 2.455a.59.59 0 1 0 1.177 0 .6.6 0 0 0-.153-.45.59.59 0 0 0-.674-.142.6.6 0 0 0-.321.35.6.6 0 0 0-.029.242M329.612 26.674a.6.6 0 0 0 .373.56q.112.045.233.045a.6.6 0 0 0 .571-.605.597.597 0 0 0-.571-.605.61.61 0 0 0-.561.373.6.6 0 0 0-.045.232M329.612 50.927a.6.6 0 0 0 .177.428.6.6 0 0 0 .429.177.594.594 0 0 0 .571-.605.59.59 0 1 0-1.177 0M329.375 75.112a.824.824 0 0 0 1.649 0 .807.807 0 0 0-.841-.808.8.8 0 0 0-.749.497.8.8 0 0 0-.059.31M329.375 99.33a.78.78 0 0 0 .237.561.77.77 0 0 0 .571.213.77.77 0 0 0 .774-.462.78.78 0 0 0 0-.624.775.775 0 0 0-.774-.462.77.77 0 0 0-.747.47.8.8 0 0 0-.061.304M329.241 123.582a.963.963 0 0 0 .959.909.957.957 0 0 0 .958-.909.96.96 0 0 0-.958-.959.96.96 0 0 0-.959.959M329.241 147.767a.96.96 0 0 0 1.917 0 .955.955 0 0 0-.958-.91.96.96 0 0 0-.959.91M329.174 171.986a1.031 1.031 0 0 0 1.732.689 1.03 1.03 0 0 0 .32-.689 1.027 1.027 0 0 0-2.052 0M329.037 196.204a1.155 1.155 0 0 0 1.143 1.144c.299-.007.583-.131.792-.344a1.15 1.15 0 0 0 0-1.599 1.15 1.15 0 0 0-.792-.344 1.154 1.154 0 0 0-1.143 1.143M328.908 220.423a1.326 1.326 0 0 0 1.278 1.311 1.306 1.306 0 0 0 1.278-1.311 1.255 1.255 0 0 0-.794-1.16 1.3 1.3 0 0 0-.487-.085 1.26 1.26 0 0 0-.892.361c-.239.233-.377.55-.383.884M328.838 244.64a1.346 1.346 0 1 0 2.691 0 1.346 1.346 0 0 0-2.691 0M328.736 268.86a1.483 1.483 0 0 0 1.769 1.452 1.48 1.48 0 0 0 1.164-1.163 1.48 1.48 0 0 0-.63-1.52 1.48 1.48 0 0 0-.822-.249 1.49 1.49 0 0 0-1.481 1.48M328.602 293.078a1.
843606 1.606 0 0 0 .463 1.161 1.612 1.612 0 0 0 1.151.487 1.63 1.63 0 1 0 0-3.262 1.61 1.61 0 0 0-1.614 1.614M328.468 317.33c.006.345.114.68.311.963a1.746 1.746 0 0 0 2.687.23 1.76 1.76 0 0 0 .364-1.903 1.74 1.74 0 0 0-1.613-1.072 1.78 1.78 0 0 0-1.749 1.782M328.401 341.515a1.81 1.81 0 0 0 1.119 1.68c.221.091.458.138.697.137a1.82 1.82 0 0 0 1.768-1.816 1.82 1.82 0 0 0-1.768-1.817 1.82 1.82 0 0 0-1.287.53 1.806 1.806 0 0 0-.529 1.286M328.266 365.733a1.936 1.936 0 0 0 2.316 1.879 1.932 1.932 0 0 0 1.409-2.629 1.937 1.937 0 0 0-1.773-1.202 1.96 1.96 0 0 0-1.952 1.952M328.131 389.986a2.069 2.069 0 1 0 4.137 0 2.069 2.069 0 0 0-4.137 0M327.896 414.171a2.284 2.284 0 0 0 2.287 2.253 2.27 2.27 0 0 0 2.087-1.417 2.27 2.27 0 0 0-.511-2.47 2.26 2.26 0 0 0-2.477-.474 2.27 2.27 0 0 0-1.386 2.108M327.762 438.39c.004.64.26 1.254.713 1.707a2.44 2.44 0 0 0 1.708.711 2.42 2.42 0 0 0 2.422-2.422 2.43 2.43 0 0 0-.709-1.712 2.42 2.42 0 0 0-1.713-.71 2.43 2.43 0 0 0-2.422 2.422M327.693 462.608a2.493 2.493 0 0 0 2.49 2.489 2.49 2.49 0 0 0 2.489-2.489 2.493 2.493 0 0 0-2.489-2.449 2.49 2.49 0 0 0-2.49 2.449M327.559 486.86a2.624 2.624 0 1 0 5.247-.001 2.624 2.624 0 0 0-5.247.001M327.391 511.045a2.814 2.814 0 0 0 2.792 2.825 2.825 2.825 0 1 0-1.076-5.435 2.79 2.79 0 0 0-1.513 1.531 2.8 2.8 0 0 0-.203 1.079M327.291 535.263a2.94 2.94 0 0 0 1.832 2.708 2.943 2.943 0 1 0 1.096-5.668 2.92 2.92 0 0 0-2.719 1.828 2.9 2.9 0 0 0-.209 1.132M327.122 559.484a3.095 3.095 0 1 0 1.909-2.861 3.1 3.1 0 0 0-1.676 1.675 3.1 3.1 0 0 0-.233 1.186M326.918 583.734a3.28 3.28 0 1 0 6.559 0 3.3 3.3 0 0 0-.927-2.38 3.3 3.3 0 0 0-2.353-.994 3.28 3.28 0 0 0-3.279 3.374M326.786 607.919a3.42 3.42 0 0 0 1 2.414 3.4 3.4 0 0 0 2.414 1 3.4 3.4 0 0 0 2.414-1 3.404 3.404 0 0 0 1-2.414 3.414 3.414 0 1 0-6.828 0M326.584 632.137a3.616 3.616 0 1 0 7.233.034 3.616 3.616 0 0 0-7.233-.034M326.449 656.39a3.768 3.768 0 1 0 7.534-.1 3.768 3.768 0 0 0-7.534.1M326.211 680.574a3.97 3.97 0 0 0 2.45 3.668 3.968 3.968 0 0 0 5.412-2.893 3.96 3.96 0 0 0-1.687-4.075 3.966 3.966 0 0 0-5.012.494 3.97 3.97 0 0 0-1.163 2.806M326.012 704.793a4.173 4.173 0 0 0 4.985 4.091 4.17 4.17 0 0 0 2.135-1.142 4.165 4.165 0 0 0 .905-4.545 4.17 4.17 0 0 0-3.854-2.575 4.19 4.19 0 0 0-4.171 4.171M325.912 729.012a4.307 4.307 0 0 0 7.35 3.045 4.307 4.307 0 0 0-3.044-7.351 4.314 4.314 0 0 0-4.306 4.306M325.709 753.264a4.508 4.508 0 1 0 4.508-4.507 4.525 4.525 0 0 0-4.508 4.507M325.575 777.449a4.624 4.624 0 0 0 7.895 3.254 4.627 4.627 0 0 0-3.253-7.896 4.64 4.64 0 0 0-3.286 1.356 4.62 4.62 0 0 0-1.356 3.286M325.238 801.668a4.965 4.965 0 0 0 5.946 4.846 4.96 4.96 0 0 0-1-9.825 4.95 4.95 0 0 0-1.898.384 4.953 4.953 0 0 0-3.048 4.595M325.037 825.886a5.15 5.15 0 0 0 3.17 4.783 5.15 5.15 0 0 0 5.627-1.115 5.164 5.164 0 0 0-3.651-8.814 5.146 5.146 0 0 0-5.146 5.146M324.903 850.105a5.294 5.294 0 0 0 5.297 5.239 5.299 5.299 0 1 0-5.297-5.239M305.393 2.455a.59.59 0 1 0 1.177 0 .6.6 0 0 0-.153-.45.59.59 0 0 0-.674-.142.6.6 0 0 0-.321.35.6.6 0 0 0-.029.242M305.393 26.674a.6.6 0 0 0 .176.428.6.6 0 0 0 .429.177.6.6 0 0 0 .572-.605.6.6 0 0 0-.572-.605.6.6 0 0 0-.605.605M305.19 50.927a.76.76 0 0 0 .774.773.767.767 0 0 0 .807-.773.79.79 0 1 0-1.581 0M305.19 75.112a.792.792 0 0 0 1.35.559.79.79 0 1 0-1.35-.56M305.056 99.33a.928.928 0 0 0 1.571.639.92.92 0 0 0 .279-.639.92.92 0 0 0-.925-.9.924.924 0 0 0-.925.9M305.056 123.582a.926.926 0 0 0 1.85 0 .92.92 0 0 0-.251-.691.92.92 0 0 0-.674-.291.93.93 0 0 0-.925.982M304.989 147.767a.99.99 0 0 0 .272.735.99.99 0 0 0 1.112.229.99.99 0 0 0 .601-.964.994.994 0 0 0-1.694-.702 1 1 0 0 0-.291.702M304.855 171.986a1.12 1.12 0 0 0 .342.792 1.13 1.13 0 0 0 .801.318 1.12 1.12 0 0 0 .815-.32 1.14 1.14 0 0 0 .34-.807 1.124 1.124 0 0 0-1.155-1.126 1.12 1.12 0 0 0-.811.332 1.12 1.12 0 0 0-.332.811M304.72 196.204a1.29 1.29 0 0 0 .374.903 1.27 1.27 0 0 0 .904.374 1.278 1.278 0 1 0-1.278-1.277M304.653 220.423a1.4 1.4 0 0 0 1.346 1.378 1.38 1.38 0 0 0 1.345-1.378 1.345 1.345 0 0 0-1.346-1.312 1.365 1.365 0 0 0-1.345 1.312M304.518 244.639c0 .392.156.769.434 1.046a1.477 1.477 0 0 0 2.093 0 1.48 1.48 0 1 0-2.527-1.046M304.383 268.859c.001.428.171.839.473 1.142.303.302.714.472 1.142.473a1.62 1.62 0 0 0 1.142-.473 1.62 1.62 0 0 0 .473-1.142 1.615 1.615 0 0 0-3.23 0M304.249 293.078a1.752 1.752 0 0 0 2.091 1.716 1.748 1.748 0 0 0 1.274-2.385 1.75 1.75 0 0 0-1.616-1.08 1.767 1.767 0 0 0-1.749 1.749M304.182 317.33a1.8 1.8 0 1 0 1.816-1.85 1.84 1.84 0 0 0-1.684 1.147c-.09.224-.135.463-.132.703M304.014 341.515a1.968 1.968 0 1 0 1.229-1.811 1.961 1.961 0 0 0-1.229 1.811M303.879 365.733a2.102 2.102 0 0 0 2.488 2.119 2.11 2.11 0 0 0 1.676-1.649 2.11 2.11 0 0 0-.9-2.172 2.1 2.1 0 0 0-1.178-.349 2.05 2.05 0 0 0-1.468.593 2.07 2.07 0 0 0-.618 1.458M303.678 389.985a2.284 2.284 0 0 0 2.287 2.251 2.27 2.27 0 0 0 2.087-1.417 2.274 2.274 0 0 0-1.678-3.083 2.27 2.27 0 0 0-2.323.983 2.26 2.26 0 0 0-.373 1.264M303.542 414.171a2.41 2.41 0 0 0 2.422 2.388 2.435 2.435 0 0 0 2.456-2.388 2.466 2.466 0 0 0-2.456-2.422 2.434 2.434 0 0 0-2.422 2.422M303.509 438.389c0 .492.146.973.419 1.383a2.49 2.49 0 0 0 2.555 1.058 2.49 2.49 0 1 0-2.974-2.441M303.375 462.607a2.623 2.623 0 1 0 5.245.001 2.623 2.623 0 0 0-5.245-.001M303.173 486.86a2.827 2.827 0 0 0 3.377 2.771 2.825 2.825 0 0 0-.552-5.597 2.8 2.8 0 0 0-2.825 2.826M303.038 511.045a2.962 2.962 0 0 0 5.054 2.093 2.962 2.962 0 0 0-2.094-5.053 2.93 2.93 0 0 0-2.098.862 2.94 2.94 0 0 0-.862 2.098M302.903 535.264a3.095 3.095 0 1 0 3.093-3.095 3.1 3.1 0 0 0-2.191.904 3.1 3.1 0 0 0-.904 2.191
843M302.702 559.481a3.282 3.282 0 0 0 3.923 3.199 3.27 3.27 0 0 0 1.675-.897 3.281 3.281 0 0 0-.486-5.038 3.274 3.274 0 0 0-4.863 1.474c-.166.4-.25.829-.249 1.262M302.567 583.734a3.412 3.412 0 0 0 4.104 3.293 3.412 3.412 0 0 0 2.465-4.65 3.42 3.42 0 0 0-3.138-2.108 3.398 3.398 0 0 0-3.189 2.136 3.4 3.4 0 0 0-.242 1.329M302.366 607.921a3.61 3.61 0 0 0 2.224 3.354 3.614 3.614 0 0 0 4.729-4.729 3.62 3.62 0 0 0-3.354-2.224 3.61 3.61 0 0 0-3.599 3.599M302.231 632.138a3.751 3.751 0 1 0 7.503.033 3.751 3.751 0 0 0-7.503-.033M302.063 656.393a3.937 3.937 0 0 0 7.798.721 3.935 3.935 0 0 0-3.862-4.691 3.96 3.96 0 0 0-3.936 3.97M301.827 680.575a4.173 4.173 0 0 0 7.121 2.949 4.173 4.173 0 0 0-.632-6.417 4.17 4.17 0 0 0-2.318-.703 4.19 4.19 0 0 0-4.171 4.171M301.692 704.794a4.308 4.308 0 0 0 5.146 4.223 4.31 4.31 0 0 0 3.383-3.383 4.306 4.306 0 0 0-4.223-5.146 4.335 4.335 0 0 0-4.306 4.306M301.49 729.012a4.51 4.51 0 0 0 5.387 4.421 4.51 4.51 0 0 0 3.542-3.542 4.52 4.52 0 0 0-1.917-4.627 4.509 4.509 0 0 0-7.012 3.748M301.356 753.264a4.627 4.627 0 0 0 7.896 3.254 4.627 4.627 0 0 0-3.254-7.896 4.62 4.62 0 0 0-3.286 1.356 4.64 4.64 0 0 0-1.356 3.286M300.986 777.449a4.99 4.99 0 0 0 3.053 4.652 5 5 0 0 0 5.463-1.058 4.998 4.998 0 0 0-.752-7.702 5 5 0 0 0-2.785-.838 4.97 4.97 0 0 0-3.514 1.441 4.9 4.9 0 0 0-1.081 1.607 4.95 4.95 0 0 0-.384 1.898M300.784 801.668a5.198 5.198 0 1 0 5.181-5.147 5.187 5.187 0 0 0-5.181 5.147M300.684 825.886a5.318 5.318 0 0 0 6.329 5.253 5.316 5.316 0 0 0 3.899-7.243 5.32 5.32 0 0 0-8.664-1.747 5.3 5.3 0 0 0-1.565 3.74M300.482 850.105a5.518 5.518 0 0 0 6.593 5.411 5.518 5.518 0 0 0 1.988-9.998 5.515 5.515 0 0 0-8.581 4.587M280.973 2.456a.8.8 0 0 0 .228.586.8.8 0 0 0 .579.245.8.8 0 0 0 .752-.515c.04-.1.058-.208.055-.316a.808.808 0 1 0-1.614 0M280.973 26.674a.8.8 0 0 0 .228.586.8.8 0 0 0 .579.245.805.805 0 0 0 .807-.83.809.809 0 0 0-1.614 0M280.973 50.927a.805.805 0 0 0 .965.792.805.805 0 0 0 .634-.635.81.81 0 0 0-1.104-.908.79.79 0 0 0-.495.75M280.838 75.111a.96.96 0 0 0 .942.942.95.95 0 0 0 .87-.58.9.9 0 0 0 .072-.361.93.93 0 0 0-.268-.675.92.92 0 0 0-.674-.27.94.94 0 0 0-.872.582.9.9 0 0 0-.07.362M280.838 99.33a.91.91 0 0 0 .583.851.9.9 0 0 0 .358.06.89.89 0 0 0 .67-.25.89.89 0 0 0 .272-.66.88.88 0 0 0-.272-.662.88.88 0 0 0-.67-.25.91.91 0 0 0-.941.911M280.77 123.582a1.008 1.008 0 0 0 1.009.976.954.954 0 0 0 .976-.976.974.974 0 0 0-1.368-.958 1.01 1.01 0 0 0-.617.958M280.636 147.767a1.166 1.166 0 0 0 1.144 1.177 1.13 1.13 0 0 0 .808-.35q.156-.168.236-.383c.052-.142.074-.293.066-.444a1.1 1.1 0 0 0-1.11-1.11 1.147 1.147 0 0 0-1.144 1.11M280.501 171.985a1.28 1.28 0 0 0 1.528 1.254 1.28 1.28 0 0 0 .931-1.743 1.27 1.27 0 0 0-1.181-.789c-.339 0-.664.135-.903.375-.24.239-.375.564-.375.903M280.434 196.204a1.353 1.353 0 0 0 1.346 1.346 1.373 1.373 0 0 0 1.346-1.346 1.373 1.373 0 0 0-1.346-1.345 1.35 1.35 0 0 0-1.346 1.345M280.3 220.423a1.47 1.47 0 0 0 .89 1.391 1.48 1.48 0 0 0 1.624-.299 1.477 1.477 0 0 0-.209-2.287 1.5 1.5 0 0 0-.826-.252 1.5 1.5 0 0 0-1.48 1.447M280.165 244.641a1.61 1.61 0 0 0 1.614 1.614 1.63 1.63 0 0 0 1.521-.999 1.63 1.63 0 1 0-3.135-.615M280.03 268.859c-.001.23.043.459.13.672.088.212.216.406.379.569s.356.291.569.379c.213.087.441.131.671.129a1.75 1.75 0 1 0 0-3.498 1.73 1.73 0 0 0-1.619 1.078 1.8 1.8 0 0 0-.13.671M279.963 293.078a1.8 1.8 0 0 0 1.119 1.649 1.8 1.8 0 1 0 .697-3.466 1.82 1.82 0 0 0-1.816 1.817M279.796 317.33a1.946 1.946 0 0 0 1.22 1.777 1.95 1.95 0 0 0 1.836-3.419 1.95 1.95 0 0 0-1.072-.342 1.988 1.988 0 0 0-1.834 1.224c-.1.241-.151.5-.15.76M279.662 341.517a2.097 2.097 0 0 0 2.082 2.083 2.087 2.087 0 0 0 1.475-3.56 2.08 2.08 0 0 0-1.475-.611 2.093 2.093 0 0 0-2.082 2.088M279.492 365.733a2.289 2.289 0 0 0 4.531.442 2.29 2.29 0 0 0-2.244-2.732 2.29 2.29 0 0 0-2.287 2.287M279.358 389.986a2.424 2.424 0 0 0 2.422 2.422 2.421 2.421 0 1 0-2.422-2.422M279.29 414.171a2.495 2.495 0 0 0 1.536 2.299 2.49 2.49 0 0 0 2.712-.538 2.488 2.488 0 0 0-1.755-4.25 2.46 2.46 0 0 0-1.764.725 2.5 2.5 0 0 0-.725 1.764M279.157 438.389a2.628 2.628 0 0 0 2.623 2.624 2.624 2.624 0 1 0-2.623-2.624M278.954 462.607a2.825 2.825 0 1 0 5.65 0 2.825 2.825 0 0 0-5.65 0M278.819 486.86a2.96 2.96 0 0 0 1.828 2.735 2.96 2.96 0 1 0-1.828-2.735M278.685 511.045a3.095 3.095 0 1 0 1.909-2.862 3.085 3.085 0 0 0-1.909 2.862M278.484 535.263c.003.647.198 1.279.559 1.816a3.283 3.283 0 0 0 5.039.486 3.27 3.27 0 0 0 .714-3.566 3.3 3.3 0 0 0-1.2-1.473 3.284 3.284 0 0 0-4.866 1.473 3.3 3.3 0 0 0-.246 1.264M278.313 559.48a3.432 3.432 0 1 0 5.338-2.853 3.44 3.44 0 0 0-1.907-.579 3.454 3.454 0 0 0-3.43
8431 3.432M278.147 583.734a3.63 3.63 0 0 0 2.265 3.332 3.634 3.634 0 1 0 1.367-6.998 3.64 3.64 0 0 0-3.363 2.267c-.181.444-.272.92-.269 1.399M278.012 607.919a3.766 3.766 0 0 0 3.768 3.718 3.767 3.767 0 0 0 3.767-3.718 3.77 3.77 0 0 0-6.414-2.632 3.77 3.77 0 0 0-1.121 2.632M277.81 632.138a3.953 3.953 0 0 0 4.707 3.896 3.954 3.954 0 0 0 2.903-5.376 3.95 3.95 0 0 0-3.641-2.456 3.975 3.975 0 0 0-3.969 3.936M277.608 656.389a4.18 4.18 0 0 0 2.575 3.854 4.18 4.18 0 0 0 4.546-.904 4.18 4.18 0 0 0 .904-4.546 4.177 4.177 0 0 0-5.451-2.259 4.18 4.18 0 0 0-2.258 2.258 4.2 4.2 0 0 0-.316 1.597M277.474 680.574a4.307 4.307 0 0 0 7.352 3.04 4.3 4.3 0 0 0 .931-4.692 4.31 4.31 0 0 0-3.978-2.656 4.313 4.313 0 0 0-4.305 4.305M277.272 704.793a4.5 4.5 0 0 0 2.783 4.164 4.506 4.506 0 1 0 1.724-8.671 4.47 4.47 0 0 0-3.193 1.313 4.49 4.49 0 0 0-1.314 3.194M277.137 729.012a4.627 4.627 0 0 0 7.896 3.253 4.627 4.627 0 0 0-.691-7.109 4.6 4.6 0 0 0-2.564-.786 4.65 4.65 0 0 0-4.642 4.642M276.802 753.266a4.979 4.979 0 1 0 4.978-4.978 4.956 4.956 0 0 0-4.978 4.978M276.599 777.449a5.18 5.18 0 0 0 3.198 4.785 5.17 5.17 0 0 0 5.645-1.123 5.17 5.17 0 0 0 1.123-5.645 5.19 5.19 0 0 0-4.785-3.198 5.16 5.16 0 0 0-3.671 1.51 5.14 5.14 0 0 0-1.51 3.671M276.465 801.668a5.314 5.314 0 0 0 10.525 1.083 5.316 5.316 0 0 0-5.21-6.364 5.303 5.303 0 0 0-5.315 5.281M276.263 825.886a5.5 5.5 0 0 0 3.379 5.091 5.495 5.495 0 0 0 5.997-1.173 5.495 5.495 0 0 0-.807-8.465 5.5 5.5 0 0 0-5.159-.524 5.5 5.5 0 0 0-2.985 2.967 5.5 5.5 0 0 0-.425 2.104M276.061 850.104a5.722 5.722 0 0 0 6.835 5.607 5.72 5.72 0 0 0 4.492-4.494 5.712 5.712 0 0 0-5.609-6.833 5.71 5.71 0 0 0-5.284 3.529 5.7 5.7 0 0 0-.434 2.189M256.754 2.456a.816.816 0 0 0 .774.807.827.827 0 0 0 .841-.807.825.825 0 0 0-.841-.807.813.813 0 0 0-.774.807M256.754 26.674a.79.79 0 0 0 .774.808.806.806 0 0 0 .841-.808.8.8 0 0 0-.252-.57.78.78 0 0 0-.589-.203.76.76 0 0 0-.774.773M256.619 50.926a.9.9 0 0 0 .265.646.9.9 0 0 0 .646.265.923.923 0 0 0 .976-.911.947.947 0 0 0-1.625-.657.94.94 0 0 0-.262.657M256.619 75.111a.96.96 0 0 0 .911.942.97.97 0 0 0 .976-.942.947.947 0 0 0-1.625-.657.94.94 0 0 0-.262.657M256.552 99.33a.98.98 0 0 0 .596.93 1 1 0 0 0 .38.079 1.02 1.02 0 0 0 1.041-1.009.99.99 0 0 0-.65-.916 1 1 0 0 0-.391-.06.955.955 0 0 0-.976.976M256.42 123.582a1.12 1.12 0 0 0 1.106 1.11 1.12 1.12 0 0 0 .809-.311 1.1 1.1 0 0 0 .336-.799 1.118 1.118 0 0 0-1.58-1.079 1.132 1.132 0 0 0-.671 1.079M256.283 147.767a1.303 1.303 0 0 0 1.245 1.312 1.283 1.283 0 0 0 1.278-1.312 1.228 1.228 0 0 0-1.278-1.244 1.238 1.238 0 0 0-1.245 1.244M256.215 171.986a1.37 1.37 0 0 0 1.314 1.345 1.344 1.344 0 0 0 1.375-1.345 1.35 1.35 0 0 0-.405-.962 1.34 1.34 0 0 0-.97-.384 1.365 1.365 0 0 0-1.312 1.346M256.048 196.204a1.514 1.514 0 0 0 2.059 1.376 1.47 1.47 0 0 0 .935-1.376 1.47 1.47 0 0 0-.445-1.058 1.48 1.48 0 0 0-1.066-.422 1.515 1.515 0 0 0-1.48 1.48M255.913 220.423a1.625 1.625 0 0 0 .99 1.52c.197.083.41.127.624.128a1.653 1.653 0 0 0 1.649-1.648 1.64 1.64 0 0 0-2.78-1.122 1.6 1.6 0 0 0-.483 1.122M255.812 244.641c.002.463.187.907.515 1.234a1.753 1.753 0 0 0 2.483-.002 1.767 1.767 0 0 0-1.249-3.015 1.78 1.78 0 0 0-1.244.529 1.78 1.78 0 0 0-.505 1.254M255.746 268.859a1.82 1.82 0 0 0 1.121 1.678 1.817 1.817 0 1 0-1.121-1.678M255.61 293.078a1.96 1.96 0 0 0 1.205 1.804 1.96 1.96 0 0 0 2.128-.423 1.95 1.95 0 0 0 .423-2.128 1.955 1.955 0 0 0-1.804-1.205 1.99 1.99 0 0 0-1.372.58 1.99 1.99 0 0 0-.58 1.372M255.476 317.33a2.09 2.09 0 0 0 2.051 2.086 2.126 2.126 0 0 0 2.12-2.086 2.083 2.083 0 0 0-2.12-2.085 2.04 2.04 0 0 0-1.464.611 2.03 2.03 0 0 0-.587 1.474M255.274 341.515a2.23 2.23 0 0 0 .654 1.599 2.22 2.22 0 0 0 1.599.654 2.255 2.255 0 1 0 0-4.507 2.224 2.224 0 0 0-2.087 1.388 2.2 2.2 0 0 0-.166.866M255.139 365.734a2.41 2.41 0 0 0 2.388 2.422 2.42 2.42 0 0 0 2.413-2.874 2.42 2.42 0 0 0-1.894-1.921 2.43 2.43 0 0 0-2.496 1.024 2.4 2.4 0 0 0-.411 1.349M255.072 389.986a2.47 2.47 0 0 0 2.455 2.455 2.473 2.473 0 1 0 0-4.945 2.48 2.48 0 0 0-2.455 2.489M254.938 414.171a2.567 2.567 0 0 0 2.589 2.589 2.6 2.6 0 0 0 2.422-1.601 2.6 2.6 0 0 0-.562-2.848 2.6 2.6 0 0 0-2.848-.562 2.6 2.6 0 0 0-1.601 2.422M254.735 438.389a2.805 2.805 0 0 0 3.373 2.734 2.8 2.8 0 0 0 2.193-2.219 2.809 2.809 0 0 0-2.774-3.34 2.8 2.8 0 0 0-1.986.829 2.8 2.8 0 0 0-.806 1.996M254.567 462.608a2.96 2.96 0 1 0 2.96-2.96 2.964 2.964 0 0 0-2.96 2.96M254.433 486.86a3.112 3.112 0 1 0 6.224-.09 3.112 3.112 0 0 0-6.224.09M254.265 511.045a3.296 3.296 0 1 0 6.592.001 3.296 3.296 0 0 0-6.592-.001M254.131 535.264a3.431 3.431 0 1 0 2.117-3.172 3.42 3.42 0 0 0-2.117 3.172M253.928 559.482a3.64 3.64 0 0 0 2.227 3.384 3.632 3.632 0 1 0 1.372-6.983 3.611 3.611 0 0 0-3.599 3.599M253.794 583.734a3.77 3.77 0 0 0 7.535 0 3.768 3.768 0 1 0-7.535 0M253.594 607.919a3.96 3.96 0 0 0 2.456 3.641 3.95 3.95 0 0 0 4.303-.875 3.95 3.95 0 0 0 1.073-2.029 3.95 3.95 0 0 0-1.698-4.05 3.95 3.95 0 0 0-3.71-.35 3.932 3.932 0 0 0-2.13 2.148 4 4 0 0 0-.294 1.51
8435M253.39 632.138a4.154 4.154 0 1 0 4.137-4.171 4.163 4.163 0 0 0-4.137 4.171M253.256 656.388a4.289 4.289 0 1 0 4.271-4.306 4.28 4.28 0 0 0-3.954 2.662 4.3 4.3 0 0 0-.317 1.644M253.054 680.575a4.51 4.51 0 0 0 5.386 4.421 4.506 4.506 0 0 0-.879-8.928 4.55 4.55 0 0 0-4.507 4.507M252.921 704.794a4.64 4.64 0 0 0 2.866 4.288 4.64 4.64 0 0 0 4.355-8.148 4.64 4.64 0 0 0-2.579-.783 4.656 4.656 0 0 0-4.642 4.643M252.583 729.012a4.981 4.981 0 0 0 8.499 3.553 4.978 4.978 0 0 0-3.554-8.498 4.956 4.956 0 0 0-4.945 4.945M252.381 753.263a5.11 5.11 0 0 0 1.501 3.646 5.13 5.13 0 0 0 3.645 1.501 5.164 5.164 0 1 0-5.146-5.147M252.246 777.449a5.297 5.297 0 1 0 5.281-5.315 5.274 5.274 0 0 0-5.281 5.315M252.045 801.67a5.495 5.495 0 0 0 3.387 5.095 5.499 5.499 0 1 0 2.095-10.578 5.494 5.494 0 0 0-5.482 5.483M251.843 825.886a5.701 5.701 0 1 0 5.684-5.685 5.69 5.69 0 0 0-5.684 5.685M251.641 850.108a5.92 5.92 0 0 0 3.655 5.47 5.92 5.92 0 0 0 6.453-1.283 5.925 5.925 0 0 0-.897-9.111 5.9 5.9 0 0 0-3.29-.998 5.93 5.93 0 0 0-5.921 5.922M232.401 2.455a.91.91 0 0 0 .911.942.94.94 0 0 0 .686-.265.95.95 0 0 0 .29-.677.95.95 0 0 0-.976-.941.91.91 0 0 0-.851.583.9.9 0 0 0-.06.358M232.401 26.674a.91.91 0 0 0 .911.942.94.94 0 0 0 .686-.265.95.95 0 0 0 .29-.677.9.9 0 0 0-.078-.362.94.94 0 0 0-.531-.496.9.9 0 0 0-.367-.053.9.9 0 0 0-.653.259.887.887 0 0 0-.258.653M232.401 50.926a.89.89 0 0 0 .258.653.88.88 0 0 0 .653.258.923.923 0 0 0 .976-.911.947.947 0 0 0-.976-.942.91.91 0 0 0-.851.584.9.9 0 0 0-.06.358M232.3 75.112a1.02 1.02 0 0 0 .627.96 1.03 1.03 0 0 0 1.407-.75 1.024 1.024 0 0 0-1.024-1.221 1.01 1.01 0 0 0-1.01 1.009M232.166 99.33a1.12 1.12 0 0 0 .332.812 1.14 1.14 0 0 0 .812.332 1.116 1.116 0 0 0 1.143-1.144 1.1 1.1 0 0 0-.087-.433 1.1 1.1 0 0 0-.621-.604 1.1 1.1 0 0 0-.436-.073 1.13 1.13 0 0 0-1.052.68q-.088.206-.092.43M232.03 123.582a1.273 1.273 0 0 0 1.279 1.245 1.218 1.218 0 0 0 .906-.348 1.22 1.22 0 0 0 .372-.897 1.285 1.285 0 0 0-1.278-1.312 1.334 1.334 0 0 0-1.279 1.312M231.998 147.767a1.34 1.34 0 0 0 .394.951 1.35 1.35 0 0 0 .951.394 1.34 1.34 0 0 0 .952-.394 1.35 1.35 0 0 0 .394-.951 1.35 1.35 0 0 0-1.346-1.346 1.345 1.345 0 0 0-1.345 1.346M231.861 171.986a1.477 1.477 0 0 0 2.527 1.047 1.48 1.48 0 0 0-1.047-2.527 1.49 1.49 0 0 0-1.48 1.48M231.728 196.204a1.613 1.613 0 0 0 2.756 1.141 1.615 1.615 0 1 0-2.756-1.141M231.594 220.423a1.74 1.74 0 0 0 .495 1.268 1.76 1.76 0 0 0 1.254.529 1.74 1.74 0 0 0 1.254-.529 1.76 1.76 0 0 0 .495-1.268 1.75 1.75 0 0 0-1.749-1.702 1.746 1.746 0 0 0-1.749 1.702M231.527 244.641a1.827 1.827 0 0 0 1.816 1.816 1.805 1.805 0 0 0 1.783-1.816 1.83 1.83 0 0 0-1.783-1.85 1.86 1.86 0 0 0-1.816 1.85M231.391 268.859a1.937 1.937 0 0 0 2.316 1.879 1.933 1.933 0 0 0 .704-3.498 1.94 1.94 0 0 0-1.818-.19 1.93 1.93 0 0 0-1.202 1.809M231.257 293.078a2.047 2.047 0 0 0 2.052 2.082 2.1 2.1 0 0 0 1.496-.596 2.07 2.07 0 0 0 .623-1.486 2.125 2.125 0 0 0-2.119-2.085 2.086 2.086 0 0 0-2.052 2.085M231.056 317.33a2.253 2.253 0 0 0 2.253 2.254 2.272 2.272 0 0 0 .881-4.38 2.3 2.3 0 0 0-.881-.161 2.257 2.257 0 0 0-2.089 1.415 2.25 2.25 0 0 0-.164.872M230.921 341.515a2.38 2.38 0 0 0 1.472 2.21c.291.119.602.18.916.178a2.39 2.39 0 0 0 2.458-2.388 2.38 2.38 0 0 0-.725-1.714 2.38 2.38 0 0 0-1.733-.675 2.38 2.38 0 0 0-2.21 1.472c-.119.291-.18.603-.178.917M230.819 365.733a2.49 2.49 0 0 0 4.249 1.761 2.487 2.487 0 0 0-.376-3.829 2.49 2.49 0 0 0-2.336-.232 2.5 2.5 0 0 0-.809.539 2.5 2.5 0 0 0-.727 1.762M230.685 389.986a2.624 2.624 0 1 0 5.247-.001 2.624 2.624 0 0 0-5.247.001M230.518 414.171a2.82 2.82 0 0 0 1.744 2.61 2.823 2.823 0 0 0 3.852-2.059 2.827 2.827 0 0 0-2.771-3.377 2.845 2.845 0 0 0-2.825 2.826M230.385 438.389a2.959 2.959 0 1 0 5.694-1.133 2.955 2.955 0 0 0-2.734-1.827 2.95 2.95 0 0 0-2.74 1.825c-.148.36-.223.746-.22 1.135M230.248 462.608a3.095 3.095 0 1 0 1.909-2.861 3.1 3.1 0 0 0-1.676 1.675 3.1 3.1 0 0 0-.233 1.186M230.046 486.86a3.278 3.278 0 0 0 3.945 3.162 3.28 3.28 0 0 0-.648-6.492 3.3 3.3 0 0 0-2.342.979 3.3 3.3 0 0 0-.955 2.351M229.912 511.045c0 .449.088.893.259 1.307a3.43 3.43 0 0 0 1.848 1.848 3.42 3.42 0 0 0 2.613 0 3.414 3.414 0 1 0-4.72-3.155M229.71 535.263a3.64 3.64 0 0 0 2.227 3.384 3.636 3.636 0 0 0 3.975-.781 3.632 3.632 0 0 0-2.603-6.202 3.6 3.6 0 0 0-2.541 1.058 3.6 3.6 0 0 0-1.058 2.541M229.575 559.482a3.77 3.77 0 0 0 4.494 3.731 3.763 3.763 0 0 0 2.748-5.154 3.8 3.8 0 0 0-1.402-1.69 3.78 3.78 0 0 0-4.74.479 3.75 3.75 0 0 0-1.1 2.634M229.34 583.734a3.985 3.985 0 0 0 3.969 3.904 3.934 3.934 0 1 0-1.569-7.558 3.93 3.93 0 0 0-2.4 3.654M229.172 607.919a4.165 4.165 0 0 0 2.575 3.853 4.165 4.165 0 0 0 4.545-.904 4.17 4.17 0 0 0-2.949-7.12 4.188 4.188 0 0 0-4.171 4.171M229.037 632.138a4.307 4.307 0 0 0 5.145 4.223 4.3 4.3 0 0 0 3.383-3.383 4.307 4.307 0 0 0-4.223-5.146 4.314 4.314 0 0 0-4.305 4.306M228.835 656.39a4.51 4.51 0 0 0 2.806 4.14 4.507 4.507 0 1 0 1.702-8.681 4.53 4.53 0 0 0-4.508 4.541M228.701 680.575a4.626 4.626 0 1 0 9.252-.033 4.626 4.626 0 0 0-9.252.033M228.362 704.79a4.96 4.96 0 0 0 3.055 4.597 4.96 4.96 0 0 0 5.415-1.072 4.963 4.963 0 0 0-3.525-8.47 4.93 4.93 0 0 0-4.945 4.945M228.162 729.012a5.17 5.17 0 0 0 1.498 3.659 5.16 5.16 0 0 0 3.649 1.521 5.164 5.164 0 0 0 3.651-8.814 5.16 5.16 0 0 0-3.651-1.512 5.12 5.12 0 0 0-3.645 1.501 5.13 5.13 0 0 0-1.502 3.645M228.029 753.261a5.3 5.3 0 0 0 3.283 4.886 5.293 5.293 0 0 0 7.214-3.881 5.3 5.3 0 0 0-.31-3.06 5.31 5.31 0 0 0-4.904-3.257 5.28 5.28 0 0 0-3.75 1.554 5.28 5.28 0 0 0-1.533 3.758M227.826 777.449a5.518 5.518 0 0 0 9.418 3.901 5.5 5.5 0 0 0 1.509-2.825 5.513 5.513 0 0 0-9.31-4.976 5.52 5.52 0 0 0-1.617 3.9M227.624 801.668a5.715 5.715 0 0 0 3.53 5.283 5.71 5.71 0 0 0 6.232-1.24 5.723 5.723 0 0 0-.867-8.798 5.72 5.72 0 0 0-8.461 2.566 5.7 5.7 0 0 0-.434 2.189M227.423 825.885a5.92 5.92 0 0 0 7.055 5.847 5.92 5.92 0 0 0 4.671-4.643 5.925 5.925 0 0 0-2.512-6.089 5.9 5.9 0 0 0-3.293-1.001 5.91 5.91 0 0 0-5.921 5.886M227.22 850.105a6.11 6.11 0 0 0 3.777 5.626 6.104 6.104 0 1 0-.001-11.287 6.1 6.1 0 0 0-3.315 3.315 6.1 6.1 0 0 0-.461 2.346M208.182 2.455a.962.962 0 0 0 1.141.958.956.956 0 0 0 .7-1.315.96.96 0 0 0-.898-.584.94.94 0 0 0-.943.941M208.182 26.674a.958.958 0 1 0 1.918
8430 .96.96 0 0 0-.959-.916.96.96 0 0 0-.959.916M208.115 50.927a1.03 1.03 0 0 0 .626.961 1.025 1.025 0 0 0 1.345-1.345 1.03 1.03 0 0 0-.961-.626.993.993 0 0 0-1.01 1.01M207.981 75.112a1.155 1.155 0 0 0 1.143 1.144 1.145 1.145 0 1 0 0-2.287 1.156 1.156 0 0 0-1.143 1.143M207.848 99.33a1.274 1.274 0 0 0 1.528 1.254 1.27 1.27 0 0 0 1.004-1.005 1.278 1.278 0 1 0-2.532-.25M207.779 123.582a1.345 1.345 0 1 0 2.689-.058 1.345 1.345 0 0 0-2.689.058M207.644 147.767a1.482 1.482 0 0 0 2.515 1.092 1.48 1.48 0 0 0-1.034-2.539 1.5 1.5 0 0 0-1.481 1.447M207.509 171.985c.001.428.171.839.473 1.142.303.302.714.472 1.142.473a1.62 1.62 0 0 0 1.142-.473 1.62 1.62 0 0 0 .473-1.142 1.615 1.615 0 0 0-3.23 0M207.375 196.204a1.76 1.76 0 0 0 1.749 1.749 1.78 1.78 0 0 0 1.75-1.749 1.78 1.78 0 0 0-1.75-1.749 1.755 1.755 0 0 0-1.749 1.749M207.308 220.423a1.8 1.8 0 1 0 3.599 0 1.8 1.8 0 0 0-1.8-1.766 1.8 1.8 0 0 0-1.799 1.766M207.174 244.641a1.934 1.934 0 1 0 3.016-1.653 1.93 1.93 0 0 0-1.064-.332 1.96 1.96 0 0 0-1.813 1.228 1.9 1.9 0 0 0-.139.757M207.005 268.86a2.097 2.097 0 0 0 2.086 2.085 2.084 2.084 0 0 0 1.474-3.56 2.09 2.09 0 0 0-1.474-.611 2.096 2.096 0 0 0-2.086 2.083M206.803 293.078a2.3 2.3 0 0 0 1.389 2.138 2.29 2.29 0 0 0 2.505-.474 2.29 2.29 0 0 0-1.606-3.918 2.263 2.263 0 0 0-2.288 2.254M206.702 317.33a2.405 2.405 0 0 0 2.422 2.388 2.405 2.405 0 0 0 2.344-2.893 2.415 2.415 0 0 0-1.906-1.879 2.41 2.41 0 0 0-2.86 2.384M206.635 341.512a2.49 2.49 0 0 0 1.536 2.3 2.493 2.493 0 0 0 3.394-1.814 2.48 2.48 0 0 0-1.058-2.555 2.503 2.503 0 0 0-2.338-.234 2.5 2.5 0 0 0-1.348 1.349 2.5 2.5 0 0 0-.186.954M206.5 365.734a2.62 2.62 0 0 0 1.617 2.426 2.623 2.623 0 1 0-1.617-2.426M206.299 389.985a2.83 2.83 0 0 0 1.744 2.611 2.826 2.826 0 1 0-1.744-2.611M206.164 414.171a2.96 2.96 0 1 0 5.92 0 2.96 2.96 0 0 0-5.92 0M206.029 438.392a3.095 3.095 0 1 0 1.909-2.862 3.08 3.08 0 0 0-1.676 1.676 3.1 3.1 0 0 0-.233 1.186M205.826 462.608c.003.647.198 1.279.559 1.816a3.283 3.283 0 0 0 5.039.486 3.28 3.28 0 0 0 .714-3.566 3.3 3.3 0 0 0-1.2-1.473 3.284 3.284 0 0 0-4.866 1.473 3.3 3.3 0 0 0-.246 1.264M205.693 486.86a3.42 3.42 0 0 0 2.115 3.141 3.42 3.42 0 0 0 3.713-.744 3.412 3.412 0 1 0-5.569-3.711c-.172.417-.26.863-.259 1.314M205.458 511.045a3.633 3.633 0 1 0 7.267 0 3.633 3.633 0 0 0-7.267 0M205.357 535.264a3.76 3.76 0 0 0 2.302 3.505 3.771 3.771 0 0 0 5.158-2.724 3.768 3.768 0 0 0-3.693-4.515 3.782 3.782 0 0 0-3.767 3.734M205.155 559.482a3.96 3.96 0 0 0 2.426 3.691 3.97 3.97 0 1 0 1.543-7.626 3.974 3.974 0 0 0-3.969 3.935M204.953 583.734a4.17 4.17 0 0 0 4.171 4.098 4.17 4.17 0 0 0 4.171-4.098 4.171 4.171 0 0 0-8.342 0M204.818 607.919a4.305 4.305 0 1 0 4.307-4.305 4.337 4.337 0 0 0-4.306 4.305M2
84304.616 632.138a4.51 4.51 0 0 0 5.387 4.421 4.51 4.51 0 0 0 3.541-3.542 4.508 4.508 0 1 0-8.928-.879M204.482 656.389a4.627 4.627 0 0 0 5.551 4.482 4.63 4.63 0 0 0 3.611-3.637 4.62 4.62 0 0 0-1.961-4.736 4.63 4.63 0 0 0-2.559-.784 4.65 4.65 0 0 0-4.296 2.89 4.6 4.6 0 0 0-.346 1.785M204.145 680.575c.004.979.297 1.936.843 2.75a4.965 4.965 0 0 0 7.627.741 4.96 4.96 0 0 0-.741-7.627 4.96 4.96 0 0 0-2.75-.843 4.99 4.99 0 0 0-4.979 4.979M203.944 704.793a5.18 5.18 0 0 0 3.174 4.81 5.18 5.18 0 0 0 5.657-1.101 5.18 5.18 0 1 0-8.831-3.709M203.81 729.012a5.29 5.29 0 0 0 3.255 4.905 5.298 5.298 0 1 0 2.059-10.186 5.3 5.3 0 0 0-5.314 5.281M203.611 753.264a5.517 5.517 0 1 0 5.516-5.517 5.5 5.5 0 0 0-3.908 1.609 5.49 5.49 0 0 0-1.608 3.908M203.405 777.449a5.72 5.72 0 0 0 11.327 1.115 5.71 5.71 0 0 0-2.431-5.87 5.723 5.723 0 0 0-8.462 2.565 5.7 5.7 0 0 0-.434 2.19M203.204 801.668a5.923 5.923 0 0 0 11.842 0 5.92 5.92 0 1 0-11.842 0M203 825.886a6.1 6.1 0 0 0 3.776 5.626 6.107 6.107 0 0 0 8.316-4.448 6.1 6.1 0 0 0-2.585-6.264 6.1 6.1 0 0 0-3.385-1.036 6.13 6.13 0 0 0-4.327 1.795 6.13 6.13 0 0 0-1.795 4.327M202.8 850.104a6.305 6.305 0 0 0 10.767 4.477 6.301 6.301 0 0 0-.966-9.711 6.3 6.3 0 0 0-3.51-1.056 6.271 6.271 0 0 0-5.814 3.882 6.3 6.3 0 0 0-.477 2.408M183.899 2.456a1.014 1.014 0 0 0 1.398.937.99.99 0 0 0 .62-.937 1 1 0 0 0-.291-.72 1 1 0 0 0-.721-.29 1.01 1.01 0 0 0-1.006 1.01M183.9 26.674a1.01 1.01 0 0 0 1.009 1.01.99.99 0 0 0 .701-1.694 1.003 1.003 0 0 0-1.71.685M183.762 50.927a1.14 1.14 0 0 0 .342.792 1.12 1.12 0 0 0 .802.318 1.1 1.1 0 0 0 .788-.322 1.1 1.1 0 0 0 .322-.788 1.097 1.097 0 0 0-.674-1.063 1.1 1.1 0 0 0-.437-.081 1.11 1.11 0 0 0-1.143 1.144M183.627 75.111q0 .254.098.49a1.27 1.27 0 0 0 .691.691 1.252 1.252 0 0 0 1.732-1.18 1.26 1.26 0 0 0-.354-.901 1.25 1.25 0 0 0-1.38-.28 1.28 1.28 0 0 0-.692.691 1.3 1.3 0 0 0-.097.49M183.56 99.33a1.373 1.373 0 0 0 1.346 1.346 1.4 1.4 0 0 0 1.346-1.346 1.397 1.397 0 0 0-1.346-1.346 1.37 1.37 0 0 0-1.346 1.346M183.426 123.582a1.486 1.486 0 0 0 1.48 1.446 1.507 1.507 0 0 0 1.48-1.446 1.52 1.52 0 0 0-1.48-1.514 1.503 1.503 0 0 0-1.48 1.514M183.291 147.767a1.64 1.64 0 0 0 .463 1.162 1.63 1.63 0 0 0 1.151.487 1.64 1.64 0 0 0 1.615-1.649 1.63 1.63 0 0 0-1.615-1.581 1.61 1.61 0 0 0-1.614 1.581M183.123 171.986a1.77 1.77 0 0 0 1.766 1.766 1.765 1.765 0 1 0-1.766-1.766M183.056 196.204a1.816 1.816 0 1 0 3.633.001 1.816 1.816 0 0 0-3.633-.001M182.955 220.423a1.952 1.952 0 1 0 3.904 0 1.952 1.952 0 0 0-3.904 0M182.82 244.641a2.097 2.097 0 0 0 2.086 2.085 2.06 2.06 0 0 0 1.477-.607 2.08 2.08 0 0 0 .608-1.478 2.046 2.046 0 0 0-2.085-2.082 2.07 2.07 0 0 0-2.086 2.082M182.615 268.859a2.285 2.285 0 0 0 1.388 2.138 2.28 2.28 0 0 0 2.504-.472 2.29 2.29 0 0 0-1.602-3.919 2.24 2.24 0 0 0-2.29 2.253M182.487 293.078a2.422 2.422 0 1 0 4.844.002 2.422 2.422 0 0 0-4.844-.002M182.416 317.33a2.488 2.488 0 1 0 4.977 0 2.488 2.488 0 0 0-4.977 0M182.282 341.515c.001.343.07.682.202.998a2.62 2.62 0 0 0 1.421 1.402 2.6 2.6 0 0 0 1 .19 2.571 2.571 0 0 0 2.59-2.59 2.59 2.59 0 0 0-1.592-2.421 2.59 2.59 0 0 0-2.852.567 2.63 2.63 0 0 0-.769 1.854M182.08 365.733a2.8 2.8 0 0 0 1.741 2.581 2.8 2.8 0 0 0 3.053-.612 2.81 2.81 0 0 0-.415-4.314c-.459-.31-1-.477-1.554-.48a2.8 2.8 0 0 0-1.085.208 2.78 2.78 0 0 0-1.532 1.532 2.8 2.8 0 0 0-.208 1.085M181.945 389.986a2.96 2.96 0 0 0 1.828 2.735 2.96 2.96 0 1 0-1.828-2.735M181.811 414.171a3.09 3.09 0 0 0 1.933 2.835 3.1 3.1 0 0 0 1.786.163 3.1 3.1 0 0 0 2.413-2.441 3.096 3.096 0 0 0-3.039-3.685 3.1 3.1 0 0 0-2.197.922 3.1 3.1 0 0 0-.898 2.206M181.576 438.389a3.295 3.295 0 0 0 5.615 2.343 3.29 3.29 0 0 0 .736-3.581 3.297 3.297 0 0 0-6.351 1.238M181.474 462.608a3.44 3.44 0 0 0 2.111 3.167 3.434 3.434 0 0 0 4.682-2.478 3.43 3.43 0 0 0-1.431-3.526 3.43 3.43 0 0 0-1.897-.594 3.46 3.46 0 0 0-2.44 1.001 3.46 3.46 0 0 0-1.025 2.43M181.273 486.86a3.63 3.63 0 0 0 4.341 3.563 3.63 3.63 0 0 0 2.855-2.854 3.634 3.634 0 0 0-3.564-4.342 3.664 3.664 0 0 0-3.632 3.633M181.138 511.045a3.766 3.766 0 0 0 4.503 3.695 3.76 3.76 0 0 0 2.96-2.96 3.76 3.76 0 0 0-1.602-3.867 3.77 3.77 0 0 0-2.093-.635 3.75 3.75 0 0 0-2.668 1.099 3.75 3.75 0 0 0-1.1 2.668M180.936 535.264a3.96 3.96 0 0 0 2.448 3.638 3.953 3.953 0 1 0 1.521-7.608 3.976 3.976 0 0 0-3.969 3.97M180.734 559.482a4.153 4.153 0 1 0 8.306 0 4.153 4.153 0 0 0-8.306 0M180.6 583.734a4.285 4.285 0 0 0 2.655 3.949 4.29 4.29 0 0 0 4.666-.933 4.29 4.29 0 0 0 .933-4.666 4.292 4.292 0 0 0-7.932-.001 4.3 4.3 0 0 0-.322 1.651M180.398 607.919a4.5 4.5 0 0 0 2.783 4.164c.823.341 1.729.43 2.604.257a4.51 4.51 0 0 0 1.625-8.169 4.5 4.5 0 0 0-2.505-.76 4.5 4.5 0 0 0-3.193 1.314 4.48 4.48 0 0 0-1.314 3.194M180.23 632.138a4.645 4.645 0 0 0 2.858 4.285 4.642 4.642 0 1 0 1.818-8.927 4.65 4.65 0 0 0-3.3 1.352 4.66 4.66 0 0 0-1.376 3.29M179.928 656.39a4.975 4.975 0 0 0 3.066 4.596 4.97 4.97 0 0 0 5.421-1.065 4.977 4.977 0 0 0-3.477-8.509 4.96 4.96 0 0 0-4.631 3.064 4.95 4.95 0 0 0-.379 1.914M179.726 680.575a5.178 5.178 0 0 0 6.191 5.08 5.17 5.17 0 0 0 2.652-1.418 5.17 5.17 0 0 0 1.123-5.645 5.19 5.19 0 0 0-4.786-3.198 5.16 5.16 0 0 0-3.671 1.51 5.16 5.16 0 0 0-1.509 3.671M179.591 704.793a5.298 5.298 0 1 0 10.599.035 5.298 5.298 0 0 0-10.6-.033M179.389 729.012a5.5 5.5 0 0 0 3.38 5.092 5.5 5.5 0 0 0 5.997-1.175 5.495 5.495 0 0 0 1.209-5.991 5.497 5.497 0 0 0-7.178-2.997 5.5 5.5 0 0 0-1.788 1.187 5.48 5.48 0 0 0-1.623 3.884M179.187 753.264a5.7 5.7 0 0 0 3.527 5.254 5.703 5.703 0 0 0 7.445-7.445 5.698 5.698 0 0 0-5.254-3.527 5.67 5.67 0 0 0-4.053 1.665 5.69 5.69 0 0 0-1.665 4.053M178.985 777.449a5.923 5.923 0 0 0 11.729 1.155 5.922 5.922 0 0 0-5.807-7.077 5.9 5.9 0 0 0-4.191 1.73 5.9 5.9 0 0 0-1.731 4.192M178.751 801.667a6.125 6.125 0 0 0 3.771 5.652 6.12 6.12 0 0 0 8.016-7.971 6.12 6.12 0 0 0-5.632-3.803 6.14 6.14 0 0 0-4.348 1.784 6.11 6.11 0 0 0-1.807 4.338M178.582 825.886a6.324 6.324 0 1 0 6.357-6.29 6.33 6.33 0 0 0-6.357 6.29M178.378 850.105a6.52 6.52 0 0 0 4.028 6.029 6.53 6.53 0 0 0 7.111-1.414 6.522 6.522 0 0 0-.986-10.04 6.54 6.54 0 0 0-6.124-.605 6.54 6.54 0 0 0-3.533 3.532 6.5 6.5 0 0 0-.496 2.498M159.544 2.458a1.123 1.123 0 0 0 1.11 1.144 1.11 1.11 0 0 0 1.143-1.144 1.1 1.1 0 0 0-.325-.82 1.11 1.11 0 0 0-.819-.326 1.126 1.126 0 0 0-1.109 1.146M159.544 26.674q-.007.226.073.436a1.11 1.11 0 0 0 1.037.708 1.096 1.096 0 0 0 1.143-1.144 1.08 1.08 0 0 0-1.144-1.11 1.1 1.1 0 0 0-.788.322 1.094 1.094 0 0 0-.321.788M159.375 50.927a1.274 1.274 0 0 0 1.279 1.242 1.25 1.25 0 0 0 1.278-1.245 1.306 1.306 0 0 0-1.278-1.31 1.33 1.33 0 0 0-1.278 1.313M159.3
84308 75.112a1.373 1.373 0 0 0 1.87 1.252 1.35 1.35 0 0 0 .746-1.774 1.34 1.34 0 0 0-.746-.73 1.37 1.37 0 0 0-1.87 1.251M159.174 99.33a1.48 1.48 0 1 0 1.48-1.48 1.493 1.493 0 0 0-1.48 1.48M159.072 123.582a1.605 1.605 0 0 0 1.614 1.581 1.63 1.63 0 0 0 1.619-1.581 1.644 1.644 0 0 0-1.615-1.648 1.63 1.63 0 0 0-1.151.487 1.63 1.63 0 0 0-.463 1.161M158.938 147.767a1.748 1.748 0 0 0 2.07 1.754 1.749 1.749 0 0 0-.321-3.469 1.763 1.763 0 0 0-1.749 1.715M158.87 171.985a1.82 1.82 0 0 0 1.817 1.816 1.816 1.816 0 0 0 1.816-1.816 1.81 1.81 0 0 0-1.113-1.71 1.83 1.83 0 0 0-1.407 0 1.8 1.8 0 0 0-.984 1.004c-.09.224-.133.464-.129.706M158.736 196.204a1.96 1.96 0 0 0 1.205 1.804 1.96 1.96 0 0 0 2.128-.423 1.95 1.95 0 0 0 .423-2.128 1.955 1.955 0 0 0-1.804-1.205 1.953 1.953 0 0 0-1.952 1.952M158.602 220.425a2.06 2.06 0 0 0 1.281 1.932c.255.103.527.154.802.15a2.07 2.07 0 0 0 1.928-1.283c.105-.253.158-.525.157-.799a2.116 2.116 0 0 0-2.085-2.082 2.093 2.093 0 0 0-2.083 2.082M158.4 244.641a2.3 2.3 0 0 0 .656 1.607c.422.428.996.672 1.597.68a2.286 2.286 0 0 0 .892-4.416 2.3 2.3 0 0 0-.892-.158 2.28 2.28 0 0 0-2.253 2.287M158.265 268.859a2.407 2.407 0 1 0 2.391-2.388 2.371 2.371 0 0 0-2.388 2.388M158.198 293.078a2.473 2.473 0 0 0 2.455 2.489 2.492 2.492 0 0 0 2.337-1.527 2.5 2.5 0 0 0 0-1.924 2.492 2.492 0 0 0-2.337-1.527 2.47 2.47 0 0 0-2.455 2.489M158.063 317.33a2.6 2.6 0 0 0 .19 1.001 2.59 2.59 0 0 0 2.4 1.623 2.623 2.623 0 1 0 0-5.247 2.6 2.6 0 0 0-1.841.773c-.24.244-.43.533-.559.85a2.6 2.6 0 0 0-.19 1M157.828 341.515a2.83 2.83 0 0 0 1.744 2.61 2.823 2.823 0 0 0 3.852-2.059 2.823 2.823 0 0 0-4.764-2.544 2.84 2.84 0 0 0-.832 1.993M157.727 365.734a2.96 2.96 0 1 0 5.92-.001 2.96 2.96 0 0 0-5.92.001M157.592 389.986a3.096 3.096 0 1 0 5.954-1.186 3.09 3.09 0 0 0-2.859-1.91 3.1 3.1 0 0 0-2.191.904 3.1 3.1 0 0 0-.904 2.191M157.391 414.171a3.298 3.298 0 0 0 3.96 3.195 3.294 3.294 0 0 0 2.378-4.498 3.3 3.3 0 0 0-3.042-2.027 3.305 3.305 0 0 0-3.296 3.33M157.254 438.387a3.43 3.43 0 0 0 4.1 3.365 3.43 3.43 0 0 0 2.696-2.696 3.429 3.429 0 0 0-3.365-4.1 3.424 3.424 0 0 0-3.431 3.431M157.054 462.607a3.64 3.64 0 0 0 2.227 3.384 3.635 3.635 0 0 0 4.756-4.756 3.63 3.63 0 0 0-3.384-2.227 3.61 3.61 0 0 0-3.599 3.599M156.92 486.86a3.768 3.768 0 1 0 7.534-.1 3.768 3.768 0 0 0-7.534.1M156.718 511.045a3.94 3.94 0 0 0 1.157 2.794 3.94 3.94 0 0 0 2.795 1.158 3.95 3.95 0 0 0 3.652-2.44 3.96 3.96 0 0 0 0-3.025 3.96 3.96 0 0 0-2.139-2.139 3.96 3.96 0 0 0-4.308.857 3.95 3.95 0 0 0-1.157 2.795M156.515 535.264a4.15 4.15 0 0 0 4.981 4.054 4.15 4.15 0 0 0 3.25-3.277 4.15 4.15 0 0 0-1.783-4.257 4.15 4.15 0 0 0-2.311-.691 4.165 4.165 0 0 0-4.137 4.171M156.348 559.482a4.3 4.3 0 0 0 2.634 4.002 4.31 4.31 0 0 0 4.704-.912 4.303 4.303 0 1 0-6.063-6.11 4.3 4.3 0 0 0-1.275 3.02M156.18 583.736a4.51 4.51 0 0 0 5.407 4.382 4.5 4.5 0 0 0 3.523-3.549 4.51 4.51 0 0 0-1.922-4.617 4.5 4.5 0 0 0-2.501-.758 4.5 4.5 0 0 0-1.73.351 4.5 4.5 0 0 0-2.44 2.458 4.5 4.5 0 0 0-.337 1.733M156.045 607.919a4.62 4.62 0 0 0 2.863 4.26 4.627 4.627 0 0 0 6.298-3.371 4.62 4.62 0 0 0-1.957-4.745 4.63 4.63 0 0 0-2.563-.786 4.654 4.654 0 0 0-4.642 4.642M155.709 632.138a4.98 4.98 0 0 0 3.051 4.623 4.98 4.98 0 0 0 6.808-3.606 4.975 4.975 0 0 0-2.111-5.121 4.97 4.97 0 0 0-2.769-.841 4.964 4.964 0 0 0-4.979 4.945M155.507 656.39c0 .676.133 1.345.392 1.969a5.13 5.13 0 0 0 2.785 2.786 5.2 5.2 0 0 0 1.969.391 5.16 5.16 0 0 0 4.784-3.179 5.16 5.16 0 0 0-1.116-5.635 5.163 5.163 0 0 0-8.814 3.668M155.372 680.575a5.317 5.317 0 0 0 5.315 5.256 5.315 5.315 0 1 0-5.315-5.256M155.171 704.794a5.5 5.5 0 0 0 3.41 5.07 5.498 5.498 0 0 0 7.487-4.031 5.5 5.5 0 0 0-.323-3.177 5.5 5.5 0 0 0-2.033-2.462 5.51 5.51 0 0 0-6.945.703 5.48 5.48 0 0 0-1.596 3.897M154.935 729.011a5.73 5.73 0 0 0 .948 3.186 5.73 5.73 0 0 0 2.56 2.12 5.73 5.73 0 0 0 6.243-1.22 5.72 5.72 0 1 0-9.751-4.086M154.767 753.264a5.91 5.91 0 0 0 3.652 5.439 5.904 5.904 0 1 0 2.269-11.36 5.93 5.93 0 0 0-5.921 5.921M154.565 777.449a6.1 6.1 0 0 0 3.776 5.626 6.107 6.107 0 0 0 7.972-7.972 6.1 6.1 0 0 0-5.627-3.776 6.12 6.12 0 0 0-6.121 6.122M154.364 801.668a6.33 6.33 0 0 0 3.889 5.869 6.326 6.326 0 0 0 8.638-4.611 6.33 6.33 0 0 0-2.711-6.497 6.33 6.33 0 0 0-3.525-1.052 6.28 6.28 0 0 0-6.291 6.291M154.161 825.886a6.525 6.525 0 1 0 13.05.067 6.525 6.525 0 0 0-13.05-.067M153.825 850.104a6.85 6.85 0 0 0 4.242 6.315 6.84 6.84 0 0 0 7.457-1.503 6.84
8436.84 0 0 0 1.464-7.465 6.85 6.85 0 0 0-8.957-3.683 6.85 6.85 0 0 0-3.695 3.714 6.9 6.9 0 0 0-.511 2.622M135.19 2.456a1.303 1.303 0 0 0 1.278 1.278 1.28 1.28 0 0 0 0-2.557 1.3 1.3 0 0 0-1.278 1.28M135.19 26.674a1.303 1.303 0 0 0 1.278 1.278 1.275 1.275 0 0 0 1.179-1.761 1.25 1.25 0 0 0-1.179-.761 1.27 1.27 0 0 0-1.278 1.244M135.122 50.926a1.344 1.344 0 0 0 1.346 1.346 1.347 1.347 0 0 0 1.346-1.346 1.347 1.347 0 0 0-2.692 0M134.988 75.112a1.48 1.48 0 0 0 .914 1.367 1.48 1.48 0 1 0 .569-2.848 1.49 1.49 0 0 0-1.481 1.48M134.854 99.33a1.614 1.614 0 0 0 1.614 1.614 1.64 1.64 0 0 0 1.615-1.615 1.638 1.638 0 0 0-1.614-1.618 1.617 1.617 0 0 0-1.615 1.615M134.718 123.582a1.75 1.75 0 0 0 1.751 1.718 1.78 1.78 0 0 0 1.218-.508 1.78 1.78 0 0 0 .531-1.208 1.786 1.786 0 0 0-1.749-1.783 1.78 1.78 0 0 0-1.245.528 1.763 1.763 0 0 0-.506 1.253M134.652 147.767a1.84 1.84 0 0 0 1.816 1.85 1.82 1.82 0 0 0 1.277-.554 1.8 1.8 0 0 0 .506-1.296 1.78 1.78 0 0 0-.519-1.264 1.77 1.77 0 0 0-1.264-.519 1.8 1.8 0 0 0-1.816 1.783M134.517 171.983a1.94 1.94 0 0 0 1.225 1.75 1.934 1.934 0 1 0 .727-3.734 1.95 1.95 0 0 0-1.952 1.984M134.383 196.204a2.072 2.072 0 0 0 2.476 2.011 2.065 2.065 0 0 0 1.621-1.62 2.07 2.07 0 0 0-2.811-2.321 2.08 2.08 0 0 0-1.13 1.13 2.1 2.1 0 0 0-.156.8M134.182 220.423a2.263 2.263 0 0 0 2.254 2.287 2.32 2.32 0 0 0 2.323-2.287 2.311 2.311 0 0 0-2.321-2.254 2.255 2.255 0 0 0-2.254 2.254M134.011 244.641a2.43 2.43 0 0 0 2.422 2.422 2.42 2.42 0 0 0 2.237-1.495 2.42 2.42 0 0 0-2.237-3.349 2.4 2.4 0 0 0-1.716.706 2.4 2.4 0 0 0-.525.787c-.121.295-.182.61-.181.929M133.945 268.86a2.493 2.493 0 0 0 4.238 1.806 2.488 2.488 0 0 0-.361-3.84 2.5 2.5 0 0 0-1.387-.422 2.464 2.464 0 0 0-2.299 1.508 2.5 2.5 0 0 0-.191.948M133.845 293.078a2.63 2.63 0 0 0 1.62 2.424 2.624 2.624 0 1 0-.851-4.278 2.63 2.63 0 0 0-.769 1.854M133.644 317.33a2.819 2.819 0 0 0 3.376 2.771 2.827 2.827 0 0 0-.551-5.597 2.845 2.845 0 0 0-2.825 2.826M133.509 341.515a2.957 2.957 0 0 0 5.053 2.093 2.96 2.96 0 0 0 .641-3.226 2.955 2.955 0 0 0-2.734-1.827 2.963 2.963 0 0 0-2.96 2.96M133.373 365.734a3.095 3.095 0 1 0 1.909-2.861 3.1 3.1 0 0 0-1.675 1.675 3.1 3.1 0 0 0-.234 1.186M133.172 389.986a3.278 3.278 0 0 0 3.945 3.162 3.28 3.28 0 0 0-.648-6.492 3.3 3.3 0 0 0-2.342.979 3.3 3.3 0 0 0-.955 2.351M133.038 414.171a3.412 3.412 0 0 0 4.104 3.293 3.413 3.413 0 0 0 1.214-6.177 3.4 3.4 0 0 0-1.887-.581 3.427 3.427 0 0 0-3.431 3.465M132.836 438.389a3.61 3.61 0 0 0 2.224 3.354 3.615 3.615 0 1 0 1.375-6.953 3.587 3.587 0 0 0-3.331 2.219c-.18.437-.271.907-.268 1.38M132.701 462.608a3.77 3.77 0 0 0 4.494 3.731 3.77 3.77 0 0 0 2.97-2.97 3.76 3.76 0 0 0-1.623-3.873 3.77 3.77 0 0 0-2.106-.622 3.753 3.753 0 0 0-3.735 3.734M132.499 486.86a3.968 3.968 0 1 0 7.936 0 3.968 3.968 0 0 0-7.936 0M132.298 511.045a4.165 4.165 0 0 0 2.575 3.853 4.17 4.17 0 0 0 4.545-.904 4.17 4.17 0 0 0-2.949-7.12 4.19 4.19 0 0 0-4.171 4.171M132.162 535.262a4.31 4.3
8431 0 0 0 2.658 3.978 4.31 4.31 0 0 0 4.693-.933 4.3 4.3 0 0 0 .933-4.692 4.304 4.304 0 0 0-3.978-2.658 4.335 4.335 0 0 0-4.306 4.305M131.961 559.482a4.5 4.5 0 0 0 .76 2.504 4.5 4.5 0 0 0 4.627 1.918 4.508 4.508 0 1 0-5.387-4.422M131.827 583.734a4.622 4.622 0 0 0 5.551 4.481 4.63 4.63 0 0 0 3.611-3.637 4.62 4.62 0 0 0-1.961-4.735 4.63 4.63 0 0 0-2.559-.785 4.66 4.66 0 0 0-3.294 1.372 4.65 4.65 0 0 0-1.348 3.304M131.49 607.919a4.96 4.96 0 0 0 3.056 4.597 4.965 4.965 0 0 0 6.773-3.617 4.965 4.965 0 0 0-2.121-5.096 4.95 4.95 0 0 0-2.762-.829 4.94 4.94 0 0 0-4.946 4.945M131.288 632.138a5.15 5.15 0 0 0 3.17 4.783 5.2 5.2 0 0 0 1.976.397 5.163 5.163 0 1 0 0-10.327 5.131 5.131 0 0 0-4.76 3.174 5.1 5.1 0 0 0-.386 1.973M131.12 656.389a5.313 5.313 0 0 0 6.351 5.214 5.315 5.315 0 0 0-1.036-10.528 5.3 5.3 0 0 0-3.763 1.551 5.3 5.3 0 0 0-1.552 3.763M130.952 680.575a5.515 5.515 0 0 0 6.593 5.41 5.518 5.518 0 0 0 1.989-9.997 5.5 5.5 0 0 0-3.065-.93 5.493 5.493 0 0 0-5.517 5.517M130.75 704.793a5.72 5.72 0 0 0 6.834 5.609 5.717 5.717 0 0 0-1.115-11.327 5.7 5.7 0 0 0-4.045 1.673 5.73 5.73 0 0 0-1.674 4.045M130.549 729.015a5.92 5.92 0 0 0 3.656 5.471 5.92 5.92 0 1 0 2.26-11.392 5.9 5.9 0 0 0-5.474 3.653 5.9 5.9 0 0 0-.447 2.268M130.346 753.263a6.107 6.107 0 0 0 12.092 1.179 6.107 6.107 0 0 0-5.97-7.3 6.12 6.12 0 0 0-6.122 6.121M130.145 777.449a6.303 6.303 0 0 0 7.532 6.204 6.3 6.3 0 0 0 4.961-4.959 6.3 6.3 0 0 0-2.691-6.478 6.3 6.3 0 0 0-3.509-1.057 6.28 6.28 0 0 0-6.291 6.29M129.943 801.668a6.5 6.5 0 0 0 4.01 6.023 6.503 6.503 0 0 0 8.879-4.743 6.504 6.504 0 0 0-6.397-7.772 6.505 6.505 0 0 0-6.492 6.492M129.607 825.886a6.86 6.86 0 0 0 8.18 6.768 6.86 6.86 0 0 0 5.41-5.383 6.87 6.87 0 0 0-2.912-7.055 6.86 6.86 0 0 0-8.654.842 6.86 6.86 0 0 0-2.024 4.828M129.472 850.104a6.99 6.99 0 0 0 4.319 6.464 6.995 6.995 0 0 0 9.54-5.099 7 7 0 0 0-2.975-7.182 7 7 0 0 0-3.887-1.179 7.004 7.004 0 0 0-6.997 6.996M110.905 2.455a1.345 1.345 0 1 0 2.69.004 1.345 1.345 0 0 0-2.69-.004M110.905 26.674a1.34 1.34 0 0 0 .823 1.27 1.347 1.347 0 1 0-.823-1.27M110.769 50.93a1.48 1.48 0 0 0 1.48 1.45 1.482 1.482 0 0 0 1.376-2.026 1.48 1.48 0 0 0-.802-.82 1.483 1.483 0 0 0-2.054 1.396M110.636 75.111a1.613 1.613 0 0 0 1.614 1.614 1.635 1.635 0 0 0 1.615-1.614 1.636 1.636 0 0 0-1.615-1.614 1.615 1.615 0 0 0-1.614 1.614M110.501 99.33a1.732 1.732 0 0 0 1.071 1.648c.214.09.445.136.678.135a1.79 1.79 0 0 0 1.749-1.783 1.756 1.756 0 0 0-1.749-1.75 1.72 1.72 0 0 0-1.749 1.75M110.434 123.582a1.797 1.797 0 0 0 1.799 1.765 1.8 1.8 0 0 0 1.8-1.765 1.8 1.8 0 0 0-.506-1.312 1.81 1.81 0 0 0-1.996-.405 1.8 1.8 0 0 0-1.097 1.717M110.266 147.767a1.97 1.97 0 0 0 .576 1.409 1.965 1.965 0 0 0 2.156.42 1.93 1.93 0 0 0 1.169-1.829 1.9 1.9 0 0 0-.561-1.356 1.9 1.9 0 0 0-1.355-.561 1.95 1.95 0 0 0-1.985 1.917M110.131 171.985a2.097 2.097 0 0 0 2.086 2.086 2.085 2.085 0 1 0-2.086-2.089M109.962 196.204a2.29 2.29 0 0 0 2.288 2.233 2.29 2.29 0 0 0 2.287-2.233 2.288 2.288 0 0 0-4.575 0M109.828 220.423a2.42 2.42 0 0 0 2.873 2.413 2.43 2.43 0 0 0 1.921-1.895 2.42 2.42 0 0 0-2.372-2.906 2.41 2.41 0 0 0-2.422 2.388M109.761 244.641a2.47 2.47 0 0 0 .727 1.761 2.48 2.48 0 0 0 1.762.728 2.493 2.493 0 0 0 2.449-2.489 2.49 2.49 0 0 0-2.449-2.49 2.492 2.492 0 0 0-2.301 1.536 2.5 2.5 0 0 0-.188.953M109.626 268.862a2.623 2.623 0 1 0 5.245.001 2.623 2.623 0 0 0-5.245-.001M109.424 293.078a2.825 2.825 0 0 0 4.824 1.998 2.825 2.825 0 1 0-3.996-3.996 2.83 2.83 0 0 0-.828 1.998M109.292 317.334a2.961 2.961 0 0 0 5.053 2.093 2.96 2.96 0 0 0-2.093-5.053 2.93 2.93 0 0 0-2.098.862 2.93 2.93 0 0 0-.862 2.098M109.155 341.516a3.095 3.095 0 1 0 1.909-2.862 3.08 3.08 0 0 0-1.676 1.676 3.1 3.1 0 0 0-.233 1.186M108.954 365.734a3.279 3.279 0 1 0 6.558.002 3.279 3.279 0 0 0-6.558-.002M108.786 389.986a3.41 3.41 0 0 0 .988 2.457 3.444 3.444 0 0 0 3.766.756 3.44 3.44 0 0 0 1.86-1.885c.169-.422.253-.873.247-1.328a3.44 3.44 0 0 0-.988-2.457 3.44 3.44 0 0 0-2.443-1.021c-.454 0-.904.09-1.324.265a3.45 3.45 0 0 0-1.859 1.886c-.17.421-.254.873-.247 1.327M108.617 414.171a3.632 3.632 0 1 0 3.633-3.637 3.62 3.62 0 0 0-3.363 2.24 3.6 3.6 0 0 0-.27 1.393M108.483 438.389a3.764 3.764 0 0 0 4.481 3.733 3.77 3.77 0 0 0 2.979-2.952 3.77 3.77 0 0 0-3.693-4.515 3.776 3.776 0 0 0-3.767 3.734M108.28 462.607a3.953 3.953 0 1 0 7.905.033 3.953 3.953 0 0 0-7.905-.033M108.079 486.86a4.168 4.168 0 0 0 7.12 2.95 4.2 4.2 0 0 0 1.142-2.136 4.18 4.18 0 0 0-1.774-4.282 4.173 4.173
8430 0 0-6.173 1.871 4.2 4.2 0 0 0-.315 1.597M107.943 511.045a4.308 4.308 0 0 0 5.146 4.223 4.304 4.304 0 0 0 1.552-7.803 4.3 4.3 0 0 0-2.392-.726 4.314 4.314 0 0 0-4.306 4.306M107.742 535.264a4.51 4.51 0 0 0 5.387 4.421 4.51 4.51 0 0 0 3.541-3.542 4.507 4.507 0 1 0-8.928-.879M107.608 559.482c0 1.227.487 2.403 1.354 3.271a4.63 4.63 0 0 0 6.541 0 4.625 4.625 0 1 0-7.895-3.271M107.272 583.734a4.97 4.97 0 0 0 3.099 4.573 4.973 4.973 0 0 0 6.765-3.654 4.97 4.97 0 0 0-2.126-5.099 4.98 4.98 0 0 0-4.675-.452 4.97 4.97 0 0 0-3.066 4.627M107.07 607.919a5.179 5.179 0 1 0 9.966-1.982 5.18 5.18 0 0 0-4.786-3.198 5.16 5.16 0 0 0-3.671 1.51 5.14 5.14 0 0 0-1.509 3.67M106.935 632.138a5.31 5.31 0 0 0 3.257 4.948 5.32 5.32 0 0 0 4.082 0 5.3 5.3 0 0 0 3.257-4.948 5.298 5.298 0 0 0-10.596 0M106.733 656.39a5.5 5.5 0 1 0 11-.036 5.5 5.5 0 0 0-11 .036M106.531 680.574c0 1.131.335 2.237.964 3.177a5.714 5.714 0 0 0 8.798.867 5.723 5.723 0 0 0-.867-8.798 5.72 5.72 0 0 0-8.461 2.565 5.7 5.7 0 0 0-.434 2.189M106.33 704.793a5.92 5.92 0 1 0 5.921-5.922 5.92 5.92 0 0 0-4.191 1.731 5.902 5.902 0 0 0-1.73 4.191M106.128 729.013a6.1 6.1 0 0 0 3.776 5.626 6.107 6.107 0 0 0 7.972-7.972 6.104 6.104 0 0 0-9.961-1.989 6.1 6.1 0 0 0-1.787 4.335M105.926 753.263a6.3 6.3 0 0 0 1.072 3.502 6.306 6.306 0 1 0 5.219-9.825 6.284 6.284 0 0 0-6.291 6.323M105.724 777.451a6.53 6.53 0 0 0 4.007 6.051 6.526 6.526 0 1 0-4.007-6.051M105.388 801.668a6.85 6.85 0 0 0 1.144 3.806 6.85 6.85 0 0 0 7.021 2.928 6.848 6.848 0 0 0 5.011-9.322 6.845 6.845 0 0 0-6.314-4.241 6.893 6.893 0 0 0-6.862 6.829M105.253 825.885a6.985 6.985 0 0 0 4.293 6.459 6.98 6.98 0 0 0 7.61-1.495 6.98 6.98 0 0 0-4.906-11.926 6.993 6.993 0 0 0-6.997 6.962M104.984 850.104a7.27 7.27 0 0 0 4.485 6.713 7.26 7.26 0 0 0 7.918-1.575 7.267 7.267 0 0 0-5.137-12.403 7.276 7.276 0 0 0-7.266 7.265M86.518 2.453a1.481 1.481 0 1 0 2.96 0 1.48 1.48 0 1 0-2.96 0M86.518 26.674a1.481 1.481 0 1 0 2.96 0 1.48 1.48 0 1 0-2.96 0M86.383 50.928a1.61 1.61 0 0 0 1.613 1.58 1.64 1.64 0 0 0 1.65-1.58 1.65 1.65 0 0 0-1.65-1.65 1.62 1.62 0 0 0-1.613 1.65M86.248 75.111a1.756 1.756 0 0 0 2.998 1.237c.333-.326.525-.77.535-1.237a1.79 1.79 0 0 0-1.783-1.749 1.757 1.757 0 0 0-1.75 1.75M86.215 99.33a1.81 1.81 0 0 0 1.114 1.709 1.83 1.83 0 0 0 1.406 0 1.806 1.806 0 0 0 1.113-1.71 1.816 1.816 0 1 0-3.633 0M86.08 123.582a1.953 1.953 0 1 0 3.906-.065 1.953 1.953 0 0 0-3.905.065M85.946 147.767a2.053 2.053 0 0 0 2.082 2.082 2.07 2.07 0 0 0 1.477-.606 2.08 2.08 0 0 0 .609-1.476 2.12 2.12 0 0 0-2.086-2.086 2.1 2.1 0 0 0-2.082 2.086M85.744 171.985a2.283 2.283 0 0 0 2.254 2.287 2.317 2.317 0 0 0 2.32-2.287 2.32 2.32 0 0 0-2.32-2.287 2.284 2.284 0 0 0-2.254 2.287M85.61 196.204a2.407 2.407 0 0 0 2.388 2.421 2.44 2.44 0 0 0 2.455-2.421 2.41 2.41 0 0 0-1.524-2.22 2.4 2.4 0 0 0-.931-.169 2.4 2.4 0 0 0-1.693.696 2.37 2.37 0 0 0-.695 1.693M85.543 220.423a2.48 2.48 0 0 0 1.518 2.298 2.473 2.473 0 1 0 .937-4.754 2.45 2.45 0 0 0-2.27 1.514 2.5 2.5 0 0 0-.185.942M85.408 244.641A2.607 2.607 0 1 0 87 242.22a2.6 2.6 0 0 0-1.592 2.421M85.206 268.859a2.81 2.81 0 1 0 5.618-.033 2.81 2.81 0 0 0-5.618.033M85.038 293.078a2.961 2.961 0 1 0 2.96-2.96 2.964 2.964 0 0 0-2.96 2.96M84.904 317.332a3.11 3.11 0 0 0 5.311 2.217 3.11 3.11 0 0 0-2.217-5.312 3.11 3.11 0 0 0-3.095 3.095M84.735 341.516a3.298 3.298 0 0 0 3.96 3.195 3.3 3.3 0 0 0 2.379-4.498 3.295 3.295 0 0 0-6.339 1.303M84.6 365.734a3.43 3.43 0 0 0 4.101 3.365 3.43 3.43 0 0 0 2.696-2.696 3.43 3.43 0 0 0-4.68-3.841 3.42 3.42 0 0 0-2.116 3.172M84.399 389.986a3.604 3.604 0 0 0 3.599 3.599 3.63 3.63 0 0 0 2.601-1.034 3.63 3.63 0 0 0 1.084-2.582 3.62 3.62 0 0 0-2.28-3.36 3.6 3.6 0 0 0-1.405-.256 3.59 3.59 0 0 0-3.338 2.244 3.6 3.6 0 0 0-.261 1.389M84.265 414.171a3.766 3.766 0 0 0 6.443 2.651 3.76 3.76 0 0 0 .795-4.117 3.77 3.77 0 0 0-3.505-2.302 3.76 3.76 0 0 0-2.648 1.109 3.75 3.75 0 0 0-1.085 2.659M84.062 438.389a3.95 3.95 0 0 0 2.433 3.665 3.955 3.955 0 0 0 4.315-.854 3.951 3.951 0 1 0-5.59-5.586 3.96 3.96 0 0 0-1.16 2.775M83.86 462.608a4.152 4.152 0 0 0 4.981 4.054 4.153 4.153 0 0 0 1.467-7.534 4.15 4.15 0 0 0-2.31-.691 4.16 4.16 0 0 0-4.138 4.171M83.726 486.86a4.29 4.29 0 0 0 2.662 3.952 4.29 4.29 0 0 0 3.996-7.543 4.3 4.3 0 0 0-2.385-.714 4.26 4.26 0 0 0-3.03 1.264 4.29 4.29 0 0 0-1.241 3.041M83.49 511.045a4.526 4.526 0 0 0 5.403 4.455 4.53 4.53 0 0 0 3.56-3.56 4.527 4.527 0 0 0-4.455-5.403 4.53 4.53 0 0 0-4.508 4.508M83.39 535.264a4.644 4.644 0 0 0 5.548 4.553 4.65 4.65 0 0 0 3.647-3.648 4.643 4.643 0 0 0-4.553-5.547 4.65 4.65 0 0 0-4.642 4.642M83.054 559.482a4.978 4.978 0 1 0 4.978-4.945 4.97 4.97 0 0 0-4.978 4.945M82.851 583.734a5.18 5.18 0 0 0 3.229 4.766 5.183 5.183 0 0 0 7.038-3.821 5.18 5.18 0 0 0-5.12-6.158 5.17 5.17 0 0 0-5.147 5.213M82.717 607.919a5.295 5.295 0 0 0 3.286 4.884 5.295 5.295 0 0 0 5.77-1.166 5.298 5.298 0 1 0-9.056-3.718M82.515 632.138a5.5 5.5 0 1 0 5.483-5.483 5.493 5.493 0 0 0-5.483 5.483M82.313 656.39a5.7 5.7 0 0 0 9.733 4.031 5.7 5.7 0 0 0-4.032-9.732 5.7 5.7 0 0 0-5.701 5.701M82.112 680.575a5.904 5.904 0 1 0 11.807-.038 5.904 5.904 0 0 0-11.807.038M81.91 704.793a6.122 6.122 0 1 0 12.244 0 6.122 6.122 0 0 0-12.245 0M81.707 729.012a6.325 6.325 0 0 0 7.55 6.236 6.32 6.32 0 0 0 4.978-4.98 6.324 6.324 0 0 0-6.24-7.546 6.31 6.31 0 0 0-6.29 6.29M81.506 753.263a6.526 6.526 0 1 0 6.492-6.525 6.52 6.52 0 0 0-6.492 6.525M81.17 777.449a6.844 6.844 0 0 0 11.697 4.812 6.846 6.846 0 0 0-4.869-11.674 6.86 6.86 0 0 0-6.828 6.862M81.035 801.668a6.98 6.98 0 0 0 4.3 6.461 6.98 6.98 0 0 0 9.526-5.087 6.98 6.98 0 1 0-13.826-1.374M80.766 825.886a7.25 7.25 0 0 0 4.467 6.711 7.26 7.26 0 0 0 7.907-1.569 7.24 7.24 0 0 0 1.568-7.907 7.25 7.25 0 0 0-6.71-4.467 7.27 7.27 0 0 0-7.232 7.232M80.564 850.104a7.45 7.45 0 0 0 4.607 6.87 7.449 7.449 0 0 0 9.73-9.73 7.45 7.45 0 0 0-6.87-4.607 7.494 7.494 0 0 0-7.467 7.467M62.198 2.455a1.615 1.615 0 0 0 1.614 1.615 1.637 1.637 0 0 0 1.615-1.615A1.637 1.637 0 0 0 63.813.841a1.615 1.615 0 0 0-1.614 1.614M62.198 26.674a1.623 1.623 0 0 0 1.614 1.649 1.63
8431.63 0 1 0 0-3.263 1.615 1.615 0 0 0-1.614 1.614M62.064 50.926a1.75 1.75 0 1 0 3.499-.096 1.75 1.75 0 0 0-3.5.096M61.997 75.111a1.81 1.81 0 0 0 3.09 1.283 1.78 1.78 0 0 0 .51-1.283 1.78 1.78 0 0 0-1.784-1.816 1.81 1.81 0 0 0-1.816 1.816M61.862 99.33a1.96 1.96 0 0 0 1.199 1.83 1.95 1.95 0 0 0 2.145-.422 1.968 1.968 0 0 0-1.392-3.36 1.95 1.95 0 0 0-1.952 1.953M61.728 123.582a2.097 2.097 0 0 0 2.085 2.083 2.12 2.12 0 0 0 2.082-2.083 2.077 2.077 0 0 0-2.082-2.082 2.06 2.06 0 0 0-1.483.6 2.06 2.06 0 0 0-.602 1.482M61.523 147.767a2.29 2.29 0 0 0 1.396 2.141 2.285 2.285 0 0 0 3.137-1.669 2.288 2.288 0 0 0-2.28-2.726 2.26 2.26 0 0 0-2.253 2.254M61.391 171.985a2.408 2.408 0 1 0 2.388-2.422 2.427 2.427 0 0 0-2.388 2.422M61.323 196.204a2.45 2.45 0 0 0 1.508 2.299 2.471 2.471 0 1 0 .948-4.755 2.45 2.45 0 0 0-2.271 1.514 2.5 2.5 0 0 0-.185.942M61.156 220.423a2.623 2.623 0 1 0 5.245 0 2.623 2.623 0 0 0-5.245 0M60.988 244.641a2.826 2.826 0 1 0 5.653 0 2.826 2.826 0 0 0-5.653 0M60.853 268.859a2.959 2.959 0 0 0 5.863.573 2.96 2.96 0 0 0-1.259-3.037 2.96 2.96 0 0 0-1.644-.499 2.99 2.99 0 0 0-2.96 2.96M60.718 293.078a3.096 3.096 0 0 0 5.284 2.188 3.097 3.097 0 0 0-.471-4.762 3.1 3.1 0 0 0-1.72-.52 3.07 3.07 0 0 0-2.19.903 3.1 3.1 0 0 0-.905 2.191M60.517 317.329a3.279 3.279 0 1 0 6.557 0 3.279 3.279 0 0 0-6.557 0M60.383 341.515a3.432 3.432 0 0 0 6.798.625 3.43 3.43 0 0 0-3.365-4.089 3.45 3.45 0 0 0-2.434 1.021 3.44 3.44 0 0 0-.997 2.443M60.18 365.735a3.58 3.58 0 0 0 3.6 3.599 3.6 3.6 0 0 0 3.324-2.222 3.597 3.597 0 0 0-2.623-4.907 3.6 3.6 0 0 0-4.3 3.53M60.046 389.986a3.767 3.767 0 1 0 7.533-.098 3.767 3.767 0 0 0-7.533.098M59.844 414.171a3.95 3.95 0 0 0 2.455 3.641 3.956 3.956 0 0 0 5.142-5.187 3.95 3.95 0 0 0-3.662-2.424 3.967 3.967 0 0 0-3.935 3.97M59.642 438.39a4.17 4.17 0 1 0 4.17-4.171 4.19 4.19 0 0 0-4.17 4.171M59.507 462.608a4.304 4.304 0 0 0 7.35 3.045 4.31 4.31 0 0 0 .934-4.693 4.31 4.31 0 0 0-3.978-2.658 4.314 4.314 0 0 0-4.306 4.306M59.306 486.86a4.505 4.505 0 0 0 2.782 4.164 4.5 4.5 0 0 0 4.912-.977 4.5 4.5 0 0 0 .977-4.912 4.509 4.509 0 0 0-4.164-2.782 4.55 4.55 0 0 0-4.507 4.507M59.17 511.045a4.623 4.623 0 0 0 5.532 4.519 4.624 4.624 0 0 0-.89-9.161 4.654 4.654 0 0 0-4.641 4.642M58.835 535.264a4.978 4.978 0 1 0 4.978-4.946 4.95 4.95 0 0 0-3.52 1.435 4.94 4.94 0 0 0-1.458 3.511M58.633 559.482a5.16 5.16 0 0 0 3.17 4.783 5.2 5.2 0 0 0 1.977.397 5.164 5.164 0 0 0 3.65-8.814 5.16 5.16 0 0 0-3.65-1.512 5.12 5.12 0 0 0-3.645 1.501 5.12 5.12 0 0 0-1.502 3.645M58.498 583.734a5.296 5.296 0 0 0 5.298 5.239 5.297 5.297 0 1 0-5.298-5.239M58.297 607.919a5.502 5.502 0 0 0 6.589 5.374 5.498 5.498 0 0 0-1.106-10.89 5.49 5.49 0 0 0-5.483 5.516M58.095 632.138a5.72 5.72 0 0 0 6.834 5.608 5.71 5.71 0 0 0 4.493-4.493 5.719 5.719 0 1 0-11.327-1.115M57.893 656.389a5.923 5.923 0 0 0 7.076 5.808 5.93 5.93 0 0 0 4.653-4.652 5.92 5.92 0 0 0-2.518-6.079 5.9 5.9 0 0 0-3.29-.998 5.9 5.9 0 0 0-4.193 1.728 5.9 5.9 0 0 0-1.728 4.193M57.69 680.575a6.103 6.103 0 0 0 7.3 5.969 6.102 6.102 0 0 0 4.449-8.315 6.1 6.1 0 0 0-5.626-3.776 6.1 6.1 0 0 0-4.335 1.787 6.1 6.1 0 0 0-1.787 4.335M57.49 704.793a6.308 6.308 0 1 0 6.29-6.29 6.278 6.278 0 0 0-6.29 6.29M57.285 729.012a6.526 6.526 0 1 0 13.052.067 6.526 6.526 0 0 0-13.052-.067M56.951 753.263a6.848 6.848 0 0 0 8.197 6.695 6.846 6.846 0 0 0-1.369-13.556 6.818 6.818 0 0 0-6.317 4.239 6.8 6.8 0 0 0-.51 2.622M56.816 777.449a6.979 6.979 0 1 0 6.963-6.997 7.007 7.007 0 0 0-6.963 6.997M56.548 801.667a7.265 7.265 0 1 0 7.265-7.265 7.276 7.276 0 0 0-7.265 7.265M56.346 825.886a7.451 7.451 0 1 0 7.467-7.467 7.47 7.47 0 0 0-7.467 7.467M56.144 850.104a7.653 7.653 0 0 0 15.156 1.48 7.65 7.65 0 0 0-14.573-4.415 7.7 7.7 0 0 0-.583 2.935M37.846 2.455a1.756 1.756 0 0 0 1.749 1.751 1.78 1.78 0 0 0 1.75-1.75 1.78 1.78 0 0 0-1.75-1.75 1.757 1.757 0 0 0-1.75 1.75M37.846 26.674a1.764 1.764 0 0 0 1.749 1.783 1.79 1.79 0 0 0 1.75-1.783 1.78 1.78 0 0 0-1.75-1.749 1.757 1.757 0 0 0-1.75 1.75M37.778 50.925a1.8 1.8 0 0 0 3.599 0 1.802 1.802 0 0 0-2.502-1.717 1.8 1.8 0 0 0-1.097 1.717M37.643 75.111a1.935 1.935 0 1 0 3.869 0 1.932 1.932 0 0 0-2.683-1.82
8431.93 1.93 0 0 0-1.186 1.82M37.51 99.333a2.068 2.068 0 1 0 1.286-1.927 2.07 2.07 0 0 0-1.287 1.927M37.274 123.582a2.286 2.286 0 0 0 3.904 1.617 2.287 2.287 0 0 0-1.616-3.905 2.295 2.295 0 0 0-2.114 1.412 2.3 2.3 0 0 0-.174.876M37.172 147.767a2.39 2.39 0 0 0 1.49 2.246c.296.12.613.18.932.176a2.406 2.406 0 0 0 2.346-2.881 2.406 2.406 0 0 0-3.275-1.754 2.41 2.41 0 0 0-1.493 2.213M37.105 171.985a2.49 2.49 0 0 0 1.536 2.299 2.49 2.49 0 0 0 2.712-.538 2.487 2.487 0 0 0-.374-3.829 2.49 2.49 0 0 0-3.874 2.068M36.971 196.204a2.624 2.624 0 1 0 5.249-.001 2.624 2.624 0 0 0-5.249.001M36.769 220.423a2.826 2.826 0 1 0 5.653 0 2.826 2.826 0 0 0-5.653 0M36.635 244.641a2.96 2.96 0 0 0 1.827 2.735 2.962 2.962 0 0 0 3.867-3.868 2.96 2.96 0 0 0-2.734-1.827 2.947 2.947 0 0 0-2.96 2.96M36.5 268.86a3.095 3.095 0 1 0 3.094-3.096 3.09 3.09 0 0 0-2.861 1.91 3.1 3.1 0 0 0-.234 1.186M36.298 293.078a3.282 3.282 0 0 0 3.924 3.199 3.28 3.28 0 0 0 2.571-2.572 3.28 3.28 0 1 0-6.495-.627M36.164 317.327a3.416 3.416 0 0 0 4.084 3.331 3.41 3.41 0 0 0 2.678-2.678 3.41 3.41 0 0 0-1.44-3.501 3.407 3.407 0 0 0-5.063 1.534c-.172.417-.26.863-.26 1.314M35.928 341.515a3.632 3.632 0 1 0 7.264 0 3.632 3.632 0 0 0-7.264 0M35.794 365.734A3.769 3.769 0 1 0 39.562 362a3.757 3.757 0 0 0-3.768 3.734M35.625 389.986a3.967 3.967 0 0 0 4.743 3.893 3.969 3.969 0 1 0-4.743-3.893M35.423 414.171a4.171 4.171 0 1 0 8.34 0 4.171 4.171 0 0 0-8.34 0M35.289 438.39a4.307 4.307 0 1 0 4.306-4.306 4.336 4.336 0 0 0-4.306 4.306M35.087 462.608a4.507 4.507 0 1 0 4.508-4.507 4.47 4.47 0 0 0-3.194 1.313 4.5 4.5 0 0 0-1.314 3.194M34.953 486.86a4.628 4.628 0 0 0 5.552 4.481 4.628 4.628 0 0 0 3.345-6.302 4.62 4.62 0 0 0-4.257-2.855 4.677 4.677 0 0 0-4.642 4.676M34.616 511.048a4.96 4.96 0 0 0 5.946 4.846 4.965 4.965 0 0 0 3.885-3.911 4.963 4.963 0 0 0-4.885-5.914 4.93 4.93 0 0 0-4.946 4.979M34.414 535.263a5.18 5.18 0 1 0 10.358.068 5.18 5.18 0 0 0-10.358-.068M34.28 559.482a5.313 5.313 0 0 0 6.33 5.251 5.32 5.32 0 0 0 4.195-4.168 5.313 5.313 0 0 0-5.21-6.364 5.304 5.304 0 0 0-5.315 5.281M34.078 583.734a5.514 5.514 0 0 0 6.613 5.373 5.517 5.517 0 0 0-1.096-10.923 5.47 5.47 0 0 0-3.923 1.618 5.48 5.48 0 0 0-1.594 3.932M33.876 607.919a5.716 5.716 0 0 0 6.835 5.606 5.72 5.72 0 0 0 4.492-4.493 5.72 5.72 0 1 0-11.327-1.115M33.675 632.138a5.92 5.92 0 0 0 3.655 5.47 5.918 5.918 0 0 0 7.737-7.736 5.925 5.925 0 0 0-10.946-.002 5.9 5.9 0 0 0-.446 2.268M33.472 656.39a6.11 6.11 0 0 0 3.8 5.603 6.104 6.104 0 0 0 5.704-10.725 6.1 6.1 0 0 0-3.382-1.034 6.12 6.12 0 0 0-4.34 1.805 6.13 6.13 0 0 0-1.782 4.351M33.27 680.575a6.308 6.308 0 1 0 6.29-6.291 6.278 6.278 0 0 0-6.29 6.291M33.069 704.793a6.505 6.505 0 0 0 7.773 6.398 6.508 6.508 0 0 0 4.743-8.88 6.51 6.51 0 0 0-6.024-4.01 6.47 6.47 0 0 0-4.596 1.897 6.48 6.48 0 0 0-1.896 4.595M32.733 729.012a6.862 6.862 0 1 0 13.724.068 6.862 6.862 0 0 0-13.724-.068M32.598 753.264a6.99 6.99 0 0 0 4.32 6.464 7 7 0 0 0 7.625-1.518 6.993 6.993 0 0 0-1.063-10.764 7 7 0 0 0-3.887-1.178 6.98 6.98 0 0 0-6.994 6.996M32.328 777.448a7.266 7.266 0 1 0 7.268-7.263 7.278 7.278 0 0 0-7.268 7.263M32.127 801.668a7.45 7.45 0 0 0 4.607 6.869 7.449 7.449 0 0 0 6.994-13.074 7.46 7.46 0 0 0-4.133-1.263 7.47 7.47 0 0 0-7.468 7.468M31.925 825.885a7.65 7.65 0 0 0 9.128 7.526 7.652 7.652 0 0 0-1.458-15.161 7.695 7.695 0 0 0-7.67 7.635M31.59 850.104a7.989 7.989 0 1 0 15.976-.03 7.989 7.989 0 0 0-15.977.03M13.528 2.455a1.816 1.816 0 1 0 3.632 0 1.816 1.816 0 0 0-3.632 0M13.528 26.674a1.815 1.815 0 0 0 2.52 1.71 1.82 1.82 0 0 0 1.113-1.71 1.816 1.816 0 1 0-3.633 0M13.392 50.923a1.952 1.952 0 1 0 1.984-1.984 1.99 1.99 0 0 0-1.984 1.984M13.29 75.111a2.096 2.096 0 0 0 2.083 2.082 2.086 2.086 0 1 0 0-4.17 2.096 2.096 0 0 0-2.083 2.082M13.088 99.33a2.287 2.287 0 1 0 4.574 0 2.287 2.287 0 0 0-4.574 0M12.954 123.582a2.407 2.407 0 1 0 4.814-.029 2.407 2.407 0 0 0-4.814.028M12.886 147.767a2.471 2.471 0 0 0 4.21 1.778 2.48 2.48 0 0 0 .553-2.691 2.47 2.47 0 0 0-4.024-.827 2.49 2.49 0 0 0-.739 1.74M12.753 171.985a2.627 2.627 0 0 0 2.623 2.624 2.624 2.624 0 1 0-2.623-2.624M12.55 196.204a2.82 2.82 0 0 0 1.72 2.635 2.83 2.83 0 0 0 3.092-.591 2.826 2.826 0 0 0-1.986-4.836 2.8 2.8 0 0 0-1.996.806 2.8 2.8 0 0 0-.83 1.986M12.416 220.423a2.96 2.96 0 1 0 5.919 0 2.96 2.96 0 0 0-5.92 0M12.281 244.641a3.094 3.094 0 1 0 3.095-3.095 3.1 3.1 0 0 0-2.191.904 3.1 3.1 0 0 0-.904 2.191
843M12.046 268.86a3.298 3.298 0 1 0 3.33-3.293 3.31 3.31 0 0 0-3.33 3.296M11.945 293.078a3.432 3.432 0 1 0 6.863 0 3.432 3.432 0 0 0-6.863 0M11.743 317.33a3.635 3.635 0 0 0 2.242 3.357 3.632 3.632 0 1 0-2.243-3.357M11.609 341.516a3.768 3.768 0 1 0 7.537-.001 3.768 3.768 0 0 0-7.537.001M11.41 365.731a3.952 3.952 0 1 0 7.903.033 3.952 3.952 0 0 0-7.904-.033M11.205 389.986a4.154 4.154 0 1 0 4.171-4.205 4.224 4.224 0 0 0-4.17 4.205M11.07 414.169a4.304 4.304 0 0 0 7.35 3.045 4.303 4.303 0 0 0-.652-6.625 4.306 4.306 0 0 0-6.698 3.58M10.868 438.39a4.506 4.506 0 0 0 8.928.88 4.51 4.51 0 0 0-4.42-5.387 4.51 4.51 0 0 0-4.508 4.507M10.734 462.608a4.625 4.625 0 1 0 4.642-4.642 4.65 4.65 0 0 0-4.642 4.642M10.398 486.86a4.979 4.979 0 1 0 4.979-4.978 4.986 4.986 0 0 0-4.979 4.978M10.196 511.045a5.182 5.182 0 0 0 6.19 5.08 5.18 5.18 0 0 0 4.07-4.07 5.18 5.18 0 0 0-5.08-6.19 5.15 5.15 0 0 0-3.671 1.509 5.16 5.16 0 0 0-1.51 3.671M10.06 535.264a5.298 5.298 0 1 0 10.597.033 5.298 5.298 0 0 0-10.596-.033M9.859 559.485a5.5 5.5 0 1 0 11 .033 5.5 5.5 0 0 0-11-.033M9.657 583.734a5.702 5.702 0 1 0 5.719-5.718 5.67 5.67 0 0 0-4.054 1.665 5.68 5.68 0 0 0-1.665 4.053M9.456 607.922a5.923 5.923 0 0 0 10.108 4.187 5.92 5.92 0 0 0-4.187-10.108 5.9 5.9 0 0 0-5.474 3.653 5.9 5.9 0 0 0-.447 2.268M9.254 632.137a6.103 6.103 0 0 0 7.3 5.97 6.1 6.1 0 0 0 4.792-4.792 6.104 6.104 0 0 0-8.316-6.839 6.1 6.1 0 0 0-3.316 3.315 6.1 6.1 0 0 0-.46 2.346M9.052 656.389a6.323 6.323 0 1 0 6.358-6.323 6.3 6.3 0 0 0-4.502 1.832 6.3 6.3 0 0 0-1.856 4.491M8.85 680.574a6.525 6.525 0 1 0 13.05.002 6.525 6.525 0 0 0-13.05-.002M8.514 704.793a6.846 6.846 0 1 0 6.862-6.862 6.87 6.87 0 0 0-6.862 6.862M8.38 729.012a6.978 6.978 0 0 0 8.324 6.865 6.976 6.976 0 0 0 5.11-9.503 6.98 6.98 0 0 0-6.438-4.325 6.993 6.993 0 0 0-6.997 6.963M8.11 753.264a7.267 7.267 0 0 0 8.683 7.126 7.263 7.263 0 0 0 5.295-9.906 7.263 7.263 0 0 0-11.846-2.354 7.28 7.28 0 0 0-2.132 5.134M7.909 777.448a7.45 7.45 0 0 0 4.607 6.87 7.449 7.449 0 0 0 6.993-13.074 7.45 7.45 0 0 0-4.133-1.263 7.47 7.47 0 0 0-7.467 7.467M7.74 801.667a7.65 7.65 0 0 0 13.065 5.389 7.65 7.65 0 0 0-5.396-13.061 7.63 7.63 0 0 0-5.433 2.237 7.64 7.64 0 0 0-2.236 5.435M7.37 825.885a8 8 0 0 0 4.919 7.417 8.003 8.003 0 1 0-4.919-7.417M7.236 850.104a8.124 8.124 0 1 0 16.248-.034 8.124 8.124 0 0 0-16.248.034"})],-1)])])}const SD={render:Pet},Det=Q({__name:"Banner",props:{image:{},parallax:{type:Boolean,default:!1},isBanner:{type:Boolean},isTplEdito:{type:Boolean}},setup(e){const t=Yt(),n=G(t.initialData),r=G(t.siteBuilderInfos),i=W(()=>n.value?.decoration?.content?.decoration?.[0]),a=e;r.value?.identifier,r.value?.theme,r.value?.theme;const{y:o}=QSe(),s=W(()=>a.parallax?`${o.value/5}px`:""),l=F({position:"absolute",top:"0",width:{base:"75%",lg:"50%"},height:"100%",objectFit:"cover",pointerEvents:"none"}),u=F({position:"absolute",width:{base:"75%",lg:"50%"},height:"auto",pointerEvents:"none","& *":{fill:"white"}});return(c,d)=>{const f=Qo,h=kre,p=SD;return E(),U("div",{class:L(["bandeau_page",m(F)({overflow:"hidden",position:"absolute",top:"0",left:"0",width:"100%",height:{base:"24rem",sm:e.isBanner?"28rem":"15rem",md:e.isBanner?"40rem":"25rem"},_print:{display:"none"}}),e.isBanner?m(F)({"& img, & figure, & svg":{height:"100%",width:"100%",objectFit:"cover"},"& [data-description]":{position:"absolute",top:0,left:0,width:"auto !important","& [data-copyright]":{position:"initial",display:"inline-block",transform:"none"}}}):null])},[e.isBanner?(E(),U("div",{key:0,style:Li(e.parallax?`transform:translateY(${m(s)})`:null),class:L(m(F)({height:"100%"}))},[H(f,{image:e.image,defaultImg:!1},null,8,["image"]),m(r)?.theme==="Theme1"?(E(),V(h,{key:0,"aria-hidden":"true",class:L([m(vn)({size:"40rem !important",stroke:"{colors.white}"}),m(F)({position:"absolute",top:"0",right:"0",transform:"translate(50%, -30%)"})])},null,8,["class"])):ae("",!0)],6)):(E(),U("div",{key:1,class:L(m(F)({bgColor:"{colors.third}",height:"100%",position:"relative"}))},[m(r)?.theme==="Theme1"?(E(),V(f,{key:0,image:m(i),"no-figcaption":!0,class:L([m(l),m(F)({left:"0",maskImage:"linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 5%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0) 40%)"})])},null,8,["image","class"])):m(r)?.theme==="Theme2"?(E(),V(p,{key:1,"aria-hidden":"true",class:L([m(u),m(F)({left:0,top:0})])},null,8,["class"])):ae("",!0),m(r)?.theme==="Theme1"?(E(),V(f,{key:2,image:m(i),"n
843o-figcaption":!0,class:L([m(l),m(F)({right:"0",maskImage:"linear-gradient(-90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 5%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0) 40%)"})])},null,8,["image","class"])):m(r)?.theme==="Theme2"?(E(),V(p,{key:3,"aria-hidden":"true",class:L([m(u),m(F)({right:0,bottom:0,transform:"rotate(180deg)"})])},null,8,["class"])):ae("",!0)],2))],2)}}}),Iet=Q({__name:"HeadPageTitle",props:{title:{}},setup(e){return(t,n)=>(E(),U("h1",null,de(e.title),1))}}),$et={class:"quote"},Let=Q({__name:"Quote",props:{quote:{}},setup(e){return(t,n)=>(E(),U("p",$et,de(e.quote),1))}}),Ret={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 3 4"};function Oet(e,t){return E(),U("svg",Ret,[...t[0]||(t[0]=[Y("g",{"clip-path":"url(#i-1521793659__a)"},[Y("path",{fill:"#fff",d:"M1.5 3.301a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"})],-1),Y("defs",null,[Y("clipPath",{id:"i-1521793659__a"},[Y("path",{fill:"#fff",d:"M0 .301h3v3H0z"})])],-1)])])}const Bet={render:Oet},Fet=["aria-label"],zet=["aria-current"],Net={property:"name"},Vet=["content"],Ere=Q({__name:"Breadcrumb",setup(e){const t=Yt(),n=G(t.pageData),r=W(()=>{let a=n.value?.breadcrumbs||[];return i.value?.forEach(o=>{if(typeof o?.content?.data?.title<"u"){a.push({title:o.content.data.title,link:"",target:"",active:1,current:1,spacer:0,hasSubpages:0});return}}),a}),i=W(()=>n.value?.content?.colPos0?.filter(({type:a})=>["news_newsdetail","cimdirectory_display"].includes(a)));return(a,o)=>{const s=Bet,l=u1;return E(),U("nav",{role:"navigation","aria-label":a.$t("layout.breadcrumbs.ariaLabel")},[Y("ol",{vocab:"http://schema.org/",typeof:"BreadcrumbList",class:L([m(Sa)({shadowInitial:"0",shadowColor:"{colors.white}",textColor:"{colors.black}"}),m(js)({rowGap:"1rem",columnGap:"1rem"}),m(F)({margin:"0",bgColor:"{colors.third}",padding:"1rem 2rem",color:"{colors.white}",zIndex:2,position:"relative",_print:{marginTop:"1rem"}})])},[(E(!0),U(Ae,null,ft(m(r),(u,c)=>(E(),U("li",{property:"itemListElement",typeof:"ListItem",class:L([m(rn)({gap:"1rem"}),m(F)({fontSize:"{fontSizes.md}",_print:{display:"inline-block"}})])},[c!==0?(E(),V(s,{key:0,"aria-hidden":"true",class:L([m(vn)({fill:"{colors.white}",size:"0.5rem"}),m(F)({_print:{display:"inline-block",margin:"0 0.5rem"}})])},null,8,["class"])):ae("",!0),u?.current?(E(),U("span",{key:1,property:"name","aria-current":u?.current?"page":null,class:L(m(F)({fontFamily:"{fonts.bold}"}))},de(u?.title),11,zet)):(E(),V(l,{key:2,property:"item",typeof:"WebPage",to:u?.link},{default:N(()=>[Y("span",Net,de(u?.title),1)]),_:2},1032,["to"])),Y("meta",{property:"position",content:c+1},null,8,Vet)],2))),256))],2)],8,Fet)}}}),jet={name:"Bluesky",shareUrl:"https://bsky.app/intent/compose?text=[u]",icon:{viewBox:"0 0 24 24",path:"M12 11.388c-.906-1.761-3.372-5.044-5.665-6.662c-2.197-1.55-3.034-1.283-3.583-1.033C2.116 3.978 2 4.955 2 5.528c0 .575.315 4.709.52 5.4c.68 2.28 3.094 3.05 5.32 2.803c-3.26.483-6.157 1.67-2.36 5.898c4.178 4.325 5.726-.927 6.52-3.59c.794 2.663 1.708 7.726 6.444 3.59c3.556-3.59.977-5.415-2.283-5.898c2.225.247 4.64-.523 5.319-2.803c.205-.69.52-4.825.52-5.399c0-.575-.116-1.55-.752-1.838c-.549-.248-1.386-.517-3.583 1.033c-2.293 1.621-4.76 4.904-5.665 6.664"},color:"#1185FE",category:"social"},Uet={name:"ChatGPT",shareUrl:"https://chatgpt.com/?prompt=[p][u]",icon:{viewBox:"0 0 24 24",path:"M20.562 10.188c.25-.688.313-1.376.25-2.063c-.062-.687-.312-1.375-.625-2c-.562-.937-1.375-1.687-2.312-2.125c-1-.437-2.063-.562-3.125-.312c-.5-.5-1.063-.938-1.688-1.25S11.687 2 11 2a5.17 5.17 0 0 0-3 .938c-.875.624-1.5 1.5-1.813 2.5c-.75.187-1.375.5-2 .875c-.562.437-1 1-1.375 1.562c-.562.938-.75 2-.625 3.063a5.44 5.44 0 0 0 1.25 2.874a4.7 4.7 0 0 0-.25 2.063c.063.688.313 1.375.625 2c.563.938 1.375 1.688 2.313 2.125c1 .438 2.062.563 3.125.313c.5.5 1.062.937 1.687 1.25S12.312 22 13 22a5.17 5.17 0 0 0 3-.937c.875-.625 1.5-1.5 1.812-2.5a4.54 4.54 0 0 0 1.938-.875c.562-.438 1.062-.938 1.375-1.563c.562-.937.75-2 .625-3.062c-.125-1.063-.5-2.063-1.188-2.876m-7.5 10.5c-1 0-1.75-.313-2.437-.875c0 0 .062-.063.125-.063l4-2.312a.5.5 0 0 0 .25-.25a.57.57 0 0 0 .062-.313V11.25l1.688 1v4.625a3.685 3.685 0 0 1-3.688 3.813M5 17.25c-.438-.75-.625-1.625-.438-2.5c0 0 .063.063.125.063l4 2.312a.56.56 0 0 0 .313.063c.125 0 .25 0 .312-.063l4.875-2.812v1.937l-4.062 2.375A3.7 3.7 0 0 1 7.312 19c-1-.25-1.812-.875-2.312-1.75M3.937 8.563a3.8 3.8 0 0 1 1.938-1.626v4.751c0 .124 0 .25.062.312a.5.5 0 0 0 .25.25l4.875 2.813l-1.687 1l-4-2.313a3.7 3.7 0 0 1-1.75-2.25c-.25-.937-.188-2.062.312-2.937M17.75 11.75l-4.875-2.812l1.687-1l4 2.312c.625.375 1.125.875 1.438 1.5s.5 1.313.437 2.063a3.7 3.7 0 0 1-.75 1.937c-.437.563-1 1-1.687 1.25v-4.75c0-.125 0-.25-.063-.312c0 0-.062-.126-.187-.188m1.687-2.5s-.062-.062-.125-.062l-4-2.313c-.125-.062-.187-.062-.312-.062s-.25 0-.313.062L9.812 9.688V7.75l4.063-2.375c.625-.375 1.312-.5 2.062-.5c.688 0 1.375.25 2 .688c.563.437 1.063 1 1.313 1.625s.312 1.375.187 2.062m-10.5 3.5l-1.687-1V7.063c0-.688.187-1.438.562-2C8.187 4.438 8.75 4 9.375 3.688a3.37 3.37 0 0 1 2.062-.313c.688.063 1.375.375 1.938.813c0 0-.063.062-.125.062l-4 2.313a.5.5 0 0 0-.25.25c-.063.125-.063.187-.063.312zm.875-2L12 9.5l2.187 1.25v2.5L12 14.5l-2.188-1.25z"},color:"#0d0d0d",category:"ai"},Het={name:"Claude",shareUrl:"https://claude.ai/new?q=[p][u]",icon:{viewBox:"0 0 24 24",path:"m5.92 15.3l3.94-2.2l.06-.2l-.06-.
8431h-.2L9 12.76l-2.24-.06l-1.96-.1l-1.9-.1l-.48-.1l-.42-.6l.04-.3l.4-.26l.58.04l1.26.1l1.9.12l1.38.08l2.04.24h.32l.04-.14l-.1-.08l-.08-.08L7.8 10.2L5.68 8.8l-1.12-.82l-.6-.4l-.3-.4l-.12-.84l.54-.6l.74.06l.18.04l.74.58l1.6 1.22L9.4 9.2l.3.24l.12-.08l.02-.06l-.14-.22L8.6 7L7.4 4.92l-.54-.86l-.14-.52c-.06-.2-.08-.4-.08-.6l.6-.84l.36-.1l.84.12l.32.28l.52 1.2l.82 1.86l1.3 2.52l.4.76l.2.68l.06.2h.14v-.1l.1-1.44l.2-1.74l.2-2.24l.06-.64l.32-.76l.6-.4l.52.22l.4.58l-.06.36L14.32 5l-.52 2.42l-.3 1.64h.18l.2-.22l.82-1.08l1.38-1.72l.6-.7l.72-.74l.46-.36h.86l.62.94l-.28.98l-.88 1.12l-.74.94l-1.06 1.42l-.64 1.14l.06.08h.14l2.4-.52l1.28-.22l1.52-.26l.7.32l.08.32l-.28.68l-1.64.4l-1.92.4l-2.86.66l-.04.02l.04.06l1.28.12l.56.04h1.36l2.52.2l.66.4l.38.54l-.06.4l-1.02.52l-1.36-.32l-3.2-.76l-1.08-.26h-.16v.08l.92.9l1.66 1.5l2.12 1.94l.1.48l-.26.4l-.28-.04l-1.84-1.4l-.72-.6l-1.6-1.36h-.1v.14l.36.54l1.96 2.94l.1.9l-.14.28l-.52.2l-.54-.12l-1.16-1.6l-1.2-1.8l-.94-1.64l-.1.08l-.58 6.04l-.26.3l-.6.24l-.5-.4l-.28-.6l.28-1.24l.32-1.6l.26-1.28l.24-1.58l.14-.52v-.04h-.14l-1.2 1.66l-1.8 2.46l-1.44 1.52l-.34.14l-.6-.3l.06-.56l.32-.46l2-2.56l1.2-1.58l.8-.92l-.02-.1h-.06l-5.28 3.44l-.94.12l-.4-.4l.04-.6l.2-.2l1.6-1.1z"},color:"#D97757",category:"ai"},qet={name:"Email",shareUrl:"mailto:?body=[u]",args:{title:"&subject=[t]"},icon:{viewBox:"0 0 24 24",path:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-.4 4.25l-6.54 4.09c-.65.41-1.47.41-2.12 0L4.4 8.25a.85.85 0 1 1 .9-1.44L12 11l6.7-4.19a.85.85 0 1 1 .9 1.44"},color:"#7e7e7e",category:"messaging"},Wet={name:"Facebook",shareUrl:"https://www.facebook.com/sharer/sharer.php?u=[u]",icon:{viewBox:"0 0 24 24",path:"M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4z"},color:"#0866FF",category:"social"},Get={name:"Gemini",shareUrl:"https://www.google.com/search?udm=50&aep=11&q=[p][u]",icon:{viewBox:"0 0 24 24",path:"M24 12.024c-6.437.388-11.59 5.539-11.977 11.976h-.047C11.588 17.563 6.436 12.412 0 12.024v-.047C6.437 11.588 11.588 6.437 11.976 0h.047c.388 6.437 5.54 11.588 11.977 11.977z"},color:"#9177C7",category:"ai"},Zet={name:"Grok",shareUrl:"https://x.com/i/grok?text=[p][u]",icon:{viewBox:"0 0 512 512",path:"M197.7 325.7L368 199.9c8.3-6.2 20.3-3.8 24.2 5.8c20.9 50.5 11.6 111.2-30.1 152.9c-41.6 41.7-99.6 50.8-152.5 30l-57.8 26.8c83 56.8 183.7 42.7 246.7-20.3c49.9-50 65.4-118.1 50.9-179.6l.1.1c-21-90.3 5.2-126.4 58.7-200.2c1.3-1.7 2.5-3.5 3.8-5.3l-70.4 70.5v-.2zm-35.1 30.6c-59.5-57-49.3-145.1 1.5-195.9c37.6-37.6 99.1-53 152.9-30.4l57.7-26.7c-10.4-7.5-23.7-15.6-39-21.3c-69.1-28.5-151.9-14.3-208.1 41.9c-54 54.1-71 137.3-41.9 208.3c21.8 53.1-13.9 90.6-49.9 128.5c-12.7 13.4-25.5 26.8-35.8 41.1z"},color:"#000000",category:"ai"},Ket={name:"Hacker News",shareUrl:"https://news.ycombinator.com/submitlink?u=[u]",args:{title:"&t=[t]"},icon:{viewBox:"0 0 24 24",path:"M3 3v18h18V3zm9.61 10.103v4.036h-1.278v-4.123L8.14 6.832h1.48c2.12 3.92 1.975 4.094 2.381 5.023c.493-1.103.203-.987 2.468-5.023h1.393z"},color:"#F0652F",category:"social"},Yet={name:"Instapaper",shareUrl:"https://www.instapaper.com/text?u=[u]",icon:{viewBox:"0 0 24 24",path:"M5 1a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h14a4 4 0 0 0 4-4V5a4 4 0 0 0-4-4zm3.364 3.5A.364.364 0 0 0 8 4.864v.727c0 .2.163.364.364.364c.5 0 .92.083 1.21.165c.148.042.244.18.244.334v11.092a.34.34 0 0 1-.243.334c-.292.082-.71.166-1.211.166a.363.363 0 0 0-.364.363v.727c0 .201.163.364.364.364h7.272a.364.364 0 0 0 .364-.364v-.727c0-.2-.163-.363-.364-.363c-.5 0-.92-.084-1.21-.166a.34.34 0 0 1-.244-.334V6.454c0-.153.096-.292.243-.334c.291-.082.71-.165 1.211-.165A.364.364 0 0 0 16 5.591v-.727a.364.364 0 0 0-.364-.364z"},color:"#1F1F1F",category:"bookmark"},Xet={name:"LINE",shareUrl:"https://social-plugins.line.me/lineit/share?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M18.664 10.84a.526.526 0 0 1-.526.525h-1.462v.938h1.463a.525.525 0 1 1 0 1.049H16.15a.526.526 0 0 1-.522-.524V8.852c0-.287.235-.525.525-.525h1.988a.526.526 0 0 1-.002 1.05h-1.463v.938h1.463c.29 0 .524.237.524.525m-4.098 2.485a.54.54 0 0 1-.166.025a.515.515 0 0 1-.425-.208l-2.036-2.764v2.45a.525.525 0 0 1-1.047 0V8.852a.522.522 0 0 1 .52-.523c.162 0 .312.086.412.211l2.052 2.775V8.852c0-.287.235-.525.525-.525c.287 0 .525.238.525.525v3.976a.524.524 0 0 1-.36.497m-4.95.027a.526.526 0 0 1-.523-.524V8.852c0-.287.235-.525.525-.525c.289 0 .524.238.524.525v3.976a.527.527 0 0 1-.526.524m-1.53 0H6.099a.528.528 0 0 1-.525-.524V8.852c0-.287.238-.525.525-.525c.29 0 .525.238.525.525v3.45h1.464a.525.525 0 0 1 0 1.05m3.915-10.78c-5.513 0-10 3.643-10 8.118c0 4.01 3.558 7.369 8.363 8.007c.325.068.769.215.881.492c.1.25.066.638.032.9l-.137.85c-.037.25-.2.988.874.537c1.076-.449 5.764-3.398 7.864-5.812C21.314 14.089 22 12.477 22 10.69c0-4.475-4.488-8.118-10-8.118"},color:"#06C655",category:"messaging"},Jet={name:"LinkedIn",shareUrl:"https://www.linkedin.com/sharing/share-offsite/?url=[u]",icon:{viewBox:"0 0 24 24",path:"M6.94 5a2 2 0 1 1-4-.002a2 2 0 0 1 4 .002M7 8.48H3V21h4zm6.32 0H9.34V21h3.94v-6.57c0-3.66 4.77-4 4.77 0V21H22v-7.93c0-6.17-7.06-5.94-8.72-2.91z"},color:"#0A66C2",category:"social"},Qet={name:"Mastodon",shareUrl:"https://mastodonshare.com/?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M21.26 13.99c-.275 1.41-2.457 2.955-4.963 3.254c-1.306.156-2.593.3-3.965.236c-2.244-.103-4.014-.535-4.014-.535q0 .328.04.62c.292 2.215 2.196 2.347 4 2.41c1.82.061 3.44-.45 3.44-.45l.075 1.646s-1.273.684-3.54.81c-1.252.068-2.8
84305-.032-4.613-.51c-3.923-1.039-4.598-5.22-4.701-9.464c-.032-1.26-.012-2.447-.012-3.44c0-4.34 2.843-5.611 2.843-5.611C7.283 2.298 9.742 2.021 12.3 2h.062c2.557.02 5.018.298 6.451.956c0 0 2.843 1.272 2.843 5.61c0 0 .036 3.201-.396 5.424m-2.957-5.087q0-1.611-.823-2.558c-.566-.631-1.307-.955-2.228-.955c-1.065 0-1.872.41-2.405 1.228l-.518.87l-.519-.87C11.277 5.8 10.47 5.39 9.406 5.39c-.921 0-1.663.324-2.229.955q-.823.947-.822 2.558v5.253h2.081V9.057c0-1.075.452-1.62 1.357-1.62c1 0 1.501.647 1.501 1.927v2.79h2.07v-2.79c0-1.28.5-1.927 1.5-1.927c.905 0 1.358.545 1.358 1.62v5.1h2.08z"},color:"#6364FF",category:"social"},ett={name:"Perplexity",shareUrl:"https://www.perplexity.ai/search?q=[p][u]",icon:{viewBox:"0 0 24 24",path:"m5.735 2l5.695 5.247V2.012h1.109v5.259L18.259 2v5.983h2.349v8.629h-2.342v5.327l-5.727-5.032v5.09h-1.11V16.99L5.742 22v-5.388H3.393v-8.63h2.342zm4.86 7.078H4.5v6.439h1.24v-2.031zM6.85 13.972v5.585l4.58-4.034V9.81zm5.72 1.497l4.588 4.03v-2.887h-.006v-2.646l-4.582-4.16zm5.696.048H19.5v-6.44h-6.047l4.814 4.363zm-1.115-7.534V4.519l-3.76 3.464zm-6.548 0l-3.76-3.464v3.464z"},color:"#21808d",category:"ai"},ttt={name:"Pinterest",shareUrl:"https://pinterest.com/pin/create/button/?url=[u]",args:{title:"&description=[t]",image:"&media=[i]"},icon:{viewBox:"-4.5 -2 24 24",path:"M6.17 13.097c-.506 2.726-1.122 5.34-2.95 6.705c-.563-4.12.829-7.215 1.475-10.5c-1.102-1.91.133-5.755 2.457-4.808c2.86 1.166-2.477 7.102 1.106 7.844c3.741.774 5.269-6.683 2.949-9.109C7.855-.272 1.45 3.15 2.238 8.163c.192 1.226 1.421 1.598.491 3.29C.584 10.962-.056 9.22.027 6.897C.159 3.097 3.344.435 6.538.067c4.04-.466 7.831 1.527 8.354 5.44c.59 4.416-1.823 9.2-6.142 8.855c-1.171-.093-1.663-.69-2.58-1.265"},color:"#BD081C",category:"social"},ntt={name:"Raindrop",shareUrl:"https://app.raindrop.io/add?link=[u]",args:{title:"&title=[t]"},icon:{viewBox:"0 0 48 48",path:"M24 7.14c-3.65 0-7.3 1.4-10.06 4.17-2.23 2.22-3.56 5-4 7.9A11.3 11.3 0 0 0 3 29.6c0 6.2 5.05 11.25 11.25 11.25h19.5c6.2 0 11.25-5.05 11.25-11.24 0-4.67-2.87-8.7-6.94-10.39a14 14 0 0 0-4-7.9v-.01A14.2 14.2 0 0 0 24 7.14m0 2.98c2.87 0 5.74 1.1 7.94 3.3v.01a11 11 0 0 1 2.9 4.98q-.53-.05-1.09-.05c-4.25 0-7.84 2.47-9.75 5.97a11.2 11.2 0 0 0-9.74-5.97l-.01-.01q-.56 0-1.1.05c.5-1.82 1.47-3.54 2.9-4.97h.01c2.2-2.2 5.07-3.3 7.94-3.3m-9.76 11.23a8.23 8.23 0 0 1 8.25 8.25v6.14l-6.44-6.44a11.2 11.2 0 0 1-3.3-7.82q.72-.12 1.48-.13m19.51 0q.77 0 1.5.14a11.2 11.2 0 0 1-3.3 7.8h-.01l-6.44 6.45V29.6a8.23 8.23 0 0 1 8.25-8.24M9.83 22.63a14 14 0 0 0 4.11 8.8l6.43 6.43h-6.12A8.23 8.23 0 0 1 6 29.6a8.2 8.2 0 0 1 3.83-6.98m28.34.01A8.2 8.2 0 0 1 42 29.61a8.23 8.23 0 0 1-8.25 8.25h-6.13l6.44-6.44a14 14 0 0 0 4.1-8.79"},color:"#0B7ED0",category:"bookmark"},rtt={name:"Reddit",shareUrl:"https://www.reddit.com/submit?url=[u]",args:{title:"&title=[t]"},icon:{viewBox:"0 0 24 24",path:"m11.053 7.815l.751-3.536a2 2 0 0 1 2.372-1.54l3.196.68a2 2 0 1 1-.415 1.956l-3.197-.68l-.666 3.135c1.785.137 3.558.73 5.164 1.7A3.192 3.192 0 0 1 23 12.203v.021a3.193 3.193 0 0 1-1.207 2.55a2.852 2.852 0 0 1-.008.123c0 3.998-4.45 7.03-9.799 7.03c-5.333 0-9.708-3.024-9.705-6.953a5.316 5.316 0 0 1-.01-.181a3.193 3.193 0 0 1 3.454-5.35a11.446 11.446 0 0 1 5.329-1.628m9.285 5.526a1.19 1.19 0 0 0 .662-1.075a1.192 1.192 0 0 0-2.016-.806l-.585.56l-.67-.455c-1.615-1.098-3.452-1.725-5.23-1.764h-1.006c-1.875.028-3.652.6-5.237 1.675l-.664.45l-.583-.55a1.192 1.192 0 1 0-1.315 1.952l.633.29l-.053.695a3.95 3.95 0 0 0 .003.584c0 2.71 3.356 5.03 7.708 5.03c4.371 0 7.799-2.336 7.802-5.107a3.304 3.304 0 0 0 0-.507l-.052-.672zM6.951 13.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0m7 0a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0m-1.985 5.103c-1.397 0-2.766-.37-3.881-1.21a.424.424 0 0 1 .597-.597c.945.693 2.123.99 3.269.99s2.33-.275 3.284-.959a.439.439 0 0 1 .732.206a.469.469 0 0 1-.12.423c-.683.797-2.483 1.147-3.88 1.147"},color:"#FF4500",category:"social"},itt={name:"Telegram",shareUrl:"https://t.me/share/url?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 48 48",path:"M41.42 7.309s3.885-1.515 3.56 2.164c-.107 1.515-1.078 6.818-1.834 12.553l-2.59 16.99s-.216 2.489-2.159 2.922c-1.942.432-4.856-1.515-5.396-1.948c-.432-.325-8.094-5.195-10.792-7.575c-.756-.65-1.62-1.948.108-3.463L33.649 18.13c1.295-1.3 2.59-4.33-2.806-.65l-15.11 10.28s-1.727 1.083-4.964.109l-7.016-2.165s-2.59-1.623 1.835-3.246c10.793-5.086 24.068-10.28 35.831-15.15"},color:"#26A5E4",category:"messaging"},att={name:"Threads",shareUrl:"https://www.threads.net/intent/post?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M16.705 11.108c-.162-2.987-1.794-4.697-4.534-4.714c-1.652-.01-3.033.69-3.879 1.973L9.8 9.4c.634-.961 1.635-1.16 2.36-1.153c.903.006 1.583.268 2.024.78c.32.372.535.887.642
8431.536q-1.202-.204-2.59-.125c-2.606.15-4.28 1.67-4.168 3.781c.057 1.071.59 1.993 1.502 2.595c.77.509 1.764.757 2.795.701c1.363-.075 2.432-.594 3.178-1.545c.566-.722.924-1.658 1.082-2.836c.65.392 1.13.907 1.397 1.527c.452 1.054.478 2.786-.935 4.198c-1.238 1.236-2.726 1.772-4.975 1.788c-2.495-.018-4.382-.819-5.608-2.378c-1.15-1.46-1.743-3.57-1.765-6.269c.022-2.7.616-4.809 1.765-6.27c1.226-1.559 3.113-2.359 5.608-2.377c2.513.019 4.432.822 5.706 2.39c.625.768 1.095 1.734 1.406 2.86l1.766-.47c-.377-1.387-.969-2.582-1.774-3.573c-1.633-2.01-4.033-3.039-7.11-3.06c-3.071.021-5.432 1.055-7.019 3.071c-1.411 1.795-2.14 4.306-2.164 7.436c.024 3.13.753 5.627 2.164 7.422c1.587 2.016 3.96 3.05 7.03 3.071c2.731-.019 4.655-.734 6.24-2.317c2.075-2.073 2.012-4.67 1.329-6.264c-.525-1.225-1.57-2.206-2.98-2.81m-4.438 4.557c-1.142.064-2.328-.448-2.387-1.546c-.043-.814.58-1.722 2.457-1.83a9.4 9.4 0 0 1 2.533.174c-.216 2.702-1.485 3.14-2.603 3.202"},color:"#000000",category:"social"},ott={name:"Tumblr",shareUrl:"http://tumblr.com/widgets/share/tool?canonicalUrl=[u]",args:{title:"&title=[t]",image:"&content=[i]",hashtags:"&tags=[h]"},icon:{viewBox:"0 0 24 24",path:"M6.27 7.63A5.76 5.76 0 0 0 10.817 2h3.03v5.152h3.637v3.636h-3.637v5.454c0 .515.198 1.207.91 1.667q.711.46 3.03.455V22h-4.243a4.546 4.546 0 0 1-4.545-4.546v-6.666H6.27z"},color:"#001F38",category:"social"},stt={name:"Viber",shareUrl:"viber://forward?text=[u]",args:{title:"%20[t]"},icon:{viewBox:"0 0 24 24",path:"M11.4 0C9.473.028 5.333.344 3.02 2.467C1.302 4.187.696 6.7.633 9.817S.488 18.776 6.12 20.36h.003l-.004 2.416s-.037.977.61 1.177c.777.242 1.234-.5 1.98-1.302c.407-.44.972-1.084 1.397-1.58c3.85.326 6.812-.416 7.15-.525c.776-.252 5.176-.816 5.892-6.657c.74-6.02-.36-9.83-2.34-11.546c-.596-.55-3.006-2.3-8.375-2.323c0 0-.395-.025-1.037-.017zm.058 1.693c.545-.004.88.017.88.017c4.542.02 6.717 1.388 7.222 1.846c1.675 1.435 2.53 4.868 1.906 9.897v.002c-.604 4.878-4.174 5.184-4.832 5.395c-.28.09-2.882.737-6.153.524c0 0-2.436 2.94-3.197 3.704c-.12.12-.26.167-.352.144c-.13-.033-.166-.188-.165-.414l.02-4.018c-4.762-1.32-4.485-6.292-4.43-8.895c.054-2.604.543-4.738 1.996-6.173c1.96-1.773 5.474-2.018 7.11-2.03zm.38 2.602a.304.304 0 0 0-.004.607c1.624.01 2.946.537 4.028 1.592c1.073 1.046 1.62 2.468 1.633 4.334c.002.167.14.3.307.3a.304.304 0 0 0 .3-.304c-.014-1.984-.618-3.596-1.816-4.764c-1.19-1.16-2.692-1.753-4.447-1.765zm-3.96.695a.98.98 0 0 0-.616.117l-.01.002c-.43.247-.816.562-1.146.932l-.008.008q-.4.484-.46.948a.6.6 0 0 0-.007.14q0 .205.065.4l.013.01c.135.48.473 1.276 1.205 2.604c.42.768.903 1.5 1.446 2.186q.405.517.87.984l.132.132q.466.463.984.87a15.5 15.5 0 0 0 2.186 1.447c1.328.733 2.126 1.07 2.604 1.206l.01.014a1.3 1.3 0 0 0 .54.055q.466-.055.948-.46c.004 0 .003-.002.008-.005c.37-.33.683-.72.93-1.148l.003-.01c.225-.432.15-.842-.18-1.12c-.004 0-.698-.58-1.037-.83q-.54-.383-1.113-.71c-.51-.285-1.032-.106-1.248.174l-.447.564c-.23.283-.657.246-.657.246c-3.12-.796-3.955-3.955-3.955-3.955s-.037-.426.248-.656l.563-.448c.277-.215.456-.737.17-1.248a13 13 0 0 0-.71-1.115a28 28 0 0 0-.83-1.035a.82.82 0 0 0-.502-.297zm4.49.88a.303.303 0 0 0-.018.606c1.16.085 2.017.466 2.645 1.15c.63.688.93 1.524.906 2.57a.306.306 0 0 0 .61.013c.025-1.175-.334-2.193-1.067-2.994c-.74-.81-1.777-1.253-3.05-1.346h-.024zm.463 1.63a.305.305 0 0 0-.3.287c-.008.167.12.31.288.32c.523.028.875.175 1.113.422c.24.245.388.62.416 1.164a.304.304 0 0 0 .605-.03c-.03-.644-.215-1.178-.58-1.557c-.367-.378-.893-.574-1.52-.607h-.018z"},color:"#7360f2",category:"messaging"},ltt={name:"VKontakte",shareUrl:"https://vk.com/share.php?url=[u]",args:{title:"&title=[t]",image:"&image=[i]"},icon:{viewBox:"0 0 24 24",path:"M21.504 18.381h-2.282c-.863 0-1.123-.699-2.67-2.247c-1.352-1.303-1.923-1.465-2.265-1.465c-.473 0-.602.13-.602.781v2.052c0 .555-.18.88-1.63.88a8.9 8.9 0 0 1-6.955-4.17a18.2 18.2 0 0 1-3.6-7.558c0-.342.13-.652.782-.652h2.28c.586 0 .797.261 1.027.864c1.107 3.258 2.996 6.092 3.763 6.092c.294 0 .422-.13.422-.863V8.739c-.097-1.531-.91-1.66-.91-2.214a.563.563 0 0 1 .585-.523h3.584c.49 0 .652.244.652.83v4.53c0 .489.21.651.358.651c.294 0 .52-.162 1.059-.7a18.8 18.8 0 0 0 2.802-4.66a.98.98 0 0 1 .993-.65h2.281c.684 0 .829.342.684.83a28.5 28.5 0 0 1-3.062 5.262c-.246.375-.344.57 0 1.01c.226.342 1.026 1.01 1.563 1.645c.782.78 1.431 1.682 1.922 2.67c.196.636-.131.961-.782.961"},color:"#0077FF",category:"social"}
843,utt={name:"WhatsApp",shareUrl:"https://api.whatsapp.com/send?text=[u]",args:{title:"%20[t]"},icon:{viewBox:"0 0 24 24",path:"m7.254 18.494l.724.423A7.953 7.953 0 0 0 12.001 20a8 8 0 1 0-8-8a7.95 7.95 0 0 0 1.084 4.024l.422.724l-.653 2.401zM2.005 22l1.352-4.968A9.953 9.953 0 0 1 2.001 12c0-5.523 4.477-10 10-10s10 4.477 10 10s-4.477 10-10 10a9.954 9.954 0 0 1-5.03-1.355zM8.392 7.308c.134-.01.269-.01.403-.004c.054.004.108.01.162.016c.159.018.334.115.393.249c.298.676.588 1.357.868 2.04c.062.152.025.347-.093.537c-.06.097-.154.233-.263.372c-.113.145-.356.411-.356.411s-.099.118-.061.265c.014.056.06.137.102.205l.059.095c.256.427.6.86 1.02 1.268c.12.116.237.235.363.346c.468.413.998.75 1.57 1l.005.002c.085.037.128.057.252.11c.062.026.126.048.191.066a.35.35 0 0 0 .367-.13c.724-.877.79-.934.796-.934v.002a.482.482 0 0 1 .378-.127c.06.004.121.015.177.04c.531.243 1.4.622 1.4.622l.582.261c.098.047.187.158.19.265c.004.067.01.175-.013.373c-.032.259-.11.57-.188.733a1.158 1.158 0 0 1-.21.302a2.381 2.381 0 0 1-.33.288c-.082.062-.125.09-.125.09a5.063 5.063 0 0 1-.383.22a1.99 1.99 0 0 1-.833.23c-.185.01-.37.024-.556.014c-.008 0-.568-.087-.568-.087a9.448 9.448 0 0 1-3.84-2.046c-.226-.199-.436-.413-.65-.626c-.888-.885-1.561-1.84-1.97-2.742a3.472 3.472 0 0 1-.33-1.413a2.73 2.73 0 0 1 .565-1.68c.073-.094.142-.192.261-.305c.126-.12.207-.184.294-.228a.961.961 0 0 1 .371-.1"},color:"#25D366",category:"messaging"},ctt={name:"X",shareUrl:"https://x.com/intent/post?url=[u]",args:{title:"&text=[t]",user:"&via=[uid]",hashtags:"&hashtags=[h]"},icon:{viewBox:"0 0 24 24",path:"M18.205 2.25h3.308l-7.227 8.26l8.502 11.24H16.13l-5.214-6.817L4.95 21.75H1.64l7.73-8.835L1.215 2.25H8.04l4.713 6.231zm-1.161 17.52h1.833L7.045 4.126H5.078z"},color:"#000000",category:"social"},dtt={name:"Xing",shareUrl:"https://www.xing.com/spi/shares/new?url=[u]",icon:{viewBox:"0 0 24 24",path:"M20.462 3.23c.154 0 .308.078.384.155a.49.49 0 0 1 0 .461l-6.076 10.77l3.846 7.076a.49.49 0 0 1 0 .462a.6.6 0 0 1-.385.154h-2.77c-.384 0-.614-.308-.768-.539l-3.923-7.154C11 14.308 16.924 3.77 16.924 3.77c.153-.308.384-.538.769-.538zM8.923 7c.385 0 .616.308.77.538l1.923 3.308c-.154.154-3 5.23-3 5.23c-.154.232-.385.54-.77.54H5.155a.6.6 0 0 1-.384-.154a.49.49 0 0 1 0-.462l2.846-5.154l-1.846-3.23a.49.49 0 0 1 0-.462A.6.6 0 0 1 6.154 7z"},color:"#0698A0",category:"social"},qk={facebook:Wet,x:ctt,linkedin:Jet,pinterest:ttt,reddit:rtt,bluesky:jet,threads:att,mastodon:Qet,vkontakte:ltt,xing:dtt,tumblr:ott,hackernews:Ket,whatsapp:utt,telegram:itt,line:Xet,viber:stt,email:qet,instapaper:Yet,raindrop:ntt,chatgpt:Uet,claude:Het,gemini:Get,perplexity:ett,grok:Zet},aj={twitter:"x",vk:"vkontakte"},ftt={twitter:qk[aj.twitter],vk:qk[aj.vk]},G9={...qk,...ftt},oj=["bluesky","chatgpt","claude","email","facebook","gemini","grok","hackernews","instapaper","line","linkedin","mastodon","perplexity","pinterest","raindrop","reddit","telegram","threads","tumblr","twitter","viber","vk","vkontakte","whatsapp","x","xing"],sj={network:"",url:void 0,title:void 0,user:void 0,hashtags:void 0,image:void 0,prompt:"Read this page so I can ask questions about it:"};function htt(e=sj){const{network:t,url:n,title:r,user:i,hashtags:a,image:o,prompt:s}=e,l=Ga().public.socialShare;if(!G9[t])return oj.includes(t)?console.warn(`[nuxt-social-share] Network "${t}" was excluded from this build by the "networks" module option. 844 Add it to your "socialShare.networks" config to use it. Bundled networks: ${Object.keys(G9).sort().join(", ")}`):console.warn(`[nuxt-social-share] Network "${t}" is not valid. 845 Available networks: ${oj.join(", ")}. 846 See https://nuxt-social-share.stefanobartoletti.it/usage/supported-networks`),W(()=>null);const u=G9[t],c=nu(),d=W(()=>n!==void 0?new URL(n).href:l.baseUrl!==""?new URL(c.fullPath,l.baseUrl).href:""),f=W(()=>{const p=u.shareUrl,g=u.args?.title&&r?u.args?.title:"",v=u.args?.user&&i?u.args?.user:"",b=u.args?.hashtags&&a?u.args?.hashtags:"",x=u.args?.image&&o?u.args?.image:"";let _=p+g+v+b+x;return _=_.replace(/\[u\]/i,encodeURIComponent(d.value)).replace(/\[p\]/i,encodeURIComponent(`${s||sj.prompt} `)).replace(/\[t\]/i,encodeURIComponent(r||"")).replace(/\[uid\]/i,encodeURIComponent(i||"")).replace(/\[h\]/i,encodeURIComponent(a||"")).replace(/\[i\]/i,encodeURIComponent(o||"")),new URL(_).href});return W(()=>{const{args:p,shareUrl:g,...v}=u;return{...v,shareUrl:f.value}})}const ptt=["href","aria-label","rel"],mtt=["viewBox"],gtt=["d"],ytt={key:1,class:"social-share-button__label"},vtt={__name:"SocialShare",props:{styled:{type:Boolean,default:void 0},label:{type:Boolean,default:void 0},icon:{type:Boolean,default:void 0},network:{type:String,required:!0},url:{type:String,default:void 0},title:{type:String,default:void 0},user:{type:String,default:void 0},hashtags:{type:String,default:void 0},image:{type:String,default:void 0},rel:{type:String,default:"nofollow noopener noreferrer"},prompt:{type:String,default:void 0}},setup(e){const t=e,n=Ga().public.socialShare,r=t.styled!==void 0?t.styled:n.styled,i=t.label!==void 0?t.label:n.label,a=t.icon!==void 0?t.icon:n.icon,o=htt({network:t.network,url:t.url,t
846itle:t.title,user:t.user,hashtags:t.hashtags,image:t.image,prompt:t.prompt}),s=W(()=>{if(!o.value)return{short:"Share",long:"Share"};const l=o.value.name;switch(o.value.category){case"social":return{short:"Share",long:`Share on ${l}`};case"messaging":return{short:"Send",long:`Send with ${l}`};case"bookmark":return{short:"Save",long:`Save to ${l}`};case"ai":return{short:"Ask AI",long:`Ask ${l}`};default:return{short:"Share",long:`Share on ${l}`}}});return(l,u)=>m(o)?(E(),U("a",{key:0,class:L(["social-share-button",[`social-share-button--${e.network}`,{"social-share-button--styled":m(r)}]]),href:m(o).shareUrl,style:Li(`--color-brand:${m(o).color}`),"aria-label":m(s).long,rel:e.rel,target:"_blank"},[m(a)?me(l.$slots,"icon",{},()=>[(E(),U("svg",{class:"social-share-button__icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:`${m(o).icon.viewBox}`},[Y("path",{fill:"currentColor","fill-rule":"evenodd",d:`${m(o).icon.path}`},null,8,gtt)],8,mtt))],void 0,0):ae("",!0),m(i)?(E(),U("span",ytt,[me(l.$slots,"label",{},()=>[st(de(m(s).short),1)])])):ae("",!0)],14,ptt)):ae("",!0)}},_tt=Q({__name:"Share",props:{sharePrintStyle:{}},setup(e){const t=F({bgColor:"{colors.black}",color:"{colors.white}",fontSize:"1em",fontFamily:"{fonts.bold}",margin:"0",padding:"0.5rem",borderRadius:"0.3em"});return(n,r)=>{const i=Tn,a=k1,o=O6,s=vtt,l=rDe,u=oDe,c=aDe,d=sDe,f=nDe,h=eDe,p=DA,g=E1,v=PA,b=T1;return E(),V(b,null,{default:N(()=>[H(a,{asChild:""},{default:N(()=>[H(i,{title:n.$t("common.socials.sharePage"),link:{text:n.$t("common.socials.sharePage")},type:"button",picto:"share",class:L([e.sharePrintStyle,m(F)({_expanded:{bgColor:"{colors.black}","& svg *":{fill:"{colors.white}"}}})])},null,8,["title","link","class"])]),_:1}),H(o),H(v,null,{default:N(()=>[H(g,{as:"ul",side:"bottom",align:"center",alignOffset:0,sideOffset:0,tabindex:"0",class:L([m(rn)({gap:"0.5rem"}),m(F)({bgColor:"{colors.black}",padding:"1rem",marginBottom:"0"})])},{default:N(()=>[(E(),U(Ae,null,ft(["facebook","linkedin"],x=>Y("li",null,[H(h,{disableHoverableContent:!0},{default:N(()=>[H(f,null,{default:N(()=>[H(l,{"as-child":""},{default:N(()=>[(E(),V(s,{key:x,network:x,label:!1,styled:!1,"aria-label":`${n.$t("common.socials.shareOn")} ${x} ${n.$t("common.newWindow")}`,title:"",class:L([m(gp)({size:"2.5rem !important",bgColor:"{colors.black}"}),m(F)({"& svg":{width:"2rem",height:"2rem","& *":{fill:"{colors.white}",transition:"{easings.global}"}},_hover:{bgColor:"{colors.white}","& svg *":{fill:"{colors.black}"}}})])},null,8,["network","aria-label","class"]))]),_:2},1024),H(d,null,{default:N(()=>[H(c,{"as-child":"",side:"top",sideOffset:10},{default:N(()=>[x==="email"?(E(),U("p",{key:0,class:L(m(t))},[st(de(n.$t("common.socials.shareMail"))+" "+de(n.$t("common.newWindow"))+" ",1),H(u,{class:"tooltip_arrow"})],2)):(E(),U("p",{key:1,class:L(m(t))},[st(de(n.$t("common.socials.shareOn"))+" "+de(x)+" "+de(n.$t("common.newWindow"))+" ",1),H(u,{class:"tooltip_arrow"})],2))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)])),64)),H(p,{"data-arrow":"","aria-hidden":"true"})]),_:1},8,["class"])]),_:1})]),_:1})}}}),btt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function xtt(e,t){return E(),U("svg",btt,[...t[0]||(t[0]=[Y("path",{fill:"#fff",d:"M15.25 7h-.75V3.25h-9V7h-.75C3.51 7 2.5 8 2.5 9.24v4.5h3v3h9v-3h3v-4.5c0-1.24-1-2.25-2.24-2.25zM7 4.75h6V7H7zm6 10.5H7v-3h6zm1.5-3v-1.5h-9v1.5H4v-3c0-.41.34-.75.75-.75h10.5c.41 0 .75.34.75.75v3z"},null,-1),Y("path",{fill:"#fff",d:"M14.5 10.37a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5"},null,-1)])])}const wtt={render:xtt},Stt={key:0},Ctt=Q({__name:"SharePrint",props:{popin:{type:Boolean},data:{}},setup(e){const t=[rn({flexDir:"row-reverse",gap:"1rem"}),F({padding:{base:"0.5rem 1rem",sm:"1rem 1.5rem",md:"1.2rem 2rem"},bgColor:"{colors.primary}",color:"{colors.white}",border:"{borders.sm} transparent","& svg":{width:"2rem",height:"2rem","& *":{fill:"{colors.white}",transition:"{easings.global}"}},_hover:{bgColor:"{colors.black}",borderColor:"{colors.white}","& svg *":{fill:"{colors.white}"}}})],n=Yt(),{logout:r}=Zx();return(i,a)=>{const o=Tn,s=Fc,l=_tt;return E(),U("ul",{class:L([m(rn)({gap:"0.5rem"}),m(F)({position:"absolute",top:0,zIndex:2,right:{base:"0",xl:e.popin?"0":"calc(-1 * ((100vw - {spacing.wrap}) / 2 ))"},_print:{display:"none !important"}})])}
846,[m(n).isLoggedIn?(E(),U("li",Stt,[H(o,{link:{text:i.$t("dashboard.logout")},onClick:a[0]||(a[0]=u=>m(r)(!0)),class:L(t),type:"button"},null,8,["link"])])):ae("",!0),Y("li",null,[H(s,{title:i.$t("layout.arianePrint.printPage"),link:{href:"javascript:window.print()",text:i.$t("layout.arianePrint.printPage")},class:L(t),role:"button"},{icon:N(()=>[H(m(wtt),{"aria-hidden":"true"})]),_:1},8,["title","link"])]),Y("li",null,[H(l,{sharePrintStyle:t})])],2)}}}),Ttt=Q({__name:"HeadPage",props:{pageData:{},data:{},popin:{type:Boolean,default:!1},fieldsToShow:{},isTplEdito:{type:Boolean}},setup(e){const t=e,n=Yt();n.backendLayout,n.initialData;const r=G(n.siteBuilderInfos),i=t.pageData?.appearance?.backendLayout==="detail",a=t.pageData?.appearance?.backendLayout==="editorial",o=W(()=>r.value?.identifier==="Cdr"),s=i&&!t.isTplEdito,l=W(()=>i?t.data?.pictureShow?.[0]:t.pageData?.pictureBannerEditorial?.[0]),u=W(()=>a||i&&t.isTplEdito?typeof l.value<"u":!1),c=W(()=>t.data?.subtitle||t.data?.teaser),d=W(()=>i?t.data:t.pageData);return(f,h)=>{const p=Det,g=Iet,v=Let,b=LX,x=kre,_=Ere,w=Ctt;return E(),U("div",{class:L([m(F)({marginBottom:{base:i&&!e.isTplEdito?"3.5rem":"6rem",md:"5rem"},position:"relative",zIndex:0})])},[H(p,{image:m(l),isBanner:m(u),parallax:!e.popin,isTplEdito:e.isTplEdito},null,8,["image","isBanner","parallax","isTplEdito"]),Y("div",{class:L([m(g1)({position:e.popin?"static":"relative"}),m(Vn)({flexDir:"column-reverse",alignItems:"start",gap:e.popin?null:{base:"1.5rem",md:"{spacing.gutter}"}}),m(F)({paddingTop:e.popin?"8rem":{base:"6rem",md:"3rem"}})])},[Y("div",{class:L([m(Vn)({alignItems:"start",gap:"2rem"}),m(F)({width:{base:"100%",lg:m(u)||m(s)?"10/12":"auto"},padding:i?"0":{base:"2.5rem",sm:"4rem",md:"5rem"},marginTop:m(s)?{base:"0",md:"4rem"}:m(u)?{base:"0",md:"20rem"}:{base:"0",md:"8rem"},zIndex:"2",position:"relative",_before:{content:m(s)?null:"''",position:"absolute",width:"100%",height:"100%",top:"0",left:"0",bgColor:"{colors.lightGray}",zIndex:"-1"}}),m(u)||m(s)?m(F)({marginLeft:"auto",marginRight:"auto"}):null,m(s)?m(F)({padding:"0"}):null])},[i?i?(E(),V(b,{key:1,result:e.data,fieldsToShow:e.fieldsToShow,isHeadPage:!0,options:{hn:"h1",showimg:m(s)},class:L([m(F)({gap:"0 !important",alignItems:{sm:"start !important"},width:"100%","& [data-txt]":{flex:"auto",gap:m(s)?"1.5rem":"2rem"},"& [data-list-item-title]":{color:"{colors.third}"},"& [data-field-type=teaser]":{fontSize:m(o)?{base:"2.2em",md:"2.4em"}:"p",fontWeight:m(o)?600:400},"& [data-date=complexe]":{position:{base:"relative",sm:"absolute"},bottom:{base:"0",sm:m(r)?.theme==="Theme1"?"-1.5rem":"0"},top:m(r)?.theme==="Theme1"?null:"auto",left:m(r)?.theme==="Theme1"?{base:"0",lg:"-1.5rem"}:"0","& [data-date-container]":{position:"static",transform:"translate(0)"}},"& [data-date=inline]":{order:1},"& [data-img]":{width:{base:"20rem",sm:"25rem",md:"33rem"},minWidth:{base:"20rem",sm:"25rem",md:"33rem"},height:"auto",aspectRatio:"initial","& > *, & img":{minWidth:"100%",aspectRatio:"inherit"},_before:{display:"none"},"& [data-description]":{}}}),m(s)?m(F)({"& [data-txt]":{padding:{base:"2rem",sm:"3.5rem 4rem"},bgColor:"{colors.lightGray}",width:"100%"}}):null,e.isTplEdito?m(F)({padding:{base:"2rem",sm:"3rem",md:"5rem"},"& [data-txt] > [data-category], & [data-txt] > [data-list-category]":{"&:not(.specificCategories):not(.status)":{position:{md:"absolute"},top:0,left:{base:"2rem",sm:"3rem",md:"5rem"},transform:{base:"translateY(-3rem)",md:"translateY(-50%)"},marginBottom:{mdDown:"-2.5rem"},_print:{position:"relative",transform:"none",inset:"auto",backgroundColor:"{colors.darkGray}",color:"{colors.white}"}}}}):null])},null,8,["result","fieldsToShow","options","class"])):ae("",!0):(E(),U(Ae,{key:0},[H(g,{title:e.data?.title||e.data?.ogTitle,class:L(m(F)({color:"{colors.third}",marginBottom:"0"}))},null,8,["title","class"]),m(c)&&a?(E(),V(v,{key:0,quote:m(c),class:L(m(F)({fontSize:"{fontSizes.h4}",marginBottom:"0"}))},null,8,["quote","class"])):ae("",!0)],64)),m(r)?.theme==="Theme1"&&m(u)?(E(),V(x,{key:2,"aria-hidden":"true",class:L([m(vn)({size:"40rem !important",stroke:"{colors.white}"}),m(F)({position:"absolute",top:"0",left:"0",transform:"translate(-45%, -30%)",zIndex:"-2"})])},null,8,["class"])):ae("",!0)],2),e.popin?ae("",!0):(E(),V(_,{key:0})),H(w,{popin:e.popin,data:m(d)},null,8,["popin","data"])],2)],2)}}}),ktt=Q({__name:"TableOfContent",props:{items:{},isSticky:{type:Boolean},isStickyBottom:{type:Boolean},width:{}},setup(e,{expose:t}){const n=Yt();G(n.siteBuilderInfos).value?.identifier;const i=G(),a=G();nu();
846const o=YM("(max-width: 1024px)"),s=u=>{document?.querySelector(u).focus()},l=[rn({flexDir:"row-reverse",justifyContent:"start",alignItems:"start",gap:"1rem"}),F({"& span":{maxWidth:"100%",display:"block",overflowWrap:"break-word"},_hover:{transform:"translateX(1rem)",color:"inherit"},_print:{marginBottom:".5rem"}})];return t({stickySommaire:i,isNotLargeScreen:o,sommaire:a}),(u,c)=>{const d=KA,f=Fc,h=Mr;return e.items?.length>1?(E(),V(h,{key:0,header:u.$t("blocks.tableOfContent.title"),titleInside:!0,noAnchor:!0,class:L(m(F)({"& h2":{color:"{colors.third}",_after:{display:"none !important"}},"& [data-bloc-content]":{borderLeft:"0.5rem solid {colors.primary}",padding:{base:"0 1.5rem",sm:"0 4rem",md:"0 4.5rem"},"& > div":{_print:{marginBottom:"1rem"}}}}))},{content:N(()=>[Y("ul",{class:L(m(F)({columns:{sm:2}}))},[(E(!0),U(Ae,null,ft(e.items,p=>(E(),U(Ae,null,[p.title?(E(),U("li",{key:0,class:L(m(F)({marginRight:"0.5rem",breakInside:"avoid-column"}))},[H(f,{link:{text:p.title,href:`#c${p.id}`},onClick:g=>s(`#c${p.id}`),class:L(l)},{icon:N(()=>[H(d,{"aria-hidden":"true",class:L([m(vn)({size:"1rem",stroke:"{colors.primary}"}),m(F)({minWidth:"1rem",transform:"translateY(0.7rem)",_print:{display:"none"}})])},null,8,["class"])]),_:1},8,["link","onClick"]),Y("ul",{class:L([m(F)({margin:"1rem 0 1.5rem 2rem"}),m(Vn)({gap:"0.5rem",alignItems:"start"})])},[(E(!0),U(Ae,null,ft(p?.children,g=>(E(),U("li",{class:L(m(F)({}))},[H(f,{link:{text:g.title,href:`#c${g.id}`},onClick:v=>s(`#c${g.id}`),class:L([l,m(F)({fontSize:"1.4rem",_after:{content:"'â'"}})])},null,8,["link","onClick","class"])],2))),256))],2)],2)):ae("",!0)],64))),256))],2)]),_:1},8,["header","class"])):ae("",!0)}}}),lj="hcaptcha-api-script-id",Mre="_hcaptchaOnLoad";let Wk,Are;const Z9=new Promise((e,t)=>{Wk=e,Are=t});function Ett(e){if(window.hcaptcha)return Wk(),Z9;if(document.getElementById(lj))return Z9;window[Mre]=Wk;const t=Mtt(e),n=document.createElement("script");return n.id=lj,n.src=t,n.async=!0,n.defer=!0,n.onerror=r=>{console.error("Failed to load api: "+t,r),Are("Failed to load api.js")},document.head.appendChild(n),Z9}function Mtt(e){let t=e.apiEndpoint;return t=Ll(t,"render","explicit"),t=Ll(t,"onload",Mre),t=Ll(t,"recaptchacompat",e.reCaptchaCompat===!1?"off":null),t=Ll(t,"hl",e.language),t=Ll(t,"sentry",e.sentry),t=Ll(t,"custom",e.custom),t=Ll(t,"endpoint",e.endpoint),t=Ll(t,"assethost",e.assethost),t=Ll(t,"imghost",e.imghost),t=Ll(t,"reportapi",e.reportapi),t}function Ll(e,t,n){if(n!=null){const r=e.includes("?")?"&":"?";return e+r+t+"="+encodeURIComponent(n)}return e}var Att=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Ptt={name:"VueHcaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String,default:void 0},size:{type:String,default:void 0},tabindex:{type:String,default:void 0},language:{type:String,default:void 0},reCaptchaCompat:{type:Boolean,default:!0},challengeContainer:{type:String,default:void 0},rqdata:{type:String,default:void 0},sentry:{type:Boolean,default:!0},custom:{type:Boolean,default:void 0},apiEndpoint:{type:String,default:"https://hcaptcha.com/1/api.js"},endpoint:{type:String,default:void 0},reportapi:{type:String,default:void 0},assethost:{type:String,default:void 0},imghost:{type:String,default:void 0}},data:()=>({widgetId:null,hcaptcha:null,renderedCb:null}),mounted(){return Ett(this.$props).then(this.onApiLoaded).catch(this.onError)},unmounted(){this.teardown()},destroyed(){this.teardown()},methods:{teardown(){this.widgetId&&(this.hcaptcha.reset(this.widgetId),this.hcaptcha.remove(this.widgetId))},onApiLoaded(){this.hcaptcha=window.hcaptcha;const e={sitekey:this.sitekey,theme:this.theme,size:this.size,tabindex:this.tabindex,callback:this.onVerify,"expired-callback":this.onExpired,"chalexpired-callback":this.onChallengeExpired,"error-callback":this.onError,"open-callback":this.onOpen,"close-callback":this.onClose};this.challengeContainer&&(e["challenge-container"]=this.challengeContainer),this.widgetId=this.hcaptcha.render(this.$el,e),this.rqdata&&this.hcaptcha.setData(this.widgetId,{rqdata:this.rqdata}),this.onRendered()},execute(){this.widgetId?(this.hcaptcha.execute(this.widgetId),this.onExecuted()):this.renderedCb=()=>{this.renderedCb=null,this.execute()}},executeAsync(){if(this.widgetId)return this.onExecuted(),this.hcaptcha.execute(this.widgetId,{async:!0});let e;const t=new Promise(n=>{e=n});return this.renderedCb=()=>{this.renderedCb=null,e()},t.then(this.executeAsync)},reset(){this.widgetId?(this.hcaptcha.reset(this.widgetId),this.onReset()):this.$emit("error","Element is not rendered yet and thus cannot reset it. Wait for `rendered` event to safely call reset.")},onRendered(){this.$emit("rendered"),this.renderedCb&&this.renderedCb()},onExecuted(){this.$emit("executed")},onReset(){this.$emit("reset")},onError(e){this.$emit("error",e),this.reset()},onVerify(){const e=this.hcaptcha.getResponse(this.widgetId),t=this.hcaptcha.getRespKey(this.widgetId);this.$emit("verify",e,t)},onExpired(){this.$emit("expired")},onChallengeExpired(){this.$emit("challengeExpired")},onOpen(){this.$emit("opened")},onClose(){this.$emit("closed")}}},Dtt={id:"hcap-script"};function Itt(e,t,n,r,i,a){return E(),U("div",Dtt)}var Gk=Att(Ptt,[["render",Itt]]);const db={en:/^[0-9A-Z]*$/i,cs:/^[0-9A-ZÃÄÄÃÄÃÅÃÅŠŤÃŮÎ]*$/i,da:/^[0-9A-ZÃÃÃ
]$/i,de:/^[0-9A-ZÃÃÃÃ]*$/i,es:/^[0-9A-ZÃÃÃÃÃÃÃ]*$/i,fr:/^[0-9A-ZÃÃÃÃÃÃÃÃÃÃÃÅÃÃß]*$/i,it:/^[0-9A-Z\xC0-\xFF]*$/i,lt:/^[0-9A-ZÄÄÄÄĮŠŲŪŽ]*$/i,hu:/^[0-9A-ZÃÃÃÃÃÅÃÃŰ]*$/i,nl:/^[0-9A-ZÃÃÃÃÃÃ]*$/i,pl:/^[0-9A-ZÄÄÄÅÅÅÃŻŹ]*$/i,pt:/^[0-9A-ZÃÃÃÃÃÃÃÃÃÃÃÃÃ]*$/i,ru:/^[0-9Ð-ЯÐ]*$/i,kz:/^[0-9Ð-ЯÐ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i,sk:/^[0-9A-ZÃÃÄÄÃÃĹĽÅÃÅŠŤÃÃŽ]*$/i,sr:/^[0-9A-ZÄÄŽŠÄ]*$/i,sv:/^[0-9A-ZÃ
ÃÃ]*$/i,tr:/^[0-9A-ZÃÄİıÃÅÃ]*$/i,uk:/^[0-9Ð-ЩЬЮЯÐÐÐÒ]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9Ø¡Ø¢Ø£Ø¤Ø¥Ø¦Ø§Ø¨Ø©ØªØ«Ø¬ØØ®Ø¯Ø°Ø±Ø²Ø³Ø´ØµØ¶Ø·Ø¸Ø¹ØºÙÙÙÙÙ
ÙÙÙÙÙÙÙÙÙÙÙÙÙÙ°]*$/,az:/^[0-9A-ZÃÆÄİıÃÅÃ]*$/i,ug:/^[0-9A-ZÚÛÛØ±ØªÙÛÚÙپھسداÛÙÙÙÙØ²Ø´ØºÛبÙÙ
ÚÙÚ¯Ø®Ø¬ÛØ¦]*$/i},$tt=e=>{if(e)return Array.isArray(e)?e[0]:e.locale};function CD(e,t){return Array.isArray(e)?e[0]:e[t]}function Pp(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0)}const Zk=(e,t)=>{if(Pp(e))return!0;const n=$tt(t);if(Array.isArray(e))return e.every(i=>Zk(i,{locale:n}));const r=String(e);return n?(db[n]||db.en).test(r):Object.keys(db).some(i=>db[i].test(r))};function Ltt(e){return Array.isArray(e)?{min:e[0],max:e[1]}:e}const Sw=(e,t)=>{if(Pp(e))return!0;const{min:n,max:r}=Ltt(t);if(Array.isArray(e))return e.every(a=>Sw(a,{min:n,max:r}));const i=Number(e);return Number(n)<=i&&Number(r)>=i},uj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Rtt=e=>Pp(e)?!0:Array.isArray(e)?e.every(t=>uj.test(String(t))):uj.test(String(e)),Ott=e=>Pp(e)?!0:Array.isArray(e)?e.every(t=>/^-?[0-9]+$/.test(String(t))):/^-?[0-9]+$/.test(String(e)),Pre=(e,t)=>
846{if(Pp(e))return!0;const n=CD(t,"length");return Array.isArray(e)?e.every(r=>Pre(r,{length:n})):[...String(e)].length<=Number(n)},Dre=(e,t)=>{if(Pp(e))return!0;const n=CD(t,"length");return Array.isArray(e)?e.every(r=>Dre(r,{length:n})):[...String(e)].length>=Number(n)},TD=(e,t)=>{if(Pp(e))return!0;let n=CD(t,"regex");return typeof n=="string"&&(n=new RegExp(n)),Array.isArray(e)?e.every(r=>TD(r,{regex:n})):n.test(String(e))};function Btt(e){return e==null}function Ftt(e){return Array.isArray(e)&&e.length===0}const Kk=e=>Btt(e)||Ftt(e)||e===!1?!1:!!String(e).trim().length,ztt={class:"quality_form"},Ntt={class:"quality_form_question","aria-labelledby":"quality_form_question_legend"},Vtt={class:"grid-x grid-padding-x align-middle"},jtt={class:"cell auto"},Utt={id:"quality_form_question_legend"},Htt={class:"cell shrink quality_form_answers"},qtt={for:"qualityFormYes"},Wtt={for:"qualityFormNo"},Gtt={key:0,class:"quality_form_comment"},Ztt={class:"cell small-12"},Ktt={class:"ligne_form"},Ytt={class:"ligne_form"},Xtt={class:"button"},Jtt=["value"],Qtt={key:1,"aria-labelledby":"quality_form_comment_legend"},ent={class:"quality_form_comment"},tnt={id:"quality_form_comment_legend"},nnt={class:"ligne_form"},rnt={for:"qualityFormComment"},int={class:"mandatory"},ant={class:"ligne_form"},ont={class:"ligne_form"},snt={class:"button"},lnt=["value"],unt={key:1,class:"success"},cnt=Q({__name:"QualityForm",props:{pageData:null},setup(e){const{resetForm:t}=m1(),n=e,r=G(""),i=G(!1),a=(c,[d])=>d!=="Non"||c?!0:"Veuillez renseigner un commentaire",o=(c,[d])=>d!==void 0&&(!c||c==="")?"Veuillez compléter le captcha":!0;Ed("required",Kk),Ed("commentaire",a),Ed("captcha",o);const s={"tx_cimquality_displayquality[newQuality][answer]":c=>c?!0:"Vous devez choisir une réponse","tx_cimquality_displayquality[newQuality][comment]":"commentaire:@tx_cimquality_displayquality[newQuality][answer]","tx_cimquality_displayquality[hcaptcha]":"captcha:@tx_cimquality_displayquality[newQuality][answer]"},l=(c,d)=>{r.value=c},u=async c=>{const d=new FormData;for(const[h,p]of Object.entries(c))d.append(h,p);d.append("tx_cimquality_displayquality[newQuality]",""),(await zo(n.pageData.quality.postUrl,{method:"POST",body:d})).success?i.value=!i.value:t()};return(c,d)=>(E(),U("div",ztt,[m(i)?ae("",!0):(E(),V(m(u9e),{key:0,"validation-schema":s,onSubmit:u},{default:N(({values:f})=>[Y("fieldset",Ntt,[Y("div",Vtt,[Y("div",jtt,[Y("p",Utt,de(c.$t("qualityForm.question.legend")),1)]),Y("div",Htt,[H(m(Ag),{id:"qualityFormYes",name:"tx_cimquality_displayquality[newQuality][answer]",type:"radio",value:"oui"}),Y("label",qtt,de(c.$t("qualityForm.question.oui")),1),H(m(Ag),{id:"qualityFormNo",name:"tx_cimquality_displayquality[newQuality][answer]",type:"radio",value:"non"}),Y("label",Wtt,de(c.$t("qualityForm.question.non")),1)])]),H(m(b3),{class:"form_message error",name:"tx_cimquality_displayquality[hcaptcha]",as:"p"})]),f["tx_cimquality_displayquality[newQuality][answer]"]==="oui"?(E(),U("div",Gtt,[Y("div",Ztt,[Y("div",Ktt,[f["tx_cimquality_displayquality[newQuality][answer]"]?(E(),V(m(Ag),{key:0,name:"tx_cimquality_displayquality[hcaptcha]",modelValue:m(r),"onUpdate:modelValue":d[0]||(d[0]=h=>$t(r)?r.value=h:null),type:"hidden"},{default:N(()=>[H(m(Gk),{onVerify:l,sitekey:e.pageData?.quality?.hcaptcha},null,8,["sitekey"])]),_:1},8,["modelValue"])):ae("",!0)]),Y("div",Ytt,[Y("div",Xtt,[f["tx_cimquality_displayquality[newQuality][answer]"]?(E(),U("input",{key:0,type:"submit",value:c.$t("common.send")},null,8,Jtt)):ae("",!0)])])])])):ae("",!0),f["tx_cimquality_displayquality[newQuality][answer]"]==="non"?(E(),U("fieldset",Qtt,[Y("div",ent,[Y("p",tnt,de(c.$t("qualityForm.commentaire.legend")),1),H(m(b3),{class:"form_message error",name:"tx_cimquality_displayquality[newQuality][answer]"}),Y("div",nnt,[Y("label",rnt,[st(de(c.$t("qualityForm.commentaire.textareaLabel"))+" ",1),Y("span",int,"("+de(c.$t("form.mandatory"))+")",1)]),H(m(Ag),{id:"qualityFormComment",as:"textarea",name:"tx_cimquality_displayquality[newQuality][comment]",required:"",rows:"5"}),H(m(b3),{class:"form_message error",name:"tx_cimquality_displayquality[newQuality][comment]",as:"p"})]),Y("div",ant,[f["tx_cimquality_displayquality[newQuality][answer]"]?(E(),V(m(Ag),{key:0,name:"tx_cimquality_displayquality[hcaptcha]",modelValue:m(r),"onUpdate:modelValue":d[1]||(d[1]=h=>$t(r)?r.value=h:null),type:"hidden"},{default:N(()=>[H(m(Gk),{onVerify:l,sitekey:e.pageData?.quality?.hcaptcha},null,8,["sitekey"])]),_:1},8,["modelValue"])):ae("",!0),H(m(b3),{class:"form_message error",name:"tx_cimquality_displayquality[hcaptcha]"})]),Y("div",ont,[Y("div",snt,[f["tx_cimquality_displayquality[newQuality][answer]"]?(E(),U("input",{key:0,t
846ype:"submit",value:c.$t("common.send")},null,8,lnt)):ae("",!0)])])])])):ae("",!0)]),_:1})),m(i)?(E(),U("p",unt,"Merci, votre message a bien été pris en compte")):ae("",!0)]))}}),dnt=()=>{const e=Va();let t=Object.values(e.blocsAlwaysInSummary);return{getTableOfContentItems:r=>{if(!Array.isArray(r))return[];const i=[];let a=null;const o=/<h([23])(?:\s[^>]*)?>(.*?)<\/h\1>/gi;return!r||r.length===0||r.forEach(s=>{if(!(t.includes(s.type)||s.show_in_summary===!0||s.type==="form_formframework"))return;const{header:u,headerLayout:c,bodytext:d}=s.content??{},f=s.type;if(u&&f!=="html"){const h=u,p=s.id;if(c===2){const g={title:h,id:p,children:[]};i.push(g),a=g}else c===3&&a&&a.children.push({title:h,id:p})}else if(d){let h,p=0;for(;(h=o.exec(d))!==null;){const g=h[1],v=h[2].replace(/<[^>]*>/g,"").trim(),b=`${s.id}_${p++}`;if(g==="2"){const x={title:v,id:b,children:[]};i.push(x),a=x}else g==="3"&&a&&a.children.push({title:v,id:b})}}else if(f==="form_formframework"){const h=s.content.form?.api?.label,p=s.id,g={title:h,id:p,children:[]};i.push(g),a=g}}),i}}},fnt={key:0},Ire=Q({__name:"MainLayout",props:{pageData:{},data:{},mainContent:{},asideContent:{},bottomContent:{},popin:{type:Boolean,default:!1},fieldsToShow:{},isDetail:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},isTplEdito:{type:Boolean},content:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=e,i=n.value?.theme==="Theme2",a=W(()=>r?.pageData?.cim_base_hide_quality==!0),o=W(()=>r.pageData?.cim_base_hide_update_date||r.isError?!1:r.data?.tstamp??+r.pageData?.tsedit??r.pageData?.SYS_LASTCHANGED),s=W(()=>r.isDetail||r.isError?!1:r?.pageData?.cim_base_hide_summary==!0||r?.pageData?.cim_base_hide_summary=="1"),{getTableOfContentItems:l}=dnt(),c=l(r.mainContent),d=G(),f=G(),h=G(),p=G(),g=W(()=>d.value?.stickySommaire),v=W(()=>d.value?.sommaire),b=W(()=>d.value?.isNotLargeScreen),x=G(!1),_=G(!1),w=dh(g),C=dh(v),T=dh(f),k=dh(p),A=W(()=>b?15:130),P=Je(k.bottom,()=>{});return XM(h,([{isIntersecting:D}],$)=>{x.value=!D}),_.value===!1?Je(k.bottom,()=>{k.bottom.value<=w.bottom.value&&(_.value=!0)}):P(),Je(w.top,()=>{_.value&&w.top.value>=A.value&&(_.value=!1)}),(D,$)=>{const O=Ttt,z=ktt,j=j6;return E(),U("div",{class:L(m(F)({paddingBottom:{base:"2.5rem",md:"5rem"}}))},[H(O,{pageData:e.pageData,data:e.data,popin:e.popin,fieldsToShow:e.fieldsToShow,isTplEdito:e.isTplEdito},null,8,["pageData","data","popin","fieldsToShow","isTplEdito"]),Y("div",{class:L(m(g1)())},[Y("div",{class:L(m(rn)({alignItems:"start",justifyContent:"center",flexWrap:{base:"wrap",md:"nowrap"},gap:{base:"{spacing.gutter}",xl:"5rem"},width:{base:"100%",lg:"10/12"},margin:"0 auto","& form":{bgColor:"{colors.lightGray}",padding:{base:"3rem",md:"4rem 5rem"}}}))},[Y("div",{ref_key:"sommaireContainerRef",ref:f,class:L(m(F)({width:{base:"100%",md:"8/12",xl:"70%"},position:{md:"relative"}}))},[Y("div",{ref_key:"sommaireAnchorTop",ref:h,class:L(m(F)({width:"100%",position:"absolute",transform:{md:"translateY(calc(-1 * ({spacing.header} + 3rem)))"}}))},null,2),m(s)?ae("",!0):(E(),V(z,{key:0,ref_key:"sommaireRef",ref:d,items:m(c),isSticky:m(x),isStickyBottom:m(_),width:m(T)?.width.value,style:Li(`min-height:${m(C).height.value}px`)},null,8,["items","isSticky","isStickyBottom","width","style"])),me(D.$slots,"mainContent")],2),e.asideContent?(E(),U("div",{key:0,class:L(m(F)({width:{base:"100%",md:"4/12",xl:"30%"}}))},[me(D.$slots,"asideContent")],2)):ae("",!0)],2),Y("div",{class:L(m(F)({width:{md:e.asideContent?"100%":"8/12",xl:e.asideContent?"10/12":"8/12"},margin:"0 auto","& svg":{padding:{base:"0.6rem !important",md:"auto"},width:{base:"3rem !important",md:"auto"},height:{base:"3rem !important",md:"auto"}}}))},[m(o)&&e.pageData?.appearance?.backendLayout!=="list"&&!(i&&e.data?.type==="territoire")?(E(),V(j,{key:0,result:m(o),config:{type:"date_time"}},{default:N(()=>[st(de(D.$t("common.dates.lastUpdate"))+" : ",1)]),_:1},8,["result"])):ae("",!0),m(a)?(E(),V(cnt,{key:1,"page-data":e.pageData},null,8,["page-data"])):ae("",!0),e.isDetail?me(D.$slots,"btnBack",{},void 0,void 0,2):ae("",!0)],2),Y("div",{ref_key:"sommaireAnchorBottom",ref:p,class:L(m(F)({width:"100%",position:"absolute",bottom:0,transform:"translateY(0)"}))},null,2),D.$slots.bottomContent&&e.bottomContent?(E(),U("div",fnt,[Y("div",null,[me(D.$slots,"bottomContent")])])):ae("",!0)],2)],2)}}}),$re=Q({__name:"DetailContent",props:{pageData:{},data:{},content:{},popin:{type:Boolean}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=G(t.initialData),i=e,a=n.value?.identifier==="Cdr",o=n.value?.theme==="Theme2",s=Va(),l=Object.values(s.listItemTplEdito),{checkIfResults:u,filteredConfigPage:c,getFieldType:d}=qA(),f=W(()=>c(i.data)),h=(_,w)=>d(_,w),p=f?.value?.principalFields.filter(_=>h(_,!0)==="Description"&&u(i.data,_)),g=Va(),v=Object.values(g.blocGeolocationFields),b=_=>f?.value?.[_]?.filter(w=>v.includes(w.system_name)&&w.auto_display&&u(i.data,w)),x=_=>f?.value?.[_]?.filter(w=>h(w,!0)!=="Description"&&u(i.data,w));return(_,w)=>{const C=cet,T=det,k=met,A=N1,P=get,D=Sre,$=nJ,O=xw,z=bet,j=_D,B=Tre,R=ket,J=Ire;return E(),V(J,{pageData:e.pageData,data:e.data,mainContent:!0,asideContent:(e.data?.trajectoireTerritorialFile?.length>0?e.data?.trajectoireTerritorialFile:null)||e.data?.trajectoireTerritorialLink||e.data?.contentElementsContext||x("contextualFields")||b("contextualFields")||m(f)?.contextualFields,bottomContent:!e.data?.hideRelatedContent,popin:e.popin,fieldsToShow:m(f)?.headFields,isDetail:!0,isTplEdito:m(l).includes(e.data?.type),class:L(m(F)({"& [data-list-item-content]":{gap:{base:"1rem",md:null},"& [data-txt]":{gap:{base:"1rem",md:null}}}}))},{mainContent:N(()=>[o&&e.data?.type==="territoire"?(E(),V(C,{key:0,profils:e.data?.relatedContent?.profils,content:e.pageData.content},null,8,["profils","content"])):(E(),U(Ae,{key:1},[e.data?.type==="territoire"?(E(),V(T,{key:0,communes:e.data?.nbCommunes,area:e.data?.superficie,population:e.data?.population},null,8,["communes","area","population"])):ae("",!0),H(k,{configPage:m(f)?.principalFields,descriptionFields:m(p),c
846onfigBoucle:x("principalFields"),blocGeoloc:b("principalFields"),data:e.data,colPos:0},null,8,["configPage","descriptionFields","configBoucle","blocGeoloc","data"]),H(A,{content:e.data?.contentElements},null,8,["content"]),e.data?.showInscriptionEventForm?(E(),U(Ae,{key:1},[e.data?.enableInscription&&e.data?.participants?(E(),V(P,{key:0,colPos:1,result:e.data?.participants},null,8,["result"])):ae("",!0),e.data?.isGaugeFull?(E(),V(D,{key:2,header:"Inscription",description:e.data?.gaugeFullMessage,picto:"none",display_template:"lesaviezvous",display_mode:"default"},null,8,["description"])):(E(),V(A,{key:1,content:e.data?.formContentElements},null,8,["content"]))],64)):ae("",!0),e.data?.relatedContent?.mayor?(E(),V($,{key:2,colPos:1,maire:!0,related:e.data?.relatedContent?.mayor,isRelated:!0},null,8,["related"])):ae("",!0),(E(!0),U(Ae,null,ft(e.data?.relatedContent,K=>(E(),U(Ae,null,[!e.data?.hideRelatedContent&&e.data?.type!=="news"&&e.data?.type!=="events"?(E(),V(O,{key:0,result:K,isRelated:!0},null,8,["result"])):ae("",!0)],64))),256)),e.data?.relatedContent?.equipements?(E(),V(z,{key:3,items:e.data?.relatedContent?.equipements,data:{settings:{title:`${_.$t("blocks.blocsLies.title")} ${_.$t("blocks.blocsLies.type.equipements")}`,template:"TinyInteractiveMap"}},isRelated:!0},null,8,["items","data"])):ae("",!0)],64))]),asideContent:N(()=>[e.data?.type==="territoire"?(E(),U(Ae,{key:0},[o&&m(r)?.savoirPlusTerritoire?.colPos0?.[0]?.content?.items?.length?(E(),V(j,{key:0,"col-pos":1,result:m(r)?.savoirPlusTerritoire?.colPos0?.[0]?.content?.items,config:{title:_.$t("common.knowMore")}},null,8,["result","config"])):ae("",!0),e.data?.type==="territoire"&&(e.data.territoireLinks?.length||e.data.terriStoryLinks?.length)?(E(),V(j,{key:1,"col-pos":1,result:[...e.data.territoireLinks??[],...e.data.terriStoryLinks??[]],config:{title:_.$t("blocks.usefulLinks.title")}},null,8,["result","config"])):ae("",!0)],64)):ae("",!0),H(k,{configPage:m(f)?.contextualFields,configBoucle:x("contextualFields"),blocGeoloc:b("contextualFields"),data:e.data,colPos:1},null,8,["configPage","configBoucle","blocGeoloc","data"]),e.data?.trajectoireTerritorialFile?.length>0?(E(),V(B,{key:1,header:_.$t("blocks.trajectory.title"),itemTitle:_.$t("blocks.trajectory.itemTitle"),colPos:1,result:e.data?.trajectoireTerritorialFile,image:e.data?.trajectoirePicture?.[0]},null,8,["header","itemTitle","result","image"])):ae("",!0),a?(E(),V(A,{key:2,content:e.data?.contentElementsContext},null,8,["content"])):ae("",!0)]),btnBack:N(()=>[me(_.$slots,"btnBack")]),bottomContent:N(()=>[e.data?.hideRelatedContent?ae("",!0):(E(),V(R,{key:0,data:e.data?.relatedContent?.mixed},null,8,["data"]))]),_:3},8,["pageData","data","asideContent","bottomContent","popin","fieldsToShow","isTplEdito","class"])}}}),hnt=Q({__name:"T3CeCimdirectoryDisplay",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{}},setup(e){const t=e,n=Yt(),r=G(n.initialData),i=G(n.pageData);return mo({title:t.data.title,htmlAttrs:{class:t.data.type}}),d6(t.data,()=>{q4(r.value,t.data)},{deep:!0,immediate:!0}),(a,o)=>{const s=uet,l=$re;return E(),V(l,{pageData:m(i),content:e.data,data:e.data},{btnBack:N(()=>[H(s,{popin:!1,link:{href:e.data?.backToListUrl},itemType:e.data?.type},null,8,["link","itemType"])]),_:1},8,["pageData","content","data"])}}}),pnt=Q({__name:"HomeBreves",props:{data:{},header:{}},setup(e){return(t,n)=>{const r=es,i=D1,a=F1;return e.data?.results?.length>0?(E(),V(a,{key:0,data:e.data,header:e.header,headerId:"bloc_breves_title",isSubtitle:!0,class:L(m(F)({justifyContent:"center","& [data-grid]":{width:{base:"100%",lg:"10/12"}}}))},{content:N(()=>[Y("div",{"aria-live":"polite",class:L(m(F)({position:{base:"relative",md:"static"},padding:{base:"0 2.5rem",sm:"0 6rem",lg:"0",_print:"0"},"& [id*=_slider_prev]":{left:{base:"-2rem",sm:"0"}},"& [id*=_slider_next]":{right:{base:"-2rem",sm:"0"}}}))},[H(i,{slides:e.data?.results,blocTitleId:"bloc_breves_title",breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:1,autoHeight:!0},800:{slidesPerView:2,autoHeight:!0},1024:{slidesPerView:3,autoHeight:!1}},wrapperTag:"ul",slideTag:"li"},{slideContent:N(o=>[H(r,{result:o.slide,"fields-to-show":["datetime"],options:{showcategories:!1,showimg:!1,seemore:{show:!0,text:t.$t("common.readMore")}},class:L(m(F)({position:"relative",_before:{content:"''",position:"absolute",left:"-1.5rem",top:"0",width:"0.1rem",he
846ight:"90%",backgroundColor:"{colors.mediumGray}"},"& [data-txt]":{padding:"0 1.5rem",gap:"1.5rem"},"& [data-list-item-title]":{fontSize:"{fontSizes.h3}",fontFamily:"{fonts.bold}","& a":{borderBottom:"0 !important"}},"& [data-date-inline]":{order:"-1",fontSize:"{fontSizes.p}"},"& [data-see-more]":{textTransform:"uppercase",color:"{colors.third}",fontFamily:"{fonts.bold}",fontSize:{base:"1.4em",sm:"{fontSizes.sm}"},position:"relative",paddingBottom:"0.5rem",_before:{content:"'+'",marginRight:"1rem"},_after:{content:"''",width:"0",height:"0.2rem",bottom:"0",left:"0",position:"absolute",transition:"{easings.global}",bgColor:"{colors.third}"}},_hover:{"& [data-see-more]":{_after:{width:"100%"}}}}))},null,8,["result","options","class"])]),_:1},8,["slides"])],2)]),_:1},8,["data","header","class"])):ae("",!0)}}}),mnt=Q({__name:"HomeZoomSur",props:{results:{},header:{},linkList:{}},setup(e){const t=Yt(),n=G(t.backendLayout),r=G(t.siteBuilderInfos),i=e,a=W(()=>n.value==="home"),{t:o}=dr(),s=W(()=>i?.results?.slice(0,1)),l=W(()=>{const d=a.value?1:0;return i?.results?.slice(d,3+d)}),u=Va(),c=G(Object.values(u.blocHomeNewsFields));return(d,f)=>{const h=es,p=wD,g=Tn,v=F1;return e.results?.length>0?(E(),V(v,{key:0,header:e.header,headerId:"bloc_zoomsur_title",class:L([m(F)({justifyContent:"center","& [data-grid]":{width:"100%"},"& [data-title]":{textAlign:"center"}})])},{content:N(()=>[Y("div",{class:L([m(vi)({columns:{base:1,md:2},rowGap:{base:"1.5rem",md:"{spacing.gutter}"}}),m(F)({width:{base:"100%",md:"10/12",lg:"8/12"},margin:"0 auto"})])},[m(a)&&m(s)?(E(),U("div",{key:0,class:L(m(F)({position:"relative"}))},[(E(!0),U(Ae,null,ft(m(s),b=>(E(),V(h,{key:b.id,result:b,"fields-to-show":["teaser","datetime","specific_categories"],options:{showbgtxt:!0},class:L(m(F)({height:"100%",overflowY:"clip",margin:{base:"0 -1.5rem",md:0,_print:0},"& [data-list-item-content]":{height:"100%",alignItems:{base:"initial",md:"start"},flexDir:{mdDown:"column-reverse"},gap:{base:"0",md:"1.5rem"},_hover:{}},"& [data-txt]":{position:"relative",background:"transparent",gap:"1.5rem",maxWidth:"100%",justifyContent:"center",padding:{base:"3rem 1.5rem",md:"2.5rem 3rem"},transition:"{easings.global}",zIndex:2,_after:{content:"''",background:"linear-gradient(0deg, rgba(255,255,255,0) -3%, rgba(0,0,0,0.7) 22%)",width:"100%",height:"120%",position:"absolute",top:0,left:0,zIndex:-1,opacity:"0.7",_print:{display:"none"}},"&::before, & [data-img-container]":{width:{base:"100vw",sm:"calc(50vw - 1.5rem)",xl:"calc(100% + ((100vw - 8/12 * {spacing.wrap}) / 2) + 3rem)"}},"& *:not([data-category])":{color:"{colors.white}"},_print:{"& *":{color:"{colors.black} !important"},background:"none",_before:{display:"none !important"}}},"& [data-list-item-title]":{lineClamp:3,fontSize:"{fontSizes.h4}","& a":{overflow:"hidden"},"& a::before":{bottom:"auto",left:"auto",width:{base:"100vw",md:"100%"},height:"100vh",top:0,right:0}},"& [data-img]":{position:{base:"relative",md:"absolute"},width:"100%",height:{base:"45.5rem",md:e.linkList?.link?"calc(100% - 9.2rem)":"100%"},aspectRatio:"unset",maxWidth:"45.5rem",marginInline:"auto","& > *":{width:"100%",height:"100%",objectFit:"cover"},"& svg":{padding:{lg:"20rem"}}},_hover:{}}))},null,8,["result","class"]))),128)),m(r)?.theme==="Theme1"?(E(),V(p,{key:0,"aria-hidden":"true",class:L([m(vn)({size:{base:"15rem",md:"20rem",lg:"28rem"},fill:"{colors.fourth}"}),m(F)({position:"absolute",top:"0",left:"0",transform:"translate(-40%, -35%) rotate(150deg)",zIndex:"-1",hideBelow:"md",_print:{display:"none"}})])},null,8,["class"])):ae("",!0)],2)):ae("",!0),Y("div",{class:L(m(Vn)({alignItems:{base:"center",md:"start"},gap:"3rem"}))},[m(l)?(E(),U("div",{key:0,class:L(m(Vn)({alignItems:"start",justifyContent:{base:"center",md:"start"},gap:"2.5rem",flexDir:{base:"column",sm:"row",md:"column"}}))},[(E(!0),U(Ae,null,ft(m(l)?.slice(0,2),b=>(E(),V(h,{result:b,"fields-to-show":m(c),class:L(m(F)({maxWidth:{base:"27rem",sm:"initial",_print:"100%"},"& [data-list-item-content]":{flexDir:{sm:"column-reverse",md:"row-reverse"}},"& [data-txt]":{gap:"1rem"},"& [data-list-item-title]":{lineClamp:4,fontSize:"{fontSizes.h4}"},"& [data-img]":{width:{base:"100%",sm:"15rem",lg:"17rem"},minWidth:{base:"auto",sm:"15rem",lg:"17rem"},"& > *":{width:"100%"},"& svg":{padding:"20%"}},_hover:{}}))},null,8,["result","fields-to-show","class"]))),256))],2)):ae("",!0),m(a)&&e.linkList?.link?(E(),V(g,{key:1,link:{href:e.linkList?.link,text:e.linkList?.text??d.$t("common.buttons.home.news")},variante:{classes:"button",bgColor:"primary"}}
846,null,8,["link"])):ae("",!0)],2)],2)]),_:1},8,["header","class"])):ae("",!0)}}}),gnt=Q({__name:"HomeNews",props:{data:{},header:{}},setup(e){const t=Yt(),n=G(t.backendLayout),r=G(t.siteBuilderInfos),i=e,a=W(()=>n.value==="home"),{t:o}=dr(),s=W(()=>i?.data?.results?.slice(0,1)),l=W(()=>{const d=a.value?1:0;return i?.data?.results?.slice(d,3+d)}),u=Va(),c=G(Object.values(u.blocHomeNewsFields));return(d,f)=>{const h=es,p=wD,g=Tn,v=SD,b=F1;return e.data?.results?.length>0?(E(),V(b,{key:0,header:e.header,headerId:"bloc_news_title",class:L([m(F)({justifyContent:"center","& [data-grid]":{width:"100%"},"& [data-title]":{textAlign:{base:"center",_print:"left"}}})])},{content:N(()=>[Y("div",{class:L([m(vi)({columns:{base:1,md:2},rowGap:{base:"1.5rem",md:"{spacing.gutter}"}}),m(F)({width:{base:"100%",md:"10/12",lg:"8/12"},margin:"0 auto"})])},[m(a)&&m(s)?(E(!0),U(Ae,{key:0},ft(m(s),x=>(E(),U("div",{key:x.id,class:L(m(F)({position:"relative"}))},[H(h,{result:x,"fields-to-show":m(c),options:{showbgtxt:!0,img:{noDescription:!0}},class:L(m(F)({height:"100%",overflowY:"clip",margin:{base:"0 -1.5rem",md:0,_print:0},"& [data-list-item-content]":{height:"100%",alignItems:{base:"initial",md:"start"},flexDir:{mdDown:"column-reverse"},gap:{base:"0",md:"1.5rem"},_hover:{}},"& [data-txt]":{position:"relative",background:"transparent",gap:"1.5rem",maxWidth:"100%",justifyContent:"center",padding:{base:"3rem 1.5rem",md:"2.5rem 3rem"},transition:"{easings.global}",zIndex:2,_after:{content:"''",background:"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.9) 22%)",width:"100%",height:"120%",position:"absolute",top:0,left:0,zIndex:-1,opacity:"0.7",_print:{display:"none"}},"&::before, & [data-img-container]":{width:{base:"100vw",sm:"calc(50vw - 1.5rem)",xl:"calc(100% + ((100vw - 8/12 * {spacing.wrap}) / 2) + 3rem)"}},"& *:not([data-category])":{color:"{colors.white}"},_print:{"& *":{color:"{colors.black} !important"},background:"none",_before:{display:"none !important"}}},"& [data-list-item-title]":{lineClamp:3,fontSize:"{fontSizes.h4}","& a":{overflow:"hidden"},"& a::before":{bottom:"auto",left:"auto",width:{base:"100vw",md:"100%"},height:"100vh",top:0,right:0}},"& [data-img]":{position:{base:"relative",md:"absolute"},width:"100%",height:{base:"45.5rem",md:"calc(100% - 9.2rem)"},aspectRatio:"unset",maxWidth:"45.5rem",marginInline:"auto","& > *":{width:"100%",height:"100%",objectFit:"cover"},"& svg":{padding:{lg:"20rem"}}},_hover:{}}))},null,8,["result","fields-to-show","class"]),m(r)?.theme==="Theme1"?(E(),V(p,{key:0,"aria-hidden":"true",class:L([m(vn)({size:{base:"15rem",md:"20rem",lg:"28rem"},fill:"{colors.fourth}"}),m(F)({position:"absolute",top:"0",left:"0",transform:"translate(-40%, -35%) rotate(150deg)",zIndex:"-1",hideBelow:"md",_print:{display:"none"}})])},null,8,["class"])):ae("",!0)],2))),128)):ae("",!0),Y("div",{class:L(m(Vn)({alignItems:{base:"center",md:"start"},gap:"3rem"}))},[m(l)?(E(),U("div",{key:0,class:L(m(Vn)({alignItems:"start",justifyContent:{base:"center",md:"start"},gap:"2.5rem",flexDir:{base:"column",sm:"row",md:"column"}}))},[(E(!0),U(Ae,null,ft(m(l),x=>(E(),V(h,{result:x,"fields-to-show":m(c),class:L(m(F)({maxWidth:{base:"27rem",sm:"initial",_print:"100%"},"& [data-list-item-content]":{flexDir:{sm:"column-reverse",md:"row-reverse"}},"& [data-txt]":{gap:"1.5rem"},"& [data-list-item-title]":{lineClamp:4,fontSize:"{fontSizes.h4}"},"& [data-img]":{width:{base:"100%",sm:"15rem",lg:"17rem"},minWidth:{base:"auto",sm:"15rem",lg:"17rem"},"& > *":{width:"100%"},"& svg":{padding:"20%"}},_hover:{}}))},null,8,["result","fields-to-show","class"]))),256))],2)):ae("",!0),m(a)&&e.data?.linkList?.[0]?.link?(E(),V(g,{key:1,link:{href:e.data?.linkList?.[0]?.link,text:e.data?.settings?.titlePageList||d.$t("common.buttons.home.news")},variante:{classes:"button",bgColor:"primary"}},null,8,["link"])):ae("",!0)],2),m(r)?.theme==="Theme2"?(E(),V(v,{key:1,"aria-hidden":"true",class:L([m(F)({position:"absolute",bottom:"0",left:"0",zIndex:"-1",transform:{base:"translateX(-1.5rem)",lg:"translateX(calc(-1 * ((100vw - {spacing.wrap}) / 2)))"},height:{base:"auto",md:"100%"},"& *":{fill:"{colors.fourth}"},_print:{display:"none"}})])},null,8,["class"])):ae("",!0)],2)]),_:1},8,["header","class"])):ae("",!0)}}}),ynt=Q({__name:"HomeEvent",props:{data:{},header:{},subheader:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=G(t.backendLayout),i=n.value?.theme==="Theme1",a=e,o=W(()=>r.value==="home"),{t:s}=dr(),l=W(()=>o.value?a?.header||a.data?.settings?.title:`${s("blocks.blocsLies.title")}~${s(`blocks.blocsLies.type.${a.data?.[0]?.type}`)}`),u=W(()=>a?.data?.results),c=Va(),d=G(Object.values(c.blocHomeEventFields));return(f,h)=>{const p=es,g=D1,v=Tn,b=F1;return m(u).length>0?(E(),V(b,{key:0,data:e.data,header:m(l),subheader:e.subheader,headerId:"bloc_events_title",class:L([m(F)({justifyContent:"center",position:"relative",zIndex:"0","& [data-grid]":{width:"100%"},"& [data-title]":{textAlign:"center",width:{base:"100%",lg:"1/2"},marginLeft:"auto",marginRight:"auto"}})])},{content:N(()=>[Y("div",{"aria-live":"polite",class:L([m(F)({width:"100%",position:"relative"}),i?m(F)({_before:{content:"''",width:{base:"100vw",lg:"100%"},height:"50%",bottom:"0",left:"50%",transform:"translateX(-50%)",bgColor:"{colors.lightGray}",position:"absolute",zIndex:"-2",_print:{display:"none"}}}):null])},[H(g,{slides:m(u),blocTitleId:"bloc_events_title",breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:1,autoHeight:!0},930:{slidesPerView:2,autoHeight:!0},1024:{slidesPerView:2,autoHeight:!1},1440:{slidesPerView:3,autoHeight:!1}},wrapperTag:"div",slideTag:"div",class:L(m(F)({padding:{base:"0",sm:"0 5rem",md:"0 8rem"},"& #bloc_events_title_slider_prev":{transform:{base:"translate(-50%, -50%)",sm:"translate(0, -50%)"}},"& #bloc_events_title_slider_next":{transform:{base:"translate(50%, -50%)",sm:"translate(0, -50%)"}}}))},{slideContent:N(x=>[H(p,{result:x.slide,"fields-to-show":m(d),options:{img:{noDescription:!0}
846},class:L([m(qM)(),i?m(WM)():m(GM)(),i?m(F)({"& [data-list-item-content]":{paddingLeft:{sm:"1.5rem"}}}):null])},null,8,["result","fields-to-show","class"])]),_:1},8,["slides","class"])],2)]),bottom:N(()=>[m(o)&&e.data?.linkList?.[0]?.link?(E(),V(v,{key:0,link:{href:e.data?.linkList?.[0]?.link,text:f.$t("common.buttons.home.events")},variante:{classes:"button",bgColor:"primary"}},null,8,["link"])):ae("",!0)]),_:1},8,["data","header","subheader","class"])):ae("",!0)}}}),vnt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 181 181"};function _nt(e,t){return E(),U("svg",vnt,[...t[0]||(t[0]=[Y("path",{fill:"#E85444","fill-rule":"evenodd",d:"m88.433 180.172.038-1.988a91 91 0 0 0 3.47 0l.039 1.988a95 95 0 0 1-3.547 0m10.598-.411-.192-1.978a88 88 0 0 0 10.239-1.61l.424 1.942a90 90 0 0 1-10.47 1.646m23.988-5.741-.725-1.851a88 88 0 0 0 3.192-1.324l.798 1.821a91 91 0 0 1-3.265 1.354m9.621-4.442-.939-1.753a88 88 0 0 0 8.832-5.423l1.138 1.63a90 90 0 0 1-9.031 5.546m19.944-14.512-1.378-1.433a87 87 0 0 0 2.444-2.445l1.434 1.378a89 89 0 0 1-2.5 2.5m7.196-7.781-1.536-1.262a88 88 0 0 0 6.098-8.38l1.674 1.074a91 91 0 0 1-6.236 8.568m12.904-21.019-1.821-.798a86 86 0 0 0 1.323-3.192l1.852.726a91 91 0 0 1-1.354 3.264m3.669-9.943-1.902-.576a88 88 0 0 0 2.41-10.076l1.958.348a89 89 0 0 1-2.466 10.304m3.836-24.36-1.987-.04a91 91 0 0 0 0-3.47l1.987-.038a87 87 0 0 1 0 3.547m-.41-10.6-1.978.193a88 88 0 0 0-1.61-10.239l1.942-.424a90 90 0 0 1 1.646 10.47m-5.741-23.987-1.852.725a87 87 0 0 0-1.323-3.192l1.821-.797a90 90 0 0 1 1.354 3.264m-4.443-9.62-1.752.938a88 88 0 0 0-5.423-8.832l1.63-1.138a90 90 0 0 1 5.545 9.031M155.084 27.81
846a90 90 0 0 0-2.5-2.5l-1.378 1.434a88 88 0 0 1 2.445 2.444zm-7.781-7.196-1.262 1.536a88 88 0 0 0-8.38-6.098l1.073-1.674a90 90 0 0 1 8.569 6.236M126.284 7.711l-.798 1.821a87 87 0 0 0-3.192-1.323l.725-1.851q1.648.645 3.265 1.353m-9.943-3.67-.576 1.904a87 87 0 0 0-10.076-2.411l.347-1.958a89 89 0 0 1 10.305 2.466M91.98.207a92 92 0 0 0-3.547 0l.038 1.988a90 90 0 0 1 3.47 0zm-10.598.41.192 1.979a88 88 0 0 0-10.24 1.61l-.423-1.943A90 90 0 0 1 81.38.616M57.394 6.358q-1.65.645-3.264 1.353l.797 1.821A88 88 0 0 1 58.12 8.21zm-9.62 4.442.938 1.752a88 88 0 0 0-8.832 5.424l-1.138-1.63a90 90 0 0 1 9.031-5.546M27.828 25.312q-1.275 1.225-2.5 2.499l1.434 1.378a89 89 0 0 1 2.444-2.444zm-7.196 7.78 1.536 1.263a88 88 0 0 0-6.098 8.38l-1.674-1.074a90 90 0 0 1 6.236-8.569M7.729 54.112l1.821.797a87 87 0 0 0-1.323 3.192l-1.852-.725q.646-1.648 1.354-3.264m-3.67 9.942 1.904.577a87 87 0 0 0-2.411 10.075l-1.958-.347A89 89 0 0 1 4.06 64.054M.225 88.415l1.987.039a90 90 0 0 0 0 3.47l-1.987.038a92 92 0 0 1 0-3.547m.41 10.599 1.979-.193a88 88 0 0 0 1.61 10.239l-1.943.425A90 90 0 0 1 .634 99.014m5.741 23.988 1.852-.726q.63 1.612 1.323 3.192l-1.821.798a90 90 0 0 1-1.354-3.264m4.443 9.62 1.752-.939a88 88 0 0 0 5.424 8.832l-1.63 1.138a90 90 0 0 1-5.546-9.031m14.512 19.944 1.433-1.378a88 88 0 0 0 2.444 2.445l-1.378 1.433a90 90 0 0 1-2.5-2.5m7.78 7.196 1.262-1.536a88 88 0 0 0 8.38 6.098l-1.073 1.674a90 90 0 0 1-8.569-6.236m21.02 12.904.797-1.821q1.58.692 3.192 1.324l-.725 1.851a90 90 0 0 1-3.265-1.354m9.942 3.669.576-1.902a87 87 0 0 0 10.076 2.41l-.347 1.958a89 89 0 0 1-10.305-2.466","clip-rule":"evenodd"},null,-1)])])}const bnt={render:_nt},xnt=Q({__name:"HomeKiosque",props:{data:{},header:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos);e.data?.nbResults;const i=n.value?.identifier==="Cdr",a=n.value?.theme==="Theme1",o=n.value?.theme==="Theme2";return(s,l)=>{const u=es,c=bnt,d=SD,f=Tn,h=F1;return e.data?.results?.length?(E(),V(h,{key:0,header:e.header,headerId:"bloc_kiosque_title",class:L([m(F)({justifyContent:"center","& [data-grid]":{width:{base:"100%",lg:"10/12"}},"& [data-title]":{},"& [data-buttons-container]":{marginTop:"1rem"},_before:{zIndex:"5"},_print:{display:"none !important"}})])},{content:N(()=>[Y("div",{"aria-live":"polite",class:L([m(vi)({columns:{base:1,sm:2,md:3},gap:{base:"1.5rem !important",md:"3rem !important"}}),m(F)({position:"relative",padding:"3.5rem 0 3rem 0","& > *:nth-child(2n) > svg":{top:"calc(27rem - 7rem)"}})])},[(E(!0),U(Ae,null,ft(e.data?.results?.slice(0,3),p=>(E(),U("div",{key:p,class:L([m(F)({position:"relative",transform:"translateY(0%)",transition:"{easings.global}","& *":{transition:"{easings.global}"},"& > svg":{position:"absolute",left:"20rem",top:"7rem",transform:"translate(-50%, -50%) rotate(0)",zIndex:"-1"}}),o?null:m(F)({_hover:{transform:"translateY(-3%)","& > svg":{transform:"translate(-50%,-50%) rotate(180deg)"},"& [data-list-item-title]":{color:"{colors.primary}",textAlign:"left"}}})])},[H(u,{result:p,options:{noLink:o,showcategories:!0},"fields-to-show":["datetime","author","specific_categories","ressource"],class:L([m(F)({position:"relative","& [data-list-item-content]":{flexDir:"column-reverse",justifyContent:{base:"center",md:"start"},alignItems:{base:"center",sm:"start"}},"& [data-txt]":{maxWidth:{base:"24rem",md:"100%"},"& .richtext_field p":{lineClamp:"4"}},"& [data-list-item-title]":{maxWidth:"100%",wordBreak:"break-word",fontSize:"{fontSizes.h4}",color:"{colors.black}"},"& [data-metadata]":{width:"100%"},"& [data-kiosque-links]":{marginTop:{base:"1rem",md:"1.5rem"},justifyContent:"flex-start"},"& [data-img]":{aspectRatio:"initial",width:"auto",alignSelf:{base:"center",md:"start"},display:"flex",alignItems:"center","& > *":{boxShadow:"{shadows.subtle}"},_before:{display:"none"}},_hover:{"& [data-img]":{"& > *":{scale:1}}}}),i?m(F)({"& [data-field-link]":{srOnly:"true",inset:"0",width:"100%",height:"100%",opacity:"0%",clip:"initial","& a":{height:"100%"}}}):null])},null,8,["result","options","class"]),a?(E(),V(c,{key:0,"aria-hidden":"true",class:L(m(vn)({size:"18.2rem",stroke:"{colors.fourth}"}))},null,8,["class"])):ae("",!0)],2))),128)),o?(E(),U("div",{key:0,class:L(m(F)({position:"absolute",bottom:"0",right:"auto",left:"0",transform:"translateX(-40%)",zIndex:"-1",width:"100vw"}))},[H(d,{"aria-hidden":"true",class:L([m(vn)({size:"86rem",stroke:"{colors.fourth}"})])},null,8,["class"])],2)):ae("",!0)],2)]),bottom:N(()=>[H(f,{link:{href:e.data?.linkList.link,text:s.$t("common.buttons.home.kiosque")},variante:{classes:"button",bgColor:"primary"}},null,8,["link"])]),_:1},8,["header","class"])):ae("",!0)}}}),wnt={key:0,class:"bloc_home maj"},Snt={key:0,class:"bloc_home_title_container"},Cnt={class:"bloc_home_content"},Tnt={class:"list_item"},knt={class:"list_item_content"},Ent={key:0},Mnt=Q({__name:"LastUpdate",props:{header:{},data:{default:{}}},setup(e){return(t,n)=>{const r=s6,i=MX;return e.data?.results?(E(),U("div",wnt,[e.header?(E(),U("div",Snt,[H(r,{home:!0,header:e.header},null,8,["header"])])):ae("",!0),Y("ul",Cnt,[(E(!0),U(Ae,null,ft(e.data.results,a=>(E(),U("li",Tnt,[Y("div",knt,[H(i,{title:a?.title,link:a.links[0],listItemLink:!0},null,8,["title","link"]),a.tsedit?(E(),U("span",Ent,de(t.$t("blocHome.maj"))+" "+de(("useDisplayDate"in t?t.useDisplayDate:m(ro))(a.tsedit,"DAY_MONTH_YEAR_FULL_TEXT")),1)):ae("",!0)])]))),256))])])):ae("",!0)}}}),Ant={key:0,class:"badge"},Pnt=Q({__name:"ListItemDemarches",props:{result:{default:{}},popin:{type:Boolean,default:!0}},setup(e){return(t,n)=>{const r=es;return E(),U(Ae,null,[H(r,{result:e.result,popin:e.popin,fieldsToShow:[""],options:{showimg:!1,showcategories:!1,hn:"h4"},class:"cell shrink"},null,8,["result","popin"]),e.result.onlineProcess?(E(),U("span",Ant,"En ligne")):ae("",!0)],64)}}}),Dnt={class:"category_title"},Int={class:"never_hidden"},$nt={class:"category_item"},Lnt={class:"grid-x align-middle"},Rnt=Q({__name:"GroupByCategory",props:{category:{default:{}},popin:{type:Boolean,default:!0}},setup(e){const t=e,n=G(!1),r=t.category?.results?.slice(4)?.length>0;return(i,a)=>{const o=Pnt,s=E6,l=M6,u=k6;return E(),U(Ae,null,[Y("h3",Dnt,de(e.category?.title==="uncategorized"?"Non catégorisé":e.category?.title),
8461),H(u,{open:m(n),"onUpdate:open":a[0]||(a[0]=c=>$t(n)?n.value=c:null),class:L(r?"collapsible_container":null)},{default:N(()=>[Y("ul",Int,[(E(!0),U(Ae,null,ft(e.category?.results?.slice(0,4),c=>(E(),U("li",$nt,[H(o,{result:c,popin:e.popin},null,8,["result","popin"])]))),256))]),r?(E(),V(s,{key:0,class:L(["more_less",m(n)?"less":"more"])},{default:N(()=>[st(de(m(n)?i.$t("common.showLess"):i.$t("common.showMore")),1)]),_:1},8,["class"])):ae("",!0),H(l,null,{default:N(()=>[Y("ul",null,[(E(!0),U(Ae,null,ft(e.category?.results?.slice(4),c=>(E(),U("li",Lnt,[H(o,{result:c,popin:e.popin},null,8,["result","popin"])]))),256))])]),_:1})]),_:1},8,["open","class"])],64)}}}),Ont=Q({__name:"GroupByMonth",props:{title:{}},setup(e){return(t,n)=>(E(),U(Ae,null,[Y("h2",{class:L(m(F)({textAlign:"center",fontSize:{base:"3em",md:"3.5em"},textTransform:"uppercase",marginBottom:0,borderTop:"{borders.sm} {colors.mediumGray}",paddingTop:"2rem",marginTop:{base:"1rem",sm:"3rem"}}))},de(e.title==="uncategorized"?"Non catégorisé":e.title),3),me(t.$slots,"results")],64))}}),Bnt={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 20"};function Fnt(e,t){return E(),U("svg",Bnt,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"M16.09 5.38 14.71 4l-5.98 6 5.94 6 1.38-1.37-4.57-4.62zM3.91 4.16h1.94v11.67H3.91z"},null,-1)])])}const znt={render:Fnt},Nnt={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 20"};function Vnt(e,t){return E(),U("svg",Nnt,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"m13.12 5.43-1.38-1.38-5.98 6 5.95 6 1.37-1.37-4.57-4.62z"},null,-1)])])}const jnt={render:Vnt},Unt={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 20"};function Hnt(e,t){return E(),U("svg",Unt,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"m8.52 10.01-4.57 4.62L5.33 16l5.94-6-5.98-6-1.38 1.38zM14.15 4.16h1.94v11.67h-1.94z"},null,-1)])])}const qnt={render:Hnt},Wnt={key:0},Gnt=["aria-label","title"],Znt=["aria-label","title"],Knt=["aria-label","title"],Ynt={key:3},Xnt=["aria-label","title"],Jnt=Q({__name:"Pagination",props:Ppe({resultsScrollCount:{},itemsPerPage:{default:10},items:{},title:{},isSearch:{type:Boolean,default:!1}},{modelValue:{default:1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=e,r=Fpe(e,"modelValue"),i=W(()=>Math.ceil(n.resultsScrollCount/n.itemsPerPage)),a=[F({marginBottom:0,transition:"{easings.global}","& a":{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",_hover:{boxShadow:"unset !important"}},"& svg":{width:"2rem",height:"2rem","& path":{fill:"white"}}}),gp({size:"5rem",background:"{colors.third}",_hover:{background:"transparent",border:".1rem solid {colors.third}","& path":{fill:"{colors.third}"}}})],o=W(()=>r.value==1),s=W(()=>r.value>=i.value);return t({pagesTotal:i}),(l,u)=>{const c=znt,d=RAe,f=jnt,h=jAe,p=NAe,g=LAe,v=V6,b=VAe,x=qnt,_=OAe,w=zAe,C=$Ae;return E(),V(C,{page:r.value,"onUpdate:page":u[0]||(u[0]=T=>r.value=T),total:e.resultsScrollCount,"items-per-page":+e.itemsPerPage,"sibling-count":1,"show-edges":!0,class:L(m(F)({_print:{display:"none"}}))},{default:N(()=>[m(i)>1?(E(),V(w,{key:0,as:"ul",class:L([m(js)({columnGap:"1rem",justifyContent:{base:"center",md:"start"}}),m(Sa)({shadowInitial:"0"}),m(F)({margin:"0","& li":{fontSize:"{fontSizes.h4}"}})])},{default:N(({items:T})=>[m(o)?ae("",!0):(E(),U("li",Wnt,[H(d,{asChild:""},{default:N(()=>[Y("p",{class:L(a)},[Y("a",{href:"#","aria-label":l.$t("search.pagination.paginationFirst"),title:l.$t("search.pagination.paginationFirst")},[H(c,{"aria-hidden":"true"})],8,Gnt)])]),_:1})])),m(o)?ae("",!0):(E(),U("li",{key:1,class:L(m(F)({marginRight:"1rem"}))},[H(h,{asChild:""},{default:N(()=>[Y("p",{class:L(a)},[Y("a",{href:"#","aria-label":l.$t("search.pagination.paginationPrev"),title:l.$t("search.pagination.paginationPrev")},[H(f,{"aria-hidden":"true"})],8,Znt)])]),_:1})],2)),(E(!0),U(Ae,null,ft(T,(k,A)=>(E(),U("li",{key:A,class:L(m(F)({margin:"0 0.5rem"}))},[k.type==="page"&&k.value!==r.value?(E(),V(p,{key:0,value:k.value,"aria-label":l.$t("search.pagination.paginationListItem")+" "+k.value,title:l.$t("search.pagination.paginationListItem")+" "+k.value,as:"a",href:"#"},{default:N(()=>[Y("span",{class:L(m(fn)())},de(l.$t("search.pagination.paginationListItem"))+" ",3),Y("span",null,de(k.value),1)]),_:2}
846,1032,["value","aria-label","title"])):k.type==="page"&&k.value===r.value?(E(),V(p,{key:1,value:k.value,"aria-label":l.$t("search.pagination.paginationCurrent")+" : "+k.value,title:l.$t("search.pagination.paginationCurrent")+" : "+k.value,as:"span",class:L(k.value===r.value?m(F)({fontFamily:"{fonts.bold}"}):null)},{default:N(()=>[Y("span",{class:L(m(fn)())},de(l.$t("search.pagination.paginationListItem"))+" ",3),st(" "+de(k.value),1)]),_:2},1032,["value","aria-label","title","class"])):(E(),V(g,{key:2,index:A,class:"unavailable",as:"span"},{default:N(()=>[...u[1]||(u[1]=[st(" ⦠",-1)])]),_:1},8,["index"]))],2))),128)),m(s)?ae("",!0):(E(),U("li",{key:2,class:L(m(F)({marginLeft:"2rem"}))},[H(b,{asChild:""},{default:N(()=>[Y("p",{class:L(a)},[Y("a",{href:"#","aria-label":l.$t("search.pagination.paginationNext"),title:l.$t("search.pagination.paginationNext")},[H(v,{"aria-hidden":"true"})],8,Knt)])]),_:1})],2)),m(s)?ae("",!0):(E(),U("li",Ynt,[H(_,{asChild:""},{default:N(()=>[Y("p",{class:L(a)},[Y("a",{href:"#","aria-label":l.$t("search.pagination.paginationLast"),title:l.$t("search.pagination.paginationLast")},[H(x,{"aria-hidden":"true"})],8,Xnt)])]),_:1})]))]),_:1},8,["class"])):ae("",!0)]),_:1},8,["page","total","items-per-page","class"])}}}),Qnt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function ert(e,t){return E(),U("svg",Qnt,[...t[0]||(t[0]=[Y("path",{fill:"#fff","fill-rule":"evenodd",d:"M11.08 4a7.1 7.1 0 0 1 5.01 2.063 7.1 7.1 0 0 1 1.285 8.273q-.084.176-.196.336l3.283 3.283a1.773 1.773 0 1 1-2.507 2.507l-3.282-3.283q-.161.112-.337.196a7.1 7.1 0 0 1-8.273-1.285A7.09 7.09 0 0 1 11.081 4m.434 11.574a4.52 4.52 0 1 0-.905-8.993 4.52 4.52 0 0 0 .905 8.993","clip-rule":"evenodd"},null,-1)])])}const trt={render:ert},nrt={key:0,class:"mandatory"},Dp=Q({__name:"T3FormLabel",props:{name:{},field:{},type:{default:""},tag:{default:"label"}},setup(e){const t=e,n=W(()=>t.field.properties?.fluidAdditionalAttributes?.required??t.field.validators.required??t.field.validators?.NotEmpty);return(r,i)=>(E(),V(yn(e.tag),{for:e.tag=="label"?e.field.identifier:null},{default:N(()=>[st(de(e.field.label)+" ",1),m(n)?(E(),U("span",nrt,"*")):ae("",!0)]),_:1},8,["for"]))}}),Lr
vendor: 27,076 bytes, line 846
846e={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(
846Lre);const Rre={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["w
846off"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Rre);var gs=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},B0,dy,rh;class rrt{constructor(...t){B0.set(this,new Map),dy.set(this,new Map),rh.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[r,i]of Object.entries(t)){r=r.toLowerCase(),i=i.map(s=>s.toLowerCase()),gs(this,rh,"f").has(r)||gs(this,rh,"f").set(r,new Set);const a=gs(this,rh,"f").get(r);let o=!0;for(let s of i){const l=s.startsWith("*");if(s=l?s.slice(1):s,a?.add(s),o&&gs(this,dy,"f").set(r,s),o=!1,l)continue;const u=gs(this,B0,"f").get(s);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);gs(this,B0,"f").set(s,r)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<t.length;return!(r.length<n.length-1)&&i?null:gs(this,B0,"f").get(r)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&gs(this,dy,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:gs(this,rh,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of gs(this,rh,"f").values())Object.freeze(t);return this}_getTestState(){return{types:gs(this,B0,"f"),extensions:gs(this,dy,"f")}}}B0=new WeakMap,dy=new WeakMap,rh=new WeakMap;const irt=new rrt(Rre,Lre)._freeze();function art(e){return a7e(e.map(t=>irt.getExtension(t)).filter(t=>t!=null))}const ort=["data-src"],Ore=Q({__name:"FormFieldInfo",props:{field:{},showErrorMessage:{type:Boolean},customErrorMessage:{},fileLoaded:{type:Boolean},preview:{}},setup(e){const t=e,{locale:n}=dr(),r=t.field?.properties?.elementDescription,i=t.field?.properties?.dateFormat,a=W(()=>{switch(i){case"time":return"HH:mm";case"datetime":return"dd/MM/yyyy HH:mm";default:return"dd/MM/yyyy"}}),o=W(()=>{let l=a.value.toLowerCase();return n.value==="fr"&&(l=l.replaceAll("d","j").replaceAll("y","a")),l}),s=F({fontSize:"1.2em",marginBottom:"0",lineHeight:"2",marginTop:"1rem",paddingLeft:"1rem"});return(l,u)=>{const c=qE("lazy-load");return E(),U("div",null,[e.showErrorMessage&&e.customErrorMessage?(E(),U("p",{key:0,role:"alert",class:L([m(s),m(F)({bgColor:"{colors.danger}",color:"{colors.white}",marginTop:"0",_print:{bgColor:"{colors.white}",color:"{colors.danger}",marginBottom:"1.5rem"}})])},de(e.customErrorMessage),3)):ae("",!0),m(r)?(E(),U("p",{key:1,class:L(m(s))},de(m(r)),3)):ae("",!0),m(i)?(E(),U("p",{key:2,class:L(m(s))},de(l.$t("form.file.onlyFormat"))+" : "+de(m(o)),3)):ae("",!0),e.field?.properties?.allowedMimeTypes?.length>0?(E(),U("p",{key:3,class:L(m(s))},de(l.$t("form.file.acceptedFormat"))+" : "+de(("mimesToExtensions"in l?l.mimesToExtensions:m(art))(e.field?.properties?.allowedMimeTypes).join(", ")),3)):ae("",!0),e.fileLoaded?(E(),U("p",{key:4,"aria-live":"polite",class:L([m(s),m(F)({borderLeft:"{borders.sm} {colors.success}",marginLeft:"1rem"})])},[st(de(l.$t("form.file.add"))+". "+de(e.preview)+" ",1),e.preview?_o((E(),U("img",{key:0,"data-src":e.preview,alt:"",width:"200",height:"200",class:L(m(F)({objectFit:"cover"}))},null,10,ort)),[[c]]):ae("",!0)],2)):ae("",!0)])}}}),srt=["value","id","name","type","title","placeholder","autocomplete","aria-describedby","aria-invalid"],Ta=Q({__name:"T3FormField",props:{name:{},field:{}
846,type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean,default:!1},componentCustomClass:{default:""},labelCustomClass:{default:""},inputCustomClass:{default:""},fileLoaded:{type:Boolean}},setup(e){const t=e,{value:n,setValue:r,meta:i,errorMessage:a}=ri(t.name,t.field.validators,{label:t.field.label}),o=W(()=>a.value?.replace(/^["'](.+(?=["']$))["']$/,"$1"));d9e();const s=W(()=>i.touched&&!!o.value),l=W(()=>t.field.type==="telephone"?"tel":t.field.type);return(u,c)=>{const d=Dp,f=Ore;return E(),U("div",{class:L([m(F)({position:"relative",_print:{marginBottom:"1.5rem"}})])},[e.field.label&&e.field.label?.length&&e.showLabel?(E(),V(d,{key:0,field:e.field,name:e.name,tag:"label",class:L([e.labelCustomClass,e.labelCustomClass==="srOnly"?m(fn)():null])},null,8,["field","name","class"])):ae("",!0),me(u.$slots,"input",{showErrorMessage:s.value&&o.value},()=>[_o(Y("input",{"onUpdate:modelValue":c[0]||(c[0]=h=>$t(n)?n.value=h:null),value:m(n),id:e.field.identifier,name:e.name,type:l.value,title:e.field.label?e.field.label:void 0,placeholder:e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete,class:L(e.inputCustomClass),"aria-describedby":`${e.field.properties?.elementDescription?`description-${e.field.identifier}`:""} ${s.value&&o.value?`error_${e.field.identifier}`:""}`,"aria-invalid":s.value&&o.value?!0:null},null,10,srt),[[Eq,m(n)]])]),me(u.$slots,"infos",{},()=>[H(f,{field:e.field,showErrorMessage:s.value,customErrorMessage:o.value,fileLoaded:e.fileLoaded,preview:m(n)},{default:N(()=>[st(de(e.field.properties?.elementDescription),1)]),_:1},8,["field","showErrorMessage","customErrorMessage","fileLoaded","preview"])])],2)}}}),lrt=["value","id","name","type","placeholder","autocomplete","aria-invalid"],urt=Q({__name:"T3FormFieldText",props:{name:{},field:{},type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=n.field.properties?.fluidAdditionalAttributes?.isKeyword,i=t,{$emit:a}=vt(),{value:o,setValue:s}=ri(()=>n.name);s(n.field.value);const l=c=>{u(c),a("filters:onFieldValueChanged",{...n.field})},u=c=>{s(c),i("update:value",c)};return(c,d)=>{const f=Tn,h=trt,p=Ta;return E(),V(p,un(pn(n)),{input:N(g=>[_o(Y("input",{"onUpdate:modelValue":d[0]||(d[0]=v=>$t(o)?o.value=v:null),value:m(o),id:e.field.identifier,name:e.name,type:e.field.type,placeholder:e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete,onChange:d[1]||(d[1]=v=>l(v.target.value)),"aria-invalid":g.showErrorMessage?!0:null,class:L([m(F)({paddingLeft:m(r)?"3.5rem":null,paddingRight:m(r)?"4.5rem":null})])},null,42,lrt),[[Eq,m(o)]]),m(r)&&m(o)?.length>0?(E(),V(f,{key:0,type:"button",title:c.$t("form.reinitField"),link:{text:c.$t("form.reinitField")},onClick:d[2]||(d[2]=v=>l("")),variante:{classes:"btnClose",size:"sm"},showSr:!0,picto:"close",class:L(m(F)({position:"absolute",bottom:"0.7rem",right:"0.5rem"}))},null,8,["title","link","class"])):ae("",!0),m(r)?(E(),V(h,{key:1,"aria-hidden":"true",class:L(m(F)({width:"2rem",height:"2rem",position:"absolute",bottom:"1.5rem",left:"0","& *":{fill:"{colors.black}"}}))},null,8,["class"])):ae("",!0)]),_:1},16)}}}),crt=["id","name","aria-invalid"],drt=Q({__name:"T3FormFieldTextarea",props:{name:{},field:{}},setup(e){const t=e,{value:n}=ri(()=>t.name);return(r,i)=>{const a=Ta;return E(),V(a,un(pn(t)),{input:N(o=>[_o(Y("textarea",{"onUpdate:modelValue":i[0]||(i[0]=s=>$t(n)?n.value=s:null),id:e.field.identifier,name:e.name,"aria-invalid":o.showErrorMessage?!0:null},null,8,crt),[[s2,m(n)]])]),_:1},16)}}}),frt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 31"};function hrt(e,t){return E(),U("svg",frt,[...t[0]||(t[0]=[Y("circle",{cx:"14.999",cy:"15.062",r:"15.001",fill:"#E1B901"},null,-1),Y("path",{fill:"#1E1E1E","fill-rule":"evenodd",d:"m10.201 14.405 1.414-1.414L15 16.375l3.384-3.384 1.414 1.414L15 19.203z","clip-rule":"evenodd"},null,-1)])])}const Bre={render:hrt},prt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function mrt(e,t){return E(),U("svg",prt,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"M17 15.342c0-.757-.182-1.498-.521-2.136-.34-.638-.824-1.146-1.39
8466-1.466.311-.602.482-1.293.495-2a4.6 4.6 0 0 0-.419-2.026 3.73 3.73 0 0 0-1.217-1.49 2.9 2.9 0 0 0-1.679-.545H8.947a.88.88 0 0 0-.67.333A1.26 1.26 0 0 0 8 6.816v11.368c0 .302.1.59.277.804a.88.88 0 0 0 .67.333h4.737c.88-.001 1.722-.42 2.344-1.167.621-.746.97-1.757.972-2.812m-7.105-7.39h2.368c.377 0 .738.18 1.005.5s.416.754.416 1.206-.15.886-.416 1.206c-.267.32-.628.5-1.005.5H9.895zm3.79 9.095h-3.79v-3.41h3.79c.376 0 .737.18 1.004.5s.416.753.416 1.205-.15.886-.416 1.206c-.267.32-.628.5-1.005.5"},null,-1)])])}const grt={render:mrt},yrt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function vrt(e,t){return E(),U("svg",yrt,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"m13.642 15.834-2.018 2.017a3.11 3.11 0 0 1-4.398-4.397l2.017-2.02a.619.619 0 0 0-.875-.874l-2.017 2.02a4.347 4.347 0 0 0 6.15 6.146l2.017-2.018a.619.619 0 0 0-.874-.874zM18.65 6.275A4.32 4.32 0 0 0 15.578 5a4.32 4.32 0 0 0-3.073 1.272l-2.02 2.019a.619.619 0 1 0 .874.875l2.02-2.018a3.1 3.1 0 0 1 2.198-.91 3.11 3.11 0 0 1 2.198 5.308l-2.017 2.018a.619.619 0 1 0 .875.875l2.017-2.017a4.353 4.353 0 0 0 .002-6.147"},null,-1),Y("path",{fill:"#212121",d:"m13.919 10.199-3.712 3.711a.618.618 0 1 0 .875.875l3.711-3.712a.618.618 0 0 0-.874-.874"},null,-1)])])}const _rt={render:vrt},brt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function xrt(e,t){return E(),U("svg",brt,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"M9.612 9.034h9.243a.578.578 0 1 0 0-1.156H9.612a.578.578 0 1 0 0 1.156M18.855 11.922H9.612a.578.578 0 0 0 0 1.156h9.243a.578.578 0 0 0 0-1.156M18.855 15.966H9.612a.577.577 0 1 0 0 1.156h9.243a.577.577 0 1 0 0-1.156M6.723 9.612a1.155 1.155 0 1 0 0-2.311 1.155 1.155 0 0 0 0 2.31M6.723 13.655a1.155 1.155 0 1 0 0-2.31 1.155 1.155 0 0 0 0 2.31M6.723 17.7a1.155 1.155 0 1 0 0-2.312 1.155 1.155 0 0 0 0 2.311"},null,-1)])])}const wrt={render:xrt},Srt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function Crt(e,t){return E(),U("svg",Srt,[...t[0]||(t[0]=[Y("path",{fill:"#212121",d:"M10.198 9.77h9.243a.578.578 0 0 0 0-1.156h-9.243a.578.578 0 0 0 0 1.156M4.981 17.972q0-.709.234-1.14.234-.438.77-.72l.622-.328q.428-.224.428-.621a.45.45 0 0 0-.468-.472.51.51 0 0 0-.416.178q-.143.172-.143.501h-.941q0-.633.405-1.013.41-.385 1.09-.385.666 0 1.043.31.376.306.376.846 0 .784-.77 1.192l-.576.31a1.4 1.4 0 0 0-.359.26.85.85 0 0 0-.16.322h1.831v.76zM5.944 12.029V8.866H5v-.934q.636 0 .859-.206.223-.205.223-.699H7v5zM19.44 12.658h-9.242a.578.578 0 0 0 0 1.156h9.243a.578.578 0 1 0 0-1.156M19.44 16.702h-9.242a.577.577 0 1 0 0 1.155h9.243a.578.578 0 1 0 0-1.155"},null,-1)])])}const Trt={render:Crt};var cj=Object.defineProperty,krt=(e,t)=>{let n={};for(var r in e)cj(n,r,{get:e[r],enumerable:!0});return cj(n,Symbol.toStringTag,{value:"Module"}),n};function Yi(e){this.content=e}Yi.prototype={constructor:Yi,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new Yi(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Yi(n)},addToStart:function(e,t){return new Yi([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Yi(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new Yi(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Yi.from(e),e.size?new Yi(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Yi.from(e),e.size?new Yi(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Yi.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};Yi.from=function(e){if(e instanceof Yi)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Yi(t)};function Fre(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let o=i.text,s=a.text,l=0;for(;o[l]==s[l];l++)n++;
vendor: 8,610 bytes, line 846
846return l&&l<o.length&&l<s.length&&Vre(o.charCodeAt(l-1))&&Nre(o.charCodeAt(l))&&n--,n}if(i.content.size||a.content.size){let o=Fre(i.content,a.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function zre(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),l=o.nodeSize;if(o==s){n-=l,r-=l;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let u=o.text,c=s.text,d=u.length,f=c.length;for(;d>0&&f>0&&u[d-1]==c[f-1];)d--,f--,n--,r--;return d&&f&&d<u.length&&Vre(u.charCodeAt(d-1))&&Nre(u.charCodeAt(d))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let u=zre(o.content,s.content,n-1,r-1);if(u)return u}n-=l,r-=l}}function Nre(e){return e>=56320&&e<57344}function Vre(e){return e>=55296&&e<56320}class tt{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,i=0,a){for(let o=0,s=0;s<n;o++){let l=this.content[o],u=s+l.nodeSize;if(u>t&&r(l,i+s,a||null,o)!==!1&&l.content.size){let c=s+1;l.nodesBetween(Math.max(0,t-c),Math.min(l.content.size,n-c),r,i+c)}s=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",o=!0;return this.nodesBetween(t,n,(s,l)=>{let u=s.isText?s.text.slice(Math.max(t,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&u||s.isTextblock)&&r&&(o?o=!1:a+=r),a+=u},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new tt(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let a=0,o=0;o<n;a++){let s=this.content[a],l=o+s.nodeSize;l>t&&((o<t||l>n)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=l}return new tt(r,i)}cutByIndex(t,n){return t==n?tt.empty:t==0&&n==this.content.length?this:new tt(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new tt(i,a)}addToStart(t){return new tt([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new tt(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];t(i,r,n),r+=i.nodeSize}}findDiffStart(t,n=0){return Fre(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return zre(this,t,n,r)}findIndex(t){if(t==0)return fb(0,t);if(t==this.size)return fb(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=t)return a==t?fb(n+1,a):fb(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return tt.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return tt.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return tt.empty;let n,r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=a.nodeSize,i&&a.isText&&t[i-1].sameMarkup(a)?(n||(n=t.slice(0,i)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new tt(n||t,r)}static from(t){if(!t)return tt.empty;if(t instanceof tt)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new tt([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}tt.empty=new tt([],0);const K9={index:0,offset:0};function fb(e,t){return K9.index=e,K9.offset=t,K9}function F5(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!F5(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!F5(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let vr=class Yk{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let i=0;i<t.length;i++){let a=t[i];if(this.eq(a))return t;if(this.type.excludes(a.type))n||(n=t.slice(0,i));else{if(a.type.excludes(this.type))return t;!r&&a.type.rank>this.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&F5(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return Yk.none;if(t instanceof Yk)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};vr.none=[];class U2 extends Error{}class Ct{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ure(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new Ct(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Ct(jre(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Ct.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ct(tt.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new Ct(t,r,i)}}Ct.empty=new Ct(tt.empty,0,0);function jre(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(jre(a.content,t-i-1,n-i-1)))}function Ure(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),l=e.maybeChild(o);if(s==t||l.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let u=Ure(l.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,l);return u&&e.replaceChild(o,l.copy(u))}function Ert(e,t,n){if(n.openStart>e.depth)throw new U2("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new U2("Inconsistent open depths");return Hre(e,t,n,0)}function Hre(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Hre(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let o=e.parent,s=o.content;return Oh(o,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}else{let{start:o,end:s}=Mrt(n,e);return Oh(a,Wre(e,o,s,t,r))}else return Oh(a,z5(e,t,r))}function qre(e,t){if(!t.type.compatibleContent(e.type))throw new U2("Cannot join "+t.type.name+" onto "+e.type.n
vendor: 5,300 bytes, line 846
846ame)}function Xk(e,t,n){let r=e.node(n);return qre(r,t.node(n)),r}function Rh(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Vy(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Rh(e.nodeAfter,r),a++));for(let s=a;s<o;s++)Rh(i.child(s),r);t&&t.depth==n&&t.textOffset&&Rh(t.nodeBefore,r)}function Oh(e,t){if(!e.type.validContent(t))throw new U2("Invalid content for node "+e.type.name);return e.copy(t)}function Wre(e,t,n,r,i){let a=e.depth>i&&Xk(e,t,i+1),o=r.depth>i&&Xk(n,r,i+1),s=[];return Vy(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(qre(a,o),Rh(Oh(a,Wre(e,t,n,r,i+1)),s)):(a&&Rh(Oh(a,z5(e,t,i+1)),s),Vy(t,n,i,s),o&&Rh(Oh(o,z5(n,r,i+1)),s)),Vy(r,null,i,s),new tt(s)}function z5(e,t,n){let r=[];if(Vy(null,e,n,r),e.depth>n){let i=Xk(e,t,n+1);Rh(Oh(i,z5(e,t,n+1)),r)}return Vy(t,null,n,r),new tt(r)}function Mrt(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(tt.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class H2{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a<t;a++)i+=r.child(a).nodeSize;return i}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return vr.none;if(this.textOffset)return t.child(n).marks;let r=t.maybeChild(n-1),i=t.maybeChild(n);if(!r){let s=r;r=i,i=s}let a=r.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!i||!a[o].isInSet(i.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=t.parent.maybeChild(t.index());for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!i||!r[a].isInSet(i.marks))&&(r=r[a--].removeFromSet(r));return r}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new N5(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let o=t;;){let{index:s,offset:l}=o.content.findIndex(a),u=a-l;if(r.push(o,s,i+l),!u||(o=o.child(s),o.isText))break;a=u-1,i+=l+1}return new H2(n,r,a)}static resolveCached(t,n){let r=dj.get(t);if(r)for(let a=0;a<r.elts.length;a++){let o=r.elts[a];if(o.pos==n)return o}else dj.set(t,r=new Art);let i=r.elts[r.i]=H2.resolve(t,n);return r.i=(r.i+1)%Prt,i}}class Art{constructor(){this.elts=[],this.i=0}}const Prt=12,dj=new WeakMap;class N5{constructor(t,n,r){this.$from=t,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Drt=Object.create(null);let Bh=class Jk{constructor(t,n,r,i=vr.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||tt.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,r,i=0){this.content.nodesBetween(t,n,r,i,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}
vendor: 5,738 bytes, line 846
846textBetween(t,n,r,i){return this.content.textBetween(t,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,r){return this.type==t&&F5(this.attrs,n||t.defaultAttrs||Drt)&&vr.sameSet(this.marks,r||vr.none)}copy(t=null){return t==this.content?this:new Jk(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new Jk(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,r=!1){if(t==n)return Ct.empty;let i=this.resolve(t),a=this.resolve(n),o=r?0:i.sharedDepth(n),s=i.start(o),u=i.node(o).content.cut(i.pos-s,a.pos-s);return new Ct(u,i.depth-o,a.depth-o)}replace(t,n,r){return Ert(this.resolve(t),this.resolve(n),r)}nodeAt(t){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(t);if(n=n.maybeChild(r),!n)return null;if(i==t||n.isText)return n;t-=i+1}}childAfter(t){let{index:n,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(t){return H2.resolveCached(this,t)}resolveNoCache(t){return H2.resolve(this,t)}rangeHasMark(t,n,r){let i=!1;return n>t&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),Gre(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=tt.empty,i=0,a=r.childCount){let o=this.contentMatchAt(t).matchFragment(r,i,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;l<a;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(t,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(t).matchType(r),o=a&&a.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),fj(this.type.attrs,this.attrs,"node",this.type.name);let t=vr.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];fj(r.type.attrs,r.attrs,"mark",r.type.name),t=r.addToSet(t)}if(!vr.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=tt.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,i,r)}};Bh.prototype.text=void 0;class V5 extends Bh{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Gre(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new V5(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new V5(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function Gre(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}function fj(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in e)e[i].validate&&e[i].validate(t[i])}class ip{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Irt(t,n);if(r.next==null)return ip.empty;let i=Zre(r);r.next&&r.err("Unexpected trailing text");let a=zrt(Frt(i));return Nrt(a,r),a}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,r=t.childCount){let i=this;for(let a=n;i&&a<r;a++)i=i.matchType(t.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let r=0;r<t.next.length;r++)if(this.next[n].type==t.next[r].type)return!0;return!1}fillBefore(t,n=!1,r=0){let i=[this];function a(o,s){let l=o.matchFragment(t,r);
vendor: 8,673 bytes, lines 846-847
846if(l&&(!n||l.validEnd))return tt.from(s.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:c,next:d}=o.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=a(d,s.concat(c));if(f)return f}}return null}return a(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),a=i.match;if(a.matchType(t)){let o=[];for(let s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:l}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!i.type||l.validEnd)&&(r.push({match:s.contentMatch,type:s,via:i}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i<r.next.length;i++)t.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),t.map((r,i)=>{let a=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)a+=(o?", ":"")+r.next[o].type.name+"->"+t.indexOf(r.next[o].next);return a}).join(` 847`)}}ip.empty=new ip(!0);class Irt{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function Zre(e){let t=[];do t.push($rt(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function $rt(e){let t=[];do t.push(Lrt(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function Lrt(e){let t=Brt(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Rrt(e,t);else break;return t}function hj(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function Rrt(e,t){let n=hj(e),r=n;return e.eat(",")&&(e.next!="}"?r=hj(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function Ort(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let o=n[a];o.isInGroup(t)&&i.push(o)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function Brt(e){if(e.eat("(")){let t=Zre(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=Ort(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Frt(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(o,s,l){let u={term:l,to:s};return t[o].push(u),u}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,u)=>l.concat(a(u,s)),[]);if(o.type=="seq")for(let l=0;;l++){let u=a(o.exprs[l],s);if(l==o.exprs.length-1)return u;i(u,s=n())}else if(o.type=="star"){let l=n();return r(s,l),i(a(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=n();return i(a(o.expr,s),l),i(a(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let u=0;u<o.min;u++){let c=n();i(a(o.expr,l),c),l=c}if(o.max==-1)i(a(o.expr,l),l);else for(let u=o.min;u<o.max;u++){let c=n();r(l,c),i(a(o.expr,l),c),l=c}return[r(l)]}else{if(o.type=="name")return[r(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Kre(e,t){return t-e}function pj(e,t){let n=[];return r(t),n.sort(Kre);function r(i){let a=e[i];if(a.length==1&&!a[0].term)return r(a[0].to);n.push(i);for(let o=0;o<a.length;o++){let{term:s,to:l}=a[o];!s&&n.indexOf(l)==-1&&r(l)}}}function zrt(e){let t=Object.create(null);return n(pj(e,0));function n(r){let i=[];r.forEach(o=>{e[o].forEach(({term:s,to:l})=>{if(!s)return;let u;for(let c=0;c<i.length;c++)i[c][0]==s&&(u=i[c][1]);pj(e,l).forEach(c=>{u||i.push([s,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let a=t[r.join(",")]=new ip(r.indexOf(e.length-1)>-1);for(let o=0;o<i.length;o++){let s=i[o][1].sort(Kre);a.next.push({type:i[o][0],next:t[s.join(",")]||n(s)})}return a}}function Nrt(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],a=!i.validEnd,o=[];for(let s=0;s<i.next.length;s++){let{type:l,next:u}=i.next[s];o.push(l.name),a&&!(l.isText||l.hasRequiredAttrs())&&(a=!1),r.indexOf(u)==-1&&r.push(u)}a&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Yre(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function Xre(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0)if(i.hasDefault)a=i.default;else throw new RangeError("No value supplied for attribute "+r);else i.validate&&i.validate(a);n[r]=a}return n}function Jre(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new jrt(e,r,t[r]);return n}let mj=class Qre{constructor(t,n,r){this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Jre(t,r.attrs),this.defaultAttrs=Yre(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ip.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:Xre(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Bh(this,this.computeAttrs(t),tt.from(n),vr.setFrom(r))}createChecked(t=null,n,r){return n=tt.from(n),this.checkContent(n),new Bh(this,this.computeAttrs(t),n,vr.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=tt.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),a=i&&i.fillBefore(tt.empty,!0);return a?new Bh(this,t,n.append(a),vr.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?n&&n.push(t[r]):n||(n=t.slice(0,r));return n?n.length?n:vr.none:t}static compile(t,n){let r=Object.create(null);t.forEach((a,o)=>r[a]=new Qre(a,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Vrt(e,t,n){let r=n.split("|");return i=>{let a=i===null?"null":typeof i;if(r.indexOf(a)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${a}`)}}class jrt{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Vrt(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Cw{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=Jre(t,i.attrs),this.excluded=null;let a=Yre(this.attrs);this.instance=a?new vr(this,a):null}create(t=null){return!t&&this.instance?this.instance:new vr(this,Xre(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,o)=>r[a]=new Cw(a,i++,n,o)),r}removeFromSet(t){for(var n=0;n<t.length;
vendor: 8,606 bytes, lines 847-849
847n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}excludes(t){return this.excluded.indexOf(t)>-1}}class eie{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=Yi.from(t.nodes),n.marks=Yi.from(t.marks||{}),this.nodes=mj.compile(this.spec.nodes,this),this.marks=Cw.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;if(a.contentMatch=r[o]||(r[o]=ip.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=s=="_"?null:s?gj(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:gj(this,o.split(" "))}this.nodeFromJSON=i=>Bh.fromJSON(this,i),this.markFromJSON=i=>vr.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof mj){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new V5(r,r.defaultAttrs,t,vr.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function gj(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let s in e.marks){let l=e.marks[s];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function Urt(e){return e.tag!=null}function Hrt(e){return e.style!=null}let jy=class Qk{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Urt(i))this.tags.push(i);else if(Hrt(i)){let a=/[^=]*/.exec(i.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=t.nodes[i.node];return a.contentMatch.matchType(a)})}parse(t,n={}){let r=new vj(this,n,!1);return r.addAll(t,vr.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new vj(this,n,!0);return r.addAll(t,vr.none,n.from,n.to),Ct.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let a=this.tags[i];if(Grt(t,a.tag)&&(a.namespace===void 0||t.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let o=a.getAttrs(t);if(o===!1)continue;a.attrs=o||void 0}return a}}}matchStyle(t,n,r,i){for(let a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){let o=this.styles[a],s=o.style;if(!(s.indexOf(t)!=0||o.context&&!r.matchesContext(o.context)||s.length>t.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<a)break}n.splice(o,0,i)}for(let i in t.marks){let a=t.marks[i].spec.parseDOM;a&&a.forEach(o=>{r(o=_j(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(o=>{r(o=_j(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Qk(t,Qk.schemaRules(t)))}};const tie={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},qrt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},nie={ol:!0,ul:!0},q2=1,eE=2,Uy=4;function yj(e,t,n){return t!=null?(t?q2:0)|(t==="full"?eE:0):e&&e.whitespace=="pre"?q2|eE:n&~Uy}class hb{constructor(t,n,r,i,a,o){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=vr.none,this.match=a||(o&Uy?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(tt.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&q2)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=tt.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(tt.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!tie.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class vj{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,a,o=yj(null,n.preserveWhitespace,0)|(r?Uy:0);i?a=new hb(i.type,i.attrs,vr.none,!0,n.topMatch||i.type.contentMatch,o):r?a=new hb(null,null,vr.none,!0,null,o):a=new hb(t.schema.topNodeType,null,vr.none,!0,null,o),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top,a=i.options&eE?"full":this.localPreserveWS||(i.options&q2)>0,{schema:o}=this.parser;if(a==="full"||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(a)if(a==="full")r=r.replace(/\r\n?/g,` 848`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let s=r.split(/\r?\n|\r/);for(let l=0;l<s.length;l++)l&&this.insertNode(o.linebreakReplacement.create(),n,!0),s[l]&&this.insertNode(o.text(s[l]),n,!/\S/.test(s[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],l=t.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=this.localPreserveWS,a=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let o=t.nodeName.toLowerCase(),s;nie.hasOwnProperty(o)&&this.parser.normalizeLists&&Wrt(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(s=this.parser.matchTag(t,this,r));e:if(l?l.ignore:qrt.hasOwnProperty(o))this.findInside(t),this.ignoreFallback(t,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let u,c=this.needsBlock;if(tie.hasOwnProperty(o))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),u=!0,a.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=l&&l.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),u&&this.sync(a),this.needsBlock=c}else{let u=this.readStyles(t,n);u&&this.addElementByRule(t,l,u,l.consuming===!1?s:void 0)}this.localPreserveWS=i}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` 849`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let a=this.parser.matchedStyles[i],o=r.getPropertyValue(a);if(o)for(let s=void 0;;){let l=this.parser.matchStyle(a,o,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(t,n,r,i){let a,o;
vendor: 4,119 bytes, line 849
849if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let l=this.enter(o,n.attrs||null,r,n.preserveWhitespace);l&&(a=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}a&&this.sync(s)&&this.open--}addAll(t,n,r,i){let a=r||0;for(let o=r?t.childNodes[r]:t.firstChild,s=i==null?null:t.childNodes[i];o!=s;o=o.nextSibling,++a)this.findAtPoint(t,a),this.addDOM(o,n);this.findAtPoint(t,a)}findPlace(t,n,r){let i,a;for(let o=this.open,s=0;o>=0;o--){let l=this.nodes[o],u=l.findWrapping(t);if(u&&(!i||i.length>u.length+s)&&(i=u,a=l,!u.length))break;if(l.solid){if(r)break;s+=2}}if(!i)return null;this.sync(a);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(t,n,r){if(t.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let i=this.findPlace(t,n,r);if(i){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(t.type));let o=vr.none;for(let s of i.concat(t.marks))(a.type?a.type.allowsMarkType(s.type):bj(s.type,t.type))&&(o=s.addToSet(o));return a.content.push(t.mark(o)),!0}return!1}enter(t,n,r,i){let a=this.findPlace(t.create(n),r,!1);return a&&(a=this.enterInner(t,n,r,!0,i)),a}enterInner(t,n,r,i=!1,a){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(t);let s=yj(t,a,o.options);o.options&Uy&&o.content.length==0&&(s|=Uy);let l=vr.none;return r=r.filter(u=>(o.type?o.type.allowsMarkType(u.type):bj(u.type,t))?(l=u.addToSet(l),!1):!0),this.nodes.push(new hb(t,n,l,i,null,s)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=q2)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),o=(s,l)=>{for(;s>=0;s--){let u=n[s];if(u==""){if(s==n.length-1||s==0)continue;for(;l>=a;l--)if(o(s-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];
vendor: 4,277 bytes, line 849
849if(r.isTextblock&&r.defaultAttrs)return r}}}function Wrt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&nie.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function Grt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function _j(e){let t={};for(let n in e)t[n]=e[n];return t}function bj(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let l=0;l<s.edgeCount;l++){let{type:u,next:c}=s.edge(l);if(u==t||a.indexOf(c)<0&&o(c))return!0}};if(o(i.contentMatch))return!0}}class Ip{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=pb(n).createDocumentFragment());let i=r,a=[];return t.forEach(o=>{if(a.length||o.marks.length){let s=0,l=0;for(;s<a.length&&l<o.marks.length;){let u=o.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(a[s][0])||u.type.spec.spanning===!1)break;s++,l++}for(;s<a.length;)i=a.pop()[1];for(;l<o.marks.length;){let u=o.marks[l++],c=this.serializeMark(u,o.isInline,n);c&&(a.push([u,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(t,n){if(t.isText)return pb(n).createTextNode(t.text);let{dom:r,contentDOM:i}=t4(pb(n),this.nodes[t.type.name](t),null,t.attrs);if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let i=t.marks.length-1;i>=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&t4(pb(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return typeof n=="string"?{dom:t.createTextNode(n)}:t4(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Ip(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=xj(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return xj(t.marks)}}function xj(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function pb(e){return e.document||window.document}const wj=new WeakMap;function Zrt(e){let t=wj.get(e);return t===void 0&&wj.set(e,t=Krt(e)),t}function Krt(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(e),t}function t4(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(a=Zrt(r))&&a.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,l=n?e.createElementNS(n,i):e.createElement(i),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):d=="style"&&l.style?l.style.cssText=u[d]:l.setAttribute(d,u[d])}}for(let d=c;d<t.length;d++){let f=t[d];if(f===0){if(d<t.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof f=="string")l.appendChild(e.createTextNode(f));else{let{dom:h,contentDOM:p}=t4(e,f,n,r);if(l.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:l,contentDOM:s}}const rie=65535,iie=Math.pow(2,16);function Yrt(e,t){return e+t*iie}function Sj(e){return e&rie}function Xrt(e){return(e-(e&rie))/iie}const aie=1,oie=2,n4=4,sie=8;class tE{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&sie)>0}get deletedBefore(){return(this.delInfo&(aie|n4))>0}get deletedAfter(){return(this.delInfo&(oie|n4))>0}get deletedAcross(){return(this.delInfo&n4)>0}}class Vo{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Vo.empty)return Vo.empty}recover(t){let n=0,r=Sj(t);if(!this.inverted)for(let i=0;i<r;
vendor: 3,674 bytes, line 849
849i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+Xrt(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let i=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?i:0);if(l>t)break;let u=this.ranges[s+a],c=this.ranges[s+o],d=l+u;if(t<=d){let f=u?t==l?-1:t==d?1:n:n,h=l+i+(f<0?0:c);if(r)return h;let p=t==(n<0?l:d)?null:Yrt(s/3,t-l),g=0;return u&&(g|=t==l?oie:t==d?aie:n4,(n<0?t!=l:t!=d)&&(g|=sie)),new tE(h,g,p)}i+=c-u}return r?t+i:new tE(t+i,0,null)}touches(t,n){let r=0,i=Sj(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?r:0);if(l>t)break;let u=this.ranges[s+a],c=l+u;if(t<=c&&s==i*3)return!0;r+=this.ranges[s+o]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i<this.ranges.length;i+=3){let o=this.ranges[i],s=o-(this.inverted?a:0),l=o+(this.inverted?0:a),u=this.ranges[i+n],c=this.ranges[i+r];t(s,s+u,l,l+c),a+=c-u}}invert(){return new Vo(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?Vo.empty:new Vo(t<0?[0,-t,0]:[0,0,t])}}Vo.empty=new Vo([]);class W2{constructor(t,n,r=0,i=t?t.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new W2(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,r=this._maps.length;n<t._maps.length;n++){let i=t.getMirror(n);this.appendMap(t._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,r=this._maps.length+t._maps.length;n>=0;n--){let i=t.getMirror(n);this.appendMap(t._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new W2;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,r){let i=0;for(let a=this.from;a<this.to;a++){let o=this._maps[a],s=o.mapResult(t,n);if(s.recover!=null){let l=this.getMirror(a);if(l!=null&&l>a&&l<this.to){a=l,t=this._maps[l].recover(s.recover);continue}}i|=s.delInfo,t=s.pos}return r?t:new tE(t,i,null)}}const Y9=Object.create(null);class ka{getMap(){return Vo.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Y9[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in Y9)throw new RangeError("Duplicate use of step JSON ID "+t);return Y9[t]=n,n.prototype.jsonID=t,n}}class wi{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new wi(t,null)}static fail(t){return new wi(null,t)}static fromReplace(t,n,r,i){try{return wi.ok(t.replace(n,r,i))}catch(a){if(a instanceof U2)return wi.fail(a.message);throw a}}}function kD(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(kD(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return tt.fromArray(r)}class $d extends ka{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.no
vendor: 13,489 bytes, lines 849-850
849de(r.sharedDepth(this.to)),a=new Ct(kD(n.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return wi.fromReplace(t,this.from,this.to,a)}invert(){return new rl(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new $d(n.pos,r.pos,this.mark)}merge(t){return t instanceof $d&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new $d(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new $d(n.from,n.to,t.markFromJSON(n.mark))}}ka.jsonID("addMark",$d);class rl extends ka{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Ct(kD(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return wi.fromReplace(t,this.from,this.to,r)}invert(){return new $d(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new rl(n.pos,r.pos,this.mark)}merge(t){return t instanceof rl&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new rl(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new rl(n.from,n.to,t.markFromJSON(n.mark))}}ka.jsonID("removeMark",rl);class Ld extends ka{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return wi.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return wi.fromReplace(t,this.pos,this.pos+1,new Ct(tt.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new Ld(this.pos,n.marks[i]);return new Ld(this.pos,this.mark)}}return new ap(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Ld(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Ld(n.pos,t.markFromJSON(n.mark))}}ka.jsonID("addNodeMark",Ld);class ap extends ka{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return wi.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return wi.fromReplace(t,this.pos,this.pos+1,new Ct(tt.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Ld(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new ap(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ap(n.pos,t.markFromJSON(n.mark))}}ka.jsonID("removeNodeMark",ap);class ti extends ka{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&nE(t,this.from,this.to)?wi.fail("Structure replace would overwrite content"):wi.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new Vo([this.from,this.to-this.from,this.slice.size])}invert(t){return new ti(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&ti.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new ti(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof ti)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Ct.empty:new Ct(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new ti(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Ct.empty:new Ct(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new ti(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ti(n.from,n.to,Ct.fromJSON(t,n.slice),!!n.structure)}}ti.MAP_BIAS=1;ka.jsonID("replace",ti);class Hi extends ka{constructor(t,n,r,i,a,o,s=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=a,this.insert=o,this.structure=s}apply(t){if(this.structure&&(nE(t,this.from,this.gapFrom)||nE(t,this.gapTo,this.to)))return wi.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return wi.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?wi.fromReplace(t,this.from,this.to,r):wi.fail("Content does not fit in gap")}getMap(){return new Vo([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Hi(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new Hi(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Hi(n.from,n.to,n.gapFrom,n.gapTo,Ct.fromJSON(t,n.slice),n.insert,!!n.structure)}}ka.jsonID("replaceAround",Hi);function nE(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let o=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Jrt(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),h=Math.min(u+l.nodeSize,n),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[g])?o.to=h:i.push(o=new rl(f,h,d[g])));s&&s.to==f?s.to=h:a.push(s=new $d(f,h,r))}}),i.forEach(l=>e.step(l)),a.forEach(l=>e.step(l))}function Qrt(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let l=null;if(r instanceof Cw){let u=o.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let u=Math.min(s+o.nodeSize,n);for(let c=0;c<l.length;c++){let d=l[c],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==a-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=u,f.step=a):i.push({style:d,from:Math.max(s,t),to:u,step:a})}}}),i.forEach(o=>e.step(new rl(o.from,o.to,o.style)))}function ED(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let l=0;l<a.childCount;l++){let u=a.child(l),c=s+u.nodeSize,d=r.matchType(u.type);if(!d)o.push(new ti(s,c,Ct.empty));else{r=d;for(let f=0;f<u.marks.length;f++)n.allowsMarkType(u.marks[f].type)||e.step(new rl(s,c,u.marks[f]));if(i&&u.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(u.text);)p||(p=new Ct(tt.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),o.push(new ti(s+f.index,s+f.index+f[0].length,p))}}s=c}if(!r.validEnd){let l=r.fillBefore(tt.empty,!0);e.replace(s,s,new Ct(l,0,0))}for(let l=o.length-1;l>=0;l--)e.step(o[l])}function eit(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function z1(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,i=0,a=0;;--r){let o=e.$from.node(r),s=e.$from.index(r)+i,l=e.$to.indexAfter(r)-a;if(r<e.depth&&o.canReplace(s,l,n))return r;if(r==0||o.type.spec.isolating||!eit(o,s,l))break;s&&(i=1),l<o.childCount&&(a=1)}return null}function tit(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),l=o,u=s,c=tt.empty,d=0;for(let p=a,g=!1;p>n;p--)g||r.index(p)>0?(g=!0,c=tt.from(r.node(p).copy(c)),d++):l--;let f=tt.empty,h=0;for(let p=a,g=!1;p>n;p--)g||i.after(p+1)<i.end(p)?(g=!0,f=tt.from(i.node(p).copy(f)),h++):u++;e.step(new Hi(l,u,o,s,new Ct(c.append(f),d,h),c.size-d,!0))}function MD(e,t,n=null,r=e){let i=nit(e,t),a=i&&rit(r,t);return a?i.map(Cj).concat({type:t,attrs:n}).concat(a.map(Cj)):null}function Cj(e){return{type:e,attrs:null}}function nit(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function rit(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let u=r;l&&u<i;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:o}function iit(e,t,n){let r=tt.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=tt.from(n[o].type.create(n[o].attrs,r))}let i=t.start,a=t.end;e.step(new Hi(i,a,i,a,new Ct(r,0,0),n.length,!0))}function ait(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{let l=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,l)&&oit(e.doc,e.mapping.slice(a).map(s),r)){let u=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?u=!1:!h&&p&&(u=!0)}u===!1&&uie(e,o,s,a),ED(e,e.mapping.slice(a).map(s,1),r,void 0,u===null);let c=e.mapping.slice(a),d=c.map(s,1),f=c.map(s+o.nodeSize,1);return e.step(new Hi(d,f,d+1,f-1,new Ct(tt.from(r.create(l,null,o.marks)),0,0),1,!0)),u===!0&&lie(e,o,s,a),!1}})}function lie(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let l=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function uie(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+a);e.replaceWith(o,o+1,t.type.schema.text(` 850`))}})}function oit(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function sit(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Hi(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new Ct(tt.from(o),0,0),1,!0))}function bc(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=n-2;u>a;u--,c--){let d=i.node(u),f=i.index(u);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=r&&r[c+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let g=r&&r[c]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let s=i.indexAfter(a),l=r&&r[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function lit(e,t,n=1,r){let i=e.doc.resolve(t),a=tt.empty,o=tt.empty;for(let s=i.depth,l=i.depth-n,u=n-1;s>l;s--,u--){a=tt.from(i.node(s).copy(a));let c=r&&r[u];o=tt.from(c?c.type.create(c.attrs,o):i.node(s).copy(o))}e.step(new ti(t,t,new Ct(a.append(o),n,n),!0))}function yf(e,t){let n=e.resolve(t),r=n.index();return cie(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function uit(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function cie(e,t){return!!(e&&t&&!e.isLeaf&&uit(e,t))}function Tw(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let a,o,s=r.index(i);if(i==r.depth?(a=r.nodeBefore,o=r.nodeAfter):n>
vendor: 1,460 bytes, line 850
8500?(a=r.node(i+1),s++,o=r.node(i).maybeChild(s)):(a=r.node(i).maybeChild(s-1),o=r.node(i+1)),a&&!a.isTextblock&&cie(a,o)&&r.node(i).canReplace(s,s+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function cit(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let c=o.whitespace=="pre",d=!!o.contentMatch.matchType(i);c&&!d?r=!1:!c&&d&&(r=!0)}let s=e.steps.length;if(r===!1){let c=e.doc.resolve(t+n);uie(e,c.node(),c.before(),s)}o.inlineContent&&ED(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let l=e.mapping.slice(s),u=l.map(t-n);if(e.step(new ti(u,l.map(t+n,-1),Ct.empty,!0)),r===!0){let c=e.doc.resolve(u);lie(e,c.node(),c.before(),e.steps.length)}return e}function dit(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a<r.node(i).childCount)return null}return null}function fit(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let a=0;a<n.openStart;a++)i=i.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let o=r.depth;o>=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.
vendor: 14,461 bytes, line 850
850index(o)+(s>0?1:0),u=r.node(o),c=!1;if(a==1)c=u.canReplace(l,l,i);else{let d=u.contentMatchAt(l).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function kw(e,t,n=t,r=Ct.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return die(i,a,r)?new ti(t,n,r):new hit(i,a,r).fit()}function die(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class hit{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=tt.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=tt.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let l=new Ct(a,o,s);return t>-1?new Hi(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new ti(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let a=n.firstChild;if(n.childCount>1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=Tj(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:u}=this.frontier[s],c,d=null;if(n==1&&(o?u.matchType(o.type)||(d=u.fillBefore(tt.from(o),!1)):a&&l.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:s,parent:a,inject:d};if(n==2&&o&&(c=u.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:a,wrap:c};if(a&&u.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced;return kj(t,-1)<=n?!1:(this.unplaced.size>1&&kj(t,1)>r&&r++,this.unplaced=new Ct(t,n+1,r),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=Tj(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new Ct(fy(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new Ct(fy(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let g=0;g<a.length;g++)this.openFrontierNode(a[g]);let o=this.unplaced,s=r?r.content:o.content,l=o.openStart-t,u=0,c=[],{match:d,type:f}=this.frontier[n];if(i){for(let g=0;g<i.childCount;g++)c.push(i.child(g));d=d.matchFragment(i)}let h=s.size+t-(o.content.size-o.openEnd);for(;u<s.childCount;){let g=s.child(u),v=d.matchType(g.type);if(!v)break;u++,(u>1||l==0||g.content.size)&&(d=v,c.push(fie(g.mark(f.allowedMarks(g.marks)),u==1?l:0,u==s.childCount?h:-1)))}let p=u==s.childCount;p||(h=-1),this.placed=hy(this.placed,n,tt.from(c)),this.frontier[n].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=s;g<h;g++){let b=v.lastChild;this.frontier.push({type:b.type,match:b.contentMatchAt(b.childCount)}),v=b.content}this.unplaced=p?t==0?Ct.empty:new Ct(fy(o.content,t-1,1),t-1,h<0?o.openEnd:t-1):new Ct(fy(o.content,t,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!X9(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),o=X9(t,n,i,r,a);if(o){for(let s=n-1;s>=0;s--){let{match:l,type:u}=this.frontier[s],c=X9(t,s,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=hy(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=hy(this.placed,this.depth,tt.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(tt.empty,!0);n.childCount&&(this.placed=hy(this.placed,this.frontier.length,n))}}function fy(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(fy(e.firstChild.content,t-1,n)))}function hy(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(hy(e.lastChild.content,t-1,n)))}function Tj(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function fie(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,fie(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(tt.empty,!0)))),e.copy(r)}function X9(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!pit(n,a.content,o)?s:null}function pit(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function mit(e){return e.spec.defining||e.spec.definingForContent}function kj(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function git(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(die(i,a,r))return e.step(new ti(t,n,r));let o=pie(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let f=i.depth,h=i.pos-1;f>0;f--,h--){let p=i.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;o.indexOf(f)>-1?s=f:i.before(f)==h&&o.splice(1,0,-f)}let l=o.indexOf(s),u=[],c=r.openStart;for(let f=r.content,h=0;;h++){let p=f.firstChild;if(u.push(p),h==r.openStart)break;f=p.content}for(let f=c-1;f>=0;f--){let h=u[f],p=mit(h.type);if(p&&!h.sameMarkup(i.node(Math.abs(s)-1)))c=f;else if(p||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+c+1)%(r.openStart+1),p=u[h];if(p)for(let g=0;g<o.length;g++){let v=o[(g+l)%o.length],b=!0;v<0&&(b=!1,v=-v);let x=i.node(v-1),_=i.index(v-1);if(x.canReplaceWith(_,_,p.type,p.marks))return e.replace(i.before(v),b?a.after(v):n,new Ct(hie(r.content,0,r.openStart,h),h,r.openEnd))}}let d=e.steps.length;for(let f=o.length-1;f>=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let h=o[f];h<0||(t=i.before(h),n=a.after(h))}}function hie(e,t,n,r,i){if(t<n){let a=e.firstChild;e=e.replaceChild(0,a.copy(hie(a.content,t+1,n,r,a)))}if(t>r){let a=i.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(tt.empty,!0))}return e}function yit(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=dit(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Ct(tt.from(r),0,0))}function vit(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let o=r.sharedDepth(n),s=!1;for(let l=r.depth;l>o;l--)r.node(l).type.spec.isolating&&(s=!0);for(let l=i.depth;l>o;l--)i.node(l).type.spec.isolating&&(s=!0);if(!s){for(let l=r.depth;l>0&&t==r.start(l);l--)t=r.before(l);for(let l=i.depth;l>0&&n==i.start(l);l--)n=i.before(l);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=pie(r,i);for(let o=0;o<a.length;o++){let s=a[o],l=o==a.length-1;if(l&&s==0||r.node(s).type.contentMatch.validEnd)return e.delete(r.start(s),i.end(s));if(s>0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return e.delete(r.before(o),n);e.delete(t,n)}function pie(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(a<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}class _m extends ka{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return wi.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return wi.fromReplace(t,this.pos,this.pos+1,new Ct(tt.from(i),0,n.isLeaf?0:1))}getMap(){return Vo.empty}invert(t){return new _m(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new _m(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new _m(n.pos,n.attr,n.value)}}ka.jsonID("attr",_m);class G2 extends ka{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return wi.ok(r)}getMap(){return Vo.empty}invert(t){return new G2(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new G2(n.attr,n.value)}}ka.jsonID("docAttr",G2);let Km=class extends Error{};Km=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};Km.prototype=Object.create(Error.prototype);Km.prototype.constructor=Km;Km.prototype.name="TransformError";class mie{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new W2}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Km(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(t=i.map(t,1),n=i.map(n,-1)),i.forEach((a,o,s,l)=>{t=Math.min(t,s),n=Math.max(n,l)})}return t==1e9?null:{from:t,to:n}}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Ct.empty){let i=kw(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new Ct(tt.from(r),0,0))}delete(t,n){return this.replace(t,n,Ct.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return git(this,t,n,r),this}replaceRangeWith(t,n,r){return yit(this,t,n,r),this}deleteRange(t,n){return vit(this,t,n),this}lift(t,n){return tit(this,t,n),this}join(t,n=1){return cit(this,t,n),this}wrap(t,n){return iit(this,t,n),this}setBlockType(t,n=t,r,i=null){return ait(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return sit(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new _m(t,n,r)),this}setDocAttribute(t,n){return this.step(new G2(t,n)),this}addNodeMark(t,n){return this.step(new Ld(t,n)),this}removeNodeMark(t,n){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n instanceof vr)n.isInSet(r.marks)&&this.step(new ap(t,n));else{let i=r.marks,a,o=[];for(;a=n.isInSet(i);)o.push(new ap(t,a)),i=a.removeFromSet(i);for(let s=o.length-1;s>=0;s--)this.step(o[s])}return this}split(t,n=1,r){return lit(this,t,n,r),this}addMark(t,n,r){return Jrt(this,t,n,r),this}removeMark(t,n,r){return Qrt(this,t,n,r),this}clearIncompatible(t,n,r){return ED(this,t,n,r),this}}const J9=Object.create(null);class Mn{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new _it(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=Ct.empty){let r=n.content.lastChild,i=null;for(let s=0;s<n.openEnd;s++)i=r,r=r.lastChild;let a=t.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:l,$to:u}=o[s],c=t.mapping.slice(a);t.replaceRange(c.map(l.pos),c.map(u.pos),s?Ct.empty:n),s==0&&Aj(t,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:o,$to:s}=i[a],l=t.mapping.slice(r),u=l.map(o.pos),c=l.map(s.pos);a?t.deleteRange(u,c):(t.replaceRangeWith(u,c,n),Aj(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new an(t):F0(t.node(0),t.parent,t.pos,t.index(),n,r);if(i)return i;for(let a=t.depth-1;a>=0;a--){let o=n<0?F0(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):F0(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Zo(t.node(0))}static atStart(t){return F0(t,t,0,0,1)||new Zo(t)}static atEnd(t){return F0(t,t,t.content.size,t.childCount,-1)||new Zo(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=J9[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in J9)throw new RangeError("Duplicate use of selection JSON ID "+t);return J9[t]=n,n.prototype.jsonID=t,n}getBookmark(){return an.between(this.$anchor,this.$head).getBookmark()}}Mn.prototype.visible=!0;class _it{constructor(t,n){this.$from=t,this.$to=n}}let Ej=!1;function Mj(e){!Ej&&!e.parent.inlineContent&&(Ej=!0,console.warn("TextSelection endpoint not pointing into a
850node with inline content ("+e.parent.type.name+")"))}class an extends Mn{constructor(t,n=t){Mj(t),Mj(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Mn.near(r);let i=t.resolve(n.map(this.anchor));return new an(i.parent.inlineContent?i:r,r)}replace(t,n=Ct.empty){if(super.replace(t,n),n==Ct.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof an&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Ew(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new an(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=Mn.findFrom(n,r,!0)||Mn.findFrom(n,-r,!0);if(a)n=a.$head;else return Mn.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Mn.findFrom(t,-r,!0)||Mn.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new an(t,n)}}Mn.jsonID("text",an);class Ew{constructor(t,n){this.anchor=t,this.head=n}map(t){return new Ew(t.map(this.anchor),t.map(this.head))}resolve(t){return an.between(t.resolve(this.anchor),t.resolve(this.head))}}class Zt extends Mn{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?Mn.near(a):new Zt(a)}content(){return new Ct(tt.from(this.node),0,0)}eq(t){return t instanceof Zt&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new AD(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Zt(t.resolve(n.anchor))}static create(t,n){return new Zt(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}Zt.prototype.visible=!1;Mn.jsonID("node",Zt);class AD{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Ew(r,r):new AD(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&Zt.isSelectable(r)?new Zt(n):Mn.near(n)}}class Zo extends Mn{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=Ct.empty){if(n==Ct.empty){t.delete(0,t.doc.content.size);let r=Mn.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new Zo(t)}map(t){return new Zo(t)}eq(t){return t instanceof Zo}getBookmark(){return bit}}Mn.jsonID("all",Zo);const bit={map(){return this},resolve(e){return new Zo(e)}};function F0(e,t,n,r,i,a=!1){if(t.inlineContent)return an.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let s=t.child(o);if(s.isAtom){if(!a&&Zt.isSelectable(s))return Zt.create(e,n-(i<0?s.nodeSize:0))}else{let l=F0(e,s,n+i,i<0?s.childCount:0,i,a);if(l)return l}n+=s.nodeSize*i}return null}function Aj(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof ti||i instanceof Hi))return;let a=e.mapping.maps[r],o;a.forEach((s,l,u,c)=>{o==null&&(o=c)}),e.setSelection(Mn.near(e.doc.resolve(o),n))}const Pj=1,mb=2,Dj=4;class xit extends mie{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Pj)&~mb,this.storedMarks=null,this}get selectionSet(){return(this.updated&Pj)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=mb,this}ensureMarks(t){return vr.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&mb)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~mb,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||vr.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),!t)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,a)),!this.selection.empty&&this.selection.to==n+t.length&&this.setSelection(Mn.near
vendor: 8,872 bytes, lines 850-851
850(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Dj,this}get scrolledIntoView(){return(this.updated&Dj)>0}}function Ij(e,t){return!t||!e?e:e.bind(t)}class py{constructor(t,n,r){this.name=t,this.init=Ij(n.init,r),this.apply=Ij(n.apply,r)}}const wit=[new py("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new py("selection",{init(e,t){return e.selection||Mn.atStart(t.doc)},apply(e){return e.selection}}),new py("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new py("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class Q9{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=wit.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new py(r.key,r.spec.state,r))})}}class uc{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],r=this.applyInner(t),i=null;for(;;){let a=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let l=i?i[o].n:0,u=i?i[o].state:this,c=l<n.length&&s.spec.appendTransaction.call(s,l?n.slice(l):n,u,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",t),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<o?{state:r,n:n.length}:{state:this,n:0})}n.push(c),r=r.applyInner(c),a=!0}i&&(i[o]={state:r,n:n.length})}}if(!a)return{state:r,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new uc(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let a=r[i];n[a.name]=a.apply(t,this[a.name],this,n)}return n}get tr(){return new xit(this)}static create(t){let n=new Q9(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new uc(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}reconfigure(t){let n=new Q9(this.schema,t.plugins),r=n.fields,i=new uc(n);for(let a=0;a<r.length;a++){let o=r[a].name;i[o]=this.hasOwnProperty(o)?this[o]:r[a].init(t,i)}return i}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new Q9(t.schema,t.plugins),a=new uc(i);return i.fields.forEach(o=>{if(o.name=="doc")a.doc=Bh.fromJSON(t.schema,n.doc);else if(o.name=="selection")a.selection=Mn.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],u=l.spec.state;if(l.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=u.fromJSON.call(l,t,n[s],a);return}}a[o.name]=o.init(t,a)}}),a}}function gie(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=gie(i,t,{})),n[r]=i}return n}class Ea{constructor(t){this.spec=t,this.props={},t.props&&gie(t.props,this,this.props),this.key=t.key?t.key.key:yie("plugin")}getState(t){return t[this.key]}}const eS=Object.create(null);function yie(e){return e in eS?e+"$"+ ++eS[e]:(eS[e]=0,e+"$")}class bo{constructor(t="key"){this.key=yie(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const vie=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function _ie(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const bie=(e,t,n)=>{let r=_ie(e,n);if(!r)return!1;let i=PD(r);if(!i){let o=r.blockRange(),s=o&&z1(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=i.nodeBefore;if(Aie(e,i,t,-1))return!0;if(r.parent.content.size==0&&(Ym(a,"end")||Zt.isSelectable(a)))for(let o=r.depth;;o--){let s=kw(e.doc,r.before(o),r.after(o),Ct.empty);if(s&&s.slice.size<s.to-s.from){if(t){let l=e.tr.step(s);l.setSelection(Ym(a,"end")?Mn.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):Zt.create(l.doc,i.pos-a.nodeSize)),t(l.scrollIntoView())}return!0}if(o==1||r.node(o-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},Sit=(e,t,n)=>{let r=_ie(e,n);if(!r)return!1;let i=PD(r);return i?xie(e,i,t):!1},Cit=(e,t,n)=>{let r=Sie(e,n);if(!r)return!1;let i=DD(r);return i?xie(e,i,t):!1};function xie(e,t,n){let r=t.nodeBefore,i=r,a=t.pos-1;for(;!i.isTextblock;a--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let o=t.nodeAfter,s=o,l=t.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let c=s.firstChild;if(!c)return!1;s=c}let u=kw(e.doc,a,l,Ct.empty);if(!u||u.from!=a||u instanceof ti&&u.slice.size>=l-a)return!1;if(n){let c=e.tr.step(u);c.setSelection(an.create(c.doc,a)),n(c.scrollIntoView())}return!0}function Ym(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const wie=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=PD(r)}let o=a&&a.nodeBefore;return!o||!Zt.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Zt.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function PD(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Sie(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const Cie=(e,t,n)=>{let r=Sie(e,n);if(!r)return!1;let i=DD(r);if(!i)return!1;let a=i.nodeAfter;if(Aie(e,i,t,1))return!0;if(r.parent.content.size==0&&(Ym(a,"start")||Zt.isSelectable(a))){let o=kw(e.doc,r.before(),r.after(),Ct.empty);if(o&&o.slice.size<o.to-o.from){if(t){let s=e.tr.step(o);s.setSelection(Ym(a,"start")?Mn.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):Zt.create(s.doc,s.mapping.map(i.pos))),t(s.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},Tie=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;a=DD(r)}let o=a&&a.nodeAfter;return!o||!Zt.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Zt.create(e.doc,a.pos)).scrollIntoView()),!0)};function DD(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const Tit=(e,t)=>{let n=e.selection,r=n instanceof Zt,i;if(r){if(n.node.isTextblock||!yf(e.doc,n.from))return!1;i=n.from}else if(i=Tw(e.doc,n.from,-1),i==null)return!1;if(t){let a=e.tr.join(i);r&&a.setSelection(Zt.create(a.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},kit=(e,t)=>{let n=e.selection,r;if(n instanceof Zt){if(n.node.isTextblock||!yf(e.doc,n.to))return!1;r=n.to}else if(r=Tw(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},Eit=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&z1(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},kie=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` 851`).scrollIntoView()),!0)};function ID(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Mit=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=ID(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,o.createAndFill());
vendor: 9,945 bytes, line 851
851l.setSelection(Mn.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Eie=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Zo||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=ID(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=e.tr.insert(o,a.createAndFill());s.setSelection(an.create(s.doc,o+1)),t(s.scrollIntoView())}return!0},Mie=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(bc(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&z1(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function Ait(e){return(t,n)=>{if(t.selection instanceof Zt&&t.selection.node.isBlock){let{$from:h}=t.selection;return!h.parentOffset||!bc(t.doc,h.pos)?!1:(n&&n(t.tr.split(h.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof an||t.selection instanceof Zo)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,l,u=!1,c=!1;for(let h=i.depth;;h--)if(i.node(h).isBlock){u=i.end(h)==i.pos+(i.depth-h),c=i.start(h)==i.pos-(i.depth-h),l=ID(i.node(h-1).contentMatchAt(i.indexAfter(h-1))),o.unshift(u&&l?{type:l}:null),s=h;break}else{if(h==1)return!1;o.unshift(null)}let d=i.pos,f=bc(r.doc,d,o.length,o);if(f||(o[0]=l?{type:l}:null,f=bc(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!u&&c&&i.node(s).type!=l){let h=r.mapping.slice(a),p=h.map(i.before(s)),g=r.doc.resolve(p);l&&i.node(s-1).canReplaceWith(g.index(),g.index()+1,l)&&r.setNodeMarkup(h.map(i.before(s)),l)}return n&&n(r.scrollIntoView()),!0}}const Pit=Ait(),Dit=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(Zt.create(e.doc,i))),!0)};function Iit(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||yf(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function Aie(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,l=i.type.spec.isolating||a.type.spec.isolating;if(!l&&Iit(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let h=t.pos+a.nodeSize,p=tt.empty;for(let b=o.length-1;b>=0;b--)p=tt.from(o[b].create(null,p));p=tt.from(i.copy(p));let g=e.tr.step(new Hi(t.pos-1,h,t.pos,h,new Ct(p,1,0),o.length,!0)),v=g.doc.resolve(h+2*o.length);v.nodeAfter&&v.nodeAfter.type==i.type&&yf(g.doc,v.pos)&&g.join(v.pos),n(g.scrollIntoView())}return!0}let c=a.type.spec.isolating||r>0&&l?null:Mn.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),f=d&&z1(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(u&&Ym(a,"start",!0)&&Ym(i,"end")){let h=i,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let g=a,v=1;for(;!g.isTextblock;g=g.firstChild)v++;if(h.canReplace(h.childCount,h.childCount,g.content)){if(n){let b=tt.empty;for(let _=p.length-1;_>=0;_--)b=tt.from(p[_].copy(b));let x=e.tr.step(new Hi(t.pos-p.length,t.pos+a.nodeSize,t.pos+v,t.pos+a.nodeSize-v,new Ct(b,p.length,0),0,!0));n(x.scrollIntoView())}return!0}}return!1}function Pie(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(an.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const $it=Pie(-1),Lit=Pie(1);function Rit(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&MD(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function $j(e,t=null){return function(n,r){let i=!1;for(let a=0;a<n.selection.ranges.length&&!i;a++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[a];n.doc.nodesBetween(o,s,(l,u)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let c=n.doc.resolve(u),d=c.index();i=c.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let o=0;o<n.selection.ranges.length;o++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[o];a.setBlockType(s,l,e,t)}r(a.scrollIntoView())}return!0}}function $D(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}$D(vie,bie,wie);$D(vie,Cie,Tie);$D(kie,Eie,Mie,Pit);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function Oit(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return Bit(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function Bit(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let l=o.resolve(t.start-2);a=new N5(l,l,t.depth),t.endIndex<t.parent.childCount&&(t=new N5(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=MD(a,n,r,t);return s?(e&&Fit(e,t,s,i,n),!0):!1}function Fit(e,t,n,r,i){let a=tt.empty;for(let c=n.length-1;c>=0;c--)a=tt.from(n[c].type.create(n[c].attrs,a));e.step(new Hi(t.start-(r?2:0),t.end,t.start,t.end,new Ct(a,0,0),n.length,!0));let o=0;for(let c=0;c<n.length;c++)n[c].type==i&&(o=c+1);let s=n.length-o,l=t.start+n.length-(r?2:0),u=t.parent;for(let c=t.startIndex,d=t.endIndex,f=!0;c<d;c++,f=!1)!f&&bc(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=u.child(c).nodeSize;return e}function zit(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,o=>o.childCount>0&&o.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?Nit(t,n,e,a):Vit(t,n,a):!0:!1}}function Nit(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new Hi(a-1,o,a,o,new Ct(tt.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new N5(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));const s=z1(r);if(s==null)return!1;i.lift(r,s);let l=i.doc.resolve(i.mapping.map(a,-1)-1);return yf(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),t(i.scrollIntoView()),!0}function Vit(e,t,n){let r=e.tr,i=n.parent;for(let h=n.end,p=n.endIndex-1,g=n.startIndex;p>g;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=a.node(-1),c=a.index(-1);if(!u.canReplace(c+(s?0:1),c+1,o.content.append(l?tt.empty:tt.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new Hi(d-(s?1:0),f+(l?1:0),d+1,f-1,new Ct((s?tt.empty:tt.from(i.copy(tt.empty))).append(l?tt.empty:tt.from(i.copy(tt.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function jit(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,l=s.child(o-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=tt.from(u?e.create():null),d=new Ct(tt.from(e.create(null,tt.from(s.type.create(null,c)))),u?3:1,0),f=a.start,h=a.end;n(t.tr.step(new Hi(f-(u?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}const aa=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Xm=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let rE=null;const Wu=function(e,t,n){let r=rE||(rE=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Uit=function(){rE=null},op=function(e,t,n,r){return n&&(Lj(e,t,n,r,-1)||Lj(e,t,n,r,1))},Hit=/^(img|br|input|textarea|hr)$/i;function Lj(e,t,n,r,i){for(var a;;){if(e==n&&t==r)return!0;if(t==(i<0?0:wa(e))){let o=e.parentNode;if(!o||!Vt(o)||Hv(e)||Hit.test(e.nodeName)||e.contentEditable=="false")return!1;t=aa(e)+(i<0?0:1),e=o}else if(Vt(e)){let o=e.childNodes[t+(i<0?-1:0)];if(Vt(o)&&o.contentEditable=="false")if(!((a=o.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)t+=i;else return!1;else e=o,t=i<0?wa(e):0}else return!1}}function wa(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Vt(e){return e.nodeType==1}function $i(e){return e.nodeType==3}function sp(e,t){return t?e.contains(Vt(t)?t:t.parentNode):!1}function qit(e,t){for(;;){if($i(e)&&t)return e;if(Vt(e)&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=wa(e)}else if(e.parentNode&&!Hv(e))t=aa(e),e=e.parentNode;else return null}}function Wit(e,t){for(;;){if($i(e)&&t<e.nodeValue.length)return e;if(Vt(e)&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Hv(e))t=aa(e)+1,e=e.parentNode;else return null}}function Git(e,t,n){for(let r=t==0,i=t==wa(e);r||i;){if(e==n)return!0;let a=aa(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==wa(e)}}function Hv(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Mw=function(e){return e.focusNode&&op(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function sh(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Zit(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Kit(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(wa(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(wa(r.startContainer),r.startOffset)}}}const cu=typeof navigator<"u"?navigator:null,Rj=typeof document<"u"?document:null,vf=cu&&cu.userAgent||"",iE=/Edge\/(\d+)/.exec(vf),Die=/MSIE \d/.exec(vf),aE=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vf),yo=!!(Die||aE||iE),Nd=Die?document.documentMode:
vendor: 4,521 bytes, line 851
851aE?+aE[1]:iE?+iE[1]:0,Ko=!yo&&/gecko\/(\d+)/i.test(vf);Ko&&+(/Firefox\/(\d+)/.exec(vf)||[0,0])[1];const oE=!yo&&/Chrome\/(\d+)/.exec(vf),da=!!oE,Iie=oE?+oE[1]:0,Ca=!yo&&!!cu&&/Apple Computer/.test(cu.vendor),Jm=Ca&&(/Mobile\/\w+/.test(vf)||!!cu&&cu.maxTouchPoints>2),Cs=Jm||(cu?/Mac/.test(cu.platform):!1),$ie=cu?/Win/.test(cu.platform):!1,cc=/Android \d/.test(vf),Aw=!!Rj&&"webkitFontSmoothing"in Rj.documentElement.style,Yit=Aw?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Xit(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Lu(e,t){return typeof e=="number"?e:e[t]}function Jit(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function Oj(e,t,n){if(!sE(t)&&t.left==0)return;let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(!Vt(o)){o=Xm(o);continue}let s=o==a.body,l=s?Xit(a):Jit(o),u=0,c=0;if(t.top<l.top+Lu(r,"top")?c=-(l.top-t.top+Lu(i,"top")):t.bottom>l.bottom-Lu(r,"bottom")&&(c=t.bottom-t.top>l.bottom-l.top?t.top+Lu(i,"top")-l.top:t.bottom-l.bottom+Lu(i,"bottom")),t.left<l.left+Lu(r,"left")?u=-(l.left-t.left+Lu(i,"left")):t.right>l.right-Lu(r,"right")&&(u=t.right-l.right+Lu(i,"right")),u||c)if(s)a.defaultView.scrollBy(u,c);else{let f=o.scrollLeft,h=o.scrollTop;c&&(o.scrollTop+=c),u&&(o.scrollLeft+=u);let p=o.scrollLeft-f,g=o.scrollTop-h;t={left:t.left-p,top:t.top-g,right:t.right-p,bottom:t.bottom-g}}let d=s?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(d))break;o=d=="absolute"?o.offsetParent:Xm(o)}}function Qit(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let s=e.root.elementFromPoint(a,o);if(!s||s==e.dom||!e.dom.contains(s))continue;let l=s.getBoundingClientRect();if(l.top>=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:Lie(e.dom)}}function Lie(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=Xm(r));return t}function eat({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Rie(n,r==0?0:r-t)}function Rie(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}let w0=null;function tat(e){if(e.setActive)return e.setActive();if(w0)return e.focus(w0);let t=Lie(e);e.focus(w0==null?{get preventScroll(){return w0={preventScroll:!0},!0}}:void 0),w0||(w0=!1,Rie(t,0))}function Oie(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,l,u;for(let c=e.firstChild,d=0;c;c=c.nextSibling,d++){let f;if(Vt(c))f=c.getClientRects();else if($i(c))f=Wu(c).getClientRects();else continue;for(let h=0;h<f.length;h++){let p=f[h];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let g=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(g<r){n=c,r=g,i=g&&$i(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,Vt(c)&&g&&(a=d+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!l&&p.left<=t.left&&p.right>=t.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&l&&(n=l,i=u,r=0),n&&$i(n)?nat(n,i):!n||r?{node:e,offset:a}:Oie(n,i)}function nat(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let o=gd(r,1);if(o.top!=o.bottom&&LD(t,o)){i={node:e,offset:a+(t.left>=(o.left+o.right)/2?1:0)};break}}return r.detach(),i||{node:e,offset:0}}function LD(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function rat(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function iat(e,t,n){let{node:r,offset:i}=Oie(t,n),a=-1;if(Vt(r)&&!r.firstChild){let o=r.getBoundingClientRect();a=o.left!=o.right&&n.left>(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function aat(e,t,n,r){let i=-1;for(let a=t,o=!1;a!=e.dom;){let s=e.docView.nearestDesc(a,!0),l;if(!s)return null;if(Vt(s.dom)&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!o&&l.left>r.left||l.top>
851r.top?i=s.posBefore:(!o&&l.right<r.left||l.bottom<r.top)&&(i=s.posAfter),o=!0),!s.contentDOM&&i<0&&!s.node.isText))return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter;a=s.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function Bie(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let o=e.childNodes[a];if(Vt(o)){let s=o.getClientRects();for(let l=0;l<s.length;l++){let u=s[l];if(LD(t,u))return Bie(o,t,u)}}if((a=(a+1)%r)==i)break}return e}function oat(e,t){let n=e.dom.ownerDocument,r,i=0,a=Kit(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o)){let u=e.dom.getBoundingClientRect();if(!LD(t,u)||(o=Bie(e.dom,t,u),!o))return null}if(Ca)for(let u=o;r&&u;u=Xm(u))u.draggable&&(r=void 0);if(o=rat(o,t),r){if(Ko&&Vt(r)&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let c=r.childNodes[i],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&i++}let u;Aw&&i&&Vt(r)&&Vt(u=r.childNodes[i-1])&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&Vt(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||!Vt(r)||r.childNodes[i-1].nodeName!="BR")&&(s=aat(e,r,i,t))}s==null&&(s=iat(e,o,t));let l=e.docView.nearestDesc(o,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function sE(e){return e.top<e.bottom||e.left<e.right}function gd(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if(sE(r))return r}return Array.prototype.find.call(n,sE)||e.getBoundingClientRect()}const sat=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Fie(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=Aw||Ko;if($i(r))if(o&&(sat.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=gd(Wu(r,i,i),n);if(Ko&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let u=gd(Wu(r,i-1,i-1),-1);if(u.top==l.top){let c=gd(Wu(r,i,i+1),-1);if(c.top!=l.top)return Wg(c,c.left<u.left)}}return l}else{let l=i,u=i,c=n<0?1:-1;return n<0&&!i?(u++,c=-1):n>=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,Wg(gd(Wu(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==wa(r))){let l=r.childNodes[i-1];if(Vt(l))return tS(l.getBoundingClientRect(),!1)}if(a==null&&i<wa(r)){let l=r.childNodes[i];if(Vt(l))return tS(l.getBoundingClientRect(),!0)}return tS(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==wa(r))){let l=r.childNodes[i-1],u=$i(l)?Wu(l,wa(l)-(o?0:1)):Vt(l)&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Wg(gd(u,1),!1)}if(a==null&&i<wa(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?$i(l)?Wu(l,0,o?0:1):Vt(l)?l:null:null;if(u)return Wg(gd(u,-1),!0)}return Wg(gd($i(r)?Wu(r):r,-n),n>=0)}function Wg(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function tS(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function zie(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function lat(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return zie(e,t,()=>{let{node:a}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=Fie(e,i.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let l;if(Vt(s))l=s.getClientRects();else if($i(s))l=Wu(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const uat=/[\u0590-\u08ac]/;function cat(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!uat.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:zie(e,t,()=>
vendor: 54,885 bytes, lines 851-855
851{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:g}=e.domSelectionRange(),v=p&&!sp(h,p)||l==p&&u==g;try{s.collapse(c,d),l&&(l!=c||u!=d)&&s.extend&&s.extend(l,u)}catch{}return f!=null&&(s.caretBidiLevel=f),v}):r.pos==r.start()||r.pos==r.end()}let Bj=null,Fj=null,zj=!1;function dat(e,t,n){return Bj==t&&Fj==n?zj:(Bj=t,Fj=n,zj=n=="up"||n=="down"?lat(e,t,n):cat(e,t,n))}const Os=0,Nj=1,bh=2,hl=3;class qv{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Os,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(t){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==t)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,r){if(this.contentDOM&&sp(this.contentDOM,t))if(r<0){let a,o;if(t==this.contentDOM)a=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.previousSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(o)+o.size:this.posAtStart}else{let a,o;if(t==this.contentDOM)a=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.nextSibling}for(;a&&!((o=a.pmViewDesc)&&o.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(o):this.posAtEnd}let i;if(t==this.dom&&this.contentDOM)i=n>aa(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=!!(t.compareDocumentPosition(this.contentDOM)&4);else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let a=this.getDesc(i),o;if(a&&(!n||a.node))if(r&&(o=a.nodeDOM)&&!(Vt(o)?sp(o,t):o==t))r=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==t&&a!=r){for(;!i.border&&i.children.length;)for(let o=0;o<i.children.length;o++){let s=i.children[o];if(s.size){i=s;break}}return i}if(t<a)return i.descAt(t-r-i.border);r=a}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,i=0;for(let a=0;r<this.children.length;r++){let o=this.children[r],s=a+o.size;if(s>t){i=t-a;break}a=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(;r>0;r--){let a=this.children[r-1];if(a.size||!(a instanceof Vie||a instanceof Nie&&a.side>=0))break}if(n<=0){let a,o=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?aa(a.dom)+1:0}}else{let a,o=!0;for(;a=r<this.children.length?this.children[r]:null,!(!a||a.dom.parentNode==this.contentDOM);r++,o=!1);return a&&o&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?aa(a.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,a=-1;for(let o=r,s=0;;s++){let l=this.children[s],u=o+l.size;if(i==-1&&t<=u){let c=o+l.border;if(t>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=o;for(let d=s;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=aa(f.dom)+1;break}t-=f.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){a=aa(d.dom);break}n+=d.size}a==-1&&(a=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:t,to:n,fromOffset:i,toOffset:a}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:r}=this.domFromPos(t,0);if(!Vt(n)||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]}setSelection(t,n,r,i=!1){let a=Math.min(t,n),o=Math.max(t,n);for(let h=0,p=0;h<this.children.length;h++){let g=this.children[h],v=p+g.size;if(a>p&&o<v)return g.setSelection(t-p-g.border,n-p-g.border,r,i);p=v}let s=this.domFromPos(t,t?-1:1),l=n==t?s:this.domFromPos(n,n?-1:1),u=r.root.getSelection(),c=r.domSelectionRange(),d=!1;if((Ko||Ca)&&t==n){let{node:h,offset:p}=s;if($i(h)){if(d=!!(p&&h.nodeValue[p-1]==` 852`),d&&p==h.nodeValue.length)for(let g=h,v;g;g=g.parentNode){if(v=g.nextSibling){v.nodeName=="BR"&&(s=l={node:v.parentNode,offset:aa(v)+1});break}let b=g.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let g=h.childNodes[p-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(Ko&&c.focusNode&&c.focusNode!=l.node&&Vt(c.focusNode)){let h=c.focusNode.childNodes[c.focusOffset];h&&h.contentEditable=="false"&&(i=!0)}if(!(i||d&&Ca)&&op(s.node,s.offset,c.anchorNode,c.anchorOffset)&&op(l.node,l.offset,c.focusNode,c.focusOffset))return;let f=!1;if((u.extend||t==n)&&!(d&&Ko)){u.collapse(s.node,s.offset);try{t!=n&&u.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(t>n){let p=s;s=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(s.node,s.offset),u.removeAllRanges(),u.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i<this.children.length;i++){let a=this.children[i],o=r+a.size;if(r==o?t<=o&&n>=r:t<o&&n>r){let s=r+a.border,l=o-a.border;if(t>=s&&n<=l){this.dirty=t==r||n==o?bh:Nj,t==s&&n==l&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=hl:a.markDirty(t-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?bh:hl}r=o}this.dirty=bh}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?bh:Nj;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class Nie extends qv{constructor(t,n,r,i){let a,o=n.type.toDOM;if(typeof o=="function"&&(o=o(r,()=>{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){let s=Vt(o)?o:document.createElement("span");s!=o&&s.appendChild(o),s.hasAttribute("contenteditable")||(s.contentEditable="false"),s.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==Os&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class fat extends qv{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Vd extends qv{constructor(t,n,r,i,a){super(t,[],r,i),this.mark=n,this.spec=a}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=Ip.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Vd(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&hl||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=hl&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Os){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Os}}slice(t,n,r){let i=Vd.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=uE(a,n,o,r)),t>0&&(a=uE(a,0,t,r));for(let s=0;s<a.length;s++)a[s].parent=i;return i.children=a,i}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class jd extends qv{constructor(t,n,r,i,a,o,s){super(t,[],a,o),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=s}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],l,u=s&&s(n,a,()=>{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(!$i(c))throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Ip.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=Hie(c,r,n),u?l=new hat(t,n,r,i,c,d||null,f,u):n.isText?new Pw(t,n,r,i,c,f):new jd(t,n,r,i,c,d||null,f)}parseRule(t){if(this.node.type.spec.reparseInView)return null;let n={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(n.preserveWhitespace="full"),!this.contentDOM)n.getContent=()=>this.node.content;else if(!this.contentLost)n.contentElement=this.contentDOM;else{for(let r=this.children.length-1;r>=0;r--){let i=this.children[r];if(this.dom.contains(i.dom.parentNode)){n.contentElement=i.dom.parentNode;break}}if(!n.contentElement){let r=t&&t.find(i=>Vt(i)&&t.indexOf(i.parentNode)<0&&this.dom.contains(i));r?n.contentElement=r:n.getContent=()=>tt.empty}}return n}matchesNode(t,n,r){return this.dirty==Os&&t.eq(this.node)&&j5(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,a=t.composing?this.localCompositionInfo(t,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new mat(this,o&&o.node,t),u=this.node.inlineContent,c=u&&this.node.isBlock;vat(this.node,this.innerDeco,(d,f,h)=>{d.spec.marks?l.syncToMarks(d.spec.marks,r,t,f):d.type.side>=0&&!h&&l.syncToMarks(f==this.node.childCount?vr.none:this.node.child(f).marks,r,t,f),l.placeWidget(d,t,i)},(d,f,h,p)=>{l.syncToMarks(d.marks,r,t,p),c&&d.isAtom&&!d.isText&&l.addHackNode("IMG",l.top);let g;l.findNodeMatch(d,f,h,p)||s&&t.state.selection.from>i&&t.state.selection.to<i+d.nodeSize&&(g=l.findIndexWithChild(a.node))>-1&&l.updateNodeAt(d,f,h,g,t)||l.updateNextNode(d,f,h,t,p,i)||l.addNode(d,f,h,t,i),i+=d.nodeSize,u&&(c=d.isAtom&&!d.isText)}),l.syncToMarks([],r,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==bh)&&(o&&this.protectLocalComposition(t,o),jie(this.contentDOM,this.children,t),Jm&&_at(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof an)||r<n||i>n+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let o=a.nodeValue,s=bat(this.node.content,o,r-n,i-n);return s<0?null:{node:a,pos:s,text:o}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new fat(this,a,n,i);t.input.compositionNodes.push(o),this.children=uE(this.children,r,r+i.length,t,o)}update(t,n,r,i){return this.dirty==hl||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Os}updateOuterDeco(t){if(j5(t,this.outerDeco))return;let n=!Vt(this.nodeDOM),r=this.dom;this.dom=Uie(this.dom,this.nodeDOM,lE(this.outerDeco,this.node,n),lE(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){Vt(this.nodeDOM)&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){Vt(this.nodeDOM)&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Vj(e,t,n,r,i){Hie(r,t,e);let a=new jd(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}class Pw extends jd{constructor(t,n,r,i,a,o){super(t,n,r,i,a,null,o)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==hl||this.dirty!=Os&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Os||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=Os,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new Pw(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=hl)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Vie extends qv{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Os&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class hat extends jd{constructor(t,n,r,i,a,o,s,l){super(t,n,r,i,a,o,s),this.spec=l}update(t,n,r,i){if(this.dirty==hl)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let a=this.spec.update(t,n,r);return a&&this.updateInner(t,n,r,i),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function jie(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=jj(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof Vd){let l=r?r.previousSibling:e.lastChild;jie(o.contentDOM,o.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=jj(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const Hy=function(e){e&&(this.nodeName=e)};Hy.prototype=Object.create(null);const xh=[new Hy];function lE(e,t,n){if(e.length==0)return xh;let r=n?xh[0]:new Hy,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new Hy(o.nodeName));for(let s in o){let l=o[s];l!=null&&(n&&i.length==1&&i.push(r=new Hy(t.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+l:s=="style"?r.style=(r.style?r.style+";":"")+l:s!="nodeName"&&(r[s]=l))}}}return i}function Uie(e,t,n,r){if(n==xh&&r==xh)return t;let i=t;for(let a=0;a<r.length;a++){let o=r[a],s=n[a];if(a){let l;s&&s.nodeName==o.nodeName&&i!=e&&(l=i.parentNode)&&l.nodeName.toLowerCase()==o.nodeName||(l=document.createElement(o.nodeName),l.pmIsDeco=!0,l.appendChild(i),s=xh[0]),i=l}pat(i,s||xh[0],o)}return i}function pat(e,t,n){for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<r.length;a++)i.indexOf(r[a])==-1&&e.classList.remove(r[a]);for(let a=0;a<i.length;a++)r.indexOf(i[a])==-1&&e.classList.add(i[a]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(t.style);)e.style.removeProperty(i[1])}n.style&&(e.style.cssText+=n.style)}}function Hie(e,t,n){return Uie(e,e,xh,lE(t,n,!Vt(e)))}function j5(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function jj(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class mat{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=gat(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let r=t;r<n;r++)this.top.children[r].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,r,i){let a=0,o=this.stack.length>>1,s=Math.min(o,t.length);for(;a<s&&(a==o-1?this.top:this.stack[a+1<<1]).matchesMark(t[a])&&t[a].type.spec.spanning!==!1;)a++;for(;a<o;)this.destroyRest(),this.top.dirty=Os,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<t.length;){this.stack.push(this.top,this.index+1);let l=-1,u=this.top.children.length;i<this.preMatch.index&&(u=Math.min(this.index+3,u));for(let c=this.index;c<u;c++){let d=this.top.children[c];if(d.matchesMark(t[o])&&!this.isLocked(d.dom)){l=c;break}}if(l<0&&this.index<this.top.children.length){let c=this.top.children[this.index];c instanceof Vd&&c.dirty!=hl&&c.mark.type==t[o].type&&c.spec.update&&!this.isLocked(c.dom)&&c.spec.update(t[o])&&(c.mark=t[o],l=this.index,this.changed=!0)}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=Vd.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let a=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(t,n,r))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s<l;s++){let u=this.top.children[s];if(u.matchesNode(t,n,r)&&!this.preMatch.matched.has(u)){a=s;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(t,n,r,i,a){let o=this.top.children[i];return o.dirty==hl&&o.dom==o.contentDOM&&(o.dirty=bh),o.update(t,n,r,a)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=t.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}t=n}}updateNextNode(t,n,r,i,a,o){for(let s=this.index;s<this.top.children.length;s++){let l=this.top.children[s];if(l instanceof jd){let u=this.preMatch.matched.get(l);if(u!=null&&u!=a)return!1;let c=l.dom,d,f=this.isLocked(c)&&!(t.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==t.text&&l.dirty!=hl&&j5(n,l.outerDeco));if(!f&&l.update(t,n,r,i))return this.destroyBetween(this.index,s),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!f&&(d=this.recreateWrapper(l,t,n,r,i,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=bh,d.updateChildren(i,o+1),d.dirty=Os),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,r,i,a,o){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!j5(r,t.outerDeco)||!i.eq(t.innerDeco))return null;let s=jd.create(this.top,n,r,i,a,o);if(s.contentDOM){s.children=t.children,t.children=[];for(let l of s.children)l.parent=s}return t.destroy(),s}addNode(t,n,r,i,a){let o=jd.create(this.top,t,n,r,i,a);o.contentDOM&&o.updateChildren(i,a+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(t,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(t)&&(t==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let a=new Nie(this.top,t,n,r);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof Vd;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof Pw)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((Ca||da)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);t=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),t=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new Vie(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||Vt(t)&&t.contains(this.lock.parentNode))}}function gat(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];e:for(;i>0;){let s;for(;;)if(r){let u=n.children[r-1];if(u instanceof Vd)n=u,r=u.children.length;else{s=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function yat(e,t){return e.type.side-t.type.side}function vat(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let u=0;u<e.childCount;u++){let c=e.child(u);r(c,i,t.forChild(a,c),u),a+=c.nodeSize}return}let o=0,s=[],l=null;for(let u=0;;){let c,d;for(;o<i.length&&i[o].to==a;){let v=i[o++];v.widget&&(c?(d||(d=[c])).push(v):c=v)}if(c)if(d){d.sort(yat);for(let v=0;v<d.length;v++)n(d[v],u,!!l)}else n(c,u,!!l);let f,h;if(l)h=-1,f=l,l=null;else if(u<e.childCount)h=u,f=e.child(u++);else break;for(let v=0;v<s.length;v++)s[v].to<=a&&s.splice(v--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let p=a+f.nodeSize;if(f.isText){let v=p;o<i.length&&i[o].from<v&&(v=i[o].from);for(let b=0;b<s.length;b++)s[b].to<v&&(v=s[b].to);v<p&&(l=f.cut(v-a),f=f.cut(0,v-a),p=v,h=-1)}else for(;o<i.length&&i[o].to<p;)o++;let g=f.isInline&&!f.isLeaf?s.filter(v=>!v.inline):s.slice();r(f,g,t.forChild(a,f),h),a=p}}function _at(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function bat(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let l=o.text;for(;i<e.childCount;){let u=e.child(i++);if(a+=u.nodeSize,!u.isText)break;l+=u.text}if(a>=n){if(a>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let u=s<r?l.lastIndexOf(t,r-s-1):-1;if(u>=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function uE(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let l=e[o],u=s,c=s+=l.size;u>=n||c<=t?a.push(l):(u<t&&a.push(l.slice(0,t-u,r)),i&&(a.push(i),i=void 0),c>n&&a.push(l.slice(n-u,l.size,r)))}return a}function RD(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),l,u;if(Mw(n)){for(l=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Zt.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&Git(n.focusNode,n.focusOffset,i.dom))){let d=i.posBefore;u=new Zt(o==d?s:r.resolve(d))}else if(Ko&&t=="key"&&o>e.state.selection.to&&Vt(n.focusNode)&&n.focusOffset==n.focusNode.childNodes.length&&i&&i.posAtStart>e.state.selection.to)for(let d=n.focusNode;;d=d.parentNode){if(getComputedStyle(d).overflow!="visible"){u=Mn.findFrom(r.resolve(i.posAtStart),1);break}if(d==i.dom||d.nextSibling||!d.parentNode||!Vt(d.parentNode))break}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=o,f=o;for(let h=0;h<n.rangeCount;h++){let p=n.getRangeAt(h);d=Math.min(d,e.docView.posFromDOM(p.startContainer,p.startOffset,1)),f=Math.max(f,e.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,o]=f==e.state.selection.anchor?[f,d]:[d,f],s=r.resolve(o)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=r.resolve(l);if(!u){let d=t=="pointer"||e.state.selection.head<s.pos&&!a?1:-1;u=OD(e,c,s,d)}return u}function qie(e){return e.editable?e.hasFocus():Gie(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function xc(e,t=!1){let n=e.state.selection;if(Wie(e,n),!qie(e))return;let r=e.input.mouseDown;if(!t&&da&&r){let i=e.domSelectionRange(),a=e.domObserver.currentSelection;if(i.anchorNode&&a.anchorNode&&op(i.anchorNode,i.anchorOffset,a.anchorNode,a.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)wat(e);else{let{anchor:i,head:a}=n,o,s;Uj&&!(n instanceof an)&&(n.$from.parent.inlineContent||(o=Hj(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Hj(e,n.to))),e.docView.setSelection(i,a,e,t),Uj&&(o&&qj(o),s&&qj(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&xat(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}const Uj=Ca||da&&Iie<63;function Hj(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(Ca&&i&&i.contentEditable=="false")return nS(i);if((!i||i.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(i)return nS(i);if(a)return nS(a)}}function nS(e){return e.contentEditable="true",Ca&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function qj(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function xat(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!qie(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function wat(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,aa(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&yo&&Nd<=11&&(n.disabled=!0,n.disabled=!1)}function Wie(e,t){if(t instanceof Zt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Wj(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Wj(e)}function Wj(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function OD(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||an.between(t,n,r)}function Gj(e){return e.editable&&!e.hasFocus()?!1:Gie(e)}function Gie(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return sp(e.dom,t.anchorNode)&&(e.editable||sp(e.dom,t.focusNode))}catch{return!1}}function Sat(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return op(t.node,t.offset,n.anchorNode,n.anchorOffset)}function cE(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Mn.findFrom(a,t)}function xd(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Zj(e,t,n){let r=e.state.selection;if(r instanceof an)if(n.indexOf("s")>-1){let{$head:i}=r,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=e.state.doc.resolve(i.pos+a.nodeSize*(t<0?-1:1));return xd(e,new an(r.$anchor,o))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=cE(e.state,t);return i&&i instanceof Zt?xd(e,i):!1}else if(!(Cs&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?Zt.isSelectable(a)?xd(e,new Zt(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):xd(e,new an(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1}}else return!1;else{if(r instanceof Zt&&r.node.isInline)return xd(e,new an(t>0?r.$to:r.$from));{let i=cE(e.state,t);return i?xd(e,i):!1}}}function qy(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR"):Vt(e)&&e.contentEditable=="false"}function S0(e,t){return t<0?Cat(e):Tat(e)}function Cat(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Ko&&Vt(n)&&r<wa(n)&&qy(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!Vt(n))break;let s=n.childNodes[r-1];if(qy(s,-1))i=n,a=--r;else if($i(s))n=s,r=n.nodeValue.length;else break}else{if(Zie(n))break;{let s=n.previousSibling;for(;s&&qy(s,-1);)i=n.parentNode,a=aa(s),s=s.previousSibling;if(s)n=s,r=wa(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}o?dE(e,n,r):i&&dE(e,i,a)}function Tat(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=wa(n),a,o;for(;;)if(r<i){if(!Vt(n))break;let s=n.childNodes[r];if(qy(s,1))a=n,o=++r;else break}else{if(Zie(n))break;{let s=n.nextSibling;for(;s&&qy(s,1);)a=s.parentNode,o=aa(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=wa(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}a&&dE(e,a,o)}function Zie(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function kat(e,t){for(;e&&t==e.childNodes.length&&!Hv(e);)t=aa(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if($i(n))return n;if(Vt(n)&&n.contentEditable=="false")break;e=n,t=0}}function Eat(e,t){for(;e&&!t&&!Hv(e);)t=aa(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if($i(n))return n;if(Vt(n)&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function dE(e,t,n){if(!$i(t)){let a,o;(o=kat(t,n))?(t=o,n=0):(a=Eat(t,n))&&(t=a,n=a.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Mw(r)){let a=document.createRange();a.setEnd(t,n),a.setStart(t,n),r.removeAllRanges(),r.addRange(a)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&xc(e)},50)}function Kj(e,t){let n=e.state.doc.resolve(t);if(!(da||$ie)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>i.top&&o<i.bottom&&Math.abs(a.left-i.left)>1)return a.left<i.left?"ltr":"rtl"}if(t<n.end()){let a=e.coordsAtPos(t+1),o=(a.top+a.bottom)/2;if(o>i.top&&o<i.bottom&&Math.abs(a.left-i.left)>1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Yj(e,t,n){let r=e.state.selection;if(r instanceof an&&!r.empty||n.indexOf("s")>-1||Cs&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=cE(e.state,t);if(o&&o instanceof Zt)return xd(e,o)}if(!i.parent.inlineContent){let o=t<0?i:a,s=r instanceof Zo?Mn.near(o,t):Mn.findFrom(o,t);return s?xd(e,s):!1}return!1}function Xj(e,t){if(!(e.state.selection instanceof an))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function Jj(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Mat(e){if(!Ca||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&Vt(t)&&n==0&&t.firstChild&&Vt(t.firstChild)&&t.firstChild.contentEditable=="false"){let r=t.firstChild;Jj(e,r,"true"),setTimeout(()=>Jj(e,r,"false"),20)}return!1}function Aat(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function Pat(e,t){let n=t.keyCode,r=Aat(t);if(n==8||Cs&&n==72&&r=="c")return Xj(e,-1)||S0(e,-1);if(n==46&&!t.shiftKey||Cs&&n==68&&r=="c")return Xj(e,1)||S0(e,1);if(n==13||n==27)return!0;if(n==37||Cs&&n==66&&r=="c"){let i=n==37?Kj(e,e.state.selection.from)=="ltr"?-1:1:-1;return Zj(e,i,r)||S0(e,i)}else if(n==39||Cs&&n==70&&r=="c"){let i=n==39?Kj(e,e.state.selection.from)=="ltr"?1:-1:1;return Zj(e,i,r)||S0(e,i)}else{if(n==38||Cs&&n==80&&r=="c")return Yj(e,-1,r)||S0(e,-1);if(n==40||Cs&&n==78&&r=="c")return Mat(e)||Yj(e,1,r)||S0(e,1);if(r==(Cs?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function BD(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let o=e.someProp("clipboardSerializer")||Ip.fromSchema(e.state.schema),s=eae(),l=s.createElement("div");l.appendChild(o.serializeFragment(r,{document:s}));let u=l.firstChild,c,d=0;for(;u&&Vt(u)&&(c=Qie[u.nodeName.toLowerCase()]);){for(let h=c.length-1;h>=0;h--){let p=s.createElement(c[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}u=l.firstChild}u&&Vt(u)&&u.setAttribute("data-pm-slice",`${i} ${a}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` 853 854`);return{dom:l,text:f,slice:t}}function Kie(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let l=!!t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,a||r,e)}),a)return s=new Ct(tt.from(e.state.schema.text(t.replace(/\r\n?/g,` 855`))),0,0),e.someProp("transformPasted",f=>{s=f(s,e,!0)}),s;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:h}=e.state,p=Ip.fromSchema(h);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=o.appendChild(document.createElement("p"));g&&v.appendChild(p.serializeNode(h.text(g,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),o=Lat(n),Aw&&Rat(o);let u=o&&o.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=o.firstChild;for(;f&&!Vt(f);)f=f.nextSibling;if(!f)break;o=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||jy.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!Dat.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)s=Oat(Qj(s,+c[1],+c[2]),c[4]);else if(s=Ct.maxOpen(Iat(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let h=s.content.firstChild;d<s.openStart&&!h.type.spec.isolating;d++,h=h.firstChild);for(let h=s.content.lastChild;f<s.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);s=Qj(s,d,f)}return e.someProp("transformPasted",d=>{s=d(s,e,l)}),s}const Dat=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Iat(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let l=i.findWrapping(s.type),u;if(!l)return o=null;if(u=o.length&&a.length&&Xie(l,a,s,o[o.length-1],0))o[o.length-1]=u;else{o.length&&(o[o.length-1]=Jie(o[o.length-1],a.length));let c=Yie(s,l);o.push(c),i=i.matchType(c.type),a=l}}),o)return tt.from(o)}return e}function Yie(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,tt.from(e));return e}function Xie(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=Xie(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(tt.from(Yie(n,e,i+1))))}}function Jie(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,Jie(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(tt.empty,!0);return e.copy(n.append(r))}function fE(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=fE(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(tt.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function Qj(e,t,n){return t<e.openStart&&(e=new Ct(fE(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Ct(fE(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const Qie={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function eae(){return document.implementation.createHTMLDocument("title")}let Gg=null;function $at(e){let t=window.trustedTypes;if(!t)return e;if(!Gg){if(Gg=t.defaultPolicy)try{return Gg.createHTML(e)}catch{}Gg=t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})}return Gg.createHTML(e)}function Lat(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=eae(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&Qie[i[1].toLowerCase()])&&(e=a.map(o=>"<"+o+">").join("")+e+a.map(o=>"</"+o+">").reverse().join("")),r.innerHTML=$at(e),a)for(let o=0;o<a.length;o++)r=r.querySelector(a[o])||r;for(let o=0;o<n.styleSheets.length;o++){let s=n.styleSheets[o];for(let l=0;l<s.rules.length;l++){let u=s.rules[l];if(u instanceof CSSStyleRule){let c=r.querySelectorAll(u.selectorText);for(let d=0;d<c.length;d++)c[d].style.cssText+=u.style.cssText}}}return r}function Rat(e){let t=e.querySelectorAll(da?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent=="Â "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function Oat(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let s=r.length-2;s>=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;try{i=tt.from(l.create(r[s+1],i))}catch{break}a++,o++}return new Ct(i,a,o)}const Ua={},Ha={},Bat={touchstart:!0,touchmove:!0};class Fat{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function zat(e){for(let t in Ua){let n=Ua[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{Vat(e,r)&&!FD(e,r)&&(e.editable||!(r.type in Ha))&&n(e,r)},Bat[t]?{passive:!0}:void 0)}Ca&&e.dom.addEventListener("input",()=>null),hE(e)}function dc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Nat(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function hE(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>FD(e,r))})}function FD(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function Vat(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function jat(e,t){!FD(e,t)&&Ua[t.type]&&(e.editable||!(t.type in Ha))&&Ua[t.type](e,t)}Ha.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!iae(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(cc&&da&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Jm&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,sh(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||Pat(e,n)?n.preventDefault():dc(e,"key")};Ha.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Ha.keypress=(e,t)=>{let n=t;if(iae(e)||!n.charCode||n.ctrlKey&&!n.altKey||Cs&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof an)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),a=()=>e.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i,a))&&e.dispatch(a()),n.preventDefault()}};function Wv(e){return{left:e.clientX,top:e.clientY}}function Uat(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function zD(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),i,!0):s(e,n,a.node(o),a.before(o),i,!1)))return!0;return!1}function Gv(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function Hat(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Zt.isSelectable(r)?(Gv(e,new Zt(n)),!0):!1}function qat(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Zt&&(r=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(Zt.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(o);break}}return i!=null?(Gv(e,Zt.create(e.state.doc,i)),!0):!1}function Wat(e,t,n,r,i){return zD(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?qat(e,n):Hat(e,n))}function Gat(e,t,n,r){return zD(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function Zat(e,t,n,r){return zD(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||Kat(e,n,r)}function Kat(e,t,n){if(n.button!=0)return!1;let r=tae(e,t,!0),i=e.state.doc;return r?(Gv(e,r),r instanceof an&&i.eq(e.state.doc)&&(e.input.mouseDown=new Xat(e,r)),!0):!1}function tae(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?an.create(r,0,r.content.size):null;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)return an.create(r,s+1,s+1+o.content.size);if(n&&Zt.isSelectable(o))return Zt.create(r,s)}return null}function ND(e){return U5(e)}const nae=Cs?"metaKey":"ctrlKey";Ua.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=ND(e),i=Date.now(),a="singleClick";i-e.input.lastClick.time<500&&Uat(n,e.input.lastClick)&&!n[nae]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(Wv(n));o&&(a=="singleClick"?e.input.mouseDown=new Yat(e,o,n,!!r):(a=="doubleClick"?Gat:Zat)(e,o.pos,o.inside,n)?n.preventDefault():dc(e,"pointer"))};class rae{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(t){this.done()}move(t){t.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class Yat extends rae{constructor(t,n,r,i){super(t),this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=t.state.doc,this.selectNode=!!r[nae],this.allowDefault=r.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let c=t.state.doc.resolve(n.pos);a=c.parent,o=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&Vt(l.nodeDOM)?l.nodeDOM:null;let{selection:u}=t.state;r.button==0&&(a.type.spec.draggable&&a.type.spec.selectable!==!1||u instanceof Zt&&u.from<=o&&u.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ko&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),dc(t,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||xc(this.view)})}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Wv(t))),this.updateAllowDefault(t),this.allowDefault||!n?dc(this.view,"pointer"):Wat(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Ca&&this.mightDrag&&!this.mightDrag.node.isAtom||da&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Gv(this.view,Mn.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):dc(this.view,"pointer")}move(t){this.updateAllowDefault(t),dc(this.view,"pointer"),super.move(t)}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class Xat extends rae{constructor(t,n){super(t),this.startSelection=n,this.startDoc=t.state.doc}move(t){if(t.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}t.preventDefault(),dc(this.view,"pointer");let n=this.view.posAtCoords(Wv(t)),r=n&&tae(this.view,n.inside,!1);if(!r)return;let{doc:i}=this.view.state,a=this.startSelection,[o,s]=r.from<a.from?[a.to,r.from]:[a.from,r.to];Gv(this.view,an.create(i,o,s))}}Ua.touchstart=e=>{e.input.lastTouch=Date.now(),ND(e),dc(e,"pointer")};Ua.touchmove=e=>{e.input.lastTouch=Date.now(),dc(e,"pointer")};Ua.contextmenu=e=>ND(e);function iae(e,t){return e.composing?!0:Ca&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const Jat=cc?5e3:-1;Ha.compositionstart=Ha.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof an&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||da&&$ie&&Qat(e)))e.markCursor=e.state.storedMarks||n.marks(),U5(e,!0),e.markCursor=null;else if(U5(e,!t.selection.empty),Ko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&Vt(i)&&a!=0;){let o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if($i(o)){let s=e.domSelection();s&&s.collapse(o,o.nodeValue.length);break}else i=o,a=-1}}e.input.composing=!0}aae(e,Jat)};function Qat(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!Vt(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return Vt(r)&&r.contentEditable=="false"}Ha.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,aae(e,20))};function aae(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>U5(e),t))}function oae(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function eot(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=qit(t.focusNode,t.focusOffset),r=Wit(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,a=e.domObserver.lastChangedTextNode;if(n==a||r==a)return a;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return r}}return n||r}function U5(e,t=!1){if(!(cc&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),oae(e),t||e.docView&&e.docView.dirty){let n=RD(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function tot(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const Z2=yo&&Nd<15||Jm&&Yit<604;Ua.copy=Ha.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=Z2?null:n.clipboardData,o=r.content(),{dom:s,text:l}=BD(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",l)):tot(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function not(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function rot(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?K2(e,r.value,null,i,t):K2(e,r.textContent,r.innerHTML,i,t)},50)}function K2(e,t,n,r,i){let a=Kie(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,a||Ct.empty)))return!0;if(!a)return!1;let o=not(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function sae(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ha.paste=(e,t)=>{let n=t;if(e.composing&&!cc)return;let r=Z2?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&K2(e,sae(r),r.getData("text/html"),i,n)?n.preventDefault():rot(e,n)};class lae{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const iot=Cs?"altKey":"ctrlKey";function uae(e,t){let n;return e.someProp("dragCopies",r=>{n=n||r(t)}),n!=null?!n:!t[iot]}Ua.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(Wv(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Zt?i.to-1:i.to))){if(r&&r.mightDrag)o=Zt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&Vt(n.target)){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(o=Zt.create(e.state.doc,d.posBefore))}}let s=(o||e.state.selection).content(),{dom:l,text:u,slice:c}=BD(e,s);(!n.dataTransfer.files.length||!da||Iie>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Z2?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Z2||n.dataTransfer.setData("text/plain",u),e.dragging=new lae(c,uae(e,n),o)};Ua.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Ha.dragover=Ha.dragenter=(e,t)=>t.preventDefault();Ha.drop=(e,t)=>{try{aot(e,t,e.dragging)}finally{e.dragging=null}};function aot(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(Wv(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp("transformPasted",h=>{a=h(a,e,!1)}):a=Kie(e,sae(t.dataTransfer),Z2?null:t.dataTransfer.getData("text/html"),!1,i);let o=!!(n&&uae(e,t));if(e.someProp("handleDrop",h=>h(e,t,a||Ct.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?fit(e.state.doc,i.pos,a):i.pos;s==null&&(s=i.pos);let l=e.state.tr;if(o){let{node:h}=n;h?h.replace(l):l.deleteSelection()}let u=l.mapping.map(s),c=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=l.doc;if(c?l.replaceRangeWith(u,u,a.content.firstChild):l.replaceRange(u,u,a),l.doc.eq(d))return;let f=l.doc.resolve(u);if(c&&Zt.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new Zt(f));else{let h=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((p,g,v,b)=>h=b),l.setSelection(OD(e,f,l.doc.resolve(h)))}
vendor: 9,234 bytes, line 855
855e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}Ua.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&xc(e)},20))};Ua.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Ua.beforeinput=(e,t)=>{if(cc&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,sh(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Ha)Ua[e]=Ha[e];function Y2(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class H5{constructor(t,n){this.toDOM=t,this.spec=n||Fh,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:o}=t.mapResult(n.from+i,this.side<0?-1:1);return o?null:new il(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof H5&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Y2(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ud{constructor(t,n){this.attrs=t,this.spec=n||Fh}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=o?null:new il(a,o,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof Ud&&Y2(this.attrs,t.attrs)&&Y2(this.spec,t.spec)}static is(t){return t.type instanceof Ud}destroy(){}}class VD{constructor(t,n){this.attrs=t,this.spec=n||Fh}map(t,n,r,i){let a=t.mapResult(n.from+i,1);if(a.deleted)return null;let o=t.mapResult(n.to+i,-1);return o.deleted||o.pos<=a.pos?null:new il(a.pos-r,o.pos-r,this)}valid(t,n){let{index:r,offset:i}=t.content.findIndex(n.from),a;return i==n.from&&!(a=t.child(r)).isText&&i+a.nodeSize==n.to}eq(t){return this==t||t instanceof VD&&Y2(this.attrs,t.attrs)&&Y2(this.spec,t.spec)}destroy(){}}class il{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new il(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new il(t,t,new H5(n,r))}static inline(t,n,r,i){return new il(t,n,new Ud(r,i))}static node(t,n,r,i){return new il(t,n,new VD(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ud}get widget(){return this.type instanceof H5}}const z0=[],Fh={};class Gr{constructor(t,n){this.local=t.length?t:z0,this.children=n.length?n:z0}static create(t,n){return n.length?q5(n,t,0,Fh):va}find(t,n,r){let i=[];return this.findInner(t??0,n??1e9,i,0,r),i}findInner(t,n,r,i,a){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=n&&s.to>=t&&(!a||a(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>t){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,r,i+s,a)}}map(t,n,r){return this==va||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Fh)}mapInner(t,n,r,i,a){let o;for(let s=0;s<this.local.length;s++){let l=this.local[s].map(t,r,i);l&&l.type.valid(n,l)?(o||(o=[])).push(l):a.onRemove&&a.onRemove(this.local[s].spec)}return this.children.length?oot(this.children,o||[],t,n,r,i,a):o?new Gr(o.sort(zh),z0):va}add(t,n){return n.length?this==va?Gr.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((s,l)=>{let u=l+r,c;if(c=dae(n,s,u)){for(i||(i=this.children.slice());a<i.length&&i[a]<l;)a+=3;i[a]==l?i[a+2]=i[a+2].addInner(s,c,u+1):i.splice(a,0,l,l+s.nodeSize,q5(c,s,u+1,Fh)),a+=3}});let o=cae(a?fae(n):n,-r);for(let s=0;s<o.length;s++)o[s].type.valid(t,o[s])||o.splice(s--,1);return new Gr(o.length?this.local.concat(o).sort(zh):this.local,i||this.children)}remove(t){return t.length==0||this==va?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,i=this.local;for(let a=0;a<r.length;a+=3){let o,s=r[a]+n,l=r[a+1]+n;for(let c=0,d;c<t.length;c++)(d=t[c])&&d.from>s&&d.to<l&&(t[c]=null,(o||(o=[])).push(d));if(!o)continue;r==this.children&&(r=this.children.slice());let u=r[a+2].removeInner(o,s+1);u!=va?r[a+2]=u:(r.splice(a,3),a-=3)}if(i.length){for(let a=0,o;a<t.length;a++)if(o=t[a])for(let s=0;s<i.length;s++)i[s].eq(o,n)&&(i==this.local&&(i=this.local.slice()),i.splice(s--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new Gr(i,r):va}forChild(t,n){if(this==va)return this;if(n.isLeaf)return Gr.empty;let r,i;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=t){this.children[s]==t&&(r=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;s<this.local.length;s++){let l=this.local[s];if(l.from<o&&l.to>a&&l.type instanceof Ud){let u=Math.max(a,l.from)-a,c=Math.min(o,l.to)-a;u<c&&(i||(i=[])).push(l.copy(u,c))}}if(i){let s=new Gr(i.sort(zh),z0);return r?new Td([s,r]):s}return r||va}eq(t){if(this==t)return!0;if(!(t instanceof Gr)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return jD(this.localsInner(t))}localsInner(t){if(this==va)return z0;if(t.inlineContent||!this.local.some(Ud.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Ud||n.push(this.local[r]);return n}forEachSet(t){t(this)}}Gr.empty=new Gr([],[]);Gr.removeOverlap=jD;const va=Gr.empty;class Td{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,Fh));return Td.from(r)}forChild(t,n){if(n.isLeaf)return Gr.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=va&&(a instanceof Td?r=r.concat(a.members):r.push(a))}return Td.from(r)}eq(t){if(!(t instanceof Td)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let i=0;i<this.members.length;i++){let a=this.members[i].localsInner(t);if(a.length)if(!n)n=a;else{r&&(n=n.slice(),r=!1);for(let o=0;o<a.length;o++)n.push(a[o])}}return n?jD(r?n:n.sort(zh)):z0}static from(t){switch(t.length){case 0:return va;case 1:return t[0];default:return new Td(t.every(n=>n instanceof Gr)?t:t.reduce((n,r)=>n.concat(r instanceof Gr?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function oot(e,t,n,r,i,a,o){let s=e.slice();for(let u=0,c=a;u<n.maps.length;u++){let d=0;n.maps[u].forEach((f,h,p,g)=>{let v=g-p-(h-f);for(let b=0;b<s.length;b+=3){let x=s[b+1];if(x<0||f>x+c-d)continue;let _=s[b]+c-d;h>=_?s[b+1]=f<=_?-2:-1:f>=c&&v&&(s[b]+=v,s[b+1]+=v)}d+=v}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<s.length;u+=3)if(s[u+1]<0){if(s[u+1]==-2){l=!0,s[u+1]=-1;continue}let c=n.map(e[u]+a),d=c-i;if(d<0||d>=r.content.size){l=!0;continue}let f=n.map(e[u+1]+a,-1),h=f-i,{index:p,offset:g}=r.content.findIndex(d),v=r.maybeChild(p);if(v&&g==d&&g+v.nodeSize==h){let b=s[u+2].mapInner(n,v,c+1,e[u]+a+1,o);b!=va?(s[u]=d,s[u+1]=h,s[u+2]=b):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=sot(s,e,t,n,i,a,o),c=q5(u,r,0,o);t=c.local;for(let d=0;d<s.length;d+=3)s[d+1]<0&&(s.splice(d,3),d-=3);for(let d=0,f=0;d<c.children.length;d+=3){let h=c.children[d];for(;f<s.length&&s[f]<h;)f+=3;s.splice(f,0,c.children[d],c.children[d+1],c.children[d+2])}}return new Gr(t.sort(zh),s)}function cae(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new il(i.from+t,i.to+t,i.type))}return n}function sot(e,t,n,r,i,a,o){function s(l,u){for(let c=0;c<l.local.length;c++){let d=l.local[c].map(r,i,u);d?n.push(d):o.onRemove&&o.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)s(l.children[c+2],l.children[c]+u+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&s(e[l+2],t[l]+a+1);return n}function dae(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let a=0,o;a<e.length;a++)(o=e[a])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),e[a]=null);return i}function fae(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function q5(e,t,n,r){let i=[],a=!1;t.forEach((s,l)=>{let u=dae(e,s,l+n);if(u){a=!0;let c=q5(u,s,n+l+1,r);c!=va&&i.push(l,l+s.nodeSize,c)}});let o=cae(a?fae(e):e,-n).sort(zh);for(let s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||i.length?new Gr(o,i):va}function zh(e,t){return e.from-t.from||e.to-t.to}function jD(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),eU(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),eU(t,i,r.copy(a.from,r.to)));break}}}return t}
vendor: 25,157 bytes, line 855
855function eU(e,t,n){for(;t<e.length&&zh(n,e[t])>0;)t++;e.splice(t,0,n)}function rS(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=va&&t.push(r)}),e.cursorWrapper&&t.push(Gr.create(e.state.doc,[e.cursorWrapper.deco])),Td.from(t)}const lot={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},uot=yo&&Nd<=11;class cot{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class dot{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new cot,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);yo&&Nd<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():Ca&&t.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),uot&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,lot)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Gj(this.view)){if(this.suppressingSelectionUpdates)return xc(this.view);if(yo&&Nd<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&op(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let a=t.focusNode;a;a=Xm(a))n.add(a);for(let a=t.anchorNode;a;a=Xm(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:$i(r)?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Gj(t)&&!this.ignoreSelectionChange(r),a=-1,o=-1,s=!1,l=[];if(t.editable)for(let c=0;c<n.length;c++){let d=this.registerMutation(n[c],l);d&&(a=a<0?d.from:Math.min(d.from,a),o=o<0?d.to:Math.max(d.to,o),d.typeOver&&(s=!0))}if(l.some(c=>c.nodeName=="BR")&&(t.input.lastKeyCode==8||t.input.lastKeyCode==46||da&&(t.composing||t.input.compositionEndedAt>Date.now()-50)&&n.some(c=>c.type=="childList"&&c.removedNodes.length))){for(let c of l)if(c.nodeName=="BR"&&c.parentNode){let d=c.nextSibling;for(;d&&Vt(d);){if(d.contentEditable=="false"){c.parentNode.removeChild(c);break}d=d.firstChild}}}else if(Ko&&l.length){let c=l.filter(d=>d.nodeName=="BR");if(c.length==2){let[d,f]=c;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of c){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||pot(t,d)!=h)&&f.remove()}}}let u=null;a<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&Mw(r)&&(u=RD(t))&&u.eq(Mn.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,xc(t),this.currentSelection.set(r),t.scrollToSelection()):(a>-1||i)&&(a>-1&&(t.docView.markDirty(a,o),fot(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,mot(t,l)),this.handleDOMChange(a,o,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||xc(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;c<t.addedNodes.length;c++){let d=t.addedNodes[c];n.push(d),$i(d)&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let i=t.previousSibling,a=t.nextSibling;if(yo&&Nd<=11&&t.addedNodes.length)for(let c=0;c<t.addedNodes.length;c++){let{previousSibling:d,nextSibling:f}=t.addedNodes[c];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(i=d),(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(a=f)}let o=i&&i.parentNode==t.target?aa(i)+1:0,s=r.localPosFromDOM(t.target,o,-1),l=a&&a.parentNode==t.target?aa(a):t.target.childNodes.length,u=r.localPosFromDOM(t.target,l,1);return{from:s,to:u}}else return t.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let tU=new WeakMap,nU=!1;function fot(e){if(!tU.has(e)&&(tU.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Ko,nU)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),nU=!0}}function rU(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return op(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function hot(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return rU(e,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?rU(e,n):null}function pot(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function mot(e,t){var n;let{focusNode:r,focusOffset:i}=e.domSelectionRange();for(let a of t)if(((n=a.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let o=a.nextSibling;for(;o&&o.nodeName!="TD"&&o.nodeName!="TH";)o=o.nextSibling;if(o){let s=o;for(;;){let l=s.firstChild;if(!l||!Vt(l)||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;s=l}s.insertBefore(a,s.firstChild),r==a&&e.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}function got(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:l}=e.docView.parseRange(t,n),u=e.domSelectionRange(),c,d=u.anchorNode;if(d&&sp(e.dom,d)&&(c=[{node:d,offset:u.anchorOffset}],Mw(u)||c.push({node:u.focusNode,offset:u.focusOffset})),da&&e.input.lastKeyCode===8)for(let b=o;b>a;b--){let x=i.childNodes[b-1],_=x.pmViewDesc;if(x.nodeName=="BR"&&!_){o=b;break}if(!_||_.size)break}let f=e.state.doc,h=e.someProp("domParser")||jy.fromSchema(e.state.schema),p=f.resolve(s),g=null,v=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:a,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:yot(r),context:p});if(c&&c[0].pos!=null){let b=c[0].pos,x=c[1]&&c[1].pos;x==null&&(x=b),g={anchor:b+s,head:x+s}}return{doc:v,sel:g,from:s,to:l}}const yot=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName=="BR"&&t.parentNode){if(Ca&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(t.parentNode.lastChild==t||Ca&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null},vot=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function _ot(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let k=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,A=RD(e,k);if(A&&!e.state.selection.eq(A)){if(da&&cc&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",D=>D(e,sh(13,"Enter"))))return;let P=e.state.tr.setSelection(A);k=="pointer"?P.setMeta("pointer",!0):k=="key"&&P.scrollIntoView(),a&&P.setMeta("composition",a),e.dispatch(P)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,u=got(e,t,n,i),c=e.state.doc,d=c.slice(u.from,u.to),f,h;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,h="end"):(f=e.state.selection.from,h="start"),e.input.lastKeyCode=null;let p=Sot(d.content,u.doc.content,u.from,f,h);if(p&&e.input.domChangeCount++,(Jm&&e.input.lastIOSEnter>Date.now()-225||cc)&&i.some(k=>Vt(k)&&!vot.test(k.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",k=>k(e,sh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof an&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let k=iU(e,e.state.doc,u.sel);if(k&&!k.eq(e.state.selection)){let A=e.state.tr.setSelection(k);a&&A.setMeta("composition",a),e.dispatch(A)}}return}e.state.selection.from<e.state.selection.to&&p.start==p.endB&&e.state.selection instanceof an&&(p.start>e.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA<e.state.selection.to&&p.endA>=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),yo&&Nd<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)==" Â "&&(p.start--,p.endA--,p.endB--);let g=u.doc.resolveNoCache(p.start-u.from),v=u.doc.resolveNoCache(p.endB-u.from),b=c.resolve(p.start),x=g.sameParent(v)&&g.parent.inlineContent&&b.end()>=p.endA;if((Jm&&e.input.lastIOSEnter>Date.now()-225&&(!x||i.some(k=>k.nodeName=="DIV"||k.nodeName=="P"))||!x&&wot(u.doc,g.pos,v.pos))&&e.someProp("handleKeyDown",k=>k(e,sh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&xot(c,p.start,p.endA,g,v)&&e.someProp("handleKeyDown",k=>k(e,sh(8,"Backspace")))){cc&&da&&e.domObserver.suppressSelectionUpdates();return}da&&p.endB==p.start&&(e.input.lastChromeDelete=Date.now()),cc&&!x&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,v=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(k){return k(e,sh(13,"Enter"))})},20));let _=p.start,w=p.endA,C=k=>{let A=k||e.state.tr.replace(_,w,u.doc.slice(p.start-u.from,p.endB-u.from));if(u.sel){let P=iU(e,A.doc,u.sel);P&&!(da&&e.composing&&P.empty&&(p.start!=p.endB||e.input.lastChromeDelete<Date.now()-100)&&(P.head==_||P.head==A.mapping.map(w)-1)||yo&&P.empty&&P.head==_)&&A.setSelection(P)}return a&&A.setMeta("composition",a),A.scrollIntoView()},T;if(x)if(g.pos==v.pos){yo&&Nd<=11&&g.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>xc(e),20));let k=C(e.state.tr.delete(_,w)),A=c.resolve(p.start).marksAcross(c.resolve(p.endA));A&&k.ensureMarks(A),e.dispatch(k)}else if(p.endA==p.endB&&(T=bot(g.parent.content.cut(g.parentOffset,v.parentOffset),b.parent.content.cut(b.parentOffset,p.endA-b.start())))){let k=C(e.state.tr);T.type=="add"?k.addMark(_,w,T.mark):k.removeMark(_,w,T.mark),e.dispatch(k)}else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let k=g.parent.textBetween(g.parentOffset,v.parentOffset),A=()=>C(e.state.tr.insertText(k,_,w));e.someProp("handleTextInput",P=>P(e,_,w,k,A))||e.dispatch(A())}else e.dispatch(C());else e.dispatch(C())}function iU(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:OD(e,t.resolve(n.anchor),t.resolve(n.head))}function bot(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,l;for(let c=0;c<r.length;c++)i=r[c].removeFromSet(i);for(let c=0;c<n.length;c++)a=n[c].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o="add",l=c=>c.mark(s.addToSet(c.marks));else if(i.length==0&&a.length==1)s=a[0],o="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<t.childCount;c++)u.push(l(t.child(c)));if(tt.from(u).eq(e))return{mark:s,type:o}}function xot(e,t,n,r,i){if(n-t<=i.pos-r.pos||iS(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let s=a.nodeAfter;return s!=null&&n==t+s.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(iS(a,!0,!0));return!o.parent.isTextblock||o.pos>n||iS(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function wot(e,t,n){let r=0,i=0;return e.nodesBetween(t,n,(a,o)=>{a.isTextblock&&o>=t&&o<n?r++:(a.isText?/\S/.test(a.text.slice(Math.max(0,t-o),Math.min(a.nodeSize,n-o))):a.isLeaf)&&i++}),i==0&&r==1}function iS(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let a=e.node(r).maybeChild(e.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function Sot(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:l,b:u}=e.findDiffEnd(t,o,s);if(i=="end"){let c=Math.max(0,a-Math.min(l,u));r-=l+c-a}if(l<a&&o<s){let c=r<=a&&r>=l?a-r:0;a-=c,u=a+(u-l),l=a}else if(u<a){let c=r<=a&&r>=u?a-r:0;a-=c,l=a+(l-u),u=a}return{start:a,endA:l,endB:u}}class hae{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Fat,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(uU),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=sU(this),oU(this),this.nodeViews=lU(this),this.docView=Vj(this.state.doc,aU(this),rS(this),this.dom,this),this.domObserver=new dot(this,(r,i,a,o)=>_ot(this,r,i,a,o)),this.domObserver.start(),zat(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&hE(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(uU),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,a=!1,o=!1;t.storedMarks&&this.composing&&(oae(this),o=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=lU(this);Tot(h,this.nodeViews)&&(this.nodeViews=h,a=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&hE(this),this.editable=sU(this),oU(this);let l=rS(this),u=aU(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=a||!this.docView.matchesNode(t.doc,u,l);(d||!t.selection.eq(i.selection))&&(o=!0);let f=c=="preserve"&&o&&this.dom.style.overflowAnchor==null&&Qit(this);if(o){this.domObserver.stop();let h=d&&(yo||da)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&Cot(i.selection,t.selection);if(d){let g=da?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=eot(this)),(a||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Vj(t.doc,u,l,this.dom,this)),g&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(h=!0)}let p=this.input.mouseDown;h||!(p&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Sat(this)&&p.delaySelUpdate())?xc(this,h):(Wie(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&eat(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!sp(this.dom,t))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Zt){let n=this.docView.domAfterPos(this.state.selection.from);Vt(n)&&Oj(this,n.getBoundingClientRect(),t)}else Oj(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,t)}}updateDraggedNode(t,n){let r=t.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let a=r.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&a<this.state.doc.content.size&&this.state.doc.nodeAt(a))==r.node&&(i=a)}this.dragging=new lae(t.slice,t.move,i<0?void 0:Zt.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let o=0;o<this.directPlugins.length;o++){let s=this.directPlugins[o].props[t];if(s!=null&&(i=n?n(s):s))return i}let a=this.state.plugins;if(a)for(let o=0;o<a.length;o++){let s=a[o].props[t];if(s!=null&&(i=n?n(s):s))return i}}hasFocus(){if(yo){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&tat(this.dom),xc(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return oat(this,t)}coordsAtPos(t,n=1){return Fie(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return dat(this,n||this.state,t)}pasteHTML(t,n){return K2(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return K2(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return BD(this,t)}destroy(){this.docView&&(Nat(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],rS(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Uit())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return jat(this,t)}domSelectionRange(){let t=this.dom.isConnected!==!1&&this.domSelection();return t?Ca&&this.root.nodeType===11&&Zit(this.dom.ownerDocument)==this.dom&&hot(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}hae.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function aU(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[il.node(0,e.state.doc.content.size,t)]}function oU(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:il.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function sU(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Cot(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function lU(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Tot(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function uU(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var af={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},W5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},kot=typeof navigator<"u"&&/Mac/.test(navigator.platform),Eot=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var oa=0;oa<10;oa++)af[48+oa]=af[96+oa]=String(oa);for(var oa=1;oa<=24;oa++)af[oa+111]="F"+oa;for(var oa=65;oa<=90;oa++)af[oa]=String.fromCharCode(oa+32),W5[oa]=String.fromCharCode(oa);for(var aS in af)W5.hasOwnProperty(aS)||(W5[aS]=af[aS]);function Mot(e){var t=kot&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Eot&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?W5:af)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Aot=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Pot=typeof navigator<"u"&&/Win/.test(navigator.platform);function Dot(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,o;for(let s=0;s<t.length-1;s++){let l=t[s];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))a=!0;else if(/^mod$/i.test(l))Aot?o=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),o&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function Iot(e){let t=Object.create(null);for(let n in e)t[Dot(n)]=e[n];return t}
vendor: 8,379 bytes, line 855
855function oS(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function $ot(e){return new Ea({props:{handleKeyDown:Lot(e)}})}function Lot(e){let t=Iot(e);return function(n,r){let i=Mot(r),a,o=t[oS(i,r)];if(o&&o(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=t[oS(i,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(Pot&&r.ctrlKey&&r.altKey)&&(a=af[r.keyCode])&&a!=i){let s=t[oS(a,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var G5=200,qi=function(){};qi.prototype.append=function(t){return t.length?(t=qi.from(t),!this.length&&t||t.length<G5&&this.leafAppend(t)||this.length<G5&&t.leafPrepend(this)||this.appendInner(t)):this};qi.prototype.prepend=function(t){return t.length?qi.from(t).append(this):this};qi.prototype.appendInner=function(t){return new Rot(this,t)};qi.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?qi.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};qi.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};qi.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};qi.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(t(a,o))},n,r),i};qi.from=function(t){return t instanceof qi?t:t&&t.length?new pae(t):qi.empty};var pae=(function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,o,s){for(var l=a;l<o;l++)if(i(this.values[l],s+l)===!1)return!1},t.prototype.forEachInvertedInner=function(i,a,o,s){for(var l=a-1;l>=o;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=G5)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=G5)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t})(qi);qi.empty=new pae([]);var Rot=(function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,i,a,o){var s=this.left.length;if(i<s&&this.left.forEachInner(r,i,Math.min(a,s),o)===!1||a>s&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(a,s)-s,o+s)===!1||a<s&&this.left.forEachInvertedInner(r,Math.min(i,s),a,o)===!1)return!1},t.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var a=this.left.length;return i<=a?this.left.slice(r,i):r>=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t})(qi);const Oot=500;class kd{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,l,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),a=i.maps.length),a--,c.push(d);return}if(i){c.push(new Ol(d.map));let h=d.step.map(i.slice(a)),p;h&&o.maybeStep(h).doc&&(p=o.mapping.maps[o.mapping.maps.length-1],u.push(new Ol(p,void 0,void 0,u.length+c.length))),a--,p&&i.appendMap(p,a)}else o.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(a)):d.selection,l=new kd(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;c<t.steps.length;c++){let d=t.steps[c].invert(t.docs[c]),f=new Ol(t.mapping.maps[c],d,n),h;(h=l&&l.merge(f))&&(f=h,c?a.pop():s=s.slice(0,s.length-1)),a.push(f),n&&(o++,n=void 0),i||(l=f)}let u=o-r.depth;return u>Fot&&(s=Bot(s,u),o-=u),new kd(s.append(a),o)}remapping(t,n){let r=new W2;return this.items.forEach((i,a)=>{let o=i.mirrorOffset!=null&&a-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},t,n),r}addMaps(t){return this.eventCount==0?this:new kd(this.items.append(t.map(n=>new Ol(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},i);let l=n;this.items.forEach(f=>{let h=a.getMirror(--l);if(h==null)return;o=Math.min(o,h);let p=a.maps[h];if(f.step){let g=t.steps[h].invert(t.docs[h]),v=f.selection&&f.selection.map(a.slice(l+1,h));v&&s++,r.push(new Ol(p,g,v))}else r.push(new Ol(p))},i);let u=[];for(let f=n;f<o;f++)u.push(new Ol(a.maps[f]));let c=this.items.slice(0,i).append(u).append(r),d=new kd(c,s);return d.emptyItemCount()>Oot&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)i.push(o),o.selection&&a++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=o.selection&&o.selection.map(n.slice(r));c&&a++;let d=new Ol(u.invert(),l,c),f,h=i.length-1;(f=i.length&&i[h].merge(d))?i[h]=f:i.push(d)}}else o.map&&r--},this.items.length,0),new kd(qi.from(i.reverse()),a)}}kd.empty=new kd(qi.empty,0);function Bot(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class Ol{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ol(n.getMap().invert(),n,this.selection)}}}const Fot=20;function zot(e){return e.setMeta(Vot,!0)}const Not=new bo("history"),Vot=new bo("closeHistory");function jot(e){return e.getMeta(Not)!=null}function Dw(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var bm=class mae{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:a}=r,o=this.buildProps(a);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...c)=>{const d=l(...c)(o);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:o}=i,s=[],l=!!t,u=t||a.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(u),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,h])=>[f,(...g)=>
855{const v=this.buildProps(u,n),b=h(...g)(v);return s.push(b),d}])),run:c};return d}static createFakeChain(){const t=new Proxy({},{get:(n,r)=>{if(r!=="then")return r==="run"?()=>!1:()=>t}});return t}createCan(t){const{rawCommands:n,state:r}=this,i=!1,a=t||r.tr,o=this.buildProps(a,i);return{...Object.fromEntries(Object.entries(n).map(([s,l])=>[s,(...u)=>l(...u)({...o,dispatch:void 0})])),chain:()=>this.createChain(a,i)}}static createFallbackCan(){const t=mae.createFakeChain();return new Proxy({chain:()=>t},{get:(n,r)=>{if(r!=="then")return r==="chain"?n.chain:()=>!1}})}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:o}=i,s={tr:t,editor:i,view:o,state:Dw({state:a,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}};const Uot=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)===null||n===void 0||(n=n.get
855Selection())===null||n===void 0||n.removeAllRanges()}}),!0),Hot=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),qot=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:a,$to:o})=>{e.doc.nodesBetween(a.pos,o.pos,(s,l)=>{if(s.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(l)),f=u.resolve(c.map(l+s.nodeSize)),h=d.blockRange(f);if(!h)return;const p=z1(h);if(s.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(h.start,g)}(p||p===0)&&t.lift(h,p)})}),!0},Wot=e=>t=>e(t),Got=()=>({state:e,dispatch:t})=>Eie(e,t),Zot=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new an(r.doc.resolve(Math.max(o-1,0)))),!0},Kot=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r.type){if(t){const o=i.before(a),s=i.after(a);e.delete(o,s).scrollIntoView()}return!0}return!1};function Bi(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}const Yot=e=>({tr:t,state:n,dispatch:r})=>{const i=Bi(e,n.schema),a=t.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===i){if(r){const s=a.before(o),l=a.after(o);t.delete(s,l).scrollIntoView()}return!0}return!1},Xot=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},Jot=e=>e.content?/^text(\*|\+)/.test(e.content):!1,cU=(e,t,n)=>{if(!e.parent.isInline||n==="left"&&e.pos>e.start()||n==="right"&&e.pos<e.end())return e.pos;const r=t.nodes[e.parent.type.name].spec;return Jot(r)?n==="left"?e.start()-1:e.end()+1:e.pos},Qot=(e,t,n)=>({from:cU(e,n,"left"),to:cU(t,n,"right")}),est=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){const n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(a=>{const o=n.mapping.slice(i),s=n.doc.resolve(o.map(a.$from.pos)),l=n.doc.resolve(o.map(a.$to.pos)),{from:u,to:c}=Qot(s,l,e.schema);n.deleteRange(u,c)}),n.selection.empty||n.setSelection(an.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},tst=()=>({commands:e})=>e.keyboardShortcut("Enter"),nst=()=>({state:e,dispatch:t})=>Mit(e,t);function UD(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Z5(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:UD(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function gae(e,t,n={}){return e.find(r=>r.type===t&&Z5(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function dU(e,t,n={}){return!!gae(e,t,n)}function HD(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(l=>l.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(l=>l.type===t))return;if(!n){const l=r.node.marks.find(u=>u.type===t);l&&(n=l.attrs)}if(!gae([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&dU([...e.parent.child(i-1).marks],t,n);)i-=1,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&dU([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function Nc(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const rst=(e,t)=>({tr:n,state:r,dispatch:i})=>{const a=Nc(e,r.schema),{doc:o,selection:s}=n,{$from:l,from:u,to:c}=s;if(i){const d=HD(l,a,t);if(d&&d.from<=u&&d.to>=c){const f=an.create(o,d.from,d.to);n.setSelection(f)}}return!0},ist=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function yae(e){return e instanceof an}function wh(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function pE(e,t=null){if(!t)return null;const n=Mn.atStart(e),r=Mn.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,a=r.to;return t==="all"?an.create(e,wh(0,i,a),wh(e.content.size,i,a)):an.create(e,wh(t,i,a),wh(t,i,a))}function fU(){return["Android"].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function K5(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function ast(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}const ost=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};const o=()=>
855{(K5()||fU())&&r.dom.focus(),ast()&&!K5()&&!fU()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!yae(n.state.selection))return o(),!0;const s=pE(i.doc,e)||n.state.selection,l=n.state.selection.eq(s);return a&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},sst=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),lst=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),vae=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&vae(r)}return e};function gb(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return vae(n)}function _ae(e){return typeof e?.nodesBetween=="function"}function Qm(e,t,n){if(_ae(e))return e;const r=typeof e=="object"&&e!==null;n={slice:!0,parseOptions:{},...n};const i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return tt.fromArray(e.map(o=>t.nodeFromJSON(o)));const a=t.nodeFromJSON(e);return n.errorOnInvalidContent&&a.check(),a}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",a),Qm("",t,n)}if(i){if(n.errorOnInvalidContent){let o=!1,s="";const l=new eie({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(o=!0,s=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?jy.fromSchema(l).parseSlice(gb(e),n.parseOptions):jy.fromSchema(l).parse(gb(e),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const a=jy.fromSchema(t);return n.slice?a.parseSlice(gb(e),n.parseOptions).content:a.parse(gb(e),n.parseOptions)}return Qm("",t,n)}function bae(e){return!("type"in e)}function xae(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof ti||i instanceof Hi))return;const a=e.mapping.maps[r];let o=0;a.forEach((s,l,u,c)=>{o===0&&(o=c)}),e.setSelection(Mn.near(e.doc.resolve(o),n))}const ust=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;const l=v=>{a.emit("contentError",{editor:a,error:v,disableCollaboration:()=>{"collaboration"in a.storage&&typeof a.storage.collaboration=="object"&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{Qm(t,a.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(v){l(v)}try{var o;s=Qm(t,a.schema,{parseOptions:u,errorOnInvalidContent:(o=n.errorOnInvalidContent)!==null&&o!==void 0?o:a.options.enableContentCheck})}catch(v){return l(v),!1}let{from:c,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},f=!0,h=!0;const p=bae(s)?s.content:[s];if(p.forEach(v=>{v.check(),f=f?v.isText&&v.marks.length===0:!1,h=h?v.isBlock:!1}),c===d&&h){const{parent:v}=r.doc.resolve(c);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(c-=1,d+=1)}let g;if(f)Array.isArray(t)?g=t.map(v=>v.text||"").join(""):_ae(t)?g=p.map(v=>{var b;return(b=v.text)!==null&&b!==void 0?b:""}).join(""):typeof t=="object"&&t&&t.text?g=t.text:g=t,r.insertText(g,c,d);else{g=tt.from(p);const v=r.doc.resolve(c),b=v.node(),x=v.parentOffset===0,_=b.isText||b.isTextblock,w=b.content.size>0;x&&_&&w&&h&&(c=Math.max(0,c-1)),r.replaceWith(c,d,p)}n.updateSelection&&xae(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:g})}return!0};function wae(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const cst=(e={})=>({tr:t,dispatch:n,editor:r})=>{const{pos:i,attrs:a,content:o,updateSelection:s=!0}=e;let l;typeof i=="number"?l=t.doc.resolve(i):i?l=i:l=t.selection.$from;const u=wae(l.parent.contentMatchAt(l.index()));if(!u)return!1;const c=Object.keys(u.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([h])=>c.includes(h))):{};let f;if(o){const h=Qm(o,r.schema);f=u.createAndFill(d,h)}else f=u.createAndFill(d);return f?(n&&(t.insert(l.pos,f),s&&xae(t,t.steps.length-1,-1)),!0):!1},dst=()=>({state:e,dispatch:t})=>Tit(e,t),fst=()=>({state:e,dispatch:t})=>kit(e,t),hst=()=>({state:e,dispatch:t})=>bie(e,t),pst=()=>({state:e,dispatch:t})=>Cie(e,t),Sae=(e,t)=>{const n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},mst=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Tw(e.doc,e.selection.$from.pos,-1);return r==null||!Sae(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},gst=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Tw(e.doc,e.selection.$from.pos,1);return r==null||!Sae(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},yst=()=>({state:e,dispatch:t})=>Sit(e,t),vst=()=>({state:e,dispatch:t})=>Cit(e,t);function Cae(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function _st(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,a,o;for(let s=0;s<t.length-1;s+=1){const l=t[s];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))a=!0;else if(/^mod$/i.test(l))K5()||Cae()?o=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}const bst=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const a=_st(e).split(/-(?!$)/),o=a.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),s=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,s))});return l?.steps.forEach(u=>{const c=u.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function Ic(e,t,n={}){const{from:r,to:i,empty:a}=e.selection,o=t?Bi(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(c,d)=>
855{if(c.isText)return;const f=Math.max(r,d),h=Math.min(i,d+c.nodeSize);s.push({node:c,from:f,to:h})});const l=i-r,u=s.filter(c=>o?o.name===c.node.type.name:!0).filter(c=>Z5(c.node.attrs,n,{strict:!1}));return a?!!u.length:u.reduce((c,d)=>c+d.to-d.from,0)>=l}const xst=(e,t={})=>({state:n,dispatch:r})=>Ic(n,Bi(e,n.schema),t)?Eit(n,r):!1,wst=()=>({state:e,dispatch:t})=>Mie(e,t),Sst=e=>({state:t,dispatch:n})=>{const r=Bi(e,t.schema);return zit(r)(t,n)},Cst=()=>({state:e,dispatch:t})=>kie(e,t);function Iw(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function hU(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const Tst=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=Iw(typeof e=="string"?e:e.name,r.schema);if(!s)return!1;s==="node"&&(a=Bi(e,r.schema)),s==="mark"&&(o=Nc(e,r.schema));let l=!1;return n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(c,d)=>{a&&a===c.type&&(l=!0,i&&n.setNodeMarkup(d,void 0,hU(c.attrs,t))),o&&c.marks.length&&c.marks.forEach(f=>{o===f.type&&(l=!0,i&&n.addMark(d,d+c.nodeSize,o.create(hU(f.attrs,t))))})})}),l},kst=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Est=()=>({tr:e,dispatch:t})=>{if(t){const n=new Zo(e.doc);e.setSelection(n)}return!0},Mst=()=>({state:e,dispatch:t})=>wie(e,t),Ast=()=>({state:e,dispatch:t})=>Tie(e,t),Pst=()=>({state:e,dispatch:t})=>Dit(e,t),Dst=()=>({state:e,dispatch:t})=>Lit(e,t),Ist=()=>({state:e,dispatch:t})=>$it(e,t);function mE(e,t,n={},r={}){return Qm(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const $st=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{const{doc:l}=a;if(r.preserveWhitespace!=="full"){const u=mE(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){const c=bae(u)?u.content:[u];a.replaceWith(0,l.content.size,c).setMeta("preventUpdate",!n)}return!0}return o&&a.setMeta("preventUpdate",!n),s.insertContentAt({from:0,to:l.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function Tae(e,t){const n=Nc(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{o.push(...l.marks)});const s=o.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function kae(e,t){const n=new mie(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function Lst(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,a)=>{n(i)&&r.push({node:i,pos:a})}),r}function Rst(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function $w(e){return t=>Rst(t.$from,e)}function Ft(e,t,n){return e.config[t]===void 0&&e.parent?Ft(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Ft(e.parent,t,n):null}):e.config[t]}function qD(e){return e.map(t=>{const n=Ft(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return n?[t,...qD(n())]:t}).flat(10)}function WD(e,t){const n=Ip.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function gE(e){return typeof e=="function"}function fr(e,t=void 0,...n){return gE(e)?t?e.bind(t)(...n):e(...n):e}function Ost(e={}){return Object.keys(e).length===0&&e.constructor===Object}function e1(e){return{baseExtensions:e.filter(t=>t.type==="extension"),nodeExtensions:e.filter(t=>t.type==="node"),markExtensions:e.filter(t=>t.type==="mark")}}function Eae(e){const t=[],{nodeExtensions:n,markExtensions:r}=e1(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(u=>u.name!=="text").map(u=>u.name),s=r.map(u=>u.name),l=[...o,...s];return e.forEach(u=>{const c=Ft(u,"addGlobalAttributes",{name:u.name,options:u.options,storage:u.storage,extensions:i});c&&c().forEach(d=>{let f;Array.isArray(d.types)?f=d.types:d.types==="*"?f=l:d.types==="nodes"?f=o:d.types==="marks"?f=s:f=[],f.forEach(h=>
855{Object.entries(d.attributes).forEach(([p,g])=>{t.push({type:h,name:p,attribute:{...a,...g}})})})})}),i.forEach(u=>{const c=Ft(u,"addAttributes",{name:u.name,options:u.options,storage:u.storage});if(!c)return;const d=c();Object.entries(d).forEach(([f,h])=>{const p={...a,...h};typeof p?.default=="function"&&(p.default=p.default()),p?.isRequired&&p?.default===void 0&&delete p.default,t.push({type:u.name,name:f,attribute:p})})}),t}function Bst(e){const t=[];let n="",r=!1,i=!1,a=0;const o=e.length;for(let s=0;s<o;s+=1){const l=e[s];if(l==="'"&&!i){r=!r,n+=l;continue}if(l==='"'&&!r){i=!i,n+=l;continue}if(!r&&!i){if(l==="("){a+=1,n+=l;continue}if(l===")"&&a>0){a-=1,n+=l;continue}if(l===";"&&a===0){t.push(n),n="";continue}}n+=l}return n&&t.push(n),t}function pU(e){const t=[],n=Bst(e||""),r=n.length;for(let i=0;i<r;i+=1){const a=n[i],o=a.indexOf(":");if(o===-1)continue;const s=a.slice(0,o).trim(),l=a.slice(o+1).trim();s&&l&&t.push([s,l])}return t}function Vs(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,a])=>{if(i==="__proto__"){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,value:a,writable:!0});return}if(!r[i]){r[i]=a;return}if(i==="class"){const o=a?String(a).split(" "):[],s=r[i]?r[i].split(" "):[],l=o.filter(u=>!s.includes(u));r[i]=[...s,...l].join(" ")}else if(i==="style"){const o=new Map([...pU(r[i]),...pU(a)]);r[i]=Array.from(o.entries()).map(([s,l])=>`${s}: ${l}`).join("; ")}else r[i]=a}),r},{})}function X2(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Vs(n,r),{})}function Fst(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function mU(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((a,o)=>{const s=o.attribute.parseHTML?o.attribute.parseHTML(n):Fst(n.getAttribute(o.name));return s==null?a:{...a,[o.name]:s}},{});return{...r,...i}}}}function gU(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Ost(n)?!1:n!=null))}function yU(e){var t,n;const r={};return!(!(e==null||(t=e.attribute)===null||t===void 0)&&t.isRequired)&&"default"in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)===null||n===void 0?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function zst(e,t){var n;const r=Eae(e),{nodeExtensions:i,markExtensions:a}=e1(e),o=(n=i.find(u=>Ft(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(u=>{const c=r.filter(v=>v.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=gU({...e.reduce((v,b)=>{const x=Ft(b,"extendNodeSchema",d);return{...v,...x?x(u):{}}},{}),content:fr(Ft(u,"content",d)),marks:fr(Ft(u,"marks",d)),group:fr(Ft(u,"group",d)),inline:fr(Ft(u,"inline",d)),atom:fr(Ft(u,"atom",d)),selectable:fr(Ft(u,"selectable",d)),draggable:fr(Ft(u,"draggable",d)),code:fr(Ft(u,"code",d)),whitespace:fr(Ft(u,"whitespace",d)),linebreakReplacement:fr(Ft(u,"linebreakReplacement",d)),defining:fr(Ft(u,"defining",d)),isolating:fr(Ft(u,"isolating",d)),attrs:Object.fromEntries(c.map(yU))}),h=fr(Ft(u,"parseHTML",d));h&&(f.parseDOM=h.map(v=>mU(v,c)));const p=Ft(u,"renderHTML",d);p&&(f.toDOM=v=>p({node:v,HTMLAttributes:X2(v,c)}));const g=Ft(u,"renderText",d);return g&&(f.toText=g),[u.name,f]})),l=Object.fromEntries(a.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=gU({...e.reduce((g,v)=>{const b=Ft(v,"extendMarkSchema",d);return{...g,...b?b(u):{}}},{}),inclusive:fr(Ft(u,"inclusive",d)),excludes:fr(Ft(u,"excludes",d)),group:fr(Ft(u,"group",d)),spanning:fr(Ft(u,"spanning",d)),code:fr(Ft(u,"code",d)),attrs:Object.fromEntries(c.map(yU))}),h=fr(Ft(u,"parseHTML",d));h&&(f.parseDOM=h.map(g=>mU(g,c)));const p=Ft(u,"renderHTML",d);return p&&(f.toDOM=g=>p({mark:g,HTMLAttributes:X2(g,c)})),[u.name,f]}));return new eie({topNode:o,nodes:s,marks:l})}function Nst(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}function Wy(e){return e.sort((n,r)=>{const i=Ft(n,"priority")||100,a=Ft(r,"priority")||100;return i>a?-1:i<a?1:0})}function Mae(e){const t=Wy(qD(e)),n=Nst(t.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),t}function Aae(e,t,n){const{from:r,to:i}=t,{blockSeparator:a=` 856
857`,textSerializers:o={}}=n||{};let s="";return e.nodesBetween(r,i,(l,u,c,d)=>{l.isBlock&&u>r&&(s+=a);const f=o?.[l.type.name];if(f)return c&&(s+=f({node:l,pos:u,parent:c,index:d,range:t})),!1;if(l.isText){var h;s+=l==null||(h=l.text)===null||h===void 0?void 0:h.slice(Math.max(r,u)-u,i-u)}}),s}function Vst(e,t){return Aae(e,{from:0,to:e.content.size},t)}function Pae(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}function jst(e,t){const n=Bi(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,s=>{a.push(s)});const o=a.reverse().find(s=>s.type.name===n.name);return o?{...o.attrs}:{}}function Dae(e,t){const n=Iw(typeof t=="string"?t:t.name,e.schema);return n==="node"?jst(e,t):n==="mark"?Tae(e,t):{}}function Ust(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function Hst(e){const t=Ust(e);return t.length===1?t:t.filter((n,r)=>!t.filter((i,a)=>a!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function GD(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,a)=>{const o=[];if(i.ranges.length)i.forEach((s,l)=>{o.push({from:s,to:l})});else{const{from:s,to:l}=n[a];if(s===void 0||l===void 0)return;o.push({from:s,to:l})}o.forEach(({from:s,to:l})=>{const u=t.slice(a).map(s,-1),c=t.slice(a).map(l),d=t.invert().map(u,-1),f=t.invert().map(c);r.push({oldRange:{from:d,to:f},newRange:{from:u,to:c}})})}),Hst(r)}function Lw(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const a=HD(n.resolve(e),i.type);a&&r.push({mark:i,...a})}):n.nodesBetween(e,t,(i,a)=>{!i||i?.nodeSize===void 0||r.push(...i.marks.map(o=>({from:a,to:a+i.nodeSize,mark:o})))}),r}const qst=(e,t,n,r=20)=>{const i=e.doc.resolve(n);let a=r,o=null;for(;a>0&&o===null;){const s=i.node(a);s?.type.name===t?o=s:a-=1}return[o,a]},Wst=e=>{const t=e.depth-1;if(t<0)return null;const n=e.index(t);return n===0?null:e.node(t).child(n-1)};function C0(e,t){return t.nodes[e]||t.marks[e]||null}function r4(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(a=>a.type===t&&a.name===r);return i?i.attribute.keepOnSplit:!1}))}const Gst=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,a,o,s)=>{var l,u;const c=((l=(u=i.type.spec).toText)===null||l===void 0?void 0:l.call(u,{node:i,pos:a,parent:o,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?c:c.slice(0,Math.max(0,r-a))}),n};function yE(e,t,n={}){const{empty:r,ranges:i}=e.selection,a=t?Nc(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(c=>a?a.name===c.type.name:!0).find(c=>Z5(c.attrs,n,{strict:!1}));let o=0;const s=[];if(i.forEach(({$from:c,$to:d})=>{const f=c.pos,h=d.pos;e.doc.nodesBetween(f,h,(p,g)=>{if(a&&p.inlineContent&&!p.type.allowsMarkType(a))return!1;if(!p.isText&&!p.marks.length)return;const v=Math.max(f,g),b=Math.min(h,g+p.nodeSize),x=b-v;o+=x,s.push(...p.marks.map(_=>({mark:_,from:v,to:b})))})}),o===0)return!1;const l=s.filter(c=>a?a.name===c.mark.type.name:!0).filter(c=>Z5(c.mark.attrs,n,{strict:!1})).reduce((c,d)=>c+d.to-d.from,0),u=s.filter(c=>a?c.mark.type!==a&&c.mark.type.excludes(a):!0).reduce((c,d)=>c+d.to-d.from,0);return(l>0?l+u:l)>=o}function Zst(e,t,n={}){if(!t)return Ic(e,null,n)||yE(e,null,n);const r=Iw(t,e.schema);return r==="node"?Ic(e,t,n):r==="mark"?yE(e,t,n):!1}const Kst=(e,t)=>{const{$from:n,$to:r,$anchor:i}=e.selection;if(t){const a=$w(s=>s.type.name===t)(e.selection);if(!a)return!1;const o=e.doc.resolve(a.pos+1);return i.pos+1===o.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Yst=e=>{const{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function vU(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function sS(e,t){const{nodeExtensions:n}=e1(t),r=n.find(a=>a.name===e);if(!r)return!1;const i=fr(Ft(r,"group",{name:r.name,options:r.options,storage:r.storage}));
857return typeof i!="string"?!1:i.split(" ").includes("list")}function ZD(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name==="hardBreak")return!0;if(e.isText){var r;return!/\S/.test((r=e.text)!==null&&r!==void 0?r:"")}}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(a=>{i!==!1&&(ZD(a,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}var Iae=class $ae{constructor(t){this.position=t}static fromJSON(t){return new $ae(t.position)}toJSON(){return{position:this.position}}};function Xst(e,t){const n=t.mapping.mapResult(e.position);return{position:new Iae(n.pos),mapResult:n}}function Jst(e){return new Iae(e)}function Qst(e,t,n){const{selection:r}=t;let i=null;if(yae(r)&&(i=r.$cursor),i){var a;const s=(a=e.storedMarks)!==null&&a!==void 0?a:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(s)||!s.some(l=>l.type.excludes(n)))}const{ranges:o}=r;return o.some(({$from:s,$to:l})=>{let u=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(c,d,f)=>{if(u)return!1;if(c.isInline){const h=!f||f.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(g=>g.type.excludes(n));u=h&&p}return!u}),u})}const elt=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=n,{empty:o,ranges:s}=a,l=Nc(e,r.schema);if(i)if(o){const u=Tae(r,l);n.addStoredMark(l.create({...u,...t}))}else s.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(f,h)=>{const p=Math.max(h,c),g=Math.min(h+f.nodeSize,d);f.marks.find(v=>v.type===l)?f.marks.forEach(v=>{l===v.type&&n.addMark(p,g,l.create({...v.attrs,...t}))}):n.addMark(p,g,l.create(t))})});return Qst(r,n,l)},tlt=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),nlt=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const a=Bi(e,n.schema);let o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:s})=>$j(a,{...o,...t})(n)?!0:s.clearNodes()).command(({state:s})=>$j(a,{...o,...t})(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},rlt=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=wh(e,0,r.content.size),a=Zt.create(r,i);t.setSelection(a)}return!0},ilt=(e,t)=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=r;let o,s;return typeof t=="number"?(o=t,s=t):t&&"from"in t&&"to"in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(l,u)=>{l.isText||n.setNodeMarkup(u,void 0,{...l.attrs,dir:e})}),!0},alt=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:a}=typeof e=="number"?{from:e,to:e}:e,o=an.atStart(r).from,s=an.atEnd(r).to,l=wh(i,o,s),u=wh(a,o,s),c=an.create(r,l,u);t.setSelection(c)}return!0},olt=e=>({state:t,dispatch:n})=>{const r=Bi(e,t.schema);return jit(r)(t,n)};function _U(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t?.includes(i.type.name));e.tr.ensureMarks(r)}}const slt=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:a,doc:o}=t,{$from:s,$to:l}=a,u=i.extensionManager.attributes,c=r4(u,s.node().type.name,s.node().attrs);if(a instanceof Zt&&a.node.isBlock)return!s.parentOffset||!bc(o,s.pos)?!1:(r&&(e&&_U(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,f=s.depth===0?void 0:wae(s.node(-1).contentMatchAt(s.indexAfter(-1)));let h=d&&f?[{type:f,attrs:c}]:void 0;const p=a instanceof an&&!a.empty?uc.create({doc:t.doc,selection:a}).tr.deleteSelection():null,g=p?p.doc:t.doc,v=p?p.mapping.map(s.pos):s.pos;let b=bc(g,v,1,h);if(!h&&!b&&bc(g,v,1,f?[{type:f}]:void 0)&&(b=!0,h=f?[{type:f,attrs:c}]:void 0),r){if(b){const x=t.steps.length;if(a instanceof an&&t.deleteSelection(),t.split(t.mapping.slice(x).map(s.pos),1,h),f&&!d&&!s.parentOffset&&s.parent.type!==f){const _=t.mapping.slice(x).map(s.before()),w=t.doc.resolve(_);s.node(-1).canReplaceWith(w.index(),w.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(x).map(s.before()),f)}}e&&_U(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return b},llt=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{const o=Bi(e,r.schema),{$from:s,$to:l}=r.selection,u=r.selection.node;if(u&&u.isBlock||s.depth<2||!s.sameParent(l))return!1;const c=s.node(-1);if(c.type!==o)return!1;const d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if
857(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){var f;let w=tt.empty;const C=s.index(-1)?1:s.index(-2)?2:3;for(let $=s.depth-C;$>=s.depth-3;$-=1)w=tt.from(s.node($).copy(w));const T=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,k={...r4(d,s.node().type.name,s.node().attrs),...t},A=((f=o.contentMatch.defaultType)===null||f===void 0?void 0:f.createAndFill(k))||void 0;w=w.append(tt.from(o.createAndFill(null,A)||void 0));const P=s.before(s.depth-(C-1));n.replace(P,s.after(-T),new Ct(w,4-C,0));let D=-1;n.doc.nodesBetween(P,n.doc.content.size,($,O)=>{if(D>-1)return!1;$.isTextblock&&$.content.size===0&&(D=O+1)}),D>-1&&n.setSelection(an.near(n.doc.resolve(D))),n.scrollIntoView()}return!0}const h=l.pos===s.end()?c.contentMatchAt(0).defaultType:null,p={...r4(d,c.type.name,c.attrs),...t},g={...r4(d,s.node().type.name,s.node().attrs),...t},v=s.parentOffset===0&&s.index(-1)===0,b=s.before(-1);n.delete(s.pos,l.pos);const x=v?c.attrs:p,_=h?[{type:o,attrs:x},{type:h,attrs:g}]:[{type:o,attrs:x}];if(!bc(n.doc,s.pos,2))return!1;if(i){const{selection:w,storedMarks:C}=r,{splittableMarks:T}=a.extensionManager,k=C||w.$to.parentOffset&&w.$from.marks();if(n.split(s.pos,2,_).scrollIntoView(),v&&n.setNodeMarkup(b,void 0,p),!k||!i)return!0;const A=k.filter(P=>T.includes(P.type.name));n.ensureMarks(A)}return!0};function bU(e){return!e||e==="1"?null:e}function Lae(e,t){return bU(e)===bU(t)}const lS=(e,t)=>{const n=$w(a=>a.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&yf(e.doc,n.pos))||!Lae(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},uS=(e,t)=>{const n=$w(a=>a.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&yf(e.doc,r))||!Lae(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function ult(e){const t=e.doc,n=t.firstChild;if(!n)return null;const r=t.resolve(1),i=t.resolve(n.nodeSize-1);return an.between(r,i)}const clt=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,h=Bi(e,o.schema),p=Bi(t,o.schema),{selection:g,storedMarks:v}=o,{$from:b,$to:x}=g,_=b.blockRange(x),w=v||g.$to.parentOffset&&g.$from.marks();if(!_)return!1;const C=$w(z=>sS(z.type.name,d))(g),T=g.from===0&&g.to===o.doc.content.size,k=o.doc.content.content,A=k.length===1?k[0]:null,P=T&&A&&sS(A.type.name,d)?{node:A,pos:0}:null,D=C??P,$=!!C&&_.depth>=1&&_.depth-C.depth<=1,O=!!P;if(($||O)&&D){if(D.node.type===h)return T&&O?l().command(({tr:z,dispatch:j})=>{const B=ult(z);return B?(z.setSelection(B),j&&j(z),!0):!1}).liftListItem(p).run():u.liftListItem(p);if(sS(D.node.type.name,d)&&h.validContent(D.node.content))return l().command(()=>(a.setNodeMarkup(D.pos,h),!0)).command(()=>lS(a,h)).command(()=>uS(a,h)).run()}return!n||!w||!s?l().command(()=>c().wrapInList(h,r)?!0:u.clearNodes()).wrapInList(h,r).command(()=>lS(a,h)).command(()=>uS(a,h)).run():l().command(()=>{const z=c().wrapInList(h,r),j=w.filter(B=>f.includes(B.type.name));return a.ensureMarks(j),z?!0:u.clearNodes()}).wrapInList(h,r).command(()=>lS(a,h)).command(()=>uS(a,h)).run()},dlt=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:a=!1}=n,o=Nc(e,r.schema);return yE(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},flt=(e,t,n={})=>({state:r,commands:i})=>{const a=Bi(e,r.schema),o=Bi(t,r.schema),s=Ic(r,a,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?i.setNode(o,l):i.setNode(a,{...l,...n})},hlt=(e,t={})=>({state:n,commands:r})=>{const i=Bi(e,n.schema);return Ic(n,i,t)?r.lift(i):r.wrapIn(i,t)},plt=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){const o=e.tr,s=a.transform;for(let l=s.steps.length-1;l>=0;l-=1)o.step(s.steps[l].invert(s.docs[l]));if(a.text){const l=o.doc.resolve(a.from).marks();o.replaceWith(a.from,a.to,e.schema.text(a.text,l))}else o.delete(a.from,a.to)}return!0}}return!1},mlt=(e={})=>({tr:t,dispatch:n,editor:r})=>{const{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;const{nonClearableMarks:l}=r.extensionManager;if(n){const u=Object.values(r.schema.marks).filter(c=>i||!l.includes(c.name));
857s.forEach(c=>{for(const d of u)t.removeMark(c.$from.pos,c.$to.pos,d)})}return!0},glt=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=Nc(e,r.schema),{$from:l,empty:u,ranges:c}=o;if(!i)return!0;if(u&&a){var d;let{from:f,to:h}=o;const p=HD(l,s,(d=l.marks().find(g=>g.type===s))===null||d===void 0?void 0:d.attrs);p&&(f=p.from,h=p.to),n.removeMark(f,h,s)}else c.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,s)});return n.removeStoredMark(s),!0},ylt=e=>({tr:t,state:n,dispatch:r})=>{const{selection:i}=n;let a,o;return typeof e=="number"?(a=e,o=e):e&&"from"in e&&"to"in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(s,l)=>{if(s.isText)return;const u={...s.attrs};delete u.dir,t.setNodeMarkup(l,void 0,u)}),!0},vlt=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null;const s=Iw(typeof e=="string"?e:e.name,r.schema);if(!s)return!1;s==="node"&&(a=Bi(e,r.schema)),s==="mark"&&(o=Nc(e,r.schema));let l=!1;return n.selection.ranges.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;let f,h,p,g;n.selection.empty?r.doc.nodesBetween(c,d,(v,b)=>{a&&a===v.type&&(l=!0,p=Math.max(b,c),g=Math.min(b+v.nodeSize,d),f=b,h=v)}):r.doc.nodesBetween(c,d,(v,b)=>{b<c&&a&&a===v.type&&(l=!0,p=Math.max(b,c),g=Math.min(b+v.nodeSize,d),f=b,h=v),b>=c&&b<=d&&(a&&a===v.type&&(l=!0,i&&n.setNodeMarkup(b,void 0,{...v.attrs,...t})),o&&v.marks.length&&v.marks.forEach(x=>{if(o===x.type&&(l=!0,i)){const _=Math.max(b,c),w=Math.min(b+v.nodeSize,d);n.addMark(_,w,o.create({...x.attrs,...t}))}}))}),h&&(f!==void 0&&i&&n.setNodeMarkup(f,void 0,{...h.attrs,...t}),o&&h.marks.length&&h.marks.forEach(v=>{o===v.type&&i&&n.addMark(p,g,o.create({...v.attrs,...t}))}))}),l},N0=new bo("__tiptap_decorations__"),_lt=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(N0,{type:"force",name:e}),!0),blt=(e,t={})=>({state:n,dispatch:r})=>{const i=Bi(e,n.schema);return Rit(i,t)(n,r)},xlt=(e,t={})=>({state:n,dispatch:r})=>{const i=Bi(e,n.schema);return Oit(i,t)(n,r)};var wlt=krt({blur:()=>Uot,clearContent:()=>Hot,clearNodes:()=>qot,command:()=>Wot,createParagraphNear:()=>Got,cut:()=>Zot,deleteCurrentNode:()=>Kot,deleteNode:()=>Yot,deleteRange:()=>Xot,deleteSelection:()=>est,enter:()=>tst,exitCode:()=>nst,extendMarkRange:()=>rst,first:()=>ist,focus:()=>ost,forEach:()=>sst,insertContent:()=>lst,insertContentAt:()=>ust,insertDefaultBlock:()=>cst,joinBackward:()=>hst,joinDown:()=>fst,joinForward:()=>pst,joinItemBackward:()=>mst,joinItemForward:()=>gst,joinTextblockBackward:()=>yst,joinTextblockForward:()=>vst,joinUp:()=>dst,keyboardShortcut:()=>bst,lift:()=>xst,liftEmptyBlock:()=>wst,liftListItem:()=>Sst,newlineInCode:()=>Cst,resetAttributes:()=>Tst,scrollIntoView:()=>kst,selectAll:()=>Est,selectNodeBackward:()=>Mst,selectNodeForward:()=>Ast,selectParentNode:()=>Pst,selectTextblockEnd:()=>Dst,selectTextblockStart:()=>Ist,setContent:()=>$st,setMark:()=>elt,setMeta:()=>tlt,setNode:()=>nlt,setNodeSelection:()=>rlt,setTextDirection:()=>ilt,setTextSelection:()=>alt,sinkListItem:()=>
857olt,splitBlock:()=>slt,splitListItem:()=>llt,toggleList:()=>clt,toggleMark:()=>dlt,toggleNode:()=>flt,toggleWrap:()=>hlt,undoInputRule:()=>plt,unsetAllMarks:()=>mlt,unsetMark:()=>glt,unsetTextDirection:()=>ylt,updateAttributes:()=>vlt,updateDecorations:()=>_lt,wrapIn:()=>blt,wrapInList:()=>xlt});const Zg=new WeakMap;function Slt(e,t){var n;Zg.set(e,((n=Zg.get(e))!==null&&n!==void 0?n:0)+1);try{return t()}finally{var r;const i=((r=Zg.get(e))!==null&&r!==void 0?r:1)-1;i>0?Zg.set(e,i):Zg.delete(e)}}var Clt=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}};function Tlt(e){return e.kind==="widget"}function Rae(e,t){const n=[],r=new Set;for(const i of e)i.kind==="widget"&&Tlt(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}
857function klt(e,t,n){const{decorations:r,widgetKeys:i}=Rae(t,n);return{set:Gr.create(e,r),widgetKeys:i}}function Oae({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n?!0:e===n&&n===r}function Elt({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(o=>Oae({position:o.anchor,from:t,to:n,docSize:r})?!0:(o.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function Mlt(e){var t;const n=(t=e.spec)===null||t===void 0?void 0:t.key;return typeof n=="string"?n:void 0}function Bae(e){return e.jsonID==="attr"}function Alt(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||Bae(e))return!0;const n=e;return typeof n.from=="number"&&typeof n.to=="number"}function Plt(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){const o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function Dlt(e,t){if(e.steps.some(a=>!Alt(a)))return{type:"full"};const n=GD(e).map(({newRange:a})=>a);e.steps.forEach((a,o)=>{if(!Bae(a))return;const s=e.mapping.slice(o);n.push({from:s.map(a.pos,-1),to:s.map(a.pos+1)})});const r=[];for(const a of n){const o=Plt(t,a);o&&r.push(o)}r.sort((a,o)=>a.from-o.from);const i=[];for(const a of r){const o=i[i.length-1];o&&a.from<=o.to?o.to=Math.max(o.to,a.to):i.push({...a})}return{type:"ranges",ranges:i}}function Fae(e,t,n,r){return e.map(t,n,{onRemove:i=>{const a=i?.key;typeof a=="string"&&r.delete(a)}})}function Ilt(e,t,n){var r,i;const a=(r=t.decorationSetsByExtension[e])!==null&&r!==void 0?r:Gr.empty,o=new Set((i=t.widgetKeysByExtension[e])!==null&&i!==void 0?i:[]);return{set:Fae(a,n.mapping,n.doc,o),widgetKeys:o}}function xU(e,t){const n=Object.values(t).flatMap(r=>r.find());return Gr.create(e,n)}function wU(e){const t=new Set;for(const n of Object.values(e))for(const r of n)t.add(r);return t}function $lt(e,t){var n;switch((n=t.update)!==null&&n!==void 0?n:"document"){case"document":if(t.createInRange)throw new Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case"changedRanges":if(!t.createInRange)throw new Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case"manual":if(t.createInRange)throw new Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw new Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw new Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function Llt(e,t,n){return n?!0:e.update==="manual"?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}const Rlt=new Set;var Olt=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:t})=>{const n=N0.getState(t);n&&this.warnDuplicateWidgetKeys(n)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:t,spec:n})=>$lt(t,n)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on("beforeTransaction",this.handleBeforeTransaction)}destroy(){this.editor.off("beforeTransaction",this.handleBeforeTransaction)}liveWidgetKeys(){var e,t;return(e=(t=N0.getState(this.editor.state))===null||t===void 0?void 0:t.widgetKeys)!==null&&e!==void 0?e:Rlt}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){const t=[];for(const{name:n,addDecorations:r}of e){const i=r();i&&t.push({name:n,spec:i})}return t}createPlugin(){const{editor:e,entries:t}=this;return new Ea({key:N0,state:{init:(n,r)=>{const i={},a={};for(const{name:s,spec:l}of t){const{set:u,widgetKeys:c}=this.buildFullSet(s,l,r);i[s]=u,a[s]=c}const o={decorationSetsByExtension:i,widgetKeysByExtension:a,mergedDecorationSet:this.buildMergedSet(r.doc,i),widgetKeys:wU(a)};return this.warnDuplicateWidgetKeys(o),o},apply:(n,r,i,a)=>{const o=n.getMeta(N0),s=o?.type==="force"&&!o.name,l=o?.type==="force"?o.name:void 0,u={},c={},d=new Set;return Slt(e,()=>{for(const{name:f,spec:h}of t){const p=s||l===f;if(Llt(h,{editor:e,tr:n,oldState:i,newState:a},p))if(h.update==="changedRanges"&&n.docChanged&&!p){const g=this.applyChangedRangesRecompute(f,h,r,n,a);u[f]=g.set,c[f]=g.widgetKeys,d.add(f)}else{const{set:g,widgetKeys:v}=this.buildFullSet(f,h,a);u[f]=g,c[f]=v,d.add(f)}else{const g=Ilt(f,r,n);u[f]=g.set,c[f]=g.widgetKeys}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:u,widgetKeysByExtension:c,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:u,recomputedNames:d}),widgetKeys:wU(c)}}},props:{decorations(n){var r,i;return(r=(i=N0.getState(n))===null||i===void 0?void 0:i.mergedDecorationSet)!==null&&r!==void 0?r:Gr.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){const a=Dlt(r,i.doc);return a.type==="full"?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){var o,s;const l=(o=n.decorationSetsByExtension[e])!==null&&o!==void 0?o:Gr.empty,u=new Set((s=n.widgetKeysByExtension[e])!==null&&s!==void 0?s:[]);let c=Fae(l,r.mapping,r.doc,u);const d=i.doc.content.size;
857for(const{from:f,to:h}of a){const p=c.find(f,h).filter(b=>Oae({position:b.from,from:f,to:h,docSize:d}));for(const b of p){const x=Mlt(b);x&&u.delete(x)}c=c.remove(p);const{decorations:g,widgetKeys:v}=Rae(Elt({decorations:this.runCreate(e,"createInRange",()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:f,to:h})),from:f,to:h,docSize:d,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,g);for(const b of v)u.add(b)}return{set:c,widgetKeys:u}}buildFullSet(e,t,n){const r=this.runCreate(e,"create",()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return klt(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(r){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,r),[]}}warnDuplicateWidgetKeys(e){}buildMergedSet(e,t){const n=Object.keys(t);return n.length===1?t[n[0]]:xU(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}
857){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):xU(n.doc,r)}};function Blt(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}function Flt(e){return typeof e=="number"}function zlt(e){return Object.prototype.toString.call(e).slice(8,-1)}function yb(e){return zlt(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function SU(e,t,n){const r=e.split(` 858`),i=[];let a="",o=0;const s=t.baseIndentSize||2;for(;o<r.length;){const c=r[o],d=c.match(t.itemPattern);if(!d){if(i.length>0)break;if(c.trim()===""){o+=1,a=`${a}${c} 859`;continue}else return}const f=t.extractItemData(d),{indentLevel:h,mainContent:p}=f;a=`${a}${c} 860`;const g=[p];for(o+=1;o<r.length;){var l;const _=r[o];if(_.trim()===""){var u;const w=r.slice(o+1).findIndex(C=>C.trim()!=="");if(w===-1)break;if((((u=r[o+1+w].match(/^(\s*)/))===null||u===void 0||(u=u[1])===null||u===void 0?void 0:u.length)||0)>h){g.push(_),a=`${a}${_} 861`,o+=1;continue}else break}if((((l=_.match(/^(\s*)/))===null||l===void 0||(l=l[1])===null||l===void 0?void 0:l.length)||0)>h)g.push(_),a=`${a}${_} 862`,o+=1;else break}let v;const b=g.slice(1);if(b.length>0){const _=b.map(w=>w.slice(h+s)).join(` 863`);_.trim()&&(t.customNestedParser?v=t.customNestedParser(_):v=n.blockTokens(_))}const x=t.createToken(f,v);i.push(x)}if(i.length!==0)return{items:i,raw:a}}const CU=4;function TU(e){let t=0;for(const n of e)t=n===" "?t+CU-t%CU:t+1;return t}function zae(e,t,n,r,i){if(!e||!Array.isArray(e.content))return"";const a=typeof n=="function"?n(r):n,[o,...s]=e.content;let l=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((u,c)=>{var d,f;const h=(d=(f=t.renderChild)===null||f===void 0?void 0:f.call(t,u,c+1))!==null&&d!==void 0?d:t.renderChildren([u]);if(h!=null){const p=v=>{if(!i?.alignNestedToPrefix)return t.indent(v);const b=t.indent(""),x=TU(a);return(TU(b)>=x?b:" ".repeat(x))+v},g=h.split(` 864`).map(v=>p(v||"")).join(` 865`);l+=u.type==="paragraph"?` 866 867${g}`:` 868${g}`}}),l}function Nae(e,t){const n={...e};return yb(e)&&yb(t)&&Object.keys(t).forEach(r=>{yb(t[r])&&yb(e[r])?n[r]=Nae(e[r],t[r]):n[r]=t[r]}),n}function Nlt(e,t,n={}){const{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((s,l)=>{const u=a.mapping.map(l),c=a.mapping.map(l)+s.nodeSize;let d=null;if(s.marks.forEach(h=>{if(h!==o)return!1;d=h}),!d)return;let f=!1;if(Object.keys(n).forEach(h=>{n[h]!==d.attrs[h]&&(f=!0)}),f){const h=e.type.create({...e.attrs,...n});a.removeMark(u,c,e.type),a.addMark(u,c,h)}}),a.docChanged&&t.view.dispatch(a)}var Zv=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=(t=e.undoable)!==null&&t!==void 0?t:!0}};const Vlt=(e,t)=>{if(UD(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function jlt(e){const{editor:t,from:n,to:r,text:i,insertText:a}=e;if(!a)return{inputTransaction:null,tr:t.view.state.tr};const o=t.view.state.tr.insertText(i,n,r);return{inputTransaction:o,tr:uc.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function Ult(e){const{editor:t,from:n,to:r,text:i,rule:a,match:o,plugin:s,insertText:l}=e,{view:u}=t,{inputTransaction:c,tr:d}=jlt({editor:t,from:n,to:r,text:i,insertText:l}),f=c?n+i.length:r,h=Dw({state:u.state,transaction:d}),p={from:n-(o[0].length-i.length),to:f},{commands:g,chain:v,can:b}=new bm({editor:t,state:h});return a.handler({state:h,range:p,match:o,commands:g,chain:v,can:b})===null||!d.steps.length?!1:(c&&(u.dispatch(c),!u.state.doc.eq(c.doc))||(zot(d),d.setMeta("inputRule",!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),u.dispatch(d)),!0)}function Hlt(e,t,n){const r=t[0].length-n.length;if(r<=0)return!0;const i=e.parentOffset-r;return i>=0&&e.parent.textBetween(i,e.parentOffset)===t[0].slice(0,r)}function vb(e){var t;const{editor:n,from:r,to:i,text:a,rules:o,plugin:s,insertText:l}=e,{view:u}=n;if(u.composing)return!1;const c=u.state.doc.resolve(r);if(c.parent.type.spec.code||!((t=c.nodeBefore||c.nodeAfter)===null||t===void 0)&&t.marks.find(f=>f.type.spec.code))return!1;const d=Gst(c)+a;for(const f of o){const h=Vlt(d,f.find);if(!(!h||!Hlt(c,h,a))&&Ult({editor:n,from:r,to:i,text:a,rule:f,match:h,plugin:s,insertText:l}))return!0}return!1}function qlt(e){const{editor:t,rules:n}
868=e,r=new Ea({state:{init(){return null},apply(i,a,o){const s=i.getMeta(r);if(s)return s;const l=i.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=WD(tt.from(u),o.schema);const{from:c}=l,d=c+u.length;vb({editor:t,from:c,to:d,text:u,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:a}},props:{handleTextInput(i,a,o,s){return vb({editor:t,from:a,to:o,text:s,rules:n,plugin:r,insertText:!0})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:a}=i.state.selection;a&&vb({editor:t,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,a){if(a.key!=="Enter")return!1;const{$cursor:o}=i.state.selection;return o?vb({editor:t,from:o.pos,to:o.pos,text:` 869`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var KD=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...fr(Ft(this,"addOptions",{name:this.name}))}}get storage(){return{...fr(Ft(this,"addStorage",{name:this.name,options:this.options}))}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Nae(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},YD=class Vae extends KD{constructor(...t){super(...t),this.type="mark"}static create(t={}){const n=typeof t=="function"?t():t;return new Vae(n)}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const a=i.marks();if(!a.find(s=>s?.type.name===n.name))return!1;const o=a.find(s=>s?.type.name===n.name);return o&&r.removeStoredMark(o),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},jae=class{constructor(e){this.find=e.find,this.handler=e.handler}};const Wlt=(e,t,n)=>{if(UD(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const a=[i.text];return a.index=i.index,a.input=e,a.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),a.push(i.replaceWith)),a}):[]};function Glt(e){const{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:l,chain:u,can:c}=new bm({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(f,h)=>{var p,g,v,b;if(!((p=f.type)===null||p===void 0||(p=p.spec)===null||p===void 0)&&p.code||!(f.isText||f.isTextblock||f.isInline))return;const x=(g=(v=(b=f.content)===null||b===void 0?void 0:b.size)!==null&&v!==void 0?v:f.nodeSize)!==null&&g!==void 0?g:0,_=Math.max(r,h),w=Math.min(i,h+x);if(_>=w)return;const C=f.isText?f.text||"":f.textBetween(_-h,w-h,void 0,"");Wlt(C,a.find,o).forEach(T=>{if(T.index===void 0)return;const k=_+T.index+1,A=k+T[0].length,P={from:n.tr.mapping.map(k),to:n.tr.mapping.map(A)},D=a.handler({state:n,range:P,match:T,commands:l,chain:u,can:c,pasteEvent:o,dropEvent:s});d.push(D)})}),d.every(f=>f!==null)}let T0=null;const Zlt=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function Klt(e){const{editor:t,rules:n}=e;let r=null,i=!1,a=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s;try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}const l=({state:u,from:c,to:d,rule:f,pasteEvt:h})=>{const p=u.tr,g=Dw({state:u,transaction:p});if(!(!Glt({editor:t,state:g,from:Math.max(c-1,0),to:d.b-1,rule:f,pasteEvent:h,dropEvent:s})||!p.steps.length)){try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,p}};return t.on("destroy",()=>{T0===t&&(T0=null)}),n.map(u=>new Ea({view(c){const d=h=>{var p;r=!((p=c.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?c.dom.parentElement:null,r&&(T0=t)},f=()=>{T0&&(T0=null)};return window.addEventListener("dragstart",d),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",d),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(c,d)=>
869{if(a=r===c.dom.parentElement,s=d,!a){const f=T0;f?.isEditable&&setTimeout(()=>{if(f.isDestroyed)return;const h=f.state.selection;h&&f.commands.deleteRange({from:h.from,to:h.to})},10)}return!1},paste:(c,d)=>{var f;const h=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return o=d,i=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(c,d,f)=>{const h=c[0],p=h.getMeta("uiEvent")==="paste"&&!i,g=h.getMeta("uiEvent")==="drop"&&!a,v=h.getMeta("applyPasteRules"),b=!!v;if(!p&&!g&&!b)return;if(b){let{text:w}=v;typeof w=="string"?w=w:w=WD(tt.from(w),f.schema);const{from:C}=v,T=C+w.length,k=Zlt(w);return l({rule:u,state:f,from:C,to:{b:T},pasteEvt:k})}const x=d.doc.content.findDiffStart(f.doc.content),_=d.doc.content.findDiffEnd(f.doc.content);if(!(!Flt(x)||!_||x===_.b))return l({rule:u,state:f,from:x,to:_,pasteEvt:o})}}))}var Rw=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=Mae(e),this.schema=zst(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const n=Ft(t,"addCommands",{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:C0(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this,t=Wy([...this.extensions].reverse()).flatMap(r=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:C0(r.name,this.schema)},a=[],o=Ft(r,"addKeyboardShortcuts",i);let s={};if(r.type==="mark"&&Ft(r,"exitable",i)&&(s.ArrowRight=()=>YD.handleExit({editor:e,mark:r})),o){const f=Object.fromEntries(Object.entries(o()).map(([h,p])=>[h,()=>p({editor:e})]));s={...s,...f}}const l=$ot(s);a.push(l);const u=Ft(r,"addInputRules",i);if(vU(r,e.options.enableInputRules)&&u){const f=u();if(f&&f.length){const h=qlt({editor:e,rules:f}),p=Array.isArray(h)?h:[h];a.push(...p)}}const c=Ft(r,"addPasteRules",i);if(vU(r,e.options.enablePasteRules)&&c){const f=c();if(f&&f.length){const h=Klt({editor:e,rules:f});a.push(...h)}}const d=Ft(r,"addProseMirrorPlugins",i);if(d){const f=d();a.push(...f)}return a}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;const{editor:t}=this;(e=this.decorationManager)===null||e===void 0||e.destroy();const n=[];return this.extensions.forEach(r=>{const i=Ft(r,"addDecorations",{name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:C0(r.name,this.schema)});i&&n.push({name:r.name,addDecorations:i})}),this.decorationManager=new Olt({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){return Eae(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=e1(this.extensions);return Object.fromEntries(t.filter(n=>!!Ft(n,"addNodeView")).map(n=>{const r=this.attributes.filter(s=>s.type===n.name),i=Ft(n,"addNodeView",{name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Bi(n.name,this.schema)});if(!i)return[];const a=i();if(!a)return[];const o=(s,l,u,c,d)=>{const f=X2(s,r);return a({node:s,view:l,getPos:u,decorations:c,innerDecorations:d,editor:e,extension:n,HTMLAttributes:f})};return[n.name,o]}))}dispatchTransaction(e){const{editor:t}=this;return Wy([...this.extensions].reverse()).reduceRight((n,r)=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:C0(r.name,this.schema)},a=Ft(r,"dispatchTransaction",i);return a?o=>{a.call(i,{transaction:o,next:n})}:n},e)}transformPastedHTML(e){const{editor:t}=this;return Wy([...this.extensions]).reduce((n,r)=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:C0(r.name,this.schema)},a=Ft(r,"transformPastedHTML",i);return a?(o,s)=>{const l=n(o,s);return a.call(i,l)}:n},e||(n=>n))}get markViews(){const{editor:e}=this,{markExtensions:t}=e1(this.extensions);return Object.fromEntries(t.filter(n=>!!Ft(n,"addMarkView")).map(n=>{const r=this.attributes.filter(o=>o.type===n.name),i=Ft(n,"addMarkView",{name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Nc(n.name,this.schema)});if(!i)return[];const a=(o,s,l)=>{const u=X2(o,r);return i()({mark:o,view:s,inline:l,editor:e,extension:n,HTMLAttributes:u,updateAttributes:c=>{Nlt(o,e,c)}})};return[n.name,a]}
869))}destroy(){var e;(e=this.decorationManager)===null||e===void 0||e.destroy(),this.extensions.forEach(t=>{let n=t;for(;n.parent;){const r=n.parent;r.child===n&&(r.child=null),n=r}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(t=>[t.name,t.storage])),e.forEach(t=>{const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:C0(t.name,this.schema)};if(t.type==="mark"){var r,i;(!((r=fr(Ft(t,"keepOnSplit",n)))!==null&&r!==void 0)||r)&&this.splittableMarks.push(t.name),!((i=fr(Ft(t,"clearable",n)))!==null&&i!==void 0)||i||this.nonClearableMarks.push(t.name)}const a=Ft(t,"onBeforeCreate",n),o=Ft(t,"onCreate",n),s=Ft(t,"onUpdate",n),l=Ft(t,"onSelectionUpdate",n),u=Ft(t,"onTransaction",n),c=Ft(t,"onFocus",n),d=Ft(t,"onBlur",n),f=Ft(t,"onDestroy",n);a&&this.editor.on("beforeCreate",a),o&&this.editor.on("create",o),s&&this.editor.on("update",s),l&&this.editor.on("selectionUpdate",l),u&&this.editor.on("transaction",u),c&&this.editor.on("focus",c),d&&this.editor.on("blur",d),f&&this.editor.on("destroy",f)})}};Rw.resolve=Mae;Rw.sort=Wy;Rw.flatten=qD;var xo=class Uae extends KD{constructor(...t){super(...t),this.type="extension"}static create(t={}){const n=typeof t=="function"?t():t;return new Uae(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};const Ylt=xo.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ea({key:new bo("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=Pae(n),{blockSeparator:o}=this.options,s={...o!==void 0?{blockSeparator:o}:{},textSerializers:a};return[...i.ranges].sort((l,u)=>l.$from.pos-u.$from.pos).map(({$from:l,$to:u})=>Aae(r,{from:l.pos,to:u.pos},s)).join(o??` 870 871`)}}})]}}),Xlt=xo.create({name:"commands",addCommands(){return{...wlt}}}),Jlt=xo.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,r;const i=()=>{var a,o,s;if((a=(o=this.editor.options.coreExtensionOptions)===null||o===void 0||(o=o.delete)===null||o===void 0||(s=o.filterTransaction)===null||s===void 0?void 0:s.call(o,e))!==null&&a!==void 0?a:e.getMeta("y-sync$"))return;const l=kae(e.before,[e,...t]);GD(l).forEach(c=>{l.mapping.mapResult(c.oldRange.from).deletedAfter&&l.mapping.mapResult(c.oldRange.to).deletedBefore&&l.before.nodesBetween(c.oldRange.from,c.oldRange.to,(d,f)=>{const h=f+d.nodeSize-2,p=c.oldRange.from<=f&&h<=c.oldRange.to;this.editor.emit("delete",{type:"node",node:d,from:f,to:h,newFrom:l.mapping.map(f),newTo:l.mapping.map(h),deletedRange:c.oldRange,newRange:c.newRange,partial:!p,editor:this.editor,transaction:e,combinedTransform:l})})});const u=l.mapping;l.steps.forEach((c,d)=>{if(c instanceof rl){var f,h;const p=u.slice(d).map(c.from,-1),g=u.slice(d).map(c.to),v=u.invert().map(p,-1),b=u.invert().map(g),x=p>0?(f=l.doc.nodeAt(p-1))===null||f===void 0?void 0:f.marks.some(w=>w.eq(c.mark)):!1,_=(h=l.doc.nodeAt(g))===null||h===void 0?void 0:h.marks.some(w=>w.eq(c.mark));this.editor.emit("delete",{type:"mark",mark:c.mark,from:c.from,to:c.to,deletedRange:{from:v,to:b},newRange:{from:p,to:g},partial:!!(_||x),editor:this.editor,transaction:e,combinedTransform:l})}})};!((n=(r=this.editor.options.coreExtensionOptions)===null||r===void 0||(r=r.delete)===null||r===void 0?void 0:r.async)!==null&&n!==void 0)||n?setTimeout(i,0):i()}}),Qlt=xo.create({name:"drop",addProseMirrorPlugins(){return[new Ea({key:new bo("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),eut=xo.create({name:"editable",addProseMirrorPlugins(){return[new Ea({key:new bo("editable"),props:{editable:()=>this.editor.options.editable}})]}}),tut=new bo("focusEvents"),nut=xo.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;
871return[new Ea({key:tut,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),rut=xo.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:s})=>{const{selection:l,doc:u}=s,{empty:c,$anchor:d}=l,{pos:f,parent:h}=d,p=d.parent.isTextblock&&f>0?s.doc.resolve(f-1):d,g=p.parent.type.spec.isolating,v=d.pos-d.parentOffset,b=g&&p.parent.childCount===1?v===d.pos:Mn.atStart(u).from===f;return!c||!h.type.isTextblock||h.textContent.length||!b||b&&d.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},a={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return K5()||Cae()?a:i},addProseMirrorPlugins(){return[new Ea({key:new bo("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(h=>h.getMeta("composition")))return;const r=e.some(h=>h.docChanged)&&!t.doc.eq(n.doc),i=e.some(h=>h.getMeta("preventClearDocument"));if(!r||i)return;const{empty:a,from:o,to:s}=t.selection,l=Mn.atStart(t.doc).from,u=Mn.atEnd(t.doc).to;if(a||!(o===l&&s===u)||!ZD(n.doc))return;const c=n.tr,d=Dw({state:n,transaction:c}),{commands:f}=new bm({editor:this.editor,state:d});if(f.clearNodes(),!!c.steps.length)return c}})]}}),iut=xo.create({name:"paste",addProseMirrorPlugins(){return[new Ea({key:new bo("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),aut=xo.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Ea({key:new bo("tabindex"),props:{attributes:()=>{var e;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(e=this.options.value)!==null&&e!==void 0?e:"0"}}}})]}}),out=xo.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=e1(this.extensions);return[{types:e.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{const n=t.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return[new Ea({key:new bo("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}});let kU=!1;function sut(e){if(kU)return;kU=!0;let t;try{t=ti.fromJSON(e,{from:0,to:0}).slice.content}catch{return}t instanceof tt||console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.")}var lut=class my{get name(){return this.node.type.name}constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new my(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new my(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new my(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+(a?0:1);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(s);if(!i&&!o&&l.depth<=this.depth)return;const u=new my(l,this.editor,i,i||o?n:null);i&&(u.actualDepth=this.depth+1),t.push(u)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;
871){if(i.node.type.name===t)if(Object.keys(n).length>0){const a=i.node.attrs,o=Object.keys(n);for(let s=0;s<o.length;s+=1){const l=o[s];if(a[l]!==n[l])break}}else r=i;i=i.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const a=Object.keys(n);return this.children.forEach(o=>{r&&i.length>0||(o.node.type.name===t&&a.every(s=>n[s]===o.node.attrs[s])&&i.push(o),!(r&&i.length>0)&&(i=i.concat(o.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}};const uut=`.ProseMirror { 872 position: relative; 873} 874 875.ProseMirror { 876 word-wrap: break-word; 877 white-space: pre-wrap; 878 white-space: break-spaces; 879 -webkit-font-variant-ligatures: none; 880 font-variant-ligatures: none; 881 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 882} 883 884.ProseMirror [contenteditable="false"] { 885 white-space: normal; 886} 887 888.ProseMirror [contenteditable="false"] [contenteditable="true"] { 889 white-space: pre-wrap; 890} 891 892.ProseMirror pre { 893 white-space: pre-wrap; 894} 895 896img.ProseMirror-separator { 897 display: inline !important; 898 border: none !important; 899 margin: 0 !important; 900 width: 0 !important; 901 height: 0 !important; 902} 903 904.ProseMirror-gapcursor { 905 display: none; 906 pointer-events: none; 907 position: absolute; 908 margin: 0; 909} 910 911.ProseMirror-gapcursor:after { 912 content: ""; 913 display: block; 914 position: absolute; 915 top: -2px; 916 width: 20px; 917 border-top: 1px solid black; 918 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 919} 920 921@keyframes ProseMirror-cursor-blink { 922 to { 923 visibility: hidden; 924 } 925} 926 927.ProseMirror-hideselection *::selection { 928 background: transparent; 929} 930 931.ProseMirror-hideselection *::-moz-selection { 932 background: transparent; 933} 934 935.ProseMirror-hideselection * { 936 caret-color: transparent; 937} 938 939.ProseMirror-focused .ProseMirror-gapcursor { 940 display: block; 941}`;var cut=class extends Clt{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Xst,createMappablePosition:Jst},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:i,moved:a})=>this.options.onDrop(r,i,a)),this.on("paste",({event:r,slice:i})=>this.options.onPaste(r,i)),this.on("delete",this.options.onDelete);const n=this.createDoc();if(!this.editorState){const r=pE(n,this.options.autofocus);this.editorState=uc.create({doc:n,schema:this.schema,selection:r||void 0})}sut(this.schema),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");
941this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;const t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():bm.createFakeChain()}can(){return this.commandManager?this.commandManager.can():bm.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=Blt(uut,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps({...this.options.editorProps,attributes:this.getEditorViewAttributes()}),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,n)=>{if(this.editorView)return this.editorView[n];if(n==="state")return this.editorState;if(n in t)return Reflect.get(t,n);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${n}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,n){const r=gE(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(t){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(t).forEach(a=>{const o=typeof a=="string"?`${a}$`:a.key;r=r.filter(s=>!s.key.startsWith(o))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var t,n;const r=[...this.options.enableCoreExtensions?[eut,Ylt.configure({blockSeparator:(t=this.options.coreExtensionOptions)===null||t===void 0||(t=t.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),Xlt,nut,rut,aut.configure({value:(n=this.options.coreExtensionOptions)===null||n===void 0||(n=n.tabindex)===null||n===void 0?void 0:n.value}),Qlt,iut,Jlt,out.configure({direction:this.options.textDirection})].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new Rw(r,this)}createCommandManager(){this.commandManager=new bm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=mE(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(n){if(!(n instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(n.message))throw n;const r=mE(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=uc.create({doc:r,schema:this.schema,selection:pE(r,this.options.autofocus)||void 0}),this.emit("contentError",{editor:this,error:n,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),this.editorState.doc}return t}getEditorViewAttributes(){var t;const n=(t=this.options.editorProps)===null||t===void 0?void 0:t.attributes;return gE(n)?r=>({role:"textbox",...n(r)}):{role:"textbox",...n}}createView(t){const{editorProps:n,enableExtensionDispatchTransaction:r}=this.options,i=n.dispatchTransaction||this.dispatchTransaction.bind(this),a=r?this.extensionManager.dispatchTransaction(i):i,o=n.transformPastedHTML,s=this.extensionManager.transformPastedHTML(o);this.editorView=new hae(t,{...n,attributes:this.getEditorViewAttributes(),dispatchTransaction:a,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const l=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(l),this.prependClass(),this.injectCSS();const u=this.view.dom;u.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(c=>{var d;return(d=this.capturedTransaction)===null||d===void 0?void 0:d.step(c)});return}const{state:n,transactions:r}=this.state.applyTransaction(t),i=!this.state.selection.eq(n.selection),a=r.includes(t),o=this.state;
941if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:n}),!a)return;this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:r.slice(1)}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const s=r.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),l=s?.getMeta("focus"),u=s?.getMeta("blur");l&&this.emit("focus",{editor:this,event:l.event,transaction:s}),u&&this.emit("blur",{editor:this,event:u.event,transaction:s}),!(t.getMeta("preventUpdate")||!r.some(c=>c.docChanged)||o.doc.eq(n.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:r.slice(1)})}getAttributes(t){return Dae(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return Zst(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return WD(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=` 942 943`,textSerializers:r={}}=t||{};return Vst(this.state.doc,{blockSeparator:n,textSerializers:{...Pae(this.schema),...r}})}get isEmpty(){return ZD(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var t,n;return(t=(n=this.editorView)===null||n===void 0?void 0:n.isDestroyed)!==null&&t!==void 0?t:!0}$node(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(t,n))||null}$nodes(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(t,n))||null}$pos(t){const n=this.state.doc.resolve(t),r=t>0&&n.nodeAfter&&!n.nodeAfter.isText&&n.nodeAfter.isAtom?n.nodeAfter:null;return new lut(n,this,!1,r)}get $doc(){return this.$pos(0)}};function vE(e){return new Zv({find:e.find,handler:({state:t,range:n,match:r})=>{const i=fr(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:a}=t,o=r[r.length-1],s=r[0];if(o){const l=s.search(/\S/),u=n.from+s.indexOf(o),c=u+o.length;if(Lw(n.from,n.to,t.doc).filter(f=>f.mark.type.excluded.find(h=>h===e.type&&h!==f.mark.type)).filter(f=>f.to>u).length)return null;c<n.to&&a.delete(c,n.to),u>n.from&&a.delete(n.from+l,u);const d=n.from+l+o.length;a.addMark(n.from+l,d,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function dut(e){return new Zv({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),a=fr(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function oi(e){return new Zv({find:e.find,handler:({state:t,range:n,match:r})=>{let i=e.replace,a=n.from;const o=n.to;if(r[1]){const s=r[0].lastIndexOf(r[1]);i+=r[0].slice(s+r[1].length),a+=s;const l=a-o;l>0&&(i=r[0].slice(s-l,s)+i,a=o)}t.tr.insertText(i,a,o)},undoable:e.undoable})}function J2(e){return new Zv({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const a=fr(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),l=s&&MD(s,e.type,a);if(!l)return null;if(o.wrap(s,l),e.keepMarks&&e.editor){const{selection:c,storedMarks:d}=t,{splittableMarks:f}=e.editor.extensionManager,h=d||c.$to.parentOffset&&c.$from.marks();if(h){const p=h.filter(g=>f.includes(g.type.name));o.ensureMarks(p)}}if(e.keepAttributes){const c=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(c,a).run()}const u=o.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&yf(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&o.join(n.from-1)},undoable:e.undoable})}var gu=class Hae extends KD{constructor(...t){super(...t),this.type="node"}static create(t={}){const n=typeof t=="function"?t():t;return new Hae(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};function Y5(e){return new jae({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const a=fr(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;const{tr:o}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),f=d+s.length;if(Lw(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(p=>p===e.type&&p!==h.mark.type)).filter(h=>h.to>d).length)return null;f<n.to&&o.delete(f,n.to),d>n.from&&o.delete(n.from+c,d),u=n.from+c+s.length,o.addMark(n.from+c,u,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}function EU(e){return n1((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var fut=class extends cut{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=EU(this.view.state),this.reactiveExtensionStorage=EU(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),up(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const n=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}};const hut=Q({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=G(),n=$n();return ii(()=>{const r=e.editor;r&&r.options.element&&t.value&&At(()=>{var i;if(!t.value||!(!((i=r.view.dom)===null||i===void 0)&&i.parentNode))return;const a=m(t.value);
943t.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:a}),r.createNodeViews()})}),Wa(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return Nt("div",{ref:e=>{this.rootEl=e}})}}),put=(e={})=>{const t=Bt();return Ot(()=>{t.value=new fut(e)}),Wa(()=>{var n;(n=t.value)===null||n===void 0||n.destroy()}),t},mut="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yac
943hts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",gut="ελ1Ï 2бг1ел3деÑи4еÑ2каÑолик6ом3мкд2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5را٠ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5٠غرب5٠ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2٠اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ 3٠صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4Ù٠راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å «å¦2å ¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å 2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2",_E="numeric",bE="ascii",xE="alpha",Gy="asciinumeric",gy="alphanumeric",wE="domain",qae="emoji",yut="scheme",vut="slashscheme",cS="whitespace";function _ut(e,t){return e in t||(t[e]=[]),t[e]}function Sh(e,t,n){t[_E]&&(t[Gy]=!0,t[gy]=!0),t[bE]&&(t[Gy]=!0,t[xE]=!0),t[Gy]&&(t[gy]=!0),t[xE]&&(t[gy]=!0),t[gy]&&(t[wE]=!0),t[qae]&&(t[wE]=!0);for(const r in t){const i=_ut(r,n);i.indexOf(e)<0&&i.push(e)}}function but(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function lo(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}lo.groups={};lo.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],a=t.jr[r][1];if(a&&i.test(e))return a}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||lo.groups;let i;return t&&t.j?i=t:(i=new lo(t),n&&r&&Sh(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const a=e.length;if(!a)return i;for(let o=0;o<a-1;o++)i=i.tt(e[o]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r=r||lo.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const a=t;let o,s=i.go(e);if(s?(o=new lo,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new lo,a){if(r)if(o.t&&typeof o.t=="string"){const l=Object.assign(but(o.t,r),n);Sh(a,l,r)}else n&&Sh(a,n,r);o.t=a}return i.j[e]=o,o}};const bn=(e,t,n,r,i)=>e.ta(t,n,r,i),Jr=(e,t,n,r,i)=>e.tr(t,n,r,i),MU=(e,t,n,r,i)=>e.ts(t,n,r,i),at=(e,t,n,r,i)=>e.tt(t,n,r,i),Hu="WORD",SE="UWORD",Wae="ASCIINUMERICAL",Gae="ALPHANUMERICAL",Q2="LOCALHOST",CE="TLD",TE="UTLD",i4="SCHEME",V0="SLASH_SCHEME",XD="NUM",kE="WS",JD="NL",Zy="OPENBRACE",Ky="CLOSEBRACE",X5="OPENBRACKET",J5="CLOSEBRACKET",Q5="OPENPAREN",ex="CLOSEPAREN",tx="OPENANGLEBRACKET",nx="CLOSEANGLEBRACKET",rx="FULLWIDTHLEFTPAREN",ix="FULLWIDTHRIGHTPAREN",ax="LEFTCORNERBRACKET",ox="RIGHTCORNERBRACKET",sx="LEFTWHITECORNERBRACKET",lx="RIGHTWHITECORNERBRACKET",ux="FULLWIDTHLESSTHAN",cx="FULLWIDTHGREATERTHAN",dx="AMPERSAND",fx="APOSTROPHE",hx="ASTERISK",wd="AT",px="BACKSLASH",mx="BACKTICK",gx="CARET",Ch="COLON",QD="COMMA",yx="DOLLAR",Bl="DOT",vx="EQUALS",eI="EXCLAMATION",bs="HYPHEN",Yy="PERCENT",_x="PIPE",bx="PLUS",xx="POUND",Xy="QUERY",tI="QUOTE",Zae="FULLWIDTHMIDDLEDOT",nI="SEMI",Fl="SLASH",Jy="TILDE",wx="UNDERSCORE",Kae="EMOJI",Sx="SYM";var Yae=Object.freeze({__proto__:null,ALPHANUMERICAL:Gae,AMPERSAND:dx,APOSTROPHE:fx,ASCIINUMERICAL:Wae,ASTERISK:hx,AT:wd,BACKSLASH:px,BACKTICK:mx,CARET:gx,CLOSEANGLEBRACKET:nx,CLOSEBRACE:Ky,CLOSEBRACKET:J5,CLOSEPAREN:ex,COLON:Ch,COMMA:QD,DOLLAR:yx,DOT:Bl,EMOJI:Kae,EQUALS:vx,EXCLAMATION:eI,FULLWIDTHGREATERTHAN:cx,FULLWIDTHLEFTPAREN:rx,FULLWIDTHLESSTHAN:ux,FULLWIDTHMIDDLEDOT:Zae,FULLWIDTHRIGHTPAREN:ix,HYPHEN:bs,LEFTCORNERBRACKET:ax,LEFTWHITECORNERBRACKET:sx,LOCALHOST:Q2,NL:JD,NUM:XD,OPENANGLEBRACKET:tx,OPENBRACE:Zy,OPENBRACKET:X5,OPENPAREN:Q5,PERCENT:Yy,PIPE:_x,PLUS:bx,POUND:xx,QUERY:Xy,QUOTE:tI,RIGHTCORNERBRACKET:ox,RIGHTWHITECORNERBRACKET:lx,SCHEME:i4,SEMI:nI,SLASH:Fl,SLASH_SCHEME:V0,SYM:Sx,TILDE:Jy,TLD:CE,UNDERSCORE:wx,UTLD:TE,UWORD:SE,WORD:Hu,WS:kE});const Ru=/[a-z]/,Kg=new RegExp("\\p{L}","u"),dS=new RegExp("\\p{Emoji}","u"),Ou=/\d/,fS=/\s/,AU="\r",hS=` 944`,xut="ï¸",wut="â",pS="";let _b=null,bb=null;function Sut(e=[]){const t={};lo.groups=t;const n=new lo;_b==null&&(_b=PU(mut)),bb==null&&(bb=PU(gut)),at(n,"'",fx),at(n,"{",Zy),at(n,"}",Ky),at(n,"[",X5),at(n,"]",J5),at(n,"(",Q5),at(n,")",ex),at(n,"<",tx),at(n,">",nx),at(n,"ï¼",rx),at(n,"ï¼",ix),at(n,"ã",ax),at(n,"ã",ox),at(n,"ã",sx),at(n,"ã",lx),at(n,"ï¼",ux),at(n,"ï¼",cx),at(n,"&",dx),at(n,"*",hx),at(n,"@",wd),at(n,"`",mx),at(n,"^",gx),at(n,":",Ch),at(n,",",QD),at(n,"$",yx),at(n,".",Bl),at(n,"=",vx),at(n,"!",eI),at(n,"-",bs),at(n,"%",Yy),at(n,"|",_x),at(n,"+",bx),at(n,"#",xx),at(n,"?",Xy),at(n,'"',tI),at(n,"/",Fl),at(n,";",nI),at(n,"~",Jy),at(n,"_",wx),at(n,"\\",px),at(n,"ã»",Zae);const r=Jr(n,Ou,XD,{[_E]:!0});Jr(r,Ou,r);const i=Jr(r,Ru,Wae,{[Gy]:!0}),a=Jr(r,Kg,Gae,{[gy]:!0}),o=Jr(n,Ru,Hu,{[bE]:!0});Jr(o,Ou,i),Jr(o,Ru,o),Jr(i,Ou,i),Jr(i,Ru,i);const s=Jr(n,Kg,SE,{[xE]:!0});Jr(s,Ru),Jr(s,Ou,a),Jr(s,Kg,s),Jr(a,Ou,a),Jr(a,Ru),Jr(a,Kg,a);const l=at(n,hS,JD,{[cS]:!0}),u=at(n,AU,kE,{[cS]:!0}),c=Jr(n,fS,kE,{[cS]:!0});at(n,pS,c),at(u,hS,l),at(u,pS,c),Jr(u,fS,c),at(c,AU),at(c,hS),Jr(c,fS,c),at(c,pS,c);const d=Jr(n,dS,Kae,{[qae]:!0});at(d,"#"),Jr(d,dS,d),at(d,xut,d);const f=at(d,wut);at(f,"#"),Jr(f,dS,d);const h=[[Ru,o],[Ou,i]],p=[[Ru,null],[Kg,s],[Ou,a]];for(let g=0;g<_b.length;g++)cd(n,_b[g],CE,Hu,h);for(let g=0;g<bb.length;g++)cd(n,bb[g],TE,SE,p);Sh(CE,{tld:!0,ascii:!0},t),Sh(TE,{utld:!0,alpha:!0},t),cd(n,"file",i4,Hu,h),cd(n,"mailto",i4,Hu,h),cd(n,"http",V0,Hu,h),cd(n,"https",V0,Hu,h),cd(n,"ftp",V0,Hu,h),cd(n,"ftps",V0,Hu,h),Sh(i4,{scheme:!0,ascii:!0},t),Sh(V0,{slashscheme:!0,ascii:!0},t),e=e.sort((g,v)=>g[0]>v[0]?1:-1);for(let g=0;g<e.length;g++){const v=e[g][0],x=e[g][1]?{[yut]:!0}:{[vut]:!0};v.indexOf("-")>=0?x[wE]=!0:Ru.test(v)?Ou.test(v)?x[Gy]=!0:x[bE]=!0:x[_E]=!0,MU(n,v,v,x)}return MU(n,"localhost",Q2,{ascii:!0}),n.jd=new lo(Sx),{start:n,tokens:Object.assign({groups:t},Yae)}}function Xae(e,t){const n=Cut(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let a=0,o=0;for(;o<r;){let s=e,l=null,u=0,c=null,d=-1,f=-1;for(;o<r&&(l=s.go(n[o]));)s=l,s.accepts()?(d=0,f=0,c=s):d>=0&&(d+=n[o].length,f++),u+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,u-=d,i.push({t:c.t,v:t.slice(a-u,a),s:a-u,e:a})}return i}function Cut(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function cd(e,t,n,r,i){let a;const o=t.length;for(let s=0;s<o-1;s++){const l=t[s];e.j[l]?a=e.j[l]:(a=new lo(r),a.jr=i.slice(),e.j[l]=a),e=a}return a=new lo(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function PU(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let a=0;for(;i.indexOf(e[r+a])>=0;)a++;if(a>0){t.push(n.join(""));for(let o=parseInt(e.substring(r,r+a),10);o>0;o--)n.pop();r+=a}else n.push(e[r]),r++}return t}const ev={defaultProtocol:"http",events:null,format:DU,formatHref:DU,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function rI(e,t=null){let n=Object.assign({},ev);e&&(n=Object.assign(n,e instanceof rI?e.o:e));const r=n.ignoreTags,i=[];for(let a=0;a<r.length;a++)i.push(r[a].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}
vendor: 4,115 bytes, line 944
944rI.prototype={o:ev,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:ev[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function DU(e){return e}function Jae(e,t){this.t="token",this.v=e,this.tk=t}Jae.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=ev.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),a=this.toFormattedString(e),o={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),c=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return o.href=r,s&&(o.class=s),l&&(o.target=l),u&&(o.rel=u),c&&Object.assign(o,c),{tagName:i,attributes:o,content:a,eventListeners:d}}};function Ow(e,t){class n extends Jae{constructor(i,a){super(i,a),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const Tut=Ow("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),IU=Ow("text"),kut=Ow("nl"),xb=Ow("url",{isLink:!0,toHref(e=ev.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Q2&&e[1].t===Ch}}),ys=e=>new lo(e);function Eut({groups:e}){const t=e.domain.concat([dx,hx,wd,px,mx,gx,yx,vx,bs,XD,Yy,_x,bx,xx,Fl,Sx,Jy,wx]),n=[fx,Ch,QD,Bl,eI,Yy,Xy,tI,nI,tx,nx,Zy,Ky,J5,X5,Q5,ex,rx,ix,ax,ox,sx,lx,ux,cx],r=[dx,fx,hx,px,mx,gx,yx,vx,bs,Zy,Ky,Yy,_x,bx,xx,Xy,Fl,Sx,Jy,wx],i=ys(),a=at(i,Jy);bn(a,r,a),bn(a,e.domain,a);const o=ys(),s=ys(),l=ys();bn(i,e.domain,o),bn(i,e.scheme,s),bn(i,e.slashscheme,l),bn(o,r,a),bn(o,e.domain,o);const u=at(o,wd);at(a,wd,u),at(s,wd,u),at(l,wd,u);const c=at(a,Bl);bn(c,r,a),bn(c,e.domain,a);const d=ys();bn(u,e.domain,d),bn(d,e.domain,d);const f=at(d,Bl);bn(f,e.domain,d);const h=ys(Tut);bn(f,e.tld,h),bn(f,e.utld,h),at(u,Q2,h);const p=at(d,bs);at(p,bs,p),bn(p,e.domain,d),bn(h,e.domain,d),at(h,Bl,f),at(h,bs,p);const g=at(o,bs),v=at(o,Bl);at(g,bs,g),bn(g,e.domain,o),bn(v,r,a),bn(v,e.domain,o);const b=ys(xb);bn(v,e.tld,b),bn(v,e.utld,b),bn(b,e.domain,o),bn(b,r,a),at(b,Bl,v),at(b,bs,g),at(b,wd,u);const x=at(b,Ch),_=ys(xb);bn(x,e.numeric,_);const w=ys(xb),C=ys();bn(w,t,w),bn(w,n,C),bn(C,t,w),bn(C,n,C),at(b,Fl,w),at(_,Fl,w);const T=at(s,Ch),k=at(l,Ch),A=at(k,Fl),P=at(A,Fl);bn(s,e.domain,o),at(s,Bl,v),at(s,bs,g),bn(l,e.domain,o),at(l,Bl,v),at(l,bs,g),bn(T,e.domain,w),at(T,Fl,w),at(T,Xy,w),bn(P,e.domain,w),bn(P,t,w),at(P,Fl,w);const D=[[Zy,Ky],[X5,J5],[Q5,ex],[tx,nx],[rx,ix],[ax,ox],[sx,lx],[ux,cx]];for(let $=0;$<D.length;$++){const[O,z]=D[$],j=at(w,O);at(C,O,j);const B=ys(xb);bn(j,t,B);const R=ys();bn(j,n,R),at(j,z,w),bn(B,t,B),bn(B,n,R),bn(R,t,B),bn(R,n,R),at(B,z,w),at(R,z,w)}return at(i,Q2,b),at(i,JD,kut),{start:i,tokens:Yae}}function Mut(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,l=null,u=null,c=0,d=null,f=-1;for(;i<r&&!(l=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(u=l||s.go(n[i].t));)l=null,s=u,s.accepts()?(f=0,d=s):f>=0&&f++,i++,c++;if(f<0)i-=c,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(mS(IU,t,o)),o=[]),i-=f,c-=f;const h=d.t,p=n.slice(i-c,i);a.push(mS(h,t,p))}}return o.length>0&&a.push(mS(IU,t,o)),a}
944function mS(e,t,n){const r=n[0].s,i=n[n.length-1].e,a=t.slice(r,i);return new e(a,n)}const Aut=typeof console<"u"&&console&&console.warn||(()=>{}),Put="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Pr={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Dut(){return lo.groups={},Pr.scanner=null,Pr.parser=null,Pr.tokenQueue=[],Pr.pluginQueue=[],Pr.customSchemes=[],Pr.initialized=!1,Pr}function $U(e,t=!1){if(Pr.initialized&&Aut(`linkifyjs: already initialized - will not register custom scheme "${e}" ${Put}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. 9451. Must only contain digits, lowercase ASCII letters or "-" 9462. Cannot start or end with "-" 9473. "-" cannot repeat`);Pr.customSchemes.push([e,t])}function Iut(){Pr.scanner=Sut(Pr.customSchemes);for(let e=0;e<Pr.tokenQueue.length;e++)Pr.tokenQueue[e][1]({scanner:Pr.scanner});Pr.parser=Eut(Pr.scanner.tokens);for(let e=0;e<Pr.pluginQueue.length;e++)Pr.pluginQueue[e][1]({scanner:Pr.scanner,parser:Pr.parser});return Pr.initialized=!0,Pr}function iI(e){return Pr.initialized||Iut(),Mut(Pr.parser.start,e,Xae(Pr.scanner.start,e))}iI.scan=Xae;function Qae(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new rI(n),i=iI(e),a=[];for(let o=0;o<i.length;o++){const s=i[o];s.isLink&&(!t||s.t===t)&&r.check(s)&&a.push(s.toFormattedObject(r))}return a}const Bw="[\0-  áá â-\u2029âã]",$ut=new RegExp(Bw),Lut=new RegExp(`${Bw}$`),Rut=new RegExp(`${Bw}+$`),Out=new RegExp(Bw,"g");function But(e,t,n){var r,i;const a=e.doc.resolve(t.to);if(!(!((r=a.nodeBefore)===null||r===void 0)&&r.isText))return;const o=(i=e.doc.textBetween(t.from,t.to,"","").match(Rut))===null||i===void 0?void 0:i[0];if(!o)return;const s=t.to-o.length,l=Lw(s,t.to,e.doc).filter(d=>d.mark.type===n);if(!l.length)return;const{nodeAfter:u}=a;if(u&&l.some(d=>d.mark.isInSet(u.marks)))return;const c=e.storedMarks;e.removeMark(s,t.to,n),e.setStoredMarks(c),e.selection.empty&&e.selection.from===t.to&&e.removeStoredMark(n)}function Fut(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function zut(e){return new Ea({key:new bo("autolink"),appendTransaction:(t,n,r)=>{const i=t.some(l=>l.docChanged)&&!n.doc.eq(r.doc),a=t.some(l=>l.getMeta("preventAutolink"));if(!i||a)return;const{tr:o}=r,s=kae(n.doc,[...t]);if(!t.some(jot)){const l=[];s.steps.forEach((u,c)=>{if(!(u instanceof ti)||!u.slice.size)return;const d=s.mapping.slice(c+1),f=d.map(u.from,1),h=d.map(u.from+u.slice.size,-1);f<h&&l.push({from:f,to:h})}),l.sort((u,c)=>c.to-u.to),l.forEach(u=>But(o,u,e.type))}if(GD(s).forEach(({newRange:l})=>{const u=Lst(r.doc,l,f=>f.isTextblock);let c,d;if(u.length>1)c=u[0],d=r.doc.textBetween(c.pos,c.pos+c.node.nodeSize,void 0," ");else if(u.length){const f=r.doc.textBetween(l.from,l.to," "," ");if(!Lut.test(f))return;c=u[0],d=r.doc.textBetween(c.pos,l.to,void 0," ")}
947if(c&&d){const f=d.split($ut).filter(Boolean);if(f.length<=0)return!1;const h=f[f.length-1],p=c.pos+d.lastIndexOf(h);if(!h)return!1;const g=iI(h).map(v=>v.toObject(e.defaultProtocol));if(!Fut(g))return!1;g.filter(v=>v.isLink).map(v=>({...v,from:p+v.start+1,to:p+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>e.validate(v.value)).filter(v=>e.shouldAutoLink(v.value)).forEach(v=>{Lw(v.from,v.to,r.doc).some(b=>b.mark.type===e.type)||o.addMark(v.from,v.to,e.type.create({href:v.href}))})}}),!!o.steps.length)return o}})}function Nut(e){return new Ea({key:new bo("handleClickLink"),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{const l=r.target;if(!l)return!1;const u=e.editor.view.dom;i=l.closest("a"),i&&!u.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){var o,s;const l=Dae(t.state,e.type.name),u=(o=i.href)!==null&&o!==void 0?o:l.href,c=(s=i.target)!==null&&s!==void 0?s:l.target;u&&(window.open(u,c),a=!0)}return a}}})}const Vut=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|â(.*?)â|â(.*?)â))?\)$/,jut=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|â(.*?)â|â(.*?)â))?\)/g;function eoe(e,t){let n=0;for(let r=t-1;r>=0&&e[r]==="\\";r-=1)n+=1;return n%2===1}function Uut(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"){r+=1;continue}if(n===0&&eoe(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function toe(e,t,n){var r,i;const[,a,o]=t;return(t.index?e[t.index-1]:void 0)==="!"||eoe(e,(r=t.index)!==null&&r!==void 0?r:0)||Uut(e,(i=t.index)!==null&&i!==void 0?i:0)?!1:!!a.trim()&&n(o)}function noe(e){var t,n;const[r,i,a,,o,s,l]=e,u=(t=o??s)!==null&&t!==void 0?t:l;return{index:(n=e.index)!==null&&n!==void 0?n:0,text:r,replaceWith:i,data:{href:a,title:u||null,markdown:!0}}}function Hut(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function roe(e){var t,n,r;return{href:(t=e.data)===null||t===void 0?void 0:t.href,title:(n=(r=e.data)===null||r===void 0?void 0:r.title)!==null&&n!==void 0?n:null}}function qut(e){const t=vE({find:n=>{const r=Vut.exec(n);return!r||!toe(n,r,e.isAllowedHref)?null:noe(r)},type:e.type,getAttributes:roe});return new Zv({find:t.find,handler:n=>{const r=t.handler(n);return r!==null&&n.state.tr.steps.length&&n.state.tr.setMeta("preventAutolink",!0),r}})}function Wut(e){const t=Y5({find:n=>{var r,i;const a=[];for(const s of n.matchAll(jut))toe(n,s,e.isAllowedHref)&&a.push(noe(s));const o=((r=(i=e.findPlainUrls)===null||i===void 0?void 0:i.call(e,n))!==null&&r!==void 0?r:[]).filter(s=>!a.some(l=>Hut(l,s)));return[...a,...o]},type:e.type,getAttributes:roe});return new jae({find:t.find,handler:n=>{var r;const i=t.handler(n);return i!==null&&n.state.tr.steps.length&&(!((r=n.match.data)===null||r===void 0)&&r.markdown)&&n.state.tr.setMeta("preventAutolink",!0),i}})}function Gut(e){return new Ea({key:new bo("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let l="";r.content.forEach(c=>{l+=c.textContent});const u=Qae(l,{defaultProtocol:e.defaultProtocol}).find(c=>c.isLink&&c.value===l);return!l||!u||i!==void 0&&!i(u.value)?!1:e.editor.commands.setMark(e.type,{href:u.href})}}})}function Bu(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(Out,"").match(new RegExp(`^(?:(?:${n.map(r=>r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,"i"))}const Zut=YD.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEac
947h(e=>{if(typeof e=="string"){$U(e);return}$U(e.scheme,e.optionalSlashes)})},onDestroy(){Dut()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!Bu(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{const t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;const r=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){var e,t,n;return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:(e=this.options.HTMLAttributes.target)!==null&&e!==void 0?e:null},rel:{default:(t=this.options.HTMLAttributes.rel)!==null&&t!==void 0?t:null},class:{default:(n=this.options.HTMLAttributes.class)!==null&&n!==void 0?n:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!Bu(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!Bu(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Vs(this.options.HTMLAttributes,e),0]:["a",Vs(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n,r,i,a;const o=(n=(r=e.attrs)===null||r===void 0?void 0:r.href)!==null&&n!==void 0?n:"",s=(i=(a=e.attrs)===null||a===void 0?void 0:a.title)!==null&&i!==void 0?i:"",l=t.renderChildren(e);return s?`[${l}](${o} "${s}")`:`[${l}](${o})`},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Bu(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!Bu(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addInputRules(){return this.options.markdownLinks?[qut({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:t=>!!Bu(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){const e=t=>{const n=[];if(t){const{protocols:r,defaultProtocol:i}=this.options;Qae(t).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:o=>!!Bu(o,r),protocols:r,defaultProtocol:i})).forEach(a=>{this.options.shouldAutoLink(a.value)&&n.push({text:a.value,data:{href:a.href},index:a.start})})}return n};return this.options.markdownLinks?[Wut({type:this.type,isAllowedHref:t=>this.options.isAllowedUri(t,{defaultValidate:n=>!!Bu(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[Y5({find:e,type:this.type,getAttributes:t=>{var n;return{href:(n=t.data)===null||n===void 0?void 0:n.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(zut({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!Bu(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(Nut({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(Gut({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.t
947ype,shouldAutoLink:this.options.shouldAutoLink})),e}});var Kut=Zut;const wb=" ",gS="Â ",Yut=gu.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Vs(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const n=e.tokens||[];if(n.length===1&&n[0].type==="image")return t.parseChildren([n[0]]);const r=t.parseInline(n);return n.length===1&&n[0].type==="text"&&(n[0].raw===wb||n[0].text===wb||n[0].raw===gS||n[0].text===gS)&&r.length===1&&r[0].type==="text"&&(r[0].text===wb||r[0].text===gS)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return"";const r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;const o=Array.isArray(n==null||(i=n.previousNode)===null||i===void 0?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)===null||a===void 0?void 0:a.type)==="paragraph"&&o.length===0?wb:""}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Xut=gu.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Vs(this.options.HTMLAttributes,e)]},renderText(){return` 948`},renderMarkdown:()=>` 949`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:a}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,l=a||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&o){const d=l.filter(f=>s.includes(f.type.name));u.ensureMarks(d)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Jut=gu.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),Qut="listItem",LU="textStyle",RU=/^\s*([-+*])\s$/,ioe=gu.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Vs(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>e.type!=="list"||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 950`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Qut,this.editor.getAttributes(LU)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
950,addInputRules(){let e=J2({find:RU,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=J2({find:RU,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(LU),editor:this.editor})),[e]}}),ect=(e,t,n)=>{const{selection:r}=e;if(!r.empty)return null;const{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let h=i.depth;h>0;h-=1)if(i.node(h).type.name===t){a=h;break}if(a<0)return null;const o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;const l=o.child(s+1);if(!n.includes(l.type.name))return null;const u=e.schema.nodes[t];let c=!1;if(l.forEach(h=>{h.type===u&&h.childCount>1&&(c=!0)}),!c)return null;const d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;const f=[];return d.forEach(h=>{f.push(h)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},tct=(e,t,n,r)=>{const i=ect(e,n,r);if(!i)return!1;const{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:l,items:u}=i,c=e.tr;c.delete(s,s+o.nodeSize);const d=c.mapping.map(l);return c.insert(d,tt.from(u)),c.setSelection(a.map(c.doc,c.mapping)),t&&t(c),!0},nct=(e,t,n)=>tct(e.state,e.view.dispatch,t,n),aoe=(e,t)=>xo.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){const n=()=>nct(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),ooe=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],Sb="abcdefghijklmnopqrstuvwxyz",soe=String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;function Fw(e){let t=e,n="";for(const[r,i]of ooe)for(;t>=r;)n+=i,t-=r;return n}function aI(e){return Fw(e).toUpperCase()}function loe(e){const t=e.toLowerCase();let n=0,r=0;for(;n<t.length;){let i=!1;for(const[a,o]of ooe)if(t.startsWith(o,n)){r+=a,n+=o.length,i=!0;break}if(!i)return 0}return r}function rct(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;const t=loe(e);return t<=0?!1:(e===e.toLowerCase()?Fw(t):aI(t))===e}function ict(e){const t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){const n=t.charCodeAt(0)-97,r=t.charCodeAt(1)-97;return(n+1)*26+r+1}return 0}function Cx(e){if(e<=26)return Sb[e-1];const t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?Sb[n]:Sb[t]+Sb[n]}function zw(e){if(!(!e||/^\d+$/.test(e))){if(rct(e))return e===e.toLowerCase()?"i":"I";if(/^[a-z]{1,2}$/.test(e))return"a";if(/^[A-Z]{1,2}$/.test(e))return"A"}}function oI(e){if(/^\d+$/.test(e))return parseInt(e,10);const t=zw(e);if(t==="i"||t==="I")return loe(e);if(t==="a"||t==="A"){const r=ict(e);return r>0?r:1}const n=parseInt(e,10);return Number.isNaN(n)?1:n}function act(e,t){if(e==="numeric")return String(t);switch(e){case"a":return Cx(t);case"A":return Cx(t).toUpperCase();case"i":return Fw(t);case"I":return aI(t);default:return String(t)}}function oct(e){var t;if(e.length===0)return!1;const n=(t=zw(e[0]))!==null&&t!==void 0?t:"numeric",r=oI(e[0]);if(r<1)return!1;for(let i=0;i<e.length;i++){const a=act(n,r+i);if(e[i]!==a)return!1}return!0}function sct(e){return{type:zw(e),start:oI(e)}}function lct(e){const{type:t,start:n}=sct(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function uct(e,t,n=". "){const r=t+1;if(!e||e==="1")return`${r}${n}`;switch(e){case"a":return`${Cx(r)}${n}`;case"A":return`${Cx(r).toUpperCase()}${n}`;case"i":return`${Fw(r)}${n}`;case"I":return`${aI(r)}${n}`;default:return`${r}${n}`}}function cct(e){var t,n;const r=(t=e.tokens)===null||t===void 0?void 0:t[0];return!!(e.text&&((n=e.tokens)===null||n===void 0?void 0:n.length)===1&&r?.type==="list"&&r.ordered&&r.raw===e.text)}function dct(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:"text",raw:e,text:e}])}const uoe=gu.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Vs(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if(e.type!=="list_item")return[];const r=(n=t.parseBlockChildren)!==null&&n!==void 0?n:t.parseChildren;let i=[];if(e.tokens&&e.tokens.length>0){if(cct(e))return{type:"listItem",content:[{type:"paragraph",content:dct(e.text||"",t)}]};if(e.tokens.some(a=>a.type==="paragraph"))i=r(e.tokens);else{const a=e.tokens[0];if(a&&a.type==="text"&&a.tokens&&a.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(a.tokens)}],e.tokens.length>1){const o=r(e.tokens.slice(1));i.push(...o)}}else i=r(e.tokens)}}return i.length===0&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,n)=>zae(e,t,r=>{if(r.parentType==="bulletList")return"- ";if(r.parentType==="orderedList"){var i,a;const o=((i=r.meta)===null||i===void 0||(i=i.parentAttrs)===null||i===void 0?void 0:i.start)||1;return uct((a=r.meta)===null||a===void 0||(a=a.parentAttrs)===null||a===void 0?void 0:a.type,o-1+(r.index||0),". ")}return"- "},n,{alignNestedToPrefix:n?.parentType==="orderedList"}),addExtensions(){return[aoe(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),sI=(e,t)=>{const{$from:n}=t.selection,r=Bi(e,t.schema);let i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(a-=1,o-=1);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},coe=(e,t)=>{const n=sI(e,t);if(!n)return!1;const[,r]=qst(t,e,n.$pos.pos+4);return r}
950,fct=(e,t,n)=>{const{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},OU=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!Ic(e.state,t)&&fct(e.state,t,n)){const{$anchor:a}=e.state.selection,o=e.state.doc.resolve(a.before()-1),s=[];o.node().descendants((c,d)=>{c.type.name===t&&s.push({node:c,pos:d})});const l=s.at(-1);if(!l)return!1;const u=e.state.doc.resolve(o.start()+l.pos+1);return e.chain().cut({from:a.start()-1,to:a.end()+1},u.end()).joinForward().run()}if(!Ic(e.state,t)||!Yst(e.state))return!1;const{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},hct=(e,t)=>{const n=coe(e,t),r=sI(e,t);return!r||!n?!1:n>r.depth},pct=(e,t)=>{const n=coe(e,t),r=sI(e,t);return!r||!n?!1:n<r.depth},BU=(e,t)=>{if(!Ic(e.state,t)||!Kst(e.state,t))return!1;const{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:hct(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():pct(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},mct=(e,t,n)=>{const{state:r}=e,{selection:i}=r;if(!i.empty)return!1;const{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||Ic(r,t))return!1;const o=Wst(a);if(!o||!n.includes(o.type.name))return!1;const s=o.lastChild;if(!s||s.type.name!==t)return!1;const l=a.parent;if(!s.canReplace(s.childCount,s.childCount,tt.from(l)))return!1;const u=a.before(),c=a.after(),d=u-2;return e.commands.command(({tr:f,dispatch:h})=>(h&&(f.delete(u,c).insert(d,tt.from(l)),f.setSelection(an.create(f.doc,d+1)),f.scrollIntoView()),!0))},gct=xo.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&BU(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&BU(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&OU(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&OU(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(const{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&mct(e,t,n))return!0;return!1}}}}),Tx=new RegExp(`^(\\s*)(${soe})([.)])\\s+(.*)$`),yct=/^\s/,j0={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function vct(e){return Tx.test(e.trimStart())}function _ct(e){const t=e.trimStart();return j0.bulletItem.test(t)||vct(t)||j0.heading.test(t)||j0.thematicBreak.test(t)&&!t.startsWith("-")||/^>\s?/.test(t)||j0.codeFence.test(t)||j0.blockMath.test(t)}function bct(e){return Object.values(j0).some(t=>t.test(e))}function xct(e){const t=[],n=[];let r=!1;return e.forEach(i=>{if(r){n.push(i);return}if(i.trim()===""){r=!0,n.push(i);return}if(t.length>0&&_ct(i)){r=!0,n.push(i);return}t.push(i)}),{paragraphLines:t,blockLines:n}}function FU(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n],a=i.match(Tx);if(!a)break;const[,o,s,l,u]=a,c=o.length,d=parseInt(s,10),f=isNaN(d)?zw(s):void 0,h=isNaN(d)?oI(s):d,p=[u];let g=n+1;const v=[i];let b=!1;for(;g<e.length;){const x=e[g];if(x.match(Tx))break;if(x.trim()==="")v.push(x),p.push(""),b=!0,g+=1;else if(x.match(yct)){const _=x.length-x.trimStart().length,w=c+s.length+1;v.push(x),p.push(x.slice(Math.min(_,w))),g+=1}else{if(b||bct(x))break;v.push(x),p.push(x),g+=1}}t.push({indent:c,number:h,type:f,content:p.join(` 951`).trim(),contentLines:p,raw:v.join(` 952`)}),r=g,n=g}return[t,r]}const wct=new RegExp(`^(${soe})([.)])\\s+(.+)$`);function Sct(e){const t=e.split(` 953`).filter(r=>r.trim().length>0);if(t.length===0)return null;const n=[];for(const r of t){const i=r.trim().match(wct);if(!i)return null;n.push({marker:i[1],content:i[3]})}return oct(n.map(r=>r.marker))?{type:"orderedList",attrs:lct(n[0].marker),content:n.map(r=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:r.content}]}]}))}:null}function doe(e,t,n){const r=[];let i=0;for(;i<e.length;){const a=e[i];if(a.indent===t){const{paragraphLines:o,blockLines:s}=xct(a.contentLines),l=o.join(` 954`).trim(),u=[];l&&u.push({type:"paragraph",raw:l,tokens:n.inlineTokens(l)});const c=s.join(` 955`).trim();if(c){const h=n.blockTokens(c);u.push(...h)}let d=i+1;const f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){const h=doe(f,Math.min(...f.map(p=>p.indent)),n);u.push({type:"list",ordered:!0,start:f[0].number,typeMarker:f[0].type,items:h,raw:f.map(p=>p.raw).join(` 956`)})}r.push({type:"list_item",raw:a.raw,tokens:u}),i=d}else i+=1}return r}function Cct(e,t){return e.map(n=>{if(n.type!=="list_item")return t.parseChildren([n])[0];const r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(i=>
956{if(i.type==="paragraph"||i.type==="list"||i.type==="blockquote"||i.type==="code")r.push(...t.parseChildren([i]));else if(i.type==="text"&&i.tokens){const a=t.parseChildren([i]);r.push({type:"paragraph",content:a})}else{const a=t.parseChildren([i]);a.length>0&&r.push(...a)}}),{type:"listItem",content:r}})}const Tct=64;function zU(e,t){const n=[];let r=0;for(;n.length<t;){const i=e.indexOf(` 957`,r);if(i===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,i)),r=i+1}return n}function kct(e){const t=e.indexOf(` 958`),n=t===-1?e:e.slice(0,t);if(!Tx.test(n))return[[],0,[]];let r=Tct,i=zU(e,r),a=FU(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=zU(e,r),a=FU(i);return[a[0],a[1],i]}const Ect="listItem",NU="textStyle",VU=/^(\d+)\.\s$/;function jU(e){const t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case"upper-roman":return"I";case"lower-roman":return"i";case"upper-alpha":case"upper-latin":return"A";case"lower-alpha":case"lower-latin":return"a";default:return null}}const foe=gu.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>{const t=e.getAttribute("type");if(t)return t;const n=e.getAttribute("style");if(n){const i=jU(n);if(i)return i}const r=e.querySelector("li");if(r){const i=r.getAttribute("style");if(i){const a=jU(i);if(a)return a}}return null}}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,type:n,...r}=e,i=Vs(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!=="1"&&(i.type=n),["ol",i,0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if(e.type!=="list"||!e.ordered)return[];const n=e.start||1,r=e.typeMarker,i=e.items?Cct(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:"orderedList",attrs:a,content:i}:{type:"orderedList",content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 959`):"",markdownTokenizer:{name:"orderedList",level:"block",start:()=>-1,tokenize:(e,t,n)=>{var r,i;const[a,o,s]=kct(e);if(a.length===0)return;const l=doe(a,a[0].indent,n);if(l.length!==0)return{type:"list",ordered:!0,start:((r=a[0])===null||r===void 0?void 0:r.number)||1,typeMarker:(i=a[0])===null||i===void 0?void 0:i.type,items:l,raw:s.slice(0,o).join(` 960`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Ect,this.editor.getAttributes(NU)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new Ea({props:{handlePaste:(e,t)=>
960{var n,r;const i=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/html");if(i?.trim())return!1;const a=(r=t.clipboardData)===null||r===void 0?void 0:r.getData("text/plain");if(!a)return!1;const o=Sct(a);if(!o)return!1;try{const s=e.state.schema.nodeFromJSON(o),l=e.state.tr.replaceSelectionWith(s);return e.dispatch(l),!0}catch{return!1}}}})]},addInputRules(){const e=(n,r)=>(!r.attrs.type||r.attrs.type==="1")&&r.childCount+r.attrs.start===+n[1];let t=J2({find:VU,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=J2({find:VU,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:n=>({start:+n[1],...this.editor.getAttributes(NU)}),joinPredicate:e,editor:this.editor})),[t]}}),Mct=/^\s*(\[([( |x])?\])\s$/,Act="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0",Pct=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)===null||r===void 0?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||"empty task item"}`},Dct=gu.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>{var t;return(t=e.querySelector("div"))!==null&&t!==void 0?t:e}}]},renderHTML({node:e,HTMLAttributes:t}){return["li",Vs(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;const r=`- [${!((n=e.attrs)===null||n===void 0)&&n.checked?"x":" "}] `;return zae(e,t,r)},addExtensions(){return this.options.nested?[aoe(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{const i=document.createElement("li"),a=document.createElement("label"),o=document.createElement("span"),s=document.createElement("input"),l=document.createElement("div");o.style.cssText=Act;const u=d=>{const f=Pct(d,d.attrs.checked,this.options.a11y);s.setAttribute("aria-label",f),o.textContent=f};u(e),a.contentEditable="false",s.type="checkbox",s.addEventListener("mousedown",d=>d.preventDefault()),s.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}const{checked:f}=d.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:h})=>{const p=n();if(typeof p!="number")return!1;const g=h.doc.nodeAt(p);return h.setNodeMarkup(p,void 0,{...g?.attrs,checked:f}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,f)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,f])=>{i.setAttribute(d,f)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,l),Object.entries(t).forEach(([d,f])=>{i.setAttribute(d,f)});let c=new Set(Object.keys(t));return{dom:i,contentDOM:l,update:d=>{if(d.type!==this.type)return!1;i.dataset.checked=d.attrs.checked,s.checked=d.attrs.checked,u(d);const f=r.extensionManager.attributes,h=X2(d,f),p=new Set(Object.keys(h)),g=this.options.HTMLAttributes;
960return c.forEach(v=>{p.has(v)||(v in g?i.setAttribute(v,g[v]):i.removeAttribute(v))}),Object.entries(h).forEach(([v,b])=>{b==null?v in g?i.setAttribute(v,g[v]):i.removeAttribute(v):i.setAttribute(v,b)}),c=p,!0}}}},addInputRules(){return[J2({find:Mct,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),Ict=gu.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",Vs(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 961`):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const n=(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))===null||t===void 0?void 0:t.index;return n!==void 0?n:-1},tokenize(e,t,n){const r=a=>{const o=SU(a,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:s=>({indentLevel:s[1].length,mainContent:s[4],checked:s[3].toLowerCase()==="x"}),createToken:(s,l)=>({type:"taskItem",raw:"",mainContent:s.mainContent,indentLevel:s.indentLevel,checked:s.checked,text:s.mainContent,tokens:n.inlineTokens(s.mainContent),nestedTokens:l}),customNestedParser:r},n);if(o){const s={type:"taskList",raw:o.raw,items:o.items},l=a.slice(o.raw.length);return l.trim()?[s,...n.blockTokens(l)]:[s]}return n.blockTokens(a)},i=SU(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,o)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:o}),customNestedParser:r},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});xo.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(ioe.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(uoe.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(gct.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(foe.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(Dct.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(Ict.configure(this.options.taskList)),e}});const hoe=new WeakSet,poe=new WeakSet;function Zf(e){const t=e;return hoe.add(t),t}function EE(e){return Array.isArray(e)&&hoe.has(e)}function moe(e){return e.flatMap(t=>t==null?[]:Array.isArray(t)&&poe.has(t)&&!EE(t)?moe(t):[t])}function $ct(e,t){if(e==="slot")return 0;if(e instanceof Function){const i=e(t);return Array.isArray(i)&&!EE(i)&&!poe.has(i)?Zf(i):i}const{children:n,...r}=t??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");if(Array.isArray(n)){if(EE(n))return Zf([e,r,n]);if(n.length===0)return Zf([e,r]);const i=moe(n);return i.length===0?Zf([e,r]):Zf([e,r,...i])}return n!=null?Zf([e,r,n]):Zf([e,r])}const UU=(e,t)=>$ct(e,t),Lct=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Rct=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Oct=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Bct=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Fct=YD.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return UU("strong",{...Vs(this.options.HTMLAttributes,e),children:UU("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
vendor: 1,380 bytes, line 961
961,addInputRules(){return[vE({find:Lct,type:this.type}),vE({find:Oct,type:this.type})]},addPasteRules(){return[Y5({find:Rct,type:this.type}),Y5({find:Bct,type:this.type})]}}),zct=gu.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Vs(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;const r=!((n=e.attrs)===null||n===void 0)&&n.level?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>dut({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
961)\\s$`),type:this.type,getAttributes:{level:e}}))}}),Nct=gu.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 962 963`):""}),Vct=e=>oi({find:/--$/,replace:e??"â"}),jct=e=>oi({find:/\.\.\.$/,replace:e??"â¦"}),yS=e=>oi({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:e??"â"}),vS=e=>oi({find:/"$/,replace:e??"â"}),_S=e=>oi({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:e??"â"}),bS=e=>oi({find:/'$/,replace:e??"â"}),Uct=e=>oi({find:/<-$/,replace:e??"â"}),Hct=e=>oi({find:/->$/,replace:e??"â"}),qct=e=>oi({find:/\(c\)$/,replace:e??"©"}),Wct=e=>oi({find:/\(tm\)$/,replace:e??"â¢"}),Gct=e=>oi({find:/\(sm\)$/,replace:e??"â "}),Zct=e=>oi({find:/\(r\)$/,replace:e??"®"}),Kct=e=>oi({find:/(?:^|\s)(1\/2)\s$/,replace:e??"½"}),Yct=e=>oi({find:/\+\/-$/,replace:e??"±"}),Xct=e=>oi({find:/!=$/,replace:e??"â "}),Jct=e=>oi({find:/<<$/,replace:e??"«"}),Qct=e=>oi({find:/>>$/,replace:e??"»"}),edt=e=>oi({find:/\d+\s?([*x])\s?\d+$/,replace:e??"Ã"}),tdt=e=>oi({find:/\^2$/,replace:e??"²"}),ndt=e=>oi({find:/\^3$/,replace:e??"³"}),rdt=e=>oi({find:/(?:^|\s)(1\/4)\s$/,replace:e??"¼"}),idt=e=>oi({find:/(?:^|\s)(3\/4)\s$/,replace:e??"¾"}),adt=xo.create({name:"typography",addOptions(){return{closeDoubleQuote:"â",closeSingleQuote:"â",copyright:"©",ellipsis:"â¦",emDash:"â",laquo:"«",leftArrow:"â",multiplication:"Ã",notEqual:"â ",oneHalf:"½",oneQuarter:"¼",openDoubleQuote:"â",openSingleQuote:"â",plusMinus:"±",raquo:"»",registeredTrademark:"®",rightArrow:"â",servicemark:"â ",superscriptThree:"³",superscriptTwo:"²",threeQuarters:"¾",trademark:"â¢"}},addInputRules(){var e,t;const n=[];this.options.emDash!==!1&&n.push(Vct(this.options.emDash)),this.options.ellipsis!==!1&&n.push(jct(this.options.ellipsis));const r=this.editor.options.textDirection==="rtl";if(!((e=this.options.doubleQuotes)===null||e===void 0)&&e.rtl){const{open:i,close:a}=this.options.doubleQuotes.rtl;n.push(yS(i)),n.push(vS(a))}else r?(n.push(yS("â")),n.push(vS("â"))):(this.options.openDoubleQuote!==!1&&n.push(yS(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&n.push(vS(this.options.closeDoubleQuote)));if(!((t=this.options.singleQuotes)===null||t===void 0)&&t.rtl){const{open:i,close:a}=this.options.singleQuotes.rtl;n.push(_S(i)),n.push(bS(a))}else r?(n.push(_S("â")),n.push(bS("â"))):(this.options.openSingleQuote!==!1&&n.push(_S(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&n.push(bS(this.options.closeSingleQuote)));return this.options.leftArrow!==!1&&n.push(Uct(this.options.leftArrow)),this.options.rightArrow!==!1&&n.push(Hct(this.options.rightArrow)),this.options.copyright!==!1&&n.push(qct(this.options.copyright)),this.options.trademark!==!1&&n.push(Wct(this.options.trademark)),this.options.servicemark!==!1&&n.push(Gct(this.options.servicemark)),this.options.registeredTrademark!==!1&&n.push(Zct(this.options.registeredTrademark)),this.options.oneHalf!==!1&&n.push(Kct(this.options.oneHalf)),this.options.plusMinus!==!1&&n.push(Yct(this.options.plusMinus)),this.options.notEqual!==!1&&n.push(Xct(this.options.notEqual)),this.options.laquo!==!1&&n.push(Jct(this.options.laquo)),this.options.raquo!==!1&&n.push(Qct(this.options.raquo)),this.options.multiplication!==!1&&n.push(edt(this.options.multiplication)),this.options.superscriptTwo!==!1&&n.push(tdt(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&n.push(ndt(this.options.superscriptThree)),this.options.oneQuarter!==!1&&n.push(rdt(this.options.oneQuarter)),this.options.threeQuarters!==!1&&n.push(idt(this.options.threeQuarters)),n}}),odt=["for"],sdt=["id","title"],ldt=["value","id","name"],udt=Q({__name:"T3FormFieldRte",props:{name:{},field:{}},setup(e){const t=e,{value:n,setValue:r}=ri(_t(t.name)),{t:i}=dr(),a=[{name:i("userExchange.frontRte.textStyles.bold"),value:"bold"}],o=G([]),s=[{name:i("userExchange.frontRte.headings.paragraph"),value:"paragraph"},{name:`${i("userExchange.frontRte.headings.heading")} 2`,value:2},{name:`${i("userExchange.frontRte.headings.heading")} 3`,value:3}
963,{name:`${i("userExchange.frontRte.headings.heading")} 4`,value:4}],l=G(s?.[0]),u=[{name:i("userExchange.frontRte.otherTags.bulletList"),value:"bulletList"},{name:i("userExchange.frontRte.otherTags.orderedList"),value:"orderedList"}],c=G(),d=put({content:t.field.value,enableContentCheck:!0,extensions:[Nct,Yut,Xut,Jut,Fct,uoe,ioe,foe,adt,zct.configure({levels:[2,3,4]}),Kut.configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["https","mailto"]})],onUpdate:()=>{const w=d.value?.getHTML().replaceAll("<p></p>","").replaceAll("<h2></h2>","").replaceAll("<h3></h3>","").replaceAll("<h4></h4>","").replaceAll("<ul><li></li></ul>","").replaceAll("<ol><li></li></ol>","").replaceAll("<li><p>","<li>").replaceAll("</p></li>","</li>");r(w,!0),h(),p(),g()}}),f=()=>{l.value.value==="paragraph"?d.value?.chain().focus().setNode("paragraph").run():d.value?.chain().focus().setHeading({level:l.value.value}).run()},h=()=>{s.forEach(w=>{d.value?.isActive("heading",{level:w.value})&&l.value?.value!==w.value&&(l.value=w),!d.value?.isActive("heading",{level:w.value})&&l.value?.value===w.value&&(l.value=s[0])})},p=()=>{a.forEach(w=>{d.value?.isActive(w.value)&&!o.value?.includes(w.value)&&o.value?.push(w.value),!d.value?.isActive(w.value)&&o.value?.includes(w.value)&&(o.value=o.value?.filter(C=>C!==w.value))})},g=()=>{u.forEach(w=>{d.value?.isActive(w.value)&&c.value!==w.value&&(c.value=w.value),!d.value?.isActive(w.value)&&c.value===w.value&&(c.value="")})},v=G(),b=()=>{if(d.value?.getAttributes("link").href,v.value!==void 0){if(v.value===""||v.value===" "){d.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}d.value?.chain().focus().extendMarkRange("link").setLink({href:v.value}).run()}},x=[rn({gap:0,alignItems:"stretch"}),F()],_=[Vn({justifyContent:"center"}),F({width:"4.5rem",padding:0,height:"100%",_hover:{"& svg *":{fill:"white"}},_pressed:{bgColor:"primary","& svg *":{fill:"white"}}})];return(w,C)=>{const T=Bre,k=$A,A=FA,P=BA,D=zA,$=OA,O=LA,z=IA,j=JPe,B=grt,R=XPe,J=YPe,K=_rt,Z=wX,ne=k1,se=O6,ce=Tn,Re=WAe,Ue=DA,$e=E1,ke=PA,Ve=T1,nt=wrt,xe=Trt,Pe=KPe,je=Ta;return E(),V(je,un(pn(t)),{input:N(()=>[H(Pe,{class:L([m(rn)({alignItems:"stretch",gap:0}),m(F)({bgColor:"lightGray"})])},{default:N(()=>[Y("div",{class:L(m(F)({position:"relative"}))},[H(z,{modelValue:m(l),"onUpdate:modelValue":[C[1]||(C[1]=Fe=>$t(l)?l.value=Fe:null),C[2]||(C[2]=Fe=>f())]},{default:N(()=>[H(k,{class:L([m(rn)({gap:"1.5rem"}),m(F)({padding:"1rem",borderBottom:0,"& + [data-reka-popper-content-wrapper]":{position:"absolute !important"},_expanded:{"& svg":{transform:"rotate(-180deg)"}}})])},{default:N(()=>[Y("span",null,de(m(l).name),1),H(T,{"aria-hidden":"true",class:L([m(vn)({size:"3rem"}),m(F)({transition:"{easings.global}","& [data-name=third]":{fill:"secondary"}})])},null,8,["class"])]),_:1},8,["class"]),H(O,{disabled:""},{default:N(()=>[H($,{style:{"user-select":"none"},position:"popper",avoidCollisions:!1,onCloseAutoFocus:C[0]||(C[0]=()=>{})},{default:N(()=>[H(D,{as:"ul",class:L(m(F)({padding:0}))},{default:N(()=>[(E(),U(Ae,null,ft(s,(Fe,re)=>H(P,{key:re,value:Fe,as:"li"},{default:N(()=>[H(A,null,{default:N(()=>[st(de(Fe.name),1)]),_:2},1024)]),_:2},1032,["value"])),64))]),_:1},8,["class"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],2),H(j,{class:L(m(F)({width:"0.1rem",bgColor:"darkGray",opacity:.5}))},null,8,["class"]),H(J,{modelValue:m(o),"onUpdate:modelValue":C[3]||(C[3]=Fe=>$t(o)?o.value=Fe:null),type:"multiple",class:L(x)},{default:N(()=>[(E(),U(Ae,null,ft(a,Fe=>H(R,{value:Fe.value,title:Fe.name,onClick:re=>m(d).chain().focus().toggleMark(Fe.value).run(),class:L(_)},{default:N(()=>[Y("span",{class:L(m(fn)())},de(Fe.name),3),Fe.value==="bold"?(E(),V(B,{key:0,"aria-hidden":"true",class:L([m(vn)({size:"3rem",f
963ill:"black"}),m(F)({transition:"{easings.global}"})])},null,8,["class"])):ae("",!0)]),_:2},1032,["value","title","onClick"])),64))]),_:1},8,["modelValue"]),Y("div",null,[H(Ve,null,{default:N(()=>[H(ne,{asChild:""},{default:N(()=>[H(Z,{title:w.$t("userExchange.frontRte.link.createLink"),class:L([_,m(F)({"& + div + [data-reka-popper-content-wrapper]":{width:{base:"50vw !important",md:"30rem !important"},left:{base:"calc(50% - 25vw) !important",md:"calc(50% - 15rem) !important"}}})])},{default:N(()=>[Y("span",{class:L(m(fn)())},de(w.$t("userExchange.frontRte.link.createLink")),3),H(K,{"aria-hidden":"true",class:L([m(vn)({size:"3rem",fill:"black"}),m(F)({transition:"{easings.global}"})])},null,8,["class"])]),_:1},8,["title","class"])]),_:1}),H(se),H(ke,{disabled:""},{default:N(()=>[H($e,{class:L([m(rn)({gap:"1rem"}),m(F)({bgColor:"lightGray",padding:"1.5rem"})])},{default:N(()=>[Y("label",{for:"rte_url-"+e.field.identifier,class:L(m(fn)())},de(w.$t("userExchange.frontRte.link.targetUrl")),11,odt),_o(Y("input",{"onUpdate:modelValue":C[4]||(C[4]=Fe=>$t(v)?v.value=Fe:null),type:"text",id:"rte_url-"+e.field.identifier,onKeyup:C[5]||(C[5]=po(nr(Fe=>b(),["prevent"]),["enter"])),title:w.$t("userExchange.frontRte.link.targetUrl"),onkeydown:"return event.key != 'Enter'",class:L(m(F)({height:"3rem",padding:"0.5rem",fontSize:"1.4em"}))},null,42,sdt),[[s2,m(v)]]),H(Re,{asChild:""},{default:N(()=>[H(ce,{type:"button",onClick:C[6]||(C[6]=Fe=>b()),link:{text:"OK"},variante:{classes:"button",bgColor:"primary",size:"xs"}})]),_:1}),H(Ue)]),_:1},8,["class"])]),_:1})]),_:1})]),H(J,{modelValue:m(c),"onUpdate:modelValue":C[9]||(C[9]=Fe=>$t(c)?c.value=Fe:null),type:"single",class:L(x)},{default:N(()=>[H(R,{value:"bulletList",title:w.$t("userExchange.frontRte.otherTags.bulletList"),class:L(_),onClick:C[7]||(C[7]=Fe=>m(d).chain().focus().toggleBulletList().run())},{default:N(()=>[Y("span",{class:L(m(fn)())},de(w.$t("userExchange.frontRte.otherTags.bulletList")),3),H(nt,{"aria-hidden":"true",class:L([m(vn)({size:"3rem",f
963ill:"black"}),m(F)({transition:"{easings.global}"})])},null,8,["class"])]),_:1},8,["title"]),H(R,{value:"orderedList",title:w.$t("userExchange.frontRte.otherTags.orderedList"),class:L(_),onClick:C[8]||(C[8]=Fe=>m(d).chain().focus().toggleOrderedList().run())},{default:N(()=>[Y("span",{class:L(m(fn)())},de(w.$t("userExchange.frontRte.otherTags.orderedList")),3),H(xe,{"aria-hidden":"true",class:L([m(vn)({size:"3rem",fill:"black"}),m(F)({transition:"{easings.global}"})])},null,8,["class"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["class"]),H(m(hut),{editor:m(d),class:L([m(F)({"& .ProseMirror":{minHeight:"20rem",maxHeight:"50vh",overflow:"auto",transition:"{easings.global}",display:"block",fontSize:"1em",padding:"1rem",border:"{borders.sm} {colors.black}",borderBottomRadius:"sm"}}),m(Sa)()])},null,8,["editor","class"]),Y("textarea",{value:m(n),id:e.field.identifier,name:e.name,class:L(m(F)({display:"none"})),readonly:""},null,10,ldt)]),_:1},16)}}});var yy={exports:{}};var cdt=yy.exports,HU;function ddt(){return HU||(HU=1,(function(e,t){(function(){var n,r="4.18.1",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",f=1,h=2,p=4,g=1,v=2,b=1,x=2,_=4,w=8,C=16,T=32,k=64,A=128,P=256,D=512,$=30,O="...",z=800,j=16,B=1,R=2,J=3,K=1/0,Z=9007199254740991,ne=17976931348623157e292,se=NaN,ce=4294967295,Re=ce-1,Ue=ce>>>1,$e=[["ary",A],["bind",b],["bindKey",x],["curry",w],["curryRight",C],["flip",D],["partial",T],["partialRight",k],["rearg",P]],ke="[object Arguments]",Ve="[object Array]",nt="[object AsyncFunction]",xe="[object Boolean]",Pe="[object Date]",je="[object DOMException]",Fe="[object Error]",re="[object Function]",le="[object GeneratorFunction]",ye="[object Map]",Me="[object Number]",ve="[object Null]",X="[object Object]",ee="[object Promise]",oe="[object Proxy]",_e="[object RegExp]",ge="[object Set]",Oe="[object String]",Se="[object Symbol]",he="[object Undefined]",Te="[object WeakMap]",ze="[object WeakSet]",qe="[object ArrayBuffer]",lt="[object DataView]",bt="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",De="[object Int16Array]",Ge="[object Int32Array]",ut="[object Uint8Array]",it="[object Uint8ClampedArray]",mt="[object Uint16Array]",Be="[object Uint32Array]",Ze=/\b__p \+= '';/g,wt=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jt=/&(?:amp|lt|gt|quot|#39);/g,zt=/[&<>"']/g,xn=RegExp(jt.source),jn=RegExp(zt.source),Yr=/<%-([\s\S]+?)%>/g,ts=/<%([\s\S]+?)%>/g,Ma=/<%=([\s\S]+?)%>/g,Hs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$p=/^\w*$/,yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vu=/[\\^$.*+?()[\]{}|]/g,Lp=RegExp(vu.source),_f=/^\s+/,Yv=/\s/,Rp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jc=/\{\n\/\* \[wrapped with (.+)\] \*/,V1=/,? & /,Xv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Op=/[()=,{}\[\]\/\s]/,Uw=/\\(\\)?/g,Jv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bf=/\w*$/,j1=/^[-+]0x[0-9a-f]+$/i,Hw=/^0b[01]+$/i,Qv=/^\[object .+?Constructor\]$/,Bp=/^0o[0-7]+$/i,U1=/^(?:0|[1-9]\d*)$/,H1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 14,412 bytes, line 963
9637f]/g,Lt=/($^)/,xf=/['\n\r\u2028\u2029\\]/g,Fp="\\ud800-\\udfff",Uc="\\u0300-\\u036f",zp="\\ufe20-\\ufe2f",e_="\\u20d0-\\u20ff",Np=Uc+zp+e_,wf="\\u2700-\\u27bf",Sf="a-z\\xdf-\\xf6\\xf8-\\xff",t_="\\xac\\xb1\\xd7\\xf7",Vp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",n_="\\u2000-\\u206f",q1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",W1="A-Z\\xc0-\\xd6\\xd8-\\xde",Hc="\\ufe0e\\ufe0f",jp=t_+Vp+n_+q1,kl="['â]",G1="["+Fp+"]",Up="["+jp+"]",qc="["+Np+"]",wo="\\d+",Hp="["+wf+"]",Wc="["+Sf+"]",Z1="[^"+Fp+jp+wo+wf+Sf+W1+"]",Gc="\\ud83c[\\udffb-\\udfff]",qp="(?:"+qc+"|"+Gc+")",Wp="[^"+Fp+"]",Gp="(?:\\ud83c[\\udde6-\\uddff]){2}",Zp="[\\ud800-\\udbff][\\udc00-\\udfff]",El="["+W1+"]",Zc="\\u200d",K1="(?:"+Wc+"|"+Z1+")",Kp="(?:"+El+"|"+Z1+")",_u="(?:"+kl+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+kl+"(?:D|LL|M|RE|S|T|VE))?",Kc=qp+"?",Y1="["+Hc+"]?",Cf="(?:"+Zc+"(?:"+[Wp,Gp,Zp].join("|")+")"+Y1+Kc+")*",X1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",J1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Q1=Y1+Kc+Cf,Yp="(?:"+[Hp,Gp,Zp].join("|")+")"+Q1,eg="(?:"+[Wp+qc+"?",qc,Gp,Zp,G1].join("|")+")",r_=RegExp(kl,"g"),ns=RegExp(qc,"g"),Tf=RegExp(Gc+"(?="+Gc+")|"+eg+Q1,"g"),i_=RegExp([El+"?"+Wc+"+"+_u+"(?="+[Up,El,"$"].join("|")+")",Kp+"+"+bu+"(?="+[Up,El+K1,"$"].join("|")+")",El+"?"+K1+"+"+_u,El+"+"+bu,J1,X1,wo,Yp].join("|"),"g"),a_=RegExp("["+Zc+Fp+Np+Hc+"]"),tg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,o_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],s_=-1,Jn={};Jn[bt]=Jn[fe]=Jn[pe]=Jn[De]=Jn[Ge]=Jn[ut]=Jn[it]=Jn[mt]=Jn[Be]=!0,Jn[ke]=Jn[Ve]=Jn[qe]=Jn[xe]=Jn[lt]=Jn[Pe]=Jn[Fe]=Jn[re]=Jn[ye]=Jn[Me]=Jn[X]=Jn[_e]=Jn[ge]=Jn[Oe]=Jn[Te]=!1;var Un={};Un[ke]=Un[Ve]=Un[qe]=Un[lt]=Un[xe]=Un[Pe]=Un[bt]=Un[fe]=Un[pe]=Un[De]=Un[Ge]=Un[ye]=Un[Me]=Un[X]=Un[_e]=Un[ge]=Un[Oe]=Un[Se]=Un[ut]=Un[it]=Un[mt]=Un[Be]=!0,Un[Fe]=Un[re]=Un[Te]=!1;var Ml={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},l_={"&":"&","<":"<",">":">",'"':""","'":"'"},ng={"&":"&","<":"<",">":">",""":'"',"'":"'"},rg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kf=parseFloat,u_=parseInt,Yc=typeof s3=="object"&&s3&&s3.Object===Object&&s3,ig=typeof self=="object"&&self&&self.Object===Object&&self,Qn=Yc||ig||Function("return this")(),ag=t&&!t.nodeType&&t,rs=ag&&!0&&e&&!e.nodeType&&e,Ef=rs&&rs.exports===ag,Xp=Ef&&Yc.process,Ka=(function(){try{var Ce=rs&&rs.require&&rs.require("util").types;return Ce||Xp&&Xp.binding&&Xp.binding("util")}catch{}})(),Gi=Ka&&Ka.isArrayBuffer,Ya=Ka&&Ka.isDate,Zi=Ka&&Ka.isMap,qs=Ka&&Ka.isRegExp,og=Ka&&Ka.isSet,hI=Ka&&Ka.isTypedArray;function So(Ce,We,Ne){switch(Ne.length){case 0:return Ce.call(We);case 1:return Ce.call(We,Ne[0]);case 2:return Ce.call(We,Ne[0],Ne[1]);case 3:return Ce.call(We,Ne[0],Ne[1],Ne[2])}return Ce.apply(We,Ne)}function Boe(Ce,We,Ne,Tt){for(var en=-1,er=Ce==null?0:Ce.length;++en<er;){var Ti=Ce[en];We(Tt,Ti,Ne(Ti),Ce)}return Tt}function Co(Ce,We){for(var Ne=-1,Tt=Ce==null?0:Ce.length;++Ne<Tt&&We(Ce[Ne],Ne,Ce)!==!1;);return Ce}function Foe(Ce,We){for(var Ne=Ce==null?0:Ce.length;Ne--&&We(Ce[Ne],Ne,Ce)!==!1;);return Ce}function pI(Ce,We){for(var Ne=-1,Tt=Ce==null?0:Ce.length;++Ne<Tt;)if(!We(Ce[Ne],Ne,Ce))return!1;return!0}function Xc(Ce,We){for(var Ne=-1,Tt=Ce==null?0:Ce.length,en=0,er=[];++Ne<Tt;){var Ti=Ce[Ne];We(Ti,Ne,Ce)&&(er[en++]=Ti)}return er}function c_(Ce,We){var Ne=Ce==null?0:Ce.length;return!!Ne&&Jp(Ce,We,0)>-1}function qw(Ce,We,Ne){for(var Tt=-1,en=Ce==null?0:Ce.length;++Tt<en;)if(Ne(We,Ce[Tt]))return!0;return!1}function Br(Ce,We){for(var Ne=-1,Tt=Ce==null?0:Ce.length,en=Array(Tt);++Ne<Tt;)en[Ne]=We(Ce[Ne],Ne,Ce);return en}function Jc(Ce,We){for(var Ne=-1,Tt=We.length,en=Ce.length;++Ne<Tt;)Ce[en+Ne]=We[Ne];return Ce}function Ww(Ce,We,Ne,Tt){var en=-1,er=Ce==null?0:Ce.length;for(Tt&&er&&(Ne=Ce[++en]);++en<er;)Ne=We(Ne,Ce[en],en,Ce);return Ne}function zoe(Ce,We,Ne,Tt){var en=Ce==null?0:Ce.length;for(Tt&&en&&(Ne=Ce[--en]);en--;)Ne=We(Ne,Ce[en],en,Ce);return Ne}function Gw(Ce,We){for(var Ne=-1,Tt=Ce==null?0:Ce.length;++Ne<Tt;)if(We(Ce[Ne],Ne,Ce))return!0;return!1}var Noe=Zw("length");function Voe(Ce){return Ce.split("")}function joe(Ce){return Ce.match(Xv)||[]}function mI(Ce,We,Ne){var Tt;return Ne(Ce,function(en,er,Ti){if(We(en,er,Ti))return Tt=er,!1}),Tt}function d_(Ce,We,Ne,Tt){for(var en=Ce.length,er=Ne+(Tt?1:-1);Tt?er--:++er<en;)if(We(Ce[er],er,Ce))return er;return-1}function Jp(Ce,We,Ne){return We===We?ese(Ce,We,Ne):d_(Ce,gI,Ne)}function Uoe(Ce,We,Ne,Tt){for(var en=Ne-1,er=Ce.length;++en<er;)if(Tt(Ce[en],We))return en;return-1}function gI(Ce){return Ce!==Ce}function yI(Ce,We){var Ne=Ce==null?0:Ce.length;return Ne?Yw(Ce,We)/Ne:se}function Zw(Ce){return function(We){return We==null?n:We[Ce]}}function Kw(Ce){return function(We){return Ce==null?n:Ce[We]}}function vI(Ce,We,Ne,Tt,en){return en(Ce,function(er,Ti,pr){Ne=Tt?(Tt=!1,er):We(Ne,er,Ti,pr)}),Ne}function Hoe(Ce,We){var Ne=Ce.length;for(Ce.sort(We);Ne--;)Ce[Ne]=Ce[Ne].value;return Ce}function Yw(Ce,We){for(var Ne,Tt=-1,en=Ce.length;++Tt<en;){var er=We(Ce[Tt]);er!==n&&(Ne=Ne===n?er:Ne+er)}return Ne}function Xw(Ce,We){for(var Ne=-1,Tt=Array(Ce);++Ne<Ce;)Tt[Ne]=We(Ne);return Tt}function qoe(Ce,We){return Br(We,function(Ne){return[Ne,Ce[Ne]]})}function _I(Ce){return Ce&&Ce.slice(0,SI(Ce)+1).replace(_f,"")}function To(Ce){return function(We){return Ce(We)}}function Jw(Ce,We){return Br(We,function(Ne){return Ce[Ne]})}function sg(Ce,We){return Ce.has(We)}function bI(Ce,We){for(var Ne=-1,Tt=Ce.length;++Ne<Tt&&Jp(We,Ce[Ne],0)>-1;);return Ne}function xI(Ce,We){for(var Ne=Ce.length;Ne--&&Jp(We,Ce[Ne],0)>-1;);return Ne}function Woe(Ce,We){for(var Ne=Ce.length,Tt=0;Ne--;)Ce[Ne]===We&&++Tt;return Tt}var Goe=Kw(Ml),Zoe=Kw(l_);function Koe(Ce){return"\\"+rg[Ce]}function Yoe(Ce,We){return Ce==null?n:Ce[We]}function Qp(Ce){return a_.test(Ce)}function Xoe(Ce){return tg.test(Ce)}function Joe(Ce){for(var We,Ne=[];!(We=Ce.next()).done;)Ne.push(We.value);return Ne}function Qw(Ce){var We=-1,Ne=Array(Ce.size);return Ce.forEach(function(Tt,en){Ne[++We]=[en,Tt]}),Ne}function wI(Ce,We){return function(Ne){return Ce(We(Ne))}}function Qc(Ce,We){for(var Ne=-1,Tt=Ce.length,en=0,er=[];++Ne<Tt;){var Ti=Ce[Ne];(Ti===We||Ti===d)&&(Ce[Ne]=d,er[en++]=Ne)}return er}function f_(Ce){var We=-1,Ne=Array(Ce.size);return Ce.forEach(function(Tt){Ne[++We]=Tt}),Ne}function Qoe(Ce){var We=-1,Ne=Array(Ce.size);return Ce.forEach(function(Tt){Ne[++We]=[Tt,Tt]}),Ne}function ese(Ce,We,Ne){for(var Tt=Ne-1,en=Ce.length;++Tt<en;)if(Ce[Tt]===We)return Tt;return-1}function tse(Ce,We,Ne){for(var Tt=Ne+1;Tt--;)if(Ce[Tt]===We)return Tt;return Tt}function e0(Ce){return Qp(Ce)?rse(Ce):Noe(Ce)}function Ws(Ce){return Qp(Ce)?ise(Ce):Voe(Ce)}function SI(Ce){for(var We=Ce.length;We--&&Yv.test(Ce.charAt(We)););return We}var nse=Kw(ng);function rse(Ce){for(var We=Tf.lastIndex=0;Tf.test(Ce);)++We;return We}function ise(Ce){return Ce.match(Tf)||[]}function ase(Ce){return Ce.match(i_)||[]}var ose=(function Ce(We){We=We==null?Qn:t0.defaults(Qn.Object(),We,t0.pick(Qn,o_));var Ne=We.Array,Tt=We.Date,en=We.Error,er=We.Function,Ti=We.Math,pr=We.Object,e8=We.RegExp,sse=We.String,is=We.TypeError,h_=Ne.prototype,lse=er.prototype,n0=pr.prototype,p_=We["__core-js_shared__"],m_=lse.toString,ir=n0.hasOwnProperty,use=0,CI=(function(){var y=/[^.]+$/.exec(p_&&p_.keys&&p_.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""})(),g_=n0.toString,cse=m_.call(pr),dse=Qn._,fse=e8("^"+m_.call(ir).replace(vu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y_=Ef?We.Buffer:n,ed=We.Symbol,v_=We.Uint8Array,TI=y_?y_.allocUnsafe:n,__=wI(pr.getPrototypeOf,pr),kI=pr.create,EI=n0.propertyIsEnumerable,b_=h_.splice,MI=ed?ed.isConcatSpreadable:n,lg=ed?ed.iterator:n,Mf=ed?ed.toStringTag:n,x_=(function(){try{var y=$f(pr,"defineProperty");return y({},"",{}),y}catch{}})(),hse=We.clearTimeout!==Qn.clearTimeout&&We.clearTimeout,pse=Tt&&Tt.now!==Qn.Date.now&&Tt.now,mse=We.setTimeout!==Qn.setTimeout&&We.setTimeout,w_=Ti.ceil,S_=Ti.floor,t8=pr.getOwnPropertySymbols,gse=y_?y_.isBuffer:n,AI=We.isFinite,yse=h_.join,vse=wI(pr.keys,pr),ki=Ti.max,ma=Ti.min,_se=Tt.now,bse=We.parseInt,PI=Ti.random,xse=h_.reverse,n8=$f(We,"DataView"),ug=$f(We,"Map"),r8=$f(We,"Promise"),r0=$f(We,"Set"),cg=$f(We,"WeakMap"),dg=$f(pr,"create"),C_=cg&&new cg,i0={},wse=Lf(n8),Sse=Lf(ug),Cse=Lf(r8),Tse=Lf(r0),kse=Lf(cg),T_=ed?ed.prototype:n,fg=T_?T_.valueOf:n,DI=T_?T_.toString:n;function te(y){if(Xr(y)&&!sn(y)&&!(y instanceof kn)){if(y instanceof as)return y;if(ir.call(y,"__wrapped__"))return I$(y)}return new as(y)}var a0=(function(){function y(){}return function(S){if(!jr(S))return{};if(kI)return kI(S);y.prototype=S;var M=new y;return y.prototype=n,M}})();function k_(){}function as(y,S){this.__wrapped__=y,this.__actions__=[],this.__chain__=!!S,this.__index__=0,this.__values__=n}te.templateSettings={escape:Yr,evaluate:ts,interpolate:Ma,variable:"",imports:{_:te}},te.prototype=k_.prototype,te.prototype.constructor=te,as.prototype=a0(k_.prototype),as.prototype.constructor=as;function kn(y){this.__wrapped__=y,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function Ese(){var y=new kn(this.__wrapped__);return y.__actions__=Xa(this.__actions__),y.__dir__=this.__dir__,y.__filtered__=this.__filtered__,y.__iteratees__=Xa(this.__iteratees__),y.__takeCount__=this.__takeCount__,y.__views__=Xa(this.__views__),y}function Mse(){if(this.__filtered__){var y=new kn(this);y.__dir__=-1,y.__filtered__=!0}else y=this.clone(),y.__dir__*=-1;return y}function Ase(){var y=this.__wrapped__.value(),S=this.__dir__,M=sn(y),I=S<0,q=M?y.length:0,ie=Vle(0,q,this.__views__),ue=ie.start,be=ie.end,Ee=be-ue,Ke=I?be:ue-1,Ye=this.__iteratees__,et=Ye.length,gt=0,Rt=ma(Ee,this.__takeCount__);if(!M||!I&&q==Ee&&Rt==Ee)return t$(y,this.__actions__);var Wt=[];e:for(;Ee--&><Rt;){Ke+=S;for(var gn=-1,Ut=y[Ke];++gn<et;){var wn=Ye[gn],Pn=wn.iteratee,Mo=wn.type,Da=Pn(Ut);if(Mo==R)Ut=Da;else if(!Da){if(Mo==B)continue e;break e}}Wt[gt++]=Ut}return Wt}kn.prototype=a0(k_.prototype),kn.prototype.constructor=kn;function Af(y){var S=-1,M=y==null?0:y.length;for(this.clear();++S<M;){var I=y[S];this.set(I[0],I[1])}}function Pse(){this.__data__=dg?dg(null):{},this.size=0}function Dse(y){var S=this.has(y)&&delete this.__data__[y];return this.size-=S?1:0,S}function Ise(y){var S=this.__data__;if(dg){var M=S[y];return M===u?n:M}return ir.call(S,y)?S[y]:n}function $se(y){var S=this.__data__;return dg?S[y]!==n:ir.call(S,y)}function Lse(y,S){var M=this.__data__;return this.size+=this.has(y)?0:1,M[y]=dg&&S===n?u:S,this}Af.prototype.clear=Pse,Af.prototype.delete=Dse,Af.prototype.get=Ise,Af.prototype.has=$se,Af.prototype.set=Lse;function xu(y){var S=-1,M=y==null?0:y.length;for(this.clear();++S<M;){var I=y[S];this.set(I[0],I[1])}}function Rse(){this.__data__=[],this.size=0}function Ose(y){var S=this.__data__,M=E_(S,y);if(M<0)return!1;var I=S.length-1;return M==I?S.pop():b_.call(S,M,1),--this.size,!0}function Bse(y){var S=this.__data__,M=E_(S,y);return M<0?n:S[M][1]}function Fse(y){return E_(this.__data__,y)>-1}function zse(y,S){var M=this.__data__,I=E_(M,y);return I<0?(++this.size,M.push([y,S])):M[I][1]=S,this}xu.prototype.clear=Rse,xu.prototype.delete=Ose,xu.prototype.get=Bse,xu.prototype.has=Fse,xu.prototype.set=zse;function wu(y){var S=-1,M=y==null?0:y.length;for(this.clear();++S<M;){var I=y[S];this.set(I[0],I[1])}}function Nse(){this.size=0,this.__data__={hash:new Af,map:new(ug||xu),string:new Af}}function Vse(y){var S=z_(this,y).delete(y);return this.size-=S?1:0,S}function jse(y){return z_(this,y).get(y)}function Use(y){return z_(this,y).has(y)}function Hse(y,S){var M=z_(this,y),I=M.size;return M.set(y,S),this.size+=M.size==I?0:1,this}wu.prototype.clear=Nse,wu.prototype.delete=Vse,wu.prototype.get=jse,wu.prototype.has=Use,wu.prototype.set=Hse;function Pf(y){var S=-1,M=y==null?0:y.length;for(this.__data__=new wu;++S<M;)this.add(y[S])}function qse(y){return this.__data__.set(y,u),this}function Wse(y){return this.__data__.has(y)}Pf.prototype.add=Pf.prototype.push=qse,Pf.prototype.has=Wse;function Gs(y){var S=this.__data__=new xu(y);this.size=S.size}function Gse(){this.__data__=new xu,this.size=0}function Zse(y){var S=this.__data__,M=S.delete(y);return this.size=S.size,M}function Kse(y){return this.__data__.get(y)}function Yse(y){return this.__data__.has(y)}function Xse(y,S){var M=this.__data__;if(M instanceof xu){var I=M.__data__;if(!ug||I.length<i-1)return I.push([y,S]),this.size=++M.size,this;M=this.__data__=new wu(I)}return M.set(y,S),this.size=M.size,this}Gs.prototype.clear=Gse,Gs.prototype.delete=Zse,Gs.prototype.get=Kse,Gs.prototype.has=Yse,Gs.prototype.set=Xse;
vendor: 4,765 bytes, line 963
963function II(y,S){var M=sn(y),I=!M&&Rf(y),q=!M&&!I&&ad(y),ie=!M&&!I&&!q&&u0(y),ue=M||I||q||ie,be=ue?Xw(y.length,sse):[],Ee=be.length;for(var Ke in y)(S||ir.call(y,Ke))&&!(ue&&(Ke=="length"||q&&(Ke=="offset"||Ke=="parent")||ie&&(Ke=="buffer"||Ke=="byteLength"||Ke=="byteOffset")||Tu(Ke,Ee)))&&be.push(Ke);return be}function $I(y){var S=y.length;return S?y[p8(0,S-1)]:n}function Jse(y,S){return N_(Xa(y),Df(S,0,y.length))}function Qse(y){return N_(Xa(y))}function i8(y,S,M){(M!==n&&!Ks(y[S],M)||M===n&&!(S in y))&&Al(y,S,M)}function hg(y,S,M){var I=y[S];(!(ir.call(y,S)&&Ks(I,M))||M===n&&!(S in y))&&Al(y,S,M)}function E_(y,S){for(var M=y.length;M--;)if(Ks(y[M][0],S))return M;return-1}function ele(y,S,M,I){return td(y,function(q,ie,ue){S(I,q,M(q),ue)}),I}function LI(y,S){return y&&Dl(S,Fi(S),y)}function tle(y,S){return y&&Dl(S,Qa(S),y)}function Al(y,S,M){S=="__proto__"&&x_?x_(y,S,{configurable:!0,enumerable:!0,value:M,writable:!0}):y[S]=M}function a8(y,S){for(var M=-1,I=S.length,q=Ne(I),ie=y==null;++M<I;)q[M]=ie?n:N8(y,S[M]);return q}function Df(y,S,M){return y===y&&(M!==n&&(y=y<=M?y:M),S!==n&&(y=y>=S?y:S)),y}function ss(y,S,M,I,q,ie){var ue,be=S&f,Ee=S&h,Ke=S&p;if(M&&(ue=q?M(y,I,q,ie):M(y)),ue!==n)return ue;if(!jr(y))return y;var Ye=sn(y);if(Ye){if(ue=Ule(y),!be)return Xa(y,ue)}else{var et=ga(y),gt=et==re||et==le;if(ad(y))return i$(y,be);if(et==X||et==ke||gt&&!q){if(ue=Ee||gt?{}:S$(y),!be)return Ee?Ile(y,tle(ue,y)):Dle(y,LI(ue,y))}else{if(!Un[et])return q?y:{};ue=Hle(y,et,be)}}ie||(ie=new Gs);var Rt=ie.get(y);if(Rt)return Rt;ie.set(y,ue),J$(y)?y.forEach(function(Ut){ue.add(ss(Ut,S,M,Ut,y,ie))}):Y$(y)&&y.forEach(function(Ut,wn){ue.set(wn,ss(Ut,S,M,wn,y,ie))});var Wt=Ke?Ee?T8:C8:Ee?Qa:Fi,gn=Ye?n:Wt(y);return Co(gn||y,function(Ut,wn){gn&&(wn=Ut,Ut=y[wn]),hg(ue,wn,ss(Ut,S,M,wn,y,ie))}),ue}function nle(y){var S=Fi(y);return function(M){return RI(M,y,S)}}function RI(y,S,M){var I=M.length;if(y==null)return!I;for(y=pr(y);I--;){var q=M[I],ie=S[q],ue=y[q];if(ue===n&&!(q in y)||!ie(ue))return!1}return!0}function OI(y,S,M){if(typeof y!="function")throw new is(o);return bg(function(){y.apply(n,M)},S)}function pg(y,S,M,I){var q=-1,ie=c_,ue=!0,be=y.length,Ee=[],Ke=S.length;if(!be)return Ee;M&&(S=Br(S,To(M))),I?(ie=qw,ue=!1):S.length>=i&&(ie=sg,ue=!1,S=new Pf(S));e:for(;++q<be;){var Ye=y[q],et=M==null?Ye:M(Ye);if(Ye=I||Ye!==0?Ye:0,ue&&et===et){for(var gt=Ke;gt--;)if(S[gt]===et)continue e;Ee.push(Ye)}else ie(S,et,I)||Ee.push(Ye)}return Ee}var td=u$(Pl),BI=u$(s8,!0);function rle(y,S){var M=!0;return td(y,function(I,q,ie){return M=!!S(I,q,ie),M}),M}function M_(y,S,M){for(var I=-1,q=y.length;++I<q;){var ie=y[I],ue=S(ie);if(ue!=null&&(be===n?ue===ue&&!Eo(ue):M(ue,be)))var be=ue,Ee=ie}return Ee}function ile(y,S,M,I){var q=y.length;for(M=cn(M),M<0&&(M=-M>q?0:q+M),I=I===n||I>q?q:cn(I),I<0&&(I+=q),I=M>I?0:eL(I);M<I;)y[M++]=S;return y}function FI(y,S){var M=[];return td(y,function(I,q,ie){S(I,q,ie)&&M.push(I)}),M}function Ki(y,S,M,I,q){var ie=-1,ue=y.length;for(M||(M=Wle),q||(q=[]);++ie<ue;){var be=y[ie];S>0&&M(be)?S>1?Ki(be,S-1,M,I,q):Jc(q,be):I||(q[q.length]=be)}return q}var o8=c$(),zI=c$(!0);function Pl(y,S){return y&&o8(y,S,Fi)}function s8(y,S){return y&&zI(y,S,Fi)}function A_(y,S){return Xc(S,function(M){return ku(y[M])})}function If(y,S){S=rd(S,y);for(var M=0,I=S.length;y!=null&&M<I;)y=y[Zs(S[M++])];return M&&M==I?y:n}function NI(y,S,M){var I=S(y);return sn(y)?I:Jc(I,M(y))}function Aa(y){return y==null?y===n?he:ve:Mf&&Mf in pr(y)?Nle(y):Qle(y)}function l8(y,S){return y>S}function ale(y,S){return y!=null&&ir.call(y,S)}function ole(y,S){return y!=null&&S in pr(y)}function sle(y,S,M){return y>=ma(S,M)&&y<ki(S,M)}function u8(y,S,M){for(var I=M?qw:c_,q=y[0].length,ie=y.length,ue=ie,be=Ne(ie),Ee=1/0,Ke=[];ue--;){var Ye=y[ue];ue&&S&&(Ye=Br(Ye,To(S))),Ee=ma(Ye.length,Ee),be[ue]=!M&&(S||q>=120&&Ye.length>=120)?new Pf(ue&&Ye):n}Ye=y[0];var et=-1,gt=be[0];e:for(;++et<q&&Ke.length<Ee;){var Rt=Ye[et],Wt=S?S(Rt):Rt;if(Rt=M||Rt!==0?Rt:0,!(gt?sg(gt,Wt):I(Ke,Wt,M))){for(ue=ie;--ue;){var gn=be[ue];if(!(gn?sg(gn,Wt):I(y[ue],Wt,M)))continue e}gt&>.push(Wt),Ke.push(Rt)}}return Ke}function lle(y,S,M,I){return Pl(y,function(q,ie,ue){S(I,M(q),ie,ue)}),I}function mg(y,S,M){S=rd(S,y),y=E$(y,S);var I=y==null?y:y[Zs(us(S))];return I==null?n:So(I,y,M)}function VI(y){return Xr(y)&&Aa(y)==ke}function ule(y){return Xr(y)&&Aa(y)==qe}function cle(y){return Xr(y)&&Aa(y)==Pe}function gg(y,S,M,I,q){return y===S?!0:y==null||S==null||!Xr(y)&&!Xr(S)?y!==y&&S!==S:dle(y,S,M,I,gg,q)}function dle(y,S,M,I,q,ie){var ue=sn(y),be=sn(S),Ee=ue?Ve:ga(y),Ke=be?Ve:ga(S);Ee=Ee==ke?X:Ee,Ke=Ke==ke?X:Ke;var Ye=Ee==X,et=Ke==X,gt=Ee==Ke;if(gt&&ad(y)){if(!ad(S))return!1;ue=!0,Ye=!1}if(gt&&!Ye)return ie||(ie=new Gs),ue||u0(y)?b$(y,S,M,I,q,ie):Fle(y,S,Ee,M,I,q,ie);
vendor: 5,139 bytes, line 963
963if(!(M&g)){var Rt=Ye&&ir.call(y,"__wrapped__"),Wt=et&&ir.call(S,"__wrapped__");if(Rt||Wt){var gn=Rt?y.value():y,Ut=Wt?S.value():S;return ie||(ie=new Gs),q(gn,Ut,M,I,ie)}}return gt?(ie||(ie=new Gs),zle(y,S,M,I,q,ie)):!1}function fle(y){return Xr(y)&&ga(y)==ye}function c8(y,S,M,I){var q=M.length,ie=q,ue=!I;if(y==null)return!ie;for(y=pr(y);q--;){var be=M[q];if(ue&&be[2]?be[1]!==y[be[0]]:!(be[0]in y))return!1}for(;++q<ie;){be=M[q];var Ee=be[0],Ke=y[Ee],Ye=be[1];if(ue&&be[2]){if(Ke===n&&!(Ee in y))return!1}else{var et=new Gs;if(I)var gt=I(Ke,Ye,Ee,y,S,et);if(!(gt===n?gg(Ye,Ke,g|v,I,et):gt))return!1}}return!0}function jI(y){if(!jr(y)||Zle(y))return!1;var S=ku(y)?fse:Qv;return S.test(Lf(y))}function hle(y){return Xr(y)&&Aa(y)==_e}function ple(y){return Xr(y)&&ga(y)==ge}function mle(y){return Xr(y)&&W_(y.length)&&!!Jn[Aa(y)]}function UI(y){return typeof y=="function"?y:y==null?eo:typeof y=="object"?sn(y)?WI(y[0],y[1]):qI(y):fL(y)}function d8(y){if(!_g(y))return vse(y);var S=[];for(var M in pr(y))ir.call(y,M)&&M!="constructor"&&S.push(M);return S}function gle(y){if(!jr(y))return Jle(y);var S=_g(y),M=[];for(var I in y)I=="constructor"&&(S||!ir.call(y,I))||M.push(I);return M}function f8(y,S){return y<S}function HI(y,S){var M=-1,I=Ja(y)?Ne(y.length):[];return td(y,function(q,ie,ue){I[++M]=S(q,ie,ue)}),I}function qI(y){var S=E8(y);return S.length==1&&S[0][2]?T$(S[0][0],S[0][1]):function(M){return M===y||c8(M,y,S)}}function WI(y,S){return A8(y)&&C$(S)?T$(Zs(y),S):function(M){var I=N8(M,y);return I===n&&I===S?V8(M,y):gg(S,I,g|v)}}function P_(y,S,M,I,q){y!==S&&o8(S,function(ie,ue){if(q||(q=new Gs),jr(ie))yle(y,S,ue,M,P_,I,q);else{var be=I?I(D8(y,ue),ie,ue+"",y,S,q):n;be===n&&(be=ie),i8(y,ue,be)}},Qa)}function yle(y,S,M,I,q,ie,ue){var be=D8(y,M),Ee=D8(S,M),Ke=ue.get(Ee);if(Ke){i8(y,M,Ke);return}var Ye=ie?ie(be,Ee,M+"",y,S,ue):n,et=Ye===n;if(et){var gt=sn(Ee),Rt=!gt&&ad(Ee),Wt=!gt&&!Rt&&u0(Ee);Ye=Ee,gt||Rt||Wt?sn(be)?Ye=be:si(be)?Ye=Xa(be):Rt?(et=!1,Ye=i$(Ee,!0)):Wt?(et=!1,Ye=a$(Ee,!0)):Ye=[]:xg(Ee)||Rf(Ee)?(Ye=be,Rf(be)?Ye=tL(be):(!jr(be)||ku(be))&&(Ye=S$(Ee))):et=!1}et&&(ue.set(Ee,Ye),q(Ye,Ee,I,ie,ue),ue.delete(Ee)),i8(y,M,Ye)}function GI(y,S){var M=y.length;if(M)return S+=S<0?M:0,Tu(S,M)?y[S]:n}function ZI(y,S,M){S.length?S=Br(S,function(ie){return sn(ie)?function(ue){return If(ue,ie.length===1?ie[0]:ie)}:ie}):S=[eo];var I=-1;S=Br(S,To(Ht()));var q=HI(y,function(ie,ue,be){var Ee=Br(S,function(Ke){return Ke(ie)});return{criteria:Ee,index:++I,value:ie}});return Hoe(q,function(ie,ue){return Ple(ie,ue,M)})}function vle(y,S){return KI(y,S,function(M,I){return V8(y,I)})}function KI(y,S,M){for(var I=-1,q=S.length,ie={};++I<q;){var ue=S[I],be=If(y,ue);M(be,ue)&&yg(ie,rd(ue,y),be)}return ie}function _le(y){return function(S){return If(S,y)}}function h8(y,S,M,I){var q=I?Uoe:Jp,ie=-1,ue=S.length,be=y;for(y===S&&(S=Xa(S)),M&&(be=Br(y,To(M)));++ie<ue;)for(var Ee=0,Ke=S[ie],Ye=M?M(Ke):Ke;(Ee=q(be,Ye,Ee,I))>-1;)be!==y&&b_.call(be,Ee,1),b_.call(y,Ee,1);return y}function YI(y,S){for(var M=y?S.length:0,I=M-1;M--;){var q=S[M];if(M==I||q!==ie){var ie=q;Tu(q)?b_.call(y,q,1):y8(y,q)}}return y}function p8(y,S){return y+S_(PI()*(S-y+1))}function ble(y,S,M,I){for(var q=-1,ie=ki(w_((S-y)/(M||1)),0),ue=Ne(ie);ie--;)ue[I?ie:++q]=y,y+=M;return ue}function m8(y,S){var M="";if(!y||S<1||S>Z)return M;do S%2&&(M+=y),S=S_(S/2),S&&(y+=y);while(S);return M}function _n(y,S){return I8(k$(y,S,eo),y+"")}function xle(y){return $I(c0(y))}function wle(y,S){var M=c0(y);return N_(M,Df(S,0,M.length))}function yg(y,S,M,I){if(!jr(y))return y;S=rd(S,y);for(var q=-1,ie=S.length,ue=ie-1,be=y;be!=null&&++q<ie;){var Ee=Zs(S[q]),Ke=M;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return y;if(q!=ue){var Ye=be[Ee];Ke=I?I(Ye,Ee,be):n,Ke===n&&(Ke=jr(Ye)?Ye:Tu(S[q+1])?[]:{})}hg(be,Ee,Ke),be=be[Ee]}return y}var XI=C_?function(y,S){return C_.set(y,S),y}:eo,Sle=x_?function(y,S){return x_(y,"toString",{configurable:!0,enumerable:!1,value:U8(S),writable:!0})}:eo;function Cle(y){return N_(c0(y))}function ls(y,S,M){var I=-1,q=y.length;S<0&&(S=-S>q?0:q+S),M=M>q?q:M,M<0&&(M+=q),q=S>M?0:M-S>>>0,S>>>=0;for(var ie=Ne(q);++I<q;)ie[I]=y[I+S];return ie}function Tle(y,S){var M;return td(y,function(I,q,ie){return M=S(I,q,ie),!M}),!!M}function D_(y,S,M){var I=0,q=y==null?I:y.length;if(typeof S=="number"&&S===S&&q<=Ue){for(;I<q;){var ie=I+q>>>1,ue=y[ie];ue!==null&&!Eo(ue)&&(M?ue<=S:ue<S)?I=ie+1:q=ie}return q}return g8(y,S,eo,M)}function g8(y,S,M,I){var q=0,ie=y==null?0:y.length;if(ie===0)return 0;S=M(S);for(var ue=S!==S,be=S===null,Ee=Eo(S),Ke=S===n;q<ie;){var Ye=S_((q+ie)/2),et=M(y[Ye]),gt=et!==n,Rt=et===null,Wt=et===et,gn=Eo(et);if(ue)var Ut=I||Wt;else Ke?Ut=Wt&&(I||gt):be?Ut=Wt&>&&(I||!Rt):Ee?Ut=Wt&>&&!Rt&&(I||!gn):Rt||gn?Ut=!1:Ut=I?et<=S:et<S;Ut?q=Ye+1:ie=Ye}return ma(ie,Re)}function JI(y,S){for(var M=-1,I=y.length,q=0,ie=[];++M<I;){var ue=y[M],be=S?S(ue):ue;if(!M||!Ks(be,Ee)){var Ee=be;ie[q++]=ue===0?0:ue}}return ie}function QI(y){return typeof y=="number"?y:Eo(y)?se:+y}function ko(y){if(typeof y=="string")return y;if(sn(y))return Br(y,ko)+"";if(Eo(y))return DI?DI.call(y):"";var S=y+"";return S=="0"&&1/y==-K?"-0":S}
vendor: 10,030 bytes, line 963
963function nd(y,S,M){var I=-1,q=c_,ie=y.length,ue=!0,be=[],Ee=be;if(M)ue=!1,q=qw;else if(ie>=i){var Ke=S?null:Ole(y);if(Ke)return f_(Ke);ue=!1,q=sg,Ee=new Pf}else Ee=S?[]:be;e:for(;++I<ie;){var Ye=y[I],et=S?S(Ye):Ye;if(Ye=M||Ye!==0?Ye:0,ue&&et===et){for(var gt=Ee.length;gt--;)if(Ee[gt]===et)continue e;S&&Ee.push(et),be.push(Ye)}else q(Ee,et,M)||(Ee!==be&&Ee.push(et),be.push(Ye))}return be}function y8(y,S){S=rd(S,y);var M=-1,I=S.length;if(!I)return!0;for(;++M<I;){var q=Zs(S[M]);if(q==="__proto__"&&!ir.call(y,"__proto__")||(q==="constructor"||q==="prototype")&&M<I-1)return!1}var ie=E$(y,S);return ie==null||delete ie[Zs(us(S))]}function e$(y,S,M,I){return yg(y,S,M(If(y,S)),I)}function I_(y,S,M,I){for(var q=y.length,ie=I?q:-1;(I?ie--:++ie<q)&&S(y[ie],ie,y););return M?ls(y,I?0:ie,I?ie+1:q):ls(y,I?ie+1:0,I?q:ie)}function t$(y,S){var M=y;return M instanceof kn&&(M=M.value()),Ww(S,function(I,q){return q.func.apply(q.thisArg,Jc([I],q.args))},M)}function v8(y,S,M){var I=y.length;if(I<2)return I?nd(y[0]):[];for(var q=-1,ie=Ne(I);++q<I;)for(var ue=y[q],be=-1;++be<I;)be!=q&&(ie[q]=pg(ie[q]||ue,y[be],S,M));return nd(Ki(ie,1),S,M)}function n$(y,S,M){for(var I=-1,q=y.length,ie=S.length,ue={};++I<q;){var be=I<ie?S[I]:n;M(ue,y[I],be)}return ue}function _8(y){return si(y)?y:[]}function b8(y){return typeof y=="function"?y:eo}function rd(y,S){return sn(y)?y:A8(y,S)?[y]:D$(ar(y))}var kle=_n;function id(y,S,M){var I=y.length;return M=M===n?I:M,!S&&M>=I?y:ls(y,S,M)}var r$=hse||function(y){return Qn.clearTimeout(y)};function i$(y,S){if(S)return y.slice();var M=y.length,I=TI?TI(M):new y.constructor(M);return y.copy(I),I}function x8(y){var S=new y.constructor(y.byteLength);return new v_(S).set(new v_(y)),S}function Ele(y,S){var M=S?x8(y.buffer):y.buffer;return new y.constructor(M,y.byteOffset,y.byteLength)}function Mle(y){var S=new y.constructor(y.source,bf.exec(y));return S.lastIndex=y.lastIndex,S}function Ale(y){return fg?pr(fg.call(y)):{}}function a$(y,S){var M=S?x8(y.buffer):y.buffer;return new y.constructor(M,y.byteOffset,y.length)}function o$(y,S){if(y!==S){var M=y!==n,I=y===null,q=y===y,ie=Eo(y),ue=S!==n,be=S===null,Ee=S===S,Ke=Eo(S);if(!be&&!Ke&&!ie&&y>S||ie&&ue&&Ee&&!be&&!Ke||I&&ue&&Ee||!M&&Ee||!q)return 1;if(!I&&!ie&&!Ke&&y<S||Ke&&M&&q&&!I&&!ie||be&&M&&q||!ue&&q||!Ee)return-1}return 0}function Ple(y,S,M){for(var I=-1,q=y.criteria,ie=S.criteria,ue=q.length,be=M.length;++I<ue;){var Ee=o$(q[I],ie[I]);if(Ee){if(I>=be)return Ee;var Ke=M[I];return Ee*(Ke=="desc"?-1:1)}}return y.index-S.index}function s$(y,S,M,I){for(var q=-1,ie=y.length,ue=M.length,be=-1,Ee=S.length,Ke=ki(ie-ue,0),Ye=Ne(Ee+Ke),et=!I;++be<Ee;)Ye[be]=S[be];for(;++q<ue;)(et||q<ie)&&(Ye[M[q]]=y[q]);for(;Ke--;)Ye[be++]=y[q++];return Ye}function l$(y,S,M,I){for(var q=-1,ie=y.length,ue=-1,be=M.length,Ee=-1,Ke=S.length,Ye=ki(ie-be,0),et=Ne(Ye+Ke),gt=!I;++q<Ye;)et[q]=y[q];for(var Rt=q;++Ee<Ke;)et[Rt+Ee]=S[Ee];for(;++ue<be;)(gt||q<ie)&&(et[Rt+M[ue]]=y[q++]);return et}function Xa(y,S){var M=-1,I=y.length;for(S||(S=Ne(I));++M<I;)S[M]=y[M];return S}function Dl(y,S,M,I){var q=!M;M||(M={});for(var ie=-1,ue=S.length;++ie<ue;){var be=S[ie],Ee=I?I(M[be],y[be],be,M,y):n;Ee===n&&(Ee=y[be]),q?Al(M,be,Ee):hg(M,be,Ee)}return M}function Dle(y,S){return Dl(y,M8(y),S)}function Ile(y,S){return Dl(y,x$(y),S)}function $_(y,S){return function(M,I){var q=sn(M)?Boe:ele,ie=S?S():{};return q(M,y,Ht(I,2),ie)}}function o0(y){return _n(function(S,M){var I=-1,q=M.length,ie=q>1?M[q-1]:n,ue=q>2?M[2]:n;for(ie=y.length>3&&typeof ie=="function"?(q--,ie):n,ue&&Pa(M[0],M[1],ue)&&(ie=q<3?n:ie,q=1),S=pr(S);++I<q;){var be=M[I];be&&y(S,be,I,ie)}return S})}function u$(y,S){return function(M,I){if(M==null)return M;if(!Ja(M))return y(M,I);for(var q=M.length,ie=S?q:-1,ue=pr(M);(S?ie--:++ie<q)&&I(ue[ie],ie,ue)!==!1;);return M}}function c$(y){return function(S,M,I){for(var q=-1,ie=pr(S),ue=I(S),be=ue.length;be--;){var Ee=ue[y?be:++q];if(M(ie[Ee],Ee,ie)===!1)break}return S}}function $le(y,S,M){var I=S&b,q=vg(y);function ie(){var ue=this&&this!==Qn&&this instanceof ie?q:y;return ue.apply(I?M:this,arguments)}return ie}function d$(y){return function(S){S=ar(S);var M=Qp(S)?Ws(S):n,I=M?M[0]:S.charAt(0),q=M?id(M,1).join(""):S.slice(1);return I[y]()+q}}function s0(y){return function(S){return Ww(cL(uL(S).replace(r_,"")),y,"")}}function vg(y){return function(){var S=arguments;switch(S.length){case 0:return new y;case 1:return new y(S[0]);case 2:return new y(S[0],S[1]);case 3:return new y(S[0],S[1],S[2]);case 4:return new y(S[0],S[1],S[2],S[3]);case 5:return new y(S[0],S[1],S[2],S[3],S[4]);case 6:return new y(S[0],S[1],S[2],S[3],S[4],S[5]);case 7:return new y(S[0],S[1],S[2],S[3],S[4],S[5],S[6])}var M=a0(y.prototype),I=y.apply(M,S);return jr(I)?I:M}}function Lle(y,S,M){var I=vg(y);function q(){for(var ie=arguments.length,ue=Ne(ie),be=ie,Ee=l0(q);be--;)ue[be]=arguments[be];var Ke=ie<3&&ue[0]!==Ee&&ue[ie-1]!==Ee?[]:Qc(ue,Ee);if(ie-=Ke.length,ie<M)return g$(y,S,L_,q.placeholder,n,ue,Ke,n,n,M-ie);var Ye=this&&this!==Qn&&this instanceof q?I:y;return So(Ye,this,ue)}return q}function f$(y){return function(S,M,I){var q=pr(S);if(!Ja(S)){var ie=Ht(M,3);S=Fi(S),M=function(be){return ie(q[be],be,q)}}var ue=y(S,M,I);return ue>-1?q[ie?S[ue]:ue]:n}}function h$(y){return Cu(function(S){var M=S.length,I=M,q=as.prototype.thru;for(y&&S.reverse();I--;){var ie=S[I];if(typeof ie!="function")throw new is(o);if(q&&!ue&&F_(ie)=="wrapper")var ue=new as([],!0)}for(I=ue?I:M;++I<M;){ie=S[I];var be=F_(ie),Ee=be=="wrapper"?k8(ie):n;Ee&&P8(Ee[0])&&Ee[1]==(A|w|T|P)&&!Ee[4].length&&Ee[9]==1?ue=ue[F_(Ee[0])].apply(ue,Ee[3]):ue=ie.length==1&&P8(ie)?ue[be]():ue.thru(ie)}return function(){var Ke=arguments,Ye=Ke[0];if(ue&&Ke.length==1&&sn(Ye))return ue.plant(Ye).value();for(var et=0,gt=M?S[et].apply(this,Ke):Ye;++et<M;)gt=S[et].call(this,gt);return gt}})}function L_(y,S,M,I,q,ie,ue,be,Ee,Ke){var Ye=S&A,et=S&b,gt=S&x,Rt=S&(w|C),Wt=S&D,gn=gt?n:vg(y);function Ut(){for(var wn=arguments.length,Pn=Ne(wn),Mo=wn;Mo--;)Pn[Mo]=arguments[Mo];if(Rt)var Da=l0(Ut),Ao=Woe(Pn,Da);if(I&&(Pn=s$(Pn,I,q,Rt)),ie&&(Pn=l$(Pn,ie,ue,Rt)),wn-=Ao,Rt&&wn<Ke){var li=Qc(Pn,Da);return g$(y,S,L_,Ut.placeholder,M,Pn,li,be,Ee,Ke-wn)}var Ys=et?M:this,Mu=gt?Ys[y]:y;return wn=Pn.length,be?Pn=eue(Pn,be):Wt&&wn>1&&Pn.reverse(),Ye&&Ee<wn&&(Pn.length=Ee),this&&this!==Qn&&this instanceof Ut&&(Mu=gn||vg(Mu)),Mu.apply(Ys,Pn)}return Ut}function p$(y,S){return function(M,I){return lle(M,y,S(I),{})}}function R_(y,S){return function(M,I){var q;if(M===n&&I===n)return S;if(M!==n&&(q=M),I!==n){if(q===n)return I;typeof M=="string"||typeof I=="string"?(M=ko(M),I=ko(I)):(M=QI(M),I=QI(I)),q=y(M,I)}return q}}function w8(y){return Cu(function(S){return S=Br(S,To(Ht())),_n(function(M){var I=this;return y(S,function(q){return So(q,I,M)})})})}function O_(y,S){S=S===n?" ":ko(S);var M=S.length;if(M<2)return M?m8(S,y):S;var I=m8(S,w_(y/e0(S)));return Qp(S)?id(Ws(I),0,y).join(""):I.slice(0,y)}function Rle(y,S,M,I){var q=S&b,ie=vg(y);function ue(){for(var be=-1,Ee=arguments.length,Ke=-1,Ye=I.length,et=Ne(Ye+Ee),gt=this&&this!==Qn&&this instanceof ue?ie:y;++Ke<Ye;)et[Ke]=I[Ke];for(;Ee--;)et[Ke++]=arguments[++be];return So(gt,q?M:this,et)}return ue}function m$(y){return function(S,M,I){return I&&typeof I!="number"&&Pa(S,M,I)&&(M=I=n),S=Eu(S),M===n?(M=S,S=0):M=Eu(M),I=I===n?S<M?1:-1:Eu(I),ble(S,M,I,y)}}function B_(y){return function(S,M){return typeof S=="string"&&typeof M=="string"||(S=cs(S),M=cs(M)),y(S,M)}}function g$(y,S,M,I,q,ie,ue,be,Ee,Ke){var Ye=S&w,et=Ye?ue:n,gt=Ye?n:ue,Rt=Ye?ie:n,Wt=Ye?n:ie;S|=Ye?T:k,S&=~(Ye?k:T),S&_||(S&=-4);var gn=[y,S,q,Rt,et,Wt,gt,be,Ee,Ke],Ut=M.apply(n,gn);return P8(y)&&M$(Ut,gn),Ut.placeholder=I,A$(Ut,y,S)}function S8(y){var S=Ti[y];return function(M,I){if(M=cs(M),I=I==null?0:ma(cn(I),292),I&&AI(M)){var q=(ar(M)+"e").split("e"),ie=S(q[0]+"e"+(+q[1]+I));return q=(ar(ie)+"e").split("e"),+(q[0]+"e"+(+q[1]-I))}return S(M)}}var Ole=r0&&1/f_(new r0([,-0]))[1]==K?function(y){return new r0(y)}:W8;function y$(y){return function(S){var M=ga(S);return M==ye?Qw(S):M==ge?Qoe(S):qoe(S,y(S))}}function Su(y,S,M,I,q,ie,ue,be){var Ee=S&x;if(!Ee&&typeof y!="function")throw new is(o);var Ke=I?I.length:0;if(Ke||(S&=-97,I=q=n),ue=ue===n?ue:ki(cn(ue),0),be=be===n?be:cn(be),Ke-=q?q.length:0,S&k){var Ye=I,et=q;I=q=n}var gt=Ee?n:k8(y),Rt=[y,S,M,I,q,Ye,et,ie,ue,be];if(gt&&Xle(Rt,gt),y=Rt[0],S=Rt[1],M=Rt[2],I=Rt[3],q=Rt[4],be=Rt[9]=Rt[9]===n?Ee?0:y.length:ki(Rt[9]-Ke,0),!be&&S&(w|C)&&(S&=-25),!S||S==b)var Wt=$le(y,S,M);else S==w||S==C?Wt=Lle(y,S,be):(S==T||S==(b|T))&&!q.length?Wt=Rle(y,S,M,I):Wt=L_.apply(n,Rt);var gn=gt?XI:M$;return A$(gn(Wt,Rt),y,S)}function v$(y,S,M,I){return y===n||Ks(y,n0[M])&&!ir.call(I,M)?S:y}function _$(y,S,M,I,q,ie){return jr(y)&&jr(S)&&(ie.set(S,y),P_(y,S,n,_$,ie),ie.delete(S)),y}function Ble(y){return xg(y)?n:y}function b$(y,S,M,I,q,ie){var ue=M&g,be=y.length,Ee=S.length;if(be!=Ee&&!(ue&&Ee>be))return!1;var Ke=ie.get(y),Ye=ie.get(S);if(Ke&&Ye)return Ke==S&&Ye==y;var et=-1,gt=!0,Rt=M&v?new Pf:n;for(ie.set(y,S),ie.set(S,y);++et<be;){var Wt=y[et],gn=S[et];if(I)var Ut=ue?I(gn,Wt,et,S,y,ie):I(Wt,gn,et,y,S,ie);if(Ut!==n){if(Ut)continue;gt=!1;break}if(Rt){if(!Gw(S,function(wn,Pn){if(!sg(Rt,Pn)&&(Wt===wn||q(Wt,wn,M,I,ie)))return Rt.push(Pn)})){gt=!1;break}}else if(!(Wt===gn||q(Wt,gn,M,I,ie))){gt=!1;break}}return ie.delete(y),ie.delete(S),gt}function Fle(y,S,M,I,q,ie,ue){switch(M){case lt:if(y.byteLength!=S.byteLength||y.byteOffset!=S.byteOffset)return!1;y=y.buffer,S=S.buffer;case qe:return!(y.byteLength!=S.byteLength||!ie(new v_(y),new v_(S)));case xe:case Pe:case Me:return Ks(+y,+S);case Fe:return y.name==S.name&&y.message==S.message;case _e:case Oe:return y==S+"";case ye:var be=Qw;case ge:var Ee=I&g;if(be||(be=f_),y.size!=S.size&&!Ee)return!1;var Ke=ue.get(y);if(Ke)return Ke==S;I|=v,ue.set(y,S);var Ye=b$(be(y),be(S),I,q,ie,ue);return ue.delete(y),Ye;case Se:if(fg)return fg.call(y)==fg.call(S)}return!1}function zle(y,S,M,I,q,ie){var ue=M&g,be=C8(y),Ee=be.length,Ke=C8(S),Ye=Ke.length;if(Ee!=Ye&&!ue)return!1;for(var et=Ee;et--;){var gt=be[et];
vendor: 5,612 bytes, lines 963-965
963if(!(ue?gt in S:ir.call(S,gt)))return!1}var Rt=ie.get(y),Wt=ie.get(S);if(Rt&&Wt)return Rt==S&&Wt==y;var gn=!0;ie.set(y,S),ie.set(S,y);for(var Ut=ue;++et<Ee;){gt=be[et];var wn=y[gt],Pn=S[gt];if(I)var Mo=ue?I(Pn,wn,gt,S,y,ie):I(wn,Pn,gt,y,S,ie);if(!(Mo===n?wn===Pn||q(wn,Pn,M,I,ie):Mo)){gn=!1;break}Ut||(Ut=gt=="constructor")}if(gn&&!Ut){var Da=y.constructor,Ao=S.constructor;Da!=Ao&&"constructor"in y&&"constructor"in S&&!(typeof Da=="function"&&Da instanceof Da&&typeof Ao=="function"&&Ao instanceof Ao)&&(gn=!1)}return ie.delete(y),ie.delete(S),gn}function Cu(y){return I8(k$(y,n,R$),y+"")}function C8(y){return NI(y,Fi,M8)}function T8(y){return NI(y,Qa,x$)}var k8=C_?function(y){return C_.get(y)}:W8;function F_(y){for(var S=y.name+"",M=i0[S],I=ir.call(i0,S)?M.length:0;I--;){var q=M[I],ie=q.func;if(ie==null||ie==y)return q.name}return S}function l0(y){var S=ir.call(te,"placeholder")?te:y;return S.placeholder}function Ht(){var y=te.iteratee||H8;return y=y===H8?UI:y,arguments.length?y(arguments[0],arguments[1]):y}function z_(y,S){var M=y.__data__;return Gle(S)?M[typeof S=="string"?"string":"hash"]:M.map}function E8(y){for(var S=Fi(y),M=S.length;M--;){var I=S[M],q=y[I];S[M]=[I,q,C$(q)]}return S}function $f(y,S){var M=Yoe(y,S);return jI(M)?M:n}function Nle(y){var S=ir.call(y,Mf),M=y[Mf];try{y[Mf]=n;var I=!0}catch{}var q=g_.call(y);return I&&(S?y[Mf]=M:delete y[Mf]),q}var M8=t8?function(y){return y==null?[]:(y=pr(y),Xc(t8(y),function(S){return EI.call(y,S)}))}:G8,x$=t8?function(y){for(var S=[];y;)Jc(S,M8(y)),y=__(y);return S}:G8,ga=Aa;(n8&&ga(new n8(new ArrayBuffer(1)))!=lt||ug&&ga(new ug)!=ye||r8&&ga(r8.resolve())!=ee||r0&&ga(new r0)!=ge||cg&&ga(new cg)!=Te)&&(ga=function(y){var S=Aa(y),M=S==X?y.constructor:n,I=M?Lf(M):"";if(I)switch(I){case wse:return lt;case Sse:return ye;case Cse:return ee;case Tse:return ge;case kse:return Te}return S});function Vle(y,S,M){for(var I=-1,q=M.length;++I<q;){var ie=M[I],ue=ie.size;switch(ie.type){case"drop":y+=ue;break;case"dropRight":S-=ue;break;case"take":S=ma(S,y+ue);break;case"takeRight":y=ki(y,S-ue);break}}return{start:y,end:S}}function jle(y){var S=y.match(jc);return S?S[1].split(V1):[]}function w$(y,S,M){S=rd(S,y);for(var I=-1,q=S.length,ie=!1;++I<q;){var ue=Zs(S[I]);if(!(ie=y!=null&&M(y,ue)))break;y=y[ue]}return ie||++I!=q?ie:(q=y==null?0:y.length,!!q&&W_(q)&&Tu(ue,q)&&(sn(y)||Rf(y)))}function Ule(y){var S=y.length,M=new y.constructor(S);return S&&typeof y[0]=="string"&&ir.call(y,"index")&&(M.index=y.index,M.input=y.input),M}function S$(y){return typeof y.constructor=="function"&&!_g(y)?a0(__(y)):{}}function Hle(y,S,M){var I=y.constructor;switch(S){case qe:return x8(y);case xe:case Pe:return new I(+y);case lt:return Ele(y,M);case bt:case fe:case pe:case De:case Ge:case ut:case it:case mt:case Be:return a$(y,M);case ye:return new I;case Me:case Oe:return new I(y);case _e:return Mle(y);case ge:return new I;case Se:return Ale(y)}}function qle(y,S){var M=S.length;if(!M)return y;var I=M-1;return S[I]=(M>1?"& ":"")+S[I],S=S.join(M>2?", ":" "),y.replace(Rp,`{ 964/* [wrapped with `+S+`] */ 965`)}function Wle(y){return sn(y)||Rf(y)||!!(MI&&y&&y[MI])}function Tu(y,S){var M=typeof y;return S=S??Z,!!S&&(M=="number"||M!="symbol"&&U1.test(y))&&y>-1&&y%1==0&&y<S}function Pa(y,S,M){if(!jr(M))return!1;var I=typeof S;return(I=="number"?Ja(M)&&Tu(S,M.length):I=="string"&&S in M)?Ks(M[S],y):!1}function A8(y,S){if(sn(y))return!1;var M=typeof y;return M=="number"||M=="symbol"||M=="boolean"||y==null||Eo(y)?!0:$p.test(y)||!Hs.test(y)||S!=null&&y in pr(S)}function Gle(y){var S=typeof y;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?y!=="__proto__":y===null}function P8(y){var S=F_(y),M=te[S];if(typeof M!="function"||!(S in kn.prototype))return!1;if(y===M)return!0;var I=k8(M);return!!I&&y===I[0]}function Zle(y){return!!CI&&CI in y}var Kle=p_?ku:Z8;function _g(y){var S=y&&y.constructor,M=typeof S=="function"&&S.prototype||n0;return y===M}function C$(y){return y===y&&!jr(y)}function T$(y,S){return function(M){return M==null?!1:M[y]===S&&(S!==n||y in pr(M))}}function Yle(y){var S=H_(y,function(I){return M.size===c&&M.clear(),I}),M=S.cache;return S}function Xle(y,S){var M=y[1],I=S[1],q=M|I,ie=q<(b|x|A),ue=I==A&&M==w||I==A&&M==P&&y[7].length<=S[8]||I==(A|P)&&S[7].length<=S[8]&&M==w;if(!(ie||ue))return y;I&b&&(y[2]=S[2],q|=M&b?0:_);var be=S[3];if(be){var Ee=y[3];y[3]=Ee?s$(Ee,be,S[4]):be,y[4]=Ee?Qc(y[3],d):S[4]}return be=S[5],be&&(Ee=y[5],y[5]=Ee?l$(Ee,be,S[6]):be,y[6]=Ee?Qc(y[5],d):S[6]),be=S[7],be&&(y[7]=be),I&A&&(y[8]=y[8]==null?S[8]:ma(y[8],S[8])),y[9]==null&&(y[9]=S[9]),y[0]=S[0],y[1]=q,y}function Jle(y){var S=[];if(y!=null)for(var M in pr(y))S.push(M);return S}function Qle(y){return g_.call(y)}function k$(y,S,M){return S=ki(S===n?y.length-1:S,0),function(){for(var I=arguments,q=-1,ie=ki(I.length-S,0),ue=Ne(ie);++q<ie;)ue[q]=I[S+q];q=-1;for(var be=Ne(S+1);++q<S;)be[q]=I[q];return be[S]=M(ue),So(y,this,be)}}function E$(y,S){return S.length<2?y:If(y,ls(S,0,-1))}function eue(y,S){for(var M=y.length,I=ma(S.length,M),q=Xa(y);I--;){var ie=S[I];y[I]=Tu(ie,M)?q[ie]:n}return y}function D8(y,S){if(!(S==="constructor"&&typeof y[S]=="function")&&S!="__proto__")return y[S]}var M$=P$(XI),bg=mse||function(y,S){return Qn.setTimeout(y,S)},I8=P$(Sle);function A$(y,S,M){var I=S+"";return I8(y,qle(I,tue(jle(I),M)))}function P$(y){var S=0,M=0;return function(){var I=_se(),q=j-(I-M);if(M=I,q>0){if(++S>=z)return arguments[0]}else S=0;return y.apply(n,arguments)}}function N_(y,S){var M=-1,I=y.length,q=I-1;for(S=S===n?I:S;++M<S;){var ie=p8(M,q),ue=y[ie];y[ie]=y[M],y[M]=ue}return y.length=S,y}var D$=Yle(function(y){var S=[];
vendor: 4,634 bytes, line 965
965return y.charCodeAt(0)===46&&S.push(""),y.replace(yu,function(M,I,q,ie){S.push(q?ie.replace(Uw,"$1"):I||M)}),S});function Zs(y){if(typeof y=="string"||Eo(y))return y;var S=y+"";return S=="0"&&1/y==-K?"-0":S}function Lf(y){if(y!=null){try{return m_.call(y)}catch{}try{return y+""}catch{}}return""}function tue(y,S){return Co($e,function(M){var I="_."+M[0];S&M[1]&&!c_(y,I)&&y.push(I)}),y.sort()}function I$(y){if(y instanceof kn)return y.clone();var S=new as(y.__wrapped__,y.__chain__);return S.__actions__=Xa(y.__actions__),S.__index__=y.__index__,S.__values__=y.__values__,S}function nue(y,S,M){(M?Pa(y,S,M):S===n)?S=1:S=ki(cn(S),0);var I=y==null?0:y.length;if(!I||S<1)return[];for(var q=0,ie=0,ue=Ne(w_(I/S));q<I;)ue[ie++]=ls(y,q,q+=S);return ue}function rue(y){for(var S=-1,M=y==null?0:y.length,I=0,q=[];++S<M;){var ie=y[S];ie&&(q[I++]=ie)}return q}function iue(){var y=arguments.length;if(!y)return[];for(var S=Ne(y-1),M=arguments[0],I=y;I--;)S[I-1]=arguments[I];return Jc(sn(M)?Xa(M):[M],Ki(S,1))}var aue=_n(function(y,S){return si(y)?pg(y,Ki(S,1,si,!0)):[]}),oue=_n(function(y,S){var M=us(S);return si(M)&&(M=n),si(y)?pg(y,Ki(S,1,si,!0),Ht(M,2)):[]}),sue=_n(function(y,S){var M=us(S);return si(M)&&(M=n),si(y)?pg(y,Ki(S,1,si,!0),n,M):[]});function lue(y,S,M){var I=y==null?0:y.length;return I?(S=M||S===n?1:cn(S),ls(y,S<0?0:S,I)):[]}function uue(y,S,M){var I=y==null?0:y.length;return I?(S=M||S===n?1:cn(S),S=I-S,ls(y,0,S<0?0:S)):[]}function cue(y,S){return y&&y.length?I_(y,Ht(S,3),!0,!0):[]}function due(y,S){return y&&y.length?I_(y,Ht(S,3),!0):[]}function fue(y,S,M,I){var q=y==null?0:y.length;return q?(M&&typeof M!="number"&&Pa(y,S,M)&&(M=0,I=q),ile(y,S,M,I)):[]}function $$(y,S,M){var I=y==null?0:y.length;if(!I)return-1;var q=M==null?0:cn(M);return q<0&&(q=ki(I+q,0)),d_(y,Ht(S,3),q)}function L$(y,S,M){var I=y==null?0:y.length;if(!I)return-1;var q=I-1;return M!==n&&(q=cn(M),q=M<0?ki(I+q,0):ma(q,I-1)),d_(y,Ht(S,3),q,!0)}function R$(y){var S=y==null?0:y.length;return S?Ki(y,1):[]}function hue(y){var S=y==null?0:y.length;return S?Ki(y,K):[]}function pue(y,S){var M=y==null?0:y.length;return M?(S=S===n?1:cn(S),Ki(y,S)):[]}function mue(y){for(var S=-1,M=y==null?0:y.length,I={};++S<M;){var q=y[S];Al(I,q[0],q[1])}return I}function O$(y){return y&&y.length?y[0]:n}function gue(y,S,M){var I=y==null?0:y.length;if(!I)return-1;var q=M==null?0:cn(M);return q<0&&(q=ki(I+q,0)),Jp(y,S,q)}function yue(y){var S=y==null?0:y.length;return S?ls(y,0,-1):[]}var vue=_n(function(y){var S=Br(y,_8);return S.length&&S[0]===y[0]?u8(S):[]}),_ue=_n(function(y){var S=us(y),M=Br(y,_8);return S===us(M)?S=n:M.pop(),M.length&&M[0]===y[0]?u8(M,Ht(S,2)):[]}),bue=_n(function(y){var S=us(y),M=Br(y,_8);return S=typeof S=="function"?S:n,S&&M.pop(),M.length&&M[0]===y[0]?u8(M,n,S):[]});function xue(y,S){return y==null?"":yse.call(y,S)}function us(y){var S=y==null?0:y.length;return S?y[S-1]:n}function wue(y,S,M){var I=y==null?0:y.length;if(!I)return-1;var q=I;return M!==n&&(q=cn(M),q=q<0?ki(I+q,0):ma(q,I-1)),S===S?tse(y,S,q):d_(y,gI,q,!0)}function Sue(y,S){return y&&y.length?GI(y,cn(S)):n}var Cue=_n(B$);function B$(y,S){return y&&y.length&&S&&S.length?h8(y,S):y}function Tue(y,S,M){return y&&y.length&&S&&S.length?h8(y,S,Ht(M,2)):y}function kue(y,S,M){return y&&y.length&&S&&S.length?h8(y,S,n,M):y}var Eue=Cu(function(y,S){var M=y==null?0:y.length,I=a8(y,S);return YI(y,Br(S,function(q){return Tu(q,M)?+q:q}).sort(o$)),I});function Mue(y,S){var M=[];if(!(y&&y.length))return M;var I=-1,q=[],ie=y.length;for(S=Ht(S,3);++I<ie;){var ue=y[I];S(ue,I,y)&&(M.push(ue),q.push(I))}return YI(y,q),M}function $8(y){return y==null?y:xse.call(y)}function Aue(y,S,M){var I=y==null?0:y.length;return I?(M&&typeof M!="number"&&Pa(y,S,M)?(S=0,M=I):(S=S==null?0:cn(S),M=M===n?I:cn(M)),ls(y,S,M)):[]}function Pue(y,S){return D_(y,S)}function Due(y,S,M){return g8(y,S,Ht(M,2))}function Iue(y,S){var M=y==null?0:y.length;if(M){var I=D_(y,S);if(I<M&&Ks(y[I],S))return I}return-1}function $ue(y,S){return D_(y,S,!0)}function Lue(y,S,M){return g8(y,S,Ht(M,2),!0)}function Rue(y,S){var M=y==null?0:y.length;if(M){var I=D_(y,S,!0)-1;if(Ks(y[I],S))return I}return-1}function Oue(y){return y&&y.length?JI(y):[]}function Bue(y,S){return y&&y.length?JI(y,Ht(S,2)):[]}function Fue(y){var S=y==null?0:y.length;return S?ls(y,1,S):[]}function zue(y,S,M){return y&&y.length?(S=M||S===n?1:cn(S),ls(y,0,S<0?0:S)):[]}function Nue(y,S,M){var I=y==null?0:y.length;return I?(S=M||S===n?1:cn(S),S=I-S,ls(y,S<0?0:S,I)):[]}function Vue(y,S){return y&&y.length?I_(y,Ht(S,3),!1,!0):[]}function jue(y,S){return y&&y.length?I_(y,Ht(S,3)):[]}var Uue=_n(function(y){return nd(Ki(y,1,si,!0))}
vendor: 7,378 bytes, line 965
965),Hue=_n(function(y){var S=us(y);return si(S)&&(S=n),nd(Ki(y,1,si,!0),Ht(S,2))}),que=_n(function(y){var S=us(y);return S=typeof S=="function"?S:n,nd(Ki(y,1,si,!0),n,S)});function Wue(y){return y&&y.length?nd(y):[]}function Gue(y,S){return y&&y.length?nd(y,Ht(S,2)):[]}function Zue(y,S){return S=typeof S=="function"?S:n,y&&y.length?nd(y,n,S):[]}function L8(y){if(!(y&&y.length))return[];var S=0;return y=Xc(y,function(M){if(si(M))return S=ki(M.length,S),!0}),Xw(S,function(M){return Br(y,Zw(M))})}function F$(y,S){if(!(y&&y.length))return[];var M=L8(y);return S==null?M:Br(M,function(I){return So(S,n,I)})}var Kue=_n(function(y,S){return si(y)?pg(y,S):[]}),Yue=_n(function(y){return v8(Xc(y,si))}),Xue=_n(function(y){var S=us(y);return si(S)&&(S=n),v8(Xc(y,si),Ht(S,2))}),Jue=_n(function(y){var S=us(y);return S=typeof S=="function"?S:n,v8(Xc(y,si),n,S)}),Que=_n(L8);function ece(y,S){return n$(y||[],S||[],hg)}function tce(y,S){return n$(y||[],S||[],yg)}var nce=_n(function(y){var S=y.length,M=S>1?y[S-1]:n;return M=typeof M=="function"?(y.pop(),M):n,F$(y,M)});function z$(y){var S=te(y);return S.__chain__=!0,S}function rce(y,S){return S(y),y}function V_(y,S){return S(y)}var ice=Cu(function(y){var S=y.length,M=S?y[0]:0,I=this.__wrapped__,q=function(ie){return a8(ie,y)};return S>1||this.__actions__.length||!(I instanceof kn)||!Tu(M)?this.thru(q):(I=I.slice(M,+M+(S?1:0)),I.__actions__.push({func:V_,args:[q],thisArg:n}),new as(I,this.__chain__).thru(function(ie){return S&&!ie.length&&ie.push(n),ie}))});function ace(){return z$(this)}function oce(){return new as(this.value(),this.__chain__)}function sce(){this.__values__===n&&(this.__values__=Q$(this.value()));var y=this.__index__>=this.__values__.length,S=y?n:this.__values__[this.__index__++];return{done:y,value:S}}function lce(){return this}function uce(y){for(var S,M=this;M instanceof k_;){var I=I$(M);I.__index__=0,I.__values__=n,S?q.__wrapped__=I:S=I;var q=I;M=M.__wrapped__}return q.__wrapped__=y,S}function cce(){var y=this.__wrapped__;if(y instanceof kn){var S=y;return this.__actions__.length&&(S=new kn(this)),S=S.reverse(),S.__actions__.push({func:V_,args:[$8],thisArg:n}),new as(S,this.__chain__)}return this.thru($8)}function dce(){return t$(this.__wrapped__,this.__actions__)}var fce=$_(function(y,S,M){ir.call(y,M)?++y[M]:Al(y,M,1)});function hce(y,S,M){var I=sn(y)?pI:rle;return M&&Pa(y,S,M)&&(S=n),I(y,Ht(S,3))}function pce(y,S){var M=sn(y)?Xc:FI;return M(y,Ht(S,3))}var mce=f$($$),gce=f$(L$);function yce(y,S){return Ki(j_(y,S),1)}function vce(y,S){return Ki(j_(y,S),K)}function _ce(y,S,M){return M=M===n?1:cn(M),Ki(j_(y,S),M)}function N$(y,S){var M=sn(y)?Co:td;return M(y,Ht(S,3))}function V$(y,S){var M=sn(y)?Foe:BI;return M(y,Ht(S,3))}var bce=$_(function(y,S,M){ir.call(y,M)?y[M].push(S):Al(y,M,[S])});function xce(y,S,M,I){y=Ja(y)?y:c0(y),M=M&&!I?cn(M):0;var q=y.length;return M<0&&(M=ki(q+M,0)),G_(y)?M<=q&&y.indexOf(S,M)>-1:!!q&&Jp(y,S,M)>-1}var wce=_n(function(y,S,M){var I=-1,q=typeof S=="function",ie=Ja(y)?Ne(y.length):[];return td(y,function(ue){ie[++I]=q?So(S,ue,M):mg(ue,S,M)}),ie}),Sce=$_(function(y,S,M){Al(y,M,S)});function j_(y,S){var M=sn(y)?Br:HI;return M(y,Ht(S,3))}function Cce(y,S,M,I){return y==null?[]:(sn(S)||(S=S==null?[]:[S]),M=I?n:M,sn(M)||(M=M==null?[]:[M]),ZI(y,S,M))}var Tce=$_(function(y,S,M){y[M?0:1].push(S)},function(){return[[],[]]});function kce(y,S,M){var I=sn(y)?Ww:vI,q=arguments.length<3;return I(y,Ht(S,4),M,q,td)}function Ece(y,S,M){var I=sn(y)?zoe:vI,q=arguments.length<3;return I(y,Ht(S,4),M,q,BI)}function Mce(y,S){var M=sn(y)?Xc:FI;return M(y,q_(Ht(S,3)))}function Ace(y){var S=sn(y)?$I:xle;return S(y)}function Pce(y,S,M){(M?Pa(y,S,M):S===n)?S=1:S=cn(S);var I=sn(y)?Jse:wle;return I(y,S)}function Dce(y){var S=sn(y)?Qse:Cle;return S(y)}function Ice(y){if(y==null)return 0;if(Ja(y))return G_(y)?e0(y):y.length;var S=ga(y);return S==ye||S==ge?y.size:d8(y).length}function $ce(y,S,M){var I=sn(y)?Gw:Tle;return M&&Pa(y,S,M)&&(S=n),I(y,Ht(S,3))}var Lce=_n(function(y,S){if(y==null)return[];var M=S.length;return M>1&&Pa(y,S[0],S[1])?S=[]:M>2&&Pa(S[0],S[1],S[2])&&(S=[S[0]]),ZI(y,Ki(S,1),[])}),U_=pse||function(){return Qn.Date.now()};function Rce(y,S){if(typeof S!="function")throw new is(o);return y=cn(y),function(){if(--y<1)return S.apply(this,arguments)}}function j$(y,S,M){return S=M?n:S,S=y&&S==null?y.length:S,Su(y,A,n,n,n,n,S)}function U$(y,S){var M;if(typeof S!="function")throw new is(o);return y=cn(y),function(){return--y>0&&(M=S.apply(this,arguments)),y<=1&&(S=n),M}}var R8=_n(function(y,S,M){var I=b;if(M.length){var q=Qc(M,l0(R8));I|=T}return Su(y,I,S,M,q)}),H$=_n(function(y,S,M){var I=b|x;if(M.length){var q=Qc(M,l0(H$));I|=T}return Su(S,I,y,M,q)});function q$(y,S,M){S=M?n:S;var I=Su(y,w,n,n,n,n,n,S);return I.placeholder=q$.placeholder,I}function W$(y,S,M){S=M?n:S;var I=Su(y,C,n,n,n,n,n,S);return I.placeholder=W$.placeholder,I}function G$(y,S,M){var I,q,ie,ue,be,Ee,Ke=0,Ye=!1,et=!1,gt=!0;if(typeof y!="function")throw new is(o);S=cs(S)||0,jr(M)&&(Ye=!!M.leading,et="maxWait"in M,ie=et?ki(cs(M.maxWait)||0,S):ie,gt="trailing"in M?!!M.trailing:gt);function Rt(li){var Ys=I,Mu=q;return I=q=n,Ke=li,ue=y.apply(Mu,Ys),ue}function Wt(li){return Ke=li,be=bg(wn,S),Ye?Rt(li):ue}function gn(li){var Ys=li-Ee,Mu=li-Ke,hL=S-Ys;return et?ma(hL,ie-Mu):hL}function Ut(li){var Ys=li-Ee,Mu=li-Ke;return Ee===n||Ys>=S||Ys<0||et&&Mu>=ie}function wn(){var li=U_();if(Ut(li))return Pn(li);be=bg(wn,gn(li))}function Pn(li){return be=n,gt&&I?Rt(li):(I=q=n,ue)}function Mo(){be!==n&&r$(be),Ke=0,I=Ee=q=be=n}function Da(){return be===n?ue:Pn(U_())}function Ao(){var li=U_(),Ys=Ut(li);if(I=arguments,q=this,Ee=li,Ys){if(be===n)return Wt(Ee);if(et)return r$(be),be=bg(wn,S),Rt(Ee)}return be===n&&(be=bg(wn,S)),ue}return Ao.cancel=Mo,Ao.flush=Da,Ao}var Oce=_n(function(y,S){return OI(y,1,S)}),Bce=_n(function(y,S,M){return OI(y,cs(S)||0,M)});function Fce(y){return Su(y,D)}function H_(y,S){if(typeof y!="function"||S!=null&&typeof S!="function")throw new is(o);var M=function(){var I=arguments,q=S?S.apply(this,I):I[0],ie=M.cache;if(ie.has(q))return ie.get(q);var ue=y.apply(this,I);return M.cache=ie.set(q,ue)||ie,ue};return M.cache=new(H_.Cache||wu),M}H_.Cache=wu;function q_(y){if(typeof y!="function")throw new is(o);return function(){var S=arguments;switch(S.length){case 0:return!y.call(this);case 1:return!y.call(this,S[0]);case 2:return!y.call(this,S[0],S[1]);case 3:return!y.call(this,S[0],S[1],S[2])}return!y.apply(this,S)}}function zce(y){return U$(2,y)}var Nce=kle(function(y,S){S=S.length==1&&sn(S[0])?Br(S[0],To(Ht())):Br(Ki(S,1),To(Ht()));var M=S.length;return _n(function(I){for(var q=-1,ie=ma(I.length,M);++q<ie;)I[q]=S[q].call(this,I[q]);return So(y,this,I)})}),O8=_n(function(y,S){var M=Qc(S,l0(O8));return Su(y,T,n,S,M)}),Z$=_n(function(y,S){var M=Qc(S,l0(Z$));return Su(y,k,n,S,M)}),Vce=Cu(function(y,S){return Su(y,P,n,n,n,S)});function jce(y,S){if(typeof y!="function")throw new is(o);return S=S===n?S:cn(S),_n(y,S)}function Uce(y,S){if(typeof y!="function")throw new is(o);return S=S==null?0:ki(cn(S),0),_n(function(M){var I=M[S],q=id(M,0,S);return I&&Jc(q,I),So(y,this,q)})}function Hce(y,S,M){var I=!0,q=!0;if(typeof y!="function")throw new is(o);return jr(M)&&(I="leading"in M?!!M.leading:I,q="trailing"in M?!!M.trailing:q),G$(y,S,{leading:I,maxWait:S,trailing:q})}function qce(y){return j$(y,1)}function Wce(y,S){return O8(b8(S),y)}
vendor: 9,636 bytes, lines 965-982
965function Gce(){if(!arguments.length)return[];var y=arguments[0];return sn(y)?y:[y]}function Zce(y){return ss(y,p)}function Kce(y,S){return S=typeof S=="function"?S:n,ss(y,p,S)}function Yce(y){return ss(y,f|p)}function Xce(y,S){return S=typeof S=="function"?S:n,ss(y,f|p,S)}function Jce(y,S){return S==null||RI(y,S,Fi(S))}function Ks(y,S){return y===S||y!==y&&S!==S}var Qce=B_(l8),ede=B_(function(y,S){return y>=S}),Rf=VI((function(){return arguments})())?VI:function(y){return Xr(y)&&ir.call(y,"callee")&&!EI.call(y,"callee")},sn=Ne.isArray,tde=Gi?To(Gi):ule;function Ja(y){return y!=null&&W_(y.length)&&!ku(y)}function si(y){return Xr(y)&&Ja(y)}function nde(y){return y===!0||y===!1||Xr(y)&&Aa(y)==xe}var ad=gse||Z8,rde=Ya?To(Ya):cle;function ide(y){return Xr(y)&&y.nodeType===1&&!xg(y)}function ade(y){if(y==null)return!0;if(Ja(y)&&(sn(y)||typeof y=="string"||typeof y.splice=="function"||ad(y)||u0(y)||Rf(y)))return!y.length;var S=ga(y);if(S==ye||S==ge)return!y.size;if(_g(y))return!d8(y).length;for(var M in y)if(ir.call(y,M))return!1;return!0}function ode(y,S){return gg(y,S)}function sde(y,S,M){M=typeof M=="function"?M:n;var I=M?M(y,S):n;return I===n?gg(y,S,n,M):!!I}function B8(y){if(!Xr(y))return!1;var S=Aa(y);return S==Fe||S==je||typeof y.message=="string"&&typeof y.name=="string"&&!xg(y)}function lde(y){return typeof y=="number"&&AI(y)}function ku(y){if(!jr(y))return!1;var S=Aa(y);return S==re||S==le||S==nt||S==oe}function K$(y){return typeof y=="number"&&y==cn(y)}function W_(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=Z}function jr(y){var S=typeof y;return y!=null&&(S=="object"||S=="function")}function Xr(y){return y!=null&&typeof y=="object"}var Y$=Zi?To(Zi):fle;function ude(y,S){return y===S||c8(y,S,E8(S))}function cde(y,S,M){return M=typeof M=="function"?M:n,c8(y,S,E8(S),M)}function dde(y){return X$(y)&&y!=+y}function fde(y){if(Kle(y))throw new en(a);return jI(y)}function hde(y){return y===null}function pde(y){return y==null}function X$(y){return typeof y=="number"||Xr(y)&&Aa(y)==Me}function xg(y){if(!Xr(y)||Aa(y)!=X)return!1;var S=__(y);if(S===null)return!0;var M=ir.call(S,"constructor")&&S.constructor;return typeof M=="function"&&M instanceof M&&m_.call(M)==cse}var F8=qs?To(qs):hle;function mde(y){return K$(y)&&y>=-Z&&y<=Z}var J$=og?To(og):ple;function G_(y){return typeof y=="string"||!sn(y)&&Xr(y)&&Aa(y)==Oe}function Eo(y){return typeof y=="symbol"||Xr(y)&&Aa(y)==Se}var u0=hI?To(hI):mle;function gde(y){return y===n}function yde(y){return Xr(y)&&ga(y)==Te}function vde(y){return Xr(y)&&Aa(y)==ze}var _de=B_(f8),bde=B_(function(y,S){return y<=S});function Q$(y){if(!y)return[];if(Ja(y))return G_(y)?Ws(y):Xa(y);if(lg&&y[lg])return Joe(y[lg]());var S=ga(y),M=S==ye?Qw:S==ge?f_:c0;return M(y)}function Eu(y){if(!y)return y===0?y:0;if(y=cs(y),y===K||y===-K){var S=y<0?-1:1;return S*ne}return y===y?y:0}function cn(y){var S=Eu(y),M=S%1;return S===S?M?S-M:S:0}function eL(y){return y?Df(cn(y),0,ce):0}function cs(y){if(typeof y=="number")return y;if(Eo(y))return se;if(jr(y)){var S=typeof y.valueOf=="function"?y.valueOf():y;y=jr(S)?S+"":S}if(typeof y!="string")return y===0?y:+y;y=_I(y);var M=Hw.test(y);return M||Bp.test(y)?u_(y.slice(2),M?2:8):j1.test(y)?se:+y}function tL(y){return Dl(y,Qa(y))}function xde(y){return y?Df(cn(y),-Z,Z):y===0?y:0}function ar(y){return y==null?"":ko(y)}var wde=o0(function(y,S){if(_g(S)||Ja(S)){Dl(S,Fi(S),y);return}for(var M in S)ir.call(S,M)&&hg(y,M,S[M])}),nL=o0(function(y,S){Dl(S,Qa(S),y)}),rL=o0(function(y,S,M,I){Dl(S,Qa(S),y,I)}),z8=o0(function(y,S,M,I){Dl(S,Fi(S),y,I)}),Sde=Cu(a8);function Cde(y,S){var M=a0(y);return S==null?M:LI(M,S)}var Tde=_n(function(y,S){y=pr(y);var M=-1,I=S.length,q=I>2?S[2]:n;for(q&&Pa(S[0],S[1],q)&&(I=1);++M<I;)for(var ie=S[M],ue=Qa(ie),be=-1,Ee=ue.length;++be<Ee;){var Ke=ue[be],Ye=y[Ke];(Ye===n||Ks(Ye,n0[Ke])&&!ir.call(y,Ke))&&(y[Ke]=ie[Ke])}return y}),kde=_n(function(y){return y.push(n,_$),So(iL,n,y)});function Ede(y,S){return mI(y,Ht(S,3),Pl)}function Mde(y,S){return mI(y,Ht(S,3),s8)}function Ade(y,S){return y==null?y:o8(y,Ht(S,3),Qa)}function Pde(y,S){return y==null?y:zI(y,Ht(S,3),Qa)}function Dde(y,S){return y&&Pl(y,Ht(S,3))}function Ide(y,S){return y&&s8(y,Ht(S,3))}function $de(y){return y==null?[]:A_(y,Fi(y))}function Lde(y){return y==null?[]:A_(y,Qa(y))}function N8(y,S,M){var I=y==null?n:If(y,S);return I===n?M:I}function Rde(y,S){return y!=null&&w$(y,S,ale)}function V8(y,S){return y!=null&&w$(y,S,ole)}var Ode=p$(function(y,S,M){S!=null&&typeof S.toString!="function"&&(S=g_.call(S)),y[S]=M},U8(eo)),Bde=p$(function(y,S,M){S!=null&&typeof S.toString!="function"&&(S=g_.call(S)),ir.call(y,S)?y[S].push(M):y[S]=[M]},Ht),Fde=_n(mg);function Fi(y){return Ja(y)?II(y):d8(y)}function Qa(y){return Ja(y)?II(y,!0):gle(y)}function zde(y,S){var M={};return S=Ht(S,3),Pl(y,function(I,q,ie){Al(M,S(I,q,ie),I)}),M}function Nde(y,S){var M={};return S=Ht(S,3),Pl(y,function(I,q,ie){Al(M,q,S(I,q,ie))}),M}var Vde=o0(function(y,S,M){P_(y,S,M)}),iL=o0(function(y,S,M,I){P_(y,S,M,I)}),jde=Cu(function(y,S){var M={};if(y==null)return M;var I=!1;S=Br(S,function(ie){return ie=rd(ie,y),I||(I=ie.length>1),ie}),Dl(y,T8(y),M),I&&(M=ss(M,f|h|p,Ble));for(var q=S.length;q--;)y8(M,S[q]);return M});function Ude(y,S){return aL(y,q_(Ht(S)))}var Hde=Cu(function(y,S){return y==null?{}:vle(y,S)});function aL(y,S){if(y==null)return{};var M=Br(T8(y),function(I){return[I]});return S=Ht(S),KI(y,M,function(I,q){return S(I,q[0])})}function qde(y,S,M){S=rd(S,y);var I=-1,q=S.length;for(q||(q=1,y=n);++I<q;){var ie=y==null?n:y[Zs(S[I])];ie===n&&(I=q,ie=M),y=ku(ie)?ie.call(y):ie}return y}function Wde(y,S,M){return y==null?y:yg(y,S,M)}function Gde(y,S,M,I){return I=typeof I=="function"?I:n,y==null?y:yg(y,S,M,I)}var oL=y$(Fi),sL=y$(Qa);function Zde(y,S,M){var I=sn(y),q=I||ad(y)||u0(y);if(S=Ht(S,4),M==null){var ie=y&&y.constructor;q?M=I?new ie:[]:jr(y)?M=ku(ie)?a0(__(y)):{}:M={}}return(q?Co:Pl)(y,function(ue,be,Ee){return S(M,ue,be,Ee)}),M}function Kde(y,S){return y==null?!0:y8(y,S)}function Yde(y,S,M){return y==null?y:e$(y,S,b8(M))}function Xde(y,S,M,I){return I=typeof I=="function"?I:n,y==null?y:e$(y,S,b8(M),I)}function c0(y){return y==null?[]:Jw(y,Fi(y))}function Jde(y){return y==null?[]:Jw(y,Qa(y))}function Qde(y,S,M){return M===n&&(M=S,S=n),M!==n&&(M=cs(M),M=M===M?M:0),S!==n&&(S=cs(S),S=S===S?S:0),Df(cs(y),S,M)}function efe(y,S,M){return S=Eu(S),M===n?(M=S,S=0):M=Eu(M),y=cs(y),sle(y,S,M)}function tfe(y,S,M){if(M&&typeof M!="boolean"&&Pa(y,S,M)&&(S=M=n),M===n&&(typeof S=="boolean"?(M=S,S=n):typeof y=="boolean"&&(M=y,y=n)),y===n&&S===n?(y=0,S=1):(y=Eu(y),S===n?(S=y,y=0):S=Eu(S)),y>S){var I=y;y=S,S=I}if(M||y%1||S%1){var q=PI();return ma(y+q*(S-y+kf("1e-"+((q+"").length-1))),S)}return p8(y,S)}var nfe=s0(function(y,S,M){return S=S.toLowerCase(),y+(M?lL(S):S)});function lL(y){return j8(ar(y).toLowerCase())}function uL(y){return y=ar(y),y&&y.replace(H1,Goe).replace(ns,"")}function rfe(y,S,M){y=ar(y),S=ko(S);var I=y.length;M=M===n?I:Df(cn(M),0,I);var q=M;return M-=S.length,M>=0&&y.slice(M,q)==S}function ife(y){return y=ar(y),y&&jn.test(y)?y.replace(zt,Zoe):y}function afe(y){return y=ar(y),y&&Lp.test(y)?y.replace(vu,"\\$&"):y}var ofe=s0(function(y,S,M){return y+(M?"-":"")+S.toLowerCase()}),sfe=s0(function(y,S,M){return y+(M?" ":"")+S.toLowerCase()}),lfe=d$("toLowerCase");function ufe(y,S,M){y=ar(y),S=cn(S);var I=S?e0(y):0;if(!S||I>=S)return y;var q=(S-I)/2;return O_(S_(q),M)+y+O_(w_(q),M)}function cfe(y,S,M){y=ar(y),S=cn(S);var I=S?e0(y):0;return S&&I<S?y+O_(S-I,M):y}function dfe(y,S,M){y=ar(y),S=cn(S);var I=S?e0(y):0;return S&&I<S?O_(S-I,M)+y:y}function ffe(y,S,M){return M||S==null?S=0:S&&(S=+S),bse(ar(y).replace(_f,""),S||0)}function hfe(y,S,M){return(M?Pa(y,S,M):S===n)?S=1:S=cn(S),m8(ar(y),S)}function pfe(){var y=arguments,S=ar(y[0]);return y.length<3?S:S.replace(y[1],y[2])}var mfe=s0(function(y,S,M){return y+(M?"_":"")+S.toLowerCase()});function gfe(y,S,M){return M&&typeof M!="number"&&Pa(y,S,M)&&(S=M=n),M=M===n?ce:M>>>0,M?(y=ar(y),y&&(typeof S=="string"||S!=null&&!F8(S))&&(S=ko(S),!S&&Qp(y))?id(Ws(y),0,M):y.split(S,M)):[]}var yfe=s0(function(y,S,M){return y+(M?" ":"")+j8(S)});function vfe(y,S,M){return y=ar(y),M=M==null?0:Df(cn(M),0,y.length),S=ko(S),y.slice(M,M+S.length)==S}function _fe(y,S,M){var I=te.templateSettings;M&&Pa(y,S,M)&&(S=n),y=ar(y),S=z8({},S,I,v$);var q=z8({},S.imports,I.imports,v$),ie=Fi(q),ue=Jw(q,ie);Co(ie,function(Ut){if(Op.test(Ut))throw new en(l)});var be,Ee,Ke=0,Ye=S.interpolate||Lt,et="__p += '",gt=e8((S.escape||Lt).source+"|"+Ye.source+"|"+(Ye===Ma?Jv:Lt).source+"|"+(S.evaluate||Lt).source+"|$","g"),Rt="//# sourceURL="+(ir.call(S,"sourceURL")?(S.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++s_+"]")+` 966`;y.replace(gt,function(Ut,wn,Pn,Mo,Da,Ao){return Pn||(Pn=Mo),et+=y.slice(Ke,Ao).replace(xf,Koe),wn&&(be=!0,et+=`' + 967__e(`+wn+`) + 968'`),Da&&(Ee=!0,et+=`'; 969`+Da+`; 970__p += '`),Pn&&(et+=`' + 971((__t = (`+Pn+`)) == null ? '' : __t) + 972'`),Ke=Ao+Ut.length,Ut}),et+=`'; 973`;var Wt=ir.call(S,"variable")&&S.variable;if(!Wt)et=`with (obj) { 974`+et+` 975} 976`;else if(Op.test(Wt))throw new en(s);et=(Ee?et.replace(Ze,""):et).replace(wt,"$1").replace(yt,"$1;"),et="function("+(Wt||"obj")+`) { 977`+(Wt?"":`obj || (obj = {}); 978`)+"var __t, __p = ''"+(be?", __e = _.escape":"")+(Ee?`, __j = Array.prototype.join; 979function print() { __p += __j.call(arguments, '') } 980`:`; 981`)+et+`return __p 982}`;var gn=dL(function(){return er(ie,Rt+"return "+et).apply(n,ue)});if(gn.source=et,B8(gn))throw gn;return gn}function bfe(y){return ar(y).toLowerCase()}function xfe(y){return ar(y).toUpperCase()}function wfe(y,S,M){if(y=ar(y),y&&(M||S===n))return _I(y);if(!y||!(S=ko(S)))return y;
vendor: 4,362 bytes, line 982
982var I=Ws(y),q=Ws(S),ie=bI(I,q),ue=xI(I,q)+1;return id(I,ie,ue).join("")}function Sfe(y,S,M){if(y=ar(y),y&&(M||S===n))return y.slice(0,SI(y)+1);if(!y||!(S=ko(S)))return y;var I=Ws(y),q=xI(I,Ws(S))+1;return id(I,0,q).join("")}function Cfe(y,S,M){if(y=ar(y),y&&(M||S===n))return y.replace(_f,"");if(!y||!(S=ko(S)))return y;var I=Ws(y),q=bI(I,Ws(S));return id(I,q).join("")}function Tfe(y,S){var M=$,I=O;if(jr(S)){var q="separator"in S?S.separator:q;M="length"in S?cn(S.length):M,I="omission"in S?ko(S.omission):I}y=ar(y);var ie=y.length;if(Qp(y)){var ue=Ws(y);ie=ue.length}if(M>=ie)return y;var be=M-e0(I);if(be<1)return I;var Ee=ue?id(ue,0,be).join(""):y.slice(0,be);if(q===n)return Ee+I;if(ue&&(be+=Ee.length-be),F8(q)){if(y.slice(be).search(q)){var Ke,Ye=Ee;for(q.global||(q=e8(q.source,ar(bf.exec(q))+"g")),q.lastIndex=0;Ke=q.exec(Ye);)var et=Ke.index;Ee=Ee.slice(0,et===n?be:et)}}else if(y.indexOf(ko(q),be)!=be){var gt=Ee.lastIndexOf(q);gt>-1&&(Ee=Ee.slice(0,gt))}return Ee+I}function kfe(y){return y=ar(y),y&&xn.test(y)?y.replace(jt,nse):y}var Efe=s0(function(y,S,M){return y+(M?" ":"")+S.toUpperCase()}),j8=d$("toUpperCase");function cL(y,S,M){return y=ar(y),S=M?n:S,S===n?Xoe(y)?ase(y):joe(y):y.match(S)||[]}var dL=_n(function(y,S){try{return So(y,n,S)}catch(M){return B8(M)?M:new en(M)}}),Mfe=Cu(function(y,S){return Co(S,function(M){M=Zs(M),Al(y,M,R8(y[M],y))}),y});function Afe(y){var S=y==null?0:y.length,M=Ht();return y=S?Br(y,function(I){if(typeof I[1]!="function")throw new is(o);return[M(I[0]),I[1]]}):[],_n(function(I){for(var q=-1;++q<S;){var ie=y[q];if(So(ie[0],this,I))return So(ie[1],this,I)}})}function Pfe(y){return nle(ss(y,f))}function U8(y){return function(){return y}}function Dfe(y,S){return y==null||y!==y?S:y}var Ife=h$(),$fe=h$(!0);function eo(y){return y}function H8(y){return UI(typeof y=="function"?y:ss(y,f))}function Lfe(y){return qI(ss(y,f))}function Rfe(y,S){return WI(y,ss(S,f))}var Ofe=_n(function(y,S){return function(M){return mg(M,y,S)}}),Bfe=_n(function(y,S){return function(M){return mg(y,M,S)}});function q8(y,S,M){var I=Fi(S),q=A_(S,I);M==null&&!(jr(S)&&(q.length||!I.length))&&(M=S,S=y,y=this,q=A_(S,Fi(S)));var ie=!(jr(M)&&"chain"in M)||!!M.chain,ue=ku(y);return Co(q,function(be){var Ee=S[be];y[be]=Ee,ue&&(y.prototype[be]=function(){var Ke=this.__chain__;if(ie||Ke){var Ye=y(this.__wrapped__),et=Ye.__actions__=Xa(this.__actions__);return et.push({func:Ee,args:arguments,thisArg:y}),Ye.__chain__=Ke,Ye}return Ee.apply(y,Jc([this.value()],arguments))})}),y}function Ffe(){return Qn._===this&&(Qn._=dse),this}function W8(){}function zfe(y){return y=cn(y),_n(function(S){return GI(S,y)})}var Nfe=w8(Br),Vfe=w8(pI),jfe=w8(Gw);function fL(y){return A8(y)?Zw(Zs(y)):_le(y)}function Ufe(y){return function(S){return y==null?n:If(y,S)}}var Hfe=m$(),qfe=m$(!0);function G8(){return[]}function Z8(){return!1}function Wfe(){return{}}function Gfe(){return""}function Zfe(){return!0}function Kfe(y,S){if(y=cn(y),y<1||y>Z)return[];var M=ce,I=ma(y,ce);S=Ht(S),y-=ce;for(var q=Xw(I,S);++M<y;)S(M);return q}function Yfe(y){return sn(y)?Br(y,Zs):Eo(y)?[y]:Xa(D$(ar(y)))}function Xfe(y){var S=++use;return ar(y)+S}var Jfe=R_(function(y,S){return y+S},0),Qfe=S8("ceil"),ehe=R_(function(y,S){return y/S},1),the=S8("floor");function nhe(y){return y&&y.length?M_(y,eo,l8):n}function rhe(y,S){return y&&y.length?M_(y,Ht(S,2),l8):n}function ihe(y){return yI(y,eo)}function ahe(y,S){return yI(y,Ht(S,2))}function ohe(y){return y&&y.length?M_(y,eo,f8):n}function she(y,S){return y&&y.length?M_(y,Ht(S,2),f8):n}var lhe=R_(function(y,S){return y*S},1),uhe=S8("round"),che=R_(function(y,S){return y-S},0);function dhe(y){return y&&y.length?Yw(y,eo):0}function fhe(y,S){return y&&y.length?Yw(y,Ht(S,2)):0}return te.after=Rce,te.ary=j$,te.assign=wde,te.assignIn=nL,te.assignInWith=rL,te.assignWith=z8,te.at=Sde,te.before=U$,te.bind=R8,te.bindAll=Mfe,te.bindKey=H$,te.castArray=Gce,te.chain=z$,te.chunk=nue,te.compact=rue,te.concat=iue,te.cond=Afe,te.conforms=Pfe,te.constant=U8,te.countBy=fce,te.create=Cde,te.curry=q$,te.curryRight=W$,te.debounce=G$,te.defaults=Tde,te.defaultsDeep=kde,te.defer=Oce,te.delay=Bce,te.difference=aue,te.differenceBy=oue,te.differenceWith=sue,te.drop=lue,te.dropRight=uue,te.dropRightWhile=cue,te.dropWhile=due,te.fill=fue,te.filter=pce,te.flatMap=yce,te.flatMapDeep=vce,te.flatMapDepth=_ce,te.flatten=R$,te.flatten
vendor: 4,592 bytes, line 982
982Deep=hue,te.flattenDepth=pue,te.flip=Fce,te.flow=Ife,te.flowRight=$fe,te.fromPairs=mue,te.functions=$de,te.functionsIn=Lde,te.groupBy=bce,te.initial=yue,te.intersection=vue,te.intersectionBy=_ue,te.intersectionWith=bue,te.invert=Ode,te.invertBy=Bde,te.invokeMap=wce,te.iteratee=H8,te.keyBy=Sce,te.keys=Fi,te.keysIn=Qa,te.map=j_,te.mapKeys=zde,te.mapValues=Nde,te.matches=Lfe,te.matchesProperty=Rfe,te.memoize=H_,te.merge=Vde,te.mergeWith=iL,te.method=Ofe,te.methodOf=Bfe,te.mixin=q8,te.negate=q_,te.nthArg=zfe,te.omit=jde,te.omitBy=Ude,te.once=zce,te.orderBy=Cce,te.over=Nfe,te.overArgs=Nce,te.overEvery=Vfe,te.overSome=jfe,te.partial=O8,te.partialRight=Z$,te.partition=Tce,te.pick=Hde,te.pickBy=aL,te.property=fL,te.propertyOf=Ufe,te.pull=Cue,te.pullAll=B$,te.pullAllBy=Tue,te.pullAllWith=kue,te.pullAt=Eue,te.range=Hfe,te.rangeRight=qfe,te.rearg=Vce,te.reject=Mce,te.remove=Mue,te.rest=jce,te.reverse=$8,te.sampleSize=Pce,te.set=Wde,te.setWith=Gde,te.shuffle=Dce,te.slice=Aue,te.sortBy=Lce,te.sortedUniq=Oue,te.sortedUniqBy=Bue,te.split=gfe,te.spread=Uce,te.tail=Fue,te.take=zue,te.takeRight=Nue,te.takeRightWhile=Vue,te.takeWhile=jue,te.tap=rce,te.throttle=Hce,te.thru=V_,te.toArray=Q$,te.toPairs=oL,te.toPairsIn=sL,te.toPath=Yfe,te.toPlainObject=tL,te.transform=Zde,te.unary=qce,te.union=Uue,te.unionBy=Hue,te.unionWith=que,te.uniq=Wue,te.uniqBy=Gue,te.uniqWith=Zue,te.unset=Kde,te.unzip=L8,te.unzipWith=F$,te.update=Yde,te.updateWith=Xde,te.values=c0,te.valuesIn=Jde,te.without=Kue,te.words=cL,te.wrap=Wce,te.xor=Yue,te.xorBy=Xue,te.xorWith=Jue,te.zip=Que,te.zipObject=ece,te.zipObjectDeep=tce,te.zipWith=nce,te.entries=oL,te.entriesIn=sL,te.extend=nL,te.extendWith=rL,q8(te,te),te.add=Jfe,te.attempt=dL,te.camelCase=nfe,te.capitalize=lL,te.ceil=Qfe,te.clamp=Qde,te.clone=Zce,te.cloneDeep=Yce,te.cloneDeepWith=Xce,te.cloneWith=Kce,te.conformsTo=Jce,te.deburr=uL,te.defaultTo=Dfe,te.divide=ehe,te.endsWith=rfe,te.eq=Ks,te.escape=ife,te.escapeRegExp=afe,te.every=hce,te.find=mce,te.findIndex=$$,te.findKey=Ede,te.findLast=gce,te.findLastIndex=L$,te.findLastKey=Mde,te.floor=the,te.forEach=N$,te.forEachRight=V$,te.forIn=Ade,te.forInRight=Pde,te.forOwn=Dde,te.forOwnRight=Ide,te.get=N8,te.gt=Qce,te.gte=ede,te.has=Rde,te.hasIn=V8,te.head=O$,te.identity=eo,te.includes=xce,te.indexOf=gue,te.inRange=efe,te.invoke=Fde,te.isArguments=Rf,te.isArray=sn,te.isArrayBuffer=tde,te.isArrayLike=Ja,te.isArrayLikeObject=si,te.isBoolean=nde,te.isBuffer=ad,te.isDate=rde,te.isElement=ide,te.isEmpty=ade,te.isEqual=ode,te.isEqualWith=sde,te.isError=B8,te.isFinite=lde,te.isFunction=ku,te.isInteger=K$,te.isLength=W_,te.isMap=Y$,te.isMatch=ude,te.isMatchWith=cde,te.isNaN=dde,te.isNative=fde,te.isNil=pde,te.isNull=hde,te.isNumber=X$,te.isObject=jr,te.isObjectLike=Xr,te.isPlainObject=xg,te.isRegExp=F8,te.isSafeInteger=mde,te.isSet=J$,te.isString=G_,te.isSymbol=Eo,te.isTypedArray=u0,te.isUndefined=gde,te.isWeakMap=yde,te.isWeakSet=vde,te.join=xue,te.kebabCase=ofe,te.last=us,te.lastIndexOf=wue,te.lowerCase=sfe,te.lowerFirst=lfe,te.lt=_de,te.lte=bde,te.max=nhe,te.maxBy=rhe,te.mean=ihe,te.meanBy=ahe,te.min=ohe,te.minBy=she,te.stubArray=G8,te.stubFalse=Z8,te.stubObject=Wfe,te.stubString=Gfe,te.stubTrue=Zfe,te.multiply=lhe,te.nth=Sue,te.noConflict=Ffe,te.noop=W8,te.now=U_,te.pad=ufe,te.padEnd=cfe,te.padStart=dfe,te.parseInt=ffe,te.random=tfe,te.reduce=kce,te.reduceRight=Ece,te.repeat=hfe,te.replace=pfe,te.result=qde,te.round=uhe,te.runInContext=Ce,te.sample=Ace,te.size=Ice,te.snakeCase=mfe,te.some=$ce,te.sortedIndex=Pue,te.sortedIndexBy=Due,te.sortedIndexOf=Iue,te.sortedLastIndex=$ue,te.sortedLastIndexBy=Lue,te.sortedLastIndexOf=Rue,te.startCase=yfe,te.startsWith=vfe,te.subtract=che,te.sum=dhe,te.sumBy=fhe,te.template=_fe,te.times=Kfe,te.toFinite=Eu,te.toInteger=cn,te.toLength=eL,te.toLower=bfe,te.toNumber=cs,te.toSafeInteger=xde,te.toString=ar,te.toUpper=xfe,te.trim=wfe,te.trimEnd=Sfe,te.trimStart=Cfe,te.truncate=Tfe,te.unescape=kfe,te.uniqueId=Xfe,te.upperCase=Efe,te.upperFirst=j8,te.each=N$,te.eachRight=V$,te.first=O$,q8(te,(function(){var y={};return Pl(te,function(S,M){ir.call(te.prototype,M)||(y[M]=S)}),y})(),{chain:!1}),te.VERSION=r,Co(["bind","bindKey","curry","curryRight","partial","partialRight"],function(y){te[y].placeholder=te}),Co(["drop","take"],function(y,S){kn.prototype[y]=function(M){M=M===n?1:ki(cn(M),0);var I=this.__filtered__&&!S?new kn(this):this.clone();return I.__filtered__?I.__takeCount__=ma(M,I.__takeCount__):I.__views__.push({size:ma(M,ce),type:y+(I.__dir__<0?"Right":"")}),I},kn.prototype[y+"Right"]=function(M){return this.reverse()[y](M).reverse()}}
982),Co(["filter","map","takeWhile"],function(y,S){var M=S+1,I=M==B||M==J;kn.prototype[y]=function(q){var ie=this.clone();return ie.__iteratees__.push({iteratee:Ht(q,3),type:M}),ie.__filtered__=ie.__filtered__||I,ie}}),Co(["head","last"],function(y,S){var M="take"+(S?"Right":"");kn.prototype[y]=function(){return this[M](1).value()[0]}}),Co(["initial","tail"],function(y,S){var M="drop"+(S?"":"Right");kn.prototype[y]=function(){return this.__filtered__?new kn(this):this[M](1)}}),kn.prototype.compact=function(){return this.filter(eo)},kn.prototype.find=function(y){return this.filter(y).head()},kn.prototype.findLast=function(y){return this.reverse().find(y)},kn.prototype.invokeMap=_n(function(y,S){return typeof y=="function"?new kn(this):this.map(function(M){return mg(M,y,S)})}),kn.prototype.reject=function(y){return this.filter(q_(Ht(y)))},kn.prototype.slice=function(y,S){y=cn(y);var M=this;return M.__filtered__&&(y>0||S<0)?new kn(M):(y<0?M=M.takeRight(-y):y&&(M=M.drop(y)),S!==n&&(S=cn(S),M=S<0?M.dropRight(-S):M.take(S-y)),M)},kn.prototype.takeRightWhile=function(y){return this.reverse().takeWhile(y).reverse()},kn.prototype.toArray=function(){return this.take(ce)},Pl(kn.prototype,function(y,S){var M=/^(?:filter|find|map|reject)|While$/.test(S),I=/^(?:head|last)$/.test(S),q=te[I?"take"+(S=="last"?"Right":""):S],ie=I||/^find/.test(S);q&&(te.prototype[S]=function(){var ue=this.__wrapped__,be=I?[1]:arguments,Ee=ue instanceof kn,Ke=be[0],Ye=Ee||sn(ue),et=function(wn){var Pn=q.apply(te,Jc([wn],be));return I&>?Pn[0]:Pn};Ye&&M&&typeof Ke=="function"&&Ke.length!=1&&(Ee=Ye=!1);var gt=this.__chain__,Rt=!!this.__actions__.length,Wt=ie&&!gt,gn=Ee&&!Rt;if(!ie&&Ye){ue=gn?ue:new kn(this);var Ut=y.apply(ue,be);return Ut.__actions__.push({func:V_,args:[et],thisArg:n}),new as(Ut,gt)}return Wt&&gn?y.apply(this,be):(Ut=this.thru(et),Wt?I?Ut.value()[0]:Ut.value():Ut)})}),Co(["pop","push","shift","sort","splice","unshift"],function(y){var S=h_[y],M=/^(?:push|sort|unshift)$/.test(y)?"tap":"thru",I=/^(?:pop|shift)$/.test(y);te.prototype[y]=function(){var q=arguments;if(I&&!this.__chain__){var ie=this.value();return S.apply(sn(ie)?ie:[],q)}return this[M](function(ue){return S.apply(sn(ue)?ue:[],q)})}}),Pl(kn.prototype,function(y,S){var M=te[S];if(M){var I=M.name+"";ir.call(i0,I)||(i0[I]=[]),i0[I].push({name:S,func:M})}}),i0[L_(n,x).name]=[{name:"wrapper",func:n}],kn.prototype.clone=Ese,kn.prototype.reverse=Mse,kn.prototype.value=Ase,te.prototype.at=ice,te.prototype.chain=ace,te.prototype.commit=oce,te.prototype.next=sce,te.prototype.plant=uce,te.prototype.reverse=cce,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=dce,te.prototype.first=te.prototype.head,lg&&(te.prototype[lg]=lce),te}),t0=ose();rs?((rs.exports=t0)._=t0,ag._=t0):Qn._=t0}).call(cdt)})(yy,yy.exports)),yy.exports}var fdt=ddt();const qU=dp(fdt),hdt=Q({__name:"T3FormFieldSession",props:{name:{},field:{},type:{},showLabel:{type:Boolean},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean}},setup(e){const t=e,n=G(1),r=G(10),i=G(1),{values:a}=m1(),o=d=>Ii(c.value)&&d<c.value.length&&c.value[d]?c.value[d]:s(u.value,d),s=(d,f)=>{const h=qU.cloneDeep(d);for(const p of h)p.name=p.name?.replace("[]",`[${f}]`),p.elements?.length&&(p.elements=s(p.elements,f));return h??[]},l=d=>{let f=`${t.field.label} ${d+1}`;if(ur(a?.[t.name]?.[d]))return f;const h=a?.[t.name]?.[d]?.["[title]"];h&&(f=`${h}`);let p=a?.[t.name]?.[d]?.["[cimNewsStartDate]"],g=a?.[t.name]?.[d]?.["[cimNewsEndDate]"];return p&&g&&(p=yi(p).format("YYYY-MM-DD HH:mm"),g=yi(g).format("YYYY-MM-DD HH:mm"),yi(p).format("YYYY-MM-DD")===yi(g).format("YYYY-MM-DD")?f+=` - Le ${yi(p).format("DD/MM/YYYY")}`:f+=` - Du ${yi(p).format("DD/MM/YYYY")} au ${yi(g).format("DD/MM/YYYY")}`),f},u=W(()=>t.field.elements?.filter(d=>d.isTemplate)??[]),c=W(()=>{const d=t.field.elements?.filter(h=>h.isTemplate!==!0&&BM(h.iteration))??[],f={};return d.forEach(h=>{const p=parseInt(h.iteration);typeof f[p]>"u"&&(f[p]=[]),f[p].push(h)}),Object.values(f)});return Ot(()=>{n.value=qU.clamp(c.value.length??0,i.value,r.value)}),(d,f)=>{const h=Ta;return E(),V(h,un(pn(t)),{input:N(p=>[Y("div",{class:L([m(Vn)({alignItems:"initial"})])},[(E(!0),U(Ae,null,ft(Array(n.value),(g,v)=>(E(),V(Kv,{key:v,legend:l(v),type:e.type,field:e.field,elements:o(v),id:`${e.field.identifier}_${v}`,tabindex:"0",class:L(m(F)({paddingLeft:{base:"2rem",sm:"4rem"},borderLeft:"0.3rem solid {colors.primary}",borderColor:"primary/50",marginBottom:"2rem"}))},null,8,["legend","type","field","elements","id","class"]))),128))],2)]),_:1},16)}}}),pdt={"data-label-like":""},mdt={class:"static_txt"},gdt=Q({__name:"T3FormFieldStatictext",props:{showLabel:{type:Boolean,default:!0},field:{default:{}}},setup(e){return(t,n)=>(E(),U("div",null,[Y("p",pdt,de(e.field.label),1),Y("p",mdt,de(e.field.properties?.text),1)]))}}),ydt=Q({__name:"T3FormFieldCheckbox",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{$emit:i}=vt(),{value:a,handleChange:o}=ri(()=>n.name),s=W(()=>!1),l=G(s.value);Je(a,()=>{l.value=a.value?!!a.value:s.value});const u=()=>{c(),i("filters:onFieldValueChanged",{...n.field})},c=()=>{const d=l.value===s.value?!1:l.value;o(d),r("update:value",d)};return(d,f)=>{const h=Dp,p=xA,g=Ta;return E(),V(g,rt(n,{"show-label":!1}),{input:N(v=>[H(h,{field:e.field,name:e.name,tag:"label",class:L(m(fn)())},null,8,["field","name","class"]),H(p,{checked:m(l),"onUpdate:checked":[f[0]||(f[0]=b=>$t(l)?l.value=b:null),u],class:"checkbox",id:e.field.identifier,name:e.name,"aria-invalid":v.showErrorMessage?!0:null},{default:N(()=>[st(de(e.field.label),1)]),_:1},8,["checked","id","name","aria-invalid"])]),_:1},16)}}}),vdt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function _dt(e,t){return E(),U("svg",vdt,[...t[0]||(t[0]=[Y("path",{fill:"none",d:"M0 0h24v24H0Z"},null,-1),Y("path",{d:"M7 11h2v2H7Zm14-5v14a2.006 2.006 0 0 1-2 2H5a2 2 0 0 1-2-2l.01-14A1.99 1.99 0 0 1 5 4h1V2h2v2h8V2h2v2h1a2.006 2.006 0 0 1 2 2M5 8h14
982V6H5Zm14 12V10H5v10Zm-4-7h2v-2h-2Zm-4 0h2v-2h-2Z","data-name":"black"},null,-1)])])}const bdt={render:_dt},kx=Q({__name:"DatePicker",props:{dateField:{},locale:{},minValue:{},maxValue:{},ariaDescribedby:{}},emits:["update"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=G(r.dateField.value?S3(r.dateField.value):v2(Kd())),o=s=>{i("update",_t(s))};return t({dateValue:a,setDate:s=>{a.value=S3(s)}}),(s,l)=>{const u=vAe,c=bdt,d=TAe,f=wAe,h=SAe,p=CAe,g=Tn,v=hAe,b=lAe,x=fAe,_=sAe,w=dAe,C=gAe,T=pAe,k=yAe,A=cAe,P=mAe,D=uAe,$=xAe,O=kAe,z=bAe;return E(),V(z,{locale:e.locale,modelValue:m(a),"onUpdate:modelValue":[l[0]||(l[0]=j=>$t(a)?a.value=j:null),o],minValue:e.minValue?m(S3)(e.minValue):new(m(Wn))(2e3,1,1),maxValue:e.maxValue?m(S3)(e.maxValue):new(m(Wn))(2050,12,31),name:e.dateField?.name,hourCycle:24,id:e.dateField?.identifier,required:e.dateField?.required,"default-value":e.dateField.value},{default:N(()=>[H(f,{class:L(m(rn)({gap:"0"})),"data-input-style":""},{default:N(({segments:j})=>[(E(!0),U(Ae,null,ft(j,B=>(E(),V(u,{key:B.part,part:B.part},{default:N(()=>[st(de(B.value),1)]),_:2},1032,["part"]))),128)),H(d,null,{default:N(()=>[H(c,{"aria-hidden":"true",class:L(m(vn)())},null,8,["class"])]),_:1})]),_:1},8,["class"]),H(h),H(O,{align:"start",side:"bottom"},{default:N(()=>[H(p,{"aria-hidden":"true",class:L(m(F)({fill:"{colors.black}",width:"1.5rem",height:"1rem"}))},null,8,["class"]),H($,{class:L(m(F)({bgColor:"{colors.white}",border:"{borders.sm} {colors.black}",borderRadius:"{radii.sm}",padding:"1rem"}))},{default:N(({weekDays:j,grid:B})=>[H(_,{class:L([m(rn)({justifyContent:"space-between"}),m(F)({paddingBottom:"1rem",marginBottom:"0.5rem",borderBottom:"{borders.sm} {colors.lightGray}"})])},{default:N(()=>[H(v,{asChild:""},{default:N(()=>[H(g,{link:{text:s.$t("search.pagination.paginationPrev")},variante:{classes:"pictoOnly",pictoColor:"third",size:"sm"},type:"button",picto:"prev",showSr:!0},null,8,["link"])]),_:1}),H(b,{class:L(m(F)({fontFamily:"{fonts.bold}",fontSize:"{fontSizes.p}"}))},null,8,["class"]),H(x,null,{default:N(()=>[H(g,{link:{text:s.$t("search.pagination.paginationNext")},variante:{classes:"pictoOnly",pictoColor:"third",size:"sm"},type:"button",picto:"next",showSr:!0},null,8,["link"])]),_:1})]),_:1},8,["class"]),(E(!0),U(Ae,null,ft(B,R=>(E(),V(D,{key:R.value.toString(),class:L(m(F)({width:"100%",textAlign:"center"}))},{default:N(()=>[H(T,null,{default:N(()=>[H(C,null,{default:N(()=>[(E(!0),U(Ae,null,ft(j,J=>(E(),V(w,{key:J,class:L(m(F)({fontFamily:"{fonts.bold}",fontSize:"{fontSizes.sm}",paddingBottom:"0.5rem",marginBottom:"0.5rem",borderBottom:"{borders.sm} {colors.lightGray}"}))},{default:N(()=>[st(de(J),1)]),_:2},1032,["class"]))),128))]),_:2},1024)]),_:2},1024),H(P,{class:L(m(F)({"& [data-today]":{bgColor:"{colors.black}",color:"{colors.white}"},"& [data-selected=true]":{bgColor:"{colors.primary}",color:"{colors.white}"},"& [data-radix-vue-calendar-cell-trigger]":{transition:"{easings.global}",_hover:{bgColor:"{colors.primary}",color:"{colors.white}"}}}))},{default:N(()=>[(E(!0),U(Ae,null,ft(R.rows,(J,K)=>(E(),V(C,{key:`weekDate-${K}`},{default:N(()=>[(E(!0),U(Ae,null,ft(J,Z=>(E(),V(A,{key:Z.toString(),date:Z},{default:N(()=>[H(k,{day:Z,month:R.value,class:L(m(F)({cursor:"pointer",padding:"1rem",fontSize:"{fontSizes.sm}"}))},null,8,["day","month","class"])]),_:2},1032,["date"]))),128))]),_:2},1024))),128))]),_:2},1032,["class"])]),_:2},1032,["class"]))),128))]),_:1},8,["class"])]),_:1})]),_:1},8,["locale","modelValue","minValue","maxValue","name","id","required","default-value"])}}});function lI(){return{getdescribedBy:(t,n)=>{let r=t?.showErrorMessage,i=t?.needFormat||n.properties?.allowedMimeTypes?.length>0,a=n.properties?.elementDescription,o=n?.properties?.dateFormat,s=t?.fileLoaded,l=`error_${n.identifier}`,u=`format-${n.identifier}`,c="description-"+n.identifier,d=`format-date-${n.identifier}`,f=`loaded-${n.identifier}`;return`${i?u:""} ${o?d:""} ${a?c:""} ${r?l:""} ${s?f:""}`}}}const xdt=Q({__name:"T3FormFieldDate",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const{locale:n}=dr(),r=e,{$emit:i}=vt(),{value:a}=ri(_t(r.name)),o=G(r.field);r.field.properties?.elementDescription;const{getdescribedBy:s}=lI();return(l,u)=>{const c=Ta;return E(),V(c,un(pn(r)),{input:N(d=>[H(kx,{locale:m(n),"aria-invalid":d.showErrorMessage?!0:null,"aria-describedby":m(s)(d,e.field),dateField:m(o)},null,8,["locale","aria-invalid","aria-describedby","dateField"])]),_:1},16)}}}),wdt={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 20 20"};function Sdt(e,t){return E(),U("svg",wdt,[...t[0]||(t[0]=[Y("path",{fill:"#101010",d:"M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 12.42-4-4h8z","data-name":"Tracé 1977"},null,-1)])])}const Cdt={render:Sdt},Tdt={key:0}
982,kdt=["for"],Edt=["for"],Mdt=Q({__name:"T3FormFieldDatePeriod",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const{locale:n}=dr(),r=DX(),i=e,a=t,{$emit:o}=vt(),s=G(i.field.elements[0]),l=G(i.field.elements[1]),u=G(i.field.elements[2]),{value:c,handleChange:d}=ri(()=>s.value.name),{value:f,handleChange:h}=ri(()=>l.value.name),{value:p,handleChange:g}=ri(()=>u.value.name),v=W(()=>n.value==="fr"?"jj/mm/aaaa":"mm/dd/yyyy"),b=A=>{h(A?.toString())},x=A=>{g(A?.toString())},_=[{label:"Aujourd'hui",value:"today",startModifier:()=>{const A=r();return new Wn(A.year(),A.month()+1,A.date())},endModifier:()=>{const A=r().hour(23).minute(59).second(59);return new Wn(A.year(),A.month()+1,A.date())}},{label:"Cette semaine",value:"week",startModifier:()=>{const A=r().day(1);return new Wn(A.year(),A.month()+1,A.date())},endModifier:()=>{const A=r().day(7).hour(23).minute(59).second(59);return new Wn(A.year(),A.month()+1,A.date())}},{label:"Ce week-end",value:"weekend",startModifier:()=>{const A=r().day(5).hour(17).minute(0).second(0);return new Wn(A.year(),A.month()+1,A.date())},endModifier:()=>{const A=r().day(7).hour(23).minute(59).second(59);return new Wn(A.year(),A.month()+1,A.date())}},{label:"Ce mois",value:"month",startModifier:()=>{const A=r();return new Wn(A.year(),A.month(),A.date())},endModifier:()=>{const A=r().date(31).hour(23).minute(59).second(59);return new Wn(A.year(),A.month(),A.date())}}],w=W(()=>s.value.properties?.prependOptionLabel||s.value.placeholder||"-- Sélectionner --"),C=G(s.value.value?s.value.value:w.value);Je(c,()=>{C.value=i6(c.value)?w.value:c.value.toString()}),Ot(()=>{const A=C.value===w.value?"":C.value;d(A)});const T=()=>{k(),o("filters:onFieldValueChanged",{...s.value})},k=()=>{const A=C.value===w.value?"":C.value;if(d(A),a("update:value",A),C.value==="period")b(v2(Kd())),x(v2(Kd()));else if(ur(c))h(void 0),g(void 0);else{let P=_.filter(D=>D.value===C.value)[0]||void 0;typeof P<"u"?(typeof P.startModifier=="function"&&b(P.startModifier()),typeof P.endModifier=="function"&&x(P.endModifier())):(h(void 0),g(void 0))}};return(A,P)=>{const D=sX,$=Cdt,O=$A,z=FA,j=BA,B=zA,R=OA,J=LA,K=IA,Z=Ore,ne=Ta;return E(),V(ne,un(pn(i)),{input:N(se=>[H(K,{modelValue:m(C),"onUpdate:modelValue":[P[0]||(P[0]=ce=>$t(C)?C.value=ce:null),P[1]||(P[1]=ce=>T())],name:m(s).name,id:m(s).identifier,"aria-describedby":m(s).properties?.elementDescription?"description-"+e.field.identifier:null},{default:N(()=>[H(O,null,{default:N(()=>[H(D),H($,{"aria-hidden":"true",class:L(m(vn)({fill:"{colors.black}"}))},null,8,["class"])]),_:1}),H(J,{disabled:""},{default:N(()=>[H(R,{style:{"user-select":"none"},position:"popper",avoidCollisions:!1},{default:N(()=>[H(B,{as:"ul"},{default:N(()=>[H(j,{as:"li",value:m(w)},{default:N(()=>[H(z,null,{default:N(()=>[st(de(m(w)),1)]),_:1})]),_:1},8,["value"]),(E(),U(Ae,null,ft(_,ce=>H(j,{as:"li",key:ce.value,value:ce.value},{default:N(()=>[H(z,null,{default:N(()=>[st(de(ce.label),1)]),_:2},1024)]),_:2},1032,["value"])),64)),H(j,{as:"li",value:"period"},{default:N(()=>[H(z,null,{default:N(()=>[st(de(A.$t("search.filters.period")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","name","id","aria-describedby"]),m(c)==="period"?(E(),U("fieldset",Tdt,[Y("legend",{class:L(m(fn)())},de(A.$t("search.filters.period")),3),Y("div",{class:L([m(vi)({columns:2}),m(F)({marginTop:"1.5rem"})])},[Y("div",null,[Y("label",{for:m(l)?.identifier},"Du",8,kdt),H(kx,{dateField:m(l),locale:m(n),"aria-describedby":`${m(l).identifier}-help`,"max-value":m(p)?.toString(),onUpdate:b},null,8,["dateField","locale","aria-describedby","max-value"]),H(Z,{identifier:m(l).identifier},{default:N(()=>[st(de(A.$t("form.file.onlyFormat"))+" : "+de(m(v)),1)]),_:1},8,["identifier"])]),Y("div",null,[Y("label",{for:m(u)?.identifier},"Au",8,Edt),H(kx,{dateField:m(u),locale:m(n),"aria-describedby":`${m(u).identifier}-help`,"min-value":m(f)?.toString(),onUpdate:x},null,8,["dateField","locale","aria-describedby","min-value"]),H(Z,{identifier:m(u).identifier},{default:N(()=>[st(de(A.$t("form.file.onlyFormat"))+" : "+de(m(v)),1)]),_:1},8,["identifier"])])],2)])):ae("",!0)]),_:1},16)}}}),Adt=Q({__name:"T3FormFieldDateCalendar",props:{name:{},field:{}},setup(e){const{locale:t}=dr(),n=e,r=cr("moduleData")??{},{value:i}=ri(_t(n.name)),a=G(n.field),{value:o,handleChange:s}=ri(()=>a.value.name),l=x=>{s(x?.toString())},u=x=>{l(x)};n.field.properties?.elementDescription;const{getdescribedBy:c}=lI(),d=W(()=>{const x=new Date;return new Wn(x.getFullYear(),x.getMonth()+1,x.getDate())}),f=G([]),h=G(),p=G(!1),g=async()=>{console.log("thePlaceholder",_t(h.value));const x=ur(h.value)?d.value:h.value;if(ur(r?.urlScroll)||ur(x))return;const _=x.year.toString().padStart(4,0)+"-"+x.month.toString().padStart(2,0),w=new FormData;w.append("tx_cimsearchelastic_displaysearch[isCalendar]","1"),w.append("tx_cimsearchelastic_displaysearch[date]",_),p.value=!0;const C=await zo(r.urlScroll,{method:"POST",body:w});p.value=!1,f.value=C.events??[]},v=x=>(console.log("Date :",x),console.log("calendarDates :",f.value),(f.value.filter(_=>_.date===x)??[]).map(_=>_.events).flat()??[]),b=x=>v(x).length>0;return Ot(()=>{g()}),(x,_)=>{const w=OY,C=Tn,T=VY,k=NY,A=RY,P=zY,D=HY,$=jY,O=qY,z=FY,j=UY,B=BY,R=LY,J=Ta;return E(),U(Ae,null,[H(R,{locale:"fr",placeholder:m(h),"onUpdate:placeholder":_[2]||(_[2]=K=>$t(h)?h.value=K:null),"default-placeholder":m(d),calendarLabel:x.$t("calendar.label"),class:L([m(F)({padding:{base:"1rem",sm:"2rem",md:"4rem 3rem"},width:{mdDown:"fit-content"},boxShadow:"0 0 1.5rem 0.5rem rgba(0, 0, 0, 0.1)",borderRadius:"2em",bgColor:"white"})])},{default:N(({weekDays:K,grid:Z})=>[m(p)?(E(),U("p",{key:0,"aria-live":"polite",class:L(m(fn)())},de(x.$t("common.loading")),3)):ae("",!0),H(A,{class:L([m(rn)({gap:"1rem"}),m(F)({marginBottom:{base:"1rem",md:"2rem"}})])},{default:N(()=>[H(w,{ref:"heading",class:L(m(F)({fontSize:"h4",fontWeight:700,fontFamily:"regular",flex:"auto",textTransform:"capitalize",paddingLeft:{smDown:"1rem"}}))},null,8,["class"]),H(T,{asChild:""},{default:N(()=>[H(C,{"aria-label":x.$t("calendar.prevMonth"),type:"button",showSr:!0,link:{text:x.$t("calendar.prevMonth")},variante:{classes:"btnPicto",pictoColor:"primary",size:"sm"},picto:"prev",onClick:_[0]||(_[0]=nr(ne=>("nextTick"in x?x.nextTick:m(At))(()=>g()),["prevent"]))},null,8,["aria-label","link"])]),_:1}),H(k,{asChild:""},{default:N(()=>[H(C,{"aria-label":x.$t("calendar.prevMonth"),type:"button",showSr:!0,link:{text:x.$t("calendar.prevMonth")},variante:{classes:"btnPicto",pictoColor:"primary",size:"sm"},picto:"next",onClick:_[1]||(_[1]=nr(ne=>("nextTick"in x?x.nextTick:m(At))(()=>g()),["prevent"]))},null,8,["aria-label","link"])]),_:1})]),_:1},8,["class"]),(E(!0),U(Ae,null,ft(Z,ne=>(E(),V(B,{key:ne.value.toString(),class:L(m(F)({marginBottom:0,paddingBottom:0,opacity:m(p)?"0.2":1}))},{default:N(()=>[H($,null,{default:N(()=>[H(D,null,{default:N(()=>[(E(!0),U(Ae,null,ft(K,se=>(E(),V(P,{key:se,class:L(m(F)({bgColor:"transparent",color:"primary",textAlign:"center",fontSize:"sm",border:0,padding:{base:"1rem 1.5rem",md:"1.5rem 2rem"}}))},{default:N(()=>[st(de(se),1)]),_:2},1032,["class"]))),128))]),_:2},1024)]),_:2},1024),H(j,null,{default:N(()=>[(E(!0),U(Ae,null,ft(ne.rows,(se,ce)=>(E(),V(D,{key:`weekDate-${ce}`,class:L(m(F)({bgColor:"transparent"}))},{default:N(()=>[(E(!0),U(Ae,null,ft(se,Re=>(E(),V(z,{date:Re,key:Re.toString(),class:L(m(F)({bgColor:"transparent",color:"black",textAlign:"center",fontSize:"sm",border:0,fontWeight:600,position:"relative",padding:0,"& [data-today]":{bgColor:"secondary",color:"black",_before:{bgColor:"black"}},_print:{position:"static"}}))},{default:N(()=>
982[b(Re.toString())?(E(),V(O,{key:0,onClick:Ue=>u(Re.toString()),tabindex:"-1",day:Re,month:ne.value,class:L(m(F)({padding:{base:"1rem",md:"1.5rem"},cursor:"pointer",borderRadius:"sm",transition:"{easings.global}",backgroundColor:"secondary",_hover:{bgColor:"primary",color:"white",_before:{bgColor:"white"}},_expanded:{bgColor:"primary!",color:"white",_before:{bgColor:"white"}}}))},null,8,["onClick","day","month","class"])):(E(),V(O,{key:1,onClick:Ue=>u(Re),day:Re,month:ne.value,class:L(m(F)({padding:{base:"1rem",md:"1.5rem"},cursor:"pointer",transition:"{easings.global}",_hover:{bgColor:"primary",color:"white",borderRadius:"sm",_before:{bgColor:"primary"}},"&[data-outside-view]":{color:"darkGray"},"&[data-today]":{color:"black",borderRadius:"sm",position:"relative",_before:{content:"''",position:"absolute",bottom:"0.5rem",left:"50%",transform:"translateX(-50%)",borderRadius:"50%",width:{base:"0.8rem",md:"1rem"},height:{base:"0.8rem",md:"1rem"},bgColor:"black",transition:"{easings.global}"}}}))},null,8,["onClick","day","month","class"]))]),_:2},1032,["date","class"]))),128))]),_:2},1032,["class"]))),128))]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1},8,["placeholder","default-placeholder","calendarLabel","class"]),H(J,rt(n,{class:m(fn)()}),{input:N(K=>[H(kx,{locale:m(t),"aria-invalid":K.showErrorMessage?!0:null,"aria-describedby":m(c)(K,e.field),dateField:m(a),onUpdate:l},null,8,["locale","aria-invalid","aria-describedby","dateField"])]),_:1},16,["class"])],64)}}}),Pdt=["id","name","accept","aria-describedby","aria-invalid"],Ddt=Q({__name:"T3FormFieldFileupload",props:{name:{},field:{},type:{},showLabel:{type:Boolean},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean}},setup(e){const t=G(),n=e,{handleChange:r,value:i}=ri(()=>n.name),a=W(()=>n.field.properties?.allowedMimeTypes?.join(",")),o=G(!1);Je(i,l=>{!l&&typeof l<"u"&&t.value&&(t.value.value="")}
982);const s=l=>{r(l);const u=l.target;o.value=!!(u.files&&u.files.length>0)};return(l,u)=>{const c=Dp,d=Ta;return E(),V(d,rt(n,{"show-label":!1,fileLoaded:o.value}),{input:N(f=>[H(c,{field:e.field,name:e.name,tag:"label"},null,8,["field","name"]),Y("input",{ref_key:"fieldRef",ref:t,id:e.field.identifier,type:"file",name:e.field.name,accept:a.value,"aria-describedby":e.field.properties?.allowedMimeTypes?.length>0?"description-"+e.field.identifier:null,"aria-invalid":f.showErrorMessage?!0:null,onChange:s},null,40,Pdt)]),_:1},16,["fileLoaded"])}}}),Idt={class:"form_image"},$dt=["id","name","accept","aria-describedby","aria-invalid"],Ldt=Q({__name:"T3FormFieldImageupload",props:{name:{},field:{},type:{},showLabel:{type:Boolean},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean}},setup(e){const t=G(),n=e,{handleChange:r,value:i,setValue:a}=ri(()=>n.name),o=W(()=>n.field.properties?.allowedMimeTypes?.join(",")),s=G(!1),l=u=>{const c=u.target,d=c.files?.[0];if(s.value=!!(c.files&&c.files.length>0),r(u),d){const f=URL.createObjectURL(d);a(f)}};return(u,c)=>{const d=Dp,f=Ta;return E(),V(f,rt(n,{"show-label":!1,fileLoaded:s.value}),{input:N(h=>[H(d,{field:e.field,name:e.name,tag:"label",class:"label_like"},null,8,["field","name"]),Y("div",Idt,[Y("input",{ref_key:"fieldRef",ref:t,id:e.field.identifier,type:"file",name:e.field.name,class:"form_file_input",accept:o.value,"aria-describedby":e.field.properties?.allowedMimeTypes?.length>0?"description-"+e.field.identifier:null,"aria-invalid":h.showErrorMessage?!0:null,onChange:l},null,40,$dt)])]),_:1},16,["fileLoaded"])}}}),Rdt={xmlns:"http://www.w3.org/2000/svg","data-name":"Calque 1",viewBox:"0 0 18 18"};function Odt(e,t){return E(),U("svg",Rdt,[...t[0]||(t[0]=[Y("g",{fill:"#101010"},[Y("path",{d:"M15.17 8.33 9 12.04 2.82 8.33a.59.59 0 0 0-.81.2c-.17.28-.08.64.2.81l6.48 3.89c.19.11.42.11.61 0l6.48-3.89c.28-.17.37-.53.2-.81s-.53-.37-.81-.2","data-name":"Tracé 46560"}),Y("path",{d:"M15.17 11.02 9 14.72l-6.18-3.7c-.28-.17-.64-.08-.81.2s-.08.64.2.81l6.48 3.89c.19.11.42.11.61 0l6.48-3.89c.28-.17.37-.53.2-.81a.59.59 0 0 0-.81-.2","data-name":"Tracé 46561"}),Y("path",{d:"M9.01 10.57c-.32 0-.63-.09-.9-.25L2.23 6.79a.588.588 0 0 1 0-1.01L8.1 2.25a1.76 1.76 0 0 1 1.8 0l5.88 3.53a.588.588 0 0 1 0 1.01L9.9 10.32c-.27.16-.58.25-.9.25 0 0 .01 0 0 0ZM3.66 6.28 8.7 9.3c.18.11.41.11.59 0l5.04-3.02-5.04-3.02a.57.57 0 0 0-.59 0S3.66 6.28 3.66 6.28","data-name":"Tracé 46562"})],-1)])])}const Bdt={render:Odt},Fdt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 7"};function zdt(e,t){return E(),U("svg",Fdt,[...t[0]||(t[0]=[Y("path",{fill:"#212121","fill-rule":"evenodd",d:"M.332 1.021a.75.75 0 0 1 1.06-.033l4.003 3.757L9.4.988a.75.75 0 1 1 1.026 1.093L5.91 6.321a.75.75 0 0 1-1.027 0L.365 2.08a.75.75 0 0 1-.033-1.06","clip-rule":"evenodd"},null,-1)])])}const Ndt={render:zdt},uI=Q({__name:"Badge",props:{value:{}},setup(e){return(t,n)=>e.value!=="0"?(E(),U("span",{key:0,class:L(m(F)({minWidth:"0",borderRadius:"50%",fontSize:"1.2rem",textAlign:"center",fontFamily:"{fonts.bold}",textTransform:"uppercase",lineHeight:"1.6",backgroundColor:"{colors.primary}",color:"{colors.white}",position:"absolute",top:"0",right:{md:"0",sm:"-0.5rem"},width:"2.5rem",height:"2.5rem",border:"{borders.lg}{colors.white}",display:"block",padding:"0",transform:"translateY(-50%)"}))},de(e.value),3)):ae("",!0)}});function Nw(e){return W(()=>(Array.isArray(e)||(e=Object.entries(e)),e.map(t=>Array.isArray(t)?{label:t[0]??null,value:(t?.[1]??t?.[0]??null).toString()}:t)))}const Vdt=["for"],jdt={key:1},Udt=["aria-labelledby"],Hdt=["for"],qdt=["aria-labelledby"],Wdt={class:"ligne_form_checkbox"},Gdt=["for"],Zdt=Q({__name:"T3FormFieldMulticheckbox",props:{name:{},field:{},isPopover:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{$emit:i}=vt(),a=W(()=>Nw(n.field.properties.options).value),o=G(!1),s=W(()=>n.field?.identifier.includes("_popin")),l=Yt(),u=G(l.backendLayout),c=W(()=>{if(u.value==="list"||s.value)return n.field?.cssClass==="show_all"?o.value=!1:o.value=!0,!0}),d=W(()=>o.value?a.value.slice(0,3):a.value),{remove:f,push:h,fields:p,replace:g}=AZ(_t(n.name)),{value:v,setValue:b}=ri(_t(n.name));n.field.value&&b(n.field.value);const x=G([]),_=G(No(Ii(n.field.value)?n.field.value:[n.field.value]),x.value);Je(v,()=>
982{_.value=Ii(_t(v.value))?_t(v.value):[_t(v.value)]},{immediate:!0});const w=(k,A)=>{C(k,A),i("filters:onFieldValueChanged",{...n.field})},C=(k,A)=>{if(A)_.value.push(k);else{let P=_.value.indexOf(k);P>=0&&delete _.value[P]}_.value=hv(No(_.value)).value,g(_.value),r("update:value",_.value)},T=W(()=>No(_.value)?.length);return(k,A)=>{const P=Bdt,D=Ndt,$=uI,O=k1,z=Dp,j=xA,B=E1,R=T1,J=Tn,K=Ta;return m(a).length?(E(),V(K,rt({key:0},n,{"show-label":!1}),{input:N(Z=>[e.isPopover?(E(),V(R,{key:0},{default:N(()=>[H(O,{asChild:"",class:L(m(T)!==0?m(F)({borderColor:"{colors.primary} !important"}):null)},{default:N(()=>[Y("button",null,[H(P,{"aria-hidden":"true"}),Y("span",null,de(e.field.label),1),H(D,{class:L(["select",m(F)({width:"1rem !important",height:"1rem !important",position:"absolute",top:"1.5rem",right:"1.5rem"})]),"aria-hidden":"true"},null,8,["class"])]),H($,{value:m(T).toString()},null,8,["value"])]),_:1},8,["class"]),H(B,null,{default:N(()=>[Y("fieldset",null,[H(z,{id:`checkbox_legend_${e.field.identifier}`,field:e.field,name:e.name,tag:"legend","data-label-like":"",class:L(m(fn)())},null,8,["id","field","name","class"]),(E(!0),U(Ae,null,ft(m(a),(ne,se)=>(E(),U("div",{key:se,class:L([m(rn)({justify:"start",gap:"1rem",alignItems:"center"}),m(F)({width:"100%"})])},[ne.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${se}`,class:L(m(fn)())},de(ne.label||ne.value),11,Vdt)):ae("",!0),H(j,{id:`${e.field.identifier}_${se}`,name:e.name,value:ne.value,checked:m(_).includes(ne.value),"onUpdate:checked":ce=>w(ne.value,ce),class:L(m(F)({width:"100%",textAlign:"start",fontSize:"{fontSizes.sm}",padding:"1rem 1.5rem 1rem 3.5rem",transition:"{easings.global}",_before:{backgroundColor:"{colors.white}"},"&::before, &::after":{top:"50%",left:"1rem",transform:"translate(0,-50%)"},_hover:{bgColor:"{colors.primary}",color:"{colors.white}",_before:{borderColor:"{colors.secondary}",boxShadow:"0 0 0 0.2rem {colors.white}, 0 0 0 0.4rem {colors.black}"}},_checked:{_before:{backgroundColor:"{colors.primary}"}}}))},{default:N(()=>[st(de(ne.label||ne.value),1)]),_:2},1032,["id","name","value","checked","onUpdate:checked","class"])],2))),128))])]),_:1})]),_:1})):(E(),U("fieldset",jdt,[H(z,{id:`checkbox_legend_${e.field.identifier}`,field:e.field,name:e.name,tag:"legend","data-label-like":""},null,8,["id","field","name"]),m(c)?(E(),V(m(k6),{key:0,"onUpdate:open":A[0]||(A[0]=ne=>o.value=!m(o))},{default:N(()=>[H(m(M6),{forceMount:""},{default:N(()=>[Y("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`},[(E(!0),U(Ae,null,ft(m(d),(ne,se)=>(E(),U(Ae,null,[ne.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${se}`,class:L(m(fn)())},de(ne.label||ne.value),11,Hdt)):ae("",!0),H(j,{"data-tag-item":"",id:`${e.field.identifier}_${se}`,name:e.name,value:ne.value,checked:m(_).includes(ne.value),"onUpdate:checked":ce=>w(ne.value,ce)},{default:N(()=>[st(de(ne.label||ne.value),1)]),_:2},1032,["id","name","value","checked","onUpdate:checked"])],64))),256))],8,Udt)]),_:1}),m(c)&&m(a)?.length>3?(E(),V(m(E6),{key:0,asChild:""},{default:N(()=>[H(J,{link:{text:m(o)?k.$t("common.seeMore"):k.$t("common.seeLess")},variante:{classes:"btnTxt",bgColor:"black"},type:"button"},null,8,["link"])]),_:1})):ae("",!0)]),_:1})):(E(),U("div",{key:1,role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`},[(E(!0),U(Ae,null,ft(m(a),(ne,se)=>(E(),U("div",Wdt,[ne.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${se}`,class:L(m(fn)())},de(ne.label||ne.value),11,Gdt)):ae("",!0),H(j,{class:"checkbox",id:`${e.field.identifier}_${se}`,name:e.name,value:ne.value,checked:m(_).includes(ne.value),"onUpdate:checked":ce=>w(ne.value,ce)},{default:N(()=>[st(de(ne.label||ne.value),1)]),_:2},1032,["id","name","value","checked","onUpdate:checked"])]))),256))],8,qdt))]))]),_:1},16)):ae("",!0)}}}),Kdt=Q({__name:"T3FormFieldSingleselect",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{value:i,setValue:a,handleChange:o}=ri(()=>n.name),{$emit:s}=vt(),l=W(()=>Nw(n.field.properties.options).value),u=W(()=>n.field.properties?.prependOptionLabel??n.field.placeholder!==""?n.field.placeholder:"-- Sélectionner --"),c=G(u.value);Je(i,()=>{c.value=ur(i.value)?u.value:i.value,c.value=Array.isArray(c.value)?c.value[0]:c.value},{immediate:!0});const d=()=>{f(),s("filters:onFieldValueChanged",{...n.field})},f=()=>{const h=c.value===u.value?"":c.value;
982o(h),r("update:value",h)};return Ot(()=>{l.value?.length===1&&!ur(n.field.properties?.queryParamName)&&(c.value=l.value[0]?.value),ur(n.field.value)||(c.value=Array.isArray(n.field.value)?n.field.value[0]:n.field.value),f()}),(h,p)=>{const g=sX,v=TX,b=$A,x=FA,_=BA,w=zA,C=OA,T=LA,k=IA,A=Ta;return m(l).length?(E(),V(A,rt({key:0},n,{class:m(F)({"& [data-radix-popper-content-wrapper]":{position:"absolute !important",transform:"none !important",width:"100%",top:"100% !important"}})}),{input:N(P=>[H(k,{modelValue:m(c),"onUpdate:modelValue":[p[0]||(p[0]=D=>$t(c)?c.value=D:null),d],name:e.name,id:e.field.identifier,"aria-describedby":e.field.properties?.elementDescription?"description-"+e.field.identifier:null,"aria-invalid":P.showErrorMessage?!0:null},{default:N(()=>[H(b,{"aria-invalid":P.showErrorMessage?!0:null,class:L(m(F)({padding:{base:"0.5rem",md:"1.5rem"}}))},{default:N(()=>[H(g),H(v,{"aria-hidden":"true",class:L([m(gp)(),m(vn)({fill:"{colors.black}",size:"3rem"}),m(F)({bgColor:"{colors.secondary}",rotate:"-90deg",padding:"0.5rem",_print:{bgColor:"{colors.white}"}})])},null,8,["class"])]),_:1},8,["aria-invalid","class"]),H(T,{disabled:""},{default:N(()=>[H(C,{style:{"user-select":"none"},position:"popper",bodyLock:!1},{default:N(()=>[H(w,{as:"ul"},{default:N(()=>[("isEmptyCustom"in h?h.isEmptyCustom:m(ur))(e.field.properties?.queryParamName)?(E(),V(_,{key:0,value:m(u),as:"li"},{default:N(()=>[H(x,null,{default:N(()=>[st(de(m(u)),1)]),_:1})]),_:1},8,["value"])):ae("",!0),(E(!0),U(Ae,null,ft(m(l),(D,$)=>(E(),V(_,{key:$,value:D.value,as:"li"},{default:N(()=>[H(x,null,{default:N(()=>[st(de(D.label.slice(0,140)),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})]),_:2},1032,["modelValue","name","id","aria-describedby","aria-invalid"])]),_:1},16,["class"])):ae("",!0)}}}),Ydt={key:0},Xdt=["aria-labelledby","aria-describedby"],Jdt={"data-tag-item":""},Qdt=["for"],eft={key:1},tft=["aria-labelledby","aria-describedby"],nft={"data-checkbox-container":""},rft=["for"],ift=Q({__name:"T3FormFieldMultiselect",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{$emit:i}=vt(),{getdescribedBy:a}=lI(),o=W(()=>Nw(n.field.properties.options).value),s=W(()=>n.field?.identifier.includes("_popin")),l=G(!1),u=Yt(),c=G(u.backendLayout),d=W(()=>{if(c.value==="list"||s.value)return l.value=!0,!0}),f=W(()=>l.value?o.value.slice(0,3):o.value),{remove:h,push:p,fields:g,replace:v}=AZ(_t(n.name)),{value:b}=ri(_t(n.name)),x=G([]),_=G(No(Ii(n.field.value)?n.field.value:[n.field.value]),x.value);Je(b,()=>{_.value=Ii(_t(b.value))?_t(b.value):[_t(b.value)]},{immediate:!0});const w=(k,A)=>{C(k,A),i("filters:onFieldValueChanged",{...n.field})},C=(k,A)=>{if(A)_.value.push(k);else{let P=_.value.indexOf(k);P>=0&&delete _.value[P]}_.value=hv(No(_.value)).value,v(_.value),r("update:value",_.value)},T=W(()=>No(_.value)?.length);return(k,A)=>{const P=xa("i-moteurForm-thematiques"),D=xa("i-moteurForm-quartiers"),$=uI,O=Bre,z=k1,j=Dp,B=xA,R=E1,J=T1,K=Ta;return E(),V(K,rt(n,{"show-label":!1}),{input:N(Z=>[Y("pre",null,de(m(b)),1),H(J,null,{default:N(()=>[H(z,{"data-form-popover":"",class:L(m(T)!==0?"active_filters":null)},{default:N(()=>[e.field.cssClass==="type_contenu"?(E(),V(P,{key:0,class:L(m(vn)({fill:"black",size:"2rem"})),"aria-hidden":"true"},null,8,["class"])):ae("",!0),e.field.cssClass==="themes"?(E(),V(D,{key:1,class:L(m(vn)({fill:"black",size:"2rem"})),"aria-hidden":"true"},null,8,["class"])):ae("",!0),Y("span",null,de(e.field.label),1),H($,{value:m(T).toString()},null,8,["value"]),H(O,{"aria-hidden":"true",class:L([m(vn)({size:"2rem"}),m(F)({"& [data-name=third]":{fill:"transparent"},"& *:not([data-name=third])":{fill:"black"}})])},null,8,["class"])]),_:1},8,["class"]),H(R,{class:"popover_content"},{default:N(()=>[m(d)?(E(),U("fieldset",Ydt,[H(j,{field:e.field,id:`checkbox_legend_${e.field.identifier}`,name:e.name,tag:"legend",class:L(m(fn)())},null,8,["field","id","name","class"]),Y("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":m(a)(Z,e.field)},[(E(!0),U(Ae,null,ft(m(f),(ne,se)=>(E(),U("div",Jdt,[ne.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${se}`,class:L(m(fn)())},de(ne.label),11,Qdt)):ae("",!0),H(B,{class:"tag_item",id:`${e.field.identifier}_${se}`,name:e.name,value:ne.value,checked:m(_).includes(ne.value),"onUpdate:checked":ce=>w(ne.value,ce)},{default:N(()=>[st(de(ne.label||ne.value),1)]),_:2},1032,["id","name","value","checked","onUpdate:checked"])]))),256))],8,Xdt)])):(E(),U("fieldset",eft,[H(j,{field:e.field,id:`checkbox_legend_${e.field.identifier}`,name:e.name,tag:"legend",class:L(m(fn)())},null,8,["field","id","name","class"]),Y("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":m(a)(Z,e.field)},[(E(!0),U(Ae,null,ft(m(o),(ne,se)=>(E(),U("div",nft,[ne.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${se}`,class:L(m(fn)())},de(ne.label),11,rft)):ae("",!0),H(B,{class:"checkbox",id:`${e.field.identifier}_${se}`,name:e.name,value:ne.value,checked:m(_).includes(ne.value),"onUpdate:checked":ce=>w(ne.value,ce)},{default:N(()=>[st(de(ne.label||ne.value),1)]),_:2},1032,["id","name","value","checked","onUpdate:checked"])]))),256))],8,tft)]))]),_:2},1024)]),_:2},1024)]),_:1},16)}}}),aft=["value","id","name","type","placeholder","autocomplete","aria-invalid"],oft=Q({__name:"T3FormFieldPassword",props:{name:{},field:{}
982,type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{value:i,setValue:a}=ri(()=>n.name),o=G(!1),s=d=>{a(d),r("update:value",d)},l=G(),{focused:u}=KSe(l),c=()=>{o.value=!o.value,u.value=!0};return(d,f)=>{const h=Tn,p=Ta;return E(),V(p,un(pn(n)),{input:N(g=>[Y("div",{class:L(m(F)({position:"relative"}))},[Y("input",{value:m(i),ref_key:"inputRef",ref:l,id:e.field.identifier,name:e.field.name,type:m(o)?"text":"password",placeholder:e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete,onChange:f[0]||(f[0]=v=>s(v.target.value)),class:L(m(F)({paddingRight:"4.5rem"})),"aria-invalid":g.showErrorMessage?!0:null},null,42,aft),H(h,{type:"button",title:`${m(o)?d.$t("common.hide"):d.$t("common.show")} ${d.$t("form.password.content")}`,link:{text:`${m(o)?d.$t("common.hide"):d.$t("common.show")} ${d.$t("form.password.content")}`},onClick:c,variante:{classes:"btnClose",size:"sm"},showSr:!0,picto:"showField",class:L(m(F)({position:"absolute",top:"0.5rem",right:"0.5rem"}))},null,8,["title","link","class"])],2)]),_:1},16)}}}),sft=["id","name","required"],WU=Q({__name:"T3FormFieldHidden",props:{name:{},field:{},type:{},showLabel:{type:Boolean,default:!1},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean}},setup(e){const t=e,{value:n,setValue:r}=ri(()=>t.name),i=W(()=>t.field.properties?.fluidAdditionalAttributes?.required??t.field.validators.required??t.field.validators?.NotEmpty);return r(t.field.value,!1),(a,o)=>_o((E(),U("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>$t(n)?n.value=s:null),id:e.field.identifier,name:e.name,type:"hidden",required:m(i)},null,8,sft)),[[s2,m(n)]])}}),lft={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function goe(e){return lft}let uft;function cft(e){return uft?.get(e)}let dft;function fft(e){return dft?.get(e)}let hft;function pft(e,t){return hft?.get(e)?.get(t)}function yoe(e){const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function Bs(e,t,n,r,i){const a=i&&"input"in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??yoe(a),l={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},u=e.kind==="schema",c=i?.message??e.message??pft(e.reference,l.lang)??(u?fft(l.lang):null)??r.message??cft(l.lang);c!==void 0&&(l.message=typeof c=="function"?c(l):c),u&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}function mft(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function gft(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function Vc(e){return e["~standard"]={version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},goe())},e}function voe(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function cI(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function _oe(e,t){return Vc({kind:"schema",type:"array",reference:_oe,expects:"Array",async:!1,item:e,message:t,"~run"(n,r){const i=n.value;if(Array.isArray(i)){n.typed=!0,n.value=[];for(let a=0;a<i.length;a++){const o=i[a],s=this.item["~run"]({value:o},r);if(s.issues){const l={type:"array",origin:"value",input:i,key:a,value:o};for(const u of s.issues)u.path?u.path.unshift(l):u.path=[l],n.issues?.push(u);if(n.issues||(n.issues=s.issues),r.abortEarly){n.typed=!1;break}}s.typed||(n.typed=!1),n.value.push(s.value)}}else Bs(this,"type",n,r);return n}})}function boe(e){return Vc({kind:"schema",type:"boolean",reference:boe,expects:"boolean",async:!1,message:e,"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:Bs(this,"type",t,n),t}})}function ME(e,t){return Vc({kind:"schema",type:"literal",reference:ME,expects:yoe(e),async:!1,literal:e,message:t,"~run"(n,r){return mft(n.value,this.literal)?n.typed=!0:Bs(this,"type",n,r),n}})}function xoe(e){return Vc({kind:"schema",type:"number",reference:xoe,expects:"number",async:!1,message:e,"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:Bs(this,"type",t,n),t}}
982)}function Vw(e,t){return Vc({kind:"schema",type:"object",reference:Vw,expects:"Object",async:!1,entries:e,message:t,"~run"(n,r){const i=n.value;if(i&&typeof i=="object"){n.typed=!0,n.value={};for(const a in this.entries){const o=this.entries[a];if(a in i||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){const s=a in i?i[a]:cI(o),l=o["~run"]({value:s},r);if(l.issues){const u={type:"object",origin:"value",input:i,key:a,value:s};for(const c of l.issues)c.path?c.path.unshift(u):c.path=[u],n.issues?.push(c);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value[a]=l.value}else if(o.fallback!==void 0)n.value[a]=voe(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(Bs(this,"key",n,r,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:i,key:a,value:i[a]}]}),r.abortEarly))break}}else Bs(this,"type",n,r);return n}})}function Ur(e,t){return Vc({kind:"schema",type:"optional",reference:Ur,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=cI(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}})}function woe(e,t){return Vc({kind:"schema",type:"strict_object",reference:woe,expects:"Object",async:!1,entries:e,message:t,"~run"(n,r){const i=n.value;if(i&&typeof i=="object"){n.typed=!0,n.value={};for(const a in this.entries){const o=this.entries[a];if(a in i||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){const s=a in i?i[a]:cI(o),l=o["~run"]({value:s},r);if(l.issues){const u={type:"object",origin:"value",input:i,key:a,value:s};for(const c of l.issues)c.path?c.path.unshift(u):c.path=[u],n.issues?.push(c);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value[a]=l.value}else if(o.fallback!==void 0)n.value[a]=voe(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(Bs(this,"key",n,r,{input
982:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:i,key:a,value:i[a]}]}),r.abortEarly))break}if(!n.issues||!r.abortEarly){for(const a in i)if(!Object.prototype.hasOwnProperty.call(this.entries,a)){Bs(this,"key",n,r,{input:a,expected:"never",path:[{type:"object",origin:"key",input:i,key:a,value:i[a]}]});break}}}else Bs(this,"type",n,r);return n}})}function $a(e){return Vc({kind:"schema",type:"string",reference:$a,expects:"string",async:!1,message:e,"~run"(t,n){return typeof t.value=="string"?t.typed=!0:Bs(this,"type",t,n),t}})}function GU(e){let t;if(e)for(const n of e)if(t)for(const r of n.issues)t.push(r);else t=n.issues;return t}function Soe(e,t){return Vc({kind:"schema",type:"union",reference:Soe,expects:gft(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,"~run"(n,r){let i,a,o;for(const s of this.options){const l=s["~run"]({value:n.value},r);if(l.typed)if(l.issues)a?a.push(l):a=[l];else{i=l;break}else o?o.push(l):o=[l]}if(i)return i;if(a){if(a.length===1)return a[0];Bs(this,"type",n,r,{issues:GU(a)}),n.typed=!0}else{if(o?.length===1)return o[0];Bs(this,"type",n,r,{issues:GU(o)})}return n}})}function yft(e,t,n){const r=e["~run"]({value:t},goe());return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function vft(e){return null}const Do={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose
982:Number.POSITIVE_INFINITY},ZU={silent:{level:-1},fatal:{level:Do.fatal},error:{level:Do.error},warn:{level:Do.warn},log:{level:Do.log},info:{level:Do.info},success:{level:Do.success},fail:{level:Do.fail},ready:{level:Do.info},start:{level:Do.info},box:{level:Do.info},debug:{level:Do.debug},trace:{level:Do.trace},verbose:{level:Do.verbose}};function xS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function AE(e,t,n=".",r){if(!xS(t))return AE(e,{},n);const i=Object.assign({},t);for(const a in e){if(a==="__proto__"||a==="constructor")continue;const o=e[a];o!=null&&(Array.isArray(o)&&Array.isArray(i[a])?i[a]=[...o,...i[a]]:xS(o)&&xS(i[a])?i[a]=AE(o,i[a],(n?`${n}.`:"")+a.toString()):i[a]=o)}return i}function _ft(e){return(...t)=>t.reduce((n,r)=>AE(n,r,""),{})}const bft=_ft();function xft(e){return Object.prototype.toString.call(e)==="[object Object]"}function wft(e){return!(!xft(e)||!e.message&&!e.args||e.stack)}let wS=!1;const KU=[];class pa{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||ZU;this.options=bft({...t,defaults:{...t.defaults},level:SS(t.level,n),reporters:[...t.reporters||[]]},{types:ZU,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const i={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=SS(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new pa({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){wS=!0}resumeLogs(){wS=!1;const t=KU.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(wS){KU.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const i={date:new Date,args:[],...t,level:SS(t.level,this.options.types)};!r&&n.length===1&&wft(n[0])?Object.assign(i,n[0]):i.args=[...n],i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split(` 983`)),i.args.push(` 984`+i.additional.join(` 985`)),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";const a=(s=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}s&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);const o=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,o<this.options.throttle)try{const s=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLog.serialized===s;if(this._lastLog.serialized=s,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(a,this.options.throttle);return}}catch{}a(!0)}_log(t){for(const n of this.options.reporters)n.log(t,{options:this.options})}}function SS(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}pa.prototype.add=pa.prototype.addReporter;pa.prototype.remove=pa.prototype.removeReporter;pa.prototype.clear=pa.prototype.removeReporter;pa.prototype.withScope=pa.prototype.withTag;pa.prototype.mock=pa.prototype.mockTypes;pa.prototype.pause=pa.prototype.pauseLogs;pa.prototype.resume=pa.prototype.resumeLogs;function Sft(e={}){return new pa(e)}class Cft{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const n=this._getLogFn(t.level),r=t.type==="log"?"":t.type,i=t.tag||"",o=` 986 background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor}; 987 border-radius: 0.5em; 988 color: white; 989 font-weight: bold; 990 padding: 2px 0.5em;
991 `,s=`%c${[i,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${s}%c ${t.args[0]}`,o,"",...t.args.slice(1)):n(s,o,...t.args)}}function Coe(e={}){return Sft({reporters:e.reporters||[new Cft({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}Coe();const PE=Coe({level:3,defaults:{tag:"nuxt-scripts"}});function YU(e){e.$scripts||(e.$scripts={})}function Tft(){return Ga().public["nuxt-scripts"]}function kft(e){return e.key||e.src||(typeof e.innerHTML=="string"?e.innerHTML:"")}function Eft(e,t){if(e=typeof e=="string"?{src:e}:e,t=Gd(t,Tft()?.defaultScriptOptions),t.partytown){const v=e.src;if(!v)throw new Error("useScript with partytown requires a src");mo({script:[{src:v,type:"text/partytown"}]});const b=vt();YU(b);const x=b.$scripts[v];if(x)return x;const _=G("loaded");let w=()=>{},C=!1,T;const k=()=>{C||(C=!0,w(),b.$scripts[v]===T&&delete b.$scripts[v])};return T={id:v,status:_,load:()=>Promise.resolve({}),remove:()=>(k(),!1),entry:void 0},b.$scripts[v]=T,w=b.hooks.hook("app:unmount",k),T}t.trigger&&typeof t.trigger=="object"&&!("then"in t.trigger)&&vft(t.trigger);const n=vt(),r=String(kft(e));if(t.head=t.head||aM(),!t.head)throw new Error("useScript() has been called without Nuxt context.");t.head.hooks,YU(n);const i=!!n.$scripts?.[r],a=t._validate?.();(t.trigger==="onNuxtReady"||t.trigger==="client")&&(t.warmupStrategy===void 0&&(t.warmupStrategy="preload"),t.trigger==="onNuxtReady"&&(t.trigger=sv));const o={...t},s=gR(e,o);if(delete o.eventContext,i)return s;up(s),s.toJSON=()=>({id:s.id,status:s.status.value});const l=new Set;let u=!1;const c=s.status;let d=()=>{};const f=v=>{u?v():l.add(v)},h=()=>{if(!u){u=!0;for(const v of l)v();l.clear(),n.$scripts[r]===s&&delete n.$scripts[r]}};let p=s.remove,g=s.load;return f(()=>d()),s.remove=()=>{const v=p();return h(),v},s.load=async()=>a?Promise.reject(a):g(),s.reload=async()=>{if(a)return Promise.reject(a);p();const v=typeof e=="string"?{src:e,key:`${r}-${Date.now()}`}:{...e,key:`${r}-${Date.now()}`},b={...t,trigger:"client"},x=gR(v,b);return delete b.eventContext,p=x.remove,g=x.load,d(),d=Je(x.status,_=>c.value=_,{flush:"sync",immediate:!0}),s.entry=x.entry,g()},n.$scripts[r]=s,f(n.hooks.hook("app:unmount",()=>{s.remove()})),s}function Mft(e){const t=G("awaitingLoad"),n=[];let r=!1;const i=e.use?.()||{},a={status:t,proxy:i,async load(){if(!(r||t.value!=="awaitingLoad")){r=!0,t.value="loading";try{e.clientInit&&(console.log(`[NpmScriptStub] Initializing ${e.key}...`),await e.clientInit(),console.log(`[NpmScriptStub] ${e.key} initialized successfully`)),t.value="loaded",n.splice(0).forEach(o=>{try{o(i)}catch(s){PE.error(`[NpmScriptStub] Error in onLoaded callback for ${e.key}:`,s)}})}catch(o){n.splice(0),PE.error(`[NpmScriptStub] Failed to initialize ${e.key}:`,o),t.value="error"}}},onLoaded(o){t.value==="loaded"?o(i):t.value!=="error"&&n.push(o)},get $script(){return{status:t.value,load:a.load}}};if(e.trigger)if(typeof e.trigger=="function"){const o=e.trigger(()=>a.load());o&&typeof o=="object"&&"then"in o&&o.then(()=>a.load())}else e.trigger==="manual"||(e.trigger==="onNuxtReady"?Cn(async()=>{const{onNuxtReady:o}=await Promise.resolve().then(()=>_ve);return{onNuxtReady:o}},void 0,import.meta.url).then(({onNuxtReady:o})=>{o(()=>a.load())}):e.trigger==="client"&&a.load());else a.load();return a}const Kf=Soe([ME("granted"),ME("denied")]),Aft=Vw({ad_storage:Ur(Kf),ad_user_data:Ur(Kf),ad_personalization:Ur(Kf),analytics_storage:Ur(Kf),functionality_storage:Ur(Kf),personalization_storage:Ur(Kf),security_storage:Ur(Kf),wait_for_update:Ur(xoe()),region:Ur(_oe($a()))}),Pft=Vw({user_email:Ur($a()),ip_address:Ur($a()),user_phone_number:Ur($a()),user_hashed_email:Ur($a()),user_hashed_phone_number:Ur($a()),firstname:Ur($a()),lastname:Ur($a()),geo_city:Ur($a()),geo_region:Ur($a()),geo_postal_code:Ur($a()),geo_country:Ur($a()),age:Ur($a())});({...Pft?.entries||{}});const Dft=woe(Aft.entries);function Ift(e,t,n){const r=yft(Dft,t);if(!r.success)for(const i of r.issues)e.warn(`${n}: ${i.message} (path: ${i.path?.map(a=>a.key).join(".")||"<root>"})`)}function $ft(e,t,n){if(e.consent)return;const r=PE.withTag(n),i=(a,o)=>{Ift(r,o,`consent.${a}
991()`),t.push(e.proxy,a,o)};e.consent={default:a=>i("default",a),update:a=>i("update",a)}}function Lft(e){return(Ga().public.scripts||{})[e]}function Rft(e,t,n){const r=Lft(e),i=Gd(n||{},typeof r=="object"?r:{}),a=t(i,{scriptInput:i.scriptInput});if(a.scriptMode==="npm")return Mft({key:String(e),use:a.scriptOptions?.use,clientInit:a.clientInit,trigger:i.scriptOptions?.trigger});let o=a.scriptInput;const s=i.scriptInput?.src,l=a.scriptInput?.src;if(s&&l&&typeof l=="string"&&typeof s=="string"){const h=kc(l),p=kc(s),g=Cm(h.search||""),v=Cm(p.search||""),b={...g,...v},x=p.href?.split("?")[0]||s;o={...a.scriptInput||{},src:ov(x,b)}}const u=Gd(o,i.scriptInput,{key:e}),c={...i?.scriptOptions,...a.scriptOptions};c.use&&(c.use=c.use);const d=c.beforeInit;c.beforeInit=()=>{d?.(),a.clientInit?.()};const f=Eft(u,c);return a.gcmConsent&&$ft(f,a.gcmConsent,String(e)),f}function Oft(e){return Rft("cloudflareTurnstile",()=>({scriptInput:{src:"https://challenges.cloudflare.com/turnstile/v0/api.js"},scriptOptions:{use:()=>window.turnstile}}),e)}function dI(e,t){return qa()?(vo(e,t),!0):!1}const Bft=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fft=e=>e!=null,zft=Object.prototype.toString,Nft=e=>zft.call(e)==="[object Object]",CS=()=>{};function a4(e){return Array.isArray(e)?e:[e]}function Vft(e){return $n()}function jft(e,t=!0,n){Vft()?Ot(e,n):t?e():At(e)}function Uft(e,t,n){return Je(e,t,{...n,immediate:!0})}const Toe=Bft?window:void 0;function o4(e){var t;const n=Le(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Hft(...e){const t=(r,i,a,o)=>(r.addEventListener(i,a,o),()=>r.removeEventListener(i,a,o)),n=W(()=>{const r=a4(Le(e[0])).filter(i=>i!=null);return r.every(i=>typeof i!="string")?r:void 0});return Uft(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(a=>o4(a)))!==null&&r!==void 0?r:[Toe].filter(a=>a!=null),a4(Le(n.value?e[1]:e[0])),a4(m(n.value?e[2]:e[1])),Le(n.value?e[3]:e[2])]},([r,i,a,o],s,l)=>{if(!r?.length||!i?.length||!a?.length)return;const u=Nft(o)?{...o}:o,c=r.flatMap(d=>i.flatMap(f=>a.map(h=>t(d,f,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}function qft(){const e=Bt(!1),t=$n();return t&&Ot(()=>{e.value=!0},t),e}function Wft(e){const t=qft();return W(()=>(t.value,!!e()))}function Gft(e,t,n={}){const{root:r,rootMargin:i,threshold:a=0,window:o=Toe,immediate:s=!0}=n,l=Wft(()=>o&&"IntersectionObserver"in o),u=W(()=>a4(Le(e)).map(o4).filter(Fft));let c=CS;const d=Bt(s),f=l.value?Je(()=>[u.value,o4(r),Le(i),d.value],([p,g,v])=>{if(c(),!d.value||!p.length)return;const b=new IntersectionObserver(t,{root:o4(g),rootMargin:v,threshold:a});p.forEach(x=>x&&b.observe(x)),c=()=>{b.disconnect(),c=CS}},{immediate:s,flush:"post"}):CS,h=()=>{c(),f(),d.value=!1};return dI(h),{isSupported:l,isActive:d,pause(){c(),d.value=!1},resume(){d.value=!0},stop:h}}function Zft(e){let t;return new Promise(n=>{t=Gft(e,r=>{for(const i of r)i.isIntersecting&&n(!0)},{rootMargin:"30px 0px 0px 0px",threshold:0}),dI(()=>n(!1))}).finally(()=>{t.stop()})}function Kft(e){const{el:t,trigger:n}=e,r=(Array.isArray(e.trigger)?e.trigger:[e.trigger]).filter(Boolean);if(!n||r.includes("immediate")||r.includes("onNuxtReady"))return"onNuxtReady";if(r.some(o=>["visibility","visible"].includes(o)))return t?Zft(t):new Promise(()=>{});const i={},a=new Promise(o=>{const s=typeof t<"u"?t:document.body,l=Hft(s,r,()=>{l(),o(!0)},{once:!0,passive:!0});jft(()=>{Je(s,u=>{u&&r.forEach(c=>{u.dataset[`script_${c}`]&&(l(),o(!0))})},{immediate:!0})}),dI(()=>o(!1))});return Object.assign(a,{ssrAttrs:i})}const Yft={__name:"NuxtTurnstile",props:{modelValue:{type:String,required:!1},trigger:{type:[String,Array,Boolean],required:!1},element:{type:String,required:!1,default:"div"},siteKey:{type:String,required:!1},options:{type:Object,required:!1,default:()=>({})},resetInterval:{type:Number,required:!1,default:1e3*250}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=Ga().public.turnstile,o=G(),s=G(!1);let l,u;const{onLoaded:c}=Oft({scriptOptions:{trigger:Kft({trigger:r.trigger,el:o})}});let d,f;const h=()=>{l&&d(l)},p=()=>{s.value=!0,clearInterval(u),l&&f(l)};return Ot(()=>{c(async({render:g,reset:v,remove:b})=>{d=v,f=b,l=await g(o.value,{sitekey:r.siteKey||a.siteKey,callback:x=>i("update:modelValue",x),...r.options}),u=setInterval(h,r.resetInterval),s.value&&p()})}),Wa(p),t({reset:h}),(g,v)=>(E(),V(yn(e.element),{ref_key:"el",ref:o},null,512))}},Xft={key:2},Jft=Q({__name:"T3FormFieldHcaptcha",props:{name:{},field:{}
991,type:{}},setup(e){const{initialData:t}=Yt(),n=e,{value:r,setValue:i,resetField:a}=ri(()=>n.name),o=G(),s=G(),l=(u,c)=>{i(u,!1)};return(u,c)=>{const d=Ta;return m(t)?.turnstileCaptchaPublicKey||m(t)?.hcaptchaPublicKey?(E(),V(d,rt({key:0},n,{class:"ligne_form"}),{input:N(()=>[m(t)?.turnstilePublicKey?(E(),V(Yft,{key:0,ref_key:"turnstileRef",ref:s,modelValue:m(r),"onUpdate:modelValue":c[0]||(c[0]=f=>$t(r)?r.value=f:null),"site-key":m(t).turnstilePublicKey},null,8,["modelValue","site-key"])):m(t)?.hcaptchaPublicKey?(E(),V(m(Gk),{key:1,ref_key:"hCaptchaRef",ref:o,sitekey:m(t).hcaptchaPublicKey,onVerify:l},null,8,["sitekey"])):(E(),U("p",Xft,de(u.$t("form.captcha.missingPublicKey")),1))]),_:1},16)):ae("",!0)}}}),Qft={key:0},eht=["for"],tht={key:1},nht=["for"],rht=Q({__name:"T3FormFieldRadiobutton",props:{name:{},field:{}},setup(e){const t=e,n=W(()=>Nw(t.field.properties.options).value),{value:r}=ri(()=>t.name),i=G(!1),a=Yt(),o=G(a.backendLayout),s=W(()=>{if(o.value==="list")return i.value=!0,!0}),l=W(()=>i.value?n.value.slice(0,3):n.value);return(u,c)=>{const d=Dp,f=QAe,h=KAe,p=Ta;return E(),V(p,rt(t,{"show-label":!1}),{input:N(g=>[m(s)?(E(),U("fieldset",Qft,[H(d,{field:e.field,name:e.name,tag:"legend",class:"label_like"},null,8,["field","name"]),H(m(k6),{class:"collapsible","onUpdate:open":c[1]||(c[1]=v=>i.value=!m(i))},{default:N(()=>[H(m(M6),{forceMount:""},{default:N(()=>[H(h,{modelValue:m(r),"onUpdate:modelValue":c[0]||(c[0]=v=>$t(r)?r.value=v:null),"aria-invalid":g.showErrorMessage?!0:null},{default:N(()=>[(E(!0),U(Ae,null,ft(m(l),(v,b)=>(E(),U("div",{class:L(m(s)?"tag":"ligne_form_radio")},[v.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${b}`,class:L(m(fn)())},de(v.label??v.value),11,eht)):ae("",!0),H(f,{class:L(m(s)?"tag_item":"radio"),id:`${e.field.identifier}_${b}`,name:e.name,value:v.value},{default:N(()=>[st(de(v.label??v.value),1)]),_:2},1032,["class","id","name","value"])],2))),256))]),_:1},8,["modelValue","aria-invalid"])]),_:2},1024),m(s)&&m(n)?.length>3?(E(),V(m(E6),{key:0,class:"btn_txt btn_collapsible"},{default:N(()=>[Y("span",null,de(m(i)?u.$t("common.seeMore"):u.$t("common.seeLess")),1)]),_:1})):ae("",!0)]),_:2},1024)])):(E(),U("fieldset",tht,[H(d,{field:e.field,name:e.name,tag:"legend","data-label-like":""},null,8,["field","name"]),H(h,{modelValue:m(r),"onUpdate:modelValue":c[2]||(c[2]=v=>$t(r)?r.value=v:null),"aria-invalid":g.showErrorMessage?!0:null},{default:N(()=>[(E(!0),U(Ae,null,ft(m(n),(v,b)=>(E(),U("div",null,[v.label?(E(),U("label",{key:0,for:`${e.field.identifier}_${b}`,class:L(m(fn)())},de(v.label??v.value),11,nht)):ae("",!0),H(f,{class:"radio",id:`${e.field.identifier}_${b}`,name:e.name,value:v.value},{default:N(()=>[st(de(v.label??v.value),1)]),_:2},1032,["id","name","value"])]))),256))]),_:1},8,["modelValue","aria-invalid"])]))]),_:1},16)}}}),Kv=Q({__name:"T3FormFieldList",props:{type:{},i18n:{},elements:{},customComponents:{},componentCustomClass:{default:""},labelCustomClass:{default:""},inputCustomClass:{default:""},legend:{},legendSr:{type:Boolean,default:!1},isPopover:{type:Boolean,default:!1},classes:{}},setup(e){const t=e,n=W(()=>t.type?.toLowerCase()??t.field?.type?.toLowerCase()??"fieldset");function r(i){switch(uB(i.type)){case"text":case"telephone":case"email":return urt;case"textarea":return drt;case"rte":return udt;case"session":return hdt;case"statictext":return gdt;case"submit":return xa("T3FormFieldCta");case"checkbox":return ydt;case"date":return xdt;case"date_period":case"dateperiod":return Mdt;case"datecalendar":return Adt;case"fileupload":return Ddt;case"imageupload":return Ldt;case"multicheckbox":return Zdt;case"singleselect":return Kdt;case"multiselect":return ift;case"password":return oft;case"honeypot":return WU;case"hidden":return WU;case"hcaptcha":return Jft;case"radiobutton":return rht;default:console.warn(`Le champ de type ${uB(i.type)} n'est pas dans la liste des champs à afficher`);break}}return(i,a)=>{const o=Kv;return E(),V(yn(["fieldset"].includes(m(n))?"fieldset":"div"),{class:L([["gridrow"].includes(m(n))?m(vi)({columns:{base:1,sm:2,md:e.elements.length}}):m(Vn)({alignItems:"initial"}),m(F)({width:"100%"})])},{default:N(()=>[e.type==="fieldset"&&e.legend?(E(),U("legend",{key:0,class:L(e.legendSr?m(fn)():null)},de(e.legend),3)):ae("",!0),(E(!0),U(Ae,null,ft(e.elements,s=>(E(),U(Ae,{key:s.identifier},[["fieldset","gridrow"].includes(s.type.toLowerCase())?(E(),V(o,{key:0,field:s,type:s.type,elements:s.elements,legend:s.label,"legend-sr":!s.properties?.renderingOptions?.visible,"custom-components":e.customComponents,"component-custom-class":e.componentCustomClass,"label-custom-class":e.labelCustomClass,"input-custom-class":e.inputCustomClass,class:L([["gridrow"].includes(s.type.toLowerCase())?m(vi)({columns:e.elements.length}):null,["fieldset","gridrow"].includes(s.type.toLowerCase())?m(F)({paddingLeft:"2rem",borderLeft:"0.3rem solid hsla(var(--cim_primary_color_h), var(--cim_primary_color_s), var(--cim_primary_color_l), 15%)",marginBottom:"2rem"}):null])},null,8,["field","type","elements","legend","legend-sr","custom-components","component-custom-class","label-custom-class","input-custom-class","class"])):(E(),V(yn(r(s)),{key:1,"data-field":s?.cssClass,name:s.name,field:s,title:e.legendSr?s.label:null,"component-custom-class":`${e.componentCustomClass} ${s?.cssClass?s?.cssClass:""}`,"label-custom-class":e.labelCustomClass,"input-custom-class":e.inputCustomClass,isPopover:e.isPopover?e.isPopover:null},null,8,["data-field","name","field","title","component-custom-class","label-custom-class","input-custom-class","isPopover"]))],64))),128)),me(i.$slots,"default")]),_:3},8,["class"])}}}),koe=Q({__name:"FiltersCta",props:{pending:{type:Boolean},i18n:{},isDirty:{type:Boolean}},emits:["onSubmit","onReset"],setup(e,{emit:t}){const n=t,r=()=>{n("onSubmit")},i=()=>{n("onReset")};return(a,o)=>{const s=Tn;
991return E(),U(Ae,null,[H(s,{id:"btn_submit_search",link:{text:a.$t("search.filters.submit")},variante:{classes:"button",bgColor:"primary"},type:"submit",class:L(e.pending?"loader_submit":null),onClick:nr(r,["prevent"])},null,8,["link","class"]),e.isDirty?(E(),V(s,{key:0,id:"btn_reset_search",link:{text:a.$t("search.filters.deleteAll")},variante:{classes:"btnTxt",bgColor:"black"},type:"button",onClick:nr(i,["prevent"])},null,8,["link"])):ae("",!0)],64)}}}),iht=Symbol("CustomComponents");function Eoe({elements:e,i18n:t,customComponents:n}){Si(iht,{honeypot:"T3FormFieldHidden",...n??{}});const r=W(()=>{const x=_=>_.reduce((w,C)=>{const T=C.name?[...w,C]:w;return C.elements&&T.push(...x(C.elements)),T},[]);return x(e)}),i=()=>{const x=r.value.map(_=>[_.name,_.validators]);return Object.fromEntries(x)},a=()=>{const x=r.value.map(_=>[_.name,_.initialValue||null]);return Object.fromEntries(x)},o=i(),s=a(),{errors:l,handleSubmit:u,meta:c,values:d,resetForm:f,setErrors:h,submitForm:p,isSubmitting:g,setFieldValue:v,errorBag:b}=m1({validationSchema:o,initialValues:s,initialErrors:{}});return{i18n:{submitButton:"Submit",sendingLabel:"Sending",resetButton:"Reset form",serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form",...t},validationSchema:o,initialValues:s,errors:l,values:d,resetForm:f,submitForm:p,handleSubmit:u,setErrors:h,meta:c,isSubmitting:g,setFieldValue:v,errorBag:b}}function aht(e){const t=hv([...Object.keys(e)]).value,n={...e};let r=!1;return t.forEach(i=>{const a=_t(n[i]);(typeof a=="string"&&a.trim().length>0||typeof a=="boolean"&&a||Ii(a)&&No(a).length>0)&&(r=!0)}),r}function oht(e,t){const n=hv([...Object.keys(e),...Object.keys(t)]).value,r={...e},i={...t};n.forEach(o=>{(typeof r?.[o]>"u"||r[o]==null||r[o]==""||r[o].length==0)&&(r[o]=null),(typeof i?.[o]>"u"||i[o]==null||i[o]==""||i[o].length==0)&&(i[o]=null)});let a=!1;return n.forEach(o=>{JSON.stringify(r[o])!=JSON.stringify(i[o])&&(a=!0)}),{aa:r,bb:i,allKeys:n,hasChanged:a}}const Moe=Q({__name:"T3FiltersForm",props:{elements:{default:[]},moreElements:{default:[]},initialElements:{default:[]},i18n:{},customComponents:{},pending:{type:Boolean,default:!1},archiveListLink:{},settings:{},isInteractiveMap:{type:Boolean,default:!1}},emits:["submit"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=G(),{i18n:o,resetForm:s,handleSubmit:l,isSubmitting:u,errors:c,meta:d,setErrors:f,initialValues:h}=Eoe(r),{setFieldValue:p,values:g}=m1(),v=ai(),b=W(()=>aht(g)),x=G({...h}),_=G({}),w=()=>{T()},C=()=>{const B=v.currentRoute.value.query;return Object.keys(B).length>0},T=()=>{const B=v.currentRoute.value.query;Object.keys(h).forEach(R=>{const J=Array.isArray(h[R])?No(h[R]):R.endsWith("[]")?No([h[R]]):Hk(h[R]),K=Array.isArray(B[R]??null)?No(B[R]??null):R.endsWith("[]")?No([B[R]??null]):Hk(B[R]??null);J!=K&&p(R,K,!1)}),D()},k=l(()=>{D()}),A=()=>{Object.keys(g).forEach(B=>{let J=P(r.initialElements,B)?.value??null;Ii(J)&&(J=No(J)),p(B,J,!1)}),D()},P=(B,R)=>{if(!ur(B))for(let J=0;J<B.length;J++){if(!ur(B[J].subFields)){const K=P(B[J].subFields,R);if(!ur(K))return K}if(B[J].name===R)return _t(B[J])}return null},D=()=>{oht(Lh(g),Lh(x.value)).hasChanged&&(x.value={...Lh(g)},i("submit",{values:g,formRef:a}),$(g))},$=B=>{_.value={},Object.keys(B).forEach(J=>{if(!ur(B[J])){let K=J;Ii(B[J])&&!K.endsWith("[]")&&(K+="[]"),_.value[K]=B[J]}});const R={query:_.value};R.query!==v.currentRoute.value.query&&v.push(R)},O=r.elements.filter(B=>B.properties?.fluidAdditionalAttributes?.isKeyword);let z;O.length>0&&(z=ri(()=>O[0].name).setValue);const j=B=>{B.trim()!==""&&typeof z<"u"&&z(B)};return VSe(g,()=>{D()},{debounce:600,maxWait:3e3}),Ot(()=>{window.addEventListener("popstate",w),C()&&T()}),br(()=>{window.removeEventListener("popstate",w)}),t({isSubmitting:u,resetForm:s,errors:c,meta:d,i18n:o,setErrors:f,values:g,setKeywords:j,isDirty:b,onSubmit:k,onReset:A}),(B,R)=>{const J=Kv,K=koe,Z=Tn,ne=Tv;return E(),U("form",{ref_key:"formRef",ref:a,novalidate:"",onSubmit:R[0]||(R[0]=nr(()=>{},["prevent"]))},[me(B.$slots,"fields",{},()=>[H(J,{elements:[...e.elements,...e.moreElements]},null,8,["elements"])]),me(B.$slots,"cta",{},()=>[H(ne,{class:L([m(js)({columnGap:"2rem"}),m(F)({marginTop:"1.5rem"})])},{default:N(()=>[H(K,{pending:e.pending,"is-dirty":m(b),onOnSubmit:m(k),onOnReset:A}
991,null,8,["pending","is-dirty","onOnSubmit"]),e.settings?.showArchives&&e.archiveListLink?.href?(E(),V(Z,{key:0,link:e.archiveListLink,variante:{classes:"button"}},null,8,["link"])):ae("",!0)]),_:1},8,["class"])])],544)}}}),sht={key:0,id:"searched_word"},lht={key:1},uht=Q({__name:"Filters",props:{url:{},elements:{default:[]},initialElements:{default:[]},settings:{},nbResults:{default:0},hasList:{type:Boolean,default:!0},hasMap:{type:Boolean,default:!1},showMap:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},archiveListLink:{},isSearch:{type:Boolean,default:!1},queryString:{},suggestedWord:{}},emits:["onSubmit","onShowMapChanged"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=G(),o=G(!0),s=dpe("formRef"),l=W(()=>s.value?.values),u=async h=>{i("onSubmit",h)},c=()=>{i("onShowMapChanged",!r.showMap)},d=YM("(max-width: 1024px)");d&&(o.value=!1);const f=G();return t({values:l,stickyFilters:f,isNotLargeScreen:d,formRef:s}),(h,p)=>{const g=OPe,v=RPe,b=Tn;return E(),U("div",{ref_key:"stickyFilters",ref:f},[Y("div",{class:L([m(rn)({justifyContent:{base:"space-between",md:"start"},alignItems:"end",gap:{base:"1.5rem",sm:"{spacing.gutter}"}}),m(F)({paddingBottom:"{spacing.md}",overflowX:"hidden",borderBottom:{base:"{borders.sm} {colors.mediumGray}",md:"0"}})])},[Y("p",{"aria-atomic":"true",class:L(m(F)({fontSize:"{fontSizes.p}",marginBottom:"0",borderBottom:"0.4rem solid {colors.third}"}))},[Y("span",{"aria-live":"polite",class:L(m(F)({fontSize:{base:"2.5rem",sm:"3.6rem"},fontFamily:"{fonts.bold}"}))},de(e.nbResults),3),st("Â "+de(e.nbResults>1?`${h.$t("search.filters.results")}`:`${h.$t("search.filters.result")}`),1)],2),e.hasList&&e.hasMap?(E(),V(v,{key:0,onClick:c,class:L([m(rn)({gap:"1rem"}),m(F)({fontSize:"{fontSizes.p}",marginBottom:"1rem",_hover:{"& [data-switch-thumb]":{borderColor:"{colors.white}",boxShadow:"0 0 0 0.1rem {colors.black}"}}})])},{default:N(()=>[Y("span",{class:L(m(fn)())},de(e.showMap?h.$t("search.switchMap.show"):h.$t("search.switchMap.hide")),3),Y("span",{class:L([m(rn)({gap:"1rem"}),m(F)({position:"relative",height:"2.4rem",fontFamily:e.showMap?null:"{fonts.bold}",_after:{content:"''",display:"block",width:"4.5rem",height:"2.4rem",borderRadius:"3.6em",border:"{borders.sm} {colors.primary}"}})])},[st(de(h.$t("search.switchMap.list"))+" ",1),H(g,{"data-switch-thumb":"","aria-hidden":"true",class:L([m(gp)({size:"1.8rem",bgColor:"{colors.primary}"}),m(F)({position:"absolute",transition:"{easings.global}",border:"{borders.md} transparent",boxShadow:"0 0 0 {colors.black}",right:e.showMap?"0.4rem":"2.2rem"})])},null,8,["class"])],2),Y("span",{class:L(m(fn)())},de(e.showMap?h.$t("search.switchMap.hide"):h.$t("search.switchMap.show")),3),Y("span",{class:L(m(F)({fontFamily:e.showMap?"{fonts.bold}":null}))},de(h.$t("search.switchMap.map")),3)]),_:1},8,["class"])):ae("",!0),H(b,{type:"button",onClick:p[0]||(p[0]=x=>
991o.value=!m(o)),"aria-haspopup":"true","aria-expanded":m(o),"aria-controls":"filters",link:{text:`${m(o)?h.$t("common.hide"):h.$t("common.show")} ${h.$t("search.filters.btn")}`},picto:m(o)?"close":"filters",variante:{classes:"pictoOnly",pictoColor:"third",size:"sm"},showSr:!0,class:L(m(F)({padding:"0",hideFrom:"md",_expanded:{"& svg":{bgColor:"{colors.black}","& *":{fill:"{colors.white}"}}}}))},null,8,["aria-expanded","link","picto","class"])],2),e.isSearch&&(e.queryString||e.suggestedWord)?(E(),U("div",{key:0,class:L([m(Sa)(),m(F)({padding:{base:"1rem",md:"0"},borderBottom:{base:"{borders.sm} {colors.mediumGray}",md:"0"},"& p":{marginBottom:{base:"0",md:"1.5rem"}}})])},[e.isSearch&&e.queryString?(E(),U("p",sht,[st(de(h.$t("search.autocomplete.yourSearchString"))+' "',1),Y("span",null,de(e.queryString),1),p[2]||(p[2]=st('". ',-1))])):ae("",!0),e.isSearch&&e.suggestedWord?(E(),U("p",lht,[st(de(h.$t("search.autocomplete.suggestedResult"))+" ",1),Y("a",{role:"button",onClick:p[1]||(p[1]=x=>m(s).setKeywords(e.suggestedWord))},[p[3]||(p[3]=st(' "',-1)),Y("span",null,de(e.suggestedWord),1),p[4]||(p[4]=st('" ',-1))]),p[5]||(p[5]=st(" ? ",-1))])):ae("",!0)],2)):ae("",!0),Y("div",{ref_key:"filtersRef",ref:a,id:"filters",class:L([m(F)({hideBelow:m(o)?null:"md",borderBottom:{base:"{borders.sm} {colors.mediumGray}",md:"0"},"& form label, & [data-field] > fieldset > legend":{textTransform:"uppercase"},"& form > fieldset":{marginBottom:"4rem"}})])},[e.elements?(E(),V(Moe,{key:0,ref_key:"formRef",ref:s,elements:e.elements,initialElements:e.initialElements,i18n:{submitButton:"Filtrer",sendingLabel:"En cours",resetButton:"Réinitialiser",serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form"},pending:!!e.pending,"archive-list-link":e.archiveListLink,settings:e.settings,onSubmit:u},null,8,["elements","initialElements","pending","archive-list-link","settings"])):ae("",!0)],2)],512)}}}),cht=["aria-hidden"],dht={class:"group_by_category"},fht={key:5},hht=Q({__name:"SearchList",props:{data:{default:{}},isSearch:{type:Boolean,default:!1}},setup(e){const t=e,n=Yt(),i=G(n.initialData)?.value?.searchUrl,{$emit:a,$on:o,$off:s}=vt(),{computeFieldFromSettings:l,requestSearch:u,requestScroll:c,requestGeo:d}=ww(),f=JSON.parse(t.data?.settings?.showFilters),h=n.pageData?.slug==="/mediatheque",p=G(),g=G(),v=G(1),b=G(),x=G([]),_=G(0),w=G(!1),C=G(),T=G(),k=G(t.data?.initialForm??t.data?.form??[]),A=G({...k.value}),P=G(),D=G([]),$=G(0),O=G(!1),z=W(()=>t.data?.settings?.type_affichage||"list"),j=W(()=>t.data?.settings?.template==="list"&&["list","list_map","list_map_hide"].includes(z.value)),B=W(()=>t.data?.settings?.template==="list"&&["map","list_map","list_map_hide"].includes(z.value)),R=W(()=>t.isSearch?!1:["map","list_map"].includes(z.value)),J=G(R.value),K=W(()=>w.value||O.value);Ot(()=>{x.value=t.data.results||t.data.items||[],_.value=t.data.nbResults||0,C.value=t.data?.queryString,T.value=t.data?.suggestedWord,o("filters:onFieldValueChanged",Z),B.value&&J.value&&parseInt(t.data.settings.showResults)&&ke(se.value)}),br(()=>{s("filters:onFieldValueChanged",Z)});const Z=async ze=>{P.value=ze},ne=W(()=>l(A.value?.fields||[])),se=W(()=>Lh(p.value?.values)),ce=ze=>{v.value=1,j.value&&(t.isSearch?Ue(_t(ze.values),v.value):$e(_t(ze.values),v.value)),B.value&&J.value&&ke(ze.values)},Re=()=>{j.value&&(t.isSearch?Ue(_t(se.value),v.value):$e(_t(se.value),v.value)),re()},Ue=async(ze,qe)=>{w.value=!0;const{success:lt,documents:bt,nbResults:fe,response:pe,form:De}=await u(t.data.urlScroll||i,ze,qe);if(w.value=!1,!lt)return;x.value=_t(bt),_.value=fe,C.value=pe.queryString,T.value=pe.suggestedWord;const Ge=_t(Lh(ze,!0));Object.keys(Ge).length===0&&(P.value=void 0),bt.length>0&&(A.value.fields=A.value.fields.map((ut,it)=>(["list","calendar_interval"].includes(ut.fieldType)&&typeof ut?.items<"u"&&typeof De.fields?.[it]?.items<"u"&&((["calendar_interval"].includes(ut.fieldType)||ut.name!==P.value?.name)&&!Object.keys(Ge).includes(ut.name)?ut.items=De.fields[it].items:ut.items=m(k).fields[it].items),{...ut}))),le()},$e=async(ze,qe)=>{w.value=!0;const{success:lt,documents:bt,nbResults:fe,form:pe}=await c(t.data.urlScroll,ze,qe);if(w.value=!1,!lt)return;x.value=_t(bt),_.value=fe;const De=_t(Lh(ze,!0));bt.length>0&&(A.value.fields=A.value.fields.map((Ge,ut)=>
991(["list","calendar_interval"].includes(Ge.fieldType)&&typeof Ge?.items<"u"&&typeof pe.fields?.[ut]?.items<"u"&&((["calendar_interval"].includes(Ge.fieldType)||Ge.name!==P.value?.name)&&!Object.keys(De).includes(Ge.name)?Ge.items=pe.fields[ut].items:Ge.items=m(k).fields[ut].items),{...Ge}))),le()},ke=async ze=>{O.value=!0;const{success:qe,documents:lt,nbResults:bt}=await d(t.data.urlGeo,ze);if(O.value=!1,D.value=_t(lt),$.value=_t(bt),qe)D.value=_t(lt),$.value=_t(bt);else{const fe=D.value;D.value=[],D.value=fe}},Ve=W(()=>!1),nt=ze=>{if(t.data.settings.getResultsByCategories==="1")for(let qe=0;qe<x.value.length;qe++)for(let lt=0;lt<x.value[qe].results.length;lt++){const bt=x.value[qe].results[lt];if(bt.uid===ze.uid&&bt.pid===ze.pid){let fe=lt,pe=qe;lt===0?(pe===0?pe=x.value.length-1:pe=qe-1,fe=x.value[pe].results.length-1):fe=lt<=0?x.value[pe].results.length-1:lt-1,typeof x.value[pe].results[fe].links[0]<"u"&&a("popinDetail:open",{link:x.value[pe].results[fe].links[0],showArrows:Ve.value});break}}else for(let qe=0;qe<x.value.length;qe++){const lt=x.value[qe];if(lt.uid===ze.uid&<.pid===ze.pid){const bt=qe<=0?x.value.length-1:qe-1;typeof x.value[bt].links[0]<"u"&&a("popinDetail:open",{link:x.value[bt].links[0],showArrows:Ve.value});break}}},xe=ze=>{if(t.data.settings.getResultsByCategories==="1")for(let qe=0;qe<x.value.length;qe++)for(let lt=0;lt<x.value[qe].results.length;lt++){const bt=x.value[qe].results[lt];if(bt.uid===ze.uid&&bt.pid===ze.pid){let fe=lt,pe=qe;lt===x.value[qe].results.length-1?(fe=0,pe===x.value.length-1?pe=0:pe=qe+1):fe=lt>=x.value[pe].results.length-1?0:lt+1,typeof x.value[pe].results[fe].links[0]<"u"&&a("popinDetail:open",{link:x.value[pe].results[fe].links[0],showArrows:Ve.value});return}}else for(let qe=0;qe<x.value.length;qe++){const lt=x.value[qe];if(lt.uid===ze.uid&<.pid===ze.pid){const bt=qe>=x.value.length-1?0:qe+1;typeof x.value[bt].links[0]<"u"&&a("popinDetail:open",{link:x.value[bt].links[0],showArrows:Ve.value});break}}},{t:Pe}=dr(),je=G(),Fe=W(()=>je.value?.pagesTotal);d6(Fe,()=>{re()},{deep:!0,immediate:!0});const re=()=>{const ze=G("");t.isSearch?ze.value=`${Pe("search.list.searchList")} "${C.value}" - Page ${v.value} sur ${Fe.value}`:ze.value=`${n.pageData.meta.nav_title?n.pageData.meta.nav_title:n.pageData.meta.title} - Page ${v.value} sur ${Fe.value}`,mo({title:ze.value})},le=()=>{window.scrollTo(0,0)},ye=G(),Me=G(),ve=G(),X=W(()=>p.value?.stickyFilters),ee=W(()=>p.value?.isNotLargeScreen),oe=G(!1),_e=G(!1),ge=dh(ve),Oe=dh(X),Se=dh(ye),he=W(()=>ee?0:100),Te=Je(ge.bottom,()=>{});return Je(K,()=>{K.value||XM(Me,([{isIntersecting:ze}],qe)=>{oe.value=!ze})}),_e.value===!1?Je(ge.bottom,()=>{ge.bottom.value<=Oe.bottom.value&&(_e.value=!0)}):Te(),Je(J,()=>{J.value&&ke(se.value)}),Je(Oe.top,()=>{_e.value&&Oe.top.value>=he.value&&(_e.value=!1)}),(ze,qe)=>{const lt=Tn,bt=Rnt,fe=es,pe=Ont,De=Jnt,Ge=bD,ut=xD;return E(),U("div",{class:L(m(rn)({alignItems:"start",justifyContent:"space-between",flexWrap:{base:"wrap",md:"nowrap"},gap:{base:"1rem",md:"1.5rem",lg:"{spacing.gutter}"}}))},[Y("div",{ref_key:"filtersAnchorTop",ref:Me,class:L(m(F)({width:"100%",position:"absolute",transform:{base:"0",md:"translateY(calc(-1 * {spacing.header}))"}}))},null,2),Y("div",{ref_key:"filtersContainerRef",ref:ye,class:L(m(F)({width:{base:"100%",md:"4/12"},_print:{display:"none"}})),style:Li(`min-height:${m(Oe).height.value}px`)},[m(f)?(E(),V(uht,{key:0,ref_key:"filtersRef",ref:p,url:e.data.url||m(i),elements:m(ne),"initial-elements":m(k)?.fields,settings:e.data.settings,"nb-results":m(J)?m($):m(_),"has-list":m(j),"has-map":m(B),"show-map":m(J),pending:m(K),"archive-list-link":e.data.archiveListLink,"is-search":e.isSearch,"query-string":m(C),"suggested-word":m(T),onOnSubmit:ce,onOnShowMapChanged:qe[0]||(qe[0]=it=>J.value=!m(J)),class:L([m(F)({zIndex:"5",bgColor:{base:"{colors.white}",md:"transparent"},"& fieldset":{"& button[role=combobox] svg":{width:"3rem",height:"3rem","& * ":{fill:"{colors.black}"}}}}),m(oe)?m(F)({paddingTop:{base:"{spacing.md}",md:"0"},marginTop:{base:"0",md:"calc({spacing.header} + 3rem)"},marginInline:{base:"-1.5rem",md:"0"},minWidth:{base:"100%",md:"initial"},paddingInline:{base:"1.5rem",md:"0.5rem"}}):null,m(oe)&&!m(_e)?m(F)({position:"fixed",top:"0",maxHeight:{base:"calc(100vh - {spacing.header})",md:"calc(100vh - {spacing.header} - 6rem)"},overflowY:"auto",overflowX:"visible"}):null,m(_e)?m(F)({position:"absolute",bottom:"0"}):null]),style:Li(`width:${m(Se).width.value}px`)},null,8,["url","elements","initial-elements","settings","nb-results","has-list","has-map","show-map","pending","archive-list-link","is-search","query-string","suggested-word","class","style"])):ae("",!0)],6),m(j)&&!m(J)?(E(),U("div",{key:0,id:"first_display",class:L([m(Vn)({alignItems:"start",ga
991p:h?0:"{spacing.gutter}"}),m(F)({width:{base:"100%",lg:"7/12",md:"8/12"},"& > *":{width:"100%"}})])},[e.data?.propListLink?.href?(E(),V(lt,{key:0,link:e.data.propListLink,variante:{classes:"button",bgColor:"primary"},class:L(m(F)({textAlign:{smDown:"center"},marginTop:"1.5rem"}))},null,8,["link","class"])):ae("",!0),m(K)?(E(),U(Ae,{key:1},ft(3,it=>Y("div",{class:L(m(vK)()),"aria-hidden":!m(K)},null,10,cht)),64)):e.data.settings?.getResultsByCategories==="1"?(E(!0),U(Ae,{key:2},ft(m(x),it=>(E(),U("div",dht,[H(bt,{category:it,popin:!e.isSearch},null,8,["category","popin"])]))),256)):e.data.settings?.getResultsByMonths==="1"?(E(!0),U(Ae,{key:3},ft(m(x),(it,mt)=>(E(),V(pe,{key:mt,title:it.title},{results:N(()=>[(E(!0),U(Ae,null,ft(it.results,Be=>(E(),V(fe,{key:Be.id,result:Be,popin:!e.isSearch,options:{showcategories:Be?.type!=="territoire",showtype:e.isSearch,img:{noDescription:!0}}},null,8,["result","popin","options"]))),128))]),_:2},1032,["title"]))),128)):m(x).length>0?(E(!0),U(Ae,{key:4},ft(m(x),it=>(E(),V(fe,{key:it.id,result:it,popin:!e.isSearch,options:{showcategories:it?.type!=="territoire",showtype:e.isSearch,img:{noDescription:!0}}},null,8,["result","popin","options"]))),128)):(E(),U("p",fht,de(ze.$t("search.autocomplete.noResultAtAll")),1)),H(De,{ref_key:"paginationRef",ref:je,modelValue:m(v),"onUpdate:modelValue":[qe[1]||(qe[1]=it=>$t(v)?v.value=it:null),Re],"results-scroll-count":m(_),"items-per-page":+e.data.resultsPerPage,items:m(x),title:m(A)?.title,isSearch:e.isSearch},null,8,["modelValue","results-scroll-count","items-per-page","items","title","isSearch"]),!m(J)&&m(x).length>0?(E(),U("p",{key:6,"aria-live":"polite",class:L(m(F)({textAlign:{base:"center",md:"left"}}))},de(m(x)?.length)+" "+de(m(x)?.length>1?ze.$t("search.filters.resultsOnPage"):ze.$t("search.filters.resultOnPage"))+" - "+de(m(_))+" "+de(m(_)>1?ze.$t("search.filters.resultsTotal"):ze.$t("search.filters.resultTotal")),3)):ae("",!0)],2)):ae("",!0),m(B)&&m(J)?(E(),U("div",{key:1,id:"second_display",class:L([m(K)?"placeholder_map":null,m(F)({width:{base:"100%",lg:"7/12",md:"8/12"},marginBottom:"6rem",_print:{display:"none"}})])},[H(Ge,{ref_key:"mapRef",ref:g,settings:e.data,results:m(D),display:"list"},null,8,["settings","results"])],2)):ae("",!0),Y("div",{ref_key:"filtersAnchorBottom",ref:ve,class:L(m(F)({width:"100%",position:"absolute",bottom:"0",transform:"translateY(0)"}))},null,2),H(ut,{ref_key:"popinDetailItem",ref:b,resultsScrollCount:m(_),onOnPrevious:nt,onOnNext:xe},null,8,["resultsScrollCount"])],2)}}}),Aoe=Q({__name:"FieldSubpages",props:{colPos:{},result:{},header:{},config:{},isRelated:{type:Boolean,default:!1},showInSummary:{type:Boolean}},setup(e){const t=e,n=W(()=>t.result?.subpages?t.result.subpages:t.result);return(r,i)=>{const a=xw;return E(),V(a,{header:e.header,colPos:e.colPos,result:m(n),showInSummary:e.showInSummary},null,8,["header","colPos","result","showInSummary"])}}}),pht=Q({__name:"ProfileList",props:{data:{default:{}},header:{default:{}}},setup(e){return(t,n)=>{const r=Aoe;return E(),V(r,{result:e.data?.results,header:e.header},null,8,["result","header"])}}}),mht=["title"],Poe=Q({__name:"Popin",props:{popinId:{},popinClasses:{},popinTitle:{},popinTitleSr:{type:Boolean},popinAriaLabel:{},popinFull:{type:Boolean},btnCloseTxt:{},triggerId:{},triggerVariante:{},triggerTxt:{},triggerTitle:{},triggerTextSr:{type:Boolean},forceMount:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},popinParentRef:{},isSmartMenu:{type:Boolean},noPaddingDescription:{type:Boolean},popinOnSide:{type:Boolean}},setup(e,{expose:t}){const n=e,r=G(!1),i=()=>{r.value=!1},{$on:a,$off:o}=vt();Ot(()=>{a("popinRecherche:close",i)}),br(()=>{o("popinRecherche:close",i)}),mo({htmlAttrs:{class:{overflow:r}}}),t({opened:r});const l=NZ({className:"popinRecipe",slots:["content","container","title","description","close"],base:{content:{position:"fixed",bgColor:"{colors.white}",zIndex:"9999"},title:{fontFamily:"{fonts.bold}"},close:{position:"absolute"}},variants:{size:{full:{content:{bgColor:"{colors.primary}",color:"{colors.white}",top:"0",left:"0",width:"100%",height:"100%",overflowY:"auto",padding:{base:"5rem 0",sm:"5rem 1.5rem",md:"10rem 5rem 5rem 5rem",lg:"15rem 5rem"}},title:{fontSize:{base:"2.5em",sm:"3.5em",lg:"4.5em"},textAlign:"center",marginBottom:{base:"2rem",sm:"3rem"}},close:{top:{base:"1rem",sm:"3rem"},right:{base:"1rem",sm:"3rem"}}},simple:{content:{top:{base:"0",sm:"50%"},left:{base:"0",sm:"50%"},transform:{sm:"translate(-50%, -50%)"},width:{base:"100%",sm:"75%",lg:"100%"},maxWidth:"75rem",borderRadius:"1.5rem",height:{base:"100%",sm:"auto"}},container:{padding:"0",height:{base:"100%",lg:"auto"}},title:{fontSize:{base:"2em",md:"2.2em"},padding:{base:"1.5rem 3rem 1.5rem 2rem",md:"3rem 5.5rem 1.5rem 5.5rem"},borderBottom:"{borders.sm} {colors.lightGray}",marginBottom:"0"},description:{padding:{base:"2rem",md:"4rem 5.5rem"},overflow:"auto",maxHeight:{lg:"75rem"},height:{base:"100%",lg:"auto"}},close:{top:{base:"1rem",md:"2rem"},right:{base:"1.5rem",md:"2.5rem"}}},side:{content:{bgColor:"{colors.primary}/95",color:"{colors.white}",top:"0",right:"0",transform:"none",width:{base:"100%",sm:"75%",md:"100%"},borderRadius:"0",height:"100vh",maxWidth:"75rem !important"},container:{padding:{base:"5rem 3rem 3rem 3rem !important",sm:"10rem 4.5rem 4.5rem 4.5rem !important",md:"20rem 6.5rem 6.5rem 6.5rem !important"},height:{base:"100%",md:"auto"}},title:{fontSize:"{fontSizes.h2}"},description:{padding:{base:"0",md:"0"},overflow:"hidden",overflowY:"auto",height:"100%",maxHeight:{base:"calc(100% - 5rem)",sm:"calc(100% - 10rem)",md:"calc(100% - 20rem)"}},close:{top:{base:"1rem",md:"2rem"},right:{base:"1.5rem",md:"2.5rem"}}}}},defaultVariants:{}})({size:n?.popinFull?"full":n?.popinOnSide?"side":"simple"}),u=F({padding:"1rem 0",overflowX:"hidden","& input, [data-label-like], legend:not(.sr_true), label":{fontSize:"{fontSizes.sm}"},"& button[role=checkbox]":{fontSize:"1.8em"},"& form":{marginBottom:"0"},"& form > fieldset":{gap:"0",marginBottom:"1.5rem",padding:"0 5.5rem"},"& [data-field]":{padding:"3rem 0"},"& [data-field]:not(:last-child)":{borderBottom:"{borders.sm}{colors.lightGray}"},"& [data-field=keyword]":{"& input":{maxWidth:"35rem",border:"none",boxShadow:"0 0 1.5rem rgba(0,0,0,0.15)",borderRadius:"5rem"},"& > svg":{width:"2rem",height:"2rem",left:"1rem",bottom:"4.5rem"},"& > button":{left:"calc(35rem - 4.3rem)",bottom:"4.3rem","& > svg":{width:"2.5rem",height:"2.5rem",padding:"0.5rem"}}},"& legend > svg":{display:"none"}});return(c,d)=>{const f=vEe,h=DY,p=Cre,g=V6,v=IY,b=FEe,x=$Y,_=PY,w=bA,C=CY;return E(),V(C,{open:m(r),"onUpdate:open":d[0]||(d[0]=T=>$t(r)?r.value=T:null),modal:m(r)?!0:e.modal},{default:N(()=>[H(f,{id:e.triggerId,"aria-controls":`popin_${e.popinId}`,title:e.triggerTitle?e.triggerTitle:null,asChild:""},{default:N(()=>[me(c.$slots,"trigger")]),_:3},8,["id","aria-controls","title"]),H(w,{to:e.popinParentRef},{default:N(()=>[H(h,{class:L([m(HM)(),e.isSmartMenu?m(F)({maxHeight:"calc(100% - {spacing.header})"}):null])},null,8,["class"]),H(_,{id:`popin_${e.popinId}`,"aria-modal":m(r)?!0:e.modal,"aria-label":e.popinAriaLabel,"force-mount":e.forceMount||!1,class:L([`popin_${e.popinId}`,m(l).content,m(r)?"":m(F)({display:"none"}),e.isSmartMenu?m(F)({maxHeight:"calc(100% - {spacing.header}
991)",top:"0 !important",left:"0 !important",transform:"none !important",height:"100% !important",borderRadius:"0 !important"}):null,e.popinId==="listResults"&&m(r)?m(F)({animation:{md:"listResultsSwipeInMd .3s ease-in-out forwards !important",base:"listResultsSwipeInBase .3s ease-in-out forwards !important"}}):null,e.popinId==="recherche"?m(F)({overflowX:"hidden"}):null,e.popinOnSide?m(F)({transform:"translateX(100%)"}):null,e.popinOnSide&&m(r)?m(F)({animation:"popinSideRightSwipeIn .3s ease-in-out forwards !important"}):null])},{default:N(()=>[Y("div",{class:L([m(l).container,e.popinId==="listResults"?m(F)({position:"relative",height:"100% !important",width:"100% !important"}):m(g1)({position:"static"}),e.isSmartMenu?m(F)({padding:"0 !important"}):null])},[H(v,{"as-child":""},{default:N(()=>[e.popinId!="listResults"?(E(),V(p,{key:0,title:e.btnCloseTxt,popinFull:e.popinFull,variante:e.popinOnSide?{classes:"pictoOnly",pictoColor:"transparentWhite",size:"sm"}:null,class:L([m(l).close,e.isSmartMenu?m(F)({srOnly:!0,_focus:{srOnly:!1,position:"absolute"}}):null])},null,8,["title","popinFull","variante","class"])):(E(),U("button",{key:1,title:e.btnCloseTxt,class:L([m(l).close,m(F)({right:{md:"-4rem !important",base:"1.5rem"},top:{md:"50% !important",base:"0 !important"},backgroundColor:"{colors.black}",padding:{md:"2rem 1rem",base:"1rem 2rem"},borderRadius:{md:"0 0.8rem 0.8rem 0",base:"0 0 0.8rem 0.8rem"},boxShadow:"0.5rem 0 1.5rem 0.5rem rgba(0,0,0,0.3)",zIndex:"4","& svg":{width:"2rem",height:"2rem",transition:"{easings.global}",transform:{md:"rotate(-180deg)",base:"rotate(90deg)"},"& *":{fill:"white"}},_print:{display:"none"}})])},[H(g,{"aria-hidden":"true"}),Y("span",{class:L(m(F)({srOnly:{md:"true",base:"false"},textTransform:"uppercase",color:"{colors.white}",transform:"translateY(-150%)",position:"absolute !important",left:"0",top:"0"}))},de(e.btnCloseTxt),3)],10,mht))]),_:1}),H(b,{as:"p",role:"heading","aria-level":"1",class:L([m(l).title,e.popinTitleSr?m(fn)():null])},{default:N(()=>[st(de(e.popinTitle),1)]),_:1},8,["class"]),H(x,{as:"div","data-popin-description":"",class:L([m(l).description,e.popinId==="filters"?m(u):null,e.noPaddingDescription?m(F)({padding:"0 !important"}):null])},{default:N(()=>[me(c.$slots,"content")]),_:3},8,["class"])],2)]),_:3},8,["id","aria-modal","aria-label","force-mount","class"])]),_:3},8,["to"])]),_:3},8,["open","modal"])}}}),ght=Q({__name:"InteractiveMapFilters",props:{elements:{default:[]},moreElements:{default:[]},settings:{},pending:{type:Boolean,default:!1}},emits:["onSubmit"],setup(e,{expose:t,emit:n}){const{modifyFiltersForPopin:r}=ww(),i=e,a=n,o=G(),s=G(),l=W(()=>o.value?.values),u=async f=>{a("onSubmit",f)},c=W(()=>r([...i.elements,...i.moreElements],{Multiselect:"Multicheckbox"})),d=W(()=>{if(!l.value)return 0;const f=Object.values(l.value)?.map(h=>typeof h=="string"?h.trim().length>0:Ii(h)?h.length:0);return gZ(f)});return t({values:l}),(f,h)=>{const p=Kv,g=kX,v=uI,b=koe,x=Poe,_=Moe;return E(),V(_,{ref_key:"formRef",ref:o,elements:e.elements,"more-elements":e.moreElements,i18n:{submitButton:"Filtrer",sendingLabel:"En cours",resetButton:"Réinitialiser",serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form"},pending:e.pending,settings:e.settings,"is-interactive-map":!0,onSubmit:u,class:L([m(rn)({gap:"2rem",flexDir:{md:"row",base:"column"}}),m(F)({marginBottom:"0",paddingBottom:"3rem",flexWrap:"wrap",position:"relative","& > fieldset":{flexWrap:{md:"nowrap",base:"wrap"},alignItems:"center",justifyContent:{md:"flex-start",base:"center"},flexDir:"row",gap:"2rem",width:{md:"auto",base:"100%"},"& [data-field]":{width:"auto"}},"& [data-field=keyword]":{width:{md:"auto",base:"calc(100% - 4.5rem) !important"},marginRight:{md:"0",base:"4.5rem"},"& input":{width:"100%",minWidth:{md:"40rem",base:"auto"},paddingRight:"7rem",borderRadius:{md:"2.5em",base:"2.5em 0 0 2.5em"},borderRight:{md:"{borders.sm} {colors.black}",base:"0"}},"& button":{right:"4rem",bottom:"1rem","& svg":{width:"2.5rem",height:"2.5rem",padding:"0.5rem"}},"& > svg":{width:"2rem",height:"2rem",right:{md:"1.5rem",base:"1rem"},left:"auto",bottom:"1.2rem"}},"& #btn_mapFilters":{position:{md:"relative",base:"absolute"},top:{base:"0"},right:{base:"0"},width:{md:"auto",base:"4.5rem"},height:{md:"auto",base:"4.2rem"},borderRadius:{md:"2.5em",base:"0 50% 50% 0"},padding:{md:"1rem 2.5rem",base:"0"},display:"flex",justifyContent:"center",alignItems:"center"},"& [aria-haspopup=dialog], & [data-field=keyword] input":{border:"{borders.sm} {colors.black}",borderRadius:"2.5em",padding:"1rem 2.5rem",height:"auto",minHeight:"0",fontFamily:"{fonts.regular}",position:"relative",display:"flex",flexDir:"row",gap:"1rem",alignItems:"center",fontSize:"{fontSizes.sm}",transition:"{easings.global}","&[data-label-like]":{fontSize:"{fontSizes.sm}"},"& svg":{width:"2rem",height:"2rem","& > *":{fill:"{colors.black}",transition:"{easings.global}"}}},"& [aria-haspopup=dialog]:hover":{bgColor:"{colors.primary}",color:"{colors.white}",borderColor:"{colors.white}","& svg *":{fill:"{colors.white}"}},"& [data-field] [aria-haspopup=dialog]":{margin:"0",paddingRight:"5rem","& .select":{transition:"{easings.global}"},_open:{borderRadius:"1.5em 1.5em 0 0","& .select":{transform:"rotate(180deg)"}}},"& [data-radix-popper-content-wrapper]":{width:"19.7rem !important",padding:"0 !important","& [data-state=open]":{"& > div":{borderBottom:"{borders.sm}{colors.lightGray}",_last:{border:"none"}}}},"& #popin_listResults":{height:"100%"}})])},{fields:N(()=>[H(p,{elements:e.elements,"label-custom-class":"srOnly",legendSr:!0,isPopover:!0},null,8,["elements"]),e.moreElements?(E(),V(x,{key:0,ref_key:"popinFiltersRef",ref:s,popinId:"filters",popinClasse
991s:"",popinTitle:f.$t("search.filters.popin.popinTitle"),popinTitleSr:!1,popinAriaLabel:f.$t("search.filters.popin.ariaLabel"),popinFull:!1,btnCloseTxt:f.$t("search.filters.popin.btnClose"),triggerId:"btn_mapFilters",triggerTitle:f.$t("search.filters.popin.btnTitle"),triggerTxt:f.$t("search.filters.popin.btnText"),modal:m(s)?.opened,"force-mount":!0,noPaddingDescription:!0},{trigger:N(()=>[Y("button",{class:L(m(d)!==0?m(F)({borderColor:"{colors.primary} !important"}):null)},[H(g,{"aria-hidden":"true",class:L(m(vn)({size:"1.5rem !important"}))},null,8,["class"]),Y("span",{class:L(m(F)({srOnly:{md:"false",base:"true"}}))},de(f.$t("search.filters.popin.btnText")),3),H(v,{value:m(d).toString()},null,8,["value"])],2)]),content:N(()=>[Y("form",{novalidate:"",onSubmit:h[0]||(h[0]=nr(()=>{},["prevent"]))},[H(p,{elements:m(c),tags:!0},null,8,["elements"]),me(f.$slots,"cta",{},()=>[Y("div",{class:L([m(rn)({justify:"space-between",flexDir:"row-reverse"}),m(F)({padding:"2rem 5.5rem",position:"relative",borderTop:"{borders.sm}{colors.mediumGray}"})])},[H(b,{pending:e.pending,"is-dirty":m(o)?.isDirty,onOnSubmit:m(o)?.onSubmit,onOnReset:m(o)?.onReset},null,8,["pending","is-dirty","onOnSubmit","onOnReset"])],2)])],32)]),_:3},8,["popinTitle","popinAriaLabel","btnCloseTxt","triggerTitle","triggerTxt","modal"])):ae("",!0)]),cta:N(()=>[Y("div",{class:L([m(rn)(),m(F)({"& #btn_submit_search:not(:focus)":{height:"1px !important",overflow:"hidden !important",padding:"0 !important",position:"absolute !important",width:"1px !important",clip:"rect(0, 0, 0, 0) !important",border:"0 !important",whiteSpace:"nowrap !important"},"& > *":{fontSize:"{fontSizes.sm}"}})])},[H(b,{pending:e.pending,"is-dirty":m(o)?.isDirty,onOnSubmit:m(o)?.onSubmit,onOnReset:m(o)?.onReset},null,8,["pending","is-dirty","onOnSubmit","onOnReset"])],2)]),_:3},8,["elements","more-elements","pending","settings","class"])}}}),yht=Q({__name:"MostViewedModal",props:{open:{type:Boolean},count:{}},emits:["close"],setup(e,{emit:t}){const n=t,r=()=>{n("close")};return(i,a)=>{const o=Tn;return e.open?(E(),U("div",{key:0,class:L([m(Vn)({alignItems:"flex-end",gap:"0.5rem"}),m(F)({position:"absolute",backgroundColor:"{colors.third}",borderRadius:"1.8em",left:"50%",width:{md:"70vw",base:"90vw"},padding:"3rem",maxWidth:"65rem",zIndex:"0",top:{md:"2rem",sm:"2rem",base:"1rem"},transform:{md:"translateX(-50%)",base:"translateX(-50%)"},"& *":{color:"{colors.white}"},"& h2":{fontSize:"2.5em",lineHeight:"1.2"},"& p, h2":{width:"100%"}})])},[a[3]||(a[3]=Y("h2",null,"Bienvenue sur la carte interactive !",-1)),Y("p",null,[st(" Nous avons préfiltré les résultats sur les points d'intérêts les plus consultés ("+de(e.count)+"). ",1),a[1]||(a[1]=Y("br",null,null,-1)),a[2]||(a[2]=st(" N'hésitez pas à faire votre propre recherche ! ",-1))]),H(o,{link:{text:"Ok"},align:"flex-end",variante:{classes:"btnLien"},type:"button",onClick:a[0]||(a[0]=s=>r()),class:L(m(F)({width:"auto",textTransform:"uppercase",padding:"0.5rem 2rem",borderColor:"{colors.white}",borderWidth:"0.1rem","& svg":{display:"none"}}))},null,8,["class"])],2)):ae("",!0)}}}),vht={"aria-live":"polite"},_ht=Q({__name:"ResultCounter",props:{count:{}},setup(e){return(t,n)=>(E(),U("p",{"aria-atomic":"true",class:L(m(F)({position:"absolute",top:{md:"0",base:"auto"},bottom:{md:"auto",base:"{spacing.header}"},left:"0",zIndex:{md:"1",base:"4"},fontSize:{md:"1.8em",base:"1.6em"},lineHeight:{md:"2",base:"normal"},color:"{colors.white}",transition:"{easings.global}",backgroundColor:{md:"{colors.primary}",base:"{colors.black}"},marginBottom:"0",borderRadius:{md:"0 0 {radii.sm} 0",base:"0"},minWidth:{lg:"20rem",md:"18rem",base:"0"},width:{md:"auto",base:"100%"},height:{md:"auto",base:"{spacing.resultsCounter}"},padding:{md:"0.5rem 4rem 2.5rem 3rem",base:"1.5rem"},"& > span:first-child":{fontSize:{md:"1.7em",base:"1.5em"},fontFamily:"{fonts.bold}",position:"relative"},"& > span:last-child":{_after:{content:{md:"''",base:""},display:"block",position:"absolute",width:"calc(100% - 6rem)",height:"0.5rem",bottom:"2.5rem",left:"3rem",backgroundColor:"{colors.white}"}}}))},[Y("span",vht,de(e.count),1),n[0]||(n[0]=st(" ",-1)),Y("span",null,[e.count>1?(E(),U(Ae,{key:0},[st(de(t.$t("search.filters.results")),1)],64)):(E(),U(Ae,{key:1},[st(de(t.$t("search.filters.result")),1)],64))])],2))}}),bht=!0,xht=Q({__name:"InteractiveMap",props:{data:{}},setup(e){const t=e,{computeFieldFromSettings:n,requestGeo:r}=ww(),i=Va();Object.values(i.blocTinyInteractiveMapFields);const a=G(),o=G(),s=G([]),l=G(0),u=G(!1),c=G(!1),d=G(!1),f=G(!1),h=G(),p=G(),g=W(()=>o.value?.isClusterOpen),v=W(()=>p.value?.opened),b=async T=>{u.value=!0;const{documents:k,nbResults:A}=await r(t.data.urlMostViewed,T);u.value=!1,s.value=_t(k),l.value=_t(A),c.value=!0,d.value=!0},x=async T=>{u.value=!0;const{documents:k,nbResults:A}=await r(t.data.urlGeo,T);u.value=!1,s.value=_t(k),l.value=_t(A),c.value=!1,d.value=!1},_=T=>{!f.value&&t.data.settings.resultstToDisplay==="mostViewed"?(b({}),f.value=!0):x(T.values)},w=W(()=>n(t.data.form.fields||[])),C=W(()=>n(t.data.form.moreFields||[]));return(T,k)=>{const A=Ere,P=ght,D=bD,$=yht,O=_ht,z=V6,j=es,B=Poe,R=xD;return E(),U("div",null,[Y("div",{class:L([m(g1)(),m(F)({paddingTop:"3rem",height:"auto"})])},[H(A,{class:L(m(F)({width:"100%",paddingBottom:"2rem"}))}
991,null,8,["class"]),H(P,{ref_key:"filtersRef",ref:a,elements:m(w),"more-elements":m(C),settings:e.data.settings,pending:m(u),onOnSubmit:_,class:L(m(F)({_print:{display:"none"}}))},null,8,["elements","more-elements","settings","pending","class"])],2),Y("div",{ref_key:"interactiveMapRef",ref:h,class:L([m(u)?"placeholder_map":null,m(F)({position:"relative",flex:{base:"auto",_print:"none"},"& #popin_listResults":{transform:"translate(0,0)",top:"0 !important",left:"0 !important",position:{base:"absolute !important",_print:"static !important"},width:{base:"100% !important",md:"54.5rem !important",_print:"auto !important"},maxWidth:"none",height:{base:"calc(100% - {spacing.header} ) !important",md:"100% !important",_print:"auto !important"},marginBottom:{md:"0",base:"{spacing.header}"},paddingTop:{md:"0",base:"{spacing.resultsCounter}"},background:"none"},"& [data-popin-description]":{position:"absolute",top:"0",left:"0",width:"100%",backgroundColor:"{colors.white}",transition:"{easings.global}",zIndex:"2",padding:"0 !important",height:{base:"100% !important",_print:"auto !important"},maxHeight:"none !important"},_print:{display:"none"}})])},[H(D,{ref_key:"mapRef",ref:o,isInteractiveMap:bht,settings:e.data,results:m(s),display:"map"},null,8,["settings","results"]),m(d)&&!m(v)&&!m(g)?(E(),U("div",{key:0,class:L(m(F)({_print:{display:"none"}}))},[H($,{open:m(d),count:m(l),onClose:k[0]||(k[0]=J=>d.value=!1)},null,8,["open","count"])],2)):ae("",!0),H(O,{count:m(l),class:L([m(v)||m(g)?m(F)({animation:{md:"resultCounterSwipeInMd .3s ease-in-out forwards",base:"resultCounterSwipeInBase .3s ease-in-out forwards"},transform:"translate(0%,0%)"}):m(F)({animation:{md:"resultCounterSwipeOutMd .3s ease-in-out forwards",base:"resultCounterSwipeOutBase .3s ease-in-out forwards"}}),m(F)({_print:{display:"none"}})])},null,8,["count","class"]),H(B,{popinId:"listResults",popinClasses:"",popinTitle:T.$t("search.switchMap.popin.popinTitle"),popinTitleSr:!0,popinAriaLabel:T.$t("search.switchMap.popin.ariaLabel"),popinFull:!1,btnCloseTxt:T.$t("search.switchMap.popin.btnClose"),triggerId:"btn_listResults",triggerTitle:T.$t("search.switchMap.popin.btnTitle"),triggerTxt:T.$t("search.switchMap.popin.btnText"),modal:!1,"force-mount":!0,"popin-parent-ref":m(h),ref_key:"listResultsRef",ref:p},{trigger:N(()=>[Y("button",{class:L([m(F)({position:"absolute",zIndex:"4",left:{md:"0",base:"auto"},right:{md:"auto",base:"1.5rem"},top:{md:"50%",base:"auto"},bottom:{md:"auto",base:"calc( {spacing.header} + {spacing.resultsCounter} )"},transform:{md:"translate(0, 0)",base:"translate(0,0)"},padding:{md:"2rem 1rem",base:"1rem 2rem"},borderRadius:{md:"0 0.8rem 0.8rem 0",base:"0.8rem 0.8rem 0 0"},backgroundColor:"{colors.black}",boxShadow:"0.5rem 0 1.5rem 0.5rem rgba(0,0,0,0.3)","& svg":{width:"2rem",height:"2rem",transition:"{easings.global}",transform:{md:"rotate(0)",base:"rotate(-90deg)"},"& *":{fill:"white"}},_print:{display:"none"}})])},[H(z,{"aria-hidden":"true"}),Y("span",{class:L(m(F)({srOnly:{md:"true",base:"false"},textTransform:"uppercase",color:"{colors.white}",transform:"translateY(150%)",position:"absolute !important",left:"0",bottom:"0"}))},de(T.$t("search.switchMap.show"))+" "+de(T.$t("search.switchMap.list")),3)],2)]),content:N(()=>[m(s).length>0?(E(),U("div",{key:0,class:L([m(Vn)({gap:"0",alignItems:"flex-start"}),m(F)({overflow:"auto",height:"100%","& > *":{width:"100%",padding:"3rem 1.5rem"},"& > *:nth-child(odd)":{backgroundColor:"{colors.lightGray}"}})])},[(E(!0),U(Ae,null,ft(m(s),J=>(E(),V(j,{key:J,result:J,options:{showimg:!1},popin:!0,"fields-to-show":["cim_news","datetime","place","address","schedule","phone","mobilePhone","mail","website","city"]},null,8,["result"]))),128))],2)):(E(),U("div",{key:1,class:L([m(F)({padding:"2rem",height:"100%",backgroundColor:"{colors.lightGray}"})])},[Y("p",null,de(T.$t("search.autocomplete.noResultAtAll")),1)],2))]),_:1},8,["popinTitle","popinAriaLabel","btnCloseTxt","triggerTitle","triggerTxt","popin-parent-ref"])],2),H(R)])}}}),wht=Q({__name:"T3CeCimsearchelasticDisplaysearch",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{default:{}},type:{},show_in_summary:{type:Boolean}},setup(e){return Si("moduleData",e.data),(n,r)=>{const i=pnt,a=mnt,o=gnt,s=ynt,l=xnt,u=Mnt,c=hht,d=pht;return E(),U("div",null,[e.data.settings.custom_template=="HomeBreve"?(E(),V(i,{key:0,data:e.data,header:e.header},null,8,["data","header"])):e.data.settings.custom_template=="HomeNewsZoom"?(E(),V(a,{key:1,results:e.data?.results,header:e.header,subheader:e.subheader,linkList:e.data?.linkList?.[0]},null,8,["results","header","subheader","linkList"])):e.data.settings.template=="homeNews"?(E(),V(o,{key:2,data:e.data,header:e.header,subheader:e.subheader},null,8,["data","header","subheader"])):e.data.settings.template=="homeEvent"?(E(),V(s,{key:3,data:e.data,header:e.header,subheader:e.subheader},null,8,["data","header","subheader"])):e.data.settings.template==="homeKiosque"?(E(),V(l,{key:4,data:e.data,header:e.header,subheader:e.subheader},null,8,["data","header","subheader"])):e.data.settings.custom_template=="LastUpdate"?(E(),V(u,{key:5,data:e.data,header:e.header},null,8,["data","header"])):e.data.settings.template=="list"?(E(),V(c,{key:6,data:e.data,header:e.header},null,8,["data","header"])):e.data.settings.template=="profile"?(E(),V(d,{key:7,data:e.data,header:e.header},null,8,["data","header"])):e.data.settings.template=="interactiveMap"?(E(),V(xht,{
991key:8,data:e.data},null,8,["data"])):ae("",!0)])}}}),Sht=Q({__name:"T3CeCimsubpagesDisplaysubpages",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{}},setup(e){return(t,n)=>{const r=Aoe;return E(),V(r,{result:e.data,header:e.header,isCarrefour:!0},null,8,["result","header"])}}}),Cht=Q({__name:"T3CeMaskBlocPictureHighlight",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=Tre;return E(),V(r,{header:e.header,headerLayout:e.headerLayout,uid:e.uid,colPos:e.colPos,result:e.items,showInSummary:e.show_in_summary},null,8,["header","headerLayout","uid","colPos","result","showInSummary"])}}}),Tht=Q({__name:"T3CeMaskBlocEcosystem",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},id:{},index:{},appearance:{},colPos:{},items:{},show_in_summary:{type:Boolean}},setup(e){const{t}=dr();return(n,r)=>{const i=jPe,a=VPe,o=zPe,s=du,l=UA,u=NPe,c=FPe,d=Mr;return E(),V(d,{header:e.header,"header-layout":e.headerLayout,uid:e.uid,showInSummary:e.show_in_summary},{content:N(()=>[H(c,{"default-value":"0"},{default:N(()=>[H(o,{class:L([m(rn)({gap:0,alignItems:"initial"}),m(F)({position:"relative",overflowX:"auto"})])},{default:N(()=>[H(i,{class:L(m(F)({bgColor:"primary",width:"calc(var(--radix-tabs-indicator-size) / 3)",left:"var(--radix-tabs-indicator-position)",position:"absolute",height:"0.2rem",bottom:{base:"0.5rem",sm:"1.5rem"},transform:"translateX(95%)",transition:"{easings.global}"}))},null,8,["class"]),(E(!0),U(Ae,null,ft(e.items,(f,h)=>(E(),V(a,{value:`${h}`,class:L(m(F)({fontSize:"p",padding:{base:"1rem 0",sm:"3rem 0"},_selected:{bgColor:"lightGray",fontWeight:700},_hover:{bgColor:"lightGray"}}))},{default:N(()=>[Y("span",{class:L([m(F)({display:"block",paddingInline:"2rem",position:"relative"}),h!==0?m(F)({_before:{content:"''",position:"absolute",top:0,left:"-0.1rem",width:"0.1rem",height:"100%",bgColor:"lightGray"}}):null])},de(f.title),3)]),_:2},1032,["value","class"]))),256))]),_:1},8,["class"]),(E(!0),U(Ae,null,ft(e.items,(f,h)=>(E(),V(u,{value:`${h}`,class:L([m(Sa)(),m(ru)(),m(u6)(),m(Zd)(),m(F)({bgColor:"lightGray",padding:"4rem"})])},{default:N(()=>[H(l,{gallery:{position:{horizontal:f.image_position,noWrap:!1,vertical:f.image_position},count:{columns:1,files:f.images?.length,rows:1},border:{enabled:!1,padding:0,width:2},rows:{1:{columns:{1:f.images?.[0]}}}}},{default:N(()=>[f.description?(E(),V(s,{key:0,content:f.description},null,8,["content"])):ae("",!0)]),_:2},1032,["gallery"])]),_:2},1032,["value","class"]))),256))]),_:1})]),_:1},8,["header","header-layout","uid","showInSummary"])}}}),Doe={__name:"T3Link",props:{link:{type:[String,Object],required:!0}},setup(e){const t=e,n=W(()=>typeof t.link=="string"?{href:t.link}:t.link);return(r,i)=>{const a=u1;return E(),V(a,rt({to:n.value.href,target:n.value.target,title:n.value.title,class:n.value.class},n.value.additionalAttributes),{default:N(()=>[me(r.$slots,"default")]),_:3},16,["to","target","title","class"])}}},kht=Object.freeze(Object.defineProperty({__proto__:null,default:Doe},Symbol.toStringTag,{value:"Module"}));function Eht(e){const t=W(()=>e.headerLayout===0?1:e.headerLayout||1),n=W(()=>e.headerPosition?`t3-ce-header--${e.headerPosition}`:"");return{headerLevel:t,headerClass:n}}const Mht={inheritAttrs:!1},Ioe=Object.assign(Mht,{__name:"T3CeHeader",props:{header:{type:String,required:!1,default:""},headerLayout:{type:Number,required:!1,default:0},headerPosition:{type:String,required:!1,default:""},headerLink:{type:[Object,String],required:!1,default:()=>({additionalAttributes:[],class:"",href:"",linkText:"",target:"",title:""})},subheader:{type:String,required:!1,default:""},uid:{type:Number,required:!1},index:{type:Number,required:!1},appearance:{type:Object,required:!1}},setup(e){const t=e,{headerLevel:n,headerClass:r}=Eht(t);return(i,a)=>t.header&&t.headerLayout!==100?(E(),U("div",{key:0,class:L([m(r),"t3-ce-header"])},[t.headerLayout>=0&&t.headerLayout!==100?(E(),V(yn(`h${m(n)}`),{key:0,class:L(t.headerPosition)},{default:N(()=>[t.headerLink?(E(),V(Doe,{key:0,link:t.headerLink},{default:N(()=>[st(de(t.header),1)]),_:1},8,["link"])):(E(),U(Ae,{key:1},[st(de(t.header),1)],64))]),_:1},8,["class"])):ae("",!0),t.subheader?(E(),V(yn(`h${m(n)+1}`),{key:1},{default:N(()=>[st(de(t.subheader),1)]),_:1})):ae("",!0)],2)):ae("",!0)}}),Aht=Object.freeze(Object.defineProperty({__proto__:null,default:Ioe},Symbol.toStringTag,{value:"Module"})),fI=Q({__name:"T3CeMenuPagesList",props:{children:{default:()=>[]}},setup(e){const t=e,n=()=>t.children.map(i=>Nt("li",{},[Nt(u1,{to:i.link,target:i.target||null,title:i.title},()=>[i.title]),i.children?Nt(fI,{children:i.children}):null])),r=()=>Nt("ul",{},{default:()=>n()});return(i,a)=>(E(),V(r))}}),$oe=Q({__name:"T3CeMenuPages",props:{menu:{}},setup(e){const t=e;return(n,r)=>{const i=Ioe,a=u1,o=fI;return E(),U("div",null,[H(i,un(pn(t)),null,16),t.menu?(E(),U("ul",{key:0,class:L([m(vi)({columns:{base:1,lg:2}}),m(Sa)({shadowInitial:"0"})])},[(E(!0),U(Ae,null,ft(e.menu,(s,l)=>(E(),U("li",{key:l,class:L(m(F)({padding:"1.5rem",fontSize:"{fontSizes.h3}",bgColor:"{colors.lightGray}"}))},[H(a,{to:s.link,target:s.target||null,title:s.title,class:L(m(F)({fontFamily:"{fonts.bold}"}))},{default:N(()=>[st(de(s.title),1)]),_:2},1032,["to","target","title","class"]),me(n.$slots,"link",{link:s}),s.children?(E(),V(o,{key:0,children:s.children,class:L([m(F)({marginTop:"0.5rem","& li":{fontSize:"1.8rem",borderLeft:"{borders.md} {colors.black}",marginLeft:"1.5rem",paddingLeft:"1.5rem"},"& > li ul":{marginTop:"1rem","& li":{fontSize:"1.6rem"}}})])},null,8,["children","class"])):ae("",!0)],2))),128))],2)):ae("",!0)])}}}),Pht={};function Dht(e,t){const n=$oe;return E(),V(n)}const Iht=WA(Pht,[["render",Dht]]),$ht=e=>Nt("div",null,[Nt(N1,{content:e.shortcut.map(t=>(t.colPos=e.colPos,t)),frame:!1})]),Lht=$ht,Rht=["id"],Oht={key:1},Bht=["id"],Fht={name:"T3CeTextpic",inheritAttrs:!1},zht=Q({...Fht,props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},enlargeImageOnClick:{type:Boolean},bodytext:{},gallery:{}},setup(e){const t=Yt(),n=G(t.siteBuilderInfos),r=F({width:"100%",transform:"translateY(calc(-2 * {spacing.header}))"});return(i,a)=>{const o=s6,s=du,l=UA;return E(),U("div",{class:L(["t3-ce-textpic",m(Sa)(),m(Zd)(),m(ru)(),m(F)({overflow:"hidden",marginBottom:"{spacing.gutter}",position:"relative"}),m(n)?.identifier==="Cdr"?m(y1)():null])},[H(o,{header:e.header,headerLayout:e.headerLayout},null,8,["header","headerLayout"]),!e.gallery?.position?.noWrap&&e.header?(E(),U(Ae,{key:0},[(e.headerLayout,E(),U("div",{key:0,id:`c${e.uid}`,class:L(m(r)),tabindex:"0"},null,10,Rht))],64)):ae("",!0),e.subheader?(E(),U("h3",Oht,de(e.subheader),1)):ae("",!0),H(l,{gallery:e.gallery,enlargeImageOnClick:e.enlargeImageOnClick,imgOnly:e.bodytext===""},{default:N(()=>[e.gallery?.position?.noWrap&&e.header?(E(),U(Ae,{key:0},[(e.headerLayout,E(),U("div",{key:0,id:`c${e.uid}`,class:L(m(r)),tabindex:"0"},null,10,Bht))],64)):ae("",!0),e.bodytext?(E(),V(s,{key:1,content:e.bodytext,uid:e.uid},null,8,["content","uid"])):ae("",!0)]),_:1},8,["gallery","enlargeImageOnClick","imgOnly"])],2)}}}),Nht=Q({__name:"T3FormCta",props:{i18n:{}},emits:["click:submit","click:reset"],setup(e){const t=cr("submitStatus"),n=e,r=W(()=>({submitButton:"Envoyer",sendingLabel:"En cours d'envoi",resetButton:"Réinitialiser",serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form",...n.i18n}));return(i,a)=>{const o=Tn;return E(),U("div",{class:L(m(js)())},[r.value.submitButton!==!1?(E(),V(o,{key:0,link:{text:m(t).pending?r.value.sendingLabel:r.value.submitButton},variante:{classes:"button",bgColor:"primary"},type:"submit",disabled:m(t).pending,value:m(t).pending?r.value.sendingLabel:r.value.submitButton,class:L(m(t).pending?"loader_submit":null),onClick:a[0]||(a[0]=nr(s=>i.$emit("click:submit"),["prevent"]))},null,8,["link","disabled","value","class"])):ae("",!0),r.value.resetButton!==!1?(E(),V(o,{key:1,id:"reset_search",link:{text:r.value.resetButton},variante:{classes:"btnTxt",bgColor:"black"},type:"button",onClick:a[1]||(a[1]=nr(s=>i.$emit("click:reset"),["prevent"]))},null,8,["link"])):ae("",!0)],2)}}}),Vht=Q({__name:"T3Form",props:{elements:{},i18n:{},type:{},customComponents:{},legend:{},legendSr:{type:Boolean}},emits:["submit"],setup(e,{expose:t,emit:n}){const r=e,{t:i}=dr();Ed("Hcaptcha",b=>
991!b||!b.length?i("form.captcha.error"):!0);const a=G(),o=n,{i18n:s,isSubmitting:l,handleSubmit:u,resetForm:c,errors:d,setErrors:f,meta:h,values:p,setFieldValue:g}=Eoe(r),v=u(b=>{o("submit",{values:b,formRef:a})});return t({isSubmitting:l,resetForm:c,errors:d,meta:h,i18n:s,setErrors:f,formRef:a,values:p,handleSubmit:u,setFieldValue:g}),(b,x)=>{const _=Nht,w=Kv;return E(),U("form",{ref_key:"formRef",ref:a,class:"t3-form",novalidate:"",onSubmit:x[0]||(x[0]=nr(()=>{},["prevent"]))},[me(b.$slots,"before-fields"),me(b.$slots,"fields",{},()=>[H(w,{legend:e.legend,"legend-sr":e.legendSr,elements:e.elements,"custom-components":e.customComponents},{default:N(()=>[me(b.$slots,"default",{},()=>[H(_,{i18n:m(s),state:{sending:m(l)},"onClick:reset":m(c),"onClick:submit":m(v)},null,8,["i18n","state","onClick:reset","onClick:submit"])])]),_:3},8,["legend","legend-sr","elements","custom-components"])]),me(b.$slots,"after-fields")],544)}}}),Ho=e=>!!(e==null||typeof e=="string"&&e.trim()===""||typeof e=="number"&&Ec(e)||Array.isArray(e)&&e.length===0||typeof e=="object"&&Object.keys(e).length===0),jht=e=>Ho(e)?!0:TD(e,{regex:"^-?\\d*\\.?\\d+$"}),Uht=(e,t)=>{if(Ho(e))return!0;const n=t.options?.regularExpression;return Ho(n)?!0:TD(e,{regex:n.replace(/^\/|\/$/g,"")})},XU=(e,t)=>{if(Ho(e))return!0;const n=(Array.isArray(e)?e:String(e)).length,{minimum:r,maximum:i}=t.options??{};if(Ho(r)||Ho(i))return!0;const a=parseInt(r),o=parseInt(i);return Ec(a)||Ec(o)||a>o?!0:!!Sw(n,{min:a,max:o})},Loe=e=>Ec(e)&&!Ec(Date.parse(e)),JU=e=>Loe(e)?Date.parse(e):parseFloat(e),QU=(e,t)=>{if(Ho(e)||typeof e!="string")return!0;const{minimum:n,maximum:r}=t.options??{};if(Ho(n)||Ho(r))return!0;const i=JU(n),a=JU(r);if(Ec(i)||Ec(a)||i>a)return!0;const o=Loe(e)?Date.parse(e):parseFloat(e);return!!Sw(o,{min:i,max:a})},eH=e=>{const t={B:1,K:1024,M:1048576,G:1073741824},n=new RegExp(/(\d+(?:\.\d+)?)\s*([BKMG])/i),r=e.match(n);if(r){const[,i,a]=r;if(a.toUpperCase()in t)return Ec(parseFloat(i))?void 0:parseFloat(i)*t[a.toUpperCase()]}},Hht=(e,t)=>{if(!(e instanceof File))return!0;const{minimum:n,maximum:r}=t.options??{};if(Ho(n)||Ho(r))return!0;const i=eH(n),a=eH(r);return Ho(i)||Ho(a)||i>a?!0:!!Sw(e.size,{min:i,max:a})};function qht(e){return!(!e||!e.length)}function Wht({uid:e,form:t,link:n},r,i){const a=G(null),o={required:{veeValidateName:"required",function:Kk},NotEmpty:{veeValidateName:"required",function:Kk},Alphanumeric:{veeValidateName:"alpha_num",function:Zk},Number:{veeValidateName:"alpha_num",function:Zk},Integer:{veeValidateName:"integer",function:Ott},Float:{veeValidateName:"float",function:jht},EmailAddress:{veeValidateName:"email",function:Rtt},RegularExpression:{veeValidateName:"regex",function:Uht},StringLength:{veeValidateName:"between",function:XU},Count:{veeValidateName:"between",function:XU},NumberRange:{veeValidateName:"range",function:QU},DateRange:{veeValidateName:"range",function:QU},FileSize:{veeValidateName:"size",function:Hht},Hcaptcha:{veeValidateName:"hcaptcha",function:qht}},s=d=>{const f={};return d&&d.forEach(h=>{const p=h.identifier;if(Object.keys(o).includes(p)){try{typeof o[p]=="function"?Ed(o[p].veeValidateName,v=>o[p](v,h)):typeof o[p].function=="function"?Ed(o[p].veeValidateName,v=>o[p].function(v,h)):console.error(`The rule '${p}' is not defined in the form rulesMap (useT3CeFormFormframework)`)}catch(v){console.log("typo3-form",p,o[p],v)}let g=!0;p==="RegularExpression"&&h.options&&(g=new RegExp(h.options.regularExpression)),p==="StringLength"&&h.options&&(h.options.minimum&&(Ed("minLength",Dre),f.minLength=h.options.minimum),h.options.maximum&&(Ed("maxLength",Pre),f.maxLength=h.options.maximum),g=!1),f[o[p].veeValidateName]=g}else console.error(`Validator '${p}' not found.`)}),f},l=(d=t.elements??[])=>d.map(f=>({properties:f.properties,label:f.label,identifier:f.identifier,type:f.type.toLowerCase(),name:f.name?.replace("<index>",""),validators:s(f.validators),validatorsOptions:f.validators,value:(ur(f.defaultValue)?f.value:f.defaultValue)??"",defaultValue:f.defaultValue??"",isTemplate:!!f.isTemplate,iteration:BM(f.iteration)?f.iteration:-1,fieldlist:f.type==="Fieldset",elements:f.elements?l(f.elements):void 0})),u=W(()=>{const d=t.elements[0].name;
991if(typeof d=="string"){const f=d.match(/^([^\[\]]+\[[^\[\]]+\])/);if(f&&f[1])return f[1]}return null}),c=async d=>{if(!r.value)return;a.value=null;const f=new FormData(d.formRef.value);e&&(f.append("responseElementId",e.toString()),f.append("responseElementRecursive","1"));const{$fetch:h}=Wo(),{meta:p,resetForm:g,setErrors:v,i18n:b}=r.value;if(p?.valid)try{const _=(await h(n.href,{method:"POST",body:f}))?.content?.form?.api;if(_?.status==="success"){a.value=b?.serverSuccess??null,g();const w=_.actionAfterSuccess?.redirectUrl;return w?wl(w,{external:w.includes("http")}):void 0}if(_?.status==="failure"){a.value=b?.validationErrors??null;const w={};for(const[C,T]of Object.entries(_.errors)){const k=`${u.value}[${C}]`;w[k]=T}v(w)}}catch{a.value=b?.serverError??null}};return{elements:l(),onSubmit:c,responseMessage:a}}const Ght=["id"],Zht={key:1},jw=Q({__name:"T3CeFormFormframework",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},link:{},form:{},customSubmit:{},i18n:{default:{submitButton:"Envoyer",sendingLabel:"En cours d'envoi",resetButton:"Réinitialiser",serverSuccess:"Le formulaire a été envoyé, merci.",serverError:"Nous ne pouvons pas traiter le formulaire pour le moment, veuillez réessayer plus tard.",validationErrors:"Il y a eu des erreurs, merci de revoir le formulaire"}},legendSr:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=Yt(),r=G(n.siteBuilderInfos),i=G(null),a=e,{elements:o}=Wht(a,i),s=G({isSubmited:!1,pending:!1,message:null,hasError:!1,isPreparedMessage:!1});Si("submitStatus",s);const l=G(),u=W(()=>ur(a.header)?a.form?.api?.label:a.header),c=async d=>{if(!i.value)return;if(s.value.isSubmited=!1,s.value.pending=!0,s.value.hasError=!1,s.value.message=null,typeof a.customSubmit=="function"){await a.customSubmit(d);return}const f=new FormData(d.formRef.value),{meta:h,resetForm:p,setErrors:g}=i.value;if(a.uid&&a.colPos!=3&&(f.append("responseElementId",a.uid.toString()),f.append("responseElementRecursive","1")),!h?.valid)return console.warn("form meta are not valid");try{if(a.colPos==3?await zo(a.link.href,{method:"POST",body:f}).then(v=>{l.value=v.content.colPos0[0].content.data.formContentElements[0]}):l.value=await zo(a.link.href,{method:"POST",body:f}),s.value.pending=!1,typeof l.value?.content?.form=="string"){let v=l.value?.content?.form;s.value.isSubmited=!0,s.value.success=!1,s.value.message=`Le formulaire n'a pas pu être envoyé, veuillez contacter l'administrateur du site avec ce code : "${v}" (formulaire non trouvé dans la réponse)`}else{const v=l.value?.content?.form?.api;if(v)if(v?.status==="success"){s.value.isSubmited=!0,s.value.success=!0,s.value.message="Votre demande a bien été prise en compte.",p();const b=v.actionAfterSuccess?.redirectUrl;return b?wl(b,{external:b.includes("http")}):void 0}else{s.value.isSubmited=!1,s.value.success=!1,s.value.message="Le formulaire a renvoyé des erreurs.";const b={};for(const[x,_]of Object.entries(v.errors)){const w=`tx_form_formframework[${a.form.id}][${x}]`;b[w]=_}g(b)}else s.value.isSubmited=!0,s.value.hasError=!0,s.value.success=!1,s.value.message="La réponse du formulaire n'a pas été trouvée."}}catch(v){s.value.pending=!1,s.value.isSubmited=!1,s.value.success=!1,s.value.hasError=!0,s.value.message="Une erreur s'est produite.",console.error(v)}};return t({submitStatus:s,t3form:i}),(d,f)=>{const h=Vht;return E(),U("div",{class:L(["t3-ce-form-framework",r.value.identifier==="Cdr"?m(y1)():null,m(F)({position:"relative"})])},[u.value?(E(),U(Ae,{key:0},[Y("div",{id:`c${e.uid}`,class:L(m(F)({width:"100%",position:"absolute",top:"calc(-1 * {spacing.header})"}))},null,10,Ght),Y("h2",null,de(u.value),1)],64)):ae("",!0),s.value.isSubmited?(E(),U("p",{key:2,class:L(m(F)({color:s.value.success?"success":"danger",fontFamily:"bold"}))},de(s.value.message),3)):(E(),U(Ae,{key:1},[a.form?(E(),V(h,{key:0,ref_key:"t3form",ref:i,elements:m(o),legend:u.value,legendSr:e.legendSr,i18n:e.i18n,onSubmit:c},{"before-fields":N(()=>[Y("p",{class:L(m(F)({fontSize:"md",fontWeight:600}))},de(d.$t("form.mandatoryLabel")),3),me(d.$slots,"before-form")]),fields:N(()=>[me(d.$slots,"fields")]),"after-fields":N(()=>[me(d.$slots,"after-form")]),_:3},8,["elements","legend","legendSr","i18n"])):ae("",!0),s.value.message?(E(),U("div",Zht,[Y("p",null,de(s.value.message),1)])):ae("",!0)],64))],2)}}}),Kht=["innerHTML"],Yht=["innerHTML"],Xht={key:0},Jht={key:1},Qht=Q({__name:"T3CeFeloginLogin",props:{type:{},required:{},data:{},id:{}},setup(e){const t=e,n=G();ai();const{t:r}=dr(),i=kG(),a=Yt(),o=G(a.initialData),s=G(a.userData),l=G(),u=G(),c=W(()=>{let T=t.data.form;return T.title=t.data.form.header||r("login.connection"),T}),{errors:d,setErrors:f,setFieldValue:h}=m1(),p=G(!1),g=W(()=>(t.data.form.elements||t.data.form.fields)?.find(T=>T.name==="logintype")?.value),v=W(()=>n.value?.form||t?.data?.form),b=W(()=>n.value?.message||t?.data?.message),x=W(()=>n.value?.status||t?.data?.status),_=async T=>{const k=new FormData(T.formRef.value);p.value=!0;let A=await Wo().$fetch(c.action,{method:c.method||"post",body:k,credentials:"include"});if(p.value=!1,A=A?.content?.colPos0?.filter(P=>P.type==="felogin_login")[0]?.content?.data,n.value=A,x.value==="success")try{await Wo().getInitialData(i("/?type=834")),await Zx().getUser()}catch{C(A)}finally{w(A,g.value)}else C(A)},w=(T,k)=>{let A="/";T.redirectUrl?A=T.redirectUrl||"/":k==="logout"?A=o.value?.loginUrl||"/":A=s.value?.myaccountUrl||"/",wl(A)},C=T=>{T.message&&(b.value=T.message),T.form&&(t.data.form.elements=T.form.elements)};return(T,k)=>{const A=Tn;return m(o)?.feUser?(E(),U("div",{key:1,class:L(m(Vn)())},[Y("p",{class:L(m(F)({textAlign:"center","& span":{display:"block",fontFamily:"{fonts.bold}",fontSize:"1.4em",marginTop:".5rem"}}))},[st(de(T.$t("login.connected"))+" ",1),m(o)?.feUser?.firstName&&m(o)?.feUser?.lastName?(E(),U("span",Xht,de(m(o)?.feUser?.firstName)+" "+de(m(o)?.feUser?.lastName),1)):(E(),U("span",Jht,de(m(o)?.feUser?.username),1))],2),H(A,{link:{href:"/",text:T.$t("login.buttons.goToHome")},variante:{classes:"button",bgColor:"primary"},noContainer:!0},null,8,["link"]),H(A,{link:{href:m(o)?.feUser?.logoutUrl,text:T.$t("dashboard.logout")},variante:{classes:"button",bgColor:"primary"},noContainer:!0},null,8,["link"])],2)):(E(),U("div",{key:0,ref_key:"elRef",ref:l},[Y("h1",{class:L(m(F)({textAlign:"center"}))},de(m(v).header||m(v)?.title||T.$t("login.connection")),3),H(jw,{ref_key:"formRef",ref:u,form:m(c),link:{href:m(c).action},uid:t.uid,"custom-submit":_,i18n:{submitButton:T.$t("login.buttons.login"),sendingLabel:T.$t("login.connecting"),resetButton:!1}},{"before-form":N(()=>[Y("div",null,[m(b)&&m(b).header?(E(),U("p",{key:0,innerHTML:m(b).header,class:L(m(F)({fontSize:"{fontSizes.h4}",fontFamily:"{fonts.bold}"}))},null,10,Kht)):ae("",!0),m(b)&&m(b).message?(E(),U("p",{key:1,innerHTML:m(b).message},null,8,Yht)):ae("",!0)])]),_:1},8,["form","link","uid","i18n"])],512))}}}),ept=["id","role"],tpt=["innerHTML"],npt=Q({__name:"T3FormMessage",props:{field:{},message:{},isSuccess:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},inputMessageStyle:{},messageId:{},isPreparedMessage:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const r=N1;return e.message&&!e.isPreparedMessage?(E(),U("p",{key:0,id:e.isError&&!("isEmptyCustom"in t?t.isEmptyCustom:m(ur))(e.field)?`error_${e.messageId}`:null,role:e.isError?"alert":null,"aria-live":"polite",class:L([e.inputMessageStyle,m(F)({bgColor:e.isSuccess?"{colors.successBg}":e.isError?"{colors.danger}":"{colors.lightGray}",padding:"0.5rem",color:e.isSuccess?"success":e.isError?"white":"{colors.white}",marginTop:"1.5rem",_print:{bgColor:"{colors.white}",color:"{colors.black}",marginBottom:"1.5rem"}})])},[Y("span",{innerHTML:e.message},null,8,tpt)],10,ept)):e.message&&e.isPreparedMessage?(E(),U(Ae,{key:1},[e.isPreparedMessage?(E(),V(r,{key:0,frame:!1,content:[e.message]},null,8,["content"])):ae("",!0)],64)):ae("",!0)}}}),rpt={key:0},ipt=Q({__name:"T3CePagepasswordForm",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{}},setup(e){const t=e,n=G(),r=G(t.data),i=async a=>{if(!n.value)return;n.value.submitStatus.pending=!0,n.value.submitStatus.isSubmited=!1,n.value.submitStatus.hasError=!1;const o=new FormData(a.formRef.value);t.uid&&(o.append("responseElementId",t.uid.toString()),o.append("responseElementRecursive","1"));let s=null;try{s=await zo(r.value.form.form.action,{method:"POST",body:o})}catch(l){console.error("Form error",l),n.value.submitStatus.hasError=!0,n.value.submitStatus.message="Une erreur est survenue lors de l'envoi des données du formulaire.",n.value.submitStatus.pending=!1;return}if(n.value.submitStatus.pending=!1,s?.content?.data&&(r.value=s=s.content.data,r.value.form.form.elements.forEac
991h(l=>{n.value.t3form.setFieldValue(l.name,l.value,!1)})),s.redirectUrl)return wl(s.redirectUrl,{external:s.redirectUrl.startsWith("http")})};return(a,o)=>{const s=du,l=npt,u=jw;return E(),U(Ae,null,[m(r).form.title?(E(),U("h2",rpt,de(m(r).form.title),1)):ae("",!0),m(r).form.description?(E(),V(s,{key:1,content:m(r).form.description},null,8,["content"])):ae("",!0),m(r).errors?(E(!0),U(Ae,{key:2},ft(m(r).errors,(c,d)=>(E(),V(l,{key:d,"is-success":!1,"is-error":!0,message:c.message,messageId:`pagepassword_${d}`,isPreparedMessage:!1},null,8,["message","messageId"]))),128)):ae("",!0),H(u,{ref_key:"t3Form",ref:n,link:m(r).form.form.action,form:m(r).form.form,"custom-submit":i,i18n:{submitButton:"Envoyer",sendingLabel:"En cours d'envoi",resetButton:!1,serverSuccess:"Accès autorisé.",serverError:"Nous ne pouvons pas traiter votre demande pour le moment, veuillez réessayer plus tard.",validationErrors:"Accès refusé."}},null,8,["link","form"])],64)}}}),apt={};function opt(e,t){return null}const spt=WA(apt,[["render",opt]]),lpt=Q({__name:"T3CeCimpackageProposition",props:["uid","data"],setup(e){const t=e,n=G(null),r=G([]);async function i(a){if(!a.values||!n.value)return;r.value=[],n.value.submitStatus.isSubmited=!1,n.value.submitStatus.message=null;const o=new FormData(a.formRef.value);o.keys().forEach(u=>{(u.endsWith("_raw")||u.endsWith("_raw]"))&&(o.delete(u),console.log("delete",u))}),t.uid&&(o.append("responseElementId",t.uid.toString()),o.append("responseElementRecursive","1"));let s;n.value.submitStatus.pending=!0;try{s=await zo(t.data.form.link.href,{method:"POST",body:o})}catch(u){console.error(u)}n.value.submitStatus.pending=!1;const l=s?.content?.data;if(mZ(l)){console.log("response",l);return}if(l?.status==="success")n.value.submitStatus.isSubmited=!0,n.value.submitStatus.message=l.message||"Votre demande a été envoyée.";else{n.value.submitStatus.message=l?.message;try{for(const[u,c]of Object.entries(l?.errors??[])){delete l.errors[u];let d=(t.data?.form?.api?.extensionName??"")+u.replaceAll("'","");t.data.form.elements.map(h=>h.name).includes(`${d}[]`)&&!d.endsWith("[]")&&(d+="[]"),l.errors[d]=c,n.value.t3form.setErrors(l.errors)}}catch(u){console.error("Error showing form errors",u)}}}return(a,o)=>{const s=Tn,l=spt;return E(),U("div",{class:L(m(F)({width:{base:"100%"},marginInline:"auto"}))},[e.data.error?(E(),U(Ae,{key:0},[Y("p",null,de(e.data.error),1),H(s,{link:{href:"#",text:"Retour à la page précédente"},variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:"primary",pictoSize:"md"},picto:"prev",onClick:o[0]||(o[0]=nr(u=>("useRouter"in a?a.useRouter:m(ai))().back(),["prevent"]))})],64)):_o((E(),V(jw,{key:1,form:e.data.form,uid:t.uid,"custom-submit":i,ref_key:"t3FrameworkRef",ref:n,i18n:{submitButton:e.data?.form?.renderingOptions?.submitButtonLabel??"Envoyer",sendingLabel:"En cours d'envoi",resetButton:"Réinitialiser",serverSuccess:"Le formulaire a été envoyé, merci.",serverError:"Nous ne pouvons pas traiter le formulaire pour le moment, veuillez réessayer plus tard.",validationErrors:"Il y a eu des erreurs, merci de revoir le formulaire"}},{"before-form":N(()=>[H(l,{errors:m(r)},null,8,["errors"])]),_:1},8,["form","uid","i18n"])),[[Wx,e.data.form]])],2)}}}),upt=/\d/,cpt=["-","_","/","."];function dpt(e=""){if(!upt.test(e))return e!==e.toLowerCase()}function fpt(e,t){const n=cpt,r=[];if(typeof e!="string")return r;let i="",a,o;for(const s of e){const l=n.includes(s);if(l===!0){r.push(i),i="",a=void 0;continue}const u=dpt(s);if(o===!1){if(a===!1&&u===!0){r.push(i),i=s,a=u;continue}if(a===!0&&u===!1&&i.length>1){const c=i.at(-1);r.push(i.slice(0,Math.max(0,i.length-1))),i=c+s,a=u;continue}}i+=s,a=u,o=l}return r.push(i),r}function hpt(e){return e?e[0].toUpperCase()+e.slice(1):""}function ppt(e,t){return(Array.isArray(e)?e:fpt(e)).map(n=>hpt(n)).join("")}const Roe=({type:e,prefix:t,mode:n}={type:"Default",prefix:"T3Ce",mode:"Lazy"})=>{const r=(n||"Lazy")+(t||"T3Ce")+ppt(e||"default"),i=yn(r);return typeof i=="string"?yn(`${t}Default`):i},E1t=(e="default")=>Roe({type:e,prefix:"T3Bl",mode:""}),mpt=(e="default")=>Roe({type:e,prefix:"T3Ce",mode:""}),N1=Q({__name:"T3RendererEdito",props:{content:{default:()=>[]},frame:{type:Boolean,default:!0},class:{}},setup(e){const t=(n,r)=>{const{id:i,type:a,appearance:o,content:s,colPos:l}=n;let u;switch(a){case"mask_bloc_":u=xa("T3CeMaskBloc");break;case"cimeos-2cols":u=dCe;break;case"cimeos-3cols":u=fCe;break;case"mask_bloc_accordion":u=CIe;break;case"mask_bloc_audio_player":u=VIe;break;case"mask_bloc_buttons":u=jIe;break;case"mask_bloc_contact":u=nLe;break;case"mask_bloc_diaporama_pictures":u=ZRe;break;case"mask_bloc_diaporama_videos":u=JRe;break;case"mask_bloc_evenements_a_venir":u=vOe;break;case"mask_bloc_downloads":u=_Oe;break;case"mask_bloc_liens_externes":u=SOe;break;case"mask_bloc_elected":u=COe;break;case"mask_bloc_teaser":u=TOe;break;case"mask_bloc_external_widget":u=kOe;break;case"mask_bloc_faq":u=xa("T3CeMaskBlocFaq");break;case"mask_bloc_geolocation":u=$Qe;break;case"mask_bloc_highlight_content":u=Sre;break;case"mask_bloc_key_numbers":u=NQe;break;case"mask_bloc_quote":u=UQe;break;case"mask_bloc_see_also":u=HQe;break;case"mask_bloc_directory_list":u=qQe;break;case"mask_bloc_test_integration":u=WQe;break;case"mask_bloc_useful_links":u=ZQe;break;case"mask_bloc_video":u=KQe;break;case"mask_bloc_timeline":u=YQe;break;case"cimdashboard_show":u=set;break;case"cimdirectory_display":u=hnt;break;case"cimelastic_search":u=xa("T3CeCimElasticSearch");break;case"cimsearchelastic_displaysearch":u=wht;break;case"cimsubpages_displaysubpages":u=Sht;break;case"cimpoll_displaypoll":u=xa("T3CeCimpollDisplaypoll");break;case"mask_bloc_phototeque":u=xa("T3CeMaskBlocPhototeque");break;case"mask_bloc_picture_highlight":u=Cht;break;case"mask_bloc_ecosystem":u=Tht;break;case"html":u=HA;break;case"menu_pages":u=$oe;break;case"menu_pages_list":u=fI;break;case"menu_sitemap_pages":u=Iht;break;case"shortcut":u=Lht;break;case"textpic":u=zht;break;case"form_formframework":u=jw;break;case"felogin_login":u=Qht;break;case"pagepassword_form":u=ipt;break;default:u=mpt(a);break}return a.startsWith("cimpackage_")&&(a.endsWith("creation")||a.endsWith("modification"))&&(u=lpt),Nt(u,{uid:i,appearance:o,index:r,colPos:l,type:a,content_color:n.content_color,show_in_summary:n.show_in_summary,link:n.content.link,display_mode:n.content.display_mode,id:o.frameClass==="none"?`c${i}`:null,...s})};return(n,r)=>(E(!0),U(Ae,null,ft(e.content,(i,a)=>(E(),V(yn(t(i,a)),{key:a,class:L(e.class),id:`c${i.id}`},null,8,["class","id"]))),128))}}),gpt={key:0},ypt=Q({__name:"T3BlError",props:{pageData:{},error:{}},setup(e){return(t,n)=>{const r=N1,i=Ire;return E(),V(i,{pageData:e.pageData,data:e.pageData?.meta,mainContent:e.pageData?.content?.colPos0,asideContent:e.pageData?.content?.colPos1,bottomContent:e.pageData?.content?.colPos2,isError:!0},{mainContent:N(()=>[e.error.statusCode?(E(),U("p",gpt,"Code d'erreur : "+de(e.error.statusCode),1)):ae("",!0),H(r,{content:e.pageData?.content?.colPos0},null,8,["content"])]),asideContent:N(()=>[H(r,{content:e.pageData?.content?.colPos1},null,8,["content"])]),bottomContent:N(()=>[H(r,{content:e.pageData?.content?.colPos2},null,8,["content"])]),_:1},8,["pageData","data","mainContent","asideContent","bottomContent"])}}}),Ooe=MW,vpt=Q({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>Nt(ec[e.name],e.layoutProps,t.slots)}}),_pt={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},bpt=Q({name:"NuxtLayout",inheritAttrs:!1,props:_pt,setup(e,t){const n=vt(),r=cr(qh),a=!r||r===nu()?fW():r,o=W(()=>{let c=m(e.name)??a?.meta.layout??Ooe(a?.path).appLayout??"default";return c&&!(c in ec)&&e.fallback&&(c=m(e.fallback)),c}),s=Bt();t.expose({layoutRef:s});const l=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",l),d=ai().beforeEach(()=>{c(),d()})}let u;return()=>{const d=!!o.value&&o.value in ec&&!!(a?.meta.layoutTransition??nR),f=d&&TW([a?.meta.layoutTransition,nR,{onBeforeLeave(){n["~transitionPromise"]=new Promise(p=>{n["~transitionFinish"]=p})},onAfterLeave(){n["~transitionFinish"]?.(),delete n["~transitionFinish"],delete n["~transitionPromise"]}}]),h=u;return u=o.value,CW(f,{default:()=>Nt(XE,{suspensible:!0,onResolve:async()=>{await At(l)}},{default:()=>Nt(xpt,{layoutProps:rt(t.attrs,a.meta.layoutProps??{},{ref:s}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:p=>p!==h&&p===o.value,hasTransition:d},t.slots)})}).default()}}}),xpt=Q({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&Si(WS,{isCurrent:o=>n===!1||n===(o.meta.layout??Ooe(o.path).appLayout??"default")});
991const r=cr(qh),i=r&&r===nu(),a=cr(WS,null);if(i){const o=fW(),s={};for(const l in o){const u=l;Object.defineProperty(s,u,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)&&(!a||a.isCurrent(o))?o[u]:r[u]})}Si(qh,Wl(s))}return()=>!n||typeof n=="string"&&!(n in ec)?t.slots.default?.():Nt(vpt,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),wpt=()=>{const e=vt(),t=LG(),{currentSiteOptions:n}=uv();return{redirect:async a=>{await e.callHook("t3:redirect",a);const{redirectUrl:o,statusCode:s}=a,l=IM(o,{acceptRelative:!0});return await e.runWithContext(()=>wl(o,{external:l,replace:!0}))},localePath:a=>{const{i18n:o}=n.value,s=o.default===t.value?"":t.value;return IG(`/${s}${a?`/${a}`:""}`)}}},Spt=(e="default")=>e in ec,Cpt=()=>{const{getCurrentLocaleData:e}=t6(),t=e(),n=VW(),{currentSiteOptions:r}=uv(),i=W(()=>n.value?.meta),a=W(()=>{const{twitterTitle:f,twitterDescription:h,twitterImage:p,twitterCard:g,title:v,description:b,ogImage:x}=i.value;return[{id:"twitter:title",name:"twitter:title",content:f||v},{id:"twitter:description",name:"twitter:description",content:h||b},{id:"twitter:image",name:"twitter:image",content:p?.publicUrl||x?.publicUrl||void 0},{id:"twitter:card",name:"twitter:card",content:g||"summary"}]}),o=W(()=>{const{ogTitle:f,ogDescription:h,ogImage:p,title:g,description:v}=i.value;return[{id:"og:title",property:"og:title",content:f||g},{id:"og:description",property:"og:description",content:h||v},{id:"og:type",property:"og:type",content:"website"},{id:"og:image",property:"og:image",content:p?.publicUrl||void 0}]}),s=W(()=>[{id:"generator",name:"generator",content:"TYPO3 CMS x T3Headless"},{id:"description",name:"description",content:i?.value?.description},{id:"robots",name:"robots",content:Object.keys(i.value?.robots||{}).filter(f=>i.value?.robots[f]).join(", ")}]),l=W(()=>{const f=[],h=r.value?.baseUrl,p={rel:"canonical",href:i.value?.canonical?.href||""};return h&&n.value?.i18n.forEach(g=>{g.active&&(p.href=h+(p.href||g.link)),g.languageId===0&&f.push({rel:"alternate",hreflang:"x-default",href:h+g.link}),g.available&&f.push({rel:"alternate",hreflang:g.hreflang,href:h+g.link})}),p.href&&f.push(p),f}),u=W(()=>{if(!i.value)return{};const f=Array.prototype.concat(s.value,a.value,o.value);return{title:i?.value?.title,htmlAttrs:{lang:t?.twoLetterIsoCode,dir:t?.direction},bodyAttrs:{class:c},meta:d(f),link:l}}),c=W(()=>{const f={pid:n.value?.id,layout:n.value?.appearance?.layout},h=[];for(const g in f)f[g]!==void 0&&h.push(`${g}-${f[g]}`);return h.join(" ")}),d=f=>f.filter(({content:h})=>!!h&&(Object.keys(h).length>0||typeof h=="string"&&h.length>0));return{metaData:i,headData:u,twitter:a,base:s,opengraph:o,openGraph:o}},Tpt=async(e={route:nu(),fetchOnInit:!0})=>{const{route:t,fetchOnInit:n}=e,r=Ga().public.typo3Internals?.useLegacyAsyncDataPageKey,{pageData:i,getPage:a,getPageKey:o}=Wo(),{headData:s}=Cpt(),{redirect:l}=wpt(),{payload:u}=vt(),c=W(()=>o(t.fullPath)),{data:d,execute:f,error:h}=pM(r?c.value:c,()=>a(t.fullPath),{immediate:!1}),p=async()=>(u.serverRendered||RW(c.value),await f(),h.value&&Ul({...h.value,unhandled:!1,fatal:!0}),d.value?.redirectUrl?l(d.value):(i.value=d.value,{data:d,error:h})),g=W(()=>{const x=s1();if(!x.value||!("data"in x.value))return null;try{return typeof x.value.data=="string"?JSON.parse(x.value.data):x.value.data}catch{return null}});n&&t&&await p(),Je(()=>t.query,p);const v=i.value?.appearance?.backendLayout||"default",b=Spt(i.value?.appearance?.layout)?i.value?.appearance.layout:"default";return{pageDataFallback:g,pageData:i,getPageData:p,headData:s,backendLayout:v,frontendLayout:b}},kpt=Q({__name:"error",props:{error:{}},async setup(e){let t,n;const{pageDataFallback:r,backendLayout:i,frontendLayout:a}=([t,n]=GE(()=>Tpt()),t=await t,n(),t);return r.value&&mo(r.value.meta),(o,s)=>{const l=ypt,u=bpt;return E(),U("div",null,[H(u,{name:m(a)||"default"},{default:N(()=>[m(r)?.content&&m(r)?.appearance?.backendLayout?(E(),V(l,{key:0,name:m(r).appearance.backendLayout,content:m(r).content,pageData:m(r),error:e.error},null,8,["name","content","pageData","error"])):ae("",!0)]),_:1},8,["name"])])}}}),Ept={key:0},tH={__name:"nuxt-root",setup(e){const t=()=>null,n=vt(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r),d=ai().beforeEach(()=>{c(),d()})}const i=!1;Si(qh,nu()),n.hooks.callHookWith(c=>c.map(d=>d()),"vue:setup",[]);const a=s1(),o=!1,s=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function l(c,d,f){const h=n.vueApp.config.errorHandler;if(h&&!h.__nuxt_default)try{h(c,d,f)}
991catch(p){console.error("[nuxt] Error in `app.config.errorHandler`",p)}}UE((c,d,f)=>{if(n.hooks.callHook("vue:error",c,d,f).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),s.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(rM(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>Ul(c)),l(c,d,f),!1});const u=!1;return(c,d)=>(E(),V(XE,{onResolve:m(r)},{default:N(()=>[m(o)?(E(),U("div",Ept)):m(a)?(E(),V(m(kpt),{key:1,error:m(a)},null,8,["error"])):m(u)?(E(),V(m(t),{key:2,context:m(u)},null,8,["context"])):m(i)?(E(),V(yn(m(i)),{key:3})):(E(),V(m(F9e),{key:4}))]),_:1},8,["onResolve"]))}};let nH;{let e;nH=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?Q0e(tH):J0e(tH),i=Hq({vueApp:r});async function a(o){await i.callHook("app:error",o),i.payload.error||=gc(o)}a.__nuxt_default=!0,r.config.errorHandler=a,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===a&&(r.config.errorHandler=void 0)});try{await Gq(i,E9e)}catch(o){a(o)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(c1e),await i.hooks.callHook("app:mounted",r),await At()}catch(o){a(o)}return r},e=nH().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{dpe as $,de as A,me as B,L as C,d9e as D,Eq as E,$t as F,ft as G,Ae as H,mpt as I,Roe as J,N as K,Ot as L,At as M,Wa as N,wl as O,G as P,st as Q,u1 as R,fI as S,uv as T,yIe as U,VW as V,LG as W,Tq as X,Je as Y,Bt as Z,WA as _,m as a,bY as a$,Si as a0,br as a1,Wx as a2,cr as a3,_t as a4,P1e as a5,Fpt as a6,YM as a7,Vn as a8,F as a9,nr as aA,Bpt as aB,YH as aC,dr as aD,Sa as aE,Fc as aF,Yt as aG,t6 as aH,zpt as aI,ai as aJ,n0t as aK,a0t as aL,r0t as aM,s0t as aN,i0t as aO,Cre as aP,o0t as aQ,vi as aR,KA as aS,vn as aT,l0t as aU,i1 as aV,FPe as aW,zPe as aX,VPe as aY,NPe as aZ,_Y as a_,xa as aa,rn as ab,Li as ac,Tn as ad,fn as ae,g1 as af,ij as ag,Lpt as ah,dp as ai,Zl as aj,FX as ak,d0t as al,fLe as am,CDe as an,gp as ao,Rpt as ap,Ga as aq,yZ as ar,vt as as,y_e as at,sl as au,Vx as av,v_e as aw,m_e as ax,Opt as ay,b0e as az,ae as b,jw as b$,wY as b0,SY as b1,mCe as b2,xY as b3,T1 as b4,k1 as b5,E1 as b6,Vpt as b7,Hpt as b8,s2 as b9,ydt as bA,Apt as bB,Kk as bC,Dre as bD,Rtt as bE,P1 as bF,js as bG,t5 as bH,tl as bI,ASe as bJ,D1 as bK,jRe as bL,eJ as bM,Qo as bN,Ri as bO,bA as bP,DY as bQ,HM as bR,PY as bS,IY as bT,FEe as bU,$Y as bV,CY as bW,Or as bX,Cn as bY,c0t as bZ,f0t as b_,trt as ba,Upt as bb,Zpt as bc,Tv as bd,Gpt as be,mi as bf,zo as bg,Ndt as bh,O6 as bi,vM as bj,yi as bk,rLe as bl,OX as bm,FRe as bn,ZA as bo,XX as bp,zRe as bq,Va as br,XM as bs,Poe as bt,hOe as bu,Ed as bv,u9e as bw,Ag as bx,b3 as by,Gk as bz,V as c,Lht as c0,Iht as c1,$oe as c2,HA as c3,Sht as c4,wht as c5,hnt as c6,set as c7,KQe as c8,ZQe as c9,e0t as cA,t0t as cB,Xpt as cC,jpt as cD,qpt as cE,Ypt as cF,mnt as cG,bnt as cH,MSe as cI,wD as cJ,tJ as cK,Zd as cL,ru as cM,y1 as cN,hht as cO,Ttt as cP,Wo as cQ,kG as cR,ypt as cS,bpt as cT,WQe as ca,HQe as cb,UQe as cc,NQe as cd,Sre as ce,$Qe as cf,kOe as cg,COe as ch,_Oe as ci,JRe as cj,ZRe as ck,nLe as cl,jIe as cm,VIe as cn,CIe as co,fCe as cp,dCe as cq,lpt as cr,Det as cs,Iet as ct,N1 as cu,Ire as cv,F1 as cw,s6 as cx,Jpt as cy,Qpt as cz,Tpt as d,_o as e,U as f,Y as g,yn as h,E1t as i,Q as j,Nt as k,H as l,rt as m,un as n,E as o,pn as p,Ioe as q,qE as r,UA as s,du as t,mo as u,zht as v,GE as w,W as x,Ppt as y,ri as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.