homebridge-config-ui-x 5.10.1-beta.0 → 5.10.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/modules/plugins/plugins.service.js +2 -2
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/package.json +6 -6
- package/public/3rdpartylicenses.txt +549 -601
- package/public/assets/monaco/min/vs/assets/editor.worker-Be8ye1pW.js +26 -0
- package/public/assets/monaco/min/vs/assets/json.worker-DKiEKt88.js +58 -0
- package/public/assets/monaco/min/vs/basic-languages/monaco.contribution.js +1 -0
- package/public/assets/monaco/min/vs/editor/editor.main.css +1 -8
- package/public/assets/monaco/min/vs/editor/editor.main.js +4 -797
- package/public/assets/monaco/min/vs/editor.api-CalNCsUg.js +903 -0
- package/public/assets/monaco/min/vs/jsonMode-DULH5oaX.js +7 -0
- package/public/assets/monaco/min/vs/language/json/monaco.contribution.js +1 -0
- package/public/assets/monaco/min/vs/loader.js +1364 -7
- package/public/assets/monaco/min/vs/lspLanguageFeatures-kM9O9rjY.js +4 -0
- package/public/assets/monaco/min/vs/monaco.contribution-D2OdxNBt.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-DO3azKX8.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-EcChJV6a.js +1 -0
- package/public/assets/monaco/min/vs/monaco.contribution-qLAYrEOP.js +1 -0
- package/public/assets/monaco/min/vs/nls.messages-loader.js +1 -0
- package/public/assets/monaco/min/vs/workers-DcJshg-q.js +1 -0
- package/public/assets/plugin-ui-utils/ui.js +3 -0
- package/public/assets/plugin-ui-utils/ui.js.map +1 -1
- package/public/chunk-2D7CDA3H.js +1 -0
- package/public/chunk-2GBZLCJW.js +1 -0
- package/public/chunk-33YDZRAK.js +1 -0
- package/public/chunk-3DG6CT5D.js +2 -0
- package/public/chunk-3F75CKTQ.js +1 -0
- package/public/chunk-3OSRGC5M.js +1 -0
- package/public/chunk-3UTT42KH.js +1 -0
- package/public/chunk-442FBVB5.js +1 -0
- package/public/chunk-4PPFVY5K.js +1 -0
- package/public/chunk-4RWLV5CJ.js +1 -0
- package/public/chunk-4UDSSFBN.js +1 -0
- package/public/chunk-4XZK5MQY.js +1 -0
- package/public/chunk-5S4MIY7E.js +1 -0
- package/public/chunk-5X5S4L7Y.js +1 -0
- package/public/chunk-6ELMQIBK.js +1 -0
- package/public/chunk-6I27GJJF.js +1 -0
- package/public/{chunk-HXBITOYP.js → chunk-7CDYTG4I.js} +1 -1
- package/public/chunk-7DWXCRSP.js +1 -0
- package/public/chunk-7RJ5H5OP.js +1 -0
- package/public/chunk-ABQLMP2L.js +1 -0
- package/public/chunk-B4AJQJMI.js +1 -0
- package/public/chunk-BEI5QPKL.js +5 -0
- package/public/chunk-BEWAKOMK.js +1 -0
- package/public/{chunk-RAWL26R7.js → chunk-BMOLDRJ3.js} +1 -1
- package/public/chunk-BOW5E4YK.js +50 -0
- package/public/chunk-BSST5MPT.js +1 -0
- package/public/chunk-BSXPNFI5.js +1 -0
- package/public/chunk-C4IIDRJP.js +1 -0
- package/public/chunk-CIWR3BDK.js +5 -0
- package/public/chunk-CMS4LVBG.js +1 -0
- package/public/chunk-CO3QJQRO.js +1 -0
- package/public/chunk-CS2WBXWW.js +1 -0
- package/public/chunk-CTWHZU36.js +1 -0
- package/public/chunk-DAMERMP3.js +1 -0
- package/public/chunk-DM74WNXP.js +1 -0
- package/public/chunk-DMKHEJF5.js +3 -0
- package/public/chunk-DTFJZNTX.js +1 -0
- package/public/chunk-DWU5C3KH.js +1 -0
- package/public/chunk-EBFB2GZT.js +1 -0
- package/public/chunk-EEA6UA46.js +2 -0
- package/public/chunk-EJACNX3Z.js +1 -0
- package/public/{chunk-4EQFXSOO.js → chunk-FE43ULOM.js} +1 -1
- package/public/chunk-GPMU3WMO.js +68 -0
- package/public/chunk-GWHA2DEF.js +1 -0
- package/public/chunk-GXD2SS6L.js +1 -0
- package/public/chunk-H6QDC36H.js +1 -0
- package/public/{chunk-4Y574DAY.js → chunk-H7F7H5MW.js} +1 -1
- package/public/chunk-HAJT335F.js +1 -0
- package/public/chunk-HK3N2YPM.js +1 -0
- package/public/chunk-HLNMCR4K.js +1 -0
- package/public/chunk-IC6BLNW5.js +1 -0
- package/public/chunk-IMRVMPXI.js +1 -0
- package/public/chunk-IPRQGPVV.js +1 -0
- package/public/chunk-IVZ5ER6L.js +1 -0
- package/public/chunk-JRQC3M7W.js +4 -0
- package/public/chunk-JT7TYR5C.js +1 -0
- package/public/chunk-KDXCBENV.js +2 -0
- package/public/chunk-KGOOP2T6.js +1 -0
- package/public/chunk-KMSHJTEM.js +1 -0
- package/public/chunk-L77RLTDM.js +1 -0
- package/public/chunk-LCGZABYG.js +1 -0
- package/public/chunk-LG53BDFP.js +1 -0
- package/public/chunk-LJMU7UD3.js +1 -0
- package/public/chunk-LKNJHPL6.js +1 -0
- package/public/chunk-LKODOMMX.js +1 -0
- package/public/chunk-LUUAC57N.js +1 -0
- package/public/chunk-MIWSF7W2.js +1 -0
- package/public/chunk-MQTRL6KN.js +1 -0
- package/public/{chunk-EXSN7ASU.js → chunk-MS6AXMT2.js} +52 -2
- package/public/chunk-NP23WSXR.js +1 -0
- package/public/chunk-O3SZVIF6.js +1 -0
- package/public/chunk-ODXGF3LF.js +1 -0
- package/public/chunk-OPDTKONB.js +1 -0
- package/public/chunk-ORK6IK47.js +4 -0
- package/public/chunk-OZI5E5HI.js +1 -0
- package/public/chunk-P4KZ2HSY.js +1 -0
- package/public/chunk-PI4V6TBF.js +1 -0
- package/public/chunk-PMN4OFOP.js +1 -0
- package/public/chunk-Q4WN5E2X.js +1 -0
- package/public/chunk-QA6IRNX4.js +1 -0
- package/public/chunk-QGV5S3KG.js +1 -0
- package/public/chunk-QKEI7JJT.js +1 -0
- package/public/chunk-QNQ4HXBD.js +1 -0
- package/public/chunk-QNQIBHMP.js +1 -0
- package/public/chunk-R4E7RV22.js +1 -0
- package/public/chunk-R5Q7W4AU.js +1 -0
- package/public/chunk-RQG4TZOZ.js +1 -0
- package/public/chunk-SN3EVQDP.js +1 -0
- package/public/chunk-T3526HQB.js +1 -0
- package/public/{chunk-2PQS43HJ.js → chunk-T4IEJNVJ.js} +1 -1
- package/public/chunk-TTPURYKZ.js +1 -0
- package/public/{chunk-OJ37C3YB.js → chunk-U4YCHJUJ.js} +2 -2
- package/public/chunk-UAFCVKMR.js +1 -0
- package/public/chunk-UBCYUHPO.js +1 -0
- package/public/chunk-UJEB6C35.js +1 -0
- package/public/chunk-UQP4IIIX.js +1 -0
- package/public/chunk-URTTNRYM.js +1 -0
- package/public/chunk-USFURAEW.js +1 -0
- package/public/chunk-UVRDZGSU.js +1 -0
- package/public/chunk-VBTEO65F.js +1 -0
- package/public/chunk-WCRO6YQB.js +16 -0
- package/public/chunk-XL5BAQKW.js +8 -0
- package/public/chunk-XUAJJMQ4.js +1 -0
- package/public/chunk-Y67I4K2H.js +1 -0
- package/public/chunk-YHOHHKYL.js +1 -0
- package/public/chunk-ZABK6QJY.js +1 -0
- package/public/chunk-ZCGZM7LU.js +1 -0
- package/public/{chunk-WL5GK7PI.js → chunk-ZE7IZECI.js} +4 -4
- package/public/chunk-ZGIR65XW.js +1 -0
- package/public/chunk-ZXID2WUA.js +1 -0
- package/public/index.html +2 -2
- package/public/main-VGG7NRKO.js +1 -0
- package/public/styles-CT2LPGES.css +1 -0
- package/public/assets/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/monaco/min/vs/base/worker/workerMain.js +0 -31
- package/public/assets/monaco/min/vs/basic-languages/shell/shell.js +0 -10
- package/public/assets/monaco/min/vs/language/json/jsonMode.js +0 -19
- package/public/assets/monaco/min/vs/language/json/jsonWorker.js +0 -42
- package/public/chunk-2G3RYG7T.js +0 -4
- package/public/chunk-2OV2S53D.js +0 -1
- package/public/chunk-3MP4NIEN.js +0 -1
- package/public/chunk-3NF5LSRS.js +0 -1
- package/public/chunk-3OCGL4VG.js +0 -4
- package/public/chunk-3OS2E7NT.js +0 -1
- package/public/chunk-3U4TTBN3.js +0 -1
- package/public/chunk-4C4OAXTJ.js +0 -5
- package/public/chunk-5FFAA6YO.js +0 -1
- package/public/chunk-6AGYELAU.js +0 -1
- package/public/chunk-6VUYO4JJ.js +0 -1
- package/public/chunk-6Y44WRYZ.js +0 -5
- package/public/chunk-7RBF5X4H.js +0 -1
- package/public/chunk-AEA5MWJV.js +0 -1
- package/public/chunk-AQ7KVNYY.js +0 -1
- package/public/chunk-BRVBWBXQ.js +0 -1
- package/public/chunk-BZZVKG3V.js +0 -1
- package/public/chunk-CYZAN4CD.js +0 -1
- package/public/chunk-DSA6B4PW.js +0 -1
- package/public/chunk-DT7PMMCU.js +0 -1
- package/public/chunk-F5RNPJMD.js +0 -16
- package/public/chunk-FFBQ244V.js +0 -1
- package/public/chunk-G4KDX4LF.js +0 -5
- package/public/chunk-GBXDLKOS.js +0 -1
- package/public/chunk-HUESZB2Q.js +0 -1
- package/public/chunk-IC3ZXYWP.js +0 -1
- package/public/chunk-ICS7ZICH.js +0 -1
- package/public/chunk-ILKO7HAU.js +0 -68
- package/public/chunk-JL6T3BSX.js +0 -1
- package/public/chunk-JXLJRPJS.js +0 -1
- package/public/chunk-K3NHKO4E.js +0 -1
- package/public/chunk-K3PIHMRS.js +0 -3
- package/public/chunk-KKHQOHXA.js +0 -1
- package/public/chunk-LGUE3JKA.js +0 -1
- package/public/chunk-LNBMZDII.js +0 -1
- package/public/chunk-LXMBIF6W.js +0 -1
- package/public/chunk-M3CXG4MR.js +0 -1
- package/public/chunk-MA74SXNP.js +0 -1
- package/public/chunk-N3WEHNOH.js +0 -1
- package/public/chunk-NP2OU6PT.js +0 -1
- package/public/chunk-NRCW2EPZ.js +0 -50
- package/public/chunk-P2DQFTI7.js +0 -1
- package/public/chunk-PYAOOAFS.js +0 -8
- package/public/chunk-QRB4TY6A.js +0 -1
- package/public/chunk-QTWA67OK.js +0 -2
- package/public/chunk-RFNZZH35.js +0 -1
- package/public/chunk-RHJH4NAL.js +0 -51
- package/public/chunk-UASZBKBZ.js +0 -1
- package/public/chunk-UCNN3X7L.js +0 -1
- package/public/chunk-UYFTDKBB.js +0 -1
- package/public/chunk-VXWLFCOQ.js +0 -1
- package/public/chunk-W7GOVRP4.js +0 -1
- package/public/chunk-WDFYORD4.js +0 -1
- package/public/chunk-WTSUWA7S.js +0 -2
- package/public/chunk-XCJH7PUD.js +0 -1
- package/public/chunk-XKXSOWIU.js +0 -1
- package/public/chunk-YCRH56FY.js +0 -1
- package/public/chunk-ZMTA7EPT.js +0 -1
- package/public/chunk-ZTJZA6OC.js +0 -1
- package/public/chunk-ZUM4REDQ.js +0 -1
- package/public/chunk-ZUYIWQNV.js +0 -1
- package/public/main-ZIKN743D.js +0 -1
- package/public/styles-WNHDEKE4.css +0 -1
- /package/{TODO-MATTER.md → docs/matter-todo.md} +0 -0
- /package/public/{polyfills-5KWHJ7II.js → polyfills-NISNRVWY.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as ct}from"./chunk-NP23WSXR.js";import{a as Dn}from"./chunk-QKEI7JJT.js";import{g as mi}from"./chunk-KDXCBENV.js";import{$b as _e,A as ei,Ab as di,B as Mt,Bb as un,Cb as kt,Db as Ft,Eb as We,Fb as ui,G as tt,Gb as hi,Gc as wn,H as on,Hb as hn,I as sn,Ib as st,J as rn,Jb as rt,Kb as pn,Nb as _n,O as an,Ob as fn,P as ln,Pb as gn,Q as ti,Qb as pi,Qc as fe,R as j,Rb as ee,S as it,T as Ct,W as ii,Wb as pe,Wc as Bt,X as K,Xb as mn,Y as N,Ya as Fe,Yb as le,Zb as at,_ as cn,_b as lt,aa as c,ac as Pt,bb as It,bc as Y,c as Zi,cb as nt,cc as q,d as $,db as ot,e as en,ea as ni,fc as vn,g as Et,ga as Tt,ha as Nt,hc as P,i as et,ic as De,jb as ai,jc as _i,ka as ue,kc as fi,la as re,ma as oi,mb as ge,nb as I,o as xe,oa as D,ob as T,pa as ae,q as tn,qb as dn,rb as li,sb as Rt,v as X,vc as gi,w as nn,wa as je,wb as ci,xa as si,xb as he,xc as bn,ya as ri,yb as St,z as ke,za as W,zb as xt,zc as yn}from"./chunk-JRQC3M7W.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
|
+
`],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
|
+
`],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
|
+
`],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}
|
|
5
|
+
`],encapsulation:2,changeDetection:0})}}return e})(),br=new cn("live announcer delay",{providedIn:"root",factory:()=>100});function jn(e,o=!1){let t=e.body.querySelector("#ngb-live");return t==null&&o&&(t=e.createElement("div"),t.setAttribute("id","ngb-live"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.classList.add("visually-hidden"),e.body.appendChild(t)),t}var yr=(()=>{class e{constructor(){this._document=c(re),this._delay=c(br)}ngOnDestroy(){let t=jn(this._document);t&&t.parentElement.removeChild(t)}say(t){let i=jn(this._document,!0),n=this._delay;if(i!=null){i.textContent="";let s=()=>i.textContent=t;n===null?s():setTimeout(s,n)}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),wr=(()=>{class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=t=>t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Dr=(()=>{class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=mt,this.selectEvent=new D,this.activeChangeEvent=new D}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(t){this.activeIdx=t,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(t){this.selectEvent.emit(t)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=ge({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(i,n){i&1&&pe("mousedown",function(r){return r.preventDefault()}),i&2&&(ee("id",n.id),De("dropdown-menu show"+(n.popupClass?" "+n.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,n){i&1&&(Rt(0,vs,1,2,"ng-template",null,0,wn),kt(2,ys,2,9,"button",1,di)),i&2&&(Fe(2),Ft(n.results))},dependencies:[vr,mi],encapsulation:2})}}return e})(),Or=0,fu=(()=>{class e{constructor(){this._nativeElement=c(W).nativeElement,this._config=c(wr),this._live=c(yr),this._document=c(re),this._ngZone=c(ae),this._changeDetector=c(fe),this._injector=c(ue),this._popupService=new jt(Dr),this._positioning=Ui(),this._subscription=null,this._closed$=new $,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=X(this._nativeElement,"input").pipe(xe(t=>t.target.value)),this._resubscribeTypeahead$=new en(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new D,this.activeDescendant=null,this.popupId=`ngb-typeahead-${Or++}`,this._onTouched=()=>{},this._onChange=t=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:t}){t&&!t.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._nativeElement.disabled=t}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.key){case"ArrowDown":t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let i=this._windowRef.instance.getActive();Ce(i)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(i)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:t}=this._popupService.open();this._windowRef=t,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(i=>this._selectResultClosePopup(i)),this._windowRef.instance.activeChangeEvent.subscribe(i=>this.activeDescendant=i),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(Li([0,2])(i))}),this._afterRenderRef=It({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector}))}),Hi(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(t){let i=!1;this.selectItem.emit({item:t,preventDefault:()=>{i=!0}}),this._resubscribeTypeahead$.next(null),i||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let t=this._inputValueBackup.toLowerCase(),i=this._formatItemForInput(this._windowRef.instance.getActive());t===i.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+i.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,i.length])):this._writeInputValue(i)}}_formatItemForInput(t){return t!=null&&this.inputFormatter?this.inputFormatter(t):mt(t)}_writeInputValue(t){this._nativeElement.value=mt(t)}_subscribeToUserInput(){let t=this._valueChanges$.pipe(it(i=>{this._inputValueBackup=this.showHint?i:null,this._inputValueForSelectOnExact=this.selectOnExact?i:null,this._onChange(this.editable?i:null)}),this.ngbTypeahead?this.ngbTypeahead:()=>et([]));this._subscription=this._resubscribeTypeahead$.pipe(ti(()=>t)).subscribe(i=>{!i||i.length===0?this._closePopup():this.selectOnExact&&i.length===1&&this._formatItemForInput(i[0])===this._inputValueForSelectOnExact?(this._selectResult(i[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",i),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let n=i?i.length:0;this._live.say(n===0?"No results available":`${n} result${n===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=T({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(i,n){i&1&&pe("blur",function(){return n.handleBlur()})("keydown",function(r){return n.handleKeyDown(r)}),i&2&&(ee("autocomplete",n.autocomplete),he("aria-autocomplete",n.showHint?"both":"list")("aria-activedescendant",n.activeDescendant)("aria-controls",n.isPopupOpen()?n.popupId:null)("aria-expanded",n.isPopupOpen()),P("open",n.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[gi([{provide:Dn,useExisting:ii(()=>e),multi:!0}]),je]})}}return e})(),bo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})();var yo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({})}}return e})(),Er=[Kn,Qn,Jn,Yn,eo,no,oo,co,yo,uo,ho,po,_o,fo,go,mo,vo,bo],gu=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=I({type:e})}static{this.\u0275inj=N({imports:[Er,Kn,Qn,Jn,Yn,eo,no,oo,co,yo,uo,ho,po,_o,fo,go,mo,vo,bo]})}}return e})();export{tu as a,ks as b,iu as c,nu as d,vt as e,Xn as f,ou as g,to as h,du as i,qs as j,uu as k,io as l,Wt as m,rr as n,cr as o,ro as p,ao as q,hu as r,pu as s,_u as t,fu as u,gu as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-IPRQGPVV.js";import"./chunk-B4AJQJMI.js";export default a();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ce,e as ge}from"./chunk-
|
|
1
|
+
import{a as ce,e as ge}from"./chunk-B4AJQJMI.js";var ye=ge((le,me)=>{(function(Z,q){typeof le=="object"&&typeof me=="object"?me.exports=q():typeof define=="function"&&define.amd?define([],q):typeof le=="object"?le.FitAddon=q():Z.FitAddon=q()})(self,()=>(()=>{"use strict";var Z={};return(()=>{var q=Z;Object.defineProperty(q,"__esModule",{value:!0}),q.FitAddon=void 0,q.FitAddon=class{activate(K){this._terminal=K}dispose(){}fit(){let K=this.proposeDimensions();if(!K||!this._terminal||isNaN(K.cols)||isNaN(K.rows))return;let J=this._terminal._core;this._terminal.rows===K.rows&&this._terminal.cols===K.cols||(J._renderService.clear(),this._terminal.resize(K.cols,K.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let K=this._terminal._core,J=K._renderService.dimensions;if(J.css.cell.width===0||J.css.cell.height===0)return;let B=this._terminal.options.scrollback===0?0:K.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),u=window.getComputedStyle(this._terminal.element),n=o-(parseInt(u.getPropertyValue("padding-top"))+parseInt(u.getPropertyValue("padding-bottom"))),d=l-(parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("padding-left")))-B;return{cols:Math.max(2,Math.floor(d/J.css.cell.width)),rows:Math.max(1,Math.floor(n/J.css.cell.height))}}}})(),Z})())});var Ee=ge((de,Se)=>{(function(Z,q){typeof de=="object"&&typeof Se=="object"?Se.exports=q():typeof define=="function"&&define.amd?define([],q):typeof de=="object"?de.WebLinksAddon=q():Z.WebLinksAddon=q()})(self,()=>(()=>{"use strict";var Z={6:(B,r)=>{function o(u){try{let n=new URL(u),d=n.password&&n.username?`${n.protocol}//${n.username}:${n.password}@${n.host}`:n.username?`${n.protocol}//${n.username}@${n.host}`:`${n.protocol}//${n.host}`;return u.toLocaleLowerCase().startsWith(d.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(r,"__esModule",{value:!0}),r.LinkComputer=r.WebLinkProvider=void 0,r.WebLinkProvider=class{constructor(u,n,d,_={}){this._terminal=u,this._regex=n,this._handler=d,this._options=_}provideLinks(u,n){let d=l.computeLink(u,this._regex,this._terminal,this._handler);n(this._addCallbacks(d))}_addCallbacks(u){return u.map(n=>(n.leave=this._options.leave,n.hover=(d,_)=>{if(this._options.hover){let{range:p}=n;this._options.hover(d,_,p)}},n))}};class l{static computeLink(n,d,_,p){let h=new RegExp(d.source,(d.flags||"")+"g"),[t,s]=l._getWindowedLineStrings(n-1,_),e=t.join(""),i,a=[];for(;i=h.exec(e);){let f=i[0];if(!o(f))continue;let[v,g]=l._mapStrIdx(_,s,0,i.index),[c,m]=l._mapStrIdx(_,v,g,f.length);if(v===-1||g===-1||c===-1||m===-1)continue;let E={start:{x:g+1,y:v+1},end:{x:m,y:c+1}};a.push({range:E,text:f,activate:p})}return a}static _getWindowedLineStrings(n,d){let _,p=n,h=n,t=0,s="",e=[];if(_=d.buffer.active.getLine(n)){let i=_.translateToString(!0);if(_.isWrapped&&i[0]!==" "){for(t=0;(_=d.buffer.active.getLine(--p))&&t<2048&&(s=_.translateToString(!0),t+=s.length,e.push(s),_.isWrapped&&s.indexOf(" ")===-1););e.reverse()}for(e.push(i),t=0;(_=d.buffer.active.getLine(++h))&&_.isWrapped&&t<2048&&(s=_.translateToString(!0),t+=s.length,e.push(s),s.indexOf(" ")===-1););}return[e,p]}static _mapStrIdx(n,d,_,p){let h=n.buffer.active,t=h.getNullCell(),s=_;for(;p;){let e=h.getLine(d);if(!e)return[-1,-1];for(let i=s;i<e.length;++i){e.getCell(i,t);let a=t.getChars();if(t.getWidth()&&(p-=a.length||1,i===e.length-1&&a==="")){let f=h.getLine(d+1);f&&f.isWrapped&&(f.getCell(0,t),t.getWidth()===2&&(p+=1))}if(p<0)return[d,i]}d++,s=0}return[d,s]}}r.LinkComputer=l}},q={};function K(B){var r=q[B];if(r!==void 0)return r.exports;var o=q[B]={exports:{}};return Z[B](o,o.exports,K),o.exports}var J={};return(()=>{var B=J;Object.defineProperty(B,"__esModule",{value:!0}),B.WebLinksAddon=void 0;let r=K(6),o=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function l(u,n){let d=window.open();if(d){try{d.opener=null}catch{}d.location.href=n}else console.warn("Opening link blocked as opener could not be cleared")}B.WebLinksAddon=class{constructor(u=l,n={}){this._handler=u,this._options=n}activate(u){this._terminal=u;let n=this._options,d=n.urlRegex||o;this._linkProvider=this._terminal.registerLinkProvider(new r.WebLinkProvider(this._terminal,d,this._handler,n))}dispose(){this._linkProvider?.dispose()}}})(),J})())});var ke=ge((_e,Ce)=>{(function(Z,q){if(typeof _e=="object"&&typeof Ce=="object")Ce.exports=q();else if(typeof define=="function"&&define.amd)define([],q);else{var K=q();for(var J in K)(typeof _e=="object"?_e:Z)[J]=K[J]}})(globalThis,()=>(()=>{"use strict";var Z={4567:function(B,r,o){var l=this&&this.__decorate||function(e,i,a,f){var v,g=arguments.length,c=g<3?i:f===null?f=Object.getOwnPropertyDescriptor(i,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,i,a,f);else for(var m=e.length-1;m>=0;m--)(v=e[m])&&(c=(g<3?v(c):g>3?v(i,a,c):v(i,a))||c);return g>3&&c&&Object.defineProperty(i,a,c),c},u=this&&this.__param||function(e,i){return function(a,f){i(a,f,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;let n=o(9042),d=o(9924),_=o(844),p=o(4725),h=o(2585),t=o(3656),s=r.AccessibilityManager=class extends _.Disposable{constructor(e,i,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let v=0;v<this._terminal.rows;v++)this._rowElements[v]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[v]);if(this._topBoundaryFocusListener=v=>this._handleBoundaryFocus(v,0),this._bottomBoundaryFocusListener=v=>this._handleBoundaryFocus(v,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new d.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(v=>this._handleResize(v.rows))),this.register(this._terminal.onRender(v=>this._refreshRows(v.start,v.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(v=>this._handleChar(v))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
2
2
|
`))),this.register(this._terminal.onA11yTab(v=>this._handleTab(v))),this.register(this._terminal.onKey(v=>this._handleKey(v.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,t.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,_.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let i=0;i<e;i++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
3
3
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,i){this._liveRegionDebouncer.refresh(e,i,this._terminal.rows)}_renderRows(e,i){let a=this._terminal.buffer,f=a.lines.length.toString();for(let v=e;v<=i;v++){let g=a.lines.get(a.ydisp+v),c=[],m=g?.translateToString(!0,void 0,void 0,c)||"",E=(a.ydisp+v+1).toString(),k=this._rowElements[v];k&&(m.length===0?(k.innerText="\xA0",this._rowColumns.set(k,[0,1])):(k.textContent=m,this._rowColumns.set(k,c)),k.setAttribute("aria-posinset",E),k.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,i){let a=e.target,f=this._rowElements[i===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(i===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let v,g;if(i===0?(v=a,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(v=this._rowElements.shift(),g=a,this._rowContainer.removeChild(v)),v.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),i===0){let c=this._createAccessibilityTreeNode();this._rowElements.unshift(c),this._rowContainer.insertAdjacentElement("afterbegin",c)}else{let c=this._createAccessibilityTreeNode();this._rowElements.push(c),this._rowContainer.appendChild(c)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(i===0?-1:1),this._rowElements[i===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let i={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((i.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||i.node===a.node&&i.offset>a.offset)&&([i,a]=[a,i]),i.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(i={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(i.node))return;let f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:f.textContent?.length??0}),!this._rowContainer.contains(a.node))return;let v=({node:m,offset:E})=>{let k=m instanceof Text?m.parentNode:m,D=parseInt(k?.getAttribute("aria-posinset"),10)-1;if(isNaN(D))return console.warn("row is invalid. Race condition?"),null;let b=this._rowColumns.get(k);if(!b)return console.warn("columns is null. Race condition?"),null;let x=E<b.length?b[E]:b.slice(-1)[0]+1;return x>=this._terminal.cols&&(++D,x=0),{row:D,column:x}},g=v(i),c=v(a);if(g&&c){if(g.row>c.row||g.row===c.row&&g.column>=c.column)throw new Error("invalid range");this._terminal.select(g.column,g.row,(c.row-g.row)*this._terminal.cols-g.column+c.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let i=this._rowContainer.children.length;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=s=l([u(1,h.IInstantiationService),u(2,p.ICoreBrowserService),u(3,p.IRenderService)],s)},3614:(B,r)=>{function o(d){return d.replace(/\r?\n/g,"\r")}function l(d,_){return _?"\x1B[200~"+d+"\x1B[201~":d}function u(d,_,p,h){d=l(d=o(d),p.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),p.triggerDataEvent(d,!0),_.value=""}function n(d,_,p){let h=p.getBoundingClientRect(),t=d.clientX-h.left-10,s=d.clientY-h.top-10;_.style.width="20px",_.style.height="20px",_.style.left=`${t}px`,_.style.top=`${s}px`,_.style.zIndex="1000",_.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=l,r.copyHandler=function(d,_){d.clipboardData&&d.clipboardData.setData("text/plain",_.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,_,p,h){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),_,p,h)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,_,p,h,t){n(d,_,p),t&&h.rightClickSelect(d),_.value=h.selectionText,_.select()}},7239:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;let l=o(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,l,u,n){o.addEventListener(l,u,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(l,u,n))}}}},3551:function(B,r,o){var l=this&&this.__decorate||function(s,e,i,a){var f,v=arguments.length,g=v<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,i):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(s,e,i,a);else for(var c=s.length-1;c>=0;c--)(f=s[c])&&(g=(v<3?f(g):v>3?f(e,i,g):f(e,i))||g);return v>3&&g&&Object.defineProperty(e,i,g),g},u=this&&this.__param||function(s,e){return function(i,a){e(i,a,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier=void 0;let n=o(3656),d=o(8460),_=o(844),p=o(2585),h=o(4725),t=r.Linkifier=class extends _.Disposable{get currentLink(){return this._currentLink}constructor(s,e,i,a,f){super(),this._element=s,this._mouseService=e,this._renderService=i,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,_.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,_.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(s){this._lastMouseEvent=s;let e=this._positionFromMouseEvent(s,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;let i=s.composedPath();for(let a=0;a<i.length;a++){let f=i[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(s){if(this._activeLine!==s.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(s,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,s)||(this._clearCurrentLink(),this._askForLink(s,!0))}_askForLink(s,e){this._activeProviderReplies&&e||(this._activeProviderReplies?.forEach(a=>{a?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=s.y);let i=!1;for(let[a,f]of this._linkProviderService.linkProviders.entries())e?this._activeProviderReplies?.get(a)&&(i=this._checkLinkProviderResult(a,s,i)):f.provideLinks(s.y,v=>{if(this._isMouseOut)return;let g=v?.map(c=>({link:c}));this._activeProviderReplies?.set(a,g),i=this._checkLinkProviderResult(a,s,i),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(s.y,this._activeProviderReplies)})}_removeIntersectingLinks(s,e){let i=new Set;for(let a=0;a<e.size;a++){let f=e.get(a);if(f)for(let v=0;v<f.length;v++){let g=f[v],c=g.link.range.start.y<s?0:g.link.range.start.x,m=g.link.range.end.y>s?this._bufferService.cols:g.link.range.end.x;for(let E=c;E<=m;E++){if(i.has(E)){f.splice(v--,1);break}i.add(E)}}}}_checkLinkProviderResult(s,e,i){if(!this._activeProviderReplies)return i;let a=this._activeProviderReplies.get(s),f=!1;for(let v=0;v<s;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(f=!0);if(!f&&a){let v=a.find(g=>this._linkAtPosition(g.link,e));v&&(i=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!i)for(let v=0;v<this._activeProviderReplies.size;v++){let g=this._activeProviderReplies.get(v)?.find(c=>this._linkAtPosition(c.link,e));if(g){i=!0,this._handleNewLink(g);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(s){if(!this._currentLink)return;let e=this._positionFromMouseEvent(s,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(s,this._currentLink.link.text)}_clearCurrentLink(s,e){this._currentLink&&this._lastMouseEvent&&(!s||!e||this._currentLink.link.range.start.y>=s&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))}_handleNewLink(s){if(!this._lastMouseEvent)return;let e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(s.link,e)&&(this._currentLink=s,this._currentLink.state={decorations:{underline:s.link.decorations===void 0||s.link.decorations.underline,pointerCursor:s.link.decorations===void 0||s.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,s.link,this._lastMouseEvent),s.link.decorations={},Object.defineProperties(s.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:i=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",i))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:i=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(s.link,i))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;let a=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){let v=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);v&&this._askForLink(v,!1)}})))}_linkHover(s,e,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&s.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(i,e.text)}_fireUnderlineEvent(s,e){let i=s.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-a-1,i.end.x,i.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(s,e,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&s.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(i,e.text)}_linkAtPosition(s,e){let i=s.range.start.y*this._bufferService.cols+s.range.start.x,a=s.range.end.y*this._bufferService.cols+s.range.end.x,f=e.y*this._bufferService.cols+e.x;return i<=f&&f<=a}_positionFromMouseEvent(s,e,i){let a=i.getCoords(s,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(s,e,i,a,f){return{x1:s,y1:e,x2:i,y2:a,cols:this._bufferService.cols,fg:f}}};r.Linkifier=t=l([u(1,h.IMouseService),u(2,h.IRenderService),u(3,p.IBufferService),u(4,h.ILinkProviderService)],t)},9042:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(B,r,o){var l=this&&this.__decorate||function(h,t,s,e){var i,a=arguments.length,f=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,t,s,e);else for(var v=h.length-1;v>=0;v--)(i=h[v])&&(f=(a<3?i(f):a>3?i(t,s,f):i(t,s))||f);return a>3&&f&&Object.defineProperty(t,s,f),f},u=this&&this.__param||function(h,t){return function(s,e){t(s,e,h)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;let n=o(511),d=o(2585),_=r.OscLinkProvider=class{constructor(h,t,s){this._bufferService=h,this._optionsService=t,this._oscLinkService=s}provideLinks(h,t){let s=this._bufferService.buffer.lines.get(h-1);if(!s)return void t(void 0);let e=[],i=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=s.getTrimmedLength(),v=-1,g=-1,c=!1;for(let m=0;m<f;m++)if(g!==-1||s.hasContent(m)){if(s.loadCell(m,a),a.hasExtendedAttrs()&&a.extended.urlId){if(g===-1){g=m,v=a.extended.urlId;continue}c=a.extended.urlId!==v}else g!==-1&&(c=!0);if(c||g!==-1&&m===f-1){let E=this._oscLinkService.getLinkData(v)?.uri;if(E){let k={start:{x:g+1,y:h},end:{x:m+(c||m!==f-1?0:1),y:h}},D=!1;if(!i?.allowNonHttpProtocols)try{let b=new URL(E);["http:","https:"].includes(b.protocol)||(D=!0)}catch{D=!0}D||e.push({text:E,range:k,activate:(b,x)=>i?i.activate(b,x,k):p(0,x),hover:(b,x)=>i?.hover?.(b,x,k),leave:(b,x)=>i?.leave?.(b,x,k)})}c=!1,a.hasExtendedAttrs()&&a.extended.urlId?(g=m,v=a.extended.urlId):(g=-1,v=-1)}}t(e)}};function p(h,t){if(confirm(`Do you want to navigate to ${t}?
|
|
4
4
|
|