@yinuo-ngm/server 1.0.14 → 1.0.16

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 (257) hide show
  1. package/lib/app.js +2 -0
  2. package/lib/plugins/error-handler.plugin.js +5 -0
  3. package/lib/plugins/nginx.binding.store.d.ts +4 -0
  4. package/lib/plugins/nginx.binding.store.js +39 -0
  5. package/lib/plugins/nginx.plugin.d.ts +3 -0
  6. package/lib/plugins/nginx.plugin.js +23 -0
  7. package/lib/plugins/ws/topics/index.d.ts +1 -0
  8. package/lib/plugins/ws/topics/index.js +1 -0
  9. package/lib/plugins/ws/topics/nginx.ws.d.ts +7 -0
  10. package/lib/plugins/ws/topics/nginx.ws.js +59 -0
  11. package/lib/plugins/ws/ws.plugin.js +3 -0
  12. package/lib/routes/api-client/hub-cookie-jar.d.ts +3 -0
  13. package/lib/routes/api-client/hub-cookie-jar.js +54 -0
  14. package/lib/routes/api-client/hub-token.routes.d.ts +2 -0
  15. package/lib/routes/api-client/hub-token.routes.js +284 -0
  16. package/lib/routes/api-client/index.d.ts +1 -0
  17. package/lib/routes/api-client/index.js +1 -0
  18. package/lib/routes/api-client/send.routes.js +60 -1
  19. package/lib/routes/hub.routes.d.ts +2 -0
  20. package/lib/routes/hub.routes.js +103 -0
  21. package/lib/routes/index.js +7 -0
  22. package/lib/routes/nginx/nginx-config.routes.d.ts +2 -0
  23. package/lib/routes/nginx/nginx-config.routes.js +94 -0
  24. package/lib/routes/nginx/nginx-lifecycle.routes.d.ts +2 -0
  25. package/lib/routes/nginx/nginx-lifecycle.routes.js +108 -0
  26. package/lib/routes/nginx/nginx-log.routes.d.ts +2 -0
  27. package/lib/routes/nginx/nginx-log.routes.js +47 -0
  28. package/lib/routes/nginx/nginx-module.routes.d.ts +2 -0
  29. package/lib/routes/nginx/nginx-module.routes.js +123 -0
  30. package/lib/routes/nginx/nginx-route.context.d.ts +9 -0
  31. package/lib/routes/nginx/nginx-route.context.js +36 -0
  32. package/lib/routes/nginx/nginx-server.routes.d.ts +2 -0
  33. package/lib/routes/nginx/nginx-server.routes.js +97 -0
  34. package/lib/routes/nginx.routes.d.ts +2 -0
  35. package/lib/routes/nginx.routes.js +17 -0
  36. package/lib/routes/node-version.routes.d.ts +2 -0
  37. package/lib/routes/node-version.routes.js +56 -0
  38. package/lib/routes/project.routes.js +5 -0
  39. package/lib/routes/sprite-browse.routes.js +19 -5
  40. package/lib/routes/sprite.routes.js +17 -11
  41. package/lib/routes/static-files.routes.js +16 -0
  42. package/lib/routes/task.routes.js +7 -0
  43. package/package.json +5 -4
  44. package/www/3rdpartylicenses.txt +75 -0
  45. package/www/browser/assets/vs/_commonjsHelpers-CT9FvmAN.js +1 -0
  46. package/www/browser/assets/vs/abap-D-t0cyap.js +1 -0
  47. package/www/browser/assets/vs/apex-CcIm7xu6.js +1 -0
  48. package/www/browser/assets/vs/assets/css.worker-HnVq6Ewq.js +93 -0
  49. package/www/browser/assets/vs/assets/editor.worker-Be8ye1pW.js +26 -0
  50. package/www/browser/assets/vs/assets/html.worker-B51mlPHg.js +470 -0
  51. package/www/browser/assets/vs/assets/json.worker-DKiEKt88.js +58 -0
  52. package/www/browser/assets/vs/assets/ts.worker-CMbG-7ft.js +67731 -0
  53. package/www/browser/assets/vs/azcli-BA0tQDCg.js +1 -0
  54. package/www/browser/assets/vs/basic-languages/monaco.contribution.js +1 -0
  55. package/www/browser/assets/vs/bat-C397hTD6.js +1 -0
  56. package/www/browser/assets/vs/bicep-DF5aW17k.js +2 -0
  57. package/www/browser/assets/vs/cameligo-plsz8qhj.js +1 -0
  58. package/www/browser/assets/vs/clojure-Y2auQMzK.js +1 -0
  59. package/www/browser/assets/vs/coffee-Bu45yuWE.js +1 -0
  60. package/www/browser/assets/vs/cpp-CkKPQIni.js +1 -0
  61. package/www/browser/assets/vs/csharp-CX28MZyh.js +1 -0
  62. package/www/browser/assets/vs/csp-D8uWnyxW.js +1 -0
  63. package/www/browser/assets/vs/css-CaeNmE3S.js +3 -0
  64. package/www/browser/assets/vs/cssMode-CjiAH6dQ.js +1 -0
  65. package/www/browser/assets/vs/cypher-DVThT8BS.js +1 -0
  66. package/www/browser/assets/vs/dart-CmGfCvrO.js +1 -0
  67. package/www/browser/assets/vs/dockerfile-CZqqYdch.js +1 -0
  68. package/www/browser/assets/vs/ecl-30fUercY.js +1 -0
  69. package/www/browser/assets/vs/editor/editor.main.css +1 -0
  70. package/www/browser/assets/vs/editor/editor.main.js +5 -0
  71. package/www/browser/assets/vs/editor.api-CalNCsUg.js +903 -0
  72. package/www/browser/assets/vs/elixir-xjPaIfzF.js +1 -0
  73. package/www/browser/assets/vs/flow9-DqtmStfK.js +1 -0
  74. package/www/browser/assets/vs/freemarker2-Cz_sV6Md.js +3 -0
  75. package/www/browser/assets/vs/fsharp-BOMdg4U1.js +1 -0
  76. package/www/browser/assets/vs/go-D_hbi-Jt.js +1 -0
  77. package/www/browser/assets/vs/graphql-CKUU4kLG.js +1 -0
  78. package/www/browser/assets/vs/handlebars-OwglfO-1.js +1 -0
  79. package/www/browser/assets/vs/hcl-DTaboeZW.js +1 -0
  80. package/www/browser/assets/vs/html-Pa1xEWsY.js +1 -0
  81. package/www/browser/assets/vs/htmlMode-Bz67EXwp.js +1 -0
  82. package/www/browser/assets/vs/ini-CsNwO04R.js +1 -0
  83. package/www/browser/assets/vs/java-CI4ZMsH9.js +1 -0
  84. package/www/browser/assets/vs/javascript-PczUCGdz.js +1 -0
  85. package/www/browser/assets/vs/jsonMode-DULH5oaX.js +7 -0
  86. package/www/browser/assets/vs/julia-BwzEvaQw.js +1 -0
  87. package/www/browser/assets/vs/kotlin-IUYPiTV8.js +1 -0
  88. package/www/browser/assets/vs/language/css/monaco.contribution.js +1 -0
  89. package/www/browser/assets/vs/language/html/monaco.contribution.js +1 -0
  90. package/www/browser/assets/vs/language/json/monaco.contribution.js +1 -0
  91. package/www/browser/assets/vs/language/typescript/monaco.contribution.js +1 -0
  92. package/www/browser/assets/vs/less-C0eDYdqa.js +2 -0
  93. package/www/browser/assets/vs/lexon-iON-Kj97.js +1 -0
  94. package/www/browser/assets/vs/liquid-DqKjdPGy.js +1 -0
  95. package/www/browser/assets/vs/loader.js +1368 -0
  96. package/www/browser/assets/vs/lspLanguageFeatures-kM9O9rjY.js +4 -0
  97. package/www/browser/assets/vs/lua-DtygF91M.js +1 -0
  98. package/www/browser/assets/vs/m3-CsR4AuFi.js +1 -0
  99. package/www/browser/assets/vs/markdown-C_rD0bIw.js +1 -0
  100. package/www/browser/assets/vs/mdx-DEWtB1K5.js +1 -0
  101. package/www/browser/assets/vs/mips-CiYP61RB.js +1 -0
  102. package/www/browser/assets/vs/monaco.contribution-D2OdxNBt.js +1 -0
  103. package/www/browser/assets/vs/monaco.contribution-DO3azKX8.js +1 -0
  104. package/www/browser/assets/vs/monaco.contribution-EcChJV6a.js +1 -0
  105. package/www/browser/assets/vs/monaco.contribution-qLAYrEOP.js +1 -0
  106. package/www/browser/assets/vs/msdax-C38-sJlp.js +1 -0
  107. package/www/browser/assets/vs/mysql-CdtbpvbG.js +1 -0
  108. package/www/browser/assets/vs/nls.messages-loader.js +1 -0
  109. package/www/browser/assets/vs/nls.messages.cs.js.js +17 -0
  110. package/www/browser/assets/vs/nls.messages.de.js.js +17 -0
  111. package/www/browser/assets/vs/nls.messages.es.js.js +17 -0
  112. package/www/browser/assets/vs/nls.messages.fr.js.js +15 -0
  113. package/www/browser/assets/vs/nls.messages.it.js.js +15 -0
  114. package/www/browser/assets/vs/nls.messages.ja.js.js +17 -0
  115. package/www/browser/assets/vs/nls.messages.js.js +10 -0
  116. package/www/browser/assets/vs/nls.messages.ko.js.js +25 -0
  117. package/www/browser/assets/vs/nls.messages.pl.js.js +17 -0
  118. package/www/browser/assets/vs/nls.messages.pt-br.js.js +6 -0
  119. package/www/browser/assets/vs/nls.messages.ru.js.js +17 -0
  120. package/www/browser/assets/vs/nls.messages.tr.js.js +15 -0
  121. package/www/browser/assets/vs/nls.messages.zh-cn.js.js +17 -0
  122. package/www/browser/assets/vs/nls.messages.zh-tw.js.js +15 -0
  123. package/www/browser/assets/vs/objective-c-CntZFaHX.js +1 -0
  124. package/www/browser/assets/vs/pascal-r6kuqfl_.js +1 -0
  125. package/www/browser/assets/vs/pascaligo-BiXoTmXh.js +1 -0
  126. package/www/browser/assets/vs/perl-DABw_TcH.js +1 -0
  127. package/www/browser/assets/vs/pgsql-me_jFXeX.js +1 -0
  128. package/www/browser/assets/vs/php-D_kh-9LK.js +1 -0
  129. package/www/browser/assets/vs/pla-VfZjczW0.js +1 -0
  130. package/www/browser/assets/vs/postiats-BBSzz8Pk.js +1 -0
  131. package/www/browser/assets/vs/powerquery-Dt-g_2cc.js +1 -0
  132. package/www/browser/assets/vs/powershell-B-7ap1zc.js +1 -0
  133. package/www/browser/assets/vs/protobuf-BmtuEB1A.js +2 -0
  134. package/www/browser/assets/vs/pug-BRpRNeEb.js +1 -0
  135. package/www/browser/assets/vs/python-Cr0UkIbn.js +1 -0
  136. package/www/browser/assets/vs/qsharp-BzsFaUU9.js +1 -0
  137. package/www/browser/assets/vs/r-f8dDdrp4.js +1 -0
  138. package/www/browser/assets/vs/razor-BYAHOTkz.js +1 -0
  139. package/www/browser/assets/vs/redis-fvZQY4PI.js +1 -0
  140. package/www/browser/assets/vs/redshift-45Et0LQi.js +1 -0
  141. package/www/browser/assets/vs/restructuredtext-C7UUFKFD.js +1 -0
  142. package/www/browser/assets/vs/ruby-CZO8zYTz.js +1 -0
  143. package/www/browser/assets/vs/rust-Bfetafyc.js +1 -0
  144. package/www/browser/assets/vs/sb-3GYllVck.js +1 -0
  145. package/www/browser/assets/vs/scala-foMgrKo1.js +1 -0
  146. package/www/browser/assets/vs/scheme-CHdMtr7p.js +1 -0
  147. package/www/browser/assets/vs/scss-C1cmLt9V.js +3 -0
  148. package/www/browser/assets/vs/shell-ClXCKCEW.js +1 -0
  149. package/www/browser/assets/vs/solidity-MZ6ExpPy.js +1 -0
  150. package/www/browser/assets/vs/sophia-DWkuSsPQ.js +1 -0
  151. package/www/browser/assets/vs/sparql-AUGFYSyk.js +1 -0
  152. package/www/browser/assets/vs/sql-32GpJSV2.js +1 -0
  153. package/www/browser/assets/vs/st-CuDFIVZ_.js +1 -0
  154. package/www/browser/assets/vs/swift-n-2HociN.js +3 -0
  155. package/www/browser/assets/vs/systemverilog-Ch4vA8Yt.js +1 -0
  156. package/www/browser/assets/vs/tcl-D74tq1nH.js +1 -0
  157. package/www/browser/assets/vs/tsMode-CZz1Umrk.js +11 -0
  158. package/www/browser/assets/vs/twig-C6taOxMV.js +1 -0
  159. package/www/browser/assets/vs/typescript-DfOrAzoV.js +1 -0
  160. package/www/browser/assets/vs/typespec-D-PIh9Xw.js +1 -0
  161. package/www/browser/assets/vs/vb-Dyb2648j.js +1 -0
  162. package/www/browser/assets/vs/wgsl-BhLXMOR0.js +298 -0
  163. package/www/browser/assets/vs/workers-DcJshg-q.js +1 -0
  164. package/www/browser/assets/vs/xml-CdsdnY8S.js +1 -0
  165. package/www/browser/assets/vs/yaml-DYGvmE88.js +1 -0
  166. package/www/browser/chunk-2BZRE4G7.js +1 -0
  167. package/www/browser/chunk-2X3MRS27.js +1 -0
  168. package/www/browser/chunk-4KETC6EB.js +1 -0
  169. package/www/browser/{chunk-SNCDDYQR.js → chunk-5T5KA5PG.js} +1 -1
  170. package/www/browser/chunk-6CGHNKJI.js +1 -0
  171. package/www/browser/chunk-76TVIB33.js +63 -0
  172. package/www/browser/chunk-7J24TP36.js +1 -0
  173. package/www/browser/chunk-ACAZUX6C.js +1 -0
  174. package/www/browser/chunk-B6MBYCXI.js +1 -0
  175. package/www/browser/chunk-BYEU6KGP.js +2 -0
  176. package/www/browser/chunk-CZ5AZ3VW.js +1 -0
  177. package/www/browser/chunk-DW7F5PEA.js +1 -0
  178. package/www/browser/chunk-DXF7BVK5.js +1 -0
  179. package/www/browser/{chunk-HEKO7RQP.js → chunk-EEVPZGEY.js} +1 -1
  180. package/www/browser/chunk-G2W3B7TJ.js +1 -0
  181. package/www/browser/chunk-GDWS2L66.js +1 -0
  182. package/www/browser/chunk-HGONFYP6.js +1 -0
  183. package/www/browser/chunk-HHBPULJW.js +2 -0
  184. package/www/browser/chunk-HRXCR3IN.js +1 -0
  185. package/www/browser/chunk-INL2PELS.js +1 -0
  186. package/www/browser/chunk-JHMEKUZ5.js +1 -0
  187. package/www/browser/{chunk-OC62FHHS.js → chunk-JU3TEDBV.js} +2 -2
  188. package/www/browser/chunk-JZULA5JV.js +1 -0
  189. package/www/browser/{chunk-HZ73CM45.js → chunk-KVFR7GFV.js} +1 -1
  190. package/www/browser/chunk-L5D75AMV.js +1 -0
  191. package/www/browser/chunk-L7TMCSHV.js +1 -0
  192. package/www/browser/{chunk-E6LF4XBJ.js → chunk-LQ5OXSW7.js} +2 -2
  193. package/www/browser/chunk-MVQTKINJ.js +1 -0
  194. package/www/browser/chunk-N4LRZJBP.js +1 -0
  195. package/www/browser/chunk-O2EYEF7J.js +1 -0
  196. package/www/browser/chunk-OMDHJIUB.js +1 -0
  197. package/www/browser/chunk-OWUAAOHW.js +2 -0
  198. package/www/browser/chunk-PIK5YPIB.js +1 -0
  199. package/www/browser/chunk-RHLQRQDK.js +9 -0
  200. package/www/browser/chunk-RW2JPJV7.js +1 -0
  201. package/www/browser/chunk-S3SJ4VVM.js +11 -0
  202. package/www/browser/chunk-SPRWNZHF.js +15 -0
  203. package/www/browser/chunk-SQQNR223.js +1 -0
  204. package/www/browser/chunk-SVQWPHF5.js +1 -0
  205. package/www/browser/{chunk-56SDBJDG.js → chunk-SYCNSLAW.js} +4 -4
  206. package/www/browser/chunk-T3KK7ZXB.js +2 -0
  207. package/www/browser/chunk-TMX5TTV3.js +1 -0
  208. package/www/browser/chunk-UFY3FLDK.js +1 -0
  209. package/www/browser/chunk-UJOHBN2Y.js +1 -0
  210. package/www/browser/chunk-UQGCUFNM.js +1 -0
  211. package/www/browser/chunk-UXXWRMM6.js +1 -0
  212. package/www/browser/chunk-UZRJGJTD.js +2 -0
  213. package/www/browser/chunk-WD4IAQR3.js +1 -0
  214. package/www/browser/chunk-WF2QTF5L.js +1 -0
  215. package/www/browser/chunk-WI67LAOV.js +4 -0
  216. package/www/browser/chunk-WNCM6QKB.js +1 -0
  217. package/www/browser/chunk-XJ5KZQNN.js +1 -0
  218. package/www/browser/chunk-YETDFSQE.js +1 -0
  219. package/www/browser/chunk-YMTC5GZK.js +1 -0
  220. package/www/browser/chunk-YVZHJ76K.js +1 -0
  221. package/www/browser/chunk-ZNTJRLVH.js +1 -0
  222. package/www/browser/favicon.ico +0 -0
  223. package/www/browser/index.html +2 -2
  224. package/www/browser/main-6LN5C22E.js +34 -0
  225. package/www/browser/scripts-U25HCVEI.js +6 -0
  226. package/www/browser/chunk-25RT7L2O.js +0 -1
  227. package/www/browser/chunk-2P5WKSWB.js +0 -5
  228. package/www/browser/chunk-2XZHN52E.js +0 -1
  229. package/www/browser/chunk-3MBM5AMR.js +0 -1
  230. package/www/browser/chunk-3V5PIKHE.js +0 -11
  231. package/www/browser/chunk-42JVTVYH.js +0 -1
  232. package/www/browser/chunk-4IQIZX7Y.js +0 -1
  233. package/www/browser/chunk-4UAHOL42.js +0 -1
  234. package/www/browser/chunk-5DD65JMJ.js +0 -1
  235. package/www/browser/chunk-5EQOKH7G.js +0 -12
  236. package/www/browser/chunk-6JH45SUC.js +0 -1
  237. package/www/browser/chunk-6X6PEDE5.js +0 -1
  238. package/www/browser/chunk-AI6SNMEH.js +0 -1
  239. package/www/browser/chunk-AMXCOT2F.js +0 -1
  240. package/www/browser/chunk-DP3VTELD.js +0 -1
  241. package/www/browser/chunk-EMK65RIU.js +0 -1
  242. package/www/browser/chunk-EYGWZTTT.js +0 -1
  243. package/www/browser/chunk-GKY4LJF4.js +0 -1
  244. package/www/browser/chunk-HJC5MNP5.js +0 -1
  245. package/www/browser/chunk-ITXWAN4J.js +0 -1
  246. package/www/browser/chunk-IZNTCWTR.js +0 -1
  247. package/www/browser/chunk-KN3WZJH7.js +0 -1
  248. package/www/browser/chunk-KPO75P5E.js +0 -1
  249. package/www/browser/chunk-LWBZC6ZL.js +0 -2
  250. package/www/browser/chunk-NYXWJKSW.js +0 -1
  251. package/www/browser/chunk-QM5ROT66.js +0 -1
  252. package/www/browser/chunk-SJG2JCPL.js +0 -4
  253. package/www/browser/chunk-W633D3VG.js +0 -1
  254. package/www/browser/chunk-X3HFJACM.js +0 -2
  255. package/www/browser/chunk-YFAKNLWB.js +0 -2
  256. package/www/browser/chunk-ZSPNEYSK.js +0 -1
  257. package/www/browser/main-O5GAJRDW.js +0 -34
@@ -0,0 +1,2 @@
1
+ import{$a as G,B as ie,Bb as Zt,Ca as w,Ea as Xe,Fa as It,Gb as ae,Hb as Fe,Ib as ue,Ka as Ot,M as At,Oa as Pt,Ob as Yt,P as bt,Pb as Wt,Ra as be,Ta as Lt,Ua as Ke,Va as Nt,W as St,Wa as Se,Ya as Je,_a as qe,a as j,ab as J,b as Ae,bb as kt,cb as Bt,db as xt,ea as Tt,eb as Ut,fb as jt,fd as Kt,gb as $t,gd as Qe,hb as zt,i as Ct,ib as Z,ka as g,l as _t,la as oe,na as p,oa as se,ob as Y,oc as Xt,pb as Vt,pc as M,qa as E,qb as Ht,qc as _,ra as c,sa as A,ta as We,tb as q,td as et,u as Ye,va as Ft,vd as Jt,wa as Rt,wd as qt,xa as Mt,xb as Gt,yb as Te,zb as O}from"./chunk-WI67LAOV.js";var tn=null;function k(){return tn}function tt(t){tn??=t}var ce=class{},le=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=p({token:t,factory:()=>A(nn),providedIn:"platform"})}return t})(),Hn=new E(""),nn=(()=>{class t extends le{_location;_history;_doc=A(w);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return k().getBaseHref(this._doc)}onPopState(e){let r=k().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=k().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,i){this._history.pushState(e,r,i)}replaceState(e,r,i){this._history.replaceState(e,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=p({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Re(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function Qt(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function P(t){return t&&t[0]!=="?"?`?${t}`:t}var Q=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=p({token:t,factory:()=>A(rn),providedIn:"root"})}return t})(),Me=new E(""),rn=(()=>{class t extends Q{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??A(w).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Re(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+P(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+P(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+P(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(c(le),c(Me,8))};static \u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),on=(()=>{class t{_subject=new _t;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=Yn(Qt(en(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+P(r))}normalize(e){return t.stripTrailingSlash(Zn(this._basePath,en(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+P(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+P(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=P;static joinWithSlash=Re;static stripTrailingSlash=Qt;static \u0275fac=function(r){return new(r||t)(c(Q))};static \u0275prov=p({token:t,factory:()=>Gn(),providedIn:"root"})}return t})();function Gn(){return new on(c(Q))}function Zn(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function en(t){return t.replace(/\/index.html$/,"")}function Yn(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Wn=(()=>{class t extends Q{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=Re(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+P(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+P(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(c(le),c(Me,8))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})();var S=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(S||{}),h=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(h||{}),F=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(F||{}),x={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function un(t){return M(t)[_.LocaleId]}function cn(t,n,e){let r=M(t),i=[r[_.DayPeriodsFormat],r[_.DayPeriodsStandalone]],o=I(i,n);return I(o,e)}function dn(t,n,e){let r=M(t),i=[r[_.DaysFormat],r[_.DaysStandalone]],o=I(i,n);return I(o,e)}function ln(t,n,e){let r=M(t),i=[r[_.MonthsFormat],r[_.MonthsStandalone]],o=I(i,n);return I(o,e)}function fn(t,n){let r=M(t)[_.Eras];return I(r,n)}function fe(t,n){let e=M(t);return I(e[_.DateFormat],n)}function he(t,n){let e=M(t);return I(e[_.TimeFormat],n)}function pe(t,n){let r=M(t)[_.DateTimeFormat];return I(r,n)}function ge(t,n){let e=M(t),r=e[_.NumberSymbols][n];if(typeof r>"u"){if(n===x.CurrencyDecimal)return e[_.NumberSymbols][x.Decimal];if(n===x.CurrencyGroup)return e[_.NumberSymbols][x.Group]}return r}function hn(t){if(!t[_.ExtraData])throw new g(2303,!1)}function pn(t){let n=M(t);return hn(n),(n[_.ExtraData][2]||[]).map(r=>typeof r=="string"?nt(r):[nt(r[0]),nt(r[1])])}function gn(t,n,e){let r=M(t);hn(r);let i=[r[_.ExtraData][0],r[_.ExtraData][1]],o=I(i,n)||[];return I(o,e)||[]}function I(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new g(2304,!1)}function nt(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}var Xn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ie={},Kn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function mn(t,n,e,r){let i=or(t);n=B(e,n)||n;let s=[],a;for(;n;)if(a=Kn.exec(n),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;n=l}else{s.push(n);break}let u=i.getTimezoneOffset();r&&(u=yn(r,u),i=ir(i,r));let d="";return s.forEach(l=>{let y=nr(l);d+=y?y(i,e,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function ke(t,n,e){let r=new Date(0);return r.setFullYear(t,n,e),r.setHours(0,0,0),r}function B(t,n){let e=un(t);if(Ie[e]??={},Ie[e][n])return Ie[e][n];let r="";switch(n){case"shortDate":r=fe(t,F.Short);break;case"mediumDate":r=fe(t,F.Medium);break;case"longDate":r=fe(t,F.Long);break;case"fullDate":r=fe(t,F.Full);break;case"shortTime":r=he(t,F.Short);break;case"mediumTime":r=he(t,F.Medium);break;case"longTime":r=he(t,F.Long);break;case"fullTime":r=he(t,F.Full);break;case"short":let i=B(t,"shortTime"),o=B(t,"shortDate");r=Oe(pe(t,F.Short),[i,o]);break;case"medium":let s=B(t,"mediumTime"),a=B(t,"mediumDate");r=Oe(pe(t,F.Medium),[s,a]);break;case"long":let u=B(t,"longTime"),d=B(t,"longDate");r=Oe(pe(t,F.Long),[u,d]);break;case"full":let l=B(t,"fullTime"),y=B(t,"fullDate");r=Oe(pe(t,F.Full),[l,y]);break}return r&&(Ie[e][n]=r),r}function Oe(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,r){return n!=null&&r in n?n[r]:e})),t}function L(t,n,e="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=e));let s=String(t);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),o+s}function Jn(t,n){return L(t,3).substring(0,n)}function v(t,n,e=0,r=!1,i=!1){return function(o,s){let a=qn(t,o);if((e>0||a>-e)&&(a+=e),t===3)a===0&&e===-12&&(a=12);else if(t===6)return Jn(a,n);let u=ge(s,x.MinusSign);return L(a,n,u,r,i)}}function qn(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new g(2301,!1)}}function m(t,n,e=S.Format,r=!1){return function(i,o){return Qn(i,o,t,n,e,r)}}function Qn(t,n,e,r,i,o){switch(e){case 2:return ln(n,i,r)[t.getMonth()];case 1:return dn(n,i,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(o){let d=pn(n),l=gn(n,i,r),y=d.findIndex(C=>{if(Array.isArray(C)){let[T,N]=C,z=s>=T.hours&&a>=T.minutes,f=s<N.hours||s===N.hours&&a<N.minutes;if(T.hours<N.hours){if(z&&f)return!0}else if(z||f)return!0}else if(C.hours===s&&C.minutes===a)return!0;return!1});if(y!==-1)return l[y]}return cn(n,i,r)[s<12?0:1];case 3:return fn(n,r)[t.getFullYear()<=0?0:1];default:let u=e;throw new g(2302,!1)}}function Pe(t){return function(n,e,r){let i=-1*r,o=ge(e,x.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case 0:return(i>=0?"+":"")+L(s,2,o)+L(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+L(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+L(s,2,o)+":"+L(Math.abs(i%60),2,o);case 3:return r===0?"Z":(i>=0?"+":"")+L(s,2,o)+":"+L(Math.abs(i%60),2,o);default:throw new g(2310,!1)}}}var er=0,Ne=4;function tr(t){let n=ke(t,er,1).getDay();return ke(t,0,1+(n<=Ne?Ne:Ne+7)-n)}function Dn(t){let n=t.getDay(),e=n===0?-3:Ne-n;return ke(t.getFullYear(),t.getMonth(),t.getDate()+e)}function rt(t,n=!1){return function(e,r){let i;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();i=1+Math.floor((s+o)/7)}else{let o=Dn(e),s=tr(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return L(i,t,ge(r,x.MinusSign))}}function Le(t,n=!1){return function(e,r){let o=Dn(e).getFullYear();return L(o,t,ge(r,x.MinusSign),n)}}var it={};function nr(t){if(it[t])return it[t];let n;switch(t){case"G":case"GG":case"GGG":n=m(3,h.Abbreviated);break;case"GGGG":n=m(3,h.Wide);break;case"GGGGG":n=m(3,h.Narrow);break;case"y":n=v(0,1,0,!1,!0);break;case"yy":n=v(0,2,0,!0,!0);break;case"yyy":n=v(0,3,0,!1,!0);break;case"yyyy":n=v(0,4,0,!1,!0);break;case"Y":n=Le(1);break;case"YY":n=Le(2,!0);break;case"YYY":n=Le(3);break;case"YYYY":n=Le(4);break;case"M":case"L":n=v(1,1,1);break;case"MM":case"LL":n=v(1,2,1);break;case"MMM":n=m(2,h.Abbreviated);break;case"MMMM":n=m(2,h.Wide);break;case"MMMMM":n=m(2,h.Narrow);break;case"LLL":n=m(2,h.Abbreviated,S.Standalone);break;case"LLLL":n=m(2,h.Wide,S.Standalone);break;case"LLLLL":n=m(2,h.Narrow,S.Standalone);break;case"w":n=rt(1);break;case"ww":n=rt(2);break;case"W":n=rt(1,!0);break;case"d":n=v(2,1);break;case"dd":n=v(2,2);break;case"c":case"cc":n=v(7,1);break;case"ccc":n=m(1,h.Abbreviated,S.Standalone);break;case"cccc":n=m(1,h.Wide,S.Standalone);break;case"ccccc":n=m(1,h.Narrow,S.Standalone);break;case"cccccc":n=m(1,h.Short,S.Standalone);break;case"E":case"EE":case"EEE":n=m(1,h.Abbreviated);break;case"EEEE":n=m(1,h.Wide);break;case"EEEEE":n=m(1,h.Narrow);break;case"EEEEEE":n=m(1,h.Short);break;case"a":case"aa":case"aaa":n=m(0,h.Abbreviated);break;case"aaaa":n=m(0,h.Wide);break;case"aaaaa":n=m(0,h.Narrow);break;case"b":case"bb":case"bbb":n=m(0,h.Abbreviated,S.Standalone,!0);break;case"bbbb":n=m(0,h.Wide,S.Standalone,!0);break;case"bbbbb":n=m(0,h.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":n=m(0,h.Abbreviated,S.Format,!0);break;case"BBBB":n=m(0,h.Wide,S.Format,!0);break;case"BBBBB":n=m(0,h.Narrow,S.Format,!0);break;case"h":n=v(3,1,-12);break;case"hh":n=v(3,2,-12);break;case"H":n=v(3,1);break;case"HH":n=v(3,2);break;case"m":n=v(4,1);break;case"mm":n=v(4,2);break;case"s":n=v(5,1);break;case"ss":n=v(5,2);break;case"S":n=v(6,1);break;case"SS":n=v(6,2);break;case"SSS":n=v(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Pe(0);break;case"ZZZZZ":n=Pe(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Pe(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Pe(2);break;default:return null}return it[t]=n,n}function yn(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function rr(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function ir(t,n,e){let i=t.getTimezoneOffset(),o=yn(n,i);return rr(t,-1*(o-i))}function or(t){if(sn(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return ke(i,o-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let r;if(r=t.match(Xn))return sr(r)}let n=new Date(t);if(!sn(n))throw new g(2311,!1);return n}function sr(t){let n=new Date(0),e=0,r=0,i=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-e,a=Number(t[5]||0)-r,u=Number(t[6]||0),d=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,s,a,u,d),n}function sn(t){return t instanceof Date&&!isNaN(t.valueOf())}var ot=/\s+/,an=[],ar=(()=>{class t{_ngEl;_renderer;initialClasses=an;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(ot):an}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(ot):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(ot).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||t)(O(be),O(Te))};static \u0275dir=Fe({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var ur=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Y.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(O(be),O(Jt),O(Te))};static \u0275dir=Fe({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),cr=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(O(Zt))};static \u0275dir=Fe({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Pt]})}return t})();function Be(t,n){return new g(2100,!1)}var st=class{createSubscription(n,e,r){return Qe(()=>n.subscribe({next:e,error:r}))}dispose(n){Qe(()=>n.unsubscribe())}},at=class{createSubscription(n,e,r){return n.then(i=>e?.(i),i=>r?.(i)),{unsubscribe:()=>{e=null,r=null}}}dispose(n){n.unsubscribe()}},dr=new at,lr=new st,fr=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=A(It);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r),r=>this.applicationErrorHandler(r))}_selectStrategy(e){if(Yt(e))return dr;if(Wt(e))return lr;throw Be(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||t)(O(et,16))};static \u0275pipe=ue({name:"async",type:t,pure:!1})}return t})();var hr=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,pr=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Be(t,e);return e.replace(hr,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=ue({name:"titlecase",type:t,pure:!0})}return t})(),gr=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Be(t,e);return e.toUpperCase()}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=ue({name:"uppercase",type:t,pure:!0})}return t})(),mr="mediumDate",En=new E(""),wn=new E(""),Dr=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,r,i){this.locale=e,this.defaultTimezone=r,this.defaultOptions=i}transform(e,r,i,o){if(e==null||e===""||e!==e)return null;try{let s=r??this.defaultOptions?.dateFormat??mr,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return mn(e,s,o||this.locale,a)}catch(s){throw Be(t,s.message)}}static \u0275fac=function(r){return new(r||t)(O(Kt,16),O(En,24),O(wn,24))};static \u0275pipe=ue({name:"date",type:t,pure:!0})}return t})();var vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ae({type:t});static \u0275inj=se({})}return t})();function me(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var W=class{};function ko(t,n,e){return Xt(t,n,e)}var ct="browser";function Bo(t){return t===ct}var xo=(()=>{class t{static \u0275prov=p({token:t,providedIn:"root",factory:()=>new ut(A(w),window)})}return t})(),ut=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n,e){this.window.scrollTo(Ae(j({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let r=Cr(this.document,n);r&&(this.scrollToElement(r,e),r.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(oe(2400,!1))}}scrollToElement(n,e){let r=n.getBoundingClientRect(),i=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(Ae(j({},e),{left:i-s[0],top:o-s[1]}))}};function Cr(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var De=class{_doc;constructor(n){this._doc=n}manager},xe=(()=>{class t extends De{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(c(w))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),je=new E(""),pt=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof xe));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof xe);o&&this._plugins.push(o)}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(c(je),c(q))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),dt="ng-app-id";function _n(t){for(let n of t)n.remove()}function An(t,n){let e=n.createElement("style");return e.textContent=t,e}function _r(t,n,e,r){let i=t.head?.querySelectorAll(`style[${dt}="${n}"],link[${dt}="${n}"]`);if(i)for(let o of i)o.removeAttribute(dt),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function ft(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var gt=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,_r(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,An);r?.forEach(i=>this.addUsage(i,this.external,ft))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(_n(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])_n(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,An(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,ft(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(c(w),c(Ke),c(Je,8),c(Se))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},mt=/%COMP%/g;var Sn="%COMP%",Ar=`_nghost-${Sn}`,br=`_ngcontent-${Sn}`,Sr=!0,Tr=new E("",{providedIn:"root",factory:()=>Sr});function Fr(t){return br.replace(mt,t)}function Rr(t){return Ar.replace(mt,t)}function Tn(t,n){return n.map(e=>e.replace(mt,t))}var Dt=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,u=null,d=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=u,this.tracingService=d,this.platformIsServer=!1,this.defaultRenderer=new ye(e,s,a,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof Ue?i.applyToHost(e):i instanceof Ee&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,y=this.platformIsServer,C=this.tracingService;switch(r.encapsulation){case qe.Emulated:o=new Ue(u,d,r,this.appId,l,s,a,y,C);break;case qe.ShadowDom:return new ht(u,d,e,r,s,a,this.nonce,y,C);default:o=new Ee(u,d,r,l,s,a,y,C);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(c(pt),c(gt),c(Ke),c(Tr),c(w),c(q),c(Je),c(Ht,8))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),ye=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(lt[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(bn(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(bn(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new g(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=lt[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=lt[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Y.DashCase|Y.Important)?n.style.setProperty(e,r,i&Y.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Y.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,i){if(typeof n=="string"&&(n=k().getGlobalEventTarget(this.doc,n),!n))throw new g(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function bn(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ht=class extends ye{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,a,u,d){super(n,o,s,u,d),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=Tn(i.id,l);for(let C of l){let T=document.createElement("style");a&&T.setAttribute("nonce",a),T.textContent=C,this.shadowRoot.appendChild(T)}let y=i.getExternalStyles?.();if(y)for(let C of y){let T=ft(C,o);a&&T.setAttribute("nonce",a),this.shadowRoot.appendChild(T)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ee=class extends ye{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,u,d){super(n,o,s,a,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=r.styles;this.styles=d?Tn(d,l):l,this.styleUrls=r.getExternalStyles?.(d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Vt.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ue=class extends Ee{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,u,d){let l=i+"-"+r.id;super(n,e,r,o,s,a,u,d,l),this.contentAttr=Fr(l),this.hostAttr=Rr(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var $e=class t extends ce{supportsDOMEvents=!0;static makeCurrent(){tt(new t)}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Ir();return e==null?null:Or(e)}resetBaseElement(){we=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return me(document.cookie,n)}},we=null;function Ir(){return we=we||document.head.querySelector("base"),we?we.getAttribute("href"):null}function Or(t){return new URL(t,document.baseURI).pathname}var Pr=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),Fn=["alt","control","meta","shift"],Lr={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Nr={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Rn=(()=>{class t extends De{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Fn.forEach(d=>{let l=r.indexOf(d);l>-1&&(r.splice(l,1),s+=d+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(e,r){let i=Lr[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Fn.forEach(s=>{if(s!==i){let a=Nr[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(c(w))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})();function kr(t,n,e){let r=j({rootComponent:t,platformRef:e?.platformRef},Br(n));return qt(r)}function Br(t){return{appProviders:[...zr,...t?.providers??[]],platformProviders:$r}}function xr(){$e.makeCurrent()}function Ur(){return new Xe}function jr(){return Lt(document),document}var $r=[{provide:Se,useValue:ct},{provide:Nt,useValue:xr,multi:!0},{provide:w,useFactory:jr}];var zr=[{provide:Ft,useValue:"root"},{provide:Xe,useFactory:Ur},{provide:je,useClass:xe,multi:!0,deps:[w]},{provide:je,useClass:Rn,multi:!0,deps:[w]},Dt,gt,pt,{provide:Gt,useExisting:Dt},{provide:W,useClass:Pr},[]];var ne=class{},ve=class{},$=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
2
+ `).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Ve=class{encodeKey(n){return Mn(n)}encodeValue(n){return Mn(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function Vr(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],u=e.get(s)||[];u.push(a),e.set(s,u)}),e}var Hr=/%(\d[a-f0-9])/gi,Gr={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Mn(t){return encodeURIComponent(t).replace(Hr,(n,e)=>Gr[e]??n)}function ze(t){return`${t}`}var U=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Ve,n.fromString){if(n.fromObject)throw new g(2805,!1);this.map=Vr(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(ze):[ze(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(ze(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(ze(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var He=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function Zr(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function In(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function On(t){return typeof Blob<"u"&&t instanceof Blob}function Pn(t){return typeof FormData<"u"&&t instanceof FormData}function Yr(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ln="Content-Type",Nn="Accept",kn="X-Request-URL",Bn="text/plain",xn="application/json",Wr=`${xn}, ${Bn}, */*`,ee=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(Zr(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new g(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new $,this.context??=new He,!this.params)this.params=new U,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),u=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||In(this.body)||On(this.body)||Pn(this.body)||Yr(this.body)?this.body:this.body instanceof U?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Pn(this.body)?null:On(this.body)?this.body.type||null:In(this.body)?null:typeof this.body=="string"?Bn:this.body instanceof U?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?xn:null}clone(n={}){let e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.keepalive??this.keepalive,s=n.priority||this.priority,a=n.cache||this.cache,u=n.mode||this.mode,d=n.redirect||this.redirect,l=n.credentials||this.credentials,y=n.referrer||this.referrer,C=n.integrity||this.integrity,T=n.transferCache??this.transferCache,N=n.timeout??this.timeout,z=n.body!==void 0?n.body:this.body,f=n.withCredentials??this.withCredentials,D=n.reportProgress??this.reportProgress,R=n.headers||this.headers,K=n.params||this.params,b=n.context??this.context;return n.setHeaders!==void 0&&(R=Object.keys(n.setHeaders).reduce((V,H)=>V.set(H,n.setHeaders[H]),R)),n.setParams&&(K=Object.keys(n.setParams).reduce((V,H)=>V.set(H,n.setParams[H]),K)),new t(e,r,z,{params:K,headers:R,context:b,reportProgress:D,responseType:i,withCredentials:f,transferCache:T,keepalive:o,cache:a,priority:s,timeout:N,mode:u,redirect:d,credentials:l,referrer:y,integrity:C})}},X=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(X||{}),re=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,r="OK"){this.headers=n.headers||new $,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Ge=class t extends re{constructor(n={}){super(n)}type=X.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Ce=class t extends re{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=X.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected})}},te=class extends re{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Xr=200,Kr=204;function yt(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var Un=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof ee)o=e;else{let u;i.headers instanceof $?u=i.headers:u=new $(i.headers);let d;i.params&&(i.params instanceof U?d=i.params:d=new U({fromObject:i.params})),o=new ee(e,r,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=Ye(o).pipe(bt(u=>this.handler.handle(u)));if(e instanceof ee||i.observe==="events")return s;let a=s.pipe(At(u=>u instanceof Ce));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ie(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new g(2806,!1);return u.body}));case"blob":return a.pipe(ie(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new g(2807,!1);return u.body}));case"text":return a.pipe(ie(u=>{if(u.body!==null&&typeof u.body!="string")throw new g(2808,!1);return u.body}));case"json":default:return a.pipe(ie(u=>u.body))}case"response":return a;default:throw new g(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new U().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,yt(i,r))}post(e,r,i={}){return this.request("POST",e,yt(i,r))}put(e,r,i={}){return this.request("PUT",e,yt(i,r))}static \u0275fac=function(r){return new(r||t)(c(ne))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})();var Jr=new E("");function qr(t,n){return n(t)}function Qr(t,n,e){return(r,i)=>Mt(e,()=>n(r,o=>t(o,i)))}var wt=new E(""),jn=new E(""),$n=new E("",{providedIn:"root",factory:()=>!0});var Ze=(()=>{class t extends ne{backend;injector;chain=null;pendingTasks=A(Ot);contributeToStability=A($n);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(wt),...this.injector.get(jn,[])]));this.chain=r.reduceRight((i,o)=>Qr(i,o,this.injector),qr)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(St(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(c(ve),c(Rt))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})();var ei=/^\)\]\}',?\n/,ti=RegExp(`^${kn}:`,"m");function ni(t){return"responseURL"in t&&t.responseURL?t.responseURL:ti.test(t.getAllResponseHeaders())?t.getResponseHeader(kn):null}var Et=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new g(-2800,!1);let r=this.xhrFactory;return Ye(null).pipe(Tt(()=>new Ct(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((f,D)=>s.setRequestHeader(f,D.join(","))),e.headers.has(Nn)||s.setRequestHeader(Nn,Wr),!e.headers.has(Ln)){let f=e.detectContentTypeHeader();f!==null&&s.setRequestHeader(Ln,f)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let f=e.responseType.toLowerCase();s.responseType=f!=="json"?f:"text"}let a=e.serializeBody(),u=null,d=()=>{if(u!==null)return u;let f=s.statusText||"OK",D=new $(s.getAllResponseHeaders()),R=ni(s)||e.url;return u=new Ge({headers:D,status:s.status,statusText:f,url:R}),u},l=()=>{let{headers:f,status:D,statusText:R,url:K}=d(),b=null;D!==Kr&&(b=typeof s.response>"u"?s.responseText:s.response),D===0&&(D=b?Xr:0);let V=D>=200&&D<300;if(e.responseType==="json"&&typeof b=="string"){let H=b;b=b.replace(ei,"");try{b=b!==""?JSON.parse(b):null}catch(Vn){b=H,V&&(V=!1,b={error:Vn,text:b})}}V?(o.next(new Ce({body:b,headers:f,status:D,statusText:R,url:K||void 0})),o.complete()):o.error(new te({error:b,headers:f,status:D,statusText:R,url:K||void 0}))},y=f=>{let{url:D}=d(),R=new te({error:f,status:s.status||0,statusText:s.statusText||"Unknown Error",url:D||void 0});o.error(R)},C=y;e.timeout&&(C=f=>{let{url:D}=d(),R=new te({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:D||void 0});o.error(R)});let T=!1,N=f=>{T||(o.next(d()),T=!0);let D={type:X.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(D.total=f.total),e.responseType==="text"&&s.responseText&&(D.partialText=s.responseText),o.next(D)},z=f=>{let D={type:X.UploadProgress,loaded:f.loaded};f.lengthComputable&&(D.total=f.total),o.next(D)};return s.addEventListener("load",l),s.addEventListener("error",y),s.addEventListener("timeout",C),s.addEventListener("abort",y),e.reportProgress&&(s.addEventListener("progress",N),a!==null&&s.upload&&s.upload.addEventListener("progress",z)),s.send(a),o.next({type:X.Sent}),()=>{s.removeEventListener("error",y),s.removeEventListener("abort",y),s.removeEventListener("load",l),s.removeEventListener("timeout",C),e.reportProgress&&(s.removeEventListener("progress",N),a!==null&&s.upload&&s.upload.removeEventListener("progress",z)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(c(W))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),zn=new E(""),ri="XSRF-TOKEN",ii=new E("",{providedIn:"root",factory:()=>ri}),oi="X-XSRF-TOKEN",si=new E("",{providedIn:"root",factory:()=>oi}),_e=class{},ai=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r){this.doc=e,this.cookieName=r}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=me(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)(c(w),c(ii))};static \u0275prov=p({token:t,factory:t.\u0275fac})}return t})(),ui=/^(?:https?:)?\/\//i;function ci(t,n){if(!A(zn)||t.method==="GET"||t.method==="HEAD"||ui.test(t.url))return n(t);let e=A(_e).getToken(),r=A(si);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}var vt=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(vt||{});function di(t,n){return{\u0275kind:t,\u0275providers:n}}function li(...t){let n=[Un,Et,Ze,{provide:ne,useExisting:Ze},{provide:ve,useFactory:()=>A(Jr,{optional:!0})??A(Et)},{provide:wt,useValue:ci,multi:!0},{provide:zn,useValue:!0},{provide:_e,useClass:ai}];for(let e of t)n.push(...e.\u0275providers);return We(n)}function fi(t){return di(vt.Interceptors,t.map(n=>({provide:wt,useValue:n,multi:!0})))}var pa=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(c(w))};static \u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hi=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=p({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=c(pi),i},providedIn:"root"})}return t})(),pi=(()=>{class t extends hi{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case Z.NONE:return r;case Z.HTML:return J(r,"HTML")?G(r):zt(this._doc,String(r)).toString();case Z.STYLE:return J(r,"Style")?G(r):r;case Z.SCRIPT:if(J(r,"Script"))return G(r);throw new g(5200,!1);case Z.URL:return J(r,"URL")?G(r):$t(String(r));case Z.RESOURCE_URL:if(J(r,"ResourceURL"))return G(r);throw new g(5201,!1);default:throw new g(5202,!1)}}bypassSecurityTrustHtml(e){return kt(e)}bypassSecurityTrustStyle(e){return Bt(e)}bypassSecurityTrustScript(e){return xt(e)}bypassSecurityTrustUrl(e){return Ut(e)}bypassSecurityTrustResourceUrl(e){return jt(e)}static \u0275fac=function(r){return new(r||t)(c(w))};static \u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{k as a,Hn as b,Q as c,rn as d,on as e,Wn as f,ar as g,ur as h,cr as i,fr as j,pr as k,gr as l,Dr as m,vn as n,ko as o,Bo as p,xo as q,Dt as r,kr as s,ve as t,U as u,te as v,Un as w,li as x,fi as y,pa as z,hi as A};
@@ -0,0 +1 @@
1
+ import{Ha as V,Ia as R,a as K,qb as H,rb as G,sa as Q,ua as $}from"./chunk-SPRWNZHF.js";import{$b as P,Fb as O,Fc as S,Gb as W,Gc as _,Hc as j,Ic as T,Jc as b,Kc as k,Lb as w,Lc as Z,Oa as v,Ub as Y,Wb as f,Yb as g,_b as M,a as L,ac as I,bc as p,cc as d,dc as c,ec as x,f as D,ic as A,jc as N,nb as s,nc as q,oa as U,r as B,s as C,sa as y,uc as l,vc as F,wc as E,xd as m,yd as J}from"./chunk-WI67LAOV.js";function an(t,r){if(t&1&&(d(0,"p",3),b(1),c()),t&2){let n=r.$implicit,o=l(2).$index,e=l(2);_("current",n===e.countArray[o]),s(),Z(" ",n," ")}}function rn(t,r){if(t&1&&P(0,an,2,3,"p",2,M),t&2){let n=l(3);I(n.countSingleArray)}}function ln(t,r){if(t&1&&(d(0,"span",1),f(1,rn,2,0),c()),t&2){let n=r.$index,o=l(2);S("transform","translateY("+-o.countArray[n]*100+"%)"),p("nzNoAnimation",o.noAnimation),s(),g(!o.nzDot&&o.countArray[n]!==void 0?1:-1)}}function sn(t,r){if(t&1&&P(0,ln,2,4,"span",0,M),t&2){let n=l();I(n.maxNumberArray)}}function zn(t,r){if(t&1&&b(0),t&2){let n=l();Z(" ",n.nzOverflowCount,"+ ")}}var X=["*"];function un(t,r){if(t&1&&(A(0),b(1),N()),t&2){let n=l(2);s(),k(n.nzText)}}function pn(t,r){if(t&1&&(x(0,"span",1),d(1,"span",2),w(2,un,2,1,"ng-container",0),c()),t&2){let n=l();j(n.mergedStyle),T((n.nzStatus||n.presetColor)&&"ant-badge-status-"+(n.nzStatus||n.presetColor)),s(2),p("nzStringTemplateOutlet",n.nzText)}}function dn(t,r){if(t&1&&x(0,"nz-badge-sup",3),t&2){let n=l(2);p("isPresetColor",n.nzStatus||n.presetColor)("nzColor",n.nzStatus||n.presetColor||n.nzColor)("nzOffset",n.nzOffset)("nzSize",n.nzSize)("nzTitle",n.nzTitle)("nzStyle",n.mergedStyle)("nzDot",n.nzDot)("nzCount",n.nzCount)("nzOverflowCount",n.nzOverflowCount)("disableAnimation",!!(n.nzStandalone||n.nzStatus||n.presetColor||n.noAnimation!=null&&n.noAnimation.nzNoAnimation))("noAnimation",!!(n.noAnimation!=null&&n.noAnimation.nzNoAnimation))}}function cn(t,r){if(t&1&&(A(0),f(1,dn,1,11,"nz-badge-sup",3),N()),t&2){let n=l();s(),g(n.showSup?1:-1)}}function mn(t,r){if(t&1&&(A(0),d(1,"span",3),b(2),c(),N()),t&2){let n=l();s(2),k(n.nzText)}}var Cn=(()=>{class t{nzOffset;nzTitle;nzStyle=null;nzDot=!1;nzOverflowCount=99;disableAnimation=!1;nzCount;noAnimation=!1;nzSize="default";isPresetColor=!1;nzColor;maxNumberArray=[];countArray=[];count=0;countSingleArray=[0,1,2,3,4,5,6,7,8,9];generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("").map((n,o)=>`${n}-${o}`)}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(n){let{nzOverflowCount:o,nzCount:e}=n;e&&typeof e.currentValue=="number"&&(this.count=Math.max(0,e.currentValue),this.countArray=this.count.toString().split("").map(h=>+h)),o&&this.generateMaxNumberArray()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=O({type:t,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:19,hostBindings:function(o,e){o&2&&(q("@.disabled",e.disableAnimation)("@zoomBadgeMotion",void 0),Y("title",e.nzTitle===null?"":e.nzTitle||e.nzCount),j(e.nzStyle),T(e.isPresetColor?"ant-badge-status-"+e.nzColor:""),S("right",e.nzOffset&&e.nzOffset[0]?-e.nzOffset[0]:null,"px")("margin-top",e.nzOffset&&e.nzOffset[1]?e.nzOffset[1]:null,"px"),_("ant-badge-count",!e.nzDot)("ant-badge-count-sm",e.nzSize==="small")("ant-badge-dot",e.nzDot)("ant-badge-multiple-words",e.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",J],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize",isPresetColor:[2,"isPresetColor","isPresetColor",m],nzColor:"nzColor"},exportAs:["nzBadgeSup"],features:[v],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(o,e){o&1&&f(0,sn,2,0)(1,zn,1,1),o&2&&g(e.count<=e.nzOverflowCount?0:1)},dependencies:[G],encapsulation:2,data:{animation:[H]},changeDetection:0})}return t})(),nn=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],fn="badge",gn=(()=>{var z;let t,r=[],n=[],o,e=[],h=[];return z=class{nzConfigService=y(Q);dir=y(K).valueSignal;noAnimation=y(G,{host:!0,optional:!0});_nzModuleName=fn;showSup=!1;presetColor=null;nzShowZero=!1;nzShowDot=!0;nzStandalone=!1;nzDot=!1;nzOverflowCount=C(this,r,99);nzColor=(C(this,n),C(this,e,void 0));nzStyle=(C(this,h),null);nzText=null;nzTitle;nzStatus;nzCount;nzOffset;nzSize="default";get mergedStyle(){return L({backgroundColor:!this.presetColor&&this.nzColor},this.nzStyle??{})}ngOnChanges(u){let{nzColor:i,nzShowDot:a,nzDot:tn,nzCount:en,nzShowZero:on}=u;i&&(this.presetColor=this.nzColor&&nn.indexOf(this.nzColor)!==-1?this.nzColor:null),(a||tn||en||on)&&(this.showSup=this.nzShowDot&&this.nzDot||typeof this.nzCount=="number"&&(this.nzCount>0||this.nzShowZero))}},(()=>{let u=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[$()],o=[$()],B(null,null,t,{kind:"field",name:"nzOverflowCount",static:!1,private:!1,access:{has:i=>"nzOverflowCount"in i,get:i=>i.nzOverflowCount,set:(i,a)=>{i.nzOverflowCount=a}},metadata:u},r,n),B(null,null,o,{kind:"field",name:"nzColor",static:!1,private:!1,access:{has:i=>"nzColor"in i,get:i=>i.nzColor,set:(i,a)=>{i.nzColor=a}},metadata:u},e,h),u&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u})})(),D(z,"\u0275fac",function(i){return new(i||z)}),D(z,"\u0275cmp",O({type:z,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:6,hostBindings:function(i,a){i&2&&_("ant-badge-status",a.nzStatus)("ant-badge-not-a-wrapper",!!(a.nzStandalone||(a.nzStatus||a.nzColor)&&!a.showSup&&!a.nzCount))("ant-badge-rtl",a.dir()==="rtl")},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",m],nzShowDot:[2,"nzShowDot","nzShowDot",m],nzStandalone:[2,"nzStandalone","nzStandalone",m],nzDot:[2,"nzDot","nzDot",m],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],features:[v],ngContentSelectors:X,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[1,"ant-badge-status-dot"],[1,"ant-badge-status-text"],[3,"isPresetColor","nzColor","nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzCount","nzOverflowCount","disableAnimation","noAnimation"]],template:function(i,a){i&1&&(F(),f(0,pn,3,5),E(1),w(2,cn,2,1,"ng-container",0)),i&2&&(g((a.nzStatus||a.nzColor)&&!a.showSup&&!a.nzCount?0:-1),s(2),p("nzStringTemplateOutlet",a.nzCount))},dependencies:[Cn,R,V],encapsulation:2,data:{animation:[H]},changeDetection:0})),z})(),Sn=(()=>{class t{nzColor;nzPlacement="end";nzText=null;presetColor=null;ngOnChanges(n){let{nzColor:o}=n;o&&(this.presetColor=this.nzColor&&nn.indexOf(this.nzColor)!==-1?this.nzColor:null)}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=O({type:t,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[v],ngContentSelectors:X,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(o,e){o&1&&(F(),E(0),d(1,"div",0),w(2,mn,3,1,"ng-container",1),x(3,"div",2),c()),o&2&&(s(),T(e.presetColor&&"ant-ribbon-color-"+e.presetColor),S("background-color",!e.presetColor&&e.nzColor),_("ant-ribbon-placement-end",e.nzPlacement==="end")("ant-ribbon-placement-start",e.nzPlacement==="start"),s(),p("nzStringTemplateOutlet",e.nzText),s(),S("color",!e.presetColor&&e.nzColor))},dependencies:[R,V],encapsulation:2,changeDetection:0})}return t})(),Pn=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=W({type:t});static \u0275inj=U({imports:[gn,Sn]})}return t})();export{gn as a,Pn as b};
@@ -0,0 +1 @@
1
+ import{j as Kt}from"./chunk-YMTC5GZK.js";import{a as Ut,e as Zt,f as Yt}from"./chunk-RW2JPJV7.js";import{a as Qt}from"./chunk-MVQTKINJ.js";import{b as $t}from"./chunk-INL2PELS.js";import{a as en,b as tn}from"./chunk-B6MBYCXI.js";import"./chunk-G2W3B7TJ.js";import"./chunk-PIK5YPIB.js";import"./chunk-YVZHJ76K.js";import"./chunk-SIVPP74B.js";import{a as Xt,b as Gt}from"./chunk-WD4IAQR3.js";import{b as Jt}from"./chunk-WF2QTF5L.js";import"./chunk-HRXCR3IN.js";import"./chunk-DW7F5PEA.js";import"./chunk-KVFR7GFV.js";import{a as Rt,b as jt,c as fe}from"./chunk-HHBPULJW.js";import{b as ce}from"./chunk-2X3MRS27.js";import{e as qt,f as U}from"./chunk-4KETC6EB.js";import{a as Re,e as Nt,f as Dt,g as At}from"./chunk-JU3TEDBV.js";import"./chunk-JZULA5JV.js";import{a as Wt,b as Ht}from"./chunk-TMX5TTV3.js";import{a as Bt}from"./chunk-UQGCUFNM.js";import{g as wt,l as Pt}from"./chunk-BYEU6KGP.js";import"./chunk-5T5KA5PG.js";import{e as Ft,f as Lt}from"./chunk-UXXWRMM6.js";import{$b as kt,B as ht,Bb as Tt,C as De,Eb as pe,F as xt,Fa as k,Ga as O,Gb as de,H as vt,Ha as bt,Ia as yt,Kb as ue,L as S,Ma as Ot,Na as q,Oa as W,Pa as le,Ra as H,Sa as N,Ub as I,Xb as Et,Y as zt,Zb as me,_b as St,a as _t,ac as $,dc as Q,fc as ge,gc as It,ja as Mt,mb as Vt,ra as Ae,rb as Fe,s as Ct}from"./chunk-SPRWNZHF.js";import"./chunk-HFZLJHYR.js";import"./chunk-L5D75AMV.js";import{i as ft,n as E}from"./chunk-T3KK7ZXB.js";import{$b as D,Ac as T,Ba as K,Bb as tt,Ca as Ge,Cc as lt,Da as B,Dc as ct,Ec as L,Fb as M,G as ze,Gb as nt,Gc as R,Ha as ye,Hb as it,Hc as pt,Ic as dt,Jc as c,Kc as y,L as Me,Lb as w,Lc as C,M as G,Mc as Ve,Nc as oe,Oa as Ke,Oc as se,Pc as re,Q as He,Qc as Te,Ra as Oe,Rc as Ee,Sc as v,U as $e,Ub as ot,Uc as Se,V as Qe,Vc as ke,Wb as h,Wc as ut,Yb as x,_b as Pe,ac as A,bc as g,cc as s,cd as j,dc as r,ea as be,ec as d,fc as st,g as P,gc as rt,ha as Ue,hd as Ne,i as qe,ic as ee,id as mt,jc as te,l as We,lc as z,ma as Ze,nb as a,oa as Ye,od as gt,qa as Xe,rc as m,sa as u,sb as Z,tb as we,td as Ie,uc as p,vb as Je,vc as ne,wb as et,wc as ie,xc as at,xd as ae,ya as f,yc as F,za as _,zb as J,zc as V}from"./chunk-WI67LAOV.js";var _e=class t{constructor(i,e,n){this.stream=i;this.clipboard=e;this.notify=n;this.resizeSub.add(this.resize$.pipe(He(350),Qe((o,l)=>o.cols===l.cols&&o.rows===l.rows),S(this.destroyRef)).subscribe(o=>{this._taskId&&this.stream.resize(this._taskId,o.cols,o.rows)}))}_taskId="";destroyRef=u(B);set taskId(i){let e=(i??"").trim();e&&e!==this._taskId&&(this._taskId&&(this.stream.unsubscribeTask(this._taskId),this.term?.clear()),this._taskId=e,this.bind(e))}get taskId(){return this._taskId}tail=200;follow=!0;status={status:"idle"};term;sub=new P;resizeSub=new P;resize$=new We;bind(i){this.stream.subscribeTask(i,this.tail),this.sub.unsubscribe(),this.sub=new P,this.sub.add(this.stream.output$(i).subscribe(e=>{this.term&&(this.term.follow=this.follow,this.term.write(e.payload.text))})),this.sub.add(this.stream.status$(i).subscribe(e=>this.status=e))}ngOnDestroy(){this._taskId&&this.stream.unsubscribeTask(this._taskId),this.sub.unsubscribe(),this.resizeSub.unsubscribe()}toggleFollow(){this.follow=!this.follow,this.follow&&this.term?.scrollToBottom()}clear(){this.term?.clear()}toBottom(){this.term?.scrollToBottom()}async copy(){let i=this.term?.copyAll()??"";if(!i)return;this.clipboard.copy(i)?this.notify.success("Console output copied to clipboard."):this.notify.error("Failed to copy console output.")}onTermResized(i){this.resize$.next(i)}static \u0275fac=function(e){return new(e||t)(J(Rt),J(en),J(Lt))};static \u0275cmp=M({type:t,selectors:[["app-task-console"]],viewQuery:function(e,n){if(e&1&&F(Re,5),e&2){let o;V(o=T())&&(n.term=o.first)}},inputs:{taskId:"taskId",tail:"tail"},decls:16,vars:1,consts:[[1,"console-card"],[1,"header"],[1,"title"],["nzType","desktop","nzTheme","outline"],[1,"id"],[1,"actions"],["nzAlign","center"],["nz-button","","nz-tooltip","\u6E05\u7A7A\u65E5\u5FD7",3,"click"],["nzType","clear","nzTheme","outline"],["nz-button","","nz-tooltip","\u590D\u5236\u65E5\u5FD7",3,"click"],["nzType","copy","nzTheme","outline"],["nz-button","","nz-tooltip","\u6EDA\u52A8\u5230\u5E95\u90E8",3,"click"],["nzType","vertical-align-bottom","nzTheme","outline"],[1,"viewport"],[3,"resized","follow"]],template:function(e,n){e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),d(3,"nz-icon",3),s(4,"div",4),c(5,"\u8F93\u51FA"),r()(),s(6,"div",5)(7,"nz-space",6)(8,"button",7),m("click",function(){return n.clear()}),d(9,"nz-icon",8),r(),s(10,"button",9),m("click",function(){return n.copy()}),d(11,"nz-icon",10),r(),s(12,"button",11),m("click",function(){return n.toBottom()}),d(13,"nz-icon",12),r()()()(),s(14,"div",13)(15,"app-terminal-view",14),m("resized",function(l){return n.onTermResized(l)}),r()()()),e&2&&(a(15),g("follow",n.follow))},dependencies:[I,N,H,W,le,q,Ot,O,k,ge,Q,Re,tn],styles:[".console-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.08);border-radius:8px;overflow:hidden;min-height:0}.header[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:8px 12px}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] .running[_ngcontent-%COMP%]{opacity:.9}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] .stopped[_ngcontent-%COMP%]{opacity:.8}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] .idle[_ngcontent-%COMP%]{opacity:.6}.viewport[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden;padding:8px;background:#000;border-radius:8px}"]})};var he=class t{name;description;command;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-task-header"]],inputs:{name:"name",description:"description",command:"command"},decls:7,vars:3,consts:[[1,"name"],["nzType","appstore"],[1,"description"],[1,"command"]],template:function(e,n){e&1&&(s(0,"div",0),d(1,"nz-icon",1),c(2),r(),s(3,"div",2),c(4),r(),s(5,"div",3),c(6),r()),e&2&&(a(2),C(" ",n.name||"\u672A\u9009\u62E9\u4EFB\u52A1"),a(2),y(n.description||"-"),a(2),y(n.command||"-"))},dependencies:[E,O,k],styles:["[_nghost-%COMP%]{padding:0 16px;display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .name[_ngcontent-%COMP%]{font-size:22px;position:relative;top:-1px}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{flex:1;color:var(--app-text-secondary);font-size:15px;margin:0 16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .command[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:13px;background:var(--app-primary-3);height:32px;line-height:32px;padding:0 12px;border-radius:3px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}"]})};var fn=(t,i)=>i.spec.id;function _n(t,i){t&1&&(s(0,"div",7),c(1,"Loading..."),r())}function Cn(t,i){if(t&1&&(s(0,"div",7),c(1),r()),t&2){let e=p(2);a(),C("No tasks for project: ",e.projectId())}}function hn(t,i){t&1&&d(0,"nz-badge",14)}function xn(t,i){t&1&&d(0,"nz-badge",15)}function vn(t,i){t&1&&d(0,"nz-badge",16)}function zn(t,i){if(t&1){let e=z();s(0,"div",10),m("click",function(){let o=f(e).$implicit,l=p(3);return _(l.state.select(o.spec.id))}),s(1,"div",11)(2,"div",12),d(3,"nz-icon",13),h(4,hn,1,0,"nz-badge",14)(5,xn,1,0,"nz-badge",15)(6,vn,1,0,"nz-badge",16),r(),s(7,"div",17)(8,"div",18),c(9),r(),s(10,"div",19),c(11),r()()()()}if(t&2){let e=i.$implicit,n=p(3);R("active",e.spec.id===n.selectedId()),a(),g("nz-tooltip",e.spec.description||""),a(3),x((e==null||e.runtime==null?null:e.runtime.status)==="running"?4:(e==null||e.runtime==null?null:e.runtime.status)==="stopping"?5:6),a(4),g("title",e.spec.name),a(),y(e.spec.name),a(2),C(" ",(e.runtime==null?null:e.runtime.status)==="running"?"\u8FD0\u884C\u4E2D":(e.runtime==null?null:e.runtime.status)==="stopping"?"\u505C\u6B62\u4E2D":(e.runtime==null?null:e.runtime.status)==="stopped"?"\u5DF2\u505C\u6B62":e.spec.description||"\u7A7A\u95F2\u4E2D"," ")}}function Mn(t,i){if(t&1&&(s(0,"div",8),D(1,zn,12,7,"div",9,fn),r()),t&2){let e=p(2);a(),A(e.list())}}function bn(t,i){if(t&1&&h(0,Cn,2,1,"div",7)(1,Mn,3,0,"div",8),t&2){let e=p();x(e.list().length===0?0:1)}}var xe=class t{state=u(fe);keyword=this.state.keyword;loading=this.state.loading;list=this.state.rowsViewFiltered;selectedId=this.state.selectedTaskId;projectId=this.state.projectId;badge(i){return i??""}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-task-list"]],decls:10,vars:2,consts:[[1,"wrap"],[1,"header"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","\u641C\u7D22\u4EFB\u52A1",3,"ngModelChange","ngModel"],["nz-button","","nzType","text",3,"click"],["nz-icon","","nzType","reload"],[1,"body"],[1,"hint"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],["nzTooltipPlacement","right",1,"row",3,"nz-tooltip"],[1,"icon"],["nzType","codepen-circle","nzTheme","outline"],["nzStatus","processing"],["nzStatus","warning"],["nzStatus","default"],[1,"info"],[1,"name",3,"title"],[1,"description"]],template:function(e,n){e&1&&(s(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),d(3,"nz-icon",2),s(4,"input",3),m("ngModelChange",function(l){return n.keyword.set(l)}),r()(),s(5,"button",4),m("click",function(){return n.state.refresh()}),d(6,"span",5),r()(),s(7,"div",6),h(8,_n,2,0,"div",7)(9,bn,2,1),r()()),e&2&&(a(4),g("ngModel",n.keyword()),a(4),x(n.loading()?8:9))},dependencies:[E,I,pe,de,ue,N,H,W,O,k,ce,q,U,$,me,kt,Et,ge,Q,Ht,Wt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:320px;flex:0 0 320px}.wrap[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:hidden}.header[_ngcontent-%COMP%]{width:100%;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.12);flex:0 0 auto}.header[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.body[_ngcontent-%COMP%]{flex:1 1 auto;height:0;display:flex;flex-direction:column}.error[_ngcontent-%COMP%]{padding:10px 12px;color:#b42318;flex:0 0 auto}.hint[_ngcontent-%COMP%]{padding:12px;opacity:.7;flex:0 0 auto}.items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:8px;height:100%;overflow-x:hidden;overflow-y:auto}.item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.item[_ngcontent-%COMP%]:hover, .item.active[_ngcontent-%COMP%]{background:var(--app-primary-3)}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.2);opacity:.85}.item[_ngcontent-%COMP%] .badge[data-status=running][_ngcontent-%COMP%]{font-weight:700}.item[_ngcontent-%COMP%] .badge[data-status=stopped][_ngcontent-%COMP%]{opacity:.7}.item[_ngcontent-%COMP%] .badge[data-status=failed][_ngcontent-%COMP%]{font-weight:700}.item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.75;display:flex;align-items:center;gap:6px}.item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace}.item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .sep[_ngcontent-%COMP%]{opacity:.5}"]})};var rn=new Xe("",{providedIn:"root",factory:()=>{let t=u(K);return new qe(i=>{let e=Je(()=>{i.next(),i.complete()},{injector:t});return()=>e.destroy()})}});var wn=[[["nz-auto-option"]]],Pn=["nz-auto-option"];function Vn(t,i){if(t&1&&(ee(0),c(1),te()),t&2){let e=p();a(),y(e.nzLabel)}}var an=["*"],Tn=["panel"],En=["content"],Sn=(t,i)=>i.value;function kn(t,i){}function Nn(t,i){t&1&&w(0,kn,0,0,"ng-template")}function In(t,i){t&1&&ie(0)}function Dn(t,i){if(t&1&&(s(0,"nz-auto-option",7),c(1),r()),t&2){let e=i.$implicit;g("nzValue",e.value)("nzLabel",e.label),a(),C(" ",e.label," ")}}function An(t,i){if(t&1&&D(0,Dn,2,3,"nz-auto-option",7,Sn),t&2){let e=p(2);A(e.normalizedDataSource)}}function Fn(t,i){if(t&1){let e=z();s(0,"div",3,0),m("@slideMotion.done",function(o){f(e);let l=p();return _(l.onAnimationEvent(o))}),s(2,"div",4)(3,"div",5),w(4,Nn,1,0,null,6),r()()(),w(5,In,1,0,"ng-template",null,1,j)(7,An,2,0,"ng-template",null,2,j)}if(t&2){let e=L(6),n=L(8),o=p();pt(o.nzOverlayStyle),dt(o.nzOverlayClassName),R("ant-select-dropdown-hidden",!o.showPanel)("ant-select-dropdown-rtl",o.dir==="rtl"),g("nzNoAnimation",o.noAnimation==null?null:o.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",!!(o.noAnimation!=null&&o.noAnimation.nzNoAnimation)),a(4),g("ngTemplateOutlet",o.nzDataSource?n:e)}}var ln=(()=>{class t{nzLabel;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Pn,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(n,o){n&1&&(ne(wn),s(0,"div",0),w(1,Vn,2,1,"ng-container",1),r(),ie(2)),n&2&&(a(),g("nzStringTemplateOutlet",o.nzLabel))},dependencies:[yt,bt],encapsulation:2,changeDetection:0})}return t})(),Le=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},X=(()=>{class t{ngZone=u(we);changeDetectorRef=u(Ie);element=u(Oe);destroyRef=u(B);nzValue;nzLabel;nzDisabled=!1;selectionChange=new Z;mouseEntered=new Z;active=!1;selected=!1;nzAutocompleteOptgroupComponent=u(ln,{optional:!0});ngOnInit(){Ae(this.element.nativeElement,"mouseenter").pipe(G(()=>this.mouseEntered.observers.length>0),S(this.destroyRef)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),Ae(this.element.nativeElement,"mousedown").pipe(S(this.destroyRef)).subscribe(e=>e.preventDefault())}select(e=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),e&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){Mt(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(e=!1){this.selectionChange.emit(new Le(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(n,o){n&1&&m("click",function(){return o.selectViaInteraction()}),n&2&&(ot("aria-selected",o.selected.toString())("aria-disabled",o.nzDisabled.toString()),R("ant-select-item-option-grouped",o.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",o.selected)("ant-select-item-option-active",o.active)("ant-select-item-option-disabled",o.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:[2,"nzDisabled","nzDisabled",ae]},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:an,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(n,o){n&1&&(ne(),st(0,"div",0),ie(1),rt())},encapsulation:2,changeDetection:0})}return t})(),Rn={provide:Tt,useExisting:Ze(()=>je),multi:!0};function Bn(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}var je=(()=>{class t{injector=u(K);ngZone=u(we);elementRef=u(Oe);viewContainerRef=u(tt);destroyRef=u(B);nzAutocomplete;onChange=()=>{};onTouched=()=>{};panelOpen=!1;get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}overlayRef=null;portal=null;positionStrategy;previousValue=null;selectionChangeSubscription;optionsChangeSubscription;overlayOutsideClickSubscription;document=u(Ge);nzInputGroupWhitSuffixOrPrefixDirective=u(St,{optional:!0});constructor(){this.destroyRef.onDestroy(()=>{this.destroyPanel()})}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe(S(this.destroyRef)).subscribe(e=>{e.toState==="void"&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}writeValue(e){this.ngZone.runOutsideAngular(()=>{Promise.resolve(null).then(()=>this.setTriggerValue(e))})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){let n=this.elementRef.nativeElement;n.disabled=e,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(e){let n=e.keyCode,o=n===38||n===40;n===27&&e.preventDefault(),this.panelOpen&&(n===27||n===9)?(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel()):this.panelOpen&&n===13?this.nzAutocomplete.showPanel&&(e.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&o&&this.nzAutocomplete.showPanel&&(e.stopPropagation(),e.preventDefault(),n===38?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill())}handleInput(e){let n=e.target,o=this.document,l=n.value;n.type==="number"&&(l=l===""?null:parseFloat(l)),this.previousValue!==l&&(this.previousValue=l,this.onChange(l),this.canOpen()&&o.activeElement===e.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleClick(){this.canOpen()&&!this.panelOpen&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe(Ue(()=>this.positionStrategy.reapplyLastPosition()),$e(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(e=>{this.setValueAndClose(e)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe(G(e=>!this.elementRef.nativeElement.contains(e.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw Bn();!this.portal&&this.nzAutocomplete.template&&(this.portal=new Ct(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=vt(this.injector,{positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:ht(this.injector),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe(S(this.destroyRef)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?.elementRef??this.elementRef}getOverlayPosition(){return this.positionStrategy=xt(this.injector,this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions([new De({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new De({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})]).withTransformOriginOn(".ant-select-dropdown")}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}resetActiveItem(){let e=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),e!==-1?(this.nzAutocomplete.setActiveItem(e),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(e){let n=e.nzValue;this.setTriggerValue(e.getLabel()),this.onChange(n),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(e){let n=this.nzAutocomplete.getOption(e),o=n?n.getLabel():e;this.elementRef.nativeElement.value=o??"",this.nzAutocomplete.nzBackfill||(this.previousValue=o)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){let e=this.elementRef.nativeElement;return!e.readOnly&&!e.disabled}static \u0275fac=function(n){return new(n||t)};static \u0275dir=it({type:t,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(n,o){n&1&&m("focusin",function(){return o.handleFocus()})("blur",function(){return o.handleBlur()})("input",function(b){return o.handleInput(b)})("keydown",function(b){return o.handleKeydown(b)})("click",function(){return o.handleClick()})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[ut([Rn])]})}return t})();function Ln(t){return t?.map(i=>typeof i=="number"||typeof i=="string"?{label:i.toString(),value:i.toString()}:i)}var cn=(()=>{class t{changeDetectorRef=u(Ie);directionality=u(_t);destroyRef=u(B);nzWidth;nzOverlayClassName="";nzOverlayStyle={};nzDefaultActiveFirstOption=!0;nzBackfill=!1;compareWith=(e,n)=>e===n;nzDataSource;selectionChange=new Z;showPanel=!0;isOpen=!1;activeItem=null;dir="ltr";normalizedDataSource=[];animationStateChange=new Z;get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}fromContentOptions;fromDataSourceOptions;template;panel;content;activeItemIndex=-1;selectionChangeSubscription=P.EMPTY;optionMouseEnterSubscription=P.EMPTY;dataSourceChangeSubscription=P.EMPTY;optionSelectionChanges=ze(()=>this.options?Me(...this.options.map(e=>e.selectionChange)):this.afterNextRender$.pipe(be(()=>this.optionSelectionChanges)));optionMouseEnter=ze(()=>this.options?Me(...this.options.map(e=>e.mouseEntered)):this.afterNextRender$.pipe(be(()=>this.optionMouseEnter)));afterNextRender$=u(rn);noAnimation=u(Fe,{host:!0,optional:!0});constructor(){this.destroyRef.onDestroy(()=>{this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null})}ngOnInit(){this.directionality.change?.pipe(S(this.destroyRef)).subscribe(e=>{this.dir=e,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDataSource:n}=e;n&&(this.normalizedDataSource=Ln(n.currentValue))}onAnimationEvent(e){this.animationStateChange.emit(e)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(e){let n=this.options.get(e);n&&!n.active?(this.activeItem=n,this.activeItemIndex=e,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){let e=this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0;this.setActiveItem(e)}setPreviousItemActive(){let e=this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1;this.setActiveItem(e)}getOptionIndex(e){return this.options.reduce((n,o,l)=>n===-1?this.compareWith(e,o.nzValue)?l:-1:n,-1)}getOption(e){return this.options.find(n=>this.compareWith(e,n.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges();let e=this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes;this.dataSourceChangeSubscription=e.subscribe(n=>{!n.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(e,n=!1){this.options.forEach(o=>{o!==e&&(n&&o.deselect(),o.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe(G(e=>e.isUserInput)).subscribe(e=>{e.source.select(),e.source.setActiveStyles(),this.activeItem=e.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e.source,!0),this.selectionChange.emit(e.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(e=>{e.setActiveStyles(),this.activeItem=e,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=M({type:t,selectors:[["nz-autocomplete"]],contentQueries:function(n,o,l){if(n&1&&at(l,X,5),n&2){let b;V(b=T())&&(o.fromContentOptions=b)}},viewQuery:function(n,o){if(n&1&&(F(et,5),F(Tn,5),F(En,5),F(X,5)),n&2){let l;V(l=T())&&(o.template=l.first),V(l=T())&&(o.panel=l.first),V(l=T())&&(o.content=l.first),V(l=T())&&(o.fromDataSourceOptions=l)}},inputs:{nzWidth:[2,"nzWidth","nzWidth",zt],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:[2,"nzDefaultActiveFirstOption","nzDefaultActiveFirstOption",ae],nzBackfill:[2,"nzBackfill","nzBackfill",ae],compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],features:[Ke],ngContentSelectors:an,decls:1,vars:0,consts:[["panel",""],["contentTemplate",""],["optionsTemplate",""],[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"nzNoAnimation"],[1,"ant-select-dropdown-content-wrapper"],[1,"ant-select-dropdown-content"],[4,"ngTemplateOutlet"],[3,"nzValue","nzLabel"]],template:function(n,o){n&1&&(ne(),w(0,Fn,9,12,"ng-template"))},dependencies:[ft,X,Fe],encapsulation:2,data:{animation:[Vt]},changeDetection:0})}return t})(),pn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=nt({type:t});static \u0275inj=Ye({imports:[ln]})}return t})();var qn=["settingsModal"];function Wn(t,i){if(t&1&&d(0,"span",10),t&2){p(2);let e=v(0);g("nzTooltipTitle",Se("\u9879\u76EE\u5DF2\u914D\u7F6E Volta (node@",e.voltaConfig,")\uFF0C\u7531 Volta \u81EA\u52A8\u5207\u6362"))}}function Hn(t,i){if(t&1&&d(0,"span",10),t&2){p(3);let e=v(0);g("nzTooltipTitle",ke("\u5F53\u524D\u7248\u672C ",e.satisfiedBy," \u6EE1\u8DB3\u9879\u76EE\u8981\u6C42 (",e.requiredVersion,")"))}}function $n(t,i){if(t&1&&d(0,"span",12),t&2){p(3);let e=v(0);g("nzTooltipTitle",ke("\u9879\u76EE\u8981\u6C42 ",e.requiredVersion,"\uFF0C\u8FD0\u884C\u540E\u5C06\u81EA\u52A8\u5207\u6362\u5230 ",e.satisfiedBy))}}function Qn(t,i){if(t&1&&d(0,"span",13),t&2){p(3);let e=v(0);g("nzTooltipTitle",Se("\u9879\u76EE\u8981\u6C42 ",e.requiredVersion,"\uFF0C\u4F46\u672A\u627E\u5230\u5339\u914D\u7684\u5DF2\u5B89\u88C5\u7248\u672C"))}}function Un(t,i){if(t&1&&h(0,Hn,1,3,"span",10)(1,$n,1,3,"span",12)(2,Qn,1,2,"span",13),t&2){p(2);let e=v(0);x(e.isMatch?0:e.satisfiedBy?1:2)}}function Zn(t,i){t&1&&d(0,"span",11)}function Yn(t,i){if(t&1&&h(0,Wn,1,2,"span",10)(1,Un,3,1)(2,Zn,1,0,"span",11),t&2){p();let e=v(0);x(e.voltaConfig?0:e.requiredVersion?1:2)}}function Xn(t,i){if(t&1){let e=z();s(0,"div",16)(1,"p"),c(2,"NVM (Node Version Manager) \u662F\u4E00\u4E2A\u7528\u4E8E\u7BA1\u7406\u591A\u4E2A Node.js \u7248\u672C\u7684\u5DE5\u5177\u3002"),r(),s(3,"p"),c(4,"\u4F7F\u7528 NVM \u53EF\u4EE5\u8F7B\u677E\u5730\u5728\u4E0D\u540C\u9879\u76EE\u95F4\u5207\u6362 Node \u7248\u672C\uFF0C\u907F\u514D\u7248\u672C\u51B2\u7A81\u3002"),r(),s(5,"div",17)(6,"button",18),m("click",function(){f(e);let o=p(2);return _(o.openNvmLearnMorePage())}),c(7,"\u4E86\u89E3\u66F4\u591A"),r(),s(8,"button",19),m("click",function(){f(e);let o=p(2);return _(o.openNvmInstallPage())}),c(9,"\u4E0B\u8F7D NVM"),r()()()}}function Gn(t,i){if(t&1&&(s(0,"button",14),d(1,"span",15),c(2," \u5B89\u88C5 NVM "),r(),w(3,Xn,10,0,"ng-template",null,1,j)),t&2){let e=L(4);g("nzPopoverTrigger","hover")("nzPopoverContent",e)}}function Kn(t,i){if(t&1&&(s(0,"div",21),d(1,"span",38),c(2),r()),t&2){let e=p(2);a(2),C(" ",e.nodeVersion.getNoManagerMessage()," ")}}function Jn(t,i){if(t&1&&(s(0,"div",39)(1,"div",44)(2,"span",45),c(3,"Volta \u81EA\u52A8\u7BA1\u7406"),r(),s(4,"span",46),c(5),r()()()),t&2){p(3);let e=v(0);a(5),C("\u9879\u76EE\u5DF2\u914D\u7F6E node@",e.voltaConfig)}}function ei(t,i){if(t&1&&(s(0,"div",39)(1,"div",44)(2,"span",45),c(3,"\u7248\u672C\u6EE1\u8DB3\u8981\u6C42"),r(),s(4,"span",46),c(5),r()()()),t&2){p(3);let e=v(0);a(5),Ve("\u5F53\u524D ",e.satisfiedBy," \u6EE1\u8DB3 ",e.requiredVersion)}}function ti(t,i){if(t&1&&(s(0,"div",40)(1,"div",44)(2,"span",45),c(3,"\u5C06\u81EA\u52A8\u5207\u6362"),r(),s(4,"span",46),c(5),r()()()),t&2){p(3);let e=v(0);a(5),Ve("\u8981\u6C42 ",e.requiredVersion,"\uFF0C\u5207\u6362\u5230 ",e.satisfiedBy)}}function ni(t,i){if(t&1&&(s(0,"div",41)(1,"div",44)(2,"span",45),c(3,"\u7248\u672C\u4E0D\u5339\u914D"),r(),s(4,"span",46),c(5),r()()()),t&2){p(3);let e=v(0);a(5),C("\u8981\u6C42 ",e.requiredVersion,"\uFF0C\u672A\u627E\u5230\u5DF2\u5B89\u88C5\u7248\u672C")}}function ii(t,i){if(t&1){let e=z();s(0,"div",42)(1,"div",44)(2,"span",45),c(3,"\u672A\u914D\u7F6E\u8981\u6C42"),r(),s(4,"span",46),c(5,"\u5728 package.json \u7684 engines.node \u5B57\u6BB5\u914D\u7F6E"),r()(),s(6,"button",47),m("click",function(){f(e);let o=p(3);return _(o.openWriteConfig())}),d(7,"span",48),c(8," \u5199\u5165\u914D\u7F6E "),r()()}}function oi(t,i){if(t&1){let e=z();s(0,"div",42)(1,"div",44)(2,"span",45),c(3,"\u5DF2\u914D\u7F6E\u8981\u6C42"),r(),s(4,"span",46),c(5),r()(),s(6,"button",49),m("click",function(){f(e);let o=p(3);return _(o.openWriteConfig())}),d(7,"span",48),c(8," \u4FEE\u6539\u914D\u7F6E "),r()()}if(t&2){p(3);let e=v(0);a(5),C("\u5F53\u524D engines.node: ",e.requiredVersion)}}function si(t,i){if(t&1){let e=z();s(0,"div",43)(1,"div",27)(2,"span",28),c(3),r(),s(4,"button",50),m("click",function(){f(e);let o=p(3);return _(o.closeWriteConfig())}),d(5,"span",51),r()(),s(6,"div",52)(7,"div",53)(8,"span",54),c(9,"\u63A8\u8350\u7248\u672C:"),r(),s(10,"nz-select",55),re("ngModelChange",function(o){f(e);let l=p(3);return se(l.selectedEngineVersion,o)||(l.selectedEngineVersion=o),_(o)}),r()(),s(11,"div",53)(12,"span",54),c(13,"\u6216\u624B\u52A8\u8F93\u5165:"),r(),s(14,"input",56),re("ngModelChange",function(o){f(e);let l=p(3);return se(l.customEngineVersion,o)||(l.customEngineVersion=o),_(o)}),r()()(),s(15,"div",57)(16,"span",58),c(17,"\u9884\u89C8:"),r(),s(18,"code",59),c(19),r()(),s(20,"div",60)(21,"button",61),m("click",function(){f(e);let o=p(3);return _(o.writeEngineConfig())}),d(22,"span",62),c(23," \u5199\u5165 package.json "),r()()()}if(t&2){let e=p(3),n=v(0);a(3),C("",n.hasEnginesConfig?"\u4FEE\u6539":"\u5199\u5165"," engines.node \u914D\u7F6E"),a(7),oe("ngModel",e.selectedEngineVersion),g("nzOptions",e.recommendedEngineVersions),a(4),oe("ngModel",e.customEngineVersion),a(5),C(" ",e.getEngineConfigPreview()," "),a(2),g("nzLoading",e.writingConfig)}}function ri(t,i){if(t&1&&(h(0,Jn,6,1,"div",39)(1,ei,6,2,"div",39)(2,ti,6,2,"div",40)(3,ni,6,1,"div",41),h(4,ii,9,0,"div",42)(5,oi,9,1,"div",42),h(6,si,24,6,"div",43)),t&2){let e=p(2),n=v(0);x(n.voltaConfig?0:n.isMatch?1:n.satisfiedBy?2:n.requiredVersion?3:-1),a(4),x(n.hasEnginesConfig?5:4),a(2),x(e.showWriteConfig?6:-1)}}function ai(t,i){if(t&1){let e=z();s(0,"nz-auto-option",67),m("click",function(){let o=f(e).$implicit,l=p(3);return _(l.onVersionSelect(o))}),c(1),r()}if(t&2){let e=i.$implicit;g("nzValue",e),a(),y(e)}}function li(t,i){if(t&1){let e=z();s(0,"div",25)(1,"span",28),c(2,"\u5FEB\u901F\u5B89\u88C5"),r(),s(3,"div",63)(4,"input",64),re("ngModelChange",function(o){f(e);let l=p(2);return se(l.selectedInstallVersion,o)||(l.selectedInstallVersion=o),_(o)}),m("input",function(o){f(e);let l=p(2);return _(l.onVersionInput(o))}),r(),s(5,"nz-autocomplete",null,2),D(7,ai,2,2,"nz-auto-option",65,Pe),r(),s(9,"button",66),m("click",function(){f(e);let o=p(2);return _(o.installVersion())}),d(10,"span",15),c(11," \u5B89\u88C5 "),r()()()}if(t&2){let e=L(6),n=p(2);a(4),oe("ngModel",n.selectedInstallVersion),g("nzAutocomplete",e),a(3),A(n.filteredVersions),a(2),g("nzLoading",n.installing())("disabled",!n.selectedInstallVersion)}}function ci(t,i){if(t&1){let e=z();s(0,"span",75),m("click",function(o){f(e);let l=p().$implicit,b=p(3);return _(b.confirmDelete(l,o))}),d(1,"span",51),r()}}function pi(t,i){t&1&&(s(0,"span",74),c(1,"\u5F53\u524D"),r())}function di(t,i){if(t&1){let e=z();s(0,"span",71)(1,"span",72),m("click",function(){let o=f(e).$implicit,l=p(3);return _(o!==l.nodeVersion.currentVersion()&&l.switchVersion(o))}),c(2),r(),h(3,ci,2,0,"span",73)(4,pi,2,0,"span",74),r()}if(t&2){let e=i.$implicit,n=p(3);R("active",e===n.nodeVersion.currentVersion())("clickable",e!==n.nodeVersion.currentVersion()),a(2),y(e),a(),x(e!==n.nodeVersion.currentVersion()?3:4)}}function ui(t,i){if(t&1&&(s(0,"div",36)(1,"span",28),c(2,"\u5DF2\u5B89\u88C5\u7248\u672C"),r(),s(3,"nz-spin",68)(4,"div",69),D(5,di,5,6,"span",70,Pe),r()()()),t&2){p();let e=v(24),n=p();a(3),g("nzSpinning",n.nodeVersion.switching()),a(2),A(e)}}function mi(t,i){if(t&1&&(s(0,"div",37),d(1,"span",76),c(2),r()),t&2){let e=p(2);a(2),C(" ",e.nodeVersion.error()," ")}}function gi(t,i){if(t&1){let e=z();s(0,"div",20),h(1,Kn,3,1,"div",21),h(2,ri,7,3),s(3,"div",22),d(4,"span",23),s(5,"span"),c(6),r(),s(7,"span",24),c(8),r()(),h(9,li,12,4,"div",25),s(10,"div",26)(11,"div",27)(12,"span",28),c(13,"\u624B\u52A8\u5B89\u88C5\u547D\u4EE4"),r(),s(14,"span",29),c(15,"\u5982\u81EA\u52A8\u5B89\u88C5\u5931\u8D25\uFF0C\u53EF\u4F7F\u7528\u4EE5\u4E0B\u547D\u4EE4"),r()(),s(16,"div",30)(17,"div",31)(18,"span",32),c(19,"NVM:"),r(),s(20,"code",33),c(21),r(),s(22,"button",34),m("click",function(){f(e);let o=p();return _(o.copyCommand("nvm install "+o.getSuggestedVersion()))}),d(23,"span",35),r()()()(),Te(24),h(25,ui,7,1,"div",36),h(26,mi,3,1,"div",37),r()}if(t&2){let e=p(),n=v(0);a(),x(!e.nodeVersion.hasVersionManager()&&!e.nodeVersion.loading()?1:-1),a(),x(n?2:-1),a(4),C("\u7248\u672C\u7BA1\u7406\u5668: ",e.nodeVersion.manager()==="nvm"?"NVM":e.nodeVersion.manager()==="volta"?"Volta":"\u672A\u68C0\u6D4B\u5230"),a(2),C("\u5F53\u524D: ",e.nodeVersion.currentVersion()||"\u672A\u77E5"),a(),x(e.nodeVersion.hasVersionManager()?9:-1),a(12),C("nvm install ",e.getSuggestedVersion()),a(3);let o=Ee(e.nodeVersion.availableVersions());a(),x(o.length>0?25:-1),a(),x(e.nodeVersion.error()?26:-1)}}var ve=class t{nodeVersion=u(jt);message=u(Ft);modal=u(wt);settingsModal=gt("settingsModal");selectedInstallVersion=null;recommendedVersions=[];filteredVersions=[];installing=ye(!1);installMessageId=ye(null);showWriteConfig=!1;writingConfig=!1;selectedEngineVersion=null;customEngineVersion="";recommendedEngineVersions=[];ngOnInit(){this.refresh()}ngOnDestroy(){this.installMessageId()&&this.message.remove(this.installMessageId())}onVersionInput(i){let e=i.target.value.toLowerCase();e?this.filteredVersions=this.recommendedVersions.filter(n=>n.toLowerCase().includes(e)):this.filteredVersions=[...this.recommendedVersions],e&&!e.startsWith("v")?this.selectedInstallVersion="v"+e:this.selectedInstallVersion=e}onVersionSelect(i){this.selectedInstallVersion=i}getEngineConfigPreview(){let i=this.customEngineVersion||this.selectedEngineVersion||"";return i?`{ "engines": { "node": "${i}" } }`:'{ "engines": { "node": "\u8BF7\u9009\u62E9\u6216\u8F93\u5165\u7248\u672C" } }'}openWriteConfig(){let i=this.nodeVersion.projectRequirement();i?.requiredVersion&&i.hasEnginesConfig&&(this.selectedEngineVersion=i.requiredVersion),this.showWriteConfig=!0}closeWriteConfig(){this.showWriteConfig=!1,this.selectedEngineVersion=null,this.customEngineVersion=""}async writeEngineConfig(){let i=this.customEngineVersion||this.selectedEngineVersion;if(!i){this.message.warning("\u8BF7\u9009\u62E9\u6216\u8F93\u5165\u7248\u672C\u53F7");return}this.writingConfig=!0;try{await this.nodeVersion.writeEngineConfig(i)?(this.message.success("\u5DF2\u5199\u5165 engines.node \u914D\u7F6E"),this.showWriteConfig=!1,this.nodeVersion.refresh(),this.updateRecommendedEngineVersions()):this.message.error("\u5199\u5165\u914D\u7F6E\u5931\u8D25")}finally{this.writingConfig=!1}}openSettingsModal(){this.updateRecommendedVersions(),this.modal.create({nzTitle:"Node\u7248\u672C\u8BBE\u7F6E",nzContent:this.settingsModal(),nzFooter:null,nzWidth:500})}getSuggestedVersion(){if(this.selectedInstallVersion)return this.selectedInstallVersion.replace(/^v/,"");let i=this.nodeVersion.projectRequirement();return i?.requiredVersion?i.requiredVersion.replace(/^[\^~>=<]+/,"").split(" ")[0]:"18.20.0"}copyCommand(i){navigator.clipboard.writeText(i).then(()=>{this.message.success("\u547D\u4EE4\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}).catch(()=>{this.message.error("\u590D\u5236\u5931\u8D25")})}updateRecommendedVersions(){let i=this.nodeVersion.projectRequirement();this.recommendedVersions=this.nodeVersion.generateRecommendedVersions(i?.requiredVersion||null),this.filteredVersions=[...this.recommendedVersions],this.selectedInstallVersion||(this.selectedInstallVersion=this.recommendedVersions[0]||null)}async installVersion(){if(!this.selectedInstallVersion){this.message.warning("\u8BF7\u5148\u9009\u62E9\u4E00\u4E2A\u7248\u672C");return}this.installing.set(!0);let i=this.selectedInstallVersion;this.installMessageId.set(this.message.loading(`\u6B63\u5728\u5B89\u88C5 ${i}...`,{nzDuration:0}).messageId);let e=!1;try{e=await this.nodeVersion.installVersion(i)}finally{this.installMessageId()&&this.message.remove(this.installMessageId()),this.installing.set(!1)}e?(this.nodeVersion.alreadyInstalled()?this.message.warning(`${i} \u5DF2\u5B89\u88C5`):this.message.success(`${i} \u5B89\u88C5\u6210\u529F`),this.nodeVersion.refresh(),this.selectedInstallVersion=null,this.updateRecommendedVersions()):this.message.error(`${i} \u5B89\u88C5\u5931\u8D25`)}refresh(){return this.nodeVersion.getCurrentVersion(),this.nodeVersion.loadProjectRequirement().then(()=>{this.updateRecommendedEngineVersions()})}updateRecommendedEngineVersions(){let i=this.nodeVersion.projectRequirement();if(i?.requiredVersion){let e=i.requiredVersion;this.recommendedEngineVersions.some(o=>o.value===e)||(this.recommendedEngineVersions=[{label:e+" (\u63A8\u8350)",value:e},...this.recommendedEngineVersions])}}confirmDelete(i,e){e.stopPropagation(),this.modal.confirm({nzTitle:"\u786E\u8BA4\u5220\u9664",nzContent:`\u786E\u5B9A\u8981\u5220\u9664${i} \u7248\u672C\u5417\uFF1F`,nzOkText:"\u5220\u9664",nzOkType:"primary",nzOkDanger:!0,nzCancelText:"\u53D6\u6D88",nzOnOk:()=>this.deleteVersion(i)})}async deleteVersion(i){await this.nodeVersion.deleteVersion(i)?(this.message.success(`${i} \u7248\u672C\u5DF2\u5220\u9664`),this.nodeVersion.refresh()):this.message.error(`\u5220\u9664${i} \u7248\u672C\u5931\u8D25`)}async switchVersion(i){if(i===this.nodeVersion.currentVersion()){this.message.info("\u5F53\u524D\u5DF2\u662F\u8BE5\u7248\u672C");return}await this.nodeVersion.switchVersion(i)&&(this.message.success(`\u5DF2\u5207\u6362\u5230 ${i}`),this.nodeVersion.loadProjectRequirement())}openNvmLearnMorePage(){window.open("https://www.nvmnode.com/","_blank")}openNvmInstallPage(){window.open("https://www.nvmnode.com/guide/download.html","_blank")}getManagerLabel=Ne(()=>this.nodeVersion.projectRequirement()?.voltaConfig?"Volta":"NVM");getManagerColor=Ne(()=>this.nodeVersion.projectRequirement()?.voltaConfig?"orange":"green");static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-node-version"]],viewQuery:function(e,n){e&1&&lt(n.settingsModal,qn,5),e&2&&ct()},decls:15,vars:6,consts:[["settingsModal",""],["installNvmTemplate",""],["versionAuto",""],[1,"top-status"],["nzType","proj:node","nzTheme","outline"],[1,"manager-badge"],["nz-button","","nzType","default",3,"click","nzLoading"],["nzType","reload","nzTheme","outline"],["nz-button","","nzType","text","nz-tooltip","","nzTooltipTitle","Node\u7248\u672C\u8BBE\u7F6E",3,"click"],["nzType","setting","nzTheme","outline"],["nz-icon","","nzType","check-circle","nzTheme","fill","nz-tooltip","",2,"color","#52c41a","font-size","14px",3,"nzTooltipTitle"],["nz-icon","","nzType","info-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","\u8BE5\u9879\u76EE\u672A\u914D\u7F6E Node \u7248\u672C\u8981\u6C42",2,"color","#1890ff","font-size","14px"],["nz-icon","","nzType","warning","nzTheme","fill","nz-tooltip","",2,"color","#faad14","font-size","14px",3,"nzTooltipTitle"],["nz-icon","","nzType","close-circle","nzTheme","fill","nz-tooltip","",2,"color","#ff4d4f","font-size","14px",3,"nzTooltipTitle"],["nz-button","","nzType","default","nz-popover","","nzPopoverPlacement","bottomRight",3,"nzPopoverTrigger","nzPopoverContent"],["nz-icon","","nzType","download","nzTheme","outline"],[1,"install-popover-content"],[1,"actions"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"],[1,"modal-content"],[1,"warning-message","full-width"],[1,"manager-info"],["nz-icon","","nzType","database","nzTheme","outline"],[1,"current-version"],[1,"install-section"],[1,"manual-section"],[1,"section-header"],[1,"section-title"],[1,"hint-text"],[1,"command-list"],[1,"command-item"],[1,"command-label"],[1,"command-code"],["nz-button","","nzType","text","nzSize","small","nz-tooltip","","nzTooltipTitle","\u590D\u5236\u547D\u4EE4",3,"click"],["nz-icon","","nzType","copy","nzTheme","outline"],[1,"version-list-section"],[1,"error-message"],["nz-icon","","nzType","warning","nzTheme","outline"],[1,"status-section","success"],[1,"status-section","warning"],[1,"status-section","error"],[1,"status-section","info"],[1,"write-config-section"],[1,"status-info"],[1,"status-title"],[1,"status-desc"],["nz-button","","nzType","primary","nzSize","small","nz-tooltip","","nzTooltipTitle","\u5199\u5165 engines.node \u5230 package.json",3,"click"],["nz-icon","","nzType","edit","nzTheme","outline"],["nz-button","","nzType","default","nzSize","small","nz-tooltip","","nzTooltipTitle","\u4FEE\u6539 engines.node \u914D\u7F6E",3,"click"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nz-icon","","nzType","close","nzTheme","outline"],[1,"config-options"],[1,"option-group"],[1,"option-label"],["nzPlaceHolder","\u9009\u62E9\u63A8\u8350\u7248\u672C",1,"config-select",3,"ngModelChange","ngModel","nzOptions"],["nz-input","","placeholder","\u5982 >=18.0.0",1,"config-input",3,"ngModelChange","ngModel"],[1,"config-preview"],[1,"preview-label"],[1,"preview-code"],[1,"config-actions"],["nz-button","","nzType","primary",3,"click","nzLoading"],["nz-icon","","nzType","save","nzTheme","outline"],[1,"install-row"],["nz-input","","name","selectedInstallVersion","placeholder","\u8F93\u5165\u7248\u672C\u53F7 (\u5982 18.20.0)",1,"version-input",3,"ngModelChange","input","ngModel","nzAutocomplete"],[3,"nzValue"],["nz-button","","nzType","primary","nzSize","small",3,"click","nzLoading","disabled"],[3,"click","nzValue"],[3,"nzSpinning"],[1,"version-list"],[1,"version-tag",3,"active","clickable"],[1,"version-tag"],[1,"version-name",3,"click"],["nz-tooltip","","nzTooltipTitle","\u5220\u9664",1,"delete-btn"],[1,"active-badge"],["nz-tooltip","","nzTooltipTitle","\u5220\u9664",1,"delete-btn",3,"click"],["nz-icon","","nzType","close-circle","nzTheme","outline"]],template:function(e,n){if(e&1){let o=z();Te(0),h(1,Yn,3,1),s(2,"span",3),d(3,"nz-icon",4),c(4),r(),s(5,"span",5),c(6),r(),h(7,Gn,5,2),s(8,"button",6),m("click",function(){return f(o),_(n.refresh())}),d(9,"nz-icon",7),c(10," \u5237\u65B0 "),r(),s(11,"button",8),m("click",function(){return f(o),_(n.openSettingsModal())}),d(12,"nz-icon",9),r(),w(13,gi,27,9,"ng-template",null,0,j)}if(e&2){let o=Ee(n.nodeVersion.projectRequirement());a(),x(o?1:-1),a(3),C(" ",n.nodeVersion.currentVersion()||"\u68C0\u6D4B\u4E2D..."," "),a(2),y(n.getManagerLabel()),a(),x(n.nodeVersion.manager()==="none"&&!n.nodeVersion.loading()?7:-1),a(),g("nzLoading",n.nodeVersion.loading())}},dependencies:[E,O,k,N,H,W,le,Gt,Xt,It,Q,Pt,$,me,pn,cn,X,je,I,pe,de,ue,U,qt,$t,At,Dt],styles:["[_nghost-%COMP%]{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.top-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:#f6ffed;border:1px solid #b7eb8f;border-radius:4px;font-size:13px;font-weight:500;color:#52c41a}.manager-badge[_ngcontent-%COMP%]{padding:2px 8px;font-size:11px;font-weight:500;border-radius:3px;background:#e6f7ff;color:#1890ff}.info-message[_ngcontent-%COMP%], .success-message[_ngcontent-%COMP%], .warning-message[_ngcontent-%COMP%], .error-message[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:8px;font-size:13px;padding:8px 0}.info-message[_ngcontent-%COMP%]{color:#1890ff}.success-message[_ngcontent-%COMP%]{color:#52c41a}.warning-message[_ngcontent-%COMP%]{color:#faad14}.error-message[_ngcontent-%COMP%]{color:#ff4d4f}.muted-text[_ngcontent-%COMP%]{color:#8c8c8c;font-size:13px;margin-right:12px}.version-list-container[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 0 4px;border-top:1px solid #f0f0f0;margin-top:12px}.version-tag[_ngcontent-%COMP%]{padding:6px 8px;font-size:13px;border-radius:6px;background:#fafafa;color:#595959;border:1px solid #d9d9d9;transition:all .2s ease;display:inline-flex;align-items:center;gap:4px}.version-tag[_ngcontent-%COMP%] .version-name[_ngcontent-%COMP%]{padding:0 6px}.version-tag.clickable[_ngcontent-%COMP%]{cursor:pointer}.version-tag.clickable[_ngcontent-%COMP%]:hover{background:#e6f7ff;color:#1890ff;border-color:#91d5ff;transform:translateY(-1px);box-shadow:0 2px 4px #1890ff1a}.version-tag.active[_ngcontent-%COMP%]{background:#1890ff;color:#fff;border-color:#1890ff;font-weight:500;box-shadow:0 2px 6px #1890ff33}.version-tag[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{display:none;padding:2px;border-radius:3px;cursor:pointer;font-size:10px;color:#8c8c8c;transition:all .2s ease}.version-tag[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:hover{color:#ff4d4f;background:#fff1f0}.version-tag[_ngcontent-%COMP%]:hover .delete-btn[_ngcontent-%COMP%]{display:inline-flex}.clickable[_ngcontent-%COMP%], .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.version-list[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.install-section[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:12px;margin-top:8px;background:#fafafa;border-radius:6px;padding:12px}.install-section[_ngcontent-%COMP%] .muted-text[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0}.version-input[_ngcontent-%COMP%]{flex:1;min-width:180px;max-width:240px}.install-section[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-shrink:0}.modal-content[_ngcontent-%COMP%]{padding:8px 0}.section-title[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#262626}.status-section[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:8px;margin-bottom:12px}.status-section.success[_ngcontent-%COMP%]{background:#f6ffed;border:1px solid #b7eb8f}.status-section.success[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-title[_ngcontent-%COMP%]{color:#52c41a}.status-section.warning[_ngcontent-%COMP%]{background:#fffbe6;border:1px solid #ffe58f}.status-section.warning[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-title[_ngcontent-%COMP%]{color:#faad14}.status-section.error[_ngcontent-%COMP%]{background:#fff2f0;border:1px solid #ffccc7}.status-section.error[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-title[_ngcontent-%COMP%]{color:#ff4d4f}.status-section.info[_ngcontent-%COMP%]{background:#e6f7ff;border:1px solid #91d5ff}.status-section.info[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-title[_ngcontent-%COMP%]{color:#1890ff}.status-section[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.status-section[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.status-section[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-desc[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c}.manager-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f5f5f5;border-radius:6px;font-size:12px;color:#595959;margin-bottom:12px}.manager-info[_ngcontent-%COMP%] .current-version[_ngcontent-%COMP%]{margin-left:auto;color:#1890ff;font-weight:500}.install-section[_ngcontent-%COMP%]{background:#fafafa;border-radius:8px;padding:12px;margin-bottom:16px}.install-section[_ngcontent-%COMP%] .install-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.install-section[_ngcontent-%COMP%] .version-input[_ngcontent-%COMP%]{flex:1;min-width:160px}.manual-section[_ngcontent-%COMP%]{background:#f5f5f5;border-radius:8px;padding:12px;margin-bottom:16px}.manual-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.manual-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .hint-text[_ngcontent-%COMP%]{font-size:11px;color:#8c8c8c}.manual-section[_ngcontent-%COMP%] .command-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.manual-section[_ngcontent-%COMP%] .command-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:#fff;padding:8px 12px;border-radius:6px;border:1px solid #e8e8e8}.manual-section[_ngcontent-%COMP%] .command-item[_ngcontent-%COMP%] .command-label[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c;width:40px}.manual-section[_ngcontent-%COMP%] .command-item[_ngcontent-%COMP%] .command-code[_ngcontent-%COMP%]{flex:1;font-size:12px;color:#1890ff;background:#e6f7ff;padding:4px 8px;border-radius:4px}.version-list-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:12px}.version-list-section[_ngcontent-%COMP%] .version-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.version-list-section[_ngcontent-%COMP%] .version-tag[_ngcontent-%COMP%]{padding:6px 8px;font-size:13px;border-radius:6px;background:#fafafa;color:#595959;border:1px solid #d9d9d9;transition:all .2s ease;display:inline-flex;align-items:center;gap:6px}.version-list-section[_ngcontent-%COMP%] .version-tag.clickable[_ngcontent-%COMP%]{cursor:pointer}.version-list-section[_ngcontent-%COMP%] .version-tag.clickable[_ngcontent-%COMP%]:hover{background:#e6f7ff;color:#1890ff;border-color:#91d5ff}.version-list-section[_ngcontent-%COMP%] .version-tag.active[_ngcontent-%COMP%]{background:#1890ff;color:#fff;border-color:#1890ff}.version-list-section[_ngcontent-%COMP%] .version-tag[_ngcontent-%COMP%] .version-name[_ngcontent-%COMP%]{padding:0 4px}.version-list-section[_ngcontent-%COMP%] .version-tag[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{display:none;padding:2px;border-radius:3px;cursor:pointer;color:#8c8c8c}.version-list-section[_ngcontent-%COMP%] .version-tag[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:hover{color:#ff4d4f;background:#fff1f0}.version-list-section[_ngcontent-%COMP%] .version-tag[_ngcontent-%COMP%] .active-badge[_ngcontent-%COMP%]{font-size:10px;padding:2px 6px;background:#ffffff4d;border-radius:3px}.version-list-section[_ngcontent-%COMP%] .version-tag[_ngcontent-%COMP%]:hover .delete-btn[_ngcontent-%COMP%]{display:inline-flex}.error-message[_ngcontent-%COMP%]{margin-top:12px}.full-width[_ngcontent-%COMP%]{width:100%}.write-config-section[_ngcontent-%COMP%]{background:#f0f5ff;border:1px solid #adc6ff;border-radius:8px;padding:16px;margin-top:12px}.write-config-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.write-config-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#1890ff}.write-config-section[_ngcontent-%COMP%] .config-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}.write-config-section[_ngcontent-%COMP%] .config-options[_ngcontent-%COMP%] .option-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.write-config-section[_ngcontent-%COMP%] .config-options[_ngcontent-%COMP%] .option-group[_ngcontent-%COMP%] .option-label[_ngcontent-%COMP%]{font-size:13px;color:#595959;min-width:90px}.write-config-section[_ngcontent-%COMP%] .config-options[_ngcontent-%COMP%] .option-group[_ngcontent-%COMP%] .config-select[_ngcontent-%COMP%], .write-config-section[_ngcontent-%COMP%] .config-options[_ngcontent-%COMP%] .option-group[_ngcontent-%COMP%] .config-input[_ngcontent-%COMP%]{flex:1;max-width:200px}.write-config-section[_ngcontent-%COMP%] .config-preview[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:8px 12px;background:#fff;border-radius:6px;border:1px solid #e8e8e8}.write-config-section[_ngcontent-%COMP%] .config-preview[_ngcontent-%COMP%] .preview-label[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c}.write-config-section[_ngcontent-%COMP%] .config-preview[_ngcontent-%COMP%] .preview-code[_ngcontent-%COMP%]{font-size:13px;color:#1890ff;font-family:Monaco,Menlo,monospace}.write-config-section[_ngcontent-%COMP%] .config-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.install-popover-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px;color:#595959;line-height:1.6;margin:0 0 8px}.install-popover-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:12px}.install-popover-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}"]})};var dn=class t{projectContext=u(Bt);taskState=u(fe);selectedTask=this.taskState.selectedRow;constructor(){mt(async()=>{let i=this.projectContext.currentProjectId();i&&await this.taskState.setProject(i)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["app-tasks"]],decls:9,vars:9,consts:[[3,"title","isFullscreen"],["ngProjectAs","actions",5,["actions"]],[1,"page"],[1,"content"],[3,"name","description","command"],[3,"toggle","restart","isStopping","isRunning","isStopped"],[3,"taskId"]],template:function(e,n){if(e&1&&(s(0,"app-page-layout",0),ee(1,1),d(2,"app-node-version"),te(),s(3,"nz-layout",2),d(4,"app-task-list"),s(5,"nz-content",3),d(6,"app-task-header",4),s(7,"app-task-actions",5),m("toggle",function(){return n.taskState.toggleTask()})("restart",function(){return n.taskState.restartSelected()}),r(),d(8,"app-task-console",6),r()()()),e&2){let o,l,b;g("title","\u4EFB\u52A1")("isFullscreen",!0),a(6),g("name",(o=n.selectedTask())==null||o.spec==null?null:o.spec.name)("description",(l=n.selectedTask())==null||l.spec==null?null:l.spec.description)("command",(b=n.selectedTask())==null||b.spec==null?null:b.spec.command),a(),g("isStopping",n.taskState.isStopping())("isRunning",n.taskState.isRunning())("isStopped",n.taskState.isStopped()),a(),g("taskId",n.taskState.selectedTaskId())}},dependencies:[E,I,q,U,N,$,Kt,ce,Jt,O,Yt,Zt,Ut,_e,xe,Qt,he,Nt,ve],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:row;overflow:hidden;gap:16px;padding:0 16px}.content[_ngcontent-%COMP%]{flex:1 1 auto;width:0;display:flex;flex-direction:column;gap:16px;height:100%;overflow:hidden}app-task-header[_ngcontent-%COMP%], app-task-actions[_ngcontent-%COMP%], app-node-version[_ngcontent-%COMP%]{flex:0 0 auto}app-task-console[_ngcontent-%COMP%]{flex:1 1 auto;display:block;height:0}"]})};export{dn as TasksComponent};
@@ -0,0 +1 @@
1
+ import{h as s}from"./chunk-L5D75AMV.js";import{n as d}from"./chunk-T3KK7ZXB.js";import{Fb as p,Gb as n,Jc as f,fc as c,gc as a,oa as e}from"./chunk-WI67LAOV.js";var g=["class","component"],i=class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=p({type:t,selectors:[["app-setting",8,"component"]],attrs:g,decls:2,vars:0,template:function(o,M){o&1&&(c(0,"p"),f(1,"setting.component works!"),a())},encapsulation:2})};var C=[{path:"",component:i}],m=class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=n({type:t});static \u0275inj=e({imports:[s.forChild(C),s]})};var u=class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=n({type:t});static \u0275inj=e({imports:[d,m]})};export{u as SettingModule};
@@ -0,0 +1 @@
1
+ import{b as s,c as d,d as l,f as g}from"./chunk-UXXWRMM6.js";import{e as P}from"./chunk-L5D75AMV.js";import{Ha as c,ha as b,hd as r,na as a,sa as n,t as p}from"./chunk-WI67LAOV.js";var m=class i{api=n(l);list(){return this.api.get("/api/projects/list")}getProjectMembers(e){return this.api.hubRequestWithPrjId({projectId:e,path:"/members"})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})};var h=class i{ls=n(d);projectApi=n(m);router=n(P);currentProjectState=c(null);projectsState=c([]);membersState=c([]);projects=r(()=>this.projectsState());currentProject=r(()=>this.currentProjectState());currentProjectId=r(()=>this.currentProjectState()?.id||null);currentProjectKey=r(()=>this.currentProjectState()?.env?.NGM_HUB_V2_PROJECT_KEY);currentProjectToken=r(()=>this.currentProjectState()?.env?.NGM_HUB_V2_TOKEN);currentProjectMembers=r(()=>this.membersState());isHubProjectValid=r(()=>!!this.currentProjectState()?.env?.NGM_HUB_V2_TOKEN);favoriteProjects=r(()=>this.projects().filter(e=>e.isFavorite));recentProjects=r(()=>this.projects().slice().sort((e,t)=>{let o=new Date(e.lastOpened||0).getTime();return new Date(t.lastOpened||0).getTime()-o}).slice(0,5));setProjects(e){this.projectsState.set(e)}setCurrentProject(e){this.currentProjectState.set(e);let t=e?e.id:null;t?this.ls.set(s.project.currentProjectId,t):this.ls.remove(s.project.currentProjectId)}setCurrentProjectById(e){let t=this.projects().find(o=>o.id===e)||null;this.setCurrentProject(t)}setMembers(e){this.membersState.set(e)}patchProject(e){this.projectsState.update(t=>t.map(o=>o.id===e.id?e:o)),this.currentProjectId()===e.id&&this.currentProjectState.set(e)}removeProject(e){if(this.projectsState.update(t=>t.filter(o=>o.id!==e)),this.currentProjectId()===e){let t=this.projectsState()[0]||null;this.setCurrentProject(t)}}getProjectById(e){return this.projectsState().find(t=>t.id===e)||null}isOpen(e){return this.currentProjectId()===e.id}async loadProjectMembers(e){try{let t=(await this.projectApi.getProjectMembers(e)).items;this.setMembers(t)}catch{this.setMembers([])}}loadProjects(e){return this.projectApi.list().pipe(b(t=>{this.setProjects(t),this.initCurrentProject(t,e)}))}initCurrentProject(e,t){if(!e.length){this.setCurrentProject(null);return}if(t){let u=e.find(S=>S.id===t);if(u){this.setCurrentProject(u);return}}let o=this.ls.getNullable(s.project.currentProjectId),j=o?e.find(u=>u.id===o):null;if(j){this.setCurrentProject(j);return}this.setCurrentProject(e[0])}static \u0275fac=function(t){return new(t||i)};static \u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})};var v=class i{apiClient=n(l);projectContextStore=n(h);ls=n(d);notify=n(g);currentUserState=c(null);hubUserTokenState=c(null);initializedState=c(!1);currentUser=r(()=>this.currentUserState());currentUserId=r(()=>this.currentUserState()?this.currentUserState().userId:"");hubUserToken=r(()=>this.hubUserTokenState());initialized=r(()=>this.initializedState());isAuthenticated=r(()=>!!this.currentUserState());hasHubUserToken=r(()=>!!this.hubUserTokenState());loadCurrentUser(){let e=this.ls.get(s.token.hubV2PersonalToken,"").trim(),t=this.projectContextStore.currentProjectId();!e||!t||(this.setHubUserToken(e),p(this.apiClient.hubRequestWithPersonalToken({path:"/me",projectId:t})).subscribe({next:o=>{this.setCurrentUser(o),this.markInitialized()},error:()=>{this.notify.error("Personal Token \u9A8C\u8BC1\u5931\u8D25"),this.setCurrentUser(null)}}))}ensureUserLoaded(){this.initializedState()||this.loadCurrentUser()}setCurrentUser(e){this.currentUserState.set(e)}setHubUserToken(e){let t=e?e.trim():"";if(t){this.ls.set(s.token.hubV2PersonalToken,t),this.hubUserTokenState.set(t);return}this.hubUserTokenState.set(null),this.currentUserState.set(null),this.ls.remove(s.token.hubV2PersonalToken)}ensureHubUserTokenLoaded(){this.hubUserTokenState()||this.setHubUserToken(this.ls.get(s.token.hubV2PersonalToken,""))}markInitialized(){this.initializedState.set(!0)}reset(){this.currentUserState.set(null),this.initializedState.set(!1)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})};export{h as a,v as b};
@@ -0,0 +1 @@
1
+ import{$ as ae,A as se,Fa as le,G as oe,Ga as me,H as re,Ha as ue,Ia as de,lb as he,r as ie,sa as ce,ta as pe,tb as ge}from"./chunk-SPRWNZHF.js";import{w as ne}from"./chunk-T3KK7ZXB.js";import{$b as B,B as b,Ba as L,Da as H,Fb as S,Fc as Q,Gc as X,Hb as I,Hc as ee,Ic as E,Jb as _,Lb as J,M as k,Pa as z,S as j,Wb as G,Yb as U,Zc as te,_b as W,a as l,ac as K,b as P,bc as u,cc as d,dc as g,ec as p,ic as $,jb as V,jc as Y,l as h,lc as Z,na as a,nb as m,ra as R,rc as x,sa as r,sb as q,td as A,uc as M,ya as F,z as C,za as O}from"./chunk-WI67LAOV.js";var Ce=(t,n)=>({$implicit:t,data:n});function ze(t,n){t&1&&p(0,"nz-icon",3)}function Se(t,n){t&1&&p(0,"nz-icon",4)}function Ie(t,n){t&1&&p(0,"nz-icon",5)}function _e(t,n){t&1&&p(0,"nz-icon",6)}function xe(t,n){t&1&&p(0,"nz-icon",7)}function Me(t,n){if(t&1&&($(0),p(1,"span",9),Y()),t&2){let e=M();m(),u("innerHTML",e.instance.content,V)}}function Ee(t,n){if(t&1){let e=Z();d(0,"nz-message",2),x("destroyed",function(s){F(e);let o=M();return O(o.remove(s.id,s.userAction))}),g()}if(t&2){let e=n.$implicit;u("instance",e)}}var Ae=0,D=class{container;nzSingletonService=r(ge);injector=r(L);remove(n){this.container&&(n?this.container.remove(n):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${Ae++}`}withContainer(n){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;let i=re(this.injector,{hasBackdrop:!1,scrollStrategy:se(),positionStrategy:oe(this.injector)}),s=new ie(n,null,this.injector),o=i.attach(s),y=i.hostElement;return y.style.zIndex="1010",e||(this.container=e=o.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e),this.container.afterAllInstancesRemoved.subscribe(()=>{this.container=void 0,this.nzSingletonService.unregisterSingletonWithKey(this.componentPrefix),i.dispose()})),e}},De=(()=>{class t{config;instances=[];_afterAllInstancesRemoved=new h;afterAllInstancesRemoved=this._afterAllInstancesRemoved.asObservable();cdr=r(A);nzConfigService=r(ce);constructor(){this.subscribeConfigChange()}create(e){let i=this.onCreate(e);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,i],this.readyInstances(),i}remove(e,i=!1){this.instances.map((s,o)=>({index:o,instance:s})).filter(({instance:s})=>s.messageId===e).forEach(({index:s,instance:o})=>{this.instances.splice(s,1),this.instances=[...this.instances],this.onRemove(o,i),this.readyInstances()}),this.instances.length||this.onAllInstancesRemoved()}removeAll(){this.instances.forEach(e=>this.onRemove(e,!1)),this.instances=[],this.readyInstances(),this.onAllInstancesRemoved()}onCreate(e){return e.options=this.mergeOptions(e.options),e.onClose=new h,e}onRemove(e,i){e.onClose.next(i),e.onClose.complete()}onAllInstancesRemoved(){this._afterAllInstancesRemoved.next(),this._afterAllInstancesRemoved.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(e){let{nzDuration:i,nzAnimate:s,nzPauseOnHover:o}=this.config;return l({nzDuration:i,nzAnimate:s,nzPauseOnHover:o},e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=I({type:t})}return t})(),we=(()=>{class t{cdr=r(A);destroyRef=r(H);animationStateChanged=new h;options;autoClose;closeTimer;userAction=!1;eraseTimer;eraseTimingStart;eraseTTL;constructor(){this.destroyRef.onDestroy(()=>{this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()})}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe(k(e=>e.phaseName==="done"&&e.toState==="leave"),j(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(e=!1){this.userAction=e,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:e})},200)):this.destroyed.next({id:this.instance.messageId,userAction:e})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){this.eraseTimer!==null&&(clearTimeout(this.eraseTimer),this.eraseTimer=void 0)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=I({type:t})}return t})(),Ne=(()=>{class t extends we{instance;destroyed=new q;index;static \u0275fac=(()=>{let e;return function(s){return(e||(e=z(t)))(s||t)}})();static \u0275cmp=S({type:t,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[_],decls:9,vars:13,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content"],["nzType","check-circle"],["nzType","info-circle"],["nzType","exclamation-circle"],["nzType","close-circle"],["nzType","loading"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"]],template:function(i,s){if(i&1&&(d(0,"div",0),x("@moveUpMotion.done",function(y){return s.animationStateChanged.next(y)})("mouseenter",function(){return s.onEnter()})("mouseleave",function(){return s.onLeave()}),d(1,"div",1)(2,"div",2),G(3,ze,1,0,"nz-icon",3)(4,Se,1,0,"nz-icon",4)(5,Ie,1,0,"nz-icon",5)(6,_e,1,0,"nz-icon",6)(7,xe,1,0,"nz-icon",7),J(8,Me,2,1,"ng-container",8),g()()()),i&2){let o;ee(s.instance.options==null?null:s.instance.options.nzStyle),E(s.instance.options==null?null:s.instance.options.nzClass),u("@moveUpMotion",s.instance.state),m(2),E("ant-message-"+s.instance.type),m(),U((o=s.instance.type)==="success"?3:o==="info"?4:o==="warning"?5:o==="error"?6:o==="loading"?7:-1),m(5),u("nzStringTemplateOutlet",s.instance.content)("nzStringTemplateOutletContext",te(10,Ce,s,s.instance.options==null?null:s.instance.options.nzData))}},dependencies:[me,le,de,ue],encapsulation:2,data:{animation:[he]},changeDetection:0})}return t})(),f="message",Pe={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"},be=(()=>{class t extends De{dir=this.nzConfigService.getConfigForComponent(f)?.nzDirection||"ltr";top;constructor(){super(),this.updateConfig()}subscribeConfigChange(){pe(f,()=>{this.updateConfig(),this.dir=this.nzConfigService.getConfigForComponent(f)?.nzDirection||this.dir})}updateConfig(){this.config=l(l(l({},Pe),this.config),this.nzConfigService.getConfigForComponent(f)),this.top=ae(this.config.nzTop),this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[_],decls:3,vars:4,consts:[[1,"ant-message"],[3,"instance"],[3,"destroyed","instance"]],template:function(i,s){i&1&&(d(0,"div",0),B(1,Ee,1,1,"nz-message",1,W),g()),i&2&&(Q("top",s.top),X("ant-message-rtl",s.dir==="rtl"),m(),K(s.instances))},dependencies:[Ne],encapsulation:2,changeDetection:0})}return t})(),fe=(()=>{class t extends D{componentPrefix="message-";success(e,i){return this.createInstance({type:"success",content:e},i)}error(e,i){return this.createInstance({type:"error",content:e},i)}info(e,i){return this.createInstance({type:"info",content:e},i)}warning(e,i){return this.createInstance({type:"warning",content:e},i)}loading(e,i){return this.createInstance({type:"loading",content:e},i)}create(e,i,s){return this.createInstance({type:e,content:i},s)}createInstance(e,i){return this.container=this.withContainer(be),this.container.create(P(l({},e),{createdAt:new Date,messageId:this.getInstanceId(),options:i}))}static \u0275fac=(()=>{let e;return function(s){return(e||(e=z(t)))(s||t)}})();static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Te={project:{currentProjectId:"ngm:project:currentProjectId"},token:{hubV2PersonalToken:"ngm:token:hubV2PersonalToken"},fs:{explorer:{lastPath:"ngm:fs:explorer:lastPath",favorites:"ngm:fs:explorer:favorites"}},dashboard:{layout:"ngm:dashboard:layout"}};var N=class t{get(n){let e=localStorage.getItem(n);if(e==null)return null;try{return JSON.parse(e)}catch{return e}}set(n,e){localStorage.setItem(n,JSON.stringify(e))}remove(n){localStorage.removeItem(n)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})},T=class t{constructor(n){this.driver=n}get(n,e){return this.driver.get(n)??e}getNullable(n){return this.driver.get(n)}set(n,e){this.driver.set(n,e)}remove(n){this.driver.remove(n)}static \u0275fac=function(e){return new(e||t)(R(N))};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};var v=class extends Error{constructor(e,i,s,o){super(i);this.code=e;this.details=s;this.requestId=o;this.name="ApiBizError"}};function c(){return b(t=>{if(t.ok)return t.data;throw new v(t.error.code,t.error.message,t.error.details,t.meta?.requestId)})}var ve=class t{ls=r(T);http=r(ne);base="/api/client";get(n,e){return this.http.get(n,{params:e}).pipe(c())}post(n,e,i){return this.http.post(n,e,{params:i}).pipe(c())}delete(n,e){return this.http.delete(n,{params:e}).pipe(c())}put(n,e,i){return this.http.put(n,e,{params:i}).pipe(c())}patch(n,e,i){return this.http.patch(n,e,{params:i}).pipe(c())}async hubRequestWithPrjId(n){return await C(this.http.post(`${this.base}/hub-token/request`,{projectId:n.projectId,path:n.path,method:n.method??"GET",query:n.query,body:n.payload,headers:n.headers}).pipe(c()))}async hubRequestWithPersonalToken(n){return await C(this.http.post(`${this.base}/hub-token/request`,{projectId:n.projectId,path:n.path,method:n.method??"GET",query:n.query,body:n.payload,headers:n.headers,tokenType:"personal",personalToken:this.ls.get(Te.token.hubV2PersonalToken,"").trim()||void 0}).pipe(c()))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};var ye=class t{msg=r(fe);error(n,e){console.error("[UI ERROR]",n,e),this.msg.error(n)}warn(n){this.msg.warning(n)}info(n){this.msg.info(n)}success(n){this.msg.success(n)}banner(n,e){}totast(n,e){}static \u0275fac=function(e){return new(e||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};export{v as a,Te as b,T as c,ve as d,fe as e,ye as f};
@@ -0,0 +1,2 @@
1
+ import{b as ot,d as rt}from"./chunk-O2EYEF7J.js";import{a as at,c as lt}from"./chunk-76TVIB33.js";import{a as Ke,b as Xe}from"./chunk-2X3MRS27.js";import{a as nt,b as it}from"./chunk-TMX5TTV3.js";import{$ as We,Fa as we,Ga as ze,Ha as de,Ia as me,L as J,S as Ze,a as xe,sa as Ye,ua as K,ub as Je,vb as et,xb as tt}from"./chunk-SPRWNZHF.js";import{i as ie,n as ve}from"./chunk-T3KK7ZXB.js";import{$b as S,Ac as L,Da as ue,Ec as le,Fb as y,Fc as W,Gb as ne,Gc as P,Ha as Pe,Hc as je,Jc as x,Kc as G,L as ke,Lb as z,Lc as b,Mb as $e,N as De,Oa as j,Ra as Ae,Ub as re,Wb as C,Wc as Qe,Yb as f,Yc as Ue,_b as B,ac as I,bc as _,cc as s,cd as se,da as Ee,dc as d,ea as Ne,ec as X,f as ee,ha as Re,hd as Ge,ic as N,id as qe,jc as R,kb as Le,kc as ae,l as Se,lc as Z,n as Ie,na as Fe,nb as r,nd as D,oa as te,r as q,rc as Q,s as T,sa as k,sb as Be,td as Y,ub as Ve,uc as l,vc as F,wb as He,wc as E,xc as Ce,xd as ce,ya as H,yc as U,yd as fe,za as $,zc as A}from"./chunk-WI67LAOV.js";var Un=["open","in_progress","pending_update","resolved","verified","reopened","closed"],Gn={open:"\u5F85\u5904\u7406",in_progress:"\u5904\u7406\u4E2D",resolved:"\u5F85\u9A8C\u8BC1",verified:"\u5DF2\u9A8C\u8BC1",reopened:"\u5DF2\u91CD\u5F00",closed:"\u5DF2\u5173\u95ED"},qn={open:"volcano",in_progress:"cyan",resolved:"blue",verified:"green",reopened:"volcano",closed:"default"},Zn={todo:"gold",in_progress:"geekblue",done:"green"},Wn={todo:"\u5F85\u5F00\u59CB",in_progress:"\u5904\u7406\u4E2D",done:"\u5DF2\u5B8C\u6210"},Yn=[{label:"\u6240\u6709\u72B6\u6001",value:""},{label:"\u5F85\u5904\u7406",value:"open"},{label:"\u5904\u7406\u4E2D",value:"in_progress"},{label:"\u5F85\u63D0\u6D4B",value:"pending_update"},{label:"\u5F85\u9A8C\u8BC1",value:"resolved"},{label:"\u5DF2\u9A8C\u8BC1",value:"verified"},{label:"\u5DF2\u91CD\u5F00",value:"reopened"},{label:"\u5DF2\u5173\u95ED",value:"closed"}],Kn=["todo","doing","blocked","done","canceled"],Xn={todo:"\u5F85\u5F00\u59CB",doing:"\u5F00\u53D1\u4E2D",blocked:"\u963B\u585E\u4E2D",done:"\u5DF2\u5B8C\u6210",accepted:"\u5DF2\u5B8C\u6210",closed:"\u5DF2\u5173\u95ED"},Jn={todo:"volcano",doing:"cyan",blocked:"error",done:"green",accepted:"green",closed:"default"},ei=[{label:"\u6240\u6709\u72B6\u6001",value:""},{label:"\u5F85\u5F00\u59CB",value:"todo"},{label:"\u5F00\u53D1\u4E2D",value:"doing"},{label:"\u963B\u585E\u4E2D",value:"blocked"},{label:"\u5DF2\u5B8C\u6210",value:"done"},{label:"\u5DF2\u5173\u95ED",value:"closed"}];var ni={low:"\u4F4E",medium:"\u4E2D",high:"\u9AD8",critical:"\u7D27\u6025"},ii=[{label:"\u5168\u90E8\u4F18\u5148\u7EA7",value:""},{label:"\u4F4E",value:"low"},{label:"\u4E2D",value:"medium"},{label:"\u9AD8",value:"high"},{label:"\u7D27\u6025",value:"critical"}],oi={low:"green",medium:"orange",high:"magenta",critical:"red"};var vt=["*"];function xt(t,n){t&1&&E(0)}function wt(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(3);r(),G(e.nzTitle)}}function zt(t,n){if(t&1&&(s(0,"div",2),z(1,wt,2,1,"ng-container",4),d()),t&2){let e=l(2);r(),_("nzStringTemplateOutlet",e.nzTitle)}}function Mt(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(3);r(),G(e.nzExtra)}}function Ot(t,n){if(t&1&&(s(0,"div",3),z(1,Mt,2,1,"ng-container",4),d()),t&2){let e=l(2);r(),_("nzStringTemplateOutlet",e.nzExtra)}}function kt(t,n){if(t&1&&(s(0,"div",0),C(1,zt,2,1,"div",2),C(2,Ot,2,1,"div",3),d()),t&2){let e=l();r(),f(e.nzTitle?1:-1),r(),f(e.nzExtra?2:-1)}}function Pt(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(2).$implicit;r(),b(" ",e.title," ")}}function bt(t,n){}function Tt(t,n){if(t&1&&(s(0,"td",6)(1,"div",7)(2,"span",8),z(3,Pt,2,1,"ng-container",4),d(),s(4,"span",9),z(5,bt,0,0,"ng-template",10),d()()()),t&2){let e=l().$implicit,i=l(3);_("colSpan",e.span),r(2),P("ant-descriptions-item-no-colon",!i.nzColon),r(),_("nzStringTemplateOutlet",e.title),r(2),_("ngTemplateOutlet",e.content)}}function yt(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(2).$implicit;r(),b(" ",e.title," ")}}function St(t,n){}function It(t,n){if(t&1&&(s(0,"td",8),z(1,yt,2,1,"ng-container",4),d(),s(2,"td",11),z(3,St,0,0,"ng-template",10),d()),t&2){let e=l().$implicit;r(),_("nzStringTemplateOutlet",e.title),r(),_("colSpan",e.span*2-1),r(),_("ngTemplateOutlet",e.content)}}function Dt(t,n){if(t&1&&C(0,Tt,6,5,"td",6)(1,It,4,3),t&2){let e=l(3);f(e.nzBordered?1:0)}}function Et(t,n){if(t&1&&(s(0,"tr",5),S(1,Dt,2,1,null,null,B),d()),t&2){let e=n.$implicit;r(),I(e)}}function Nt(t,n){if(t&1&&S(0,Et,3,0,"tr",5,B),t&2){let e=l();I(e.itemMatrix)}}function Rt(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l().$implicit;r(),b(" ",e.title," ")}}function Ft(t,n){if(t&1&&(s(0,"td",6)(1,"div",7)(2,"span",8),z(3,Rt,2,1,"ng-container",4),d()()()),t&2){let e=n.$implicit,i=l(4);_("colSpan",e.span),r(2),P("ant-descriptions-item-no-colon",!i.nzColon),r(),_("nzStringTemplateOutlet",e.title)}}function At(t,n){}function Lt(t,n){if(t&1&&(s(0,"td",6)(1,"div",7)(2,"span",9),z(3,At,0,0,"ng-template",10),d()()()),t&2){let e=n.$implicit;_("colSpan",e.span),r(3),_("ngTemplateOutlet",e.content)}}function Bt(t,n){if(t&1&&(s(0,"tr",5),S(1,Ft,4,4,"td",6,B),d(),s(3,"tr",5),S(4,Lt,4,2,"td",6,B),d()),t&2){let e=n.$implicit;r(),I(e),r(3),I(e)}}function Vt(t,n){if(t&1&&S(0,Bt,6,0,null,null,B),t&2){let e=l(2);I(e.itemMatrix)}}function Ht(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l().$implicit;r(),b(" ",e.title," ")}}function $t(t,n){if(t&1&&(s(0,"td",12),z(1,Ht,2,1,"ng-container",4),d()),t&2){let e=n.$implicit;_("colSpan",e.span),r(),_("nzStringTemplateOutlet",e.title)}}function jt(t,n){}function Qt(t,n){if(t&1&&(s(0,"td",11),z(1,jt,0,0,"ng-template",10),d()),t&2){let e=n.$implicit;_("colSpan",e.span),r(),_("ngTemplateOutlet",e.content)}}function Ut(t,n){if(t&1&&(s(0,"tr",5),S(1,$t,2,2,"td",12,B),d(),s(3,"tr",5),S(4,Qt,2,2,"td",11,B),d()),t&2){let e=n.$implicit;r(),I(e),r(3),I(e)}}function Gt(t,n){if(t&1&&S(0,Ut,6,0,null,null,B),t&2){let e=l(2);I(e.itemMatrix)}}function qt(t,n){if(t&1&&C(0,Vt,2,0)(1,Gt,2,0),t&2){let e=l();f(e.nzBordered?1:0)}}var Zt=(()=>{class t{content;nzSpan=1;nzTitle="";inputChange$=new Se;ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-descriptions-item"]],viewQuery:function(i,o){if(i&1&&U(He,7),i&2){let a;A(a=L())&&(o.content=a.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",fe],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[j],ngContentSelectors:vt,decls:1,vars:0,template:function(i,o){i&1&&(F(),$e(0,xt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Wt="descriptions",Yt={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},Kt=(()=>{var m;let t,n=[],e=[],i,o=[],a=[],g,v=[],O=[],p,V=[],M=[];return m=class{nzConfigService=k(Ye);cdr=k(Y);breakpointService=k(tt);directionality=k(xe);destroyRef=k(ue);_nzModuleName=Wt;items;nzBordered=T(this,n,!1);nzLayout=(T(this,e),"horizontal");nzColumn=T(this,o,Yt);nzSize=(T(this,a),T(this,v,"default"));nzTitle=(T(this,O),"");nzExtra;nzColon=T(this,V,!0);itemMatrix=(T(this,M),[]);realColumn=3;dir="ltr";breakpoint=Je.md;ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(J(this.destroyRef)).subscribe(u=>{this.dir=u})}ngOnChanges(u){u.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){let u=this.items.changes.pipe(Ee(this.items));ke(u,u.pipe(Ne(()=>ke(...this.items.map(c=>c.inputChange$)).pipe(De(16)))),this.breakpointService.subscribe(et).pipe(Re(c=>this.breakpoint=c))).pipe(J(this.destroyRef)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}prepareMatrix(){if(!this.items)return;let u=[],c=0,w=this.realColumn=this.getColumn(),ge=this.items.toArray(),oe=ge.length,Te=[],ye=()=>{Te.push(u),u=[],c=0};for(let _e=0;_e<oe;_e++){let Ct=ge[_e],{nzTitle:Me,content:Oe,nzSpan:he}=Ct;c+=he,c>=w?(c>w&&Ze(`"nzColumn" is ${w} but we have row length ${c}`),u.push({title:Me,content:Oe,span:w-(c-he)}),ye()):_e===oe-1?(u.push({title:Me,content:Oe,span:w-(c-he)}),ye()):u.push({title:Me,content:Oe,span:he})}this.itemMatrix=Te}getColumn(){return typeof this.nzColumn!="number"?this.nzColumn[this.breakpoint]:this.nzColumn}},(()=>{let u=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[K()],i=[K()],g=[K()],p=[K()],q(null,null,t,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:c=>"nzBordered"in c,get:c=>c.nzBordered,set:(c,w)=>{c.nzBordered=w}},metadata:u},n,e),q(null,null,i,{kind:"field",name:"nzColumn",static:!1,private:!1,access:{has:c=>"nzColumn"in c,get:c=>c.nzColumn,set:(c,w)=>{c.nzColumn=w}},metadata:u},o,a),q(null,null,g,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:c=>"nzSize"in c,get:c=>c.nzSize,set:(c,w)=>{c.nzSize=w}},metadata:u},v,O),q(null,null,p,{kind:"field",name:"nzColon",static:!1,private:!1,access:{has:c=>"nzColon"in c,get:c=>c.nzColon,set:(c,w)=>{c.nzColon=w}},metadata:u},V,M),u&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u})})(),ee(m,"\u0275fac",function(c){return new(c||m)}),ee(m,"\u0275cmp",y({type:m,selectors:[["nz-descriptions"]],contentQueries:function(c,w,ge){if(c&1&&Ce(ge,Zt,4),c&2){let oe;A(oe=L())&&(w.items=oe)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(c,w){c&2&&P("ant-descriptions-bordered",w.nzBordered)("ant-descriptions-middle",w.nzSize==="middle")("ant-descriptions-small",w.nzSize==="small")("ant-descriptions-rtl",w.dir==="rtl")},inputs:{nzBordered:[2,"nzBordered","nzBordered",ce],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",ce]},exportAs:["nzDescriptions"],features:[j],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(c,w){c&1&&(C(0,kt,3,2,"div",0),s(1,"div",1)(2,"table")(3,"tbody"),C(4,Nt,2,0),C(5,qt,2,1),d()()()),c&2&&(f(w.nzTitle||w.nzExtra?0:-1),r(4),f(w.nzLayout==="horizontal"?4:-1),r(),f(w.nzLayout==="vertical"?5:-1))},dependencies:[me,de,ie],encapsulation:2,changeDetection:0})),m})(),Oi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ne({type:t});static \u0275inj=te({imports:[Kt]})}return t})();var Jt=["template"],ct=["*"];function en(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(3);r(),G(e.nzLabel)}}function tn(t,n){if(t&1&&(s(0,"div",2),z(1,en,2,1,"ng-container",5),d()),t&2){let e=l(2);r(),_("nzStringTemplateOutlet",e.nzLabel)}}function nn(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(2);r(),G(e.nzDot)}}function on(t,n){if(t&1&&(s(0,"li",1),C(1,tn,2,1,"div",2),X(2,"div",3),s(3,"div",4),z(4,nn,2,1,"ng-container",5),d(),s(5,"div",6),E(6),d()()),t&2){let e=l();P("ant-timeline-item-right",(e.nzPosition||e.position)==="right")("ant-timeline-item-left",(e.nzPosition||e.position)==="left")("ant-timeline-item-last",e.isLast),r(),f(e.nzLabel?1:-1),r(2),W("border-color",e.borderColor),P("ant-timeline-item-head-red",e.nzColor==="red")("ant-timeline-item-head-blue",e.nzColor==="blue")("ant-timeline-item-head-green",e.nzColor==="green")("ant-timeline-item-head-gray",e.nzColor==="gray")("ant-timeline-item-head-custom",!!e.nzDot),r(),_("nzStringTemplateOutlet",e.nzDot)}}function rn(t,n){if(t&1&&ae(0,2),t&2){l();let e=le(6);_("ngTemplateOutlet",e)}}function an(t,n){}function ln(t,n){if(t&1&&z(0,an,0,0,"ng-template",2),t&2){let e=n.$implicit;_("ngTemplateOutlet",e.template)}}function sn(t,n){if(t&1&&ae(0,2),t&2){l();let e=le(6);_("ngTemplateOutlet",e)}}function cn(t,n){t&1&&X(0,"nz-icon",8)}function dn(t,n){if(t&1&&(N(0),x(1),C(2,cn,1,0,"nz-icon",8),R()),t&2){let e=l(3);r(),b(" ",e.nzPendingDot," "),r(),f(e.nzPendingDot?-1:2)}}function mn(t,n){if(t&1&&(N(0),x(1),R()),t&2){let e=l(3);r(),b(" ",e.isPendingBoolean?"":e.nzPending," ")}}function pn(t,n){if(t&1&&(s(0,"li",3),X(1,"div",4),s(2,"div",5),z(3,dn,3,2,"ng-container",6),d(),s(4,"div",7),z(5,mn,2,1,"ng-container",6),d()()),t&2){let e=l(2);r(3),_("nzStringTemplateOutlet",e.nzPendingDot),r(2),_("nzStringTemplateOutlet",e.nzPending)}}function gn(t,n){if(t&1&&C(0,pn,6,2,"li",3),t&2){let e=l();f(e.nzPending?0:-1)}}var be=(()=>{class t{check$=new Ie(1);markForCheck(){this.check$.next()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Fe({token:t,factory:t.\u0275fac})}return t})(),_n=["red","blue","green","grey","gray"];function hn(t){return _n.findIndex(n=>n===t)!==-1}var dt=(()=>{class t{cdr=k(Y);timelineService=k(be);template;nzPosition;nzColor="blue";nzDot;nzLabel;isLast=!1;borderColor=null;position;ngOnChanges(e){this.timelineService.markForCheck();let{nzColor:i}=e;i&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=hn(this.nzColor)?null:this.nzColor}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(i,o){if(i&1&&U(Jt,5),i&2){let a;A(a=L())&&(o.template=a.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[j],ngContentSelectors:ct,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],[1,"ant-timeline-item-label"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"]],template:function(i,o){i&1&&(F(),z(0,on,7,20,"ng-template",null,0,se))},dependencies:[me,de],encapsulation:2,changeDetection:0})}return t})(),un=(()=>{class t{cdr=k(Y);timelineService=k(be);directionality=k(xe);destroyRef=k(ue);listOfItems;nzMode="left";nzPending;nzPendingDot;nzReverse=!1;isPendingBoolean=!1;timelineItems=[];dir="ltr";hasLabelItem=!1;ngOnChanges(e){let{nzMode:i,nzReverse:o,nzPending:a}=e;(st(i)||st(o))&&this.updateChildren(),a&&(this.isPendingBoolean=a.currentValue===!0)}ngOnInit(){this.timelineService.check$.pipe(J(this.destroyRef)).subscribe(()=>{this.cdr.markForCheck()}),this.directionality.change?.pipe(J(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe(J(this.destroyRef)).subscribe(()=>{this.updateChildren()})}updateChildren(){if(this.listOfItems&&this.listOfItems.length){let e=this.listOfItems.length,i=!1;this.listOfItems.forEach((o,a)=>{o.isLast=this.nzReverse?a===0:a===e-1,o.position=Cn(a,this.nzMode),!i&&o.nzLabel&&(i=!0),o.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=i}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-timeline"]],contentQueries:function(i,o,a){if(i&1&&Ce(a,dt,4),i&2){let g;A(g=L())&&(o.listOfItems=g)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:[2,"nzReverse","nzReverse",ce]},exportAs:["nzTimeline"],features:[Qe([be]),j],ngContentSelectors:ct,decls:8,vars:14,consts:[["pendingTemplate",""],[1,"ant-timeline"],[3,"ngTemplateOutlet"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nzType","loading"]],template:function(i,o){i&1&&(F(),s(0,"ul",1),C(1,rn,1,1,"ng-container",2),S(2,ln,1,1,null,2,B),C(4,sn,1,1,"ng-container",2),d(),z(5,gn,1,1,"ng-template",null,0,se),E(7)),i&2&&(P("ant-timeline-label",o.hasLabelItem)("ant-timeline-right",!o.hasLabelItem&&o.nzMode==="right")("ant-timeline-alternate",o.nzMode==="alternate"||o.nzMode==="custom")("ant-timeline-pending",!!o.nzPending)("ant-timeline-reverse",o.nzReverse)("ant-timeline-rtl",o.dir==="rtl"),r(),f(o.nzReverse?1:-1),r(),I(o.timelineItems),r(2),f(o.nzReverse?-1:4))},dependencies:[ie,me,de,ze,we],encapsulation:2,changeDetection:0})}return t})();function st(t){return!!(t&&(t.previousValue!==t.currentValue||t.isFirstChange()))}function Cn(t,n){if(n!=="custom")return n==="left"||n==="right"?n:n==="alternate"&&t%2===0?"left":"right"}var $i=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ne({type:t});static \u0275inj=te({imports:[dt,un]})}return t})();function Qi(t,n,e,i){let o=(t??"").trim();if(!o)return{summary:"",imageUrl:null,imageAlt:""};let a=null,g="",v=/!\[([^\]]*)\]\(([^)]+)\)/.exec(o);if(v&&(g=v[1]?.trim()??"",a=fn(v[2]??"",n,e,i)),!a){let p=/<img\b[^>]*\bsrc\s*=\s*['"]([^'"]+)['"][^>]*>/i.exec(o);p&&(a=p[1]?.trim()??null,g=/<img\b[^>]*\balt\s*=\s*['"]([^'"]*)['"][^>]*>/i.exec(p[0]??"")?.[1]?.trim()??"")}return{summary:o.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,"\u3010\u56FE\u7247\u3011").replace(/<img\b[^>]*>/gi," ").replace(/```[\s\S]*?```/g," ").replace(/`([^`]*)`/g,"$1").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/^#{1,6}\s+/gm,"").replace(/^\s*>\s?/gm,"").replace(/^\s*[-*+]\s+/gm,"").replace(/<\/?[^>]+>/g," ").replace(/[*_~]/g,"").replace(/\r?\n+/g," ").replace(/\s+/g," ").trim(),imageUrl:a||null,imageAlt:g}}function fn(t,n,e,i){let o=t.trim();if(!o)return null;let a=o.match(/\/api\/admin\/uploads\/([a-zA-Z0-9_-]+)\/raw/);if(!a)return o;let g=a[1];return`/api/client/hub-token/projects/${n}/${i}/${e}/uploads/${g}/raw`}function Ui(t,n,e,i){let o=/!\[.*?\]\((\/api\/admin\/uploads\/[a-zA-Z0-9_-]+\/raw)\)/g;return t.replace(o,(a,g)=>{let v=g.match(/uploads\/([a-zA-Z0-9_-]+)/);if(!v)return a;let O=v[1],p=`/api/client/hub-token/projects/${n}/${i}/${e}/uploads/${O}/raw`;return a.replace(g,p)})}function Gi(t,n,e,i){let o=[],a=/!\[.*?\]\((\/api\/admin\/uploads\/[a-zA-Z0-9_-]+\/raw)\)/g;return{text:t.replace(a,(v,O)=>{let p=O.match(/uploads\/([a-zA-Z0-9_-]+)/);if(!p)return v;let V=p[1],M=`/api/client/hub-token/projects/${n}/${i}/${e}/uploads/${V}/raw`;return o.push(M),""}).replace(/\n{2,}/g,`
2
+ `).trim(),imgUrls:o}}var vn=["textRef"],xn=["*"];function wn(t,n){t&1&&E(0)}function zn(t,n){t&1&&ae(0)}function Mn(t,n){if(t&1&&z(0,zn,1,0,"ng-container",4),t&2){l();let e=le(5);_("ngTemplateOutlet",e)}}function On(t,n){if(t&1&&x(0),t&2){let e=l();b(" ",e.text()," ")}}function kn(t,n){if(t&1){let e=Z();s(0,"a",5),Q("click",function(){H(e);let o=l();return $(o.toggle())}),x(1),d()}if(t&2){let e=l();r(),b(" ",e.expanded()?"\u6536\u8D77":"\u5C55\u5F00"," ")}}var mt=class t{text=D("");lines=D(2);maxHeight=D(null);enableToggle=D(!0);textRef;observer;expanded=Pe(!1);showToggle=Pe(!1);hasTextInput=Ge(()=>!!this.text());ngAfterViewInit(){this.checkOverflow(),this.initObserver()}ngOnDestroy(){this.observer?.disconnect()}constructor(){qe(()=>{this.text(),this.lines(),setTimeout(()=>this.checkOverflow())})}initObserver(){let n=this.textRef?.nativeElement;n&&(this.observer=new MutationObserver(()=>{this.checkOverflow()}),this.observer.observe(n,{childList:!0,subtree:!0,characterData:!0}))}checkOverflow(){this.toggle(!1),this.showToggle.set(!1);let n=this.textRef?.nativeElement;n&&requestAnimationFrame(()=>{let e=n.scrollHeight>n.clientHeight,i=this.maxHeight()!=null&&n.scrollHeight>this.maxHeight();this.showToggle.set(e||i)})}toggle(n){n!==void 0?this.expanded.set(n):this.expanded.update(e=>!e)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-ellipsis-text"]],viewQuery:function(e,i){if(e&1&&U(vn,5),e&2){let o;A(o=L())&&(i.textRef=o.first)}},inputs:{text:[1,"text"],lines:[1,"lines"],maxHeight:[1,"maxHeight"],enableToggle:[1,"enableToggle"]},ngContentSelectors:xn,decls:7,vars:8,consts:[["textRef",""],["textTpl",""],[1,"text"],[1,"toggle"],[4,"ngTemplateOutlet"],[1,"toggle",3,"click"]],template:function(e,i){e&1&&(F(),s(0,"span",2,0),C(2,wn,1,0)(3,Mn,1,1,"ng-container"),z(4,On,1,1,"ng-template",null,1,se),d(),C(6,kn,2,1,"a",3)),e&2&&(W("--line-clamp",i.lines())("--max-height",i.maxHeight(),"px"),P("expanded",i.expanded()),r(2),f(i.hasTextInput()?3:2),r(4),f(i.showToggle()&&i.enableToggle()?6:-1))},dependencies:[ve,ie],styles:[".text[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;-webkit-line-clamp:var(--line-clamp);max-height:var(--max-height)}.text.expanded[_ngcontent-%COMP%]{-webkit-line-clamp:unset!important;max-height:none!important}.toggle[_ngcontent-%COMP%]{font-size:.8rem;font-weight:700;color:#1677ff;cursor:pointer;-webkit-user-select:none;user-select:none}"]})};var Pn=[[["","actions",""]],"*"],bn=["[actions]","*"],Tn=t=>({maxHeight:t});function yn(t,n){if(t&1&&X(0,"nz-badge",5),t&2){let e=l(2);_("nzCount",e.count())}}function Sn(t,n){if(t&1&&(s(0,"div",1)(1,"h2",4),x(2),C(3,yn,1,1,"nz-badge",5),d(),E(4),d()),t&2){let e=l();r(2),b(" ",e.title()," "),r(),f(e.count()!==null?3:-1)}}function In(t,n){if(t&1&&(s(0,"div",3),x(1),d()),t&2){let e=l();r(),G(e.emptyText())}}function Dn(t,n){t&1&&E(0,1)}var gt=class t{title=D();maxHeight=D();count=D(null);emptyStatus=D(!1);emptyText=D("\u6682\u65E0\u6570\u636E");static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-detail-item-card"]],inputs:{title:[1,"title"],maxHeight:[1,"maxHeight"],count:[1,"count"],emptyStatus:[1,"emptyStatus"],emptyText:[1,"emptyText"]},ngContentSelectors:bn,decls:5,vars:6,consts:[[1,"detail-item"],[1,"actions"],[1,"content"],[1,"empty"],[1,"wrap-title"],["nzStandalone","","nzShowZero","","nzColor","#eaeaea",3,"nzCount"]],template:function(e,i){e&1&&(F(Pn),s(0,"nz-card",0),C(1,Sn,5,2,"div",1),s(2,"div",2),C(3,In,2,1,"div",3)(4,Dn,1,0),d()()),e&2&&(je(Ue(4,Tn,i.maxHeight())),r(),f(i.title()?1:-1),r(2),f(i.emptyStatus()?3:4))},dependencies:[Xe,Ke,it,nt],styles:[".detail-item[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.detail-item[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-bottom:12px;padding:0 4px 4px;display:flex;border-bottom:1px solid #f0f0f0}.detail-item[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .wrap-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:0;width:100%;font-size:18px;font-weight:700}[_nghost-%COMP%] .ant-card-body{min-height:0;height:100%;flex:1;display:flex;flex-direction:column}.content[_ngcontent-%COMP%]{overflow-y:auto;flex:1}.empty[_ngcontent-%COMP%]{font-size:.875rem;text-align:center;color:gray}[_nghost-%COMP%] .ant-card-bordered{border-radius:10px}"]})};var En=["textEl"],_t=["*"];function Nn(t,n){if(t&1&&X(0,"nz-icon",1),t&2){let e=l();_("nzType",e.nzIcon)}}function Rn(t,n){if(t&1){let e=Z();s(0,"img",4),Q("error",function(o){H(e);let a=l();return $(a.imgError(o))}),d()}if(t&2){let e=l();_("src",e.nzSrc,Le),re("srcset",e.nzSrcSet)("alt",e.nzAlt)("loading",e.nzLoading()||"eager")("fetchpriority",e.nzFetchPriority()||"auto")}}function Fn(t,n){if(t&1&&(s(0,"span",3,0),x(2),d()),t&2){let e=l();r(2),G(e.nzText)}}var An="avatar",Ln=(()=>{var p;let t,n=[],e=[],i,o=[],a=[],g,v=[],O=[];return p=class{_nzModuleName=An;nzShape=T(this,n,"circle");nzSize=(T(this,e),T(this,o,"default"));nzGap=(T(this,a),T(this,v,4));nzText=T(this,O);nzSrc;nzSrcSet;nzAlt;nzIcon;nzLoading=D();nzFetchPriority=D();nzError=new Be;hasText=!1;hasSrc=!0;hasIcon=!1;customSize=null;textEl;el=k(Ae).nativeElement;cdr=k(Y);constructor(){Ve(()=>this.calcStringSize())}imgError(M){this.nzError.emit(M),M.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.calcStringSize())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.calcStringSize()}calcStringSize(){if(!this.hasText||!this.textEl)return;let M=this.textEl.nativeElement,m=M.offsetWidth,h=this.el.getBoundingClientRect?.().width??0,u=this.nzGap*2<h?this.nzGap*2:8,c=h-u<m?(h-u)/m:1;M.style.transform=`scale(${c}) translateX(-50%)`,M.style.lineHeight=this.customSize||""}setSizeStyle(){typeof this.nzSize=="number"?this.customSize=We(this.nzSize):this.customSize=null,this.cdr.markForCheck()}},(()=>{let M=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[K()],i=[K()],g=[K()],q(null,null,t,{kind:"field",name:"nzShape",static:!1,private:!1,access:{has:m=>"nzShape"in m,get:m=>m.nzShape,set:(m,h)=>{m.nzShape=h}},metadata:M},n,e),q(null,null,i,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:m=>"nzSize"in m,get:m=>m.nzSize,set:(m,h)=>{m.nzSize=h}},metadata:M},o,a),q(null,null,g,{kind:"field",name:"nzGap",static:!1,private:!1,access:{has:m=>"nzGap"in m,get:m=>m.nzGap,set:(m,h)=>{m.nzGap=h}},metadata:M},v,O),M&&Object.defineProperty(p,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:M})})(),ee(p,"\u0275fac",function(m){return new(m||p)}),ee(p,"\u0275cmp",y({type:p,selectors:[["nz-avatar"]],viewQuery:function(m,h){if(m&1&&U(En,5),m&2){let u;A(u=L())&&(h.textEl=u.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(m,h){m&2&&(W("width",h.customSize)("height",h.customSize)("line-height",h.customSize)("font-size",h.hasIcon&&h.customSize?h.nzSize/2:null,"px"),P("ant-avatar-lg",h.nzSize==="large")("ant-avatar-sm",h.nzSize==="small")("ant-avatar-square",h.nzShape==="square")("ant-avatar-circle",h.nzShape==="circle")("ant-avatar-icon",h.nzIcon)("ant-avatar-image",h.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:[2,"nzGap","nzGap",fe],nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon",nzLoading:[1,"nzLoading"],nzFetchPriority:[1,"nzFetchPriority"]},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[j],ngContentSelectors:_t,decls:4,vars:1,consts:[["textEl",""],[3,"nzType"],[3,"src"],[1,"ant-avatar-string"],[3,"error","src"]],template:function(m,h){m&1&&(F(),C(0,Nn,1,1,"nz-icon",1)(1,Rn,1,5,"img",2)(2,Fn,3,1,"span",3),E(3)),m&2&&f(h.nzIcon&&h.hasIcon?0:h.nzSrc&&h.hasSrc?1:h.nzText&&h.hasText?2:-1)},dependencies:[ze,we],encapsulation:2,changeDetection:0})),p})(),Mo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=y({type:t,selectors:[["nz-avatar-group"]],hostAttrs:[1,"ant-avatar-group"],exportAs:["nzAvatarGroup"],ngContentSelectors:_t,decls:1,vars:0,template:function(i,o){i&1&&(F(),E(0))},encapsulation:2,changeDetection:0})}return t})(),Oo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ne({type:t});static \u0275inj=te({imports:[Ln]})}return t})();var Bn=["viewerRef"],ut=(t,n)=>n.id;function Vn(t,n){if(t&1){let e=Z();s(0,"li")(1,"button",12),Q("click",function(){let o=H(e).$implicit,a=l(3);return $(a.jumpToHeading(o.id))}),x(2),d()()}if(t&2){let e=n.$implicit,i=l(3);r(),W("padding-left",(e.level-1)*12,"px"),P("is-active",i.activeTocId===e.id),re("data-toc-id",e.id),r(),b(" ",e.text," ")}}function Hn(t,n){if(t&1&&(s(0,"aside",9)(1,"div",10),x(2,"On this page"),d(),s(3,"ul",11),S(4,Vn,3,6,"li",null,ut),d()()),t&2){let e=l(2);r(4),I(e.tocItems)}}function $n(t,n){if(t&1){let e=Z();s(0,"div",7)(1,"button",8),Q("click",function(){H(e);let o=l();return $(o.toggleToc())}),x(2),d(),C(3,Hn,6,0,"aside",9),d()}if(t&2){let e=l();P("is-collapsed",e.tocCollapsed),r(2),b(" ",e.tocCollapsed?"\u76EE\u5F55":"\u6536\u8D77\u76EE\u5F55"," "),r(),f(e.tocCollapsed?-1:3)}}function jn(t,n){if(t&1){let e=Z();s(0,"li")(1,"button",12),Q("click",function(){let o=H(e).$implicit,a=l(2);return $(a.jumpToHeading(o.id))}),x(2),d()()}if(t&2){let e=n.$implicit,i=l(2);r(),W("padding-left",(e.level-1)*12,"px"),P("is-active",i.activeTocId===e.id),re("data-toc-id",e.id),r(),b(" ",e.text," ")}}function Qn(t,n){if(t&1&&(s(0,"aside",4)(1,"div",10),x(2,"On this page"),d(),s(3,"ul",11),S(4,jn,3,6,"li",null,ut),d()()),t&2){let e=l();r(4),I(e.tocItems)}}var ht=class t{imageService=k(ot);cdr=k(Y);viewerRef;content="";showToc=!0;tocVariant="inline";tocCollapsedByDefault=!1;tocItems=[];activeTocId=null;tocCollapsed=!1;headingElements=[];scrollContainer=null;scrollListener=null;ngOnChanges(n){(n.content||n.showToc||n.tocCollapsedByDefault||n.tocVariant)&&queueMicrotask(()=>this.buildToc())}onMarkdownReady(){this.buildToc()}ngOnDestroy(){this.teardownScrollTracking()}jumpToHeading(n){let i=this.viewerRef?.nativeElement?.querySelector(`#${CSS.escape(n)}`);if(!i)return;this.activeTocId=n,this.cdr.markForCheck(),queueMicrotask(()=>this.ensureActiveTocItemVisible());let o=this.scrollContainer instanceof HTMLElement?this.scrollContainer:null,a=16;if(o){let v=o.getBoundingClientRect(),O=i.getBoundingClientRect(),p=o.scrollTop+(O.top-v.top)-a;o.scrollTo({top:Math.max(0,p),behavior:"smooth"});return}let g=i.getBoundingClientRect().top+window.scrollY-88;window.scrollTo({top:Math.max(0,g),behavior:"smooth"})}toggleToc(){this.tocCollapsed=!this.tocCollapsed}onContentClick(n){let i=n.target?.closest("img");if(!i?.src)return;let o=this.viewerRef?.nativeElement,a=o?Array.from(o.querySelectorAll("img")):[i],g=a.map(p=>({src:p.currentSrc||p.src,alt:p.alt||void 0})).filter(p=>!!p.src),v=Math.max(0,a.findIndex(p=>p===i));if(g.length===0)return;let O=this.imageService.preview(g,{nzMaskClosable:!0,nzKeyboard:!0});v>0&&O.switchTo(v)}buildToc(){if(!this.showToc){this.tocItems=[],this.activeTocId=null,this.tocCollapsed=!0,this.teardownScrollTracking(),this.cdr.markForCheck();return}let n=this.viewerRef?.nativeElement;if(!n){this.tocItems=[],this.activeTocId=null,this.tocCollapsed=this.tocCollapsedByDefault,this.teardownScrollTracking(),this.cdr.markForCheck();return}let e=Array.from(n.querySelectorAll("h1, h2, h3")),i=new Map,o=[];for(let a=0;a<e.length;a+=1){let g=e[a],v=(g.textContent||"").trim();if(!v)continue;let O=Number(g.tagName.slice(1))||1,p=this.slugify(v)||`section-${a+1}`,V=i.get(p)??0;i.set(p,V+1),V>0&&(p=`${p}-${V+1}`),g.id=g.id||p,o.push({id:g.id,text:v,level:O})}this.tocItems=o,this.activeTocId=o[0]?.id??null,this.tocCollapsed=this.tocCollapsedByDefault,this.setupScrollTracking(n,e),this.cdr.markForCheck()}setupScrollTracking(n,e){if(this.teardownScrollTracking(),e.length===0)return;this.headingElements=e;let i=this.findScrollContainer(n);this.scrollContainer=i??window,this.scrollListener=()=>this.syncActiveHeading(),this.scrollContainer.addEventListener("scroll",this.scrollListener,{passive:!0}),window.addEventListener("resize",this.scrollListener,{passive:!0}),this.syncActiveHeading()}teardownScrollTracking(){this.scrollListener&&(this.scrollContainer?.removeEventListener("scroll",this.scrollListener),window.removeEventListener("resize",this.scrollListener)),this.headingElements=[],this.scrollContainer=null,this.scrollListener=null}syncActiveHeading(){if(this.headingElements.length===0)return;let n=96,e=this.headingElements[0],i=this.scrollContainer instanceof HTMLElement?this.scrollContainer:null;if(i){let o=i.getBoundingClientRect(),a=i.scrollTop+n;Math.max(i.scrollHeight-i.clientHeight,0)-i.scrollTop<=2&&(e=this.headingElements[this.headingElements.length-1]);for(let O of this.headingElements)if(O.getBoundingClientRect().top-o.top+i.scrollTop<=a)e=O;else break}else for(let o of this.headingElements)if(o.getBoundingClientRect().top<=n)e=o;else break;!e.id||e.id===this.activeTocId||(this.activeTocId=e.id,this.cdr.markForCheck(),queueMicrotask(()=>this.ensureActiveTocItemVisible()))}ensureActiveTocItemVisible(){let n=this.viewerRef?.nativeElement;if(!n||!this.activeTocId)return;let e=n.querySelector(`.markdown-toc__item[data-toc-id="${CSS.escape(this.activeTocId)}"]`);if(!e)return;let i=e.closest(".markdown-toc--floating, .markdown-toc");if(!i)return;e.scrollIntoView({block:"nearest",inline:"nearest"});let o=e.offsetTop,a=o+e.offsetHeight,g=i.scrollTop,v=g+i.clientHeight;o<g?i.scrollTop=Math.max(o-8,0):a>v&&(i.scrollTop=a-i.clientHeight+8)}findScrollContainer(n){let e=n.parentElement;for(;e;){let o=getComputedStyle(e).overflowY;if((o==="auto"||o==="scroll")&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return null}slugify(n){return n.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\u4e00-\u9fa5-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-markdown-viewer"]],viewQuery:function(e,i){if(e&1&&U(Bn,7),e&2){let o;A(o=L())&&(i.viewerRef=o.first)}},inputs:{content:"content",showToc:"showToc",tocVariant:"tocVariant",tocCollapsedByDefault:"tocCollapsedByDefault"},features:[j],decls:7,vars:6,consts:[["viewerRef",""],[1,"markdown-viewer","markdown-body",3,"click"],[1,"markdown-layout"],[1,"markdown-toc-floating",3,"is-collapsed"],[1,"markdown-toc"],[1,"markdown-content"],[3,"ready","data","clipboard"],[1,"markdown-toc-floating"],["type","button",1,"markdown-toc-floating__toggle",3,"click"],[1,"markdown-toc","markdown-toc--floating"],[1,"markdown-toc__title"],[1,"markdown-toc__list"],["type","button",1,"markdown-toc__item",3,"click"]],template:function(e,i){if(e&1){let o=Z();s(0,"div",1,0),Q("click",function(g){return H(o),$(i.onContentClick(g))}),s(2,"div",2),C(3,$n,4,4,"div",3),C(4,Qn,6,0,"aside",4),s(5,"div",5)(6,"markdown",6),Q("ready",function(){return H(o),$(i.onMarkdownReady())}),d()()()()}e&2&&(r(2),P("has-toc",i.showToc&&i.tocItems.length>0&&i.tocVariant==="inline"),r(),f(i.showToc&&i.tocItems.length>0&&i.tocVariant==="floating"?3:-1),r(),f(i.showToc&&i.tocItems.length>0&&i.tocVariant==="inline"?4:-1),r(2),_("data",i.content)("clipboard",!0))},dependencies:[ve,lt,at,rt],styles:['[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%]{font-size:14px;line-height:1.8;color:var(--text-primary, #262626);word-break:break-word}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-layout[_ngcontent-%COMP%]{display:block;position:relative}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-layout.has-toc[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-content[_ngcontent-%COMP%]{min-width:0;order:1;display:flow-root}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating[_ngcontent-%COMP%]{position:sticky;top:8px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:8px;float:right;clear:right;margin:0 0 8px 16px;width:fit-content}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%]{height:30px;min-width:64px;padding:0 10px;border:1px solid var(--border-color-soft, #d9dde6);border-radius:999px;background:var(--surface-elevated, rgba(255, 255, 255, .92));color:var(--text-secondary, #475569);font-size:12px;line-height:28px;cursor:pointer;box-shadow:0 6px 16px #0f172a1a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%]:hover{color:var(--text-primary, #0f172a)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%]{width:220px;max-height:min(55vh,420px);overflow:auto;margin:0;padding:10px 0 10px 14px;border-radius:14px;border:1px solid var(--border-color-soft, #e5e6eb);background:var(--surface-elevated, rgba(255, 255, 255, .96));box-shadow:0 14px 28px #0f172a29;position:static}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc.markdown-toc--floating[_ngcontent-%COMP%]{position:static;top:auto;order:initial;border-left:0;padding-left:14px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc[_ngcontent-%COMP%]{margin:0;padding:6px 0 6px 18px;border-left:1px solid var(--border-color-soft, #e5e6eb);position:sticky;top:76px;order:2;min-width:0;max-height:min(68vh,calc(100vh - 140px));overflow:auto}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--text-heading, #1f2937)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:2px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]{position:relative;width:100%;min-height:30px;border:0;border-radius:0;background:transparent;color:var(--text-muted, #64748b);text-align:left;font-size:13px;line-height:1.45;padding:4px 8px 4px 10px;cursor:pointer;white-space:normal;word-break:break-word;overflow-wrap:anywhere}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover{background:transparent;color:var(--text-primary, #0f172a)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%]{color:var(--primary-500, #2563eb);font-weight:600}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%]:after{content:"";position:absolute;left:2px;top:7px;bottom:7px;width:2px;border-radius:999px;background:var(--primary-500, #2563eb)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]{padding-left:10px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h1, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h2, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h3, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h4, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h5, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h6{margin:1.2em 0 .6em;font-weight:600;line-height:1.4;word-break:break-word;overflow-wrap:anywhere}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h1{font-size:28px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h2{font-size:24px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h3{font-size:20px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h1, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h2, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h3, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h4, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h5, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] h6{scroll-margin-top:88px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] p{margin:0 0 12px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] ul, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] ol{margin:0 0 12px;padding-left:24px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] li{margin:4px 0}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] blockquote{margin:0 0 12px;padding:8px 12px;color:#595959;border-left:4px solid #d9d9d9;background:#fafafa}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] pre{overflow:auto;padding:12px 14px;border-radius:8px;background:#f6f8fa;border:1px solid var(--border-color-soft, #e5e6eb)}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] code{font-family:Consolas,Courier New,monospace}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] :not(pre)>code{padding:2px 6px;border-radius:6px;background:var(--bg-subtle, #f5f7fa);border:1px solid var(--border-color-soft, #e5e6eb);color:var(--text-primary, #262626);font-size:13px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] pre code{background:transparent;border:0;padding:0;color:inherit;font-size:13px;line-height:1.7}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] table{width:100%;margin:0 0 12px;border-collapse:collapse}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] th, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] td{padding:8px 10px;border:1px solid #e5e6eb;text-align:left}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] img{display:block;max-width:100%;width:auto;max-height:min(32vh,100px);margin:12px 0;border-radius:10px;object-fit:contain;border:1px solid var(--border-color-soft, #e5e6eb);background:var(--bg-elevated, #fff);cursor:zoom-in;box-shadow:0 4px 12px #0f172a14}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] a{color:#1677ff;text-decoration:none}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] a:hover{text-decoration:underline}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] pre, html[data-theme="dark"] [_nghost-%COMP%] pre{background:#0f172a;border-color:#94a3b83d}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] :not(pre)>code, html[data-theme="dark"] [_nghost-%COMP%] :not(pre)>code{background:#94a3b824;border-color:#94a3b83d;color:#e2e8f0}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc[_ngcontent-%COMP%]{border-color:#94a3b83d;background:transparent}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%]{border-color:#94a3b847;background:#162033!important;box-shadow:0 14px 28px #02061773}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc-floating__toggle[_ngcontent-%COMP%]{border-color:#94a3b84d!important;background:#162033!important;color:#e2e8f0!important;box-shadow:0 10px 22px #0206176b}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__title[_ngcontent-%COMP%]{color:#e2e8f0}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]{color:#cbd5e1}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, html.dark [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover, body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item[_ngcontent-%COMP%]:hover{color:#f1f5f9}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], html[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] html.dark[_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], [_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] body[data-theme="dark"][_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%], body[data-theme="dark"] [_nghost-%COMP%] .markdown-toc__item.is-active[_ngcontent-%COMP%]{color:#60a5fa}@media (max-width: 1024px){[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-layout.has-toc[_ngcontent-%COMP%]{grid-template-columns:1fr}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc[_ngcontent-%COMP%]{position:static;margin-bottom:12px}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc-floating[_ngcontent-%COMP%]{position:static;margin-bottom:8px;align-items:flex-start}[_nghost-%COMP%] .markdown-viewer[_ngcontent-%COMP%] .markdown-toc--floating[_ngcontent-%COMP%]{width:100%;max-height:none}}'],changeDetection:0})};export{Zt as a,Kt as b,Oi as c,dt as d,un as e,$i as f,Un as g,Gn as h,qn as i,Zn as j,Wn as k,Yn as l,Kn as m,Xn as n,Jn as o,ei as p,gt as q,Ln as r,Mo as s,Oo as t,ni as u,ii as v,oi as w,ht as x,Qi as y,Ui as z,Gi as A,mt as B};
@@ -0,0 +1 @@
1
+ import{L as C,a as G,ta as H,ua as Z}from"./chunk-SPRWNZHF.js";import{i as W}from"./chunk-T3KK7ZXB.js";import{Da as M,Ec as k,Fb as w,Gb as E,Gc as z,Ha as O,Jc as A,Kc as P,Lb as S,Oa as j,V as I,Wb as d,Yb as m,bc as R,cc as s,cd as B,da as N,dc as p,ea as _,ec as F,f,i as y,m as v,n as x,nb as l,oa as T,r as b,s as g,sa as c,td as U,u as D,uc as u,vc as L,wc as $,xd as h,yd as V}from"./chunk-WI67LAOV.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
@@ -0,0 +1 @@
1
+ import{Fa as I,Ga as V,L as O,N as E,O as R,P as S,Q as j,a as B}from"./chunk-SPRWNZHF.js";import{Da as C,Fb as f,Fc as N,Gb as m,Gc as D,Oa as z,Ra as g,Wb as k,Yb as y,cc as _,dc as v,lc as T,nb as p,oa as c,rc as a,sa as r,sb as s,td as w,uc as M,vc as P,wc as b,xd as l,ya as d,yb as u,za as h}from"./chunk-WI67LAOV.js";var x=["*"];function A(o,H){if(o&1){let t=T();_(0,"nz-icon",1),a("click",function(e){d(t);let i=M();return h(i.closeTag(e))}),v()}}var F=(()=>{class o{cdr=r(w);renderer=r(u);el=r(g).nativeElement;directionality=r(B);destroyRef=r(C);nzMode="default";nzColor;nzChecked=!1;nzBordered=!0;nzOnClose=new s;nzCheckedChange=new s;dir="ltr";isPresetColor=!1;updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(t){this.nzOnClose.emit(t),t.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.el),this.el)}clearPresetColor(){let t=new RegExp(`(ant-tag-(?:${[...R,...E].join("|")}))`,"g"),n=this.el.classList.toString(),e=[],i=t.exec(n);for(;i!==null;)e.push(i[1]),i=t.exec(n);this.el.classList.remove(...e)}setPresetColor(){this.clearPresetColor(),this.nzColor?this.isPresetColor=S(this.nzColor)||j(this.nzColor):this.isPresetColor=!1,this.isPresetColor&&this.el.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe(O(this.destroyRef)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){let{nzColor:n}=t;n&&this.setPresetColor()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=f({type:o,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(n,e){n&1&&a("click",function(){return e.updateCheckedStatus()}),n&2&&(N("background-color",e.isPresetColor?"":e.nzColor),D("ant-tag-has-color",e.nzColor&&!e.isPresetColor)("ant-tag-checkable",e.nzMode==="checkable")("ant-tag-checkable-checked",e.nzChecked)("ant-tag-rtl",e.dir==="rtl")("ant-tag-borderless",!e.nzBordered))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",l],nzBordered:[2,"nzBordered","nzBordered",l]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[z],ngContentSelectors:x,decls:2,vars:1,consts:[["nzType","close","tabindex","-1",1,"ant-tag-close-icon"],["nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(n,e){n&1&&(P(),b(0),k(1,A,1,0,"nz-icon",0)),n&2&&(p(),y(e.nzMode==="closeable"?1:-1))},dependencies:[V,I],encapsulation:2,changeDetection:0})}return o})(),te=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=m({type:o});static \u0275inj=c({imports:[F]})}return o})();export{F as a,te as b};