@signalk/freeboard-sk 2.23.0 → 2.24.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ import{$ as Ki,Aa as gn,B as pt,Ba as Cn,C as Mi,Ca as vn,D as Ri,E as Di,F as Li,Fa as bn,Ga as wn,H as Vi,Ha as xn,I as Pi,Ia as En,Ja as Tn,K as Oi,Ka as yn,L as Fi,La as Sn,M as Ni,N as $i,O as Bi,S as qi,T as Gi,U as Ui,V as zi,W as ji,X as Wi,Y as Hi,Z as Xi,_ as Zi,a as pi,aa as Qi,b as hi,ba as Yi,ca as Ji,d as gi,da as en,ea as tn,f as Ci,h as vi,i as bi,ia as nn,j as wi,ja as on,k as xi,ka as rn,l as Ei,m as yi,n as Si,o as Ai,oa as an,pa as sn,qa as ln,ra as cn,sa as pn,ta as dn,ua as un,va as mn,w as ki,wa as _n,x as ct,y as Ii,ya as fn,za as hn}from"./chunk-PVMR7EP7.js";import"./chunk-TQPGRJVE.js";import{d as Ti}from"./chunk-QI5ICQLG.js";import{$ as Nt,Aa as f,Ac as ni,Ba as h,C as Je,Da as Gt,E as q,Ea as ot,Eb as Ut,Ed as di,Fa as rt,Ga as x,Ha as a,Hc as oi,I as Ee,Ia as s,Ic as ri,Id as ui,J as et,Ja as b,Jc as Le,Jd as mi,L as E,Ld as _i,M as p,Mc as ai,Md as fi,N as d,Nb as zt,Nc as de,Oc as si,Pb as Ie,Q as tt,Qa as T,R as Te,Rb as Me,Rc as lt,Sa as _,T as ye,Tb as jt,U as se,Ua as l,V as N,Va as ee,W as le,Wa as U,Xa as at,Y as Se,Ya as _e,Yb as Wt,Za as Z,Zb as Ht,_ as ce,_a as K,ac as Xt,bc as Zt,bd as li,c as Y,ca as $t,cb as fe,cc as Kt,da as Bt,db as te,eb as H,fa as u,ga as it,hb as m,ib as J,ic as Re,j as Qe,ja as Ae,jb as ie,kc as st,mc as Qt,md as ne,na as G,o as Vt,oa as ke,oc as Yt,pa as qt,pc as Jt,qd as Ve,r as Pt,ra as me,s as ae,sb as pe,ta as z,td as ci,uc as De,vb as Q,vc as ei,w as Ot,wa as j,x as Ft,xa as W,y as Ye,yc as ti,za as nt,zc as ii}from"./chunk-QPQHN5VS.js";import{c as A,e as yr,f as F}from"./chunk-EQVTEUXC.js";var he=A((id,Ln)=>{"use strict";var qr="2.0.0",Gr=Number.MAX_SAFE_INTEGER||9007199254740991,Ur=16,zr=250,jr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ln.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Ur,MAX_SAFE_BUILD_LENGTH:zr,MAX_SAFE_INTEGER:Gr,RELEASE_TYPES:jr,SEMVER_SPEC_VERSION:qr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ge=A((nd,Vn)=>{"use strict";var Wr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};Vn.exports=Wr});var ue=A((X,Pn)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ft,MAX_SAFE_BUILD_LENGTH:Hr,MAX_LENGTH:Xr}=he(),Zr=ge();X=Pn.exports={};var Kr=X.re=[],Qr=X.safeRe=[],g=X.src=[],Yr=X.safeSrc=[],C=X.t={},Jr=0,ht="[a-zA-Z0-9-]",ea=[["\\s",1],["\\d",Xr],[ht,Hr]],ta=n=>{for(let[t,e]of ea)n=n.split(`${t}*`).join(`${t}{0,${e}}`).split(`${t}+`).join(`${t}{1,${e}}`);return n},k=(n,t,e)=>{let i=ta(t),o=Jr++;Zr(n,o,t),C[n]=o,g[o]=t,Yr[o]=i,Kr[o]=new RegExp(t,e?"g":void 0),Qr[o]=new RegExp(i,e?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","\\d+");k("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ht}*`);k("MAINVERSION",`(${g[C.NUMERICIDENTIFIER]})\\.(${g[C.NUMERICIDENTIFIER]})\\.(${g[C.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${g[C.NUMERICIDENTIFIERLOOSE]})\\.(${g[C.NUMERICIDENTIFIERLOOSE]})\\.(${g[C.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${g[C.NONNUMERICIDENTIFIER]}|${g[C.NUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${g[C.NONNUMERICIDENTIFIER]}|${g[C.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASE",`(?:-(${g[C.PRERELEASEIDENTIFIER]}(?:\\.${g[C.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${g[C.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${g[C.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER",`${ht}+`);k("BUILD",`(?:\\+(${g[C.BUILDIDENTIFIER]}(?:\\.${g[C.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${g[C.MAINVERSION]}${g[C.PRERELEASE]}?${g[C.BUILD]}?`);k("FULL",`^${g[C.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${g[C.MAINVERSIONLOOSE]}${g[C.PRERELEASELOOSE]}?${g[C.BUILD]}?`);k("LOOSE",`^${g[C.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${g[C.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${g[C.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${g[C.XRANGEIDENTIFIER]})(?:\\.(${g[C.XRANGEIDENTIFIER]})(?:\\.(${g[C.XRANGEIDENTIFIER]})(?:${g[C.PRERELEASE]})?${g[C.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${g[C.XRANGEIDENTIFIERLOOSE]})(?:\\.(${g[C.XRANGEIDENTIFIERLOOSE]})(?:\\.(${g[C.XRANGEIDENTIFIERLOOSE]})(?:${g[C.PRERELEASELOOSE]})?${g[C.BUILD]}?)?)?`);k("XRANGE",`^${g[C.GTLT]}\\s*${g[C.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${g[C.GTLT]}\\s*${g[C.XRANGEPLAINLOOSE]}$`);k("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ft}})(?:\\.(\\d{1,${ft}}))?(?:\\.(\\d{1,${ft}}))?`);k("COERCE",`${g[C.COERCEPLAIN]}(?:$|[^\\d])`);k("COERCEFULL",g[C.COERCEPLAIN]+`(?:${g[C.PRERELEASE]})?(?:${g[C.BUILD]})?(?:$|[^\\d])`);k("COERCERTL",g[C.COERCE],!0);k("COERCERTLFULL",g[C.COERCEFULL],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${g[C.LONETILDE]}\\s+`,!0);X.tildeTrimReplace="$1~";k("TILDE",`^${g[C.LONETILDE]}${g[C.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${g[C.LONETILDE]}${g[C.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${g[C.LONECARET]}\\s+`,!0);X.caretTrimReplace="$1^";k("CARET",`^${g[C.LONECARET]}${g[C.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${g[C.LONECARET]}${g[C.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${g[C.GTLT]}\\s*(${g[C.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${g[C.GTLT]}\\s*(${g[C.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${g[C.GTLT]}\\s*(${g[C.LOOSEPLAIN]}|${g[C.XRANGEPLAIN]})`,!0);X.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${g[C.XRANGEPLAIN]})\\s+-\\s+(${g[C.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${g[C.XRANGEPLAINLOOSE]})\\s+-\\s+(${g[C.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ne=A((od,On)=>{"use strict";var ia=Object.freeze({loose:!0}),na=Object.freeze({}),oa=n=>n?typeof n!="object"?ia:n:na;On.exports=oa});var gt=A((rd,$n)=>{"use strict";var Fn=/^[0-9]+$/,Nn=(n,t)=>{if(typeof n=="number"&&typeof t=="number")return n===t?0:n<t?-1:1;let e=Fn.test(n),i=Fn.test(t);return e&&i&&(n=+n,t=+t),n===t?0:e&&!i?-1:i&&!e?1:n<t?-1:1},ra=(n,t)=>Nn(t,n);$n.exports={compareIdentifiers:Nn,rcompareIdentifiers:ra}});var L=A((ad,qn)=>{"use strict";var $e=ge(),{MAX_LENGTH:Bn,MAX_SAFE_INTEGER:Be}=he(),{safeRe:qe,t:Ge}=ue(),aa=Ne(),{compareIdentifiers:Ct}=gt(),vt=class n{constructor(t,e){if(e=aa(e),t instanceof n){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Bn)throw new TypeError(`version is longer than ${Bn} characters`);$e("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let i=t.trim().match(e.loose?qe[Ge.LOOSE]:qe[Ge.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Be||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Be||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Be||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let r=+o;if(r>=0&&r<Be)return r}return o}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if($e("SemVer.compare",this.version,this.options,t),!(t instanceof n)){if(typeof t=="string"&&t===this.version)return 0;t=new n(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof n||(t=new n(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof n||(t=new n(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{let i=this.prerelease[e],o=t.prerelease[e];if($e("prerelease compare",e,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return Ct(i,o)}while(++e)}compareBuild(t){t instanceof n||(t=new n(t,this.options));let e=0;do{let i=this.build[e],o=t.build[e];if($e("build compare",e,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return Ct(i,o)}while(++e)}inc(t,e,i){if(t.startsWith("pre")){if(!e&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(e){let o=`-${e}`.match(this.options.loose?qe[Ge.PRERELEASELOOSE]:qe[Ge.PRERELEASE]);if(!o||o[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,i),this.inc("pre",e,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,i),this.inc("pre",e,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);if(r===-1){if(e===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(e){let r=[e,o];i===!1&&(r=[e]),Ct(this.prerelease[0],e)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};qn.exports=vt});var oe=A((sd,Un)=>{"use strict";var Gn=L(),sa=(n,t,e=!1)=>{if(n instanceof Gn)return n;try{return new Gn(n,t)}catch(i){if(!e)return null;throw i}};Un.exports=sa});var jn=A((ld,zn)=>{"use strict";var la=oe(),ca=(n,t)=>{let e=la(n,t);return e?e.version:null};zn.exports=ca});var Hn=A((cd,Wn)=>{"use strict";var pa=oe(),da=(n,t)=>{let e=pa(n.trim().replace(/^[=v]+/,""),t);return e?e.version:null};Wn.exports=da});var Kn=A((pd,Zn)=>{"use strict";var Xn=L(),ua=(n,t,e,i,o)=>{typeof e=="string"&&(o=i,i=e,e=void 0);try{return new Xn(n instanceof Xn?n.version:n,e).inc(t,i,o).version}catch{return null}};Zn.exports=ua});var Jn=A((dd,Yn)=>{"use strict";var Qn=oe(),ma=(n,t)=>{let e=Qn(n,null,!0),i=Qn(t,null,!0),o=e.compare(i);if(o===0)return null;let r=o>0,c=r?e:i,v=r?i:e,w=!!c.prerelease.length;if(!!v.prerelease.length&&!w){if(!v.patch&&!v.minor)return"major";if(v.compareMain(c)===0)return v.minor&&!v.patch?"minor":"patch"}let M=w?"pre":"";return e.major!==i.major?M+"major":e.minor!==i.minor?M+"minor":e.patch!==i.patch?M+"patch":"prerelease"};Yn.exports=ma});var to=A((ud,eo)=>{"use strict";var _a=L(),fa=(n,t)=>new _a(n,t).major;eo.exports=fa});var no=A((md,io)=>{"use strict";var ha=L(),ga=(n,t)=>new ha(n,t).minor;io.exports=ga});var ro=A((_d,oo)=>{"use strict";var Ca=L(),va=(n,t)=>new Ca(n,t).patch;oo.exports=va});var so=A((fd,ao)=>{"use strict";var ba=oe(),wa=(n,t)=>{let e=ba(n,t);return e&&e.prerelease.length?e.prerelease:null};ao.exports=wa});var $=A((hd,co)=>{"use strict";var lo=L(),xa=(n,t,e)=>new lo(n,e).compare(new lo(t,e));co.exports=xa});var uo=A((gd,po)=>{"use strict";var Ea=$(),Ta=(n,t,e)=>Ea(t,n,e);po.exports=Ta});var _o=A((Cd,mo)=>{"use strict";var ya=$(),Sa=(n,t)=>ya(n,t,!0);mo.exports=Sa});var Ue=A((vd,ho)=>{"use strict";var fo=L(),Aa=(n,t,e)=>{let i=new fo(n,e),o=new fo(t,e);return i.compare(o)||i.compareBuild(o)};ho.exports=Aa});var Co=A((bd,go)=>{"use strict";var ka=Ue(),Ia=(n,t)=>n.sort((e,i)=>ka(e,i,t));go.exports=Ia});var bo=A((wd,vo)=>{"use strict";var Ma=Ue(),Ra=(n,t)=>n.sort((e,i)=>Ma(i,e,t));vo.exports=Ra});var Ce=A((xd,wo)=>{"use strict";var Da=$(),La=(n,t,e)=>Da(n,t,e)>0;wo.exports=La});var ze=A((Ed,xo)=>{"use strict";var Va=$(),Pa=(n,t,e)=>Va(n,t,e)<0;xo.exports=Pa});var bt=A((Td,Eo)=>{"use strict";var Oa=$(),Fa=(n,t,e)=>Oa(n,t,e)===0;Eo.exports=Fa});var wt=A((yd,To)=>{"use strict";var Na=$(),$a=(n,t,e)=>Na(n,t,e)!==0;To.exports=$a});var je=A((Sd,yo)=>{"use strict";var Ba=$(),qa=(n,t,e)=>Ba(n,t,e)>=0;yo.exports=qa});var We=A((Ad,So)=>{"use strict";var Ga=$(),Ua=(n,t,e)=>Ga(n,t,e)<=0;So.exports=Ua});var xt=A((kd,Ao)=>{"use strict";var za=bt(),ja=wt(),Wa=Ce(),Ha=je(),Xa=ze(),Za=We(),Ka=(n,t,e,i)=>{switch(t){case"===":return typeof n=="object"&&(n=n.version),typeof e=="object"&&(e=e.version),n===e;case"!==":return typeof n=="object"&&(n=n.version),typeof e=="object"&&(e=e.version),n!==e;case"":case"=":case"==":return za(n,e,i);case"!=":return ja(n,e,i);case">":return Wa(n,e,i);case">=":return Ha(n,e,i);case"<":return Xa(n,e,i);case"<=":return Za(n,e,i);default:throw new TypeError(`Invalid operator: ${t}`)}};Ao.exports=Ka});var Io=A((Id,ko)=>{"use strict";var Qa=L(),Ya=oe(),{safeRe:He,t:Xe}=ue(),Ja=(n,t)=>{if(n instanceof Qa)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;t=t||{};let e=null;if(!t.rtl)e=n.match(t.includePrerelease?He[Xe.COERCEFULL]:He[Xe.COERCE]);else{let w=t.includePrerelease?He[Xe.COERCERTLFULL]:He[Xe.COERCERTL],I;for(;(I=w.exec(n))&&(!e||e.index+e[0].length!==n.length);)(!e||I.index+I[0].length!==e.index+e[0].length)&&(e=I),w.lastIndex=I.index+I[1].length+I[2].length;w.lastIndex=-1}if(e===null)return null;let i=e[2],o=e[3]||"0",r=e[4]||"0",c=t.includePrerelease&&e[5]?`-${e[5]}`:"",v=t.includePrerelease&&e[6]?`+${e[6]}`:"";return Ya(`${i}.${o}.${r}${c}${v}`,t)};ko.exports=Ja});var Ro=A((Md,Mo)=>{"use strict";var Et=class{constructor(){this.max=1e3,this.map=new Map}get(t){let e=this.map.get(t);if(e!==void 0)return this.map.delete(t),this.map.set(t,e),e}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&e!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,e)}return this}};Mo.exports=Et});var B=A((Rd,Po)=>{"use strict";var es=/\s+/g,Tt=class n{constructor(t,e){if(e=is(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof yt)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(es," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(o=>!Lo(o[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&cs(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let e=this.set[t];for(let i=0;i<e.length;i++)i>0&&(this.formatted+=" "),this.formatted+=e[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let i=((this.options.includePrerelease&&ss)|(this.options.loose&&ls))+":"+t,o=Do.get(i);if(o)return o;let r=this.options.loose,c=r?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];t=t.replace(c,vs(this.options.includePrerelease)),R("hyphen replace",t),t=t.replace(P[V.COMPARATORTRIM],os),R("comparator trim",t),t=t.replace(P[V.TILDETRIM],rs),R("tilde trim",t),t=t.replace(P[V.CARETTRIM],as),R("caret trim",t);let v=t.split(" ").map(y=>ps(y,this.options)).join(" ").split(/\s+/).map(y=>Cs(y,this.options));r&&(v=v.filter(y=>(R("loose invalid filter",y,this.options),!!y.match(P[V.COMPARATORLOOSE])))),R("range list",v);let w=new Map,I=v.map(y=>new yt(y,this.options));for(let y of I){if(Lo(y))return[y];w.set(y.value,y)}w.size>1&&w.has("")&&w.delete("");let M=[...w.values()];return Do.set(i,M),M}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some(i=>Vo(i,e)&&t.set.some(o=>Vo(o,e)&&i.every(r=>o.every(c=>r.intersects(c,e)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new ns(t,this.options)}catch{return!1}for(let e=0;e<this.set.length;e++)if(bs(this.set[e],t,this.options))return!0;return!1}};Po.exports=Tt;var ts=Ro(),Do=new ts,is=Ne(),yt=ve(),R=ge(),ns=L(),{safeRe:P,t:V,comparatorTrimReplace:os,tildeTrimReplace:rs,caretTrimReplace:as}=ue(),{FLAG_INCLUDE_PRERELEASE:ss,FLAG_LOOSE:ls}=he(),Lo=n=>n.value==="<0.0.0-0",cs=n=>n.value==="",Vo=(n,t)=>{let e=!0,i=n.slice(),o=i.pop();for(;e&&i.length;)e=i.every(r=>o.intersects(r,t)),o=i.pop();return e},ps=(n,t)=>(n=n.replace(P[V.BUILD],""),R("comp",n,t),n=ms(n,t),R("caret",n),n=ds(n,t),R("tildes",n),n=fs(n,t),R("xrange",n),n=gs(n,t),R("stars",n),n),O=n=>!n||n.toLowerCase()==="x"||n==="*",ds=(n,t)=>n.trim().split(/\s+/).map(e=>us(e,t)).join(" "),us=(n,t)=>{let e=t.loose?P[V.TILDELOOSE]:P[V.TILDE];return n.replace(e,(i,o,r,c,v)=>{R("tilde",n,i,o,r,c,v);let w;return O(o)?w="":O(r)?w=`>=${o}.0.0 <${+o+1}.0.0-0`:O(c)?w=`>=${o}.${r}.0 <${o}.${+r+1}.0-0`:v?(R("replaceTilde pr",v),w=`>=${o}.${r}.${c}-${v} <${o}.${+r+1}.0-0`):w=`>=${o}.${r}.${c} <${o}.${+r+1}.0-0`,R("tilde return",w),w})},ms=(n,t)=>n.trim().split(/\s+/).map(e=>_s(e,t)).join(" "),_s=(n,t)=>{R("caret",n,t);let e=t.loose?P[V.CARETLOOSE]:P[V.CARET],i=t.includePrerelease?"-0":"";return n.replace(e,(o,r,c,v,w)=>{R("caret",n,o,r,c,v,w);let I;return O(r)?I="":O(c)?I=`>=${r}.0.0${i} <${+r+1}.0.0-0`:O(v)?r==="0"?I=`>=${r}.${c}.0${i} <${r}.${+c+1}.0-0`:I=`>=${r}.${c}.0${i} <${+r+1}.0.0-0`:w?(R("replaceCaret pr",w),r==="0"?c==="0"?I=`>=${r}.${c}.${v}-${w} <${r}.${c}.${+v+1}-0`:I=`>=${r}.${c}.${v}-${w} <${r}.${+c+1}.0-0`:I=`>=${r}.${c}.${v}-${w} <${+r+1}.0.0-0`):(R("no pr"),r==="0"?c==="0"?I=`>=${r}.${c}.${v}${i} <${r}.${c}.${+v+1}-0`:I=`>=${r}.${c}.${v}${i} <${r}.${+c+1}.0-0`:I=`>=${r}.${c}.${v} <${+r+1}.0.0-0`),R("caret return",I),I})},fs=(n,t)=>(R("replaceXRanges",n,t),n.split(/\s+/).map(e=>hs(e,t)).join(" ")),hs=(n,t)=>{n=n.trim();let e=t.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return n.replace(e,(i,o,r,c,v,w)=>{R("xRange",n,i,o,r,c,v,w);let I=O(r),M=I||O(c),y=M||O(v),D=y;return o==="="&&D&&(o=""),w=t.includePrerelease?"-0":"",I?o===">"||o==="<"?i="<0.0.0-0":i="*":o&&D?(M&&(c=0),v=0,o===">"?(o=">=",M?(r=+r+1,c=0,v=0):(c=+c+1,v=0)):o==="<="&&(o="<",M?r=+r+1:c=+c+1),o==="<"&&(w="-0"),i=`${o+r}.${c}.${v}${w}`):M?i=`>=${r}.0.0${w} <${+r+1}.0.0-0`:y&&(i=`>=${r}.${c}.0${w} <${r}.${+c+1}.0-0`),R("xRange return",i),i})},gs=(n,t)=>(R("replaceStars",n,t),n.trim().replace(P[V.STAR],"")),Cs=(n,t)=>(R("replaceGTE0",n,t),n.trim().replace(P[t.includePrerelease?V.GTE0PRE:V.GTE0],"")),vs=n=>(t,e,i,o,r,c,v,w,I,M,y,D)=>(O(i)?e="":O(o)?e=`>=${i}.0.0${n?"-0":""}`:O(r)?e=`>=${i}.${o}.0${n?"-0":""}`:c?e=`>=${e}`:e=`>=${e}${n?"-0":""}`,O(I)?w="":O(M)?w=`<${+I+1}.0.0-0`:O(y)?w=`<${I}.${+M+1}.0-0`:D?w=`<=${I}.${M}.${y}-${D}`:n?w=`<${I}.${M}.${+y+1}-0`:w=`<=${w}`,`${e} ${w}`.trim()),bs=(n,t,e)=>{for(let i=0;i<n.length;i++)if(!n[i].test(t))return!1;if(t.prerelease.length&&!e.includePrerelease){for(let i=0;i<n.length;i++)if(R(n[i].semver),n[i].semver!==yt.ANY&&n[i].semver.prerelease.length>0){let o=n[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var ve=A((Dd,qo)=>{"use strict";var be=Symbol("SemVer ANY"),kt=class n{static get ANY(){return be}constructor(t,e){if(e=Oo(e),t instanceof n){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),At("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===be?this.value="":this.value=this.operator+this.semver.version,At("comp",this)}parse(t){let e=this.options.loose?Fo[No.COMPARATORLOOSE]:Fo[No.COMPARATOR],i=t.match(e);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new $o(i[2],this.options.loose):this.semver=be}toString(){return this.value}test(t){if(At("Comparator.test",t,this.options.loose),this.semver===be||t===be)return!0;if(typeof t=="string")try{t=new $o(t,this.options)}catch{return!1}return St(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Bo(t.value,e).test(this.value):t.operator===""?t.value===""?!0:new Bo(this.value,e).test(t.semver):(e=Oo(e),e.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||St(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||St(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};qo.exports=kt;var Oo=Ne(),{safeRe:Fo,t:No}=ue(),St=xt(),At=ge(),$o=L(),Bo=B()});var we=A((Ld,Go)=>{"use strict";var ws=B(),xs=(n,t,e)=>{try{t=new ws(t,e)}catch{return!1}return t.test(n)};Go.exports=xs});var zo=A((Vd,Uo)=>{"use strict";var Es=B(),Ts=(n,t)=>new Es(n,t).set.map(e=>e.map(i=>i.value).join(" ").trim().split(" "));Uo.exports=Ts});var Wo=A((Pd,jo)=>{"use strict";var ys=L(),Ss=B(),As=(n,t,e)=>{let i=null,o=null,r=null;try{r=new Ss(t,e)}catch{return null}return n.forEach(c=>{r.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new ys(i,e))}),i};jo.exports=As});var Xo=A((Od,Ho)=>{"use strict";var ks=L(),Is=B(),Ms=(n,t,e)=>{let i=null,o=null,r=null;try{r=new Is(t,e)}catch{return null}return n.forEach(c=>{r.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new ks(i,e))}),i};Ho.exports=Ms});var Qo=A((Fd,Ko)=>{"use strict";var It=L(),Rs=B(),Zo=Ce(),Ds=(n,t)=>{n=new Rs(n,t);let e=new It("0.0.0");if(n.test(e)||(e=new It("0.0.0-0"),n.test(e)))return e;e=null;for(let i=0;i<n.set.length;++i){let o=n.set[i],r=null;o.forEach(c=>{let v=new It(c.semver.version);switch(c.operator){case">":v.prerelease.length===0?v.patch++:v.prerelease.push(0),v.raw=v.format();case"":case">=":(!r||Zo(v,r))&&(r=v);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),r&&(!e||Zo(e,r))&&(e=r)}return e&&n.test(e)?e:null};Ko.exports=Ds});var Jo=A((Nd,Yo)=>{"use strict";var Ls=B(),Vs=(n,t)=>{try{return new Ls(n,t).range||"*"}catch{return null}};Yo.exports=Vs});var Ze=A(($d,nr)=>{"use strict";var Ps=L(),ir=ve(),{ANY:Os}=ir,Fs=B(),Ns=we(),er=Ce(),tr=ze(),$s=We(),Bs=je(),qs=(n,t,e,i)=>{n=new Ps(n,i),t=new Fs(t,i);let o,r,c,v,w;switch(e){case">":o=er,r=$s,c=tr,v=">",w=">=";break;case"<":o=tr,r=Bs,c=er,v="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ns(n,t,i))return!1;for(let I=0;I<t.set.length;++I){let M=t.set[I],y=null,D=null;if(M.forEach(S=>{S.semver===Os&&(S=new ir(">=0.0.0")),y=y||S,D=D||S,o(S.semver,y.semver,i)?y=S:c(S.semver,D.semver,i)&&(D=S)}),y.operator===v||y.operator===w||(!D.operator||D.operator===v)&&r(n,D.semver))return!1;if(D.operator===w&&c(n,D.semver))return!1}return!0};nr.exports=qs});var rr=A((Bd,or)=>{"use strict";var Gs=Ze(),Us=(n,t,e)=>Gs(n,t,">",e);or.exports=Us});var sr=A((qd,ar)=>{"use strict";var zs=Ze(),js=(n,t,e)=>zs(n,t,"<",e);ar.exports=js});var pr=A((Gd,cr)=>{"use strict";var lr=B(),Ws=(n,t,e)=>(n=new lr(n,e),t=new lr(t,e),n.intersects(t,e));cr.exports=Ws});var ur=A((Ud,dr)=>{"use strict";var Hs=we(),Xs=$();dr.exports=(n,t,e)=>{let i=[],o=null,r=null,c=n.sort((M,y)=>Xs(M,y,e));for(let M of c)Hs(M,t,e)?(r=M,o||(o=M)):(r&&i.push([o,r]),r=null,o=null);o&&i.push([o,null]);let v=[];for(let[M,y]of i)M===y?v.push(M):!y&&M===c[0]?v.push("*"):y?M===c[0]?v.push(`<=${y}`):v.push(`${M} - ${y}`):v.push(`>=${M}`);let w=v.join(" || "),I=typeof t.raw=="string"?t.raw:String(t);return w.length<I.length?w:t}});var Cr=A((zd,gr)=>{"use strict";var mr=B(),Rt=ve(),{ANY:Mt}=Rt,xe=we(),Dt=$(),Zs=(n,t,e={})=>{if(n===t)return!0;n=new mr(n,e),t=new mr(t,e);let i=!1;e:for(let o of n.set){for(let r of t.set){let c=Qs(o,r,e);if(i=i||c!==null,c)continue e}if(i)return!1}return!0},Ks=[new Rt(">=0.0.0-0")],_r=[new Rt(">=0.0.0")],Qs=(n,t,e)=>{if(n===t)return!0;if(n.length===1&&n[0].semver===Mt){if(t.length===1&&t[0].semver===Mt)return!0;e.includePrerelease?n=Ks:n=_r}if(t.length===1&&t[0].semver===Mt){if(e.includePrerelease)return!0;t=_r}let i=new Set,o,r;for(let S of n)S.operator===">"||S.operator===">="?o=fr(o,S,e):S.operator==="<"||S.operator==="<="?r=hr(r,S,e):i.add(S.semver);if(i.size>1)return null;let c;if(o&&r){if(c=Dt(o.semver,r.semver,e),c>0)return null;if(c===0&&(o.operator!==">="||r.operator!=="<="))return null}for(let S of i){if(o&&!xe(S,String(o),e)||r&&!xe(S,String(r),e))return null;for(let Tr of t)if(!xe(S,String(Tr),e))return!1;return!0}let v,w,I,M,y=r&&!e.includePrerelease&&r.semver.prerelease.length?r.semver:!1,D=o&&!e.includePrerelease&&o.semver.prerelease.length?o.semver:!1;y&&y.prerelease.length===1&&r.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(let S of t){if(M=M||S.operator===">"||S.operator===">=",I=I||S.operator==="<"||S.operator==="<=",o){if(D&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===D.major&&S.semver.minor===D.minor&&S.semver.patch===D.patch&&(D=!1),S.operator===">"||S.operator===">="){if(v=fr(o,S,e),v===S&&v!==o)return!1}else if(o.operator===">="&&!xe(o.semver,String(S),e))return!1}if(r){if(y&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===y.major&&S.semver.minor===y.minor&&S.semver.patch===y.patch&&(y=!1),S.operator==="<"||S.operator==="<="){if(w=hr(r,S,e),w===S&&w!==r)return!1}else if(r.operator==="<="&&!xe(r.semver,String(S),e))return!1}if(!S.operator&&(r||o)&&c!==0)return!1}return!(o&&I&&!r&&c!==0||r&&M&&!o&&c!==0||D||y)},fr=(n,t,e)=>{if(!n)return t;let i=Dt(n.semver,t.semver,e);return i>0?n:i<0||t.operator===">"&&n.operator===">="?t:n},hr=(n,t,e)=>{if(!n)return t;let i=Dt(n.semver,t.semver,e);return i<0?n:i>0||t.operator==="<"&&n.operator==="<="?t:n};gr.exports=Zs});var xr=A((jd,wr)=>{"use strict";var Lt=ue(),vr=he(),Ys=L(),br=gt(),Js=oe(),el=jn(),tl=Hn(),il=Kn(),nl=Jn(),ol=to(),rl=no(),al=ro(),sl=so(),ll=$(),cl=uo(),pl=_o(),dl=Ue(),ul=Co(),ml=bo(),_l=Ce(),fl=ze(),hl=bt(),gl=wt(),Cl=je(),vl=We(),bl=xt(),wl=Io(),xl=ve(),El=B(),Tl=we(),yl=zo(),Sl=Wo(),Al=Xo(),kl=Qo(),Il=Jo(),Ml=Ze(),Rl=rr(),Dl=sr(),Ll=pr(),Vl=ur(),Pl=Cr();wr.exports={parse:Js,valid:el,clean:tl,inc:il,diff:nl,major:ol,minor:rl,patch:al,prerelease:sl,compare:ll,rcompare:cl,compareLoose:pl,compareBuild:dl,sort:ul,rsort:ml,gt:_l,lt:fl,eq:hl,neq:gl,gte:Cl,lte:vl,cmp:bl,coerce:wl,Comparator:xl,Range:El,satisfies:Tl,toComparators:yl,maxSatisfying:Sl,minSatisfying:Al,minVersion:kl,validRange:Il,outside:Ml,gtr:Rl,ltr:Dl,intersects:Ll,simplifyRange:Vl,subset:Pl,SemVer:Ys,re:Lt.re,src:Lt.src,tokens:Lt.t,SEMVER_SPEC_VERSION:vr.SEMVER_SPEC_VERSION,RELEASE_TYPES:vr.RELEASE_TYPES,compareIdentifiers:br.compareIdentifiers,rcompareIdentifiers:br.rcompareIdentifiers}});var An="mat-badge-content",Sr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=G({type:n,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,o){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
2
+ `],encapsulation:2,changeDetection:0})}return n})(),In=(()=>{class n{_ngZone=E(se);_elementRef=E(ce);_ariaDescriber=E(oi);_renderer=E(Ae);_animationsDisabled=Ve();_idGenerator=E(ii);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=E(De);_document=E(Te);constructor(){let e=E(Yt);e.load(Sr),e.load(Jt)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(An),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${An}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=qt({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,o){i&2&&H("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",Me],disabled:[2,"matBadgeDisabled","disabled",Me],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",Me]}})}return n})(),Mn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ke({type:n});static \u0275inj=Ee({imports:[ti,Le]})}return n})();var Fe=["*"],Ir=["content"],Mr=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Rr=["mat-drawer","mat-drawer-content","*"];function Dr(n,t){if(n&1){let e=T();a(0,"div",1),_("click",function(){p(e);let o=l();return d(o._onBackdropClicked())}),s()}if(n&2){let e=l();H("mat-drawer-shown",e._isShowingBackdrop())}}function Lr(n,t){n&1&&(a(0,"mat-drawer-content"),U(1,2),s())}var Vr=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Pr=["mat-sidenav","mat-sidenav-content","*"];function Or(n,t){if(n&1){let e=T();a(0,"div",1),_("click",function(){p(e);let o=l();return d(o._onBackdropClicked())}),s()}if(n&2){let e=l();H("mat-drawer-shown",e._isShowingBackdrop())}}function Fr(n,t){n&1&&(a(0,"mat-sidenav-content"),U(1,2),s())}var Nr=`.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}
3
+ `;var $r=new et("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>!1}),mt=new et("MAT_DRAWER_CONTAINER"),Pe=(()=>{class n extends de{_platform=E(Re);_changeDetectorRef=E(Ie);_container=E(ut);constructor(){let e=E(ce),i=E(ai),o=E(se);super(e,i,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:i}=this._container;return e!=null&&e.mode!=="over"&&e.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=G({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,o){i&2&&(te("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),H("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[pe([{provide:de,useExisting:n}]),me],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(ee(),U(0))},encapsulation:2,changeDetection:0})}return n})(),dt=(()=>{class n{_elementRef=E(ce);_focusTrapFactory=E(ei);_focusMonitor=E(Qt);_platform=E(Re);_ngZone=E(se);_renderer=E(Ae);_interactivityChecker=E(De);_doc=E(Te);_container=E(mt,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=ne(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=ne(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(ne(e))}_opened=N(!1);_openedVia;_animationStarted=new Y;_animationEnd=new Y;openedChange=new ye(!0);_openedStream=this.openedChange.pipe(ae(e=>e),Qe(()=>{}));openedStart=this._animationStarted.pipe(ae(()=>this.opened),Ye(void 0));_closedStream=this.openedChange.pipe(ae(e=>!e),Qe(()=>{}));closedStart=this._animationStarted.pipe(ae(()=>!this.opened),Ye(void 0));_destroyed=new Y;onPositionChanged=new ye;_content;_modeChanged=new Y;_injector=E(tt);_changeDetectorRef=E(Ie);constructor(){this.openedChange.pipe(q(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;Vt(e,"keydown").pipe(ae(i=>i.keyCode===27&&!this.disableClose&&!ni(i)),q(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),c(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),c=this._renderer.listen(e,"mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":it(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);let o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&i&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Ft(1)).subscribe(c=>r(c?"open":"close"))}))}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,o=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=e=>{let i=this._elementRef.nativeElement;e.target===i&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(i){return new(i||n)};static \u0275cmp=G({type:n,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(i&1&&_e(Ir,5),i&2){let r;Z(r=K())&&(o._content=r.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(i,o){i&2&&(nt("align",null)("tabIndex",o.mode!=="side"?"-1":null),te("visibility",!o._container&&!o.opened?"hidden":null),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Fe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(ee(),a(0,"div",1,0),U(2),s())},dependencies:[de],encapsulation:2,changeDetection:0})}return n})(),ut=(()=>{class n{_dir=E(ri,{optional:!0});_element=E(ce);_ngZone=E(se);_changeDetectorRef=E(Ie);_animationDisabled=Ve();_transitionsEnabled=!1;_allDrawers;_drawers=new Nt;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=ne(e)}_autosize=E($r);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:ne(e)}_backdropOverride;backdropClick=new ye;_start;_end;_left;_right;_destroyed=new Y;_doCheckSubject=new Y;_contentMargins={left:null,right:null};_contentMarginChanges=new Y;get scrollable(){return this._userContent||this._content}_injector=E(tt);constructor(){let e=E(Re),i=E(si);this._dir?.change.pipe(q(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(q(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(Je(this._allDrawers),q(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Je(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Ot(10),q(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();e+=o,i-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();i+=o,e-=o}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(q(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(q(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(q(this._drawers.changes)).subscribe(()=>{it({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(q(Pt(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=G({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,r){if(i&1&&at(r,Pe,5)(r,dt,5),i&2){let c;Z(c=K())&&(o._content=c.first),Z(c=K())&&(o._allDrawers=c)}},viewQuery:function(i,o){if(i&1&&_e(Pe,5),i&2){let r;Z(r=K())&&(o._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[pe([{provide:mt,useExisting:n}])],ngContentSelectors:Rr,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(ee(Mr),f(0,Dr,1,2,"div",0),U(1),U(2,1),f(3,Lr,2,0,"mat-drawer-content")),i&2&&(h(o.hasBackdrop?0:-1),u(3),h(o._content?-1:3))},dependencies:[Pe],styles:[`.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}
4
+ `],encapsulation:2,changeDetection:0})}return n})(),Oe=(()=>{class n extends Pe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Se(n)))(o||n)}})();static \u0275cmp=G({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[pe([{provide:de,useExisting:n}]),me],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(ee(),U(0))},encapsulation:2,changeDetection:0})}return n})(),_t=(()=>{class n extends dt{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=ne(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=st(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=st(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Se(n)))(o||n)}})();static \u0275cmp=G({type:n,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(i,o){i&2&&(nt("tabIndex",o.mode!=="side"?"-1":null)("align",null),te("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),H("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[pe([{provide:dt,useExisting:n}]),me],ngContentSelectors:Fe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(ee(),a(0,"div",1,0),U(2),s())},dependencies:[de],encapsulation:2,changeDetection:0})}return n})(),Rn=(()=>{class n extends ut{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Se(n)))(o||n)}})();static \u0275cmp=G({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(i,o,r){if(i&1&&at(r,Oe,5)(r,_t,5),i&2){let c;Z(c=K())&&(o._content=c.first),Z(c=K())&&(o._allDrawers=c)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,o){i&2&&H("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[pe([{provide:mt,useExisting:n},{provide:ut,useExisting:n}]),me],ngContentSelectors:Pr,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(ee(Vr),f(0,Or,1,2,"div",0),U(1),U(2,1),f(3,Fr,2,0,"mat-sidenav-content")),i&2&&(h(o.hasBackdrop?0:-1),u(3),h(o._content?-1:3))},dependencies:[Oe],styles:[Nr],encapsulation:2,changeDetection:0})}return n})(),Dn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=ke({type:n});static \u0275inj=Ee({imports:[lt,Le,lt]})}return n})();var Er=yr(xr());var Ol=["sideright"],Fl=()=>[Ki],Nl=()=>[en],$l=()=>[Xi],Bl=()=>[$i],ql=()=>[qi],Gl=()=>[Zi],Ul=()=>[Ui],zl=()=>[nn],jl=()=>[an],Wl=(n,t)=>({"dark-theme":n,"app-night":t}),re=(n,t)=>({"button-primary":n,"button-toolbar":t}),Hl=(n,t)=>t[0];function Xl(n,t){if(n&1){let e=T();a(0,"button",8),_("click",function(){p(e);let o=l();return d(o.displayLeftMenu("resourceGroups",!0))}),a(1,"mat-icon"),m(2,"category"),s(),m(3," \xA0Groups "),s()}}function Zl(n,t){if(n&1){let e=T();a(0,"button",8),_("click",function(){p(e);let o=l();return d(o.displayLeftMenu("infoLayerList",!0))}),a(1,"mat-icon"),m(2,"layers"),s(),m(3," \xA0Overlays "),s()}}function Kl(n,t){if(n&1){let e=T();a(0,"button",8),_("click",function(){p(e);let o=l();return d(o.displayLeftMenu("trackList",!0))}),a(1,"mat-icon",32),m(2,"show_chart"),s(),m(3," \xA0Tracks "),s()}}function Ql(n,t){if(n&1){let e=T();a(0,"div")(1,"button",8),_("click",function(){let o=p(e).$implicit,r=l(2);return d(r.openExperiment({choice:o,value:null}))}),b(2,"mat-icon",33),m(3),s()()}if(n&2){let e=t.$implicit;u(3),ie(" \xA0",e," ")}}function Yl(n,t){if(n&1&&(a(0,"div"),ot(1,Ql,4,1,"div",null,Gt),s()),n&2){let e=l();u(),rt(e.app.config.resources.paths.sort())}}function Jl(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.clearTrail(o.app.data.serverTrail))}),a(1,"mat-icon"),m(2,"clear_all"),s(),a(3,"span"),m(4),s()(),a(5,"a",8),_("click",function(){p(e);let o=l();return d(o.trailToRoute())}),a(6,"mat-icon"),m(7,"insights"),s(),a(8,"span"),m(9,"Trail to Route"),s()(),b(10,"mat-divider")}if(n&2){let e=l();u(4),ie("",e.app.data.serverTrail?"Refresh":"Clear"," Trail")}}function ec(n,t){n&1&&(a(0,"span"),m(1,"Clear Active Route"),s())}function tc(n,t){n&1&&(a(0,"span"),m(1,"Clear Destination"),s())}function ic(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.clearDestination())}),a(1,"mat-icon"),m(2,"clear_all"),s(),f(3,ec,2,0,"span")(4,tc,2,0,"span"),s(),a(5,"a",8),_("click",function(){p(e);let o=l();return d(o.clearCourseData())}),a(6,"mat-icon"),m(7,"clear_all"),s(),a(8,"span"),m(9,"Clear Course Data"),s()(),b(10,"mat-divider")}if(n&2){let e=l();u(3),h(e.app.data.activeRoute?3:4)}}function nc(n,t){if(n&1){let e=T();b(0,"mat-divider"),a(1,"a",8),_("click",function(){p(e);let o=l();return d(o.showWeather("forecast"))}),a(2,"mat-icon"),m(3,"air"),s(),a(4,"span"),m(5,"Weather Forecast"),s()()}}function oc(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.skres.newWaypointAt(o.app.data.vessels.active.position))}),a(1,"mat-icon",10),m(2,"add_location"),s(),a(3,"span"),m(4,"Add Waypoint at Vessel"),s()()}}function rc(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.drawFeature("note"))}),a(1,"mat-icon"),m(2,"local_offer"),s(),a(3,"span"),m(4,"Add Note"),s()()}}function ac(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.showLogin(null,!1))}),a(1,"mat-icon",34),m(2," account_circle "),s(),a(3,"span"),m(4),s()(),b(5,"mat-divider")}if(n&2){let e=l();u(),x("matBadgeHidden",e.app.isLoggedIn()),u(3),J(e.app.isLoggedIn()?"Change User":"Login")}}function sc(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.displayLeftMenu("anchorWatch",!0))}),a(1,"mat-icon"),m(2,"anchor"),s(),a(3,"span"),m(4,"Anchor Watch"),s()()}}function lc(n,t){n&1&&(a(0,"mat-icon",17),m(1,"check_box"),s())}function cc(n,t){n&1&&b(0,"mat-icon",35)}function pc(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.toggleRadar())}),f(1,lc,2,0,"mat-icon",17)(2,cc,1,0,"mat-icon",35),a(3,"span"),m(4,"Radar Overlay"),s()()}if(n&2){let e=l();u(),h(e.app.uiCtrl().radarLayer?1:2)}}function dc(n,t){if(n&1){let e=T();a(0,"a",8),_("click",function(){p(e);let o=l();return d(o.showPlaybackSettings())}),a(1,"mat-icon"),m(2,"history"),s(),a(3,"span"),m(4,"Playback History"),s()()}}function uc(n,t){if(n&1){let e=T();a(0,"note-panel",41),_("edit",function(o){p(e);let r=l(2);return d(r.skres.showNoteEditor({id:o}))})("panTo",function(o){p(e);let r=l(2);return d(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("note",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("interacting",e.isInteracting())}}function mc(n,t){if(n&1){let e=T();a(0,"region-panel",42),_("edit",function(o){p(e);let r=l(2);return d(r.skres.editRegionInfo(o))})("panTo",function(o){p(e);let r=l(2);return d(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("region",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function _c(n,t){if(n&1){let e=T();a(0,"waypoint-panel",43),_("edit",function(o){p(e);let r=l(2);return d(r.skres.editWaypointInfo(o))})("panTo",function(o){p(e);let r=l(2);return d(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("waypoint",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function fc(n,t){if(n&1){let e=T();a(0,"route-panel",44),_("edit",function(o){p(e);let r=l(2);return d(r.skres.editRouteInfo(o))})("activate",function(o){p(e);let r=l(2);return d(r.activateRoute(o))})("panTo",function(o){p(e);let r=l(2);return d(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(2);x("route",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function hc(n,t){if(n&1){let e=T();a(0,"info-panel",36),_("closed",function(){p(e);let o=l();return d(o.closeDrawer())}),f(1,uc,1,3,"note-panel",37),f(2,mc,1,4,"region-panel",38),f(3,_c,1,4,"waypoint-panel",39),f(4,fc,1,4,"route-panel",40),s()}if(n&2){let e,i,o,r,c=l();u(),h(((e=c.infoPanel.item())==null?null:e.type)==="notes"?1:-1),u(),h(((i=c.infoPanel.item())==null?null:i.type)==="regions"?2:-1),u(),h(((o=c.infoPanel.item())==null?null:o.type)==="waypoints"?3:-1),u(),h(((r=c.infoPanel.item())==null?null:r.type)==="routes"?4:-1)}}function gc(n,t){if(n&1){let e=T();a(0,"a",52),_("click",function(){p(e);let o=l(2);return d(o.closeInstrumentPanel())}),a(1,"mat-icon"),m(2,"open_in_new"),s()()}if(n&2){let e=l(2);x("href",e.instUrl(),$t)}}function Cc(n,t){if(n&1&&b(0,"iframe",51),n&2){let e=l(2);x("src",e.instUrl(),Bt)}}function vc(n,t){if(n&1){let e=T();a(0,"div",21)(1,"mat-nav-list")(2,"a",45)(3,"a",46),_("click",function(){p(e);let o=l();return d(o.closeInstrumentPanel())}),a(4,"mat-icon"),m(5,"arrow_forward"),s()(),m(6," \xA0\xA0\xA0\xA0 "),f(7,gc,3,1,"a",47),a(8,"a",48),_("click",function(){p(e);let o=l();return d(o.selectPlugin())}),a(9,"mat-icon"),m(10,"arrow_back_ios"),s()(),a(11,"a",49),_("click",function(){p(e);let o=l();return d(o.selectPlugin(!0))}),a(12,"mat-icon"),m(13,"arrow_forward_ios"),s()()(),b(14,"mat-divider"),s(),a(15,"div",50),f(16,Cc,1,1,"iframe",51),s()()}if(n&2){let e=l();u(7),h(e.app.config.display.plugins.instruments?7:-1),u(),x("disabled",e.app.config.display.plugins.favourites.length===0),u(3),x("disabled",e.app.config.display.plugins.favourites.length===0),u(5),h(e.app.instrumentPanel().activate?16:-1)}}function bc(n,t){n&1&&(a(0,"div",23),b(1,"mat-progress-bar",53),s())}function wc(n,t){if(n&1){let e=T();a(0,"autopilot-console",54),_("close",function(){p(e);let o=l();return d(o.toggleAutopilotConsole(!1))}),s()}if(n&2){let e=l();x("apData",e.app.data.vessels.self.autopilot)}}function xc(n,t){if(n&1){let e=T();a(0,"route-builder",55),_("save",function(o){p(e);let r=l();return d(r.skres.newRouteAt(o.coordinates,o.meta))})("close",function(){p(e);let o=l();return d(o.toggleRouteBuilderConsole(!1))}),s()}}function Ec(n,t){if(n&1){let e=T();a(0,"div",57)(1,"button",75),_("click",function(){p(e);let o=l(3);return d(o.centerVessel())}),a(2,"mat-icon"),m(3," center_focus_strong "),s()()()}if(n&2){let e=l(3);u(),x("disabled",!e.app.data.vessels.showSelf)}}function Tc(n,t){if(n&1){let e=T();a(0,"div",57)(1,"button",76),_("click",function(){p(e);let o=l(3);return d(o.showSelectMode())}),a(2,"mat-icon"),m(3,"cancel"),s()()()}}function yc(n,t){if(n&1){let e=T();a(0,"div",59)(1,"div",57)(2,"button",66),_("click",function(){p(e);let o=l(2);return d(o.toggleAlertList(!0))}),b(3,"mat-icon",67),s()(),a(4,"div",57)(5,"button",68)(6,"mat-icon"),m(7,"layers"),s()()(),a(8,"div",57)(9,"button",69)(10,"mat-icon"),m(11,"edit"),s()()(),a(12,"div",57)(13,"button",70),_("click",function(){p(e);let o=l(2);return d(o.toggleNorthUp())}),b(14,"mat-icon",71),s()(),a(15,"div",57)(16,"button",72),_("click",function(){p(e);let o=l(2);return d(o.toggleMoveMap())}),b(17,"mat-icon",73),s()(),f(18,Ec,4,1,"div",57),a(19,"div",57)(20,"button",74)(21,"mat-icon"),m(22,"more_horiz"),s()()(),f(23,Tc,4,0,"div",57),s()}if(n&2){let e=l(2),i=fe(3),o=fe(37),r=fe(63);u(2),x("matBadge",e.notiMgr.alerts().length)("matBadgeHidden",e.notiMgr.alerts().length===0),u(3),x("disabled",e.isInteracting())("matMenuTriggerFor",i),u(4),x("disabled",e.isInteracting())("matMenuTriggerFor",r),u(4),x("ngClass",Q(16,re,!e.app.uiConfig().mapNorthUp,e.app.uiConfig().mapNorthUp))("matTooltip",e.app.uiConfig().mapNorthUp?"Show Heading Up":"Show North Up"),u(),x("svgIcon",e.app.uiConfig().mapNorthUp?"heading-n-up":"heading-h-up"),u(2),x("ngClass",Q(19,re,e.app.uiConfig().mapMove,!e.app.uiConfig().mapMove))("disabled",!e.app.data.vessels.showSelf)("matTooltip",e.app.uiConfig().mapMove?"Turn off Follow Vessel":"Follow Vessel"),u(2),h(e.app.uiConfig().mapMove?-1:18),u(2),x("disabled",e.isInteracting())("matMenuTriggerFor",o),u(3),h(e.mode===1?23:-1)}}function Sc(n,t){if(n&1){let e=T();a(0,"route-list",78),_("activate",function(o){p(e);let r=l(4);return d(r.activateRoute(o.id))})("deactivate",function(){p(e);let o=l(4);return d(o.clearDestination())})("select",function(o){p(e);let r=l(4);return d(r.handleResourceInfo("routes",o.id))})("points",function(o){p(e);let r=l(4);return d(r.featureProperties({id:o.id,type:"route"}))})("notes",function(o){p(e);let r=l(4);return d(r.skres.showRelatedNotes(o.id,"route",o.readOnly))})("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("activeRoute",e.app.data.activeRoute)("editingRouteId",e.app.data.editingId)}}function Ac(n,t){n&1&&(z(0,Sc,1,2),j(1,0,Fl),W())}function kc(n,t){if(n&1){let e=T();a(0,"waypoint-list",79),_("select",function(o){p(e);let r=l(4);return d(r.handleResourceInfo("waypoints",o.id))})("goto",function(o){p(e);let r=l(4);return d(r.course.navigateToWaypoint(o.id))})("deactivate",function(){p(e);let o=l(4);return d(o.clearDestination())})("center",function(o){p(e);let r=l(4);return d(r.centerAndZoom(o))})("notes",function(o){p(e);let r=l(4);return d(r.skres.showRelatedNotes(o.id,"waypoint",o.readOnly))})("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("activeWaypoint",e.app.data.activeWaypoint)("editingWaypointId",e.app.data.editingId)}}function Ic(n,t){n&1&&(z(0,kc,1,2),j(1,0,Nl),W())}function Mc(n,t){if(n&1){let e=T();a(0,"chart-list",80),_("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("selectedCharts",e.app.config.selections.charts)}}function Rc(n,t){n&1&&(z(0,Mc,1,1),j(1,0,$l),W())}function Dc(n,t){if(n&1){let e=T();a(0,"note-list",81),_("select",function(o){p(e);let r=l(4);return d(r.handleResourceInfo("notes",o.id))})("pan",function(o){p(e);let r=l(4);return d(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("notes",e.skres.notes())}}function Lc(n,t){n&1&&(z(0,Dc,1,1),j(1,0,Bl),W())}function Vc(n,t){if(n&1){let e=T();a(0,"region-list",82),_("select",function(o){p(e);let r=l(4);return d(r.handleResourceInfo("regions",o.id))})("pan",function(o){p(e);let r=l(4);return d(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}if(n&2){let e=l(4);x("regions",e.skres.regions())}}function Pc(n,t){n&1&&(z(0,Vc,1,1),j(1,0,ql),W())}function Oc(n,t){if(n&1){let e=T();a(0,"track-list",83),_("center",function(o){p(e);let r=l(4);return d(r.centerAndZoom(o))})("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}}function Fc(n,t){n&1&&(z(0,Oc,1,0),j(1,0,Gl),W())}function Nc(n,t){if(n&1){let e=T();a(0,"ais-list",84),_("properties",function(o){p(e);let r=l(4);return d(r.featureProperties({id:o,type:"ais"}))})("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())})("focusVessel",function(o){p(e);let r=l(4);return d(r.switchActiveVessel(o))})("pan",function(o){p(e);let r=l(4);return d(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(n&2){let e=l(4);x("focusId",e.app.data.vessels.activeId)}}function $c(n,t){n&1&&(z(0,Nc,1,1),j(1,0,Ul),W())}function Bc(n,t){if(n&1){let e=T();a(0,"group-list",36),_("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())}),s()}}function qc(n,t){n&1&&(z(0,Bc,1,0),j(1,0,zl),W())}function Gc(n,t){if(n&1){let e=T();a(0,"infolayer-list",85),_("closed",function(){p(e);let o=l(4);return d(o.displayLeftMenu())})("paramChanged",function(o){p(e);let r=l(4);return d(r.onInfoLayerParamChange(o))}),s()}}function Uc(n,t){n&1&&(z(0,Gc,1,0),j(1,0,jl),W())}function zc(n,t){if(n&1){let e=T();a(0,"anchor-watch",86),_("closed",function(){p(e);let o=l(3);return d(o.displayLeftMenu())}),s()}if(n&2){let e=l(3);x("showSelf",e.app.data.vessels.showSelf)("radius",e.anchor.radius())("raised",e.anchor.raised())}}function jc(n,t){if(n&1&&(a(0,"div",60),f(1,Ac,3,0),f(2,Ic,3,0),f(3,Rc,3,0),f(4,Lc,3,0),f(5,Pc,3,0),f(6,Fc,3,0),f(7,$c,3,0),f(8,qc,3,0),f(9,Uc,3,0),f(10,zc,1,3,"anchor-watch",77),s()),n&2){let e=l(2);u(),h(e.leftMenuCtrl().routeList?1:-1),u(),h(e.leftMenuCtrl().waypointList?2:-1),u(),h(e.leftMenuCtrl().chartList?3:-1),u(),h(e.leftMenuCtrl().noteList?4:-1),u(),h(e.leftMenuCtrl().regionList?5:-1),u(),h(e.leftMenuCtrl().trackList?6:-1),u(),h(e.leftMenuCtrl().aisList?7:-1),u(),h(e.leftMenuCtrl().resourceGroups?8:-1),u(),h(e.leftMenuCtrl().infoLayerList?9:-1),u(),h(e.leftMenuCtrl().anchorWatch?10:-1)}}function Wc(n,t){n&1&&(a(0,"div",62)(1,"mat-icon",87),m(2,"visibility_off "),s()())}function Hc(n,t){n&1&&(a(0,"div",62)(1,"mat-icon",88),m(2,"compare_arrows "),s()())}function Xc(n,t){n&1&&(a(0,"div",62)(1,"mat-icon",89),m(2,"directions_boat "),s()())}function Zc(n,t){n&1&&(a(0,"div",62)(1,"mat-icon",90),m(2,"local_offer "),s()())}function Kc(n,t){n&1&&(a(0,"div",62)(1,"mat-icon",91),m(2,"signal_wifi_statusbar_connected_no_internet_4 "),s()())}function Qc(n,t){if(n&1){let e=T();a(0,"button",96),_("click",function(){p(e);let o=l(3);return d(o.handleInstrumentPanelClick())}),a(1,"mat-icon"),m(2,"av_timer"),s()()}}function Yc(n,t){if(n&1){let e=T();a(0,"div",57)(1,"button",97),_("click",function(){p(e);let o=l(3);return d(o.enableAudio())}),a(2,"mat-icon",32),m(3,"volume_off"),s()(),b(4,"br"),m(5,"\xA0"),b(6,"br"),s()}}function Jc(n,t){if(n&1){let e=T();a(0,"div",57)(1,"button",98),_("click",function(){p(e);let o=l(3);return d(o.toggleFullscreen())}),a(2,"mat-icon"),m(3),s()(),b(4,"br"),m(5,"\xA0"),b(6,"br"),s()}if(n&2){let e=l(3);u(),x("ngClass",Q(3,re,e.displayFullscreen().active,!e.displayFullscreen().active))("matTooltip",e.displayFullscreen().active?"Exit Fullscreen ":"Go Fullscreen"),u(2),ie(" ",e.displayFullscreen().active?"fullscreen_exit ":"fullscreen"," ")}}function ep(n,t){if(n&1){let e=T();a(0,"div",57)(1,"fb-experiments",99),_("selected",function(o){p(e);let r=l(3);return d(r.openExperiment(o))}),s(),b(2,"br"),m(3,"\xA0"),b(4,"br"),s()}}function tp(n,t){if(n&1){let e=T();a(0,"div",57)(1,"pip-video",100),_("click",function(){p(e);let o=l(3);return d(o.focusMap())}),s(),b(2,"br"),m(3,"\xA0"),b(4,"br"),s()}if(n&2){let e=l(3);u(),x("src",e.vidUrl())("muted",!0)}}function ip(n,t){if(n&1){let e=T();a(0,"div",57)(1,"button",101),_("click",function(){p(e);let o=l(3);return d(o.toggleAutopilotConsole(!0))}),b(2,"mat-icon",102),s(),b(3,"br"),m(4,"\xA0"),b(5,"br"),s()}if(n&2){let e=l(3);u(),x("ngClass",Q(1,re,e.app.data.vessels.self.autopilot.enabled,!e.app.data.vessels.self.autopilot.enabled))}}function np(n,t){if(n&1){let e=T();a(0,"div",57)(1,"button",103),_("click",function(){p(e);let o=l(3);return d(o.toggleRadar())}),b(2,"mat-icon",35),s(),b(3,"br"),m(4,"\xA0"),b(5,"br"),s()}if(n&2){let e=l(3);u(),x("ngClass",Q(1,re,e.app.uiCtrl().radarLayer,!e.app.uiCtrl().radarLayer))}}function op(n,t){if(n&1){let e=T();a(0,"div",65)(1,"div",92),f(2,Qc,3,0,"button",93),b(3,"br"),m(4,"\xA0"),b(5,"br"),m(6,"\xA0 "),s(),f(7,Yc,7,0,"div",57),f(8,Jc,7,6,"div",57),a(9,"div",57)(10,"button",94),_("click",function(){p(e);let o=l(2);return d(o.toggleConstrainMapZoom())}),a(11,"mat-icon"),m(12,"zoom_in_map"),s()(),b(13,"br"),m(14,"\xA0"),b(15,"br"),s(),a(16,"div",57)(17,"button",95),_("click",function(){p(e);let o=l(2);return d(o.invertFeatureLabelColor())}),a(18,"mat-icon"),m(19),s()(),b(20,"br"),m(21,"\xA0"),b(22,"br"),s(),f(23,ep,5,0,"div",57),f(24,tp,5,2,"div",57),f(25,ip,6,4,"div",57),f(26,np,6,4,"div",57),s()}if(n&2){let e=l(2);u(2),h(e.app.instrumentPanelAvailable()&&!e.isInteracting()&&!e.app.data.vessels.activeId?2:-1),u(5),h(e.audioStatus()!=="running"?7:-1),u(),h(e.app.isTopWindow()&&e.displayFullscreen().enabled?8:-1),u(2),x("ngClass",Q(10,re,e.app.uiConfig().mapConstrainZoom,!e.app.uiConfig().mapConstrainZoom)),u(7),x("ngClass",Q(13,re,e.app.uiConfig().invertColor,!e.app.uiConfig().invertColor)),u(2),J("invert_colors"),u(4),h(e.app.config.experiments?23:-1),u(),h(e.app.config.resources.video.enable&&e.app.config.resources.video.url?24:-1),u(),h(e.app.featureFlags().autopilotApi&&e.app.data.vessels.self.autopilot.default&&e.app.config.display.fab!=="autopilot"?25:-1),u(),h(e.app.featureFlags().radarApi&&e.radarApi.radarId()&&e.app.config.display.fab!=="radar"?26:-1)}}function rp(n,t){if(n&1){let e=T();a(0,"div",56)(1,"div",57)(2,"button",58)(3,"mat-icon"),m(4,"menu"),s()()()(),f(5,yc,24,22,"div",59),f(6,jc,11,10,"div",60),a(7,"div",61),f(8,Wc,3,0,"div",62),f(9,Hc,3,0,"div",62),f(10,Xc,3,0,"div",62),f(11,Zc,3,0,"div",62),f(12,Kc,3,0,"div",62),s(),a(13,"div",63)(14,"div",57)(15,"button",64),_("click",function(){p(e);let o=l();return d(o.toggleToolbarButtons())}),a(16,"mat-icon"),m(17),s()()()(),f(18,op,27,16,"div",65)}if(n&2){let e=l(),i=fe(99);u(2),x("disabled",e.isInteracting())("matBadgeHidden",e.app.isLoggedIn())("matMenuTriggerFor",i),u(3),h(e.app.uiConfig().toolbarButtons?5:-1),u(),h(e.leftMenuCtrl().leftMenuPanel?6:-1),u(2),h(!e.wakeLock.enabled()&&e.wakeLock.isAvailable?8:-1),u(),h(e.app.uiConfig().showCourseData?-1:9),u(),h(e.app.uiConfig().showAisTargets?-1:10),u(),h(e.app.uiConfig().showNotes?-1:11),u(),h(e.stream.watchDogAlarm()?12:-1),u(3),x("matTooltip",e.app.uiConfig().toolbarButtons?"Hide Toobars":"Show Toobars"),u(2),J(e.app.uiConfig().toolbarButtons?"apps":"apps_outage"),u(),h(e.app.uiConfig().toolbarButtons?18:-1)}}function ap(n,t){if(n&1&&(a(0,"div",29)(1,"div",104)(2,"mat-icon"),m(3,"access_time"),s(),a(4,"b"),m(5,"Playback:"),s()(),a(6,"div",105),m(7),s()()),n&2){let e=l();u(7),J(e.playbackTime())}}function sp(n,t){if(n&1){let e=T();a(0,"alert-list",109),_("closed",function(){p(e);let o=l(2);return d(o.toggleAlertList(!1))}),s()}if(n&2){let e=l(2);x("alerts",e.notiMgr.alerts())}}function lp(n,t){if(n&1){let e=T();a(0,"span",108)(1,"fb-alert",110),_("nextPoint",function(){p(e);let o=l(2);return d(o.course.coursePointIndex(o.course.courseData().pointIndex+1))})("routeEnd",function(){p(e);let o=l(2);return d(o.clearDestination())}),s()()}if(n&2){let e=t.$implicit,i=l(2);u(),x("audioStatus",i.audioStatus())("alert",e[1])("acknowledged",e[1].acknowledged)("silenced",e[1].silenced)("doNotPlaySound",i.app.config.display.muteSound)}}function cp(n,t){if(n&1&&(f(0,sp,1,1,"alert-list",106),a(1,"div",107),ot(2,lp,2,5,"span",108,Hl),s()),n&2){let e=l();h(e.app.uiCtrl().alertList?0:-1),u(2),rt(e.notiMgr.alerts())}}function pp(n,t){if(n&1){let e=T();a(0,"fb-interact-help",111),_("cancel",function(){p(e);let o=l();return d(o.closeInteraction())}),s()}}function dp(n,t){if(n&1){let e=T();a(0,"route-nextpoint",114),_("selected",function(o){p(e);let r=l(2);return d(r.routeNextPoint(o))}),s()}if(n&2){let e=l(2);x("index",e.course.courseData().pointIndex)("total",e.course.courseData().pointTotal)("circular",e.app.data.activeRouteCircular)}}function up(n,t){if(n&1&&b(0,"ap-dial-text",124),n&2){let e=l(3);x("title","VMG")("value",e.app.formatSpeed(e.course.courseData().vmg,!0))("units",e.app.formattedSpeedUnits)}}function mp(n,t){if(n&1&&b(0,"ap-dial-text",124),n&2){let e=l(3);x("title","BRG")("value",e.course.courseData().bearing.value.toFixed(1))("units",e.course.courseData().bearing.type==="M"?"deg (M)":"deg (T)")}}function _p(n,t){if(n&1&&b(0,"ap-dial-text",124),n&2){let e=l(3);x("title","XTE")("value",e.course.courseData().xte>10?e.course.courseData().xte.toFixed(1):e.course.courseData().xte.toFixed(3))("units",e.convert.getSymbol(e.app.config.units.distance))}}function fp(n,t){if(n&1&&b(0,"ap-dial-text",127),n&2){let e=l(4);x("title","DTG")("value",e.course.courseData().route.dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function hp(n,t){if(n&1&&b(0,"ap-dial-ttg",128),n&2){let e=l(4);x("value",e.course.courseData().route.ttg)}}function gp(n,t){if(n&1&&b(0,"ap-dial-eta",129),n&2){let e=l(4);x("title","ETA")("value",e.course.courseData().route.eta)}}function Cp(n,t){if(n&1&&(f(0,fp,1,3,"ap-dial-text",127),f(1,hp,1,1,"ap-dial-ttg",128),f(2,gp,1,2,"ap-dial-eta",129)),n&2){let e=l(3);h(e.course.courseData().route.dtg?0:-1),u(),h(e.course.courseData().route.ttg?1:-1),u(),h(e.course.courseData().route.eta?2:-1)}}function vp(n,t){if(n&1&&b(0,"ap-dial-text",124),n&2){let e=l(3);x("title","DTG")("value",e.course.courseData().dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function bp(n,t){if(n&1&&b(0,"ap-dial-ttg",125),n&2){let e=l(3);x("value",e.course.courseData().ttg)}}function wp(n,t){if(n&1&&b(0,"ap-dial-eta",126),n&2){let e=l(3);x("title","ETA")("value",e.course.courseData().eta)}}function xp(n,t){if(n&1){let e=T();a(0,"div",113)(1,"div",115)(2,"div",116)(3,"button",117),_("click",function(){p(e);let o=l(2);return d(o.openCourseSettings())}),b(4,"mat-icon",118),s(),b(5,"br"),a(6,"button",119),_("click",function(){p(e);let o=l(2);return d(o.autopilot.engage())}),b(7,"mat-icon",120),s()(),a(8,"div")(9,"button",121),_("click",function(){p(e);let o=l(2);return d(o.course.courseRestart())}),a(10,"mat-icon"),m(11,"replay"),s()(),b(12,"br"),a(13,"button",122),_("click",function(){p(e);let o=l(2);return d(o.course.courseReverse())}),a(14,"mat-icon",123),m(15," multiple_stop "),s()()()(),f(16,up,1,3,"ap-dial-text",124),f(17,mp,1,3,"ap-dial-text",124),f(18,_p,1,3,"ap-dial-text",124),f(19,Cp,3,3),f(20,vp,1,3,"ap-dial-text",124),f(21,bp,1,1,"ap-dial-ttg",125),f(22,wp,1,2,"ap-dial-eta",126),s()}if(n&2){let e=l(2);u(6),x("disabled",!e.app.featureFlags().autopilotApi||!e.app.data.vessels.self.autopilot.default),u(),x("color",e.navDataPanel().apModeColor),u(6),x("disabled",!e.app.data.activeRoute),u(),x("color",e.app.data.activeRouteReversed?"primary":"none"),u(2),h(e.course.courseData().vmg?16:-1),u(),h(e.course.courseData().bearing.value?17:-1),u(),h(e.course.courseData().xte?18:-1),u(),h(e.app.data.activeRoute?19:-1),u(),h(e.course.courseData().dtg?20:-1),u(),h(e.course.courseData().ttg?21:-1),u(),h(e.course.courseData().eta?22:-1)}}function Ep(n,t){if(n&1&&(a(0,"div",30),f(1,dp,1,3,"route-nextpoint",112),f(2,xp,23,11,"div",113),s()),n&2){let e=l();u(),h(e.navDataPanel().nextPointCtrl?1:-1),u(),h(e.app.config.ui.showCourseData&&e.navDataPanel().show?2:-1)}}function Tp(n,t){if(n&1&&b(0,"mfb-container",31),n&2){let e=l();x("action",e.app.config.display.fab)}}var Ke=class n{sideright;navDataPanel=N({show:!1,nextPointCtrl:!1,apModeColor:"",apModeText:""});playbackTime=N(null);leftMenuCtrl=N({leftMenuPanel:!1,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1});displayFullscreen=N({active:!1,enabled:document.fullscreenEnabled});features={playbackAPI:!0};mode=0;timers=[];instUrl=N(null);selFavourite=-1;vidUrl=N(null);convert=ct;obsList=[];streamOptions={options:null,toMode:null};mapSetFocus=N("");mapCenter=N([0,0]);audioStatus=N("");isInteracting=Ut(()=>this.mapInteract.isMeasuring()||this.mapInteract.isDrawing()||this.mapInteract.isModifying()||this.mapInteract.isBoxSelecting());app=E(Di);infoPanel=E(gn);mapInteract=E(Hi);anchor=E(pn);notiMgr=E(sn);course=E(Fi);stream=E(Mi);skres=E(Vi);skresOther=E(Pi);signalk=E(Ii);dom=E(Kt);overlayContainer=E(li);bottomSheet=E(pi);dialog=E(ci);wakeLock=E(ki);settings=E(fn);autopilot=E(un);radarApi=E(Ri);constructor(){this.app.data.vessels.active=this.app.data.vessels.self,le(()=>{this.app.debug("** skAuthChange Event:",this.app.skAuthChange()),this.handleSKAuthChange()}),le(()=>{this.app.debug("** kioskMode Event:",this.app.kioskMode()),this.toggleSuppressContextMenu(this.app.kioskMode())}),le(()=>{this.handleSelectionEnded(this.mapInteract.selection())}),le(()=>{this.app.uiConfig(),this.handleSettingChangeEvent(void 0)}),le(()=>{this.infoPanel.opened()||this.app.instrumentPanel().activate?this.sideright?.opened||this.openDrawer():this.sideright?.opened&&this.closeDrawer()})}ngAfterViewInit(){setTimeout(()=>{this.app.config.display.disableWakelock||this.wakeLock.enable()},500)}enableAudio(){this.app.audio.context&&this.app.audio.context.resume()}ngOnInit(){this.audioStatus.update(()=>this.app.audio.context.state),this.app.debug("audio state:",this.audioStatus()),this.app.audio.context.onstatechange=()=>{this.app.debug("audio statechange:",this.app.audio.context.state),this.audioStatus.update(()=>this.app.audio.context.state)},this.mapCenter.update(()=>this.app.config.map.center),this.app.instrumentPanel.update(t=>Object.assign({},t,{activate:!this.app.config.display.plugins.startOnOpen})),this.setDarkTheme(),this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),this.connectSignalKServer(),this.obsList.push(this.stream.delta$().subscribe(t=>this.onMessage(t))),this.obsList.push(this.stream.connect$().subscribe(t=>this.onConnect(t))),this.obsList.push(this.stream.close$().subscribe(t=>this.onClose(t))),this.obsList.push(this.stream.error$().subscribe(t=>this.onError(t))),this.obsList.push(this.stream.trail$().subscribe(t=>this.handleTrailUpdate(t))),this.obsList.push(this.settings.change$.subscribe(t=>this.handleSettingChangeEvent(t))),document.addEventListener("fullscreenchange",()=>{this.displayFullscreen.update(t=>Object.assign({},t,{active:!!document.fullscreenElement}))}),document.addEventListener("fullscreenerror",t=>{this.displayFullscreen.update(e=>Object.assign({},e,{active:!1}))})}ngOnDestroy(){this.stopTimers(),this.stream.terminate(),this.signalk.disconnect(),this.obsList.forEach(t=>t.unsubscribe())}getOrientation(){return this.app.uiConfig().mapNorthUp?"rotate(0deg)":"rotate("+(0-this.app.data.vessels.active.orientation)+"rad)"}toggleRadar(){if(!this.radarApi.hasWebGL){this.radarApi.showWebGLMessage();return}this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!t.radarLayer})),this.focusMap()}toggleMoveMap(t=!1){this.app.uiConfig.update(e=>{let i=t?!1:!e.mapMove;return Object.assign({},e,{mapMove:i})}),this.focusMap()}toggleNorthUp(){this.app.uiConfig.update(t=>Object.assign({},t,{mapNorthUp:!t.mapNorthUp})),this.focusMap()}toggleToolbarButtons(){this.app.uiConfig.update(t=>Object.assign({},t,{toolbarButtons:!t.toolbarButtons})),this.focusMap()}toggleConstrainMapZoom(){this.app.uiConfig.update(t=>Object.assign({},t,{mapConstrainZoom:!t.mapConstrainZoom})),this.skres.setMapZoomRange(),this.focusMap()}invertFeatureLabelColor(){this.app.uiConfig.update(t=>Object.assign({},t,{invertColor:!t.invertColor})),this.focusMap()}toggleAlertList(t){this.app.uiCtrl.update(e=>Object.assign({},e,{alertList:t}))}toggleAutopilotConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{autopilotConsole:t}))}toggleRouteBuilderConsole(t){this.app.uiCtrl.update(e=>Object.assign({},e,{routeBuilder:t}))}toggleSuppressContextMenu(t){this.app.uiCtrl.update(e=>Object.assign({},e,{suppressContextMenu:t}))}toggleFullscreen(){let t=document.documentElement,e=t.requestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullscreen||t.msRequestFullscreen;e&&(document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():e.call(t),this.focusMap())}setDarkTheme(){let t=window.matchMedia("(prefers-color-scheme: dark)");this.app.config.display.darkMode.source===0&&t.matches||this.app.config.display.darkMode.source===1&&this.app.data.vessels.self.environment.mode==="night"||this.app.config.display.darkMode.source===-1?(this.overlayContainer.getContainerElement().classList.add("dark-theme"),this.app.config.display.darkMode.enabled=!0):(this.overlayContainer.getContainerElement().classList.remove("dark-theme"),this.app.config.display.darkMode.enabled=!1)}formatInstrumentsUrl(){let t=`${this.app.hostDef.url}${this.app.config.display.plugins.instruments}`,e=this.app.config.display.plugins.parameters?this.app.config.display.plugins.parameters.length>0&&this.app.config.display.plugins.parameters[0]!=="?"?`?${this.app.config.display.plugins.parameters}`:this.app.config.display.plugins.parameters:"";return e?`${t}/${e}`:t}selectPlugin(t=!1){t?this.selFavourite===-1?this.selFavourite=0:this.selFavourite===this.app.config.display.plugins.favourites.length-1?this.selFavourite=-1:this.selFavourite++:this.selFavourite===-1?this.selFavourite=this.app.config.display.plugins.favourites.length-1:this.selFavourite===0?this.selFavourite=-1:this.selFavourite--;let e=this.selFavourite===-1?this.formatInstrumentsUrl():`${this.app.hostDef.url}${this.app.config.display.plugins.favourites[this.selFavourite]}`;this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(e))}onInfoLayerParamChange(t){this.skresOther.infoLayerParams.update(()=>[t])}handleContextMenuSelection(t){switch(t){case"cleartrail":this.clearTrail(this.app.data.serverTrail);break;case"trail2route":this.trailToRoute();break;case"cleardestination":this.clearDestination();break;case"anchor":this.displayLeftMenu("anchorWatch",!0);break;case"weather_forecast":this.showWeather("forecast");break}}trailToRoute(){return F(this,null,function*(){let{Trail2RouteDialog:t}=yield import("./chunk-WDCDO7ZN.js");this.dialog.open(t,{disableClose:!0,data:{trail:this.app.selfTrail()}}).afterClosed().subscribe(e=>{e.result&&this.skres.newRouteAt(e.data),this.focusMap()})})}showWeather(t){t==="forecast"&&this.bottomSheet.open(hn,{disableClose:!0,data:{title:"Forecast",position:this.app.data.vessels.self.position,subTitle:"Location: Vessel Position"}}).afterDismissed().subscribe(()=>{this.focusMap()})}openExperiment(t){switch(t.choice){case"debugCapture":window.isSecureContext?(navigator.clipboard.writeText(JSON.stringify({data:this.app.data,config:this.app.config})),this.app.showMessage("Debug data catpured to clipboard.")):this.app.showAlert("Feature Unavailable",`This feature is only available in a secure context!
5
+ e.g. https, http://localhost, http://127.0.0.1`);break;default:this.app.config.resources.paths.includes(t.choice)&&this.bottomSheet.open(on,{disableClose:!0,data:{path:t.choice}}).afterDismissed().subscribe(()=>{this.focusMap()})}}openCourseSettings(){this.bottomSheet.open(Oi,{disableClose:!0,data:{title:"Course Settings"}}).afterDismissed().subscribe(()=>{this.focusMap()})}handleSKAuthChange(){this.signalk.getLoginStatus().subscribe(t=>{this.app.data.loginRequired=t.authenticationRequired??!1,this.app.isLoggedIn.update(()=>t.status==="loggedIn"),this.signalk.get("/plugins/freeboard-sk").subscribe(()=>{this.app.debug("User Authenticated"),this.app.isLoggedIn.set(!0)},e=>{e.status===401&&(this.app.debug("User NOT Authenticated"),this.app.isLoggedIn.set(!1))})})}connectSignalKServer(){this.app.data.selfId=null,this.app.data.server=null,this.signalk.proxied=this.app.config.signalk.proxied,this.signalk.connect(this.app.hostDef.name,this.app.hostDef.port,this.app.hostDef.ssl).subscribe({next:()=>{this.signalk.authToken=this.app.getFBToken(),this.app.watchSKLogin(),this.app.loadUserConfigfromServer().then(t=>{if(!t&&this.app.launchStatus.result==="first_run"){let e=this.app.showWelcome(!1);e&&e.afterClosed().subscribe(i=>{i&&this.openSettings()})}else{let e=this.app.showWelcome(!0)}}).finally(()=>{this.fetchResources(!0)}),this.getFeatures(),this.app.data.server=this.signalk.server.info,this.openSKStream()},error:()=>{this.app.showMessage("Unable to contact Signal K server! (Retrying in 5 secs)",!1,5e3),setTimeout(()=>this.connectSignalKServer(),5e3)}})}getFeatures(){return F(this,null,function*(){let t={anchorApi:!1,autopilotApi:!1,weatherApi:!1,radarApi:!1,notificationApi:!1,buddyList:!1};this.signalk.get("/signalk/v2/features?enabled=1").subscribe(i=>{t.weatherApi=i.apis.includes("weather"),t.autopilotApi=i.apis.includes("autopilot"),t.radarApi=i.apis.includes("radar"),t.notificationApi=i.apis.includes("notifications");let o={charts:!1,pmTiles:!1};i.plugins.forEach(r=>{r.id==="anchoralarm"&&(this.app.debug("*** found anchoralarm plugin"),t.anchorApi=!0),r.id==="signalk-buddylist-plugin"&&(this.app.debug("*** found buddylist plugin"),t.buddyList=!!Er.satisfies(r.version,">1.2.0")),r.id==="signalk-pmtiles-plugin"&&(this.app.debug("*** found PMTiles plugin"),o.pmTiles=!0)}),this.app.featureFlags.update(r=>Object.assign({},r,t))},()=>{this.app.debug("*** Features API not present!")}),this.app.fetchUnitPrefsFromSKServer();let e=yield this.skresOther.initCustomCollections();this.app.featureFlags.update(i=>Object.assign({},i,e))})}startTimers(){this.app.debug("Starting Trail logging timer..."),this.timers.push(setInterval(()=>{this.processTrail()},5e3))}stopTimers(){this.app.debug("Stopping timers:"),this.timers.forEach(t=>clearInterval(t)),this.timers=[]}processTrail(t){if(!this.app.config.vessels.trail)return;let e=this.app.selfTrail().slice(-1);if(this.app.data.vessels.showSelf){if(e.length===0){this.app.selfTrail.update(o=>{let r=[].concat(o);return r.push(this.app.data.vessels.self.position),r});return}(this.app.data.vessels.self.position[0]!==e[0][0]||this.app.data.vessels.self.position[1]!==e[0][1])&&this.app.selfTrail.update(o=>{let r=[].concat(o);return r.push(this.app.data.vessels.self.position),r})}if(!t||t.length===0)this.app.selfTrail().length%60===0&&this.app.data.serverTrail&&this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer(),this.app.selfTrail.update(o=>o.slice(-5e3));else{let o=t.slice(-1),r=o.length!==0?o[0].slice(-1):t.length>1?t[t.length-2].slice(-1):[];this.app.selfTrail.update(()=>r)}let i=this.mode===1?"history":"self";this.app.db.saveTrail(i,this.app.selfTrail())}handleTrailUpdate(t){t.action==="get"&&t.mode==="trail"&&(this.app.config.vessels.trailFromServer&&this.app.selfTrailFromServer.update(()=>t.data),this.processTrail(t.data))}handleSettingChangeEvent(t){t?.includes("darkTheme")&&this.setDarkTheme(),t?.includes("headingAttribute")&&(this.app.debug("True / Magnetic selection changed.."),this.app.data.vessels.self.heading=this.app.useMagnetic?this.app.data.vessels.self.headingMagnetic:this.app.data.vessels.self.headingTrue,this.app.data.vessels.self.cog=this.app.useMagnetic?this.app.data.vessels.self.cogMagnetic:this.app.data.vessels.self.cogTrue,this.app.data.vessels.self.wind.direction=this.app.useMagnetic?this.app.data.vessels.self.wind.mwd:this.app.data.vessels.self.wind.twd,this.app.data.vessels.aisTargets.forEach(e=>{e.heading=this.app.useMagnetic?e.headingMagnetic:e.headingTrue,e.cog=this.app.useMagnetic?e.cogMagnetic:e.cogTrue,e.wind.direction=this.app.useMagnetic?e.wind.mwd:e.wind.twd}),this.app.sTrueMagChoice.set(this.app.config.units.headingAttribute)),(t?.includes("pluginParameters")||t?.includes("pluginInstruments")||t?.includes("pluginStartOnOpen"))&&(this.instUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(this.formatInstrumentsUrl())),this.app.instrumentPanel.update(e=>Object.assign({},e,{activate:this.app.config.display.plugins.startOnOpen?!!e.open:!0}))),t?.includes("videoUrl")&&this.vidUrl.update(()=>this.dom.bypassSecurityTrustResourceUrl(`${this.app.config.resources.video.url}`)),(t?.includes("vesselTrail")||t?.includes("trailFromServer"))&&this.app.config.vessels.trail&&(this.app.config.vessels.trailFromServer?this.stream.requestTrailFromServer():this.app.data.serverTrail=!1)}focusMap(){this.mapSetFocus.update(()=>Date().valueOf())}openDrawer(){this.sideright.open()}closeDrawer(){this.sideright.close()}handleInstrumentPanelClick(){let t=!this.app.instrumentPanel().open;t&&this.infoPanel.opened()&&this.infoPanel.close(),this.app.instrumentPanel.update(e=>Object.assign({},e,{open:t,activate:this.app.config.display.plugins.startOnOpen?t:e.activate}))}closeInstrumentPanel(){this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!1,activate:this.app.config.display.plugins.startOnOpen?!1:t.activate})),this.focusMap()}displayLeftMenu(t="",e=!1){let i={leftMenuPanel:e,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1};switch(t){case"routeList":i.routeList=e;break;case"waypointList":i.waypointList=e;break;case"chartList":i.chartList=e;break;case"noteList":i.noteList=e;break;case"regionList":i.regionList=e;break;case"trackList":i.trackList=e;break;case"anchorWatch":i.anchorWatch=e;break;case"aisList":i.aisList=e;break;case"resourceGroups":i.resourceGroups=e;break;case"infoLayerList":i.infoLayerList=e;break;default:i.leftMenuPanel=!1}this.leftMenuCtrl.update(()=>i),e||this.focusMap()}handleResourceInfo(t,e){t==="notes"&&!this.app.useInfoPanel()?this.skres.noteSelected(e,!1):t==="regions"&&!this.app.useInfoPanel()?this.skres.editRegionInfo(e):t==="waypoints"&&!this.app.useInfoPanel()?this.skres.editWaypointInfo(e):t==="routes"&&!this.app.useInfoPanel()?this.skres.editRouteInfo(e):this.infoPanel.open(t,e)}openAbout(){return F(this,null,function*(){let{AboutDialog:t}=yield import("./chunk-TLBNKF2R.js");this.dialog.open(t,{disableClose:!1,data:{name:this.app.name,version:this.app.version,description:this.app.description,logo:this.app.logo,url:this.app.url}}).afterClosed().subscribe(()=>this.focusMap())})}openSettings(){return F(this,null,function*(){let{SettingsDialog:t}=yield import("./chunk-V6RYVIHA.js");this.dialog.open(t,{disableClose:!0,data:{},maxWidth:"1000px",minHeight:"80vh"}).afterClosed().subscribe(()=>{this.focusMap()})})}importFile(t){t.data.indexOf("<gpx ")!==-1?this.processGPX(t):t.data.indexOf('"type": "FeatureCollection",')!==-1?this.processGeoJSON(t):this.app.showAlert("Import","File format not supported!"),this.focusMap()}processGPX(t){return F(this,null,function*(){let{GPXImportDialog:e}=yield import("./chunk-DT3KOU7O.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(i=>{if(typeof i.errCount>"u"||i.errCount<0){this.focusMap();return}this.fetchResources(),i.errCount===0?this.app.showMsgBox("GPX Load","GPX file resources loaded successfully."):this.app.showErrorList(i.errList),this.focusMap()})})}exportToGPX(){return F(this,null,function*(){let{GPXExportDialog:t}=yield import("./chunk-WIUBUSFZ.js");this.dialog.open(t,{disableClose:!0,data:{routes:this.skres.routes(),tracks:[this.app.selfTrail()]}}).afterClosed().subscribe(e=>{if(e<0){this.focusMap();return}e===0?this.app.showMsgBox("GPX Save","Resources saved to GPX file successfully."):this.app.showAlert("GPX Save","Error saving resources to GPX file!"),this.focusMap()})})}processGeoJSON(t){return F(this,null,function*(){let{GeoJSONImportDialog:e}=yield import("./chunk-57OGK3K6.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(i=>{i<0||(this.fetchResources(),i===0?this.app.showMsgBox("GeoJSON Load","GeoJSON features loaded successfully."):this.app.showAlert("GeoJSON Load",`Completed with errors!
6
+ Not all features were loaded.`),this.focusMap())})})}importResourceSet(){return F(this,null,function*(){let{ResourceImportDialog:t}=yield import("./chunk-KII72BJM.js");this.dialog.open(t,{disableClose:!0,data:{}}).afterClosed().subscribe(e=>{if(e){try{let i=JSON.parse(e.data);this.skres.postToServer(e.path,i)}catch{this.app.showAlert("Load Resource",`Resources were not loaded!
7
+ Invalid JSON.`)}this.focusMap()}})})}showLogin(t,e=!0,i){return F(this,null,function*(){let{LoginDialog:o}=yield import("./chunk-TLBNKF2R.js");this.dialog.open(o,{disableClose:!0,data:{message:t||"Login to Signal K server."}}).afterClosed().subscribe(r=>{r.cancel?(this.app.hasAuthToken.set(!1),this.signalk.isLoggedIn().subscribe(c=>{this.app.isLoggedIn.set(c)}),i?this.showLogin(null,!1,!0):e&&this.app.showAlert("Login Cancelled:","Update operations are NOT available until you have authenticated to the Signal K server.")):this.signalk.login(r.user,r.pwd).subscribe({next:c=>{this.app.persistToken(c.token),this.app.loadUserConfigfromServer().then(v=>{v&&this.fetchResources(!0)}),i&&this.queryAfterConnect(),this.app.isLoggedIn.set(!0)},error:()=>{this.app.persistToken(null),this.signalk.isLoggedIn().subscribe(c=>{this.app.isLoggedIn.set(c)}),i?this.app.showConfirm("Invalid Username or Password.","Authentication Failed:","Try Again").subscribe(()=>{this.showLogin(null,!1,!0)}):this.app.showConfirm(`Invalid Username or Password.
8
+ Note: Choosing CLOSE may make operations requiring authentication unavailable.`,"Authentication Failed:","Try Again","Close").subscribe(c=>{c&&this.showLogin()})}}),this.focusMap()})})}showPlaybackSettings(){return F(this,null,function*(){let{PlaybackDialog:t}=yield import("./chunk-AZGA6QFQ.js");this.dialog.open(t,{disableClose:!1}).afterClosed().subscribe(e=>{e.result?this.switchMode(1,e.query):this.switchMode(0),this.focusMap()})})}centerAndZoom(t,e){this.mapCenter.update(()=>t),typeof e=="number"&&(this.app.config.map.zoomLevel=e)}centerVessel(){let t=this.app.calcMapCenter();this.centerAndZoom(t)}toggleAisTargets(){this.app.config.ui.showAisTargets=!this.app.config.ui.showAisTargets,this.app.config.ui.showAisTargets&&this.stream.aisTargetUpdated(),this.app.saveConfig()}toggleCourseData(){this.app.config.ui.showCourseData=!this.app.config.ui.showCourseData,this.app.saveConfig()}toggleNotes(){this.app.config.ui.showNotes=!this.app.config.ui.showNotes,this.app.saveConfig()}clearTrail(t=!1){let e=()=>{this.app.data.serverTrail?this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer():this.app.selfTrail.set([])};t?e():this.app.data.serverTrail||this.app.showConfirm("Clear Vessel Trail","Do you want to delete the vessel trail?").subscribe(i=>{i&&e()})}clearCourseData(){this.course.initCourseData()}clearDestination(){this.course.clearCourse()}activateRoute(t){let e=this.skres.fromCache("routes",t),i=pt.closestForwardPoint(e[1].feature.geometry.coordinates,this.app.data.vessels.self.position,ct.radiansToDegrees(this.app.data.vessels.self.heading));if(i===-1){this.app.showConfirm(`Closest point is behind vessel!
9
+ Do you want to start from the first point?`,"Start Route").subscribe(o=>{o&&this.course.activateRoute(t)});return}this.course.activateRoute(t,i)}routeNextPoint(t){this.course.coursePointIndex(t),this.focusMap()}featureProperties(t){return F(this,null,function*(){let e;if(t.type==="route")try{this.app.sIsFetching.set(!0),e=yield this.skres.fromServer("routes",t.id),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(Ni,{disableClose:!0,data:{title:"Route Properties",resource:[t.id,e,!1],type:t.type}}).afterDismissed().subscribe(i=>{i&&this.clearDestination(),this.focusMap()})}catch(i){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(i)}else if(t.type==="aton"||t.type==="meteo"){let i,o,r;t.type==="meteo"?(e=this.app.data.meteo.get(t.id),i="Meteo Properties",o="air",r=t.type):t.id.slice(0,3)==="sar"?(e=this.app.data.sar.get(t.id),i="SaR Properties",o="tour",r="sar"):(e=this.app.data.atons.get(t.id),i="AtoN Properties",o="beenhere",r="aton"),e&&this.bottomSheet.open(ji,{disableClose:!0,data:{title:i,target:e,id:t.id,icon:o,type:r}}).afterDismissed().subscribe(()=>this.focusMap())}else if(t.type==="aircraft")e=this.app.data.aircraft.get(t.id),e&&this.bottomSheet.open(Wi,{disableClose:!0,data:{title:"Aircraft Properties",target:e,id:t.id}}).afterDismissed().subscribe(()=>this.focusMap());else if(t.type==="alarm")this.notiMgr.showAlertInfo(t.id);else if(t.type==="rset")e=this.skresOther.fromResourceSetCache(t.id),e&&this.bottomSheet.open(rn,{disableClose:!0,data:{id:t.id,item:e}}).afterDismissed().subscribe(()=>{this.focusMap()});else{let i=t.type==="self"?t.type:t.id.includes("vessels.")?t.id.split(".")[1]:t.id;try{this.app.sIsFetching.set(!0),e=yield this.skres.vesselFromServer(i),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(zi,{disableClose:!0,data:{title:"Vessel Properties",target:e}}).afterDismissed().subscribe(()=>this.focusMap())}catch(o){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(o)}}})}mapDragOver(t){t.preventDefault()}mapDrop(t){if(t.preventDefault(),t.dataTransfer.files)if(t.dataTransfer.files.length>1)this.app.showAlert("Load Resources",`Multiple files provided!
10
+ Please select only one file for processing.`);else{let e=new FileReader;if(e.onerror=()=>{this.app.showAlert("File Load error","There was an error reading the file contents!")},!t.dataTransfer.files[0].name)return;let i=t.dataTransfer.files[0].name;e.onload=()=>{this.processGPX({name:i,data:e.result})},e.readAsText(t.dataTransfer.files[0])}}switchActiveVessel(t=null){if(this.app.data.vessels.activeId=t,!t)this.app.data.vessels.active=this.app.data.vessels.self;else{let e=this.app.data.vessels.aisTargets.get(t);e?(this.app.data.vessels.active=e,this.sideright.close()):(this.app.data.vessels.active=this.app.data.vessels.self,this.app.data.vessels.activeId=null)}this.app.data.activeRoute=null,this.clearCourseData(),this.app.debug(`** Active vessel: ${this.app.data.vessels.activeId} `),this.app.debug(this.app.data.vessels.active)}switchMode(t,e){this.app.debug(`switchMode from: ${this.mode} to ${t}`),t===1?(this.app.db.saveTrail("self",this.app.selfTrail()),this.app.selfTrail.set([])):this.app.db.getTrail("self").then(i=>{this.app.selfTrail.update(()=>i&&i.value?i.value:[])}),this.switchActiveVessel(),this.openSKStream(e,t,!0)}showSelectMode(){this.mode===0?this.app.showConfirm("Do you want to change to History Playback mode?","Switch Mode").subscribe(t=>{t&&this.showPlaybackSettings()}):this.app.showConfirm("Do you want to exit History Playback mode?","Exit History Playback").subscribe(t=>{t&&this.switchMode(0)})}handleSelectionEnded(t){t.mode==="seedChart"&&this.skres.seedChartCache(t.data,t.bbox)}drawFeature(t){this.mapInteract.startDrawing(t)}handleDrawEnded(t){switch(this.mapInteract.isDrawing(),this.mapInteract.draw.resourceType){case"note":let e={position:t.coordinates};this.mapInteract.draw.properties.group&&(e.group=this.mapInteract.draw.properties.group),this.skres.showNoteEditor(e);break;case"waypoint":this.skres.newWaypointAt(t.coordinates);break;case"route":this.skres.newRouteAt(t.coordinates);break;case"region":let i=new Li;i.feature.geometry.coordinates=[pt.normaliseCoords(t.coordinates)],this.skres.newRegion(i);break}}closeInteraction(){if(this.mapInteract.isBoxSelecting()&&this.mapInteract.stopBoxSelection(),this.mapInteract.isMeasuring()&&this.mapInteract.stopMeasuring(),this.mapInteract.isDrawing()&&this.mapInteract.stopDrawing(),this.mapInteract.isModifying()&&(this.mapInteract.stopModifying(),this.app.data.activeRouteIsEditing=!1,this.mapInteract.draw.forSave?.id)){if(this.mapInteract.draw.forSave.id==="anchor"){this.mapInteract.draw.forSave=null,this.focusMap();return}this.app.showConfirm(`Do you want to save the changes made to ${this.mapInteract.draw.forSave.id.split(".")[0]}?`,"Save Changes").subscribe(t=>{let e=this.mapInteract.draw.forSave.id.split(".");t?(e[0]==="route"&&this.skres.updateRouteCoords(e[1],this.mapInteract.draw.forSave.coords,this.mapInteract.draw.forSave.coordsMetadata),e[0]==="waypoint"&&(this.skres.updateWaypointPosition(e[1],this.mapInteract.draw.forSave.coords),e[1]===this.app.data.activeWaypoint&&this.course.setDestination({latitude:this.mapInteract.draw.forSave.coords[1],longitude:this.mapInteract.draw.forSave.coords[0]})),e[0]==="note"&&this.skres.updateNotePosition(e[1],this.mapInteract.draw.forSave.coords),e[0]==="region"&&this.skres.updateRegionCoords(e[1],this.mapInteract.draw.forSave.coords)):(e[0]==="route"&&this.skres.refreshRoutes(),e[0]==="waypoint"&&this.skres.refreshWaypoints(),e[0]==="note"&&this.skres.refreshNotes(),e[0]==="region"&&this.skres.refreshRegions()),this.mapInteract.draw.forSave=null,this.focusMap()})}}fetchResources(t=!1){this.skres.refreshRoutes(),this.skres.refreshWaypoints(),this.skres.refreshCharts(),this.skres.refreshRegions(),t&&this.fetchOtherResources()}fetchOtherResources(){this.skres.refreshTracks(),this.skresOther.refreshResourceSetsInBounds(),this.skresOther.refreshInfoLayers()}openSKStream(t=null,e=0,i=!1){if(i){this.streamOptions={options:t,toMode:e},this.stream.close();return}this.stream.sendConfig(this.app.config),this.stream.open(t)}queryAfterConnect(){this.signalk.server.info.version.split(".")[0]==="1"&&this.app.showAlert("Unsupported Server Version:",`The connected Signal K server is not supported by this version of Freeboard-SK.
11
+ Signal K server version 2 or later is required!`),this.app.alignCustomResourcesPaths(),this.signalk.api.getSelf().subscribe(t=>{this.stream.post({cmd:"vessel",options:{context:"self",name:t.name}}),this.app.config.vessels.trailFromServer&&this.stream.requestTrailFromServer(),this.anchor.queryAnchorStatus(void 0,this.app.data.vessels.self.position),this.radarApi.listRadars().catch(e=>{this.app.debug(e.message)})},t=>{t.status&&t.status===401&&this.showLogin(null,!1,!0),this.app.debug("No vessel data available!")})}onConnect(t){this.app.showMessage("Connection Open.",!1,2e3),this.app.debug(t),this.queryAfterConnect(),this.startTimers()}onClose(t){if(this.app.debug("onClose: STREAM connection closed..."),this.app.debug(t),this.stopTimers(),t.result)this.openSKStream(this.streamOptions.options,this.streamOptions.toMode);else{let e={title:"Connection Closed:",buttonText:"Re-connect",message:""};t.playback?(e.buttonText="OK",e.message="Unable to open Playback connection.",this.app.showAlert(e.message,e.title,e.buttonText).subscribe(()=>{this.mode===0?this.switchMode(this.mode):this.showPlaybackSettings()})):this.reconnecting||(this.reconnecting=!0,setTimeout(()=>{this.reconnecting=!1,this.openSKStream(this.streamOptions.options,this.mode)},5e3))}}reconnecting=!1;onError(t){this.app.showMessage("Connection Error!",!1,2e3),console.warn("Stream Error!",t)}onMessage(t){if(t.action==="hello"){this.app.debug(t),t.playback?this.mode=1:(this.mode=0,this.stream.subscribe()),this.app.data.selfId=t.self;return}else if(t.action==="update"){if(this.mode===1){let e=new Date(t.timestamp);this.playbackTime.update(()=>`${e.toDateString().slice(4)} ${e.toTimeString().slice(0,8)}`)}else this.playbackTime.set(null),this.setDarkTheme();this.updateNavPanel()}}updateNavPanel(){this.navDataPanel.update(t=>({show:!!(this.app.data.activeRoute||this.app.data.activeWaypoint||this.course.courseData().position),nextPointCtrl:!!this.app.data.activeRoute,apModeColor:this.app.data.vessels.self.autopilot.enabled?"primary":"",apModeText:this.app.data.vessels.self.autopilot.default?`Autopilot: ${this.app.data.vessels.self.autopilot.default}`:""}))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=G({type:n,selectors:[["app-root"]],viewQuery:function(e,i){if(e&1&&_e(Ol,5),e&2){let o;Z(o=K())&&(i.sideright=o.first)}},decls:152,vars:51,consts:[["layersmenu","matMenu"],["settingsmenu","matMenu"],["editmenu","matMenu"],["mainmenu","matMenu"],["sideright",""],["northArrow",""],[3,"ngClass"],[1,"appframe","mat-app-background"],["mat-menu-item","",3,"click"],["svgIcon","route",1,"icon-route"],[1,"icon-waypoint"],["mat-menu-item",""],["accept",".gpx,.json",3,"chosen","astext"],["svgIcon","route-import",1,"ob"],["svgIcon","route-export",1,"ob"],[1,"icon-route"],["svgIcon","route-planning",1,"icon-route"],[1,"icon-accent"],["theme-main","",1,"view"],["hasBackdrop","false"],["mode","side","position","end",3,"disableClose"],[2,"display","flex","flex-direction","column","position","relative"],[2,"overflow","hidden"],[2,"z-index","4700","position","fixed","top","0px","left","0px","width","100%"],[3,"apData"],[2,"display","relative","width","100%","height","100%",3,"dragover","drop"],[3,"drawEnded","activate","deactivate","exitMovingMap","focusVessel","info","menuItemSelected","scaleUnits","setFocus","mapCenter","mapZoom","northUp","movingMap","vesselTrail","activeRoute","dblClickZoom","overZoomTiles","measureMode","drawMode"],[2,"position","absolute","top","60px","left","56px","width","50px"],["src","./assets/img/north_arrow.svg","width","50","height","70"],[1,"playbackPanel","mat-app-background"],[1,"navdataPanel"],[3,"action"],[1,"icon-warn"],["svgIcon","chart-display-settings-iec",1,"ob"],["matBadge","!","matBadgeOverlap","true","matBadgeSize","medium","matBadgePosition","below after","aria-hidden","false",3,"matBadgeHidden"],["svgIcon","radar-iec",1,"ob"],[3,"closed"],[3,"note","id","interacting"],[3,"region","id","related","interacting"],[3,"waypoint","id","related","interacting"],[3,"route","id","related","interacting"],[3,"edit","panTo","note","id","interacting"],[3,"edit","panTo","region","id","related","interacting"],[3,"edit","panTo","waypoint","id","related","interacting"],[3,"edit","activate","panTo","route","id","related","interacting"],["mat-list-item",""],["mat-icon-button","",3,"click"],["mat-icon-button","","target","_blank","matTooltip","Open Instruments in window.","matTooltipPosition","right",3,"href"],["mat-icon-button","","matTooltip","Previous plugin","matTooltipPosition","below",3,"click","disabled"],["mat-icon-button","","matTooltip","Next plugin","matTooltipPosition","below",3,"click","disabled"],[2,"position","fixed","bottom","0","top","48px","overflow","auto","-webkit-overfow-scrolling","touch"],["sandbox","allow-scripts allow-same-origin",2,"width","345px","height","100%",3,"src"],["mat-icon-button","","target","_blank","matTooltip","Open Instruments in window.","matTooltipPosition","right",3,"click","href"],["mode","query"],[3,"close","apData"],[3,"save","close"],[1,"leftTop","buttonPanel"],[1,"buttonPanelItem"],["mat-mini-fab","","matBadge","!","matBadgeOverlap","true","matTooltip","Menu","matTooltipPosition","right","aria-hidden","false",1,"button-secondary",3,"disabled","matBadgeHidden","matMenuTriggerFor"],[1,"buttonPanel","left"],[1,"leftMenuPanel"],[1,"statusBar"],[1,"statusBarItem"],[1,"rightTop","buttonPanel"],["mat-mini-fab","","matTooltipPosition","before",1,"button-secondary",3,"click","matTooltip"],[1,"buttonPanel","right"],["mat-mini-fab","","matTooltip","Alarms","matTooltipPosition","left","matBadgeOverlap","true","aria-hidden","false",1,"button-warn",3,"click","matBadge","matBadgeHidden"],["svgIcon","alert-list",1,"ob"],["mat-mini-fab","","matTooltip","Routes, Waypoints, Notes, etc.","matTooltipPosition","right",1,"button-accent",3,"disabled","matMenuTriggerFor"],["mat-mini-fab","","matTooltip","Draw / Measure / Select","matTooltipPosition","right",1,"button-toolbar",3,"disabled","matMenuTriggerFor"],["mat-mini-fab","","matTooltipPosition","right",3,"click","ngClass","matTooltip"],[1,"ob",3,"svgIcon"],["mat-mini-fab","","matTooltipPosition","right",3,"click","ngClass","disabled","matTooltip"],["svgIcon","cent-iec",1,"ob"],["mat-mini-fab","","matTooltip","More actions","matTooltipPosition","right",1,"button-toolbar",3,"disabled","matMenuTriggerFor"],["mat-mini-fab","","matTooltip","Center Vessel","matTooltipPosition","right",1,"button-toolbar",3,"click","disabled"],["mat-mini-fab","","matTooltip","Exit playback mode","matTooltipPosition","right",1,"button-warn",3,"click"],[3,"showSelf","radius","raised"],[3,"activate","deactivate","select","points","notes","closed","activeRoute","editingRouteId"],[3,"select","goto","deactivate","center","notes","closed","activeWaypoint","editingWaypointId"],[3,"closed","selectedCharts"],[3,"select","pan","closed","notes"],[3,"select","pan","closed","regions"],[3,"center","closed"],[3,"properties","closed","focusVessel","pan","focusId"],[3,"closed","paramChanged"],[3,"closed","showSelf","radius","raised"],["matTooltip","WakeLock is turned off","matTooltipPosition","below"],["matTooltip","Course data is hidden","matTooltipPosition","below"],["matTooltip","Vessels are hidden","matTooltipPosition","below"],["matTooltip","Notes are hidden","matTooltipPosition","below"],["matTooltip","No server messages!","matTooltipPosition","below",2,"background-color","red","color","white"],[1,"instrumentPanelToggle","buttonPanelItem"],["mat-mini-fab","","matTooltip","Instruments","matTooltipPosition","before",1,"button-toolbar"],["mat-mini-fab","","matTooltip","Constrain map zoom.","matTooltipPosition","before",3,"click","ngClass"],["mat-mini-fab","","matTooltip","Invert feature text color.","matTooltipPosition","before",3,"click","ngClass"],["mat-mini-fab","","matTooltip","Instruments","matTooltipPosition","before",1,"button-toolbar",3,"click"],["mat-mini-fab","","matTooltip","Web Audio off! Click to enable.","matTooltipPosition","before",1,"button-toolbar",3,"click"],["mat-mini-fab","","matTooltipPosition","before",3,"click","ngClass","matTooltip"],[3,"selected"],[3,"click","src","muted"],["mat-mini-fab","","matTooltip","Autopilot","matTooltipPosition","before",3,"click","ngClass"],["svgIcon","command-autopilot",1,"ob"],["mat-mini-fab","","matTooltip","Radar","matTooltipPosition","before",3,"click","ngClass"],[2,"border-radius","5px"],[2,"text-align","center"],[3,"alerts"],[1,"alarmPanel"],[2,"margin-bottom","5px"],[3,"closed","alerts"],[3,"nextPoint","routeEnd","audioStatus","alert","acknowledged","silenced","doNotPlaySound"],[3,"cancel"],[3,"index","total","circular"],[2,"display","flex","flex-wrap","nowrap"],[3,"selected","index","total","circular"],[1,"mat-app-background",2,"display","flex"],[2,"width","40px"],["mat-icon-button","","matTooltip","Course Settings",3,"click"],["svgIcon","navigation-route",1,"ob"],["mat-icon-button","","matTooltip","Autopilot Console","matTooltipPosition","above","matTooltip","Engage Autopilot",3,"click","disabled"],["svgIcon","command-autopilot",1,"ob",3,"color"],["mat-icon-button","","matTooltip","Restart XTE",3,"click"],["mat-icon-button","","matTooltip","Reverse route direction","matTooltipPosition","above",3,"click","disabled"],[3,"color"],[3,"title","value","units"],[3,"value"],[3,"title","value"],["subTitle","RT",3,"title","value","units"],["subTitle","RT",3,"value"],["subTitle","RT",3,"title","value"]],template:function(e,i){if(e&1){let o=T();a(0,"div",6)(1,"div",7)(2,"mat-menu",null,0)(4,"button",8),_("click",function(){return p(o),d(i.displayLeftMenu("routeList",!0))}),b(5,"mat-icon",9),m(6," \xA0Routes "),s(),a(7,"button",8),_("click",function(){return p(o),d(i.displayLeftMenu("waypointList",!0))}),a(8,"mat-icon",10),m(9,"location_on"),s(),m(10," \xA0Waypoints "),s(),a(11,"button",8),_("click",function(){return p(o),d(i.displayLeftMenu("noteList",!0))}),a(12,"mat-icon"),m(13,"local_offer"),s(),m(14," \xA0Notes "),s(),a(15,"button",8),_("click",function(){return p(o),d(i.displayLeftMenu("regionList",!0))}),a(16,"mat-icon"),m(17,"tab_unselected"),s(),m(18," \xA0Regions "),s(),a(19,"button",8),_("click",function(){return p(o),d(i.displayLeftMenu("chartList",!0))}),a(20,"mat-icon"),m(21,"map"),s(),m(22," \xA0Charts "),s(),f(23,Xl,4,0,"button",11),f(24,Zl,4,0,"button",11),b(25,"mat-divider"),a(26,"button",11)(27,"ap-file-input",12),_("chosen",function(c){return p(o),d(i.importFile(c))}),b(28,"mat-icon",13),m(29," Import "),s()(),a(30,"button",8),_("click",function(){return p(o),d(i.exportToGPX())}),b(31,"mat-icon",14),m(32," \xA0Export "),s(),b(33,"mat-divider"),f(34,Kl,4,0,"button",11),f(35,Yl,3,0,"div"),s(),a(36,"mat-menu",null,1),f(38,Jl,11,1),f(39,ic,11,1),a(40,"a",8),_("click",function(){return p(o),d(i.toggleCourseData())}),a(41,"mat-icon"),m(42),s(),a(43,"span"),m(44),s()(),a(45,"a",8),_("click",function(){return p(o),d(i.toggleAisTargets())}),a(46,"mat-icon"),m(47),s(),a(48,"span"),m(49),s()(),a(50,"a",8),_("click",function(){return p(o),d(i.toggleNotes())}),a(51,"mat-icon"),m(52),s(),a(53,"span"),m(54),s()(),f(55,nc,6,0),b(56,"mat-divider"),a(57,"a",8),_("click",function(){return p(o),d(i.openSettings())}),a(58,"mat-icon"),m(59,"settings"),s(),a(60,"span"),m(61,"Settings"),s()()(),a(62,"mat-menu",null,2)(64,"a",8),_("click",function(){return p(o),d(i.mapInteract.startMeasuring("LineString"))}),a(65,"mat-icon"),m(66,"straighten"),s(),a(67,"span"),m(68,"Measure"),s()(),a(69,"a",8),_("click",function(){return p(o),d(i.mapInteract.startMeasuring("Circle"))}),a(70,"mat-icon"),m(71,"swap_vertical_circle"),s(),a(72,"span"),m(73,"Measure Radius"),s()(),b(74,"mat-divider"),a(75,"a",8),_("click",function(){return p(o),d(i.drawFeature("route"))}),a(76,"mat-icon",15),m(77,"draw"),s(),a(78,"span"),m(79,"Draw Route"),s()(),a(80,"a",8),_("click",function(){return p(o),d(i.toggleRouteBuilderConsole(!0))}),b(81,"mat-icon",16),a(82,"span"),m(83,"Build Route"),s()(),b(84,"mat-divider"),f(85,oc,5,0,"a",11),a(86,"a",8),_("click",function(){return p(o),d(i.drawFeature("waypoint"))}),a(87,"mat-icon",10),m(88,"add_location_alt"),s(),a(89,"span"),m(90,"Drop Waypoint"),s()(),b(91,"mat-divider"),f(92,rc,5,0,"a",11),a(93,"a",8),_("click",function(){return p(o),d(i.drawFeature("region"))}),a(94,"mat-icon"),m(95,"tab_unselected"),s(),a(96,"span"),m(97,"Draw Region"),s()()(),a(98,"mat-menu",null,3),f(100,ac,6,2),f(101,sc,5,0,"a",11),f(102,pc,5,1,"a",11),a(103,"a",8),_("click",function(){return p(o),d(i.displayLeftMenu("aisList",!0))}),a(104,"mat-icon"),m(105,"directions_boat"),s(),a(106,"span"),m(107,"Vessels"),s()(),a(108,"a",8),_("click",function(){return p(o),d(i.importResourceSet())}),a(109,"mat-icon"),m(110,"upload"),s(),a(111,"span"),m(112,"Resource Sets"),s()(),f(113,dc,5,0,"a",11),b(114,"mat-divider"),a(115,"a",8),_("click",function(){return p(o),d(i.openSettings())}),a(116,"mat-icon"),m(117,"settings"),s(),a(118,"span"),m(119,"Settings"),s()(),b(120,"mat-divider"),a(121,"a",8),_("click",function(){return p(o),d(i.openAbout())}),a(122,"mat-icon",17),m(123,"info_outline"),s(),a(124,"span"),m(125,"About"),s()(),a(126,"button",8),_("click",function(){return p(o),d(i.app.showHelp())}),a(127,"mat-icon",17),m(128,"help"),s(),a(129,"span"),m(130,"Help"),s()()(),a(131,"div",18)(132,"mat-sidenav-container",19)(133,"mat-sidenav",20,4),f(135,hc,5,4,"info-panel")(136,vc,17,4,"div",21),s(),a(137,"mat-sidenav-content",22),f(138,bc,2,0,"div",23),f(139,wc,1,1,"autopilot-console",24),f(140,xc,1,0,"route-builder"),f(141,rp,19,13),a(142,"div",25),_("dragover",function(c){return p(o),d(i.mapDragOver(c))})("drop",function(c){return p(o),d(i.mapDrop(c))}),a(143,"fb-map",26),_("drawEnded",function(c){return p(o),d(i.handleDrawEnded(c))})("activate",function(c){return p(o),d(i.activateRoute(c))})("deactivate",function(){return p(o),d(i.clearDestination())})("exitMovingMap",function(c){return p(o),d(i.toggleMoveMap(c))})("focusVessel",function(c){return p(o),d(i.switchActiveVessel(c))})("info",function(c){return p(o),d(i.featureProperties(c))})("menuItemSelected",function(c){return p(o),d(i.handleContextMenuSelection(c))}),s()(),a(144,"div",27),b(145,"img",28,5),s(),f(147,ap,8,1,"div",29),f(148,cp,4,1),f(149,pp,1,0,"fb-interact-help"),f(150,Ep,3,2,"div",30),f(151,Tp,1,1,"mfb-container",31),s()()()()()}e&2&&(x("ngClass",Q(48,Wl,i.app.config.display.darkMode.enabled,i.stream.selfNightMode()||i.app.uiCtrl().forceNightMode)),u(23),h(i.app.featureFlags().resourceGroups?23:-1),u(),h(i.app.featureFlags().infoLayers?24:-1),u(3),x("astext",!0),u(7),h(i.app.featureFlags().resourceTracks?34:-1),u(),h(i.app.config.resources.paths.length!==0?35:-1),u(3),h(i.app.config.vessels.trail&&i.app.selfTrail().length!==0?38:-1),u(),h(i.course.courseData().position?39:-1),u(3),J(i.app.config.ui.showCourseData?"visibility_off":"compare_arrows"),u(2),ie("",i.app.config.ui.showCourseData?"Hide":"Show"," Course Data"),u(3),J(i.app.config.ui.showAisTargets?"visibility_off":"directions_boat"),u(2),ie("",i.app.config.ui.showAisTargets?"Hide":"Show"," Vessels"),u(3),J(i.app.config.ui.showNotes?"visibility_off":"local_offer"),u(2),ie("",i.app.config.ui.showNotes?"Hide":"Show"," Notes"),u(),h(i.app.featureFlags().weatherApi&&i.app.data.vessels.showSelf?55:-1),u(30),h(i.app.data.vessels.showSelf?85:-1),u(7),h(i.app.config.map.zoomLevel>=i.app.config.resources.notes.minZoom?92:-1),u(8),h(!i.app.hostDef.params.token&&i.app.data.loginRequired?100:-1),u(),h(!i.isInteracting()&&i.app.featureFlags().anchorApi?101:-1),u(),h(!i.isInteracting()&&i.app.featureFlags().radarApi&&i.radarApi.radarId()&&i.app.data.vessels.showSelf?102:-1),u(11),h(i.features.playbackAPI?113:-1),u(20),te("width",i.app.instrumentPanel().open?"350px":"250px"),x("disableClose",!1),u(2),h(i.infoPanel.item&&!i.app.instrumentPanel().open?135:136),u(3),h(i.app.sIsFetching()?138:-1),u(),h(i.app.uiCtrl().autopilotConsole?139:-1),u(),h(i.app.uiCtrl().routeBuilder?140:-1),u(),h(!i.app.kioskMode()&&!i.app.uiCtrl().suppressContextMenu?141:-1),u(2),x("scaleUnits",i.app.config.units.distance)("setFocus",i.mapSetFocus())("mapCenter",i.mapCenter())("mapZoom",i.app.config.map.zoomLevel)("northUp",i.app.uiConfig().mapNorthUp)("movingMap",i.app.uiConfig().mapMove)("vesselTrail",i.app.selfTrail())("activeRoute",i.app.data.activeRoute)("dblClickZoom",i.app.config.map.doubleClickZoom)("overZoomTiles",i.app.config.map.overZoomTiles)("measureMode",i.mapInteract.isMeasuring())("drawMode",i.mapInteract.isDrawing()),u(2),te("transform",i.getOrientation()),u(2),h(i.mode===1?147:-1),u(),h(i.app.kioskMode()?-1:148),u(),h(i.isInteracting()?149:-1),u(),h(i.isInteracting()?-1:150),u(),h(!i.isInteracting()&&!i.app.kioskMode()?151:-1))},dependencies:[Ei,wi,bi,xi,Dn,_t,Rn,Oe,Mn,In,mi,ui,di,vi,Ci,gi,hi,fi,_i,yi,Ti,Ai,Si,Wt,jt,bn,wn,xn,En,Tn,yn,Sn,_n,vn,dn,cn,ln,mn,Ji,Yi,Cn,Bi,Gi,tn,Qi],styles:["mat-sidenav-container[_ngcontent-%COMP%]{height:100%}mat-sidenav[_ngcontent-%COMP%]{width:200px}mat-nav-list[_ngcontent-%COMP%]{padding-top:0}.appframe[_ngcontent-%COMP%]{width:100vw;height:100vh;background-color:#000;color:#fff;overflow:hidden}.view[_ngcontent-%COMP%]{inset:0;overflow:auto;scrollbar-width:none;position:fixed;border-top:silver 0px solid}.leftMenuPanel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;padding-left:0;z-index:5000;background-color:#c8c8c866;width:315px}.statusBar[_ngcontent-%COMP%]{width:max-content;z-index:4800;position:absolute;right:55px;top:20px;padding:1px;overflow:hidden;text-align:right;display:flex}.statusBarItem[_ngcontent-%COMP%]{padding-left:5px}.statusBarItem[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{background-color:#ffffff80;color:#000;border-radius:10px}.buttonPanel[_ngcontent-%COMP%]{width:50px;z-index:4800;position:absolute;padding:5px 2px 2px;overflow:auto;scrollbar-width:none}.buttonPanel.rightTop[_ngcontent-%COMP%]{right:0;top:0;padding:9px 2px 10px}.buttonPanel.leftTop[_ngcontent-%COMP%]{left:0;top:0;padding:9px 2px 10px}.buttonPanel.left[_ngcontent-%COMP%]{top:60px;left:0;bottom:0}.buttonPanel.right[_ngcontent-%COMP%]{top:60px;right:0;bottom:80px}.buttonPanel[_ngcontent-%COMP%] .buttonPanelItem[_ngcontent-%COMP%]{text-align:center;height:48px;padding:5px 0}.mapButton[_ngcontent-%COMP%]{position:fixed;z-index:4900}.alarmPanel[_ngcontent-%COMP%]{position:absolute;z-index:4902;top:55px;left:15%;right:15%}.measurePanel[_ngcontent-%COMP%]{position:absolute;top:60px;left:50px;width:150px;border:black 1px solid;font-family:roboto;font-size:10pt}.playbackPanel[_ngcontent-%COMP%]{position:absolute;z-index:4900;bottom:150px;left:50px;top:auto;width:100px;border:gray 1px solid;border-radius:5px;font-family:roboto;text-align:center}.navdataPanel[_ngcontent-%COMP%]{position:absolute;z-index:4901;bottom:30px;left:10px;max-width:calc(100% - 75px);max-height:100px;text-align:center;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;border:gray 1px solid}.bottomSheet[_ngcontent-%COMP%]{position:absolute;z-index:4902;bottom:0;left:15%;min-width:400px;max-width:100%;height:180px;overflow:auto}.bottomSheet[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 1 auto;text-align:center;font-family:roboto;font-weight:500;line-height:2.5em}.control[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin:20px}.ol-mouse-position[_ngcontent-%COMP%]{position:fixed;bottom:10px;right:45%;color:#1e1e1e;font-family:roboto;background-color:#fafafab3}.ol-zoom[_ngcontent-%COMP%]{position:fixed;top:10px;left:100px;color:#1e1e1e;font-family:roboto;background-color:transparent;height:45px}.instrumentPanelToggle[_ngcontent-%COMP%]{display:block}@media only screen and (max-width:650px){.bottomSheet[_ngcontent-%COMP%]{left:0;min-width:100%}}@media only screen and (max-width:800px){.instrumentPanelToggle[_ngcontent-%COMP%]{display:none}}@media only screen and (max-height:600px){.navdataPanel[_ngcontent-%COMP%]{left:50px;max-width:calc(100% - 115px)}}"]})};Ht(Ke,{providers:[zt(),Xt(Zt())]}).catch(n=>console.log(n));