v?o==="asc"?1:-1:0}return dp?o==="asc"?1:-1:0});return f.jsxs("table",{className:"min-w-full",children:[f.jsx("thead",{className:"bg-backgroundPrimary text-sm font-semibold text-textPrimary",children:f.jsx("tr",{children:e.map(l=>f.jsx("th",{scope:"col",className:`py-2 pr-3 pl-6 text-left ${l.sortable?"cursor-pointer hover:brightness-hover active:brightness-press":""}`,onClick:()=>l.sortable&&i(l.title),onKeyUp:()=>l.sortable&&i(l.title),children:f.jsxs("div",{className:"flex gap-2",children:[l.title,n===l.title&&f.jsx(f.Fragment,{children:o==="asc"?f.jsx(GR,{size:16}):f.jsx(sC,{size:16})})]})},l.title))})}),f.jsx("tbody",{children:s.map((l,c)=>f.jsx("tr",{children:l.map((u,d)=>f.jsx("td",{className:"whitespace-nowrap py-2 text-sm text-textSecondary first:pl-2",children:u},d))},c))})]})};var AD=["second","minute","hour","day","week","month","year"];function RD(e,t){if(t===0)return["just now","right now"];var n=AD[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}var ID=["秒","分钟","小时","天","周","个月","年"];function OD(e,t){if(t===0)return["刚刚","片刻后"];var n=ID[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}var gp={},vS=function(e,t){gp[e]=t},yS=function(e){return gp[e]||gp.en_US},Vo=[60,60,24,7,365/7/12,12];function f1(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function bS(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,o=0;e>=Vo[o]&&o(o===0?9:1)&&(o+=1),t(e,o,r)[n].replace("%s",e.toString())}function wS(e,t){var n=t?f1(t):new Date;return(+n-+f1(e))/1e3}function DD(e){for(var t=1,n=0,r=Math.abs(e);e>=Vo[n]&&nf.jsx(zD,{datetime:e,opts:{minInterval:10}});function WD(e,t,n){var r;if(n===void 0&&(n={}),!t.codes){t.codes={};for(var o=0;o=8&&(s-=8,i[c++]=255&l>>s)}if(s>=t.bits||255&l<<8-s)throw new SyntaxError("Unexpected end of data");return i}function GD(e,t,n){n===void 0&&(n={});for(var r=n,o=r.pad,a=o===void 0?!0:o,i=(1<t.bits;)l-=t.bits,s+=t.chars[i&c>>l];if(l&&(s+=t.chars[i&c<{const{nodes:e,hardware:t,setDialogOpen:n}=Te(),{setNodeNumToBeRemoved:r}=$n(),o=Array.from(e.values()).filter(a=>a.num!==t.myNodeNum);return f.jsxs(f.Fragment,{children:[f.jsx(vl,{}),f.jsxs("div",{className:"flex flex-col w-full",children:[f.jsx("div",{className:"overflow-y-auto h-full",children:f.jsx(MD,{headings:[{title:"",type:"blank",sortable:!1},{title:"Name",type:"normal",sortable:!0},{title:"Model",type:"normal",sortable:!0},{title:"MAC Address",type:"normal",sortable:!0},{title:"Last Heard",type:"normal",sortable:!0},{title:"SNR",type:"normal",sortable:!0},{title:"Encryption",type:"normal",sortable:!1},{title:"Connection",type:"normal",sortable:!0},{title:"Remove",type:"normal",sortable:!1}],rows:o.map(a=>[f.jsx(da.Hashicon,{size:24,value:a.num.toString()},"icon"),f.jsx("h1",{children:a.user?.longName??(a.user?.macaddr?`Meshtastic ${h1.stringify(a.user?.macaddr.subarray(4,6)??[]).toLowerCase()}`:`!${Xs(a.num)}`)},"header"),f.jsx(Do,{children:pe.Mesh.HardwareModel[a.user?.hwModel??0]},"model"),f.jsx(Do,{children:h1.stringify(a.user?.macaddr??[]).match(/.{1,2}/g)?.join(":")??"UNK"},"addr"),f.jsx(m.Fragment,{children:a.lastHeard===0?f.jsx("p",{children:"Never"}):f.jsx(HD,{timestamp:a.lastHeard*1e3})},"lastHeard"),f.jsxs(Do,{children:[a.snr,"db/",Math.min(Math.max((a.snr+10)*5,0),100),"%/",(a.snr+10)*5,"raw"]},"snr"),f.jsx(Do,{children:a.user?.publicKey&&a.user?.publicKey.length>0?f.jsx(dC,{className:"text-green-600"}):f.jsx(uC,{className:"text-yellow-300"})},"pki"),f.jsxs(Do,{children:[a.lastHeard!==0?a.viaMqtt===!1&&a.hopsAway===0?"Direct":`${a.hopsAway.toString()} ${a.hopsAway>1?"hops":"hop"} away`:"-",a.viaMqtt===!0?", via MQTT":""]},"hops"),f.jsxs(pt,{variant:"destructive",onClick:()=>{r(a.num),n("nodeRemoval",!0)},children:[f.jsx(vC,{}),"Remove"]},"remove")])})}),f.jsx(Qh,{})]})]})},qD=()=>{const{activePage:e}=Te();return f.jsxs(f.Fragment,{children:[e==="messages"&&f.jsx(PD,{}),e==="map"&&f.jsx(SD,{}),e==="config"&&f.jsx(lO,{}),e==="channels"&&f.jsx(lI,{}),e==="nodes"&&f.jsx(KD,{})]})};var g1=1,XD=.9,YD=.8,QD=.17,Af=.1,Rf=.999,ZD=.9999,JD=.99,e5=/[\\\/_+.#"@\[\(\{&]/,t5=/[\\\/_+.#"@\[\(\{&]/g,n5=/[\s-]/,CS=/[\s-]/g;function bp(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?g1:JD;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var l=r.charAt(a),c=n.indexOf(l,o),u=0,d,p,g,v;c>=0;)d=bp(e,t,n,r,c+1,a+1,i),d>u&&(c===o?d*=g1:e5.test(e.charAt(c-1))?(d*=YD,g=e.slice(o,c-1).match(t5),g&&o>0&&(d*=Math.pow(Rf,g.length))):n5.test(e.charAt(c-1))?(d*=XD,v=e.slice(o,c-1).match(CS),v&&o>0&&(d*=Math.pow(Rf,v.length))):(d*=QD,o>0&&(d*=Math.pow(Rf,c-o))),e.charAt(c)!==t.charAt(a)&&(d*=ZD)),(dd&&(d=p*Af)),d>u&&(u=d),c=n.indexOf(l,c+1);return i[s]=u,u}function v1(e){return e.toLowerCase().replace(CS," ")}function r5(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,bp(e,t,v1(e),v1(t),0,0,{})}function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>o5(n,t))}function wl(...e){return m.useCallback(SS(...e),e)}function a5(e,t=[]){let n=[];function r(a,i){const s=m.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:p,children:g,...v}=d,h=p?.[e][l]||s,_=m.useMemo(()=>v,Object.values(v));return m.createElement(h.Provider,{value:_},g)}function u(d,p){const g=p?.[e][l]||s,v=m.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>m.createContext(i));return function(s){const l=s?.[e]||a;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,i5(o,...t)]}function i5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const wp=globalThis?.document?m.useLayoutEffect:()=>{},s5=W1.useId||(()=>{});let l5=0;function If(e){const[t,n]=m.useState(s5());return wp(()=>{e||n(r=>r??String(l5++))},[e]),e||(t?`radix-${t}`:"")}function aa(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function c5({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=u5({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=aa(n),l=m.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[a,e,o,s]);return[i,l]}function u5({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),a=aa(t);return m.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const ig=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),a=o.find(f5);if(a){const i=a.props.children,s=o.map(l=>l===a?m.Children.count(i)>1?m.Children.only(null):m.isValidElement(i)?i.props.children:null:l);return m.createElement(_p,Dt({},r,{ref:t}),m.isValidElement(i)?m.cloneElement(i,void 0,s):null)}return m.createElement(_p,Dt({},r,{ref:t}),n)});ig.displayName="Slot";const _p=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...p5(r,n.props),ref:t?SS(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});_p.displayName="SlotClone";const d5=({children:e})=>m.createElement(m.Fragment,null,e);function f5(e){return m.isValidElement(e)&&e.type===d5}function p5(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const m5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Sn=m5.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?ig:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(s,Dt({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function h5(e,t){e&&an.flushSync(()=>e.dispatchEvent(t))}function g5(e,t=globalThis?.document){const n=aa(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const xp="dismissableLayer.update",v5="dismissableLayer.pointerDownOutside",y5="dismissableLayer.focusOutside";let y1;const b5=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),w5=m.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=m.useContext(b5),[d,p]=m.useState(null),g=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,v]=m.useState({}),h=wl(t,C=>p(C)),_=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(b),x=d?_.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,T=_5(C=>{const P=C.target,O=[...u.branches].some(R=>R.contains(P));!w||O||(a?.(C),s?.(C),C.defaultPrevented||l?.())},g),k=x5(C=>{const P=C.target;[...u.branches].some(R=>R.contains(P))||(i?.(C),s?.(C),C.defaultPrevented||l?.())},g);return g5(C=>{x===u.layers.size-1&&(o?.(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},g),m.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(y1=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),b1(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=y1)}},[d,g,r,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),b1())},[d,u]),m.useEffect(()=>{const C=()=>v({});return document.addEventListener(xp,C),()=>document.removeEventListener(xp,C)},[]),m.createElement(Sn.div,Dt({},c,{ref:h,style:{pointerEvents:E?w?"auto":"none":void 0,...e.style},onFocusCapture:mi(e.onFocusCapture,k.onFocusCapture),onBlurCapture:mi(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:mi(e.onPointerDownCapture,T.onPointerDownCapture)}))});function _5(e,t=globalThis?.document){const n=aa(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){TS(v5,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function x5(e,t=globalThis?.document){const n=aa(e),r=m.useRef(!1);return m.useEffect(()=>{const o=a=>{a.target&&!r.current&&TS(y5,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function b1(){const e=new CustomEvent(xp);document.dispatchEvent(e)}function TS(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?h5(o,a):o.dispatchEvent(a)}const Of="focusScope.autoFocusOnMount",Df="focusScope.autoFocusOnUnmount",w1={bubbles:!1,cancelable:!0},k5=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=m.useState(null),c=aa(o),u=aa(a),d=m.useRef(null),p=wl(t,h=>l(h)),g=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let h=function(x){if(g.paused||!s)return;const E=x.target;s.contains(E)?d.current=E:qr(d.current,{select:!0})},_=function(x){if(g.paused||!s)return;const E=x.relatedTarget;E!==null&&(s.contains(E)||qr(d.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const w of x)w.removedNodes.length>0&&qr(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",_);const y=new MutationObserver(b);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",_),y.disconnect()}}},[r,s,g.paused]),m.useEffect(()=>{if(s){x1.add(g);const h=document.activeElement;if(!s.contains(h)){const b=new CustomEvent(Of,w1);s.addEventListener(Of,c),s.dispatchEvent(b),b.defaultPrevented||(C5(P5(ES(s)),{select:!0}),document.activeElement===h&&qr(s))}return()=>{s.removeEventListener(Of,c),setTimeout(()=>{const b=new CustomEvent(Df,w1);s.addEventListener(Df,u),s.dispatchEvent(b),b.defaultPrevented||qr(h??document.body,{select:!0}),s.removeEventListener(Df,u),x1.remove(g)},0)}}},[s,c,u,g]);const v=m.useCallback(h=>{if(!n&&!r||g.paused)return;const _=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(_&&b){const y=h.currentTarget,[x,E]=S5(y);x&&E?!h.shiftKey&&b===E?(h.preventDefault(),n&&qr(x,{select:!0})):h.shiftKey&&b===x&&(h.preventDefault(),n&&qr(E,{select:!0})):b===y&&h.preventDefault()}},[n,r,g.paused]);return m.createElement(Sn.div,Dt({tabIndex:-1},i,{ref:p,onKeyDown:v}))});function C5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qr(r,{select:t}),document.activeElement!==n)return}function S5(e){const t=ES(e),n=_1(t,e),r=_1(t.reverse(),e);return[n,r]}function ES(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _1(e,t){for(const n of e)if(!T5(n,{upTo:t}))return n}function T5(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 E5(e){return e instanceof HTMLInputElement&&"select"in e}function qr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&E5(e)&&t&&e.select()}}const x1=N5();function N5(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=k1(e,t),e.unshift(t)},remove(t){var n;e=k1(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function k1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function P5(e){return e.filter(t=>t.tagName!=="A")}const M5=m.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Jw.createPortal(m.createElement(Sn.div,Dt({},o,{ref:t})),r):null});function A5(e,t){return m.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const kd=e=>{const{present:t,children:n}=e,r=R5(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),a=wl(r.ref,o.ref);return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:a}):null};kd.displayName="Presence";function R5(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[s,l]=A5(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=oc(r.current);a.current=s==="mounted"?c:"none"},[s]),wp(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,g=oc(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),wp(()=>{if(t){const c=d=>{const g=oc(r.current).includes(d.animationName);d.target===t&&g&&an.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=oc(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function oc(e){return e?.animationName||"none"}let Lf=0;function I5(){m.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:C1()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:C1()),Lf++,()=>{Lf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Lf--}},[])}function C1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var NS=_k(),jf=function(){},Cd=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:jf,onWheelCapture:jf,onTouchMoveCapture:jf}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,g=e.noIsolation,v=e.inert,h=e.allowPinchZoom,_=e.as,b=_===void 0?"div":_,y=$h(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=p,E=wk([n,t]),w=Nt(Nt({},y),o);return m.createElement(m.Fragment,null,u&&m.createElement(x,{sideCar:NS,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),i?m.cloneElement(m.Children.only(s),Nt(Nt({},w),{ref:E})):m.createElement(b,Nt({},w,{className:l,ref:E}),s))});Cd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cd.classNames={fullWidth:ws,zeroRight:bs};var kp=!1;if(typeof window<"u")try{var ac=Object.defineProperty({},"passive",{get:function(){return kp=!0,!0}});window.addEventListener("test",ac,ac),window.removeEventListener("test",ac,ac)}catch{kp=!1}var Ua=kp?{passive:!1}:!1,O5=function(e){return e.tagName==="TEXTAREA"},PS=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!O5(e)&&n[t]==="visible")},D5=function(e){return PS(e,"overflowY")},L5=function(e){return PS(e,"overflowX")},S1=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=MS(e,n);if(r){var o=AS(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},j5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},F5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},MS=function(e,t){return e==="v"?D5(t):L5(t)},AS=function(e,t){return e==="v"?j5(t):F5(t)},B5=function(e,t){return e==="h"&&t==="rtl"?-1:1},$5=function(e,t,n,r,o){var a=B5(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,d=0,p=0;do{var g=AS(e,s),v=g[0],h=g[1],_=g[2],b=h-_-a*v;(v||b)&&MS(e,s)&&(d+=b,p+=v),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(d===0||!o)||!u&&(p===0||!o))&&(c=!0),c},ic=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},T1=function(e){return[e.deltaX,e.deltaY]},E1=function(e){return e&&"current"in e?e.current:e},U5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},V5=function(e){return`
- .block-interactivity-`.concat(e,` {pointer-events: none;}
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
-`)},z5=0,Va=[];function H5(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(z5++)[0],a=m.useState(function(){return Uh()})[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=bk([e.lockRef.current],(e.shards||[]).map(E1),!0).filter(Boolean);return h.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(h,_){if("touches"in h&&h.touches.length===2)return!i.current.allowPinchZoom;var b=ic(h),y=n.current,x="deltaX"in h?h.deltaX:y[0]-b[0],E="deltaY"in h?h.deltaY:y[1]-b[1],w,T=h.target,k=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in h&&k==="h"&&T.type==="range")return!1;var C=S1(k,T);if(!C)return!0;if(C?w=k:(w=k==="v"?"h":"v",C=S1(k,T)),!C)return!1;if(!r.current&&"changedTouches"in h&&(x||E)&&(r.current=w),!w)return!0;var P=r.current||w;return $5(P,_,h,P==="h"?x:E,!0)},[]),l=m.useCallback(function(h){var _=h;if(!(!Va.length||Va[Va.length-1]!==a)){var b="deltaY"in _?T1(_):ic(_),y=t.current.filter(function(w){return w.name===_.type&&w.target===_.target&&U5(w.delta,b)})[0];if(y&&y.should){_.cancelable&&_.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(E1).filter(Boolean).filter(function(w){return w.contains(_.target)}),E=x.length>0?s(_,x[0]):!i.current.noIsolation;E&&_.cancelable&&_.preventDefault()}}},[]),c=m.useCallback(function(h,_,b,y){var x={name:h,delta:_,target:b,should:y};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),u=m.useCallback(function(h){n.current=ic(h),r.current=void 0},[]),d=m.useCallback(function(h){c(h.type,T1(h),h.target,s(h,e.lockRef.current))},[]),p=m.useCallback(function(h){c(h.type,ic(h),h.target,s(h,e.lockRef.current))},[]);m.useEffect(function(){return Va.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Ua),document.addEventListener("touchmove",l,Ua),document.addEventListener("touchstart",u,Ua),function(){Va=Va.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Ua),document.removeEventListener("touchmove",l,Ua),document.removeEventListener("touchstart",u,Ua)}},[]);var g=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(a,{styles:V5(o)}):null,g?m.createElement(Sk,{gapMode:"margin"}):null)}const W5=kk(NS,H5);var RS=m.forwardRef(function(e,t){return m.createElement(Cd,Nt({},e,{ref:t,sideCar:W5}))});RS.classNames=Cd.classNames;const IS="Dialog",[OS,A7]=a5(IS),[G5,pa]=OS(IS),K5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=m.useRef(null),l=m.useRef(null),[c=!1,u]=c5({prop:r,defaultProp:o,onChange:a});return m.createElement(G5,{scope:t,triggerRef:s,contentRef:l,contentId:If(),titleId:If(),descriptionId:If(),open:c,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(d=>!d),[u]),modal:i},n)},DS="DialogPortal",[q5,LS]=OS(DS,{forceMount:void 0}),X5=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=pa(DS,t);return m.createElement(q5,{scope:t,forceMount:n},m.Children.map(r,i=>m.createElement(kd,{present:n||a.open},m.createElement(M5,{asChild:!0,container:o},i))))},Cp="DialogOverlay",Y5=m.forwardRef((e,t)=>{const n=LS(Cp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=pa(Cp,e.__scopeDialog);return a.modal?m.createElement(kd,{present:r||a.open},m.createElement(Q5,Dt({},o,{ref:t}))):null}),Q5=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pa(Cp,n);return m.createElement(RS,{as:ig,allowPinchZoom:!0,shards:[o.contentRef]},m.createElement(Sn.div,Dt({"data-state":FS(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ys="DialogContent",Z5=m.forwardRef((e,t)=>{const n=LS(Ys,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=pa(Ys,e.__scopeDialog);return m.createElement(kd,{present:r||a.open},a.modal?m.createElement(J5,Dt({},o,{ref:t})):m.createElement(eL,Dt({},o,{ref:t})))}),J5=m.forwardRef((e,t)=>{const n=pa(Ys,e.__scopeDialog),r=m.useRef(null),o=wl(t,n.contentRef,r);return m.useEffect(()=>{const a=r.current;if(a)return Bh(a)},[]),m.createElement(jS,Dt({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mi(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:mi(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:mi(e.onFocusOutside,a=>a.preventDefault())}))}),eL=m.forwardRef((e,t)=>{const n=pa(Ys,e.__scopeDialog),r=m.useRef(!1),o=m.useRef(!1);return m.createElement(jS,Dt({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),jS=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=pa(Ys,n),l=m.useRef(null),c=wl(t,l);return I5(),m.createElement(m.Fragment,null,m.createElement(k5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},m.createElement(w5,Dt({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":FS(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function FS(e){return e?"open":"closed"}const tL=K5,nL=X5,rL=Y5,oL=Z5;var ts='[cmdk-group=""]',Ff='[cmdk-group-items=""]',aL='[cmdk-group-heading=""]',sg='[cmdk-item=""]',N1=`${sg}:not([aria-disabled="true"])`,Sp="cmdk-item-select",Lo="data-value",iL=(e,t,n)=>r5(e,t,n),BS=m.createContext(void 0),_l=()=>m.useContext(BS),$S=m.createContext(void 0),lg=()=>m.useContext($S),US=m.createContext(void 0),VS=m.forwardRef((e,t)=>{let n=za(()=>{var U,ae;return{search:"",value:(ae=(U=e.value)!=null?U:e.defaultValue)!=null?ae:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=za(()=>new Set),o=za(()=>new Map),a=za(()=>new Map),i=za(()=>new Set),s=zS(e),{label:l,children:c,value:u,onValueChange:d,filter:p,shouldFilter:g,loop:v,disablePointerSelection:h=!1,vimBindings:_=!0,...b}=e,y=m.useId(),x=m.useId(),E=m.useId(),w=m.useRef(null),T=vL();ia(()=>{if(u!==void 0){let U=u.trim();n.current.value=U,k.emit()}},[u]),ia(()=>{T(6,B)},[]);let k=m.useMemo(()=>({subscribe:U=>(i.current.add(U),()=>i.current.delete(U)),snapshot:()=>n.current,setState:(U,ae,se)=>{var S,X,H;if(!Object.is(n.current[U],ae)){if(n.current[U]=ae,U==="search")N(),O(),T(1,R);else if(U==="value"&&(se||T(5,B),((S=s.current)==null?void 0:S.value)!==void 0)){let I=ae??"";(H=(X=s.current).onValueChange)==null||H.call(X,I);return}k.emit()}},emit:()=>{i.current.forEach(U=>U())}}),[]),C=m.useMemo(()=>({value:(U,ae,se)=>{var S;ae!==((S=a.current.get(U))==null?void 0:S.value)&&(a.current.set(U,{value:ae,keywords:se}),n.current.filtered.items.set(U,P(ae,se)),T(2,()=>{O(),k.emit()}))},item:(U,ae)=>(r.current.add(U),ae&&(o.current.has(ae)?o.current.get(ae).add(U):o.current.set(ae,new Set([U]))),T(3,()=>{N(),O(),n.current.value||R(),k.emit()}),()=>{a.current.delete(U),r.current.delete(U),n.current.filtered.items.delete(U);let se=D();T(4,()=>{N(),se?.getAttribute("id")===U&&R(),k.emit()})}),group:U=>(o.current.has(U)||o.current.set(U,new Set),()=>{a.current.delete(U),o.current.delete(U)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],disablePointerSelection:h,listId:y,inputId:E,labelId:x,listInnerRef:w}),[]);function P(U,ae){var se,S;let X=(S=(se=s.current)==null?void 0:se.filter)!=null?S:iL;return U?X(U,n.current.search,ae):0}function O(){if(!n.current.search||s.current.shouldFilter===!1)return;let U=n.current.filtered.items,ae=[];n.current.filtered.groups.forEach(S=>{let X=o.current.get(S),H=0;X.forEach(I=>{let F=U.get(I);H=Math.max(F,H)}),ae.push([S,H])});let se=w.current;L().sort((S,X)=>{var H,I;let F=S.getAttribute("id"),j=X.getAttribute("id");return((H=U.get(j))!=null?H:0)-((I=U.get(F))!=null?I:0)}).forEach(S=>{let X=S.closest(Ff);X?X.appendChild(S.parentElement===X?S:S.closest(`${Ff} > *`)):se.appendChild(S.parentElement===se?S:S.closest(`${Ff} > *`))}),ae.sort((S,X)=>X[1]-S[1]).forEach(S=>{let X=w.current.querySelector(`${ts}[${Lo}="${encodeURIComponent(S[0])}"]`);X?.parentElement.appendChild(X)})}function R(){let U=L().find(se=>se.getAttribute("aria-disabled")!=="true"),ae=U?.getAttribute(Lo);k.setState("value",ae||void 0)}function N(){var U,ae,se,S;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let X=0;for(let H of r.current){let I=(ae=(U=a.current.get(H))==null?void 0:U.value)!=null?ae:"",F=(S=(se=a.current.get(H))==null?void 0:se.keywords)!=null?S:[],j=P(I,F);n.current.filtered.items.set(H,j),j>0&&X++}for(let[H,I]of o.current)for(let F of I)if(n.current.filtered.items.get(F)>0){n.current.filtered.groups.add(H);break}n.current.filtered.count=X}function B(){var U,ae,se;let S=D();S&&(((U=S.parentElement)==null?void 0:U.firstChild)===S&&((se=(ae=S.closest(ts))==null?void 0:ae.querySelector(aL))==null||se.scrollIntoView({block:"nearest"})),S.scrollIntoView({block:"nearest"}))}function D(){var U;return(U=w.current)==null?void 0:U.querySelector(`${sg}[aria-selected="true"]`)}function L(){var U;return Array.from((U=w.current)==null?void 0:U.querySelectorAll(N1))}function G(U){let ae=L()[U];ae&&k.setState("value",ae.getAttribute(Lo))}function Y(U){var ae;let se=D(),S=L(),X=S.findIndex(I=>I===se),H=S[X+U];(ae=s.current)!=null&&ae.loop&&(H=X+U<0?S[S.length-1]:X+U===S.length?S[0]:S[X+U]),H&&k.setState("value",H.getAttribute(Lo))}function K(U){let ae=D(),se=ae?.closest(ts),S;for(;se&&!S;)se=U>0?hL(se,ts):gL(se,ts),S=se?.querySelector(N1);S?k.setState("value",S.getAttribute(Lo)):Y(U)}let Z=()=>G(L().length-1),re=U=>{U.preventDefault(),U.metaKey?Z():U.altKey?K(1):Y(1)},fe=U=>{U.preventDefault(),U.metaKey?G(0):U.altKey?K(-1):Y(-1)};return m.createElement(Sn.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:U=>{var ae;if((ae=b.onKeyDown)==null||ae.call(b,U),!U.defaultPrevented)switch(U.key){case"n":case"j":{_&&U.ctrlKey&&re(U);break}case"ArrowDown":{re(U);break}case"p":case"k":{_&&U.ctrlKey&&fe(U);break}case"ArrowUp":{fe(U);break}case"Home":{U.preventDefault(),G(0);break}case"End":{U.preventDefault(),Z();break}case"Enter":if(!U.nativeEvent.isComposing&&U.keyCode!==229){U.preventDefault();let se=D();if(se){let S=new Event(Sp);se.dispatchEvent(S)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:bL},l),Sd(e,U=>m.createElement($S.Provider,{value:k},m.createElement(BS.Provider,{value:C},U))))}),sL=m.forwardRef((e,t)=>{var n,r;let o=m.useId(),a=m.useRef(null),i=m.useContext(US),s=_l(),l=zS(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:i?.forceMount;ia(()=>{if(!c)return s.item(o,i?.id)},[c]);let u=HS(o,a,[e.value,e.children,a],e.keywords),d=lg(),p=wo(T=>T.value&&T.value===u.current),g=wo(T=>c||s.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);m.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(Sp,v),()=>T.removeEventListener(Sp,v)},[g,e.onSelect,e.disabled]);function v(){var T,k;h(),(k=(T=l.current).onSelect)==null||k.call(T,u.current)}function h(){d.setState("value",u.current,!0)}if(!g)return null;let{disabled:_,value:b,onSelect:y,forceMount:x,keywords:E,...w}=e;return m.createElement(Sn.div,{ref:Qs([a,t]),...w,id:o,"cmdk-item":"",role:"option","aria-disabled":!!_,"aria-selected":!!p,"data-disabled":!!_,"data-selected":!!p,onPointerMove:_||s.disablePointerSelection?void 0:h,onClick:_?void 0:v},e.children)}),lL=m.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=m.useId(),s=m.useRef(null),l=m.useRef(null),c=m.useId(),u=_l(),d=wo(g=>o||u.filter()===!1?!0:g.search?g.filtered.groups.has(i):!0);ia(()=>u.group(i),[]),HS(i,s,[e.value,e.heading,l]);let p=m.useMemo(()=>({id:i,forceMount:o}),[o]);return m.createElement(Sn.div,{ref:Qs([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&m.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Sd(e,g=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},m.createElement(US.Provider,{value:p},g))))}),cL=m.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=m.useRef(null),a=wo(i=>!i.search);return!n&&!a?null:m.createElement(Sn.div,{ref:Qs([o,t]),...r,"cmdk-separator":"",role:"separator"})}),uL=m.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=lg(),i=wo(u=>u.search),s=wo(u=>u.value),l=_l(),c=m.useMemo(()=>{var u;let d=(u=l.listInnerRef.current)==null?void 0:u.querySelector(`${sg}[${Lo}="${encodeURIComponent(s)}"]`);return d?.getAttribute("id")},[]);return m.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),m.createElement(Sn.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),n?.(u.target.value)}})}),dL=m.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=m.useRef(null),i=m.useRef(null),s=_l();return m.useEffect(()=>{if(i.current&&a.current){let l=i.current,c=a.current,u,d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{let p=l.offsetHeight;c.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return d.observe(l),()=>{cancelAnimationFrame(u),d.unobserve(l)}}},[]),m.createElement(Sn.div,{ref:Qs([a,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},Sd(e,l=>m.createElement("div",{ref:Qs([i,s.listInnerRef]),"cmdk-list-sizer":""},l)))}),fL=m.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return m.createElement(tL,{open:n,onOpenChange:r},m.createElement(nL,{container:i},m.createElement(rL,{"cmdk-overlay":"",className:o}),m.createElement(oL,{"aria-label":e.label,"cmdk-dialog":"",className:a},m.createElement(VS,{ref:t,...s}))))}),pL=m.forwardRef((e,t)=>wo(n=>n.filtered.count===0)?m.createElement(Sn.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),mL=m.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return m.createElement(Sn.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Sd(e,i=>m.createElement("div",{"aria-hidden":!0},i)))}),Gt=Object.assign(VS,{List:dL,Item:sL,Input:uL,Group:lL,Separator:cL,Dialog:fL,Empty:pL,Loading:mL});function hL(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function gL(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function zS(e){let t=m.useRef(e);return ia(()=>{t.current=e}),t}var ia=typeof window>"u"?m.useEffect:m.useLayoutEffect;function za(e){let t=m.useRef();return t.current===void 0&&(t.current=e()),t}function Qs(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function wo(e){let t=lg(),n=()=>e(t.snapshot());return m.useSyncExternalStore(t.subscribe,n,n)}function HS(e,t,n,r=[]){let o=m.useRef(),a=_l();return ia(()=>{var i;let s=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());a.value(e,s,l),(i=t.current)==null||i.setAttribute(Lo,s),o.current=s}),o}var vL=()=>{let[e,t]=m.useState(),n=za(()=>new Map);return ia(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function yL(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Sd({asChild:e,children:t},n){return e&&m.isValidElement(t)?m.cloneElement(yL(t),{ref:t.ref},n(t.props.children)):n(t)}var bL={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const WS=m.forwardRef(({className:e,...t},n)=>f.jsx(Gt,{ref:n,className:Ee("flex h-full w-full flex-col overflow-hidden rounded-lg bg-white dark:bg-slate-800",e),...t}));WS.displayName=Gt.displayName;const wL=({children:e,...t})=>f.jsx(Ar,{...t,children:f.jsx(tr,{className:"overflow-hidden p-0 shadow-2xl [&_[dialog-overlay]]:bg-red-100",children:f.jsx(WS,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-slate-500 [&_[cmdk-group]]:px-2 [&_[cmdk-group]_+[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),GS=m.forwardRef(({className:e,...t},n)=>f.jsxs("div",{className:"flex items-center border-b border-b-slate-100 px-4 dark:border-b-slate-700","cmdk-input-wrapper":"",children:[f.jsx(gC,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),f.jsx(Gt.Input,{ref:n,className:Ee("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-slate-400 disabled:cursor-not-allowed disabled:opacity-50 dark:text-slate-50",e),...t})]}));GS.displayName=Gt.Input.displayName;const KS=m.forwardRef(({className:e,...t},n)=>f.jsx(Gt.List,{ref:n,className:Ee("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));KS.displayName=Gt.List.displayName;const qS=m.forwardRef((e,t)=>f.jsx(Gt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));qS.displayName=Gt.Empty.displayName;const XS=m.forwardRef(({className:e,...t},n)=>f.jsx(Gt.Group,{ref:n,className:Ee("overflow-hidden py-3 px-2 text-slate-700 dark:text-slate-400 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:pb-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:text-slate-900 [&_[cmdk-group-heading]]:dark:text-slate-300",e),...t}));XS.displayName=Gt.Group.displayName;const _L=m.forwardRef(({className:e,...t},n)=>f.jsx(Gt.Separator,{ref:n,className:Ee("-mx-1 h-px bg-slate-100 dark:bg-slate-700",e),...t}));_L.displayName=Gt.Separator.displayName;const cg=m.forwardRef(({className:e,...t},n)=>f.jsx(Gt.Item,{ref:n,className:Ee("relative flex cursor-default select-none items-center rounded-md py-1.5 px-2 text-sm font-medium outline-none aria-selected:bg-slate-100 data-[disabled='true']:pointer-events-none data-[disabled='true']:opacity-50 dark:aria-selected:bg-slate-700",e),...t}));cg.displayName=Gt.Item.displayName;const xL=()=>{const{commandPaletteOpen:e,setCommandPaletteOpen:t,setSelectedDevice:n,removeDevice:r,selectedDevice:o,darkMode:a,setDarkMode:i,setAccent:s}=$n(),{getDevices:l}=ca(),{setDialogOpen:c,setActivePage:u,connection:d}=Te(),p=[{label:"Goto",icon:r6,commands:[{label:"Messages",icon:pC,action(){u("messages")}},{label:"Map",icon:fC,action(){u("map")}},{label:"Config",icon:Wh,action(){u("config")},tags:["settings"]},{label:"Channels",icon:cC,action(){u("channels")}},{label:"Nodes",icon:Gh,action(){u("nodes")}}]},{label:"Manage",icon:d6,commands:[{label:"Switch Node",icon:UR,subItems:l().map(g=>({label:g.nodes.get(g.hardware.myNodeNum)?.user?.longName??g.hardware.myNodeNum.toString(),icon:f.jsx(da.Hashicon,{size:16,value:g.hardware.myNodeNum.toString()}),action(){n(g.id)}}))},{label:"Connect New Node",icon:Hh,action(){n(0)}}]},{label:"Contextual",icon:aC,commands:[{label:"QR Code",icon:Pc,subItems:[{label:"Generator",icon:f.jsx(Pc,{size:16}),action(){c("QR",!0)}},{label:"Import",icon:f.jsx(Pc,{size:16}),action(){c("import",!0)}}]},{label:"Disconnect",icon:KR,action(){d?.disconnect(),n(0),r(o??0)}},{label:"Schedule Shutdown",icon:hC,action(){c("shutdown",!0)}},{label:"Schedule Reboot",icon:lp,action(){c("reboot",!0)}},{label:"Reset Nodes",icon:vC,action(){d?.resetNodes()}},{label:"Factory Reset Device",icon:Hy,action(){d?.factoryResetDevice()}},{label:"Factory Reset Config",icon:Hy,action(){d?.factoryResetConfig()}}]},{label:"Debug",icon:WR,commands:[{label:"Reconfigure",icon:lp,action(){d?.configure()}},{label:"[WIP] Clear Messages",icon:YR,action(){alert("This feature is not implemented")}}]},{label:"Application",icon:l6,commands:[{label:"Toggle Dark Mode",icon:mC,action(){i(!a)}},{label:"Accent Color",icon:s6,subItems:[{label:"Red",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#f25555]":"bg-[#f28585]"}`}),action(){s("red")}},{label:"Orange",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#e1720b]":"bg-[#edb17a]"}`}),action(){s("orange")}},{label:"Yellow",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#ac8c1a]":"bg-[#e0cc87]"}`}),action(){s("yellow")}},{label:"Green",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#27a341]":"bg-[#8bc9c5]"}`}),action(){s("green")}},{label:"Blue",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#2093fe]":"bg-[#70afea]"}`}),action(){s("blue")}},{label:"Purple",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#926bff]":"bg-[#a09eef]"}`}),action(){s("purple")}},{label:"Pink",icon:f.jsx("span",{className:`h-3 w-3 rounded-full ${a?"bg-[#e454c4]":"bg-[#dba0c7]"}`}),action(){s("pink")}}]}]}];return m.useEffect(()=>{const g=v=>{v.key==="k"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),t(!0))};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[t]),f.jsxs(wL,{open:e,onOpenChange:t,children:[f.jsx(GS,{placeholder:"Type a command or search..."}),f.jsxs(KS,{children:[f.jsx(qS,{children:"No results found."}),p.map(g=>f.jsx(XS,{heading:g.label,children:g.commands.map(v=>f.jsxs("div",{children:[f.jsxs(cg,{onSelect:()=>{v.action?.(),t(!1)},children:[f.jsx(v.icon,{size:16,className:"mr-2"}),v.label]}),v.subItems?.map(h=>f.jsx(kL,{label:h.label,icon:h.icon,action:h.action},h.label))]},v.label))},g.label))]})]})},kL=({label:e,icon:t,action:n})=>wo(o=>o.search)?f.jsxs(cg,{onSelect:n,children:[t,e]}):null,P1=({active:e,onClick:t,children:n})=>f.jsxs("li",{className:"aspect-w-1 aspect-h-1 relative w-full",onClick:t,onKeyDown:t,children:[e&&f.jsx("div",{className:"absolute -left-2 h-10 w-1.5 rounded-full bg-accent"}),f.jsx("div",{className:"flex aspect-square cursor-pointer flex-col items-center justify-center",children:n})]});var CL="Separator",M1="horizontal",SL=["horizontal","vertical"],YS=m.forwardRef((e,t)=>{const{decorative:n,orientation:r=M1,...o}=e,a=TL(r)?r:M1,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return f.jsx(xe.div,{"data-orientation":a,...s,...o,ref:t})});YS.displayName=CL;function TL(e){return SL.includes(e)}var QS=YS;const Cu=m.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>f.jsx(QS,{ref:o,decorative:n,orientation:t,className:Ee("bg-slate-200 dark:bg-slate-700",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Cu.displayName=QS.displayName;const EL=({children:e})=>f.jsx("code",{className:"relative rounded bg-slate-100 px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-slate-900 dark:bg-slate-800 dark:text-slate-400",children:e}),NL=()=>{const{getDevices:e}=ca(),{selectedDevice:t,setSelectedDevice:n,darkMode:r,setDarkMode:o,setCommandPaletteOpen:a,setConnectDialogOpen:i}=$n();return f.jsxs("nav",{className:"flex flex-col justify-between border-r-[0.5px] border-slate-300 bg-transparent pt-2 dark:border-slate-700",children:[f.jsx("div",{className:"flex flex-col overflow-y-hidden",children:f.jsxs("ul",{className:"flex w-20 grow flex-col items-center space-y-4 bg-transparent py-4 px-5",children:[f.jsx(P1,{active:t===0,onClick:()=>{n(0)},children:f.jsx(e6,{})}),e().map(s=>f.jsx(P1,{onClick:()=>{n(s.id)},active:t===s.id,children:f.jsx(da.Hashicon,{size:24,value:s.hardware.myNodeNum.toString()})},s.id)),f.jsx(Cu,{}),f.jsx("button",{type:"button",onClick:()=>i(!0),className:"transition-all duration-300 hover:text-accent",children:f.jsx(Hh,{})})]})}),f.jsxs("div",{className:"flex w-20 flex-col items-center space-y-5 bg-transparent px-5 pb-5",children:[f.jsx("button",{type:"button",className:"transition-all hover:text-accent",onClick:()=>o(!r),children:r?f.jsx(p6,{}):f.jsx(mC,{})}),f.jsx("button",{type:"button",className:"transition-all hover:text-accent",onClick:()=>a(!0),children:f.jsx(gC,{})}),f.jsx("button",{type:"button",className:"transition-all hover:text-accent",children:f.jsx(n6,{})}),f.jsx(Cu,{}),f.jsx(EL,{children:"06d2c39"})]})]})},PL=({open:e,onOpenChange:t})=>{const{connection:n,nodes:r,removeNode:o}=Te(),{nodeNumToBeRemoved:a}=$n(),i=()=>{n?.removeNodeByNum(a),o(a),t(!1)};return f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsxs(Rr,{children:[f.jsx(Ir,{children:"Remove Node?"}),f.jsx(To,{children:"Are you sure you want to remove this Node?"})]}),f.jsx("div",{className:"gap-4",children:f.jsx("form",{onSubmit:i,children:f.jsx(xn,{children:r.get(a)?.user?.longName})})}),f.jsx($i,{children:f.jsx(pt,{variant:"destructive",onClick:()=>i(),children:"Remove"})})]})})},ML=({open:e,onOpenChange:t})=>{const{hardware:n,nodes:r,connection:o}=Te(),a=r.get(n.myNodeNum),{register:i,handleSubmit:s}=Eh({values:{longName:a?.user?.longName??"Unknown",shortName:a?.user?.shortName??"Unknown"}}),l=s(c=>{o?.setOwner(new pe.Mesh.User({...a?.user,...c})),t(!1)});return f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsxs(Rr,{children:[f.jsx(Ir,{children:"Change Device Name"}),f.jsx(To,{children:"The Device will restart once the config is saved."})]}),f.jsx("div",{className:"gap-4",children:f.jsxs("form",{onSubmit:l,children:[f.jsx(xn,{children:"Long Name"}),f.jsx(jn,{...i("longName")}),f.jsx(xn,{children:"Short Name"}),f.jsx(jn,{maxLength:4,...i("shortName")})]})}),f.jsx($i,{children:f.jsx(pt,{onClick:()=>l(),children:"Save"})})]})})};var ug="Checkbox",[AL,R7]=Pr(ug),[RL,IL]=AL(ug),ZS=m.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:c,...u}=e,[d,p]=m.useState(null),g=$e(t,x=>p(x)),v=m.useRef(!1),h=d?!!d.closest("form"):!0,[_=!1,b]=go({prop:o,defaultProp:a,onChange:c}),y=m.useRef(_);return m.useEffect(()=>{const x=d?.form;if(x){const E=()=>b(y.current);return x.addEventListener("reset",E),()=>x.removeEventListener("reset",E)}},[d,b]),f.jsxs(RL,{scope:n,state:_,disabled:s,children:[f.jsx(xe.button,{type:"button",role:"checkbox","aria-checked":Ko(_)?"mixed":_,"aria-required":i,"data-state":tT(_),"data-disabled":s?"":void 0,disabled:s,value:l,...u,ref:g,onKeyDown:we(e.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:we(e.onClick,x=>{b(E=>Ko(E)?!0:!E),h&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),h&&f.jsx(OL,{control:d,bubbles:!v.current,name:r,value:l,checked:_,required:i,disabled:s,style:{transform:"translateX(-100%)"}})]})});ZS.displayName=ug;var JS="CheckboxIndicator",eT=m.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=IL(JS,n);return f.jsx(ua,{present:r||Ko(a.state)||a.state===!0,children:f.jsx(xe.span,{"data-state":tT(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});eT.displayName=JS;var OL=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=m.useRef(null),i=Fh(n),s=Dh(t);return m.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const p=new Event("click",{bubbles:r});l.indeterminate=Ko(n),d.call(l,Ko(n)?!1:n),l.dispatchEvent(p)}},[i,n,r]),f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Ko(n)?!1:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ko(e){return e==="indeterminate"}function tT(e){return Ko(e)?"indeterminate":e?"checked":"unchecked"}var nT=ZS,DL=eT;const dg=m.forwardRef(({className:e,...t},n)=>f.jsx(nT,{ref:n,className:Ee("peer h-4 w-4 shrink-0 rounded-sm border border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900",e),...t,children:f.jsx(DL,{className:Ee("flex items-center justify-center"),children:f.jsx(iC,{className:"h-4 w-4"})})}));dg.displayName=nT.displayName;const LL=({open:e,onOpenChange:t})=>{const[n,r]=m.useState(""),[o,a]=m.useState(),[i,s]=m.useState(!1),{connection:l}=Te();m.useEffect(()=>{try{const u=new URL(n);if(u.hostname!=="meshtastic.org"&&u.pathname!=="/e/"||!u.hash)throw"Invalid Meshtastic URL";const d=u.hash.substring(1),p=d.padEnd(d.length+(4-d.length%4)%4,"=").replace(/-/g,"+").replace(/_/g,"/");a(pe.AppOnly.ChannelSet.fromBinary(Jr(p))),s(!0)}catch{s(!1),a(void 0)}},[n]);const c=()=>{o?.settings.map((u,d)=>{l?.setChannel(new pe.Channel.Channel({index:d,role:d===0?pe.Channel.Channel_Role.PRIMARY:pe.Channel.Channel_Role.SECONDARY,settings:u}))}),o?.loraConfig&&l?.setConfig(new pe.Config.Config({payloadVariant:{case:"lora",value:o.loraConfig}}))};return f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsxs(Rr,{children:[f.jsx(Ir,{children:"Import Channel Set"}),f.jsx(To,{children:"The current LoRa configuration will be overridden."})]}),f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx(xn,{children:"Channel Set/QR Code URL"}),f.jsx(jn,{value:n,suffix:i?"✅":"❌",onChange:u=>{r(u.target.value)}}),i&&f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{className:"flex w-full gap-2",children:f.jsxs("div",{className:"w-36",children:[f.jsx(xn,{children:"Use Preset?"}),f.jsx(md,{disabled:!0,checked:o?.loraConfig?.usePreset??!0})]})}),f.jsx("span",{className:"text-md block font-medium text-textPrimary",children:"Channels:"}),f.jsx("div",{className:"flex w-40 flex-col gap-1",children:o?.settings.map(u=>f.jsxs("div",{className:"flex justify-between",children:[f.jsx(xn,{children:u.name.length?u.name:`Channel: ${u.id}`}),f.jsx(dg,{},u.id)]},u.id))})]})]}),f.jsx($i,{children:f.jsx(pt,{onClick:c,disabled:!i,children:"Apply"})})]})})};var fg={},Su={exports:{}};Su.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,a=2,i=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Function]",v="[object GeneratorFunction]",h="[object Map]",_="[object Number]",b="[object Null]",y="[object Object]",x="[object Promise]",E="[object Proxy]",w="[object RegExp]",T="[object Set]",k="[object String]",C="[object Symbol]",P="[object Undefined]",O="[object WeakMap]",R="[object ArrayBuffer]",N="[object DataView]",B="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",G="[object Int16Array]",Y="[object Int32Array]",K="[object Uint8Array]",Z="[object Uint8ClampedArray]",re="[object Uint16Array]",fe="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,ae=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,S={};S[B]=S[D]=S[L]=S[G]=S[Y]=S[K]=S[Z]=S[re]=S[fe]=!0,S[s]=S[l]=S[R]=S[u]=S[N]=S[d]=S[p]=S[g]=S[h]=S[_]=S[y]=S[w]=S[T]=S[k]=S[O]=!1;var X=typeof _t=="object"&&_t&&_t.Object===Object&&_t,H=typeof self=="object"&&self&&self.Object===Object&&self,I=X||H||Function("return this")(),F=t&&!t.nodeType&&t,j=F&&!0&&e&&!e.nodeType&&e,$=j&&j.exports===F,V=$&&X.process,J=function(){try{return V&&V.binding&&V.binding("util")}catch{}}(),ee=J&&J.isTypedArray;function ce(M,z){for(var ne=-1,he=M==null?0:M.length,Ue=0,Ce=[];++ne-1}function Aa(M,z){var ne=this.__data__,he=kl(ne,M);return he<0?(++this.size,ne.push([M,z])):ne[he][1]=z,this}Ft.prototype.clear=Ea,Ft.prototype.delete=Na,Ft.prototype.get=Pa,Ft.prototype.has=Ma,Ft.prototype.set=Aa;function un(M){var z=-1,ne=M==null?0:M.length;for(this.clear();++zmt))return!1;var Ke=Ce.get(M);if(Ke&&Ce.get(z))return Ke==z;var Kt=-1,En=!0,Ct=ne&a?new xl:void 0;for(Ce.set(M,z),Ce.set(z,M);++Kt-1&&M%1==0&&M-1&&M%1==0&&M<=i}function Sg(M){var z=typeof M;return M!=null&&(z=="object"||z=="function")}function Vi(M){return M!=null&&typeof M=="object"}var Tg=ee?q(ee):WT;function aE(M){return rE(M)?UT(M):GT(M)}function iE(){return[]}function sE(){return!1}e.exports=oE})(Su,Su.exports);var jL=Su.exports,rT={exports:{}};(function(e,t){var n=function(){var r=function(w,T){var k=236,C=17,P=w,O=a[T],R=null,N=0,B=null,D=[],L={},G=function(I,F){N=P*4+17,R=function(j){for(var $=new Array(j),V=0;V=7&&fe(I),B==null&&(B=S(P,O,D)),ae(B,F)},Y=function(I,F){for(var j=-1;j<=7;j+=1)if(!(I+j<=-1||N<=I+j))for(var $=-1;$<=7;$+=1)F+$<=-1||N<=F+$||(0<=j&&j<=6&&($==0||$==6)||0<=$&&$<=6&&(j==0||j==6)||2<=j&&j<=4&&2<=$&&$<=4?R[I+j][F+$]=!0:R[I+j][F+$]=!1)},K=function(){for(var I=0,F=0,j=0;j<8;j+=1){G(!0,j);var $=s.getLostPoint(L);(j==0||I>$)&&(I=$,F=j)}return F},Z=function(){for(var I=8;I>j&1)==1;R[Math.floor(j/3)][j%3+N-8-3]=$}for(var j=0;j<18;j+=1){var $=!I&&(F>>j&1)==1;R[j%3+N-8-3][Math.floor(j/3)]=$}},U=function(I,F){for(var j=O<<3|F,$=s.getBCHTypeInfo(j),V=0;V<15;V+=1){var J=!I&&($>>V&1)==1;V<6?R[V][8]=J:V<8?R[V+1][8]=J:R[N-15+V][8]=J}for(var V=0;V<15;V+=1){var J=!I&&($>>V&1)==1;V<8?R[8][N-V-1]=J:V<9?R[8][15-V-1+1]=J:R[8][15-V-1]=J}R[N-8][8]=!I},ae=function(I,F){for(var j=-1,$=N-1,V=7,J=0,ee=s.getMaskFunction(F),ce=N-1;ce>0;ce-=2)for(ce==6&&(ce-=1);;){for(var Pe=0;Pe<2;Pe+=1)if(R[$][ce-Pe]==null){var Oe=!1;J>>V&1)==1);var A=ee($,ce-Pe);A&&(Oe=!Oe),R[$][ce-Pe]=Oe,V-=1,V==-1&&(J+=1,V=7)}if($+=j,$<0||N<=$){$-=j,j=-j;break}}},se=function(I,F){for(var j=0,$=0,V=0,J=new Array(F.length),ee=new Array(F.length),ce=0;ce=0?ue.getAt(le):0}}for(var oe=0,A=0;Ace*8)throw"code length overflow. ("+V.getLengthInBits()+">"+ce*8+")";for(V.getLengthInBits()+4<=ce*8&&V.put(0,4);V.getLengthInBits()%8!=0;)V.putBit(!1);for(;!(V.getLengthInBits()>=ce*8||(V.put(k,8),V.getLengthInBits()>=ce*8));)V.put(C,8);return se(V,$)};L.addData=function(I,F){F=F||"Byte";var j=null;switch(F){case"Numeric":j=p(I);break;case"Alphanumeric":j=g(I);break;case"Byte":j=v(I);break;case"Kanji":j=h(I);break;default:throw"mode:"+F}D.push(j),B=null},L.isDark=function(I,F){if(I<0||N<=I||F<0||N<=F)throw I+","+F;return R[I][F]},L.getModuleCount=function(){return N},L.make=function(){if(P<1){for(var I=1;I<40;I++){for(var F=u.getRSBlocks(I,O),j=d(),$=0;$"u"?I*4:F;var j="";j+='',j+="";for(var $=0;$";for(var V=0;V';j+=""}return j+="",j+="
",j},L.createSvgTag=function(I,F,j,$){var V={};typeof arguments[0]=="object"&&(V=arguments[0],I=V.cellSize,F=V.margin,j=V.alt,$=V.title),I=I||2,F=typeof F>"u"?I*4:F,j=typeof j=="string"?{text:j}:j||{},j.text=j.text||null,j.id=j.text?j.id||"qrcode-description":null,$=typeof $=="string"?{text:$}:$||{},$.text=$.text||null,$.id=$.text?$.id||"qrcode-title":null;var J=L.getModuleCount()*I+F*2,ee,ce,Pe,Oe,A="",q;for(q="l"+I+",0 0,"+I+" -"+I+",0 0,-"+I+"z ",A+='",A},L.createDataURL=function(I,F){I=I||2,F=typeof F>"u"?I*4:F;var j=L.getModuleCount()*I+F*2,$=F,V=j-F;return E(j,j,function(J,ee){if($<=J&&J"u"?I*4:F;var $=L.getModuleCount()*I+F*2,V="";return V+="
",V};var X=function(I){for(var F="",j=0;j":F+=">";break;case"&":F+="&";break;case'"':F+=""";break;default:F+=$;break}}return F},H=function(I){var F=1;I=typeof I>"u"?F*2:I;var j=L.getModuleCount()*F+I*2,$=I,V=j-I,J,ee,ce,Pe,Oe,A={"██":"█","█ ":"▀"," █":"▄"," ":" "},q={"██":"▀","█ ":"▀"," █":" "," ":" "},Q="";for(J=0;J=V?q[Oe]:A[Oe];Q+=`
-`}return j%2&&I>0?Q.substring(0,Q.length-j-1)+Array(j+1).join("▀"):Q.substring(0,Q.length-1)};return L.createASCII=function(I,F){if(I=I||1,I<2)return H(F);I-=1,F=typeof F>"u"?I*2:F;var j=L.getModuleCount()*I+F*2,$=F,V=j-F,J,ee,ce,Pe,Oe=Array(I+1).join("██"),A=Array(I+1).join(" "),q="",Q="";for(J=0;J>>8),O.push(B&255)):O.push(C)}}return O}};var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},a={L:1,M:0,Q:3,H:2},i={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var w=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],T=1335,k=7973,C=21522,P={},O=function(R){for(var N=0;R!=0;)N+=1,R>>>=1;return N};return P.getBCHTypeInfo=function(R){for(var N=R<<10;O(N)-O(T)>=0;)N^=T<=0;)N^=k<5&&(B+=3+G-5)}for(var D=0;D=256;)P-=255;return w[P]},C}();function c(w,T){if(typeof w.length>"u")throw w.length+"/"+T;var k=function(){for(var P=0;P"u")throw"bad rs block @ typeNumber:"+P+"/errorCorrectionLevel:"+O;for(var N=R.length/3,B=[],D=0;D>>7-C%8&1)==1},k.put=function(C,P){for(var O=0;O>>P-O-1&1)==1)},k.getLengthInBits=function(){return T},k.putBit=function(C){var P=Math.floor(T/8);w.length<=P&&w.push(0),C&&(w[P]|=128>>>T%8),T+=1},k},p=function(w){var T=o.MODE_NUMBER,k=w,C={};C.getMode=function(){return T},C.getLength=function(R){return k.length},C.write=function(R){for(var N=k,B=0;B+2>>8&255)*192+(B&255),O.put(B,13),N+=2}if(N>>8)},T.writeBytes=function(k,C,P){C=C||0,P=P||k.length;for(var O=0;O0&&(k+=","),k+=w[C];return k+="]",k},T},b=function(){var w=0,T=0,k=0,C="",P={},O=function(N){C+=String.fromCharCode(R(N&63))},R=function(N){if(!(N<0)){if(N<26)return 65+N;if(N<52)return 97+(N-26);if(N<62)return 48+(N-52);if(N==62)return 43;if(N==63)return 47}throw"n:"+N};return P.writeByte=function(N){for(w=w<<8|N&255,T+=8,k+=1;T>=6;)O(w>>>T-6),T-=6},P.flush=function(){if(T>0&&(O(w<<6-T),w=0,T=0),k%3!=0)for(var N=3-k%3,B=0;B=T.length){if(P==0)return-1;throw"unexpected end of file./"+P}var N=T.charAt(k);if(k+=1,N=="=")return P=0,-1;if(N.match(/^\s$/))continue;C=C<<6|R(N.charCodeAt(0)),P+=6}var B=C>>>P-8&255;return P-=8,B};var R=function(N){if(65<=N&&N<=90)return N-65;if(97<=N&&N<=122)return N-97+26;if(48<=N&&N<=57)return N-48+52;if(N==43)return 62;if(N==47)return 63;throw"c:"+N};return O},x=function(w,T){var k=w,C=T,P=new Array(w*T),O={};O.setPixel=function(D,L,G){P[L*k+D]=G},O.write=function(D){D.writeString("GIF87a"),D.writeShort(k),D.writeShort(C),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(k),D.writeShort(C),D.writeByte(0);var L=2,G=N(L);D.writeByte(L);for(var Y=0;G.length-Y>255;)D.writeByte(255),D.writeBytes(G,Y,255),Y+=255;D.writeByte(G.length-Y),D.writeBytes(G,Y,G.length-Y),D.writeByte(0),D.writeString(";")};var R=function(D){var L=D,G=0,Y=0,K={};return K.write=function(Z,re){if(Z>>>re)throw"length over";for(;G+re>=8;)L.writeByte(255&(Z<>>=8-G,Y=0,G=0;Y=Z<0&&L.writeByte(Y)},K},N=function(D){for(var L=1<>6,128|l&63):l<55296||l>=57344?i.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|a.charCodeAt(s)&1023),i.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return i}return o(r)}})(),function(r){e.exports=r()}(function(){return n})})(rT);var FL=rT.exports,BL=_t&&_t.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(fg,"__esModule",{value:!0});var oT=fg.QRCode=void 0,$L=jL,UL=FL,Bf=m,VL=an,zL=function(e){BL(t,e);function t(n){var r=e.call(this,n)||this;return r.canvas=Bf.createRef(),r}return t.utf16to8=function(n){var r="",o,a,i=n.length;for(o=0;o=1&&a<=127?r+=n.charAt(o):a>2047?(r+=String.fromCharCode(224|a>>12&15),r+=String.fromCharCode(128|a>>6&63),r+=String.fromCharCode(128|a>>0&63)):(r+=String.fromCharCode(192|a>>6&31),r+=String.fromCharCode(128|a>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,o,a,i,s,l,c){c.lineWidth=n,c.fillStyle=i,c.strokeStyle=i,o+=n/2,r+=n/2,a-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(v){return v=Math.min(v,a/2),v<0?0:v});var u=s[0]||0,d=s[1]||0,p=s[2]||0,g=s[3]||0;c.beginPath(),c.moveTo(r+u,o),c.lineTo(r+a-d,o),d&&c.quadraticCurveTo(r+a,o,r+a,o+d),c.lineTo(r+a,o+a-p),p&&c.quadraticCurveTo(r+a,o+a,r+a-p,o+a),c.lineTo(r+g,o+a),g&&c.quadraticCurveTo(r,o+a,r,o+a-g),c.lineTo(r,o+u),u&&c.quadraticCurveTo(r,o,r+u,o),c.closePath(),c.stroke(),l&&c.fill()},t.prototype.drawPositioningPattern=function(n,r,o,a,i,s,l){l===void 0&&(l=[0,0,0,0]);var c=Math.ceil(r),u,d;typeof l!="number"&&!Array.isArray(l)?(u=l.outer||0,d=l.inner||0):(u=l,d=u);var p,g;typeof s!="string"?(p=s.outer,g=s.inner):(p=s,g=s);var v=a*r+o,h=i*r+o,_=r*7;this.drawRoundedSquare(c,h,v,_,p,u,!1,n),_=r*3,v+=r*2,h+=r*2,this.drawRoundedSquare(c,h,v,_,g,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,o){return o.some(function(a){return r>=a.row&&r<=a.row+7&&n>=a.col&&n<=a.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,o,a,i,s,l,c){if(c){var u=2,d=this.transformPixelLengthIntoNumberOfCells(i,l),p=this.transformPixelLengthIntoNumberOfCells(s,l),g=this.transformPixelLengthIntoNumberOfCells(o,l)-1,v=this.transformPixelLengthIntoNumberOfCells(a,l)-1;return r>=d-u&&r<=d+g+u&&n>=p-u&&n<=p+v+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!$L(this.props,n)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var n=this.props,r=n.value,o=n.ecLevel,a=n.enableCORS,i=n.bgColor,s=n.fgColor,l=n.logoImage,c=n.logoOpacity,u=n.logoOnLoad,d=n.removeQrCodeBehindLogo,p=n.qrStyle,g=n.eyeRadius,v=n.eyeColor,h=n.logoPaddingStyle,_=+this.props.size,b=+this.props.quietZone,y=this.props.logoWidth?+this.props.logoWidth:0,x=this.props.logoHeight?+this.props.logoHeight:0,E=this.props.logoPadding?+this.props.logoPadding:0,w=UL(0,o);w.addData(t.utf16to8(r)),w.make();var T=VL.findDOMNode(this.canvas.current),k=T.getContext("2d"),C=_+2*b,P=w.getModuleCount(),O=_/P,R=window.devicePixelRatio||1;T.height=T.width=C*R,k.scale(R,R),k.fillStyle=i,k.fillRect(0,0,C,C);var N=b,B=[{row:0,col:0},{row:0,col:P-7},{row:P-7,col:0}];if(k.strokeStyle=s,p==="dots"){k.fillStyle=s;for(var D=O/2,L=0;L0&&!w.isDark(L-1,G)&&G>0&&!w.isDark(L,G-1)&&(Y[0]=!0),L>0&&!w.isDark(L-1,G)&&G0&&!w.isDark(L,G-1)&&(Y[3]=!0);var K=Math.ceil((G+1)*O)-Math.floor(G*O),Z=Math.ceil((L+1)*O)-Math.floor(L*O);k.fillStyle=s,k.beginPath(),k.arc(Math.round(G*O)+D+N,Math.round(L*O)+D+N,D,0,2*Math.PI,!1),k.closePath(),k.fill(),Y[0]||k.fillRect(Math.round(G*O)+N,Math.round(L*O)+N,K/2,Z/2),Y[1]||k.fillRect(Math.round(G*O)+N+Math.floor(K/2),Math.round(L*O)+N,K/2,Z/2),Y[2]||k.fillRect(Math.round(G*O)+N+Math.floor(K/2),Math.round(L*O)+N+Math.floor(Z/2),K/2,Z/2),Y[3]||k.fillRect(Math.round(G*O)+N,Math.round(L*O)+N+Math.floor(Z/2),K/2,Z/2)}}else for(var L=0;L{const[o,a]=m.useState([0]),[i,s]=m.useState(""),[l,c]=m.useState(),u=m.useMemo(()=>Array.from(r.values()),[r]);return m.useEffect(()=>{const d=u.filter(v=>o.includes(v.index)).map(v=>v.settings).filter(v=>!!v),p=new pe.AppOnly.ChannelSet(new pe.AppOnly.ChannelSet({loraConfig:n,settings:d})),g=fr(p.toBinary()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");s(`https://meshtastic.org/e/${l?"?add=true":""}#${g}`)},[u,o,l,n]),f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsxs(Rr,{children:[f.jsx(Ir,{children:"Generate QR Code"}),f.jsx(To,{children:"The current LoRa configuration will also be shared."})]}),f.jsxs("div",{className:"grid gap-4 py-4",children:[f.jsxs("div",{className:"flex gap-3 px-4 py-5 sm:p-6",children:[f.jsx("div",{className:"flex w-40 flex-col gap-2",children:u.map(d=>f.jsxs("div",{className:"flex justify-between",children:[f.jsx(xn,{children:d.settings?.name.length?d.settings.name:d.role===pe.Channel.Channel_Role.PRIMARY?"Primary":`Channel: ${d.index}`}),f.jsx(dg,{checked:o.includes(d.index),onCheckedChange:()=>{o.includes(d.index)?a(o.filter(p=>p!==d.index)):a([...o,d.index])}},d.index)]},d.index))}),f.jsx(oT,{value:i,size:200,qrStyle:"dots"})]}),f.jsxs("div",{className:"flex justify-center",children:[f.jsx("button",{type:"button",className:`border-black border-t border-l border-b rounded-l h-10 px-7 py-2 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 ${l?"focus:ring-green-800 bg-green-800 text-white":"focus:ring-slate-400 bg-slate-400 hover:bg-green-600"}`,onClick:()=>c(!0),children:"Add Channels"}),f.jsx("button",{type:"button",className:`border-black border-t border-r border-b rounded-r h-10 px-4 py-2 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 ${l?"focus:ring-slate-400 bg-slate-400 hover:bg-green-600":"focus:ring-green-800 bg-green-800 text-white"}`,onClick:()=>c(!1),children:"Replace Channels"})]})]}),f.jsxs($i,{children:[f.jsx(xn,{children:"Sharable URL"}),f.jsx(jn,{value:i,disabled:!0,action:{icon:qR,onClick(){navigator.clipboard.writeText(i)}}})]})]})})},WL=({open:e,onOpenChange:t})=>{const{connection:n}=Te(),[r,o]=m.useState(5);return f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsxs(Rr,{children:[f.jsx(Ir,{children:"Schedule Reboot"}),f.jsx(To,{children:"Reboot the connected node after x minutes."})]}),f.jsxs("div",{className:"flex gap-2 p-4",children:[f.jsx(jn,{type:"number",value:r,onChange:a=>o(Number.parseInt(a.target.value)),action:{icon:lC,onClick(){n?.reboot(r*60).then(()=>t(!1))}}}),f.jsxs(pt,{className:"w-24",onClick:()=>{n?.reboot(2).then(()=>t(!1))},children:[f.jsx(lp,{className:"mr-2",size:16}),"Now"]})]})]})})},GL=({open:e,onOpenChange:t})=>{const{connection:n}=Te(),[r,o]=m.useState(5);return f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsxs(Rr,{children:[f.jsx(Ir,{children:"Schedule Shutdown"}),f.jsx(To,{children:"Turn off the connected node after x minutes."})]}),f.jsxs("div",{className:"flex gap-2 p-4",children:[f.jsx(jn,{type:"number",value:r,onChange:a=>o(Number.parseInt(a.target.value)),suffix:"Minutes"}),f.jsx(pt,{className:"w-24",onClick:()=>{n?.shutdown(r*60).then(()=>t(!1))},children:f.jsx(lC,{size:16})}),f.jsxs(pt,{className:"w-24",onClick:()=>{n?.shutdown(2).then(()=>()=>t(!1))},children:[f.jsx(hC,{className:"mr-2",size:16}),"Now"]})]})]})})},KL=()=>{const{channels:e,config:t,dialog:n,setDialogOpen:r}=Te();return f.jsxs(f.Fragment,{children:[f.jsx(HL,{open:n.QR,onOpenChange:o=>{r("QR",o)},channels:e,loraConfig:t.lora}),f.jsx(LL,{open:n.import,onOpenChange:o=>{r("import",o)},loraConfig:t.lora}),f.jsx(GL,{open:n.shutdown,onOpenChange:()=>{r("shutdown",!1)}}),f.jsx(WL,{open:n.reboot,onOpenChange:()=>{r("reboot",!1)}}),f.jsx(ML,{open:n.deviceName,onOpenChange:o=>{r("deviceName",o)}}),f.jsx(PL,{open:n.nodeRemoval,onOpenChange:o=>{r("nodeRemoval",o)}})]})},pg=(e,t)=>{let n=0;t.events.onDeviceMetadataPacket.subscribe(r=>{e.addMetadata(r.from,r.data)}),t.events.onRoutingPacket.subscribe(r=>{switch(r.data.variant.case){case"errorReason":{if(r.data.variant.value===pe.Mesh.Routing_Error.NONE)return;console.log(`Routing Error: ${r.data.variant.value}`);break}case"routeReply":{console.log(`Route Reply: ${r.data.variant.value}`);break}case"routeRequest":{console.log(`Route Request: ${r.data.variant.value}`);break}}}),t.events.onTelemetryPacket.subscribe(r=>{}),t.events.onDeviceStatus.subscribe(r=>{e.setStatus(r)}),t.events.onWaypointPacket.subscribe(r=>{const{data:o,...a}=r;e.addWaypoint(o)}),t.events.onMyNodeInfo.subscribe(r=>{e.setHardware(r),n=r.myNodeNum}),t.events.onUserPacket.subscribe(r=>{e.addUser(r)}),t.events.onPositionPacket.subscribe(r=>{e.addPosition(r)}),t.events.onNodeInfoPacket.subscribe(r=>{e.addNodeInfo(r)}),t.events.onChannelPacket.subscribe(r=>{e.addChannel(r)}),t.events.onConfigPacket.subscribe(r=>{e.setConfig(r)}),t.events.onModuleConfigPacket.subscribe(r=>{e.setModuleConfig(r)}),t.events.onMessagePacket.subscribe(r=>{e.addMessage({...r,state:r.from!==n?"ack":"waiting"})}),t.events.onTraceRoutePacket.subscribe(r=>{e.addTraceRoute({...r})}),t.events.onPendingSettingsChange.subscribe(r=>{e.setPendingSettingsChanges(r)}),t.events.onMeshPacket.subscribe(r=>{e.processPacket({from:r.from,snr:r.rxSnr,time:r.rxTime})})},mg=()=>Math.floor(Math.random()*1e9),qL=({closeDialog:e})=>{const[t,n]=m.useState([]),{addDevice:r}=ca(),{setSelectedDevice:o}=$n(),a=m.useCallback(async()=>{n(await navigator.bluetooth.getDevices())},[]);m.useEffect(()=>{a()},[a]);const i=async s=>{const l=mg(),c=r(l);o(l);const u=new CP(l);await u.connect({device:s}),c.addConnection(u),pg(c,u),e()};return f.jsxs("div",{className:"flex w-full flex-col gap-2 p-4",children:[f.jsxs("div",{className:"flex h-48 flex-col gap-2 overflow-y-auto",children:[t.map(s=>f.jsx(pt,{onClick:()=>{i(s)},children:s.name},s.id)),t.length===0&&f.jsx(Do,{className:"m-auto select-none",children:"No devices paired yet."})]}),f.jsx(pt,{onClick:async()=>{await navigator.bluetooth.requestDevice({filters:[{services:[iN.ServiceUuid]}]}).then(s=>{t.findIndex(c=>c.id===s.id)===-1&&n(t.concat(s))})},children:f.jsx("span",{children:"New device"})})]})},XL=({closeDialog:e})=>{const{addDevice:t}=ca(),{setSelectedDevice:n}=$n(),{register:r,handleSubmit:o,control:a}=Eh({defaultValues:{ip:["client.meshtastic.org","localhost"].includes(window.location.hostname)?"meshtastic.local":window.location.hostname,tls:location.protocol==="https:"}}),i=$x({control:a,name:"tls",defaultValue:location.protocol==="https:"}),[s,l]=m.useState(!1),c=o(async u=>{l(!0);const d=mg(),p=t(d),g=new SP(d);await g.connect({address:u.ip,fetchInterval:2e3,tls:u.tls}),n(d),p.addConnection(g),pg(p,g),e()});return f.jsxs("form",{className:"flex w-full flex-col gap-2 p-4",onSubmit:c,children:[f.jsxs("div",{className:"flex h-48 flex-col gap-2",children:[f.jsx(xn,{children:"IP Address/Hostname"}),f.jsx(jn,{prefix:i?"https://":"http://",placeholder:"000.000.000.000 / meshtastic.local",disabled:s,...r("ip")}),f.jsx(ml,{name:"tls",control:a,render:({field:{value:u,...d}})=>f.jsxs(f.Fragment,{children:[f.jsx(xn,{children:"Use TLS"}),f.jsx(md,{disabled:location.protocol==="https:"||s,checked:u,...d})]})})]}),f.jsx(pt,{type:"submit",disabled:s,children:f.jsx("span",{children:s?"Connecting...":"Connect"})})]})},YL=({closeDialog:e})=>{const[t,n]=m.useState([]),{addDevice:r}=ca(),{setSelectedDevice:o}=$n(),a=m.useCallback(async()=>{n(await navigator.serial.getPorts())},[]);navigator.serial.addEventListener("connect",()=>{a()}),navigator.serial.addEventListener("disconnect",()=>{a()}),m.useEffect(()=>{a()},[a]);const i=async s=>{const l=mg(),c=r(l);o(l);const u=new TP(l);await u.connect({port:s,baudRate:void 0,concurrentLogOutput:!0}).catch(d=>console.log(`Unable to Connect: ${d.message}`)),c.addConnection(u),pg(c,u),e()};return f.jsxs("div",{className:"flex w-full flex-col gap-2 p-4",children:[f.jsxs("div",{className:"flex h-48 flex-col gap-2 overflow-y-auto",children:[t.map((s,l)=>{const{usbProductId:c,usbVendorId:u}=s.getInfo();return f.jsx(pt,{disabled:s.readable!==null,onClick:async()=>{await i(s)},children:`# ${l} - ${u??"UNK"} - ${c??"UNK"}`},`${u??"UNK"}-${c??"UNK"}-${l}`)}),t.length===0&&f.jsx(Do,{className:"m-auto select-none",children:"No devices paired yet."})]}),f.jsx(pt,{onClick:async()=>{await navigator.serial.requestPort().then(s=>{n(t.concat(s))})},children:f.jsx("span",{children:"New device"})})]})},A1=({href:e,children:t})=>f.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-slate-900 underline underline-offset-4 dark:text-slate-50",children:t}),R1=[{label:"HTTP",element:XL,disabled:!1,disabledMessage:"Unsuported connection method"},{label:"Bluetooth",element:qL,disabled:!navigator.bluetooth,disabledMessage:"Web Bluetooth is currently only supported by Chromium-based browsers",disabledLink:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API#browser_compatibility"},{label:"Serial",element:YL,disabled:!navigator.serial,disabledMessage:"WebSerial is currently only supported by Chromium based browsers: https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility"}],QL=({open:e,onOpenChange:t})=>f.jsx(Ar,{open:e,onOpenChange:t,children:f.jsxs(tr,{children:[f.jsx(Rr,{children:f.jsx(Ir,{children:"Connect New Device"})}),f.jsxs(od,{defaultValue:"HTTP",children:[f.jsx(cl,{children:R1.map(n=>f.jsx(ul,{value:n.label,disabled:n.disabled,children:n.label},n.label))}),R1.map(n=>f.jsx(dl,{value:n.label,children:n.disabled?f.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:n.disabledMessage}):f.jsx(n.element,{closeDialog:()=>t(!1)})},n.label))]}),(!navigator.bluetooth||!navigator.serial)&&f.jsxs(f.Fragment,{children:[f.jsx(wn,{children:"Web Bluetooth and Web Serial are currently only supported by Chromium-based browsers."}),f.jsxs(wn,{children:["Read more: ",f.jsx(A1,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility",children:"Web Bluetooth"})," ",f.jsx(A1,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API#browser_compatibility",children:"Web Serial"})]})]})]})});var hg="ToastProvider",[gg,ZL,JL]=hh("Toast"),[aT,I7]=Pr("Toast",[JL]),[e7,Td]=aT(hg),iT=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,l]=m.useState(null),[c,u]=m.useState(0),d=m.useRef(!1),p=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${hg}\`. Expected non-empty \`string\`.`),f.jsx(gg.Provider,{scope:t,children:f.jsx(e7,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:m.useCallback(()=>u(g=>g+1),[]),onToastRemove:m.useCallback(()=>u(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:i})})};iT.displayName=hg;var sT="ToastViewport",t7=["F8"],Tp="toast.viewportPause",Ep="toast.viewportResume",lT=m.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=t7,label:o="Notifications ({hotkey})",...a}=e,i=Td(sT,n),s=ZL(n),l=m.useRef(null),c=m.useRef(null),u=m.useRef(null),d=m.useRef(null),p=$e(t,d,i.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;m.useEffect(()=>{const _=b=>{r.every(x=>b[x]||b.code===x)&&d.current?.focus()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[r]),m.useEffect(()=>{const _=l.current,b=d.current;if(v&&_&&b){const y=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Tp);b.dispatchEvent(T),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(Ep);b.dispatchEvent(T),i.isClosePausedRef.current=!1}},E=T=>{!_.contains(T.relatedTarget)&&x()},w=()=>{_.contains(document.activeElement)||x()};return _.addEventListener("focusin",y),_.addEventListener("focusout",E),_.addEventListener("pointermove",y),_.addEventListener("pointerleave",w),window.addEventListener("blur",y),window.addEventListener("focus",x),()=>{_.removeEventListener("focusin",y),_.removeEventListener("focusout",E),_.removeEventListener("pointermove",y),_.removeEventListener("pointerleave",w),window.removeEventListener("blur",y),window.removeEventListener("focus",x)}}},[v,i.isClosePausedRef]);const h=m.useCallback(({tabbingDirection:_})=>{const y=s().map(x=>{const E=x.ref.current,w=[E,...m7(E)];return _==="forwards"?w:w.reverse()});return(_==="forwards"?y.reverse():y).flat()},[s]);return m.useEffect(()=>{const _=d.current;if(_){const b=y=>{const x=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!x){const w=document.activeElement,T=y.shiftKey;if(y.target===_&&T){c.current?.focus();return}const P=h({tabbingDirection:T?"backwards":"forwards"}),O=P.findIndex(R=>R===w);$f(P.slice(O+1))?y.preventDefault():T?c.current?.focus():u.current?.focus()}};return _.addEventListener("keydown",b),()=>_.removeEventListener("keydown",b)}},[s,h]),f.jsxs(dM,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&f.jsx(Np,{ref:c,onFocusFromOutsideViewport:()=>{const _=h({tabbingDirection:"forwards"});$f(_)}}),f.jsx(gg.Slot,{scope:n,children:f.jsx(xe.ol,{tabIndex:-1,...a,ref:p})}),v&&f.jsx(Np,{ref:u,onFocusFromOutsideViewport:()=>{const _=h({tabbingDirection:"backwards"});$f(_)}})]})});lT.displayName=sT;var cT="ToastFocusProxy",Np=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Td(cT,n);return f.jsx(cd,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{const s=i.relatedTarget;!a.viewport?.contains(s)&&r()}})});Np.displayName=cT;var Ed="Toast",n7="toast.swipeStart",r7="toast.swipeMove",o7="toast.swipeCancel",a7="toast.swipeEnd",uT=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,l]=go({prop:r,defaultProp:o,onChange:a});return f.jsx(ua,{present:n||s,children:f.jsx(l7,{open:s,...i,ref:t,onClose:()=>l(!1),onPause:Wt(e.onPause),onResume:Wt(e.onResume),onSwipeStart:we(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:we(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:we(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:we(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});uT.displayName=Ed;var[i7,s7]=aT(Ed,{onClose(){}}),l7=m.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:g,...v}=e,h=Td(Ed,n),[_,b]=m.useState(null),y=$e(t,D=>b(D)),x=m.useRef(null),E=m.useRef(null),w=o||h.duration,T=m.useRef(0),k=m.useRef(w),C=m.useRef(0),{onToastAdd:P,onToastRemove:O}=h,R=Wt(()=>{_?.contains(document.activeElement)&&h.viewport?.focus(),i()}),N=m.useCallback(D=>{!D||D===1/0||(window.clearTimeout(C.current),T.current=new Date().getTime(),C.current=window.setTimeout(R,D))},[R]);m.useEffect(()=>{const D=h.viewport;if(D){const L=()=>{N(k.current),c?.()},G=()=>{const Y=new Date().getTime()-T.current;k.current=k.current-Y,window.clearTimeout(C.current),l?.()};return D.addEventListener(Tp,G),D.addEventListener(Ep,L),()=>{D.removeEventListener(Tp,G),D.removeEventListener(Ep,L)}}},[h.viewport,w,l,c,N]),m.useEffect(()=>{a&&!h.isClosePausedRef.current&&N(w)},[a,w,h.isClosePausedRef,N]),m.useEffect(()=>(P(),()=>O()),[P,O]);const B=m.useMemo(()=>_?vT(_):null,[_]);return h.viewport?f.jsxs(f.Fragment,{children:[B&&f.jsx(c7,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),f.jsx(i7,{scope:n,onClose:R,children:an.createPortal(f.jsx(gg.ItemSlot,{scope:n,children:f.jsx(uM,{asChild:!0,onEscapeKeyDown:we(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||R(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection,...v,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:we(e.onKeyDown,D=>{D.key==="Escape"&&(s?.(D.nativeEvent),D.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:we(e.onPointerDown,D=>{D.button===0&&(x.current={x:D.clientX,y:D.clientY})}),onPointerMove:we(e.onPointerMove,D=>{if(!x.current)return;const L=D.clientX-x.current.x,G=D.clientY-x.current.y,Y=!!E.current,K=["left","right"].includes(h.swipeDirection),Z=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,re=K?Z(0,L):0,fe=K?0:Z(0,G),U=D.pointerType==="touch"?10:2,ae={x:re,y:fe},se={originalEvent:D,delta:ae};Y?(E.current=ae,sc(r7,d,se,{discrete:!1})):I1(ae,h.swipeDirection,U)?(E.current=ae,sc(n7,u,se,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(L)>U||Math.abs(G)>U)&&(x.current=null)}),onPointerUp:we(e.onPointerUp,D=>{const L=E.current,G=D.target;if(G.hasPointerCapture(D.pointerId)&&G.releasePointerCapture(D.pointerId),E.current=null,x.current=null,L){const Y=D.currentTarget,K={originalEvent:D,delta:L};I1(L,h.swipeDirection,h.swipeThreshold)?sc(a7,g,K,{discrete:!0}):sc(o7,p,K,{discrete:!0}),Y.addEventListener("click",Z=>Z.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),c7=e=>{const{__scopeToast:t,children:n,...r}=e,o=Td(Ed,t),[a,i]=m.useState(!1),[s,l]=m.useState(!1);return f7(()=>i(!0)),m.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:f.jsx(ld,{asChild:!0,children:f.jsx(cd,{...r,children:a&&f.jsxs(f.Fragment,{children:[o.label," ",n]})})})},u7="ToastTitle",dT=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(xe.div,{...r,ref:t})});dT.displayName=u7;var d7="ToastDescription",fT=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(xe.div,{...r,ref:t})});fT.displayName=d7;var pT="ToastAction",mT=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(gT,{altText:n,asChild:!0,children:f.jsx(vg,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${pT}\`. Expected non-empty \`string\`.`),null)});mT.displayName=pT;var hT="ToastClose",vg=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=s7(hT,n);return f.jsx(gT,{asChild:!0,children:f.jsx(xe.button,{type:"button",...r,ref:t,onClick:we(e.onClick,o.onClose)})})});vg.displayName=hT;var gT=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return f.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function vT(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),p7(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...vT(r))}}),t}function sc(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ax(o,a):o.dispatchEvent(a)}var I1=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function f7(e=()=>{}){const t=Wt(e);Mt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function p7(e){return e.nodeType===e.ELEMENT_NODE}function m7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $f(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var h7=iT,yT=lT,bT=uT,wT=dT,_T=fT,xT=mT,kT=vg;const g7=h7,CT=m.forwardRef(({className:e,...t},n)=>f.jsx(yT,{ref:n,className:Ee("fixed top-0 z-50 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));CT.displayName=yT.displayName;const v7=wh("data-[swipe=move]:transition-none grow-1 group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full mt-4 data-[state=closed]:slide-out-to-right-full dark:border-slate-700 last:mt-0 sm:last:mt-4",{variants:{variant:{default:"bg-white border-slate-200 dark:bg-slate-800 dark:border-slate-700",destructive:"group destructive bg-red-600 text-white border-red-600 dark:border-red-600"}},defaultVariants:{variant:"default"}}),ST=m.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(bT,{ref:r,className:Ee(v7({variant:t}),e),...n}));ST.displayName=bT.displayName;const y7=m.forwardRef(({className:e,...t},n)=>f.jsx(xT,{ref:n,className:Ee("inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-slate-200 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-red-100 group-[.destructive]:hover:border-slate-50 group-[.destructive]:hover:bg-red-100 group-[.destructive]:hover:text-red-600 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:border-slate-700 dark:text-slate-100 dark:hover:bg-slate-700 dark:hover:text-slate-100 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900 dark:data-[state=open]:bg-slate-800",e),...t}));y7.displayName=xT.displayName;const TT=m.forwardRef(({className:e,...t},n)=>f.jsx(kT,{ref:n,className:Ee("absolute right-2 top-2 rounded-md p-1 text-slate-500 opacity-0 transition-opacity hover:text-slate-900 focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:hover:text-slate-50",e),"toast-close":"",...t,children:f.jsx(yC,{className:"h-4 w-4"})}));TT.displayName=kT.displayName;const ET=m.forwardRef(({className:e,...t},n)=>f.jsx(wT,{ref:n,className:Ee("text-sm font-semibold",e),...t}));ET.displayName=wT.displayName;const NT=m.forwardRef(({className:e,...t},n)=>f.jsx(_T,{ref:n,className:Ee("text-sm opacity-90",e),...t}));NT.displayName=_T.displayName;function b7(){const{toasts:e}=hd();return f.jsxs(g7,{children:[e.map(({id:t,title:n,description:r,action:o,...a})=>f.jsxs(ST,{...a,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(ET,{className:"dark:text-white",children:n}),r&&f.jsx(NT,{className:"dark:text-white-400",children:r})]}),o,f.jsx(TT,{})]},t)),f.jsx(CT,{})]})}const w7=({children:e})=>{const{darkMode:t,accent:n}=$n();return f.jsx("div",{"data-theme":t?"dark":"light","data-accent":n,children:e})},O1=({children:e})=>f.jsx("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight",children:e}),_7=()=>{const{setConnectDialogOpen:e}=$n(),{getDevices:t}=ca(),n=m.useMemo(()=>t(),[t]);return f.jsx(f.Fragment,{children:f.jsxs("div",{className:"flex flex-col gap-3 p-3",children:[f.jsx("div",{className:"flex items-center justify-between",children:f.jsxs("div",{className:"space-y-1",children:[f.jsx(O1,{children:"Connected Devices"}),f.jsx(wn,{children:"Manage, connect and disconnect devices"})]})}),f.jsx(Cu,{}),f.jsx("div",{className:"flex h-[450px] rounded-md border border-dashed border-slate-200 p-3 dark:border-slate-700",children:n.length?f.jsx("ul",{className:"grow divide-y divide-gray-200",children:n.map(r=>f.jsx("li",{children:f.jsxs("div",{className:"px-4 py-4 sm:px-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"truncate text-sm font-medium text-accent",children:r.nodes.get(r.hardware.myNodeNum)?.user?.longName??"UNK"}),f.jsxs("div",{className:"inline-flex w-24 justify-center gap-2 rounded-full bg-slate-100 py-1 text-xs font-semibold text-slate-900 transition-colors hover:bg-slate-700 hover:text-slate-50",children:[r.connection?.connType==="ble"&&f.jsxs(f.Fragment,{children:[f.jsx(zR,{size:16}),"BLE"]}),r.connection?.connType==="serial"&&f.jsxs(f.Fragment,{children:[f.jsx(m6,{size:16}),"Serial"]}),r.connection?.connType==="http"&&f.jsxs(f.Fragment,{children:[f.jsx(i6,{size:16}),"Network"]})]})]}),f.jsx("div",{className:"mt-2 sm:flex sm:justify-between",children:f.jsxs("div",{className:"flex gap-2 text-sm text-gray-500",children:[f.jsx(Gh,{size:20,className:"text-gray-400","aria-hidden":"true"}),r.nodes.size===0?0:r.nodes.size-1]})})]})},r.id))}):f.jsxs("div",{className:"m-auto flex flex-col gap-3 text-center",children:[f.jsx(o6,{size:48,className:"mx-auto text-textSecondary"}),f.jsx(O1,{children:"No Devices"}),f.jsx(wn,{children:"Connect at least one device to get started"}),f.jsxs(pt,{className:"gap-2",onClick:()=>e(!0),children:[f.jsx(Hh,{size:16}),"New Connection"]})]})})]})})},x7=()=>{const{getDevice:e}=ca(),{selectedDevice:t,setConnectDialogOpen:n,connectDialogOpen:r}=$n(),o=e(t);return f.jsxs(w7,{children:[f.jsx(QL,{open:r,onOpenChange:a=>{n(a)}}),f.jsx(b7,{}),f.jsx(ZO,{children:f.jsx(EP,{device:o,children:f.jsx("div",{className:"flex h-screen flex-col overflow-hidden bg-backgroundPrimary text-textPrimary",children:f.jsxs("div",{className:"flex flex-grow",children:[f.jsx(NL,{}),f.jsx("div",{className:"flex flex-grow flex-col",children:o?f.jsxs("div",{className:"flex h-screen",children:[f.jsx(KL,{}),f.jsx(xL,{}),f.jsx(qD,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(_7,{}),f.jsx("div",{className:"flex flex-grow"}),f.jsx(Qh,{})]})})]})})})})]})},k7=document.getElementById("root"),C7=e2(k7);$E();C7.render(f.jsx(m.StrictMode,{children:f.jsx(x7,{})}));export{_t as c,Pp as g};
diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/index-wV0rbIjU.css b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/index-wV0rbIjU.css
deleted file mode 100644
index fe87e3c..0000000
--- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/index-wV0rbIjU.css
+++ /dev/null
@@ -1 +0,0 @@
-*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter var,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:Cascadia Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-left-2{left:-.5rem}.left-2{left:.5rem}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-2{top:.5rem}.top-4{top:1rem}.z-50{z-index:50}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-auto{margin-top:auto;margin-bottom:auto}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[24px\]{height:24px}.h-\[450px\]{height:450px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-\[1px\]{width:1px}.w-\[44px\]{width:44px}.w-full{width:100%}.min-w-\[100px\]{min-width:100px}.min-w-\[12rem\]{min-width:12rem}.min-w-\[280px\]{min-width:280px}.min-w-\[8rem\]{min-width:8rem}.min-w-full{min-width:100%}.\!max-w-max{max-width:-moz-max-content!important;max-width:max-content!important}.max-w-lg{max-width:32rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-m-20{scroll-margin:5rem}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[0\.185rem\]{border-radius:.185rem}.rounded-\[0\.2rem\]{border-radius:.2rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-\[0\.5px\]{border-bottom-width:.5px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-\[0\.5px\]{border-right-width:.5px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-b-slate-100{--tw-border-opacity: 1;border-bottom-color:rgb(241 245 249 / var(--tw-border-opacity))}.border-b-slate-200{--tw-border-opacity: 1;border-bottom-color:rgb(226 232 240 / var(--tw-border-opacity))}.border-l-backgroundPrimary{border-left-color:var(--backgroundPrimary)}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[\#2093fe\]{--tw-bg-opacity: 1;background-color:rgb(32 147 254 / var(--tw-bg-opacity))}.bg-\[\#27a341\]{--tw-bg-opacity: 1;background-color:rgb(39 163 65 / var(--tw-bg-opacity))}.bg-\[\#70afea\]{--tw-bg-opacity: 1;background-color:rgb(112 175 234 / var(--tw-bg-opacity))}.bg-\[\#8bc9c5\]{--tw-bg-opacity: 1;background-color:rgb(139 201 197 / var(--tw-bg-opacity))}.bg-\[\#926bff\]{--tw-bg-opacity: 1;background-color:rgb(146 107 255 / var(--tw-bg-opacity))}.bg-\[\#a09eef\]{--tw-bg-opacity: 1;background-color:rgb(160 158 239 / var(--tw-bg-opacity))}.bg-\[\#ac8c1a\]{--tw-bg-opacity: 1;background-color:rgb(172 140 26 / var(--tw-bg-opacity))}.bg-\[\#dba0c7\]{--tw-bg-opacity: 1;background-color:rgb(219 160 199 / var(--tw-bg-opacity))}.bg-\[\#e0cc87\]{--tw-bg-opacity: 1;background-color:rgb(224 204 135 / var(--tw-bg-opacity))}.bg-\[\#e1720b\]{--tw-bg-opacity: 1;background-color:rgb(225 114 11 / var(--tw-bg-opacity))}.bg-\[\#e454c4\]{--tw-bg-opacity: 1;background-color:rgb(228 84 196 / var(--tw-bg-opacity))}.bg-\[\#edb17a\]{--tw-bg-opacity: 1;background-color:rgb(237 177 122 / var(--tw-bg-opacity))}.bg-\[\#f25555\]{--tw-bg-opacity: 1;background-color:rgb(242 85 85 / var(--tw-bg-opacity))}.bg-\[\#f28585\]{--tw-bg-opacity: 1;background-color:rgb(242 133 133 / var(--tw-bg-opacity))}.bg-accent{background-color:var(--accent)}.bg-backgroundPrimary{background-color:var(--backgroundPrimary)}.bg-black\/50{background-color:#00000080}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[0\.3rem\]{padding-left:.3rem;padding-right:.3rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\[0\.2rem\]{padding-top:.2rem;padding-bottom:.2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:Cascadia Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent{color:var(--accent)}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.text-textPrimary{color:var(--textPrimary)}.text-textSecondary{color:var(--textSecondary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.brightness-hover{--tw-brightness: brightness(var(--brighnessHover));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-brightness-press{--tw-backdrop-brightness: brightness(var(--brightnessPress));-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.fade-in-50{--tw-enter-opacity: .5}.fade-in-80{--tw-enter-opacity: .8}.fade-in-90{--tw-enter-opacity: .9}.slide-in-from-bottom-10{--tw-enter-translate-y: 2.5rem}.slide-in-from-left-1{--tw-enter-translate-x: -.25rem}.slide-in-from-top-1{--tw-enter-translate-y: -.25rem}.duration-300{animation-duration:.3s}:root{--backgroundPrimary: #ffffff;--backgroundSecondary: #e6e9ed;--textPrimary: #111132;--textSecondary: #64748b;--link: #0b69bf;--brighnessHover: .95;--brightnessPress: 1.05;--brightnessDisabled: .75}[data-theme=dark]{--backgroundPrimary: #0f172a;--backgroundSecondary: #363638;--textPrimary: #ebebeb;--textSecondary: #bdbdbd;--link: #8ec9ff;--brighnessHover: 1.1;--brightnessPress: .9;--brightnessDisabled: .75}[data-accent=red]{--accent: #f28585;--accentMuted: #f4abab}[data-accent=red][data-theme=dark]{--accent: #f25555;--accentMuted: #b04749}[data-accent=orange]{--accent: #edb17a;--accentMuted: #efc7a4}[data-accent=orange][data-theme=dark]{--accent: #e1720b;--accentMuted: #a55c17}[data-accent=yellow]{--accent: #e0cc87;--accentMuted: #e8daad}[data-accent=yellow][data-theme=dark]{--accent: #ac8c1a;--accentMuted: #826c22}[data-accent=green]{--accent: #8bc9c5;--accentMuted: #afd7d5}[data-accent=green][data-theme=dark]{--accent: #27a341;--accentMuted: #297b3b}[data-accent=blue]{--accent: #70afea;--accentMuted: #9cc7ee}[data-accent=blue][data-theme=dark]{--accent: #2093fe;--accentMuted: #2471ba}[data-accent=purple]{--accent: #a09eef;--accentMuted: #bcbcf1}[data-accent=purple][data-theme=dark]{--accent: #926bff;--accentMuted: #7057bb}[data-accent=pink]{--accent: #dba0c7;--accentMuted: #e3bcd7}[data-accent=pink][data-theme=dark]{--accent: #e454c4;--accentMuted: #a84892}img{-drag:none;-webkit-user-drag:none}.placeholder\:text-slate-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.placeholder\:text-slate-400::placeholder{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.first\:mt-0:first-child{margin-top:0}.first\:pl-2:first-child{padding-left:.5rem}.last\:mt-0:last-child{margin-top:0}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.hover\:bg-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:text-accent:hover{color:var(--accent)}.hover\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\:text-slate-50:hover{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.hover\:text-slate-900:hover{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:brightness-hover:hover{--tw-brightness: brightness(var(--brighnessHover));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\:bg-slate-100:focus{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-green-800:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 101 52 / var(--tw-ring-opacity))}.focus\:ring-slate-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(148 163 184 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:brightness-press:active{--tw-brightness: brightness(var(--brightnessPress));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-red-100{--tw-border-opacity: 1;border-color:rgb(254 226 226 / var(--tw-border-opacity))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:border-slate-50:hover{--tw-border-opacity: 1;border-color:rgb(248 250 252 / var(--tw-border-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:bg-red-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.aria-selected\:bg-slate-100[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.data-\[disabled\=\'true\'\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-white[data-state=active]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.data-\[state\=checked\]\:bg-slate-900[data-state=checked]{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.data-\[state\=open\]\:bg-slate-100[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.data-\[state\=open\]\:bg-transparent[data-state=open]{background-color:transparent}.data-\[state\=unchecked\]\:bg-slate-200[data-state=unchecked]{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.data-\[state\=active\]\:text-slate-900[data-state=active]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.data-\[disabled\=\'true\'\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y: -.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x: .25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x: -.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y: .25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.dark\:border-red-500:is([data-theme=dark] *){--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.dark\:border-red-600:is([data-theme=dark] *){--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.dark\:border-slate-600:is([data-theme=dark] *){--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.dark\:border-slate-700:is([data-theme=dark] *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity))}.dark\:border-slate-800:is([data-theme=dark] *){--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity))}.dark\:border-b-slate-700:is([data-theme=dark] *){--tw-border-opacity: 1;border-bottom-color:rgb(51 65 85 / var(--tw-border-opacity))}.dark\:bg-slate-50:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.dark\:bg-slate-700:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:bg-slate-800:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.dark\:bg-slate-900:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.dark\:text-slate-100:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}.dark\:text-slate-200:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.dark\:text-slate-300:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}.dark\:text-slate-400:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.dark\:text-slate-50:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:text-slate-900:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.dark\:text-white:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:bg-green-600:hover:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.dark\:hover\:bg-red-600:hover:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.dark\:hover\:bg-slate-700:hover:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-slate-800:hover:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.dark\:hover\:bg-transparent:hover:is([data-theme=dark] *){background-color:transparent}.dark\:hover\:text-slate-100:hover:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}.dark\:hover\:text-slate-50:hover:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.dark\:focus\:bg-slate-700:focus:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:focus\:ring-slate-400:focus:is([data-theme=dark] *){--tw-ring-opacity: 1;--tw-ring-color: rgb(148 163 184 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-slate-900:focus:is([data-theme=dark] *){--tw-ring-offset-color: #0f172a}.dark\:aria-selected\:bg-slate-700[aria-selected=true]:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:data-\[state\=active\]\:bg-slate-900[data-state=active]:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.dark\:data-\[state\=checked\]\:bg-slate-400[data-state=checked]:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.dark\:data-\[state\=open\]\:bg-slate-700[data-state=open]:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:data-\[state\=open\]\:bg-slate-800[data-state=open]:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.dark\:data-\[state\=open\]\:bg-transparent[data-state=open]:is([data-theme=dark] *){background-color:transparent}.dark\:data-\[state\=unchecked\]\:bg-slate-700[data-state=unchecked]:is([data-theme=dark] *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:data-\[state\=active\]\:text-slate-100[data-state=active]:is([data-theme=dark] *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:max-w-lg{max-width:32rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-center{align-items:center}.sm\:items-baseline{align-items:baseline}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:1rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-5{padding-top:1.25rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:zoom-in-90{--tw-enter-scale: .9}.sm\:slide-in-from-bottom-0{--tw-enter-translate-y: 0px}.sm\:last\:mt-4:last-child{margin-top:1rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:hidden{display:none}.md\:h-16{height:4rem}.md\:max-w-\[420px\]{max-width:420px}.md\:px-0{padding-left:0;padding-right:0}.md\:px-4{padding-left:1rem;padding-right:1rem}}@media (min-width: 1024px){.lg\:text-5xl{font-size:3rem;line-height:1}}.\[\&\:not\(\:first-child\)\]\:mt-6:not(:first-child){margin-top:1.5rem}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:pb-1\.5 [cmdk-group-heading]{padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-sm [cmdk-group-heading]{font-size:.875rem;line-height:1.25rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:font-semibold [cmdk-group-heading]{font-weight:600}.\[\&_\[cmdk-group-heading\]\]\:text-slate-500 [cmdk-group-heading]{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.\[\&_\[cmdk-group-heading\]\]\:text-slate-900 [cmdk-group-heading]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.\[\&_\[cmdk-group-heading\]\]\:dark\:text-slate-300:is([data-theme=dark] *) [cmdk-group-heading]{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group\]_\+\[cmdk-group\]\]\:pt-0 [cmdk-group]+[cmdk-group]{padding-top:0}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_\[dialog-overlay\]\]\:bg-red-100 [dialog-overlay]{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23999' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:#0006;color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}
diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/index.html b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/index.html
deleted file mode 100644
index eb93d2f..0000000
--- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/index.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Meshtastic Web
-
-
-
-
-
-
-
-
diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/mapbox-gl-DY02hNYD.js b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/mapbox-gl-DY02hNYD.js
deleted file mode 100644
index 62f9248..0000000
--- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/share/doc/meshtasticd/web/mapbox-gl-DY02hNYD.js
+++ /dev/null
@@ -1,2258 +0,0 @@
-import{g as Eb,c as Sb}from"./index-b9vwykds.js";function Mb(Ic,yp){for(var Qa=0;Qahn[dn]})}}}return Object.freeze(Object.defineProperty(Ic,Symbol.toStringTag,{value:"Module"}))}var Y0={exports:{}};(function(Ic,yp){var Qa={};(function(hn,dn){Ic.exports=dn()})(Sb,function(){var hn,dn,ks;function xp(s,pr){if(!hn)hn=pr;else if(!dn)dn=pr;else{var Mr="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+hn+")(sharedChunk); ("+dn+")(sharedChunk); self.onerror = null;",bt={};hn(bt),ks=pr(bt),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(ks.workerUrl=window.URL.createObjectURL(new Blob([Mr],{type:"text/javascript"})))}}xp(["exports"],function(s){var pr="3.6.0";let Mr;const bt={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(Mr==null){const t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{Mr=Qa.API_URL_REGEX!=null?new RegExp(Qa.API_URL_REGEX):t}catch{Mr=t}}return Mr},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!bt.API_URL)return null;try{const t=new URL(bt.API_URL);return t.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":t.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Zt(t){return bt.API_URL_REGEX.test(t)}function Di(t){return t.indexOf("mapbox:")===0}function Nr(t){return bt.API_CDN_URL_REGEX.test(t)}function zn(t){return bt.API_SPRITE_REGEX.test(t)}function to(t){return bt.API_STYLE_REGEX.test(t)&&!zn(t)}const Dn={create:"create",load:"load",fullLoad:"fullLoad"},el={mark(t){performance.mark(t)},measure(t,e,i){performance.measure(t,e,i)}};function Os(t){const e=t.name.split("?")[0];return Nr(e)&&e.includes("mapbox-gl.js")?"javascript":Nr(e)&&e.includes("mapbox-gl.css")?"css":function(i){return bt.API_FONTS_REGEX.test(i)}(e)?"fontRange":zn(e)?"sprite":to(e)?"style":function(i){return bt.API_TILEJSON_REGEX.test(i)}(e)?"tilejson":"other"}function Jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var di={},fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.setMatrixArrayType=function(t){fi.ARRAY_TYPE=Do=t},fi.toRadian=function(t){return t*tl},fi.equals=function(t,e){return Math.abs(t-e)<=Rn*Math.max(1,Math.abs(t),Math.abs(e))},fi.RANDOM=fi.ARRAY_TYPE=fi.EPSILON=void 0;var Rn=1e-6;fi.EPSILON=Rn;var Do=typeof Float32Array<"u"?Float32Array:Array;fi.ARRAY_TYPE=Do;var Ac=Math.random;fi.RANDOM=Ac;var tl=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var ni={};function Yt(t){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(t)}Object.defineProperty(ni,"__esModule",{value:!0}),ni.create=function(){var t=new Vr.ARRAY_TYPE(4);return Vr.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},ni.clone=function(t){var e=new Vr.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},ni.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},ni.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},ni.fromValues=function(t,e,i,n){var o=new Vr.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o},ni.set=function(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t},ni.transpose=function(t,e){if(t===e){var i=e[1];t[1]=e[2],t[2]=i}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},ni.invert=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=i*l-o*n;return c?(t[0]=l*(c=1/c),t[1]=-n*c,t[2]=-o*c,t[3]=i*c,t):null},ni.adjoint=function(t,e){var i=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=i,t},ni.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},ni.multiply=il,ni.rotate=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=Math.sin(i),f=Math.cos(i);return t[0]=n*f+l*d,t[1]=o*f+c*d,t[2]=n*-d+l*f,t[3]=o*-d+c*f,t},ni.scale=function(t,e,i){var n=e[1],o=e[2],l=e[3],c=i[0],d=i[1];return t[0]=e[0]*c,t[1]=n*c,t[2]=o*d,t[3]=l*d,t},ni.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=-i,t[3]=n,t},ni.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},ni.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},ni.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},ni.LDU=function(t,e,i,n){return t[2]=n[2]/n[0],i[0]=n[0],i[1]=n[1],i[3]=n[3]-t[2]*i[1],[t,e,i]},ni.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t},ni.subtract=rl,ni.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},ni.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=t[3],c=e[0],d=e[1],f=e[2],_=e[3];return Math.abs(i-c)<=Vr.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(n-d)<=Vr.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-f)<=Vr.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(l-_)<=Vr.EPSILON*Math.max(1,Math.abs(l),Math.abs(_))},ni.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t},ni.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t},ni.sub=ni.mul=void 0;var Vr=function(t,e){if(t&&t.__esModule)return t;if(t===null||Yt(t)!=="object"&&typeof t!="function")return{default:t};var i=Ro(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function Ro(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(Ro=function(n){return n?i:e})(t)}function il(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=i[0],f=i[1],_=i[2],y=i[3];return t[0]=n*d+l*f,t[1]=o*d+c*f,t[2]=n*_+l*y,t[3]=o*_+c*y,t}function rl(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t}ni.mul=il,ni.sub=rl;var Qt={};function Bs(t){return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.create=function(){var t=new Ir.ARRAY_TYPE(6);return Ir.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},Qt.clone=function(t){var e=new Ir.ARRAY_TYPE(6);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},Qt.copy=function(t,e){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},Qt.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},Qt.fromValues=function(t,e,i,n,o,l){var c=new Ir.ARRAY_TYPE(6);return c[0]=t,c[1]=e,c[2]=i,c[3]=n,c[4]=o,c[5]=l,c},Qt.set=function(t,e,i,n,o,l,c){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t[4]=l,t[5]=c,t},Qt.invert=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=i*l-n*o;return f?(t[0]=l*(f=1/f),t[1]=-n*f,t[2]=-o*f,t[3]=i*f,t[4]=(o*d-l*c)*f,t[5]=(n*c-i*d)*f,t):null},Qt.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},Qt.multiply=Fs,Qt.rotate=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=Math.sin(i),y=Math.cos(i);return t[0]=n*y+l*_,t[1]=o*y+c*_,t[2]=n*-_+l*y,t[3]=o*-_+c*y,t[4]=d,t[5]=f,t},Qt.scale=function(t,e,i){var n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=i[0],_=i[1];return t[0]=e[0]*f,t[1]=n*f,t[2]=o*_,t[3]=l*_,t[4]=c,t[5]=d,t},Qt.translate=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=i[0],y=i[1];return t[0]=n,t[1]=o,t[2]=l,t[3]=c,t[4]=n*_+l*y+d,t[5]=o*_+c*y+f,t},Qt.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=-i,t[3]=n,t[4]=0,t[5]=0,t},Qt.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},Qt.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},Qt.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},Qt.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},Qt.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},Qt.subtract=io,Qt.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},Qt.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t[4]=e[4]+i[4]*n,t[5]=e[5]+i[5]*n,t},Qt.exactEquals=function(t,e){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]},Qt.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=t[3],c=t[4],d=t[5],f=e[0],_=e[1],y=e[2],v=e[3],b=e[4],E=e[5];return Math.abs(i-f)<=Ir.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(n-_)<=Ir.EPSILON*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(o-y)<=Ir.EPSILON*Math.max(1,Math.abs(o),Math.abs(y))&&Math.abs(l-v)<=Ir.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-b)<=Ir.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(d-E)<=Ir.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))},Qt.sub=Qt.mul=void 0;var Ir=function(t,e){if(t&&t.__esModule)return t;if(t===null||Bs(t)!=="object"&&typeof t!="function")return{default:t};var i=nl(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function nl(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(nl=function(n){return n?i:e})(t)}function Fs(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=i[0],y=i[1],v=i[2],b=i[3],E=i[4],M=i[5];return t[0]=n*_+l*y,t[1]=o*_+c*y,t[2]=n*v+l*b,t[3]=o*v+c*b,t[4]=n*E+l*M+d,t[5]=o*E+c*M+f,t}function io(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}Qt.mul=Fs,Qt.sub=io;var Ht={};function Lo(t){return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lo(t)}Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.create=function(){var t=new Ui.ARRAY_TYPE(9);return Ui.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},Ht.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},Ht.clone=function(t){var e=new Ui.ARRAY_TYPE(9);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},Ht.copy=function(t,e){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},Ht.fromValues=function(t,e,i,n,o,l,c,d,f){var _=new Ui.ARRAY_TYPE(9);return _[0]=t,_[1]=e,_[2]=i,_[3]=n,_[4]=o,_[5]=l,_[6]=c,_[7]=d,_[8]=f,_},Ht.set=function(t,e,i,n,o,l,c,d,f,_){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t[4]=l,t[5]=c,t[6]=d,t[7]=f,t[8]=_,t},Ht.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},Ht.transpose=function(t,e){if(t===e){var i=e[1],n=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=i,t[5]=e[7],t[6]=n,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},Ht.invert=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=e[6],_=e[7],y=e[8],v=y*c-d*_,b=-y*l+d*f,E=_*l-c*f,M=i*v+n*b+o*E;return M?(t[0]=v*(M=1/M),t[1]=(-y*n+o*_)*M,t[2]=(d*n-o*c)*M,t[3]=b*M,t[4]=(y*i-o*f)*M,t[5]=(-d*i+o*l)*M,t[6]=E*M,t[7]=(-_*i+n*f)*M,t[8]=(c*i-n*l)*M,t):null},Ht.adjoint=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=e[6],_=e[7],y=e[8];return t[0]=c*y-d*_,t[1]=o*_-n*y,t[2]=n*d-o*c,t[3]=d*f-l*y,t[4]=i*y-o*f,t[5]=o*l-i*d,t[6]=l*_-c*f,t[7]=n*f-i*_,t[8]=i*c-n*l,t},Ht.determinant=function(t){var e=t[3],i=t[4],n=t[5],o=t[6],l=t[7],c=t[8];return t[0]*(c*i-n*l)+t[1]*(-c*e+n*o)+t[2]*(l*e-i*o)},Ht.multiply=sl,Ht.translate=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=i[0],E=i[1];return t[0]=n,t[1]=o,t[2]=l,t[3]=c,t[4]=d,t[5]=f,t[6]=b*n+E*c+_,t[7]=b*o+E*d+y,t[8]=b*l+E*f+v,t},Ht.rotate=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=Math.sin(i),E=Math.cos(i);return t[0]=E*n+b*c,t[1]=E*o+b*d,t[2]=E*l+b*f,t[3]=E*c-b*n,t[4]=E*d-b*o,t[5]=E*f-b*l,t[6]=_,t[7]=y,t[8]=v,t},Ht.scale=function(t,e,i){var n=i[0],o=i[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},Ht.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},Ht.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},Ht.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},Ht.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},Ht.fromQuat=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=i+i,d=n+n,f=o+o,_=i*c,y=n*c,v=n*d,b=o*c,E=o*d,M=o*f,A=l*c,C=l*d,D=l*f;return t[0]=1-v-M,t[3]=y-D,t[6]=b+C,t[1]=y+D,t[4]=1-_-M,t[7]=E-A,t[2]=b-C,t[5]=E+A,t[8]=1-_-v,t},Ht.normalFromMat4=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=e[6],_=e[7],y=e[8],v=e[9],b=e[10],E=e[11],M=e[12],A=e[13],C=e[14],D=e[15],V=i*d-n*c,N=i*f-o*c,U=i*_-l*c,H=n*f-o*d,X=n*_-l*d,Q=o*_-l*f,ae=y*A-v*M,de=y*C-b*M,ye=y*D-E*M,pe=v*C-b*A,we=v*D-E*A,De=b*D-E*C,Te=V*De-N*we+U*pe+H*ye-X*de+Q*ae;return Te?(t[0]=(d*De-f*we+_*pe)*(Te=1/Te),t[1]=(f*ye-c*De-_*de)*Te,t[2]=(c*we-d*ye+_*ae)*Te,t[3]=(o*we-n*De-l*pe)*Te,t[4]=(i*De-o*ye+l*de)*Te,t[5]=(n*ye-i*we-l*ae)*Te,t[6]=(A*Q-C*X+D*H)*Te,t[7]=(C*U-M*Q-D*N)*Te,t[8]=(M*X-A*U+D*V)*Te,t):null},Ht.projection=function(t,e,i){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/i,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},Ht.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},Ht.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},Ht.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t[6]=e[6]+i[6],t[7]=e[7]+i[7],t[8]=e[8]+i[8],t},Ht.subtract=al,Ht.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*i,t},Ht.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t[4]=e[4]+i[4]*n,t[5]=e[5]+i[5]*n,t[6]=e[6]+i[6]*n,t[7]=e[7]+i[7]*n,t[8]=e[8]+i[8]*n,t},Ht.exactEquals=function(t,e){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]},Ht.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=t[3],c=t[4],d=t[5],f=t[6],_=t[7],y=t[8],v=e[0],b=e[1],E=e[2],M=e[3],A=e[4],C=e[5],D=e[6],V=e[7],N=e[8];return Math.abs(i-v)<=Ui.EPSILON*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(n-b)<=Ui.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(o-E)<=Ui.EPSILON*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(l-M)<=Ui.EPSILON*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-A)<=Ui.EPSILON*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(d-C)<=Ui.EPSILON*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(f-D)<=Ui.EPSILON*Math.max(1,Math.abs(f),Math.abs(D))&&Math.abs(_-V)<=Ui.EPSILON*Math.max(1,Math.abs(_),Math.abs(V))&&Math.abs(y-N)<=Ui.EPSILON*Math.max(1,Math.abs(y),Math.abs(N))},Ht.sub=Ht.mul=void 0;var Ui=function(t,e){if(t&&t.__esModule)return t;if(t===null||Lo(t)!=="object"&&typeof t!="function")return{default:t};var i=ol(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function ol(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(ol=function(n){return n?i:e})(t)}function sl(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=i[0],E=i[1],M=i[2],A=i[3],C=i[4],D=i[5],V=i[6],N=i[7],U=i[8];return t[0]=b*n+E*c+M*_,t[1]=b*o+E*d+M*y,t[2]=b*l+E*f+M*v,t[3]=A*n+C*c+D*_,t[4]=A*o+C*d+D*y,t[5]=A*l+C*f+D*v,t[6]=V*n+N*c+U*_,t[7]=V*o+N*d+U*y,t[8]=V*l+N*f+U*v,t}function al(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t[6]=e[6]-i[6],t[7]=e[7]-i[7],t[8]=e[8]-i[8],t}Ht.mul=sl,Ht.sub=al;var dt={};function ko(t){return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ko(t)}Object.defineProperty(dt,"__esModule",{value:!0}),dt.create=function(){var t=new ai.ARRAY_TYPE(16);return ai.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},dt.clone=function(t){var e=new ai.ARRAY_TYPE(16);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},dt.copy=function(t,e){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},dt.fromValues=function(t,e,i,n,o,l,c,d,f,_,y,v,b,E,M,A){var C=new ai.ARRAY_TYPE(16);return C[0]=t,C[1]=e,C[2]=i,C[3]=n,C[4]=o,C[5]=l,C[6]=c,C[7]=d,C[8]=f,C[9]=_,C[10]=y,C[11]=v,C[12]=b,C[13]=E,C[14]=M,C[15]=A,C},dt.set=function(t,e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t[4]=l,t[5]=c,t[6]=d,t[7]=f,t[8]=_,t[9]=y,t[10]=v,t[11]=b,t[12]=E,t[13]=M,t[14]=A,t[15]=C,t},dt.identity=cl,dt.transpose=function(t,e){if(t===e){var i=e[1],n=e[2],o=e[3],l=e[6],c=e[7],d=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=i,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=l,t[11]=e[14],t[12]=o,t[13]=c,t[14]=d}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},dt.invert=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=e[6],_=e[7],y=e[8],v=e[9],b=e[10],E=e[11],M=e[12],A=e[13],C=e[14],D=e[15],V=i*d-n*c,N=i*f-o*c,U=i*_-l*c,H=n*f-o*d,X=n*_-l*d,Q=o*_-l*f,ae=y*A-v*M,de=y*C-b*M,ye=y*D-E*M,pe=v*C-b*A,we=v*D-E*A,De=b*D-E*C,Te=V*De-N*we+U*pe+H*ye-X*de+Q*ae;return Te?(t[0]=(d*De-f*we+_*pe)*(Te=1/Te),t[1]=(o*we-n*De-l*pe)*Te,t[2]=(A*Q-C*X+D*H)*Te,t[3]=(b*X-v*Q-E*H)*Te,t[4]=(f*ye-c*De-_*de)*Te,t[5]=(i*De-o*ye+l*de)*Te,t[6]=(C*U-M*Q-D*N)*Te,t[7]=(y*Q-b*U+E*N)*Te,t[8]=(c*we-d*ye+_*ae)*Te,t[9]=(n*ye-i*we-l*ae)*Te,t[10]=(M*X-A*U+D*V)*Te,t[11]=(v*U-y*X-E*V)*Te,t[12]=(d*de-c*pe-f*ae)*Te,t[13]=(i*pe-n*de+o*ae)*Te,t[14]=(A*N-M*H-C*V)*Te,t[15]=(y*H-v*N+b*V)*Te,t):null},dt.adjoint=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=e[4],d=e[5],f=e[6],_=e[7],y=e[8],v=e[9],b=e[10],E=e[11],M=e[12],A=e[13],C=e[14],D=e[15];return t[0]=d*(b*D-E*C)-v*(f*D-_*C)+A*(f*E-_*b),t[1]=-(n*(b*D-E*C)-v*(o*D-l*C)+A*(o*E-l*b)),t[2]=n*(f*D-_*C)-d*(o*D-l*C)+A*(o*_-l*f),t[3]=-(n*(f*E-_*b)-d*(o*E-l*b)+v*(o*_-l*f)),t[4]=-(c*(b*D-E*C)-y*(f*D-_*C)+M*(f*E-_*b)),t[5]=i*(b*D-E*C)-y*(o*D-l*C)+M*(o*E-l*b),t[6]=-(i*(f*D-_*C)-c*(o*D-l*C)+M*(o*_-l*f)),t[7]=i*(f*E-_*b)-c*(o*E-l*b)+y*(o*_-l*f),t[8]=c*(v*D-E*A)-y*(d*D-_*A)+M*(d*E-_*v),t[9]=-(i*(v*D-E*A)-y*(n*D-l*A)+M*(n*E-l*v)),t[10]=i*(d*D-_*A)-c*(n*D-l*A)+M*(n*_-l*d),t[11]=-(i*(d*E-_*v)-c*(n*E-l*v)+y*(n*_-l*d)),t[12]=-(c*(v*C-b*A)-y*(d*C-f*A)+M*(d*b-f*v)),t[13]=i*(v*C-b*A)-y*(n*C-o*A)+M*(n*b-o*v),t[14]=-(i*(d*C-f*A)-c*(n*C-o*A)+M*(n*f-o*d)),t[15]=i*(d*b-f*v)-c*(n*b-o*v)+y*(n*f-o*d),t},dt.determinant=function(t){var e=t[0],i=t[1],n=t[2],o=t[3],l=t[4],c=t[5],d=t[6],f=t[7],_=t[8],y=t[9],v=t[10],b=t[11],E=t[12],M=t[13],A=t[14],C=t[15];return(e*c-i*l)*(v*C-b*A)-(e*d-n*l)*(y*C-b*M)+(e*f-o*l)*(y*A-v*M)+(i*d-n*c)*(_*C-b*E)-(i*f-o*c)*(_*A-v*E)+(n*f-o*d)*(_*M-y*E)},dt.multiply=ul,dt.translate=function(t,e,i){var n,o,l,c,d,f,_,y,v,b,E,M,A=i[0],C=i[1],D=i[2];return e===t?(t[12]=e[0]*A+e[4]*C+e[8]*D+e[12],t[13]=e[1]*A+e[5]*C+e[9]*D+e[13],t[14]=e[2]*A+e[6]*C+e[10]*D+e[14],t[15]=e[3]*A+e[7]*C+e[11]*D+e[15]):(o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=e[9],E=e[10],M=e[11],t[0]=n=e[0],t[1]=o,t[2]=l,t[3]=c,t[4]=d,t[5]=f,t[6]=_,t[7]=y,t[8]=v,t[9]=b,t[10]=E,t[11]=M,t[12]=n*A+d*C+v*D+e[12],t[13]=o*A+f*C+b*D+e[13],t[14]=l*A+_*C+E*D+e[14],t[15]=c*A+y*C+M*D+e[15]),t},dt.scale=function(t,e,i){var n=i[0],o=i[1],l=i[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*l,t[9]=e[9]*l,t[10]=e[10]*l,t[11]=e[11]*l,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},dt.rotate=function(t,e,i,n){var o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H,X,Q,ae,de,ye,pe,we=n[0],De=n[1],Te=n[2],ke=Math.hypot(we,De,Te);return ke0?(i[0]=2*(d*c+y*n+f*l-_*o)/v,i[1]=2*(f*c+y*o+_*n-d*l)/v,i[2]=2*(_*c+y*l+d*o-f*n)/v):(i[0]=2*(d*c+y*n+f*l-_*o),i[1]=2*(f*c+y*o+_*n-d*l),i[2]=2*(_*c+y*l+d*o-f*n)),Ns(t,e,i),t},dt.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},dt.getScaling=Oo,dt.getRotation=function(t,e){var i=new ai.ARRAY_TYPE(3);Oo(i,e);var n=1/i[0],o=1/i[1],l=1/i[2],c=e[0]*n,d=e[1]*o,f=e[2]*l,_=e[4]*n,y=e[5]*o,v=e[6]*l,b=e[8]*n,E=e[9]*o,M=e[10]*l,A=c+y+M,C=0;return A>0?(C=2*Math.sqrt(A+1),t[3]=.25*C,t[0]=(v-E)/C,t[1]=(b-f)/C,t[2]=(d-_)/C):c>y&&c>M?(C=2*Math.sqrt(1+c-y-M),t[3]=(v-E)/C,t[0]=.25*C,t[1]=(d+_)/C,t[2]=(b+f)/C):y>M?(C=2*Math.sqrt(1+y-c-M),t[3]=(b-f)/C,t[0]=(d+_)/C,t[1]=.25*C,t[2]=(v+E)/C):(C=2*Math.sqrt(1+M-c-y),t[3]=(d-_)/C,t[0]=(b+f)/C,t[1]=(v+E)/C,t[2]=.25*C),t},dt.fromRotationTranslationScale=function(t,e,i,n){var o=e[0],l=e[1],c=e[2],d=e[3],f=o+o,_=l+l,y=c+c,v=o*f,b=o*_,E=o*y,M=l*_,A=l*y,C=c*y,D=d*f,V=d*_,N=d*y,U=n[0],H=n[1],X=n[2];return t[0]=(1-(M+C))*U,t[1]=(b+N)*U,t[2]=(E-V)*U,t[3]=0,t[4]=(b-N)*H,t[5]=(1-(v+C))*H,t[6]=(A+D)*H,t[7]=0,t[8]=(E+V)*X,t[9]=(A-D)*X,t[10]=(1-(v+M))*X,t[11]=0,t[12]=i[0],t[13]=i[1],t[14]=i[2],t[15]=1,t},dt.fromRotationTranslationScaleOrigin=function(t,e,i,n,o){var l=e[0],c=e[1],d=e[2],f=e[3],_=l+l,y=c+c,v=d+d,b=l*_,E=l*y,M=l*v,A=c*y,C=c*v,D=d*v,V=f*_,N=f*y,U=f*v,H=n[0],X=n[1],Q=n[2],ae=o[0],de=o[1],ye=o[2],pe=(1-(A+D))*H,we=(E+U)*H,De=(M-N)*H,Te=(E-U)*X,ke=(1-(b+D))*X,be=(C+V)*X,Ie=(M+N)*Q,Be=(C-V)*Q,Ee=(1-(b+A))*Q;return t[0]=pe,t[1]=we,t[2]=De,t[3]=0,t[4]=Te,t[5]=ke,t[6]=be,t[7]=0,t[8]=Ie,t[9]=Be,t[10]=Ee,t[11]=0,t[12]=i[0]+ae-(pe*ae+Te*de+Ie*ye),t[13]=i[1]+de-(we*ae+ke*de+Be*ye),t[14]=i[2]+ye-(De*ae+be*de+Ee*ye),t[15]=1,t},dt.fromQuat=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=i+i,d=n+n,f=o+o,_=i*c,y=n*c,v=n*d,b=o*c,E=o*d,M=o*f,A=l*c,C=l*d,D=l*f;return t[0]=1-v-M,t[1]=y+D,t[2]=b-C,t[3]=0,t[4]=y-D,t[5]=1-_-M,t[6]=E+A,t[7]=0,t[8]=b+C,t[9]=E-A,t[10]=1-_-v,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},dt.frustum=function(t,e,i,n,o,l,c){var d=1/(i-e),f=1/(o-n),_=1/(l-c);return t[0]=2*l*d,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*l*f,t[6]=0,t[7]=0,t[8]=(i+e)*d,t[9]=(o+n)*f,t[10]=(c+l)*_,t[11]=-1,t[12]=0,t[13]=0,t[14]=c*l*2*_,t[15]=0,t},dt.perspectiveNO=Ur,dt.perspectiveZO=function(t,e,i,n,o){var l,c=1/Math.tan(e/2);return t[0]=c/i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,o!=null&&o!==1/0?(t[10]=o*(l=1/(n-o)),t[14]=o*n*l):(t[10]=-1,t[14]=-n),t},dt.perspectiveFromFieldOfView=function(t,e,i,n){var o=Math.tan(e.upDegrees*Math.PI/180),l=Math.tan(e.downDegrees*Math.PI/180),c=Math.tan(e.leftDegrees*Math.PI/180),d=Math.tan(e.rightDegrees*Math.PI/180),f=2/(c+d),_=2/(o+l);return t[0]=f,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=_,t[6]=0,t[7]=0,t[8]=-(c-d)*f*.5,t[9]=(o-l)*_*.5,t[10]=n/(i-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*i/(i-n),t[15]=0,t},dt.orthoNO=jr,dt.orthoZO=function(t,e,i,n,o,l,c){var d=1/(e-i),f=1/(n-o),_=1/(l-c);return t[0]=-2*d,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*f,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=_,t[11]=0,t[12]=(e+i)*d,t[13]=(o+n)*f,t[14]=l*_,t[15]=1,t},dt.lookAt=function(t,e,i,n){var o,l,c,d,f,_,y,v,b,E,M=e[0],A=e[1],C=e[2],D=n[0],V=n[1],N=n[2],U=i[0],H=i[1],X=i[2];return Math.abs(M-U)0&&(y*=E=1/Math.sqrt(E),v*=E,b*=E);var M=f*b-_*v,A=_*y-d*b,C=d*v-f*y;return(E=M*M+A*A+C*C)>0&&(M*=E=1/Math.sqrt(E),A*=E,C*=E),t[0]=M,t[1]=A,t[2]=C,t[3]=0,t[4]=v*C-b*A,t[5]=b*M-y*C,t[6]=y*A-v*M,t[7]=0,t[8]=y,t[9]=v,t[10]=b,t[11]=0,t[12]=o,t[13]=l,t[14]=c,t[15]=1,t},dt.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},dt.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},dt.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t[6]=e[6]+i[6],t[7]=e[7]+i[7],t[8]=e[8]+i[8],t[9]=e[9]+i[9],t[10]=e[10]+i[10],t[11]=e[11]+i[11],t[12]=e[12]+i[12],t[13]=e[13]+i[13],t[14]=e[14]+i[14],t[15]=e[15]+i[15],t},dt.subtract=Vs,dt.multiplyScalar=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12]*i,t[13]=e[13]*i,t[14]=e[14]*i,t[15]=e[15]*i,t},dt.multiplyScalarAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t[3]=e[3]+i[3]*n,t[4]=e[4]+i[4]*n,t[5]=e[5]+i[5]*n,t[6]=e[6]+i[6]*n,t[7]=e[7]+i[7]*n,t[8]=e[8]+i[8]*n,t[9]=e[9]+i[9]*n,t[10]=e[10]+i[10]*n,t[11]=e[11]+i[11]*n,t[12]=e[12]+i[12]*n,t[13]=e[13]+i[13]*n,t[14]=e[14]+i[14]*n,t[15]=e[15]+i[15]*n,t},dt.exactEquals=function(t,e){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]},dt.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=t[3],c=t[4],d=t[5],f=t[6],_=t[7],y=t[8],v=t[9],b=t[10],E=t[11],M=t[12],A=t[13],C=t[14],D=t[15],V=e[0],N=e[1],U=e[2],H=e[3],X=e[4],Q=e[5],ae=e[6],de=e[7],ye=e[8],pe=e[9],we=e[10],De=e[11],Te=e[12],ke=e[13],be=e[14],Ie=e[15];return Math.abs(i-V)<=ai.EPSILON*Math.max(1,Math.abs(i),Math.abs(V))&&Math.abs(n-N)<=ai.EPSILON*Math.max(1,Math.abs(n),Math.abs(N))&&Math.abs(o-U)<=ai.EPSILON*Math.max(1,Math.abs(o),Math.abs(U))&&Math.abs(l-H)<=ai.EPSILON*Math.max(1,Math.abs(l),Math.abs(H))&&Math.abs(c-X)<=ai.EPSILON*Math.max(1,Math.abs(c),Math.abs(X))&&Math.abs(d-Q)<=ai.EPSILON*Math.max(1,Math.abs(d),Math.abs(Q))&&Math.abs(f-ae)<=ai.EPSILON*Math.max(1,Math.abs(f),Math.abs(ae))&&Math.abs(_-de)<=ai.EPSILON*Math.max(1,Math.abs(_),Math.abs(de))&&Math.abs(y-ye)<=ai.EPSILON*Math.max(1,Math.abs(y),Math.abs(ye))&&Math.abs(v-pe)<=ai.EPSILON*Math.max(1,Math.abs(v),Math.abs(pe))&&Math.abs(b-we)<=ai.EPSILON*Math.max(1,Math.abs(b),Math.abs(we))&&Math.abs(E-De)<=ai.EPSILON*Math.max(1,Math.abs(E),Math.abs(De))&&Math.abs(M-Te)<=ai.EPSILON*Math.max(1,Math.abs(M),Math.abs(Te))&&Math.abs(A-ke)<=ai.EPSILON*Math.max(1,Math.abs(A),Math.abs(ke))&&Math.abs(C-be)<=ai.EPSILON*Math.max(1,Math.abs(C),Math.abs(be))&&Math.abs(D-Ie)<=ai.EPSILON*Math.max(1,Math.abs(D),Math.abs(Ie))},dt.sub=dt.mul=dt.ortho=dt.perspective=void 0;var ai=function(t,e){if(t&&t.__esModule)return t;if(t===null||ko(t)!=="object"&&typeof t!="function")return{default:t};var i=ll(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function ll(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(ll=function(n){return n?i:e})(t)}function cl(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ul(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=e[8],b=e[9],E=e[10],M=e[11],A=e[12],C=e[13],D=e[14],V=e[15],N=i[0],U=i[1],H=i[2],X=i[3];return t[0]=N*n+U*d+H*v+X*A,t[1]=N*o+U*f+H*b+X*C,t[2]=N*l+U*_+H*E+X*D,t[3]=N*c+U*y+H*M+X*V,t[4]=(N=i[4])*n+(U=i[5])*d+(H=i[6])*v+(X=i[7])*A,t[5]=N*o+U*f+H*b+X*C,t[6]=N*l+U*_+H*E+X*D,t[7]=N*c+U*y+H*M+X*V,t[8]=(N=i[8])*n+(U=i[9])*d+(H=i[10])*v+(X=i[11])*A,t[9]=N*o+U*f+H*b+X*C,t[10]=N*l+U*_+H*E+X*D,t[11]=N*c+U*y+H*M+X*V,t[12]=(N=i[12])*n+(U=i[13])*d+(H=i[14])*v+(X=i[15])*A,t[13]=N*o+U*f+H*b+X*C,t[14]=N*l+U*_+H*E+X*D,t[15]=N*c+U*y+H*M+X*V,t}function Ns(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=n+n,f=o+o,_=l+l,y=n*d,v=n*f,b=n*_,E=o*f,M=o*_,A=l*_,C=c*d,D=c*f,V=c*_;return t[0]=1-(E+A),t[1]=v+V,t[2]=b-D,t[3]=0,t[4]=v-V,t[5]=1-(y+A),t[6]=M+C,t[7]=0,t[8]=b+D,t[9]=M-C,t[10]=1-(y+E),t[11]=0,t[12]=i[0],t[13]=i[1],t[14]=i[2],t[15]=1,t}function Oo(t,e){var i=e[4],n=e[5],o=e[6],l=e[8],c=e[9],d=e[10];return t[0]=Math.hypot(e[0],e[1],e[2]),t[1]=Math.hypot(i,n,o),t[2]=Math.hypot(l,c,d),t}function Ur(t,e,i,n,o){var l,c=1/Math.tan(e/2);return t[0]=c/i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,o!=null&&o!==1/0?(t[10]=(o+n)*(l=1/(n-o)),t[14]=2*o*n*l):(t[10]=-1,t[14]=-2*n),t}function jr(t,e,i,n,o,l,c){var d=1/(e-i),f=1/(n-o),_=1/(l-c);return t[0]=-2*d,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*f,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*_,t[11]=0,t[12]=(e+i)*d,t[13]=(o+n)*f,t[14]=(c+l)*_,t[15]=1,t}function Vs(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t[6]=e[6]-i[6],t[7]=e[7]-i[7],t[8]=e[8]-i[8],t[9]=e[9]-i[9],t[10]=e[10]-i[10],t[11]=e[11]-i[11],t[12]=e[12]-i[12],t[13]=e[13]-i[13],t[14]=e[14]-i[14],t[15]=e[15]-i[15],t}dt.perspective=Ur,dt.ortho=jr,dt.mul=ul,dt.sub=Vs;var lt={},pt={};function Bo(t){return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(t)}Object.defineProperty(pt,"__esModule",{value:!0}),pt.create=hl,pt.clone=function(t){var e=new lr.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},pt.length=ro,pt.fromValues=function(t,e,i){var n=new lr.ARRAY_TYPE(3);return n[0]=t,n[1]=e,n[2]=i,n},pt.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},pt.set=function(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t},pt.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t},pt.subtract=dl,pt.multiply=Ln,pt.divide=kn,pt.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},pt.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},pt.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t},pt.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t},pt.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},pt.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t},pt.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t},pt.distance=Fo,pt.squaredDistance=Us,pt.squaredLength=No,pt.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},pt.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},pt.normalize=function(t,e){var i=e[0],n=e[1],o=e[2],l=i*i+n*n+o*o;return l>0&&(l=1/Math.sqrt(l)),t[0]=e[0]*l,t[1]=e[1]*l,t[2]=e[2]*l,t},pt.dot=Vo,pt.cross=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=i[0],d=i[1],f=i[2];return t[0]=o*f-l*d,t[1]=l*c-n*f,t[2]=n*d-o*c,t},pt.lerp=function(t,e,i,n){var o=e[0],l=e[1],c=e[2];return t[0]=o+n*(i[0]-o),t[1]=l+n*(i[1]-l),t[2]=c+n*(i[2]-c),t},pt.hermite=function(t,e,i,n,o,l){var c=l*l,d=c*(2*l-3)+1,f=c*(l-2)+l,_=c*(l-1),y=c*(3-2*l);return t[0]=e[0]*d+i[0]*f+n[0]*_+o[0]*y,t[1]=e[1]*d+i[1]*f+n[1]*_+o[1]*y,t[2]=e[2]*d+i[2]*f+n[2]*_+o[2]*y,t},pt.bezier=function(t,e,i,n,o,l){var c=1-l,d=c*c,f=l*l,_=d*c,y=3*l*d,v=3*f*c,b=f*l;return t[0]=e[0]*_+i[0]*y+n[0]*v+o[0]*b,t[1]=e[1]*_+i[1]*y+n[1]*v+o[1]*b,t[2]=e[2]*_+i[2]*y+n[2]*v+o[2]*b,t},pt.random=function(t,e){e=e||1;var i=2*lr.RANDOM()*Math.PI,n=2*lr.RANDOM()-1,o=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(i)*o,t[1]=Math.sin(i)*o,t[2]=n*e,t},pt.transformMat4=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=i[3]*n+i[7]*o+i[11]*l+i[15];return t[0]=(i[0]*n+i[4]*o+i[8]*l+i[12])/(c=c||1),t[1]=(i[1]*n+i[5]*o+i[9]*l+i[13])/c,t[2]=(i[2]*n+i[6]*o+i[10]*l+i[14])/c,t},pt.transformMat3=function(t,e,i){var n=e[0],o=e[1],l=e[2];return t[0]=n*i[0]+o*i[3]+l*i[6],t[1]=n*i[1]+o*i[4]+l*i[7],t[2]=n*i[2]+o*i[5]+l*i[8],t},pt.transformQuat=function(t,e,i){var n=i[0],o=i[1],l=i[2],c=e[0],d=e[1],f=e[2],_=o*f-l*d,y=l*c-n*f,v=n*d-o*c,b=o*v-l*y,E=l*_-n*v,M=n*y-o*_,A=2*i[3];return y*=A,v*=A,E*=2,M*=2,t[0]=c+(_*=A)+(b*=2),t[1]=d+y+E,t[2]=f+v+M,t},pt.rotateX=function(t,e,i,n){var o=[],l=[];return o[0]=e[0]-i[0],o[1]=e[1]-i[1],o[2]=e[2]-i[2],l[0]=o[0],l[1]=o[1]*Math.cos(n)-o[2]*Math.sin(n),l[2]=o[1]*Math.sin(n)+o[2]*Math.cos(n),t[0]=l[0]+i[0],t[1]=l[1]+i[1],t[2]=l[2]+i[2],t},pt.rotateY=function(t,e,i,n){var o=[],l=[];return o[0]=e[0]-i[0],o[1]=e[1]-i[1],o[2]=e[2]-i[2],l[0]=o[2]*Math.sin(n)+o[0]*Math.cos(n),l[1]=o[1],l[2]=o[2]*Math.cos(n)-o[0]*Math.sin(n),t[0]=l[0]+i[0],t[1]=l[1]+i[1],t[2]=l[2]+i[2],t},pt.rotateZ=function(t,e,i,n){var o=[],l=[];return o[0]=e[0]-i[0],o[1]=e[1]-i[1],o[2]=e[2]-i[2],l[0]=o[0]*Math.cos(n)-o[1]*Math.sin(n),l[1]=o[0]*Math.sin(n)+o[1]*Math.cos(n),l[2]=o[2],t[0]=l[0]+i[0],t[1]=l[1]+i[1],t[2]=l[2]+i[2],t},pt.angle=function(t,e){var i=t[0],n=t[1],o=t[2],l=e[0],c=e[1],d=e[2],f=Math.sqrt(i*i+n*n+o*o)*Math.sqrt(l*l+c*c+d*d),_=f&&Vo(t,e)/f;return Math.acos(Math.min(Math.max(_,-1),1))},pt.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},pt.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},pt.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},pt.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=e[0],c=e[1],d=e[2];return Math.abs(i-l)<=lr.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(n-c)<=lr.EPSILON*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(o-d)<=lr.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))},pt.forEach=pt.sqrLen=pt.len=pt.sqrDist=pt.dist=pt.div=pt.mul=pt.sub=void 0;var lr=function(t,e){if(t&&t.__esModule)return t;if(t===null||Bo(t)!=="object"&&typeof t!="function")return{default:t};var i=pn(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function pn(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(pn=function(n){return n?i:e})(t)}function hl(){var t=new lr.ARRAY_TYPE(3);return lr.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function ro(t){return Math.hypot(t[0],t[1],t[2])}function dl(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function Ln(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function kn(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function Fo(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])}function Us(t,e){var i=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return i*i+n*n+o*o}function No(t){var e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function Vo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}pt.sub=dl,pt.mul=Ln,pt.div=kn,pt.dist=Fo,pt.sqrDist=Us,pt.len=ro,pt.sqrLen=No;var Ar,or=(Ar=hl(),function(t,e,i,n,o,l){var c,d;for(e||(e=3),i||(i=0),d=n?Math.min(n*e+i,t.length):t.length,c=i;c0&&(c=1/Math.sqrt(c)),t[0]=i*c,t[1]=n*c,t[2]=o*c,t[3]=l*c,t},ct.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},ct.cross=function(t,e,i,n){var o=i[0]*n[1]-i[1]*n[0],l=i[0]*n[2]-i[2]*n[0],c=i[0]*n[3]-i[3]*n[0],d=i[1]*n[2]-i[2]*n[1],f=i[1]*n[3]-i[3]*n[1],_=i[2]*n[3]-i[3]*n[2],y=e[0],v=e[1],b=e[2],E=e[3];return t[0]=v*_-b*f+E*d,t[1]=-y*_+b*c-E*l,t[2]=y*f-v*c+E*o,t[3]=-y*d+v*l-b*o,t},ct.lerp=function(t,e,i,n){var o=e[0],l=e[1],c=e[2],d=e[3];return t[0]=o+n*(i[0]-o),t[1]=l+n*(i[1]-l),t[2]=c+n*(i[2]-c),t[3]=d+n*(i[3]-d),t},ct.random=function(t,e){var i,n,o,l,c,d;e=e||1;do c=(i=2*er.RANDOM()-1)*i+(n=2*er.RANDOM()-1)*n;while(c>=1);do d=(o=2*er.RANDOM()-1)*o+(l=2*er.RANDOM()-1)*l;while(d>=1);var f=Math.sqrt((1-c)/d);return t[0]=e*i,t[1]=e*n,t[2]=e*o*f,t[3]=e*l*f,t},ct.transformMat4=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3];return t[0]=i[0]*n+i[4]*o+i[8]*l+i[12]*c,t[1]=i[1]*n+i[5]*o+i[9]*l+i[13]*c,t[2]=i[2]*n+i[6]*o+i[10]*l+i[14]*c,t[3]=i[3]*n+i[7]*o+i[11]*l+i[15]*c,t},ct.transformQuat=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=i[0],d=i[1],f=i[2],_=i[3],y=_*n+d*l-f*o,v=_*o+f*n-c*l,b=_*l+c*o-d*n,E=-c*n-d*o-f*l;return t[0]=y*_+E*-c+v*-f-b*-d,t[1]=v*_+E*-d+b*-c-y*-f,t[2]=b*_+E*-f+y*-d-v*-c,t[3]=e[3],t},ct.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},ct.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},ct.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},ct.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=t[3],c=e[0],d=e[1],f=e[2],_=e[3];return Math.abs(i-c)<=er.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(n-d)<=er.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-f)<=er.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(l-_)<=er.EPSILON*Math.max(1,Math.abs(l),Math.abs(_))},ct.forEach=ct.sqrLen=ct.len=ct.sqrDist=ct.dist=ct.div=ct.mul=ct.sub=void 0;var er=function(t,e){if(t&&t.__esModule)return t;if(t===null||Uo(t)!=="object"&&typeof t!="function")return{default:t};var i=Gr(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function Gr(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(Gr=function(n){return n?i:e})(t)}function no(){var t=new er.ARRAY_TYPE(4);return er.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Cr(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t}function jo(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t[3]=e[3]*i[3],t}function js(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t[3]=e[3]/i[3],t}function Go(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2],e[3]-t[3])}function oo(t,e){var i=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2],l=e[3]-t[3];return i*i+n*n+o*o+l*l}function $o(t){return Math.hypot(t[0],t[1],t[2],t[3])}function qo(t){var e=t[0],i=t[1],n=t[2],o=t[3];return e*e+i*i+n*n+o*o}ct.sub=Cr,ct.mul=jo,ct.div=js,ct.dist=Go,ct.sqrDist=oo,ct.len=$o,ct.sqrLen=qo;var On=function(){var t=no();return function(e,i,n,o,l,c){var d,f;for(i||(i=4),n||(n=0),f=o?Math.min(o*i+n,e.length):e.length,d=n;dPr.EPSILON?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),i},lt.getAngle=function(t,e){var i=K(t,e);return Math.acos(2*i*i-1)},lt.multiply=$s,lt.rotateX=function(t,e,i){i*=.5;var n=e[0],o=e[1],l=e[2],c=e[3],d=Math.sin(i),f=Math.cos(i);return t[0]=n*f+c*d,t[1]=o*f+l*d,t[2]=l*f-o*d,t[3]=c*f-n*d,t},lt.rotateY=function(t,e,i){i*=.5;var n=e[0],o=e[1],l=e[2],c=e[3],d=Math.sin(i),f=Math.cos(i);return t[0]=n*f-l*d,t[1]=o*f+c*d,t[2]=l*f+n*d,t[3]=c*f-o*d,t},lt.rotateZ=function(t,e,i){i*=.5;var n=e[0],o=e[1],l=e[2],c=e[3],d=Math.sin(i),f=Math.cos(i);return t[0]=n*f+o*d,t[1]=o*f-n*d,t[2]=l*f+c*d,t[3]=c*f-l*d,t},lt.calculateW=function(t,e){var i=e[0],n=e[1],o=e[2];return t[0]=i,t[1]=n,t[2]=o,t[3]=Math.sqrt(Math.abs(1-i*i-n*n-o*o)),t},lt.exp=oe,lt.ln=R,lt.pow=function(t,e,i){return R(t,e),te(t,t,i),oe(t,t),t},lt.slerp=F,lt.random=function(t){var e=Pr.RANDOM(),i=Pr.RANDOM(),n=Pr.RANDOM(),o=Math.sqrt(1-e),l=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*i),t[1]=o*Math.cos(2*Math.PI*i),t[2]=l*Math.sin(2*Math.PI*n),t[3]=l*Math.cos(2*Math.PI*n),t},lt.invert=function(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=i*i+n*n+o*o+l*l,d=c?1/c:0;return t[0]=-i*d,t[1]=-n*d,t[2]=-o*d,t[3]=l*d,t},lt.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},lt.fromMat3=q,lt.fromEuler=function(t,e,i,n){var o=.5*Math.PI/180;e*=o,i*=o,n*=o;var l=Math.sin(e),c=Math.cos(e),d=Math.sin(i),f=Math.cos(i),_=Math.sin(n),y=Math.cos(n);return t[0]=l*f*y-c*d*_,t[1]=c*d*y+l*f*_,t[2]=c*f*_-l*d*y,t[3]=c*f*y+l*d*_,t},lt.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},lt.setAxes=lt.sqlerp=lt.rotationTo=lt.equals=lt.exactEquals=lt.normalize=lt.sqrLen=lt.squaredLength=lt.len=lt.length=lt.lerp=lt.dot=lt.scale=lt.mul=lt.add=lt.set=lt.copy=lt.fromValues=lt.clone=void 0;var Pr=so(fi),Cc=so(Ht),zr=so(pt),Bi=so(ct);function Gs(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(Gs=function(n){return n?i:e})(t)}function so(t,e){if(t&&t.__esModule)return t;if(t===null||Zo(t)!=="object"&&typeof t!="function")return{default:t};var i=Gs(e);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}function Wo(){var t=new Pr.ARRAY_TYPE(4);return Pr.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Mi(t,e,i){i*=.5;var n=Math.sin(i);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(i),t}function $s(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=i[0],f=i[1],_=i[2],y=i[3];return t[0]=n*y+c*d+o*_-l*f,t[1]=o*y+c*f+l*d-n*_,t[2]=l*y+c*_+n*f-o*d,t[3]=c*y-n*d-o*f-l*_,t}function oe(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=Math.sqrt(i*i+n*n+o*o),d=Math.exp(l),f=c>0?d*Math.sin(c)/c:0;return t[0]=i*f,t[1]=n*f,t[2]=o*f,t[3]=d*Math.cos(c),t}function R(t,e){var i=e[0],n=e[1],o=e[2],l=e[3],c=Math.sqrt(i*i+n*n+o*o),d=c>0?Math.atan2(c,l)/c:0;return t[0]=i*d,t[1]=n*d,t[2]=o*d,t[3]=.5*Math.log(i*i+n*n+o*o+l*l),t}function F(t,e,i,n){var o,l,c,d,f,_=e[0],y=e[1],v=e[2],b=e[3],E=i[0],M=i[1],A=i[2],C=i[3];return(l=_*E+y*M+v*A+b*C)<0&&(l=-l,E=-E,M=-M,A=-A,C=-C),1-l>Pr.EPSILON?(o=Math.acos(l),c=Math.sin(o),d=Math.sin((1-n)*o)/c,f=Math.sin(n*o)/c):(d=1-n,f=n),t[0]=d*_+f*E,t[1]=d*y+f*M,t[2]=d*v+f*A,t[3]=d*b+f*C,t}function q(t,e){var i,n=e[0]+e[4]+e[8];if(n>0)i=Math.sqrt(n+1),t[3]=.5*i,t[0]=(e[5]-e[7])*(i=.5/i),t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var o=0;e[4]>e[0]&&(o=1),e[8]>e[3*o+o]&&(o=2);var l=(o+1)%3,c=(o+2)%3;i=Math.sqrt(e[3*o+o]-e[3*l+l]-e[3*c+c]+1),t[o]=.5*i,t[3]=(e[3*l+c]-e[3*c+l])*(i=.5/i),t[l]=(e[3*l+o]+e[3*o+l])*i,t[c]=(e[3*c+o]+e[3*o+c])*i}return t}lt.clone=Bi.clone,lt.fromValues=Bi.fromValues,lt.copy=Bi.copy,lt.set=Bi.set,lt.add=Bi.add,lt.mul=$s;var te=Bi.scale;lt.scale=te;var K=Bi.dot;lt.dot=K,lt.lerp=Bi.lerp;var ce=Bi.length;lt.length=ce,lt.len=ce;var xe=Bi.squaredLength;lt.squaredLength=xe,lt.sqrLen=xe;var le=Bi.normalize;lt.normalize=le,lt.exactEquals=Bi.exactEquals,lt.equals=Bi.equals;var ge,ze,Pe,qe=(ge=zr.create(),ze=zr.fromValues(1,0,0),Pe=zr.fromValues(0,1,0),function(t,e,i){var n=zr.dot(e,i);return n<-.999999?(zr.cross(ge,ze,e),zr.len(ge)<1e-6&&zr.cross(ge,Pe,e),zr.normalize(ge,ge),Mi(t,ge,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(zr.cross(ge,e,i),t[0]=ge[0],t[1]=ge[1],t[2]=ge[2],t[3]=1+n,le(t,t))});lt.rotationTo=qe;var tt,ot,Bt=(tt=Wo(),ot=Wo(),function(t,e,i,n,o,l){return F(tt,e,o,l),F(ot,i,n,l),F(t,tt,ot,2*l*(1-l)),t});lt.sqlerp=Bt;var yt,kt=(yt=Cc.create(),function(t,e,i,n){return yt[0]=i[0],yt[3]=i[1],yt[6]=i[2],yt[1]=n[0],yt[4]=n[1],yt[7]=n[2],yt[2]=-e[0],yt[5]=-e[1],yt[8]=-e[2],le(t,q(t,yt))});lt.setAxes=kt;var Je={};function si(t){return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(t)}Object.defineProperty(Je,"__esModule",{value:!0}),Je.create=function(){var t=new Ft.ARRAY_TYPE(8);return Ft.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},Je.clone=function(t){var e=new Ft.ARRAY_TYPE(8);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},Je.fromValues=function(t,e,i,n,o,l,c,d){var f=new Ft.ARRAY_TYPE(8);return f[0]=t,f[1]=e,f[2]=i,f[3]=n,f[4]=o,f[5]=l,f[6]=c,f[7]=d,f},Je.fromRotationTranslationValues=function(t,e,i,n,o,l,c){var d=new Ft.ARRAY_TYPE(8);d[0]=t,d[1]=e,d[2]=i,d[3]=n;var f=.5*o,_=.5*l,y=.5*c;return d[4]=f*n+_*i-y*e,d[5]=_*n+y*t-f*i,d[6]=y*n+f*e-_*t,d[7]=-f*t-_*e-y*i,d},Je.fromRotationTranslation=ji,Je.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},Je.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},Je.fromMat4=function(t,e){var i=Dt.create();yi.getRotation(i,e);var n=new Ft.ARRAY_TYPE(3);return yi.getTranslation(n,e),ji(t,i,n),t},Je.copy=tr,Je.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},Je.set=function(t,e,i,n,o,l,c,d,f){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t[4]=l,t[5]=c,t[6]=d,t[7]=f,t},Je.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},Je.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},Je.getTranslation=function(t,e){var i=e[4],n=e[5],o=e[6],l=e[7],c=-e[0],d=-e[1],f=-e[2],_=e[3];return t[0]=2*(i*_+l*c+n*f-o*d),t[1]=2*(n*_+l*d+o*c-i*f),t[2]=2*(o*_+l*f+i*d-n*c),t},Je.translate=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=.5*i[0],f=.5*i[1],_=.5*i[2],y=e[4],v=e[5],b=e[6],E=e[7];return t[0]=n,t[1]=o,t[2]=l,t[3]=c,t[4]=c*d+o*_-l*f+y,t[5]=c*f+l*d-n*_+v,t[6]=c*_+n*f-o*d+b,t[7]=-n*d-o*f-l*_+E,t},Je.rotateX=function(t,e,i){var n=-e[0],o=-e[1],l=-e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=d*c+y*n+f*l-_*o,b=f*c+y*o+_*n-d*l,E=_*c+y*l+d*o-f*n,M=y*c-d*n-f*o-_*l;return Dt.rotateX(t,e,i),t[4]=v*(c=t[3])+M*(n=t[0])+b*(l=t[2])-E*(o=t[1]),t[5]=b*c+M*o+E*n-v*l,t[6]=E*c+M*l+v*o-b*n,t[7]=M*c-v*n-b*o-E*l,t},Je.rotateY=function(t,e,i){var n=-e[0],o=-e[1],l=-e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=d*c+y*n+f*l-_*o,b=f*c+y*o+_*n-d*l,E=_*c+y*l+d*o-f*n,M=y*c-d*n-f*o-_*l;return Dt.rotateY(t,e,i),t[4]=v*(c=t[3])+M*(n=t[0])+b*(l=t[2])-E*(o=t[1]),t[5]=b*c+M*o+E*n-v*l,t[6]=E*c+M*l+v*o-b*n,t[7]=M*c-v*n-b*o-E*l,t},Je.rotateZ=function(t,e,i){var n=-e[0],o=-e[1],l=-e[2],c=e[3],d=e[4],f=e[5],_=e[6],y=e[7],v=d*c+y*n+f*l-_*o,b=f*c+y*o+_*n-d*l,E=_*c+y*l+d*o-f*n,M=y*c-d*n-f*o-_*l;return Dt.rotateZ(t,e,i),t[4]=v*(c=t[3])+M*(n=t[0])+b*(l=t[2])-E*(o=t[1]),t[5]=b*c+M*o+E*n-v*l,t[6]=E*c+M*l+v*o-b*n,t[7]=M*c-v*n-b*o-E*l,t},Je.rotateByQuatAppend=function(t,e,i){var n=i[0],o=i[1],l=i[2],c=i[3],d=e[0],f=e[1],_=e[2],y=e[3];return t[0]=d*c+y*n+f*l-_*o,t[1]=f*c+y*o+_*n-d*l,t[2]=_*c+y*l+d*o-f*n,t[3]=y*c-d*n-f*o-_*l,t[4]=(d=e[4])*c+(y=e[7])*n+(f=e[5])*l-(_=e[6])*o,t[5]=f*c+y*o+_*n-d*l,t[6]=_*c+y*l+d*o-f*n,t[7]=y*c-d*n-f*o-_*l,t},Je.rotateByQuatPrepend=function(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=i[0],f=i[1],_=i[2],y=i[3];return t[0]=n*y+c*d+o*_-l*f,t[1]=o*y+c*f+l*d-n*_,t[2]=l*y+c*_+n*f-o*d,t[3]=c*y-n*d-o*f-l*_,t[4]=n*(y=i[7])+c*(d=i[4])+o*(_=i[6])-l*(f=i[5]),t[5]=o*y+c*f+l*d-n*_,t[6]=l*y+c*_+n*f-o*d,t[7]=c*y-n*d-o*f-l*_,t},Je.rotateAroundAxis=function(t,e,i,n){if(Math.abs(n)0){i=Math.sqrt(i);var n=e[0]/i,o=e[1]/i,l=e[2]/i,c=e[3]/i,d=e[4],f=e[5],_=e[6],y=e[7],v=n*d+o*f+l*_+c*y;t[0]=n,t[1]=o,t[2]=l,t[3]=c,t[4]=(d-n*v)/i,t[5]=(f-o*v)/i,t[6]=(_-l*v)/i,t[7]=(y-c*v)/i}return t},Je.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},Je.exactEquals=function(t,e){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]},Je.equals=function(t,e){var i=t[0],n=t[1],o=t[2],l=t[3],c=t[4],d=t[5],f=t[6],_=t[7],y=e[0],v=e[1],b=e[2],E=e[3],M=e[4],A=e[5],C=e[6],D=e[7];return Math.abs(i-y)<=Ft.EPSILON*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(n-v)<=Ft.EPSILON*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(o-b)<=Ft.EPSILON*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(l-E)<=Ft.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-M)<=Ft.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(d-A)<=Ft.EPSILON*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(f-C)<=Ft.EPSILON*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(_-D)<=Ft.EPSILON*Math.max(1,Math.abs(_),Math.abs(D))},Je.sqrLen=Je.squaredLength=Je.len=Je.length=Je.dot=Je.mul=Je.setReal=Je.getReal=void 0;var Ft=Ri(fi),Dt=Ri(lt),yi=Ri(dt);function xi(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(xi=function(n){return n?i:e})(t)}function Ri(t,e){if(t&&t.__esModule)return t;if(t===null||si(t)!=="object"&&typeof t!="function")return{default:t};var i=xi(e);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}function ji(t,e,i){var n=.5*i[0],o=.5*i[1],l=.5*i[2],c=e[0],d=e[1],f=e[2],_=e[3];return t[0]=c,t[1]=d,t[2]=f,t[3]=_,t[4]=n*_+o*f-l*d,t[5]=o*_+l*c-n*f,t[6]=l*_+n*d-o*c,t[7]=-n*c-o*d-l*f,t}function tr(t,e){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}function ao(t,e,i){var n=e[0],o=e[1],l=e[2],c=e[3],d=i[4],f=i[5],_=i[6],y=i[7],v=e[4],b=e[5],E=e[6],M=e[7],A=i[0],C=i[1],D=i[2],V=i[3];return t[0]=n*V+c*A+o*D-l*C,t[1]=o*V+c*C+l*A-n*D,t[2]=l*V+c*D+n*C-o*A,t[3]=c*V-n*A-o*C-l*D,t[4]=n*y+c*d+o*_-l*f+v*V+M*A+b*D-E*C,t[5]=o*y+c*f+l*d-n*_+b*V+M*C+E*A-v*D,t[6]=l*y+c*_+n*f-o*d+E*V+M*D+v*C-b*A,t[7]=c*y-n*d-o*f-l*_+M*V-v*A-b*C-E*D,t}Je.getReal=Dt.copy,Je.setReal=Dt.copy,Je.mul=ao;var Pc=Dt.dot;Je.dot=Pc;var zc=Dt.length;Je.length=zc,Je.len=zc;var qs=Dt.squaredLength;Je.squaredLength=qs,Je.sqrLen=qs;var wt={};function pl(t){return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pl(t)}Object.defineProperty(wt,"__esModule",{value:!0}),wt.create=Rc,wt.clone=function(t){var e=new Bn.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},wt.fromValues=function(t,e){var i=new Bn.ARRAY_TYPE(2);return i[0]=t,i[1]=e,i},wt.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},wt.set=function(t,e,i){return t[0]=e,t[1]=i,t},wt.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},wt.subtract=Lc,wt.multiply=kc,wt.divide=Oc,wt.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},wt.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},wt.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},wt.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t},wt.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},wt.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},wt.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},wt.distance=Bc,wt.squaredDistance=Fc,wt.length=Zs,wt.squaredLength=Ws,wt.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},wt.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},wt.normalize=function(t,e){var i=e[0],n=e[1],o=i*i+n*n;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t},wt.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},wt.cross=function(t,e,i){var n=e[0]*i[1]-e[1]*i[0];return t[0]=t[1]=0,t[2]=n,t},wt.lerp=function(t,e,i,n){var o=e[0],l=e[1];return t[0]=o+n*(i[0]-o),t[1]=l+n*(i[1]-l),t},wt.random=function(t,e){e=e||1;var i=2*Bn.RANDOM()*Math.PI;return t[0]=Math.cos(i)*e,t[1]=Math.sin(i)*e,t},wt.transformMat2=function(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[2]*o,t[1]=i[1]*n+i[3]*o,t},wt.transformMat2d=function(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[2]*o+i[4],t[1]=i[1]*n+i[3]*o+i[5],t},wt.transformMat3=function(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[3]*o+i[6],t[1]=i[1]*n+i[4]*o+i[7],t},wt.transformMat4=function(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[4]*o+i[12],t[1]=i[1]*n+i[5]*o+i[13],t},wt.rotate=function(t,e,i,n){var o=e[0]-i[0],l=e[1]-i[1],c=Math.sin(n),d=Math.cos(n);return t[0]=o*d-l*c+i[0],t[1]=o*c+l*d+i[1],t},wt.angle=function(t,e){var i=t[0],n=t[1],o=e[0],l=e[1],c=Math.sqrt(i*i+n*n)*Math.sqrt(o*o+l*l);return Math.acos(Math.min(Math.max(c&&(i*o+n*l)/c,-1),1))},wt.zero=function(t){return t[0]=0,t[1]=0,t},wt.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},wt.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},wt.equals=function(t,e){var i=t[0],n=t[1],o=e[0],l=e[1];return Math.abs(i-o)<=Bn.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-l)<=Bn.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))},wt.forEach=wt.sqrLen=wt.sqrDist=wt.dist=wt.div=wt.mul=wt.sub=wt.len=void 0;var Bn=function(t,e){if(t&&t.__esModule)return t;if(t===null||pl(t)!=="object"&&typeof t!="function")return{default:t};var i=Dc(void 0);if(i&&i.has(t))return i.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(l!=="default"&&Object.prototype.hasOwnProperty.call(t,l)){var c=o?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(n,l,c):n[l]=t[l]}return n.default=t,i&&i.set(t,n),n}(fi);function Dc(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,i=new WeakMap;return(Dc=function(n){return n?i:e})(t)}function Rc(){var t=new Bn.ARRAY_TYPE(2);return Bn.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function Lc(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function kc(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function Oc(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function Bc(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1])}function Fc(t,e){var i=e[0]-t[0],n=e[1]-t[1];return i*i+n*n}function Zs(t){return Math.hypot(t[0],t[1])}function Ws(t){var e=t[0],i=t[1];return e*e+i*i}wt.len=Zs,wt.sub=Lc,wt.mul=kc,wt.div=Oc,wt.dist=Bc,wt.sqrDist=Fc,wt.sqrLen=Ws;var fl=function(){var t=Rc();return function(e,i,n,o,l,c){var d,f;for(i||(i=2),n||(n=0),f=o?Math.min(o*i+n,e.length):e.length,d=n;d1)return 1;for(var i=t,n=0;n<8;n++){var o=this.sampleCurveX(i)-t;if(Math.abs(o)o?c=i:d=i,i=.5*(d-c)+c;return i},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var Vc=Jr(xh),Xs=lo;function lo(t,e){this.x=t,this.y=e}lo.prototype={clone:function(){return new lo(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),i=Math.sin(t),n=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=n,this},_rotateAround:function(t,e){var i=Math.cos(t),n=Math.sin(t),o=e.y+n*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-n*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},lo.convert=function(t){return t instanceof lo?t:Array.isArray(t)?new lo(t[0],t[1]):t};var je=Jr(Xs);function Xo(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let i=0;i=1)return 1;const e=t*t,i=e*t;return 4*(t<.5?i:3*(t-e)+i-.75)}function gl(t,e,i,n){const o=new Vc(t,e,i,n);return function(l){return o.solve(l)}}const $r=gl(.25,.1,.25,1);function Et(t,e,i){return Math.min(i,Math.max(e,t))}function Uc(t,e,i){return(i=Et((i-t)/(e-t),0,1))*i*(3-2*i)}function Jo(t,e,i){const n=i-e,o=((t-e)%n+n)%n+e;return o===e?i:o}function Js(t,e,i){if(!t.length)return i(null,[]);let n=t.length;const o=new Array(t.length);let l=null;t.forEach((c,d)=>{e(c,(f,_)=>{f&&(l=f),o[d]=_,--n==0&&i(l,o)})})}function jc(t){const e=[];for(const i in t)e.push(t[i]);return e}function Gi(t,...e){for(const i of e)for(const n in i)t[n]=i[n];return t}let wh=1;function yl(){return wh++}function Ko(){return function t(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function co(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Gc(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function xl(t,e){t.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function Ks(t,e){return t.indexOf(e,t.length-e.length)!==-1}function Qs(t,e,i){const n={};for(const o in t)n[o]=e.call(this,t[o],o,t);return n}function $i(t,e,i){const n={};for(const o in t)e.call(this,t[o],o,t)&&(n[o]=t[o]);return n}function ar(t){return Array.isArray(t)?t.map(ar):typeof t=="object"&&t?Qs(t,ar):t}const qi={};function vi(t){qi[t]||(typeof console<"u"&&console.warn(t),qi[t]=!0)}function Fn(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}function Ep(t){let e=0;for(let i,n,o=0,l=t.length,c=l-1;o@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,n,o,l)=>{const c=o||l;return e[n]=!c||c.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let $c,ta,Nn,ia,Vn,ra,na=null;function vl(t){try{const e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch{return!1}}function Un(t,e){return[t[4*e],t[4*e+1],t[4*e+2],t[4*e+3]]}function bl(t,e,i,n){for(;e>1;t[o]>1;t[o]<=n?e=o+1:i=o}return e}function Th(t){return t>0?1/(1.001-t):1+t}function Eh(t){return t>0?1-1/(1.001-t):-t}function qc(){return $c==null&&($c=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),$c}const Zi={now:()=>ia!==void 0?ia:performance.now(),setNow(t){ia=t},restoreNow(){ia=void 0},frame(t){const e=requestAnimationFrame(t);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(t,e=0){const{width:i,height:n}=t;Vn||(Vn=document.createElement("canvas"));const o=Vn.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("failed to create canvas 2d context");return(i>Vn.width||n>Vn.height)&&(Vn.width=i,Vn.height=n),o.clearRect(-e,-e,i+2*e,n+2*e),o.drawImage(t,0,0,i,n),o.getImageData(-e,-e,i+2*e,n+2*e)},resolveURL:t=>(ta||(ta=document.createElement("a")),ta.href=t,ta.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Nn==null&&(Nn=window.matchMedia("(prefers-reduced-motion: reduce)")),Nn.matches)},hasCanvasFingerprintNoise(){if(ra!==void 0)return ra;if(!qc())return ra=!1,!1;const t=new OffscreenCanvas(85,1),e=t.getContext("2d",{willReadFrequently:!0});let i=0;for(let o=0;o0?`?${l}`:""}`}const Mh="mapbox-tiles";let Wc=500,Hc=50;const Ih=["language","worldview","jobid"];let Kr,Tl;function Ah(){try{return caches}catch{}}function oa(){const t=Ah();t&&!Kr&&(Kr=t.open(Mh))}let El=1/0;const Sl={supported:!1,testSupport:function(t){!Ml&&ts&&(Ch?Xc(t):sa=t)}};let sa,ts,Ml=!1,Ch=!1;const Ph=typeof self<"u"?self:{};function Xc(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,ts),t.isContextLost())return;Sl.supported=!0}catch{}t.deleteTexture(e),Ml=!0}Ph.document&&(ts=Ph.document.createElement("img"),ts.onload=function(){sa&&Xc(sa),sa=null,Ch=!0},ts.onerror=function(){Ml=!0,sa=null},ts.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const aa={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(aa);class Il extends Error{constructor(e,i,n){i===401&&Zt(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Yc=es()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Qr=function(t,e){if(!(/^file:/.test(i=t.url)||/^file:/.test(Yc())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(n,o){const l=new AbortController,c=new Request(n.url,{method:n.method||"GET",body:n.body,credentials:n.credentials,headers:n.headers,referrer:Yc(),referrerPolicy:n.referrerPolicy,signal:l.signal});let d=!1,f=!1;const _=(y=c.url).indexOf("sku=")>0&&Zt(y);var y;n.type==="json"&&c.headers.set("Accept","application/json");const v=(E,M,A)=>{if(f)return;if(E&&E.message!=="SecurityError"&&vi(E.toString()),M&&A)return b(M);const C=Date.now();fetch(c).then(D=>{if(D.ok){const V=_?D.clone():null;return b(D,V,C)}return o(new Il(D.statusText,D.status,n.url))}).catch(D=>{D.name!=="AbortError"&&o(new Error(`${D.message} ${n.url}`))})},b=(E,M,A)=>{(n.type==="arrayBuffer"?E.arrayBuffer():n.type==="json"?E.json():E.text()).then(C=>{f||(M&&A&&function(D,V,N){if(oa(),!Kr)return;const U=ea(V.headers.get("Cache-Control")||"");if(U["no-store"])return;const H={status:V.status,statusText:V.statusText,headers:new Headers};V.headers.forEach((ae,de)=>H.headers.set(de,ae)),U["max-age"]&&H.headers.set("Expires",new Date(N+1e3*U["max-age"]).toUTCString());const X=H.headers.get("Expires");if(!X||new Date(X).getTime()-N<42e4)return;let Q=Zc(D.url,{persistentParams:Ih});if(V.status===206){const ae=D.headers.get("Range");if(!ae)return;H.status=200,Q=Sh(Q,{range:ae})}(function(ae,de){if(Tl===void 0)try{new Response(new ReadableStream),Tl=!0}catch{Tl=!1}Tl?de(ae.body):ae.blob().then(de)})(V,ae=>{const de=new Response((ye=V.status)!==200&&ye!==404&&[101,103,204,205,304].includes(ye)?null:ae,H);var ye;oa(),Kr&&Kr.then(pe=>pe.put(Q,de)).catch(pe=>vi(pe.message))})}(c,M,A),d=!0,o(null,C,E.headers.get("Cache-Control"),E.headers.get("Expires")))}).catch(C=>{f||o(new Error(C.message))})};return _?function(E,M){if(oa(),!Kr)return M(null);Kr.then(A=>{let C=Zc(E.url,{persistentParams:Ih});const D=E.headers.get("Range");D&&(C=Sh(C,{range:D})),A.match(C).then(V=>{const N=function(U){if(!U)return!1;const H=new Date(U.headers.get("Expires")||0),X=ea(U.headers.get("Cache-Control")||"");return H>Date.now()&&!X["no-cache"]}(V);A.delete(C),N&&A.put(C,V.clone()),M(null,V,N)}).catch(M)}).catch(M)}(c,v):v(null,null),{cancel:()=>{f=!0,d||l.abort()}}}(t,e);if(es()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var i;return function(n,o){const l=new XMLHttpRequest;l.open(n.method||"GET",n.url,!0),n.type==="arrayBuffer"&&(l.responseType="arraybuffer");for(const c in n.headers)l.setRequestHeader(c,n.headers[c]);return n.type==="json"&&(l.responseType="text",l.setRequestHeader("Accept","application/json")),l.withCredentials=n.credentials==="include",l.onerror=()=>{o(new Error(l.statusText))},l.onload=()=>{if((l.status>=200&&l.status<300||l.status===0)&&l.response!==null){let c=l.response;if(n.type==="json")try{c=JSON.parse(l.response)}catch(d){return o(d)}o(null,c,l.getResponseHeader("Cache-Control"),l.getResponseHeader("Expires"))}else o(new Il(l.statusText,l.status,n.url))},l.send(n.body),{cancel:()=>l.abort()}}(t,e)},uo=function(t,e){return Qr(Gi(t,{type:"arrayBuffer"}),e)};function Sp(t){const e=document.createElement("a");return e.href=t,e.protocol===location.protocol&&e.host===location.host}const zh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let la,is;la=[],is=0;const ca=function(t,e){if(Sl.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),is>=bt.MAX_PARALLEL_IMAGE_REQUESTS){const l={requestParameters:t,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return la.push(l),l}is++;let i=!1;const n=()=>{if(!i)for(i=!0,is--;la.length&&is{n(),l?e(l):c&&(self.createImageBitmap?function(_,y){const v=new Blob([new Uint8Array(_)],{type:"image/png"});createImageBitmap(v).then(b=>{y(null,b)}).catch(b=>{y(new Error(`Could not load image because of ${b.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(c,(_,y)=>e(_,y,d,f)):function(_,y){const v=new Image;v.onload=()=>{y(null,v),URL.revokeObjectURL(v.src),v.onload=null,requestAnimationFrame(()=>{v.src=zh})},v.onerror=()=>y(new 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."));const b=new Blob([new Uint8Array(_)],{type:"image/png"});v.src=_.byteLength?URL.createObjectURL(b):zh}(c,(_,y)=>e(_,y,d,f)))});return{cancel:()=>{o.cancel(),n()}}},Jc="01",Kc="NO_ACCESS_TOKEN",Mp=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Dr(t){const e=t.match(Mp);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function ho(t){const e=t.params.length?`?${t.params.join("&")}`:"";return`${t.protocol}://${t.authority}${t.path}${e}`}const Qc="mapbox.eventData";function Dh(t){if(!t)return null;const e=t.split(".");if(!e||e.length!==3)return null;try{return JSON.parse(decodeURIComponent(atob(e[1]).split("").map(i=>"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class po{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const i=Dh(bt.ACCESS_TOKEN);let n="";return n=i&&i.u?btoa(encodeURIComponent(i.u).replace(/%([0-9A-F]{2})/g,(o,l)=>String.fromCharCode(+("0x"+l)))):bt.ACCESS_TOKEN||"",e?`${Qc}.${e}:${n}`:`${Qc}:${n}`}fetchEventData(){const e=vl("localStorage"),i=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{const o=localStorage.getItem(i);o&&(this.eventData=JSON.parse(o));const l=localStorage.getItem(n);l&&(this.anonId=l)}catch{vi("Unable to read from LocalStorage")}}saveEventData(){const e=vl("localStorage"),i=this.getStorageKey(),n=this.getStorageKey("uuid"),o=this.anonId;if(e&&o)try{localStorage.setItem(n,o),Object.keys(this.eventData).length>=1&&localStorage.setItem(i,JSON.stringify(this.eventData))}catch{vi("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,i,n,o){if(!bt.EVENTS_URL)return;const l=Dr(bt.EVENTS_URL);l.params.push(`access_token=${o||bt.ACCESS_TOKEN||""}`);const c={event:this.type,created:new Date(e).toISOString()},d=i?Gi(c,i):c,f={url:ho(l),headers:{"Content-Type":"text/plain"},body:JSON.stringify([d])};this.pendingRequest=function(_,y){return Qr(Gi(_,{method:"POST"}),y)}(f,_=>{this.pendingRequest=null,n(_),this.saveEventData(),this.processRequests(o)})}queueRequest(e,i){this.queue.push(e),this.processRequests(i)}}const Rh=new class extends po{constructor(t){super("appUserTurnstile"),this._customAccessToken=t}postTurnstileEvent(t,e){bt.EVENTS_URL&&bt.ACCESS_TOKEN&&Array.isArray(t)&&t.some(i=>Di(i)||Zt(i))&&this.queueRequest(Date.now(),e)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=Dh(bt.ACCESS_TOKEN),i=e?e.u:bt.ACCESS_TOKEN;let n=i!==this.eventData.tokenU;Gc(this.anonId)||(this.anonId=Ko(),n=!0);const o=this.queue.shift();if(this.eventData.lastSuccess){const l=new Date(this.eventData.lastSuccess),c=new Date(o),d=(o-this.eventData.lastSuccess)/864e5;n=n||d>=1||d<-1||l.getDate()!==c.getDate()}else n=!0;n?this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:pr,skuId:Jc,"enabled.telemetry":!1,userId:this.anonId},l=>{l||(this.eventData.lastSuccess=o,this.eventData.tokenU=i)},t):this.processRequests()}},eu=Rh.postTurnstileEvent.bind(Rh),rs=new class extends po{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,e,i,n){this.skuToken=e,this.errorCb=n,bt.EVENTS_URL&&(i||bt.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},i):this.errorCb(new Error(Kc)))}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{id:e,timestamp:i}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),Gc(this.anonId)||(this.anonId=Ko()),this.postEvent(i,{sdkIdentifier:"mapbox-gl-js",sdkVersion:pr,skuId:Jc,skuToken:this.skuToken,userId:this.anonId},n=>{n?this.errorCb(n):e&&(this.success[e]=!0)},t))}remove(){this.errorCb=null}},Lh=rs.postMapLoadEvent.bind(rs),ua=new class extends po{constructor(){super("style.load"),this.eventIdPerMapInstanceMap=new Map,this.mapInstanceIdMap=new WeakMap}getMapInstanceId(t){let e=this.mapInstanceIdMap.get(t);return e||(e=Ko(),this.mapInstanceIdMap.set(t,e)),e}getEventId(t){const e=this.eventIdPerMapInstanceMap.get(t)||0;return this.eventIdPerMapInstanceMap.set(t,e+1),e}postStyleLoadEvent(t,e){const{map:i,style:n,importedStyles:o}=e;if(!bt.EVENTS_URL||!t&&!bt.ACCESS_TOKEN)return;const l=this.getMapInstanceId(i),c={mapInstanceId:l,eventId:this.getEventId(l),style:n};o.length&&(c.importedStyles=o),this.queueRequest({timestamp:Date.now(),payload:c},t)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:e,payload:i}=this.queue.shift();this.postEvent(e,i,()=>{},t)}},kh=ua.postStyleLoadEvent.bind(ua),Oh=new class extends po{constructor(){super("gljs.performance")}postPerformanceEvent(t,e){bt.EVENTS_URL&&(t||bt.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},t)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:e,performanceData:i}=this.queue.shift(),n=function(o){const l=performance.getEntriesByType("resource"),c=performance.getEntriesByType("mark"),d=function(E){const M={};if(E){for(const A in E)if(A!=="other")for(const C of E[A]){const D=`${A}ResolveRangeMin`,V=`${A}ResolveRangeMax`,N=`${A}RequestCount`,U=`${A}RequestCachedCount`;M[D]=Math.min(M[D]||1/0,C.startTime),M[V]=Math.max(M[V]||-1/0,C.responseEnd);const H=X=>{M[X]===void 0&&(M[X]=0),++M[X]};C.transferSize!==void 0&&C.transferSize===0&&H(U),H(N)}}return M}(function(E,M){const A={};if(E)for(const C of E){const D=M(C);A[D]===void 0&&(A[D]=[]),A[D].push(C)}return A}(l,Os)),f=window.devicePixelRatio,_=navigator.connection||navigator.mozConnection||navigator.webkitConnection,y=_?_.effectiveType:void 0,v={counters:[],metadata:[],attributes:[]},b=(E,M,A)=>{A!=null&&E.push({name:M,value:A.toString()})};for(const E in d)b(v.counters,E,d[E]);if(o.interactionRange[0]!==1/0&&o.interactionRange[1]!==-1/0&&(b(v.counters,"interactionRangeMin",o.interactionRange[0]),b(v.counters,"interactionRangeMax",o.interactionRange[1])),c)for(const E of Object.keys(Dn)){const M=Dn[E],A=c.find(C=>C.name===M);A&&b(v.counters,M,A.startTime)}return b(v.counters,"visibilityHidden",o.visibilityHidden),b(v.attributes,"style",function(E){if(E)for(const M of E){const A=M.name.split("?")[0];if(to(A)){const C=A.split("/").slice(-2);if(C.length===2)return`mapbox://styles/${C[0]}/${C[1]}`}}}(l)),b(v.attributes,"terrainEnabled",o.terrainEnabled?"true":"false"),b(v.attributes,"fogEnabled",o.fogEnabled?"true":"false"),b(v.attributes,"projection",o.projection),b(v.attributes,"zoom",o.zoom),b(v.metadata,"devicePixelRatio",f),b(v.metadata,"connectionEffectiveType",y),b(v.metadata,"navigatorUserAgent",navigator.userAgent),b(v.metadata,"screenWidth",window.screen.width),b(v.metadata,"screenHeight",window.screen.height),b(v.metadata,"windowWidth",window.innerWidth),b(v.metadata,"windowHeight",window.innerHeight),b(v.metadata,"mapWidth",o.width/f),b(v.metadata,"mapHeight",o.height/f),b(v.metadata,"webglRenderer",o.renderer),b(v.metadata,"webglVendor",o.vendor),b(v.metadata,"sdkVersion",pr),b(v.metadata,"sdkIdentifier","mapbox-gl-js"),v}(i);for(const o of n.metadata);for(const o of n.counters);for(const o of n.attributes);this.postEvent(e,n,()=>{},t)}},Ip=Oh.postPerformanceEvent.bind(Oh),ha=new class extends po{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,e,i,n){if(!bt.API_URL||!bt.SESSION_PATH)return;const o=Dr(bt.API_URL+bt.SESSION_PATH);o.params.push(`sku=${e||""}`),o.params.push(`access_token=${n||bt.ACCESS_TOKEN||""}`);const l={url:ho(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(c,d){return Qr(Gi(c,{method:"GET"}),d)}(l,c=>{this.pendingRequest=null,i(c),this.saveEventData(),this.processRequests(n)})}getSessionAPI(t,e,i,n){this.skuToken=e,this.errorCb=n,bt.SESSION_PATH&&bt.API_URL&&(i||bt.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},i):this.errorCb(new Error(Kc)))}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{id:e,timestamp:i}=this.queue.shift();e&&this.success[e]||this.getSession(i,this.skuToken,n=>{n?this.errorCb(n):e&&(this.success[e]=!0)},t)}remove(){this.errorCb=null}},tu=ha.getSessionAPI.bind(ha),da=new Set;var fo={exports:{}},ns={exports:function(t,e){var i,n,o,l,c,d,f,_;for(n=t.length-(i=3&t.length),o=e,c=3432918353,d=461845907,_=0;_>>16)*c&65535)<<16)&4294967295)<<15|f>>>17))*d+(((f>>>16)*d&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(l>>>16)&65535)<<16);switch(f=0,i){case 3:f^=(255&t.charCodeAt(_+2))<<16;case 2:f^=(255&t.charCodeAt(_+1))<<8;case 1:o^=f=(65535&(f=(f=(65535&(f^=255&t.charCodeAt(_)))*c+(((f>>>16)*c&65535)<<16)&4294967295)<<15|f>>>17))*d+(((f>>>16)*d&65535)<<16)&4294967295}return o^=t.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}},Ap={exports:function(t,e){for(var i,n=t.length,o=e^n,l=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24))+((1540483477*(i>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++l;switch(n){case 3:o^=(255&t.charCodeAt(l+2))<<16;case 2:o^=(255&t.charCodeAt(l+1))<<8;case 1:o=1540483477*(65535&(o^=255&t.charCodeAt(l)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0}},Bh=ns.exports,Cp=Ap.exports;fo.exports=Bh,fo.exports.murmur3=Bh,fo.exports.murmur2=Cp;var Al=Jr(fo.exports);class en{constructor(e,...i){Gi(this,i[0]||{}),this.type=e}}class pa extends en{constructor(e,i={}){super("error",Gi({error:e},i))}}function Cl(t,e,i){i[t]&&i[t].indexOf(e)!==-1||(i[t]=i[t]||[],i[t].push(e))}function iu(t,e,i){if(i&&i[t]){const n=i[t].indexOf(e);n!==-1&&i[t].splice(n,1)}}class mo{on(e,i){return this._listeners=this._listeners||{},Cl(e,i,this._listeners),this}off(e,i){return iu(e,i,this._listeners),iu(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Cl(e,i,this._oneTimeListeners),this):new Promise(n=>this.once(e,n))}fire(e,i){const n=typeof e=="string"?new en(e,i):e,o=n.type;if(this.listens(o)){n.target=this;const l=this._listeners&&this._listeners[o]?this._listeners[o].slice():[];for(const f of l)f.call(this,n);const c=this._oneTimeListeners&&this._oneTimeListeners[o]?this._oneTimeListeners[o].slice():[];for(const f of c)iu(o,f,this._oneTimeListeners),f.call(this,n);const d=this._eventedParent;d&&(Gi(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),d.fire(n))}else n instanceof pa&&console.error(n.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}s.G=void 0;var Fh={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Pl(t){return(t=Math.round(t))<0?0:t>255?255:t}function ru(t){return Pl(t[t.length-1]==="%"?parseFloat(t)/100*255:parseInt(t))}function zl(t){return(e=t[t.length-1]==="%"?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function nu(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}try{s.G={}.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in Fh)return Fh[i].slice();if(i[0]==="#")return i.length===4?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:i.length===7&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var n=i.indexOf("("),o=i.indexOf(")");if(n!==-1&&o+1===i.length){var l=i.substr(0,n),c=i.substr(n+1,o-(n+1)).split(","),d=1;switch(l){case"rgba":if(c.length!==4)return null;d=zl(c.pop());case"rgb":return c.length!==3?null:[ru(c[0]),ru(c[1]),ru(c[2]),d];case"hsla":if(c.length!==4)return null;d=zl(c.pop());case"hsl":if(c.length!==3)return null;var f=(parseFloat(c[0])%360+360)%360/360,_=zl(c[1]),y=zl(c[2]),v=y<=.5?y*(_+1):y+_-y*_,b=2*y-v;return[Pl(255*nu(b,v,f+1/3)),Pl(255*nu(b,v,f)),Pl(255*nu(b,v,f-1/3)),d];default:return null}}return null}}catch{}class Ut{constructor(e,i,n,o=1){this.r=e,this.g=i,this.b=n,this.a=o}static parse(e){if(!e)return;if(e instanceof Ut)return e;if(typeof e!="string")return;const i=s.G(e);return i?new Ut(i[0]/255*i[3],i[1]/255*i[3],i[2]/255*i[3],i[3]):void 0}toString(){const[e,i,n,o]=this.a===0?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(e)},${Math.round(i)},${Math.round(n)},${o})`}toRenderColor(e){const{r:i,g:n,b:o,a:l}=this;return new Pp(e,i,n,o,l)}}class Pp{constructor(e,i,n,o,l){if(e){const c=e.image.height,d=c*c;i=l===0?0:i/l*(c-1),n=l===0?0:n/l*(c-1),o=l===0?0:o/l*(c-1);const f=Math.floor(i),_=Math.floor(n),y=Math.floor(o),v=Math.ceil(i),b=Math.ceil(n),E=Math.ceil(o),M=i-f,A=n-_,C=o-y,D=e.image.data,V=4*(f+_*d+y*c),N=4*(f+_*d+E*c),U=4*(f+b*d+y*c),H=4*(f+b*d+E*c),X=4*(v+_*d+y*c),Q=4*(v+_*d+E*c),ae=4*(v+b*d+y*c),de=4*(v+b*d+E*c);if(V<0||de>=D.length)throw new Error("out of range");this.r=rt(rt(rt(D[V],D[N],C),rt(D[U],D[H],C),A),rt(rt(D[X],D[Q],C),rt(D[ae],D[de],C),A),M)/255*l,this.g=rt(rt(rt(D[V+1],D[N+1],C),rt(D[U+1],D[H+1],C),A),rt(rt(D[X+1],D[Q+1],C),rt(D[ae+1],D[de+1],C),A),M)/255*l,this.b=rt(rt(rt(D[V+2],D[N+2],C),rt(D[U+2],D[H+2],C),A),rt(rt(D[X+2],D[Q+2],C),rt(D[ae+2],D[de+2],C),A),M)/255*l,this.a=l}else this.r=i,this.g=n,this.b=o,this.a=l}toArray(){const{r:e,g:i,b:n,a:o}=this;return o===0?[0,0,0,0]:[255*e/o,255*i/o,255*n/o,o]}toArray01(){const{r:e,g:i,b:n,a:o}=this;return o===0?[0,0,0,0]:[e/o,i/o,n/o,o]}toArray01Scaled(e){const{r:i,g:n,b:o,a:l}=this;return l===0?[0,0,0]:[i/l*e,n/l*e,o/l*e]}toArray01PremultipliedAlpha(){const{r:e,g:i,b:n,a:o}=this;return[e,i,n,o]}toArray01Linear(){const{r:e,g:i,b:n,a:o}=this;return o===0?[0,0,0,0]:[Math.pow(e/o,2.2),Math.pow(i/o,2.2),Math.pow(n/o,2.2),o]}}function rt(t,e,i){return t*(1-i)+e*i}function ou(t,e,i){return t.map((n,o)=>rt(n,e[o],i))}Ut.black=new Ut(0,0,0,1),Ut.white=new Ut(1,1,1,1),Ut.transparent=new Ut(0,0,0,0),Ut.red=new Ut(1,0,0,1),Ut.blue=new Ut(0,0,1,1);var fa=Object.freeze({__proto__:null,array:ou,color:function(t,e,i){return new Ut(rt(t.r,e.r,i),rt(t.g,e.g,i),rt(t.b,e.b,i),rt(t.a,e.a,i))},number:rt});function os(t,...e){for(const i of e)for(const n in i)t[n]=i[n];return t}class tn extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class su{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[n,o]of i)this.bindings[n]=o}concat(e){return new su(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const mr={kind:"null"},We={kind:"number"},Lt={kind:"string"},Gt={kind:"boolean"},Rr={kind:"color"},ss={kind:"object"},Nt={kind:"value"},Dl={kind:"collator"},as={kind:"formatted"},_o={kind:"resolvedImage"};function Wi(t,e){return{kind:"array",itemType:t,N:e}}function mi(t){if(t.kind==="array"){const e=mi(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}const au=[mr,We,Lt,Gt,Rr,as,ss,Wi(Nt),_o];function ma(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!ma(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(const i of au)if(!ma(i,e))return null}}return`Expected ${mi(t)} but found ${mi(e)} instead.`}function Lr(t,e){return e.some(i=>i.kind===t.kind)}function _a(t,e){return e.some(i=>i==="null"?t===null:i==="array"?Array.isArray(t):i==="object"?t&&!Array.isArray(t)&&typeof t=="object":i===typeof t)}class Rl{constructor(e,i,n){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Ll{constructor(e,i,n,o,l){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=n,this.fontStack=o,this.textColor=l}}class ir{constructor(e){this.sections=e}static fromString(e){return new ir([new Ll(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.namePrimary.length!==0)}static factory(e){return e instanceof ir?e:ir.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){e.push(["image",i.image.namePrimary]);continue}e.push(i.text);const n={};i.fontStack&&(n["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(n["font-scale"]=i.scale),i.textColor&&(n["text-color"]=["rgba"].concat(i.textColor.toRenderColor(null).toArray())),e.push(n)}return e}}class _r{constructor(e){this.namePrimary=e.namePrimary,e.nameSecondary&&(this.nameSecondary=e.nameSecondary),this.available=e.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(e,i){return e?new _r({namePrimary:e,nameSecondary:i,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function Nh(t,e,i,n){return typeof t=="number"&&t>=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?n===void 0||typeof n=="number"&&n>=0&&n<=1?null:`Invalid rgba value [${[t,e,i,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof n=="number"?[t,e,i,n]:[t,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ls(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Ut||t instanceof Rl||t instanceof ir||t instanceof _r)return!0;if(Array.isArray(t)){for(const e of t)if(!ls(e))return!1;return!0}if(typeof t=="object"){for(const e in t)if(!ls(t[e]))return!1;return!0}return!1}function Ii(t){if(t===null)return mr;if(typeof t=="string")return Lt;if(typeof t=="boolean")return Gt;if(typeof t=="number")return We;if(t instanceof Ut)return Rr;if(t instanceof Rl)return Dl;if(t instanceof ir)return as;if(t instanceof _r)return _o;if(Array.isArray(t)){const e=t.length;let i;for(const n of t){const o=Ii(n);if(i){if(i===o)continue;i=Nt;break}i=o}return Wi(i||Nt,e)}return ss}function qr(t){const e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof Ut||t instanceof ir||t instanceof _r?t.toString():JSON.stringify(t)}class Zr{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ls(e[1]))return i.error("invalid value");const n=e[1];let o=Ii(n);const l=i.expectedType;return o.kind!=="array"||o.N!==0||!l||l.kind!=="array"||typeof l.N=="number"&&l.N!==0||(o=l),new Zr(o,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Ut?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof ir?this.value.serialize():this.value}}class Ci{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const lu={string:Lt,number:We,boolean:Gt,object:ss};class gr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let n,o=1;const l=e[0];if(l==="array"){let d,f;if(e.length>2){const _=e[1];if(typeof _!="string"||!(_ in lu)||_==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);d=lu[_],o++}else d=Nt;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);f=e[2],o++}n=Wi(d,f)}else n=lu[l];const c=[];for(;oe.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const n=e.itemType;if(n.kind==="string"||n.kind==="number"||n.kind==="boolean"){i.push(n.kind);const o=e.N;(typeof o=="number"||this.args.length>1)&&i.push(o)}}return i.concat(this.args.map(n=>n.serialize()))}}class go{constructor(e){this.type=as,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&typeof n=="object")return i.error("First argument must be an image or text section.");const o=[];let l=!1;for(let c=1;c<=e.length-1;++c){const d=e[c];if(l&&typeof d=="object"&&!Array.isArray(d)){l=!1;let f=null;if(d["font-scale"]&&(f=i.parse(d["font-scale"],1,We),!f))return null;let _=null;if(d["text-font"]&&(_=i.parse(d["text-font"],1,Wi(Lt)),!_))return null;let y=null;if(d["text-color"]&&(y=i.parse(d["text-color"],1,Rr),!y))return null;const v=o[o.length-1];v.scale=f,v.font=_,v.textColor=y}else{const f=i.parse(e[c],1,Nt);if(!f)return null;const _=f.type.kind;if(_!=="string"&&_!=="value"&&_!=="null"&&_!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");l=!0,o.push({content:f,scale:null,font:null,textColor:null})}}return new go(o)}evaluate(e){return new ir(this.sections.map(i=>{const n=i.content.evaluate(e);return Ii(n)===_o?new Ll("",n,null,null,null):new Ll(qr(n),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const n={};i.scale&&(n["font-scale"]=i.scale.serialize()),i.font&&(n["text-font"]=i.font.serialize()),i.textColor&&(n["text-color"]=i.textColor.serialize()),e.push(n)}return e}}class fn{constructor(e,i){this.type=_o,this.inputPrimary=e,this.inputSecondary=i}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");const n=i.parse(e[1],1,Lt);if(!n)return i.error("No image name provided.");if(e.length===2)return new fn(n);const o=i.parse(e[2],1,Lt);return o?new fn(n,o):i.error("Secondary image variant is not a string.")}evaluate(e){const i=_r.fromString(this.inputPrimary.evaluate(e),this.inputSecondary?this.inputSecondary.evaluate(e):void 0);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(i.namePrimary)>-1,i.nameSecondary&&i.available&&e.availableImages&&(i.available=e.availableImages.indexOf(i.nameSecondary)>-1)),i}eachChild(e){e(this.inputPrimary),this.inputSecondary&&e(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function jn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}const zp={"to-boolean":Gt,"to-color":Rr,"to-number":We,"to-string":Lt};class mn{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const n=e[0],o=[];let l=mr;if(n==="to-array"){if(!Array.isArray(e[1]))return null;const c=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);l=Wi(i.expectedType.itemType,c)}else{if(!(c>0&&ls(e[1][0])))return null;l=Wi(Ii(e[1][0]),c)}for(let d=0;d4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Nh(i[0],i[1],i[2],i[3]),!n))return new Ut(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Ci(n||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const n of this.args){if(i=n.evaluate(e),i===null)return 0;const o=Number(i);if(!isNaN(o))return o}throw new Ci(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?ir.fromString(qr(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?_r.fromString(qr(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):qr(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new go([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new fn(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const Dp=["Unknown","Point","LineString","Polygon"];class cu{constructor(e,i){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=i}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Dp[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||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:n,y:o}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(n*i-e[0])+this.featureDistanceData.bearing[1]*(o*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=Ut.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class cr{constructor(e,i,n,o,l){this.name=e,this.type=i,this._evaluate=n,this.args=o,this._overloadIndex=l}evaluate(e){if(!this._evaluate){const i=cr.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const n=e[0],o=cr.definitions[n];if(!o)return i.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const l=Array.isArray(o)?o[0]:o.type,c=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,d=[];let f=null,_=-1;for(const[y,v]of c){if(Array.isArray(y)&&y.length!==e.length-1)continue;d.push(y),_++,f=new id(i.registry,i.path,null,i.scope,void 0,i._scope,i.options);const b=[];let E=!1;for(let M=1;Mb)).map(Rp).join(" | "),v=[];for(let b=1;bi;){if(n-i>600){const f=n-i+1,_=e-i+1,y=Math.log(f),v=.5*Math.exp(2*y/3),b=.5*Math.sqrt(y*v*(f-v)/f)*(_-f/2<0?-1:1);jt(t,e,Math.max(i,Math.floor(e-_*v/f+b)),Math.min(n,Math.floor(e+(f-_)*v/f+b)),o)}const l=t[e];let c=i,d=n;for(cs(t,i,e),o(t[n],l)>0&&cs(t,i,n);c0;)d--}o(t[i],l)===0?cs(t,i,d):(d++,cs(t,d,n)),d<=e&&(i=d+1),e<=d&&(n=d-1)}}function cs(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function Vh(t,e){return te?1:0}function Lp(t){let e=0;for(let i,n,o=0,l=t.length,c=l-1;o=e[2]||t[1]<=e[1]||t[3]>=e[3])}function kl(t,e,i){const n=t[0]-e[0],o=t[1]-e[1],l=t[0]-i[0],c=t[1]-i[1];return n*c-l*o==0&&n*l<=0&&o*c<=0}function _n(t,e,i=!1){let n=!1;for(let d=0,f=e.length;d(o=t)[1]!=(c=M)[1]>o[1]&&o[0]<(c[0]-l[0])*(o[1]-l[1])/(c[1]-l[1])+l[0]&&(n=!n)}}var o,l,c;return n}function Uh(t,e,i,n){const o=n[0]-i[0],l=n[1]-i[1],c=(t[0]-i[0])*l-o*(t[1]-i[1]),d=(e[0]-i[0])*l-o*(e[1]-i[1]);return c>0&&d<0||c<0&&d>0}function xa(t,e,i,n){return(o=[n[0]-i[0],n[1]-i[1]])[0]*(l=[e[0]-t[0],e[1]-t[1]])[1]-o[1]*l[0]!=0&&!(!Uh(t,e,i,n)||!Uh(i,n,t,e));var o,l}const Hi=8192;function kp(t,e){const i=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(i*o*Hi),Math.round(n*o*Hi)]}function jh(t,e){for(let i=0;ii[2]){const o=.5*n;let l=t[0]-i[0]>o?-n:i[0]-t[0]>o?n:0;l===0&&(l=t[0]-i[2]>o?-n:i[2]-t[0]>o?n:0),t[0]+=l}ya(e,t)}function Bl(t,e,i,n){const o=Math.pow(2,n.z)*Hi,l=[n.x*Hi,n.y*Hi],c=[];if(!t)return c;for(const d of t)for(const f of d){const _=[f.x+l[0],f.y+l[1]];hu(_,e,i,o),c.push(_)}return c}function $h(t,e,i,n){const o=Math.pow(2,n.z)*Hi,l=[n.x*Hi,n.y*Hi],c=[];if(!t)return c;for(const f of t){const _=[];for(const y of f){const v=[y.x+l[0],y.y+l[1]];ya(e,v),_.push(v)}c.push(_)}if(e[2]-e[0]<=o/2){(d=e)[0]=d[1]=1/0,d[2]=d[3]=-1/0;for(const f of c)for(const _ of f)hu(_,e,i,o)}var d;return c}class rn{constructor(e,i){this.type=Gt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ls(e[1])){const n=e[1];if(n.type==="FeatureCollection")for(let o=0;oi)return du(l,c,(i-(n-d))/d)}return e[e.length-1]}pointToSegmentDistance(e,i,n){let[o,l]=i,c=yr(n[0]-o)*this.kx,d=(n[1]-l)*this.ky;if(c!==0||d!==0){const f=(yr(e[0]-o)*this.kx*c+(e[1]-l)*this.ky*d)/(c*c+d*d);f>1?(o=n[0],l=n[1]):f>0&&(o+=c/this.kx*f,l+=d/this.ky*f)}return c=yr(e[0]-o)*this.kx,d=(e[1]-l)*this.ky,Math.sqrt(c*c+d*d)}pointOnLine(e,i){let n=1/0,o=e[0][0],l=e[0][1],c=0,d=0;for(let f=0;f1?(_=e[f+1][0],y=e[f+1][1]):E>0&&(_+=v/this.kx*E,y+=b/this.ky*E)),v=yr(i[0]-_)*this.kx,b=(i[1]-y)*this.ky;const M=v*v+b*b;Ml.index||o.index===l.index&&o.t>l.t){const _=o;o=l,l=_}const c=[o.point],d=o.index+1,f=l.index;!Wh(n[d],c[0])&&d<=f&&c.push(n[d]);for(let _=d+1;_<=f;_++)c.push(n[_]);return Wh(n[f],l.point)||c.push(l.point),c}lineSliceAlong(e,i,n){let o=0;const l=[];for(let c=0;ce&&l.length===0&&l.push(du(d,f,(e-(o-_))/_)),o>=i)return l.push(du(d,f,(i-(o-_))/_)),l;o>e&&l.push(f)}return l}bufferPoint(e,i){const n=i/this.ky,o=i/this.kx;return[e[0]-o,e[1]-n,e[0]+o,e[1]+n]}bufferBBox(e,i){const n=i/this.ky,o=i/this.kx;return[e[0]-o,e[1]-n,e[2]+o,e[3]+n]}insideBBox(e,i){return yr(e[0]-i[0])>=0&&yr(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function Wh(t,e){return t[0]===e[0]&&t[1]===e[1]}function du(t,e,i){const n=yr(e[0]-t[0]);return[t[0]+n*i,t[1]+(e[1]-t[1])*i]}function yr(t){for(;t<-180;)t+=360;for(;t>180;)t-=360;return t}class $n{constructor(e=[],i=(n,o)=>no?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,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;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:n}=this,o=i[e];for(;e>0;){const l=e-1>>1,c=i[l];if(n(o,c)>=0)break;i[e]=c,e=l}i[e]=o}_down(e){const{data:i,compare:n}=this,o=this.length>>1,l=i[e];for(;e=0)break;i[e]=i[c],e=c}i[e]=l}}var Fe=8192;function Hh(t,e){return e.dist-t.dist}const Ta=100,pu=50;function Xh(t){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==t.length)return!1;for(let i=0;i=t[0]&&t[1]t[1])return[null,null];const i=Nl(t);if(e){if(i===2)return[t,null];const n=Math.floor(i/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}{if(i===1)return[t,null];const n=Math.floor(i/2)-1;return[[t[0],t[0]+n],[t[0]+n+1,t[1]]]}}function xr(t,e){const i=[1/0,1/0,-1/0,-1/0];if(!gn(e,t.length))return i;for(let n=e[0];n<=e[1];++n)ya(i,t[n]);return i}function Vl(t){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;ie[2]&&(n=t[0]-e[2]),t[1]>e[3]&&(o=t[1]-e[3]),t[3]=n)return n;if(Gn(o,l)){if(ed(t,e))return 0}else if(ed(e,t))return 0;let c=n;for(const d of t)for(let f=0,_=d.length,y=_-1;f<_;y=f++)for(const v of e)for(let b=0,E=v.length,M=E-1;b=l)continue;const y=_.range1;if(Nl(y)<=d){if(!gn(y,t.length))return NaN;if(e){const v=Vp(t,y,i,n);if((l=Math.min(l,v))===0)return l}else for(let v=y[0];v<=y[1];++v){const b=Np(t[v],i,n);if((l=Math.min(l,b))===0)return l}}else{const v=fu(y,e);if(v[0]!==null){const b=us(xr(t,v[0]),f,n);b=c)continue;const v=y.range1,b=y.range2;if(Nl(v)<=f&&Nl(b)<=_){if(!gn(v,t.length)||!gn(b,i.length))return NaN;if(e&&n?c=Math.min(c,Bp(t,v,i,b,o)):e||n?e&&!n?c=Math.min(c,mu(i,b,t,v,o)):!e&&n&&(c=Math.min(c,mu(t,v,i,b,o))):c=Math.min(c,Fp(t,v,i,b,o)),c===0)return c}else{const E=fu(v,e),M=fu(b,n);yo(d,c,o,t,i,E[0],M[0]),yo(d,c,o,t,i,E[0],M[1]),yo(d,c,o,t,i,E[1],M[0]),yo(d,c,o,t,i,E[1],M[1])}}return c}function _u(t,e,i,n,o=1/0){let l=o;const c=xr(t,[0,t.length-1]);for(const d of i)if(!(l!==1/0&&us(c,xr(d,[0,d.length-1]),n)>=l)&&(l=Math.min(l,Ea(t,e,d,!0,n,l)),l===0))return l;return l}function jl(t,e,i,n,o=1/0){let l=o;const c=xr(t,[0,t.length-1]);for(const d of i){if(l!==1/0&&us(c,Vl(d),n)>=l)continue;const f=br(t,e,d,n,l);if(isNaN(f))return f;if((l=Math.min(l,f))===0)return l}return l}function gu(t){return t==="Point"||t==="MultiPoint"||t==="LineString"||t==="MultiLineString"||t==="Polygon"||t==="MultiPolygon"}class xo{constructor(e,i){this.type=We,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(ls(e[1])){const n=e[1];if(n.type==="FeatureCollection"){for(let o=0;oi&&(t=i),t}class qn{constructor(e,i,n){this.type=e,this.key=i,this.scope=n}static parse(e,i){let n=i.expectedType;if(n==null&&(n=Nt),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const o=i.parse(e[1],1);if(!(o instanceof Zr))return i.error("Key name of 'config' expression must be a string literal.");if(e.length>=3){const l=i.parse(e[2],2);return l instanceof Zr?new qn(n,qr(o.value),qr(l.value)):i.error("Scope of 'config' expression must be a string literal.")}return new qn(n,qr(o.value))}evaluate(e){const i=[this.key,this.scope,e.scope].filter(Boolean).join(""),n=e.getConfig(i);if(!n)return null;const{type:o,value:l,values:c,minValue:d,maxValue:f,stepValue:_}=n,y=n.default.evaluate(e);let v=y;if(l){const b=e.scope;e.scope=(b||"").split("").slice(1).join(""),v=l.evaluate(e),e.scope=b}return o&&(v=Sa(o,v)),v===void 0||d===void 0&&f===void 0&&_===void 0||(typeof v=="number"?v=td(v,d,f,_):Array.isArray(v)&&(v=v.map(b=>typeof b=="number"?td(b,d,f,_):b))),l!==void 0&&v!==void 0&&c&&!c.includes(v)&&(v=y,o&&(v=Sa(o,v))),(o&&o!==this.type||v!==void 0&&Ii(v)!==this.type)&&(v=Sa(this.type.kind,v)),v}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.key),e}}function Ma(t){if(t instanceof cr&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof rn||t instanceof xo)return!1;let e=!0;return t.eachChild(i=>{e&&!Ma(i)&&(e=!1)}),e}function Gl(t){if(t instanceof cr&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(i=>{e&&!Gl(i)&&(e=!1)}),e}function Ia(t){if(t instanceof qn)return new Set([t.key]);let e=new Set;return t.eachChild(i=>{e=new Set([...e,...Ia(i)])}),e}function Aa(t,e){if(t instanceof cr&&e.indexOf(t.name)>=0)return!1;let i=!0;return t.eachChild(n=>{i&&!Aa(n,e)&&(i=!1)}),i}class Ca{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const n=e[1];return i.scope.has(n)?new Ca(n,i.scope.get(n)):i.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class $l{constructor(e,i=[],n,o=new su,l=[],c,d){this.registry=e,this.path=i,this.key=i.map(f=>`[${f}]`).join(""),this.scope=o,this.errors=l,this.expectedType=n,this._scope=c,this.options=d}parse(e,i,n,o,l={}){return i||n?this.concat(i,n,o)._parse(e,l):this._parse(e,l)}_parse(e,i){function n(o,l,c){return c==="assert"?new gr(l,[o]):c==="coerce"?new mn(l,[o]):o}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const o=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(o){let l=o.parse(e,this);if(!l)return null;if(this.expectedType){const c=this.expectedType,d=l.type;if(c.kind!=="string"&&c.kind!=="number"&&c.kind!=="boolean"&&c.kind!=="object"&&c.kind!=="array"||d.kind!=="value")if(c.kind!=="color"&&c.kind!=="formatted"&&c.kind!=="resolvedImage"||d.kind!=="value"&&d.kind!=="string"){if(this.checkSubtype(c,d))return null}else l=n(l,c,i.typeAnnotation||"coerce");else l=n(l,c,i.typeAnnotation||"assert")}if(!(l instanceof Zr)&&l.type.kind!=="resolvedImage"&&Pa(l)){const c=new cu(this._scope,this.options);try{l=new Zr(l.type,l.evaluate(c))}catch(d){return this.error(d.message),null}}return l}return mn.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,n){const o=typeof e=="number"?this.path.concat(e):this.path,l=n?this.scope.concat(n):this.scope;return new $l(this.registry,o,i||null,l,this.errors,this._scope,this.options)}error(e,...i){const n=`${this.key}${i.map(o=>`[${o}]`).join("")}`;this.errors.push(new tn(n,e))}checkSubtype(e,i){const n=ma(e,i);return n&&this.error(n),n}}var id=$l;function Pa(t){if(t instanceof Ca)return Pa(t.boundExpression);if(t instanceof cr&&t.name==="error"||t instanceof ga||t instanceof rn||t instanceof xo||t instanceof qn)return!1;const e=t instanceof mn||t instanceof gr;let i=!0;return t.eachChild(n=>{i=e?i&&Pa(n):i&&n instanceof Zr}),!!i&&Ma(t)&&Aa(t,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function vo(t,e){const i=t.length-1;let n,o,l=0,c=i,d=0;for(;l<=c;)if(d=Math.floor((l+c)/2),n=t[d],o=t[d+1],n<=e){if(d===i||ee))throw new Ci("Input is not a number.");c=d-1}return 0}class ds{constructor(e,i,n){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[o,l]of n)this.labels.push(o),this.outputs.push(l)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const n=i.parse(e[1],1,We);if(!n)return null;const o=[];let l=null;i.expectedType&&i.expectedType.kind!=="value"&&(l=i.expectedType);for(let c=1;c=d)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',_);const v=i.parse(f,y,l);if(!v)return null;l=l||v.type,o.push([d,v])}return new ds(l,n,o)}evaluate(e){const i=this.labels,n=this.outputs;if(i.length===1)return n[0].evaluate(e);const o=this.input.evaluate(e);if(o<=i[0])return n[0].evaluate(e);const l=i.length;return o>=i[l-1]?n[l-1].evaluate(e):n[vo(i,o)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const rd=.95047,yu=1.08883,nd=4/29,Zn=6/29,od=3*Zn*Zn,Up=Zn*Zn*Zn,jp=Math.PI/180,Gp=180/Math.PI;function ql(t){return t>Up?Math.pow(t,1/3):t/od+nd}function xu(t){return t>Zn?t*t*t:od*(t-nd)}function vu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function sd(t){const e=bu(t.r),i=bu(t.g),n=bu(t.b),o=ql((.4124564*e+.3575761*i+.1804375*n)/rd),l=ql((.2126729*e+.7151522*i+.072175*n)/1);return{l:116*l-16,a:500*(o-l),b:200*(l-ql((.0193339*e+.119192*i+.9503041*n)/yu)),alpha:t.a}}function ad(t){let e=(t.l+16)/116,i=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*xu(e),i=rd*xu(i),n=yu*xu(n),new Ut(vu(3.2404542*i-1.5371385*e-.4985314*n),vu(-.969266*i+1.8760108*e+.041556*n),vu(.0556434*i-.2040259*e+1.0572252*n),t.alpha)}function $p(t,e,i){const n=e-t;return t+i*(n>180||n<-180?n-360*Math.round(n/360):n)}const za={forward:sd,reverse:ad,interpolate:function(t,e,i){return{l:rt(t.l,e.l,i),a:rt(t.a,e.a,i),b:rt(t.b,e.b,i),alpha:rt(t.alpha,e.alpha,i)}}},Da={forward:function(t){const{l:e,a:i,b:n}=sd(t),o=Math.atan2(n,i)*Gp;return{h:o<0?o+360:o,c:Math.sqrt(i*i+n*n),l:e,alpha:t.a}},reverse:function(t){const e=t.h*jp,i=t.c;return ad({l:t.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:t.alpha})},interpolate:function(t,e,i){return{h:$p(t.h,e.h,i),c:rt(t.c,e.c,i),l:rt(t.l,e.l,i),alpha:rt(t.alpha,e.alpha,i)}}};var Ra=Object.freeze({__proto__:null,hcl:Da,lab:za});class wr{constructor(e,i,n,o,l){this.type=e,this.operator=i,this.interpolation=n,this.input=o,this.labels=[],this.outputs=[];for(const[c,d]of l)this.labels.push(c),this.outputs.push(d)}static interpolationFactor(e,i,n,o){let l=0;if(e.name==="exponential")l=wu(i,e.base,n,o);else if(e.name==="linear")l=wu(i,1,n,o);else if(e.name==="cubic-bezier"){const c=e.controlPoints;l=new Vc(c[0],c[1],c[2],c[3]).solve(wu(i,1,n,o))}return l}static parse(e,i){let[n,o,l,...c]=e;if(!Array.isArray(o)||o.length===0)return i.error("Expected an interpolation type expression.",1);if(o[0]==="linear")o={name:"linear"};else if(o[0]==="exponential"){const _=o[1];if(typeof _!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);o={name:"exponential",base:_}}else{if(o[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(o[0])}`,1,0);{const _=o.slice(1);if(_.length!==4||_.some(y=>typeof y!="number"||y<0||y>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:_}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(l=i.parse(l,2,We),!l)return null;const d=[];let f=null;n==="interpolate-hcl"||n==="interpolate-lab"?f=Rr:i.expectedType&&i.expectedType.kind!=="value"&&(f=i.expectedType);for(let _=0;_=y)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',b);const M=i.parse(v,E,f);if(!M)return null;f=f||M.type,d.push([y,M])}return f.kind==="number"||f.kind==="color"||f.kind==="array"&&f.itemType.kind==="number"&&typeof f.N=="number"?new wr(f,n,o,l,d):i.error(`Type ${mi(f)} is not interpolatable.`)}evaluate(e){const i=this.labels,n=this.outputs;if(i.length===1)return n[0].evaluate(e);const o=this.input.evaluate(e);if(o<=i[0])return n[0].evaluate(e);const l=i.length;if(o>=i[l-1])return n[l-1].evaluate(e);const c=vo(i,o),d=wr.interpolationFactor(this.interpolation,o,i[c],i[c+1]),f=n[c].evaluate(e),_=n[c+1].evaluate(e);return this.operator==="interpolate"?fa[this.type.kind.toLowerCase()](f,_,d):this.operator==="interpolate-hcl"?Da.reverse(Da.interpolate(Da.forward(f),Da.forward(_),d)):za.reverse(za.interpolate(za.forward(f),za.forward(_),d))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const i=[this.operator,e,this.input.serialize()];for(let n=0;nma(o,d.type));return new bo(c?Nt:n,l)}evaluate(e){let i,n=null,o=0;for(const l of this.args){if(o++,n=l.evaluate(e),n&&n instanceof _r&&!n.available&&(i||(i=n),n=null,o===this.args.length))return i;if(n!==null)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class Zl{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let l=1;l=n.length)throw new Ci(`Array index out of bounds: ${i} > ${n.length-1}.`);if(i!==Math.floor(i))throw new Ci(`Array index must be an integer, but found ${i} instead.`);return n[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Tu{constructor(e,i){this.type=Gt,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=i.parse(e[1],1,Nt),o=i.parse(e[2],2,Nt);return n&&o?Lr(n.type,[Gt,Lt,We,mr,Nt])?new Tu(n,o):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${mi(n.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(n==null)return!1;if(!_a(i,["boolean","string","number","null"]))throw new Ci(`Expected first argument to be of type boolean, string, number or null, but found ${mi(Ii(i))} instead.`);if(!_a(n,["string","array"]))throw new Ci(`Expected second argument to be of type array or string, but found ${mi(Ii(n))} instead.`);return n.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class La{constructor(e,i,n){this.type=We,this.needle=e,this.haystack=i,this.fromIndex=n}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=i.parse(e[1],1,Nt),o=i.parse(e[2],2,Nt);if(!n||!o)return null;if(!Lr(n.type,[Gt,Lt,We,mr,Nt]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${mi(n.type)} instead`);if(e.length===4){const l=i.parse(e[3],3,We);return l?new La(n,o,l):null}return new La(n,o)}evaluate(e){const i=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!_a(i,["boolean","string","number","null"]))throw new Ci(`Expected first argument to be of type boolean, string, number or null, but found ${mi(Ii(i))} instead.`);if(!_a(n,["string","array"]))throw new Ci(`Expected second argument to be of type array or string, but found ${mi(Ii(n))} instead.`);if(this.fromIndex){const o=this.fromIndex.evaluate(e);return n.indexOf(i,o)}return n.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Hl{constructor(e,i,n,o,l,c){this.inputType=e,this.type=i,this.input=n,this.cases=o,this.outputs=l,this.otherwise=c}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let n,o;i.expectedType&&i.expectedType.kind!=="value"&&(o=i.expectedType);const l={},c=[];for(let _=2;_Number.MAX_SAFE_INTEGER)return b.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof M=="number"&&Math.floor(M)!==M)return b.error("Numeric branch labels must be integer values.");if(n){if(b.checkSubtype(n,Ii(M)))return null}else n=Ii(M);if(l[String(M)]!==void 0)return b.error("Branch labels must be unique.");l[String(M)]=c.length}const E=i.parse(v,_,o);if(!E)return null;o=o||E.type,c.push(E)}const d=i.parse(e[1],1,Nt);if(!d)return null;const f=i.parse(e[e.length-1],e.length-1,o);return f?d.type.kind!=="value"&&i.concat(1).checkSubtype(n,d.type)?null:new Hl(n,o,d,l,c,f):null}evaluate(e){const i=this.input.evaluate(e);return(Ii(i)===this.inputType&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),n=[],o={};for(const c of i){const d=o[this.cases[c]];d===void 0?(o[this.cases[c]]=n.length,n.push([this.cases[c],[c]])):n[d][1].push(c)}const l=c=>this.inputType.kind==="number"?Number(c):c;for(const[c,d]of n)e.push(d.length===1?l(d[0]):d.map(l)),e.push(this.outputs[c].serialize());return e.push(this.otherwise.serialize()),e}}class Xl{constructor(e,i,n){this.type=e,this.branches=i,this.otherwise=n}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let n;i.expectedType&&i.expectedType.kind!=="value"&&(n=i.expectedType);const o=[];for(let c=1;ci.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class ka{constructor(e,i,n,o){this.type=e,this.input=i,this.beginIndex=n,this.endIndex=o}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=i.parse(e[1],1,Nt),o=i.parse(e[2],2,We);if(!n||!o)return null;if(!Lr(n.type,[Wi(Nt),Lt,Nt]))return i.error(`Expected first argument to be of type array or string, but found ${mi(n.type)} instead`);if(e.length===4){const l=i.parse(e[3],3,We);return l?new ka(n.type,n,o,l):null}return new ka(n.type,n,o)}evaluate(e){const i=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!_a(i,["string","array"]))throw new Ci(`Expected first argument to be of type array or string, but found ${mi(Ii(i))} instead.`);if(this.endIndex){const o=this.endIndex.evaluate(e);return i.slice(n,o)}return i.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Yl(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function Jl(t,e,i,n){return n.compare(e,i)===0}function ps(t,e,i){const n=t!=="=="&&t!=="!=";return class J0{constructor(l,c,d){this.type=Gt,this.lhs=l,this.rhs=c,this.collator=d,this.hasUntypedArgument=l.type.kind==="value"||c.type.kind==="value"}static parse(l,c){if(l.length!==3&&l.length!==4)return c.error("Expected two or three arguments.");const d=l[0];let f=c.parse(l[1],1,Nt);if(!f)return null;if(!Yl(d,f.type))return c.concat(1).error(`"${d}" comparisons are not supported for type '${mi(f.type)}'.`);let _=c.parse(l[2],2,Nt);if(!_)return null;if(!Yl(d,_.type))return c.concat(2).error(`"${d}" comparisons are not supported for type '${mi(_.type)}'.`);if(f.type.kind!==_.type.kind&&f.type.kind!=="value"&&_.type.kind!=="value")return c.error(`Cannot compare types '${mi(f.type)}' and '${mi(_.type)}'.`);n&&(f.type.kind==="value"&&_.type.kind!=="value"?f=new gr(_.type,[f]):f.type.kind!=="value"&&_.type.kind==="value"&&(_=new gr(f.type,[_])));let y=null;if(l.length===4){if(f.type.kind!=="string"&&_.type.kind!=="string"&&f.type.kind!=="value"&&_.type.kind!=="value")return c.error("Cannot use collator to compare non-string types.");if(y=c.parse(l[3],3,Dl),!y)return null}return new J0(f,_,y)}evaluate(l){const c=this.lhs.evaluate(l),d=this.rhs.evaluate(l);if(n&&this.hasUntypedArgument){const f=Ii(c),_=Ii(d);if(f.kind!==_.kind||f.kind!=="string"&&f.kind!=="number")throw new Ci(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${f.kind}, ${_.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const f=Ii(c),_=Ii(d);if(f.kind!=="string"||_.kind!=="string")return e(l,c,d)}return this.collator?i(l,c,d,this.collator.evaluate(l)):e(l,c,d)}eachChild(l){l(this.lhs),l(this.rhs),this.collator&&l(this.collator)}outputDefined(){return!0}serialize(){const l=[t];return this.eachChild(c=>{l.push(c.serialize())}),l}}}const qp=ps("==",function(t,e,i){return e===i},Jl),ld=ps("!=",function(t,e,i){return e!==i},function(t,e,i,n){return!Jl(0,e,i,n)}),Zp=ps("<",function(t,e,i){return e",function(t,e,i){return e>i},function(t,e,i,n){return n.compare(e,i)>0}),Hp=ps("<=",function(t,e,i){return e<=i},function(t,e,i,n){return n.compare(e,i)<=0}),Xp=ps(">=",function(t,e,i){return e>=i},function(t,e,i,n){return n.compare(e,i)>=0});class Eu{constructor(e,i,n,o,l,c){this.type=Lt,this.number=e,this.locale=i,this.currency=n,this.unit=o,this.minFractionDigits=l,this.maxFractionDigits=c}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const n=i.parse(e[1],1,We);if(!n)return null;const o=e[2];if(typeof o!="object"||Array.isArray(o))return i.error("NumberFormat options argument must be an object.");let l=null;if(o.locale&&(l=i.parse(o.locale,1,Lt),!l))return null;let c=null;if(o.currency&&(c=i.parse(o.currency,1,Lt),!c))return null;let d=null;if(o.unit&&(d=i.parse(o.unit,1,Lt),!d))return null;let f=null;if(o["min-fraction-digits"]&&(f=i.parse(o["min-fraction-digits"],1,We),!f))return null;let _=null;return o["max-fraction-digits"]&&(_=i.parse(o["max-fraction-digits"],1,We),!_)?null:new Eu(n,l,c,d,f,_)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Su{constructor(e){this.type=We,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=i.parse(e[1],1);return n?n.type.kind!=="array"&&n.type.kind!=="string"&&n.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${mi(n.type)} instead.`):new Su(n):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Ci(`Expected value to be of type string or array, but found ${mi(Ii(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function cd(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const fs={"==":qp,"!=":ld,">":Wp,"<":Zp,">=":Xp,"<=":Hp,array:gr,at:Wl,boolean:gr,case:Xl,coalesce:bo,collator:ga,format:go,image:fn,in:Tu,"index-of":La,interpolate:wr,"interpolate-hcl":wr,"interpolate-lab":wr,length:Su,let:Zl,literal:Zr,match:Hl,number:gr,"number-format":Eu,object:gr,slice:ka,step:ds,string:gr,"to-boolean":mn,"to-color":mn,"to-number":mn,"to-string":mn,var:Ca,within:rn,distance:xo,config:qn};function ud(t,[e,i,n,o]){e=e.evaluate(t),i=i.evaluate(t),n=n.evaluate(t);const l=o?o.evaluate(t):1,c=Nh(e,i,n,l);if(c)throw new Ci(c);return new Ut(e/255*l,i/255*l,n/255*l,l)}function Yp(t,[e,i,n,o]){e=e.evaluate(t),i=i.evaluate(t),n=n.evaluate(t);const l=o?o.evaluate(t):1,c=function(_,y,v,b){return typeof _=="number"&&_>=0&&_<=360?typeof y=="number"&&y>=0&&y<=100&&typeof v=="number"&&v>=0&&v<=100?b===void 0||typeof b=="number"&&b>=0&&b<=1?null:`Invalid hsla value [${[_,y,v,b].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof b=="number"?[_,y,v,b]:[_,y,v]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof b=="number"?[_,y,v,b]:[_,y,v]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,n,l);if(c)throw new Ci(c);const d=`hsla(${e}, ${i}%, ${n}%, ${l})`,f=Ut.parse(d);if(!f)throw new Ci(`Failed to parse HSLA color: ${d}`);return f}function u(t,e){return t in e}function r(t,e){const i=e[t];return i===void 0?null:i}function a(t){return{type:t}}function h(t){return{result:"success",value:t}}function p(t){return{result:"error",value:t}}function m(t,e){return!!t&&!!t.parameters&&t.parameters.indexOf(e)>-1}function g(t){return t["property-type"]==="data-driven"}function x(t){return m(t.expression,"measure-light")}function w(t){return m(t.expression,"zoom")}function T(t){return!!t.expression&&t.expression.interpolated}function S(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function I(t){return t}function P(t,e){const i=e.type==="color",n=t.stops&&typeof t.stops[0][0]=="object",o=n||!(n||t.property!==void 0),l=t.type||(T(e)?"exponential":"interval");if(i&&((t=os({},t)).stops&&(t.stops=t.stops.map(_=>[_[0],Ut.parse(_[1])])),t.default=Ut.parse(t.default?t.default:e.default)),t.colorSpace&&t.colorSpace!=="rgb"&&!Ra[t.colorSpace])throw new Error(`Unknown color space: ${t.colorSpace}`);let c,d,f;if(l==="exponential")c=O;else if(l==="interval")c=k;else if(l==="categorical"){c=L,d=Object.create(null);for(const _ of t.stops)d[_[0]]=_[1];f=typeof t.stops[0][0]}else{if(l!=="identity")throw new Error(`Unknown function type "${l}"`);c=B}if(n){const _={},y=[];for(let E=0;EE[0]),evaluate:({zoom:E},M)=>O({stops:v,base:t.base},e,E).evaluate(E,M)}}if(o){const _=l==="exponential"?{name:"exponential",base:t.base!==void 0?t.base:1}:null;return{kind:"camera",interpolationType:_,interpolationFactor:wr.interpolationFactor.bind(void 0,_),zoomStops:t.stops.map(y=>y[0]),evaluate:({zoom:y})=>c(t,e,y,d,f)}}return{kind:"source",evaluate(_,y){const v=y&&y.properties?y.properties[t.property]:void 0;return v===void 0?z(t.default,e.default):c(t,e,v,d,f)}}}function z(t,e,i){return t!==void 0?t:e!==void 0?e:i!==void 0?i:void 0}function L(t,e,i,n,o){return z(typeof i===o?n[i]:void 0,t.default,e.default)}function k(t,e,i){if(jn(i)!=="number")return z(t.default,e.default);const n=t.stops.length;if(n===1||i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[n-1][0])return t.stops[n-1][1];const o=vo(t.stops.map(l=>l[0]),i);return t.stops[o][1]}function O(t,e,i){const n=t.base!==void 0?t.base:1;if(jn(i)!=="number")return z(t.default,e.default);const o=t.stops.length;if(o===1||i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[o-1][0])return t.stops[o-1][1];const l=vo(t.stops.map(y=>y[0]),i),c=function(y,v,b,E){const M=E-b,A=y-b;return M===0?0:v===1?A/M:(Math.pow(v,A)-1)/(Math.pow(v,M)-1)}(i,n,t.stops[l][0],t.stops[l+1][0]),d=t.stops[l][1],f=t.stops[l+1][1];let _=fa[e.type]||I;if(t.colorSpace&&t.colorSpace!=="rgb"){const y=Ra[t.colorSpace];_=(v,b)=>y.reverse(y.interpolate(y.forward(v),y.forward(b),c))}return typeof d.evaluate=="function"?{evaluate(...y){const v=d.evaluate.apply(void 0,y),b=f.evaluate.apply(void 0,y);if(v!==void 0&&b!==void 0)return _(v,b,c)}}:_(d,f,c)}function B(t,e,i){return e.type==="color"?i=Ut.parse(i):e.type==="formatted"?i=ir.fromString(i.toString()):e.type==="resolvedImage"?i=_r.fromString(i.toString()):jn(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),z(i,t.default,e.default)}cr.register(fs,{error:[{kind:"error"},[Lt],(t,[e])=>{throw new Ci(e.evaluate(t))}],typeof:[Lt,[Nt],(t,[e])=>mi(Ii(e.evaluate(t)))],"to-rgba":[Wi(We,4),[Rr],(t,[e])=>e.evaluate(t).toRenderColor(null).toArray()],rgb:[Rr,[We,We,We],ud],rgba:[Rr,[We,We,We,We],ud],hsl:[Rr,[We,We,We],Yp],hsla:[Rr,[We,We,We,We],Yp],has:{type:Gt,overloads:[[[Lt],(t,[e])=>u(e.evaluate(t),t.properties())],[[Lt,ss],(t,[e,i])=>u(e.evaluate(t),i.evaluate(t))]]},get:{type:Nt,overloads:[[[Lt],(t,[e])=>r(e.evaluate(t),t.properties())],[[Lt,ss],(t,[e,i])=>r(e.evaluate(t),i.evaluate(t))]]},"feature-state":[Nt,[Lt],(t,[e])=>r(e.evaluate(t),t.featureState||{})],properties:[ss,[],t=>t.properties()],"geometry-type":[Lt,[],t=>t.geometryType()],id:[Nt,[],t=>t.id()],zoom:[We,[],t=>t.globals.zoom],pitch:[We,[],t=>t.globals.pitch||0],"distance-from-center":[We,[],t=>t.distanceFromCenter()],"measure-light":[We,[Lt],(t,[e])=>t.measureLight(e.evaluate(t))],"heatmap-density":[We,[],t=>t.globals.heatmapDensity||0],"line-progress":[We,[],t=>t.globals.lineProgress||0],"raster-value":[We,[],t=>t.globals.rasterValue||0],"raster-particle-speed":[We,[],t=>t.globals.rasterParticleSpeed||0],"sky-radial-progress":[We,[],t=>t.globals.skyRadialProgress||0],accumulated:[Nt,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[We,a(We),(t,e)=>{let i=0;for(const n of e)i+=n.evaluate(t);return i}],"*":[We,a(We),(t,e)=>{let i=1;for(const n of e)i*=n.evaluate(t);return i}],"-":{type:We,overloads:[[[We,We],(t,[e,i])=>e.evaluate(t)-i.evaluate(t)],[[We],(t,[e])=>-e.evaluate(t)]]},"/":[We,[We,We],(t,[e,i])=>e.evaluate(t)/i.evaluate(t)],"%":[We,[We,We],(t,[e,i])=>e.evaluate(t)%i.evaluate(t)],ln2:[We,[],()=>Math.LN2],pi:[We,[],()=>Math.PI],e:[We,[],()=>Math.E],"^":[We,[We,We],(t,[e,i])=>Math.pow(e.evaluate(t),i.evaluate(t))],sqrt:[We,[We],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[We,[We],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[We,[We],(t,[e])=>Math.log(e.evaluate(t))],log2:[We,[We],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[We,[We],(t,[e])=>Math.sin(e.evaluate(t))],cos:[We,[We],(t,[e])=>Math.cos(e.evaluate(t))],tan:[We,[We],(t,[e])=>Math.tan(e.evaluate(t))],asin:[We,[We],(t,[e])=>Math.asin(e.evaluate(t))],acos:[We,[We],(t,[e])=>Math.acos(e.evaluate(t))],atan:[We,[We],(t,[e])=>Math.atan(e.evaluate(t))],min:[We,a(We),(t,e)=>Math.min(...e.map(i=>i.evaluate(t)))],max:[We,a(We),(t,e)=>Math.max(...e.map(i=>i.evaluate(t)))],abs:[We,[We],(t,[e])=>Math.abs(e.evaluate(t))],round:[We,[We],(t,[e])=>{const i=e.evaluate(t);return i<0?-Math.round(-i):Math.round(i)}],floor:[We,[We],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[We,[We],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Gt,[Lt,Nt],(t,[e,i])=>t.properties()[e.value]===i.value],"filter-id-==":[Gt,[Nt],(t,[e])=>t.id()===e.value],"filter-type-==":[Gt,[Lt],(t,[e])=>t.geometryType()===e.value],"filter-<":[Gt,[Lt,Nt],(t,[e,i])=>{const n=t.properties()[e.value],o=i.value;return typeof n==typeof o&&n{const i=t.id(),n=e.value;return typeof i==typeof n&&i":[Gt,[Lt,Nt],(t,[e,i])=>{const n=t.properties()[e.value],o=i.value;return typeof n==typeof o&&n>o}],"filter-id->":[Gt,[Nt],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i>n}],"filter-<=":[Gt,[Lt,Nt],(t,[e,i])=>{const n=t.properties()[e.value],o=i.value;return typeof n==typeof o&&n<=o}],"filter-id-<=":[Gt,[Nt],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i<=n}],"filter->=":[Gt,[Lt,Nt],(t,[e,i])=>{const n=t.properties()[e.value],o=i.value;return typeof n==typeof o&&n>=o}],"filter-id->=":[Gt,[Nt],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i>=n}],"filter-has":[Gt,[Nt],(t,[e])=>e.value in t.properties()],"filter-has-id":[Gt,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Gt,[Wi(Lt)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Gt,[Wi(Nt)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Gt,[Lt,Wi(Nt)],(t,[e,i])=>i.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Gt,[Lt,Wi(Nt)],(t,[e,i])=>function(n,o,l,c){for(;l<=c;){const d=l+c>>1;if(o[d]===n)return!0;o[d]>n?c=d-1:l=d+1}return!1}(t.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Gt,overloads:[[[Gt,Gt],(t,[e,i])=>e.evaluate(t)&&i.evaluate(t)],[a(Gt),(t,e)=>{for(const i of e)if(!i.evaluate(t))return!1;return!0}]]},any:{type:Gt,overloads:[[[Gt,Gt],(t,[e,i])=>e.evaluate(t)||i.evaluate(t)],[a(Gt),(t,e)=>{for(const i of e)if(i.evaluate(t))return!0;return!1}]]},"!":[Gt,[Gt],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Gt,[Lt],(t,[e])=>{const i=t.globals&&t.globals.isSupportedScript;return!i||i(e.evaluate(t))}],upcase:[Lt,[Lt],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[Lt,[Lt],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[Lt,a(Nt),(t,e)=>e.map(i=>qr(i.evaluate(t))).join("")],"resolved-locale":[Lt,[Dl],(t,[e])=>e.evaluate(t).resolvedLocale()],random:[We,[We,We,Nt],(t,e)=>{const[i,n,o]=e.map(c=>c.evaluate(t));if(i>n||i===n)return i;let l;if(typeof o=="string")l=function(c){let d=0;if(c.length===0)return d;for(let f=0;fJSON.stringify(y)).join(", ")}, but found ${JSON.stringify(_)} instead.`);return _}catch(_){return this._warningHistory[_.message]||(this._warningHistory[_.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${_.message}`)),this._defaultValue}}}function $(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in fs}function j(t,e,i,n){const o=new id(fs,[],e?function(c){const d={color:Rr,string:Lt,number:We,enum:Lt,boolean:Gt,formatted:as,resolvedImage:_o};return c.type==="array"?Wi(d[c.value]||Nt,c.length):d[c.type]}(e):void 0,void 0,void 0,i,n),l=o.parse(t,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return l?h(new G(l,e,i,n)):p(o.errors)}class J{constructor(e,i,n){this.kind=e,this._styleExpression=i,this.isLightConstant=n,this.isStateDependent=e!=="constant"&&!Gl(i.expression),this.configDependencies=Ia(i.expression)}evaluateWithoutErrorHandling(e,i,n,o,l,c){return this._styleExpression.evaluateWithoutErrorHandling(e,i,n,o,l,c)}evaluate(e,i,n,o,l,c){return this._styleExpression.evaluate(e,i,n,o,l,c)}}class Z{constructor(e,i,n,o,l){this.kind=e,this.zoomStops=n,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!Gl(i.expression),this.isLightConstant=l,this.configDependencies=Ia(i.expression),this.interpolationType=o}evaluateWithoutErrorHandling(e,i,n,o,l,c){return this._styleExpression.evaluateWithoutErrorHandling(e,i,n,o,l,c)}evaluate(e,i,n,o,l,c){return this._styleExpression.evaluate(e,i,n,o,l,c)}interpolationFactor(e,i,n){return this.interpolationType?wr.interpolationFactor(this.interpolationType,e,i,n):0}}function W(t,e,i,n){if((t=j(t,e,i,n)).result==="error")return t;const o=t.value.expression,l=Ma(o);if(!l&&!g(e))return p([new tn("","data expressions not supported")]);const c=Aa(o,["zoom","pitch","distance-from-center"]);if(!c&&!w(e))return p([new tn("","zoom expressions not supported")]);const d=Aa(o,["measure-light"]);if(!d&&!x(e))return p([new tn("","measure-light expression not supported")]);const f=e.expression&&e.expression.relaxZoomRestriction,_=ie(o);return _||c||f?_ instanceof tn?p([_]):_ instanceof wr&&!T(e)?p([new tn("",'"interpolate" expressions cannot be used with this property')]):h(_?new Z(l?"camera":"composite",t.value,_.labels,_ instanceof wr?_.interpolation:void 0,d):new J(l?"constant":"source",t.value,d)):p([new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class ee{constructor(e,i){this._parameters=e,this._specification=i,os(this,P(this._parameters,this._specification))}static deserialize(e){return new ee(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function ie(t){let e=null;if(t instanceof Zl)e=ie(t.result);else if(t instanceof bo){for(const i of t.args)if(e=ie(i),e)break}else(t instanceof ds||t instanceof wr)&&t.input instanceof cr&&t.input.name==="zoom"&&(e=t);return e instanceof tn||t.eachChild(i=>{const n=ie(i);n instanceof tn?e=n:e&&n&&e!==n&&(e=new tn("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var ue=Y,re=3;function Y(t,e,i){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var o=new Int32Array(this.arrayBuffer);t=o[0],this.d=(e=o[1])+2*(i=o[2]);for(var l=0;l=y[E+0]&&n>=y[E+1])?(c[b]=!0,l.push(_[b])):c[b]=!1}}},Y.prototype._forEachCell=function(t,e,i,n,o,l,c,d){for(var f=this._convertToCellCoord(t),_=this._convertToCellCoord(e),y=this._convertToCellCoord(i),v=this._convertToCellCoord(n),b=f;b<=y;b++)for(var E=_;E<=v;E++){var M=this.d*E+b;if((!d||d(this._convertFromCellCoord(b),this._convertFromCellCoord(E),this._convertFromCellCoord(b+1),this._convertFromCellCoord(E+1)))&&o.call(this,t,e,i,n,M,l,c,d))return}},Y.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Y.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Y.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=re+this.cells.length+1+1,i=0,n=0;n=0||(o[l]=he(t[l],e)));t instanceof Error&&(o.message=t.message)}if(o.$name)throw new Error("$name property is reserved for worker serialization logic.");return n!=="Object"&&(o.$name=n),o}throw new Error("can't serialize object of type "+typeof t)}function ve(t){if(t==null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Ce(t)||Se(t)||ArrayBuffer.isView(t)||t instanceof ImageData)return t;if(Array.isArray(t))return t.map(ve);if(typeof t=="object"){const e=t.$name||"Object";if(e==="Map"){const o=new Map;for(const l of Object.keys(t))l!=="$name"&&o.set(l,ve(t[l]));return o}if(e==="Set"){const o=new Set;for(const l of Object.keys(t))l!=="$name"&&o.add(ve(t[l]));return o}const{klass:i}=fe[e];if(!i)throw new Error(`can't deserialize unregistered class ${e}`);if(i.deserialize)return i.deserialize(t);const n=Object.create(i.prototype);for(const o of Object.keys(t))o!=="$name"&&(n[o]=ve(t[o]));return n}throw new Error("can't deserialize object of type "+typeof t)}const ne={"Latin-1 Supplement":t=>t>=128&&t<=255,Arabic:t=>t>=1536&&t<=1791,"Arabic Supplement":t=>t>=1872&&t<=1919,"Arabic Extended-A":t=>t>=2208&&t<=2303,"Hangul Jamo":t=>t>=4352&&t<=4607,"Unified Canadian Aboriginal Syllabics":t=>t>=5120&&t<=5759,Khmer:t=>t>=6016&&t<=6143,"Unified Canadian Aboriginal Syllabics Extended":t=>t>=6320&&t<=6399,"General Punctuation":t=>t>=8192&&t<=8303,"Letterlike Symbols":t=>t>=8448&&t<=8527,"Number Forms":t=>t>=8528&&t<=8591,"Miscellaneous Technical":t=>t>=8960&&t<=9215,"Control Pictures":t=>t>=9216&&t<=9279,"Optical Character Recognition":t=>t>=9280&&t<=9311,"Enclosed Alphanumerics":t=>t>=9312&&t<=9471,"Geometric Shapes":t=>t>=9632&&t<=9727,"Miscellaneous Symbols":t=>t>=9728&&t<=9983,"Miscellaneous Symbols and Arrows":t=>t>=11008&&t<=11263,"CJK Radicals Supplement":t=>t>=11904&&t<=12031,"Kangxi Radicals":t=>t>=12032&&t<=12255,"Ideographic Description Characters":t=>t>=12272&&t<=12287,"CJK Symbols and Punctuation":t=>t>=12288&&t<=12351,Hiragana:t=>t>=12352&&t<=12447,Katakana:t=>t>=12448&&t<=12543,Bopomofo:t=>t>=12544&&t<=12591,"Hangul Compatibility Jamo":t=>t>=12592&&t<=12687,Kanbun:t=>t>=12688&&t<=12703,"Bopomofo Extended":t=>t>=12704&&t<=12735,"CJK Strokes":t=>t>=12736&&t<=12783,"Katakana Phonetic Extensions":t=>t>=12784&&t<=12799,"Enclosed CJK Letters and Months":t=>t>=12800&&t<=13055,"CJK Compatibility":t=>t>=13056&&t<=13311,"CJK Unified Ideographs Extension A":t=>t>=13312&&t<=19903,"Yijing Hexagram Symbols":t=>t>=19904&&t<=19967,"CJK Unified Ideographs":t=>t>=19968&&t<=40959,"Yi Syllables":t=>t>=40960&&t<=42127,"Yi Radicals":t=>t>=42128&&t<=42191,"Hangul Jamo Extended-A":t=>t>=43360&&t<=43391,"Hangul Syllables":t=>t>=44032&&t<=55215,"Hangul Jamo Extended-B":t=>t>=55216&&t<=55295,"Private Use Area":t=>t>=57344&&t<=63743,"CJK Compatibility Ideographs":t=>t>=63744&&t<=64255,"Arabic Presentation Forms-A":t=>t>=64336&&t<=65023,"Vertical Forms":t=>t>=65040&&t<=65055,"CJK Compatibility Forms":t=>t>=65072&&t<=65103,"Small Form Variants":t=>t>=65104&&t<=65135,"Arabic Presentation Forms-B":t=>t>=65136&&t<=65279,"Halfwidth and Fullwidth Forms":t=>t>=65280&&t<=65519,"CJK Unified Ideographs Extension B":t=>t>=131072&&t<=173791};function Me(t){for(const e of t)if(Ge(e.charCodeAt(0)))return!0;return!1}function Ae(t){for(const e of t)if(!Ue(e.charCodeAt(0)))return!1;return!0}function Ue(t){return!(ne.Arabic(t)||ne["Arabic Supplement"](t)||ne["Arabic Extended-A"](t)||ne["Arabic Presentation Forms-A"](t)||ne["Arabic Presentation Forms-B"](t))}function Ge(t){return!(t!==746&&t!==747&&(t<4352||!(ne["Bopomofo Extended"](t)||ne.Bopomofo(t)||ne["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||ne["CJK Compatibility Ideographs"](t)||ne["CJK Compatibility"](t)||ne["CJK Radicals Supplement"](t)||ne["CJK Strokes"](t)||!(!ne["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||t===12336)||ne["CJK Unified Ideographs Extension A"](t)||ne["CJK Unified Ideographs"](t)||ne["Enclosed CJK Letters and Months"](t)||ne["Hangul Compatibility Jamo"](t)||ne["Hangul Jamo Extended-A"](t)||ne["Hangul Jamo Extended-B"](t)||ne["Hangul Jamo"](t)||ne["Hangul Syllables"](t)||ne.Hiragana(t)||ne["Ideographic Description Characters"](t)||ne.Kanbun(t)||ne["Kangxi Radicals"](t)||ne["Katakana Phonetic Extensions"](t)||ne.Katakana(t)&&t!==12540||!(!ne["Halfwidth and Fullwidth Forms"](t)||t===65288||t===65289||t===65293||t>=65306&&t<=65310||t===65339||t===65341||t===65343||t>=65371&&t<=65503||t===65507||t>=65512&&t<=65519)||!(!ne["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||ne["Unified Canadian Aboriginal Syllabics"](t)||ne["Unified Canadian Aboriginal Syllabics Extended"](t)||ne["Vertical Forms"](t)||ne["Yijing Hexagram Symbols"](t)||ne["Yi Syllables"](t)||ne["Yi Radicals"](t))))}function He(t){return!(Ge(t)||function(e){return!!(ne["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||ne["General Punctuation"](e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||ne["Letterlike Symbols"](e)||ne["Number Forms"](e)||ne["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||ne["Control Pictures"](e)&&e!==9251||ne["Optical Character Recognition"](e)||ne["Enclosed Alphanumerics"](e)||ne["Geometric Shapes"](e)||ne["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||ne["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||ne["CJK Symbols and Punctuation"](e)||ne.Katakana(e)||ne["Private Use Area"](e)||ne["CJK Compatibility Forms"](e)||ne["Small Form Variants"](e)||ne["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(t))}function $e(t){return t>=1424&&t<=2303||ne["Arabic Presentation Forms-A"](t)||ne["Arabic Presentation Forms-B"](t)}function it(t,e){return!(!e&&$e(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||ne.Khmer(t))}function _t(t){for(const e of t)if($e(e.charCodeAt(0)))return!0;return!1}const nt="deferred",xt="loading",Ct="loaded";let ii=null,Jt="unavailable",Pt=null;const Xt=function(t){t&&typeof t=="string"&&t.indexOf("NetworkError")>-1&&(Jt="error"),ii&&ii(t)};function Tt(){St.fire(new en("pluginStateChange",{pluginStatus:Jt,pluginURL:Pt}))}const St=new mo,gt=function(){return Jt},Ot=function(){if(Jt!==nt||!Pt)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Jt=xt,Tt(),Pt&&uo({url:Pt},t=>{t?Xt(t):(Jt=Ct,Tt())})},Mt={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Jt===Ct||Mt.applyArabicShaping!=null,isLoading:()=>Jt===xt,setState(t){Jt=t.pluginStatus,Pt=t.pluginURL},isParsed:()=>Mt.applyArabicShaping!=null&&Mt.processBidirectionalText!=null&&Mt.processStyledBidirectionalText!=null,getPluginURL:()=>Pt};class at{constructor(e,i){this.zoom=e,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,n){for(const o of i)if(!it(o.charCodeAt(0),n))return!1;return!0}(e,Mt.isLoaded())}}class bi{constructor(e,i,n,o){this.property=e,this.value=i,this.expression=function(l,c,d,f){if(S(l))return new ee(l,c);if($(l)||Array.isArray(l)&&l.length>0){const _=W(l,c,d,f);if(_.result==="error")throw new Error(_.value.map(y=>`${y.key}: ${y.message}`).join(", "));return _.value}{let _=l;return typeof l=="string"&&c.type==="color"&&(_=Ut.parse(l)),{kind:"constant",configDependencies:new Set,evaluate:()=>_}}}(i===void 0?e.specification.default:i,e.specification,n,o)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,n){return this.property.possiblyEvaluate(this,e,i,n)}}class wi{constructor(e,i,n){this.property=e,this.value=new bi(e,void 0,i,n)}transitioned(e,i){return new Yi(this.property,this.value,i,Gi({},e.transition,this.transition),e.now)}untransitioned(){return new Yi(this.property,this.value,null,{},0)}}class Xi{constructor(e,i,n){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=n,this.configDependencies=new Set}getValue(e){return ar(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new wi(this._values[e].property,this._scope,this._options)),this._values[e].value=new bi(this._values[e].property,i===null?void 0:ar(i),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,i){i&&(this._options=i);const n=this._properties.properties;if(e)for(const o in e){const l=e[o];if(Ks(o,"-transition")){const c=o.slice(0,-11);n[c]&&this.setTransition(c,l)}else n.hasOwnProperty(o)&&this.setValue(o,l)}}getTransition(e){return ar(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new wi(this._values[e].property)),this._values[e].transition=ar(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const n=this.getValue(i);n!==void 0&&(e[i]=n);const o=this.getTransition(i);o!==void 0&&(e[`${i}-transition`]=o)}return e}transitioned(e,i){const n=new Fi(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].transitioned(e,i._values[o]);return n}untransitioned(){const e=new Fi(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}}class Yi{constructor(e,i,n,o,l){const c=o.delay||0,d=o.duration||0;l=l||0,this.property=e,this.value=i,this.begin=l+c,this.end=this.begin+d,e.specification.transition&&(o.delay||o.duration)&&(this.prior=n)}possiblyEvaluate(e,i,n){const o=e.now||0,l=this.value.possiblyEvaluate(e,i,n),c=this.prior;if(c){if(o>this.end)return this.prior=null,l;if(this.value.isDataDriven())return this.prior=null,l;if(o":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"colorTheme":{"data":{"type":"string","property-type":"data-constant","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","experimental":true,"default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","experimental":true,"default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"experimental":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-line-alignment":{"type":"enum","values":{"inside":1,"outside":1,"center":1},"default":"center","property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-trim-fade-range":{"type":"array","value":"number","experimental":true,"length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-trim-color":{"type":"color","experimental":true,"default":"transparent","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"property-type":"data-constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"experimental":true,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"model-front-cutoff":{"type":"array","private":true,"value":"number","property-type":"data-constant","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function yn(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function Wr(t){if(Array.isArray(t))return t.map(Wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const i in t)e[i]=Wr(t[i]);return e}return yn(t)}function xn(t){if(t===!0||t===!1)return!0;if(!Array.isArray(t)||t.length===0)return!1;switch(t[0]){case"has":return t.length>=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!xn(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function vn(t,e="fill"){if(t==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};xn(t)||(t=ms(t));const i=t;let n=!0;try{n=function(_){if(!Wn(_))return _;let y=Wr(_);return Ql(y),y=Kl(y),y}(i)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
-This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
-and paste the contents of this message in the report.
-Thank you!
-Filter Expression:
-${JSON.stringify(i,null,2)}
- `)}const o=me[`filter_${e}`],l=j(n,o);let c=null;if(l.result==="error")throw new Error(l.value.map(_=>`${_.key}: ${_.message}`).join(", "));c=(_,y,v)=>l.value.evaluate(_,y,{},v);let d=null,f=null;if(n!==i){const _=j(i,o);if(_.result==="error")throw new Error(_.value.map(y=>`${y.key}: ${y.message}`).join(", "));d=(y,v,b,E,M)=>_.value.evaluate(y,v,{},b,void 0,void 0,E,M),f=!Ma(_.value.expression)}return{filter:c,dynamicFilter:d||void 0,needGeometry:ec(n),needFeature:!!f}}function Kl(t){if(!Array.isArray(t))return t;const e=function(i){if(Mu.has(i[0])){for(let n=1;nKl(i))}function Ql(t){let e=!1;const i=[];if(t[0]==="case"){for(let n=1;n",">=","<","<=","to-boolean"]);function wo(t,e){return te?1:0}function ec(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?Jp(t[1],t[2],e):e==="any"?(i=t.slice(1),["any"].concat(i.map(ms))):e==="all"?["all"].concat(t.slice(1).map(ms)):e==="none"?["all"].concat(t.slice(1).map(ms).map(hd)):e==="in"?Nm(t[1],t.slice(2)):e==="!in"?hd(Nm(t[1],t.slice(2))):e==="has"?Vm(t[1]):e!=="!has"||hd(Vm(t[1]));var i}function Jp(t,e,i){switch(t){case"$type":return[`filter-type-${i}`,e];case"$id":return[`filter-id-${i}`,e];default:return[`filter-${i}`,t,e]}}function Nm(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(i=>typeof i!=typeof e[0])?["filter-in-large",t,["literal",e.sort(wo)]]:["filter-in-small",t,["literal",e]]}}function Vm(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function hd(t){return["!",t]}const dd="";function Um(t,e){return e?`${t}${dd}${e}`:t}const jm="-transition",ex=new Set(["fill","line","background","hillshade","raster"]);class Tr extends mo{constructor(e,i,n,o,l){if(super(),this.id=e.id,this.fqid=Um(this.id,n),this.type=e.type,this.scope=n,this.lut=o,this.options=l,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&e.type!=="sky"&&e.type!=="slot"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),e.slot&&(this.slot=e.slot),i.layout&&(this._unevaluatedLayout=new Ji(i.layout,this.scope,l),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),i.paint)){this._transitionablePaint=new Xi(i.paint,this.scope,l);for(const c in e.paint)this.setPaintProperty(c,e.paint[c]);for(const c in e.layout)this.setLayoutProperty(c,e.layout[c]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ni(i.paint)}}onAdd(e){}onRemove(e){}isDraped(e){return ex.has(this.type)}getLayoutProperty(e){return e==="visibility"?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,i){if(this.type==="custom"&&e==="visibility")return void(this.visibility=i);const n=this._unevaluatedLayout;n._properties.properties[e]&&(n.setValue(e,i),this.configDependencies=new Set([...this.configDependencies,...n.configDependencies]),e==="visibility"&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0})}getPaintProperty(e){return Ks(e,jm)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,i){const n=this._transitionablePaint,o=n._properties.properties;if(Ks(e,jm)){const v=e.slice(0,-11);return o[v]&&n.setTransition(v,i||void 0),!1}if(!o[e])return!1;const l=n._values[e],c=l.value.isDataDriven(),d=l.value;n.setValue(e,i),this.configDependencies=new Set([...this.configDependencies,...n.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const f=n._values[e].value,_=f.isDataDriven(),y=Ks(e,"pattern")||e==="line-dasharray";return _||c||y||this._handleOverridablePaintPropertyUpdate(e,d,f)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,i,n){return null}_handleOverridablePaintPropertyUpdate(e,i,n){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||this.visibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,i){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,i)}serialize(){return $i({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},(e,i)=>!(e===void 0||i==="layout"&&!Object.keys(e).length||i==="paint"&&!Object.keys(e).length))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const i=this.paint.get(e);if(i instanceof Li&&g(i.property.specification)&&(i.value.kind==="source"||i.value.kind==="composite")&&i.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=vn(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&(e.renderPass==="shadow"?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,i,n,o,l,c,d,f,_){}queryIntersectsMatchingFeature(e,i,n,o){}}const tx={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Iu{constructor(e,i){this._structArray=e,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class li{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,i){return e._trim(),i&&(e.isTransferred=!0,i.add(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const i=Object.create(this.prototype);return i.arrayBuffer=e.arrayBuffer,i.length=e.length,i.capacity=e.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_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(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function $t(t,e=1){let i=0,n=0;return{members:t.map(o=>{const l=tx[o.type].BYTES_PER_ELEMENT,c=i=Gm(i,Math.max(e,l)),d=o.components||1;return n=Math.max(n,l),i+=l*d,{name:o.name,type:o.type,components:d,offset:c}}),size:Gm(i,Math.max(n,e)),alignment:e}}function Gm(t,e){return Math.ceil(t/e)*e}class bn extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,i)}emplace(e,i,n){const o=2*e;return this.int16[o+0]=i,this.int16[o+1]=n,e}}bn.prototype.bytesPerElement=4,se(bn,"StructArrayLayout2i4");class pd extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,i,n)}emplace(e,i,n,o){const l=3*e;return this.int16[l+0]=i,this.int16[l+1]=n,this.int16[l+2]=o,e}}pd.prototype.bytesPerElement=6,se(pd,"StructArrayLayout3i6");class To extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,n,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,i,n,o)}emplace(e,i,n,o,l){const c=4*e;return this.int16[c+0]=i,this.int16[c+1]=n,this.int16[c+2]=o,this.int16[c+3]=l,e}}To.prototype.bytesPerElement=8,se(To,"StructArrayLayout4i8");class Kp extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,i,n,o,l)}emplace(e,i,n,o,l,c){const d=5*e;return this.int16[d+0]=i,this.int16[d+1]=n,this.int16[d+2]=o,this.int16[d+3]=l,this.int16[d+4]=c,e}}Kp.prototype.bytesPerElement=10,se(Kp,"StructArrayLayout5i10");class Qp extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,i,n,o,l,c,d)}emplace(e,i,n,o,l,c,d,f){const _=6*e,y=12*e,v=3*e;return this.int16[_+0]=i,this.int16[_+1]=n,this.uint8[y+4]=o,this.uint8[y+5]=l,this.uint8[y+6]=c,this.uint8[y+7]=d,this.float32[v+2]=f,e}}Qp.prototype.bytesPerElement=12,se(Qp,"StructArrayLayout2i4ub1f12");class _s extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,i,n,o)}emplace(e,i,n,o,l){const c=4*e;return this.float32[c+0]=i,this.float32[c+1]=n,this.float32[c+2]=o,this.float32[c+3]=l,e}}_s.prototype.bytesPerElement=16,se(_s,"StructArrayLayout4f16");class gs extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,i,n)}emplace(e,i,n,o){const l=3*e;return this.float32[l+0]=i,this.float32[l+1]=n,this.float32[l+2]=o,e}}gs.prototype.bytesPerElement=12,se(gs,"StructArrayLayout3f12");class ys extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,i,n,o,l)}emplace(e,i,n,o,l,c){const d=6*e,f=3*e;return this.uint16[d+0]=i,this.uint16[d+1]=n,this.uint16[d+2]=o,this.uint16[d+3]=l,this.float32[f+2]=c,e}}ys.prototype.bytesPerElement=12,se(ys,"StructArrayLayout4ui1f12");class fd extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,n,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,i,n,o)}emplace(e,i,n,o,l){const c=4*e;return this.uint16[c+0]=i,this.uint16[c+1]=n,this.uint16[c+2]=o,this.uint16[c+3]=l,e}}fd.prototype.bytesPerElement=8,se(fd,"StructArrayLayout4ui8");class md extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c){const d=this.length;return this.resize(d+1),this.emplace(d,e,i,n,o,l,c)}emplace(e,i,n,o,l,c,d){const f=6*e;return this.int16[f+0]=i,this.int16[f+1]=n,this.int16[f+2]=o,this.int16[f+3]=l,this.int16[f+4]=c,this.int16[f+5]=d,e}}md.prototype.bytesPerElement=12,se(md,"StructArrayLayout6i12");class ef extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d,f,_,y,v,b){const E=this.length;return this.resize(E+1),this.emplace(E,e,i,n,o,l,c,d,f,_,y,v,b)}emplace(e,i,n,o,l,c,d,f,_,y,v,b,E){const M=12*e;return this.int16[M+0]=i,this.int16[M+1]=n,this.int16[M+2]=o,this.int16[M+3]=l,this.uint16[M+4]=c,this.uint16[M+5]=d,this.uint16[M+6]=f,this.uint16[M+7]=_,this.int16[M+8]=y,this.int16[M+9]=v,this.int16[M+10]=b,this.int16[M+11]=E,e}}ef.prototype.bytesPerElement=24,se(ef,"StructArrayLayout4i4ui4i24");class tf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c){const d=this.length;return this.resize(d+1),this.emplace(d,e,i,n,o,l,c)}emplace(e,i,n,o,l,c,d){const f=10*e,_=5*e;return this.int16[f+0]=i,this.int16[f+1]=n,this.int16[f+2]=o,this.float32[_+2]=l,this.float32[_+3]=c,this.float32[_+4]=d,e}}tf.prototype.bytesPerElement=20,se(tf,"StructArrayLayout3i3f20");class rf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint32[1*e+0]=i,e}}rf.prototype.bytesPerElement=4,se(rf,"StructArrayLayout1ul4");class xs extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,i)}emplace(e,i,n){const o=2*e;return this.uint16[o+0]=i,this.uint16[o+1]=n,e}}xs.prototype.bytesPerElement=4,se(xs,"StructArrayLayout2ui4");class nf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d,f,_,y,v,b,E){const M=this.length;return this.resize(M+1),this.emplace(M,e,i,n,o,l,c,d,f,_,y,v,b,E)}emplace(e,i,n,o,l,c,d,f,_,y,v,b,E,M){const A=20*e,C=10*e;return this.int16[A+0]=i,this.int16[A+1]=n,this.int16[A+2]=o,this.int16[A+3]=l,this.int16[A+4]=c,this.float32[C+3]=d,this.float32[C+4]=f,this.float32[C+5]=_,this.float32[C+6]=y,this.int16[A+14]=v,this.uint32[C+8]=b,this.uint16[A+18]=E,this.uint16[A+19]=M,e}}nf.prototype.bytesPerElement=40,se(nf,"StructArrayLayout5i4f1i1ul2ui40");class _d extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,i,n,o,l,c,d)}emplace(e,i,n,o,l,c,d,f){const _=8*e;return this.int16[_+0]=i,this.int16[_+1]=n,this.int16[_+2]=o,this.int16[_+4]=l,this.int16[_+5]=c,this.int16[_+6]=d,this.int16[_+7]=f,e}}_d.prototype.bytesPerElement=16,se(_d,"StructArrayLayout3i2i2i16");class of extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,i,n,o,l)}emplace(e,i,n,o,l,c){const d=4*e,f=8*e;return this.float32[d+0]=i,this.float32[d+1]=n,this.float32[d+2]=o,this.int16[f+6]=l,this.int16[f+7]=c,e}}of.prototype.bytesPerElement=16,se(of,"StructArrayLayout2f1f2i16");class sf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,i,n,o)}emplace(e,i,n,o,l){const c=12*e,d=3*e;return this.uint8[c+0]=i,this.uint8[c+1]=n,this.float32[d+1]=o,this.float32[d+2]=l,e}}sf.prototype.bytesPerElement=12,se(sf,"StructArrayLayout2ub2f12");class ki extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,i,n)}emplace(e,i,n,o){const l=3*e;return this.uint16[l+0]=i,this.uint16[l+1]=n,this.uint16[l+2]=o,e}}ki.prototype.bytesPerElement=6,se(ki,"StructArrayLayout3ui6");class af extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H){const X=this.length;return this.resize(X+1),this.emplace(X,e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H)}emplace(e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H,X){const Q=30*e,ae=15*e,de=60*e;return this.int16[Q+0]=i,this.int16[Q+1]=n,this.int16[Q+2]=o,this.float32[ae+2]=l,this.float32[ae+3]=c,this.uint16[Q+8]=d,this.uint16[Q+9]=f,this.uint32[ae+5]=_,this.uint32[ae+6]=y,this.uint32[ae+7]=v,this.uint16[Q+16]=b,this.uint16[Q+17]=E,this.uint16[Q+18]=M,this.float32[ae+10]=A,this.float32[ae+11]=C,this.uint8[de+48]=D,this.uint8[de+49]=V,this.uint8[de+50]=N,this.uint32[ae+13]=U,this.int16[Q+28]=H,this.uint8[de+58]=X,e}}af.prototype.bytesPerElement=60,se(af,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class lf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H,X,Q,ae,de,ye,pe,we,De,Te,ke,be){const Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H,X,Q,ae,de,ye,pe,we,De,Te,ke,be)}emplace(e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D,V,N,U,H,X,Q,ae,de,ye,pe,we,De,Te,ke,be,Ie){const Be=20*e,Ee=40*e,Ve=80*e;return this.float32[Be+0]=i,this.float32[Be+1]=n,this.int16[Ee+4]=o,this.int16[Ee+5]=l,this.int16[Ee+6]=c,this.int16[Ee+7]=d,this.int16[Ee+8]=f,this.int16[Ee+9]=_,this.int16[Ee+10]=y,this.int16[Ee+11]=v,this.int16[Ee+12]=b,this.uint16[Ee+13]=E,this.uint16[Ee+14]=M,this.uint16[Ee+15]=A,this.uint16[Ee+16]=C,this.uint16[Ee+17]=D,this.uint16[Ee+18]=V,this.uint16[Ee+19]=N,this.uint16[Ee+20]=U,this.uint16[Ee+21]=H,this.uint16[Ee+22]=X,this.uint16[Ee+23]=Q,this.uint16[Ee+24]=ae,this.uint16[Ee+25]=de,this.uint16[Ee+26]=ye,this.uint16[Ee+27]=pe,this.uint32[Be+14]=we,this.float32[Be+15]=De,this.float32[Be+16]=Te,this.float32[Be+17]=ke,this.float32[Be+18]=be,this.uint8[Ve+76]=Ie,e}}lf.prototype.bytesPerElement=80,se(lf,"StructArrayLayout2f9i15ui1ul4f1ub80");class tc extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.float32[1*e+0]=i,e}}tc.prototype.bytesPerElement=4,se(tc,"StructArrayLayout1f4");class Oa extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,i,n,o,l)}emplace(e,i,n,o,l,c){const d=5*e;return this.float32[d+0]=i,this.float32[d+1]=n,this.float32[d+2]=o,this.float32[d+3]=l,this.float32[d+4]=c,e}}Oa.prototype.bytesPerElement=20,se(Oa,"StructArrayLayout5f20");class cf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,i,n,o,l,c,d)}emplace(e,i,n,o,l,c,d,f){const _=7*e;return this.float32[_+0]=i,this.float32[_+1]=n,this.float32[_+2]=o,this.float32[_+3]=l,this.float32[_+4]=c,this.float32[_+5]=d,this.float32[_+6]=f,e}}cf.prototype.bytesPerElement=28,se(cf,"StructArrayLayout7f28");class uf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,n,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,i,n,o)}emplace(e,i,n,o,l){const c=6*e;return this.uint32[3*e+0]=i,this.uint16[c+2]=n,this.uint16[c+3]=o,this.uint16[c+4]=l,e}}uf.prototype.bytesPerElement=12,se(uf,"StructArrayLayout1ul3ui12");class Au extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint16[1*e+0]=i,e}}Au.prototype.bytesPerElement=2,se(Au,"StructArrayLayout1ui2");class Cu extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,i)}emplace(e,i,n){const o=2*e;return this.float32[o+0]=i,this.float32[o+1]=n,e}}Cu.prototype.bytesPerElement=8,se(Cu,"StructArrayLayout2f8");class hf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C){const D=this.length;return this.resize(D+1),this.emplace(D,e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C)}emplace(e,i,n,o,l,c,d,f,_,y,v,b,E,M,A,C,D){const V=16*e;return this.float32[V+0]=i,this.float32[V+1]=n,this.float32[V+2]=o,this.float32[V+3]=l,this.float32[V+4]=c,this.float32[V+5]=d,this.float32[V+6]=f,this.float32[V+7]=_,this.float32[V+8]=y,this.float32[V+9]=v,this.float32[V+10]=b,this.float32[V+11]=E,this.float32[V+12]=M,this.float32[V+13]=A,this.float32[V+14]=C,this.float32[V+15]=D,e}}hf.prototype.bytesPerElement=64,se(hf,"StructArrayLayout16f64");class gd extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,n,o,l,c,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,i,n,o,l,c,d)}emplace(e,i,n,o,l,c,d,f){const _=10*e,y=5*e;return this.uint16[_+0]=i,this.uint16[_+1]=n,this.uint16[_+2]=o,this.uint16[_+3]=l,this.float32[y+2]=c,this.float32[y+3]=d,this.float32[y+4]=f,e}}gd.prototype.bytesPerElement=20,se(gd,"StructArrayLayout4ui3f20");class df extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.int16[1*e+0]=i,e}}df.prototype.bytesPerElement=2,se(df,"StructArrayLayout1i2");class pf extends li{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint8[1*e+0]=i,e}}pf.prototype.bytesPerElement=1,se(pf,"StructArrayLayout1ub1");class $m extends Iu{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}$m.prototype.size=40;class ff extends nf{get(e){return new $m(this,e)}}se(ff,"CollisionBoxArray");class qm extends Iu{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}qm.prototype.size=60;class Zm extends af{get(e){return new qm(this,e)}}se(Zm,"PlacedSymbolArray");class Wm extends Iu{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}}Wm.prototype.size=80;class Hm extends lf{get(e){return new Wm(this,e)}}se(Hm,"SymbolInstanceArray");class Xm extends tc{getoffsetX(e){return this.float32[1*e+0]}}se(Xm,"GlyphOffsetArray");class Ym extends bn{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}se(Ym,"SymbolLineVertexArray");class Jm extends Iu{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]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Jm.prototype.size=12;class Km extends uf{get(e){return new Jm(this,e)}}se(Km,"FeatureIndexArray");class Qm extends xs{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}se(Qm,"FillExtrusionCentroidArray");class e_ extends Iu{get a_join_normal_inside_polygon0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside_polygon1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside_polygon2(){return this._structArray.int16[this._pos2+2]}get a_join_normal_inside_polygon3(){return this._structArray.int16[this._pos2+3]}}e_.prototype.size=8;class t_ extends To{get(e){return new e_(this,e)}}se(t_,"FillExtrusionWallArray");const ix=$t([{name:"a_pos",components:2,type:"Int16"}],4),rx=$t([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class hi{constructor(e=[]){this.segments=e}_prepareSegment(e,i,n,o){let l=this.segments[this.segments.length-1];return e>hi.MAX_VERTEX_ARRAY_LENGTH&&vi(`Max vertices per segment is ${hi.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!l||l.vertexLength+e>hi.MAX_VERTEX_ARRAY_LENGTH||l.sortKey!==o)&&(l={vertexOffset:i,primitiveOffset:n,vertexLength:0,primitiveLength:0},o!==void 0&&(l.sortKey=o),this.segments.push(l)),l}prepareSegment(e,i,n,o){return this._prepareSegment(e,i.length,n.length,o)}get(){return this.segments}destroy(){for(const e of this.segments)for(const i in e.vaos)e.vaos[i].destroy()}static simpleSegment(e,i,n,o){return new hi([{vertexOffset:e,primitiveOffset:i,vertexLength:n,primitiveLength:o,vaos:{},sortKey:0}])}}function i_(t,e){return 256*(t=Et(Math.floor(t),0,255))+Et(Math.floor(e),0,255)}hi.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,se(hi,"SegmentVector");const nx=$t([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),ox=$t([{name:"a_dash",components:4,type:"Uint16"}]);class Pu{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,i,n,o){this.ids.push(r_(e)),this.positions.push(i,n,o)}eachPosition(e,i){const n=r_(e);let o=0,l=this.ids.length-1;for(;o>1;this.ids[c]>=n?l=c:o=c+1}for(;this.ids[o]===n;)i(this.positions[3*o],this.positions[3*o+1],this.positions[3*o+2]),o++}static serialize(e,i){const n=new Float64Array(e.ids),o=new Uint32Array(e.positions);return mf(n,o,0,n.length-1),i&&(i.add(n.buffer),i.add(o.buffer)),{ids:n,positions:o}}static deserialize(e){const i=new Pu;let n;i.ids=e.ids,i.positions=e.positions;for(const o of i.ids)o!==n&&i.uniqueIds.push(o),n=o;return i.indexed=!0,i}}function r_(t){const e=+t;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:Al(String(t))}function mf(t,e,i,n){for(;i>1];let l=i-1,c=n+1;for(;;){do l++;while(t[l]o);if(l>=c)break;yd(t,l,c),yd(e,3*l,3*c),yd(e,3*l+1,3*c+1),yd(e,3*l+2,3*c+2)}c-i`u_${l}`),this.type=n,this.context=o}setUniform(e,i,n,o,l){const c=o.constantOr(this.value);i.set(e,l,c instanceof Ut?c.toRenderColor(this.context.lut):c)}getBinding(e,i){return this.type==="color"?new n_(e):new ur(e)}}class ic{constructor(e,i){this.uniformNames=i.map(n=>`u_${n}`),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,i,n,o,l){const c=l==="u_pattern"||l==="u_dash"?this.pattern:l==="u_pixel_ratio"?this.pixelRatio:null;c&&i.set(e,l,c)}getBinding(e,i){return i==="u_pattern"||i==="u_dash"?new gf(e):new ur(e)}}class Mo{constructor(e,i,n,o){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=i.map(l=>({name:`a_${l}`,type:"Float32",components:n==="color"?2:1,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,i,n,o,l,c,d){const f=this.paintVertexArray.length,_=this.expression.evaluate(new at(0,{brightness:c}),i,{},l,o,d);this.paintVertexArray.resize(e),this._setPaintValue(f,e,_,this.context)}updatePaintArray(e,i,n,o,l,c,d){const f=this.expression.evaluate({zoom:0,brightness:d},n,o,void 0,l);this._setPaintValue(e,i,f,this.context)}_setPaintValue(e,i,n,o){if(this.type==="color"){const l=xf(n.toRenderColor(o.lut));for(let c=e;c`u_${d}_t`),this.type=n,this.useIntegerZoom=o,this.context=l,this.maxValue=0,this.paintVertexAttributes=i.map(d=>({name:`a_${d}`,type:"Float32",components:n==="color"?4:2,offset:0})),this.paintVertexArray=new c}populatePaintArray(e,i,n,o,l,c,d){const f=this.expression.evaluate(new at(this.context.zoom,{brightness:c}),i,{},l,o,d),_=this.expression.evaluate(new at(this.context.zoom+1,{brightness:c}),i,{},l,o,d),y=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(y,e,f,_,this.context)}updatePaintArray(e,i,n,o,l,c,d){const f=this.expression.evaluate({zoom:this.context.zoom,brightness:d},n,o,void 0,l),_=this.expression.evaluate({zoom:this.context.zoom+1,brightness:d},n,o,void 0,l);this._setPaintValue(e,i,f,_,this.context)}_setPaintValue(e,i,n,o,l){if(this.type==="color"){const c=xf(n.toRenderColor(l.lut)),d=xf(n.toRenderColor(l.lut));for(let f=e;f!0){this.binders={},this._buffers=[],this.context=i;const o=[];for(const l in e.paint._values){const c=e.paint.get(l);if(!n(l)||!(c instanceof Li&&g(c.property.specification)))continue;const d=ux(l,e.type),f=c.value,_=c.property.specification.type,y=!!c.property.useIntegerZoom,v=l==="line-dasharray"||l.endsWith("pattern"),b=l==="line-dasharray"&&e.layout.get("line-cap").value.kind!=="constant";if(f.kind!=="constant"||b)if(f.kind==="source"||b||v){const E=o_(l,_,"source");this.binders[l]=v?new vs(f,d,_,E,e.id):new Mo(f,d,_,E),o.push(`/a_${l}`)}else{const E=o_(l,_,"composite");this.binders[l]=new wn(f,d,_,y,i,E),o.push(`/z_${l}`)}else this.binders[l]=v?new ic(f.value,d):new Du(f.value,d,_,i),o.push(`/u_${l}`)}this.cacheKey=o.sort().join("")}getMaxValue(e){const i=this.binders[e];return i instanceof Mo||i instanceof wn?i.maxValue:0}populatePaintArrays(e,i,n,o,l,c,d){for(const f in this.binders){const _=this.binders[f];_.context=this.context,(_ instanceof Mo||_ instanceof wn||_ instanceof vs)&&_.populatePaintArray(e,i,n,o,l,c,d)}}setConstantPatternPositions(e){for(const i in this.binders){const n=this.binders[i];n instanceof ic&&n.setConstantPatternPositions(e)}}updatePaintArrays(e,i,n,o,l,c,d,f){let _=!1;const y=Object.keys(e),v=y.length!==0,b=v?y:i.uniqueIds;this.context.lut=l.lut;for(const E in this.binders){const M=this.binders[E];if(M.context=this.context,(M instanceof Mo||M instanceof wn||M instanceof vs)&&(M.expression.isStateDependent===!0||M.expression.isLightConstant===!1)){const A=l.paint.get(E);M.expression=A.value;for(const C of b){const D=e[C.toString()];i.eachPosition(C,(V,N,U)=>{const H=o.feature(V);M.updatePaintArray(N,U,H,D,c,d,f)})}if(!v)for(const C of n.uniqueIds){const D=e[C.toString()];n.eachPosition(C,(V,N,U)=>{const H=o.feature(V);M.updatePaintArray(N,U,H,D,c,d,f)})}_=!0}}return _}defines(){const e=[];for(const i in this.binders){const n=this.binders[i];(n instanceof Du||n instanceof ic)&&e.push(...n.uniformNames.map(o=>`#define HAS_UNIFORM_${o}`))}return e}getBinderAttributes(){const e=[];for(const i in this.binders){const n=this.binders[i];if(n instanceof Mo||n instanceof wn||n instanceof vs)for(let o=0;o!0){this.programConfigurations={};for(const o of e)this.programConfigurations[o.id]=new Ba(o,i,n);this.needsUpload=!1,this._featureMap=new Pu,this._featureMapWithoutIds=new Pu,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,i,n,o,l,c,d,f){for(const _ in this.programConfigurations)this.programConfigurations[_].populatePaintArrays(e,i,o,l,c,d,f);i.id!==void 0?this._featureMap.add(i.id,n,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,n,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,i,n,o,l,c){for(const d of n)this.needsUpload=this.programConfigurations[d.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,i,d,o,l,c||0)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const i in this.programConfigurations)this.programConfigurations[i].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const cx={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"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-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function ux(t,e){return cx[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}const hx={"line-pattern":{source:ys,composite:ys},"fill-pattern":{source:ys,composite:ys},"fill-extrusion-pattern":{source:ys,composite:ys},"line-dasharray":{source:fd,composite:fd}},dx={color:{source:Cu,composite:_s},number:{source:tc,composite:Cu}};function o_(t,e,i){const n=hx[t];return n&&n[i]||dx[e][i]}se(Du,"ConstantBinder"),se(ic,"PatternConstantBinder"),se(Mo,"SourceExpressionBinder"),se(vs,"PatternCompositeBinder"),se(wn,"CompositeExpressionBinder"),se(Ba,"ProgramConfiguration",{omit:["_buffers"]}),se(bs,"ProgramConfigurationSet");const hr=Fe/Math.PI/2,vf=5,s_=6,px=16383,rc=64,bf=[rc,32,16],nn=-hr,on=hr;function nc(t,e,i,n=hr){return i=At(i),[t*Math.sin(i)*n,-e*n,t*Math.cos(i)*n]}function Fa(t,e,i){return nc(Math.cos(At(t)),Math.sin(At(t)),e,i)}const oc=63710088e-1,wf=2*Math.PI*oc;class Vt{constructor(e,i){if(isNaN(e)||isNaN(i))throw new Error(`Invalid LngLat object: (${e}, ${i})`);if(this.lng=+e,this.lat=+i,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Vt(Jo(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const i=Math.PI/180,n=this.lat*i,o=e.lat*i,l=Math.sin(n)*Math.sin(o)+Math.cos(n)*Math.cos(o)*Math.cos((e.lng-this.lng)*i);return oc*Math.acos(Math.min(l,1))}toBounds(e=0){const i=360*e/40075017,n=i/Math.cos(Math.PI/180*this.lat);return new ws({lng:this.lng-n,lat:this.lat-i},{lng:this.lng+n,lat:this.lat+i})}toEcef(e){return Fa(this.lat,this.lng,hr+e*hr/oc)}static convert(e){if(e instanceof Vt)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Vt(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new Vt(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}class ws{constructor(e,i){if(e)if(i)this.setSouthWest(e).setNorthEast(i);else if(e.length===4){const n=e;this.setSouthWest([n[0],n[1]]).setNorthEast([n[2],n[3]])}else{const n=e;this.setSouthWest(n[0]).setNorthEast(n[1])}}setNorthEast(e){return this._ne=e instanceof Vt?new Vt(e.lng,e.lat):Vt.convert(e),this}setSouthWest(e){return this._sw=e instanceof Vt?new Vt(e.lng,e.lat):Vt.convert(e),this}extend(e){const i=this._sw,n=this._ne;let o,l;if(e instanceof Vt)o=e,l=e;else{if(!(e instanceof ws))return Array.isArray(e)?e.length===4||e.every(Array.isArray)?this.extend(ws.convert(e)):this.extend(Vt.convert(e)):typeof e=="object"&&e!==null&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(Vt.convert(e)):this;if(o=e._sw,l=e._ne,!o||!l)return this}return i||n?(i.lng=Math.min(o.lng,i.lng),i.lat=Math.min(o.lat,i.lat),n.lng=Math.max(l.lng,n.lng),n.lat=Math.max(l.lat,n.lat)):(this._sw=new Vt(o.lng,o.lat),this._ne=new Vt(l.lng,l.lat)),this}getCenter(){return new Vt((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 Vt(this.getWest(),this.getNorth())}getSouthEast(){return new Vt(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(e){const{lng:i,lat:n}=Vt.convert(e);let o=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(o=this._sw.lng>=i&&i>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&o}static convert(e){return!e||e instanceof ws?e:new ws(e)}}var a_={};(function(t,e){(function(i){function n(l,c,d){var f=o(256*l,256*(c=Math.pow(2,d)-c-1),d),_=o(256*(l+1),256*(c+1),d);return f[0]+","+f[1]+","+_[0]+","+_[1]}function o(l,c,d){var f=2*Math.PI*6378137/256/Math.pow(2,d);return[l*f-2*Math.PI*6378137/2,c*f-2*Math.PI*6378137/2]}i.getURL=function(l,c,d,f,_,y){return y=y||{},l+"?"+["bbox="+n(d,f,_),"format="+(y.format||"image/png"),"service="+(y.service||"WMS"),"version="+(y.version||"1.1.1"),"request="+(y.request||"GetMap"),"srs="+(y.srs||"EPSG:3857"),"width="+(y.width||256),"height="+(y.height||256),"layers="+c].join("&")},i.getTileBBox=n,i.getMercCoords=o,Object.defineProperty(i,"__esModule",{value:!0})})(e)})(0,a_);var fx=a_;class Na{constructor(e,i,n){this.z=e,this.x=i,this.y=n,this.key=sc(0,e,e,i,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,i){const n=fx.getTileBBox(this.x,this.y,this.z),o=function(l,c,d){let f,_="";for(let y=l;y>0;y--)f=1<this.canonical.z?new Pi(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Pi(e,this.wrap,e,this.canonical.x>>i,this.canonical.y>>i)}calculateScaledKey(e,i=!0){if(this.overscaledZ===e&&i)return this.key;if(e>this.canonical.z)return sc(this.wrap*+i,e,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-e;return sc(this.wrap*+i,e,e,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const i=this.canonical.z-e.canonical.z;return e.overscaledZ===0||e.overscaledZ>i&&e.canonical.y===this.canonical.y>>i}children(e){if(this.overscaledZ>=e)return[new Pi(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const i=this.canonical.z+1,n=2*this.canonical.x,o=2*this.canonical.y;return[new Pi(i,this.wrap,i,n,o),new Pi(i,this.wrap,i,n+1,o),new Pi(i,this.wrap,i,n,o+1),new Pi(i,this.wrap,i,n+1,o+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y{let e=t.canonical.x-1,i=t.wrap;return e<0&&(e=(1<{let e=t.canonical.x+1,i=t.wrap;return e===1<new Pi(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,(t.canonical.y===0?1<new Pi(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y===(1<=f?(Ef(t,e,i,_,y,l,v,d,f),Ef(t,_,y,n,o,v,c,d,f)):t.push(c)}function d_(t,e,i){let n=t[0],o=n.x,l=n.y;e(n);const c=[n];for(let d=1;dt.x+1||nt.y+1)&&vi("Geometry exceeds allowed extent, reduce your vector tile buffer size"),t}function Tn(t,e,i){const n=t.loadGeometry(),o=t.extent,l=Fe/o;if(e&&i&&i.projection.isReprojectedInTileSpace){const c=1<{const E=Er((e.x+b.x/o)/c),M=Vi((e.y+b.y/o)/c),A=y.project(E,M);b.x=(A.x*d-f)*o,b.y=(A.y*d-_)*o};for(let b=0;b=o||M.y<0||M.y>=o||(v(M),E.push(M));n[b]=E}}for(const c of n)for(const d of c)xx(d,l);return n}function Io(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Tn(t):[]}}function bd(t,e,i,n,o){t.emplaceBack(2*e+(n+1)/2,2*i+(o+1)/2)}function wd(t,e,i){t.emplaceBack(e.x,e.y,e.z,i[0]*16384,i[1]*16384,i[2]*16384)}class If{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(i=>i.fqid),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new bn,this.indexArray=new ki,this.segments=new hi,this.programConfigurations=new bs(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(i=>i.isStateDependent()).map(i=>i.id)}updateFootprints(e,i){}populate(e,i,n,o){const l=this.layers[0],c=[];let d=null;l.type==="circle"&&(d=l.layout.get("circle-sort-key"));for(const{feature:_,id:y,index:v,sourceLayerIndex:b}of e){const E=this.layers[0]._featureFilter.needGeometry,M=Io(_,E);if(!this.layers[0]._featureFilter.filter(new at(this.zoom),M,n))continue;const A=d?d.evaluate(M,{},n):void 0,C={id:y,properties:_.properties,type:_.type,sourceLayerIndex:b,index:v,geometry:E?M.geometry:Tn(_,n,o),patterns:{},sortKey:A};c.push(C)}d&&c.sort((_,y)=>_.sortKey-y.sortKey);let f=null;o.projection.name==="globe"&&(this.globeExtVertexArray=new md,f=o.projection);for(const _ of c){const{geometry:y,index:v,sourceLayerIndex:b}=_,E=e[v].feature;this.addFeature(_,y,v,i.availableImages,n,f,i.brightness),i.featureIndex.insert(E,y,v,b,this.index)}}update(e,i,n,o,l){const c=Object.keys(e).length!==0;c&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(e,i,c?this.stateDependentLayers:this.layers,n,o,l)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ix.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,rx.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,i,n,o,l,c,d){for(const f of i)for(const _ of f){const y=_.x,v=_.y;if(y<0||y>=Fe||v<0||v>=Fe)continue;if(c){const M=c.projectTilePoint(y,v,l),A=c.upVector(l,y,v),C=this.globeExtVertexArray;wd(C,M,A),wd(C,M,A),wd(C,M,A),wd(C,M,A)}const b=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),E=b.vertexLength;bd(this.layoutVertexArray,y,v,-1,-1),bd(this.layoutVertexArray,y,v,1,-1),bd(this.layoutVertexArray,y,v,1,1),bd(this.layoutVertexArray,y,v,-1,1),this.indexArray.emplaceBack(E,E+1,E+2),this.indexArray.emplaceBack(E,E+2,E+3),b.vertexLength+=4,b.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},o,l,d)}}function Af(t,e){for(let i=0;i1){if(Cf(t,e))return!0;for(let n=0;n1?i:i.sub(e)._mult(o)._add(e))}function __(t,e){let i,n,o,l=!1;for(let c=0;ce.y!=o.y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(l=!l)}return l}function Ts(t,e){let i=!1;for(let n=0,o=t.length-1;ne.y!=c.y>e.y&&e.x<(c.x-l.x)*(e.y-l.y)/(c.y-l.y)+l.x&&(i=!i)}return i}function g_(t,e,i,n,o){for(const c of t)if(e<=c.x&&i<=c.y&&n>=c.x&&o>=c.y)return!0;const l=[new je(e,i),new je(e,o),new je(n,o),new je(n,i)];if(t.length>2){for(const c of l)if(Ts(t,c))return!0}for(let c=0;co.x&&e.x>o.x||t.yo.y&&e.y>o.y)return!1;const l=Fn(t,e,i[0]);return l!==Fn(t,e,i[1])||l!==Fn(t,e,i[2])||l!==Fn(t,e,i[3])}function ac(t,e,i,n,o,l){let c=e.y-t.y,d=t.x-e.x;if(l=l||0){const f=c*c+d*d;if(f===0)return!0;const _=Math.sqrt(f);c/=_,d/=_}return!((i.x-t.x)*c+(i.y-t.y)*d-l<0||(n.x-t.x)*c+(n.y-t.y)*d-l<0||(o.x-t.x)*c+(o.y-t.y)*d-l<0)}function zf(t,e,i,n,o,l,c){return!(ac(t,e,n,o,l,c)||ac(e,i,n,o,l,c)||ac(i,t,n,o,l,c)||ac(n,o,t,e,i,c)||ac(o,l,t,e,i,c)||ac(l,n,t,e,i,c))}function lc(t,e,i){const n=e.paint.get(t).value;return n.kind==="constant"?n.value:i.programConfigurations.get(e.id).getMaxValue(t)}function Td(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y_(t,e,i,n,o){if(!e[0]&&!e[1])return t;const l=je.convert(e)._mult(o);i==="viewport"&&l._rotate(-n);const c=[];for(let d=0;d=0;if(l===0)return 0;l!==e.length&&(i=!1)}return i?2:1}function T_(t,e){for(const i of t.projections){const n=Ru(e,t.points[0],i.axis);if(i.projection[1]n[1])return 0}return 1}function E_(t,e){let i=0;const n=[0,0,0,0];for(let o=0;o=0&&i++;return i}class Lf{constructor(e,i){this.points=e||new Array(8).fill([0,0,0]),this.planes=i||new Array(6).fill([0,0,0,0]),this.bounds=ci.fromPoints(this.points),this.projections=[],this.frustumEdges=[s.$.sub([],this.points[2],this.points[3]),s.$.sub([],this.points[0],this.points[3]),s.$.sub([],this.points[4],this.points[0]),s.$.sub([],this.points[5],this.points[1]),s.$.sub([],this.points[6],this.points[2]),s.$.sub([],this.points[7],this.points[3])];for(const n of this.frustumEdges){const o=[0,-n[2],n[1]],l=[n[2],0,-n[0]];this.projections.push({axis:o,projection:Ru(this.points,this.points[0],o)}),this.projections.push({axis:l,projection:Ru(this.points,this.points[0],l)})}}static fromInvProjectionMatrix(e,i,n,o){const l=Math.pow(2,n),c=[[-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]].map(_=>{const y=s.aB.transformMat4([],_,e),v=1/y[3]/i*l;return s.aB.mul(y,y,[v,v,o?1/y[3]:v,v])}),d=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(_=>{const y=s.$.sub([],c[_[0]],c[_[1]]),v=s.$.sub([],c[_[2]],c[_[1]]),b=s.$.normalize([],s.$.cross([],y,v)),E=-s.$.dot(b,c[_[1]]);return b.concat(E)}),f=[];for(let _=0;__[1]||_[0]>f[1])return 0}return 1}containsPoint(e){for(const i of this.planes){const n=i[3];if(s.$.dot([i[0],i[1],i[2]],e)+n<0)return!1}return!0}}class ci{static fromPoints(e){const i=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0];for(const o of e)s.$.min(i,i,o),s.$.max(n,n,o);return new ci(i,n)}static fromTileIdAndHeight(e,i,n){const o=1<e.max[i]||e.min[i]>this.max[i])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let i=0;i<3;i++)this.min[i]=Math.min(this.min[i],e.min[i]),this.max[i]=Math.max(this.max[i],e.max[i])}encapsulatePoint(e){for(let i=0;i<3;i++)this.min[i]=Math.min(this.min[i],e[i]),this.max[i]=Math.max(this.max[i],e[i])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}se(ci,"Aabb");const Ex=$t([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Ed}=Ex,S_=$t([{name:"a_pos_3",components:3,type:"Int16"}]);var Lu=$t([{name:"a_pos",type:"Int16",components:2}]);function Sd(t){return t*hr/oc}const Sx=[new ci([nn,nn,nn],[on,on,on]),new ci([nn,nn,nn],[0,0,on]),new ci([0,nn,nn],[on,0,on]),new ci([nn,0,nn],[0,on,on]),new ci([0,0,nn],[on,on,on])];function M_(t,e,i,n=!0){const o=s.$.scale([],t._camera.position,t.worldSize),l=[e,i,1,1];s.aB.transformMat4(l,l,t.pixelMatrixInverse),s.aB.scale(l,l,1/l[3]);const c=s.$.sub([],l,o),d=s.$.normalize([],c),f=t.globeMatrix,_=[f[12],f[13],f[14]],y=s.$.sub([],_,o),v=s.$.length(y),b=s.$.normalize([],y),E=t.worldSize/(2*Math.PI),M=s.$.dot(b,d),A=Math.asin(E/v);if(A1?null:function(n,o,l,c){const d=Math.sin(l);return n*(Math.sin((1-c)*l)/d)+o*(Math.sin(c*l)/d)}(t.a[e],t.b[e],t.angle,Et(i,0,1))+t.center[e]}function Yn(t){if(t.z<=1)return Sx[t.z+2*t.y+t.x];const e=Of(Md(t));return ci.fromPoints(e)}function Ao(t,e,i){return s.$.scale(t,t,1-i),s.$.scaleAndAdd(t,t,e,i)}function I_(t,e){const i=Co(e.zoom);if(i===0)return Yn(t);const n=Md(t),o=Of(n),l=Hn(n.getWest())*e.worldSize,c=Hn(n.getEast())*e.worldSize,d=Xn(n.getNorth())*e.worldSize,f=Xn(n.getSouth())*e.worldSize,_=[l,d,0],y=[c,d,0],v=[l,f,0],b=[c,f,0],E=s.ae.invert([],e.globeMatrix);return s.$.transformMat4(_,_,E),s.$.transformMat4(y,y,E),s.$.transformMat4(v,v,E),s.$.transformMat4(b,b,E),o[0]=Ao(o[0],v,i),o[1]=Ao(o[1],b,i),o[2]=Ao(o[2],y,i),o[3]=Ao(o[3],_,i),ci.fromPoints(o)}function A_(t,e,i){for(const n of t)s.$.transformMat4(n,n,e),s.$.scale(n,n,i)}function C_(t,e,i,n){const o=e/t.worldSize,l=t.globeMatrix;if(i.z<=1){const de=Yn(i).getCorners();return A_(de,l,o),ci.fromPoints(de)}const c=Md(i,n),d=Of(c,hr+Sd(t._tileCoverLift));A_(d,l,o);const f=Number.MAX_VALUE,_=[-f,-f,-f],y=[f,f,f];if(c.contains(t.center)){for(const pe of d)s.$.min(y,y,pe),s.$.max(_,_,pe);_[2]=0;const de=t.point,ye=[de.x*o,de.y*o,0];return s.$.min(y,y,ye),s.$.max(_,_,ye),new ci(y,_)}if(t._tileCoverLift>0){for(const de of d)s.$.min(y,y,de),s.$.max(_,_,de);return new ci(y,_)}const v=[l[12]*o,l[13]*o,l[14]*o],b=c.getCenter(),E=Et(t.center.lat,-Ti,Ti),M=Et(b.lat,-Ti,Ti),A=Hn(t.center.lng),C=Xn(E);let D=A-Hn(b.lng);const V=C-Xn(M);D>.5?D-=1:D<-.5&&(D+=1);let N=0;if(Math.abs(D)>Math.abs(V))N=D>=0?1:3;else{N=V>=0?0:2;const de=[l[4]*o,l[5]*o,l[6]*o],ye=-Math.sin(At(V>=0?c.getSouth():c.getNorth()))*hr;s.$.scaleAndAdd(v,v,de,ye)}const U=d[N],H=d[(N+1)%4],X=new Mx(U,H,v),Q=[kf(X,0)||U[0],kf(X,1)||U[1],kf(X,2)||U[2]],ae=Co(t.zoom);if(ae>0){const de=function({x:pe,y:we,z:De},Te,ke,be,Ie){const Be=1/(1<.5?et=-1:Ke<-.5&&(et=1),Ee=((Ee+et)*Te-(be*=Te))*ke+be,Ve=((Ve+et)*Te-be)*ke+be,Oe=(Oe*Te-(Ie*=Te))*ke+Ie,Re=(Re*Te-Ie)*ke+Ie,[[Ee,Re,0],[Ve,Re,0],[Ve,Oe,0],[Ee,Oe,0]]}(i,e,t._pixelsPerMercatorPixel,A,C);for(let pe=0;peMath.PI/2*1.01}const L_=At(85),Ix=Math.cos(L_),Ax=Math.sin(L_),Cx=s.ae.create(),k_=t=>{const e=[];return t.paint.get("circle-pitch-alignment")==="map"&&e.push("PITCH_WITH_MAP"),t.paint.get("circle-pitch-scale")==="map"&&e.push("SCALE_WITH_MAP"),e};function O_(t,e,i,n,o,l,c,d,f){if(l&&t.queryGeometry.isAboveHorizon)return!1;l&&(f*=t.pixelToTileUnitsFactor);const _=t.tileID.canonical,y=i.projection.upVectorScale(_,i.center.lat,i.worldSize).metersToTile;for(const v of e)for(const b of v){const E=b.add(d),M=o&&i.elevation?i.elevation.exaggeration()*o.getElevationAt(E.x,E.y,!0):0,A=i.projection.projectTilePoint(E.x,E.y,_);if(M>0){const N=i.projection.upVector(_,E.x,E.y);A.x+=N[0]*y*M,A.y+=N[1]*y*M,A.z+=N[2]*y*M}const C=l?E:Px(A.x,A.y,A.z,n),D=l?t.tilespaceRays.map(N=>Dx(N,M)):t.queryGeometry.screenGeometry,V=s.aB.transformMat4([],[A.x,A.y,A.z,1],n);if(!c&&l?f*=V[3]/i.cameraToCenterDistance:c&&!l&&(f*=i.cameraToCenterDistance/V[3]),l){const N=Vi((b.y/Fe+_.y)/(1<<_.z));f/=i.projection.pixelsPerMeter(N,1)/dr(1,N)}if(vx(D,C,f))return!0}return!1}function Px(t,e,i,n){const o=s.aB.transformMat4([],[t,e,i,1],n);return new je(o[0]/o[3],o[1]/o[3])}const B_=s.$.fromValues(0,0,0),zx=s.$.fromValues(0,0,1);function Dx(t,e){const i=s.$.create();return B_[2]=e,t.intersectsPlane(B_,zx,i),new je(i[0],i[1])}class F_ extends If{}function N_(t,{width:e,height:i},n,o){if(o){if(o instanceof Uint8ClampedArray)o=new Uint8Array(o.buffer);else if(o.length!==e*i*n)throw new RangeError("mismatched image size")}else o=new Uint8Array(e*i*n);return t.width=e,t.height=i,t.data=o,t}function V_(t,e,i){const{width:n,height:o}=e;n===t.width&&o===t.height||(Vf(t,e,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,o)},i,null),t.width=n,t.height=o,t.data=e.data)}function Vf(t,e,i,n,o,l,c,d){if(o.width===0||o.height===0)return e;if(o.width>t.width||o.height>t.height||i.x>t.width-o.width||i.y>t.height-o.height)throw new RangeError("out of range source coordinates for image copy");if(o.width>e.width||o.height>e.height||n.x>e.width-o.width||n.y>e.height-o.height)throw new RangeError("out of range destination coordinates for image copy");const f=t.data,_=e.data,y=l===4&&d;for(let v=0;v{e[t.evaluationKey]=f;const _=t.expression.evaluate(e);_&&(o.data[c+d+0]=Math.floor(255*_.r/_.a),o.data[c+d+1]=Math.floor(255*_.g/_.a),o.data[c+d+2]=Math.floor(255*_.b/_.a),o.data[c+d+3]=Math.floor(255*_.a))};if(t.clips)for(let c=0,d=0;c80*i){d=1/0,f=1/0;let y=-1/0,v=-1/0;for(let b=i;by&&(y=E),M>v&&(v=M)}_=Math.max(y-d,v-f),_=_!==0?32767/_:0}return Nu(l,c,i,d,f,_,0),c}function Z_(t,e,i,n,o){let l;if(o===function(c,d,f,_){let y=0;for(let v=d,b=f-_;v0)for(let c=e;c=e;c-=n)l=X_(c/n|0,t[c],t[c+1],l);return l&&Ad(l,l.next)&&(Uu(l),l=l.next),l}function Ua(t,e){if(!t)return t;e||(e=t);let i,n=t;do if(i=!1,n.steiner||!Ad(n,n.next)&&zi(n.prev,n,n.next)!==0)n=n.next;else{if(Uu(n),n=e=n.prev,n===n.next)break;i=!0}while(i||n!==e);return e}function Nu(t,e,i,n,o,l,c){if(!t)return;!c&&l&&function(f,_,y,v){let b=f;do b.z===0&&(b.z=Uf(b.x,b.y,_,y,v)),b.prevZ=b.prev,b.nextZ=b.next,b=b.next;while(b!==f);b.prevZ.nextZ=null,b.prevZ=null,function(E){let M,A=1;do{let C,D=E;E=null;let V=null;for(M=0;D;){M++;let N=D,U=0;for(let X=0;X0||H>0&&N;)U!==0&&(H===0||!N||D.z<=N.z)?(C=D,D=D.nextZ,U--):(C=N,N=N.nextZ,H--),V?V.nextZ=C:E=C,C.prevZ=V,V=C;D=N}V.nextZ=null,A*=2}while(M>1)}(b)}(t,n,o,l);let d=t;for(;t.prev!==t.next;){const f=t.prev,_=t.next;if(l?Ox(t,n,o,l):kx(t))e.push(f.i,t.i,_.i),Uu(t),t=_.next,d=_.next;else if((t=_)===d){c?c===1?Nu(t=Bx(Ua(t),e),e,i,n,o,l,2):c===2&&Fx(t,e,i,n,o,l):Nu(Ua(t),e,i,n,o,l,1);break}}}function kx(t){const e=t.prev,i=t,n=t.next;if(zi(e,i,n)>=0)return!1;const o=e.x,l=i.x,c=n.x,d=e.y,f=i.y,_=n.y,y=ol?o>c?o:c:l>c?l:c,E=d>f?d>_?d:_:f>_?f:_;let M=n.next;for(;M!==e;){if(M.x>=y&&M.x<=b&&M.y>=v&&M.y<=E&&cc(o,d,l,f,c,_,M.x,M.y)&&zi(M.prev,M,M.next)>=0)return!1;M=M.next}return!0}function Ox(t,e,i,n){const o=t.prev,l=t,c=t.next;if(zi(o,l,c)>=0)return!1;const d=o.x,f=l.x,_=c.x,y=o.y,v=l.y,b=c.y,E=df?d>_?d:_:f>_?f:_,C=y>v?y>b?y:b:v>b?v:b,D=Uf(E,M,e,i,n),V=Uf(A,C,e,i,n);let N=t.prevZ,U=t.nextZ;for(;N&&N.z>=D&&U&&U.z<=V;){if(N.x>=E&&N.x<=A&&N.y>=M&&N.y<=C&&N!==o&&N!==c&&cc(d,y,f,v,_,b,N.x,N.y)&&zi(N.prev,N,N.next)>=0||(N=N.prevZ,U.x>=E&&U.x<=A&&U.y>=M&&U.y<=C&&U!==o&&U!==c&&cc(d,y,f,v,_,b,U.x,U.y)&&zi(U.prev,U,U.next)>=0))return!1;U=U.nextZ}for(;N&&N.z>=D;){if(N.x>=E&&N.x<=A&&N.y>=M&&N.y<=C&&N!==o&&N!==c&&cc(d,y,f,v,_,b,N.x,N.y)&&zi(N.prev,N,N.next)>=0)return!1;N=N.prevZ}for(;U&&U.z<=V;){if(U.x>=E&&U.x<=A&&U.y>=M&&U.y<=C&&U!==o&&U!==c&&cc(d,y,f,v,_,b,U.x,U.y)&&zi(U.prev,U,U.next)>=0)return!1;U=U.nextZ}return!0}function Bx(t,e){let i=t;do{const n=i.prev,o=i.next.next;!Ad(n,o)&&W_(n,i,i.next,o)&&Vu(n,o)&&Vu(o,n)&&(e.push(n.i,i.i,o.i),Uu(i),Uu(i.next),i=t=o),i=i.next}while(i!==t);return Ua(i)}function Fx(t,e,i,n,o,l){let c=t;do{let d=c.next.next;for(;d!==c.prev;){if(c.i!==d.i&&Gx(c,d)){let f=H_(c,d);return c=Ua(c,c.next),f=Ua(f,f.next),Nu(c,e,i,n,o,l,0),void Nu(f,e,i,n,o,l,0)}d=d.next}c=c.next}while(c!==t)}function Nx(t,e){return t.x-e.x}function Vx(t,e){const i=function(o,l){let c=l;const d=o.x,f=o.y;let _,y=-1/0;do{if(f<=c.y&&f>=c.next.y&&c.next.y!==c.y){const A=c.x+(f-c.y)*(c.next.x-c.x)/(c.next.y-c.y);if(A<=d&&A>y&&(y=A,_=c.x=c.x&&c.x>=b&&d!==c.x&&cc(f_.x||c.x===_.x&&Ux(_,c)))&&(_=c,M=A)}c=c.next}while(c!==v);return _}(t,e);if(!i)return e;const n=H_(i,t);return Ua(n,n.next),Ua(i,i.next)}function Ux(t,e){return zi(t.prev,t,e.prev)<0&&zi(e.next,t,t.next)<0}function Uf(t,e,i,n,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function jx(t){let e=t,i=t;do(e.x=(t-c)*(l-d)&&(t-c)*(n-d)>=(i-c)*(e-d)&&(i-c)*(l-d)>=(o-c)*(n-d)}function Gx(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(i,n){let o=i;do{if(o.i!==i.i&&o.next.i!==i.i&&o.i!==n.i&&o.next.i!==n.i&&W_(o,o.next,i,n))return!0;o=o.next}while(o!==i);return!1}(t,e)&&(Vu(t,e)&&Vu(e,t)&&function(i,n){let o=i,l=!1;const c=(i.x+n.x)/2,d=(i.y+n.y)/2;do o.y>d!=o.next.y>d&&o.next.y!==o.y&&c<(o.next.x-o.x)*(d-o.y)/(o.next.y-o.y)+o.x&&(l=!l),o=o.next;while(o!==i);return l}(t,e)&&(zi(t.prev,t,e.prev)||zi(t,e.prev,e))||Ad(t,e)&&zi(t.prev,t,t.next)>0&&zi(e.prev,e,e.next)>0)}function zi(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function Ad(t,e){return t.x===e.x&&t.y===e.y}function W_(t,e,i,n){const o=Pd(zi(t,e,i)),l=Pd(zi(t,e,n)),c=Pd(zi(i,n,t)),d=Pd(zi(i,n,e));return o!==l&&c!==d||!(o!==0||!Cd(t,i,e))||!(l!==0||!Cd(t,n,e))||!(c!==0||!Cd(i,t,n))||!(d!==0||!Cd(i,e,n))}function Cd(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function Pd(t){return t>0?1:t<0?-1:0}function Vu(t,e){return zi(t.prev,t,t.next)<0?zi(t,e,t.next)>=0&&zi(t,t.prev,e)>=0:zi(t,e,t.prev)<0||zi(t,t.next,e)<0}function H_(t,e){const i=jf(t.i,t.x,t.y),n=jf(e.i,e.x,e.y),o=t.next,l=e.prev;return t.next=e,e.prev=t,i.next=o,o.prev=i,n.next=i,i.prev=n,l.next=n,n.prev=l,n}function X_(t,e,i,n){const o=jf(t,e,i);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function Uu(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function jf(t,e,i){return{i:t,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function zd(t,e){const i=t.length;if(i<=1)return[t];const n=[];let o,l;for(let c=0;c1)for(let c=0;ci.fqid),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new bn,this.indexArray=new ki,this.indexArray2=new xs,this.programConfigurations=new bs(e.layers,{zoom:e.zoom,lut:e.lut}),this.segments=new hi,this.segments2=new hi,this.stateDependentLayerIds=this.layers.filter(i=>i.isStateDependent()).map(i=>i.id),this.projection=e.projection}updateFootprints(e,i){}populate(e,i,n,o){this.hasPattern=Gf("fill",this.layers,i);const l=this.layers[0].layout.get("fill-sort-key"),c=[];for(const{feature:d,id:f,index:_,sourceLayerIndex:y}of e){const v=this.layers[0]._featureFilter.needGeometry,b=Io(d,v);if(!this.layers[0]._featureFilter.filter(new at(this.zoom),b,n))continue;const E=l?l.evaluate(b,{},n,i.availableImages):void 0,M={id:f,properties:d.properties,type:d.type,sourceLayerIndex:y,index:_,geometry:v?b.geometry:Tn(d,n,o),patterns:{},sortKey:E};c.push(M)}l&&c.sort((d,f)=>d.sortKey-f.sortKey);for(const d of c){const{geometry:f,index:_,sourceLayerIndex:y}=d;if(this.hasPattern){const v=$f("fill",this.layers,d,this.zoom,i);this.patternFeatures.push(v)}else this.addFeature(d,f,_,n,{},i.availableImages,i.brightness);i.featureIndex.insert(e[_].feature,f,_,y,this.index)}}update(e,i,n,o,l){const c=Object.keys(e).length!==0;c&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(e,i,c?this.stateDependentLayers:this.layers,n,o,l)}addFeatures(e,i,n,o,l,c){for(const d of this.patternFeatures)this.addFeature(d,d.geometry,d.index,i,n,o,c)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Lx),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),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(e,i,n,o,l,c=[],d){for(const f of zd(i,500)){let _=0;for(const A of f)_+=A.length;const y=this.segments.prepareSegment(_,this.layoutVertexArray,this.indexArray),v=y.vertexLength,b=[],E=[];for(const A of f){if(A.length===0)continue;A!==f[0]&&E.push(b.length/2);const C=this.segments2.prepareSegment(A.length,this.layoutVertexArray,this.indexArray2),D=C.vertexLength;this.layoutVertexArray.emplaceBack(A[0].x,A[0].y),this.indexArray2.emplaceBack(D+A.length-1,D),b.push(A[0].x),b.push(A[0].y);for(let V=1;Vv.cellIdx-b.cellIdx||v.triIdx-b.triIdx);let y=0;for(;y<_.length;){const v=_[y].cellIdx,b={start:this.payload.length,len:0};for(;y<_.length&&_[y].cellIdx===v;)++b.len,this.payload.push(_[y++].triIdx);this.cells[v]=b}}_lazyInitLookup(){this.lookup||(this.lookup=new Uint8Array(Math.ceil(this.triangleCount/8))),this.lookup.fill(0)}queryPoint(e,i){if(this.triangleCount===0||this.cells.length===0||e.x>this.max.x||this.min.x>e.x||e.y>this.max.y||this.min.y>e.y)return;const n=Jn(e.x-this.min.x,this.xScale,this.cellsX),o=Jn(e.y-this.min.y,this.yScale,this.cellsY),l=this.cells[o*this.cellsX+n];if(l){this._lazyInitLookup();for(let c=0;cthis.max.x||this.min.x>i.x||e.y>this.max.y||this.min.y>i.y)return;this._lazyInitLookup();const o=Jn(e.x-this.min.x,this.xScale,this.cellsX),l=Jn(i.x-this.min.x,this.xScale,this.cellsX),c=Jn(e.y-this.min.y,this.yScale,this.cellsY),d=Jn(i.y-this.min.y,this.yScale,this.cellsY);for(let f=c;f<=d;f++)for(let _=o;_<=l;_++){const y=this.cells[f*this.cellsX+_];if(y)for(let v=0;vi.fqid),this.index=e.index,this.hasPattern=!1,this.stateDependentLayerIds=this.layers.filter(i=>i.isStateDependent()).map(i=>i.id),this.footprints=[]}updateFootprints(e,i){for(const n of this.footprints)i.push({footprint:n,id:e})}populate(e,i,n,o){const l=[];for(const{feature:c,id:d,index:f,sourceLayerIndex:_}of e){const y=this.layers[0]._featureFilter.needGeometry,v=Io(c,y);if(!this.layers[0]._featureFilter.filter(new at(this.zoom),v,n))continue;const b={id:d,properties:c.properties,type:c.type,sourceLayerIndex:_,index:f,geometry:y?v.geometry:Tn(c,n,o),patterns:{}};l.push(b)}for(const c of l){const{geometry:d,index:f,sourceLayerIndex:_}=c;this.addFeature(c,d,f,n,{},i.availableImages,i.brightness),i.featureIndex.insert(e[f].feature,d,f,_,this.index)}}isEmpty(){return this.footprints.length===0}uploadPending(){return!1}upload(e){}update(e,i,n,o,l){}destroy(){}addFeature(e,i,n,o,l,c=[],d){for(const f of zd(i,2)){const _=[],y=[],v=[],b=new je(1/0,1/0),E=new je(-1/0,-1/0);for(const C of f)if(C.length!==0){C!==f[0]&&v.push(y.length/2);for(let D=0;D>3}if(o--,n===1||n===2)l+=t.readSVarint(),c+=t.readSVarint(),n===1&&(e&&d.push(e),e=[]),e.push(new Kx(l,c));else{if(n!==7)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&d.push(e),d},uc.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,i=1,n=0,o=0,l=0,c=1/0,d=-1/0,f=1/0,_=-1/0;t.pos