@duplicati/ngclient 0.0.211 → 0.0.213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-SUY5AQLW.js → chunk-22PELS6R.js} +1 -1
  3. package/{chunk-U3SGWHNI.js → chunk-2NLWVJNK.js} +1 -1
  4. package/{chunk-RFB5A3B7.js → chunk-35APLYI4.js} +1 -1
  5. package/{chunk-6FBNKISB.js → chunk-3IZWJV72.js} +1 -1
  6. package/chunk-3PUCEFO5.js +1 -0
  7. package/{chunk-LGILJ5LY.js → chunk-3XCT4PYH.js} +1 -1
  8. package/{chunk-DV7RWC4G.js → chunk-5FQ5SDPZ.js} +1 -1
  9. package/{chunk-ITA7DTN3.js → chunk-5L2OOKRZ.js} +1 -1
  10. package/chunk-5REJ6F23.js +1 -0
  11. package/chunk-7FDLOZXV.js +1 -0
  12. package/{chunk-SLS3DCJP.js → chunk-ADB5QRUO.js} +1 -1
  13. package/{chunk-C6RVYQ4M.js → chunk-AMSFSVKQ.js} +1 -1
  14. package/{chunk-IZCDGVXJ.js → chunk-APAWDC4O.js} +1 -1
  15. package/{chunk-I7HI454U.js → chunk-AZRNX5LU.js} +1 -1
  16. package/{chunk-OQ6BKP5N.js → chunk-BDQJFOCO.js} +1 -1
  17. package/{chunk-JTO22TJU.js → chunk-BLPTBPXV.js} +1 -1
  18. package/chunk-BME6TJIR.js +1 -0
  19. package/{chunk-NBTTYKXH.js → chunk-BRL4YYWO.js} +1 -1
  20. package/chunk-C5OIC3DB.js +1 -0
  21. package/chunk-CFJXIOSV.js +1 -0
  22. package/{chunk-ZY64T3CX.js → chunk-CQYKOCGO.js} +1 -1
  23. package/chunk-CW43F6WE.js +1 -0
  24. package/{chunk-WOZTK7S5.js → chunk-CYY7RVDE.js} +1 -1
  25. package/chunk-DFVPFPMV.js +11 -0
  26. package/{chunk-3KMV4PTJ.js → chunk-DTIGWCAE.js} +1 -1
  27. package/{chunk-LIDIFLHF.js → chunk-EGTYGTQI.js} +1 -1
  28. package/{chunk-X64LSE6Y.js → chunk-EQNDYV43.js} +1 -1
  29. package/chunk-EU6N52DH.js +1 -0
  30. package/{chunk-YIM56S4M.js → chunk-FMDSOHVR.js} +1 -1
  31. package/{chunk-VAQ435AR.js → chunk-FSHBOASN.js} +1 -1
  32. package/{chunk-VTFVTC7O.js → chunk-GE3DHZ5E.js} +1 -1
  33. package/chunk-GO22QPW4.js +1 -0
  34. package/{chunk-YQD4QIGG.js → chunk-HHDCI6IF.js} +1 -1
  35. package/chunk-I625OICV.js +1 -0
  36. package/chunk-IWDA6CMP.js +1 -0
  37. package/{chunk-Z772CHAB.js → chunk-J5TWEZOP.js} +1 -1
  38. package/chunk-J5VU6VA4.js +1 -0
  39. package/{chunk-BKQA64HZ.js → chunk-J6WVOYQ6.js} +1 -1
  40. package/chunk-JLSU6WKG.js +1 -0
  41. package/{chunk-KAZ3YMHR.js → chunk-JMLM4A3C.js} +1 -1
  42. package/{chunk-3ZCJK7PY.js → chunk-KHFOQETZ.js} +1 -1
  43. package/{chunk-BMWZYMK6.js → chunk-KHZ5AXGT.js} +1 -1
  44. package/chunk-KMGGFCBZ.js +1 -0
  45. package/chunk-L2QOWZDR.js +1 -0
  46. package/chunk-LOFKRPRH.js +1 -0
  47. package/{chunk-SA6PEMWL.js → chunk-LQKECNBH.js} +1 -1
  48. package/{chunk-HUJGWHH6.js → chunk-LU7TIW3P.js} +1 -1
  49. package/chunk-M5RTYP7N.js +2 -0
  50. package/{chunk-I4XRVBRQ.js → chunk-MRSBKQQM.js} +1 -1
  51. package/{chunk-MNK3XRJD.js → chunk-NBKLLQQO.js} +1 -1
  52. package/chunk-NCXKMSRH.js +1 -0
  53. package/{chunk-NXF5BMPG.js → chunk-OBF6ZSYT.js} +1 -1
  54. package/chunk-OO32MPRQ.js +1 -0
  55. package/{chunk-36J3WTHV.js → chunk-OZEGNE5W.js} +1 -1
  56. package/chunk-PBYZZEYM.js +1 -0
  57. package/{chunk-2LSZ2I43.js → chunk-QAQMMCTH.js} +1 -1
  58. package/{chunk-GROPRXXJ.js → chunk-QQLV7J6T.js} +1 -1
  59. package/{chunk-DGPSGSEP.js → chunk-QRLREAIK.js} +1 -1
  60. package/chunk-QUXPHHDZ.js +1 -0
  61. package/chunk-R5OX4JTJ.js +1 -0
  62. package/{chunk-BEXYTIOL.js → chunk-R6TFME5I.js} +1 -1
  63. package/{chunk-KQZRDX7C.js → chunk-S3FBC24H.js} +1 -1
  64. package/chunk-SGLY2D7Y.js +1 -0
  65. package/chunk-T2X5J6MQ.js +1 -0
  66. package/chunk-TGZAL6DJ.js +1 -0
  67. package/chunk-TJNL6F5S.js +1 -0
  68. package/{chunk-PSRISEFO.js → chunk-TPHRU6NP.js} +1 -1
  69. package/{chunk-NBPZDFGF.js → chunk-TZEOQBIX.js} +2 -2
  70. package/{chunk-GCFBX62M.js → chunk-U34FLIYL.js} +1 -1
  71. package/chunk-UE37PPYX.js +1 -0
  72. package/chunk-UH2E7MMT.js +4 -0
  73. package/chunk-V7UJAXBT.js +2 -0
  74. package/chunk-VCIINZCU.js +1 -0
  75. package/{chunk-3DFXRSFL.js → chunk-VDHWNNO7.js} +1 -1
  76. package/{chunk-3A4HTZ7B.js → chunk-VGBTP4QP.js} +1 -1
  77. package/{chunk-YIKPWYEP.js → chunk-VI7MBIGT.js} +1 -1
  78. package/{chunk-64W3VKAP.js → chunk-WALKMFYR.js} +1 -1
  79. package/{chunk-7HXPIZN6.js → chunk-WIE7KXIC.js} +1 -1
  80. package/{chunk-CCUGG5E4.js → chunk-XAYG4QT7.js} +1 -1
  81. package/{chunk-WBTDGQME.js → chunk-XCVBN7EK.js} +1 -1
  82. package/chunk-XZNYCTQB.js +1 -0
  83. package/chunk-Y3BYCXUX.js +1 -0
  84. package/{chunk-LJBFPDG2.js → chunk-YGHS3INE.js} +1 -1
  85. package/chunk-YHVGLFWL.js +1 -0
  86. package/{chunk-UY2WEUKC.js → chunk-YMUS7QSB.js} +1 -1
  87. package/chunk-YPWKWP5H.js +1 -0
  88. package/chunk-Z7CZCI7E.js +1 -0
  89. package/chunk-ZJOUYWI2.js +1 -0
  90. package/{chunk-COT66FJB.js → chunk-ZK3S23CJ.js} +1 -1
  91. package/{chunk-AYOFR344.js → chunk-ZXQSQRKN.js} +1 -1
  92. package/index.html +2 -2
  93. package/{main-4RMOPKNF.js → main-ZP6YWLCN.js} +1 -1
  94. package/package.json +1 -1
  95. package/ship-ui-assets/mcp/components.json +118 -47
  96. package/styles-43GHZ572.css +1 -0
  97. package/chunk-2DOT6WAE.js +0 -1
  98. package/chunk-2TGB7FK7.js +0 -1
  99. package/chunk-5MOLXRIQ.js +0 -1
  100. package/chunk-5N2VOOTZ.js +0 -11
  101. package/chunk-7FYL7MVA.js +0 -1
  102. package/chunk-A7BE7GAK.js +0 -1
  103. package/chunk-ANLSBAWJ.js +0 -1
  104. package/chunk-AXBVBB2B.js +0 -1
  105. package/chunk-BKEVAAWN.js +0 -1
  106. package/chunk-CJ5SZZQC.js +0 -1
  107. package/chunk-CVTB53TL.js +0 -1
  108. package/chunk-EGJL4XXZ.js +0 -1
  109. package/chunk-ERITO7WM.js +0 -4
  110. package/chunk-FCVVFGU2.js +0 -1
  111. package/chunk-FXZ3K2FU.js +0 -1
  112. package/chunk-G6ZV6LAU.js +0 -1
  113. package/chunk-GSDHTV3P.js +0 -1
  114. package/chunk-HDJL2F2F.js +0 -1
  115. package/chunk-IHB6NRMQ.js +0 -1
  116. package/chunk-IV3M3Q6B.js +0 -1
  117. package/chunk-KEHA3UWS.js +0 -1
  118. package/chunk-MI32HHLT.js +0 -1
  119. package/chunk-N35VE3MO.js +0 -1
  120. package/chunk-NDLPNBGE.js +0 -1
  121. package/chunk-NQIZGFSO.js +0 -1
  122. package/chunk-PAPOSE5G.js +0 -1
  123. package/chunk-Q72Y55NB.js +0 -1
  124. package/chunk-SP3KG7FO.js +0 -1
  125. package/chunk-SSUCTZ3H.js +0 -1
  126. package/chunk-UCR4I5MD.js +0 -1
  127. package/chunk-W4HWOC3K.js +0 -1
  128. package/chunk-WQVQC2MC.js +0 -2
  129. package/chunk-WSFAOFM3.js +0 -1
  130. package/chunk-XE42CXGY.js +0 -1
  131. package/chunk-XRSDTFDU.js +0 -2
  132. package/chunk-YCLTQEU6.js +0 -1
  133. package/chunk-ZVWTSTR6.js +0 -1
  134. package/styles-6WG7TD6T.css +0 -1
@@ -0,0 +1 @@
1
+ import{va as de}from"./chunk-BDQJFOCO.js";import{a as M,b as ie,c as ae,g as ce,h as le}from"./chunk-FSHBOASN.js";import{Aa as j,Da as A,Ea as y,Fa as E,Ga as K,Ha as X,Ia as W,Ja as q,Ka as Q,La as ee,Ma as te,Na as g,S as m,Ta as w,Ua as ne,V as u,Va as re,Y as S,Z as a,Za as oe,aa as Y,dd as se,ia as f,ma as P,na as k,wa as Z,xa as U,ya as J,za as C}from"./chunk-UH2E7MMT.js";import{a as H}from"./chunk-7CGTOI24.js";var _=class{_doc;constructor(n){this._doc=n}manager},b=(()=>{class r extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(a(f))};static \u0275prov=u({token:r,factory:r.\u0275fac})}return r})(),N=new S(""),V=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this});let o=e.filter(i=>!(i instanceof b));this._plugins=o.slice().reverse();let s=e.find(i=>i instanceof b);s&&this._plugins.push(s)}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new m(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(a(N),a(P))};static \u0275prov=u({token:r,factory:r.\u0275fac})}return r})(),x="ng-app-id";function ue(r){for(let n of r)n.remove()}function fe(r,n){let e=n.createElement("style");return e.textContent=r,e}function Ee(r,n,e,t){let o=r.head?.querySelectorAll(`style[${x}="${n}"],link[${x}="${n}"]`);if(o)for(let s of o)s.removeAttribute(x),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function F(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var z=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,Ee(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,fe);t?.forEach(o=>this.addUsage(o,this.external,F))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(ue(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ue(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,fe(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,F(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(a(f),a(U),a(j,8),a(C))};static \u0275prov=u({token:r,factory:r.\u0275fac})}return r})(),B={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},G=/%COMP%/g;var me="%COMP%",Se=`_nghost-${me}`,we=`_ngcontent-${me}`,Me=!0,_e=new S("",{factory:()=>Me});function Te(r){return we.replace(G,r)}function De(r){return Se.replace(G,r)}function ge(r,n){return n.map(e=>e.replace(G,r))}var $=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,t,o,s,i,c,d=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=d,this.tracingService=l,this.defaultRenderer=new T(e,i,c,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,t);return o instanceof O?o.applyToHost(e):o instanceof D&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,c=this.ngZone,d=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(t.encapsulation){case A.Emulated:s=new O(d,l,t,this.appId,p,i,c,h);break;case A.ShadowDom:return new I(d,e,t,i,c,this.nonce,h,l);case A.ExperimentalIsolatedShadowDom:return new I(d,e,t,i,c,this.nonce,h);default:s=new D(d,l,t,p,i,c,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(a(V),a(z),a(U),a(_e),a(f),a(P),a(j),a(re,8))};static \u0275prov=u({token:r,factory:r.\u0275fac})}return r})(),T=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o){this.eventManager=n,this.doc=e,this.ngZone=t,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(B[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(pe(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(pe(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new m(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=B[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=B[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(w.DashCase|w.Important)?n.style.setProperty(e,t,o&w.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&w.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=M().getGlobalEventTarget(this.doc,n),!n))throw new m(5102,!1);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function pe(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var I=class extends T{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,t,o,s,i,c,d){super(n,o,s,c),this.hostEl=e,this.sharedStylesHost=d,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=t.styles;l=ge(t.id,l);for(let h of l){let v=document.createElement("style");i&&v.setAttribute("nonce",i),v.textContent=h,this.shadowRoot.appendChild(v)}let p=t.getExternalStyles?.();if(p)for(let h of p){let v=F(h,o);i&&v.setAttribute("nonce",i),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},D=class extends T{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,c,d){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=t.styles;this.styles=d?ge(d,l):l,this.styleUrls=t.getExternalStyles?.(d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&ne.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},O=class extends D{contentAttr;hostAttr;constructor(n,e,t,o,s,i,c,d){let l=o+"-"+t.id;super(n,e,t,s,i,c,d,l),this.contentAttr=Te(l),this.hostAttr=De(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var L=class r extends ae{supportsDOMEvents=!0;static makeCurrent(){ie(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=be();return e==null?null:Ie(e)}resetBaseElement(){R=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ce(document.cookie,n)}},R=null;function be(){return R=R||document.head.querySelector("base"),R?R.getAttribute("href"):null}function Ie(r){return new URL(r,document.baseURI).pathname}var Oe=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=u({token:r,factory:r.\u0275fac})}return r})(),ve=["alt","control","meta","shift"],Ne={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},ye=(()=>{class r extends _{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),c=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>M().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),ve.forEach(l=>{let p=t.indexOf(l);p>-1&&(t.splice(p,1),i+=l+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let o=Ne[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ve.forEach(i=>{if(i!==o){let c=Le[i];c(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(a(f))};static \u0275prov=u({token:r,factory:r.\u0275fac})}return r})();async function He(r,n,e){let t=H({rootComponent:r},Pe(n,e));return se(t)}function Pe(r,n){return{platformRef:n?.platformRef,appProviders:[...Be,...r?.providers??[]],platformProviders:xe}}function ke(){L.makeCurrent()}function Ue(){return new k}function je(){return Z(document),document}var xe=[{provide:C,useValue:de},{provide:J,useValue:ke,multi:!0},{provide:f,useFactory:je}];var Be=[{provide:Y,useValue:"root"},{provide:k,useFactory:Ue},{provide:N,useClass:b,multi:!0},{provide:N,useClass:ye,multi:!0},$,z,V,{provide:oe,useExisting:$},{provide:le,useClass:Oe},[]];var Ft=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(a(f))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Ve=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=u({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=a(ze),o},providedIn:"root"})}return r})(),ze=(()=>{class r extends Ve{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return E(t,"HTML")?y(t):te(this._doc,String(t)).toString();case g.STYLE:return E(t,"Style")?y(t):t;case g.SCRIPT:if(E(t,"Script"))return y(t);throw new m(5200,!1);case g.URL:return E(t,"URL")?y(t):ee(String(t));case g.RESOURCE_URL:if(E(t,"ResourceURL"))return y(t);throw new m(5201,!1);default:throw new m(5202,!1)}}bypassSecurityTrustHtml(e){return K(e)}bypassSecurityTrustStyle(e){return X(e)}bypassSecurityTrustScript(e){return W(e)}bypassSecurityTrustUrl(e){return q(e)}bypassSecurityTrustResourceUrl(e){return Q(e)}static \u0275fac=function(t){return new(t||r)(a(f))};static \u0275prov=u({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{He as a,Ft as b,Ve as c};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-M5RTYP7N.js";import"./chunk-HHDCI6IF.js";import"./chunk-NCXKMSRH.js";import"./chunk-QAQMMCTH.js";import"./chunk-BRL4YYWO.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";export{a as default};
@@ -1,3 +1,3 @@
1
- import{a as Ee}from"./chunk-NBPZDFGF.js";import{a as Ne}from"./chunk-COT66FJB.js";import"./chunk-W4HWOC3K.js";import"./chunk-YIM56S4M.js";import"./chunk-MNK3XRJD.js";import{k as Te,p as A}from"./chunk-5N2VOOTZ.js";import"./chunk-ITA7DTN3.js";import"./chunk-Q72Y55NB.js";import"./chunk-NXF5BMPG.js";import{b as he}from"./chunk-GSDHTV3P.js";import"./chunk-WBTDGQME.js";import"./chunk-SLS3DCJP.js";import"./chunk-SUY5AQLW.js";import"./chunk-6Q6SSTBK.js";import"./chunk-I4XRVBRQ.js";import"./chunk-MI32HHLT.js";import"./chunk-X64LSE6Y.js";import"./chunk-RFB5A3B7.js";import"./chunk-HUJGWHH6.js";import"./chunk-UY2WEUKC.js";import{b as D}from"./chunk-AYOFR344.js";import"./chunk-HDJL2F2F.js";import"./chunk-BEXYTIOL.js";import"./chunk-I7HI454U.js";import{B as ue,G as de,H as _e,L as pe,P as Ce,Y as ge,c as Z,e as ee,f as te,j as ne,n as oe,o as ie,p as ae,q as se,r as re,s as le,t as ce,v as me}from"./chunk-YCLTQEU6.js";import{b as Fe,d as Se}from"./chunk-2LSZ2I43.js";import{b as W,d as Q,e as Y}from"./chunk-BMWZYMK6.js";import"./chunk-7FYL7MVA.js";import"./chunk-NBTTYKXH.js";import"./chunk-OQ6BKP5N.js";import"./chunk-VAQ435AR.js";import{Ab as F,Bb as l,Cb as o,Db as a,Hb as I,Ib as M,Kb as v,Ra as u,Rb as p,Sb as C,Tb as O,U as b,Ub as x,Vb as w,Xb as K,Z as _,Zb as N,ca as E,da as f,eb as R,ic as J,oa as L,qa as $,qc as X,rc as q,sc as V,ub as k,vb as G,wb as B,xc as H,yb as y,yc as z,zb as U,zc as j}from"./chunk-ERITO7WM.js";import"./chunk-7CGTOI24.js";var T=class s{#e=new Map;saveState(t){let e=crypto.randomUUID();return this.#e.set(e,t),e}getState(t){return this.#e.get(t)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})};var Ie=()=>["backup"];function Me(s,t){s&1&&a(0,"sh-progress-bar",11)}function Oe(s,t){if(s&1&&(l(0,"sh-form-field"),a(1,"input",35),o()),s&2){let e=t.$implicit,n=t.$index;u(),F("id",H("filter-",n))("formControl",e)}}function De(s,t){if(s&1){let e=v();l(0,"form",12)(1,"sh-select",13)(2,"label",14),p(3,1),a(4,"sh-icon",15),C(),o(),a(5,"input",16),o(),l(6,"sh-form-field")(7,"label",17),p(8,2),a(9,"sh-icon",18),C(),o(),a(10,"textarea",19),o(),l(11,"sh-form-field")(12,"label",20),p(13,3),a(14,"sh-icon",21),C(),o(),a(15,"textarea",22),o()(),l(16,"sh-divider"),O(17,4),o(),l(18,"form",12)(19,"sh-form-field")(20,"label",23),p(21,5),a(22,"sh-icon",24),C(),o(),a(23,"input",25),o(),l(24,"sh-form-field")(25,"label",26),p(26,6),a(27,"sh-icon",27),C(),o(),a(28,"input",28),o(),l(29,"app-toggle-card",29),I(30,30),O(31,7),M(),I(32,31),y(33,Oe,2,3,"sh-form-field",null,B),M(),o()(),l(35,"app-options-list",32),V("optionsChange",function(r){E(e);let m=N();return q(m.settings,r)||(m.settings=r),f(r)}),o(),l(36,"div",33)(37,"button",34),K("click",function(){E(e);let r=N();return f(r.submit())}),p(38,8),a(39,"sh-icon"),C(),o()()}if(s&2){let e=N();F("formGroup",e.baseCmdForm),u(),F("options",e.commandOptions()??j(10,Ie))("inlineSearch",!0),u(17),F("formGroup",e.standardFields),u(11),F("disableToggle",!0),u(4),U(e.standardFields.controls.filters.controls),u(2),X("options",e.settings),F("hasFreeTextSettings",!0),u(2),J("loading",e.isSubmitting()),u(2),x(e.baseCmdForm.value.command),w(38)}}var c=new re,P=class s{#e=_(A);#n=_(Se);#o=_(Q);#t=_(W);#a=_(Fe);#s=_(he);#i=_(T);#r=D(this.#t.params);commandOptions=D(this.#a.getApiV1Commandline());isSubmitting=L(!1);optionsFields=this.#e.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#c=$(()=>{let t=this.#r()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#n.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.#e.mapGeneralToForm(e.Backup),this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup,!0)),this.applyStateFromUrl(),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(c.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.#s.resumeDialogCheck(()=>this.#l())}#l(){this.isSubmitting.set(!0);let t=this.updateUrl(),e=this.baseCmdForm.value,n=e.targetUrl??"",r=(e.arguments??"").split(`
1
+ import{a as Ee}from"./chunk-TZEOQBIX.js";import{a as Ne}from"./chunk-ZK3S23CJ.js";import"./chunk-GO22QPW4.js";import"./chunk-FMDSOHVR.js";import"./chunk-NBKLLQQO.js";import{k as Te,p as A}from"./chunk-DFVPFPMV.js";import"./chunk-5L2OOKRZ.js";import"./chunk-OO32MPRQ.js";import"./chunk-OBF6ZSYT.js";import{b as he}from"./chunk-I625OICV.js";import"./chunk-XCVBN7EK.js";import"./chunk-ADB5QRUO.js";import"./chunk-22PELS6R.js";import"./chunk-6Q6SSTBK.js";import"./chunk-MRSBKQQM.js";import"./chunk-7FDLOZXV.js";import"./chunk-EQNDYV43.js";import"./chunk-35APLYI4.js";import"./chunk-LU7TIW3P.js";import"./chunk-YMUS7QSB.js";import{b as D}from"./chunk-ZXQSQRKN.js";import"./chunk-XZNYCTQB.js";import"./chunk-R6TFME5I.js";import"./chunk-AZRNX5LU.js";import{B as ue,G as de,H as _e,L as pe,P as Ce,Y as ge,c as Z,e as ee,f as te,j as ne,n as oe,o as ie,p as ae,q as se,r as re,s as le,t as ce,v as me}from"./chunk-NCXKMSRH.js";import{b as Fe,d as Se}from"./chunk-QAQMMCTH.js";import{b as W,d as Q,e as Y}from"./chunk-KHZ5AXGT.js";import"./chunk-L2QOWZDR.js";import"./chunk-BRL4YYWO.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import{$b as N,Ab as y,Ac as z,Bb as U,Bc as j,Cb as F,Db as l,Eb as o,Fb as a,Jb as I,Kb as M,Mb as v,Sa as u,Tb as p,Ub as C,V as b,Vb as O,Wb as x,Xb as w,Zb as K,_,da as E,ea as f,gb as R,kc as J,pa as L,ra as $,sc as X,tc as q,uc as V,wb as k,xb as G,yb as B,zc as H}from"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";var T=class s{#e=new Map;saveState(t){let e=crypto.randomUUID();return this.#e.set(e,t),e}getState(t){return this.#e.get(t)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})};var Ie=()=>["backup"];function Me(s,t){s&1&&a(0,"sh-progress-bar",11)}function Oe(s,t){if(s&1&&(l(0,"sh-form-field"),a(1,"input",35),o()),s&2){let e=t.$implicit,n=t.$index;u(),F("id",H("filter-",n))("formControl",e)}}function De(s,t){if(s&1){let e=v();l(0,"form",12)(1,"sh-select",13)(2,"label",14),p(3,1),a(4,"sh-icon",15),C(),o(),a(5,"input",16),o(),l(6,"sh-form-field")(7,"label",17),p(8,2),a(9,"sh-icon",18),C(),o(),a(10,"textarea",19),o(),l(11,"sh-form-field")(12,"label",20),p(13,3),a(14,"sh-icon",21),C(),o(),a(15,"textarea",22),o()(),l(16,"sh-divider"),O(17,4),o(),l(18,"form",12)(19,"sh-form-field")(20,"label",23),p(21,5),a(22,"sh-icon",24),C(),o(),a(23,"input",25),o(),l(24,"sh-form-field")(25,"label",26),p(26,6),a(27,"sh-icon",27),C(),o(),a(28,"input",28),o(),l(29,"app-toggle-card",29),I(30,30),O(31,7),M(),I(32,31),y(33,Oe,2,3,"sh-form-field",null,B),M(),o()(),l(35,"app-options-list",32),V("optionsChange",function(r){E(e);let m=N();return q(m.settings,r)||(m.settings=r),f(r)}),o(),l(36,"div",33)(37,"button",34),K("click",function(){E(e);let r=N();return f(r.submit())}),p(38,8),a(39,"sh-icon"),C(),o()()}if(s&2){let e=N();F("formGroup",e.baseCmdForm),u(),F("options",e.commandOptions()??j(10,Ie))("inlineSearch",!0),u(17),F("formGroup",e.standardFields),u(11),F("disableToggle",!0),u(4),U(e.standardFields.controls.filters.controls),u(2),X("options",e.settings),F("hasFreeTextSettings",!0),u(2),J("loading",e.isSubmitting()),u(2),x(e.baseCmdForm.value.command),w(38)}}var c=new re,P=class s{#e=_(A);#n=_(Se);#o=_(Q);#t=_(W);#a=_(Fe);#s=_(he);#i=_(T);#r=D(this.#t.params);commandOptions=D(this.#a.getApiV1Commandline());isSubmitting=L(!1);optionsFields=this.#e.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#c=$(()=>{let t=this.#r()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#n.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.#e.mapGeneralToForm(e.Backup),this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup,!0)),this.applyStateFromUrl(),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(c.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.#s.resumeDialogCheck(()=>this.#l())}#l(){this.isSubmitting.set(!0);let t=this.updateUrl(),e=this.baseCmdForm.value,n=e.targetUrl??"",r=(e.arguments??"").split(`
2
2
  `)??[],m=[n,...r].filter(i=>i.length>0),g=this.standardFields.value,S=g.filters??[],h=[e.command,...m,`--backup-name=${g["backup-name"]}`,`--dbpath=${g.dbpath}`,`--backup-id=${g["backup-id"]}`,...S.filter(i=>i).map(i=>i.startsWith("-")?`--exclude=${i?.slice(1)}`:`--include=${i}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(i=>`${i.Name.startsWith("--")?"":"--"}${i.Name}=${i.Value}`),"--disable-module=console-password-input"];this.#n.postApiV1Commandline({requestBody:h}).subscribe({next:i=>{i.Status==="OK"&&this.#o.navigate(["backup",this.backupId(),"commandline",i.ID],{queryParams:{state:t}})},error:()=>{this.isSubmitting.set(!1)}})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
3
3
  `)??""})}updateUrl(){let t=this.baseCmdForm.value,e=this.standardFields.value,n=e.filters??[],r=this.settings(),m=this.#i.saveState({command:t.command,targetUrl:t.targetUrl,arguments:t.arguments,backupId:e["backup-id"],backupName:e["backup-name"],dbpath:e.dbpath,filters:n,options:r});return this.#o.navigate([],{relativeTo:this.#t,queryParams:{state:m},replaceUrl:!0}),m}applyStateFromUrl(){let e=this.#t.snapshot.queryParams.state;if(!e)return;let n=this.#i.getState(e);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(r=>{this.standardFields.controls.filters.push(c.control(r))})),n.options&&n.options.length>0&&this.settings.set(n.options))}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=R({type:s,selectors:[["app-commandline"]],features:[z([A])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize` Command ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize` TargetUrl ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let r;r=$localize` Commandline Arguments ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize`Advanced options`;let g;g=$localize` Backup ID ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let S;S=$localize` Backup Name ${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON:`;let h;h=$localize`Filters`;let i;return i=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,e,n,r,m,g,S,h,i,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["shTooltip","Choose the command to execute"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["shTooltip","Enter the URL of the backup target"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["shTooltip","Enter one argument per line without quotes (e.g., *.txt)"],["id","arguments","autocomplete","off","rows","5","formControlName","arguments","placeholder","Enter one argument per line without quotes (e.g., *.txt)",1,"arguments"],["for","backup-id"],["shTooltip","The ID of the backup configuration this run belongs to (can be empty)"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["shTooltip","The optional name of the backup"],["id","backup-name","formControlName","backup-name"],[3,"disableToggle"],["title",""],["content","","formGroupName","filters"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,n){e&1&&(a(0,"app-status-bar"),l(1,"section")(2,"div",9)(3,"button",10),p(4,0),a(5,"sh-icon"),C(),o()(),k(6,Me,1,0,"sh-progress-bar",11)(7,De,40,11),o()),e&2&&(u(6),G(n.finishedLoading()?7:6))},dependencies:[le,ne,Z,ee,te,Ne,Ee,Te,ce,oe,se,ae,ie,Y,_e,ue,de,Ce,pe,me,ge],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.arguments[_ngcontent-%COMP%]{min-height:6rem;white-space:pre}"],changeDetection:0})};export{P as default};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-I7HI454U.js";import{Z as m,a as S,b as i,oa as c}from"./chunk-ERITO7WM.js";function u(...a){let e=c(...a);return Object.defineProperty(e,"value",{get:e.asReadonly(),set:e.set.bind(e)})}function A(a,e,o=!1,s){let l=m(f);e=l.getItemParsed(a,o)??e;let n=u(e),r=n[S];s?.equal&&(r.equal=s.equal);function g(t){t==null?l.removeItem(a):l.setItemParsed(a,t,o)}return n.set=t=>{g(t),i(r,t)},n.update=t=>{let T=t(n());g(T),i(r,T)},n}export{A as a};
1
+ import{a as f}from"./chunk-AZRNX5LU.js";import{_ as m,a as S,b as i,pa as c}from"./chunk-UH2E7MMT.js";function u(...a){let e=c(...a);return Object.defineProperty(e,"value",{get:e.asReadonly(),set:e.set.bind(e)})}function A(a,e,o=!1,s){let l=m(f);e=l.getItemParsed(a,o)??e;let n=u(e),r=n[S];s?.equal&&(r.equal=s.equal);function g(t){t==null?l.removeItem(a):l.setItemParsed(a,t,o)}return n.set=t=>{g(t),i(r,t)},n.update=t=>{let T=t(n());g(T),i(r,T)},n}export{A as a};
@@ -0,0 +1,2 @@
1
+ import{a as V}from"./chunk-HHDCI6IF.js";import{B as k,J as F,T as A,v as D}from"./chunk-NCXKMSRH.js";import{ha as $}from"./chunk-BDQJFOCO.js";import{$b as d,Ab as L,Bb as f,Cb as x,Db as o,Eb as i,Fb as P,Gc as R,Ic as y,Mb as N,Sa as l,Vb as p,Xc as S,Zb as G,_ as b,da as I,ea as M,gb as T,jc as w,kc as E,nc as _,oc as m,pa as h,pc as c,ra as u,wb as r,xb as s,yb as v}from"./chunk-UH2E7MMT.js";var B=(n,t)=>t.ID;function J(n,t){n&1&&(o(0,"div",4),p(1,0),i())}function U(n,t){if(n&1&&(o(0,"li"),_(1),i()),n&2){let e=t.$implicit;l(),m(e)}}function X(n,t){if(n&1&&(o(0,"strong"),_(1,"# Exception"),i(),o(2,"ol",15),L(3,U,2,1,"li",null,v),i()),n&2){let e=d(3).$implicit,a=d(2);l(3),f(a.breakIntoLines(e.Exception))}}function j(n,t){if(n&1&&(o(0,"li"),_(1),i()),n&2){let e=t.$implicit;l(),m(e)}}function z(n,t){if(n&1&&(o(0,"strong"),_(1,"# Message"),i(),o(2,"ol",15),L(3,j,2,1,"li",null,v),i()),n&2){let e=d(3).$implicit,a=d(2);l(3),f(a.breakIntoLines(e.Message))}}function W(n,t){if(n&1&&(o(0,"code"),r(1,X,5,0),r(2,z,5,0),i()),n&2){let e=d(2).$implicit;l(),s(e.Exception?1:-1),l(),s(e.Message?2:-1)}}function H(n,t){if(n&1&&(o(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),_(4),i(),o(5,"div",14),_(6),i(),o(7,"div",14),_(8),i(),o(9,"div",14),_(10),i(),o(11,"div",14),_(12),i()(),r(13,W,3,2,"code"),i()()),n&2){let e=d().$implicit;l(4),c("ID: ",e.ID),l(2),c("Type: ",e.Type),l(2),c("Tag: ",e.Tag),l(2),c("TaskID: ",e.TaskID),l(2),c("MessageID: ",e.MessageID),l(),s(e.Exception||e.Message?13:-1)}}function q(n,t){if(n&1){let e=N();o(0,"tr",10),G("click",function(){let C=I(e).$implicit,g=d(2);return M(g.toggleRow(C.ID))}),o(1,"td"),_(2),R(3,"date"),i(),o(4,"td"),_(5),i(),o(6,"td",8)(7,"button",11)(8,"sh-icon"),_(9,"caret-down"),i()()()(),r(10,H,14,6,"tr")}if(n&2){let e=t.$implicit,a=d(2);l(2),m(y(3,5,e.When,"medium")),l(3),m(a.subStringMessage(e.Message)),l(2),E("rotated-icon",e.ID===a.openRowId()),l(3),s(e.ID===a.openRowId()?10:-1)}}function K(n,t){if(n&1&&(o(0,"sh-table",6)(1,"tr",7)(2,"th"),p(3,1),i(),o(4,"th"),p(5,2),i(),P(6,"th",8),i(),L(7,q,11,8,null,null,B),o(9,"div",9),p(10,3),i()()),n&2){let e=d();w("grid-template-columns","auto 1fr auto"),E("type-b",!0),x("data",e.logs())("loading",e.logsLoading()),l(7),f(e.logs())}}var O=class n{#e=b(V);whenFilter=S();backupIdFilter=S();polling=S();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=u(()=>{let t=this.polling()??!1;this.#e.isPolling.set(t)});openRowId=h(null);whenEffect=u(()=>{let t=this.whenFilter()??null;this.#e.setWhenFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});backupIdEffect=u(()=>{let t=this.backupIdFilter()??null;this.#e.setBackupIdFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});toggleRow(t){t!=null&&this.openRowId.set(t===this.openRowId()?null:t)}breakIntoLines(t){return t?t.split(`
2
+ `):[]}subStringMessage(t){return t?t.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=T({type:n,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&E("is-disabled",a.logLevel()==="Disabled")},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let t;t=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let C;return C=$localize`No data available`,[t,e,a,C,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&r(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&s(a.logLevel()==="Disabled"?0:1)},dependencies:[A,D,F,k,$],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"],changeDetection:0})};export{O as a};
@@ -1 +1 @@
1
- import{ma as l}from"./chunk-OQ6BKP5N.js";import{Z as p,hb as f}from"./chunk-ERITO7WM.js";var m=class o{decimalPipe=p(l);transform(t,e=!1,i=!1){if(i&&t===0)return e?"0 Bytes":"0B";if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let a=this.#t(),n=a?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r=Math.floor(Math.log(t)/Math.log(a?1e3:1024));r=Math.min(r,n.length-1);let c=t/Math.pow(a?1e3:1024,r),s=this.decimalPipe.transform(c,"1.0-2");return s?`${s} ${e?n[r]:n[r].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(i=>e.includes(i)):!1}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=f({name:"bytes",type:o,pure:!0})};export{m as a};
1
+ import{ma as l}from"./chunk-BDQJFOCO.js";import{_ as p,jb as f}from"./chunk-UH2E7MMT.js";var m=class o{decimalPipe=p(l);transform(t,e=!1,i=!1){if(i&&t===0)return e?"0 Bytes":"0B";if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let a=this.#t(),n=a?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r=Math.floor(Math.log(t)/Math.log(a?1e3:1024));r=Math.min(r,n.length-1);let c=t/Math.pow(a?1e3:1024,r),s=this.decimalPipe.transform(c,"1.0-2");return s?`${s} ${e?n[r]:n[r].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(i=>e.includes(i)):!1}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=f({name:"bytes",type:o,pure:!0})};export{m as a};
@@ -1 +1 @@
1
- import{b as q}from"./chunk-GSDHTV3P.js";import{a as j}from"./chunk-WBTDGQME.js";import{a as Q}from"./chunk-SLS3DCJP.js";import{a as H}from"./chunk-I4XRVBRQ.js";import{B as V,L as z,O as J,Y as X,v as U}from"./chunk-YCLTQEU6.js";import{ha as K}from"./chunk-OQ6BKP5N.js";import{Ab as d,Bb as a,Cb as s,Db as g,Ec as F,Fc as $,Gc as G,Ic as L,Kb as N,Pc as _,Ra as o,Rb as T,Sb as P,Tb as b,Ub as R,Vb as v,Vc as w,Xb as B,Z as C,Zb as r,ca as x,da as h,eb as O,gc as M,hc as D,ic as I,jb as k,lc as l,mc as A,nc as m,oa as S,qa as E,ub as p,vb as c,yc as y}from"./chunk-ERITO7WM.js";function Y(e,i){if(e&1&&l(0),e&2){let t=r(3);m(" ",t.statusData().actionText," - ")}}function Z(e,i){e&1&&(a(0,"sh-icon"),l(1,"check"),s())}function tt(e,i){e&1&&(a(0,"sh-icon"),l(1,"copy"),s())}function et(e,i){if(e&1){let t=N();a(0,"div",9)(1,"button",10),B("click",function(u){x(t);let f=r(4);return h(f.copyToClipboard(u,f.tooltipText()))}),p(2,Z,2,0,"sh-icon")(3,tt,2,0,"sh-icon"),l(4," Copy "),s(),a(5,"p",11),l(6),s()()}if(e&2){let t=r(4);o(),d("color",t.copied()?"success":null),o(),c(t.copied()===!0?2:3),o(4),A(t.tooltipText())}}function it(e,i){if(e&1&&(a(0,"div",8),l(1),s(),k(2,et,7,3,"ng-template",null,0,L)),e&2){let t=M(3),n=r(3);d("shTooltip",t),o(),m(" ",n.statusData().fileStatusText," ")}}function nt(e,i){if(e&1&&(a(0,"div"),p(1,Y,1,1),l(2),s(),p(3,it,4,2),g(4,"sh-progress-bar",7)),e&2){let t,n=r(2);o(),c(n.backupId()===null?1:-1),o(),m(" ",n.statusData().statusText," "),o(),c((t=n.statusData())!=null&&t.BackendFileSize?3:-1),o(),d("value",n.statusData().progress*100)}}function ot(e,i){if(e&1&&(a(0,"div",5),T(1,1),g(2,"sh-icon"),F(3,"relativeTime"),F(4,"date"),P(),s()),e&2){let t,n=r(2);o(4),R((t=n.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name)($(3,3,n.nextBackup().time))(G(4,5,n.nextBackup().time,"shortTime")),v(1)}}function at(e,i){e&1&&(a(0,"div",5),b(1,2),s())}function st(e,i){e&1&&(a(0,"div",6),T(1,3),g(2,"sh-spinner"),P(),s()),e&2&&(o(2),D("--spinner-size","12px")("--spinner-thickness","2px"))}function rt(e,i){if(e&1&&(a(0,"div",4),p(1,nt,5,4)(2,ot,5,8,"div",5)(3,at,2,0,"div",5)(4,st,3,4,"div",6),s()),e&2){let t,n=r();o(),c(n.isActive()?1:!n.backupId()&&(n.nextBackup().backup||n.nextBackup().time)?2:!n.backupId()&&!((t=n.serverState())!=null&&t.ActiveTask)?3:n.backupId()?-1:4)}}var W=class e{backupId=w(null);#t=C(q);#e=C(j);statusData=this.#t.statusData;serverState=this.#t.serverState;isActive=_(()=>this.#t.runningBackupId()!==null);isTargetRunningTask=_(()=>{let i=this.backupId();return i?String(this.#t.runningBackupId())===String(i):!0});isVisible=_(()=>this.backupId()?this.isActive()?this.isTargetRunningTask():!1:!0);nextBackup=_(()=>{let i=this.#e.backups();return{backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});tooltipText=_(()=>{let i=this.statusData();return i?.CurrentFilename?`${i.CurrentFilename}`:""});copied=S(!1);copiedTimeout;copyToClipboard(i,t){i.stopPropagation(),navigator.clipboard.writeText(t),this.copied.set(!0),this.copiedTimeout=setTimeout(()=>{this.copied.set(!1)},2e3)}tooltipTrigger=S(!0);tooltipTriggerEffect=E(()=>{this.tooltipText(),this.tooltipTrigger.update(i=>!i),this.copiedTimeout&&(clearTimeout(this.copiedTimeout),this.copiedTimeout=void 0,this.copied.set(!1))});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=O({type:e,selectors:[["app-backup-progress"]],hostVars:2,hostBindings:function(t,n){t&2&&I("is-visible",n.isVisible())},inputs:{backupId:[1,"backupId"]},features:[y([H])],decls:1,vars:1,consts:()=>{let i;i=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: - ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: at ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `;let t;t=$localize`No scheduled tasks`;let n;return n=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`,[["fileStatusTooltip",""],i,t,n,[1,"progress-section"],[1,"label"],[1,"label","label-loading"],[1,"raised","primary",3,"value"],[1,"file-status-text",3,"shTooltip"],[1,"tooltip-status-content"],["shButton","","size","small",3,"click","color"],[1,"tooltip-file-status-text"]]},template:function(t,n){t&1&&p(0,rt,5,1,"div",4),t&2&&c(n.isVisible()?0:-1)},dependencies:[U,V,J,z,X,Q,K],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}[_nghost-%COMP%]:not(.is-visible){display:none}.file-status-text[_ngcontent-%COMP%]{color:var(--base-8)}.file-status-text[_ngcontent-%COMP%]:empty{display:none}.tooltip-file-status-text[_ngcontent-%COMP%]{overflow-wrap:break-word;word-break:break-word;display:inline-block;margin-bottom:.25rem}.tooltip-status-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;min-width:18.75rem;flex:1 0}.progress-section[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-top:.25rem}app-status-bar[_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%], app-status-bar [_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;max-width:initial;margin-top:0}.label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"],changeDetection:0})};export{W as a};
1
+ import{b as q}from"./chunk-I625OICV.js";import{a as j}from"./chunk-XCVBN7EK.js";import{a as Q}from"./chunk-ADB5QRUO.js";import{a as H}from"./chunk-MRSBKQQM.js";import{B as V,L as z,O as J,Y as X,v as U}from"./chunk-NCXKMSRH.js";import{ha as K}from"./chunk-BDQJFOCO.js";import{$b as r,Ac as y,Cb as d,Db as a,Eb as s,Fb as g,Gc as F,Hc as $,Ic as G,Kc as L,Mb as N,Rc as _,Sa as o,Tb as T,Ub as P,Vb as b,Wb as R,Xb as v,Xc as w,Zb as B,_ as C,da as x,ea as h,gb as O,ic as M,jc as D,kc as I,lb as k,nc as l,oc as A,pa as S,pc as m,ra as E,wb as p,xb as c}from"./chunk-UH2E7MMT.js";function Y(e,i){if(e&1&&l(0),e&2){let t=r(3);m(" ",t.statusData().actionText," - ")}}function Z(e,i){e&1&&(a(0,"sh-icon"),l(1,"check"),s())}function tt(e,i){e&1&&(a(0,"sh-icon"),l(1,"copy"),s())}function et(e,i){if(e&1){let t=N();a(0,"div",9)(1,"button",10),B("click",function(u){x(t);let f=r(4);return h(f.copyToClipboard(u,f.tooltipText()))}),p(2,Z,2,0,"sh-icon")(3,tt,2,0,"sh-icon"),l(4," Copy "),s(),a(5,"p",11),l(6),s()()}if(e&2){let t=r(4);o(),d("color",t.copied()?"success":null),o(),c(t.copied()===!0?2:3),o(4),A(t.tooltipText())}}function it(e,i){if(e&1&&(a(0,"div",8),l(1),s(),k(2,et,7,3,"ng-template",null,0,L)),e&2){let t=M(3),n=r(3);d("shTooltip",t),o(),m(" ",n.statusData().fileStatusText," ")}}function nt(e,i){if(e&1&&(a(0,"div"),p(1,Y,1,1),l(2),s(),p(3,it,4,2),g(4,"sh-progress-bar",7)),e&2){let t,n=r(2);o(),c(n.backupId()===null?1:-1),o(),m(" ",n.statusData().statusText," "),o(),c((t=n.statusData())!=null&&t.BackendFileSize?3:-1),o(),d("value",n.statusData().progress*100)}}function ot(e,i){if(e&1&&(a(0,"div",5),T(1,1),g(2,"sh-icon"),F(3,"relativeTime"),F(4,"date"),P(),s()),e&2){let t,n=r(2);o(4),R((t=n.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name)($(3,3,n.nextBackup().time))(G(4,5,n.nextBackup().time,"shortTime")),v(1)}}function at(e,i){e&1&&(a(0,"div",5),b(1,2),s())}function st(e,i){e&1&&(a(0,"div",6),T(1,3),g(2,"sh-spinner"),P(),s()),e&2&&(o(2),D("--spinner-size","12px")("--spinner-thickness","2px"))}function rt(e,i){if(e&1&&(a(0,"div",4),p(1,nt,5,4)(2,ot,5,8,"div",5)(3,at,2,0,"div",5)(4,st,3,4,"div",6),s()),e&2){let t,n=r();o(),c(n.isActive()?1:!n.backupId()&&(n.nextBackup().backup||n.nextBackup().time)?2:!n.backupId()&&!((t=n.serverState())!=null&&t.ActiveTask)?3:n.backupId()?-1:4)}}var W=class e{backupId=w(null);#t=C(q);#e=C(j);statusData=this.#t.statusData;serverState=this.#t.serverState;isActive=_(()=>this.#t.runningBackupId()!==null);isTargetRunningTask=_(()=>{let i=this.backupId();return i?String(this.#t.runningBackupId())===String(i):!0});isVisible=_(()=>this.backupId()?this.isActive()?this.isTargetRunningTask():!1:!0);nextBackup=_(()=>{let i=this.#e.backups();return{backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});tooltipText=_(()=>{let i=this.statusData();return i?.CurrentFilename?`${i.CurrentFilename}`:""});copied=S(!1);copiedTimeout;copyToClipboard(i,t){i.stopPropagation(),navigator.clipboard.writeText(t),this.copied.set(!0),this.copiedTimeout=setTimeout(()=>{this.copied.set(!1)},2e3)}tooltipTrigger=S(!0);tooltipTriggerEffect=E(()=>{this.tooltipText(),this.tooltipTrigger.update(i=>!i),this.copiedTimeout&&(clearTimeout(this.copiedTimeout),this.copiedTimeout=void 0,this.copied.set(!1))});static \u0275fac=function(t){return new(t||e)};static \u0275cmp=O({type:e,selectors:[["app-backup-progress"]],hostVars:2,hostBindings:function(t,n){t&2&&I("is-visible",n.isVisible())},inputs:{backupId:[1,"backupId"]},features:[y([H])],decls:1,vars:1,consts:()=>{let i;i=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: - ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: at ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `;let t;t=$localize`No scheduled tasks`;let n;return n=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`,[["fileStatusTooltip",""],i,t,n,[1,"progress-section"],[1,"label"],[1,"label","label-loading"],[1,"raised","primary",3,"value"],[1,"file-status-text",3,"shTooltip"],[1,"tooltip-status-content"],["shButton","","size","small",3,"click","color"],[1,"tooltip-file-status-text"]]},template:function(t,n){t&1&&p(0,rt,5,1,"div",4),t&2&&c(n.isVisible()?0:-1)},dependencies:[U,V,J,z,X,Q,K],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}[_nghost-%COMP%]:not(.is-visible){display:none}.file-status-text[_ngcontent-%COMP%]{color:var(--base-8)}.file-status-text[_ngcontent-%COMP%]:empty{display:none}.tooltip-file-status-text[_ngcontent-%COMP%]{overflow-wrap:break-word;word-break:break-word;display:inline-block;margin-bottom:.25rem}.tooltip-status-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;min-width:18.75rem;flex:1 0}.progress-section[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-top:.25rem}app-status-bar[_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%], app-status-bar [_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;max-width:initial;margin-top:0}.label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"],changeDetection:0})};export{W as a};
@@ -0,0 +1 @@
1
+ import{aa as Lt,ha as Bt,ya as yi}from"./chunk-BDQJFOCO.js";import{a as Rt}from"./chunk-FSHBOASN.js";import{$a as D,$b as h,$c as j,Ab as Ie,Ac as Z,Bb as Ae,Bc as dt,Cb as X,Cc as Ye,Db as f,Dc as It,Eb as m,Fb as le,Gb as I,Hb as F,Ib as Me,Kc as vi,Lb as _e,Mb as U,Nb as Ot,Pc as At,Qc as ae,Ra as hi,Rc as E,S as at,Sa as p,U as ne,V as Ve,W as He,Wc as ce,Xa as Et,Xc as c,Y as he,Ya as ze,Yc as Q,Zb as M,_ as C,_a as ve,_b as fe,_c as kt,a as oi,ab as pi,ac as P,ad as Ft,ba as ci,bb as fi,bc as g,ca as di,da as A,ea as k,ed as _i,fc as Tt,g as si,gb as O,gc as se,gd as Pt,ha as Ne,hb as $e,hc as ee,ia as be,ib as B,ic as Vt,ja as ge,jc as te,k as ri,kb as W,kc as R,la as me,lb as pe,lc as Nt,mc as L,nc as _,ob as xt,oc as ke,pa as v,pb as gi,pc as ie,q as ai,qc as lt,ra as V,sa as je,sb as wt,sc as Ge,ta as Se,tc as qe,uc as Ue,va as N,vb as Y,vc as ct,w as li,wb as b,wc as re,xb as S,xc as G,yb as We,za as ui,zb as mi}from"./chunk-UH2E7MMT.js";import{a as H,b as q,c as ni}from"./chunk-7CGTOI24.js";var Oi=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||i)(D(ve),D(N))};static \u0275dir=B({type:i})}return i})(),nt=(()=>{class i extends Oi{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,features:[W]})}return i})(),Ce=new he(""),tn={provide:Ce,useExisting:ne(()=>nn),multi:!0},nn=(()=>{class i extends nt{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,n){t&1&&M("change",function(r){return n.onChange(r.target.checked)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Z([tn]),W]})}return i})(),on={provide:Ce,useExisting:ne(()=>Ti),multi:!0};function sn(){let i=Rt()?Rt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var rn=new he(""),Ti=(()=>{class i extends Oi{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!sn())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||i)(D(ve),D(N),D(rn,8))};static \u0275dir=B({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,n){t&1&&M("input",function(r){return n._handleInput(r.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(r){return n._compositionEnd(r.target.value)})},standalone:!1,features:[Z([on]),W]})}return i})();function $t(i){return i==null||Wt(i)===0}function Wt(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Ee=new he(""),xe=new he(""),an=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ci=class{static min(o){return ln(o)}static max(o){return cn(o)}static required(o){return dn(o)}static requiredTrue(o){return un(o)}static email(o){return hn(o)}static minLength(o){return pn(o)}static maxLength(o){return fn(o)}static pattern(o){return gn(o)}static nullValidator(o){return Vi()}static compose(o){return Pi(o)}static composeAsync(o){return Ri(o)}};function ln(i){return o=>{if(o.value==null||i==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e<i?{min:{min:i,actual:o.value}}:null}}function cn(i){return o=>{if(o.value==null||i==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e>i?{max:{max:i,actual:o.value}}:null}}function dn(i){return $t(i.value)?{required:!0}:null}function un(i){return i.value===!0?null:{required:!0}}function hn(i){return $t(i.value)||an.test(i.value)?null:{email:!0}}function pn(i){return o=>{let e=o.value?.length??Wt(o.value);return e===null||e===0?null:e<i?{minlength:{requiredLength:i,actualLength:e}}:null}}function fn(i){return o=>{let e=o.value?.length??Wt(o.value);return e!==null&&e>i?{maxlength:{requiredLength:i,actualLength:e}}:null}}function gn(i){if(!i)return Vi;let o,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),o=new RegExp(e)):(e=i.toString(),o=i),t=>{if($t(t.value))return null;let n=t.value;return o.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function Vi(i){return null}function Ni(i){return i!=null}function Ii(i){return gi(i)?ri(i):i}function Ai(i){let o={};return i.forEach(e=>{o=e!=null?H(H({},o),e):o}),Object.keys(o).length===0?null:o}function ki(i,o){return o.map(e=>e(i))}function mn(i){return!i.validate}function Fi(i){return i.map(o=>mn(o)?o:e=>o.validate(e))}function Pi(i){if(!i)return null;let o=i.filter(Ni);return o.length==0?null:function(e){return Ai(ki(e,o))}}function Gt(i){return i!=null?Pi(Fi(i)):null}function Ri(i){if(!i)return null;let o=i.filter(Ni);return o.length==0?null:function(e){let t=ki(e,o).map(Ii);return li(t).pipe(ai(Ai))}}function qt(i){return i!=null?Ri(Fi(i)):null}function Di(i,o){return i===null?[o]:Array.isArray(i)?[...i,o]:[i,o]}function Li(i){return i._rawValidators}function Bi(i){return i._rawAsyncValidators}function Ht(i){return i?Array.isArray(i)?i:[i]:[]}function ht(i,o){return Array.isArray(i)?i.includes(o):i===o}function bi(i,o){let e=Ht(o);return Ht(i).forEach(n=>{ht(e,n)||e.push(n)}),e}function Si(i,o){return Ht(o).filter(e=>!ht(i,e))}var pt=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=Gt(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},J=class extends pt{name;get formDirective(){return null}get path(){return null}},de=class extends pt{_parent=null;name=null;valueAccessor=null},ft=class{_cd;constructor(o){this._cd=o}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Nr=(()=>{class i extends ft{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(D(de,2))};static \u0275dir=B({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&R("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[W]})}return i})(),Ir=(()=>{class i extends ft{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(D(J,10))};static \u0275dir=B({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){t&2&&R("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},standalone:!1,features:[W]})}return i})();var Xe="VALID",ut="INVALID",Fe="PENDING",Qe="DISABLED",ye=class{},gt=class extends ye{value;source;constructor(o,e){super(),this.value=o,this.source=e}},Ze=class extends ye{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},Je=class extends ye{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},Pe=class extends ye{status;source;constructor(o,e){super(),this.status=o,this.source=e}},mt=class extends ye{source;constructor(o){super(),this.source=o}},tt=class extends ye{source;constructor(o){super(),this.source=o}};function Ut(i){return(Ct(i)?i.validators:i)||null}function vn(i){return Array.isArray(i)?Gt(i):i||null}function Yt(i,o){return(Ct(o)?o.asyncValidators:i)||null}function _n(i){return Array.isArray(i)?qt(i):i||null}function Ct(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Hi(i,o,e){let t=i.controls;if(!(o?Object.keys(t):t).length)throw new at(1e3,"");if(!t[e])throw new at(1001,"")}function ji(i,o,e){i._forEachChild((t,n)=>{if(e[n]===void 0)throw new at(1002,"")})}var Re=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return ae(this.statusReactive)}set status(o){ae(()=>this.statusReactive.set(o))}_status=E(()=>this.statusReactive());statusReactive=v(void 0);get valid(){return this.status===Xe}get invalid(){return this.status===ut}get pending(){return this.status==Fe}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}errors;get pristine(){return ae(this.pristineReactive)}set pristine(o){ae(()=>this.pristineReactive.set(o))}_pristine=E(()=>this.pristineReactive());pristineReactive=v(!0);get dirty(){return!this.pristine}get touched(){return ae(this.touchedReactive)}set touched(o){ae(()=>this.touchedReactive.set(o))}_touched=E(()=>this.touchedReactive());touchedReactive=v(!1);get untouched(){return!this.touched}_events=new si;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(bi(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(bi(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Si(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Si(o,this._rawAsyncValidators))}hasValidator(o){return ht(this._rawValidators,o)}hasAsyncValidator(o){return ht(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(q(H({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Je(!0,t))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=o.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:t})}),o.onlySelf||this._parent?._updateTouched(o,t),e&&o.emitEvent!==!1&&this._events.next(new Je(!1,t))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(q(H({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Ze(!1,t))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=o.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,t),e&&o.emitEvent!==!1&&this._events.next(new Ze(!0,t))}markAsPending(o={}){this.status=Fe;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Pe(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(q(H({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(n=>{n.disable(q(H({},o),{onlySelf:!0}))}),this._updateValue();let t=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new gt(this.value,t)),this._events.next(new Pe(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(q(H({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Xe,this._forEachChild(t=>{t.enable(q(H({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(q(H({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xe||this.status===Fe)&&this._runAsyncValidator(t,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new gt(this.value,e)),this._events.next(new Pe(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(q(H({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:Xe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=Fe,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let t=Ii(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(o,e){let t=e?this.get(e):this;return t?.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,t){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||t)&&this._events.next(new Pe(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,t)}_initObservables(){this.valueChanges=new me,this.statusChanges=new me}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?ut:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fe)?Fe:this._anyControlsHaveStatus(ut)?ut:Xe}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,o.onlySelf||this._parent?._updatePristine(o,e),n&&this._events.next(new Ze(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new Je(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){Ct(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=vn(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=_n(this._rawAsyncValidators)}},Le=class extends Re{constructor(o,e,t){super(Ut(e),Yt(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){ji(this,!0,o),Object.keys(o).forEach(t=>{Hi(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(Object.keys(o).forEach(t=>{let n=this.controls[t];n&&n.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,n)=>{t.reset(o?o[n]:null,q(H({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new tt(this))}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){let o={};return this._reduceChildren(o,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((n,s)=>{t=e(t,n,s)}),t}_allControlsDisabled(){for(let o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}};var jt=class extends Le{};var we=new he("",{factory:()=>ot}),ot="always";function Dt(i,o){return[...o.path,i]}function it(i,o,e=ot){Xt(i,o),o.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(i.disabled),Cn(i,o),bn(i,o),Dn(i,o),yn(i,o)}function vt(i,o,e=!0){let t=()=>{};o?.valueAccessor?.registerOnChange(t),o?.valueAccessor?.registerOnTouched(t),yt(i,o),i&&(o._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function _t(i,o){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function yn(i,o){if(o.valueAccessor.setDisabledState){let e=t=>{o.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),o._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Xt(i,o){let e=Li(i);o.validator!==null?i.setValidators(Di(e,o.validator)):typeof e=="function"&&i.setValidators([e]);let t=Bi(i);o.asyncValidator!==null?i.setAsyncValidators(Di(t,o.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();_t(o._rawValidators,n),_t(o._rawAsyncValidators,n)}function yt(i,o){let e=!1;if(i!==null){if(o.validator!==null){let n=Li(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(r=>r!==o.validator);s.length!==n.length&&(e=!0,i.setValidators(s))}}if(o.asyncValidator!==null){let n=Bi(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(r=>r!==o.asyncValidator);s.length!==n.length&&(e=!0,i.setAsyncValidators(s))}}}let t=()=>{};return _t(o._rawValidators,t),_t(o._rawAsyncValidators,t),e}function Cn(i,o){o.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&zi(i,o)})}function Dn(i,o){o.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&zi(i,o),i.updateOn!=="submit"&&i.markAsTouched()})}function zi(i,o){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function bn(i,o){let e=(t,n)=>{o.valueAccessor.writeValue(t),n&&o.viewToModelUpdate(t)};i.registerOnChange(e),o._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function $i(i,o){i==null,Xt(i,o)}function Sn(i,o){return yt(i,o)}function Qt(i,o){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Mn(i){return Object.getPrototypeOf(i.constructor)===nt}function Wi(i,o){i._syncPendingControls(),o.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Kt(i,o){if(!o)return null;Array.isArray(o);let e,t,n;return o.forEach(s=>{s.constructor===Ti?e=s:Mn(s)?t=s:n=s}),n||t||e||null}function En(i,o){let e=i.indexOf(o);e>-1&&i.splice(e,1)}var xn={provide:J,useExisting:ne(()=>wn)},Ke=Promise.resolve(),wn=(()=>{class i extends J{callSetDisabledState;get submitted(){return ae(this.submittedReactive)}_submitted=E(()=>this.submittedReactive());submittedReactive=v(!1);_directives=new Set;form;ngSubmit=new me;options;constructor(e,t,n){super(),this.callSetDisabledState=n,this.form=new Le({},Gt(e),qt(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ke.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),it(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ke.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ke.then(()=>{let t=this._findContainer(e.path),n=new Le({});$i(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ke.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ke.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Wi(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new mt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||i)(D(Ee,10),D(xe,10),D(we,8))};static \u0275dir=B({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&M("submit",function(r){return n.onSubmit(r)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Z([xn]),W]})}return i})();function Mi(i,o){let e=i.indexOf(o);e>-1&&i.splice(e,1)}function Ei(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var et=class extends Re{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,t){super(Ut(e),Yt(t,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ct(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ei(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new tt(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Mi(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Mi(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(o){Ei(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var On=i=>i instanceof et,Tn=(()=>{class i extends J{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Dt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,standalone:!1,features:[W]})}return i})();var Vn={provide:de,useExisting:ne(()=>bt)},xi=Promise.resolve(),bt=(()=>{class i extends de{_changeDetectorRef;callSetDisabledState;control=new et;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new me;constructor(e,t,n,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Kt(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Qt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){it(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){xi.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&_i(t);xi.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Dt(e,this._parent):[e]}static \u0275fac=function(t){return new(t||i)(D(J,9),D(Ee,10),D(xe,10),D(Ce,10),D(Ft,8),D(we,8))};static \u0275dir=B({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Z([Vn]),W,je]})}return i})();var kr=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=B({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),Nn={provide:Ce,useExisting:ne(()=>In),multi:!0},In=(()=>{class i extends nt{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&M("input",function(r){return n.onChange(r.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Z([Nn]),W]})}return i})(),An={provide:Ce,useExisting:ne(()=>Fn),multi:!0};var kn=(()=>{class i{_accessors=[];add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e){this._accessors.splice(t,1);return}}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return e[0].control?e[0]._parent===t._control._parent&&e[1].name===t.name:!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Fn=(()=>{class i extends nt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=C(we,{optional:!0})??ot;constructor(e,t,n,s){super(e,t),this._registry=n,this._injector=s}ngOnInit(){this._control=this._injector.get(de),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(t){return new(t||i)(D(ve),D(N),D(kn),D(Ne))};static \u0275dir=B({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,n){t&1&&M("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Z([An]),W]})}return i})(),Pn={provide:Ce,useExisting:ne(()=>Rn),multi:!0},Rn=(()=>{class i extends nt{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,n){t&1&&M("change",function(r){return n.onChange(r.target.value)})("input",function(r){return n.onChange(r.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Z([Pn]),W]})}return i})(),zt=class extends Re{constructor(o,e,t){super(Ut(e),Yt(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){Array.isArray(o)?o.forEach(t=>{this.controls.push(t),this._registerControl(t)}):(this.controls.push(o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let n=this._adjustIndex(o);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){ji(this,!1,o),o.forEach((t,n)=>{Hi(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(o.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,n)=>{t.reset(o[n],q(H({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new tt(this))}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(let o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}};var Gi=(()=>{class i extends J{callSetDisabledState;get submitted(){return ae(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=E(()=>this._submittedReactive());_submittedReactive=v(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,t,n){super(),this.callSetDisabledState=n,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(yt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let t=this.form.get(e.path);return it(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){vt(e.control||null,e,!1),En(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,t){this.form.get(e.path).setValue(t)}onReset(){this.resetForm()}resetForm(e=void 0,t={}){this.form.reset(e,t),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,Wi(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new mt(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(vt(t||null,e),On(n)&&(it(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);$i(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let t=this.form?.get(e.path);t&&Sn(t,e)&&t.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){Xt(this.form,this),this._oldForm&&yt(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||i)(D(Ee,10),D(xe,10),D(we,8))};static \u0275dir=B({type:i,features:[W,je]})}return i})();var Zt=new he(""),Ln={provide:de,useExisting:ne(()=>Bn)},Bn=(()=>{class i extends de{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,n,s,r){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Kt(this,n)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&vt(t,this,!1),it(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Qt(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(t){return new(t||i)(D(Ee,10),D(xe,10),D(Ce,10),D(Zt,8),D(we,8))};static \u0275dir=B({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Z([Ln]),W,je]})}return i})(),Hn={provide:J,useExisting:ne(()=>qi)},qi=(()=>{class i extends Tn{name=null;constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Yi(this._parent)}static \u0275fac=function(t){return new(t||i)(D(J,13),D(Ee,10),D(xe,10))};static \u0275dir=B({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[Z([Hn]),W]})}return i})(),jn={provide:J,useExisting:ne(()=>Ui)},Ui=(()=>{class i extends J{_parent;name=null;constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){Yi(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Dt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(t){return new(t||i)(D(J,13),D(Ee,10),D(xe,10))};static \u0275dir=B({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[Z([jn]),W]})}return i})();function Yi(i){return!(i instanceof qi)&&!(i instanceof Gi)&&!(i instanceof Ui)}var zn={provide:de,useExisting:ne(()=>$n)},$n=(()=>{class i extends de{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,n,s,r){super(),this._ngModelWarningConfig=r,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Kt(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Qt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Dt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(t){return new(t||i)(D(J,13),D(Ee,10),D(xe,10),D(Ce,10),D(Zt,8))};static \u0275dir=B({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Z([zn]),W,je]})}return i})();var Wn={provide:J,useExisting:ne(()=>Gn)},Gn=(()=>{class i extends Gi{form=null;ngSubmit=new me;get control(){return this.form}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&M("submit",function(r){return n.onSubmit(r)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Z([Wn]),W]})}return i})();var Xi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=$e({type:i});static \u0275inj=He({})}return i})();function wi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Fr=(()=>{class i{useNonNullable=!1;get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,t=null){let n=this._reduceControls(e),s={};return wi(t)?s=t:t!==null&&(s.validators=t.validator,s.asyncValidators=t.asyncValidator),new Le(n,s)}record(e,t=null){let n=this._reduceControls(e);return new jt(n,t)}control(e,t,n){let s={};return this.useNonNullable?(wi(t)?s=t:(s.validators=t,s.asyncValidators=n),new et(e,q(H({},s),{nonNullable:!0}))):new et(e,t,n)}array(e,t,n){let s=e.map(r=>this._createControl(r));return new zt(s,t,n)}_reduceControls(e){let t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){if(e instanceof et)return e;if(e instanceof Re)return e;if(Array.isArray(e)){let t=e[0],n=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(t,n,s)}else return this.control(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Pr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:we,useValue:e.callSetDisabledState??ot}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=$e({type:i});static \u0275inj=He({imports:[Xi]})}return i})(),Rr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Zt,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:we,useValue:e.callSetDisabledState??ot}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=$e({type:i});static \u0275inj=He({imports:[Xi]})}return i})();var oe=["*"],qn=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["button"]],[["","actions",""]],[["","content",""]],[["p"]]],Un=["[icon]","sh-icon","[title]","*","button","[actions]","[content]","p"];function Yn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"info"),m())}function Xn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"info"),m())}function Qn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"warning"),m())}function Kn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"warning-octagon"),m())}function Zn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"check-circle"),m())}function Jn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"question"),m())}function eo(i,o){if(i&1){let e=U();f(0,"sh-icon",8),M("click",function(){A(e);let n=h();return k(n.removeAlert())}),_(1,"plus"),m()}}var to=["dialogRef"];function io(i,o){if(i&1){let e=U();I(0,"div",5),fe("click",function(){A(e);let n=h(2);return k(n.isOpen.set(!1))}),F()}}function no(i,o){if(i&1&&(I(0,"dialog",2,0)(2,"div",3),g(3),F(),b(4,io,1,0,"div",4),F()),i&2){let e=h(),t=G(0);L(t.class),te("width",t.width??"")("max-width",t.maxWidth??"")("max-height",t.maxHeight??"")("height",t.height??""),p(4),S(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var oo=["shButton",""],Jt=["internalInput"];function so(i,o){if(i&1){let e=U();f(0,"input",6,0),M("change",function(n){A(e);let s=h();return k(s.onInternalInputChange(n))}),m()}if(i&2){let e=h();X("checked",e.checked()),Y("disabled",e.disabled()?"":null)}}var ro=["daysRef"];function ao(i,o){if(i&1&&_(0),i&2){let e=h();ie(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function lo(i,o){if(i&1&&(f(0,"div"),_(1),m()),i&2){let e=o.$implicit;p(),ke(e)}}function co(i,o){if(i&1){let e=U();f(0,"div",2,1),M("click",function(){let n=A(e).$implicit,s=Vt(1),r=h(2);return k(r.setDate(n,s))}),_(2),m()}if(i&2){let e=o.$implicit,t=h().$implicit,n=h();L(n.isDateSelected(e)),R("out-of-scope",!n.isCurrentMonth(e,t)),p(2),ie(" ",e.getDate()," ")}}function uo(i,o){if(i&1&&(f(0,"article",7),le(1,"div",9),m()),i&2){let e=h(2);p(),Nt(e.selectedDateStylePosition())}}function ho(i,o){if(i&1&&(f(0,"div",5)(1,"nav",6),Ie(2,lo,2,1,"div",null,We),m(),f(4,"div",7,0),Ie(6,co,3,5,"div",8,We),b(8,uo,2,2,"article",7),m()()),i&2){let e=o.$implicit,t=h();p(2),Ae(t.weekdays()),p(4),Ae(t.getMonthDates(e)),p(2),S(t.asRange()?-1:8)}}var po=["triggerRef"],fo=["popoverRef"],go=["popoverContentRef"],mo=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],vo=["[trigger]","button","[shButton]","*"];function _o(i,o){if(i&1){let e=U();I(0,"div",6,1)(2,"div",7),fe("click",function(n){A(e);let s=h();return k(s.eventClose(n))}),F(),I(3,"div",8,2),g(5,3),F()()}if(i&2){let e=h();Y("id",e.id()+"hello"),p(3),Nt(e.menuStyle()),te("position-anchor",e.id())}}var yo=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],Co=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],Qi=()=>({closeOnButton:!1,closeOnEsc:!0}),Do=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],bo=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];function So(i,o){if(i&1&&(f(0,"div",3),_(1),m()),i&2){let e=h();p(),ie(" ",e._maskedDate()," ")}}function Mo(i,o){if(i&1){let e=U();f(0,"sh-datepicker",7),M("dateChange",function(n){A(e);let s=h();return k(s.onDateChange(n))}),m()}if(i&2){let e=h();L(e.currentClass()),X("date",e.internalDate())}}function Eo(i,o){}var xo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],wo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],Oo=["input"],To=[[["label"]]],Vo=["label"];function No(i,o){if(i&1&&(f(0,"div",3),_(1),m()),i&2){let e=h();p(),ke(e.files()[0].name)}}function Io(i,o){if(i&1&&(f(0,"div",3),_(1),m()),i&2){let e=h();p(),ie("",e.files().length," files selected")}}function Ao(i,o){if(i&1&&(f(0,"div",4),_(1),m()),i&2){let e=h();p(),ke(e.filesOver()?e.overlayText():e.placeholder())}}var ko=["inputRef"],Fo=["optionsRef"],Po=["*",[["","menu",""]]],Ro=["*","[menu]"];function Lo(i,o){i&1&&(f(0,"sh-icon",5),_(1,"caret-down"),m())}function Bo(i,o){if(i&1){let e=U();I(0,"input",3,0),fe("change",function(n){A(e);let s=h();return k(s.onInternalInputChange(n))}),F()}if(i&2){let e=h();Ot("checked",e.checked()),Y("disabled",e.disabled()?"":null)}}var Ho=[[["label"]],[["input","type","range"]]],jo=["label","input[type=range]"],zo=["optionsWrap"],$o=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],Wo=["label","[prefix]","[boxPrefix]","input","textarea"],Go=()=>({closeOnButton:!1,closeOnEsc:!1}),Ki=(i,o)=>({$implicit:i,last:o}),St=i=>({$implicit:i});function qo(i,o){if(i&1&&_(0),i&2){let e=h();ie(" ",e.inputValue()," ")}}function Uo(i,o){i&1&&_e(0)}function Yo(i,o){if(i&1&&pe(0,Uo,1,0,"ng-container",13),i&2){let e=h(3),t=e.$implicit,n=e.$index,s=e.$count;h(2);let r=G(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",It(2,Ki,t,n===s-1))}}function Xo(i,o){if(i&1&&_(0),i&2){let e=h(3).$implicit,t=h(2);ie(" ",t.getLabel(e)," ")}}function Qo(i,o){if(i&1){let e=U();f(0,"sh-chip",12),M("click",function(n){A(e);let s=h(2).$index,r=h(2);return k(r.removeSelectedOptionByIndex(n,s))}),b(1,Yo,1,5,"ng-container")(2,Xo,1,1),f(3,"sh-icon"),_(4,"x-bold"),m()()}if(i&2){let e=h(4),t=G(3);L(e.selectClasses()),p(),S(t?1:2)}}function Ko(i,o){i&1&&_e(0)}function Zo(i,o){if(i&1&&pe(0,Ko,1,0,"ng-container",13),i&2){let e=h(4),t=e.$implicit,n=e.$index,s=e.$count;h(2);let r=G(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",It(2,Ki,t,n===s-1))}}function Jo(i,o){if(i&1&&_(0),i&2){let e=h(4),t=e.$implicit,n=e.$index,s=e.$count,r=h(2);ie(" ",n===s-1?r.getLabel(t):r.getLabel(t)+","," ")}}function es(i,o){if(i&1&&b(0,Zo,1,5,"ng-container")(1,Jo,1,1),i&2){h(5);let e=G(3);S(e?0:1)}}function ts(i,o){if(i&1&&b(0,es,2,1),i&2){h(4);let e=G(6);S(e?-1:0)}}function is(i,o){if(i&1&&b(0,Qo,5,3,"sh-chip",11)(1,ts,1,1),i&2){h(3);let e=G(5);S(e?0:1)}}function ns(i,o){if(i&1&&b(0,is,2,1),i&2){let e=o.$implicit;S(e?0:-1)}}function os(i,o){if(i&1&&Ie(0,ns,1,1,null,null,We),i&2){h();let e=G(2);Ae(e)}}function ss(i,o){i&1&&_e(0)}function rs(i,o){if(i&1&&pe(0,ss,1,0,"ng-container",14),i&2){h(2);let e=G(0);X("ngTemplateOutlet",e)}}function as(i,o){if(i&1&&_(0),i&2){let e=h(2);ie(" ",e.placeholderText()??""," ")}}function ls(i,o){if(i&1&&b(0,rs,1,1,"ng-container")(1,as,1,1),i&2){h();let e=G(0);S(e?0:1)}}function cs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"caret-down"),m())}function ds(i,o){i&1&&le(0,"sh-spinner",7)}function us(i,o){i&1&&(f(0,"sh-icon",6),_(1,"list-magnifying-glass"),m())}function hs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"magnifying-glass"),m())}function ps(i,o){if(i&1){let e=U();f(0,"sh-icon",15),M("click",function(n){A(e);let s=h();return k(s.clear(n))}),_(1,"x-bold"),m()}}function fs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"caret-down"),m())}function gs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"caret-up"),m())}function ms(i,o){if(i&1&&(f(0,"p",9),_(1),m()),i&2){let e=h(3);p(),ke(e.freeTextTitle())}}function vs(i,o){i&1&&_e(0)}function _s(i,o){if(i&1&&pe(0,vs,1,0,"ng-container",13),i&2){h(2);let e=G(0);h();let t=G(1);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Ye(2,St,e))}}function ys(i,o){i&1&&_e(0)}function Cs(i,o){if(i&1&&pe(0,ys,1,0,"ng-container",13),i&2){h(2);let e=G(0);h();let t=G(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Ye(2,St,e))}}function Ds(i,o){if(i&1&&_(0),i&2){h(2);let e=G(1);ie(" ",e," ")}}function bs(i,o){i&1&&le(0,"sh-divider")}function Ss(i,o){if(i&1){let e=U();b(0,ms,2,1,"p",9),f(1,"li",16),M("click",function(){A(e);let n=h(2);return k(n.toggleOptionByIndex(-1))}),b(2,_s,1,4,"ng-container")(3,Cs,1,4,"ng-container")(4,Ds,1,1),m(),b(5,bs,1,0,"sh-divider")}if(i&2){h();let e=G(0),t=h(),n=G(1),s=G(4);S(t.freeTextTitle()?0:-1),p(),R("selected",t.isSelected(-1))("focused",t.focusedOptionIndex()===-1),X("id",t.getLabelAsSlug(e)),Y("aria-selected",t.isSelected(-1)),p(),S(n?2:s?3:4),p(3),S(t.freeTextTitle()&&t.filteredOptions().length>0?5:-1)}}function Ms(i,o){if(i&1&&(ct(0)(1),b(2,Ss,6,9)),i&2){let e=h(),t=re(e.computedFreeTextOption());p();let n=re(e.getValue(t));p(),S(n.length>0?2:-1)}}function Es(i,o){if(i&1&&(f(0,"p",9),_(1),m()),i&2){let e=h();p(),ke(e.optionTitle())}}function xs(i,o){if(i&1&&le(0,"sh-checkbox",18),i&2){let e=h().$index,t=h();L(t.selectClasses()),X("checked",t.isSelected(e))}}function ws(i,o){i&1&&_e(0)}function Os(i,o){if(i&1&&pe(0,ws,1,0,"ng-container",13),i&2){let e=h().$implicit;h();let t=G(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Ye(2,St,e))}}function Ts(i,o){if(i&1&&_(0),i&2){let e=h().$implicit,t=h();ie(" ",t.getLabel(e)," ")}}function Vs(i,o){if(i&1){let e=U();f(0,"li",16),M("click",function(){let n=A(e).$index,s=h();return k(s.toggleOptionByIndex(n))}),b(1,xs,1,3,"sh-checkbox",17),b(2,Os,1,4,"ng-container")(3,Ts,1,1),m()}if(i&2){let e=o.$implicit,t=o.$index,n=h(),s=G(4);R("selected",n.isSelected(t))("focused",t===n.focusedOptionIndex()),X("id",n.getLabelAsSlug(e)),Y("aria-selected",n.isSelected(t)),p(),S(n.selectMultiple()?1:-1),p(),S(s?2:3)}}var Ns=["dragImageElement"],Is=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],As=["[sidenav]","[sidenav-closed-topbar]","*"];function ks(i,o){i&1&&Me(0,"div",1,0)}function Fs(i,o){if(i&1){let e=U();I(0,"div",7),fe("drop",function(n){A(e);let s=h();return k(s.drop(n))})("dragenter",function(){A(e);let n=h();return k(n.dragEnter())})("dragleave",function(){A(e);let n=h();return k(n.dragLeave())}),F()}}function Ps(i,o){if(i&1){let e=U();I(0,"div",8),fe("dragstart",function(n){A(e);let s=h();return k(s.dragStart(n))})("dragend",function(n){A(e);let s=h();return k(s.dragEnd(n))})("drag",function(n){A(e);let s=h();return k(s.drag(n))})("touchstart",function(n){A(e);let s=h();return k(s.touchStart(n))})("touchmove",function(n){A(e);let s=h();return k(s.touchMove(n))})("touchend",function(n){A(e);let s=h();return k(s.touchEnd(n))})("touchcancel",function(n){A(e);let s=h();return k(s.touchCancel(n))}),F()}}var Rs=["thead"],Ls=["tbody"],Bs=[[["","actionbar",""]],[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],Hs=["[actionbar]","th","[thead]","*","[table-no-rows]"];function js(i,o){i&1&&le(0,"sh-progress-bar",3)}function zs(i,o){i&1&&(f(0,"div",4),g(1,4),m())}var $s=[[["","title",""]],"*"],Ws=["[title]","*"];function Gs(i,o){i&1&&_(0,"Title")}function qs(i,o){i&1&&(f(0,"sh-icon",1),_(1,"caret-down"),m())}function Us(i,o){if(i&1){let e=U();I(0,"input",4,0),fe("change",function(n){A(e);let s=h();return k(s.onInternalInputChange(n))}),F()}if(i&2){let e=h();Ot("checked",e.checked()),Y("disabled",e.disabled()?"":null)}}function Ys(i,o){i&1&&_e(0)}function Xs(i,o){if(i&1&&pe(0,Ys,1,0,"ng-container",1),i&2){let e=h();X("ngTemplateOutlet",e.content())("ngTemplateOutletContext",Ye(2,St,e.tooltipContext))}}function Qs(i,o){if(i&1&&_(0),i&2){let e=h();ie(" ",e.content()," ")}}var Zi=new he("Ship UI Config");function K(i,o){let e=C(Zi,{optional:!0});return E(()=>{let t=e?.[i],n=o.variant?.();n||(n=t?.variant),!n&&i==="alert"&&e?.alertVariant&&(n=e.alertVariant),!n&&i==="card"&&e?.cardType&&(n=e.cardType),!n&&i==="table"&&e?.tableType&&(n=e.tableType);let s=o.color?.()||t?.color,r=o.size?.()||t?.size,a=(o.sharp?.()??t?.sharp)||!1,l=(o.dynamic?.()??t?.dynamic)||!1,d=(o.readonly?.()??t?.readonly)||!1,u=[];return s&&u.push(s),n&&(["a","b","c","d"].includes(n)?u.push(`type-${n}`):u.push(n)),r&&u.push(r),a&&u.push("sharp"),l&&u.push("dynamic"),d&&u.push("readonly"),u.join(" ")})}var Ks=["bold","thin","light","fill","duotone"],De=(()=>{class i{constructor(){this.#t=C(N),this.#n=C(ve),this.color=c(null),this.variant=c(null),this.size=c(null),this.hostClasses=K("icon",{color:this.color,variant:this.variant,size:this.size})}#t;#n;ngAfterContentInit(){let e=this.#t.nativeElement.textContent?.trim();if(!e)return;let t=e.split("-").at(-1);t&&Ks.includes(t)&&this.#n.addClass(this.#t.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-icon"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),la=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=K("alert",{color:this.color,variant:this.variant}),this._el=C(N),this.alertService=c(null),this.id=c(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-alert"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Un,decls:22,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"actions"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,n){if(t&1&&(P(qn),f(0,"div",1)(1,"div",2,0),g(3),g(4,1),m(),f(5,"div",2),b(6,Yn,2,0,"sh-icon",3)(7,Xn,2,0,"sh-icon",3)(8,Qn,2,0,"sh-icon",3)(9,Kn,2,0,"sh-icon",3)(10,Zn,2,0,"sh-icon",3)(11,Jn,2,0,"sh-icon",3),m(),f(12,"div",4),g(13,2),g(14,3),m(),b(15,eo,2,0,"sh-icon",5),f(16,"div",6),g(17,4),g(18,5),m(),f(19,"div",7),g(20,6),g(21,7),m()()),t&2){let s=Vt(2);p(),te("display",s.children.length?"block":"none");let r=n.hostClasses();p(5),S(r.includes("primary")?6:r.includes("accent")?7:r.includes("warn")?8:r.includes("error")?9:r.includes("success")?10:11),p(9),S(n.id()?15:-1)}},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})();function st(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ca=(()=>{class i{constructor(){this.alertHistory=v([]),this.alertHistoryIsOpen=v(!1),this.alertHistoryIsHidden=v(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=st();this.alertHistory.update(n=>[q(H({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...n]),setTimeout(()=>{this.alertHistory.update(n=>n.map(s=>q(H({},s),{animateIn:s.id===t?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(n=>q(H({},n),{animateOut:n.id===e?!1:n.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(n=>n.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(n=>q(H({},n),{isOpen:n.id===e?!1:n.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Zs={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Js=(()=>{class i{constructor(){this.#t=C(be),this.#n=C(Zi,{optional:!0}),this.dialogRef=Q("dialogRef"),this.isOpen=j(!1),this.options=c(),this.closed=ce(),this.defaultOptionMerge=E(()=>H(q(H({},Zs),{class:this.#n?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=V(()=>{let e=this.dialogRef()?.nativeElement;e&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e.showModal(),e.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),this.#t.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(e.close(),queueMicrotask(()=>this.closed.emit())))})}#t;#n;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-dialog"]],viewQuery:function(t,n){t&1&&se(n.dialogRef,to,5),t&2&&ee()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:oe,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,n){t&1&&(P(),ct(0),b(1,no,5,11,"dialog",1)),t&2&&(re(n.defaultOptionMerge()),p(),S(n.isOpen()?1:-1))},encapsulation:2,changeDetection:0})}}return i})(),da=(()=>{class i{constructor(){this.#t=C(be),this.#n=this.#t.querySelector("body"),this.#e=C(wt),this.compRef=null,this.insertedCompRef=null,this.insertedTemplateRef=null,this.closedFieldSub=null,this.compClosedSub=null}#t;#n;#e;open(e,t){let n=this.#e.injector,s=this.#i(),r=!1,a,w=t||{},{data:l,closed:d}=w,u=ni(w,["data","closed"]);this.compRef&&this.#o(!0);let y=this;function T(x=void 0){y.#o(),!r&&(r=!0,a&&a instanceof At&&a.emit(x),d?.(x))}let $=[];if(e instanceof ze)this.insertedTemplateRef=e.createEmbeddedView({$implicit:l,close:x=>T(x)}),$=[this.insertedTemplateRef.rootNodes];else{this.insertedCompRef=Pt(e,{environmentInjector:n}),$=[[this.insertedCompRef.location.nativeElement]];let x=this.insertedCompRef.instance,Oe=x.data;if(a=x.closed,l){if(xt(Oe))this.insertedCompRef.setInput("data",l);else if(!xt(Oe))throw new Error("data is not an input signal on the passed component")}a&&a instanceof At&&(this.closedFieldSub=a.subscribe(Te=>{this.#o(),!r&&(r=!0,d?.(Te),(this.compRef?.instance.closed).emit(Te))}))}return this.compRef=Pt(Js,{hostElement:s,environmentInjector:n,projectableNodes:$}),this.insertedCompRef&&(this.#e.attachView(this.insertedCompRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges()),this.insertedTemplateRef&&(this.#e.attachView(this.insertedTemplateRef),this.insertedTemplateRef.detectChanges()),this.#e.attachView(this.compRef.hostView),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",u),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>T()),{component:this.insertedCompRef?.instance,close:T,closed:this.compRef.instance.closed}}#i(){let e=this.#t.createElement("sh-dialog-ref");return e.id="sh-dialog-ref",this.#t.getElementById("sh-dialog-ref")||this.#n?.append(e),this.#t.getElementById("sh-dialog-ref")}#o(e=!1){let t=this;e||queueMicrotask(()=>n());function n(){t.insertedCompRef&&(t.#e.detachView(t.insertedCompRef.hostView),t.closedFieldSub?.unsubscribe(),t.insertedCompRef.destroy(),t.insertedCompRef=null),t.insertedTemplateRef&&(t.#e.detachView(t.insertedTemplateRef),t.insertedTemplateRef.destroy(),t.insertedTemplateRef=null),t.compRef&&(t.#e.detachView(t.compRef.hostView),t.compClosedSub?.unsubscribe(),t.compRef.destroy())}}ngOnDestroy(){this.#o(!0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Mt(i=null){let o=i??C(N).nativeElement;if(!o)return v("");let e=v(o.className);if(typeof MutationObserver>"u")return e.asReadonly();let t=C(ge),n=new MutationObserver(s=>{for(let r of s)if(r.type==="attributes"&&r.attributeName==="class"){let a=r.target;e.set(a.className)}});return n.observe(o,{attributes:!0,attributeFilter:["class"]}),t.onDestroy(()=>n.disconnect()),e.asReadonly()}function rt(i,o={childList:!0}){let e=C(N).nativeElement,t=C(ge),n=v([]),s=()=>{n.set(Array.from(e.querySelectorAll(i)))};if(s(),typeof MutationObserver>"u")return n.asReadonly();let r=new MutationObserver(a=>{a.some(d=>d.type==="childList")&&s()});return r.observe(e,o),t.onDestroy(()=>r.disconnect()),n.asReadonly()}var ei=(()=>{class i{constructor(e,t){this.itemSelector=e,this.activeClass=t,this.hostElement=C(N).nativeElement,this.value=j(null),this.items=rt(this.itemSelector,{childList:!0,subtree:!0,attributes:!0}),V(()=>{let n=this.value(),s=this.activeClass;this.items().forEach(r=>{let a=r.getAttribute("value");a===null&&!r.hasAttribute("value")||(a===String(n)||a===""&&(n===null||n==="")?r.classList.add(s):r.classList.remove(s))})})}onClick(e){let t=e;if(!t||!t.closest)return;let n=t.closest(this.itemSelector);if(n&&this.hostElement.contains(n)&&n.hasAttribute("value")){let s=n.getAttribute("value");this.value.set(s)}}onKeyDown(e){let t=this.items().filter(a=>a.hasAttribute("value"));if(!t.length)return;let n=t.findIndex(a=>a.classList.contains(this.activeClass)),s=n;switch(e.key){case"ArrowRight":case"ArrowDown":s=n>=t.length-1?0:n+1;break;case"ArrowLeft":case"ArrowUp":s=n<=0?t.length-1:n-1;break;default:return}e.preventDefault();let r=t[s];if(r){let a=r.getAttribute("value");this.value.set(a),r.focus()}}static{this.\u0275fac=function(t){pi()}}static{this.\u0275dir=B({type:i,hostBindings:function(t,n){t&1&&M("click",function(r){return n.onClick(r.target)})("keydown",function(r){return n.onKeyDown(r)})},inputs:{value:[1,"value"]},outputs:{value:"valueChange"}})}}return i})(),ua=(()=>{class i extends ei{constructor(){super("button","active"),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=c(null),this.variant=c(null),this.size=c(null),this.hostClasses=K("buttonGroup",{color:this.color,variant:this.variant,size:this.size})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-button-group"]],hostVars:4,hostBindings:function(t,n){t&2&&(L(n.hostClasses()),te("--btng-id",n.id))},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},features:[W],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),ha=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=K("button",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},attrs:oo,ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),pa=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=K("card",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-card"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"]},ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),er=(()=>{class i{constructor(){this._elementRef=C(N),this.internalInput=Q("internalInput"),this.projectedInputs=rt("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=j(!1),this.currentClassList=Mt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=K("checkbox",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-checkbox"]],viewQuery:function(t,n){t&1&&se(n.internalInput,Jt,5),t&2&&ee()},hostVars:3,hostBindings:function(t,n){t&1&&M("keydown.enter",function(r){return n.onEnter(r)}),t&2&&(Y("disabled",n.disabled()?"":null),L(n.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:oe,decls:8,vars:3,consts:[["internalInput",""],[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"],["type","checkbox",1,"internal-input",3,"checked"],["type","checkbox",1,"internal-input",3,"change","checked"]],template:function(t,n){t&1&&(P(),f(0,"div",1)(1,"sh-icon",2),_(2,"check-bold"),m(),f(3,"sh-icon",3),_(4,"minus-bold"),m()(),f(5,"div",4),g(6),m(),b(7,so,2,2,"input",5)),t&2&&(L(n.currentClassList()),p(7),S(n.projectedInputs().length===0&&!n.noInternalInput()?7:-1))},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})(),tr=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.sharp=c(void 0),this.dynamic=c(void 0),this.readonly=c(!1),this.hostClasses=K("chip",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,dynamic:this.dynamic,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"]},ngContentSelectors:oe,decls:2,vars:0,template:function(t,n){t&1&&(P(),I(0,"div"),g(1),F())},encapsulation:2,changeDetection:0})}}return i})();var ir=(()=>{class i{constructor(){this.#t=new Date(new Date().setHours(0,0,0,0)),this.date=j(null),this.endDate=j(null),this.asRange=c(!1),this.monthsToShow=c(1),this.disabled=c(!1),this.startOfWeek=c(1),this.weekdayLabels=c(["Su","Mo","Tu","We","Th","Fr","Sa"]),this.daysRef=Q("daysRef"),this.currentDate=v(this.date()??this.#t),this.monthOffsets=E(()=>Array.from({length:this.monthsToShow()},(e,t)=>t)),this.selectedDateStylePosition=v(null),this.weekdays=E(()=>{let e=this.startOfWeek(),t=this.weekdayLabels();return t.slice(e).concat(t.slice(0,e))}),this.currentClasses=Mt(),this.someEffect=V(()=>{let e=this.currentClasses();this.#i()}),this.#n=V(()=>{this.monthsToShow()>1||this.#e()})}#t;getLastVisibleMonth(){let e=this.monthsToShow()-1;return this.getOffsetDate(e)}getOffsetDate(e){let t=new Date(this.currentDate());return t.setMonth(t.getMonth()+e),t}getMonthDates(e){let t=this.getOffsetDate(e);return this.#o(t,this.startOfWeek())}#n;ngOnInit(){this.monthsToShow()!==1&&this.#e()}#e(){let e=this.date();e&&this.currentDate.set(e),this.#i()}#i(){setTimeout(()=>{let e=this.daysRef()?.nativeElement.querySelector(".sel");if(!e)return this.selectedDateStylePosition.update(t=>t?q(H({},t),{opacity:"0"}):null);this.setSelectedDateStylePosition(e)})}#o(e,t){let n=e.getFullYear(),s=e.getMonth(),r=new Date(n,s,1).getDay(),a=new Date(n,s+1,0).getDate(),l=[],d=r-t;d<0&&(d+=7);let u=new Date(n,s,0).getDate();for(let T=d-1;T>=0;T--)l.push(new Date(n,s-1,u-T,0,0,0,0));for(let T=1;T<=a;T++)l.push(new Date(n,s,T,0,0,0,0));let y=1;for(;l.length%7!==0;)l.push(new Date(n,s+1,y++,0,0,0,0));return l}nextMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()+1),t}),this.#i()}previousMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()-1),t}),this.#i()}setDate(e,t){let n=(s,r)=>{let a=r?.getHours()??0,l=r?.getMinutes()??0,d=r?.getSeconds()??0,u=r?.getMilliseconds()??0;return new Date(s.getFullYear(),s.getMonth(),s.getDate(),a,l,d,u)};if(!this.asRange())this.date.set(n(e,this.date())),this.endDate.set(null);else{let s=this.date(),r=this.endDate(),a=n(e,null);s?r?(this.date.set(a),this.endDate.set(null)):a<s?(this.date.set(a),this.endDate.set(null)):this.endDate.set(a):this.date.set(a)}this.asRange()||this.setSelectedDateStylePosition(t)}isDateSelected(e){let t=this.date(),n=this.endDate();if(t===null)return null;let s=y=>new Date(y.getFullYear(),y.getMonth(),y.getDate(),0,0,0,0),r=y=>new Date(y.getFullYear(),y.getMonth(),y.getDate(),23,59,59,999),a=s(e),l=s(t),d=n?r(n):null,u=[];if(this.asRange())if(d===null)a.getTime()===l.getTime()&&u.push("sel first last");else{if(a.getTime()===l.getTime()&&u.push("first"),a.getTime()===s(d).getTime()&&u.push("last"),a>=l&&a<=d){u.push("sel");let x=a.getDay(),Oe=this.startOfWeek();x===Oe&&u.push("week-start");let Te=(Oe+6)%7;x===Te&&u.push("week-end")}let y=new Date(a);y.setDate(a.getDate()+1),new Date(a).setDate(a.getDate()-1);let $=a.getDate()===1,w=y.getMonth()!==a.getMonth();$&&u.push("month-start"),w&&u.push("month-end")}else a.getTime()===l.getTime()&&u.push("sel");return u.join(" ")||null}setSelectedDateStylePosition(e){this.selectedDateStylePosition.set({transform:`translate(${e.offsetLeft}px, ${e.offsetTop}px)`,opacity:"1"})}getMonthName(e){return e.toLocaleString("default",{month:"long"})}getFullYear(e){return e.getFullYear()}isCurrentMonth(e,t){let n=this.getOffsetDate(t);return e.getMonth()===n.getMonth()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-datepicker"]],viewQuery:function(t,n){t&1&&se(n.daysRef,ro,5),t&2&&ee()},hostVars:6,hostBindings:function(t,n){t&2&&(L("columns-"+n.monthsToShow()),R("as-range",n.asRange())("disabled",n.disabled()))},inputs:{date:[1,"date"],endDate:[1,"endDate"],asRange:[1,"asRange"],monthsToShow:[1,"monthsToShow"],disabled:[1,"disabled"],startOfWeek:[1,"startOfWeek"],weekdayLabels:[1,"weekdayLabels"]},outputs:{date:"dateChange",endDate:"endDateChange"},decls:14,vars:3,consts:[["daysRef",""],["elementRef",""],[3,"click"],[1,"title"],[1,"months-container"],[1,"month"],[1,"weekdays"],[1,"days"],[3,"out-of-scope","class"],[1,"sel-el"]],template:function(t,n){t&1&&(f(0,"header")(1,"button",2),M("click",function(){return n.previousMonth()}),f(2,"sh-icon"),_(3,"caret-left"),m()(),f(4,"div",3),_(5),b(6,ao,1,1),_(7),m(),f(8,"button",2),M("click",function(){return n.nextMonth()}),f(9,"sh-icon"),_(10,"caret-right"),m()()(),f(11,"section",4),Ie(12,ho,9,1,"div",5,mi),m()),t&2&&(p(5),ie(" ",n.getMonthName(n.currentDate())," "),p(),S(n.monthsToShow()>1?6:-1),p(),ie(" ",n.getFullYear(n.currentDate())," "),p(5),Ae(n.monthOffsets()))},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})(),ue=4,nr=["scroll","auto"],or={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ti=(()=>{class i{constructor(){this.#t=C(be),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=c(!1),this.disableOpenByClick=c(!1),this.isOpen=j(!1),this.options=c(),this.closed=ce(),this.defaultOptionMerge=E(()=>H(H({},or),this.options())),this.triggerRef=Q.required("triggerRef"),this.popoverRef=Q("popoverRef"),this.popoverContentRef=Q("popoverContentRef"),this.id=v("--"+st()),this.menuStyle=v(null),this.openAbort=null,this.openEffect=V(()=>{let e=this.isOpen();queueMicrotask(()=>{let t=this.popoverRef()?.nativeElement;if(!t){this.openAbort?.abort(),this.openAbort=null;return}if(e){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#t.addEventListener("keydown",n=>{n.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&n.preventDefault(),n.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),!t.isConnected)return;t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#n(t).addEventListener("scroll",()=>this.#u(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#u(),{signal:this.openAbort?.signal}),this.#u()})}else this.closed.emit(),t.hidePopover(),this.openAbort?.abort(),this.openAbort=null})})}#t;toggleIsOpen(e){this.disableOpenByClick()||(e.preventDefault(),e.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(e){this.isOpen()&&this.isOpen.set(!1)}#n(e){let t=e.parentElement;for(;t;){if(nr.indexOf(window?.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return this.#t.documentElement}#e(e,t){return{left:e.left,top:e.bottom+ue}}#i(e,t){return{left:e.left,top:e.top-t.height-ue}}#o(e,t){return{left:e.right-t.width,top:e.bottom+ue}}#r(e,t){return{left:e.right-t.width,top:e.top-t.height-ue}}#a(e,t){return{left:e.right+ue,top:e.top}}#s(e,t){return{left:e.left-t.width-ue,top:e.top}}#l(e,t){return{left:e.right+ue,top:e.top+e.height/2-t.height/2}}#c(e,t){return{left:e.left-t.width-ue,top:e.top+e.height/2-t.height/2}}#d(e,t){return{left:e.right+ue,top:e.bottom-t.height}}#h(e,t){return{left:e.left-t.width-ue,top:e.bottom-t.height}}#p(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#f(e,t){return{left:Math.max(0,Math.min(e.left,window.innerWidth-t.width)),top:Math.max(0,Math.min(e.top,window.innerHeight-t.height))}}#u(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!e||!t)return;let n=[this.#e,this.#i,this.#o,this.#r,this.#a,this.#s,this.#l,this.#c,this.#d,this.#h],s=[this.#a,this.#d,this.#s,this.#h,this.#l,this.#c,this.#e,this.#i,this.#o,this.#r],r=this.asMultiLayer()?s:n;for(let l of r){let d=l.call(this,e,t);if(this.#p(d,t)){this.menuStyle.set({left:d.left+"px",top:d.top+"px"});return}}let a=this.#f(r[0].call(this,e,t),t);this.menuStyle.set({left:a.left+"px",top:a.top+"px"})}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-popover"]],viewQuery:function(t,n){t&1&&se(n.triggerRef,po,5)(n.popoverRef,fo,5)(n.popoverContentRef,go,5),t&2&&ee(3)},hostVars:2,hostBindings:function(t,n){t&2&&R("multi-layer",n.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:vo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(t,n){t&1&&(P(mo),I(0,"div",3,0),fe("click",function(r){return n.toggleIsOpen(r)}),I(2,"div",4),g(3),g(4,1),g(5,2),F(),Me(6,"div",5),F(),b(7,_o,6,5,"div",6)),t&2&&(Y("popovertarget",n.id()+"hello"),p(6),te("anchor-name",n.id()),p(),S(n.isOpen()?7:-1))},encapsulation:2,changeDetection:0})}}return i})(),sr=(()=>{class i{constructor(){this.#t=C(N),this.isOpen=j(!1),this.closed=ce()}#t;onClick(){this.#t.nativeElement.querySelector("input")&&this.#t.nativeElement.querySelector("input").focus(),this.#t.nativeElement.querySelector("textarea")&&this.#t.nativeElement.querySelector("textarea").focus()}close(){this.closed.emit()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#t.nativeElement.querySelector("textarea");if(!e&&t!==null){let a=function(){r.style.height="auto",r.style.height=r.scrollHeight+"px"},l=function(){setTimeout(a,0)};var n=a,s=l;let r=this.#t.nativeElement.querySelector("textarea");r&&(r.addEventListener("change",a),r.addEventListener("cut",l),r.addEventListener("paste",l),r.addEventListener("drop",l),r.addEventListener("keydown",l),r.focus(),r.select(),a())}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-form-field-popover"]],hostBindings:function(t,n){t&1&&M("click",function(){return n.onClick()})},inputs:{isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Co,decls:18,vars:3,consts:[[3,"isOpenChange","closed","isOpen","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,n){t&1&&(P(yo),g(0),f(1,"sh-popover",0),Ue("isOpenChange",function(r){return qe(n.isOpen,r)||(n.isOpen=r),r}),M("closed",function(){return n.close()}),f(2,"div",1)(3,"div",2),g(4,1),g(5,2),m(),le(6,"div",3),g(7,3),g(8,4),g(9,5),le(10,"div",4),g(11,6),m(),g(12,7),m(),f(13,"div",5)(14,"div",6),g(15,8),m(),f(16,"div",7),g(17,9),m()()),t&2&&(p(),Ge("isOpen",n.isOpen),X("options",dt(2,Qi)))},dependencies:[ti],encapsulation:2,changeDetection:0})}}return i})(),fa=(()=>{class i{constructor(){this.ngModels=kt(bt),this.#t=C(Bt),this.#n=v(null),this.masking=c("mediumDate"),this.closed=ce(),this._maskedDate=E(()=>{let e=this.internalDate(),t=this.masking();return t?e?this.#t.transform(e,t):null:e}),this.internalDate=v(null),this.isOpen=j(!1),this.currentClass=Mt(),this.#e=rt("#input-wrap input"),this.#i=V(()=>{let e=this.#e();if(!e.length)return;let t=e[0];t&&(this.#o(t),t.addEventListener("inputValueChanged",n=>{this.internalDate.set(n.detail.value?new Date(n.detail.value):null)}),t.addEventListener("focus",()=>{this.isOpen.set(!0),t.blur()}),this.#n.set(t),t.autocomplete="off",typeof t.value=="string"&&this.internalDate.set(t.value?new Date(t.value):null))})}#t;#n;#e;onDateChange(e){this.internalDate.set(e);let t=this.#n();t&&(t.value=e?e.toString():"",t.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}#i;#o(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}}),e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-datepicker-input"]],contentQueries:function(t,n,s){t&1&&Tt(s,n.ngModels,bt,5),t&2&&ee()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[Z([Bt])],ngContentSelectors:bo,decls:15,vars:3,consts:[["defaultIndicator",""],[3,"closed","isOpenChange","isOpen"],["id","input-wrap","ngProjectAs","input",5,["input"],1,"input"],[1,"masked-value"],["suffix","",1,"default-indicator"],["popoverContent",""],[3,"date","class"],[3,"dateChange","date"]],template:function(t,n){if(t&1){let s=U();P(Do),f(0,"sh-form-field-popover",1),M("closed",function(){return n.close()}),Ue("isOpenChange",function(a){return A(s),qe(n.isOpen,a)||(n.isOpen=a),k(a)}),g(1,0,["ngProjectAs","label",5,["label"]]),g(2,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),g(3,2,["ngProjectAs","[textPrefix]",5,["","textPrefix",""]]),f(4,"div",2),b(5,So,2,1,"div",3),g(6,3),m(),g(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),g(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),f(9,"sh-icon",4),_(10,"calendar"),m(),f(11,"div",5),b(12,Mo,1,3,"sh-datepicker",6),m()(),pe(13,Eo,0,0,"ng-template",null,0,vi)}t&2&&(Ge("isOpen",n.isOpen),p(5),S(n.masking()?5:-1),p(7),S(n.isOpen()?12:-1))},dependencies:[ir,sr,De],encapsulation:2,changeDetection:0})}}return i})();var rr=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-divider"]],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();var ii=(()=>{class i{#t;onClick(){this.#t.nativeElement.querySelector("input")&&this.#t.nativeElement.querySelector("input").focus(),this.#t.nativeElement.querySelector("textarea")&&this.#t.nativeElement.querySelector("textarea").focus()}constructor(){this.#t=C(N),this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=K("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),Et(()=>{let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#t.nativeElement.querySelector("textarea");if(!e&&t!==null){let r=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){setTimeout(r,0)};var n=r,s=a;t.addEventListener("change",r),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),r()}})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(t,n){t&1&&M("click",function(){return n.onClick()}),t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:wo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,n){t&1&&(P(xo),g(0),I(1,"div",0)(2,"div",1),g(3,1),g(4,2),g(5,3),F(),g(6,4),g(7,5),I(8,"div",2),g(9,6),g(10,7),g(11,8),F()(),I(12,"div",3)(13,"div",4),g(14,9),F(),I(15,"div",5),g(16,10),F()())},encapsulation:2,changeDetection:0})}}return i})(),ga=(()=>{class i{constructor(){this._el=C(N),this.inputRef=Q.required("input"),this.filesOver=v(!1),this.multiple=c(),this.accept=c(null),this.placeholder=j("Click or drag files here"),this.overlayText=c("Drop files here"),this.files=j([]),this.fileUploadClasses=E(()=>this._el.nativeElement.classList.toString()),this.inputEffect=V(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(!0)}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(!1)}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(!1);let n=t.dataTransfer?.files;n&&n.length>0&&(this.handleFileUpload(Array.from(n)),e.files=n)}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files))}))})}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-file-upload"]],viewQuery:function(t,n){t&1&&se(n.inputRef,Oo,5),t&2&&ee()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Vo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(t,n){t&1&&(P(To),f(0,"sh-form-field"),g(1,0,["ngProjectAs","label",5,["label"]]),f(2,"div",2,0),b(4,No,2,1,"div",3)(5,Io,2,1,"div",3)(6,Ao,2,1,"div",4),le(7,"input",5,1)(9,"div",6),m(),f(10,"sh-icon",7),_(11,"upload-simple"),m()()),t&2&&(L(n.fileUploadClasses()),p(4),S(n.files().length===1?4:n.files().length>1?5:6),p(3),Y("multiple",n.multiple())("accept",n.accept()),p(2),R("files-over",n.filesOver()))},dependencies:[ii,De],encapsulation:2,changeDetection:0})}}return i})(),ma=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-list"]],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();function ar(i,o){let e=v(null),t=o.map(l=>l.toUpperCase()),n=C(Ne),s=n.get(ge);if(yi(n.get(ui))||typeof MutationObserver>"u")return e.asReadonly();if(t.find(l=>i.nativeElement.querySelector(l)))return e.set(new N(i.nativeElement.querySelector(o[0]))),e.asReadonly();let a=new MutationObserver(l=>{for(let d of l)if(d.addedNodes){for(let u of Array.from(d.addedNodes))if(u.nodeType===Node.ELEMENT_NODE&&t.includes(u.nodeName)){e.set(new N(u)),a.disconnect();return}}});return a.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>a.disconnect()),e.asReadonly()}function Ji(i,o){let e=C(Ne),t=e.get(ge),n=v([]),s=null,r=null,a=(d,u)=>{r&&r.disconnect();let y=Array.from(d.nativeElement.querySelectorAll(u.join(",")));n.set(y),typeof MutationObserver<"u"&&(r=new MutationObserver(T=>{queueMicrotask(()=>{let $=Array.from(d.nativeElement.querySelectorAll(u.join(",")));n.set($)})}),r.observe(d.nativeElement,{childList:!0,subtree:!0})),t.onDestroy(()=>l())};s=V(()=>{let d=typeof i=="function"&&i[oi]?i():i,u=typeof o=="function"?o():o;d&&u?.length>0?a(d,u):(n.set([]),r&&(r.disconnect(),r=null))},{injector:e});function l(){s&&s.destroy(),r&&r.disconnect()}return{signal:n.asReadonly(),destroy:l}}function lr(i,o=["input","textarea"]){let e=i||ar(C(N),o),t=v(void 0),n=C(Ne),s=n.get(ge),r=v(null);V(l=>{let d=e();if(!d)return;let u=d.nativeElement;u&&(cr(u),r.set(u),t.set(u.value??""),l(()=>{r.set(null)}))},{injector:n});let a=null;return V(()=>{let l=r();if(!l)return;a&&(a(),a=null);let d=y=>{t.set(y.detail.value)},u=y=>{t.set(y.target.value)};l.addEventListener("input",u),l.addEventListener("inputValueChanged",d),t.set(l.value),a=()=>{l.removeEventListener("input",u),l.removeEventListener("inputValueChanged",d)},s.onDestroy(()=>{a&&a()})},{injector:n}),V(()=>{let l=r();if(!l)return;let d=t();d&&(l.value=d,l.dispatchEvent(new Event("input")))},{injector:n}),t}function cr(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(o){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,o);let t=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:o}});return this.dispatchEvent(t),o}}),i}var va=(()=>{class i{constructor(){this.#t=C(be),this.#n=C(ve),this.asMultiLayer=c(!1),this.openIndicator=c(!1),this.disabled=c(!1),this.customOptionElementSelectors=c(["button"]),this.keepClickedOptionActive=c(!1),this.closeOnClick=c(!0),this.isOpen=j(!1),this.closed=ce(),this.searchable=c(!1),this.activeOptionIndex=v(-1),this.inputRef=Q("inputRef"),this.optionsRef=Q("optionsRef"),this.openMenusEffect=V(e=>{this.isOpen()&&i.openMenus.push(this),e(()=>{let t=i.openMenus.indexOf(this);t>-1&&i.openMenus.splice(t,1)})}),this.options=Ji(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=E(()=>this.options.signal().filter(e=>!e.disabled)),this.inputValue=lr(this.inputRef),this.optionsId=st(),this.activeOptionId=v(void 0),this.abortController=null,this.optionsEffect=V(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||this.#t.documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",s=>{let r=s.target,a=this.activeElements();if(!a.length){let d=this.optionsEl();this.activeElements.set(d),a=d}let l=a.findIndex(d=>d===r);l>-1&&(this.activeOptionIndex.set(l),t.focus())}))}),this.keyDownEventListener=e=>{if(i.openMenus.at(-1)!==this)return;let t=this.activeOptionIndex();if(e.key==="ArrowDown")e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t));else if(e.key==="ArrowUp")e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t));else if(e.key==="Enter"){if(e.preventDefault(),t>-1){let n=this.activeElements()[t];if(n.parentElement?.hasAttribute("trigger")){let r=new CustomEvent("ship-menu-open",{bubbles:!0,cancelable:!0});n.dispatchEvent(r)}else n.click(),n.querySelector("sh-checkbox")||queueMicrotask(()=>this.close("active"))}}else if(e.key==="Tab"){let n=this.activeElements();if(!n.length){let s=this.optionsEl();this.activeElements.set(s),n=s}e.shiftKey?t<=0?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t))):t>=n.length-1?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t)))}},this._lastElementList=[],this.activeElements=v([]),this.lastInputValue="",this.inputValueEffect=V(()=>{if(!this.searchable())return;let t=(this.inputValue()??"").toLowerCase();if(this.#i(),!t||t===""){let s=this.optionsEl();this.activeElements.set(s),this._lastElementList=s;for(let r=0;r<s.length;r++)this.#n.removeStyle(s[r],"order"),s[r].id||(s[r].id=`${this.optionsId}-option-${r}`),s[r].setAttribute("role","option");return}if(!t||t==="")return;let n=this._lastElementList.length&&t.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=t;for(let s=0;s<n.length;s++){let r=n[s],a=r.textContent?.toLowerCase()||"",l=this.#e(a,t);r.value=l}n=n.filter(s=>s.value>0).sort((s,r)=>r.value-s.value);for(let s=0;s<n.length;s++)this.#n.setStyle(n[s],"order",s);this.activeElements.set(n),this._lastElementList=n;for(let s=0;s<n.length;s++)n[s].id||(n[s].id=`${this.optionsId}-option-${s}`),n[s].setAttribute("role","option")}),this.activeOptionIndexEffect=V(()=>{let e=this.activeElements(),t=this.activeOptionIndex();for(let n=0;n<e.length;n++)e[n].classList.remove("active"),e[n].removeAttribute("aria-selected");if(t>-1){let n=e[t];n.scrollIntoView({block:"center"}),n.classList.add("active"),n.setAttribute("aria-selected","true"),this.activeOptionId.set(n.id)}else this.activeOptionId.set(void 0)})}#t;#n;static{this.openMenus=[]}toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),!this.disabled()&&(this.isOpen()?this.close("fromPopover"):this.open())}open(){this.disabled()||(this.isOpen.set(!0),this.searchable()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}onShipMenuOpen(e){e.preventDefault(),e.stopPropagation(),this.open()}#e(e,t){if(!t)return 0;let n=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let d=t[l];if(e.length>s+1&&e[s+1]===d)n+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;n+=100,s=u,r++}}return a&&t.length===r&&(n+=1e3),n+=r*20,n}nextActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===-1||e===t.length-1)return 0;let n=e+1;return t[n].disabled?this.nextActiveIndex(n):n}prevActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===0||e===-1)return t.length-1;let n=e-1;return t[n].disabled?this.prevActiveIndex(n):n}close(e="closed",t){this.inputValue.set("");let n=this.inputRef()?.nativeElement;n&&(n.value=""),this.closeOnClick()&&((!this.keepClickedOptionActive()||e==="closed")&&this.#i(),this.isOpen.set(!1),this.closed.emit(e==="active"))}#i(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active"),e[t].removeAttribute("aria-selected")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null);let e=i.openMenus.indexOf(this);e>-1&&i.openMenus.splice(e,1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-menu"]],viewQuery:function(t,n){t&1&&se(n.inputRef,ko,5)(n.optionsRef,Fo,5),t&2&&ee(2)},hostVars:6,hostBindings:function(t,n){t&1&&M("ship-menu-open",function(r){return n.onShipMenuOpen(r)}),t&2&&R("disabled",n.disabled())("has-search",n.searchable())("multi-layer",n.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ro,decls:12,vars:20,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","","role","combobox","aria-haspopup","listbox",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search","role","combobox","aria-autocomplete","list"],["role","listbox",1,"options",3,"click","id"]],template:function(t,n){if(t&1){let s=U();P(Po),f(0,"sh-popover",3,0),Ue("isOpenChange",function(a){return A(s),qe(n.isOpen,a)||(n.isOpen=a),k(a)}),M("closed",function(){return n.close("fromPopover")}),f(2,"div",4),M("click",function(a){return n.toggleIsOpen(a)}),g(3),b(4,Lo,2,0,"sh-icon",5),m(),f(5,"div",6)(6,"sh-form-field",7),le(7,"input",8,1),m()(),f(9,"div",9,2),M("click",function(){return n.close("active")}),g(11,1),m()()}t&2&&(Ge("isOpen",n.isOpen),X("disableOpenByClick",!0)("asMultiLayer",n.asMultiLayer())("options",dt(19,Qi)),p(2),R("is-open",n.isOpen()),Y("aria-expanded",n.isOpen())("aria-controls",n.optionsId)("aria-activedescendant",n.activeOptionId()),p(2),S(n.openIndicator()?4:-1),p(2),R("hidden",n.searchable()===!1),p(),Y("aria-expanded",n.isOpen())("aria-controls",n.optionsId)("aria-activedescendant",n.activeOptionId()),p(2),R("searching",n.searchable()&&n.inputValue()!==""),X("id",n.optionsId),Y("aria-activedescendant",n.activeOptionId()))},dependencies:[ti,ii,De],encapsulation:2,changeDetection:0})}}return i})(),dr=(()=>{class i{constructor(){this.value=c(void 0),this.color=c(null),this.variant=c(null),this.hostClasses=K("progressBar",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-progress-bar"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{value:[1,"value"],color:[1,"color"],variant:[1,"variant"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,n){t&1&&Me(0,"div",0),t&2&&te("width",n.value(),"%")},encapsulation:2,changeDetection:0})}}return i})(),_a=(()=>{class i{constructor(){this._elementRef=C(N),this.internalInput=Q("internalInput"),this.projectedInputs=rt("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=j(!1),this.currentClassList=Mt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=K("radio",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-radio"]],viewQuery:function(t,n){t&1&&se(n.internalInput,Jt,5),t&2&&ee()},hostVars:3,hostBindings:function(t,n){t&1&&M("keydown.enter",function(r){return n.onEnter(r)}),t&2&&(Y("disabled",n.disabled()?"":null),L(n.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:oe,decls:3,vars:3,consts:[["internalInput",""],[1,"radio","sh-sheet"],["type","radio",1,"internal-input",3,"checked"],["type","radio",1,"internal-input",3,"change","checked"]],template:function(t,n){t&1&&(P(),Me(0,"div",1),g(1),b(2,Bo,2,2,"input",2)),t&2&&(L(n.currentClassList()),p(2),S(n.projectedInputs().length===0&&!n.noInternalInput()?2:-1))},encapsulation:2,changeDetection:0})}}return i})(),ya=(()=>{class i{constructor(){this.#t=C(N),this.#n=null,this.#e=null,this.#i=0,this.unit=c(""),this.value=j(this.#i),this.inputState=v({min:0,max:100,step:1}),this.valuePercentage=E(()=>{let{min:e,max:t}=this.inputState(),n=this.value()??e;if(isNaN(n))return 0;let s=t-e;if(s===0)return 0;let r=(n-e)/s*100;return Math.max(0,Math.min(100,r))}),this.trackFilledPercentage=E(()=>this.valuePercentage()),this.thumbPositionPercentage=E(()=>this.valuePercentage()),this.syncModelToInputEffect=V(()=>{let e=this.value();if(this.#e){let t=parseFloat(this.#e.value);(isNaN(t)||String(t)!==String(e))&&(this.#e.value=String(e))}})}#t;#n;#e;#i;get hasInputElement(){return!!this.#e}ngAfterViewInit(){this.#e=this.#t.nativeElement.querySelector('input[type="range"]'),this.#e?(this.#s(this.#e),this.#e.oninput=()=>{this.setNewInputValue(this.#e.value)},this.#e.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value)}),queueMicrotask(()=>this.#o(!0)),this.#r()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(e){let t=parseFloat(e??"0");if(!isNaN(t)){let{min:n,max:s}=this.inputState();this.value.set(Math.max(n,Math.min(s,t)))}}trackEvent(e){if(!this.#e||this.#e.readOnly||this.#e.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#e||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let n=e.currentTarget.getBoundingClientRect(),s=e.clientX-n.left,r=n.width,{min:a,max:l,step:d}=this.inputState(),u=l-a;if(r>0&&u!==0&&d>0){let T=(s/r*u+a-a)/d,$=a+Math.round(T)*d,w=this.#a(d);$=parseFloat($.toFixed(w));let x=Math.max(a,Math.min(l,$));this.value.set(x)}}#o(e=!1){if(!this.#e)return;let t=parseFloat(this.#e.min??"0")??0,n=parseFloat(this.#e.max??"100")??100,s=this.#e.step,r=1;if(s&&s.toLowerCase()!=="any"){let l=parseFloat(s);!isNaN(l)&&l>0&&(r=l)}this.inputState.set({min:t,max:n,step:r});let a=parseFloat(this.#e.value??String(t))??t;if(e&&this.value()!==this.#i){let l=this.value(),d=Math.max(t,Math.min(n,l));a!==d&&(this.#e.value=String(d)),l!==d&&this.value.set(d)}else{let l=Math.max(t,Math.min(n,a));this.value()!==l&&this.value.set(l)}}#r(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#n=new MutationObserver(t=>{let n=!1;for(let s of t)if(s.type==="attributes"&&e.includes(s.attributeName??"")){n=!0;break}n&&this.#o(!1)}),this.#n.observe(this.#e,{attributes:!0,attributeFilter:e})}#a(e){if(isNaN(e)||Math.floor(e)===e)return 0;let n=e.toString().split(".")[1];return n?n.length:0}#s(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}ngOnDestroy(){this.#n&&this.#n.disconnect(),this.#e&&(this.#e.oninput=null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(t,n){t&2&&R("has-input",n.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:jo,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(t,n){t&1&&(P(Ho),I(0,"div",0),g(1),F(),I(2,"div",1)(3,"div",2),_(4),F(),I(5,"div",3),fe("click",function(r){return n.trackEvent(r)}),g(6,1),I(7,"div",4),Me(8,"div",5),F(),I(9,"div",6)(10,"div",7)(11,"div",8),_(12),F()()()(),I(13,"div",9),_(14),F()()),t&2&&(p(4),lt("",n.inputState().min,"",n.unit()),p(4),te("width",n.trackFilledPercentage(),"%"),p(),te("left",n.thumbPositionPercentage(),"%"),p(3),lt("",n.value(),"",n.unit()),p(2),lt("",n.inputState().max,"",n.unit()))},encapsulation:2,changeDetection:0})}}return i})(),ur=(()=>{class i{constructor(){this.color=c(null),this.hostClasses=K("spinner",{color:this.color})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-spinner"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"]},decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0})}}return i})(),Ca=(()=>{class i{constructor(){this.#t=C(N),this.value=c(),this.label=c(),this.asFreeText=c(!1),this.optionTitle=c(null),this.freeTextTitle=c(null),this.freeTextPlaceholder=c("Type to create a new option"),this.validateFreeText=c(),this.placeholder=c(),this.readonly=j(!1),this.disabled=j(!1),this.lazySearch=c(!1),this.inlineSearch=c(!1),this.asText=c(!1),this.isClearable=c(!0),this.selectMultiple=c(!1),this.optionTemplate=c(null),this.selectedOptionTemplate=c(null),this.placeholderTemplate=c(null),this.freeTextOptionTemplate=c(null),this.isOpen=j(!1),this.isLoading=j(!1),this.options=j([]),this.selectedOptions=j([]),this.cleared=ce(),this.onAddNewFreeTextOption=ce(),this.computedFreeTextOption=E(()=>{let e=this.inputValue(),t=this.value(),n=t?{}:e;return t&&typeof n=="object"&&(n[t]=e),n}),this.#n=v(null),this.inlineTemplate=kt(ze),this.optionsWrapRef=Q.required("optionsWrap"),this.inputRefInput=v(null),this.#e=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t&&(t.target.nodeName==="INPUT"||t.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new N(t.target)),this.#e.disconnect())}),this.inputValue=v(""),this.prevInputValue=v(null),this.focusedOptionIndex=v(-1),this._isClearable=E(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=E(()=>this.#t.nativeElement.classList.toString()),this.stretch=E(()=>this.selectClasses().includes("stretch")),this.small=E(()=>this.selectClasses().includes("small")),this.placeholderText=E(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=E(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(n=>this.#s(n,t)):e}),this.filteredOptions=E(()=>{let e=this.options()||[],t=this.label(),n=this.value(),s=this.inlineSearch(),r=this.inputValue().toLowerCase(),a=this.#c(r);if(e.length<=0)return[];if(!s||r==="")return e;let d=e.filter(u=>{let y=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),T=((n?this.#s(u,n):u)??"").toString().toLowerCase(),$=a.test(y),w=a.test(T);return $||w}).map(u=>{let y=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),T=((n?this.#s(u,n):u)??"").toString().toLowerCase(),$=this.#i(y,r),w=this.#i(T,r);return{item:u,score:Math.max($,w)}});return d.sort((u,y)=>y.score-u.score),d.map(u=>u.item)}),this.#o=st(),this.inputRefEl=E(()=>{let e=this.inputRefInput();if(e===null)return;let t=e?e.nativeElement:null;return t?(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("id",`combobox-${this.#o}`),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-owns","optionsWrapId"),this.#l(t),t.addEventListener("focus",()=>{this.readonly()||this.open()}),t.addEventListener("input",n=>{let s=n.target.value,r=this.inputValue();s!==r&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),t.addEventListener("inputValueChanged",n=>{let s=n.detail.value,r=this.inputValue();if(s!==r){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromOptions(this.selectedOptions()),this.#a()}}),t):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=V(()=>{let e=this.inputRefEl();if(!e)return;let t=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);t?e.setAttribute("aria-activedescendant",t):e.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=V(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl(),s=this.asFreeText()?-1:0;if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),t.addEventListener("keydown",r=>{if((r.key==="Escape"||r.key==="Tab")&&(r.preventDefault(),this.close()),r.key==="Enter"&&(r.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),r.key==="ArrowDown"){r.preventDefault();let a=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(a>this.filteredOptions().length-1?s:a)}if(r.key==="ArrowUp"){r.preventDefault();let a=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(a<s?this.filteredOptions().length-1:a)}},{signal:this.openAbortController?.signal})}else{let t=this.inputRefEl();if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=V(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=V(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.disabled.set(e.disabled),this.setSelectedOptionsFromValue(e.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=E(()=>{let e=this.selectedOptions();return this.label()?e.map(n=>this.getLabel(n)).join(", "):e.join(", ")}),this.inputState=E(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=E(()=>this.inlineSearch()||this.lazySearch()),this.#r=V(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),n=e.map(s=>t?this.#s(s,t):s).join(",");this.inputValue.set(n)})}#t;#n;#e;#i(e,t){if(!t)return 0;let n=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let d=t[l];if(e.length>s+1&&e[s+1]===d)n+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;n+=100,s=u,r++}}return a&&t.length===r&&(n+=1e3),n+=r*20,n}#o;#r;ngOnInit(){this.setInitInput()}setInitInput(){let e=this.#t.nativeElement.querySelector("input");if(e){this.inputRefInput.set(new N(e));return}let t=this.#t.nativeElement.querySelector("textarea");if(t){this.inputRefInput.set(new N(t));return}typeof MutationObserver<"u"&&this.#e.observe(this.#t.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(e){let t=this.options()||[],n=this.value(),s=this.selectMultiple(),r=e.toString().split(",");if(r.length===0){this.selectedOptions.set([]);return}let a=s?r:[r[0]],l=t.filter(d=>{let u=n?this.#s(d,n)?.toString():d?.toString();return u&&a.includes(u)});this.selectedOptions.set(s?l:[l[0]])}setInputValueFromOptions(e){let t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let n=e.map(s=>t?this.#s(s,t):s).join(",");n!==this.inputValue()&&(this.inputValue.set(n),this.updateInputElValue())}getValue(e){let t=this.value();return t?this.#s(e,t):e}getLabel(e){let t=this.label();return t?this.#s(e,t):e}getLabelAsSlug(e){let t=this.getLabel(e);return!t||typeof t!="string"?"":t.replaceAll(" ","-")}toggleOptionByIndex(e,t,n=!1){let s=this.filteredOptions()[e];if(this.asFreeText()&&e===-1){let y=this.computedFreeTextOption(),T=this.getValue(y);if(!(this.validateFreeText()??(x=>!0))(T))return;this.options.update(x=>x.findIndex(Te=>this.getValue(Te)===T)>-1?x:(this.onAddNewFreeTextOption.emit(T),[y,...x])),e=0,s=y}else if(!s){this.close();return}t&&t.stopPropagation();let r=this.selectMultiple(),a=this._isClearable(),l=this.value(),d=this.selectedOptionValues(),u=l?this.#s(s,l):s;this.prevInputValue.set(null),this.#n.set(null),this.selectedOptions.update(y=>{let T=d.indexOf(u);if(T>-1){let $=[...y.slice(0,T),...y.slice(T+1)];return a||$.length>0?$:y}else return this.focusedOptionIndex.set(e),r?[...y,s]:[s]}),r?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),r&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(n=>[...n.slice(0,t),...n.slice(t+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(e){let t=this.value(),n=this.filteredOptions()[e],s=t?this.#s(n,t):n;return this.selectedOptionValues().indexOf(s)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):this.#n.set(this.selectedOptions()),this.selectMultiple()||this.#a())}#a(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let n=this.filteredOptions().findIndex(s=>t?this.#s(s,t)===e:s===e);this.focusedOptionIndex.set(n)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue(),t=this.#n();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&t!==null&&this.setInputValueFromOptions(t),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#s(e,t){return t.split(".").reduce((n,s)=>n?.[s],e)}#l(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}#c(e){let t=(e??"").toLowerCase(),n="^";for(let s of t)n+=".*"+this.#d(s);return n+=".*$",new RegExp(n,"i")}#d(e){return e.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#e.disconnect()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-select"]],contentQueries:function(t,n,s){t&1&&Tt(s,n.inlineTemplate,ze,5),t&2&&ee()},viewQuery:function(t,n){t&1&&se(n.optionsWrapRef,zo,5),t&2&&ee()},hostVars:2,hostBindings:function(t,n){t&2&&R("multiple",n.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:Wo,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","checked"],[3,"checked"]],template:function(t,n){if(t&1){let s=U();P($o),ct(0)(1)(2)(3)(4)(5)(6),f(7,"sh-popover",2,0),Ue("isOpenChange",function(a){return A(s),qe(n.isOpen,a)||(n.isOpen=a),k(a)}),M("closed",function(){return n.close()}),f(9,"sh-form-field",3),M("click",function(){return n.open()}),g(10,0,["ngProjectAs","label",5,["label"]]),g(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),g(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),f(13,"div",4)(14,"div",5),b(15,qo,1,1)(16,os,2,0)(17,ls,2,1),g(18,3),g(19,4),m()(),b(20,cs,2,0,"sh-icon",6)(21,ds,1,0,"sh-spinner",7)(22,us,2,0,"sh-icon",6)(23,hs,2,0,"sh-icon",6)(24,ps,2,0,"sh-icon",6)(25,fs,2,0,"sh-icon",6)(26,gs,2,0,"sh-icon",6),m(),f(27,"div",8,1),b(29,Ms,3,3),b(30,Es,2,1,"p",9),Ie(31,Vs,4,8,"li",10,We),m()()}if(t&2){re(n.placeholderTemplate());let s=n.optionTemplate();p(),re(n.freeTextOptionTemplate());let r=n.selectedOptionTemplate(),a=n.inlineTemplate();p();let l=re(n.selectedOptions()),d=n.inputState();p(),re(r||s||a),p(),re(s||a),p();let u=re(!n.asText()&&n.selectMultiple());p();let y=re(n.isOpen()&&n.hasSearch()&&(u||n.inputValue().length>-1));p(),Ge("isOpen",n.isOpen),X("disableOpenByClick",!0)("options",dt(24,Go)),p(2),R("stretch",n.stretch())("small",n.small())("readonly",n.readonly()||n.disabled()),p(4),R("show-search-text",y),p(),R("is-selected",d==="selected"),p(),S(n.asFreeText()&&n.inputValue().length>0&&!n.isOpen()?15:l.length>0?16:y?-1:17),p(5),S(d==="closed"?20:d==="loading"?21:d==="open-searching"?22:d==="searching"?23:d==="selected"&&n._isClearable()?24:d==="selected"&&!n._isClearable()?25:26),p(9),S(n.asFreeText()?29:-1),p(),S(n.optionTitle()&&n.filteredOptions().length>0?30:-1),p(),Ae(n.filteredOptions())}},dependencies:[Lt,ti,ii,De,er,ur,tr,rr],encapsulation:2,changeDetection:0})}}return i})();function hr(i){let o=C(N),e=C(ge),t=v(!1),n=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&t.set(o.nativeElement.classList.contains(i))})});return di(o.nativeElement,()=>{n&&n.observe(o.nativeElement,{attributes:!0}),t.set(o.nativeElement.classList.contains(i))}),e.onDestroy(()=>{n&&n.disconnect()}),t}var Da=(()=>{class i{constructor(){this.#t=C(be),this.#n=C(N),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=c(!1),this.isOpen=j(!1),this.isOverlay=hr("overlay"),this.#e=this.#n.nativeElement.parentElement,this.#i=this.#e.getBoundingClientRect&&this.#e.getBoundingClientRect(),this.dragImageElement=Q.required("dragImageElement"),this.dragIsEnding=v(!1),this.dragIsOnScreen=v(!0),this.isDragging=v(!1),this.dragPositionX=v(0),this.dragActualPositionX=E(()=>{let e=this.dragPositionX(),t=280,n=100,s=.008,r=t/2,a=r-n/2,l=r+n/2;if(e>l){let d=e-l,y=(t-l)*(1-Math.exp(-s*d));return l+y}else if(e<a){let d=a-e,y=a*(1-Math.exp(-s*d));return a-y}return e}),this.draggingStyle=E(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=V(()=>{this.disableDrag()||(this.isDragging()?this.#t.body.classList.add("dragging"):this.#t.body.classList.remove("dragging"))})}#t;#n;#e;#i;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#i.left)}#o(e){this.isDragging.set(!1),e>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)}dragEnd(e){e.clientX-this.#i.left<0&&this.#o(0),e.clientX-this.#i.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(e){e.stopPropagation(),this.#i=this.#e.getBoundingClientRect(),this.isDragging.set(!0)}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#i.left)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i=this.#e.getBoundingClientRect(),this.dragPositionX.set(0)}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#i.left)}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#i.left)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&se(n.dragImageElement,Ns,5),t&2&&ee()},hostVars:6,hostBindings:function(t,n){t&2&&R("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:As,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(P(Is),b(0,ks,2,0,"div",1),b(1,Fs,1,0,"div",2),I(2,"div",3),g(3),F(),I(4,"div",4),b(5,Ps,1,0,"div",5),I(6,"div",6),g(7,1),F(),I(8,"main"),g(9,2),F()()),t&2&&(S(n.isOverlay()&&!n.disableDrag()?0:-1),p(),S(n.isOverlay()&&n.isDragging()?1:-1),p(3),te("transform",!n.disableDrag()&&n.draggingStyle()),p(),S(n.isOverlay()&&!n.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return i})();var ba=(()=>{class i extends ei{constructor(){super("[value], [step], [routerLinkActive], button, a","active"),this.color=c(null),this.hostClasses=K("stepper",{color:this.color}),V(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let n=document.createElement("div");n.className="radio sh-sheet",t.append(n),e.prepend(t)}})})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"]},features:[W],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();var Sa=(()=>{class i{constructor(){this.#t=C(pr),this.shSort=c(),this.sortAsc=E(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===t}),this.sortDesc=E(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===`-${t}`})}#t;toggleSort(){let e=this.shSort();e&&this.#t.toggleSort(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=B({type:i,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(t,n){t&1&&M("mousedown",function(){return n.toggleSort()}),t&2&&R("sort-asc",n.sortAsc())("sort-desc",n.sortDesc())},inputs:{shSort:[1,"shSort"]}})}}return i})();var Be=1.5,pr=(()=>{class i{constructor(){this.#t=C(N),this.loading=c(!1),this.data=c([]),this.dataChange=ce(),this.sortByColumn=j(null),this.color=c(null),this.variant=c(null),this.hostClasses=K("table",{color:this.color,variant:this.variant}),this.thead=Q("thead"),this.tbody=Q("tbody"),this.columns=Ji(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=E(()=>{let e=this.hostClasses();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=V(()=>{let e=this.tbody()?.nativeElement,t=this.thead()?.nativeElement;if(!e||!t)return;let n=this.stickyHeaderHeight();queueMicrotask(()=>{let s=t.querySelectorAll("tr.sticky").length>0,r=e.querySelectorAll("tr.sticky");if(r.length>0&&s)for(let l=0;l<r.length;l++)r[l].style.top=`${n}px`})}),this.resizing=v(!1),this.sizeTrigger=v(!0),this.#n=null,this.#e=v(!1),this.scrollXState=v(-1),this.scrollYState=v(-1),this.canScrollX=v(!1),this.canScrollY=v(!1),this.columnSizes=E(()=>{this.sizeTrigger();let e=this.columns.signal();return e.reduce((t,n,s)=>{let r=n,a=r.getAttribute("size"),l=s===e.length-1;return a?`${t} ${a}`:r.classList.contains("sticky")||r.classList.contains("sticky-end")?`${t} min-content`:l?`${t} 1fr`:`${t} 1fr`},"")}),this.e=V(()=>{let e=this.sortByColumn();if(e===null)return this.#e()||(this.#n=this.data(),this.#e.set(!0)),this.dataChange.emit(structuredClone(this.#n));let t=e.startsWith("-")?e.slice(1):e,n=e.startsWith("-"),s=this.data().sort((r,a)=>{let l=r[t],d=a[t],u=0;return typeof l=="number"&&typeof d=="number"&&(u=l-d),l instanceof Date&&d instanceof Date&&(u=l.getTime()-d.getTime()),typeof l=="string"&&typeof d=="string"&&(u=l.localeCompare(d,void 0,{sensitivity:"base"})),n?-u:u});this.dataChange.emit(s)})}#t;#n;#e;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#i()}onResize(e){this.#i()}ngAfterViewInit(){queueMicrotask(()=>this.#i())}toggleSort(e){let t=this.sortByColumn(),n=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(n)}#i(){let e=this.#t.nativeElement,t=-1,n=-1,s=e.scrollWidth>e.clientWidth+Be;if(s){let a=e.scrollLeft<=Be;e.scrollWidth-(e.scrollLeft+e.clientWidth)<Be?t=1:a||(t=0)}this.scrollXState.set(t),this.canScrollX.set(s);let r=e.scrollHeight>e.clientHeight+Be;if(r){let a=e.scrollTop<=Be;e.scrollHeight-(e.scrollTop+e.clientHeight)<Be?n=1:a||(n=0)}this.scrollYState.set(n),this.canScrollY.set(r)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-table"]],viewQuery:function(t,n){t&1&&se(n.thead,Rs,5)(n.tbody,Ls,5),t&2&&ee(2)},hostVars:18,hostBindings:function(t,n){t&1&&M("scroll",function(){return n.onScroll()})("resize",function(r){return n.onResize(r)},hi),t&2&&(L(n.hostClasses()),te("grid-template-columns",n.columnSizes()),R("resizing",n.resizing())("can-scroll-x",n.canScrollX())("can-scroll-y",n.canScrollY())("scrolled-x",n.scrollXState()>=0)("scrolled-x-end",n.scrollXState()===1)("scrolled-y",n.scrollYState()>=0)("scrolled-y-end",n.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"],color:[1,"color"],variant:[1,"variant"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Hs,decls:11,vars:2,consts:[["thead",""],["tbody",""],[1,"actionbar"],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,n){t&1&&(P(Bs),f(0,"div",2),g(1),m(),b(2,js,1,0,"sh-progress-bar",3),f(3,"thead",null,0),g(5,1),g(6,2),m(),f(7,"tbody",null,1),g(9,3),m(),b(10,zs,2,0,"div",4)),t&2&&(p(2),S(n.loading()?2:-1),p(8),S(n.loading()?-1:10))},dependencies:[dr],encapsulation:2,changeDetection:0})}}return i})(),Ma=(()=>{class i extends ei{constructor(){super("[value], [tab], button, a","active"),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=c(null),this.variant=c(null),this.hostClasses=K("tabs",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(t,n){t&2&&(L(n.hostClasses()),te("--tabs-id",n.id))},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[W],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();var Ea=(()=>{class i{constructor(){this.disableToggle=c(!1),this.isActive=j(),this.#t=V(()=>{this.disableToggle()&&this.isActive.set(!0)}),this.color=c(null),this.variant=c(null),this.hostClasses=K("card",{color:this.color,variant:this.variant})}#t;toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-toggle-card"]],hostVars:4,hostBindings:function(t,n){t&2&&(L(n.hostClasses()),R("active",n.isActive()))},inputs:{disableToggle:[1,"disableToggle"],isActive:[1,"isActive"],color:[1,"color"],variant:[1,"variant"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Ws,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(t,n){t&1&&(P($s),f(0,"h3",0),M("click",function(){return!n.disableToggle()&&n.toggle()}),g(1,0,null,Gs,1,0),b(3,qs,2,0,"sh-icon",1),m(),f(4,"div",2)(5,"div",3),g(6,1),m()()),t&2&&(p(3),S(n.disableToggle()?-1:3))},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})(),xa=(()=>{class i{constructor(){this._elementRef=C(N),this.internalInput=Q("internalInput"),this.projectedInputs=rt("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=j(!1),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=K("toggle",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-toggle"]],viewQuery:function(t,n){t&1&&se(n.internalInput,Jt,5),t&2&&ee()},hostVars:3,hostBindings:function(t,n){t&1&&M("keydown.enter",function(r){return n.onEnter(r)}),t&2&&(Y("disabled",n.disabled()?"":null),L(n.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:oe,decls:4,vars:1,consts:[["internalInput",""],[1,"box"],[1,"knob"],["type","checkbox",1,"internal-input",3,"checked"],["type","checkbox",1,"internal-input",3,"change","checked"]],template:function(t,n){t&1&&(P(),I(0,"div",1),Me(1,"div",2),F(),g(2),b(3,Us,2,2,"input",3)),t&2&&(p(3),S(n.projectedInputs().length===0&&!n.noInternalInput()?3:-1))},encapsulation:2,changeDetection:0})}}return i})();var wa=(()=>{class i{constructor(){this.filesOver=v(!1),this.filesDropped=ce()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=B({type:i,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(t,n){t&1&&M("dragover",function(r){return n.onDragOver(r)})("dragleave",function(r){return n.onDragLeave(r)})("drop",function(r){return n.ondrop(r)}),t&2&&R("filesover",n.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return i})();var fr=(()=>{class i{constructor(){this.positionAnchorName=c.required(),this.anchorEl=c.required(),this.isOpen=c(!1),this.content=c(),this.close=c(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=E(()=>this.content()instanceof ze),this.#t=C(be),this.#n=C(N),this.#e=C(ve),this.#i=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=v(!1),this.openEffect=V(()=>{if(this.isOpen())queueMicrotask(()=>{let e=this.#n.nativeElement;!e||!e.isConnected||(this.#i&&this.#i.abort(),this.#i=new AbortController,e.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#o(e).addEventListener("scroll",()=>this.calculateTooltipPosition(),{signal:this.#i?.signal,passive:!0}),window?.addEventListener("resize",()=>this.calculateTooltipPosition(),{signal:this.#i?.signal,passive:!0}),this.calculateTooltipPosition()}))});else{let e=this.#n.nativeElement;if(e)try{e.matches(":popover-open")&&e.hidePopover()}catch{}this.#i?.abort(),this.#i=null}}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let e=this.anchorEl().nativeElement.getBoundingClientRect(),t=this.#n.nativeElement,n=t.getBoundingClientRect();if(n.width===0&&n.height===0)return;let s=8,r=(w,x)=>({left:w.left+w.width/2-x.width/2,top:w.top-x.height-s}),T=[r,(w,x)=>({left:w.right-x.width,top:w.top-x.height-s}),(w,x)=>({left:w.left,top:w.top-x.height-s}),(w,x)=>({left:w.left+w.width/2-x.width/2,top:w.bottom+s}),(w,x)=>({left:w.right-x.width,top:w.bottom+s}),(w,x)=>({left:w.left,top:w.bottom+s})];for(let w of T){let x=w(e,n);if(this.#a(x,n)){this.#r(x,t),this.isBelow.set(x.top>e.top);return}}let $=this.#s(r(e,n),n);this.#r($,t),this.isBelow.set($.top>e.top)}}#t;#n;#e;#i;ngOnDestroy(){this.#i?.abort(),this.#i=null}#o(e){let t=["scroll","auto"],n=e.parentElement;for(;n;){if(t.indexOf(window?.getComputedStyle(n).overflowY)>-1&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return this.#t.documentElement}#r(e,t){this.#e.setStyle(t,"left",`${e.left}px`),this.#e.setStyle(t,"top",`${e.top}px`),this.#e.setStyle(t,"position","fixed"),this.#e.setStyle(t,"margin","0")}#a(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#s(e,t){return{left:Math.max(0,Math.min(e.left,window.innerWidth-t.width)),top:Math.max(0,Math.min(e.top,window.innerHeight-t.height))}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,n){t&2&&(Y("popover","manual"),te("position-anchor",n.positionAnchorName()),R("below",n.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(f(0,"div",0),b(1,Xs,1,4,"ng-container")(2,Qs,1,1),m()),t&2&&(p(),S(n.isTemplate()?1:2))},dependencies:[Lt],encapsulation:2})}}return i})(),z=null,Oa=(()=>{class i{constructor(){this.shTooltip=c.required(),this.#t=V(()=>{let e=this.shTooltip();ae(()=>{this.isOpen()&&z?.component===this&&z?.wrapperComponentRef&&(z.wrapperComponentRef.setInput("content",e),z.wrapperComponentRef.changeDetectorRef.detectChanges())})}),this.#n=C(N),this.#e=C(fi),this.#i=C(ci),this.debounceTimer=null,this.DEBOUNCE_DELAY=50,this.anchorName=`--${st()}`,this.isOpen=v(!1),this.destroyTimeout=null}#t;#n;#e;#i;onMouseEnter(e){e.stopPropagation(),z?.component.anchorName!==this.anchorName?this.cleanupTooltip():this.cancelCleanupTimer(),this.showTooltip()}onMouseLeave(e){e.stopPropagation(),this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null)}showTooltip(){if(z?.wrapperComponentRef||!this.shTooltip()){z?.component===this&&z?.wrapperComponentRef&&z.wrapperComponentRef.setInput("content",this.shTooltip());return}z={wrapperComponentRef:this.#e.createComponent(fr,{environmentInjector:this.#i}),component:this},z.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),z.wrapperComponentRef.setInput("anchorEl",this.#n),z.wrapperComponentRef.setInput("isOpen",this.isOpen),z.wrapperComponentRef.setInput("content",this.shTooltip()),z.wrapperComponentRef.setInput("close",()=>this.cleanupTooltip()),z.wrapperComponentRef.changeDetectorRef.detectChanges(),z.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",e=>{e.stopPropagation(),this.cancelCleanupTimer()}),z.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",e=>{e.stopPropagation(),this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){z?.wrapperComponentRef&&(z.component.cancelCleanupTimer(),z.component.isOpen.set(!1),z.wrapperComponentRef.location.nativeElement.hidePopover(),this.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{z?.wrapperComponentRef.destroy(),z=null})},this.DEBOUNCE_DELAY))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=B({type:i,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(t,n){t&1&&M("mouseenter",function(r){return n.onMouseEnter(r)})("mouseleave",function(r){return n.onMouseLeave(r)}),t&2&&(te("anchor-name",n.anchorName),R("active",n.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}})}}return i})();export{Ce as a,nn as b,Ti as c,Ci as d,Nr as e,Ir as f,wn as g,et as h,bt as i,kr as j,In as k,Fn as l,Rn as m,Bn as n,qi as o,$n as p,Gn as q,Fr as r,Pr as s,Rr as t,Zi as u,De as v,la as w,ca as x,Js as y,da as z,ua as A,ha as B,pa as C,er as D,tr as E,fa as F,rr as G,ii as H,ga as I,ma as J,va as K,dr as L,_a as M,ya as N,ur as O,Ca as P,Da as Q,ba as R,Sa as S,pr as T,Ma as U,Ea as V,xa as W,wa as X,Oa as Y};