@duplicati/ngclient 0.0.214 → 0.0.218

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 (116) hide show
  1. package/assets/sh-bold.woff2 +0 -0
  2. package/assets/sh.woff2 +0 -0
  3. package/{chunk-JMLM4A3C.js → chunk-2C3OMPC2.js} +1 -1
  4. package/{chunk-VCIINZCU.js → chunk-2LDEHODA.js} +1 -1
  5. package/{chunk-TZEOQBIX.js → chunk-3374ABNZ.js} +1 -1
  6. package/{chunk-QAQMMCTH.js → chunk-4KFQXVKU.js} +1 -1
  7. package/chunk-4U5P2NHK.js +1 -0
  8. package/{chunk-22YUDKKU.js → chunk-53YJLSUR.js} +1 -1
  9. package/{chunk-I625OICV.js → chunk-54IBJBVK.js} +1 -1
  10. package/{chunk-2NLWVJNK.js → chunk-5DB5LJ2V.js} +1 -1
  11. package/{chunk-VI7MBIGT.js → chunk-5Q47XWAA.js} +1 -1
  12. package/chunk-5QCIXYJ2.js +1 -0
  13. package/{chunk-35APLYI4.js → chunk-5TT43ERP.js} +1 -1
  14. package/{chunk-APAWDC4O.js → chunk-5VAN6GVG.js} +1 -1
  15. package/{chunk-3XCT4PYH.js → chunk-6HY2QKBL.js} +1 -1
  16. package/chunk-6LPGVWBH.js +1 -0
  17. package/{chunk-PBYZZEYM.js → chunk-6PPCACHR.js} +1 -1
  18. package/{chunk-AJZA5YWT.js → chunk-6XWKOOJR.js} +1 -1
  19. package/{chunk-BRL4YYWO.js → chunk-7BK2K5ML.js} +1 -1
  20. package/{chunk-U34FLIYL.js → chunk-7PBEL6UP.js} +1 -1
  21. package/{chunk-L2QOWZDR.js → chunk-AAUAZ76N.js} +1 -1
  22. package/{chunk-EQNDYV43.js → chunk-AC34YYIW.js} +1 -1
  23. package/{chunk-AMSFSVKQ.js → chunk-B7CN4JEV.js} +1 -1
  24. package/{chunk-YGHS3INE.js → chunk-B7PXB6LO.js} +1 -1
  25. package/{chunk-GE3DHZ5E.js → chunk-BOD6INK4.js} +1 -1
  26. package/{chunk-M5RTYP7N.js → chunk-C56RQYG4.js} +1 -1
  27. package/chunk-CL2S4OQ7.js +1 -0
  28. package/{chunk-QQLV7J6T.js → chunk-DJIBS7A6.js} +1 -1
  29. package/{chunk-S3FBC24H.js → chunk-DQISAVUL.js} +1 -1
  30. package/chunk-E3UAEGAI.js +1 -0
  31. package/{chunk-V7UJAXBT.js → chunk-EZZPO6ZZ.js} +1 -1
  32. package/{chunk-MRSBKQQM.js → chunk-FHH444ZI.js} +1 -1
  33. package/{chunk-KHZ5AXGT.js → chunk-G5IUH2UI.js} +1 -1
  34. package/{chunk-J5TWEZOP.js → chunk-GEATZGKK.js} +1 -1
  35. package/{chunk-BDQJFOCO.js → chunk-GIITUFAQ.js} +1 -1
  36. package/chunk-GNMIMW7D.js +1 -0
  37. package/{chunk-VDHWNNO7.js → chunk-GQWUTQIZ.js} +1 -1
  38. package/{chunk-WALKMFYR.js → chunk-HKQDPKTA.js} +1 -1
  39. package/{chunk-GCYBVLSX.js → chunk-HN6343SO.js} +1 -1
  40. package/{chunk-CYY7RVDE.js → chunk-HSAIFBZZ.js} +1 -1
  41. package/{chunk-DTIGWCAE.js → chunk-IFZC7RUJ.js} +1 -1
  42. package/{chunk-QRLREAIK.js → chunk-IHNPTBK2.js} +1 -1
  43. package/{chunk-OO32MPRQ.js → chunk-IM6CS76E.js} +1 -1
  44. package/chunk-J6OYVDRR.js +1 -0
  45. package/{chunk-CW43F6WE.js → chunk-JJ5XEJ75.js} +1 -1
  46. package/{chunk-R5OX4JTJ.js → chunk-JNWS5H5A.js} +1 -1
  47. package/{chunk-22PELS6R.js → chunk-KDWGBKDI.js} +1 -1
  48. package/{chunk-B7CQXYTS.js → chunk-KQR3DEQ4.js} +1 -1
  49. package/{chunk-7WOSHJ7G.js → chunk-KTRNTLNO.js} +1 -1
  50. package/{chunk-5L2OOKRZ.js → chunk-LFWCPFV7.js} +1 -1
  51. package/{chunk-2E5PWPGZ.js → chunk-LRZXNEAQ.js} +1 -1
  52. package/{chunk-FSHBOASN.js → chunk-MI3BETEH.js} +1 -1
  53. package/{chunk-AZRNX5LU.js → chunk-MZAGGSG2.js} +1 -1
  54. package/chunk-NFXXT6A3.js +4 -0
  55. package/chunk-NPL5UWFD.js +1 -0
  56. package/{chunk-FMDSOHVR.js → chunk-NXEMSNQO.js} +1 -1
  57. package/{chunk-U3A754M6.js → chunk-O42PEGVX.js} +1 -1
  58. package/{chunk-R6TFME5I.js → chunk-O6ZQRIZA.js} +1 -1
  59. package/{chunk-XZNYCTQB.js → chunk-OMOPTBR2.js} +1 -1
  60. package/chunk-OW2XLFBF.js +1 -0
  61. package/{chunk-5FQ5SDPZ.js → chunk-OZDUAVJM.js} +1 -1
  62. package/{chunk-YMUS7QSB.js → chunk-PAXRIMTV.js} +1 -1
  63. package/{chunk-WIE7KXIC.js → chunk-PSISW3DT.js} +1 -1
  64. package/chunk-Q6A652RP.js +1 -0
  65. package/chunk-R3H3RDDJ.js +1 -0
  66. package/chunk-RLWCEUKT.js +1 -0
  67. package/{chunk-T2X5J6MQ.js → chunk-RXWMHEJY.js} +1 -1
  68. package/{chunk-HHDCI6IF.js → chunk-RZTMWVAA.js} +1 -1
  69. package/chunk-S235GCI6.js +1 -0
  70. package/{chunk-7FDLOZXV.js → chunk-S36F6ZJZ.js} +1 -1
  71. package/{chunk-ADB5QRUO.js → chunk-SDKAVOP6.js} +1 -1
  72. package/{chunk-OBF6ZSYT.js → chunk-SRILTSQM.js} +1 -1
  73. package/{chunk-VGBTP4QP.js → chunk-SXNQOAUJ.js} +1 -1
  74. package/{chunk-ZK3S23CJ.js → chunk-TMS3I5A2.js} +1 -1
  75. package/{chunk-GO22QPW4.js → chunk-TSDCJYMP.js} +1 -1
  76. package/{chunk-HO6FQWDR.js → chunk-UOTOQXS3.js} +1 -1
  77. package/{chunk-XAYG4QT7.js → chunk-UT42UQWA.js} +1 -1
  78. package/chunk-V42HCQ3A.js +1 -0
  79. package/chunk-V4NNTODH.js +1 -0
  80. package/{chunk-NBKLLQQO.js → chunk-V6U75SVY.js} +1 -1
  81. package/{chunk-KHFOQETZ.js → chunk-VJ3PK33N.js} +1 -1
  82. package/{chunk-XCVBN7EK.js → chunk-VOHSRCTH.js} +1 -1
  83. package/{chunk-7PYUNUEY.js → chunk-X5TRWBWL.js} +1 -1
  84. package/{chunk-EGTYGTQI.js → chunk-X6S2TQ5D.js} +1 -1
  85. package/{chunk-J6WVOYQ6.js → chunk-XZS6HRVR.js} +1 -1
  86. package/{chunk-LU7TIW3P.js → chunk-Y3LMRA5G.js} +1 -1
  87. package/{chunk-3PUCEFO5.js → chunk-Y4TMGQ3H.js} +1 -1
  88. package/{chunk-CQYKOCGO.js → chunk-Y6WYFFBC.js} +1 -1
  89. package/{chunk-OZEGNE5W.js → chunk-YEMKFHRS.js} +1 -1
  90. package/{chunk-Y3YNTMT5.js → chunk-YXRM2NKT.js} +1 -1
  91. package/chunk-ZJAQQH7X.js +1 -0
  92. package/chunk-ZXAPMIF3.js +1 -0
  93. package/index.html +2 -2
  94. package/{main-7HIGYDD6.js → main-57XFFSWO.js} +1 -1
  95. package/package.json +1 -1
  96. package/ship-ui-assets/mcp/components.json +3079 -2415
  97. package/styles-VWVVVLVS.css +1 -0
  98. package/chunk-522J6R6I.js +0 -1
  99. package/chunk-7ED2GUWQ.js +0 -1
  100. package/chunk-7YSKL3IG.js +0 -1
  101. package/chunk-B3T2NEGO.js +0 -1
  102. package/chunk-BME6TJIR.js +0 -1
  103. package/chunk-BP66ERTI.js +0 -1
  104. package/chunk-C2NKW2QW.js +0 -1
  105. package/chunk-EU6N52DH.js +0 -1
  106. package/chunk-HYYZB4AS.js +0 -1
  107. package/chunk-IJHPC43D.js +0 -1
  108. package/chunk-LOFKRPRH.js +0 -1
  109. package/chunk-NCXKMSRH.js +0 -1
  110. package/chunk-QUXPHHDZ.js +0 -1
  111. package/chunk-TJNL6F5S.js +0 -1
  112. package/chunk-UH2E7MMT.js +0 -4
  113. package/chunk-Y3BYCXUX.js +0 -1
  114. package/chunk-YPWKWP5H.js +0 -1
  115. package/chunk-ZXQSQRKN.js +0 -1
  116. package/styles-43GHZ572.css +0 -1
package/chunk-NCXKMSRH.js DELETED
@@ -1 +0,0 @@
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};
package/chunk-QUXPHHDZ.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-MRSBKQQM.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";export{a as BytesPipe};
package/chunk-TJNL6F5S.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-KHFOQETZ.js";import"./chunk-22PELS6R.js";import"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";export{a as DurationFormatPipe};