homebridge-config-ui-x 5.11.2-beta.8 → 5.11.2-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/public/{chunk-OF2SRCQW.js → chunk-2OWZ4XP5.js} +1 -1
- package/public/{chunk-QMWN5KPC.js → chunk-3N7C33O4.js} +1 -1
- package/public/{chunk-G2KWTNHR.js → chunk-4XUH7NXA.js} +1 -1
- package/public/{chunk-CEMVTOZG.js → chunk-6CBJSM3U.js} +1 -1
- package/public/{chunk-NIS65GVY.js → chunk-7JIIKSDG.js} +1 -1
- package/public/{chunk-AXMO2G45.js → chunk-A2MXGFJ6.js} +1 -1
- package/public/{chunk-J7UDRE66.js → chunk-AWTSOXJ2.js} +1 -1
- package/public/{chunk-XORPUWNC.js → chunk-BBBDRQZR.js} +1 -1
- package/public/{chunk-KTQBVBY4.js → chunk-CKURAGOR.js} +1 -1
- package/public/{chunk-N5ONV6TU.js → chunk-DFG4HJK5.js} +1 -1
- package/public/{chunk-VY7HWBNV.js → chunk-DPITSP7F.js} +1 -1
- package/public/{chunk-JY5ZEEL2.js → chunk-DSSLC7R5.js} +1 -1
- package/public/{chunk-CMO4UANJ.js → chunk-F635TFLI.js} +1 -1
- package/public/{chunk-G2GGYHA2.js → chunk-GVFAT25G.js} +1 -1
- package/public/{chunk-XNZA4UBO.js → chunk-HBUIXUR3.js} +1 -1
- package/public/{chunk-5WSUQV2C.js → chunk-HN6QQBDC.js} +1 -1
- package/public/{chunk-OBV66CW4.js → chunk-HYHFIPBC.js} +1 -1
- package/public/{chunk-CP6FP6S2.js → chunk-IDVQIBZN.js} +1 -1
- package/public/{chunk-TPUA4UIN.js → chunk-K7PJFUH4.js} +1 -1
- package/public/{chunk-F5AJLGGI.js → chunk-KV4RQA3A.js} +1 -1
- package/public/{chunk-XOPZ7U6G.js → chunk-LAVT57X4.js} +1 -1
- package/public/{chunk-N7UWTPTT.js → chunk-LI37IF2Z.js} +1 -1
- package/public/chunk-LLNAB3NM.js +35 -0
- package/public/{chunk-Q7EXN4JA.js → chunk-LO72RI4S.js} +1 -1
- package/public/{chunk-ZNN6GWYK.js → chunk-LZTSIWKP.js} +1 -1
- package/public/{chunk-XTYMIZVV.js → chunk-N3SESV2P.js} +1 -1
- package/public/{chunk-PWCLNQBI.js → chunk-OS475ZQO.js} +1 -1
- package/public/{chunk-BB35SJH2.js → chunk-OVQGZ4C6.js} +1 -1
- package/public/{chunk-EWS4VSZB.js → chunk-PD3Q2PZE.js} +1 -1
- package/public/{chunk-GDWF2NMA.js → chunk-PYPOWROR.js} +1 -1
- package/public/{chunk-OOILCTQ3.js → chunk-R2CO54AK.js} +1 -1
- package/public/{chunk-6INJQUJQ.js → chunk-TCJMUYCJ.js} +1 -1
- package/public/{chunk-WVG4A2SW.js → chunk-TJXF3MRO.js} +1 -1
- package/public/{chunk-JWRZMMRO.js → chunk-UFVCK77E.js} +1 -1
- package/public/{chunk-4WEBTV3N.js → chunk-V2TVR4X3.js} +1 -1
- package/public/{chunk-4YNYBAGL.js → chunk-W4WAFNIS.js} +1 -1
- package/public/{chunk-2V4LIZUH.js → chunk-WU7URLRW.js} +1 -1
- package/public/{chunk-H3BKW5W3.js → chunk-X6RWNTC7.js} +1 -1
- package/public/{chunk-7DFQDPRM.js → chunk-YHBVXMFX.js} +1 -1
- package/public/{chunk-D3Q5QTFY.js → chunk-ZAWMHW3P.js} +1 -1
- package/public/{chunk-GGTS2YBW.js → chunk-ZSFO6PRU.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-O5PA2XOA.js → main-EZDP2TWN.js} +1 -1
- package/public/chunk-BFGRDXJK.js +0 -35
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "5.11.2-beta.
|
|
5
|
+
"version": "5.11.2-beta.9",
|
|
6
6
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
7
7
|
"author": "oznu <dev@oz.nu>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@types/tail": "^2.2.3",
|
|
136
136
|
"@types/tcp-port-used": "^1.0.4",
|
|
137
137
|
"@types/unzipper": "^0.10.11",
|
|
138
|
-
"@vitest/coverage-v8": "^4.0.
|
|
138
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
139
139
|
"concurrently": "^9.2.1",
|
|
140
140
|
"eslint-plugin-format": "^1.0.2",
|
|
141
141
|
"form-data": "^4.0.5",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"tsx": "^4.21.0",
|
|
145
145
|
"typescript": "^5.9.3",
|
|
146
146
|
"unplugin-swc": "^1.5.9",
|
|
147
|
-
"vitest": "^4.0.
|
|
147
|
+
"vitest": "^4.0.15"
|
|
148
148
|
},
|
|
149
149
|
"overrides": {
|
|
150
150
|
"@homebridge/hap-client": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ct}from"./chunk-Z5PUNNUZ.js";import{a as Dn}from"./chunk-TPUA4UIN.js";import{g as mi}from"./chunk-J7UDRE66.js";import{$b as lt,A as ei,Aa as W,Ab as xt,B as Mt,Bb as di,Cb as un,Db as kt,Eb as Ft,Fb as We,G as tt,Gb as ui,Gc as wn,H as on,Hb as hi,I as sn,Ib as hn,J as rn,Jb as st,Kb as rt,Lb as pn,O as an,Ob as _n,P as ln,Pb as fn,Q as ti,Qb as gn,R as j,Rb as pi,Rc as fe,S as it,Sb as ee,T as Ct,W as ii,X as K,Xb as pe,Xc as Bt,Y as N,Yb as mn,Za as Fe,Zb as le,_ as cn,_b as at,aa as c,ac as _e,bc as Pt,c as Zi,cb as It,cc as Y,d as $,db as nt,dc as q,e as en,ea as ni,eb as ot,g as Et,ga as Tt,gc as vn,ha as Nt,i as et,ic as P,jc as De,ka as ue,kb as ai,kc as _i,la as re,lc as fi,ma as oi,nb as ge,o as xe,oa as D,ob as I,pa as ae,pb as T,q as tn,rb as dn,sb as li,tb as Rt,v as X,vc as gi,w as nn,xa as je,xb as ci,xc as bn,ya as si,yb as he,z as ke,za as ri,zb as St,zc as yn}from"./chunk-HUTYOGRH.js";import{a as Zt,b as qi}from"./chunk-B4AJQJMI.js";var R="top",U="bottom",B="right",x="left",At="auto",Oe=[R,U,B,x],me="start",Pe="end",On="clippingParents",Gt="viewport",ze="popper",En="reference",vi=Oe.reduce(function(e,o){return e.concat([o+"-"+me,o+"-"+Pe])},[]),Ht=[].concat(Oe,[At]).reduce(function(e,o){return e.concat([o,o+"-"+me,o+"-"+Pe])},[]),To="beforeRead",No="read",Io="afterRead",Ro="beforeMain",So="main",xo="afterMain",ko="beforeWrite",Fo="write",Po="afterWrite",Mn=[To,No,Io,Ro,So,xo,ko,Fo,Po];function A(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var o=e.ownerDocument;return o&&o.defaultView||window}return e}function te(e){var o=O(e).Element;return e instanceof o||e instanceof Element}function k(e){var o=O(e).HTMLElement;return e instanceof o||e instanceof HTMLElement}function Xe(e){if(typeof ShadowRoot>"u")return!1;var o=O(e).ShadowRoot;return e instanceof o||e instanceof ShadowRoot}function Bo(e){var o=e.state;Object.keys(o.elements).forEach(function(t){var i=o.styles[t]||{},n=o.attributes[t]||{},s=o.elements[t];!k(s)||!A(s)||(Object.assign(s.style,i),Object.keys(n).forEach(function(r){var a=n[r];a===!1?s.removeAttribute(r):s.setAttribute(r,a===!0?"":a)}))})}function Ao(e){var o=e.state,t={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,t.popper),o.styles=t,o.elements.arrow&&Object.assign(o.elements.arrow.style,t.arrow),function(){Object.keys(o.elements).forEach(function(i){var n=o.elements[i],s=o.attributes[i]||{},r=Object.keys(o.styles.hasOwnProperty(i)?o.styles[i]:t[i]),a=r.reduce(function(l,u){return l[u]="",l},{});!k(n)||!A(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}var Cn={name:"applyStyles",enabled:!0,phase:"write",fn:Bo,effect:Ao,requires:["computeStyles"]};function G(e){return e.split("-")[0]}var ce=Math.max,Be=Math.min,ve=Math.round;function Ke(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function dt(){return!/^((?!chrome|android).)*safari/i.test(Ke())}function ie(e,o,t){o===void 0&&(o=!1),t===void 0&&(t=!1);var i=e.getBoundingClientRect(),n=1,s=1;o&&k(e)&&(n=e.offsetWidth>0&&ve(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ve(i.height)/e.offsetHeight||1);var r=te(e)?O(e):window,a=r.visualViewport,l=!dt()&&t,u=(i.left+(l&&a?a.offsetLeft:0))/n,d=(i.top+(l&&a?a.offsetTop:0))/s,f=i.width/n,p=i.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Ae(e){var o=ie(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(o.width-t)<=1&&(t=o.width),Math.abs(o.height-i)<=1&&(i=o.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}function ut(e,o){var t=o.getRootNode&&o.getRootNode();if(e.contains(o))return!0;if(t&&Xe(t)){var i=o;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Q(e){return O(e).getComputedStyle(e)}function bi(e){return["table","td","th"].indexOf(A(e))>=0}function L(e){return((te(e)?e.ownerDocument:e.document)||window.document).documentElement}function be(e){return A(e)==="html"?e:e.assignedSlot||e.parentNode||(Xe(e)?e.host:null)||L(e)}function Tn(e){return!k(e)||Q(e).position==="fixed"?null:e.offsetParent}function Go(e){var o=/firefox/i.test(Ke()),t=/Trident/i.test(Ke());if(t&&k(e)){var i=Q(e);if(i.position==="fixed")return null}var n=be(e);for(Xe(n)&&(n=n.host);k(n)&&["html","body"].indexOf(A(n))<0;){var s=Q(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||o&&s.willChange==="filter"||o&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function de(e){for(var o=O(e),t=Tn(e);t&&bi(t)&&Q(t).position==="static";)t=Tn(t);return t&&(A(t)==="html"||A(t)==="body"&&Q(t).position==="static")?o:t||Go(e)||o}function Ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function He(e,o,t){return ce(e,Be(o,t))}function Nn(e,o,t){var i=He(e,o,t);return i>t?t:i}function ht(){return{top:0,right:0,bottom:0,left:0}}function pt(e){return Object.assign({},ht(),e)}function _t(e,o){return o.reduce(function(t,i){return t[i]=e,t},{})}var Ho=function(o,t){return o=typeof o=="function"?o(Object.assign({},t.rects,{placement:t.placement})):o,pt(typeof o!="number"?o:_t(o,Oe))};function Uo(e){var o,t=e.state,i=e.name,n=e.options,s=t.elements.arrow,r=t.modifiersData.popperOffsets,a=G(t.placement),l=Ge(a),u=[x,B].indexOf(a)>=0,d=u?"height":"width";if(!(!s||!r)){var f=Ho(n.padding,t),p=Ae(s),h=l==="y"?R:x,v=l==="y"?U:B,_=t.rects.reference[d]+t.rects.reference[l]-r[l]-t.rects.popper[d],g=r[l]-t.rects.reference[l],w=de(s),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,C=_/2-g/2,m=f[h],b=E-p[d]-f[v],y=E/2-p[d]/2+C,M=He(m,y,b),H=l;t.modifiersData[i]=(o={},o[H]=M,o.centerOffset=M-y,o)}}function Lo(e){var o=e.state,t=e.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=o.elements.popper.querySelector(n),!n)||ut(o.elements.popper,n)&&(o.elements.arrow=n))}var yi={name:"arrow",enabled:!0,phase:"main",fn:Uo,effect:Lo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Vo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $o(e,o){var t=e.x,i=e.y,n=o.devicePixelRatio||1;return{x:ve(t*n)/n||0,y:ve(i*n)/n||0}}function In(e){var o,t=e.popper,i=e.popperRect,n=e.placement,s=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=r.x,h=p===void 0?0:p,v=r.y,_=v===void 0?0:v,g=typeof d=="function"?d({x:h,y:_}):{x:h,y:_};h=g.x,_=g.y;var w=r.hasOwnProperty("x"),E=r.hasOwnProperty("y"),C=x,m=R,b=window;if(u){var y=de(t),M="clientHeight",H="clientWidth";if(y===O(t)&&(y=L(t),Q(y).position!=="static"&&a==="absolute"&&(M="scrollHeight",H="scrollWidth")),y=y,n===R||(n===x||n===B)&&s===Pe){m=U;var F=f&&y===b&&b.visualViewport?b.visualViewport.height:y[M];_-=F-i.height,_*=l?1:-1}if(n===x||(n===R||n===U)&&s===Pe){C=B;var S=f&&y===b&&b.visualViewport?b.visualViewport.width:y[H];h-=S-i.width,h*=l?1:-1}}var V=Object.assign({position:a},u&&Vo),oe=d===!0?$o({x:h,y:_},O(t)):{x:h,y:_};if(h=oe.x,_=oe.y,l){var z;return Object.assign({},V,(z={},z[m]=E?"0":"",z[C]=w?"0":"",z.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+_+"px)":"translate3d("+h+"px, "+_+"px, 0)",z))}return Object.assign({},V,(o={},o[m]=E?_+"px":"",o[C]=w?h+"px":"",o.transform="",o))}function jo(e){var o=e.state,t=e.options,i=t.gpuAcceleration,n=i===void 0?!0:i,s=t.adaptive,r=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,u={placement:G(o.placement),variation:ne(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:n,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,In(Object.assign({},u,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:r,roundOffsets:l})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,In(Object.assign({},u,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}var Rn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jo,data:{}};var Ut={passive:!0};function Wo(e){var o=e.state,t=e.instance,i=e.options,n=i.scroll,s=n===void 0?!0:n,r=i.resize,a=r===void 0?!0:r,l=O(o.elements.popper),u=[].concat(o.scrollParents.reference,o.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",t.update,Ut)}),a&&l.addEventListener("resize",t.update,Ut),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",t.update,Ut)}),a&&l.removeEventListener("resize",t.update,Ut)}}var Sn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wo,data:{}};var zo={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(o){return zo[o]})}var Xo={start:"end",end:"start"};function Lt(e){return e.replace(/start|end/g,function(o){return Xo[o]})}function Ue(e){var o=O(e),t=o.pageXOffset,i=o.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Le(e){return ie(L(e)).left+Ue(e).scrollLeft}function wi(e,o){var t=O(e),i=L(e),n=t.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){s=n.width,r=n.height;var u=dt();(u||!u&&o==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:r,x:a+Le(e),y:l}}function Di(e){var o,t=L(e),i=Ue(e),n=(o=e.ownerDocument)==null?void 0:o.body,s=ce(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ce(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Le(e),l=-i.scrollTop;return Q(n||t).direction==="rtl"&&(a+=ce(t.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function Ve(e){var o=Q(e),t=o.overflow,i=o.overflowX,n=o.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function Vt(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:k(e)&&Ve(e)?e:Vt(be(e))}function Ee(e,o){var t;o===void 0&&(o=[]);var i=Vt(e),n=i===((t=e.ownerDocument)==null?void 0:t.body),s=O(i),r=n?[s].concat(s.visualViewport||[],Ve(i)?i:[]):i,a=o.concat(r);return n?a:a.concat(Ee(be(r)))}function Je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ko(e,o){var t=ie(e,!1,o==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function xn(e,o,t){return o===Gt?Je(wi(e,t)):te(o)?Ko(o,t):Je(Di(L(e)))}function Qo(e){var o=Ee(be(e)),t=["absolute","fixed"].indexOf(Q(e).position)>=0,i=t&&k(e)?de(e):e;return te(i)?o.filter(function(n){return te(n)&&ut(n,i)&&A(n)!=="body"}):[]}function Oi(e,o,t,i){var n=o==="clippingParents"?Qo(e):[].concat(o),s=[].concat(n,[t]),r=s[0],a=s.reduce(function(l,u){var d=xn(e,u,i);return l.top=ce(d.top,l.top),l.right=Be(d.right,l.right),l.bottom=Be(d.bottom,l.bottom),l.left=ce(d.left,l.left),l},xn(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ft(e){var o=e.reference,t=e.element,i=e.placement,n=i?G(i):null,s=i?ne(i):null,r=o.x+o.width/2-t.width/2,a=o.y+o.height/2-t.height/2,l;switch(n){case R:l={x:r,y:o.y-t.height};break;case U:l={x:r,y:o.y+o.height};break;case B:l={x:o.x+o.width,y:a};break;case x:l={x:o.x-t.width,y:a};break;default:l={x:o.x,y:o.y}}var u=n?Ge(n):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case me:l[u]=l[u]-(o[d]/2-t[d]/2);break;case Pe:l[u]=l[u]+(o[d]/2-t[d]/2);break;default:}}return l}function Me(e,o){o===void 0&&(o={});var t=o,i=t.placement,n=i===void 0?e.placement:i,s=t.strategy,r=s===void 0?e.strategy:s,a=t.boundary,l=a===void 0?On:a,u=t.rootBoundary,d=u===void 0?Gt:u,f=t.elementContext,p=f===void 0?ze:f,h=t.altBoundary,v=h===void 0?!1:h,_=t.padding,g=_===void 0?0:_,w=pt(typeof g!="number"?g:_t(g,Oe)),E=p===ze?En:ze,C=e.rects.popper,m=e.elements[v?E:p],b=Oi(te(m)?m:m.contextElement||L(e.elements.popper),l,d,r),y=ie(e.elements.reference),M=ft({reference:y,element:C,strategy:"absolute",placement:n}),H=Je(Object.assign({},C,M)),F=p===ze?H:y,S={top:b.top-F.top+w.top,bottom:F.bottom-b.bottom+w.bottom,left:b.left-F.left+w.left,right:F.right-b.right+w.right},V=e.modifiersData.offset;if(p===ze&&V){var oe=V[n];Object.keys(S).forEach(function(z){var Te=[B,U].indexOf(z)>=0?1:-1,Ne=[R,U].indexOf(z)>=0?"y":"x";S[z]+=oe[Ne]*Te})}return S}function Ei(e,o){o===void 0&&(o={});var t=o,i=t.placement,n=t.boundary,s=t.rootBoundary,r=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?Ht:l,d=ne(i),f=d?a?vi:vi.filter(function(v){return ne(v)===d}):Oe,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,_){return v[_]=Me(e,{placement:_,boundary:n,rootBoundary:s,padding:r})[G(_)],v},{});return Object.keys(h).sort(function(v,_){return h[v]-h[_]})}function Jo(e){if(G(e)===At)return[];var o=Qe(e);return[Lt(e),o,Lt(o)]}function Yo(e){var o=e.state,t=e.options,i=e.name;if(!o.modifiersData[i]._skip){for(var n=t.mainAxis,s=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!0:r,l=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,v=h===void 0?!0:h,_=t.allowedAutoPlacements,g=o.options.placement,w=G(g),E=w===g,C=l||(E||!v?[Qe(g)]:Jo(g)),m=[g].concat(C).reduce(function($e,we){return $e.concat(G(we)===At?Ei(o,{placement:we,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:_}):we)},[]),b=o.rects.reference,y=o.rects.popper,M=new Map,H=!0,F=m[0],S=0;S<m.length;S++){var V=m[S],oe=G(V),z=ne(V)===me,Te=[R,U].indexOf(oe)>=0,Ne=Te?"width":"height",J=Me(o,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),se=Te?z?B:x:z?U:R;b[Ne]>y[Ne]&&(se=Qe(se));var bt=Qe(se),Ie=[];if(s&&Ie.push(J[oe]<=0),a&&Ie.push(J[se]<=0,J[bt]<=0),Ie.every(function($e){return $e})){F=V,H=!1;break}M.set(V,Ie)}if(H)for(var yt=v?3:1,Qt=function(we){var Ze=m.find(function(Dt){var Re=M.get(Dt);if(Re)return Re.slice(0,we).every(function(Jt){return Jt})});if(Ze)return F=Ze,"break"},qe=yt;qe>0;qe--){var wt=Qt(qe);if(wt==="break")break}o.placement!==F&&(o.modifiersData[i]._skip=!0,o.placement=F,o.reset=!0)}}var Mi={name:"flip",enabled:!0,phase:"main",fn:Yo,requiresIfExists:["offset"],data:{_skip:!1}};function qo(e,o,t){var i=G(e),n=[x,R].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},o,{placement:e})):t,r=s[0],a=s[1];return r=r||0,a=(a||0)*n,[x,B].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function Zo(e){var o=e.state,t=e.options,i=e.name,n=t.offset,s=n===void 0?[0,0]:n,r=Ht.reduce(function(d,f){return d[f]=qo(f,o.rects,s),d},{}),a=r[o.placement],l=a.x,u=a.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=l,o.modifiersData.popperOffsets.y+=u),o.modifiersData[i]=r}var Ci={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zo};function es(e){var o=e.state,t=e.name;o.modifiersData[t]=ft({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}var kn={name:"popperOffsets",enabled:!0,phase:"read",fn:es,data:{}};function Ti(e){return e==="x"?"y":"x"}function ts(e){var o=e.state,t=e.options,i=e.name,n=t.mainAxis,s=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!1:r,l=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,v=t.tetherOffset,_=v===void 0?0:v,g=Me(o,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=G(o.placement),E=ne(o.placement),C=!E,m=Ge(w),b=Ti(m),y=o.modifiersData.popperOffsets,M=o.rects.reference,H=o.rects.popper,F=typeof _=="function"?_(Object.assign({},o.rects,{placement:o.placement})):_,S=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,oe={x:0,y:0};if(y){if(s){var z,Te=m==="y"?R:x,Ne=m==="y"?U:B,J=m==="y"?"height":"width",se=y[m],bt=se+g[Te],Ie=se-g[Ne],yt=h?-H[J]/2:0,Qt=E===me?M[J]:H[J],qe=E===me?-H[J]:-M[J],wt=o.elements.arrow,$e=h&&wt?Ae(wt):{width:0,height:0},we=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:ht(),Ze=we[Te],Dt=we[Ne],Re=He(0,M[J],$e[J]),Jt=C?M[J]/2-yt-Re-Ze-S.mainAxis:Qt-Re-Ze-S.mainAxis,wo=C?-M[J]/2+yt+Re+Dt+S.mainAxis:qe+Re+Dt+S.mainAxis,Yt=o.elements.arrow&&de(o.elements.arrow),Do=Yt?m==="y"?Yt.clientTop||0:Yt.clientLeft||0:0,$i=(z=V?.[m])!=null?z:0,Oo=se+Jt-$i-Do,Eo=se+wo-$i,ji=He(h?Be(bt,Oo):bt,se,h?ce(Ie,Eo):Ie);y[m]=ji,oe[m]=ji-se}if(a){var Wi,Mo=m==="x"?R:x,Co=m==="x"?U:B,Se=y[b],Ot=b==="y"?"height":"width",zi=Se+g[Mo],Xi=Se-g[Co],qt=[R,x].indexOf(w)!==-1,Ki=(Wi=V?.[b])!=null?Wi:0,Qi=qt?zi:Se-M[Ot]-H[Ot]-Ki+S.altAxis,Ji=qt?Se+M[Ot]+H[Ot]-Ki-S.altAxis:Xi,Yi=h&&qt?Nn(Qi,Se,Ji):He(h?Qi:zi,Se,h?Ji:Xi);y[b]=Yi,oe[b]=Yi-Se}o.modifiersData[i]=oe}}var Ni={name:"preventOverflow",enabled:!0,phase:"main",fn:ts,requiresIfExists:["offset"]};function Ii(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ri(e){return e===O(e)||!k(e)?Ue(e):Ii(e)}function is(e){var o=e.getBoundingClientRect(),t=ve(o.width)/e.offsetWidth||1,i=ve(o.height)/e.offsetHeight||1;return t!==1||i!==1}function Si(e,o,t){t===void 0&&(t=!1);var i=k(o),n=k(o)&&is(o),s=L(o),r=ie(e,n,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((A(o)!=="body"||Ve(s))&&(a=Ri(o)),k(o)?(l=ie(o,!0),l.x+=o.clientLeft,l.y+=o.clientTop):s&&(l.x=Le(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function ns(e){var o=new Map,t=new Set,i=[];e.forEach(function(s){o.set(s.name,s)});function n(s){t.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(a){if(!t.has(a)){var l=o.get(a);l&&n(l)}}),i.push(s)}return e.forEach(function(s){t.has(s.name)||n(s)}),i}function xi(e){var o=ns(e);return Mn.reduce(function(t,i){return t.concat(o.filter(function(n){return n.phase===i}))},[])}function ki(e){var o;return function(){return o||(o=new Promise(function(t){Promise.resolve().then(function(){o=void 0,t(e())})})),o}}function Fi(e){var o=e.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(o).map(function(t){return o[t]})}var Fn={placement:"bottom",modifiers:[],strategy:"absolute"};function Pn(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return!o.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Bn(e){e===void 0&&(e={});var o=e,t=o.defaultModifiers,i=t===void 0?[]:t,n=o.defaultOptions,s=n===void 0?Fn:n;return function(a,l,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fn,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(w){var E=typeof w=="function"?w(d.options):w;_(),d.options=Object.assign({},s,d.options,E),d.scrollParents={reference:te(a)?Ee(a):a.contextElement?Ee(a.contextElement):[],popper:Ee(l)};var C=xi(Fi([].concat(i,d.options.modifiers)));return d.orderedModifiers=C.filter(function(m){return m.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var w=d.elements,E=w.reference,C=w.popper;if(Pn(E,C)){d.rects={reference:Si(E,de(C),d.options.strategy==="fixed"),popper:Ae(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(S){return d.modifiersData[S.name]=Object.assign({},S.data)});for(var m=0;m<d.orderedModifiers.length;m++){if(d.reset===!0){d.reset=!1,m=-1;continue}var b=d.orderedModifiers[m],y=b.fn,M=b.options,H=M===void 0?{}:M,F=b.name;typeof y=="function"&&(d=y({state:d,options:H,name:F,instance:h})||d)}}}},update:ki(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){_(),p=!0}};if(!Pn(a,l))return h;h.setOptions(u).then(function(g){!p&&u.onFirstUpdate&&u.onFirstUpdate(g)});function v(){d.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,C=E===void 0?{}:E,m=g.effect;if(typeof m=="function"){var b=m({state:d,name:w,instance:h,options:C}),y=function(){};f.push(b||y)}})}function _(){f.forEach(function(g){return g()}),f=[]}return h}}var os=[Sn,kn,Rn,Cn],Pi=Bn({defaultModifiers:os});var ss=["container"],rs=["ngbAccordionBody",""],zt=["*"];function as(e,o){if(e&1){let t=pi();st(0,"button",1),mn("click",function(){Tt(t);let n=le();return Nt(n.close())}),rt()}}var ls=e=>({$implicit:e});var cs=["dialog"],ds=["ngbNavOutlet",""];function us(e,o){}function hs(e,o){if(e&1&&(ui(0,"div",0),Rt(1,us,0,0,"ng-template",1),hi()),e&2){let t=le().$implicit,i=le();We("item",t)("nav",i.nav)("role",i.paneRole),Fe(),We("ngTemplateOutlet",(t.contentTpl==null?null:t.contentTpl.templateRef)||null)("ngTemplateOutletContext",bn(5,ls,t.active||i.isPanelTransitioning(t)))}}function ps(e,o){if(e&1&&St(0,hs,2,7,"div",0),e&2){let t=o.$implicit,i=le();xt(t.isPanelInDom()||i.isPanelTransitioning(t)?0:-1)}}function _s(e,o){if(e&1&&(st(0,"span"),_i(1),rt()),e&2){let t=le().$implicit,i=le();De(i.highlightClass),Fe(),fi(t)}}function fs(e,o){if(e&1&&(_n(0),_i(1),fn()),e&2){let t=le().$implicit;Fe(),fi(t)}}function gs(e,o){if(e&1&&St(0,_s,2,3,"span",0)(1,fs,2,1,"ng-container"),e&2){let t=o.$index;xt(t%2!==0?0:1)}}var ms=(e,o,t)=>({result:e,term:o,formatter:t});function vs(e,o){if(e&1&&hn(0,"ngb-highlight",2),e&2){let t=o.result,i=o.term,n=o.formatter;We("result",n(t))("term",i)}}function bs(e,o){}function ys(e,o){if(e&1){let t=pi();ui(0,"button",3),pe("mouseenter",function(){let n=Tt(t).$index,s=le();return Nt(s.markActive(n))})("click",function(){let n=Tt(t).$implicit,s=le();return Nt(s.select(n))}),Rt(1,bs,0,0,"ng-template",4),hi()}if(e&2){let t=o.$implicit,i=o.$index,n=le(),s=vn(1);P("active",i===n.activeIdx),We("id",n.id+"-"+i),Fe(),We("ngTemplateOutlet",n.resultTemplate||s)("ngTemplateOutletContext",yn(5,ms,t,n.term,n.formatter))}}var Wn={animation:!0,transitionTimerDelayMs:5},Ye=(()=>{class e{constructor(){this.animation=Wn.animation}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ws=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ds(e){let{transitionDelay:o,transitionDuration:t}=window.getComputedStyle(e),i=parseFloat(o),n=parseFloat(t);return(i+n)*1e3}function mt(e){return e!=null?`${e}`:""}function Xt(e){return typeof e=="string"}function Ce(e){return e!=null}function Os(e){return e&&e.then}function Es(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Ms(e,o){return!o||typeof e.closest>"u"?null:e.closest(o)}function Kt(e){return(e||document.body).getBoundingClientRect()}function Cs(e){return o=>new Zi(t=>{let i=r=>e.run(()=>t.next(r)),n=r=>e.run(()=>t.error(r)),s=()=>e.run(()=>t.complete());return o.subscribe({next:i,error:n,complete:s})})}function An(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function zn(e=document){let o=e?.activeElement;return o?o.shadowRoot?zn(o.shadowRoot):o:null}var Ts=()=>{},{transitionTimerDelayMs:Ns}=Wn,gt=new Map,Z=(e,o,t,i)=>{let n=i.context||{},s=gt.get(o);if(s)switch(i.runningTransition){case"continue":return Et;case"stop":e.run(()=>s.transition$.complete()),n=Object.assign(s.context,n),gt.delete(o)}let r=t(o,i.animation,n)||Ts;if(!i.animation||window.getComputedStyle(o).transitionProperty==="none")return e.run(()=>r()),et(void 0).pipe(Cs(e));let a=new $,l=new $,u=a.pipe(rn(!0));gt.set(o,{transition$:a,complete:()=>{l.next(),l.complete()},context:n});let d=Ds(o);return e.runOutsideAngular(()=>{let f=X(o,"transitionend").pipe(j(u),ke(({target:h})=>h===o)),p=nn(d+Ns).pipe(j(u));ei(p,f,l).pipe(j(u)).subscribe(()=>{gt.delete(o),e.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()},Gn=e=>{gt.get(e)?.complete()};function Is(e,o){if(typeof navigator>"u")return"0px";let{classList:t}=e,i=t.contains("show");i||t.add("show"),e.style[o]="";let n=e.getBoundingClientRect()[o]+"px";return i||t.remove("show"),n}var Rs=(e,o,t)=>{let{direction:i,maxSize:n,dimension:s}=t,{classList:r}=e;function a(){r.add("collapse"),i==="show"?r.add("show"):r.remove("show")}if(!o){a();return}return n||(n=Is(e,s),t.maxSize=n,e.style[s]=i!=="show"?n:"0px",r.remove("collapse","collapsing","show"),Kt(e),r.add("collapsing")),e.style[s]=i==="show"?n:"0px",()=>{a(),r.remove("collapsing"),e.style[s]=""}},Ss=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Hn=(()=>{class e{constructor(){this._config=c(Ss),this._element=c(W),this._zone=c(ae),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new D,this.horizontal=this._config.horizontal,this.shown=new D,this.hidden=new D}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,i){return Z(this._zone,this._element.nativeElement,Rs,{animation:i,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,i){this._runTransition(t,i).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,n){i&2&&P("collapse-horizontal",n.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return e})(),xs=0,tu=(()=>{class e{constructor(){this._item=c(vt),this._viewRef=null,this.elementRef=c(W)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,ot,7),i&2){let r;Y(r=q())&&(n._bodyTpl=r.first)}},viewQuery:function(i,n){if(i&1&&Pt(ss,7,ai),i&2){let s;Y(s=q())&&(n._vcr=s.first)}},hostAttrs:[1,"accordion-body"],attrs:rs,ngContentSelectors:zt,decls:3,vars:0,consts:[["container",""]],template:function(i,n){i&1&&(at(),gn(0,null,0),lt(2))},encapsulation:2})}}return e})(),ks=(()=>{class e{constructor(){this.item=c(vt),this.ngbCollapse=c(Hn)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,n){i&2&&(ee("id",n.item.collapseId),he("aria-labelledby",n.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[dn([Hn])]})}}return e})(),iu=(()=>{class e{constructor(){this.item=c(vt),this.accordion=c(Xn)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(i,n){i&1&&pe("click",function(){return!n.item.disabled&&n.accordion.toggle(n.item.id)}),i&2&&(ee("id",n.item.toggleId),he("aria-controls",n.item.collapseId)("aria-expanded",!n.item.collapsed),P("collapsed",n.item.collapsed))}})}}return e})();var nu=(()=>{class e{constructor(){this.item=c(vt)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,n){i&2&&P("collapsed",n.item.collapsed)}})}}return e})(),vt=(()=>{class e{constructor(){this._accordion=c(Xn),this._cd=c(fe),this._destroyRef=c(oi),this._collapsed=!0,this._id=`ngb-accordion-item-${xs++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new D,this.shown=new D,this.hide=new D,this.hidden=new D}set id(t){Xt(t)&&t!==""&&(this._id=t)}set destroyOnHide(t){this._destroyOnHide=t}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(t){t?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:t}=this._collapse;t.animation=!1,t.collapsed=this.collapsed,t.animation=this._accordion.animation,t.hidden.pipe(ct(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id),this._cd.markForCheck()}),t.shown.pipe(ct(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}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)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,ks,7),i&2){let r;Y(r=q())&&(n._collapse=r.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,n){i&2&&ee("id",n.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]})}}return e})(),Xn=(()=>{class e{constructor(){this._config=c(ws),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new D,this.shown=new D,this.hide=new D,this.hidden=new D}toggle(t){this._getItem(t)?.toggle()}expand(t){this._getItem(t)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(t=>!t.collapsed)||this._items.first.expand():this._items.forEach(t=>t.expand()))}collapse(t){this._getItem(t)?.collapse()}collapseAll(){this._items?.forEach(t=>t.collapse())}isExpanded(t){let i=this._getItem(t);return i?!i.collapsed:!1}_ensureCanExpand(t){return this.closeOthers?this._items?(this._items.find(i=>!i.collapsed&&t!==i)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(t){return this._items?.find(i=>i.id===t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,vt,4),i&2){let r;Y(r=q())&&(n._items=r)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return e})();var Kn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),Fs=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ps=({classList:e})=>{e.remove("show")},ou=(()=>{class e{constructor(){this._config=c(Fs),this._elementRef=c(W),this._zone=c(ae),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new D}close(){let t=Z(this._zone,this._elementRef.nativeElement,Ps,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,n){i&2&&(De("alert show"+(n.type?" alert-"+n.type:"")),P("fade",n.animation)("alert-dismissible",n.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:zt,decls:2,vars:1,consts:()=>{let t;return t=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",t,1,"btn-close"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(i,n){i&1&&(at(),lt(0),St(1,as,1,0,"button",0)),i&2&&(Fe(),xt(n.dismissible?1:-1))},styles:[`ngb-alert{display:block}
|
|
1
|
+
import{a as ct}from"./chunk-Z5PUNNUZ.js";import{a as Dn}from"./chunk-K7PJFUH4.js";import{g as mi}from"./chunk-AWTSOXJ2.js";import{$b as lt,A as ei,Aa as W,Ab as xt,B as Mt,Bb as di,Cb as un,Db as kt,Eb as Ft,Fb as We,G as tt,Gb as ui,Gc as wn,H as on,Hb as hi,I as sn,Ib as hn,J as rn,Jb as st,Kb as rt,Lb as pn,O as an,Ob as _n,P as ln,Pb as fn,Q as ti,Qb as gn,R as j,Rb as pi,Rc as fe,S as it,Sb as ee,T as Ct,W as ii,X as K,Xb as pe,Xc as Bt,Y as N,Yb as mn,Za as Fe,Zb as le,_ as cn,_b as at,aa as c,ac as _e,bc as Pt,c as Zi,cb as It,cc as Y,d as $,db as nt,dc as q,e as en,ea as ni,eb as ot,g as Et,ga as Tt,gc as vn,ha as Nt,i as et,ic as P,jc as De,ka as ue,kb as ai,kc as _i,la as re,lc as fi,ma as oi,nb as ge,o as xe,oa as D,ob as I,pa as ae,pb as T,q as tn,rb as dn,sb as li,tb as Rt,v as X,vc as gi,w as nn,xa as je,xb as ci,xc as bn,ya as si,yb as he,z as ke,za as ri,zb as St,zc as yn}from"./chunk-HUTYOGRH.js";import{a as Zt,b as qi}from"./chunk-B4AJQJMI.js";var R="top",U="bottom",B="right",x="left",At="auto",Oe=[R,U,B,x],me="start",Pe="end",On="clippingParents",Gt="viewport",ze="popper",En="reference",vi=Oe.reduce(function(e,o){return e.concat([o+"-"+me,o+"-"+Pe])},[]),Ht=[].concat(Oe,[At]).reduce(function(e,o){return e.concat([o,o+"-"+me,o+"-"+Pe])},[]),To="beforeRead",No="read",Io="afterRead",Ro="beforeMain",So="main",xo="afterMain",ko="beforeWrite",Fo="write",Po="afterWrite",Mn=[To,No,Io,Ro,So,xo,ko,Fo,Po];function A(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var o=e.ownerDocument;return o&&o.defaultView||window}return e}function te(e){var o=O(e).Element;return e instanceof o||e instanceof Element}function k(e){var o=O(e).HTMLElement;return e instanceof o||e instanceof HTMLElement}function Xe(e){if(typeof ShadowRoot>"u")return!1;var o=O(e).ShadowRoot;return e instanceof o||e instanceof ShadowRoot}function Bo(e){var o=e.state;Object.keys(o.elements).forEach(function(t){var i=o.styles[t]||{},n=o.attributes[t]||{},s=o.elements[t];!k(s)||!A(s)||(Object.assign(s.style,i),Object.keys(n).forEach(function(r){var a=n[r];a===!1?s.removeAttribute(r):s.setAttribute(r,a===!0?"":a)}))})}function Ao(e){var o=e.state,t={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,t.popper),o.styles=t,o.elements.arrow&&Object.assign(o.elements.arrow.style,t.arrow),function(){Object.keys(o.elements).forEach(function(i){var n=o.elements[i],s=o.attributes[i]||{},r=Object.keys(o.styles.hasOwnProperty(i)?o.styles[i]:t[i]),a=r.reduce(function(l,u){return l[u]="",l},{});!k(n)||!A(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}var Cn={name:"applyStyles",enabled:!0,phase:"write",fn:Bo,effect:Ao,requires:["computeStyles"]};function G(e){return e.split("-")[0]}var ce=Math.max,Be=Math.min,ve=Math.round;function Ke(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function dt(){return!/^((?!chrome|android).)*safari/i.test(Ke())}function ie(e,o,t){o===void 0&&(o=!1),t===void 0&&(t=!1);var i=e.getBoundingClientRect(),n=1,s=1;o&&k(e)&&(n=e.offsetWidth>0&&ve(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ve(i.height)/e.offsetHeight||1);var r=te(e)?O(e):window,a=r.visualViewport,l=!dt()&&t,u=(i.left+(l&&a?a.offsetLeft:0))/n,d=(i.top+(l&&a?a.offsetTop:0))/s,f=i.width/n,p=i.height/s;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Ae(e){var o=ie(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(o.width-t)<=1&&(t=o.width),Math.abs(o.height-i)<=1&&(i=o.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}function ut(e,o){var t=o.getRootNode&&o.getRootNode();if(e.contains(o))return!0;if(t&&Xe(t)){var i=o;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Q(e){return O(e).getComputedStyle(e)}function bi(e){return["table","td","th"].indexOf(A(e))>=0}function L(e){return((te(e)?e.ownerDocument:e.document)||window.document).documentElement}function be(e){return A(e)==="html"?e:e.assignedSlot||e.parentNode||(Xe(e)?e.host:null)||L(e)}function Tn(e){return!k(e)||Q(e).position==="fixed"?null:e.offsetParent}function Go(e){var o=/firefox/i.test(Ke()),t=/Trident/i.test(Ke());if(t&&k(e)){var i=Q(e);if(i.position==="fixed")return null}var n=be(e);for(Xe(n)&&(n=n.host);k(n)&&["html","body"].indexOf(A(n))<0;){var s=Q(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||o&&s.willChange==="filter"||o&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function de(e){for(var o=O(e),t=Tn(e);t&&bi(t)&&Q(t).position==="static";)t=Tn(t);return t&&(A(t)==="html"||A(t)==="body"&&Q(t).position==="static")?o:t||Go(e)||o}function Ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function He(e,o,t){return ce(e,Be(o,t))}function Nn(e,o,t){var i=He(e,o,t);return i>t?t:i}function ht(){return{top:0,right:0,bottom:0,left:0}}function pt(e){return Object.assign({},ht(),e)}function _t(e,o){return o.reduce(function(t,i){return t[i]=e,t},{})}var Ho=function(o,t){return o=typeof o=="function"?o(Object.assign({},t.rects,{placement:t.placement})):o,pt(typeof o!="number"?o:_t(o,Oe))};function Uo(e){var o,t=e.state,i=e.name,n=e.options,s=t.elements.arrow,r=t.modifiersData.popperOffsets,a=G(t.placement),l=Ge(a),u=[x,B].indexOf(a)>=0,d=u?"height":"width";if(!(!s||!r)){var f=Ho(n.padding,t),p=Ae(s),h=l==="y"?R:x,v=l==="y"?U:B,_=t.rects.reference[d]+t.rects.reference[l]-r[l]-t.rects.popper[d],g=r[l]-t.rects.reference[l],w=de(s),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,C=_/2-g/2,m=f[h],b=E-p[d]-f[v],y=E/2-p[d]/2+C,M=He(m,y,b),H=l;t.modifiersData[i]=(o={},o[H]=M,o.centerOffset=M-y,o)}}function Lo(e){var o=e.state,t=e.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=o.elements.popper.querySelector(n),!n)||ut(o.elements.popper,n)&&(o.elements.arrow=n))}var yi={name:"arrow",enabled:!0,phase:"main",fn:Uo,effect:Lo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Vo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $o(e,o){var t=e.x,i=e.y,n=o.devicePixelRatio||1;return{x:ve(t*n)/n||0,y:ve(i*n)/n||0}}function In(e){var o,t=e.popper,i=e.popperRect,n=e.placement,s=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=r.x,h=p===void 0?0:p,v=r.y,_=v===void 0?0:v,g=typeof d=="function"?d({x:h,y:_}):{x:h,y:_};h=g.x,_=g.y;var w=r.hasOwnProperty("x"),E=r.hasOwnProperty("y"),C=x,m=R,b=window;if(u){var y=de(t),M="clientHeight",H="clientWidth";if(y===O(t)&&(y=L(t),Q(y).position!=="static"&&a==="absolute"&&(M="scrollHeight",H="scrollWidth")),y=y,n===R||(n===x||n===B)&&s===Pe){m=U;var F=f&&y===b&&b.visualViewport?b.visualViewport.height:y[M];_-=F-i.height,_*=l?1:-1}if(n===x||(n===R||n===U)&&s===Pe){C=B;var S=f&&y===b&&b.visualViewport?b.visualViewport.width:y[H];h-=S-i.width,h*=l?1:-1}}var V=Object.assign({position:a},u&&Vo),oe=d===!0?$o({x:h,y:_},O(t)):{x:h,y:_};if(h=oe.x,_=oe.y,l){var z;return Object.assign({},V,(z={},z[m]=E?"0":"",z[C]=w?"0":"",z.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+_+"px)":"translate3d("+h+"px, "+_+"px, 0)",z))}return Object.assign({},V,(o={},o[m]=E?_+"px":"",o[C]=w?h+"px":"",o.transform="",o))}function jo(e){var o=e.state,t=e.options,i=t.gpuAcceleration,n=i===void 0?!0:i,s=t.adaptive,r=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,u={placement:G(o.placement),variation:ne(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:n,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,In(Object.assign({},u,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:r,roundOffsets:l})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,In(Object.assign({},u,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}var Rn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jo,data:{}};var Ut={passive:!0};function Wo(e){var o=e.state,t=e.instance,i=e.options,n=i.scroll,s=n===void 0?!0:n,r=i.resize,a=r===void 0?!0:r,l=O(o.elements.popper),u=[].concat(o.scrollParents.reference,o.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",t.update,Ut)}),a&&l.addEventListener("resize",t.update,Ut),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",t.update,Ut)}),a&&l.removeEventListener("resize",t.update,Ut)}}var Sn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wo,data:{}};var zo={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(o){return zo[o]})}var Xo={start:"end",end:"start"};function Lt(e){return e.replace(/start|end/g,function(o){return Xo[o]})}function Ue(e){var o=O(e),t=o.pageXOffset,i=o.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Le(e){return ie(L(e)).left+Ue(e).scrollLeft}function wi(e,o){var t=O(e),i=L(e),n=t.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){s=n.width,r=n.height;var u=dt();(u||!u&&o==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:r,x:a+Le(e),y:l}}function Di(e){var o,t=L(e),i=Ue(e),n=(o=e.ownerDocument)==null?void 0:o.body,s=ce(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ce(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Le(e),l=-i.scrollTop;return Q(n||t).direction==="rtl"&&(a+=ce(t.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function Ve(e){var o=Q(e),t=o.overflow,i=o.overflowX,n=o.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function Vt(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:k(e)&&Ve(e)?e:Vt(be(e))}function Ee(e,o){var t;o===void 0&&(o=[]);var i=Vt(e),n=i===((t=e.ownerDocument)==null?void 0:t.body),s=O(i),r=n?[s].concat(s.visualViewport||[],Ve(i)?i:[]):i,a=o.concat(r);return n?a:a.concat(Ee(be(r)))}function Je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ko(e,o){var t=ie(e,!1,o==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function xn(e,o,t){return o===Gt?Je(wi(e,t)):te(o)?Ko(o,t):Je(Di(L(e)))}function Qo(e){var o=Ee(be(e)),t=["absolute","fixed"].indexOf(Q(e).position)>=0,i=t&&k(e)?de(e):e;return te(i)?o.filter(function(n){return te(n)&&ut(n,i)&&A(n)!=="body"}):[]}function Oi(e,o,t,i){var n=o==="clippingParents"?Qo(e):[].concat(o),s=[].concat(n,[t]),r=s[0],a=s.reduce(function(l,u){var d=xn(e,u,i);return l.top=ce(d.top,l.top),l.right=Be(d.right,l.right),l.bottom=Be(d.bottom,l.bottom),l.left=ce(d.left,l.left),l},xn(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ft(e){var o=e.reference,t=e.element,i=e.placement,n=i?G(i):null,s=i?ne(i):null,r=o.x+o.width/2-t.width/2,a=o.y+o.height/2-t.height/2,l;switch(n){case R:l={x:r,y:o.y-t.height};break;case U:l={x:r,y:o.y+o.height};break;case B:l={x:o.x+o.width,y:a};break;case x:l={x:o.x-t.width,y:a};break;default:l={x:o.x,y:o.y}}var u=n?Ge(n):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case me:l[u]=l[u]-(o[d]/2-t[d]/2);break;case Pe:l[u]=l[u]+(o[d]/2-t[d]/2);break;default:}}return l}function Me(e,o){o===void 0&&(o={});var t=o,i=t.placement,n=i===void 0?e.placement:i,s=t.strategy,r=s===void 0?e.strategy:s,a=t.boundary,l=a===void 0?On:a,u=t.rootBoundary,d=u===void 0?Gt:u,f=t.elementContext,p=f===void 0?ze:f,h=t.altBoundary,v=h===void 0?!1:h,_=t.padding,g=_===void 0?0:_,w=pt(typeof g!="number"?g:_t(g,Oe)),E=p===ze?En:ze,C=e.rects.popper,m=e.elements[v?E:p],b=Oi(te(m)?m:m.contextElement||L(e.elements.popper),l,d,r),y=ie(e.elements.reference),M=ft({reference:y,element:C,strategy:"absolute",placement:n}),H=Je(Object.assign({},C,M)),F=p===ze?H:y,S={top:b.top-F.top+w.top,bottom:F.bottom-b.bottom+w.bottom,left:b.left-F.left+w.left,right:F.right-b.right+w.right},V=e.modifiersData.offset;if(p===ze&&V){var oe=V[n];Object.keys(S).forEach(function(z){var Te=[B,U].indexOf(z)>=0?1:-1,Ne=[R,U].indexOf(z)>=0?"y":"x";S[z]+=oe[Ne]*Te})}return S}function Ei(e,o){o===void 0&&(o={});var t=o,i=t.placement,n=t.boundary,s=t.rootBoundary,r=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?Ht:l,d=ne(i),f=d?a?vi:vi.filter(function(v){return ne(v)===d}):Oe,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,_){return v[_]=Me(e,{placement:_,boundary:n,rootBoundary:s,padding:r})[G(_)],v},{});return Object.keys(h).sort(function(v,_){return h[v]-h[_]})}function Jo(e){if(G(e)===At)return[];var o=Qe(e);return[Lt(e),o,Lt(o)]}function Yo(e){var o=e.state,t=e.options,i=e.name;if(!o.modifiersData[i]._skip){for(var n=t.mainAxis,s=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!0:r,l=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,v=h===void 0?!0:h,_=t.allowedAutoPlacements,g=o.options.placement,w=G(g),E=w===g,C=l||(E||!v?[Qe(g)]:Jo(g)),m=[g].concat(C).reduce(function($e,we){return $e.concat(G(we)===At?Ei(o,{placement:we,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:_}):we)},[]),b=o.rects.reference,y=o.rects.popper,M=new Map,H=!0,F=m[0],S=0;S<m.length;S++){var V=m[S],oe=G(V),z=ne(V)===me,Te=[R,U].indexOf(oe)>=0,Ne=Te?"width":"height",J=Me(o,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),se=Te?z?B:x:z?U:R;b[Ne]>y[Ne]&&(se=Qe(se));var bt=Qe(se),Ie=[];if(s&&Ie.push(J[oe]<=0),a&&Ie.push(J[se]<=0,J[bt]<=0),Ie.every(function($e){return $e})){F=V,H=!1;break}M.set(V,Ie)}if(H)for(var yt=v?3:1,Qt=function(we){var Ze=m.find(function(Dt){var Re=M.get(Dt);if(Re)return Re.slice(0,we).every(function(Jt){return Jt})});if(Ze)return F=Ze,"break"},qe=yt;qe>0;qe--){var wt=Qt(qe);if(wt==="break")break}o.placement!==F&&(o.modifiersData[i]._skip=!0,o.placement=F,o.reset=!0)}}var Mi={name:"flip",enabled:!0,phase:"main",fn:Yo,requiresIfExists:["offset"],data:{_skip:!1}};function qo(e,o,t){var i=G(e),n=[x,R].indexOf(i)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},o,{placement:e})):t,r=s[0],a=s[1];return r=r||0,a=(a||0)*n,[x,B].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function Zo(e){var o=e.state,t=e.options,i=e.name,n=t.offset,s=n===void 0?[0,0]:n,r=Ht.reduce(function(d,f){return d[f]=qo(f,o.rects,s),d},{}),a=r[o.placement],l=a.x,u=a.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=l,o.modifiersData.popperOffsets.y+=u),o.modifiersData[i]=r}var Ci={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zo};function es(e){var o=e.state,t=e.name;o.modifiersData[t]=ft({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}var kn={name:"popperOffsets",enabled:!0,phase:"read",fn:es,data:{}};function Ti(e){return e==="x"?"y":"x"}function ts(e){var o=e.state,t=e.options,i=e.name,n=t.mainAxis,s=n===void 0?!0:n,r=t.altAxis,a=r===void 0?!1:r,l=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,p=t.tether,h=p===void 0?!0:p,v=t.tetherOffset,_=v===void 0?0:v,g=Me(o,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=G(o.placement),E=ne(o.placement),C=!E,m=Ge(w),b=Ti(m),y=o.modifiersData.popperOffsets,M=o.rects.reference,H=o.rects.popper,F=typeof _=="function"?_(Object.assign({},o.rects,{placement:o.placement})):_,S=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,oe={x:0,y:0};if(y){if(s){var z,Te=m==="y"?R:x,Ne=m==="y"?U:B,J=m==="y"?"height":"width",se=y[m],bt=se+g[Te],Ie=se-g[Ne],yt=h?-H[J]/2:0,Qt=E===me?M[J]:H[J],qe=E===me?-H[J]:-M[J],wt=o.elements.arrow,$e=h&&wt?Ae(wt):{width:0,height:0},we=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:ht(),Ze=we[Te],Dt=we[Ne],Re=He(0,M[J],$e[J]),Jt=C?M[J]/2-yt-Re-Ze-S.mainAxis:Qt-Re-Ze-S.mainAxis,wo=C?-M[J]/2+yt+Re+Dt+S.mainAxis:qe+Re+Dt+S.mainAxis,Yt=o.elements.arrow&&de(o.elements.arrow),Do=Yt?m==="y"?Yt.clientTop||0:Yt.clientLeft||0:0,$i=(z=V?.[m])!=null?z:0,Oo=se+Jt-$i-Do,Eo=se+wo-$i,ji=He(h?Be(bt,Oo):bt,se,h?ce(Ie,Eo):Ie);y[m]=ji,oe[m]=ji-se}if(a){var Wi,Mo=m==="x"?R:x,Co=m==="x"?U:B,Se=y[b],Ot=b==="y"?"height":"width",zi=Se+g[Mo],Xi=Se-g[Co],qt=[R,x].indexOf(w)!==-1,Ki=(Wi=V?.[b])!=null?Wi:0,Qi=qt?zi:Se-M[Ot]-H[Ot]-Ki+S.altAxis,Ji=qt?Se+M[Ot]+H[Ot]-Ki-S.altAxis:Xi,Yi=h&&qt?Nn(Qi,Se,Ji):He(h?Qi:zi,Se,h?Ji:Xi);y[b]=Yi,oe[b]=Yi-Se}o.modifiersData[i]=oe}}var Ni={name:"preventOverflow",enabled:!0,phase:"main",fn:ts,requiresIfExists:["offset"]};function Ii(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ri(e){return e===O(e)||!k(e)?Ue(e):Ii(e)}function is(e){var o=e.getBoundingClientRect(),t=ve(o.width)/e.offsetWidth||1,i=ve(o.height)/e.offsetHeight||1;return t!==1||i!==1}function Si(e,o,t){t===void 0&&(t=!1);var i=k(o),n=k(o)&&is(o),s=L(o),r=ie(e,n,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((A(o)!=="body"||Ve(s))&&(a=Ri(o)),k(o)?(l=ie(o,!0),l.x+=o.clientLeft,l.y+=o.clientTop):s&&(l.x=Le(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function ns(e){var o=new Map,t=new Set,i=[];e.forEach(function(s){o.set(s.name,s)});function n(s){t.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(a){if(!t.has(a)){var l=o.get(a);l&&n(l)}}),i.push(s)}return e.forEach(function(s){t.has(s.name)||n(s)}),i}function xi(e){var o=ns(e);return Mn.reduce(function(t,i){return t.concat(o.filter(function(n){return n.phase===i}))},[])}function ki(e){var o;return function(){return o||(o=new Promise(function(t){Promise.resolve().then(function(){o=void 0,t(e())})})),o}}function Fi(e){var o=e.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(o).map(function(t){return o[t]})}var Fn={placement:"bottom",modifiers:[],strategy:"absolute"};function Pn(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return!o.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Bn(e){e===void 0&&(e={});var o=e,t=o.defaultModifiers,i=t===void 0?[]:t,n=o.defaultOptions,s=n===void 0?Fn:n;return function(a,l,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fn,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(w){var E=typeof w=="function"?w(d.options):w;_(),d.options=Object.assign({},s,d.options,E),d.scrollParents={reference:te(a)?Ee(a):a.contextElement?Ee(a.contextElement):[],popper:Ee(l)};var C=xi(Fi([].concat(i,d.options.modifiers)));return d.orderedModifiers=C.filter(function(m){return m.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var w=d.elements,E=w.reference,C=w.popper;if(Pn(E,C)){d.rects={reference:Si(E,de(C),d.options.strategy==="fixed"),popper:Ae(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(S){return d.modifiersData[S.name]=Object.assign({},S.data)});for(var m=0;m<d.orderedModifiers.length;m++){if(d.reset===!0){d.reset=!1,m=-1;continue}var b=d.orderedModifiers[m],y=b.fn,M=b.options,H=M===void 0?{}:M,F=b.name;typeof y=="function"&&(d=y({state:d,options:H,name:F,instance:h})||d)}}}},update:ki(function(){return new Promise(function(g){h.forceUpdate(),g(d)})}),destroy:function(){_(),p=!0}};if(!Pn(a,l))return h;h.setOptions(u).then(function(g){!p&&u.onFirstUpdate&&u.onFirstUpdate(g)});function v(){d.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,C=E===void 0?{}:E,m=g.effect;if(typeof m=="function"){var b=m({state:d,name:w,instance:h,options:C}),y=function(){};f.push(b||y)}})}function _(){f.forEach(function(g){return g()}),f=[]}return h}}var os=[Sn,kn,Rn,Cn],Pi=Bn({defaultModifiers:os});var ss=["container"],rs=["ngbAccordionBody",""],zt=["*"];function as(e,o){if(e&1){let t=pi();st(0,"button",1),mn("click",function(){Tt(t);let n=le();return Nt(n.close())}),rt()}}var ls=e=>({$implicit:e});var cs=["dialog"],ds=["ngbNavOutlet",""];function us(e,o){}function hs(e,o){if(e&1&&(ui(0,"div",0),Rt(1,us,0,0,"ng-template",1),hi()),e&2){let t=le().$implicit,i=le();We("item",t)("nav",i.nav)("role",i.paneRole),Fe(),We("ngTemplateOutlet",(t.contentTpl==null?null:t.contentTpl.templateRef)||null)("ngTemplateOutletContext",bn(5,ls,t.active||i.isPanelTransitioning(t)))}}function ps(e,o){if(e&1&&St(0,hs,2,7,"div",0),e&2){let t=o.$implicit,i=le();xt(t.isPanelInDom()||i.isPanelTransitioning(t)?0:-1)}}function _s(e,o){if(e&1&&(st(0,"span"),_i(1),rt()),e&2){let t=le().$implicit,i=le();De(i.highlightClass),Fe(),fi(t)}}function fs(e,o){if(e&1&&(_n(0),_i(1),fn()),e&2){let t=le().$implicit;Fe(),fi(t)}}function gs(e,o){if(e&1&&St(0,_s,2,3,"span",0)(1,fs,2,1,"ng-container"),e&2){let t=o.$index;xt(t%2!==0?0:1)}}var ms=(e,o,t)=>({result:e,term:o,formatter:t});function vs(e,o){if(e&1&&hn(0,"ngb-highlight",2),e&2){let t=o.result,i=o.term,n=o.formatter;We("result",n(t))("term",i)}}function bs(e,o){}function ys(e,o){if(e&1){let t=pi();ui(0,"button",3),pe("mouseenter",function(){let n=Tt(t).$index,s=le();return Nt(s.markActive(n))})("click",function(){let n=Tt(t).$implicit,s=le();return Nt(s.select(n))}),Rt(1,bs,0,0,"ng-template",4),hi()}if(e&2){let t=o.$implicit,i=o.$index,n=le(),s=vn(1);P("active",i===n.activeIdx),We("id",n.id+"-"+i),Fe(),We("ngTemplateOutlet",n.resultTemplate||s)("ngTemplateOutletContext",yn(5,ms,t,n.term,n.formatter))}}var Wn={animation:!0,transitionTimerDelayMs:5},Ye=(()=>{class e{constructor(){this.animation=Wn.animation}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ws=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ds(e){let{transitionDelay:o,transitionDuration:t}=window.getComputedStyle(e),i=parseFloat(o),n=parseFloat(t);return(i+n)*1e3}function mt(e){return e!=null?`${e}`:""}function Xt(e){return typeof e=="string"}function Ce(e){return e!=null}function Os(e){return e&&e.then}function Es(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Ms(e,o){return!o||typeof e.closest>"u"?null:e.closest(o)}function Kt(e){return(e||document.body).getBoundingClientRect()}function Cs(e){return o=>new Zi(t=>{let i=r=>e.run(()=>t.next(r)),n=r=>e.run(()=>t.error(r)),s=()=>e.run(()=>t.complete());return o.subscribe({next:i,error:n,complete:s})})}function An(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function zn(e=document){let o=e?.activeElement;return o?o.shadowRoot?zn(o.shadowRoot):o:null}var Ts=()=>{},{transitionTimerDelayMs:Ns}=Wn,gt=new Map,Z=(e,o,t,i)=>{let n=i.context||{},s=gt.get(o);if(s)switch(i.runningTransition){case"continue":return Et;case"stop":e.run(()=>s.transition$.complete()),n=Object.assign(s.context,n),gt.delete(o)}let r=t(o,i.animation,n)||Ts;if(!i.animation||window.getComputedStyle(o).transitionProperty==="none")return e.run(()=>r()),et(void 0).pipe(Cs(e));let a=new $,l=new $,u=a.pipe(rn(!0));gt.set(o,{transition$:a,complete:()=>{l.next(),l.complete()},context:n});let d=Ds(o);return e.runOutsideAngular(()=>{let f=X(o,"transitionend").pipe(j(u),ke(({target:h})=>h===o)),p=nn(d+Ns).pipe(j(u));ei(p,f,l).pipe(j(u)).subscribe(()=>{gt.delete(o),e.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()},Gn=e=>{gt.get(e)?.complete()};function Is(e,o){if(typeof navigator>"u")return"0px";let{classList:t}=e,i=t.contains("show");i||t.add("show"),e.style[o]="";let n=e.getBoundingClientRect()[o]+"px";return i||t.remove("show"),n}var Rs=(e,o,t)=>{let{direction:i,maxSize:n,dimension:s}=t,{classList:r}=e;function a(){r.add("collapse"),i==="show"?r.add("show"):r.remove("show")}if(!o){a();return}return n||(n=Is(e,s),t.maxSize=n,e.style[s]=i!=="show"?n:"0px",r.remove("collapse","collapsing","show"),Kt(e),r.add("collapsing")),e.style[s]=i==="show"?n:"0px",()=>{a(),r.remove("collapsing"),e.style[s]=""}},Ss=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Hn=(()=>{class e{constructor(){this._config=c(Ss),this._element=c(W),this._zone=c(ae),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new D,this.horizontal=this._config.horizontal,this.shown=new D,this.hidden=new D}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,i){return Z(this._zone,this._element.nativeElement,Rs,{animation:i,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,i){this._runTransition(t,i).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,n){i&2&&P("collapse-horizontal",n.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return e})(),xs=0,tu=(()=>{class e{constructor(){this._item=c(vt),this._viewRef=null,this.elementRef=c(W)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,ot,7),i&2){let r;Y(r=q())&&(n._bodyTpl=r.first)}},viewQuery:function(i,n){if(i&1&&Pt(ss,7,ai),i&2){let s;Y(s=q())&&(n._vcr=s.first)}},hostAttrs:[1,"accordion-body"],attrs:rs,ngContentSelectors:zt,decls:3,vars:0,consts:[["container",""]],template:function(i,n){i&1&&(at(),gn(0,null,0),lt(2))},encapsulation:2})}}return e})(),ks=(()=>{class e{constructor(){this.item=c(vt),this.ngbCollapse=c(Hn)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,n){i&2&&(ee("id",n.item.collapseId),he("aria-labelledby",n.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[dn([Hn])]})}}return e})(),iu=(()=>{class e{constructor(){this.item=c(vt),this.accordion=c(Xn)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(i,n){i&1&&pe("click",function(){return!n.item.disabled&&n.accordion.toggle(n.item.id)}),i&2&&(ee("id",n.item.toggleId),he("aria-controls",n.item.collapseId)("aria-expanded",!n.item.collapsed),P("collapsed",n.item.collapsed))}})}}return e})();var nu=(()=>{class e{constructor(){this.item=c(vt)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,n){i&2&&P("collapsed",n.item.collapsed)}})}}return e})(),vt=(()=>{class e{constructor(){this._accordion=c(Xn),this._cd=c(fe),this._destroyRef=c(oi),this._collapsed=!0,this._id=`ngb-accordion-item-${xs++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new D,this.shown=new D,this.hide=new D,this.hidden=new D}set id(t){Xt(t)&&t!==""&&(this._id=t)}set destroyOnHide(t){this._destroyOnHide=t}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(t){t?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:t}=this._collapse;t.animation=!1,t.collapsed=this.collapsed,t.animation=this._accordion.animation,t.hidden.pipe(ct(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id),this._cd.markForCheck()}),t.shown.pipe(ct(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}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)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,ks,7),i&2){let r;Y(r=q())&&(n._collapse=r.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,n){i&2&&ee("id",n.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]})}}return e})(),Xn=(()=>{class e{constructor(){this._config=c(ws),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new D,this.shown=new D,this.hide=new D,this.hidden=new D}toggle(t){this._getItem(t)?.toggle()}expand(t){this._getItem(t)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(t=>!t.collapsed)||this._items.first.expand():this._items.forEach(t=>t.expand()))}collapse(t){this._getItem(t)?.collapse()}collapseAll(){this._items?.forEach(t=>t.collapse())}isExpanded(t){let i=this._getItem(t);return i?!i.collapsed:!1}_ensureCanExpand(t){return this.closeOthers?this._items?(this._items.find(i=>!i.collapsed&&t!==i)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(t){return this._items?.find(i=>i.id===t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,vt,4),i&2){let r;Y(r=q())&&(n._items=r)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return e})();var Kn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),Fs=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ps=({classList:e})=>{e.remove("show")},ou=(()=>{class e{constructor(){this._config=c(Fs),this._elementRef=c(W),this._zone=c(ae),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new D}close(){let t=Z(this._zone,this._elementRef.nativeElement,Ps,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,n){i&2&&(De("alert show"+(n.type?" alert-"+n.type:"")),P("fade",n.animation)("alert-dismissible",n.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:zt,decls:2,vars:1,consts:()=>{let t;return t=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",t,1,"btn-close"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(i,n){i&1&&(at(),lt(0),St(1,as,1,0,"button",0)),i&2&&(Fe(),xt(n.dismissible?1:-1))},styles:[`ngb-alert{display:block}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}}return e})(),Qn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var Jn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),Yn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var $t=(e,o)=>o?o.some(t=>t.contains(e)):!1,Un=(e,o)=>!o||Ms(e,o)!=null,Bs=(()=>{let e=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,o=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(e()||o()):!1})(),As=e=>Bs?()=>setTimeout(()=>e(),100):e;function Hi(e,o,t,i,n,s,r,a){t&&e.runOutsideAngular(As(()=>{let l=p=>{let h=p.target;return p.button===2||$t(h,r)?!1:t==="inside"?$t(h,s)&&Un(h,a):t==="outside"?!$t(h,s):Un(h,a)||!$t(h,s)},u=X(o,"keydown").pipe(j(n),ke(p=>p.key==="Escape"),it(p=>p.preventDefault())),d=X(o,"mousedown").pipe(xe(l),j(n)),f=X(o,"mouseup").pipe(Ct(d),ke(([p,h])=>h),on(0),j(n));ei([u.pipe(xe(p=>0)),f.pipe(xe(p=>1))]).subscribe(p=>e.run(()=>i(p)))}))}var qn=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Zn(e){let o=Array.from(e.querySelectorAll(qn)).filter(t=>t.tabIndex!==-1);return[o[0],o[o.length-1]]}var Gs=(e,o,t,i=!1)=>{e.runOutsideAngular(()=>{let n=X(o,"focusin").pipe(j(t),xe(s=>s.target));X(o,"keydown").pipe(j(t),ke(s=>s.key==="Tab"),Ct(n)).subscribe(([s,r])=>{let[a,l]=Zn(o);(r===a||r===o)&&s.shiftKey&&(l.focus(),s.preventDefault()),r===l&&!s.shiftKey&&(a.focus(),s.preventDefault())}),i&&X(o,"click").pipe(j(t),Ct(n),xe(s=>s[1])).subscribe(s=>s.focus())})},Hs=(()=>{class e{constructor(){this._element=c(re).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Us=/\s+/,Ls=/ +/gi,Vs={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 $s(e,o){let[t,i]=Vs[e];return o&&i||t}var js=/^left/,Ws=/^right/,zs=/^start/,Xs=/^end/;function Ks(e,o){let[t,i]=o.split("-"),n=t.replace(js,"start").replace(Ws,"end"),s=[n];if(i){let r=i;(t==="left"||t==="right")&&(r=r.replace(zs,"top").replace(Xs,"bottom")),s.push(`${n}-${r}`)}return e&&(s=s.map(r=>`${e}-${r}`)),s.join(" ")}function Ln({placement:e,baseClass:o},t){let i=Array.isArray(e)?e:e.split(Us),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],s=i.findIndex(u=>u==="auto");s>=0&&n.forEach(function(u){i.find(d=>d.search("^"+u)!==-1)==null&&i.splice(s++,1,u)});let r=i.map(u=>$s(u,t.isRTL()));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!o,phase:"write",fn({state:u}){let d=new RegExp(o+"(-[a-z]+)*","gi"),f=u.elements.popper,p=u.placement,h=f.className;h=h.replace(d,""),h+=` ${Ks(o,p)}`,h=h.trim().replace(Ls," "),f.className=h}},Mi,Ni,yi,{enabled:!0,name:"flip",options:{fallbackPlacements:r}}]}}function Vn(e){return e}function Ui(){let e=c(Hs),o=null;return{createPopper(t){if(!o){let n=(t.updatePopperOptions||Vn)(Ln(t,e));o=Pi(t.hostElement,t.targetElement,n)}},update(){o&&o.update()},setOptions(t){if(o){let n=(t.updatePopperOptions||Vn)(Ln(t,e));o.setOptions(n)}},destroy(){o&&(o.destroy(),o=null)}}}function Li(e){return o=>(o.modifiers.push(Ci,{name:"offset",options:{offset:()=>e}}),o)}var su=new Date(1882,10,12),ru=new Date(2174,10,25);var au=1e3*60*60*24;var Vi=1080,Qs=24*Vi,Js=12*Vi+793,lu=29*Qs+Js,cu=11*Vi+204;var eo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),Ys=(()=>{class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=t=>t,this.container=null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),to=(()=>{class e{constructor(){this._disabled=!1,this.nativeElement=c(W).nativeElement,this.tabindex=0}set disabled(t){this._disabled=t===""||t===!0}get disabled(){return this._disabled}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(i,n){i&2&&(ee("tabIndex",n.disabled?-1:n.tabindex),P("disabled",n.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"}})}}return e})(),du=(()=>{class e{constructor(){this.item=c(to)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(i,n){i&2&&ee("disabled",n.item.disabled)}})}}return e})(),qs=(()=>{class e{constructor(){this.dropdown=c(io),this.nativeElement=c(W).nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,to,4),i&2){let r;Y(r=q())&&(n.menuItems=r)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(i,n){i&1&&pe("keydown.ArrowUp",function(r){return n.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return n.dropdown.onKeyDown(r)})("keydown.Home",function(r){return n.dropdown.onKeyDown(r)})("keydown.End",function(r){return n.dropdown.onKeyDown(r)})("keydown.Enter",function(r){return n.dropdown.onKeyDown(r)})("keydown.Space",function(r){return n.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return n.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return n.dropdown.onKeyDown(r)}),i&2&&P("show",n.dropdown.isOpen())}})}}return e})(),Bi=(()=>{class e{constructor(){this.dropdown=c(io),this.nativeElement=c(W).nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,n){i&2&&(he("aria-expanded",n.dropdown.isOpen()),P("show",n.dropdown.isOpen()))}})}}return e})(),uu=(()=>{class e extends Bi{static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=si(e)))(n||e)}})()}static{this.\u0275dir=T({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,n){i&1&&pe("click",function(){return n.dropdown.toggle()})("keydown.ArrowUp",function(r){return n.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return n.dropdown.onKeyDown(r)})("keydown.Home",function(r){return n.dropdown.onKeyDown(r)})("keydown.End",function(r){return n.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return n.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return n.dropdown.onKeyDown(r)}),i&2&&(he("aria-expanded",n.dropdown.isOpen()),P("show",n.dropdown.isOpen()))},features:[gi([{provide:Bi,useExisting:ii(()=>e)}]),li]})}}return e})(),io=(()=>{class e{constructor(){this._changeDetector=c(fe),this._config=c(Ys),this._document=c(re),this._injector=c(ue),this._ngZone=c(ae),this._nativeElement=c(W).nativeElement,this._destroyCloseHandlers$=new $,this._bodyContainer=null,this._positioning=Ui(),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 D}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){nt({write:()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()}},{injector:this._injector})}ngOnChanges(t){if(t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),t.dropdownClass){let{currentValue:i,previousValue:n}=t.dropdownClass;this._applyCustomDropdownClass(i,n)}t.autoClose&&this._open&&(this.autoClose=t.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:t=>this.popperOptions(Li([0,2])(t))}),this._applyPlacementClasses(),this._afterRenderRef=It({write:()=>{this._positionMenu()}},{injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Hi(this._ngZone,this._document,this.autoClose,t=>{this.close(),t===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(t){let{key:i}=t,n=this._getMenuElements(),s=-1,r=null,a=this._isEventFromToggle(t);if(!a&&n.length&&n.forEach((l,u)=>{l.contains(t.target)&&(r=l),l===zn(this._document)&&(s=u)}),i===" "||i==="Enter"){r&&(this.autoClose===!0||this.autoClose==="inside")&&X(r,"click").pipe(tt(1)).subscribe(()=>this.close());return}if(i==="Tab"){if(t.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===t.target){this.container==="body"&&!t.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):t.shiftKey&&this.close();return}else if(this.container==="body"){let l=this._menu.nativeElement.querySelectorAll(qn);t.shiftKey&&t.target===l[0]?(this._anchor.nativeElement.focus(),t.preventDefault()):!t.shiftKey&&t.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else X(t.target,"focusout").pipe(tt(1)).subscribe(({relatedTarget:l})=>{this._nativeElement.contains(l)||this.close()});return}if(a||r){if(this.open(),n.length){switch(i){case"ArrowDown":s=Math.min(s+1,n.length-1);break;case"ArrowUp":if(this._isDropup()&&s===-1){s=n.length-1;break}s=Math.max(s-1,0);break;case"Home":s=0;break;case"End":s=n.length-1;break}n[s].focus()}t.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.nativeElement.contains(t.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:t})=>!t).map(({nativeElement:t})=>t):[]}_positionMenu(){let t=this._menu;this.isOpen()&&t&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),t==="body"){let i=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||this._document.createElement("div");n.style.position="absolute",i.style.position="static",n.style.zIndex="1055",n.appendChild(i),this._document.body.appendChild(n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(t,i){let n=this.container==="body"?this._bodyContainer:this._nativeElement;n&&(i&&n.classList.remove(i),t&&n.classList.add(t))}_applyPlacementClasses(t){if(this._menu){t||(t=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 i=t.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(i),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(i))}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(i,n,s){if(i&1&&(_e(s,qs,5),_e(s,Bi,5)),i&2){let r;Y(r=q())&&(n._menu=r.first),Y(r=q())&&(n._anchor=r.first)}},hostVars:2,hostBindings:function(i,n){i&2&&P("show",n.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[je]})}}return e})();var no=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),Zs=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ye=class{constructor(o,t,i){this.nodes=o,this.viewRef=t,this.componentRef=i}},jt=class{constructor(o){this._componentType=o,this._windowRef=null,this._contentRef=null,this._document=c(re),this._applicationRef=c(ci),this._injector=c(ue),this._viewContainerRef=c(ai),this._ngZone=c(ae)}open(o,t,i=!1){this._windowRef||(this._contentRef=this._getContentRef(o,t),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,s=new $;nt({mixedReadWrite:()=>{s.next(),s.complete()}},{injector:this._injector});let r=s.pipe(tn(()=>Z(this._ngZone,n,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(o=!1){return this._windowRef?Z(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:o,runningTransition:"stop"}).pipe(it(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):et(void 0)}_getContentRef(o,t){if(o)if(o instanceof ot){let i=o.createEmbeddedView(t);return this._applicationRef.attachView(i),new ye([i.rootNodes],i)}else return new ye([[this._document.createTextNode(`${o}`)]]);else return new ye([])}},er=(()=>{class e{constructor(){this._document=c(re)}hide(){let t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,n=i.style,{overflow:s,paddingRight:r}=n;if(t>0){let a=parseFloat(window.getComputedStyle(i).paddingRight);n.paddingRight=`${a+t}px`}return n.overflow="hidden",()=>{t>0&&(n.paddingRight=r),n.overflow=s}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tr=["animation","backdropClass"],ir=(()=>{class e{constructor(){this._nativeElement=c(W).nativeElement,this._zone=c(ae),this._injector=c(ue),this._cdRef=c(fe)}ngOnInit(){nt({mixedReadWrite:()=>Z(this._zone,this._nativeElement,(t,i)=>{i&&Kt(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return Z(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(t){tr.forEach(i=>{Ce(t[i])&&(this[i]=t[i])}),this._cdRef.markForCheck()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,n){i&2&&(De("modal-backdrop"+(n.backdropClass?" "+n.backdropClass:"")),P("show",!n.animation)("fade",n.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,n){},encapsulation:2})}}return e})(),Wt=class{update(o){}close(o){}dismiss(o){}},Ai=class{update(o){this._windowCmptRef.instance.updateOptions(o),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(o)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(j(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(j(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(o,t,i,n){this._windowCmptRef=o,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=n,this._closed=new $,this._dismissed=new $,this._hidden=new $,o.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,r)=>{this._resolve=s,this._reject=r}),this.result.then(null,()=>{})}close(o){this._windowCmptRef&&(this._closed.next(o),this._resolve(o),this._removeModalElements())}_dismiss(o){this._dismissed.next(o),this._reject(o),this._removeModalElements()}dismiss(o){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(o);else{let t=this._beforeDismiss();Os(t)?t.then(i=>{i!==!1&&this._dismiss(o)},()=>{}):t!==!1&&this._dismiss(o)}}_removeModalElements(){let o=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():et(void 0);o.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Mt(o,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Gi=(function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e})(Gi||{}),nr=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],or=(()=>{class e{constructor(){this._document=c(re),this._elRef=c(W),this._zone=c(ae),this._injector=c(ue),this._cdRef=c(fe),this._closed$=new $,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new D,this.shown=new $,this.hidden=new $}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Xt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,nt({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},n=Z(this._zone,t,()=>t.classList.remove("show"),i),s=Z(this._zone,this._dialogEl.nativeElement,()=>{},i),r=Mt(n,s);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}updateOptions(t){nr.forEach(i=>{Ce(t[i])&&(this[i]=t[i])}),this._cdRef.markForCheck()}_show(){let t={animation:this.animation,runningTransition:"continue"},i=Z(this._zone,this._elRef.nativeElement,(s,r)=>{r&&Kt(s),s.classList.add("show")},t),n=Z(this._zone,this._dialogEl.nativeElement,()=>{},t);Mt(i,n).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{X(t,"keydown").pipe(j(this._closed$),ke(n=>n.key==="Escape")).subscribe(n=>{this.keyboard?requestAnimationFrame(()=>{n.defaultPrevented||this._zone.run(()=>this.dismiss(Gi.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;X(this._dialogEl.nativeElement,"mousedown").pipe(j(this._closed$),it(()=>i=!1),ti(()=>X(t,"mouseup").pipe(j(this._closed$),tt(1))),ke(({target:n})=>t===n)).subscribe(()=>{i=!0}),X(t,"click").pipe(j(this._closed$)).subscribe(({target:n})=>{t===n&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(Gi.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let i=t.querySelector("[ngbAutofocus]"),n=Zn(t)[0];(i||n||t).focus()}}_restoreFocus(){let t=this._document.body,i=this._elWithFocus,n;i&&i.focus&&t.contains(i)?n=i:n=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Z(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,n){if(i&1&&Pt(cs,7),i&2){let s;Y(s=q())&&(n._dialogEl=s.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,n){i&2&&(he("aria-modal",!0)("aria-labelledby",n.ariaLabelledBy)("aria-describedby",n.ariaDescribedBy)("role",n.role),De("modal d-block"+(n.windowClass?" "+n.windowClass:"")),P("fade",n.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:zt,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,n){i&1&&(at(),st(0,"div",1,0)(2,"div",2),lt(3),rt()()),i&2&&De("modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":"")+n.fullscreenClass+(n.scrollable?" modal-dialog-scrollable":"")+(n.modalDialogClass?" "+n.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
|
|
3
3
|
`],encapsulation:2})}}return e})(),sr=(()=>{class e{constructor(){this._applicationRef=c(ci),this._injector=c(ue),this._environmentInjector=c(ni),this._document=c(re),this._scrollBar=c(er),this._activeWindowCmptHasChanged=new $,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new D;let t=c(ae);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];Gs(t,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,n){let s=n.container instanceof HTMLElement?n.container:Ce(n.container)?this._document.querySelector(n.container):this._document.body;if(!s)throw new Error(`The specified modal container "${n.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new Wt;t=n.injector||t;let a=t.get(ni,null)||this._environmentInjector,l=this._getContentRef(t,a,i,r,n),u=n.backdrop!==!1?this._attachBackdrop(s):void 0,d=this._attachWindowComponent(s,l.nodes),f=new Ai(d,l,u,n.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(d),f.hidden.pipe(tt(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=p=>{f.close(p)},r.dismiss=p=>{f.dismiss(p)},r.update=p=>{f.update(p)},f.update(n),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=Bt(ir,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let n=Bt(or,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_getContentRef(t,i,n,s,r){return n?n instanceof ot?this._createFromTemplateRef(n,s):Xt(n)?this._createFromString(n):this._createFromComponent(t,i,n,s,r):new ye([])}_createFromTemplateRef(t,i){let n={$implicit:i,close(r){i.close(r)},dismiss(r){i.dismiss(r)}},s=t.createEmbeddedView(n);return this._applicationRef.attachView(s),new ye([s.rootNodes],s)}_createFromString(t){let i=this._document.createTextNode(`${t}`);return new ye([[i]])}_createFromComponent(t,i,n,s,r){let a=ue.create({providers:[{provide:Wt,useValue:s}],parent:t}),l=Bt(n,{environmentInjector:i,elementInjector:a}),u=l.location.nativeElement;return r.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new ye([[u]],l.hostView,l)}_setAriaHidden(t){let i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(n=>{n!==t&&n.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){let i=()=>{let n=this._modalRefs.indexOf(t);n>-1&&(this._modalRefs.splice(n,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{let i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),rr=(()=>{class e{constructor(){this._injector=c(ue),this._modalStack=c(sr),this._config=c(Zs)}open(t,i={}){let n=Zt(qi(Zt({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),oo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({providers:[rr]})}}return e})(),ar=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),so=e=>Ce(e)&&e!=="",lr=0,cr=(()=>{class e{constructor(){this.templateRef=c(ot)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["ng-template","ngbNavContent",""]]})}}return e})();var ro=(()=>{class e{constructor(){this._nav=c(ao),this._nativeElement=c(W).nativeElement,this.disabled=!1,this.shown=new D,this.hidden=new D}ngOnInit(){Ce(this.domId)||(this.domId=`ngb-nav-${lr++}`)}get active(){return this._nav.activeId===this.id}get id(){return so(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Ce(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(i,n,s){if(i&1&&_e(s,cr,4),i&2){let r;Y(r=q())&&(n.contentTpl=r.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]})}}return e})(),ao=(()=>{class e{constructor(t){this.role=t,this._config=c(ar),this._cd=c(fe),this._document=c(re),this._nativeElement=c(W).nativeElement,this.destroyRef=c(oi),this._navigatingWithKeyboard=!1,this.activeIdChange=new D,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new D,this.hidden=new D,this.navItemChange$=new $,this.navChange=new D}click(t){t.disabled||this._updateActiveId(t.id)}onFocusout({relatedTarget:t}){this._nativeElement.contains(t)||(this._navigatingWithKeyboard=!1)}onKeyDown(t){if(this.roles!=="tablist"||!this.keyboard)return;let i=this.links.filter(r=>!r.navItem.disabled),{length:n}=i,s=-1;if(i.forEach((r,a)=>{r.nativeElement===this._document.activeElement&&(s=a)}),n){switch(t.key){case"ArrowUp":case"ArrowLeft":s=(s-1+n)%n;break;case"ArrowRight":case"ArrowDown":s=(s+1)%n;break;case"Home":s=0;break;case"End":s=n-1;break}this.keyboard==="changeWithArrows"&&this.select(i[s].navItem.id),i[s].nativeElement.focus(),this._navigatingWithKeyboard=!0,t.preventDefault()}}select(t){this._updateActiveId(t,!1)}ngAfterContentInit(){if(!Ce(this.activeId)){let t=this.items.first?this.items.first.id:null;so(t)&&(this._updateActiveId(t,!1),this._cd.detectChanges())}this.items.changes.pipe(ct(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:t}){t&&!t.firstChange&&this._notifyItemChanged(t.currentValue)}_updateActiveId(t,i=!0){if(this.activeId!==t){let n=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:t,preventDefault:()=>{n=!0}}),n||(this.activeId=t,this.activeIdChange.emit(t),this._notifyItemChanged(t))}}_notifyItemChanged(t){this.navItemChange$.next(this._getItemById(t))}_getItemById(t){return this.items&&this.items.find(i=>i.id===t)||null}static{this.\u0275fac=function(i){return new(i||e)(ri("role"))}}static{this.\u0275dir=T({type:e,selectors:[["","ngbNav",""]],contentQueries:function(i,n,s){if(i&1&&(_e(s,ro,4),_e(s,lo,5)),i&2){let r;Y(r=q())&&(n.items=r),Y(r=q())&&(n.links=r)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(i,n){i&1&&pe("keydown.arrowLeft",function(r){return n.onKeyDown(r)})("keydown.arrowRight",function(r){return n.onKeyDown(r)})("keydown.arrowDown",function(r){return n.onKeyDown(r)})("keydown.arrowUp",function(r){return n.onKeyDown(r)})("keydown.Home",function(r){return n.onKeyDown(r)})("keydown.End",function(r){return n.onKeyDown(r)})("focusout",function(r){return n.onFocusout(r)}),i&2&&(he("aria-orientation",n.orientation==="vertical"&&n.roles==="tablist"?"vertical":void 0)("role",n.role?n.role:n.roles?"tablist":void 0),P("flex-column",n.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[je]})}}return e})(),lo=(()=>{class e{constructor(t){this.role=t,this.navItem=c(ro),this.nav=c(ao),this.nativeElement=c(W).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}static{this.\u0275fac=function(i){return new(i||e)(ri("role"))}}static{this.\u0275dir=T({type:e,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(i,n){i&2&&(ee("id",n.navItem.domId),he("role",n.role?n.role:n.nav.roles?"tab":void 0)("tabindex",n.tabindex)("aria-controls",n.navItem.isPanelInDom()?n.navItem.panelDomId:null)("aria-selected",n.navItem.active)("aria-disabled",n.navItem.disabled),P("nav-item",n.navItem.isNgContainer())("active",n.navItem.active)("disabled",n.navItem.disabled))}})}}return e})(),hu=(()=>{class e extends lo{static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=si(e)))(n||e)}})()}static{this.\u0275dir=T({type:e,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(i,n){i&1&&pe("click",function(){return n.nav.click(n.navItem)}),i&2&&ee("disabled",n.navItem.disabled)},features:[li]})}}return e})();var dr=({classList:e})=>(e.remove("show"),()=>e.remove("active")),ur=(e,o)=>{o&&Kt(e),e.classList.add("show")},$n=(()=>{class e{constructor(){this.nativeElement=c(W).nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(i,n){i&2&&(ee("id",n.item.panelDomId),he("role",n.role?n.role:n.nav.roles?"tabpanel":void 0)("aria-labelledby",n.item.domId),P("fade",n.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}})}}return e})(),pu=(()=>{class e{constructor(){this._cd=c(fe),this._ngZone=c(ae),this._activePane=null}isPanelTransitioning(t){return this._activePane?.item===t}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ct(this.nav.destroyRef),ln(this._activePane?.item||null),sn(),an(1)).subscribe(t=>{let i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Z(this._ngZone,this._activePane.nativeElement,dr,i).subscribe(()=>{let n=this._activePane?.item;this._activePane=this._getPaneForItem(t),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Z(this._ngZone,this._activePane.nativeElement,ur,i).subscribe(()=>{t&&(t.shown.emit(),this.nav.shown.emit(t.id))})),n&&(n.hidden.emit(),this.nav.hidden.emit(n.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(t){return this._panes&&this._panes.find(i=>i.item===t)||null}_getActivePane(){return this._panes&&this._panes.find(t=>t.item.active)||null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(i,n){if(i&1&&Pt($n,5),i&2){let s;Y(s=q())&&(n._panes=s)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},attrs:ds,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&kt(0,ps,1,1,null,null,un),i&2&&Ft(n.nav.items)},dependencies:[$n,mi],encapsulation:2,changeDetection:0})}}return e})();var co=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var uo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),hr={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function pr(e){let o=(e||"").trim();if(o.length===0)return[];let t=o.split(/\s+/).map(n=>n.split(":")).map(n=>hr[n[0]]||n),i=t.filter(n=>n.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&t.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:t}function _r(e,o,t,i,n,s=0,r=0,a=Et,l=Et){let u=pr(o);if(u.length===0)return()=>{};let d=new Set,f=[],p;function h(_,g){e.addEventListener(_,g),f.push(()=>e.removeEventListener(_,g))}function v(_,g){clearTimeout(p),g>0?p=setTimeout(_,g):_()}for(let[_,g]of u)if(g?(h(_,()=>{d.add(_),v(()=>d.size>0&&i(),s)}),h(g,()=>{d.delete(_),v(()=>d.size===0&&n(),r)})):h(_,()=>t()?v(n,r):v(i,s)),_==="mouseenter"&&g==="mouseleave"&&r>0){let w=a.subscribe(()=>{d.delete(_),clearTimeout(p)}),E=l.subscribe(()=>{d.delete(_),v(()=>d.size===0&&n(),r)});f.push(()=>w.unsubscribe(),()=>E.unsubscribe())}return f.push(()=>clearTimeout(p)),()=>f.forEach(_=>_())}var ho=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var po=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var _o=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var fo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var go=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var mo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),fr=(()=>{class e{constructor(){this._ngbConfig=c(Ye),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),gr=0,mr=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,n){i&1&&pe("mouseenter",function(){return n.onMouseEnter()})("mouseleave",function(){return n.onMouseLeave()}),i&2&&(ee("id",n.id),De("tooltip"+(n.tooltipClass?" "+n.tooltipClass:"")),P("fade",n.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave"},ngContentSelectors:zt,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(i,n){i&1&&(at(),pn(0,"div",0),st(1,"div",1),lt(2),rt())},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
4
|
`],encapsulation:2,changeDetection:0})}}return e})(),_u=(()=>{class e{constructor(){this._config=c(fr),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 D,this.hidden=new D,this._nativeElement=c(W).nativeElement,this._ngZone=c(ae),this._document=c(re),this._changeDetector=c(fe),this._injector=c(ue),this._ngbTooltipWindowId=`ngb-tooltip-${gr++}`,this._popupService=new jt(mr),this._windowRef=null,this._positioning=Ui(),this._mouseEnterTooltip=new $,this._mouseLeaveTooltip=new $,this._opening=!0,this._transitioning=!1}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._opening&&this._transitioning&&(this._transitioning=!1,Gn(this._windowRef.location.nativeElement)),!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:i,transition$:n}=this._popupService.open(this._ngbTooltip,t??this.tooltipContext,this.animation);this._opening=!0,this._transitioning=!0,this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._windowRef.setInput("onMouseEnter",()=>this._mouseEnterTooltip.next()),this._windowRef.setInput("onMouseLeave",()=>this._mouseLeaveTooltip.next()),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:s=>this.popperOptions(Li([0,6])(s))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=It({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),Hi(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),n.subscribe(()=>{this._transitioning&&(this._transitioning=!1,this.shown.emit())})}}close(t=this.animation){this._opening&&this._transitioning&&(this._transitioning=!1,Gn(this._windowRef.location.nativeElement)),this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._opening=!1,this._transitioning=!0,this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._transitioning&&(this._transitioning=!1,this.hidden.emit()),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=_r(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay,this._mouseEnterTooltip,this._mouseLeaveTooltip)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&this._windowRef.setInput("tooltipClass",t.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Xt(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({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:[je]})}}return e})(),vo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),vr=(()=>{class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(t){!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 i=mt(this.result),n=Array.isArray(this.term)?this.term:[this.term],s=u=>this.accentSensitive?u:An(u),r=n.map(u=>Es(s(mt(u)))).filter(u=>u),a=this.accentSensitive?i:An(i),l=r.length?a.split(new RegExp(`(${r.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let u=0;this.parts=l.map(d=>i.substring(u,u+=d.length))}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[je],decls:2,vars:0,consts:[[3,"class"]],template:function(i,n){i&1&&kt(0,gs,2,1,null,null,di),i&2&&Ft(n.parts)},styles:[`.ngb-highlight{font-weight:700}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E,F as h,H as _,K as w}from"./chunk-
|
|
1
|
+
import{E,F as h,H as _,K as w}from"./chunk-AWTSOXJ2.js";import{Ab as f,Dc as d,Ec as p,Jb as i,Kb as e,Lb as u,Za as n,Zb as v,aa as l,kc as o,lc as a,nb as c,sa as s,zb as x}from"./chunk-HUTYOGRH.js";import"./chunk-B4AJQJMI.js";function y(t,S){if(t&1&&(i(0,"div",7),o(1),e()),t&2){let r=v();n(),a(r.error())}}function C(t,S){t&1&&(i(0,"p",8),o(1),d(2,"translate"),e()),t&2&&(n(),a(p(2,1,"platform.linux.server_will_power_down")))}var D=(()=>{class t{$api=l(w);$toastr=l(_);$translate=l(E);error=s(!1,{});ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).catch(r=>{console.error(r),this.error.set(this.$translate.instant("platform.linux.server_restart_error")),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))})}static \u0275fac=function(m){return new(m||t)};static \u0275cmp=c({type:t,selectors:[["ng-component"]],decls:13,vars:7,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"grey-text"]],template:function(m,g){m&1&&(i(0,"div",0)(1,"h3",1),o(2),d(3,"translate"),e()(),i(4,"div",2)(5,"div",3),u(6,"i",4),e(),i(7,"div",5)(8,"h4",6),o(9),d(10,"translate"),e(),x(11,y,2,1,"div",7)(12,C,3,3,"p",8),e()()),m&2&&(n(2),a(p(3,3,"menu.restart.title")),n(7),a(p(10,5,"platform.linux.shutting_down_server")),n(2),f(g.error()?11:12))},dependencies:[h],encapsulation:2})}return t})();export{D as ShutdownLinuxComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-OS475ZQO.js";import{e as S}from"./chunk-PD3Q2PZE.js";import{a as v}from"./chunk-Z5PUNNUZ.js";import"./chunk-CKURAGOR.js";import{b as T}from"./chunk-HYHFIPBC.js";import{E as $,F as k,H as w,K as C}from"./chunk-AWTSOXJ2.js";import{Ab as f,Dc as m,Ec as c,Jb as o,Kb as e,Lb as h,Za as r,Zb as E,aa as n,kc as s,lc as a,ma as y,nb as b,sa as d,w as p,zb as u}from"./chunk-HUTYOGRH.js";import{h as _}from"./chunk-B4AJQJMI.js";function R(t,x){if(t&1&&(o(0,"div",7),s(1),e()),t&2){let i=E();r(),a(i.error())}}function I(t,x){t&1&&(o(0,"p",9),s(1),m(2,"translate"),e(),o(3,"div",10)(4,"div",11),h(5,"i",12),e()()),t&2&&(r(),a(c(2,1,"restart.please_wait_while_server_restarts")))}function L(t,x){t&1&&(o(0,"div",8),s(1),m(2,"translate"),e()),t&2&&(r(),a(c(2,1,"platform.linux.long_time")))}var q=(()=>{class t{$api=n(C);$router=n(S);$settings=n(T);$toastr=n(w);$translate=n($);$ws=n(D);destroyRef=n(y);checkTimeoutSubscription=null;checkDelaySubscription=null;io;timeout=d(!1,{});error=d(!1,{});ngOnInit(){this.initialize()}initialize(){return _(this,null,function*(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.io.socket.connected&&(this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{}));try{yield this.$api.put("/platform-tools/linux/restart-host",{}),this.checkIfServerUp()}catch(i){console.error(i),this.error.set(this.$translate.instant("platform.linux.server_restart_error")),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),this.checkDelaySubscription&&this.checkDelaySubscription.unsubscribe(),this.checkTimeoutSubscription&&this.checkTimeoutSubscription.unsubscribe()}checkIfServerUp(){this.checkDelaySubscription=p(3e4).pipe(v(this.destroyRef)).subscribe(()=>{this.io.socket.on("homebridge-status",i=>{(i.status==="ok"||i.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})}),this.checkTimeoutSubscription=p(12e4).pipe(v(this.destroyRef)).subscribe(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout.set(!0)})}static \u0275fac=function(l){return new(l||t)};static \u0275cmp=b({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-spinner","fa-spin"]],template:function(l,g){l&1&&(o(0,"div",0)(1,"h3",1),s(2),m(3,"translate"),e()(),o(4,"div",2)(5,"div",3),h(6,"i",4),e(),o(7,"div",5)(8,"h4",6),s(9),m(10,"translate"),e(),u(11,R,2,1,"div",7)(12,I,6,3),u(13,L,3,3,"div",8),e()()),l&2&&(r(2),a(c(3,4,"menu.restart.title")),r(7),a(c(10,6,"platform.linux.restarting_server")),r(2),f(g.error()?11:12),r(2),f(g.timeout()?13:-1))},dependencies:[k],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{q as RestartLinuxComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./chunk-JWGWPSC6.js";import{a as D}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-JWGWPSC6.js";import{a as D}from"./chunk-OVQGZ4C6.js";import{c as x}from"./chunk-PD3Q2PZE.js";import{C as I,c as k,e as y,l as T}from"./chunk-K7PJFUH4.js";import{b as $}from"./chunk-HYHFIPBC.js";import{E as M,H as V,K as E}from"./chunk-AWTSOXJ2.js";import{Ab as h,Fb as f,Gb as d,Hb as a,Ib as w,Rb as v,Xb as g,Za as p,Zb as s,aa as r,ga as l,ha as c,kc as S,nb as b,sa as m,zb as u}from"./chunk-HUTYOGRH.js";import{h as C}from"./chunk-B4AJQJMI.js";function H(e,_){e&1&&w(0,"i",6)}function N(e,_){e&1&&w(0,"i",7)}function O(e,_){if(e&1){let t=v();d(0,"ngx-monaco-editor",10),g("onInit",function(o){l(t);let n=s();return c(n.onEditorInit(o))})("keydown.control.s",function(o){l(t);let n=s();return o.preventDefault(),c(n.onSave())})("keydown.meta.s",function(o){l(t);let n=s();return o.preventDefault(),c(n.onSave())}),a()}if(e&2){let t=s();f("options",t.editorOptions)("model",t.monacoEditorModel)}}function z(e,_){if(e&1){let t=v();d(0,"textarea",11),g("ngModelChange",function(o){l(t);let n=s();return c(n.startupScript.set(o))}),S(1," "),a()}if(e&2){let t=s();f("ngModel",t.startupScript())}}var W=(()=>{class e{$api=r(E);$md=r(P);$route=r(x);$settings=r($);$toastr=r(V);$translate=r(M);lastHeight;visualViewPortEventCallback;options={printMargin:!1};monacoEditor;editorOptions;monacoEditorModel;startupScript=m("",{});saveInProgress=m(!1,{});isMobile=m(!1,{});constructor(){this.isMobile.set(!!this.$md.detect.mobile())}ngOnInit(){this.editorOptions={language:"shell",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light"},this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile()&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(t=>{this.startupScript.set(t.startupScript.script)}),this.monacoEditorModel={value:"",language:"shell"}}onEditorInit(t){this.monacoEditor=t,this.monacoEditor.getModel().setValue(this.startupScript())}onSave(){return C(this,null,function*(){if(this.saveInProgress())return;this.saveInProgress.set(!0),this.isMobile()||(yield this.monacoEditor.getAction("editor.action.formatDocument").run(),this.startupScript.set(this.monacoEditor.getModel().getValue()));let t=this.startupScript();if(!["#!/bin/sh","#!/bin/bash"].includes(t.split(`
|
|
2
2
|
`)[0].trim())){this.$toastr.error(this.$translate.instant("platform.docker.must_use_hashbang"),this.$translate.instant("toast.title_error"));let i=`#!/bin/sh
|
|
3
3
|
|
|
4
4
|
${t}`;this.startupScript.set(i),this.isMobile()||this.monacoEditor.getModel().setValue(i),this.saveInProgress.set(!1);return}try{yield this.$api.put("/platform-tools/docker/startup-script",{script:t}),this.$toastr.success(this.$translate.instant("platform.docker.restart_required"),this.$translate.instant("platform.docker.script_saved"))}catch(i){console.error(i),this.$toastr.error(i.message,this.$translate.instant("toast.title_error"))}this.saveInProgress.set(!1)})}ngOnDestroy(){window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],decls:11,vars:4,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0","font-monospace"],[1,"col-6","text-end"],[1,"btn","btn-primary","waves-effect","m-0",3,"click","disabled"],[1,"fas","fa-spinner","fa-pulse"],[1,"fas","fa-floppy-disk"],[1,"flex-grow-1","h-100","w-100","my-2",3,"options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModel"],[1,"flex-grow-1","h-100","w-100","my-2",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),S(4,"startup.sh"),a()(),d(5,"div",4)(6,"button",5),g("click",function(){return o.onSave()}),u(7,H,1,0,"i",6)(8,N,1,0,"i",7),a()()(),u(9,O,1,2,"ngx-monaco-editor",8),u(10,z,2,1,"textarea",9),a()),i&2&&(p(6),f("disabled",o.saveInProgress()),p(),h(o.saveInProgress()?7:8),p(2),h(o.isMobile()?-1:9),p(),h(o.isMobile()?10:-1))},dependencies:[D,I,k,y,T],encapsulation:2})}return e})();export{W as StartupScriptComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as W}from"./chunk-
|
|
1
|
+
import{a as W}from"./chunk-OS475ZQO.js";import{e as T}from"./chunk-PD3Q2PZE.js";import{a as C}from"./chunk-Z5PUNNUZ.js";import"./chunk-CKURAGOR.js";import{b as P}from"./chunk-HYHFIPBC.js";import{E as A,F as B,H as N,K as U}from"./chunk-AWTSOXJ2.js";import{Ab as v,Dc as c,Ec as m,Jb as a,Kb as n,Kc as E,Lb as f,Qc as M,Rb as O,Yb as R,Za as e,Zb as u,aa as l,ga as y,ha as I,ic as D,jc as b,kc as o,lc as d,ma as S,mc as g,nb as k,sa as p,w as x,zb as h}from"./chunk-HUTYOGRH.js";import{h as w}from"./chunk-B4AJQJMI.js";function j(i,_){if(i&1&&(a(0,"div",7),o(1),n()),i&2){let t=u();e(),d(t.error())}}function q(i,_){if(i&1&&(a(0,"p",9),o(1),c(2,"translate"),n(),a(3,"div",10)(4,"div",11)(5,"span"),f(6,"i"),o(7),c(8,"translate"),n()(),a(9,"div",11)(10,"span"),f(11,"i"),o(12),c(13,"translate"),n()()()),i&2){let t=u();e(),d(m(2,9,"restart.please_wait_while_server_restarts")),e(5),b(t.uiIcon()),e(),g(" ",m(8,11,"restart.ui_online")," "),e(3),D("grey-text",!t.uiOnline()),e(),b(t.serviceIcon()),e(),g(" ",m(13,13,"restart.service_ready")," ")}}function z(i,_){if(i&1){let t=O();a(0,"p",14)(1,"button",15),R("click",function(){y(t);let s=u(2);return I(s.viewLogs())}),o(2),c(3,"translate"),n()()}i&2&&(e(2),d(m(3,1,"menu.tooltip_view_logs")))}function L(i,_){if(i&1&&(a(0,"div",8)(1,"p"),o(2),c(3,"translate"),n(),a(4,"p",12),o(5),c(6,"translate"),a(7,"span",13),o(8),n()(),h(9,z,4,3,"p",14),n()),i&2){let t=u();e(2),d(m(3,4,"restart.server_is_taking_long_time_to_restart")),e(3),g(" ",m(6,6,"restart.label_restart_command_executed"),": "),e(3),d(t.resp().command||"End Process"),e(),v(t.uiOnline()?9:-1)}}var et=(()=>{class i{$api=l(U);$router=l(T);$settings=l(P);$toastr=l(N);$translate=l(A);$ws=l(W);destroyRef=l(S);uiOnline=p(!1,{});error=p(!1,{});resp=p({},{});timeout=p(!1,{});uiIcon=E(()=>this.uiOnline()?"far fa-check-circle":"fas fa-spinner fa-spin",{});serviceIcon=E(()=>this.uiOnline()?"fas fa-spinner fa-spin":"far fa-circle",{});io;webrootChanged=!1;statusCheckActive=p(!1,{});ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.io.socket.connected&&(this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})),this.io.socket.on("homebridge-status",s=>{if(this.statusCheckActive()&&(this.uiOnline.set(!0),s.status==="ok"||s.status==="pending"))if(this.$toastr.success(this.$translate.instant("restart.toast_server_restarted"),this.$translate.instant("toast.title_success")),this.webrootChanged&&!M()){let $=this.$settings.webroot?.replace(/^\/+|\/+$/g,"")||"";window.location.href=$?`/${$}/`:"/"}else this.$router.navigate(["/"])}),this.$router.parseUrl(this.$router.url).queryParams.restarting==="true"?(this.uiOnline.set(!0),this.checkIfServerUp()):this.performRestart()}ngOnDestroy(){this.io.end(),this.statusCheckActive.set(!1)}viewLogs(){this.$router.navigate(["/logs"])}performRestart(){return w(this,null,function*(){try{let t=this.$settings.originalWebroot||"",r=this.$settings.webroot||"";this.webrootChanged=t!==r&&t!==globalThis.webroot.errorCode,this.webrootChanged&&(yield this.$api.put("/server/webroot",{webroot:r}));try{let s=yield this.$api.put("/server/restart",{});this.resp.set(s),this.checkIfServerUp(),s.restartingUI||this.uiOnline.set(!0)}catch(s){console.error(s),this.error.set(this.$translate.instant("restart.toast_server_restart_error")),this.$toastr.error(this.$translate.instant("restart.toast_server_restart_error"),this.$translate.instant("toast.title_error"))}}catch(t){console.error("Failed to update webroot:",t);try{let r=yield this.$api.put("/server/restart",{});this.resp.set(r),this.checkIfServerUp(),r.restartingUI||this.uiOnline.set(!0)}catch(r){console.error(r),this.error.set(this.$translate.instant("restart.toast_server_restart_error")),this.$toastr.error(this.$translate.instant("restart.toast_server_restart_error"),this.$translate.instant("toast.title_error"))}}})}checkIfServerUp(){x(7e3).pipe(C(this.destroyRef)).subscribe(()=>{this.statusCheckActive.set(!0)}),x(4e4).pipe(C(this.destroyRef)).subscribe(()=>{this.$toastr.warning(this.$translate.instant("restart.toast_server_restart_timeout"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout.set(!0)})}static \u0275fac=function(r){return new(r||i)};static \u0275cmp=k({type:i,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"grey-text","mb-0"],[1,"font-monospace"],[1,"mt-2","mb-0"],[1,"btn","btn-primary","mb-0",3,"click"]],template:function(r,s){r&1&&(a(0,"div",0)(1,"h3",1),o(2),c(3,"translate"),n()(),a(4,"div",2)(5,"div",3),f(6,"i",4),n(),a(7,"div",5)(8,"h4",6),o(9),c(10,"translate"),n(),h(11,j,2,1,"div",7)(12,q,14,15),h(13,L,10,8,"div",8),n()()),r&2&&(e(2),d(m(3,4,"menu.restart.title")),e(7),d(m(10,6,"restart.title_restart")),e(2),v(s.error()?11:12),e(2),v(s.timeout()?13:-1))},dependencies:[B],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return i})();export{et as RestartComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as me,c as _e}from"./chunk-JWRZMMRO.js";import"./chunk-XTYMIZVV.js";import{a as le}from"./chunk-5R6AJZGA.js";import{a as ue}from"./chunk-JWGWPSC6.js";import{a as ge}from"./chunk-WVG4A2SW.js";import"./chunk-PRGOUVRO.js";import"./chunk-PWCLNQBI.js";import{a as ce,b as de,c as pe}from"./chunk-BQRKHSGH.js";import{m as D,n as re,t as se}from"./chunk-OF2SRCQW.js";import"./chunk-EWS4VSZB.js";import{a as J}from"./chunk-Z5PUNNUZ.js";import{b as Y}from"./chunk-KTQBVBY4.js";import{C as ae,c as Z,e as ee,f as te,i as ie,l as ne,m as oe}from"./chunk-TPUA4UIN.js";import{b as X}from"./chunk-OBV66CW4.js";import{E as K,F as S,K as Q}from"./chunk-J7UDRE66.js";import{Ab as y,Cb as W,Db as $,Dc as s,Eb as V,Ec as l,Fb as f,Fc as U,Gb as a,Hb as r,Ib as p,Jb as N,Kb as O,Lb as R,Rb as k,Ua as H,Xb as g,Za as o,Zb as d,aa as b,ga as C,ha as x,ic as F,jc as j,kc as c,lc as m,mc as w,nb as M,rc as A,sa as B,sc as T,tc as E,wc as z,xc as q,yb as v,yc as G,zb as h}from"./chunk-HUTYOGRH.js";import{h as I}from"./chunk-B4AJQJMI.js";var be=(()=>{class t{$activeModal=b(D);dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["ng-component"]],decls:42,vars:30,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"ms-2"],[1,"mb-0"],[1,"ms-2","mt-2"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),g("click",function(){return n.dismissModal()}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"h5",7),c(12),s(13,"translate"),r(),a(14,"ul",8)(15,"li"),c(16),s(17,"translate"),r(),a(18,"li"),c(19),s(20,"translate"),r()(),a(21,"h5",9),c(22),s(23,"translate"),r(),a(24,"ul",8)(25,"li"),c(26),s(27,"translate"),r(),a(28,"li"),c(29),s(30,"translate"),r(),a(31,"li"),c(32),s(33,"translate"),r()(),p(34,"app-support-banner"),r(),a(35,"div",10),p(36,"div",11),a(37,"div",12)(38,"button",13),g("click",function(){return n.dismissModal()}),c(39),s(40,"translate"),r()(),p(41,"div",14),r()()()),i&2&&(o(4),m(l(5,10,"support.title")),o(2),v("aria-label",l(7,12,"form.button_close")),o(6),m(l(13,14,"menu.label_accessories")),o(4),m(l(17,16,"accessories.support.acc_1")),o(3),m(l(20,18,"accessories.support.acc_2")),o(3),m(l(23,20,"accessories.title_rooms")),o(4),m(l(27,22,"accessories.support.rooms_1")),o(3),m(l(30,24,"accessories.support.rooms_2")),o(3),m(l(33,26,"accessories.support.rooms_3")),o(7),w(" ",l(40,28,"form.button_close")," "))},dependencies:[ge,S],encapsulation:2})}return t})();var Ce=()=>({standalone:!0}),fe=(()=>{class t{$activeModal=b(D);roomName="";dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(e){this.$activeModal.close(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["ng-component"]],decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),g("click",function(){return n.dismissModal()}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),c(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),E("ngModelChange",function(P){return T(n.roomName,P)||(n.roomName=P),P}),g("keyup.enter",function(){return n.closeModal(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),g("click",function(){return n.dismissModal()}),c(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),g("click",function(){return n.closeModal(n.roomName)}),c(26),s(27,"translate"),r()()()()()),i&2&&(o(4),m(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),m(l(15,12,"accessories.room_name")),o(3),A("ngModel",n.roomName),f("ngModelOptions",z(18,Ce)),o(4),w(" ",l(22,14,"form.button_close")," "),o(4),f("disabled",!n.roomName),o(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[ae,oe,Z,ee,te,ne,ie,S],encapsulation:2})}return t})();var ve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(N(0,"div",0),R(1,"i",1),N(2,"div",2),c(3),s(4,"translate"),O()()),i&2&&(o(3),m(l(4,1,"accessories.control.drag_here")))},dependencies:[S],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var xe=(t,u)=>({"fa-eye":t,"fa-eye-slash":u}),he=t=>({link:t}),ye=(t,u)=>u.name;function Me(t,u){if(t&1){let e=k();a(0,"button",8),s(1,"translate"),s(2,"translate"),g("click",function(){C(e);let n=d(2);return x(n.addRoom())}),p(3,"i",9),r(),a(4,"button",8),s(5,"translate"),s(6,"translate"),s(7,"translate"),s(8,"translate"),g("click",function(){C(e);let n=d(2);return x(n.hideHidden.set(!n.hideHidden()))}),p(9,"i",10),r(),a(10,"div",11)(11,"button",12),s(12,"translate"),s(13,"translate"),g("click",function(){C(e);let n=d(2);return x(n.toggleLayoutLock())}),p(14,"i",13),r(),a(15,"button",12),s(16,"translate"),s(17,"translate"),g("click",function(){C(e);let n=d(2);return x(n.toggleLayoutLock())}),p(18,"i",14),r()()}if(t&2){let e=d(2);f("hidden",e.isMobile())("openDelay",150)("ngbTooltip",l(1,18,"accessories.button_add_room")),v("aria-label",l(2,20,"accessories.button_add_room")),o(4),f("hidden",e.isMobile())("openDelay",150)("ngbTooltip",e.hideHidden()?l(5,22,"accessories.button_hidden_show"):l(6,24,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden()?l(7,26,"accessories.button_hidden_show"):l(8,28,"accessories.button_hidden_hide")),o(5),j(G(38,xe,!e.hideHidden(),e.hideHidden())),o(2),f("disabled",!e.isMobile())("openDelay",150)("ngbTooltip",l(12,30,"form.button_unlock")),v("aria-label",l(13,32,"form.button_unlock")),o(4),f("disabled",e.isMobile())("openDelay",150)("ngbTooltip",l(16,34,"form.button_lock")),v("aria-label",l(17,36,"form.button_lock"))}}function Se(t,u){t&1&&p(0,"app-spinner")}function we(t,u){if(t&1&&(a(0,"div",0)(1,"div",21)(2,"h5",22),c(3),s(4,"translate"),r()()()),t&2){let e=d().$implicit,i=d(4);o(2),F("cursor-move",!i.isMobile()),o(),w(" ",e.name==="Default Room"?l(4,3,"accessories.control.default_room"):e.name," ")}}function ke(t,u){if(t&1&&(a(0,"div",25),p(1,"app-accessory-tile",26),r()),t&2){let e=d().$implicit;o(),f("service",e)}}function Ae(t,u){if(t&1&&h(0,ke,2,1,"div",25),t&2){let e=u.$implicit,i=d(6);y(!i.hideHidden()||!e.hidden?0:-1)}}function Te(t,u){if(t&1){let e=k();a(0,"div",23),E("dragulaModelChange",function(n){C(e);let _=d().$implicit;return T(_.services,n)||(_.services=n),x(n)}),$(1,Ae,1,1,null,null,W),p(3,"div",24)(4,"div",24)(5,"div",24)(6,"div",24)(7,"div",24)(8,"div",24)(9,"div",24)(10,"div",24)(11,"div",24)(12,"div",24),r()}if(t&2){let e=d().$implicit,i=d(4);F("justify-content-between",i.isMobile()),f("dragula","services-bag"),A("dragulaModel",e.services),o(),V(e.services)}}function Ee(t,u){if(t&1){let e=k();a(0,"div",27),E("dragulaModelChange",function(n){C(e);let _=d().$implicit;return T(_.services,n)||(_.services=n),x(n)}),p(1,"app-drag-here-placeholder",28),r()}if(t&2){let e=d().$implicit;f("dragula","services-bag"),A("dragulaModel",e.services)}}function Be(t,u){if(t&1&&(a(0,"div"),h(1,we,5,5,"div",0),a(2,"div",18),h(3,Te,13,4,"div",19),h(4,Ee,2,2,"div",20),r()()),t&2){let e=u.$implicit,i=d(4);o(),y(!i.isMobile()||e.services.length?1:-1),o(2),y(e.services.length?3:-1),o(),y(!e.services.length&&!i.isMobile()?4:-1)}}function De(t,u){if(t&1){let e=k();a(0,"div",17),E("dragulaModelChange",function(n){C(e);let _=d(3);return T(_.rooms,n)||(_.rooms=n),x(n)}),$(1,Be,5,3,"div",null,ye),r()}if(t&2){let e=d(3);f("dragula","rooms-bag"),A("dragulaModel",e.rooms),o(),V(e.rooms)}}function Pe(t,u){t&1&&(a(0,"div",16)(1,"div",29)(2,"div",30),p(3,"i",31),r(),a(4,"h5",32),c(5),s(6,"translate"),r(),a(7,"p",33),c(8),s(9,"translate"),r(),a(10,"p",34),c(11),s(12,"translate"),r()()()),t&2&&(o(5),m(l(6,3,"accessories.no_plugins.title")),o(3),m(l(9,5,"accessories.no_plugins.message_1")),o(3),m(l(12,7,"accessories.no_plugins.message_2")))}function Ie(t,u){if(t&1&&h(0,De,3,2,"div",15)(1,Pe,13,9,"div",16),t&2){let e=d(2);y(e.hasPlugins()?0:1)}}function $e(t,u){if(t&1){let e=k();a(0,"div",1)(1,"div",2)(2,"h3",3),c(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),g("click",function(){C(e);let n=d();return x(n.openSupport())}),p(8,"i",6),r()(),a(9,"div",7),h(10,Me,19,41),a(11,"button",5),s(12,"translate"),g("click",function(){C(e);let n=d();return x(n.openSupport())}),p(13,"i",6),r()()(),h(14,Se,1,0,"app-spinner")(15,Ie,2,1)}if(t&2){let e=d();o(3),m(l(4,5,"menu.label_accessories")),o(3),v("aria-label",l(7,7,"support.title")),o(4),y(e.hasPlugins()?10:-1),o(),v("aria-label",l(12,9,"support.title")),o(3),y(e.loading()?14:15)}}function Ve(t,u){t&1&&(a(0,"p",40),c(1),s(2,"translate"),r()),t&2&&(o(),m(l(2,1,"accessories.settings_link")))}function Ne(t,u){if(t&1&&(a(0,"div",0)(1,"div",35)(2,"h3",36),c(3),s(4,"translate"),r()(),a(5,"div",16)(6,"div",37)(7,"div",30),p(8,"i",38),r(),a(9,"h5",32),c(10),s(11,"translate"),r(),p(12,"p",39),s(13,"translate"),h(14,Ve,3,3,"p",40),r()()()),t&2){let e=d();o(3),m(l(4,4,"menu.label_accessories")),o(7),m(l(11,6,"accessories.control_disabled")),o(2),f("innerHTML",U(13,8,"accessories.message_must_use_insecure_mode",q(11,he,e.linkInsecure)),H),o(2),y(e.isAdmin?14:-1)}}var gt=(()=>{class t{$accessories=b(me);$api=b(Q);$auth=b(Y);dragulaService=b(ce);$modal=b(re);$settings=b(X);$md=b(ue);$translate=b(K);isAdmin=this.$auth.user.admin;enableAccessories=this.$settings.env.enableAccessories;isMobile=B(!1,{});hideHidden=B(!0,{});linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-external-link-alt primary-text"></i></a>';hasPlugins=B(!1,{});loading=B(!0,{});get rooms(){return this.$accessories.rooms()}set rooms(e){this.$accessories.rooms.set(e)}constructor(){let e=this.dragulaService;this.isMobile.set(this.$md.detect.mobile()),e.createGroup("rooms-bag",{moves:(i,n,_)=>!this.isMobile()&&_.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile()&&!i.classList.contains("no-drag")}),e.drop().pipe(J()).subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile.set(!0)}ngOnInit(){let e=this.$translate.instant("menu.label_accessories");this.$settings.setPageTitle(e),this.$accessories.start(),this.checkForPlugins()}addRoom(){return I(this,null,function*(){let e=this.$modal.open(fe,{size:"lg",backdrop:"static"});try{let i=yield e.result;if(!i||!i.length||this.$accessories.rooms().find(n=>n.name===i))return;this.$accessories.rooms.update(n=>[...n,{name:i,services:[]}]),this.isMobile()&&this.toggleLayoutLock()}catch{}})}toggleLayoutLock(){this.isMobile.set(!this.isMobile()),this.isMobile()?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n+=1){let _=document.createElement("div");_.className="accessory-box invisible py-0 my-0",_.style.height="0",i.appendChild(_)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(be,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}checkForPlugins(){return I(this,null,function*(){try{let e=yield this.$api.get("/plugins");this.hasPlugins.set(e.length>1)}catch(e){console.error(e),this.hasPlugins.set(!0)}finally{this.loading.set(!1)}})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-accessories"]],decls:2,vars:1,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-9","col-sm-6"],[1,"primary-text","m-0"],[1,"col-3","col-sm-6","text-end","d-inline-block","d-sm-none"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-question-circle-o"],[1,"col-3","col-sm-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","openDelay","ngbTooltip"],[1,"fas","fa-folder-plus"],[1,"fas"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-unlock"],[1,"fas","fa-lock"],[3,"dragula","dragulaModel"],[1,"col-12","text-center"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"justify-content-between","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],["role","alert",1,"alert","alert-warning","p-5"],[1,"text-center","mb-3"],[1,"fas","fa-plug","primary-text",2,"font-size","75px"],[1,"mb-3","mt-0"],[1,"mb-0","small"],[1,"mb-0","small","mt-2"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],["role","alert",1,"alert","alert-warning","p-4"],[1,"fas","fa-lightbulb","primary-text",2,"font-size","75px"],[1,"mb-0","small",3,"innerHTML"],[1,"mt-2","mb-0","small"]],template:function(i,n){i&1&&h(0,$e,16,11)(1,Ne,15,13,"div",0),i&2&&y(n.enableAccessories?0:1)},dependencies:[se,pe,de,_e,ve,le,S],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media(max-width:575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media(max-width:575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{gt as AccessoriesComponent};
|
|
1
|
+
import{b as me,c as _e}from"./chunk-UFVCK77E.js";import"./chunk-N3SESV2P.js";import{a as le}from"./chunk-5R6AJZGA.js";import{a as ue}from"./chunk-JWGWPSC6.js";import{a as ge}from"./chunk-TJXF3MRO.js";import"./chunk-PRGOUVRO.js";import"./chunk-OS475ZQO.js";import{a as ce,b as de,c as pe}from"./chunk-BQRKHSGH.js";import{m as D,n as re,t as se}from"./chunk-2OWZ4XP5.js";import"./chunk-PD3Q2PZE.js";import{a as J}from"./chunk-Z5PUNNUZ.js";import{b as Y}from"./chunk-CKURAGOR.js";import{C as ae,c as Z,e as ee,f as te,i as ie,l as ne,m as oe}from"./chunk-K7PJFUH4.js";import{b as X}from"./chunk-HYHFIPBC.js";import{E as K,F as S,K as Q}from"./chunk-AWTSOXJ2.js";import{Ab as y,Cb as W,Db as $,Dc as s,Eb as V,Ec as l,Fb as f,Fc as U,Gb as a,Hb as r,Ib as p,Jb as N,Kb as O,Lb as R,Rb as k,Ua as H,Xb as g,Za as o,Zb as d,aa as b,ga as C,ha as x,ic as F,jc as j,kc as c,lc as m,mc as w,nb as M,rc as A,sa as B,sc as T,tc as E,wc as z,xc as q,yb as v,yc as G,zb as h}from"./chunk-HUTYOGRH.js";import{h as I}from"./chunk-B4AJQJMI.js";var be=(()=>{class t{$activeModal=b(D);dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["ng-component"]],decls:42,vars:30,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"ms-2"],[1,"mb-0"],[1,"ms-2","mt-2"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),g("click",function(){return n.dismissModal()}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"h5",7),c(12),s(13,"translate"),r(),a(14,"ul",8)(15,"li"),c(16),s(17,"translate"),r(),a(18,"li"),c(19),s(20,"translate"),r()(),a(21,"h5",9),c(22),s(23,"translate"),r(),a(24,"ul",8)(25,"li"),c(26),s(27,"translate"),r(),a(28,"li"),c(29),s(30,"translate"),r(),a(31,"li"),c(32),s(33,"translate"),r()(),p(34,"app-support-banner"),r(),a(35,"div",10),p(36,"div",11),a(37,"div",12)(38,"button",13),g("click",function(){return n.dismissModal()}),c(39),s(40,"translate"),r()(),p(41,"div",14),r()()()),i&2&&(o(4),m(l(5,10,"support.title")),o(2),v("aria-label",l(7,12,"form.button_close")),o(6),m(l(13,14,"menu.label_accessories")),o(4),m(l(17,16,"accessories.support.acc_1")),o(3),m(l(20,18,"accessories.support.acc_2")),o(3),m(l(23,20,"accessories.title_rooms")),o(4),m(l(27,22,"accessories.support.rooms_1")),o(3),m(l(30,24,"accessories.support.rooms_2")),o(3),m(l(33,26,"accessories.support.rooms_3")),o(7),w(" ",l(40,28,"form.button_close")," "))},dependencies:[ge,S],encapsulation:2})}return t})();var Ce=()=>({standalone:!0}),fe=(()=>{class t{$activeModal=b(D);roomName="";dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(e){this.$activeModal.close(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["ng-component"]],decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),c(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),g("click",function(){return n.dismissModal()}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),c(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),E("ngModelChange",function(P){return T(n.roomName,P)||(n.roomName=P),P}),g("keyup.enter",function(){return n.closeModal(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),g("click",function(){return n.dismissModal()}),c(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),g("click",function(){return n.closeModal(n.roomName)}),c(26),s(27,"translate"),r()()()()()),i&2&&(o(4),m(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),m(l(15,12,"accessories.room_name")),o(3),A("ngModel",n.roomName),f("ngModelOptions",z(18,Ce)),o(4),w(" ",l(22,14,"form.button_close")," "),o(4),f("disabled",!n.roomName),o(),w(" ",l(27,16,"form.button_save")," "))},dependencies:[ae,oe,Z,ee,te,ne,ie,S],encapsulation:2})}return t})();var ve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(N(0,"div",0),R(1,"i",1),N(2,"div",2),c(3),s(4,"translate"),O()()),i&2&&(o(3),m(l(4,1,"accessories.control.drag_here")))},dependencies:[S],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var xe=(t,u)=>({"fa-eye":t,"fa-eye-slash":u}),he=t=>({link:t}),ye=(t,u)=>u.name;function Me(t,u){if(t&1){let e=k();a(0,"button",8),s(1,"translate"),s(2,"translate"),g("click",function(){C(e);let n=d(2);return x(n.addRoom())}),p(3,"i",9),r(),a(4,"button",8),s(5,"translate"),s(6,"translate"),s(7,"translate"),s(8,"translate"),g("click",function(){C(e);let n=d(2);return x(n.hideHidden.set(!n.hideHidden()))}),p(9,"i",10),r(),a(10,"div",11)(11,"button",12),s(12,"translate"),s(13,"translate"),g("click",function(){C(e);let n=d(2);return x(n.toggleLayoutLock())}),p(14,"i",13),r(),a(15,"button",12),s(16,"translate"),s(17,"translate"),g("click",function(){C(e);let n=d(2);return x(n.toggleLayoutLock())}),p(18,"i",14),r()()}if(t&2){let e=d(2);f("hidden",e.isMobile())("openDelay",150)("ngbTooltip",l(1,18,"accessories.button_add_room")),v("aria-label",l(2,20,"accessories.button_add_room")),o(4),f("hidden",e.isMobile())("openDelay",150)("ngbTooltip",e.hideHidden()?l(5,22,"accessories.button_hidden_show"):l(6,24,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden()?l(7,26,"accessories.button_hidden_show"):l(8,28,"accessories.button_hidden_hide")),o(5),j(G(38,xe,!e.hideHidden(),e.hideHidden())),o(2),f("disabled",!e.isMobile())("openDelay",150)("ngbTooltip",l(12,30,"form.button_unlock")),v("aria-label",l(13,32,"form.button_unlock")),o(4),f("disabled",e.isMobile())("openDelay",150)("ngbTooltip",l(16,34,"form.button_lock")),v("aria-label",l(17,36,"form.button_lock"))}}function Se(t,u){t&1&&p(0,"app-spinner")}function we(t,u){if(t&1&&(a(0,"div",0)(1,"div",21)(2,"h5",22),c(3),s(4,"translate"),r()()()),t&2){let e=d().$implicit,i=d(4);o(2),F("cursor-move",!i.isMobile()),o(),w(" ",e.name==="Default Room"?l(4,3,"accessories.control.default_room"):e.name," ")}}function ke(t,u){if(t&1&&(a(0,"div",25),p(1,"app-accessory-tile",26),r()),t&2){let e=d().$implicit;o(),f("service",e)}}function Ae(t,u){if(t&1&&h(0,ke,2,1,"div",25),t&2){let e=u.$implicit,i=d(6);y(!i.hideHidden()||!e.hidden?0:-1)}}function Te(t,u){if(t&1){let e=k();a(0,"div",23),E("dragulaModelChange",function(n){C(e);let _=d().$implicit;return T(_.services,n)||(_.services=n),x(n)}),$(1,Ae,1,1,null,null,W),p(3,"div",24)(4,"div",24)(5,"div",24)(6,"div",24)(7,"div",24)(8,"div",24)(9,"div",24)(10,"div",24)(11,"div",24)(12,"div",24),r()}if(t&2){let e=d().$implicit,i=d(4);F("justify-content-between",i.isMobile()),f("dragula","services-bag"),A("dragulaModel",e.services),o(),V(e.services)}}function Ee(t,u){if(t&1){let e=k();a(0,"div",27),E("dragulaModelChange",function(n){C(e);let _=d().$implicit;return T(_.services,n)||(_.services=n),x(n)}),p(1,"app-drag-here-placeholder",28),r()}if(t&2){let e=d().$implicit;f("dragula","services-bag"),A("dragulaModel",e.services)}}function Be(t,u){if(t&1&&(a(0,"div"),h(1,we,5,5,"div",0),a(2,"div",18),h(3,Te,13,4,"div",19),h(4,Ee,2,2,"div",20),r()()),t&2){let e=u.$implicit,i=d(4);o(),y(!i.isMobile()||e.services.length?1:-1),o(2),y(e.services.length?3:-1),o(),y(!e.services.length&&!i.isMobile()?4:-1)}}function De(t,u){if(t&1){let e=k();a(0,"div",17),E("dragulaModelChange",function(n){C(e);let _=d(3);return T(_.rooms,n)||(_.rooms=n),x(n)}),$(1,Be,5,3,"div",null,ye),r()}if(t&2){let e=d(3);f("dragula","rooms-bag"),A("dragulaModel",e.rooms),o(),V(e.rooms)}}function Pe(t,u){t&1&&(a(0,"div",16)(1,"div",29)(2,"div",30),p(3,"i",31),r(),a(4,"h5",32),c(5),s(6,"translate"),r(),a(7,"p",33),c(8),s(9,"translate"),r(),a(10,"p",34),c(11),s(12,"translate"),r()()()),t&2&&(o(5),m(l(6,3,"accessories.no_plugins.title")),o(3),m(l(9,5,"accessories.no_plugins.message_1")),o(3),m(l(12,7,"accessories.no_plugins.message_2")))}function Ie(t,u){if(t&1&&h(0,De,3,2,"div",15)(1,Pe,13,9,"div",16),t&2){let e=d(2);y(e.hasPlugins()?0:1)}}function $e(t,u){if(t&1){let e=k();a(0,"div",1)(1,"div",2)(2,"h3",3),c(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),g("click",function(){C(e);let n=d();return x(n.openSupport())}),p(8,"i",6),r()(),a(9,"div",7),h(10,Me,19,41),a(11,"button",5),s(12,"translate"),g("click",function(){C(e);let n=d();return x(n.openSupport())}),p(13,"i",6),r()()(),h(14,Se,1,0,"app-spinner")(15,Ie,2,1)}if(t&2){let e=d();o(3),m(l(4,5,"menu.label_accessories")),o(3),v("aria-label",l(7,7,"support.title")),o(4),y(e.hasPlugins()?10:-1),o(),v("aria-label",l(12,9,"support.title")),o(3),y(e.loading()?14:15)}}function Ve(t,u){t&1&&(a(0,"p",40),c(1),s(2,"translate"),r()),t&2&&(o(),m(l(2,1,"accessories.settings_link")))}function Ne(t,u){if(t&1&&(a(0,"div",0)(1,"div",35)(2,"h3",36),c(3),s(4,"translate"),r()(),a(5,"div",16)(6,"div",37)(7,"div",30),p(8,"i",38),r(),a(9,"h5",32),c(10),s(11,"translate"),r(),p(12,"p",39),s(13,"translate"),h(14,Ve,3,3,"p",40),r()()()),t&2){let e=d();o(3),m(l(4,4,"menu.label_accessories")),o(7),m(l(11,6,"accessories.control_disabled")),o(2),f("innerHTML",U(13,8,"accessories.message_must_use_insecure_mode",q(11,he,e.linkInsecure)),H),o(2),y(e.isAdmin?14:-1)}}var gt=(()=>{class t{$accessories=b(me);$api=b(Q);$auth=b(Y);dragulaService=b(ce);$modal=b(re);$settings=b(X);$md=b(ue);$translate=b(K);isAdmin=this.$auth.user.admin;enableAccessories=this.$settings.env.enableAccessories;isMobile=B(!1,{});hideHidden=B(!0,{});linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-external-link-alt primary-text"></i></a>';hasPlugins=B(!1,{});loading=B(!0,{});get rooms(){return this.$accessories.rooms()}set rooms(e){this.$accessories.rooms.set(e)}constructor(){let e=this.dragulaService;this.isMobile.set(this.$md.detect.mobile()),e.createGroup("rooms-bag",{moves:(i,n,_)=>!this.isMobile()&&_.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile()&&!i.classList.contains("no-drag")}),e.drop().pipe(J()).subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile.set(!0)}ngOnInit(){let e=this.$translate.instant("menu.label_accessories");this.$settings.setPageTitle(e),this.$accessories.start(),this.checkForPlugins()}addRoom(){return I(this,null,function*(){let e=this.$modal.open(fe,{size:"lg",backdrop:"static"});try{let i=yield e.result;if(!i||!i.length||this.$accessories.rooms().find(n=>n.name===i))return;this.$accessories.rooms.update(n=>[...n,{name:i,services:[]}]),this.isMobile()&&this.toggleLayoutLock()}catch{}})}toggleLayoutLock(){this.isMobile.set(!this.isMobile()),this.isMobile()?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n+=1){let _=document.createElement("div");_.className="accessory-box invisible py-0 my-0",_.style.height="0",i.appendChild(_)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(be,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}checkForPlugins(){return I(this,null,function*(){try{let e=yield this.$api.get("/plugins");this.hasPlugins.set(e.length>1)}catch(e){console.error(e),this.hasPlugins.set(!0)}finally{this.loading.set(!1)}})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-accessories"]],decls:2,vars:1,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-9","col-sm-6"],[1,"primary-text","m-0"],[1,"col-3","col-sm-6","text-end","d-inline-block","d-sm-none"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-question-circle-o"],[1,"col-3","col-sm-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","openDelay","ngbTooltip"],[1,"fas","fa-folder-plus"],[1,"fas"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-unlock"],[1,"fas","fa-lock"],[3,"dragula","dragulaModel"],[1,"col-12","text-center"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"justify-content-between","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],["role","alert",1,"alert","alert-warning","p-5"],[1,"text-center","mb-3"],[1,"fas","fa-plug","primary-text",2,"font-size","75px"],[1,"mb-3","mt-0"],[1,"mb-0","small"],[1,"mb-0","small","mt-2"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],["role","alert",1,"alert","alert-warning","p-4"],[1,"fas","fa-lightbulb","primary-text",2,"font-size","75px"],[1,"mb-0","small",3,"innerHTML"],[1,"mt-2","mb-0","small"]],template:function(i,n){i&1&&h(0,$e,16,11)(1,Ne,15,13,"div",0),i&2&&y(n.enableAccessories?0:1)},dependencies:[se,pe,de,_e,ve,le,S],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media(max-width:575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media(max-width:575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{gt as AccessoriesComponent};
|