@futdevpro/ccap 1.1.2960 → 1.1.2968
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client-dist/{agent-instances.module-2URQPTNT.js → agent-instances.module-LFM3J2LA.js} +2 -2
- package/client-dist/ca.module-6IKKBFCV.js +5 -0
- package/client-dist/ca.module-6IKKBFCV.js.map +7 -0
- package/client-dist/{cc-usage-dashboard.component-UEDH2XKN.js → cc-usage-dashboard.component-MAJTREX5.js} +2 -2
- package/client-dist/cc.module-WIBOFFFC.js +4 -0
- package/client-dist/cc.module-WIBOFFFC.js.map +7 -0
- package/client-dist/{chunk-M2VDKALL.js → chunk-2XU2LIK5.js} +2 -2
- package/client-dist/{chunk-UEFUKRAM.js → chunk-334PU4V5.js} +2 -2
- package/client-dist/{chunk-VH4GKMD3.js → chunk-375SGREC.js} +2 -2
- package/client-dist/chunk-3XP3ALCH.js +73 -0
- package/client-dist/chunk-3XP3ALCH.js.map +1 -0
- package/client-dist/{chunk-DE3BOHO5.js → chunk-4O5PJT2Q.js} +2 -2
- package/client-dist/{chunk-6JO7UKOI.js → chunk-536ONGRA.js} +2 -2
- package/client-dist/{chunk-7Y6EDEKN.js → chunk-5JBJMD26.js} +2 -2
- package/client-dist/{chunk-BV6QDXRW.js → chunk-5L255H5C.js} +2 -2
- package/client-dist/{chunk-BV6QDXRW.js.map → chunk-5L255H5C.js.map} +1 -1
- package/client-dist/{chunk-OCYK4I37.js → chunk-5SYCIFC7.js} +2 -2
- package/client-dist/{chunk-HRA33EDX.js → chunk-62O4YXH2.js} +2 -2
- package/client-dist/{chunk-NVDOMHCP.js → chunk-7DXWR6DX.js} +2 -2
- package/client-dist/{chunk-5BZODWW7.js → chunk-7QXWTKTQ.js} +2 -2
- package/client-dist/{chunk-FKOWRSW7.js → chunk-AFNG5IFQ.js} +2 -2
- package/client-dist/{chunk-6V3AY4GG.js → chunk-AOZH5KZ5.js} +2 -2
- package/client-dist/{chunk-JOEQVHLP.js → chunk-B5C3VRNW.js} +2 -2
- package/client-dist/{chunk-GWYU4AVI.js → chunk-BBQR7THP.js} +2 -2
- package/client-dist/{chunk-4LPEUFAW.js → chunk-BNZAUTHL.js} +2 -2
- package/client-dist/{chunk-3W3OBILQ.js → chunk-BP6PERGA.js} +2 -2
- package/client-dist/{chunk-ALZ7U76J.js → chunk-C6BPLTAT.js} +2 -2
- package/client-dist/{chunk-PRF3OUI7.js → chunk-CSJOCUB5.js} +2 -2
- package/client-dist/{chunk-ZDABQIBP.js → chunk-DZ4365RI.js} +2 -2
- package/client-dist/{chunk-DODMVPWS.js → chunk-EIJM7YZZ.js} +2 -2
- package/client-dist/{chunk-TNTQYNFQ.js → chunk-F5OKFSMW.js} +2 -2
- package/client-dist/{chunk-KHMRNG5E.js → chunk-GLISSBW6.js} +2 -2
- package/client-dist/{chunk-AINXWTEN.js → chunk-GOHAZ3UP.js} +2 -2
- package/client-dist/{chunk-744OTLPJ.js → chunk-GXVFIYGG.js} +2 -2
- package/client-dist/{chunk-WAVRMTHA.js → chunk-GZJSMF4W.js} +2 -2
- package/client-dist/{chunk-DJCLH4DQ.js → chunk-GZNAXQSR.js} +2 -2
- package/client-dist/{chunk-CKHGJZOB.js → chunk-HIUVSLF2.js} +2 -2
- package/client-dist/{chunk-PKVKXWSS.js → chunk-K2BXFMAZ.js} +2 -2
- package/client-dist/{chunk-MYK7GACV.js → chunk-KS3E56FC.js} +2 -2
- package/client-dist/{chunk-FXDLW3RE.js → chunk-KYXVXZA4.js} +2 -2
- package/client-dist/{chunk-4LELMYV2.js → chunk-M6XVA3F3.js} +2 -2
- package/client-dist/{chunk-J7XG5WST.js → chunk-MDOELCBX.js} +2 -2
- package/client-dist/{chunk-U4RZ7GFY.js → chunk-OAYVBZZD.js} +2 -2
- package/client-dist/{chunk-OV776GY4.js → chunk-OAZA6CLB.js} +2 -2
- package/client-dist/{chunk-ZKC5Z3IN.js → chunk-OHXBMPQN.js} +2 -2
- package/client-dist/{chunk-WLVM35I4.js → chunk-OUBAPK5Q.js} +2 -2
- package/client-dist/{chunk-5YO3LDJM.js → chunk-P4E77IA5.js} +2 -2
- package/client-dist/{chunk-IQYJH4J7.js → chunk-PIN4VFXO.js} +2 -2
- package/client-dist/{chunk-OLTVSW6P.js → chunk-PZ3A7XIC.js} +2 -2
- package/client-dist/{chunk-W6RXT6D7.js → chunk-SBTVSUCF.js} +2 -2
- package/client-dist/{chunk-REWBQNDV.js → chunk-SLYF4BZT.js} +2 -2
- package/client-dist/{chunk-JLUYCPX3.js → chunk-SOA6UZHW.js} +2 -2
- package/client-dist/{chunk-6T3T47WR.js → chunk-TKJC6WIX.js} +2 -2
- package/client-dist/{chunk-BKYQ746Q.js → chunk-UZWYHQU5.js} +2 -2
- package/client-dist/{chunk-UEQKXLYY.js → chunk-VER7DLPS.js} +2 -2
- package/client-dist/{chunk-A4J42SWO.js → chunk-WSRT2AXO.js} +2 -2
- package/client-dist/{chunk-PEIQDAXN.js → chunk-XC6OGCBT.js} +2 -2
- package/client-dist/{chunk-3CCTA7PZ.js → chunk-XS5NRBFX.js} +2 -2
- package/client-dist/{chunk-KIRC3TOF.js → chunk-Y4WOX5ZT.js} +2 -2
- package/client-dist/{chunk-ZVAWABJH.js → chunk-YFGRQVYN.js} +2 -2
- package/client-dist/{chunk-PGEEVNYW.js → chunk-YV7GEWMV.js} +2 -2
- package/client-dist/{chunk-3MRPZKCQ.js → chunk-ZO42CPIZ.js} +2 -2
- package/client-dist/{chunk-GTS3HVE3.js → chunk-ZRLRJNW4.js} +2 -2
- package/client-dist/{chunk-4LUVD2AP.js → chunk-ZTO2WC4L.js} +2 -2
- package/client-dist/{consultant.module-N64GJRK3.js → consultant.module-XYGMFIBX.js} +2 -2
- package/client-dist/{crd.module-2TLXBWL3.js → crd.module-2TUYARHJ.js} +2 -2
- package/client-dist/{dashboard.module-A5AQ4MXU.js → dashboard.module-G47SY7RR.js} +2 -2
- package/client-dist/{do.module-7A4O3RFF.js → do.module-WWLJVEM2.js} +2 -2
- package/client-dist/{document-library.module-N5KBWUB6.js → document-library.module-EKVYKBGO.js} +2 -2
- package/client-dist/{embedding-eval.module-O6SZBU7X.js → embedding-eval.module-ZXMLZHML.js} +2 -2
- package/client-dist/{embedding-registry.module-OA77P44J.js → embedding-registry.module-EE5OFQVA.js} +2 -2
- package/client-dist/{err.module-RWJUO7EF.js → err.module-AQ7S3MIX.js} +2 -2
- package/client-dist/{feedback.module-GUBGJMFD.js → feedback.module-PS2TJILH.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-P3PVLVPH.js → host-runtime-mcp.module-XHWB3K2U.js} +2 -2
- package/client-dist/index.html +2 -2
- package/client-dist/{live-dev-pipeline.module-HUI2EWPA.js → live-dev-pipeline.module-HVIUS654.js} +2 -2
- package/client-dist/{logs.module-KCU67S7S.js → logs.module-RZOFXUFO.js} +2 -2
- package/client-dist/{main-SB4UO4OC.js → main-N4T3LPFJ.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-3UBJZBTK.js → master-control-remote-poc.module-Z44FHFP3.js} +2 -2
- package/client-dist/{mobile-app.module-X6U46WW7.js → mobile-app.module-7EN7TBHL.js} +2 -2
- package/client-dist/{model-registry.module-3PG3PJ3J.js → model-registry.module-3GLXXUHT.js} +2 -2
- package/client-dist/oc.module-XJXWDHRE.js +3 -0
- package/client-dist/oc.module-XJXWDHRE.js.map +7 -0
- package/client-dist/{orc.module-KR5CVMQM.js → orc.module-TGXVMQLI.js} +2 -2
- package/client-dist/{project-management.module-IHLVVJ2G.js → project-management.module-24CUEUF5.js} +2 -2
- package/client-dist/project-source-routed.module-DNGOB2JX.js +2 -0
- package/client-dist/s-agent-console-message-bubble.component-QJSDQEWX.css.map +7 -0
- package/client-dist/s-agent-tool-plan-view.component-E4T5UMZT.css.map +7 -0
- package/client-dist/{scheduler.module-U2LB4R6N.js → scheduler.module-I4VI7QU7.js} +2 -2
- package/client-dist/{session.module-HOSGEEDR.js → session.module-MQKLXSPJ.js} +9 -9
- package/client-dist/session.module-MQKLXSPJ.js.map +7 -0
- package/client-dist/{set.module-BXGLV3NK.js → set.module-EBOPU2SQ.js} +2 -2
- package/client-dist/{setup.module-47WXGX3F.js → setup.module-LOYXPT7O.js} +2 -2
- package/client-dist/{styles-MUU7N64U.css → styles-YBSH3JQY.css} +2 -2
- package/client-dist/{styles-MUU7N64U.css.map → styles-YBSH3JQY.css.map} +3 -3
- package/client-dist/{terminals.module-KPNW6NBJ.js → terminals.module-45PXK7MW.js} +2 -2
- package/client-dist/{voice-notes-poc.module-KUQCUNUK.js → voice-notes-poc.module-UIV4RQN3.js} +2 -2
- package/client-dist/{wfs.module-KFTICN4O.js → wfs.module-BNMGWII3.js} +2 -2
- package/package.json +1 -1
- package/client-dist/ca.module-JUKBF44B.js +0 -5
- package/client-dist/ca.module-JUKBF44B.js.map +0 -7
- package/client-dist/cc.module-S5PA32TN.js +0 -4
- package/client-dist/cc.module-S5PA32TN.js.map +0 -7
- package/client-dist/chunk-VPWEWXFD.js +0 -73
- package/client-dist/chunk-VPWEWXFD.js.map +0 -1
- package/client-dist/oc.module-C52TEII4.js +0 -3
- package/client-dist/oc.module-C52TEII4.js.map +0 -7
- package/client-dist/project-source-routed.module-GBWQ63AE.js +0 -2
- package/client-dist/s-agent-console-message-bubble.component-KS3KL36G.css.map +0 -7
- package/client-dist/s-agent-tool-plan-view.component-PVG3EXHY.css.map +0 -7
- package/client-dist/session.module-HOSGEEDR.js.map +0 -7
- /package/client-dist/{agent-instances.module-2URQPTNT.js.map → agent-instances.module-LFM3J2LA.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-UEDH2XKN.js.map → cc-usage-dashboard.component-MAJTREX5.js.map} +0 -0
- /package/client-dist/{chunk-M2VDKALL.js.map → chunk-2XU2LIK5.js.map} +0 -0
- /package/client-dist/{chunk-UEFUKRAM.js.map → chunk-334PU4V5.js.map} +0 -0
- /package/client-dist/{chunk-VH4GKMD3.js.map → chunk-375SGREC.js.map} +0 -0
- /package/client-dist/{chunk-DE3BOHO5.js.map → chunk-4O5PJT2Q.js.map} +0 -0
- /package/client-dist/{chunk-6JO7UKOI.js.map → chunk-536ONGRA.js.map} +0 -0
- /package/client-dist/{chunk-7Y6EDEKN.js.map → chunk-5JBJMD26.js.map} +0 -0
- /package/client-dist/{chunk-OCYK4I37.js.map → chunk-5SYCIFC7.js.map} +0 -0
- /package/client-dist/{chunk-HRA33EDX.js.map → chunk-62O4YXH2.js.map} +0 -0
- /package/client-dist/{chunk-NVDOMHCP.js.map → chunk-7DXWR6DX.js.map} +0 -0
- /package/client-dist/{chunk-5BZODWW7.js.map → chunk-7QXWTKTQ.js.map} +0 -0
- /package/client-dist/{chunk-FKOWRSW7.js.map → chunk-AFNG5IFQ.js.map} +0 -0
- /package/client-dist/{chunk-6V3AY4GG.js.map → chunk-AOZH5KZ5.js.map} +0 -0
- /package/client-dist/{chunk-JOEQVHLP.js.map → chunk-B5C3VRNW.js.map} +0 -0
- /package/client-dist/{chunk-GWYU4AVI.js.map → chunk-BBQR7THP.js.map} +0 -0
- /package/client-dist/{chunk-4LPEUFAW.js.map → chunk-BNZAUTHL.js.map} +0 -0
- /package/client-dist/{chunk-3W3OBILQ.js.map → chunk-BP6PERGA.js.map} +0 -0
- /package/client-dist/{chunk-ALZ7U76J.js.map → chunk-C6BPLTAT.js.map} +0 -0
- /package/client-dist/{chunk-PRF3OUI7.js.map → chunk-CSJOCUB5.js.map} +0 -0
- /package/client-dist/{chunk-ZDABQIBP.js.map → chunk-DZ4365RI.js.map} +0 -0
- /package/client-dist/{chunk-DODMVPWS.js.map → chunk-EIJM7YZZ.js.map} +0 -0
- /package/client-dist/{chunk-TNTQYNFQ.js.map → chunk-F5OKFSMW.js.map} +0 -0
- /package/client-dist/{chunk-KHMRNG5E.js.map → chunk-GLISSBW6.js.map} +0 -0
- /package/client-dist/{chunk-AINXWTEN.js.map → chunk-GOHAZ3UP.js.map} +0 -0
- /package/client-dist/{chunk-744OTLPJ.js.map → chunk-GXVFIYGG.js.map} +0 -0
- /package/client-dist/{chunk-WAVRMTHA.js.map → chunk-GZJSMF4W.js.map} +0 -0
- /package/client-dist/{chunk-DJCLH4DQ.js.map → chunk-GZNAXQSR.js.map} +0 -0
- /package/client-dist/{chunk-CKHGJZOB.js.map → chunk-HIUVSLF2.js.map} +0 -0
- /package/client-dist/{chunk-PKVKXWSS.js.map → chunk-K2BXFMAZ.js.map} +0 -0
- /package/client-dist/{chunk-MYK7GACV.js.map → chunk-KS3E56FC.js.map} +0 -0
- /package/client-dist/{chunk-FXDLW3RE.js.map → chunk-KYXVXZA4.js.map} +0 -0
- /package/client-dist/{chunk-4LELMYV2.js.map → chunk-M6XVA3F3.js.map} +0 -0
- /package/client-dist/{chunk-J7XG5WST.js.map → chunk-MDOELCBX.js.map} +0 -0
- /package/client-dist/{chunk-U4RZ7GFY.js.map → chunk-OAYVBZZD.js.map} +0 -0
- /package/client-dist/{chunk-OV776GY4.js.map → chunk-OAZA6CLB.js.map} +0 -0
- /package/client-dist/{chunk-ZKC5Z3IN.js.map → chunk-OHXBMPQN.js.map} +0 -0
- /package/client-dist/{chunk-WLVM35I4.js.map → chunk-OUBAPK5Q.js.map} +0 -0
- /package/client-dist/{chunk-5YO3LDJM.js.map → chunk-P4E77IA5.js.map} +0 -0
- /package/client-dist/{chunk-IQYJH4J7.js.map → chunk-PIN4VFXO.js.map} +0 -0
- /package/client-dist/{chunk-OLTVSW6P.js.map → chunk-PZ3A7XIC.js.map} +0 -0
- /package/client-dist/{chunk-W6RXT6D7.js.map → chunk-SBTVSUCF.js.map} +0 -0
- /package/client-dist/{chunk-REWBQNDV.js.map → chunk-SLYF4BZT.js.map} +0 -0
- /package/client-dist/{chunk-JLUYCPX3.js.map → chunk-SOA6UZHW.js.map} +0 -0
- /package/client-dist/{chunk-6T3T47WR.js.map → chunk-TKJC6WIX.js.map} +0 -0
- /package/client-dist/{chunk-BKYQ746Q.js.map → chunk-UZWYHQU5.js.map} +0 -0
- /package/client-dist/{chunk-UEQKXLYY.js.map → chunk-VER7DLPS.js.map} +0 -0
- /package/client-dist/{chunk-A4J42SWO.js.map → chunk-WSRT2AXO.js.map} +0 -0
- /package/client-dist/{chunk-PEIQDAXN.js.map → chunk-XC6OGCBT.js.map} +0 -0
- /package/client-dist/{chunk-3CCTA7PZ.js.map → chunk-XS5NRBFX.js.map} +0 -0
- /package/client-dist/{chunk-KIRC3TOF.js.map → chunk-Y4WOX5ZT.js.map} +0 -0
- /package/client-dist/{chunk-ZVAWABJH.js.map → chunk-YFGRQVYN.js.map} +0 -0
- /package/client-dist/{chunk-PGEEVNYW.js.map → chunk-YV7GEWMV.js.map} +0 -0
- /package/client-dist/{chunk-3MRPZKCQ.js.map → chunk-ZO42CPIZ.js.map} +0 -0
- /package/client-dist/{chunk-GTS3HVE3.js.map → chunk-ZRLRJNW4.js.map} +0 -0
- /package/client-dist/{chunk-4LUVD2AP.js.map → chunk-ZTO2WC4L.js.map} +0 -0
- /package/client-dist/{consultant.module-N64GJRK3.js.map → consultant.module-XYGMFIBX.js.map} +0 -0
- /package/client-dist/{crd.module-2TLXBWL3.js.map → crd.module-2TUYARHJ.js.map} +0 -0
- /package/client-dist/{dashboard.module-A5AQ4MXU.js.map → dashboard.module-G47SY7RR.js.map} +0 -0
- /package/client-dist/{do.module-7A4O3RFF.js.map → do.module-WWLJVEM2.js.map} +0 -0
- /package/client-dist/{document-library.module-N5KBWUB6.js.map → document-library.module-EKVYKBGO.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-O6SZBU7X.js.map → embedding-eval.module-ZXMLZHML.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-OA77P44J.js.map → embedding-registry.module-EE5OFQVA.js.map} +0 -0
- /package/client-dist/{err.module-RWJUO7EF.js.map → err.module-AQ7S3MIX.js.map} +0 -0
- /package/client-dist/{feedback.module-GUBGJMFD.js.map → feedback.module-PS2TJILH.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-P3PVLVPH.js.map → host-runtime-mcp.module-XHWB3K2U.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-HUI2EWPA.js.map → live-dev-pipeline.module-HVIUS654.js.map} +0 -0
- /package/client-dist/{logs.module-KCU67S7S.js.map → logs.module-RZOFXUFO.js.map} +0 -0
- /package/client-dist/{main-SB4UO4OC.js.map → main-N4T3LPFJ.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-3UBJZBTK.js.map → master-control-remote-poc.module-Z44FHFP3.js.map} +0 -0
- /package/client-dist/{mobile-app.module-X6U46WW7.js.map → mobile-app.module-7EN7TBHL.js.map} +0 -0
- /package/client-dist/{model-registry.module-3PG3PJ3J.js.map → model-registry.module-3GLXXUHT.js.map} +0 -0
- /package/client-dist/{orc.module-KR5CVMQM.js.map → orc.module-TGXVMQLI.js.map} +0 -0
- /package/client-dist/{project-management.module-IHLVVJ2G.js.map → project-management.module-24CUEUF5.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-GBWQ63AE.js.map → project-source-routed.module-DNGOB2JX.js.map} +0 -0
- /package/client-dist/{scheduler.module-U2LB4R6N.js.map → scheduler.module-I4VI7QU7.js.map} +0 -0
- /package/client-dist/{set.module-BXGLV3NK.js.map → set.module-EBOPU2SQ.js.map} +0 -0
- /package/client-dist/{setup.module-47WXGX3F.js.map → setup.module-LOYXPT7O.js.map} +0 -0
- /package/client-dist/{terminals.module-KPNW6NBJ.js.map → terminals.module-45PXK7MW.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-KUQCUNUK.js.map → voice-notes-poc.module-UIV4RQN3.js.map} +0 -0
- /package/client-dist/{wfs.module-KFTICN4O.js.map → wfs.module-BNMGWII3.js.map} +0 -0
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import{b as ri,c as si,d as Te}from"./chunk-UEFUKRAM.js";import{c as oi}from"./chunk-FKOWRSW7.js";import{a as ai}from"./chunk-6V3AY4GG.js";import{a as ii}from"./chunk-U4RZ7GFY.js";import{a as li}from"./chunk-4LPEUFAW.js";import{f as Yn,i as Kn,n as Xn,o as Qn,p as ei,v as ti}from"./chunk-EO4DNTT4.js";import{a as Yt}from"./chunk-5UPNU54P.js";import{j as ni}from"./chunk-HRA33EDX.js";import{p as ao}from"./chunk-BV6QDXRW.js";import{$a as J,C as ke,Cb as Ct,D as Fe,Fa as f,G as Gn,Ga as E,Ha as qt,Hb as Jn,Ia as Jt,J as I,K as D,Kb as Zn,L as ie,M as Je,T as Ze,Ta as Ue,U as me,Ua as Zt,W as _t,X as xt,Z as d,_ as jn,a as ne,aa as se,ab as Z,b as Ne,da as A,fa as Ae,ga as M,h as so,hb as T,ja as V,jb as qn,k as re,la as k,na as bt,oa as Se,pa as ye,qa as c,ra as p,sa as S,ua as N,ub as He,va as B,wa as _,xa as Wn,y as Vn,ya as Ye}from"./chunk-TBMJSIBB.js";var{entries:_i,setPrototypeOf:ci,isFrozen:lo,getPrototypeOf:co,getOwnPropertyDescriptor:po}=Object,{freeze:X,seal:ae,create:St}=Object,{apply:on,construct:rn}=typeof Reflect<"u"&&Reflect;X||(X=function(n){return n});ae||(ae=function(n){return n});on||(on=function(n,e){for(var o=arguments.length,i=new Array(o>2?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];return n.apply(e,i)});rn||(rn=function(n){for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return new n(...o)});var kt=Q(Array.prototype.forEach),uo=Q(Array.prototype.lastIndexOf),pi=Q(Array.prototype.pop),Ke=Q(Array.prototype.push),mo=Q(Array.prototype.splice),yt=Q(String.prototype.toLowerCase),Kt=Q(String.prototype.toString),Xt=Q(String.prototype.match),Xe=Q(String.prototype.replace),go=Q(String.prototype.indexOf),ho=Q(String.prototype.trim),oe=Q(Object.prototype.hasOwnProperty),K=Q(RegExp.prototype.test),Qe=fo(TypeError);function Q(t){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return on(t,n,o)}}function fo(t){return function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return rn(t,e)}}function v(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yt;ci&&ci(t,null);let o=n.length;for(;o--;){let i=n[o];if(typeof i=="string"){let r=e(i);r!==i&&(lo(n)||(n[o]=r),i=r)}t[i]=!0}return t}function _o(t){for(let n=0;n<t.length;n++)oe(t,n)||(t[n]=null);return t}function ge(t){let n=St(null);for(let[e,o]of _i(t))oe(t,e)&&(Array.isArray(o)?n[e]=_o(o):o&&typeof o=="object"&&o.constructor===Object?n[e]=ge(o):n[e]=o);return n}function et(t,n){for(;t!==null;){let o=po(t,n);if(o){if(o.get)return Q(o.get);if(typeof o.value=="function")return Q(o.value)}t=co(t)}function e(){return null}return e}var di=X(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Qt=X(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),en=X(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xo=X(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),tn=X(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bo=X(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ui=X(["#text"]),mi=X(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),nn=X(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gi=X(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wt=X(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Co=ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ko=ae(/<%[\w\W]*|[\w\W]*%>/gm),wo=ae(/\$\{[\w\W]*/gm),So=ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),yo=ae(/^aria-[\-\w]+$/),xi=ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),To=ae(/^(?:\w+script|data):/i),vo=ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bi=ae(/^html$/i),Eo=ae(/^[a-z][.\w]*(-[.\w]+)+$/i),hi=Object.freeze({__proto__:null,ARIA_ATTR:yo,ATTR_WHITESPACE:vo,CUSTOM_ELEMENT:Eo,DATA_ATTR:So,DOCTYPE_NAME:bi,ERB_EXPR:ko,IS_ALLOWED_URI:xi,IS_SCRIPT_OR_DATA:To,MUSTACHE_EXPR:Co,TMPLIT_EXPR:wo}),tt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ao=function(){return typeof window>"u"?null:window},Mo=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let o=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(o=e.getAttribute(i));let r="dompurify"+(o?"#"+o:"");try{return n.createPolicy(r,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},fi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ci(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ao(),n=b=>Ci(b);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==tt.document||!t.Element)return n.isSupported=!1,n;let{document:e}=t,o=e,i=o.currentScript,{DocumentFragment:r,HTMLTemplateElement:s,Node:u,Element:l,NodeFilter:h,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:y,trustedTypes:L}=t,$=l.prototype,le=et($,"cloneNode"),st=et($,"remove"),at=et($,"nextSibling"),lt=et($,"childNodes"),$e=et($,"parentNode");if(typeof s=="function"){let b=e.createElement("template");b.content&&b.content.ownerDocument&&(e=b.content.ownerDocument)}let G,fe="",{implementation:_e,createNodeIterator:Gi,createDocumentFragment:ji,getElementsByTagName:Wi}=e,{importNode:qi}=o,Y=fi();n.isSupported=typeof _i=="function"&&typeof $e=="function"&&_e&&_e.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Lt,ERB_EXPR:Ot,TMPLIT_EXPR:It,DATA_ATTR:Ji,ARIA_ATTR:Zi,IS_SCRIPT_OR_DATA:Yi,ATTR_WHITESPACE:bn,CUSTOM_ELEMENT:Ki}=hi,{IS_ALLOWED_URI:Cn}=hi,H=null,kn=v({},[...di,...Qt,...en,...tn,...ui]),j=null,wn=v({},[...mi,...nn,...gi,...wt]),z=Object.seal(St(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,ct=null,we=Object.seal(St(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Sn=!0,Dt=!0,yn=!1,Tn=!0,Le=!1,pt=!0,ve=!1,Bt=!1,zt=!1,Oe=!1,dt=!1,ut=!1,vn=!0,En=!1,Xi="user-content-",Nt=!0,We=!1,Ie={},de=null,Ft=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),An=null,Mn=v({},["audio","video","img","source","image","track"]),Ut=null,Rn=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mt="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",xe="http://www.w3.org/1999/xhtml",De=xe,Ht=!1,Vt=null,Qi=v({},[mt,gt,xe],Kt),ht=v({},["mi","mo","mn","ms","mtext"]),ft=v({},["annotation-xml"]),eo=v({},["title","style","font","a","script"]),qe=null,to=["application/xhtml+xml","text/html"],no="text/html",U=null,Be=null,io=e.createElement("form"),Pn=function(a){return a instanceof RegExp||a instanceof Function},Gt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Be&&Be===a)){if((!a||typeof a!="object")&&(a={}),a=ge(a),qe=to.indexOf(a.PARSER_MEDIA_TYPE)===-1?no:a.PARSER_MEDIA_TYPE,U=qe==="application/xhtml+xml"?Kt:yt,H=oe(a,"ALLOWED_TAGS")?v({},a.ALLOWED_TAGS,U):kn,j=oe(a,"ALLOWED_ATTR")?v({},a.ALLOWED_ATTR,U):wn,Vt=oe(a,"ALLOWED_NAMESPACES")?v({},a.ALLOWED_NAMESPACES,Kt):Qi,Ut=oe(a,"ADD_URI_SAFE_ATTR")?v(ge(Rn),a.ADD_URI_SAFE_ATTR,U):Rn,An=oe(a,"ADD_DATA_URI_TAGS")?v(ge(Mn),a.ADD_DATA_URI_TAGS,U):Mn,de=oe(a,"FORBID_CONTENTS")?v({},a.FORBID_CONTENTS,U):Ft,je=oe(a,"FORBID_TAGS")?v({},a.FORBID_TAGS,U):ge({}),ct=oe(a,"FORBID_ATTR")?v({},a.FORBID_ATTR,U):ge({}),Ie=oe(a,"USE_PROFILES")?a.USE_PROFILES:!1,Sn=a.ALLOW_ARIA_ATTR!==!1,Dt=a.ALLOW_DATA_ATTR!==!1,yn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Tn=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=a.SAFE_FOR_TEMPLATES||!1,pt=a.SAFE_FOR_XML!==!1,ve=a.WHOLE_DOCUMENT||!1,Oe=a.RETURN_DOM||!1,dt=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,zt=a.FORCE_BODY||!1,vn=a.SANITIZE_DOM!==!1,En=a.SANITIZE_NAMED_PROPS||!1,Nt=a.KEEP_CONTENT!==!1,We=a.IN_PLACE||!1,Cn=a.ALLOWED_URI_REGEXP||xi,De=a.NAMESPACE||xe,ht=a.MATHML_TEXT_INTEGRATION_POINTS||ht,ft=a.HTML_INTEGRATION_POINTS||ft,z=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&Pn(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&Pn(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Dt=!1),dt&&(Oe=!0),Ie&&(H=v({},ui),j=St(null),Ie.html===!0&&(v(H,di),v(j,mi)),Ie.svg===!0&&(v(H,Qt),v(j,nn),v(j,wt)),Ie.svgFilters===!0&&(v(H,en),v(j,nn),v(j,wt)),Ie.mathMl===!0&&(v(H,tn),v(j,gi),v(j,wt))),oe(a,"ADD_TAGS")||(we.tagCheck=null),oe(a,"ADD_ATTR")||(we.attributeCheck=null),a.ADD_TAGS&&(typeof a.ADD_TAGS=="function"?we.tagCheck=a.ADD_TAGS:(H===kn&&(H=ge(H)),v(H,a.ADD_TAGS,U))),a.ADD_ATTR&&(typeof a.ADD_ATTR=="function"?we.attributeCheck=a.ADD_ATTR:(j===wn&&(j=ge(j)),v(j,a.ADD_ATTR,U))),a.ADD_URI_SAFE_ATTR&&v(Ut,a.ADD_URI_SAFE_ATTR,U),a.FORBID_CONTENTS&&(de===Ft&&(de=ge(de)),v(de,a.FORBID_CONTENTS,U)),a.ADD_FORBID_CONTENTS&&(de===Ft&&(de=ge(de)),v(de,a.ADD_FORBID_CONTENTS,U)),Nt&&(H["#text"]=!0),ve&&v(H,["html","head","body"]),H.table&&(v(H,["tbody"]),delete je.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=a.TRUSTED_TYPES_POLICY,fe=G.createHTML("")}else G===void 0&&(G=Mo(L,i)),G!==null&&typeof fe=="string"&&(fe=G.createHTML(""));X&&X(a),Be=a}},$n=v({},[...Qt,...en,...xo]),Ln=v({},[...tn,...bo]),oo=function(a){let g=$e(a);(!g||!g.tagName)&&(g={namespaceURI:De,tagName:"template"});let x=yt(a.tagName),O=yt(g.tagName);return Vt[a.namespaceURI]?a.namespaceURI===gt?g.namespaceURI===xe?x==="svg":g.namespaceURI===mt?x==="svg"&&(O==="annotation-xml"||ht[O]):!!$n[x]:a.namespaceURI===mt?g.namespaceURI===xe?x==="math":g.namespaceURI===gt?x==="math"&&ft[O]:!!Ln[x]:a.namespaceURI===xe?g.namespaceURI===gt&&!ft[O]||g.namespaceURI===mt&&!ht[O]?!1:!Ln[x]&&(eo[x]||!$n[x]):!!(qe==="application/xhtml+xml"&&Vt[a.namespaceURI]):!1},ue=function(a){Ke(n.removed,{element:a});try{$e(a).removeChild(a)}catch{st(a)}},Ee=function(a,g){try{Ke(n.removed,{attribute:g.getAttributeNode(a),from:g})}catch{Ke(n.removed,{attribute:null,from:g})}if(g.removeAttribute(a),a==="is")if(Oe||dt)try{ue(g)}catch{}else try{g.setAttribute(a,"")}catch{}},On=function(a){let g=null,x=null;if(zt)a="<remove></remove>"+a;else{let F=Xt(a,/^[\r\n\t ]+/);x=F&&F[0]}qe==="application/xhtml+xml"&&De===xe&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");let O=G?G.createHTML(a):a;if(De===xe)try{g=new y().parseFromString(O,qe)}catch{}if(!g||!g.documentElement){g=_e.createDocument(De,"template",null);try{g.documentElement.innerHTML=Ht?fe:O}catch{}}let q=g.body||g.documentElement;return a&&x&&q.insertBefore(e.createTextNode(x),q.childNodes[0]||null),De===xe?Wi.call(g,ve?"html":"body")[0]:ve?g.documentElement:q},In=function(a){return Gi.call(a.ownerDocument||a,a,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},jt=function(a){return a instanceof C&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof m)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Dn=function(a){return typeof u=="function"&&a instanceof u};function be(b,a,g){kt(b,x=>{x.call(n,a,g,Be)})}let Bn=function(a){let g=null;if(be(Y.beforeSanitizeElements,a,null),jt(a))return ue(a),!0;let x=U(a.nodeName);if(be(Y.uponSanitizeElement,a,{tagName:x,allowedTags:H}),pt&&a.hasChildNodes()&&!Dn(a.firstElementChild)&&K(/<[/\w!]/g,a.innerHTML)&&K(/<[/\w!]/g,a.textContent)||a.nodeType===tt.progressingInstruction||pt&&a.nodeType===tt.comment&&K(/<[/\w]/g,a.data))return ue(a),!0;if(!(we.tagCheck instanceof Function&&we.tagCheck(x))&&(!H[x]||je[x])){if(!je[x]&&Nn(x)&&(z.tagNameCheck instanceof RegExp&&K(z.tagNameCheck,x)||z.tagNameCheck instanceof Function&&z.tagNameCheck(x)))return!1;if(Nt&&!de[x]){let O=$e(a)||a.parentNode,q=lt(a)||a.childNodes;if(q&&O){let F=q.length;for(let te=F-1;te>=0;--te){let Ce=le(q[te],!0);Ce.__removalCount=(a.__removalCount||0)+1,O.insertBefore(Ce,at(a))}}}return ue(a),!0}return a instanceof l&&!oo(a)||(x==="noscript"||x==="noembed"||x==="noframes")&&K(/<\/no(script|embed|frames)/i,a.innerHTML)?(ue(a),!0):(Le&&a.nodeType===tt.text&&(g=a.textContent,kt([Lt,Ot,It],O=>{g=Xe(g,O," ")}),a.textContent!==g&&(Ke(n.removed,{element:a.cloneNode()}),a.textContent=g)),be(Y.afterSanitizeElements,a,null),!1)},zn=function(a,g,x){if(ct[g]||vn&&(g==="id"||g==="name")&&(x in e||x in io))return!1;if(!(Dt&&!ct[g]&&K(Ji,g))){if(!(Sn&&K(Zi,g))){if(!(we.attributeCheck instanceof Function&&we.attributeCheck(g,a))){if(!j[g]||ct[g]){if(!(Nn(a)&&(z.tagNameCheck instanceof RegExp&&K(z.tagNameCheck,a)||z.tagNameCheck instanceof Function&&z.tagNameCheck(a))&&(z.attributeNameCheck instanceof RegExp&&K(z.attributeNameCheck,g)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(g,a))||g==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&K(z.tagNameCheck,x)||z.tagNameCheck instanceof Function&&z.tagNameCheck(x))))return!1}else if(!Ut[g]){if(!K(Cn,Xe(x,bn,""))){if(!((g==="src"||g==="xlink:href"||g==="href")&&a!=="script"&&go(x,"data:")===0&&An[a])){if(!(yn&&!K(Yi,Xe(x,bn,"")))){if(x)return!1}}}}}}}return!0},Nn=function(a){return a!=="annotation-xml"&&Xt(a,Ki)},Fn=function(a){be(Y.beforeSanitizeAttributes,a,null);let{attributes:g}=a;if(!g||jt(a))return;let x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},O=g.length;for(;O--;){let q=g[O],{name:F,namespaceURI:te,value:Ce}=q,ze=U(F),Wt=Ce,W=F==="value"?Wt:ho(Wt);if(x.attrName=ze,x.attrValue=W,x.keepAttr=!0,x.forceKeepAttr=void 0,be(Y.uponSanitizeAttribute,a,x),W=x.attrValue,En&&(ze==="id"||ze==="name")&&(Ee(F,a),W=Xi+W),pt&&K(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,W)){Ee(F,a);continue}if(ze==="attributename"&&Xt(W,"href")){Ee(F,a);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){Ee(F,a);continue}if(!Tn&&K(/\/>/i,W)){Ee(F,a);continue}Le&&kt([Lt,Ot,It],Hn=>{W=Xe(W,Hn," ")});let Un=U(a.nodeName);if(!zn(Un,ze,W)){Ee(F,a);continue}if(G&&typeof L=="object"&&typeof L.getAttributeType=="function"&&!te)switch(L.getAttributeType(Un,ze)){case"TrustedHTML":{W=G.createHTML(W);break}case"TrustedScriptURL":{W=G.createScriptURL(W);break}}if(W!==Wt)try{te?a.setAttributeNS(te,F,W):a.setAttribute(F,W),jt(a)?ue(a):pi(n.removed)}catch{Ee(F,a)}}be(Y.afterSanitizeAttributes,a,null)},ro=function b(a){let g=null,x=In(a);for(be(Y.beforeSanitizeShadowDOM,a,null);g=x.nextNode();)be(Y.uponSanitizeShadowNode,g,null),Bn(g),Fn(g),g.content instanceof r&&b(g.content);be(Y.afterSanitizeShadowDOM,a,null)};return n.sanitize=function(b){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=null,x=null,O=null,q=null;if(Ht=!b,Ht&&(b="<!-->"),typeof b!="string"&&!Dn(b))if(typeof b.toString=="function"){if(b=b.toString(),typeof b!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!n.isSupported)return b;if(Bt||Gt(a),n.removed=[],typeof b=="string"&&(We=!1),We){if(b.nodeName){let Ce=U(b.nodeName);if(!H[Ce]||je[Ce])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(b instanceof u)g=On("<!---->"),x=g.ownerDocument.importNode(b,!0),x.nodeType===tt.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?g=x:g.appendChild(x);else{if(!Oe&&!Le&&!ve&&b.indexOf("<")===-1)return G&&ut?G.createHTML(b):b;if(g=On(b),!g)return Oe?null:ut?fe:""}g&&zt&&ue(g.firstChild);let F=In(We?b:g);for(;O=F.nextNode();)Bn(O),Fn(O),O.content instanceof r&&ro(O.content);if(We)return b;if(Oe){if(dt)for(q=ji.call(g.ownerDocument);g.firstChild;)q.appendChild(g.firstChild);else q=g;return(j.shadowroot||j.shadowrootmode)&&(q=qi.call(o,q,!0)),q}let te=ve?g.outerHTML:g.innerHTML;return ve&&H["!doctype"]&&g.ownerDocument&&g.ownerDocument.doctype&&g.ownerDocument.doctype.name&&K(bi,g.ownerDocument.doctype.name)&&(te="<!DOCTYPE "+g.ownerDocument.doctype.name+`>
|
|
2
|
-
`+te),Le&&kt([Lt,Ot,It],Ce=>{te=Xe(te,Ce," ")}),G&&ut?G.createHTML(te):te},n.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gt(b),Bt=!0},n.clearConfig=function(){Be=null,Bt=!1},n.isValidAttribute=function(b,a,g){Be||Gt({});let x=U(b),O=U(a);return zn(x,O,g)},n.addHook=function(b,a){typeof a=="function"&&Ke(Y[b],a)},n.removeHook=function(b,a){if(a!==void 0){let g=uo(Y[b],a);return g===-1?void 0:mo(Y[b],g,1)[0]}return pi(Y[b])},n.removeHooks=function(b){Y[b]=[]},n.removeAllHooks=function(){Y=fi()},n}var ki=Ci();function cn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pe=cn();function Ai(t){Pe=t}var Me={exec:()=>null};function R(t,n=""){let e=typeof t=="string"?t:t.source,o={replace:(i,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(ee.caret,"$1"),e=e.replace(i,s),o},getRegex:()=>new RegExp(e,n)};return o}var Ro=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ee={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Po=/^(?:[ \t]*(?:\n|$))+/,$o=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Lo=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,rt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Mi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ri=R(Mi).replace(/bull/g,pn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Io=R(Mi).replace(/bull/g,pn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),dn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Do=/^[^\n]+/,un=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Bo=R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",un).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zo=R(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pn).getRegex(),Mt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,No=R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",mn).replace("tag",Mt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pi=R(dn).replace("hr",rt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mt).getRegex(),Fo=R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Pi).getRegex(),gn={blockquote:Fo,code:$o,def:Bo,fences:Lo,heading:Oo,hr:rt,html:No,lheading:Ri,list:zo,newline:Po,paragraph:Pi,table:Me,text:Do},wi=R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",rt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mt).getRegex(),Uo=Ne(ne({},gn),{lheading:Io,table:wi,paragraph:R(dn).replace("hr",rt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mt).getRegex()}),Ho=Ne(ne({},gn),{html:R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:R(dn).replace("hr",rt).replace("heading",` *#{1,6} *[^
|
|
3
|
-
]`).replace("lheading",Ri).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Vo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Go=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,$i=/^( {2,}|\\)\n(?!\s*$)/,jo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ve=/[\p{P}\p{S}]/u,Rt=/[\s\p{P}\p{S}]/u,hn=/[^\s\p{P}\p{S}]/u,Wo=R(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rt).getRegex(),Li=/(?!~)[\p{P}\p{S}]/u,qo=/(?!~)[\s\p{P}\p{S}]/u,Jo=/(?:[^\s\p{P}\p{S}]|~)/u,Zo=R(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ro?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Oi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Yo=R(Oi,"u").replace(/punct/g,Ve).getRegex(),Ko=R(Oi,"u").replace(/punct/g,Li).getRegex(),Ii="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Xo=R(Ii,"gu").replace(/notPunctSpace/g,hn).replace(/punctSpace/g,Rt).replace(/punct/g,Ve).getRegex(),Qo=R(Ii,"gu").replace(/notPunctSpace/g,Jo).replace(/punctSpace/g,qo).replace(/punct/g,Li).getRegex(),er=R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,hn).replace(/punctSpace/g,Rt).replace(/punct/g,Ve).getRegex(),tr=R(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ve).getRegex(),nr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ir=R(nr,"gu").replace(/notPunctSpace/g,hn).replace(/punctSpace/g,Rt).replace(/punct/g,Ve).getRegex(),or=R(/\\(punct)/,"gu").replace(/punct/g,Ve).getRegex(),rr=R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),sr=R(mn).replace("(?:-->|$)","-->").getRegex(),ar=R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,lr=R(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Di=R(/^!?\[(label)\]\[(ref)\]/).replace("label",vt).replace("ref",un).getRegex(),Bi=R(/^!?\[(ref)\](?:\[\])?/).replace("ref",un).getRegex(),cr=R("reflink|nolink(?!\\()","g").replace("reflink",Di).replace("nolink",Bi).getRegex(),Si=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,fn={_backpedal:Me,anyPunctuation:or,autolink:rr,blockSkip:Zo,br:$i,code:Go,del:Me,delLDelim:Me,delRDelim:Me,emStrongLDelim:Yo,emStrongRDelimAst:Xo,emStrongRDelimUnd:er,escape:Vo,link:lr,nolink:Bi,punctuation:Wo,reflink:Di,reflinkSearch:cr,tag:ar,text:jo,url:Me},pr=Ne(ne({},fn),{link:R(/^!?\[(label)\]\((.*?)\)/).replace("label",vt).getRegex(),reflink:R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vt).getRegex()}),sn=Ne(ne({},fn),{emStrongRDelimAst:Qo,emStrongLDelim:Ko,delLDelim:tr,delRDelim:ir,url:R(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Si).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:R(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Si).getRegex()}),dr=Ne(ne({},sn),{br:R($i).replace("{2,}","*").getRegex(),text:R(sn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Tt={normal:gn,gfm:Uo,pedantic:Ho},nt={normal:fn,gfm:sn,breaks:dr,pedantic:pr},ur={"&":"&","<":"<",">":">",'"':""","'":"'"},yi=t=>ur[t];function he(t,n){if(n){if(ee.escapeTest.test(t))return t.replace(ee.escapeReplace,yi)}else if(ee.escapeTestNoEncode.test(t))return t.replace(ee.escapeReplaceNoEncode,yi);return t}function Ti(t){try{t=encodeURI(t).replace(ee.percentDecode,"%")}catch{return null}return t}function vi(t,n){let e=t.replace(ee.findPipe,(r,s,u)=>{let l=!1,h=s;for(;--h>=0&&u[h]==="\\";)l=!l;return l?"|":" |"}),o=e.split(ee.splitPipe),i=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),n)if(o.length>n)o.splice(n);else for(;o.length<n;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(ee.slashPipe,"|");return o}function it(t,n,e){let o=t.length;if(o===0)return"";let i=0;for(;i<o;){let r=t.charAt(o-i-1);if(r===n&&!e)i++;else if(r!==n&&e)i++;else break}return t.slice(0,o-i)}function mr(t,n){if(t.indexOf(n[1])===-1)return-1;let e=0;for(let o=0;o<t.length;o++)if(t[o]==="\\")o++;else if(t[o]===n[0])e++;else if(t[o]===n[1]&&(e--,e<0))return o;return e>0?-2:-1}function gr(t,n=0){let e=n,o="";for(let i of t)if(i===" "){let r=4-e%4;o+=" ".repeat(r),e+=r}else o+=i,e++;return o}function Ei(t,n,e,o,i){let r=n.href,s=n.title||null,u=t[1].replace(i.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:e,href:r,title:s,text:u,tokens:o.inlineTokens(u)};return o.state.inLink=!1,l}function hr(t,n,e){let o=t.match(e.other.indentCodeCompensation);if(o===null)return n;let i=o[1];return n.split(`
|
|
4
|
-
`).map(r=>{let s=r.match(e.other.beginningSpace);if(s===null)return r;let[u]=s;return u.length>=i.length?r.slice(i.length):r}).join(`
|
|
5
|
-
`)}var Et=class{options;rules;lexer;constructor(t){this.options=t||Pe}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:it(e,`
|
|
6
|
-
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],o=hr(e,n[3]||"",this.rules);return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(this.rules.other.endingHash.test(e)){let o=it(e,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(e=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:it(n[0],`
|
|
7
|
-
`)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=it(n[0],`
|
|
8
|
-
`).split(`
|
|
9
|
-
`),o="",i="",r=[];for(;e.length>0;){let s=!1,u=[],l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))u.push(e[l]),s=!0;else if(!s)u.push(e[l]);else break;e=e.slice(l);let h=u.join(`
|
|
10
|
-
`),m=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
11
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
|
|
12
|
-
${h}`:h,i=i?`${i}
|
|
13
|
-
${m}`:m;let C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,r,!0),this.lexer.state.top=C,e.length===0)break;let y=r.at(-1);if(y?.type==="code")break;if(y?.type==="blockquote"){let L=y,$=L.raw+`
|
|
14
|
-
`+e.join(`
|
|
15
|
-
`),le=this.blockquote($);r[r.length-1]=le,o=o.substring(0,o.length-L.raw.length)+le.raw,i=i.substring(0,i.length-L.text.length)+le.text;break}else if(y?.type==="list"){let L=y,$=L.raw+`
|
|
16
|
-
`+e.join(`
|
|
17
|
-
`),le=this.list($);r[r.length-1]=le,o=o.substring(0,o.length-y.raw.length)+le.raw,i=i.substring(0,i.length-L.raw.length)+le.raw,e=$.substring(r.at(-1).raw.length).split(`
|
|
18
|
-
`);continue}}return{type:"blockquote",raw:o,tokens:r,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e=n[1].trim(),o=e.length>1,i={type:"list",raw:"",ordered:o,start:o?+e.slice(0,-1):"",loose:!1,items:[]};e=o?`\\d{1,9}\\${e.slice(-1)}`:`\\${e}`,this.options.pedantic&&(e=o?e:"[*+-]");let r=this.rules.other.listItemRegex(e),s=!1;for(;t;){let l=!1,h="",m="";if(!(n=r.exec(t))||this.rules.block.hr.test(t))break;h=n[0],t=t.substring(h.length);let C=gr(n[2].split(`
|
|
19
|
-
`,1)[0],n[1].length),y=t.split(`
|
|
20
|
-
`,1)[0],L=!C.trim(),$=0;if(this.options.pedantic?($=2,m=C.trimStart()):L?$=n[1].length+1:($=C.search(this.rules.other.nonSpaceChar),$=$>4?1:$,m=C.slice($),$+=n[1].length),L&&this.rules.other.blankLine.test(y)&&(h+=y+`
|
|
21
|
-
`,t=t.substring(y.length+1),l=!0),!l){let le=this.rules.other.nextBulletRegex($),st=this.rules.other.hrRegex($),at=this.rules.other.fencesBeginRegex($),lt=this.rules.other.headingBeginRegex($),$e=this.rules.other.htmlBeginRegex($),G=this.rules.other.blockquoteBeginRegex($);for(;t;){let fe=t.split(`
|
|
22
|
-
`,1)[0],_e;if(y=fe,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),_e=y):_e=y.replace(this.rules.other.tabCharGlobal," "),at.test(y)||lt.test(y)||$e.test(y)||G.test(y)||le.test(y)||st.test(y))break;if(_e.search(this.rules.other.nonSpaceChar)>=$||!y.trim())m+=`
|
|
23
|
-
`+_e.slice($);else{if(L||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||at.test(C)||lt.test(C)||st.test(C))break;m+=`
|
|
24
|
-
`+y}L=!y.trim(),h+=fe+`
|
|
25
|
-
`,t=t.substring(fe.length+1),C=_e.slice($)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0)),i.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),i.raw+=h}let u=i.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let l of i.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(l.raw);if(h){let m={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};l.checked=m.checked,i.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=m.raw+l.tokens[0].raw,l.tokens[0].text=m.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(m)):l.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):l.tokens.unshift(m)}}if(!i.loose){let h=l.tokens.filter(C=>C.type==="space"),m=h.length>0&&h.some(C=>this.rules.other.anyLine.test(C.raw));i.loose=m}}if(i.loose)for(let l of i.items){l.loose=!0;for(let h of l.tokens)h.type==="text"&&(h.type="paragraph")}return i}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let e=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:e,raw:n[0],href:o,title:i}}}table(t){let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let e=vi(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
26
|
-
`):[],r={type:"table",raw:n[0],header:[],align:[],rows:[]};if(e.length===o.length){for(let s of o)this.rules.other.tableAlignRight.test(s)?r.align.push("right"):this.rules.other.tableAlignCenter.test(s)?r.align.push("center"):this.rules.other.tableAlignLeft.test(s)?r.align.push("left"):r.align.push(null);for(let s=0;s<e.length;s++)r.header.push({text:e[s],tokens:this.lexer.inline(e[s]),header:!0,align:r.align[s]});for(let s of i)r.rows.push(vi(s,r.header.length).map((u,l)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:r.align[l]})));return r}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n){let e=n[1].trim();return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let e=n[1].charAt(n[1].length-1)===`
|
|
27
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:e,tokens:this.lexer.inline(e)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let e=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let r=it(e.slice(0,-1),"\\");if((e.length-r.length)%2===0)return}else{let r=mr(n[2],"()");if(r===-2)return;if(r>-1){let s=(n[0].indexOf("!")===0?5:4)+n[1].length+r;n[2]=n[2].substring(0,r),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(o);r&&(o=r[1],i=r[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?o=o.slice(1):o=o.slice(1,-1)),Ei(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let e;if((e=this.rules.inline.reflink.exec(t))||(e=this.rules.inline.nolink.exec(t))){let o=(e[2]||e[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){let r=e[0].charAt(0);return{type:"text",raw:r,text:r}}return Ei(e,i,e[0],this.lexer,this.rules)}}emStrong(t,n,e=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||!o[1]&&!o[2]&&!o[3]&&!o[4]||o[4]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[3])||!e||this.rules.inline.punctuation.exec(e))){let i=[...o[0]].length-1,r,s,u=i,l=0,h=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+i);(o=h.exec(n))!==null;){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(s=[...r].length,o[3]||o[4]){u+=s;continue}else if((o[5]||o[6])&&i%3&&!((i+s)%3)){l+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+l);let m=[...o[0]][0].length,C=t.slice(0,i+o.index+m+s);if(Math.min(i,s)%2){let L=C.slice(1,-1);return{type:"em",raw:C,text:L,tokens:this.lexer.inlineTokens(L)}}let y=C.slice(2,-2);return{type:"strong",raw:C,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(e),i=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return o&&i&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t,n,e=""){let o=this.rules.inline.delLDelim.exec(t);if(o&&(!o[1]||!e||this.rules.inline.punctuation.exec(e))){let i=[...o[0]].length-1,r,s,u=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,n=n.slice(-1*t.length+i);(o=l.exec(n))!==null;){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r||(s=[...r].length,s!==i))continue;if(o[3]||o[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let h=[...o[0]][0].length,m=t.slice(0,i+o.index+h+s),C=m.slice(i,-i);return{type:"del",raw:m,text:C,tokens:this.lexer.inlineTokens(C)}}}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let e,o;return n[2]==="@"?(e=n[1],o="mailto:"+e):(e=n[1],o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let e,o;if(n[2]==="@")e=n[0],o="mailto:"+e;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);e=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let e=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:e}}}},ce=class an{tokens;options;state;inlineQueue;tokenizer;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Pe,this.options.tokenizer=this.options.tokenizer||new Et,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:ee,block:Tt.normal,inline:nt.normal};this.options.pedantic?(e.block=Tt.pedantic,e.inline=nt.pedantic):this.options.gfm&&(e.block=Tt.gfm,this.options.breaks?e.inline=nt.breaks:e.inline=nt.gfm),this.tokenizer.rules=e}static get rules(){return{block:Tt,inline:nt}}static lex(n,e){return new an(e).lex(n)}static lexInline(n,e){return new an(e).inlineTokens(n)}lex(n){n=n.replace(ee.carriageReturn,`
|
|
28
|
-
`),this.blockTokens(n,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let o=this.inlineQueue[e];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,e=[],o=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(n=n.replace(ee.tabCharGlobal," ").replace(ee.spaceLine,""));n;){let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},n,e))?(n=n.substring(i.raw.length),e.push(i),!0):!1))continue;if(i=this.tokenizer.space(n)){n=n.substring(i.raw.length);let s=e.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
|
|
29
|
-
`:e.push(i);continue}if(i=this.tokenizer.code(n)){n=n.substring(i.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
30
|
-
`)?"":`
|
|
31
|
-
`)+i.raw,s.text+=`
|
|
32
|
-
`+i.text,this.inlineQueue.at(-1).src=s.text):e.push(i);continue}if(i=this.tokenizer.fences(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(n)){n=n.substring(i.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
33
|
-
`)?"":`
|
|
34
|
-
`)+i.raw,s.text+=`
|
|
35
|
-
`+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},e.push(i));continue}if(i=this.tokenizer.table(n)){n=n.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(n)){n=n.substring(i.raw.length),e.push(i);continue}let r=n;if(this.options.extensions?.startBlock){let s=1/0,u=n.slice(1),l;this.options.extensions.startBlock.forEach(h=>{l=h.call({lexer:this},u),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(r=n.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(r))){let s=e.at(-1);o&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
36
|
-
`)?"":`
|
|
37
|
-
`)+i.raw,s.text+=`
|
|
38
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(i),o=r.length!==n.length,n=n.substring(i.raw.length);continue}if(i=this.tokenizer.text(n)){n=n.substring(i.raw.length);let s=e.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
39
|
-
`)?"":`
|
|
40
|
-
`)+i.raw,s.text+=`
|
|
41
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(i);continue}if(n){let s="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){this.tokenizer.lexer=this;let o=n,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(o))!==null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(o))!==null;)o=o.slice(0,i.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(o))!==null;)r=i[2]?i[2].length:0,o=o.slice(0,i.index+r)+"["+"a".repeat(i[0].length-r-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=this.options.hooks?.emStrongMask?.call({lexer:this},o)??o;let s=!1,u="";for(;n;){s||(u=""),s=!1;let l;if(this.options.extensions?.inline?.some(m=>(l=m.call({lexer:this},n,e))?(n=n.substring(l.raw.length),e.push(l),!0):!1))continue;if(l=this.tokenizer.escape(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.tag(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.link(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(l.raw.length);let m=e.at(-1);l.type==="text"&&m?.type==="text"?(m.raw+=l.raw,m.text+=l.text):e.push(l);continue}if(l=this.tokenizer.emStrong(n,o,u)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.codespan(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.br(n)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.del(n,o,u)){n=n.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.autolink(n)){n=n.substring(l.raw.length),e.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(n))){n=n.substring(l.raw.length),e.push(l);continue}let h=n;if(this.options.extensions?.startInline){let m=1/0,C=n.slice(1),y;this.options.extensions.startInline.forEach(L=>{y=L.call({lexer:this},C),typeof y=="number"&&y>=0&&(m=Math.min(m,y))}),m<1/0&&m>=0&&(h=n.substring(0,m+1))}if(l=this.tokenizer.inlineText(h)){n=n.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(u=l.raw.slice(-1)),s=!0;let m=e.at(-1);m?.type==="text"?(m.raw+=l.raw,m.text+=l.text):e.push(l);continue}if(n){let m="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return e}},At=class{options;parser;constructor(t){this.options=t||Pe}space(t){return""}code({text:t,lang:n,escaped:e}){let o=(n||"").match(ee.notSpaceStart)?.[0],i=t.replace(ee.endingNewline,"")+`
|
|
42
|
-
`;return o?'<pre><code class="language-'+he(o)+'">'+(e?i:he(i,!0))+`</code></pre>
|
|
43
|
-
`:"<pre><code>"+(e?i:he(i,!0))+`</code></pre>
|
|
44
|
-
`}blockquote({tokens:t}){return`<blockquote>
|
|
45
|
-
${this.parser.parse(t)}</blockquote>
|
|
46
|
-
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
47
|
-
`}hr(t){return`<hr>
|
|
48
|
-
`}list(t){let n=t.ordered,e=t.start,o="";for(let s=0;s<t.items.length;s++){let u=t.items[s];o+=this.listitem(u)}let i=n?"ol":"ul",r=n&&e!==1?' start="'+e+'"':"";return"<"+i+r+`>
|
|
49
|
-
`+o+"</"+i+`>
|
|
50
|
-
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
51
|
-
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
52
|
-
`}table(t){let n="",e="";for(let i=0;i<t.header.length;i++)e+=this.tablecell(t.header[i]);n+=this.tablerow({text:e});let o="";for(let i=0;i<t.rows.length;i++){let r=t.rows[i];e="";for(let s=0;s<r.length;s++)e+=this.tablecell(r[s]);o+=this.tablerow({text:e})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
|
|
53
|
-
<thead>
|
|
54
|
-
`+n+`</thead>
|
|
55
|
-
`+o+`</table>
|
|
56
|
-
`}tablerow({text:t}){return`<tr>
|
|
57
|
-
${t}</tr>
|
|
58
|
-
`}tablecell(t){let n=this.parser.parseInline(t.tokens),e=t.header?"th":"td";return(t.align?`<${e} align="${t.align}">`:`<${e}>`)+n+`</${e}>
|
|
59
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${he(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:e}){let o=this.parser.parseInline(e),i=Ti(t);if(i===null)return o;t=i;let r='<a href="'+t+'"';return n&&(r+=' title="'+he(n)+'"'),r+=">"+o+"</a>",r}image({href:t,title:n,text:e,tokens:o}){o&&(e=this.parser.parseInline(o,this.parser.textRenderer));let i=Ti(t);if(i===null)return he(e);t=i;let r=`<img src="${t}" alt="${he(e)}"`;return n&&(r+=` title="${he(n)}"`),r+=">",r}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:he(t.text)}},_n=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},pe=class ln{options;renderer;textRenderer;constructor(n){this.options=n||Pe,this.options.renderer=this.options.renderer||new At,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _n}static parse(n,e){return new ln(e).parse(n)}static parseInline(n,e){return new ln(e).parseInline(n)}parse(n){this.renderer.parser=this;let e="";for(let o=0;o<n.length;o++){let i=n[o];if(this.options.extensions?.renderers?.[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){e+=u||"";continue}}let r=i;switch(r.type){case"space":{e+=this.renderer.space(r);break}case"hr":{e+=this.renderer.hr(r);break}case"heading":{e+=this.renderer.heading(r);break}case"code":{e+=this.renderer.code(r);break}case"table":{e+=this.renderer.table(r);break}case"blockquote":{e+=this.renderer.blockquote(r);break}case"list":{e+=this.renderer.list(r);break}case"checkbox":{e+=this.renderer.checkbox(r);break}case"html":{e+=this.renderer.html(r);break}case"def":{e+=this.renderer.def(r);break}case"paragraph":{e+=this.renderer.paragraph(r);break}case"text":{e+=this.renderer.text(r);break}default:{let s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return e}parseInline(n,e=this.renderer){this.renderer.parser=this;let o="";for(let i=0;i<n.length;i++){let r=n[i];if(this.options.extensions?.renderers?.[r.type]){let u=this.options.extensions.renderers[r.type].call({parser:this},r);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){o+=u||"";continue}}let s=r;switch(s.type){case"escape":{o+=e.text(s);break}case"html":{o+=e.html(s);break}case"link":{o+=e.link(s);break}case"image":{o+=e.image(s);break}case"checkbox":{o+=e.checkbox(s);break}case"strong":{o+=e.strong(s);break}case"em":{o+=e.em(s);break}case"codespan":{o+=e.codespan(s);break}case"br":{o+=e.br(s);break}case"del":{o+=e.del(s);break}case"text":{o+=e.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return o}},ot=class{options;block;constructor(t){this.options=t||Pe}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?ce.lex:ce.lexInline}provideParser(t=this.block){return t?pe.parse:pe.parseInline}},fr=class{defaults=cn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=pe;Renderer=At;TextRenderer=_n;Lexer=ce;Tokenizer=Et;Hooks=ot;constructor(...t){this.use(...t)}walkTokens(t,n){let e=[];for(let o of t)switch(e=e.concat(n.call(this,o)),o.type){case"table":{let i=o;for(let r of i.header)e=e.concat(this.walkTokens(r.tokens,n));for(let r of i.rows)for(let s of r)e=e.concat(this.walkTokens(s.tokens,n));break}case"list":{let i=o;e=e.concat(this.walkTokens(i.items,n));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(r=>{let s=i[r].flat(1/0);e=e.concat(this.walkTokens(s,n))}):i.tokens&&(e=e.concat(this.walkTokens(i.tokens,n)))}}return e}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let o=ne({},e);if(o.async=this.defaults.async||o.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let r=n.renderers[i.name];r?n.renderers[i.name]=function(...s){let u=i.renderer.apply(this,s);return u===!1&&(u=r.apply(this,s)),u}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=n[i.level];r?r.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),e.renderer){let i=this.defaults.renderer||new At(this.defaults);for(let r in e.renderer){if(!(r in i))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let s=r,u=e.renderer[s],l=i[s];i[s]=(...h)=>{let m=u.apply(i,h);return m===!1&&(m=l.apply(i,h)),m||""}}o.renderer=i}if(e.tokenizer){let i=this.defaults.tokenizer||new Et(this.defaults);for(let r in e.tokenizer){if(!(r in i))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let s=r,u=e.tokenizer[s],l=i[s];i[s]=(...h)=>{let m=u.apply(i,h);return m===!1&&(m=l.apply(i,h)),m}}o.tokenizer=i}if(e.hooks){let i=this.defaults.hooks||new ot;for(let r in e.hooks){if(!(r in i))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let s=r,u=e.hooks[s],l=i[s];ot.passThroughHooks.has(r)?i[s]=h=>{if(this.defaults.async&&ot.passThroughHooksRespectAsync.has(r))return re(this,null,function*(){let C=yield u.call(i,h);return l.call(i,C)});let m=u.call(i,h);return l.call(i,m)}:i[s]=(...h)=>{if(this.defaults.async)return re(this,null,function*(){let C=yield u.apply(i,h);return C===!1&&(C=yield l.apply(i,h)),C});let m=u.apply(i,h);return m===!1&&(m=l.apply(i,h)),m}}o.hooks=i}if(e.walkTokens){let i=this.defaults.walkTokens,r=e.walkTokens;o.walkTokens=function(s){let u=[];return u.push(r.call(this,s)),i&&(u=u.concat(i.call(this,s))),u}}this.defaults=ne(ne({},this.defaults),o)}),this}setOptions(t){return this.defaults=ne(ne({},this.defaults),t),this}lexer(t,n){return ce.lex(t,n??this.defaults)}parser(t,n){return pe.parse(t,n??this.defaults)}parseMarkdown(t){return(n,e)=>{let o=ne({},e),i=ne(ne({},this.defaults),o),r=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return re(this,null,function*(){let s=i.hooks?yield i.hooks.preprocess(n):n,u=yield(i.hooks?yield i.hooks.provideLexer(t):t?ce.lex:ce.lexInline)(s,i),l=i.hooks?yield i.hooks.processAllTokens(u):u;i.walkTokens&&(yield Promise.all(this.walkTokens(l,i.walkTokens)));let h=yield(i.hooks?yield i.hooks.provideParser(t):t?pe.parse:pe.parseInline)(l,i);return i.hooks?yield i.hooks.postprocess(h):h}).catch(r);try{i.hooks&&(n=i.hooks.preprocess(n));let s=(i.hooks?i.hooks.provideLexer(t):t?ce.lex:ce.lexInline)(n,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let u=(i.hooks?i.hooks.provideParser(t):t?pe.parse:pe.parseInline)(s,i);return i.hooks&&(u=i.hooks.postprocess(u)),u}catch(s){return r(s)}}}onError(t,n){return e=>{if(e.message+=`
|
|
60
|
-
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+he(e.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(e);throw e}}},Re=new fr;function P(t,n){return Re.parse(t,n)}P.options=P.setOptions=function(t){return Re.setOptions(t),P.defaults=Re.defaults,Ai(P.defaults),P};P.getDefaults=cn;P.defaults=Pe;P.use=function(...t){return Re.use(...t),P.defaults=Re.defaults,Ai(P.defaults),P};P.walkTokens=function(t,n){return Re.walkTokens(t,n)};P.parseInline=Re.parseInline;P.Parser=pe;P.parser=pe.parse;P.Renderer=At;P.TextRenderer=_n;P.Lexer=ce;P.lexer=ce.lex;P.Tokenizer=Et;P.Hooks=ot;P.parse=P;var Vs=P.options,Gs=P.setOptions,js=P.use,Ws=P.walkTokens,qs=P.parseInline;var Js=pe.parse,Zs=ce.lex;var zi=(()=>{class t{static isMarkedOptionsApplied=!1;static toSanitizedHtml(e){if(t.applyMarkedOptionsOnce(),!(typeof e=="string"?e.trim():"").length)return"";let i=t.normalizeListSeparation(e),r=P.parse(i,{async:!1});return typeof r!="string"?"":ki.sanitize(r,{ADD_ATTR:["target"]})}static normalizeListSeparation(e){let o=e.split(`
|
|
61
|
-
`),i=[],r=/^[ ]{0,3}(\d+[.)]|[*\-+])\s+\S/;for(let s=0;s<o.length;s++){let u=o[s];if(s>0&&r.test(u)){let l=o[s-1];l.trim().length>0&&!r.test(l)&&i.push("")}i.push(u)}return i.join(`
|
|
62
|
-
`)}static applyMarkedOptionsOnce(){t.isMarkedOptionsApplied||(P.setOptions({gfm:!0,breaks:!1}),t.isMarkedOptionsApplied=!0)}}return t})();var w=function(t){return t.userPrompt="user-prompt",t.assistant="assistant",t.tool="tool",t.toolResult="tool-result",t.status="status",t.error="error",t.info="info",t.toolGroup="tool-group",t.subAgentGroup="sub-agent-group",t.thinking="thinking",t.runIntent="run-intent",t.iteration="iteration",t.statusUpdate="status-update",t.raw="raw",t.result="result",t}(w||{});var Ge=class t{static hasBubbleRawSources(n){let e=t.recordHasKeys(n.rawData),o=t.recordHasKeys(n.pairedResult?.rawData);return e||o}static ccItemHasAnyRaw(n){let e=t.recordHasKeys(n.rawData),o=t.recordHasKeys(n.pairedResult?.rawData);return e||o}static buildForBubbleView(n){return t.buildBundle({primary:n.rawData,paired:n.pairedResult?.rawData})}static buildForCcConsoleItem(n){return t.buildBundle({primary:n.rawData,paired:n.pairedResult?.rawData})}static recordHasKeys(n){return n!==void 0&&Object.keys(n).length>0}static buildBundle(n){let e=n.primary,o=n.paired,i=t.streamPartsFromRaw(e),r=i.length>1,s={};t.recordHasKeys(e)&&(s.primaryMessageOrToolCall=e),t.recordHasKeys(o)&&(s.pairedToolResult=o);let u="{}",l=Object.keys(s);l.length===1&&s.primaryMessageOrToolCall!==void 0?u=JSON.stringify(s.primaryMessageOrToolCall,null,2):l.length>0&&(u=JSON.stringify(s,null,2));let h=r&&t.recordHasKeys(e)?t.primaryWithoutChunkSnapshots(e):e;return{copyJsonString:u,primaryJson:t.stringifyRecord(h),pairedJson:t.stringifyRecord(o),streamParts:i,showStreamBreakdown:r}}static primaryWithoutChunkSnapshots(n){let e={};for(let o of Object.keys(n))o!=="chunkSnapshots"&&(e[o]=n[o]);return e}static stringifyRecord(n){return t.recordHasKeys(n)?JSON.stringify(n,null,2):null}static streamPartsFromRaw(n){if(!n||n.streamMerged!==!0)return[];let e=n.chunkSnapshots;if(!Array.isArray(e))return[];let o=[];for(let i=0;i<e.length;i+=1){let r=e[i],s;try{s=JSON.stringify(r,null,2)}catch{s=String(r)}o.push({trackKey:`stream-chunk-${String(i)}`,index:i,json:s})}return o}};var Ni="ccap-autoReadAssistantTts",Pt=class t{static saveEnabledSince(n,e){Yt.writeString(`${Ni}:${n}`,e)}static loadEnabledSince(n){return Yt.readString(`${Ni}:${n}`)??""}static isEnabled(n){return t.loadEnabledSince(n).length>0}static toggle(n){return t.isEnabled(n)?(t.saveEnabledSince(n,""),!1):(t.saveEnabledSince(n,new Date().toISOString()),!0)}static shouldAutoPlay(n,e){let o=t.loadEnabledSince(n);return!o||!e?!1:e>=o}};var Fi=(()=>{class t{sanitizer;constructor(e){this.sanitizer=e}transform(e){if(!e)return this.sanitizer.bypassSecurityTrustHtml("");let o,i;try{let m=JSON.parse(e);if(typeof m.old=="string"&&typeof m.new=="string")o=m.old,i=m.new;else return this.sanitizer.bypassSecurityTrustHtml(this.escapeHtml(e))}catch{return this.sanitizer.bypassSecurityTrustHtml(this.escapeHtml(e))}let r=o.split(`
|
|
63
|
-
`),s=i.split(`
|
|
64
|
-
`),u=this.computeLineDiff(r,s),h=this.enrichWithCharDiff(u).map(m=>this.renderDiffLine(m)).join(`
|
|
65
|
-
`);return this.sanitizer.bypassSecurityTrustHtml(h)}computeLineDiff(e,o){let i=e.length,r=o.length,s=[];for(let m=0;m<=i;m++)s[m]=new Array(r+1).fill(0);for(let m=1;m<=i;m++)for(let C=1;C<=r;C++)e[m-1]===o[C-1]?s[m][C]=s[m-1][C-1]+1:s[m][C]=s[m-1][C]>s[m][C-1]?s[m-1][C]:s[m][C-1];let u=[],l=i,h=r;for(;l>0||h>0;)l>0&&h>0&&e[l-1]===o[h-1]?(u.unshift({type:"unchanged",text:e[l-1]}),l--,h--):h>0&&(l===0||s[l][h-1]>=s[l-1][h])?(u.unshift({type:"added",text:o[h-1]}),h--):(u.unshift({type:"removed",text:e[l-1]}),l--);return u}enrichWithCharDiff(e){let o=[],i=0;for(;i<e.length;){if(e[i].type!=="removed"){o.push(e[i]),i++;continue}let r=[];for(;i<e.length&&e[i].type==="removed";)r.push(e[i]),i++;let s=[];for(;i<e.length&&e[i].type==="added";)s.push(e[i]),i++;let u=Math.min(r.length,s.length);for(let l=0;l<u;l++){let h=this.computeCharDiff(r[l].text,s[l].text);r[l].segments=h.oldSegs,s[l].segments=h.newSegs}o.push(...r,...s)}return o}computeCharDiff(e,o){let i=Math.min(e.length,o.length),r=0;for(;r<i&&e[r]===o[r];)r++;let s=0;for(;s<i-r&&e[e.length-1-s]===o[o.length-1-s];)s++;let u=e.substring(0,r),l=s>0?e.substring(e.length-s):"",h=e.substring(r,e.length-s),m=o.substring(r,o.length-s),C=[],y=[];return u&&(C.push({text:u,isChanged:!1}),y.push({text:u,isChanged:!1})),h&&C.push({text:h,isChanged:!0}),m&&y.push({text:m,isChanged:!0}),l&&(C.push({text:l,isChanged:!1}),y.push({text:l,isChanged:!1})),{oldSegs:C,newSegs:y}}renderDiffLine(e){return e.type==="unchanged"?`<span class="text-neutral-500"> ${this.escapeHtml(e.text)}</span>`:e.type==="removed"?`<span class="text-red-400/70">\u2212 ${e.segments?e.segments.map(r=>r.isChanged?`<span class="bg-red-500/25 text-red-300 rounded-sm">${this.escapeHtml(r.text)}</span>`:this.escapeHtml(r.text)).join(""):this.escapeHtml(e.text)}</span>`:`<span class="text-green-400/80">+ ${e.segments?e.segments.map(i=>i.isChanged?`<span class="bg-green-500/25 text-green-300 rounded-sm">${this.escapeHtml(i.text)}</span>`:this.escapeHtml(i.text)).join(""):this.escapeHtml(e.text)}</span>`}escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}static \u0275fac=function(o){return new(o||t)(jn(Ct,16))};static \u0275pipe=Gn({name:"sEditDiff",type:t,pure:!0,standalone:!0})}return t})();var Ui=(t,n)=>n.listKey,_r=(t,n)=>n.trackKey,Hi=()=>[];function xr(t,n){t&1&&S(0,"span",9)}function br(t,n){t&1&&(c(0,"span",16),f(1,"+ error"),p())}function Cr(t,n){t&1&&(c(0,"span",17),f(1,"+ result"),p())}function kr(t,n){if(t&1&&A(0,br,2,0,"span",16)(1,Cr,2,0,"span",17),t&2){let e,o=_(2);k(((e=o.view().pairedResult)==null?null:e.isError)===!0?0:1)}}function wr(t,n){if(t&1){let e=N();c(0,"button",18),B("click",function(i){I(e);let r=_(2);return i.stopPropagation(),D(r.handleToggleRawInfo())}),ie(),c(1,"svg",19),S(2,"circle",20)(3,"path",21)(4,"path",22),p()()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),d(),Ae("class",e.bubbleActionIconClass)}}function Sr(t,n){if(t&1&&S(0,"app-s-copy-button",15),t&2){let e=_(2);M("content",e.copyContent_$())}}function yr(t,n){if(t&1&&(c(0,"div",23)(1,"div",25),f(2,"Input"),p(),c(3,"pre",26),f(4),p()()),t&2){let e=_(3);d(4),E(e.toolInputFormatted_$())}}function Tr(t,n){t&1&&(c(0,"div",24)(1,"div",25),f(2,"Result"),p(),S(3,"div",27),p()),t&2&&(d(3),M("innerHTML",n,_t))}function vr(t,n){if(t&1&&(c(0,"div",24)(1,"div",25),f(2,"Result"),p(),S(3,"div",28),J(4,"sEditDiff"),c(5,"div",29),S(6,"app-s-copy-button",30),p()()),t&2){let e,o,i=_(3);d(3),M("innerHTML",Z(4,2,(e=i.view().expandableContent)!==null&&e!==void 0?e:""),_t),d(3),M("content",(o=i.view().expandableContent)!==null&&o!==void 0?o:"")}}function Er(t,n){if(t&1&&(c(0,"div",24)(1,"div",25),f(2,"Result"),p(),c(3,"pre",31),f(4),p(),c(5,"div",29),S(6,"app-s-copy-button",30),p()()),t&2){let e,o=_(3);d(4),E(o.formattedExpandable_$()),d(2),M("content",(e=o.view().expandableContent)!==null&&e!==void 0?e:"")}}function Ar(t,n){if(t&1&&(c(0,"div",32)(1,"div",25),f(2,"Error"),p(),c(3,"pre",33),f(4),p()()),t&2){let e=_();d(4),E(e.expandableContent||e.text)}}function Mr(t,n){if(t&1&&(c(0,"div",24)(1,"div",25),f(2,"Result"),p(),c(3,"pre",31),f(4),p()()),t&2){let e=_();d(4),E(e.expandableContent||e.text)}}function Rr(t,n){t&1&&A(0,Ar,5,1,"div",32)(1,Mr,5,1,"div",24),t&2&&k(n.isError===!0?0:1)}function Pr(t,n){if(t&1&&A(0,Rr,2,1),t&2){let e,o=_(3);k((e=o.view().pairedResult)?0:-1,e)}}function $r(t,n){if(t&1&&A(0,yr,5,1,"div",23)(1,Tr,4,1,"div",24)(2,vr,7,4,"div",24)(3,Er,7,2,"div",24)(4,Pr,1,1),t&2){let e,o=_(2);k(o.toolInputFormatted_$()?0:-1),d(),k((e=o.safeExpandableHtml_$())?1:o.view().expandableContent&&o.useEditDiffForExpandable_$()?2:o.view().expandableContent?3:o.view().pairedResult?4:-1,e)}}function Lr(t,n){if(t&1){let e=N();c(0,"div",7)(1,"div",8),B("click",function(){I(e);let i=_();return D(i.handleToggleExpand())}),A(2,xr,1,0,"span",9),c(3,"span",10),f(4),p(),c(5,"span",11),J(6,"sAbsoluteTime"),f(7),J(8,"sTimeAgo"),p(),A(9,kr,2,1),S(10,"div",12),c(11,"span",13),f(12),p(),A(13,wr,5,3,"button",14)(14,Sr,1,1,"app-s-copy-button",15),p(),A(15,$r,5,2),p()}if(t&2){let e,o=_();V(o.bubbleClass_$()),d(2),k(o.view().headerStatusDot==="error"?2:-1),d(2),E(o.toolName_$()),d(),M("title",Z(6,11,o.timestampDisplay_$())),d(2),E(Z(8,13,o.timestampDisplay_$())),d(2),k(o.view().expandableContent||(e=o.view().pairedResult)!=null&&e.expandableContent||(e=o.view().pairedResult)!=null&&e.text?9:-1),d(3),E(o.isExpanded_$()?"\u25BC":"\u25B6"),d(),k(o.showRawInfo_$()?13:-1),d(),k(o.showCopy_$()?14:-1),d(),k(o.isExpanded_$()?15:-1)}}function Or(t,n){if(t&1){let e=N();c(0,"button",18),B("click",function(){I(e);let i=_(2);return D(i.handleToggleRawInfo())}),ie(),c(1,"svg",19),S(2,"circle",20)(3,"path",21)(4,"path",22),p()()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),d(),Ae("class",e.bubbleActionIconClass)}}function Ir(t,n){if(t&1&&S(0,"app-s-copy-button",38),t&2){let e=_(2);M("content",e.copyContent_$())}}function Dr(t,n){t&1&&S(0,"span",44)}function Br(t,n){t&1&&(ie(),c(0,"svg",45),S(1,"polygon",46)(2,"path",47),p())}function zr(t,n){if(t&1){let e=N();c(0,"button",43),B("click",function(){I(e);let i=_(2);return D(i.handleTtsPlayClick())}),A(1,Dr,1,0,"span",44)(2,Br,3,0,":svg:svg",45),p()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),M("disabled",e.ttsLoading_$()),d(),k(e.ttsLoading_$()?1:2)}}function Nr(t,n){if(t&1){let e=N();c(0,"img",49),B("click",function(){let i=I(e).$implicit,r=_(3);return D(r.handleImageClick(i))}),p()}if(t&2){let e=n.$implicit;M("src",e,xt)}}function Fr(t,n){if(t&1&&(c(0,"div",40),Se(1,Nr,1,1,"img",48,bt),p()),t&2){let e=_(2);d(),ye(e.view().imageDataUrls)}}function Ur(t,n){t&1&&S(0,"audio",42),t&2&&M("src",n,xt)}function Hr(t,n){if(t&1&&(c(0,"div",34)(1,"div",35)(2,"span",36),f(3,"User"),p(),c(4,"span",11),J(5,"sAbsoluteTime"),f(6),J(7,"sTimeAgo"),p(),S(8,"div",12),c(9,"div",37),A(10,Or,5,3,"button",14)(11,Ir,1,1,"app-s-copy-button",38)(12,zr,3,4,"button",39),p()(),A(13,Fr,3,0,"div",40),c(14,"div",41),f(15),p(),A(16,Ur,1,1,"audio",42),p()),t&2){let e,o,i=_();V(i.bubbleClass_$()),d(4),M("title",Z(5,10,i.timestampDisplay_$())),d(2),E(Z(7,12,i.timestampDisplay_$())),d(4),k(i.showRawInfo_$()?10:-1),d(),k(i.showCopy_$()?11:-1),d(),k(i.showTtsButton_$()?12:-1),d(),k((e=i.view().imageDataUrls)!=null&&e.length?13:-1),d(2),E(i.view().bodyText),d(),k((o=i.ttsAudioUrl_$())?16:-1,o)}}function Vr(t,n){if(t&1){let e=N();c(0,"button",18),B("click",function(){I(e);let i=_(2);return D(i.handleToggleRawInfo())}),ie(),c(1,"svg",19),S(2,"circle",20)(3,"path",21)(4,"path",22),p()()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),d(),Ae("class",e.bubbleActionIconClass)}}function Gr(t,n){if(t&1&&S(0,"app-s-copy-button",51),t&2){let e=_(2);M("content",e.copyContent_$())}}function jr(t,n){t&1&&S(0,"span",54)}function Wr(t,n){t&1&&(ie(),c(0,"svg",45),S(1,"polygon",46)(2,"path",47),p())}function qr(t,n){if(t&1){let e=N();c(0,"button",43),B("click",function(){I(e);let i=_(2);return D(i.handleTtsPlayClick())}),A(1,jr,1,0,"span",54)(2,Wr,3,0,":svg:svg",45),p()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),M("disabled",e.ttsLoading_$()),d(),k(e.ttsLoading_$()?1:2)}}function Jr(t,n){if(t&1&&(c(0,"pre",52),f(1),p()),t&2){let e=_(2);d(),E(e.displayBody_$())}}function Zr(t,n){if(t&1&&(c(0,"div",41),f(1),p()),t&2){let e=_(3);d(),E(e.displayBody_$())}}function Yr(t,n){t&1&&S(0,"div",55),t&2&&M("innerHTML",n,_t)}function Kr(t,n){if(t&1&&(c(0,"div",41),f(1),p()),t&2){let e=_(4);d(),E(e.displayBody_$())}}function Xr(t,n){if(t&1&&A(0,Yr,1,1,"div",55)(1,Kr,2,1,"div",41),t&2){let e,o=_(3);k((e=o.assistantMarkdownSafeHtml_$())?0:1,e)}}function Qr(t,n){if(t&1&&A(0,Zr,2,1,"div",41)(1,Xr,2,1),t&2){let e=_(2);k(e.isTruncatable_$()&&!e.isAssistantBodyExpanded_$()?0:1)}}function es(t,n){t&1&&S(0,"audio",42),t&2&&M("src",n,xt)}function ts(t,n){if(t&1){let e=N();c(0,"button",56),B("click",function(){I(e);let i=_(2);return D(i.handleToggleAssistantBodyExpand())}),f(1),p()}if(t&2){let e=_(2);d(),qt(" ",e.isAssistantBodyExpanded_$()?"Less":e.contentLineCount_$()+" lines \u2014 show full"," ")}}function ns(t,n){if(t&1&&(c(0,"div",34)(1,"div",35)(2,"span",50),f(3,"Assistant"),p(),c(4,"span",11),J(5,"sAbsoluteTime"),f(6),J(7,"sTimeAgo"),p(),S(8,"div",12),c(9,"div",37),A(10,Vr,5,3,"button",14)(11,Gr,1,1,"app-s-copy-button",51)(12,qr,3,4,"button",39),p()(),A(13,Jr,2,1,"pre",52)(14,Qr,2,1)(15,es,1,1,"audio",42)(16,ts,2,1,"button",53),p()),t&2){let e,o=_();V(o.bubbleClass_$()),d(4),M("title",Z(5,10,o.timestampDisplay_$())),d(2),E(Z(7,12,o.timestampDisplay_$())),d(4),k(o.showRawInfo_$()?10:-1),d(),k(o.showCopy_$()?11:-1),d(),k(o.showTtsButton_$()?12:-1),d(),k(o.isJson_$()?13:14),d(2),k((e=o.ttsAudioUrl_$())?15:-1,e),d(),k(o.isTruncatable_$()?16:-1)}}function is(t,n){if(t&1&&(c(0,"span",61),f(1),p()),t&2){let e=_(2);d(),E(e.view().subtype)}}function os(t,n){if(t&1){let e=N();c(0,"button",63),B("click",function(){I(e);let i=_(2);return D(i.handleToggleRawInfo())}),c(1,"span",64),f(2,"i"),p()()}}function rs(t,n){if(t&1&&(c(0,"div",2)(1,"div",57),ie(),c(2,"svg",58),S(3,"path",59),p(),Je(),c(4,"span",60),f(5),p(),A(6,is,2,1,"span",61)(7,os,3,0,"button",62),p()()),t&2){let e=_();d(5),E(e.view().bodyText),d(),k(e.view().subtype?6:-1),d(),k(e.showRawInfo_$()?7:-1)}}function ss(t,n){if(t&1){let e=N();c(0,"button",18),B("click",function(){I(e);let i=_(2);return D(i.handleToggleRawInfo())}),ie(),c(1,"svg",19),S(2,"circle",20)(3,"path",21)(4,"path",22),p()()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),d(),Ae("class",e.bubbleActionIconClass)}}function as(t,n){if(t&1&&S(0,"app-s-copy-button",69),t&2){let e=_(2);M("content",e.copyContent_$())}}function ls(t,n){if(t&1&&(c(0,"div",65)(1,"div",66),S(2,"span",67),c(3,"span",68),f(4,"Error"),p(),c(5,"span",11),J(6,"sAbsoluteTime"),f(7),J(8,"sTimeAgo"),p(),S(9,"div",12),A(10,ss,5,3,"button",14)(11,as,1,1,"app-s-copy-button",69),p(),c(12,"div",70),f(13),p()()),t&2){let e=_();V(e.bubbleClass_$()),d(5),M("title",Z(6,7,e.timestampDisplay_$())),d(2),E(Z(8,9,e.timestampDisplay_$())),d(3),k(e.showRawInfo_$()?10:-1),d(),k(e.showCopy_$()?11:-1),d(2),E(e.view().bodyText)}}function cs(t,n){if(t&1){let e=N();c(0,"button",18),B("click",function(i){I(e);let r=_(2);return i.stopPropagation(),D(r.handleToggleRawInfo())}),ie(),c(1,"svg",19),S(2,"circle",20)(3,"path",21)(4,"path",22),p()()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),d(),Ae("class",e.bubbleActionIconClass)}}function ps(t,n){if(t&1&&S(0,"app-s-copy-button",30),t&2){let e=_(2);M("content",e.copyContent_$())}}function ds(t,n){if(t&1&&(c(0,"pre",72),f(1),p()),t&2){let e=_(2);d(),E(e.displayBody_$())}}function us(t,n){if(t&1){let e=N();c(0,"div",7)(1,"div",8),B("click",function(){I(e);let i=_();return D(i.handleToggleExpand())}),c(2,"span",71),f(3,"Tool Result"),p(),c(4,"span",11),J(5,"sAbsoluteTime"),f(6),J(7,"sTimeAgo"),p(),S(8,"div",12),c(9,"span",13),f(10),p(),A(11,cs,5,3,"button",14)(12,ps,1,1,"app-s-copy-button",30),p(),A(13,ds,2,1,"pre",72),p()}if(t&2){let e=_();V(e.bubbleClass_$()),d(4),M("title",Z(5,8,e.timestampDisplay_$())),d(2),E(Z(7,10,e.timestampDisplay_$())),d(4),E(e.isExpanded_$()?"\u25BC":"\u25B6"),d(),k(e.showRawInfo_$()?11:-1),d(),k(e.showCopy_$()?12:-1),d(),k(e.isExpanded_$()?13:-1)}}function ms(t,n){if(t&1){let e=N();c(0,"app-s-agent-console-message-bubble",79),B("ttsCached",function(i){I(e);let r=_(2);return D(r.ttsCached.emit(i))}),p()}if(t&2){let e=n.$implicit;M("view",e)}}function gs(t,n){if(t&1&&(c(0,"details",4)(1,"summary",73)(2,"span",74),f(3),p(),S(4,"span",12),ie(),c(5,"svg",75),S(6,"path",76),p()(),Je(),c(7,"div",77),Se(8,ms,1,1,"app-s-agent-console-message-bubble",78,Ui),p()()),t&2){let e,o=_();d(3),E(o.view().bodyText),d(5),ye((e=o.view().groupItems)!==null&&e!==void 0?e:Zt(1,Hi))}}function hs(t,n){if(t&1){let e=N();c(0,"app-s-agent-console-message-bubble",79),B("ttsCached",function(i){I(e);let r=_(3);return D(r.ttsCached.emit(i))}),p()}if(t&2){let e=_().$implicit;M("view",e)}}function fs(t,n){if(t&1&&A(0,hs,1,1,"app-s-agent-console-message-bubble",78),t&2){let e=n.$index;k(e>0?0:-1)}}function _s(t,n){if(t&1&&(c(0,"details",5)(1,"summary",80),ie(),c(2,"svg",81),S(3,"rect",82)(4,"circle",83)(5,"circle",84)(6,"path",85)(7,"path",86),p(),Je(),c(8,"span",87),f(9,"Sub-agent"),p(),c(10,"span",88),f(11),p(),c(12,"span",89),f(13),p(),S(14,"span",12),ie(),c(15,"svg",90),S(16,"path",76),p()(),Je(),c(17,"div",91),Se(18,fs,1,1,null,null,Ui),p()()),t&2){let e,o,i=_();d(11),E(i.view().bodyText),d(2),E(((e=(e=i.view().groupItems)==null?null:e.length)!==null&&e!==void 0?e:0)>1?i.view().groupItems.length-1:0),d(5),ye((o=i.view().groupItems)!==null&&o!==void 0?o:Zt(2,Hi))}}function xs(t,n){if(t&1&&(c(0,"span",93),f(1),p()),t&2){let e=_(2);d(),qt("(",e.view().subtype,")")}}function bs(t,n){if(t&1){let e=N();c(0,"button",18),B("click",function(i){I(e);let r=_(2);return i.stopPropagation(),D(r.handleToggleRawInfo())}),ie(),c(1,"svg",19),S(2,"circle",20)(3,"path",21)(4,"path",22),p()()}if(t&2){let e=_(2);V(e.bubbleActionButtonClass),d(),Ae("class",e.bubbleActionIconClass)}}function Cs(t,n){if(t&1&&S(0,"app-s-copy-button",94),t&2){let e=_(2);M("content",e.copyContent_$())}}function ks(t,n){if(t&1&&(c(0,"pre",97),f(1),p()),t&2){let e=_(3);V(e.textClass_$()),d(),E(e.displayBody_$())}}function ws(t,n){if(t&1&&(c(0,"div",98),f(1),p()),t&2){let e=_(3);V(e.textClass_$()),d(),E(e.displayBody_$())}}function Ss(t,n){if(t&1&&A(0,ks,2,3,"pre",95)(1,ws,2,3,"div",96),t&2){let e=_(2);k(e.isJson_$()?0:1)}}function ys(t,n){if(t&1){let e=N();c(0,"div",7)(1,"div",8),B("click",function(){I(e);let i=_();return D(i.handleToggleExpand())}),c(2,"span",92),f(3),p(),A(4,xs,2,1,"span",93),c(5,"span",11),J(6,"sAbsoluteTime"),f(7),J(8,"sTimeAgo"),p(),S(9,"div",12),c(10,"span",13),f(11),p(),A(12,bs,5,3,"button",14)(13,Cs,1,1,"app-s-copy-button",94),p(),A(14,Ss,2,1),p()}if(t&2){let e=_();V(e.bubbleClass_$()),d(2),V(e.textClass_$()),d(),E(e.typeLabel_$()),d(),k(e.view().subtype?4:-1),d(),M("title",Z(6,12,e.timestampDisplay_$())),d(2),E(Z(8,14,e.timestampDisplay_$())),d(4),E(e.isExpanded_$()?"\u25BC":"\u25B6"),d(),k(e.showRawInfo_$()?12:-1),d(),k(e.showCopy_$()?13:-1),d(),k(e.isExpanded_$()?14:-1)}}function Ts(t,n){if(t&1&&(c(0,"section")(1,"div",107),f(2," Primary (message / tool call) "),p(),c(3,"pre",108),f(4),p()()),t&2){let e=_();d(4),E(e.primaryJson)}}function vs(t,n){if(t&1&&(c(0,"div",109)(1,"div",110),f(2),p(),c(3,"pre",108),f(4),p()()),t&2){let e=n.$implicit,o=_(2);d(2),Jt(" Part ",e.index+1," / ",o.streamParts.length," "),d(2),E(e.json)}}function Es(t,n){if(t&1&&(c(0,"section")(1,"div",107),f(2," Stream mirror payloads (each chunk) "),p(),Se(3,vs,5,3,"div",109,_r),p()),t&2){let e=_();d(3),ye(e.streamParts)}}function As(t,n){if(t&1&&(c(0,"section")(1,"div",107),f(2," Paired tool result "),p(),c(3,"pre",108),f(4),p()()),t&2){let e=_();d(4),E(e.pairedJson)}}function Ms(t,n){if(t&1){let e=N();c(0,"div",99),B("click",function(){I(e);let i=_();return D(i.handleToggleRawInfo())}),c(1,"div",100),B("click",function(i){return I(e),D(i.stopPropagation())}),c(2,"div",101)(3,"span",102),f(4,"Raw data"),p(),c(5,"span",103),J(6,"sAbsoluteTime"),f(7),J(8,"sTimeAgo"),p(),S(9,"div",12)(10,"app-s-copy-button",104),c(11,"button",105),B("click",function(){I(e);let i=_();return D(i.handleToggleRawInfo())}),f(12,"\xD7"),p()(),c(13,"div",106),A(14,Ts,5,1,"section")(15,Es,5,0,"section")(16,As,5,1,"section"),p()()()}if(t&2){let e=n,o=_();d(5),M("title",Z(6,7,o.timestampDisplay_$())),d(2),Jt("",o.typeLabel_$()," \u2014 ",Z(8,9,o.timestampDisplay_$()),""),d(3),M("content",o.rawDataFormatted_$()),d(4),k(e.primaryJson?14:-1),d(),k(e.showStreamBreakdown?15:-1),d(),k(e.pairedJson?16:-1)}}var Aa=(()=>{class t{sanitizer=ke(Ct);voiceSttQaUi_DS=ke(oi);globalError_CS=ke(ni);view=me.required();bubbleActionButtonClass="p-1.5 gt-xs:p-2 min-h-[32px] min-w-[32px] gt-xs:min-h-[36px] gt-xs:min-w-[36px] flex items-center justify-center rounded text-neutral-400 hover:text-neutral-200 hover:bg-neutral-700 transition-colors shrink-0 disabled:opacity-50";bubbleActionIconClass="w-3.5 h-3.5 shrink-0";ttsCached=Ze();isAutoPlayFired=!1;isExpanded_$=se(!1);isAssistantBodyExpanded_$=se(!0);isRawInfoOpen_$=se(!1);safeExpandableHtml_$=T(()=>{let e=this.view().expandableContentTrustedHtml;return e?this.sanitizer.bypassSecurityTrustHtml(e):null});showCopy_$=T(()=>this.view().flags?.showCopy!==!1);useEditDiffForExpandable_$=T(()=>this.view().flags?.useEditDiffForExpandable===!0);showRawInfo_$=T(()=>this.view().flags?.showRawInfo===!1?!1:Ge.hasBubbleRawSources(this.view()));rawOverlayBundle_$=T(()=>{let e=this.view();return Ge.hasBubbleRawSources(e)?Ge.buildForBubbleView(e):null});timestampDisplay_$=T(()=>{let e=this.view().timestampIso;return e||""});bodyForJsonCheck_$=T(()=>this.view().bodyText);isJson_$=T(()=>Te.looksLikeJson(this.bodyForJsonCheck_$()));formattedBody_$=T(()=>{let e=this.bodyForJsonCheck_$();return this.isJson_$()?Te.formatJson(e):e});contentLineCount_$=T(()=>Te.lineCount(this.formattedBody_$()));isTruncatable_$=T(()=>{let e=this.isJson_$()?8:20;return this.contentLineCount_$()>e});displayBody_$=T(()=>{let o=this.view().kind===w.assistant?this.isAssistantBodyExpanded_$():this.isExpanded_$();if(!this.isTruncatable_$()||o)return this.formattedBody_$();let i=this.isJson_$()?8:20;return this.formattedBody_$().split(`
|
|
66
|
-
`).slice(0,i).join(`
|
|
67
|
-
`)+`
|
|
68
|
-
\u2026`});assistantMarkdownSafeHtml_$=T(()=>{if(this.view().kind!==w.assistant||this.isJson_$()||this.isTruncatable_$()&&!this.isAssistantBodyExpanded_$())return null;let e=this.formattedBody_$(),o=zi.toSanitizedHtml(e);return this.sanitizer.bypassSecurityTrustHtml(o)});formattedExpandable_$=T(()=>{let e=this.view().expandableContent??"";return Te.looksLikeJson(e)?Te.formatJson(e):e});copyContent_$=T(()=>this.view().bodyText);rawDataFormatted_$=T(()=>{let e=this.rawOverlayBundle_$();return e!==null?e.copyJsonString:"{}"});bubbleClass_$=T(()=>{switch(this.view().kind){case w.userPrompt:return"border-neonGreen bg-neutral-800";case w.assistant:return"border-neonCyan bg-neutral-800";case w.tool:return"border-orange-500/30 bg-orange-500/5";case w.toolResult:return"border-orange-400/20 bg-orange-400/5";case w.error:return"border-red-500/30 bg-red-500/5";case w.info:case w.thinking:case w.raw:case w.result:return"border-neutral-700/50 bg-neutral-800/30";case w.status:case w.statusUpdate:case w.runIntent:case w.iteration:return"border-purple-500/30 bg-purple-500/5";case w.toolGroup:case w.subAgentGroup:return"border-orange-500/25 bg-orange-500/5";default:return"border-neutral-700 bg-neutral-800/30"}});textClass_$=T(()=>{switch(this.view().kind){case w.userPrompt:return"text-blue-300";case w.assistant:return"text-neutral-200";case w.tool:return"text-orange-400";case w.toolResult:return"text-orange-300/80";case w.error:return"text-red-400";case w.info:case w.thinking:case w.raw:case w.result:return"text-neutral-500";case w.status:case w.statusUpdate:case w.runIntent:case w.iteration:return"text-purple-400";default:return"text-neutral-400"}});toolName_$=T(()=>{let e=this.view();return e.toolName?e.toolName:e.kind!==w.tool?"":(e.bodyText.split(`
|
|
69
|
-
`)[0]??"").trim()});toolInputFormatted_$=T(()=>{let e=this.view();if(e.kind!==w.tool)return"";let i=e.bodyText.split(`
|
|
70
|
-
`).slice(1).join(`
|
|
71
|
-
`).trim();return Te.looksLikeJson(i)?Te.formatJson(i):i});typeLabel_$=T(()=>{switch(this.view().kind){case w.userPrompt:return"User";case w.assistant:return"Assistant";case w.tool:return"Tool Call";case w.toolResult:return"Tool Result";case w.error:return"Error";case w.info:return"Info";case w.status:return"Status";case w.thinking:return"Thinking";case w.runIntent:return"Run intent";case w.iteration:return"Iteration";case w.statusUpdate:return"Status update";case w.raw:return"Raw";case w.result:return"Result";case w.toolGroup:return"Tool group";case w.subAgentGroup:return"Sub-agent";default:return String(this.view().kind)}});kindEnum=w;tts_$=T(()=>this.view().tts??null);ttsLoading_$=se(!1);showTtsButton_$=T(()=>{let e=this.tts_$();return e!==null&&!e.hasTtsAudio&&e.content.trim().length>0});autoReadEffect=qn(()=>{if(this.isAutoPlayFired||this.view().kind!==w.assistant)return;let e=this.tts_$();!e||e.hasTtsAudio||e.content.trim().length===0||this.ttsLoading_$()||Pt.shouldAutoPlay(e.sessionId,e.timestampIso)&&(this.isAutoPlayFired=!0,this.handleTtsPlayClick())});ttsAudioUrl_$=T(()=>{let e=this.tts_$();if(!e||!e.hasTtsAudio)return null;let o=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.messageKey);return o.length>0?o:null});handleTtsPlayClick(){return re(this,null,function*(){let e=this.tts_$();if(!e||this.ttsLoading_$())return;this.ttsLoading_$.set(!0);let o,i,r;try{o=yield this.voiceSttQaUi_DS.getOrCreateTtsMessageAudio({sessionId:e.sessionId,role:e.role,content:e.content,timestamp:e.timestampIso}),i=URL.createObjectURL(o);let s=i;r=new Audio(i);try{yield r.play()}catch(u){URL.revokeObjectURL(s);let l=this.voiceSttQaUi_DS.getTtsMessageAudioUrl(e.messageKey);if(l.length===0)throw u;r=new Audio(l),yield r.play(),this.ttsCached.emit(e.messageKey);return}r.onended=()=>{URL.revokeObjectURL(s)},this.ttsCached.emit(e.messageKey)}catch(s){i!=null&&URL.revokeObjectURL(i);let u=yield t.diagnoseAudioBlobMagic(o),l=r?.error?.code===4,h=l&&u!=null&&!u.isMp3Magic&&(o?.type==="audio/mpeg"||o?.type===""),m={messageKey:e.messageKey,sessionId:e.sessionId,role:e.role,contentLength:e.content.length,timestampIso:e.timestampIso,blobSize:o?.size,blobType:o?.type,blobUrlCreated:i!=null,audioReadyState:r?.readyState,audioNetworkState:r?.networkState,audioErrorCode:r?.error?.code,audioErrorMessage:r?.error?.message,originalErrorName:s instanceof Error?s.name:typeof s,originalErrorMessage:s instanceof Error?s.message:String(s),payloadMagicHex:u?.magicHex,isMp3Magic:u?.isMp3Magic,isPayloadCorruptionLikely:h,diagnosticHint:h?"TTS provider returned non-MP3 payload despite audio/mpeg MIME \u2014 first bytes do not match MP3 magic (FF FB / FF F3 / FF F2 / 49 44 33). Provider/server-side audio generation likely corrupted.":l?"MEDIA_ERR_SRC_NOT_SUPPORTED \u2014 browser refused to decode the audio source. May be Chromium URL-safety-check (cycle 22 fallback path), unsupported codec, or rare format variant.":void 0},C=Object.assign(new Error(h?`TTS audio playback failed (payload corruption likely \u2014 non-MP3 magic ${u?.magicHex}): ${s instanceof Error?s.message:String(s)}`:`TTS audio playback failed: ${s instanceof Error?s.message:String(s)}`),{errorCode:"CCAP-TTS-PLAY-FAIL",additionalContent:m});this.globalError_CS.showError(C,"s-agent-console-message-bubble")}finally{this.ttsLoading_$.set(!1)}})}static diagnoseAudioBlobMagic(e){return re(this,null,function*(){if(e==null||e.size<4)return null;try{let i=yield e.slice(0,16).arrayBuffer(),r=new Uint8Array(i),s=[];for(let L=0;L<r.length;L++)s.push(r[L].toString(16).padStart(2,"0").toUpperCase());let u=s.join(" "),l=r[0],h=r[1],m=r[2];return{magicHex:u,isMp3Magic:l===255&&(h===251||h===243||h===242||h===250||h===244)||l===73&&h===68&&m===51}}catch{return null}})}handleToggleExpand(){this.isExpanded_$.update(e=>!e)}handleToggleAssistantBodyExpand(){this.isAssistantBodyExpanded_$.update(e=>!e)}handleToggleRawInfo(){this.isRawInfoOpen_$.update(e=>!e)}handleImageClick(e){window.open(e,"_blank")}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=Fe({type:t,selectors:[["app-s-agent-console-message-bubble"]],inputs:{view:[1,"view"]},outputs:{ttsCached:"ttsCached"},standalone:!0,features:[Ue],decls:10,vars:2,consts:[[1,"rounded","border","px-2.5","py-1","text-xs","overflow-hidden",3,"class"],[1,"group/msg","rounded-lg","border","px-2","py-1","text-xs","sm:px-3","sm:py-1.5","sm:text-sm","overflow-hidden",3,"class"],[1,"flex","justify-center","mb-1","group/msg"],[1,"rounded","border","px-2.5","py-1.5","text-xs","overflow-hidden",3,"class"],[1,"bg-orange-500/5","border","border-orange-500/15","rounded-lg","overflow-hidden"],[1,"border","border-indigo-500/20","rounded-lg","overflow-hidden","bg-indigo-500/3"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/70","p-4"],[1,"rounded","border","px-2.5","py-1","text-xs","overflow-hidden"],[1,"flex","items-center","gap-2","cursor-pointer","select-none",3,"click"],["title","Tool call failed",1,"w-1.5","h-1.5","rounded-full","bg-red-500","shrink-0"],[1,"text-orange-400","font-semibold","text-[11px]"],[1,"text-[10px]","text-neutral-400","select-none",3,"title"],[1,"flex-1"],[1,"text-neutral-600","text-[10px]"],["type","button","title","Raw details",3,"class"],["buttonTitle","Copy tool call","size","sm",3,"content"],[1,"text-[10px]","text-red-500/60","font-medium"],[1,"text-[10px]","text-green-500/60","font-medium"],["type","button","title","Raw details",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true"],["cx","12","cy","12","r","10"],["d","M12 16v-4"],["d","M12 8h.01"],[1,"mt-1.5","border-t","border-orange-500/10","pt-1.5"],[1,"mt-1.5","border-t","border-green-500/10","pt-1.5"],[1,"text-[9px]","text-neutral-600","uppercase","tracking-wider","mb-0.5"],[1,"text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-orange-300/80","max-h-[300px]","overflow-y-auto"],[1,"text-[11px]","leading-relaxed","font-mono","text-green-400/80","max-h-[300px]","overflow-y-auto","overflow-x-auto","break-words",3,"innerHTML"],[1,"text-[11px]","leading-relaxed","font-mono","text-green-400/80","max-h-[300px]","overflow-y-auto","whitespace-pre-wrap","break-words",3,"innerHTML"],[1,"mt-1","flex","justify-end"],["buttonTitle","Copy result","size","sm",3,"content"],[1,"text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-green-400/80","max-h-[300px]","overflow-y-auto"],[1,"mt-1.5","border-t","border-red-500/15","pt-1.5"],[1,"text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-red-400/90","max-h-[300px]","overflow-y-auto"],[1,"group/msg","rounded-lg","border","px-2","py-1","text-xs","sm:px-3","sm:py-1.5","sm:text-sm","overflow-hidden"],[1,"flex","items-center","gap-1","mb-px"],[1,"font-bold","text-[10px]","text-neonGreen/60","uppercase"],[1,"flex","items-center","gap-0.5"],["buttonTitle","Copy prompt","size","sm",3,"content"],["type","button","title","Felolvas\xE1s (TTS)",3,"disabled","class"],[1,"flex","flex-wrap","gap-2","mb-1.5"],[1,"leading-snug","sm:leading-normal","whitespace-pre-wrap","break-words","text-neutral-100"],["controls","","aria-label","\xDCzenet felolvas\xE1sa",1,"max-w-full","h-8","min-w-[200px]","mt-1.5",3,"src"],["type","button","title","Felolvas\xE1s (TTS)",3,"click","disabled"],[1,"inline-block","w-3.5","h-3.5","shrink-0","animate-spin","rounded-full","border-2","border-blue-400/40","border-t-blue-400"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3.5","h-3.5","shrink-0"],["points","11 5 6 9 2 9 2 15 6 15 11 19 11 5"],["d","M15.54 8.46a5 5 0 0 1 0 7.07"],["alt","Attached image",1,"max-w-[200px]","max-h-[200px]","rounded","border","border-neonDefault/30","object-contain","cursor-pointer",3,"src"],["alt","Attached image",1,"max-w-[200px]","max-h-[200px]","rounded","border","border-neonDefault/30","object-contain","cursor-pointer",3,"click","src"],[1,"font-bold","text-[10px]","text-neonCyan/60","uppercase"],["buttonTitle","Copy message","size","sm",3,"content"],[1,"text-xs","leading-snug","sm:leading-normal","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-neutral-100"],["type","button",1,"mt-1","text-[10px]","text-ccapAccent","hover:text-ccapAccent/80","transition-colors"],[1,"inline-block","w-3.5","h-3.5","shrink-0","animate-spin","rounded-full","border-2","border-neutral-400/40","border-t-neutral-300"],[1,"ccap-assistant-md","leading-snug","sm:leading-normal","break-words","text-neutral-100","min-w-0",3,"innerHTML"],["type","button",1,"mt-1","text-[10px]","text-ccapAccent","hover:text-ccapAccent/80","transition-colors",3,"click"],[1,"inline-flex","items-center","gap-1.5","bg-teal-500/6","border","border-teal-500/15","rounded-full","px-3","py-0.5","max-w-[85%]","min-w-0"],["viewBox","0 0 16 16","fill","none","stroke","currentColor","stroke-width","2",1,"w-3","h-3","text-teal-400/70","shrink-0","animate-spin"],["d","M8 2a6 6 0 0 1 6 6","stroke-linecap","round"],[1,"text-[10px]","text-teal-300/70","truncate","min-w-0"],[1,"text-[8px]","text-teal-400/40","shrink-0"],["type","button",1,"shrink-0","w-3.5","h-3.5","rounded-full","bg-teal-500/15","flex","items-center","justify-center","cursor-pointer","hover:bg-teal-500/30"],["type","button",1,"shrink-0","w-3.5","h-3.5","rounded-full","bg-teal-500/15","flex","items-center","justify-center","cursor-pointer","hover:bg-teal-500/30",3,"click"],[1,"text-[7px]","text-teal-300/60","font-bold","leading-none"],[1,"rounded","border","px-2.5","py-1.5","text-xs","overflow-hidden"],[1,"flex","items-center","gap-1.5","mb-0.5"],["title","Error",1,"w-1.5","h-1.5","rounded-full","bg-red-500","shrink-0"],[1,"font-semibold","text-[10px]","text-red-400","uppercase","tracking-wider"],["buttonTitle","Copy error","size","sm",3,"content"],[1,"leading-relaxed","whitespace-pre-wrap","break-words","text-red-400"],[1,"font-semibold","text-[10px]","text-orange-300/70","uppercase","tracking-wider"],[1,"mt-1","text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono","text-orange-300/70","max-h-[300px]","overflow-y-auto"],[1,"flex","items-center","gap-1.5","px-2.5","py-1","cursor-pointer","select-none","hover:bg-orange-500/8","transition-colors","list-none","[&::-webkit-details-marker]:hidden"],[1,"text-[11px]","text-orange-300/90","font-medium"],["viewBox","0 0 12 12","fill","none",1,"w-3","h-3","text-orange-400/50","transition-transform","[[open]>&]:rotate-90"],["d","M4.5 2.5l4 3.5-4 3.5","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"px-2","pb-1.5","pt-0.5","space-y-0.5"],[3,"view"],[3,"ttsCached","view"],[1,"flex","items-center","gap-1.5","px-2.5","py-1.5","cursor-pointer","select-none","hover:bg-indigo-500/8","transition-colors","list-none","[&::-webkit-details-marker]:hidden"],["viewBox","0 0 16 16","fill","none","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round",1,"w-3.5","h-3.5","text-indigo-400","shrink-0"],["x","3","y","5","width","10","height","8","rx","2"],["cx","6","cy","9","r","1"],["cx","10","cy","9","r","1"],["d","M8 2v3"],["d","M6 2h4"],[1,"text-[10px]","text-indigo-400/60","font-medium","uppercase","tracking-wider","shrink-0"],[1,"text-[11px]","text-indigo-300/90","font-medium","truncate"],[1,"text-[9px]","text-indigo-400/40","shrink-0"],["viewBox","0 0 12 12","fill","none",1,"w-3","h-3","text-indigo-400/40","shrink-0","transition-transform","[[open]>&]:rotate-90"],[1,"px-2","pb-2","pt-1","space-y-0.5","border-t","border-indigo-500/10"],[1,"font-semibold","text-[10px]","uppercase","tracking-wider"],[1,"text-[9px]","text-neutral-500"],["buttonTitle","Copy","size","sm",3,"content"],[1,"mt-1","text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono",3,"class"],[1,"mt-1","leading-relaxed","whitespace-pre-wrap","break-words",3,"class"],[1,"mt-1","text-[11px]","leading-relaxed","overflow-x-auto","whitespace-pre-wrap","break-words","font-mono"],[1,"mt-1","leading-relaxed","whitespace-pre-wrap","break-words"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/70","p-4",3,"click"],[1,"bg-neutral-900","border","border-neutral-700","rounded-lg","shadow-2xl","w-full","max-w-2xl","max-h-[80vh]","flex","flex-col",2,"max-height","80dvh",3,"click"],[1,"flex","items-center","gap-2","px-4","py-2","border-b","border-neutral-700","shrink-0"],[1,"text-xs","font-semibold","text-neutral-300"],[1,"text-[10px]","text-neutral-400",3,"title"],["buttonTitle","Copy raw JSON","size","sm",3,"content"],["type","button",1,"text-neutral-500","hover:text-neutral-300","text-sm","transition-colors","px-1",3,"click"],[1,"flex-1","overflow-auto","p-4","space-y-4"],[1,"text-[9px]","text-neutral-500","uppercase","tracking-wide","mb-1"],[1,"text-[11px]","leading-relaxed","whitespace-pre-wrap","break-words","overflow-x-auto","font-mono","text-neutral-300"],[1,"mb-3","last:mb-0"],[1,"text-[8px]","text-neutral-600","mb-0.5"]],template:function(o,i){if(o&1&&A(0,Lr,16,15,"div",0)(1,Hr,17,14,"div",1)(2,ns,17,14,"div",1)(3,rs,8,3,"div",2)(4,ls,14,11,"div",3)(5,us,14,12,"div",0)(6,gs,10,2,"details",4)(7,_s,20,3,"details",5)(8,ys,15,16,"div",0)(9,Ms,17,11,"div",6),o&2){let r,s;k((r=i.view().kind)===i.kindEnum.tool?0:r===i.kindEnum.userPrompt?1:r===i.kindEnum.assistant?2:r===i.kindEnum.statusUpdate?3:r===i.kindEnum.error?4:r===i.kindEnum.toolResult?5:r===i.kindEnum.toolGroup?6:r===i.kindEnum.subAgentGroup?7:8),d(9),k((s=i.isRawInfoOpen_$()&&i.rawOverlayBundle_$())?9:-1,s)}},dependencies:()=>[t,He,ri,Fi,si,ai],styles:[`@charset "UTF-8";.ccap-assistant-md[_ngcontent-%COMP%]{font-size:inherit;line-height:1.55;text-align:left;color:#ffffffeb}.ccap-assistant-md[_ngcontent-%COMP%] [_ngcontent-%COMP%]:first-child{margin-top:0}.ccap-assistant-md[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child{margin-bottom:0}.ccap-assistant-md[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:600;color:#fffffff7;letter-spacing:.01em}.ccap-assistant-md[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.2em;margin-top:1.5rem;margin-bottom:.6rem;padding-bottom:.45rem;border-bottom:1px solid rgba(0,245,255,.28)}.ccap-assistant-md[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.1em;margin-top:1.35rem;margin-bottom:.55rem;padding-bottom:.35rem;border-bottom:1px solid rgba(0,245,255,.16)}.ccap-assistant-md[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.02em;margin-top:1.15rem;margin-bottom:.45rem;color:#00f5ffe0}.ccap-assistant-md[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:.95em;margin-top:.95rem;margin-bottom:.35rem;color:#ffffffc7}.ccap-assistant-md[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0}.ccap-assistant-md[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:650;color:#fffffffa}.ccap-assistant-md[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:italic;color:#ffffffd9}.ccap-assistant-md[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:.6rem 0;padding-left:1.5rem;list-style-type:disc}.ccap-assistant-md[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:.6rem 0;padding-left:1.5rem;list-style-type:decimal}.ccap-assistant-md[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:.15rem 0;line-height:1.5}.ccap-assistant-md[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:circle}.ccap-assistant-md[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{list-style-type:square}.ccap-assistant-md[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:.25rem}.ccap-assistant-md[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > ol[_ngcontent-%COMP%]{margin-top:.15rem;margin-bottom:.1rem}.ccap-assistant-md[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(0,245,255,.38) 12%,rgba(0,245,255,.38) 88%,transparent 100%);margin:2.2rem 0}.ccap-assistant-md[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%]{margin:.75rem 0;padding:.45rem .85rem;border-left:3px solid rgba(0,245,255,.4);background:#00f5ff0a;border-radius:0 .25rem .25rem 0;color:#ffffffd9}.ccap-assistant-md[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.2rem 0}.ccap-assistant-md[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:separate;border-spacing:0;margin:1rem 0;font-size:.9em;display:block;overflow-x:auto;border:1px solid rgba(0,245,255,.32);border-radius:.3rem}.ccap-assistant-md[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{position:sticky;top:0}.ccap-assistant-md[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#00f5ff24;font-weight:600;color:#00f5ffeb;border-bottom:1px solid rgba(0,245,255,.22);border-right:1px solid rgba(0,245,255,.12);padding:.45rem .7rem;text-align:left;vertical-align:top;white-space:nowrap}.ccap-assistant-md[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{border-right:none}.ccap-assistant-md[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.16);border-right:1px solid rgba(255,255,255,.12);padding:.4rem .7rem;text-align:left;vertical-align:top}.ccap-assistant-md[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:none}.ccap-assistant-md[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}.ccap-assistant-md[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background:#ffffff08}.ccap-assistant-md[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:#00f5ff0e}.ccap-assistant-md[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:.55rem 0;padding:.6rem .75rem;border-radius:.3rem;background:#00000080;border:1px solid rgba(255,255,255,.08);overflow-x:auto;font-size:.88em}.ccap-assistant-md[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.ccap-assistant-md[_ngcontent-%COMP%] p[_ngcontent-%COMP%] code[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] li[_ngcontent-%COMP%] code[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] td[_ngcontent-%COMP%] code[_ngcontent-%COMP%], .ccap-assistant-md[_ngcontent-%COMP%] th[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{padding:.1rem .28rem;border-radius:.2rem;background:#00f5ff12;color:#00f5ffeb;border:1px solid rgba(0,245,255,.12)}.ccap-assistant-md[_ngcontent-%COMP%] pre[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:transparent;color:inherit;border:none;padding:0;font-size:inherit}.ccap-assistant-md[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#38bdf8;text-decoration:underline;text-underline-offset:2px}.ccap-assistant-md[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#7dd3fc}
|
|
72
|
-
/*# sourceMappingURL=s-agent-console-message-bubble.component-KS3KL36G.css.map */`]})}return t})();var Rs=[[["","sChatColumnHeader",""]],[["","sChatColumnScroll",""]],[["","sChatColumnOverlay",""]],[["","sChatColumnComposer",""]]],Ps=["[sChatColumnHeader]","[sChatColumnScroll]","[sChatColumnOverlay]","[sChatColumnComposer]"],$a=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=Fe({type:t,selectors:[["app-s-session-chat-column-layout"]],hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden","w-full","min-w-0"],standalone:!0,features:[Ue],ngContentSelectors:Ps,decls:8,vars:0,consts:[[1,"min-w-0","shrink-0"],[1,"relative","min-h-0","min-w-0","flex-1","flex","flex-col"],[1,"min-h-0","min-w-0","flex-1","overflow-y-auto","overflow-x-hidden"]],template:function(o,i){o&1&&(Wn(Rs),c(0,"div",0),Ye(1),p(),c(2,"div",1)(3,"div",2),Ye(4,1),p(),Ye(5,2),p(),c(6,"div",0),Ye(7,3),p())},dependencies:[He],encapsulation:2})}return t})();var xn=so(ao());var Vi=(()=>{class t{mrg_AS=ke(ii);erg_AS=ke(li);llmEntries_$=se([]);llmLoading_$=se(!1);llmLoadError_$=se(null);isLlmLoaded=!1;llmLoadPromise=null;embeddingEntries_$=se([]);embeddingLoading_$=se(!1);embeddingLoadError_$=se(null);isEmbeddingLoaded=!1;embeddingLoadPromise=null;enabledLlmModels_$=T(()=>this.llmEntries_$().filter(e=>e.enabled));enabledLlmProviders_$=T(()=>{let e=new Map;for(let o of this.enabledLlmModels_$())e.has(o.provider)||e.set(o.provider,t.llmProviderLabel(o.provider));return[...e.entries()].map(([o,i])=>({value:o,label:i}))});isLlmEmpty_$=T(()=>this.isLlmLoaded&&!this.llmLoading_$()&&this.enabledLlmModels_$().length===0);enabledEmbeddingModels_$=T(()=>this.embeddingEntries_$().filter(e=>e.enabled===!0));enabledEmbeddingProviders_$=T(()=>{let e=new Map;for(let o of this.enabledEmbeddingModels_$()){let i=o.embeddingBackend??"";i&&!e.has(i)&&e.set(i,t.embeddingBackendLabel(i))}return[...e.entries()].map(([o,i])=>({value:o,label:i}))});isEmbeddingEmpty_$=T(()=>this.isEmbeddingLoaded&&!this.embeddingLoading_$()&&this.enabledEmbeddingModels_$().length===0);ensureLoaded(e){return re(this,null,function*(){if(e==="llm"){if(this.isLlmLoaded&&!this.llmLoading_$())return;if(this.llmLoadPromise)return this.llmLoadPromise;this.llmLoadPromise=this.fetchLlm();try{yield this.llmLoadPromise}finally{this.llmLoadPromise=null}return}if(!(this.isEmbeddingLoaded&&!this.embeddingLoading_$())){if(this.embeddingLoadPromise)return this.embeddingLoadPromise;this.embeddingLoadPromise=this.fetchEmbedding();try{yield this.embeddingLoadPromise}finally{this.embeddingLoadPromise=null}}})}refresh(e){return re(this,null,function*(){e==="llm"?(this.isLlmLoaded=!1,yield this.fetchLlm()):(this.isEmbeddingLoaded=!1,yield this.fetchEmbedding())})}invalidate(e){e==="llm"?this.isLlmLoaded=!1:this.isEmbeddingLoaded=!1}getModelsForProvider(e,o){return e==="llm"?this.enabledLlmModels_$().filter(i=>i.provider===o).map(i=>i.modelName):this.enabledEmbeddingModels_$().filter(i=>i.embeddingBackend===o).map(i=>i.modelId??"")}fetchLlm(){return re(this,null,function*(){this.llmLoading_$.set(!0),this.llmLoadError_$.set(null);try{let e=yield this.mrg_AS.getList({enabled:!0});this.llmEntries_$.set(e.list),this.isLlmLoaded=!0}catch(e){this.llmLoadError_$.set(e),xn.DyFM_Error.logSimple("AIS_RegistrySsot_ControlService | fetchLlm failed",e)}finally{this.llmLoading_$.set(!1)}})}fetchEmbedding(){return re(this,null,function*(){this.embeddingLoading_$.set(!0),this.embeddingLoadError_$.set(null);try{let e=yield this.erg_AS.getList({enabled:!0});this.embeddingEntries_$.set(e.list),this.isEmbeddingLoaded=!0}catch(e){this.embeddingLoadError_$.set(e),xn.DyFM_Error.logSimple("AIS_RegistrySsot_ControlService | fetchEmbedding failed",e)}finally{this.embeddingLoading_$.set(!1)}})}static llmProviderLabel(e){return{"open-ai":"OpenAI",anthropic:"Anthropic",google:"Google",deepseek:"DeepSeek","fdp-ai":"FDPAI"}[e]??e}static embeddingBackendLabel(e){return{ollama:"Ollama","open-ai-compatible":"OpenAI-kompatibilis","open-ai-official":"OpenAI hivatalos","custom-http":"Custom HTTP"}[e]??e}static \u0275fac=function(o){return new(o||t)};static \u0275prov=Vn({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $s=(t,n)=>n.value;function Ls(t,n){t&1&&(c(0,"div",0),S(1,"span",3),c(2,"span"),f(3,"Registry bet\xF6lt\xE9se\u2026"),p()())}function Os(t,n){if(t&1&&(c(0,"p",4),f(1,"Nincs enged\xE9lyezett modell a registry-ben."),p(),c(2,"p"),f(3," Menj a "),c(4,"a",5),f(5,"Model Registry"),p(),f(6," oldalra, futtass "),c(7,"strong"),f(8,"Sync"),p(),f(9,"-et, majd az "),c(10,"code",6),f(11,"enabled"),p(),f(12," kapcsol\xF3val enged\xE9lyezz legal\xE1bb egy modellt. "),p()),t&2){let e=_(2);d(4),M("routerLink",e.registryRoute_$())}}function Is(t,n){if(t&1&&(c(0,"p",4),f(1,"Nincs enged\xE9lyezett embedding modell."),p(),c(2,"p"),f(3," Menj az "),c(4,"a",5),f(5,"Embedding Registry"),p(),f(6," oldalra, futtass "),c(7,"strong"),f(8,"Sync"),p(),f(9,"-et, majd az "),c(10,"code",6),f(11,"enabled"),p(),f(12," kapcsol\xF3val enged\xE9lyezz legal\xE1bb egy modellt. "),p()),t&2){let e=_(2);d(4),M("routerLink",e.registryRoute_$())}}function Ds(t,n){if(t&1&&(c(0,"div",1),A(1,Os,13,1)(2,Is,13,1),p()),t&2){let e=_();d(),k(e.registryKind()==="llm"?1:2)}}function Bs(t,n){if(t&1&&(c(0,"option",11),f(1),p()),t&2){let e=n.$implicit;M("value",e.value),d(),E(e.label)}}function zs(t,n){if(t&1){let e=N();c(0,"div",7)(1,"label",8),f(2),p(),c(3,"select",9),B("ngModelChange",function(i){I(e);let r=_(2);return D(r.handleProviderChange(i))}),c(4,"option",10),f(5,"\u2014 V\xE1lassz \u2014"),p(),Se(6,Bs,2,2,"option",11,$s),p()()}if(t&2){let e=_(2);d(2),E(e.providerLabel()),d(),M("ngModel",e.selectedProvider())("disabled",e.disabled()),d(3),ye(e.providerOptions_$())}}function Ns(t,n){if(t&1&&(c(0,"option",11),f(1),p()),t&2){let e=n.$implicit;M("value",e),d(),E(e)}}function Fs(t,n){t&1&&(c(0,"span",12),f(1,"A kiv\xE1lasztott providernek nincs enged\xE9lyezett modellje."),p())}function Us(t,n){if(t&1){let e=N();c(0,"div",2),A(1,zs,8,3,"div",7),c(2,"div",7)(3,"label",8),f(4),p(),c(5,"select",9),B("ngModelChange",function(i){I(e);let r=_();return D(r.handleModelChange(i))}),c(6,"option",10),f(7,"\u2014 V\xE1lassz modellt \u2014"),p(),Se(8,Ns,2,2,"option",11,bt),p(),A(10,Fs,2,0,"span",12),p()()}if(t&2){let e=_();d(),k(e.showProviderSelect_$()?1:-1),d(3),E(e.modelLabel()),d(),M("ngModel",e.selectedModel())("disabled",e.disabled()||e.modelOptions_$().length===0),d(3),ye(e.modelOptions_$()),d(2),k(e.modelOptions_$().length===0&&(e.selectedProvider()||e.providerFilter())?10:-1)}}var Ja=(()=>{class t{registrySsot_CS=ke(Vi);registryKind=me.required();selectedProvider=me("");selectedModel=me("");providerLabel=me("Provider");modelLabel=me("Modell");disabled=me(!1);providerFilter=me(void 0);providerChange=Ze();modelChange=Ze();isEmpty_$=T(()=>this.registryKind()==="llm"?this.registrySsot_CS.isLlmEmpty_$():this.registrySsot_CS.isEmbeddingEmpty_$());isLoading_$=T(()=>this.registryKind()==="llm"?this.registrySsot_CS.llmLoading_$():this.registrySsot_CS.embeddingLoading_$());providerOptions_$=T(()=>this.registryKind()==="llm"?this.registrySsot_CS.enabledLlmProviders_$():this.registrySsot_CS.enabledEmbeddingProviders_$());modelOptions_$=T(()=>{let e=this.providerFilter()??this.selectedProvider();return e?this.registrySsot_CS.getModelsForProvider(this.registryKind(),e):[]});registryRoute_$=T(()=>this.registryKind()==="llm"?"/model-registry":"/embedding-registry");showProviderSelect_$=T(()=>this.providerFilter()===void 0);ngOnInit(){this.registrySsot_CS.ensureLoaded(this.registryKind())}handleProviderChange(e){this.providerChange.emit(e)}handleModelChange(e){this.modelChange.emit(e)}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=Fe({type:t,selectors:[["app-s-registry-provider-model-select"]],inputs:{registryKind:[1,"registryKind"],selectedProvider:[1,"selectedProvider"],selectedModel:[1,"selectedModel"],providerLabel:[1,"providerLabel"],modelLabel:[1,"modelLabel"],disabled:[1,"disabled"],providerFilter:[1,"providerFilter"]},outputs:{providerChange:"providerChange",modelChange:"modelChange"},standalone:!0,features:[Ue],decls:3,vars:3,consts:[[1,"flex","items-center","gap-2","text-sm","text-zinc-400","py-1"],[1,"bg-red-900/30","border","border-red-600","rounded","px-3","py-2","text-sm","text-red-300","space-y-1"],[1,"flex","flex-col","gap-2"],[1,"animate-spin","inline-block","w-4","h-4","border-2","border-zinc-500","border-t-transparent","rounded-full"],[1,"font-semibold"],[1,"underline","text-blue-400","hover:text-blue-300",3,"routerLink"],[1,"text-xs","bg-zinc-800","px-1","rounded"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-zinc-400","uppercase","tracking-wide"],[1,"bg-zinc-800","border","border-zinc-600","rounded","px-2","py-1","text-sm","text-zinc-100",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"text-xs","text-zinc-500"]],template:function(o,i){o&1&&A(0,Ls,4,0,"div",0)(1,Ds,3,1,"div",1)(2,Us,11,5,"div",2),o&2&&(k(i.isLoading_$()?0:-1),d(),k(i.isEmpty_$()&&!i.isLoading_$()?1:-1),d(),k(!i.isEmpty_$()&&!i.isLoading_$()?2:-1))},dependencies:[He,ti,Qn,ei,Xn,Yn,Kn,Zn,Jn],encapsulation:2})}return t})();export{zi as a,w as b,Ge as c,Pt as d,Fi as e,Aa as f,$a as g,Vi as h,Ja as i};
|
|
73
|
-
//# sourceMappingURL=chunk-VPWEWXFD.js.map
|