@signalk/freeboard-sk 2.24.2 → 3.0.0-beta.0
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.
- package/README.md +16 -0
- package/docs/screenshots/2_freeboard-sk.jpg +0 -0
- package/docs/screenshots/3_freeboard-sk.jpg +0 -0
- package/package.json +9 -4
- package/public/3rdpartylicenses.txt +45 -19
- package/public/assets/img/no-such-symbol.svg +4 -0
- package/public/chunk-2FVHKTB6.js +1010 -0
- package/public/chunk-3NORWTAX.js +1 -0
- package/public/chunk-4H477JJR.js +1612 -0
- package/public/chunk-55GTZWIA.js +1 -0
- package/public/chunk-7N46HDRA.js +1 -0
- package/public/chunk-F7DZSD5Z.js +1 -0
- package/public/chunk-FZ6NAONR.js +1 -0
- package/public/chunk-HALNSHCE.js +929 -0
- package/public/chunk-KYXYDUTF.js +1 -0
- package/public/chunk-MNPNP6MN.js +3871 -0
- package/public/{chunk-LXUTMJYP.js → chunk-MZFM2DTJ.js} +1 -1
- package/public/chunk-N7K5OEHJ.js +1709 -0
- package/public/chunk-NPNYOL2H.js +1 -0
- package/public/chunk-QBGO6O5L.js +1 -0
- package/public/chunk-UHBHOIXR.js +107 -0
- package/public/chunk-VHJDKR5K.js +1 -0
- package/public/chunk-Z5RYOUPW.js +2 -0
- package/public/index.html +1 -1
- package/public/main-E44BDMWA.js +466 -0
- package/public/chunk-2AF4T5IB.js +0 -1
- package/public/chunk-3GHIRJ3C.js +0 -2
- package/public/chunk-A4TULHTL.js +0 -1
- package/public/chunk-AFVK3UQJ.js +0 -5482
- package/public/chunk-AX3UMUXB.js +0 -1
- package/public/chunk-EFVTFEXB.js +0 -1
- package/public/chunk-FALIRPMH.js +0 -1035
- package/public/chunk-G4GM24WE.js +0 -1
- package/public/chunk-NTIQMWPW.js +0 -2718
- package/public/chunk-QIOZNURQ.js +0 -1
- package/public/chunk-SBFXQ3G7.js +0 -1
- package/public/main-AZEF35BN.js +0 -466
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import{$ as Si,A as oi,Aa as ji,B as ri,Ba as Hi,D as ai,E as si,Ea as Wi,Fa as Xi,G as li,Ga as Ki,H as ci,Ha as Zi,I as pi,Ia as Qi,J as di,Ja as Yi,K as ui,Ka as Ji,O as mi,P as _i,Q as fi,R as hi,S as gi,T as Ci,U as vi,V as bi,W as wi,X as xi,Y as yi,Z as Ei,_ as Ti,a as Nn,aa as Ai,b as Gn,ba as ki,c as jn,ca as Mi,d as Hn,e as Wn,f as Kn,g as Zn,ga as Pi,h as Qn,ha as Ii,ia as Di,ma as Ri,na as Li,oa as Oi,p as Yn,pa as Vi,q as Mt,qa as Fi,r as Jn,ra as Ni,sa as $i,ta as Bi,u as ei,ua as qi,va as U,w as ti,wa as zi,x as Pt,xa as Ui,y as ni,z as ii,za as Gi}from"./chunk-MNPNP6MN.js";import{a as Bn,g as qn,i as zn,k as Un,m as It,p as Dt,t as Rt}from"./chunk-4H477JJR.js";import"./chunk-MZFM2DTJ.js";import{a as Xn}from"./chunk-HALNSHCE.js";import"./chunk-UHBHOIXR.js";import"./chunk-2FVHKTB6.js";import{$a as V,Ba as ke,Bc as Mn,Ca as f,Da as h,E as wt,Fa as ze,G as Q,Ga as j,Gb as ve,Ha as H,Ia as y,Ja as a,Jc as Pn,K as Ve,Ka as s,L as xt,La as C,Ld as Ze,Ma as _n,Mb as ce,N as w,Na as fn,Nc as In,O as u,Oa as Ue,P as m,Pd as $n,Qd as Qe,Rb as vn,S as yt,Sa as E,Sd as we,T as Fe,Ta as ge,Tb as Ge,Td as xe,Ua as _,V as Ne,Va as hn,Vb as je,W as ae,Wa as l,X as G,Xa as ue,Y as ie,Ya as K,Yb as bn,Yc as Dn,Za as Tt,_ as $e,_a as Z,_c as Rn,aa as se,ab as F,ba as dn,bc as wn,c as re,cc as xn,dd as Xe,ea as un,eb as Me,ed as Ln,fa as le,fb as te,fc as yn,gb as N,gc as En,ha as c,hb as St,hc as pe,hd as On,ia as Et,ib as gn,ic as He,jb as d,k as vt,kb as z,la as Be,lb as me,ld as _e,ma as he,mc as Tn,oc as At,pa as R,pd as Ke,qa as qe,qc as Sn,r as ln,ra as mn,s as Se,sc as We,ta as Ae,ub as Ce,uc as An,va as Y,vb as Cn,vc as be,w as cn,wc as kn,wd as Vn,x as pn,xb as oe,y as bt,ya as J,za as ee,zc as kt,zd as Fn}from"./chunk-N7K5OEHJ.js";import{a as Oe,b as sn,c as k,e as ta,f as q}from"./chunk-EQVTEUXC.js";var Ee=k((pu,ro)=>{"use strict";var ga="2.0.0",Ca=Number.MAX_SAFE_INTEGER||9007199254740991,va=16,ba=250,wa=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ro.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:va,MAX_SAFE_BUILD_LENGTH:ba,MAX_SAFE_INTEGER:Ca,RELEASE_TYPES:wa,SEMVER_SPEC_VERSION:ga,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Pe=k((du,ao)=>{"use strict";var xa=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};ao.exports=xa});var Te=k((ne,so)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Nt,MAX_SAFE_BUILD_LENGTH:ya,MAX_LENGTH:Ea}=Ee(),Ta=Pe();ne=so.exports={};var Sa=ne.re=[],Aa=ne.safeRe=[],v=ne.src=[],ka=ne.safeSrc=[],b=ne.t={},Ma=0,$t="[a-zA-Z0-9-]",Pa=[["\\s",1],["\\d",Ea],[$t,ya]],Ia=i=>{for(let[t,e]of Pa)i=i.split(`${t}*`).join(`${t}{0,${e}}`).split(`${t}+`).join(`${t}{1,${e}}`);return i},M=(i,t,e)=>{let n=Ia(t),o=Ma++;Ta(i,o,t),b[i]=o,v[o]=t,ka[o]=n,Sa[o]=new RegExp(t,e?"g":void 0),Aa[o]=new RegExp(n,e?"g":void 0)};M("NUMERICIDENTIFIER","0|[1-9]\\d*");M("NUMERICIDENTIFIERLOOSE","\\d+");M("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${$t}*`);M("MAINVERSION",`(${v[b.NUMERICIDENTIFIER]})\\.(${v[b.NUMERICIDENTIFIER]})\\.(${v[b.NUMERICIDENTIFIER]})`);M("MAINVERSIONLOOSE",`(${v[b.NUMERICIDENTIFIERLOOSE]})\\.(${v[b.NUMERICIDENTIFIERLOOSE]})\\.(${v[b.NUMERICIDENTIFIERLOOSE]})`);M("PRERELEASEIDENTIFIER",`(?:${v[b.NONNUMERICIDENTIFIER]}|${v[b.NUMERICIDENTIFIER]})`);M("PRERELEASEIDENTIFIERLOOSE",`(?:${v[b.NONNUMERICIDENTIFIER]}|${v[b.NUMERICIDENTIFIERLOOSE]})`);M("PRERELEASE",`(?:-(${v[b.PRERELEASEIDENTIFIER]}(?:\\.${v[b.PRERELEASEIDENTIFIER]})*))`);M("PRERELEASELOOSE",`(?:-?(${v[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[b.PRERELEASEIDENTIFIERLOOSE]})*))`);M("BUILDIDENTIFIER",`${$t}+`);M("BUILD",`(?:\\+(${v[b.BUILDIDENTIFIER]}(?:\\.${v[b.BUILDIDENTIFIER]})*))`);M("FULLPLAIN",`v?${v[b.MAINVERSION]}${v[b.PRERELEASE]}?${v[b.BUILD]}?`);M("FULL",`^${v[b.FULLPLAIN]}$`);M("LOOSEPLAIN",`[v=\\s]*${v[b.MAINVERSIONLOOSE]}${v[b.PRERELEASELOOSE]}?${v[b.BUILD]}?`);M("LOOSE",`^${v[b.LOOSEPLAIN]}$`);M("GTLT","((?:<|>)?=?)");M("XRANGEIDENTIFIERLOOSE",`${v[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);M("XRANGEIDENTIFIER",`${v[b.NUMERICIDENTIFIER]}|x|X|\\*`);M("XRANGEPLAIN",`[v=\\s]*(${v[b.XRANGEIDENTIFIER]})(?:\\.(${v[b.XRANGEIDENTIFIER]})(?:\\.(${v[b.XRANGEIDENTIFIER]})(?:${v[b.PRERELEASE]})?${v[b.BUILD]}?)?)?`);M("XRANGEPLAINLOOSE",`[v=\\s]*(${v[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${v[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${v[b.XRANGEIDENTIFIERLOOSE]})(?:${v[b.PRERELEASELOOSE]})?${v[b.BUILD]}?)?)?`);M("XRANGE",`^${v[b.GTLT]}\\s*${v[b.XRANGEPLAIN]}$`);M("XRANGELOOSE",`^${v[b.GTLT]}\\s*${v[b.XRANGEPLAINLOOSE]}$`);M("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Nt}})(?:\\.(\\d{1,${Nt}}))?(?:\\.(\\d{1,${Nt}}))?`);M("COERCE",`${v[b.COERCEPLAIN]}(?:$|[^\\d])`);M("COERCEFULL",v[b.COERCEPLAIN]+`(?:${v[b.PRERELEASE]})?(?:${v[b.BUILD]})?(?:$|[^\\d])`);M("COERCERTL",v[b.COERCE],!0);M("COERCERTLFULL",v[b.COERCEFULL],!0);M("LONETILDE","(?:~>?)");M("TILDETRIM",`(\\s*)${v[b.LONETILDE]}\\s+`,!0);ne.tildeTrimReplace="$1~";M("TILDE",`^${v[b.LONETILDE]}${v[b.XRANGEPLAIN]}$`);M("TILDELOOSE",`^${v[b.LONETILDE]}${v[b.XRANGEPLAINLOOSE]}$`);M("LONECARET","(?:\\^)");M("CARETTRIM",`(\\s*)${v[b.LONECARET]}\\s+`,!0);ne.caretTrimReplace="$1^";M("CARET",`^${v[b.LONECARET]}${v[b.XRANGEPLAIN]}$`);M("CARETLOOSE",`^${v[b.LONECARET]}${v[b.XRANGEPLAINLOOSE]}$`);M("COMPARATORLOOSE",`^${v[b.GTLT]}\\s*(${v[b.LOOSEPLAIN]})$|^$`);M("COMPARATOR",`^${v[b.GTLT]}\\s*(${v[b.FULLPLAIN]})$|^$`);M("COMPARATORTRIM",`(\\s*)${v[b.GTLT]}\\s*(${v[b.LOOSEPLAIN]}|${v[b.XRANGEPLAIN]})`,!0);ne.comparatorTrimReplace="$1$2$3";M("HYPHENRANGE",`^\\s*(${v[b.XRANGEPLAIN]})\\s+-\\s+(${v[b.XRANGEPLAIN]})\\s*$`);M("HYPHENRANGELOOSE",`^\\s*(${v[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${v[b.XRANGEPLAINLOOSE]})\\s*$`);M("STAR","(<|>)?=?\\s*\\*");M("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");M("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var tt=k((uu,lo)=>{"use strict";var Da=Object.freeze({loose:!0}),Ra=Object.freeze({}),La=i=>i?typeof i!="object"?Da:i:Ra;lo.exports=La});var Bt=k((mu,uo)=>{"use strict";var co=/^[0-9]+$/,po=(i,t)=>{if(typeof i=="number"&&typeof t=="number")return i===t?0:i<t?-1:1;let e=co.test(i),n=co.test(t);return e&&n&&(i=+i,t=+t),i===t?0:e&&!n?-1:n&&!e?1:i<t?-1:1},Oa=(i,t)=>po(t,i);uo.exports={compareIdentifiers:po,rcompareIdentifiers:Oa}});var L=k((_u,_o)=>{"use strict";var nt=Pe(),{MAX_LENGTH:mo,MAX_SAFE_INTEGER:it}=Ee(),{safeRe:ot,t:rt}=Te(),Va=tt(),{compareIdentifiers:qt}=Bt(),Fa=(i,t)=>{let e=t.split(".");if(e.length>i.length)return!1;for(let n=0;n<e.length;n++)if(qt(i[n],e[n])!==0)return!1;return!0},zt=class i{constructor(t,e){if(e=Va(e),t instanceof i){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>mo)throw new TypeError(`version is longer than ${mo} characters`);nt("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let n=t.trim().match(e.loose?ot[rt.LOOSE]:ot[rt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>it||this.major<0)throw new TypeError("Invalid major version");if(this.minor>it||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>it||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let r=+o;if(r>=0&&r<it)return r}return o}):this.prerelease=[],this.build=n[5]?n[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(nt("SemVer.compare",this.version,this.options,t),!(t instanceof i)){if(typeof t=="string"&&t===this.version)return 0;t=new i(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof i||(t=new i(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 i||(t=new i(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 n=this.prerelease[e],o=t.prerelease[e];if(nt("prerelease compare",e,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return qt(n,o)}while(++e)}compareBuild(t){t instanceof i||(t=new i(t,this.options));let e=0;do{let n=this.build[e],o=t.build[e];if(nt("build compare",e,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return qt(n,o)}while(++e)}inc(t,e,n){if(t.startsWith("pre")){if(!e&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(e){let o=`-${e}`.match(this.options.loose?ot[rt.PRERELEASELOOSE]:ot[rt.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,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,n),this.inc("pre",e,n);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(n)?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(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(e){let r=[e,o];if(n===!1&&(r=[e]),Fa(this.prerelease,e)){let p=this.prerelease[e.split(".").length];isNaN(p)&&(this.prerelease=r)}else 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}};_o.exports=zt});var de=k((fu,ho)=>{"use strict";var fo=L(),Na=(i,t,e=!1)=>{if(i instanceof fo)return i;try{return new fo(i,t)}catch(n){if(!e)return null;throw n}};ho.exports=Na});var Co=k((hu,go)=>{"use strict";var $a=de(),Ba=(i,t)=>{let e=$a(i,t);return e?e.version:null};go.exports=Ba});var bo=k((gu,vo)=>{"use strict";var qa=de(),za=(i,t)=>{let e=qa(i.trim().replace(/^[=v]+/,""),t);return e?e.version:null};vo.exports=za});var yo=k((Cu,xo)=>{"use strict";var wo=L(),Ua=(i,t,e,n,o)=>{typeof e=="string"&&(o=n,n=e,e=void 0);try{return new wo(i instanceof wo?i.version:i,e).inc(t,n,o).version}catch(r){return null}};xo.exports=Ua});var So=k((vu,To)=>{"use strict";var Eo=de(),Ga=(i,t)=>{let e=Eo(i,null,!0),n=Eo(t,null,!0),o=e.compare(n);if(o===0)return null;let r=o>0,p=r?e:n,g=r?n:e,x=!!p.prerelease.length;if(!!g.prerelease.length&&!x){if(!g.patch&&!g.minor)return"major";if(g.compareMain(p)===0)return g.minor&&!g.patch?"minor":"patch"}let P=x?"pre":"";return e.major!==n.major?P+"major":e.minor!==n.minor?P+"minor":e.patch!==n.patch?P+"patch":"prerelease"};To.exports=Ga});var ko=k((bu,Ao)=>{"use strict";var ja=L(),Ha=(i,t)=>new ja(i,t).major;Ao.exports=Ha});var Po=k((wu,Mo)=>{"use strict";var Wa=L(),Xa=(i,t)=>new Wa(i,t).minor;Mo.exports=Xa});var Do=k((xu,Io)=>{"use strict";var Ka=L(),Za=(i,t)=>new Ka(i,t).patch;Io.exports=Za});var Lo=k((yu,Ro)=>{"use strict";var Qa=de(),Ya=(i,t)=>{let e=Qa(i,t);return e&&e.prerelease.length?e.prerelease:null};Ro.exports=Ya});var W=k((Eu,Vo)=>{"use strict";var Oo=L(),Ja=(i,t,e)=>new Oo(i,e).compare(new Oo(t,e));Vo.exports=Ja});var No=k((Tu,Fo)=>{"use strict";var es=W(),ts=(i,t,e)=>es(t,i,e);Fo.exports=ts});var Bo=k((Su,$o)=>{"use strict";var ns=W(),is=(i,t)=>ns(i,t,!0);$o.exports=is});var at=k((Au,zo)=>{"use strict";var qo=L(),os=(i,t,e)=>{let n=new qo(i,e),o=new qo(t,e);return n.compare(o)||n.compareBuild(o)};zo.exports=os});var Go=k((ku,Uo)=>{"use strict";var rs=at(),as=(i,t)=>i.sort((e,n)=>rs(e,n,t));Uo.exports=as});var Ho=k((Mu,jo)=>{"use strict";var ss=at(),ls=(i,t)=>i.sort((e,n)=>ss(n,e,t));jo.exports=ls});var Ie=k((Pu,Wo)=>{"use strict";var cs=W(),ps=(i,t,e)=>cs(i,t,e)>0;Wo.exports=ps});var st=k((Iu,Xo)=>{"use strict";var ds=W(),us=(i,t,e)=>ds(i,t,e)<0;Xo.exports=us});var Ut=k((Du,Ko)=>{"use strict";var ms=W(),_s=(i,t,e)=>ms(i,t,e)===0;Ko.exports=_s});var Gt=k((Ru,Zo)=>{"use strict";var fs=W(),hs=(i,t,e)=>fs(i,t,e)!==0;Zo.exports=hs});var lt=k((Lu,Qo)=>{"use strict";var gs=W(),Cs=(i,t,e)=>gs(i,t,e)>=0;Qo.exports=Cs});var ct=k((Ou,Yo)=>{"use strict";var vs=W(),bs=(i,t,e)=>vs(i,t,e)<=0;Yo.exports=bs});var jt=k((Vu,Jo)=>{"use strict";var ws=Ut(),xs=Gt(),ys=Ie(),Es=lt(),Ts=st(),Ss=ct(),As=(i,t,e,n)=>{switch(t){case"===":return typeof i=="object"&&(i=i.version),typeof e=="object"&&(e=e.version),i===e;case"!==":return typeof i=="object"&&(i=i.version),typeof e=="object"&&(e=e.version),i!==e;case"":case"=":case"==":return ws(i,e,n);case"!=":return xs(i,e,n);case">":return ys(i,e,n);case">=":return Es(i,e,n);case"<":return Ts(i,e,n);case"<=":return Ss(i,e,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Jo.exports=As});var tr=k((Fu,er)=>{"use strict";var ks=L(),Ms=de(),{safeRe:pt,t:dt}=Te(),Ps=(i,t)=>{if(i instanceof ks)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;t=t||{};let e=null;if(!t.rtl)e=i.match(t.includePrerelease?pt[dt.COERCEFULL]:pt[dt.COERCE]);else{let x=t.includePrerelease?pt[dt.COERCERTLFULL]:pt[dt.COERCERTL],T;for(;(T=x.exec(i))&&(!e||e.index+e[0].length!==i.length);)(!e||T.index+T[0].length!==e.index+e[0].length)&&(e=T),x.lastIndex=T.index+T[1].length+T[2].length;x.lastIndex=-1}if(e===null)return null;let n=e[2],o=e[3]||"0",r=e[4]||"0",p=t.includePrerelease&&e[5]?`-${e[5]}`:"",g=t.includePrerelease&&e[6]?`+${e[6]}`:"";return Ms(`${n}.${o}.${r}${p}${g}`,t)};er.exports=Ps});var ir=k((Nu,nr)=>{"use strict";var Is=de(),Ds=Ee(),Rs=L(),Ls=(i,t,e)=>{if(!Ds.RELEASE_TYPES.includes(t))return null;let n=Os(i,e);return n&&Vs(n,t)},Os=(i,t)=>{let e=i instanceof Rs?i.version:i;return Is(e,t)},Vs=(i,t)=>{if(Fs(t))return i.version;switch(i.prerelease=[],t){case"major":i.minor=0,i.patch=0;break;case"minor":i.patch=0;break}return i.format()},Fs=i=>i.startsWith("pre");nr.exports=Ls});var rr=k(($u,or)=>{"use strict";var Ht=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}};or.exports=Ht});var X=k((Bu,cr)=>{"use strict";var Ns=/\s+/g,Wt=class i{constructor(t,e){if(e=Bs(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof Xt)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(Ns," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!sr(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&Ks(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 n=0;n<e.length;n++)n>0&&(this.formatted+=" "),this.formatted+=e[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(Xs,"");let n=((this.options.includePrerelease&&Hs)|(this.options.loose&&Ws))+":"+t,o=ar.get(n);if(o)return o;let r=this.options.loose,p=r?$[O.HYPHENRANGELOOSE]:$[O.HYPHENRANGE];t=t.replace(p,rl(this.options.includePrerelease)),I("hyphen replace",t),t=t.replace($[O.COMPARATORTRIM],Us),I("comparator trim",t),t=t.replace($[O.TILDETRIM],Gs),I("tilde trim",t),t=t.replace($[O.CARETTRIM],js),I("caret trim",t);let g=t.split(" ").map(S=>Zs(S,this.options)).join(" ").split(/\s+/).map(S=>ol(S,this.options));r&&(g=g.filter(S=>(I("loose invalid filter",S,this.options),!!S.match($[O.COMPARATORLOOSE])))),I("range list",g);let x=new Map,T=g.map(S=>new Xt(S,this.options));for(let S of T){if(sr(S))return[S];x.set(S.value,S)}x.size>1&&x.has("")&&x.delete("");let P=[...x.values()];return ar.set(n,P),P}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some(n=>lr(n,e)&&t.set.some(o=>lr(o,e)&&n.every(r=>o.every(p=>r.intersects(p,e)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new qs(t,this.options)}catch(e){return!1}for(let e=0;e<this.set.length;e++)if(al(this.set[e],t,this.options))return!0;return!1}};cr.exports=Wt;var $s=rr(),ar=new $s,Bs=tt(),Xt=De(),I=Pe(),qs=L(),{safeRe:$,src:zs,t:O,comparatorTrimReplace:Us,tildeTrimReplace:Gs,caretTrimReplace:js}=Te(),{FLAG_INCLUDE_PRERELEASE:Hs,FLAG_LOOSE:Ws}=Ee(),Xs=new RegExp(zs[O.BUILD],"g"),sr=i=>i.value==="<0.0.0-0",Ks=i=>i.value==="",lr=(i,t)=>{let e=!0,n=i.slice(),o=n.pop();for(;e&&n.length;)e=n.every(r=>o.intersects(r,t)),o=n.pop();return e},Zs=(i,t)=>(i=i.replace($[O.BUILD],""),I("comp",i,t),i=Js(i,t),I("caret",i),i=Qs(i,t),I("tildes",i),i=tl(i,t),I("xrange",i),i=il(i,t),I("stars",i),i),B=i=>!i||i.toLowerCase()==="x"||i==="*",Qs=(i,t)=>i.trim().split(/\s+/).map(e=>Ys(e,t)).join(" "),Ys=(i,t)=>{let e=t.loose?$[O.TILDELOOSE]:$[O.TILDE];return i.replace(e,(n,o,r,p,g)=>{I("tilde",i,n,o,r,p,g);let x;return B(o)?x="":B(r)?x=`>=${o}.0.0 <${+o+1}.0.0-0`:B(p)?x=`>=${o}.${r}.0 <${o}.${+r+1}.0-0`:g?(I("replaceTilde pr",g),x=`>=${o}.${r}.${p}-${g} <${o}.${+r+1}.0-0`):x=`>=${o}.${r}.${p} <${o}.${+r+1}.0-0`,I("tilde return",x),x})},Js=(i,t)=>i.trim().split(/\s+/).map(e=>el(e,t)).join(" "),el=(i,t)=>{I("caret",i,t);let e=t.loose?$[O.CARETLOOSE]:$[O.CARET],n=t.includePrerelease?"-0":"";return i.replace(e,(o,r,p,g,x)=>{I("caret",i,o,r,p,g,x);let T;return B(r)?T="":B(p)?T=`>=${r}.0.0${n} <${+r+1}.0.0-0`:B(g)?r==="0"?T=`>=${r}.${p}.0${n} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.0${n} <${+r+1}.0.0-0`:x?(I("replaceCaret pr",x),r==="0"?p==="0"?T=`>=${r}.${p}.${g}-${x} <${r}.${p}.${+g+1}-0`:T=`>=${r}.${p}.${g}-${x} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.${g}-${x} <${+r+1}.0.0-0`):(I("no pr"),r==="0"?p==="0"?T=`>=${r}.${p}.${g}${n} <${r}.${p}.${+g+1}-0`:T=`>=${r}.${p}.${g}${n} <${r}.${+p+1}.0-0`:T=`>=${r}.${p}.${g} <${+r+1}.0.0-0`),I("caret return",T),T})},tl=(i,t)=>(I("replaceXRanges",i,t),i.split(/\s+/).map(e=>nl(e,t)).join(" ")),nl=(i,t)=>{i=i.trim();let e=t.loose?$[O.XRANGELOOSE]:$[O.XRANGE];return i.replace(e,(n,o,r,p,g,x)=>{I("xRange",i,n,o,r,p,g,x);let T=B(r),P=T||B(p),S=P||B(g),D=S;return o==="="&&D&&(o=""),x=t.includePrerelease?"-0":"",T?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&D?(P&&(p=0),g=0,o===">"?(o=">=",P?(r=+r+1,p=0,g=0):(p=+p+1,g=0)):o==="<="&&(o="<",P?r=+r+1:p=+p+1),o==="<"&&(x="-0"),n=`${o+r}.${p}.${g}${x}`):P?n=`>=${r}.0.0${x} <${+r+1}.0.0-0`:S&&(n=`>=${r}.${p}.0${x} <${r}.${+p+1}.0-0`),I("xRange return",n),n})},il=(i,t)=>(I("replaceStars",i,t),i.trim().replace($[O.STAR],"")),ol=(i,t)=>(I("replaceGTE0",i,t),i.trim().replace($[t.includePrerelease?O.GTE0PRE:O.GTE0],"")),rl=i=>(t,e,n,o,r,p,g,x,T,P,S,D)=>(B(n)?e="":B(o)?e=`>=${n}.0.0${i?"-0":""}`:B(r)?e=`>=${n}.${o}.0${i?"-0":""}`:p?e=`>=${e}`:e=`>=${e}${i?"-0":""}`,B(T)?x="":B(P)?x=`<${+T+1}.0.0-0`:B(S)?x=`<${T}.${+P+1}.0-0`:D?x=`<=${T}.${P}.${S}-${D}`:i?x=`<${T}.${P}.${+S+1}-0`:x=`<=${x}`,`${e} ${x}`.trim()),al=(i,t,e)=>{for(let n=0;n<i.length;n++)if(!i[n].test(t))return!1;if(t.prerelease.length&&!e.includePrerelease){for(let n=0;n<i.length;n++)if(I(i[n].semver),i[n].semver!==Xt.ANY&&i[n].semver.prerelease.length>0){let o=i[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var De=k((qu,fr)=>{"use strict";var Re=Symbol("SemVer ANY"),Qt=class i{static get ANY(){return Re}constructor(t,e){if(e=pr(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Zt("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===Re?this.value="":this.value=this.operator+this.semver.version,Zt("comp",this)}parse(t){let e=this.options.loose?dr[ur.COMPARATORLOOSE]:dr[ur.COMPARATOR],n=t.match(e);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new mr(n[2],this.options.loose):this.semver=Re}toString(){return this.value}test(t){if(Zt("Comparator.test",t,this.options.loose),this.semver===Re||t===Re)return!0;if(typeof t=="string")try{t=new mr(t,this.options)}catch(e){return!1}return Kt(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new _r(t.value,e).test(this.value):t.operator===""?t.value===""?!0:new _r(this.value,e).test(t.semver):(e=pr(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("=")||Kt(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Kt(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};fr.exports=Qt;var pr=tt(),{safeRe:dr,t:ur}=Te(),Kt=jt(),Zt=Pe(),mr=L(),_r=X()});var Le=k((zu,hr)=>{"use strict";var sl=X(),ll=(i,t,e)=>{try{t=new sl(t,e)}catch(n){return!1}return t.test(i)};hr.exports=ll});var Cr=k((Uu,gr)=>{"use strict";var cl=X(),pl=(i,t)=>new cl(i,t).set.map(e=>e.map(n=>n.value).join(" ").trim().split(" "));gr.exports=pl});var br=k((Gu,vr)=>{"use strict";var dl=L(),ul=X(),ml=(i,t,e)=>{let n=null,o=null,r=null;try{r=new ul(t,e)}catch(p){return null}return i.forEach(p=>{r.test(p)&&(!n||o.compare(p)===-1)&&(n=p,o=new dl(n,e))}),n};vr.exports=ml});var xr=k((ju,wr)=>{"use strict";var _l=L(),fl=X(),hl=(i,t,e)=>{let n=null,o=null,r=null;try{r=new fl(t,e)}catch(p){return null}return i.forEach(p=>{r.test(p)&&(!n||o.compare(p)===1)&&(n=p,o=new _l(n,e))}),n};wr.exports=hl});var Tr=k((Hu,Er)=>{"use strict";var Yt=L(),gl=X(),yr=Ie(),Cl=(i,t)=>{i=new gl(i,t);let e=new Yt("0.0.0");if(i.test(e)||(e=new Yt("0.0.0-0"),i.test(e)))return e;e=null;for(let n=0;n<i.set.length;++n){let o=i.set[n],r=null;o.forEach(p=>{let g=new Yt(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!r||yr(g,r))&&(r=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),r&&(!e||yr(e,r))&&(e=r)}return e&&i.test(e)?e:null};Er.exports=Cl});var Ar=k((Wu,Sr)=>{"use strict";var vl=X(),bl=(i,t)=>{try{return new vl(i,t).range||"*"}catch(e){return null}};Sr.exports=bl});var ut=k((Xu,Ir)=>{"use strict";var wl=L(),Pr=De(),{ANY:xl}=Pr,yl=X(),El=Le(),kr=Ie(),Mr=st(),Tl=ct(),Sl=lt(),Al=(i,t,e,n)=>{i=new wl(i,n),t=new yl(t,n);let o,r,p,g,x;switch(e){case">":o=kr,r=Tl,p=Mr,g=">",x=">=";break;case"<":o=Mr,r=Sl,p=kr,g="<",x="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(El(i,t,n))return!1;for(let T=0;T<t.set.length;++T){let P=t.set[T],S=null,D=null;if(P.forEach(A=>{A.semver===xl&&(A=new Pr(">=0.0.0")),S=S||A,D=D||A,o(A.semver,S.semver,n)?S=A:p(A.semver,D.semver,n)&&(D=A)}),S.operator===g||S.operator===x||(!D.operator||D.operator===g)&&r(i,D.semver))return!1;if(D.operator===x&&p(i,D.semver))return!1}return!0};Ir.exports=Al});var Rr=k((Ku,Dr)=>{"use strict";var kl=ut(),Ml=(i,t,e)=>kl(i,t,">",e);Dr.exports=Ml});var Or=k((Zu,Lr)=>{"use strict";var Pl=ut(),Il=(i,t,e)=>Pl(i,t,"<",e);Lr.exports=Il});var Nr=k((Qu,Fr)=>{"use strict";var Vr=X(),Dl=(i,t,e)=>(i=new Vr(i,e),t=new Vr(t,e),i.intersects(t,e));Fr.exports=Dl});var Br=k((Yu,$r)=>{"use strict";var Rl=Le(),Ll=W();$r.exports=(i,t,e)=>{let n=[],o=null,r=null,p=i.sort((P,S)=>Ll(P,S,e));for(let P of p)Rl(P,t,e)?(r=P,o||(o=P)):(r&&n.push([o,r]),r=null,o=null);o&&n.push([o,null]);let g=[];for(let[P,S]of n)P===S?g.push(P):!S&&P===p[0]?g.push("*"):S?P===p[0]?g.push(`<=${S}`):g.push(`${P} - ${S}`):g.push(`>=${P}`);let x=g.join(" || "),T=typeof t.raw=="string"?t.raw:String(t);return x.length<T.length?x:t}});var Hr=k((Ju,jr)=>{"use strict";var qr=X(),tn=De(),{ANY:Jt}=tn,en=Le(),nn=W(),Ol=(i,t,e={})=>{if(i===t)return!0;i=new qr(i,e),t=new qr(t,e);let n=!1;e:for(let o of i.set){for(let r of t.set){let p=Fl(o,r,e);if(n=n||p!==null,p)continue e}if(n)return!1}return!0},Vl=[new tn(">=0.0.0-0")],zr=[new tn(">=0.0.0")],Fl=(i,t,e)=>{if(i===t)return!0;if(i.length===1&&i[0].semver===Jt){if(t.length===1&&t[0].semver===Jt)return!0;e.includePrerelease?i=Vl:i=zr}if(t.length===1&&t[0].semver===Jt){if(e.includePrerelease)return!0;t=zr}let n=new Set,o,r;for(let A of i)A.operator===">"||A.operator===">="?o=Ur(o,A,e):A.operator==="<"||A.operator==="<="?r=Gr(r,A,e):n.add(A.semver);if(n.size>1)return null;let p;if(o&&r){if(p=nn(o.semver,r.semver,e),p>0)return null;if(p===0&&(o.operator!==">="||r.operator!=="<="))return null}for(let A of n){if(o&&!en(A,String(o),e)||r&&!en(A,String(r),e))return null;for(let ea of t)if(!en(A,String(ea),e))return!1;return!0}let g,x,T,P,S=r&&!e.includePrerelease&&r.semver.prerelease.length?r.semver:!1,D=o&&!e.includePrerelease&&o.semver.prerelease.length?o.semver:!1;S&&S.prerelease.length===1&&r.operator==="<"&&S.prerelease[0]===0&&(S=!1);for(let A of t){if(P=P||A.operator===">"||A.operator===">=",T=T||A.operator==="<"||A.operator==="<=",o){if(D&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===D.major&&A.semver.minor===D.minor&&A.semver.patch===D.patch&&(D=!1),A.operator===">"||A.operator===">="){if(g=Ur(o,A,e),g===A&&g!==o)return!1}else if(o.operator===">="&&!A.test(o.semver))return!1}if(r){if(S&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===S.major&&A.semver.minor===S.minor&&A.semver.patch===S.patch&&(S=!1),A.operator==="<"||A.operator==="<="){if(x=Gr(r,A,e),x===A&&x!==r)return!1}else if(r.operator==="<="&&!A.test(r.semver))return!1}if(!A.operator&&(r||o)&&p!==0)return!1}return!(o&&T&&!r&&p!==0||r&&P&&!o&&p!==0||D||S)},Ur=(i,t,e)=>{if(!i)return t;let n=nn(i.semver,t.semver,e);return n>0?i:n<0||t.operator===">"&&i.operator===">="?t:i},Gr=(i,t,e)=>{if(!i)return t;let n=nn(i.semver,t.semver,e);return n<0?i:n>0||t.operator==="<"&&i.operator==="<="?t:i};jr.exports=Ol});var Zr=k((em,Kr)=>{"use strict";var on=Te(),Wr=Ee(),Nl=L(),Xr=Bt(),$l=de(),Bl=Co(),ql=bo(),zl=yo(),Ul=So(),Gl=ko(),jl=Po(),Hl=Do(),Wl=Lo(),Xl=W(),Kl=No(),Zl=Bo(),Ql=at(),Yl=Go(),Jl=Ho(),ec=Ie(),tc=st(),nc=Ut(),ic=Gt(),oc=lt(),rc=ct(),ac=jt(),sc=tr(),lc=ir(),cc=De(),pc=X(),dc=Le(),uc=Cr(),mc=br(),_c=xr(),fc=Tr(),hc=Ar(),gc=ut(),Cc=Rr(),vc=Or(),bc=Nr(),wc=Br(),xc=Hr();Kr.exports={parse:$l,valid:Bl,clean:ql,inc:zl,diff:Ul,major:Gl,minor:jl,patch:Hl,prerelease:Wl,compare:Xl,rcompare:Kl,compareLoose:Zl,compareBuild:Ql,sort:Yl,rsort:Jl,gt:ec,lt:tc,eq:nc,neq:ic,gte:oc,lte:rc,cmp:ac,coerce:sc,truncate:lc,Comparator:cc,Range:pc,satisfies:dc,toComparators:uc,maxSatisfying:mc,minSatisfying:_c,minVersion:fc,validRange:hc,outside:gc,gtr:Cc,ltr:vc,intersects:bc,simplifyRange:wc,subset:xc,SemVer:Nl,re:on.re,src:on.src,tokens:on.t,SEMVER_SPEC_VERSION:Wr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Wr.RELEASE_TYPES,compareIdentifiers:Xr.compareIdentifiers,rcompareIdentifiers:Xr.rcompareIdentifiers}});var eo="mat-badge-content",na=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=R({type:i,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-badge {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.mat-badge.mat-badge {
|
|
5
|
+
overflow: visible;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.mat-badge-content {
|
|
9
|
+
position: absolute;
|
|
10
|
+
text-align: center;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
transition: transform 200ms ease-in-out;
|
|
13
|
+
transform: scale(0.6);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
background-color: var(--mat-badge-background-color, var(--mat-sys-error));
|
|
20
|
+
color: var(--mat-badge-text-color, var(--mat-sys-on-error));
|
|
21
|
+
font-family: var(--mat-badge-text-font, var(--mat-sys-label-small-font));
|
|
22
|
+
font-weight: var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));
|
|
23
|
+
border-radius: var(--mat-badge-container-shape, var(--mat-sys-corner-full));
|
|
24
|
+
}
|
|
25
|
+
.mat-badge-above .mat-badge-content {
|
|
26
|
+
bottom: 100%;
|
|
27
|
+
}
|
|
28
|
+
.mat-badge-below .mat-badge-content {
|
|
29
|
+
top: 100%;
|
|
30
|
+
}
|
|
31
|
+
.mat-badge-before .mat-badge-content {
|
|
32
|
+
right: 100%;
|
|
33
|
+
}
|
|
34
|
+
[dir=rtl] .mat-badge-before .mat-badge-content {
|
|
35
|
+
right: auto;
|
|
36
|
+
left: 100%;
|
|
37
|
+
}
|
|
38
|
+
.mat-badge-after .mat-badge-content {
|
|
39
|
+
left: 100%;
|
|
40
|
+
}
|
|
41
|
+
[dir=rtl] .mat-badge-after .mat-badge-content {
|
|
42
|
+
left: auto;
|
|
43
|
+
right: 100%;
|
|
44
|
+
}
|
|
45
|
+
@media (forced-colors: active) {
|
|
46
|
+
.mat-badge-content {
|
|
47
|
+
outline: solid 1px;
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mat-badge-disabled .mat-badge-content {
|
|
53
|
+
background-color: var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));
|
|
54
|
+
color: var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.mat-badge-hidden .mat-badge-content {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ng-animate-disabled .mat-badge-content,
|
|
62
|
+
.mat-badge-content._mat-animation-noopable {
|
|
63
|
+
transition: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mat-badge-content.mat-badge-active {
|
|
67
|
+
transform: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.mat-badge-small .mat-badge-content {
|
|
71
|
+
width: var(--mat-badge-legacy-small-size-container-size, unset);
|
|
72
|
+
height: var(--mat-badge-legacy-small-size-container-size, unset);
|
|
73
|
+
min-width: var(--mat-badge-small-size-container-size, 6px);
|
|
74
|
+
min-height: var(--mat-badge-small-size-container-size, 6px);
|
|
75
|
+
line-height: var(--mat-badge-small-size-line-height, 6px);
|
|
76
|
+
padding: var(--mat-badge-small-size-container-padding, 0);
|
|
77
|
+
font-size: var(--mat-badge-small-size-text-size, 0);
|
|
78
|
+
margin: var(--mat-badge-small-size-container-offset, -6px 0);
|
|
79
|
+
}
|
|
80
|
+
.mat-badge-small.mat-badge-overlap .mat-badge-content {
|
|
81
|
+
margin: var(--mat-badge-small-size-container-overlap-offset, -6px);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.mat-badge-medium .mat-badge-content {
|
|
85
|
+
width: var(--mat-badge-legacy-container-size, unset);
|
|
86
|
+
height: var(--mat-badge-legacy-container-size, unset);
|
|
87
|
+
min-width: var(--mat-badge-container-size, 16px);
|
|
88
|
+
min-height: var(--mat-badge-container-size, 16px);
|
|
89
|
+
line-height: var(--mat-badge-line-height, 16px);
|
|
90
|
+
padding: var(--mat-badge-container-padding, 0 4px);
|
|
91
|
+
font-size: var(--mat-badge-text-size, var(--mat-sys-label-small-size));
|
|
92
|
+
margin: var(--mat-badge-container-offset, -12px 0);
|
|
93
|
+
}
|
|
94
|
+
.mat-badge-medium.mat-badge-overlap .mat-badge-content {
|
|
95
|
+
margin: var(--mat-badge-container-overlap-offset, -12px);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mat-badge-large .mat-badge-content {
|
|
99
|
+
width: var(--mat-badge-legacy-large-size-container-size, unset);
|
|
100
|
+
height: var(--mat-badge-legacy-large-size-container-size, unset);
|
|
101
|
+
min-width: var(--mat-badge-large-size-container-size, 16px);
|
|
102
|
+
min-height: var(--mat-badge-large-size-container-size, 16px);
|
|
103
|
+
line-height: var(--mat-badge-large-size-line-height, 16px);
|
|
104
|
+
padding: var(--mat-badge-large-size-container-padding, 0 4px);
|
|
105
|
+
font-size: var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));
|
|
106
|
+
margin: var(--mat-badge-large-size-container-offset, -12px 0);
|
|
107
|
+
}
|
|
108
|
+
.mat-badge-large.mat-badge-overlap .mat-badge-content {
|
|
109
|
+
margin: var(--mat-badge-large-size-container-overlap-offset, -12px);
|
|
110
|
+
}
|
|
111
|
+
`],encapsulation:2,changeDetection:0})}return i})(),to=(()=>{class i{_ngZone=w(ae);_elementRef=w(se);_ariaDescriber=w(Vn);_renderer=w(Be);_animationsDisabled=Ke();_idGenerator=w(Mn);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled=!1;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=!1;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=w(Xe);_document=w(Fe);constructor(){let e=w(Tn);e.load(na),e.load(Rn)}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}ngAfterViewInit(){}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"),n="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(eo),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(n)})}):e.classList.add(n),e}_updateRenderedContent(e){let n=`${e??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_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 n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),e&&n.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${eo}`);for(let n of Array.from(e))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||i)};static \u0275dir=mn({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,o){n&2&&N("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",je],disabled:[2,"matBadgeDisabled","disabled",je],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",je]}})}return i})(),no=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=qe({type:i});static \u0275inj=Ve({imports:[On,We]})}return i})();var et=["*"],ra=["content"],aa=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],sa=["mat-drawer","mat-drawer-content","*"];function la(i,t){if(i&1){let e=E();a(0,"div",1),_("click",function(){u(e);let o=l();return m(o._onBackdropClicked())}),s()}if(i&2){let e=l();N("mat-drawer-shown",e._isShowingBackdrop())}}function ca(i,t){i&1&&(a(0,"mat-drawer-content"),K(1,2),s())}var pa=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],da=["mat-sidenav","mat-sidenav-content","*"];function ua(i,t){if(i&1){let e=E();a(0,"div",1),_("click",function(){u(e);let o=l();return m(o._onBackdropClicked())}),s()}if(i&2){let e=l();N("mat-drawer-shown",e._isShowingBackdrop())}}function ma(i,t){i&1&&(a(0,"mat-sidenav-content"),K(1,2),s())}var _a=`.mat-drawer-container {
|
|
112
|
+
position: relative;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
115
|
+
background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background));
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
display: block;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
}
|
|
120
|
+
.mat-drawer-container[fullscreen] {
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
right: 0;
|
|
124
|
+
bottom: 0;
|
|
125
|
+
position: absolute;
|
|
126
|
+
}
|
|
127
|
+
.mat-drawer-container[fullscreen].mat-drawer-container-has-open {
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
130
|
+
.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side {
|
|
131
|
+
z-index: 3;
|
|
132
|
+
}
|
|
133
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,
|
|
134
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,
|
|
135
|
+
.ng-animate-disabled .mat-drawer-container .mat-drawer-content {
|
|
136
|
+
transition: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.mat-drawer-backdrop {
|
|
140
|
+
top: 0;
|
|
141
|
+
left: 0;
|
|
142
|
+
right: 0;
|
|
143
|
+
bottom: 0;
|
|
144
|
+
position: absolute;
|
|
145
|
+
display: block;
|
|
146
|
+
z-index: 3;
|
|
147
|
+
visibility: hidden;
|
|
148
|
+
}
|
|
149
|
+
.mat-drawer-backdrop.mat-drawer-shown {
|
|
150
|
+
visibility: visible;
|
|
151
|
+
background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent));
|
|
152
|
+
}
|
|
153
|
+
.mat-drawer-transition .mat-drawer-backdrop {
|
|
154
|
+
transition-duration: 400ms;
|
|
155
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
156
|
+
transition-property: background-color, visibility;
|
|
157
|
+
}
|
|
158
|
+
@media (forced-colors: active) {
|
|
159
|
+
.mat-drawer-backdrop {
|
|
160
|
+
opacity: 0.5;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.mat-drawer-content {
|
|
165
|
+
position: relative;
|
|
166
|
+
z-index: 1;
|
|
167
|
+
display: block;
|
|
168
|
+
height: 100%;
|
|
169
|
+
overflow: auto;
|
|
170
|
+
}
|
|
171
|
+
.mat-drawer-content.mat-drawer-content-hidden {
|
|
172
|
+
opacity: 0;
|
|
173
|
+
}
|
|
174
|
+
.mat-drawer-transition .mat-drawer-content {
|
|
175
|
+
transition-duration: 400ms;
|
|
176
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
177
|
+
transition-property: transform, margin-left, margin-right;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.mat-drawer {
|
|
181
|
+
position: relative;
|
|
182
|
+
z-index: 4;
|
|
183
|
+
color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));
|
|
184
|
+
box-shadow: var(--mat-sidenav-container-elevation-shadow, none);
|
|
185
|
+
background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface));
|
|
186
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
187
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
188
|
+
width: var(--mat-sidenav-container-width, 360px);
|
|
189
|
+
display: block;
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: 0;
|
|
192
|
+
bottom: 0;
|
|
193
|
+
z-index: 3;
|
|
194
|
+
outline: 0;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
overflow-y: auto;
|
|
197
|
+
transform: translate3d(-100%, 0, 0);
|
|
198
|
+
}
|
|
199
|
+
@media (forced-colors: active) {
|
|
200
|
+
.mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end {
|
|
201
|
+
border-right: solid 1px currentColor;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
@media (forced-colors: active) {
|
|
205
|
+
[dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end {
|
|
206
|
+
border-left: solid 1px currentColor;
|
|
207
|
+
border-right: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
.mat-drawer.mat-drawer-side {
|
|
211
|
+
z-index: 2;
|
|
212
|
+
}
|
|
213
|
+
.mat-drawer.mat-drawer-end {
|
|
214
|
+
right: 0;
|
|
215
|
+
transform: translate3d(100%, 0, 0);
|
|
216
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
217
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
218
|
+
border-top-right-radius: 0;
|
|
219
|
+
border-bottom-right-radius: 0;
|
|
220
|
+
}
|
|
221
|
+
[dir=rtl] .mat-drawer {
|
|
222
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
223
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
224
|
+
border-top-right-radius: 0;
|
|
225
|
+
border-bottom-right-radius: 0;
|
|
226
|
+
transform: translate3d(100%, 0, 0);
|
|
227
|
+
}
|
|
228
|
+
[dir=rtl] .mat-drawer.mat-drawer-end {
|
|
229
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
230
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
231
|
+
border-top-left-radius: 0;
|
|
232
|
+
border-bottom-left-radius: 0;
|
|
233
|
+
left: 0;
|
|
234
|
+
right: auto;
|
|
235
|
+
transform: translate3d(-100%, 0, 0);
|
|
236
|
+
}
|
|
237
|
+
.mat-drawer-transition .mat-drawer {
|
|
238
|
+
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
239
|
+
}
|
|
240
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) {
|
|
241
|
+
visibility: hidden;
|
|
242
|
+
box-shadow: none;
|
|
243
|
+
}
|
|
244
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container {
|
|
245
|
+
display: none;
|
|
246
|
+
}
|
|
247
|
+
.mat-drawer.mat-drawer-opened.mat-drawer-opened {
|
|
248
|
+
transform: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.mat-drawer-side {
|
|
252
|
+
box-shadow: none;
|
|
253
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
254
|
+
border-right-width: 1px;
|
|
255
|
+
border-right-style: solid;
|
|
256
|
+
}
|
|
257
|
+
.mat-drawer-side.mat-drawer-end {
|
|
258
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
259
|
+
border-left-width: 1px;
|
|
260
|
+
border-left-style: solid;
|
|
261
|
+
border-right: none;
|
|
262
|
+
}
|
|
263
|
+
[dir=rtl] .mat-drawer-side {
|
|
264
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
265
|
+
border-left-width: 1px;
|
|
266
|
+
border-left-style: solid;
|
|
267
|
+
border-right: none;
|
|
268
|
+
}
|
|
269
|
+
[dir=rtl] .mat-drawer-side.mat-drawer-end {
|
|
270
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
271
|
+
border-right-width: 1px;
|
|
272
|
+
border-right-style: solid;
|
|
273
|
+
border-left: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.mat-drawer-inner-container {
|
|
277
|
+
width: 100%;
|
|
278
|
+
height: 100%;
|
|
279
|
+
overflow: auto;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.mat-sidenav-fixed {
|
|
283
|
+
position: fixed;
|
|
284
|
+
}
|
|
285
|
+
`;var fa=new xt("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>!1}),Vt=new xt("MAT_DRAWER_CONTAINER"),Ye=(()=>{class i extends be{_platform=w(He);_changeDetectorRef=w(Ge);_container=w(Ot);constructor(){let e=w(se),n=w(An),o=w(ae);super(e,n,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:n}=this._container;return e!=null&&e.mode!=="over"&&e.opened||n!=null&&n.mode!=="over"&&n.opened}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=R({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,o){n&2&&(te("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),N("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[Ce([{provide:be,useExisting:i}]),Ae],ngContentSelectors:et,decls:1,vars:0,template:function(n,o){n&1&&(ue(),K(0))},encapsulation:2,changeDetection:0})}return i})(),Lt=(()=>{class i{_elementRef=w(se);_focusTrapFactory=w(Ln);_focusMonitor=w(Dn);_platform=w(He);_ngZone=w(ae);_renderer=w(Be);_interactivityChecker=w(Xe);_doc=w(Fe);_container=w(Vt,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=!1;_anchor=null;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=_e(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=_e(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(_e(e))}_opened=G(!1);_openedVia=null;_animationStarted=new re;_animationEnd=new re;openedChange=new Ne(!0);_openedStream=this.openedChange.pipe(Se(e=>e),vt(()=>{}));openedStart=this._animationStarted.pipe(Se(()=>this.opened),bt(void 0));_closedStream=this.openedChange.pipe(Se(e=>!e),vt(()=>{}));closedStart=this._animationStarted.pipe(Se(()=>!this.opened),bt(void 0));_destroyed=new re;onPositionChanged=new Ne;_content;_modeChanged=new re;_injector=w(yt);_changeDetectorRef=w(Ge);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._eventCleanups=this._ngZone.runOutsideAngular(()=>{let e=this._renderer,n=this._elementRef.nativeElement;return[e.listen(n,"keydown",o=>{o.keyCode===27&&!this.disableClose&&!Pn(o)&&this._ngZone.run(()=>{this.close(),o.stopPropagation(),o.preventDefault()})}),e.listen(n,"transitionend",this._handleTransitionEvent),e.listen(n,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),p(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),p=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":Et(()=>{!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,n){e&&n&&(this._openedVia=n);let o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,n,o){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?(this._setIsAnimating(!0),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&n&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(pn(1)).subscribe(p=>r(p?"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.opened&&!!this._container?._isShowingBackdrop())}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let n=this._elementRef.nativeElement,o=n.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,n)),o.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}_handleTransitionEvent=e=>{let n=this._elementRef.nativeElement;e.target===n&&this._ngZone.run(()=>{e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e)})};static \u0275fac=function(n){return new(n||i)};static \u0275cmp=R({type:i,selectors:[["mat-drawer"]],viewQuery:function(n,o){if(n&1&&Z(ra,5),n&2){let r;V(r=F())&&(o._content=r.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(n,o){n&2&&(ke("align",null)("tabIndex",o.mode!=="side"?"-1":null),te("visibility",!o._container&&!o.opened?"hidden":null),N("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:et,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(ue(),a(0,"div",1,0),K(2),s())},dependencies:[be],encapsulation:2,changeDetection:0})}return i})(),Ot=(()=>{class i{_dir=w(Sn,{optional:!0});_element=w(se);_ngZone=w(ae);_changeDetectorRef=w(Ge);_animationDisabled=Ke();_transitionsEnabled=!1;_allDrawers;_drawers=new dn;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=_e(e)}_autosize=w(fa);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:_e(e)}_backdropOverride=null;backdropClick=new Ne;_start=null;_end=null;_left=null;_right=null;_destroyed=new re;_doCheckSubject=new re;_contentMargins={left:null,right:null};_contentMarginChanges=new re;get scrollable(){return this._userContent||this._content}_injector=w(yt);constructor(){let e=w(He),n=w(kn);this._dir?.change.pipe(Q(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),n.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(wt(this._allDrawers),Q(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(wt(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(cn(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,n=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,n-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")n+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();n+=o,e-=o}}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},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(()=>{Et({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(Q(ln(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let n=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?n.add(o):n.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(n){return new(n||i)};static \u0275cmp=R({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(n,o,r){if(n&1&&Tt(r,Ye,5)(r,Lt,5),n&2){let p;V(p=F())&&(o._content=p.first),V(p=F())&&(o._allDrawers=p)}},viewQuery:function(n,o){if(n&1&&Z(Ye,5),n&2){let r;V(r=F())&&(o._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,o){n&2&&N("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ce([{provide:Vt,useExisting:i}])],ngContentSelectors:sa,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(ue(aa),f(0,la,1,2,"div",0),K(1),K(2,1),f(3,ca,2,0,"mat-drawer-content")),n&2&&(h(o.hasBackdrop?0:-1),c(3),h(o._content?-1:3))},dependencies:[Ye],styles:[`.mat-drawer-container {
|
|
286
|
+
position: relative;
|
|
287
|
+
z-index: 1;
|
|
288
|
+
color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));
|
|
289
|
+
background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background));
|
|
290
|
+
box-sizing: border-box;
|
|
291
|
+
display: block;
|
|
292
|
+
overflow: hidden;
|
|
293
|
+
}
|
|
294
|
+
.mat-drawer-container[fullscreen] {
|
|
295
|
+
top: 0;
|
|
296
|
+
left: 0;
|
|
297
|
+
right: 0;
|
|
298
|
+
bottom: 0;
|
|
299
|
+
position: absolute;
|
|
300
|
+
}
|
|
301
|
+
.mat-drawer-container[fullscreen].mat-drawer-container-has-open {
|
|
302
|
+
overflow: hidden;
|
|
303
|
+
}
|
|
304
|
+
.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side {
|
|
305
|
+
z-index: 3;
|
|
306
|
+
}
|
|
307
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,
|
|
308
|
+
.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,
|
|
309
|
+
.ng-animate-disabled .mat-drawer-container .mat-drawer-content {
|
|
310
|
+
transition: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.mat-drawer-backdrop {
|
|
314
|
+
top: 0;
|
|
315
|
+
left: 0;
|
|
316
|
+
right: 0;
|
|
317
|
+
bottom: 0;
|
|
318
|
+
position: absolute;
|
|
319
|
+
display: block;
|
|
320
|
+
z-index: 3;
|
|
321
|
+
visibility: hidden;
|
|
322
|
+
}
|
|
323
|
+
.mat-drawer-backdrop.mat-drawer-shown {
|
|
324
|
+
visibility: visible;
|
|
325
|
+
background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent));
|
|
326
|
+
}
|
|
327
|
+
.mat-drawer-transition .mat-drawer-backdrop {
|
|
328
|
+
transition-duration: 400ms;
|
|
329
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
330
|
+
transition-property: background-color, visibility;
|
|
331
|
+
}
|
|
332
|
+
@media (forced-colors: active) {
|
|
333
|
+
.mat-drawer-backdrop {
|
|
334
|
+
opacity: 0.5;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.mat-drawer-content {
|
|
339
|
+
position: relative;
|
|
340
|
+
z-index: 1;
|
|
341
|
+
display: block;
|
|
342
|
+
height: 100%;
|
|
343
|
+
overflow: auto;
|
|
344
|
+
}
|
|
345
|
+
.mat-drawer-content.mat-drawer-content-hidden {
|
|
346
|
+
opacity: 0;
|
|
347
|
+
}
|
|
348
|
+
.mat-drawer-transition .mat-drawer-content {
|
|
349
|
+
transition-duration: 400ms;
|
|
350
|
+
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
351
|
+
transition-property: transform, margin-left, margin-right;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.mat-drawer {
|
|
355
|
+
position: relative;
|
|
356
|
+
z-index: 4;
|
|
357
|
+
color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));
|
|
358
|
+
box-shadow: var(--mat-sidenav-container-elevation-shadow, none);
|
|
359
|
+
background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface));
|
|
360
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
361
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
362
|
+
width: var(--mat-sidenav-container-width, 360px);
|
|
363
|
+
display: block;
|
|
364
|
+
position: absolute;
|
|
365
|
+
top: 0;
|
|
366
|
+
bottom: 0;
|
|
367
|
+
z-index: 3;
|
|
368
|
+
outline: 0;
|
|
369
|
+
box-sizing: border-box;
|
|
370
|
+
overflow-y: auto;
|
|
371
|
+
transform: translate3d(-100%, 0, 0);
|
|
372
|
+
}
|
|
373
|
+
@media (forced-colors: active) {
|
|
374
|
+
.mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end {
|
|
375
|
+
border-right: solid 1px currentColor;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
@media (forced-colors: active) {
|
|
379
|
+
[dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end {
|
|
380
|
+
border-left: solid 1px currentColor;
|
|
381
|
+
border-right: none;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
.mat-drawer.mat-drawer-side {
|
|
385
|
+
z-index: 2;
|
|
386
|
+
}
|
|
387
|
+
.mat-drawer.mat-drawer-end {
|
|
388
|
+
right: 0;
|
|
389
|
+
transform: translate3d(100%, 0, 0);
|
|
390
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
391
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
392
|
+
border-top-right-radius: 0;
|
|
393
|
+
border-bottom-right-radius: 0;
|
|
394
|
+
}
|
|
395
|
+
[dir=rtl] .mat-drawer {
|
|
396
|
+
border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
397
|
+
border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
398
|
+
border-top-right-radius: 0;
|
|
399
|
+
border-bottom-right-radius: 0;
|
|
400
|
+
transform: translate3d(100%, 0, 0);
|
|
401
|
+
}
|
|
402
|
+
[dir=rtl] .mat-drawer.mat-drawer-end {
|
|
403
|
+
border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
404
|
+
border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));
|
|
405
|
+
border-top-left-radius: 0;
|
|
406
|
+
border-bottom-left-radius: 0;
|
|
407
|
+
left: 0;
|
|
408
|
+
right: auto;
|
|
409
|
+
transform: translate3d(-100%, 0, 0);
|
|
410
|
+
}
|
|
411
|
+
.mat-drawer-transition .mat-drawer {
|
|
412
|
+
transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
413
|
+
}
|
|
414
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) {
|
|
415
|
+
visibility: hidden;
|
|
416
|
+
box-shadow: none;
|
|
417
|
+
}
|
|
418
|
+
.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container {
|
|
419
|
+
display: none;
|
|
420
|
+
}
|
|
421
|
+
.mat-drawer.mat-drawer-opened.mat-drawer-opened {
|
|
422
|
+
transform: none;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.mat-drawer-side {
|
|
426
|
+
box-shadow: none;
|
|
427
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
428
|
+
border-right-width: 1px;
|
|
429
|
+
border-right-style: solid;
|
|
430
|
+
}
|
|
431
|
+
.mat-drawer-side.mat-drawer-end {
|
|
432
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
433
|
+
border-left-width: 1px;
|
|
434
|
+
border-left-style: solid;
|
|
435
|
+
border-right: none;
|
|
436
|
+
}
|
|
437
|
+
[dir=rtl] .mat-drawer-side {
|
|
438
|
+
border-left-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
439
|
+
border-left-width: 1px;
|
|
440
|
+
border-left-style: solid;
|
|
441
|
+
border-right: none;
|
|
442
|
+
}
|
|
443
|
+
[dir=rtl] .mat-drawer-side.mat-drawer-end {
|
|
444
|
+
border-right-color: var(--mat-sidenav-container-divider-color, transparent);
|
|
445
|
+
border-right-width: 1px;
|
|
446
|
+
border-right-style: solid;
|
|
447
|
+
border-left: none;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.mat-drawer-inner-container {
|
|
451
|
+
width: 100%;
|
|
452
|
+
height: 100%;
|
|
453
|
+
overflow: auto;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.mat-sidenav-fixed {
|
|
457
|
+
position: fixed;
|
|
458
|
+
}
|
|
459
|
+
`],encapsulation:2,changeDetection:0})}return i})(),Je=(()=>{class i extends Ye{static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(i)))(o||i)}})();static \u0275cmp=R({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ce([{provide:be,useExisting:i}]),Ae],ngContentSelectors:et,decls:1,vars:0,template:function(n,o){n&1&&(ue(),K(0))},encapsulation:2,changeDetection:0})}return i})(),Ft=(()=>{class i extends Lt{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=_e(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=At(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=At(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(i)))(o||i)}})();static \u0275cmp=R({type:i,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(n,o){n&2&&(ke("tabIndex",o.mode!=="side"?"-1":null)("align",null),te("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),N("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:[Ce([{provide:Lt,useExisting:i}]),Ae],ngContentSelectors:et,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(ue(),a(0,"div",1,0),K(2),s())},dependencies:[be],encapsulation:2,changeDetection:0})}return i})(),io=(()=>{class i extends Ot{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(i)))(o||i)}})();static \u0275cmp=R({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(n,o,r){if(n&1&&Tt(r,Je,5)(r,Ft,5),n&2){let p;V(p=F())&&(o._content=p.first),V(p=F())&&(o._allDrawers=p)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(n,o){n&2&&N("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ce([{provide:Vt,useExisting:i},{provide:Ot,useExisting:i}]),Ae],ngContentSelectors:da,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(ue(pa),f(0,ua,1,2,"div",0),K(1),K(2,1),f(3,ma,2,0,"mat-sidenav-content")),n&2&&(h(o.hasBackdrop?0:-1),c(3),h(o._content?-1:3))},dependencies:[Je],styles:[_a],encapsulation:2,changeDetection:0})}return i})(),oo=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=qe({type:i});static \u0275inj=Ve({imports:[kt,We,kt]})}return i})();var Jr=ta(Zr());var Tc=["frame"],mt=class i{constructor(t,e){this.service=t;this.sanitizer=e}placed=ce.required();frame;url;detach=null;ngOnInit(){let t=this.service.widgetDef(this.placed().extension,this.placed().widget);this.url=this.sanitizer.bypassSecurityTrustResourceUrl(t?.url?this.service.resolveAssetUrl(t.url):"about:blank"),this.detach=this.service.attachWidget(this.frame.nativeElement,this.placed())}onFrameLoad(){}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||i)(he(U),he(pe))};static \u0275cmp=R({type:i,selectors:[["fb-plotterext-widget"]],viewQuery:function(e,n){if(e&1&&Z(Tc,7),e&2){let o;V(o=F())&&(n.frame=o.first)}},inputs:{placed:[1,"placed"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms",3,"load","src","title"]],template:function(e,n){e&1&&(_n(0,"iframe",1,0),hn("load",function(){return n.onFrameLoad()}),fn()),e&2&&ge("src",n.url,le)("title",n.placed().widget)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none;background:transparent}"]})};var Sc=()=>[],Ac=(i,t)=>t.type+t.extension,kc=(i,t)=>t.instanceId;function Mc(i,t){if(i&1){let e=E();a(0,"div",3)(1,"mat-icon",4),d(2,"filter_alt"),s(),a(3,"span",5),d(4),s(),a(5,"button",6),_("click",function(){let o=u(e).$implicit,r=l(2);return m(r.clearChip(o))}),a(6,"mat-icon"),d(7,"close"),s()()()}if(i&2){let e=t.$implicit;c(4),z(e.label)}}function Pc(i,t){if(i&1&&(a(0,"div",2),j(1,Mc,8,1,"div",3,Ac),s()),i&2){let e=l();N("pe-chips-low",(e.byAnchor().ct??Cn(2,Sc)).length>0),c(),H(e.service.filterChips())}}function Ic(i,t){if(i&1&&(a(0,"div",9),C(1,"fb-plotterext-widget",10),s()),i&2){let e=t.$implicit,n=l(2);St(n.cellStyle(e)),c(),y("placed",e)}}function Dc(i,t){if(i&1&&(a(0,"div",7),j(1,Ic,2,3,"div",8,kc),s()),i&2){let e=t.$implicit,n=l();St(n.anchorStyle(e)),gn("pe-"+e),ke("data-anchor",e),c(),H(n.byAnchor()[e])}}var Rc=1500,Qr=8,ft=class i{anchors=It;byAnchor=ve(()=>{let t={};for(let e of It)t[e]=[];for(let e of this.service.activeWidgets())t[e.anchor]?.push(e);return t});service=w(U);zone=w(ae);host=w(se);holdTimer=null;downPoint=null;onPointerDown=t=>this.pointerDown(t);onPointerMove=t=>this.pointerMove(t);onPointerEnd=()=>this.cancelHold();unregisterHitTester=null;ngOnInit(){this.unregisterHitTester=this.service.registerHitTester((t,e)=>this.hitTest(t,e)),this.zone.runOutsideAngular(()=>{document.addEventListener("pointerdown",this.onPointerDown,!0),document.addEventListener("pointermove",this.onPointerMove,!0),document.addEventListener("pointerup",this.onPointerEnd,!0),document.addEventListener("pointercancel",this.onPointerEnd,!0)})}ngOnDestroy(){this.cancelHold(),this.unregisterHitTester?.(),this.unregisterHitTester=null,document.removeEventListener("pointerdown",this.onPointerDown,!0),document.removeEventListener("pointermove",this.onPointerMove,!0),document.removeEventListener("pointerup",this.onPointerEnd,!0),document.removeEventListener("pointercancel",this.onPointerEnd,!0)}anchorStyle(t){let e={"grid-template-columns":`repeat(${Dt[t].cols}, var(--pe-cell-w))`};if(t!=="ct"&&t!=="cb")return e;let n=new Set;for(let r of this.byAnchor()[t]??[]){let p=this.service.widgetDef(r.extension,r.widget),{cols:g}=Rt(p?.size??"1x1");for(let x=r.col;x<r.col+g&&x<2;x++)n.add(x)}let o="0px";return n.size===1&&(o=n.has(0)?"calc((var(--pe-cell-w) + var(--pe-gap)) / 2)":"calc((var(--pe-cell-w) + var(--pe-gap)) / -2)"),e["--pe-center-shift"]=o,e}cellStyle(t){let e=this.service.widgetDef(t.extension,t.widget),{cols:n,rows:o}=Rt(e?.size??"1x1");return{"grid-column":`${t.col+1} / span ${n}`,"grid-row":`${t.row+1} / span ${o}`}}clearChip(t){this.service.clearResourceFilter(t.extension,t.type)}pointerDown(t){if(this.cancelHold(),!t.isPrimary||t.pointerType==="mouse"&&t.button!==0||t.target?.closest(".cdk-overlay-container, mat-dialog-container, button, mat-toolbar, .pe-cell, .pe-chips"))return;let n=this.hitTest(t.clientX,t.clientY);n&&(this.service.cellOccupied(n.anchor,n.cell)||(this.downPoint={x:t.clientX,y:t.clientY},this.holdTimer=setTimeout(()=>{this.holdTimer=null,this.zone.run(()=>this.service.openAddWidgetPicker(n.anchor,n.cell))},Rc)))}pointerMove(t){if(!this.holdTimer||!this.downPoint)return;let e=t.clientX-this.downPoint.x,n=t.clientY-this.downPoint.y;e*e+n*n>Qr*Qr&&this.cancelHold()}cancelHold(){this.holdTimer&&clearTimeout(this.holdTimer),this.holdTimer=null,this.downPoint=null}hitTest(t,e){let n=this.host.nativeElement.querySelectorAll(".pe-anchor");for(let o of Array.from(n)){let r=o.getBoundingClientRect();if(t<r.left||t>r.right||e<r.top||e>r.bottom)continue;let p=o.dataset.anchor,{cols:g,rows:x}=Dt[p],T=Math.min(g-1,Math.max(0,Math.floor((t-r.left)/r.width*g))),P=Math.min(x-1,Math.max(0,Math.floor((e-r.top)/r.height*x)));return{anchor:p,cell:{col:T,row:P}}}return null}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=R({type:i,selectors:[["fb-plotterext-overlay"]],decls:3,vars:1,consts:[[1,"pe-chips",3,"pe-chips-low"],[1,"pe-anchor",3,"class","style"],[1,"pe-chips"],[1,"pe-chip"],[1,"pe-chip-icon"],[1,"pe-chip-label"],["aria-label","Clear filter",1,"pe-chip-clear",3,"click"],[1,"pe-anchor"],[1,"pe-cell",3,"style"],[1,"pe-cell"],[3,"placed"]],template:function(e,n){e&1&&(f(0,Pc,3,3,"div",0),j(1,Dc,3,5,"div",1,ze)),e&2&&(h(n.service.filterChips().length?0:-1),c(),H(n.anchors))},dependencies:[mt,xe,we],styles:["[_nghost-%COMP%]{position:absolute;inset:0;z-index:2000;pointer-events:none;--pe-cell-w: clamp(96px, 11vw, 150px);--pe-cell-h: clamp(84px, 9.5vw, 124px);--pe-gap: 6px;--pe-margin: 10px}.pe-anchor[_ngcontent-%COMP%]{position:absolute;display:grid;grid-template-rows:repeat(2,var(--pe-cell-h));gap:var(--pe-gap);pointer-events:none}.pe-tr[_ngcontent-%COMP%]{top:0;right:0}.pe-ct[_ngcontent-%COMP%]{top:0;left:50%;transform:translate(calc(-50% + var(--pe-center-shift, 0px)))}.pe-cb[_ngcontent-%COMP%]{bottom:0;left:50%;transform:translate(calc(-50% + var(--pe-center-shift, 0px)))}.pe-bl[_ngcontent-%COMP%]{bottom:0;left:0}.pe-br[_ngcontent-%COMP%]{bottom:0;right:0}.pe-cell[_ngcontent-%COMP%]{pointer-events:auto;overflow:hidden;border-radius:10px;box-shadow:0 1px 5px #00000059}.pe-chips[_ngcontent-%COMP%]{position:absolute;top:8px;left:50%;transform:translate(-50%);display:flex;gap:6px;pointer-events:auto;z-index:1}.pe-chips-low[_ngcontent-%COMP%]{top:calc(2 * var(--pe-cell-h) + var(--pe-gap) + 10px)}.pe-chip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;background:#141a20d9;color:#e8edf2;border-radius:16px;padding:3px 6px 3px 10px;font-size:12px;max-width:320px;box-shadow:0 1px 4px #00000059}.pe-chip-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#29b6f6}.pe-chip-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pe-chip-clear[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border:none;background:#ffffff26;color:#e8edf2;border-radius:50%;width:20px;height:20px;padding:0;cursor:pointer}.pe-chip-clear[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;height:14px}"]})};var Lc=["frame"],Oc=(i,t)=>t.key;function Vc(i,t){if(i&1&&C(0,"fb-plotterext-runtime",0),i&2){let e=t.$implicit;y("entry",e)}}var rn=class i{constructor(t,e){this.service=t;this.sanitizer=e}entry=ce.required();frame;url;detach=null;ngOnInit(){let{extension:t,runtime:e}=this.entry();this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"),this.detach=this.service.attachBackground(this.frame.nativeElement,{extension:t,runtime:e})}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||i)(he(U),he(pe))};static \u0275cmp=R({type:i,selectors:[["fb-plotterext-runtime"]],viewQuery:function(e,n){if(e&1&&Z(Lc,7),e&2){let o;V(o=F())&&(n.frame=o.first)}},inputs:{entry:[1,"entry"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms","aria-hidden","true",3,"src","title"]],template:function(e,n){e&1&&Ue(0,"iframe",1,0),e&2&&ge("src",n.url,le)("title",n.entry().runtime.id)},styles:["[_nghost-%COMP%]{display:none}"]})},ht=class i{service=w(U);static \u0275fac=function(e){return new(e||i)};static \u0275cmp=R({type:i,selectors:[["fb-plotterext-runtimes"]],decls:2,vars:0,consts:[[3,"entry"]],template:function(e,n){e&1&&j(0,Vc,1,1,"fb-plotterext-runtime",0,Oc),e&2&&H(n.service.backgroundRuntimes())},dependencies:[rn],styles:["[_nghost-%COMP%]{display:none}"]})};var Nc=["frame"],$c=(i,t)=>t.key;function Bc(i,t){if(i&1){let e=E();a(0,"div",1)(1,"span"),d(2),s(),a(3,"button",4),_("click",function(){u(e);let o=l();return m(o.service.closeVisiblePanel())}),a(4,"mat-icon"),d(5,"close"),s()()()}i&2&&(c(2),z(t.panel.title))}function qc(i,t){if(i&1&&(a(0,"div",5),C(1,"fb-plotterext-panel-frame",6),s()),i&2){let e=t.$implicit;N("pe-body-hidden",!e.visible),c(),y("panelKey",e.key)("extension",e.extension)("panel",e.panel)}}var an=class i{panelKey=ce.required();extension=ce.required();panel=ce.required();frame;url;detach=null;service=w(U);sanitizer=w(pe);ngOnInit(){this.url=this.sanitizer.bypassSecurityTrustResourceUrl(this.panel().url?this.service.resolveAssetUrl(this.panel().url):"about:blank"),this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.extension(),panel:this.panel(),close:()=>this.service.closePanel(this.panelKey())})}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=R({type:i,selectors:[["fb-plotterext-panel-frame"]],viewQuery:function(e,n){if(e&1&&Z(Nc,7),e&2){let o;V(o=F())&&(n.frame=o.first)}},inputs:{panelKey:[1,"panelKey"],extension:[1,"extension"],panel:[1,"panel"]},decls:2,vars:2,consts:[["frame",""],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"]],template:function(e,n){e&1&&Ue(0,"iframe",1,0),e&2&&ge("src",n.url,le)("title",n.panel().title)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}"]})},gt=class i{service=w(U);isOpen=ve(()=>!!this.service.visiblePanel());constructor(){let t=!0;ie(()=>{if(this.isOpen(),t){t=!1;return}this.service.pulseMapResize()})}onTransitionEnd(t){t.propertyName==="width"&&this.service.pulseMapResize(80)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=R({type:i,selectors:[["fb-plotterext-panel-drawer"]],hostVars:2,hostBindings:function(e,n){e&2&&N("pe-open",n.isOpen())},decls:5,vars:1,consts:[[1,"pe-drawer-inner",3,"transitionend"],[1,"pe-drawer-head"],[1,"pe-drawer-bodies"],[1,"pe-drawer-body",3,"pe-body-hidden"],["mat-icon-button","","aria-label","Close panel",3,"click"],[1,"pe-drawer-body"],[3,"panelKey","extension","panel"]],template:function(e,n){if(e&1&&(a(0,"div",0),_("transitionend",function(r){return n.onTransitionEnd(r)}),f(1,Bc,6,1,"div",1),a(2,"div",2),j(3,qc,2,5,"div",3,$c),s()()),e&2){let o;c(),h((o=n.service.visiblePanel())?1:-1,o),c(2),H(n.service.openPanels())}},dependencies:[Qe,Ze,xe,we,an],styles:["[_nghost-%COMP%]{flex:0 0 auto;height:100%;width:0;max-width:92vw;overflow:hidden;background:#1d242b;color:#e8edf2}.pe-open[_nghost-%COMP%]{width:390px;box-shadow:-2px 0 8px #0006}.pe-drawer-inner[_ngcontent-%COMP%]{width:390px;max-width:92vw;height:100%;display:flex;flex-direction:column}.pe-drawer-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 4px 14px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.12);flex:0 0 auto}.pe-drawer-bodies[_ngcontent-%COMP%]{flex:1;min-height:0;position:relative}.pe-drawer-body[_ngcontent-%COMP%]{position:absolute;inset:0}.pe-body-hidden[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}"]})};var zc=["sideright"],Uc=()=>[xi],Gc=()=>[ki],jc=()=>[bi],Hc=()=>[di],Wc=()=>[mi],Xc=()=>[wi],Kc=()=>[fi],Zc=()=>[Pi],Qc=()=>[Ri],Yc=(i,t)=>({"dark-theme":i,"app-night":t}),fe=(i,t)=>({"button-primary":i,"button-toolbar":t}),Jc=(i,t)=>t.extension+"/"+t.button.id,ep=(i,t)=>t[0];function tp(i,t){if(i&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("resourceGroups",!0))}),a(1,"mat-icon"),d(2,"category"),s(),d(3," \xA0Groups "),s()}}function np(i,t){if(i&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("infoLayerList",!0))}),a(1,"mat-icon"),d(2,"layers"),s(),d(3," \xA0Overlays "),s()}}function ip(i,t){if(i&1){let e=E();a(0,"button",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("trackList",!0))}),a(1,"mat-icon",32),d(2,"show_chart"),s(),d(3," \xA0Tracks "),s()}}function op(i,t){if(i&1){let e=E();a(0,"div")(1,"button",8),_("click",function(){let o=u(e).$implicit,r=l(2);return m(r.openExperiment({choice:o,value:null}))}),C(2,"mat-icon",33),d(3),s()()}if(i&2){let e=t.$implicit;c(3),me(" \xA0",e," ")}}function rp(i,t){if(i&1&&(a(0,"div"),j(1,op,4,1,"div",null,ze),s()),i&2){let e=l();c(),H(e.app.config.resources.paths.sort())}}function ap(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearTrail(o.app.data.serverTrail))}),a(1,"mat-icon"),d(2,"clear_all"),s(),a(3,"span"),d(4),s()(),a(5,"a",8),_("click",function(){u(e);let o=l();return m(o.trailToRoute())}),a(6,"mat-icon"),d(7,"insights"),s(),a(8,"span"),d(9,"Trail to Route"),s()(),C(10,"mat-divider")}if(i&2){let e=l();c(4),me("",e.app.data.serverTrail?"Refresh":"Clear"," Trail")}}function sp(i,t){i&1&&(a(0,"span"),d(1,"Clear Active Route"),s())}function lp(i,t){i&1&&(a(0,"span"),d(1,"Clear Destination"),s())}function cp(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.clearDestination())}),a(1,"mat-icon"),d(2,"clear_all"),s(),f(3,sp,2,0,"span")(4,lp,2,0,"span"),s(),a(5,"a",8),_("click",function(){u(e);let o=l();return m(o.clearCourseData())}),a(6,"mat-icon"),d(7,"clear_all"),s(),a(8,"span"),d(9,"Clear Course Data"),s()(),C(10,"mat-divider")}if(i&2){let e=l();c(3),h(e.app.data.activeRoute?3:4)}}function pp(i,t){if(i&1){let e=E();C(0,"mat-divider"),a(1,"a",8),_("click",function(){u(e);let o=l();return m(o.showWeather("forecast"))}),a(2,"mat-icon"),d(3,"air"),s(),a(4,"span"),d(5,"Weather Forecast"),s()()}}function dp(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.skres.newWaypointAt(o.app.data.vessels.active.position))}),a(1,"mat-icon",10),d(2,"add_location"),s(),a(3,"span"),d(4,"Add Waypoint at Vessel"),s()()}}function up(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.drawFeature("note"))}),a(1,"mat-icon"),d(2,"local_offer"),s(),a(3,"span"),d(4,"Add Note"),s()()}}function mp(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showLogin(null,!1))}),a(1,"mat-icon",34),d(2," account_circle "),s(),a(3,"span"),d(4),s()(),C(5,"mat-divider")}if(i&2){let e=l();c(),y("matBadgeHidden",e.app.isLoggedIn()),c(3),z(e.app.isLoggedIn()?"Change User":"Login")}}function _p(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.displayLeftMenu("anchorWatch",!0))}),a(1,"mat-icon"),d(2,"anchor"),s(),a(3,"span"),d(4,"Anchor Watch"),s()()}}function fp(i,t){i&1&&(a(0,"mat-icon",17),d(1,"check_box"),s())}function hp(i,t){i&1&&C(0,"mat-icon",35)}function gp(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showRadarPanel())}),f(1,fp,2,0,"mat-icon",17)(2,hp,1,0,"mat-icon",35),a(3,"span"),d(4,"Radar Overlay"),s()()}if(i&2){let e=l();c(),h(e.app.uiCtrl().radarLayer?1:2)}}function Cp(i,t){if(i&1){let e=E();a(0,"a",8),_("click",function(){u(e);let o=l();return m(o.showPlaybackSettings())}),a(1,"mat-icon"),d(2,"history"),s(),a(3,"span"),d(4,"Playback History"),s()()}}function vp(i,t){if(i&1){let e=E();a(0,"radar-panel",42),_("connect",function(){u(e);let o=l(2);return m(o.connectRadar())})("disconnect",function(){u(e);let o=l(2);return m(o.disconnectRadar())}),s()}if(i&2){let e=l(2);y("radar",e.infoPanel.item().resource)("id",e.infoPanel.item().id)}}function bp(i,t){if(i&1){let e=E();a(0,"note-panel",43),_("edit",function(o){u(e);let r=l(2);return m(r.skres.showNoteEditor({id:o}))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);y("note",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("interacting",e.isInteracting())}}function wp(i,t){if(i&1){let e=E();a(0,"region-panel",44),_("edit",function(o){u(e);let r=l(2);return m(r.skres.editRegionInfo(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);y("region",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function xp(i,t){if(i&1){let e=E();a(0,"waypoint-panel",45),_("edit",function(o){u(e);let r=l(2);return m(r.skres.editWaypointInfo(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);y("waypoint",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function yp(i,t){if(i&1){let e=E();a(0,"route-panel",46),_("edit",function(o){u(e);let r=l(2);return m(r.onRouteInfoEdit(o))})("activate",function(o){u(e);let r=l(2);return m(r.activateRoute(o))})("panTo",function(o){u(e);let r=l(2);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(2);y("route",e.infoPanel.item().resource)("id",e.infoPanel.item().id)("related",e.infoPanel.related())("interacting",e.isInteracting())}}function Ep(i,t){if(i&1){let e=E();a(0,"info-panel",36),_("closed",function(){u(e);let o=l();return m(o.closeDrawer())}),f(1,vp,1,2,"radar-panel",37),f(2,bp,1,3,"note-panel",38),f(3,wp,1,4,"region-panel",39),f(4,xp,1,4,"waypoint-panel",40),f(5,yp,1,4,"route-panel",41),s()}if(i&2){let e,n,o,r,p,g=l();c(),h(((e=g.infoPanel.item())==null?null:e.type)==="radars"?1:-1),c(),h(((n=g.infoPanel.item())==null?null:n.type)==="notes"?2:-1),c(),h(((o=g.infoPanel.item())==null?null:o.type)==="regions"?3:-1),c(),h(((r=g.infoPanel.item())==null?null:r.type)==="waypoints"?4:-1),c(),h(((p=g.infoPanel.item())==null?null:p.type)==="routes"?5:-1)}}function Tp(i,t){if(i&1){let e=E();a(0,"a",54),_("click",function(){u(e);let o=l(2);return m(o.closeInstrumentPanel())}),a(1,"mat-icon"),d(2,"open_in_new"),s()()}if(i&2){let e=l(2);y("href",e.instUrl(),un)}}function Sp(i,t){if(i&1&&C(0,"iframe",53),i&2){let e=l(2);y("src",e.instUrl(),le)}}function Ap(i,t){if(i&1){let e=E();a(0,"div",21)(1,"mat-nav-list")(2,"a",47)(3,"a",48),_("click",function(){u(e);let o=l();return m(o.closeInstrumentPanel())}),a(4,"mat-icon"),d(5,"arrow_forward"),s()(),d(6," \xA0\xA0\xA0\xA0 "),f(7,Tp,3,1,"a",49),a(8,"a",50),_("click",function(){u(e);let o=l();return m(o.selectPlugin())}),a(9,"mat-icon"),d(10,"arrow_back_ios"),s()(),a(11,"a",51),_("click",function(){u(e);let o=l();return m(o.selectPlugin(!0))}),a(12,"mat-icon"),d(13,"arrow_forward_ios"),s()()(),C(14,"mat-divider"),s(),a(15,"div",52),f(16,Sp,1,1,"iframe",53),s()()}if(i&2){let e=l();c(7),h(e.app.config.display.plugins.instruments?7:-1),c(),y("disabled",e.app.config.display.plugins.favourites.length===0),c(3),y("disabled",e.app.config.display.plugins.favourites.length===0),c(5),h(e.app.instrumentPanel().activate?16:-1)}}function kp(i,t){i&1&&(a(0,"div",23),C(1,"mat-progress-bar",55),s())}function Mp(i,t){if(i&1){let e=E();a(0,"autopilot-console",56),_("close",function(){u(e);let o=l();return m(o.toggleAutopilotConsole(!1))}),s()}if(i&2){let e=l();y("apData",e.app.data.vessels.self.autopilot)}}function Pp(i,t){if(i&1){let e=E();a(0,"route-builder",57),_("save",function(o){u(e);let r=l();return m(r.skres.newRouteAt(o.coordinates,o.meta))})("close",function(){u(e);let o=l();return m(o.toggleRouteBuilderConsole(!1))}),s()}}function Ip(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",77),_("click",function(){u(e);let o=l(3);return m(o.centerVessel())}),a(2,"mat-icon"),d(3," center_focus_strong "),s()()()}if(i&2){let e=l(3);c(),y("disabled",!e.app.data.vessels.showSelf)}}function Dp(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",78),_("click",function(){u(e);let o=l(3);return m(o.showSelectMode())}),a(2,"mat-icon"),d(3,"cancel"),s()()()}}function Rp(i,t){if(i&1){let e=E();a(0,"div",61)(1,"div",59)(2,"button",68),_("click",function(){u(e);let o=l(2);return m(o.toggleAlertList(!0))}),C(3,"mat-icon",69),s()(),a(4,"div",59)(5,"button",70)(6,"mat-icon"),d(7,"layers"),s()()(),a(8,"div",59)(9,"button",71)(10,"mat-icon"),d(11,"edit"),s()()(),a(12,"div",59)(13,"button",72),_("click",function(){u(e);let o=l(2);return m(o.toggleNorthUp())}),C(14,"mat-icon",73),s()(),a(15,"div",59)(16,"button",74),_("click",function(){u(e);let o=l(2);return m(o.toggleMoveMap())}),C(17,"mat-icon",75),s()(),f(18,Ip,4,1,"div",59),a(19,"div",59)(20,"button",76)(21,"mat-icon"),d(22,"more_horiz"),s()()(),f(23,Dp,4,0,"div",59),s()}if(i&2){let e=l(2),n=Me(3),o=Me(37),r=Me(63);c(2),y("matBadge",e.notiMgr.alerts().length)("matBadgeHidden",e.notiMgr.alerts().length===0),c(3),y("disabled",e.isInteracting())("matMenuTriggerFor",n),c(4),y("disabled",e.isInteracting())("matMenuTriggerFor",r),c(4),y("ngClass",oe(16,fe,!e.app.uiConfig().mapNorthUp,e.app.uiConfig().mapNorthUp))("matTooltip",e.app.uiConfig().mapNorthUp?"Show Heading Up":"Show North Up"),c(),y("svgIcon",e.app.uiConfig().mapNorthUp?"heading-n-up":"heading-h-up"),c(2),y("ngClass",oe(19,fe,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"),c(2),h(e.app.uiConfig().mapMove?-1:18),c(2),y("disabled",e.isInteracting())("matMenuTriggerFor",o),c(3),h(e.mode===1?23:-1)}}function Lp(i,t){if(i&1){let e=E();a(0,"route-list",80),_("activate",function(o){u(e);let r=l(4);return m(r.activateRoute(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("routes",o.id))})("points",function(o){u(e);let r=l(4);return m(r.featureProperties({id:o.id,type:"route"}))})("notes",function(o){u(e);let r=l(4);return m(r.skres.showRelatedNotes(o.id,"route",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);y("activeRoute",e.app.data.activeRoute)("editingRouteId",e.app.data.editingId)}}function Op(i,t){i&1&&(Y(0,Lp,1,2),J(1,0,Uc),ee())}function Vp(i,t){if(i&1){let e=E();a(0,"waypoint-list",81),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("waypoints",o.id))})("goto",function(o){u(e);let r=l(4);return m(r.course.navigateToWaypoint(o.id))})("deactivate",function(){u(e);let o=l(4);return m(o.clearDestination())})("center",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o))})("notes",function(o){u(e);let r=l(4);return m(r.skres.showRelatedNotes(o.id,"waypoint",o.readOnly))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);y("activeWaypoint",e.app.data.activeWaypoint)("editingWaypointId",e.app.data.editingId)}}function Fp(i,t){i&1&&(Y(0,Vp,1,2),J(1,0,Gc),ee())}function Np(i,t){if(i&1){let e=E();a(0,"chart-list",82),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);y("selectedCharts",e.app.config.selections.charts)}}function $p(i,t){i&1&&(Y(0,Np,1,1),J(1,0,jc),ee())}function Bp(i,t){if(i&1){let e=E();a(0,"note-list",83),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("notes",o.id))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);y("notes",e.skres.notes())}}function qp(i,t){i&1&&(Y(0,Bp,1,1),J(1,0,Hc),ee())}function zp(i,t){if(i&1){let e=E();a(0,"region-list",84),_("select",function(o){u(e);let r=l(4);return m(r.handleResourceInfo("regions",o.id))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(4);y("regions",e.skres.regions())}}function Up(i,t){i&1&&(Y(0,zp,1,1),J(1,0,Wc),ee())}function Gp(i,t){if(i&1){let e=E();a(0,"track-list",85),_("center",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function jp(i,t){i&1&&(Y(0,Gp,1,0),J(1,0,Xc),ee())}function Hp(i,t){if(i&1){let e=E();a(0,"ais-list",86),_("properties",function(o){u(e);let r=l(4);return m(r.featureProperties({id:o,type:"ais"}))})("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("focusVessel",function(o){u(e);let r=l(4);return m(r.switchActiveVessel(o))})("pan",function(o){u(e);let r=l(4);return m(r.centerAndZoom(o.center,o.zoomLevel))}),s()}if(i&2){let e=l(4);y("focusId",e.app.data.vessels.activeId)}}function Wp(i,t){i&1&&(Y(0,Hp,1,1),J(1,0,Kc),ee())}function Xp(i,t){if(i&1){let e=E();a(0,"group-list",36),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())}),s()}}function Kp(i,t){i&1&&(Y(0,Xp,1,0),J(1,0,Zc),ee())}function Zp(i,t){if(i&1){let e=E();a(0,"infolayer-list",87),_("closed",function(){u(e);let o=l(4);return m(o.displayLeftMenu())})("paramChanged",function(o){u(e);let r=l(4);return m(r.onInfoLayerParamChange(o))}),s()}}function Qp(i,t){i&1&&(Y(0,Zp,1,0),J(1,0,Qc),ee())}function Yp(i,t){if(i&1){let e=E();a(0,"anchor-watch",88),_("closed",function(){u(e);let o=l(3);return m(o.displayLeftMenu())}),s()}if(i&2){let e=l(3);y("showSelf",e.app.data.vessels.showSelf)("radius",e.anchor.radius())("raised",e.anchor.raised())}}function Jp(i,t){if(i&1&&(a(0,"div",62),f(1,Op,3,0),f(2,Fp,3,0),f(3,$p,3,0),f(4,qp,3,0),f(5,Up,3,0),f(6,jp,3,0),f(7,Wp,3,0),f(8,Kp,3,0),f(9,Qp,3,0),f(10,Yp,1,3,"anchor-watch",79),s()),i&2){let e=l(2);c(),h(e.leftMenuCtrl().routeList?1:-1),c(),h(e.leftMenuCtrl().waypointList?2:-1),c(),h(e.leftMenuCtrl().chartList?3:-1),c(),h(e.leftMenuCtrl().noteList?4:-1),c(),h(e.leftMenuCtrl().regionList?5:-1),c(),h(e.leftMenuCtrl().trackList?6:-1),c(),h(e.leftMenuCtrl().aisList?7:-1),c(),h(e.leftMenuCtrl().resourceGroups?8:-1),c(),h(e.leftMenuCtrl().infoLayerList?9:-1),c(),h(e.leftMenuCtrl().anchorWatch?10:-1)}}function ed(i,t){i&1&&(a(0,"div",64)(1,"mat-icon",89),d(2,"visibility_off "),s()())}function td(i,t){i&1&&(a(0,"div",64)(1,"mat-icon",90),d(2,"compare_arrows "),s()())}function nd(i,t){i&1&&(a(0,"div",64)(1,"mat-icon",91),d(2,"directions_boat "),s()())}function id(i,t){i&1&&(a(0,"div",64)(1,"mat-icon",92),d(2,"local_offer "),s()())}function od(i,t){i&1&&(a(0,"div",64)(1,"mat-icon",93),d(2,"signal_wifi_statusbar_connected_no_internet_4 "),s()())}function rd(i,t){if(i&1){let e=E();a(0,"button",99),_("click",function(){u(e);let o=l(3);return m(o.openInstrumentPanel())}),a(1,"mat-icon"),d(2,"av_timer"),s()()}}function ad(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",100),_("click",function(){u(e);let o=l(3);return m(o.enableAudio())}),a(2,"mat-icon",32),d(3,"volume_off"),s()(),C(4,"br"),d(5,"\xA0"),C(6,"br"),s()}}function sd(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",101),_("click",function(){u(e);let o=l(3);return m(o.toggleFullscreen())}),a(2,"mat-icon"),d(3),s()(),C(4,"br"),d(5,"\xA0"),C(6,"br"),s()}if(i&2){let e=l(3);c(),y("ngClass",oe(3,fe,e.displayFullscreen().active,!e.displayFullscreen().active))("matTooltip",e.displayFullscreen().active?"Exit Fullscreen ":"Go Fullscreen"),c(2),me(" ",e.displayFullscreen().active?"fullscreen_exit ":"fullscreen"," ")}}function ld(i,t){if(i&1){let e=E();a(0,"div",59)(1,"fb-experiments",102),_("selected",function(o){u(e);let r=l(3);return m(r.openExperiment(o))}),s(),C(2,"br"),d(3,"\xA0"),C(4,"br"),s()}}function cd(i,t){if(i&1){let e=E();a(0,"div",59)(1,"pip-video",103),_("click",function(){u(e);let o=l(3);return m(o.focusMap())}),s(),C(2,"br"),d(3,"\xA0"),C(4,"br"),s()}if(i&2){let e=l(3);c(),y("src",e.vidUrl())("muted",!0)}}function pd(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",104),_("click",function(){u(e);let o=l(3);return m(o.toggleAutopilotConsole(!0))}),C(2,"mat-icon",105),s(),C(3,"br"),d(4,"\xA0"),C(5,"br"),s()}if(i&2){let e=l(3);c(),y("ngClass",oe(1,fe,e.app.data.vessels.self.autopilot.enabled,!e.app.data.vessels.self.autopilot.enabled))}}function dd(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",106),_("click",function(){u(e);let o=l(3);return m(o.showRadarPanel())}),C(2,"mat-icon",35),s(),C(3,"br"),d(4,"\xA0"),C(5,"br"),s()}if(i&2){let e=l(3);c(),y("ngClass",oe(2,fe,e.app.uiCtrl().radarLayer,!e.app.uiCtrl().radarLayer))("disabled",e.app.instrumentPanel().open)}}function ud(i,t){if(i&1){let e=E();a(0,"div",59)(1,"button",107),_("click",function(){let o=u(e).$implicit,r=l(3);return m(r.plotterExt.handleButtonAction(o.extension,o.button))}),a(2,"mat-icon"),d(3),s()(),C(4,"br"),d(5,"\xA0"),C(6,"br"),s()}if(i&2){let e=t.$implicit;c(),y("matTooltip",e.button.title),c(2),z(e.button.icon||"extension")}}function md(i,t){if(i&1){let e=E();a(0,"div",94)(1,"div",95),f(2,rd,3,0,"button",96),C(3,"br"),d(4,"\xA0"),C(5,"br"),d(6,"\xA0 "),s(),f(7,ad,7,0,"div",59),f(8,sd,7,6,"div",59),a(9,"div",59)(10,"button",97),_("click",function(){u(e);let o=l(2);return m(o.toggleConstrainMapZoom())}),a(11,"mat-icon"),d(12,"zoom_in_map"),s()(),C(13,"br"),d(14,"\xA0"),C(15,"br"),s(),a(16,"div",59)(17,"button",98),_("click",function(){u(e);let o=l(2);return m(o.invertFeatureLabelColor())}),a(18,"mat-icon"),d(19),s()(),C(20,"br"),d(21,"\xA0"),C(22,"br"),s(),f(23,ld,5,0,"div",59),f(24,cd,5,2,"div",59),f(25,pd,6,4,"div",59),f(26,dd,6,5,"div",59),j(27,ud,7,2,"div",59,Jc),s()}if(i&2){let e=l(2);te("top",60+e.plotterExt.toolbarTopOffset(),"px"),c(2),h(e.app.instrumentPanelAvailable()&&!e.app.instrumentPanel().open&&!e.infoPanel.opened()&&!e.isInteracting()&&!e.app.data.vessels.activeId?2:-1),c(5),h(e.audioStatus()!=="running"?7:-1),c(),h(e.app.isTopWindow()&&e.displayFullscreen().enabled?8:-1),c(2),y("ngClass",oe(12,fe,e.app.uiConfig().mapConstrainZoom,!e.app.uiConfig().mapConstrainZoom)),c(7),y("ngClass",oe(15,fe,e.app.uiConfig().invertColor,!e.app.uiConfig().invertColor)),c(2),z("invert_colors"),c(4),h(e.app.config.experiments?23:-1),c(),h(e.app.config.resources.video.enable&&e.app.config.resources.video.url?24:-1),c(),h(e.app.featureFlags().autopilotApi&&e.app.data.vessels.self.autopilot.default&&e.app.config.display.fab!=="autopilot"?25:-1),c(),h(e.app.featureFlags().radarApi&&e.radarApi.radarId()&&e.app.config.display.fab!=="radar"?26:-1),c(),H(e.plotterExt.toolbarButtons())}}function _d(i,t){if(i&1){let e=E();a(0,"div",58)(1,"div",59)(2,"button",60)(3,"mat-icon"),d(4,"menu"),s()()()(),f(5,Rp,24,22,"div",61),f(6,Jp,11,10,"div",62),a(7,"div",63),f(8,ed,3,0,"div",64),f(9,td,3,0,"div",64),f(10,nd,3,0,"div",64),f(11,id,3,0,"div",64),f(12,od,3,0,"div",64),s(),a(13,"div",65)(14,"div",59)(15,"button",66),_("click",function(){u(e);let o=l();return m(o.toggleToolbarButtons())}),a(16,"mat-icon"),d(17),s()()()(),f(18,md,29,18,"div",67)}if(i&2){let e=l(),n=Me(99);c(2),y("disabled",e.isInteracting())("matBadgeHidden",e.app.isLoggedIn())("matMenuTriggerFor",n),c(3),h(e.app.uiConfig().toolbarButtons?5:-1),c(),h(e.leftMenuCtrl().leftMenuPanel?6:-1),c(),te("top",20+e.plotterExt.toolbarTopOffset(),"px"),c(),h(!e.wakeLock.enabled()&&e.wakeLock.isAvailable?8:-1),c(),h(e.app.uiConfig().showCourseData?-1:9),c(),h(e.app.uiConfig().showAisTargets?-1:10),c(),h(e.app.uiConfig().showNotes?-1:11),c(),h(e.stream.watchDogAlarm()?12:-1),c(),te("top",e.plotterExt.toolbarTopOffset(),"px"),c(2),y("matTooltip",e.app.uiConfig().toolbarButtons?"Hide Toobars":"Show Toobars"),c(2),z(e.app.uiConfig().toolbarButtons?"apps":"apps_outage"),c(),h(e.app.uiConfig().toolbarButtons?18:-1)}}function fd(i,t){if(i&1&&(a(0,"div",29)(1,"div",108)(2,"mat-icon"),d(3,"access_time"),s(),a(4,"b"),d(5,"Playback:"),s()(),a(6,"div",109),d(7),s()()),i&2){let e=l();c(7),z(e.playbackTime())}}function hd(i,t){if(i&1){let e=E();a(0,"alert-list",113),_("closed",function(){u(e);let o=l(2);return m(o.toggleAlertList(!1))}),s()}if(i&2){let e=l(2);y("alerts",e.notiMgr.alerts())}}function gd(i,t){if(i&1){let e=E();a(0,"span",112)(1,"fb-alert",114),_("nextPoint",function(){u(e);let o=l(2);return m(o.course.coursePointIndex(o.course.courseData().pointIndex+1))})("routeEnd",function(){u(e);let o=l(2);return m(o.clearDestination())}),s()()}if(i&2){let e=t.$implicit,n=l(2);c(),y("audioStatus",n.audioStatus())("alert",e[1])("acknowledged",e[1].acknowledged)("silenced",e[1].silenced)("doNotPlaySound",n.app.config.display.muteSound)}}function Cd(i,t){if(i&1&&(f(0,hd,1,1,"alert-list",110),a(1,"div",111),j(2,gd,2,5,"span",112,ep),s()),i&2){let e=l();h(e.app.uiCtrl().alertList?0:-1),c(2),H(e.notiMgr.alerts())}}function vd(i,t){if(i&1){let e=E();a(0,"fb-interact-help",115),_("cancel",function(){u(e);let o=l();return m(o.closeInteraction())}),s()}}function bd(i,t){if(i&1){let e=E();a(0,"route-nextpoint",118),_("selected",function(o){u(e);let r=l(2);return m(r.routeNextPoint(o))}),s()}if(i&2){let e=l(2);y("index",e.course.courseData().pointIndex)("total",e.course.courseData().pointTotal)("circular",e.app.data.activeRouteCircular)}}function wd(i,t){if(i&1&&C(0,"ap-dial-text",128),i&2){let e=l(3);y("title","VMG")("value",e.app.formatSpeed(e.course.courseData().vmg,!0))("units",e.app.formattedSpeedUnits)}}function xd(i,t){if(i&1&&C(0,"ap-dial-text",128),i&2){let e=l(3);y("title","BRG")("value",e.course.courseData().bearing.value.toFixed(1))("units",e.course.courseData().bearing.type==="M"?"deg (M)":"deg (T)")}}function yd(i,t){if(i&1&&C(0,"ap-dial-text",128),i&2){let e=l(3);y("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 Ed(i,t){if(i&1&&C(0,"ap-dial-text",131),i&2){let e=l(4);y("title","DTG")("value",e.course.courseData().route.dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Td(i,t){if(i&1&&C(0,"ap-dial-ttg",132),i&2){let e=l(4);y("value",e.course.courseData().route.ttg)}}function Sd(i,t){if(i&1&&C(0,"ap-dial-eta",133),i&2){let e=l(4);y("title","ETA")("value",e.course.courseData().route.eta)}}function Ad(i,t){if(i&1&&(f(0,Ed,1,3,"ap-dial-text",131),f(1,Td,1,1,"ap-dial-ttg",132),f(2,Sd,1,2,"ap-dial-eta",133)),i&2){let e=l(3);h(e.course.courseData().route.dtg?0:-1),c(),h(e.course.courseData().route.ttg?1:-1),c(),h(e.course.courseData().route.eta?2:-1)}}function kd(i,t){if(i&1&&C(0,"ap-dial-text",128),i&2){let e=l(3);y("title","DTG")("value",e.course.courseData().dtg.toFixed(1))("units",e.convert.getSymbol(e.app.config.units.distance))}}function Md(i,t){if(i&1&&C(0,"ap-dial-ttg",129),i&2){let e=l(3);y("value",e.course.courseData().ttg)}}function Pd(i,t){if(i&1&&C(0,"ap-dial-eta",130),i&2){let e=l(3);y("title","ETA")("value",e.course.courseData().eta)}}function Id(i,t){if(i&1){let e=E();a(0,"div",117)(1,"div",119)(2,"div",120)(3,"button",121),_("click",function(){u(e);let o=l(2);return m(o.openCourseSettings())}),C(4,"mat-icon",122),s(),C(5,"br"),a(6,"button",123),_("click",function(){u(e);let o=l(2);return m(o.autopilot.engage())}),C(7,"mat-icon",124),s()(),a(8,"div")(9,"button",125),_("click",function(){u(e);let o=l(2);return m(o.course.courseRestart())}),a(10,"mat-icon"),d(11,"replay"),s()(),C(12,"br"),a(13,"button",126),_("click",function(){u(e);let o=l(2);return m(o.course.courseReverse())}),a(14,"mat-icon",127),d(15," multiple_stop "),s()()()(),f(16,wd,1,3,"ap-dial-text",128),f(17,xd,1,3,"ap-dial-text",128),f(18,yd,1,3,"ap-dial-text",128),f(19,Ad,3,3),f(20,kd,1,3,"ap-dial-text",128),f(21,Md,1,1,"ap-dial-ttg",129),f(22,Pd,1,2,"ap-dial-eta",130),s()}if(i&2){let e=l(2);c(6),y("disabled",!e.app.featureFlags().autopilotApi||!e.app.data.vessels.self.autopilot.default),c(),y("color",e.navDataPanel().apModeColor),c(6),y("disabled",!e.app.data.activeRoute),c(),y("color",e.app.data.activeRouteReversed?"primary":"none"),c(2),h(e.course.courseData().vmg?16:-1),c(),h(e.course.courseData().bearing.value?17:-1),c(),h(e.course.courseData().xte?18:-1),c(),h(e.app.data.activeRoute?19:-1),c(),h(e.course.courseData().dtg?20:-1),c(),h(e.course.courseData().ttg?21:-1),c(),h(e.course.courseData().eta?22:-1)}}function Dd(i,t){if(i&1&&(a(0,"div",30),f(1,bd,1,3,"route-nextpoint",116),f(2,Id,23,11,"div",117),s()),i&2){let e=l();c(),h(e.navDataPanel().nextPointCtrl?1:-1),c(),h(e.app.config.ui.showCourseData&&e.navDataPanel().show?2:-1)}}function Rd(i,t){if(i&1){let e=E();a(0,"mfb-container",134),_("radarClick",function(){u(e);let o=l();return m(o.showRadarPanel())}),s()}if(i&2){let e=l();y("action",e.app.config.display.fab)}}var Ct=class i{sideright;navDataPanel=G({show:!1,nextPointCtrl:!1,apModeColor:"",apModeText:""});playbackTime=G(null);leftMenuCtrl=G({leftMenuPanel:!1,routeList:!1,waypointList:!1,chartList:!1,noteList:!1,regionList:!1,trackList:!1,aisList:!1,resourceGroups:!1,infoLayerList:!1,anchorWatch:!1});displayFullscreen=G({active:!1,enabled:document.fullscreenEnabled});features={playbackAPI:!0};mode=0;timers=[];instUrl=G(null);selFavourite=-1;vidUrl=G(null);convert=Mt;obsList=[];streamOptions={options:null,toMode:null};mapSetFocus=G("");mapCenter=G([0,0]);audioStatus=G("");isInteracting=ve(()=>this.mapInteract.isMeasuring()||this.mapInteract.isDrawing()||this.mapInteract.isModifying()||this.mapInteract.isBoxSelecting());app=w(oi);infoPanel=w(Ei);mapInteract=w(vi);anchor=w(Fi);notiMgr=w(Li);course=w(ci);stream=w(ni);skres=w(ai);skresOther=w(si);signalk=w(Jn);dom=w(pe);overlayContainer=w(In);bottomSheet=w(Nn);dialog=w(Fn);wakeLock=w(Yn);settings=w(Gi);autopilot=w($i);radarApi=w(ii);symbols=w(ti);routeBuffers=w(yi);plotterExt=w(U);constructor(){this.app.data.vessels.active=this.app.data.vessels.self,ie(()=>{this.app.debug("** skAuthChange Event:",this.app.skAuthChange()),this.handleSKAuthChange()}),ie(()=>{this.app.debug("** kioskMode Event:",this.app.kioskMode()),this.toggleSuppressContextMenu(this.app.kioskMode())}),ie(()=>{this.handleSelectionEnded(this.mapInteract.selection())}),ie(()=>{this.app.uiConfig(),this.handleSettingChangeEvent(void 0)}),ie(()=>{this.infoPanel.opened()||this.app.instrumentPanel().activate?this.sideright?.opened||this.openDrawer():this.sideright?.opened&&this.closeDrawer()}),ie(()=>{let t=this.app.mapMoveRequest();t&&(this.app.uiConfig.update(e=>e.mapMove?sn(Oe({},e),{mapMove:!1}):e),this.centerAndZoom(t.center,t.zoom))})}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)"}showRadarPanel(){if(!this.radarApi.hasWebGL){this.radarApi.showNoWebGLMessage();return}this.app.instrumentPanel().open&&this.closeInstrumentPanel(),this.connectRadar(),this.infoPanel.openRadar(this.radarApi.radar()),this.focusMap()}connectRadar(){this.app.uiCtrl().radarLayer||this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!0}))}disconnectRadar(){this.app.uiCtrl().radarLayer&&this.app.uiCtrl.update(t=>Object.assign({},t,{radarLayer:!1}))}toggleMoveMap(t=!1){this.app.uiConfig.update(e=>{let n=t?!1:!e.mapMove;return Object.assign({},e,{mapMove:n})}),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())}darkThemeApplied;setDarkTheme(){let t=window.matchMedia("(prefers-color-scheme: dark)"),e=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;if(e===this.darkThemeApplied)return;this.darkThemeApplied=e;let n=this.overlayContainer.getContainerElement();e?n.classList.add("dark-theme"):n.classList.remove("dark-theme"),this.app.config.display.darkMode.enabled=e}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 q(this,null,function*(){let{Trail2RouteDialog:t}=yield import("./chunk-QBGO6O5L.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(ji,{disableClose:!0,data:{title:"Forecast",position:this.app.data.vessels.self.position,subTitle:"Location: Vessel Position"}}).afterDismissed().subscribe(()=>{this.focusMap()})}openExperiment(t){t.choice==="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!
|
|
460
|
+
e.g. https, http://localhost, http://127.0.0.1`):this.app.config.resources.paths.includes(t.choice)&&this.bottomSheet.open(Ii,{disableClose:!0,data:{path:t.choice}}).afterDismissed().subscribe(()=>{this.focusMap()})}openCourseSettings(){this.bottomSheet.open(li,{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(n=>{n&&this.openSettings()})}else{let e=this.app.showWelcome(!0)}}).finally(()=>{this.loadSymbolsThenFetchResources(),this.plotterExt.init()}),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 q(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(n=>{t.weatherApi=n.apis.includes("weather"),t.autopilotApi=n.apis.includes("autopilot"),t.radarApi=n.apis.includes("radar"),t.notificationApi=n.apis.includes("notifications");let o={charts:!1,pmTiles:!1};n.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=!!Jr.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(n=>Object.assign({},n,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 n=this.mode===1?"history":"self";this.app.db.saveTrail(n,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()}openInstrumentPanel(){this.app.instrumentPanel().open||(this.infoPanel.opened()&&this.infoPanel.close(),this.app.instrumentPanel.update(t=>Object.assign({},t,{open:!0,activate:!0})))}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 n={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":n.routeList=e;break;case"waypointList":n.waypointList=e;break;case"chartList":n.chartList=e;break;case"noteList":n.noteList=e;break;case"regionList":n.regionList=e;break;case"trackList":n.trackList=e;break;case"anchorWatch":n.anchorWatch=e;break;case"aisList":n.aisList=e;break;case"resourceGroups":n.resourceGroups=e;break;case"infoLayerList":n.infoLayerList=e;break;default:n.leftMenuPanel=!1}this.leftMenuCtrl.update(()=>n),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 q(this,null,function*(){let{AboutDialog:t}=yield import("./chunk-FZ6NAONR.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 q(this,null,function*(){let{SettingsDialog:t}=yield import("./chunk-3NORWTAX.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 q(this,null,function*(){let{GPXImportDialog:e}=yield import("./chunk-Z5RYOUPW.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(n=>{if(typeof n.errCount>"u"||n.errCount<0){this.focusMap();return}this.fetchResources(),n.errCount===0?this.app.showMsgBox("GPX Load","GPX file resources loaded successfully."):this.app.showErrorList(n.errList),this.focusMap()})})}exportToGPX(){return q(this,null,function*(){let{GPXExportDialog:t}=yield import("./chunk-KYXYDUTF.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 q(this,null,function*(){let{GeoJSONImportDialog:e}=yield import("./chunk-VHJDKR5K.js");this.dialog.open(e,{disableClose:!0,data:{fileData:t.data,fileName:t.name}}).afterClosed().subscribe(n=>{n<0||(this.fetchResources(),n===0?this.app.showMsgBox("GeoJSON Load","GeoJSON features loaded successfully."):this.app.showAlert("GeoJSON Load",`Completed with errors!
|
|
461
|
+
Not all features were loaded.`),this.focusMap())})})}importResourceSet(){return q(this,null,function*(){let{ResourceImportDialog:t}=yield import("./chunk-7N46HDRA.js");this.dialog.open(t,{disableClose:!0,data:{}}).afterClosed().subscribe(e=>{if(e){try{let n=JSON.parse(e.data);this.skres.postToServer(e.path,n)}catch(n){this.app.showAlert("Load Resource",`Resources were not loaded!
|
|
462
|
+
Invalid JSON.`)}this.focusMap()}})})}showLogin(t,e=!0,n){return q(this,null,function*(){let{LoginDialog:o}=yield import("./chunk-FZ6NAONR.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(p=>{this.app.isLoggedIn.set(p)}),n?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:p=>{this.app.persistToken(p.token),this.app.loadUserConfigfromServer().then(g=>{g&&(this.loadSymbolsThenFetchResources(),this.plotterExt.init())}),n&&this.queryAfterConnect(),this.app.isLoggedIn.set(!0)},error:()=>{this.app.persistToken(null),this.signalk.isLoggedIn().subscribe(p=>{this.app.isLoggedIn.set(p)}),n?this.app.showConfirm("Invalid Username or Password.","Authentication Failed:","Try Again").subscribe(()=>{this.showLogin(null,!1,!0)}):this.app.showConfirm(`Invalid Username or Password.
|
|
463
|
+
Note: Choosing CLOSE may make operations requiring authentication unavailable.`,"Authentication Failed:","Try Again","Close").subscribe(p=>{p&&this.showLogin()})}}),this.focusMap()})})}showPlaybackSettings(){return q(this,null,function*(){let{PlaybackDialog:t}=yield import("./chunk-NPNYOL2H.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(n=>{n&&e()})}clearCourseData(){this.course.initCourseData()}clearDestination(){this.course.clearCourse()}activateRoute(t){let e=this.skres.fromCache("routes",t),n=Pt.closestForwardPoint(e[1].feature.geometry.coordinates,this.app.data.vessels.self.position,Mt.radiansToDegrees(this.app.data.vessels.self.heading));if(n===-1){this.app.showConfirm(`Closest point is behind vessel!
|
|
464
|
+
Do you want to start from the first point?`,"Start Route").subscribe(o=>{o&&this.course.activateRoute(t)});return}this.course.activateRoute(t,n)}routeNextPoint(t){this.course.coursePointIndex(t),this.focusMap()}featureProperties(t){return q(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(pi,{disableClose:!0,data:{title:"Route Properties",resource:[t.id,e,!1],type:t.type}}).afterDismissed().subscribe(n=>{n&&this.clearDestination(),this.focusMap()})}catch(n){this.app.sIsFetching.set(!1),this.app.parseHttpErrorResponse(n)}else if(t.type==="aton"||t.type==="meteo"){let n,o,r;t.type==="meteo"?(e=this.app.data.meteo.get(t.id),n="Meteo Properties",o="air",r=t.type):t.id.slice(0,3)==="sar"?(e=this.app.data.sar.get(t.id),n="SaR Properties",o="tour",r="sar"):(e=this.app.data.atons.get(t.id),n="AtoN Properties",o="beenhere",r="aton"),e&&this.bottomSheet.open(gi,{disableClose:!0,data:{title:n,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(Ci,{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(Di,{disableClose:!0,data:{id:t.id,item:e}}).afterDismissed().subscribe(()=>{this.focusMap()});else{let n=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(n),this.app.sIsFetching.set(!1),e&&this.bottomSheet.open(hi,{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!
|
|
465
|
+
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 n=t.dataTransfer.files[0].name;e.onload=()=>{this.processGPX({name:n,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(n=>{this.app.selfTrail.update(()=>n&&n.value?n.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)}onRouteInfoEdit(t){let e=this.routeBuffers.get(t);e&&(!e.saved||e.dirty)?this.saveRouteBuffer(t):this.skres.editRouteInfo(t)}saveRouteBuffer(t){return q(this,null,function*(){try{let e=yield this.plotterExt.saveBuffer(t,{dialog:!0});e&&this.infoPanel.open("routes",e.href)}catch(e){}})}handleDrawEnded(t){switch(this.mapInteract.isDrawing(),this.app.data.editingId="",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.routeBuffers.create({points:t.coordinates.map(o=>({position:o}))});break;case"region":let n=new ri;n.feature.geometry.coordinates=[Pt.normaliseCoords(t.coordinates)],this.skres.newRegion(n);break}}closeInteraction(){if(this.app.data.editingId="",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}let t=this.mapInteract.draw.forSave.id.split("."),e=t[0]==="route"?this.routeBuffers.get(t[1]):void 0,n=!!e&&!e.saved;this.app.showConfirm(n?"Keep the changes to this unsaved route?":`Do you want to save the changes made to ${t[0]}?`,n?"Keep Changes":"Save Changes").subscribe(o=>{let r=this.mapInteract.draw.forSave.id.split(".");if(o){if(r[0]==="route"){let p=this.routeBuffers.get(r[1]);if(p&&!p.saved){let g=this.mapInteract.draw.forSave.coordsMetadata;this.routeBuffers.replace(r[1],this.mapInteract.draw.forSave.coords.map((x,T)=>Oe(Oe({position:x},g?.[T]?.name?{name:g[T].name}:{}),g?.[T]?.description?{description:g[T].description}:{})))}else this.plotterExt.saveNativeRouteEdit(r[1],this.mapInteract.draw.forSave.coords,this.mapInteract.draw.forSave.coordsMetadata)}r[0]==="waypoint"&&(this.skres.updateWaypointPosition(r[1],this.mapInteract.draw.forSave.coords),r[1]===this.app.data.activeWaypoint&&this.course.setDestination({latitude:this.mapInteract.draw.forSave.coords[1],longitude:this.mapInteract.draw.forSave.coords[0]})),r[0]==="note"&&this.skres.updateNotePosition(r[1],this.mapInteract.draw.forSave.coords),r[0]==="region"&&this.skres.updateRegionCoords(r[1],this.mapInteract.draw.forSave.coords)}else{if(r[0]==="route"){let p=this.routeBuffers.get(r[1]);p&&(!p.saved||p.dirty)?this.routeBuffers.refresh():this.skres.refreshRoutes()}r[0]==="waypoint"&&this.skres.refreshWaypoints(),r[0]==="note"&&this.skres.refreshNotes(),r[0]==="region"&&this.skres.refreshRegions()}this.mapInteract.draw.forSave=null,this.focusMap()})}}loadSymbolsThenFetchResources(){return q(this,null,function*(){yield this.symbols.load(),ei(this.symbols),this.fetchResources(!0)})}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,n=!1){if(n){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.
|
|
466
|
+
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.init()},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||i)};static \u0275cmp=R({type:i,selectors:[["app-root"]],viewQuery:function(e,n){if(e&1&&Z(zc,5),e&2){let o;V(o=F())&&(n.sideright=o.first)}},decls:155,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",1,"pe-view-main"],["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,"radar","id"],[3,"note","id","interacting"],[3,"region","id","related","interacting"],[3,"waypoint","id","related","interacting"],[3,"route","id","related","interacting"],[3,"connect","disconnect","radar","id"],[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",3,"top"],["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,"buttonPanel","right"],[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","disabled"],["mat-mini-fab","","matTooltipPosition","before",1,"button-toolbar",3,"click","matTooltip"],[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"],[3,"radarClick","action"]],template:function(e,n){e&1&&(a(0,"div",6)(1,"div",7)(2,"mat-menu",null,0)(4,"button",8),_("click",function(){return n.displayLeftMenu("routeList",!0)}),C(5,"mat-icon",9),d(6," \xA0Routes "),s(),a(7,"button",8),_("click",function(){return n.displayLeftMenu("waypointList",!0)}),a(8,"mat-icon",10),d(9,"location_on"),s(),d(10," \xA0Waypoints "),s(),a(11,"button",8),_("click",function(){return n.displayLeftMenu("noteList",!0)}),a(12,"mat-icon"),d(13,"local_offer"),s(),d(14," \xA0Notes "),s(),a(15,"button",8),_("click",function(){return n.displayLeftMenu("regionList",!0)}),a(16,"mat-icon"),d(17,"tab_unselected"),s(),d(18," \xA0Regions "),s(),a(19,"button",8),_("click",function(){return n.displayLeftMenu("chartList",!0)}),a(20,"mat-icon"),d(21,"map"),s(),d(22," \xA0Charts "),s(),f(23,tp,4,0,"button",11),f(24,np,4,0,"button",11),C(25,"mat-divider"),a(26,"button",11)(27,"ap-file-input",12),_("chosen",function(r){return n.importFile(r)}),C(28,"mat-icon",13),d(29," Import "),s()(),a(30,"button",8),_("click",function(){return n.exportToGPX()}),C(31,"mat-icon",14),d(32," \xA0Export "),s(),C(33,"mat-divider"),f(34,ip,4,0,"button",11),f(35,rp,3,0,"div"),s(),a(36,"mat-menu",null,1),f(38,ap,11,1),f(39,cp,11,1),a(40,"a",8),_("click",function(){return n.toggleCourseData()}),a(41,"mat-icon"),d(42),s(),a(43,"span"),d(44),s()(),a(45,"a",8),_("click",function(){return n.toggleAisTargets()}),a(46,"mat-icon"),d(47),s(),a(48,"span"),d(49),s()(),a(50,"a",8),_("click",function(){return n.toggleNotes()}),a(51,"mat-icon"),d(52),s(),a(53,"span"),d(54),s()(),f(55,pp,6,0),C(56,"mat-divider"),a(57,"a",8),_("click",function(){return n.openSettings()}),a(58,"mat-icon"),d(59,"settings"),s(),a(60,"span"),d(61,"Settings"),s()()(),a(62,"mat-menu",null,2)(64,"a",8),_("click",function(){return n.mapInteract.startMeasuring("LineString")}),a(65,"mat-icon"),d(66,"straighten"),s(),a(67,"span"),d(68,"Measure"),s()(),a(69,"a",8),_("click",function(){return n.mapInteract.startMeasuring("Circle")}),a(70,"mat-icon"),d(71,"swap_vertical_circle"),s(),a(72,"span"),d(73,"Measure Radius"),s()(),C(74,"mat-divider"),a(75,"a",8),_("click",function(){return n.drawFeature("route")}),a(76,"mat-icon",15),d(77,"draw"),s(),a(78,"span"),d(79,"Draw Route"),s()(),a(80,"a",8),_("click",function(){return n.toggleRouteBuilderConsole(!0)}),C(81,"mat-icon",16),a(82,"span"),d(83,"Build Route"),s()(),C(84,"mat-divider"),f(85,dp,5,0,"a",11),a(86,"a",8),_("click",function(){return n.drawFeature("waypoint")}),a(87,"mat-icon",10),d(88,"add_location_alt"),s(),a(89,"span"),d(90,"Drop Waypoint"),s()(),C(91,"mat-divider"),f(92,up,5,0,"a",11),a(93,"a",8),_("click",function(){return n.drawFeature("region")}),a(94,"mat-icon"),d(95,"tab_unselected"),s(),a(96,"span"),d(97,"Draw Region"),s()()(),a(98,"mat-menu",null,3),f(100,mp,6,2),f(101,_p,5,0,"a",11),f(102,gp,5,1,"a",11),a(103,"a",8),_("click",function(){return n.displayLeftMenu("aisList",!0)}),a(104,"mat-icon"),d(105,"directions_boat"),s(),a(106,"span"),d(107,"Vessels"),s()(),a(108,"a",8),_("click",function(){return n.importResourceSet()}),a(109,"mat-icon"),d(110,"upload"),s(),a(111,"span"),d(112,"Resource Sets"),s()(),f(113,Cp,5,0,"a",11),C(114,"mat-divider"),a(115,"a",8),_("click",function(){return n.openSettings()}),a(116,"mat-icon"),d(117,"settings"),s(),a(118,"span"),d(119,"Settings"),s()(),C(120,"mat-divider"),a(121,"a",8),_("click",function(){return n.openAbout()}),a(122,"mat-icon",17),d(123,"info_outline"),s(),a(124,"span"),d(125,"About"),s()(),a(126,"button",8),_("click",function(){return n.app.showHelp()}),a(127,"mat-icon",17),d(128,"help"),s(),a(129,"span"),d(130,"Help"),s()()(),a(131,"div",18)(132,"mat-sidenav-container",19)(133,"mat-sidenav",20,4),f(135,Ep,6,5,"info-panel")(136,Ap,17,4,"div",21),s(),a(137,"mat-sidenav-content",22),f(138,kp,2,0,"div",23),f(139,Mp,1,1,"autopilot-console",24),f(140,Pp,1,0,"route-builder"),f(141,_d,19,17),a(142,"div",25),_("dragover",function(r){return n.mapDragOver(r)})("drop",function(r){return n.mapDrop(r)}),a(143,"fb-map",26),_("drawEnded",function(r){return n.handleDrawEnded(r)})("activate",function(r){return n.activateRoute(r)})("deactivate",function(){return n.clearDestination()})("exitMovingMap",function(r){return n.toggleMoveMap(r)})("focusVessel",function(r){return n.switchActiveVessel(r)})("info",function(r){return n.featureProperties(r)})("menuItemSelected",function(r){return n.handleContextMenuSelection(r)}),s()(),C(144,"fb-plotterext-overlay"),a(145,"div",27),C(146,"img",28,5),s(),f(148,fd,8,1,"div",29),f(149,Cd,4,1),f(150,vd,1,0,"fb-interact-help"),f(151,Dd,3,2,"div",30),f(152,Rd,1,1,"mfb-container",31),s()(),C(153,"fb-plotterext-panel-drawer")(154,"fb-plotterext-runtimes"),s()()()),e&2&&(y("ngClass",oe(48,Yc,n.app.config.display.darkMode.enabled,n.stream.selfNightMode()||n.app.uiCtrl().forceNightMode)),c(23),h(n.app.featureFlags().resourceGroups?23:-1),c(),h(n.app.featureFlags().infoLayers?24:-1),c(3),y("astext",!0),c(7),h(n.app.featureFlags().resourceTracks?34:-1),c(),h(n.app.config.resources.paths.length!==0?35:-1),c(3),h(n.app.config.vessels.trail&&n.app.selfTrail().length!==0?38:-1),c(),h(n.course.courseData().position?39:-1),c(3),z(n.app.config.ui.showCourseData?"visibility_off":"compare_arrows"),c(2),me("",n.app.config.ui.showCourseData?"Hide":"Show"," Course Data"),c(3),z(n.app.config.ui.showAisTargets?"visibility_off":"directions_boat"),c(2),me("",n.app.config.ui.showAisTargets?"Hide":"Show"," Vessels"),c(3),z(n.app.config.ui.showNotes?"visibility_off":"local_offer"),c(2),me("",n.app.config.ui.showNotes?"Hide":"Show"," Notes"),c(),h(n.app.featureFlags().weatherApi&&n.app.data.vessels.showSelf?55:-1),c(30),h(n.app.data.vessels.showSelf?85:-1),c(7),h(n.app.config.map.zoomLevel>=n.app.config.resources.notes.minZoom?92:-1),c(8),h(!n.app.hostDef.params.token&&n.app.data.loginRequired?100:-1),c(),h(!n.isInteracting()&&n.app.featureFlags().anchorApi?101:-1),c(),h(!n.isInteracting()&&n.app.featureFlags().radarApi&&n.radarApi.radarId()&&!n.app.instrumentPanel().open&&n.app.data.vessels.showSelf?102:-1),c(11),h(n.features.playbackAPI?113:-1),c(20),te("width",n.app.instrumentPanel().open?"350px":"250px"),y("disableClose",!1),c(2),h(n.infoPanel.item&&!n.app.instrumentPanel().open?135:136),c(3),h(n.app.sIsFetching()?138:-1),c(),h(n.app.uiCtrl().autopilotConsole?139:-1),c(),h(n.app.uiCtrl().routeBuilder?140:-1),c(),h(!n.app.kioskMode()&&!n.app.uiCtrl().suppressContextMenu?141:-1),c(2),y("scaleUnits",n.app.config.units.distance)("setFocus",n.mapSetFocus())("mapCenter",n.mapCenter())("mapZoom",n.app.config.map.zoomLevel)("northUp",n.app.uiConfig().mapNorthUp)("movingMap",n.app.uiConfig().mapMove)("vesselTrail",n.app.selfTrail())("activeRoute",n.app.data.activeRoute)("dblClickZoom",n.app.config.map.doubleClickZoom)("overZoomTiles",n.app.config.map.overZoomTiles)("measureMode",n.mapInteract.isMeasuring())("drawMode",n.mapInteract.isDrawing()),c(3),te("transform",n.getOrientation()),c(2),h(n.mode===1?148:-1),c(),h(n.app.kioskMode()?-1:149),c(),h(n.isInteracting()?150:-1),c(),h(n.isInteracting()?-1:151),c(),h(!n.isInteracting()&&!n.app.kioskMode()?152:-1))},dependencies:[Wn,jn,Gn,Hn,oo,Ft,io,Je,no,to,Qe,$n,Ze,Un,zn,qn,Bn,xe,we,Kn,Xn,Qn,Zn,wn,bn,Wi,Xi,Ki,Zi,Qi,Yi,Ji,zi,Hi,Ni,Vi,Oi,Bi,Ai,Si,qi,ui,_i,Mi,Ti,Ui,ft,ht,gt],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:hidden;scrollbar-width:none;position:fixed;border-top:silver 0px solid;display:flex;flex-direction:row}.view[_ngcontent-%COMP%] .pe-view-main[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;height:100%}.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%]{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)}}"]})};xn(Ct,{providers:[vn(),yn(En())]}).catch(i=>console.log(i));
|