@mxtommy/kip 4.5.1 → 4.6.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +13 -15
- package/plugin/history-series.service.js +14 -24
- package/plugin/index.js +198 -146
- package/plugin/{duckdb-parquet-storage.service.js → sqlite-history-storage.service.js} +327 -381
- package/public/{chunk-D7VDX7ZF.js → chunk-67V4XHCY.js} +1 -1
- package/public/{chunk-EQ2N7KDA.js → chunk-BEQKBGLG.js} +2 -2
- package/public/{chunk-JGGMFMY5.js → chunk-BJEHRCYP.js} +1 -1
- package/public/chunk-BTFZS2TW.js +16 -0
- package/public/chunk-FZFDGAQO.js +1 -0
- package/public/{chunk-VCY32MWT.js → chunk-FZSLNGBK.js} +8 -8
- package/public/{chunk-RONXIZ2U.js → chunk-J6EEFXKZ.js} +3 -3
- package/public/{chunk-IYRLINL7.js → chunk-KWTS7JF7.js} +1 -1
- package/public/chunk-NFJ4RQSE.js +4 -0
- package/public/{chunk-DEM56G4S.js → chunk-OPTBDYBL.js} +1 -1
- package/public/{chunk-YCEXTKGG.js → chunk-P4CRTB7N.js} +1 -1
- package/public/{chunk-IHURI4IH.js → chunk-P7JKENHI.js} +3 -3
- package/public/chunk-Q2ANAJAD.js +1 -0
- package/public/{chunk-B75MT7ND.js → chunk-R36UY4Q4.js} +1 -1
- package/public/{chunk-CHGXAEKT.js → chunk-RCYOZLZB.js} +1 -1
- package/public/chunk-RFNZ4AQG.js +50 -0
- package/public/{chunk-KPHICV76.js → chunk-SJFJEOSG.js} +1 -1
- package/public/{chunk-MGPPVLZ7.js → chunk-TBNKOU7M.js} +1 -1
- package/public/chunk-TVNXBPFF.js +6 -0
- package/public/{chunk-S72JTJPN.js → chunk-VPF5756E.js} +1 -1
- package/public/chunk-VXCYPAWR.js +1 -0
- package/public/{chunk-R7RQHWKJ.js → chunk-WH5CIUSB.js} +1 -1
- package/public/{chunk-LQDSU4WS.js → chunk-WQSJFJLW.js} +1 -1
- package/public/{chunk-KZ5DUKAX.js → chunk-XBSU7OGT.js} +1 -1
- package/public/{chunk-CEB42O2C.js → chunk-YI3MZWRZ.js} +1 -1
- package/public/index.html +1 -1
- package/public/main-TZOV3JCT.js +1 -0
- package/plugin/plugin-auth.service.js +0 -75
- package/public/chunk-A6DQJFP4.js +0 -16
- package/public/chunk-DEGYRCMI.js +0 -1
- package/public/chunk-DYTBBUMI.js +0 -4
- package/public/chunk-FNF7M3AE.js +0 -1
- package/public/chunk-JB4YVVNW.js +0 -1
- package/public/chunk-YKJKIWXO.js +0 -6
- package/public/chunk-ZV7IYYEQ.js +0 -50
- package/public/main-FQESQQV6.js +0 -1
package/public/chunk-DEGYRCMI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as H}from"./chunk-CEB42O2C.js";import{d as T,e as U,h as F,i as O,j as A,k as P,n as G,o as Y,u as j,w as K}from"./chunk-D7VDX7ZF.js";import{A as R,B as q,K as k,N as z,p as L,t as N,u as W,x as B}from"./chunk-IHURI4IH.js";import{$b as h,Db as d,Eb as e,Fb as t,Gb as g,Nb as b,Pb as v,Rb as D,Wa as a,ec as n,fc as E,gb as y,gc as I,ge as V,kc as f,lc as M,mc as C,pa as c,tc as _,ua as m,va as p,xb as S,yb as x}from"./chunk-A6DQJFP4.js";var J=()=>({standalone:!1});function Q(o,X){if(o&1&&(e(0,"div",3),g(1,"i",10),n(2),t()),o&2){let u=D();a(2),I(" ",u.data.error," ")}}var de=(()=>{class o{dialogRef=c(T);data=c(U);titleDialog="Sign in to Signal K";saveCredential(){this.data.error=null,this.dialogRef.close(this.data)}static \u0275fac=function(s){return new(s||o)};static \u0275cmp=y({type:o,selectors:[["app-modal-user-credential"]],decls:26,vars:10,consts:[["login","ngForm"],["name","login",3,"ngSubmit"],["mat-dialog-title",""],[1,"errorMsgBox"],[1,"login-grid"],[1,"userLoginInput"],["type","text","autocomplete","username","id","username","matInput","","placeholder","User ID","name","username","required","",3,"ngModelChange","ngModel","ngModelOptions"],["type","password","autocomplete","current-password","autocapitalize","off","autocorrect","off","spellcheck","false","id","current-password","matInput","","placeholder","Password","name","current-password","required","",3,"ngModelChange","ngModel","ngModelOptions"],["mat-flat-button","","type","button",3,"mat-dialog-close"],["mat-flat-button","","type","submit",3,"disabled"],["aria-hidden","true",1,"fa-solid","fa-times-circle",2,"color","red","padding-right","5px"]],template:function(s,i){if(s&1){let l=b();e(0,"form",1,0),v("ngSubmit",function(){return m(l),p(i.saveCredential())}),e(2,"span",2),n(3),t(),e(4,"mat-dialog-content"),S(5,Q,3,1,"div",3),g(6,"br"),e(7,"div",4)(8,"mat-form-field",5)(9,"mat-label"),n(10,"User ID"),t(),e(11,"input",6),C("ngModelChange",function(r){return m(l),M(i.data.user,r)||(i.data.user=r),p(r)}),t(),e(12,"mat-error"),n(13," You must enter a User ID value "),t()(),e(14,"mat-form-field",5)(15,"mat-label"),n(16,"Password"),t(),e(17,"input",7),C("ngModelChange",function(r){return m(l),M(i.data.password,r)||(i.data.password=r),p(r)}),t(),e(18,"mat-error"),n(19," You must enter a password value "),t()()()(),g(20,"mat-divider"),e(21,"mat-dialog-actions")(22,"button",8),n(23,"Cancel"),t(),e(24,"button",9),n(25,"Sign in"),t()()()}if(s&2){let l=h(1);a(3),E(i.titleDialog),a(2),x(i.data.error?5:-1),a(6),f("ngModel",i.data.user),d("ngModelOptions",_(8,J)),a(6),f("ngModel",i.data.password),d("ngModelOptions",_(9,J)),a(5),d("mat-dialog-close",!1),a(2),d("disabled",!l.valid)}},dependencies:[z,q,L,N,W,k,R,B,O,A,j,G,K,Y,H,P,V,F],styles:[".errorMsgBox[_ngcontent-%COMP%]{background-color:#fff8dc;color:#2f4f4f;display:flex;padding:5px;font-family:Arial,Times,serif;font-size:14px}.login-grid[_ngcontent-%COMP%]{display:grid;gap:10px;padding-left:10px;padding-right:10px}.userLoginInput[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return o})();export{de as a};
|
package/public/chunk-DYTBBUMI.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{b as pi,c as hi,f as fi,g as gi,h as _i,k as yi,m as Ze,r as vi}from"./chunk-KPHICV76.js";import{r as li,s as ci,v as di}from"./chunk-D7VDX7ZF.js";import{H as ai,P as mi,Q as ui,m as ri,r as ni,s as si,x as oi}from"./chunk-IHURI4IH.js";import{$a as he,$b as Lt,Ca as pe,Cc as Ut,Ce as Me,Da as St,Db as Ke,E as wt,Eb as P,Fa as Ot,Fb as B,Gb as Et,Ge as ei,Hb as Be,Ia as Dt,Ib as At,Ie as ti,J as me,Jc as be,Je as ii,K as Le,La as j,Lc as U,Ld as Gt,Le as Je,Mc as We,Md as Wt,Me as Qe,Nb as te,Nd as Yt,Ne as Te,Od as Q,Pb as G,Pd as jt,Q as Ct,Qb as Pt,Rb as X,Rd as Xt,Sb as Rt,Sd as je,Tb as Ge,Td as Jt,Ub as Ft,Vb as ye,Wa as A,Wb as R,Wc as zt,Xb as F,Xd as ne,Ya as Ue,Yd as Xe,a as $,ba as Ne,bc as J,ca as qe,d as dr,da as k,db as xt,dc as ve,de as we,e as mr,ec as ie,ee as Ce,fc as re,gb as fe,hb as ge,ib as ze,k as V,ka as kt,kd as Ht,ke as Qt,la as ue,ld as Vt,mb as It,md as Ye,na as K,pa as f,pd as Kt,rc as Nt,sc as qt,ua as N,ud as Bt,va as q,vb as _e,ve as Zt,wa as Mt,xb as He,xe as $t,ya as ee,yb as Ve,z as Fe,za as Tt,ze as ke}from"./chunk-A6DQJFP4.js";var bi=dr(($e,et)=>{(function(c,S){typeof $e=="object"&&typeof et<"u"?et.exports=S():typeof define=="function"&&define.amd?define(S):(c=typeof globalThis<"u"?globalThis:c||self,c.Qty=S())})($e,function(){"use strict";function c(t){return typeof t=="string"||t instanceof String}var S=Number.isFinite||window.isFinite;function e(t){return S(t)}function i(t){return t}function n(t){var r={};return t.filter(function(s){return r.hasOwnProperty(s)?!1:r[s]=!0})}function a(t,r){if(r.length!==t.length)return!1;for(var s=0;s<t.length;s++)if(r[s].compareArray&&!r[s].compareArray(t[s])||r[s]!==t[s])return!1;return!0}function d(t,r){Object.keys(r).forEach(function(s){t[s]=r[s]})}function g(){for(var t=1,r=0,s=0;s<arguments.length;s++){var o=arguments[s];r=r+nt(o),t*=o}return r!==0?se(t,r):t}function y(t,r){if(r===0)throw new Error("Divide by zero");var s=Math.pow(10,nt(r)),o=s/(s*r);return g(t,o)}function se(t,r){return Math.round(t*Math.pow(10,r))/Math.pow(10,r)}function nt(t){if(!isFinite(t))return 0;for(var r=0;t%1!==0;)t*=10,r++;return r}function h(){var t;if(!this)return t=Object.create(h.prototype),h.apply(t,arguments),t;t=Error.apply(this,arguments),this.name="QtyError",this.message=t.message,this.stack=t.stack}h.prototype=Object.create(Error.prototype,{constructor:{value:h}});function Z(t,r){throw new h("Incompatible units: "+t+" and "+r)}var O={"<googol>":[["googol"],1e100,"prefix"],"<kibi>":[["Ki","Kibi","kibi"],Math.pow(2,10),"prefix"],"<mebi>":[["Mi","Mebi","mebi"],Math.pow(2,20),"prefix"],"<gibi>":[["Gi","Gibi","gibi"],Math.pow(2,30),"prefix"],"<tebi>":[["Ti","Tebi","tebi"],Math.pow(2,40),"prefix"],"<pebi>":[["Pi","Pebi","pebi"],Math.pow(2,50),"prefix"],"<exi>":[["Ei","Exi","exi"],Math.pow(2,60),"prefix"],"<zebi>":[["Zi","Zebi","zebi"],Math.pow(2,70),"prefix"],"<yebi>":[["Yi","Yebi","yebi"],Math.pow(2,80),"prefix"],"<yotta>":[["Y","Yotta","yotta"],1e24,"prefix"],"<zetta>":[["Z","Zetta","zetta"],1e21,"prefix"],"<exa>":[["E","Exa","exa"],1e18,"prefix"],"<peta>":[["P","Peta","peta"],1e15,"prefix"],"<tera>":[["T","Tera","tera"],1e12,"prefix"],"<giga>":[["G","Giga","giga"],1e9,"prefix"],"<mega>":[["M","Mega","mega"],1e6,"prefix"],"<kilo>":[["k","kilo"],1e3,"prefix"],"<hecto>":[["h","Hecto","hecto"],100,"prefix"],"<deca>":[["da","Deca","deca","deka"],10,"prefix"],"<deci>":[["d","Deci","deci"],.1,"prefix"],"<centi>":[["c","Centi","centi"],.01,"prefix"],"<milli>":[["m","Milli","milli"],.001,"prefix"],"<micro>":[["u","\u03BC","\xB5","Micro","mc","micro"],1e-6,"prefix"],"<nano>":[["n","Nano","nano"],1e-9,"prefix"],"<pico>":[["p","Pico","pico"],1e-12,"prefix"],"<femto>":[["f","Femto","femto"],1e-15,"prefix"],"<atto>":[["a","Atto","atto"],1e-18,"prefix"],"<zepto>":[["z","Zepto","zepto"],1e-21,"prefix"],"<yocto>":[["y","Yocto","yocto"],1e-24,"prefix"],"<1>":[["1","<1>"],1,""],"<meter>":[["m","meter","meters","metre","metres"],1,"length",["<meter>"]],"<inch>":[["in","inch","inches",'"'],.0254,"length",["<meter>"]],"<foot>":[["ft","foot","feet","'"],.3048,"length",["<meter>"]],"<yard>":[["yd","yard","yards"],.9144,"length",["<meter>"]],"<mile>":[["mi","mile","miles"],1609.344,"length",["<meter>"]],"<naut-mile>":[["nmi","naut-mile"],1852,"length",["<meter>"]],"<league>":[["league","leagues"],4828,"length",["<meter>"]],"<furlong>":[["furlong","furlongs"],201.2,"length",["<meter>"]],"<rod>":[["rd","rod","rods"],5.029,"length",["<meter>"]],"<mil>":[["mil","mils"],254e-7,"length",["<meter>"]],"<angstrom>":[["ang","angstrom","angstroms"],1e-10,"length",["<meter>"]],"<fathom>":[["fathom","fathoms"],1.829,"length",["<meter>"]],"<pica>":[["pica","picas"],.00423333333,"length",["<meter>"]],"<point>":[["pt","point","points"],.000352777778,"length",["<meter>"]],"<redshift>":[["z","red-shift","redshift"],1302773e20,"length",["<meter>"]],"<AU>":[["AU","astronomical-unit"],1495979e5,"length",["<meter>"]],"<light-second>":[["ls","light-second"],299792500,"length",["<meter>"]],"<light-minute>":[["lmin","light-minute"],1798755e4,"length",["<meter>"]],"<light-year>":[["ly","light-year"],9460528e9,"length",["<meter>"]],"<parsec>":[["pc","parsec","parsecs"],3085678e10,"length",["<meter>"]],"<datamile>":[["DM","datamile"],1828.8,"length",["<meter>"]],"<kilogram>":[["kg","kilogram","kilograms"],1,"mass",["<kilogram>"]],"<AMU>":[["u","AMU","amu"],1660538921e-36,"mass",["<kilogram>"]],"<dalton>":[["Da","Dalton","Daltons","dalton","daltons"],1660538921e-36,"mass",["<kilogram>"]],"<slug>":[["slug","slugs"],14.5939029,"mass",["<kilogram>"]],"<short-ton>":[["tn","ton","short-ton"],907.18474,"mass",["<kilogram>"]],"<metric-ton>":[["t","tonne","metric-ton"],1e3,"mass",["<kilogram>"]],"<carat>":[["ct","carat","carats"],2e-4,"mass",["<kilogram>"]],"<pound>":[["lbs","lb","pound","pounds","#"],.45359237,"mass",["<kilogram>"]],"<ounce>":[["oz","ounce","ounces"],.0283495231,"mass",["<kilogram>"]],"<gram>":[["g","gram","grams","gramme","grammes"],.001,"mass",["<kilogram>"]],"<grain>":[["grain","grains","gr"],6479891e-11,"mass",["<kilogram>"]],"<dram>":[["dram","drams","dr"],.0017718452,"mass",["<kilogram>"]],"<stone>":[["stone","stones","st"],6.35029318,"mass",["<kilogram>"]],"<hectare>":[["hectare"],1e4,"area",["<meter>","<meter>"]],"<acre>":[["acre","acres"],4046.85642,"area",["<meter>","<meter>"]],"<sqft>":[["sqft"],1,"area",["<foot>","<foot>"]],"<liter>":[["l","L","liter","liters","litre","litres"],.001,"volume",["<meter>","<meter>","<meter>"]],"<gallon>":[["gal","gallon","gallons"],.0037854118,"volume",["<meter>","<meter>","<meter>"]],"<gallon-imp>":[["galimp","gallon-imp","gallons-imp"],.00454609,"volume",["<meter>","<meter>","<meter>"]],"<quart>":[["qt","quart","quarts"],.00094635295,"volume",["<meter>","<meter>","<meter>"]],"<pint>":[["pt","pint","pints"],.000473176475,"volume",["<meter>","<meter>","<meter>"]],"<pint-imp>":[["ptimp","pint-imp","pints-imp"],.00056826125,"volume",["<meter>","<meter>","<meter>"]],"<cup>":[["cu","cup","cups"],.000236588238,"volume",["<meter>","<meter>","<meter>"]],"<fluid-ounce>":[["floz","fluid-ounce","fluid-ounces"],295735297e-13,"volume",["<meter>","<meter>","<meter>"]],"<fluid-ounce-imp>":[["flozimp","floz-imp","fluid-ounce-imp","fluid-ounces-imp"],284130625e-13,"volume",["<meter>","<meter>","<meter>"]],"<tablespoon>":[["tb","tbsp","tbs","tablespoon","tablespoons"],147867648e-13,"volume",["<meter>","<meter>","<meter>"]],"<teaspoon>":[["tsp","teaspoon","teaspoons"],492892161e-14,"volume",["<meter>","<meter>","<meter>"]],"<bushel>":[["bu","bsh","bushel","bushels"],.035239072,"volume",["<meter>","<meter>","<meter>"]],"<oilbarrel>":[["bbl","oilbarrel","oilbarrels","oil-barrel","oil-barrels"],.158987294928,"volume",["<meter>","<meter>","<meter>"]],"<beerbarrel>":[["bl","bl-us","beerbarrel","beerbarrels","beer-barrel","beer-barrels"],.1173477658,"volume",["<meter>","<meter>","<meter>"]],"<beerbarrel-imp>":[["blimp","bl-imp","beerbarrel-imp","beerbarrels-imp","beer-barrel-imp","beer-barrels-imp"],.16365924,"volume",["<meter>","<meter>","<meter>"]],"<kph>":[["kph"],.277777778,"speed",["<meter>"],["<second>"]],"<mph>":[["mph"],.44704,"speed",["<meter>"],["<second>"]],"<knot>":[["kt","kn","kts","knot","knots"],.514444444,"speed",["<meter>"],["<second>"]],"<fps>":[["fps"],.3048,"speed",["<meter>"],["<second>"]],"<gee>":[["gee"],9.80665,"acceleration",["<meter>"],["<second>","<second>"]],"<Gal>":[["Gal"],.01,"acceleration",["<meter>"],["<second>","<second>"]],"<kelvin>":[["degK","kelvin"],1,"temperature",["<kelvin>"]],"<celsius>":[["degC","celsius","celsius","centigrade"],1,"temperature",["<kelvin>"]],"<fahrenheit>":[["degF","fahrenheit"],5/9,"temperature",["<kelvin>"]],"<rankine>":[["degR","rankine"],5/9,"temperature",["<kelvin>"]],"<temp-K>":[["tempK","temp-K"],1,"temperature",["<temp-K>"]],"<temp-C>":[["tempC","temp-C"],1,"temperature",["<temp-K>"]],"<temp-F>":[["tempF","temp-F"],5/9,"temperature",["<temp-K>"]],"<temp-R>":[["tempR","temp-R"],5/9,"temperature",["<temp-K>"]],"<second>":[["s","sec","secs","second","seconds"],1,"time",["<second>"]],"<minute>":[["min","mins","minute","minutes"],60,"time",["<second>"]],"<hour>":[["h","hr","hrs","hour","hours"],3600,"time",["<second>"]],"<day>":[["d","day","days"],3600*24,"time",["<second>"]],"<week>":[["wk","week","weeks"],7*3600*24,"time",["<second>"]],"<fortnight>":[["fortnight","fortnights"],1209600,"time",["<second>"]],"<year>":[["y","yr","year","years","annum"],31556926,"time",["<second>"]],"<decade>":[["decade","decades"],315569260,"time",["<second>"]],"<century>":[["century","centuries"],3155692600,"time",["<second>"]],"<pascal>":[["Pa","pascal","Pascal"],1,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<bar>":[["bar","bars"],1e5,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<mmHg>":[["mmHg"],133.322368,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<inHg>":[["inHg"],3386.3881472,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<torr>":[["torr"],133.322368,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<atm>":[["atm","ATM","atmosphere","atmospheres"],101325,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<psi>":[["psi"],6894.76,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<cmh2o>":[["cmH2O","cmh2o"],98.0638,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<inh2o>":[["inH2O","inh2o"],249.082052,"pressure",["<kilogram>"],["<meter>","<second>","<second>"]],"<poise>":[["P","poise"],.1,"viscosity",["<kilogram>"],["<meter>","<second>"]],"<stokes>":[["St","stokes"],1e-4,"viscosity",["<meter>","<meter>"],["<second>"]],"<mole>":[["mol","mole"],1,"substance",["<mole>"]],"<molar>":[["M","molar"],1e3,"molar_concentration",["<mole>"],["<meter>","<meter>","<meter>"]],"<wtpercent>":[["wt%","wtpercent"],10,"molar_concentration",["<kilogram>"],["<meter>","<meter>","<meter>"]],"<katal>":[["kat","katal","Katal"],1,"activity",["<mole>"],["<second>"]],"<unit>":[["U","enzUnit","unit"],16667e-19,"activity",["<mole>"],["<second>"]],"<farad>":[["F","farad","Farad"],1,"capacitance",["<second>","<second>","<second>","<second>","<ampere>","<ampere>"],["<meter>","<meter>","<kilogram>"]],"<coulomb>":[["C","coulomb","Coulomb"],1,"charge",["<ampere>","<second>"]],"<Ah>":[["Ah"],3600,"charge",["<ampere>","<second>"]],"<ampere>":[["A","Ampere","ampere","amp","amps"],1,"current",["<ampere>"]],"<siemens>":[["S","Siemens","siemens"],1,"conductance",["<second>","<second>","<second>","<ampere>","<ampere>"],["<kilogram>","<meter>","<meter>"]],"<henry>":[["H","Henry","henry"],1,"inductance",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>","<ampere>"]],"<volt>":[["V","Volt","volt","volts"],1,"potential",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<second>","<ampere>"]],"<ohm>":[["Ohm","ohm","\u03A9","\u2126"],1,"resistance",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<second>","<ampere>","<ampere>"]],"<weber>":[["Wb","weber","webers"],1,"magnetism",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>"]],"<tesla>":[["T","tesla","teslas"],1,"magnetism",["<kilogram>"],["<second>","<second>","<ampere>"]],"<gauss>":[["G","gauss"],1e-4,"magnetism",["<kilogram>"],["<second>","<second>","<ampere>"]],"<maxwell>":[["Mx","maxwell","maxwells"],1e-8,"magnetism",["<meter>","<meter>","<kilogram>"],["<second>","<second>","<ampere>"]],"<oersted>":[["Oe","oersted","oersteds"],250/Math.PI,"magnetism",["<ampere>"],["<meter>"]],"<joule>":[["J","joule","Joule","joules","Joules"],1,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<erg>":[["erg","ergs"],1e-7,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<btu>":[["BTU","btu","BTUs"],1055.056,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<calorie>":[["cal","calorie","calories"],4.184,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<Calorie>":[["Cal","Calorie","Calories"],4184,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<therm-US>":[["th","therm","therms","Therm","therm-US"],105480400,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<Wh>":[["Wh"],3600,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<electronvolt>":[["eV","electronvolt","electronvolts"],1602176634e-28,"energy",["<meter>","<meter>","<kilogram>"],["<second>","<second>"]],"<newton>":[["N","Newton","newton"],1,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<dyne>":[["dyn","dyne"],1e-5,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<pound-force>":[["lbf","pound-force"],4.448222,"force",["<kilogram>","<meter>"],["<second>","<second>"]],"<hertz>":[["Hz","hertz","Hertz"],1,"frequency",["<1>"],["<second>"]],"<radian>":[["rad","radian","radians"],1,"angle",["<radian>"]],"<degree>":[["deg","degree","degrees"],Math.PI/180,"angle",["<radian>"]],"<arcminute>":[["arcmin","arcminute","arcminutes"],Math.PI/10800,"angle",["<radian>"]],"<arcsecond>":[["arcsec","arcsecond","arcseconds"],Math.PI/648e3,"angle",["<radian>"]],"<gradian>":[["gon","grad","gradian","grads"],Math.PI/200,"angle",["<radian>"]],"<steradian>":[["sr","steradian","steradians"],1,"solid_angle",["<steradian>"]],"<rotation>":[["rotation"],2*Math.PI,"angle",["<radian>"]],"<rpm>":[["rpm"],2*Math.PI/60,"angular_velocity",["<radian>"],["<second>"]],"<byte>":[["B","byte","bytes"],1,"information",["<byte>"]],"<bit>":[["b","bit","bits"],.125,"information",["<byte>"]],"<Bps>":[["Bps"],1,"information_rate",["<byte>"],["<second>"]],"<bps>":[["bps"],.125,"information_rate",["<byte>"],["<second>"]],"<dollar>":[["USD","dollar"],1,"currency",["<dollar>"]],"<cents>":[["cents"],.01,"currency",["<dollar>"]],"<candela>":[["cd","candela"],1,"luminosity",["<candela>"]],"<lumen>":[["lm","lumen"],1,"luminous_power",["<candela>","<steradian>"]],"<lux>":[["lux"],1,"illuminance",["<candela>","<steradian>"],["<meter>","<meter>"]],"<watt>":[["W","watt","watts"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<volt-ampere>":[["VA","volt-ampere"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<volt-ampere-reactive>":[["var","Var","VAr","VAR","volt-ampere-reactive"],1,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<horsepower>":[["hp","horsepower"],745.699872,"power",["<kilogram>","<meter>","<meter>"],["<second>","<second>","<second>"]],"<gray>":[["Gy","gray","grays"],1,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<roentgen>":[["R","roentgen"],.00933,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<sievert>":[["Sv","sievert","sieverts"],1,"radiation",["<meter>","<meter>"],["<second>","<second>"]],"<becquerel>":[["Bq","becquerel","becquerels"],1,"radiation",["<1>"],["<second>"]],"<curie>":[["Ci","curie","curies"],37e9,"radiation",["<1>"],["<second>"]],"<cpm>":[["cpm"],1/60,"rate",["<count>"],["<second>"]],"<dpm>":[["dpm"],1/60,"rate",["<count>"],["<second>"]],"<bpm>":[["bpm"],1/60,"rate",["<count>"],["<second>"]],"<dot>":[["dot","dots"],1,"resolution",["<each>"]],"<pixel>":[["pixel","px"],1,"resolution",["<each>"]],"<ppi>":[["ppi"],1,"resolution",["<pixel>"],["<inch>"]],"<dpi>":[["dpi"],1,"typography",["<dot>"],["<inch>"]],"<cell>":[["cells","cell"],1,"counting",["<each>"]],"<each>":[["each"],1,"counting",["<each>"]],"<count>":[["count"],1,"counting",["<each>"]],"<base-pair>":[["bp","base-pair"],1,"counting",["<each>"]],"<nucleotide>":[["nt","nucleotide"],1,"counting",["<each>"]],"<molecule>":[["molecule","molecules"],1,"counting",["<1>"]],"<dozen>":[["doz","dz","dozen"],12,"prefix_only",["<each>"]],"<percent>":[["%","percent"],.01,"prefix_only",["<1>"]],"<ppm>":[["ppm"],1e-6,"prefix_only",["<1>"]],"<ppb>":[["ppb"],1e-9,"prefix_only",["<1>"]],"<ppt>":[["ppt"],1e-12,"prefix_only",["<1>"]],"<ppq>":[["ppq"],1e-15,"prefix_only",["<1>"]],"<gross>":[["gr","gross"],144,"prefix_only",["<dozen>","<dozen>"]],"<decibel>":[["dB","decibel","decibels"],1,"logarithmic",["<decibel>"]]},Ii=["<meter>","<kilogram>","<second>","<mole>","<ampere>","<radian>","<kelvin>","<temp-K>","<byte>","<dollar>","<candela>","<each>","<steradian>","<decibel>"],oe="<1>",w=[oe];function Ei(t,r){var s=r[1],o=r[3]||[],l=r[4]||[];if(!e(s))throw new h(t+": Invalid unit definition. 'scalar' must be a number");o.forEach(function(m){if(O[m]===void 0)throw new h(t+": Invalid unit definition. Unit "+m+" in 'numerator' is not recognized")}),l.forEach(function(m){if(O[m]===void 0)throw new h(t+": Invalid unit definition. Unit "+m+" in 'denominator' is not recognized")})}var E={},ae={},M={},W={},le={};for(var L in O)if(O.hasOwnProperty(L)){var D=O[L];if(D[2]==="prefix"){E[L]=D[1];for(var Se=0;Se<D[0].length;Se++)ae[D[0][Se]]=L}else{Ei(L,D),M[L]={scalar:D[1],numerator:D[3],denominator:D[4]};for(var Oe=0;Oe<D[0].length;Oe++)W[D[0][Oe]]=L}le[L]=D[0][0]}function Ai(t){var r,s=[],o=Object.keys(O);if(typeof t>"u")for(r=0;r<o.length;r++)["","prefix"].indexOf(O[o[r]][2])===-1&&s.push(o[r].substr(1,o[r].length-2));else{if(this.getKinds().indexOf(t)===-1)throw new h("Kind not recognized");for(r=0;r<o.length;r++)O[o[r]][2]===t&&s.push(o[r].substr(1,o[r].length-2))}return s.sort(function(l,m){return l.toLowerCase()<m.toLowerCase()?-1:l.toLowerCase()>m.toLowerCase()?1:0})}function Pi(t){if(!W[t])throw new h("Unit not recognized");return O[W[t]][0]}var De=["length","time","temperature","mass","current","substance","luminosity","currency","information","angle"];function Ri(){if(this.signature)return this.signature;for(var t=st.call(this),r=0;r<t.length;r++)t[r]*=Math.pow(20,r);return t.reduce(function(s,o){return s+o},0)}function st(){if(!this.isBase())return st.call(this.toBase());for(var t=new Array(De.length),r=0;r<t.length;r++)t[r]=0;for(var s,o,l=0;l<this.numerator.length;l++)(s=O[this.numerator[l]])&&(o=De.indexOf(s[2]),o>=0&&(t[o]=t[o]+1));for(var m=0;m<this.denominator.length;m++)(s=O[this.denominator[m]])&&(o=De.indexOf(s[2]),o>=0&&(t[o]=t[o]-1));return t}var ot="[+-]",xe="\\d+",Fi=ot+"?"+xe,at="\\."+xe,Li="(?:"+xe+"(?:"+at+")?)|(?:"+at+")",Ni="[Ee]"+Fi,qi="(?:"+Li+")(?:"+Ni+")?",Ui=ot+"?\\s*"+qi,zi="("+Ui+")?\\s*([^/]*)(?:/(.+))?",Hi=new RegExp("^"+zi+"$"),lt="\\^|\\*{2}",ct="[01234]",Vi=new RegExp("([^ \\*\\d]+?)(?:"+lt+")?(-?"+ct+"(?![a-zA-Z]))"),Ki=new RegExp("([^ \\*\\d]+?)(?:"+lt+")?("+ct+"(?![a-zA-Z]))");function dt(t){c(t)||(t=t.toString()),t=t.trim();var r=Hi.exec(t);if(!r)throw new h(t+": Quantity not recognized");var s=r[1];s?(s=s.replace(/\s/g,""),this.scalar=parseFloat(s)):this.scalar=1;for(var o=r[2],l=r[3],m,v,_;r=Vi.exec(o);){if(m=parseFloat(r[2]),isNaN(m))throw new h("Unit exponent is not a number");if(m===0&&!Ie.test(r[1]))throw new h("Unit not recognized");v=r[1]+" ",_="";for(var b=0;b<Math.abs(m);b++)_+=v;m>=0?o=o.replace(r[0],_):(l=l?l+_:_,o=o.replace(r[0],""))}for(;r=Ki.exec(l);){if(m=parseFloat(r[2]),isNaN(m))throw new h("Unit exponent is not a number");if(m===0&&!Ie.test(r[1]))throw new h("Unit not recognized");v=r[1]+" ",_="";for(var T=0;T<m;T++)_+=v;l=l.replace(r[0],_)}o&&(this.numerator=pt(o.trim())),l&&(this.denominator=pt(l.trim()))}var Bi=Object.keys(ae).sort(function(t,r){return r.length-t.length}).join("|"),Gi=Object.keys(W).sort(function(t,r){return r.length-t.length}).join("|"),Wi="\\b|$",mt="("+Bi+")??("+Gi+")(?:"+Wi+")",Ie=new RegExp("^\\s*("+mt+"[\\s\\*]*)+$"),Yi=new RegExp(mt,"g"),ut={};function pt(t){var r=ut[t];if(r)return r;var s,o=[];if(!Ie.test(t))throw new h("Unit not recognized");for(;s=Yi.exec(t);)o.push(s.slice(1));return o=o.map(function(l){return ae[l[0]]?[ae[l[0]],W[l[1]]]:[W[l[1]]]}),o=o.reduce(function(l,m){return l.concat(m)},[]),o=o.filter(function(l){return l}),ut[t]=o,o}function ji(t){if(!c(t))throw new h("Argument should be a string");try{return this(t)}catch(r){return null}}function ce(t){return t instanceof u}function u(t,r){if(Xi.apply(null,arguments),!ce(this))return new u(t,r);if(this.scalar=null,this.baseScalar=null,this.signature=null,this._conversionCache={},this.numerator=w,this.denominator=w,ht(t)?(this.scalar=t.scalar,this.numerator=t.numerator&&t.numerator.length!==0?t.numerator:w,this.denominator=t.denominator&&t.denominator.length!==0?t.denominator:w):r?(dt.call(this,r),this.scalar=t):dt.call(this,t),this.denominator.join("*").indexOf("temp")>=0)throw new h("Cannot divide with temperatures");if(this.numerator.join("*").indexOf("temp")>=0){if(this.numerator.length>1)throw new h("Cannot multiply by temperatures");if(!a(this.denominator,w))throw new h("Cannot divide with temperatures")}if(this.initValue=t,Ji.call(this),this.isTemperature()&&this.baseScalar<0)throw new h("Temperatures must not be less than absolute zero")}u.prototype={constructor:u};function Xi(t,r){if(r){if(!(e(t)&&c(r)))throw new h("Only number accepted as initialization value when units are explicitly provided")}else if(!(c(t)||e(t)||ce(t)||ht(t)))throw new h("Only string, number or quantity accepted as single initialization value")}function ht(t){return t&&typeof t=="object"&&t.hasOwnProperty("scalar")}function Ji(){if(this.baseScalar)return this.baseScalar;if(this.isBase())this.baseScalar=this.scalar,this.signature=Ri.call(this);else{var t=this.toBase();this.baseScalar=t.scalar,this.signature=t.signature}}var Ee={"-312078":"elastance","-312058":"resistance","-312038":"inductance","-152058":"potential","-152040":"magnetism","-152038":"magnetism","-7997":"specific_volume","-79":"snap","-59":"jolt","-39":"acceleration","-38":"radiation","-20":"frequency","-19":"speed","-18":"viscosity","-17":"volumetric_flow","-1":"wavenumber",0:"unitless",1:"length",2:"area",3:"volume",20:"time",400:"temperature",7941:"yank",7942:"power",7959:"pressure",7961:"force",7962:"energy",7979:"viscosity",7981:"momentum",7982:"angular_momentum",7997:"density",7998:"area_density",8e3:"mass",152020:"radiation_exposure",159999:"magnetism",16e4:"current",160020:"charge",312058:"conductance",312078:"capacitance",3199980:"activity",3199997:"molar_concentration",32e5:"substance",63999998:"illuminance",64e6:"luminous_power",128e7:"currency","25599999980":"information_rate","25600000000":"information","511999999980":"angular_velocity","512000000000":"angle"};function Qi(){return n(Object.keys(Ee).map(function(t){return Ee[t]}))}u.prototype.kind=function(){return Ee[this.signature.toString()]},d(u.prototype,{isDegrees:function(){return(this.signature===null||this.signature===400)&&this.numerator.length===1&&a(this.denominator,w)&&(this.numerator[0].match(/<temp-[CFRK]>/)||this.numerator[0].match(/<(kelvin|celsius|rankine|fahrenheit)>/))},isTemperature:function(){return this.isDegrees()&&this.numerator[0].match(/<temp-[CFRK]>/)}});function Zi(t,r){var s=t.units(),o=r.to(s),l=u(Ae(s));return u({scalar:t.scalar-o.scalar,numerator:l.numerator,denominator:l.denominator})}function $i(t,r){var s=r.to(Ae(t.units()));return u({scalar:t.scalar-s.scalar,numerator:t.numerator,denominator:t.denominator})}function ft(t,r){var s=r.to(Ae(t.units()));return u({scalar:t.scalar+s.scalar,numerator:t.numerator,denominator:t.denominator})}function Ae(t){if(t==="tempK")return"degK";if(t==="tempC")return"degC";if(t==="tempF")return"degF";if(t==="tempR")return"degR";throw new h("Unknown type for temp conversion from: "+t)}function er(t,r){var s=tr(t),o=r.units(),l;if(o==="degK")l=s.scalar;else if(o==="degC")l=s.scalar;else if(o==="degF")l=s.scalar*9/5;else if(o==="degR")l=s.scalar*9/5;else throw new h("Unknown type for degree conversion to: "+o);return u({scalar:l,numerator:r.numerator,denominator:r.denominator})}function tr(t){var r=t.units(),s;if(r.match(/(deg)[CFRK]/))s=t.baseScalar;else if(r==="tempK")s=t.scalar;else if(r==="tempC")s=t.scalar;else if(r==="tempF")s=t.scalar*5/9;else if(r==="tempR")s=t.scalar*5/9;else throw new h("Unknown type for temp conversion from: "+r);return u({scalar:s,numerator:["<kelvin>"],denominator:w})}function ir(t,r){var s=r.units(),o;if(s==="tempK")o=t.baseScalar;else if(s==="tempC")o=t.baseScalar-273.15;else if(s==="tempF")o=t.baseScalar*9/5-459.67;else if(s==="tempR")o=t.baseScalar*9/5;else throw new h("Unknown type for temp conversion to: "+s);return u({scalar:o,numerator:r.numerator,denominator:r.denominator})}function rr(t){var r=t.units(),s;if(r.match(/(deg)[CFRK]/))s=t.baseScalar;else if(r==="tempK")s=t.scalar;else if(r==="tempC")s=t.scalar+273.15;else if(r==="tempF")s=(t.scalar+459.67)*5/9;else if(r==="tempR")s=t.scalar*5/9;else throw new h("Unknown type for temp conversion from: "+r);return u({scalar:s,numerator:["<temp-K>"],denominator:w})}d(u.prototype,{to:function(t){var r,s;if(t==null)return this;if(!c(t))return this.to(t.units());if(r=this._conversionCache[t],r)return r;if(s=u(t),s.units()===this.units())return this;if(!this.isCompatible(s))this.isInverse(s)?s=this.inverse().to(t):Z(this.units(),s.units());else if(s.isTemperature())s=ir(this,s);else if(s.isDegrees())s=er(this,s);else{var o=y(this.baseScalar,s.baseScalar);s=u({scalar:o,numerator:s.numerator,denominator:s.denominator})}return this._conversionCache[t]=s,s},toBase:function(){if(this.isBase())return this;if(this.isTemperature())return rr(this);var t=gt[this.units()];return t||(t=sr(this.numerator,this.denominator),gt[this.units()]=t),t.mul(this.scalar)},toFloat:function(){if(this.isUnitless())return this.scalar;throw new h("Can't convert to Float unless unitless. Use Unit#scalar")},toPrec:function(t){if(c(t)&&(t=u(t)),e(t)&&(t=u(t+" "+this.units())),this.isUnitless()?t.isUnitless()||Z(this.units(),t.units()):t=t.to(this.units()),t.scalar===0)throw new h("Divide by zero");var r=g(Math.round(this.scalar/t.scalar),t.scalar);return u(r+this.units())}});function nr(t,r){var s=u(t),o=u(r);if(s.eq(o))return i;var l;return s.isTemperature()?l=function(m){return s.mul(m).to(o).scalar}:l=function(m){return m*s.baseScalar/o.baseScalar},function(v){var _,b,T;if(Array.isArray(v)){for(b=v.length,T=[],_=0;_<b;_++)T.push(l(v[_]));return T}else return l(v)}}var gt={};function sr(t,r){for(var s=[],o=[],l=1,m,v=0;v<t.length;v++)m=t[v],E[m]?l=g(l,E[m]):M[m]&&(l*=M[m].scalar,M[m].numerator&&s.push(M[m].numerator),M[m].denominator&&o.push(M[m].denominator));for(var _=0;_<r.length;_++)m=r[_],E[m]?l/=E[m]:M[m]&&(l/=M[m].scalar,M[m].numerator&&o.push(M[m].numerator),M[m].denominator&&s.push(M[m].denominator));return s=s.reduce(function(b,T){return b.concat(T)},[]),o=o.reduce(function(b,T){return b.concat(T)},[]),u({scalar:l,numerator:s,denominator:o})}u.parse=ji,u.getUnits=Ai,u.getAliases=Pi,u.mulSafe=g,u.divSafe=y,u.getKinds=Qi,u.swiftConverter=nr,u.Error=h,d(u.prototype,{add:function(t){if(c(t)&&(t=u(t)),this.isCompatible(t)||Z(this.units(),t.units()),this.isTemperature()&&t.isTemperature())throw new h("Cannot add two temperatures");return this.isTemperature()?ft(this,t):t.isTemperature()?ft(t,this):u({scalar:this.scalar+t.to(this).scalar,numerator:this.numerator,denominator:this.denominator})},sub:function(t){if(c(t)&&(t=u(t)),this.isCompatible(t)||Z(this.units(),t.units()),this.isTemperature()&&t.isTemperature())return Zi(this,t);if(this.isTemperature())return $i(this,t);if(t.isTemperature())throw new h("Cannot subtract a temperature from a differential degree unit");return u({scalar:this.scalar-t.to(this).scalar,numerator:this.numerator,denominator:this.denominator})},mul:function(t){if(e(t))return u({scalar:g(this.scalar,t),numerator:this.numerator,denominator:this.denominator});if(c(t)&&(t=u(t)),(this.isTemperature()||t.isTemperature())&&!(this.isUnitless()||t.isUnitless()))throw new h("Cannot multiply by temperatures");var r=this,s=t;r.isCompatible(s)&&r.signature!==400&&(s=s.to(r));var o=_t(r.numerator,r.denominator,s.numerator,s.denominator);return u({scalar:g(r.scalar,s.scalar,o[2]),numerator:o[0],denominator:o[1]})},div:function(t){if(e(t)){if(t===0)throw new h("Divide by zero");return u({scalar:this.scalar/t,numerator:this.numerator,denominator:this.denominator})}else c(t)&&(t=u(t));if(t.scalar===0)throw new h("Divide by zero");if(t.isTemperature())throw new h("Cannot divide with temperatures");if(this.isTemperature()&&!t.isUnitless())throw new h("Cannot divide with temperatures");var r=this,s=t;r.isCompatible(s)&&r.signature!==400&&(s=s.to(r));var o=_t(r.numerator,r.denominator,s.denominator,s.numerator);return u({scalar:g(r.scalar,o[2])/s.scalar,numerator:o[0],denominator:o[1]})},inverse:function(){if(this.isTemperature())throw new h("Cannot divide with temperatures");if(this.scalar===0)throw new h("Divide by zero");return u({scalar:1/this.scalar,numerator:this.denominator,denominator:this.numerator})}});function _t(t,r,s,o){function l(x){return x!==oe}t=t.filter(l),s=s.filter(l),r=r.filter(l),o=o.filter(l);var m={};function v(x,z){for(var I,de,Re,H=0;H<x.length;H++)if(E[x[H]]?(I=x[H+1],de=x[H],Re=E[de],H++):(I=x[H],de=null,Re=1),I&&I!==oe)if(m[I]){m[I][0]+=z;var cr=m[I][2]?E[m[I][2]]:1;m[I][z===1?3:4]*=y(Re,cr)}else m[I]=[z,I,de,1,1]}v(t,1),v(r,-1),v(s,1),v(o,-1);var _=[],b=[],T=1;for(var bt in m)if(m.hasOwnProperty(bt)){var C=m[bt],Y;if(C[0]>0)for(Y=0;Y<C[0];Y++)_.push(C[2]===null?C[1]:[C[2],C[1]]);else if(C[0]<0)for(Y=0;Y<-C[0];Y++)b.push(C[2]===null?C[1]:[C[2],C[1]]);T*=y(C[3],C[4])}return _.length===0&&(_=w),b.length===0&&(b=w),_=_.reduce(function(x,z){return x.concat(z)},[]),b=b.reduce(function(x,z){return x.concat(z)},[]),[_,b,T]}d(u.prototype,{eq:function(t){return this.compareTo(t)===0},lt:function(t){return this.compareTo(t)===-1},lte:function(t){return this.eq(t)||this.lt(t)},gt:function(t){return this.compareTo(t)===1},gte:function(t){return this.eq(t)||this.gt(t)},compareTo:function(t){if(c(t))return this.compareTo(u(t));if(this.isCompatible(t)||Z(this.units(),t.units()),this.baseScalar<t.baseScalar)return-1;if(this.baseScalar===t.baseScalar)return 0;if(this.baseScalar>t.baseScalar)return 1},same:function(t){return this.scalar===t.scalar&&this.units()===t.units()}}),d(u.prototype,{isUnitless:function(){return[this.numerator,this.denominator].every(function(t){return a(t,w)})},isCompatible:function(t){return c(t)?this.isCompatible(u(t)):ce(t)&&t.signature!==void 0?this.signature===t.signature:!1},isInverse:function(t){return this.inverse().isCompatible(t)},isBase:function(){return this._isBase!==void 0?this._isBase:this.isDegrees()&&this.numerator[0].match(/<(kelvin|temp-K)>/)?(this._isBase=!0,this._isBase):(this.numerator.concat(this.denominator).forEach(function(t){t!==oe&&Ii.indexOf(t)===-1&&(this._isBase=!1)},this),this._isBase===!1?this._isBase:(this._isBase=!0,this._isBase))}});function Pe(){}Pe.prototype.get=function(t){return arguments.length>1&&(t=Array.apply(null,arguments)),t.reduce(function(r,s,o){if(r){var l=r[s];return o===t.length-1?l?l.data:void 0:l}},this)},Pe.prototype.set=function(t,r){return arguments.length>2&&(t=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1]),t.reduce(function(s,o,l){var m=s[o];return m===void 0&&(m=s[o]={}),l===t.length-1?(m.data=r,r):m},this)};function or(t,r){return(t+" "+r).trim()}u.formatter=or,d(u.prototype,{units:function(){if(this._units!==void 0)return this._units;var t=a(this.numerator,w),r=a(this.denominator,w);if(t&&r)return this._units="",this._units;var s=vt(this.numerator),o=vt(this.denominator);return this._units=s+(r?"":"/"+o),this._units},toString:function(t,r){var s;if(e(t))s=this.units(),r=t;else if(c(t))s=t;else if(ce(t))return this.toPrec(t).toString(r);var o=this.to(s),l=r!==void 0?se(o.scalar,r):o.scalar;return o=(l+" "+o.units()).trim(),o},format:function(t,r){arguments.length===1&&typeof t=="function"&&(r=t,t=void 0),r=r||u.formatter;var s=this.to(t);return r.call(this,s.scalar,s.units())}});var yt=new Pe;function vt(t){var r=yt.get(t);if(r)return r;var s=a(t,w);return s?r="1":r=lr(ar(t)).join("*"),yt.set(t,r),r}function ar(t){for(var r=[],s,o,l=0;l<t.length;l++)s=t[l],o=t[l+1],E[s]?(r.push(le[s]+le[o]),l++):r.push(le[s]);return r}function lr(t){var r=t.reduce(function(s,o){var l=s[o];return l||s.push(l=s[o]=[o,0]),l[1]++,s},[]);return r.map(function(s){return s[0]+(s[1]>1?s[1]:"")})}return u.version="1.8.0",u})});var p=mr(bi());var qr=(()=>{class c{SettingsService=f(ri);data=f(vi);_defaultUnitsSub;_conversionList=[{group:"Unitless",units:[{measure:"unitless",description:"As-Is numeric value"},{measure:" ",description:"No unit label - As-Is numeric value"}]},{group:"Speed",units:[{measure:"knots",description:"Knots - Nautical miles per hour"},{measure:"kph",description:"kph - Kilometers per hour"},{measure:"mph",description:"mph - Miles per hour"},{measure:"m/s",description:"m/s - Meters per second (base)"}]},{group:"Flow",units:[{measure:"m3/s",description:"Cubic meters per second (base)"},{measure:"l/min",description:"Liters per minute"},{measure:"l/h",description:"Liters per hour"},{measure:"g/min",description:"Gallons per minute"},{measure:"g/h",description:"Gallons per hour"}]},{group:"Fuel Distance",units:[{measure:"m/m3",description:"Meters per cubic meter (base)"},{measure:"nm/l",description:"Nautical Miles per liter"},{measure:"nm/g",description:"Nautical Miles per gallon"},{measure:"km/l",description:"Kilometers per liter"},{measure:"mpg",description:"Miles per Gallon"}]},{group:"Energy Distance",units:[{measure:"m/J",description:"Meters per Joule (base)"},{measure:"nm/J",description:"Nautical Miles per Joule"},{measure:"km/J",description:"Kilometers per Joule"},{measure:"nm/kWh",description:"Nautical Miles per Kilowatt-hour"},{measure:"km/kWh",description:"Kilometers per Kilowatt-hour"}]},{group:"Temperature",units:[{measure:"K",description:"Kelvin (base)"},{measure:"celsius",description:"Celsius"},{measure:"fahrenheit",description:"Fahrenheit"}]},{group:"Length",units:[{measure:"m",description:"Meters (base)"},{measure:"mm",description:"Millimeters"},{measure:"fathom",description:"Fathoms"},{measure:"nm",description:"Nautical Miles"},{measure:"km",description:"Kilometers"},{measure:"mi",description:"Miles"},{measure:"feet",description:"Feet"},{measure:"inch",description:"Inches"}]},{group:"Volume",units:[{measure:"liter",description:"Liters (base)"},{measure:"m3",description:"Cubic Meters"},{measure:"gallon",description:"Gallons"}]},{group:"Current",units:[{measure:"A",description:"Amperes (base)"},{measure:"mA",description:"Milliamperes"}]},{group:"Potential",units:[{measure:"V",description:"Volts (base)"},{measure:"mV",description:"Millivolts"}]},{group:"Charge",units:[{measure:"C",description:"Coulomb (base)"},{measure:"Ah",description:"Ampere*Hours"}]},{group:"Power",units:[{measure:"W",description:"Watts (base)"},{measure:"mW",description:"Milliwatts"}]},{group:"Energy",units:[{measure:"J",description:"Joules (base)"},{measure:"kWh",description:"Kilowatt*Hours"}]},{group:"Resistance",units:[{measure:"ohm",description:"\u2126 (base)"},{measure:"kiloohm",description:"k\u2126"}]},{group:"Pressure",units:[{measure:"Pa",description:"Pa (base)"},{measure:"kPa",description:"kPa"},{measure:"hPa",description:"hPa"},{measure:"mbar",description:"mbar"},{measure:"bar",description:"Bars"},{measure:"psi",description:"psi"},{measure:"mmHg",description:"mmHg"},{measure:"inHg",description:"inHg"}]},{group:"Density",units:[{measure:"kg/m3",description:"Air density - kg/cubic meter (base)"}]},{group:"Time",units:[{measure:"s",description:"Seconds (base)"},{measure:"Minutes",description:"Minutes"},{measure:"Hours",description:"Hours"},{measure:"Days",description:"Days"},{measure:"D HH:MM:SS",description:"Day Hour:Minute:sec"}]},{group:"Angular Velocity",units:[{measure:"rad/s",description:"Radians per second (base)"},{measure:"deg/s",description:"Degrees per second"},{measure:"deg/min",description:"Degrees per minute"}]},{group:"Angle",units:[{measure:"rad",description:"Radians (base)"},{measure:"deg",description:"Degrees"},{measure:"grad",description:"Gradians"}]},{group:"Frequency",units:[{measure:"rpm",description:"RPM - Rotations per minute"},{measure:"Hz",description:"Hz - Hertz (base)"},{measure:"KHz",description:"KHz - Kilohertz"},{measure:"MHz",description:"MHz - Megahertz"},{measure:"GHz",description:"GHz - Gigahertz"}]},{group:"Ratio",units:[{measure:"percent",description:"As percentage value"},{measure:"percentraw",description:"As ratio 0-1 with % sign"},{measure:"ratio",description:"Ratio 0-1 (base)"}]},{group:"Position",units:[{measure:"pdeg",description:"Position Degrees"},{measure:"latitudeMin",description:"Latitude in minutes"},{measure:"latitudeSec",description:"Latitude in seconds"},{measure:"longitudeMin",description:"Longitude in minutes"},{measure:"longitudeSec",description:"Longitude in seconds"}]}];skBaseUnits=[{unit:"s",properties:{display:"s",quantity:"Time",quantityDisplay:"t",description:"Elapsed time (interval) in seconds"}},{unit:"Hz",properties:{display:"Hz",quantity:"Frequency",quantityDisplay:"f",description:"Frequency in Hertz"}},{unit:"m3",properties:{display:"m\xB3",quantity:"Volume",quantityDisplay:"V",description:"Volume in cubic meters"}},{unit:"m3/s",properties:{display:"m\xB3/s",quantity:"Flow",quantityDisplay:"Q",description:"Liquid or gas flow in cubic meters per second"}},{unit:"kg/s",properties:{display:"kg/s",quantity:"Mass flow rate",quantityDisplay:"\u1E41",description:"Liquid or gas flow in kilograms per second"}},{unit:"kg/m3",properties:{display:"kg/m\xB3",quantity:"Density",quantityDisplay:"\u03C1",description:"Density in kg per cubic meter"}},{unit:"deg",properties:{display:"Position",quantity:"Angle",quantityDisplay:"\u2220",description:"Latitude or longitude in decimal degrees"}},{unit:"rad",properties:{display:"\xB0",quantity:"Angle",quantityDisplay:"\u2220",description:"Angular arc in radians"}},{unit:"rad/s",properties:{display:"\u33AD/s",quantity:"Rotation",quantityDisplay:"\u03C9",description:"Angular rate in radians per second"}},{unit:"A",properties:{display:"A",quantity:"Current",quantityDisplay:"I",description:"Electrical current in ampere"}},{unit:"C",properties:{display:"C",quantity:"Charge",quantityDisplay:"Q",description:"Electrical charge in Coulomb"}},{unit:"V",properties:{display:"V",quantity:"Voltage",quantityDisplay:"V",description:"Electrical potential in volt"}},{unit:"W",properties:{display:"W",quantity:"Power",quantityDisplay:"P",description:"Power in watt"}},{unit:"Nm",properties:{display:"Nm",quantity:"Torque",quantityDisplay:"\u03C4",description:"Torque in Newton meter"}},{unit:"J",properties:{display:"J",quantity:"Energy",quantityDisplay:"E",description:"Electrical energy in joule"}},{unit:"ohm",properties:{display:"\u2126",quantity:"Resistance",quantityDisplay:"R",description:"Electrical resistance in ohm"}},{unit:"m",properties:{display:"m",quantity:"Distance",quantityDisplay:"d",description:"Distance in meters"}},{unit:"m/s",properties:{display:"m/s",quantity:"Speed",quantityDisplay:"v",description:"Speed in meters per second"}},{unit:"m2",properties:{display:"\u33A1",quantity:"Area",quantityDisplay:"A",description:"(Surface) area in square meters"}},{unit:"K",properties:{display:"K",quantity:"Temperature",quantityDisplay:"T",description:"Temperature in kelvin"}},{unit:"Pa",properties:{display:"Pa",quantity:"Pressure",quantityDisplay:"P",description:"Pressure in pascal"}},{unit:"kg",properties:{display:"kg",quantity:"Mass",quantityDisplay:"m",description:"Mass in kilogram"}},{unit:"ratio",properties:{display:"",quantity:"Ratio",quantityDisplay:"\u03C6",description:"Relative value compared to reference or normal value. 0 = 0%, 1 = 100%, 1e-3 = 1 ppt"}},{unit:"m/s2",properties:{display:"m/s\xB2",quantity:"Acceleration",quantityDisplay:"a",description:"Acceleration in meters per second squared"}},{unit:"rad/s2",properties:{display:"rad/s\xB2",quantity:"Angular acceleration",quantityDisplay:"a",description:"Angular acceleration in radians per second squared"}},{unit:"N",properties:{display:"N",quantity:"Force",quantityDisplay:"F",description:"Force in newton"}},{unit:"T",properties:{display:"T",quantity:"Magnetic field",quantityDisplay:"B",description:"Magnetic field strength in tesla"}},{unit:"Lux",properties:{display:"lx",quantity:"Light Intensity",quantityDisplay:"Ev",description:"Light Intensity in lux"}},{unit:"Pa/s",properties:{display:"Pa/s",quantity:"Pressure rate",quantityDisplay:"R",description:"Pressure change rate in pascal per second"}},{unit:"Pa.s",properties:{display:"Pa s",quantity:"Viscosity",quantityDisplay:"\u03BC",description:"Viscosity in pascal seconds"}}];_defaultUnits=null;constructor(){this._defaultUnitsSub=this.SettingsService.getDefaultUnitsAsO().subscribe(e=>{this._defaultUnits=e})}unitConversionFunctions={unitless:function(e){return e}," ":function(e){return e},knots:p.default.swiftConverter("m/s","kn"),kph:p.default.swiftConverter("m/s","kph"),"m/s":function(e){return e},mph:p.default.swiftConverter("m/s","mph"),liter:p.default.swiftConverter("m^3","liter"),gallon:p.default.swiftConverter("m^3","gallon"),m3:function(e){return e},"m3/s":function(e){return e},"l/min":p.default.swiftConverter("m^3/s","liter/minute"),"l/h":p.default.swiftConverter("m^3/s","liter/hour"),"g/min":p.default.swiftConverter("m^3/s","gallon/minute"),"g/h":p.default.swiftConverter("m^3/s","gallon/hour"),"m/m3":function(e){return e},"nm/l":p.default.swiftConverter("m/m^3","naut-mile/liter"),"nm/g":p.default.swiftConverter("m/m^3","naut-mile/gallon"),"km/l":p.default.swiftConverter("m/m^3","km/liter"),mpg:p.default.swiftConverter("m/m^3","mile/gallon"),"m/J":function(e){return e},"nm/J":p.default.swiftConverter("m/J","naut-mile/J"),"km/J":p.default.swiftConverter("km/J","km/J"),"nm/kWh":p.default.swiftConverter("m/J","naut-mile/kWh"),"km/kWh":p.default.swiftConverter("m/J","km/kWh"),K:function(e){return e},celsius:p.default.swiftConverter("tempK","tempC"),fahrenheit:p.default.swiftConverter("tempK","tempF"),m:function(e){return e},mm:function(e){return e*1e3},fathom:p.default.swiftConverter("m","fathom"),feet:p.default.swiftConverter("m","foot"),inch:p.default.swiftConverter("m","in"),km:p.default.swiftConverter("m","km"),nm:p.default.swiftConverter("m","nmi"),mi:p.default.swiftConverter("m","mi"),V:function(e){return e},mV:function(e){return e*1e3},A:function(e){return e},mA:function(e){return e*1e3},C:function(e){return e},Ah:p.default.swiftConverter("C","Ah"),W:function(e){return e},mW:function(e){return e*1e3},J:function(e){return e},kWh:p.default.swiftConverter("J","kWh"),ohm:function(e){return e},kiloohm:function(e){return e/1e3},Pa:function(e){return e},bar:p.default.swiftConverter("Pa","bar"),psi:p.default.swiftConverter("Pa","psi"),mmHg:p.default.swiftConverter("Pa","mmHg"),inHg:p.default.swiftConverter("Pa","inHg"),hPa:p.default.swiftConverter("Pa","hPa"),kPa:p.default.swiftConverter("Pa","kPa"),mbar:p.default.swiftConverter("Pa","millibar"),"kg/m3":function(e){return e},s:function(e){return e},Minutes:p.default.swiftConverter("s","minutes"),Hours:p.default.swiftConverter("s","hours"),Days:p.default.swiftConverter("s","days"),"D HH:MM:SS":function(e){e=parseInt(e,10);let i=e<0;e=Math.abs(e);let n=Math.floor(e/86400),a=Math.floor(e%86400/3600),d=Math.floor(e%3600/60),g=Math.floor(e%60),y=i?"-":"";return n>0?y+=n+"d "+a.toString()+":"+d.toString().padStart(2,"0")+":"+g.toString().padStart(2,"0"):y+=a.toString()+":"+d.toString().padStart(2,"0")+":"+g.toString().padStart(2,"0"),y},"rad/s":function(e){return e},"deg/s":p.default.swiftConverter("rad/s","deg/s"),"deg/min":p.default.swiftConverter("rad/s","deg/min"),rpm:function(e){return e*60},Hz:function(e){return e},KHz:function(e){return e/1e3},MHz:function(e){return e/1e6},GHz:function(e){return e/1e9},rad:function(e){return e},deg:p.default.swiftConverter("rad","deg"),grad:p.default.swiftConverter("rad","grad"),percent:function(e){return e*100},percentraw:function(e){return e},ratio:function(e){return e},pdeg:function(e){return e},latitudeMin:function(e){let i=Math.trunc(e),n="N";e<0&&(n="S",i=i*-1);let a=e%1*60;return n=="S"&&(a=a*-1),i+"\xB0 "+a.toFixed(2).padStart(5,"0")+"' "+n},latitudeSec:function(e){let i=Math.trunc(e),n="N";e<0&&(n="S",i=i*-1);let a=e%1*60;n=="S"&&(a=a*-1);let d=Math.trunc(a),g=a%1*60;return i+"\xB0 "+d+"' "+g.toFixed(2).padStart(5,"0")+'" '+n},longitudeMin:function(e){let i=Math.trunc(e),n="E";e<0&&(n="W",i=i*-1);let a=e%1*60;return n=="W"&&(a=a*-1),i+"\xB0 "+a.toFixed(2).padStart(5,"0")+"' "+n},longitudeSec:function(e){let i=Math.trunc(e),n="E";e<0&&(n="W",i=i*-1);let a=e%1*60;n=="W"&&(a=a*-1);let d=Math.trunc(a),g=a%1*60;return i+"\xB0 "+d+"' "+g.toFixed(2).padStart(5,"0")+'" '+n}};convertToUnit(e,i){if(!(e in this.unitConversionFunctions)||i===null)return null;let n=+i;return this.unitConversionFunctions[e](n)}getDefaults(){return this._defaultUnits}getConversions(){return this._conversionList}getConversionsForPath(e){let i=this.data.getPathUnitType(e),n="unitless",a="unitless";if(i===null||i==="RFC 3339 (UTC)")return{base:n,conversions:this._conversionList};{let d=this._conversionList.filter(g=>g.group=="Position"&&(e.includes("position.latitude")||e.includes("position.longitude"))?!0:g.units.find(se=>se.measure==i)?(a=this._defaultUnits[g.group],!0):!1);return d.length>0?{base:a,conversions:d}:(console.log("[Units Service] Unit type: "+i+", found for path: "+e+`
|
|
2
|
-
but Kip does not support it.`),{base:n,conversions:this._conversionList})}}ngOnDestroy(){this._defaultUnitsSub?.unsubscribe()}static \u0275fac=function(i){return new(i||c)};static \u0275prov=kt({token:c,factory:c.\u0275fac})}return c})();var ur=["tooltip"],Ci=20;var ki=new K("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let c=f(ee);return()=>Me(c,{scrollThrottle:Ci})}}),Mi=new K("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var wi="tooltip-panel",pr={passive:!0},hr=8,fr=8,gr=24,_r=200,yr=(()=>{class c{_elementRef=f(j);_ngZone=f(St);_platform=f(Vt);_ariaDescriber=f(Jt);_focusMonitor=f(Kt);_dir=f(we);_injector=f(ee);_viewContainerRef=f(xt);_mediaMatcher=f(Bt);_document=f(Tt);_renderer=f(he);_animationsDisabled=ne();_defaultOptions=f(Mi,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Ti;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Xe(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Xe(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ye(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ye(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new V;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=hr}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(k(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(i=>i()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(i);this._detach(),this._portal=this._portal||new Qt(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=n.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(k(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let d=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&d._origin instanceof j)return this._overlayRef;this._detach()}let i=this._injector.get(Zt).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${wi}`,a=ei(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i).withPopoverLocation("global");return a.positionChanges.pipe(k(this._destroyed)).subscribe(d=>{this._updateCurrentPositionClass(d.connectionPair),this._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=ii(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(ki)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(k(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(k(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(k(this._destroyed)).subscribe(d=>{d.preventDefault(),d.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(k(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,n=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset($($({},n.main),a.main)),this._addOffset($($({},n.fallback),a.fallback))])}_addOffset(e){let i=fr,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=n?-i:i:e.originX==="end"&&(e.offsetX=n?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,n;i=="above"||i=="below"?n={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?n={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:a,y:d}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:a,originY:d}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,n;i=="above"?n={overlayX:"center",overlayY:"bottom"}:i=="below"?n={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:a,y:d}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:a,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ue(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:n,originY:a}=e,d;if(i==="center"?this._dir&&this._dir.value==="rtl"?d=n==="end"?"left":"right":d=n==="start"?"left":"right":d=i==="bottom"&&a==="top"?"above":"below",d!==this._currentPosition){let g=this._overlayRef;if(g){let y=`${this._cssClassPrefix}-${wi}-`;g.removePanelClass(y+this._currentPosition),g.addPanelClass(y+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let i=e.targetTouches?.[0],n=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??a)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let i=e.relatedTarget;(!i||!this._overlayRef?.overlayElement.contains(i))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,i){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,i,pr))}_isTouchPlatform(){return this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!this._defaultOptions?.detectHoverCapability&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,n=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!i.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Ue({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!Q(e):!0;static \u0275fac=function(i){return new(i||c)};static \u0275dir=ze({type:c,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,n){i&2&&J("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return c})(),Ti=(()=>{class c{_changeDetectorRef=f(be);_elementRef=f(j);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=ne();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new V;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>gr&&e.width>=_r}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,n=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:n),i.classList.add(e?n:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let d=getComputedStyle(i);(d.getPropertyValue("animation-duration")==="0s"||d.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||c)};static \u0275cmp=fe({type:c,selectors:[["mat-tooltip-component"]],viewQuery:function(i,n){if(i&1&&ye(ur,7),i&2){let a;R(a=F())&&(n._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,n){i&1&&G("mouseleave",function(d){return n._handleMouseLeave(d)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,n){if(i&1){let a=te();Be(0,"div",1,0),Pt("animationend",function(g){return N(a),q(n._handleAnimationEnd(g))}),Be(2,"div",2),ie(3),At()()}i&2&&(ve(n.tooltipClass),J("mdc-tooltip--multiline",n._isMultiline),A(3),re(n.message))},styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}
|
|
3
|
-
`],encapsulation:2,changeDetection:0})}return c})();var hn=(()=>{class c{static \u0275fac=function(i){return new(i||c)};static \u0275mod=ge({type:c});static \u0275inj=ue({imports:[Wt,Te,Ce,ke]})}return c})();var Cr=["trigger"],kr=["panel"],Mr=[[["mat-select-trigger"]],"*"],Tr=["mat-select-trigger","*"];function Sr(c,S){if(c&1&&(P(0,"span",4),ie(1),B()),c&2){let e=X();A(),re(e.placeholder)}}function Or(c,S){c&1&&Ge(0)}function Dr(c,S){if(c&1&&(P(0,"span",11),ie(1),B()),c&2){let e=X(2);A(),re(e.triggerValue)}}function xr(c,S){if(c&1&&(P(0,"span",5),He(1,Or,1,0)(2,Dr,2,1,"span",11),B()),c&2){let e=X();A(),Ve(e.customTrigger?1:2)}}function Ir(c,S){if(c&1){let e=te();P(0,"div",12,1),G("keydown",function(n){N(e);let a=X();return q(a._handleKeydown(n))}),Ge(2,1),B()}if(c&2){let e=X();ve(Nt("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),J("mat-select-panel-animations-enabled",!e._animationsDisabled),Ke("ngClass",e.panelClass),_e("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Er=new K("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let c=f(ee);return()=>Me(c)}}),Ar=new K("MAT_SELECT_CONFIG"),Pr=new K("MatSelectTrigger"),rt=class{source;value;constructor(S,e){this.source=S,this.value=e}},Yn=(()=>{class c{_viewportRuler=f($t);_changeDetectorRef=f(be);_elementRef=f(j);_dir=f(we,{optional:!0});_idGenerator=f(Yt);_renderer=f(he);_parentFormField=f(ci,{optional:!0});ngControl=f(si,{self:!0,optional:!0});_liveAnnouncer=f(Gt);_defaultOptions=f(Ar,{optional:!0});_animationsDisabled=ne();_popoverLocation;_initialized=new V;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let n=this.panel.nativeElement,a=gi(e,this.options,this.optionGroups),d=i._getHostElement();e===0&&a===1?n.scrollTop=0:n.scrollTop=_i(d.offsetTop,d.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new rt(this,e)}_scrollStrategyFactory=f(Er);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new V;_errorStateTracker;stateChanges=new V;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Ot(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ni.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=wt(()=>{let e=this.options;return e?e.changes.pipe(Ne(e),qe(()=>me(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(qe(()=>this.optionSelectionChanges))});openedChange=new pe;_openedStream=this.openedChange.pipe(Le(e=>e),Fe(()=>{}));_closedStream=this.openedChange.pipe(Le(e=>!e),Fe(()=>{}));selectionChange=new pe;valueChange=new pe;constructor(){let e=f(mi),i=f(oi,{optional:!0}),n=f(ai,{optional:!0}),a=f(new Ut("tabindex"),{optional:!0}),d=f(ti,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new ui(e,this.ngControl,n,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=d?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new yi(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(k(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(k(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ne(null),k(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Ct(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&je(this._trackedModal,"aria-owns",i),Xt(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;je(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{i(),clearTimeout(n),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),n=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,n=i===40||i===38||i===37||i===39,a=i===13||i===32,d=this._keyManager;if(!d.isTyping()&&a&&!Q(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let g=this.selected;d.onKeydown(e);let y=this.selected;y&&g!==y&&this._liveAnnouncer.announce(y.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,n=e.keyCode,a=n===40||n===38,d=i.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!d&&(n===13||n===32)&&i.activeItem&&!Q(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!d&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let g=this.options.some(y=>!y.disabled&&!y.selected);this.options.forEach(y=>{y.disabled||(g?y.select():y.deselect())})}else{let g=i.activeItemIndex;i.onKeydown(e),this._multiple&&a&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==g&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Q(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return(n.value!=null||this.canSelectNullableOptions)&&this._compareWith(n.value,e)}catch(a){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Je?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new jt(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=me(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(k(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),me(...this.options.map(i=>i._stateChanges)).pipe(k(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let n=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,n)=>this.sortComparator?this.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(n=>n.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){e=i;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}onContainerClick(e){let i=Ht(e);i&&(i.tagName==="MAT-OPTION"||i.classList.contains("cdk-overlay-backdrop")||i.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||c)};static \u0275cmp=fe({type:c,selectors:[["mat-select"]],contentQueries:function(i,n,a){if(i&1&&Ft(a,Pr,5)(a,fi,5)(a,hi,5),i&2){let d;R(d=F())&&(n.customTrigger=d.first),R(d=F())&&(n.options=d),R(d=F())&&(n.optionGroups=d)}},viewQuery:function(i,n){if(i&1&&ye(Cr,5)(kr,5)(Qe,5),i&2){let a;R(a=F())&&(n.trigger=a.first),R(a=F())&&(n.panel=a.first),R(a=F())&&(n._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(i,n){i&1&&G("keydown",function(d){return n._handleKeydown(d)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),i&2&&(_e("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),J("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple)("mat-select-open",n.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",U],disableRipple:[2,"disableRipple","disableRipple",U],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:We(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U],placeholder:"placeholder",required:[2,"required","required",U],multiple:[2,"multiple","multiple",U],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",U],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",We],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",U]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[qt([{provide:li,useExisting:c},{provide:pi,useExisting:c}]),Dt],ngContentSelectors:Tr,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,n){if(i&1){let a=te();Rt(Mr),P(0,"div",2,0),G("click",function(){return N(a),q(n.open())}),P(3,"div",3),He(4,Sr,2,1,"span",4)(5,xr,3,1,"span",5),B(),P(6,"div",6)(7,"div",7),Mt(),P(8,"svg",8),Et(9,"path",9),B()()()(),It(10,Ir,3,10,"ng-template",10),G("detach",function(){return N(a),q(n.close())})("backdropClick",function(){return N(a),q(n.close())})("overlayKeydown",function(g){return N(a),q(n._handleOverlayKeydown(g))})}if(i&2){let a=Lt(1);A(3),_e("id",n._valueId),A(),Ve(n.empty?4:5),A(6),Ke("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",n._popoverLocation)}},dependencies:[Je,Qe,zt],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
|
|
4
|
-
`],encapsulation:2,changeDetection:0})}return c})();var jn=(()=>{class c{static \u0275fac=function(i){return new(i||c)};static \u0275mod=ge({type:c});static \u0275inj=ue({imports:[Te,Ze,Ce,ke,di,Ze]})}return c})();export{Yn as a,jn as b,qr as c,Mi as d,yr as e,hn as f};
|
package/public/chunk-FNF7M3AE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as X}from"./chunk-LQDSU4WS.js";import{a as B,b as q,c as U,d as J,e as K}from"./chunk-CHGXAEKT.js";import{c as z,e as O}from"./chunk-JB4YVVNW.js";import{a as G,b as W}from"./chunk-CEB42O2C.js";import{$b as A,Aa as H,Ac as M,Bb as C,Cb as b,Db as d,Eb as a,Ed as D,Fa as T,Fb as m,Ga as S,Gb as k,Nb as x,Pb as u,Pe as N,Rb as l,Re as Q,Se as j,Wa as s,ac as $,ce as P,ec as p,fc as F,gb as V,gc as v,ge as L,je as R,mb as I,pa as w,ua as c,va as _,xb as f,yb as h,z as E}from"./chunk-A6DQJFP4.js";var Y=(t,o)=>o.title,Z=(t,o)=>o.file;function ee(t,o){t&1&&p(0," Loading... ")}function te(t,o){t&1&&p(0," Table of Content ")}function ne(t,o){t&1&&(a(0,"button",12),p(1,"Error loading menu"),m())}function ie(t,o){t&1&&(a(0,"button",12),p(1,"No help entries"),m())}function oe(t,o){if(t&1){let e=x();a(0,"button",15),u("click",function(){let i=c(e).$implicit,r=l(5);return _(r.selectFile(i.file))}),p(1),m()}if(t&2){let e=o.$implicit,n=l(5);d("disabled",n.selectedFile()===e.file),s(),v(" ",e.title," ")}}function ae(t,o){if(t&1&&(a(0,"button",14),p(1),m(),C(2,oe,2,2,"button",13,Z)),t&2){let e=l().$implicit;s(),F(e.title),s(),b(e.items)}}function le(t,o){if(t&1){let e=x();a(0,"button",15),u("click",function(){c(e);let i=l().$implicit,r=l(3);return _(r.selectFile(i.file))}),p(1),m()}if(t&2){let e=l().$implicit,n=l(3);d("disabled",n.selectedFile()===e.file),s(),v(" ",e.title," ")}}function re(t,o){if(t&1&&f(0,ae,4,1)(1,le,2,2,"button",13),t&2){let e=o.$implicit,n=l(3);h(n.isGroup(e)?0:1)}}function me(t,o){if(t&1&&C(0,re,2,1,null,null,Y),t&2){let e=l(2);b(e.helpMenuItems())}}function se(t,o){if(t&1){let e=x();a(0,"button",15),u("click",function(){let i=c(e).$implicit,r=l(5);return _(r.selectFile(i.file))}),p(1),m()}if(t&2){let e=o.$implicit,n=l(5);d("disabled",n.selectedFile()===e.file),s(),v(" ",e.title," ")}}function pe(t,o){if(t&1&&(a(0,"button",16),p(1),m(),a(2,"mat-menu",17,1),C(4,se,2,2,"button",13,Z),m()),t&2){let e=A(3),n=l().$implicit;d("matMenuTriggerFor",e),s(),F(n.title),s(),d("overlapTrigger",!1),s(2),b(n.items)}}function de(t,o){if(t&1){let e=x();a(0,"button",15),u("click",function(){c(e);let i=l().$implicit,r=l(3);return _(r.selectFile(i.file))}),p(1),m()}if(t&2){let e=l().$implicit,n=l(3);d("disabled",n.selectedFile()===e.file),s(),v(" ",e.title," ")}}function ce(t,o){if(t&1&&f(0,pe,6,3)(1,de,2,2,"button",13),t&2){let e=o.$implicit,n=l(3);h(n.isGroup(e)?0:1)}}function _e(t,o){if(t&1&&C(0,ce,2,1,null,null,Y),t&2){let e=l(2);b(e.helpMenuItems())}}function ue(t,o){if(t&1&&f(0,ne,2,0,"button",12)(1,ie,2,0,"button",12)(2,me,2,0)(3,_e,2,0),t&2){let e=l();h(e.hasError()?0:!e.isLoading()&&e.helpFiles().length===0?1:e.isMobileMenuMode()?2:3)}}function ge(t,o){t&1&&(a(0,"div",11),p(1,"Unable to load help content."),m())}function fe(t,o){t&1&&(a(0,"div",11),p(1,"Loading help..."),m())}function he(t,o){if(t&1&&(a(0,"div",11),k(1,"markdown",18),m()),t&2){let e=l();s(),d("src",`assets/help-docs/${e.selectedFile()}`)}}var $e=(()=>{class t{pageTitle="Help";_router=w(O);_route=w(z);_destroyRef=w(H);_isMobileMenuMode=T(this.detectMobileMenuMode());_selectedPageFromRoute=N(this._route.paramMap.pipe(E(e=>e.get("page"))),{initialValue:null});constructor(){let e=this.getMobileMenuMediaQuery();if(e===null)return;this._isMobileMenuMode.set(e.matches);let n=i=>{this._isMobileMenuMode.set(i.matches)};e.addEventListener("change",n),this._destroyRef.onDestroy(()=>{e.removeEventListener("change",n)})}_helpMenuRes=D(()=>"assets/help-docs/menu.json");helpMenuItems=M(()=>this._helpMenuRes.hasValue()?this.normalizeMenu(this._helpMenuRes.value()??[]):[]);helpFiles=M(()=>{let e=this.helpMenuItems();return e.length===0?[]:e.flatMap(n=>this.isGroup(n)?n.items:[n])});selectedFile=T("");_syncEffect=S(()=>{let e=this.helpFiles(),n=this._selectedPageFromRoute();if(e.length===0)return;let i=this.resolveSelectedFile(n,e);this.selectedFile()!==i&&this.selectedFile.set(i)});hasError=M(()=>this._helpMenuRes.error()!=null);isLoading=M(()=>this._helpMenuRes.isLoading());isMobileMenuMode=M(()=>this._isMobileMenuMode());isGroup(e){return"items"in e}selectFile(e){this.selectedFile.set(e),this._router.navigate(["/help",this.toPageSegment(e)])}backPage(){this._router.navigate(["/settings"])}closePage(){this._router.navigate(["/dashboard"])}resolveSelectedFile(e,n){if(e){let i=e.endsWith(".md")?e:`${e}.md`,r=n.find(g=>g.file===i);if(r)return r.file}return n[0].file}toPageSegment(e){return e.endsWith(".md")?e.slice(0,-3):e}normalizeMenu(e){let n=[];return e.forEach(i=>{let r=(i.title??"").trim();if(Array.isArray(i.items)){let g=i.items.filter(this.isValidLeaf).filter(y=>y.file.endsWith(".md")).map(y=>({title:y.title.trim(),file:y.file.trim()}));if(!r||g.length===0)return;n.push({title:r,items:g});return}this.isValidLeaf(i)&&i.file.endsWith(".md")&&n.push({title:i.title.trim(),file:i.file.trim()})}),n}isValidLeaf(e){return typeof e.title=="string"&&e.title.trim().length>0&&typeof e.file=="string"&&e.file.trim().length>0}detectMobileMenuMode(){return this.getMobileMenuMediaQuery()?.matches??!1}getMobileMenuMediaQuery(){return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia("(max-width: 900px), (hover: none) and (pointer: coarse)")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=V({type:t,selectors:[["app-help"]],decls:22,vars:9,consts:[["helpMenu","matMenu"],["childMenu","matMenu"],[1,"fullpage-header"],[1,"page-icon"],["svgIcon","help-center","aria-hidden","false"],[1,"page-title"],["mat-flat-button","",3,"matMenuTriggerFor","disabled"],[1,"help-menu-panel"],["matMenuContent",""],[1,"dialog-close-icon"],["mat-icon-button","",3,"click"],[1,"markdown-content"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"disabled"],["mat-menu-item","","disabled","",1,"help-menu-group-title"],["mat-menu-item","",3,"click","disabled"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"help-menu-panel",3,"overlapTrigger"],["clipboard","",3,"src"]],template:function(n,i){if(n&1){let r=x();a(0,"div",2)(1,"div",3),k(2,"mat-icon",4),a(3,"h6",5),p(4),m()(),a(5,"button",6),f(6,ee,1,0)(7,te,1,0),m(),a(8,"mat-menu",7,0),I(10,ue,4,1,"ng-template",8),m(),a(11,"div",9)(12,"button",10),u("click",function(){return c(r),_(i.backPage())}),a(13,"mat-icon"),p(14,"arrow_back_ios"),m()(),a(15,"button",10),u("click",function(){return c(r),_(i.closePage())}),a(16,"mat-icon"),p(17,"close"),m()()()(),k(18,"mat-divider"),f(19,ge,2,0,"div",11)(20,fe,2,0,"div",11)(21,he,2,1,"div",11)}if(n&2){let r=A(9);s(2),$("width",24,"px")("height",24,"px"),s(2),F(i.pageTitle),s(),d("matMenuTriggerFor",r)("disabled",i.isLoading()||i.hasError()||i.helpFiles().length===0),s(),h(i.isLoading()?6:7),s(13),h(i.hasError()?19:i.isLoading()&&i.helpFiles().length===0?20:i.selectedFile()?21:-1)}},dependencies:[X,R,L,P,K,U,B,q,J,W,G,j,Q],styles:[".fullpage-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.page-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;margin-left:15px}.page-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 0 13px 5px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}.dialog-close-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;padding-right:15px}.help-menu-group-title[_ngcontent-%COMP%]{font-weight:600;opacity:.9} .mat-mdc-menu-panel.help-menu-panel{border:1px solid var(--mat-sys-outline);background:var(--mat-sys-surface-container-high)} .markdown-content{display:block;height:calc(100% - 75px);width:100%;overflow-x:scroll;padding:25px;font-size:1.1rem;line-height:1.7;background:var(--mat-sys-surface-container, #fff);color:var(--mat-sys-on-surface, #222);border-radius:12px;box-shadow:0 2px 8px #00000012;max-width:900px;margin:0 auto} .markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4{color:var(--mat-sys-primary, #1976d2);margin-top:1.5em;margin-bottom:.5em;font-weight:600} .markdown-content pre{padding:1em;overflow-x:auto} .markdown-content table{border:1px solid var(--mat-sys-on-background);border-collapse:collapse;width:100%;margin:1em 0} .markdown-content table td{border:1px solid var(--mat-sys-on-background);padding:8px;text-align:left} .markdown-content th{color:var(--mat-sys-primary, #1976d2);font-weight:600;padding:.5em 1em;border:2px solid var(--mat-sys-primary, #1976d2);text-align:left} .markdown-content table tr:nth-child(2n){background-color:var(--mat-sys-surface-container-high)} .markdown-content a{color:var(--mat-sys-primary, #1976d2);text-decoration:underline} .markdown-content a:hover{text-decoration:none;color:var(--mat-sys-secondary, #005fa3)} .markdown-content ul, .markdown-content ol{margin-left:2em;margin-bottom:1em} .markdown-content blockquote{border-left:4px solid var(--mat-sys-tertiary);background:var(--mat-sys-on-tertiary-fixed-variant);padding:.5em 1em;color:var(--mat-sys-on-surface-variant, #555);margin:1em 0}"]})}return t})();export{$e as AppHelpComponent};
|
package/public/chunk-JB4YVVNW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$a as zr,A as Ut,Aa as xt,B as j,Ba as Pr,C as Pt,Ca as pe,Cc as Xr,D as Er,Da as _r,E as We,Ea as Ye,Ec as en,Fa as Pe,Fd as on,Gb as Yr,Ha as H,Ia as Ze,Ja as jt,Jc as Ft,K as Q,Ka as Lr,La as xr,Lc as et,M as Qe,N as Ue,Oa as jr,Oc as tn,Pb as Zr,Q as fe,Qc as rn,Rc as ve,Sc as nn,Ta as kr,Tc as me,Uc as qt,V as Ar,W as K,X as _t,Xa as $r,Ya as kt,a as h,ab as ge,b as N,ba as Tr,bb as Fr,ca as F,da as Ke,db as qr,ea as q,eb as Br,f as y,fb as Je,fd as Bt,g as Cr,gb as Hr,ha as w,hb as Vr,i as Sr,ia as Mr,ib as Xe,j as wr,k as ie,ka as S,la as Dr,m as O,ma as Nr,na as E,oa as Y,ob as Gr,pa as l,q as U,qa as Or,qb as Wr,r as A,rb as $t,s as g,sa as B,sb as zt,t as br,ta as T,tb as Qr,u as Ot,v as Ir,vb as Kr,ya as Lt,z as I,za as Ur,zc as Jr}from"./chunk-A6DQJFP4.js";var p="primary",Be=Symbol("RouteTitle"),Qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Qt(t)}function Ht(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function gn(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return Ht(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let s={};return!Ht(o,t.slice(0,o.length),s)||!Ht(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function st(t){return new Promise((n,e)=>{t.pipe(K()).subscribe({next:r=>n(r),error:r=>e(r)})})}function vi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?Kt(t):void 0,r=n?Kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!vn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function vn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function mi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Ot(t)?t:Wr(t)?A(Promise.resolve(t)):g(t)}function mn(t){return Ot(t)?st(t):Promise.resolve(t)}var yi={exact:Rn,subset:Cn},yn={exact:Ri,subset:Ci,ignored:()=>!0};function sn(t,n,e){return yi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ri(t,n){return k(t,n)}function Rn(t,n,e){if(!oe(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Rn(t.children[r],n.children[r],e))return!1;return!0}function Ci(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!oe(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Sn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return bi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return bn(this)}};function Si(t,n){return oe(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function wi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new G,providedIn:"root"})}return t})(),G=class{parse(n){let e=new Zt(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Ai(n.queryParams),i=typeof n.fragment=="string"?`#${Ii(n.fragment)}`:"";return`${e}${r}${i}`}},bi=new G;function it(t){return t.segments.map(n=>bn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?_e(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=wi(t,(r,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return wn(t).replace(/%3B/gi,";")}function Ii(t){return encodeURI(t)}function Yt(t){return wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function an(t){return ot(t.replace(/\+/g,"%20"))}function bn(t){return`${Yt(t.path)}${Ei(t.parameters)}`}function Ei(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join("")}function Ai(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ti=/^[^\/()?;#]+/;function Vt(t){let n=t.match(Ti);return n?n[0]:""}var Mi=/^[^\/()?;=#]+/;function Di(t){let n=t.match(Mi);return n?n[0]:""}var Ni=/^[^=?&#]+/;function Oi(t){let n=t.match(Ni);return n?n[0]:""}var Ui=/^[^&#]+/;function Pi(t){let n=t.match(Ui);return n?n[0]:""}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new v(e,r)),i}parseSegment(){let n=Vt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Z(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Di(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Vt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Pi(this.remaining);a&&(r=a,this.capture(r))}let i=an(e),o=an(r);if(n.hasOwnProperty(i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Vt(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let s=this.parseChildren(e+1);r[a??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function In(t){return t.segments.length>0?new v([],{[p]:t}):t}function En(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=En(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return _i(e)}function _i(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof x}function An(t,n,e=null,r=null,i=new G){let o=Tn(t);return Mn(o,n,e,r,i)}function Tn(t){let n;function e(o){let a={};for(let c of o.children){let u=e(c);a[c.outlet]=u}let s=new v(o.url,a);return o===t&&(n=s),s}let r=e(t.root),i=In(r);return n??i}function Mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let a=Li(n);if(a.toRoot())return Gt(o,o,new v([],{}),e,r,i);let s=xi(a,o,t),c=s.processChildren?xe(s.segmentGroup,s.index,a.commands):Nn(s.segmentGroup,s.index,a.commands);return Gt(o,s.segmentGroup,c,e,r,i)}function at(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function cn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(f=>cn(u,f,o)):cn(u,d,o);let s;t===n?s=e:s=Dn(t,n,e);let c=In(En(s));return new x(c,a,i)}function Dn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Dn(o,n,e)}),new v(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&at(r[0]))throw new w(4003,!1);let i=r.find(ke);if(i&&i!==mi(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Li(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([c,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?n++:s!=""&&i.push(s))}),i):[...i,o]},[]);return new ct(e,n,r)}var Re=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function xi(t,n,e){if(t.isAbsolute)return new Re(n,!0,0);if(!e)return new Re(n,!1,NaN);if(e.parent===null)return new Re(e,!0,0);let r=at(t.commands[0])?0:1,i=e.segments.length-1+r;return ji(e,i,t.numberOfDoubleDots)}function ji(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Re(r,!1,i-o)}function ki(t){return ke(t[0])?t[0].outlets:{[p]:t}}function Nn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return xe(t,n,e);let r=$i(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),xe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?xe(t,0,i):Jt(t,n,e)}function xe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=ki(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=xe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Nn(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new v(t.segments,i)}}function $i(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],s=e[r];if(ke(s))break;let c=`${s}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ln(c,u,a))return o;r+=2}else{if(!ln(c,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Jt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let c=zi(o.outlets);return new v(r,c)}if(i===0&&at(e[0])){let c=t.segments[n];r.push(new Z(c.path,un(e[0]))),i++;continue}let a=ke(o)?o.outlets[p]:`${o}`,s=i<e.length-1?e[i+1]:null;a&&s&&at(s)?(r.push(new Z(a,un(s))),i+=2):(r.push(new Z(a,{})),i++)}return new v(r,{})}function zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Jt(new v([],{}),0,r))}),n}function un(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ln(t,n,e){return t==e.path&&k(n,e.parameters)}var Ce="imperative",C=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(C||{}),D=class{id;url;constructor(n,e){this.id=n,this.url=e}},X=class extends D{type=C.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},_=class extends D{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),P=class extends D{reason;code;type=C.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function On(t){return t instanceof P&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var $=class extends D{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ce=class extends D{error;target;type=C.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},be=class extends D{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends D{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends D{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ht=class extends D{urlAfterRedirects;state;type=C.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends D{urlAfterRedirects;state;type=C.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{routerEvent;position;anchor;scrollBehavior;type=C.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ee=class{},Ae=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Fi(t){return!(t instanceof Ee)&&!(t instanceof Ae)}var Rt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new he(this.rootInjector)}},he=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(B))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Xt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Xt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Xt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Xt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function Un(t,n){let e=qi(t,n),r=new O([new Z("",{})]),i=new O({}),o=new O({}),a=new O({}),s=new O(""),c=new z(r,i,a,s,o,p,t,e.root);return c.snapshot=e.root,new $e(new M(c,[]),e)}function qi(t,n){let e={},r={},i={},a=new se([],e,i,"",r,p,t,null,{},n);return new ze("",new M(a,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,a,s,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[Be]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&_n(i)&&(r.resolve[Be]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be]}constructor(n,e,r,i,o,a,s,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return Pn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Wt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),vi(n.url,e.url)||t.urlSubject.next(e.url),k(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=k(t.params,n.params)&&Si(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Ln=new E(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new pe;deactivateEvents=new pe;attachEvents=new pe;detachEvents=new pe;routerOutletData=en();parentContexts=l(he);location=l(qr);changeDetector=l(Ft);inputBinder=l(He,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(e,s,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),rr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===z?this.route:n===he?this.childContexts:n===Ln?this.outletData:this.parent.get(n,e)}},He=new E(""),lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ut([r.queryParams,r.params,r.data]).pipe(F(([o,a,s],c)=>(s=h(h(h({},o),a),s),c===0?g(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=tn(r.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?N(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Bi(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Hi(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Fe(t,s)),a}}let r=Vi(n.value),i=n.children.map(o=>Fe(t,o));return new M(r,i)}}function Hi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function Vi(t){return new z(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function Gi(t){return kn(t)&&J(t.url)}function kn(t){return!!t&&t[xn]}var nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Wt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),s=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Wt(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Wt(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function De(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Nr(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(a=>{Ki(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>je(s,e.getContext(a),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let c=Yi(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Le(t,n,s?s.children:null,r,i):Le(t,n,e,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Se(s.outlet.component,a))}else a&&je(n,s,i),i.canActivateChecks.push(new bt(r)),o.component?Le(t,null,s?s.children:null,r,i):Le(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return T(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!k(t.queryParams,n.queryParams);default:return!tr(t,n)}}function je(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?je(a,n.children.getContext(o),e):je(a,null,e):je(a,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se(n.outlet.component,i)):e.canDeactivateChecks.push(new Se(null,i)):e.canDeactivateChecks.push(new Se(null,i))}function Ve(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Ve(t.canLoad)}function Xi(t){return t&&Ve(t.canActivate)}function eo(t){return t&&Ve(t.canActivateChild)}function to(t){return t&&Ve(t.canDeactivate)}function ro(t){return t&&Ve(t.canMatch)}function $n(t){return t instanceof Ir||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Me(){return F(t=>Ut(t.map(n=>n.pipe(fe(1),Tr(rt)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||no(e))return e}return!0}),Q(n=>n!==rt),fe(1)))}function no(t){return J(t)||t instanceof Te}function zn(t){return t.aborted?g(void 0).pipe(fe(1)):new wr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Fn(t){return Ke(zn(t))}function io(t){return j(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(N(h({},n),{guardsResult:!0})):oo(o,e,r).pipe(j(a=>a&&Zi(a)?so(e,i,t):g(a)),I(a=>N(h({},n),{guardsResult:a})))})}function oo(t,n,e){return A(t).pipe(j(r=>ho(r.component,r.route,e,n)),K(r=>r!==!0,!0))}function so(t,n,e){return A(n).pipe(Ue(r=>Er(co(r.route.parent,e),ao(r.route,e),lo(t,r.path),uo(t,r.route))),K(r=>r!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function co(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function uo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>We(()=>{let o=n._environmentInjector,a=De(i,o),s=Xi(a)?a.canActivate(n,t):T(o,()=>a(n,t));return ue(s).pipe(K())}));return g(r).pipe(Me())}function lo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Qi(o)).filter(o=>o!==null).map(o=>We(()=>{let a=o.guards.map(s=>{let c=o.node._environmentInjector,u=De(s,c),d=eo(u)?u.canActivateChild(e,t):T(c,()=>u(e,t));return ue(d).pipe(K())});return g(a).pipe(Me())}));return g(i).pipe(Me())}function ho(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(a=>{let s=n._environmentInjector,c=De(a,s),u=to(c)?c.canDeactivate(t,n,e,r):T(s,()=>c(t,n,e,r));return ue(u).pipe(K())});return g(o).pipe(Me())}function fo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let a=o.map(s=>{let c=De(s,t),u=Ji(c)?c.canLoad(n,e):T(t,()=>c(n,e)),d=ue(u);return i?d.pipe(Fn(i)):d});return g(a).pipe(Me(),qn(r))}function qn(t){return Sr(q(n=>{if(typeof n!="boolean")throw wt(t,n)}),I(n=>n===!0))}function po(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let a=o.map(s=>{let c=De(s,t),u=ro(c)?c.canMatch(n,e):T(t,()=>c(n,e));return ue(u).pipe(Fn(i))});return g(a).pipe(Me(),qn(r))}var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function go(t){throw new w(4e3,!1)}function vo(t){throw jn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return y(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw go(`${n.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(n,e,r,i,o){return y(this,null,function*(){let a=yield mo(e,i,o);if(a instanceof x)throw new qe(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new qe(s);return s})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new x(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);r[i]=e[s]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,r,i)}),new v(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function mo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:a,url:s,outlet:c,params:u,data:d,title:f,paramMap:R,queryParamMap:m}=n;return st(ue(T(e,()=>r({params:u,data:d,queryParams:i,fragment:o,routeConfig:a,url:s,outlet:c,title:f,paramMap:R,queryParamMap:m}))))}function yo(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ro(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(t,n,e,r,i,o){let a=Bn(t,n,e);return a.matched?(r=yo(n,r),po(r,n,e,i,o).pipe(I(s=>s===!0?a:h({},or)))):g(a)}function Bn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||gn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([s,c])=>{o[s]=c.path});let a=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function hn(t,n,e,r){return e.length>0&&bo(t,e,r)?{segmentGroup:new v(n,wo(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Io(t,e,r)?{segmentGroup:new v(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[L(o)]){let a=new v([],{});i[L(o)]=a}return h(h({},r),i)}function wo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function bo(t,n,e){return e.some(r=>Et(t,n,r)&&L(r)!==p)}function Io(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Eo(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function Ao(t,n,e,r,i,o,a="emptyOnly",s){return y(this,null,function*(){return new ar(t,n,e,r,i,a,o,s).recognize()})}var To=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,a,s,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){return y(this,null,function*(){let n=hn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new M(r,e),o=new ze("",i),a=An(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return y(this,null,function*(){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof qe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof V?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return y(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof M?[a]:[]})}processChildren(n,e,r,i){return y(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let a=[];for(let c of o){let u=r.children[c],d=Ro(e,c),f=yield this.processSegmentGroup(n,d,u,c,i);a.push(...f)}let s=Hn(a);return Mo(s),s})}processSegment(n,e,r,i,o,a,s){return y(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,a,s)}catch(u){if(u instanceof V||$n(u))continue;throw u}if(Eo(r,i,o))return new sr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,s,c){return y(this,null,function*(){if(L(r)!==a&&(a===p||!Et(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,c);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,c);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,s){return y(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:f,remainingSegments:R}=Bn(e,i,o);if(!c)throw new V(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let m=new se(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(i),L(i),i.component??i._loadedComponent??null,i,fn(i),n),te=St(m,s,this.paramsInheritanceStrategy);if(m.params=Object.freeze(te.params),m.data=Object.freeze(te.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let re=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,m,n),ne=yield this.applyRedirects.lineralizeSegments(i,re);return this.processSegment(n,r,e,ne.concat(R),a,!1,s)})}matchSegmentAgainstRoute(n,e,r,i,o,a){return y(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=yield st(Co(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new V(e);n=r._injector??n;let{routes:c}=yield this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:R}=s,m=new se(f,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(r),L(r),r.component??r._loadedComponent??null,r,fn(r),n),te=St(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(te.params),m.data=Object.freeze(te.data);let{segmentGroup:re,slicedSegments:ne}=hn(e,f,R,c);if(ne.length===0&&re.hasChildren()){let pi=yield this.processChildren(u,c,re,m);return new M(m,pi)}if(c.length===0&&ne.length===0)return new M(m,[]);let Nt=L(r)===o,Oe=yield this.processSegment(u,c,re,ne,Nt?p:o,!0,m);return new M(m,Oe instanceof M?[Oe]:[])})}getChildConfig(n,e,r){return y(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield st(fo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vo(e)}return{routes:[],injector:n}})}};function Mo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function Do(t){let n=t.value.routeConfig;return n&&n.path===""}function Hn(t){let n=[],e=new Set;for(let r of t){if(!Do(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Hn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function dn(t){return t.data||{}}function fn(t){return t.resolve||{}}function No(t,n,e,r,i,o,a){return j(s=>y(null,null,function*(){let{state:c,tree:u}=yield Ao(t,n,e,r,s.extractedUrl,i,o,a);return N(h({},s),{targetSnapshot:c,urlAfterRedirects:u})}))}function Oo(t){return j(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(s=>s.route)),o=new Set;for(let s of i)if(!o.has(s))for(let c of Vn(s))o.add(c);let a=0;return A(o).pipe(Ue(s=>i.has(s)?Uo(s,e,t):(s.data=St(s,s.parent,t).resolve,g(void 0))),q(()=>a++),_t(1),j(s=>a===o.size?g(n):U))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function Uo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!_n(r)&&(i[Be]=r.title),We(()=>(t.data=St(t,t.parent,e).resolve,Po(i,t,n).pipe(I(o=>(t._resolvedData=o,t.data=h(h({},t.data),o),null)))))}function Po(t,n,e){let r=Kt(t);if(r.length===0)return g({});let i={};return A(r).pipe(j(o=>_o(t[o],n,e).pipe(K(),q(a=>{if(a instanceof Te)throw wt(new G,a);i[o]=a}))),_t(1),I(()=>i),Qe(o=>$n(o)?U:br(o)))}function _o(t,n,e){let r=n._environmentInjector,i=De(t,r),o=i.resolve?i.resolve(n,e):T(r,()=>i(n,e));return ue(o)}function pn(t){return F(n=>{let e=t(n);return e?A(e).pipe(I(()=>n)):g(n)})}var fr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Be]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Gn),providedIn:"root"})}return t})(),Gn=(()=>{class t extends fr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(on))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ee=new E("",{factory:()=>({})}),de=new E(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Jr);loadComponent(e,r){return y(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield mn(T(e,()=>r.loadComponent())),a=yield Kn(Qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield Wn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return y(this,null,function*(){let i=yield mn(T(e,()=>t.loadChildren())),o=yield Kn(Qn(i)),a;o instanceof Br||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let s,c,u=!1,d;return Array.isArray(a)?(c=a,u=!0):(s=a.create(e).injector,d=a,c=s.get(de,[],{optional:!0,self:!0}).flat()),{routes:c.map(dr),injector:s,factory:d}})}function Lo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Lo(t)?t.default:t}function Kn(t){return y(this,null,function*(){return t})}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new E(""),gr=new E("");function Yn(t,n,e){let r=t.get(gr),i=t.get(Ur);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=i.startViewTransition(()=>(o(),jo(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&T(t,()=>c({transition:s,from:n,to:e})),a}function jo(t){return new Promise(n=>{kt({read:()=>setTimeout(n)},{injector:t})})}var ko=()=>{},vr=new E(""),Mt=(()=>{class t{currentNavigation=Pe(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Pe(null);events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=l(At);environmentInjector=l(B);destroyRef=l(xt);urlSerializer=l(le);rootContexts=l(he);location=l(me);inputBindingEnabled=l(He,{optional:!0})!==null;titleStrategy=l(fr);options=l(ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Tt);createViewTransition=l(pr,{optional:!0});navigationErrorHandler=l(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ft(i)),r=i=>this.events.next(new pt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;H(()=>{this.transitions?.next(N(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(Q(r=>r!==null),F(r=>{let i=!1,o=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(F(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),U;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:c?N(h({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new $(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(!1),U;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(F(f=>(this.events.next(new X(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?U:Promise.resolve(f))),No(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),q(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=f.urlAfterRedirects,m));let R=new be(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:R,source:m,restoredState:te,extras:re}=s,ne=new X(f,this.urlSerializer.serialize(R),m,te);this.events.next(ne);let Nt=Un(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=N(h({},s),{targetSnapshot:Nt,urlAfterRedirects:R,extras:N(h({},re),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=R,Oe)),g(r)}else return this.events.next(new $(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(!1),U}),I(s=>{let c=new ut(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(c),this.currentTransition=r=N(h({},s),{guards:Wi(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),io(s=>this.events.next(s)),F(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw wt(this.urlSerializer,s.guardsResult);let c=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(c),!a())return U;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",b.GuardRejected),U;if(s.guards.canActivateChecks.length===0)return g(s);let u=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return U;let d=!1;return g(s).pipe(Oo(this.paramsInheritanceStrategy),q({next:()=>{d=!0;let f=new dt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(s,"",b.NoDataFromResolver)}}))}),pn(s=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let R=d._environmentInjector;f.push(this.configLoader.loadComponent(R,d.routeConfig).then(m=>{d.component=m}))}for(let R of d.children)f.push(...c(R));return f},u=c(s.targetSnapshot.root);return u.length===0?g(s):A(Promise.all(u).then(()=>s))}),pn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:s,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,s.root,c.root);return u?A(u).pipe(I(()=>r)):g(r)}),fe(1),I(s=>{let c=Bi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=r=s=N(h({},s),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ee),a()&&(new nr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(u=>(u.abort=ko,u)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)))}),Ke(zn(o.signal).pipe(Q(()=>!i&&!r.targetRouterState),q(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",b.Aborted)}))),q({complete:()=>{i=!0}}),Ke(this.transitionAbortWithErrorSubject.pipe(q(s=>{throw s}))),Ar(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qe(s=>{if(i=!0,this.destroyed)return r.resolve(!1),U;if(kn(s))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Gi(s)?this.events.next(new Ae(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ce(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let u=T(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Te){let{message:d,cancellationCode:f}=wt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new Ae(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),s}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return U}))}))}cancelNavigationTransition(e,r,i){let o=new P(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $o(t){return t!==Ce}var Zn=new E("");var Jn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(zo),providedIn:"root"})}return t})(),It=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},zo=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mr=(()=>{class t{urlSerializer=l(le);options=l(ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(me);urlHandlingStrategy=l(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new x;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof x?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Un(null,l(B));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Fo),providedIn:"root"})}return t})(),Fo=(()=>{class t extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof X?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof be?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ee?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!On(e)?this.restoreHistory(r):e instanceof ce?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:a}=r;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,c=h(h({},a),this.generateNgRouterState(i,s));this.location.replaceState(e,"",c)}else{let s=h(h({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dt(t,n){t.events.pipe(Q(e=>e instanceof _||e instanceof P||e instanceof ce||e instanceof $),I(e=>e instanceof _||e instanceof $?0:(e instanceof P?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),fe(1)).subscribe(()=>{n()})}var Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Gr);stateManager=l(mr);options=l(ee,{optional:!0})||{};pendingTasks=l(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Mt);urlSerializer=l(le);location=l(me);urlHandlingStrategy=l(Tt);injector=l(B);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Jn);injectorCleanup=l(Zn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(de,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae){let a=r.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=h({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$o(i.source)},a);this.scheduleNavigation(s,Ce,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,r,a,o).catch(c=>{this.disposed||this.injector.get(Ye)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Tn(R)}catch(R){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Mn(f,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ce,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Mr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Xn):r===!1?i=h({},ei):i=r,J(e))return sn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return sn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,u;a?(s=a.resolve,c=a.reject,u=a.promise):u=new Promise((f,R)=>{s=f,c=R});let d=this.pendingTasks.add();return Dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var ti=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pe(null);get href(){return H(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ie;applicationErrorHandler=l(Ye);options=l(ee,{optional:!0});constructor(e,r,i,o,a,s){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s,this.reactiveHref.set(l(new Xr("href"),{optional:!0}));let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(ge(W),ge(z),Lr("tabindex"),ge(zr),ge(xr),ge(ve))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zr("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Kr("href",i.reactiveHref(),kr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ge=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof _),Ue(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(s,o.children??o._loadedRoutes))}return A(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=A(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(j(a=>a===null?g(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return A([o,a]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Y(W),Y(B),Y(Ge),Y(At))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new E(""),Ho=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ce;restoredId=0;store={};urlSerializer=l(le);zone=l(_r);viewportScroller=l(Bt);transitions=l(Mt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ie)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){let i=H(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>y(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ie(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Vo(t,...n){return Or([{provide:de,multi:!0,useValue:t},[],{provide:z,useFactory:ii},{provide:zt,multi:!0,useFactory:oi},n.map(e=>e.\u0275providers)])}function ii(){return l(W).routerState.root}function Ne(t,n){return{\u0275kind:t,\u0275providers:n}}function oi(){let t=l(Lt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(W),i=t.get(si);t.get(Rr)===1&&r.initialNavigation(),t.get(ui,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var si=new E("",{factory:()=>new ie}),Rr=new E("",{factory:()=>1});function ai(){let t=[{provide:jr,useValue:!0},{provide:Rr,useValue:0},$t(()=>{let n=l(Lt);return n.get(rn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W),o=n.get(si);Dt(i,()=>{r(!0)}),n.get(Mt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Ne(2,t)}function ci(){let t=[$t(()=>{l(W).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return Ne(3,t)}var ui=new E("");function li(t){return Ne(0,[{provide:ui,useExisting:ri},{provide:Ge,useExisting:t}])}function Go(){return Ne(6,[{provide:ve,useClass:qt}])}function hi(){return Ne(8,[lr,{provide:He,useExisting:lr}])}function di(t){$r("NgRouterViewTransitions");let n=[{provide:pr,useValue:Yn},{provide:gr,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ne(9,n)}var fi=[me,{provide:le,useClass:G},W,he,{provide:z,useFactory:ii},At,[]],Wo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[fi,[],{provide:de,multi:!0,useValue:e},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:ee,useValue:r||{}},r?.useHash?Ko():Yo(),Qo(),r?.preloadingStrategy?li(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Zo(r):[],r?.bindToComponentInputs?hi().\u0275providers:[],r?.enableViewTransitions?di().\u0275providers:[],Jo()]}}static forChild(e){return{ngModule:t,providers:[{provide:de,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Vr({type:t});static \u0275inj=Dr({})}return t})();function Qo(){return{provide:ni,useFactory:()=>{let t=l(Bt),n=l(ee);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ho(n)}}}function Ko(){return{provide:ve,useClass:qt}}function Yo(){return{provide:ve,useClass:nn}}function Zo(t){return[t.initialNavigation==="disabled"?ci().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ai().\u0275providers:[]]}var yr=new E("");function Jo(){return[{provide:yr,useFactory:oi},{provide:zt,multi:!0,useExisting:yr}]}export{X as a,_ as b,z as c,ur as d,W as e,ti as f,Vo as g,Go as h,Wo as i};
|