Merge pull request #26 from rightup/feat/hardware-stats

Feat/hardware stats
This commit is contained in:
Lloyd authored and GitHub committed 2025-11-29 16:02:22 -08:00
commit ec9db95bbc
8 files changed
+412 -178

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ dependencies = [
"cherrypy>=18.0.0",
"paho-mqtt>=1.6.0",
"cherrypy-cors==1.7.0",
"psutil>=5.9.0",
]
+174
View File
@@ -0,0 +1,174 @@
"""
Hardware statistics collection using psutil.
KISS - Keep It Simple Stupid approach.
"""
try:
import psutil
PSUTIL_AVAILABLE = True
except ImportError:
PSUTIL_AVAILABLE = False
psutil = None
import time
import logging
logger = logging.getLogger("HardwareStats")
class HardwareStatsCollector:
def __init__(self):
self.start_time = time.time()
def get_stats(self):
if not PSUTIL_AVAILABLE:
logger.error("psutil not available - cannot collect hardware stats")
return {
"error": "psutil library not available - cannot collect hardware statistics"
}
try:
# Get current timestamp
now = time.time()
uptime = now - self.start_time
# CPU stats
cpu_percent = psutil.cpu_percent(interval=0.1)
cpu_count = psutil.cpu_count()
cpu_freq = psutil.cpu_freq()
# Memory stats
memory = psutil.virtual_memory()
# Disk stats
disk = psutil.disk_usage('/')
# Network stats (total across all interfaces)
net_io = psutil.net_io_counters()
# Load average (Unix only)
load_avg = None
try:
load_avg = psutil.getloadavg()
except (AttributeError, OSError):
# Not available on all systems - use zeros
load_avg = (0.0, 0.0, 0.0)
# System boot time
boot_time = psutil.boot_time()
system_uptime = now - boot_time
# Temperature (if available)
temperatures = {}
try:
temps = psutil.sensors_temperatures()
for name, entries in temps.items():
for i, entry in enumerate(entries):
temp_name = f"{name}_{i}" if len(entries) > 1 else name
temperatures[temp_name] = entry.current
except (AttributeError, OSError):
# Temperature sensors not available
pass
# Format data structure to match Vue component expectations
stats = {
"cpu": {
"usage_percent": cpu_percent,
"count": cpu_count,
"frequency": cpu_freq.current if cpu_freq else 0,
"load_avg": {
"1min": load_avg[0],
"5min": load_avg[1],
"15min": load_avg[2]
}
},
"memory": {
"total": memory.total,
"available": memory.available,
"used": memory.used,
"usage_percent": memory.percent
},
"disk": {
"total": disk.total,
"used": disk.used,
"free": disk.free,
"usage_percent": round((disk.used / disk.total) * 100, 1)
},
"network": {
"bytes_sent": net_io.bytes_sent,
"bytes_recv": net_io.bytes_recv,
"packets_sent": net_io.packets_sent,
"packets_recv": net_io.packets_recv
},
"system": {
"uptime": system_uptime,
"boot_time": boot_time
}
}
# Add temperatures if available
if temperatures:
stats["temperatures"] = temperatures
return stats
except Exception as e:
logger.error(f"Error collecting hardware stats: {e}")
return {
"error": str(e)
}
def get_processes_summary(self, limit=10):
"""
Get top processes by CPU and memory usage.
Returns a dictionary with process information in the format expected by the UI.
"""
if not PSUTIL_AVAILABLE:
logger.error("psutil not available - cannot collect process stats")
return {
"processes": [],
"total_processes": 0,
"error": "psutil library not available - cannot collect process statistics"
}
try:
processes = []
# Get all processes
for proc in psutil.process_iter(['pid', 'name', 'cpu_percent', 'memory_percent', 'memory_info']):
try:
pinfo = proc.info
# Calculate memory in MB
memory_mb = 0
if pinfo['memory_info']:
memory_mb = pinfo['memory_info'].rss / 1024 / 1024 # RSS in MB
process_data = {
"pid": pinfo['pid'],
"name": pinfo['name'] or 'Unknown',
"cpu_percent": pinfo['cpu_percent'] or 0.0,
"memory_percent": pinfo['memory_percent'] or 0.0,
"memory_mb": round(memory_mb, 1)
}
processes.append(process_data)
except (psutil.NoSuchProcess, psutil.AccessDenied):
pass
# Sort by CPU usage and get top processes
top_processes = sorted(processes, key=lambda x: x['cpu_percent'], reverse=True)[:limit]
return {
"processes": top_processes,
"total_processes": len(processes)
}
except Exception as e:
logger.error(f"Error collecting process stats: {e}")
return {
"processes": [],
"total_processes": 0,
"error": str(e)
}
@@ -64,6 +64,11 @@ class StorageCollector:
self.disallowed_packet_types = set()
else:
self.disallowed_packet_types = set()
# Initialize hardware stats collector
from .hardware_stats import HardwareStatsCollector
self.hardware_stats = HardwareStatsCollector()
logger.info("Hardware stats collector initialized")
def _get_live_stats(self) -> dict:
"""Get live stats from RepeaterHandler"""
@@ -228,3 +233,19 @@ class StorageCollector:
def delete_advert(self, advert_id: int) -> bool:
return self.sqlite_handler.delete_advert(advert_id)
def get_hardware_stats(self) -> Optional[dict]:
"""Get current hardware statistics"""
try:
return self.hardware_stats.get_stats()
except Exception as e:
logger.error(f"Error getting hardware stats: {e}")
return None
def get_hardware_processes(self) -> Optional[list]:
"""Get current process summary"""
try:
return self.hardware_stats.get_processes_summary()
except Exception as e:
logger.error(f"Error getting hardware processes: {e}")
return None
+38
View File
@@ -243,6 +243,44 @@ class APIEndpoints:
logger.error(f"Error fetching logs: {e}")
return {"error": str(e), "logs": []}
@cherrypy.expose
@cherrypy.tools.json_out()
def hardware_stats(self):
"""Get comprehensive hardware statistics"""
try:
# Get hardware stats from storage collector
storage = self._get_storage()
if storage:
stats = storage.get_hardware_stats()
if stats:
return self._success(stats)
else:
return self._error("Hardware stats not available (psutil may not be installed)")
else:
return self._error("Storage collector not available")
except Exception as e:
logger.error(f"Error getting hardware stats: {e}")
return self._error(e)
@cherrypy.expose
@cherrypy.tools.json_out()
def hardware_processes(self):
"""Get summary of top processes"""
try:
# Get process stats from storage collector
storage = self._get_storage()
if storage:
processes = storage.get_hardware_processes()
if processes:
return self._success(processes)
else:
return self._error("Process information not available (psutil may not be installed)")
else:
return self._error("Storage collector not available")
except Exception as e:
logger.error(f"Error getting process stats: {e}")
return self._error(e)
@cherrypy.expose
@cherrypy.tools.json_out()
def packet_stats(self, hours=24):
@@ -1,54 +1,54 @@
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const K of document.querySelectorAll('link[rel="modulepreload"]'))B(K);new MutationObserver(K=>{for(const pt of K)if(pt.type==="childList")for(const _t of pt.addedNodes)_t.tagName==="LINK"&&_t.rel==="modulepreload"&&B(_t)}).observe(document,{childList:!0,subtree:!0});function E(K){const pt={};return K.integrity&&(pt.integrity=K.integrity),K.referrerPolicy&&(pt.referrerPolicy=K.referrerPolicy),K.crossOrigin==="use-credentials"?pt.credentials="include":K.crossOrigin==="anonymous"?pt.credentials="omit":pt.credentials="same-origin",pt}function B(K){if(K.ep)return;K.ep=!0;const pt=E(K);fetch(K.href,pt)}})();/**
function MG(d,s){for(var E=0;E<s.length;E++){const R=s[E];if(typeof R!="string"&&!Array.isArray(R)){for(const Y in R)if(Y!=="default"&&!(Y in d)){const dt=Object.getOwnPropertyDescriptor(R,Y);dt&&Object.defineProperty(d,Y,dt.get?dt:{enumerable:!0,get:()=>R[Y]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const Y of document.querySelectorAll('link[rel="modulepreload"]'))R(Y);new MutationObserver(Y=>{for(const dt of Y)if(dt.type==="childList")for(const _t of dt.addedNodes)_t.tagName==="LINK"&&_t.rel==="modulepreload"&&R(_t)}).observe(document,{childList:!0,subtree:!0});function E(Y){const dt={};return Y.integrity&&(dt.integrity=Y.integrity),Y.referrerPolicy&&(dt.referrerPolicy=Y.referrerPolicy),Y.crossOrigin==="use-credentials"?dt.credentials="include":Y.crossOrigin==="anonymous"?dt.credentials="omit":dt.credentials="same-origin",dt}function R(Y){if(Y.ep)return;Y.ep=!0;const dt=E(Y);fetch(Y.href,dt)}})();/**
* @vue/shared v3.5.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function BA(d){const s=Object.create(null);for(const E of d.split(","))s[E]=1;return E=>E in s}const mf={},s_=[],dg=()=>{},uG=()=>!1,S4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),NA=d=>d.startsWith("onUpdate:"),ap=Object.assign,jA=(d,s)=>{const E=d.indexOf(s);E>-1&&d.splice(E,1)},cG=Object.prototype.hasOwnProperty,Rh=(d,s)=>cG.call(d,s),au=Array.isArray,l_=d=>Q2(d)==="[object Map]",E4=d=>Q2(d)==="[object Set]",zC=d=>Q2(d)==="[object Date]",Vu=d=>typeof d=="function",sd=d=>typeof d=="string",Cm=d=>typeof d=="symbol",gf=d=>d!==null&&typeof d=="object",CI=d=>(gf(d)||Vu(d))&&Vu(d.then)&&Vu(d.catch),LI=Object.prototype.toString,Q2=d=>LI.call(d),hG=d=>Q2(d).slice(8,-1),PI=d=>Q2(d)==="[object Object]",UA=d=>sd(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,b2=BA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C4=d=>{const s=Object.create(null);return E=>s[E]||(s[E]=d(E))},fG=/-(\w)/g,cm=C4(d=>d.replace(fG,(s,E)=>E?E.toUpperCase():"")),dG=/\B([A-Z])/g,Py=C4(d=>d.replace(dG,"-$1").toLowerCase()),L4=C4(d=>d.charAt(0).toUpperCase()+d.slice(1)),y8=C4(d=>d?`on${L4(d)}`:""),p1=(d,s)=>!Object.is(d,s),G5=(d,...s)=>{for(let E=0;E<d.length;E++)d[E](...s)},rA=(d,s,E,B=!1)=>{Object.defineProperty(d,s,{configurable:!0,enumerable:!1,writable:B,value:E})},o4=d=>{const s=parseFloat(d);return isNaN(s)?d:s},pG=d=>{const s=sd(d)?Number(d):NaN;return isNaN(s)?d:s};let OC;const P4=()=>OC||(OC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hm(d){if(au(d)){const s={};for(let E=0;E<d.length;E++){const B=d[E],K=sd(B)?yG(B):hm(B);if(K)for(const pt in K)s[pt]=K[pt]}return s}else if(sd(d)||gf(d))return d}const mG=/;(?![^(]*\))/g,gG=/:([^]+)/,vG=/\/\*[^]*?\*\//g;function yG(d){const s={};return d.replace(vG,"").split(mG).forEach(E=>{if(E){const B=E.split(gG);B.length>1&&(s[B[0].trim()]=B[1].trim())}}),s}function jo(d){let s="";if(sd(d))s=d;else if(au(d))for(let E=0;E<d.length;E++){const B=jo(d[E]);B&&(s+=B+" ")}else if(gf(d))for(const E in d)d[E]&&(s+=E+" ");return s.trim()}const xG="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_G=BA(xG);function II(d){return!!d||d===""}function bG(d,s){if(d.length!==s.length)return!1;let E=!0;for(let B=0;E&&B<d.length;B++)E=d_(d[B],s[B]);return E}function d_(d,s){if(d===s)return!0;let E=zC(d),B=zC(s);if(E||B)return E&&B?d.getTime()===s.getTime():!1;if(E=Cm(d),B=Cm(s),E||B)return d===s;if(E=au(d),B=au(s),E||B)return E&&B?bG(d,s):!1;if(E=gf(d),B=gf(s),E||B){if(!E||!B)return!1;const K=Object.keys(d).length,pt=Object.keys(s).length;if(K!==pt)return!1;for(const _t in d){const Ot=d.hasOwnProperty(_t),jt=s.hasOwnProperty(_t);if(Ot&&!jt||!Ot&&jt||!d_(d[_t],s[_t]))return!1}}return String(d)===String(s)}function wG(d,s){return d.findIndex(E=>d_(E,s))}const zI=d=>!!(d&&d.__v_isRef===!0),Qi=d=>sd(d)?d:d==null?"":au(d)||gf(d)&&(d.toString===LI||!Vu(d.toString))?zI(d)?Qi(d.value):JSON.stringify(d,OI,2):String(d),OI=(d,s)=>zI(s)?OI(d,s.value):l_(s)?{[`Map(${s.size})`]:[...s.entries()].reduce((E,[B,K],pt)=>(E[x8(B,pt)+" =>"]=K,E),{})}:E4(s)?{[`Set(${s.size})`]:[...s.values()].map(E=>x8(E))}:Cm(s)?x8(s):gf(s)&&!au(s)&&!PI(s)?String(s):s,x8=(d,s="")=>{var E;return Cm(d)?`Symbol(${(E=d.description)!=null?E:s})`:d};/**
**//*! #__NO_SIDE_EFFECTS__ */function jA(d){const s=Object.create(null);for(const E of d.split(","))s[E]=1;return E=>E in s}const mf={},l_=[],mg=()=>{},SG=()=>!1,C4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),UA=d=>d.startsWith("onUpdate:"),ap=Object.assign,VA=(d,s)=>{const E=d.indexOf(s);E>-1&&d.splice(E,1)},EG=Object.prototype.hasOwnProperty,Rh=(d,s)=>EG.call(d,s),au=Array.isArray,u_=d=>Q2(d)==="[object Map]",L4=d=>Q2(d)==="[object Set]",DC=d=>Q2(d)==="[object Date]",Vu=d=>typeof d=="function",ld=d=>typeof d=="string",Cm=d=>typeof d=="symbol",gf=d=>d!==null&&typeof d=="object",II=d=>(gf(d)||Vu(d))&&Vu(d.then)&&Vu(d.catch),zI=Object.prototype.toString,Q2=d=>zI.call(d),CG=d=>Q2(d).slice(8,-1),OI=d=>Q2(d)==="[object Object]",HA=d=>ld(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,b2=jA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P4=d=>{const s=Object.create(null);return E=>s[E]||(s[E]=d(E))},LG=/-(\w)/g,cm=P4(d=>d.replace(LG,(s,E)=>E?E.toUpperCase():"")),PG=/\B([A-Z])/g,zy=P4(d=>d.replace(PG,"-$1").toLowerCase()),I4=P4(d=>d.charAt(0).toUpperCase()+d.slice(1)),x8=P4(d=>d?`on${I4(d)}`:""),g1=(d,s)=>!Object.is(d,s),Y5=(d,...s)=>{for(let E=0;E<d.length;E++)d[E](...s)},aA=(d,s,E,R=!1)=>{Object.defineProperty(d,s,{configurable:!0,enumerable:!1,writable:R,value:E})},s4=d=>{const s=parseFloat(d);return isNaN(s)?d:s},IG=d=>{const s=ld(d)?Number(d):NaN;return isNaN(s)?d:s};let FC;const z4=()=>FC||(FC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hm(d){if(au(d)){const s={};for(let E=0;E<d.length;E++){const R=d[E],Y=ld(R)?FG(R):hm(R);if(Y)for(const dt in Y)s[dt]=Y[dt]}return s}else if(ld(d)||gf(d))return d}const zG=/;(?![^(]*\))/g,OG=/:([^]+)/,DG=/\/\*[^]*?\*\//g;function FG(d){const s={};return d.replace(DG,"").split(zG).forEach(E=>{if(E){const R=E.split(OG);R.length>1&&(s[R[0].trim()]=R[1].trim())}}),s}function Fo(d){let s="";if(ld(d))s=d;else if(au(d))for(let E=0;E<d.length;E++){const R=Fo(d[E]);R&&(s+=R+" ")}else if(gf(d))for(const E in d)d[E]&&(s+=E+" ");return s.trim()}const BG="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",RG=jA(BG);function DI(d){return!!d||d===""}function NG(d,s){if(d.length!==s.length)return!1;let E=!0;for(let R=0;E&&R<d.length;R++)E=p_(d[R],s[R]);return E}function p_(d,s){if(d===s)return!0;let E=DC(d),R=DC(s);if(E||R)return E&&R?d.getTime()===s.getTime():!1;if(E=Cm(d),R=Cm(s),E||R)return d===s;if(E=au(d),R=au(s),E||R)return E&&R?NG(d,s):!1;if(E=gf(d),R=gf(s),E||R){if(!E||!R)return!1;const Y=Object.keys(d).length,dt=Object.keys(s).length;if(Y!==dt)return!1;for(const _t in d){const zt=d.hasOwnProperty(_t),jt=s.hasOwnProperty(_t);if(zt&&!jt||!zt&&jt||!p_(d[_t],s[_t]))return!1}}return String(d)===String(s)}function jG(d,s){return d.findIndex(E=>p_(E,s))}const FI=d=>!!(d&&d.__v_isRef===!0),Fi=d=>ld(d)?d:d==null?"":au(d)||gf(d)&&(d.toString===zI||!Vu(d.toString))?FI(d)?Fi(d.value):JSON.stringify(d,BI,2):String(d),BI=(d,s)=>FI(s)?BI(d,s.value):u_(s)?{[`Map(${s.size})`]:[...s.entries()].reduce((E,[R,Y],dt)=>(E[_8(R,dt)+" =>"]=Y,E),{})}:L4(s)?{[`Set(${s.size})`]:[...s.values()].map(E=>_8(E))}:Cm(s)?_8(s):gf(s)&&!au(s)&&!OI(s)?String(s):s,_8=(d,s="")=>{var E;return Cm(d)?`Symbol(${(E=d.description)!=null?E:s})`:d};/**
* @vue/reactivity v3.5.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let $p;class DI{constructor(s=!1){this.detached=s,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$p,!s&&$p&&(this.index=($p.scopes||($p.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s<E;s++)this.scopes[s].pause();for(s=0,E=this.effects.length;s<E;s++)this.effects[s].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s<E;s++)this.scopes[s].resume();for(s=0,E=this.effects.length;s<E;s++)this.effects[s].resume()}}run(s){if(this._active){const E=$p;try{return $p=this,s()}finally{$p=E}}}on(){++this._on===1&&(this.prevScope=$p,$p=this)}off(){this._on>0&&--this._on===0&&($p=this.prevScope,this.prevScope=void 0)}stop(s){if(this._active){this._active=!1;let E,B;for(E=0,B=this.effects.length;E<B;E++)this.effects[E].stop();for(this.effects.length=0,E=0,B=this.cleanups.length;E<B;E++)this.cleanups[E]();if(this.cleanups.length=0,this.scopes){for(E=0,B=this.scopes.length;E<B;E++)this.scopes[E].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!s){const K=this.parent.scopes.pop();K&&K!==this&&(this.parent.scopes[this.index]=K,K.index=this.index)}this.parent=void 0}}}function FI(d){return new DI(d)}function RI(){return $p}function kG(d,s=!1){$p&&$p.cleanups.push(d)}let kf;const _8=new WeakSet;class BI{constructor(s){this.fn=s,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$p&&$p.active&&$p.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_8.has(this)&&(_8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||jI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,DC(this),UI(this);const s=kf,E=Sm;kf=this,Sm=!0;try{return this.fn()}finally{VI(this),kf=s,Sm=E,this.flags&=-3}}stop(){if(this.flags&1){for(let s=this.deps;s;s=s.nextDep)WA(s);this.deps=this.depsTail=void 0,DC(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){nA(this)&&this.run()}get dirty(){return nA(this)}}let NI=0,w2,k2;function jI(d,s=!1){if(d.flags|=8,s){d.next=k2,k2=d;return}d.next=w2,w2=d}function VA(){NI++}function HA(){if(--NI>0)return;if(k2){let s=k2;for(k2=void 0;s;){const E=s.next;s.next=void 0,s.flags&=-9,s=E}}let d;for(;w2;){let s=w2;for(w2=void 0;s;){const E=s.next;if(s.next=void 0,s.flags&=-9,s.flags&1)try{s.trigger()}catch(B){d||(d=B)}s=E}}if(d)throw d}function UI(d){for(let s=d.deps;s;s=s.nextDep)s.version=-1,s.prevActiveLink=s.dep.activeLink,s.dep.activeLink=s}function VI(d){let s,E=d.depsTail,B=E;for(;B;){const K=B.prevDep;B.version===-1?(B===E&&(E=K),WA(B),TG(B)):s=B,B.dep.activeLink=B.prevActiveLink,B.prevActiveLink=void 0,B=K}d.deps=s,d.depsTail=E}function nA(d){for(let s=d.deps;s;s=s.nextDep)if(s.dep.version!==s.version||s.dep.computed&&(HI(s.dep.computed)||s.dep.version!==s.version))return!0;return!!d._dirty}function HI(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===D2)||(d.globalVersion=D2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!nA(d))))return;d.flags|=2;const s=d.dep,E=kf,B=Sm;kf=d,Sm=!0;try{UI(d);const K=d.fn(d._value);(s.version===0||p1(K,d._value))&&(d.flags|=128,d._value=K,s.version++)}catch(K){throw s.version++,K}finally{kf=E,Sm=B,VI(d),d.flags&=-3}}function WA(d,s=!1){const{dep:E,prevSub:B,nextSub:K}=d;if(B&&(B.nextSub=K,d.prevSub=void 0),K&&(K.prevSub=B,d.nextSub=void 0),E.subs===d&&(E.subs=B,!B&&E.computed)){E.computed.flags&=-5;for(let pt=E.computed.deps;pt;pt=pt.nextDep)WA(pt,!0)}!s&&!--E.sc&&E.map&&E.map.delete(E.key)}function TG(d){const{prevDep:s,nextDep:E}=d;s&&(s.nextDep=E,d.prevDep=void 0),E&&(E.prevDep=s,d.nextDep=void 0)}let Sm=!0;const WI=[];function av(){WI.push(Sm),Sm=!1}function ov(){const d=WI.pop();Sm=d===void 0?!0:d}function DC(d){const{cleanup:s}=d;if(d.cleanup=void 0,s){const E=kf;kf=void 0;try{s()}finally{kf=E}}}let D2=0;class AG{constructor(s,E){this.sub=s,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qA{constructor(s){this.computed=s,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(s){if(!kf||!Sm||kf===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==kf)E=this.activeLink=new AG(kf,this),kf.deps?(E.prevDep=kf.depsTail,kf.depsTail.nextDep=E,kf.depsTail=E):kf.deps=kf.depsTail=E,qI(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const B=E.nextDep;B.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=B),E.prevDep=kf.depsTail,E.nextDep=void 0,kf.depsTail.nextDep=E,kf.depsTail=E,kf.deps===E&&(kf.deps=B)}return E}trigger(s){this.version++,D2++,this.notify(s)}notify(s){VA();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{HA()}}}fLine truncated
**/let $p;class RI{constructor(s=!1){this.detached=s,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$p,!s&&$p&&(this.index=($p.scopes||($p.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s<E;s++)this.scopes[s].pause();for(s=0,E=this.effects.length;s<E;s++)this.effects[s].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s<E;s++)this.scopes[s].resume();for(s=0,E=this.effects.length;s<E;s++)this.effects[s].resume()}}run(s){if(this._active){const E=$p;try{return $p=this,s()}finally{$p=E}}}on(){++this._on===1&&(this.prevScope=$p,$p=this)}off(){this._on>0&&--this._on===0&&($p=this.prevScope,this.prevScope=void 0)}stop(s){if(this._active){this._active=!1;let E,R;for(E=0,R=this.effects.length;E<R;E++)this.effects[E].stop();for(this.effects.length=0,E=0,R=this.cleanups.length;E<R;E++)this.cleanups[E]();if(this.cleanups.length=0,this.scopes){for(E=0,R=this.scopes.length;E<R;E++)this.scopes[E].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!s){const Y=this.parent.scopes.pop();Y&&Y!==this&&(this.parent.scopes[this.index]=Y,Y.index=this.index)}this.parent=void 0}}}function NI(d){return new RI(d)}function jI(){return $p}function UG(d,s=!1){$p&&$p.cleanups.push(d)}let kf;const b8=new WeakSet;class UI{constructor(s){this.fn=s,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$p&&$p.active&&$p.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,b8.has(this)&&(b8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||HI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,BC(this),WI(this);const s=kf,E=Sm;kf=this,Sm=!0;try{return this.fn()}finally{qI(this),kf=s,Sm=E,this.flags&=-3}}stop(){if(this.flags&1){for(let s=this.deps;s;s=s.nextDep)$A(s);this.deps=this.depsTail=void 0,BC(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?b8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){oA(this)&&this.run()}get dirty(){return oA(this)}}let VI=0,w2,k2;function HI(d,s=!1){if(d.flags|=8,s){d.next=k2,k2=d;return}d.next=w2,w2=d}function WA(){VI++}function qA(){if(--VI>0)return;if(k2){let s=k2;for(k2=void 0;s;){const E=s.next;s.next=void 0,s.flags&=-9,s=E}}let d;for(;w2;){let s=w2;for(w2=void 0;s;){const E=s.next;if(s.next=void 0,s.flags&=-9,s.flags&1)try{s.trigger()}catch(R){d||(d=R)}s=E}}if(d)throw d}function WI(d){for(let s=d.deps;s;s=s.nextDep)s.version=-1,s.prevActiveLink=s.dep.activeLink,s.dep.activeLink=s}function qI(d){let s,E=d.depsTail,R=E;for(;R;){const Y=R.prevDep;R.version===-1?(R===E&&(E=Y),$A(R),VG(R)):s=R,R.dep.activeLink=R.prevActiveLink,R.prevActiveLink=void 0,R=Y}d.deps=s,d.depsTail=E}function oA(d){for(let s=d.deps;s;s=s.nextDep)if(s.dep.version!==s.version||s.dep.computed&&($I(s.dep.computed)||s.dep.version!==s.version))return!0;return!!d._dirty}function $I(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===D2)||(d.globalVersion=D2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!oA(d))))return;d.flags|=2;const s=d.dep,E=kf,R=Sm;kf=d,Sm=!0;try{WI(d);const Y=d.fn(d._value);(s.version===0||g1(Y,d._value))&&(d.flags|=128,d._value=Y,s.version++)}catch(Y){throw s.version++,Y}finally{kf=E,Sm=R,qI(d),d.flags&=-3}}function $A(d,s=!1){const{dep:E,prevSub:R,nextSub:Y}=d;if(R&&(R.nextSub=Y,d.prevSub=void 0),Y&&(Y.prevSub=R,d.nextSub=void 0),E.subs===d&&(E.subs=R,!R&&E.computed)){E.computed.flags&=-5;for(let dt=E.computed.deps;dt;dt=dt.nextDep)$A(dt,!0)}!s&&!--E.sc&&E.map&&E.map.delete(E.key)}function VG(d){const{prevDep:s,nextDep:E}=d;s&&(s.nextDep=E,d.prevDep=void 0),E&&(E.prevDep=s,d.nextDep=void 0)}let Sm=!0;const ZI=[];function sv(){ZI.push(Sm),Sm=!1}function lv(){const d=ZI.pop();Sm=d===void 0?!0:d}function BC(d){const{cleanup:s}=d;if(d.cleanup=void 0,s){const E=kf;kf=void 0;try{s()}finally{kf=E}}}let D2=0;class HG{constructor(s,E){this.sub=s,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ZA{constructor(s){this.computed=s,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(s){if(!kf||!Sm||kf===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==kf)E=this.activeLink=new HG(kf,this),kf.deps?(E.prevDep=kf.depsTail,kf.depsTail.nextDep=E,kf.depsTail=E):kf.deps=kf.depsTail=E,GI(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const R=E.nextDep;R.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=R),E.prevDep=kf.depsTail,E.nextDep=void 0,kf.depsTail.nextDep=E,kf.depsTail=E,kf.deps===E&&(kf.deps=R)}return E}trigger(s){this.version++,D2++,this.notify(s)}notify(s){WA();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{qA()}}}fLine truncated
* @vue/runtime-core v3.5.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function tw(d,s,E,B){try{return B?d(...B):d()}catch(K){z4(K,s,E)}}function Lm(d,s,E,B){if(Vu(d)){const K=tw(d,s,E,B);return K&&CI(K)&&K.catch(pt=>{z4(pt,s,E)}),K}if(au(d)){const K=[];for(let pt=0;pt<d.length;pt++)K.push(Lm(d[pt],s,E,B));return K}}function z4(d,s,E,B=!0){const K=s?s.vnode:null,{errorHandler:pt,throwUnhandledErrorInProduction:_t}=s&&s.appContext.config||mf;if(s){let Ot=s.parent;const jt=s.proxy,te=`https://vuejs.org/error-reference/#runtime-${E}`;for(;Ot;){const he=Ot.ec;if(he){for(let De=0;De<he.length;De++)if(he[De](d,jt,te)===!1)return}Ot=Ot.parent}if(pt){av(),tw(pt,null,10,[d,jt,te]),ov();return}}QG(d,E,K,B,_t)}function QG(d,s,E,B=!0,K=!1){if(K)throw d;console.error(d)}const f0=[];let lg=-1;const u_=[];let i1=null,i_=0;const rz=Promise.resolve();let c4=null;function om(d){const s=c4||rz;return d?s.then(this?d.bind(this):d):s}function tY(d){let s=lg+1,E=f0.length;for(;s<E;){const B=s+E>>>1,K=f0[B],pt=R2(K);pt<d||pt===d&&K.flags&2?s=B+1:E=B}return s}function KA(d){if(!(d.flags&1)){const s=R2(d),E=f0[f0.length-1];!E||!(d.flags&2)&&s>=R2(E)?f0.push(d):f0.splice(tY(s),0,d),d.flags|=1,nz()}}function nz(){c4||(c4=rz.then(az))}function eY(d){au(d)?u_.push(...d):i1&&d.id===-1?i1.splice(i_+1,0,d):d.flags&1||(u_.push(d),d.flags|=1),nz()}function RC(d,s,E=lg+1){for(;E<f0.length;E++){const B=f0[E];if(B&&B.flags&2){if(d&&B.id!==d.uid)continue;f0.splice(E,1),E--,B.flags&4&&(B.flags&=-2),B(),B.flags&4||(B.flags&=-2)}}}function iz(d){if(u_.length){const s=[...new Set(u_)].sort((E,B)=>R2(E)-R2(B));if(u_.length=0,i1){i1.push(...s);return}for(i1=s,i_=0;i_<i1.length;i_++){const E=i1[i_];E.flags&4&&(E.flags&=-2),E.flags&8||E(),E.flags&=-2}i1=null,i_=0}}const R2=d=>d.id==null?d.flags&2?-1:1/0:d.id;function az(d){try{for(lg=0;lg<f0.length;lg++){const s=f0[lg];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),tw(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;lg<f0.length;lg++){const s=f0[lg];s&&(s.flags&=-2)}lg=-1,f0.length=0,iz(),c4=null,(f0.length||u_.length)&&az()}}let Op=null,oz=null;function h4(d){const s=Op;return Op=d,oz=d&&d.type.__scopeId||null,s}function ew(d,s=Op,E){if(!s||d._n)return d;const B=(...K)=>{B._d&&XC(-1);const pt=h4(s);let _t;try{_t=d(...K)}finally{h4(pt),B._d&&XC(1)}return _t};return B._n=!0,B._c=!0,B._d=!0,B}function Gp(d,s){if(Op===null)return d;const E=N4(Op),B=d.dirs||(d.dirs=[]);for(let K=0;K<s.length;K++){let[pt,_t,Ot,jt=mf]=s[K];pt&&(Vu(pt)&&(pt={mounted:pt,updated:pt}),pt.deep&&ev(_t),B.push({dir:pt,instance:E,value:_t,oldValue:void 0,arg:Ot,modifiers:jt}))}return d}function ay(d,s,E,B){const K=d.dirs,pt=s&&s.dirs;for(let _t=0;_t<K.length;_t++){const Ot=K[_t];pt&&(Ot.oldValue=pt[_t].value);let jt=Ot.dir[B];jt&&(av(),Lm(jt,E,8,[d.el,Ot,d,s]),ov())}}const sz=Symbol("_vte"),lz=d=>d.__isTeleport,T2=d=>d&&(d.disabled||d.disabled===""),BC=d=>d&&(d.defer||d.defer===""),NC=d=>typeof SVGElement<"u"&&d instanceof SVGElement,jC=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,oA=(d,s)=>{const E=d&&d.to;return sd(E)?s?s(E):null:E},uz={name:"Teleport",__isTeleport:!0,process(d,s,E,B,K,pt,_t,Ot,jt,te){const{mc:he,pc:De,pbc:er,o:{insert:pr,querySelector:Mr,createText:Tr,createComment:Vr}}=te,mn=T2(s.props);let{shapeFlag:Dt,children:cn,dynamicChildren:Jn}=s;if(d==null){const Bn=s.el=Tr(""),ni=s.anchor=Tr("");pr(Bn,E,B),pr(ni,E,B);const Wi=(qr,Di)=>{Dt&16&&(K&&K.isCE&&(K.ce._teleportTarget=qr),he(cn,qr,Di,K,pt,_t,Ot,jt))},Un=()=>{const qr=s.target=oA(s.props,Mr),Di=cz(qr,s,Tr,pr);qr&&(_t!=="svg"&&NC(qr)?_t="svg":_t!=="mathml"&&jC(qr)&&(_t="mathml"),mn||(Wi(qr,Di),Y5(s,!1)))};mn&&(Wi(E,ni),Y5(s,!0)),BC(s.props)?(s.el.__isMounted=!1,c0(()=>{Un(),delete s.el.__isMounted},pt)):Un()}else{if(BC(s.props)&&d.el.__isMounted===!1){c0(()=>{uz.process(d,s,E,B,K,pt,_t,Ot,jt,te)},pt);return}s.el=d.el,s.targetStart=d.targetStart;const Bn=s.anchor=d.anchor,ni=s.target=d.target,Wi=s.targetAnchor=d.targetAnchor,Un=T2(d.props),qr=Un?E:ni,Di=Un?Bn:Wi;if(_t==="svg"||NC(ni)?_t="svg":(_t==="mathml"||jC(ni))&&(_t="mathml"),Jn?(er(d.dynamicChildren,Jn,qr,K,pt,_t,Ot),rM(d,s,!0)):jt||De(d,s,qr,Di,K,pt,_t,Ot,!1),mn)Un?s.props&&d.props&&s.props.to!==d.props.to&&(s.props.to=d.props.to):C5(s,E,Bn,te,1);else if((s.props&&s.props.to)!==(d.props&&d.props.to)){const Fi=s.target=oA(s.props,Mr);Fi&&C5(s,Fi,null,te,0)}else Un&&C5(s,ni,Wi,te,1);Y5(s,mn)}},remove(d,s,E,{um:B,o:{remove:K}},pt){const{shapeFlag:_t,children:Ot,anchor:jt,targetStart:te,targetAnchor:he,target:De,props:er}=d;if(De&&(K(te),K(he)),pt&&K(jt),_t&16){const pr=pt||!T2(er);for(let Mr=0;Mr<Ot.length;Mr++){const Tr=Ot[Mr];B(Tr,s,E,pr,!!Tr.dynamicChildren)}}},move:C5,hydrate:rY};function C5(d,s,E,{o:{insert:B},m:K},pt=2){pt===0&&B(d.targetAnchor,s,E);const{el:_t,anchor:Ot,shapeFlag:jt,children:te,props:he}=d,De=pt===2;if(De&&B(_t,s,E),(!De||T2(he))&&jt&16)for(let er=0;er<te.length;er++)K(te[er],s,E,2);De&&B(Ot,s,E)}function rY(d,s,E,B,K,pt,{o:{nextSibling:_t,parentNode:Ot,querySelector:jt,insert:te,createText:he}},De){const er=s.target=oA(s.props,jt Line truncated
**/function tw(d,s,E,R){try{return R?d(...R):d()}catch(Y){D4(Y,s,E)}}function Lm(d,s,E,R){if(Vu(d)){const Y=tw(d,s,E,R);return Y&&II(Y)&&Y.catch(dt=>{D4(dt,s,E)}),Y}if(au(d)){const Y=[];for(let dt=0;dt<d.length;dt++)Y.push(Lm(d[dt],s,E,R));return Y}}function D4(d,s,E,R=!0){const Y=s?s.vnode:null,{errorHandler:dt,throwUnhandledErrorInProduction:_t}=s&&s.appContext.config||mf;if(s){let zt=s.parent;const jt=s.proxy,te=`https://vuejs.org/error-reference/#runtime-${E}`;for(;zt;){const ce=zt.ec;if(ce){for(let Ie=0;Ie<ce.length;Ie++)if(ce[Ie](d,jt,te)===!1)return}zt=zt.parent}if(dt){sv(),tw(dt,null,10,[d,jt,te]),lv();return}}vY(d,E,Y,R,_t)}function vY(d,s,E,R=!0,Y=!1){if(Y)throw d;console.error(d)}const f0=[];let ug=-1;const c_=[];let o1=null,o_=0;const az=Promise.resolve();let h4=null;function S0(d){const s=h4||az;return d?s.then(this?d.bind(this):d):s}function yY(d){let s=ug+1,E=f0.length;for(;s<E;){const R=s+E>>>1,Y=f0[R],dt=B2(Y);dt<d||dt===d&&Y.flags&2?s=R+1:E=R}return s}function JA(d){if(!(d.flags&1)){const s=B2(d),E=f0[f0.length-1];!E||!(d.flags&2)&&s>=B2(E)?f0.push(d):f0.splice(yY(s),0,d),d.flags|=1,oz()}}function oz(){h4||(h4=az.then(lz))}function xY(d){au(d)?c_.push(...d):o1&&d.id===-1?o1.splice(o_+1,0,d):d.flags&1||(c_.push(d),d.flags|=1),oz()}function NC(d,s,E=ug+1){for(;E<f0.length;E++){const R=f0[E];if(R&&R.flags&2){if(d&&R.id!==d.uid)continue;f0.splice(E,1),E--,R.flags&4&&(R.flags&=-2),R(),R.flags&4||(R.flags&=-2)}}}function sz(d){if(c_.length){const s=[...new Set(c_)].sort((E,R)=>B2(E)-B2(R));if(c_.length=0,o1){o1.push(...s);return}for(o1=s,o_=0;o_<o1.length;o_++){const E=o1[o_];E.flags&4&&(E.flags&=-2),E.flags&8||E(),E.flags&=-2}o1=null,o_=0}}const B2=d=>d.id==null?d.flags&2?-1:1/0:d.id;function lz(d){try{for(ug=0;ug<f0.length;ug++){const s=f0[ug];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),tw(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;ug<f0.length;ug++){const s=f0[ug];s&&(s.flags&=-2)}ug=-1,f0.length=0,sz(),h4=null,(f0.length||c_.length)&&lz()}}let Op=null,uz=null;function f4(d){const s=Op;return Op=d,uz=d&&d.type.__scopeId||null,s}function ew(d,s=Op,E){if(!s||d._n)return d;const R=(...Y)=>{R._d&&QC(-1);const dt=f4(s);let _t;try{_t=d(...Y)}finally{f4(dt),R._d&&QC(1)}return _t};return R._n=!0,R._c=!0,R._d=!0,R}function Gp(d,s){if(Op===null)return d;const E=U4(Op),R=d.dirs||(d.dirs=[]);for(let Y=0;Y<s.length;Y++){let[dt,_t,zt,jt=mf]=s[Y];dt&&(Vu(dt)&&(dt={mounted:dt,updated:dt}),dt.deep&&rv(_t),R.push({dir:dt,instance:E,value:_t,oldValue:void 0,arg:zt,modifiers:jt}))}return d}function sy(d,s,E,R){const Y=d.dirs,dt=s&&s.dirs;for(let _t=0;_t<Y.length;_t++){const zt=Y[_t];dt&&(zt.oldValue=dt[_t].value);let jt=zt.dir[R];jt&&(sv(),Lm(jt,E,8,[d.el,zt,d,s]),lv())}}const cz=Symbol("_vte"),hz=d=>d.__isTeleport,T2=d=>d&&(d.disabled||d.disabled===""),jC=d=>d&&(d.defer||d.defer===""),UC=d=>typeof SVGElement<"u"&&d instanceof SVGElement,VC=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,uA=(d,s)=>{const E=d&&d.to;return ld(E)?s?s(E):null:E},fz={name:"Teleport",__isTeleport:!0,process(d,s,E,R,Y,dt,_t,zt,jt,te){const{mc:ce,pc:Ie,pbc:Je,o:{insert:fr,querySelector:Ar,createText:kr,createComment:Vr}}=te,fn=T2(s.props);let{shapeFlag:Dt,children:cn,dynamicChildren:ti}=s;if(d==null){const Dn=s.el=kr(""),ii=s.anchor=kr("");fr(Dn,E,R),fr(ii,E,R);const Vi=(Wr,Bi)=>{Dt&16&&(Y&&Y.isCE&&(Y.ce._teleportTarget=Wr),ce(cn,Wr,Bi,Y,dt,_t,zt,jt))},Nn=()=>{const Wr=s.target=uA(s.props,Ar),Bi=dz(Wr,s,kr,fr);Wr&&(_t!=="svg"&&UC(Wr)?_t="svg":_t!=="mathml"&&VC(Wr)&&(_t="mathml"),fn||(Vi(Wr,Bi),K5(s,!1)))};fn&&(Vi(E,ii),K5(s,!0)),jC(s.props)?(s.el.__isMounted=!1,c0(()=>{Nn(),delete s.el.__isMounted},dt)):Nn()}else{if(jC(s.props)&&d.el.__isMounted===!1){c0(()=>{fz.process(d,s,E,R,Y,dt,_t,zt,jt,te)},dt);return}s.el=d.el,s.targetStart=d.targetStart;const Dn=s.anchor=d.anchor,ii=s.target=d.target,Vi=s.targetAnchor=d.targetAnchor,Nn=T2(d.props),Wr=Nn?E:ii,Bi=Nn?Dn:Vi;if(_t==="svg"||UC(ii)?_t="svg":(_t==="mathml"||VC(ii))&&(_t="mathml"),ti?(Je(d.dynamicChildren,ti,Wr,Y,dt,_t,zt),iM(d,s,!0)):jt||Ie(d,s,Wr,Bi,Y,dt,_t,zt,!1),fn)Nn?s.props&&d.props&&s.props.to!==d.props.to&&(s.props.to=d.props.to):L5(s,E,Dn,te,1);else if((s.props&&s.props.to)!==(d.props&&d.props.to)){const Ri=s.target=uA(s.props,Ar);Ri&&L5(s,Ri,null,te,0)}else Nn&&L5(s,ii,Vi,te,1);K5(s,fn)}},remove(d,s,E,{um:R,o:{remove:Y}},dt){const{shapeFlag:_t,children:zt,anchor:jt,targetStart:te,targetAnchor:ce,target:Ie,props:Je}=d;if(Ie&&(Y(te),Y(ce)),dt&&Y(jt),_t&16){const fr=dt||!T2(Je);for(let Ar=0;Ar<zt.length;Ar++){const kr=zt[Ar];R(kr,s,E,fr,!!kr.dynamicChildren)}}},move:L5,hydrate:_Y};function L5(d,s,E,{o:{insert:R},m:Y},dt=2){dt===0&&R(d.targetAnchor,s,E);const{el:_t,anchor:zt,shapeFlag:jt,children:te,props:ce}=d,Ie=dt===2;if(Ie&&R(_t,s,E),(!Ie||T2(ce))&&jt&16)for(let Je=0;Je<te.length;Je++)Y(te[Je],s,E,2);Ie&&R(zt,s,E)}function _Y(d,s,E,R,Y,dt,{o:{nextSibling:_t,parentNode:zt,querySelector:jt,insert:te,createText:ce}},Ie){const Je=s.target=uA(s.props,jt Line truncated
* @vue/runtime-dom v3.5.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let fA;const tL=typeof window<"u"&&window.trustedTypes;if(tL)try{fA=tL.createPolicy("vue",{createHTML:d=>d})}catch{}const Hz=fA?d=>fA.createHTML(d):d=>d,iK="http://www.w3.org/2000/svg",aK="http://www.w3.org/1998/Math/MathML",Jg=typeof document<"u"?document:null,eL=Jg&&Jg.createElement("template"),oK={insert:(d,s,E)=>{s.insertBefore(d,E||null)},remove:d=>{const s=d.parentNode;s&&s.removeChild(d)},createElement:(d,s,E,B)=>{const K=s==="svg"?Jg.createElementNS(iK,d):s==="mathml"?Jg.createElementNS(aK,d):E?Jg.createElement(d,{is:E}):Jg.createElement(d);return d==="select"&&B&&B.multiple!=null&&K.setAttribute("multiple",B.multiple),K},createText:d=>Jg.createTextNode(d),createComment:d=>Jg.createComment(d),setText:(d,s)=>{d.nodeValue=s},setElementText:(d,s)=>{d.textContent=s},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>Jg.querySelector(d),setScopeId(d,s){d.setAttribute(s,"")},insertStaticContent(d,s,E,B,K,pt){const _t=E?E.previousSibling:s.lastChild;if(K&&(K===pt||K.nextSibling))for(;s.insertBefore(K.cloneNode(!0),E),!(K===pt||!(K=K.nextSibling)););else{eL.innerHTML=Hz(B==="svg"?`<svg>${d}</svg>`:B==="mathml"?`<math>${d}</math>`:d);const Ot=eL.content;if(B==="svg"||B==="mathml"){const jt=Ot.firstChild;for(;jt.firstChild;)Ot.appendChild(jt.firstChild);Ot.removeChild(jt)}s.insertBefore(Ot,E)}return[_t?_t.nextSibling:s.firstChild,E?E.previousSibling:s.lastChild]}},Jv="transition",Qb="animation",p_=Symbol("_vtc"),Wz={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qz=ap({},fz,Wz),sK=d=>(d.displayName="Transition",d.props=qz,d),$z=sK((d,{slots:s})=>iM(iY,Zz(d),s)),sy=(d,s=[])=>{au(d)?d.forEach(E=>E(...s)):d&&d(...s)},rL=d=>d?au(d)?d.some(s=>s.length>1):d.length>1:!1;function Zz(d){const s={};for(const Pi in d)Pi in Wz||(s[Pi]=d[Pi]);if(d.css===!1)return s;const{name:E="v",type:B,duration:K,enterFromClass:pt=`${E}-enter-from`,enterActiveClass:_t=`${E}-enter-active`,enterToClass:Ot=`${E}-enter-to`,appearFromClass:jt=pt,appearActiveClass:te=_t,appearToClass:he=Ot,leaveFromClass:De=`${E}-leave-from`,leaveActiveClass:er=`${E}-leave-active`,leaveToClass:pr=`${E}-leave-to`}=d,Mr=lK(K),Tr=Mr&&Mr[0],Vr=Mr&&Mr[1],{onBeforeEnter:mn,onEnter:Dt,onEnterCancelled:cn,onLeave:Jn,onLeaveCancelled:Bn,onBeforeAppear:ni=mn,onAppear:Wi=Dt,onAppearCancelled:Un=cn}=s,qr=(Pi,bi,Yi,Ca)=>{Pi._enterCancelled=Ca,e1(Pi,bi?he:Ot),e1(Pi,bi?te:_t),Yi&&Yi()},Di=(Pi,bi)=>{Pi._isLeaving=!1,e1(Pi,De),e1(Pi,pr),e1(Pi,er),bi&&bi()},Fi=Pi=>(bi,Yi)=>{const Ca=Pi?Wi:Dt,Ni=()=>qr(bi,Pi,Yi);sy(Ca,[bi,Ni]),nL(()=>{e1(bi,Pi?jt:pt),og(bi,Pi?he:Ot),rL(Ca)||iL(bi,B,Tr,Ni)})};return ap(s,{onBeforeEnter(Pi){sy(mn,[Pi]),og(Pi,pt),og(Pi,_t)},onBeforeAppear(Pi){sy(ni,[Pi]),og(Pi,jt),og(Pi,te)},onEnter:Fi(!1),onAppear:Fi(!0),onLeave(Pi,bi){Pi._isLeaving=!0;const Yi=()=>Di(Pi,bi);og(Pi,De),Pi._enterCancelled?(og(Pi,er),dA()):(dA(),og(Pi,er)),nL(()=>{Pi._isLeaving&&(e1(Pi,De),og(Pi,pr),rL(Jn)||iL(Pi,B,Vr,Yi))}),sy(Jn,[Pi,Yi])},onEnterCancelled(Pi){qr(Pi,!1,void 0,!0),sy(cn,[Pi])},onAppearCancelled(Pi){qr(Pi,!0,void 0,!0),sy(Un,[Pi])},onLeaveCancelled(Pi){Di(Pi),sy(Bn,[Pi])}})}function lK(d){if(d==null)return null;if(gf(d))return[M8(d.enter),M8(d.leave)];{const s=M8(d);return[s,s]}}function M8(d){return pG(d)}function og(d,s){s.split(/\s+/).forEach(E=>E&&d.classList.add(E)),(d[p_]||(d[p_]=new Set)).add(s)}function e1(d,s){s.split(/\s+/).forEach(B=>B&&d.classList.remove(B));const E=d[p_];E&&(E.delete(s),E.size||(d[p_]=void 0))}function nL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let uK=0;function iL(d,s,E,B){const K=d._endId=++uK,pt=()=>{K===d._endId&&B()};if(E!=null)return setTimeout(pt,E);const{type:_t,timeout:Ot,propCount:jt}=Gz(d,s);if(!_t)return B();const te=_t+"end";let he=0;const De=()=>{d.removeEventListener(te,er),pt()},er=pr=>{pr.target===d&&++he>=jt&&De()};setTimeout(()=>{he<jt&&De()},Ot+1),d.addEventListener(te,er)}function Gz(d,s){const E=window.getComputedStyle(d),B=Mr=>(E[Mr]||"").split(", "),K=B(`${Jv}Delay`),pt=B(`${Jv}Duration`),_t=aL(K,pt),Ot=B(`${Qb}Delay`),jt=B(`${Qb}Duration`),te=aL(Ot,jt);let he=null,De=0,er=0;s===Jv?_t>0&&(he=Jv,De=_t,er=pt.length):s===Qb?te>0&&(he=Qb,De=te,er=jt.length):(De=Math.max(_t,te),he=De>0?_t>te?Jv:Qb:null,er=he?he===Jv?pt.length:jt.length:0);const pr=he===Jv&&/\b(transform|all)(,|$)/.test(B(`${Jv}Property`).toString());return{type:he,timeout:De,propCount:er,hasTransform:pr}}function aL(d,s){for(;d.length<s.length;)d=d.concat(d);return Math.max(...s.map((E,B)=>oL(E)+oL(d[B])))}function oL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function dA(){return document.body.offsetHeight}function cK(d,s,E){const B=d[p_];B&&(s=(s?[s,...B]:[...B]).join(" ")),s==null?d.removeAttribute("class"):E?d.setAttribute("class",s):d.className= Line truncated
**/let mA;const rL=typeof window<"u"&&window.trustedTypes;if(rL)try{mA=rL.createPolicy("vue",{createHTML:d=>d})}catch{}const $z=mA?d=>mA.createHTML(d):d=>d,wK="http://www.w3.org/2000/svg",kK="http://www.w3.org/1998/Math/MathML",Qg=typeof document<"u"?document:null,nL=Qg&&Qg.createElement("template"),TK={insert:(d,s,E)=>{s.insertBefore(d,E||null)},remove:d=>{const s=d.parentNode;s&&s.removeChild(d)},createElement:(d,s,E,R)=>{const Y=s==="svg"?Qg.createElementNS(wK,d):s==="mathml"?Qg.createElementNS(kK,d):E?Qg.createElement(d,{is:E}):Qg.createElement(d);return d==="select"&&R&&R.multiple!=null&&Y.setAttribute("multiple",R.multiple),Y},createText:d=>Qg.createTextNode(d),createComment:d=>Qg.createComment(d),setText:(d,s)=>{d.nodeValue=s},setElementText:(d,s)=>{d.textContent=s},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>Qg.querySelector(d),setScopeId(d,s){d.setAttribute(s,"")},insertStaticContent(d,s,E,R,Y,dt){const _t=E?E.previousSibling:s.lastChild;if(Y&&(Y===dt||Y.nextSibling))for(;s.insertBefore(Y.cloneNode(!0),E),!(Y===dt||!(Y=Y.nextSibling)););else{nL.innerHTML=$z(R==="svg"?`<svg>${d}</svg>`:R==="mathml"?`<math>${d}</math>`:d);const zt=nL.content;if(R==="svg"||R==="mathml"){const jt=zt.firstChild;for(;jt.firstChild;)zt.appendChild(jt.firstChild);zt.removeChild(jt)}s.insertBefore(zt,E)}return[_t?_t.nextSibling:s.firstChild,E?E.previousSibling:s.lastChild]}},t1="transition",t2="animation",m_=Symbol("_vtc"),Zz={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Gz=ap({},mz,Zz),AK=d=>(d.displayName="Transition",d.props=Gz,d),Yz=AK((d,{slots:s})=>oM(wY,Kz(d),s)),uy=(d,s=[])=>{au(d)?d.forEach(E=>E(...s)):d&&d(...s)},iL=d=>d?au(d)?d.some(s=>s.length>1):d.length>1:!1;function Kz(d){const s={};for(const Li in d)Li in Zz||(s[Li]=d[Li]);if(d.css===!1)return s;const{name:E="v",type:R,duration:Y,enterFromClass:dt=`${E}-enter-from`,enterActiveClass:_t=`${E}-enter-active`,enterToClass:zt=`${E}-enter-to`,appearFromClass:jt=dt,appearActiveClass:te=_t,appearToClass:ce=zt,leaveFromClass:Ie=`${E}-leave-from`,leaveActiveClass:Je=`${E}-leave-active`,leaveToClass:fr=`${E}-leave-to`}=d,Ar=MK(Y),kr=Ar&&Ar[0],Vr=Ar&&Ar[1],{onBeforeEnter:fn,onEnter:Dt,onEnterCancelled:cn,onLeave:ti,onLeaveCancelled:Dn,onBeforeAppear:ii=fn,onAppear:Vi=Dt,onAppearCancelled:Nn=cn}=s,Wr=(Li,$n,Hn,sa)=>{Li._enterCancelled=sa,n1(Li,$n?ce:zt),n1(Li,$n?te:_t),Hn&&Hn()},Bi=(Li,$n)=>{Li._isLeaving=!1,n1(Li,Ie),n1(Li,fr),n1(Li,Je),$n&&$n()},Ri=Li=>($n,Hn)=>{const sa=Li?Vi:Dt,Ti=()=>Wr($n,Li,Hn);uy(sa,[$n,Ti]),aL(()=>{n1($n,Li?jt:dt),sg($n,Li?ce:zt),iL(sa)||oL($n,R,kr,Ti)})};return ap(s,{onBeforeEnter(Li){uy(fn,[Li]),sg(Li,dt),sg(Li,_t)},onBeforeAppear(Li){uy(ii,[Li]),sg(Li,jt),sg(Li,te)},onEnter:Ri(!1),onAppear:Ri(!0),onLeave(Li,$n){Li._isLeaving=!0;const Hn=()=>Bi(Li,$n);sg(Li,Ie),Li._enterCancelled?(sg(Li,Je),gA()):(gA(),sg(Li,Je)),aL(()=>{Li._isLeaving&&(n1(Li,Ie),sg(Li,fr),iL(ti)||oL(Li,R,Vr,Hn))}),uy(ti,[Li,Hn])},onEnterCancelled(Li){Wr(Li,!1,void 0,!0),uy(cn,[Li])},onAppearCancelled(Li){Wr(Li,!0,void 0,!0),uy(Nn,[Li])},onLeaveCancelled(Li){Bi(Li),uy(Dn,[Li])}})}function MK(d){if(d==null)return null;if(gf(d))return[S8(d.enter),S8(d.leave)];{const s=S8(d);return[s,s]}}function S8(d){return IG(d)}function sg(d,s){s.split(/\s+/).forEach(E=>E&&d.classList.add(E)),(d[m_]||(d[m_]=new Set)).add(s)}function n1(d,s){s.split(/\s+/).forEach(R=>R&&d.classList.remove(R));const E=d[m_];E&&(E.delete(s),E.size||(d[m_]=void 0))}function aL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let SK=0;function oL(d,s,E,R){const Y=d._endId=++SK,dt=()=>{Y===d._endId&&R()};if(E!=null)return setTimeout(dt,E);const{type:_t,timeout:zt,propCount:jt}=Xz(d,s);if(!_t)return R();const te=_t+"end";let ce=0;const Ie=()=>{d.removeEventListener(te,Je),dt()},Je=fr=>{fr.target===d&&++ce>=jt&&Ie()};setTimeout(()=>{ce<jt&&Ie()},zt+1),d.addEventListener(te,Je)}function Xz(d,s){const E=window.getComputedStyle(d),R=Ar=>(E[Ar]||"").split(", "),Y=R(`${t1}Delay`),dt=R(`${t1}Duration`),_t=sL(Y,dt),zt=R(`${t2}Delay`),jt=R(`${t2}Duration`),te=sL(zt,jt);let ce=null,Ie=0,Je=0;s===t1?_t>0&&(ce=t1,Ie=_t,Je=dt.length):s===t2?te>0&&(ce=t2,Ie=te,Je=jt.length):(Ie=Math.max(_t,te),ce=Ie>0?_t>te?t1:t2:null,Je=ce?ce===t1?dt.length:jt.length:0);const fr=ce===t1&&/\b(transform|all)(,|$)/.test(R(`${t1}Property`).toString());return{type:ce,timeout:Ie,propCount:Je,hasTransform:fr}}function sL(d,s){for(;d.length<s.length;)d=d.concat(d);return Math.max(...s.map((E,R)=>lL(E)+lL(d[R])))}function lL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function gA(){return document.body.offsetHeight}function EK(d,s,E){const R=d[m_];R&&(s=(s?[s,...R]:[...R]).join(" ")),s==null?d.removeAttribute("class"):E?d.setAttribute("class",s):d.className= Line truncated
* pinia v3.0.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Jz;const j4=d=>Jz=d,Qz=Symbol();function mA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var E2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(E2||(E2={}));function NK(){const d=FI(!0),s=d.run(()=>Ga({}));let E=[],B=[];const K=YA({install(pt){j4(K),K._a=pt,pt.provide(Qz,K),pt.config.globalProperties.$pinia=K,B.forEach(_t=>E.push(_t)),B=[]},use(pt){return this._a?E.push(pt):B.push(pt),this},_p:E,_a:null,_e:d,_s:new Map,state:s});return K}const tO=()=>{};function xL(d,s,E,B=tO){d.add(s);const K=()=>{d.delete(s)&&B()};return!E&&RI()&&kG(K),K}function t_(d,...s){d.forEach(E=>{E(...s)})}const jK=d=>d(),_L=Symbol(),C8=Symbol();function gA(d,s){d instanceof Map&&s instanceof Map?s.forEach((E,B)=>d.set(B,E)):d instanceof Set&&s instanceof Set&&s.forEach(d.add,d);for(const E in s){if(!s.hasOwnProperty(E))continue;const B=s[E],K=d[E];mA(K)&&mA(B)&&d.hasOwnProperty(E)&&!jd(B)&&!m1(B)?d[E]=gA(K,B):d[E]=B}return d}const UK=Symbol();function VK(d){return!mA(d)||!Object.prototype.hasOwnProperty.call(d,UK)}const{assign:r1}=Object;function HK(d){return!!(jd(d)&&d.effect)}function WK(d,s,E,B){const{state:K,actions:pt,getters:_t}=s,Ot=E.state.value[d];let jt;function te(){Ot||(E.state.value[d]=K?K():{});const he=$G(E.state.value[d]);return r1(he,pt,Object.keys(_t||{}).reduce((De,er)=>(De[er]=YA($o(()=>{j4(E);const pr=E._s.get(d);return _t[er].call(pr,pr)})),De),{}))}return jt=eO(d,te,s,E,B,!0),jt}function eO(d,s,E={},B,K,pt){let _t;const Ot=r1({actions:{}},E),jt={deep:!0};let te,he,De=new Set,er=new Set,pr;const Mr=B.state.value[d];!pt&&!Mr&&(B.state.value[d]={}),Ga({});let Tr;function Vr(Un){let qr;te=he=!1,typeof Un=="function"?(Un(B.state.value[d]),qr={type:E2.patchFunction,storeId:d,events:pr}):(gA(B.state.value[d],Un),qr={type:E2.patchObject,payload:Un,storeId:d,events:pr});const Di=Tr=Symbol();om().then(()=>{Tr===Di&&(te=!0)}),he=!0,t_(De,qr,B.state.value[d])}const mn=pt?function(){const{state:qr}=E,Di=qr?qr():{};this.$patch(Fi=>{r1(Fi,Di)})}:tO;function Dt(){_t.stop(),De.clear(),er.clear(),B._s.delete(d)}const cn=(Un,qr="")=>{if(_L in Un)return Un[C8]=qr,Un;const Di=function(){j4(B);const Fi=Array.from(arguments),Pi=new Set,bi=new Set;function Yi(si){Pi.add(si)}function Ca(si){bi.add(si)}t_(er,{args:Fi,name:Di[C8],store:Bn,after:Yi,onError:Ca});let Ni;try{Ni=Un.apply(this&&this.$id===d?this:Bn,Fi)}catch(si){throw t_(bi,si),si}return Ni instanceof Promise?Ni.then(si=>(t_(Pi,si),si)).catch(si=>(t_(bi,si),Promise.reject(si))):(t_(Pi,Ni),Ni)};return Di[_L]=!0,Di[C8]=qr,Di},Jn={_p:B,$id:d,$onAction:xL.bind(null,er),$patch:Vr,$reset:mn,$subscribe(Un,qr={}){const Di=xL(De,Un,qr.detached,()=>Fi()),Fi=_t.run(()=>Em(()=>B.state.value[d],Pi=>{(qr.flush==="sync"?he:te)&&Un({storeId:d,type:E2.direct,events:pr},Pi)},r1({},jt,qr)));return Di},$dispose:Dt},Bn=My(Jn);B._s.set(d,Bn);const Wi=(B._a&&B._a.runWithContext||jK)(()=>B._e.run(()=>(_t=FI()).run(()=>s({action:cn}))));for(const Un in Wi){const qr=Wi[Un];if(jd(qr)&&!HK(qr)||m1(qr))pt||(Mr&&VK(qr)&&(jd(qr)?qr.value=Mr[Un]:gA(qr,Mr[Un])),B.state.value[d][Un]=qr);else if(typeof qr=="function"){const Di=cn(qr,Un);Wi[Un]=Di,Ot.actions[Un]=qr}}return r1(Bn,Wi),r1(Uu(Bn),Wi),Object.defineProperty(Bn,"$state",{get:()=>B.state.value[d],set:Un=>{Vr(qr=>{r1(qr,Un)})}}),B._p.forEach(Un=>{r1(Bn,_t.run(()=>Un({store:Bn,app:B._a,pinia:B,options:Ot})))}),Mr&&pt&&E.hydrate&&E.hydrate(Bn.$state,Mr),te=!0,he=!0,Bn}/*! #__NO_SIDE_EFFECTS__ */function oM(d,s,E){let B;const K=typeof s=="function";B=K?E:s;function pt(_t,Ot){const jt=kY();return _t=_t||(jt?um(Qz,null):null),_t&&j4(_t),_t=Jz,_t._s.has(d)||(K?eO(d,s,B,_t):WK(d,B,_t)),_t._s.get(d)}return pt.$id=d,pt}/*!
*/let eO;const V4=d=>eO=d,rO=Symbol();function yA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var E2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(E2||(E2={}));function nX(){const d=NI(!0),s=d.run(()=>Ha({}));let E=[],R=[];const Y=XA({install(dt){V4(Y),Y._a=dt,dt.provide(rO,Y),dt.config.globalProperties.$pinia=Y,R.forEach(_t=>E.push(_t)),R=[]},use(dt){return this._a?E.push(dt):R.push(dt),this},_p:E,_a:null,_e:d,_s:new Map,state:s});return Y}const nO=()=>{};function bL(d,s,E,R=nO){d.add(s);const Y=()=>{d.delete(s)&&R()};return!E&&jI()&&UG(Y),Y}function r_(d,...s){d.forEach(E=>{E(...s)})}const iX=d=>d(),wL=Symbol(),L8=Symbol();function xA(d,s){d instanceof Map&&s instanceof Map?s.forEach((E,R)=>d.set(R,E)):d instanceof Set&&s instanceof Set&&s.forEach(d.add,d);for(const E in s){if(!s.hasOwnProperty(E))continue;const R=s[E],Y=d[E];yA(Y)&&yA(R)&&d.hasOwnProperty(E)&&!jd(R)&&!v1(R)?d[E]=xA(Y,R):d[E]=R}return d}const aX=Symbol();function oX(d){return!yA(d)||!Object.prototype.hasOwnProperty.call(d,aX)}const{assign:i1}=Object;function sX(d){return!!(jd(d)&&d.effect)}function lX(d,s,E,R){const{state:Y,actions:dt,getters:_t}=s,zt=E.state.value[d];let jt;function te(){zt||(E.state.value[d]=Y?Y():{});const ce=cY(E.state.value[d]);return i1(ce,dt,Object.keys(_t||{}).reduce((Ie,Je)=>(Ie[Je]=XA(Wo(()=>{V4(E);const fr=E._s.get(d);return _t[Je].call(fr,fr)})),Ie),{}))}return jt=iO(d,te,s,E,R,!0),jt}function iO(d,s,E={},R,Y,dt){let _t;const zt=i1({actions:{}},E),jt={deep:!0};let te,ce,Ie=new Set,Je=new Set,fr;const Ar=R.state.value[d];!dt&&!Ar&&(R.state.value[d]={}),Ha({});let kr;function Vr(Nn){let Wr;te=ce=!1,typeof Nn=="function"?(Nn(R.state.value[d]),Wr={type:E2.patchFunction,storeId:d,events:fr}):(xA(R.state.value[d],Nn),Wr={type:E2.patchObject,payload:Nn,storeId:d,events:fr});const Bi=kr=Symbol();S0().then(()=>{kr===Bi&&(te=!0)}),ce=!0,r_(Ie,Wr,R.state.value[d])}const fn=dt?function(){const{state:Wr}=E,Bi=Wr?Wr():{};this.$patch(Ri=>{i1(Ri,Bi)})}:nO;function Dt(){_t.stop(),Ie.clear(),Je.clear(),R._s.delete(d)}const cn=(Nn,Wr="")=>{if(wL in Nn)return Nn[L8]=Wr,Nn;const Bi=function(){V4(R);const Ri=Array.from(arguments),Li=new Set,$n=new Set;function Hn(Qn){Li.add(Qn)}function sa(Qn){$n.add(Qn)}r_(Je,{args:Ri,name:Bi[L8],store:Dn,after:Hn,onError:sa});let Ti;try{Ti=Nn.apply(this&&this.$id===d?this:Dn,Ri)}catch(Qn){throw r_($n,Qn),Qn}return Ti instanceof Promise?Ti.then(Qn=>(r_(Li,Qn),Qn)).catch(Qn=>(r_($n,Qn),Promise.reject(Qn))):(r_(Li,Ti),Ti)};return Bi[wL]=!0,Bi[L8]=Wr,Bi},ti={_p:R,$id:d,$onAction:bL.bind(null,Je),$patch:Vr,$reset:fn,$subscribe(Nn,Wr={}){const Bi=bL(Ie,Nn,Wr.detached,()=>Ri()),Ri=_t.run(()=>Em(()=>R.state.value[d],Li=>{(Wr.flush==="sync"?ce:te)&&Nn({storeId:d,type:E2.direct,events:fr},Li)},i1({},jt,Wr)));return Bi},$dispose:Dt},Dn=Ey(ti);R._s.set(d,Dn);const Vi=(R._a&&R._a.runWithContext||iX)(()=>R._e.run(()=>(_t=NI()).run(()=>s({action:cn}))));for(const Nn in Vi){const Wr=Vi[Nn];if(jd(Wr)&&!sX(Wr)||v1(Wr))dt||(Ar&&oX(Wr)&&(jd(Wr)?Wr.value=Ar[Nn]:xA(Wr,Ar[Nn])),R.state.value[d][Nn]=Wr);else if(typeof Wr=="function"){const Bi=cn(Wr,Nn);Vi[Nn]=Bi,zt.actions[Nn]=Wr}}return i1(Dn,Vi),i1(Eu(Dn),Vi),Object.defineProperty(Dn,"$state",{get:()=>R.state.value[d],set:Nn=>{Vr(Wr=>{i1(Wr,Nn)})}}),R._p.forEach(Nn=>{i1(Dn,_t.run(()=>Nn({store:Dn,app:R._a,pinia:R,options:zt})))}),Ar&&dt&&E.hydrate&&E.hydrate(Dn.$state,Ar),te=!0,ce=!0,Dn}/*! #__NO_SIDE_EFFECTS__ */function lM(d,s,E){let R;const Y=typeof s=="function";R=Y?E:s;function dt(_t,zt){const jt=UY();return _t=_t||(jt?um(rO,null):null),_t&&V4(_t),_t=eO,_t._s.has(d)||(Y?iO(d,s,R,_t):lX(d,R,_t)),_t._s.get(d)}return dt.$id=d,dt}/*!
* vue-router v4.6.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const a_=typeof document<"u";function rO(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function qK(d){return d.__esModule||d[Symbol.toStringTag]==="Module"||d.default&&rO(d.default)}const Fh=Object.assign;function L8(d,s){const E={};for(const B in s){const K=s[B];E[B]=Im(K)?K.map(d):d(K)}return E}const C2=()=>{},Im=Array.isArray;function bL(d,s){const E={};for(const B in d)E[B]=B in s?s[B]:d[B];return E}const nO=/#/g,$K=/&/g,ZK=/\//g,GK=/=/g,YK=/\?/g,iO=/\+/g,KK=/%5B/g,XK=/%5D/g,aO=/%5E/g,JK=/%60/g,oO=/%7B/g,QK=/%7C/g,sO=/%7D/g,tX=/%20/g;function sM(d){return d==null?"":encodeURI(""+d).replace(QK,"|").replace(KK,"[").replace(XK,"]")}function eX(d){return sM(d).replace(oO,"{").replace(sO,"}").replace(aO,"^")}function vA(d){return sM(d).replace(iO,"%2B").replace(tX,"+").replace(nO,"%23").replace($K,"%26").replace(JK,"`").replace(oO,"{").replace(sO,"}").replace(aO,"^")}function rX(d){return vA(d).replace(GK,"%3D")}function nX(d){return sM(d).replace(nO,"%23").replace(YK,"%3F")}function iX(d){return nX(d).replace(ZK,"%2F")}function W2(d){if(d==null)return null;try{return decodeURIComponent(""+d)}catch{}return""+d}const aX=/\/$/,oX=d=>d.replace(aX,"");function P8(d,s,E="/"){let B,K={},pt="",_t="";const Ot=s.indexOf("#");let jt=s.indexOf("?");return jt=Ot>=0&&jt>Ot?-1:jt,jt>=0&&(B=s.slice(0,jt),pt=s.slice(jt,Ot>0?Ot:s.length),K=d(pt.slice(1))),Ot>=0&&(B=B||s.slice(0,Ot),_t=s.slice(Ot,s.length)),B=cX(B??s,E),{fullPath:B+pt+_t,path:B,query:K,hash:W2(_t)}}function sX(d,s){const E=s.query?d(s.query):"";return s.path+(E&&"?")+E+(s.hash||"")}function wL(d,s){return!s||!d.toLowerCase().startsWith(s.toLowerCase())?d:d.slice(s.length)||"/"}function lX(d,s,E){const B=s.matched.length-1,K=E.matched.length-1;return B>-1&&B===K&&g_(s.matched[B],E.matched[K])&&lO(s.params,E.params)&&d(s.query)===d(E.query)&&s.hash===E.hash}function g_(d,s){return(d.aliasOf||d)===(s.aliasOf||s)}function lO(d,s){if(Object.keys(d).length!==Object.keys(s).length)return!1;for(const E in d)if(!uX(d[E],s[E]))return!1;return!0}function uX(d,s){return Im(d)?kL(d,s):Im(s)?kL(s,d):d===s}function kL(d,s){return Im(s)?d.length===s.length&&d.every((E,B)=>E===s[B]):d.length===1&&d[0]===s}function cX(d,s){if(d.startsWith("/"))return d;if(!d)return s;const E=s.split("/"),B=d.split("/"),K=B[B.length-1];(K===".."||K===".")&&B.push("");let pt=E.length-1,_t,Ot;for(_t=0;_t<B.length;_t++)if(Ot=B[_t],Ot!==".")if(Ot==="..")pt>1&&pt--;else break;return E.slice(0,pt).join("/")+"/"+B.slice(_t).join("/")}const Qv={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let yA=function(d){return d.pop="pop",d.push="push",d}({}),I8=function(d){return d.back="back",d.forward="forward",d.unknown="",d}({});function hX(d){if(!d)if(a_){const s=document.querySelector("base");d=s&&s.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),oX(d)}const fX=/^[^#]+#/;function dX(d,s){return d.replace(fX,"#")+s}function pX(d,s){const E=document.documentElement.getBoundingClientRect(),B=d.getBoundingClientRect();return{behavior:s.behavior,left:B.left-E.left-(s.left||0),top:B.top-E.top-(s.top||0)}}const U4=()=>({left:window.scrollX,top:window.scrollY});function mX(d){let s;if("el"in d){const E=d.el,B=typeof E=="string"&&E.startsWith("#"),K=typeof E=="string"?B?document.getElementById(E.slice(1)):document.querySelector(E):E;if(!K)return;s=pX(K,d)}else s=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(s):window.scrollTo(s.left!=null?s.left:window.scrollX,s.top!=null?s.top:window.scrollY)}function TL(d,s){return(history.state?history.state.position-s:-1)+d}const xA=new Map;function gX(d,s){xA.set(d,s)}function vX(d){const s=xA.get(d);return xA.delete(d),s}function yX(d){return typeof d=="string"||d&&typeof d=="object"}function uO(d){return typeof d=="string"||typeof d=="symbol"}let xd=function(d){return d[d.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",d[d.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",d[d.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",d[d.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",d[d.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",d}({});const cO=Symbol("");xd.MATCHER_NOT_FOUND+"",xd.NAVIGATION_GUARD_REDIRECT+"",xd.NAVIGATION_ABORTED+"",xd.NAVIGATION_CANCELLED+"",xd.NAVIGATION_DUPLICATED+"";function v_(d,s){return Fh(new Error,{type:d,[cO]:!0},s)}function Gg(d,s){return d instanceof Error&&cO in d&&(s==null||!!(d.type&s))}const xX=["params","query","hash"];function _X(d){if(typeof d=="string")return d;if(d.path!=null)return d.path;const s={};for(const E of xX)E in d&&(s[E]=d[E]);return JSON.stringify(s,null,2)}function bX(d){const s={};if(d===""||d==="?")return s;const E=(d[0]==="?"?d.slice(1):d).split("&");for(let B=0;B<E.length;++B){const K=E[B].replace(iO," "),pt=K.indexOf("="),_t=W2(pt<0?K:K.slice(0,pt)),Ot=pt<0?null:W2(K.slice(pt+1));if(_t in s){let jt=s[_t];Im(jt)||(jt=s[_t]=[jt]),jt.push(Ot)}else s[_t]=Line truncated
*/const s_=typeof document<"u";function aO(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function uX(d){return d.__esModule||d[Symbol.toStringTag]==="Module"||d.default&&aO(d.default)}const Bh=Object.assign;function P8(d,s){const E={};for(const R in s){const Y=s[R];E[R]=Im(Y)?Y.map(d):d(Y)}return E}const C2=()=>{},Im=Array.isArray;function kL(d,s){const E={};for(const R in d)E[R]=R in s?s[R]:d[R];return E}const oO=/#/g,cX=/&/g,hX=/\//g,fX=/=/g,dX=/\?/g,sO=/\+/g,pX=/%5B/g,mX=/%5D/g,lO=/%5E/g,gX=/%60/g,uO=/%7B/g,vX=/%7C/g,cO=/%7D/g,yX=/%20/g;function uM(d){return d==null?"":encodeURI(""+d).replace(vX,"|").replace(pX,"[").replace(mX,"]")}function xX(d){return uM(d).replace(uO,"{").replace(cO,"}").replace(lO,"^")}function _A(d){return uM(d).replace(sO,"%2B").replace(yX,"+").replace(oO,"%23").replace(cX,"%26").replace(gX,"`").replace(uO,"{").replace(cO,"}").replace(lO,"^")}function _X(d){return _A(d).replace(fX,"%3D")}function bX(d){return uM(d).replace(oO,"%23").replace(dX,"%3F")}function wX(d){return bX(d).replace(hX,"%2F")}function W2(d){if(d==null)return null;try{return decodeURIComponent(""+d)}catch{}return""+d}const kX=/\/$/,TX=d=>d.replace(kX,"");function I8(d,s,E="/"){let R,Y={},dt="",_t="";const zt=s.indexOf("#");let jt=s.indexOf("?");return jt=zt>=0&&jt>zt?-1:jt,jt>=0&&(R=s.slice(0,jt),dt=s.slice(jt,zt>0?zt:s.length),Y=d(dt.slice(1))),zt>=0&&(R=R||s.slice(0,zt),_t=s.slice(zt,s.length)),R=EX(R??s,E),{fullPath:R+dt+_t,path:R,query:Y,hash:W2(_t)}}function AX(d,s){const E=s.query?d(s.query):"";return s.path+(E&&"?")+E+(s.hash||"")}function TL(d,s){return!s||!d.toLowerCase().startsWith(s.toLowerCase())?d:d.slice(s.length)||"/"}function MX(d,s,E){const R=s.matched.length-1,Y=E.matched.length-1;return R>-1&&R===Y&&v_(s.matched[R],E.matched[Y])&&hO(s.params,E.params)&&d(s.query)===d(E.query)&&s.hash===E.hash}function v_(d,s){return(d.aliasOf||d)===(s.aliasOf||s)}function hO(d,s){if(Object.keys(d).length!==Object.keys(s).length)return!1;for(const E in d)if(!SX(d[E],s[E]))return!1;return!0}function SX(d,s){return Im(d)?AL(d,s):Im(s)?AL(s,d):d===s}function AL(d,s){return Im(s)?d.length===s.length&&d.every((E,R)=>E===s[R]):d.length===1&&d[0]===s}function EX(d,s){if(d.startsWith("/"))return d;if(!d)return s;const E=s.split("/"),R=d.split("/"),Y=R[R.length-1];(Y===".."||Y===".")&&R.push("");let dt=E.length-1,_t,zt;for(_t=0;_t<R.length;_t++)if(zt=R[_t],zt!==".")if(zt==="..")dt>1&&dt--;else break;return E.slice(0,dt).join("/")+"/"+R.slice(_t).join("/")}const e1={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bA=function(d){return d.pop="pop",d.push="push",d}({}),z8=function(d){return d.back="back",d.forward="forward",d.unknown="",d}({});function CX(d){if(!d)if(s_){const s=document.querySelector("base");d=s&&s.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),TX(d)}const LX=/^[^#]+#/;function PX(d,s){return d.replace(LX,"#")+s}function IX(d,s){const E=document.documentElement.getBoundingClientRect(),R=d.getBoundingClientRect();return{behavior:s.behavior,left:R.left-E.left-(s.left||0),top:R.top-E.top-(s.top||0)}}const H4=()=>({left:window.scrollX,top:window.scrollY});function zX(d){let s;if("el"in d){const E=d.el,R=typeof E=="string"&&E.startsWith("#"),Y=typeof E=="string"?R?document.getElementById(E.slice(1)):document.querySelector(E):E;if(!Y)return;s=IX(Y,d)}else s=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(s):window.scrollTo(s.left!=null?s.left:window.scrollX,s.top!=null?s.top:window.scrollY)}function ML(d,s){return(history.state?history.state.position-s:-1)+d}const wA=new Map;function OX(d,s){wA.set(d,s)}function DX(d){const s=wA.get(d);return wA.delete(d),s}function FX(d){return typeof d=="string"||d&&typeof d=="object"}function fO(d){return typeof d=="string"||typeof d=="symbol"}let xd=function(d){return d[d.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",d[d.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",d[d.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",d[d.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",d[d.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",d}({});const dO=Symbol("");xd.MATCHER_NOT_FOUND+"",xd.NAVIGATION_GUARD_REDIRECT+"",xd.NAVIGATION_ABORTED+"",xd.NAVIGATION_CANCELLED+"",xd.NAVIGATION_DUPLICATED+"";function y_(d,s){return Bh(new Error,{type:d,[dO]:!0},s)}function Yg(d,s){return d instanceof Error&&dO in d&&(s==null||!!(d.type&s))}const BX=["params","query","hash"];function RX(d){if(typeof d=="string")return d;if(d.path!=null)return d.path;const s={};for(const E of BX)E in d&&(s[E]=d[E]);return JSON.stringify(s,null,2)}function NX(d){const s={};if(d===""||d==="?")return s;const E=(d[0]==="?"?d.slice(1):d).split("&");for(let R=0;R<E.length;++R){const Y=E[R].replace(sO," "),dt=Y.indexOf("="),_t=W2(dt<0?Y:Y.slice(0,dt)),zt=dt<0?null:W2(Y.slice(dt+1));if(_t in s){let jt=s[_t];Im(jt)||(jt=s[_t]=[jt]),jt.push(zt)}else s[_t]=Line truncated
* vue-router v4.6.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let AX=()=>location.protocol+"//"+location.host;function hO(d,s){const{pathname:E,search:B,hash:K}=s,pt=d.indexOf("#");if(pt>-1){let _t=K.includes(d.slice(pt))?d.slice(pt).length:1,Ot=K.slice(_t);return Ot[0]!=="/"&&(Ot="/"+Ot),wL(Ot,"")}return wL(E,d)+B+K}function MX(d,s,E,B){let K=[],pt=[],_t=null;const Ot=({state:er})=>{const pr=hO(d,location),Mr=E.value,Tr=s.value;let Vr=0;if(er){if(E.value=pr,s.value=er,_t&&_t===Mr){_t=null;return}Vr=Tr?er.position-Tr.position:0}else B(pr);K.forEach(mn=>{mn(E.value,Mr,{delta:Vr,type:yA.pop,direction:Vr?Vr>0?I8.forward:I8.back:I8.unknown})})};function jt(){_t=E.value}function te(er){K.push(er);const pr=()=>{const Mr=K.indexOf(er);Mr>-1&&K.splice(Mr,1)};return pt.push(pr),pr}function he(){if(document.visibilityState==="hidden"){const{history:er}=window;if(!er.state)return;er.replaceState(Fh({},er.state,{scroll:U4()}),"")}}function De(){for(const er of pt)er();pt=[],window.removeEventListener("popstate",Ot),window.removeEventListener("pagehide",he),document.removeEventListener("visibilitychange",he)}return window.addEventListener("popstate",Ot),window.addEventListener("pagehide",he),document.addEventListener("visibilitychange",he),{pauseListeners:jt,listen:te,destroy:De}}function SL(d,s,E,B=!1,K=!1){return{back:d,current:s,forward:E,replaced:B,position:window.history.length,scroll:K?U4():null}}function SX(d){const{history:s,location:E}=window,B={value:hO(d,E)},K={value:s.state};K.value||pt(B.value,{back:null,current:B.value,forward:null,position:s.length-1,replaced:!0,scroll:null},!0);function pt(jt,te,he){const De=d.indexOf("#"),er=De>-1?(E.host&&document.querySelector("base")?d:d.slice(De))+jt:AX()+d+jt;try{s[he?"replaceState":"pushState"](te,"",er),K.value=te}catch(pr){console.error(pr),E[he?"replace":"assign"](er)}}function _t(jt,te){pt(jt,Fh({},s.state,SL(K.value.back,jt,K.value.forward,!0),te,{position:K.value.position}),!0),B.value=jt}function Ot(jt,te){const he=Fh({},K.value,s.state,{forward:jt,scroll:U4()});pt(he.current,he,!0),pt(jt,Fh({},SL(B.value,jt,null),{position:he.position+1},te),!1),B.value=jt}return{location:B,state:K,push:Ot,replace:_t}}function EX(d){d=hX(d);const s=SX(d),E=MX(d,s.state,s.location,s.replace);function B(pt,_t=!0){_t||E.pauseListeners(),history.go(pt)}const K=Fh({location:"",base:d,go:B,createHref:dX.bind(null,d)},s,E);return Object.defineProperty(K,"location",{enumerable:!0,get:()=>s.location.value}),Object.defineProperty(K,"state",{enumerable:!0,get:()=>s.state.value}),K}let xy=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var np=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(np||{});const CX={type:xy.Static,value:""},LX=/[a-zA-Z0-9_]/;function PX(d){if(!d)return[[]];if(d==="/")return[[CX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function s(pr){throw new Error(`ERR (${E})/"${te}": ${pr}`)}let E=np.Static,B=E;const K=[];let pt;function _t(){pt&&K.push(pt),pt=[]}let Ot=0,jt,te="",he="";function De(){te&&(E===np.Static?pt.push({type:xy.Static,value:te}):E===np.Param||E===np.ParamRegExp||E===np.ParamRegExpEnd?(pt.length>1&&(jt==="*"||jt==="+")&&s(`A repeatable param (${te}) must be alone in its segment. eg: '/:ids+.`),pt.push({type:xy.Param,value:te,regexp:he,repeatable:jt==="*"||jt==="+",optional:jt==="*"||jt==="?"})):s("Invalid state to consume buffer"),te="")}function er(){te+=jt}for(;Ot<d.length;){if(jt=d[Ot++],jt==="\\"&&E!==np.ParamRegExp){B=E,E=np.EscapeNext;continue}switch(E){case np.Static:jt==="/"?(te&&De(),_t()):jt===":"?(De(),E=np.Param):er();break;case np.EscapeNext:er(),E=B;break;case np.Param:jt==="("?E=np.ParamRegExp:LX.test(jt)?er():(De(),E=np.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&Ot--);break;case np.ParamRegExp:jt===")"?he[he.length-1]=="\\"?he=he.slice(0,-1)+jt:E=np.ParamRegExpEnd:he+=jt;break;case np.ParamRegExpEnd:De(),E=np.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&Ot--,he="";break;default:s("Unknown state");break}}return E===np.ParamRegExp&&s(`Unfinished custom RegExp for param "${te}"`),De(),_t(),K}const EL="[^/]+?",IX={sensitive:!1,strict:!1,start:!0,end:!0};var h0=function(d){return d[d._multiplier=10]="_multiplier",d[d.Root=90]="Root",d[d.Segment=40]="Segment",d[d.SubSegment=30]="SubSegment",d[d.Static=40]="Static",d[d.Dynamic=20]="Dynamic",d[d.BonusCustomRegExp=10]="BonusCustomRegExp",d[d.BonusWildcard=-50]="BonusWildcard",d[d.BonusRepeatable=-20]="BonusRepeatable",d[d.BonusOptional=-8]="BonusOptional",d[d.BonusStrict=.7000000000000001]="BonusStrict",d[d.BonusCaseSensitive=.25]="BonusCaseSensitive",d}(h0||{});const zX=/[.+*?^${}()[\]/\\]/g;function OX(d,s){const E=Fh({},IX,s),B=[];let K=E.start?"^":"";const pt=[];for(const te of d){const he=te.length?[]:[h0.Root];E.strict&&!te.length&&(K+="/");for(let De=0;De<te.length;De++){const er=te[De];let pr=h0.Segment+(E.sensitive?h0.BonusCaseSensitive:0);if(er.type===xy.Static)De||(K+="/"Line truncated
`).forEach(function(_t){K=_t.indexOf(":"),E=_t.substring(0,K).trim().toLowerCase(),B=_t.substring(K+1).trim(),!(!E||s[E]&&JJ[E])&&(E==="set-cookie"?s[E]?s[E].push(B):s[E]=[B]:s[E]=s[E]?s[E]+", "+B:B)}),s},UL=Symbol("internals");function n2(d){return d&&String(d).trim().toLowerCase()}function e4(d){return d===!1||d==null?d:eo.isArray(d)?d.map(e4):String(d)}function tQ(d){const s=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=E.exec(d);)s[B[1]]=B[2];return s}const eQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function O8(d,s,E,B,K){if(eo.isFunction(B))return B.call(this,s,E);if(K&&(s=E),!!eo.isString(s)){if(eo.isString(B))return s.indexOf(B)!==-1;if(eo.isRegExp(B))return B.test(s)}}function rQ(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,E,B)=>E.toUpperCase()+B)}function nQ(d,s){const E=eo.toCamelCase(" "+s);["get","set","has"].forEach(B=>{Object.defineProperty(d,B+E,{value:function(K,pt,_t){return this[B].call(this,s,K,pt,_t)},configurable:!0})})}let E0=class{constructor(s){s&&this.set(s)}set(s,E,B){const K=this;function pt(Ot,jt,te){const he=n2(jt);if(!he)throw new Error("header name must be a non-empty string");const De=eo.findKey(K,he);(!De||K[De]===void 0||te===!0||te===void 0&&K[De]!==!1)&&(K[De||jt]=e4(Ot))}const _t=(Ot,jt)=>eo.forEach(Ot,(te,he)=>pt(te,he,jt));if(eo.isPlainObject(s)||s instanceof this.constructor)_t(s,E);else if(eo.isString(s)&&(s=s.trim())&&!eQ(s))_t(QJ(s),E);else if(eo.isObject(s)&&eo.isIterable(s)){let Ot={},jt,te;for(const he of s){if(!eo.isArray(he))throw TypeError("Object iterator must return a key-value pair");Ot[te=he[0]]=(jt=Ot[te])?eo.isArray(jt)?[...jt,he[1]]:[jt,he[1]]:he[1]}_t(Ot,E)}else s!=null&&pt(E,s,B);return this}get(s,E){if(s=n2(s),s){const B=eo.findKey(this,s);if(B){const K=this[B];if(!E)return K;if(E===!0)return tQ(K);if(eo.isFunction(E))return E.call(this,K,B);if(eo.isRegExp(E))return E.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,E){if(s=n2(s),s){const B=eo.findKey(this,s);return!!(B&&this[B]!==void 0&&(!E||O8(this,this[B],B,E)))}return!1}delete(s,E){const B=this;let K=!1;function pt(_t){if(_t=n2(_t),_t){const Ot=eo.findKey(B,_t);Ot&&(!E||O8(B,B[Ot],Ot,E))&&(delete B[Ot],K=!0)}}return eo.isArray(s)?s.forEach(pt):pt(s),K}clear(s){const E=Object.keys(this);let B=E.length,K=!1;for(;B--;){const pt=E[B];(!s||O8(this,this[pt],pt,s,!0))&&(delete this[pt],K=!0)}return K}normalize(s){const E=this,B={};return eo.forEach(this,(K,pt)=>{const _t=eo.findKey(B,pt);if(_t){E[_t]=e4(K),delete E[pt];return}const Ot=s?rQ(pt):String(pt).trim();Ot!==pt&&delete E[pt],E[Ot]=e4(K),B[Ot]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const E=Object.create(null);return eo.forEach(this,(B,K)=>{B!=null&&B!==!1&&(E[K]=s&&eo.isArray(B)?B.join(", "):B)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,E])=>s+": "+E).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...E){const B=new this(s);return E.forEach(K=>B.set(K)),B}static accessor(s){const B=(this[UL]=this[UL]={accessors:{}}).accessors,K=this.prototype;function pt(_t){const Ot=n2(_t);B[Ot]||(nQ(K,_t),B[Ot]=!0)}return eo.isArray(s)?s.forEach(pt):pt(s),this}};E0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);eo.reduceDescriptors(E0.prototype,({value:d},s)=>{let E=s[0].toUpperCase()+s.slice(1);return{get:()=>d,set(B){this[E]=B}}});eo.freezeMethods(E0);function D8(d,s){const E=this||ow,B=s||E,K=E0.from(B.headers);let pt=B.data;return eo.forEach(d,function(Ot){pt=Ot.call(E,pt,K.normalize(),s?s.status:void 0)}),K.normalize(),pt}function PO(d){return!!(d&&d.__CANCEL__)}function k_(d,s,E){Ju.call(this,d??"canceled",Ju.ERR_CANCELED,s,E),this.name="CanceledError"}eo.inherits(k_,Ju,{__CANCEL__:!0});function IO(d,s,E){const B=E.config.validateStatus;!E.status||!B||B(E.status)?d(E):s(new Ju("Request failed with status code "+E.status,[Ju.ERR_BAD_REQUEST,Ju.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}function iQ(d){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return s&&s[1]||""}function aQ(d,s){d=d||10;const E=new Array(d),B=new Array(d);let K=0,pt=0,_t;return s=s!==void 0?s:1e3,function(jt){const te=Date.now(),he=B[pt];_t||(_t=te),E[K]=jt,B[K]=te;let De=pt,er=0;for(;De!==K;)er+=E[De++],De=De%d;if(K=(K+1)%d,K===pt&&(pt=(pt+1)%d),te-_t<s)return;const pr=he&&te-he;return pr?Math.round(er*1e3/pr):void 0}}function oQ(d,s){let E=0,B=1e3/s,K,pt;const _t=(te,he=Date.now())=>{E=he,K=null,pt&&(clearTimeout(pt),pt=null),d(...te)};return[(...te)=>{const he=Date.now(),De=he-E;De>=B?_t(te,he):(K=te,pt||(pt=setTimeout(()=>{pt=null,_t(K)},B-De)))},()=>K&&_t(K)]}const v4=(d,s,E=3)=>{let B=0;const K=aQ(50,250);return oQ(pt=>{const _t=pt.loaded,Ot=pt.lengthComputable?pt.total:void 0,jt=_t-B,te=K(jt),he=_t<=Ot;B=_t;const De={loaded:_t,total:Ot,progress:Ot?_t/Ot:void 0,bytes:jt,rate:te||void 0,estimated:te&&Ot&&he?(Ot-_t)/te:void 0,event:pt,lengthComputable:Ot!=null,[s?"download":"upload"]:!0};d(De)},E)},VL=(d,s)=>{const E=d!=null;return[B=>s[0]({lengthComputable:E,total:d,loaded:B}),s[1]]},HL=d=>(...s)=>eo.asap(()=>d(...s)),sQ=Xp.hasStandardBrowserEnv?((d,s)=>E=>(E=new URL(E,Xp.origin),d.protocol===E.protocol&&d.host===E.host&&(s||d.port===E.port)))(new URL(Xp.origin),Xp.navigator&&/(msie|trident)/i.test(Xp.navigator.userAgent)):()=>!0,lQ=Xp.hasStandardBrowserEnv?{write(d,s,E,B,K,pt,_t){if(typeof document>"u")return;const Ot=[`${d}=${encodeURIComponent(s)}`];eo.isNumber(E)&&Ot.push(`expires=${new Date(E).toUTCString()}`),eo.isString(B)&&Ot.push(`path=${B}`),eo.isString(K)&&Ot.push(`domain=${K}`),pt===!0&&Ot.push("secure"),eo.isString(_t)&&Ot.push(`SameSite=${_t}`),document.cookie=Ot.join("; ")},read(d){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function uQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function cQ(d,s){return s?d.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):d}function zO(d,s,E){let B=!uQ(s);return d&&(B||E==!1)?cQ(d,s):s}const WL=d=>d instanceof E0?{...d}:d;function Ey(d,s){s=s||{};const E={};function B(te,he,De,er){return eo.isPlainObject(te)&&eo.isPlainObject(he)?eo.merge.call({caseless:er},te,he):eo.isPlainObject(he)?eo.merge({},he):eo.isArray(he)?he.slice():he}function K(te,he,De,er){if(eo.isUndefined(he)){if(!eo.isUndefined(te))return B(void 0,te,De,er)}else return B(te,he,De,er)}function pt(te,he){if(!eo.isUndefined(he))return B(void 0,he)}function _t(te,he){if(eo.isUndefined(he)){if(!eo.isUndefined(te))return B(void 0,te)}else return B(void 0,he)}function Ot(te,he,De){if(De in s)return B(te,he);if(De in d)return B(void 0,te)}const jt={url:pt,method:pt,data:pt,baseURL:_t,transformRequest:_t,transformResponse:_t,paramsSerializer:_t,timeout:_t,timeoutMessage:_t,withCredentials:_t,withXSRFToken:_t,adapter:_t,responseType:_t,xsrfCookieName:_t,xsrfHeaderName:_t,onUploadProgress:_t,onDownloadProgress:_t,decompress:_t,maxContentLength:_t,maxBodyLength:_t,beforeRedirect:_t,transport:_t,httpAgent:_t,httpsAgent:_t,cancelToken:_t,socketPath:_t,responseEncoding:_t,validateStatus:Ot,headers:(te,he,De)=>K(WL(te),WL(he),De,!0)};return eo.forEach(Object.keys({...d,...s}),function(he){const De=jt[he]||K,er=De(d[he],s[he],he);eo.isUndefined(er)&&De!==Ot||(E[he]=er)}),E}const OO=d=>{const s=Ey({},d);let{data:E,withXSRFToken:B,xsrfHeaderName:K,xsrfCookieName:pt,headers:_t,auth:Ot}=s;if(s.headers=_t=E0.from(_t),s.url=EO(zO(s.baseURL,s.url,s.allowAbsoluteUrls),d.params,d.paramsSerializer),Ot&&_t.set("Authorization","Basic "+btoa((Ot.username||"")+":"+(Ot.password?unescape(encodeURIComponent(Ot.password)):""))), Line truncated
`+_t.map(KL).join(`
`):" "+KL(_t[0]):"as no adapter specified";throw new Ju("There is no suitable adapter to dispatch the request "+Ot,"ERR_NOT_SUPPORT")}return K}const FO={getAdapter:bQ,adapters:fM};function F8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new k_(null,d)}function XL(d){return F8(d),d.headers=E0.from(d.headers),d.data=D8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),FO.getAdapter(d.adapter||ow.adapter,d)(d).then(function(B){return F8(d),B.data=D8.call(d,d.transformResponse,B),B.headers=E0.from(B.headers),B},function(B){return PO(B)||(F8(d),B&&B.response&&(B.response.data=D8.call(d,d.transformResponse,B.response),B.response.headers=E0.from(B.response.headers))),Promise.reject(B)})}const RO="1.13.2",Z4={};["object","boolean","number","function","string","symbol"].forEach((d,s)=>{Z4[d]=function(B){return typeof B===d||"a"+(s<1?"n ":" ")+d}});const JL={};Z4.transitional=function(s,E,B){function K(pt,_t){return"[Axios v"+RO+"] Transitional option '"+pt+"'"+_t+(B?". "+B:"")}return(pt,_t,Ot)=>{if(s===!1)throw new Ju(K(_t," has been removed"+(E?" in "+E:"")),Ju.ERR_DEPRECATED);return E&&!JL[_t]&&(JL[_t]=!0,console.warn(K(_t," has been deprecated since v"+E+" and will be removed in the near future"))),s?s(pt,_t,Ot):!0}};Z4.spelling=function(s){return(E,B)=>(console.warn(`${B} is likely a misspelling of ${s}`),!0)};function wQ(d,s,E){if(typeof d!="object")throw new Ju("options must be an object",Ju.ERR_BAD_OPTION_VALUE);const B=Object.keys(d);let K=B.length;for(;K-- >0;){const pt=B[K],_t=s[pt];if(_t){const Ot=d[pt],jt=Ot===void 0||_t(Ot,pt,d);if(jt!==!0)throw new Ju("option "+pt+" must be "+jt,Ju.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new Ju("Unknown option "+pt,Ju.ERR_BAD_OPTION)}}const r4={assertOptions:wQ,validators:Z4},ig=r4.validators;let Ty=class{constructor(s){this.defaults=s||{},this.interceptors={request:new jL,response:new jL}}async request(s,E){try{return await this._request(s,E)}catch(B){if(B instanceof Error){let K={};Error.captureStackTrace?Error.captureStackTrace(K):K=new Error;const pt=K.stack?K.stack.replace(/^.+\n/,""):"";try{B.stack?pt&&!String(B.stack).endsWith(pt.replace(/^.+\n.+\n/,""))&&(B.stack+=`
`+pt):B.stack=pt}catch{}}throw B}}_request(s,E){typeof s=="string"?(E=E||{},E.url=s):E=s||{},E=Ey(this.defaults,E);const{transitional:B,paramsSerializer:K,headers:pt}=E;B!==void 0&&r4.assertOptions(B,{silentJSONParsing:ig.transitional(ig.boolean),forcedJSONParsing:ig.transitional(ig.boolean),clarifyTimeoutError:ig.transitional(ig.boolean)},!1),K!=null&&(eo.isFunction(K)?E.paramsSerializer={serialize:K}:r4.assertOptions(K,{encode:ig.function,serialize:ig.function},!0)),E.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?E.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:E.allowAbsoluteUrls=!0),r4.assertOptions(E,{baseUrl:ig.spelling("baseURL"),withXsrfToken:ig.spelling("withXSRFToken")},!0),E.method=(E.method||this.defaults.method||"get").toLowerCase();let _t=pt&&eo.merge(pt.common,pt[E.method]);pt&&eo.forEach(["delete","get","head","post","put","patch","common"],Mr=>{delete pt[Mr]}),E.headers=E0.concat(_t,pt);const Ot=[];let jt=!0;this.interceptors.request.forEach(function(Tr){typeof Tr.runWhen=="function"&&Tr.runWhen(E)===!1||(jt=jt&&Tr.synchronous,Ot.unshift(Tr.fulfilled,Tr.rejected))});const te=[];this.interceptors.response.forEach(function(Tr){te.push(Tr.fulfilled,Tr.rejected)});let he,De=0,er;if(!jt){const Mr=[XL.bind(this),void 0];for(Mr.unshift(...Ot),Mr.push(...te),er=Mr.length,he=Promise.resolve(E);De<er;)he=he.then(Mr[De++],Mr[De++]);return he}er=Ot.length;let pr=E;for(;De<er;){const Mr=Ot[De++],Tr=Ot[De++];try{pr=Mr(pr)}catch(Vr){Tr.call(this,Vr);break}}try{he=XL.call(this,pr)}catch(Mr){return Promise.reject(Mr)}for(De=0,er=te.length;De<er;)he=he.then(te[De++],te[De++]);return he}getUri(s){s=Ey(this.defaults,s);const E=zO(s.baseURL,s.url,s.allowAbsoluteUrls);return EO(E,s.params,s.paramsSerializer)}};eo.forEach(["delete","get","head","options"],function(s){Ty.prototype[s]=function(E,B){return this.request(Ey(B||{},{method:s,url:E,data:(B||{}).data}))}});eo.forEach(["post","put","patch"],function(s){function E(B){return function(pt,_t,Ot){return this.request(Ey(Ot||{},{method:s,headers:B?{"Content-Type":"multipart/form-data"}:{},url:pt,data:_t}))}}Ty.prototype[s]=E(),Ty.prototype[s+"Form"]=E(!0)});let kQ=class BO{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(pt){E=pt});const B=this;this.promise.then(K=>{if(!B._listeners)return;let pt=B._listeners.length;for(;pt-- >0;)B._listeners[pt](K);B._listeners=null}),this.promise.then=K=>{let pt;const _t=new Promise(Ot=>{B.subscribe(Ot),pt=Ot}).then(K);return _t.cancel=function(){B.unsubscribe(pt)},_t},s(function(pt,_t,Ot){B.reason||(B.reason=new k_(pt,_t,Ot),E(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const E=this._listeners.indexOf(s);E!==-1&&this._listeners.splice(E,1)}toAbortSignal(){const s=new AbortController,E=B=>{s.abort(B)};return this.subscribe(E),s.signal.unsubscribe=()=>this.unsubscribe(E),s.signal}static source(){let s;return{token:new BO(function(K){s=K}),cancel:s}}};function TQ(d){return function(E){return d.apply(null,E)}}function AQ(d){return eo.isObject(d)&&d.isAxiosError===!0}const TA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(TA).forEach(([d,s])=>{TA[s]=d});function NO(d){const s=new Ty(d),E=gO(Ty.prototype.request,s);return eo.extend(E,Ty.prototype,s,{allOwnKeys:!0}),eo.extend(E,s,null,{allOwnKeys:!0}),E.create=function(K){return NO(Ey(d,K))},E}const _d=NO(ow);_d.Axios=Ty;_d.CanceledError=k_;_d.CancelToken=kQ;_d.isCancel=PO;_d.VERSION=RO;_d.toFormData=$4;_d.AxiosError=Ju;_d.Cancel=_ Line truncated
${he.color} 0%,
${he.color.replace("0.8","0.6")} 30%,
${he.color.replace("0.8","0.4")} 70%,
${he.color.replace("0.8","0.3")} 100%),
*/let HX=()=>location.protocol+"//"+location.host;function pO(d,s){const{pathname:E,search:R,hash:Y}=s,dt=d.indexOf("#");if(dt>-1){let _t=Y.includes(d.slice(dt))?d.slice(dt).length:1,zt=Y.slice(_t);return zt[0]!=="/"&&(zt="/"+zt),TL(zt,"")}return TL(E,d)+R+Y}function WX(d,s,E,R){let Y=[],dt=[],_t=null;const zt=({state:Je})=>{const fr=pO(d,location),Ar=E.value,kr=s.value;let Vr=0;if(Je){if(E.value=fr,s.value=Je,_t&&_t===Ar){_t=null;return}Vr=kr?Je.position-kr.position:0}else R(fr);Y.forEach(fn=>{fn(E.value,Ar,{delta:Vr,type:bA.pop,direction:Vr?Vr>0?z8.forward:z8.back:z8.unknown})})};function jt(){_t=E.value}function te(Je){Y.push(Je);const fr=()=>{const Ar=Y.indexOf(Je);Ar>-1&&Y.splice(Ar,1)};return dt.push(fr),fr}function ce(){if(document.visibilityState==="hidden"){const{history:Je}=window;if(!Je.state)return;Je.replaceState(Bh({},Je.state,{scroll:H4()}),"")}}function Ie(){for(const Je of dt)Je();dt=[],window.removeEventListener("popstate",zt),window.removeEventListener("pagehide",ce),document.removeEventListener("visibilitychange",ce)}return window.addEventListener("popstate",zt),window.addEventListener("pagehide",ce),document.addEventListener("visibilitychange",ce),{pauseListeners:jt,listen:te,destroy:Ie}}function CL(d,s,E,R=!1,Y=!1){return{back:d,current:s,forward:E,replaced:R,position:window.history.length,scroll:Y?H4():null}}function qX(d){const{history:s,location:E}=window,R={value:pO(d,E)},Y={value:s.state};Y.value||dt(R.value,{back:null,current:R.value,forward:null,position:s.length-1,replaced:!0,scroll:null},!0);function dt(jt,te,ce){const Ie=d.indexOf("#"),Je=Ie>-1?(E.host&&document.querySelector("base")?d:d.slice(Ie))+jt:HX()+d+jt;try{s[ce?"replaceState":"pushState"](te,"",Je),Y.value=te}catch(fr){console.error(fr),E[ce?"replace":"assign"](Je)}}function _t(jt,te){dt(jt,Bh({},s.state,CL(Y.value.back,jt,Y.value.forward,!0),te,{position:Y.value.position}),!0),R.value=jt}function zt(jt,te){const ce=Bh({},Y.value,s.state,{forward:jt,scroll:H4()});dt(ce.current,ce,!0),dt(jt,Bh({},CL(R.value,jt,null),{position:ce.position+1},te),!1),R.value=jt}return{location:R,state:Y,push:zt,replace:_t}}function $X(d){d=CX(d);const s=qX(d),E=WX(d,s.state,s.location,s.replace);function R(dt,_t=!0){_t||E.pauseListeners(),history.go(dt)}const Y=Bh({location:"",base:d,go:R,createHref:PX.bind(null,d)},s,E);return Object.defineProperty(Y,"location",{enumerable:!0,get:()=>s.location.value}),Object.defineProperty(Y,"state",{enumerable:!0,get:()=>s.state.value}),Y}let by=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var np=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(np||{});const ZX={type:by.Static,value:""},GX=/[a-zA-Z0-9_]/;function YX(d){if(!d)return[[]];if(d==="/")return[[ZX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function s(fr){throw new Error(`ERR (${E})/"${te}": ${fr}`)}let E=np.Static,R=E;const Y=[];let dt;function _t(){dt&&Y.push(dt),dt=[]}let zt=0,jt,te="",ce="";function Ie(){te&&(E===np.Static?dt.push({type:by.Static,value:te}):E===np.Param||E===np.ParamRegExp||E===np.ParamRegExpEnd?(dt.length>1&&(jt==="*"||jt==="+")&&s(`A repeatable param (${te}) must be alone in its segment. eg: '/:ids+.`),dt.push({type:by.Param,value:te,regexp:ce,repeatable:jt==="*"||jt==="+",optional:jt==="*"||jt==="?"})):s("Invalid state to consume buffer"),te="")}function Je(){te+=jt}for(;zt<d.length;){if(jt=d[zt++],jt==="\\"&&E!==np.ParamRegExp){R=E,E=np.EscapeNext;continue}switch(E){case np.Static:jt==="/"?(te&&Ie(),_t()):jt===":"?(Ie(),E=np.Param):Je();break;case np.EscapeNext:Je(),E=R;break;case np.Param:jt==="("?E=np.ParamRegExp:GX.test(jt)?Je():(Ie(),E=np.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&zt--);break;case np.ParamRegExp:jt===")"?ce[ce.length-1]=="\\"?ce=ce.slice(0,-1)+jt:E=np.ParamRegExpEnd:ce+=jt;break;case np.ParamRegExpEnd:Ie(),E=np.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&zt--,ce="";break;default:s("Unknown state");break}}return E===np.ParamRegExp&&s(`Unfinished custom RegExp for param "${te}"`),Ie(),_t(),Y}const LL="[^/]+?",KX={sensitive:!1,strict:!1,start:!0,end:!0};var h0=function(d){return d[d._multiplier=10]="_multiplier",d[d.Root=90]="Root",d[d.Segment=40]="Segment",d[d.SubSegment=30]="SubSegment",d[d.Static=40]="Static",d[d.Dynamic=20]="Dynamic",d[d.BonusCustomRegExp=10]="BonusCustomRegExp",d[d.BonusWildcard=-50]="BonusWildcard",d[d.BonusRepeatable=-20]="BonusRepeatable",d[d.BonusOptional=-8]="BonusOptional",d[d.BonusStrict=.7000000000000001]="BonusStrict",d[d.BonusCaseSensitive=.25]="BonusCaseSensitive",d}(h0||{});const XX=/[.+*?^${}()[\]/\\]/g;function JX(d,s){const E=Bh({},KX,s),R=[];let Y=E.start?"^":"";const dt=[];for(const te of d){const ce=te.length?[]:[h0.Root];E.strict&&!te.length&&(Y+="/");for(let Ie=0;Ie<te.length;Ie++){const Je=te[Ie];let fr=h0.Segment+(E.sensitive?h0.BonusCaseSensitive:0);if(Je.type===by.Static)Ie||(Y+="/"Line truncated
`).forEach(function(_t){Y=_t.indexOf(":"),E=_t.substring(0,Y).trim().toLowerCase(),R=_t.substring(Y+1).trim(),!(!E||s[E]&&gQ[E])&&(E==="set-cookie"?s[E]?s[E].push(R):s[E]=[R]:s[E]=s[E]?s[E]+", "+R:R)}),s},HL=Symbol("internals");function i2(d){return d&&String(d).trim().toLowerCase()}function r4(d){return d===!1||d==null?d:eo.isArray(d)?d.map(r4):String(d)}function yQ(d){const s=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let R;for(;R=E.exec(d);)s[R[1]]=R[2];return s}const xQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function D8(d,s,E,R,Y){if(eo.isFunction(R))return R.call(this,s,E);if(Y&&(s=E),!!eo.isString(s)){if(eo.isString(R))return s.indexOf(R)!==-1;if(eo.isRegExp(R))return R.test(s)}}function _Q(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,E,R)=>E.toUpperCase()+R)}function bQ(d,s){const E=eo.toCamelCase(" "+s);["get","set","has"].forEach(R=>{Object.defineProperty(d,R+E,{value:function(Y,dt,_t){return this[R].call(this,s,Y,dt,_t)},configurable:!0})})}let C0=class{constructor(s){s&&this.set(s)}set(s,E,R){const Y=this;function dt(zt,jt,te){const ce=i2(jt);if(!ce)throw new Error("header name must be a non-empty string");const Ie=eo.findKey(Y,ce);(!Ie||Y[Ie]===void 0||te===!0||te===void 0&&Y[Ie]!==!1)&&(Y[Ie||jt]=r4(zt))}const _t=(zt,jt)=>eo.forEach(zt,(te,ce)=>dt(te,ce,jt));if(eo.isPlainObject(s)||s instanceof this.constructor)_t(s,E);else if(eo.isString(s)&&(s=s.trim())&&!xQ(s))_t(vQ(s),E);else if(eo.isObject(s)&&eo.isIterable(s)){let zt={},jt,te;for(const ce of s){if(!eo.isArray(ce))throw TypeError("Object iterator must return a key-value pair");zt[te=ce[0]]=(jt=zt[te])?eo.isArray(jt)?[...jt,ce[1]]:[jt,ce[1]]:ce[1]}_t(zt,E)}else s!=null&&dt(E,s,R);return this}get(s,E){if(s=i2(s),s){const R=eo.findKey(this,s);if(R){const Y=this[R];if(!E)return Y;if(E===!0)return yQ(Y);if(eo.isFunction(E))return E.call(this,Y,R);if(eo.isRegExp(E))return E.exec(Y);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,E){if(s=i2(s),s){const R=eo.findKey(this,s);return!!(R&&this[R]!==void 0&&(!E||D8(this,this[R],R,E)))}return!1}delete(s,E){const R=this;let Y=!1;function dt(_t){if(_t=i2(_t),_t){const zt=eo.findKey(R,_t);zt&&(!E||D8(R,R[zt],zt,E))&&(delete R[zt],Y=!0)}}return eo.isArray(s)?s.forEach(dt):dt(s),Y}clear(s){const E=Object.keys(this);let R=E.length,Y=!1;for(;R--;){const dt=E[R];(!s||D8(this,this[dt],dt,s,!0))&&(delete this[dt],Y=!0)}return Y}normalize(s){const E=this,R={};return eo.forEach(this,(Y,dt)=>{const _t=eo.findKey(R,dt);if(_t){E[_t]=r4(Y),delete E[dt];return}const zt=s?_Q(dt):String(dt).trim();zt!==dt&&delete E[dt],E[zt]=r4(Y),R[zt]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const E=Object.create(null);return eo.forEach(this,(R,Y)=>{R!=null&&R!==!1&&(E[Y]=s&&eo.isArray(R)?R.join(", "):R)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,E])=>s+": "+E).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...E){const R=new this(s);return E.forEach(Y=>R.set(Y)),R}static accessor(s){const R=(this[HL]=this[HL]={accessors:{}}).accessors,Y=this.prototype;function dt(_t){const zt=i2(_t);R[zt]||(bQ(Y,_t),R[zt]=!0)}return eo.isArray(s)?s.forEach(dt):dt(s),this}};C0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);eo.reduceDescriptors(C0.prototype,({value:d},s)=>{let E=s[0].toUpperCase()+s.slice(1);return{get:()=>d,set(R){this[E]=R}}});eo.freezeMethods(C0);function F8(d,s){const E=this||ow,R=s||E,Y=C0.from(R.headers);let dt=R.data;return eo.forEach(d,function(zt){dt=zt.call(E,dt,Y.normalize(),s?s.status:void 0)}),Y.normalize(),dt}function OO(d){return!!(d&&d.__CANCEL__)}function T_(d,s,E){Ju.call(this,d??"canceled",Ju.ERR_CANCELED,s,E),this.name="CanceledError"}eo.inherits(T_,Ju,{__CANCEL__:!0});function DO(d,s,E){const R=E.config.validateStatus;!E.status||!R||R(E.status)?d(E):s(new Ju("Request failed with status code "+E.status,[Ju.ERR_BAD_REQUEST,Ju.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}function wQ(d){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return s&&s[1]||""}function kQ(d,s){d=d||10;const E=new Array(d),R=new Array(d);let Y=0,dt=0,_t;return s=s!==void 0?s:1e3,function(jt){const te=Date.now(),ce=R[dt];_t||(_t=te),E[Y]=jt,R[Y]=te;let Ie=dt,Je=0;for(;Ie!==Y;)Je+=E[Ie++],Ie=Ie%d;if(Y=(Y+1)%d,Y===dt&&(dt=(dt+1)%d),te-_t<s)return;const fr=ce&&te-ce;return fr?Math.round(Je*1e3/fr):void 0}}function TQ(d,s){let E=0,R=1e3/s,Y,dt;const _t=(te,ce=Date.now())=>{E=ce,Y=null,dt&&(clearTimeout(dt),dt=null),d(...te)};return[(...te)=>{const ce=Date.now(),Ie=ce-E;Ie>=R?_t(te,ce):(Y=te,dt||(dt=setTimeout(()=>{dt=null,_t(Y)},R-Ie)))},()=>Y&&_t(Y)]}const y4=(d,s,E=3)=>{let R=0;const Y=kQ(50,250);return TQ(dt=>{const _t=dt.loaded,zt=dt.lengthComputable?dt.total:void 0,jt=_t-R,te=Y(jt),ce=_t<=zt;R=_t;const Ie={loaded:_t,total:zt,progress:zt?_t/zt:void 0,bytes:jt,rate:te||void 0,estimated:te&&zt&&ce?(zt-_t)/te:void 0,event:dt,lengthComputable:zt!=null,[s?"download":"upload"]:!0};d(Ie)},E)},WL=(d,s)=>{const E=d!=null;return[R=>s[0]({lengthComputable:E,total:d,loaded:R}),s[1]]},qL=d=>(...s)=>eo.asap(()=>d(...s)),AQ=Xp.hasStandardBrowserEnv?((d,s)=>E=>(E=new URL(E,Xp.origin),d.protocol===E.protocol&&d.host===E.host&&(s||d.port===E.port)))(new URL(Xp.origin),Xp.navigator&&/(msie|trident)/i.test(Xp.navigator.userAgent)):()=>!0,MQ=Xp.hasStandardBrowserEnv?{write(d,s,E,R,Y,dt,_t){if(typeof document>"u")return;const zt=[`${d}=${encodeURIComponent(s)}`];eo.isNumber(E)&&zt.push(`expires=${new Date(E).toUTCString()}`),eo.isString(R)&&zt.push(`path=${R}`),eo.isString(Y)&&zt.push(`domain=${Y}`),dt===!0&&zt.push("secure"),eo.isString(_t)&&zt.push(`SameSite=${_t}`),document.cookie=zt.join("; ")},read(d){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function SQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function EQ(d,s){return s?d.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):d}function FO(d,s,E){let R=!SQ(s);return d&&(R||E==!1)?EQ(d,s):s}const $L=d=>d instanceof C0?{...d}:d;function Ly(d,s){s=s||{};const E={};function R(te,ce,Ie,Je){return eo.isPlainObject(te)&&eo.isPlainObject(ce)?eo.merge.call({caseless:Je},te,ce):eo.isPlainObject(ce)?eo.merge({},ce):eo.isArray(ce)?ce.slice():ce}function Y(te,ce,Ie,Je){if(eo.isUndefined(ce)){if(!eo.isUndefined(te))return R(void 0,te,Ie,Je)}else return R(te,ce,Ie,Je)}function dt(te,ce){if(!eo.isUndefined(ce))return R(void 0,ce)}function _t(te,ce){if(eo.isUndefined(ce)){if(!eo.isUndefined(te))return R(void 0,te)}else return R(void 0,ce)}function zt(te,ce,Ie){if(Ie in s)return R(te,ce);if(Ie in d)return R(void 0,te)}const jt={url:dt,method:dt,data:dt,baseURL:_t,transformRequest:_t,transformResponse:_t,paramsSerializer:_t,timeout:_t,timeoutMessage:_t,withCredentials:_t,withXSRFToken:_t,adapter:_t,responseType:_t,xsrfCookieName:_t,xsrfHeaderName:_t,onUploadProgress:_t,onDownloadProgress:_t,decompress:_t,maxContentLength:_t,maxBodyLength:_t,beforeRedirect:_t,transport:_t,httpAgent:_t,httpsAgent:_t,cancelToken:_t,socketPath:_t,responseEncoding:_t,validateStatus:zt,headers:(te,ce,Ie)=>Y($L(te),$L(ce),Ie,!0)};return eo.forEach(Object.keys({...d,...s}),function(ce){const Ie=jt[ce]||Y,Je=Ie(d[ce],s[ce],ce);eo.isUndefined(Je)&&Ie!==zt||(E[ce]=Je)}),E}const BO=d=>{const s=Ly({},d);let{data:E,withXSRFToken:R,xsrfHeaderName:Y,xsrfCookieName:dt,headers:_t,auth:zt}=s;if(s.headers=_t=C0.from(_t),s.url=PO(FO(s.baseURL,s.url,s.allowAbsoluteUrls),d.params,d.paramsSerializer),zt&&_t.set("Authorization","Basic "+btoa((zt.username||"")+":"+(zt.password?unescape(encodeURIComponent(zt.password)):""))), Line truncated
`+_t.map(JL).join(`
`):" "+JL(_t[0]):"as no adapter specified";throw new Ju("There is no suitable adapter to dispatch the request "+zt,"ERR_NOT_SUPPORT")}return Y}const NO={getAdapter:NQ,adapters:pM};function B8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new T_(null,d)}function QL(d){return B8(d),d.headers=C0.from(d.headers),d.data=F8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),NO.getAdapter(d.adapter||ow.adapter,d)(d).then(function(R){return B8(d),R.data=F8.call(d,d.transformResponse,R),R.headers=C0.from(R.headers),R},function(R){return OO(R)||(B8(d),R&&R.response&&(R.response.data=F8.call(d,d.transformResponse,R.response),R.response.headers=C0.from(R.response.headers))),Promise.reject(R)})}const jO="1.13.2",Y4={};["object","boolean","number","function","string","symbol"].forEach((d,s)=>{Y4[d]=function(R){return typeof R===d||"a"+(s<1?"n ":" ")+d}});const tP={};Y4.transitional=function(s,E,R){function Y(dt,_t){return"[Axios v"+jO+"] Transitional option '"+dt+"'"+_t+(R?". "+R:"")}return(dt,_t,zt)=>{if(s===!1)throw new Ju(Y(_t," has been removed"+(E?" in "+E:"")),Ju.ERR_DEPRECATED);return E&&!tP[_t]&&(tP[_t]=!0,console.warn(Y(_t," has been deprecated since v"+E+" and will be removed in the near future"))),s?s(dt,_t,zt):!0}};Y4.spelling=function(s){return(E,R)=>(console.warn(`${R} is likely a misspelling of ${s}`),!0)};function jQ(d,s,E){if(typeof d!="object")throw new Ju("options must be an object",Ju.ERR_BAD_OPTION_VALUE);const R=Object.keys(d);let Y=R.length;for(;Y-- >0;){const dt=R[Y],_t=s[dt];if(_t){const zt=d[dt],jt=zt===void 0||_t(zt,dt,d);if(jt!==!0)throw new Ju("option "+dt+" must be "+jt,Ju.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new Ju("Unknown option "+dt,Ju.ERR_BAD_OPTION)}}const n4={assertOptions:jQ,validators:Y4},ag=n4.validators;let My=class{constructor(s){this.defaults=s||{},this.interceptors={request:new VL,response:new VL}}async request(s,E){try{return await this._request(s,E)}catch(R){if(R instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=new Error;const dt=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{R.stack?dt&&!String(R.stack).endsWith(dt.replace(/^.+\n.+\n/,""))&&(R.stack+=`
`+dt):R.stack=dt}catch{}}throw R}}_request(s,E){typeof s=="string"?(E=E||{},E.url=s):E=s||{},E=Ly(this.defaults,E);const{transitional:R,paramsSerializer:Y,headers:dt}=E;R!==void 0&&n4.assertOptions(R,{silentJSONParsing:ag.transitional(ag.boolean),forcedJSONParsing:ag.transitional(ag.boolean),clarifyTimeoutError:ag.transitional(ag.boolean)},!1),Y!=null&&(eo.isFunction(Y)?E.paramsSerializer={serialize:Y}:n4.assertOptions(Y,{encode:ag.function,serialize:ag.function},!0)),E.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?E.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:E.allowAbsoluteUrls=!0),n4.assertOptions(E,{baseUrl:ag.spelling("baseURL"),withXsrfToken:ag.spelling("withXSRFToken")},!0),E.method=(E.method||this.defaults.method||"get").toLowerCase();let _t=dt&&eo.merge(dt.common,dt[E.method]);dt&&eo.forEach(["delete","get","head","post","put","patch","common"],Ar=>{delete dt[Ar]}),E.headers=C0.concat(_t,dt);const zt=[];let jt=!0;this.interceptors.request.forEach(function(kr){typeof kr.runWhen=="function"&&kr.runWhen(E)===!1||(jt=jt&&kr.synchronous,zt.unshift(kr.fulfilled,kr.rejected))});const te=[];this.interceptors.response.forEach(function(kr){te.push(kr.fulfilled,kr.rejected)});let ce,Ie=0,Je;if(!jt){const Ar=[QL.bind(this),void 0];for(Ar.unshift(...zt),Ar.push(...te),Je=Ar.length,ce=Promise.resolve(E);Ie<Je;)ce=ce.then(Ar[Ie++],Ar[Ie++]);return ce}Je=zt.length;let fr=E;for(;Ie<Je;){const Ar=zt[Ie++],kr=zt[Ie++];try{fr=Ar(fr)}catch(Vr){kr.call(this,Vr);break}}try{ce=QL.call(this,fr)}catch(Ar){return Promise.reject(Ar)}for(Ie=0,Je=te.length;Ie<Je;)ce=ce.then(te[Ie++],te[Ie++]);return ce}getUri(s){s=Ly(this.defaults,s);const E=FO(s.baseURL,s.url,s.allowAbsoluteUrls);return PO(E,s.params,s.paramsSerializer)}};eo.forEach(["delete","get","head","options"],function(s){My.prototype[s]=function(E,R){return this.request(Ly(R||{},{method:s,url:E,data:(R||{}).data}))}});eo.forEach(["post","put","patch"],function(s){function E(R){return function(dt,_t,zt){return this.request(Ly(zt||{},{method:s,headers:R?{"Content-Type":"multipart/form-data"}:{},url:dt,data:_t}))}}My.prototype[s]=E(),My.prototype[s+"Form"]=E(!0)});let UQ=class UO{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(dt){E=dt});const R=this;this.promise.then(Y=>{if(!R._listeners)return;let dt=R._listeners.length;for(;dt-- >0;)R._listeners[dt](Y);R._listeners=null}),this.promise.then=Y=>{let dt;const _t=new Promise(zt=>{R.subscribe(zt),dt=zt}).then(Y);return _t.cancel=function(){R.unsubscribe(dt)},_t},s(function(dt,_t,zt){R.reason||(R.reason=new T_(dt,_t,zt),E(R.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const E=this._listeners.indexOf(s);E!==-1&&this._listeners.splice(E,1)}toAbortSignal(){const s=new AbortController,E=R=>{s.abort(R)};return this.subscribe(E),s.signal.unsubscribe=()=>this.unsubscribe(E),s.signal}static source(){let s;return{token:new UO(function(Y){s=Y}),cancel:s}}};function VQ(d){return function(E){return d.apply(null,E)}}function HQ(d){return eo.isObject(d)&&d.isAxiosError===!0}const SA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(SA).forEach(([d,s])=>{SA[s]=d});function VO(d){const s=new My(d),E=xO(My.prototype.request,s);return eo.extend(E,My.prototype,s,{allOwnKeys:!0}),eo.extend(E,s,null,{allOwnKeys:!0}),E.create=function(Y){return VO(Ly(d,Y))},E}const _d=VO(ow);_d.Axios=My;_d.CanceledError=T_;_d.CancelToken=UQ;_d.isCancel=OO;_d.VERSION=jO;_d.toFormData=G4;_d.AxiosError=Ju;_d.Cancel=_ Line truncated
${ce.color} 0%,
${ce.color.replace("0.8","0.6")} 30%,
${ce.color.replace("0.8","0.4")} 70%,
${ce.color.replace("0.8","0.3")} 100%),
linear-gradient(91deg, rgba(34, 34, 34, 0.43) 1.17%, rgba(135, 135, 136, 0.10) 99.82%)`,backgroundBlendMode:"overlay, normal",minHeight:"8px",boxShadow:`
0 8px 32px ${he.color.replace("0.8","0.3")},
0 8px 32px ${ce.color.replace("0.8","0.3")},
0 4px 15px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.2)
`})},[Ee("span",lnt,Qi(he.count),1)],4)]),Ee("div",unt,[Ee("div",cnt,Qi(he.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),s.value.length>0?(_i(),zi("div",hnt," Total packet types: "+Qi(s.value.length)+" | Total packets: "+Qi(s.value.reduce((he,De)=>he+De.count,0)),1)):is("",!0)]))}}),dnt=ld(fnt,[["__scopeId","data-v-dc58fd68"]]),pnt={class:"glass-card rounded-[10px] p-6"},mnt={class:"relative h-48"},gnt={class:"mt-4 grid grid-cols-2 gap-4"},vnt={class:"text-center"},ynt={class:"text-2xl font-bold text-white"},xnt={class:"text-center"},_nt={class:"text-2xl font-bold text-white"},bnt={class:"mt-3 grid grid-cols-3 gap-3 text-center"},wnt={class:"text-sm font-semibold text-accent-purple"},knt={class:"text-sm font-semibold text-accent-red"},Tnt={class:"text-sm font-semibold text-white"},Ant=Dc({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const s=sw(),E=Ga(null),B=Ga([]),K=Ga(null),pt=Ga(!0),_t=async()=>{try{pt.value=!0;const jt=await Ah.get("/recent_packets",{limit:50});if(!jt.success){B.value=[],pt.value=!1,om(()=>{Ot()});return}const te=jt.data||[],he=Date.now(),De=24,er=12,pr=De*60*60*1e3/er,Mr=[];for(let Tr=0;Tr<er;Tr++){const Vr=he-De*60*60*1e3+Tr*pr,mn=Vr+pr,Dt=te.filter(Bn=>{const ni=Bn.timestamp*1e3;return ni>=Vr&&ni<mn}),cn=Dt.filter(Bn=>!Bn.transmitted).length,Jn=Dt.filter(Bn=>Bn.transmitted).length;Mr.push({time:new Date(Vr+pr/2).toISOString(),rxPackets:cn,txPackets:Jn})}B.value=Mr,pt.value=!1,om(()=>{Ot()})}catch{B.value=[],pt.value=!1,om(()=>{Ot()})}},Ot=()=>{if(!E.value)return;const jt=E.value,te=jt.getContext("2d");if(!te)return;const he=jt.parentElement;if(!he)return;const De=he.getBoundingClientRect(),er=De.width,pr=De.height;jt.width=er*window.devicePixelRatio,jt.height=pr*window.devicePixelRatio,jt.style.width=er+"px",jt.style.height=pr+"px",te.scale(window.devicePixelRatio,window.devicePixelRatio);const Mr=20;if(te.clearRect(0,0,er,pr),pt.value){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("Loading chart data...",er/2,pr/2);return}if(B.value.length===0){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("No data available",er/2,pr/2);return}const Tr=B.value.every(Un=>Un.rxPackets===0&&Un.txPackets===0),Vr=er-Mr*2,mn=pr-Mr*2,Dt=B.value.flatMap(Un=>[Un.rxPackets,Un.txPackets]),cn=Math.min(...Dt),Jn=Math.max(...Dt),Bn=cn,ni=Jn,Wi=Math.max(ni-Bn,1);if(te.strokeStyle="rgba(255, 255, 255, 0.1)",te.lineWidth=1,Bn<=0&&ni>=0){te.strokeStyle="rgba(255, 255, 255, 0.3)",te.lineWidth=2;const Un=pr-Mr-(0-Bn)/Wi*mn;te.beginPath(),te.moveTo(Mr,Un),te.lineTo(er-Mr,Un),te.stroke(),Un>20&&Un<pr-20&&(te.fillStyle="rgba(255, 255, 255, 0.7)",te.font="10px system-ui",te.textAlign="left",te.fillText("0",Mr+2,Un-2)),te.strokeStyle="rgba(255, 255, 255, 0.1)",te.lineWidth=1}for(let Un=0;Un<=5;Un++){const qr=Mr+mn*Un/5;te.beginPath(),te.moveTo(Mr,qr),te.lineTo(er-Mr,qr),te.stroke()}for(let Un=0;Un<=6;Un++){const qr=Mr+Vr*Un/6;te.beginPath(),te.moveTo(qr,Mr),te.lineTo(qr,pr-Mr),te.stroke()}B.value.length>1&&(te.strokeStyle="#EBA0FC",te.lineWidth=2,te.beginPath(),B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.rxPackets-Bn)/Wi*mn;qr===0?te.moveTo(Di,Fi):te.lineTo(Di,Fi)}),te.stroke(),te.fillStyle="#EBA0FC",B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.rxPackets-Bn)/Wi*mn;te.beginPath(),te.arc(Di,Fi,2,0,2*Math.PI),te.fill()})),B.value.length>1&&(te.strokeStyle="#FB787B",te.lineWidth=2,te.beginPath(),B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.txPackets-Bn)/Wi*mn;qr===0?te.moveTo(Di,Fi):te.lineTo(Di,Fi)}),te.stroke(),te.fillStyle="#FB787B",B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.txPackets-Bn)/Wi*mn;te.beginPath(),te.arc(Di,Fi,2,0,2*Math.PI),te.fill()})),te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="12px system-ui",te.textAlign="center",Tr&&(te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="14px system-ui",te.textAlign="center",te.fillText("No packet activity in last 24 hours",er/2,pr-15))};return bp(()=>{_t(),K.value=window.setInterval(_t,3e4),om(()=>{Ot(),setTimeout(()=>{Ot()},100)}),window.addEventListener("resize",Ot)}),gg(()=>{K.value&&clearInterval(K.value),window.removeEventListener("resize",Ot)}),(jt,te)=>(_i(),zi("div",pnt,[te[5]||(te[5]=$f('<h3 class="text-white text-xl font-semibold mb-4" data-v-2ece57e8>Performance Metrics</h3><p class="text-white text-sm uppercase mb-4" data-v-2ece57e8>Packet Activity (Last 24 Hours)</p><div class="flex items-center gap-6 mb-4" data-v-2ece57e8><div class="flex items-center gap-2" data-v-2ece57e8><div class="w-7 h-2 rounded bg-accent-purple" data-v-2ece57e8></div><span class="text-white text-sm" data-v-2ece57e8>Received</span></div><div class="flex items-center gap-2" data-v-2ece57e8><div class="w-7 h-2 rounded bg-accent-red" data-v-2ece57e8></div><span class="text-white text-sm" data-v-2ece57e8>Transmitted</span></div></div>',3)),Ee("div",mnt,[Ee(" Line truncated
`)||Dt},he=(Dt,cn,Jn)=>{try{let Bn=0;const ni=cn.length/2;if(ni>=100){if(cn.length>=Bn+64){const Wi=cn.slice(Bn,Bn+64);Dt.push({name:"Public Key",byteRange:`${(Jn+Bn)/2}-${(Jn+Bn+63)/2}`,hexData:Wi.match(/.{8}/g)?.join(" ")||Wi,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Wi.slice(0,16)}...${Wi.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Bn+=64}if(cn.length>=Bn+8){const Wi=cn.slice(Bn,Bn+8),Un=parseInt(Wi,16),qr=new Date(Un*1e3);Dt.push({name:"Timestamp",byteRange:`${(Jn+Bn)/2}-${(Jn+Bn+7)/2}`,hexData:Wi.match(/.{2}/g)?.join(" ")||Wi,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${Un} (${qr.toLocaleString()})`,binary:Un.toString(2).padStart(32,"0")}]}),Bn+=8}if(cn.length>=Bn+128){const Wi=cn.slice(Bn,Bn+128);Dt.push({name:"Signature",byteRange:`${(Jn+Bn)/2}-${(Jn+Bn+127)/2}`,hexData:Wi.match(/.{8}/g)?.join(" ")||Wi,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Wi.slice(0,16)}...${Wi.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Bn+=128}if(cn.length>Bn){const Wi=cn.slice(Bn);De(Dt,Wi,Jn+Bn)}}else Dt.push({name:"ADVERT AppData (Partial)",byteRange:`${Jn/2}-${Jn/2+ni-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Partial ADVERT data - appears to be just AppData portion (${ni} bytes)`,fields:[{bits:`0-${ni*8-1}`,name:"Partial Data",value:`${ni} bytes - attempting to decode as AppData`,binary:`${ni} bytes (${ni*8} bits)`}]}),De(Dt,cn,Jn)}catch(Bn){Dt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:cn.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Bn instanceof Error?Bn.message:"Unknown error"}`,binary:"Invalid"}]})}},De=(Dt,cn,Jn)=>{try{const Bn=cn.length/2;Dt.push({name:"AppData",byteRange:`${Jn/2}-${Jn/2+Bn-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Node advertisement application data (${Bn} bytes)`,fields:[{bits:`0-${Bn*8-1}`,name:"Application Data",value:`${Bn} bytes (contains flags, location, name, etc.)`,binary:`${Bn} bytes (${Bn*8} bits)`}]});let ni=0;if(cn.length>=2){const Wi=parseInt(cn.slice(ni,ni+2),16),Un=[],qr=!!(Wi&16),Di=!!(Wi&32),Fi=!!(Wi&64),Pi=!!(Wi&128);if(Wi&1&&Un.push("is chat node"),Wi&2&&Un.push("is repeater"),Wi&4&&Un.push("is room server"),Wi&8&&Un.push("is sensor"),qr&&Un.push("has location"),Di&&Un.push("has feature 1"),Fi&&Un.push("has feature 2"),Pi&&Un.push("has name"),Dt.push({name:"AppData Flags",byteRange:`${(Jn+ni)/2}`,hexData:`0x${cn.slice(ni,ni+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:Un.join(", ")||"none",binary:Wi.toString(2).padStart(8,"0")}]}),ni+=2,qr&&cn.length>=ni+16){const bi=cn.slice(ni,ni+8),Yi=[];for(let xl=6;xl>=0;xl-=2)Yi.push(bi.slice(xl,xl+2));const Ca=parseInt(Yi.join(""),16),Ni=Ca>2147483647?Ca-4294967296:Ca,si=Ni/1e6,Ma=cn.slice(ni+8,ni+16),zo=[];for(let xl=6;xl>=0;xl-=2)zo.push(Ma.slice(xl,xl+2));const ho=parseInt(zo.join(""),16),mo=ho>2147483647?ho-4294967296:ho,Ts=mo/1e6;Dt.push({name:"Location Data",byteRange:`${(Jn+ni)/2}-${(Jn+ni+15)/2}`,hexData:`${bi.match(/.{2}/g)?.join(" ")||bi} ${Ma.match(/.{2}/g)?.join(" ")||Ma}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${si.toFixed(6)}° (raw: ${Ni})`,binary:Ni.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Ts.toFixed(6)}° (raw: ${mo})`,binary:mo.toString(2).padStart(32,"0")}]}),ni+=16}if(Di&&cn.length>=ni+4){const bi=cn.slice(ni,ni+4),Yi=parseInt(bi,16);Dt.push({name:"Feature 1",byteRange:`${(Jn+ni)/2}-${(Jn+ni+3)/2}`,hexData:bi.match(/.{2}/g)?.join(" ")||bi,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Yi}`,binary:Yi.toString(2).padStart(16,"0")}]}),ni+=4}if(Fi&&cn.length>=ni+4){const bi=cn.slice(ni,ni+4),Yi=parseInt(bi,16);Dt.push({name:"Feature 2",byteRange:`${(Jn+ni)/2}-${(Jn+ni+3)/2}`,hexData:bi.match(/.{2}/g)?.join(" ")||bi,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Yi}`,binary:Yi.toString(2).padStart(16,"0")}]}),ni+=4}if(Pi&&cn.length>ni){const bi=cn.slice(ni),Yi=bi.match(/.{2}/g)||[],Ca=Yi.map(Ni=>{const si=parseInt(Ni,16);return si>=32&&si<=126?String.fromCharCode(si):"."}).join("").replace(/\.+$/,"");Dt.push({name:"Node Name",byteRange:`${(Jn+ni)/2}-${(Jn+cn.length-1)/2}`,hexData:bi.match(/.{2}/g)?.join(" ")||bi,description:`Node name string (${Yi.length} bytes)`,fields:[{bits:`0-${Yi.length*8-1}`,name:"Node Name",value:`"${Ca}"`,binary:`ASCII text (${Yi.length} bytes)`}]})}}}catch(Bn){Dt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:cn.slice(0,Math.min(32,cn.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Bn instanceof Error?Bn.message:"Unknown error"}`,binary:"Invalid"} Line truncated
`})},[ye("span",Cnt,Fi(ce.count),1)],4)]),ye("div",Lnt,[ye("div",Pnt,Fi(ce.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),s.value.length>0?(ci(),wi("div",Int," Total packet types: "+Fi(s.value.length)+" | Total packets: "+Fi(s.value.reduce((ce,Ie)=>ce+Ie.count,0)),1)):Uo("",!0)]))}}),Ont=Bf(znt,[["__scopeId","data-v-dc58fd68"]]),Dnt={class:"glass-card rounded-[10px] p-6"},Fnt={class:"relative h-48"},Bnt={class:"mt-4 grid grid-cols-2 gap-4"},Rnt={class:"text-center"},Nnt={class:"text-2xl font-bold text-white"},jnt={class:"text-center"},Unt={class:"text-2xl font-bold text-white"},Vnt={class:"mt-3 grid grid-cols-3 gap-3 text-center"},Hnt={class:"text-sm font-semibold text-accent-purple"},Wnt={class:"text-sm font-semibold text-accent-red"},qnt={class:"text-sm font-semibold text-white"},$nt=Ec({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const s=sw(),E=Ha(null),R=Ha([]),Y=Ha(null),dt=Ha(!0),_t=async()=>{try{dt.value=!0;const jt=await ah.get("/recent_packets",{limit:50});if(!jt.success){R.value=[],dt.value=!1,S0(()=>{zt()});return}const te=jt.data||[],ce=Date.now(),Ie=24,Je=12,fr=Ie*60*60*1e3/Je,Ar=[];for(let kr=0;kr<Je;kr++){const Vr=ce-Ie*60*60*1e3+kr*fr,fn=Vr+fr,Dt=te.filter(Dn=>{const ii=Dn.timestamp*1e3;return ii>=Vr&&ii<fn}),cn=Dt.filter(Dn=>!Dn.transmitted).length,ti=Dt.filter(Dn=>Dn.transmitted).length;Ar.push({time:new Date(Vr+fr/2).toISOString(),rxPackets:cn,txPackets:ti})}R.value=Ar,dt.value=!1,S0(()=>{zt()})}catch{R.value=[],dt.value=!1,S0(()=>{zt()})}},zt=()=>{if(!E.value)return;const jt=E.value,te=jt.getContext("2d");if(!te)return;const ce=jt.parentElement;if(!ce)return;const Ie=ce.getBoundingClientRect(),Je=Ie.width,fr=Ie.height;jt.width=Je*window.devicePixelRatio,jt.height=fr*window.devicePixelRatio,jt.style.width=Je+"px",jt.style.height=fr+"px",te.scale(window.devicePixelRatio,window.devicePixelRatio);const Ar=20;if(te.clearRect(0,0,Je,fr),dt.value){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("Loading chart data...",Je/2,fr/2);return}if(R.value.length===0){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("No data available",Je/2,fr/2);return}const kr=R.value.every(Nn=>Nn.rxPackets===0&&Nn.txPackets===0),Vr=Je-Ar*2,fn=fr-Ar*2,Dt=R.value.flatMap(Nn=>[Nn.rxPackets,Nn.txPackets]),cn=Math.min(...Dt),ti=Math.max(...Dt),Dn=cn,ii=ti,Vi=Math.max(ii-Dn,1);if(te.strokeStyle="rgba(255, 255, 255, 0.1)",te.lineWidth=1,Dn<=0&&ii>=0){te.strokeStyle="rgba(255, 255, 255, 0.3)",te.lineWidth=2;const Nn=fr-Ar-(0-Dn)/Vi*fn;te.beginPath(),te.moveTo(Ar,Nn),te.lineTo(Je-Ar,Nn),te.stroke(),Nn>20&&Nn<fr-20&&(te.fillStyle="rgba(255, 255, 255, 0.7)",te.font="10px system-ui",te.textAlign="left",te.fillText("0",Ar+2,Nn-2)),te.strokeStyle="rgba(255, 255, 255, 0.1)",te.lineWidth=1}for(let Nn=0;Nn<=5;Nn++){const Wr=Ar+fn*Nn/5;te.beginPath(),te.moveTo(Ar,Wr),te.lineTo(Je-Ar,Wr),te.stroke()}for(let Nn=0;Nn<=6;Nn++){const Wr=Ar+Vr*Nn/6;te.beginPath(),te.moveTo(Wr,Ar),te.lineTo(Wr,fr-Ar),te.stroke()}R.value.length>1&&(te.strokeStyle="#EBA0FC",te.lineWidth=2,te.beginPath(),R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.rxPackets-Dn)/Vi*fn;Wr===0?te.moveTo(Bi,Ri):te.lineTo(Bi,Ri)}),te.stroke(),te.fillStyle="#EBA0FC",R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.rxPackets-Dn)/Vi*fn;te.beginPath(),te.arc(Bi,Ri,2,0,2*Math.PI),te.fill()})),R.value.length>1&&(te.strokeStyle="#FB787B",te.lineWidth=2,te.beginPath(),R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.txPackets-Dn)/Vi*fn;Wr===0?te.moveTo(Bi,Ri):te.lineTo(Bi,Ri)}),te.stroke(),te.fillStyle="#FB787B",R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.txPackets-Dn)/Vi*fn;te.beginPath(),te.arc(Bi,Ri,2,0,2*Math.PI),te.fill()})),te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="12px system-ui",te.textAlign="center",kr&&(te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="14px system-ui",te.textAlign="center",te.fillText("No packet activity in last 24 hours",Je/2,fr-15))};return op(()=>{_t(),Y.value=window.setInterval(_t,3e4),S0(()=>{zt(),setTimeout(()=>{zt()},100)}),window.addEventListener("resize",zt)}),zm(()=>{Y.value&&clearInterval(Y.value),window.removeEventListener("resize",zt)}),(jt,te)=>(ci(),wi("div",Dnt,[te[5]||(te[5]=Ff('<h3 class="text-white text-xl font-semibold mb-4" data-v-2ece57e8>Performance Metrics</h3><p class="text-white text-sm uppercase mb-4" data-v-2ece57e8>Packet Activity (Last 24 Hours)</p><div class="flex items-center gap-6 mb-4" data-v-2ece57e8><div class="flex items-center gap-2" data-v-2ece57e8><div class="w-7 h-2 rounded bg-accent-purple" data-v-2ece57e8></div><span class="text-white text-sm" data-v-2ece57e8>Received</span></div><div class="flex items-center gap-2" data-v-2ece57e8><div class="w-7 h-2 rounded bg-accent-red" data-v-2ece57e8></div><span class="text-white text-sm" data-v-2ece57e8>Transmitted</span></div></div>',3)),ye("div",Fnt,[ye(" Line truncated
`)||Dt},ce=(Dt,cn,ti)=>{try{let Dn=0;const ii=cn.length/2;if(ii>=100){if(cn.length>=Dn+64){const Vi=cn.slice(Dn,Dn+64);Dt.push({name:"Public Key",byteRange:`${(ti+Dn)/2}-${(ti+Dn+63)/2}`,hexData:Vi.match(/.{8}/g)?.join(" ")||Vi,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Vi.slice(0,16)}...${Vi.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Dn+=64}if(cn.length>=Dn+8){const Vi=cn.slice(Dn,Dn+8),Nn=parseInt(Vi,16),Wr=new Date(Nn*1e3);Dt.push({name:"Timestamp",byteRange:`${(ti+Dn)/2}-${(ti+Dn+7)/2}`,hexData:Vi.match(/.{2}/g)?.join(" ")||Vi,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${Nn} (${Wr.toLocaleString()})`,binary:Nn.toString(2).padStart(32,"0")}]}),Dn+=8}if(cn.length>=Dn+128){const Vi=cn.slice(Dn,Dn+128);Dt.push({name:"Signature",byteRange:`${(ti+Dn)/2}-${(ti+Dn+127)/2}`,hexData:Vi.match(/.{8}/g)?.join(" ")||Vi,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Vi.slice(0,16)}...${Vi.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Dn+=128}if(cn.length>Dn){const Vi=cn.slice(Dn);Ie(Dt,Vi,ti+Dn)}}else Dt.push({name:"ADVERT AppData (Partial)",byteRange:`${ti/2}-${ti/2+ii-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Partial ADVERT data - appears to be just AppData portion (${ii} bytes)`,fields:[{bits:`0-${ii*8-1}`,name:"Partial Data",value:`${ii} bytes - attempting to decode as AppData`,binary:`${ii} bytes (${ii*8} bits)`}]}),Ie(Dt,cn,ti)}catch(Dn){Dt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:cn.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Dn instanceof Error?Dn.message:"Unknown error"}`,binary:"Invalid"}]})}},Ie=(Dt,cn,ti)=>{try{const Dn=cn.length/2;Dt.push({name:"AppData",byteRange:`${ti/2}-${ti/2+Dn-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Node advertisement application data (${Dn} bytes)`,fields:[{bits:`0-${Dn*8-1}`,name:"Application Data",value:`${Dn} bytes (contains flags, location, name, etc.)`,binary:`${Dn} bytes (${Dn*8} bits)`}]});let ii=0;if(cn.length>=2){const Vi=parseInt(cn.slice(ii,ii+2),16),Nn=[],Wr=!!(Vi&16),Bi=!!(Vi&32),Ri=!!(Vi&64),Li=!!(Vi&128);if(Vi&1&&Nn.push("is chat node"),Vi&2&&Nn.push("is repeater"),Vi&4&&Nn.push("is room server"),Vi&8&&Nn.push("is sensor"),Wr&&Nn.push("has location"),Bi&&Nn.push("has feature 1"),Ri&&Nn.push("has feature 2"),Li&&Nn.push("has name"),Dt.push({name:"AppData Flags",byteRange:`${(ti+ii)/2}`,hexData:`0x${cn.slice(ii,ii+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:Nn.join(", ")||"none",binary:Vi.toString(2).padStart(8,"0")}]}),ii+=2,Wr&&cn.length>=ii+16){const $n=cn.slice(ii,ii+8),Hn=[];for(let xl=6;xl>=0;xl-=2)Hn.push($n.slice(xl,xl+2));const sa=parseInt(Hn.join(""),16),Ti=sa>2147483647?sa-4294967296:sa,Qn=Ti/1e6,la=cn.slice(ii+8,ii+16),Eo=[];for(let xl=6;xl>=0;xl-=2)Eo.push(la.slice(xl,xl+2));const no=parseInt(Eo.join(""),16),mo=no>2147483647?no-4294967296:no,Ts=mo/1e6;Dt.push({name:"Location Data",byteRange:`${(ti+ii)/2}-${(ti+ii+15)/2}`,hexData:`${$n.match(/.{2}/g)?.join(" ")||$n} ${la.match(/.{2}/g)?.join(" ")||la}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${Qn.toFixed(6)}° (raw: ${Ti})`,binary:Ti.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Ts.toFixed(6)}° (raw: ${mo})`,binary:mo.toString(2).padStart(32,"0")}]}),ii+=16}if(Bi&&cn.length>=ii+4){const $n=cn.slice(ii,ii+4),Hn=parseInt($n,16);Dt.push({name:"Feature 1",byteRange:`${(ti+ii)/2}-${(ti+ii+3)/2}`,hexData:$n.match(/.{2}/g)?.join(" ")||$n,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Hn}`,binary:Hn.toString(2).padStart(16,"0")}]}),ii+=4}if(Ri&&cn.length>=ii+4){const $n=cn.slice(ii,ii+4),Hn=parseInt($n,16);Dt.push({name:"Feature 2",byteRange:`${(ti+ii)/2}-${(ti+ii+3)/2}`,hexData:$n.match(/.{2}/g)?.join(" ")||$n,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Hn}`,binary:Hn.toString(2).padStart(16,"0")}]}),ii+=4}if(Li&&cn.length>ii){const $n=cn.slice(ii),Hn=$n.match(/.{2}/g)||[],sa=Hn.map(Ti=>{const Qn=parseInt(Ti,16);return Qn>=32&&Qn<=126?String.fromCharCode(Qn):"."}).join("").replace(/\.+$/,"");Dt.push({name:"Node Name",byteRange:`${(ti+ii)/2}-${(ti+cn.length-1)/2}`,hexData:$n.match(/.{2}/g)?.join(" ")||$n,description:`Node name string (${Hn.length} bytes)`,fields:[{bits:`0-${Hn.length*8-1}`,name:"Node Name",value:`"${sa}"`,binary:`ASCII text (${Hn.length} bytes)`}]})}}}catch(Dn){Dt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:cn.slice(0,Math.min(32,cn.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Dn instanceof Error?Dn.message:"Unknown error"}`,binary:"Invalid"} Line truncated
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var wot=g2.exports,QL;function kot(){return QL||(QL=1,function(d,s){(function(E,B){B(s)})(wot,function(E){var B="1.9.4";function K(ct){var Bt,me,Qe,zr;for(me=1,Qe=arguments.length;me<Qe;me++){zr=arguments[me];for(Bt in zr)ct[Bt]=zr[Bt]}return ct}var pt=Object.create||function(){function ct(){}return function(Bt){return ct.prototype=Bt,new ct}}();function _t(ct,Bt){var me=Array.prototype.slice;if(ct.bind)return ct.bind.apply(ct,me.call(arguments,1));var Qe=me.call(arguments,2);return function(){return ct.apply(Bt,Qe.length?Qe.concat(me.call(arguments)):arguments)}}var Ot=0;function jt(ct){return"_leaflet_id"in ct||(ct._leaflet_id=++Ot),ct._leaflet_id}function te(ct,Bt,me){var Qe,zr,An,qi;return qi=function(){Qe=!1,zr&&(An.apply(me,zr),zr=!1)},An=function(){Qe?zr=arguments:(ct.apply(me,arguments),setTimeout(qi,Bt),Qe=!0)},An}function he(ct,Bt,me){var Qe=Bt[1],zr=Bt[0],An=Qe-zr;return ct===Qe&&me?ct:((ct-zr)%An+An)%An+zr}function De(){return!1}function er(ct,Bt){if(Bt===!1)return ct;var me=Math.pow(10,Bt===void 0?6:Bt);return Math.round(ct*me)/me}function pr(ct){return ct.trim?ct.trim():ct.replace(/^\s+|\s+$/g,"")}function Mr(ct){return pr(ct).split(/\s+/)}function Tr(ct,Bt){Object.prototype.hasOwnProperty.call(ct,"options")||(ct.options=ct.options?pt(ct.options):{});for(var me in Bt)ct.options[me]=Bt[me];return ct.options}function Vr(ct,Bt,me){var Qe=[];for(var zr in ct)Qe.push(encodeURIComponent(me?zr.toUpperCase():zr)+"="+encodeURIComponent(ct[zr]));return(!Bt||Bt.indexOf("?")===-1?"?":"&")+Qe.join("&")}var mn=/\{ *([\w_ -]+) *\}/g;function Dt(ct,Bt){return ct.replace(mn,function(me,Qe){var zr=Bt[Qe];if(zr===void 0)throw new Error("No value provided for variable "+me);return typeof zr=="function"&&(zr=zr(Bt)),zr})}var cn=Array.isArray||function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};function Jn(ct,Bt){for(var me=0;me<ct.length;me++)if(ct[me]===Bt)return me;return-1}var Bn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ni(ct){return window["webkit"+ct]||window["moz"+ct]||window["ms"+ct]}var Wi=0;function Un(ct){var Bt=+new Date,me=Math.max(0,16-(Bt-Wi));return Wi=Bt+me,window.setTimeout(ct,me)}var qr=window.requestAnimationFrame||ni("RequestAnimationFrame")||Un,Di=window.cancelAnimationFrame||ni("CancelAnimationFrame")||ni("CancelRequestAnimationFrame")||function(ct){window.clearTimeout(ct)};function Fi(ct,Bt,me){if(me&&qr===Un)ct.call(Bt);else return qr.call(window,_t(ct,Bt))}function Pi(ct){ct&&Di.call(window,ct)}var bi={__proto__:null,extend:K,create:pt,bind:_t,get lastId(){return Ot},stamp:jt,throttle:te,wrapNum:he,falseFn:De,formatNum:er,trim:pr,splitWords:Mr,setOptions:Tr,getParamString:Vr,template:Dt,isArray:cn,indexOf:Jn,emptyImageUrl:Bn,requestFn:qr,cancelFn:Di,requestAnimFrame:Fi,cancelAnimFrame:Pi};function Yi(){}Yi.extend=function(ct){var Bt=function(){Tr(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},me=Bt.__super__=this.prototype,Qe=pt(me);Qe.constructor=Bt,Bt.prototype=Qe;for(var zr in this)Object.prototype.hasOwnProperty.call(this,zr)&&zr!=="prototype"&&zr!=="__super__"&&(Bt[zr]=this[zr]);return ct.statics&&K(Bt,ct.statics),ct.includes&&(Ca(ct.includes),K.apply(null,[Qe].concat(ct.includes))),K(Qe,ct),delete Qe.statics,delete Qe.includes,Qe.options&&(Qe.options=me.options?pt(me.options):{},K(Qe.options,ct.options)),Qe._initHooks=[],Qe.callInitHooks=function(){if(!this._initHooksCalled){me.callInitHooks&&me.callInitHooks.call(this),this._initHooksCalled=!0;for(var An=0,qi=Qe._initHooks.length;An<qi;An++)Qe._initHooks[An].call(this)}},Bt},Yi.include=function(ct){var Bt=this.prototype.options;return K(this.prototype,ct),ct.options&&(this.prototype.options=Bt,this.mergeOptions(ct.options)),this},Yi.mergeOptions=function(ct){return K(this.prototype.options,ct),this},Yi.addInitHook=function(ct){var Bt=Array.prototype.slice.call(arguments,1),me=typeof ct=="function"?ct:function(){this[ct].apply(this,Bt)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(me),this};function Ca(ct){if(!(typeof L>"u"||!L||!L.Mixin)){ct=cn(ct)?ct:[ct];for(var Bt=0;Bt<ct.length;Bt++)ct[Bt]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ni={on:function(ct,Bt,me){if(typeof ct=="object")for(var Qe in ct)this._on(Qe,ct[Qe],Bt);else{ct=Mr(ct);for(var zr=0,An=ct.length;zr<An;zr++)this._on(ct[zr],Bt,me)}return this},off:function(ct,Bt,me){if(!arguments.length)delete this._events;else if(typeof ct=="object")for(var Qe in ct)this._off(Qe,ct[Qe],Bt);else{ct=Mr(ct);for(var zr=arguments.length===1,An=0,qi=ct.length;An<qi;An++)zr?this._off(ct[An]):this._off(ct[An],Bt,me)}return this},_on:function(ct,Bt,me,Qe){if(typeof Bt!="function"){console.warn("wrong listener type: "+typeof Bt);return}if(this._listens(ct,Bt,me)===!1){me===this&&(me=void 0);var zr={fn:Bt,ctx:me};Qe&Line truncated
*/var Hot=v2.exports,eP;function Wot(){return eP||(eP=1,function(d,s){(function(E,R){R(s)})(Hot,function(E){var R="1.9.4";function Y(ct){var Rt,me,tr,zr;for(me=1,tr=arguments.length;me<tr;me++){zr=arguments[me];for(Rt in zr)ct[Rt]=zr[Rt]}return ct}var dt=Object.create||function(){function ct(){}return function(Rt){return ct.prototype=Rt,new ct}}();function _t(ct,Rt){var me=Array.prototype.slice;if(ct.bind)return ct.bind.apply(ct,me.call(arguments,1));var tr=me.call(arguments,2);return function(){return ct.apply(Rt,tr.length?tr.concat(me.call(arguments)):arguments)}}var zt=0;function jt(ct){return"_leaflet_id"in ct||(ct._leaflet_id=++zt),ct._leaflet_id}function te(ct,Rt,me){var tr,zr,An,Zi;return Zi=function(){tr=!1,zr&&(An.apply(me,zr),zr=!1)},An=function(){tr?zr=arguments:(ct.apply(me,arguments),setTimeout(Zi,Rt),tr=!0)},An}function ce(ct,Rt,me){var tr=Rt[1],zr=Rt[0],An=tr-zr;return ct===tr&&me?ct:((ct-zr)%An+An)%An+zr}function Ie(){return!1}function Je(ct,Rt){if(Rt===!1)return ct;var me=Math.pow(10,Rt===void 0?6:Rt);return Math.round(ct*me)/me}function fr(ct){return ct.trim?ct.trim():ct.replace(/^\s+|\s+$/g,"")}function Ar(ct){return fr(ct).split(/\s+/)}function kr(ct,Rt){Object.prototype.hasOwnProperty.call(ct,"options")||(ct.options=ct.options?dt(ct.options):{});for(var me in Rt)ct.options[me]=Rt[me];return ct.options}function Vr(ct,Rt,me){var tr=[];for(var zr in ct)tr.push(encodeURIComponent(me?zr.toUpperCase():zr)+"="+encodeURIComponent(ct[zr]));return(!Rt||Rt.indexOf("?")===-1?"?":"&")+tr.join("&")}var fn=/\{ *([\w_ -]+) *\}/g;function Dt(ct,Rt){return ct.replace(fn,function(me,tr){var zr=Rt[tr];if(zr===void 0)throw new Error("No value provided for variable "+me);return typeof zr=="function"&&(zr=zr(Rt)),zr})}var cn=Array.isArray||function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};function ti(ct,Rt){for(var me=0;me<ct.length;me++)if(ct[me]===Rt)return me;return-1}var Dn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ii(ct){return window["webkit"+ct]||window["moz"+ct]||window["ms"+ct]}var Vi=0;function Nn(ct){var Rt=+new Date,me=Math.max(0,16-(Rt-Vi));return Vi=Rt+me,window.setTimeout(ct,me)}var Wr=window.requestAnimationFrame||ii("RequestAnimationFrame")||Nn,Bi=window.cancelAnimationFrame||ii("CancelAnimationFrame")||ii("CancelRequestAnimationFrame")||function(ct){window.clearTimeout(ct)};function Ri(ct,Rt,me){if(me&&Wr===Nn)ct.call(Rt);else return Wr.call(window,_t(ct,Rt))}function Li(ct){ct&&Bi.call(window,ct)}var $n={__proto__:null,extend:Y,create:dt,bind:_t,get lastId(){return zt},stamp:jt,throttle:te,wrapNum:ce,falseFn:Ie,formatNum:Je,trim:fr,splitWords:Ar,setOptions:kr,getParamString:Vr,template:Dt,isArray:cn,indexOf:ti,emptyImageUrl:Dn,requestFn:Wr,cancelFn:Bi,requestAnimFrame:Ri,cancelAnimFrame:Li};function Hn(){}Hn.extend=function(ct){var Rt=function(){kr(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},me=Rt.__super__=this.prototype,tr=dt(me);tr.constructor=Rt,Rt.prototype=tr;for(var zr in this)Object.prototype.hasOwnProperty.call(this,zr)&&zr!=="prototype"&&zr!=="__super__"&&(Rt[zr]=this[zr]);return ct.statics&&Y(Rt,ct.statics),ct.includes&&(sa(ct.includes),Y.apply(null,[tr].concat(ct.includes))),Y(tr,ct),delete tr.statics,delete tr.includes,tr.options&&(tr.options=me.options?dt(me.options):{},Y(tr.options,ct.options)),tr._initHooks=[],tr.callInitHooks=function(){if(!this._initHooksCalled){me.callInitHooks&&me.callInitHooks.call(this),this._initHooksCalled=!0;for(var An=0,Zi=tr._initHooks.length;An<Zi;An++)tr._initHooks[An].call(this)}},Rt},Hn.include=function(ct){var Rt=this.prototype.options;return Y(this.prototype,ct),ct.options&&(this.prototype.options=Rt,this.mergeOptions(ct.options)),this},Hn.mergeOptions=function(ct){return Y(this.prototype.options,ct),this},Hn.addInitHook=function(ct){var Rt=Array.prototype.slice.call(arguments,1),me=typeof ct=="function"?ct:function(){this[ct].apply(this,Rt)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(me),this};function sa(ct){if(!(typeof L>"u"||!L||!L.Mixin)){ct=cn(ct)?ct:[ct];for(var Rt=0;Rt<ct.length;Rt++)ct[Rt]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ti={on:function(ct,Rt,me){if(typeof ct=="object")for(var tr in ct)this._on(tr,ct[tr],Rt);else{ct=Ar(ct);for(var zr=0,An=ct.length;zr<An;zr++)this._on(ct[zr],Rt,me)}return this},off:function(ct,Rt,me){if(!arguments.length)delete this._events;else if(typeof ct=="object")for(var tr in ct)this._off(tr,ct[tr],Rt);else{ct=Ar(ct);for(var zr=arguments.length===1,An=0,Zi=ct.length;An<Zi;An++)zr?this._off(ct[An]):this._off(ct[An],Rt,me)}return this},_on:function(ct,Rt,me,tr){if(typeof Rt!="function"){console.warn("wrong listener type: "+typeof Rt);return}if(this._listens(ct,Rt,me)===!1){me===this&&(me=void 0);var zr={fn:Rt,ctx:me};tr&Line truncated
<div style="
width: ${Ma}px;
height: ${Ma}px;
width: ${la}px;
height: ${la}px;
background: rgba(170, 232, 232, 0.2);
border: 2px solid #AAE8E8;
border-radius: 50%;
@@ -58,26 +58,26 @@
backdrop-filter: blur(10px);
box-shadow: 0 4px 12px rgba(170, 232, 232, 0.3);
color: #ffffff;
font-size: ${Ma<35?"11px":"13px"};
font-size: ${la<35?"11px":"13px"};
font-weight: bold;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
">
${si}
${Qn}
</div>
`,iconSize:[Ma,Ma],iconAnchor:[Ma/2,Ma/2]})},Pi=Di("#ef4444",!0);Mm.marker([Un,qr],{icon:Pi}).addTo(K).bindPopup(`
`,iconSize:[la,la],iconAnchor:[la/2,la/2]})},Li=Bi("#ef4444",!0);Mm.marker([Nn,Wr],{icon:Li}).addTo(Y).bindPopup(`
<div class="p-2">
<strong style="color: #ef4444;">Base Station</strong><br>
<span class="text-sm" style="color: #9CA3AF;">Base Station</span><br>
<span class="text-xs" style="color: #6B7280;">${Un.toFixed(6)}, ${qr.toFixed(6)}</span>
<span class="text-xs" style="color: #6B7280;">${Nn.toFixed(6)}, ${Wr.toFixed(6)}</span>
</div>
`);const bi={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Yi=(si,Ma,zo,ho,mo=0)=>{if(!K)return;const Ts=si.jittered_latitude||si.latitude,xl=si.jittered_longitude||si.longitude;if(Ts===null||xl===null)return;const ko=si.route_type||0;let ro=ho,Ia=3,da=.7,no;ko===2?(ro="#A5E5B6",Ia=4,da=.9):ko===1?(ro="#FFC246",no="10, 5",da=.8):ko===3?(ro="#059669",Ia=5,da=.95):ko===0?(ro="#ea580c",no="12, 6",da=.8):(ro="#9CA3AF",no="2, 5",da=.6);const po=[Ma,zo],us=[Ts,xl],Ho=Mm.polyline([po,us],{color:ro,weight:Ia,opacity:0,dashArray:no,className:"connection-line"}).addTo(K),vi=Mm.polyline([po,po],{color:ro,weight:Ia,opacity:0,dashArray:no,className:"connection-line animated-line"}).addTo(K);setTimeout(()=>{let wi=0;const hi=30;vi.setStyle({opacity:da+.2});const go=()=>{wi++;const Mo=wi/hi,To=po[0]+(us[0]-po[0])*Mo,ms=po[1]+(us[1]-po[1])*Mo;vi.setLatLngs([po,[To,ms]]),wi<hi?setTimeout(go,30):setTimeout(()=>{K&&vi&&vi.remove(),Ho.setStyle({opacity:da}),Ho.on("mouseover",()=>{Ho.setStyle({weight:Ia+2,opacity:Math.min(da+.3,1)})}),Ho.on("mouseout",()=>{Ho.setStyle({weight:Ia,opacity:da})});const bs=mn(Ma,zo,Ts,xl);Ho.bindPopup(`
`);const $n={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Hn=(Qn,la,Eo,no,mo=0)=>{if(!Y)return;const Ts=Qn.jittered_latitude||Qn.latitude,xl=Qn.jittered_longitude||Qn.longitude;if(Ts===null||xl===null)return;const ko=Qn.route_type||0;let ro=no,Ia=3,ma=.7,io;ko===2?(ro="#A5E5B6",Ia=4,ma=.9):ko===1?(ro="#FFC246",io="10, 5",ma=.8):ko===3?(ro="#059669",Ia=5,ma=.95):ko===0?(ro="#ea580c",io="12, 6",ma=.8):(ro="#9CA3AF",io="2, 5",ma=.6);const po=[la,Eo],us=[Ts,xl],qo=Mm.polyline([po,us],{color:ro,weight:Ia,opacity:0,dashArray:io,className:"connection-line"}).addTo(Y),_i=Mm.polyline([po,po],{color:ro,weight:Ia,opacity:0,dashArray:io,className:"connection-line animated-line"}).addTo(Y);setTimeout(()=>{let Ai=0;const pi=30;_i.setStyle({opacity:ma+.2});const go=()=>{Ai++;const Mo=Ai/pi,To=po[0]+(us[0]-po[0])*Mo,ms=po[1]+(us[1]-po[1])*Mo;_i.setLatLngs([po,[To,ms]]),Ai<pi?setTimeout(go,30):setTimeout(()=>{Y&&_i&&_i.remove(),qo.setStyle({opacity:ma}),qo.on("mouseover",()=>{qo.setStyle({weight:Ia+2,opacity:Math.min(ma+.3,1)})}),qo.on("mouseout",()=>{qo.setStyle({weight:Ia,opacity:ma})});const bs=fn(la,Eo,Ts,xl);qo.bindPopup(`
<div class="p-2">
<strong style="color: ${ho}">Connection to ${si.node_name||"Unknown Node"}</strong><br>
<strong style="color: ${no}">Connection to ${Qn.node_name||"Unknown Node"}</strong><br>
<span class="text-sm" style="color: #E5E7EB;">Distance: ${bs.toFixed(2)} km</span><br>
<span class="text-sm" style="color: #E5E7EB;">Route: ${Vr(si.route_type)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Mr(si.rssi)} / ${Tr(si.snr)}</span>
<span class="text-sm" style="color: #E5E7EB;">Route: ${Vr(Qn.route_type)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Ar(Qn.rssi)} / ${kr(Qn.snr)}</span>
</div>
`),jt.value.push(Ho)},200)};go()},mo)},Ca=()=>{if(!K||!_t)return;const si=K.getBounds(),Ma=Math.floor(K.getZoom());Ot.value.forEach(ho=>{K&&ho.remove()}),Ot.value.clear(),jt.value.forEach(ho=>{K&&ho.remove()}),jt.value.length=0,_t.getClusters([si.getWest(),si.getSouth(),si.getEast(),si.getNorth()],Ma).forEach(ho=>{const[mo,Ts]=ho.geometry.coordinates,xl=ho.properties;if(xl.cluster){const ko=Mm.marker([Ts,mo],{icon:Fi(xl.point_count||0)}).addTo(K);ko.on("click",()=>{if(K&&_t){const us=_t.getClusterExpansionZoom(xl.cluster_id);K.setView([Ts,mo],us)}});const Ia=_t.getLeaves(xl.cluster_id,1/0).map(us=>`<div style="margin: 2px 0; color: ${bi[us.properties.advert.contact_type]||bi.Unknown};">
`),jt.value.push(qo)},200)};go()},mo)},sa=()=>{if(!Y||!_t)return;const Qn=Y.getBounds(),la=Math.floor(Y.getZoom());zt.value.forEach(no=>{Y&&no.remove()}),zt.value.clear(),jt.value.forEach(no=>{Y&&no.remove()}),jt.value.length=0,_t.getClusters([Qn.getWest(),Qn.getSouth(),Qn.getEast(),Qn.getNorth()],la).forEach(no=>{const[mo,Ts]=no.geometry.coordinates,xl=no.properties;if(xl.cluster){const ko=Mm.marker([Ts,mo],{icon:Ri(xl.point_count||0)}).addTo(Y);ko.on("click",()=>{if(Y&&_t){const us=_t.getClusterExpansionZoom(xl.cluster_id);Y.setView([Ts,mo],us)}});const Ia=_t.getLeaves(xl.cluster_id,1/0).map(us=>`<div style="margin: 2px 0; color: ${$n[us.properties.advert.contact_type]||$n.Unknown};">
• ${us.properties.advert.node_name||"Unknown Node"} (${us.properties.advert.contact_type})
</div>`).join("");ko.bindPopup(`
<div class="p-2">
@@ -89,110 +89,110 @@
Click to zoom in and separate nodes
</div>
</div>
`),Ot.value.set(`cluster-${xl.cluster_id}`,ko);const da=mn(Un,qr,Ts,mo),no=Math.min(Math.floor(da*5),200),po={node_name:`Cluster of ${xl.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:Ts,jittered_longitude:mo,latitude:Ts,longitude:mo};Yi(po,Un,qr,"#AAE8E8",no)}else{const ko=xl.advert,ro=bi[ko.contact_type]||bi.Unknown,Ia=Di(ro),da=Ts,no=mo,po=mn(Un,qr,da,no),us=Mm.marker([da,no],{icon:Ia}).addTo(K).bindPopup(`
`),zt.value.set(`cluster-${xl.cluster_id}`,ko);const ma=fn(Nn,Wr,Ts,mo),io=Math.min(Math.floor(ma*5),200),po={node_name:`Cluster of ${xl.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:Ts,jittered_longitude:mo,latitude:Ts,longitude:mo};Hn(po,Nn,Wr,"#AAE8E8",io)}else{const ko=xl.advert,ro=$n[ko.contact_type]||$n.Unknown,Ia=Bi(ro),ma=Ts,io=mo,po=fn(Nn,Wr,ma,io),us=Mm.marker([ma,io],{icon:Ia}).addTo(Y).bindPopup(`
<div class="p-2">
<strong style="color: ${ro}">${ko.node_name||"Unknown Node"}</strong><br>
<span class="text-sm" style="color: #E5E7EB;">Type: ${ko.contact_type}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Distance: ${po.toFixed(2)} km</span><br>
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Mr(ko.rssi)} / ${Tr(ko.snr)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Ar(ko.rssi)} / ${kr(ko.snr)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Route: ${Vr(ko.route_type)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${pr(ko.last_seen)}</span>
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${fr(ko.last_seen)}</span>
${ko.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
</div>
`);pt.value.set(ko.pubkey,us),Ot.value.set(`node-${ko.pubkey}`,us);const Ho=Math.min(Math.floor(po*5),200),vi={...ko,jittered_latitude:da,jittered_longitude:no};Yi(vi,Un,qr,ro,Ho)}})},Ni=(si,Ma)=>{let zo=0;cn(E.adverts).forEach(mo=>{const Ts=mo.properties.advert;if(Ts.latitude!==null&&Ts.longitude!==null){const xl=bi[Ts.contact_type]||bi.Unknown,ko=Di(xl),ro=Ts.jittered_latitude||Ts.latitude,Ia=Ts.jittered_longitude||Ts.longitude,da=Mm.marker([ro,Ia],{icon:ko}).addTo(K).bindPopup(`
`);dt.value.set(ko.pubkey,us),zt.value.set(`node-${ko.pubkey}`,us);const qo=Math.min(Math.floor(po*5),200),_i={...ko,jittered_latitude:ma,jittered_longitude:io};Hn(_i,Nn,Wr,ro,qo)}})},Ti=(Qn,la)=>{let Eo=0;cn(E.adverts).forEach(mo=>{const Ts=mo.properties.advert;if(Ts.latitude!==null&&Ts.longitude!==null){const xl=$n[Ts.contact_type]||$n.Unknown,ko=Bi(xl),ro=Ts.jittered_latitude||Ts.latitude,Ia=Ts.jittered_longitude||Ts.longitude,ma=Mm.marker([ro,Ia],{icon:ko}).addTo(Y).bindPopup(`
<div class="p-2">
<strong style="color: ${xl}">${Ts.node_name||"Unknown Node"}</strong><br>
<span class="text-sm" style="color: #E5E7EB;">Type: ${Ts.contact_type}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Distance: ${mn(si,Ma,ro,Ia).toFixed(2)} km</span><br>
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Mr(Ts.rssi)} / ${Tr(Ts.snr)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Distance: ${fn(Qn,la,ro,Ia).toFixed(2)} km</span><br>
<span class="text-sm" style="color: #E5E7EB;">Signal: ${Ar(Ts.rssi)} / ${kr(Ts.snr)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Route: ${Vr(Ts.route_type)}</span><br>
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${pr(Ts.last_seen)}</span>
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${fr(Ts.last_seen)}</span>
${Ts.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
</div>
`);pt.value.set(Ts.pubkey,da);const no=da.getElement();no&&(no.style.opacity="0",no.style.transition="opacity 0.5s ease-out"),Yi(Ts,si,Ma,xl,zo),setTimeout(()=>{no&&(no.style.opacity="1")},zo+1e3),zo+=100}})};if(te.value&&E.adverts.length>0)try{const si=cn(E.adverts);Jn(si);const Ma=Math.min(14,K.getZoom());K.setZoom(Ma),setTimeout(()=>{try{Ca()}catch(zo){console.warn("Error updating clusters:",zo),Ni(Un,qr)}},100),K.on("moveend",()=>{try{Ca()}catch(zo){console.warn("Error updating clusters on move:",zo)}}),K.on("zoomend",()=>{try{Ca()}catch(zo){console.warn("Error updating clusters on zoom:",zo)}})}catch(si){console.warn("Error initializing clustering:",si),Ni(Un,qr)}else Ni(Un,qr);setTimeout(()=>{K&&K.invalidateSize()},1e3)}catch(Di){console.error("Error initializing map:",Di)}};return s({highlightNode:Un=>{const qr=pt.value.get(Un);if(qr){const Di=qr.getElement();if(Di){const Fi=Di.querySelector("div");Fi&&Fi.classList.add("marker-highlight")}}},unhighlightNode:Un=>{const qr=pt.value.get(Un);if(qr){const Di=qr.getElement();if(Di){const Fi=Di.querySelector("div");Fi&&Fi.classList.remove("marker-highlight")}}},initializeOpenStreetMap:Bn}),Em(()=>E.adverts,()=>{K&&er.value&&setTimeout(()=>{Bn()},100)},{immediate:!1}),bp(()=>{er.value&&E.adverts.length>0&&setTimeout(()=>{Bn()},300)}),Iy(()=>{Dt()}),(Un,qr)=>(_i(),zi("div",Cot,[er.value?(_i(),zi("div",{key:1,ref_key:"mapContainer",ref:B,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(_i(),zi("div",Lot,qr[0]||(qr[0]=[$f('<div class="text-center text-white" data-v-ab4f1a7c><svg class="w-8 h-8 mx-auto mb-2 text-white/60" fill="currentColor" viewBox="0 0 20 20" data-v-ab4f1a7c><path d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" data-v-ab4f1a7c></path></svg><p class="text-sm text-white/90" data-v-ab4f1a7c>No valid coordinates available</p><p class="text-xs text-white/60" data-v-ab4f1a7c>Configure base station location to view map</p></div>',1)]))),er.value&&Un.adverts.length>0?(_i(),zi("div",Pot,[qr[1]||(qr[1]=$f('<div class="legend-title" data-v-ab4f1a7c>Network Map</div><div class="legend-section" data-v-ab4f1a7c><div class="legend-subtitle" data-v-ab4f1a7c>Node Types</div><div class="legend-items" data-v-ab4f1a7c><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#ef4444;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Base Station</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#60A5FA;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Chat Node</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#A5E5B6;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Repeater</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#EBA0FC;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Room Server</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#FFC246;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Hybrid Node</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#9CA3AF;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Unknown</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon cluster-icon" style="background:rgba(170, 232, 232, 0.3);border:2px solid #AAE8E8;font-size:8px;display:flex;align-items:center;justify-content:center;color:white;" data-v-ab4f1a7c>2+</div><span data-v-ab4f1a7c>Cluster</span></div></div></div><div class="legend-section" data-v-ab4f1a7c><div class="legend-subtitle" data-v-ab4f1a7c>Route Types</div><div class="legend-items" data-v-ab4f1a7c><div class="legend-item" data-v-ab4f1a7c><div class="legend-line" style="background:#A5E5B6;height:3px;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Direct</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-line" style="background:#059669;height:4px;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Transport Direct</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-line legend-line-dashed" style="background:#FFC246;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Flood</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-line legend-line-dashed" style="background:#ea580c;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Transport Flood</span></div></div></div>',3)),Ee("div",Iot,Qi(Un.adverts.length)+" node"+Qi(Un.adverts.length!==1?"s":"")+" visible ",1)])):is("",!0),er.value?(_i(),zi("div",zot," © OpenStreetMap contributors © CARTO ")):is("",!0)]))}}),Dot=ld(Oot,[["__scopeId","data-v-ab4f1a7c"]]),Fot={class:"relative","data-menu-container":""},Rot=Dc({__name:"NeighborMenu",props:{neighbor:{},canPing:{type:Boolean}},emits:["ping","delete"],setup(d,{emit:s}){const E=window.__ Line truncated
`);dt.value.set(Ts.pubkey,ma);const io=ma.getElement();io&&(io.style.opacity="0",io.style.transition="opacity 0.5s ease-out"),Hn(Ts,Qn,la,xl,Eo),setTimeout(()=>{io&&(io.style.opacity="1")},Eo+1e3),Eo+=100}})};if(te.value&&E.adverts.length>0)try{const Qn=cn(E.adverts);ti(Qn);const la=Math.min(14,Y.getZoom());Y.setZoom(la),setTimeout(()=>{try{sa()}catch(Eo){console.warn("Error updating clusters:",Eo),Ti(Nn,Wr)}},100),Y.on("moveend",()=>{try{sa()}catch(Eo){console.warn("Error updating clusters on move:",Eo)}}),Y.on("zoomend",()=>{try{sa()}catch(Eo){console.warn("Error updating clusters on zoom:",Eo)}})}catch(Qn){console.warn("Error initializing clustering:",Qn),Ti(Nn,Wr)}else Ti(Nn,Wr);setTimeout(()=>{Y&&Y.invalidateSize()},1e3)}catch(Bi){console.error("Error initializing map:",Bi)}};return s({highlightNode:Nn=>{const Wr=dt.value.get(Nn);if(Wr){const Bi=Wr.getElement();if(Bi){const Ri=Bi.querySelector("div");Ri&&Ri.classList.add("marker-highlight")}}},unhighlightNode:Nn=>{const Wr=dt.value.get(Nn);if(Wr){const Bi=Wr.getElement();if(Bi){const Ri=Bi.querySelector("div");Ri&&Ri.classList.remove("marker-highlight")}}},initializeOpenStreetMap:Dn}),Em(()=>E.adverts,()=>{Y&&Je.value&&setTimeout(()=>{Dn()},100)},{immediate:!1}),op(()=>{Je.value&&E.adverts.length>0&&setTimeout(()=>{Dn()},300)}),Oy(()=>{Dt()}),(Nn,Wr)=>(ci(),wi("div",Kot,[Je.value?(ci(),wi("div",{key:1,ref_key:"mapContainer",ref:R,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(ci(),wi("div",Xot,Wr[0]||(Wr[0]=[Ff('<div class="text-center text-white" data-v-ab4f1a7c><svg class="w-8 h-8 mx-auto mb-2 text-white/60" fill="currentColor" viewBox="0 0 20 20" data-v-ab4f1a7c><path d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" data-v-ab4f1a7c></path></svg><p class="text-sm text-white/90" data-v-ab4f1a7c>No valid coordinates available</p><p class="text-xs text-white/60" data-v-ab4f1a7c>Configure base station location to view map</p></div>',1)]))),Je.value&&Nn.adverts.length>0?(ci(),wi("div",Jot,[Wr[1]||(Wr[1]=Ff('<div class="legend-title" data-v-ab4f1a7c>Network Map</div><div class="legend-section" data-v-ab4f1a7c><div class="legend-subtitle" data-v-ab4f1a7c>Node Types</div><div class="legend-items" data-v-ab4f1a7c><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#ef4444;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Base Station</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#60A5FA;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Chat Node</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#A5E5B6;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Repeater</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#EBA0FC;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Room Server</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#FFC246;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Hybrid Node</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon" style="background-color:#9CA3AF;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Unknown</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-icon cluster-icon" style="background:rgba(170, 232, 232, 0.3);border:2px solid #AAE8E8;font-size:8px;display:flex;align-items:center;justify-content:center;color:white;" data-v-ab4f1a7c>2+</div><span data-v-ab4f1a7c>Cluster</span></div></div></div><div class="legend-section" data-v-ab4f1a7c><div class="legend-subtitle" data-v-ab4f1a7c>Route Types</div><div class="legend-items" data-v-ab4f1a7c><div class="legend-item" data-v-ab4f1a7c><div class="legend-line" style="background:#A5E5B6;height:3px;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Direct</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-line" style="background:#059669;height:4px;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Transport Direct</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-line legend-line-dashed" style="background:#FFC246;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Flood</span></div><div class="legend-item" data-v-ab4f1a7c><div class="legend-line legend-line-dashed" style="background:#ea580c;" data-v-ab4f1a7c></div><span data-v-ab4f1a7c>Transport Flood</span></div></div></div>',3)),ye("div",Qot,Fi(Nn.adverts.length)+" node"+Fi(Nn.adverts.length!==1?"s":"")+" visible ",1)])):Uo("",!0),Je.value?(ci(),wi("div",tst," © OpenStreetMap contributors © CARTO ")):Uo("",!0)]))}}),rst=Bf(est,[["__scopeId","data-v-ab4f1a7c"]]),nst={class:"relative","data-menu-container":""},ist=Ec({__name:"NeighborMenu",props:{neighbor:{},canPing:{type:Boolean}},emits:["ping","delete"],setup(d,{emit:s}){const E=window.__ Line truncated
* @kurkle/color v0.3.4
* https://github.com/kurkle/color#readme
* (c) 2024 Jukka Kurkela
* Released under the MIT License
*/function lw(d){return d+.5|0}const h1=(d,s,E)=>Math.max(Math.min(d,E),s);function v2(d){return h1(lw(d*2.55),0,255)}function g1(d){return h1(lw(d*255),0,255)}function Qg(d){return h1(lw(d/2.55)/100,0,1)}function iP(d){return h1(lw(d*100),0,100)}const am={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},MA=[..."0123456789ABCDEF"],gst=d=>MA[d&15],vst=d=>MA[(d&240)>>4]+MA[d&15],O5=d=>(d&240)>>4===(d&15),yst=d=>O5(d.r)&&O5(d.g)&&O5(d.b)&&O5(d.a);function xst(d){var s=d.length,E;return d[0]==="#"&&(s===4||s===5?E={r:255&am[d[1]]*17,g:255&am[d[2]]*17,b:255&am[d[3]]*17,a:s===5?am[d[4]]*17:255}:(s===7||s===9)&&(E={r:am[d[1]]<<4|am[d[2]],g:am[d[3]]<<4|am[d[4]],b:am[d[5]]<<4|am[d[6]],a:s===9?am[d[7]]<<4|am[d[8]]:255})),E}const _st=(d,s)=>d<255?s(d):"";function bst(d){var s=yst(d)?gst:vst;return d?"#"+s(d.r)+s(d.g)+s(d.b)+_st(d.a,s):void 0}const wst=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tD(d,s,E){const B=s*Math.min(E,1-E),K=(pt,_t=(pt+d/30)%12)=>E-B*Math.max(Math.min(_t-3,9-_t,1),-1);return[K(0),K(8),K(4)]}function kst(d,s,E){const B=(K,pt=(K+d/60)%6)=>E-E*s*Math.max(Math.min(pt,4-pt,1),0);return[B(5),B(3),B(1)]}function Tst(d,s,E){const B=tD(d,1,.5);let K;for(s+E>1&&(K=1/(s+E),s*=K,E*=K),K=0;K<3;K++)B[K]*=1-s-E,B[K]+=s;return B}function Ast(d,s,E,B,K){return d===K?(s-E)/B+(s<E?6:0):s===K?(E-d)/B+2:(d-s)/B+4}function pM(d){const E=d.r/255,B=d.g/255,K=d.b/255,pt=Math.max(E,B,K),_t=Math.min(E,B,K),Ot=(pt+_t)/2;let jt,te,he;return pt!==_t&&(he=pt-_t,te=Ot>.5?he/(2-pt-_t):he/(pt+_t),jt=Ast(E,B,K,he,pt),jt=jt*60+.5),[jt|0,te||0,Ot]}function mM(d,s,E,B){return(Array.isArray(s)?d(s[0],s[1],s[2]):d(s,E,B)).map(g1)}function gM(d,s,E){return mM(tD,d,s,E)}function Mst(d,s,E){return mM(Tst,d,s,E)}function Sst(d,s,E){return mM(kst,d,s,E)}function eD(d){return(d%360+360)%360}function Est(d){const s=wst.exec(d);let E=255,B;if(!s)return;s[5]!==B&&(E=s[6]?v2(+s[5]):g1(+s[5]));const K=eD(+s[2]),pt=+s[3]/100,_t=+s[4]/100;return s[1]==="hwb"?B=Mst(K,pt,_t):s[1]==="hsv"?B=Sst(K,pt,_t):B=gM(K,pt,_t),{r:B[0],g:B[1],b:B[2],a:E}}function Cst(d,s){var E=pM(d);E[0]=eD(E[0]+s),E=gM(E),d.r=E[0],d.g=E[1],d.b=E[2]}function Lst(d){if(!d)return;const s=pM(d),E=s[0],B=iP(s[1]),K=iP(s[2]);return d.a<255?`hsla(${E}, ${B}%, ${K}%, ${Qg(d.a)})`:`hsl(${E}, ${B}%, ${K}%)`}const aP={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},oP={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pst(){const d={},s=Object.keys(oP),E=Object.keys(aP);let BLine truncated
*/function lw(d){return d+.5|0}const f1=(d,s,E)=>Math.max(Math.min(d,E),s);function y2(d){return f1(lw(d*2.55),0,255)}function y1(d){return f1(lw(d*255),0,255)}function tv(d){return f1(lw(d/2.55)/100,0,1)}function oP(d){return f1(lw(d*100),0,100)}const om={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},CA=[..."0123456789ABCDEF"],Bst=d=>CA[d&15],Rst=d=>CA[(d&240)>>4]+CA[d&15],D5=d=>(d&240)>>4===(d&15),Nst=d=>D5(d.r)&&D5(d.g)&&D5(d.b)&&D5(d.a);function jst(d){var s=d.length,E;return d[0]==="#"&&(s===4||s===5?E={r:255&om[d[1]]*17,g:255&om[d[2]]*17,b:255&om[d[3]]*17,a:s===5?om[d[4]]*17:255}:(s===7||s===9)&&(E={r:om[d[1]]<<4|om[d[2]],g:om[d[3]]<<4|om[d[4]],b:om[d[5]]<<4|om[d[6]],a:s===9?om[d[7]]<<4|om[d[8]]:255})),E}const Ust=(d,s)=>d<255?s(d):"";function Vst(d){var s=Nst(d)?Bst:Rst;return d?"#"+s(d.r)+s(d.g)+s(d.b)+Ust(d.a,s):void 0}const Hst=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function iD(d,s,E){const R=s*Math.min(E,1-E),Y=(dt,_t=(dt+d/30)%12)=>E-R*Math.max(Math.min(_t-3,9-_t,1),-1);return[Y(0),Y(8),Y(4)]}function Wst(d,s,E){const R=(Y,dt=(Y+d/60)%6)=>E-E*s*Math.max(Math.min(dt,4-dt,1),0);return[R(5),R(3),R(1)]}function qst(d,s,E){const R=iD(d,1,.5);let Y;for(s+E>1&&(Y=1/(s+E),s*=Y,E*=Y),Y=0;Y<3;Y++)R[Y]*=1-s-E,R[Y]+=s;return R}function $st(d,s,E,R,Y){return d===Y?(s-E)/R+(s<E?6:0):s===Y?(E-d)/R+2:(d-s)/R+4}function gM(d){const E=d.r/255,R=d.g/255,Y=d.b/255,dt=Math.max(E,R,Y),_t=Math.min(E,R,Y),zt=(dt+_t)/2;let jt,te,ce;return dt!==_t&&(ce=dt-_t,te=zt>.5?ce/(2-dt-_t):ce/(dt+_t),jt=$st(E,R,Y,ce,dt),jt=jt*60+.5),[jt|0,te||0,zt]}function vM(d,s,E,R){return(Array.isArray(s)?d(s[0],s[1],s[2]):d(s,E,R)).map(y1)}function yM(d,s,E){return vM(iD,d,s,E)}function Zst(d,s,E){return vM(qst,d,s,E)}function Gst(d,s,E){return vM(Wst,d,s,E)}function aD(d){return(d%360+360)%360}function Yst(d){const s=Hst.exec(d);let E=255,R;if(!s)return;s[5]!==R&&(E=s[6]?y2(+s[5]):y1(+s[5]));const Y=aD(+s[2]),dt=+s[3]/100,_t=+s[4]/100;return s[1]==="hwb"?R=Zst(Y,dt,_t):s[1]==="hsv"?R=Gst(Y,dt,_t):R=yM(Y,dt,_t),{r:R[0],g:R[1],b:R[2],a:E}}function Kst(d,s){var E=gM(d);E[0]=aD(E[0]+s),E=yM(E),d.r=E[0],d.g=E[1],d.b=E[2]}function Xst(d){if(!d)return;const s=gM(d),E=s[0],R=oP(s[1]),Y=oP(s[2]);return d.a<255?`hsla(${E}, ${R}%, ${Y}%, ${tv(d.a)})`:`hsl(${E}, ${R}%, ${Y}%)`}const sP={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lP={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Jst(){const d={},s=Object.keys(lP),E=Object.keys(sP);let RLine truncated
* Chart.js v4.5.1
* https://www.chartjs.org
* (c) 2025 Chart.js Contributors
* Released under the MIT License
*/function Yg(){}const Bst=(()=>{let d=0;return()=>d++})();function Bh(d){return d==null}function Yd(d){if(Array.isArray&&Array.isArray(d))return!0;const s=Object.prototype.toString.call(d);return s.slice(0,7)==="[object"&&s.slice(-6)==="Array]"}function Sc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function t0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function ag(d,s){return t0(d)?d:s}function cc(d,s){return typeof d>"u"?s:d}const Nst=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/s,nD=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*s:+d;function Df(d,s,E){if(d&&typeof d.call=="function")return d.apply(E,s)}function Xh(d,s,E,B){let K,pt,_t;if(Yd(d))for(pt=d.length,K=0;K<pt;K++)s.call(E,d[K],K);else if(Sc(d))for(_t=Object.keys(d),pt=_t.length,K=0;K<pt;K++)s.call(E,d[_t[K]],_t[K])}function y4(d,s){let E,B,K,pt;if(!d||!s||d.length!==s.length)return!1;for(E=0,B=d.length;E<B;++E)if(K=d[E],pt=s[E],K.datasetIndex!==pt.datasetIndex||K.index!==pt.index)return!1;return!0}function x4(d){if(Yd(d))return d.map(x4);if(Sc(d)){const s=Object.create(null),E=Object.keys(d),B=E.length;let K=0;for(;K<B;++K)s[E[K]]=x4(d[E[K]]);return s}return d}function iD(d){return["__proto__","prototype","constructor"].indexOf(d)===-1}function jst(d,s,E,B){if(!iD(d))return;const K=s[d],pt=E[d];Sc(K)&&Sc(pt)?$2(K,pt,B):s[d]=x4(pt)}function $2(d,s,E){const B=Yd(s)?s:[s],K=B.length;if(!Sc(d))return d;E=E||{};const pt=E.merger||jst;let _t;for(let Ot=0;Ot<K;++Ot){if(_t=B[Ot],!Sc(_t))continue;const jt=Object.keys(_t);for(let te=0,he=jt.length;te<he;++te)pt(jt[te],d,_t,E)}return d}function L2(d,s){return $2(d,s,{merger:Ust})}function Ust(d,s,E){if(!iD(d))return;const B=s[d],K=E[d];Sc(B)&&Sc(K)?L2(B,K):Object.prototype.hasOwnProperty.call(s,d)||(s[d]=x4(K))}const lP={"":d=>d,x:d=>d.x,y:d=>d.y};function Vst(d){const s=d.split("."),E=[];let B="";for(const K of s)B+=K,B.endsWith("\\")?B=B.slice(0,-1)+".":(E.push(B),B="");return E}function Hst(d){const s=Vst(d);return E=>{for(const B of s){if(B==="")break;E=E&&E[B]}return E}}function Cy(d,s){return(lP[s]||(lP[s]=Hst(s)))(d)}function vM(d){return d.charAt(0).toUpperCase()+d.slice(1)}const Z2=d=>typeof d<"u",x1=d=>typeof d=="function",uP=(d,s)=>{if(d.size!==s.size)return!1;for(const E of d)if(!s.has(E))return!1;return!0};function Wst(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const Qh=Math.PI,od=2*Qh,qst=od+Qh,_4=Number.POSITIVE_INFINITY,$st=Qh/180,ip=Qh/2,cy=Qh/4,cP=Qh*2/3,aD=Math.log10,pg=Math.sign;function P2(d,s,E){return Math.abs(d-s)<E}function hP(d){const s=Math.round(d);d=P2(d,s,d/1e3)?s:d;const E=Math.pow(10,Math.floor(aD(d))),B=d/E;return(B<=1?1:B<=2?2:B<=5?5:10)*E}function Zst(d){const s=[],E=Math.sqrt(d);let B;for(B=1;B<E;B++)d%B===0&&(s.push(B),s.push(d/B));return E===(E|0)&&s.push(E),s.sort((K,pt)=>K-pt).pop(),s}function Gst(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function G2(d){return!Gst(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function Yst(d,s){const E=Math.round(d);return E-s<=d&&E+s>=d}function Kst(d,s,E){let B,K,pt;for(B=0,K=d.length;B<K;B++)pt=d[B][E],isNaN(pt)||(s.min=Math.min(s.min,pt),s.max=Math.max(s.max,pt))}function rv(d){return d*(Qh/180)}function Xst(d){return d*(180/Qh)}function fP(d){if(!t0(d))return;let s=1,E=0;for(;Math.round(d*s)/s!==d;)s*=10,E++;return E}function oD(d,s){const E=s.x-d.x,B=s.y-d.y,K=Math.sqrt(E*E+B*B);let pt=Math.atan2(B,E);return pt<-.5*Qh&&(pt+=od),{angle:pt,distance:K}}function SA(d,s){return Math.sqrt(Math.pow(s.x-d.x,2)+Math.pow(s.y-d.y,2))}function Jst(d,s){return(d-s+qst)%od-Qh}function q0(d){return(d%od+od)%od}function Y2(d,s,E,B){const K=q0(d),pt=q0(s),_t=q0(E),Ot=q0(pt-K),jt=q0(_t-K),te=q0(K-pt),he=q0(K-_t);return K===pt||K===_t||B&&pt===_t||Ot>jt&&te<he}function Jp(d,s,E){return Math.max(s,Math.min(E,d))}function Qst(d){return Jp(d,-32768,32767)}function nv(d,s,E,B=1e-6){return d>=Math.min(s,E)-B&&d<=Math.max(s,E)+B}function yM(d,s,E){E=E||(_t=>d[_t]<s);let B=d.length-1,K=0,pt;for(;B-K>1;)pt=K+B>>1,E(pt)?K=pt:B=pt;return{lo:K,hi:B}}const by=(d,s,E,B)=>yM(d,E,B?K=>{const pt=d[K][s];return pt<E||pt===E&&d[K+1][s]===E}:K=>d[K][s]<E),tlt=(d,s,E)=>yM(d,E,B=>d[B][s]>=E);function elt(d,s,E){let B=0,K=d.length;for(;B<K&&d[B]<s;)B++;for(;K>B&&d[K-1]>E;)K--;return B>0||K<d.length?d.slice(B,K):d}const sD=["push","pop","shift","splice","unshift"];function rlt(d,s){if(d._chartjs){d._chartjs.listeners.push(s);return}Object.defineProperty(d,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),sD.forEach(E=>{const B="_onData"+vM(E),K=d[E];Object.defineProperty(d,E,{configurable:!0,enumerable:!1,value(...pt){const _t=K.apply(this,pt);return d._chartjs.listeners.forEach(Ot=>{typeof Ot[B]=="function"&&Ot[B](...pt)}),_t}})})}function dP(d,s){const E=d._chartjs;if(!E)return;const B=E.listeners,K=B.indexOf(s);K!==-1&&B.splice(K,1),!(B.length>0)&&(sD.forEach(pt=>{deleLine truncated
*/function Kg(){}const alt=(()=>{let d=0;return()=>d++})();function Nh(d){return d==null}function Yd(d){if(Array.isArray&&Array.isArray(d))return!0;const s=Object.prototype.toString.call(d);return s.slice(0,7)==="[object"&&s.slice(-6)==="Array]"}function Sc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function t0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function og(d,s){return t0(d)?d:s}function cc(d,s){return typeof d>"u"?s:d}const olt=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/s,sD=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*s:+d;function Df(d,s,E){if(d&&typeof d.call=="function")return d.apply(E,s)}function Jh(d,s,E,R){let Y,dt,_t;if(Yd(d))for(dt=d.length,Y=0;Y<dt;Y++)s.call(E,d[Y],Y);else if(Sc(d))for(_t=Object.keys(d),dt=_t.length,Y=0;Y<dt;Y++)s.call(E,d[_t[Y]],_t[Y])}function x4(d,s){let E,R,Y,dt;if(!d||!s||d.length!==s.length)return!1;for(E=0,R=d.length;E<R;++E)if(Y=d[E],dt=s[E],Y.datasetIndex!==dt.datasetIndex||Y.index!==dt.index)return!1;return!0}function _4(d){if(Yd(d))return d.map(_4);if(Sc(d)){const s=Object.create(null),E=Object.keys(d),R=E.length;let Y=0;for(;Y<R;++Y)s[E[Y]]=_4(d[E[Y]]);return s}return d}function lD(d){return["__proto__","prototype","constructor"].indexOf(d)===-1}function slt(d,s,E,R){if(!lD(d))return;const Y=s[d],dt=E[d];Sc(Y)&&Sc(dt)?$2(Y,dt,R):s[d]=_4(dt)}function $2(d,s,E){const R=Yd(s)?s:[s],Y=R.length;if(!Sc(d))return d;E=E||{};const dt=E.merger||slt;let _t;for(let zt=0;zt<Y;++zt){if(_t=R[zt],!Sc(_t))continue;const jt=Object.keys(_t);for(let te=0,ce=jt.length;te<ce;++te)dt(jt[te],d,_t,E)}return d}function L2(d,s){return $2(d,s,{merger:llt})}function llt(d,s,E){if(!lD(d))return;const R=s[d],Y=E[d];Sc(R)&&Sc(Y)?L2(R,Y):Object.prototype.hasOwnProperty.call(s,d)||(s[d]=_4(Y))}const cP={"":d=>d,x:d=>d.x,y:d=>d.y};function ult(d){const s=d.split("."),E=[];let R="";for(const Y of s)R+=Y,R.endsWith("\\")?R=R.slice(0,-1)+".":(E.push(R),R="");return E}function clt(d){const s=ult(d);return E=>{for(const R of s){if(R==="")break;E=E&&E[R]}return E}}function Py(d,s){return(cP[s]||(cP[s]=clt(s)))(d)}function xM(d){return d.charAt(0).toUpperCase()+d.slice(1)}const Z2=d=>typeof d<"u",b1=d=>typeof d=="function",hP=(d,s)=>{if(d.size!==s.size)return!1;for(const E of d)if(!s.has(E))return!1;return!0};function hlt(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const Qh=Math.PI,sd=2*Qh,flt=sd+Qh,b4=Number.POSITIVE_INFINITY,dlt=Qh/180,ip=Qh/2,fy=Qh/4,fP=Qh*2/3,uD=Math.log10,gg=Math.sign;function P2(d,s,E){return Math.abs(d-s)<E}function dP(d){const s=Math.round(d);d=P2(d,s,d/1e3)?s:d;const E=Math.pow(10,Math.floor(uD(d))),R=d/E;return(R<=1?1:R<=2?2:R<=5?5:10)*E}function plt(d){const s=[],E=Math.sqrt(d);let R;for(R=1;R<E;R++)d%R===0&&(s.push(R),s.push(d/R));return E===(E|0)&&s.push(E),s.sort((Y,dt)=>Y-dt).pop(),s}function mlt(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function G2(d){return!mlt(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function glt(d,s){const E=Math.round(d);return E-s<=d&&E+s>=d}function vlt(d,s,E){let R,Y,dt;for(R=0,Y=d.length;R<Y;R++)dt=d[R][E],isNaN(dt)||(s.min=Math.min(s.min,dt),s.max=Math.max(s.max,dt))}function iv(d){return d*(Qh/180)}function ylt(d){return d*(180/Qh)}function pP(d){if(!t0(d))return;let s=1,E=0;for(;Math.round(d*s)/s!==d;)s*=10,E++;return E}function cD(d,s){const E=s.x-d.x,R=s.y-d.y,Y=Math.sqrt(E*E+R*R);let dt=Math.atan2(R,E);return dt<-.5*Qh&&(dt+=sd),{angle:dt,distance:Y}}function LA(d,s){return Math.sqrt(Math.pow(s.x-d.x,2)+Math.pow(s.y-d.y,2))}function xlt(d,s){return(d-s+flt)%sd-Qh}function $0(d){return(d%sd+sd)%sd}function Y2(d,s,E,R){const Y=$0(d),dt=$0(s),_t=$0(E),zt=$0(dt-Y),jt=$0(_t-Y),te=$0(Y-dt),ce=$0(Y-_t);return Y===dt||Y===_t||R&&dt===_t||zt>jt&&te<ce}function Jp(d,s,E){return Math.max(s,Math.min(E,d))}function _lt(d){return Jp(d,-32768,32767)}function av(d,s,E,R=1e-6){return d>=Math.min(s,E)-R&&d<=Math.max(s,E)+R}function _M(d,s,E){E=E||(_t=>d[_t]<s);let R=d.length-1,Y=0,dt;for(;R-Y>1;)dt=Y+R>>1,E(dt)?Y=dt:R=dt;return{lo:Y,hi:R}}const ky=(d,s,E,R)=>_M(d,E,R?Y=>{const dt=d[Y][s];return dt<E||dt===E&&d[Y+1][s]===E}:Y=>d[Y][s]<E),blt=(d,s,E)=>_M(d,E,R=>d[R][s]>=E);function wlt(d,s,E){let R=0,Y=d.length;for(;R<Y&&d[R]<s;)R++;for(;Y>R&&d[Y-1]>E;)Y--;return R>0||Y<d.length?d.slice(R,Y):d}const hD=["push","pop","shift","splice","unshift"];function klt(d,s){if(d._chartjs){d._chartjs.listeners.push(s);return}Object.defineProperty(d,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),hD.forEach(E=>{const R="_onData"+xM(E),Y=d[E];Object.defineProperty(d,E,{configurable:!0,enumerable:!1,value(...dt){const _t=Y.apply(this,dt);return d._chartjs.listeners.forEach(zt=>{typeof zt[R]=="function"&&zt[R](...dt)}),_t}})})}function mP(d,s){const E=d._chartjs;if(!E)return;const R=E.listeners,Y=R.indexOf(s);Y!==-1&&R.splice(Y,1),!(R.length>0)&&(hD.forEach(dt=>{deleLine truncated
* Chart.js v4.5.1
* https://www.chartjs.org
* (c) 2025 Chart.js Contributors
* Released under the MIT License
*/class sut{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(s,E,B,K){const pt=E.listeners[K],_t=E.duration;pt.forEach(Ot=>Ot({chart:s,initial:E.initial,numSteps:_t,currentStep:Math.min(B-E.start,_t)}))}_refresh(){this._request||(this._running=!0,this._request=uD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(s=Date.now()){let E=0;this._charts.forEach((B,K)=>{if(!B.running||!B.items.length)return;const pt=B.items;let _t=pt.length-1,Ot=!1,jt;for(;_t>=0;--_t)jt=pt[_t],jt._active?(jt._total>B.duration&&(B.duration=jt._total),jt.tick(s),Ot=!0):(pt[_t]=pt[pt.length-1],pt.pop());Ot&&(K.draw(),this._notify(K,B,s,"progress")),pt.length||(B.running=!1,this._notify(K,B,s,"complete"),B.initial=!1),E+=pt.length}),this._lastDate=s,E===0&&(this._running=!1)}_getAnims(s){const E=this._charts;let B=E.get(s);return B||(B={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},E.set(s,B)),B}listen(s,E,B){this._getAnims(s).listeners[E].push(B)}add(s,E){!E||!E.length||this._getAnims(s).items.push(...E)}has(s){return this._getAnims(s).items.length>0}start(s){const E=this._charts.get(s);E&&(E.running=!0,E.start=Date.now(),E.duration=E.items.reduce((B,K)=>Math.max(B,K._duration),0),this._refresh())}running(s){if(!this._running)return!1;const E=this._charts.get(s);return!(!E||!E.running||!E.items.length)}stop(s){const E=this._charts.get(s);if(!E||!E.items.length)return;const B=E.items;let K=B.length-1;for(;K>=0;--K)B[K].cancel();E.items=[],this._notify(s,E,Date.now(),"complete")}remove(s){return this._charts.delete(s)}}var Kg=new sut;const SP="transparent",lut={boolean(d,s,E){return E>.5?s:d},color(d,s,E){const B=gP(d||SP),K=B.valid&&gP(s||SP);return K&&K.valid?K.mix(B,E).hexString():s},number(d,s,E){return d+(s-d)*E}};class uut{constructor(s,E,B,K){const pt=E[B];K=B5([s.to,K,pt,s.from]);const _t=B5([s.from,pt,K]);this._active=!0,this._fn=s.fn||lut[s.type||typeof _t],this._easing=I2[s.easing]||I2.linear,this._start=Math.floor(Date.now()+(s.delay||0)),this._duration=this._total=Math.floor(s.duration),this._loop=!!s.loop,this._target=E,this._prop=B,this._from=_t,this._to=K,this._promises=void 0}active(){return this._active}update(s,E,B){if(this._active){this._notify(!1);const K=this._target[this._prop],pt=B-this._start,_t=this._duration-pt;this._start=B,this._duration=Math.floor(Math.max(_t,s.duration)),this._total+=pt,this._loop=!!s.loop,this._to=B5([s.to,E,K,s.from]),this._from=B5([s.from,K,E])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(s){const E=s-this._start,B=this._duration,K=this._prop,pt=this._from,_t=this._loop,Ot=this._to;let jt;if(this._active=pt!==Ot&&(_t||E<B),!this._active){this._target[K]=Ot,this._notify(!0);return}if(E<0){this._target[K]=pt;return}jt=E/B%2,jt=_t&&jt>1?2-jt:jt,jt=this._easing(Math.min(1,Math.max(0,jt))),this._target[K]=this._fn(pt,Ot,jt)}wait(){const s=this._promises||(this._promises=[]);return new Promise((E,B)=>{s.push({res:E,rej:B})})}_notify(s){const E=s?"res":"rej",B=this._promises||[];for(let K=0;K<B.length;K++)B[K][E]()}}class AD{constructor(s,E){this._chart=s,this._properties=new Map,this.configure(E)}configure(s){if(!Sc(s))return;const E=Object.keys(Rd.animation),B=this._properties;Object.getOwnPropertyNames(s).forEach(K=>{const pt=s[K];if(!Sc(pt))return;const _t={};for(const Ot of E)_t[Ot]=pt[Ot];(Yd(pt.properties)&&pt.properties||[K]).forEach(Ot=>{(Ot===K||!B.has(Ot))&&B.set(Ot,_t)})})}_animateOptions(s,E){const B=E.options,K=hut(s,B);if(!K)return[];const pt=this._createAnimations(K,B);return B.$shared&&cut(s.options.$animations,B).then(()=>{s.options=B},()=>{}),pt}_createAnimations(s,E){const B=this._properties,K=[],pt=s.$animations||(s.$animations={}),_t=Object.keys(E),Ot=Date.now();let jt;for(jt=_t.length-1;jt>=0;--jt){const te=_t[jt];if(te.charAt(0)==="$")continue;if(te==="options"){K.push(...this._animateOptions(s,E));continue}const he=E[te];let De=pt[te];const er=B.get(te);if(De)if(er&&De.active()){De.update(er,he,Ot);continue}else De.cancel();if(!er||!er.duration){s[te]=he;continue}pt[te]=De=new uut(er,s,te,he),K.push(De)}return K}update(s,E){if(this._properties.size===0){Object.assign(s,E);return}const B=this._createAnimations(s,E);if(B.length)return Kg.add(this._chart,B),!0}}function cut(d,s){const E=[],B=Object.keys(s);for(let K=0;K<B.length;K++){const pt=d[B[K]];pt&&pt.active()&&E.push(pt.wait())}return Promise.all(E)}function hut(d,s){if(!s)return;let E=d.options;if(!E){d.options=s;return}return E.$shared&&(d.options=E=Object.assign({},E,{$shared:!1,$animations:{}})),E}function EP(d,s){const E=d&&d.options||{},B=E.reverse,K=E.min===void 0?s:0,pt=E.max===void 0?s:0;return{start:B?pt:K,end:B?K:pt}}function fut(d,s,E){if(E===!1)return!1;const B=EP(d,E),K=EP(s,E);return{top:K.end,right:B.end,bottom:K.start,left:B.start}}function dut(d){let s,E,B,K;return Sc(d)?(s=d.top,E=d.right,B=d.bottom,K=d.left):s=E=B=K=d,{top:s,right:E,bottoLine truncated
*/class Eut{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(s,E,R,Y){const dt=E.listeners[Y],_t=E.duration;dt.forEach(zt=>zt({chart:s,initial:E.initial,numSteps:_t,currentStep:Math.min(R-E.start,_t)}))}_refresh(){this._request||(this._running=!0,this._request=dD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(s=Date.now()){let E=0;this._charts.forEach((R,Y)=>{if(!R.running||!R.items.length)return;const dt=R.items;let _t=dt.length-1,zt=!1,jt;for(;_t>=0;--_t)jt=dt[_t],jt._active?(jt._total>R.duration&&(R.duration=jt._total),jt.tick(s),zt=!0):(dt[_t]=dt[dt.length-1],dt.pop());zt&&(Y.draw(),this._notify(Y,R,s,"progress")),dt.length||(R.running=!1,this._notify(Y,R,s,"complete"),R.initial=!1),E+=dt.length}),this._lastDate=s,E===0&&(this._running=!1)}_getAnims(s){const E=this._charts;let R=E.get(s);return R||(R={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},E.set(s,R)),R}listen(s,E,R){this._getAnims(s).listeners[E].push(R)}add(s,E){!E||!E.length||this._getAnims(s).items.push(...E)}has(s){return this._getAnims(s).items.length>0}start(s){const E=this._charts.get(s);E&&(E.running=!0,E.start=Date.now(),E.duration=E.items.reduce((R,Y)=>Math.max(R,Y._duration),0),this._refresh())}running(s){if(!this._running)return!1;const E=this._charts.get(s);return!(!E||!E.running||!E.items.length)}stop(s){const E=this._charts.get(s);if(!E||!E.items.length)return;const R=E.items;let Y=R.length-1;for(;Y>=0;--Y)R[Y].cancel();E.items=[],this._notify(s,E,Date.now(),"complete")}remove(s){return this._charts.delete(s)}}var Xg=new Eut;const CP="transparent",Cut={boolean(d,s,E){return E>.5?s:d},color(d,s,E){const R=yP(d||CP),Y=R.valid&&yP(s||CP);return Y&&Y.valid?Y.mix(R,E).hexString():s},number(d,s,E){return d+(s-d)*E}};class Lut{constructor(s,E,R,Y){const dt=E[R];Y=N5([s.to,Y,dt,s.from]);const _t=N5([s.from,dt,Y]);this._active=!0,this._fn=s.fn||Cut[s.type||typeof _t],this._easing=I2[s.easing]||I2.linear,this._start=Math.floor(Date.now()+(s.delay||0)),this._duration=this._total=Math.floor(s.duration),this._loop=!!s.loop,this._target=E,this._prop=R,this._from=_t,this._to=Y,this._promises=void 0}active(){return this._active}update(s,E,R){if(this._active){this._notify(!1);const Y=this._target[this._prop],dt=R-this._start,_t=this._duration-dt;this._start=R,this._duration=Math.floor(Math.max(_t,s.duration)),this._total+=dt,this._loop=!!s.loop,this._to=N5([s.to,E,Y,s.from]),this._from=N5([s.from,Y,E])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(s){const E=s-this._start,R=this._duration,Y=this._prop,dt=this._from,_t=this._loop,zt=this._to;let jt;if(this._active=dt!==zt&&(_t||E<R),!this._active){this._target[Y]=zt,this._notify(!0);return}if(E<0){this._target[Y]=dt;return}jt=E/R%2,jt=_t&&jt>1?2-jt:jt,jt=this._easing(Math.min(1,Math.max(0,jt))),this._target[Y]=this._fn(dt,zt,jt)}wait(){const s=this._promises||(this._promises=[]);return new Promise((E,R)=>{s.push({res:E,rej:R})})}_notify(s){const E=s?"res":"rej",R=this._promises||[];for(let Y=0;Y<R.length;Y++)R[Y][E]()}}class CD{constructor(s,E){this._chart=s,this._properties=new Map,this.configure(E)}configure(s){if(!Sc(s))return;const E=Object.keys(Bd.animation),R=this._properties;Object.getOwnPropertyNames(s).forEach(Y=>{const dt=s[Y];if(!Sc(dt))return;const _t={};for(const zt of E)_t[zt]=dt[zt];(Yd(dt.properties)&&dt.properties||[Y]).forEach(zt=>{(zt===Y||!R.has(zt))&&R.set(zt,_t)})})}_animateOptions(s,E){const R=E.options,Y=Iut(s,R);if(!Y)return[];const dt=this._createAnimations(Y,R);return R.$shared&&Put(s.options.$animations,R).then(()=>{s.options=R},()=>{}),dt}_createAnimations(s,E){const R=this._properties,Y=[],dt=s.$animations||(s.$animations={}),_t=Object.keys(E),zt=Date.now();let jt;for(jt=_t.length-1;jt>=0;--jt){const te=_t[jt];if(te.charAt(0)==="$")continue;if(te==="options"){Y.push(...this._animateOptions(s,E));continue}const ce=E[te];let Ie=dt[te];const Je=R.get(te);if(Ie)if(Je&&Ie.active()){Ie.update(Je,ce,zt);continue}else Ie.cancel();if(!Je||!Je.duration){s[te]=ce;continue}dt[te]=Ie=new Lut(Je,s,te,ce),Y.push(Ie)}return Y}update(s,E){if(this._properties.size===0){Object.assign(s,E);return}const R=this._createAnimations(s,E);if(R.length)return Xg.add(this._chart,R),!0}}function Put(d,s){const E=[],R=Object.keys(s);for(let Y=0;Y<R.length;Y++){const dt=d[R[Y]];dt&&dt.active()&&E.push(dt.wait())}return Promise.all(E)}function Iut(d,s){if(!s)return;let E=d.options;if(!E){d.options=s;return}return E.$shared&&(d.options=E=Object.assign({},E,{$shared:!1,$animations:{}})),E}function LP(d,s){const E=d&&d.options||{},R=E.reverse,Y=E.min===void 0?s:0,dt=E.max===void 0?s:0;return{start:R?dt:Y,end:R?Y:dt}}function zut(d,s,E){if(E===!1)return!1;const R=LP(d,E),Y=LP(s,E);return{top:Y.end,right:R.end,bottom:Y.start,left:R.start}}function Out(d){let s,E,R,Y;return Sc(d)?(s=d.top,E=d.right,R=d.bottom,Y=d.left):s=E=R=Y=d,{top:s,right:E,bottoLine truncated
`)>-1?d.split(`
`):d}function jht(d,s){const{element:E,datasetIndex:B,index:K}=s,pt=d.getDatasetMeta(B).controller,{label:_t,value:Ot}=pt.getLabelAndValue(K);return{chart:d,label:_t,parsed:pt.getParsed(K),raw:d.data.datasets[B].data[K],formattedValue:Ot,dataset:pt.getDataset(),dataIndex:K,datasetIndex:B,element:E}}function uI(d,s){const E=d.chart.ctx,{body:B,footer:K,title:pt}=d,{boxWidth:_t,boxHeight:Ot}=s,jt=Qp(s.bodyFont),te=Qp(s.titleFont),he=Qp(s.footerFont),De=pt.length,er=K.length,pr=B.length,Mr=fm(s.padding);let Tr=Mr.height,Vr=0,mn=B.reduce((Jn,Bn)=>Jn+Bn.before.length+Bn.lines.length+Bn.after.length,0);if(mn+=d.beforeBody.length+d.afterBody.length,De&&(Tr+=De*te.lineHeight+(De-1)*s.titleSpacing+s.titleMarginBottom),mn){const Jn=s.displayColors?Math.max(Ot,jt.lineHeight):jt.lineHeight;Tr+=pr*Jn+(mn-pr)*jt.lineHeight+(mn-1)*s.bodySpacing}er&&(Tr+=s.footerMarginTop+er*he.lineHeight+(er-1)*s.footerSpacing);let Dt=0;const cn=function(Jn){Vr=Math.max(Vr,E.measureText(Jn).width+Dt)};return E.save(),E.font=te.string,Xh(d.title,cn),E.font=jt.string,Xh(d.beforeBody.concat(d.afterBody),cn),Dt=s.displayColors?_t+2+s.boxPadding:0,Xh(B,Jn=>{Xh(Jn.before,cn),Xh(Jn.lines,cn),Xh(Jn.after,cn)}),Dt=0,E.font=he.string,Xh(d.footer,cn),E.restore(),Vr+=Mr.width,{width:Vr,height:Tr}}function Uht(d,s){const{y:E,height:B}=s;return E<B/2?"top":E>d.height-B/2?"bottom":"center"}function Vht(d,s,E,B){const{x:K,width:pt}=B,_t=E.caretSize+E.caretPadding;if(d==="left"&&K+pt+_t>s.width||d==="right"&&K-pt-_t<0)return!0}function Hht(d,s,E,B){const{x:K,width:pt}=E,{width:_t,chartArea:{left:Ot,right:jt}}=d;let te="center";return B==="center"?te=K<=(Ot+jt)/2?"left":"right":K<=pt/2?te="left":K>=_t-pt/2&&(te="right"),Vht(te,d,s,E)&&(te="center"),te}function cI(d,s,E){const B=E.yAlign||s.yAlign||Uht(d,E);return{xAlign:E.xAlign||s.xAlign||Hht(d,s,E,B),yAlign:B}}function Wht(d,s){let{x:E,width:B}=d;return s==="right"?E-=B:s==="center"&&(E-=B/2),E}function qht(d,s,E){let{y:B,height:K}=d;return s==="top"?B+=E:s==="bottom"?B-=K+E:B-=K/2,B}function hI(d,s,E,B){const{caretSize:K,caretPadding:pt,cornerRadius:_t}=d,{xAlign:Ot,yAlign:jt}=E,te=K+pt,{topLeft:he,topRight:De,bottomLeft:er,bottomRight:pr}=h_(_t);let Mr=Wht(s,Ot);const Tr=qht(s,jt,te);return jt==="center"?Ot==="left"?Mr+=te:Ot==="right"&&(Mr-=te):Ot==="left"?Mr-=Math.max(he,er)+K:Ot==="right"&&(Mr+=Math.max(De,pr)+K),{x:Jp(Mr,0,B.width-s.width),y:Jp(Tr,0,B.height-s.height)}}function q5(d,s,E){const B=fm(E.padding);return s==="center"?d.x+d.width/2:s==="right"?d.x+d.width-B.right:d.x+B.left}function fI(d){return sg([],Xg(d))}function $ht(d,s,E){return zy(d,{tooltip:s,tooltipItems:E,type:"tooltip"})}function dI(d,s){const E=s&&s.dataset&&s.dataset.tooltip&&s.dataset.tooltip.callbacks;return E?d.override(E):d}const qD={beforeTitle:Yg,title(d){if(d.length>0){const s=d[0],E=s.chart.data.labels,B=E?E.length:0;if(this&&this.options&&this.options.mode==="dataset")return s.dataset.label||"";if(s.label)return s.label;if(B>0&&s.dataIndex<B)return E[s.dataIndex]}return""},afterTitle:Yg,beforeBody:Yg,beforeLabel:Yg,label(d){if(this&&this.options&&this.options.mode==="dataset")return d.label+": "+d.formattedValue||d.formattedValue;let s=d.dataset.label||"";s&&(s+=": ");const E=d.formattedValue;return Bh(E)||(s+=E),s},labelColor(d){const E=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{borderColor:E.borderColor,backgroundColor:E.backgroundColor,borderWidth:E.borderWidth,borderDash:E.borderDash,borderDashOffset:E.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(d){const E=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{pointStyle:E.pointStyle,rotation:E.rotation}},afterLabel:Yg,afterBody:Yg,beforeFooter:Yg,footer:Yg,afterFooter:Yg};function A0(d,s,E,B){const K=d[s].call(E,B);return typeof K>"u"?qD[s].call(E,B):K}class pI extends lv{static positioners=_2;constructor(s){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=s.chart,this.options=s.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(s){this.options=s,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const s=this._cachedAnimations;if(s)return s;const E=this.chart,B=this.options.setContext(this.getContext()),K=B.enabled&&E.options.animation&&B.animations,pt=new AD(this.chart,K);return K._cacheable&&(this._cachedAnimations=Object.freeze(pt)),pt}getContext(){return this.$context||(this.$context=$ht(this.chart.getContext(),this,this._tooltipItems))}getTitle(s,E){const{callbacks:B}=E,K=A0(B Line truncated
`):d}function Jht(d,s){const{element:E,datasetIndex:R,index:Y}=s,dt=d.getDatasetMeta(R).controller,{label:_t,value:zt}=dt.getLabelAndValue(Y);return{chart:d,label:_t,parsed:dt.getParsed(Y),raw:d.data.datasets[R].data[Y],formattedValue:zt,dataset:dt.getDataset(),dataIndex:Y,datasetIndex:R,element:E}}function hI(d,s){const E=d.chart.ctx,{body:R,footer:Y,title:dt}=d,{boxWidth:_t,boxHeight:zt}=s,jt=Qp(s.bodyFont),te=Qp(s.titleFont),ce=Qp(s.footerFont),Ie=dt.length,Je=Y.length,fr=R.length,Ar=fm(s.padding);let kr=Ar.height,Vr=0,fn=R.reduce((ti,Dn)=>ti+Dn.before.length+Dn.lines.length+Dn.after.length,0);if(fn+=d.beforeBody.length+d.afterBody.length,Ie&&(kr+=Ie*te.lineHeight+(Ie-1)*s.titleSpacing+s.titleMarginBottom),fn){const ti=s.displayColors?Math.max(zt,jt.lineHeight):jt.lineHeight;kr+=fr*ti+(fn-fr)*jt.lineHeight+(fn-1)*s.bodySpacing}Je&&(kr+=s.footerMarginTop+Je*ce.lineHeight+(Je-1)*s.footerSpacing);let Dt=0;const cn=function(ti){Vr=Math.max(Vr,E.measureText(ti).width+Dt)};return E.save(),E.font=te.string,Jh(d.title,cn),E.font=jt.string,Jh(d.beforeBody.concat(d.afterBody),cn),Dt=s.displayColors?_t+2+s.boxPadding:0,Jh(R,ti=>{Jh(ti.before,cn),Jh(ti.lines,cn),Jh(ti.after,cn)}),Dt=0,E.font=ce.string,Jh(d.footer,cn),E.restore(),Vr+=Ar.width,{width:Vr,height:kr}}function Qht(d,s){const{y:E,height:R}=s;return E<R/2?"top":E>d.height-R/2?"bottom":"center"}function tft(d,s,E,R){const{x:Y,width:dt}=R,_t=E.caretSize+E.caretPadding;if(d==="left"&&Y+dt+_t>s.width||d==="right"&&Y-dt-_t<0)return!0}function eft(d,s,E,R){const{x:Y,width:dt}=E,{width:_t,chartArea:{left:zt,right:jt}}=d;let te="center";return R==="center"?te=Y<=(zt+jt)/2?"left":"right":Y<=dt/2?te="left":Y>=_t-dt/2&&(te="right"),tft(te,d,s,E)&&(te="center"),te}function fI(d,s,E){const R=E.yAlign||s.yAlign||Qht(d,E);return{xAlign:E.xAlign||s.xAlign||eft(d,s,E,R),yAlign:R}}function rft(d,s){let{x:E,width:R}=d;return s==="right"?E-=R:s==="center"&&(E-=R/2),E}function nft(d,s,E){let{y:R,height:Y}=d;return s==="top"?R+=E:s==="bottom"?R-=Y+E:R-=Y/2,R}function dI(d,s,E,R){const{caretSize:Y,caretPadding:dt,cornerRadius:_t}=d,{xAlign:zt,yAlign:jt}=E,te=Y+dt,{topLeft:ce,topRight:Ie,bottomLeft:Je,bottomRight:fr}=f_(_t);let Ar=rft(s,zt);const kr=nft(s,jt,te);return jt==="center"?zt==="left"?Ar+=te:zt==="right"&&(Ar-=te):zt==="left"?Ar-=Math.max(ce,Je)+Y:zt==="right"&&(Ar+=Math.max(Ie,fr)+Y),{x:Jp(Ar,0,R.width-s.width),y:Jp(kr,0,R.height-s.height)}}function $5(d,s,E){const R=fm(E.padding);return s==="center"?d.x+d.width/2:s==="right"?d.x+d.width-R.right:d.x+R.left}function pI(d){return lg([],Jg(d))}function ift(d,s,E){return Dy(d,{tooltip:s,tooltipItems:E,type:"tooltip"})}function mI(d,s){const E=s&&s.dataset&&s.dataset.tooltip&&s.dataset.tooltip.callbacks;return E?d.override(E):d}const iF={beforeTitle:Kg,title(d){if(d.length>0){const s=d[0],E=s.chart.data.labels,R=E?E.length:0;if(this&&this.options&&this.options.mode==="dataset")return s.dataset.label||"";if(s.label)return s.label;if(R>0&&s.dataIndex<R)return E[s.dataIndex]}return""},afterTitle:Kg,beforeBody:Kg,beforeLabel:Kg,label(d){if(this&&this.options&&this.options.mode==="dataset")return d.label+": "+d.formattedValue||d.formattedValue;let s=d.dataset.label||"";s&&(s+=": ");const E=d.formattedValue;return Nh(E)||(s+=E),s},labelColor(d){const E=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{borderColor:E.borderColor,backgroundColor:E.backgroundColor,borderWidth:E.borderWidth,borderDash:E.borderDash,borderDashOffset:E.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(d){const E=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{pointStyle:E.pointStyle,rotation:E.rotation}},afterLabel:Kg,afterBody:Kg,beforeFooter:Kg,footer:Kg,afterFooter:Kg};function A0(d,s,E,R){const Y=d[s].call(E,R);return typeof Y>"u"?iF[s].call(E,R):Y}class gI extends cv{static positioners=_2;constructor(s){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=s.chart,this.options=s.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(s){this.options=s,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const s=this._cachedAnimations;if(s)return s;const E=this.chart,R=this.options.setContext(this.getContext()),Y=R.enabled&&E.options.animation&&R.animations,dt=new CD(this.chart,Y);return Y._cacheable&&(this._cachedAnimations=Object.freeze(dt)),dt}getContext(){return this.$context||(this.$context=ift(this.chart.getContext(),this,this._tooltipItems))}getTitle(s,E){const{callbacks:R}=E,Y=A0(R Line truncated
* chartjs-adapter-date-fns v3.0.0
* https://www.chartjs.org
* (c) 2022 chartjs-adapter-date-fns Contributors
* Released under the MIT license
*/const Upt={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};ED._date.override({_id:"date-fns",formats:function(){return Upt},parse:function(d,s){if(d===null||typeof d>"u")return null;const E=typeof d;return E==="number"||d instanceof Date?d=Hu(d):E==="string"&&(typeof s=="string"?d=_pt(d,s,new Date,this.options):d=Apt(d,this.options)),YD(d)?d.getTime():null},format:function(d,s){return wdt(d,s,this.options)},add:function(d,s,E){switch(E){case"millisecond":return LM(d,s);case"second":return hft(d,s);case"minute":return uft(d,s);case"hour":return oft(d,s);case"day":return r6(d,s);case"week":return fft(d,s);case"month":return CM(d,s);case"quarter":return cft(d,s);case"year":return dft(d,s);default:return d}},diff:function(d,s,E){switch(E){case"millisecond":return PM(d,s);case"second":return bft(d,s);case"minute":return yft(d,s);case"hour":return vft(d,s);case"day":return KD(d,s);case"week":return wft(d,s);case"month":return QD(d,s);case"quarter":return _ft(d,s);case"year":return kft(d,s);default:return 0}},startOf:function(d,s,E){switch(s){case"second":return Tpt(d);case"minute":return kpt(d);case"hour":return wpt(d);case"day":return DA(d);case"week":return mg(d);case"isoWeek":return mg(d,{weekStartsOn:+E});case"month":return Aft(d);case"quarter":return Tft(d);case"year":return tF(d);default:return d}},endOf:function(d,s){switch(s){case"second":return Pft(d);case"minute":return Cft(d);case"hour":return Sft(d);case"day":return XD(d);case"week":return Eft(d);case"month":return JD(d);case"quarter":return Lft(d);case"year":return Mft(d);default:return d}}});var a4={exports:{}},Vpt=a4.exports,EI;function Hpt(){return EI||(EI=1,function(d){var s={};(function(E,B){d.exports?d.exports=B():E.moduleName=B()})(typeof self<"u"?self:Vpt,()=>{var E=(()=>{var B=Object.create,K=Object.defineProperty,pt=Object.defineProperties,_t=Object.getOwnPropertyDescriptor,Ot=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,he=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,pr=(Q,Z,c)=>Z in Q?K(Q,Z,{enumerable:!0,configurable:!0,writable:!0,value:c}):Q[Z]=c,Mr=(Q,Z)=>{for(var c in Z||(Z={}))De.call(Z,c)&&pr(Q,c,Z[c]);if(te)for(var c of te(Z))er.call(Z,c)&&pr(Q,c,Z[c]);return Q},Tr=(Q,Z)=>pt(Q,Ot(Z)),Vr=(Q,Z)=>{var c={};for(var g in Q)De.call(Q,g)&&Z.indexOf(g)<0&&(c[g]=Q[g]);if(Q!=null&&te)for(var g of te(Q))Z.indexOf(g)<0&&er.call(Q,g)&&(c[g]=Q[g]);return c},mn=(Q,Z)=>()=>(Q&&(Z=Q(Q=0)),Z),Dt=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports),cn=(Q,Z)=>{for(var c in Z)K(Q,c,{get:Z[c],enumerable:!0})},Jn=(Q,Z,c,g)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let I of jt(Z))!De.call(Q,I)&&I!==c&&K(Q,I,{get:()=>Z[I],enumerable:!(g=_t(Z,I))||g.enumerable});return Q},Bn=(Q,Z,c)=>(c=Q!=null?B(he(Q)):{},Jn(K(c,"default",{value:Q,enumerable:!0}),Q)),ni=Q=>Jn(K({},"__esModule",{value:!0}),Q),Wi=Dt(Q=>{Q.version="3.2.0"}),Un=Dt((Q,Z)=>{(function(c,g,I){g[c]=g[c]||I(),typeof Z<"u"&&Z.exports&&(Z.exports=g[c])})("Promise",typeof window<"u"?window:Q,function(){var c,g,I,S=Object.prototype.toString,t=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(T,u,b,_){return Object.defineProperty(T,u,{value:b,writable:!0,configurable:_!==!1})}}catch{c=function(u,b,_){return u[b]=_,u}}I=function(){var T,u,b;function _(P,M){this.fn=P,this.self=M,this.next=void 0}return{add:function(P,M){b=new _(P,M),u?u.next=b:T=b,u=b,b=void 0},drain:function(){var P=T;for(T=u=g=void 0;P;)P.fn.call(P.self),P=P.next}}}();function e(T,u){I.add(T,u),g||(g=t(I.drain))}function r(T){var u,b=typeof T;return T!=null&&(b=="object"||b=="function")&&(u=T.then),typeof u=="function"?u:!1}function a(){for(var T=0;T<this.chain.length;T++)n(this,this.state===1?this.chain[T].success:this.chain[T].failure,this.chain[T]);this.chain.length=0}function n(T,u,b){var _,P;try{u===!1?b.reject(T.msg):(u===!0?_=T.msg:_=u.call(void 0,T.msg),_===b.promise?b.reject(TypeError("Promise-chain cycle")):(P=r(_))?P.call(_,b.resolve,b.reject):b.resolve(_))}catch(M){b.reject(M)}}function o(T){var u,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(u=r(T))?e(function(){var _=new f(b);try{u.call(T,function(){o.apply(_,arguments)},function(){i.apply(_,arguments)})}catch(P){i.call(_,P)}}):(b.msg=T,b.state=1,b.chain.length>0&&e(a,b))}catch(_){i.call(new f(b),_)}}}function i(T){var u=this;u.triggered||(u.triggered=!0,u.def&&(u=u.def),u.msg=T,u.state=2,u.chain.length>0&&e(a,u))}function l(T,u,b,_){for(var P=0;P<u.length;P++)(function(M){T.resolve(u[M]).then(function(C){b(M,C)},_)})(P)}function f(T){this.def=T,this.triggered=!1}function x(T){this.promise=T,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(T){if(typeof T!="function")throw TypeError("Not a function");if(this.Line truncated
]`),Me=At.charCodeAt(0);function Pe(rn,Jr,xn){arguments.length<3&&(xn=Jr,Jr=null);var zn=Hr(rn,Ut,Jr==null?Ne:sr(Jr),xn);return zn.row=function(On){return arguments.length?zn.response((Jr=On)==null?Ne:sr(On)):Jr},zn}function Ne(rn){return Pe.parse(rn.responseText)}function sr(rn){return function(Jr){return Pe.parse(Jr.responseText,rn)}}Pe.parse=function(rn,Jr){var xn;return Pe.parseRows(rn,function(zn,On){if(xn)return xn(zn,On-1);var Hi=function(Vn){for(var yi={},Si=zn.length,Ri=0;Ri<Si;++Ri)yi[zn[Ri]]=Vn[Ri];return yi};xn=Jr?function(Vn,yi){return Jr(Hi(Vn),yi)}:Hi})},Pe.parseRows=function(rn,Jr){var xn={},zn={},On=[],Hi=rn.length,Vn=0,yi=0,Si,Ri;function Gi(){if(Vn>=Hi)return zn;if(Ri)return Ri=!1,xn;var Ua=Vn;if(rn.charCodeAt(Ua)===34){for(var Ha=Ua;Ha++<Hi;)if(rn.charCodeAt(Ha)===34){if(rn.charCodeAt(Ha+1)!==34)break;++Ha}Vn=Ha+2;var ao=rn.charCodeAt(Ha+1);return ao===13?(Ri=!0,rn.charCodeAt(Ha+2)===10&&++Vn):ao===10&&(Ri=!0),rn.slice(Ua+1,Ha).replace(/""/g,'"')}for(;Vn<Hi;){var ao=rn.charCodeAt(Vn++),Po=1;if(ao===10)Ri=!0;else if(ao===13)Ri=!0,rn.charCodeAt(Vn)===10&&(++Vn,++Po);else if(ao!==Me)continue;return rn.slice(Ua,Vn-Po)}return rn.slice(Ua)}for(;(Si=Gi())!==zn;){for(var Kn=[];Si!==xn&&Si!==zn;)Kn.push(Si),Si=Gi();Jr&&(Kn=Jr(Kn,yi++))==null||On.push(Kn)}return On},Pe.format=function(rn){if(Array.isArray(rn[0]))return Pe.formatRows(rn);var Jr=new j,xn=[];return rn.forEach(function(zn){for(var On in zn)Jr.has(On)||xn.push(Jr.add(On))}),[xn.map(Er).join(At)].concat(rn.map(function(zn){return xn.map(function(On){return Er(zn[On])}).join(At)})).join(`
*/const Kpt={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};DD._date.override({_id:"date-fns",formats:function(){return Kpt},parse:function(d,s){if(d===null||typeof d>"u")return null;const E=typeof d;return E==="number"||d instanceof Date?d=Hu(d):E==="string"&&(typeof s=="string"?d=Cpt(d,s,new Date,this.options):d=Opt(d,this.options)),hF(d)?d.getTime():null},format:function(d,s){return Pdt(d,s,this.options)},add:function(d,s,E){switch(E){case"millisecond":return IM(d,s);case"second":return _ft(d,s);case"minute":return yft(d,s);case"hour":return mft(d,s);case"day":return n6(d,s);case"week":return bft(d,s);case"month":return PM(d,s);case"quarter":return xft(d,s);case"year":return wft(d,s);default:return d}},diff:function(d,s,E){switch(E){case"millisecond":return zM(d,s);case"second":return Lft(d,s);case"minute":return Sft(d,s);case"hour":return Mft(d,s);case"day":return fF(d,s);case"week":return Pft(d,s);case"month":return mF(d,s);case"quarter":return Cft(d,s);case"year":return Ift(d,s);default:return 0}},startOf:function(d,s,E){switch(s){case"second":return zpt(d);case"minute":return Ipt(d);case"hour":return Ppt(d);case"day":return BA(d);case"week":return vg(d);case"isoWeek":return vg(d,{weekStartsOn:+E});case"month":return Oft(d);case"quarter":return zft(d);case"year":return gF(d);default:return d}},endOf:function(d,s){switch(s){case"second":return jft(d);case"minute":return Rft(d);case"hour":return Fft(d);case"day":return dF(d);case"week":return Bft(d);case"month":return pF(d);case"quarter":return Nft(d);case"year":return Dft(d);default:return d}}});var o4={exports:{}},Xpt=o4.exports,LI;function Jpt(){return LI||(LI=1,function(d){var s={};(function(E,R){d.exports?d.exports=R():E.moduleName=R()})(typeof self<"u"?self:Xpt,()=>{var E=(()=>{var R=Object.create,Y=Object.defineProperty,dt=Object.defineProperties,_t=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,fr=(Q,Z,c)=>Z in Q?Y(Q,Z,{enumerable:!0,configurable:!0,writable:!0,value:c}):Q[Z]=c,Ar=(Q,Z)=>{for(var c in Z||(Z={}))Ie.call(Z,c)&&fr(Q,c,Z[c]);if(te)for(var c of te(Z))Je.call(Z,c)&&fr(Q,c,Z[c]);return Q},kr=(Q,Z)=>dt(Q,zt(Z)),Vr=(Q,Z)=>{var c={};for(var g in Q)Ie.call(Q,g)&&Z.indexOf(g)<0&&(c[g]=Q[g]);if(Q!=null&&te)for(var g of te(Q))Z.indexOf(g)<0&&Je.call(Q,g)&&(c[g]=Q[g]);return c},fn=(Q,Z)=>()=>(Q&&(Z=Q(Q=0)),Z),Dt=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports),cn=(Q,Z)=>{for(var c in Z)Y(Q,c,{get:Z[c],enumerable:!0})},ti=(Q,Z,c,g)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let I of jt(Z))!Ie.call(Q,I)&&I!==c&&Y(Q,I,{get:()=>Z[I],enumerable:!(g=_t(Z,I))||g.enumerable});return Q},Dn=(Q,Z,c)=>(c=Q!=null?R(ce(Q)):{},ti(Y(c,"default",{value:Q,enumerable:!0}),Q)),ii=Q=>ti(Y({},"__esModule",{value:!0}),Q),Vi=Dt(Q=>{Q.version="3.2.0"}),Nn=Dt((Q,Z)=>{(function(c,g,I){g[c]=g[c]||I(),typeof Z<"u"&&Z.exports&&(Z.exports=g[c])})("Promise",typeof window<"u"?window:Q,function(){var c,g,I,S=Object.prototype.toString,t=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(T,u,b,_){return Object.defineProperty(T,u,{value:b,writable:!0,configurable:_!==!1})}}catch{c=function(u,b,_){return u[b]=_,u}}I=function(){var T,u,b;function _(P,M){this.fn=P,this.self=M,this.next=void 0}return{add:function(P,M){b=new _(P,M),u?u.next=b:T=b,u=b,b=void 0},drain:function(){var P=T;for(T=u=g=void 0;P;)P.fn.call(P.self),P=P.next}}}();function e(T,u){I.add(T,u),g||(g=t(I.drain))}function r(T){var u,b=typeof T;return T!=null&&(b=="object"||b=="function")&&(u=T.then),typeof u=="function"?u:!1}function a(){for(var T=0;T<this.chain.length;T++)n(this,this.state===1?this.chain[T].success:this.chain[T].failure,this.chain[T]);this.chain.length=0}function n(T,u,b){var _,P;try{u===!1?b.reject(T.msg):(u===!0?_=T.msg:_=u.call(void 0,T.msg),_===b.promise?b.reject(TypeError("Promise-chain cycle")):(P=r(_))?P.call(_,b.resolve,b.reject):b.resolve(_))}catch(M){b.reject(M)}}function o(T){var u,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(u=r(T))?e(function(){var _=new f(b);try{u.call(T,function(){o.apply(_,arguments)},function(){i.apply(_,arguments)})}catch(P){i.call(_,P)}}):(b.msg=T,b.state=1,b.chain.length>0&&e(a,b))}catch(_){i.call(new f(b),_)}}}function i(T){var u=this;u.triggered||(u.triggered=!0,u.def&&(u=u.def),u.msg=T,u.state=2,u.chain.length>0&&e(a,u))}function l(T,u,b,_){for(var P=0;P<u.length;P++)(function(M){T.resolve(u[M]).then(function(C){b(M,C)},_)})(P)}function f(T){this.def=T,this.triggered=!1}function x(T){this.promise=T,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(T){if(typeof T!="function")throw TypeError("Not a function");if(this.Line truncated
]`),Se=At.charCodeAt(0);function Pe(rn,Jr,xn){arguments.length<3&&(xn=Jr,Jr=null);var zn=Hr(rn,Ut,Jr==null?Ne:sr(Jr),xn);return zn.row=function(On){return arguments.length?zn.response((Jr=On)==null?Ne:sr(On)):Jr},zn}function Ne(rn){return Pe.parse(rn.responseText)}function sr(rn){return function(Jr){return Pe.parse(Jr.responseText,rn)}}Pe.parse=function(rn,Jr){var xn;return Pe.parseRows(rn,function(zn,On){if(xn)return xn(zn,On-1);var $i=function(Vn){for(var bi={},Pi=zn.length,ji=0;ji<Pi;++ji)bi[zn[ji]]=Vn[ji];return bi};xn=Jr?function(Vn,bi){return Jr($i(Vn),bi)}:$i})},Pe.parseRows=function(rn,Jr){var xn={},zn={},On=[],$i=rn.length,Vn=0,bi=0,Pi,ji;function Ki(){if(Vn>=$i)return zn;if(ji)return ji=!1,xn;var Ua=Vn;if(rn.charCodeAt(Ua)===34){for(var Wa=Ua;Wa++<$i;)if(rn.charCodeAt(Wa)===34){if(rn.charCodeAt(Wa+1)!==34)break;++Wa}Vn=Wa+2;var oo=rn.charCodeAt(Wa+1);return oo===13?(ji=!0,rn.charCodeAt(Wa+2)===10&&++Vn):oo===10&&(ji=!0),rn.slice(Ua+1,Wa).replace(/""/g,'"')}for(;Vn<$i;){var oo=rn.charCodeAt(Vn++),Io=1;if(oo===10)ji=!0;else if(oo===13)ji=!0,rn.charCodeAt(Vn)===10&&(++Vn,++Io);else if(oo!==Se)continue;return rn.slice(Ua,Vn-Io)}return rn.slice(Ua)}for(;(Pi=Ki())!==zn;){for(var Jn=[];Pi!==xn&&Pi!==zn;)Jn.push(Pi),Pi=Ki();Jr&&(Jn=Jr(Jn,bi++))==null||On.push(Jn)}return On},Pe.format=function(rn){if(Array.isArray(rn[0]))return Pe.formatRows(rn);var Jr=new j,xn=[];return rn.forEach(function(zn){for(var On in zn)Jr.has(On)||xn.push(Jr.add(On))}),[xn.map(Er).join(At)].concat(rn.map(function(zn){return xn.map(function(On){return Er(zn[On])}).join(At)})).join(`
`)},Pe.formatRows=function(rn){return rn.map(ar).join(`
`)};function ar(rn){return rn.map(Er).join(At)}function Er(rn){return ue.test(rn)?'"'+rn.replace(/\"/g,'""')+'"':rn}return Pe},c.csv=c.dsv(",","text/csv"),c.tsv=c.dsv(" ","text/tab-separated-values");var Qn,Pn,En,Zn,La=this[F(this,"requestAnimationFrame")]||function(At){setTimeout(At,17)};c.timer=function(){Vi.apply(this,arguments)};function Vi(At,Ut,ue){var Me=arguments.length;Me<2&&(Ut=0),Me<3&&(ue=Date.now());var Pe=ue+Ut,Ne={c:At,t:Pe,n:null};return Pn?Pn.n=Ne:Qn=Ne,Pn=Ne,En||(Zn=clearTimeout(Zn),En=1,La(Qa)),Ne}function Qa(){var At=Ja(),Ut=Do()-At;Ut>24?(isFinite(Ut)&&(clearTimeout(Zn),Zn=setTimeout(Qa,Ut)),En=0):(En=1,La(Qa))}c.timer.flush=function(){Ja(),Do()};function Ja(){for(var At=Date.now(),Ut=Qn;Ut;)At>=Ut.t&&Ut.c(At-Ut.t)&&(Ut.c=null),Ut=Ut.n;return At}function Do(){for(var At,Ut=Qn,ue=1/0;Ut;)Ut.c?(Ut.t<ue&&(ue=Ut.t),Ut=(At=Ut).n):Ut=At?At.n=Ut.n:Qn=Ut.n;return Pn=At,ue}c.round=function(At,Ut){return Ut?Math.round(At*(Ut=Math.pow(10,Ut)))/Ut:Math.round(At)},c.geom={};function yo(At){return At[0]}function Fo(At){return At[1]}c.geom.hull=function(At){var Ut=yo,ue=Fo;if(arguments.length)return Me(At);function Me(Pe){if(Pe.length<3)return[];var Ne=Ce(Ut),sr=Ce(ue),ar,Er=Pe.length,rn=[],Jr=[];for(ar=0;ar<Er;ar++)rn.push([+Ne.call(this,Pe[ar],ar),+sr.call(this,Pe[ar],ar),ar]);for(rn.sort(ys),ar=0;ar<Er;ar++)Jr.push([rn[ar][0],-rn[ar][1]]);var xn=Da(rn),zn=Da(Jr),On=zn[0]===xn[0],Hi=zn[zn.length-1]===xn[xn.length-1],Vn=[];for(ar=xn.length-1;ar>=0;--ar)Vn.push(Pe[rn[xn[ar]][2]]);for(ar=+On;ar<zn.length-Hi;++ar)Vn.push(Pe[rn[zn[ar]][2]]);return Vn}return Me.x=function(Pe){return arguments.length?(Ut=Pe,Me):Ut},Me.y=function(Pe){return arguments.length?(ue=Pe,Me):ue},Me};function Da(At){for(var Ut=At.length,ue=[0,1],Me=2,Pe=2;Pe<Ut;Pe++){for(;Me>1&&Ue(At[ue[Me-2]],At[ue[Me-1]],At[Pe])<=0;)--Me;ue[Me++]=Pe}return ue.slice(0,Me)}function ys(At,Ut){return At[0]-Ut[0]||At[1]-Ut[1]}c.geom.polygon=function(At){return tt(At,os),At};var os=c.geom.polygon.prototype=[];os.area=function(){for(var At=-1,Ut=this.length,ue,Me=this[Ut-1],Pe=0;++At<Ut;)ue=Me,Me=this[At],Pe+=ue[1]*Me[0]-ue[0]*Me[1];return Pe*.5},os.centroid=function(At){var Ut=-1,ue=this.length,Me=0,Pe=0,Ne,sr=this[ue-1],ar;for(arguments.length||(At=-1/(6*this.area()));++Ut<ue;)Ne=sr,sr=this[Ut],ar=Ne[0]*sr[1]-sr[0]*Ne[1],Me+=(Ne[0]+sr[0])*ar,Pe+=(Ne[1]+sr[1])*ar;return[Me*At,Pe*At]},os.clip=function(At){for(var Ut,ue=Ks(At),Me=-1,Pe=this.length-Ks(this),Ne,sr,ar=this[Pe-1],Er,rn,Jr;++Me<Pe;){for(Ut=At.slice(),At.length=0,Er=this[Me],rn=Ut[(sr=Ut.length-ue)-1],Ne=-1;++Ne<sr;)Jr=Ut[Ne],ul(Jr,ar,Er)?(ul(rn,ar,Er)||At.push(Zo(rn,Jr,ar,Er)),At.push(Jr)):ul(rn,ar,Er)&&At.push(Zo(rn,Jr,ar,Er)),rn=Jr;ue&&At.push(At[0]),ar=Er}return At};function ul(At,Ut,ue){return(ue[0]-Ut[0])*(At[1]-Ut[1])<(ue[1]-Ut[1])*(At[0]-Ut[0])}function Zo(At,Ut,ue,Me){var Pe=At[0],Ne=ue[0],sr=Ut[0]-Pe,ar=Me[0]-Ne,Er=At[1],rn=ue[1],Jr=Ut[1]-Er,xn=Me[1]-rn,zn=(ar*(Er-rn)-xn*(Pe-Ne))/(xn*sr-ar*Jr);return[Pe+zn*sr,Er+zn*Jr]}function Ks(At){var Ut=At[0],ue=At[At.length-1];return!(Ut[0]-ue[0]||Ut[1]-ue[1])}var ss,cl,Qs,Nl=[],cs,Ps,Lo=[];function As(){bl(this),this.edge=this.site=this.circle=null}function kl(At){var Ut=Nl.pop()||new As;return Ut.site=At,Ut}function ql(At){Cl(At),Qs.remove(At),Nl.push(At),bl(At)}function Jl(At){var Ut=At.circle,ue=Ut.x,Me=Ut.cy,Pe={x:ue,y:Me},Ne=At.P,sr=At.N,ar=[At];ql(At);for(var Er=Ne;Er.circle&&u(ue-Er.circle.x)<ne&&u(Me-Er.circle.cy)<ne;)Ne=Er.P,ar.unshift(Er),ql(Er),Er=Ne;ar.unshift(Er),Cl(Er);for(var rn=sr;rn.circle&&u(ue-rn.circle.x)<ne&&u(Me-rn.circle.cy)<ne;)sr=rn.N,ar.push(rn),ql(rn),rn=sr;ar.push(rn),Cl(rn);var Jr=ar.length,xn;for(xn=1;xn<Jr;++xn)rn=ar[xn],Er=ar[xn-1],ts(rn.edge,Er.site,rn.site,Pe);Er=ar[0],rn=ar[Jr-1],rn.edge=ou(Er.site,rn.site,null,Pe),al(Er),al(rn)}function Us(At){for(var Ut=At.x,ue=At.y,Me,Pe,Ne,sr,ar=Qs._;ar;)if(Ne=Pa(ar,ue)-Ut,Ne>ne)ar=ar.L;else if(sr=Ut-fo(ar,ue),sr>ne){if(!ar.R){Me=ar;break}ar=ar.R}else{Ne>-ne?(Me=ar.P,Pe=ar):sr>-ne?(Me=ar,Pe=ar.N):Me=Pe=ar;break}var Er=kl(At);if(Qs.insert(Me,Er),!(!Me&&!Pe)){if(Me===Pe){Cl(Me),Pe=kl(Me.site),Qs.insert(Er,Pe),Er.edge=Pe.edge=ou(Me.site,Er.site),al(Me),al(Pe);return}if(!Pe){Er.edge=ou(Me.site,Er.site);return}Cl(Me),Cl(Pe);var rn=Me.site,Jr=rn.x,xn=rn.y,zn=At.x-Jr,On=At.y-xn,Hi=Pe.site,Vn=Hi.x-Jr,yi=Hi.y-xn,Si=2*(zn*yi-On*Vn),Ri=zn*zn+On*On,Gi=Vn*Vn+yi*yi,Kn={x:(yi*Ri-On*Gi)/Si+Jr,y:(zn*Gi-Vn*Ri)/Si+xn};ts(Pe.edge,rn,Hi,Kn),Er.edge=ou(rn,At,null,Kn),Pe.edge=ou(At,Hi,null,Kn),al(Me),al(Pe)}}function Pa(At,Ut){var ue=At.site,Me=ue.x,Pe=ue.y,Ne=Pe-Ut;if(!Ne)return Me;var sr=At.P;if(!sr)return-1/0;ue=sr.site;var ar=ue.x,Er=ue.y,rn=Er-Ut;if(!rn)return ar;var Jr=ar-Me,xn=1/Ne-1/rn,zn=Jr/rn;return xn?(-zn+Math.sqrt(zn*zn-2*xn*(Jr*Jr/(-2*rn)-Er+rn/2+Pe-Ne/2)))/xn+Me:(Me+ar)/2}function fo(At,Ut){var ue=At.N;if(ue)return Pa(ue,Ut);var Me=At.site;return Me.y===Ut?Me.x:1/0}function qs(At){this.site=At,this.edges=[]}qs.prototype.prepare=function(){for(var At=this.edges,Ut=At.length,ue;Ut Line truncated
`)};function ar(rn){return rn.map(Er).join(At)}function Er(rn){return ue.test(rn)?'"'+rn.replace(/\"/g,'""')+'"':rn}return Pe},c.csv=c.dsv(",","text/csv"),c.tsv=c.dsv(" ","text/tab-separated-values");var ri,Pn,En,Yn,La=this[F(this,"requestAnimationFrame")]||function(At){setTimeout(At,17)};c.timer=function(){qi.apply(this,arguments)};function qi(At,Ut,ue){var Se=arguments.length;Se<2&&(Ut=0),Se<3&&(ue=Date.now());var Pe=ue+Ut,Ne={c:At,t:Pe,n:null};return Pn?Pn.n=Ne:ri=Ne,Pn=Ne,En||(Yn=clearTimeout(Yn),En=1,La(Qa)),Ne}function Qa(){var At=Ja(),Ut=Do()-At;Ut>24?(isFinite(Ut)&&(clearTimeout(Yn),Yn=setTimeout(Qa,Ut)),En=0):(En=1,La(Qa))}c.timer.flush=function(){Ja(),Do()};function Ja(){for(var At=Date.now(),Ut=ri;Ut;)At>=Ut.t&&Ut.c(At-Ut.t)&&(Ut.c=null),Ut=Ut.n;return At}function Do(){for(var At,Ut=ri,ue=1/0;Ut;)Ut.c?(Ut.t<ue&&(ue=Ut.t),Ut=(At=Ut).n):Ut=At?At.n=Ut.n:ri=Ut.n;return Pn=At,ue}c.round=function(At,Ut){return Ut?Math.round(At*(Ut=Math.pow(10,Ut)))/Ut:Math.round(At)},c.geom={};function yo(At){return At[0]}function Bo(At){return At[1]}c.geom.hull=function(At){var Ut=yo,ue=Bo;if(arguments.length)return Se(At);function Se(Pe){if(Pe.length<3)return[];var Ne=Ce(Ut),sr=Ce(ue),ar,Er=Pe.length,rn=[],Jr=[];for(ar=0;ar<Er;ar++)rn.push([+Ne.call(this,Pe[ar],ar),+sr.call(this,Pe[ar],ar),ar]);for(rn.sort(ys),ar=0;ar<Er;ar++)Jr.push([rn[ar][0],-rn[ar][1]]);var xn=Da(rn),zn=Da(Jr),On=zn[0]===xn[0],$i=zn[zn.length-1]===xn[xn.length-1],Vn=[];for(ar=xn.length-1;ar>=0;--ar)Vn.push(Pe[rn[xn[ar]][2]]);for(ar=+On;ar<zn.length-$i;++ar)Vn.push(Pe[rn[zn[ar]][2]]);return Vn}return Se.x=function(Pe){return arguments.length?(Ut=Pe,Se):Ut},Se.y=function(Pe){return arguments.length?(ue=Pe,Se):ue},Se};function Da(At){for(var Ut=At.length,ue=[0,1],Se=2,Pe=2;Pe<Ut;Pe++){for(;Se>1&&Ue(At[ue[Se-2]],At[ue[Se-1]],At[Pe])<=0;)--Se;ue[Se++]=Pe}return ue.slice(0,Se)}function ys(At,Ut){return At[0]-Ut[0]||At[1]-Ut[1]}c.geom.polygon=function(At){return tt(At,os),At};var os=c.geom.polygon.prototype=[];os.area=function(){for(var At=-1,Ut=this.length,ue,Se=this[Ut-1],Pe=0;++At<Ut;)ue=Se,Se=this[At],Pe+=ue[1]*Se[0]-ue[0]*Se[1];return Pe*.5},os.centroid=function(At){var Ut=-1,ue=this.length,Se=0,Pe=0,Ne,sr=this[ue-1],ar;for(arguments.length||(At=-1/(6*this.area()));++Ut<ue;)Ne=sr,sr=this[Ut],ar=Ne[0]*sr[1]-sr[0]*Ne[1],Se+=(Ne[0]+sr[0])*ar,Pe+=(Ne[1]+sr[1])*ar;return[Se*At,Pe*At]},os.clip=function(At){for(var Ut,ue=Ks(At),Se=-1,Pe=this.length-Ks(this),Ne,sr,ar=this[Pe-1],Er,rn,Jr;++Se<Pe;){for(Ut=At.slice(),At.length=0,Er=this[Se],rn=Ut[(sr=Ut.length-ue)-1],Ne=-1;++Ne<sr;)Jr=Ut[Ne],ul(Jr,ar,Er)?(ul(rn,ar,Er)||At.push(Go(rn,Jr,ar,Er)),At.push(Jr)):ul(rn,ar,Er)&&At.push(Go(rn,Jr,ar,Er)),rn=Jr;ue&&At.push(At[0]),ar=Er}return At};function ul(At,Ut,ue){return(ue[0]-Ut[0])*(At[1]-Ut[1])<(ue[1]-Ut[1])*(At[0]-Ut[0])}function Go(At,Ut,ue,Se){var Pe=At[0],Ne=ue[0],sr=Ut[0]-Pe,ar=Se[0]-Ne,Er=At[1],rn=ue[1],Jr=Ut[1]-Er,xn=Se[1]-rn,zn=(ar*(Er-rn)-xn*(Pe-Ne))/(xn*sr-ar*Jr);return[Pe+zn*sr,Er+zn*Jr]}function Ks(At){var Ut=At[0],ue=At[At.length-1];return!(Ut[0]-ue[0]||Ut[1]-ue[1])}var ss,cl,Qs,jl=[],cs,Ps,Po=[];function As(){bl(this),this.edge=this.site=this.circle=null}function kl(At){var Ut=jl.pop()||new As;return Ut.site=At,Ut}function ql(At){Ll(At),Qs.remove(At),jl.push(At),bl(At)}function Jl(At){var Ut=At.circle,ue=Ut.x,Se=Ut.cy,Pe={x:ue,y:Se},Ne=At.P,sr=At.N,ar=[At];ql(At);for(var Er=Ne;Er.circle&&u(ue-Er.circle.x)<ne&&u(Se-Er.circle.cy)<ne;)Ne=Er.P,ar.unshift(Er),ql(Er),Er=Ne;ar.unshift(Er),Ll(Er);for(var rn=sr;rn.circle&&u(ue-rn.circle.x)<ne&&u(Se-rn.circle.cy)<ne;)sr=rn.N,ar.push(rn),ql(rn),rn=sr;ar.push(rn),Ll(rn);var Jr=ar.length,xn;for(xn=1;xn<Jr;++xn)rn=ar[xn],Er=ar[xn-1],es(rn.edge,Er.site,rn.site,Pe);Er=ar[0],rn=ar[Jr-1],rn.edge=ou(Er.site,rn.site,null,Pe),al(Er),al(rn)}function Us(At){for(var Ut=At.x,ue=At.y,Se,Pe,Ne,sr,ar=Qs._;ar;)if(Ne=Pa(ar,ue)-Ut,Ne>ne)ar=ar.L;else if(sr=Ut-fo(ar,ue),sr>ne){if(!ar.R){Se=ar;break}ar=ar.R}else{Ne>-ne?(Se=ar.P,Pe=ar):sr>-ne?(Se=ar,Pe=ar.N):Se=Pe=ar;break}var Er=kl(At);if(Qs.insert(Se,Er),!(!Se&&!Pe)){if(Se===Pe){Ll(Se),Pe=kl(Se.site),Qs.insert(Er,Pe),Er.edge=Pe.edge=ou(Se.site,Er.site),al(Se),al(Pe);return}if(!Pe){Er.edge=ou(Se.site,Er.site);return}Ll(Se),Ll(Pe);var rn=Se.site,Jr=rn.x,xn=rn.y,zn=At.x-Jr,On=At.y-xn,$i=Pe.site,Vn=$i.x-Jr,bi=$i.y-xn,Pi=2*(zn*bi-On*Vn),ji=zn*zn+On*On,Ki=Vn*Vn+bi*bi,Jn={x:(bi*ji-On*Ki)/Pi+Jr,y:(zn*Ki-Vn*ji)/Pi+xn};es(Pe.edge,rn,$i,Jn),Er.edge=ou(rn,At,null,Jn),Pe.edge=ou(At,$i,null,Jn),al(Se),al(Pe)}}function Pa(At,Ut){var ue=At.site,Se=ue.x,Pe=ue.y,Ne=Pe-Ut;if(!Ne)return Se;var sr=At.P;if(!sr)return-1/0;ue=sr.site;var ar=ue.x,Er=ue.y,rn=Er-Ut;if(!rn)return ar;var Jr=ar-Se,xn=1/Ne-1/rn,zn=Jr/rn;return xn?(-zn+Math.sqrt(zn*zn-2*xn*(Jr*Jr/(-2*rn)-Er+rn/2+Pe-Ne/2)))/xn+Se:(Se+ar)/2}function fo(At,Ut){var ue=At.N;if(ue)return Pa(ue,Ut);var Se=At.site;return Se.y===Ut?Se.x:1/0}function qs(At){this.site=At,this.edges=[]}qs.prototype.prepare=function(){for(var At=this.edges,Ut=At.length,ue;Ut Line truncated
`+q.year;else return O(V,F)+`
`+w(q.dayMonthYear,V,U,W);return w(H,V,U,W)};var j=3*e;Q.incrementMonth=function(V,H,F){F=v(F)&&F;var U=I(V,e);if(V=Math.round(V-U),F)try{var W=Math.round(V/e)+o,q=i.getComponentMethod("calendars","getCal")(F),J=q.fromJD(W);return H%12?q.add(J,H,"m"):q.add(J,H/12,"y"),(J.toJD()-o)*e+U}catch{g.error("invalid ms "+V+" in calendar "+F)}var lt=new Date(V+j);return lt.setUTCMonth(lt.getUTCMonth()+H)+U-j},Q.findExactDates=function(V,H){for(var F=0,U=0,W=0,q=0,J,lt,yt=v(H)&&i.getComponentMethod("calendars","getCal")(H),mt=0;mt<V.length;mt++){if(lt=V[mt],!c(lt)){q++;continue}if(!(lt%e))if(yt)try{J=yt.fromJD(lt/e+o),J.day()===1?J.month()===1?F++:U++:W++}catch{}else J=new Date(lt),J.getUTCDate()===1?J.getUTCMonth()===0?F++:U++:W++}U+=F,W+=U;var st=V.length-q;return{exactYears:F/st,exactMonths:U/st,exactDays:W/st}}}),w1=Dt((Q,Z)=>{Z.exports=function(c){return c}}),E_=Dt(Q=>{var Z=Yi(),c=as(),g=w1(),I=Ca().BADNUM,S=1e-9;Q.findBin=function(n,o,i){if(Z(o.start))return i?Math.ceil((n-o.start)/o.size-S)-1:Math.floor((n-o.start)/o.size+S);var l=0,f=o.length,x=0,y=f>1?(o[f-1]-o[0])/(f-1):1,v,T;for(y>=0?T=i?t:e:T=i?a:r,n+=y*S*(i?-1:1)*(y>=0?1:-1);l<f&&x++<100;)v=Math.floor((l+f)/2),T(o[v],n)?l=v+1:f=v;return x>90&&c.log("Long binary search..."),l-1};function t(n,o){return n<o}function e(n,o){return n<=o}function r(n,o){return n>o}function a(n,o){return n>=o}Q.sorterAsc=function(n,o){return n-o},Q.sorterDes=function(n,o){return o-n},Q.distinctVals=function(n){var o=n.slice();o.sort(Q.sorterAsc);var i;for(i=o.length-1;i>-1&&o[i]===I;i--);for(var l=o[i]-o[0]||1,f=l/(i||1)/1e4,x=[],y,v=0;v<=i;v++){var T=o[v],u=T-y;y===void 0?(x.push(T),y=T):u>f&&(l=Math.min(l,u),x.push(T),y=T)}return{vals:x,minDiff:l}},Q.roundUp=function(n,o,i){for(var l=0,f=o.length-1,x,y=0,v=i?0:1,T=i?1:0,u=i?Math.ceil:Math.floor;l<f&&y++<100;)x=u((l+f)/2),o[x]<=n?l=x+v:f=x-T;return o[l]},Q.sort=function(n,o){for(var i=0,l=0,f=1;f<n.length;f++){var x=o(n[f],n[f-1]);if(x<0?i=1:x>0&&(l=1),i&&l)return n.sort(o)}return l?n:n.reverse()},Q.findIndexOfMin=function(n,o){o=o||g;for(var i=1/0,l,f=0;f<n.length;f++){var x=o(n[f]);x<i&&(i=x,l=f)}return l}}),G0=Dt((Q,Z)=>{Z.exports=function(c){return Object.keys(c).sort()}}),p6=Dt(Q=>{var Z=Yi(),c=Ma().isArrayOrTypedArray;Q.aggNums=function(g,I,S,t){var e,r;if((!t||t>S.length)&&(t=S.length),Z(I)||(I=!1),c(S[0])){for(r=new Array(t),e=0;e<t;e++)r[e]=Q.aggNums(g,I,S[e]);S=r}for(e=0;e<t;e++)Z(I)?Z(S[e])&&(I=g(+I,+S[e])):I=S[e];return I},Q.len=function(g){return Q.aggNums(function(I){return I+1},0,g)},Q.mean=function(g,I){return I||(I=Q.len(g)),Q.aggNums(function(S,t){return S+t},0,g)/I},Q.geometricMean=function(g,I){return I||(I=Q.len(g)),Math.pow(Q.aggNums(function(S,t){return S*t},1,g),1/I)},Q.midRange=function(g){if(!(g===void 0||g.length===0))return(Q.aggNums(Math.max,null,g)+Q.aggNums(Math.min,null,g))/2},Q.variance=function(g,I,S){return I||(I=Q.len(g)),Z(S)||(S=Q.mean(g,I)),Q.aggNums(function(t,e){return t+Math.pow(e-S,2)},0,g)/I},Q.stdev=function(g,I,S){return Math.sqrt(Q.variance(g,I,S))},Q.median=function(g){var I=g.slice().sort();return Q.interp(I,.5)},Q.interp=function(g,I){if(!Z(I))throw"n should be a finite number";if(I=I*g.length-.5,I<0)return g[0];if(I>g.length-1)return g[g.length-1];var S=I%1;return S*g[Math.ceil(I)]+(1-S)*g[Math.floor(I)]}}),m6=Dt((Q,Z)=>{var c=ko(),g=c.mod,I=c.modHalf,S=Math.PI,t=2*S;function e(T){return T/180*S}function r(T){return T/S*180}function a(T){return Math.abs(T[1]-T[0])>t-1e-14}function n(T,u){return I(u-T,t)}function o(T,u){return Math.abs(n(T,u))}function i(T,u){if(a(u))return!0;var b,_;u[0]<u[1]?(b=u[0],_=u[1]):(b=u[1],_=u[0]),b=g(b,t),_=g(_,t),b>_&&(_+=t);var P=g(T,t),M=P+t;return P>=b&&P<=_||M>=b&&M<=_}function l(T,u,b,_){if(!i(u,_))return!1;var P,M;return b[0]<b[1]?(P=b[0],M=b[1]):(P=b[1],M=b[0]),T>=P&&T<=M}function f(T,u,b,_,P,M,C){P=P||0,M=M||0;var A=a([b,_]),h,p,k,w,R;A?(h=0,p=S,k=t):b<_?(h=b,k=_):(h=_,k=b),T<u?(w=T,R=u):(w=u,R=T);function O(F,U){return[F*Math.cos(U)+P,M-F*Math.sin(U)]}var j=Math.abs(k-h)<=S?0:1;function V(F,U,W){return"A"+[F,F]+" "+[0,j,W]+" "+O(F,U)}var H;return A?w===null?H="M"+O(R,h)+V(R,p,0)+V(R,k,0)+"Z":H="M"+O(w,h)+V(w,p,0)+V(w,k,0)+"ZM"+O(R,h)+V(R,p,1)+V(R,k,1)+"Z":w===null?(H="M"+O(R,h)+V(R,k,0),C&&(H+="L0,0Z")):H="M"+O(w,h)+"L"+O(R,h)+V(R,k,0)+"L"+O(w,k)+V(w,h,1)+"Z",H}function x(T,u,b,_,P){return f(null,T,u,b,_,P,0)}function y(T,u,b,_,P){return f(null,T,u,b,_,P,1)}function v(T,u,b,_,P,M){return f(T,u,b,_,P,M,1)}Z.exports={deg2rad:e,rad2deg:r,angleDelta:n,angleDist:o,isFullCircle:a,isAngleInsideSector:i,isPtInsideSector:l,pathArc:x,pathSector:y,pathAnnulus:v}}),g6=Dt(Q=>{Q.isLeftAnchor=function(Z){return Z.xanchor==="left"||Z.xanchor==="auto"&&Z.x<=1/3},Q.isCenterAnchor=function(Z){return Z.xanchor==="center"||Z.xanchor==="auto"&&Z.x>1/3&&Z.x<2/3},Q.isRightAnchor=function(Z){return Z.xanchor==="right"||Z.xanchor==="auto"&&Z.x>=2/3},Q.isTopAnchor=function(Z){return Z.yanchor==="top"||Z.yanchor==="auto"&&Z.y>=2/3},Q.isMiddleAnchor=function(Z){retur Line truncated
`);if(on!==-1&&(pn=Yr.substr(on+1),Yr=Yr.substr(0,on)),$r&&(pn!==void 0&&(Yr==="00:00:00"||Yr==="00:00")?(Yr=pn,pn=""):Yr.length===8&&(Yr=Yr.replace(/:00$/,""))),pn)if(Rr)Gr==="d"?Yr+=", "+pn:Yr=pn+(Yr?", "+Yr:"");else if(!ze._inCalcTicks||ze._prevDateHead!==pn)ze._prevDateHead=pn,Yr+="<br>"+pn;else{var Ce=ji(ze),dr=ze._trueSide||ze.side;(!Ce&&dr==="top"||Ce&&dr==="bottom")&&(Yr+="<br> ")}Ie.text=Yr}function nn(ze,Ie,Rr,$r,Gr){var Br=ze.dtick,Yr=Ie.x,pn=ze.tickformat,on=typeof Br=="string"&&Br.charAt(0);if(Gr==="never"&&(Gr=""),$r&&on!=="L"&&(Br="L3",on="L"),pn||on==="L")Ie.text=qe(Math.pow(10,Yr),ze,Gr,$r);else if(g(Br)||on==="D"&&(ze.minorloglabels==="complete"||t.mod(Yr+.01,1)<.1)){ze.minorloglabels==="complete"&&!(t.mod(Yr+.01,1)<.1)&&(Ie.fontSize*=.75);var Ce=Math.pow(10,Yr).toExponential(0),dr=Ce.split("e"),Hr=+dr[1],_n=Math.abs(Hr),Fn=ze.exponentformat;Fn==="power"||re(Fn)&&Fn!=="SI extended"&&le(Hr)||re(Fn)&&Fn==="SI extended"&&we(Hr)?(Ie.text=dr[0],_n>0&&(Ie.text+="x10"),Ie.text==="1x10"&&(Ie.text="10"),Hr!==0&&Hr!==1&&(Ie.text+="<sup>"+(Hr>0?"":j)+_n+"</sup>"),Ie.fontSize*=1.25):(Fn==="e"||Fn==="E")&&_n>2?Ie.text=dr[0]+Fn+(Hr>0?"+":j)+_n:(Ie.text=qe(Math.pow(10,Yr),ze,"","fakehover"),Br==="D1"&&ze._id.charAt(0)==="y"&&(Ie.dy-=Ie.fontSize/6))}else if(on==="D")Ie.text=ze.minorloglabels==="none"?"":String(Math.round(Math.pow(10,t.mod(Yr,1)))),Ie.fontSize*=.75;else throw"unrecognized dtick "+String(Br);if(ze.dtick==="D1"){var Qn=String(Ie.text).charAt(0);(Qn==="0"||Qn==="1")&&(ze._id.charAt(0)==="y"?Ie.dx-=Ie.fontSize/4:(Ie.dy+=Ie.fontSize/2,Ie.dx+=(ze.range[1]>ze.range[0]?1:-1)*Ie.fontSize*(Yr<0?.5:.25)))}}function Le(ze,Ie){var Rr=ze._categories[Math.round(Ie.x)];Rr===void 0&&(Rr=""),Ie.text=String(Rr)}function Gt(ze,Ie,Rr){var $r=Math.round(Ie.x),Gr=ze._categories[$r]||[],Br=Gr[1]===void 0?"":String(Gr[1]),Yr=Gr[0]===void 0?"":String(Gr[0]);Rr?Ie.text=Yr+" - "+Br:(Ie.text=Br,Ie.text2=Yr)}function ne(ze,Ie,Rr,$r,Gr){Gr==="never"?Gr="":ze.showexponent==="all"&&Math.abs(Ie.x/ze.dtick)<1e-6&&(Gr="hide"),Ie.text=qe(Ie.x,ze,Gr,$r)}function Ct(ze,Ie,Rr,$r,Gr){if(ze.thetaunit==="radians"&&!Rr){var Br=Ie.x/180;if(Br===0)Ie.text="0";else{var Yr=gt(Br);if(Yr[1]>=100)Ie.text=qe(t.deg2rad(Ie.x),ze,Gr,$r);else{var pn=Ie.x<0;Yr[1]===1?Yr[0]===1?Ie.text="π":Ie.text=Yr[0]+"π":Ie.text=["<sup>",Yr[0],"</sup>","⁄","<sub>",Yr[1],"</sub>","π"].join(""),pn&&(Ie.text=j+Ie.text)}}}else Ie.text=qe(Ie.x,ze,Gr,$r)}function gt(ze){function Ie(pn,on){return Math.abs(pn-on)<=1e-6}function Rr(pn,on){return Ie(on,0)?pn:Rr(on,pn%on)}function $r(pn){for(var on=1;!Ie(Math.round(pn*on)/on,pn);)on*=10;return on}var Gr=$r(ze),Br=ze*Gr,Yr=Math.abs(Rr(Br,Gr));return[Math.round(Br/Yr),Math.round(Gr/Yr)]}var St=["f","p","n","μ","m","","k","M","G","T"],Nt=["q","r","y","z","a",...St,"P","E","Z","Y","R","Q"],re=ze=>["SI","SI extended","B"].includes(ze);function le(ze){return ze>14||ze<-15}function we(ze){return ze>32||ze<-30}function Ue(ze,Ie){return re(Ie)?!!(Ie==="SI extended"&&we(ze)||Ie!=="SI extended"&&le(ze)):!1}function qe(ze,Ie,Rr,$r){var Gr=ze<0,Br=Ie._tickround,Yr=Rr||Ie.exponentformat||"B",pn=Ie._tickexponent,on=rt.getTickFormat(Ie),Ce=Ie.separatethousands;if($r){var dr={exponentformat:Yr,minexponent:Ie.minexponent,dtick:Ie.showexponent==="none"?Ie.dtick:g(ze)&&Math.abs(ze)||1,range:Ie.showexponent==="none"?Ie.range.map(Ie.r2d):[0,ze||1]};Wr(dr),Br=(Number(dr._tickround)||0)+4,pn=dr._tickexponent,Ie.hoverformat&&(on=Ie.hoverformat)}if(on)return Ie._numFormat(on)(ze).replace(/-/g,j);var Hr=Math.pow(10,-Br)/2;if(Yr==="none"&&(pn=0),ze=Math.abs(ze),ze<Hr)ze="0",Gr=!1;else{if(ze+=Hr,pn&&(ze*=Math.pow(10,-pn),Br+=pn),Br===0)ze=String(Math.floor(ze));else if(Br<0){ze=String(Math.round(ze)),ze=ze.substr(0,ze.length+Br);for(var _n=Br;_n<0;_n++)ze+="0"}else{ze=String(ze);var Fn=ze.indexOf(".")+1;Fn&&(ze=ze.substr(0,Fn+Br).replace(/\.?0+$/,""))}ze=t.numSeparate(ze,Ie._separators,Ce)}if(pn&&Yr!=="hide"){Ue(pn,Yr)&&(Yr="power");var Qn;pn<0?Qn=j+-pn:Yr!=="power"?Qn="+"+pn:Qn=String(pn),Yr==="e"||Yr==="E"?ze+=Yr+Qn:Yr==="power"?ze+="×10<sup>"+Qn+"</sup>":Yr==="B"&&pn===9?ze+="B":re(Yr)&&(ze+=Yr==="SI extended"?Nt[pn/3+10]:St[pn/3+5])}return Gr?j+ze:ze}rt.getTickFormat=function(ze){var Ie;function Rr(on){return typeof on!="string"?on:Number(on.replace("M",""))*P}function $r(on,Ce){var dr=["L","D"];if(typeof on==typeof Ce){if(typeof on=="number")return on-Ce;var Hr=dr.indexOf(on.charAt(0)),_n=dr.indexOf(Ce.charAt(0));return Hr===_n?Number(on.replace(/(L|D)/g,""))-Number(Ce.replace(/(L|D)/g,"")):Hr-_n}else return typeof on=="number"?1:-1}function Gr(on,Ce,dr){var Hr=dr||function(Qn){return Qn},_n=Ce[0],Fn=Ce[1];return(!_n&&typeof _n!="number"||Hr(_n)<=Hr(on))&&(!Fn&&typeof Fn!="number"||Hr(Fn)>=Hr(on))}function Br(on,Ce){var dr=Ce[0]===null,Hr=Ce[1]===null,_n=$r(on,Ce[0])>=0,Fn=$r(on,Ce[1])<=0;return(dr||_n)&&(Hr||Fn)}var Yr,pn;if(ze.tickformatstops&&ze.tickformatstops.length>0)switch(ze.type){case"date":case"linear":{for(Ie=0;Ie<ze.tickform Line truncated
`));var fe;yt.med!==t?fe=yt.med:yt.q1!==t?yt.q3!==t?fe=(yt.q1+yt.q3)/2:fe=yt.q1:yt.q3!==t?fe=yt.q3:fe=0,yt.med=fe,yt.q1=yt.q3=fe,yt.lf=yt.uf=fe,yt.mean=yt.sd=fe,yt.ln=yt.un=fe,yt.min=yt.max=fe}Y=Math.min(Y,yt.min),ft=Math.max(ft,yt.max),yt.pts2=mt.filter(at),h.push(yt)}}P._extremes[R._id]=g.findExtremes(R,[Y,ft],{padded:!0})}else{var pe=R.makeCalcdata(P,O),se=a(J,lt),Tt=J.length,Lt=n(Tt);for(k=0;k<P._length;k++)if(rt=pe[k],!!c(rt)){var Mt=S.findBin(U[k],se);Mt>=0&&Mt<Tt&&(dt={v:rt,i:k},i(dt,P,k),Lt[Mt].push(dt))}var ee=1/0,ve=-1/0,oe=P.quartilemethod,Te=oe==="exclusive",He=oe==="inclusive";for(k=0;k<Tt;k++)if(Lt[k].length>0){if(yt={},yt.pos=yt[V]=J[k],mt=yt.pts=Lt[k].sort(f),st=yt[O]=mt.map(x),tt=st.length,yt.min=st[0],yt.max=st[tt-1],yt.mean=S.mean(st,tt),yt.sd=S.stdev(st,tt,yt.mean)*P.sdmultiple,yt.med=S.interp(st,.5),tt%2&&(Te||He)){var Ge,cr;Te?(Ge=st.slice(0,tt/2),cr=st.slice(tt/2+1)):He&&(Ge=st.slice(0,tt/2+1),cr=st.slice(tt/2)),yt.q1=S.interp(Ge,.5),yt.q3=S.interp(cr,.5)}else yt.q1=S.interp(st,.25),yt.q3=S.interp(st,.75);yt.lf=y(yt,st,tt),yt.uf=v(yt,st,tt),yt.lo=T(yt),yt.uo=u(yt);var ur=b(yt,tt);yt.ln=yt.med-ur,yt.un=yt.med+ur,ee=Math.min(ee,yt.ln),ve=Math.max(ve,yt.un),yt.pts2=mt.filter(at),h.push(yt)}P.notched&&S.isTypedArray(pe)&&(pe=Array.from(pe)),P._extremes[R._id]=g.findExtremes(R,P.notched?pe.concat([ee,ve]):pe,{padded:!0})}return l(h,P),h.length>0?(h[0].t={num:M[p],dPos:lt,posLetter:V,valLetter:O,labels:{med:e(_,"median:"),min:e(_,"min:"),q1:e(_,"q1:"),q3:e(_,"q3:"),max:e(_,"max:"),mean:P.boxmean==="sd"||P.sizemode==="sd"?e(_,"mean ± σ:").replace("σ",P.sdmultiple===1?"σ":P.sdmultiple+"σ"):e(_,"mean:"),lf:e(_,"lower fence:"),uf:e(_,"upper fence:")}},M[p]++,h):[{t:{empty:!0}}]};function r(_,P,M,C){var A=P in _,h=P+"0"in _,p="d"+P in _;if(A||h&&p){var k=M.makeCalcdata(_,P),w=I(_,M,P,k).vals;return[w,k]}var R;h?R=_[P+"0"]:"name"in _&&(M.type==="category"||c(_.name)&&["linear","log"].indexOf(M.type)!==-1||S.isDateTime(_.name)&&M.type==="date")?R=_.name:R=C;for(var O=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,_[P+"calendar"]),j=_._length,V=new Array(j),H=0;H<j;H++)V[H]=O;return[V]}function a(_,P){for(var M=_.length,C=new Array(M+1),A=0;A<M;A++)C[A]=_[A]-P;return C[M]=_[M-1]+P,C}function n(_){for(var P=new Array(_),M=0;M<_;M++)P[M]=[];return P}var o={text:"tx",hovertext:"htx"};function i(_,P,M){for(var C in o)S.isArrayOrTypedArray(P[C])&&(Array.isArray(M)?S.isArrayOrTypedArray(P[C][M[0]])&&(_[o[C]]=P[C][M[0]][M[1]]):_[o[C]]=P[C][M])}function l(_,P){if(S.isArrayOrTypedArray(P.selectedpoints))for(var M=0;M<_.length;M++){for(var C=_[M].pts||[],A={},h=0;h<C.length;h++)A[C[h].i]=h;S.tagSelected(C,P,A)}}function f(_,P){return _.v-P.v}function x(_){return _.v}function y(_,P,M){return M===0?_.q1:Math.min(_.q1,P[Math.min(S.findBin(2.5*_.q1-1.5*_.q3,P,!0)+1,M-1)])}function v(_,P,M){return M===0?_.q3:Math.max(_.q3,P[Math.max(S.findBin(2.5*_.q3-1.5*_.q1,P),0)])}function T(_){return 4*_.q1-3*_.q3}function u(_){return 4*_.q3-3*_.q1}function b(_,P){return P===0?0:1.57*(_.q3-_.q1)/Math.sqrt(P)}}),j6=Dt((Q,Z)=>{var c=Ls(),g=kn(),I=vv().getAxisGroup,S=["v","h"];function t(r,a){for(var n=r.calcdata,o=a.xaxis,i=a.yaxis,l=0;l<S.length;l++){for(var f=S[l],x=f==="h"?i:o,y=[],v=0;v<n.length;v++){var T=n[v],u=T[0].t,b=T[0].trace;b.visible===!0&&(b.type==="box"||b.type==="candlestick")&&!u.empty&&(b.orientation||"v")===f&&b.xaxis===o._id&&b.yaxis===i._id&&y.push(v)}e("box",r,y,x)}}function e(r,a,n,o){var i=a.calcdata,l=a._fullLayout,f=o._id,x=f.charAt(0),y,v,T,u=[],b=0;for(y=0;y<n.length;y++)for(T=i[n[y]],v=0;v<T.length;v++)u.push(o.c2l(T[v].pos,!0)),b+=(T[v].pts2||[]).length;if(u.length){var _=g.distinctVals(u);(o.type==="category"||o.type==="multicategory")&&(_.minDiff=1);var P=_.minDiff/2;c.minDtick(o,_.minDiff,_.vals[0],!0);var M=r==="violin"?"_numViolins":"_numBoxes",C=l[M],A=l[r+"mode"]==="group"&&C>1,h=1-l[r+"gap"],p=1-l[r+"groupgap"];for(y=0;y<n.length;y++){T=i[n[y]];var k=T[0].trace,w=T[0].t,R=k.width,O=k.side,j,V,H,F;if(R)j=V=F=R/2,H=0;else if(j=P,A){var U=I(l,o._id)+k.orientation,W=l._alignmentOpts[U]||{},q=W[k.alignmentgroup]||{},J=Object.keys(q.offsetGroups||{}).length,lt=J||C,yt=J?k._offsetIndex:w.num;V=j*h*p/lt,H=2*j*(-.5+(yt+.5)/lt)*h,F=j*h/lt}else V=j*h*p,H=0,F=j;w.dPos=j,w.bPos=H,w.bdPos=V,w.wHover=F;var mt,st,tt=H+V,dt,rt,at,vt,it,Y,ft=!!R,ut=(k.boxpoints||k.points)&&b>0;if(O==="positive"?(mt=j*(R?1:.5),dt=tt,st=dt=H):O==="negative"?(mt=dt=H,st=j*(R?1:.5),rt=tt):(mt=st=j,dt=rt=tt),ut){var kt=k.pointpos,It=k.jitter,Pt=k.marker.size/2,qt=0;kt+It>=0&&(qt=tt*(kt+It),qt>mt?(ft=!0,it=Pt,at=qt):qt>dt&&(it=Pt,at=mt)),qt<=mt&&(at=mt);var Wt=0;kt-It<=0&&(Wt=-tt*(kt-It),Wt>st?(ft=!0,Y=Pt,vt=Wt):Wt>rt&&(Y=Pt,vt=st)),Wt<=st&&(vt=st)}else at=mt,vt=st;var Jt=new Array(T.length);for(v=0;v<T.length;v++)Jt[v]=T[v].pos;k._extremes[f]=c.findExtremes(o,Jt,{padded:ft,vpadminus:vt,vpadplus:at,vpadLinearized:!0,ppadminus:{x:Y,y:it}[x],ppadplus:{x:it,y:Y}[x]})}}}Z.exports={crossTraceCalc:t,setPositionOffset:e} Line truncated
`)>-1&&(st?dt=dt.split(`
`+w(q.dayMonthYear,V,U,W);return w(H,V,U,W)};var j=3*e;Q.incrementMonth=function(V,H,F){F=v(F)&&F;var U=I(V,e);if(V=Math.round(V-U),F)try{var W=Math.round(V/e)+o,q=i.getComponentMethod("calendars","getCal")(F),J=q.fromJD(W);return H%12?q.add(J,H,"m"):q.add(J,H/12,"y"),(J.toJD()-o)*e+U}catch{g.error("invalid ms "+V+" in calendar "+F)}var lt=new Date(V+j);return lt.setUTCMonth(lt.getUTCMonth()+H)+U-j},Q.findExactDates=function(V,H){for(var F=0,U=0,W=0,q=0,J,lt,yt=v(H)&&i.getComponentMethod("calendars","getCal")(H),mt=0;mt<V.length;mt++){if(lt=V[mt],!c(lt)){q++;continue}if(!(lt%e))if(yt)try{J=yt.fromJD(lt/e+o),J.day()===1?J.month()===1?F++:U++:W++}catch{}else J=new Date(lt),J.getUTCDate()===1?J.getUTCMonth()===0?F++:U++:W++}U+=F,W+=U;var st=V.length-q;return{exactYears:F/st,exactMonths:U/st,exactDays:W/st}}}),T1=Dt((Q,Z)=>{Z.exports=function(c){return c}}),C_=Dt(Q=>{var Z=Hn(),c=as(),g=T1(),I=sa().BADNUM,S=1e-9;Q.findBin=function(n,o,i){if(Z(o.start))return i?Math.ceil((n-o.start)/o.size-S)-1:Math.floor((n-o.start)/o.size+S);var l=0,f=o.length,x=0,y=f>1?(o[f-1]-o[0])/(f-1):1,v,T;for(y>=0?T=i?t:e:T=i?a:r,n+=y*S*(i?-1:1)*(y>=0?1:-1);l<f&&x++<100;)v=Math.floor((l+f)/2),T(o[v],n)?l=v+1:f=v;return x>90&&c.log("Long binary search..."),l-1};function t(n,o){return n<o}function e(n,o){return n<=o}function r(n,o){return n>o}function a(n,o){return n>=o}Q.sorterAsc=function(n,o){return n-o},Q.sorterDes=function(n,o){return o-n},Q.distinctVals=function(n){var o=n.slice();o.sort(Q.sorterAsc);var i;for(i=o.length-1;i>-1&&o[i]===I;i--);for(var l=o[i]-o[0]||1,f=l/(i||1)/1e4,x=[],y,v=0;v<=i;v++){var T=o[v],u=T-y;y===void 0?(x.push(T),y=T):u>f&&(l=Math.min(l,u),x.push(T),y=T)}return{vals:x,minDiff:l}},Q.roundUp=function(n,o,i){for(var l=0,f=o.length-1,x,y=0,v=i?0:1,T=i?1:0,u=i?Math.ceil:Math.floor;l<f&&y++<100;)x=u((l+f)/2),o[x]<=n?l=x+v:f=x-T;return o[l]},Q.sort=function(n,o){for(var i=0,l=0,f=1;f<n.length;f++){var x=o(n[f],n[f-1]);if(x<0?i=1:x>0&&(l=1),i&&l)return n.sort(o)}return l?n:n.reverse()},Q.findIndexOfMin=function(n,o){o=o||g;for(var i=1/0,l,f=0;f<n.length;f++){var x=o(n[f]);x<i&&(i=x,l=f)}return l}}),Y0=Dt((Q,Z)=>{Z.exports=function(c){return Object.keys(c).sort()}}),m6=Dt(Q=>{var Z=Hn(),c=la().isArrayOrTypedArray;Q.aggNums=function(g,I,S,t){var e,r;if((!t||t>S.length)&&(t=S.length),Z(I)||(I=!1),c(S[0])){for(r=new Array(t),e=0;e<t;e++)r[e]=Q.aggNums(g,I,S[e]);S=r}for(e=0;e<t;e++)Z(I)?Z(S[e])&&(I=g(+I,+S[e])):I=S[e];return I},Q.len=function(g){return Q.aggNums(function(I){return I+1},0,g)},Q.mean=function(g,I){return I||(I=Q.len(g)),Q.aggNums(function(S,t){return S+t},0,g)/I},Q.geometricMean=function(g,I){return I||(I=Q.len(g)),Math.pow(Q.aggNums(function(S,t){return S*t},1,g),1/I)},Q.midRange=function(g){if(!(g===void 0||g.length===0))return(Q.aggNums(Math.max,null,g)+Q.aggNums(Math.min,null,g))/2},Q.variance=function(g,I,S){return I||(I=Q.len(g)),Z(S)||(S=Q.mean(g,I)),Q.aggNums(function(t,e){return t+Math.pow(e-S,2)},0,g)/I},Q.stdev=function(g,I,S){return Math.sqrt(Q.variance(g,I,S))},Q.median=function(g){var I=g.slice().sort();return Q.interp(I,.5)},Q.interp=function(g,I){if(!Z(I))throw"n should be a finite number";if(I=I*g.length-.5,I<0)return g[0];if(I>g.length-1)return g[g.length-1];var S=I%1;return S*g[Math.ceil(I)]+(1-S)*g[Math.floor(I)]}}),g6=Dt((Q,Z)=>{var c=ko(),g=c.mod,I=c.modHalf,S=Math.PI,t=2*S;function e(T){return T/180*S}function r(T){return T/S*180}function a(T){return Math.abs(T[1]-T[0])>t-1e-14}function n(T,u){return I(u-T,t)}function o(T,u){return Math.abs(n(T,u))}function i(T,u){if(a(u))return!0;var b,_;u[0]<u[1]?(b=u[0],_=u[1]):(b=u[1],_=u[0]),b=g(b,t),_=g(_,t),b>_&&(_+=t);var P=g(T,t),M=P+t;return P>=b&&P<=_||M>=b&&M<=_}function l(T,u,b,_){if(!i(u,_))return!1;var P,M;return b[0]<b[1]?(P=b[0],M=b[1]):(P=b[1],M=b[0]),T>=P&&T<=M}function f(T,u,b,_,P,M,C){P=P||0,M=M||0;var A=a([b,_]),h,p,k,w,B;A?(h=0,p=S,k=t):b<_?(h=b,k=_):(h=_,k=b),T<u?(w=T,B=u):(w=u,B=T);function O(F,U){return[F*Math.cos(U)+P,M-F*Math.sin(U)]}var j=Math.abs(k-h)<=S?0:1;function V(F,U,W){return"A"+[F,F]+" "+[0,j,W]+" "+O(F,U)}var H;return A?w===null?H="M"+O(B,h)+V(B,p,0)+V(B,k,0)+"Z":H="M"+O(w,h)+V(w,p,0)+V(w,k,0)+"ZM"+O(B,h)+V(B,p,1)+V(B,k,1)+"Z":w===null?(H="M"+O(B,h)+V(B,k,0),C&&(H+="L0,0Z")):H="M"+O(w,h)+"L"+O(B,h)+V(B,k,0)+"L"+O(w,k)+V(w,h,1)+"Z",H}function x(T,u,b,_,P){return f(null,T,u,b,_,P,0)}function y(T,u,b,_,P){return f(null,T,u,b,_,P,1)}function v(T,u,b,_,P,M){return f(T,u,b,_,P,M,1)}Z.exports={deg2rad:e,rad2deg:r,angleDelta:n,angleDist:o,isFullCircle:a,isAngleInsideSector:i,isPtInsideSector:l,pathArc:x,pathSector:y,pathAnnulus:v}}),v6=Dt(Q=>{Q.isLeftAnchor=function(Z){return Z.xanchor==="left"||Z.xanchor==="auto"&&Z.x<=1/3},Q.isCenterAnchor=function(Z){return Z.xanchor==="center"||Z.xanchor==="auto"&&Z.x>1/3&&Z.x<2/3},Q.isRightAnchor=function(Z){return Z.xanchor==="right"||Z.xanchor==="auto"&&Z.x>=2/3},Q.isTopAnchor=function(Z){return Z.yanchor==="top"||Z.yanchor==="auto"&&Z.y>=2/3},Q.isMiddleAnchor=function(Z){retur Line truncated
`);if(on!==-1&&(mn=Yr.substr(on+1),Yr=Yr.substr(0,on)),$r&&(mn!==void 0&&(Yr==="00:00:00"||Yr==="00:00")?(Yr=mn,mn=""):Yr.length===8&&(Yr=Yr.replace(/:00$/,""))),mn)if(Br)Gr==="d"?Yr+=", "+mn:Yr=mn+(Yr?", "+Yr:"");else if(!Oe._inCalcTicks||Oe._prevDateHead!==mn)Oe._prevDateHead=mn,Yr+="<br>"+mn;else{var Ce=Hi(Oe),pr=Oe._trueSide||Oe.side;(!Ce&&pr==="top"||Ce&&pr==="bottom")&&(Yr+="<br> ")}ze.text=Yr}function nn(Oe,ze,Br,$r,Gr){var Rr=Oe.dtick,Yr=ze.x,mn=Oe.tickformat,on=typeof Rr=="string"&&Rr.charAt(0);if(Gr==="never"&&(Gr=""),$r&&on!=="L"&&(Rr="L3",on="L"),mn||on==="L")ze.text=qe(Math.pow(10,Yr),Oe,Gr,$r);else if(g(Rr)||on==="D"&&(Oe.minorloglabels==="complete"||t.mod(Yr+.01,1)<.1)){Oe.minorloglabels==="complete"&&!(t.mod(Yr+.01,1)<.1)&&(ze.fontSize*=.75);var Ce=Math.pow(10,Yr).toExponential(0),pr=Ce.split("e"),Hr=+pr[1],_n=Math.abs(Hr),Bn=Oe.exponentformat;Bn==="power"||re(Bn)&&Bn!=="SI extended"&&le(Hr)||re(Bn)&&Bn==="SI extended"&&ke(Hr)?(ze.text=pr[0],_n>0&&(ze.text+="x10"),ze.text==="1x10"&&(ze.text="10"),Hr!==0&&Hr!==1&&(ze.text+="<sup>"+(Hr>0?"":j)+_n+"</sup>"),ze.fontSize*=1.25):(Bn==="e"||Bn==="E")&&_n>2?ze.text=pr[0]+Bn+(Hr>0?"+":j)+_n:(ze.text=qe(Math.pow(10,Yr),Oe,"","fakehover"),Rr==="D1"&&Oe._id.charAt(0)==="y"&&(ze.dy-=ze.fontSize/6))}else if(on==="D")ze.text=Oe.minorloglabels==="none"?"":String(Math.round(Math.pow(10,t.mod(Yr,1)))),ze.fontSize*=.75;else throw"unrecognized dtick "+String(Rr);if(Oe.dtick==="D1"){var ri=String(ze.text).charAt(0);(ri==="0"||ri==="1")&&(Oe._id.charAt(0)==="y"?ze.dx-=ze.fontSize/4:(ze.dy+=ze.fontSize/2,ze.dx+=(Oe.range[1]>Oe.range[0]?1:-1)*ze.fontSize*(Yr<0?.5:.25)))}}function Le(Oe,ze){var Br=Oe._categories[Math.round(ze.x)];Br===void 0&&(Br=""),ze.text=String(Br)}function Gt(Oe,ze,Br){var $r=Math.round(ze.x),Gr=Oe._categories[$r]||[],Rr=Gr[1]===void 0?"":String(Gr[1]),Yr=Gr[0]===void 0?"":String(Gr[0]);Br?ze.text=Yr+" - "+Rr:(ze.text=Rr,ze.text2=Yr)}function ne(Oe,ze,Br,$r,Gr){Gr==="never"?Gr="":Oe.showexponent==="all"&&Math.abs(ze.x/Oe.dtick)<1e-6&&(Gr="hide"),ze.text=qe(ze.x,Oe,Gr,$r)}function Ct(Oe,ze,Br,$r,Gr){if(Oe.thetaunit==="radians"&&!Br){var Rr=ze.x/180;if(Rr===0)ze.text="0";else{var Yr=gt(Rr);if(Yr[1]>=100)ze.text=qe(t.deg2rad(ze.x),Oe,Gr,$r);else{var mn=ze.x<0;Yr[1]===1?Yr[0]===1?ze.text="π":ze.text=Yr[0]+"π":ze.text=["<sup>",Yr[0],"</sup>","⁄","<sub>",Yr[1],"</sub>","π"].join(""),mn&&(ze.text=j+ze.text)}}}else ze.text=qe(ze.x,Oe,Gr,$r)}function gt(Oe){function ze(mn,on){return Math.abs(mn-on)<=1e-6}function Br(mn,on){return ze(on,0)?mn:Br(on,mn%on)}function $r(mn){for(var on=1;!ze(Math.round(mn*on)/on,mn);)on*=10;return on}var Gr=$r(Oe),Rr=Oe*Gr,Yr=Math.abs(Br(Rr,Gr));return[Math.round(Rr/Yr),Math.round(Gr/Yr)]}var St=["f","p","n","μ","m","","k","M","G","T"],Nt=["q","r","y","z","a",...St,"P","E","Z","Y","R","Q"],re=Oe=>["SI","SI extended","B"].includes(Oe);function le(Oe){return Oe>14||Oe<-15}function ke(Oe){return Oe>32||Oe<-30}function Ue(Oe,ze){return re(ze)?!!(ze==="SI extended"&&ke(Oe)||ze!=="SI extended"&&le(Oe)):!1}function qe(Oe,ze,Br,$r){var Gr=Oe<0,Rr=ze._tickround,Yr=Br||ze.exponentformat||"B",mn=ze._tickexponent,on=rt.getTickFormat(ze),Ce=ze.separatethousands;if($r){var pr={exponentformat:Yr,minexponent:ze.minexponent,dtick:ze.showexponent==="none"?ze.dtick:g(Oe)&&Math.abs(Oe)||1,range:ze.showexponent==="none"?ze.range.map(ze.r2d):[0,Oe||1]};qr(pr),Rr=(Number(pr._tickround)||0)+4,mn=pr._tickexponent,ze.hoverformat&&(on=ze.hoverformat)}if(on)return ze._numFormat(on)(Oe).replace(/-/g,j);var Hr=Math.pow(10,-Rr)/2;if(Yr==="none"&&(mn=0),Oe=Math.abs(Oe),Oe<Hr)Oe="0",Gr=!1;else{if(Oe+=Hr,mn&&(Oe*=Math.pow(10,-mn),Rr+=mn),Rr===0)Oe=String(Math.floor(Oe));else if(Rr<0){Oe=String(Math.round(Oe)),Oe=Oe.substr(0,Oe.length+Rr);for(var _n=Rr;_n<0;_n++)Oe+="0"}else{Oe=String(Oe);var Bn=Oe.indexOf(".")+1;Bn&&(Oe=Oe.substr(0,Bn+Rr).replace(/\.?0+$/,""))}Oe=t.numSeparate(Oe,ze._separators,Ce)}if(mn&&Yr!=="hide"){Ue(mn,Yr)&&(Yr="power");var ri;mn<0?ri=j+-mn:Yr!=="power"?ri="+"+mn:ri=String(mn),Yr==="e"||Yr==="E"?Oe+=Yr+ri:Yr==="power"?Oe+="×10<sup>"+ri+"</sup>":Yr==="B"&&mn===9?Oe+="B":re(Yr)&&(Oe+=Yr==="SI extended"?Nt[mn/3+10]:St[mn/3+5])}return Gr?j+Oe:Oe}rt.getTickFormat=function(Oe){var ze;function Br(on){return typeof on!="string"?on:Number(on.replace("M",""))*P}function $r(on,Ce){var pr=["L","D"];if(typeof on==typeof Ce){if(typeof on=="number")return on-Ce;var Hr=pr.indexOf(on.charAt(0)),_n=pr.indexOf(Ce.charAt(0));return Hr===_n?Number(on.replace(/(L|D)/g,""))-Number(Ce.replace(/(L|D)/g,"")):Hr-_n}else return typeof on=="number"?1:-1}function Gr(on,Ce,pr){var Hr=pr||function(ri){return ri},_n=Ce[0],Bn=Ce[1];return(!_n&&typeof _n!="number"||Hr(_n)<=Hr(on))&&(!Bn&&typeof Bn!="number"||Hr(Bn)>=Hr(on))}function Rr(on,Ce){var pr=Ce[0]===null,Hr=Ce[1]===null,_n=$r(on,Ce[0])>=0,Bn=$r(on,Ce[1])<=0;return(pr||_n)&&(Hr||Bn)}var Yr,mn;if(Oe.tickformatstops&&Oe.tickformatstops.length>0)switch(Oe.type){case"date":case"linear":{for(ze=0;ze<Oe.tickform Line truncated
`));var fe;yt.med!==t?fe=yt.med:yt.q1!==t?yt.q3!==t?fe=(yt.q1+yt.q3)/2:fe=yt.q1:yt.q3!==t?fe=yt.q3:fe=0,yt.med=fe,yt.q1=yt.q3=fe,yt.lf=yt.uf=fe,yt.mean=yt.sd=fe,yt.ln=yt.un=fe,yt.min=yt.max=fe}K=Math.min(K,yt.min),ft=Math.max(ft,yt.max),yt.pts2=mt.filter(at),h.push(yt)}}P._extremes[B._id]=g.findExtremes(B,[K,ft],{padded:!0})}else{var pe=B.makeCalcdata(P,O),se=a(J,lt),Tt=J.length,Lt=n(Tt);for(k=0;k<P._length;k++)if(rt=pe[k],!!c(rt)){var Mt=S.findBin(U[k],se);Mt>=0&&Mt<Tt&&(pt={v:rt,i:k},i(pt,P,k),Lt[Mt].push(pt))}var ee=1/0,ve=-1/0,oe=P.quartilemethod,Ae=oe==="exclusive",He=oe==="inclusive";for(k=0;k<Tt;k++)if(Lt[k].length>0){if(yt={},yt.pos=yt[V]=J[k],mt=yt.pts=Lt[k].sort(f),st=yt[O]=mt.map(x),tt=st.length,yt.min=st[0],yt.max=st[tt-1],yt.mean=S.mean(st,tt),yt.sd=S.stdev(st,tt,yt.mean)*P.sdmultiple,yt.med=S.interp(st,.5),tt%2&&(Ae||He)){var Ge,cr;Ae?(Ge=st.slice(0,tt/2),cr=st.slice(tt/2+1)):He&&(Ge=st.slice(0,tt/2+1),cr=st.slice(tt/2)),yt.q1=S.interp(Ge,.5),yt.q3=S.interp(cr,.5)}else yt.q1=S.interp(st,.25),yt.q3=S.interp(st,.75);yt.lf=y(yt,st,tt),yt.uf=v(yt,st,tt),yt.lo=T(yt),yt.uo=u(yt);var ur=b(yt,tt);yt.ln=yt.med-ur,yt.un=yt.med+ur,ee=Math.min(ee,yt.ln),ve=Math.max(ve,yt.un),yt.pts2=mt.filter(at),h.push(yt)}P.notched&&S.isTypedArray(pe)&&(pe=Array.from(pe)),P._extremes[B._id]=g.findExtremes(B,P.notched?pe.concat([ee,ve]):pe,{padded:!0})}return l(h,P),h.length>0?(h[0].t={num:M[p],dPos:lt,posLetter:V,valLetter:O,labels:{med:e(_,"median:"),min:e(_,"min:"),q1:e(_,"q1:"),q3:e(_,"q3:"),max:e(_,"max:"),mean:P.boxmean==="sd"||P.sizemode==="sd"?e(_,"mean ± σ:").replace("σ",P.sdmultiple===1?"σ":P.sdmultiple+"σ"):e(_,"mean:"),lf:e(_,"lower fence:"),uf:e(_,"upper fence:")}},M[p]++,h):[{t:{empty:!0}}]};function r(_,P,M,C){var A=P in _,h=P+"0"in _,p="d"+P in _;if(A||h&&p){var k=M.makeCalcdata(_,P),w=I(_,M,P,k).vals;return[w,k]}var B;h?B=_[P+"0"]:"name"in _&&(M.type==="category"||c(_.name)&&["linear","log"].indexOf(M.type)!==-1||S.isDateTime(_.name)&&M.type==="date")?B=_.name:B=C;for(var O=M.type==="multicategory"?M.r2c_just_indices(B):M.d2c(B,0,_[P+"calendar"]),j=_._length,V=new Array(j),H=0;H<j;H++)V[H]=O;return[V]}function a(_,P){for(var M=_.length,C=new Array(M+1),A=0;A<M;A++)C[A]=_[A]-P;return C[M]=_[M-1]+P,C}function n(_){for(var P=new Array(_),M=0;M<_;M++)P[M]=[];return P}var o={text:"tx",hovertext:"htx"};function i(_,P,M){for(var C in o)S.isArrayOrTypedArray(P[C])&&(Array.isArray(M)?S.isArrayOrTypedArray(P[C][M[0]])&&(_[o[C]]=P[C][M[0]][M[1]]):_[o[C]]=P[C][M])}function l(_,P){if(S.isArrayOrTypedArray(P.selectedpoints))for(var M=0;M<_.length;M++){for(var C=_[M].pts||[],A={},h=0;h<C.length;h++)A[C[h].i]=h;S.tagSelected(C,P,A)}}function f(_,P){return _.v-P.v}function x(_){return _.v}function y(_,P,M){return M===0?_.q1:Math.min(_.q1,P[Math.min(S.findBin(2.5*_.q1-1.5*_.q3,P,!0)+1,M-1)])}function v(_,P,M){return M===0?_.q3:Math.max(_.q3,P[Math.max(S.findBin(2.5*_.q3-1.5*_.q1,P),0)])}function T(_){return 4*_.q1-3*_.q3}function u(_){return 4*_.q3-3*_.q1}function b(_,P){return P===0?0:1.57*(_.q3-_.q1)/Math.sqrt(P)}}),U6=Dt((Q,Z)=>{var c=Ls(),g=kn(),I=xv().getAxisGroup,S=["v","h"];function t(r,a){for(var n=r.calcdata,o=a.xaxis,i=a.yaxis,l=0;l<S.length;l++){for(var f=S[l],x=f==="h"?i:o,y=[],v=0;v<n.length;v++){var T=n[v],u=T[0].t,b=T[0].trace;b.visible===!0&&(b.type==="box"||b.type==="candlestick")&&!u.empty&&(b.orientation||"v")===f&&b.xaxis===o._id&&b.yaxis===i._id&&y.push(v)}e("box",r,y,x)}}function e(r,a,n,o){var i=a.calcdata,l=a._fullLayout,f=o._id,x=f.charAt(0),y,v,T,u=[],b=0;for(y=0;y<n.length;y++)for(T=i[n[y]],v=0;v<T.length;v++)u.push(o.c2l(T[v].pos,!0)),b+=(T[v].pts2||[]).length;if(u.length){var _=g.distinctVals(u);(o.type==="category"||o.type==="multicategory")&&(_.minDiff=1);var P=_.minDiff/2;c.minDtick(o,_.minDiff,_.vals[0],!0);var M=r==="violin"?"_numViolins":"_numBoxes",C=l[M],A=l[r+"mode"]==="group"&&C>1,h=1-l[r+"gap"],p=1-l[r+"groupgap"];for(y=0;y<n.length;y++){T=i[n[y]];var k=T[0].trace,w=T[0].t,B=k.width,O=k.side,j,V,H,F;if(B)j=V=F=B/2,H=0;else if(j=P,A){var U=I(l,o._id)+k.orientation,W=l._alignmentOpts[U]||{},q=W[k.alignmentgroup]||{},J=Object.keys(q.offsetGroups||{}).length,lt=J||C,yt=J?k._offsetIndex:w.num;V=j*h*p/lt,H=2*j*(-.5+(yt+.5)/lt)*h,F=j*h/lt}else V=j*h*p,H=0,F=j;w.dPos=j,w.bPos=H,w.bdPos=V,w.wHover=F;var mt,st,tt=H+V,pt,rt,at,vt,it,K,ft=!!B,ut=(k.boxpoints||k.points)&&b>0;if(O==="positive"?(mt=j*(B?1:.5),pt=tt,st=pt=H):O==="negative"?(mt=pt=H,st=j*(B?1:.5),rt=tt):(mt=st=j,pt=rt=tt),ut){var kt=k.pointpos,It=k.jitter,Pt=k.marker.size/2,qt=0;kt+It>=0&&(qt=tt*(kt+It),qt>mt?(ft=!0,it=Pt,at=qt):qt>pt&&(it=Pt,at=mt)),qt<=mt&&(at=mt);var Wt=0;kt-It<=0&&(Wt=-tt*(kt-It),Wt>st?(ft=!0,K=Pt,vt=Wt):Wt>rt&&(K=Pt,vt=st)),Wt<=st&&(vt=st)}else at=mt,vt=st;var Jt=new Array(T.length);for(v=0;v<T.length;v++)Jt[v]=T[v].pos;k._extremes[f]=c.findExtremes(o,Jt,{padded:ft,vpadminus:vt,vpadplus:at,vpadLinearized:!0,ppadminus:{x:K,y:it}[x],ppadplus:{x:it,y:K}[x]})}}}Z.exports={crossTraceCalc:t,setPositionOffset:e} Line truncated
`)>-1&&(st?pt=pt.split(`
`).map(function(at){return" "+at}).join(`
`).slice(2):dt=`
`+dt.split(`
`).slice(2):pt=`
`+pt.split(`
`).map(function(at){return" "+at}).join(`
`))):dt=q.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return dt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=q.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=q.stylize(tt,"string"))}return tt+": "+dt}function x(q,J,lt){var yt=0,mt=q.reduce(function(st,tt){return yt++,tt.indexOf(`
`))):pt=q.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return pt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=q.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=q.stylize(tt,"string"))}return tt+": "+pt}function x(q,J,lt){var yt=0,mt=q.reduce(function(st,tt){return yt++,tt.indexOf(`
`)>=0&&yt++,st+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?lt[0]+(J===""?"":J+`
`)+" "+q.join(`,
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=j7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function C(q){return A(q)&&R(q)==="[object RegExp]"}Q.isRegExp=C,Q.types.isRegExp=C;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&R(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(R(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=U7();function R(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=_v(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(dt,rt){lt=dt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(dt,rt){dt?yt(dt):lt(rt)});try{q.apply(this,st)}catch(dt){yt(dt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(dt){process.nextTick(tt.bind(null,null,dt))},function(dt){process.nextTick(U.bind(null,dt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),KB=Dt((Q,Z)=>{function c(f,x){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);x&&(v=v.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),y.push.apply(y,v)}return y}function g(f){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?c(Object(y),!0).forEach(function(v){I(f,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(y,v))})}return f}function I(f,x,y){return x in f?Object.defineProperty(f,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[x]=y,f}function S(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function t(f,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function e(f,x,y){return x&&t(f.prototype,x),f}var r=ix(),a=r.Buffer,n=V7(),o=n.inspect,i=o&&o.custom||"inspect";function l(f,x,y){a.prototype.copy.call(f,x,y)}Z.exports=function(){function f(){S(this,f),this.head=null,this.tail=null,this.length=0}return e(f,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=x+y.data;return v}},{key:"concat",value:fun Line truncated
`)>-1&&(st?dt=dt.split(`
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=V7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function C(q){return A(q)&&B(q)==="[object RegExp]"}Q.isRegExp=C,Q.types.isRegExp=C;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&B(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(B(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=H7();function B(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=wv(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{q.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),dN=Dt((Q,Z)=>{function c(f,x){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);x&&(v=v.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),y.push.apply(y,v)}return y}function g(f){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?c(Object(y),!0).forEach(function(v){I(f,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(y,v))})}return f}function I(f,x,y){return x in f?Object.defineProperty(f,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[x]=y,f}function S(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function t(f,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function e(f,x,y){return x&&t(f.prototype,x),f}var r=ox(),a=r.Buffer,n=W7(),o=n.inspect,i=o&&o.custom||"inspect";function l(f,x,y){a.prototype.copy.call(f,x,y)}Z.exports=function(){function f(){S(this,f),this.head=null,this.tail=null,this.length=0}return e(f,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=x+y.data;return v}},{key:"concat",value:fun Line truncated
`)>-1&&(st?pt=pt.split(`
`).map(function(at){return" "+at}).join(`
`).slice(2):dt=`
`+dt.split(`
`).slice(2):pt=`
`+pt.split(`
`).map(function(at){return" "+at}).join(`
`))):dt=q.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return dt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=q.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=q.stylize(tt,"string"))}return tt+": "+dt}function x(q,J,lt){var yt=0,mt=q.reduce(function(st,tt){return yt++,tt.indexOf(`
`))):pt=q.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return pt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=q.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=q.stylize(tt,"string"))}return tt+": "+pt}function x(q,J,lt){var yt=0,mt=q.reduce(function(st,tt){return yt++,tt.indexOf(`
`)>=0&&yt++,st+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?lt[0]+(J===""?"":J+`
`)+" "+q.join(`,
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=j7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function C(q){return A(q)&&R(q)==="[object RegExp]"}Q.isRegExp=C,Q.types.isRegExp=C;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&R(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(R(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=U7();function R(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=_v(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(dt,rt){lt=dt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(dt,rt){dt?yt(dt):lt(rt)});try{q.apply(this,st)}catch(dt){yt(dt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(dt){process.nextTick(tt.bind(null,null,dt))},function(dt){process.nextTick(U.bind(null,dt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),Y7=Dt((Q,Z)=>{function c(b){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(b)}function g(b,_,P){return Object.defineProperty(b,"prototype",{writable:!1}),b}function I(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function S(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),_&&t(b,_)}function t(b,_){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},t(b,_)}function e(b){var _=n();return function(){var P=o(b),M;if(_){var C=o(this).constructor;M=Reflect.construct(P,arguments,C)}else M=P.apply(this,arguments);return r(this,M)}}function r(b,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(b)}function a(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(b){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},o(b)}var i={},l,f;function x(b,_,P){P||(P=Error);function M(A,h,p){return typeof _=="string"?_:_(A,h,p)}var C=function(A){S(p,A);var h=e(p);function p(k,w,R){var O;return I(thi Line truncated
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=V7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function C(q){return A(q)&&B(q)==="[object RegExp]"}Q.isRegExp=C,Q.types.isRegExp=C;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&B(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(B(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=H7();function B(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=wv(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{q.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),X7=Dt((Q,Z)=>{function c(b){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(b)}function g(b,_,P){return Object.defineProperty(b,"prototype",{writable:!1}),b}function I(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function S(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),_&&t(b,_)}function t(b,_){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},t(b,_)}function e(b){var _=n();return function(){var P=o(b),M;if(_){var C=o(this).constructor;M=Reflect.construct(P,arguments,C)}else M=P.apply(this,arguments);return r(this,M)}}function r(b,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(b)}function a(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(b){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},o(b)}var i={},l,f;function x(b,_,P){P||(P=Error);function M(A,h,p){return typeof _=="string"?_:_(A,h,p)}var C=function(A){S(p,A);var h=e(p);function p(k,w,B){var O;return I(thi Line truncated
`),at=H(q).split(`
`),vt=0,it="";if(J==="strictEqual"&&b(W)==="object"&&b(q)==="object"&&W!==null&&q!==null&&(J="strictEqualObject"),rt.length===1&&at.length===1&&rt[0]!==at[0]){var Y=rt[0].length+at[0].length;if(Y<=j){if((b(W)!=="object"||W===null)&&(b(q)!=="object"||q===null)&&(W!==0||q!==0))return"".concat(O[J],`
`),vt=0,it="";if(J==="strictEqual"&&b(W)==="object"&&b(q)==="object"&&W!==null&&q!==null&&(J="strictEqualObject"),rt.length===1&&at.length===1&&rt[0]!==at[0]){var K=rt[0].length+at[0].length;if(K<=j){if((b(W)!=="object"||W===null)&&(b(q)!=="object"||q===null)&&(W!==0||q!==0))return"".concat(O[J],`
`)+"".concat(rt[0]," !== ").concat(at[0],`
`)}else if(J!=="strictEqualObject"){var ft=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(Y<ft){for(;rt[0][vt]===at[0][vt];)vt++;vt>2&&(it=`
`)}else if(J!=="strictEqualObject"){var ft=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(K<ft){for(;rt[0][vt]===at[0][vt];)vt++;vt>2&&(it=`
`.concat(h(" ",vt),"^"),vt=0)}}}for(var ut=rt[rt.length-1],kt=at[at.length-1];ut===kt&&(vt++<2?st=`
`.concat(ut).concat(st):lt=ut,rt.pop(),at.pop(),!(rt.length===0||at.length===0));)ut=rt[rt.length-1],kt=at[at.length-1];var It=Math.max(rt.length,at.length);if(It===0){var Pt=dt.split(`
`);if(Pt.length>30)for(Pt[26]="".concat(p,"...").concat(R);Pt.length>27;)Pt.pop();return"".concat(O.notIdentical,`
`.concat(ut).concat(st):lt=ut,rt.pop(),at.pop(),!(rt.length===0||at.length===0));)ut=rt[rt.length-1],kt=at[at.length-1];var It=Math.max(rt.length,at.length);if(It===0){var Pt=pt.split(`
`);if(Pt.length>30)for(Pt[26]="".concat(p,"...").concat(B);Pt.length>27;)Pt.pop();return"".concat(O.notIdentical,`
`).concat(Pt.join(`
`),`
`)}vt>3&&(st=`
`.concat(p,"...").concat(R).concat(st),tt=!0),lt!==""&&(st=`
`.concat(p,"...").concat(B).concat(st),tt=!0),lt!==""&&(st=`
`.concat(lt).concat(st),lt="");var qt=0,Wt=O[J]+`
`.concat(k,"+ actual").concat(R," ").concat(w,"- expected").concat(R),Jt=" ".concat(p,"...").concat(R," Lines skipped");for(vt=0;vt<It;vt++){var ge=vt-mt;if(rt.length<vt+1)ge>1&&vt>2&&(ge>4?(yt+=`
`.concat(p,"...").concat(R),tt=!0):ge>3&&(yt+=`
`.concat(k,"+ actual").concat(B," ").concat(w,"- expected").concat(B),Jt=" ".concat(p,"...").concat(B," Lines skipped");for(vt=0;vt<It;vt++){var ge=vt-mt;if(rt.length<vt+1)ge>1&&vt>2&&(ge>4?(yt+=`
`.concat(p,"...").concat(B),tt=!0):ge>3&&(yt+=`
`.concat(at[vt-2]),qt++),yt+=`
`.concat(at[vt-1]),qt++),mt=vt,lt+=`
`.concat(w,"-").concat(R," ").concat(at[vt]),qt++;else if(at.length<vt+1)ge>1&&vt>2&&(ge>4?(yt+=`
`.concat(p,"...").concat(R),tt=!0):ge>3&&(yt+=`
`.concat(w,"-").concat(B," ").concat(at[vt]),qt++;else if(at.length<vt+1)ge>1&&vt>2&&(ge>4?(yt+=`
`.concat(p,"...").concat(B),tt=!0):ge>3&&(yt+=`
`.concat(rt[vt-2]),qt++),yt+=`
`.concat(rt[vt-1]),qt++),mt=vt,yt+=`
`.concat(k,"+").concat(R," ").concat(rt[vt]),qt++;else{var fe=at[vt],pe=rt[vt],se=pe!==fe&&(!A(pe,",")||pe.slice(0,-1)!==fe);se&&A(fe,",")&&fe.slice(0,-1)===pe&&(se=!1,pe+=","),se?(ge>1&&vt>2&&(ge>4?(yt+=`
`.concat(p,"...").concat(R),tt=!0):ge>3&&(yt+=`
`.concat(k,"+").concat(B," ").concat(rt[vt]),qt++;else{var fe=at[vt],pe=rt[vt],se=pe!==fe&&(!A(pe,",")||pe.slice(0,-1)!==fe);se&&A(fe,",")&&fe.slice(0,-1)===pe&&(se=!1,pe+=","),se?(ge>1&&vt>2&&(ge>4?(yt+=`
`.concat(p,"...").concat(B),tt=!0):ge>3&&(yt+=`
`.concat(rt[vt-2]),qt++),yt+=`
`.concat(rt[vt-1]),qt++),mt=vt,yt+=`
`.concat(k,"+").concat(R," ").concat(pe),lt+=`
`.concat(w,"-").concat(R," ").concat(fe),qt+=2):(yt+=lt,lt="",(ge===1||vt===0)&&(yt+=`
`.concat(k,"+").concat(B," ").concat(pe),lt+=`
`.concat(w,"-").concat(B," ").concat(fe),qt+=2):(yt+=lt,lt="",(ge===1||vt===0)&&(yt+=`
`.concat(pe),qt++))}if(qt>20&&vt<It-2)return"".concat(Wt).concat(Jt,`
`).concat(yt,`
`).concat(p,"...").concat(R).concat(lt,`
`)+"".concat(p,"...").concat(R)}return"".concat(Wt).concat(tt?Jt:"",`
`).concat(yt).concat(lt).concat(st).concat(it)}var U=function(W,q){n(lt,W);var J=o(lt);function lt(yt){var mt;if(S(this,lt),b(yt)!=="object"||yt===null)throw new C("options","Object",yt);var st=yt.message,tt=yt.operator,dt=yt.stackStartFn,rt=yt.actual,at=yt.expected,vt=Error.stackTraceLimit;if(Error.stackTraceLimit=0,st!=null)mt=J.call(this,String(st));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(p="\x1B[34m",k="\x1B[32m",R="\x1B[39m",w="\x1B[31m"):(p="",k="",R="",w="")),b(rt)==="object"&&rt!==null&&b(at)==="object"&&at!==null&&"stack"in rt&&rt instanceof Error&&"stack"in at&&at instanceof Error&&(rt=V(rt),at=V(at)),tt==="deepStrictEqual"||tt==="strictEqual")mt=J.call(this,F(rt,at,tt));else if(tt==="notDeepStrictEqual"||tt==="notStrictEqual"){var it=O[tt],Y=H(rt).split(`
`);if(tt==="notStrictEqual"&&b(rt)==="object"&&rt!==null&&(it=O.notStrictEqualObject),Y.length>30)for(Y[26]="".concat(p,"...").concat(R);Y.length>27;)Y.pop();Y.length===1?mt=J.call(this,"".concat(it," ").concat(Y[0])):mt=J.call(this,"".concat(it,`
`).concat(p,"...").concat(B).concat(lt,`
`)+"".concat(p,"...").concat(B)}return"".concat(Wt).concat(tt?Jt:"",`
`).concat(yt).concat(lt).concat(st).concat(it)}var U=function(W,q){n(lt,W);var J=o(lt);function lt(yt){var mt;if(S(this,lt),b(yt)!=="object"||yt===null)throw new C("options","Object",yt);var st=yt.message,tt=yt.operator,pt=yt.stackStartFn,rt=yt.actual,at=yt.expected,vt=Error.stackTraceLimit;if(Error.stackTraceLimit=0,st!=null)mt=J.call(this,String(st));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(p="\x1B[34m",k="\x1B[32m",B="\x1B[39m",w="\x1B[31m"):(p="",k="",B="",w="")),b(rt)==="object"&&rt!==null&&b(at)==="object"&&at!==null&&"stack"in rt&&rt instanceof Error&&"stack"in at&&at instanceof Error&&(rt=V(rt),at=V(at)),tt==="deepStrictEqual"||tt==="strictEqual")mt=J.call(this,F(rt,at,tt));else if(tt==="notDeepStrictEqual"||tt==="notStrictEqual"){var it=O[tt],K=H(rt).split(`
`);if(tt==="notStrictEqual"&&b(rt)==="object"&&rt!==null&&(it=O.notStrictEqualObject),K.length>30)for(K[26]="".concat(p,"...").concat(B);K.length>27;)K.pop();K.length===1?mt=J.call(this,"".concat(it," ").concat(K[0])):mt=J.call(this,"".concat(it,`
`).concat(Y.join(`
`).concat(K.join(`
`),`
`))}else{var ft=H(rt),ut="",kt=O[tt];tt==="notDeepEqual"||tt==="notEqual"?(ft="".concat(O[tt],`
@@ -202,21 +202,21 @@
should equal
`):ut=" ".concat(tt," ").concat(ut)),mt=J.call(this,"".concat(ft).concat(ut))}return Error.stackTraceLimit=vt,mt.generatedMessage=!st,Object.defineProperty(l(mt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),mt.code="ERR_ASSERTION",mt.actual=rt,mt.expected=at,mt.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(l(mt),dt),mt.stack,mt.name="AssertionError",i(mt)}return e(lt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:q,value:function(yt,mt){return P(this,g(g({},mt),{},{customInspect:!1,depth:0}))}}]),lt}(f(Error),P.custom);Z.exports=U}),K7=Dt((Q,Z)=>{var c=Object.prototype.toString;Z.exports=function(g){var I=c.call(g),S=I==="[object Arguments]";return S||(S=I!=="[object Array]"&&g!==null&&typeof g=="object"&&typeof g.length=="number"&&g.length>=0&&c.call(g.callee)==="[object Function]"),S}}),aN=Dt((Q,Z)=>{var c;Object.keys||(g=Object.prototype.hasOwnProperty,I=Object.prototype.toString,S=K7(),t=Object.prototype.propertyIsEnumerable,e=!t.call({toString:null},"toString"),r=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(f){var x=f.constructor;return x&&x.prototype===f},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},i=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!o["$"+f]&&g.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!i)return n(f);try{return n(f)}catch{return!1}},c=function(f){var x=f!==null&&typeof f=="object",y=I.call(f)==="[object Function]",v=S(f),T=x&&I.call(f)==="[object String]",u=[];if(!x&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(T&&f.length>0&&!g.call(f,0))for(var _=0;_<f.length;++_)u.push(String(_));if(v&&f.length>0)for(var P=0;P<f.length;++P)u.push(String(P));else for(var M in f)!(b&&M==="prototype")&&g.call(f,M)&&u.push(String(M));if(e)for(var C=l(f),A=0;A<a.length;++A)!(C&&a[A]==="constructor")&&g.call(f,a[A])&&u.push(a[A]);return u});var g,I,S,t,e,r,a,n,o,i,l;Z.exports=c}),X7=Dt((Q,Z)=>{var c=Array.prototype.slice,g=K7(),I=Object.keys,S=I?function(e){return I(e)}:aN(),t=Object.keys;S.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(r){return g(r)?t(c.call(r)):t(r)})}else Object.keys=S;return Object.keys||S},Z.exports=S}),oN=Dt((Q,Z)=>{var c=X7(),g=uk()(),I=ob(),S=Object,t=I("Array.prototype.push"),e=I("Object.prototype.propertyIsEnumerable"),r=g?Object.getOwnPropertySymbols:null;Z.exports=function(a,n){if(a==null)throw new TypeError("target must be an object");var o=S(a);if(arguments.length===1)return o;for(var i=1;i<arguments.length;++i){var l=S(arguments[i]),f=c(l),x=g&&(Object.getOwnPropertySymbols||r);if(x)for(var y=x(l),v=0;v<y.length;++v){var T=y[v];e(l,T)&&t(f,T)}for(var u=0;u<f.length;++u){var b=f[u];if(e(l,b)){var _=l[b];o[b]=_}}}return o}}),sN=Dt((Q,Z)=>{var c=oN(),g=function(){if(!Object.assign)return!1;for(var S="abcdefghijklmnopqrst",t=S.split(""),e={},r=0;r<t.length;++r)e[t[r]]=t[r];var a=Object.assign({},e),n="";for(var o in a)n+=o;return S!==n},I=function(){if(!Object.assign||!Object.preventExtensions)return!1;var S=Object.preventExtensions({1:2});try{Object.assign(S,"xy")}catch{return S[1]==="y"}return!1};Z.exports=function(){return!Object.assign||g()||I()?c:Object.assign}}),J7=Dt((Q,Z)=>{var c=function(g){return g!==g};Z.exports=function(g,I){return g===0&&I===0?1/g===1/I:!!(g===I||c(g)&&c(I))}}),dk=Dt((Q,Z)=>{var c=J7();Z.exports=function(){return typeof Object.is=="function"?Object.is:c}}),Qw=Dt((Q,Z)=>{var c=X7(),g=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",I=Object.prototype.toString,S=Array.prototype.concat,t=Object.defineProperty,e=function(i){return typeof i=="function"&&I.call(i)==="[object Function]"},r=R7()(),a=t&&r,n=function(i,l,f,x){if(l in i){if(x===!0){if(i[l]===f)return}else if(!e(x)||!x())return}a?t(i,l,{configurable:!0,enumerable:!1,value:f,writable:!0}):i[l]=f},o=function(i,l){var f=arguments.length>2?arguments[2]:{},x=c(l);g&&(x=S.call(x,Object.getOwnPropertySymbols(l)));for(var y=0;y<x.length;y+=1)n(i,x[y],l[x[y]],f[x[y]])};o.supportsDescriptors=!!a,Z.exports=o}),lN=Dt((Q,Z)=>{var c=dk(),g=Qw();Z.exports=function(){var I=c();return g(Object,{is:I},{is:function(){return Object.is!==I}}),I}}),uN=Dt((Q,Z)=>{var c=Qw(),g=Jw(),I=J7(),S=dk(),t=lN(),e=g(S(),Object);c(e,{getPolyfill:S,implementation:I,shim:t}),Z.exports=e}),Q7=Dt((Q,Z)=>{Z.exp Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(se,Tt){if(se){if(typeof se=="string")return S(se,Tt);var Lt=Object.prototype.toString.call(se).slice(8,-1);if(Lt==="Object"&&se.constructor&&(Lt=se.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(se);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return S(se,Tt)}}function S(se,Tt){(Tt==null||Tt>se.length)&&(Tt=se.length);for(var Lt=0,Mt=new Array(Tt);Lt<Tt;Lt++)Mt[Lt]=se[Lt];return Mt}function t(se,Tt){var Lt=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(Lt!=null){var Mt,ee,ve,oe,Te=[],He=!0,Ge=!1;try{if(ve=(Lt=Lt.call(se)).next,Tt!==0)for(;!(He=(Mt=ve.call(Lt)).done)&&(Te.push(Mt.value),Te.length!==Tt);He=!0);}catch(cr){Ge=!0,ee=cr}finally{try{if(!He&&Lt.return!=null&&(oe=Lt.return(),Object(oe)!==oe))return}finally{if(Ge)throw ee}}return Te}}function e(se){if(Array.isArray(se))return se}function r(se){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},r(se)}var a=/a/g.flags!==void 0,n=function(se){var Tt=[];return se.forEach(function(Lt){return Tt.push(Lt)}),Tt},o=function(se){var Tt=[];return se.forEach(function(Lt,Mt){return Tt.push([Mt,Lt])}),Tt},i=Object.is?Object.is:uN(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:hN();function x(se){return se.call.bind(se)}var y=x(Object.prototype.hasOwnProperty),v=x(Object.prototype.propertyIsEnumerable),T=x(Object.prototype.toString),u=sb().types,b=u.isAnyArrayBuffer,_=u.isArrayBufferView,P=u.isDate,M=u.isMap,C=u.isRegExp,A=u.isSet,h=u.isNativeError,p=u.isBoxedPrimitive,k=u.isNumberObject,w=u.isStringObject,R=u.isBooleanObject,O=u.isBigIntObject,j=u.isSymbolObject,V=u.isFloat32Array,H=u.isFloat64Array;function F(se){if(se.length===0||se.length>10)return!0;for(var Tt=0;Tt<se.length;Tt++){var Lt=se.charCodeAt(Tt);if(Lt<48||Lt>57)return!0}return se.length===10&&se>=Math.pow(2,32)}function U(se){return Object.keys(se).filter(F).concat(l(se).filter(Object.prototype.propertyIsEnumerable.bind(se)))}function W(se,Tt){if(se===Tt)return 0;for(var Lt=se.length,Mt=Tt.length,ee=0,ve=Math.min(Lt,Mt);ee<ve;++ee)if(se[ee]!==Tt[ee]){Lt=se[ee],Mt=Tt[ee];break}return Lt<Mt?-1:Mt<Lt?1:0}var q=!0,J=!1,lt=0,yt=1,mt=2,st=3;function tt(se,Tt){return a?se.source===Tt.source&&se.flags===Tt.flags:RegExp.prototype.toString.call(se)===RegExp.prototype.toString.call(Tt)}function dt(se,Tt){if(se.byteLength!==Tt.byteLength)return!1;for(var Lt=0;Lt<se.byteLength;Lt++)if(se[Lt]!==Tt[Lt])return!1;return!0}function rt(se,Tt){return se.byteLength!==Tt.byteLength?!1:W(new Uint8Array(se.buffer,se.byteOffset,se.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function at(se,Tt){return se.byteLength===Tt.byteLength&&W(new Uint8Array(se),new Uint8Array(Tt))===0}function vt(se,Tt){return k(se)?k(Tt)&&i(Number.prototype.valueOf.call(se),Number.prototype.valueOf.call(Tt)):w(se)?w(Tt)&&String.prototype.valueOf.call(se)===String.prototype.valueOf.call(Tt):R(se)?R(Tt)&&Boolean.prototype.valueOf.call(se)===Boolean.prototype.valueOf.call(Tt):O(se)?O(Tt)&&BigInt.prototype.valueOf.call(se)===BigInt.prototype.valueOf.call(Tt):j(Tt)&&Symbol.prototype.valueOf.call(se)===Symbol.prototype.valueOf.call(Tt)}function it(se,Tt,Lt,Mt){if(se===Tt)return se!==0?!0:Lt?i(se,Tt):!0;if(Lt){if(r(se)!=="object")return typeof se=="number"&&f(se)&&f(Tt);if(r(Tt)!=="object"||se===null||Tt===null||Object.getPrototypeOf(se)!==Object.getPrototypeOf(Tt))return!1}else{if(se===null||r(se)!=="object")return Tt===null||r(Tt)!=="object"?se==Tt:!1;if(Tt===null||r(Tt)!=="object")return!1}var ee=T(se),ve=T(Tt);if(ee!==ve)return!1;if(Array.isArray(se)){if(se.length!==Tt.length)return!1;var oe=U(se),Te=U(Tt);return oe.length!==Te.length?!1:ft(se,Tt,Lt,Mt,yt,oe)}if(ee==="[object Object]"&&(!M(se)&&M(Tt)||!A(se)&&A(Tt)))return!1;if(P(se)){if(!P(Tt)||Date.prototype.getTime.call(se)!==Date.prototype.getTime.call(Tt))return!1}else if(C(se)){if(!C(Tt)||!tt(se,Tt))return!1}else if(h(se)||se instanceof Error){if(se.message!==Tt.message||se.name!==Tt.name)return!1}else if(_(se)){if(!Lt&&(V(se)||H(se))){if(!dt(se,Tt))return!1}else if(!rt(se,Tt))return!1;var He=U(se),Ge=U(Tt);return He.length!==Ge.length?!1:ft(se,Tt,Lt,Mt,lt,He)}else{if(A(se))return!A(Tt)||se.size!==Tt.size?!1:ft(se,Tt,Lt,Mt,mt);if(M(se))return!M(Tt)||se.size!==Tt.size?!1:ft(se,Tt,Lt,Mt,st);if(b(se)){if(!at(se,Tt))return!1}else if(p(se)&&!vt(se,Tt))return!1}return ft(se,Tt,Lt,Mt,lt)}function Y(se,Tt){return Tt.filter(function(Lt){return v(se,Lt)})}function ft(se,Tt,Lt,Mt,ee,ve){if(arguments.length===5){ve=Object.keys(se);var oe=Object.keys(Tt);if(ve.length!==oe.length)return!1}for(var Te=0;Te<ve.length;Te++)if(!y(Tt,ve[Te]))return!1;if(Lt&&arguments.length===5) Line truncated
`)+'Actual message: "'.concat(st&&st.message,'"'),stackStartFn:mt})}throw st}}A.throws=function mt(st){for(var tt=arguments.length,dt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)dt[rt-1]=arguments[rt];q.apply(void 0,[mt,F(st)].concat(dt))},A.rejects=function mt(st){for(var tt=arguments.length,dt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)dt[rt-1]=arguments[rt];return W(st).then(function(at){return q.apply(void 0,[mt,at].concat(dt))})},A.doesNotThrow=function mt(st){for(var tt=arguments.length,dt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)dt[rt-1]=arguments[rt];J.apply(void 0,[mt,F(st)].concat(dt))},A.doesNotReject=function mt(st){for(var tt=arguments.length,dt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)dt[rt-1]=arguments[rt];return W(st).then(function(at){return J.apply(void 0,[mt,at].concat(dt))})},A.ifError=function mt(st){if(st!=null){var tt="ifError got unwanted exception: ";c(st)==="object"&&typeof st.message=="string"?st.message.length===0&&st.constructor?tt+=st.constructor.name:tt+=st.message:tt+=f(st);var dt=new i({actual:st,expected:null,operator:"ifError",message:tt,stackStartFn:mt}),rt=st.stack;if(typeof rt=="string"){var at=rt.split(`
`);at.shift();for(var vt=dt.stack.split(`
`),it=0;it<at.length;it++){var Y=vt.indexOf(at[it]);if(Y!==-1){vt=vt.slice(0,Y);break}}dt.stack="".concat(vt.join(`
`):ut=" ".concat(tt," ").concat(ut)),mt=J.call(this,"".concat(ft).concat(ut))}return Error.stackTraceLimit=vt,mt.generatedMessage=!st,Object.defineProperty(l(mt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),mt.code="ERR_ASSERTION",mt.actual=rt,mt.expected=at,mt.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(l(mt),pt),mt.stack,mt.name="AssertionError",i(mt)}return e(lt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:q,value:function(yt,mt){return P(this,g(g({},mt),{},{customInspect:!1,depth:0}))}}]),lt}(f(Error),P.custom);Z.exports=U}),J7=Dt((Q,Z)=>{var c=Object.prototype.toString;Z.exports=function(g){var I=c.call(g),S=I==="[object Arguments]";return S||(S=I!=="[object Array]"&&g!==null&&typeof g=="object"&&typeof g.length=="number"&&g.length>=0&&c.call(g.callee)==="[object Function]"),S}}),wN=Dt((Q,Z)=>{var c;Object.keys||(g=Object.prototype.hasOwnProperty,I=Object.prototype.toString,S=J7(),t=Object.prototype.propertyIsEnumerable,e=!t.call({toString:null},"toString"),r=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(f){var x=f.constructor;return x&&x.prototype===f},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},i=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!o["$"+f]&&g.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!i)return n(f);try{return n(f)}catch{return!1}},c=function(f){var x=f!==null&&typeof f=="object",y=I.call(f)==="[object Function]",v=S(f),T=x&&I.call(f)==="[object String]",u=[];if(!x&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(T&&f.length>0&&!g.call(f,0))for(var _=0;_<f.length;++_)u.push(String(_));if(v&&f.length>0)for(var P=0;P<f.length;++P)u.push(String(P));else for(var M in f)!(b&&M==="prototype")&&g.call(f,M)&&u.push(String(M));if(e)for(var C=l(f),A=0;A<a.length;++A)!(C&&a[A]==="constructor")&&g.call(f,a[A])&&u.push(a[A]);return u});var g,I,S,t,e,r,a,n,o,i,l;Z.exports=c}),Q7=Dt((Q,Z)=>{var c=Array.prototype.slice,g=J7(),I=Object.keys,S=I?function(e){return I(e)}:wN(),t=Object.keys;S.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(r){return g(r)?t(c.call(r)):t(r)})}else Object.keys=S;return Object.keys||S},Z.exports=S}),kN=Dt((Q,Z)=>{var c=Q7(),g=ck()(),I=sb(),S=Object,t=I("Array.prototype.push"),e=I("Object.prototype.propertyIsEnumerable"),r=g?Object.getOwnPropertySymbols:null;Z.exports=function(a,n){if(a==null)throw new TypeError("target must be an object");var o=S(a);if(arguments.length===1)return o;for(var i=1;i<arguments.length;++i){var l=S(arguments[i]),f=c(l),x=g&&(Object.getOwnPropertySymbols||r);if(x)for(var y=x(l),v=0;v<y.length;++v){var T=y[v];e(l,T)&&t(f,T)}for(var u=0;u<f.length;++u){var b=f[u];if(e(l,b)){var _=l[b];o[b]=_}}}return o}}),TN=Dt((Q,Z)=>{var c=kN(),g=function(){if(!Object.assign)return!1;for(var S="abcdefghijklmnopqrst",t=S.split(""),e={},r=0;r<t.length;++r)e[t[r]]=t[r];var a=Object.assign({},e),n="";for(var o in a)n+=o;return S!==n},I=function(){if(!Object.assign||!Object.preventExtensions)return!1;var S=Object.preventExtensions({1:2});try{Object.assign(S,"xy")}catch{return S[1]==="y"}return!1};Z.exports=function(){return!Object.assign||g()||I()?c:Object.assign}}),t9=Dt((Q,Z)=>{var c=function(g){return g!==g};Z.exports=function(g,I){return g===0&&I===0?1/g===1/I:!!(g===I||c(g)&&c(I))}}),pk=Dt((Q,Z)=>{var c=t9();Z.exports=function(){return typeof Object.is=="function"?Object.is:c}}),t3=Dt((Q,Z)=>{var c=Q7(),g=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",I=Object.prototype.toString,S=Array.prototype.concat,t=Object.defineProperty,e=function(i){return typeof i=="function"&&I.call(i)==="[object Function]"},r=N7()(),a=t&&r,n=function(i,l,f,x){if(l in i){if(x===!0){if(i[l]===f)return}else if(!e(x)||!x())return}a?t(i,l,{configurable:!0,enumerable:!1,value:f,writable:!0}):i[l]=f},o=function(i,l){var f=arguments.length>2?arguments[2]:{},x=c(l);g&&(x=S.call(x,Object.getOwnPropertySymbols(l)));for(var y=0;y<x.length;y+=1)n(i,x[y],l[x[y]],f[x[y]])};o.supportsDescriptors=!!a,Z.exports=o}),AN=Dt((Q,Z)=>{var c=pk(),g=t3();Z.exports=function(){var I=c();return g(Object,{is:I},{is:function(){return Object.is!==I}}),I}}),MN=Dt((Q,Z)=>{var c=t3(),g=Qw(),I=t9(),S=pk(),t=AN(),e=g(S(),Object);c(e,{getPolyfill:S,implementation:I,shim:t}),Z.exports=e}),e9=Dt((Q,Z)=>{Z.exp Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(se,Tt){if(se){if(typeof se=="string")return S(se,Tt);var Lt=Object.prototype.toString.call(se).slice(8,-1);if(Lt==="Object"&&se.constructor&&(Lt=se.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(se);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return S(se,Tt)}}function S(se,Tt){(Tt==null||Tt>se.length)&&(Tt=se.length);for(var Lt=0,Mt=new Array(Tt);Lt<Tt;Lt++)Mt[Lt]=se[Lt];return Mt}function t(se,Tt){var Lt=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(Lt!=null){var Mt,ee,ve,oe,Ae=[],He=!0,Ge=!1;try{if(ve=(Lt=Lt.call(se)).next,Tt!==0)for(;!(He=(Mt=ve.call(Lt)).done)&&(Ae.push(Mt.value),Ae.length!==Tt);He=!0);}catch(cr){Ge=!0,ee=cr}finally{try{if(!He&&Lt.return!=null&&(oe=Lt.return(),Object(oe)!==oe))return}finally{if(Ge)throw ee}}return Ae}}function e(se){if(Array.isArray(se))return se}function r(se){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},r(se)}var a=/a/g.flags!==void 0,n=function(se){var Tt=[];return se.forEach(function(Lt){return Tt.push(Lt)}),Tt},o=function(se){var Tt=[];return se.forEach(function(Lt,Mt){return Tt.push([Mt,Lt])}),Tt},i=Object.is?Object.is:MN(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:EN();function x(se){return se.call.bind(se)}var y=x(Object.prototype.hasOwnProperty),v=x(Object.prototype.propertyIsEnumerable),T=x(Object.prototype.toString),u=lb().types,b=u.isAnyArrayBuffer,_=u.isArrayBufferView,P=u.isDate,M=u.isMap,C=u.isRegExp,A=u.isSet,h=u.isNativeError,p=u.isBoxedPrimitive,k=u.isNumberObject,w=u.isStringObject,B=u.isBooleanObject,O=u.isBigIntObject,j=u.isSymbolObject,V=u.isFloat32Array,H=u.isFloat64Array;function F(se){if(se.length===0||se.length>10)return!0;for(var Tt=0;Tt<se.length;Tt++){var Lt=se.charCodeAt(Tt);if(Lt<48||Lt>57)return!0}return se.length===10&&se>=Math.pow(2,32)}function U(se){return Object.keys(se).filter(F).concat(l(se).filter(Object.prototype.propertyIsEnumerable.bind(se)))}function W(se,Tt){if(se===Tt)return 0;for(var Lt=se.length,Mt=Tt.length,ee=0,ve=Math.min(Lt,Mt);ee<ve;++ee)if(se[ee]!==Tt[ee]){Lt=se[ee],Mt=Tt[ee];break}return Lt<Mt?-1:Mt<Lt?1:0}var q=!0,J=!1,lt=0,yt=1,mt=2,st=3;function tt(se,Tt){return a?se.source===Tt.source&&se.flags===Tt.flags:RegExp.prototype.toString.call(se)===RegExp.prototype.toString.call(Tt)}function pt(se,Tt){if(se.byteLength!==Tt.byteLength)return!1;for(var Lt=0;Lt<se.byteLength;Lt++)if(se[Lt]!==Tt[Lt])return!1;return!0}function rt(se,Tt){return se.byteLength!==Tt.byteLength?!1:W(new Uint8Array(se.buffer,se.byteOffset,se.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function at(se,Tt){return se.byteLength===Tt.byteLength&&W(new Uint8Array(se),new Uint8Array(Tt))===0}function vt(se,Tt){return k(se)?k(Tt)&&i(Number.prototype.valueOf.call(se),Number.prototype.valueOf.call(Tt)):w(se)?w(Tt)&&String.prototype.valueOf.call(se)===String.prototype.valueOf.call(Tt):B(se)?B(Tt)&&Boolean.prototype.valueOf.call(se)===Boolean.prototype.valueOf.call(Tt):O(se)?O(Tt)&&BigInt.prototype.valueOf.call(se)===BigInt.prototype.valueOf.call(Tt):j(Tt)&&Symbol.prototype.valueOf.call(se)===Symbol.prototype.valueOf.call(Tt)}function it(se,Tt,Lt,Mt){if(se===Tt)return se!==0?!0:Lt?i(se,Tt):!0;if(Lt){if(r(se)!=="object")return typeof se=="number"&&f(se)&&f(Tt);if(r(Tt)!=="object"||se===null||Tt===null||Object.getPrototypeOf(se)!==Object.getPrototypeOf(Tt))return!1}else{if(se===null||r(se)!=="object")return Tt===null||r(Tt)!=="object"?se==Tt:!1;if(Tt===null||r(Tt)!=="object")return!1}var ee=T(se),ve=T(Tt);if(ee!==ve)return!1;if(Array.isArray(se)){if(se.length!==Tt.length)return!1;var oe=U(se),Ae=U(Tt);return oe.length!==Ae.length?!1:ft(se,Tt,Lt,Mt,yt,oe)}if(ee==="[object Object]"&&(!M(se)&&M(Tt)||!A(se)&&A(Tt)))return!1;if(P(se)){if(!P(Tt)||Date.prototype.getTime.call(se)!==Date.prototype.getTime.call(Tt))return!1}else if(C(se)){if(!C(Tt)||!tt(se,Tt))return!1}else if(h(se)||se instanceof Error){if(se.message!==Tt.message||se.name!==Tt.name)return!1}else if(_(se)){if(!Lt&&(V(se)||H(se))){if(!pt(se,Tt))return!1}else if(!rt(se,Tt))return!1;var He=U(se),Ge=U(Tt);return He.length!==Ge.length?!1:ft(se,Tt,Lt,Mt,lt,He)}else{if(A(se))return!A(Tt)||se.size!==Tt.size?!1:ft(se,Tt,Lt,Mt,mt);if(M(se))return!M(Tt)||se.size!==Tt.size?!1:ft(se,Tt,Lt,Mt,st);if(b(se)){if(!at(se,Tt))return!1}else if(p(se)&&!vt(se,Tt))return!1}return ft(se,Tt,Lt,Mt,lt)}function K(se,Tt){return Tt.filter(function(Lt){return v(se,Lt)})}function ft(se,Tt,Lt,Mt,ee,ve){if(arguments.length===5){ve=Object.keys(se);var oe=Object.keys(Tt);if(ve.length!==oe.length)return!1}for(var Ae=0;Ae<ve.length;Ae++)if(!y(Tt,ve[Ae]))return!1;if(Lt&&arguments.length===5) Line truncated
`)+'Actual message: "'.concat(st&&st.message,'"'),stackStartFn:mt})}throw st}}A.throws=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];q.apply(void 0,[mt,F(st)].concat(pt))},A.rejects=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];return W(st).then(function(at){return q.apply(void 0,[mt,at].concat(pt))})},A.doesNotThrow=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];J.apply(void 0,[mt,F(st)].concat(pt))},A.doesNotReject=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];return W(st).then(function(at){return J.apply(void 0,[mt,at].concat(pt))})},A.ifError=function mt(st){if(st!=null){var tt="ifError got unwanted exception: ";c(st)==="object"&&typeof st.message=="string"?st.message.length===0&&st.constructor?tt+=st.constructor.name:tt+=st.message:tt+=f(st);var pt=new i({actual:st,expected:null,operator:"ifError",message:tt,stackStartFn:mt}),rt=st.stack;if(typeof rt=="string"){var at=rt.split(`
`);at.shift();for(var vt=pt.stack.split(`
`),it=0;it<at.length;it++){var K=vt.indexOf(at[it]);if(K!==-1){vt=vt.slice(0,K);break}}pt.stack="".concat(vt.join(`
`),`
`).concat(at.join(`
`))}throw dt}};function lt(mt,st,tt,dt,rt){if(!v(st))throw new r("regexp","RegExp",st);var at=rt==="match";if(typeof mt!="string"||b(st,mt)!==at){if(tt instanceof Error)throw tt;var vt=!tt;tt=tt||(typeof mt!="string"?'The "string" argument must be of type string. Received type '+"".concat(c(mt)," (").concat(f(mt),")"):(at?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(f(st),`. Input:
`))}throw pt}};function lt(mt,st,tt,pt,rt){if(!v(st))throw new r("regexp","RegExp",st);var at=rt==="match";if(typeof mt!="string"||b(st,mt)!==at){if(tt instanceof Error)throw tt;var vt=!tt;tt=tt||(typeof mt!="string"?'The "string" argument must be of type string. Received type '+"".concat(c(mt)," (").concat(f(mt),")"):(at?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(f(st),`. Input:
`).concat(f(mt),`
`));var it=new i({actual:mt,expected:st,message:tt,operator:rt,stackStartFn:dt});throw it.generatedMessage=vt,it}}A.match=function mt(st,tt,dt){lt(st,tt,dt,mt,"match")},A.doesNotMatch=function mt(st,tt,dt){lt(st,tt,dt,mt,"doesNotMatch")};function yt(){for(var mt=arguments.length,st=new Array(mt),tt=0;tt<mt;tt++)st[tt]=arguments[tt];w.apply(void 0,[yt,st.length].concat(st))}A.strict=T(yt,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict}),dN=Dt((Q,Z)=>{var c=1e3,g=c*60,I=g*60,S=I*24,t=S*365.25;Z.exports=function(o,i){i=i||{};var l=typeof o;if(l==="string"&&o.length>0)return e(o);if(l==="number"&&isNaN(o)===!1)return i.long?a(o):r(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function e(o){if(o=String(o),!(o.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(i){var l=parseFloat(i[1]),f=(i[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return l*t;case"days":case"day":case"d":return l*S;case"hours":case"hour":case"hrs":case"hr":case"h":return l*I;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function r(o){return o>=S?Math.round(o/S)+"d":o>=I?Math.round(o/I)+"h":o>=g?Math.round(o/g)+"m":o>=c?Math.round(o/c)+"s":o+"ms"}function a(o){return n(o,S,"day")||n(o,I,"hour")||n(o,g,"minute")||n(o,c,"second")||o+" ms"}function n(o,i,l){if(!(o<i))return o<i*1.5?Math.floor(o/i)+" "+l:Math.ceil(o/i)+" "+l+"s"}}),pN=Dt((Q,Z)=>{Q=Z.exports=I.debug=I.default=I,Q.coerce=r,Q.disable=t,Q.enable=S,Q.enabled=e,Q.humanize=dN(),Q.names=[],Q.skips=[],Q.formatters={};var c;function g(a){var n=0,o;for(o in a)n=(n<<5)-n+a.charCodeAt(o),n|=0;return Q.colors[Math.abs(n)%Q.colors.length]}function I(a){function n(){if(n.enabled){var o=n,i=+new Date,l=i-(c||i);o.diff=l,o.prev=c,o.curr=i,c=i;for(var f=new Array(arguments.length),x=0;x<f.length;x++)f[x]=arguments[x];f[0]=Q.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var y=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(T,u){if(T==="%%")return T;y++;var b=Q.formatters[u];if(typeof b=="function"){var _=f[y];T=b.call(o,_),f.splice(y,1),y--}return T}),Q.formatArgs.call(o,f);var v=n.log||Q.log||console.log.bind(console);v.apply(o,f)}}return n.namespace=a,n.enabled=Q.enabled(a),n.useColors=Q.useColors(),n.color=g(a),typeof Q.init=="function"&&Q.init(n),n}function S(a){Q.save(a),Q.names=[],Q.skips=[];for(var n=(typeof a=="string"?a:"").split(/[\s,]+/),o=n.length,i=0;i<o;i++)n[i]&&(a=n[i].replace(/\*/g,".*?"),a[0]==="-"?Q.skips.push(new RegExp("^"+a.substr(1)+"$")):Q.names.push(new RegExp("^"+a+"$")))}function t(){Q.enable("")}function e(a){var n,o;for(n=0,o=Q.skips.length;n<o;n++)if(Q.skips[n].test(a))return!1;for(n=0,o=Q.names.length;n<o;n++)if(Q.names[n].test(a))return!0;return!1}function r(a){return a instanceof Error?a.stack||a.message:a}}),mN=Dt((Q,Z)=>{Q=Z.exports=pN(),Q.log=I,Q.formatArgs=g,Q.save=S,Q.load=t,Q.useColors=c,Q.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:e(),Q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function c(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function g(r){var a=this.useColors;if(r[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+r[0]+(a?"%c ":" ")+"+"+Q.humanize(this.diff),!!a){var n="color: "+this.color;r.splice(1,0,n,"color: inherit");var o=0,i=0;r[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(o++,l==="%c"&&(i=o))}),r.splice(i,0,n)}}function I(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?Q.storage.removeItem("debug"):Q.storage.debug=r}catch{}}function t(){var r;try{r=Q.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=s.DEBUG),r}Q.enable(t());function e(){try{return window.localStorage}catch{}}}),gN=Dt((Q,Z)=>{var c=t3(),g=mN()("stream-parser");Z.exports=r;var I=-1,S=0,t=1,e=2;function r(u){var b=u&&typeof u._transform=="function",_=u&&typeof u._write=="function";if(!b&&!_)throw new Error("must pass a Writable or Transform Line truncated
`));var it=new i({actual:mt,expected:st,message:tt,operator:rt,stackStartFn:pt});throw it.generatedMessage=vt,it}}A.match=function mt(st,tt,pt){lt(st,tt,pt,mt,"match")},A.doesNotMatch=function mt(st,tt,pt){lt(st,tt,pt,mt,"doesNotMatch")};function yt(){for(var mt=arguments.length,st=new Array(mt),tt=0;tt<mt;tt++)st[tt]=arguments[tt];w.apply(void 0,[yt,st.length].concat(st))}A.strict=T(yt,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict}),LN=Dt((Q,Z)=>{var c=1e3,g=c*60,I=g*60,S=I*24,t=S*365.25;Z.exports=function(o,i){i=i||{};var l=typeof o;if(l==="string"&&o.length>0)return e(o);if(l==="number"&&isNaN(o)===!1)return i.long?a(o):r(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function e(o){if(o=String(o),!(o.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(i){var l=parseFloat(i[1]),f=(i[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return l*t;case"days":case"day":case"d":return l*S;case"hours":case"hour":case"hrs":case"hr":case"h":return l*I;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function r(o){return o>=S?Math.round(o/S)+"d":o>=I?Math.round(o/I)+"h":o>=g?Math.round(o/g)+"m":o>=c?Math.round(o/c)+"s":o+"ms"}function a(o){return n(o,S,"day")||n(o,I,"hour")||n(o,g,"minute")||n(o,c,"second")||o+" ms"}function n(o,i,l){if(!(o<i))return o<i*1.5?Math.floor(o/i)+" "+l:Math.ceil(o/i)+" "+l+"s"}}),PN=Dt((Q,Z)=>{Q=Z.exports=I.debug=I.default=I,Q.coerce=r,Q.disable=t,Q.enable=S,Q.enabled=e,Q.humanize=LN(),Q.names=[],Q.skips=[],Q.formatters={};var c;function g(a){var n=0,o;for(o in a)n=(n<<5)-n+a.charCodeAt(o),n|=0;return Q.colors[Math.abs(n)%Q.colors.length]}function I(a){function n(){if(n.enabled){var o=n,i=+new Date,l=i-(c||i);o.diff=l,o.prev=c,o.curr=i,c=i;for(var f=new Array(arguments.length),x=0;x<f.length;x++)f[x]=arguments[x];f[0]=Q.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var y=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(T,u){if(T==="%%")return T;y++;var b=Q.formatters[u];if(typeof b=="function"){var _=f[y];T=b.call(o,_),f.splice(y,1),y--}return T}),Q.formatArgs.call(o,f);var v=n.log||Q.log||console.log.bind(console);v.apply(o,f)}}return n.namespace=a,n.enabled=Q.enabled(a),n.useColors=Q.useColors(),n.color=g(a),typeof Q.init=="function"&&Q.init(n),n}function S(a){Q.save(a),Q.names=[],Q.skips=[];for(var n=(typeof a=="string"?a:"").split(/[\s,]+/),o=n.length,i=0;i<o;i++)n[i]&&(a=n[i].replace(/\*/g,".*?"),a[0]==="-"?Q.skips.push(new RegExp("^"+a.substr(1)+"$")):Q.names.push(new RegExp("^"+a+"$")))}function t(){Q.enable("")}function e(a){var n,o;for(n=0,o=Q.skips.length;n<o;n++)if(Q.skips[n].test(a))return!1;for(n=0,o=Q.names.length;n<o;n++)if(Q.names[n].test(a))return!0;return!1}function r(a){return a instanceof Error?a.stack||a.message:a}}),IN=Dt((Q,Z)=>{Q=Z.exports=PN(),Q.log=I,Q.formatArgs=g,Q.save=S,Q.load=t,Q.useColors=c,Q.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:e(),Q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function c(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function g(r){var a=this.useColors;if(r[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+r[0]+(a?"%c ":" ")+"+"+Q.humanize(this.diff),!!a){var n="color: "+this.color;r.splice(1,0,n,"color: inherit");var o=0,i=0;r[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(o++,l==="%c"&&(i=o))}),r.splice(i,0,n)}}function I(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?Q.storage.removeItem("debug"):Q.storage.debug=r}catch{}}function t(){var r;try{r=Q.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=s.DEBUG),r}Q.enable(t());function e(){try{return window.localStorage}catch{}}}),zN=Dt((Q,Z)=>{var c=e3(),g=IN()("stream-parser");Z.exports=r;var I=-1,S=0,t=1,e=2;function r(u){var b=u&&typeof u._transform=="function",_=u&&typeof u._write=="function";if(!b&&!_)throw new Error("must pass a Writable or Transform Line truncated

`),t=c("IHDR");Z.exports=function(e){if(!(e.length<24)&&g(e,0,S)&&g(e,12,t))return{width:I(e,16),height:I(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),TN=Dt((Q,Z)=>{var c=ph().str2arr,g=ph().sliceEq,I=ph().readUInt32BE,S=c("8BPS\0");Z.exports=function(t){if(!(t.length<22)&&g(t,0,S))return{width:I(t,18),height:I(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),AN=Dt((Q,Z)=>{function c(l){return l===32||l===9||l===13||l===10}function g(l){return typeof l=="number"&&isFinite(l)&&l>0}function I(l){var f=0,x=l.length;for(l[0]===239&&l[1]===187&&l[2]===191&&(f=3);f<x&&c(l[f]);)f++;return f===x?!1:l[f]===60}var S=/<[-_.:a-zA-Z0-9][^>]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,e=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,a=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,n=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function o(l){var f=l.match(e),x=l.match(r),y=l.match(a);return{width:f&&(f[1]||f[2]),height:x&&(x[1]||x[2]),viewbox:y&&(y[1]||y[2])}}function i(l){return n.test(l)?l.match(n)[0]:"px"}Z.exports=function(l){if(I(l)){for(var f="",x=0;x<l.length;x++)f+=String.fromCharCode(l[x]);var y=(f.match(S)||[""])[0];if(t.test(y)){var v=o(y),T=parseFloat(v.width),u=parseFloat(v.height);if(v.width&&v.height)return!g(T)||!g(u)?void 0:{width:T,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.height)};var b=(v.viewbox||"").split(" "),_={width:b[2],height:b[3]},P=parseFloat(_.width),M=parseFloat(_.height);if(!(!g(P)||!g(M))&&i(_.width)===i(_.height)){var C=P/M;return v.width?g(T)?{width:T,height:T/C,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.width)}:void 0:v.height?g(u)?{width:u*C,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.height),hUnits:i(v.height)}:void 0:{width:P,height:M,type:"svg",mime:"image/svg+xml",wUnits:i(_.width),hUnits:i(_.height)}}}}}}),MN=Dt((Q,Z)=>{var c=ph().str2arr,g=ph().sliceEq,I=ph().readUInt16LE,S=ph().readUInt16BE,t=ph().readUInt32LE,e=ph().readUInt32BE,r=c("II*\0"),a=c("MM\0*");function n(l,f,x){return x?S(l,f):I(l,f)}function o(l,f,x){return x?e(l,f):t(l,f)}function i(l,f,x){var y=n(l,f+2,x),v=o(l,f+4,x);return v!==1||y!==3&&y!==4?null:y===3?n(l,f+8,x):o(l,f+8,x)}Z.exports=function(l){if(!(l.length<8)&&!(!g(l,0,r)&&!g(l,0,a))){var f=l[0]===77,x=o(l,4,f)-8;if(!(x<0)){var y=x+8;if(!(l.length-y<2)){var v=n(l,y+0,f)*12;if(!(v<=0)&&(y+=2,!(l.length-y<v))){var T,u,b,_;for(T=0;T<v;T+=12)_=n(l,y+T,f),_===256?u=i(l,y+T,f):_===257&&(b=i(l,y+T,f));if(u&&b)return{width:u,height:b,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),SN=Dt((Q,Z)=>{var c=ph().str2arr,g=ph().sliceEq,I=ph().readUInt16LE,S=ph().readUInt32LE,t=pk(),e=c("RIFF"),r=c("WEBP");function a(i,l){if(!(i[l+3]!==157||i[l+4]!==1||i[l+5]!==42))return{width:I(i,l+6)&16383,height:I(i,l+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function n(i,l){if(i[l]===47){var f=S(i,l+1);return{width:(f&16383)+1,height:(f>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(i,l){return{width:(i[l+6]<<16|i[l+5]<<8|i[l+4])+1,height:(i[l+9]<<l|i[l+8]<<8|i[l+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Z.exports=function(i){if(!(i.length<16)&&!(!g(i,0,e)&&!g(i,8,r))){var l=12,f=null,x=0,y=S(i,4)+8;if(!(y>i.length)){for(;l+8<y;){if(i[l]===0){l++;continue}var v=String.fromCharCode.apply(null,i.slice(l,l+4)),T=S(i,l+4);v==="VP8 "&&T>=10?f=f||a(i,l+8):v==="VP8L"&&T>=9?f=f||n(i,l+8):v==="VP8X"&&T>=10?f=f||o(i,l+8):v==="EXIF"&&(x=t.get_orientation(i.slice(l+8,l+8+T)),l=1/0),l+=8+T}if(f)return x>0&&(f.orientation=x),f}}}}),EN=Dt((Q,Z)=>{Z.exports={avif:yN(),bmp:xN(),gif:_N(),ico:bN(),jpeg:wN(),png:kN(),psd:TN(),svg:AN(),tiff:MN(),webp:SN()}}),CN=Dt((Q,Z)=>{var c=EN();function g(I){for(var S=Object.keys(c),t=0;t<S.length;t++){var e=c[S[t]](I);if(e)return e}return null}Z.exports=function(I){return g(I)},Z.exports.parsers=c}),LN=Dt(Q=>{var Z=CN(),c=o0().IMAGE_URL_PREFIX,g=ix().Buffer;Q.getImageSize=function(I){var S=I.replace(c,""),t=new g(S,"base64");return Z(t)}}),PN=Dt((Q,Z)=>{var c=kn(),g=nb(),I=Yi(),S=Ls(),t=kn().maxRowLength,e=LN().getImageSize;Z.exports=function(o,i){var l,f;if(i._hasZ)l=i.z.length,f=t(i.z);else if(i._hasSource){var x=e(i.source);l=x.height,f=x.width}var y=S.getFromId(o,i.xaxis||"x"),v=S.getFromId(o,i.yaxis||"y"),T=y.d2c(i.x0)-i.dx/2,u=v.d2c(i.y0)-i.dy/2,b,_=[T,T+f*i.dx],P=[u,u+l*i.dy];if(y&&y.type==="log")for(b=0;b<f;b++)_.push(T+b*i.dx);if(v&&v.type==="log")for(b=0;b<l;b++)P.push(u+b*i.dy);i._extremes[y._id]=S.findExtremes(y,_),i._extremes[v._id]=S.findExtremes(v,P),i._scaler=n(i);var M={x0:T,y0:u,z:i.z,w:f,h:l};return[M]};function r(o,i,l,f){return function(x){return c.constrain((x-o)*i,l,f)}}function a(o,i){return function(l){return c.constrain(l,o,i)}}function n(o){var i=g.colormodel[o.colormodel],l=i.colormodel||o.colormodel,f=l.length;o._sArray=[];for(var x=0;x<f;x++)i.min[x]!==o.zmin[x]||i.max[x]!==o.zmax[x]?o._sArray.push(r(o.zmin[x],(i.max[x]-i.min[x])/ Line truncated
`),t=c("IHDR");Z.exports=function(e){if(!(e.length<24)&&g(e,0,S)&&g(e,12,t))return{width:I(e,16),height:I(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),UN=Dt((Q,Z)=>{var c=mh().str2arr,g=mh().sliceEq,I=mh().readUInt32BE,S=c("8BPS\0");Z.exports=function(t){if(!(t.length<22)&&g(t,0,S))return{width:I(t,18),height:I(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),VN=Dt((Q,Z)=>{function c(l){return l===32||l===9||l===13||l===10}function g(l){return typeof l=="number"&&isFinite(l)&&l>0}function I(l){var f=0,x=l.length;for(l[0]===239&&l[1]===187&&l[2]===191&&(f=3);f<x&&c(l[f]);)f++;return f===x?!1:l[f]===60}var S=/<[-_.:a-zA-Z0-9][^>]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,e=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,a=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,n=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function o(l){var f=l.match(e),x=l.match(r),y=l.match(a);return{width:f&&(f[1]||f[2]),height:x&&(x[1]||x[2]),viewbox:y&&(y[1]||y[2])}}function i(l){return n.test(l)?l.match(n)[0]:"px"}Z.exports=function(l){if(I(l)){for(var f="",x=0;x<l.length;x++)f+=String.fromCharCode(l[x]);var y=(f.match(S)||[""])[0];if(t.test(y)){var v=o(y),T=parseFloat(v.width),u=parseFloat(v.height);if(v.width&&v.height)return!g(T)||!g(u)?void 0:{width:T,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.height)};var b=(v.viewbox||"").split(" "),_={width:b[2],height:b[3]},P=parseFloat(_.width),M=parseFloat(_.height);if(!(!g(P)||!g(M))&&i(_.width)===i(_.height)){var C=P/M;return v.width?g(T)?{width:T,height:T/C,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.width)}:void 0:v.height?g(u)?{width:u*C,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.height),hUnits:i(v.height)}:void 0:{width:P,height:M,type:"svg",mime:"image/svg+xml",wUnits:i(_.width),hUnits:i(_.height)}}}}}}),HN=Dt((Q,Z)=>{var c=mh().str2arr,g=mh().sliceEq,I=mh().readUInt16LE,S=mh().readUInt16BE,t=mh().readUInt32LE,e=mh().readUInt32BE,r=c("II*\0"),a=c("MM\0*");function n(l,f,x){return x?S(l,f):I(l,f)}function o(l,f,x){return x?e(l,f):t(l,f)}function i(l,f,x){var y=n(l,f+2,x),v=o(l,f+4,x);return v!==1||y!==3&&y!==4?null:y===3?n(l,f+8,x):o(l,f+8,x)}Z.exports=function(l){if(!(l.length<8)&&!(!g(l,0,r)&&!g(l,0,a))){var f=l[0]===77,x=o(l,4,f)-8;if(!(x<0)){var y=x+8;if(!(l.length-y<2)){var v=n(l,y+0,f)*12;if(!(v<=0)&&(y+=2,!(l.length-y<v))){var T,u,b,_;for(T=0;T<v;T+=12)_=n(l,y+T,f),_===256?u=i(l,y+T,f):_===257&&(b=i(l,y+T,f));if(u&&b)return{width:u,height:b,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),WN=Dt((Q,Z)=>{var c=mh().str2arr,g=mh().sliceEq,I=mh().readUInt16LE,S=mh().readUInt32LE,t=mk(),e=c("RIFF"),r=c("WEBP");function a(i,l){if(!(i[l+3]!==157||i[l+4]!==1||i[l+5]!==42))return{width:I(i,l+6)&16383,height:I(i,l+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function n(i,l){if(i[l]===47){var f=S(i,l+1);return{width:(f&16383)+1,height:(f>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(i,l){return{width:(i[l+6]<<16|i[l+5]<<8|i[l+4])+1,height:(i[l+9]<<l|i[l+8]<<8|i[l+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Z.exports=function(i){if(!(i.length<16)&&!(!g(i,0,e)&&!g(i,8,r))){var l=12,f=null,x=0,y=S(i,4)+8;if(!(y>i.length)){for(;l+8<y;){if(i[l]===0){l++;continue}var v=String.fromCharCode.apply(null,i.slice(l,l+4)),T=S(i,l+4);v==="VP8 "&&T>=10?f=f||a(i,l+8):v==="VP8L"&&T>=9?f=f||n(i,l+8):v==="VP8X"&&T>=10?f=f||o(i,l+8):v==="EXIF"&&(x=t.get_orientation(i.slice(l+8,l+8+T)),l=1/0),l+=8+T}if(f)return x>0&&(f.orientation=x),f}}}}),qN=Dt((Q,Z)=>{Z.exports={avif:DN(),bmp:FN(),gif:BN(),ico:RN(),jpeg:NN(),png:jN(),psd:UN(),svg:VN(),tiff:HN(),webp:WN()}}),$N=Dt((Q,Z)=>{var c=qN();function g(I){for(var S=Object.keys(c),t=0;t<S.length;t++){var e=c[S[t]](I);if(e)return e}return null}Z.exports=function(I){return g(I)},Z.exports.parsers=c}),ZN=Dt(Q=>{var Z=$N(),c=o0().IMAGE_URL_PREFIX,g=ox().Buffer;Q.getImageSize=function(I){var S=I.replace(c,""),t=new g(S,"base64");return Z(t)}}),GN=Dt((Q,Z)=>{var c=kn(),g=ib(),I=Hn(),S=Ls(),t=kn().maxRowLength,e=ZN().getImageSize;Z.exports=function(o,i){var l,f;if(i._hasZ)l=i.z.length,f=t(i.z);else if(i._hasSource){var x=e(i.source);l=x.height,f=x.width}var y=S.getFromId(o,i.xaxis||"x"),v=S.getFromId(o,i.yaxis||"y"),T=y.d2c(i.x0)-i.dx/2,u=v.d2c(i.y0)-i.dy/2,b,_=[T,T+f*i.dx],P=[u,u+l*i.dy];if(y&&y.type==="log")for(b=0;b<f;b++)_.push(T+b*i.dx);if(v&&v.type==="log")for(b=0;b<l;b++)P.push(u+b*i.dy);i._extremes[y._id]=S.findExtremes(y,_),i._extremes[v._id]=S.findExtremes(v,P),i._scaler=n(i);var M={x0:T,y0:u,z:i.z,w:f,h:l};return[M]};function r(o,i,l,f){return function(x){return c.constrain((x-o)*i,l,f)}}function a(o,i){return function(l){return c.constrain(l,o,i)}}function n(o){var i=g.colormodel[o.colormodel],l=i.colormodel||o.colormodel,f=l.length;o._sArray=[];for(var x=0;x<f;x++)i.min[x]!==o.zmin[x]||i.max[x]!==o.zmax[x]?o._sArray.push(r(o.zmin[x],(i.max[x]-i.min[x])/ Line truncated
parent value =`,vt,`
children sum =`,it].join(" "))}rt.value=vt});break}else i(lt,f,{branches:f.count.indexOf("branches")!==-1,leaves:f.count.indexOf("leaves")!==-1});if(!yt){f.sort&&lt.sort(function(rt,at){return at.value-rt.value});var mt,st,tt=f.marker.colors||[],dt=!!tt.length;return f._hasColorscale?(dt||(tt=_?f.values:f._values),e(l,f,{vals:tt,containerStr:"marker",cLetter:"c"}),st=I(f.marker)):mt=S(x["_"+f.type+"colormap"]),lt.each(function(rt){var at=rt.data.data;at.color=f._hasColorscale?st(tt[at.i]):mt(tt[at.i],at.id)}),P[0].hierarchy=lt,P}},Q._runCrossTraceCalc=function(l,f){var x=f._fullLayout,y=f.calcdata,v=x[l+"colorway"],T=x["_"+l+"colormap"];x["extend"+l+"colors"]&&(v=t(v,l==="icicle"?o:l==="treemap"?n:a));var u=0,b;function _(A){var h=A.data.data,p=h.id;h.color===!1&&(T[p]?h.color=T[p]:A.parent?A.parent.parent?h.color=A.parent.data.data.color:(T[p]=h.color=v[u%v.length],u++):h.color=b)}for(var P=0;P<y.length;P++){var M=y[P],C=M[0];C.trace.type===l&&C.hierarchy&&(b=C.trace.root.color,C.hierarchy.each(_))}},Q.crossTraceCalc=function(l){return Q._runCrossTraceCalc("sunburst",l)};function i(l,f,x){var y=0,v=l.children;if(v){for(var T=v.length,u=0;u<T;u++)y+=i(v[u],f,x);x.branches&&y++}else x.leaves&&y++;return l.value=l.data.data.value=y,f._values||(f._values=[]),f._values[l.data.data.i]=y,y}});function cx(Q,Z,c){Q.prototype=Z.prototype=c,c.constructor=Q}function ub(Q,Z){var c=Object.create(Q.prototype);for(var g in Z)c[g]=Z[g];return c}var vk=mn(()=>{});function bv(){}function n9(){return this.rgb().formatHex()}function ZN(){return this.rgb().formatHex8()}function GN(){return u9(this).formatHsl()}function i9(){return this.rgb().formatRgb()}function cb(Q){var Z,c;return Q=(Q+"").trim().toLowerCase(),(Z=h9.exec(Q))?(c=Z[1].length,Z=parseInt(Z[1],16),c===6?a9(Z):c===3?new cp(Z>>8&15|Z>>4&240,Z>>4&15|Z&240,(Z&15)<<4|Z&15,1):c===8?i3(Z>>24&255,Z>>16&255,Z>>8&255,(Z&255)/255):c===4?i3(Z>>12&15|Z>>8&240,Z>>8&15|Z>>4&240,Z>>4&15|Z&240,((Z&15)<<4|Z&15)/255):null):(Z=f9.exec(Q))?new cp(Z[1],Z[2],Z[3],1):(Z=d9.exec(Q))?new cp(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,1):(Z=p9.exec(Q))?i3(Z[1],Z[2],Z[3],Z[4]):(Z=m9.exec(Q))?i3(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,Z[4]):(Z=g9.exec(Q))?l9(Z[1],Z[2]/100,Z[3]/100,1):(Z=v9.exec(Q))?l9(Z[1],Z[2]/100,Z[3]/100,Z[4]):bk.hasOwnProperty(Q)?a9(bk[Q]):Q==="transparent"?new cp(NaN,NaN,NaN,0):null}function a9(Q){return new cp(Q>>16&255,Q>>8&255,Q&255,1)}function i3(Q,Z,c,g){return g<=0&&(Q=Z=c=NaN),new cp(Q,Z,c,g)}function yk(Q){return Q instanceof bv||(Q=cb(Q)),Q?(Q=Q.rgb(),new cp(Q.r,Q.g,Q.b,Q.opacity)):new cp}function a3(Q,Z,c,g){return arguments.length===1?yk(Q):new cp(Q,Z,c,g??1)}function cp(Q,Z,c,g){this.r=+Q,this.g=+Z,this.b=+c,this.opacity=+g}function o9(){return`#${D1(this.r)}${D1(this.g)}${D1(this.b)}`}function YN(){return`#${D1(this.r)}${D1(this.g)}${D1(this.b)}${D1((isNaN(this.opacity)?1:this.opacity)*255)}`}function s9(){let Q=o3(this.opacity);return`${Q===1?"rgb(":"rgba("}${O1(this.r)}, ${O1(this.g)}, ${O1(this.b)}${Q===1?")":`, ${Q})`}`}function o3(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function O1(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function D1(Q){return Q=O1(Q),(Q<16?"0":"")+Q.toString(16)}function l9(Q,Z,c,g){return g<=0?Q=Z=c=NaN:c<=0||c>=1?Q=Z=NaN:Z<=0&&(Q=NaN),new _m(Q,Z,c,g)}function u9(Q){if(Q instanceof _m)return new _m(Q.h,Q.s,Q.l,Q.opacity);if(Q instanceof bv||(Q=cb(Q)),!Q)return new _m;if(Q instanceof _m)return Q;Q=Q.rgb();var Z=Q.r/255,c=Q.g/255,g=Q.b/255,I=Math.min(Z,c,g),S=Math.max(Z,c,g),t=NaN,e=S-I,r=(S+I)/2;return e?(Z===S?t=(c-g)/e+(c<g)*6:c===S?t=(g-Z)/e+2:t=(Z-c)/e+4,e/=r<.5?S+I:2-S-I,t*=60):e=r>0&&r<1?0:t,new _m(t,e,r,Q.opacity)}function xk(Q,Z,c,g){return arguments.length===1?u9(Q):new _m(Q,Z,c,g??1)}function _m(Q,Z,c,g){this.h=+Q,this.s=+Z,this.l=+c,this.opacity=+g}function c9(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function s3(Q){return Math.max(0,Math.min(1,Q||0))}function _k(Q,Z,c){return(Q<60?Z+(c-Z)*Q/60:Q<180?c:Q<240?Z+(c-Z)*(240-Q)/60:Z)*255}var wv,F1,R1,hx,bm,h9,f9,d9,p9,m9,g9,v9,bk,wk=mn(()=>{vk(),wv=.7,F1=1/wv,R1="\\s*([+-]?\\d+)\\s*",hx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h9=/^#([0-9a-f]{3,8})$/,f9=new RegExp(`^rgb\\(${R1},${R1},${R1}\\)$`),d9=new RegExp(`^rgb\\(${bm},${bm},${bm}\\)$`),p9=new RegExp(`^rgba\\(${R1},${R1},${R1},${hx}\\)$`),m9=new RegExp(`^rgba\\(${bm},${bm},${bm},${hx}\\)$`),g9=new RegExp(`^hsl\\(${hx},${bm},${bm}\\)$`),v9=new RegExp(`^hsla\\(${hx},${bm},${bm},${hx}\\)$`),bk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433 Line truncated
children sum =`,it].join(" "))}rt.value=vt});break}else i(lt,f,{branches:f.count.indexOf("branches")!==-1,leaves:f.count.indexOf("leaves")!==-1});if(!yt){f.sort&&lt.sort(function(rt,at){return at.value-rt.value});var mt,st,tt=f.marker.colors||[],pt=!!tt.length;return f._hasColorscale?(pt||(tt=_?f.values:f._values),e(l,f,{vals:tt,containerStr:"marker",cLetter:"c"}),st=I(f.marker)):mt=S(x["_"+f.type+"colormap"]),lt.each(function(rt){var at=rt.data.data;at.color=f._hasColorscale?st(tt[at.i]):mt(tt[at.i],at.id)}),P[0].hierarchy=lt,P}},Q._runCrossTraceCalc=function(l,f){var x=f._fullLayout,y=f.calcdata,v=x[l+"colorway"],T=x["_"+l+"colormap"];x["extend"+l+"colors"]&&(v=t(v,l==="icicle"?o:l==="treemap"?n:a));var u=0,b;function _(A){var h=A.data.data,p=h.id;h.color===!1&&(T[p]?h.color=T[p]:A.parent?A.parent.parent?h.color=A.parent.data.data.color:(T[p]=h.color=v[u%v.length],u++):h.color=b)}for(var P=0;P<y.length;P++){var M=y[P],C=M[0];C.trace.type===l&&C.hierarchy&&(b=C.trace.root.color,C.hierarchy.each(_))}},Q.crossTraceCalc=function(l){return Q._runCrossTraceCalc("sunburst",l)};function i(l,f,x){var y=0,v=l.children;if(v){for(var T=v.length,u=0;u<T;u++)y+=i(v[u],f,x);x.branches&&y++}else x.leaves&&y++;return l.value=l.data.data.value=y,f._values||(f._values=[]),f._values[l.data.data.i]=y,y}});function fx(Q,Z,c){Q.prototype=Z.prototype=c,c.constructor=Q}function cb(Q,Z){var c=Object.create(Q.prototype);for(var g in Z)c[g]=Z[g];return c}var yk=fn(()=>{});function kv(){}function a9(){return this.rgb().formatHex()}function cj(){return this.rgb().formatHex8()}function hj(){return h9(this).formatHsl()}function o9(){return this.rgb().formatRgb()}function hb(Q){var Z,c;return Q=(Q+"").trim().toLowerCase(),(Z=d9.exec(Q))?(c=Z[1].length,Z=parseInt(Z[1],16),c===6?s9(Z):c===3?new hp(Z>>8&15|Z>>4&240,Z>>4&15|Z&240,(Z&15)<<4|Z&15,1):c===8?a3(Z>>24&255,Z>>16&255,Z>>8&255,(Z&255)/255):c===4?a3(Z>>12&15|Z>>8&240,Z>>8&15|Z>>4&240,Z>>4&15|Z&240,((Z&15)<<4|Z&15)/255):null):(Z=p9.exec(Q))?new hp(Z[1],Z[2],Z[3],1):(Z=m9.exec(Q))?new hp(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,1):(Z=g9.exec(Q))?a3(Z[1],Z[2],Z[3],Z[4]):(Z=v9.exec(Q))?a3(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,Z[4]):(Z=y9.exec(Q))?c9(Z[1],Z[2]/100,Z[3]/100,1):(Z=x9.exec(Q))?c9(Z[1],Z[2]/100,Z[3]/100,Z[4]):wk.hasOwnProperty(Q)?s9(wk[Q]):Q==="transparent"?new hp(NaN,NaN,NaN,0):null}function s9(Q){return new hp(Q>>16&255,Q>>8&255,Q&255,1)}function a3(Q,Z,c,g){return g<=0&&(Q=Z=c=NaN),new hp(Q,Z,c,g)}function xk(Q){return Q instanceof kv||(Q=hb(Q)),Q?(Q=Q.rgb(),new hp(Q.r,Q.g,Q.b,Q.opacity)):new hp}function o3(Q,Z,c,g){return arguments.length===1?xk(Q):new hp(Q,Z,c,g??1)}function hp(Q,Z,c,g){this.r=+Q,this.g=+Z,this.b=+c,this.opacity=+g}function l9(){return`#${B1(this.r)}${B1(this.g)}${B1(this.b)}`}function fj(){return`#${B1(this.r)}${B1(this.g)}${B1(this.b)}${B1((isNaN(this.opacity)?1:this.opacity)*255)}`}function u9(){let Q=s3(this.opacity);return`${Q===1?"rgb(":"rgba("}${F1(this.r)}, ${F1(this.g)}, ${F1(this.b)}${Q===1?")":`, ${Q})`}`}function s3(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function F1(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function B1(Q){return Q=F1(Q),(Q<16?"0":"")+Q.toString(16)}function c9(Q,Z,c,g){return g<=0?Q=Z=c=NaN:c<=0||c>=1?Q=Z=NaN:Z<=0&&(Q=NaN),new _m(Q,Z,c,g)}function h9(Q){if(Q instanceof _m)return new _m(Q.h,Q.s,Q.l,Q.opacity);if(Q instanceof kv||(Q=hb(Q)),!Q)return new _m;if(Q instanceof _m)return Q;Q=Q.rgb();var Z=Q.r/255,c=Q.g/255,g=Q.b/255,I=Math.min(Z,c,g),S=Math.max(Z,c,g),t=NaN,e=S-I,r=(S+I)/2;return e?(Z===S?t=(c-g)/e+(c<g)*6:c===S?t=(g-Z)/e+2:t=(Z-c)/e+4,e/=r<.5?S+I:2-S-I,t*=60):e=r>0&&r<1?0:t,new _m(t,e,r,Q.opacity)}function _k(Q,Z,c,g){return arguments.length===1?h9(Q):new _m(Q,Z,c,g??1)}function _m(Q,Z,c,g){this.h=+Q,this.s=+Z,this.l=+c,this.opacity=+g}function f9(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function l3(Q){return Math.max(0,Math.min(1,Q||0))}function bk(Q,Z,c){return(Q<60?Z+(c-Z)*Q/60:Q<180?c:Q<240?Z+(c-Z)*(240-Q)/60:Z)*255}var Tv,R1,N1,dx,bm,d9,p9,m9,g9,v9,y9,x9,wk,kk=fn(()=>{yk(),Tv=.7,R1=1/Tv,N1="\\s*([+-]?\\d+)\\s*",dx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d9=/^#([0-9a-f]{3,8})$/,p9=new RegExp(`^rgb\\(${N1},${N1},${N1}\\)$`),m9=new RegExp(`^rgb\\(${bm},${bm},${bm}\\)$`),g9=new RegExp(`^rgba\\(${N1},${N1},${N1},${dx}\\)$`),v9=new RegExp(`^rgba\\(${bm},${bm},${bm},${dx}\\)$`),y9=new RegExp(`^hsl\\(${dx},${bm},${bm}\\)$`),x9=new RegExp(`^hsla\\(${dx},${bm},${bm},${dx}\\)$`),wk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433 Line truncated
precision highp float;
#define GLSLIFY 1
@@ -555,7 +555,7 @@ void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
gl_FragColor = vec4(pickId, f_id.xyz);
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},620:function(t){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},665:function(t,e,r){var a=r(3202);t.exports=l;var n=96;function o(f,x){var y=a(getComputedStyle(f).getPropertyValue(x));return y[0]*l(y[1],f)}function i(f,x){var y=document.createElement("div");y.style["font-size"]="128"+f,x.appendChild(y);var v=o(y,"font-size")/128;return x.removeChild(y),v}function l(f,x){switch(x=x||document.body,f=(f||"px").trim().toLowerCase(),(x===window||x===document)&&(x=document.body),f){case"%":return x.clientHeight/100;case"ch":case"ex":return i(f,x);case"em":return o(x,"font-size");case"rem":return o(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return n;case"cm":return n/2.54;case"mm":return n/25.4;case"pt":return n/72;case"pc":return n/6}return 1}},727:function(t,e,r){var a=r(2962),n=6;function o(P){var M=P===2?f:P===3?x:P===4?y:P===5?v:T;return P<6?M(a[P]):M(a)}function i(){return[[0]]}function l(P,M){return[[M[0]],[P[0][0]]]}function f(P){return function(M,C){return[P([[+C[0],+M[0][1]],[+C[1],+M[1][1]]]),P([[+M[0][0],+C[0]],[+M[1][0],+C[1]]]),P(M)]}}function x(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2]],[+C[1],+M[1][1],+M[1][2]],[+C[2],+M[2][1],+M[2][2]]]),P([[+M[0][0],+C[0],+M[0][2]],[+M[1][0],+C[1],+M[1][2]],[+M[2][0],+C[2],+M[2][2]]]),P([[+M[0][0],+M[0][1],+C[0]],[+M[1][0],+M[1][1],+C[1]],[+M[2][0],+M[2][1],+C[2]]]),P(M)]}}function y(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3]],[+C[1],+M[1][1],+M[1][2],+M[1][3]],[+C[2],+M[2][1],+M[2][2],+M[2][3]],[+C[3],+M[3][1],+M[3][2],+M[3][3]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3]],[+M[1][0],+C[1],+M[1][2],+M[1][3]],[+M[2][0],+C[2],+M[2][2],+M[2][3]],[+M[3][0],+C[3],+M[3][2],+M[3][3]]]),P([[+M[0][0],+M[0][1],+C[0],+M[0][3]],[+M[1][0],+M[1][1],+C[1],+M[1][3]],[+M[2][0],+M[2][1],+C[2],+M[2][3]],[+M[3][0],+M[3][1],+C[3],+M[3][3]]]),P([[+M[0][0],+M[0][1],+M[0][2],+C[0]],[+M[1][0],+M[1][1],+M[1][2],+C[1]],[+M[2][0],+M[2][1],+M[2][2],+C[2]],[+M[3][0],+M[3][1],+M[3][2],+C[3]]]),P(M)]}}function v(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4]],[+C[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4]],[+C[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4]],[+C[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4]],[+C[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3],+M[0][4]],[+M[1][0],+C[1],+M[1][2],+M[1][3],+M[1][4]],[+M[2][0],+C[2],+M[2][2],+M[2][3],+M[2][4]],[+M[3][0],+C[3],+M[3][2],+M[3][3],+M[3][4]],[+M[4][0],+C[4],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+C[0],+M[0][3],+M[0][4]],[+M[1][0],+M[1][1],+C[1],+M[1][3],+M[1][4]],[+M[2][0],+M[2][1],+C[2],+M[2][3],+M[2][4]],[+M[3][0],+M[3][1],+C[3],+M[3][3],+M[3][4]],[+M[4][0],+M[4][1],+C[4],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+C[0],+M[0][4]],[+M[1][0],+M[1][1],+M[1][2],+C[1],+M[1][4]],[+M[2][0],+M[2][1],+M[2][2],+C[2],+M[2][4]],[+M[3][0],+M[3][1],+M[3][2],+C[3],+M[3][4]],[+M[4][0],+M[4][1],+M[4][2],+C[4],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+M[0][3],+C[0]],[+M[1][0],+M[1][1],+M[1][2],+M[1][3],+C[1]],[+M[2][0],+M[2][1],+M[2][2],+M[2][3],+C[2]],[+M[3][0],+M[3][1],+M[3][2],+M[3][3],+C[3]],[+M[4][0],+M[4][1],+M[4][2],+M[4][3],+C[4]]]),P(M)]}}function T(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+C[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+C[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+C[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4],+M[3][5]],[+C[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4],+M[4][5]],[+C[5],+M[5][1],+M[5][2],+M[5][3],+M[5][4],+M[5][5]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+M[1][0],+C[1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+M[2][0],+C[2],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+M[3][0],+C[3],+M[3][2],+M[3][3],+M[3][4],+M Line truncated
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},620:function(t){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},665:function(t,e,r){var a=r(3202);t.exports=l;var n=96;function o(f,x){var y=a(getComputedStyle(f).getPropertyValue(x));return y[0]*l(y[1],f)}function i(f,x){var y=document.createElement("div");y.style["font-size"]="128"+f,x.appendChild(y);var v=o(y,"font-size")/128;return x.removeChild(y),v}function l(f,x){switch(x=x||document.body,f=(f||"px").trim().toLowerCase(),(x===window||x===document)&&(x=document.body),f){case"%":return x.clientHeight/100;case"ch":case"ex":return i(f,x);case"em":return o(x,"font-size");case"rem":return o(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return n;case"cm":return n/2.54;case"mm":return n/25.4;case"pt":return n/72;case"pc":return n/6}return 1}},727:function(t,e,r){var a=r(2962),n=6;function o(P){var M=P===2?f:P===3?x:P===4?y:P===5?v:T;return P<6?M(a[P]):M(a)}function i(){return[[0]]}function l(P,M){return[[M[0]],[P[0][0]]]}function f(P){return function(M,C){return[P([[+C[0],+M[0][1]],[+C[1],+M[1][1]]]),P([[+M[0][0],+C[0]],[+M[1][0],+C[1]]]),P(M)]}}function x(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2]],[+C[1],+M[1][1],+M[1][2]],[+C[2],+M[2][1],+M[2][2]]]),P([[+M[0][0],+C[0],+M[0][2]],[+M[1][0],+C[1],+M[1][2]],[+M[2][0],+C[2],+M[2][2]]]),P([[+M[0][0],+M[0][1],+C[0]],[+M[1][0],+M[1][1],+C[1]],[+M[2][0],+M[2][1],+C[2]]]),P(M)]}}function y(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3]],[+C[1],+M[1][1],+M[1][2],+M[1][3]],[+C[2],+M[2][1],+M[2][2],+M[2][3]],[+C[3],+M[3][1],+M[3][2],+M[3][3]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3]],[+M[1][0],+C[1],+M[1][2],+M[1][3]],[+M[2][0],+C[2],+M[2][2],+M[2][3]],[+M[3][0],+C[3],+M[3][2],+M[3][3]]]),P([[+M[0][0],+M[0][1],+C[0],+M[0][3]],[+M[1][0],+M[1][1],+C[1],+M[1][3]],[+M[2][0],+M[2][1],+C[2],+M[2][3]],[+M[3][0],+M[3][1],+C[3],+M[3][3]]]),P([[+M[0][0],+M[0][1],+M[0][2],+C[0]],[+M[1][0],+M[1][1],+M[1][2],+C[1]],[+M[2][0],+M[2][1],+M[2][2],+C[2]],[+M[3][0],+M[3][1],+M[3][2],+C[3]]]),P(M)]}}function v(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4]],[+C[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4]],[+C[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4]],[+C[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4]],[+C[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3],+M[0][4]],[+M[1][0],+C[1],+M[1][2],+M[1][3],+M[1][4]],[+M[2][0],+C[2],+M[2][2],+M[2][3],+M[2][4]],[+M[3][0],+C[3],+M[3][2],+M[3][3],+M[3][4]],[+M[4][0],+C[4],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+C[0],+M[0][3],+M[0][4]],[+M[1][0],+M[1][1],+C[1],+M[1][3],+M[1][4]],[+M[2][0],+M[2][1],+C[2],+M[2][3],+M[2][4]],[+M[3][0],+M[3][1],+C[3],+M[3][3],+M[3][4]],[+M[4][0],+M[4][1],+C[4],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+C[0],+M[0][4]],[+M[1][0],+M[1][1],+M[1][2],+C[1],+M[1][4]],[+M[2][0],+M[2][1],+M[2][2],+C[2],+M[2][4]],[+M[3][0],+M[3][1],+M[3][2],+C[3],+M[3][4]],[+M[4][0],+M[4][1],+M[4][2],+C[4],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+M[0][3],+C[0]],[+M[1][0],+M[1][1],+M[1][2],+M[1][3],+C[1]],[+M[2][0],+M[2][1],+M[2][2],+M[2][3],+C[2]],[+M[3][0],+M[3][1],+M[3][2],+M[3][3],+C[3]],[+M[4][0],+M[4][1],+M[4][2],+M[4][3],+C[4]]]),P(M)]}}function T(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+C[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+C[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+C[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4],+M[3][5]],[+C[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4],+M[4][5]],[+C[5],+M[5][1],+M[5][2],+M[5][3],+M[5][4],+M[5][5]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+M[1][0],+C[1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+M[2][0],+C[2],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+M[3][0],+C[3],+M[3][2],+M[3][3],+M[3][4],+M Line truncated
#define GLSLIFY 1
attribute vec2 position;
varying vec2 uv;
@@ -935,7 +935,7 @@ uniform vec3 contourColor;
void main() {
gl_FragColor = vec4(contourColor, 1.0);
}
`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:f,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"}]}},855:function(t,e,r){t.exports={init:_,sweepBipartite:C,sweepComplete:A,scanBipartite:h,scanComplete:p};var a=r(1888),n=r(8828),o=r(4192),i=1<<28,l=1024,f=a.mallocInt32(l),x=a.mallocInt32(l),y=a.mallocInt32(l),v=a.mallocInt32(l),T=a.mallocInt32(l),u=a.mallocInt32(l),b=a.mallocDouble(l*8);function _(k){var w=n.nextPow2(k);f.length<w&&(a.free(f),f=a.mallocInt32(w)),x.length<w&&(a.free(x),x=a.mallocInt32(w)),y.length<w&&(a.free(y),y=a.mallocInt32(w)),v.length<w&&(a.free(v),v=a.mallocInt32(w)),T.length<w&&(a.free(T),T=a.mallocInt32(w)),u.length<w&&(a.free(u),u=a.mallocInt32(w));var R=8*w;b.length<R&&(a.free(b),b=a.mallocDouble(R))}function P(k,w,R,O){var j=w[O],V=k[R-1];k[j]=V,w[V]=j}function M(k,w,R,O){k[R]=O,w[O]=R}function C(k,w,R,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt],tt=J*mt;b[q++]=j[tt+lt],b[q++]=-(st+1),b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+i,dt=J*mt;b[q++]=U[dt+lt],b[q++]=-st,b[q++]=U[dt+yt],b[q++]=st}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,mt=0;mt<rt;++mt){var it=b[2*mt+1]|0;if(it>=i)it=it-i|0,P(y,v,vt--,it);else if(it>=0)P(f,x,at--,it);else if(it<=-i){it=-it-i|0;for(var Y=0;Y<at;++Y){var ft=w(f[Y],it);if(ft!==void 0)return ft}M(y,v,vt++,it)}else{it=-it-1|0;for(var Y=0;Y<vt;++Y){var ft=w(it,y[Y]);if(ft!==void 0)return ft}M(f,x,at++,it)}}}function A(k,w,R,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt]+1<<1,tt=J*mt;b[q++]=j[tt+lt],b[q++]=-st,b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+1<<1,dt=J*mt;b[q++]=U[dt+lt],b[q++]=-st|1,b[q++]=U[dt+yt],b[q++]=st|1}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,it=0,mt=0;mt<rt;++mt){var Y=b[2*mt+1]|0,ft=Y&1;if(mt<rt-1&&Y>>1===b[2*mt+3]>>1&&(ft=2,mt+=1),Y<0){for(var ut=-(Y>>1)-1,kt=0;kt<it;++kt){var It=w(T[kt],ut);if(It!==void 0)return It}if(ft!==0)for(var kt=0;kt<at;++kt){var It=w(f[kt],ut);if(It!==void 0)return It}if(ft!==1)for(var kt=0;kt<vt;++kt){var It=w(y[kt],ut);if(It!==void 0)return It}ft===0?M(f,x,at++,ut):ft===1?M(y,v,vt++,ut):ft===2&&M(T,u,it++,ut)}else{var ut=(Y>>1)-1;ft===0?P(f,x,at--,ut):ft===1?P(y,v,vt--,ut):ft===2&&P(T,u,it--,ut)}}}function h(k,w,R,O,j,V,H,F,U,W,q,J){var lt=0,yt=2*k,mt=w,st=w+k,tt=1,dt=1;O?dt=i:tt=i;for(var rt=j;rt<V;++rt){var at=rt+tt,vt=yt*rt;b[lt++]=H[vt+mt],b[lt++]=-at,b[lt++]=H[vt+st],b[lt++]=at}for(var rt=U;rt<W;++rt){var at=rt+dt,it=yt*rt;b[lt++]=q[it+mt],b[lt++]=-at}var Y=lt>>>1;o(b,Y);for(var ft=0,rt=0;rt<Y;++rt){var ut=b[2*rt+1]|0;if(ut<0){var at=-ut,kt=!1;if(at>=i?(kt=!O,at-=i):(kt=!!O,at-=1),kt)M(f,x,ft++,at);else{var It=J[at],Pt=yt*at,qt=q[Pt+w+1],Wt=q[Pt+w+1+k];t:for(var Jt=0;Jt<ft;++Jt){var ge=f[Jt],fe=yt*ge;if(!(Wt<H[fe+w+1]||H[fe+w+1+k]<qt)){for(var pe=w+2;pe<k;++pe)if(q[Pt+pe+k]<H[fe+pe]||H[fe+pe+k]<q[Pt+pe])continue t;var se=F[ge],Tt;if(O?Tt=R(It,se):Tt=R(se,It),Tt!==void 0)return Tt}}}}else P(f,x,ft--,ut-tt)}}function p(k,w,R,O,j,V,H,F,U,W,q){for(var J=0,lt=2*k,yt=w,mt=w+k,st=O;st<j;++st){var tt=st+i,dt=lt*st;b[J++]=V[dt+yt],b[J++]=-tt,b[J++]=V[dt+mt],b[J++]=tt}for(var st=F;st<U;++st){var tt=st+1,rt=lt*st;b[J++]=W[rt+yt],b[J++]=-tt}var at=J>>>1;o(b,at);for(var vt=0,st=0;st<at;++st){var it=b[2*st+1]|0;if(it<0){var tt=-it;if(tt>=i)f[vt++]=tt-i;else{tt-=1;var Y=q[tt],ft=lt*tt,ut=W[ft+w+1],kt=W[ft+w+1+k];t:for(var It=0;It<vt;++It){var Pt=f[It],qt=H[Pt];if(qt===Y)break;var Wt=lt*Pt;if(!(kt<V[Wt+w+1]||V[Wt+w+1+k]<ut)){for(var Jt=w+2;Jt<k;++Jt)if(W[ft+Jt+k]<V[Wt+Jt]||V[Wt+Jt+k]<W[ft+Jt])continue t;var ge=R(qt,Y);if(ge!==void 0)return ge}}}}else{for(var tt=it-i,It=vt-1;It>=0;--It)if(f[It]===tt){for(var Jt=It+1;Jt<vt;++Jt)f[Jt-1]=f[Jt];break}--vt}}}},868:function(t,e,r){t.exports=r(1387)},869:function(t,e,r){var a=r(2651),n=r(5716);t.exports=o;function o(i,l){var f=n(i),x=n(l);if(f===0)return[a(0),a(1)];if(x===0)return[a(0),a(0)];x<0&&(i=i.neg(),l=l.neg());var y=i.gcd(l);return y.cmpn(1)?[i.div(y),l.div(y)]:[i,l]}},870:function(t,e,r){var a=r(1433);function n(i){this.gl=i,this._elements=null,this._attributes=null,this._elementsType=i.UNSIGNED_SHORT}n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(i,l,f){this._elements=l,this._attributes=i,this._elementsType=f||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){ Line truncated
`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:f,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"}]}},855:function(t,e,r){t.exports={init:_,sweepBipartite:C,sweepComplete:A,scanBipartite:h,scanComplete:p};var a=r(1888),n=r(8828),o=r(4192),i=1<<28,l=1024,f=a.mallocInt32(l),x=a.mallocInt32(l),y=a.mallocInt32(l),v=a.mallocInt32(l),T=a.mallocInt32(l),u=a.mallocInt32(l),b=a.mallocDouble(l*8);function _(k){var w=n.nextPow2(k);f.length<w&&(a.free(f),f=a.mallocInt32(w)),x.length<w&&(a.free(x),x=a.mallocInt32(w)),y.length<w&&(a.free(y),y=a.mallocInt32(w)),v.length<w&&(a.free(v),v=a.mallocInt32(w)),T.length<w&&(a.free(T),T=a.mallocInt32(w)),u.length<w&&(a.free(u),u=a.mallocInt32(w));var B=8*w;b.length<B&&(a.free(b),b=a.mallocDouble(B))}function P(k,w,B,O){var j=w[O],V=k[B-1];k[j]=V,w[V]=j}function M(k,w,B,O){k[B]=O,w[O]=B}function C(k,w,B,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=B;mt<O;++mt){var st=V[mt],tt=J*mt;b[q++]=j[tt+lt],b[q++]=-(st+1),b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+i,pt=J*mt;b[q++]=U[pt+lt],b[q++]=-st,b[q++]=U[pt+yt],b[q++]=st}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,mt=0;mt<rt;++mt){var it=b[2*mt+1]|0;if(it>=i)it=it-i|0,P(y,v,vt--,it);else if(it>=0)P(f,x,at--,it);else if(it<=-i){it=-it-i|0;for(var K=0;K<at;++K){var ft=w(f[K],it);if(ft!==void 0)return ft}M(y,v,vt++,it)}else{it=-it-1|0;for(var K=0;K<vt;++K){var ft=w(it,y[K]);if(ft!==void 0)return ft}M(f,x,at++,it)}}}function A(k,w,B,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=B;mt<O;++mt){var st=V[mt]+1<<1,tt=J*mt;b[q++]=j[tt+lt],b[q++]=-st,b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+1<<1,pt=J*mt;b[q++]=U[pt+lt],b[q++]=-st|1,b[q++]=U[pt+yt],b[q++]=st|1}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,it=0,mt=0;mt<rt;++mt){var K=b[2*mt+1]|0,ft=K&1;if(mt<rt-1&&K>>1===b[2*mt+3]>>1&&(ft=2,mt+=1),K<0){for(var ut=-(K>>1)-1,kt=0;kt<it;++kt){var It=w(T[kt],ut);if(It!==void 0)return It}if(ft!==0)for(var kt=0;kt<at;++kt){var It=w(f[kt],ut);if(It!==void 0)return It}if(ft!==1)for(var kt=0;kt<vt;++kt){var It=w(y[kt],ut);if(It!==void 0)return It}ft===0?M(f,x,at++,ut):ft===1?M(y,v,vt++,ut):ft===2&&M(T,u,it++,ut)}else{var ut=(K>>1)-1;ft===0?P(f,x,at--,ut):ft===1?P(y,v,vt--,ut):ft===2&&P(T,u,it--,ut)}}}function h(k,w,B,O,j,V,H,F,U,W,q,J){var lt=0,yt=2*k,mt=w,st=w+k,tt=1,pt=1;O?pt=i:tt=i;for(var rt=j;rt<V;++rt){var at=rt+tt,vt=yt*rt;b[lt++]=H[vt+mt],b[lt++]=-at,b[lt++]=H[vt+st],b[lt++]=at}for(var rt=U;rt<W;++rt){var at=rt+pt,it=yt*rt;b[lt++]=q[it+mt],b[lt++]=-at}var K=lt>>>1;o(b,K);for(var ft=0,rt=0;rt<K;++rt){var ut=b[2*rt+1]|0;if(ut<0){var at=-ut,kt=!1;if(at>=i?(kt=!O,at-=i):(kt=!!O,at-=1),kt)M(f,x,ft++,at);else{var It=J[at],Pt=yt*at,qt=q[Pt+w+1],Wt=q[Pt+w+1+k];t:for(var Jt=0;Jt<ft;++Jt){var ge=f[Jt],fe=yt*ge;if(!(Wt<H[fe+w+1]||H[fe+w+1+k]<qt)){for(var pe=w+2;pe<k;++pe)if(q[Pt+pe+k]<H[fe+pe]||H[fe+pe+k]<q[Pt+pe])continue t;var se=F[ge],Tt;if(O?Tt=B(It,se):Tt=B(se,It),Tt!==void 0)return Tt}}}}else P(f,x,ft--,ut-tt)}}function p(k,w,B,O,j,V,H,F,U,W,q){for(var J=0,lt=2*k,yt=w,mt=w+k,st=O;st<j;++st){var tt=st+i,pt=lt*st;b[J++]=V[pt+yt],b[J++]=-tt,b[J++]=V[pt+mt],b[J++]=tt}for(var st=F;st<U;++st){var tt=st+1,rt=lt*st;b[J++]=W[rt+yt],b[J++]=-tt}var at=J>>>1;o(b,at);for(var vt=0,st=0;st<at;++st){var it=b[2*st+1]|0;if(it<0){var tt=-it;if(tt>=i)f[vt++]=tt-i;else{tt-=1;var K=q[tt],ft=lt*tt,ut=W[ft+w+1],kt=W[ft+w+1+k];t:for(var It=0;It<vt;++It){var Pt=f[It],qt=H[Pt];if(qt===K)break;var Wt=lt*Pt;if(!(kt<V[Wt+w+1]||V[Wt+w+1+k]<ut)){for(var Jt=w+2;Jt<k;++Jt)if(W[ft+Jt+k]<V[Wt+Jt]||V[Wt+Jt+k]<W[ft+Jt])continue t;var ge=B(qt,K);if(ge!==void 0)return ge}}}}else{for(var tt=it-i,It=vt-1;It>=0;--It)if(f[It]===tt){for(var Jt=It+1;Jt<vt;++Jt)f[Jt-1]=f[Jt];break}--vt}}}},868:function(t,e,r){t.exports=r(1387)},869:function(t,e,r){var a=r(2651),n=r(5716);t.exports=o;function o(i,l){var f=n(i),x=n(l);if(f===0)return[a(0),a(1)];if(x===0)return[a(0),a(0)];x<0&&(i=i.neg(),l=l.neg());var y=i.gcd(l);return y.cmpn(1)?[i.div(y),l.div(y)]:[i,l]}},870:function(t,e,r){var a=r(1433);function n(i){this.gl=i,this._elements=null,this._attributes=null,this._elementsType=i.UNSIGNED_SHORT}n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(i,l,f){this._elements=l,this._attributes=i,this._elementsType=f||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){ Line truncated
#define GLSLIFY 1
attribute vec4 uv;
@@ -1417,7 +1417,7 @@ varying vec4 fragColor;
void main() {
gl_FragColor = fragColor;
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},1498:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r[3]=-a[3],r}},1533:function(t,e,r){r(6859),t.exports=a;function a(n){return n&&typeof n=="object"&&!!n.words}},1538:function(t){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function e(p){p.permitHostObjects___&&p.permitHostObjects___(e)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=e);var r=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var n=new a,o=Object.freeze({});if(n.set(o,1),n.get(o)!==1)r=!0;else{t.exports=WeakMap;return}}}var i=Object.getOwnPropertyNames,l=Object.defineProperty,f=Object.isExtensible,x="weakmap:",y=x+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),T=new Uint8Array(v);crypto.getRandomValues(T),y=x+"rand:"+Array.prototype.map.call(T,function(p){return(p%36).toString(36)}).join("")+"___"}function u(p){return!(p.substr(0,x.length)==x&&p.substr(p.length-3)==="___")}if(l(Object,"getOwnPropertyNames",{value:function(p){return i(p).filter(u)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;l(Object,"getPropertyNames",{value:function(p){return b(p).filter(u)}})}function _(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var k=p[y];if(k&&k.key===p)return k;if(f(p)){k={key:p};try{return l(p,y,{value:k,writable:!1,enumerable:!1,configurable:!1}),k}catch{return}}}(function(){var p=Object.freeze;l(Object,"freeze",{value:function(R){return _(R),p(R)}});var k=Object.seal;l(Object,"seal",{value:function(R){return _(R),k(R)}});var w=Object.preventExtensions;l(Object,"preventExtensions",{value:function(R){return _(R),w(R)}})})();function P(p){return p.prototype=null,Object.freeze(p)}var M=!1;function C(){!M&&typeof console<"u"&&(M=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var A=0,h=function(){this instanceof h||C();var p=[],k=[],w=A++;function R(H,F){var U,W=_(H);return W?w in W?W[w]:F:(U=p.indexOf(H),U>=0?k[U]:F)}function O(H){var F=_(H);return F?w in F:p.indexOf(H)>=0}function j(H,F){var U,W=_(H);return W?W[w]=F:(U=p.indexOf(H),U>=0?k[U]=F:(U=p.length,k[U]=F,p[U]=H)),this}function V(H){var F=_(H),U,W;return F?w in F&&delete F[w]:(U=p.indexOf(H),U<0?!1:(W=p.length-1,p[U]=void 0,k[U]=k[W],p[U]=p[W],p.length=W,k.length=W,!0))}return Object.create(h.prototype,{get___:{value:P(R)},has___:{value:P(O)},set___:{value:P(j)},delete___:{value:P(V)}})};h.prototype=Object.create(Object.prototype,{get:{value:function(p,k){return this.get___(p,k)},writable:!0,configurable:!0},has:{value:function(p){return this.has___(p)},writable:!0,configurable:!0},set:{value:function(p,k){return this.set___(p,k)},writable:!0,configurable:!0},delete:{value:function(p){return this.delete___(p)},writable:!0,configurable:!0}}),typeof a=="function"?function(){r&&typeof Proxy<"u"&&(Proxy=void 0);function p(){this instanceof h||C();var k=new a,w=void 0,R=!1;function O(F,U){return w?k.has(F)?k.get(F):w.get___(F,U):k.get(F,U)}function j(F){return k.has(F)||(w?w.has___(F):!1)}var V;r?V=function(F,U){return k.set(F,U),k.has(F)||(w||(w=new h),w.set(F,U)),this}:V=function(F,U){if(R)try{k.set(F,U)}catch{w||(w=new h),w.set___(F,U)}else k.set(F,U);return this};function H(F){var U=!!k.delete(F);return w&&w.delete___(F)||U}return Object.create(h.prototype,{get___:{value:P(O)},has___:{value:P(j)},set___:{value:P(V)},delete___:{value:P(H)},permitHostObjects___:{value:P(function(F){if(F===e)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=h.prototype,t.exports=p,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),t.exports=h)})()},1570:function(t){t.exports=r;var e=[function(){function a(n,o,i,l){for(var f=n.length,x=[],y=0;y<f;++y)var v=n[y],T=v.length;return x}return a},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===2){var b=(f[T[0]]<<0)+(f[T[1]]<<1);if(b===0||b===3)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[1])]);break;case 2:y.push([a(l,i,T[1],T[0])]);break}}}return y}return n},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===3){var b=(f[T[0]]<<0)+(f[T[1]]<<1)+(f[T[2]]<<2);if(b===0||b===7)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[2]),a(l,i,T[0],T[1])]);break Line truncated
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},1498:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r[3]=-a[3],r}},1533:function(t,e,r){r(6859),t.exports=a;function a(n){return n&&typeof n=="object"&&!!n.words}},1538:function(t){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function e(p){p.permitHostObjects___&&p.permitHostObjects___(e)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=e);var r=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var n=new a,o=Object.freeze({});if(n.set(o,1),n.get(o)!==1)r=!0;else{t.exports=WeakMap;return}}}var i=Object.getOwnPropertyNames,l=Object.defineProperty,f=Object.isExtensible,x="weakmap:",y=x+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),T=new Uint8Array(v);crypto.getRandomValues(T),y=x+"rand:"+Array.prototype.map.call(T,function(p){return(p%36).toString(36)}).join("")+"___"}function u(p){return!(p.substr(0,x.length)==x&&p.substr(p.length-3)==="___")}if(l(Object,"getOwnPropertyNames",{value:function(p){return i(p).filter(u)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;l(Object,"getPropertyNames",{value:function(p){return b(p).filter(u)}})}function _(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var k=p[y];if(k&&k.key===p)return k;if(f(p)){k={key:p};try{return l(p,y,{value:k,writable:!1,enumerable:!1,configurable:!1}),k}catch{return}}}(function(){var p=Object.freeze;l(Object,"freeze",{value:function(B){return _(B),p(B)}});var k=Object.seal;l(Object,"seal",{value:function(B){return _(B),k(B)}});var w=Object.preventExtensions;l(Object,"preventExtensions",{value:function(B){return _(B),w(B)}})})();function P(p){return p.prototype=null,Object.freeze(p)}var M=!1;function C(){!M&&typeof console<"u"&&(M=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var A=0,h=function(){this instanceof h||C();var p=[],k=[],w=A++;function B(H,F){var U,W=_(H);return W?w in W?W[w]:F:(U=p.indexOf(H),U>=0?k[U]:F)}function O(H){var F=_(H);return F?w in F:p.indexOf(H)>=0}function j(H,F){var U,W=_(H);return W?W[w]=F:(U=p.indexOf(H),U>=0?k[U]=F:(U=p.length,k[U]=F,p[U]=H)),this}function V(H){var F=_(H),U,W;return F?w in F&&delete F[w]:(U=p.indexOf(H),U<0?!1:(W=p.length-1,p[U]=void 0,k[U]=k[W],p[U]=p[W],p.length=W,k.length=W,!0))}return Object.create(h.prototype,{get___:{value:P(B)},has___:{value:P(O)},set___:{value:P(j)},delete___:{value:P(V)}})};h.prototype=Object.create(Object.prototype,{get:{value:function(p,k){return this.get___(p,k)},writable:!0,configurable:!0},has:{value:function(p){return this.has___(p)},writable:!0,configurable:!0},set:{value:function(p,k){return this.set___(p,k)},writable:!0,configurable:!0},delete:{value:function(p){return this.delete___(p)},writable:!0,configurable:!0}}),typeof a=="function"?function(){r&&typeof Proxy<"u"&&(Proxy=void 0);function p(){this instanceof h||C();var k=new a,w=void 0,B=!1;function O(F,U){return w?k.has(F)?k.get(F):w.get___(F,U):k.get(F,U)}function j(F){return k.has(F)||(w?w.has___(F):!1)}var V;r?V=function(F,U){return k.set(F,U),k.has(F)||(w||(w=new h),w.set(F,U)),this}:V=function(F,U){if(B)try{k.set(F,U)}catch{w||(w=new h),w.set___(F,U)}else k.set(F,U);return this};function H(F){var U=!!k.delete(F);return w&&w.delete___(F)||U}return Object.create(h.prototype,{get___:{value:P(O)},has___:{value:P(j)},set___:{value:P(V)},delete___:{value:P(H)},permitHostObjects___:{value:P(function(F){if(F===e)B=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=h.prototype,t.exports=p,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),t.exports=h)})()},1570:function(t){t.exports=r;var e=[function(){function a(n,o,i,l){for(var f=n.length,x=[],y=0;y<f;++y)var v=n[y],T=v.length;return x}return a},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===2){var b=(f[T[0]]<<0)+(f[T[1]]<<1);if(b===0||b===3)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[1])]);break;case 2:y.push([a(l,i,T[1],T[0])]);break}}}return y}return n},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===3){var b=(f[T[0]]<<0)+(f[T[1]]<<1)+(f[T[2]]<<2);if(b===0||b===7)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[2]),a(l,i,T[0],T[1])]);break Line truncated
#define GLSLIFY 1
attribute vec3 position;
@@ -1633,13 +1633,13 @@ void main() {
gl_FragColor = colorChannel.x * colors[0] +
colorChannel.y * colors[1] +
colorChannel.z * colors[2];
}`]);e.bg=function(v){return n(v,x,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},1888:function(t,e,r){var a=r(8828),n=r(1338),o=r(4793).hp;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var i=typeof Uint8ClampedArray<"u",l=typeof BigUint64Array<"u",f=typeof BigInt64Array<"u",x=r.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=n([32,0])),x.BIGUINT64||(x.BIGUINT64=n([32,0])),x.BIGINT64||(x.BIGINT64=n([32,0])),x.BUFFER||(x.BUFFER=n([32,0]));var y=x.DATA,v=x.BUFFER;e.free=function(H){if(o.isBuffer(H))v[a.log2(H.length)].push(H);else{if(Object.prototype.toString.call(H)!=="[object ArrayBuffer]"&&(H=H.buffer),!H)return;var F=H.length||H.byteLength,U=a.log2(F)|0;y[U].push(H)}};function T(H){if(H){var F=H.length||H.byteLength,U=a.log2(F);y[U].push(H)}}function u(H){T(H.buffer)}e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=u,e.freeArrayBuffer=T,e.freeBuffer=function(H){v[a.log2(H.length)].push(H)},e.malloc=function(H,F){if(F===void 0||F==="arraybuffer")return b(H);switch(F){case"uint8":return _(H);case"uint16":return P(H);case"uint32":return M(H);case"int8":return C(H);case"int16":return A(H);case"int32":return h(H);case"float":case"float32":return p(H);case"double":case"float64":return k(H);case"uint8_clamped":return w(H);case"bigint64":return O(H);case"biguint64":return R(H);case"buffer":return V(H);case"data":case"dataview":return j(H);default:return null}return null};function b(F){var F=a.nextPow2(F),U=a.log2(F),W=y[U];return W.length>0?W.pop():new ArrayBuffer(F)}e.mallocArrayBuffer=b;function _(H){return new Uint8Array(b(H),0,H)}e.mallocUint8=_;function P(H){return new Uint16Array(b(2*H),0,H)}e.mallocUint16=P;function M(H){return new Uint32Array(b(4*H),0,H)}e.mallocUint32=M;function C(H){return new Int8Array(b(H),0,H)}e.mallocInt8=C;function A(H){return new Int16Array(b(2*H),0,H)}e.mallocInt16=A;function h(H){return new Int32Array(b(4*H),0,H)}e.mallocInt32=h;function p(H){return new Float32Array(b(4*H),0,H)}e.mallocFloat32=e.mallocFloat=p;function k(H){return new Float64Array(b(8*H),0,H)}e.mallocFloat64=e.mallocDouble=k;function w(H){return i?new Uint8ClampedArray(b(H),0,H):_(H)}e.mallocUint8Clamped=w;function R(H){return l?new BigUint64Array(b(8*H),0,H):null}e.mallocBigUint64=R;function O(H){return f?new BigInt64Array(b(8*H),0,H):null}e.mallocBigInt64=O;function j(H){return new DataView(b(H),0,H)}e.mallocDataView=j;function V(H){H=a.nextPow2(H);var F=a.log2(H),U=v[F];return U.length>0?U.pop():new o(H)}e.mallocBuffer=V,e.clearCache=function(){for(var H=0;H<32;++H)x.UINT8[H].length=0,x.UINT16[H].length=0,x.UINT32[H].length=0,x.INT8[H].length=0,x.INT16[H].length=0,x.INT32[H].length=0,x.FLOAT[H].length=0,x.DOUBLE[H].length=0,x.BIGUINT64[H].length=0,x.BIGINT64[H].length=0,x.UINT8C[H].length=0,y[H].length=0,v[H].length=0}},1903:function(t){t.exports=e;function e(r){var a=new Float32Array(16);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15],a}},1944:function(t,e,r){var a=r(5250),n=r(8210);t.exports=o;function o(i,l){for(var f=a(i[0],l[0]),x=1;x<i.length;++x)f=n(f,a(i[x],l[x]));return f}},1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},2014:function(t,e,r){"use restrict";var a=r(3105),n=r(4623);function o(p){for(var k=0,w=Math.max,R=0,O=p.length;R<O;++R)k=w(k,p[R].length);return k-1}e.dimension=o;function i(p){for(var k=-1,w=Math.max,R=0,O=p.length;R<O;++R)for(var j=p[R],V=0,H=j.length;V<H;++V)k=w(k,j[V]);return k+1}e.countVertices=i;function l(p){for(var k=new Array(p.length),w=0,R=p.length;w<R;++w)k[w]=p[w].slice(0);return k}e.cloneCells=l;function f(p,k){var w=p.length,R=p.length-k.length,O=Math.min;if(R)return R;switch(w){case 0:return 0;case 1:return p[0]-k[0];case 2:var U=p[0]+p[1]-k[0]-k[1];return U||O(p[0],p[1])-O(k[0],k[1]);case 3:var j=p[0]+p[1],V=k[0]+k[1];if(U=j+p[2]-(V+k[2]),U)return U;var H=O(p[0],p[1]),F=O(k[0],k[1]),U=O(H,p[2])-O(F,k[2]);return U||O(H+p[2],j)-O(F+k[2],V);default:var W=p.slice(0);W.sort();var q=k.slice(0);q.sort();for(var J=0;J<w;++J)if(R=W[J]-q[J],R)return R;return 0}}e.compareCells=f;function x(p,k){return f(p[0],k[0])}function y(p,k){if(k){for(var w=p.length,R=new Array(w),O=0;O<w;++O)R[O]=[p[O],k[O]];R.sort(x);for(var O=0;O<w;++O)p[O]=R[O][0],k[O]=R[O][1];return p}else return p.sort(f),p}e.normalize=y;function v(p){if(p.le Line truncated
}`]);e.bg=function(v){return n(v,x,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},1888:function(t,e,r){var a=r(8828),n=r(1338),o=r(4793).hp;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var i=typeof Uint8ClampedArray<"u",l=typeof BigUint64Array<"u",f=typeof BigInt64Array<"u",x=r.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=n([32,0])),x.BIGUINT64||(x.BIGUINT64=n([32,0])),x.BIGINT64||(x.BIGINT64=n([32,0])),x.BUFFER||(x.BUFFER=n([32,0]));var y=x.DATA,v=x.BUFFER;e.free=function(H){if(o.isBuffer(H))v[a.log2(H.length)].push(H);else{if(Object.prototype.toString.call(H)!=="[object ArrayBuffer]"&&(H=H.buffer),!H)return;var F=H.length||H.byteLength,U=a.log2(F)|0;y[U].push(H)}};function T(H){if(H){var F=H.length||H.byteLength,U=a.log2(F);y[U].push(H)}}function u(H){T(H.buffer)}e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=u,e.freeArrayBuffer=T,e.freeBuffer=function(H){v[a.log2(H.length)].push(H)},e.malloc=function(H,F){if(F===void 0||F==="arraybuffer")return b(H);switch(F){case"uint8":return _(H);case"uint16":return P(H);case"uint32":return M(H);case"int8":return C(H);case"int16":return A(H);case"int32":return h(H);case"float":case"float32":return p(H);case"double":case"float64":return k(H);case"uint8_clamped":return w(H);case"bigint64":return O(H);case"biguint64":return B(H);case"buffer":return V(H);case"data":case"dataview":return j(H);default:return null}return null};function b(F){var F=a.nextPow2(F),U=a.log2(F),W=y[U];return W.length>0?W.pop():new ArrayBuffer(F)}e.mallocArrayBuffer=b;function _(H){return new Uint8Array(b(H),0,H)}e.mallocUint8=_;function P(H){return new Uint16Array(b(2*H),0,H)}e.mallocUint16=P;function M(H){return new Uint32Array(b(4*H),0,H)}e.mallocUint32=M;function C(H){return new Int8Array(b(H),0,H)}e.mallocInt8=C;function A(H){return new Int16Array(b(2*H),0,H)}e.mallocInt16=A;function h(H){return new Int32Array(b(4*H),0,H)}e.mallocInt32=h;function p(H){return new Float32Array(b(4*H),0,H)}e.mallocFloat32=e.mallocFloat=p;function k(H){return new Float64Array(b(8*H),0,H)}e.mallocFloat64=e.mallocDouble=k;function w(H){return i?new Uint8ClampedArray(b(H),0,H):_(H)}e.mallocUint8Clamped=w;function B(H){return l?new BigUint64Array(b(8*H),0,H):null}e.mallocBigUint64=B;function O(H){return f?new BigInt64Array(b(8*H),0,H):null}e.mallocBigInt64=O;function j(H){return new DataView(b(H),0,H)}e.mallocDataView=j;function V(H){H=a.nextPow2(H);var F=a.log2(H),U=v[F];return U.length>0?U.pop():new o(H)}e.mallocBuffer=V,e.clearCache=function(){for(var H=0;H<32;++H)x.UINT8[H].length=0,x.UINT16[H].length=0,x.UINT32[H].length=0,x.INT8[H].length=0,x.INT16[H].length=0,x.INT32[H].length=0,x.FLOAT[H].length=0,x.DOUBLE[H].length=0,x.BIGUINT64[H].length=0,x.BIGINT64[H].length=0,x.UINT8C[H].length=0,y[H].length=0,v[H].length=0}},1903:function(t){t.exports=e;function e(r){var a=new Float32Array(16);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15],a}},1944:function(t,e,r){var a=r(5250),n=r(8210);t.exports=o;function o(i,l){for(var f=a(i[0],l[0]),x=1;x<i.length;++x)f=n(f,a(i[x],l[x]));return f}},1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},2014:function(t,e,r){"use restrict";var a=r(3105),n=r(4623);function o(p){for(var k=0,w=Math.max,B=0,O=p.length;B<O;++B)k=w(k,p[B].length);return k-1}e.dimension=o;function i(p){for(var k=-1,w=Math.max,B=0,O=p.length;B<O;++B)for(var j=p[B],V=0,H=j.length;V<H;++V)k=w(k,j[V]);return k+1}e.countVertices=i;function l(p){for(var k=new Array(p.length),w=0,B=p.length;w<B;++w)k[w]=p[w].slice(0);return k}e.cloneCells=l;function f(p,k){var w=p.length,B=p.length-k.length,O=Math.min;if(B)return B;switch(w){case 0:return 0;case 1:return p[0]-k[0];case 2:var U=p[0]+p[1]-k[0]-k[1];return U||O(p[0],p[1])-O(k[0],k[1]);case 3:var j=p[0]+p[1],V=k[0]+k[1];if(U=j+p[2]-(V+k[2]),U)return U;var H=O(p[0],p[1]),F=O(k[0],k[1]),U=O(H,p[2])-O(F,k[2]);return U||O(H+p[2],j)-O(F+k[2],V);default:var W=p.slice(0);W.sort();var q=k.slice(0);q.sort();for(var J=0;J<w;++J)if(B=W[J]-q[J],B)return B;return 0}}e.compareCells=f;function x(p,k){return f(p[0],k[0])}function y(p,k){if(k){for(var w=p.length,B=new Array(w),O=0;O<w;++O)B[O]=[p[O],k[O]];B.sort(x);for(var O=0;O<w;++O)p[O]=B[O][0],k[O]=B[O][1];return p}else return p.sort(f),p}e.normalize=y;function v(p){if(p.le Line truncated
`,T,v),b=a("%s%s",u,f),_=f.split(`
`),P={},M=0;M<_.length;M++){var C=_[M];if(!(C===""||C==="\0")){var A=parseInt(C.split(":")[2]);if(isNaN(A))throw new Error(a("Could not parse error: %s",C));P[A]=C}}for(var h=i(x).split(`
`),M=0;M<h.length;M++)if(!(!P[M+3]&&!P[M+2]&&!P[M+1])){var p=h[M];if(u+=p+`
`,P[M+1]){var k=P[M+1];k=k.substr(k.split(":",3).join(":").length+1).trim(),u+=a(`^^^ %s
`,k)}}return{long:u.trim(),short:b.trim()}}},3012:function(t,e,r){var a=r(5250),n=r(9362);t.exports=o;function o(i,l){var f=i.length;if(f===1){var x=a(i[0],l);return x[0]?x:[x[1]]}var y=new Array(2*f),v=[.1,.1],T=[.1,.1],u=0;a(i[0],l,v),v[0]&&(y[u++]=v[0]);for(var b=1;b<f;++b){a(i[b],l,T);var _=v[1];n(_,T[0],v),v[0]&&(y[u++]=v[0]);var P=T[1],M=v[1],C=P+M,A=C-P,h=M-A;v[1]=C,h&&(y[u++]=h)}return v[1]&&(y[u++]=v[1]),u===0&&(y[u++]=0),y.length=u,y}},3025:function(t,e,r){t.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},3066:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2];return a*a+n*n+o*o}},3088:function(t,e,r){t.exports=n;var a=r(3140);function n(o,i){for(var l=i.length|0,f=o.length,x=[new Array(l),new Array(l)],y=0;y<l;++y)x[0][y]=[],x[1][y]=[];for(var y=0;y<f;++y){var v=o[y];x[0][v[0]].push(v),x[1][v[1]].push(v)}for(var T=[],y=0;y<l;++y)x[0][y].length+x[1][y].length===0&&T.push([y]);function u(h,p){var k=x[p][h[p]];k.splice(k.indexOf(h),1)}function b(h,p,k){for(var w,R,O,j=0;j<2;++j)if(x[j][p].length>0){w=x[j][p][0],O=j;break}R=w[O^1];for(var V=0;V<2;++V)for(var H=x[V][p],F=0;F<H.length;++F){var U=H[F],W=U[V^1],q=a(i[h],i[p],i[R],i[W]);q>0&&(w=U,R=W,O=V)}return k||w&&u(w,O),R}function _(h,p){var k=x[p][h][0],w=[h];u(k,p);for(var R=k[p^1],O=p;;){for(;R!==h;)w.push(R),R=b(w[w.length-2],R,!1);if(x[0][h].length+x[1][h].length===0)break;var j=w[w.length-1],V=h,H=w[1],F=b(j,V,!0);if(a(i[j],i[V],i[H],i[F])<0)break;w.push(h),R=b(j,V)}return w}function P(h,p){return p[1]===p[p.length-1]}for(var y=0;y<l;++y)for(var M=0;M<2;++M){for(var C=[];x[M][y].length>0;){x[0][y].length;var A=_(y,M);P(C,A)?C.push.apply(C,A):(C.length>0&&T.push(C),C=A)}C.length>0&&T.push(C)}return T}},3090:function(t,e,r){t.exports=n;var a=r(3250)[3];function n(o){var i=o.length;if(i<3){for(var l=new Array(i),f=0;f<i;++f)l[f]=f;return i===2&&o[0][0]===o[1][0]&&o[0][1]===o[1][1]?[0]:l}for(var x=new Array(i),f=0;f<i;++f)x[f]=f;x.sort(function(C,A){var h=o[C][0]-o[A][0];return h||o[C][1]-o[A][1]});for(var y=[x[0],x[1]],v=[x[0],x[1]],f=2;f<i;++f){for(var T=x[f],u=o[T],b=y.length;b>1&&a(o[y[b-2]],o[y[b-1]],u)<=0;)b-=1,y.pop();for(y.push(T),b=v.length;b>1&&a(o[v[b-2]],o[v[b-1]],u)>=0;)b-=1,v.pop();v.push(T)}for(var l=new Array(v.length+y.length-2),_=0,f=0,P=y.length;f<P;++f)l[_++]=y[f];for(var M=v.length-2;M>0;--M)l[_++]=v[M];return l}},3105:function(t,e){"use restrict";var r=32;e.INT_BITS=r,e.INT_MAX=2147483647,e.INT_MIN=-1<<r-1,e.sign=function(o){return(o>0)-(o<0)},e.abs=function(o){var i=o>>r-1;return(o^i)-i},e.min=function(o,i){return i^(o^i)&-(o<i)},e.max=function(o,i){return o^(o^i)&-(o<i)},e.isPow2=function(o){return!(o&o-1)&&!!o},e.log2=function(o){var i,l;return i=(o>65535)<<4,o>>>=i,l=(o>255)<<3,o>>>=l,i|=l,l=(o>15)<<2,o>>>=l,i|=l,l=(o>3)<<1,o>>>=l,i|=l,i|o>>1},e.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},e.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function a(o){var i=32;return o&=-o,o&&i--,o&65535&&(i-=16),o&16711935&&(i-=8),o&252645135&&(i-=4),o&858993459&&(i-=2),o&1431655765&&(i-=1),i}e.countTrailingZeros=a,e.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},e.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},e.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var n=new Array(256);(function(o){for(var i=0;i<256;++i){var l=i,f=i,x=7;for(l>>>=1;l;l>>>=1)f<<=1,f|=l&1,--x;o[i]=f<<x&255}})(n),e.reverse=function(o){return n[o&255]<<24|n[o>>>8&255]<<16|n[o>>>16&255]<<8|n[o>>>24&255]},e.interleave2=function(o,i){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,o|i<<1},e.deinterleave2=function(o,i){return o=o>>>i&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},e.interleave3=function(o,i,l){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,o|=i<<1,l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,o|l<<2},e.deinterleave3=function(o,i){return o=o>>>i&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},e.nextCombination=function(o){var i=o|o-1;return i+1|(~i&-~i)-1>>>a(o)+1}},3126:function(t){t.exports=e;function e(r){var a=new Float32Array(3);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a}},3134:function(t,e,r){t.exports=n;var a=r(1682);function n(o,i){var l=o.length;if(typeof i!="number"){i=0;for(var f=0;f<l;++f){var x=o[f];i=Math.max(i,x[0],x[1])}i=(i|0)+1}i=i|0;for(var y=new Array(i),f Line truncated
`,k)}}return{long:u.trim(),short:b.trim()}}},3012:function(t,e,r){var a=r(5250),n=r(9362);t.exports=o;function o(i,l){var f=i.length;if(f===1){var x=a(i[0],l);return x[0]?x:[x[1]]}var y=new Array(2*f),v=[.1,.1],T=[.1,.1],u=0;a(i[0],l,v),v[0]&&(y[u++]=v[0]);for(var b=1;b<f;++b){a(i[b],l,T);var _=v[1];n(_,T[0],v),v[0]&&(y[u++]=v[0]);var P=T[1],M=v[1],C=P+M,A=C-P,h=M-A;v[1]=C,h&&(y[u++]=h)}return v[1]&&(y[u++]=v[1]),u===0&&(y[u++]=0),y.length=u,y}},3025:function(t,e,r){t.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},3066:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2];return a*a+n*n+o*o}},3088:function(t,e,r){t.exports=n;var a=r(3140);function n(o,i){for(var l=i.length|0,f=o.length,x=[new Array(l),new Array(l)],y=0;y<l;++y)x[0][y]=[],x[1][y]=[];for(var y=0;y<f;++y){var v=o[y];x[0][v[0]].push(v),x[1][v[1]].push(v)}for(var T=[],y=0;y<l;++y)x[0][y].length+x[1][y].length===0&&T.push([y]);function u(h,p){var k=x[p][h[p]];k.splice(k.indexOf(h),1)}function b(h,p,k){for(var w,B,O,j=0;j<2;++j)if(x[j][p].length>0){w=x[j][p][0],O=j;break}B=w[O^1];for(var V=0;V<2;++V)for(var H=x[V][p],F=0;F<H.length;++F){var U=H[F],W=U[V^1],q=a(i[h],i[p],i[B],i[W]);q>0&&(w=U,B=W,O=V)}return k||w&&u(w,O),B}function _(h,p){var k=x[p][h][0],w=[h];u(k,p);for(var B=k[p^1],O=p;;){for(;B!==h;)w.push(B),B=b(w[w.length-2],B,!1);if(x[0][h].length+x[1][h].length===0)break;var j=w[w.length-1],V=h,H=w[1],F=b(j,V,!0);if(a(i[j],i[V],i[H],i[F])<0)break;w.push(h),B=b(j,V)}return w}function P(h,p){return p[1]===p[p.length-1]}for(var y=0;y<l;++y)for(var M=0;M<2;++M){for(var C=[];x[M][y].length>0;){x[0][y].length;var A=_(y,M);P(C,A)?C.push.apply(C,A):(C.length>0&&T.push(C),C=A)}C.length>0&&T.push(C)}return T}},3090:function(t,e,r){t.exports=n;var a=r(3250)[3];function n(o){var i=o.length;if(i<3){for(var l=new Array(i),f=0;f<i;++f)l[f]=f;return i===2&&o[0][0]===o[1][0]&&o[0][1]===o[1][1]?[0]:l}for(var x=new Array(i),f=0;f<i;++f)x[f]=f;x.sort(function(C,A){var h=o[C][0]-o[A][0];return h||o[C][1]-o[A][1]});for(var y=[x[0],x[1]],v=[x[0],x[1]],f=2;f<i;++f){for(var T=x[f],u=o[T],b=y.length;b>1&&a(o[y[b-2]],o[y[b-1]],u)<=0;)b-=1,y.pop();for(y.push(T),b=v.length;b>1&&a(o[v[b-2]],o[v[b-1]],u)>=0;)b-=1,v.pop();v.push(T)}for(var l=new Array(v.length+y.length-2),_=0,f=0,P=y.length;f<P;++f)l[_++]=y[f];for(var M=v.length-2;M>0;--M)l[_++]=v[M];return l}},3105:function(t,e){"use restrict";var r=32;e.INT_BITS=r,e.INT_MAX=2147483647,e.INT_MIN=-1<<r-1,e.sign=function(o){return(o>0)-(o<0)},e.abs=function(o){var i=o>>r-1;return(o^i)-i},e.min=function(o,i){return i^(o^i)&-(o<i)},e.max=function(o,i){return o^(o^i)&-(o<i)},e.isPow2=function(o){return!(o&o-1)&&!!o},e.log2=function(o){var i,l;return i=(o>65535)<<4,o>>>=i,l=(o>255)<<3,o>>>=l,i|=l,l=(o>15)<<2,o>>>=l,i|=l,l=(o>3)<<1,o>>>=l,i|=l,i|o>>1},e.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},e.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function a(o){var i=32;return o&=-o,o&&i--,o&65535&&(i-=16),o&16711935&&(i-=8),o&252645135&&(i-=4),o&858993459&&(i-=2),o&1431655765&&(i-=1),i}e.countTrailingZeros=a,e.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},e.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},e.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var n=new Array(256);(function(o){for(var i=0;i<256;++i){var l=i,f=i,x=7;for(l>>>=1;l;l>>>=1)f<<=1,f|=l&1,--x;o[i]=f<<x&255}})(n),e.reverse=function(o){return n[o&255]<<24|n[o>>>8&255]<<16|n[o>>>16&255]<<8|n[o>>>24&255]},e.interleave2=function(o,i){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,o|i<<1},e.deinterleave2=function(o,i){return o=o>>>i&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},e.interleave3=function(o,i,l){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,o|=i<<1,l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,o|l<<2},e.deinterleave3=function(o,i){return o=o>>>i&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},e.nextCombination=function(o){var i=o|o-1;return i+1|(~i&-~i)-1>>>a(o)+1}},3126:function(t){t.exports=e;function e(r){var a=new Float32Array(3);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a}},3134:function(t,e,r){t.exports=n;var a=r(1682);function n(o,i){var l=o.length;if(typeof i!="number"){i=0;for(var f=0;f<l;++f){var x=o[f];i=Math.max(i,x[0],x[1])}i=(i|0)+1}i=i|0;for(var y=new Array(i),f Line truncated
#define GLSLIFY 1
attribute vec3 position, offset;
@@ -1690,11 +1690,11 @@ void main() {
) discard;
gl_FragColor = opacity * fragColor;
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},3502:function(t,e,r){t.exports=o;var a=r(5995),n=r(9127);function o(i,l){return n(a(i,l))}},3508:function(t,e,r){var a=r(6852);a=a.slice().filter(function(n){return!/^(gl\_|texture)/.test(n)}),t.exports=a.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},3536:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=n*n+o*o+i*i;return l>0&&(l=1/Math.sqrt(l),r[0]=a[0]*l,r[1]=a[1]*l,r[2]=a[2]*l),r}},3545:function(t,e,r){t.exports=l;var a=r(8105),n=a("lo<p0"),o=8;function i(f,x,y,v,T,u){for(var b=2*f,_=b*(y+1)+x,P=y+1;P<v;++P,_+=b)for(var M=T[_],C=P,A=b*(P-1);C>y&&T[A+x]>M;--C,A-=b){for(var h=A,p=A+b,k=0;k<b;++k,++h,++p){var w=T[h];T[h]=T[p],T[p]=w}var R=u[C];u[C]=u[C-1],u[C-1]=R}}function l(f,x,y,v,T,u){if(v<=y+1)return y;for(var b=y,_=v,P=v+y>>>1,M=2*f,C=P,A=T[M*P+x];b<_;){if(_-b<o){i(f,x,b,_,T,u),A=T[M*P+x];break}var h=_-b,p=Math.random()*h+b|0,k=T[M*p+x],w=Math.random()*h+b|0,R=T[M*w+x],O=Math.random()*h+b|0,j=T[M*O+x];k<=R?j>=R?(C=w,A=R):k>=j?(C=p,A=k):(C=O,A=j):R>=j?(C=w,A=R):j>=k?(C=p,A=k):(C=O,A=j);for(var V=M*(_-1),H=M*C,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];u[_-1]=u[C],u[C]=W,C=n(f,x,b,_-1,T,u,A);for(var V=M*(_-1),H=M*C,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];if(u[_-1]=u[C],u[C]=W,P<C){for(_=C-1;b<_&&T[M*(_-1)+x]===A;)_-=1;_+=1}else if(C<P)for(b=C+1;b<_&&T[M*b+x]===A;)b+=1;else break}return n(f,x,y,P,T,u,T[M*P+x])}},3576:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]*n[0],r[1]=a[1]*n[1],r[2]=a[2]*n[2],r[3]=a[3]*n[3],r}},3589:function(t,e,r){t.exports=v;var a=r(2260),n=r(1888),o=r(9618),i=r(8828).nextPow2,l=function(T,u,b){for(var _=1e8,P=-1,M=-1,C=T.shape[0],A=T.shape[1],h=0;h<C;h++)for(var p=0;p<A;p++){var k=T.get(h,p,0),w=T.get(h,p,1),R=T.get(h,p,2),O=T.get(h,p,3);if(k<255||w<255||R<255||O<255){var j=u-h,V=b-p,H=j*j+V*V;H<_&&(_=H,P=h,M=p)}}return[P,M,_]};function f(T,u,b,_,P){this.coord=[T,u],this.id=b,this.value=_,this.distance=P}function x(T,u,b){this.gl=T,this.fbo=u,this.buffer=b,this._readTimeout=null;var _=this;this._readCallback=function(){_.gl&&(u.bind(),T.readPixels(0,0,u.shape[0],u.shape[1],T.RGBA,T.UNSIGNED_BYTE,_.buffer),_._readTimeout=null)}}var y=x.prototype;Object.defineProperty(y,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var u=this.fbo.shape[0],b=this.fbo.shape[1];if(b*u*4>this.buffer.length){n.free(this.buffer);for(var _=this.buffer=n.mallocUint8(i(b*u*4)),P=0;P<b*u*4;++P)_[P]=255}return T}}}),y.begin=function(){var T=this.gl;this.shape,T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},y.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},y.query=function(T,u,b){if(!this.gl)return null;var _=this.fbo.shape.slice();T=T|0,u=u|0,typeof b!="number"&&(b=1);var P=Math.min(Math.max(T-b,0),_[0])|0,M=Math.min(Math.max(T+b,0),_[0])|0,C=Math.min(Math.max(u-b,0),_[1])|0,A=Math.min(Math.max(u+b,0),_[1])|0;if(M<=P||A<=C)return null;var h=[M-P,A-C],p=o(this.buffer,[h[0],h[1],4],[4,_[0]*4,1],4*(P+_[0]*C)),k=l(p.hi(h[0],h[1],1),b,b),w=k[0],R=k[1];if(w<0||Math.pow(this.radius,2)<k[2])return null;var O=p.get(w,R,0),j=p.get(w,R,1),V=p.get(w,R,2),H=p.get(w,R,3);return new f(w+P|0,R+C|0,O,[j,V,H],Math.sqrt(k[2]))},y.dispose=function(){this.gl&&(this.fbo.dispose(),n.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function v(T,u){var b=u[0],_=u[1],P={},M=a(T,b,_,P),C=n.mallocUint8(b*_*4);return new x(T,M,C)}},3628:function(t,e,r){var a=r(1338),n=r(727);function o(f,x){for(var y=0,v=f.length,T=0;T<v;++T)y+=f[T]*x[T];return y}function i(f){var x=f.length;if(x===0)return[];f[0].length;var y=a([f.length+1,f.length+1],1),v=a([f.length+1],1);y[x][x]=0;for(var T=0;T<x;++T){for(var u=0;u<=T;++u)y[u][T]=y[T][u]=2*o(f Line truncated
`+h)}throw new a(h,p.short,p.long)}return A}y.getShaderReference=function(P,M){var C=this.gl,A=this.shaders[P===C.FRAGMENT_SHADER|0],h=A[M];if(!h||!C.isShader(h.shader)){var p=v(C,P,M);h=A[M]=new f(l++,M,P,p,[],1,this)}else h.count+=1;return h};function T(P,M,C,A,h){var p=P.createProgram();P.attachShader(p,M),P.attachShader(p,C);for(var k=0;k<A.length;++k)P.bindAttribLocation(p,h[k],A[k]);if(P.linkProgram(p),!P.getProgramParameter(p,P.LINK_STATUS)){var w=P.getProgramInfoLog(p);throw new a(w,"Error linking program: "+w)}return p}y.getProgram=function(P,M,C,A){var h=[P.id,M.id,C.join(":"),A.join(":")].join("@"),p=this.programs[h];return(!p||!this.gl.isProgram(p))&&(this.programs[h]=p=T(this.gl,P.shader,M.shader,C,A),P.programs.push(h),M.programs.push(h)),p};function u(P){var M=i.get(P);return M||(M=new x(P),i.set(P,M)),M}function b(P,M,C){return u(P).getShaderReference(M,C)}function _(P,M,C,A,h){return u(P).getProgram(M,C,A,h)}},5093:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r}},5137:function(t,e,r){t.exports=n;var a=r(1091)();function n(o,i,l,f,x,y){var v,T;for(i||(i=3),l||(l=0),f?T=Math.min(f*i+l,o.length):T=o.length,v=l;v<T;v+=i)a[0]=o[v],a[1]=o[v+1],a[2]=o[v+2],x(a,a,y),o[v]=a[0],o[v+1]=a[1],o[v+2]=a[2];return o}},5171:function(t,e,r){var a=r(737);t.exports=function(n){return a[n]}},5177:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n*n+o*o+i*i+l*l;return f>0&&(f=1/Math.sqrt(f),r[0]=n*f,r[1]=o*f,r[2]=i*f,r[3]=l*f),r}},5202:function(t,e,r){var a=r(1944),n=r(8210);t.exports=l,t.exports.positive=f,t.exports.negative=x;function o(y,v){var T=n(a(y,v),[v[v.length-1]]);return T[T.length-1]}function i(y,v,T,u){var b=u-v,_=-v/b;_<0?_=0:_>1&&(_=1);for(var P=1-_,M=y.length,C=new Array(M),A=0;A<M;++A)C[A]=_*y[A]+P*T[A];return C}function l(y,v){for(var T=[],u=[],b=o(y[y.length-1],v),_=y[y.length-1],P=y[0],M=0;M<y.length;++M,_=P){P=y[M];var C=o(P,v);if(b<0&&C>0||b>0&&C<0){var A=i(_,C,P,b);T.push(A),u.push(A.slice())}C<0?u.push(P.slice()):C>0?T.push(P.slice()):(T.push(P.slice()),u.push(P.slice())),b=C}return{positive:T,negative:u}}function f(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M>=0&&T.push(_.slice()),u=M}return T}function x(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M<=0&&T.push(_.slice()),u=M}return T}},5219:function(t){t.exports=function(e){for(var r=e.length,a,n=0;n<r;n++)if(a=e.charCodeAt(n),(a<9||a>13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},5250:function(t){t.exports=r;var e=+(Math.pow(2,27)+1);function r(a,n,o){var i=a*n,l=e*a,f=l-a,x=l-f,y=a-x,v=e*n,T=v-n,u=v-T,b=n-u,_=i-x*u,P=_-y*u,M=P-x*b,C=y*b-M;return o?(o[0]=C,o[1]=i,o):[C,i]}},5298:function(t,e){var r={"float64,2,1,0":function(){return function(x,y,v,T,u){var b=x[0],_=x[1],P=x[2],M=v[0],C=v[1],A=v[2];T|=0;var h=0,p=0,k=0,w=A,R=C-P*A,O=M-_*C;for(k=0;k<b;++k){for(p=0;p<_;++p){for(h=0;h<P;++h)y[T]/=u,T+=w;T+=R}T+=O}}},"uint8,2,0,1,float64,2,1,0":function(){return function(x,y,v,T,u,b,_,P){var M=x[0],C=x[1],A=x[2],h=v[0],p=v[1],k=v[2],w=b[0],R=b[1],O=b[2];T|=0,_|=0;for(var j=T,V=_,H=x[0]|0;H>0;){H<64?(M=H,H=0):(M=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(C=F,F=0):(C=64,F-=64),T=j+H*h+F*p,_=V+H*w+F*R;var U=0,W=0,q=0,J=k,lt=h-A*k,yt=p-M*h,mt=O,st=w-A*O,tt=R-M*w;for(q=0;q<C;++q){for(W=0;W<M;++W){for(U=0;U<A;++U)y[T]=u[_]*P,T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}},"float32,1,0,float32,1,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;var k=0,w=0,R=A,O=C-M*A,j=p,V=h-M*p;for(w=0;w<P;++w){for(k=0;k<M;++k)y[T]=u[_],T+=R,_+=j;T+=O,_+=V}}},"float32,1,0,float32,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;for(var k=T,w=_,R=x[1]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64);for(var O=x[0]|0;O>0;){O<64?(P=O,O=0):(P=64,O-=64),T=k+R*A+O*C,_=w+R*p+O*h;var j=0,V=0,H=A,F=C-M*A,U=p,W=h-M*p;for(V=0;V<P;++V){for(j=0;j<M;++j)y[T]=u[_],T+=H,_+=U;T+=F,_+=W}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;for(var O=T,j=_,V=x[2]|0;V>0;){V<64?(C=V,V=0):(C=64,V-=64);for(var H=x[0]|0;H>0;){H<64?(P=H,H=0):(P=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64),T=O+V*p+H*A+F*h,_=j+V*R+H*k+F*w;var U=0,W=0,q=0,J=p,lt=A-C*p,yt=h-P*A,mt=R,st=k-C*R,tt=w-P*k;for(q=0;q<M;++q){for(W=0;W<P;++W){for(U=0;U<C;++U)y[T]=u[_],T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;var O=0,j=0,V=0,H=p,F=A-C*p,U=h-P*A,W=R,q=k-C*R,J=w-P*k;for(V=0;V<M;++V){for(j=0;j<P;++j){for(O=0;O<C;++O) Line truncated
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},3502:function(t,e,r){t.exports=o;var a=r(5995),n=r(9127);function o(i,l){return n(a(i,l))}},3508:function(t,e,r){var a=r(6852);a=a.slice().filter(function(n){return!/^(gl\_|texture)/.test(n)}),t.exports=a.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},3536:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=n*n+o*o+i*i;return l>0&&(l=1/Math.sqrt(l),r[0]=a[0]*l,r[1]=a[1]*l,r[2]=a[2]*l),r}},3545:function(t,e,r){t.exports=l;var a=r(8105),n=a("lo<p0"),o=8;function i(f,x,y,v,T,u){for(var b=2*f,_=b*(y+1)+x,P=y+1;P<v;++P,_+=b)for(var M=T[_],C=P,A=b*(P-1);C>y&&T[A+x]>M;--C,A-=b){for(var h=A,p=A+b,k=0;k<b;++k,++h,++p){var w=T[h];T[h]=T[p],T[p]=w}var B=u[C];u[C]=u[C-1],u[C-1]=B}}function l(f,x,y,v,T,u){if(v<=y+1)return y;for(var b=y,_=v,P=v+y>>>1,M=2*f,C=P,A=T[M*P+x];b<_;){if(_-b<o){i(f,x,b,_,T,u),A=T[M*P+x];break}var h=_-b,p=Math.random()*h+b|0,k=T[M*p+x],w=Math.random()*h+b|0,B=T[M*w+x],O=Math.random()*h+b|0,j=T[M*O+x];k<=B?j>=B?(C=w,A=B):k>=j?(C=p,A=k):(C=O,A=j):B>=j?(C=w,A=B):j>=k?(C=p,A=k):(C=O,A=j);for(var V=M*(_-1),H=M*C,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];u[_-1]=u[C],u[C]=W,C=n(f,x,b,_-1,T,u,A);for(var V=M*(_-1),H=M*C,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];if(u[_-1]=u[C],u[C]=W,P<C){for(_=C-1;b<_&&T[M*(_-1)+x]===A;)_-=1;_+=1}else if(C<P)for(b=C+1;b<_&&T[M*b+x]===A;)b+=1;else break}return n(f,x,y,P,T,u,T[M*P+x])}},3576:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]*n[0],r[1]=a[1]*n[1],r[2]=a[2]*n[2],r[3]=a[3]*n[3],r}},3589:function(t,e,r){t.exports=v;var a=r(2260),n=r(1888),o=r(9618),i=r(8828).nextPow2,l=function(T,u,b){for(var _=1e8,P=-1,M=-1,C=T.shape[0],A=T.shape[1],h=0;h<C;h++)for(var p=0;p<A;p++){var k=T.get(h,p,0),w=T.get(h,p,1),B=T.get(h,p,2),O=T.get(h,p,3);if(k<255||w<255||B<255||O<255){var j=u-h,V=b-p,H=j*j+V*V;H<_&&(_=H,P=h,M=p)}}return[P,M,_]};function f(T,u,b,_,P){this.coord=[T,u],this.id=b,this.value=_,this.distance=P}function x(T,u,b){this.gl=T,this.fbo=u,this.buffer=b,this._readTimeout=null;var _=this;this._readCallback=function(){_.gl&&(u.bind(),T.readPixels(0,0,u.shape[0],u.shape[1],T.RGBA,T.UNSIGNED_BYTE,_.buffer),_._readTimeout=null)}}var y=x.prototype;Object.defineProperty(y,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var u=this.fbo.shape[0],b=this.fbo.shape[1];if(b*u*4>this.buffer.length){n.free(this.buffer);for(var _=this.buffer=n.mallocUint8(i(b*u*4)),P=0;P<b*u*4;++P)_[P]=255}return T}}}),y.begin=function(){var T=this.gl;this.shape,T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},y.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},y.query=function(T,u,b){if(!this.gl)return null;var _=this.fbo.shape.slice();T=T|0,u=u|0,typeof b!="number"&&(b=1);var P=Math.min(Math.max(T-b,0),_[0])|0,M=Math.min(Math.max(T+b,0),_[0])|0,C=Math.min(Math.max(u-b,0),_[1])|0,A=Math.min(Math.max(u+b,0),_[1])|0;if(M<=P||A<=C)return null;var h=[M-P,A-C],p=o(this.buffer,[h[0],h[1],4],[4,_[0]*4,1],4*(P+_[0]*C)),k=l(p.hi(h[0],h[1],1),b,b),w=k[0],B=k[1];if(w<0||Math.pow(this.radius,2)<k[2])return null;var O=p.get(w,B,0),j=p.get(w,B,1),V=p.get(w,B,2),H=p.get(w,B,3);return new f(w+P|0,B+C|0,O,[j,V,H],Math.sqrt(k[2]))},y.dispose=function(){this.gl&&(this.fbo.dispose(),n.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function v(T,u){var b=u[0],_=u[1],P={},M=a(T,b,_,P),C=n.mallocUint8(b*_*4);return new x(T,M,C)}},3628:function(t,e,r){var a=r(1338),n=r(727);function o(f,x){for(var y=0,v=f.length,T=0;T<v;++T)y+=f[T]*x[T];return y}function i(f){var x=f.length;if(x===0)return[];f[0].length;var y=a([f.length+1,f.length+1],1),v=a([f.length+1],1);y[x][x]=0;for(var T=0;T<x;++T){for(var u=0;u<=T;++u)y[u][T]=y[T][u]=2*o(f Line truncated
`+h)}throw new a(h,p.short,p.long)}return A}y.getShaderReference=function(P,M){var C=this.gl,A=this.shaders[P===C.FRAGMENT_SHADER|0],h=A[M];if(!h||!C.isShader(h.shader)){var p=v(C,P,M);h=A[M]=new f(l++,M,P,p,[],1,this)}else h.count+=1;return h};function T(P,M,C,A,h){var p=P.createProgram();P.attachShader(p,M),P.attachShader(p,C);for(var k=0;k<A.length;++k)P.bindAttribLocation(p,h[k],A[k]);if(P.linkProgram(p),!P.getProgramParameter(p,P.LINK_STATUS)){var w=P.getProgramInfoLog(p);throw new a(w,"Error linking program: "+w)}return p}y.getProgram=function(P,M,C,A){var h=[P.id,M.id,C.join(":"),A.join(":")].join("@"),p=this.programs[h];return(!p||!this.gl.isProgram(p))&&(this.programs[h]=p=T(this.gl,P.shader,M.shader,C,A),P.programs.push(h),M.programs.push(h)),p};function u(P){var M=i.get(P);return M||(M=new x(P),i.set(P,M)),M}function b(P,M,C){return u(P).getShaderReference(M,C)}function _(P,M,C,A,h){return u(P).getProgram(M,C,A,h)}},5093:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r}},5137:function(t,e,r){t.exports=n;var a=r(1091)();function n(o,i,l,f,x,y){var v,T;for(i||(i=3),l||(l=0),f?T=Math.min(f*i+l,o.length):T=o.length,v=l;v<T;v+=i)a[0]=o[v],a[1]=o[v+1],a[2]=o[v+2],x(a,a,y),o[v]=a[0],o[v+1]=a[1],o[v+2]=a[2];return o}},5171:function(t,e,r){var a=r(737);t.exports=function(n){return a[n]}},5177:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n*n+o*o+i*i+l*l;return f>0&&(f=1/Math.sqrt(f),r[0]=n*f,r[1]=o*f,r[2]=i*f,r[3]=l*f),r}},5202:function(t,e,r){var a=r(1944),n=r(8210);t.exports=l,t.exports.positive=f,t.exports.negative=x;function o(y,v){var T=n(a(y,v),[v[v.length-1]]);return T[T.length-1]}function i(y,v,T,u){var b=u-v,_=-v/b;_<0?_=0:_>1&&(_=1);for(var P=1-_,M=y.length,C=new Array(M),A=0;A<M;++A)C[A]=_*y[A]+P*T[A];return C}function l(y,v){for(var T=[],u=[],b=o(y[y.length-1],v),_=y[y.length-1],P=y[0],M=0;M<y.length;++M,_=P){P=y[M];var C=o(P,v);if(b<0&&C>0||b>0&&C<0){var A=i(_,C,P,b);T.push(A),u.push(A.slice())}C<0?u.push(P.slice()):C>0?T.push(P.slice()):(T.push(P.slice()),u.push(P.slice())),b=C}return{positive:T,negative:u}}function f(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M>=0&&T.push(_.slice()),u=M}return T}function x(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M<=0&&T.push(_.slice()),u=M}return T}},5219:function(t){t.exports=function(e){for(var r=e.length,a,n=0;n<r;n++)if(a=e.charCodeAt(n),(a<9||a>13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},5250:function(t){t.exports=r;var e=+(Math.pow(2,27)+1);function r(a,n,o){var i=a*n,l=e*a,f=l-a,x=l-f,y=a-x,v=e*n,T=v-n,u=v-T,b=n-u,_=i-x*u,P=_-y*u,M=P-x*b,C=y*b-M;return o?(o[0]=C,o[1]=i,o):[C,i]}},5298:function(t,e){var r={"float64,2,1,0":function(){return function(x,y,v,T,u){var b=x[0],_=x[1],P=x[2],M=v[0],C=v[1],A=v[2];T|=0;var h=0,p=0,k=0,w=A,B=C-P*A,O=M-_*C;for(k=0;k<b;++k){for(p=0;p<_;++p){for(h=0;h<P;++h)y[T]/=u,T+=w;T+=B}T+=O}}},"uint8,2,0,1,float64,2,1,0":function(){return function(x,y,v,T,u,b,_,P){var M=x[0],C=x[1],A=x[2],h=v[0],p=v[1],k=v[2],w=b[0],B=b[1],O=b[2];T|=0,_|=0;for(var j=T,V=_,H=x[0]|0;H>0;){H<64?(M=H,H=0):(M=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(C=F,F=0):(C=64,F-=64),T=j+H*h+F*p,_=V+H*w+F*B;var U=0,W=0,q=0,J=k,lt=h-A*k,yt=p-M*h,mt=O,st=w-A*O,tt=B-M*w;for(q=0;q<C;++q){for(W=0;W<M;++W){for(U=0;U<A;++U)y[T]=u[_]*P,T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}},"float32,1,0,float32,1,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;var k=0,w=0,B=A,O=C-M*A,j=p,V=h-M*p;for(w=0;w<P;++w){for(k=0;k<M;++k)y[T]=u[_],T+=B,_+=j;T+=O,_+=V}}},"float32,1,0,float32,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;for(var k=T,w=_,B=x[1]|0;B>0;){B<64?(M=B,B=0):(M=64,B-=64);for(var O=x[0]|0;O>0;){O<64?(P=O,O=0):(P=64,O-=64),T=k+B*A+O*C,_=w+B*p+O*h;var j=0,V=0,H=A,F=C-M*A,U=p,W=h-M*p;for(V=0;V<P;++V){for(j=0;j<M;++j)y[T]=u[_],T+=H,_+=U;T+=F,_+=W}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],B=b[2];T|=0,_|=0;for(var O=T,j=_,V=x[2]|0;V>0;){V<64?(C=V,V=0):(C=64,V-=64);for(var H=x[0]|0;H>0;){H<64?(P=H,H=0):(P=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64),T=O+V*p+H*A+F*h,_=j+V*B+H*k+F*w;var U=0,W=0,q=0,J=p,lt=A-C*p,yt=h-P*A,mt=B,st=k-C*B,tt=w-P*k;for(q=0;q<M;++q){for(W=0;W<P;++W){for(U=0;U<C;++U)y[T]=u[_],T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],B=b[2];T|=0,_|=0;var O=0,j=0,V=0,H=p,F=A-C*p,U=h-P*A,W=B,q=k-C*B,J=w-P*k;for(V=0;V<M;++V){for(j=0;j<P;++j){for(O=0;O<C;++O) Line truncated
`),tt=st.length;for(var Lt;H=st[O],O<tt;){switch(Lt=O,V){case y:O=qt();break;case v:O=Pt();break;case T:O=It();break;case u:O=Wt();break;case b:O=fe();break;case p:O=ge();break;case _:O=pe();break;case x:O=se();break;case A:O=kt();break;case f:O=ut();break}if(Lt!==O)switch(st[Lt]){case`
`:J=0,++q;break;default:++J;break}}return j+=O,st=st.slice(O),W}function ft(Tt){return U.length&&it(U.join("")),V=h,it("(eof)"),W}function ut(){return U=U.length?[]:U,F==="/"&&H==="*"?(lt=j+O-1,V=y,F=H,O+1):F==="/"&&H==="/"?(lt=j+O-1,V=v,F=H,O+1):H==="#"?(V=T,lt=j+O,O):/\s/.test(H)?(V=A,lt=j+O,O):(yt=/\d/.test(H),mt=/[^\w_]/.test(H),lt=j+O,V=yt?b:mt?u:x,O)}function kt(){return/[^\s]/g.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function It(){return(H==="\r"||H===`
`)&&F!=="\\"?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function Pt(){return It()}function qt(){return H==="/"&&F==="*"?(U.push(H),it(U.join("")),V=f,O+1):(U.push(H),F=H,O+1)}function Wt(){if(F==="."&&/\d/.test(H))return V=_,O;if(F==="/"&&H==="*")return V=y,O;if(F==="/"&&H==="/")return V=v,O;if(H==="."&&U.length){for(;Jt(U););return V=_,O}if(H===";"||H===")"||H==="("){if(U.length)for(;Jt(U););return it(H),V=f,O+1}var Tt=U.length===2&&H!=="=";if(/[\w_\d\s]/.test(H)||Tt){for(;Jt(U););return V=f,O}return U.push(H),F=H,O+1}function Jt(Tt){var Lt=0,Mt,ee;do{if(Mt=n.indexOf(Tt.slice(0,Tt.length+Lt).join("")),ee=n[Mt],Mt===-1){if(Lt--+Tt.length>0)continue;ee=Tt.slice(0,1).join("")}return it(ee),lt+=ee.length,U=U.slice(ee.length),U.length}while(!0)}function ge(){return/[^a-fA-F0-9]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function fe(){return H==="."||/[eE]/.test(H)?(U.push(H),V=_,F=H,O+1):H==="x"&&U.length===1&&U[0]==="0"?(V=p,U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function pe(){return H==="f"&&(U.push(H),F=H,O+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(F)?(U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function se(){if(/[^\d\w_]/.test(H)){var Tt=U.join("");return vt[Tt]?V=C:at[Tt]?V=M:V=P,it(U.join("")),V=f,O}return U.push(H),F=H,O+1}}},5878:function(t,e,r){t.exports=i;var a=r(3250),n=r(2014);function o(l,f,x){var y=Math.abs(a(l,f,x)),v=Math.sqrt(Math.pow(f[0]-x[0],2)+Math.pow(f[1]-x[1],2));return y/v}function i(l,f,x){for(var y=f.length,v=l.length,T=new Array(y),u=new Array(y),b=new Array(y),_=new Array(y),P=0;P<y;++P)T[P]=u[P]=-1,b[P]=1/0,_[P]=!1;for(var P=0;P<v;++P){var M=l[P];if(M.length!==2)throw new Error("Input must be a graph");var C=M[1],A=M[0];u[A]!==-1?u[A]=-2:u[A]=C,T[C]!==-1?T[C]=-2:T[C]=A}function h(st){if(_[st])return 1/0;var tt=T[st],dt=u[st];return tt<0||dt<0?1/0:o(f[st],f[tt],f[dt])}function p(st,tt){var dt=F[st],rt=F[tt];F[st]=rt,F[tt]=dt,U[dt]=tt,U[rt]=st}function k(st){return b[F[st]]}function w(st){return st&1?st-1>>1:(st>>1)-1}function R(st){for(var tt=k(st);;){var dt=tt,rt=2*st+1,at=2*(st+1),vt=st;if(rt<q){var it=k(rt);it<dt&&(vt=rt,dt=it)}if(at<q){var Y=k(at);Y<dt&&(vt=at)}if(vt===st)return st;p(st,vt),st=vt}}function O(st){for(var tt=k(st);st>0;){var dt=w(st);if(dt>=0){var rt=k(dt);if(tt<rt){p(st,dt),st=dt;continue}}return st}}function j(){if(q>0){var st=F[0];return p(0,q-1),q-=1,R(0),st}return-1}function V(st,tt){var dt=F[st];return b[dt]===tt?st:(b[dt]=-1/0,O(st),j(),b[dt]=tt,q+=1,O(q-1))}function H(st){if(!_[st]){_[st]=!0;var tt=T[st],dt=u[st];T[dt]>=0&&(T[dt]=tt),u[tt]>=0&&(u[tt]=dt),U[tt]>=0&&V(U[tt],h(tt)),U[dt]>=0&&V(U[dt],h(dt))}}for(var F=[],U=new Array(y),P=0;P<y;++P){var W=b[P]=h(P);W<1/0?(U[P]=F.length,F.push(P)):U[P]=-1}for(var q=F.length,P=q>>1;P>=0;--P)R(P);for(;;){var J=j();if(J<0||b[J]>x)break;H(J)}for(var lt=[],P=0;P<y;++P)_[P]||(U[P]=lt.length,lt.push(f[P].slice()));lt.length;function yt(st,tt){if(st[tt]<0)return tt;var dt=tt,rt=tt;do{var at=st[rt];if(!_[rt]||at<0||at===rt||(rt=at,at=st[rt],!_[rt]||at<0||at===rt))break;rt=at,dt=st[dt]}while(dt!==rt);for(var vt=tt;vt!==rt;vt=st[vt])st[vt]=rt;return rt}var mt=[];return l.forEach(function(st){var tt=yt(T,st[0]),dt=yt(u,st[1]);if(tt>=0&&dt>=0&&tt!==dt){var rt=U[tt],at=U[dt];rt!==at&&mt.push([rt,at])}}),n.unique(n.normalize(mt)),{positions:lt,edges:mt}}},5911:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=n[0],x=n[1],y=n[2];return r[0]=i*y-l*x,r[1]=l*f-o*y,r[2]=o*x-i*f,r}},5964:function(t){t.exports=function(e){return!e&&e!==0?"":e.toString()}},5995:function(t,e,r){t.exports=o;var a=r(7642),n=r(6037);function o(i,l){return a(l).filter(function(f){for(var x=new Array(f.length),y=0;y<f.length;++y)x[y]=l[f[y]];return n(x)*i<1})}},6037:function(t,e,r){t.exports=n;var a=r(3628);function n(o){for(var i=a(o),l=0,f=0;f<o.length;++f)for(var x=o[f],y=0;y<i.length;++y)l+=Math.pow(x[y]-i[y],2);return Math.sqrt(l/o.length)}},6079:function(t){t.exports=e;function e(r,a,n,o){var i=o[0],l=o[1],f=o[2],x=Math.sqrt(i*i+l*l+f*f),y,v,T,u,b,_,P,M,C,A,h,p,k,w,R,O,j,V,H,F,U,W,q,J;return Math.abs(x)<1e-6?null:(x=1/x,i*=x,l*=x,f*=x,y=Math.sin(n),v=Math.cos(n),T=1-v,u=a[0],b=a[1],_=a[2],P=a[3],M=a[4],C=a[5],A=a[6],h=a[7],p=a[8],k=a[9],w=a[10],R=a[11],O=i*i*T+v,j=l*i*T+f*y,V=f*i*T-l*y,H=i*l*T-f*y,F=l*l*T+v,U=f*l*T+i*y,W=i*f*T+l*y,q=l*f*T-i*y,J=f*f*T+v,r[0]=u*O+M*j+p*V,r[1]=b*O+C*j+k*V,r[2]=_*O+A*j+w*V,r[3]=P*O+h*j+R*V,r[4]=u*H+M*F+p*U,r[5]=b*H+C*F+k*U,r[6]=_*H+A*F+w*U,r[7]=P*H+h*F+R*U,r[8]=u*W+M*q+p*J,r[9]=b*W+C*q+k*J,r[10]=_*W+A*q+w*J,r[11]=P*W+h*q+R*J,a!==r&&(r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15]),r)}},6141:function(t,e,r){t.exports=r(2953)},6199:function(t,e,r){var a=r(1338),n={zero:function(P,M,C,A){var h=P[0],p=C[0];A|=0;var k=0,w=p;for(k=0;k<h;++k)M[A]=0,A+=w},fdTemplate1:function(P,M,C,A,h,p,k){var w=P[0],R=C[0],O=p[0],j=-1*R,V=R;A|=0,k|=0;var H=0,F=R,U=O;for(H=0;H<w;++H)h[k]=.5*(M[A+j]-M[A+V]),A+=F,k+=U},fdTemplate2:functi Line truncated
`)&&F!=="\\"?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function Pt(){return It()}function qt(){return H==="/"&&F==="*"?(U.push(H),it(U.join("")),V=f,O+1):(U.push(H),F=H,O+1)}function Wt(){if(F==="."&&/\d/.test(H))return V=_,O;if(F==="/"&&H==="*")return V=y,O;if(F==="/"&&H==="/")return V=v,O;if(H==="."&&U.length){for(;Jt(U););return V=_,O}if(H===";"||H===")"||H==="("){if(U.length)for(;Jt(U););return it(H),V=f,O+1}var Tt=U.length===2&&H!=="=";if(/[\w_\d\s]/.test(H)||Tt){for(;Jt(U););return V=f,O}return U.push(H),F=H,O+1}function Jt(Tt){var Lt=0,Mt,ee;do{if(Mt=n.indexOf(Tt.slice(0,Tt.length+Lt).join("")),ee=n[Mt],Mt===-1){if(Lt--+Tt.length>0)continue;ee=Tt.slice(0,1).join("")}return it(ee),lt+=ee.length,U=U.slice(ee.length),U.length}while(!0)}function ge(){return/[^a-fA-F0-9]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function fe(){return H==="."||/[eE]/.test(H)?(U.push(H),V=_,F=H,O+1):H==="x"&&U.length===1&&U[0]==="0"?(V=p,U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function pe(){return H==="f"&&(U.push(H),F=H,O+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(F)?(U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function se(){if(/[^\d\w_]/.test(H)){var Tt=U.join("");return vt[Tt]?V=C:at[Tt]?V=M:V=P,it(U.join("")),V=f,O}return U.push(H),F=H,O+1}}},5878:function(t,e,r){t.exports=i;var a=r(3250),n=r(2014);function o(l,f,x){var y=Math.abs(a(l,f,x)),v=Math.sqrt(Math.pow(f[0]-x[0],2)+Math.pow(f[1]-x[1],2));return y/v}function i(l,f,x){for(var y=f.length,v=l.length,T=new Array(y),u=new Array(y),b=new Array(y),_=new Array(y),P=0;P<y;++P)T[P]=u[P]=-1,b[P]=1/0,_[P]=!1;for(var P=0;P<v;++P){var M=l[P];if(M.length!==2)throw new Error("Input must be a graph");var C=M[1],A=M[0];u[A]!==-1?u[A]=-2:u[A]=C,T[C]!==-1?T[C]=-2:T[C]=A}function h(st){if(_[st])return 1/0;var tt=T[st],pt=u[st];return tt<0||pt<0?1/0:o(f[st],f[tt],f[pt])}function p(st,tt){var pt=F[st],rt=F[tt];F[st]=rt,F[tt]=pt,U[pt]=tt,U[rt]=st}function k(st){return b[F[st]]}function w(st){return st&1?st-1>>1:(st>>1)-1}function B(st){for(var tt=k(st);;){var pt=tt,rt=2*st+1,at=2*(st+1),vt=st;if(rt<q){var it=k(rt);it<pt&&(vt=rt,pt=it)}if(at<q){var K=k(at);K<pt&&(vt=at)}if(vt===st)return st;p(st,vt),st=vt}}function O(st){for(var tt=k(st);st>0;){var pt=w(st);if(pt>=0){var rt=k(pt);if(tt<rt){p(st,pt),st=pt;continue}}return st}}function j(){if(q>0){var st=F[0];return p(0,q-1),q-=1,B(0),st}return-1}function V(st,tt){var pt=F[st];return b[pt]===tt?st:(b[pt]=-1/0,O(st),j(),b[pt]=tt,q+=1,O(q-1))}function H(st){if(!_[st]){_[st]=!0;var tt=T[st],pt=u[st];T[pt]>=0&&(T[pt]=tt),u[tt]>=0&&(u[tt]=pt),U[tt]>=0&&V(U[tt],h(tt)),U[pt]>=0&&V(U[pt],h(pt))}}for(var F=[],U=new Array(y),P=0;P<y;++P){var W=b[P]=h(P);W<1/0?(U[P]=F.length,F.push(P)):U[P]=-1}for(var q=F.length,P=q>>1;P>=0;--P)B(P);for(;;){var J=j();if(J<0||b[J]>x)break;H(J)}for(var lt=[],P=0;P<y;++P)_[P]||(U[P]=lt.length,lt.push(f[P].slice()));lt.length;function yt(st,tt){if(st[tt]<0)return tt;var pt=tt,rt=tt;do{var at=st[rt];if(!_[rt]||at<0||at===rt||(rt=at,at=st[rt],!_[rt]||at<0||at===rt))break;rt=at,pt=st[pt]}while(pt!==rt);for(var vt=tt;vt!==rt;vt=st[vt])st[vt]=rt;return rt}var mt=[];return l.forEach(function(st){var tt=yt(T,st[0]),pt=yt(u,st[1]);if(tt>=0&&pt>=0&&tt!==pt){var rt=U[tt],at=U[pt];rt!==at&&mt.push([rt,at])}}),n.unique(n.normalize(mt)),{positions:lt,edges:mt}}},5911:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=n[0],x=n[1],y=n[2];return r[0]=i*y-l*x,r[1]=l*f-o*y,r[2]=o*x-i*f,r}},5964:function(t){t.exports=function(e){return!e&&e!==0?"":e.toString()}},5995:function(t,e,r){t.exports=o;var a=r(7642),n=r(6037);function o(i,l){return a(l).filter(function(f){for(var x=new Array(f.length),y=0;y<f.length;++y)x[y]=l[f[y]];return n(x)*i<1})}},6037:function(t,e,r){t.exports=n;var a=r(3628);function n(o){for(var i=a(o),l=0,f=0;f<o.length;++f)for(var x=o[f],y=0;y<i.length;++y)l+=Math.pow(x[y]-i[y],2);return Math.sqrt(l/o.length)}},6079:function(t){t.exports=e;function e(r,a,n,o){var i=o[0],l=o[1],f=o[2],x=Math.sqrt(i*i+l*l+f*f),y,v,T,u,b,_,P,M,C,A,h,p,k,w,B,O,j,V,H,F,U,W,q,J;return Math.abs(x)<1e-6?null:(x=1/x,i*=x,l*=x,f*=x,y=Math.sin(n),v=Math.cos(n),T=1-v,u=a[0],b=a[1],_=a[2],P=a[3],M=a[4],C=a[5],A=a[6],h=a[7],p=a[8],k=a[9],w=a[10],B=a[11],O=i*i*T+v,j=l*i*T+f*y,V=f*i*T-l*y,H=i*l*T-f*y,F=l*l*T+v,U=f*l*T+i*y,W=i*f*T+l*y,q=l*f*T-i*y,J=f*f*T+v,r[0]=u*O+M*j+p*V,r[1]=b*O+C*j+k*V,r[2]=_*O+A*j+w*V,r[3]=P*O+h*j+B*V,r[4]=u*H+M*F+p*U,r[5]=b*H+C*F+k*U,r[6]=_*H+A*F+w*U,r[7]=P*H+h*F+B*U,r[8]=u*W+M*q+p*J,r[9]=b*W+C*q+k*J,r[10]=_*W+A*q+w*J,r[11]=P*W+h*q+B*J,a!==r&&(r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15]),r)}},6141:function(t,e,r){t.exports=r(2953)},6199:function(t,e,r){var a=r(1338),n={zero:function(P,M,C,A){var h=P[0],p=C[0];A|=0;var k=0,w=p;for(k=0;k<h;++k)M[A]=0,A+=w},fdTemplate1:function(P,M,C,A,h,p,k){var w=P[0],B=C[0],O=p[0],j=-1*B,V=B;A|=0,k|=0;var H=0,F=B,U=O;for(H=0;H<w;++H)h[k]=.5*(M[A+j]-M[A+V]),A+=F,k+=U},fdTemplate2:functi Line truncated
precision highp float;
#define GLSLIFY 1
@@ -1958,7 +1958,7 @@ void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
gl_FragColor = vec4(pickId, f_id.xyz);
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},6743:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=o+o,y=i+i,v=l+l,T=o*x,u=o*y,b=o*v,_=i*y,P=i*v,M=l*v,C=f*x,A=f*y,h=f*v;return r[0]=1-(_+M),r[1]=u+h,r[2]=b-A,r[3]=0,r[4]=u-h,r[5]=1-(T+M),r[6]=P+C,r[7]=0,r[8]=b+A,r[9]=P-C,r[10]=1-(T+_),r[11]=0,r[12]=n[0],r[13]=n[1],r[14]=n[2],r[15]=1,r}},6760:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=a[4],y=a[5],v=a[6],T=a[7],u=a[8],b=a[9],_=a[10],P=a[11],M=a[12],C=a[13],A=a[14],h=a[15],p=n[0],k=n[1],w=n[2],R=n[3];return r[0]=p*o+k*x+w*u+R*M,r[1]=p*i+k*y+w*b+R*C,r[2]=p*l+k*v+w*_+R*A,r[3]=p*f+k*T+w*P+R*h,p=n[4],k=n[5],w=n[6],R=n[7],r[4]=p*o+k*x+w*u+R*M,r[5]=p*i+k*y+w*b+R*C,r[6]=p*l+k*v+w*_+R*A,r[7]=p*f+k*T+w*P+R*h,p=n[8],k=n[9],w=n[10],R=n[11],r[8]=p*o+k*x+w*u+R*M,r[9]=p*i+k*y+w*b+R*C,r[10]=p*l+k*v+w*_+R*A,r[11]=p*f+k*T+w*P+R*h,p=n[12],k=n[13],w=n[14],R=n[15],r[12]=p*o+k*x+w*u+R*M,r[13]=p*i+k*y+w*b+R*C,r[14]=p*l+k*v+w*_+R*A,r[15]=p*f+k*T+w*P+R*h,r}},6768:function(t,e,r){var a=r(6859);t.exports=n;function n(o){return new a(o)}},6803:function(t,e,r){r(8828),r(1755);function a(n,o){var i=n.length,l=n.length-o.length,f=Math.min;if(l)return l;switch(i){case 0:return 0;case 1:return n[0]-o[0];case 2:var u=n[0]+n[1]-o[0]-o[1];return u||f(n[0],n[1])-f(o[0],o[1]);case 3:var x=n[0]+n[1],y=o[0]+o[1];if(u=x+n[2]-(y+o[2]),u)return u;var v=f(n[0],n[1]),T=f(o[0],o[1]),u=f(v,n[2])-f(T,o[2]);return u||f(v+n[2],x)-f(T+o[2],y);default:var b=n.slice(0);b.sort();var _=o.slice(0);_.sort();for(var P=0;P<i;++P)if(l=b[P]-_[P],l)return l;return 0}}e.Fw=a},6808:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2],i=r[3];return Math.sqrt(a*a+n*n+o*o+i*i)}},6843:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]-n[0],r[1]=a[1]-n[1],r[2]=a[2]-n[2],r}},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},6859:function(t,e,r){t=r.nmd(t),function(a,n){function o(F,U){if(!F)throw new Error(U||"Assertion failed")}function i(F,U){F.super_=U;var W=function(){};W.prototype=U.prototype,F.prototype=new W,F.prototype.constructor=F}function l(F,U,W){if(l.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((U==="le"||U==="be")&&(W=U,U=10),this._init(F||0,U||10,W||"be"))} Line truncated
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},6743:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=o+o,y=i+i,v=l+l,T=o*x,u=o*y,b=o*v,_=i*y,P=i*v,M=l*v,C=f*x,A=f*y,h=f*v;return r[0]=1-(_+M),r[1]=u+h,r[2]=b-A,r[3]=0,r[4]=u-h,r[5]=1-(T+M),r[6]=P+C,r[7]=0,r[8]=b+A,r[9]=P-C,r[10]=1-(T+_),r[11]=0,r[12]=n[0],r[13]=n[1],r[14]=n[2],r[15]=1,r}},6760:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=a[4],y=a[5],v=a[6],T=a[7],u=a[8],b=a[9],_=a[10],P=a[11],M=a[12],C=a[13],A=a[14],h=a[15],p=n[0],k=n[1],w=n[2],B=n[3];return r[0]=p*o+k*x+w*u+B*M,r[1]=p*i+k*y+w*b+B*C,r[2]=p*l+k*v+w*_+B*A,r[3]=p*f+k*T+w*P+B*h,p=n[4],k=n[5],w=n[6],B=n[7],r[4]=p*o+k*x+w*u+B*M,r[5]=p*i+k*y+w*b+B*C,r[6]=p*l+k*v+w*_+B*A,r[7]=p*f+k*T+w*P+B*h,p=n[8],k=n[9],w=n[10],B=n[11],r[8]=p*o+k*x+w*u+B*M,r[9]=p*i+k*y+w*b+B*C,r[10]=p*l+k*v+w*_+B*A,r[11]=p*f+k*T+w*P+B*h,p=n[12],k=n[13],w=n[14],B=n[15],r[12]=p*o+k*x+w*u+B*M,r[13]=p*i+k*y+w*b+B*C,r[14]=p*l+k*v+w*_+B*A,r[15]=p*f+k*T+w*P+B*h,r}},6768:function(t,e,r){var a=r(6859);t.exports=n;function n(o){return new a(o)}},6803:function(t,e,r){r(8828),r(1755);function a(n,o){var i=n.length,l=n.length-o.length,f=Math.min;if(l)return l;switch(i){case 0:return 0;case 1:return n[0]-o[0];case 2:var u=n[0]+n[1]-o[0]-o[1];return u||f(n[0],n[1])-f(o[0],o[1]);case 3:var x=n[0]+n[1],y=o[0]+o[1];if(u=x+n[2]-(y+o[2]),u)return u;var v=f(n[0],n[1]),T=f(o[0],o[1]),u=f(v,n[2])-f(T,o[2]);return u||f(v+n[2],x)-f(T+o[2],y);default:var b=n.slice(0);b.sort();var _=o.slice(0);_.sort();for(var P=0;P<i;++P)if(l=b[P]-_[P],l)return l;return 0}}e.Fw=a},6808:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2],i=r[3];return Math.sqrt(a*a+n*n+o*o+i*i)}},6843:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]-n[0],r[1]=a[1]-n[1],r[2]=a[2]-n[2],r}},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},6859:function(t,e,r){t=r.nmd(t),function(a,n){function o(F,U){if(!F)throw new Error(U||"Assertion failed")}function i(F,U){F.super_=U;var W=function(){};W.prototype=U.prototype,F.prototype=new W,F.prototype.constructor=F}function l(F,U,W){if(l.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((U==="le"||U==="be")&&(W=U,U=10),this._init(F||0,U||10,W||"be"))} Line truncated
#define GLSLIFY 1
attribute vec3 position, nextPosition;
@@ -2120,13 +2120,13 @@ void main() {
if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;
gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);
}`]),f=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(x){return n(x,o,i,null,f)},e.createPickShader=function(x){return n(x,o,l,null,f)}},7352:function(t,e,r){var a=r(5721),n=r(4750),o=r(2690);t.exports=i;function i(l){var f=l.length;if(f===0)return[];if(f===1)return[[0]];var x=l[0].length;return x===0?[]:x===1?a(l):x===2?n(l):o(l,x)}},7399:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n+n,x=o+o,y=i+i,v=n*f,T=o*f,u=o*x,b=i*f,_=i*x,P=i*y,M=l*f,C=l*x,A=l*y;return r[0]=1-u-P,r[1]=T+A,r[2]=b-C,r[3]=0,r[4]=T-A,r[5]=1-v-P,r[6]=_+M,r[7]=0,r[8]=b+C,r[9]=_-M,r[10]=1-v-u,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7417:function(t){t.exports=e;function e(r,a,n){return r[0]=Math.max(a[0],n[0]),r[1]=Math.max(a[1],n[1]),r[2]=Math.max(a[2],n[2]),r}},7442:function(t,e,r){var a=r(6658),n=r(7182),o=r(2652),i=r(9921),l=r(8648),f=T(),x=T(),y=T();t.exports=v;function v(_,P,M,C){if(i(P)===0||i(M)===0)return!1;var A=o(P,f.translate,f.scale,f.skew,f.perspective,f.quaternion),h=o(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!A||!h?!1:(a(y.translate,f.translate,x.translate,C),a(y.skew,f.skew,x.skew,C),a(y.scale,f.scale,x.scale,C),a(y.perspective,f.perspective,x.perspective,C),l(y.quaternion,f.quaternion,x.quaternion,C),n(_,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:u(),scale:u(1),skew:u(),perspective:b(),quaternion:b()}}function u(_){return[_||0,_||0,_||0]}function b(){return[0,0,0,1]}},7507:function(t,e){e.byteLength=x,e.toByteArray=v,e.fromByteArray=b;for(var r=[],a=[],n=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=o.length;i<l;++i)r[i]=o[i],a[o.charCodeAt(i)]=i;a[45]=62,a[95]=63;function f(_){var P=_.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=P);var C=M===P?0:4-M%4;return[M,C]}function x(_){var P=f(_),M=P[0],C=P[1];return(M+C)*3/4-C}function y(_,P,M){return(P+M)*3/4-M}function v(_){var P,M=f(_),C=M[0],A=M[1],h=new n(y(_,C,A)),p=0,k=A>0?C-4:C,w;for(w=0;w<k;w+=4)P=a[_.charCodeAt(w)]<<18|a[_.charCodeAt(w+1)]<<12|a[_.charCodeAt(w+2)]<<6|a[_.charCodeAt(w+3)],h[p++]=P>>16&255,h[p++]=P>>8&255,h[p++]=P&255;return A===2&&(P=a[_.charCodeAt(w)]<<2|a[_.charCodeAt(w+1)]>>4,h[p++]=P&255),A===1&&(P=a[_.charCodeAt(w)]<<10|a[_.charCodeAt(w+1)]<<4|a[_.charCodeAt(w+2)]>>2,h[p++]=P>>8&255,h[p++]=P&255),h}function T(_){return r[_>>18&63]+r[_>>12&63]+r[_>>6&63]+r[_&63]}function u(_,P,M){for(var C,A=[],h=P;h<M;h+=3)C=(_[h]<<16&16711680)+(_[h+1]<<8&65280)+(_[h+2]&255),A.push(T(C));return A.join("")}function b(_){for(var P,M=_.length,C=M%3,A=[],h=16383,p=0,k=M-C;p<k;p+=h)A.push(u(_,p,p+h>k?k:p+h));return C===1?(P=_[M-1],A.push(r[P>>2]+r[P<<4&63]+"==")):C===2&&(P=(_[M-2]<<8)+_[M-1],A.push(r[P>>10]+r[P>>4&63]+r[P<<2&63]+"=")),A.join("")}},7518:function(t,e,r){var a=r(1433);function n(l,f,x,y,v,T){this.location=l,this.dimension=f,this.a=x,this.b=y,this.c=v,this.d=T}n.prototype.bind=function(l){switch(this.dimension){case 1:l.vertexAttrib1f(this.location,this.a);break;case 2:l.vertexAttrib2f(this.location,this.a,this.b);break;case 3:l.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:l.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function o(l,f,x){this.gl=l,this._ext=f,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=l.UNSIGNED_SHORT}o.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var l=0;l<this._attribs.length;++l)this._attribs[l].bind(this.gl)},o.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},o.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},o.prototype.update=function(l,f,x){if(this.bind(),a(this.gl,f,l),this.unbind(),this._attribs.length=0,l)for(var y=0;y<l.length;++y){var v=l[y];typeof v=="number"?this._attribs.push(new n(y,1,v)):Array.isArray(v)&&this._attribs.push(new n(y,v.length,v[0],v[1],v[2],v[3]))}this._useElements=!!f,this._elementsType=x||this.gl.UNSIGNED_SHORT},o.prototype.draw=function(l,f,x){x=x||0;var y=this.gl;this._useElements?y.drawElements(l,f,this._elementsType,x):y.drawArrays(l,x,f)};function i(l,f){return new o(l,f,f.createVertexArrayOES())}t.exports=i},7520:function(t,e,r){var a=r(9507);function n(){var o=!1;try{var i=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{o=!1}return o}t.exports=a&&n()},7536:function(t){t.exports=e;function e(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},7608:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=a[4],x=a[5],y=a[6],v=a[7],T=a[8],u=a[9],b=a[10],_=a[11],P=a[12],M=a[13],C=a[14],A=a[15],h=n*x-o*f,p=n*y-i*f,k=n*v-l*f,w=o*y-i*x,R=o*v-l*x,O=i*v-l*y,j=T*M-u*P,V=T*C-b*P,H=T*A-_*P, Line truncated
`):H=H.replace(/\<br\>/g," ");var q="",J=[];for(Y=0;Y<H.length;++Y)J[Y]=q;W.bolds===!0&&(J=A(x,y,H,J)),W.italics===!0&&(J=A(v,T,H,J)),W.superscripts===!0&&(J=A(u,_,H,J)),W.subscripts===!0&&(J=A(P,C,H,J));var lt=[],yt="";for(Y=0;Y<H.length;++Y)J[Y]!==null&&(yt+=H[Y],lt.push(J[Y]));var mt=yt.split(`
`),st=mt.length,tt=Math.round(U*F),dt=F,rt=F*2,at=0,vt=st*tt+rt;j.height<vt&&(j.height=vt),V.fillStyle="#000",V.fillRect(0,0,j.width,j.height),V.fillStyle="#fff";var it,Y,ft,ut,kt,It=0,Pt="";function qt(){if(Pt!==""){var Mt=V.measureText(Pt).width;V.fillText(Pt,dt+ft,rt+ut),ft+=Mt}}function Wt(){return""+Math.round(kt)+"px "}function Jt(Mt,ee){var ve=""+V.font;if(W.subscripts===!0){var oe=Mt.indexOf(M),Te=ee.indexOf(M),He=oe>-1?parseInt(Mt[1+oe]):0,Ge=Te>-1?parseInt(ee[1+Te]):0;He!==Ge&&(ve=ve.replace(Wt(),"?px "),kt*=Math.pow(.75,Ge-He),ve=ve.replace("?px ",Wt())),ut+=.25*tt*(Ge-He)}if(W.superscripts===!0){var cr=Mt.indexOf(b),ur=ee.indexOf(b),jr=cr>-1?parseInt(Mt[1+cr]):0,Wr=ur>-1?parseInt(ee[1+ur]):0;jr!==Wr&&(ve=ve.replace(Wt(),"?px "),kt*=Math.pow(.75,Wr-jr),ve=ve.replace("?px ",Wt())),ut-=.25*tt*(Wr-jr)}if(W.bolds===!0){var br=Mt.indexOf(y)>-1,Xr=ee.indexOf(y)>-1;!br&&Xr&&(nn?ve=ve.replace("italic ","italic bold "):ve="bold "+ve),br&&!Xr&&(ve=ve.replace("bold ",""))}if(W.italics===!0){var nn=Mt.indexOf(T)>-1,Le=ee.indexOf(T)>-1;!nn&&Le&&(ve="italic "+ve),nn&&!Le&&(ve=ve.replace("italic ",""))}V.font=ve}for(it=0;it<st;++it){var ge=mt[it]+`
`;for(ft=0,ut=it*tt,kt=F,Pt="",Y=0;Y<ge.length;++Y){var fe=Y+It<lt.length?lt[Y+It]:lt[lt.length-1];q===fe?Pt+=ge[Y]:(qt(),Pt=ge[Y],fe!==void 0&&(Jt(q,fe),q=fe))}qt(),It+=ge.length;var pe=Math.round(ft+2*dt)|0;at<pe&&(at=pe)}var se=at,Tt=rt+tt*st,Lt=n(V.getImageData(0,0,se,Tt).data,[Tt,se,4]);return Lt.pick(-1,-1,0).transpose(1,0)}function k(j,V){var H=a(j,128);return V?o(H.cells,H.positions,.25):{edges:H.cells,positions:H.positions}}function w(j,V,H,F){var U=k(j,F),W=h(U.positions,V,H),q=U.edges,J=V.orientation==="ccw";if(i(W,q),V.polygons||V.polygon||V.polyline){for(var lt=f(q,W),yt=new Array(lt.length),mt=0;mt<lt.length;++mt){for(var st=lt[mt],tt=new Array(st.length),dt=0;dt<st.length;++dt){for(var rt=st[dt],at=new Array(rt.length),vt=0;vt<rt.length;++vt)at[vt]=W[rt[vt]].slice();J&&at.reverse(),tt[dt]=at}yt[mt]=tt}return yt}else return V.triangles||V.triangulate||V.triangle?{cells:l(W,q,{delaunay:!1,exterior:!1,interior:!0}),positions:W}:{edges:q,positions:W}}function R(j,V,H){try{return w(j,V,H,!0)}catch{}try{return w(j,V,H,!1)}catch{}return V.polygons||V.polyline||V.polygon?[]:V.triangles||V.triangulate||V.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function O(j,V,H,F){var U=64,W=1.25,q={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(U=F.size),F.lineSpacing&&F.lineSpacing>0&&(W=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(q.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(q.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(q.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(q.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(q.superscripts=!!F.styletags.superscripts)),H.font=[F.fontStyle,F.fontVariant,F.fontWeight,U+"px",F.font].filter(function(lt){return lt}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var J=p(V,H,j,U,W,q);return R(J,F,U)}},7721:function(t,e,r){var a=r(5716);t.exports=n;function n(o){return a(o[0])*a(o[1])}},7765:function(t,e,r){t.exports=u;var a=r(9618),n=r(1888),o=r(446),i=r(1570);function l(b){for(var _=b.length,P=0,M=0;M<_;++M)P=Math.max(P,b[M].length)|0;return P-1}function f(b,_){for(var P=b.length,M=n.mallocUint8(P),C=0;C<P;++C)M[C]=b[C]<_|0;return M}function x(b,_){for(var P=b.length,M=_*(_+1)/2*P|0,C=n.mallocUint32(M*2),A=0,h=0;h<P;++h)for(var p=b[h],_=p.length,k=0;k<_;++k)for(var w=0;w<k;++w){var R=p[w],O=p[k];C[A++]=Math.min(R,O)|0,C[A++]=Math.max(R,O)|0}var j=A/2|0;o(a(C,[j,2]));for(var V=2,h=2;h<A;h+=2)C[h-2]===C[h]&&C[h-1]===C[h+1]||(C[V++]=C[h],C[V++]=C[h+1]);return a(C,[V/2|0,2])}function y(b,_,P,M){for(var C=b.data,A=b.shape[0],h=n.mallocDouble(A),p=0,k=0;k<A;++k){var w=C[2*k],R=C[2*k+1];if(P[w]!==P[R]){var O=_[w],j=_[R];C[2*p]=w,C[2*p+1]=R,h[p++]=(j-M)/(j-O)}}return b.shape[0]=p,a(h,[p])}function v(b,_){var P=n.mallocInt32(_*2),M=b.shape[0],C=b.data;P[0]=0;for(var A=0,h=0;h<M;++h){var p=C[2*h];if(p!==A){for(P[2*A+1]=h;++A<p;)P[2*A]=h,P[2*A+1]=h;P[2*A]=h}}for(P[2*A+1]=M;++A<_;)P[2*A]=P[2*A+1]=M;return P}function T(b){for(var _=b.shape[0]|0,P=b.data,M=new Array(_),C=0;C<_;++C)M[C]=[P[2*C],P[2*C+1]];return M}function u(b,_,P,M){P=P||0,typeof M>"u"&&(M=l(b));var C=b.length;if(C===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var A=f(_,+P),h=x(b,M),p=y(h,_,A,+P),k=v(h,_.length|0),w=i(M)(b,h.data,k,A),R=T(h),O=[].slice.call(p.data,0,p.shape[0]);return n.free(A),n.free(h.data),n.free(p.data),n.free(k),{cells:w,vertexIds:R,vertexWeights:O}}},7766:function(t,e,r){var a=r(9618),n=r(5298),o=r(1888);t.exports=p;var i=null,l=null,f=null;function x(k){i=[k.LINEAR,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_NEAREST],l=[k.NEAREST,k.LINEAR,k.NEAREST_MIPMAP_NEAREST,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_LINEAR],f=[k.REPEAT,k.CLAMP_TO_EDGE,k.MIRRORED_REPEAT]}function y(k){return typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&k instanceof HTMLVideoElement||typeof ImageData<"u"&&k instanceof ImageData}var v=function(k,w){n.muls(k,w,255)};function T(k,w,R){var O=k.gl,j=O.getParameter(O.MAX_TEXTURE_SIZE);if(w<0||w>j||R<0||R>j)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[w,R],k.bind(),O.texImage2D(O.TEXTURE_2D,0,k.format,w,R,0,k.format,k.type,null),k._mipLevels=[0],k}function u(k,w,R,O,j,V){this.gl=k,this.handle=w,this.format=j,this.type=V,this._shape=[R,O],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return H._wrapS},set:function(W){return H.wrapS=W}},{get:function(){return H._wrapT},set:function(W){return H.wrapT=W}}]),this._wrapVector=F;var U=[this._shape[0],this._shape[1]];Object.defineProperties(U,[{get:function(){return H._shape[0]},set:function(W){retur Line truncated
`+n:""),this.stack=new Error().stack}e.prototype=new Error,e.prototype.name="GLError",e.prototype.constructor=e,t.exports=e},8902:function(t,e,r){var a=r(2478),n=r(3250)[3],o=0,i=1,l=2;t.exports=P;function f(M,C,A,h,p){this.a=M,this.b=C,this.idx=A,this.lowerIds=h,this.upperIds=p}function x(M,C,A,h){this.a=M,this.b=C,this.type=A,this.idx=h}function y(M,C){var A=M.a[0]-C.a[0]||M.a[1]-C.a[1]||M.type-C.type;return A||M.type!==o&&(A=n(M.a,M.b,C.b),A)?A:M.idx-C.idx}function v(M,C){return n(M.a,M.b,C)}function T(M,C,A,h,p){for(var k=a.lt(C,h,v),w=a.gt(C,h,v),R=k;R<w;++R){for(var O=C[R],j=O.lowerIds,V=j.length;V>1&&n(A[j[V-2]],A[j[V-1]],h)>0;)M.push([j[V-1],j[V-2],p]),V-=1;j.length=V,j.push(p);for(var H=O.upperIds,V=H.length;V>1&&n(A[H[V-2]],A[H[V-1]],h)<0;)M.push([H[V-2],H[V-1],p]),V-=1;H.length=V,H.push(p)}}function u(M,C){var A;return M.a[0]<C.a[0]?A=n(M.a,M.b,C.a):A=n(C.b,C.a,M.a),A||(C.b[0]<M.b[0]?A=n(M.a,M.b,C.b):A=n(C.b,C.a,M.b),A||M.idx-C.idx)}function b(M,C,A){var h=a.le(M,A,u),p=M[h],k=p.upperIds,w=k[k.length-1];p.upperIds=[w],M.splice(h+1,0,new f(A.a,A.b,A.idx,[w],k))}function _(M,C,A){var h=A.a;A.a=A.b,A.b=h;var p=a.eq(M,A,u),k=M[p],w=M[p-1];w.upperIds=k.upperIds,M.splice(p,1)}function P(M,C){for(var A=M.length,h=C.length,p=[],k=0;k<A;++k)p.push(new x(M[k],null,o,k));for(var k=0;k<h;++k){var w=C[k],R=M[w[0]],O=M[w[1]];R[0]<O[0]?p.push(new x(R,O,l,k),new x(O,R,i,k)):R[0]>O[0]&&p.push(new x(O,R,l,k),new x(R,O,i,k))}p.sort(y);for(var j=p[0].a[0]-(1+Math.abs(p[0].a[0]))*Math.pow(2,-52),V=[new f([j,1],[j,0],-1,[],[])],H=[],k=0,F=p.length;k<F;++k){var U=p[k],W=U.type;W===o?T(H,V,M,U.a,U.idx):W===l?b(V,M,U):_(V,M,U)}return H}},8954:function(t,e,r){t.exports=u;var a=r(3250),n=r(6803).Fw;function o(b,_,P){this.vertices=b,this.adjacent=_,this.boundary=P,this.lastVisited=-1}o.prototype.flip=function(){var b=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=b;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function i(b,_,P){this.vertices=b,this.cell=_,this.index=P}function l(b,_){return n(b.vertices,_.vertices)}function f(b){return function(){var _=this.tuple;return b.apply(this,_)}}function x(b){var _=a[b+1];return _||(_=a),f(_)}var y=[];function v(b,_,P){this.dimension=b,this.vertices=_,this.simplices=P,this.interior=P.filter(function(A){return!A.boundary}),this.tuple=new Array(b+1);for(var M=0;M<=b;++M)this.tuple[M]=this.vertices[M];var C=y[b];C||(C=y[b]=x(b)),this.orient=C}var T=v.prototype;T.handleBoundaryDegeneracy=function(b,_){var P=this.dimension,M=this.vertices.length-1,C=this.tuple,A=this.vertices,h=[b];for(b.lastVisited=-M;h.length>0;){b=h.pop();for(var p=b.adjacent,k=0;k<=P;++k){var w=p[k];if(!(!w.boundary||w.lastVisited<=-M)){for(var R=w.vertices,O=0;O<=P;++O){var j=R[O];j<0?C[O]=_:C[O]=A[j]}var V=this.orient();if(V>0)return w;w.lastVisited=-M,V===0&&h.push(w)}}}return null},T.walk=function(b,_){var P=this.vertices.length-1,M=this.dimension,C=this.vertices,A=this.tuple,h=_?this.interior.length*Math.random()|0:this.interior.length-1,p=this.interior[h];t:for(;!p.boundary;){for(var k=p.vertices,w=p.adjacent,R=0;R<=M;++R)A[R]=C[k[R]];p.lastVisited=P;for(var R=0;R<=M;++R){var O=w[R];if(!(O.lastVisited>=P)){var j=A[R];A[R]=b;var V=this.orient();if(A[R]=j,V<0){p=O;continue t}else O.boundary?O.lastVisited=-P:O.lastVisited=P}}return}return p},T.addPeaks=function(b,_){var P=this.vertices.length-1,M=this.dimension,C=this.vertices,A=this.tuple,h=this.interior,p=this.simplices,k=[_];_.lastVisited=P,_.vertices[_.vertices.indexOf(-1)]=P,_.boundary=!1,h.push(_);for(var w=[];k.length>0;){var _=k.pop(),R=_.vertices,O=_.adjacent,j=R.indexOf(P);if(!(j<0)){for(var V=0;V<=M;++V)if(V!==j){var H=O[V];if(!(!H.boundary||H.lastVisited>=P)){var F=H.vertices;if(H.lastVisited!==-P){for(var U=0,W=0;W<=M;++W)F[W]<0?(U=W,A[W]=b):A[W]=C[F[W]];var q=this.orient();if(q>0){F[U]=P,H.boundary=!1,h.push(H),k.push(H),H.lastVisited=P;continue}else H.lastVisited=-P}var J=H.adjacent,lt=R.slice(),yt=O.slice(),mt=new o(lt,yt,!0);p.push(mt);var st=J.indexOf(_);if(!(st<0)){J[st]=mt,yt[j]=H,lt[V]=-1,yt[V]=_,O[V]=mt,mt.flip();for(var W=0;W<=M;++W){var tt=lt[W];if(!(tt<0||tt===P)){for(var dt=new Array(M-1),rt=0,at=0;at<=M;++at){var vt=lt[at];vt<0||at===W||(dt[rt++]=vt)}w.push(new i(dt,mt,W))}}}}}}}w.sort(l);for(var V=0;V+1<w.length;V+=2){var it=w[V],Y=w[V+1],ft=it.index,ut=Y.index;ft<0||ut<0||(it.cell.adjacent[it.index]=Y.cell,Y.cell.adjacent[Y.index]=it.cell)}},T.insert=function(b,_){var P=this.vertices;P.push(b);var M=this.walk(b,_);if(M){for(var C=this.dimension,A=this.tuple,h=0;h<=C;++h){var p=M.vertices[h];p<0?A[h]=b:A[h]=P[p]}var k=this.orient(A);k<0||k===0&&(M=this.handleBoundaryDegeneracy(M,b),!M)||this.addPeaks(b,M)}},T.boundary=function(){for(var b=this.dimension,_=[],P=this.simplices,M=P.length,C=0;C<M;++C){var A=P[C];if(A.boundary){for(var h=new Array(b),p=A.vertices,k=0,w=0,R=0;R<=b;++R)p[R]>=0?h[k++]=p[R]:w=R&1;if(w===(b&1)){var O=h[0];h[0]=h[1],h[1]=O}_.push(h)}}return _};function u(b,_){v Line truncated
}`]),f=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(x){return n(x,o,i,null,f)},e.createPickShader=function(x){return n(x,o,l,null,f)}},7352:function(t,e,r){var a=r(5721),n=r(4750),o=r(2690);t.exports=i;function i(l){var f=l.length;if(f===0)return[];if(f===1)return[[0]];var x=l[0].length;return x===0?[]:x===1?a(l):x===2?n(l):o(l,x)}},7399:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n+n,x=o+o,y=i+i,v=n*f,T=o*f,u=o*x,b=i*f,_=i*x,P=i*y,M=l*f,C=l*x,A=l*y;return r[0]=1-u-P,r[1]=T+A,r[2]=b-C,r[3]=0,r[4]=T-A,r[5]=1-v-P,r[6]=_+M,r[7]=0,r[8]=b+C,r[9]=_-M,r[10]=1-v-u,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7417:function(t){t.exports=e;function e(r,a,n){return r[0]=Math.max(a[0],n[0]),r[1]=Math.max(a[1],n[1]),r[2]=Math.max(a[2],n[2]),r}},7442:function(t,e,r){var a=r(6658),n=r(7182),o=r(2652),i=r(9921),l=r(8648),f=T(),x=T(),y=T();t.exports=v;function v(_,P,M,C){if(i(P)===0||i(M)===0)return!1;var A=o(P,f.translate,f.scale,f.skew,f.perspective,f.quaternion),h=o(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!A||!h?!1:(a(y.translate,f.translate,x.translate,C),a(y.skew,f.skew,x.skew,C),a(y.scale,f.scale,x.scale,C),a(y.perspective,f.perspective,x.perspective,C),l(y.quaternion,f.quaternion,x.quaternion,C),n(_,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:u(),scale:u(1),skew:u(),perspective:b(),quaternion:b()}}function u(_){return[_||0,_||0,_||0]}function b(){return[0,0,0,1]}},7507:function(t,e){e.byteLength=x,e.toByteArray=v,e.fromByteArray=b;for(var r=[],a=[],n=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=o.length;i<l;++i)r[i]=o[i],a[o.charCodeAt(i)]=i;a[45]=62,a[95]=63;function f(_){var P=_.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=P);var C=M===P?0:4-M%4;return[M,C]}function x(_){var P=f(_),M=P[0],C=P[1];return(M+C)*3/4-C}function y(_,P,M){return(P+M)*3/4-M}function v(_){var P,M=f(_),C=M[0],A=M[1],h=new n(y(_,C,A)),p=0,k=A>0?C-4:C,w;for(w=0;w<k;w+=4)P=a[_.charCodeAt(w)]<<18|a[_.charCodeAt(w+1)]<<12|a[_.charCodeAt(w+2)]<<6|a[_.charCodeAt(w+3)],h[p++]=P>>16&255,h[p++]=P>>8&255,h[p++]=P&255;return A===2&&(P=a[_.charCodeAt(w)]<<2|a[_.charCodeAt(w+1)]>>4,h[p++]=P&255),A===1&&(P=a[_.charCodeAt(w)]<<10|a[_.charCodeAt(w+1)]<<4|a[_.charCodeAt(w+2)]>>2,h[p++]=P>>8&255,h[p++]=P&255),h}function T(_){return r[_>>18&63]+r[_>>12&63]+r[_>>6&63]+r[_&63]}function u(_,P,M){for(var C,A=[],h=P;h<M;h+=3)C=(_[h]<<16&16711680)+(_[h+1]<<8&65280)+(_[h+2]&255),A.push(T(C));return A.join("")}function b(_){for(var P,M=_.length,C=M%3,A=[],h=16383,p=0,k=M-C;p<k;p+=h)A.push(u(_,p,p+h>k?k:p+h));return C===1?(P=_[M-1],A.push(r[P>>2]+r[P<<4&63]+"==")):C===2&&(P=(_[M-2]<<8)+_[M-1],A.push(r[P>>10]+r[P>>4&63]+r[P<<2&63]+"=")),A.join("")}},7518:function(t,e,r){var a=r(1433);function n(l,f,x,y,v,T){this.location=l,this.dimension=f,this.a=x,this.b=y,this.c=v,this.d=T}n.prototype.bind=function(l){switch(this.dimension){case 1:l.vertexAttrib1f(this.location,this.a);break;case 2:l.vertexAttrib2f(this.location,this.a,this.b);break;case 3:l.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:l.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function o(l,f,x){this.gl=l,this._ext=f,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=l.UNSIGNED_SHORT}o.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var l=0;l<this._attribs.length;++l)this._attribs[l].bind(this.gl)},o.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},o.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},o.prototype.update=function(l,f,x){if(this.bind(),a(this.gl,f,l),this.unbind(),this._attribs.length=0,l)for(var y=0;y<l.length;++y){var v=l[y];typeof v=="number"?this._attribs.push(new n(y,1,v)):Array.isArray(v)&&this._attribs.push(new n(y,v.length,v[0],v[1],v[2],v[3]))}this._useElements=!!f,this._elementsType=x||this.gl.UNSIGNED_SHORT},o.prototype.draw=function(l,f,x){x=x||0;var y=this.gl;this._useElements?y.drawElements(l,f,this._elementsType,x):y.drawArrays(l,x,f)};function i(l,f){return new o(l,f,f.createVertexArrayOES())}t.exports=i},7520:function(t,e,r){var a=r(9507);function n(){var o=!1;try{var i=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{o=!1}return o}t.exports=a&&n()},7536:function(t){t.exports=e;function e(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},7608:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=a[4],x=a[5],y=a[6],v=a[7],T=a[8],u=a[9],b=a[10],_=a[11],P=a[12],M=a[13],C=a[14],A=a[15],h=n*x-o*f,p=n*y-i*f,k=n*v-l*f,w=o*y-i*x,B=o*v-l*x,O=i*v-l*y,j=T*M-u*P,V=T*C-b*P,H=T*A-_*P, Line truncated
`):H=H.replace(/\<br\>/g," ");var q="",J=[];for(K=0;K<H.length;++K)J[K]=q;W.bolds===!0&&(J=A(x,y,H,J)),W.italics===!0&&(J=A(v,T,H,J)),W.superscripts===!0&&(J=A(u,_,H,J)),W.subscripts===!0&&(J=A(P,C,H,J));var lt=[],yt="";for(K=0;K<H.length;++K)J[K]!==null&&(yt+=H[K],lt.push(J[K]));var mt=yt.split(`
`),st=mt.length,tt=Math.round(U*F),pt=F,rt=F*2,at=0,vt=st*tt+rt;j.height<vt&&(j.height=vt),V.fillStyle="#000",V.fillRect(0,0,j.width,j.height),V.fillStyle="#fff";var it,K,ft,ut,kt,It=0,Pt="";function qt(){if(Pt!==""){var Mt=V.measureText(Pt).width;V.fillText(Pt,pt+ft,rt+ut),ft+=Mt}}function Wt(){return""+Math.round(kt)+"px "}function Jt(Mt,ee){var ve=""+V.font;if(W.subscripts===!0){var oe=Mt.indexOf(M),Ae=ee.indexOf(M),He=oe>-1?parseInt(Mt[1+oe]):0,Ge=Ae>-1?parseInt(ee[1+Ae]):0;He!==Ge&&(ve=ve.replace(Wt(),"?px "),kt*=Math.pow(.75,Ge-He),ve=ve.replace("?px ",Wt())),ut+=.25*tt*(Ge-He)}if(W.superscripts===!0){var cr=Mt.indexOf(b),ur=ee.indexOf(b),jr=cr>-1?parseInt(Mt[1+cr]):0,qr=ur>-1?parseInt(ee[1+ur]):0;jr!==qr&&(ve=ve.replace(Wt(),"?px "),kt*=Math.pow(.75,qr-jr),ve=ve.replace("?px ",Wt())),ut-=.25*tt*(qr-jr)}if(W.bolds===!0){var br=Mt.indexOf(y)>-1,Xr=ee.indexOf(y)>-1;!br&&Xr&&(nn?ve=ve.replace("italic ","italic bold "):ve="bold "+ve),br&&!Xr&&(ve=ve.replace("bold ",""))}if(W.italics===!0){var nn=Mt.indexOf(T)>-1,Le=ee.indexOf(T)>-1;!nn&&Le&&(ve="italic "+ve),nn&&!Le&&(ve=ve.replace("italic ",""))}V.font=ve}for(it=0;it<st;++it){var ge=mt[it]+`
`;for(ft=0,ut=it*tt,kt=F,Pt="",K=0;K<ge.length;++K){var fe=K+It<lt.length?lt[K+It]:lt[lt.length-1];q===fe?Pt+=ge[K]:(qt(),Pt=ge[K],fe!==void 0&&(Jt(q,fe),q=fe))}qt(),It+=ge.length;var pe=Math.round(ft+2*pt)|0;at<pe&&(at=pe)}var se=at,Tt=rt+tt*st,Lt=n(V.getImageData(0,0,se,Tt).data,[Tt,se,4]);return Lt.pick(-1,-1,0).transpose(1,0)}function k(j,V){var H=a(j,128);return V?o(H.cells,H.positions,.25):{edges:H.cells,positions:H.positions}}function w(j,V,H,F){var U=k(j,F),W=h(U.positions,V,H),q=U.edges,J=V.orientation==="ccw";if(i(W,q),V.polygons||V.polygon||V.polyline){for(var lt=f(q,W),yt=new Array(lt.length),mt=0;mt<lt.length;++mt){for(var st=lt[mt],tt=new Array(st.length),pt=0;pt<st.length;++pt){for(var rt=st[pt],at=new Array(rt.length),vt=0;vt<rt.length;++vt)at[vt]=W[rt[vt]].slice();J&&at.reverse(),tt[pt]=at}yt[mt]=tt}return yt}else return V.triangles||V.triangulate||V.triangle?{cells:l(W,q,{delaunay:!1,exterior:!1,interior:!0}),positions:W}:{edges:q,positions:W}}function B(j,V,H){try{return w(j,V,H,!0)}catch{}try{return w(j,V,H,!1)}catch{}return V.polygons||V.polyline||V.polygon?[]:V.triangles||V.triangulate||V.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function O(j,V,H,F){var U=64,W=1.25,q={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(U=F.size),F.lineSpacing&&F.lineSpacing>0&&(W=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(q.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(q.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(q.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(q.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(q.superscripts=!!F.styletags.superscripts)),H.font=[F.fontStyle,F.fontVariant,F.fontWeight,U+"px",F.font].filter(function(lt){return lt}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var J=p(V,H,j,U,W,q);return B(J,F,U)}},7721:function(t,e,r){var a=r(5716);t.exports=n;function n(o){return a(o[0])*a(o[1])}},7765:function(t,e,r){t.exports=u;var a=r(9618),n=r(1888),o=r(446),i=r(1570);function l(b){for(var _=b.length,P=0,M=0;M<_;++M)P=Math.max(P,b[M].length)|0;return P-1}function f(b,_){for(var P=b.length,M=n.mallocUint8(P),C=0;C<P;++C)M[C]=b[C]<_|0;return M}function x(b,_){for(var P=b.length,M=_*(_+1)/2*P|0,C=n.mallocUint32(M*2),A=0,h=0;h<P;++h)for(var p=b[h],_=p.length,k=0;k<_;++k)for(var w=0;w<k;++w){var B=p[w],O=p[k];C[A++]=Math.min(B,O)|0,C[A++]=Math.max(B,O)|0}var j=A/2|0;o(a(C,[j,2]));for(var V=2,h=2;h<A;h+=2)C[h-2]===C[h]&&C[h-1]===C[h+1]||(C[V++]=C[h],C[V++]=C[h+1]);return a(C,[V/2|0,2])}function y(b,_,P,M){for(var C=b.data,A=b.shape[0],h=n.mallocDouble(A),p=0,k=0;k<A;++k){var w=C[2*k],B=C[2*k+1];if(P[w]!==P[B]){var O=_[w],j=_[B];C[2*p]=w,C[2*p+1]=B,h[p++]=(j-M)/(j-O)}}return b.shape[0]=p,a(h,[p])}function v(b,_){var P=n.mallocInt32(_*2),M=b.shape[0],C=b.data;P[0]=0;for(var A=0,h=0;h<M;++h){var p=C[2*h];if(p!==A){for(P[2*A+1]=h;++A<p;)P[2*A]=h,P[2*A+1]=h;P[2*A]=h}}for(P[2*A+1]=M;++A<_;)P[2*A]=P[2*A+1]=M;return P}function T(b){for(var _=b.shape[0]|0,P=b.data,M=new Array(_),C=0;C<_;++C)M[C]=[P[2*C],P[2*C+1]];return M}function u(b,_,P,M){P=P||0,typeof M>"u"&&(M=l(b));var C=b.length;if(C===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var A=f(_,+P),h=x(b,M),p=y(h,_,A,+P),k=v(h,_.length|0),w=i(M)(b,h.data,k,A),B=T(h),O=[].slice.call(p.data,0,p.shape[0]);return n.free(A),n.free(h.data),n.free(p.data),n.free(k),{cells:w,vertexIds:B,vertexWeights:O}}},7766:function(t,e,r){var a=r(9618),n=r(5298),o=r(1888);t.exports=p;var i=null,l=null,f=null;function x(k){i=[k.LINEAR,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_NEAREST],l=[k.NEAREST,k.LINEAR,k.NEAREST_MIPMAP_NEAREST,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_LINEAR],f=[k.REPEAT,k.CLAMP_TO_EDGE,k.MIRRORED_REPEAT]}function y(k){return typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&k instanceof HTMLVideoElement||typeof ImageData<"u"&&k instanceof ImageData}var v=function(k,w){n.muls(k,w,255)};function T(k,w,B){var O=k.gl,j=O.getParameter(O.MAX_TEXTURE_SIZE);if(w<0||w>j||B<0||B>j)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[w,B],k.bind(),O.texImage2D(O.TEXTURE_2D,0,k.format,w,B,0,k.format,k.type,null),k._mipLevels=[0],k}function u(k,w,B,O,j,V){this.gl=k,this.handle=w,this.format=j,this.type=V,this._shape=[B,O],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return H._wrapS},set:function(W){return H.wrapS=W}},{get:function(){return H._wrapT},set:function(W){return H.wrapT=W}}]),this._wrapVector=F;var U=[this._shape[0],this._shape[1]];Object.defineProperties(U,[{get:function(){return H._shape[0]},set:function(W){retur Line truncated
`+n:""),this.stack=new Error().stack}e.prototype=new Error,e.prototype.name="GLError",e.prototype.constructor=e,t.exports=e},8902:function(t,e,r){var a=r(2478),n=r(3250)[3],o=0,i=1,l=2;t.exports=P;function f(M,C,A,h,p){this.a=M,this.b=C,this.idx=A,this.lowerIds=h,this.upperIds=p}function x(M,C,A,h){this.a=M,this.b=C,this.type=A,this.idx=h}function y(M,C){var A=M.a[0]-C.a[0]||M.a[1]-C.a[1]||M.type-C.type;return A||M.type!==o&&(A=n(M.a,M.b,C.b),A)?A:M.idx-C.idx}function v(M,C){return n(M.a,M.b,C)}function T(M,C,A,h,p){for(var k=a.lt(C,h,v),w=a.gt(C,h,v),B=k;B<w;++B){for(var O=C[B],j=O.lowerIds,V=j.length;V>1&&n(A[j[V-2]],A[j[V-1]],h)>0;)M.push([j[V-1],j[V-2],p]),V-=1;j.length=V,j.push(p);for(var H=O.upperIds,V=H.length;V>1&&n(A[H[V-2]],A[H[V-1]],h)<0;)M.push([H[V-2],H[V-1],p]),V-=1;H.length=V,H.push(p)}}function u(M,C){var A;return M.a[0]<C.a[0]?A=n(M.a,M.b,C.a):A=n(C.b,C.a,M.a),A||(C.b[0]<M.b[0]?A=n(M.a,M.b,C.b):A=n(C.b,C.a,M.b),A||M.idx-C.idx)}function b(M,C,A){var h=a.le(M,A,u),p=M[h],k=p.upperIds,w=k[k.length-1];p.upperIds=[w],M.splice(h+1,0,new f(A.a,A.b,A.idx,[w],k))}function _(M,C,A){var h=A.a;A.a=A.b,A.b=h;var p=a.eq(M,A,u),k=M[p],w=M[p-1];w.upperIds=k.upperIds,M.splice(p,1)}function P(M,C){for(var A=M.length,h=C.length,p=[],k=0;k<A;++k)p.push(new x(M[k],null,o,k));for(var k=0;k<h;++k){var w=C[k],B=M[w[0]],O=M[w[1]];B[0]<O[0]?p.push(new x(B,O,l,k),new x(O,B,i,k)):B[0]>O[0]&&p.push(new x(O,B,l,k),new x(B,O,i,k))}p.sort(y);for(var j=p[0].a[0]-(1+Math.abs(p[0].a[0]))*Math.pow(2,-52),V=[new f([j,1],[j,0],-1,[],[])],H=[],k=0,F=p.length;k<F;++k){var U=p[k],W=U.type;W===o?T(H,V,M,U.a,U.idx):W===l?b(V,M,U):_(V,M,U)}return H}},8954:function(t,e,r){t.exports=u;var a=r(3250),n=r(6803).Fw;function o(b,_,P){this.vertices=b,this.adjacent=_,this.boundary=P,this.lastVisited=-1}o.prototype.flip=function(){var b=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=b;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function i(b,_,P){this.vertices=b,this.cell=_,this.index=P}function l(b,_){return n(b.vertices,_.vertices)}function f(b){return function(){var _=this.tuple;return b.apply(this,_)}}function x(b){var _=a[b+1];return _||(_=a),f(_)}var y=[];function v(b,_,P){this.dimension=b,this.vertices=_,this.simplices=P,this.interior=P.filter(function(A){return!A.boundary}),this.tuple=new Array(b+1);for(var M=0;M<=b;++M)this.tuple[M]=this.vertices[M];var C=y[b];C||(C=y[b]=x(b)),this.orient=C}var T=v.prototype;T.handleBoundaryDegeneracy=function(b,_){var P=this.dimension,M=this.vertices.length-1,C=this.tuple,A=this.vertices,h=[b];for(b.lastVisited=-M;h.length>0;){b=h.pop();for(var p=b.adjacent,k=0;k<=P;++k){var w=p[k];if(!(!w.boundary||w.lastVisited<=-M)){for(var B=w.vertices,O=0;O<=P;++O){var j=B[O];j<0?C[O]=_:C[O]=A[j]}var V=this.orient();if(V>0)return w;w.lastVisited=-M,V===0&&h.push(w)}}}return null},T.walk=function(b,_){var P=this.vertices.length-1,M=this.dimension,C=this.vertices,A=this.tuple,h=_?this.interior.length*Math.random()|0:this.interior.length-1,p=this.interior[h];t:for(;!p.boundary;){for(var k=p.vertices,w=p.adjacent,B=0;B<=M;++B)A[B]=C[k[B]];p.lastVisited=P;for(var B=0;B<=M;++B){var O=w[B];if(!(O.lastVisited>=P)){var j=A[B];A[B]=b;var V=this.orient();if(A[B]=j,V<0){p=O;continue t}else O.boundary?O.lastVisited=-P:O.lastVisited=P}}return}return p},T.addPeaks=function(b,_){var P=this.vertices.length-1,M=this.dimension,C=this.vertices,A=this.tuple,h=this.interior,p=this.simplices,k=[_];_.lastVisited=P,_.vertices[_.vertices.indexOf(-1)]=P,_.boundary=!1,h.push(_);for(var w=[];k.length>0;){var _=k.pop(),B=_.vertices,O=_.adjacent,j=B.indexOf(P);if(!(j<0)){for(var V=0;V<=M;++V)if(V!==j){var H=O[V];if(!(!H.boundary||H.lastVisited>=P)){var F=H.vertices;if(H.lastVisited!==-P){for(var U=0,W=0;W<=M;++W)F[W]<0?(U=W,A[W]=b):A[W]=C[F[W]];var q=this.orient();if(q>0){F[U]=P,H.boundary=!1,h.push(H),k.push(H),H.lastVisited=P;continue}else H.lastVisited=-P}var J=H.adjacent,lt=B.slice(),yt=O.slice(),mt=new o(lt,yt,!0);p.push(mt);var st=J.indexOf(_);if(!(st<0)){J[st]=mt,yt[j]=H,lt[V]=-1,yt[V]=_,O[V]=mt,mt.flip();for(var W=0;W<=M;++W){var tt=lt[W];if(!(tt<0||tt===P)){for(var pt=new Array(M-1),rt=0,at=0;at<=M;++at){var vt=lt[at];vt<0||at===W||(pt[rt++]=vt)}w.push(new i(pt,mt,W))}}}}}}}w.sort(l);for(var V=0;V+1<w.length;V+=2){var it=w[V],K=w[V+1],ft=it.index,ut=K.index;ft<0||ut<0||(it.cell.adjacent[it.index]=K.cell,K.cell.adjacent[K.index]=it.cell)}},T.insert=function(b,_){var P=this.vertices;P.push(b);var M=this.walk(b,_);if(M){for(var C=this.dimension,A=this.tuple,h=0;h<=C;++h){var p=M.vertices[h];p<0?A[h]=b:A[h]=P[p]}var k=this.orient(A);k<0||k===0&&(M=this.handleBoundaryDegeneracy(M,b),!M)||this.addPeaks(b,M)}},T.boundary=function(){for(var b=this.dimension,_=[],P=this.simplices,M=P.length,C=0;C<M;++C){var A=P[C];if(A.boundary){for(var h=new Array(b),p=A.vertices,k=0,w=0,B=0;B<=b;++B)p[B]>=0?h[k++]=p[B]:w=B&1;if(w===(b&1)){var O=h[0];h[0]=h[1],h[1]=O}_.push(h)}}return _};function u(b,_){v Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=U1(),l=yx(),f=bV(),x=hT(),y=Sd(),v=wV(),T=Ig(),u=jS(),b=xx(),_=kV(),P=fT(),M=vb(),C=A;function A(k,w){var R=this;if(!(this instanceof A))return new A(k,w);typeof k=="function"?(w||(w={}),w.regl=k):(w=k,k=null),w&&w.length&&(w.positions=w),k=w.regl;var O=k._gl,j,V=[],H={},F=[],U=[null],W=[null],q=255,J=100;this.tooManyColors=_,j=k.texture({data:new Uint8Array(q*4),width:q,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),y(this,{regl:k,gl:O,groups:F,markerCache:W,markerTextures:U,palette:V,paletteIds:H,paletteTexture:j,maxColors:q,maxSize:J,canvas:O.canvas}),this.update(w);var lt={uniforms:{constPointSize:!!w.constPointSize,opacity:k.prop("opacity"),paletteSize:function(st,tt){return[R.tooManyColors?0:q,j.height]},pixelRatio:k.context("pixelRatio"),scale:k.prop("scale"),scaleFract:k.prop("scaleFract"),translate:k.prop("translate"),translateFract:k.prop("translateFract"),markerTexture:k.prop("markerTexture"),paletteTexture:j},attributes:{x:function(st,tt){return tt.xAttr||{buffer:tt.positionBuffer,stride:8,offset:0}},y:function(st,tt){return tt.yAttr||{buffer:tt.positionBuffer,stride:8,offset:4}},xFract:function(st,tt){return tt.xAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:0}},yFract:function(st,tt){return tt.yAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:4}},size:function(st,tt){return tt.size.length?{buffer:tt.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(tt.size*255/R.maxSize)]}},borderSize:function(st,tt){return tt.borderSize.length?{buffer:tt.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(tt.borderSize*255/R.maxSize)]}},colorId:function(st,tt){return tt.color.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:0}:{constant:R.tooManyColors?V.slice(tt.color*4,tt.color*4+4):[tt.color]}},borderColorId:function(st,tt){return tt.borderColor.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:R.tooManyColors?4:2}:{constant:R.tooManyColors?V.slice(tt.borderColor*4,tt.borderColor*4+4):[tt.borderColor]}},isActive:function(st,tt){return tt.activation===!0?{constant:[1]}:tt.activation?tt.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:k.prop("viewport")},viewport:k.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:k.prop("elements"),count:k.prop("count"),offset:k.prop("offset"),primitive:"points"},yt=y({},lt);yt.frag=v([`precision highp float;
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=H1(),l=_x(),f=RV(),x=fT(),y=Sd(),v=NV(),T=zg(),u=VS(),b=bx(),_=jV(),P=dT(),M=yb(),C=A;function A(k,w){var B=this;if(!(this instanceof A))return new A(k,w);typeof k=="function"?(w||(w={}),w.regl=k):(w=k,k=null),w&&w.length&&(w.positions=w),k=w.regl;var O=k._gl,j,V=[],H={},F=[],U=[null],W=[null],q=255,J=100;this.tooManyColors=_,j=k.texture({data:new Uint8Array(q*4),width:q,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),y(this,{regl:k,gl:O,groups:F,markerCache:W,markerTextures:U,palette:V,paletteIds:H,paletteTexture:j,maxColors:q,maxSize:J,canvas:O.canvas}),this.update(w);var lt={uniforms:{constPointSize:!!w.constPointSize,opacity:k.prop("opacity"),paletteSize:function(st,tt){return[B.tooManyColors?0:q,j.height]},pixelRatio:k.context("pixelRatio"),scale:k.prop("scale"),scaleFract:k.prop("scaleFract"),translate:k.prop("translate"),translateFract:k.prop("translateFract"),markerTexture:k.prop("markerTexture"),paletteTexture:j},attributes:{x:function(st,tt){return tt.xAttr||{buffer:tt.positionBuffer,stride:8,offset:0}},y:function(st,tt){return tt.yAttr||{buffer:tt.positionBuffer,stride:8,offset:4}},xFract:function(st,tt){return tt.xAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:0}},yFract:function(st,tt){return tt.yAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:4}},size:function(st,tt){return tt.size.length?{buffer:tt.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(tt.size*255/B.maxSize)]}},borderSize:function(st,tt){return tt.borderSize.length?{buffer:tt.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(tt.borderSize*255/B.maxSize)]}},colorId:function(st,tt){return tt.color.length?{buffer:tt.colorBuffer,stride:B.tooManyColors?8:4,offset:0}:{constant:B.tooManyColors?V.slice(tt.color*4,tt.color*4+4):[tt.color]}},borderColorId:function(st,tt){return tt.borderColor.length?{buffer:tt.colorBuffer,stride:B.tooManyColors?8:4,offset:B.tooManyColors?4:2}:{constant:B.tooManyColors?V.slice(tt.borderColor*4,tt.borderColor*4+4):[tt.borderColor]}},isActive:function(st,tt){return tt.activation===!0?{constant:[1]}:tt.activation?tt.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:k.prop("viewport")},viewport:k.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:k.prop("elements"),count:k.prop("count"),offset:k.prop("offset"),primitive:"points"},yt=y({},lt);yt.frag=v([`precision highp float;
#define GLSLIFY 1
uniform float opacity;
@@ -2326,8 +2326,8 @@ void main() {
fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
fragWidth = 1. / gl_PointSize;
}
`]),_&&(mt.frag=mt.frag.replace("smoothstep","smoothStep"),yt.frag=yt.frag.replace("smoothstep","smoothStep")),this.drawCircle=k(mt)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];var j=this.groups;if(R.length===1&&Array.isArray(R[0])&&(R[0][0]===null||Array.isArray(R[0][0]))&&(R=R[0]),this.regl._refresh(),R.length)for(var V=0;V<R.length;V++)this.drawItem(V,R[V]);else j.forEach(function(H,F){k.drawItem(F)});return this},A.prototype.drawItem=function(k,w){var R=this.groups,O=R[k];if(typeof w=="number"&&(k=w,O=R[w],w=null),!!(O&&O.count&&O.opacity)){O.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,O,w));for(var j=[],V=1;V<O.activation.length;V++)!O.activation[V]||O.activation[V]!==!0&&!O.activation[V].data.length||j.push.apply(j,I(this.getMarkerDrawOptions(V,O,w)));j.length&&this.drawMarker(j)}},A.prototype.getMarkerDrawOptions=function(k,w,R){var O=w.range,j=w.tree,V=w.viewport,H=w.activation,F=w.selectionBuffer,U=w.count;if(this.regl,!j)return R?[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],count:R.length,elements:R,offset:0})]:[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],offset:0})];var W=[],q=j.range(O,{lod:!0,px:[(O[2]-O[0])/V.width,(O[3]-O[1])/V.height]});if(R){for(var J=H[k],lt=J.data,yt=new Uint8Array(U),mt=0;mt<R.length;mt++){var st=R[mt];yt[st]=lt?lt[st]:1}F.subdata(yt)}for(var tt=q.length;tt--;){var dt=g(q[tt],2),rt=dt[0],at=dt[1];W.push(y({},w,{markerTexture:this.markerTextures[k],activation:R?F:H[k],offset:rt,count:at-rt}))}return W},A.prototype.update=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];if(R.length){R.length===1&&Array.isArray(R[0])&&(R=R[0]);var j=this.groups,V=this.gl,H=this.regl,F=this.maxSize,U=this.maxColors,W=this.palette;this.groups=j=R.map(function(q,J){var lt=j[J];if(q===void 0)return lt;q===null?q={positions:null}:typeof q=="function"?q={ondraw:q}:typeof q[0]=="number"&&(q={positions:q}),q=T(q,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),q.positions===null&&(q.positions=[]),q.tooManyColors!=null&&(k.tooManyColors=q.tooManyColors),lt||(j[J]=lt={id:J,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:H.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},q=y({},A.defaults,q)),q.positions&&!("marker"in q)&&(q.marker=lt.marker,delete lt.marker),q.marker&&!("positions"in q)&&(q.positions=lt.positions,delete lt.positions);var yt=0,mt=0;if(u(lt,q,[{snap:!0,size:function(fe,pe){return fe==null&&(fe=A.defaults.size),yt+=fe&&fe.length?1:0,fe},borderSize:function(fe,pe){return fe==null&&(fe=A.defaults.borderSize),yt+=fe&&fe.length?1:0,fe},opacity:parseFloat,color:function(fe,pe){return fe==null&&(fe=A.defaults.color),fe=k.updateColor(fe),mt++,fe},borderColor:function(fe,pe){return fe==null&&(fe=A.defaults.borderColor),fe=k.updateColor(fe),mt++,fe},bounds:function(fe,pe,se){return"range"in se||(se.range=null),fe},positions:function(fe,pe,se){var Tt=pe.snap,Lt=pe.positionBuffer,Mt=pe.positionFractBuffer,ee=pe.selectionBuffer;if(fe.x||fe.y)return fe.x.length?pe.xAttr={buffer:H.buffer(fe.x),offset:0,stride:4,count:fe.x.length}:pe.xAttr={buffer:fe.x.buffer,offset:fe.x.offset*4||0,stride:(fe.x.stride||1)*4,count:fe.x.count},fe.y.length?pe.yAttr={buffer:H.buffer(fe.y),offset:0,stride:4,count:fe.y.length}:pe.yAttr={buffer:fe.y.buffer,offset:fe.y.offset*4||0,stride:(fe.y.stride||1)*4,count:fe.y.count},pe.count=Math.max(pe.xAttr.count,pe.yAttr.count),fe;fe=b(fe,"float64");var ve=pe.count=Math.floor(fe.length/2),oe=pe.bounds=ve?l(fe,2):null;if(!se.range&&!pe.range&&(delete pe.range,se.range=oe),!se.marker&&!pe.marker&&(delete pe.marker,se.marker=null),Tt&&(Tt===!0||ve>Tt)?pe.tree=x(fe,{bounds:oe}):Tt&&Tt.length&&(pe.tree=Tt),pe.tree){ Line truncated
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}}),YS=Dt((Q,Z)=>{var c=bx(),g=pT(),I=YV(),S=XV(),t=function(e,r){return e.replace("%v",S(r))};Z.exports=function(e,r,a){if(!g(a))throw new TypeError(t(r,e));if(!c(e)){if("default"in a)return a.default;if(a.isOptional)return null}var n=I(a.errorMessage);throw c(n)||(n=r),new TypeError(t(n,e))}}),JV=Dt((Q,Z)=>{var c=YS(),g=bx();Z.exports=function(I){return g(I)?I:c(I,"Cannot use %v",arguments[1])}}),QV=Dt((Q,Z)=>{var c=YS(),g=qS();Z.exports=function(I){return g(I)?I:c(I,"%v is not a plain function",arguments[1])}}),tH=Dt((Q,Z)=>{Z.exports=function(){var c=Array.from,g,I;return typeof c!="function"?!1:(g=["raz","dwa"],I=c(g),!!(I&&I!==g&&I[1]==="dwa"))}}),eH=Dt((Q,Z)=>{var c=Object.prototype.toString,g=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Z.exports=function(I){return typeof I=="function"&&g(c.call(I))}}),rH=Dt((Q,Z)=>{Z.exports=function(){var c=Math.sign;return typeof c!="function"?!1:c(10)===1&&c(-20)===-1}}),nH=Dt((Q,Z)=>{Z.exports=function(c){return c=Number(c),isNaN(c)||c===0?c:c>0?1:-1}}),iH=Dt((Q,Z)=>{Z.exports=rH()()?Math.sign:nH()}),aH=Dt((Q,Z)=>{var c=iH(),g=Math.abs,I=Math.floor;Z.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:c(S)*I(g(S)))}}),oH=Dt((Q,Z)=>{var c=aH(),g=Math.max;Z.exports=function(I){return g(0,c(I))}}),sH=Dt((Q,Z)=>{var c=Z1().iterator,g=A3(),I=eH(),S=oH(),t=yb(),e=Mv(),r=$1(),a=M3(),n=Array.isArray,o=Function.prototype.call,i={configurable:!0,enumerable:!0,writable:!0,value:null},l=Object.defineProperty;Z.exports=function(f){var x=arguments[1],y=arguments[2],v,T,u,b,_,P,M,C,A,h;if(f=Object(e(f)),r(x)&&t(x),!this||this===Array||!I(this)){if(!x){if(g(f))return _=f.length,_!==1?Array.apply(null,f):(b=new Array(1),b[0]=f[0],b);if(n(f)){for(b=new Array(_=f.length),T=0;T<_;++T)b[T]=f[T];return b}}b=[]}else v=this;if(!n(f)){if((A=f[c])!==void 0){for(M=t(A).call(f),v&&(b=new v),C=M.next(),T=0;!C.done;)h=x?o.call(x,y,C.value,T):C.value,v?(i.value=h,l(b,T,i)):b[T]=h,C=M.next(),++T;_=T}else if(a(f)){for(_=f.length,v&&(b=new v),T=0,u=0;T<_;++T)h=f[T],T+1<_&&(P=h.charCodeAt(0),P>=55296&&P<=56319&&(h+=f[++T])),h=x?o.call(x,y,h,u):h,v?(i.value=h,l(b,u,i)):b[u]=h,++u;_=u}}if(_===void 0)for(_=S(f.length),v&&(b=new v(_)),T=0;T<_;++T)h=x?o.call(x,y,f[T],T):f[T],v?(i.value=h,l(b,T,i)):b[T]=h;return v&&(i.value=null,b.length=_),b}}),lH=Dt((Q,Z)=>{Z.exports=tH()()?Array.from:sH()}),uH=Dt((Q,Z)=>{var c=lH(),g=mT(),I=Mv();Z.exports=function(S){var t=Object(I(S)),e=arguments[1],r=Object(arguments[2]);if(t!==S&&!e)return t;var a={};return e?c(e,function(n){(r.ensure||n in S)&&(a[n]=S[n])}):g(a,S),a}}),cH=Dt((Q,Z)=>{var c=yb(),g=Mv(),I=Function.prototype.bind,S=Function.prototype.call,t=Object.keys,e=Object.prototype.propertyIsEnumerable;Z.exports=function(r,a){return function(n,o){var i,l=arguments[2],f=arguments[3];return n=Object(g(n)),c(o),i=t(n),f&&i.sort(typeof f=="function"?I.call(f,n):void 0),typeof r!="function"&&(r=i[r]),S.call(r,i,function(x,y){return e.call(n,x)?S.call(o,l,n[x],x,n,y):a})}}}),hH=Dt((Q,Z)=>{Z.exports=cH()("forEach")}),fH=Dt((Q,Z)=>{var c=yb(),g=hH(),I=Function.prototype.call;Z.exports=function(S,t){var e={},r=arguments[2];return c(t),g(S,function(a,n,o,i){e[n]=I.call(t,r,a,n,o,i)}),e}}),dH=Dt((Q,Z)=>{var c=bx(),g=JV(),I=QV(),S=uH(),t=$S(),e=fH(),r=Function.prototype.bind,a=Object.defineProperty,n=Object.prototype.hasOwnProperty,o;o=function(i,l,f){var x=g(l)&&I(l.value),y;return y=S(l),delete y.writable,delete y.value,y.get=function(){return!f.overwriteDefinition&&n.call(this,i)?x:(l.value=r.call(x,f.resolveContext?f.resolveContext(this):this),a(this,i,l),this[i])},y},Z.exports=function(i){var l=t(arguments[1]);return c(l.resolveContext)&&I(l.resolveContext),e(i,function(f,x){return o(x,f,l)})}}),KS=Dt((Q,Z)=>{var c=GV(),g=mT(),I=yb(),S=Mv(),t=Sv(),e=dH(),r=Z1(),a=Object.defineProperty,n=Object.defineProperties,o;Z.exports=o=function(i,l){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");n(this,{__list__:t("w",S(i)),__context__:t("w",l),__nextIndex__:t("w",0)}),l&&(I(l.on),l.on("_add",this._onAdd),l.on("_delete",this._onDelete),l.on("_clear",this._onClear))},delete o.prototype.constructor,n(o.prototype,g({_next:t(function(){var i;if(this.__list__){if(this.__redo__&&(i=this.__redo__.shift(),i!==void 0))return i;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:t(function(){return this._createResult(this._next())}),_createResult:t(function(i){return i===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(i)}}),_resolve:t(function(i){return this.__list__[i]}),_unBind:t(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:t(function(){ Line truncated
`]),_&&(mt.frag=mt.frag.replace("smoothstep","smoothStep"),yt.frag=yt.frag.replace("smoothstep","smoothStep")),this.drawCircle=k(mt)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var k=this,w=arguments.length,B=new Array(w),O=0;O<w;O++)B[O]=arguments[O];var j=this.groups;if(B.length===1&&Array.isArray(B[0])&&(B[0][0]===null||Array.isArray(B[0][0]))&&(B=B[0]),this.regl._refresh(),B.length)for(var V=0;V<B.length;V++)this.drawItem(V,B[V]);else j.forEach(function(H,F){k.drawItem(F)});return this},A.prototype.drawItem=function(k,w){var B=this.groups,O=B[k];if(typeof w=="number"&&(k=w,O=B[w],w=null),!!(O&&O.count&&O.opacity)){O.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,O,w));for(var j=[],V=1;V<O.activation.length;V++)!O.activation[V]||O.activation[V]!==!0&&!O.activation[V].data.length||j.push.apply(j,I(this.getMarkerDrawOptions(V,O,w)));j.length&&this.drawMarker(j)}},A.prototype.getMarkerDrawOptions=function(k,w,B){var O=w.range,j=w.tree,V=w.viewport,H=w.activation,F=w.selectionBuffer,U=w.count;if(this.regl,!j)return B?[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],count:B.length,elements:B,offset:0})]:[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],offset:0})];var W=[],q=j.range(O,{lod:!0,px:[(O[2]-O[0])/V.width,(O[3]-O[1])/V.height]});if(B){for(var J=H[k],lt=J.data,yt=new Uint8Array(U),mt=0;mt<B.length;mt++){var st=B[mt];yt[st]=lt?lt[st]:1}F.subdata(yt)}for(var tt=q.length;tt--;){var pt=g(q[tt],2),rt=pt[0],at=pt[1];W.push(y({},w,{markerTexture:this.markerTextures[k],activation:B?F:H[k],offset:rt,count:at-rt}))}return W},A.prototype.update=function(){for(var k=this,w=arguments.length,B=new Array(w),O=0;O<w;O++)B[O]=arguments[O];if(B.length){B.length===1&&Array.isArray(B[0])&&(B=B[0]);var j=this.groups,V=this.gl,H=this.regl,F=this.maxSize,U=this.maxColors,W=this.palette;this.groups=j=B.map(function(q,J){var lt=j[J];if(q===void 0)return lt;q===null?q={positions:null}:typeof q=="function"?q={ondraw:q}:typeof q[0]=="number"&&(q={positions:q}),q=T(q,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),q.positions===null&&(q.positions=[]),q.tooManyColors!=null&&(k.tooManyColors=q.tooManyColors),lt||(j[J]=lt={id:J,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:H.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},q=y({},A.defaults,q)),q.positions&&!("marker"in q)&&(q.marker=lt.marker,delete lt.marker),q.marker&&!("positions"in q)&&(q.positions=lt.positions,delete lt.positions);var yt=0,mt=0;if(u(lt,q,[{snap:!0,size:function(fe,pe){return fe==null&&(fe=A.defaults.size),yt+=fe&&fe.length?1:0,fe},borderSize:function(fe,pe){return fe==null&&(fe=A.defaults.borderSize),yt+=fe&&fe.length?1:0,fe},opacity:parseFloat,color:function(fe,pe){return fe==null&&(fe=A.defaults.color),fe=k.updateColor(fe),mt++,fe},borderColor:function(fe,pe){return fe==null&&(fe=A.defaults.borderColor),fe=k.updateColor(fe),mt++,fe},bounds:function(fe,pe,se){return"range"in se||(se.range=null),fe},positions:function(fe,pe,se){var Tt=pe.snap,Lt=pe.positionBuffer,Mt=pe.positionFractBuffer,ee=pe.selectionBuffer;if(fe.x||fe.y)return fe.x.length?pe.xAttr={buffer:H.buffer(fe.x),offset:0,stride:4,count:fe.x.length}:pe.xAttr={buffer:fe.x.buffer,offset:fe.x.offset*4||0,stride:(fe.x.stride||1)*4,count:fe.x.count},fe.y.length?pe.yAttr={buffer:H.buffer(fe.y),offset:0,stride:4,count:fe.y.length}:pe.yAttr={buffer:fe.y.buffer,offset:fe.y.offset*4||0,stride:(fe.y.stride||1)*4,count:fe.y.count},pe.count=Math.max(pe.xAttr.count,pe.yAttr.count),fe;fe=b(fe,"float64");var ve=pe.count=Math.floor(fe.length/2),oe=pe.bounds=ve?l(fe,2):null;if(!se.range&&!pe.range&&(delete pe.range,se.range=oe),!se.marker&&!pe.marker&&(delete pe.marker,se.marker=null),Tt&&(Tt===!0||ve>Tt)?pe.tree=x(fe,{bounds:oe}):Tt&&Tt.length&&(pe.tree=Tt),pe.tree){ Line truncated
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}}),XS=Dt((Q,Z)=>{var c=kx(),g=mT(),I=fH(),S=pH(),t=function(e,r){return e.replace("%v",S(r))};Z.exports=function(e,r,a){if(!g(a))throw new TypeError(t(r,e));if(!c(e)){if("default"in a)return a.default;if(a.isOptional)return null}var n=I(a.errorMessage);throw c(n)||(n=r),new TypeError(t(n,e))}}),mH=Dt((Q,Z)=>{var c=XS(),g=kx();Z.exports=function(I){return g(I)?I:c(I,"Cannot use %v",arguments[1])}}),gH=Dt((Q,Z)=>{var c=XS(),g=ZS();Z.exports=function(I){return g(I)?I:c(I,"%v is not a plain function",arguments[1])}}),vH=Dt((Q,Z)=>{Z.exports=function(){var c=Array.from,g,I;return typeof c!="function"?!1:(g=["raz","dwa"],I=c(g),!!(I&&I!==g&&I[1]==="dwa"))}}),yH=Dt((Q,Z)=>{var c=Object.prototype.toString,g=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Z.exports=function(I){return typeof I=="function"&&g(c.call(I))}}),xH=Dt((Q,Z)=>{Z.exports=function(){var c=Math.sign;return typeof c!="function"?!1:c(10)===1&&c(-20)===-1}}),_H=Dt((Q,Z)=>{Z.exports=function(c){return c=Number(c),isNaN(c)||c===0?c:c>0?1:-1}}),bH=Dt((Q,Z)=>{Z.exports=xH()()?Math.sign:_H()}),wH=Dt((Q,Z)=>{var c=bH(),g=Math.abs,I=Math.floor;Z.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:c(S)*I(g(S)))}}),kH=Dt((Q,Z)=>{var c=wH(),g=Math.max;Z.exports=function(I){return g(0,c(I))}}),TH=Dt((Q,Z)=>{var c=Y1().iterator,g=M3(),I=yH(),S=kH(),t=xb(),e=Ev(),r=G1(),a=S3(),n=Array.isArray,o=Function.prototype.call,i={configurable:!0,enumerable:!0,writable:!0,value:null},l=Object.defineProperty;Z.exports=function(f){var x=arguments[1],y=arguments[2],v,T,u,b,_,P,M,C,A,h;if(f=Object(e(f)),r(x)&&t(x),!this||this===Array||!I(this)){if(!x){if(g(f))return _=f.length,_!==1?Array.apply(null,f):(b=new Array(1),b[0]=f[0],b);if(n(f)){for(b=new Array(_=f.length),T=0;T<_;++T)b[T]=f[T];return b}}b=[]}else v=this;if(!n(f)){if((A=f[c])!==void 0){for(M=t(A).call(f),v&&(b=new v),C=M.next(),T=0;!C.done;)h=x?o.call(x,y,C.value,T):C.value,v?(i.value=h,l(b,T,i)):b[T]=h,C=M.next(),++T;_=T}else if(a(f)){for(_=f.length,v&&(b=new v),T=0,u=0;T<_;++T)h=f[T],T+1<_&&(P=h.charCodeAt(0),P>=55296&&P<=56319&&(h+=f[++T])),h=x?o.call(x,y,h,u):h,v?(i.value=h,l(b,u,i)):b[u]=h,++u;_=u}}if(_===void 0)for(_=S(f.length),v&&(b=new v(_)),T=0;T<_;++T)h=x?o.call(x,y,f[T],T):f[T],v?(i.value=h,l(b,T,i)):b[T]=h;return v&&(i.value=null,b.length=_),b}}),AH=Dt((Q,Z)=>{Z.exports=vH()()?Array.from:TH()}),MH=Dt((Q,Z)=>{var c=AH(),g=gT(),I=Ev();Z.exports=function(S){var t=Object(I(S)),e=arguments[1],r=Object(arguments[2]);if(t!==S&&!e)return t;var a={};return e?c(e,function(n){(r.ensure||n in S)&&(a[n]=S[n])}):g(a,S),a}}),SH=Dt((Q,Z)=>{var c=xb(),g=Ev(),I=Function.prototype.bind,S=Function.prototype.call,t=Object.keys,e=Object.prototype.propertyIsEnumerable;Z.exports=function(r,a){return function(n,o){var i,l=arguments[2],f=arguments[3];return n=Object(g(n)),c(o),i=t(n),f&&i.sort(typeof f=="function"?I.call(f,n):void 0),typeof r!="function"&&(r=i[r]),S.call(r,i,function(x,y){return e.call(n,x)?S.call(o,l,n[x],x,n,y):a})}}}),EH=Dt((Q,Z)=>{Z.exports=SH()("forEach")}),CH=Dt((Q,Z)=>{var c=xb(),g=EH(),I=Function.prototype.call;Z.exports=function(S,t){var e={},r=arguments[2];return c(t),g(S,function(a,n,o,i){e[n]=I.call(t,r,a,n,o,i)}),e}}),LH=Dt((Q,Z)=>{var c=kx(),g=mH(),I=gH(),S=MH(),t=GS(),e=CH(),r=Function.prototype.bind,a=Object.defineProperty,n=Object.prototype.hasOwnProperty,o;o=function(i,l,f){var x=g(l)&&I(l.value),y;return y=S(l),delete y.writable,delete y.value,y.get=function(){return!f.overwriteDefinition&&n.call(this,i)?x:(l.value=r.call(x,f.resolveContext?f.resolveContext(this):this),a(this,i,l),this[i])},y},Z.exports=function(i){var l=t(arguments[1]);return c(l.resolveContext)&&I(l.resolveContext),e(i,function(f,x){return o(x,f,l)})}}),JS=Dt((Q,Z)=>{var c=hH(),g=gT(),I=xb(),S=Ev(),t=Cv(),e=LH(),r=Y1(),a=Object.defineProperty,n=Object.defineProperties,o;Z.exports=o=function(i,l){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");n(this,{__list__:t("w",S(i)),__context__:t("w",l),__nextIndex__:t("w",0)}),l&&(I(l.on),l.on("_add",this._onAdd),l.on("_delete",this._onDelete),l.on("_clear",this._onClear))},delete o.prototype.constructor,n(o.prototype,g({_next:t(function(){var i;if(this.__list__){if(this.__redo__&&(i=this.__redo__.shift(),i!==void 0))return i;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:t(function(){return this._createResult(this._next())}),_createResult:t(function(i){return i===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(i)}}),_resolve:t(function(i){return this.__list__[i]}),_unBind:t(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:t(function(){ Line truncated
precision highp float;
attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;
@@ -2703,7 +2703,7 @@ void main() {
gl_FragColor = fragColor;
gl_FragColor.a *= alpha * opacity * dash;
}
`;Z.exports=b;function b(_,P){if(!(this instanceof b))return new b(_,P);if(typeof _=="function"?(P||(P={}),P.regl=_):P=_,P.length&&(P.positions=P),_=P.regl,!_.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=_._gl,this.regl=_,this.passes=[],this.shaders=b.shaders.has(_)?b.shaders.get(_):b.shaders.set(_,b.createShaders(_)).get(_),this.update(P)}b.dashMult=2,b.maxPatternLength=256,b.precisionThreshold=3e6,b.maxPoints=1e4,b.maxLines=2048,b.shaders=new o,b.createShaders=function(_){let P=_.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:_.prop("count"),count:4,offset:0,uniforms:{miterMode:(h,p)=>p.join==="round"?2:1,miterLimit:_.prop("miterLimit"),scale:_.prop("scale"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),thickness:_.prop("thickness"),dashTexture:_.prop("dashTexture"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),dashLength:_.prop("dashLength"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight],depth:_.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(h,p)=>!p.overlay},stencil:{enable:!1},scissor:{enable:!0,box:_.prop("viewport")},viewport:_.prop("viewport")},C=_(I({vert:f,frag:x,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),A;try{A=_(I({cull:{enable:!0,face:"back"},vert:T,frag:u,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aColor:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:_.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{A=C}return{fill:_({primitive:"triangle",elements:(h,p)=>p.triangles,offset:0,vert:y,frag:v,uniforms:{scale:_.prop("scale"),color:_.prop("fill"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight]},attributes:{position:{buffer:_.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:C,miter:A}},b.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},b.prototype.render=function(..._){_.length&&this.update(..._),this.draw()},b.prototype.draw=function(..._){return(_.length?_:this.passes).forEach((P,M)=>{if(P&&Array.isArray(P))return this.draw(...P);typeof P=="number"&&(P=this.passes[P]),P&&P.count>1&&P.opacity&&(this.regl._refresh(),P.fill&&P.triangles&&P.triangles.length>2&&this.shaders.fill(P),P.thickness&&(P.scale[0]*P.viewport.width>b.precisionThreshold||P.scale[1]*P.viewport.height>b.precisionThreshold?this.shaders.rect(P):P.join==="rect"||!P.join&&(P.thickness<=2||P.count>=b.maxPoints)?this.shaders.rect(P):this.shaders.miter(P)))}),this},b.prototype.update=function(_){if(!_)return;_.length!=null?typeof _[0]=="number"&&(_=[{positions:_}]):Array.isArray(_)||(_=[_]);let{regl:P,gl:M}=this;if(_.forEach((A,h)=>{let p=this.passes[h];if(A!==void 0){if(A===null){this.passes[h]=null;return}if(typeof A[0]=="number"&&(A={positions:A}),A=S(A,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),p||(this.passes[h]=p={id:h,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:P.tex Line truncated
`;Z.exports=b;function b(_,P){if(!(this instanceof b))return new b(_,P);if(typeof _=="function"?(P||(P={}),P.regl=_):P=_,P.length&&(P.positions=P),_=P.regl,!_.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=_._gl,this.regl=_,this.passes=[],this.shaders=b.shaders.has(_)?b.shaders.get(_):b.shaders.set(_,b.createShaders(_)).get(_),this.update(P)}b.dashMult=2,b.maxPatternLength=256,b.precisionThreshold=3e6,b.maxPoints=1e4,b.maxLines=2048,b.shaders=new o,b.createShaders=function(_){let P=_.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:_.prop("count"),count:4,offset:0,uniforms:{miterMode:(h,p)=>p.join==="round"?2:1,miterLimit:_.prop("miterLimit"),scale:_.prop("scale"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),thickness:_.prop("thickness"),dashTexture:_.prop("dashTexture"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),dashLength:_.prop("dashLength"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight],depth:_.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(h,p)=>!p.overlay},stencil:{enable:!1},scissor:{enable:!0,box:_.prop("viewport")},viewport:_.prop("viewport")},C=_(I({vert:f,frag:x,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),A;try{A=_(I({cull:{enable:!0,face:"back"},vert:T,frag:u,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aColor:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:_.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{A=C}return{fill:_({primitive:"triangle",elements:(h,p)=>p.triangles,offset:0,vert:y,frag:v,uniforms:{scale:_.prop("scale"),color:_.prop("fill"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight]},attributes:{position:{buffer:_.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:C,miter:A}},b.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},b.prototype.render=function(..._){_.length&&this.update(..._),this.draw()},b.prototype.draw=function(..._){return(_.length?_:this.passes).forEach((P,M)=>{if(P&&Array.isArray(P))return this.draw(...P);typeof P=="number"&&(P=this.passes[P]),P&&P.count>1&&P.opacity&&(this.regl._refresh(),P.fill&&P.triangles&&P.triangles.length>2&&this.shaders.fill(P),P.thickness&&(P.scale[0]*P.viewport.width>b.precisionThreshold||P.scale[1]*P.viewport.height>b.precisionThreshold?this.shaders.rect(P):P.join==="rect"||!P.join&&(P.thickness<=2||P.count>=b.maxPoints)?this.shaders.rect(P):this.shaders.miter(P)))}),this},b.prototype.update=function(_){if(!_)return;_.length!=null?typeof _[0]=="number"&&(_=[{positions:_}]):Array.isArray(_)||(_=[_]);let{regl:P,gl:M}=this;if(_.forEach((A,h)=>{let p=this.passes[h];if(A!==void 0){if(A===null){this.passes[h]=null;return}if(typeof A[0]=="number"&&(A={positions:A}),A=S(A,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),p||(this.passes[h]=p={id:h,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:P.tex Line truncated
precision highp float;
attribute vec2 position, positionFract;
@@ -2747,10 +2747,10 @@ void main() {
gl_FragColor = fragColor;
gl_FragColor.a *= opacity;
}
`,uniforms:{range:i.prop("range"),lineWidth:i.prop("lineWidth"),capSize:i.prop("capSize"),opacity:i.prop("opacity"),scale:i.prop("scale"),translate:i.prop("translate"),scaleFract:i.prop("scaleFract"),translateFract:i.prop("translateFract"),viewport:(k,w)=>[w.viewport.x,w.viewport.y,k.viewportWidth,k.viewportHeight]},attributes:{color:{buffer:T,offset:(k,w)=>w.offset*4,divisor:1},position:{buffer:y,offset:(k,w)=>w.offset*8,divisor:1},positionFract:{buffer:v,offset:(k,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(k,w)=>w.offset*16,divisor:1},direction:{buffer:b,stride:24,offset:0},lineOffset:{buffer:b,stride:24,offset:8},capOffset:{buffer:b,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:i.prop("viewport")},viewport:i.prop("viewport"),stencil:!1,instances:i.prop("count"),count:n.length}),t(M,{update:h,draw:C,destroy:p,regl:i,gl:f,canvas:f.canvas,groups:P}),M;function M(k){k?h(k):k===null&&p(),C()}function C(k){if(typeof k=="number")return A(k);k&&!Array.isArray(k)&&(k=[k]),i._refresh(),P.forEach((w,R)=>{if(w){if(k&&(k[R]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}A(R)}})}function A(k){typeof k=="number"&&(k=P[k]),k!=null&&k&&k.count&&k.color&&k.opacity&&k.positions&&k.positions.length>1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],x(k),k.after&&k.after(k))}function h(k){if(!k)return;k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);let w=0,R=0;if(M.groups=P=k.map((V,H)=>{let F=P[H];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return F;return V=S(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),F||(P[H]=F={id:H,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=t({},_,V)),I(F,V,[{lineWidth:U=>+U*.5,capSize:U=>+U*.5,opacity:parseFloat,errors:U=>(U=e(U),R+=U.length,U),positions:(U,W)=>(U=e(U,"float64"),W.count=Math.floor(U.length/2),W.bounds=c(U,2),W.offset=w,w+=W.count,U)},{color:(U,W)=>{let q=W.count;if(U||(U="transparent"),!Array.isArray(U)||typeof U[0]=="number"){let lt=U;U=Array(q);for(let yt=0;yt<q;yt++)U[yt]=lt}if(U.length<q)throw Error("Not enough colors");let J=new Uint8Array(q*4);for(let lt=0;lt<q;lt++){let yt=g(U[lt],"uint8");J.set(yt,lt*4)}return J},range:(U,W,q)=>{let J=W.bounds;return U||(U=J),W.scale=[1/(U[2]-U[0]),1/(U[3]-U[1])],W.translate=[-U[0],-U[1]],W.scaleFract=a(W.scale),W.translateFract=a(W.translate),U},viewport:U=>{let W;return Array.isArray(U)?W={x:U[0],y:U[1],width:U[2]-U[0],height:U[3]-U[1]}:U?(W={x:U.x||U.left||0,y:U.y||U.top||0},U.right?W.width=U.right-W.x:W.width=U.w||U.width||0,U.bottom?W.height=U.bottom-W.y:W.height=U.h||U.height||0):W={x:0,y:0,width:f.drawingBufferWidth,height:f.drawingBufferHeight},W}}]),F}),w||R){let V=P.reduce((W,q,J)=>W+(q?q.count:0),0),H=new Float64Array(V*2),F=new Uint8Array(V*4),U=new Float32Array(V*4);P.forEach((W,q)=>{if(!W)return;let{positions:J,count:lt,offset:yt,color:mt,errors:st}=W;lt&&(F.set(mt,yt*4),U.set(st,yt*4),H.set(J,yt*2))});var O=r(H);y(O);var j=a(H,O);v(j),T(F),u(U)}}function p(){y.destroy(),v.destroy(),T.destroy(),u.destroy(),b.destroy()}}}),kH=Dt((Q,Z)=>{var c=/[\'\"]/;Z.exports=function(g){return g?(c.test(g.charAt(0))&&(g=g.substr(1)),c.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}}),tE=Dt((Q,Z)=>{Z.exports=["inherit","initial","unset"]}),eE=Dt((Q,Z)=>{Z.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),rE=Dt((Q,Z)=>{Z.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),nE=Dt((Q,Z)=>{Z.exports=["normal","italic","oblique"]}),iE=Dt((Q,Z)=>{Z.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),TH=Dt((Q,Z)=>{function c(S,t){if(typeof S!="string")return[S];var e=[S];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",n=!!t.flat;r.forEach(function(l){var f=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),x=[];function y(v,T,u){var b=e.push(v.slice(l[0].length,-l[1].length))-1;return x.push(b),a+b+a}e.forEach(function(v,T){for(var u,b=0;v!=u;)if(u=v,v=v.replace(f,y),b++>1e4)throw Error("References have circular dependency. Please, check them.");e[T]=v}),x=x.reverse(),e=e.map(function(v){return x.forEach(function(T){v=v.replace(new RegExp("(\\"+a+T+"\\"+a+")","g"),l[0]+"$1"+l[1])}),v})});var o=new RegExp("\\"+a+"([0-9]+)\\"+a);function i(l,f,x){for(var y=[],v,T=0;v=o.exec(l);){if(T++> Line truncated
`,uniforms:{range:i.prop("range"),lineWidth:i.prop("lineWidth"),capSize:i.prop("capSize"),opacity:i.prop("opacity"),scale:i.prop("scale"),translate:i.prop("translate"),scaleFract:i.prop("scaleFract"),translateFract:i.prop("translateFract"),viewport:(k,w)=>[w.viewport.x,w.viewport.y,k.viewportWidth,k.viewportHeight]},attributes:{color:{buffer:T,offset:(k,w)=>w.offset*4,divisor:1},position:{buffer:y,offset:(k,w)=>w.offset*8,divisor:1},positionFract:{buffer:v,offset:(k,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(k,w)=>w.offset*16,divisor:1},direction:{buffer:b,stride:24,offset:0},lineOffset:{buffer:b,stride:24,offset:8},capOffset:{buffer:b,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:i.prop("viewport")},viewport:i.prop("viewport"),stencil:!1,instances:i.prop("count"),count:n.length}),t(M,{update:h,draw:C,destroy:p,regl:i,gl:f,canvas:f.canvas,groups:P}),M;function M(k){k?h(k):k===null&&p(),C()}function C(k){if(typeof k=="number")return A(k);k&&!Array.isArray(k)&&(k=[k]),i._refresh(),P.forEach((w,B)=>{if(w){if(k&&(k[B]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}A(B)}})}function A(k){typeof k=="number"&&(k=P[k]),k!=null&&k&&k.count&&k.color&&k.opacity&&k.positions&&k.positions.length>1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],x(k),k.after&&k.after(k))}function h(k){if(!k)return;k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);let w=0,B=0;if(M.groups=P=k.map((V,H)=>{let F=P[H];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return F;return V=S(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),F||(P[H]=F={id:H,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=t({},_,V)),I(F,V,[{lineWidth:U=>+U*.5,capSize:U=>+U*.5,opacity:parseFloat,errors:U=>(U=e(U),B+=U.length,U),positions:(U,W)=>(U=e(U,"float64"),W.count=Math.floor(U.length/2),W.bounds=c(U,2),W.offset=w,w+=W.count,U)},{color:(U,W)=>{let q=W.count;if(U||(U="transparent"),!Array.isArray(U)||typeof U[0]=="number"){let lt=U;U=Array(q);for(let yt=0;yt<q;yt++)U[yt]=lt}if(U.length<q)throw Error("Not enough colors");let J=new Uint8Array(q*4);for(let lt=0;lt<q;lt++){let yt=g(U[lt],"uint8");J.set(yt,lt*4)}return J},range:(U,W,q)=>{let J=W.bounds;return U||(U=J),W.scale=[1/(U[2]-U[0]),1/(U[3]-U[1])],W.translate=[-U[0],-U[1]],W.scaleFract=a(W.scale),W.translateFract=a(W.translate),U},viewport:U=>{let W;return Array.isArray(U)?W={x:U[0],y:U[1],width:U[2]-U[0],height:U[3]-U[1]}:U?(W={x:U.x||U.left||0,y:U.y||U.top||0},U.right?W.width=U.right-W.x:W.width=U.w||U.width||0,U.bottom?W.height=U.bottom-W.y:W.height=U.h||U.height||0):W={x:0,y:0,width:f.drawingBufferWidth,height:f.drawingBufferHeight},W}}]),F}),w||B){let V=P.reduce((W,q,J)=>W+(q?q.count:0),0),H=new Float64Array(V*2),F=new Uint8Array(V*4),U=new Float32Array(V*4);P.forEach((W,q)=>{if(!W)return;let{positions:J,count:lt,offset:yt,color:mt,errors:st}=W;lt&&(F.set(mt,yt*4),U.set(st,yt*4),H.set(J,yt*2))});var O=r(H);y(O);var j=a(H,O);v(j),T(F),u(U)}}function p(){y.destroy(),v.destroy(),T.destroy(),u.destroy(),b.destroy()}}}),jH=Dt((Q,Z)=>{var c=/[\'\"]/;Z.exports=function(g){return g?(c.test(g.charAt(0))&&(g=g.substr(1)),c.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}}),rE=Dt((Q,Z)=>{Z.exports=["inherit","initial","unset"]}),nE=Dt((Q,Z)=>{Z.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),iE=Dt((Q,Z)=>{Z.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),aE=Dt((Q,Z)=>{Z.exports=["normal","italic","oblique"]}),oE=Dt((Q,Z)=>{Z.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),UH=Dt((Q,Z)=>{function c(S,t){if(typeof S!="string")return[S];var e=[S];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",n=!!t.flat;r.forEach(function(l){var f=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),x=[];function y(v,T,u){var b=e.push(v.slice(l[0].length,-l[1].length))-1;return x.push(b),a+b+a}e.forEach(function(v,T){for(var u,b=0;v!=u;)if(u=v,v=v.replace(f,y),b++>1e4)throw Error("References have circular dependency. Please, check them.");e[T]=v}),x=x.reverse(),e=e.map(function(v){return x.forEach(function(T){v=v.replace(new RegExp("(\\"+a+T+"\\"+a+")","g"),l[0]+"$1"+l[1])}),v})});var o=new RegExp("\\"+a+"([0-9]+)\\"+a);function i(l,f,x){for(var y=[],v,T=0;v=o.exec(l);){if(T++> Line truncated
`).replace(/}/g,`}
`).replace(/{/g,`{
`),jn;if(kr&&(jn=gc(fn),kr[jn]))return kr[jn].apply(null,li);var Bi=Function.apply(null,Dn.concat(fn));return kr&&(kr[jn]=Bi),Bi.apply(null,li)}return{global:ya,link:yn,block:ai,proc:Na,scope:ta,cond:$i,compile:ia}}var Za="xyzw".split(""),ca=5121,Oa=1,ka=2,na=0,io=1,ns=2,Ko=3,ls=4,ps=5,oo=6,qa="dither",gs="blend.enable",el="blend.color",Pl="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",ml="depth.range",qu="depth.mask",Iu="colorMask",fu="cull.enable",Oo="cull.face",Es="frontFace",Kl="lineWidth",Rl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Lc="sample.enable",Ih="sample.coverage",Wc="stencil.enable",zh="stencil.mask",Du="stencil.func",Oh="stencil.opFront",rs="stencil.opBack",zs="scissor.enable",qc="scissor.box",$u="viewport",qf="profile",$t="framebuffer",z="vert",ht="frag",Et="elements",zt="primitive",Ht="count",ke="offset",Fe="instances",Ke="vao",vr="Width",Dr="Height",Fr=$t+vr,un=$t+Dr,Sn=$u+vr,Xt=$u+Dr,ae="drawingBuffer",xe=ae+vr,Ae=ae+Dr,je=[su,Pl,Du,Oh,rs,Ih,$u,qc,vc],Oe=34962,$e=34963,wr=2884,Or=3042,Nr=3024,en=2960,vn=2929,In=3089,Nn=32823,ii=32926,Ui=32928,pa=5126,fa=35664,Ta=35665,so=35666,Bo=5124,So=35667,ds=35668,fl=35669,vl=35670,Ds=35671,wl=35672,Eu=35673,gu=35674,$s=35675,Zs=35676,Yu=35678,dc=35680,$c=4,At=1028,Ut=1029,ue=2304,Me=2305,Pe=32775,Ne=32776,sr=519,ar=7680,Er=0,rn=1,Jr=32774,xn=513,zn=36160,On=36064,Hi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Vn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},yi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Si={cw:ue,ccw:Me};function Ri(_e){return Array.isArray(_e)||Xr(_e)||nn(_e)}function Gi(_e){return _e.sort(function(kr,Ir){return kr===$u?-1:Ir===$u?1:kr<Ir?-1:1})}function Kn(_e,kr,Ir,Dn){this.thisDep=_e,this.contextDep=kr,this.propDep=Ir,this.append=Dn}function Ua(_e){return _e&&!(_e.thisDep||_e.contextDep||_e.propDep)}function Ha(_e){return new Kn(!1,!1,!1,_e)}function ao(_e,kr){var Ir=_e.type;if(Ir===na){var Dn=_e.data.length;return new Kn(!0,Dn>=1,Dn>=2,kr)}else if(Ir===ls){var li=_e.data;return new Kn(li.thisDep,li.contextDep,li.propDep,kr)}else{if(Ir===ps)return new Kn(!1,!1,!1,kr);if(Ir===oo){for(var ti=!1,yn=!1,ai=!1,ta=0;ta<_e.data.length;++ta){var $i=_e.data[ta];if($i.type===io)ai=!0;else if($i.type===ns)yn=!0;else if($i.type===Ko)ti=!0;else if($i.type===na){ti=!0;var ya=$i.data;ya>=1&&(yn=!0),ya>=2&&(ai=!0)}else $i.type===ls&&(ti=ti||$i.data.thisDep,yn=yn||$i.data.contextDep,ai=ai||$i.data.propDep)}return new Kn(ti,yn,ai,kr)}else return new Kn(Ir===Ko,Ir===ns,Ir===io,kr)}}var Po=new Kn(!1,!1,!1,function(){});function Ro(_e,kr,Ir,Dn,li,ti,yn,ai,ta,$i,ya,$a,Na,ia,Ai,fn){var jn=$i.Record,Bi={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Bi.min=Pe,Bi.max=Ne);var Ti=Ir.angle_instanced_arrays,ei=Ir.webgl_draw_buffers,Sa=Ir.oes_vertex_array_object,ha={dirty:!0,profile:fn.profile},Va={},xi=[],ri={},Ea={};function ma(Yt){return Yt.replace(".","_")}function Ki(Yt,ce,Se){var ir=ma(Yt);xi.push(Yt),Va[ir]=ha[ir]=!!Se,ri[ir]=ce}function Ji(Yt,ce,Se){var ir=ma(Yt);xi.push(Yt),Array.isArray(Se)?(ha[ir]=Se.slice(),Va[ir]=Se.slice()):ha[ir]=Va[ir]=Se,Ea[ir]=ce}function ba(Yt){return!!isNaN(Yt)}Ki(qa,Nr),Ki(gs,Or),Ji(el,"blendColor",[0,0,0,0]),Ji(Pl,"blendEquationSeparate",[Jr,Jr]),Ji(su,"blendFuncSeparate",[rn,Er,rn,Er]),Ki($l,vn,!0),Ji(lu,"depthFunc",xn),Ji(ml,"depthRange",[0,1]),Ji(qu,"depthMask",!0),Ji(Iu,Iu,[!0,!0,!0,!0]),Ki(fu,wr),Ji(Oo,"cullFace",Ut),Ji(Es,Es,Me),Ji(Kl,Kl,1),Ki(Rl,Nn),Ji(vc,"polygonOffset",[0,0]),Ki(Hc,ii),Ki(Lc,Ui),Ji(Ih,"sampleCoverage",[1,!1]),Ki(Wc,en),Ji(zh,"stencilMask",-1),Ji(Du,"stencilFunc",[sr,0,-1]),Ji(Oh,"stencilOpSeparate",[At,ar,ar,ar]),Ji(rs,"stencilOpSeparate",[Ut,ar,ar,ar]),Ki(zs,In),Ji(qc,"scissor",[0,0,_e.drawingBufferWidth,_e.drawingBufferHeight]),Ji($u,$u,[0,0,_e.drawingBufferWidth,_e.drawingBufferHeight]);var Io={gl:_e,context:Na,strings:kr,next:Va,current:ha,draw:$a,elements:ti,buffer:li,shader:ya,attributes:$i.state,vao:$i,uniforms:ta,framebuffer:ai,extensions:Ir,timer:ia,isBufferArgs:Ri},wo={primTypes:ci,compareFuncs:Vn,blendFuncs:Hi,blendEquations:Bi,stencilOps:yi,glTypes:Hn,orientationType:Si};ei&&(wo.backBuffer=[Ut],wo.drawBuffer=h(Dn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(ce){return On+ce})}));var _a=0;function Fa(){var Yt=Ba({cache:Ai}),ce=Yt.link,Se=Yt.global;Yt.id=_a++,Yt.batchId="0";var ir=ce(Io),Ye=Yt.shared={props:"a0"};Object.keys(Io).forEach(function(Xe){Ye[Xe]=Se.def(ir,".",Xe)});var tr=Yt.next={},lr=Yt.current={};Object.keys(E Line truncated
`),Un;if(Tr&&(Un=gc(dn),Tr[Un]))return Tr[Un].apply(null,hi);var Ui=Function.apply(null,Fn.concat(dn));return Tr&&(Tr[Un]=Ui),Ui.apply(null,hi)}return{global:_a,link:yn,block:li,proc:Na,scope:ta,cond:Gi,compile:ia}}var Ga="xyzw".split(""),fa=5121,Oa=1,Aa=2,na=0,ao=1,is=2,Xo=3,ls=4,ps=5,so=6,$a="dither",gs="blend.enable",el="blend.color",Il="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",ml="depth.range",qu="depth.mask",zu="colorMask",fu="cull.enable",Oo="cull.face",Es="frontFace",Kl="lineWidth",Rl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Pc="sample.enable",zh="sample.coverage",Wc="stencil.enable",Oh="stencil.mask",Fu="stencil.func",Dh="stencil.opFront",ns="stencil.opBack",zs="scissor.enable",qc="scissor.box",$u="viewport",Zf="profile",$t="framebuffer",z="vert",ht="frag",Et="elements",Ot="primitive",Ht="count",Te="offset",Fe="instances",Ke="vao",vr="Width",Dr="Height",Fr=$t+vr,un=$t+Dr,Sn=$u+vr,Xt=$u+Dr,ae="drawingBuffer",_e=ae+vr,Me=ae+Dr,je=[su,Il,Fu,Dh,ns,zh,$u,qc,vc],De=34962,$e=34963,wr=2884,Or=3042,Nr=3024,en=2960,vn=2929,In=3089,jn=32823,si=32926,Wi=32928,ga=5126,pa=35664,Ma=35665,lo=35666,No=5124,So=35667,ds=35668,fl=35669,vl=35670,Ds=35671,wl=35672,Lu=35673,gu=35674,$s=35675,Zs=35676,Yu=35678,dc=35680,$c=4,At=1028,Ut=1029,ue=2304,Se=2305,Pe=32775,Ne=32776,sr=519,ar=7680,Er=0,rn=1,Jr=32774,xn=513,zn=36160,On=36064,$i={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Vn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},bi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Pi={cw:ue,ccw:Se};function ji(be){return Array.isArray(be)||Xr(be)||nn(be)}function Ki(be){return be.sort(function(Tr,Ir){return Tr===$u?-1:Ir===$u?1:Tr<Ir?-1:1})}function Jn(be,Tr,Ir,Fn){this.thisDep=be,this.contextDep=Tr,this.propDep=Ir,this.append=Fn}function Ua(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function Wa(be){return new Jn(!1,!1,!1,be)}function oo(be,Tr){var Ir=be.type;if(Ir===na){var Fn=be.data.length;return new Jn(!0,Fn>=1,Fn>=2,Tr)}else if(Ir===ls){var hi=be.data;return new Jn(hi.thisDep,hi.contextDep,hi.propDep,Tr)}else{if(Ir===ps)return new Jn(!1,!1,!1,Tr);if(Ir===so){for(var ni=!1,yn=!1,li=!1,ta=0;ta<be.data.length;++ta){var Gi=be.data[ta];if(Gi.type===ao)li=!0;else if(Gi.type===is)yn=!0;else if(Gi.type===Xo)ni=!0;else if(Gi.type===na){ni=!0;var _a=Gi.data;_a>=1&&(yn=!0),_a>=2&&(li=!0)}else Gi.type===ls&&(ni=ni||Gi.data.thisDep,yn=yn||Gi.data.contextDep,li=li||Gi.data.propDep)}return new Jn(ni,yn,li,Tr)}else return new Jn(Ir===Xo,Ir===is,Ir===ao,Tr)}}var Io=new Jn(!1,!1,!1,function(){});function Ro(be,Tr,Ir,Fn,hi,ni,yn,li,ta,Gi,_a,Za,Na,ia,Ei,dn){var Un=Gi.Record,Ui={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Ui.min=Pe,Ui.max=Ne);var Si=Ir.angle_instanced_arrays,ai=Ir.webgl_draw_buffers,Ea=Ir.oes_vertex_array_object,da={dirty:!0,profile:dn.profile},Va={},ki=[],oi={},Ca={};function va(Yt){return Yt.replace(".","_")}function Xi(Yt,he,Ee){var ir=va(Yt);ki.push(Yt),Va[ir]=da[ir]=!!Ee,oi[ir]=he}function Qi(Yt,he,Ee){var ir=va(Yt);ki.push(Yt),Array.isArray(Ee)?(da[ir]=Ee.slice(),Va[ir]=Ee.slice()):da[ir]=Va[ir]=Ee,Ca[ir]=he}function ka(Yt){return!!isNaN(Yt)}Xi($a,Nr),Xi(gs,Or),Qi(el,"blendColor",[0,0,0,0]),Qi(Il,"blendEquationSeparate",[Jr,Jr]),Qi(su,"blendFuncSeparate",[rn,Er,rn,Er]),Xi($l,vn,!0),Qi(lu,"depthFunc",xn),Qi(ml,"depthRange",[0,1]),Qi(qu,"depthMask",!0),Qi(zu,zu,[!0,!0,!0,!0]),Xi(fu,wr),Qi(Oo,"cullFace",Ut),Qi(Es,Es,Se),Qi(Kl,Kl,1),Xi(Rl,jn),Qi(vc,"polygonOffset",[0,0]),Xi(Hc,si),Xi(Pc,Wi),Qi(zh,"sampleCoverage",[1,!1]),Xi(Wc,en),Qi(Oh,"stencilMask",-1),Qi(Fu,"stencilFunc",[sr,0,-1]),Qi(Dh,"stencilOpSeparate",[At,ar,ar,ar]),Qi(ns,"stencilOpSeparate",[Ut,ar,ar,ar]),Xi(zs,In),Qi(qc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),Qi($u,$u,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var zo={gl:be,context:Na,strings:Tr,next:Va,current:da,draw:Za,elements:ni,buffer:hi,shader:_a,attributes:Gi.state,vao:Gi,uniforms:ta,framebuffer:li,extensions:Ir,timer:ia,isBufferArgs:ji},wo={primTypes:di,compareFuncs:Vn,blendFuncs:$i,blendEquations:Ui,stencilOps:bi,glTypes:Wn,orientationType:Pi};ai&&(wo.backBuffer=[Ut],wo.drawBuffer=h(Fn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(he){return On+he})}));var wa=0;function Fa(){var Yt=Ra({cache:Ei}),he=Yt.link,Ee=Yt.global;Yt.id=wa++,Yt.batchId="0";var ir=he(zo),Ye=Yt.shared={props:"a0"};Object.keys(zo).forEach(function(Xe){Ye[Xe]=Ee.def(ir,".",Xe)});var er=Yt.next={},lr=Yt.current={};Object.keys(C Line truncated
precision highp float;
attribute float width, charOffset, char;
attribute vec2 position;
@@ -2824,17 +2824,17 @@ void main() {
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
gl_FragColor = color;
}`}),p={};return{regl:A,draw:h,atlas:p}},M.prototype.update=function(A){var h=this;if(typeof A=="string")A={text:A};else if(!A)return;A=g(A,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),A.opacity!=null&&(Array.isArray(A.opacity)?this.opacity=A.opacity.map(function(Lt){return parseFloat(Lt)}):this.opacity=parseFloat(A.opacity)),A.viewport!=null&&(this.viewport=n(A.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),A.kerning!=null&&(this.kerning=A.kerning),A.offset!=null&&(typeof A.offset=="number"&&(A.offset=[A.offset,0]),this.positionOffset=v(A.offset)),A.direction&&(this.direction=A.direction),A.range&&(this.range=A.range,this.scale=[1/(A.range[2]-A.range[0]),1/(A.range[3]-A.range[1])],this.translate=[-A.range[0],-A.range[1]]),A.scale&&(this.scale=A.scale),A.translate&&(this.translate=A.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!A.font&&(A.font=M.baseFontSize+"px sans-serif");var p=!1,k=!1;if(A.font&&(Array.isArray(A.font)?A.font:[A.font]).forEach(function(Lt,Mt){if(typeof Lt=="string")try{Lt=c.parse(Lt)}catch{Lt=c.parse(M.baseFontSize+"px "+Lt)}else{var ee=Lt.style,ve=Lt.weight,oe=Lt.stretch,Te=Lt.variant;Lt=c.parse(c.stringify(Lt)),ee&&(Lt.style=ee),ve&&(Lt.weight=ve),oe&&(Lt.stretch=oe),Te&&(Lt.variant=Te)}var He=c.stringify({size:M.baseFontSize,family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style}),Ge=i(Lt.size),cr=Math.round(Ge[0]*l(Ge[1]));if(cr!==h.fontSize[Mt]&&(k=!0,h.fontSize[Mt]=cr),(!h.font[Mt]||He!=h.font[Mt].baseString)&&(p=!0,h.font[Mt]=M.fonts[He],!h.font[Mt])){var ur=Lt.family.join(", "),jr=[Lt.style];Lt.style!=Lt.variant&&jr.push(Lt.variant),Lt.variant!=Lt.weight&&jr.push(Lt.weight),_&&Lt.weight!=Lt.stretch&&jr.push(Lt.stretch),h.font[Mt]={baseString:He,family:ur,weight:Lt.weight,stretch:Lt.stretch,style:Lt.style,variant:Lt.variant,width:{},kerning:{},metrics:y(ur,{origin:"top",fontSize:M.baseFontSize,fontStyle:jr.join(" ")})},M.fonts[He]=h.font[Mt]}}),(p||k)&&this.font.forEach(function(Lt,Mt){var ee=c.stringify({size:h.fontSize[Mt],family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style});if(h.fontAtlas[Mt]=h.shader.atlas[ee],!h.fontAtlas[Mt]){var ve=Lt.metrics;h.shader.atlas[ee]=h.fontAtlas[Mt]={fontString:ee,step:Math.ceil(h.fontSize[Mt]*ve.bottom*.5)*2,em:h.fontSize[Mt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:h.regl.texture()}}A.text==null&&(A.text=h.text)}),typeof A.text=="string"&&A.position&&A.position.length>2){for(var w=Array(A.position.length*.5),R=0;R<w.length;R++)w[R]=A.text;A.text=w}var O;if(A.text!=null||p){if(this.textOffsets=[0],Array.isArray(A.text)){this.count=A.text[0].length,this.counts=[this.count];for(var j=1;j<A.text.length;j++)this.textOffsets[j]=this.textOffsets[j-1]+A.text[j-1].length,this.count+=A.text[j].length,this.counts.push(A.text[j].length);this.text=A.text.join("")}else this.text=A.text,this.count=this.text.length,this.counts=[this.count];O=[],this.font.forEach(function(Lt,Mt){M.atlasContext.font=Lt.baseString;for(var ee=h.fontAtlas[Mt],ve=0;ve<h.text.length;ve++){var oe=h.text.charAt(ve);if(ee.ids[oe]==null&&(ee.ids[oe]=ee.chars.length,ee.chars.push(oe),O.push(oe)),Lt.width[oe]==null&&(Lt.width[oe]=M.atlasContext.measureText(oe).width/M.baseFontSize,h.kerning)){var Te=[];for(var He in Lt.width)Te.push(He+oe,oe+He);x(Lt.kerning,f(Lt.family,{pairs:Te}))}}})}if(A.position)if(A.position.length>2){for(var V=!A.position[0].length,H=a.mallocFloat(this.count*2),F=0,U=0;F<this.counts.length;F++){var W=this.counts[F];if(V)for(var q=0;q<W;q++)H[U++]=A.position[F*2],H[U++]=A.position[F*2+1];else for(var J=0;J<W;J++)H[U++]=A.position[F][0],H[U++]=A.position[F][1]}this.position.call?this.position({type:"float",data:H}):this.position=this.regl.buffer({type:"float",data:H}),a.freeFloat(H)}else this.position.destroy&&this.position.destroy(),this.position={constant:A.position};if(A.text||p){var lt=a.mallocUint8(this.count),yt=a.mallocFloat(this.count*2);this.textWidth=[];for(var mt=0,st=0;mt<this.counts.length;mt++){for Line truncated
}`}),p={};return{regl:A,draw:h,atlas:p}},M.prototype.update=function(A){var h=this;if(typeof A=="string")A={text:A};else if(!A)return;A=g(A,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),A.opacity!=null&&(Array.isArray(A.opacity)?this.opacity=A.opacity.map(function(Lt){return parseFloat(Lt)}):this.opacity=parseFloat(A.opacity)),A.viewport!=null&&(this.viewport=n(A.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),A.kerning!=null&&(this.kerning=A.kerning),A.offset!=null&&(typeof A.offset=="number"&&(A.offset=[A.offset,0]),this.positionOffset=v(A.offset)),A.direction&&(this.direction=A.direction),A.range&&(this.range=A.range,this.scale=[1/(A.range[2]-A.range[0]),1/(A.range[3]-A.range[1])],this.translate=[-A.range[0],-A.range[1]]),A.scale&&(this.scale=A.scale),A.translate&&(this.translate=A.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!A.font&&(A.font=M.baseFontSize+"px sans-serif");var p=!1,k=!1;if(A.font&&(Array.isArray(A.font)?A.font:[A.font]).forEach(function(Lt,Mt){if(typeof Lt=="string")try{Lt=c.parse(Lt)}catch{Lt=c.parse(M.baseFontSize+"px "+Lt)}else{var ee=Lt.style,ve=Lt.weight,oe=Lt.stretch,Ae=Lt.variant;Lt=c.parse(c.stringify(Lt)),ee&&(Lt.style=ee),ve&&(Lt.weight=ve),oe&&(Lt.stretch=oe),Ae&&(Lt.variant=Ae)}var He=c.stringify({size:M.baseFontSize,family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style}),Ge=i(Lt.size),cr=Math.round(Ge[0]*l(Ge[1]));if(cr!==h.fontSize[Mt]&&(k=!0,h.fontSize[Mt]=cr),(!h.font[Mt]||He!=h.font[Mt].baseString)&&(p=!0,h.font[Mt]=M.fonts[He],!h.font[Mt])){var ur=Lt.family.join(", "),jr=[Lt.style];Lt.style!=Lt.variant&&jr.push(Lt.variant),Lt.variant!=Lt.weight&&jr.push(Lt.weight),_&&Lt.weight!=Lt.stretch&&jr.push(Lt.stretch),h.font[Mt]={baseString:He,family:ur,weight:Lt.weight,stretch:Lt.stretch,style:Lt.style,variant:Lt.variant,width:{},kerning:{},metrics:y(ur,{origin:"top",fontSize:M.baseFontSize,fontStyle:jr.join(" ")})},M.fonts[He]=h.font[Mt]}}),(p||k)&&this.font.forEach(function(Lt,Mt){var ee=c.stringify({size:h.fontSize[Mt],family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style});if(h.fontAtlas[Mt]=h.shader.atlas[ee],!h.fontAtlas[Mt]){var ve=Lt.metrics;h.shader.atlas[ee]=h.fontAtlas[Mt]={fontString:ee,step:Math.ceil(h.fontSize[Mt]*ve.bottom*.5)*2,em:h.fontSize[Mt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:h.regl.texture()}}A.text==null&&(A.text=h.text)}),typeof A.text=="string"&&A.position&&A.position.length>2){for(var w=Array(A.position.length*.5),B=0;B<w.length;B++)w[B]=A.text;A.text=w}var O;if(A.text!=null||p){if(this.textOffsets=[0],Array.isArray(A.text)){this.count=A.text[0].length,this.counts=[this.count];for(var j=1;j<A.text.length;j++)this.textOffsets[j]=this.textOffsets[j-1]+A.text[j-1].length,this.count+=A.text[j].length,this.counts.push(A.text[j].length);this.text=A.text.join("")}else this.text=A.text,this.count=this.text.length,this.counts=[this.count];O=[],this.font.forEach(function(Lt,Mt){M.atlasContext.font=Lt.baseString;for(var ee=h.fontAtlas[Mt],ve=0;ve<h.text.length;ve++){var oe=h.text.charAt(ve);if(ee.ids[oe]==null&&(ee.ids[oe]=ee.chars.length,ee.chars.push(oe),O.push(oe)),Lt.width[oe]==null&&(Lt.width[oe]=M.atlasContext.measureText(oe).width/M.baseFontSize,h.kerning)){var Ae=[];for(var He in Lt.width)Ae.push(He+oe,oe+He);x(Lt.kerning,f(Lt.family,{pairs:Ae}))}}})}if(A.position)if(A.position.length>2){for(var V=!A.position[0].length,H=a.mallocFloat(this.count*2),F=0,U=0;F<this.counts.length;F++){var W=this.counts[F];if(V)for(var q=0;q<W;q++)H[U++]=A.position[F*2],H[U++]=A.position[F*2+1];else for(var J=0;J<W;J++)H[U++]=A.position[F][0],H[U++]=A.position[F][1]}this.position.call?this.position({type:"float",data:H}):this.position=this.regl.buffer({type:"float",data:H}),a.freeFloat(H)}else this.position.destroy&&this.position.destroy(),this.position={constant:A.position};if(A.text||p){var lt=a.mallocUint8(this.count),yt=a.mallocFloat(this.count*2);this.textWidth=[];for(var mt=0,st=0;mt<this.counts.length;mt++){for Line truncated
`).replace(/}/g,`}
`).replace(/{/g,`{
`),jn;if(kr&&(jn=gc(fn),kr[jn]))return kr[jn].apply(null,li);var Bi=Function.apply(null,Dn.concat(fn));return kr&&(kr[jn]=Bi),Bi.apply(null,li)}return{global:ya,link:yn,block:ai,proc:Na,scope:ta,cond:$i,compile:ia}}var Za="xyzw".split(""),ca=5121,Oa=1,ka=2,na=0,io=1,ns=2,Ko=3,ls=4,ps=5,oo=6,qa="dither",gs="blend.enable",el="blend.color",Pl="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",ml="depth.range",qu="depth.mask",Iu="colorMask",fu="cull.enable",Oo="cull.face",Es="frontFace",Kl="lineWidth",Rl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Lc="sample.enable",Ih="sample.coverage",Wc="stencil.enable",zh="stencil.mask",Du="stencil.func",Oh="stencil.opFront",rs="stencil.opBack",zs="scissor.enable",qc="scissor.box",$u="viewport",qf="profile",$t="framebuffer",z="vert",ht="frag",Et="elements",zt="primitive",Ht="count",ke="offset",Fe="instances",Ke="vao",vr="Width",Dr="Height",Fr=$t+vr,un=$t+Dr,Sn=$u+vr,Xt=$u+Dr,ae="drawingBuffer",xe=ae+vr,Ae=ae+Dr,je=[su,Pl,Du,Oh,rs,Ih,$u,qc,vc],Oe=34962,$e=34963,wr=2884,Or=3042,Nr=3024,en=2960,vn=2929,In=3089,Nn=32823,ii=32926,Ui=32928,pa=5126,fa=35664,Ta=35665,so=35666,Bo=5124,So=35667,ds=35668,fl=35669,vl=35670,Ds=35671,wl=35672,Eu=35673,gu=35674,$s=35675,Zs=35676,Yu=35678,dc=35680,$c=4,At=1028,Ut=1029,ue=2304,Me=2305,Pe=32775,Ne=32776,sr=519,ar=7680,Er=0,rn=1,Jr=32774,xn=513,zn=36160,On=36064,Hi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Vn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},yi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Si={cw:ue,ccw:Me};function Ri(_e){return Array.isArray(_e)||Xr(_e)||nn(_e)}function Gi(_e){return _e.sort(function(kr,Ir){return kr===$u?-1:Ir===$u?1:kr<Ir?-1:1})}function Kn(_e,kr,Ir,Dn){this.thisDep=_e,this.contextDep=kr,this.propDep=Ir,this.append=Dn}function Ua(_e){return _e&&!(_e.thisDep||_e.contextDep||_e.propDep)}function Ha(_e){return new Kn(!1,!1,!1,_e)}function ao(_e,kr){var Ir=_e.type;if(Ir===na){var Dn=_e.data.length;return new Kn(!0,Dn>=1,Dn>=2,kr)}else if(Ir===ls){var li=_e.data;return new Kn(li.thisDep,li.contextDep,li.propDep,kr)}else{if(Ir===ps)return new Kn(!1,!1,!1,kr);if(Ir===oo){for(var ti=!1,yn=!1,ai=!1,ta=0;ta<_e.data.length;++ta){var $i=_e.data[ta];if($i.type===io)ai=!0;else if($i.type===ns)yn=!0;else if($i.type===Ko)ti=!0;else if($i.type===na){ti=!0;var ya=$i.data;ya>=1&&(yn=!0),ya>=2&&(ai=!0)}else $i.type===ls&&(ti=ti||$i.data.thisDep,yn=yn||$i.data.contextDep,ai=ai||$i.data.propDep)}return new Kn(ti,yn,ai,kr)}else return new Kn(Ir===Ko,Ir===ns,Ir===io,kr)}}var Po=new Kn(!1,!1,!1,function(){});function Ro(_e,kr,Ir,Dn,li,ti,yn,ai,ta,$i,ya,$a,Na,ia,Ai,fn){var jn=$i.Record,Bi={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Bi.min=Pe,Bi.max=Ne);var Ti=Ir.angle_instanced_arrays,ei=Ir.webgl_draw_buffers,Sa=Ir.oes_vertex_array_object,ha={dirty:!0,profile:fn.profile},Va={},xi=[],ri={},Ea={};function ma(Yt){return Yt.replace(".","_")}function Ki(Yt,ce,Se){var ir=ma(Yt);xi.push(Yt),Va[ir]=ha[ir]=!!Se,ri[ir]=ce}function Ji(Yt,ce,Se){var ir=ma(Yt);xi.push(Yt),Array.isArray(Se)?(ha[ir]=Se.slice(),Va[ir]=Se.slice()):ha[ir]=Va[ir]=Se,Ea[ir]=ce}function ba(Yt){return!!isNaN(Yt)}Ki(qa,Nr),Ki(gs,Or),Ji(el,"blendColor",[0,0,0,0]),Ji(Pl,"blendEquationSeparate",[Jr,Jr]),Ji(su,"blendFuncSeparate",[rn,Er,rn,Er]),Ki($l,vn,!0),Ji(lu,"depthFunc",xn),Ji(ml,"depthRange",[0,1]),Ji(qu,"depthMask",!0),Ji(Iu,Iu,[!0,!0,!0,!0]),Ki(fu,wr),Ji(Oo,"cullFace",Ut),Ji(Es,Es,Me),Ji(Kl,Kl,1),Ki(Rl,Nn),Ji(vc,"polygonOffset",[0,0]),Ki(Hc,ii),Ki(Lc,Ui),Ji(Ih,"sampleCoverage",[1,!1]),Ki(Wc,en),Ji(zh,"stencilMask",-1),Ji(Du,"stencilFunc",[sr,0,-1]),Ji(Oh,"stencilOpSeparate",[At,ar,ar,ar]),Ji(rs,"stencilOpSeparate",[Ut,ar,ar,ar]),Ki(zs,In),Ji(qc,"scissor",[0,0,_e.drawingBufferWidth,_e.drawingBufferHeight]),Ji($u,$u,[0,0,_e.drawingBufferWidth,_e.drawingBufferHeight]);var Io={gl:_e,context:Na,strings:kr,next:Va,current:ha,draw:$a,elements:ti,buffer:li,shader:ya,attributes:$i.state,vao:$i,uniforms:ta,framebuffer:ai,extensions:Ir,timer:ia,isBufferArgs:Ri},wo={primTypes:ci,compareFuncs:Vn,blendFuncs:Hi,blendEquations:Bi,stencilOps:yi,glTypes:Hn,orientationType:Si};ei&&(wo.backBuffer=[Ut],wo.drawBuffer=h(Dn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(ce){return On+ce})}));var _a=0;function Fa(){var Yt=Ba({cache:Ai}),ce=Yt.link,Se=Yt.global;Yt.id=_a++,Yt.batchId="0";var ir=ce(Io),Ye=Yt.shared={props:"a0"};Object.keys(Io).forEach(function(Xe){Ye[Xe]=Se.def(ir,".",Xe)});var tr=Yt.next={},lr=Yt.current={};Object.keys(E Line truncated
`),Un;if(Tr&&(Un=gc(dn),Tr[Un]))return Tr[Un].apply(null,hi);var Ui=Function.apply(null,Fn.concat(dn));return Tr&&(Tr[Un]=Ui),Ui.apply(null,hi)}return{global:_a,link:yn,block:li,proc:Na,scope:ta,cond:Gi,compile:ia}}var Ga="xyzw".split(""),fa=5121,Oa=1,Aa=2,na=0,ao=1,is=2,Xo=3,ls=4,ps=5,so=6,$a="dither",gs="blend.enable",el="blend.color",Il="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",ml="depth.range",qu="depth.mask",zu="colorMask",fu="cull.enable",Oo="cull.face",Es="frontFace",Kl="lineWidth",Rl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Pc="sample.enable",zh="sample.coverage",Wc="stencil.enable",Oh="stencil.mask",Fu="stencil.func",Dh="stencil.opFront",ns="stencil.opBack",zs="scissor.enable",qc="scissor.box",$u="viewport",Zf="profile",$t="framebuffer",z="vert",ht="frag",Et="elements",Ot="primitive",Ht="count",Te="offset",Fe="instances",Ke="vao",vr="Width",Dr="Height",Fr=$t+vr,un=$t+Dr,Sn=$u+vr,Xt=$u+Dr,ae="drawingBuffer",_e=ae+vr,Me=ae+Dr,je=[su,Il,Fu,Dh,ns,zh,$u,qc,vc],De=34962,$e=34963,wr=2884,Or=3042,Nr=3024,en=2960,vn=2929,In=3089,jn=32823,si=32926,Wi=32928,ga=5126,pa=35664,Ma=35665,lo=35666,No=5124,So=35667,ds=35668,fl=35669,vl=35670,Ds=35671,wl=35672,Lu=35673,gu=35674,$s=35675,Zs=35676,Yu=35678,dc=35680,$c=4,At=1028,Ut=1029,ue=2304,Se=2305,Pe=32775,Ne=32776,sr=519,ar=7680,Er=0,rn=1,Jr=32774,xn=513,zn=36160,On=36064,$i={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Vn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},bi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Pi={cw:ue,ccw:Se};function ji(be){return Array.isArray(be)||Xr(be)||nn(be)}function Ki(be){return be.sort(function(Tr,Ir){return Tr===$u?-1:Ir===$u?1:Tr<Ir?-1:1})}function Jn(be,Tr,Ir,Fn){this.thisDep=be,this.contextDep=Tr,this.propDep=Ir,this.append=Fn}function Ua(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function Wa(be){return new Jn(!1,!1,!1,be)}function oo(be,Tr){var Ir=be.type;if(Ir===na){var Fn=be.data.length;return new Jn(!0,Fn>=1,Fn>=2,Tr)}else if(Ir===ls){var hi=be.data;return new Jn(hi.thisDep,hi.contextDep,hi.propDep,Tr)}else{if(Ir===ps)return new Jn(!1,!1,!1,Tr);if(Ir===so){for(var ni=!1,yn=!1,li=!1,ta=0;ta<be.data.length;++ta){var Gi=be.data[ta];if(Gi.type===ao)li=!0;else if(Gi.type===is)yn=!0;else if(Gi.type===Xo)ni=!0;else if(Gi.type===na){ni=!0;var _a=Gi.data;_a>=1&&(yn=!0),_a>=2&&(li=!0)}else Gi.type===ls&&(ni=ni||Gi.data.thisDep,yn=yn||Gi.data.contextDep,li=li||Gi.data.propDep)}return new Jn(ni,yn,li,Tr)}else return new Jn(Ir===Xo,Ir===is,Ir===ao,Tr)}}var Io=new Jn(!1,!1,!1,function(){});function Ro(be,Tr,Ir,Fn,hi,ni,yn,li,ta,Gi,_a,Za,Na,ia,Ei,dn){var Un=Gi.Record,Ui={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Ui.min=Pe,Ui.max=Ne);var Si=Ir.angle_instanced_arrays,ai=Ir.webgl_draw_buffers,Ea=Ir.oes_vertex_array_object,da={dirty:!0,profile:dn.profile},Va={},ki=[],oi={},Ca={};function va(Yt){return Yt.replace(".","_")}function Xi(Yt,he,Ee){var ir=va(Yt);ki.push(Yt),Va[ir]=da[ir]=!!Ee,oi[ir]=he}function Qi(Yt,he,Ee){var ir=va(Yt);ki.push(Yt),Array.isArray(Ee)?(da[ir]=Ee.slice(),Va[ir]=Ee.slice()):da[ir]=Va[ir]=Ee,Ca[ir]=he}function ka(Yt){return!!isNaN(Yt)}Xi($a,Nr),Xi(gs,Or),Qi(el,"blendColor",[0,0,0,0]),Qi(Il,"blendEquationSeparate",[Jr,Jr]),Qi(su,"blendFuncSeparate",[rn,Er,rn,Er]),Xi($l,vn,!0),Qi(lu,"depthFunc",xn),Qi(ml,"depthRange",[0,1]),Qi(qu,"depthMask",!0),Qi(zu,zu,[!0,!0,!0,!0]),Xi(fu,wr),Qi(Oo,"cullFace",Ut),Qi(Es,Es,Se),Qi(Kl,Kl,1),Xi(Rl,jn),Qi(vc,"polygonOffset",[0,0]),Xi(Hc,si),Xi(Pc,Wi),Qi(zh,"sampleCoverage",[1,!1]),Xi(Wc,en),Qi(Oh,"stencilMask",-1),Qi(Fu,"stencilFunc",[sr,0,-1]),Qi(Dh,"stencilOpSeparate",[At,ar,ar,ar]),Qi(ns,"stencilOpSeparate",[Ut,ar,ar,ar]),Xi(zs,In),Qi(qc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),Qi($u,$u,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var zo={gl:be,context:Na,strings:Tr,next:Va,current:da,draw:Za,elements:ni,buffer:hi,shader:_a,attributes:Gi.state,vao:Gi,uniforms:ta,framebuffer:li,extensions:Ir,timer:ia,isBufferArgs:ji},wo={primTypes:di,compareFuncs:Vn,blendFuncs:$i,blendEquations:Ui,stencilOps:bi,glTypes:Wn,orientationType:Pi};ai&&(wo.backBuffer=[Ut],wo.drawBuffer=h(Fn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(he){return On+he})}));var wa=0;function Fa(){var Yt=Ra({cache:Ei}),he=Yt.link,Ee=Yt.global;Yt.id=wa++,Yt.batchId="0";var ir=he(zo),Ye=Yt.shared={props:"a0"};Object.keys(zo).forEach(function(Xe){Ye[Xe]=Ee.def(ir,".",Xe)});var er=Yt.next={},lr=Yt.current={};Object.keys(C Line truncated
`),g=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(`
`),I=E3().maxDimensionCount,S=kn(),t=1e-6,e=2048,r=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(A){A.read({x:0,y:0,width:1,height:1,data:r})}function i(A,h,p,k,w){var R=A._gl;R.enable(R.SCISSOR_TEST),R.scissor(h,p,k,w),A.clear({color:[0,0,0,0],depth:1})}function l(A,h,p,k,w,R){var O=R.key;function j(V){var H=Math.min(k,w-V*k);V===0&&(window.cancelAnimationFrame(p.currentRafs[O]),delete p.currentRafs[O],i(A,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!p.clearOnly&&(R.count=2*H,R.offset=2*V*k,h(R),V*k+H<w&&(p.currentRafs[O]=window.requestAnimationFrame(function(){j(V+1)})),p.drawCompleted=!1)}p.drawCompleted||(o(A),p.drawCompleted=!0),j(0)}function f(A){return Math.max(t,Math.min(1-t,A))}function x(A,h){for(var p=new Array(256),k=0;k<256;k++)p[k]=A(k/255).concat(h);return p}function y(A,h){return(A>>>8*h)%256/255}function v(A,h,p){for(var k=new Array(A*(I+4)),w=0,R=0;R<A;R++){for(var O=0;O<I;O++)k[w++]=O<h.length?h[O].paddedUnitValues[R]:.5;k[w++]=y(R,2),k[w++]=y(R,1),k[w++]=y(R,0),k[w++]=f(p[R])}return k}function T(A,h,p){for(var k=new Array(h*8),w=0,R=0;R<h;R++)for(var O=0;O<2;O++)for(var j=0;j<4;j++){var V=A*4+j,H=p[R*64+V];V===63&&O===0&&(H*=-1),k[w++]=H}return k}function u(A){var h="0"+A;return h.substr(h.length-2)}function b(A){return A<I?"p"+u(A+1)+"_"+u(A+4):"colors"}function _(A,h,p){for(var k=0;k<=I;k+=4)A[b(k)](T(k/4,h,p))}function P(A){for(var h={},p=0;p<=I;p+=4)h[b(p)]=A.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return h}function M(A,h,p,k,w,R,O,j,V,H,F,U,W,q){for(var J=[[],[]],lt=0;lt<64;lt++)J[0][lt]=lt===w?1:0,J[1][lt]=lt===R?1:0;O*=q,j*=q,V*=q,H*=q;var yt=A.lines.canvasOverdrag*q,mt=A.domain,st=A.canvasWidth*q,tt=A.canvasHeight*q,dt=A.pad.l*q,rt=A.pad.b*q,at=A.layoutHeight*q,vt=A.layoutWidth*q,it=A.deselectedLines.color,Y=A.deselectedLines.opacity,ft=S.extendFlat({key:F,resolution:[st,tt],viewBoxPos:[O+yt,j],viewBoxSize:[V,H],i0:w,i1:R,dim0A:J[0].slice(0,16),dim0B:J[0].slice(16,32),dim0C:J[0].slice(32,48),dim0D:J[0].slice(48,64),dim1A:J[1].slice(0,16),dim1B:J[1].slice(16,32),dim1C:J[1].slice(32,48),dim1D:J[1].slice(48,64),drwLayer:U,contextColor:[it[0]/255,it[1]/255,it[2]/255,Y!=="auto"?it[3]*Y:Math.max(1/255,Math.pow(1/A.lines.color.length,1/3))],scissorX:(k===h?0:O+yt)+(dt-yt)+vt*mt.x[0],scissorWidth:(k===p?st-O+yt:V+.5)+(k===h?O+yt:0),scissorY:j+rt+at*mt.y[0],scissorHeight:H,viewportX:dt-yt+vt*mt.x[0],viewportY:rt+at*mt.y[0],viewportWidth:st,viewportHeight:tt},W);return ft}function C(A){var h=e-1,p=Math.max(0,Math.floor(A[0]*h),0),k=Math.min(h,Math.ceil(A[1]*h),h);return[Math.min(p,k),Math.max(p,k)]}Z.exports=function(A,h){var p=h.context,k=h.pick,w=h.regl,R=w._gl,O=R.getParameter(R.ALIASED_LINE_WIDTH_RANGE),j=Math.max(O[0],Math.min(O[1],h.viewModel.plotGlPixelRatio)),V={currentRafs:{},drawCompleted:!0,clearOnly:!1},H,F,U,W,q=P(w),J,lt=w.texture(n),yt=[];st(h);var mt=w({profile:!1,blend:{enable:p,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!p,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:w.prop("scissorX"),y:w.prop("scissorY"),width:w.prop("scissorWidth"),height:w.prop("scissorHeight")}},viewport:{x:w.prop("viewportX"),y:w.prop("viewportY"),width:w.prop("viewportWidth"),height:w.prop("viewportHeight")},dither:!1,vert:c,frag:g,primitive:"lines",lineWidth:j,attributes:q,uniforms:{resolution:w.prop("resolution"),viewBoxPos:w.prop("viewBoxPos"),viewBoxSize:w.prop("viewBoxSize"),dim0A:w.prop("dim0A"),dim1A:w.prop("dim1A"),dim0B:w.prop("dim0B"),dim1B:w.prop("dim1B"),dim0C:w.prop("dim0C"),dim1C:w.prop("dim1C"),dim0D:w.prop("dim0D"),dim1D:w.prop("dim1D"),loA:w.prop("loA"),hiA:w.prop("hiA"),loB:w.prop("loB"),hiB:w.prop("hiB"),loC:w.prop("loC"),hiC:w.prop("hiC"),loD:w.prop("loD"),hiD:w.prop("hiD"),palette:lt,contextColor:w.prop("contextColor"),maskTexture:w.prop("maskTexture"),drwLayer:w.prop("drwLayer"),maskHeight:w.prop("maskHeight")},offset:w.prop("offset"),count:w.prop("count")});function st(it){H=it.model,F=it.viewModel,U=F.dimensions.slice(),W=U[0]?U[0].values.length:0;var Y=H.lines,ft=k?Y.color.map(function(kt,It){return It/Y.color.length}):Y.color,ut=v(W,U,ft);_(q,W,ut),!p&&!k&&(lt=w.texture(S.extendFlat({data:x(H.unitToColor,255)},n)))}function tt(it){var Y,ft,ut,kt=[[],[]];for(ut=0;ut<64;ut++){var It=!it&&ut<U.length?U[ut].brush.filter.getBounds():[-1/0,1/0];kt[0][ut]=It[0],kt[1][ut]=It[1]}var Pt=e*8,qt=new Array(Pt);for(Y=0;Y<Pt;Y++)qt[Y]=255;if(!it)for(Y=0;Y<U.length;Y++){var Wt=Y%8,Jt=(Y-Wt)/8,ge=Math.pow(2,Wt),fe=U[Y],pe=fe.brush.filter.get();if(!(pe.length<2)){var se=C(pe[0])[1];for(ft=1;ft<pe.length;ft++){var Tt=C(pe[ft]);for(ut=se+1;ut<Tt[0];ut++)qt[ut*8+Jt]&=~ge;se=Math.max(se,Tt[1])}}}var Lt={shape:[8,e],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:qt};return J?J(Lt):J=w.texture(Lt),{maskTexture:J,maskHeight:e,loA:kt[0]. Line truncated
`),I=C3().maxDimensionCount,S=kn(),t=1e-6,e=2048,r=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(A){A.read({x:0,y:0,width:1,height:1,data:r})}function i(A,h,p,k,w){var B=A._gl;B.enable(B.SCISSOR_TEST),B.scissor(h,p,k,w),A.clear({color:[0,0,0,0],depth:1})}function l(A,h,p,k,w,B){var O=B.key;function j(V){var H=Math.min(k,w-V*k);V===0&&(window.cancelAnimationFrame(p.currentRafs[O]),delete p.currentRafs[O],i(A,B.scissorX,B.scissorY,B.scissorWidth,B.viewBoxSize[1])),!p.clearOnly&&(B.count=2*H,B.offset=2*V*k,h(B),V*k+H<w&&(p.currentRafs[O]=window.requestAnimationFrame(function(){j(V+1)})),p.drawCompleted=!1)}p.drawCompleted||(o(A),p.drawCompleted=!0),j(0)}function f(A){return Math.max(t,Math.min(1-t,A))}function x(A,h){for(var p=new Array(256),k=0;k<256;k++)p[k]=A(k/255).concat(h);return p}function y(A,h){return(A>>>8*h)%256/255}function v(A,h,p){for(var k=new Array(A*(I+4)),w=0,B=0;B<A;B++){for(var O=0;O<I;O++)k[w++]=O<h.length?h[O].paddedUnitValues[B]:.5;k[w++]=y(B,2),k[w++]=y(B,1),k[w++]=y(B,0),k[w++]=f(p[B])}return k}function T(A,h,p){for(var k=new Array(h*8),w=0,B=0;B<h;B++)for(var O=0;O<2;O++)for(var j=0;j<4;j++){var V=A*4+j,H=p[B*64+V];V===63&&O===0&&(H*=-1),k[w++]=H}return k}function u(A){var h="0"+A;return h.substr(h.length-2)}function b(A){return A<I?"p"+u(A+1)+"_"+u(A+4):"colors"}function _(A,h,p){for(var k=0;k<=I;k+=4)A[b(k)](T(k/4,h,p))}function P(A){for(var h={},p=0;p<=I;p+=4)h[b(p)]=A.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return h}function M(A,h,p,k,w,B,O,j,V,H,F,U,W,q){for(var J=[[],[]],lt=0;lt<64;lt++)J[0][lt]=lt===w?1:0,J[1][lt]=lt===B?1:0;O*=q,j*=q,V*=q,H*=q;var yt=A.lines.canvasOverdrag*q,mt=A.domain,st=A.canvasWidth*q,tt=A.canvasHeight*q,pt=A.pad.l*q,rt=A.pad.b*q,at=A.layoutHeight*q,vt=A.layoutWidth*q,it=A.deselectedLines.color,K=A.deselectedLines.opacity,ft=S.extendFlat({key:F,resolution:[st,tt],viewBoxPos:[O+yt,j],viewBoxSize:[V,H],i0:w,i1:B,dim0A:J[0].slice(0,16),dim0B:J[0].slice(16,32),dim0C:J[0].slice(32,48),dim0D:J[0].slice(48,64),dim1A:J[1].slice(0,16),dim1B:J[1].slice(16,32),dim1C:J[1].slice(32,48),dim1D:J[1].slice(48,64),drwLayer:U,contextColor:[it[0]/255,it[1]/255,it[2]/255,K!=="auto"?it[3]*K:Math.max(1/255,Math.pow(1/A.lines.color.length,1/3))],scissorX:(k===h?0:O+yt)+(pt-yt)+vt*mt.x[0],scissorWidth:(k===p?st-O+yt:V+.5)+(k===h?O+yt:0),scissorY:j+rt+at*mt.y[0],scissorHeight:H,viewportX:pt-yt+vt*mt.x[0],viewportY:rt+at*mt.y[0],viewportWidth:st,viewportHeight:tt},W);return ft}function C(A){var h=e-1,p=Math.max(0,Math.floor(A[0]*h),0),k=Math.min(h,Math.ceil(A[1]*h),h);return[Math.min(p,k),Math.max(p,k)]}Z.exports=function(A,h){var p=h.context,k=h.pick,w=h.regl,B=w._gl,O=B.getParameter(B.ALIASED_LINE_WIDTH_RANGE),j=Math.max(O[0],Math.min(O[1],h.viewModel.plotGlPixelRatio)),V={currentRafs:{},drawCompleted:!0,clearOnly:!1},H,F,U,W,q=P(w),J,lt=w.texture(n),yt=[];st(h);var mt=w({profile:!1,blend:{enable:p,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!p,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:w.prop("scissorX"),y:w.prop("scissorY"),width:w.prop("scissorWidth"),height:w.prop("scissorHeight")}},viewport:{x:w.prop("viewportX"),y:w.prop("viewportY"),width:w.prop("viewportWidth"),height:w.prop("viewportHeight")},dither:!1,vert:c,frag:g,primitive:"lines",lineWidth:j,attributes:q,uniforms:{resolution:w.prop("resolution"),viewBoxPos:w.prop("viewBoxPos"),viewBoxSize:w.prop("viewBoxSize"),dim0A:w.prop("dim0A"),dim1A:w.prop("dim1A"),dim0B:w.prop("dim0B"),dim1B:w.prop("dim1B"),dim0C:w.prop("dim0C"),dim1C:w.prop("dim1C"),dim0D:w.prop("dim0D"),dim1D:w.prop("dim1D"),loA:w.prop("loA"),hiA:w.prop("hiA"),loB:w.prop("loB"),hiB:w.prop("hiB"),loC:w.prop("loC"),hiC:w.prop("hiC"),loD:w.prop("loD"),hiD:w.prop("hiD"),palette:lt,contextColor:w.prop("contextColor"),maskTexture:w.prop("maskTexture"),drwLayer:w.prop("drwLayer"),maskHeight:w.prop("maskHeight")},offset:w.prop("offset"),count:w.prop("count")});function st(it){H=it.model,F=it.viewModel,U=F.dimensions.slice(),W=U[0]?U[0].values.length:0;var K=H.lines,ft=k?K.color.map(function(kt,It){return It/K.color.length}):K.color,ut=v(W,U,ft);_(q,W,ut),!p&&!k&&(lt=w.texture(S.extendFlat({data:x(H.unitToColor,255)},n)))}function tt(it){var K,ft,ut,kt=[[],[]];for(ut=0;ut<64;ut++){var It=!it&&ut<U.length?U[ut].brush.filter.getBounds():[-1/0,1/0];kt[0][ut]=It[0],kt[1][ut]=It[1]}var Pt=e*8,qt=new Array(Pt);for(K=0;K<Pt;K++)qt[K]=255;if(!it)for(K=0;K<U.length;K++){var Wt=K%8,Jt=(K-Wt)/8,ge=Math.pow(2,Wt),fe=U[K],pe=fe.brush.filter.get();if(!(pe.length<2)){var se=C(pe[0])[1];for(ft=1;ft<pe.length;ft++){var Tt=C(pe[ft]);for(ut=se+1;ut<Tt[0];ut++)qt[ut*8+Jt]&=~ge;se=Math.max(se,Tt[1])}}}var Lt={shape:[8,e],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:qt};return J?J(Lt):J=w.texture(Lt),{maskTexture:J,maskHeight:e,loA:kt[0]. Line truncated
`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(`
`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",a.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(`
`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(`
`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),P3=Dt((Q,Z)=>{var c=kn(),g=hi().defaultLine,I=jh().attributes,S=da(),t=ef().textposition,e=Yc().overrideAll,r=mu().templatedArray,a=Ev(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("mapbox",".layers",!0)],domain:I({name:"mapbox"}),acce Line truncated
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,C){return g.isArrayOrTypedArray(M)?C?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===I}function _(M,C){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(C)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(C[h-1],M[h])}else A=M;return A}function P(M){var C=M.textfont,A=C.family,h=C.style,p=C.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),TW=Dt((Q,Z)=>{var c=kn(),g=kW(),I=Ev().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermapbox",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:I+a+"-fill",line:I+a+"-line",circle:I+a+"-circle",symbol:I+a+"-symbol",cluster:I+a+"-cluster",clusterCount:I+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var C=this.isHidden,A=a.visible!==!0;A?C||_():C?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),bT=Dt((Q,Z)=>{var c=tf(),g=kn(),I=Fu(),S=g.fillText,t=Ca().BADNUM,e=Ev().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map Line truncated
`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),I3=Dt((Q,Z)=>{var c=kn(),g=pi().defaultLine,I=Uh().attributes,S=ma(),t=ef().textposition,e=Yc().overrideAll,r=mu().templatedArray,a=Lv(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("mapbox",".layers",!0)],domain:I({name:"mapbox"}),acce Line truncated
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:B(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,C){return g.isArrayOrTypedArray(M)?C?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===I}function _(M,C){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(C)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(C[h-1],M[h])}else A=M;return A}function P(M){var C=M.textfont,A=C.family,h=C.style,p=C.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var B=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?B+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(B="Metropolis",p>850?B+=" Black":p>750?B+=" Extra Bold":p>650?B+=" Bold":p>550?B+=" Semi Bold":p>450?B+=" Medium":p>350?B+=" Regular":p>250?B+=" Light":p>150?B+=" Extra Light":B+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(B="Open Sans",p>750?B+=" Extrabold":p>650?B+=" Bold":p>550?B+=" Semibold":p>350?B+=" Regular":B+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(B="Klokantech Noto Sans",k[3]==="CJK"&&(B+=" CJK"),B+=p>500?" Bold":" Regular")),w&&(B+=" Italic"),B==="Open Sans Regular Italic"?B="Open Sans Italic":B==="Open Sans Regular Bold"?B="Open Sans Bold":B==="Open Sans Regular Bold Italic"?B="Open Sans Bold Italic":B==="Klokantech Noto Sans Regular Italic"&&(B="Klokantech Noto Sans Italic"),n(B)||(B=A);var O=B.split(", ");return O}}),UW=Dt((Q,Z)=>{var c=kn(),g=jW(),I=Lv().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermapbox",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:I+a+"-fill",line:I+a+"-line",circle:I+a+"-circle",symbol:I+a+"-symbol",cluster:I+a+"-cluster",clusterCount:I+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],B=i[w];y.addLayer(w,B,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],B=i[w];h||y.addSource(w,B),y.addLayer(w,B,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var C=this.isHidden,A=a.visible!==!0;A?C||_():C?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),wT=Dt((Q,Z)=>{var c=tf(),g=kn(),I=Bu(),S=g.fillText,t=sa().BADNUM,e=Lv().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map Line truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -2846,7 +2846,7 @@ precision mediump float;
#if !defined(highp)
#define highp
#endif
#endif`,ah=`#ifdef GL_ES
#endif`,oh=`#ifdef GL_ES
precision highp float;
#else
#if !defined(lowp)
@@ -2860,15 +2860,15 @@ precision highp float;
#endif
#endif
vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}`,Bf=`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}`,jf=`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Sf="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",Fl=`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;
}`,Sf="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",Bl=`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Bc="uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}",Nf=`varying vec3 v_data;
}`,Rc="uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}",Uf=`varying vec3 v_data;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
@@ -2904,7 +2904,7 @@ void main(void) {
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,oc="void main() {gl_FragColor=vec4(1.0);}",fc="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",oh=`uniform highp float u_intensity;varying vec2 v_extrude;
vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,oc="void main() {gl_FragColor=vec4(1.0);}",fc="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",sh=`uniform highp float u_intensity;varying vec2 v_extrude;
#pragma mapbox: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
@@ -2925,7 +2925,7 @@ vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/we
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(0.0);
#endif
}`,rl="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Yl="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Sh="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Cc="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Uh="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",_u="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Ed="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",tl=`#pragma mapbox: define highp vec4 color
}`,rl="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Yl="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Eh="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Lc="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Vh="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",bu="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Ed="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",tl=`#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
@@ -2940,7 +2940,7 @@ gl_FragColor=vec4(1.0);
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
gl_Position=u_matrix*vec4(a_pos,0,1);}`,Ll=`varying vec2 v_pos;
gl_Position=u_matrix*vec4(a_pos,0,1);}`,Pl=`varying vec2 v_pos;
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
@@ -2950,7 +2950,7 @@ float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Qo=`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;
}`,ts=`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
@@ -2968,7 +2968,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,sh=`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
}`,lh=`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
@@ -2992,7 +2992,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,jf=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;
}`,Vf=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
@@ -3004,7 +3004,7 @@ void main() {
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`,Vh=`varying vec4 v_color;void main() {gl_FragColor=v_color;
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`,Hh=`varying vec4 v_color;void main() {gl_FragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
@@ -3050,20 +3050,20 @@ void main() {
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Zf=`#ifdef GL_ES
: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Gf=`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,xf="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Hh=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
}`,xf="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Wh=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
#define PI 3.141592653589793
void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Uf="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Vf=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;
}`,Hf="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Wf=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
@@ -3075,7 +3075,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,lh=`
}`,uh=`
#define scale 0.015873016
attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;
#pragma mapbox: define highp vec4 color
@@ -3091,7 +3091,7 @@ void main() {
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Gf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Yf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
@@ -3101,7 +3101,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Eh=`
}`,Ch=`
#define scale 0.015873016
attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;
#pragma mapbox: define lowp float blur
@@ -3115,7 +3115,7 @@ void main() {
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,gh=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,vh=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
@@ -3174,7 +3174,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Hf=`
}`,qf=`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;
@@ -3205,7 +3205,7 @@ lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Yf=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;
}`,Kf=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
@@ -3228,7 +3228,7 @@ float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scal
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Kf=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;
}`,Xf=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
@@ -3265,7 +3265,7 @@ return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float ga
#ifdef OVERDRAW_INSPECTOR
gl_FragColor=vec4(1.0);
#endif
}`,Xf=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;
}`,Jf=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
@@ -3279,58 +3279,58 @@ void main() {
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Ou=yu(Jc,ah),jc=yu(Bf,Sf),Wh=yu(Fl,Bc),hu=yu(Nf,hc),Ch=yu(oc,fc),Mc=yu(oh,cu),Uc=yu(sc,rl),bu=yu(Yl,Sh),uf=yu(Cc,Uh),vh=yu(_u,Ed),qh=yu(tl,Vd),Cf=yu(Ll,Qo),Ld=yu(lf,sh),Jd=yu(rc,jf),cf=yu(Vh,yf),Lf=yu(lc,hd),wc=yu(Zf,xf),hf=yu(Hh,Uf),Qc=yu(Vf,lh),ff=yu(Gf,Eh),Pf=yu(gh,uc),yh=yu(rf,Hf),wu=yu(eu,Ef),Lh=yu(Cd,Yf),Vc=yu(_f,Kf),fd=yu(Nc,Xf);function yu($,ot){var et=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,xt=ot.match(/attribute ([\w]+) ([\w]+)/g),Vt=$.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=ot.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ye=de?de.concat(Vt):Vt,Yt={};return $=$.replace(et,function(ce,Se,ir,Ye,tr){return Yt[tr]=!0,Se==="define"?`
#ifndef HAS_UNIFORM_u_`+tr+`
varying `+ir+" "+Ye+" "+tr+`;
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Du=yu(Jc,oh),jc=yu(jf,Sf),qh=yu(Bl,Rc),hu=yu(Uf,hc),Lh=yu(oc,fc),Mc=yu(sh,cu),Uc=yu(sc,rl),wu=yu(Yl,Eh),uf=yu(Lc,Vh),yh=yu(bu,Ed),$h=yu(tl,Vd),Cf=yu(Pl,ts),Ld=yu(lf,lh),Jd=yu(rc,Vf),cf=yu(Hh,yf),Lf=yu(lc,hd),wc=yu(Gf,xf),hf=yu(Wh,Hf),Qc=yu(Wf,uh),ff=yu(Yf,Ch),Pf=yu(vh,uc),xh=yu(rf,qf),ku=yu(eu,Ef),Ph=yu(Cd,Kf),Vc=yu(_f,Xf),fd=yu(Nc,Jf);function yu($,ot){var et=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,xt=ot.match(/attribute ([\w]+) ([\w]+)/g),Vt=$.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=ot.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=de?de.concat(Vt):Vt,Yt={};return $=$.replace(et,function(he,Ee,ir,Ye,er){return Yt[er]=!0,Ee==="define"?`
#ifndef HAS_UNIFORM_u_`+er+`
varying `+ir+" "+Ye+" "+er+`;
#else
uniform `+ir+" "+Ye+" u_"+tr+`;
uniform `+ir+" "+Ye+" u_"+er+`;
#endif
`:`
#ifdef HAS_UNIFORM_u_`+tr+`
`+ir+" "+Ye+" "+tr+" = u_"+tr+`;
#ifdef HAS_UNIFORM_u_`+er+`
`+ir+" "+Ye+" "+er+" = u_"+er+`;
#endif
`}),ot=ot.replace(et,function(ce,Se,ir,Ye,tr){var lr=Ye==="float"?"vec2":"vec4",hr=tr.match(/color/)?"color":lr;return Yt[tr]?Se==="define"?`
#ifndef HAS_UNIFORM_u_`+tr+`
uniform lowp float u_`+tr+`_t;
attribute `+ir+" "+lr+" a_"+tr+`;
varying `+ir+" "+Ye+" "+tr+`;
`}),ot=ot.replace(et,function(he,Ee,ir,Ye,er){var lr=Ye==="float"?"vec2":"vec4",hr=er.match(/color/)?"color":lr;return Yt[er]?Ee==="define"?`
#ifndef HAS_UNIFORM_u_`+er+`
uniform lowp float u_`+er+`_t;
attribute `+ir+" "+lr+" a_"+er+`;
varying `+ir+" "+Ye+" "+er+`;
#else
uniform `+ir+" "+Ye+" u_"+tr+`;
uniform `+ir+" "+Ye+" u_"+er+`;
#endif
`:hr==="vec4"?`
#ifndef HAS_UNIFORM_u_`+tr+`
`+tr+" = a_"+tr+`;
#ifndef HAS_UNIFORM_u_`+er+`
`+er+" = a_"+er+`;
#else
`+ir+" "+Ye+" "+tr+" = u_"+tr+`;
`+ir+" "+Ye+" "+er+" = u_"+er+`;
#endif
`:`
#ifndef HAS_UNIFORM_u_`+tr+`
`+tr+" = unpack_mix_"+hr+"(a_"+tr+", u_"+tr+`_t);
#ifndef HAS_UNIFORM_u_`+er+`
`+er+" = unpack_mix_"+hr+"(a_"+er+", u_"+er+`_t);
#else
`+ir+" "+Ye+" "+tr+" = u_"+tr+`;
`+ir+" "+Ye+" "+er+" = u_"+er+`;
#endif
`:Se==="define"?`
#ifndef HAS_UNIFORM_u_`+tr+`
uniform lowp float u_`+tr+`_t;
attribute `+ir+" "+lr+" a_"+tr+`;
`:Ee==="define"?`
#ifndef HAS_UNIFORM_u_`+er+`
uniform lowp float u_`+er+`_t;
attribute `+ir+" "+lr+" a_"+er+`;
#else
uniform `+ir+" "+Ye+" u_"+tr+`;
uniform `+ir+" "+Ye+" u_"+er+`;
#endif
`:hr==="vec4"?`
#ifndef HAS_UNIFORM_u_`+tr+`
`+ir+" "+Ye+" "+tr+" = a_"+tr+`;
#ifndef HAS_UNIFORM_u_`+er+`
`+ir+" "+Ye+" "+er+" = a_"+er+`;
#else
`+ir+" "+Ye+" "+tr+" = u_"+tr+`;
`+ir+" "+Ye+" "+er+" = u_"+er+`;
#endif
`:`
#ifndef HAS_UNIFORM_u_`+tr+`
`+ir+" "+Ye+" "+tr+" = unpack_mix_"+hr+"(a_"+tr+", u_"+tr+`_t);
#ifndef HAS_UNIFORM_u_`+er+`
`+ir+" "+Ye+" "+er+" = unpack_mix_"+hr+"(a_"+er+", u_"+er+`_t);
#else
`+ir+" "+Ye+" "+tr+" = u_"+tr+`;
`+ir+" "+Ye+" "+er+" = u_"+er+`;
#endif
`}),{fragmentSource:$,vertexSource:ot,staticAttributes:xt,staticUniforms:ye}}var bf=Object.freeze({__proto__:null,prelude:Ou,background:jc,backgroundPattern:Wh,circle:hu,clippingMask:Ch,heatmap:Mc,heatmapTexture:Uc,collisionBox:bu,collisionCircle:uf,debug:vh,fill:qh,fillOutline:Cf,fillOutlinePattern:Ld,fillPattern:Jd,fillExtrusion:cf,fillExtrusionPattern:Lf,hillshadePrepare:wc,hillshade:hf,line:Qc,lineGradient:ff,linePattern:Pf,lineSDF:yh,raster:wu,symbolIcon:Lh,symbolSDF:Vc,symbolTextAndIcon:fd}),$h=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};$h.prototype.bind=function($,ot,et,xt,Vt,de,ye,Yt){this.context=$;for(var ce=this.boundPaintVertexBuffers.length!==xt.length,Se=0;!ce&&Se<xt.length;Se++)this.boundPaintVertexBuffers[Se]!==xt[Se]&&(ce=!0);var ir=!this.vao||this.boundProgram!==ot||this.boundLayoutVertexBuffer!==et||ce||this.boundIndexBuffer!==Vt||this.boundVertexOffset!==de||this.boundDynamicVertexBuffer!==ye||this.boundDynamicVertexBuffer2!==Yt;!$.extVertexArrayObject||ir?this.freshBind(ot,et,xt,Vt,de,ye,Yt):($.bindVertexArrayOES.set(this.vao),ye&&ye.bind(),Vt&&Vt.dynamicDraw&&Vt.bind(),Yt&&Yt.bind())},$h.prototype.freshBind=function($,ot,et,xt,Vt,de,ye){var Yt,ce=$.numAttributes,Se=this.context,ir=Se.gl;if(Se.extVertexArrayObject)this.vao&&this.destroy(),this.vao=Se.extVertexArrayObject.createVertexArrayOES(),Se.bindVertexArrayOES.set(this.vao),Yt=0,this.boundProgram=$,this.boundLayoutVertexBuffer=ot,this.boundPaintVertexBuffers=et,this.boundIndexBuffer=xt,this.boundVertexOffset=Vt,this.boundDynamicVertexBuffer=de,this.boundDynamicVertexBuffer2=ye;else{Yt=Se.currentNumAttributes||0;for(var Ye=ce;Ye<Yt;Ye++)ir.disableVertexAttribArray(Ye)}ot.enableAttributes(ir,$);for(var tr=0,lr=et;tr<lr.length;tr+=1){var hr=lr[tr];hr.enableAttributes(ir,$)}de&&de.enableAttributes(ir,$),ye&&ye.enableAttributes(ir,$),ot.bind(),ot.setVertexAttribPointers(ir,$,Vt);for(var Ve=0,Xe=et;Ve<Xe.length;Ve+=1){var Ze=Xe[Ve];Ze.bind(),Ze.setVertexAttribPointers(ir,$,Vt)}de&&(de.bind(),de.setVertexAttribPointers(ir,$,Vt)),xt&&xt.bind(),ye&&(ye.bind(),ye.setVertexAttribPointers(ir,$,Vt)),Se.currentNumAttributes=ce},$h.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};function th($){for(var ot=[],et=0;et<$.length;et++)if($[et]!==null){var xt=$[et].split(" ");ot.push(xt.pop())}return ot}var nf=function($,ot,et,xt,Vt,de){var ye=$.gl;this.program=ye.createProgram();for(var Yt=th(et.staticAttributes),ce=xt?xt.getBinderAttributes():[],Se=Yt.concat(ce),ir=et.staticUniforms?th(et.staticUniforms):[],Ye=xt?xt.getBinderUniforms():[],tr=ir.concat(Ye),lr=[],hr=0,Ve=tr;hr<Ve.length;hr+=1){var Xe=Ve[hr];lr.indexOf(Xe)<0&&lr.push(Xe)}var Ze=xt?xt.defines():[];de&&Ze.push("#define OVERDRAW_INSPECTOR;");var Pr=Ze.concat(Ou.fragmentSource,et.fragmentSource).join(`
`),sn=Ze.concat(Ou.vertexSource,et.vertexSource).join(`
`),dn=ye.createShader(ye.FRAGMENT_SHADER);if(ye.isContextLost()){this.failedToCreate=!0;return}ye.shaderSource(dn,Pr),ye.compileShader(dn),ye.attachShader(this.program,dn);var pi=ye.createShader(ye.VERTEX_SHADER);if(ye.isContextLost()){this.failedToCreate=!0;return}ye.shaderSource(pi,sn),ye.compileShader(pi),ye.attachShader(this.program,pi),this.attributes={};var ui={};this.numAttributes=Se.length;for(var Yn=0;Yn<this.numAttributes;Yn++)Se[Yn]&&(ye.bindAttribLocation(this.program,Yn,Se[Yn]),this.attributes[Se[Yn]]=Yn);ye.linkProgram(this.program),ye.deleteShader(pi),ye.deleteShader(dn);for(var Ci=0;Ci<lr.length;Ci++){var mi=lr[Ci];if(mi&&!ui[mi]){var ea=ye.getUniformLocation(this.program,mi);ea&&(ui[mi]=ea)}}this.fixedUniforms=Vt($,ui),this.binderUniforms=xt?xt.getUniforms($,ui):[]};nf.prototype.draw=function($,ot,et,xt,Vt,de,ye,Yt,ce,Se,ir,Ye,tr,lr,hr,Ve){var Xe,Ze=$.gl;if(!this.failedToCreate){$.program.set(this.program),$.setDepthMode(et),$.setStencilMode(xt),$.setColorMode(Vt),$.setCullFace(de);for(var Pr in this.fixedUniforms)this.fixedUniforms[Pr].set(ye[Pr]);lr&&lr.setUniforms($,this.binderUniforms,Ye,{zoom:tr});for(var sn=(Xe={},Xe[Ze.LINES]=2,Xe[Ze.TRIANGLES]=3,Xe[Ze.LINE_STRIP]=1,Xe)[ot],dn=0,pi=ir.get();dn<pi.length;dn+=1){var ui=pi[dn],Yn=ui.vaos||(ui.vaos={}),Ci=Yn[Yt]||(Yn[Yt]=new $h);Ci.bind($,this,ce,lr?lr.getPaintVertexBuffers():[],Se,ui.vertexOffset,hr,Ve),Ze.drawElements(ot,ui.primitiveLength*sn,Ze.UNSIGNED_SHORT,ui.primitiveOffset*sn*2)}}};function Zh($,ot,et){var xt=1/Qs(et,1,ot.transform.tileZoom),Vt=Math.pow(2,et.tileID.overscaledZ),de=et.tileSize*Math.pow(2,ot.transform.tileZoom)/Vt,ye=de*(et.tileID.canonical.x+et.tileID.wrap*Vt),Yt=de*et.tileID.canonical.y;return{u_image:0,u_texsize:et.imageAtlasTexture.size,u_scale:[xt,$.fromScale,$.toScale],u_fade:$.t,u_pixel_coord_upper:[ye>>16,Yt>>16],u_pixel_coord_lower:[ye&65535,Yt&65535]}}function wf($,ot,et,xt){var Vt=et.imageManager.getPattern($.from.toString()),de=et.imageManager.getPattern($.to.toString()),ye=et.imageManager.getPixelSize(),Yt=ye.width,ce=ye.height,Se=Math.pow(2,xt.tileID.overscaledZ),ir=xt.tileSize*Math.pow(2,et.transform.tileZoom)/Se,Ye=ir*(xt.tileID.canonical.x+xt.tileID.wrap*Se),tr=ir*xt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Vt.tl,u_pattern_br_a:Vt.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[Yt,ce],u_mix:ot.t,u_pattern_size_a:Vt.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:ot.fromScale,u_scale_b:ot.toScale,u_tile_units_to_pixels:1/Qs(xt,1,et.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,tr>>16],u_pixel_coord_lower:[Ye&65535,tr&65535]}}var Pd=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_opacity:new t.Uniform1f($,ot.u_opacity)}},gc=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_height_factor:new t.Uniform1f($,ot.u_height_factor),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade),u_opacity:new t.Uniform1f($,ot.u_opacity)}},Jf=function($,ot,et,xt){var Vt=ot.style.light,de=Vt.properties.get("position"),ye=[de.x,de.y,de.z],Yt=t.create$1();Vt.properties.get("anchor")==="viewport"&&t.fromRotation(Yt,-ot.transform.angle),t.transformMat3(ye,ye,Yt);var ce=Vt.properties.get("color");return{u_matrix:$,u_lightpos:ye,u_lightintensity:Vt.properties.get("intensity"),u_lightcolor:[ce.r,ce.g,ce.b],u_vertical_gradient:+et,u_opacity:xt}},eh=function($,ot,et,xt,Vt,de,ye){return t.extend(Jf($,ot,et,xt),Zh(de,ot,ye),{u_height_factor:-Math.pow(2,Vt.overscaledZ)/ye.tileSize/8})},Ph=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix)}},xh=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade)}},Bu=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world)}},iu=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Un Line truncated
`}),{fragmentSource:$,vertexSource:ot,staticAttributes:xt,staticUniforms:xe}}var bf=Object.freeze({__proto__:null,prelude:Du,background:jc,backgroundPattern:qh,circle:hu,clippingMask:Lh,heatmap:Mc,heatmapTexture:Uc,collisionBox:wu,collisionCircle:uf,debug:yh,fill:$h,fillOutline:Cf,fillOutlinePattern:Ld,fillPattern:Jd,fillExtrusion:cf,fillExtrusionPattern:Lf,hillshadePrepare:wc,hillshade:hf,line:Qc,lineGradient:ff,linePattern:Pf,lineSDF:xh,raster:ku,symbolIcon:Ph,symbolSDF:Vc,symbolTextAndIcon:fd}),Zh=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Zh.prototype.bind=function($,ot,et,xt,Vt,de,xe,Yt){this.context=$;for(var he=this.boundPaintVertexBuffers.length!==xt.length,Ee=0;!he&&Ee<xt.length;Ee++)this.boundPaintVertexBuffers[Ee]!==xt[Ee]&&(he=!0);var ir=!this.vao||this.boundProgram!==ot||this.boundLayoutVertexBuffer!==et||he||this.boundIndexBuffer!==Vt||this.boundVertexOffset!==de||this.boundDynamicVertexBuffer!==xe||this.boundDynamicVertexBuffer2!==Yt;!$.extVertexArrayObject||ir?this.freshBind(ot,et,xt,Vt,de,xe,Yt):($.bindVertexArrayOES.set(this.vao),xe&&xe.bind(),Vt&&Vt.dynamicDraw&&Vt.bind(),Yt&&Yt.bind())},Zh.prototype.freshBind=function($,ot,et,xt,Vt,de,xe){var Yt,he=$.numAttributes,Ee=this.context,ir=Ee.gl;if(Ee.extVertexArrayObject)this.vao&&this.destroy(),this.vao=Ee.extVertexArrayObject.createVertexArrayOES(),Ee.bindVertexArrayOES.set(this.vao),Yt=0,this.boundProgram=$,this.boundLayoutVertexBuffer=ot,this.boundPaintVertexBuffers=et,this.boundIndexBuffer=xt,this.boundVertexOffset=Vt,this.boundDynamicVertexBuffer=de,this.boundDynamicVertexBuffer2=xe;else{Yt=Ee.currentNumAttributes||0;for(var Ye=he;Ye<Yt;Ye++)ir.disableVertexAttribArray(Ye)}ot.enableAttributes(ir,$);for(var er=0,lr=et;er<lr.length;er+=1){var hr=lr[er];hr.enableAttributes(ir,$)}de&&de.enableAttributes(ir,$),xe&&xe.enableAttributes(ir,$),ot.bind(),ot.setVertexAttribPointers(ir,$,Vt);for(var Ve=0,Xe=et;Ve<Xe.length;Ve+=1){var Ze=Xe[Ve];Ze.bind(),Ze.setVertexAttribPointers(ir,$,Vt)}de&&(de.bind(),de.setVertexAttribPointers(ir,$,Vt)),xt&&xt.bind(),xe&&(xe.bind(),xe.setVertexAttribPointers(ir,$,Vt)),Ee.currentNumAttributes=he},Zh.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};function th($){for(var ot=[],et=0;et<$.length;et++)if($[et]!==null){var xt=$[et].split(" ");ot.push(xt.pop())}return ot}var nf=function($,ot,et,xt,Vt,de){var xe=$.gl;this.program=xe.createProgram();for(var Yt=th(et.staticAttributes),he=xt?xt.getBinderAttributes():[],Ee=Yt.concat(he),ir=et.staticUniforms?th(et.staticUniforms):[],Ye=xt?xt.getBinderUniforms():[],er=ir.concat(Ye),lr=[],hr=0,Ve=er;hr<Ve.length;hr+=1){var Xe=Ve[hr];lr.indexOf(Xe)<0&&lr.push(Xe)}var Ze=xt?xt.defines():[];de&&Ze.push("#define OVERDRAW_INSPECTOR;");var Pr=Ze.concat(Du.fragmentSource,et.fragmentSource).join(`
`),sn=Ze.concat(Du.vertexSource,et.vertexSource).join(`
`),pn=xe.createShader(xe.FRAGMENT_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(pn,Pr),xe.compileShader(pn),xe.attachShader(this.program,pn);var vi=xe.createShader(xe.VERTEX_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(vi,sn),xe.compileShader(vi),xe.attachShader(this.program,vi),this.attributes={};var fi={};this.numAttributes=Ee.length;for(var Xn=0;Xn<this.numAttributes;Xn++)Ee[Xn]&&(xe.bindAttribLocation(this.program,Xn,Ee[Xn]),this.attributes[Ee[Xn]]=Xn);xe.linkProgram(this.program),xe.deleteShader(vi),xe.deleteShader(pn);for(var zi=0;zi<lr.length;zi++){var yi=lr[zi];if(yi&&!fi[yi]){var ea=xe.getUniformLocation(this.program,yi);ea&&(fi[yi]=ea)}}this.fixedUniforms=Vt($,fi),this.binderUniforms=xt?xt.getUniforms($,fi):[]};nf.prototype.draw=function($,ot,et,xt,Vt,de,xe,Yt,he,Ee,ir,Ye,er,lr,hr,Ve){var Xe,Ze=$.gl;if(!this.failedToCreate){$.program.set(this.program),$.setDepthMode(et),$.setStencilMode(xt),$.setColorMode(Vt),$.setCullFace(de);for(var Pr in this.fixedUniforms)this.fixedUniforms[Pr].set(xe[Pr]);lr&&lr.setUniforms($,this.binderUniforms,Ye,{zoom:er});for(var sn=(Xe={},Xe[Ze.LINES]=2,Xe[Ze.TRIANGLES]=3,Xe[Ze.LINE_STRIP]=1,Xe)[ot],pn=0,vi=ir.get();pn<vi.length;pn+=1){var fi=vi[pn],Xn=fi.vaos||(fi.vaos={}),zi=Xn[Yt]||(Xn[Yt]=new Zh);zi.bind($,this,he,lr?lr.getPaintVertexBuffers():[],Ee,fi.vertexOffset,hr,Ve),Ze.drawElements(ot,fi.primitiveLength*sn,Ze.UNSIGNED_SHORT,fi.primitiveOffset*sn*2)}}};function Gh($,ot,et){var xt=1/Qs(et,1,ot.transform.tileZoom),Vt=Math.pow(2,et.tileID.overscaledZ),de=et.tileSize*Math.pow(2,ot.transform.tileZoom)/Vt,xe=de*(et.tileID.canonical.x+et.tileID.wrap*Vt),Yt=de*et.tileID.canonical.y;return{u_image:0,u_texsize:et.imageAtlasTexture.size,u_scale:[xt,$.fromScale,$.toScale],u_fade:$.t,u_pixel_coord_upper:[xe>>16,Yt>>16],u_pixel_coord_lower:[xe&65535,Yt&65535]}}function wf($,ot,et,xt){var Vt=et.imageManager.getPattern($.from.toString()),de=et.imageManager.getPattern($.to.toString()),xe=et.imageManager.getPixelSize(),Yt=xe.width,he=xe.height,Ee=Math.pow(2,xt.tileID.overscaledZ),ir=xt.tileSize*Math.pow(2,et.transform.tileZoom)/Ee,Ye=ir*(xt.tileID.canonical.x+xt.tileID.wrap*Ee),er=ir*xt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Vt.tl,u_pattern_br_a:Vt.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[Yt,he],u_mix:ot.t,u_pattern_size_a:Vt.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:ot.fromScale,u_scale_b:ot.toScale,u_tile_units_to_pixels:1/Qs(xt,1,et.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,er>>16],u_pixel_coord_lower:[Ye&65535,er&65535]}}var Pd=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_opacity:new t.Uniform1f($,ot.u_opacity)}},gc=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_height_factor:new t.Uniform1f($,ot.u_height_factor),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade),u_opacity:new t.Uniform1f($,ot.u_opacity)}},Qf=function($,ot,et,xt){var Vt=ot.style.light,de=Vt.properties.get("position"),xe=[de.x,de.y,de.z],Yt=t.create$1();Vt.properties.get("anchor")==="viewport"&&t.fromRotation(Yt,-ot.transform.angle),t.transformMat3(xe,xe,Yt);var he=Vt.properties.get("color");return{u_matrix:$,u_lightpos:xe,u_lightintensity:Vt.properties.get("intensity"),u_lightcolor:[he.r,he.g,he.b],u_vertical_gradient:+et,u_opacity:xt}},eh=function($,ot,et,xt,Vt,de,xe){return t.extend(Qf($,ot,et,xt),Gh(de,ot,xe),{u_height_factor:-Math.pow(2,Vt.overscaledZ)/xe.tileSize/8})},Ih=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix)}},_h=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade)}},Nu=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world)}},iu=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Un Line truncated
{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin}
{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin}
{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin}
@@ -3341,10 +3341,10 @@ uniform `+ir+" "+Ye+" u_"+tr+`;
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin}
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin}
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin}
{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),qW=Dt((Q,Z)=>{Z.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI &copy; <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),G1=Dt((Q,Z)=>{var c=G0(),g=WW(),I=qW(),S='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',t="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",e="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",i={basic:r,streets:r,outdoors:r,light:t,dark:e,satellite:I,"satellite-streets":g,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:S,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id: Line truncated
`),mapOnErrorMsg:"Map error."}}),I3=Dt((Q,Z)=>{var c=kn(),g=hi().defaultLine,I=jh().attributes,S=da(),t=ef().textposition,e=Yc().overrideAll,r=mu().templatedArray,a=G1(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("map",".layers",!0)],domain:I({name:"map"}),style:{valType:"any",values:a.styleValuesMap,dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:g},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:g}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:c.extendFlat({},t,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}),kT=Dt((Q,Z)=>{var{hovertemplateAttrs:c,texttemplateAttrs:g,templatefallbackAttrs:I}=Zu(),S=I0(),t=vx(),e=ef(),r=I3(),a=Ho(),n=kc(),o=Ia().extendFlat,i=Yc().overrideAll,l=I3(),f=t.line,x=t.marker;Z.exports=i({lon:t.lon,lat:t.lat,cluster:{enabled:{valType:"boolean"},maxzoom:o({},l.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:o({},x.opacity,{dflt:1})},mode:o({},e.mode,{dflt:"markers"}),text:o({},e.text,{}),texttemplate:g({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:I({editType:"plot"}),hovertext:o({},e.hovertext,{}),line:{color:f.color,width:f.width},connectgaps:e.connectgaps,marker:o({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x.opacity,size:x.size,sizeref:x.sizeref,sizemin:x.sizemin,sizemode:x.sizemode},n("marker")),fill:t.fill,fillcolor:S(),textfont:r.layers.symbol.textfont,textposition:r.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:o({},a.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:c(),hovertemplatefallback:I()},"calc","nested")}),EE=Dt((Q,Z)=>{var c=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];Z.exports={isSupportedFont:function(g){return c.indexOf(g)!==-1}}}),$W=Dt((Q,Z)=>{var c=kn(),g=Tc(),I=s0(),S=z0(),t=x0(),e=O0(),r=kT(),a=EE().isSupportedFont;Z.exports=function(o,i,l,f){function x(p,k){return c.coerce(o,i,r,p,k)}function y(p,k){return c.coerce2(o,i,r,p,k)}var v=n(o,i,x);if(!v){i.visible=!1;return}if(x("text"),x("texttemplate"),x("texttemplatefallback"),x("hovertext"),x("hovertemplate"),x("hovertemplatefallback"),x("mode"),x("below"),g.hasMarkers(i)){I(o,i,l,f,x,{noLine:!0,noAngle:!0}),x("marker.allowoverlap"),x("marker.angle");var T=i.marker;T.symbol!=="circle"&&(c.isArrayOrTypedArray(T.size)&&(T.size=T.size[0]),c.isArrayOrTypedArray(T.color)&&(T.color=T.color[0]))}g.hasLines(i)&&(S(o,i,l,f,x,{noDash:!0}),x("connectgaps"));var u=y("cluster.maxzoom"),b=y("cluster.step"),_=y("cluster.color",i.marker&&i.marker.color||l),P=y("cluster.size"),M=y("cluster.opacity"),C=u!==!1||b!==!1||_!==!1||P!==!1||M!==!1,A=x("cluster.enabled",C);if(A||g.hasText(i)){var h=f.font.family;t(o,i,f,x,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition Line truncated
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,C){return g.isArrayOrTypedArray(M)?C?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===I}function _(M,C){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(C)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(C[h-1],M[h])}else A=M;return A}function P(M){var C=M.textfont,A=C.family,h=C.style,p=C.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),GW=Dt((Q,Z)=>{var c=kn(),g=ZW(),I=G1().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermap",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:I+a+"-fill",line:I+a+"-line",circle:I+a+"-circle",symbol:I+a+"-symbol",cluster:I+a+"-cluster",clusterCount:I+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var C=this.isHidden,A=a.visible!==!0;A?C||_():C?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),TT=Dt((Q,Z)=>{var c=tf(),g=kn(),I=Fu(),S=g.fillText,t=Ca().BADNUM,e=G1().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map.qu Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Lr[1])} }\`.`)];let Zr=[];return G.layerType==="symbol"&&(be==="text-field"&&Rt&&!Rt.glyphs&&Zr.push(new Lt(nt,Qt,'use of "text-field" requires a style "glyphs" property')),be==="text-font"&&Ef(Lh(Qt))&&wu(Qt.type)==="identity"&&Zr.push(new Lt(nt,Qt,'"text-font" does not support identity functions'))),Zr.concat(bt({key:G.key,value:Qt,valueSpec:xr,style:Rt,styleSpec:Kt,expressionContext:"property",propertyType:D,propertyKey:be}))}function Pd(G){return wf(G,"paint")}function gc(G){return wf(G,"layout")}function Jf(G){let D=[],nt=G.value,bt=G.key,Rt=G.style,Kt=G.styleSpec;nt.type||nt.ref||D.push(new Lt(bt,nt,'either "type" or "ref" is required'));let Qt=wu(nt.type),be=wu(nt.ref);if(nt.id){let Be=wu(nt.id);for(let rr=0;rr<G.arrayIndex;rr++){let xr=Rt.layers[rr];wu(xr.id)===Be&&D.push(new Lt(bt,nt.id,`duplicate layer id "${nt.id}", previously used at line ${xr.id.__line__}`))}}if("ref"in nt){let Be;["type","source","source-layer","filter","layout"].forEach(rr=>{rr in nt&&D.push(new Lt(bt,nt[rr],`"${rr}" is prohibited for ref layers`))}),Rt.layers.forEach(rr=>{wu(rr.id)===be&&(Be=rr)}),Be?Be.ref?D.push(new Lt(bt,nt.ref,"ref cannot reference another ref layer")):Qt=wu(Be.type):D.push(new Lt(bt,nt.ref,`ref layer "${be}" not found`))}else if(Qt!=="background")if(nt.source){let Be=Rt.sources&&Rt.sources[nt.source],rr=Be&&wu(Be.type);Be?rr==="vector"&&Qt==="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster source`)):rr!=="raster-dem"&&Qt==="hillshade"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster-dem source`)):rr==="raster"&&Qt!=="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a vector source`)):rr!=="vector"||nt["source-layer"]?rr==="raster-dem"&&Qt!=="hillshade"?D.push(new Lt(bt,nt.source,"raster-dem source can only be used with layer type 'hillshade'.")):Qt!=="line"||!nt.paint||!nt.paint["line-gradient"]||rr==="geojson"&&Be.lineMetrics||D.push(new Lt(bt,nt,`layer "${nt.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new Lt(bt,nt,`layer "${nt.id}" must specify a "source-layer"`)):D.push(new Lt(bt,nt.source,`source "${nt.source}" not found`))}else D.push(new Lt(bt,nt,'missing required property "source"'));return D=D.concat(Vc({key:bt,value:nt,valueSpec:Kt.layer,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,objectElementValidators:{"*":()=>[],type:()=>G.validateSpec({key:`${bt}.type`,value:nt.type,valueSpec:Kt.layer.type,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,object:nt,objectKey:"type"}),filter:nf,layout:Be=>Vc({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>gc(Mt({layerType:Qt},rr))}}),paint:Be=>Vc({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>Pd(Mt({layerType:Qt},rr))}})}})),D}function eh(G){let D=G.value,nt=G.key,bt=eu(D);return bt!=="string"?[new Lt(nt,D,`string expected, ${bt} found`)]:[]}let Ph={promoteId:function({key:G,value:D}){if(eu(D)==="string")return eh({key:G,value:D});{let nt=[];for(let bt in D)nt.push(...eh({key:`${G}.${bt}`,value:D[bt]}));return nt}}};function xh(G){let D=G.value,nt=G.key,bt=G.styleSpec,Rt=G.style,Kt=G.validateSpec;if(!D.type)return[new Lt(nt,D,'"type" is required')];let Qt=wu(D.type),be;switch(Qt){case"vector":case"raster":return be=Vc({key:nt,value:D,valueSpec:bt[`source_${Qt.replace("-","_")}`],style:G.style,styleSpec:bt,objectElementValidators:Ph,validateSpec:Kt}),be;case"raster-dem":return be=function(Be){var rr;let xr=(rr=Be.sourceName)!==null&&rr!==void 0?rr:"",Lr=Be.value,Zr=Be.styleSpec,ln=Zr.source_raster_dem,bn=Be.style,Ln=[],Gn=eu(Lr);if(Lr===void 0)return Ln;if(Gn!=="object")return Ln.push(new Lt("source_raster_dem",Lr,`object expected, ${Gn} found`)),Ln;let Mi=wu(Lr.encoding)==="custom",Aa=["redFactor","greenFactor","blueFactor","baseShift"],ra=Be.value.encoding?`"${Be.value.encoding}"`:"Default";for(let ga in Lr)!Mi&&Aa.includes(ga)?Ln.push(new Lt(ga,Lr[ga],`In "${xr}": "${ga}" is only valid when "encoding" is set to "custom". ${ra} encoding found`)):ln[ga]?Ln=Ln.concat(Be.validateSpec({key:ga,value:Lr[ga],valueSpec:ln[ga],validateSpec:Be.validateSpec,style:bn,styleSpec:Zr})):Ln.push(new Lt(ga,Lr[ga],`unknown property "${ga}"`));return Ln}({sourceName:nt,value:D,style:G.style,styleSpec:bt,validateSpec:Kt}),be;case"geojson":if(be=Vc({key:nt,value:D,valueSpec:bt.source_geojson,style:Rt,styleSpec:bt,validateSpec:Kt,objectElementValidators:Ph}),D.cluster)for(let Be in D.clusterProperties){let[rr,xr]=D.clusterProperties[Be],Lr=typeof rr=="string"?[rr,["accumulated"],["get",Be]]:rr;be.push(...$h({key:`${nt}.${Be}.map`,value:xr,expressionContext:"cluster-map"})),be.push(...$h({key:`${nt}.${Be}.reduce`,value:Lr,expressionContext:"cluster-reduce"}))}return be;Line truncated
{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),lq=Dt((Q,Z)=>{Z.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI &copy; <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),K1=Dt((Q,Z)=>{var c=Y0(),g=sq(),I=lq(),S='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',t="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",e="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",i={basic:r,streets:r,outdoors:r,light:t,dark:e,satellite:I,"satellite-streets":g,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:S,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id: Line truncated
`),mapOnErrorMsg:"Map error."}}),z3=Dt((Q,Z)=>{var c=kn(),g=pi().defaultLine,I=Uh().attributes,S=ma(),t=ef().textposition,e=Yc().overrideAll,r=mu().templatedArray,a=K1(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("map",".layers",!0)],domain:I({name:"map"}),style:{valType:"any",values:a.styleValuesMap,dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:g},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:g}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:c.extendFlat({},t,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}),TT=Dt((Q,Z)=>{var{hovertemplateAttrs:c,texttemplateAttrs:g,templatefallbackAttrs:I}=Zu(),S=z0(),t=xx(),e=ef(),r=z3(),a=qo(),n=kc(),o=Ia().extendFlat,i=Yc().overrideAll,l=z3(),f=t.line,x=t.marker;Z.exports=i({lon:t.lon,lat:t.lat,cluster:{enabled:{valType:"boolean"},maxzoom:o({},l.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:o({},x.opacity,{dflt:1})},mode:o({},e.mode,{dflt:"markers"}),text:o({},e.text,{}),texttemplate:g({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:I({editType:"plot"}),hovertext:o({},e.hovertext,{}),line:{color:f.color,width:f.width},connectgaps:e.connectgaps,marker:o({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x.opacity,size:x.size,sizeref:x.sizeref,sizemin:x.sizemin,sizemode:x.sizemode},n("marker")),fill:t.fill,fillcolor:S(),textfont:r.layers.symbol.textfont,textposition:r.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:o({},a.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:c(),hovertemplatefallback:I()},"calc","nested")}),LE=Dt((Q,Z)=>{var c=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];Z.exports={isSupportedFont:function(g){return c.indexOf(g)!==-1}}}),uq=Dt((Q,Z)=>{var c=kn(),g=Tc(),I=s0(),S=O0(),t=x0(),e=D0(),r=TT(),a=LE().isSupportedFont;Z.exports=function(o,i,l,f){function x(p,k){return c.coerce(o,i,r,p,k)}function y(p,k){return c.coerce2(o,i,r,p,k)}var v=n(o,i,x);if(!v){i.visible=!1;return}if(x("text"),x("texttemplate"),x("texttemplatefallback"),x("hovertext"),x("hovertemplate"),x("hovertemplatefallback"),x("mode"),x("below"),g.hasMarkers(i)){I(o,i,l,f,x,{noLine:!0,noAngle:!0}),x("marker.allowoverlap"),x("marker.angle");var T=i.marker;T.symbol!=="circle"&&(c.isArrayOrTypedArray(T.size)&&(T.size=T.size[0]),c.isArrayOrTypedArray(T.color)&&(T.color=T.color[0]))}g.hasLines(i)&&(S(o,i,l,f,x,{noDash:!0}),x("connectgaps"));var u=y("cluster.maxzoom"),b=y("cluster.step"),_=y("cluster.color",i.marker&&i.marker.color||l),P=y("cluster.size"),M=y("cluster.opacity"),C=u!==!1||b!==!1||_!==!1||P!==!1||M!==!1,A=x("cluster.enabled",C);if(A||g.hasText(i)){var h=f.font.family;t(o,i,f,x,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition Line truncated
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:B(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,C){return g.isArrayOrTypedArray(M)?C?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===I}function _(M,C){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(C)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(C[h-1],M[h])}else A=M;return A}function P(M){var C=M.textfont,A=C.family,h=C.style,p=C.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var B=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?B+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(B="Metropolis",p>850?B+=" Black":p>750?B+=" Extra Bold":p>650?B+=" Bold":p>550?B+=" Semi Bold":p>450?B+=" Medium":p>350?B+=" Regular":p>250?B+=" Light":p>150?B+=" Extra Light":B+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(B="Open Sans",p>750?B+=" Extrabold":p>650?B+=" Bold":p>550?B+=" Semibold":p>350?B+=" Regular":B+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(B="Klokantech Noto Sans",k[3]==="CJK"&&(B+=" CJK"),B+=p>500?" Bold":" Regular")),w&&(B+=" Italic"),B==="Open Sans Regular Italic"?B="Open Sans Italic":B==="Open Sans Regular Bold"?B="Open Sans Bold":B==="Open Sans Regular Bold Italic"?B="Open Sans Bold Italic":B==="Klokantech Noto Sans Regular Italic"&&(B="Klokantech Noto Sans Italic"),n(B)||(B=A);var O=B.split(", ");return O}}),hq=Dt((Q,Z)=>{var c=kn(),g=cq(),I=K1().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermap",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:I+a+"-fill",line:I+a+"-line",circle:I+a+"-circle",symbol:I+a+"-symbol",cluster:I+a+"-cluster",clusterCount:I+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],B=i[w];y.addLayer(w,B,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],B=i[w];h||y.addSource(w,B),y.addLayer(w,B,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var C=this.isHidden,A=a.visible!==!0;A?C||_():C?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),AT=Dt((Q,Z)=>{var c=tf(),g=kn(),I=Bu(),S=g.fillText,t=sa().BADNUM,e=K1().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map.qu Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Lr[1])} }\`.`)];let Zr=[];return G.layerType==="symbol"&&(we==="text-field"&&Bt&&!Bt.glyphs&&Zr.push(new Lt(nt,Qt,'use of "text-field" requires a style "glyphs" property')),we==="text-font"&&Ef(Ph(Qt))&&ku(Qt.type)==="identity"&&Zr.push(new Lt(nt,Qt,'"text-font" does not support identity functions'))),Zr.concat(bt({key:G.key,value:Qt,valueSpec:xr,style:Bt,styleSpec:Kt,expressionContext:"property",propertyType:D,propertyKey:we}))}function Pd(G){return wf(G,"paint")}function gc(G){return wf(G,"layout")}function Qf(G){let D=[],nt=G.value,bt=G.key,Bt=G.style,Kt=G.styleSpec;nt.type||nt.ref||D.push(new Lt(bt,nt,'either "type" or "ref" is required'));let Qt=ku(nt.type),we=ku(nt.ref);if(nt.id){let Re=ku(nt.id);for(let rr=0;rr<G.arrayIndex;rr++){let xr=Bt.layers[rr];ku(xr.id)===Re&&D.push(new Lt(bt,nt.id,`duplicate layer id "${nt.id}", previously used at line ${xr.id.__line__}`))}}if("ref"in nt){let Re;["type","source","source-layer","filter","layout"].forEach(rr=>{rr in nt&&D.push(new Lt(bt,nt[rr],`"${rr}" is prohibited for ref layers`))}),Bt.layers.forEach(rr=>{ku(rr.id)===we&&(Re=rr)}),Re?Re.ref?D.push(new Lt(bt,nt.ref,"ref cannot reference another ref layer")):Qt=ku(Re.type):D.push(new Lt(bt,nt.ref,`ref layer "${we}" not found`))}else if(Qt!=="background")if(nt.source){let Re=Bt.sources&&Bt.sources[nt.source],rr=Re&&ku(Re.type);Re?rr==="vector"&&Qt==="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster source`)):rr!=="raster-dem"&&Qt==="hillshade"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster-dem source`)):rr==="raster"&&Qt!=="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a vector source`)):rr!=="vector"||nt["source-layer"]?rr==="raster-dem"&&Qt!=="hillshade"?D.push(new Lt(bt,nt.source,"raster-dem source can only be used with layer type 'hillshade'.")):Qt!=="line"||!nt.paint||!nt.paint["line-gradient"]||rr==="geojson"&&Re.lineMetrics||D.push(new Lt(bt,nt,`layer "${nt.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new Lt(bt,nt,`layer "${nt.id}" must specify a "source-layer"`)):D.push(new Lt(bt,nt.source,`source "${nt.source}" not found`))}else D.push(new Lt(bt,nt,'missing required property "source"'));return D=D.concat(Vc({key:bt,value:nt,valueSpec:Kt.layer,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,objectElementValidators:{"*":()=>[],type:()=>G.validateSpec({key:`${bt}.type`,value:nt.type,valueSpec:Kt.layer.type,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,object:nt,objectKey:"type"}),filter:nf,layout:Re=>Vc({layer:nt,key:Re.key,value:Re.value,style:Re.style,styleSpec:Re.styleSpec,validateSpec:Re.validateSpec,objectElementValidators:{"*":rr=>gc(Mt({layerType:Qt},rr))}}),paint:Re=>Vc({layer:nt,key:Re.key,value:Re.value,style:Re.style,styleSpec:Re.styleSpec,validateSpec:Re.validateSpec,objectElementValidators:{"*":rr=>Pd(Mt({layerType:Qt},rr))}})}})),D}function eh(G){let D=G.value,nt=G.key,bt=eu(D);return bt!=="string"?[new Lt(nt,D,`string expected, ${bt} found`)]:[]}let Ih={promoteId:function({key:G,value:D}){if(eu(D)==="string")return eh({key:G,value:D});{let nt=[];for(let bt in D)nt.push(...eh({key:`${G}.${bt}`,value:D[bt]}));return nt}}};function _h(G){let D=G.value,nt=G.key,bt=G.styleSpec,Bt=G.style,Kt=G.validateSpec;if(!D.type)return[new Lt(nt,D,'"type" is required')];let Qt=ku(D.type),we;switch(Qt){case"vector":case"raster":return we=Vc({key:nt,value:D,valueSpec:bt[`source_${Qt.replace("-","_")}`],style:G.style,styleSpec:bt,objectElementValidators:Ih,validateSpec:Kt}),we;case"raster-dem":return we=function(Re){var rr;let xr=(rr=Re.sourceName)!==null&&rr!==void 0?rr:"",Lr=Re.value,Zr=Re.styleSpec,ln=Zr.source_raster_dem,bn=Re.style,Ln=[],Kn=eu(Lr);if(Lr===void 0)return Ln;if(Kn!=="object")return Ln.push(new Lt("source_raster_dem",Lr,`object expected, ${Kn} found`)),Ln;let Ci=ku(Lr.encoding)==="custom",Sa=["redFactor","greenFactor","blueFactor","baseShift"],ra=Re.value.encoding?`"${Re.value.encoding}"`:"Default";for(let ya in Lr)!Ci&&Sa.includes(ya)?Ln.push(new Lt(ya,Lr[ya],`In "${xr}": "${ya}" is only valid when "encoding" is set to "custom". ${ra} encoding found`)):ln[ya]?Ln=Ln.concat(Re.validateSpec({key:ya,value:Lr[ya],valueSpec:ln[ya],validateSpec:Re.validateSpec,style:bn,styleSpec:Zr})):Ln.push(new Lt(ya,Lr[ya],`unknown property "${ya}"`));return Ln}({sourceName:nt,value:D,style:G.style,styleSpec:bt,validateSpec:Kt}),we;case"geojson":if(we=Vc({key:nt,value:D,valueSpec:bt.source_geojson,style:Bt,styleSpec:bt,validateSpec:Kt,objectElementValidators:Ih}),D.cluster)for(let Re in D.clusterProperties){let[rr,xr]=D.clusterProperties[Re],Lr=typeof rr=="string"?[rr,["accumulated"],["get",Re]]:rr;we.push(...Zh({key:`${nt}.${Re}.map`,value:xr,expressionContext:"cluster-map"})),we.push(...Zh({key:`${nt}.${Re}.reduce`,value:Lr,expressionContext:"cluster-reduce"}))}return we;Line truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -3868,7 +3868,7 @@ void main() {
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ce("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ce("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ce("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Ce("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ce($t,z){let ht=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Et=z.match(/attribute ([\w]+) ([\w]+)/g),zt=$t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ht=z.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ke=Ht?Ht.concat(zt):zt,Fe={};return{fragmen Line truncated
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ce("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ce("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ce("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Ce("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ce($t,z){let ht=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Et=z.match(/attribute ([\w]+) ([\w]+)/g),Ot=$t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ht=z.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Te=Ht?Ht.concat(Ot):Ot,Fe={};return{fragmen Line truncated
#ifndef HAS_UNIFORM_u_${un}
varying ${Dr} ${Fr} ${un};
#else
@@ -3917,9 +3917,9 @@ uniform ${Dr} ${Fr} u_${un};
#else
${Dr} ${Fr} ${un} = u_${un};
#endif
`}),staticAttributes:Et,staticUniforms:ke}}class dr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(z,ht,Et,zt,Ht,ke,Fe,Ke,vr){this.context=z;let Dr=this.boundPaintVertexBuffers.length!==zt.length;for(let Fr=0;!Dr&&Fr<zt.length;Fr++)this.boundPaintVertexBuffers[Fr]!==zt[Fr]&&(Dr=!0);!this.vao||this.boundProgram!==ht||this.boundLayoutVertexBuffer!==Et||Dr||this.boundIndexBuffer!==Ht||this.boundVertexOffset!==ke||this.boundDynamicVertexBuffer!==Fe||this.boundDynamicVertexBuffer2!==Ke||this.boundDynamicVertexBuffer3!==vr?this.freshBind(ht,Et,zt,Ht,ke,Fe,Ke,vr):(z.bindVertexArray.set(this.vao),Fe&&Fe.bind(),Ht&&Ht.dynamicDraw&&Ht.bind(),Ke&&Ke.bind(),vr&&vr.bind())}freshBind(z,ht,Et,zt,Ht,ke,Fe,Ke){let vr=z.numAttributes,Dr=this.context,Fr=Dr.gl;this.vao&&this.destroy(),this.vao=Dr.createVertexArray(),Dr.bindVertexArray.set(this.vao),this.boundProgram=z,this.boundLayoutVertexBuffer=ht,this.boundPaintVertexBuffers=Et,this.boundIndexBuffer=zt,this.boundVertexOffset=Ht,this.boundDynamicVertexBuffer=ke,this.boundDynamicVertexBuffer2=Fe,this.boundDynamicVertexBuffer3=Ke,ht.enableAttributes(Fr,z);for(let un of Et)un.enableAttributes(Fr,z);ke&&ke.enableAttributes(Fr,z),Fe&&Fe.enableAttributes(Fr,z),Ke&&Ke.enableAttributes(Fr,z),ht.bind(),ht.setVertexAttribPointers(Fr,z,Ht);for(let un of Et)un.bind(),un.setVertexAttribPointers(Fr,z,Ht);ke&&(ke.bind(),ke.setVertexAttribPointers(Fr,z,Ht)),zt&&zt.bind(),Fe&&(Fe.bind(),Fe.setVertexAttribPointers(Fr,z,Ht)),Ke&&(Ke.bind(),Ke.setVertexAttribPointers(Fr,z,Ht)),Dr.currentNumAttributes=vr}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let Hr=($t,z,ht,Et,zt)=>({u_matrix:$t,u_texture:0,u_ele_delta:z,u_fog_matrix:ht,u_fog_color:Et?Et.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:Et?Et.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Et?Et.calculateFogBlendOpacity(zt):0,u_horizon_color:Et?Et.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:Et?Et.properties.get("horizon-fog-blend"):1});function _n($t){let z=[];for(let ht=0;ht<$t.length;ht++){if($t[ht]===null)continue;let Et=$t[ht].split(" ");z.push(Et.pop())}return z}class Fn{constructor(z,ht,Et,zt,Ht,ke){let Fe=z.gl;this.program=Fe.createProgram();let Ke=_n(ht.staticAttributes),vr=Et?Et.getBinderAttributes():[],Dr=Ke.concat(vr),Fr=on.prelude.staticUniforms?_n(on.prelude.staticUniforms):[],un=ht.staticUniforms?_n(ht.staticUniforms):[],Sn=Et?Et.getBinderUniforms():[],Xt=Fr.concat(un).concat(Sn),ae=[];for(let Or of Xt)ae.indexOf(Or)<0&&ae.push(Or);let xe=Et?Et.defines():[];Ht&&xe.push("#define OVERDRAW_INSPECTOR;"),ke&&xe.push("#define TERRAIN3D;");let Ae=xe.concat(on.prelude.fragmentSource,ht.fragmentSource).join(`
`),je=xe.concat(on.prelude.vertexSource,ht.vertexSource).join(`
`),Oe=Fe.createShader(Fe.FRAGMENT_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(Oe,Ae),Fe.compileShader(Oe),!Fe.getShaderParameter(Oe,Fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Fe.getShaderInfoLog(Oe)}`);Fe.attachShader(this.program,Oe);let $e=Fe.createShader(Fe.VERTEX_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource($e,je),Fe.compileShader($e),!Fe.getShaderParameter($e,Fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Fe.getShaderInfoLog($e)}`);Fe.attachShader(this.program,$e),this.attributes={};let wr={};this.numAttributes=Dr.length;for(let Or=0;Or<this.numAttributes;Or++)Dr[Or]&&(Fe.bindAttribLocation(this.program,Or,Dr[Or]),this.attributes[Dr[Or]]=Or);if(Fe.linkProgram(this.program),!Fe.getProgramParameter(this.program,Fe.LINK_STATUS))throw new Error(`Program failed to link: ${Fe.getProgramInfoLog(this.program)}`);Fe.deleteShader($e),Fe.deleteShader(Oe);for(let Or=0;Or<ae.length;Or++){let Nr=ae[Or];if(Nr&&!wr[Nr]){let en=Fe.getUniformLocation(this.program,Nr);en&&(wr[Nr]=en)}}this.fixedUniforms=zt(z,wr),this.terrainUniforms=((Or,Nr)=>({u_depth:new e.aH(Or,Nr.u_depth),u_terrain:new e.aH(Or,Nr.u_terrain),u_terrain_dim:new e.aI(Or,Nr.u_terrain_dim),u_terrain_matrix:new e.aJ(Or,Nr.u_terrain_matrix),u_terrain_unpack:new e.aK(Or,Nr.u_terrain_unpack),u_terrain_exaggeration:new e.aI(Or,Nr.u_terrain_exaggeration)}))(z,wr),this.binderUniforms=Et?Et.getUniforms(z,wr):[]}draw(z,ht,Et,zt,Ht,ke,Fe,Ke,vr,Dr,Fr,un,Sn,Xt,ae,xe,Ae,je){let Oe=z.gl;if(this.failedToCreate)return;if(z.program.set(this.program),z.setDepthMode(Et),z.setStencilMode(zt),z.setColorMode(Ht),z.setCullFace(ke),Ke){z.activeTexture.set(Oe.TEXTURE2),Oe.bindTexture(Oe.TEXTURE_2D,Ke.depthTexture),z.activeTexture.set(Oe.TEXTURE3),Oe.bindTexture(Oe.TEXTURE_2D,Ke.texture);for(let wr in this.terrainUniforms)this.terrainUniforms[wr].set(Ke[wr])}for(let wr in this.fixedUniforms)this.fixedUniforms[wr].set(Fe[wr]);ae&&ae.setUniforms(z,this.binderUniforms,Sn,{zoom:Xt});let $e=0;switch(ht){case Oe.LINES:$e=2;break;case Oe.TRIANGLES:$e=3;break;case Oe.LINE_STRIP:$e=1}for(let wr of un.get()){let Or=wr.vaos||(wr.vaos={});(Or[vr]||(Or[vr]=new dr)).bind(z,this,Dr,ae?ae.getPaintVertexBuffers():[],Fr,wr.vertexOffset,xe,Ae,je),Oe.drawElements(ht,wr.primitiveLength*$e,Oe.UNSIGNED_SHORT,wr.primitiveOffset*$e*2)}}}function Qn($t,z,ht){let Et=1/Wn(ht,1,z.transform.tileZoom),zt=Math.pow(2,ht.tileID.overscaledZ),Ht=ht.tileSize*Math.pow(2,z.transform.tileZoom)/zt,ke=Ht*(ht.tileID.canonical.x+ht.tileID.wrap*zt),Fe=Ht*ht.tileID.canonical.y;return{u_image:0,u_texsize:ht.imageAtlasTexture.size,u_scale:[Et,$t.fromScale,$t.toScale],u_fade:$t.t,u_pixel_coord_upper:[ke>>16,Fe>>16],u_pixel_coord_lower:[65535&ke,65535&Fe]}}let Pn=($t,z,ht,Et)=>{let zt=z.style.light,Ht=zt.properties.get("position"),ke=[Ht.x,Ht.y,Ht.z],Fe=function(){var vr=new e.A(9);return e.A!=Float32Array&&(vr[1]=0,vr[2]=0,vr[3]=0,vr[5]=0,vr[6]=0,vr[7]=0),vr[0]=1,vr[4]=1,vr[8]=1,vr}();zt.properties.get("anchor")==="viewport"&&function(vr,Dr){var Fr=Math.sin(Dr),un=Math.cos(Dr);vr[0]=un,vr[1]=Fr,vr[2]=0,vr[3]=-Fr,vr[4]=un,vr[5]=0,vr[6]=0,vr[7]=0,vr[8]=1}(Fe,-z.transform.angle),function(vr,Dr,Fr){var un=Dr[0],Sn=Dr[1],Xt=Dr[2];vr[0]=un*Fr[0]+Sn*Fr[3]+Xt*Fr[6],vr[1]=un*Fr[1]+Sn*Fr[4]+Xt*Fr[7],vr[2]=un*Fr[2]+Sn*Fr[5]+Xt*Fr[8]}(ke,ke,Fe);let Ke=zt.properties.get("color");return{u_matrix:$t,u_lightpos:ke,u_lightintensity:zt.properties.get("intensity"),u_lightcolor:[Ke.r,Ke.g,Ke.b],u_vertical_gradient:+ht,u_opacity:Et}},En=($t,z,ht,Et,zt,Ht,ke)=>e.e(Pn($t,z,ht,Et),Qn(Ht,z,ke),{u_height_factor:-Math.pow(2,zt.overscaledZ)/ke.tileSize/8}),Zn=$t=>({u_matrix:$t}),La=($t,z,ht,Et)=>e.e(Zn($t),Qn(ht,z,Et)),Vi=($t,z)=>({u_matrix:$t,u_world:z}),Qa=($t,z,ht,Et,zt)=>e.e(La($t,z,ht,Et),{u_world:zt}),Ja=($t,z,ht,Et)=>{let zt=$t.transform,Ht,ke;if(Et.paint.get("circle-pitch-alignment")==="map"){let Fe=Wn(ht,1,zt.zoom);Ht=!0,ke=[Fe,Fe]}else Ht=!1,ke=zt.pixelsToGLUnits;return{u_camera_to_center_distance:zt.cameraToCenterDistance,u_scale_with_map:+(Et.paint.get("circle-pitch-scale")==="map"),u_matrix:$t.translatePosMatrix(z.posMatrix,ht,Et.paint.get("circle-translate"),Et.paint.get("circle-translate-anchor")),u_pitch_with_map:+Ht,u_device_pixel_ratio:$t.pixelRatio,u_extrude_scale:ke}},Do=($t,z,ht)=>({u_matrix:$t,u_inv_matrix:z,u_camera_to_center_distance:ht.cameraToCenterDistance,u_viewport_size:[ht.width,ht.height]}),yo=($t,z,ht=1)=>({u_matrix:$t,u_color:z,u_overlay:0,u_overlay_scale:ht}),Fo=$t=>({u_matrix:$t}),Da=($t,z,ht,Et)=>({u_matrix:$t,u_extrude_scale:Wn(z,1,ht),u_intensity:Et}),ys=($t,z,ht,Et)=>{let zt=e.H();e.aP(zt,0,$t.width,$t.height,0,0,1);let Ht=$t.context.gl;return{u_matrix:zt,u_world:[Ht.drawingBufferWidth,Ht.drawingBufferHeight],u_image:ht,u_color_ramp:Et,u_opacity:z.paint.get("heatmap-opacity")}};function os($t,z){let ht=Math.pow(2,z.canonical.z),Et=z.canonical.y;return[new e.Z(0,Et/ht).toLngLat().lat,ne Line truncated
`}),staticAttributes:Et,staticUniforms:Te}}class pr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(z,ht,Et,Ot,Ht,Te,Fe,Ke,vr){this.context=z;let Dr=this.boundPaintVertexBuffers.length!==Ot.length;for(let Fr=0;!Dr&&Fr<Ot.length;Fr++)this.boundPaintVertexBuffers[Fr]!==Ot[Fr]&&(Dr=!0);!this.vao||this.boundProgram!==ht||this.boundLayoutVertexBuffer!==Et||Dr||this.boundIndexBuffer!==Ht||this.boundVertexOffset!==Te||this.boundDynamicVertexBuffer!==Fe||this.boundDynamicVertexBuffer2!==Ke||this.boundDynamicVertexBuffer3!==vr?this.freshBind(ht,Et,Ot,Ht,Te,Fe,Ke,vr):(z.bindVertexArray.set(this.vao),Fe&&Fe.bind(),Ht&&Ht.dynamicDraw&&Ht.bind(),Ke&&Ke.bind(),vr&&vr.bind())}freshBind(z,ht,Et,Ot,Ht,Te,Fe,Ke){let vr=z.numAttributes,Dr=this.context,Fr=Dr.gl;this.vao&&this.destroy(),this.vao=Dr.createVertexArray(),Dr.bindVertexArray.set(this.vao),this.boundProgram=z,this.boundLayoutVertexBuffer=ht,this.boundPaintVertexBuffers=Et,this.boundIndexBuffer=Ot,this.boundVertexOffset=Ht,this.boundDynamicVertexBuffer=Te,this.boundDynamicVertexBuffer2=Fe,this.boundDynamicVertexBuffer3=Ke,ht.enableAttributes(Fr,z);for(let un of Et)un.enableAttributes(Fr,z);Te&&Te.enableAttributes(Fr,z),Fe&&Fe.enableAttributes(Fr,z),Ke&&Ke.enableAttributes(Fr,z),ht.bind(),ht.setVertexAttribPointers(Fr,z,Ht);for(let un of Et)un.bind(),un.setVertexAttribPointers(Fr,z,Ht);Te&&(Te.bind(),Te.setVertexAttribPointers(Fr,z,Ht)),Ot&&Ot.bind(),Fe&&(Fe.bind(),Fe.setVertexAttribPointers(Fr,z,Ht)),Ke&&(Ke.bind(),Ke.setVertexAttribPointers(Fr,z,Ht)),Dr.currentNumAttributes=vr}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let Hr=($t,z,ht,Et,Ot)=>({u_matrix:$t,u_texture:0,u_ele_delta:z,u_fog_matrix:ht,u_fog_color:Et?Et.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:Et?Et.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Et?Et.calculateFogBlendOpacity(Ot):0,u_horizon_color:Et?Et.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:Et?Et.properties.get("horizon-fog-blend"):1});function _n($t){let z=[];for(let ht=0;ht<$t.length;ht++){if($t[ht]===null)continue;let Et=$t[ht].split(" ");z.push(Et.pop())}return z}class Bn{constructor(z,ht,Et,Ot,Ht,Te){let Fe=z.gl;this.program=Fe.createProgram();let Ke=_n(ht.staticAttributes),vr=Et?Et.getBinderAttributes():[],Dr=Ke.concat(vr),Fr=on.prelude.staticUniforms?_n(on.prelude.staticUniforms):[],un=ht.staticUniforms?_n(ht.staticUniforms):[],Sn=Et?Et.getBinderUniforms():[],Xt=Fr.concat(un).concat(Sn),ae=[];for(let Or of Xt)ae.indexOf(Or)<0&&ae.push(Or);let _e=Et?Et.defines():[];Ht&&_e.push("#define OVERDRAW_INSPECTOR;"),Te&&_e.push("#define TERRAIN3D;");let Me=_e.concat(on.prelude.fragmentSource,ht.fragmentSource).join(`
`),je=_e.concat(on.prelude.vertexSource,ht.vertexSource).join(`
`),De=Fe.createShader(Fe.FRAGMENT_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(De,Me),Fe.compileShader(De),!Fe.getShaderParameter(De,Fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Fe.getShaderInfoLog(De)}`);Fe.attachShader(this.program,De);let $e=Fe.createShader(Fe.VERTEX_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource($e,je),Fe.compileShader($e),!Fe.getShaderParameter($e,Fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Fe.getShaderInfoLog($e)}`);Fe.attachShader(this.program,$e),this.attributes={};let wr={};this.numAttributes=Dr.length;for(let Or=0;Or<this.numAttributes;Or++)Dr[Or]&&(Fe.bindAttribLocation(this.program,Or,Dr[Or]),this.attributes[Dr[Or]]=Or);if(Fe.linkProgram(this.program),!Fe.getProgramParameter(this.program,Fe.LINK_STATUS))throw new Error(`Program failed to link: ${Fe.getProgramInfoLog(this.program)}`);Fe.deleteShader($e),Fe.deleteShader(De);for(let Or=0;Or<ae.length;Or++){let Nr=ae[Or];if(Nr&&!wr[Nr]){let en=Fe.getUniformLocation(this.program,Nr);en&&(wr[Nr]=en)}}this.fixedUniforms=Ot(z,wr),this.terrainUniforms=((Or,Nr)=>({u_depth:new e.aH(Or,Nr.u_depth),u_terrain:new e.aH(Or,Nr.u_terrain),u_terrain_dim:new e.aI(Or,Nr.u_terrain_dim),u_terrain_matrix:new e.aJ(Or,Nr.u_terrain_matrix),u_terrain_unpack:new e.aK(Or,Nr.u_terrain_unpack),u_terrain_exaggeration:new e.aI(Or,Nr.u_terrain_exaggeration)}))(z,wr),this.binderUniforms=Et?Et.getUniforms(z,wr):[]}draw(z,ht,Et,Ot,Ht,Te,Fe,Ke,vr,Dr,Fr,un,Sn,Xt,ae,_e,Me,je){let De=z.gl;if(this.failedToCreate)return;if(z.program.set(this.program),z.setDepthMode(Et),z.setStencilMode(Ot),z.setColorMode(Ht),z.setCullFace(Te),Ke){z.activeTexture.set(De.TEXTURE2),De.bindTexture(De.TEXTURE_2D,Ke.depthTexture),z.activeTexture.set(De.TEXTURE3),De.bindTexture(De.TEXTURE_2D,Ke.texture);for(let wr in this.terrainUniforms)this.terrainUniforms[wr].set(Ke[wr])}for(let wr in this.fixedUniforms)this.fixedUniforms[wr].set(Fe[wr]);ae&&ae.setUniforms(z,this.binderUniforms,Sn,{zoom:Xt});let $e=0;switch(ht){case De.LINES:$e=2;break;case De.TRIANGLES:$e=3;break;case De.LINE_STRIP:$e=1}for(let wr of un.get()){let Or=wr.vaos||(wr.vaos={});(Or[vr]||(Or[vr]=new pr)).bind(z,this,Dr,ae?ae.getPaintVertexBuffers():[],Fr,wr.vertexOffset,_e,Me,je),De.drawElements(ht,wr.primitiveLength*$e,De.UNSIGNED_SHORT,wr.primitiveOffset*$e*2)}}}function ri($t,z,ht){let Et=1/qn(ht,1,z.transform.tileZoom),Ot=Math.pow(2,ht.tileID.overscaledZ),Ht=ht.tileSize*Math.pow(2,z.transform.tileZoom)/Ot,Te=Ht*(ht.tileID.canonical.x+ht.tileID.wrap*Ot),Fe=Ht*ht.tileID.canonical.y;return{u_image:0,u_texsize:ht.imageAtlasTexture.size,u_scale:[Et,$t.fromScale,$t.toScale],u_fade:$t.t,u_pixel_coord_upper:[Te>>16,Fe>>16],u_pixel_coord_lower:[65535&Te,65535&Fe]}}let Pn=($t,z,ht,Et)=>{let Ot=z.style.light,Ht=Ot.properties.get("position"),Te=[Ht.x,Ht.y,Ht.z],Fe=function(){var vr=new e.A(9);return e.A!=Float32Array&&(vr[1]=0,vr[2]=0,vr[3]=0,vr[5]=0,vr[6]=0,vr[7]=0),vr[0]=1,vr[4]=1,vr[8]=1,vr}();Ot.properties.get("anchor")==="viewport"&&function(vr,Dr){var Fr=Math.sin(Dr),un=Math.cos(Dr);vr[0]=un,vr[1]=Fr,vr[2]=0,vr[3]=-Fr,vr[4]=un,vr[5]=0,vr[6]=0,vr[7]=0,vr[8]=1}(Fe,-z.transform.angle),function(vr,Dr,Fr){var un=Dr[0],Sn=Dr[1],Xt=Dr[2];vr[0]=un*Fr[0]+Sn*Fr[3]+Xt*Fr[6],vr[1]=un*Fr[1]+Sn*Fr[4]+Xt*Fr[7],vr[2]=un*Fr[2]+Sn*Fr[5]+Xt*Fr[8]}(Te,Te,Fe);let Ke=Ot.properties.get("color");return{u_matrix:$t,u_lightpos:Te,u_lightintensity:Ot.properties.get("intensity"),u_lightcolor:[Ke.r,Ke.g,Ke.b],u_vertical_gradient:+ht,u_opacity:Et}},En=($t,z,ht,Et,Ot,Ht,Te)=>e.e(Pn($t,z,ht,Et),ri(Ht,z,Te),{u_height_factor:-Math.pow(2,Ot.overscaledZ)/Te.tileSize/8}),Yn=$t=>({u_matrix:$t}),La=($t,z,ht,Et)=>e.e(Yn($t),ri(ht,z,Et)),qi=($t,z)=>({u_matrix:$t,u_world:z}),Qa=($t,z,ht,Et,Ot)=>e.e(La($t,z,ht,Et),{u_world:Ot}),Ja=($t,z,ht,Et)=>{let Ot=$t.transform,Ht,Te;if(Et.paint.get("circle-pitch-alignment")==="map"){let Fe=qn(ht,1,Ot.zoom);Ht=!0,Te=[Fe,Fe]}else Ht=!1,Te=Ot.pixelsToGLUnits;return{u_camera_to_center_distance:Ot.cameraToCenterDistance,u_scale_with_map:+(Et.paint.get("circle-pitch-scale")==="map"),u_matrix:$t.translatePosMatrix(z.posMatrix,ht,Et.paint.get("circle-translate"),Et.paint.get("circle-translate-anchor")),u_pitch_with_map:+Ht,u_device_pixel_ratio:$t.pixelRatio,u_extrude_scale:Te}},Do=($t,z,ht)=>({u_matrix:$t,u_inv_matrix:z,u_camera_to_center_distance:ht.cameraToCenterDistance,u_viewport_size:[ht.width,ht.height]}),yo=($t,z,ht=1)=>({u_matrix:$t,u_color:z,u_overlay:0,u_overlay_scale:ht}),Bo=$t=>({u_matrix:$t}),Da=($t,z,ht,Et)=>({u_matrix:$t,u_extrude_scale:qn(z,1,ht),u_intensity:Et}),ys=($t,z,ht,Et)=>{let Ot=e.H();e.aP(Ot,0,$t.width,$t.height,0,0,1);let Ht=$t.context.gl;return{u_matrix:Ot,u_world:[Ht.drawingBufferWidth,Ht.drawingBufferHeight],u_image:ht,u_color_ramp:Et,u_opacity:z.paint.get("heatmap-opacity")}};function os($t,z){let ht=Math.pow(2,z.canonical.z),Et=z.canonical.y;return[new e.Z(0,Et/ht).toLngLat().lat,ne Line truncated
* pad-left <https://github.com/jonschlinkert/pad-left>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
@@ -3988,4 +3988,4 @@ maplibre-gl/dist/maplibre-gl.js:
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt
*)
*/return window.Plotly=E,E})}(a4)),a4.exports}var Wpt=Hpt();const c1=KO(Wpt),qpt={class:"p-6 space-y-6"},$pt={class:"flex justify-between items-center"},Zpt={class:"flex items-center gap-3"},Gpt=["value"],Ypt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},Kpt={class:"glass-card rounded-[15px] p-6"},Xpt={class:"mb-6"},Jpt={class:"relative h-48 bg-white/5 rounded-lg p-4"},Qpt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},t0t={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},e0t={class:"mb-6"},r0t={class:"relative h-48 bg-white/5 rounded-lg p-4"},n0t={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},i0t={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},a0t={class:"glass-card rounded-[15px] p-6"},o0t={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},s0t={class:"lg:col-span-2"},l0t={class:"relative h-64 bg-white/5 rounded-lg p-4"},u0t={class:"flex flex-col items-center justify-center"},c0t={class:"relative w-48 h-48"},h0t={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm rounded-full z-20"},f0t={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 rounded-full z-20"},d0t={key:0,class:"glass-card rounded-[15px] p-8 text-center"},p0t={key:1,class:"glass-card rounded-[15px] p-8 text-center"},m0t={class:"text-white/60 text-sm"},g0t=Dc({name:"StatisticsView",__name:"Statistics",setup(d){x2.register(Xht,tft,aht,Q4,Out,Put,zut,Nht,Zht,Rht,Yct,hht,Pht,OA);const s=sw(),E=Ga(null),B=Ga(!1),K=Ga(24),pt=[{value:1,label:"1 Hour"},{value:6,label:"6 Hours"},{value:12,label:"12 Hours"},{value:24,label:"24 Hours"},{value:48,label:"2 Days"},{value:168,label:"1 Week"}],_t=Ga(null),Ot=Ga(null),jt=Ga([]),te=Ga(null),he=Ga([]),De=Ga(!0),er=Ga(null),pr=Ga({packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0}),Mr=Ga(!1),Tr=Ga(!1),Vr=Ga(!1),mn=Ga(null),Dt=Ga(null),cn=Ga(null),Jn=Ga(null),Bn=Ga(null),ni=Ga(null),Wi=Ga(null),Un=$o(()=>{const ko=s.packetStats;return ko?{totalRx:ko.total_packets||0,totalTx:ko.transmitted_packets||0}:{totalRx:0,totalTx:0}}),qr=$o(()=>{let ko=[],ro=[];if(_t.value?.series){const Ia=_t.value.series.find(no=>no.type==="rx_count"),da=_t.value.series.find(no=>no.type==="tx_count");Ia?.data&&(ko=Ia.data.map(([,no])=>no)),da?.data&&(ro=da.data.map(([,no])=>no))}return{totalPackets:ko,transmittedPackets:ro,droppedPackets:[]}}),Di=async()=>{try{De.value=!0,er.value=null,await Promise.all([s.fetchPacketStats({hours:K.value}),s.fetchSystemStats()]),De.value=!1,Fi()}catch(ko){er.value=ko instanceof Error?ko.message:"Failed to fetch data",De.value=!1}},Fi=async()=>{pr.value={packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0};const ko=[Pi(),bi(),Yi(),Ca()];try{await Promise.allSettled(ko),await om(),!Jn.value||!Bn.value?setTimeout(()=>{Ma()},100):Ma()}catch(ro){console.error("Error loading chart data:",ro)}},Pi=async()=>{pr.value.packetRate=!0;try{const ko=await Ah.get("/metrics_graph_data",{hours:K.value,resolution:"average",metrics:"rx_count,tx_count"});ko?.success&&(_t.value=ko.data)}catch{_t.value=null}},bi=async()=>{pr.value.packetType=!0;try{const ko=await Ah.get("/packet_type_graph_data",{hours:K.value,resolution:"average",types:"all"});if(ko?.success&&ko.data){const ro=ko.data;jt.value=ro.series||[]}}catch{jt.value=[]}},Yi=async()=>{pr.value.routePie=!0;try{const ko=await Ah.get("/route_stats",{hours:K.value});ko?.success&&ko.data&&(te.value=ko.data)}catch{te.value=null}},Ca=async()=>{try{const ko=await Ah.get("/noise_floor_history",{hours:K.value});if(ko.success&&ko.data){const Ia=ko.data.history||[];Array.isArray(Ia)&&Ia.length>0&&(Ot.value={chart_data:Ia.map(da=>({timestamp:da.timestamp||Date.now()/1e3,noise_floor_dbm:da.noise_floor_dbm||da.noise_floor||-120}))},si())}}catch{Ot.value={chart_data:[]}}},Ni=()=>{zo(),Mr.value=!1,Tr.value=!1,Vr.value=!1,Di()},si=()=>{if(he.value=[],Ot.value?.chart_data&&Ot.value.chart_data.length>0){const ko=Ot.value.chart_data,ro=Math.max(1,Math.floor(ko.length/100));he.value=ko.filter((Ia,da)=>da%ro===0).map(Ia=>({timestamp:Ia.timestamp*1e3,snr:null,rssi:null,noiseFloor:Ia.noise_floor_dbm}))}},Ma=()=>{if(!B.value){B.value=!0;try{ho(),mo(),Ts(),xl(),setTimeout(()=>{pr.value.packetRate&&mn.value&&(pr.value.packetRate=!1),pr.value.packetType&&Dt.value&&(pr.value.packetType=!1),pr.value.routePie&&Wi.value&&(pr.value.routePie=!1),pr.value.routePie&&Wi.value&&(pr.value.routePie=!1),setTimeout(()=>{const ko=Uu(mn.value),ro=Uu(Dt.value),Ia=Uu(cn.value);ko&&ko.update("none"),ro&&ro.update("none"),Ia&&Ia.update("none")},50)},100)}catch(ko){console.error("Error creating/updating charts:",ko),zo()}finally{B.value=!1}}},zo=()=>{try{mn.value&&(mn.value.destroy(),mn.value=null),Dt.value&&(Dt.value.destroy(),Dt.value=null),cn.value&&(cn.value.destroy(),cn.value=null),Wi.value&&c1.purge(Wi.value)}catch(ko){console.error("Error destroying charts:",ko)}},ho=()=>{if(!JnLine truncated
*/return window.Plotly=E,E})}(o4)),o4.exports}var CF=Jpt();const nv=tD(CF),nA=MG({__proto__:null,default:nv},[CF]),Qpt={class:"p-6 space-y-6"},t0t={class:"flex justify-between items-center"},e0t={class:"flex items-center gap-3"},r0t=["value"],n0t={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},i0t={class:"glass-card rounded-[15px] p-6"},a0t={class:"mb-6"},o0t={class:"relative h-48 bg-white/5 rounded-lg p-4"},s0t={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},l0t={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},u0t={class:"mb-6"},c0t={class:"relative h-48 bg-white/5 rounded-lg p-4"},h0t={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},f0t={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},d0t={class:"glass-card rounded-[15px] p-6"},p0t={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},m0t={class:"lg:col-span-2"},g0t={class:"relative h-64 bg-white/5 rounded-lg p-4"},v0t={class:"flex flex-col items-center justify-center"},y0t={class:"relative w-48 h-48"},x0t={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm rounded-full z-20"},_0t={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 rounded-full z-20"},b0t={key:0,class:"glass-card rounded-[15px] p-8 text-center"},w0t={key:1,class:"glass-card rounded-[15px] p-8 text-center"},k0t={class:"text-white/60 text-sm"},T0t=Ec({name:"StatisticsView",__name:"Statistics",setup(d){p1.register(oF,sF,GD,uw,OD,ID,zD,nF,aF,eF,qD,KD,QD,M4);const s=sw(),E=Ha(null),R=Ha(!1),Y=Ha(24),dt=[{value:1,label:"1 Hour"},{value:6,label:"6 Hours"},{value:12,label:"12 Hours"},{value:24,label:"24 Hours"},{value:48,label:"2 Days"},{value:168,label:"1 Week"}],_t=Ha(null),zt=Ha(null),jt=Ha([]),te=Ha(null),ce=Ha([]),Ie=Ha(!0),Je=Ha(null),fr=Ha({packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0}),Ar=Ha(!1),kr=Ha(!1),Vr=Ha(!1),fn=Ha(null),Dt=Ha(null),cn=Ha(null),ti=Ha(null),Dn=Ha(null),ii=Ha(null),Vi=Ha(null),Nn=Wo(()=>{const ko=s.packetStats;return ko?{totalRx:ko.total_packets||0,totalTx:ko.transmitted_packets||0}:{totalRx:0,totalTx:0}}),Wr=Wo(()=>{let ko=[],ro=[];if(_t.value?.series){const Ia=_t.value.series.find(io=>io.type==="rx_count"),ma=_t.value.series.find(io=>io.type==="tx_count");Ia?.data&&(ko=Ia.data.map(([,io])=>io)),ma?.data&&(ro=ma.data.map(([,io])=>io))}return{totalPackets:ko,transmittedPackets:ro,droppedPackets:[]}}),Bi=async()=>{try{Ie.value=!0,Je.value=null,await Promise.all([s.fetchPacketStats({hours:Y.value}),s.fetchSystemStats()]),Ie.value=!1,Ri()}catch(ko){Je.value=ko instanceof Error?ko.message:"Failed to fetch data",Ie.value=!1}},Ri=async()=>{fr.value={packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0};const ko=[Li(),$n(),Hn(),sa()];try{await Promise.allSettled(ko),await S0(),!ti.value||!Dn.value?setTimeout(()=>{la()},100):la()}catch(ro){console.error("Error loading chart data:",ro)}},Li=async()=>{fr.value.packetRate=!0;try{const ko=await ah.get("/metrics_graph_data",{hours:Y.value,resolution:"average",metrics:"rx_count,tx_count"});ko?.success&&(_t.value=ko.data)}catch{_t.value=null}},$n=async()=>{fr.value.packetType=!0;try{const ko=await ah.get("/packet_type_graph_data",{hours:Y.value,resolution:"average",types:"all"});if(ko?.success&&ko.data){const ro=ko.data;jt.value=ro.series||[]}}catch{jt.value=[]}},Hn=async()=>{fr.value.routePie=!0;try{const ko=await ah.get("/route_stats",{hours:Y.value});ko?.success&&ko.data&&(te.value=ko.data)}catch{te.value=null}},sa=async()=>{try{const ko=await ah.get("/noise_floor_history",{hours:Y.value});if(ko.success&&ko.data){const Ia=ko.data.history||[];Array.isArray(Ia)&&Ia.length>0&&(zt.value={chart_data:Ia.map(ma=>({timestamp:ma.timestamp||Date.now()/1e3,noise_floor_dbm:ma.noise_floor_dbm||ma.noise_floor||-120}))},Qn())}}catch{zt.value={chart_data:[]}}},Ti=()=>{Eo(),Ar.value=!1,kr.value=!1,Vr.value=!1,Bi()},Qn=()=>{if(ce.value=[],zt.value?.chart_data&&zt.value.chart_data.length>0){const ko=zt.value.chart_data,ro=Math.max(1,Math.floor(ko.length/100));ce.value=ko.filter((Ia,ma)=>ma%ro===0).map(Ia=>({timestamp:Ia.timestamp*1e3,snr:null,rssi:null,noiseFloor:Ia.noise_floor_dbm}))}},la=()=>{if(!R.value){R.value=!0;try{no(),mo(),Ts(),xl(),setTimeout(()=>{fr.value.packetRate&&fn.value&&(fr.value.packetRate=!1),fr.value.packetType&&Dt.value&&(fr.value.packetType=!1),fr.value.routePie&&Vi.value&&(fr.value.routePie=!1),fr.value.routePie&&Vi.value&&(fr.value.routePie=!1),setTimeout(()=>{const ko=Eu(fn.value),ro=Eu(Dt.value),Ia=Eu(cn.value);ko&&ko.update("none"),ro&&ro.update("none"),Ia&&Ia.update("none")},50)},100)}catch(ko){console.error("Error creating/updating charts:",ko),Eo()}finally{R.value=!1}}},Eo=()=>{try{fn.value&&(fn.value.destroy(),fn.value=null),Dt.value&&(Dt.value.destroy(),Dt.value=null),cn.value&&(cn.value.destroy(),cn.value=null),Vi.value&&nv.purge(Vi.value)}catch(ko){console.error("Error destroying chaLine truncated
@@ -0,0 +1 @@
@tailwind base;@tailwind components;@tailwind utilities;:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,: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: }*,: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:Noto Sans,-apple-system,Roboto,Helvetica,sans-serif;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: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:-.Line truncated
@@ -1 +0,0 @@
@tailwind base;@tailwind components;@tailwind utilities;:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,: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: }*,: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:Noto Sans,-apple-system,Roboto,Helvetica,sans-serif;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: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:-.Line truncated
+2 -2
View File
@@ -8,8 +8,8 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-r2jdFy7f.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Dmg9lJJT.css">
<script type="module" crossorigin src="/assets/index-7Gn2-Mfw.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DB3Eq_QU.css">
</head>
<body>
<div id="app"></div>