homebridge-config-ui-x 5.0.0-beta.1 → 5.0.0-beta.11

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.
Files changed (150) hide show
  1. package/CHANGELOG.md +19 -5
  2. package/README.md +6 -8
  3. package/dist/bin/fork.js +17 -7
  4. package/dist/bin/fork.js.map +1 -1
  5. package/dist/bin/hb-service.js +17 -7
  6. package/dist/bin/hb-service.js.map +1 -1
  7. package/dist/bin/platforms/darwin.js +9 -1
  8. package/dist/bin/platforms/darwin.js.map +1 -1
  9. package/dist/bin/standalone.js +17 -7
  10. package/dist/bin/standalone.js.map +1 -1
  11. package/dist/index.js +17 -7
  12. package/dist/index.js.map +1 -1
  13. package/dist/modules/config-editor/config-editor.controller.d.ts +1 -1
  14. package/dist/modules/config-editor/config-editor.service.d.ts +1 -1
  15. package/package.json +5 -6
  16. package/public/3rdpartylicenses.txt +551 -551
  17. package/public/assets/plugin-ui-utils/ui.js +38 -19
  18. package/public/assets/plugin-ui-utils/ui.js.map +1 -1
  19. package/public/chunk-23E7VL2P.js +1 -0
  20. package/public/chunk-33LJ3YIR.js +1 -0
  21. package/public/chunk-34W4KCBV.js +1 -0
  22. package/public/chunk-3IX3CLER.js +1 -0
  23. package/public/chunk-3RNRIJ74.js +14 -0
  24. package/public/chunk-3TUBDO76.js +1 -0
  25. package/public/chunk-3UBYWHRR.js +1 -0
  26. package/public/chunk-52HTAWOT.js +1 -0
  27. package/public/chunk-535DPMCW.js +1 -0
  28. package/public/chunk-56BOPXKC.js +1 -0
  29. package/public/chunk-5M6KOARX.js +1 -0
  30. package/public/chunk-6IAVZXBU.js +20 -0
  31. package/public/chunk-6T27YQ2D.js +1 -0
  32. package/public/chunk-6TCHCTXZ.js +1 -0
  33. package/public/chunk-7EUQWCP5.js +2 -0
  34. package/public/chunk-7WLTVXXL.js +1 -0
  35. package/public/chunk-AS2OC4NZ.js +1 -0
  36. package/public/{chunk-THFLPY67.js → chunk-BKUGARB4.js} +1 -1
  37. package/public/chunk-BLUX2UMQ.js +1 -0
  38. package/public/chunk-BPMSJ2VF.js +1 -0
  39. package/public/chunk-BW6NZ6VD.js +6 -0
  40. package/public/chunk-C4ENUEJD.js +1 -0
  41. package/public/chunk-C536FAQ7.js +5 -0
  42. package/public/{chunk-GNQUXZMN.js → chunk-CCUID66K.js} +1 -1
  43. package/public/chunk-CL4YMJZW.js +1 -0
  44. package/public/chunk-D7HF5OGR.js +1 -0
  45. package/public/chunk-DD3R2DFS.js +1 -0
  46. package/public/chunk-DHAYGFW2.js +1 -0
  47. package/public/chunk-DVTSZQXS.js +1 -0
  48. package/public/chunk-EA5J2VEJ.js +1 -0
  49. package/public/chunk-EIBIFGLP.js +1 -0
  50. package/public/chunk-F4CW25FV.js +1 -0
  51. package/public/chunk-HL7XXKHI.js +1 -0
  52. package/public/chunk-HSJSWZHD.js +1 -0
  53. package/public/chunk-HUV3VJSE.js +1 -0
  54. package/public/chunk-INJABMER.js +23 -0
  55. package/public/chunk-IU27XSWW.js +1 -0
  56. package/public/chunk-JVAHZDVJ.js +1 -0
  57. package/public/chunk-JZZQRLNW.js +1 -0
  58. package/public/chunk-KQJ7ONUG.js +1 -0
  59. package/public/chunk-KS3FIR4R.js +1 -0
  60. package/public/chunk-KXWJIWYD.js +1 -0
  61. package/public/chunk-LDGB6S2N.js +1 -0
  62. package/public/chunk-LM6S4A72.js +1 -0
  63. package/public/chunk-M45D5CCT.js +1 -0
  64. package/public/chunk-MGBLPFXT.js +1 -0
  65. package/public/chunk-MIMQGXTO.js +1 -0
  66. package/public/chunk-NKN62APE.js +1 -0
  67. package/public/chunk-NW6AFAD7.js +1 -0
  68. package/public/chunk-NZNNTHFQ.js +1 -0
  69. package/public/chunk-ORPWYWCL.js +5 -0
  70. package/public/chunk-Q2YQ4J5L.js +1 -0
  71. package/public/chunk-QE7DO6J3.js +8 -0
  72. package/public/chunk-QHPDGSZ6.js +1 -0
  73. package/public/chunk-QXHB5Q7H.js +1 -0
  74. package/public/chunk-R2QZPN2M.js +1 -0
  75. package/public/chunk-RDOXIKK6.js +1 -0
  76. package/public/chunk-RHBPQJLQ.js +1 -0
  77. package/public/chunk-RSGTDKO6.js +1 -0
  78. package/public/chunk-RTVXC3Y7.js +1 -0
  79. package/public/chunk-SFK7OSIU.js +1 -0
  80. package/public/chunk-SFLEKDGL.js +1 -0
  81. package/public/chunk-T5R3UG6Z.js +1 -0
  82. package/public/chunk-TB7FJ5XX.js +1 -0
  83. package/public/chunk-TCSXGQNF.js +1 -0
  84. package/public/chunk-TRTZHJGG.js +1 -0
  85. package/public/chunk-TWWDGSRW.js +1 -0
  86. package/public/chunk-TXOB7R5K.js +7 -0
  87. package/public/chunk-U2WFZQTC.js +32 -0
  88. package/public/chunk-UG5DK2RQ.js +2 -0
  89. package/public/chunk-UPYKPJUD.js +4 -0
  90. package/public/chunk-UVNEKL77.js +1 -0
  91. package/public/chunk-VHLIKZYD.js +1 -0
  92. package/public/chunk-WHJOLAED.js +1 -0
  93. package/public/chunk-WHJSVGC7.js +1 -0
  94. package/public/{chunk-6QEO3BTW.js → chunk-WNWWUCCZ.js} +14 -14
  95. package/public/chunk-Y62756RF.js +1 -0
  96. package/public/chunk-YA4WNIBX.js +1 -0
  97. package/public/chunk-ZGUIFA2B.js +1 -0
  98. package/public/chunk-ZLOETFRA.js +8 -0
  99. package/public/chunk-ZT23DWNL.js +1 -0
  100. package/public/index.html +2 -2
  101. package/public/main-TLKQDE7H.js +1 -0
  102. package/public/media/fa-brands-400-6PJPV6JM.woff2 +0 -0
  103. package/public/media/{fa-brands-400-CNBICIQT.ttf → fa-brands-400-KOKGDU7E.ttf} +0 -0
  104. package/public/media/{fa-regular-400-2FI4ICQD.ttf → fa-regular-400-IPMAEX5Y.ttf} +0 -0
  105. package/public/media/fa-regular-400-OHB6J4OK.woff2 +0 -0
  106. package/public/media/fa-solid-900-ABTK6BNK.woff2 +0 -0
  107. package/public/media/{fa-solid-900-XVWCCN5V.ttf → fa-solid-900-SRFFQLRM.ttf} +0 -0
  108. package/public/{polyfills-CE2SNIQF.js → polyfills-C6JHVXJJ.js} +2 -2
  109. package/public/prerendered-routes.json +3 -0
  110. package/public/styles-EG5MFQEM.css +1 -0
  111. package/public/chunk-3KSUXL3K.js +0 -20
  112. package/public/chunk-422JXES4.js +0 -23
  113. package/public/chunk-4R6MSI5I.js +0 -14
  114. package/public/chunk-5UYN5OWH.js +0 -1
  115. package/public/chunk-7564WJJL.js +0 -1
  116. package/public/chunk-7R6JSPNH.js +0 -1
  117. package/public/chunk-B6C32ZRK.js +0 -1
  118. package/public/chunk-B6G7GTDI.js +0 -1
  119. package/public/chunk-BQLALGZ5.js +0 -4
  120. package/public/chunk-BROUJ7PT.js +0 -1
  121. package/public/chunk-C4OONTE3.js +0 -1
  122. package/public/chunk-DOLYKWZH.js +0 -1
  123. package/public/chunk-DRWF7R4E.js +0 -1
  124. package/public/chunk-F22FMU37.js +0 -1
  125. package/public/chunk-FBP5C7VG.js +0 -1
  126. package/public/chunk-FPOZAQLC.js +0 -5
  127. package/public/chunk-IGUSDGD6.js +0 -8
  128. package/public/chunk-JM7QCDMZ.js +0 -1
  129. package/public/chunk-K3YXRBTH.js +0 -1
  130. package/public/chunk-K6TZNXIW.js +0 -1
  131. package/public/chunk-LS7T2AVU.js +0 -8
  132. package/public/chunk-NZPTOWFC.js +0 -20
  133. package/public/chunk-RID7V4NP.js +0 -1
  134. package/public/chunk-RIWBPQF3.js +0 -1
  135. package/public/chunk-S4SOWUAW.js +0 -1
  136. package/public/chunk-SJTXTMYT.js +0 -2
  137. package/public/chunk-T5QVI4H2.js +0 -1
  138. package/public/chunk-TBJQ2Y3M.js +0 -1
  139. package/public/chunk-TS27NWVA.js +0 -20
  140. package/public/chunk-VROGSJLF.js +0 -1
  141. package/public/chunk-VVILZWTF.js +0 -1
  142. package/public/chunk-WCDFKYP6.js +0 -5
  143. package/public/chunk-WCQIGCXO.js +0 -1
  144. package/public/chunk-Z47RP4BH.js +0 -1
  145. package/public/chunk-ZEONO5N6.js +0 -1
  146. package/public/main-VTRWQ63R.js +0 -6
  147. package/public/media/fa-brands-400-MDS4TU4L.woff2 +0 -0
  148. package/public/media/fa-regular-400-N56QV3DR.woff2 +0 -0
  149. package/public/media/fa-solid-900-Z3HFQTXF.woff2 +0 -0
  150. package/public/styles-7ETWN6DQ.css +0 -1
@@ -0,0 +1 @@
1
+ import{l as rn}from"./chunk-UG5DK2RQ.js";import{$ as br,A as Se,Aa as bt,Ab as _r,B as Sr,Ba as Or,Bb as Ot,C as St,Ca as It,Cb as zr,Db as Fr,Ea as Er,Eb as qr,Fa as oe,Fc as Qe,Ga as At,H as X,Hc as Ke,Ia as Ur,Ja as Dt,Jb as Br,K as ne,Kc as Ze,L as ie,Lb as Vr,N as Ct,O as se,Oc as Zr,P as Cr,Sc as Yr,T as He,Ta as xr,U as Q,Uc as Xr,V as Rt,Vc as Re,W as Rr,X as wr,Xc as Jr,Yb as Hr,Yc as en,Zc as we,a as h,aa as N,b as T,ba as Ir,ca as I,cc as Wr,ea as A,fb as Pr,gc as Gr,ha as w,i as gr,ia as Ar,ic as Qr,j as vr,ja as Dr,jb as L,jc as Kr,ka as M,kb as jr,l as mt,la as wt,m as yt,ma as F,n as W,na as p,nb as Nr,o as x,oa as Mr,p as G,pa as Tr,pb as Mt,q as D,qb as Tt,qd as tn,r as f,rb as Lr,s as ye,sb as $r,t as mr,ta as Ce,tb as Ge,u as yr,ua as _,vb as kr,wa as We,x as S,y as Ve,z as O}from"./chunk-TXOB7R5K.js";var g="primary",Le=Symbol("RouteTitle"),jt=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function de(t){return new jt(t)}function Yn(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=t[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Xn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],r[e]))return!1;return!0}function z(t,r){let e=t?Nt(t):void 0,n=r?Nt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!gn(t[i],r[i]))return!1;return!0}function Nt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,s)=>n[s]===i)}else return t===r}function vn(t){return t.length>0?t[t.length-1]:null}function Z(t){return mr(t)?t:_r(t)?D(Promise.resolve(t)):f(t)}var Jn={exact:yn,subset:Sn},mn={exact:ei,subset:ti,ignored:()=>!0};function nn(t,r,e){return Jn[e.paths](t.root,r.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function ei(t,r){return z(t,r)}function yn(t,r,e){if(!ee(t.segments,r.segments)||!Je(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!yn(t.children[n],r.children[n],e))return!1;return!0}function ti(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>gn(t[e],r[e]))}function Sn(t,r,e){return Cn(t,r,r.segments,e)}function Cn(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ee(i,e)||r.hasChildren()||!Je(i,e,n))}else if(t.segments.length===e.length){if(!ee(t.segments,e)||!Je(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Sn(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!ee(t.segments,i)||!Je(t.segments,i,n)||!t.children[g]?!1:Cn(t.children[g],r,s,n)}}function Je(t,r,e){return r.every((n,i)=>mn[e](t[i].parameters,n.parameters))}var B=class{root;queryParams;fragment;_queryParamMap;constructor(r=new y([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){return ii.serialize(this)}},y=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}},J=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){var r;return(r=this._parameterMap)!=null||(this._parameterMap=de(this.parameters)),this._parameterMap}toString(){return wn(this)}};function ri(t,r){return ee(t,r)&&t.every((e,n)=>z(e.parameters,r[n].parameters))}function ee(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function ni(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===g&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==g&&(e=e.concat(r(i,n)))}),e}var $e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(r){let e=new $t(r);return new B(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${be(r.root,!0)}`,n=ai(r.queryParams),i=typeof r.fragment=="string"?`#${si(r.fragment)}`:"";return`${e}${n}${i}`}},ii=new fe;function et(t){return t.segments.map(r=>wn(r)).join("/")}function be(t,r){if(!t.hasChildren())return et(t);if(r){let e=t.children[g]?be(t.children[g],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&n.push(`${i}:${be(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=ni(t,(n,i)=>i===g?[be(t.children[g],!1)]:[`${i}:${be(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${et(t)}/${e[0]}`:`${et(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ye(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function Lt(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tt(t){return decodeURIComponent(t)}function sn(t){return tt(t.replace(/\+/g,"%20"))}function wn(t){return`${Lt(t.path)}${oi(t.parameters)}`}function oi(t){return Object.entries(t).map(([r,e])=>`;${Lt(r)}=${Lt(e)}`).join("")}function ai(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ye(e)}=${Ye(i)}`).join("&"):`${Ye(e)}=${Ye(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var ui=/^[^\/()?;#]+/;function Et(t){let r=t.match(ui);return r?r[0]:""}var ci=/^[^\/()?;=#]+/;function li(t){let r=t.match(ci);return r?r[0]:""}var hi=/^[^=?&#]+/;function di(t){let r=t.match(hi);return r?r[0]:""}var fi=/^[^&#]+/;function pi(t){let r=t.match(fi);return r?r[0]:""}var $t=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[g]=new y(r,e)),n}parseSegment(){let r=Et(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(r),new J(tt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=li(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Et(this.remaining);i&&(n=i,this.capture(n))}r[tt(e)]=tt(n)}parseQueryParam(r){let e=di(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=pi(this.remaining);o&&(n=o,this.capture(n))}let i=sn(e),s=sn(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Et(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new A(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new y([],o),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new A(4011,!1)}};function bn(t){return t.segments.length>0?new y([],{[g]:t}):t}function In(t){let r={};for(let[n,i]of Object.entries(t.children)){let s=In(i);if(n===g&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))r[o]=u;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let e=new y(t.segments,r);return gi(e)}function gi(t){if(t.numberOfChildren===1&&t.children[g]){let r=t.children[g];return new y(t.segments.concat(r.segments),r.children)}return t}function te(t){return t instanceof B}function vi(t,r,e=null,n=null){let i=An(t);return Dn(i,r,e,n)}function An(t){let r;function e(s){let o={};for(let a of s.children){let c=e(a);o[a.outlet]=c}let u=new y(s.url,o);return s===t&&(r=u),u}let n=e(t.root),i=bn(n);return r!=null?r:i}function Dn(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return Ut(i,i,i,e,n);let s=mi(r);if(s.toRoot())return Ut(i,i,new y([],{}),e,n);let o=yi(s,i,t),u=o.processChildren?De(o.segmentGroup,o.index,s.commands):Tn(o.segmentGroup,o.index,s.commands);return Ut(i,o.segmentGroup,u,e,n)}function rt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Oe(t){return typeof t=="object"&&t!=null&&t.outlets}function Ut(t,r,e,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===r?o=e:o=Mn(t,r,e);let u=bn(In(o));return new B(u,s,i)}function Mn(t,r,e){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===r?n[i]=e:n[i]=Mn(s,r,e)}),new y(t.segments,n)}var nt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&rt(n[0]))throw new A(4003,!1);let i=n.find(Oe);if(i&&i!==vn(n))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function mi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new nt(!0,0,t);let r=0,e=!1,n=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let u={};return Object.entries(s.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new nt(e,r,n)}var ce=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function yi(t,r,e){if(t.isAbsolute)return new ce(r,!0,0);if(!e)return new ce(r,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let n=rt(t.commands[0])?0:1,i=e.segments.length-1+n;return Si(e,i,t.numberOfDoubleDots)}function Si(t,r,e){let n=t,i=r,s=e;for(;s>i;){if(s-=i,n=n.parent,!n)throw new A(4005,!1);i=n.segments.length}return new ce(n,!1,i-s)}function Ci(t){return Oe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,r,e){if(t!=null||(t=new y([],{})),t.segments.length===0&&t.hasChildren())return De(t,r,e);let n=Ri(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new y(t.segments.slice(0,n.pathIndex),{});return s.children[g]=new y(t.segments.slice(n.pathIndex),t.children),De(s,0,i)}else return n.match&&i.length===0?new y(t.segments,{}):n.match&&!t.hasChildren()?kt(t,r,e):n.match?De(t,0,i):kt(t,r,e)}function De(t,r,e){if(e.length===0)return new y(t.segments,{});{let n=Ci(e),i={};if(Object.keys(n).some(s=>s!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=De(t.children[g],r,e);return new y(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Tn(t.children[s],r,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new y(t.segments,i)}}function Ri(t,r,e){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return s;let o=t.segments[i],u=e[n];if(Oe(u))break;let a=`${u}`,c=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,o))return s;n+=2}else{if(!an(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function kt(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let s=e[i];if(Oe(s)){let a=wi(s.outlets);return new y(n,a)}if(i===0&&rt(e[0])){let a=t.segments[r];n.push(new J(a.path,on(e[0]))),i++;continue}let o=Oe(s)?s.outlets[g]:`${s}`,u=i<e.length-1?e[i+1]:null;o&&u&&rt(u)?(n.push(new J(o,on(u))),i+=2):(n.push(new J(o,{})),i++)}return new y(n,{})}function wi(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=kt(new y([],{}),0,n))}),r}function on(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function an(t,r,e){return t==e.path&&z(r,e.parameters)}var Me="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||{}),P=class{id;url;constructor(r,e){this.id=r,this.url=e}},pe=class extends P{type=C.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends P{urlAfterRedirects;type=C.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},U=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(U||{}),it=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(it||{}),q=class extends P{reason;code;type=C.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends P{reason;code;type=C.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},Ee=class extends P{error;target;type=C.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},st=class extends P{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_t=class extends P{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zt=class extends P{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(r,e,n,i,s){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ft=class extends P{urlAfterRedirects;state;type=C.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class extends P{urlAfterRedirects;state;type=C.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class{route;type=C.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vt=class{route;type=C.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ht=class{snapshot;type=C.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=C.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=C.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qt=class{snapshot;type=C.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ot=class{routerEvent;position;anchor;type=C.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Ue=class{},ge=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function bi(t,r){var e;return t.providers&&!t._injector&&(t._injector=Tt(t.providers,r,`Route: ${t.path}`)),(e=t._injector)!=null?e:r}function $(t){return t.outlet||g}function Ii(t,r){let e=t.filter(n=>$(n)===r);return e.push(...t.filter(n=>$(n)!==r)),e}function ke(t){var r;if(!t)return null;if((r=t.routeConfig)!=null&&r._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n!=null&&n._loadedInjector)return n._loadedInjector;if(n!=null&&n._injector)return n._injector}return null}var Kt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var r,e;return(e=ke((r=this.route)==null?void 0:r.snapshot))!=null?e:this.rootInjector}constructor(r){this.rootInjector=r,this.children=new _e(this.rootInjector)}},_e=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Kt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(F(Ce))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),at=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Zt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Zt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Yt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Yt(r,this._root).map(e=>e.value)}};function Zt(t,r){if(t===r.value)return r;for(let e of r.children){let n=Zt(t,e);if(n)return n}return null}function Yt(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Yt(t,e);if(n.length)return n.unshift(r),n}return[]}var E=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var ut=class extends at{snapshot;constructor(r,e){super(r),this.snapshot=e,or(this,r)}toString(){return this.snapshot.toString()}};function On(t){let r=Ai(t),e=new x([new J("",{})]),n=new x({}),i=new x({}),s=new x({}),o=new x(""),u=new re(e,n,s,o,i,g,t,r.root);return u.snapshot=r.root,new ut(new E(u,[]),r)}function Ai(t){let r={},e={},n={},i="",s=new le([],r,n,i,e,g,t,null,{});return new lt("",new E(s,[]))}var re=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,s,o,u,a){var c,l;this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(S(v=>v[Le])))!=null?l:f(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s}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(){var r;return(r=this._paramMap)!=null||(this._paramMap=this.params.pipe(S(e=>de(e)))),this._paramMap}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(S(e=>de(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ct(t,r,e="emptyOnly"){var s,o;let n,{routeConfig:i}=t;return r!==null&&(e==="always"||(i==null?void 0:i.path)===""||!r.component&&!((s=r.routeConfig)!=null&&s.loadComponent))?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i==null?void 0:i.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(o=t._resolvedData)!=null?o:{})},i&&Un(i)&&(n.resolve[Le]=i.title),n}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var r;return(r=this.data)==null?void 0:r[Le]}constructor(r,e,n,i,s,o,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=u,this.routeConfig=a,this._resolve=c}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(){var r;return(r=this._paramMap)!=null||(this._paramMap=de(this.params)),this._paramMap}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},lt=class extends at{url;constructor(r,e){super(e),this.url=r,or(this,e)}toString(){return En(this._root)}};function or(t,r){r.value._routerState=t,r.children.forEach(e=>or(t,e))}function En(t){let r=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${r}`}function xt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(r.params,e.params)||t.paramsSubject.next(e.params),Xn(r.url,e.url)||t.urlSubject.next(e.url),z(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Xt(t,r){let e=z(t.params,r.params)&&ri(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Xt(t.parent,r.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Di=new M(""),Mi=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Ur(void 0);parentContexts=p(_e);location=p(qr);changeDetector=p(Ke);inputBinder=p(gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var n;return((n=this.parentContexts.getContext(e))==null?void 0:n.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&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 A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){var i;this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.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,n){var c;if(this.isActivated)throw new A(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Jt(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Ge({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),Jt=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===re?this.route:r===_e?this.childContexts:r===Di?this.outletData:this.parent.get(r,e)}},gt=new M(""),un=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var n;(n=this.outletDataSubscriptions.get(e))==null||n.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Ve([n.queryParams,n.params,n.data]).pipe(N(([s,o,u],a)=>(u=h(h(h({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let o=Zr(n.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of o.inputs)e.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function Ti(t,r,e){let n=xe(t,r._root,e?e._root:void 0);return new ut(n,r)}function xe(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Oi(t,r,e);return new E(n,i)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>xe(t,u)),o}}let n=Ei(r.value),i=r.children.map(s=>xe(t,s));return new E(n,i)}}function Oi(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return xe(t,n,i);return xe(t,n)})}function Ei(t){return new re(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var Pe=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function ht(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=te(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Pn(!1,U.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Pn(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=r,e}function Ui(t){return jn(t)&&te(t.url)}function jn(t){return!!t&&t[xn]}var xi=(t,r,e,n)=>S(i=>(new er(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),xt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ue(e);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,e,o.children)}else this.deactivateChildRoutes(r,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=ue(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=ue(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ue(e);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Qt(s.value.snapshot))}),r.children.length&&this.forwardEvent(new Wt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(xt(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,o.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),xt(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},dt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Pi(t,r,e){let n=t._root,i=r?r._root:null;return Ie(n,i,e,[n.value])}function ji(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function me(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Dr(t)?t:r.get(t):n}function Ie(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ue(r);return t.children.forEach(o=>{Ni(o,s[o.value.outlet],e,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Te(u,e.getContext(o),i)),i}function Ni(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=Li(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new dt(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ie(t,r,u?u.children:null,n,i):Ie(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,o))}else o&&Te(r,u,i),i.canActivateChecks.push(new dt(n)),s.component?Ie(t,null,u?u.children:null,n,i):Ie(t,null,e,n,i);return i}function Li(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!ee(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ee(t.url,r.url)||!z(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,r)||!z(t.queryParams,r.queryParams);case"paramsChange":default:return!Xt(t,r)}}function Te(t,r,e){let n=ue(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Te(o,r.children.getContext(s),e):Te(o,null,e):Te(o,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new he(r.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function ze(t){return typeof t=="function"}function $i(t){return typeof t=="boolean"}function ki(t){return t&&ze(t.canLoad)}function _i(t){return t&&ze(t.canActivate)}function zi(t){return t&&ze(t.canActivateChild)}function Fi(t){return t&&ze(t.canDeactivate)}function qi(t){return t&&ze(t.canMatch)}function Nn(t){return t instanceof yr||(t==null?void 0:t.name)==="EmptyError"}var Xe=Symbol("INITIAL_VALUE");function ve(){return N(t=>Ve(t.map(r=>r.pipe(se(1),br(Xe)))).pipe(S(r=>{for(let e of r)if(e!==!0){if(e===Xe)return Xe;if(e===!1||Bi(e))return e}return!0}),X(r=>r!==Xe),se(1)))}function Bi(t){return te(t)||t instanceof Pe}function Vi(t,r){return O(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?f(T(h({},e),{guardsResult:!0})):Hi(o,n,i,t).pipe(O(u=>u&&$i(u)?Wi(n,s,t,r):f(u)),S(u=>T(h({},e),{guardsResult:u})))})}function Hi(t,r,e,n){return D(t).pipe(O(i=>Yi(i.component,i.route,e,r,n)),Q(i=>i!==!0,!0))}function Wi(t,r,e,n){return D(r).pipe(ie(i=>Sr(Qi(i.route.parent,n),Gi(i.route,n),Zi(t,i.path,e),Ki(t,i.route,e))),Q(i=>i!==!0,!0))}function Gi(t,r){return t!==null&&r&&r(new Gt(t)),f(!0)}function Qi(t,r){return t!==null&&r&&r(new Ht(t)),f(!0)}function Ki(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>St(()=>{var c;let o=(c=ke(r))!=null?c:e,u=me(s,o),a=_i(u)?u.canActivate(r,t):_(o,()=>u(r,t));return Z(a).pipe(Q())}));return f(i).pipe(ve())}function Zi(t,r,e){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>ji(o)).filter(o=>o!==null).map(o=>St(()=>{let u=o.guards.map(a=>{var d;let c=(d=ke(o.node))!=null?d:e,l=me(a,c),v=zi(l)?l.canActivateChild(n,t):_(c,()=>l(n,t));return Z(v).pipe(Q())});return f(u).pipe(ve())}));return f(s).pipe(ve())}function Yi(t,r,e,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{var v;let a=(v=ke(r))!=null?v:i,c=me(u,a),l=Fi(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return Z(l).pipe(Q())});return f(o).pipe(ve())}function Xi(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=me(o,t),a=ki(u)?u.canLoad(r,e):_(t,()=>u(r,e));return Z(a)});return f(s).pipe(ve(),Ln(n))}function Ln(t){return vr(I(r=>{if(typeof r!="boolean")throw ht(t,r)}),S(r=>r===!0))}function Ji(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=me(o,t),a=qi(u)?u.canMatch(r,e):_(t,()=>u(r,e));return Z(a)});return f(s).pipe(ve(),Ln(n))}var je=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Ne=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function ae(t){return ye(new je(t))}function es(t){return ye(new A(4e3,!1))}function ts(t){return ye(Pn(!1,U.GuardRejected))}var tr=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[g])return es(`${r.redirectTo}`);i=i.children[g]}}applyRedirectCommands(r,e,n,i,s){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:l,url:v,outlet:d,params:m,data:b,title:R}=i,j=_(s,()=>u({params:m,data:b,queryParams:a,fragment:c,routeConfig:l,url:v,outlet:d,title:R}));if(j instanceof B)throw new Ne(j);e=j}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Ne(o);return o}applyRedirectCreateUrlTree(r,e,n,i){let s=this.createSegmentGroup(r,e.root,n,i);return new B(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=e[u]}else n[i]=s}),n}createSegmentGroup(r,e,n,i){let s=this.createSegments(r,e.segments,n,i),o={};return Object.entries(e.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new y(s,o)}createSegments(r,e,n,i){return e.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new A(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},rr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function rs(t,r,e,n,i){let s=$n(t,r,e);return s.matched?(n=bi(r,n),Ji(n,r,e,i).pipe(S(o=>o===!0?s:h({},rr)))):f(s)}function $n(t,r,e){var u,a;if(r.path==="**")return ns(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},rr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Yn)(e,t,r);if(!i)return h({},rr);let s={};Object.entries((u=i.posParams)!=null?u:{}).forEach(([c,l])=>{s[c]=l.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:(a=i.posParams)!=null?a:{}}}function ns(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,r,e,n){return e.length>0&&os(t,e,n)?{segmentGroup:new y(r,ss(n,new y(e,t.children))),slicedSegments:[]}:e.length===0&&as(t,e,n)?{segmentGroup:new y(t.segments,is(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new y(t.segments,t.children),slicedSegments:e}}function is(t,r,e,n){let i={};for(let s of e)if(vt(t,r,s)&&!n[$(s)]){let o=new y([],{});i[$(s)]=o}return h(h({},n),i)}function ss(t,r){let e={};e[g]=r;for(let n of t)if(n.path===""&&$(n)!==g){let i=new y([],{});e[$(n)]=i}return e}function os(t,r,e){return e.some(n=>vt(t,r,n)&&$(n)!==g)}function as(t,r,e){return e.some(n=>vt(t,r,n))}function vt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function us(t,r,e){return r.length===0&&!t.children[e]}var nr=class{};function cs(t,r,e,n,i,s,o="emptyOnly"){return new ir(t,r,e,n,i,o,s).recognize()}var ls=31,ir=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,s,o,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new tr(this.urlSerializer,this.urlTree)}noMatchError(r){return new A(4002,`'${r.segmentGroup}'`)}recognize(){let r=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(S(({children:e,rootSnapshot:n})=>{let i=new E(n,e),s=new lt("",i),o=vi(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let e=new le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,g,e).pipe(S(n=>({children:n,rootSnapshot:e})),ne(n=>{if(n instanceof Ne)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof je?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,s):this.processSegment(r,e,n,n.segments,i,!0,s).pipe(S(o=>o instanceof E?[o]:[]))}processChildren(r,e,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return D(s).pipe(ie(o=>{let u=n.children[o],a=Ii(e,o);return this.processSegmentGroup(r,a,u,o,i)}),wr((o,u)=>(o.push(...u),o)),Ct(null),Rr(),O(o=>{if(o===null)return ae(n);let u=kn(o);return hs(u),f(u)}))}processSegment(r,e,n,i,s,o,u){return D(e).pipe(ie(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:r,e,a,n,i,s,o,u).pipe(ne(l=>{if(l instanceof je)return f(null);throw l}))}),Q(a=>!!a),ne(a=>{if(Nn(a))return us(n,i,s)?f(new nr):ae(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,s,o,u,a){return $(n)!==o&&(o===g||!vt(i,s,n))?ae(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,s,o,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,s,o,u){var j,H;let{matched:a,parameters:c,consumedSegments:l,positionalParamSegments:v,remainingSegments:d}=$n(e,i,s);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ls&&(this.allowRedirects=!1));let m=new le(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),$(i),(H=(j=i.component)!=null?j:i._loadedComponent)!=null?H:null,i,hn(i)),b=ct(m,u,this.paramsInheritanceStrategy);m.params=Object.freeze(b.params),m.data=Object.freeze(b.data);let R=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,m,r);return this.applyRedirects.lineralizeSegments(i,R).pipe(O(Y=>this.processSegment(r,n,e,Y.concat(d),o,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,s,o){let u=rs(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(N(a=>{var c;return a.matched?(r=(c=n._injector)!=null?c:r,this.getChildConfig(r,n,i).pipe(N(({routes:l})=>{var dr,fr,pr;let v=(dr=n._loadedInjector)!=null?dr:r,{parameters:d,consumedSegments:m,remainingSegments:b}=a,R=new le(m,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(n),$(n),(pr=(fr=n.component)!=null?fr:n._loadedComponent)!=null?pr:null,n,hn(n)),j=ct(R,o,this.paramsInheritanceStrategy);R.params=Object.freeze(j.params),R.data=Object.freeze(j.data);let{segmentGroup:H,slicedSegments:Y}=cn(e,m,b,l);if(Y.length===0&&H.hasChildren())return this.processChildren(v,l,H,R).pipe(S(Be=>new E(R,Be)));if(l.length===0&&Y.length===0)return f(new E(R,[]));let Zn=$(n)===s;return this.processSegment(v,l,H,Y,Zn?g:s,!0,R).pipe(S(Be=>new E(R,Be instanceof E?[Be]:[])))}))):ae(e)}))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Xi(r,e,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,e).pipe(I(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):ts(e))):f({routes:[],injector:r})}};function hs(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function ds(t){let r=t.value.routeConfig;return r&&r.path===""}function kn(t){let r=[],e=new Set;for(let n of t){if(!ds(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=kn(n.children);r.push(new E(n.value,i))}return r.filter(n=>!e.has(n))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function fs(t,r,e,n,i,s){return O(o=>cs(t,r,e,n,o.extractedUrl,i,s).pipe(S(({state:u,tree:a})=>T(h({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function ps(t,r){return O(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let c of _n(a))o.add(c);let u=0;return D(o).pipe(ie(a=>s.has(a)?gs(a,n,t,r):(a.data=ct(a,a.parent,t).resolve,f(void 0))),I(()=>u++),Rt(1),O(a=>u===o.size?f(e):G))})}function _n(t){let r=t.children.map(e=>_n(e)).flat();return[t,...r]}function gs(t,r,e,n){let i=t.routeConfig,s=t._resolve;return(i==null?void 0:i.title)!==void 0&&!Un(i)&&(s[Le]=i.title),vs(s,t,r,n).pipe(S(o=>(t._resolvedData=o,t.data=ct(t,t.parent,e).resolve,null)))}function vs(t,r,e,n){let i=Nt(t);if(i.length===0)return f({});let s={};return D(i).pipe(O(o=>ms(t[o],r,e,n).pipe(Q(),I(u=>{if(u instanceof Pe)throw ht(new fe,u);s[o]=u}))),Rt(1),Cr(s),ne(o=>Nn(o)?G:ye(o)))}function ms(t,r,e,n){var u;let i=(u=ke(r))!=null?u:n,s=me(t,i),o=s.resolve?s.resolve(r,e):_(i,()=>s(r,e));return Z(o)}function Pt(t){return N(r=>{let e=t(r);return e?D(e).pipe(S(()=>r)):f(r)})}var zn=(()=>{class t{buildTitle(e){var s;let n,i=e.root;for(;i!==void 0;)n=(s=this.getResolvedTitleForRoute(i))!=null?s:n,i=i.children.find(o=>o.outlet===g);return n}getResolvedTitleForRoute(e){return e.data[Le]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(ys),providedIn:"root"})}return t})(),ys=(()=>{class t extends zn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(F(rn))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fe=new M("",{providedIn:"root",factory:()=>({})}),Ss=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Lr({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,i){n&1&&Hr(0,"router-outlet")},dependencies:[Mi],encapsulation:2})}return t})();function ar(t){let r=t.children&&t.children.map(ar),e=r?T(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ss),e}var ft=new M(""),ur=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Qe);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=Z(e.loadComponent()).pipe(S(Fn),I(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),He(()=>{this.componentLoaders.delete(e)})),i=new yt(n,()=>new W).pipe(mt());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Cs(n,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(n)})),o=new yt(s,()=>new W).pipe(mt());return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Cs(t,r,e,n){return Z(t.loadChildren()).pipe(S(Fn),O(i=>i instanceof Nr||Array.isArray(i)?f(i):D(r.compileModuleAsync(i))),S(i=>{n&&n(t);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(e).injector,o=s.get(ft,[],{optional:!0,self:!0}).flat()),{routes:o.map(ar),injector:s}}))}function Rs(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return Rs(t)?t.default:t}var cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(ws),providedIn:"root"})}return t})(),ws=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new M(""),Bn=new M("");function bs(t,r,e){let n=t.get(Bn),i=t.get(Yr);return t.get(At).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),u=i.startViewTransition(()=>(s(),Is(t))),{onViewTransitionCreated:a}=n;return a&&_(t,()=>a({transition:u,from:r,to:e})),o})}function Is(t){return new Promise(r=>{xr({read:()=>setTimeout(r)},{injector:t})})}var Vn=new M(""),lr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=p(ur);environmentInjector=p(Ce);urlSerializer=p($e);rootContexts=p(_e);location=p(we);inputBindingEnabled=p(gt,{optional:!0})!==null;titleStrategy=p(zn);options=p(Fe,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(cr);createViewTransition=p(qn,{optional:!0});navigationErrorHandler=p(Vn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Bt(i)),n=i=>this.events.next(new Vt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let n=++this.navigationId;(i=this.transitions)==null||i.next(T(h(h({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new x({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Me,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),S(s=>T(h({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),N(s=>{let o=!1,u=!1;return f(s).pipe(N(a=>{var v;if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",U.SupersededByNewNavigation),G;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?T(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=(v=a.extras.onSameUrlNavigation)!=null?v:e.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),d,it.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(N(d=>{var b,R;let m=(b=this.transitions)==null?void 0:b.getValue();return this.events.next(new pe(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),m!==((R=this.transitions)==null?void 0:R.getValue())?G:Promise.resolve(d)}),fs(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),I(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=T(h({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let m=new st(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:m,source:b,restoredState:R,extras:j}=a,H=new pe(d,this.urlSerializer.serialize(m),b,R);this.events.next(H);let Y=On(this.rootComponentType).snapshot;return this.currentTransition=s=T(h({},a),{targetSnapshot:Y,urlAfterRedirects:m,extras:T(h({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,f(s)}else{let d="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),d,it.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),I(a=>{let c=new _t(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),S(a=>(this.currentTransition=s=T(h({},a),{guards:Pi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),Vi(this.environmentInjector,a=>this.events.next(a)),I(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw ht(this.urlSerializer,a.guardsResult);let c=new zt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",U.GuardRejected),!1)),Pt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(I(c=>{let l=new Ft(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),N(c=>{let l=!1;return f(c).pipe(ps(this.paramsInheritanceStrategy,this.environmentInjector),I({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",U.NoDataFromResolver)}}))}),I(c=>{let l=new qt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Pt(a=>{let c=l=>{var d;let v=[];(d=l.routeConfig)!=null&&d.loadComponent&&!l.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(l.routeConfig).pipe(I(m=>{l.component=m}),S(()=>{})));for(let m of l.children)v.push(...c(m));return v};return Ve(c(a.targetSnapshot.root)).pipe(Ct(null),se(1))}),Pt(()=>this.afterPreactivation()),N(()=>{var v;let{currentSnapshot:a,targetSnapshot:c}=s,l=(v=this.createViewTransition)==null?void 0:v.call(this,this.environmentInjector,a.root,c.root);return l?D(l).pipe(S(()=>s)):f(s)}),S(a=>{let c=Ti(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=T(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),I(()=>{this.events.next(new Ue)}),xi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),se(1),I({next:a=>{var c;o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),(c=this.titleStrategy)==null||c.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Ir(this.transitionAbortSubject.pipe(I(a=>{throw a}))),He(()=>{var a;!o&&!u&&this.cancelNavigationTransition(s,"",U.SupersededByNewNavigation),((a=this.currentTransition)==null?void 0:a.id)===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ne(a=>{var c;if(u=!0,jn(a))this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Ui(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Ee(s.id,this.urlSerializer.serialize(s.extractedUrl),a,(c=s.targetSnapshot)!=null?c:void 0);try{let v=_(this.environmentInjector,()=>{var d;return(d=this.navigationErrorHandler)==null?void 0:d.call(this,l)});if(v instanceof Pe){let{message:d,cancellationCode:m}=ht(this.urlSerializer,v);this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),d,m)),this.events.next(new ge(v.redirectTo,v.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(v){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(v)}}return G}))}))}cancelNavigationTransition(e,n,i){let s=new q(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){var e,n;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((n=this.currentTransition)==null?void 0:n.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,s,o,u;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=(o=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?o:(s=this.currentNavigation)==null?void 0:s.extractedUrl;return e.toString()!==(n==null?void 0:n.toString())&&!((u=this.currentNavigation)!=null&&u.extras.skipLocationChange)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function As(t){return t!==Me}var Ds=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(Ms),providedIn:"root"})}return t})(),sr=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Ms=(()=>{class t extends sr{static \u0275fac=(()=>{let e;return function(i){return(e||(e=bt(t)))(i||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(Ts),providedIn:"root"})}return t})(),Ts=(()=>{class t extends Hn{location=p(we);urlSerializer=p($e);options=p(Fe,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(cr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new B;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,n;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(n=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?n:this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){var i,s;if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=n.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl((i=n.targetBrowserUrl)!=null?i:o,n)}}else e instanceof Ue?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl((s=n.targetBrowserUrl)!=null?s:this.rawUrlTree,n)):e instanceof q&&(e.code===U.GuardRejected||e.code===U.NoDataFromResolver)?this.restoreHistory(n):e instanceof Ee?this.restoreHistory(n,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof B?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=h(h({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){var n;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(n=e.finalUrl)!=null?n:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=bt(t)))(i||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ae=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Ae||{});function Wn(t,r){t.events.pipe(X(e=>e instanceof k||e instanceof q||e instanceof Ee||e instanceof K),S(e=>e instanceof k||e instanceof K?Ae.COMPLETE:(e instanceof q?e.code===U.Redirect||e.code===U.SupersededByNewNavigation:!1)?Ae.REDIRECTING:Ae.FAILED),X(e=>e!==Ae.REDIRECTING),se(1)).subscribe(()=>{r()})}var Os={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Es={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},V=(()=>{var r,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(kr);stateManager=p(Hn);options=p(Fe,{optional:!0})||{};pendingTasks=p(Er);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(lr);urlSerializer=p($e);location=p(we);urlHandlingStrategy=p(cr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Ds);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(r=p(ft,{optional:!0}))==null?void 0:r.flat())!=null?e:[];componentInputBindingEnabled=!!p(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new gr;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(s=>{try{let o=this.navigationTransitions.currentTransition,u=this.navigationTransitions.currentNavigation;if(o!==null&&u!==null){if(this.stateManager.handleRouterEvent(s,u),s instanceof q&&s.code!==U.Redirect&&s.code!==U.SupersededByNewNavigation)this.navigated=!0;else if(s instanceof k)this.navigated=!0;else if(s instanceof ge){let a=s.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(s.url,o.currentRawUrl),l=h({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||As(o.source)},a);this.scheduleNavigation(c,Me,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}xs(s)&&this._events.next(s)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Me,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((s,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(s,"popstate",o)},0)}))}navigateToSyncWithBrowser(i,s,o){let u={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let l=h({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(u.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,s,a,u)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(ar),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,s={}){let{relativeTo:o,queryParams:u,fragment:a,queryParamsHandling:c,preserveFragment:l}=s,v=l?this.currentUrlTree.fragment:a,d=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),u);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=u||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let b=o?o.snapshot:this.routerState.snapshot.root;m=An(b)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),m=this.currentUrlTree.root}return Dn(m,i,d,v!=null?v:null)}navigateByUrl(i,s={skipLocationChange:!1}){let o=te(i)?i:this.parseUrl(i),u=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(u,Me,null,s)}navigate(i,s={skipLocationChange:!1}){return Us(i),this.navigateByUrl(this.createUrlTree(i,s),s)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,s){let o;if(s===!0?o=h({},Os):s===!1?o=h({},Es):o=s,te(i))return nn(this.currentUrlTree,i,o);let u=this.parseUrl(i);return nn(this.currentUrlTree,u,o)}removeEmptyProps(i){return Object.entries(i).reduce((s,[o,u])=>(u!=null&&(s[o]=u),s),{})}scheduleNavigation(i,s,o,u,a){if(this.disposed)return Promise.resolve(!1);let c,l,v;a?(c=a.resolve,l=a.reject,v=a.promise):v=new Promise((m,b)=>{c=m,l=b});let d=this.pendingTasks.add();return Wn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:u,resolve:c,reject:l,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.catch(m=>Promise.reject(m))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Us(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new A(4008,!1)}function xs(t){return!(t instanceof Ue)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,n,i,s,o,u){var c;this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u;let a=(c=o.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}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)):(te(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Pr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,e,n):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:te(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(n){return new(n||t)(L(V),L(re),Or("tabindex"),L(Mt),L(Dt),L(Re))};static \u0275dir=Ge({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Wr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&Vr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ze],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ze],replaceUrl:[2,"replaceUrl","replaceUrl",Ze],routerLink:"routerLink"},features:[Br,We]})}return t})(),Ro=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,n,i,s,o){this.router=e,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(Se()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;(n=this.linkInputChangesSubscription)==null||n.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=D(e).pipe(Se()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Ps(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(L(V),L(Dt),L(Mt),L(Ke),L(dn,8))};static \u0275dir=Ge({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Gr(s,dn,5),n&2){let o;Qr(o=Kr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function Ps(t){return!!t.paths}var pt=class{};var js=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof k),ie(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){var s,o,u;let i=[];for(let a of n){a.providers&&!a._injector&&(a._injector=Tt(a.providers,e,`Route: ${a.path}`));let c=(s=a._injector)!=null?s:e,l=(o=a._loadedInjector)!=null?o:c;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&i.push(this.preloadConfig(c,a)),(a.children||a._loadedRoutes)&&i.push(this.processRoutes(l,(u=a.children)!=null?u:a._loadedRoutes))}return D(i).pipe(Se())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=f(null);let s=i.pipe(O(o=>{var u;return o===null?f(void 0):(n._loadedRoutes=o.routes,n._loadedInjector=o.injector,this.processRoutes((u=o.injector)!=null?u:e,o.routes))}));if(n.loadComponent&&!n._loadedComponent){let o=this.loader.loadComponent(n);return D([s,o]).pipe(Se())}else return s})}static \u0275fac=function(n){return new(n||t)(F(V),F(Qe),F(Ce),F(pt),F(ur))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gn=new M(""),Ns=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,s,o={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||(o.scrollPositionRestoration="disabled"),o.anchorScrolling||(o.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 pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===it.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ot&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ot(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){var e,n;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(n=this.scrollEventsSubscription)==null||n.unsubscribe()}static \u0275fac=function(n){jr()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function Ls(t){return t.routerState.root}function qe(t,r){return{\u0275kind:t,\u0275providers:r}}function $s(){let t=p(It);return r=>{var s,o;let e=t.get(Fr);if(r!==e.components[0])return;let n=t.get(V),i=t.get(Qn);t.get(hr)===1&&n.initialNavigation(),(s=t.get(Kn,null,wt.Optional))==null||s.setUpPreloading(),(o=t.get(Gn,null,wt.Optional))==null||o.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Qn=new M("",{factory:()=>new W}),hr=new M("",{providedIn:"root",factory:()=>1});function ks(){return qe(2,[{provide:hr,useValue:0},{provide:Ot,multi:!0,deps:[It],useFactory:r=>{let e=r.get(Xr,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let i=r.get(V),s=r.get(Qn);Wn(i,()=>{n(!0)}),r.get(lr).afterPreactivation=()=>(n(!0),s.closed?f(void 0):s),i.initialNavigation()}))}}])}function _s(){return qe(3,[{provide:Ot,multi:!0,useFactory:()=>{let r=p(V);return()=>{r.setUpLocationChangeListener()}}},{provide:hr,useValue:2}])}var Kn=new M("");function zs(t){return qe(0,[{provide:Kn,useExisting:js},{provide:pt,useExisting:t}])}function Fs(){return qe(8,[un,{provide:gt,useExisting:un}])}function qs(t){let r=[{provide:qn,useValue:bs},{provide:Bn,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return qe(9,r)}var fn=new M("ROUTER_FORROOT_GUARD"),Bs=[we,{provide:$e,useClass:fe},V,_e,{provide:re,useFactory:Ls,deps:[V]},ur,[]],wo=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[Bs,[],{provide:ft,multi:!0,useValue:e},{provide:fn,useFactory:Gs,deps:[[V,new Mr,new Tr]]},n!=null&&n.errorHandler?{provide:Vn,useValue:n.errorHandler}:[],{provide:Fe,useValue:n||{}},n!=null&&n.useHash?Hs():Ws(),Vs(),n!=null&&n.preloadingStrategy?zs(n.preloadingStrategy).\u0275providers:[],n!=null&&n.initialNavigation?Qs(n):[],n!=null&&n.bindToComponentInputs?Fs().\u0275providers:[],n!=null&&n.enableViewTransitions?qs().\u0275providers:[],Ks()]}}static forChild(e){return{ngModule:t,providers:[{provide:ft,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)(F(fn,8))};static \u0275mod=$r({type:t});static \u0275inj=Ar({})}return t})();function Vs(){return{provide:Gn,useFactory:()=>{let t=p(tn),r=p(At),e=p(Fe),n=p(lr),i=p($e);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ns(i,n,t,r,e)}}}function Hs(){return{provide:Re,useClass:en}}function Ws(){return{provide:Re,useClass:Jr}}function Gs(t){return"guarded"}function Qs(t){return[t.initialNavigation==="disabled"?_s().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ks().\u0275providers:[]]}var pn=new M("");function Ks(){return[{provide:pn,useFactory:$s},{provide:zr,multi:!0,useExisting:pn}]}export{k as a,re as b,Mi as c,V as d,dn as e,Ro as f,wo as g};
@@ -0,0 +1,5 @@
1
+ import{a as hn}from"./chunk-QHPDGSZ6.js";import{$b as li,Aa as nn,Ca as ie,Da as Mt,Db as ei,E as L,Eb as ti,Ec as dn,F as qi,Fa as T,Ga as re,H as Re,Hb as on,Hc as ze,I as Jt,Ib as ii,J as wt,Ja as J,Kb as st,Lb as Ne,Mb as Ct,Nc as Nt,O as $e,Ob as W,Pb as _e,Q as Yi,Ra as fe,Rb as ni,S as Zi,Sa as Tt,Sb as oi,Sc as le,Ta as ot,Ub as si,Vb as ri,Wb as Le,Xb as We,Yb as ai,Zb as sn,_b as rn,a as yt,aa as qt,ac as ae,b as Qt,ba as k,ca as it,cc as me,da as Ot,dc as ge,ec as Rt,fc as St,ga as Yt,gc as xe,ha as K,hc as an,hd as un,ia as I,ib as je,ic as ve,jc as ye,k as bt,ka as en,lb as It,mc as ln,n as X,na as u,nc as ci,o as Ki,oc as di,p as Qi,r as tt,rb as Se,sb as C,ta as Zt,tb as H,va as tn,vc as ui,wa as nt,x as Ce,xa as Dt,ya as Et,z as Ji,zc as cn}from"./chunk-TXOB7R5K.js";function xt(t){t||(tn(xt),t=u(Mt));let e=new bt(s=>t.onDestroy(s.next.bind(s)));return s=>s.pipe(k(e))}var R="top",U="bottom",B="right",N="left",Ft="auto",be=[R,U,B,N],ce="start",Fe="end",pn="clippingParents",kt="viewport",Xe="popper",fn="reference",hi=be.reduce(function(t,e){return t.concat([e+"-"+ce,e+"-"+Fe])},[]),Bt=[].concat(be,[Ft]).reduce(function(t,e){return t.concat([e,e+"-"+ce,e+"-"+Fe])},[]),uo="beforeRead",ho="read",po="afterRead",fo="beforeMain",_o="main",mo="afterMain",go="beforeWrite",vo="write",yo="afterWrite",_n=[uo,ho,po,fo,_o,mo,go,vo,yo];function P(t){return t?(t.nodeName||"").toLowerCase():null}function O(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function q(t){var e=O(t).Element;return t instanceof e||t instanceof Element}function x(t){var e=O(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ke(t){if(typeof ShadowRoot>"u")return!1;var e=O(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function bo(t){var e=t.state;Object.keys(e.elements).forEach(function(s){var i=e.styles[s]||{},n=e.attributes[s]||{},o=e.elements[s];!x(o)||!P(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(a){var r=n[a];r===!1?o.removeAttribute(a):o.setAttribute(a,r===!0?"":r)}))})}function wo(t){var e=t.state,s={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,s.popper),e.styles=s,e.elements.arrow&&Object.assign(e.elements.arrow.style,s.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:s[i]),r=a.reduce(function(l,d){return l[d]="",l},{});!x(n)||!P(n)||(Object.assign(n.style,r),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}var mn={name:"applyStyles",enabled:!0,phase:"write",fn:bo,effect:wo,requires:["computeStyles"]};function A(t){return t.split("-")[0]}var ne=Math.max,ke=Math.min,de=Math.round;function Qe(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rt(){return!/^((?!chrome|android).)*safari/i.test(Qe())}function Y(t,e,s){e===void 0&&(e=!1),s===void 0&&(s=!1);var i=t.getBoundingClientRect(),n=1,o=1;e&&x(t)&&(n=t.offsetWidth>0&&de(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&de(i.height)/t.offsetHeight||1);var a=q(t)?O(t):window,r=a.visualViewport,l=!rt()&&s,d=(i.left+(l&&r?r.offsetLeft:0))/n,c=(i.top+(l&&r?r.offsetTop:0))/o,f=i.width/n,p=i.height/o;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function Be(t){var e=Y(t),s=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-s)<=1&&(s=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:i}}function at(t,e){var s=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(s&&Ke(s)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function z(t){return O(t).getComputedStyle(t)}function pi(t){return["table","td","th"].indexOf(P(t))>=0}function V(t){return((q(t)?t.ownerDocument:t.document)||window.document).documentElement}function ue(t){return P(t)==="html"?t:t.assignedSlot||t.parentNode||(Ke(t)?t.host:null)||V(t)}function gn(t){return!x(t)||z(t).position==="fixed"?null:t.offsetParent}function Oo(t){var e=/firefox/i.test(Qe()),s=/Trident/i.test(Qe());if(s&&x(t)){var i=z(t);if(i.position==="fixed")return null}var n=ue(t);for(Ke(n)&&(n=n.host);x(n)&&["html","body"].indexOf(P(n))<0;){var o=z(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function oe(t){for(var e=O(t),s=gn(t);s&&pi(s)&&z(s).position==="static";)s=gn(s);return s&&(P(s)==="html"||P(s)==="body"&&z(s).position==="static")?e:s||Oo(t)||e}function Pe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ae(t,e,s){return ne(t,ke(e,s))}function vn(t,e,s){var i=Ae(t,e,s);return i>s?s:i}function lt(){return{top:0,right:0,bottom:0,left:0}}function ct(t){return Object.assign({},lt(),t)}function dt(t,e){return e.reduce(function(s,i){return s[i]=t,s},{})}var Do=function(e,s){return e=typeof e=="function"?e(Object.assign({},s.rects,{placement:s.placement})):e,ct(typeof e!="number"?e:dt(e,be))};function Eo(t){var e,s=t.state,i=t.name,n=t.options,o=s.elements.arrow,a=s.modifiersData.popperOffsets,r=A(s.placement),l=Pe(r),d=[N,B].indexOf(r)>=0,c=d?"height":"width";if(!(!o||!a)){var f=Do(n.padding,s),p=Be(o),h=l==="y"?R:N,m=l==="y"?U:B,v=s.rects.reference[c]+s.rects.reference[l]-a[l]-s.rects.popper[c],g=a[l]-s.rects.reference[l],w=oe(o),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,M=v/2-g/2,_=f[h],y=E-p[c]-f[m],b=E/2-p[c]/2+M,D=Ae(_,b,y),G=l;s.modifiersData[i]=(e={},e[G]=D,e.centerOffset=D-b,e)}}function Mo(t){var e=t.state,s=t.options,i=s.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||at(e.elements.popper,n)&&(e.elements.arrow=n))}var fi={name:"arrow",enabled:!0,phase:"main",fn:Eo,effect:Mo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var To={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Io(t,e){var s=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:de(s*n)/n||0,y:de(i*n)/n||0}}function yn(t){var e,s=t.popper,i=t.popperRect,n=t.placement,o=t.variation,a=t.offsets,r=t.position,l=t.gpuAcceleration,d=t.adaptive,c=t.roundOffsets,f=t.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,v=m===void 0?0:m,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var w=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),M=N,_=R,y=window;if(d){var b=oe(s),D="clientHeight",G="clientWidth";if(b===O(s)&&(b=V(s),z(b).position!=="static"&&r==="absolute"&&(D="scrollHeight",G="scrollWidth")),b=b,n===R||(n===N||n===B)&&o===Fe){_=U;var F=f&&b===y&&y.visualViewport?y.visualViewport.height:b[D];v-=F-i.height,v*=l?1:-1}if(n===N||(n===R||n===U)&&o===Fe){M=B;var S=f&&b===y&&y.visualViewport?y.visualViewport.width:b[G];h-=S-i.width,h*=l?1:-1}}var $=Object.assign({position:r},d&&To),ee=c===!0?Io({x:h,y:v},O(s)):{x:h,y:v};if(h=ee.x,v=ee.y,l){var j;return Object.assign({},$,(j={},j[_]=E?"0":"",j[M]=w?"0":"",j.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",j))}return Object.assign({},$,(e={},e[_]=E?v+"px":"",e[M]=w?h+"px":"",e.transform="",e))}function Co(t){var e=t.state,s=t.options,i=s.gpuAcceleration,n=i===void 0?!0:i,o=s.adaptive,a=o===void 0?!0:o,r=s.roundOffsets,l=r===void 0?!0:r,d={placement:A(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,yn(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,yn(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var bn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Co,data:{}};var Pt={passive:!0};function Ro(t){var e=t.state,s=t.instance,i=t.options,n=i.scroll,o=n===void 0?!0:n,a=i.resize,r=a===void 0?!0:a,l=O(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(c){c.addEventListener("scroll",s.update,Pt)}),r&&l.addEventListener("resize",s.update,Pt),function(){o&&d.forEach(function(c){c.removeEventListener("scroll",s.update,Pt)}),r&&l.removeEventListener("resize",s.update,Pt)}}var wn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ro,data:{}};var So={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(t){return t.replace(/left|right|bottom|top/g,function(e){return So[e]})}var No={start:"end",end:"start"};function At(t){return t.replace(/start|end/g,function(e){return No[e]})}function Ge(t){var e=O(t),s=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:s,scrollTop:i}}function He(t){return Y(V(t)).left+Ge(t).scrollLeft}function _i(t,e){var s=O(t),i=V(t),n=s.visualViewport,o=i.clientWidth,a=i.clientHeight,r=0,l=0;if(n){o=n.width,a=n.height;var d=rt();(d||!d&&e==="fixed")&&(r=n.offsetLeft,l=n.offsetTop)}return{width:o,height:a,x:r+He(t),y:l}}function mi(t){var e,s=V(t),i=Ge(t),n=(e=t.ownerDocument)==null?void 0:e.body,o=ne(s.scrollWidth,s.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=ne(s.scrollHeight,s.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+He(t),l=-i.scrollTop;return z(n||s).direction==="rtl"&&(r+=ne(s.clientWidth,n?n.clientWidth:0)-o),{width:o,height:a,x:r,y:l}}function Ue(t){var e=z(t),s=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+n+i)}function Gt(t){return["html","body","#document"].indexOf(P(t))>=0?t.ownerDocument.body:x(t)&&Ue(t)?t:Gt(ue(t))}function we(t,e){var s;e===void 0&&(e=[]);var i=Gt(t),n=i===((s=t.ownerDocument)==null?void 0:s.body),o=O(i),a=n?[o].concat(o.visualViewport||[],Ue(i)?i:[]):i,r=e.concat(a);return n?r:r.concat(we(ue(a)))}function qe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xo(t,e){var s=Y(t,!1,e==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}function On(t,e,s){return e===kt?qe(_i(t,s)):q(e)?xo(e,s):qe(mi(V(t)))}function Fo(t){var e=we(ue(t)),s=["absolute","fixed"].indexOf(z(t).position)>=0,i=s&&x(t)?oe(t):t;return q(i)?e.filter(function(n){return q(n)&&at(n,i)&&P(n)!=="body"}):[]}function gi(t,e,s,i){var n=e==="clippingParents"?Fo(t):[].concat(e),o=[].concat(n,[s]),a=o[0],r=o.reduce(function(l,d){var c=On(t,d,i);return l.top=ne(c.top,l.top),l.right=ke(c.right,l.right),l.bottom=ke(c.bottom,l.bottom),l.left=ne(c.left,l.left),l},On(t,a,i));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function ut(t){var e=t.reference,s=t.element,i=t.placement,n=i?A(i):null,o=i?Z(i):null,a=e.x+e.width/2-s.width/2,r=e.y+e.height/2-s.height/2,l;switch(n){case R:l={x:a,y:e.y-s.height};break;case U:l={x:a,y:e.y+e.height};break;case B:l={x:e.x+e.width,y:r};break;case N:l={x:e.x-s.width,y:r};break;default:l={x:e.x,y:e.y}}var d=n?Pe(n):null;if(d!=null){var c=d==="y"?"height":"width";switch(o){case ce:l[d]=l[d]-(e[c]/2-s[c]/2);break;case Fe:l[d]=l[d]+(e[c]/2-s[c]/2);break;default:}}return l}function Oe(t,e){e===void 0&&(e={});var s=e,i=s.placement,n=i===void 0?t.placement:i,o=s.strategy,a=o===void 0?t.strategy:o,r=s.boundary,l=r===void 0?pn:r,d=s.rootBoundary,c=d===void 0?kt:d,f=s.elementContext,p=f===void 0?Xe:f,h=s.altBoundary,m=h===void 0?!1:h,v=s.padding,g=v===void 0?0:v,w=ct(typeof g!="number"?g:dt(g,be)),E=p===Xe?fn:Xe,M=t.rects.popper,_=t.elements[m?E:p],y=gi(q(_)?_:_.contextElement||V(t.elements.popper),l,c,a),b=Y(t.elements.reference),D=ut({reference:b,element:M,strategy:"absolute",placement:n}),G=qe(Object.assign({},M,D)),F=p===Xe?G:b,S={top:y.top-F.top+w.top,bottom:F.bottom-y.bottom+w.bottom,left:y.left-F.left+w.left,right:F.right-y.right+w.right},$=t.modifiersData.offset;if(p===Xe&&$){var ee=$[n];Object.keys(S).forEach(function(j){var De=[B,U].indexOf(j)>=0?1:-1,Ee=[R,U].indexOf(j)>=0?"y":"x";S[j]+=ee[Ee]*De})}return S}function vi(t,e){e===void 0&&(e={});var s=e,i=s.placement,n=s.boundary,o=s.rootBoundary,a=s.padding,r=s.flipVariations,l=s.allowedAutoPlacements,d=l===void 0?Bt:l,c=Z(i),f=c?r?hi:hi.filter(function(m){return Z(m)===c}):be,p=f.filter(function(m){return d.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,v){return m[v]=Oe(t,{placement:v,boundary:n,rootBoundary:o,padding:a})[A(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function ko(t){if(A(t)===Ft)return[];var e=Je(t);return[At(t),e,At(e)]}function Bo(t){var e=t.state,s=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=s.mainAxis,o=n===void 0?!0:n,a=s.altAxis,r=a===void 0?!0:a,l=s.fallbackPlacements,d=s.padding,c=s.boundary,f=s.rootBoundary,p=s.altBoundary,h=s.flipVariations,m=h===void 0?!0:h,v=s.allowedAutoPlacements,g=e.options.placement,w=A(g),E=w===g,M=l||(E||!m?[Je(g)]:ko(g)),_=[g].concat(M).reduce(function(Ve,pe){return Ve.concat(A(pe)===Ft?vi(e,{placement:pe,boundary:c,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:v}):pe)},[]),y=e.rects.reference,b=e.rects.popper,D=new Map,G=!0,F=_[0],S=0;S<_.length;S++){var $=_[S],ee=A($),j=Z($)===ce,De=[R,U].indexOf(ee)>=0,Ee=De?"width":"height",Q=Oe(e,{placement:$,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),te=De?j?B:N:j?U:R;y[Ee]>b[Ee]&&(te=Je(te));var ft=Je(te),Me=[];if(o&&Me.push(Q[ee]<=0),r&&Me.push(Q[te]<=0,Q[ft]<=0),Me.every(function(Ve){return Ve})){F=$,G=!1;break}D.set($,Me)}if(G)for(var _t=m?3:1,Wt=function(pe){var et=_.find(function(gt){var Te=D.get(gt);if(Te)return Te.slice(0,pe).every(function(zt){return zt})});if(et)return F=et,"break"},Ze=_t;Ze>0;Ze--){var mt=Wt(Ze);if(mt==="break")break}e.placement!==F&&(e.modifiersData[i]._skip=!0,e.placement=F,e.reset=!0)}}var yi={name:"flip",enabled:!0,phase:"main",fn:Bo,requiresIfExists:["offset"],data:{_skip:!1}};function Po(t,e,s){var i=A(t),n=[N,R].indexOf(i)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},e,{placement:t})):s,a=o[0],r=o[1];return a=a||0,r=(r||0)*n,[N,B].indexOf(i)>=0?{x:r,y:a}:{x:a,y:r}}function Ao(t){var e=t.state,s=t.options,i=t.name,n=s.offset,o=n===void 0?[0,0]:n,a=Bt.reduce(function(c,f){return c[f]=Po(f,e.rects,o),c},{}),r=a[e.placement],l=r.x,d=r.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=a}var bi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ao};function Go(t){var e=t.state,s=t.name;e.modifiersData[s]=ut({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Dn={name:"popperOffsets",enabled:!0,phase:"read",fn:Go,data:{}};function wi(t){return t==="x"?"y":"x"}function Ho(t){var e=t.state,s=t.options,i=t.name,n=s.mainAxis,o=n===void 0?!0:n,a=s.altAxis,r=a===void 0?!1:a,l=s.boundary,d=s.rootBoundary,c=s.altBoundary,f=s.padding,p=s.tether,h=p===void 0?!0:p,m=s.tetherOffset,v=m===void 0?0:m,g=Oe(e,{boundary:l,rootBoundary:d,padding:f,altBoundary:c}),w=A(e.placement),E=Z(e.placement),M=!E,_=Pe(w),y=wi(_),b=e.modifiersData.popperOffsets,D=e.rects.reference,G=e.rects.popper,F=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,S=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if(b){if(o){var j,De=_==="y"?R:N,Ee=_==="y"?U:B,Q=_==="y"?"height":"width",te=b[_],ft=te+g[De],Me=te-g[Ee],_t=h?-G[Q]/2:0,Wt=E===ce?D[Q]:G[Q],Ze=E===ce?-G[Q]:-D[Q],mt=e.elements.arrow,Ve=h&&mt?Be(mt):{width:0,height:0},pe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:lt(),et=pe[De],gt=pe[Ee],Te=Ae(0,D[Q],Ve[Q]),zt=M?D[Q]/2-_t-Te-et-S.mainAxis:Wt-Te-et-S.mainAxis,oo=M?-D[Q]/2+_t+Te+gt+S.mainAxis:Ze+Te+gt+S.mainAxis,Xt=e.elements.arrow&&oe(e.elements.arrow),so=Xt?_==="y"?Xt.clientTop||0:Xt.clientLeft||0:0,Hi=(j=$==null?void 0:$[_])!=null?j:0,ro=te+zt-Hi-so,ao=te+oo-Hi,Ui=Ae(h?ke(ft,ro):ft,te,h?ne(Me,ao):Me);b[_]=Ui,ee[_]=Ui-te}if(r){var Vi,lo=_==="x"?R:N,co=_==="x"?U:B,Ie=b[y],vt=y==="y"?"height":"width",$i=Ie+g[lo],ji=Ie-g[co],Kt=[R,N].indexOf(w)!==-1,Li=(Vi=$==null?void 0:$[y])!=null?Vi:0,Wi=Kt?$i:Ie-D[vt]-G[vt]-Li+S.altAxis,zi=Kt?Ie+D[vt]+G[vt]-Li-S.altAxis:ji,Xi=h&&Kt?vn(Wi,Ie,zi):Ae(h?Wi:$i,Ie,h?zi:ji);b[y]=Xi,ee[y]=Xi-Ie}e.modifiersData[i]=ee}}var Oi={name:"preventOverflow",enabled:!0,phase:"main",fn:Ho,requiresIfExists:["offset"]};function Di(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ei(t){return t===O(t)||!x(t)?Ge(t):Di(t)}function Uo(t){var e=t.getBoundingClientRect(),s=de(e.width)/t.offsetWidth||1,i=de(e.height)/t.offsetHeight||1;return s!==1||i!==1}function Mi(t,e,s){s===void 0&&(s=!1);var i=x(e),n=x(e)&&Uo(e),o=V(e),a=Y(t,n,s),r={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!s)&&((P(e)!=="body"||Ue(o))&&(r=Ei(e)),x(e)?(l=Y(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=He(o))),{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}function Vo(t){var e=new Map,s=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function n(o){s.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(r){if(!s.has(r)){var l=e.get(r);l&&n(l)}}),i.push(o)}return t.forEach(function(o){s.has(o.name)||n(o)}),i}function Ti(t){var e=Vo(t);return _n.reduce(function(s,i){return s.concat(e.filter(function(n){return n.phase===i}))},[])}function Ii(t){var e;return function(){return e||(e=new Promise(function(s){Promise.resolve().then(function(){e=void 0,s(t())})})),e}}function Ci(t){var e=t.reduce(function(s,i){var n=s[i.name];return s[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,s},{});return Object.keys(e).map(function(s){return e[s]})}var En={placement:"bottom",modifiers:[],strategy:"absolute"};function Mn(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Tn(t){t===void 0&&(t={});var e=t,s=e.defaultModifiers,i=s===void 0?[]:s,n=e.defaultOptions,o=n===void 0?En:n;return function(r,l,d){d===void 0&&(d=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},En,o),modifiersData:{},elements:{reference:r,popper:l},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(w){var E=typeof w=="function"?w(c.options):w;v(),c.options=Object.assign({},o,c.options,E),c.scrollParents={reference:q(r)?we(r):r.contextElement?we(r.contextElement):[],popper:we(l)};var M=Ti(Ci([].concat(i,c.options.modifiers)));return c.orderedModifiers=M.filter(function(_){return _.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var w=c.elements,E=w.reference,M=w.popper;if(Mn(E,M)){c.rects={reference:Mi(E,oe(M),c.options.strategy==="fixed"),popper:Be(M)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(S){return c.modifiersData[S.name]=Object.assign({},S.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var y=c.orderedModifiers[_],b=y.fn,D=y.options,G=D===void 0?{}:D,F=y.name;typeof b=="function"&&(c=b({state:c,options:G,name:F,instance:h})||c)}}}},update:Ii(function(){return new Promise(function(g){h.forceUpdate(),g(c)})}),destroy:function(){v(),p=!0}};if(!Mn(r,l))return h;h.setOptions(d).then(function(g){!p&&d.onFirstUpdate&&d.onFirstUpdate(g)});function m(){c.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,M=E===void 0?{}:E,_=g.effect;if(typeof _=="function"){var y=_({state:c,name:w,instance:h,options:M}),b=function(){};f.push(y||b)}})}function v(){f.forEach(function(g){return g()}),f=[]}return h}}var $o=[wn,Dn,bn,mn],Ri=Tn({defaultModifiers:$o});var Fi=["*"];function jo(t,e){if(t&1){let s=li();Le(0,"button",1),me("click",function(){Dt(s);let n=ge();return Et(n.close())}),We()}}var Lo=["dialog"];function Wo(t,e){if(t&1&&(Le(0,"span"),ci(1),We()),t&2){let s=ge().$implicit,i=ge();_e(i.highlightClass),je(),di(s)}}function zo(t,e){if(t&1&&(sn(0),ci(1),rn()),t&2){let s=ge().$implicit;je(),di(s)}}function Xo(t,e){if(t&1&&st(0,Wo,2,4,"span",0)(1,zo,2,1,"ng-container"),t&2){let s=e.$index;ni(s%2!==0?0:1)}}var Ko=(t,e,s)=>({result:t,term:e,formatter:s});function Qo(t,e){if(t&1&&ai(0,"ngb-highlight",2),t&2){let s=e.result,i=e.term,n=e.formatter;Ct("result",n(s))("term",i)}}function Jo(t,e){}function qo(t,e){if(t&1){let s=li();Le(0,"button",3),me("mouseenter",function(){let n=Dt(s).$index,o=ge();return Et(o.markActive(n))})("click",function(){let n=Dt(s).$implicit,o=ge();return Et(o.select(n))}),st(1,Jo,0,0,"ng-template",4),We()}if(t&2){let s=e.$implicit,i=e.$index,n=ge(),o=ln(1);W("active",i===n.activeIdx),Ct("id",n.id+"-"+i),je(),Ct("ngTemplateOutlet",n.resultTemplate||o)("ngTemplateOutletContext",cn(5,Ko,s,n.term,n.formatter))}}var Fn={animation:!0,transitionTimerDelayMs:5},pt=(()=>{let e=class e{constructor(){this.animation=Fn.animation}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yo=(()=>{let e=class e{constructor(){this._ngbConfig=u(pt),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){var i;return(i=this._animation)!=null?i:this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Zo(t){let{transitionDelay:e,transitionDuration:s}=window.getComputedStyle(t),i=parseFloat(e),n=parseFloat(s);return(i+n)*1e3}function ht(t){return t!=null?`${t}`:""}function Lt(t){return typeof t=="string"}function Vt(t){return t!=null}function es(t){return t&&t.then}function ts(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function is(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function ki(t){return(t||document.body).getBoundingClientRect()}function ns(t){return e=>new bt(s=>{let i=a=>t.run(()=>s.next(a)),n=a=>t.run(()=>s.error(a)),o=()=>t.run(()=>s.complete());return e.subscribe({next:i,error:n,complete:o})})}function In(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function kn(t=document){let e=t==null?void 0:t.activeElement;return e?e.shadowRoot?kn(e.shadowRoot):e:null}var os=()=>{},{transitionTimerDelayMs:ss}=Fn,Ht=new Map,se=(t,e,s,i)=>{let n=i.context||{},o=Ht.get(e);if(o)switch(i.runningTransition){case"continue":return Qi;case"stop":t.run(()=>o.transition$.complete()),n=Object.assign(o.context,n),Ht.delete(e)}let a=s(e,i.animation,n)||os;if(!i.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>a()),tt(void 0).pipe(ns(t));let r=new X,l=new X,d=r.pipe(Zi(!0));Ht.set(e,{transition$:r,complete:()=>{l.next(),l.complete()},context:n});let c=Zo(e);return t.runOutsideAngular(()=>{let f=L(e,"transitionend").pipe(k(d),Re(({target:h})=>h===e)),p=qi(c+ss).pipe(k(d));Jt(p,f,l).pipe(k(d)).subscribe(()=>{Ht.delete(e),t.run(()=>{a(),r.next(),r.complete()})})}),r.asObservable()};function rs(t,e){if(typeof navigator>"u")return"0px";let{classList:s}=t,i=s.contains("show");i||s.add("show"),t.style[e]="";let n=t.getBoundingClientRect()[e]+"px";return i||s.remove("show"),n}var as=(t,e,s)=>{let{direction:i,maxSize:n,dimension:o}=s,{classList:a}=t;function r(){a.add("collapse"),i==="show"?a.add("show"):a.remove("show")}if(!e){r();return}return n||(n=rs(t,o),s.maxSize=n,t.style[o]=i!=="show"?n:"0px",a.remove("collapse","collapsing","show"),ki(t),a.add("collapsing")),t.style[o]=i==="show"?n:"0px",()=>{r(),a.remove("collapsing"),t.style[o]=""}},ls=(()=>{let e=class e{constructor(){this._ngbConfig=u(pt),this.horizontal=!1}get animation(){var i;return(i=this._animation)!=null?i:this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cn=(()=>{let e=class e{constructor(){this._config=u(ls),this._element=u(J),this._zone=u(re),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new T,this.horizontal=this._config.horizontal,this.shown=new T,this.hidden=new T}set collapsed(i){this._isCollapsed!==i&&(this._isCollapsed=i,this._afterInit&&this._runTransitionWithEvents(i,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(i=this._isCollapsed){this.collapsed=!i,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(i,n){return se(this._zone,this._element.nativeElement,as,{animation:n,runningTransition:"stop",context:{direction:i?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(i,n){this._runTransition(i,n).subscribe(()=>{i?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,o){n&2&&W("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]});let t=e;return t})(),cs=0,Jd=(()=>{let e=class e{constructor(){this._vcr=u(ti),this._element=u(J).nativeElement,this._item=u(Ye),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){var i;(i=this._viewRef)==null||i.destroy(),this._viewRef=null}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(let i of this._viewRef.rootNodes)this._element.appendChild(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(n,o,a){if(n&1&&xe(a,It,7),n&2){let r;ve(r=ye())&&(o._bodyTpl=r.first)}},hostAttrs:[1,"accordion-body"]});let t=e;return t})(),ds=(()=>{let e=class e{constructor(){this.item=u(Ye),this.ngbCollapse=u(Cn)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(n,o){n&2&&(ae("id",o.item.collapseId),Ne("aria-labelledby",o.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[ii([Cn])]});let t=e;return t})(),us=(()=>{let e=class e{constructor(){this.item=u(Ye),this.accordion=u(Bn)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(n,o){n&1&&me("click",function(){return!o.item.disabled&&o.accordion.toggle(o.item.id)}),n&2&&(ae("id",o.item.toggleId),Ne("aria-controls",o.item.collapseId)("aria-expanded",!o.item.collapsed),W("collapsed",o.item.collapsed))}});let t=e;return t})(),qd=(()=>{let e=class e{constructor(){this.item=u(Ye)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(n,o){n&2&&ae("disabled",o.item.disabled)},features:[ii([us])]});let t=e;return t})(),Yd=(()=>{let e=class e{constructor(){this.item=u(Ye)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(n,o){n&2&&W("collapsed",o.item.collapsed)}});let t=e;return t})(),Ye=(()=>{let e=class e{constructor(){this._accordion=u(Bn),this._cd=u(ze),this._destroyRef=u(Mt),this._collapsed=!0,this._id=`ngb-accordion-item-${cs++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new T,this.shown=new T,this.hide=new T,this.hidden=new T}set id(i){Lt(i)&&i!==""&&(this._id=i)}set destroyOnHide(i){this._destroyOnHide=i}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(i){i?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:i}=this._collapse;i.animation=!1,i.collapsed=this.collapsed,i.animation=this._accordion.animation,i.hidden.pipe(xt(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),i.shown.pipe(xt(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(n,o,a){if(n&1&&xe(a,ds,7),n&2){let r;ve(r=ye())&&(o._collapse=r.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(n,o){n&2&&ae("id",o.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]});let t=e;return t})(),Bn=(()=>{let e=class e{constructor(){this._config=u(Yo),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new T,this.shown=new T,this.hide=new T,this.hidden=new T}toggle(i){var n;(n=this._getItem(i))==null||n.toggle()}expand(i){var n;(n=this._getItem(i))==null||n.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(i=>!i.collapsed)||this._items.first.expand():this._items.forEach(i=>i.expand()))}collapse(i){var n;(n=this._getItem(i))==null||n.collapse()}collapseAll(){var i;(i=this._items)==null||i.forEach(n=>n.collapse())}isExpanded(i){let n=this._getItem(i);return n?!n.collapsed:!1}_ensureCanExpand(i){var n;return this.closeOthers?this._items?((n=this._items.find(o=>!o.collapsed&&i!==o))==null||n.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(i){var n;return(n=this._items)==null?void 0:n.find(o=>o.id===i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(n,o,a){if(n&1&&xe(a,Ye,4),n&2){let r;ve(r=ye())&&(o._items=r)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]});let t=e;return t})();var Pn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),hs=(()=>{let e=class e{constructor(){this._ngbConfig=u(pt),this.dismissible=!0,this.type="warning"}get animation(){var i;return(i=this._animation)!=null?i:this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ps=({classList:t})=>{t.remove("show")},Zd=(()=>{let e=class e{constructor(){this._config=u(hs),this._elementRef=u(J),this._zone=u(re),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new T}close(){let i=se(this._zone,this._elementRef.nativeElement,ps,{animation:this.animation,runningTransition:"continue"});return i.subscribe(()=>this.closed.emit()),i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Se({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(n,o){n&2&&(_e("alert show"+(o.type?" alert-"+o.type:"")),W("fade",o.animation)("alert-dismissible",o.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:Fi,decls:2,vars:1,consts:()=>{let i;return i=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",i,1,"btn-close"],["type","button","aria-label",i,1,"btn-close",3,"click"]]},template:function(n,o){n&1&&(Rt(),St(0),st(1,jo,1,0,"button",0)),n&2&&(je(),ni(o.dismissible?1:-1))},styles:[`ngb-alert{display:block}
2
+ `],encapsulation:2,changeDetection:0});let t=e;return t})(),An=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var Gn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),Hn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var Ut=(t,e)=>e?e.some(s=>s.contains(t)):!1,Rn=(t,e)=>!e||is(t,e)!=null,fs=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),_s=t=>fs?()=>setTimeout(()=>t(),100):t;function Bi(t,e,s,i,n,o,a,r){s&&t.runOutsideAngular(_s(()=>{let l=p=>{let h=p.target;return p.button===2||Ut(h,a)?!1:s==="inside"?Ut(h,o)&&Rn(h,r):s==="outside"?!Ut(h,o):Rn(h,r)||!Ut(h,o)},d=L(e,"keydown").pipe(k(n),Re(p=>p.key==="Escape"),it(p=>p.preventDefault())),c=L(e,"mousedown").pipe(Ce(l),k(n)),f=L(e,"mouseup").pipe(Ot(c),Re(([p,h])=>h),Yi(0),k(n));Jt([d.pipe(Ce(p=>0)),f.pipe(Ce(p=>1))]).subscribe(p=>t.run(()=>i(p)))}))}var Un=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vn(t){let e=Array.from(t.querySelectorAll(Un)).filter(s=>s.tabIndex!==-1);return[e[0],e[e.length-1]]}var ms=(t,e,s,i=!1)=>{t.runOutsideAngular(()=>{let n=L(e,"focusin").pipe(k(s),Ce(o=>o.target));L(e,"keydown").pipe(k(s),Re(o=>o.key==="Tab"),Ot(n)).subscribe(([o,a])=>{let[r,l]=Vn(e);(a===r||a===e)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(r.focus(),o.preventDefault())}),i&&L(e,"click").pipe(k(s),Ot(n),Ce(o=>o[1])).subscribe(o=>o.focus())})},gs=(()=>{let e=class e{constructor(){this._element=u(le).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vs=/\s+/,ys=/ +/gi,bs={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function ws(t,e){let[s,i]=bs[t];return e&&i||s}var Os=/^left/,Ds=/^right/,Es=/^start/,Ms=/^end/;function Ts(t,e){let[s,i]=e.split("-"),n=s.replace(Os,"start").replace(Ds,"end"),o=[n];if(i){let a=i;(s==="left"||s==="right")&&(a=a.replace(Es,"top").replace(Ms,"bottom")),o.push(`${n}-${a}`)}return t&&(o=o.map(a=>`${t}-${a}`)),o.join(" ")}function Sn({placement:t,baseClass:e},s){let i=Array.isArray(t)?t:t.split(vs),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=i.findIndex(d=>d==="auto");o>=0&&n.forEach(function(d){i.find(c=>c.search("^"+d)!==-1)==null&&i.splice(o++,1,d)});let a=i.map(d=>ws(d,s.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let c=new RegExp(e+"(-[a-z]+)*","gi"),f=d.elements.popper,p=d.placement,h=f.className;h=h.replace(c,""),h+=` ${Ts(e,p)}`,h=h.trim().replace(ys," "),f.className=h}},yi,Oi,fi,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Nn(t){return t}function Pi(){let t=u(gs),e=null;return{createPopper(s){if(!e){let n=(s.updatePopperOptions||Nn)(Sn(s,t));e=Ri(s.hostElement,s.targetElement,n)}},update(){e&&e.update()},setOptions(s){if(e){let n=(s.updatePopperOptions||Nn)(Sn(s,t));e.setOptions(n)}},destroy(){e&&(e.destroy(),e=null)}}}function Ai(t){return e=>(e.modifiers.push(bi,{name:"offset",options:{offset:()=>t}}),e)}var eu=new Date(1882,10,12),tu=new Date(2174,10,25);var iu=1e3*60*60*24;var Gi=1080,Is=24*Gi,Cs=12*Gi+793,nu=29*Is+Cs,ou=11*Gi+204;var $n=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),Rs=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=i=>i,this.container=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jn=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=u(J).nativeElement,this.tabindex=0}set disabled(i){this._disabled=i===""||i===!0}get disabled(){return this._disabled}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(n,o){n&2&&(ae("tabIndex",o.disabled?-1:o.tabindex),W("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"}});let t=e;return t})(),su=(()=>{let e=class e{constructor(){this.item=u(jn)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(n,o){n&2&&ae("disabled",o.item.disabled)}});let t=e;return t})(),Ss=(()=>{let e=class e{constructor(){this.dropdown=u(Ln),this.nativeElement=u(J).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(n,o,a){if(n&1&&xe(a,jn,4),n&2){let r;ve(r=ye())&&(o.menuItems=r)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(n,o){n&1&&me("keydown.ArrowUp",function(r){return o.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return o.dropdown.onKeyDown(r)})("keydown.Home",function(r){return o.dropdown.onKeyDown(r)})("keydown.End",function(r){return o.dropdown.onKeyDown(r)})("keydown.Enter",function(r){return o.dropdown.onKeyDown(r)})("keydown.Space",function(r){return o.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return o.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return o.dropdown.onKeyDown(r)}),n&2&&W("show",o.dropdown.isOpen())}});let t=e;return t})(),Si=(()=>{let e=class e{constructor(){this.dropdown=u(Ln),this.nativeElement=u(J).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&2&&(Ne("aria-expanded",o.dropdown.isOpen()),W("show",o.dropdown.isOpen()))}});let t=e;return t})(),ru=(()=>{let e=class e extends Si{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=nn(e)))(o||e)}})(),e.\u0275dir=H({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&1&&me("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(r){return o.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return o.dropdown.onKeyDown(r)})("keydown.Home",function(r){return o.dropdown.onKeyDown(r)})("keydown.End",function(r){return o.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return o.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return o.dropdown.onKeyDown(r)}),n&2&&(Ne("aria-expanded",o.dropdown.isOpen()),W("show",o.dropdown.isOpen()))},features:[ui([{provide:Si,useExisting:Yt(()=>e)}]),on]});let t=e;return t})(),Ln=(()=>{let e=class e{constructor(){this._changeDetector=u(ze),this._config=u(Rs),this._document=u(le),this._injector=u(ie),this._ngZone=u(re),this._nativeElement=u(J).nativeElement,this._destroyCloseHandlers$=new X,this._bodyContainer=null,this._positioning=Pi(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new T}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){ot(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:fe.Write,injector:this._injector})}ngOnChanges(i){if(i.container&&this._open&&this._applyContainer(this.container),i.placement&&!i.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),i.dropdownClass){let{currentValue:n,previousValue:o}=i.dropdownClass;this._applyCustomDropdownClass(n,o)}i.autoClose&&this._open&&(this.autoClose=i.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(Ai([0,2])(i))}),this._applyPlacementClasses(),this._afterRenderRef=Tt(()=>{this._positionMenu()},{phase:fe.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Bi(this._ngZone,this._document,this.autoClose,i=>{this.close(),i===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){var i;this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),(i=this._afterRenderRef)==null||i.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(i){let{key:n}=i,o=this._getMenuElements(),a=-1,r=null,l=this._isEventFromToggle(i);if(!l&&o.length&&o.forEach((d,c)=>{d.contains(i.target)&&(r=d),d===kn(this._document)&&(a=c)}),n===" "||n==="Enter"){r&&(this.autoClose===!0||this.autoClose==="inside")&&L(r,"click").pipe($e(1)).subscribe(()=>this.close());return}if(n==="Tab"){if(i.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===i.target){this.container==="body"&&!i.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):i.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(Un);i.shiftKey&&i.target===d[0]?(this._anchor.nativeElement.focus(),i.preventDefault()):!i.shiftKey&&i.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else L(i.target,"focusout").pipe($e(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||r){if(this.open(),o.length){switch(n){case"ArrowDown":a=Math.min(a+1,o.length-1);break;case"ArrowUp":if(this._isDropup()&&a===-1){a=o.length-1;break}a=Math.max(a-1,0);break;case"Home":a=0;break;case"End":a=o.length-1;break}o[a].focus()}i.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(i){return this._anchor.nativeElement.contains(i.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:i})=>!i).map(({nativeElement:i})=>i):[]}_positionMenu(){let i=this._menu;this.isOpen()&&i&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(i){return Array.isArray(i)?i[0]:i.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(i=null){if(this._resetContainer(),i==="body"){let n=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",n.style.position="static",o.style.zIndex="1055",o.appendChild(n),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(i,n){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(n&&o.classList.remove(n),i&&o.classList.add(i))}_applyPlacementClasses(i){if(this._menu){i||(i=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let n=i.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(n),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(n))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(n,o,a){if(n&1&&(xe(a,Ss,5),xe(a,Si,5)),n&2){let r;ve(r=ye())&&(o._menu=r.first),ve(r=ye())&&(o._anchor=r.first)}},hostVars:2,hostBindings:function(n,o){n&2&&W("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[nt]});let t=e;return t})();var Wn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),Ns=(()=>{let e=class e{constructor(){this._ngbConfig=u(pt),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){var i;return(i=this._animation)!=null?i:this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),he=class{constructor(e,s,i){this.nodes=e,this.viewRef=s,this.componentRef=i}},$t=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=u(le),this._applicationRef=u(ei),this._injector=u(ie),this._viewContainerRef=u(ti),this._ngZone=u(re)}open(e,s,i=!1){this._windowRef||(this._contentRef=this._getContentRef(e,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,o=new X;ot(()=>{o.next(),o.complete()},{injector:this._injector,phase:fe.MixedReadWrite});let a=o.pipe(Ji(()=>se(this._ngZone,n,({classList:r})=>r.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(e=!1){return this._windowRef?se(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:e,runningTransition:"stop"}).pipe(it(()=>{var s,i,n;(s=this._windowRef)==null||s.destroy(),(n=(i=this._contentRef)==null?void 0:i.viewRef)==null||n.destroy(),this._windowRef=null,this._contentRef=null})):tt(void 0)}_getContentRef(e,s){if(e)if(e instanceof It){let i=e.createEmbeddedView(s);return this._applicationRef.attachView(i),new he([i.rootNodes],i)}else return new he([[this._document.createTextNode(`${e}`)]]);else return new he([])}},xs=(()=>{let e=class e{constructor(){this._document=u(le)}hide(){let i=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,o=n.style,{overflow:a,paddingRight:r}=o;if(i>0){let l=parseFloat(window.getComputedStyle(n).paddingRight);o.paddingRight=`${l+i}px`}return o.overflow="hidden",()=>{i>0&&(o.paddingRight=r),o.overflow=a}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fs=(()=>{let e=class e{constructor(){this._nativeElement=u(J).nativeElement,this._zone=u(re),this._injector=u(ie)}ngOnInit(){ot(()=>se(this._zone,this._nativeElement,(i,n)=>{n&&ki(i),i.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:fe.MixedReadWrite})}hide(){return se(this._zone,this._nativeElement,({classList:i})=>i.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Se({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,o){n&2&&(_e("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),W("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(n,o){},encapsulation:2});let t=e;return t})(),jt=class{update(e){}close(e){}dismiss(e){}},ks=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Bs=["animation","backdropClass"],Ni=class{_applyWindowOptions(e,s){ks.forEach(i=>{Vt(s[i])&&(e[i]=s[i])})}_applyBackdropOptions(e,s){Bs.forEach(i=>{Vt(s[i])&&(e[i]=s[i])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(k(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(k(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,s,i,n){this._windowCmptRef=e,this._contentRef=s,this._backdropCmptRef=i,this._beforeDismiss=n,this._closed=new X,this._dismissed=new X,this._hidden=new X,e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let s=this._beforeDismiss();es(s)?s.then(i=>{i!==!1&&this._dismiss(e)},()=>{}):s!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():tt(void 0);e.subscribe(()=>{var n,o;let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),(o=(n=this._contentRef)==null?void 0:n.viewRef)==null||o.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),wt(e,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},xi=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(xi||{}),Ps=(()=>{let e=class e{constructor(){this._document=u(le),this._elRef=u(J),this._zone=u(re),this._injector=u(ie),this._closed$=new X,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new T,this.shown=new X,this.hidden=new X}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Lt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(i){this.dismissEvent.emit(i)}ngOnInit(){this._elWithFocus=this._document.activeElement,ot(()=>this._show(),{injector:this._injector,phase:fe.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:i}=this._elRef,n={animation:this.animation,runningTransition:"stop"},o=se(this._zone,i,()=>i.classList.remove("show"),n),a=se(this._zone,this._dialogEl.nativeElement,()=>{},n),r=wt(o,a);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let i={animation:this.animation,runningTransition:"continue"},n=se(this._zone,this._elRef.nativeElement,(a,r)=>{r&&ki(a),a.classList.add("show")},i),o=se(this._zone,this._dialogEl.nativeElement,()=>{},i);wt(n,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:i}=this._elRef;this._zone.runOutsideAngular(()=>{L(i,"keydown").pipe(k(this._closed$),Re(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(xi.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let n=!1;L(this._dialogEl.nativeElement,"mousedown").pipe(k(this._closed$),it(()=>n=!1),qt(()=>L(i,"mouseup").pipe(k(this._closed$),$e(1))),Re(({target:o})=>i===o)).subscribe(()=>{n=!0}),L(i,"click").pipe(k(this._closed$)).subscribe(({target:o})=>{i===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!n&&this._zone.run(()=>this.dismiss(xi.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:i}=this._elRef;if(!i.contains(document.activeElement)){let n=i.querySelector("[ngbAutofocus]"),o=Vn(i)[0];(n||o||i).focus()}}_restoreFocus(){let i=this._document.body,n=this._elWithFocus,o;n&&n.focus&&i.contains(n)?o=n:o=i,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&se(this._zone,this._elRef.nativeElement,({classList:i})=>(i.add("modal-static"),()=>i.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Se({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,o){if(n&1&&an(Lo,7),n&2){let a;ve(a=ye())&&(o._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,o){n&2&&(Ne("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),_e("modal d-block"+(o.windowClass?" "+o.windowClass:"")),W("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Fi,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(n,o){n&1&&(Rt(),Le(0,"div",1,0)(2,"div",2),St(3),We()()),n&2&&_e("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
3
+ `],encapsulation:2});let t=e;return t})(),As=(()=>{let e=class e{constructor(){this._applicationRef=u(ei),this._injector=u(ie),this._environmentInjector=u(Zt),this._document=u(le),this._scrollBar=u(xs),this._activeWindowCmptHasChanged=new X,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new T;let i=u(re);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let n=this._windowCmpts[this._windowCmpts.length-1];ms(i,n.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(n.location.nativeElement)}})}_restoreScrollBar(){let i=this._scrollBarRestoreFn;i&&(this._scrollBarRestoreFn=null,i())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(i,n,o){let a=o.container instanceof HTMLElement?o.container:Vt(o.container)?this._document.querySelector(o.container):this._document.body;if(!a)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new jt;i=o.injector||i;let l=i.get(Zt,null)||this._environmentInjector,d=this._getContentRef(i,l,n,r,o),c=o.backdrop!==!1?this._attachBackdrop(a):void 0,f=this._attachWindowComponent(a,d.nodes),p=new Ni(f,d,c,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe($e(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=h=>{p.close(h)},r.dismiss=h=>{p.dismiss(h)},r.update=h=>{p.update(h)},p.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),c&&c.instance&&c.changeDetectorRef.detectChanges(),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(i){this._modalRefs.forEach(n=>n.dismiss(i))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(i){let n=Nt(Fs,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),i.appendChild(n.location.nativeElement),n}_attachWindowComponent(i,n){let o=Nt(Ps,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_getContentRef(i,n,o,a,r){return o?o instanceof It?this._createFromTemplateRef(o,a):Lt(o)?this._createFromString(o):this._createFromComponent(i,n,o,a,r):new he([])}_createFromTemplateRef(i,n){let o={$implicit:n,close(r){n.close(r)},dismiss(r){n.dismiss(r)}},a=i.createEmbeddedView(o);return this._applicationRef.attachView(a),new he([a.rootNodes],a)}_createFromString(i){let n=this._document.createTextNode(`${i}`);return new he([[n]])}_createFromComponent(i,n,o,a,r){let l=ie.create({providers:[{provide:jt,useValue:a}],parent:i}),d=Nt(o,{environmentInjector:n,elementInjector:l}),c=d.location.nativeElement;return r.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new he([[c]],d.hostView,d)}_setAriaHidden(i){let n=i.parentElement;n&&i!==this._document.body&&(Array.from(n.children).forEach(o=>{o!==i&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((i,n)=>{i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(i){let n=()=>{let o=this._modalRefs.indexOf(i);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(i),this._activeInstances.emit(this._modalRefs),i.result.then(n,n)}_registerWindowCmpt(i){this._windowCmpts.push(i),this._activeWindowCmptHasChanged.next(),i.onDestroy(()=>{let n=this._windowCmpts.indexOf(i);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Gs=(()=>{let e=class e{constructor(){this._injector=u(ie),this._modalStack=u(As),this._config=u(Ns)}open(i,n={}){let o=yt(Qt(yt({},this._config),{animation:this._config.animation}),n);return this._modalStack.open(this._injector,i,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(i){this._modalStack.dismissAll(i)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({providers:[Gs]});let t=e;return t})();var Xn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var Kn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),Hs={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function Us(t){let e=(t||"").trim();if(e.length===0)return[];let s=e.split(/\s+/).map(n=>n.split(":")).map(n=>Hs[n[0]]||n),i=s.filter(n=>n.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:s}function Vs(t,e,s,i,n,o=0,a=0){let r=Us(e);if(r.length===0)return()=>{};let l=new Set,d=[],c;function f(h,m){t.addEventListener(h,m),d.push(()=>t.removeEventListener(h,m))}function p(h,m){clearTimeout(c),m>0?c=setTimeout(h,m):h()}for(let[h,m]of r)m?(f(h,()=>{l.add(h),p(()=>l.size>0&&i(),o)}),f(m,()=>{l.delete(h),p(()=>l.size===0&&n(),a)})):f(h,()=>s()?p(n,a):p(i,o));return()=>d.forEach(h=>h())}var Qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var Jn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var Yn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var Zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var eo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),$s=(()=>{let e=class e{constructor(){this._ngbConfig=u(pt),this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){var i;return(i=this._animation)!=null?i:this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),js=0,Ls=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Se({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(n,o){n&2&&(ae("id",o.id),_e("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),W("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Fi,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,o){n&1&&(Rt(),ai(0,"div",0),Le(1,"div",1),St(2),We())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}
4
+ `],encapsulation:2,changeDetection:0});let t=e;return t})(),au=(()=>{let e=class e{constructor(){this._config=u($s),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new T,this.hidden=new T,this._nativeElement=u(J).nativeElement,this._ngZone=u(re),this._document=u(le),this._changeDetector=u(ze),this._injector=u(ie),this._ngbTooltipWindowId=`ngb-tooltip-${js++}`,this._popupService=new $t(Ls),this._windowRef=null,this._positioning=Pi()}set ngbTooltip(i){this._ngbTooltip=i,!i&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(i){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:n,transition$:o}=this._popupService.open(this._ngbTooltip,i!=null?i:this.tooltipContext,this.animation);this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:a=>this.popperOptions(Ai([0,6])(a))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Tt(()=>{this._positioning.update()},{phase:fe.MixedReadWrite,injector:this._injector})}),Bi(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>this.shown.emit())}}close(i=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(i).subscribe(()=>{var n;this._windowRef=null,this._positioning.destroy(),(n=this._afterRenderRef)==null||n.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=Vs(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:i}){i&&this.isOpen()&&this._windowRef.setInput("tooltipClass",i.currentValue)}ngOnDestroy(){var i;this.close(!1),(i=this._unregisterListenersFn)==null||i.call(this)}_getPositionTargetElement(){return(Lt(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[nt]});let t=e;return t})(),to=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),Ws=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(i){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let n=ht(this.result),o=Array.isArray(this.term)?this.term:[this.term],a=c=>this.accentSensitive?c:In(c),r=o.map(c=>ts(a(ht(c)))).filter(c=>c),l=this.accentSensitive?n:In(n),d=r.length?l.split(new RegExp(`(${r.join("|")})`,"gmi")):[n];if(this.accentSensitive)this.parts=d;else{let c=0;this.parts=d.map(f=>n.substring(c,c+=f.length))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Se({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[nt],decls:2,vars:0,consts:[[3,"class"]],template:function(n,o){n&1&&si(0,Xo,2,1,null,null,oi),n&2&&ri(o.parts)},styles:[`.ngb-highlight{font-weight:700}
5
+ `],encapsulation:2,changeDetection:0});let t=e;return t})(),zs=new en("live announcer delay",{providedIn:"root",factory:()=>100});function xn(t,e=!1){let s=t.body.querySelector("#ngb-live");return s==null&&e&&(s=t.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),t.body.appendChild(s)),s}var Xs=(()=>{let e=class e{constructor(){this._document=u(le),this._delay=u(zs)}ngOnDestroy(){let i=xn(this._document);i&&i.parentElement.removeChild(i)}say(i){let n=xn(this._document,!0),o=this._delay;if(n!=null){n.textContent="";let a=()=>n.textContent=i;o===null?a():setTimeout(a,o)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ks=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=i=>i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qs=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=ht,this.selectEvent=new T,this.activeChangeEvent=new T}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(i){this.activeIdx=i,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(i){this.selectEvent.emit(i)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Se({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(n,o){n&1&&me("mousedown",function(r){return r.preventDefault()}),n&2&&(ae("id",o.id),_e("dropdown-menu show"+(o.popupClass?" "+o.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){n&1&&(st(0,Qo,1,2,"ng-template",null,0,dn),si(2,qo,2,9,"button",1,oi)),n&2&&(je(2),ri(o.results))},dependencies:[Ws,un],encapsulation:2});let t=e;return t})(),Js=0,lu=(()=>{let e=class e{constructor(){this._nativeElement=u(J).nativeElement,this._config=u(Ks),this._live=u(Xs),this._document=u(le),this._ngZone=u(re),this._changeDetector=u(ze),this._injector=u(ie),this._popupService=new $t(Qs),this._positioning=Pi(),this._subscription=null,this._closed$=new X,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=L(this._nativeElement,"input").pipe(Ce(i=>i.target.value)),this._resubscribeTypeahead$=new Ki(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new T,this.activeDescendant=null,this.popupId=`ngb-typeahead-${Js++}`,this._onTouched=()=>{},this._onChange=i=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:i}){i&&!i.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}writeValue(i){this._writeInputValue(this._formatItemForInput(i)),this.showHint&&(this._inputValueBackup=i)}setDisabledState(i){this._nativeElement.disabled=i}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(i){if(this.isPopupOpen())switch(i.key){case"ArrowDown":i.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":i.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let n=this._windowRef.instance.getActive();Vt(n)&&(i.preventDefault(),i.stopPropagation(),this._selectResult(n)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:i}=this._popupService.open();this._windowRef=i,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(n=>this._selectResultClosePopup(n)),this._windowRef.instance.activeChangeEvent.subscribe(n=>this.activeDescendant=n),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(Ai([0,2])(n))}),this._afterRenderRef=Tt(()=>{this._positioning.update()},{phase:fe.MixedReadWrite,injector:this._injector}))}),Bi(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{var i;this._positioning.destroy(),(i=this._afterRenderRef)==null||i.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(i){let n=!1;this.selectItem.emit({item:i,preventDefault:()=>{n=!0}}),this._resubscribeTypeahead$.next(null),n||(this.writeValue(i),this._onChange(i))}_selectResultClosePopup(i){this._selectResult(i),this._closePopup()}_showHint(){var i;if(this.showHint&&((i=this._windowRef)!=null&&i.instance.hasActive())&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),o=this._formatItemForInput(this._windowRef.instance.getActive());n===o.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+o.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,o.length])):this._writeInputValue(o)}}_formatItemForInput(i){return i!=null&&this.inputFormatter?this.inputFormatter(i):ht(i)}_writeInputValue(i){this._nativeElement.value=ht(i)}_subscribeToUserInput(){let i=this._valueChanges$.pipe(it(n=>{this._inputValueBackup=this.showHint?n:null,this._inputValueForSelectOnExact=this.selectOnExact?n:null,this._onChange(this.editable?n:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>tt([]));this._subscription=this._resubscribeTypeahead$.pipe(qt(()=>i)).subscribe(n=>{!n||n.length===0?this._closePopup():this.selectOnExact&&n.length===1&&this._formatItemForInput(n[0])===this._inputValueForSelectOnExact?(this._selectResult(n[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",n),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let o=n?n.length:0;this._live.say(o===0?"No results available":`${o} result${o===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(n,o){n&1&&me("blur",function(){return o.handleBlur()})("keydown",function(r){return o.handleKeyDown(r)}),n&2&&(ae("autocomplete",o.autocomplete),Ne("aria-autocomplete",o.showHint?"both":"list")("aria-activedescendant",o.activeDescendant)("aria-owns",o.isPopupOpen()?o.popupId:null)("aria-expanded",o.isPopupOpen()),W("open",o.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[ui([{provide:hn,useExisting:Yt(()=>e),multi:!0}]),nt]});let t=e;return t})(),io=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})();var no=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({});let t=e;return t})(),qs=[Pn,An,Gn,Hn,$n,Wn,zn,Xn,no,Kn,Qn,Jn,qn,Yn,Zn,eo,to,io],cu=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=C({type:e}),e.\u0275inj=I({imports:[qs,Pn,An,Gn,Hn,$n,Wn,zn,Xn,no,Kn,Qn,Jn,qn,Yn,Zn,eo,to,io]});let t=e;return t})();export{Jd as a,ds as b,qd as c,Yd as d,Ye as e,Bn as f,Zd as g,jn as h,su as i,Ss as j,ru as k,Ln as l,jt as m,Gs as n,au as o,lu as p,cu as q};
@@ -0,0 +1 @@
1
+ import{a as N,b as U}from"./chunk-BKUGARB4.js";import{m as H}from"./chunk-ORPWYWCL.js";import{a as D}from"./chunk-3TUBDO76.js";import{d as V}from"./chunk-NZNNTHFQ.js";import{b as E,j as z}from"./chunk-C4ENUEJD.js";import{c as I,d as w}from"./chunk-UG5DK2RQ.js";import{a as P,b as A}from"./chunk-3IX3CLER.js";import{$b as R,Bc as l,Cc as d,Dc as F,Kb as f,Lb as S,Mb as b,Rb as c,Wb as a,Xb as o,Yb as u,cc as x,dc as p,g as $,h as k,ib as i,na as _,nc as s,oc as h,pc as v,rb as y,xa as C,xc as B,ya as g}from"./chunk-TXOB7R5K.js";var M=$(N(),1),W=$(U(),1);var j=t=>({maxBackupSizeText:t});function q(t,m){if(t&1&&(a(0,"div"),u(1,"input",11),o()),t&2){let e=p(2);i(),b("value",e.selectedBackup.fileName)}}function O(t,m){if(t&1){let e=R();a(0,"div",10)(1,"input",12),x("change",function(n){C(e);let T=p(2);return g(T.handleRestoreFileInput(n.target.files))}),o(),a(2,"label",13),s(3),l(4,"translate"),o()()}if(t&2){let e=p(2);i(3),v(" ",d(4,1,(e.selectedFile==null?null:e.selectedFile.name)||"backup.label_choose_backup_file_to_restore")," ")}}function G(t,m){if(t&1&&(a(0,"div",5)(1,"div",8),u(2,"i",9),o(),a(3,"p"),s(4),l(5,"translate"),o(),a(6,"ul")(7,"li"),s(8),l(9,"translate"),o(),a(10,"li"),s(11),l(12,"translate"),o(),a(13,"li"),s(14),l(15,"translate"),o()(),f(16,q,2,1,"div")(17,O,5,3,"div",10),o()),t&2){let e=p();i(4),h(d(5,6,"backup.restore_help_one")),i(4),h(d(9,8,"backup.restore_help_two")),i(3),h(F(12,10,"backup.restore_max_size",B(15,j,e.maxFileSizeText))),i(3),h(d(15,13,"backup.restore_warning")),i(2),c(e.selectedBackup?16:-1),i(),c(e.selectedBackup?-1:17)}}function J(t,m){t&1&&u(0,"i",19)}function K(t,m){if(t&1&&(a(0,"span"),s(1),o()),t&2){let e=p(3);i(),v("",e.uploadPercent,"% - ")}}function L(t,m){t&1&&(a(0,"span"),s(1," Extracting Archive"),o())}function Q(t,m){t&1&&(a(0,"span"),s(1),l(2,"translate"),o()),t&2&&(i(),v(" ",d(2,1,"backup.label_uploading"),""))}function X(t,m){if(t&1&&(a(0,"span"),f(1,J,1,0,"i",19)(2,K,2,1,"span")(3,L,2,0,"span")(4,Q,3,3,"span"),o()),t&2){let e=p(2);i(),c(!e.uploadPercent||e.uploadPercent===100?1:-1),i(),c(e.uploadPercent&&e.uploadPercent!==100?2:-1),i(),c(e.uploadPercent===100?3:-1),i(),c(e.uploadPercent!==100?4:-1)}}function Y(t,m){t&1&&(a(0,"span"),s(1),l(2,"translate"),o()),t&2&&(i(),h(d(2,1,"form.button_restore")))}function Z(t,m){if(t&1){let e=R();a(0,"div",7)(1,"div",14)(2,"button",15),l(3,"translate"),x("click",function(){C(e);let n=p();return g(n.$activeModal.dismiss("Dismiss"))}),s(4),l(5,"translate"),o()(),u(6,"div",16),a(7,"div",17)(8,"button",18),x("click",function(){C(e);let n=p();return g(n.onRestoreBackupClick())}),f(9,X,5,4,"span")(10,Y,3,3,"span"),o()()()}if(t&2){let e=p();i(2),b("disabled",e.clicked),S("aria-label",d(3,6,"form.button_close")),i(2),v(" ",d(5,8,"form.button_close")," "),i(4),b("disabled",!e.selectedBackup&&!e.selectedFile||e.clicked),i(),c(e.clicked?9:-1),i(),c(e.clicked?-1:10)}}function ee(t,m){if(t&1){let e=R();a(0,"div",7),u(1,"div",14),a(2,"div",16)(3,"button",20),x("click",function(){C(e);let n=p();return g(n.postBackupRestart())}),s(4),l(5,"translate"),o()(),u(6,"div",17),o()}t&2&&(i(4),v(" ",d(5,1,"menu.hbrestart.title")," "))}var me=(()=>{class t{$activeModal=_(H);$api=_(E);$route=_(V);$toastr=_(z);$translate=_(P);$ws=_(D);setupWizardRestore=!1;selectedBackup=null;clicked=!1;maxFileSizeText=globalThis.backup.maxBackupSizeText;selectedFile;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;restoreArchiveType="homebridge";uploadPercent=0;term=new M.Terminal;termTarget;fitAddon=new W.FitAddon;io;ngOnInit(){return k(this,null,function*(){this.io=this.$ws.connectToNamespace("backup"),this.termTarget=document.getElementById("plugin-log-output"),this.term.open(this.termTarget),this.fitAddon.fit(),this.io.socket.on("stdout",e=>{this.term.write(e)}),this.setupWizardRestore&&(this.restoreStarted=!0,this.restoreInProgress=!0,this.startRestore())})}onRestoreBackupClick(){this.selectedBackup?this.restoreScheduledBackup():this.restoreArchiveType==="homebridge"?this.uploadHomebridgeArchive():this.restoreArchiveType==="hbfx"&&this.uploadHbfxArchive()}uploadHomebridgeArchive(){this.term.reset(),this.clicked=!0;let e=new FormData;e.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore",e).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:r=>{var n;console.error(r),this.$toastr.error(((n=r.error)==null?void 0:n.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})}restoreScheduledBackup(){return k(this,null,function*(){this.term.reset(),this.clicked=!0,this.$api.post(`/backup/scheduled-backups/${this.selectedBackup.id}/restore`,{}).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:e=>{var r;console.error(e),this.$toastr.error(((r=e.error)==null?void 0:r.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})})}startRestore(){return k(this,null,function*(){this.io.request("do-restore").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success")),this.setupWizardRestore&&this.postBackupRestart()},error:e=>{this.restoreFailed=!0,console.error(e),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}uploadHbfxArchive(){this.term.reset(),this.clicked=!0;let e=new FormData;e.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore/hbfx",e,{reportProgress:!0,observe:"events"}).subscribe({next:r=>{r.type===I.UploadProgress?this.uploadPercent=Math.round(100*r.loaded/r.total):r instanceof w&&(this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startHbfxRestore()},500),this.clicked=!1)},error:r=>{var n;this.clicked=!1,console.error(r),this.$toastr.error(((n=r.error)==null?void 0:n.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})}startHbfxRestore(){return k(this,null,function*(){this.io.request("do-restore-hbfx").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success"))},error:e=>{this.restoreFailed=!0,console.error(e),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.selectedFile.name.endsWith(".hbfx")?this.restoreArchiveType="hbfx":this.restoreArchiveType="homebridge"):delete this.selectedFile}postBackupRestart(){this.$api.put("/backup/restart",{}).subscribe({next:()=>{this.$activeModal.close(!0),this.$route.navigate(["/"])},error:()=>{}})}ngOnDestroy(){this.io.end()}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{setupWizardRestore:"setupWizardRestore",selectedBackup:"selectedBackup"},decls:13,vars:11,consts:[[1,"modal-content","hb-backup-modal"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],["id","plugin-log-output",1,"modal-body",3,"hidden"],[1,"modal-footer","justify-content-between"],[1,"text-center","mt-2","mb-3"],[1,"fas","fa-fw","fa-hard-drive","primary-text",2,"font-size","75px"],[1,"custom-file"],["type","text","disabled","",1,"form-control","custom-input",3,"value"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz, .hbfx",1,"custom-file-input",3,"change"],["for","restoreFileUpload",1,"custom-file-label"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"],[1,"fa","fa-fw","fa-circle-notch","fa-spin"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click"]],template:function(r,n){r&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),s(3),l(4,"translate"),o(),a(5,"button",3),l(6,"translate"),x("click",function(){return n.$activeModal.dismiss("Dismiss")}),a(7,"span",4),s(8,"\xD7"),o()()(),f(9,G,18,17,"div",5),u(10,"div",6),f(11,Z,11,10,"div",7)(12,ee,7,3,"div",7),o()),r&2&&(i(3),h(d(4,7,"form.button_restore")),i(2),b("disabled",n.restoreInProgress),S("aria-label",d(6,9,"form.button_close")),i(4),c(!n.restoreStarted&&!n.setupWizardRestore?9:-1),i(),b("hidden",!n.restoreStarted),i(),c(!n.restoreStarted||n.restoreFailed===!0?11:-1),i(),c(!n.restoreInProgress&&n.restoreStarted?12:-1))},dependencies:[A],encapsulation:2})}return t})();export{me as a};
@@ -0,0 +1,8 @@
1
+ import{Gb as xt,Yb as Ut,e as d,g as He,h as Lt,kc as Dt,lc as Ft,rb as _t,wa as qt}from"./chunk-TXOB7R5K.js";var zt=d((Dn,kt)=>{kt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var I=d(P=>{var st,Ve=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];P.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};P.getSymbolTotalCodewords=function(t){return Ve[t]};P.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};P.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');st=t};P.isKanjiModeEnabled=function(){return typeof st<"u"};P.toSJIS=function(t){return st(t)}});var Q=d(w=>{w.L={bit:1};w.M={bit:0};w.Q={bit:3};w.H={bit:2};function Ke(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return w.L;case"m":case"medium":return w.M;case"q":case"quartile":return w.Q;case"h":case"high":return w.H;default:throw new Error("Unknown EC Level: "+n)}}w.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};w.from=function(t,e){if(w.isValid(t))return t;try{return Ke(t)}catch{return e}}});var Kt=d((zn,Vt)=>{function Ht(){this.buffer=[],this.length=0}Ht.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e<t;e++)this.putBit((n>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Vt.exports=Ht});var Ot=d((Hn,Jt)=>{function k(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}k.prototype.set=function(n,t,e,r){let o=n*this.size+t;this.data[o]=e,r&&(this.reservedBit[o]=!0)};k.prototype.get=function(n,t){return this.data[n*this.size+t]};k.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};k.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Jt.exports=k});var Yt=d(j=>{var Je=I().getSymbolSize;j.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=Je(t),o=r===145?26:Math.ceil((r-13)/(2*e-2))*2,i=[r-7];for(let s=1;s<e-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};j.getPositions=function(t){let e=[],r=j.getRowColCoords(t),o=r.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||e.push([r[i],r[s]]);return e}});var vt=d(jt=>{var Oe=I().getSymbolSize,Qt=7;jt.getPositions=function(t){let e=Oe(t);return[[0,0],[e-Qt,0],[0,e-Qt]]}});var Gt=d(g=>{g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var b={N1:3,N2:3,N3:40,N4:10};g.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};g.from=function(t){return g.isValid(t)?parseInt(t,10):void 0};g.getPenaltyN1=function(t){let e=t.size,r=0,o=0,i=0,s=null,u=null;for(let c=0;c<e;c++){o=i=0,s=u=null;for(let l=0;l<e;l++){let a=t.get(c,l);a===s?o++:(o>=5&&(r+=b.N1+(o-5)),s=a,o=1),a=t.get(l,c),a===u?i++:(i>=5&&(r+=b.N1+(i-5)),u=a,i=1)}o>=5&&(r+=b.N1+(o-5)),i>=5&&(r+=b.N1+(i-5))}return r};g.getPenaltyN2=function(t){let e=t.size,r=0;for(let o=0;o<e-1;o++)for(let i=0;i<e-1;i++){let s=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(s===4||s===0)&&r++}return r*b.N2};g.getPenaltyN3=function(t){let e=t.size,r=0,o=0,i=0;for(let s=0;s<e;s++){o=i=0;for(let u=0;u<e;u++)o=o<<1&2047|t.get(s,u),u>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(u,s),u>=10&&(i===1488||i===93)&&r++}return r*b.N3};g.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let i=0;i<r;i++)e+=t.data[i];return Math.abs(Math.ceil(e*100/r/5)-10)*b.N4};function Ye(n,t,e){switch(n){case g.Patterns.PATTERN000:return(t+e)%2===0;case g.Patterns.PATTERN001:return t%2===0;case g.Patterns.PATTERN010:return e%3===0;case g.Patterns.PATTERN011:return(t+e)%3===0;case g.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case g.Patterns.PATTERN101:return t*e%2+t*e%3===0;case g.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case g.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}g.applyMask=function(t,e){let r=e.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,Ye(t,i,o))};g.getBestMask=function(t,e){let r=Object.keys(g.Patterns).length,o=0,i=1/0;for(let s=0;s<r;s++){e(s),g.applyMask(s,t);let u=g.getPenaltyN1(t)+g.getPenaltyN2(t)+g.getPenaltyN3(t)+g.getPenaltyN4(t);g.applyMask(s,t),u<i&&(i=u,o=s)}return o}});var ct=d(ut=>{var N=Q(),v=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],G=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ut.getBlocksCount=function(t,e){switch(e){case N.L:return v[(t-1)*4+0];case N.M:return v[(t-1)*4+1];case N.Q:return v[(t-1)*4+2];case N.H:return v[(t-1)*4+3];default:return}};ut.getTotalCodewordsCount=function(t,e){switch(e){case N.L:return G[(t-1)*4+0];case N.M:return G[(t-1)*4+1];case N.Q:return G[(t-1)*4+2];case N.H:return G[(t-1)*4+3];default:return}}});var $t=d(W=>{var z=new Uint8Array(512),$=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)z[e]=t,$[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)z[e]=z[e-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return $[t]};W.exp=function(t){return z[t]};W.mul=function(t,e){return t===0||e===0?0:z[$[t]+$[e]]}});var Wt=d(H=>{var lt=$t();H.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=lt.mul(t[o],e[i]);return r};H.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){let o=r[0];for(let s=0;s<e.length;s++)r[s]^=lt.mul(e[s],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};H.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let r=0;r<t;r++)e=H.mul(e,new Uint8Array([1,lt.exp(r)]));return e}});var te=d((jn,Xt)=>{var Zt=Wt();function at(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}at.prototype.initialize=function(t){this.degree=t,this.genPoly=Zt.generateECPolynomial(this.degree)};at.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=Zt.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};Xt.exports=at});var ft=d(ee=>{ee.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var dt=d(B=>{var ne="[0-9]+",Qe="[A-Z $%*+\\-./:]+",V="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";V=V.replace(/u/g,"\\u");var je="(?:(?![A-Z0-9 $%*+\\-./:]|"+V+`)(?:.|[\r
2
+ ]))+`;B.KANJI=new RegExp(V,"g");B.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");B.BYTE=new RegExp(je,"g");B.NUMERIC=new RegExp(ne,"g");B.ALPHANUMERIC=new RegExp(Qe,"g");var ve=new RegExp("^"+V+"$"),Ge=new RegExp("^"+ne+"$"),$e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");B.testKanji=function(t){return ve.test(t)};B.testNumeric=function(t){return Ge.test(t)};B.testAlphanumeric=function(t){return $e.test(t)}});var M=d(p=>{var We=ft(),gt=dt();p.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};p.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};p.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};p.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};p.MIXED={bit:-1};p.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!We.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};p.getBestModeForData=function(t){return gt.testNumeric(t)?p.NUMERIC:gt.testAlphanumeric(t)?p.ALPHANUMERIC:gt.testKanji(t)?p.KANJI:p.BYTE};p.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};p.isValid=function(t){return t&&t.bit&&t.ccBits};function Ze(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return p.NUMERIC;case"alphanumeric":return p.ALPHANUMERIC;case"kanji":return p.KANJI;case"byte":return p.BYTE;default:throw new Error("Unknown mode: "+n)}}p.from=function(t,e){if(p.isValid(t))return t;try{return Ze(t)}catch{return e}}});var ue=d(R=>{var Z=I(),Xe=ct(),re=Q(),S=M(),ht=ft(),ie=7973,oe=Z.getBCHDigit(ie);function tn(n,t,e){for(let r=1;r<=40;r++)if(t<=R.getCapacity(r,e,n))return r}function se(n,t){return S.getCharCountIndicator(n,t)+4}function en(n,t){let e=0;return n.forEach(function(r){let o=se(r.mode,t);e+=o+r.getBitsLength()}),e}function nn(n,t){for(let e=1;e<=40;e++)if(en(n,e)<=R.getCapacity(e,t,S.MIXED))return e}R.from=function(t,e){return ht.isValid(t)?parseInt(t,10):e};R.getCapacity=function(t,e,r){if(!ht.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=S.BYTE);let o=Z.getSymbolTotalCodewords(t),i=Xe.getTotalCodewordsCount(t,e),s=(o-i)*8;if(r===S.MIXED)return s;let u=s-se(r,t);switch(r){case S.NUMERIC:return Math.floor(u/10*3);case S.ALPHANUMERIC:return Math.floor(u/11*2);case S.KANJI:return Math.floor(u/13);case S.BYTE:default:return Math.floor(u/8)}};R.getBestVersionForData=function(t,e){let r,o=re.from(e,re.M);if(Array.isArray(t)){if(t.length>1)return nn(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return tn(r.mode,r.getLength(),o)};R.getEncodedBits=function(t){if(!ht.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;Z.getBCHDigit(e)-oe>=0;)e^=ie<<Z.getBCHDigit(e)-oe;return t<<12|e}});var fe=d(ae=>{var pt=I(),le=1335,rn=21522,ce=pt.getBCHDigit(le);ae.getEncodedBits=function(t,e){let r=t.bit<<3|e,o=r<<10;for(;pt.getBCHDigit(o)-ce>=0;)o^=le<<pt.getBCHDigit(o)-ce;return(r<<10|o)^rn}});var ge=d((Xn,de)=>{var on=M();function _(n){this.mode=on.NUMERIC,this.data=n.toString()}_.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};_.prototype.getLength=function(){return this.data.length};_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)};_.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-e;i>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,i*3+1))};de.exports=_});var pe=d((tr,he)=>{var sn=M(),mt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x(n){this.mode=sn.ALPHANUMERIC,this.data=n}x.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=mt.indexOf(this.data[e])*45;r+=mt.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(mt.indexOf(this.data[e]),6)};he.exports=x});var we=d((er,me)=>{var un=M();function U(n){this.mode=un.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}U.getBitsLength=function(t){return t*8};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)};me.exports=U});var Ee=d((nr,ye)=>{var cn=M(),ln=I();function D(n){this.mode=cn.KANJI,this.data=n}D.getBitsLength=function(t){return t*13};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=ln.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
+ Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};ye.exports=D});var Ce=d((rr,wt)=>{"use strict";var K={single_source_shortest_paths:function(n,t,e){var r={},o={};o[t]=0;var i=K.PriorityQueue.make();i.push(t,0);for(var s,u,c,l,a,m,h,y,A;!i.empty();){s=i.pop(),u=s.value,l=s.cost,a=n[u]||{};for(c in a)a.hasOwnProperty(c)&&(m=a[c],h=l+m,y=o[c],A=typeof o[c]>"u",(A||y>h)&&(o[c]=h,i.push(c,h),r[c]=u))}if(typeof e<"u"&&typeof o[e]>"u"){var T=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(T)}return r},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],r=t,o;r;)e.push(r),o=n[r],r=n[r];return e.reverse(),e},find_path:function(n,t,e){var r=K.single_source_shortest_paths(n,t,e);return K.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(n){var t=K.PriorityQueue,e={},r;n=n||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof wt<"u"&&(wt.exports=K)});var Pe=d(F=>{var f=M(),Te=ge(),Ie=pe(),Ne=we(),Me=Ee(),J=dt(),X=I(),an=Ce();function Be(n){return unescape(encodeURIComponent(n)).length}function O(n,t,e){let r=[],o;for(;(o=n.exec(e))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function Se(n){let t=O(J.NUMERIC,f.NUMERIC,n),e=O(J.ALPHANUMERIC,f.ALPHANUMERIC,n),r,o;return X.isKanjiModeEnabled()?(r=O(J.BYTE,f.BYTE,n),o=O(J.KANJI,f.KANJI,n)):(r=O(J.BYTE_KANJI,f.BYTE,n),o=[]),t.concat(e,r,o).sort(function(s,u){return s.index-u.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function yt(n,t){switch(t){case f.NUMERIC:return Te.getBitsLength(n);case f.ALPHANUMERIC:return Ie.getBitsLength(n);case f.KANJI:return Me.getBitsLength(n);case f.BYTE:return Ne.getBitsLength(n)}}function fn(n){return n.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function dn(n){let t=[];for(let e=0;e<n.length;e++){let r=n[e];switch(r.mode){case f.NUMERIC:t.push([r,{data:r.data,mode:f.ALPHANUMERIC,length:r.length},{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.ALPHANUMERIC:t.push([r,{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.KANJI:t.push([r,{data:r.data,mode:f.BYTE,length:Be(r.data)}]);break;case f.BYTE:t.push([{data:r.data,mode:f.BYTE,length:Be(r.data)}])}}return t}function gn(n,t){let e={},r={start:{}},o=["start"];for(let i=0;i<n.length;i++){let s=n[i],u=[];for(let c=0;c<s.length;c++){let l=s[c],a=""+i+c;u.push(a),e[a]={node:l,lastCount:0},r[a]={};for(let m=0;m<o.length;m++){let h=o[m];e[h]&&e[h].node.mode===l.mode?(r[h][a]=yt(e[h].lastCount+l.length,l.mode)-yt(e[h].lastCount,l.mode),e[h].lastCount+=l.length):(e[h]&&(e[h].lastCount=l.length),r[h][a]=yt(l.length,l.mode)+4+f.getCharCountIndicator(l.mode,t))}}o=u}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:e}}function Ae(n,t){let e,r=f.getBestModeForData(n);if(e=f.from(t,r),e!==f.BYTE&&e.bit<r.bit)throw new Error('"'+n+'" cannot be encoded with mode '+f.toString(e)+`.
4
+ Suggested mode is: `+f.toString(r));switch(e===f.KANJI&&!X.isKanjiModeEnabled()&&(e=f.BYTE),e){case f.NUMERIC:return new Te(n);case f.ALPHANUMERIC:return new Ie(n);case f.KANJI:return new Me(n);case f.BYTE:return new Ne(n)}}F.fromArray=function(t){return t.reduce(function(e,r){return typeof r=="string"?e.push(Ae(r,null)):r.data&&e.push(Ae(r.data,r.mode)),e},[])};F.fromString=function(t,e){let r=Se(t,X.isKanjiModeEnabled()),o=dn(r),i=gn(o,e),s=an.find_path(i.map,"start","end"),u=[];for(let c=1;c<s.length-1;c++)u.push(i.table[s[c]].node);return F.fromArray(fn(u))};F.rawSplit=function(t){return F.fromArray(Se(t,X.isKanjiModeEnabled()))}});var Re=d(be=>{var et=I(),Et=Q(),hn=Kt(),pn=Ot(),mn=Yt(),wn=vt(),At=Gt(),Tt=ct(),yn=te(),tt=ue(),En=fe(),Cn=M(),Ct=Pe();function Bn(n,t){let e=n.size,r=wn.getPositions(t);for(let o=0;o<r.length;o++){let i=r[o][0],s=r[o][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||e<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||e<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?n.set(i+u,s+c,!0,!0):n.set(i+u,s+c,!1,!0))}}function An(n){let t=n.size;for(let e=8;e<t-8;e++){let r=e%2===0;n.set(e,6,r,!0),n.set(6,e,r,!0)}}function Tn(n,t){let e=mn.getPositions(t);for(let r=0;r<e.length;r++){let o=e[r][0],i=e[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?n.set(o+s,i+u,!0,!0):n.set(o+s,i+u,!1,!0)}}function In(n,t){let e=n.size,r=tt.getEncodedBits(t),o,i,s;for(let u=0;u<18;u++)o=Math.floor(u/3),i=u%3+e-8-3,s=(r>>u&1)===1,n.set(o,i,s,!0),n.set(i,o,s,!0)}function Bt(n,t,e){let r=n.size,o=En.getEncodedBits(t,e),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?n.set(i,8,s,!0):i<8?n.set(i+1,8,s,!0):n.set(r-15+i,8,s,!0),i<8?n.set(8,r-i-1,s,!0):i<9?n.set(8,15-i-1+1,s,!0):n.set(8,15-i-1,s,!0);n.set(r-8,8,1,!0)}function Nn(n,t){let e=n.size,r=-1,o=e-1,i=7,s=0;for(let u=e-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!n.isReserved(o,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),n.set(o,u-c,l),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}function Mn(n,t,e){let r=new hn;e.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),Cn.getCharCountIndicator(c.mode,n)),c.write(r)});let o=et.getSymbolTotalCodewords(n),i=Tt.getTotalCodewordsCount(n,t),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return Sn(r,n,t)}function Sn(n,t,e){let r=et.getSymbolTotalCodewords(t),o=Tt.getTotalCodewordsCount(t,e),i=r-o,s=Tt.getBlocksCount(t,e),u=r%s,c=s-u,l=Math.floor(r/s),a=Math.floor(i/s),m=a+1,h=l-a,y=new yn(h),A=0,T=new Array(s),bt=new Array(s),rt=0,ze=new Uint8Array(n.buffer);for(let q=0;q<s;q++){let it=q<c?a:m;T[q]=ze.slice(A,A+it),bt[q]=y.encode(T[q]),A+=it,rt=Math.max(rt,it)}let ot=new Uint8Array(r),Rt=0,E,C;for(E=0;E<rt;E++)for(C=0;C<s;C++)E<T[C].length&&(ot[Rt++]=T[C][E]);for(E=0;E<h;E++)for(C=0;C<s;C++)ot[Rt++]=bt[C][E];return ot}function Pn(n,t,e,r){let o;if(Array.isArray(n))o=Ct.fromArray(n);else if(typeof n=="string"){let l=t;if(!l){let a=Ct.rawSplit(n);l=tt.getBestVersionForData(a,e)}o=Ct.fromString(n,l||40)}else throw new Error("Invalid data");let i=tt.getBestVersionForData(o,e);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
5
+ The chosen QR Code version cannot contain this amount of data.
6
+ Minimum version required to store current data is: `+i+`.
7
+ `);let s=Mn(t,e,o),u=et.getSymbolSize(t),c=new pn(u);return Bn(c,t),An(c),Tn(c,t),Bt(c,e,0),t>=7&&In(c,t),Nn(c,s),isNaN(r)&&(r=At.getBestMask(c,Bt.bind(null,c,e))),At.applyMask(r,c),Bt(c,e,r),{modules:c,version:t,errorCorrectionLevel:e,maskPattern:r,segments:o}}be.create=function(t,e){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Et.M,o,i;return typeof e<"u"&&(r=Et.from(e.errorCorrectionLevel,Et.M),o=tt.from(e.version),i=At.from(e.maskPattern),e.toSJISFunc&&et.setToSJISFunction(e.toSJISFunc)),Pn(t,o,r,i)}});var It=d(L=>{function Le(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let t=n.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+n);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push("F","F");let e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}L.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:e,color:{dark:Le(t.color.dark||"#000000ff"),light:Le(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};L.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale};L.getImageWidth=function(t,e){let r=L.getScale(t,e);return Math.floor((t+e.margin*2)*r)};L.qrToImageData=function(t,e,r){let o=e.modules.size,i=e.modules.data,s=L.getScale(o,r),u=Math.floor((o+r.margin*2)*s),c=r.margin*s,l=[r.color.light,r.color.dark];for(let a=0;a<u;a++)for(let m=0;m<u;m++){let h=(a*u+m)*4,y=r.color.light;if(a>=c&&m>=c&&a<u-c&&m<u-c){let A=Math.floor((a-c)/s),T=Math.floor((m-c)/s);y=l[i[A*o+T]?1:0]}t[h++]=y.r,t[h++]=y.g,t[h++]=y.b,t[h]=y.a}}});var qe=d(nt=>{var Nt=It();function bn(n,t,e){n.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=e,t.width=e,t.style.height=e+"px",t.style.width=e+"px"}function Rn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}nt.render=function(t,e,r){let o=r,i=e;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),e||(i=Rn()),o=Nt.getOptions(o);let s=Nt.getImageWidth(t.modules.size,o),u=i.getContext("2d"),c=u.createImageData(s,s);return Nt.qrToImageData(c.data,t,o),bn(u,i,s),u.putImageData(c,0,0),i};nt.renderToDataURL=function(t,e,r){let o=r;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),o||(o={});let i=nt.render(t,e,o),s=o.type||"image/png",u=o.rendererOpts||{};return i.toDataURL(s,u.quality)}});var Ue=d(xe=>{var Ln=It();function _e(n,t){let e=n.a/255,r=t+'="'+n.hex+'"';return e<1?r+" "+t+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function Mt(n,t,e){let r=n+t;return typeof e<"u"&&(r+=" "+e),r}function qn(n,t,e){let r="",o=0,i=!1,s=0;for(let u=0;u<n.length;u++){let c=Math.floor(u%t),l=Math.floor(u/t);!c&&!i&&(i=!0),n[u]?(s++,u>0&&c>0&&n[u-1]||(r+=i?Mt("M",c+e,.5+l+e):Mt("m",o,0),o=0,i=!1),c+1<t&&n[u+1]||(r+=Mt("h",s),s=0)):o++}return r}xe.render=function(t,e,r){let o=Ln.getOptions(e),i=t.modules.size,s=t.modules.data,u=i+o.margin*2,c=o.color.light.a?"<path "+_e(o.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+_e(o.color.dark,"stroke")+' d="'+qn(s,i,o.margin)+'"/>',a='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+a+' shape-rendering="crispEdges">'+c+l+`</svg>
8
+ `;return typeof r=="function"&&r(null,h),h}});var Fe=d(Y=>{var _n=zt(),St=Re(),De=qe(),xn=Ue();function Pt(n,t,e,r,o){let i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!_n())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(o=e,e=t,t=r=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=e,e=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(e=t,t=r=void 0):s===2&&!t.getContext&&(r=e,e=t,t=void 0),new Promise(function(c,l){try{let a=St.create(e,r);c(n(a,t,r))}catch(a){l(a)}})}try{let c=St.create(e,r);o(null,n(c,t,r))}catch(c){o(c)}}Y.create=St.create;Y.toCanvas=Pt.bind(null,De.render);Y.toDataURL=Pt.bind(null,De.renderToDataURL);Y.toString=Pt.bind(null,function(n,t,e){return xn.render(n,e)})});var ke=He(Fe(),1);var Un=["qrcode"],hr=(()=>{class n{data;qrcodeElement=xt("qrcode");ngOnChanges(){this.renderQrCode()}renderQrCode(){return Lt(this,null,function*(){if(this.data){let e=this.qrcodeElement();e.nativeElement.innerHTML=yield(0,ke.toString)(this.data,{type:"svg",margin:0,color:{light:"#ffffff00",dark:document.body.classList.contains("dark-mode")?"#FFF":"#000"}}),e.nativeElement.querySelector("svg").querySelector("path").classList.add("qr-code-theme-color")}})}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=_t({type:n,selectors:[["app-qrcode"]],viewQuery:function(r,o){r&1&&Dt(o.qrcodeElement,Un,5),r&2&&Ft()},inputs:{data:"data"},features:[qt],decls:2,vars:0,consts:[["qrcode",""],[2,"width","100%","height","100%"]],template:function(r,o){r&1&&Ut(0,"div",1,0)},encapsulation:2})}return n})();export{hr as a};