homebridge-config-ui-x 5.0.0-beta.99 → 5.0.0

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 (205) hide show
  1. package/CHANGELOG.md +122 -5
  2. package/config.schema.json +1 -1
  3. package/dist/core/auth/auth.controller.d.ts +4 -0
  4. package/dist/core/config/config.service.d.ts +8 -0
  5. package/dist/core/config/config.service.js +2 -0
  6. package/dist/core/config/config.service.js.map +1 -1
  7. package/dist/main.js +1 -0
  8. package/dist/main.js.map +1 -1
  9. package/dist/modules/backup/backup.controller.d.ts +1 -0
  10. package/dist/modules/backup/backup.controller.js +11 -0
  11. package/dist/modules/backup/backup.controller.js.map +1 -1
  12. package/dist/modules/backup/backup.service.d.ts +1 -0
  13. package/dist/modules/backup/backup.service.js +19 -5
  14. package/dist/modules/backup/backup.service.js.map +1 -1
  15. package/dist/modules/config-editor/config-editor.service.js +2 -1
  16. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  17. package/dist/modules/platform-tools/docker/docker.service.js +8 -2
  18. package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
  19. package/dist/modules/plugins/plugins.controller.d.ts +2 -0
  20. package/dist/modules/plugins/plugins.controller.js +1 -1
  21. package/dist/modules/plugins/plugins.controller.js.map +1 -1
  22. package/dist/modules/plugins/plugins.service.d.ts +3 -0
  23. package/dist/modules/plugins/plugins.service.js +81 -47
  24. package/dist/modules/plugins/plugins.service.js.map +1 -1
  25. package/dist/modules/server/server.controller.d.ts +5 -0
  26. package/dist/modules/server/server.controller.js +25 -0
  27. package/dist/modules/server/server.controller.js.map +1 -1
  28. package/dist/modules/server/server.service.d.ts +9 -1
  29. package/dist/modules/server/server.service.js +97 -21
  30. package/dist/modules/server/server.service.js.map +1 -1
  31. package/dist/modules/status/status.gateway.d.ts +6 -0
  32. package/dist/modules/status/status.gateway.js +14 -0
  33. package/dist/modules/status/status.gateway.js.map +1 -1
  34. package/dist/modules/status/status.service.d.ts +26 -0
  35. package/dist/modules/status/status.service.js +112 -0
  36. package/dist/modules/status/status.service.js.map +1 -1
  37. package/package.json +11 -11
  38. package/public/3rdpartylicenses.txt +214 -187
  39. package/public/assets/hap-icons/{airpurifier.svg → air-purifier.svg} +11 -11
  40. package/public/assets/hap-icons/doorbell.svg +17 -0
  41. package/public/assets/hap-icons/filter-maintenance.svg +26 -0
  42. package/public/assets/hap-icons/microphone.svg +22 -0
  43. package/public/assets/hap-icons/security-system-active.svg +103 -0
  44. package/public/assets/hap-icons/{smokesensor.svg → smoke-sensor.svg} +15 -2
  45. package/public/assets/hap-icons/speaker.svg +27 -12
  46. package/public/assets/hap-icons/vacuum-off.svg +34 -0
  47. package/public/assets/hap-icons/vacuum-on.svg +73 -0
  48. package/public/chunk-2RH7XRJB.js +1 -0
  49. package/public/chunk-2V6GVJIK.js +1 -0
  50. package/public/chunk-3UCLNJIE.js +1 -0
  51. package/public/chunk-4J2HTHMW.js +1 -0
  52. package/public/chunk-4NQG4OIB.js +1 -0
  53. package/public/chunk-52HWZQJT.js +1 -0
  54. package/public/chunk-56R3JRVX.js +1 -0
  55. package/public/chunk-65A2CLMB.js +1 -0
  56. package/public/chunk-6LPAR6QB.js +1 -0
  57. package/public/chunk-6VMMFEEB.js +1 -0
  58. package/public/chunk-7RQP64IZ.js +12 -0
  59. package/public/{chunk-GMY5QOXR.js → chunk-BG5MCCBU.js} +6 -6
  60. package/public/chunk-C3HWKB2Q.js +5 -0
  61. package/public/{chunk-YJXHSHNO.js → chunk-CEVLFYVV.js} +1 -1
  62. package/public/chunk-CHYWVK3W.js +1 -0
  63. package/public/chunk-CR7NFTHI.js +4 -0
  64. package/public/{chunk-BRW7C4BZ.js → chunk-CXP6VKNZ.js} +1 -1
  65. package/public/chunk-CY3O5ACI.js +1 -0
  66. package/public/chunk-D5MSFLIQ.js +1 -0
  67. package/public/chunk-DVQU3KHF.js +1 -0
  68. package/public/chunk-EGPBTPS6.js +1 -0
  69. package/public/chunk-EI76KND2.js +2 -0
  70. package/public/chunk-EP7NNPU2.js +1 -0
  71. package/public/chunk-ESCMWFTR.js +1 -0
  72. package/public/chunk-FDBWBMB3.js +1 -0
  73. package/public/chunk-FO44GZVZ.js +5 -0
  74. package/public/chunk-FWNSHSUQ.js +1 -0
  75. package/public/chunk-G4DWZG7U.js +1 -0
  76. package/public/{chunk-2G7GNBIF.js → chunk-GEIS2BWE.js} +1 -1
  77. package/public/chunk-GPZM245P.js +1 -0
  78. package/public/chunk-H2VHR6F4.js +1 -0
  79. package/public/chunk-H5PKL3FP.js +2 -0
  80. package/public/chunk-HFVA7EOG.js +23 -0
  81. package/public/chunk-HU7QTSUZ.js +1 -0
  82. package/public/{chunk-IOWBVW62.js → chunk-HUAADM2I.js} +1 -1
  83. package/public/{chunk-WAA5KWIN.js → chunk-J7Q5BUJW.js} +1 -1
  84. package/public/chunk-KDVPFRHN.js +1 -0
  85. package/public/chunk-KOHQYRVP.js +20 -0
  86. package/public/chunk-MWGI7ZLY.js +28 -0
  87. package/public/chunk-NEZ6TZYE.js +1 -0
  88. package/public/chunk-OLDRUBZS.js +1 -0
  89. package/public/chunk-OYH4UIAH.js +1 -0
  90. package/public/chunk-Q4CZ7LVK.js +2 -0
  91. package/public/{chunk-RNHMRKPJ.js → chunk-QIOCGI3G.js} +5 -5
  92. package/public/chunk-QTTC6A7P.js +1 -0
  93. package/public/chunk-QUD3RGWL.js +1 -0
  94. package/public/{chunk-QMB5XE4Y.js → chunk-R3563DDE.js} +1 -1
  95. package/public/{chunk-B3LZRDAG.js → chunk-S42WFQ2L.js} +1 -1
  96. package/public/{chunk-UVOJ3BF7.js → chunk-THGDS273.js} +1 -1
  97. package/public/chunk-TSAWRS7P.js +8 -0
  98. package/public/chunk-U4GBERFR.js +1 -0
  99. package/public/chunk-UB4DU2JC.js +1 -0
  100. package/public/chunk-UJNEXGXC.js +1 -0
  101. package/public/chunk-ULJPS3WS.js +7 -0
  102. package/public/{chunk-XHI7IAUN.js → chunk-W4PQWIYG.js} +1 -1
  103. package/public/chunk-W542IB6H.js +1 -0
  104. package/public/{chunk-UTAVUGTT.js → chunk-WDFAWIMZ.js} +7 -7
  105. package/public/chunk-WF776GWR.js +1 -0
  106. package/public/chunk-WFYBML4S.js +1 -0
  107. package/public/chunk-XFFCMC6L.js +4 -0
  108. package/public/chunk-XIYHNDRN.js +1 -0
  109. package/public/chunk-YJ2Q2RAD.js +1 -0
  110. package/public/chunk-YYDFCQK6.js +3 -0
  111. package/public/chunk-YZN5MPV3.js +1 -0
  112. package/public/chunk-ZR6LFO7Q.js +1 -0
  113. package/public/index.html +2 -2
  114. package/public/main-I6NBG3JJ.js +1 -0
  115. package/public/{styles-PKR3EGHP.css → styles-ZKWHTEN5.css} +1 -1
  116. package/scripts/upgrade-install-plugin.sh +6 -1
  117. package/public/chunk-2CDSAOHD.js +0 -1
  118. package/public/chunk-2OUR67N4.js +0 -1
  119. package/public/chunk-3CYHPVRJ.js +0 -1
  120. package/public/chunk-3DF7CHZW.js +0 -1
  121. package/public/chunk-5F327T7H.js +0 -1
  122. package/public/chunk-6CNQKPV4.js +0 -1
  123. package/public/chunk-AF2VUIEE.js +0 -1
  124. package/public/chunk-ALG7CIS3.js +0 -5
  125. package/public/chunk-BGDBPFZN.js +0 -1
  126. package/public/chunk-BIRWL4X3.js +0 -1
  127. package/public/chunk-BMCQHGMB.js +0 -1
  128. package/public/chunk-BSGFKU4J.js +0 -4
  129. package/public/chunk-C6A3CFIK.js +0 -1
  130. package/public/chunk-C6LXQBT3.js +0 -1
  131. package/public/chunk-CG7LPZUJ.js +0 -1
  132. package/public/chunk-CLQDCNVA.js +0 -2
  133. package/public/chunk-CMO7ESK6.js +0 -8
  134. package/public/chunk-DDFZVHUO.js +0 -1
  135. package/public/chunk-DGIKPYZP.js +0 -8
  136. package/public/chunk-DNW5N3YO.js +0 -1
  137. package/public/chunk-EGELGD5H.js +0 -1
  138. package/public/chunk-EJBJOBK4.js +0 -1
  139. package/public/chunk-F4KGCHEZ.js +0 -1
  140. package/public/chunk-FATD52DV.js +0 -1
  141. package/public/chunk-FXS45ML3.js +0 -1
  142. package/public/chunk-G6KG4MKA.js +0 -1
  143. package/public/chunk-GTAHH5HN.js +0 -1
  144. package/public/chunk-HLTIIGIP.js +0 -1
  145. package/public/chunk-HLTWQSH5.js +0 -1
  146. package/public/chunk-IORHLUIJ.js +0 -1
  147. package/public/chunk-JADR4A63.js +0 -1
  148. package/public/chunk-KAUSPTCQ.js +0 -23
  149. package/public/chunk-KCQQTZKO.js +0 -5
  150. package/public/chunk-L3HD45SY.js +0 -6
  151. package/public/chunk-LDLWF7GI.js +0 -1
  152. package/public/chunk-LHL5TI6S.js +0 -1
  153. package/public/chunk-LX47K6J2.js +0 -1
  154. package/public/chunk-M2H64FFG.js +0 -1
  155. package/public/chunk-OAQSXFHE.js +0 -1
  156. package/public/chunk-ODU3K7H7.js +0 -1
  157. package/public/chunk-P3KVHPZJ.js +0 -1
  158. package/public/chunk-P64V4GHS.js +0 -29
  159. package/public/chunk-PI76B7WZ.js +0 -1
  160. package/public/chunk-PNSPASX3.js +0 -1
  161. package/public/chunk-PODF4FUD.js +0 -1
  162. package/public/chunk-PUIKXI6O.js +0 -1
  163. package/public/chunk-QIH36FRX.js +0 -1
  164. package/public/chunk-QMAGO5VD.js +0 -20
  165. package/public/chunk-R3VPSO5X.js +0 -7
  166. package/public/chunk-RFFIRBUY.js +0 -1
  167. package/public/chunk-RLGSRK2P.js +0 -1
  168. package/public/chunk-RN4NDBWE.js +0 -1
  169. package/public/chunk-U2HZ2JFO.js +0 -1
  170. package/public/chunk-VA5XNGEK.js +0 -1
  171. package/public/chunk-VHTQTL2S.js +0 -1
  172. package/public/chunk-VJEUBTTK.js +0 -1
  173. package/public/chunk-VLX322GM.js +0 -1
  174. package/public/chunk-VUYAK52W.js +0 -2
  175. package/public/chunk-X6PEPNG4.js +0 -1
  176. package/public/chunk-XP6B4WXR.js +0 -1
  177. package/public/chunk-XUH357B7.js +0 -1
  178. package/public/chunk-Y4QFUO3K.js +0 -1
  179. package/public/chunk-YZCEDH6X.js +0 -1
  180. package/public/chunk-YZWIZGAQ.js +0 -1
  181. package/public/chunk-ZF22CBM2.js +0 -1
  182. package/public/chunk-ZIBK7SYP.js +0 -1
  183. package/public/chunk-ZLCELPBH.js +0 -1
  184. package/public/chunk-ZMYR3JWC.js +0 -1
  185. package/public/main-AS7ULDAC.js +0 -1
  186. /package/public/assets/hap-icons/{airquality.svg → air-quality-sensor.svg} +0 -0
  187. /package/public/assets/hap-icons/{co2-sensor.svg → carbon-dioxide-sensor.svg} +0 -0
  188. /package/public/assets/hap-icons/{co-sensor.svg → carbon-monoxide-sensor.svg} +0 -0
  189. /package/public/assets/hap-icons/{contactsensor-closed.svg → contact-sensor-closed.svg} +0 -0
  190. /package/public/assets/hap-icons/{contactsensor-open.svg → contact-sensor-open.svg} +0 -0
  191. /package/public/assets/hap-icons/{garagedoor.svg → garage-door.svg} +0 -0
  192. /package/public/assets/hap-icons/{humidity.svg → humidity-sensor.svg} +0 -0
  193. /package/public/assets/hap-icons/{leaksensor.svg → leak-sensor.svg} +0 -0
  194. /package/public/assets/hap-icons/{lightbulb.svg → light-bulb.svg} +0 -0
  195. /package/public/assets/hap-icons/{light.svg → light-sensor.svg} +0 -0
  196. /package/public/assets/hap-icons/{motionsensor.svg → motion-sensor.svg} +0 -0
  197. /package/public/assets/hap-icons/{occupancysensor.svg → occupancy-sensor.svg} +0 -0
  198. /package/public/assets/hap-icons/{securitysystem-off.svg → security-system-off.svg} +0 -0
  199. /package/public/assets/hap-icons/{securitysystem-active.svg → security-system-triggered.svg} +0 -0
  200. /package/public/assets/hap-icons/{statelessprogrammableswitch.svg → stateless-programmable-switch.svg} +0 -0
  201. /package/public/assets/hap-icons/{valve-waterfaucet.svg → valve-faucet.svg} +0 -0
  202. /package/public/assets/hap-icons/{valve-showerhead.svg → valve-shower-head.svg} +0 -0
  203. /package/public/assets/hap-icons/{windowcovering-closed.svg → window-covering-closed.svg} +0 -0
  204. /package/public/assets/hap-icons/{windowcovering-open.svg → window-covering-open.svg} +0 -0
  205. /package/public/{polyfills-GCAZ7JAV.js → polyfills-WE4HA5DL.js} +0 -0
@@ -8,7 +8,12 @@ TARGET_PATH="$3"
8
8
 
9
9
  TARGET_PLUGIN_BUNDLE_NAME="${TARGET_PLUGIN/\//@}-${TARGET_VERSION}"
10
10
 
11
- REPO_BASE_URL="https://github.com/homebridge/plugins/releases/download/v1.0.0"
11
+ REPO_VERSION="v1.0.0"
12
+ if [[ "${TARGET_PLUGIN_BUNDLE_NAME:0:1}" == "@" ]]; then
13
+ REPO_VERSION="v1.0.0-1"
14
+ fi
15
+
16
+ REPO_BASE_URL="https://github.com/homebridge/plugins/releases/download/${REPO_VERSION}"
12
17
 
13
18
  echo "Target Version: $TARGET_VERSION"
14
19
  echo "Target Path: $TARGET_PATH"
@@ -1 +0,0 @@
1
- import{e as a}from"./chunk-HLTIIGIP.js";import"./chunk-RNHMRKPJ.js";import"./chunk-ALG7CIS3.js";import"./chunk-VLX322GM.js";import"./chunk-2G7GNBIF.js";import"./chunk-B3LZRDAG.js";import"./chunk-XHI7IAUN.js";import"./chunk-XUH357B7.js";import"./chunk-VUYAK52W.js";import"./chunk-QMB5XE4Y.js";import"./chunk-R3VPSO5X.js";export{a as UsersComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-AF2VUIEE.js";import"./chunk-XUH357B7.js";import"./chunk-VUYAK52W.js";import"./chunk-QMB5XE4Y.js";import"./chunk-R3VPSO5X.js";export{a as ShutdownLinuxComponent};
@@ -1 +0,0 @@
1
- import{g as i}from"./chunk-2G7GNBIF.js";import"./chunk-VUYAK52W.js";import{ha as t,kd as l,mb as e}from"./chunk-R3VPSO5X.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",loadChildren:()=>import("./chunk-GTAHH5HN.js").then(o=>o.DockerModule)},{path:"linux",loadChildren:()=>import("./chunk-PI76B7WZ.js").then(o=>o.LinuxModule)},{path:"terminal",loadChildren:()=>import("./chunk-EGELGD5H.js").then(o=>o.TerminalModule)}],n=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(d),i]})}return o})();var s=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[l,n]})}return o})();export{s as PlatformToolsModule};
@@ -1 +0,0 @@
1
- import{a as l,b as a,c as u,d as C,e as g,f as M,g as R}from"./chunk-RN4NDBWE.js";import{a as c}from"./chunk-HLTWQSH5.js";import{a as d}from"./chunk-G6KG4MKA.js";import"./chunk-CG7LPZUJ.js";import"./chunk-GMY5QOXR.js";import{q as s}from"./chunk-ALG7CIS3.js";import{A as p,z as n}from"./chunk-VLX322GM.js";import{g as m}from"./chunk-2G7GNBIF.js";import"./chunk-YJXHSHNO.js";import"./chunk-B3LZRDAG.js";import"./chunk-XHI7IAUN.js";import"./chunk-XUH357B7.js";import"./chunk-VUYAK52W.js";import{c as f}from"./chunk-QMB5XE4Y.js";import{ha as t,kd as i,mb as e}from"./chunk-R3VPSO5X.js";var S=[{path:"",loadComponent:()=>import("./chunk-LDLWF7GI.js").then(o=>o.SettingsComponent),canActivate:[c]}],A=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[m.forChild(S),m]})}return o})();var P=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i,n,p,f,s,A,R,l,C,u,d,g,a,M]})}return o})();export{P as SettingsModule};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-VA5XNGEK.js";import"./chunk-2G7GNBIF.js";import"./chunk-YJXHSHNO.js";import"./chunk-B3LZRDAG.js";import"./chunk-XHI7IAUN.js";import"./chunk-XUH357B7.js";import"./chunk-VUYAK52W.js";import"./chunk-QMB5XE4Y.js";import"./chunk-R3VPSO5X.js";export{a as ContainerRestartComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-U2HZ2JFO.js";import{a as f}from"./chunk-CLQDCNVA.js";import{q as u}from"./chunk-ALG7CIS3.js";import{A as p,z as n}from"./chunk-VLX322GM.js";import{g as i}from"./chunk-2G7GNBIF.js";import"./chunk-YJXHSHNO.js";import"./chunk-B3LZRDAG.js";import"./chunk-XHI7IAUN.js";import"./chunk-XUH357B7.js";import"./chunk-VUYAK52W.js";import{c as d}from"./chunk-QMB5XE4Y.js";import{ha as t,kd as m,mb as r}from"./chunk-R3VPSO5X.js";var M=[{path:"",loadComponent:()=>import("./chunk-P3KVHPZJ.js").then(o=>o.SetupWizardComponent)}],l=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(M),i]})}return o})();var R=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({providers:[a],imports:[m,n,p,d,u,l,f]})}return o})();export{R as SetupWizardModule};
@@ -1 +0,0 @@
1
- import{k as w,n as S}from"./chunk-XUH357B7.js";import{a as _,b as h}from"./chunk-QMB5XE4Y.js";import{$a as e,Ac as s,Bc as m,Hb as d,Ib as c,Ob as n,Pb as i,Qb as u,Yb as v,jc as o,kc as a,la as p,lb as f}from"./chunk-R3VPSO5X.js";function y(t,C){t&1&&(n(0,"p",7),o(1),s(2,"translate"),i()),t&2&&(e(),a(m(2,1,"platform.linux.server_will_power_down")))}function g(t,C){if(t&1&&(n(0,"div",8),o(1),i()),t&2){let r=v();e(),a(r.error)}}var B=(()=>{class t{$api=p(S);$toastr=p(w);$translate=p(_);error=!1;constructor(){}ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(l){return new(l||t)};static \u0275cmp=f({type:t,selectors:[["ng-component"]],decls:13,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"grey-text"],[1,"alert","alert-error","my-4"]],template:function(l,x){l&1&&(n(0,"div",0)(1,"h3",1),o(2),s(3,"translate"),i()(),n(4,"div",2)(5,"div",3),u(6,"i",4),i(),n(7,"div",5)(8,"h4",6),o(9),s(10,"translate"),i(),d(11,y,3,3,"p",7),d(12,g,2,1,"div",8),i()()),l&2&&(e(2),a(m(3,4,"menu.restart.title")),e(7),a(m(10,6,"platform.linux.shutting_down_server")),e(2),c(x.error?-1:11),e(),c(x.error?12:-1))},dependencies:[h],encapsulation:2})}return t})();export{B as a};
@@ -1,5 +0,0 @@
1
- import{a as hn}from"./chunk-VLX322GM.js";import{$ as Qt,$a as Ve,$b as Ne,Ca as tt,Da as tn,Dc as dn,E as j,F as qi,Fa as J,Fb as ei,Gb as Se,H as Re,Hb as ti,I as Kt,Ib as ii,J as wt,Jb as ni,Lb as oi,Mb as si,Nb as It,Nc as Le,O as Ze,Ob as $e,P as Yi,Pb as je,Qb as ri,R as Zi,Rb as sn,Rc as Rt,Sb as rn,Tb as an,Ub as ai,Vb as le,Xb as ge,Yb as ve,Zb as nt,_b as ot,a as yt,aa as k,ac as li,b as Xt,ba as et,bb as Ct,bc as ce,ca as Ot,cc as de,fa as Jt,fc as ln,fd as un,ga as X,ha as T,hb as Yt,hc as W,ic as ye,ja as en,jc as ci,k as bt,kc as di,la as h,lb as me,mb as I,n as Q,nb as L,o as Ki,p as Qi,pa as qt,pb as nn,qb as on,r as Ye,ra as Dt,rb as Zt,sa as Et,tb as C,ua as ie,ub as ae,uc as ui,va as re,vb as Tt,wa as Mt,wb as it,x as Ie,yc as cn,z as Ji}from"./chunk-R3VPSO5X.js";function hi(t){t||(t=h(Mt));let e=new bt(s=>{if(t.destroyed){s.next();return}return t.onDestroy(s.next.bind(s))});return s=>s.pipe(k(e))}var R="top",H="bottom",B="right",N="left",St="auto",be=[R,H,B,N],ue="start",xe="end",pn="clippingParents",Nt="viewport",We="popper",fn="reference",pi=be.reduce(function(t,e){return t.concat([e+"-"+ue,e+"-"+xe])},[]),xt=[].concat(be,[St]).reduce(function(t,e){return t.concat([e,e+"-"+ue,e+"-"+xe])},[]),uo="beforeRead",ho="read",po="afterRead",fo="beforeMain",_o="main",mo="afterMain",go="beforeWrite",vo="write",yo="afterWrite",_n=[uo,ho,po,fo,_o,mo,go,vo,yo];function P(t){return t?(t.nodeName||"").toLowerCase():null}function O(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function q(t){var e=O(t).Element;return t instanceof e||t instanceof Element}function x(t){var e=O(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ze(t){if(typeof ShadowRoot>"u")return!1;var e=O(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function bo(t){var e=t.state;Object.keys(e.elements).forEach(function(s){var i=e.styles[s]||{},n=e.attributes[s]||{},o=e.elements[s];!x(o)||!P(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(a){var r=n[a];r===!1?o.removeAttribute(a):o.setAttribute(a,r===!0?"":r)}))})}function wo(t){var e=t.state,s={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,s.popper),e.styles=s,e.elements.arrow&&Object.assign(e.elements.arrow.style,s.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:s[i]),r=a.reduce(function(l,d){return l[d]="",l},{});!x(n)||!P(n)||(Object.assign(n.style,r),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}var mn={name:"applyStyles",enabled:!0,phase:"write",fn:bo,effect:wo,requires:["computeStyles"]};function A(t){return t.split("-")[0]}var ne=Math.max,Fe=Math.min,he=Math.round;function Xe(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function st(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function Y(t,e,s){e===void 0&&(e=!1),s===void 0&&(s=!1);var i=t.getBoundingClientRect(),n=1,o=1;e&&x(t)&&(n=t.offsetWidth>0&&he(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&he(i.height)/t.offsetHeight||1);var a=q(t)?O(t):window,r=a.visualViewport,l=!st()&&s,d=(i.left+(l&&r?r.offsetLeft:0))/n,c=(i.top+(l&&r?r.offsetTop:0))/o,f=i.width/n,p=i.height/o;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function ke(t){var e=Y(t),s=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-s)<=1&&(s=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:i}}function rt(t,e){var s=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(s&&ze(s)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function z(t){return O(t).getComputedStyle(t)}function fi(t){return["table","td","th"].indexOf(P(t))>=0}function U(t){return((q(t)?t.ownerDocument:t.document)||window.document).documentElement}function pe(t){return P(t)==="html"?t:t.assignedSlot||t.parentNode||(ze(t)?t.host:null)||U(t)}function gn(t){return!x(t)||z(t).position==="fixed"?null:t.offsetParent}function Oo(t){var e=/firefox/i.test(Xe()),s=/Trident/i.test(Xe());if(s&&x(t)){var i=z(t);if(i.position==="fixed")return null}var n=pe(t);for(ze(n)&&(n=n.host);x(n)&&["html","body"].indexOf(P(n))<0;){var o=z(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function oe(t){for(var e=O(t),s=gn(t);s&&fi(s)&&z(s).position==="static";)s=gn(s);return s&&(P(s)==="html"||P(s)==="body"&&z(s).position==="static")?e:s||Oo(t)||e}function Be(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Pe(t,e,s){return ne(t,Fe(e,s))}function vn(t,e,s){var i=Pe(t,e,s);return i>s?s:i}function at(){return{top:0,right:0,bottom:0,left:0}}function lt(t){return Object.assign({},at(),t)}function ct(t,e){return e.reduce(function(s,i){return s[i]=t,s},{})}var Do=function(e,s){return e=typeof e=="function"?e(Object.assign({},s.rects,{placement:s.placement})):e,lt(typeof e!="number"?e:ct(e,be))};function Eo(t){var e,s=t.state,i=t.name,n=t.options,o=s.elements.arrow,a=s.modifiersData.popperOffsets,r=A(s.placement),l=Be(r),d=[N,B].indexOf(r)>=0,c=d?"height":"width";if(!(!o||!a)){var f=Do(n.padding,s),p=ke(o),u=l==="y"?R:N,m=l==="y"?H:B,v=s.rects.reference[c]+s.rects.reference[l]-a[l]-s.rects.popper[c],g=a[l]-s.rects.reference[l],w=oe(o),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,M=v/2-g/2,_=f[u],y=E-p[c]-f[m],b=E/2-p[c]/2+M,D=Pe(_,b,y),G=l;s.modifiersData[i]=(e={},e[G]=D,e.centerOffset=D-b,e)}}function Mo(t){var e=t.state,s=t.options,i=s.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||rt(e.elements.popper,n)&&(e.elements.arrow=n))}var _i={name:"arrow",enabled:!0,phase:"main",fn:Eo,effect:Mo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var Co={top:"auto",right:"auto",bottom:"auto",left:"auto"};function To(t,e){var s=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:he(s*n)/n||0,y:he(i*n)/n||0}}function yn(t){var e,s=t.popper,i=t.popperRect,n=t.placement,o=t.variation,a=t.offsets,r=t.position,l=t.gpuAcceleration,d=t.adaptive,c=t.roundOffsets,f=t.isFixed,p=a.x,u=p===void 0?0:p,m=a.y,v=m===void 0?0:m,g=typeof c=="function"?c({x:u,y:v}):{x:u,y:v};u=g.x,v=g.y;var w=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),M=N,_=R,y=window;if(d){var b=oe(s),D="clientHeight",G="clientWidth";if(b===O(s)&&(b=U(s),z(b).position!=="static"&&r==="absolute"&&(D="scrollHeight",G="scrollWidth")),b=b,n===R||(n===N||n===B)&&o===xe){_=H;var F=f&&b===y&&y.visualViewport?y.visualViewport.height:b[D];v-=F-i.height,v*=l?1:-1}if(n===N||(n===R||n===H)&&o===xe){M=B;var S=f&&b===y&&y.visualViewport?y.visualViewport.width:b[G];u-=S-i.width,u*=l?1:-1}}var V=Object.assign({position:r},d&&Co),ee=c===!0?To({x:u,y:v},O(s)):{x:u,y:v};if(u=ee.x,v=ee.y,l){var $;return Object.assign({},V,($={},$[_]=E?"0":"",$[M]=w?"0":"",$.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+v+"px)":"translate3d("+u+"px, "+v+"px, 0)",$))}return Object.assign({},V,(e={},e[_]=E?v+"px":"",e[M]=w?u+"px":"",e.transform="",e))}function Io(t){var e=t.state,s=t.options,i=s.gpuAcceleration,n=i===void 0?!0:i,o=s.adaptive,a=o===void 0?!0:o,r=s.roundOffsets,l=r===void 0?!0:r,d={placement:A(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,yn(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,yn(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var bn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Io,data:{}};var Ft={passive:!0};function Ro(t){var e=t.state,s=t.instance,i=t.options,n=i.scroll,o=n===void 0?!0:n,a=i.resize,r=a===void 0?!0:a,l=O(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(c){c.addEventListener("scroll",s.update,Ft)}),r&&l.addEventListener("resize",s.update,Ft),function(){o&&d.forEach(function(c){c.removeEventListener("scroll",s.update,Ft)}),r&&l.removeEventListener("resize",s.update,Ft)}}var wn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ro,data:{}};var So={left:"right",right:"left",bottom:"top",top:"bottom"};function Ke(t){return t.replace(/left|right|bottom|top/g,function(e){return So[e]})}var No={start:"end",end:"start"};function kt(t){return t.replace(/start|end/g,function(e){return No[e]})}function Ae(t){var e=O(t),s=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:s,scrollTop:i}}function Ge(t){return Y(U(t)).left+Ae(t).scrollLeft}function mi(t,e){var s=O(t),i=U(t),n=s.visualViewport,o=i.clientWidth,a=i.clientHeight,r=0,l=0;if(n){o=n.width,a=n.height;var d=st();(d||!d&&e==="fixed")&&(r=n.offsetLeft,l=n.offsetTop)}return{width:o,height:a,x:r+Ge(t),y:l}}function gi(t){var e,s=U(t),i=Ae(t),n=(e=t.ownerDocument)==null?void 0:e.body,o=ne(s.scrollWidth,s.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=ne(s.scrollHeight,s.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+Ge(t),l=-i.scrollTop;return z(n||s).direction==="rtl"&&(r+=ne(s.clientWidth,n?n.clientWidth:0)-o),{width:o,height:a,x:r,y:l}}function He(t){var e=z(t),s=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+n+i)}function Bt(t){return["html","body","#document"].indexOf(P(t))>=0?t.ownerDocument.body:x(t)&&He(t)?t:Bt(pe(t))}function we(t,e){var s;e===void 0&&(e=[]);var i=Bt(t),n=i===((s=t.ownerDocument)==null?void 0:s.body),o=O(i),a=n?[o].concat(o.visualViewport||[],He(i)?i:[]):i,r=e.concat(a);return n?r:r.concat(we(pe(a)))}function Qe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xo(t,e){var s=Y(t,!1,e==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}function On(t,e,s){return e===Nt?Qe(mi(t,s)):q(e)?xo(e,s):Qe(gi(U(t)))}function Fo(t){var e=we(pe(t)),s=["absolute","fixed"].indexOf(z(t).position)>=0,i=s&&x(t)?oe(t):t;return q(i)?e.filter(function(n){return q(n)&&rt(n,i)&&P(n)!=="body"}):[]}function vi(t,e,s,i){var n=e==="clippingParents"?Fo(t):[].concat(e),o=[].concat(n,[s]),a=o[0],r=o.reduce(function(l,d){var c=On(t,d,i);return l.top=ne(c.top,l.top),l.right=Fe(c.right,l.right),l.bottom=Fe(c.bottom,l.bottom),l.left=ne(c.left,l.left),l},On(t,a,i));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function dt(t){var e=t.reference,s=t.element,i=t.placement,n=i?A(i):null,o=i?Z(i):null,a=e.x+e.width/2-s.width/2,r=e.y+e.height/2-s.height/2,l;switch(n){case R:l={x:a,y:e.y-s.height};break;case H:l={x:a,y:e.y+e.height};break;case B:l={x:e.x+e.width,y:r};break;case N:l={x:e.x-s.width,y:r};break;default:l={x:e.x,y:e.y}}var d=n?Be(n):null;if(d!=null){var c=d==="y"?"height":"width";switch(o){case ue:l[d]=l[d]-(e[c]/2-s[c]/2);break;case xe:l[d]=l[d]+(e[c]/2-s[c]/2);break;default:}}return l}function Oe(t,e){e===void 0&&(e={});var s=e,i=s.placement,n=i===void 0?t.placement:i,o=s.strategy,a=o===void 0?t.strategy:o,r=s.boundary,l=r===void 0?pn:r,d=s.rootBoundary,c=d===void 0?Nt:d,f=s.elementContext,p=f===void 0?We:f,u=s.altBoundary,m=u===void 0?!1:u,v=s.padding,g=v===void 0?0:v,w=lt(typeof g!="number"?g:ct(g,be)),E=p===We?fn:We,M=t.rects.popper,_=t.elements[m?E:p],y=vi(q(_)?_:_.contextElement||U(t.elements.popper),l,c,a),b=Y(t.elements.reference),D=dt({reference:b,element:M,strategy:"absolute",placement:n}),G=Qe(Object.assign({},M,D)),F=p===We?G:b,S={top:y.top-F.top+w.top,bottom:F.bottom-y.bottom+w.bottom,left:y.left-F.left+w.left,right:F.right-y.right+w.right},V=t.modifiersData.offset;if(p===We&&V){var ee=V[n];Object.keys(S).forEach(function($){var De=[B,H].indexOf($)>=0?1:-1,Ee=[R,H].indexOf($)>=0?"y":"x";S[$]+=ee[Ee]*De})}return S}function yi(t,e){e===void 0&&(e={});var s=e,i=s.placement,n=s.boundary,o=s.rootBoundary,a=s.padding,r=s.flipVariations,l=s.allowedAutoPlacements,d=l===void 0?xt:l,c=Z(i),f=c?r?pi:pi.filter(function(m){return Z(m)===c}):be,p=f.filter(function(m){return d.indexOf(m)>=0});p.length===0&&(p=f);var u=p.reduce(function(m,v){return m[v]=Oe(t,{placement:v,boundary:n,rootBoundary:o,padding:a})[A(v)],m},{});return Object.keys(u).sort(function(m,v){return u[m]-u[v]})}function ko(t){if(A(t)===St)return[];var e=Ke(t);return[kt(t),e,kt(e)]}function Bo(t){var e=t.state,s=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=s.mainAxis,o=n===void 0?!0:n,a=s.altAxis,r=a===void 0?!0:a,l=s.fallbackPlacements,d=s.padding,c=s.boundary,f=s.rootBoundary,p=s.altBoundary,u=s.flipVariations,m=u===void 0?!0:u,v=s.allowedAutoPlacements,g=e.options.placement,w=A(g),E=w===g,M=l||(E||!m?[Ke(g)]:ko(g)),_=[g].concat(M).reduce(function(Ue,_e){return Ue.concat(A(_e)===St?yi(e,{placement:_e,boundary:c,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:v}):_e)},[]),y=e.rects.reference,b=e.rects.popper,D=new Map,G=!0,F=_[0],S=0;S<_.length;S++){var V=_[S],ee=A(V),$=Z(V)===ue,De=[R,H].indexOf(ee)>=0,Ee=De?"width":"height",K=Oe(e,{placement:V,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),te=De?$?B:N:$?H:R;y[Ee]>b[Ee]&&(te=Ke(te));var ft=Ke(te),Me=[];if(o&&Me.push(K[ee]<=0),r&&Me.push(K[te]<=0,K[ft]<=0),Me.every(function(Ue){return Ue})){F=V,G=!1;break}D.set(V,Me)}if(G)for(var _t=m?3:1,jt=function(_e){var qe=_.find(function(gt){var Ce=D.get(gt);if(Ce)return Ce.slice(0,_e).every(function(Lt){return Lt})});if(qe)return F=qe,"break"},Je=_t;Je>0;Je--){var mt=jt(Je);if(mt==="break")break}e.placement!==F&&(e.modifiersData[i]._skip=!0,e.placement=F,e.reset=!0)}}var bi={name:"flip",enabled:!0,phase:"main",fn:Bo,requiresIfExists:["offset"],data:{_skip:!1}};function Po(t,e,s){var i=A(t),n=[N,R].indexOf(i)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},e,{placement:t})):s,a=o[0],r=o[1];return a=a||0,r=(r||0)*n,[N,B].indexOf(i)>=0?{x:r,y:a}:{x:a,y:r}}function Ao(t){var e=t.state,s=t.options,i=t.name,n=s.offset,o=n===void 0?[0,0]:n,a=xt.reduce(function(c,f){return c[f]=Po(f,e.rects,o),c},{}),r=a[e.placement],l=r.x,d=r.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=a}var wi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ao};function Go(t){var e=t.state,s=t.name;e.modifiersData[s]=dt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Dn={name:"popperOffsets",enabled:!0,phase:"read",fn:Go,data:{}};function Oi(t){return t==="x"?"y":"x"}function Ho(t){var e=t.state,s=t.options,i=t.name,n=s.mainAxis,o=n===void 0?!0:n,a=s.altAxis,r=a===void 0?!1:a,l=s.boundary,d=s.rootBoundary,c=s.altBoundary,f=s.padding,p=s.tether,u=p===void 0?!0:p,m=s.tetherOffset,v=m===void 0?0:m,g=Oe(e,{boundary:l,rootBoundary:d,padding:f,altBoundary:c}),w=A(e.placement),E=Z(e.placement),M=!E,_=Be(w),y=Oi(_),b=e.modifiersData.popperOffsets,D=e.rects.reference,G=e.rects.popper,F=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,S=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if(b){if(o){var $,De=_==="y"?R:N,Ee=_==="y"?H:B,K=_==="y"?"height":"width",te=b[_],ft=te+g[De],Me=te-g[Ee],_t=u?-G[K]/2:0,jt=E===ue?D[K]:G[K],Je=E===ue?-G[K]:-D[K],mt=e.elements.arrow,Ue=u&&mt?ke(mt):{width:0,height:0},_e=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:at(),qe=_e[De],gt=_e[Ee],Ce=Pe(0,D[K],Ue[K]),Lt=M?D[K]/2-_t-Ce-qe-S.mainAxis:jt-Ce-qe-S.mainAxis,oo=M?-D[K]/2+_t+Ce+gt+S.mainAxis:Je+Ce+gt+S.mainAxis,Wt=e.elements.arrow&&oe(e.elements.arrow),so=Wt?_==="y"?Wt.clientTop||0:Wt.clientLeft||0:0,Hi=($=V?.[_])!=null?$:0,ro=te+Lt-Hi-so,ao=te+oo-Hi,Ui=Pe(u?Fe(ft,ro):ft,te,u?ne(Me,ao):Me);b[_]=Ui,ee[_]=Ui-te}if(r){var Vi,lo=_==="x"?R:N,co=_==="x"?H:B,Te=b[y],vt=y==="y"?"height":"width",$i=Te+g[lo],ji=Te-g[co],zt=[R,N].indexOf(w)!==-1,Li=(Vi=V?.[y])!=null?Vi:0,Wi=zt?$i:Te-D[vt]-G[vt]-Li+S.altAxis,zi=zt?Te+D[vt]+G[vt]-Li-S.altAxis:ji,Xi=u&&zt?vn(Wi,Te,zi):Pe(u?Wi:$i,Te,u?zi:ji);b[y]=Xi,ee[y]=Xi-Te}e.modifiersData[i]=ee}}var Di={name:"preventOverflow",enabled:!0,phase:"main",fn:Ho,requiresIfExists:["offset"]};function Ei(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Mi(t){return t===O(t)||!x(t)?Ae(t):Ei(t)}function Uo(t){var e=t.getBoundingClientRect(),s=he(e.width)/t.offsetWidth||1,i=he(e.height)/t.offsetHeight||1;return s!==1||i!==1}function Ci(t,e,s){s===void 0&&(s=!1);var i=x(e),n=x(e)&&Uo(e),o=U(e),a=Y(t,n,s),r={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!s)&&((P(e)!=="body"||He(o))&&(r=Mi(e)),x(e)?(l=Y(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Ge(o))),{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}function Vo(t){var e=new Map,s=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function n(o){s.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(r){if(!s.has(r)){var l=e.get(r);l&&n(l)}}),i.push(o)}return t.forEach(function(o){s.has(o.name)||n(o)}),i}function Ti(t){var e=Vo(t);return _n.reduce(function(s,i){return s.concat(e.filter(function(n){return n.phase===i}))},[])}function Ii(t){var e;return function(){return e||(e=new Promise(function(s){Promise.resolve().then(function(){e=void 0,s(t())})})),e}}function Ri(t){var e=t.reduce(function(s,i){var n=s[i.name];return s[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,s},{});return Object.keys(e).map(function(s){return e[s]})}var En={placement:"bottom",modifiers:[],strategy:"absolute"};function Mn(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Cn(t){t===void 0&&(t={});var e=t,s=e.defaultModifiers,i=s===void 0?[]:s,n=e.defaultOptions,o=n===void 0?En:n;return function(r,l,d){d===void 0&&(d=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},En,o),modifiersData:{},elements:{reference:r,popper:l},attributes:{},styles:{}},f=[],p=!1,u={state:c,setOptions:function(w){var E=typeof w=="function"?w(c.options):w;v(),c.options=Object.assign({},o,c.options,E),c.scrollParents={reference:q(r)?we(r):r.contextElement?we(r.contextElement):[],popper:we(l)};var M=Ti(Ri([].concat(i,c.options.modifiers)));return c.orderedModifiers=M.filter(function(_){return _.enabled}),m(),u.update()},forceUpdate:function(){if(!p){var w=c.elements,E=w.reference,M=w.popper;if(Mn(E,M)){c.rects={reference:Ci(E,oe(M),c.options.strategy==="fixed"),popper:ke(M)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(S){return c.modifiersData[S.name]=Object.assign({},S.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var y=c.orderedModifiers[_],b=y.fn,D=y.options,G=D===void 0?{}:D,F=y.name;typeof b=="function"&&(c=b({state:c,options:G,name:F,instance:u})||c)}}}},update:Ii(function(){return new Promise(function(g){u.forceUpdate(),g(c)})}),destroy:function(){v(),p=!0}};if(!Mn(r,l))return u;u.setOptions(d).then(function(g){!p&&d.onFirstUpdate&&d.onFirstUpdate(g)});function m(){c.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,M=E===void 0?{}:E,_=g.effect;if(typeof _=="function"){var y=_({state:c,name:w,instance:u,options:M}),b=function(){};f.push(y||b)}})}function v(){f.forEach(function(g){return g()}),f=[]}return u}}var $o=[wn,Dn,bn,mn],Si=Cn({defaultModifiers:$o});var jo=["container"],Lo=["ngbAccordionBody",""],Vt=["*"];function Wo(t,e){if(t&1){let s=ai();$e(0,"button",1),ge("click",function(){Dt(s);let n=ve();return Et(n.close())}),je()}}var zo=["dialog"];function Xo(t,e){if(t&1&&($e(0,"span"),ci(1),je()),t&2){let s=ve().$implicit,i=ve();ye(i.highlightClass),Ve(),di(s)}}function Ko(t,e){if(t&1&&(sn(0),ci(1),rn()),t&2){let s=ve().$implicit;Ve(),di(s)}}function Qo(t,e){if(t&1&&ti(0,Xo,2,3,"span",0)(1,Ko,2,1,"ng-container"),t&2){let s=e.$index;ii(s%2!==0?0:1)}}var Jo=(t,e,s)=>({result:t,term:e,formatter:s});function qo(t,e){if(t&1&&ri(0,"ngb-highlight",2),t&2){let s=e.result,i=e.term,n=e.formatter;It("result",n(s))("term",i)}}function Yo(t,e){}function Zo(t,e){if(t&1){let s=ai();$e(0,"button",3),ge("mouseenter",function(){let n=Dt(s).$index,o=ve();return Et(o.markActive(n))})("click",function(){let n=Dt(s).$implicit,o=ve();return Et(o.select(n))}),Zt(1,Yo,0,0,"ng-template",4),je()}if(t&2){let s=e.$implicit,i=e.$index,n=ve(),o=ln(1);W("active",i===n.activeIdx),It("id",n.id+"-"+i),Ve(),It("ngTemplateOutlet",n.resultTemplate||o)("ngTemplateOutletContext",cn(5,Jo,s,n.term,n.formatter))}}var Fn={animation:!0,transitionTimerDelayMs:5},ht=(()=>{let e=class e{constructor(){this.animation=Fn.animation}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),es=(()=>{let e=class e{constructor(){this._ngbConfig=h(ht),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ts(t){let{transitionDelay:e,transitionDuration:s}=window.getComputedStyle(t),i=parseFloat(e),n=parseFloat(s);return(i+n)*1e3}function ut(t){return t!=null?`${t}`:""}function $t(t){return typeof t=="string"}function Gt(t){return t!=null}function is(t){return t&&t.then}function ns(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function os(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function ki(t){return(t||document.body).getBoundingClientRect()}function ss(t){return e=>new bt(s=>{let i=a=>t.run(()=>s.next(a)),n=a=>t.run(()=>s.error(a)),o=()=>t.run(()=>s.complete());return e.subscribe({next:i,error:n,complete:o})})}function Tn(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function kn(t=document){let e=t?.activeElement;return e?e.shadowRoot?kn(e.shadowRoot):e:null}var rs=()=>{},{transitionTimerDelayMs:as}=Fn,Pt=new Map,se=(t,e,s,i)=>{let n=i.context||{},o=Pt.get(e);if(o)switch(i.runningTransition){case"continue":return Qi;case"stop":t.run(()=>o.transition$.complete()),n=Object.assign(o.context,n),Pt.delete(e)}let a=s(e,i.animation,n)||rs;if(!i.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>a()),Ye(void 0).pipe(ss(t));let r=new Q,l=new Q,d=r.pipe(Zi(!0));Pt.set(e,{transition$:r,complete:()=>{l.next(),l.complete()},context:n});let c=ts(e);return t.runOutsideAngular(()=>{let f=j(e,"transitionend").pipe(k(d),Re(({target:u})=>u===e)),p=qi(c+as).pipe(k(d));Kt(p,f,l).pipe(k(d)).subscribe(()=>{Pt.delete(e),t.run(()=>{a(),r.next(),r.complete()})})}),r.asObservable()};function ls(t,e){if(typeof navigator>"u")return"0px";let{classList:s}=t,i=s.contains("show");i||s.add("show"),t.style[e]="";let n=t.getBoundingClientRect()[e]+"px";return i||s.remove("show"),n}var cs=(t,e,s)=>{let{direction:i,maxSize:n,dimension:o}=s,{classList:a}=t;function r(){a.add("collapse"),i==="show"?a.add("show"):a.remove("show")}if(!e){r();return}return n||(n=ls(t,o),s.maxSize=n,t.style[o]=i!=="show"?n:"0px",a.remove("collapse","collapsing","show"),ki(t),a.add("collapsing")),t.style[o]=i==="show"?n:"0px",()=>{r(),a.remove("collapsing"),t.style[o]=""}},ds=(()=>{let e=class e{constructor(){this._ngbConfig=h(ht),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),In=(()=>{let e=class e{constructor(){this._config=h(ds),this._element=h(J),this._zone=h(ae),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new C,this.horizontal=this._config.horizontal,this.shown=new C,this.hidden=new C}set collapsed(i){this._isCollapsed!==i&&(this._isCollapsed=i,this._afterInit&&this._runTransitionWithEvents(i,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(i=this._isCollapsed){this.collapsed=!i,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(i,n){return se(this._zone,this._element.nativeElement,cs,{animation:n,runningTransition:"stop",context:{direction:i?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(i,n){this._runTransition(i,n).subscribe(()=>{i?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,o){n&2&&W("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]});let t=e;return t})(),us=0,zd=(()=>{let e=class e{constructor(){this._item=h(pt),this._viewRef=null,this.elementRef=h(J)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(n,o,a){if(n&1&&Ne(a,Ct,7),n&2){let r;ce(r=de())&&(o._bodyTpl=r.first)}},viewQuery:function(n,o){if(n&1&&li(jo,7,Yt),n&2){let a;ce(a=de())&&(o._vcr=a.first)}},hostAttrs:[1,"accordion-body"],attrs:Lo,ngContentSelectors:Vt,decls:3,vars:0,consts:[["container",""]],template:function(n,o){n&1&&(nt(),an(0,null,0),ot(2))},encapsulation:2});let t=e;return t})(),hs=(()=>{let e=class e{constructor(){this.item=h(pt),this.ngbCollapse=h(In)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(n,o){n&2&&(le("id",o.item.collapseId),Se("aria-labelledby",o.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[on([In])]});let t=e;return t})(),Xd=(()=>{let e=class e{constructor(){this.item=h(pt),this.accordion=h(Bn)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(n,o){n&1&&ge("click",function(){return!o.item.disabled&&o.accordion.toggle(o.item.id)}),n&2&&(le("id",o.item.toggleId),Se("aria-controls",o.item.collapseId)("aria-expanded",!o.item.collapsed),W("collapsed",o.item.collapsed))}});let t=e;return t})();var Kd=(()=>{let e=class e{constructor(){this.item=h(pt)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(n,o){n&2&&W("collapsed",o.item.collapsed)}});let t=e;return t})(),pt=(()=>{let e=class e{constructor(){this._accordion=h(Bn),this._cd=h(Le),this._destroyRef=h(Mt),this._collapsed=!0,this._id=`ngb-accordion-item-${us++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new C,this.shown=new C,this.hide=new C,this.hidden=new C}set id(i){$t(i)&&i!==""&&(this._id=i)}set destroyOnHide(i){this._destroyOnHide=i}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(i){i?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:i}=this._collapse;i.animation=!1,i.collapsed=this.collapsed,i.animation=this._accordion.animation,i.hidden.pipe(hi(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id),this._cd.markForCheck()}),i.shown.pipe(hi(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(n,o,a){if(n&1&&Ne(a,hs,7),n&2){let r;ce(r=de())&&(o._collapse=r.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(n,o){n&2&&le("id",o.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]});let t=e;return t})(),Bn=(()=>{let e=class e{constructor(){this._config=h(es),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new C,this.shown=new C,this.hide=new C,this.hidden=new C}toggle(i){this._getItem(i)?.toggle()}expand(i){this._getItem(i)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(i=>!i.collapsed)||this._items.first.expand():this._items.forEach(i=>i.expand()))}collapse(i){this._getItem(i)?.collapse()}collapseAll(){this._items?.forEach(i=>i.collapse())}isExpanded(i){let n=this._getItem(i);return n?!n.collapsed:!1}_ensureCanExpand(i){return this.closeOthers?this._items?(this._items.find(n=>!n.collapsed&&i!==n)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(i){return this._items?.find(n=>n.id===i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(n,o,a){if(n&1&&Ne(a,pt,4),n&2){let r;ce(r=de())&&(o._items=r)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]});let t=e;return t})();var Pn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),ps=(()=>{let e=class e{constructor(){this._ngbConfig=h(ht),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fs=({classList:t})=>{t.remove("show")},Qd=(()=>{let e=class e{constructor(){this._config=h(ps),this._elementRef=h(J),this._zone=h(ae),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new C}close(){let i=se(this._zone,this._elementRef.nativeElement,fs,{animation:this.animation,runningTransition:"continue"});return i.subscribe(()=>this.closed.emit()),i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(n,o){n&2&&(ye("alert show"+(o.type?" alert-"+o.type:"")),W("fade",o.animation)("alert-dismissible",o.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:Vt,decls:2,vars:1,consts:()=>{let i;return i=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",i,1,"btn-close"],["type","button","aria-label",i,1,"btn-close",3,"click"]]},template:function(n,o){n&1&&(nt(),ot(0),ti(1,Wo,1,0,"button",0)),n&2&&(Ve(),ii(o.dismissible?1:-1))},styles:[`ngb-alert{display:block}
2
- `],encapsulation:2,changeDetection:0});let t=e;return t})(),An=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var Gn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),Hn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var At=(t,e)=>e?e.some(s=>s.contains(t)):!1,Rn=(t,e)=>!e||os(t,e)!=null,_s=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),ms=t=>_s?()=>setTimeout(()=>t(),100):t;function Bi(t,e,s,i,n,o,a,r){s&&t.runOutsideAngular(ms(()=>{let l=p=>{let u=p.target;return p.button===2||At(u,a)?!1:s==="inside"?At(u,o)&&Rn(u,r):s==="outside"?!At(u,o):Rn(u,r)||!At(u,o)},d=j(e,"keydown").pipe(k(n),Re(p=>p.key==="Escape"),et(p=>p.preventDefault())),c=j(e,"mousedown").pipe(Ie(l),k(n)),f=j(e,"mouseup").pipe(Ot(c),Re(([p,u])=>u),Yi(0),k(n));Kt([d.pipe(Ie(p=>0)),f.pipe(Ie(p=>1))]).subscribe(p=>t.run(()=>i(p)))}))}var Un=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vn(t){let e=Array.from(t.querySelectorAll(Un)).filter(s=>s.tabIndex!==-1);return[e[0],e[e.length-1]]}var gs=(t,e,s,i=!1)=>{t.runOutsideAngular(()=>{let n=j(e,"focusin").pipe(k(s),Ie(o=>o.target));j(e,"keydown").pipe(k(s),Re(o=>o.key==="Tab"),Ot(n)).subscribe(([o,a])=>{let[r,l]=Vn(e);(a===r||a===e)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(r.focus(),o.preventDefault())}),i&&j(e,"click").pipe(k(s),Ot(n),Ie(o=>o[1])).subscribe(o=>o.focus())})},vs=(()=>{let e=class e{constructor(){this._element=h(re).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ys=/\s+/,bs=/ +/gi,ws={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function Os(t,e){let[s,i]=ws[t];return e&&i||s}var Ds=/^left/,Es=/^right/,Ms=/^start/,Cs=/^end/;function Ts(t,e){let[s,i]=e.split("-"),n=s.replace(Ds,"start").replace(Es,"end"),o=[n];if(i){let a=i;(s==="left"||s==="right")&&(a=a.replace(Ms,"top").replace(Cs,"bottom")),o.push(`${n}-${a}`)}return t&&(o=o.map(a=>`${t}-${a}`)),o.join(" ")}function Sn({placement:t,baseClass:e},s){let i=Array.isArray(t)?t:t.split(ys),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=i.findIndex(d=>d==="auto");o>=0&&n.forEach(function(d){i.find(c=>c.search("^"+d)!==-1)==null&&i.splice(o++,1,d)});let a=i.map(d=>Os(d,s.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let c=new RegExp(e+"(-[a-z]+)*","gi"),f=d.elements.popper,p=d.placement,u=f.className;u=u.replace(c,""),u+=` ${Ts(e,p)}`,u=u.trim().replace(bs," "),f.className=u}},bi,Di,_i,{enabled:!0,name:"flip",options:{fallbackPlacements:a}}]}}function Nn(t){return t}function Pi(){let t=h(vs),e=null;return{createPopper(s){if(!e){let n=(s.updatePopperOptions||Nn)(Sn(s,t));e=Si(s.hostElement,s.targetElement,n)}},update(){e&&e.update()},setOptions(s){if(e){let n=(s.updatePopperOptions||Nn)(Sn(s,t));e.setOptions(n)}},destroy(){e&&(e.destroy(),e=null)}}}function Ai(t){return e=>(e.modifiers.push(wi,{name:"offset",options:{offset:()=>t}}),e)}var Jd=new Date(1882,10,12),qd=new Date(2174,10,25);var Yd=1e3*60*60*24;var Gi=1080,Is=24*Gi,Rs=12*Gi+793,Zd=29*Is+Rs,eu=11*Gi+204;var $n=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),Ss=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=i=>i,this.container=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jn=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=h(J).nativeElement,this.tabindex=0}set disabled(i){this._disabled=i===""||i===!0}get disabled(){return this._disabled}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(n,o){n&2&&(le("tabIndex",o.disabled?-1:o.tabindex),W("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"}});let t=e;return t})(),tu=(()=>{let e=class e{constructor(){this.item=h(jn)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(n,o){n&2&&le("disabled",o.item.disabled)}});let t=e;return t})(),Ns=(()=>{let e=class e{constructor(){this.dropdown=h(Ln),this.nativeElement=h(J).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(n,o,a){if(n&1&&Ne(a,jn,4),n&2){let r;ce(r=de())&&(o.menuItems=r)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(n,o){n&1&&ge("keydown.ArrowUp",function(r){return o.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return o.dropdown.onKeyDown(r)})("keydown.Home",function(r){return o.dropdown.onKeyDown(r)})("keydown.End",function(r){return o.dropdown.onKeyDown(r)})("keydown.Enter",function(r){return o.dropdown.onKeyDown(r)})("keydown.Space",function(r){return o.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return o.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return o.dropdown.onKeyDown(r)}),n&2&&W("show",o.dropdown.isOpen())}});let t=e;return t})(),Ni=(()=>{let e=class e{constructor(){this.dropdown=h(Ln),this.nativeElement=h(J).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&2&&(Se("aria-expanded",o.dropdown.isOpen()),W("show",o.dropdown.isOpen()))}});let t=e;return t})(),iu=(()=>{let e=class e extends Ni{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=tn(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&1&&ge("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(r){return o.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return o.dropdown.onKeyDown(r)})("keydown.Home",function(r){return o.dropdown.onKeyDown(r)})("keydown.End",function(r){return o.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return o.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return o.dropdown.onKeyDown(r)}),n&2&&(Se("aria-expanded",o.dropdown.isOpen()),W("show",o.dropdown.isOpen()))},features:[ui([{provide:Ni,useExisting:Jt(()=>e)}]),nn]});let t=e;return t})(),Ln=(()=>{let e=class e{constructor(){this._changeDetector=h(Le),this._config=h(Ss),this._document=h(re),this._injector=h(ie),this._ngZone=h(ae),this._nativeElement=h(J).nativeElement,this._destroyCloseHandlers$=new Q,this._bodyContainer=null,this._positioning=Pi(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new C}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){it({write:()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()}},{injector:this._injector})}ngOnChanges(i){if(i.container&&this._open&&this._applyContainer(this.container),i.placement&&!i.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),i.dropdownClass){let{currentValue:n,previousValue:o}=i.dropdownClass;this._applyCustomDropdownClass(n,o)}i.autoClose&&this._open&&(this.autoClose=i.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(Ai([0,2])(i))}),this._applyPlacementClasses(),this._afterRenderRef=Tt({write:()=>{this._positionMenu()}},{injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Bi(this._ngZone,this._document,this.autoClose,i=>{this.close(),i===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(i){let{key:n}=i,o=this._getMenuElements(),a=-1,r=null,l=this._isEventFromToggle(i);if(!l&&o.length&&o.forEach((d,c)=>{d.contains(i.target)&&(r=d),d===kn(this._document)&&(a=c)}),n===" "||n==="Enter"){r&&(this.autoClose===!0||this.autoClose==="inside")&&j(r,"click").pipe(Ze(1)).subscribe(()=>this.close());return}if(n==="Tab"){if(i.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===i.target){this.container==="body"&&!i.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):i.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(Un);i.shiftKey&&i.target===d[0]?(this._anchor.nativeElement.focus(),i.preventDefault()):!i.shiftKey&&i.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else j(i.target,"focusout").pipe(Ze(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||r){if(this.open(),o.length){switch(n){case"ArrowDown":a=Math.min(a+1,o.length-1);break;case"ArrowUp":if(this._isDropup()&&a===-1){a=o.length-1;break}a=Math.max(a-1,0);break;case"Home":a=0;break;case"End":a=o.length-1;break}o[a].focus()}i.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(i){return this._anchor.nativeElement.contains(i.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:i})=>!i).map(({nativeElement:i})=>i):[]}_positionMenu(){let i=this._menu;this.isOpen()&&i&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(i){return Array.isArray(i)?i[0]:i.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(i=null){if(this._resetContainer(),i==="body"){let n=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",n.style.position="static",o.style.zIndex="1055",o.appendChild(n),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(i,n){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(n&&o.classList.remove(n),i&&o.classList.add(i))}_applyPlacementClasses(i){if(this._menu){i||(i=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let n=i.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(n),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(n))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(n,o,a){if(n&1&&(Ne(a,Ns,5),Ne(a,Ni,5)),n&2){let r;ce(r=de())&&(o._menu=r.first),ce(r=de())&&(o._anchor=r.first)}},hostVars:2,hostBindings:function(n,o){n&2&&W("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[tt]});let t=e;return t})();var Wn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),xs=(()=>{let e=class e{constructor(){this._ngbConfig=h(ht),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fe=class{constructor(e,s,i){this.nodes=e,this.viewRef=s,this.componentRef=i}},Ht=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=h(re),this._applicationRef=h(ei),this._injector=h(ie),this._viewContainerRef=h(Yt),this._ngZone=h(ae)}open(e,s,i=!1){this._windowRef||(this._contentRef=this._getContentRef(e,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,o=new Q;it({mixedReadWrite:()=>{o.next(),o.complete()}},{injector:this._injector});let a=o.pipe(Ji(()=>se(this._ngZone,n,({classList:r})=>r.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(e=!1){return this._windowRef?se(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:e,runningTransition:"stop"}).pipe(et(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):Ye(void 0)}_getContentRef(e,s){if(e)if(e instanceof Ct){let i=e.createEmbeddedView(s);return this._applicationRef.attachView(i),new fe([i.rootNodes],i)}else return new fe([[this._document.createTextNode(`${e}`)]]);else return new fe([])}},Fs=(()=>{let e=class e{constructor(){this._document=h(re)}hide(){let i=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,o=n.style,{overflow:a,paddingRight:r}=o;if(i>0){let l=parseFloat(window.getComputedStyle(n).paddingRight);o.paddingRight=`${l+i}px`}return o.overflow="hidden",()=>{i>0&&(o.paddingRight=r),o.overflow=a}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ks=(()=>{let e=class e{constructor(){this._nativeElement=h(J).nativeElement,this._zone=h(ae),this._injector=h(ie)}ngOnInit(){it({mixedReadWrite:()=>se(this._zone,this._nativeElement,(i,n)=>{n&&ki(i),i.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return se(this._zone,this._nativeElement,({classList:i})=>i.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,o){n&2&&(ye("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),W("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(n,o){},encapsulation:2});let t=e;return t})(),Ut=class{update(e){}close(e){}dismiss(e){}},Bs=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],Ps=["animation","backdropClass"],xi=class{_applyWindowOptions(e,s){Bs.forEach(i=>{Gt(s[i])&&(e[i]=s[i])})}_applyBackdropOptions(e,s){Ps.forEach(i=>{Gt(s[i])&&(e[i]=s[i])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(k(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(k(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,s,i,n){this._windowCmptRef=e,this._contentRef=s,this._backdropCmptRef=i,this._beforeDismiss=n,this._closed=new Q,this._dismissed=new Q,this._hidden=new Q,e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let s=this._beforeDismiss();is(s)?s.then(i=>{i!==!1&&this._dismiss(e)},()=>{}):s!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Ye(void 0);e.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),wt(e,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Fi=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Fi||{}),As=(()=>{let e=class e{constructor(){this._document=h(re),this._elRef=h(J),this._zone=h(ae),this._injector=h(ie),this._closed$=new Q,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new C,this.shown=new Q,this.hidden=new Q}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":$t(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(i){this.dismissEvent.emit(i)}ngOnInit(){this._elWithFocus=this._document.activeElement,it({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:i}=this._elRef,n={animation:this.animation,runningTransition:"stop"},o=se(this._zone,i,()=>i.classList.remove("show"),n),a=se(this._zone,this._dialogEl.nativeElement,()=>{},n),r=wt(o,a);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let i={animation:this.animation,runningTransition:"continue"},n=se(this._zone,this._elRef.nativeElement,(a,r)=>{r&&ki(a),a.classList.add("show")},i),o=se(this._zone,this._dialogEl.nativeElement,()=>{},i);wt(n,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:i}=this._elRef;this._zone.runOutsideAngular(()=>{j(i,"keydown").pipe(k(this._closed$),Re(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(Fi.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let n=!1;j(this._dialogEl.nativeElement,"mousedown").pipe(k(this._closed$),et(()=>n=!1),Qt(()=>j(i,"mouseup").pipe(k(this._closed$),Ze(1))),Re(({target:o})=>i===o)).subscribe(()=>{n=!0}),j(i,"click").pipe(k(this._closed$)).subscribe(({target:o})=>{i===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!n&&this._zone.run(()=>this.dismiss(Fi.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:i}=this._elRef;if(!i.contains(document.activeElement)){let n=i.querySelector("[ngbAutofocus]"),o=Vn(i)[0];(n||o||i).focus()}}_restoreFocus(){let i=this._document.body,n=this._elWithFocus,o;n&&n.focus&&i.contains(n)?o=n:o=i,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&se(this._zone,this._elRef.nativeElement,({classList:i})=>(i.add("modal-static"),()=>i.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,o){if(n&1&&li(zo,7),n&2){let a;ce(a=de())&&(o._dialogEl=a.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(n,o){n&2&&(Se("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy)("role",o.role),ye("modal d-block"+(o.windowClass?" "+o.windowClass:"")),W("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Vt,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(n,o){n&1&&(nt(),$e(0,"div",1,0)(2,"div",2),ot(3),je()()),n&2&&ye("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
3
- `],encapsulation:2});let t=e;return t})(),Gs=(()=>{let e=class e{constructor(){this._applicationRef=h(ei),this._injector=h(ie),this._environmentInjector=h(qt),this._document=h(re),this._scrollBar=h(Fs),this._activeWindowCmptHasChanged=new Q,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new C;let i=h(ae);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let n=this._windowCmpts[this._windowCmpts.length-1];gs(i,n.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(n.location.nativeElement)}})}_restoreScrollBar(){let i=this._scrollBarRestoreFn;i&&(this._scrollBarRestoreFn=null,i())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(i,n,o){let a=o.container instanceof HTMLElement?o.container:Gt(o.container)?this._document.querySelector(o.container):this._document.body;if(!a)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new Ut;i=o.injector||i;let l=i.get(qt,null)||this._environmentInjector,d=this._getContentRef(i,l,n,r,o),c=o.backdrop!==!1?this._attachBackdrop(a):void 0,f=this._attachWindowComponent(a,d.nodes),p=new xi(f,d,c,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe(Ze(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=u=>{p.close(u)},r.dismiss=u=>{p.dismiss(u)},r.update=u=>{p.update(u)},p.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),c&&c.instance&&c.changeDetectorRef.detectChanges(),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(i){this._modalRefs.forEach(n=>n.dismiss(i))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(i){let n=Rt(ks,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),i.appendChild(n.location.nativeElement),n}_attachWindowComponent(i,n){let o=Rt(As,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_getContentRef(i,n,o,a,r){return o?o instanceof Ct?this._createFromTemplateRef(o,a):$t(o)?this._createFromString(o):this._createFromComponent(i,n,o,a,r):new fe([])}_createFromTemplateRef(i,n){let o={$implicit:n,close(r){n.close(r)},dismiss(r){n.dismiss(r)}},a=i.createEmbeddedView(o);return this._applicationRef.attachView(a),new fe([a.rootNodes],a)}_createFromString(i){let n=this._document.createTextNode(`${i}`);return new fe([[n]])}_createFromComponent(i,n,o,a,r){let l=ie.create({providers:[{provide:Ut,useValue:a}],parent:i}),d=Rt(o,{environmentInjector:n,elementInjector:l}),c=d.location.nativeElement;return r.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new fe([[c]],d.hostView,d)}_setAriaHidden(i){let n=i.parentElement;n&&i!==this._document.body&&(Array.from(n.children).forEach(o=>{o!==i&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((i,n)=>{i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(i){let n=()=>{let o=this._modalRefs.indexOf(i);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(i),this._activeInstances.emit(this._modalRefs),i.result.then(n,n)}_registerWindowCmpt(i){this._windowCmpts.push(i),this._activeWindowCmptHasChanged.next(),i.onDestroy(()=>{let n=this._windowCmpts.indexOf(i);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hs=(()=>{let e=class e{constructor(){this._injector=h(ie),this._modalStack=h(Gs),this._config=h(xs)}open(i,n={}){let o=yt(Xt(yt({},this._config),{animation:this._config.animation}),n);return this._modalStack.open(this._injector,i,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(i){this._modalStack.dismissAll(i)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({providers:[Hs]});let t=e;return t})();var Xn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var Kn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),Us={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function Vs(t){let e=(t||"").trim();if(e.length===0)return[];let s=e.split(/\s+/).map(n=>n.split(":")).map(n=>Us[n[0]]||n),i=s.filter(n=>n.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:s}function $s(t,e,s,i,n,o=0,a=0){let r=Vs(e);if(r.length===0)return()=>{};let l=new Set,d=[],c;function f(u,m){t.addEventListener(u,m),d.push(()=>t.removeEventListener(u,m))}function p(u,m){clearTimeout(c),m>0?c=setTimeout(u,m):u()}for(let[u,m]of r)m?(f(u,()=>{l.add(u),p(()=>l.size>0&&i(),o)}),f(m,()=>{l.delete(u),p(()=>l.size===0&&n(),a)})):f(u,()=>s()?p(n,a):p(i,o));return()=>d.forEach(u=>u())}var Qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var Jn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var Yn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var Zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var eo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),js=(()=>{let e=class e{constructor(){this._ngbConfig=h(ht),this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ls=0,Ws=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(n,o){n&2&&(le("id",o.id),ye("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),W("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Vt,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,o){n&1&&(nt(),ri(0,"div",0),$e(1,"div",1),ot(2),je())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}
4
- `],encapsulation:2,changeDetection:0});let t=e;return t})(),nu=(()=>{let e=class e{constructor(){this._config=h(js),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new C,this.hidden=new C,this._nativeElement=h(J).nativeElement,this._ngZone=h(ae),this._document=h(re),this._changeDetector=h(Le),this._injector=h(ie),this._ngbTooltipWindowId=`ngb-tooltip-${Ls++}`,this._popupService=new Ht(Ws),this._windowRef=null,this._positioning=Pi()}set ngbTooltip(i){this._ngbTooltip=i,!i&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(i){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:n,transition$:o}=this._popupService.open(this._ngbTooltip,i??this.tooltipContext,this.animation);this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:a=>this.popperOptions(Ai([0,6])(a))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Tt({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),Bi(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>this.shown.emit())}}close(i=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(i).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=$s(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:i}){i&&this.isOpen()&&this._windowRef.setInput("tooltipClass",i.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return($t(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[tt]});let t=e;return t})(),to=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),zs=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(i){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let n=ut(this.result),o=Array.isArray(this.term)?this.term:[this.term],a=c=>this.accentSensitive?c:Tn(c),r=o.map(c=>ns(a(ut(c)))).filter(c=>c),l=this.accentSensitive?n:Tn(n),d=r.length?l.split(new RegExp(`(${r.join("|")})`,"gmi")):[n];if(this.accentSensitive)this.parts=d;else{let c=0;this.parts=d.map(f=>n.substring(c,c+=f.length))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[tt],decls:2,vars:0,consts:[[3,"class"]],template:function(n,o){n&1&&oi(0,Qo,2,1,null,null,ni),n&2&&si(o.parts)},styles:[`.ngb-highlight{font-weight:700}
5
- `],encapsulation:2,changeDetection:0});let t=e;return t})(),Xs=new en("live announcer delay",{providedIn:"root",factory:()=>100});function xn(t,e=!1){let s=t.body.querySelector("#ngb-live");return s==null&&e&&(s=t.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),t.body.appendChild(s)),s}var Ks=(()=>{let e=class e{constructor(){this._document=h(re),this._delay=h(Xs)}ngOnDestroy(){let i=xn(this._document);i&&i.parentElement.removeChild(i)}say(i){let n=xn(this._document,!0),o=this._delay;if(n!=null){n.textContent="";let a=()=>n.textContent=i;o===null?a():setTimeout(a,o)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qs=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=i=>i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=X({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Js=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=ut,this.selectEvent=new C,this.activeChangeEvent=new C}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(i){this.activeIdx=i,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(i){this.selectEvent.emit(i)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=me({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(n,o){n&1&&ge("mousedown",function(r){return r.preventDefault()}),n&2&&(le("id",o.id),ye("dropdown-menu show"+(o.popupClass?" "+o.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){n&1&&(Zt(0,qo,1,2,"ng-template",null,0,dn),oi(2,Zo,2,9,"button",1,ni)),n&2&&(Ve(2),si(o.results))},dependencies:[zs,un],encapsulation:2});let t=e;return t})(),qs=0,ou=(()=>{let e=class e{constructor(){this._nativeElement=h(J).nativeElement,this._config=h(Qs),this._live=h(Ks),this._document=h(re),this._ngZone=h(ae),this._changeDetector=h(Le),this._injector=h(ie),this._popupService=new Ht(Js),this._positioning=Pi(),this._subscription=null,this._closed$=new Q,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=j(this._nativeElement,"input").pipe(Ie(i=>i.target.value)),this._resubscribeTypeahead$=new Ki(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new C,this.activeDescendant=null,this.popupId=`ngb-typeahead-${qs++}`,this._onTouched=()=>{},this._onChange=i=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:i}){i&&!i.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}writeValue(i){this._writeInputValue(this._formatItemForInput(i)),this.showHint&&(this._inputValueBackup=i)}setDisabledState(i){this._nativeElement.disabled=i}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(i){if(this.isPopupOpen())switch(i.key){case"ArrowDown":i.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":i.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let n=this._windowRef.instance.getActive();Gt(n)&&(i.preventDefault(),i.stopPropagation(),this._selectResult(n)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:i}=this._popupService.open();this._windowRef=i,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(n=>this._selectResultClosePopup(n)),this._windowRef.instance.activeChangeEvent.subscribe(n=>this.activeDescendant=n),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(Ai([0,2])(n))}),this._afterRenderRef=Tt({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector}))}),Bi(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(i){let n=!1;this.selectItem.emit({item:i,preventDefault:()=>{n=!0}}),this._resubscribeTypeahead$.next(null),n||(this.writeValue(i),this._onChange(i))}_selectResultClosePopup(i){this._selectResult(i),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let i=this._inputValueBackup.toLowerCase(),n=this._formatItemForInput(this._windowRef.instance.getActive());i===n.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+n.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,n.length])):this._writeInputValue(n)}}_formatItemForInput(i){return i!=null&&this.inputFormatter?this.inputFormatter(i):ut(i)}_writeInputValue(i){this._nativeElement.value=ut(i)}_subscribeToUserInput(){let i=this._valueChanges$.pipe(et(n=>{this._inputValueBackup=this.showHint?n:null,this._inputValueForSelectOnExact=this.selectOnExact?n:null,this._onChange(this.editable?n:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>Ye([]));this._subscription=this._resubscribeTypeahead$.pipe(Qt(()=>i)).subscribe(n=>{!n||n.length===0?this._closePopup():this.selectOnExact&&n.length===1&&this._formatItemForInput(n[0])===this._inputValueForSelectOnExact?(this._selectResult(n[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",n),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let o=n?n.length:0;this._live.say(o===0?"No results available":`${o} result${o===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(n,o){n&1&&ge("blur",function(){return o.handleBlur()})("keydown",function(r){return o.handleKeyDown(r)}),n&2&&(le("autocomplete",o.autocomplete),Se("aria-autocomplete",o.showHint?"both":"list")("aria-activedescendant",o.activeDescendant)("aria-owns",o.isPopupOpen()?o.popupId:null)("aria-expanded",o.isPopupOpen()),W("open",o.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[ui([{provide:hn,useExisting:Jt(()=>e),multi:!0}]),tt]});let t=e;return t})(),io=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})();var no=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({});let t=e;return t})(),Ys=[Pn,An,Gn,Hn,$n,Wn,zn,Xn,no,Kn,Qn,Jn,qn,Yn,Zn,eo,to,io],su=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=I({type:e}),e.\u0275inj=T({imports:[Ys,Pn,An,Gn,Hn,$n,Wn,zn,Xn,no,Kn,Qn,Jn,qn,Yn,Zn,eo,to,io]});let t=e;return t})();export{zd as a,hs as b,Xd as c,Kd as d,pt as e,Bn as f,Qd as g,jn as h,tu as i,Ns as j,iu as k,Ln as l,Ut as m,Hs as n,nu as o,ou as p,su as q};
@@ -1 +0,0 @@
1
- import{a as f}from"./chunk-KAUSPTCQ.js";import{a as s}from"./chunk-ZF22CBM2.js";import"./chunk-BMCQHGMB.js";import"./chunk-P64V4GHS.js";import"./chunk-UTAVUGTT.js";import"./chunk-IOWBVW62.js";import"./chunk-WAA5KWIN.js";import"./chunk-UVOJ3BF7.js";import"./chunk-DGIKPYZP.js";import"./chunk-VHTQTL2S.js";import"./chunk-CG7LPZUJ.js";import"./chunk-GMY5QOXR.js";import"./chunk-RNHMRKPJ.js";import"./chunk-BIRWL4X3.js";import"./chunk-DDFZVHUO.js";import{q as l}from"./chunk-ALG7CIS3.js";import{A as u,z as m}from"./chunk-VLX322GM.js";import{g as e}from"./chunk-2G7GNBIF.js";import"./chunk-YJXHSHNO.js";import"./chunk-B3LZRDAG.js";import"./chunk-XHI7IAUN.js";import"./chunk-XUH357B7.js";import"./chunk-VUYAK52W.js";import{c as p}from"./chunk-QMB5XE4Y.js";import{ha as t,kd as n,mb as r}from"./chunk-R3VPSO5X.js";var g=[{path:"",loadComponent:()=>import("./chunk-LHL5TI6S.js").then(o=>o.PluginsComponent)}],d=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[e.forChild(g),e]})}return o})();var v=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,m,u,p.forChild(),l,f,d,s]})}return o})();export{v as PluginsModule};
@@ -1 +0,0 @@
1
- import{e as h}from"./chunk-R3VPSO5X.js";var P=h((Zi,fe)=>{"use strict";var rt="2.0.0",tt=Number.MAX_SAFE_INTEGER||9007199254740991,st=16,it=250,nt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:st,MAX_SAFE_BUILD_LENGTH:it,MAX_SAFE_INTEGER:tt,RELEASE_TYPES:nt,SEMVER_SPEC_VERSION:rt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=h((Ji,he)=>{"use strict";var ot=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};he.exports=ot});var w=h((T,pe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:B,MAX_SAFE_BUILD_LENGTH:ct,MAX_LENGTH:lt}=P(),at=v();T=pe.exports={};var ut=T.re=[],Et=T.safeRe=[],c=T.src=[],ft=T.safeSrc=[],l=T.t={},ht=0,z="[a-zA-Z0-9-]",pt=[["\\s",1],["\\d",lt],[z,ct]],Rt=t=>{for(let[e,r]of pt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},p=(t,e,r)=>{let s=Rt(e),i=ht++;at(t,i,e),l[t]=i,c[i]=e,ft[i]=s,ut[i]=new RegExp(e,r?"g":void 0),Et[i]=new RegExp(s,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*");p("NUMERICIDENTIFIERLOOSE","\\d+");p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${z}*`);p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`);p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`);p("PRERELEASEIDENTIFIER",`(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`);p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`);p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`);p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`);p("BUILDIDENTIFIER",`${z}+`);p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`);p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`);p("FULL",`^${c[l.FULLPLAIN]}$`);p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`);p("LOOSE",`^${c[l.LOOSEPLAIN]}$`);p("GTLT","((?:<|>)?=?)");p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`);p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`);p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`);p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`);p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`);p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${B}})(?:\\.(\\d{1,${B}}))?(?:\\.(\\d{1,${B}}))?`);p("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`);p("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`);p("COERCERTL",c[l.COERCE],!0);p("COERCERTLFULL",c[l.COERCEFULL],!0);p("LONETILDE","(?:~>?)");p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0);T.tildeTrimReplace="$1~";p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`);p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`);p("LONECARET","(?:\\^)");p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0);T.caretTrimReplace="$1^";p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`);p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`);p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`);p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`);p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0);T.comparatorTrimReplace="$1$2$3";p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`);p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`);p("STAR","(<|>)?=?\\s*\\*");p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var F=h((Qi,Re)=>{"use strict";var $t=Object.freeze({loose:!0}),mt=Object.freeze({}),It=t=>t?typeof t!="object"?$t:t:mt;Re.exports=It});var K=h((en,Ie)=>{"use strict";var $e=/^[0-9]+$/,me=(t,e)=>{let r=$e.test(t),s=$e.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Lt=(t,e)=>me(e,t);Ie.exports={compareIdentifiers:me,rcompareIdentifiers:Lt}});var L=h((rn,Ne)=>{"use strict";var j=v(),{MAX_LENGTH:Le,MAX_SAFE_INTEGER:X}=P(),{safeRe:U,t:V}=w(),Nt=F(),{compareIdentifiers:g}=K(),Z=class t{constructor(e,r){if(r=Nt(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Le)throw new TypeError(`version is longer than ${Le} characters`);j("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?U[V.LOOSE]:U[V.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let n=+i;if(n>=0&&n<X)return n}return i}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(j("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),g(this.major,e.major)||g(this.minor,e.minor)||g(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],i=e.prerelease[r];if(j("prerelease compare",r,s,i),s===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(s===void 0)return-1;if(s===i)continue;return g(s,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],i=e.build[r];if(j("build compare",r,s,i),s===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(s===void 0)return-1;if(s===i)continue;return g(s,i)}while(++r)}inc(e,r,s){if(e.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?U[V.PRERELEASELOOSE]:U[V.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let n=[r,i];s===!1&&(n=[r]),g(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ne.exports=Z});var q=h((tn,Se)=>{"use strict";var Oe=L(),Ot=(t,e,r=!1)=>{if(t instanceof Oe)return t;try{return new Oe(t,e)}catch(s){if(!r)return null;throw s}};Se.exports=Ot});var Ae=h((sn,de)=>{"use strict";var St=q(),dt=(t,e)=>{let r=St(t,e);return r?r.version:null};de.exports=dt});var qe=h((nn,Te)=>{"use strict";var At=q(),Tt=(t,e)=>{let r=At(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Te.exports=Tt});var Pe=h((on,ge)=>{"use strict";var we=L(),qt=(t,e,r,s,i)=>{typeof r=="string"&&(i=s,s=r,r=void 0);try{return new we(t instanceof we?t.version:t,r).inc(e,s,i).version}catch{return null}};ge.exports=qt});var Ce=h((cn,xe)=>{"use strict";var ve=q(),wt=(t,e)=>{let r=ve(t,null,!0),s=ve(e,null,!0),i=r.compare(s);if(i===0)return null;let n=i>0,o=n?r:s,a=n?s:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let $=u?"pre":"";return r.major!==s.major?$+"major":r.minor!==s.minor?$+"minor":r.patch!==s.patch?$+"patch":"prerelease"};xe.exports=wt});var Ge=h((ln,De)=>{"use strict";var gt=L(),Pt=(t,e)=>new gt(t,e).major;De.exports=Pt});var Fe=h((an,ye)=>{"use strict";var vt=L(),xt=(t,e)=>new vt(t,e).minor;ye.exports=xt});var Xe=h((un,je)=>{"use strict";var Ct=L(),Dt=(t,e)=>new Ct(t,e).patch;je.exports=Dt});var Ve=h((En,Ue)=>{"use strict";var Gt=q(),yt=(t,e)=>{let r=Gt(t,e);return r&&r.prerelease.length?r.prerelease:null};Ue.exports=yt});var d=h((fn,be)=>{"use strict";var _e=L(),Ft=(t,e,r)=>new _e(t,r).compare(new _e(e,r));be.exports=Ft});var ke=h((hn,He)=>{"use strict";var jt=d(),Xt=(t,e,r)=>jt(e,t,r);He.exports=Xt});var Ye=h((pn,Me)=>{"use strict";var Ut=d(),Vt=(t,e)=>Ut(t,e,!0);Me.exports=Vt});var _=h((Rn,Be)=>{"use strict";var We=L(),_t=(t,e,r)=>{let s=new We(t,r),i=new We(e,r);return s.compare(i)||s.compareBuild(i)};Be.exports=_t});var Ke=h(($n,ze)=>{"use strict";var bt=_(),Ht=(t,e)=>t.sort((r,s)=>bt(r,s,e));ze.exports=Ht});var Je=h((mn,Ze)=>{"use strict";var kt=_(),Mt=(t,e)=>t.sort((r,s)=>kt(s,r,e));Ze.exports=Mt});var x=h((In,Qe)=>{"use strict";var Yt=d(),Wt=(t,e,r)=>Yt(t,e,r)>0;Qe.exports=Wt});var b=h((Ln,er)=>{"use strict";var Bt=d(),zt=(t,e,r)=>Bt(t,e,r)<0;er.exports=zt});var J=h((Nn,rr)=>{"use strict";var Kt=d(),Zt=(t,e,r)=>Kt(t,e,r)===0;rr.exports=Zt});var Q=h((On,tr)=>{"use strict";var Jt=d(),Qt=(t,e,r)=>Jt(t,e,r)!==0;tr.exports=Qt});var H=h((Sn,sr)=>{"use strict";var es=d(),rs=(t,e,r)=>es(t,e,r)>=0;sr.exports=rs});var k=h((dn,ir)=>{"use strict";var ts=d(),ss=(t,e,r)=>ts(t,e,r)<=0;ir.exports=ss});var ee=h((An,nr)=>{"use strict";var is=J(),ns=Q(),os=x(),cs=H(),ls=b(),as=k(),us=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return is(t,r,s);case"!=":return ns(t,r,s);case">":return os(t,r,s);case">=":return cs(t,r,s);case"<":return ls(t,r,s);case"<=":return as(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};nr.exports=us});var cr=h((Tn,or)=>{"use strict";var Es=L(),fs=q(),{safeRe:M,t:Y}=w(),hs=(t,e)=>{if(t instanceof Es)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?M[Y.COERCEFULL]:M[Y.COERCE]);else{let u=e.includePrerelease?M[Y.COERCERTLFULL]:M[Y.COERCERTL],R;for(;(R=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||R.index+R[0].length!==r.index+r[0].length)&&(r=R),u.lastIndex=R.index+R[1].length+R[2].length;u.lastIndex=-1}if(r===null)return null;let s=r[2],i=r[3]||"0",n=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return fs(`${s}.${i}.${n}${o}${a}`,e)};or.exports=hs});var ar=h((qn,lr)=>{"use strict";var re=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};lr.exports=re});var A=h((wn,hr)=>{"use strict";var ps=/\s+/g,te=class t{constructor(e,r){if(r=$s(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof se)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(ps," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(i=>!Er(i[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&ds(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let s=((this.options.includePrerelease&&Os)|(this.options.loose&&Ss))+":"+e,i=ur.get(s);if(i)return i;let n=this.options.loose,o=n?S[N.HYPHENRANGELOOSE]:S[N.HYPHENRANGE];e=e.replace(o,Ds(this.options.includePrerelease)),m("hyphen replace",e),e=e.replace(S[N.COMPARATORTRIM],Is),m("comparator trim",e),e=e.replace(S[N.TILDETRIM],Ls),m("tilde trim",e),e=e.replace(S[N.CARETTRIM],Ns),m("caret trim",e);let a=e.split(" ").map(E=>As(E,this.options)).join(" ").split(/\s+/).map(E=>Cs(E,this.options));n&&(a=a.filter(E=>(m("loose invalid filter",E,this.options),!!E.match(S[N.COMPARATORLOOSE])))),m("range list",a);let u=new Map,R=a.map(E=>new se(E,this.options));for(let E of R){if(Er(E))return[E];u.set(E.value,E)}u.size>1&&u.has("")&&u.delete("");let $=[...u.values()];return ur.set(s,$),$}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>fr(s,r)&&e.set.some(i=>fr(i,r)&&s.every(n=>i.every(o=>n.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ms(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Gs(this.set[r],e,this.options))return!0;return!1}};hr.exports=te;var Rs=ar(),ur=new Rs,$s=F(),se=C(),m=v(),ms=L(),{safeRe:S,t:N,comparatorTrimReplace:Is,tildeTrimReplace:Ls,caretTrimReplace:Ns}=w(),{FLAG_INCLUDE_PRERELEASE:Os,FLAG_LOOSE:Ss}=P(),Er=t=>t.value==="<0.0.0-0",ds=t=>t.value==="",fr=(t,e)=>{let r=!0,s=t.slice(),i=s.pop();for(;r&&s.length;)r=s.every(n=>i.intersects(n,e)),i=s.pop();return r},As=(t,e)=>(m("comp",t,e),t=ws(t,e),m("caret",t),t=Ts(t,e),m("tildes",t),t=Ps(t,e),m("xrange",t),t=xs(t,e),m("stars",t),t),O=t=>!t||t.toLowerCase()==="x"||t==="*",Ts=(t,e)=>t.trim().split(/\s+/).map(r=>qs(r,e)).join(" "),qs=(t,e)=>{let r=e.loose?S[N.TILDELOOSE]:S[N.TILDE];return t.replace(r,(s,i,n,o,a)=>{m("tilde",t,s,i,n,o,a);let u;return O(i)?u="":O(n)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:O(o)?u=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`:a?(m("replaceTilde pr",a),u=`>=${i}.${n}.${o}-${a} <${i}.${+n+1}.0-0`):u=`>=${i}.${n}.${o} <${i}.${+n+1}.0-0`,m("tilde return",u),u})},ws=(t,e)=>t.trim().split(/\s+/).map(r=>gs(r,e)).join(" "),gs=(t,e)=>{m("caret",t,e);let r=e.loose?S[N.CARETLOOSE]:S[N.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(i,n,o,a,u)=>{m("caret",t,i,n,o,a,u);let R;return O(n)?R="":O(o)?R=`>=${n}.0.0${s} <${+n+1}.0.0-0`:O(a)?n==="0"?R=`>=${n}.${o}.0${s} <${n}.${+o+1}.0-0`:R=`>=${n}.${o}.0${s} <${+n+1}.0.0-0`:u?(m("replaceCaret pr",u),n==="0"?o==="0"?R=`>=${n}.${o}.${a}-${u} <${n}.${o}.${+a+1}-0`:R=`>=${n}.${o}.${a}-${u} <${n}.${+o+1}.0-0`:R=`>=${n}.${o}.${a}-${u} <${+n+1}.0.0-0`):(m("no pr"),n==="0"?o==="0"?R=`>=${n}.${o}.${a}${s} <${n}.${o}.${+a+1}-0`:R=`>=${n}.${o}.${a}${s} <${n}.${+o+1}.0-0`:R=`>=${n}.${o}.${a} <${+n+1}.0.0-0`),m("caret return",R),R})},Ps=(t,e)=>(m("replaceXRanges",t,e),t.split(/\s+/).map(r=>vs(r,e)).join(" ")),vs=(t,e)=>{t=t.trim();let r=e.loose?S[N.XRANGELOOSE]:S[N.XRANGE];return t.replace(r,(s,i,n,o,a,u)=>{m("xRange",t,s,i,n,o,a,u);let R=O(n),$=R||O(o),E=$||O(a),I=E;return i==="="&&I&&(i=""),u=e.includePrerelease?"-0":"",R?i===">"||i==="<"?s="<0.0.0-0":s="*":i&&I?($&&(o=0),a=0,i===">"?(i=">=",$?(n=+n+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",$?n=+n+1:o=+o+1),i==="<"&&(u="-0"),s=`${i+n}.${o}.${a}${u}`):$?s=`>=${n}.0.0${u} <${+n+1}.0.0-0`:E&&(s=`>=${n}.${o}.0${u} <${n}.${+o+1}.0-0`),m("xRange return",s),s})},xs=(t,e)=>(m("replaceStars",t,e),t.trim().replace(S[N.STAR],"")),Cs=(t,e)=>(m("replaceGTE0",t,e),t.trim().replace(S[e.includePrerelease?N.GTE0PRE:N.GTE0],"")),Ds=t=>(e,r,s,i,n,o,a,u,R,$,E,I)=>(O(s)?r="":O(i)?r=`>=${s}.0.0${t?"-0":""}`:O(n)?r=`>=${s}.${i}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,O(R)?u="":O($)?u=`<${+R+1}.0.0-0`:O(E)?u=`<${R}.${+$+1}.0-0`:I?u=`<=${R}.${$}.${E}-${I}`:t?u=`<${R}.${$}.${+E+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Gs=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(m(t[s].semver),t[s].semver!==se.ANY&&t[s].semver.prerelease.length>0){let i=t[s].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var C=h((gn,Lr)=>{"use strict";var D=Symbol("SemVer ANY"),oe=class t{static get ANY(){return D}constructor(e,r){if(r=pr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ne("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,ne("comp",this)}parse(e){let r=this.options.loose?Rr[$r.COMPARATORLOOSE]:Rr[$r.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new mr(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(ne("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new mr(e,this.options)}catch{return!1}return ie(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ir(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Ir(this.value,r).test(e.semver):(r=pr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||ie(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ie(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Lr.exports=oe;var pr=F(),{safeRe:Rr,t:$r}=w(),ie=ee(),ne=v(),mr=L(),Ir=A()});var G=h((Pn,Nr)=>{"use strict";var ys=A(),Fs=(t,e,r)=>{try{e=new ys(e,r)}catch{return!1}return e.test(t)};Nr.exports=Fs});var Sr=h((vn,Or)=>{"use strict";var js=A(),Xs=(t,e)=>new js(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Or.exports=Xs});var Ar=h((xn,dr)=>{"use strict";var Us=L(),Vs=A(),_s=(t,e,r)=>{let s=null,i=null,n=null;try{n=new Vs(e,r)}catch{return null}return t.forEach(o=>{n.test(o)&&(!s||i.compare(o)===-1)&&(s=o,i=new Us(s,r))}),s};dr.exports=_s});var qr=h((Cn,Tr)=>{"use strict";var bs=L(),Hs=A(),ks=(t,e,r)=>{let s=null,i=null,n=null;try{n=new Hs(e,r)}catch{return null}return t.forEach(o=>{n.test(o)&&(!s||i.compare(o)===1)&&(s=o,i=new bs(s,r))}),s};Tr.exports=ks});var Pr=h((Dn,gr)=>{"use strict";var ce=L(),Ms=A(),wr=x(),Ys=(t,e)=>{t=new Ms(t,e);let r=new ce("0.0.0");if(t.test(r)||(r=new ce("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let i=t.set[s],n=null;i.forEach(o=>{let a=new ce(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!n||wr(a,n))&&(n=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!r||wr(r,n))&&(r=n)}return r&&t.test(r)?r:null};gr.exports=Ys});var xr=h((Gn,vr)=>{"use strict";var Ws=A(),Bs=(t,e)=>{try{return new Ws(t,e).range||"*"}catch{return null}};vr.exports=Bs});var W=h((yn,yr)=>{"use strict";var zs=L(),Gr=C(),{ANY:Ks}=Gr,Zs=A(),Js=G(),Cr=x(),Dr=b(),Qs=k(),ei=H(),ri=(t,e,r,s)=>{t=new zs(t,s),e=new Zs(e,s);let i,n,o,a,u;switch(r){case">":i=Cr,n=Qs,o=Dr,a=">",u=">=";break;case"<":i=Dr,n=ei,o=Cr,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Js(t,e,s))return!1;for(let R=0;R<e.set.length;++R){let $=e.set[R],E=null,I=null;if($.forEach(f=>{f.semver===Ks&&(f=new Gr(">=0.0.0")),E=E||f,I=I||f,i(f.semver,E.semver,s)?E=f:o(f.semver,I.semver,s)&&(I=f)}),E.operator===a||E.operator===u||(!I.operator||I.operator===a)&&n(t,I.semver))return!1;if(I.operator===u&&o(t,I.semver))return!1}return!0};yr.exports=ri});var jr=h((Fn,Fr)=>{"use strict";var ti=W(),si=(t,e,r)=>ti(t,e,">",r);Fr.exports=si});var Ur=h((jn,Xr)=>{"use strict";var ii=W(),ni=(t,e,r)=>ii(t,e,"<",r);Xr.exports=ni});var br=h((Xn,_r)=>{"use strict";var Vr=A(),oi=(t,e,r)=>(t=new Vr(t,r),e=new Vr(e,r),t.intersects(e,r));_r.exports=oi});var kr=h((Un,Hr)=>{"use strict";var ci=G(),li=d();Hr.exports=(t,e,r)=>{let s=[],i=null,n=null,o=t.sort(($,E)=>li($,E,r));for(let $ of o)ci($,e,r)?(n=$,i||(i=$)):(n&&s.push([i,n]),n=null,i=null);i&&s.push([i,null]);let a=[];for(let[$,E]of s)$===E?a.push($):!E&&$===o[0]?a.push("*"):E?$===o[0]?a.push(`<=${E}`):a.push(`${$} - ${E}`):a.push(`>=${$}`);let u=a.join(" || "),R=typeof e.raw=="string"?e.raw:String(e);return u.length<R.length?u:e}});var Kr=h((Vn,zr)=>{"use strict";var Mr=A(),ae=C(),{ANY:le}=ae,y=G(),ue=d(),ai=(t,e,r={})=>{if(t===e)return!0;t=new Mr(t,r),e=new Mr(e,r);let s=!1;e:for(let i of t.set){for(let n of e.set){let o=Ei(i,n,r);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},ui=[new ae(">=0.0.0-0")],Yr=[new ae(">=0.0.0")],Ei=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===le){if(e.length===1&&e[0].semver===le)return!0;r.includePrerelease?t=ui:t=Yr}if(e.length===1&&e[0].semver===le){if(r.includePrerelease)return!0;e=Yr}let s=new Set,i,n;for(let f of t)f.operator===">"||f.operator===">="?i=Wr(i,f,r):f.operator==="<"||f.operator==="<="?n=Br(n,f,r):s.add(f.semver);if(s.size>1)return null;let o;if(i&&n){if(o=ue(i.semver,n.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||n.operator!=="<="))return null}for(let f of s){if(i&&!y(f,String(i),r)||n&&!y(f,String(n),r))return null;for(let et of e)if(!y(f,String(et),r))return!1;return!0}let a,u,R,$,E=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1,I=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;E&&E.prerelease.length===1&&n.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let f of e){if($=$||f.operator===">"||f.operator===">=",R=R||f.operator==="<"||f.operator==="<=",i){if(I&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===I.major&&f.semver.minor===I.minor&&f.semver.patch===I.patch&&(I=!1),f.operator===">"||f.operator===">="){if(a=Wr(i,f,r),a===f&&a!==i)return!1}else if(i.operator===">="&&!y(i.semver,String(f),r))return!1}if(n){if(E&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===E.major&&f.semver.minor===E.minor&&f.semver.patch===E.patch&&(E=!1),f.operator==="<"||f.operator==="<="){if(u=Br(n,f,r),u===f&&u!==n)return!1}else if(n.operator==="<="&&!y(n.semver,String(f),r))return!1}if(!f.operator&&(n||i)&&o!==0)return!1}return!(i&&R&&!n&&o!==0||n&&$&&!i&&o!==0||I||E)},Wr=(t,e,r)=>{if(!t)return e;let s=ue(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Br=(t,e,r)=>{if(!t)return e;let s=ue(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};zr.exports=ai});var Ki=h((_n,Qr)=>{"use strict";var Ee=w(),Zr=P(),fi=L(),Jr=K(),hi=q(),pi=Ae(),Ri=qe(),$i=Pe(),mi=Ce(),Ii=Ge(),Li=Fe(),Ni=Xe(),Oi=Ve(),Si=d(),di=ke(),Ai=Ye(),Ti=_(),qi=Ke(),wi=Je(),gi=x(),Pi=b(),vi=J(),xi=Q(),Ci=H(),Di=k(),Gi=ee(),yi=cr(),Fi=C(),ji=A(),Xi=G(),Ui=Sr(),Vi=Ar(),_i=qr(),bi=Pr(),Hi=xr(),ki=W(),Mi=jr(),Yi=Ur(),Wi=br(),Bi=kr(),zi=Kr();Qr.exports={parse:hi,valid:pi,clean:Ri,inc:$i,diff:mi,major:Ii,minor:Li,patch:Ni,prerelease:Oi,compare:Si,rcompare:di,compareLoose:Ai,compareBuild:Ti,sort:qi,rsort:wi,gt:gi,lt:Pi,eq:vi,neq:xi,gte:Ci,lte:Di,cmp:Gi,coerce:yi,Comparator:Fi,Range:ji,satisfies:Xi,toComparators:Ui,maxSatisfying:Vi,minSatisfying:_i,minVersion:bi,validRange:Hi,outside:ki,gtr:Mi,ltr:Yi,intersects:Wi,simplifyRange:Bi,subset:zi,SemVer:fi,re:Ee.re,src:Ee.src,tokens:Ee.t,SEMVER_SPEC_VERSION:Zr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Zr.RELEASE_TYPES,compareIdentifiers:Jr.compareIdentifiers,rcompareIdentifiers:Jr.rcompareIdentifiers}});export{Ki as a};
@@ -1 +0,0 @@
1
- import{g as T,m as C}from"./chunk-ALG7CIS3.js";import{b as h}from"./chunk-QMB5XE4Y.js";import{$a as e,Ac as a,Bc as r,Cc as x,Gb as u,Hb as D,Ib as S,Kb as I,Lb as w,Mb as B,Nb as f,Ob as i,Pb as n,Qb as m,Xb as c,Ya as E,Yb as M,bd as P,jc as o,kc as p,la as _,lb as v,lc as g,wc as y}from"./chunk-R3VPSO5X.js";var $=t=>({pluginName:t});function O(t,k){t&1&&(i(0,"ul",7)(1,"li"),o(2),a(3,"translate"),n(),i(4,"li"),o(5),a(6,"translate"),n()()),t&2&&(e(2),p(r(3,2,"plugins.manage.confirm_disable_accessory_1")),e(3),p(r(6,4,"plugins.manage.confirm_disable_accessory_2")))}function j(t,k){t&1&&(i(0,"ul",7)(1,"li"),o(2),a(3,"translate"),n(),i(4,"li"),o(5),a(6,"translate"),n()()),t&2&&(e(2),p(r(3,2,"plugins.manage.confirm_disable_platform_1")),e(3),p(r(6,4,"plugins.manage.confirm_disable_platform_2")))}var H=(()=>{class t{$activeModal=_(C);pluginName;isConfigured=!1;isConfiguredDynamicPlatform=!1;constructor(){}static \u0275fac=function(d){return new(d||t)};static \u0275cmp=v({type:t,selectors:[["ng-component"]],inputs:{pluginName:"pluginName",isConfigured:"isConfigured",isConfiguredDynamicPlatform:"isConfiguredDynamicPlatform"},decls:26,vars:22,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3","text-center"],[1,"fas","fa-fw","fa-circle-pause","primary-text",2,"font-size","75px"],[1,"mb-3"],["type","warning",1,"mb-0",3,"dismissible"],[1,"w-100","text-center","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-danger",3,"click"]],template:function(d,s){d&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),o(3),n(),i(4,"button",3),a(5,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),n()(),i(6,"div",4)(7,"div",5),m(8,"i",6),n(),D(9,O,7,6,"ul",7),D(10,j,7,6,"ul",7),i(11,"ngb-alert",8)(12,"p",9),o(13),a(14,"translate"),n()()(),i(15,"div",10)(16,"div",11)(17,"button",12),a(18,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),o(19),a(20,"translate"),n()(),m(21,"div",13),i(22,"div",14)(23,"button",15),c("click",function(){return s.$activeModal.close()}),o(24),a(25,"translate"),n()()()()),d&2&&(e(3),p(s.pluginName),e(),u("aria-label",r(5,9,"form.button_close")),e(5),S(s.isConfigured&&!s.isConfiguredDynamicPlatform?9:-1),e(),S(s.isConfigured&&s.isConfiguredDynamicPlatform?10:-1),e(),f("dismissible",!1),e(2),p(x(14,11,"plugins.manage.confirm_disable",y(20,$,s.pluginName))),e(4),u("aria-label",r(18,14,"form.button_close")),e(2),g(" ",r(20,16,"form.button_close")," "),e(5),g(" ",r(25,18,"plugins.manage.disable")," "))},dependencies:[T,h],encapsulation:2})}return t})();var A=t=>({author:t});function F(t,k){if(t&1&&(i(0,"li",9),m(1,"i",15),i(2,"a",16),o(3),n()()),t&2){let l=k.$implicit,d=M();e(),f("ngClass",d.getIconClass(l.type)),e(),f("href",l.url,E),e(),p(l.url)}}var Y=(()=>{class t{$activeModal=_(C);plugin;fundingOptions;constructor(){}ngOnInit(){this.plugin.funding||this.$activeModal.close(),this.plugin.name==="homebridge-config-ui-x"&&(this.plugin.author="oznu"),Array.isArray(this.plugin.funding)?this.fundingOptions=this.plugin.funding.map(l=>{if(typeof l=="string")return{type:"other",url:l};if(typeof l=="object")return{type:l.type||"other",url:l.url}}):typeof this.plugin.funding=="string"?this.fundingOptions=[{type:"other",url:this.plugin.funding}]:typeof this.plugin.funding=="object"&&(this.fundingOptions=[{type:this.plugin.funding.type||"other",url:this.plugin.funding.url}])}getIconClass(l){switch(l.toLowerCase()){case"paypal":return"fab fa-fw fa-paypal";case"github":return"fab fa-fw fa-github";case"patreon":return"fab fa-fw fa-patreon";case"kofi":case"ko-fi":return"fas fa-fw fa-coffee";default:return"fas fa-fw fa-link"}}static \u0275fac=function(d){return new(d||t)};static \u0275cmp=v({type:t,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:28,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","pink-text","mb-3"],[1,"fas","fa-fw","fa-heart",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box"],[1,"list-group-item"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"me-2","primary-text","fa-fw","fa-xl",3,"ngClass"],["target","_blank","rel","noopener noreferrer",1,"text-break-all",3,"href"]],template:function(d,s){d&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),o(3),a(4,"translate"),n(),i(5,"button",3),a(6,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),n()(),i(7,"div",4)(8,"div",5),m(9,"i",6),n(),i(10,"ul",7)(11,"li"),o(12),a(13,"translate"),n(),i(14,"li"),o(15),a(16,"translate"),n()(),i(17,"ul",8),w(18,F,4,3,"li",9,I),n()(),i(20,"div",10),m(21,"div",11),i(22,"div",12)(23,"button",13),a(24,"translate"),c("click",function(){return s.$activeModal.dismiss("Dismiss")}),o(25),a(26,"translate"),n()(),m(27,"div",14),n()()),d&2&&(e(3),p(x(4,6,"plugins.donate.tile_donate_to",y(19,A,"@"+s.plugin.author))),e(2),u("aria-label",r(6,9,"form.button_close")),e(7),p(r(13,11,"plugins.donate.message_1")),e(3),p(r(16,13,"plugins.donate.message_2")),e(3),B(s.fundingOptions),e(5),u("aria-label",r(24,15,"form.button_close")),e(2),g(" ",r(26,17,"form.button_close")," "))},dependencies:[P,h],styles:[".text-break-all[_ngcontent-%COMP%]{word-break:break-all}"]})}return t})();export{H as a,Y as b};
@@ -1,4 +0,0 @@
1
- import{a as P}from"./chunk-IOWBVW62.js";import{a as O}from"./chunk-UVOJ3BF7.js";import{c as y,e as E,l as k,z as $}from"./chunk-VLX322GM.js";import{b as D}from"./chunk-2G7GNBIF.js";import{b as L}from"./chunk-XHI7IAUN.js";import{k as I,n as H}from"./chunk-XUH357B7.js";import{a as T}from"./chunk-QMB5XE4Y.js";import{$a as s,Hb as d,Ib as m,Nb as f,Ob as u,Pb as l,Qb as w,Ub as g,Xb as _,Yb as a,h as S,jc as v,la as r,lb as x,qc as b,ra as c,rc as M,sa as p,sc as V,w as C}from"./chunk-R3VPSO5X.js";function z(i,h){i&1&&w(0,"i",6)}function A(i,h){i&1&&w(0,"i",7)}function F(i,h){if(i&1){let t=g();u(0,"ngx-monaco-editor",10),_("onInit",function(e){c(t);let o=a();return p(o.onEditorInit(e))})("keydown.control.s",function(e){c(t);let o=a();return e.preventDefault(),p(o.onSave())})("keydown.meta.s",function(e){c(t);let o=a();return e.preventDefault(),p(o.onSave())}),l()}if(i&2){let t=a();f("options",t.editorOptions)("model",t.monacoEditorModel)}}function W(i,h){if(i&1){let t=g();u(0,"textarea",11),V("ngModelChange",function(e){c(t);let o=a();return M(o.startupScript,e)||(o.startupScript=e),p(e)}),v(1," "),l()}if(i&2){let t=a();b("ngModel",t.startupScript)}}var tt=(()=>{class i{$api=r(H);$md=r(O);$route=r(D);$settings=r(L);$toastr=r(I);$translate=r(T);startupScript;saveInProgress;isMobile=!1;options={printMargin:!1};monacoEditor;editorOptions;monacoEditorModel;lastHeight;visualViewPortEventCallback;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"shell",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0},this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(t=>{this.startupScript=t.startupScript.script}),this.monacoEditorModel={value:"",language:"shell"}}onEditorInit(t){this.monacoEditor=t,this.monacoEditor.getModel().setValue(this.startupScript)}onSave(){return S(this,null,function*(){if(!this.saveInProgress){if(this.saveInProgress=!0,this.isMobile||(yield this.monacoEditor.getAction("editor.action.formatDocument").run(),this.startupScript=this.monacoEditor.getModel().getValue()),!["#!/bin/sh","#!/bin/bash"].includes(this.startupScript.split(`
2
- `)[0].trim())){this.$toastr.error(this.$translate.instant("platform.docker.must_use_hashbang"),this.$translate.instant("toast.title_error")),this.startupScript=`#!/bin/sh
3
-
4
- ${this.startupScript}`,this.isMobile||this.monacoEditor.getModel().setValue(this.startupScript),this.saveInProgress=!1;return}try{yield C(this.$api.put("/platform-tools/docker/startup-script",{script:this.startupScript})),this.$toastr.success(this.$translate.instant("platform.docker.restart_required"),this.$translate.instant("platform.docker.script_saved"))}catch(t){console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}ngOnDestroy(){window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=x({type:i,selectors:[["ng-component"]],decls:11,vars:5,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0","font-monospace"],[1,"col-6","text-end"],[1,"btn","btn-primary","waves-effect","m-0",3,"click","disabled"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","my-2",3,"options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModel"],[1,"flex-grow-1","h-100","w-100","my-2",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModelChange","ngModel"]],template:function(n,e){n&1&&(u(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),v(4,"startup.sh"),l()(),u(5,"div",4)(6,"button",5),_("click",function(){return e.onSave()}),d(7,z,1,0,"i",6),d(8,A,1,0,"i",7),l()()(),d(9,F,1,2,"ngx-monaco-editor",8),d(10,W,2,1,"textarea",9),l()),n&2&&(s(6),f("disabled",e.saveInProgress),s(),m(e.saveInProgress?-1:7),s(),m(e.saveInProgress?8:-1),s(),m(e.isMobile?-1:9),s(),m(e.isMobile?10:-1))},dependencies:[P,$,y,E,k],encapsulation:2})}return i})();export{tt as a};
@@ -1 +0,0 @@
1
- import{U as ie,a as U,b as X,c as Y,f as te}from"./chunk-CMO7ESK6.js";import{a as ne}from"./chunk-UVOJ3BF7.js";import{m as $,n as K,o as Q}from"./chunk-ALG7CIS3.js";import{c as W,e as R,f as j,i as z,l as q,m as G,z as J}from"./chunk-VLX322GM.js";import{b as ee}from"./chunk-B3LZRDAG.js";import{b as Z}from"./chunk-XHI7IAUN.js";import{b as w}from"./chunk-QMB5XE4Y.js";import{$a as o,Ac as s,Bc as l,Cc as H,Gb as v,Hb as h,Ib as M,Kb as I,Lb as V,Mb as F,Nb as _,Ob as a,Pb as r,Qb as p,Ub as B,Xa as N,Xb as b,Yb as m,bd as O,jc as d,kc as u,la as f,lb as y,lc as S,qc as k,ra as C,rc as T,sa as x,sc as A,vc as L,wc as E}from"./chunk-R3VPSO5X.js";var oe=(()=>{class t{$activeModal=f($);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],decls:31,vars:21,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fa","fa-fw","fa-question-circle-o","primary-text",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li"),d(13),s(14,"translate"),r(),a(15,"li"),d(16),s(17,"translate"),r(),a(18,"li"),d(19),s(20,"translate"),r(),a(21,"li"),d(22),s(23,"translate"),r()()(),a(24,"div",8),p(25,"div",9),a(26,"div",10)(27,"button",11),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(28),s(29,"translate"),r()(),p(30,"div",12),r()()()),i&2&&(o(4),u(l(5,7,"support.title")),o(2),v("aria-label",l(7,9,"form.button_close")),o(7),u(l(14,11,"accessories.support.list_1")),o(3),u(l(17,13,"accessories.support.list_2")),o(3),u(l(20,15,"accessories.support.list_3")),o(3),u(l(23,17,"accessories.support.list_4")),o(6),S(" ",l(29,19,"form.button_close")," "))},dependencies:[w],encapsulation:2})}return t})();var se=()=>({standalone:!0}),ae=(()=>{class t{$activeModal=f($);roomName;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{roomName:"roomName"},decls:28,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-folder-plus","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["autocomplete","off","type","text","id","form-name","autofocus","",1,"form-control","custom-input",3,"ngModelChange","keyup.enter","ngModel","ngModelOptions"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"form")(2,"div",1)(3,"h5",2),d(4),s(5,"translate"),r(),a(6,"button",3),s(7,"translate"),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),r()(),a(8,"div",4)(9,"div",5),p(10,"i",6),r(),a(11,"ul",7)(12,"li",8)(13,"label",9),d(14),s(15,"translate"),r(),a(16,"div",10)(17,"input",11),A("ngModelChange",function(D){return T(n.roomName,D)||(n.roomName=D),D}),b("keyup.enter",function(){return n.$activeModal.close(n.roomName)}),r()()()()(),a(18,"div",12)(19,"div",13)(20,"button",14),b("click",function(){return n.$activeModal.dismiss("Dismiss")}),d(21),s(22,"translate"),r()(),p(23,"div",15),a(24,"div",16)(25,"button",17),b("click",function(){return n.$activeModal.close(n.roomName)}),d(26),s(27,"translate"),r()()()()()),i&2&&(o(4),u(l(5,8,"accessories.button_add_room")),o(2),v("aria-label",l(7,10,"form.button_close")),o(8),u(l(15,12,"accessories.room_name")),o(3),k("ngModel",n.roomName),_("ngModelOptions",L(18,se)),o(4),S(" ",l(22,14,"form.button_close")," "),o(4),_("disabled",!n.roomName),o(),S(" ",l(27,16,"form.button_save")," "))},dependencies:[J,G,W,R,j,q,z,w],encapsulation:2})}return t})();var re=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-drag-here-placeholder"]],decls:5,vars:3,consts:[[1,"accessory-box"],[1,"fas","fa-fw","fa-arrow-alt-circle-down","accessory-icon"],[1,"accessory-label"]],template:function(i,n){i&1&&(a(0,"div",0),p(1,"i",1),a(2,"div",2),d(3),s(4,"translate"),r()()),i&2&&(o(3),u(l(4,1,"accessories.control.drag_here")))},dependencies:[w],styles:[".accessory-box[_ngcontent-%COMP%]{opacity:.2}"]})}return t})();var le=t=>({"cursor-move":t}),ce=t=>({"justify-content-between":t}),de=t=>({link:t});function pe(t,g){if(t&1&&(a(0,"div",0)(1,"div",18)(2,"h5",19),d(3),s(4,"translate"),r()()()),t&2){let e=m().$implicit,i=m(2);o(2),_("ngClass",E(4,le,!i.isMobile)),o(),S(" ",e.name==="Default Room"?l(4,2,"accessories.control.default_room"):e.name," ")}}function me(t,g){if(t&1&&(a(0,"div",22),p(1,"app-accessory-tile",23),r()),t&2){let e=m().$implicit;o(),_("service",e)}}function ue(t,g){if(t&1&&h(0,me,2,1,"div",22),t&2){let e=g.$implicit,i=m(4);M(!i.hideHidden||!e.hidden?0:-1)}}function _e(t,g){if(t&1){let e=B();a(0,"div",20),A("dragulaModelChange",function(n){C(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),x(n)}),V(1,ue,1,1,null,null,I),p(3,"div",21)(4,"div",21)(5,"div",21)(6,"div",21)(7,"div",21)(8,"div",21)(9,"div",21)(10,"div",21)(11,"div",21)(12,"div",21),r()}if(t&2){let e=m().$implicit,i=m(2);_("ngClass",E(3,ce,i.isMobile))("dragula","services-bag"),k("dragulaModel",e.services),o(),F(e.services)}}function be(t,g){if(t&1){let e=B();a(0,"div",24),A("dragulaModelChange",function(n){C(e);let c=m().$implicit;return T(c.services,n)||(c.services=n),x(n)}),p(1,"app-drag-here-placeholder",25),r()}if(t&2){let e=m().$implicit;_("dragula","services-bag"),k("dragulaModel",e.services)}}function fe(t,g){if(t&1&&(a(0,"div"),h(1,pe,5,6,"div",0),a(2,"div",15),h(3,_e,13,5,"div",16),h(4,be,2,2,"div",17),r()()),t&2){let e=g.$implicit,i=m(2);o(),M(!i.isMobile||e.services.length?1:-1),o(2),M(e.services.length?3:-1),o(),M(!e.services.length&&!i.isMobile?4:-1)}}function ge(t,g){if(t&1){let e=B();a(0,"div",1)(1,"div",2)(2,"h3",3),d(3),s(4,"translate"),r()(),a(5,"div",4)(6,"button",5),s(7,"translate"),s(8,"translate"),b("click",function(){C(e);let n=m();return x(n.addRoom())}),p(9,"i",6),r(),a(10,"button",5),s(11,"translate"),s(12,"translate"),s(13,"translate"),s(14,"translate"),b("click",function(){C(e);let n=m();return x(n.hideHidden=!n.hideHidden)}),p(15,"i",7),r(),a(16,"div",8)(17,"button",9),s(18,"translate"),s(19,"translate"),b("click",function(){C(e);let n=m();return x(n.toggleLayoutLock())}),p(20,"i",10),r(),a(21,"button",9),s(22,"translate"),s(23,"translate"),b("click",function(){C(e);let n=m();return x(n.toggleLayoutLock())}),p(24,"i",11),r()(),a(25,"button",12),s(26,"translate"),b("click",function(){C(e);let n=m();return x(n.openSupport())}),p(27,"i",13),r()()(),a(28,"div",14),A("dragulaModelChange",function(n){C(e);let c=m();return T(c.$accessories.rooms,n)||(c.$accessories.rooms=n),x(n)}),V(29,fe,5,3,"div",null,I),r()}if(t&2){let e=m();o(3),u(l(4,17,"accessories.title_accessories")),o(3),_("hidden",e.isMobile)("ngbTooltip",l(7,19,"accessories.button_add_room")),v("aria-label",l(8,21,"accessories.button_add_room")),o(4),_("hidden",e.isMobile)("ngbTooltip",e.hideHidden?l(11,23,"accessories.button_hidden_show"):l(12,25,"accessories.button_hidden_hide")),v("aria-label",e.hideHidden?l(13,27,"accessories.button_hidden_show"):l(14,29,"accessories.button_hidden_hide")),o(5),_("ngClass",e.hideHidden?"fa-eye-slash":"fa-eye"),o(2),_("disabled",!e.isMobile)("ngbTooltip",l(18,31,"form.button_unlock")),v("aria-label",l(19,33,"form.button_unlock")),o(4),_("disabled",e.isMobile)("ngbTooltip",l(22,35,"form.button_lock")),v("aria-label",l(23,37,"form.button_lock")),o(4),v("aria-label",l(26,39,"support.title")),o(3),_("dragula","rooms-bag"),k("dragulaModel",e.$accessories.rooms),o(),F(e.$accessories.rooms)}}function ve(t,g){t&1&&(a(0,"p",32),d(1),s(2,"translate"),r()),t&2&&(o(),u(l(2,1,"accessories.settings_link")))}function Ce(t,g){if(t&1&&(a(0,"div",0)(1,"div",26)(2,"h3",27),d(3),s(4,"translate"),r()(),a(5,"div",28)(6,"div",29)(7,"h5",30),d(8),s(9,"translate"),r(),p(10,"p",31),s(11,"translate"),h(12,ve,3,3,"p",32),r()()()),t&2){let e=m();o(3),u(l(4,4,"accessories.title_accessories")),o(5),u(l(9,6,"accessories.control_disabled")),o(2),_("innerHTML",H(11,8,"accessories.message_must_use_insecure_mode",E(11,de,e.linkInsecure)),N),o(2),M(e.$auth.user.admin?12:-1)}}var Ue=(()=>{class t{$auth=f(ee);dragulaService=f(U);$modal=f(K);$settings=f(Z);$md=f(ne);$accessories=f(te);isMobile=!1;hideHidden=!0;orderSubscription;linkInsecure='<a href="https://github.com/homebridge/homebridge-config-ui-x/wiki/Enabling-Accessory-Control" target="_blank"><i class="fa fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){let e=this.dragulaService;this.isMobile=this.$md.detect.mobile(),e.createGroup("rooms-bag",{moves:(i,n,c)=>!this.isMobile&&c.classList.contains("drag-handle")}),e.createGroup("services-bag",{moves:i=>!this.isMobile&&!i.classList.contains("no-drag")}),this.orderSubscription=e.drop().subscribe(()=>{setTimeout(()=>{this.$accessories.saveLayout()})}),this.isMobile=!0}ngOnInit(){this.$accessories.start()}addRoom(){this.$modal.open(ae,{size:"lg",backdrop:"static"}).result.then(e=>{!e||!e.length||this.$accessories.rooms.find(i=>i.name===e)||(this.$accessories.rooms.push({name:e,services:[]}),this.isMobile&&this.toggleLayoutLock())}).catch(()=>{})}toggleLayoutLock(){this.isMobile=!this.isMobile,this.isMobile?document.querySelectorAll(".services-bag").forEach(i=>{for(let n=0;n<10;n++){let c=document.createElement("div");c.className="accessory-box invisible py-0 my-0",c.style.height="0",i.appendChild(c)}}):document.querySelectorAll(".invisible").forEach(i=>i.remove())}openSupport(){this.$modal.open(oe,{size:"lg",backdrop:"static"})}ngOnDestroy(){this.$accessories.stop(),this.orderSubscription.unsubscribe(),this.dragulaService.destroy("rooms-bag"),this.dragulaService.destroy("services-bag")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["app-accessories"]],decls:2,vars:2,consts:[[1,"row"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end","d-none","d-sm-inline-block"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","hidden","ngbTooltip"],[1,"fas","fa-fw","fa-folder-plus"],[1,"fas","fa-fw",3,"ngClass"],["role","group",1,"btn-group","me-2"],["type","button","container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","my-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-unlock"],[1,"fas","fa-fw","fa-lock"],["type","button",1,"btn","btn-elegant","my-0","me-0",3,"click"],[1,"fa","fa-fw","fa-question-circle-o"],[3,"dragulaModelChange","dragula","dragulaModel"],[1,"row","mb-4"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"ngClass","dragula","dragulaModel"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragula","dragulaModel"],[1,"col-md-12"],[1,"primary-text","drag-handle","room-title","m-0","mb-1","mb-sm-0",3,"ngClass"],[1,"col-md-12","d-flex","flex-wrap","noselect","services-bag",3,"dragulaModelChange","ngClass","dragula","dragulaModel"],[1,"accessory-box","invisible","py-0","my-0",2,"height","0"],[1,"accessory-item","accessory-tab"],[3,"service"],[1,"col-md-12","d-flex","flex-wrap","noselect",3,"dragulaModelChange","dragula","dragulaModel"],[1,"no-drag"],[1,"col-12"],[1,"primary-text","m-0","mb-3"],[1,"col-12","text-center"],["role","alert",1,"alert","alert-warning","p-4"],[1,"mb-3","mt-0"],[1,"mb-0",3,"innerHTML"],[1,"mt-3","mb-0"]],template:function(i,n){i&1&&(h(0,ge,31,41),h(1,Ce,13,13,"div",0)),i&2&&(M(n.$settings.env.enableAccessories?0:-1),o(),M(n.$settings.env.enableAccessories?-1:1))},dependencies:[Q,O,Y,X,ie,re,w],styles:[".room-title[_ngcontent-%COMP%]{margin-left:10px}@media (max-width: 575px){.room-title[_ngcontent-%COMP%]{margin-left:7px}}.services-bag[_ngcontent-%COMP%]{min-height:170px}@media (max-width: 575px){.services-bag[_ngcontent-%COMP%]{min-height:initial}}.cursor-move[_ngcontent-%COMP%]{cursor:move}.gu-transit[_ngcontent-%COMP%] .manage-accessory-button[_ngcontent-%COMP%]{display:none}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return t})();export{ae as a,Ue as b};
@@ -1 +0,0 @@
1
- import"./chunk-QIH36FRX.js";import{q as n}from"./chunk-ALG7CIS3.js";import{A as p}from"./chunk-VLX322GM.js";import{g as i}from"./chunk-2G7GNBIF.js";import"./chunk-VUYAK52W.js";import{c as u}from"./chunk-QMB5XE4Y.js";import{ha as t,kd as m,mb as r}from"./chunk-R3VPSO5X.js";var l=[{path:"",loadComponent:()=>import("./chunk-PODF4FUD.js").then(o=>o.SupportComponent)}],d=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(l),i]})}return o})();var R=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[m,d,n,p,u]})}return o})();export{R as SupportModule};
@@ -1 +0,0 @@
1
- import{e as b}from"./chunk-R3VPSO5X.js";var L=b((p,v)=>{(function(d,r){typeof define=="function"&&define.amd?define([],r):typeof p<"u"?r():(r(),d.FileSaver={})})(p,function(){"use strict";function d(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function r(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function w(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,m=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!m?function(e,t,i){var n=a.URL||a.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin===location.origin?s(o):w(o.href)?r(e,t,i):s(o,o.target="_blank")):(o.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){s(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,i){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(d(e,i),t);else if(w(e))r(e,t,i);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){s(n)})}}:function(e,t,i,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return r(e,t,i);var o=e.type==="application/octet-stream",E=/constructor/i.test(a.HTMLElement)||a.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||o&&E||m)&&typeof FileReader<"u"){var u=new FileReader;u.onloadend=function(){var c=u.result;c=y?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},u.readAsDataURL(e)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(e);n?n.location=f:location.href=f,n=null,setTimeout(function(){h.revokeObjectURL(f)},4e4)}});a.saveAs=l.saveAs=l,typeof v<"u"&&(v.exports=l)})});export{L as a};
@@ -1,2 +0,0 @@
1
- import{A as te,c as D,d as F,e as K,f as A,g as J,j as E,m as Q,p as X,q as Y,w as Z,z as ee}from"./chunk-VLX322GM.js";import{a as le}from"./chunk-YJXHSHNO.js";import{b as se}from"./chunk-B3LZRDAG.js";import{b as ae}from"./chunk-XHI7IAUN.js";import{k as re,m as U,n as oe}from"./chunk-XUH357B7.js";import{l as G}from"./chunk-VUYAK52W.js";import{a as ie,b as ne}from"./chunk-QMB5XE4Y.js";import{$a as n,Ac as a,Bc as s,Gb as L,Hb as z,Ib as I,Nb as m,Ob as o,Pb as r,Qb as u,Ub as $,Xa as M,Xb as x,Yb as _,bd as N,ed as R,fb as b,gc as j,h as k,jc as p,kc as f,lb as O,lc as g,ra as w,sa as C,sd as q,vc as H,w as h,wc as T,xc as B}from"./chunk-R3VPSO5X.js";var de=t=>({background:t}),ce=t=>({anim:t}),me=t=>({"progress-bar-animated":t}),ue=()=>["restoring","restarting","restore-complete"],W=(t,c)=>({"is-valid":t,"is-invalid":c});function ge(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),u(4,"div",7),a(5,"translate"),o(6,"button",8),x("click",function(){w(e);let i=_();return C(i.onClickGettingStarted())}),p(7),a(8,"translate"),r(),o(9,"a",9),x("click",function(){w(e);let i=_();return C(i.onClickRestoreBackup())}),p(10),a(11,"translate"),r()()}t&2&&(n(2),f(s(3,4,"setup.welcome_to_homebridge")),n(2),m("innerHTML",s(5,6,"setup.intro"),M),n(3),g(" ",s(8,8,"setup.button_get_started")," "),n(3),f(s(11,10,"setup_wizard_restore")))}function _e(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"div",11)(8,"form",12),x("ngSubmit",function(){w(e);let i=_();return C(i.createFirstUser())}),o(9,"div",13)(10,"span",14),u(11,"i",15),r(),u(12,"input",16),a(13,"translate"),r(),o(14,"div",13)(15,"span",14),u(16,"i",17),r(),u(17,"input",18),a(18,"translate"),r(),o(19,"div",13)(20,"span",14),u(21,"i",17),r(),u(22,"input",19),a(23,"translate"),r(),o(24,"div",20)(25,"button",21),x("click",function(){w(e);let i=_();return C(i.onClickCancelRestore())}),p(26),a(27,"translate"),r(),o(28,"button",22),p(29),a(30,"translate"),r()()()()()}if(t&2){let e=_();n(2),f(s(3,16,"setup.create_account")),n(3),f(s(6,18,"setup_wizard_create_info")),n(3),m("formGroup",e.createUserForm),n(4),m("readonly",e.loading)("ngClass",B(30,W,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid))("placeholder",s(13,20,"users.label_username")),n(5),m("readonly",e.loading)("ngClass",B(33,W,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors))("placeholder",s(18,22,"users.label_password")),n(5),m("readonly",e.loading)("ngClass",B(36,W,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors))("placeholder",s(23,24,"users.label_confirm_password")),n(3),m("disabled",e.restoreUploading),n(),g(" ",s(27,26,"form.button_back")," "),n(2),m("disabled",e.createUserForm.invalid||e.loading),n(),g(" ",s(30,28,"form.label_continue")," ")}}function fe(t,c){t&1&&(u(0,"i",25),p(1),a(2,"translate")),t&2&&(n(),g(" ",s(2,1,"backup.label_uploading")," "))}function he(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"form.label_continue")," ")}function we(t,c){if(t&1){let e=$();o(0,"div",5)(1,"h4",6),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"input",23),x("change",function(i){w(e);let v=_();return C(v.handleRestoreFileInput(i.target.files))}),r(),o(8,"div",20)(9,"button",21),x("click",function(){w(e);let i=_();return C(i.onClickCancelRestore())}),p(10),a(11,"translate"),r(),o(12,"button",24),x("click",function(){w(e);let i=_();return C(i.onRestoreBackupClick())}),z(13,fe,3,3)(14,he,2,3),r()()()}if(t&2){let e=_();n(2),f(s(3,6,"setup_wizard_restore")),n(3),f(s(6,8,"backup.restore_help_one")),n(4),m("disabled",e.restoreUploading),n(),g(" ",s(11,10,"form.button_back")," "),n(2),m("disabled",e.restoreUploading||!e.selectedFile),n(),I(e.restoreUploading?13:14)}}function Ce(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_restoring")," ")}function be(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_starting")," ")}function xe(t,c){t&1&&(p(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_complete")," ")}function ve(t,c){t&1&&(o(0,"a",27),p(1),a(2,"translate"),r()),t&2&&(n(),g(" ",s(2,1,"form.label_continue")," "))}function ye(t,c){if(t&1&&(o(0,"div",5)(1,"h4",6),z(2,Ce,2,3)(3,be,2,3)(4,xe,2,3),r(),u(5,"div",26),z(6,ve,3,3,"a",27),r()),t&2){let e=_();n(2),I(e.step==="restoring"?2:e.step==="restarting"?3:e.step==="restore-complete"?4:-1),n(4),I(e.step==="restore-complete"?6:-1)}}function Se(t,c){t&1&&(o(0,"div",5)(1,"h4",28),p(2),a(3,"translate"),r(),o(4,"div",10),p(5),a(6,"translate"),r(),o(7,"a",29),p(8),a(9,"translate"),r()()),t&2&&(n(2),f(s(3,3,"setup_wizard_complete_title")),n(3),f(s(6,5,"setup_wizard_completed")),n(3),g(" ",s(9,7,"form.label_continue")," "))}var Le=(()=>{class t{$api;$auth;$settings;$title;$toastr;$translate;$ws;io;step="welcome";backgroundStyle;progress=1;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;loading=!1;selectedFile;restoreUploading=!1;createUserForm=new J({username:new E("",[F.required]),password:new E("",[F.compose([F.required,F.minLength(4)])]),passwordConfirm:new E("",[F.required])},this.matchPassword);constructor(e,l,i,v,P,d,V){this.$api=e,this.$auth=l,this.$settings=i,this.$title=v,this.$toastr=P,this.$translate=d,this.$ws=V}ngOnInit(){return k(this,null,function*(){this.$title.setTitle(this.$translate.instant("setup_wizard_page_title")),yield this.setBackground()})}setBackground(){return k(this,null,function*(){if(this.$settings.settingsLoaded||(yield h(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let e=`${U.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${e}') center/cover`}})}matchPassword(e){let l=e.get("password").value,i=e.get("passwordConfirm").value;if(l!==i)e.get("passwordConfirm").setErrors({matchPassword:!0});else return null}onClickGettingStarted(){this.step="create-account",this.progress=50}onClickRestoreBackup(){this.step="restore-backup",this.progress=20}onClickCancelRestore(){this.selectedFile=null,this.step="welcome",this.progress=1}createFirstUser(){return k(this,null,function*(){this.loading=!0,this.progress=75;let e=this.createUserForm.getRawValue();e.name=e.username;try{yield h(this.$api.post("/setup-wizard/create-first-user",e)),this.$settings.env.setupWizardComplete=!0,this.progress=100,this.loading=!1,yield this.$auth.login({username:e.username,password:e.password}),this.step="setup-complete"}catch(l){this.loading=!1,this.progress=50,console.error(l),this.$toastr.error(l.message,this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.progress=40):(delete this.selectedFile,this.progress=20)}onRestoreBackupClick(){return k(this,null,function*(){this.restoreUploading=!0,this.step="restoring",this.progress=60;try{let e=yield h(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,e.access_token),this.$auth.token=e.access_token,this.progress=65;let l=new FormData;l.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield h(this.$api.post("/backup/restore",l)),this.progress=70,this.io=this.$ws.connectToNamespace("backup");let i=document.getElementById("output");this.io.socket.on("stdout",d=>{d.split(`
2
- \r`).forEach(y=>{if(y&&!/^[⠇⠏⠋⠙⠹⠸]+$/.test(y)){let S=document.createElement("div"),pe=/\x1B\[(\d{1,2}(;\d{1,2})?)?[mGK]/g;S.innerHTML=y.replace(pe,""),y.includes("[0;31m")?S.classList.add("red-text"):y.includes("[0;32m")?S.classList.add("green-text"):y.includes("[0;33m")?S.classList.add("orange-text"):y.includes("[0;36m")&&S.classList.add("cyan-text"),i.appendChild(S),i.scrollTop=i.scrollHeight}})}),this.restoreStarted=!0,this.restoreInProgress=!0,this.progress=75,yield h(this.io.request("do-restore")),this.progress=80,this.restoreInProgress=!1,yield h(this.$api.put("/backup/restart",{})),this.step="restarting",this.progress=85,window.localStorage.removeItem(U.jwt.tokenKey),this.$auth.token=null;let v=document.createElement("div");v.classList.add("orange-text"),v.innerHTML="Starting Homebridge, please wait...",i.appendChild(v),i.scrollTop=i.scrollHeight,yield new Promise(d=>setTimeout(d,3e3)),this.progress=88,yield new Promise(d=>setTimeout(d,3e3)),this.progress=91,yield new Promise(d=>setTimeout(d,3e3)),this.progress=94,yield new Promise(d=>setTimeout(d,3e3)),this.progress=97,yield new Promise(d=>setTimeout(d,3e3)),this.progress=99;let P=setInterval(()=>k(this,null,function*(){try{yield h(this.$api.get("/auth/settings")),clearInterval(P),this.progress=100,this.restoreUploading=!1,this.step="restore-complete"}catch{}}),1e3)}catch(e){console.error(e),this.restoreUploading=!1,this.restoreFailed=!0,this.progress=20,this.step="restore-backup",this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}finally{this.io&&this.io.end()}})}static \u0275fac=function(l){return new(l||t)(b(oe),b(se),b(ae),b(G),b(re),b(ie),b(le))};static \u0275cmp=O({type:t,selectors:[["ng-component"]],decls:10,vars:14,consts:[[1,"setup-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","setup-card","d-flex","py-4","flex-column"],["ngSrc","/assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],[1,"progress","w-100","my-4"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-success",3,"ngClass"],[1,"w-100","d-flex","flex-column","align-items-center","mb-2"],[1,"mb-3","text-center"],[1,"mb-4","small","grey-text","text-center",3,"innerHTML"],["type","button",1,"btn","btn-lg","btn-primary","mb-4",3,"click"],["href","javascript:void(0)",1,"grey-text",3,"click"],[1,"mb-4","small","grey-text","text-center"],[1,"w-100"],["novalidate","",3,"ngSubmit","formGroup"],[1,"input-group","mb-4"],[1,"input-group-text","custom-input"],[1,"fas","fa-fw","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"fas","fa-fw","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button",1,"btn","btn-elegant","ms-0",3,"click","disabled"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"form-control","custom-input","mb-3",3,"change"],["type","button",1,"btn","btn-primary","me-0",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],["id","output",1,"font-monospace","small","alert","alert-info","w-100","text-start","mt-1","mb-0"],["href","/login",1,"btn","btn-lg","btn-primary","mt-4"],[1,"mb-3"],["href","/",1,"btn","btn-lg","btn-primary"]],template:function(l,i){l&1&&(o(0,"div",0)(1,"div",1),u(2,"img",2),o(3,"div",3),u(4,"div",4),r(),z(5,ge,12,12,"div",5)(6,_e,31,39,"div",5)(7,we,15,12,"div",5)(8,ye,7,2,"div",5)(9,Se,10,9,"div",5),r()()),l&2&&(m("ngStyle",T(7,de,i.backgroundStyle))("ngClass",T(9,ce,!i.backgroundStyle)),n(4),j("width",i.progress+"%"),m("ngClass",T(11,me,i.loading||i.restoreUploading)),L("aria-valuenow",i.progress),n(),I(i.step==="welcome"?5:i.step==="create-account"?6:i.step==="restore-backup"?7:H(13,ue).includes(i.step)?8:i.step==="setup-complete"?9:-1))},dependencies:[N,ne,q,ee,Q,D,K,A,Z,te,X,Y,R],styles:["body{overflow:scroll!important} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.setup-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.setup-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}.progress[_ngcontent-%COMP%]{background-color:#ddd}#output[_ngcontent-%COMP%]{height:200px;overflow-y:scroll;white-space:pre-wrap}"]})}return t})();export{Le as a};