@esri/solutions-components 1.2.0-next.3 → 1.2.0-next.31
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/README.md +2 -59
- package/dist/assets/config/appConfig.json.d.ts +2 -0
- package/dist/cdn/26CIPTQN.js +4 -0
- package/dist/cdn/26CIVFI7.js +4 -0
- package/dist/cdn/26ZMWP6Z.js +4 -0
- package/dist/cdn/27Q7IH64.js +4 -0
- package/dist/cdn/2BG4TYOD.js +19 -0
- package/dist/cdn/2GPTZNVI.js +4 -0
- package/dist/cdn/2H7IYD2F.js +4 -0
- package/dist/cdn/2IOG6JI2.js +18 -0
- package/dist/cdn/2ITFRR75.js +4 -0
- package/dist/cdn/2KCNUGHU.js +4 -0
- package/dist/cdn/2KXZDC54.js +18 -0
- package/dist/cdn/2KYKQUHK.js +4 -0
- package/dist/cdn/2NNRS6QJ.js +18 -0
- package/dist/cdn/2SHK7ROD.js +4 -0
- package/dist/cdn/2SQJ42QL.js +18 -0
- package/dist/cdn/2VBJ24WG.js +4 -0
- package/dist/cdn/2ZCAWD3F.js +4 -0
- package/dist/cdn/32OKNC7F.js +4 -0
- package/dist/cdn/3CE2JQRD.js +4 -0
- package/dist/cdn/3CQH3UC2.js +4 -0
- package/dist/cdn/3EF32E4B.js +4 -0
- package/dist/cdn/3FHCXLTP.js +4 -0
- package/dist/cdn/3FRGP6NR.js +4 -0
- package/dist/cdn/3FUHLW24.js +18 -0
- package/dist/cdn/3GKOLG3P.js +18 -0
- package/dist/cdn/3HXDXA5V.js +4 -0
- package/dist/cdn/3JZF6PQM.js +4 -0
- package/dist/cdn/3T7IYLMO.js +4 -0
- package/dist/cdn/3Y4L5QPG.js +18 -0
- package/dist/cdn/3YPVT2SF.js +4 -0
- package/dist/cdn/43KJ7ZGS.js +18 -0
- package/dist/cdn/44PDCPXG.js +18 -0
- package/dist/cdn/4B4DVSY5.js +4 -0
- package/dist/cdn/4BBPYTMJ.js +4 -0
- package/dist/cdn/4EWKLZQB.js +4 -0
- package/dist/cdn/4FCZ4AZ7.js +4 -0
- package/dist/cdn/4FLNSTTX.js +4 -0
- package/dist/cdn/4GSMGWKQ.js +8 -0
- package/dist/cdn/4Q6AVQE7.js +18 -0
- package/dist/cdn/4TH2AQWE.js +4 -0
- package/dist/cdn/4WHF6Z3F.js +18 -0
- package/dist/cdn/4WSQCQFN.js +4 -0
- package/dist/cdn/4X5LCVEW.js +4 -0
- package/dist/cdn/5NCLW4RU.js +4 -0
- package/dist/cdn/5RVBDF5G.js +4 -0
- package/dist/cdn/5VA6CQMM.js +18 -0
- package/dist/cdn/5XXUCV3V.js +4 -0
- package/dist/cdn/5YJPALMY.js +8 -0
- package/dist/cdn/64F2C7FH.js +4 -0
- package/dist/cdn/6AP7BDVC.js +21 -0
- package/dist/cdn/6BSQ4FI6.js +18 -0
- package/dist/cdn/6CDMAYRH.js +18 -0
- package/dist/cdn/6CRO3RMM.js +4 -0
- package/dist/cdn/6FQEMJLG.js +4 -0
- package/dist/cdn/6GINIJMQ.js +4 -0
- package/dist/cdn/6KMBNOZ3.js +4 -0
- package/dist/cdn/6KVTLN7I.js +4 -0
- package/dist/cdn/6L5JZ6CY.js +18 -0
- package/dist/cdn/6LD6WQRF.js +19 -0
- package/dist/cdn/6WIKCCYS.js +4 -0
- package/dist/cdn/6WXAPOXD.js +4 -0
- package/dist/cdn/6YSJ5I5V.js +4 -0
- package/dist/cdn/7BKAYHD3.js +4 -0
- package/dist/cdn/7DFRNIIN.js +4 -0
- package/dist/cdn/7GMTKVDP.js +4 -0
- package/dist/cdn/7KD2EYNO.js +18 -0
- package/dist/cdn/7KQEUB3J.js +4 -0
- package/dist/cdn/7LHHPXFC.js +4 -0
- package/dist/cdn/7P6J3DF5.js +4 -0
- package/dist/cdn/7SETBRJQ.js +4 -0
- package/dist/cdn/7WVIQXD6.js +4 -0
- package/dist/cdn/7Y73EJQK.js +25 -0
- package/dist/cdn/A3DZ652X.js +4 -0
- package/dist/cdn/A56WOLMU.js +4 -0
- package/dist/cdn/AA3OODB2.js +4 -0
- package/dist/cdn/AA5S43EA.js +4 -0
- package/dist/cdn/ABT5YG3I.js +4 -0
- package/dist/cdn/ADFNFEXR.js +18 -0
- package/dist/cdn/AIWE35NS.js +4 -0
- package/dist/cdn/APRQR7XL.js +4 -0
- package/dist/cdn/AQMXUMFV.js +4 -0
- package/dist/cdn/AT4QQS4E.js +4 -0
- package/dist/cdn/ATVG5O7I.js +4 -0
- package/dist/cdn/AWZINHAE.js +4 -0
- package/dist/cdn/AZY3OG5Z.js +4 -0
- package/dist/cdn/B3QZGAKL.js +4 -0
- package/dist/cdn/B6ACMA5B.js +4 -0
- package/dist/cdn/BCC43MR4.js +18 -0
- package/dist/cdn/BEXA43V2.js +4 -0
- package/dist/cdn/BG7THPYT.js +4 -0
- package/dist/cdn/BNT5DJGY.js +4 -0
- package/dist/cdn/BOJKJLWQ.js +18 -0
- package/dist/cdn/BYPEUWGZ.js +4 -0
- package/dist/cdn/BZCZ7VL4.js +4 -0
- package/dist/cdn/C5HMYUFH.js +4 -0
- package/dist/cdn/CCWREFPV.js +4 -0
- package/dist/cdn/CG54KNHW.js +4 -0
- package/dist/cdn/CHGMM5CE.js +4 -0
- package/dist/cdn/CN2QKE6N.js +4 -0
- package/dist/cdn/CPXQZ3SL.js +18 -0
- package/dist/cdn/CQRE2M4F.js +4 -0
- package/dist/cdn/CWFWYRT4.js +18 -0
- package/dist/cdn/CWPWSVA7.js +4 -0
- package/dist/cdn/CZ5X5637.js +4 -0
- package/dist/cdn/CZB5Z7GA.js +4 -0
- package/dist/cdn/D447J5GT.js +4 -0
- package/dist/cdn/D4QLXXIE.js +4 -0
- package/dist/cdn/DDU4V5V6.js +18 -0
- package/dist/cdn/DKSGQFJD.js +8 -0
- package/dist/cdn/DPRMLSWB.js +4 -0
- package/dist/cdn/DPX5WAK6.js +4 -0
- package/dist/cdn/DSESXQAF.js +4 -0
- package/dist/cdn/E6TINCRP.js +4 -0
- package/dist/cdn/E7AJJ7UX.js +294 -0
- package/dist/cdn/E7BTZQRN.js +4 -0
- package/dist/cdn/EB6Y35GJ.js +4 -0
- package/dist/cdn/EJ7ULT5F.js +18 -0
- package/dist/cdn/EJQOZRVC.js +4 -0
- package/dist/cdn/EKGKWXEB.js +4 -0
- package/dist/cdn/EKP4LAMB.js +160 -0
- package/dist/cdn/ELMP3CV5.js +18 -0
- package/dist/cdn/ESDGUCHM.js +4 -0
- package/dist/cdn/ESLRUAYH.js +4 -0
- package/dist/cdn/ET2O476H.js +4 -0
- package/dist/cdn/EWL35ZZV.js +18 -0
- package/dist/cdn/EZWJABZU.js +18 -0
- package/dist/cdn/F37R3OXJ.js +4 -0
- package/dist/cdn/F5A5P5TO.js +4 -0
- package/dist/cdn/F7FPLRM7.js +4 -0
- package/dist/cdn/FEHN4KPL.js +6 -0
- package/dist/cdn/FMCVXTPQ.js +4 -0
- package/dist/cdn/FWANARJ7.js +4 -0
- package/dist/cdn/FY32LSLJ.js +18 -0
- package/dist/cdn/FYNEWFSC.js +4 -0
- package/dist/cdn/G25LXNP5.js +4 -0
- package/dist/cdn/G3RMVSCM.js +4 -0
- package/dist/cdn/GA6IWULR.js +4 -0
- package/dist/cdn/GBNDVZDC.js +4 -0
- package/dist/cdn/GD2DMOOA.js +4 -0
- package/dist/cdn/GFCB6UVI.js +4 -0
- package/dist/cdn/GFIYGODA.js +4 -0
- package/dist/cdn/GHCAZWON.js +4 -0
- package/dist/cdn/GHELMKMF.js +18 -0
- package/dist/cdn/GMIEOLX5.js +4 -0
- package/dist/cdn/GMMJSQCO.js +4 -0
- package/dist/cdn/GPA7SOWJ.js +4 -0
- package/dist/cdn/GRFZ2FCA.js +4 -0
- package/dist/cdn/GWQCD476.js +4 -0
- package/dist/cdn/GXVFUFAX.js +4 -0
- package/dist/cdn/GZPX7N7S.js +4 -0
- package/dist/cdn/H3DUPFBO.js +4 -0
- package/dist/cdn/H3KAICJN.js +4 -0
- package/dist/cdn/H3QLA57G.js +4 -0
- package/dist/cdn/H6DRMF2A.js +4 -0
- package/dist/cdn/HAKLSL2C.js +4 -0
- package/dist/cdn/HBZOEYFG.js +4 -0
- package/dist/cdn/HGTZFPBI.js +4 -0
- package/dist/cdn/HJZYONIH.js +4 -0
- package/dist/cdn/HKGZIXAW.js +4 -0
- package/dist/cdn/HMVNFKGE.js +4 -0
- package/dist/cdn/HTJXA6GN.js +6 -0
- package/dist/cdn/HWS6ASNJ.js +4 -0
- package/dist/cdn/HZZL7AU3.js +4 -0
- package/dist/cdn/I3BWD2LX.js +4 -0
- package/dist/cdn/I5ZQTYAN.js +4 -0
- package/dist/cdn/IBGVJQ3D.js +4 -0
- package/dist/cdn/IDR3G6QJ.js +4 -0
- package/dist/cdn/IEP7RNEW.js +4 -0
- package/dist/cdn/IJ2XYITD.js +4 -0
- package/dist/cdn/ISBOWSOF.js +4 -0
- package/dist/cdn/IWFECRP6.js +18 -0
- package/dist/cdn/IZIT3Q6M.js +4 -0
- package/dist/cdn/J4HGP2TR.js +18 -0
- package/dist/cdn/J4KULWAC.js +4 -0
- package/dist/cdn/JM4DQYUF.js +4 -0
- package/dist/cdn/JPU2OPHN.js +4 -0
- package/dist/cdn/JPZU2BUG.js +4 -0
- package/dist/cdn/JSKC5AKJ.js +4 -0
- package/dist/cdn/JXU4HAWE.js +4 -0
- package/dist/cdn/K6QUJXWV.js +82 -0
- package/dist/cdn/KBQJQVZP.js +4 -0
- package/dist/cdn/KFTMUTWW.js +4 -0
- package/dist/cdn/KHJ277OT.js +4 -0
- package/dist/cdn/KQL6O3FK.js +18 -0
- package/dist/cdn/KV6E2SFN.js +4 -0
- package/dist/cdn/KYQKVXNP.js +4 -0
- package/dist/cdn/L563AYUP.js +4 -0
- package/dist/cdn/L7MBYDMB.js +4 -0
- package/dist/cdn/LDYUDDLO.js +4 -0
- package/dist/cdn/LEIIQ3A6.js +4 -0
- package/dist/cdn/LKKXUC52.js +4 -0
- package/dist/cdn/LKN6XSL5.js +4 -0
- package/dist/cdn/LORQGESC.js +4 -0
- package/dist/cdn/LPBE2FHF.js +4 -0
- package/dist/cdn/LR5BWGNC.js +4 -0
- package/dist/cdn/LV3XG53H.js +4 -0
- package/dist/cdn/LWHILP4F.js +18 -0
- package/dist/cdn/M3ZETHYO.js +18 -0
- package/dist/cdn/M7X7Z3UY.js +5 -0
- package/dist/cdn/MAZUKK57.js +4 -0
- package/dist/cdn/MB4RZXW5.js +4 -0
- package/dist/cdn/MBPSOAK3.js +4 -0
- package/dist/cdn/MD7MMSUZ.js +4 -0
- package/dist/cdn/ML4FQKR3.js +18 -0
- package/dist/cdn/MPUF2TPM.js +4 -0
- package/dist/cdn/MRSWEWWB.js +18 -0
- package/dist/cdn/MTURX67L.js +18 -0
- package/dist/cdn/N57KFLJ6.js +4 -0
- package/dist/cdn/NEMKCYHR.js +4 -0
- package/dist/cdn/NFRC2QRL.js +4 -0
- package/dist/cdn/NKNKTKHO.js +18 -0
- package/dist/cdn/NM44M4IW.js +4 -0
- package/dist/cdn/NMKJ5JOM.js +4 -0
- package/dist/cdn/NNA3NDDO.js +18 -0
- package/dist/cdn/NOCFSXVG.js +4 -0
- package/dist/cdn/NPAHQC2C.js +4 -0
- package/dist/cdn/NUOQWKHY.js +4 -0
- package/dist/cdn/NZDTEHWH.js +4 -0
- package/dist/cdn/NZQGONJV.js +4 -0
- package/dist/cdn/NZXEDJEA.js +18 -0
- package/dist/cdn/O7S3FCYR.js +4 -0
- package/dist/cdn/OEIUCKZ7.js +4 -0
- package/dist/cdn/OF2SUOO3.js +18 -0
- package/dist/cdn/OGODOUBS.js +4 -0
- package/dist/cdn/OMYBTBPL.js +18 -0
- package/dist/cdn/OO6FJRTO.js +4 -0
- package/dist/cdn/OPMQCAR3.js +4 -0
- package/dist/cdn/OVWM6TYS.js +4 -0
- package/dist/cdn/OXM25VGF.js +4 -0
- package/dist/cdn/P44724IG.js +19 -0
- package/dist/cdn/P7UXKWMX.js +4 -0
- package/dist/cdn/POMBIM2T.js +4 -0
- package/dist/cdn/POS6K2UE.js +4 -0
- package/dist/cdn/PST6SAY2.js +18 -0
- package/dist/cdn/Q52VS7JD.js +29 -0
- package/dist/cdn/Q67LCQR5.js +4 -0
- package/dist/cdn/Q6QBQRTG.js +4 -0
- package/dist/cdn/Q74EQS3O.js +4 -0
- package/dist/cdn/QCBF6D2I.js +4 -0
- package/dist/cdn/QDOHJRID.js +4 -0
- package/dist/cdn/QFL5XGCR.js +4 -0
- package/dist/cdn/QJMIHCYA.js +4 -0
- package/dist/cdn/QNZCOWWV.js +4 -0
- package/dist/cdn/QRBXPHG6.js +4 -0
- package/dist/cdn/QRYOQHNP.js +4 -0
- package/dist/cdn/QSYA2APQ.js +4 -0
- package/dist/cdn/QVJ7QQVE.js +4 -0
- package/dist/cdn/QWCZAOXA.js +18 -0
- package/dist/cdn/R2Y4BFBA.js +4 -0
- package/dist/cdn/R5U2WANE.js +4 -0
- package/dist/cdn/RCR3LGTO.js +4 -0
- package/dist/cdn/RDTGNHBE.js +18 -0
- package/dist/cdn/REITZYXX.js +4 -0
- package/dist/cdn/RKDFCEV6.js +9 -0
- package/dist/cdn/RO4XDPUY.js +4 -0
- package/dist/cdn/RQ5KHDEQ.js +18 -0
- package/dist/cdn/RSA4AWTB.js +4 -0
- package/dist/cdn/RX5LXQBF.js +4 -0
- package/dist/cdn/RZWTSUJZ.js +4 -0
- package/dist/cdn/SBR5OKMT.js +4 -0
- package/dist/cdn/SEJZOKLD.js +4 -0
- package/dist/cdn/SH26YDC5.js +4 -0
- package/dist/cdn/SHN4JOAS.js +4 -0
- package/dist/cdn/SJOOBDVL.js +4 -0
- package/dist/cdn/SLMFVTWE.js +4 -0
- package/dist/cdn/SMNRWNUV.js +4 -0
- package/dist/cdn/SUGCGTUE.js +4 -0
- package/dist/cdn/SXGZX66A.js +5 -0
- package/dist/cdn/T6U4HMPV.js +4 -0
- package/dist/cdn/TCD2EBVI.js +4 -0
- package/dist/cdn/TCPOSEXP.js +4 -0
- package/dist/cdn/TFFGKLXZ.js +4 -0
- package/dist/cdn/TG66S6FW.js +4 -0
- package/dist/cdn/TJ3ELT7Y.js +4 -0
- package/dist/cdn/TM3QT4MY.js +4 -0
- package/dist/cdn/TNAZAPLS.js +18 -0
- package/dist/cdn/TVBP7E34.js +4 -0
- package/dist/cdn/TWIBC25F.js +4 -0
- package/dist/cdn/TXF4E6LF.js +4 -0
- package/dist/cdn/TYQ5FGMD.js +18 -0
- package/dist/cdn/UC6KMQRH.js +4 -0
- package/dist/cdn/UCN2N7DB.js +4 -0
- package/dist/cdn/UE2IX2RL.js +4 -0
- package/dist/cdn/UEOJE65W.js +89 -0
- package/dist/cdn/UFE4G4RJ.js +4 -0
- package/dist/cdn/UHZSVZPK.js +4 -0
- package/dist/cdn/UJO2FYV6.js +4 -0
- package/dist/cdn/UNAA6QIJ.js +4 -0
- package/dist/cdn/UO7CVYHI.js +18 -0
- package/dist/cdn/UUPE5QOV.js +4 -0
- package/dist/cdn/UV2WNCQF.js +4 -0
- package/dist/cdn/UV62PU26.js +4 -0
- package/dist/cdn/UW3ZGSQU.js +9 -0
- package/dist/cdn/V2WCN5DX.js +18 -0
- package/dist/cdn/VNIE2PXO.js +20 -0
- package/dist/cdn/VP4CHRDT.js +4 -0
- package/dist/cdn/VQFP6AZI.js +18 -0
- package/dist/cdn/VQIF3HW2.js +4 -0
- package/dist/cdn/VWCVOS6M.js +4 -0
- package/dist/cdn/VXKH2VOP.js +4 -0
- package/dist/cdn/VY4RTYGY.js +4 -0
- package/dist/cdn/VZNCCCR4.js +4 -0
- package/dist/cdn/W3QOBRE2.js +18 -0
- package/dist/cdn/W3UAB5V7.js +4 -0
- package/dist/cdn/WBLATNLZ.js +4 -0
- package/dist/cdn/WDH5XQN5.js +18 -0
- package/dist/cdn/WDK5H56L.js +18 -0
- package/dist/cdn/WF6EYQVV.js +4 -0
- package/dist/cdn/WI5VAMGJ.js +18 -0
- package/dist/cdn/WKYLL2JX.js +4 -0
- package/dist/cdn/WPY4LC3K.js +4 -0
- package/dist/cdn/WQBQCO4B.js +4 -0
- package/dist/cdn/WQSKVYFF.js +4 -0
- package/dist/cdn/WTS5H53O.js +18 -0
- package/dist/cdn/WTZNO7PN.js +4 -0
- package/dist/cdn/X4ZKBTN4.js +4 -0
- package/dist/cdn/XCSYY3XX.js +387 -0
- package/dist/cdn/XDQDDZ44.js +4 -0
- package/dist/cdn/XH7Q5FKW.js +4 -0
- package/dist/cdn/XJMRQKZW.js +4 -0
- package/dist/cdn/XS3JXY2Q.js +4 -0
- package/dist/cdn/XZ627753.js +18 -0
- package/dist/cdn/Y6WUVKKJ.js +4 -0
- package/dist/cdn/YA5GFONS.js +18 -0
- package/dist/cdn/YARWRAKS.js +4 -0
- package/dist/cdn/YCB5OBM7.js +18 -0
- package/dist/cdn/YFF7HPPF.js +18 -0
- package/dist/cdn/YLYTCJC5.js +18 -0
- package/dist/cdn/YR2Q4MEZ.js +18 -0
- package/dist/cdn/YTP3FLYV.js +4 -0
- package/dist/cdn/Z4KFLWH7.js +18 -0
- package/dist/cdn/Z62OH3MN.js +18 -0
- package/dist/cdn/Z7WH3PY4.js +4 -0
- package/dist/cdn/ZCRLXSR3.js +4 -0
- package/dist/cdn/ZGABFMI5.js +4 -0
- package/dist/cdn/ZGCTHCV6.js +4 -0
- package/dist/cdn/ZKG2VPKR.js +4 -0
- package/dist/cdn/ZMPDT3BZ.js +18 -0
- package/dist/cdn/ZN4UP4WI.js +4 -0
- package/dist/cdn/ZOD4ZXTC.js +18 -0
- package/dist/cdn/ZS5WKHPW.js +4 -0
- package/dist/cdn/ZUJ3VJF5.js +4 -0
- package/dist/cdn/ZWPKTGXD.js +4 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -0
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -0
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-resource-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solution-resource-card/t9n/messages.json +1 -0
- package/dist/cdn/assets/solutions-all-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-shell/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-resources/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solutions-resources/t9n/messages.json +1 -0
- package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/Auth.js +43 -43
- package/dist/chunks/CardsFetcher.js +29 -30
- package/dist/chunks/appConfig.js +22 -16
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +30 -20
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +30 -25
- package/dist/chunks/interfaces.js +18 -19
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +2 -2
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +43 -38
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +92 -9
- package/dist/components/arcgis-solutions-assistant/customElement.js +1601 -62
- package/dist/components/arcgis-solutions-assistant/index.d.ts +5 -5
- package/dist/components/arcgis-solutions-assistant/index.js +5 -5
- package/dist/components/arcgis-solutions-assistant/utils/querySolutions.d.ts +22 -0
- package/dist/components/arcgis-solutions-assistant/utils/typewriter-text.d.ts +48 -0
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.d.ts +2 -2
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.d.ts +1 -2
- package/dist/components/card-manager/customElement.js +2 -2
- package/dist/components/consent-manager/customElement.d.ts +5 -5
- package/dist/components/consent-manager/customElement.js +142 -142
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.d.ts +3 -5
- package/dist/components/crowdsource-manager/customElement.js +8 -20
- package/dist/components/crowdsource-reporter/customElement.d.ts +1 -6
- package/dist/components/crowdsource-reporter/customElement.js +10 -10
- package/dist/components/crowdsource-reporter/index.d.ts +1 -1
- package/dist/components/crowdsource-reporter/index.js +1 -1
- package/dist/components/deduct-calculator/customElement.d.ts +0 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.d.ts +2 -6
- package/dist/components/delete-button/customElement.js +3 -3
- package/dist/components/delete-dialog/customElement.js +2 -2
- package/dist/components/edit-card/customElement.js +6 -6
- package/dist/components/feature-details/customElement.d.ts +0 -2
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.d.ts +1 -1
- package/dist/components/feature-list/customElement.js +44 -45
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.d.ts +0 -1
- package/dist/components/info-card/customElement.js +2 -2
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.d.ts +0 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +1 -2
- package/dist/components/layer-table/customElement.js +23 -23
- package/dist/components/map-card/customElement.d.ts +6 -9
- package/dist/components/map-card/customElement.js +26 -36
- package/dist/components/map-draw-tools/customElement.js +2 -2
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.d.ts +13 -11
- package/dist/components/map-layer-picker/customElement.js +24 -22
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +5 -5
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.d.ts +3 -5
- package/dist/components/map-select-tools/customElement.js +25 -25
- package/dist/components/map-tools/customElement.d.ts +4 -10
- package/dist/components/map-tools/customElement.js +62 -63
- package/dist/components/pci-calculator/customElement.js +9 -9
- package/dist/components/pdf-download/customElement.js +29 -37
- package/dist/components/public-notification/customElement.d.ts +5 -6
- package/dist/components/public-notification/customElement.js +10 -14
- package/dist/components/refine-selection/customElement.d.ts +1 -4
- package/dist/components/refine-selection/customElement.js +15 -15
- package/dist/components/selection-tool/customElement.d.ts +2 -2
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +24 -21
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.d.ts +0 -1
- package/dist/components/solution-delete-dialog/customElement.js +12 -10
- package/dist/components/solution-deploy-dialog/customElement.js +4 -4
- package/dist/components/solution-deployed-card/customElement.d.ts +4 -5
- package/dist/components/solution-deployed-card/customElement.js +34 -33
- package/dist/components/solution-deployed-card/index.d.ts +0 -1
- package/dist/components/solution-deployed-card/index.js +0 -1
- package/dist/components/solution-deployed-card-panel/customElement.d.ts +40 -0
- package/dist/components/solution-deployed-card-panel/customElement.js +118 -0
- package/dist/components/solution-deployed-card-panel/index.d.ts +16 -0
- package/dist/components/solution-deployed-card-panel/index.js +16 -0
- package/dist/components/solution-deploying-dialog/customElement.d.ts +2 -0
- package/dist/components/solution-deploying-dialog/customElement.js +81 -18
- package/dist/components/solution-details-card/customElement.js +7 -7
- package/dist/components/solution-details-panel/customElement.js +78 -88
- package/dist/components/solution-details-panel/index.d.ts +1 -1
- package/dist/components/solution-details-panel/index.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
- package/dist/components/solution-item-accordion/customElement.js +6 -2
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +116 -114
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-card/customElement.d.ts +37 -0
- package/dist/components/solution-resource-card/customElement.js +49 -0
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.d.ts +6 -2
- package/dist/components/solutions-all-panel/customElement.js +68 -52
- package/dist/components/solutions-all-panel/index.d.ts +1 -0
- package/dist/components/solutions-all-panel/index.js +1 -0
- package/dist/components/solutions-all-shell/customElement.js +29 -21
- package/dist/components/solutions-all-shell/index.d.ts +1 -1
- package/dist/components/solutions-all-shell/index.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +2 -1
- package/dist/components/solutions-deploy-app/customElement.js +58 -43
- package/dist/components/solutions-deploy-app/index.d.ts +2 -1
- package/dist/components/solutions-deploy-app/index.js +2 -1
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +5 -2
- package/dist/components/solutions-deploy-app-nav/customElement.js +92 -30
- package/dist/components/solutions-deploy-app-nav/index.d.ts +8 -2
- package/dist/components/solutions-deploy-app-nav/index.js +8 -2
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.d.ts +4 -2
- package/dist/components/solutions-deployed-panel/customElement.js +43 -38
- package/dist/components/solutions-deployed-shell/customElement.js +29 -22
- package/dist/components/solutions-deployed-shell/index.d.ts +2 -1
- package/dist/components/solutions-deployed-shell/index.js +2 -1
- package/dist/components/solutions-filter-panel/customElement.d.ts +9 -3
- package/dist/components/solutions-filter-panel/customElement.js +105 -58
- package/dist/components/solutions-filter-panel/index.d.ts +2 -0
- package/dist/components/solutions-filter-panel/index.js +2 -0
- package/dist/components/solutions-resource-panel/customElement.d.ts +17 -0
- package/dist/components/solutions-resource-panel/customElement.js +43 -0
- package/dist/components/solutions-resources/customElement.d.ts +7 -0
- package/dist/components/solutions-resources/customElement.js +105 -0
- package/dist/components/solutions-resources/index.d.ts +12 -0
- package/dist/components/solutions-resources/index.js +12 -0
- package/dist/components/solutions-resources-shell/customElement.d.ts +7 -0
- package/dist/components/solutions-resources-shell/customElement.js +43 -0
- package/dist/components/solutions-resources-shell/index.d.ts +5 -0
- package/dist/components/solutions-resources-shell/index.js +5 -0
- package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +11 -0
- package/dist/components/solutions-searchsort-toolbar/customElement.js +85 -65
- package/dist/components/solutions-searchsort-toolbar/index.d.ts +1 -1
- package/dist/components/solutions-searchsort-toolbar/index.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +1855 -1341
- package/dist/docs/docs.json +3118 -2598
- package/dist/docs/vscode.html-custom-data.json +148 -126
- package/dist/docs/web-types.json +500 -357
- package/dist/index.d.ts +105 -70
- package/dist/index.js +35 -36
- package/dist/loader.js +13 -13
- package/dist/types/lumina.d.ts +43 -34
- package/dist/types/preact.d.ts +48 -39
- package/dist/types/preact10.d.ts +53 -44
- package/dist/types/react.d.ts +53 -44
- package/dist/types/stencil.d.ts +43 -34
- package/dist/utils/Auth.d.ts +2 -0
- package/dist/utils/cardsHelpers.d.ts +14 -0
- package/dist/utils/helpers.d.ts +8 -1
- package/dist/utils/interfaces.d.ts +54 -27
- package/dist/utils/queryUtils.d.ts +2 -2
- package/package.json +27 -27
- package/dist/cdn/234YSPUP.js +0 -4
- package/dist/cdn/23F7WS6U.js +0 -18
- package/dist/cdn/25CBXU7A.js +0 -4
- package/dist/cdn/2B2JMPFN.js +0 -18
- package/dist/cdn/2BUXYBPD.js +0 -4
- package/dist/cdn/2C5JNPGO.js +0 -4
- package/dist/cdn/2FURWI7Y.js +0 -4
- package/dist/cdn/2IRNZ42K.js +0 -19
- package/dist/cdn/2L4XL6GG.js +0 -4
- package/dist/cdn/2LVJZ2NV.js +0 -4
- package/dist/cdn/2MHGYWN7.js +0 -4
- package/dist/cdn/2NLKFSQN.js +0 -4
- package/dist/cdn/2QVOCL3G.js +0 -4
- package/dist/cdn/2RVAN3GE.js +0 -20
- package/dist/cdn/2SZF4MLJ.js +0 -4
- package/dist/cdn/2TADDW4W.js +0 -8
- package/dist/cdn/2TADYBIO.js +0 -4
- package/dist/cdn/2TB3YOHP.js +0 -4
- package/dist/cdn/2W5UVWEN.js +0 -4
- package/dist/cdn/2WLLRLZ7.js +0 -4
- package/dist/cdn/2XCAUYR2.js +0 -4
- package/dist/cdn/2Y2EWR7H.js +0 -4
- package/dist/cdn/35UXOOHD.js +0 -4
- package/dist/cdn/36VZRVY2.js +0 -4
- package/dist/cdn/37TV2MQL.js +0 -4
- package/dist/cdn/3E7HOSDD.js +0 -4
- package/dist/cdn/3EU6WGZO.js +0 -4
- package/dist/cdn/3JMRSSB5.js +0 -4
- package/dist/cdn/3LHVSQGT.js +0 -4
- package/dist/cdn/3NJX3MB3.js +0 -18
- package/dist/cdn/3Q6YGL57.js +0 -18
- package/dist/cdn/3X7XYYFW.js +0 -4
- package/dist/cdn/45BXFKGN.js +0 -4
- package/dist/cdn/45HNI5CK.js +0 -4
- package/dist/cdn/46UDJ6Q6.js +0 -8
- package/dist/cdn/4DCZ2ZRI.js +0 -18
- package/dist/cdn/4EWREADY.js +0 -4
- package/dist/cdn/4GQA73TQ.js +0 -4
- package/dist/cdn/4I7PCYCC.js +0 -4
- package/dist/cdn/4LZZGUWP.js +0 -4
- package/dist/cdn/4MHLESLH.js +0 -4
- package/dist/cdn/4MQB77K7.js +0 -4
- package/dist/cdn/4OWQLN7N.js +0 -18
- package/dist/cdn/4PPJBKDP.js +0 -4
- package/dist/cdn/4QXAYPME.js +0 -4
- package/dist/cdn/53SCKT44.js +0 -4
- package/dist/cdn/5A6Y54WJ.js +0 -4
- package/dist/cdn/5G4RLNCB.js +0 -4
- package/dist/cdn/5O75XOMI.js +0 -4
- package/dist/cdn/5QF7JXXA.js +0 -4
- package/dist/cdn/5YYJDNXT.js +0 -4
- package/dist/cdn/5Z7ZG2XK.js +0 -4
- package/dist/cdn/62GUE4Z3.js +0 -4
- package/dist/cdn/62ISZVOF.js +0 -4
- package/dist/cdn/62NAX7KS.js +0 -18
- package/dist/cdn/62XTNKST.js +0 -4
- package/dist/cdn/64CYMAYN.js +0 -4
- package/dist/cdn/64JDACKK.js +0 -6
- package/dist/cdn/65AXSWLQ.js +0 -18
- package/dist/cdn/67P77RII.js +0 -4
- package/dist/cdn/6AWOKZWN.js +0 -4
- package/dist/cdn/6DO5FV6V.js +0 -18
- package/dist/cdn/6GNQRHUK.js +0 -4
- package/dist/cdn/6I4GOE3Y.js +0 -18
- package/dist/cdn/6JQ4EGSQ.js +0 -18
- package/dist/cdn/6NG5X7FZ.js +0 -294
- package/dist/cdn/6RAGUS7J.js +0 -4
- package/dist/cdn/6RBJGB46.js +0 -4
- package/dist/cdn/6ROK6EHE.js +0 -4
- package/dist/cdn/6V7JLIJ5.js +0 -9
- package/dist/cdn/74OGQVZH.js +0 -4
- package/dist/cdn/76WRSP3A.js +0 -4
- package/dist/cdn/7ASZTQ45.js +0 -4
- package/dist/cdn/7CPPZBTT.js +0 -6
- package/dist/cdn/7CPTTYU3.js +0 -4
- package/dist/cdn/7KWG3Z6K.js +0 -4
- package/dist/cdn/7L3YAL47.js +0 -4
- package/dist/cdn/7LSLVXGD.js +0 -18
- package/dist/cdn/7QYTSIGP.js +0 -18
- package/dist/cdn/7UCFU6IJ.js +0 -4
- package/dist/cdn/7YT73G5X.js +0 -4
- package/dist/cdn/7YX7AHVW.js +0 -4
- package/dist/cdn/AB76D7WU.js +0 -18
- package/dist/cdn/ABDWQOBA.js +0 -4
- package/dist/cdn/ACQPRV6Q.js +0 -4
- package/dist/cdn/AOC5GCMF.js +0 -4
- package/dist/cdn/APV7UOJA.js +0 -4
- package/dist/cdn/ARMMHG3S.js +0 -4
- package/dist/cdn/ARZ6JPA3.js +0 -4
- package/dist/cdn/ASDXD6UG.js +0 -4
- package/dist/cdn/AUCJ7ZFB.js +0 -18
- package/dist/cdn/AWOFK74F.js +0 -4
- package/dist/cdn/AX4BFIAK.js +0 -4
- package/dist/cdn/B24TVNRU.js +0 -4
- package/dist/cdn/B4OEZKHF.js +0 -4
- package/dist/cdn/B6FXHHYN.js +0 -4
- package/dist/cdn/BAFRQNS7.js +0 -18
- package/dist/cdn/BC4V4TZO.js +0 -4
- package/dist/cdn/BCTLXB2M.js +0 -4
- package/dist/cdn/BCXBU3KU.js +0 -4
- package/dist/cdn/BEBW4GAM.js +0 -4
- package/dist/cdn/BEHKUS5D.js +0 -4
- package/dist/cdn/BHUNFJZD.js +0 -4
- package/dist/cdn/BIT3Z27V.js +0 -18
- package/dist/cdn/BMUTEUNT.js +0 -4
- package/dist/cdn/BQT6MIAJ.js +0 -4
- package/dist/cdn/BSMBN633.js +0 -18
- package/dist/cdn/BVPEEMND.js +0 -4
- package/dist/cdn/BXQASW7J.js +0 -4
- package/dist/cdn/C27Y63JS.js +0 -4
- package/dist/cdn/C2ENPVZG.js +0 -8
- package/dist/cdn/C5M3F3HQ.js +0 -18
- package/dist/cdn/CAPI4G74.js +0 -18
- package/dist/cdn/CDKVJSXJ.js +0 -4
- package/dist/cdn/CLIFIAZI.js +0 -4
- package/dist/cdn/COPHOT6L.js +0 -4
- package/dist/cdn/CPVXVEVK.js +0 -4
- package/dist/cdn/CQ5FSDXN.js +0 -4
- package/dist/cdn/CRISXI26.js +0 -4
- package/dist/cdn/CT4XO4WW.js +0 -4
- package/dist/cdn/CTC7YRAU.js +0 -18
- package/dist/cdn/CVKEYABL.js +0 -4
- package/dist/cdn/CW3G7QFS.js +0 -18
- package/dist/cdn/CXWN46XU.js +0 -4
- package/dist/cdn/D2WVODK6.js +0 -4
- package/dist/cdn/D37JXHEV.js +0 -4
- package/dist/cdn/DA2RWFBR.js +0 -4
- package/dist/cdn/DB6YMDTC.js +0 -4
- package/dist/cdn/DCZHIM53.js +0 -4
- package/dist/cdn/DDTBMHDE.js +0 -385
- package/dist/cdn/DI4JRI7B.js +0 -4
- package/dist/cdn/DQAOXKZZ.js +0 -4
- package/dist/cdn/DQBTQ7WA.js +0 -18
- package/dist/cdn/DR37YWXO.js +0 -4
- package/dist/cdn/DTQPYWIB.js +0 -4
- package/dist/cdn/DX5ZAVMY.js +0 -4
- package/dist/cdn/E27JDCXQ.js +0 -4
- package/dist/cdn/EAQS76QZ.js +0 -4
- package/dist/cdn/ECC74KLR.js +0 -4
- package/dist/cdn/EEENCZTC.js +0 -4
- package/dist/cdn/EMWBS4WA.js +0 -18
- package/dist/cdn/EOUSEWUA.js +0 -4
- package/dist/cdn/EQ3MVJLN.js +0 -4
- package/dist/cdn/EWXCPV2X.js +0 -5
- package/dist/cdn/FD2JMETF.js +0 -18
- package/dist/cdn/FFAQ3R3T.js +0 -89
- package/dist/cdn/FFFY6LX5.js +0 -18
- package/dist/cdn/FHL2CPZT.js +0 -4
- package/dist/cdn/FID2OEYF.js +0 -4
- package/dist/cdn/FM7AGRNK.js +0 -4
- package/dist/cdn/FNE6U57W.js +0 -4
- package/dist/cdn/FNUPI5TB.js +0 -4
- package/dist/cdn/FO5BU27P.js +0 -4
- package/dist/cdn/FTF5P4HQ.js +0 -4
- package/dist/cdn/FZE37VRW.js +0 -4
- package/dist/cdn/GBLJSF3O.js +0 -18
- package/dist/cdn/GDNCH7FM.js +0 -4
- package/dist/cdn/GGN6M4IW.js +0 -4
- package/dist/cdn/GQEO4O6A.js +0 -4
- package/dist/cdn/GT7IOPMK.js +0 -4
- package/dist/cdn/GVXCIENL.js +0 -18
- package/dist/cdn/H2HVUDCU.js +0 -4
- package/dist/cdn/H35JZY2E.js +0 -4
- package/dist/cdn/HEO5YC5E.js +0 -4
- package/dist/cdn/HHILRSR3.js +0 -4
- package/dist/cdn/HL4GCE2D.js +0 -4
- package/dist/cdn/HS2SGNFL.js +0 -4
- package/dist/cdn/HZI7AR5Z.js +0 -4
- package/dist/cdn/I5HY4B6L.js +0 -18
- package/dist/cdn/I7OV3TY4.js +0 -4
- package/dist/cdn/IBFX4PWN.js +0 -18
- package/dist/cdn/IGWJ7WZQ.js +0 -4
- package/dist/cdn/IHL22CRN.js +0 -18
- package/dist/cdn/IJZ5WMRB.js +0 -4
- package/dist/cdn/ILOQ3A64.js +0 -4
- package/dist/cdn/ILW4KIM2.js +0 -4
- package/dist/cdn/IMTDRHTU.js +0 -4
- package/dist/cdn/IUNP2FEQ.js +0 -18
- package/dist/cdn/IVWVJPPG.js +0 -4
- package/dist/cdn/IZQ2GJTG.js +0 -4
- package/dist/cdn/J2VOTAZW.js +0 -4
- package/dist/cdn/JEBENHMN.js +0 -18
- package/dist/cdn/JJ33PDCY.js +0 -4
- package/dist/cdn/JKFTGZOQ.js +0 -4
- package/dist/cdn/JKXQNJEW.js +0 -4
- package/dist/cdn/JMBWWCV6.js +0 -4
- package/dist/cdn/JVKOJX2S.js +0 -4
- package/dist/cdn/JZC3ICX7.js +0 -4
- package/dist/cdn/JZIIJVDB.js +0 -4
- package/dist/cdn/K2UJVJCK.js +0 -18
- package/dist/cdn/K6ZPYGKA.js +0 -18
- package/dist/cdn/KEFKS53V.js +0 -4
- package/dist/cdn/KJ266TAM.js +0 -4
- package/dist/cdn/KMO43UXT.js +0 -25
- package/dist/cdn/KR4KMGJB.js +0 -18
- package/dist/cdn/KZFM7YTE.js +0 -18
- package/dist/cdn/L5GLQINC.js +0 -4
- package/dist/cdn/L5NUJEH6.js +0 -18
- package/dist/cdn/L7GUOPMU.js +0 -4
- package/dist/cdn/LBSP4K35.js +0 -4
- package/dist/cdn/LFNGTUHE.js +0 -4
- package/dist/cdn/LHJTXTF5.js +0 -4
- package/dist/cdn/LMVNSMV2.js +0 -29
- package/dist/cdn/LNNSONRN.js +0 -18
- package/dist/cdn/LOK5CX76.js +0 -4
- package/dist/cdn/LQJ7XXC5.js +0 -4
- package/dist/cdn/LYMRS7P6.js +0 -4
- package/dist/cdn/LZJPR4X7.js +0 -4
- package/dist/cdn/LZN5VEV6.js +0 -18
- package/dist/cdn/M2OW6QBQ.js +0 -4
- package/dist/cdn/M7I6TQVN.js +0 -4
- package/dist/cdn/MAS7EYR3.js +0 -4
- package/dist/cdn/MNNUTOFN.js +0 -4
- package/dist/cdn/MR53MAQ6.js +0 -4
- package/dist/cdn/N3IWMVZ5.js +0 -4
- package/dist/cdn/N4Z6EYO4.js +0 -18
- package/dist/cdn/N77DPTLF.js +0 -4
- package/dist/cdn/NCI5BIFP.js +0 -4
- package/dist/cdn/NG5AQI5M.js +0 -4
- package/dist/cdn/NHCXGI3Z.js +0 -4
- package/dist/cdn/NKYNFTHT.js +0 -4
- package/dist/cdn/NOVJRUUK.js +0 -4
- package/dist/cdn/NVM5PDRT.js +0 -18
- package/dist/cdn/NY6XIURZ.js +0 -82
- package/dist/cdn/NYQ4OZXY.js +0 -18
- package/dist/cdn/NZGGCRYY.js +0 -4
- package/dist/cdn/OA5X23GP.js +0 -4
- package/dist/cdn/OACHOZNB.js +0 -4
- package/dist/cdn/OC2PGR4W.js +0 -4
- package/dist/cdn/OCFWH2MU.js +0 -18
- package/dist/cdn/OCQ4MKGB.js +0 -4
- package/dist/cdn/OE4MMX4T.js +0 -4
- package/dist/cdn/OQPY5EJA.js +0 -4
- package/dist/cdn/OS52MWOK.js +0 -4
- package/dist/cdn/OXZXBSMK.js +0 -4
- package/dist/cdn/P3SCBY53.js +0 -4
- package/dist/cdn/P57EK6OT.js +0 -19
- package/dist/cdn/P5ETCO7H.js +0 -4
- package/dist/cdn/PFG6ZMZH.js +0 -18
- package/dist/cdn/PGDXLL6Y.js +0 -4
- package/dist/cdn/PIYRA3IK.js +0 -4
- package/dist/cdn/PKCDCMTI.js +0 -4
- package/dist/cdn/POBHMXVN.js +0 -4
- package/dist/cdn/PVBHNQMI.js +0 -9
- package/dist/cdn/PWNQBRTS.js +0 -4
- package/dist/cdn/PXL6KSAZ.js +0 -4
- package/dist/cdn/Q24E6XEJ.js +0 -4
- package/dist/cdn/Q4JKPYH3.js +0 -4
- package/dist/cdn/Q67QGD63.js +0 -4
- package/dist/cdn/QC4H73ZM.js +0 -4
- package/dist/cdn/QCUZ36WP.js +0 -4
- package/dist/cdn/QFI4JQHX.js +0 -4
- package/dist/cdn/QKG5BAFS.js +0 -4
- package/dist/cdn/QOFGAP4Z.js +0 -18
- package/dist/cdn/QVKG5VJZ.js +0 -4
- package/dist/cdn/QX5H4XZ4.js +0 -4
- package/dist/cdn/QZG7DRDQ.js +0 -18
- package/dist/cdn/R3RWVGJC.js +0 -4
- package/dist/cdn/RANKC4FB.js +0 -4
- package/dist/cdn/RC5HYK5Q.js +0 -4
- package/dist/cdn/RDYTTPKB.js +0 -4
- package/dist/cdn/RE4N56Q2.js +0 -18
- package/dist/cdn/RHL6NUIU.js +0 -4
- package/dist/cdn/RLKKLGY4.js +0 -18
- package/dist/cdn/RT67IRZT.js +0 -4
- package/dist/cdn/RUQI6YVJ.js +0 -4
- package/dist/cdn/RV4NW4XO.js +0 -4
- package/dist/cdn/RXU36Q5Q.js +0 -4
- package/dist/cdn/S3VHQFOC.js +0 -18
- package/dist/cdn/S4TJ224O.js +0 -18
- package/dist/cdn/SBVYCA5T.js +0 -4
- package/dist/cdn/SEQYFJN3.js +0 -4
- package/dist/cdn/SGFO45SM.js +0 -4
- package/dist/cdn/SL6H3SHV.js +0 -18
- package/dist/cdn/SOAYGRAI.js +0 -4
- package/dist/cdn/STTGVLDE.js +0 -4
- package/dist/cdn/SVGFOYCQ.js +0 -4
- package/dist/cdn/SVKD3HCO.js +0 -4
- package/dist/cdn/T2TMGGNG.js +0 -4
- package/dist/cdn/T5EHVA6S.js +0 -4
- package/dist/cdn/TANEEDP3.js +0 -4
- package/dist/cdn/TAXDYLNQ.js +0 -4
- package/dist/cdn/TKYFLPXP.js +0 -4
- package/dist/cdn/TLNGNV7G.js +0 -18
- package/dist/cdn/TN2UEPVT.js +0 -4
- package/dist/cdn/TNEMCYWH.js +0 -4
- package/dist/cdn/TO5P7NGV.js +0 -4
- package/dist/cdn/TO66PKJF.js +0 -4
- package/dist/cdn/TOJDM5UZ.js +0 -19
- package/dist/cdn/TOTUDQKH.js +0 -4
- package/dist/cdn/TPO5J63A.js +0 -4
- package/dist/cdn/TV2SJ62Y.js +0 -18
- package/dist/cdn/U6JEQWZ5.js +0 -18
- package/dist/cdn/U6QNATC3.js +0 -4
- package/dist/cdn/UAZL2ZIR.js +0 -4
- package/dist/cdn/UOSNNDWX.js +0 -4
- package/dist/cdn/UPKV6OGB.js +0 -4
- package/dist/cdn/URS66YMT.js +0 -4
- package/dist/cdn/UUFG2IPV.js +0 -4
- package/dist/cdn/UVJGULSN.js +0 -4
- package/dist/cdn/V75D7IJY.js +0 -4
- package/dist/cdn/VERTSCDD.js +0 -4
- package/dist/cdn/VF6P6PS2.js +0 -18
- package/dist/cdn/VMLVIBVL.js +0 -5
- package/dist/cdn/VPGE5727.js +0 -18
- package/dist/cdn/VTPTDE33.js +0 -4
- package/dist/cdn/VUQWNJXP.js +0 -4
- package/dist/cdn/VXDIW5WH.js +0 -4
- package/dist/cdn/VXRLLXEF.js +0 -4
- package/dist/cdn/VXVWFC3D.js +0 -4
- package/dist/cdn/VY7447H3.js +0 -4
- package/dist/cdn/W4XCDIQT.js +0 -18
- package/dist/cdn/WEERXYI7.js +0 -4
- package/dist/cdn/WERJXBD5.js +0 -4
- package/dist/cdn/WF2LBWF7.js +0 -4
- package/dist/cdn/WGSBFQ5N.js +0 -4
- package/dist/cdn/WJDDXVE5.js +0 -4
- package/dist/cdn/WVURBKDW.js +0 -18
- package/dist/cdn/WXYWYTJG.js +0 -18
- package/dist/cdn/WY23ERGW.js +0 -4
- package/dist/cdn/X74GGNIS.js +0 -18
- package/dist/cdn/XBL3EGZR.js +0 -4
- package/dist/cdn/XBOSZH7N.js +0 -4
- package/dist/cdn/XO3JIQCS.js +0 -4
- package/dist/cdn/XQ5KACZ3.js +0 -18
- package/dist/cdn/XQMJCJMU.js +0 -4
- package/dist/cdn/XU2SIPXX.js +0 -18
- package/dist/cdn/YADLOKQK.js +0 -4
- package/dist/cdn/YAGTTBJW.js +0 -4
- package/dist/cdn/YCJGW46U.js +0 -4
- package/dist/cdn/YERONLAQ.js +0 -4
- package/dist/cdn/YGKAUSDA.js +0 -18
- package/dist/cdn/YQ67CMRM.js +0 -4
- package/dist/cdn/YVGSFUVM.js +0 -18
- package/dist/cdn/Z2CJ77IR.js +0 -4
- package/dist/cdn/Z5K6UMGM.js +0 -4
- package/dist/cdn/ZANJ2QQO.js +0 -4
- package/dist/cdn/ZCHM4BFA.js +0 -21
- package/dist/cdn/ZGLJOWGH.js +0 -4
- package/dist/cdn/ZMGJ7NGP.js +0 -4
- package/dist/cdn/ZPGXJFXY.js +0 -4
- package/dist/cdn/ZQUJXA67.js +0 -4
- package/dist/cdn/ZUUYQFKK.js +0 -4
- package/dist/cdn/assets/solution-article-card/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/solution-article-card/t9n/messages.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/solutions-articles/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/solutions-articles/t9n/messages.json +0 -1
- package/dist/components/solution-article-card/customElement.d.ts +0 -37
- package/dist/components/solution-article-card/customElement.js +0 -49
- package/dist/components/solution-configure-dialog/customElement.d.ts +0 -30
- package/dist/components/solution-configure-dialog/customElement.js +0 -131
- package/dist/components/solution-configure-dialog/index.d.ts +0 -13
- package/dist/components/solution-configure-dialog/index.js +0 -13
- package/dist/components/solutions-article-panel/customElement.d.ts +0 -17
- package/dist/components/solutions-article-panel/customElement.js +0 -43
- package/dist/components/solutions-articles/customElement.d.ts +0 -7
- package/dist/components/solutions-articles/customElement.js +0 -79
- package/dist/components/solutions-articles/index.d.ts +0 -11
- package/dist/components/solutions-articles/index.js +0 -11
- package/dist/components/solutions-articles-shell/customElement.d.ts +0 -7
- package/dist/components/solutions-articles-shell/customElement.js +0 -43
- package/dist/components/solutions-articles-shell/index.d.ts +0 -5
- package/dist/components/solutions-articles-shell/index.js +0 -5
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.zh-TW.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.en.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.zh-TW.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.zh-TW.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.en.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.zh-TW.json +0 -0
- /package/dist/components/{solution-article-card → solution-resource-card}/index.d.ts +0 -0
- /package/dist/components/{solution-article-card → solution-resource-card}/index.js +0 -0
- /package/dist/components/{solutions-article-panel → solutions-resource-panel}/index.d.ts +0 -0
- /package/dist/components/{solutions-article-panel → solutions-resource-panel}/index.js +0 -0
|
@@ -1,81 +1,1620 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { LitElement as
|
|
1
|
+
import { c as we } from "../../chunks/runtime.js";
|
|
2
|
+
import { ref as te } from "lit/directives/ref.js";
|
|
3
|
+
import { u as ye } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as _e, createEvent as ve, safeClassMap as Te } from "@arcgis/lumina";
|
|
5
|
+
import { css as Se, html as b } from "lit";
|
|
6
|
+
import { render as $ } from "lit-html";
|
|
5
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
8
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
7
|
-
v1.2.0-next.
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
9
|
+
v1.2.0-next.31 */
|
|
10
|
+
const $e = Se`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content p:first-child{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.height-32-flex-auto{height:32px;flex:0 0 auto}.display-none{display:none}`;
|
|
11
|
+
/**
|
|
12
|
+
* @license
|
|
13
|
+
* Copyright 2025 Esri
|
|
14
|
+
*
|
|
15
|
+
* Licensed under the Apache License, Version 2.0 (the 'License');
|
|
16
|
+
* you may not use this file except in compliance with the License.
|
|
17
|
+
* You may obtain a copy of the License at
|
|
18
|
+
*
|
|
19
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
22
|
+
* distributed under the License is distributed on an 'AS IS' BASIS,
|
|
23
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
+
* See the License for the specific language governing permissions and
|
|
25
|
+
* limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
const Re = "https://www.arcgis.com/sharing/rest/content/items/";
|
|
28
|
+
async function Ie(n) {
|
|
29
|
+
return await Ae(n);
|
|
30
|
+
}
|
|
31
|
+
async function Ae(n) {
|
|
32
|
+
const e = Re + n + "?f=json";
|
|
33
|
+
try {
|
|
34
|
+
const t = await fetch(
|
|
35
|
+
e,
|
|
36
|
+
{ method: "GET" }
|
|
37
|
+
);
|
|
38
|
+
if (!t.ok)
|
|
39
|
+
throw new Error(`HTTP error! Status: ${t.status}`);
|
|
40
|
+
return await t.json();
|
|
41
|
+
} catch (t) {
|
|
42
|
+
return { error: t.message };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function j() {
|
|
46
|
+
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
47
|
+
}
|
|
48
|
+
var S = j();
|
|
49
|
+
function oe(n) {
|
|
50
|
+
S = n;
|
|
51
|
+
}
|
|
52
|
+
var L = { exec: () => null };
|
|
53
|
+
function g(n, e = "") {
|
|
54
|
+
let t = typeof n == "string" ? n : n.source, r = { replace: (s, a) => {
|
|
55
|
+
let i = typeof a == "string" ? a : a.source;
|
|
56
|
+
return i = i.replace(m.caret, "$1"), t = t.replace(s, i), r;
|
|
57
|
+
}, getRegex: () => new RegExp(t, e) };
|
|
58
|
+
return r;
|
|
59
|
+
}
|
|
60
|
+
var ze = (() => {
|
|
61
|
+
try {
|
|
62
|
+
return !!new RegExp("(?<=1)(?<!1)");
|
|
63
|
+
} catch {
|
|
64
|
+
return !1;
|
|
65
|
+
}
|
|
66
|
+
})(), m = { 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, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, 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, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i") }, Le = /^(?:[ \t]*(?:\n|$))+/, Ce = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, qe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ee = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, H = /(?:[*+-]|\d{1,9}[.)])/, ce = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, he = g(ce).replace(/bull/g, H).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(), Me = g(ce).replace(/bull/g, H).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(), G = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, W = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Be = g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", W).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Qe = g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, H).getRegex(), D = "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", K = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, De = g("^ {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", K).replace("tag", D).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ue = g(G).replace("hr", C).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex(), Ze = g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ue).getRegex(), X = { blockquote: Ze, code: Ce, def: Be, fences: qe, heading: Ee, hr: C, html: De, lheading: he, list: Qe, newline: Le, paragraph: ue, table: L, text: Pe }, se = g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex(), Ne = { ...X, lheading: Me, table: se, paragraph: g(G).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", D).getRegex() }, Oe = { ...X, html: g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", K).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: L, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: g(G).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
67
|
+
]`).replace("lheading", he).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Fe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ue = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, je = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Z = /[\p{P}\p{S}]/u, J = /[\s\p{P}\p{S}]/u, de = /[^\s\p{P}\p{S}]/u, He = g(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, J).getRegex(), ge = /(?!~)[\p{P}\p{S}]/u, Ge = /(?!~)[\s\p{P}\p{S}]/u, We = /(?:[^\s\p{P}\p{S}]|~)/u, Ke = g(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ze ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), fe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Xe = g(fe, "u").replace(/punct/g, Z).getRegex(), Je = g(fe, "u").replace(/punct/g, ge).getRegex(), ke = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ve = g(ke, "gu").replace(/notPunctSpace/g, de).replace(/punctSpace/g, J).replace(/punct/g, Z).getRegex(), Ye = g(ke, "gu").replace(/notPunctSpace/g, We).replace(/punctSpace/g, Ge).replace(/punct/g, ge).getRegex(), et = g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, de).replace(/punctSpace/g, J).replace(/punct/g, Z).getRegex(), tt = g(/\\(punct)/, "gu").replace(/punct/g, Z).getRegex(), st = g(/^<(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(), nt = g(K).replace("(?:-->|$)", "-->").getRegex(), rt = g("^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", nt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), P = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, it = g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", P).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), xe = g(/^!?\[(label)\]\[(ref)\]/).replace("label", P).replace("ref", W).getRegex(), be = g(/^!?\[(ref)\](?:\[\])?/).replace("ref", W).getRegex(), at = g("reflink|nolink(?!\\()", "g").replace("reflink", xe).replace("nolink", be).getRegex(), ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, V = { _backpedal: L, anyPunctuation: tt, autolink: st, blockSkip: Ke, br: pe, code: Ue, del: L, emStrongLDelim: Xe, emStrongRDelimAst: Ve, emStrongRDelimUnd: et, escape: Fe, link: it, nolink: be, punctuation: He, reflink: xe, reflinkSearch: at, tag: rt, text: je, url: L }, lt = { ...V, link: g(/^!?\[(label)\]\((.*?)\)/).replace("label", P).getRegex(), reflink: g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", P).getRegex() }, O = { ...V, emStrongRDelimAst: Ye, emStrongLDelim: Je, url: g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).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: g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() }, ot = { ...O, br: g(pe).replace("{2,}", "*").getRegex(), text: g(O.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, M = { normal: X, gfm: Ne, pedantic: Oe }, I = { normal: V, gfm: O, breaks: ot, pedantic: lt }, ct = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, re = (n) => ct[n];
|
|
68
|
+
function _(n, e) {
|
|
69
|
+
if (e) {
|
|
70
|
+
if (m.escapeTest.test(n)) return n.replace(m.escapeReplace, re);
|
|
71
|
+
} else if (m.escapeTestNoEncode.test(n)) return n.replace(m.escapeReplaceNoEncode, re);
|
|
72
|
+
return n;
|
|
73
|
+
}
|
|
74
|
+
function ie(n) {
|
|
75
|
+
try {
|
|
76
|
+
n = encodeURI(n).replace(m.percentDecode, "%");
|
|
77
|
+
} catch {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return n;
|
|
81
|
+
}
|
|
82
|
+
function ae(n, e) {
|
|
83
|
+
let t = n.replace(m.findPipe, (a, i, o) => {
|
|
84
|
+
let l = !1, h = i;
|
|
85
|
+
for (; --h >= 0 && o[h] === "\\"; ) l = !l;
|
|
86
|
+
return l ? "|" : " |";
|
|
87
|
+
}), r = t.split(m.splitPipe), s = 0;
|
|
88
|
+
if (r[0].trim() || r.shift(), r.length > 0 && !r.at(-1)?.trim() && r.pop(), e) if (r.length > e) r.splice(e);
|
|
89
|
+
else for (; r.length < e; ) r.push("");
|
|
90
|
+
for (; s < r.length; s++) r[s] = r[s].trim().replace(m.slashPipe, "|");
|
|
91
|
+
return r;
|
|
92
|
+
}
|
|
93
|
+
function A(n, e, t) {
|
|
94
|
+
let r = n.length;
|
|
95
|
+
if (r === 0) return "";
|
|
96
|
+
let s = 0;
|
|
97
|
+
for (; s < r && n.charAt(r - s - 1) === e; )
|
|
98
|
+
s++;
|
|
99
|
+
return n.slice(0, r - s);
|
|
100
|
+
}
|
|
101
|
+
function ht(n, e) {
|
|
102
|
+
if (n.indexOf(e[1]) === -1) return -1;
|
|
103
|
+
let t = 0;
|
|
104
|
+
for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
|
|
105
|
+
else if (n[r] === e[0]) t++;
|
|
106
|
+
else if (n[r] === e[1] && (t--, t < 0)) return r;
|
|
107
|
+
return t > 0 ? -2 : -1;
|
|
108
|
+
}
|
|
109
|
+
function le(n, e, t, r, s) {
|
|
110
|
+
let a = e.href, i = e.title || null, o = n[1].replace(s.other.outputLinkReplace, "$1");
|
|
111
|
+
r.state.inLink = !0;
|
|
112
|
+
let l = { type: n[0].charAt(0) === "!" ? "image" : "link", raw: t, href: a, title: i, text: o, tokens: r.inlineTokens(o) };
|
|
113
|
+
return r.state.inLink = !1, l;
|
|
114
|
+
}
|
|
115
|
+
function ut(n, e, t) {
|
|
116
|
+
let r = n.match(t.other.indentCodeCompensation);
|
|
117
|
+
if (r === null) return e;
|
|
118
|
+
let s = r[1];
|
|
119
|
+
return e.split(`
|
|
120
|
+
`).map((a) => {
|
|
121
|
+
let i = a.match(t.other.beginningSpace);
|
|
122
|
+
if (i === null) return a;
|
|
123
|
+
let [o] = i;
|
|
124
|
+
return o.length >= s.length ? a.slice(s.length) : a;
|
|
125
|
+
}).join(`
|
|
126
|
+
`);
|
|
127
|
+
}
|
|
128
|
+
var B = class {
|
|
129
|
+
options;
|
|
130
|
+
rules;
|
|
131
|
+
lexer;
|
|
132
|
+
constructor(n) {
|
|
133
|
+
this.options = n || S;
|
|
134
|
+
}
|
|
135
|
+
space(n) {
|
|
136
|
+
let e = this.rules.block.newline.exec(n);
|
|
137
|
+
if (e && e[0].length > 0) return { type: "space", raw: e[0] };
|
|
138
|
+
}
|
|
139
|
+
code(n) {
|
|
140
|
+
let e = this.rules.block.code.exec(n);
|
|
141
|
+
if (e) {
|
|
142
|
+
let t = e[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
143
|
+
return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? t : A(t, `
|
|
144
|
+
`) };
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
fences(n) {
|
|
148
|
+
let e = this.rules.block.fences.exec(n);
|
|
149
|
+
if (e) {
|
|
150
|
+
let t = e[0], r = ut(t, e[3] || "", this.rules);
|
|
151
|
+
return { type: "code", raw: t, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
heading(n) {
|
|
155
|
+
let e = this.rules.block.heading.exec(n);
|
|
156
|
+
if (e) {
|
|
157
|
+
let t = e[2].trim();
|
|
158
|
+
if (this.rules.other.endingHash.test(t)) {
|
|
159
|
+
let r = A(t, "#");
|
|
160
|
+
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (t = r.trim());
|
|
161
|
+
}
|
|
162
|
+
return { type: "heading", raw: e[0], depth: e[1].length, text: t, tokens: this.lexer.inline(t) };
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
hr(n) {
|
|
166
|
+
let e = this.rules.block.hr.exec(n);
|
|
167
|
+
if (e) return { type: "hr", raw: A(e[0], `
|
|
168
|
+
`) };
|
|
169
|
+
}
|
|
170
|
+
blockquote(n) {
|
|
171
|
+
let e = this.rules.block.blockquote.exec(n);
|
|
172
|
+
if (e) {
|
|
173
|
+
let t = A(e[0], `
|
|
174
|
+
`).split(`
|
|
175
|
+
`), r = "", s = "", a = [];
|
|
176
|
+
for (; t.length > 0; ) {
|
|
177
|
+
let i = !1, o = [], l;
|
|
178
|
+
for (l = 0; l < t.length; l++) if (this.rules.other.blockquoteStart.test(t[l])) o.push(t[l]), i = !0;
|
|
179
|
+
else if (!i) o.push(t[l]);
|
|
180
|
+
else break;
|
|
181
|
+
t = t.slice(l);
|
|
182
|
+
let h = o.join(`
|
|
183
|
+
`), c = h.replace(this.rules.other.blockquoteSetextReplace, `
|
|
184
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
185
|
+
r = r ? `${r}
|
|
186
|
+
${h}` : h, s = s ? `${s}
|
|
187
|
+
${c}` : c;
|
|
188
|
+
let u = this.lexer.state.top;
|
|
189
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, a, !0), this.lexer.state.top = u, t.length === 0) break;
|
|
190
|
+
let d = a.at(-1);
|
|
191
|
+
if (d?.type === "code") break;
|
|
192
|
+
if (d?.type === "blockquote") {
|
|
193
|
+
let k = d, p = k.raw + `
|
|
194
|
+
` + t.join(`
|
|
195
|
+
`), x = this.blockquote(p);
|
|
196
|
+
a[a.length - 1] = x, r = r.substring(0, r.length - k.raw.length) + x.raw, s = s.substring(0, s.length - k.text.length) + x.text;
|
|
197
|
+
break;
|
|
198
|
+
} else if (d?.type === "list") {
|
|
199
|
+
let k = d, p = k.raw + `
|
|
200
|
+
` + t.join(`
|
|
201
|
+
`), x = this.list(p);
|
|
202
|
+
a[a.length - 1] = x, r = r.substring(0, r.length - d.raw.length) + x.raw, s = s.substring(0, s.length - k.raw.length) + x.raw, t = p.substring(a.at(-1).raw.length).split(`
|
|
203
|
+
`);
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return { type: "blockquote", raw: r, tokens: a, text: s };
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
list(n) {
|
|
211
|
+
let e = this.rules.block.list.exec(n);
|
|
212
|
+
if (e) {
|
|
213
|
+
let t = e[1].trim(), r = t.length > 1, s = { type: "list", raw: "", ordered: r, start: r ? +t.slice(0, -1) : "", loose: !1, items: [] };
|
|
214
|
+
t = r ? `\\d{1,9}\\${t.slice(-1)}` : `\\${t}`, this.options.pedantic && (t = r ? t : "[*+-]");
|
|
215
|
+
let a = this.rules.other.listItemRegex(t), i = !1;
|
|
216
|
+
for (; n; ) {
|
|
217
|
+
let l = !1, h = "", c = "";
|
|
218
|
+
if (!(e = a.exec(n)) || this.rules.block.hr.test(n)) break;
|
|
219
|
+
h = e[0], n = n.substring(h.length);
|
|
220
|
+
let u = e[2].split(`
|
|
221
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (v) => " ".repeat(3 * v.length)), d = n.split(`
|
|
222
|
+
`, 1)[0], k = !u.trim(), p = 0;
|
|
223
|
+
if (this.options.pedantic ? (p = 2, c = u.trimStart()) : k ? p = e[1].length + 1 : (p = e[2].search(this.rules.other.nonSpaceChar), p = p > 4 ? 1 : p, c = u.slice(p), p += e[1].length), k && this.rules.other.blankLine.test(d) && (h += d + `
|
|
224
|
+
`, n = n.substring(d.length + 1), l = !0), !l) {
|
|
225
|
+
let v = this.rules.other.nextBulletRegex(p), q = this.rules.other.hrRegex(p), E = this.rules.other.fencesBeginRegex(p), ee = this.rules.other.headingBeginRegex(p), me = this.rules.other.htmlBeginRegex(p);
|
|
226
|
+
for (; n; ) {
|
|
227
|
+
let N = n.split(`
|
|
228
|
+
`, 1)[0], R;
|
|
229
|
+
if (d = N, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), R = d) : R = d.replace(this.rules.other.tabCharGlobal, " "), E.test(d) || ee.test(d) || me.test(d) || v.test(d) || q.test(d)) break;
|
|
230
|
+
if (R.search(this.rules.other.nonSpaceChar) >= p || !d.trim()) c += `
|
|
231
|
+
` + R.slice(p);
|
|
232
|
+
else {
|
|
233
|
+
if (k || u.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || E.test(u) || ee.test(u) || q.test(u)) break;
|
|
234
|
+
c += `
|
|
235
|
+
` + d;
|
|
236
|
+
}
|
|
237
|
+
!k && !d.trim() && (k = !0), h += N + `
|
|
238
|
+
`, n = n.substring(N.length + 1), u = R.slice(p);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
s.loose || (i ? s.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (i = !0));
|
|
242
|
+
let x = null;
|
|
243
|
+
this.options.gfm && (x = this.rules.other.listIsTask.exec(c), x && (c = c.replace(this.rules.other.listReplaceTask, ""))), s.items.push({ type: "list_item", raw: h, task: !!x, loose: !1, text: c, tokens: [] }), s.raw += h;
|
|
244
|
+
}
|
|
245
|
+
let o = s.items.at(-1);
|
|
246
|
+
if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
|
|
247
|
+
else return;
|
|
248
|
+
s.raw = s.raw.trimEnd();
|
|
249
|
+
for (let l of s.items) {
|
|
250
|
+
if (this.lexer.state.top = !1, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
|
|
251
|
+
let h = this.rules.other.listTaskCheckbox.exec(l.raw);
|
|
252
|
+
if (h) {
|
|
253
|
+
let c = { type: "checkbox", raw: h[0] + " ", checked: h[0] !== "[ ]" };
|
|
254
|
+
l.checked = c.checked, s.loose ? l.tokens[0] && ["paragraph", "text"].includes(l.tokens[0].type) && "tokens" in l.tokens[0] && l.tokens[0].tokens ? (l.tokens[0].raw = c.raw + l.tokens[0].raw, l.tokens[0].text = c.raw + l.tokens[0].text, l.tokens[0].tokens.unshift(c)) : l.tokens.unshift({ type: "paragraph", raw: c.raw, text: c.raw, tokens: [c] }) : l.tokens.unshift(c);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (!s.loose) {
|
|
258
|
+
let h = l.tokens.filter((u) => u.type === "space"), c = h.length > 0 && h.some((u) => this.rules.other.anyLine.test(u.raw));
|
|
259
|
+
s.loose = c;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (s.loose) for (let l of s.items) {
|
|
263
|
+
l.loose = !0;
|
|
264
|
+
for (let h of l.tokens) h.type === "text" && (h.type = "paragraph");
|
|
265
|
+
}
|
|
266
|
+
return s;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
html(n) {
|
|
270
|
+
let e = this.rules.block.html.exec(n);
|
|
271
|
+
if (e) return { type: "html", block: !0, raw: e[0], pre: e[1] === "pre" || e[1] === "script" || e[1] === "style", text: e[0] };
|
|
272
|
+
}
|
|
273
|
+
def(n) {
|
|
274
|
+
let e = this.rules.block.def.exec(n);
|
|
275
|
+
if (e) {
|
|
276
|
+
let t = e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), r = e[2] ? e[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", s = e[3] ? e[3].substring(1, e[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : e[3];
|
|
277
|
+
return { type: "def", tag: t, raw: e[0], href: r, title: s };
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
table(n) {
|
|
281
|
+
let e = this.rules.block.table.exec(n);
|
|
282
|
+
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
283
|
+
let t = ae(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), s = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
284
|
+
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
285
|
+
if (t.length === r.length) {
|
|
286
|
+
for (let i of r) this.rules.other.tableAlignRight.test(i) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(i) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(i) ? a.align.push("left") : a.align.push(null);
|
|
287
|
+
for (let i = 0; i < t.length; i++) a.header.push({ text: t[i], tokens: this.lexer.inline(t[i]), header: !0, align: a.align[i] });
|
|
288
|
+
for (let i of s) a.rows.push(ae(i, a.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: a.align[l] })));
|
|
289
|
+
return a;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
lheading(n) {
|
|
293
|
+
let e = this.rules.block.lheading.exec(n);
|
|
294
|
+
if (e) return { type: "heading", raw: e[0], depth: e[2].charAt(0) === "=" ? 1 : 2, text: e[1], tokens: this.lexer.inline(e[1]) };
|
|
295
|
+
}
|
|
296
|
+
paragraph(n) {
|
|
297
|
+
let e = this.rules.block.paragraph.exec(n);
|
|
298
|
+
if (e) {
|
|
299
|
+
let t = e[1].charAt(e[1].length - 1) === `
|
|
300
|
+
` ? e[1].slice(0, -1) : e[1];
|
|
301
|
+
return { type: "paragraph", raw: e[0], text: t, tokens: this.lexer.inline(t) };
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
text(n) {
|
|
305
|
+
let e = this.rules.block.text.exec(n);
|
|
306
|
+
if (e) return { type: "text", raw: e[0], text: e[0], tokens: this.lexer.inline(e[0]) };
|
|
307
|
+
}
|
|
308
|
+
escape(n) {
|
|
309
|
+
let e = this.rules.inline.escape.exec(n);
|
|
310
|
+
if (e) return { type: "escape", raw: e[0], text: e[1] };
|
|
311
|
+
}
|
|
312
|
+
tag(n) {
|
|
313
|
+
let e = this.rules.inline.tag.exec(n);
|
|
314
|
+
if (e) return !this.lexer.state.inLink && this.rules.other.startATag.test(e[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(e[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(e[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(e[0]) && (this.lexer.state.inRawBlock = !1), { type: "html", raw: e[0], inLink: this.lexer.state.inLink, inRawBlock: this.lexer.state.inRawBlock, block: !1, text: e[0] };
|
|
315
|
+
}
|
|
316
|
+
link(n) {
|
|
317
|
+
let e = this.rules.inline.link.exec(n);
|
|
318
|
+
if (e) {
|
|
319
|
+
let t = e[2].trim();
|
|
320
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(t)) {
|
|
321
|
+
if (!this.rules.other.endAngleBracket.test(t)) return;
|
|
322
|
+
let a = A(t.slice(0, -1), "\\");
|
|
323
|
+
if ((t.length - a.length) % 2 === 0) return;
|
|
324
|
+
} else {
|
|
325
|
+
let a = ht(e[2], "()");
|
|
326
|
+
if (a === -2) return;
|
|
327
|
+
if (a > -1) {
|
|
328
|
+
let i = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
329
|
+
e[2] = e[2].substring(0, a), e[0] = e[0].substring(0, i).trim(), e[3] = "";
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
let r = e[2], s = "";
|
|
333
|
+
if (this.options.pedantic) {
|
|
334
|
+
let a = this.rules.other.pedanticHrefTitle.exec(r);
|
|
335
|
+
a && (r = a[1], s = a[3]);
|
|
336
|
+
} else s = e[3] ? e[3].slice(1, -1) : "";
|
|
337
|
+
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? r = r.slice(1) : r = r.slice(1, -1)), le(e, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: s && s.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
reflink(n, e) {
|
|
341
|
+
let t;
|
|
342
|
+
if ((t = this.rules.inline.reflink.exec(n)) || (t = this.rules.inline.nolink.exec(n))) {
|
|
343
|
+
let r = (t[2] || t[1]).replace(this.rules.other.multipleSpaceGlobal, " "), s = e[r.toLowerCase()];
|
|
344
|
+
if (!s) {
|
|
345
|
+
let a = t[0].charAt(0);
|
|
346
|
+
return { type: "text", raw: a, text: a };
|
|
347
|
+
}
|
|
348
|
+
return le(t, s, t[0], this.lexer, this.rules);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
emStrong(n, e, t = "") {
|
|
352
|
+
let r = this.rules.inline.emStrongLDelim.exec(n);
|
|
353
|
+
if (!(!r || r[3] && t.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !t || this.rules.inline.punctuation.exec(t))) {
|
|
354
|
+
let s = [...r[0]].length - 1, a, i, o = s, l = 0, h = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
355
|
+
for (h.lastIndex = 0, e = e.slice(-1 * n.length + s); (r = h.exec(e)) != null; ) {
|
|
356
|
+
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
357
|
+
if (i = [...a].length, r[3] || r[4]) {
|
|
358
|
+
o += i;
|
|
359
|
+
continue;
|
|
360
|
+
} else if ((r[5] || r[6]) && s % 3 && !((s + i) % 3)) {
|
|
361
|
+
l += i;
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
if (o -= i, o > 0) continue;
|
|
365
|
+
i = Math.min(i, i + o + l);
|
|
366
|
+
let c = [...r[0]][0].length, u = n.slice(0, s + r.index + c + i);
|
|
367
|
+
if (Math.min(s, i) % 2) {
|
|
368
|
+
let k = u.slice(1, -1);
|
|
369
|
+
return { type: "em", raw: u, text: k, tokens: this.lexer.inlineTokens(k) };
|
|
370
|
+
}
|
|
371
|
+
let d = u.slice(2, -2);
|
|
372
|
+
return { type: "strong", raw: u, text: d, tokens: this.lexer.inlineTokens(d) };
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
codespan(n) {
|
|
377
|
+
let e = this.rules.inline.code.exec(n);
|
|
378
|
+
if (e) {
|
|
379
|
+
let t = e[2].replace(this.rules.other.newLineCharGlobal, " "), r = this.rules.other.nonSpaceChar.test(t), s = this.rules.other.startingSpaceChar.test(t) && this.rules.other.endingSpaceChar.test(t);
|
|
380
|
+
return r && s && (t = t.substring(1, t.length - 1)), { type: "codespan", raw: e[0], text: t };
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
br(n) {
|
|
384
|
+
let e = this.rules.inline.br.exec(n);
|
|
385
|
+
if (e) return { type: "br", raw: e[0] };
|
|
386
|
+
}
|
|
387
|
+
del(n) {
|
|
388
|
+
let e = this.rules.inline.del.exec(n);
|
|
389
|
+
if (e) return { type: "del", raw: e[0], text: e[2], tokens: this.lexer.inlineTokens(e[2]) };
|
|
390
|
+
}
|
|
391
|
+
autolink(n) {
|
|
392
|
+
let e = this.rules.inline.autolink.exec(n);
|
|
393
|
+
if (e) {
|
|
394
|
+
let t, r;
|
|
395
|
+
return e[2] === "@" ? (t = e[1], r = "mailto:" + t) : (t = e[1], r = t), { type: "link", raw: e[0], text: t, href: r, tokens: [{ type: "text", raw: t, text: t }] };
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
url(n) {
|
|
399
|
+
let e;
|
|
400
|
+
if (e = this.rules.inline.url.exec(n)) {
|
|
401
|
+
let t, r;
|
|
402
|
+
if (e[2] === "@") t = e[0], r = "mailto:" + t;
|
|
403
|
+
else {
|
|
404
|
+
let s;
|
|
405
|
+
do
|
|
406
|
+
s = e[0], e[0] = this.rules.inline._backpedal.exec(e[0])?.[0] ?? "";
|
|
407
|
+
while (s !== e[0]);
|
|
408
|
+
t = e[0], e[1] === "www." ? r = "http://" + e[0] : r = e[0];
|
|
409
|
+
}
|
|
410
|
+
return { type: "link", raw: e[0], text: t, href: r, tokens: [{ type: "text", raw: t, text: t }] };
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
inlineText(n) {
|
|
414
|
+
let e = this.rules.inline.text.exec(n);
|
|
415
|
+
if (e) {
|
|
416
|
+
let t = this.lexer.state.inRawBlock;
|
|
417
|
+
return { type: "text", raw: e[0], text: e[0], escaped: t };
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}, w = class F {
|
|
421
|
+
tokens;
|
|
422
|
+
options;
|
|
423
|
+
state;
|
|
424
|
+
tokenizer;
|
|
425
|
+
inlineQueue;
|
|
426
|
+
constructor(e) {
|
|
427
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || S, this.options.tokenizer = this.options.tokenizer || new B(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
428
|
+
let t = { other: m, block: M.normal, inline: I.normal };
|
|
429
|
+
this.options.pedantic ? (t.block = M.pedantic, t.inline = I.pedantic) : this.options.gfm && (t.block = M.gfm, this.options.breaks ? t.inline = I.breaks : t.inline = I.gfm), this.tokenizer.rules = t;
|
|
430
|
+
}
|
|
431
|
+
static get rules() {
|
|
432
|
+
return { block: M, inline: I };
|
|
433
|
+
}
|
|
434
|
+
static lex(e, t) {
|
|
435
|
+
return new F(t).lex(e);
|
|
436
|
+
}
|
|
437
|
+
static lexInline(e, t) {
|
|
438
|
+
return new F(t).inlineTokens(e);
|
|
439
|
+
}
|
|
440
|
+
lex(e) {
|
|
441
|
+
e = e.replace(m.carriageReturn, `
|
|
442
|
+
`), this.blockTokens(e, this.tokens);
|
|
443
|
+
for (let t = 0; t < this.inlineQueue.length; t++) {
|
|
444
|
+
let r = this.inlineQueue[t];
|
|
445
|
+
this.inlineTokens(r.src, r.tokens);
|
|
446
|
+
}
|
|
447
|
+
return this.inlineQueue = [], this.tokens;
|
|
448
|
+
}
|
|
449
|
+
blockTokens(e, t = [], r = !1) {
|
|
450
|
+
for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e; ) {
|
|
451
|
+
let s;
|
|
452
|
+
if (this.options.extensions?.block?.some((i) => (s = i.call({ lexer: this }, e, t)) ? (e = e.substring(s.raw.length), t.push(s), !0) : !1)) continue;
|
|
453
|
+
if (s = this.tokenizer.space(e)) {
|
|
454
|
+
e = e.substring(s.raw.length);
|
|
455
|
+
let i = t.at(-1);
|
|
456
|
+
s.raw.length === 1 && i !== void 0 ? i.raw += `
|
|
457
|
+
` : t.push(s);
|
|
458
|
+
continue;
|
|
459
|
+
}
|
|
460
|
+
if (s = this.tokenizer.code(e)) {
|
|
461
|
+
e = e.substring(s.raw.length);
|
|
462
|
+
let i = t.at(-1);
|
|
463
|
+
i?.type === "paragraph" || i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
464
|
+
`) ? "" : `
|
|
465
|
+
`) + s.raw, i.text += `
|
|
466
|
+
` + s.text, this.inlineQueue.at(-1).src = i.text) : t.push(s);
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
469
|
+
if (s = this.tokenizer.fences(e)) {
|
|
470
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
if (s = this.tokenizer.heading(e)) {
|
|
474
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if (s = this.tokenizer.hr(e)) {
|
|
478
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
if (s = this.tokenizer.blockquote(e)) {
|
|
482
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
if (s = this.tokenizer.list(e)) {
|
|
486
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (s = this.tokenizer.html(e)) {
|
|
490
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
if (s = this.tokenizer.def(e)) {
|
|
494
|
+
e = e.substring(s.raw.length);
|
|
495
|
+
let i = t.at(-1);
|
|
496
|
+
i?.type === "paragraph" || i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
497
|
+
`) ? "" : `
|
|
498
|
+
`) + s.raw, i.text += `
|
|
499
|
+
` + s.raw, this.inlineQueue.at(-1).src = i.text) : this.tokens.links[s.tag] || (this.tokens.links[s.tag] = { href: s.href, title: s.title }, t.push(s));
|
|
500
|
+
continue;
|
|
501
|
+
}
|
|
502
|
+
if (s = this.tokenizer.table(e)) {
|
|
503
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
if (s = this.tokenizer.lheading(e)) {
|
|
507
|
+
e = e.substring(s.raw.length), t.push(s);
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
let a = e;
|
|
511
|
+
if (this.options.extensions?.startBlock) {
|
|
512
|
+
let i = 1 / 0, o = e.slice(1), l;
|
|
513
|
+
this.options.extensions.startBlock.forEach((h) => {
|
|
514
|
+
l = h.call({ lexer: this }, o), typeof l == "number" && l >= 0 && (i = Math.min(i, l));
|
|
515
|
+
}), i < 1 / 0 && i >= 0 && (a = e.substring(0, i + 1));
|
|
516
|
+
}
|
|
517
|
+
if (this.state.top && (s = this.tokenizer.paragraph(a))) {
|
|
518
|
+
let i = t.at(-1);
|
|
519
|
+
r && i?.type === "paragraph" ? (i.raw += (i.raw.endsWith(`
|
|
520
|
+
`) ? "" : `
|
|
521
|
+
`) + s.raw, i.text += `
|
|
522
|
+
` + s.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : t.push(s), r = a.length !== e.length, e = e.substring(s.raw.length);
|
|
523
|
+
continue;
|
|
524
|
+
}
|
|
525
|
+
if (s = this.tokenizer.text(e)) {
|
|
526
|
+
e = e.substring(s.raw.length);
|
|
527
|
+
let i = t.at(-1);
|
|
528
|
+
i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
529
|
+
`) ? "" : `
|
|
530
|
+
`) + s.raw, i.text += `
|
|
531
|
+
` + s.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : t.push(s);
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
if (e) {
|
|
535
|
+
let i = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
536
|
+
if (this.options.silent) {
|
|
537
|
+
console.error(i);
|
|
538
|
+
break;
|
|
539
|
+
} else throw new Error(i);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return this.state.top = !0, t;
|
|
543
|
+
}
|
|
544
|
+
inline(e, t = []) {
|
|
545
|
+
return this.inlineQueue.push({ src: e, tokens: t }), t;
|
|
546
|
+
}
|
|
547
|
+
inlineTokens(e, t = []) {
|
|
548
|
+
let r = e, s = null;
|
|
549
|
+
if (this.tokens.links) {
|
|
550
|
+
let l = Object.keys(this.tokens.links);
|
|
551
|
+
if (l.length > 0) for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(r)) != null; ) l.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
552
|
+
}
|
|
553
|
+
for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(r)) != null; ) r = r.slice(0, s.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
554
|
+
let a;
|
|
555
|
+
for (; (s = this.tokenizer.rules.inline.blockSkip.exec(r)) != null; ) a = s[2] ? s[2].length : 0, r = r.slice(0, s.index + a) + "[" + "a".repeat(s[0].length - a - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
556
|
+
r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
|
|
557
|
+
let i = !1, o = "";
|
|
558
|
+
for (; e; ) {
|
|
559
|
+
i || (o = ""), i = !1;
|
|
560
|
+
let l;
|
|
561
|
+
if (this.options.extensions?.inline?.some((c) => (l = c.call({ lexer: this }, e, t)) ? (e = e.substring(l.raw.length), t.push(l), !0) : !1)) continue;
|
|
562
|
+
if (l = this.tokenizer.escape(e)) {
|
|
563
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
if (l = this.tokenizer.tag(e)) {
|
|
567
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
if (l = this.tokenizer.link(e)) {
|
|
571
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
if (l = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
575
|
+
e = e.substring(l.raw.length);
|
|
576
|
+
let c = t.at(-1);
|
|
577
|
+
l.type === "text" && c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : t.push(l);
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
if (l = this.tokenizer.emStrong(e, r, o)) {
|
|
581
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
if (l = this.tokenizer.codespan(e)) {
|
|
585
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
588
|
+
if (l = this.tokenizer.br(e)) {
|
|
589
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
if (l = this.tokenizer.del(e)) {
|
|
593
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
594
|
+
continue;
|
|
595
|
+
}
|
|
596
|
+
if (l = this.tokenizer.autolink(e)) {
|
|
597
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
if (!this.state.inLink && (l = this.tokenizer.url(e))) {
|
|
601
|
+
e = e.substring(l.raw.length), t.push(l);
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
604
|
+
let h = e;
|
|
605
|
+
if (this.options.extensions?.startInline) {
|
|
606
|
+
let c = 1 / 0, u = e.slice(1), d;
|
|
607
|
+
this.options.extensions.startInline.forEach((k) => {
|
|
608
|
+
d = k.call({ lexer: this }, u), typeof d == "number" && d >= 0 && (c = Math.min(c, d));
|
|
609
|
+
}), c < 1 / 0 && c >= 0 && (h = e.substring(0, c + 1));
|
|
610
|
+
}
|
|
611
|
+
if (l = this.tokenizer.inlineText(h)) {
|
|
612
|
+
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (o = l.raw.slice(-1)), i = !0;
|
|
613
|
+
let c = t.at(-1);
|
|
614
|
+
c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : t.push(l);
|
|
615
|
+
continue;
|
|
616
|
+
}
|
|
617
|
+
if (e) {
|
|
618
|
+
let c = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
619
|
+
if (this.options.silent) {
|
|
620
|
+
console.error(c);
|
|
621
|
+
break;
|
|
622
|
+
} else throw new Error(c);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return t;
|
|
626
|
+
}
|
|
627
|
+
}, Q = class {
|
|
628
|
+
options;
|
|
629
|
+
parser;
|
|
630
|
+
constructor(n) {
|
|
631
|
+
this.options = n || S;
|
|
632
|
+
}
|
|
633
|
+
space(n) {
|
|
634
|
+
return "";
|
|
635
|
+
}
|
|
636
|
+
code({ text: n, lang: e, escaped: t }) {
|
|
637
|
+
let r = (e || "").match(m.notSpaceStart)?.[0], s = n.replace(m.endingNewline, "") + `
|
|
638
|
+
`;
|
|
639
|
+
return r ? '<pre><code class="language-' + _(r) + '">' + (t ? s : _(s, !0)) + `</code></pre>
|
|
640
|
+
` : "<pre><code>" + (t ? s : _(s, !0)) + `</code></pre>
|
|
641
|
+
`;
|
|
642
|
+
}
|
|
643
|
+
blockquote({ tokens: n }) {
|
|
644
|
+
return `<blockquote>
|
|
645
|
+
${this.parser.parse(n)}</blockquote>
|
|
646
|
+
`;
|
|
647
|
+
}
|
|
648
|
+
html({ text: n }) {
|
|
649
|
+
return n;
|
|
650
|
+
}
|
|
651
|
+
def(n) {
|
|
652
|
+
return "";
|
|
653
|
+
}
|
|
654
|
+
heading({ tokens: n, depth: e }) {
|
|
655
|
+
return `<h${e}>${this.parser.parseInline(n)}</h${e}>
|
|
656
|
+
`;
|
|
657
|
+
}
|
|
658
|
+
hr(n) {
|
|
659
|
+
return `<hr>
|
|
660
|
+
`;
|
|
661
|
+
}
|
|
662
|
+
list(n) {
|
|
663
|
+
let e = n.ordered, t = n.start, r = "";
|
|
664
|
+
for (let i = 0; i < n.items.length; i++) {
|
|
665
|
+
let o = n.items[i];
|
|
666
|
+
r += this.listitem(o);
|
|
667
|
+
}
|
|
668
|
+
let s = e ? "ol" : "ul", a = e && t !== 1 ? ' start="' + t + '"' : "";
|
|
669
|
+
return "<" + s + a + `>
|
|
670
|
+
` + r + "</" + s + `>
|
|
671
|
+
`;
|
|
672
|
+
}
|
|
673
|
+
listitem(n) {
|
|
674
|
+
return `<li>${this.parser.parse(n.tokens)}</li>
|
|
675
|
+
`;
|
|
676
|
+
}
|
|
677
|
+
checkbox({ checked: n }) {
|
|
678
|
+
return "<input " + (n ? 'checked="" ' : "") + 'disabled="" type="checkbox"> ';
|
|
679
|
+
}
|
|
680
|
+
paragraph({ tokens: n }) {
|
|
681
|
+
return `<p>${this.parser.parseInline(n)}</p>
|
|
682
|
+
`;
|
|
683
|
+
}
|
|
684
|
+
table(n) {
|
|
685
|
+
let e = "", t = "";
|
|
686
|
+
for (let s = 0; s < n.header.length; s++) t += this.tablecell(n.header[s]);
|
|
687
|
+
e += this.tablerow({ text: t });
|
|
688
|
+
let r = "";
|
|
689
|
+
for (let s = 0; s < n.rows.length; s++) {
|
|
690
|
+
let a = n.rows[s];
|
|
691
|
+
t = "";
|
|
692
|
+
for (let i = 0; i < a.length; i++) t += this.tablecell(a[i]);
|
|
693
|
+
r += this.tablerow({ text: t });
|
|
694
|
+
}
|
|
695
|
+
return r && (r = `<tbody>${r}</tbody>`), `<table>
|
|
696
|
+
<thead>
|
|
697
|
+
` + e + `</thead>
|
|
698
|
+
` + r + `</table>
|
|
699
|
+
`;
|
|
700
|
+
}
|
|
701
|
+
tablerow({ text: n }) {
|
|
702
|
+
return `<tr>
|
|
703
|
+
${n}</tr>
|
|
704
|
+
`;
|
|
705
|
+
}
|
|
706
|
+
tablecell(n) {
|
|
707
|
+
let e = this.parser.parseInline(n.tokens), t = n.header ? "th" : "td";
|
|
708
|
+
return (n.align ? `<${t} align="${n.align}">` : `<${t}>`) + e + `</${t}>
|
|
709
|
+
`;
|
|
710
|
+
}
|
|
711
|
+
strong({ tokens: n }) {
|
|
712
|
+
return `<strong>${this.parser.parseInline(n)}</strong>`;
|
|
713
|
+
}
|
|
714
|
+
em({ tokens: n }) {
|
|
715
|
+
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
716
|
+
}
|
|
717
|
+
codespan({ text: n }) {
|
|
718
|
+
return `<code>${_(n, !0)}</code>`;
|
|
719
|
+
}
|
|
720
|
+
br(n) {
|
|
721
|
+
return "<br>";
|
|
722
|
+
}
|
|
723
|
+
del({ tokens: n }) {
|
|
724
|
+
return `<del>${this.parser.parseInline(n)}</del>`;
|
|
725
|
+
}
|
|
726
|
+
link({ href: n, title: e, tokens: t }) {
|
|
727
|
+
let r = this.parser.parseInline(t), s = ie(n);
|
|
728
|
+
if (s === null) return r;
|
|
729
|
+
n = s;
|
|
730
|
+
let a = '<a href="' + n + '"';
|
|
731
|
+
return e && (a += ' title="' + _(e) + '"'), a += ">" + r + "</a>", a;
|
|
732
|
+
}
|
|
733
|
+
image({ href: n, title: e, text: t, tokens: r }) {
|
|
734
|
+
r && (t = this.parser.parseInline(r, this.parser.textRenderer));
|
|
735
|
+
let s = ie(n);
|
|
736
|
+
if (s === null) return _(t);
|
|
737
|
+
n = s;
|
|
738
|
+
let a = `<img src="${n}" alt="${t}"`;
|
|
739
|
+
return e && (a += ` title="${_(e)}"`), a += ">", a;
|
|
740
|
+
}
|
|
741
|
+
text(n) {
|
|
742
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : _(n.text);
|
|
743
|
+
}
|
|
744
|
+
}, Y = class {
|
|
745
|
+
strong({ text: n }) {
|
|
746
|
+
return n;
|
|
747
|
+
}
|
|
748
|
+
em({ text: n }) {
|
|
749
|
+
return n;
|
|
750
|
+
}
|
|
751
|
+
codespan({ text: n }) {
|
|
752
|
+
return n;
|
|
753
|
+
}
|
|
754
|
+
del({ text: n }) {
|
|
755
|
+
return n;
|
|
756
|
+
}
|
|
757
|
+
html({ text: n }) {
|
|
758
|
+
return n;
|
|
759
|
+
}
|
|
760
|
+
text({ text: n }) {
|
|
761
|
+
return n;
|
|
762
|
+
}
|
|
763
|
+
link({ text: n }) {
|
|
764
|
+
return "" + n;
|
|
765
|
+
}
|
|
766
|
+
image({ text: n }) {
|
|
767
|
+
return "" + n;
|
|
768
|
+
}
|
|
769
|
+
br() {
|
|
770
|
+
return "";
|
|
771
|
+
}
|
|
772
|
+
checkbox({ raw: n }) {
|
|
773
|
+
return n;
|
|
774
|
+
}
|
|
775
|
+
}, y = class U {
|
|
776
|
+
options;
|
|
777
|
+
renderer;
|
|
778
|
+
textRenderer;
|
|
779
|
+
constructor(e) {
|
|
780
|
+
this.options = e || S, this.options.renderer = this.options.renderer || new Q(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Y();
|
|
781
|
+
}
|
|
782
|
+
static parse(e, t) {
|
|
783
|
+
return new U(t).parse(e);
|
|
784
|
+
}
|
|
785
|
+
static parseInline(e, t) {
|
|
786
|
+
return new U(t).parseInline(e);
|
|
787
|
+
}
|
|
788
|
+
parse(e) {
|
|
789
|
+
let t = "";
|
|
790
|
+
for (let r = 0; r < e.length; r++) {
|
|
791
|
+
let s = e[r];
|
|
792
|
+
if (this.options.extensions?.renderers?.[s.type]) {
|
|
793
|
+
let i = s, o = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
794
|
+
if (o !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(i.type)) {
|
|
795
|
+
t += o || "";
|
|
796
|
+
continue;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
let a = s;
|
|
800
|
+
switch (a.type) {
|
|
801
|
+
case "space": {
|
|
802
|
+
t += this.renderer.space(a);
|
|
803
|
+
break;
|
|
804
|
+
}
|
|
805
|
+
case "hr": {
|
|
806
|
+
t += this.renderer.hr(a);
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
case "heading": {
|
|
810
|
+
t += this.renderer.heading(a);
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
case "code": {
|
|
814
|
+
t += this.renderer.code(a);
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
case "table": {
|
|
818
|
+
t += this.renderer.table(a);
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
case "blockquote": {
|
|
822
|
+
t += this.renderer.blockquote(a);
|
|
823
|
+
break;
|
|
824
|
+
}
|
|
825
|
+
case "list": {
|
|
826
|
+
t += this.renderer.list(a);
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
case "checkbox": {
|
|
830
|
+
t += this.renderer.checkbox(a);
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
case "html": {
|
|
834
|
+
t += this.renderer.html(a);
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
case "def": {
|
|
838
|
+
t += this.renderer.def(a);
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
case "paragraph": {
|
|
842
|
+
t += this.renderer.paragraph(a);
|
|
843
|
+
break;
|
|
844
|
+
}
|
|
845
|
+
case "text": {
|
|
846
|
+
t += this.renderer.text(a);
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
default: {
|
|
850
|
+
let i = 'Token with "' + a.type + '" type was not found.';
|
|
851
|
+
if (this.options.silent) return console.error(i), "";
|
|
852
|
+
throw new Error(i);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
return t;
|
|
857
|
+
}
|
|
858
|
+
parseInline(e, t = this.renderer) {
|
|
859
|
+
let r = "";
|
|
860
|
+
for (let s = 0; s < e.length; s++) {
|
|
861
|
+
let a = e[s];
|
|
862
|
+
if (this.options.extensions?.renderers?.[a.type]) {
|
|
863
|
+
let o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
864
|
+
if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
|
|
865
|
+
r += o || "";
|
|
866
|
+
continue;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
let i = a;
|
|
870
|
+
switch (i.type) {
|
|
871
|
+
case "escape": {
|
|
872
|
+
r += t.text(i);
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
case "html": {
|
|
876
|
+
r += t.html(i);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
case "link": {
|
|
880
|
+
r += t.link(i);
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
case "image": {
|
|
884
|
+
r += t.image(i);
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
case "checkbox": {
|
|
888
|
+
r += t.checkbox(i);
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
case "strong": {
|
|
892
|
+
r += t.strong(i);
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
case "em": {
|
|
896
|
+
r += t.em(i);
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
case "codespan": {
|
|
900
|
+
r += t.codespan(i);
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
case "br": {
|
|
904
|
+
r += t.br(i);
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
case "del": {
|
|
908
|
+
r += t.del(i);
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
case "text": {
|
|
912
|
+
r += t.text(i);
|
|
913
|
+
break;
|
|
914
|
+
}
|
|
915
|
+
default: {
|
|
916
|
+
let o = 'Token with "' + i.type + '" type was not found.';
|
|
917
|
+
if (this.options.silent) return console.error(o), "";
|
|
918
|
+
throw new Error(o);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
return r;
|
|
923
|
+
}
|
|
924
|
+
}, z = class {
|
|
925
|
+
options;
|
|
926
|
+
block;
|
|
927
|
+
constructor(n) {
|
|
928
|
+
this.options = n || S;
|
|
929
|
+
}
|
|
930
|
+
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
|
|
931
|
+
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
932
|
+
preprocess(n) {
|
|
933
|
+
return n;
|
|
934
|
+
}
|
|
935
|
+
postprocess(n) {
|
|
936
|
+
return n;
|
|
937
|
+
}
|
|
938
|
+
processAllTokens(n) {
|
|
939
|
+
return n;
|
|
940
|
+
}
|
|
941
|
+
emStrongMask(n) {
|
|
942
|
+
return n;
|
|
943
|
+
}
|
|
944
|
+
provideLexer() {
|
|
945
|
+
return this.block ? w.lex : w.lexInline;
|
|
946
|
+
}
|
|
947
|
+
provideParser() {
|
|
948
|
+
return this.block ? y.parse : y.parseInline;
|
|
949
|
+
}
|
|
950
|
+
}, pt = class {
|
|
951
|
+
defaults = j();
|
|
952
|
+
options = this.setOptions;
|
|
953
|
+
parse = this.parseMarkdown(!0);
|
|
954
|
+
parseInline = this.parseMarkdown(!1);
|
|
955
|
+
Parser = y;
|
|
956
|
+
Renderer = Q;
|
|
957
|
+
TextRenderer = Y;
|
|
958
|
+
Lexer = w;
|
|
959
|
+
Tokenizer = B;
|
|
960
|
+
Hooks = z;
|
|
961
|
+
constructor(...n) {
|
|
962
|
+
this.use(...n);
|
|
963
|
+
}
|
|
964
|
+
walkTokens(n, e) {
|
|
965
|
+
let t = [];
|
|
966
|
+
for (let r of n) switch (t = t.concat(e.call(this, r)), r.type) {
|
|
967
|
+
case "table": {
|
|
968
|
+
let s = r;
|
|
969
|
+
for (let a of s.header) t = t.concat(this.walkTokens(a.tokens, e));
|
|
970
|
+
for (let a of s.rows) for (let i of a) t = t.concat(this.walkTokens(i.tokens, e));
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
case "list": {
|
|
974
|
+
let s = r;
|
|
975
|
+
t = t.concat(this.walkTokens(s.items, e));
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
default: {
|
|
979
|
+
let s = r;
|
|
980
|
+
this.defaults.extensions?.childTokens?.[s.type] ? this.defaults.extensions.childTokens[s.type].forEach((a) => {
|
|
981
|
+
let i = s[a].flat(1 / 0);
|
|
982
|
+
t = t.concat(this.walkTokens(i, e));
|
|
983
|
+
}) : s.tokens && (t = t.concat(this.walkTokens(s.tokens, e)));
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
return t;
|
|
987
|
+
}
|
|
988
|
+
use(...n) {
|
|
989
|
+
let e = this.defaults.extensions || { renderers: {}, childTokens: {} };
|
|
990
|
+
return n.forEach((t) => {
|
|
991
|
+
let r = { ...t };
|
|
992
|
+
if (r.async = this.defaults.async || r.async || !1, t.extensions && (t.extensions.forEach((s) => {
|
|
993
|
+
if (!s.name) throw new Error("extension name required");
|
|
994
|
+
if ("renderer" in s) {
|
|
995
|
+
let a = e.renderers[s.name];
|
|
996
|
+
a ? e.renderers[s.name] = function(...i) {
|
|
997
|
+
let o = s.renderer.apply(this, i);
|
|
998
|
+
return o === !1 && (o = a.apply(this, i)), o;
|
|
999
|
+
} : e.renderers[s.name] = s.renderer;
|
|
1000
|
+
}
|
|
1001
|
+
if ("tokenizer" in s) {
|
|
1002
|
+
if (!s.level || s.level !== "block" && s.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
|
|
1003
|
+
let a = e[s.level];
|
|
1004
|
+
a ? a.unshift(s.tokenizer) : e[s.level] = [s.tokenizer], s.start && (s.level === "block" ? e.startBlock ? e.startBlock.push(s.start) : e.startBlock = [s.start] : s.level === "inline" && (e.startInline ? e.startInline.push(s.start) : e.startInline = [s.start]));
|
|
1005
|
+
}
|
|
1006
|
+
"childTokens" in s && s.childTokens && (e.childTokens[s.name] = s.childTokens);
|
|
1007
|
+
}), r.extensions = e), t.renderer) {
|
|
1008
|
+
let s = this.defaults.renderer || new Q(this.defaults);
|
|
1009
|
+
for (let a in t.renderer) {
|
|
1010
|
+
if (!(a in s)) throw new Error(`renderer '${a}' does not exist`);
|
|
1011
|
+
if (["options", "parser"].includes(a)) continue;
|
|
1012
|
+
let i = a, o = t.renderer[i], l = s[i];
|
|
1013
|
+
s[i] = (...h) => {
|
|
1014
|
+
let c = o.apply(s, h);
|
|
1015
|
+
return c === !1 && (c = l.apply(s, h)), c || "";
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
r.renderer = s;
|
|
1019
|
+
}
|
|
1020
|
+
if (t.tokenizer) {
|
|
1021
|
+
let s = this.defaults.tokenizer || new B(this.defaults);
|
|
1022
|
+
for (let a in t.tokenizer) {
|
|
1023
|
+
if (!(a in s)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
1024
|
+
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
1025
|
+
let i = a, o = t.tokenizer[i], l = s[i];
|
|
1026
|
+
s[i] = (...h) => {
|
|
1027
|
+
let c = o.apply(s, h);
|
|
1028
|
+
return c === !1 && (c = l.apply(s, h)), c;
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
r.tokenizer = s;
|
|
1032
|
+
}
|
|
1033
|
+
if (t.hooks) {
|
|
1034
|
+
let s = this.defaults.hooks || new z();
|
|
1035
|
+
for (let a in t.hooks) {
|
|
1036
|
+
if (!(a in s)) throw new Error(`hook '${a}' does not exist`);
|
|
1037
|
+
if (["options", "block"].includes(a)) continue;
|
|
1038
|
+
let i = a, o = t.hooks[i], l = s[i];
|
|
1039
|
+
z.passThroughHooks.has(a) ? s[i] = (h) => {
|
|
1040
|
+
if (this.defaults.async && z.passThroughHooksRespectAsync.has(a)) return (async () => {
|
|
1041
|
+
let u = await o.call(s, h);
|
|
1042
|
+
return l.call(s, u);
|
|
1043
|
+
})();
|
|
1044
|
+
let c = o.call(s, h);
|
|
1045
|
+
return l.call(s, c);
|
|
1046
|
+
} : s[i] = (...h) => {
|
|
1047
|
+
if (this.defaults.async) return (async () => {
|
|
1048
|
+
let u = await o.apply(s, h);
|
|
1049
|
+
return u === !1 && (u = await l.apply(s, h)), u;
|
|
1050
|
+
})();
|
|
1051
|
+
let c = o.apply(s, h);
|
|
1052
|
+
return c === !1 && (c = l.apply(s, h)), c;
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
r.hooks = s;
|
|
1056
|
+
}
|
|
1057
|
+
if (t.walkTokens) {
|
|
1058
|
+
let s = this.defaults.walkTokens, a = t.walkTokens;
|
|
1059
|
+
r.walkTokens = function(i) {
|
|
1060
|
+
let o = [];
|
|
1061
|
+
return o.push(a.call(this, i)), s && (o = o.concat(s.call(this, i))), o;
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
this.defaults = { ...this.defaults, ...r };
|
|
1065
|
+
}), this;
|
|
1066
|
+
}
|
|
1067
|
+
setOptions(n) {
|
|
1068
|
+
return this.defaults = { ...this.defaults, ...n }, this;
|
|
1069
|
+
}
|
|
1070
|
+
lexer(n, e) {
|
|
1071
|
+
return w.lex(n, e ?? this.defaults);
|
|
1072
|
+
}
|
|
1073
|
+
parser(n, e) {
|
|
1074
|
+
return y.parse(n, e ?? this.defaults);
|
|
1075
|
+
}
|
|
1076
|
+
parseMarkdown(n) {
|
|
1077
|
+
return (e, t) => {
|
|
1078
|
+
let r = { ...t }, s = { ...this.defaults, ...r }, a = this.onError(!!s.silent, !!s.async);
|
|
1079
|
+
if (this.defaults.async === !0 && r.async === !1) return a(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."));
|
|
1080
|
+
if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
|
|
1081
|
+
if (typeof e != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
|
|
1082
|
+
if (s.hooks && (s.hooks.options = s, s.hooks.block = n), s.async) return (async () => {
|
|
1083
|
+
let i = s.hooks ? await s.hooks.preprocess(e) : e, o = await (s.hooks ? await s.hooks.provideLexer() : n ? w.lex : w.lexInline)(i, s), l = s.hooks ? await s.hooks.processAllTokens(o) : o;
|
|
1084
|
+
s.walkTokens && await Promise.all(this.walkTokens(l, s.walkTokens));
|
|
1085
|
+
let h = await (s.hooks ? await s.hooks.provideParser() : n ? y.parse : y.parseInline)(l, s);
|
|
1086
|
+
return s.hooks ? await s.hooks.postprocess(h) : h;
|
|
1087
|
+
})().catch(a);
|
|
47
1088
|
try {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1089
|
+
s.hooks && (e = s.hooks.preprocess(e));
|
|
1090
|
+
let i = (s.hooks ? s.hooks.provideLexer() : n ? w.lex : w.lexInline)(e, s);
|
|
1091
|
+
s.hooks && (i = s.hooks.processAllTokens(i)), s.walkTokens && this.walkTokens(i, s.walkTokens);
|
|
1092
|
+
let o = (s.hooks ? s.hooks.provideParser() : n ? y.parse : y.parseInline)(i, s);
|
|
1093
|
+
return s.hooks && (o = s.hooks.postprocess(o)), o;
|
|
1094
|
+
} catch (i) {
|
|
1095
|
+
return a(i);
|
|
51
1096
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
onError(n, e) {
|
|
1100
|
+
return (t) => {
|
|
1101
|
+
if (t.message += `
|
|
1102
|
+
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
1103
|
+
let r = "<p>An error occurred:</p><pre>" + _(t.message + "", !0) + "</pre>";
|
|
1104
|
+
return e ? Promise.resolve(r) : r;
|
|
1105
|
+
}
|
|
1106
|
+
if (e) return Promise.reject(t);
|
|
1107
|
+
throw t;
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
}, T = new pt();
|
|
1111
|
+
function f(n, e) {
|
|
1112
|
+
return T.parse(n, e);
|
|
1113
|
+
}
|
|
1114
|
+
f.options = f.setOptions = function(n) {
|
|
1115
|
+
return T.setOptions(n), f.defaults = T.defaults, oe(f.defaults), f;
|
|
1116
|
+
};
|
|
1117
|
+
f.getDefaults = j;
|
|
1118
|
+
f.defaults = S;
|
|
1119
|
+
f.use = function(...n) {
|
|
1120
|
+
return T.use(...n), f.defaults = T.defaults, oe(f.defaults), f;
|
|
1121
|
+
};
|
|
1122
|
+
f.walkTokens = function(n, e) {
|
|
1123
|
+
return T.walkTokens(n, e);
|
|
1124
|
+
};
|
|
1125
|
+
f.parseInline = T.parseInline;
|
|
1126
|
+
f.Parser = y;
|
|
1127
|
+
f.parser = y.parse;
|
|
1128
|
+
f.Renderer = Q;
|
|
1129
|
+
f.TextRenderer = Y;
|
|
1130
|
+
f.Lexer = w;
|
|
1131
|
+
f.lexer = w.lex;
|
|
1132
|
+
f.Tokenizer = B;
|
|
1133
|
+
f.Hooks = z;
|
|
1134
|
+
f.parse = f;
|
|
1135
|
+
f.options;
|
|
1136
|
+
f.setOptions;
|
|
1137
|
+
f.use;
|
|
1138
|
+
f.walkTokens;
|
|
1139
|
+
f.parseInline;
|
|
1140
|
+
y.parse;
|
|
1141
|
+
w.lex;
|
|
1142
|
+
/**
|
|
1143
|
+
* @license
|
|
1144
|
+
* Copyright 2025 Esri
|
|
1145
|
+
*
|
|
1146
|
+
* Licensed under the Apache License, Version 2.0 (the 'License');
|
|
1147
|
+
* you may not use this file except in compliance with the License.
|
|
1148
|
+
* You may obtain a copy of the License at
|
|
1149
|
+
*
|
|
1150
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1151
|
+
*
|
|
1152
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1153
|
+
* distributed under the License is distributed on an 'AS IS' BASIS,
|
|
1154
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1155
|
+
* See the License for the specific language governing permissions and
|
|
1156
|
+
* limitations under the License.
|
|
1157
|
+
*/
|
|
1158
|
+
class dt {
|
|
1159
|
+
/** how quickly the text should reveal */
|
|
1160
|
+
/*
|
|
1161
|
+
private _animationTimer: number | null = null;
|
|
1162
|
+
private isRevealing = false;
|
|
1163
|
+
private onTypingCompleted?: () => void;
|
|
1164
|
+
*/
|
|
1165
|
+
constructor(e = "") {
|
|
1166
|
+
this._text = "", this._displayedText = "", this._pendingText = "", this._text = e, this._pendingText = e;
|
|
1167
|
+
}
|
|
1168
|
+
/** Set or update the text that will be type written
|
|
1169
|
+
* @param text the new or updated string to type write
|
|
1170
|
+
*/
|
|
1171
|
+
setText(e) {
|
|
1172
|
+
this._text = e, this._displayedText && e.includes(this._displayedText) ? this._pendingText = e.substring(this._displayedText.length) : (this._pendingText = this._text, this._displayedText = "");
|
|
1173
|
+
}
|
|
1174
|
+
/** Gets the current text that is written out */
|
|
1175
|
+
getText() {
|
|
1176
|
+
return this._displayedText;
|
|
1177
|
+
}
|
|
1178
|
+
/** Clear all the text and state */
|
|
1179
|
+
clearText() {
|
|
1180
|
+
this._displayedText = "", this._text = "", this._pendingText = "";
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Updates the display text on what will be shown to the users.
|
|
1184
|
+
*/
|
|
1185
|
+
updateDisplayText() {
|
|
1186
|
+
if (this._pendingText.length > 0) {
|
|
1187
|
+
const e = this._pendingText[0];
|
|
1188
|
+
if (e === "[" || e === "<" || e === "!") {
|
|
1189
|
+
const t = this._matchMarkdownPattern(
|
|
1190
|
+
this._displayedText + this._pendingText,
|
|
1191
|
+
this._displayedText.length
|
|
1192
|
+
);
|
|
1193
|
+
if (t) {
|
|
1194
|
+
const r = t.end - t.start, s = this._pendingText.substring(0, r);
|
|
1195
|
+
this._displayedText += s, this._pendingText = this._pendingText.substring(r);
|
|
1196
|
+
} else
|
|
1197
|
+
this._displayedText += e, this._pendingText = this._pendingText.substring(1);
|
|
1198
|
+
} else
|
|
1199
|
+
this._displayedText += e, this._pendingText = this._pendingText.substring(1);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Check the string for any markdown pattern and the length of that pattern.
|
|
1204
|
+
* @param text the string to check markdown
|
|
1205
|
+
* @param position The current position in the text to check
|
|
1206
|
+
* @returns the start and end positions.
|
|
1207
|
+
*/
|
|
1208
|
+
_matchMarkdownPattern(e, t) {
|
|
1209
|
+
const r = [
|
|
1210
|
+
/<sup>\[\[[^\]]+\]\]\([^)]+\)<\/sup>/,
|
|
1211
|
+
// <sup>[[1]](url)</sup>
|
|
1212
|
+
/\[\[[^\]]+\]\]\([^)]+\)/,
|
|
1213
|
+
// [[1]](url)
|
|
1214
|
+
/\[[^\]]+\]\([^)]+\)/,
|
|
1215
|
+
// [text](url)
|
|
1216
|
+
/!\[[^\]]*\]\([^)]+\)/
|
|
1217
|
+
// 
|
|
1218
|
+
], s = e.substring(t);
|
|
1219
|
+
for (const a of r) {
|
|
1220
|
+
const i = s.match(a);
|
|
1221
|
+
if (i && i.index === 0)
|
|
1222
|
+
return {
|
|
1223
|
+
start: t,
|
|
1224
|
+
end: t + i[0].length
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
return null;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
class gt extends _e {
|
|
1231
|
+
constructor() {
|
|
1232
|
+
super(), this.serverRoot = "https://aiservices-beta.arcgis.com", this.token = null, this.open = !1, this.conversationStore = {
|
|
57
1233
|
conversationId: null,
|
|
58
1234
|
inquiryId: null,
|
|
59
1235
|
ackSequenceNumber: null
|
|
60
|
-
}, this.
|
|
1236
|
+
}, this._currentResponse = "", this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations = ye({ name: "arcgis-solutions-assistant", blocking: !0 }), this._isTyping = !1, this.closeAssistant = ve(), this._resetConversation = () => {
|
|
1237
|
+
this.conversationStore.conversationId = null, this.conversationStore.inquiryId = null, this.conversationStore.ackSequenceNumber = null;
|
|
1238
|
+
}, this._setMessageContainerRef = (e) => {
|
|
1239
|
+
this._chatContainer = e;
|
|
1240
|
+
}, this._setInputRef = (e) => {
|
|
1241
|
+
this._inputRef = e, this._inputRef.addEventListener("keydown", (t) => {
|
|
1242
|
+
t.key === "Enter" && !t.shiftKey && (t.preventDefault(), this.handleSendMessage());
|
|
1243
|
+
}), setTimeout(() => {
|
|
1244
|
+
this._inputRef?.focus();
|
|
1245
|
+
}, 100);
|
|
1246
|
+
}, this._submitQuestion = (e) => {
|
|
1247
|
+
this._inputRef && (this._inputRef.value = e, this.handleSendMessage());
|
|
1248
|
+
}, this.listenOn(window, "submitQuestion", (e) => {
|
|
1249
|
+
this._submitQuestion(e.detail);
|
|
1250
|
+
});
|
|
61
1251
|
}
|
|
62
1252
|
static {
|
|
63
|
-
this.properties = { conversationStore: 16,
|
|
1253
|
+
this.properties = { serverRoot: 1, token: 1, open: 5, conversationStore: 16, _currentResponse: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _translations: 16, _isTyping: 16 };
|
|
64
1254
|
}
|
|
65
1255
|
static {
|
|
66
|
-
this.styles =
|
|
1256
|
+
this.styles = $e;
|
|
1257
|
+
}
|
|
1258
|
+
get solutionAIurl() {
|
|
1259
|
+
return `${this.serverRoot}/skills/solution_deployment/chat`;
|
|
1260
|
+
}
|
|
1261
|
+
get docAIurl() {
|
|
1262
|
+
return `${this.serverRoot}/skills/doc_ai_assistant/chat`;
|
|
1263
|
+
}
|
|
1264
|
+
async handleSendMessage() {
|
|
1265
|
+
if (!this._inputRef?.value.trim())
|
|
1266
|
+
return;
|
|
1267
|
+
this._isLoading = !0;
|
|
1268
|
+
const e = this._inputRef.value.trim();
|
|
1269
|
+
this._inputRef.value = "";
|
|
1270
|
+
let t = {
|
|
1271
|
+
message: e,
|
|
1272
|
+
context: {
|
|
1273
|
+
debug: !1,
|
|
1274
|
+
kind: "SolutionRequest"
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
if (this.conversationStore.conversationId !== null) {
|
|
1278
|
+
if (t.conversationId = this.conversationStore.conversationId, this.token) {
|
|
1279
|
+
const r = {
|
|
1280
|
+
author: "human",
|
|
1281
|
+
conversationId: this.conversationStore.conversationId ? this.conversationStore.conversationId : "",
|
|
1282
|
+
message: e,
|
|
1283
|
+
render: this._renderSimpleTextMessage(e, "human", "", "Other")
|
|
1284
|
+
};
|
|
1285
|
+
this.messages = [...this.messages, r];
|
|
1286
|
+
const s = await this.requestAIServer(t, this.token, this.solutionAIurl);
|
|
1287
|
+
this.loopRequest(s, this.token, this.solutionAIurl);
|
|
1288
|
+
}
|
|
1289
|
+
} else if (this.token) {
|
|
1290
|
+
const r = {
|
|
1291
|
+
author: "human",
|
|
1292
|
+
message: e,
|
|
1293
|
+
render: this._renderSimpleTextMessage(e, "human", "", "Other")
|
|
1294
|
+
};
|
|
1295
|
+
this.messages = [...this.messages, r];
|
|
1296
|
+
const s = await this.requestAIServer(t, this.token, this.solutionAIurl);
|
|
1297
|
+
this.conversationStore.conversationId = s.conversationId, this.conversationStore.inquiryId = s.inquiryId, this.conversationStore.ackSequenceNumber = s.sequenceNumber, this.loopRequest(s, this.token, this.solutionAIurl);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
async loopRequest(e, t, r) {
|
|
1301
|
+
let s = r;
|
|
1302
|
+
this._isLoading = !0;
|
|
1303
|
+
const a = document.createElement("div");
|
|
1304
|
+
a.classList.add("response-message", "message-content");
|
|
1305
|
+
let i = document.createElement("div");
|
|
1306
|
+
i.classList.add("display-none");
|
|
1307
|
+
const o = document.createElement("div");
|
|
1308
|
+
o.classList.add("display-none");
|
|
1309
|
+
const l = this._renderResponseBlock(a, i, o), h = new dt(this._currentResponse), c = {
|
|
1310
|
+
author: "ai",
|
|
1311
|
+
conversationId: e.conversationId,
|
|
1312
|
+
message: e.message ?? "",
|
|
1313
|
+
render: l
|
|
1314
|
+
};
|
|
1315
|
+
for (this.messages.push(c); e.hasMore; ) {
|
|
1316
|
+
await new Promise((x) => setTimeout(x, 500));
|
|
1317
|
+
let p = {
|
|
1318
|
+
conversationId: e.conversationId,
|
|
1319
|
+
ackSequenceNumber: e.sequenceNumber,
|
|
1320
|
+
inquiryId: e.inquiryId
|
|
1321
|
+
};
|
|
1322
|
+
if (e.context)
|
|
1323
|
+
if (this.conversationStore.context = e.context, e.context.results && !e.context.intent)
|
|
1324
|
+
for (const x of e.context.results)
|
|
1325
|
+
this._currentResponse = x.reply, this._currentResponse !== "" && (this._isLoading = !1, this._isTyping = !0, this._startTypeWriter(h, this._currentResponse, a, i, o)), e = await this.requestAIServer(p, t, s);
|
|
1326
|
+
else if (e.context.intent === "Solution question") {
|
|
1327
|
+
const x = {
|
|
1328
|
+
message: e.message,
|
|
1329
|
+
conversationId: p.conversationId,
|
|
1330
|
+
context: {
|
|
1331
|
+
kind: "DocAIAssistantRequest",
|
|
1332
|
+
filters: {
|
|
1333
|
+
products: "ArcGIS Solutions"
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
};
|
|
1337
|
+
s = this.docAIurl, e = await this.requestAIServer(x, t, s);
|
|
1338
|
+
} else
|
|
1339
|
+
this._currentResponse = e.message ?? "", e.context.kind && e.context.kind.toLowerCase() === "ArcGISErrorAsContext".toLowerCase() && (this._currentResponse = this._translations.genericErrorMessage), this._currentResponse !== "" && (this._isLoading = !1, this._isTyping = !0, this._startTypeWriter(h, this._currentResponse, a, i, o)), e = await this.requestAIServer(p, t, s);
|
|
1340
|
+
else
|
|
1341
|
+
this._currentResponse = e.message ?? "", this._currentResponse !== "" && (this._isLoading = !1, this._isTyping = !0, this._startTypeWriter(h, this._currentResponse, a, i, o)), e = await this.requestAIServer(p, t, s);
|
|
1342
|
+
}
|
|
1343
|
+
this._isLoading = !1;
|
|
1344
|
+
const { context: u } = this.conversationStore, d = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", k = typeof d == "string" ? "" : d?.message ?? "";
|
|
1345
|
+
if (u && u.intent)
|
|
1346
|
+
switch (u.intent) {
|
|
1347
|
+
case "Recommend solution": {
|
|
1348
|
+
if (u.results) {
|
|
1349
|
+
const p = u.results, x = p.map((E) => `- ${E.title}`).join(`
|
|
1350
|
+
`), v = this._renderSuggestedSolutions(p), q = this._renderFeedback(this._currentResponse + `
|
|
1351
|
+
` + x, k, this.conversationStore.conversationId, u.intent);
|
|
1352
|
+
$(v, i), $(q, o);
|
|
1353
|
+
} else
|
|
1354
|
+
i.innerHTML = "";
|
|
1355
|
+
this._scrollToBottom();
|
|
1356
|
+
break;
|
|
1357
|
+
}
|
|
1358
|
+
default: {
|
|
1359
|
+
const p = this._renderFeedback(this._currentResponse, k, this.conversationStore.conversationId, u.intent);
|
|
1360
|
+
$(p, o), this._scrollToBottom();
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
else {
|
|
1365
|
+
if (u && u.results && !u.intent)
|
|
1366
|
+
for (const p of u.results) {
|
|
1367
|
+
const x = this._renderSolutionsQuestionTable(p.ref, p.followupQuestions), v = this._renderFeedback(this._currentResponse, k, this.conversationStore.conversationId, "Solution question");
|
|
1368
|
+
$(x, i), $(v, o);
|
|
1369
|
+
}
|
|
1370
|
+
else if (u && u.kind && u.kind.toLowerCase() === "ArcGISErrorAsContext".toLowerCase()) {
|
|
1371
|
+
const p = this._renderFeedback(this._currentResponse, k, this.conversationStore.conversationId, "Error");
|
|
1372
|
+
$(p, o);
|
|
1373
|
+
}
|
|
1374
|
+
this._scrollToBottom();
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
async requestAIServer(e, t, r) {
|
|
1378
|
+
try {
|
|
1379
|
+
const a = await (await fetch(r, {
|
|
1380
|
+
method: "POST",
|
|
1381
|
+
headers: {
|
|
1382
|
+
"Content-Type": "application/json",
|
|
1383
|
+
token: t
|
|
1384
|
+
},
|
|
1385
|
+
body: JSON.stringify(e)
|
|
1386
|
+
})).json();
|
|
1387
|
+
if (a)
|
|
1388
|
+
return a;
|
|
1389
|
+
throw new Error("No data returned");
|
|
1390
|
+
} catch (s) {
|
|
1391
|
+
throw new Error(`Request failed: ${s}`);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
resetChat() {
|
|
1395
|
+
const e = this.messages[this.messages.length - 1];
|
|
1396
|
+
if (e.author !== "system" && e.conversationId !== "-1") {
|
|
1397
|
+
this._resetConversation();
|
|
1398
|
+
const t = {
|
|
1399
|
+
author: "system",
|
|
1400
|
+
conversationId: "-1",
|
|
1401
|
+
message: this._translations.newConversationStarted,
|
|
1402
|
+
render: this._renderSimpleTextMessage(this._translations.newConversationStarted, "system", "", "Other", "speech-bubble-plus")
|
|
1403
|
+
};
|
|
1404
|
+
this.messages = [...this.messages, t], this._inputRef && (this._inputRef.value = "");
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
willUpdate(e) {
|
|
1408
|
+
this.messages.length === 0 && this._translations.defaultStartUpMessage && (this.messages = [
|
|
1409
|
+
{
|
|
1410
|
+
author: "ai",
|
|
1411
|
+
conversationId: "",
|
|
1412
|
+
message: this._translations.defaultStartUpMessage,
|
|
1413
|
+
render: this._renderSimpleTextMessage(this._translations.defaultStartUpMessage, "ai", "", "Other")
|
|
1414
|
+
}
|
|
1415
|
+
]);
|
|
67
1416
|
}
|
|
68
|
-
|
|
69
|
-
|
|
1417
|
+
updated(e) {
|
|
1418
|
+
(e.size || this._isLoading) && this._scrollToBottom();
|
|
1419
|
+
}
|
|
1420
|
+
_renderFeedback(e, t, r, s) {
|
|
1421
|
+
return b`
|
|
1422
|
+
<div>
|
|
1423
|
+
<calcite-button
|
|
1424
|
+
appearance='transparent'
|
|
1425
|
+
class='height-32-flex-auto'
|
|
1426
|
+
icon-start='thumbs-up'
|
|
1427
|
+
label='position feedback'
|
|
1428
|
+
kind='neutral'
|
|
1429
|
+
@click=${() => {
|
|
1430
|
+
this._sendFeedback(e, t, "Good", r, s);
|
|
1431
|
+
}}
|
|
1432
|
+
>
|
|
1433
|
+
</calcite-button>
|
|
1434
|
+
|
|
1435
|
+
<calcite-button
|
|
1436
|
+
appearance='transparent'
|
|
1437
|
+
class='height-32-flex-auto'
|
|
1438
|
+
icon-start='thumbs-down'
|
|
1439
|
+
label='position feedback'
|
|
1440
|
+
kind='neutral'
|
|
1441
|
+
@click=${() => {
|
|
1442
|
+
this._sendFeedback(e, t, "Bad", r, s);
|
|
1443
|
+
}}
|
|
1444
|
+
>
|
|
1445
|
+
</calcite-button>
|
|
1446
|
+
|
|
1447
|
+
<calcite-button
|
|
1448
|
+
appearance='transparent'
|
|
1449
|
+
class='height-32-flex-auto'
|
|
1450
|
+
icon-start='copy'
|
|
1451
|
+
label='position feedback'
|
|
1452
|
+
kind='neutral'
|
|
1453
|
+
@click=${(a) => {
|
|
1454
|
+
this._copyResponseToClipboard(e, a);
|
|
1455
|
+
}}
|
|
1456
|
+
>
|
|
1457
|
+
</calcite-button>
|
|
1458
|
+
</div>
|
|
1459
|
+
`;
|
|
1460
|
+
}
|
|
1461
|
+
_renderSolutionQuestionReferences(e) {
|
|
1462
|
+
return b`
|
|
1463
|
+
${e.map((t) => b`
|
|
1464
|
+
<div class='message-content-pad'>
|
|
1465
|
+
<a href=${t.url} target='_blank'>
|
|
1466
|
+
${t.title}
|
|
1467
|
+
</a>
|
|
1468
|
+
</div>
|
|
1469
|
+
`)}
|
|
1470
|
+
`;
|
|
1471
|
+
}
|
|
1472
|
+
_renderSolutionQuestionFollowup(e) {
|
|
1473
|
+
return b`
|
|
1474
|
+
${e.map((t) => b`
|
|
1475
|
+
<calcite-chip
|
|
1476
|
+
class='chip-content cursor-pointer'
|
|
1477
|
+
kind='brand'
|
|
1478
|
+
label=${t}
|
|
1479
|
+
@click=${() => {
|
|
1480
|
+
this._submitFollowupQuestion(t);
|
|
1481
|
+
}}
|
|
1482
|
+
>
|
|
1483
|
+
${t}
|
|
1484
|
+
</calcite-chip>
|
|
1485
|
+
`)}
|
|
1486
|
+
`;
|
|
1487
|
+
}
|
|
1488
|
+
_renderSolutionsQuestionTable(e, t) {
|
|
1489
|
+
const r = this._renderSolutionQuestionReferences(e), s = this._renderSolutionQuestionFollowup(t);
|
|
1490
|
+
return b`
|
|
1491
|
+
<div slot='description' class='message-content'>
|
|
1492
|
+
<div style='display: flex; justify-content: flex-start;'>
|
|
1493
|
+
<calcite-button
|
|
1494
|
+
appearance='outline'
|
|
1495
|
+
icon-end='chevron-down'
|
|
1496
|
+
icon-start='link'
|
|
1497
|
+
@click=${(a) => {
|
|
1498
|
+
const i = a.currentTarget, o = i.parentElement.nextElementSibling;
|
|
1499
|
+
o.classList.toggle("collapsed"), i.setAttribute("icon-end", o.classList.contains("collapsed") ? "chevron-down" : "chevron-up");
|
|
1500
|
+
}}
|
|
1501
|
+
>
|
|
1502
|
+
${e.length}
|
|
1503
|
+
${e.length === 1 ? this._translations.solutionsDocReference : this._translations.solutionsDocReferences}
|
|
1504
|
+
</calcite-button>
|
|
1505
|
+
</div>
|
|
1506
|
+
|
|
1507
|
+
<div class='references-container collapsed'>
|
|
1508
|
+
${r}
|
|
1509
|
+
</div>
|
|
1510
|
+
</div>
|
|
1511
|
+
|
|
1512
|
+
<div class='padding-top-10'>
|
|
1513
|
+
${s}
|
|
1514
|
+
</div>
|
|
1515
|
+
`;
|
|
1516
|
+
}
|
|
1517
|
+
_renderSolutionCard(e, t) {
|
|
1518
|
+
return b`
|
|
1519
|
+
<a
|
|
1520
|
+
class='solution-card'
|
|
1521
|
+
id='${t}'
|
|
1522
|
+
@click=${() => this._emitItemIdFromAI(t)}
|
|
1523
|
+
>
|
|
1524
|
+
<calcite-card thumbnail-position='inline-start'>
|
|
1525
|
+
<div slot='thumbnail'>
|
|
1526
|
+
<img src='${e.thumbnail}' alt='Thumbnail' />
|
|
1527
|
+
<calcite-chip icon='launch' label='View solution'>
|
|
1528
|
+
${this._translations.viewSolutionInApp}
|
|
1529
|
+
</calcite-chip>
|
|
1530
|
+
</div>
|
|
1531
|
+
|
|
1532
|
+
<h3 slot='heading'><b>${e.title}</b></h3>
|
|
1533
|
+
|
|
1534
|
+
<span slot='description'>${e.snippet}</span>
|
|
1535
|
+
</calcite-card>
|
|
1536
|
+
</a>
|
|
1537
|
+
`;
|
|
1538
|
+
}
|
|
1539
|
+
_renderResponseBlock(e, t, r) {
|
|
1540
|
+
return b`<calcite-card class=system-message>${e}${t}${r}</calcite-card>`;
|
|
1541
|
+
}
|
|
1542
|
+
_renderSimpleTextMessage(e, t, r, s, a) {
|
|
1543
|
+
const i = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", o = typeof i == "string" ? "" : i?.message ?? "";
|
|
1544
|
+
return t === "system" ? b`<div class="message-content message-content-alignment">${a && b`<calcite-icon .icon=${a}></calcite-icon>` || ""}${e}</div>` : b`<calcite-card class=${Te(t === "human" ? "user-message" : "system-message")}><div class="message-content">${e}${t === "ai" && r !== "" && this._renderFeedback(e, o, r, s) || ""}</div></calcite-card>`;
|
|
1545
|
+
}
|
|
1546
|
+
_renderSuggestedSolutions(e) {
|
|
1547
|
+
const t = e.map((r) => {
|
|
1548
|
+
const s = r.thumbnail.match(/\/items\/([a-f0-9]+)\//);
|
|
1549
|
+
return s ? this._renderSolutionCard(r, s[1]) : null;
|
|
1550
|
+
}).filter((r) => r !== null);
|
|
1551
|
+
return b`
|
|
1552
|
+
<div class='message-content'>
|
|
1553
|
+
${t}
|
|
1554
|
+
</div>
|
|
1555
|
+
`;
|
|
70
1556
|
}
|
|
71
1557
|
render() {
|
|
72
|
-
return
|
|
1558
|
+
return b`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${() => {
|
|
1559
|
+
this.closeAssistant.emit(!0), this.open = !1;
|
|
1560
|
+
}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length > 1 ? b`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral .disabled=${!!this._isLoading || this._isTyping}></calcite-button>` : ""}<div class="chat-messages" ${te(this._setMessageContainerRef)}>${this.messages.map((e) => e.render)}${this._isLoading && b`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText != "" && b`<div class="padding-left-10">${this._isLoadingText}</div>` || ""}</div></calcite-card>` || ""}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area resize=none rows=3 .placeholder=${this._translations.sendMessage} value .disabled=${!!this._isLoading || this._isTyping} ${te(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading || this._isTyping}></calcite-button></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://trust.arcgis.com/en/security-concern/ target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`;
|
|
1561
|
+
}
|
|
1562
|
+
_scrollToBottom() {
|
|
1563
|
+
this._chatContainer && setTimeout(() => {
|
|
1564
|
+
this._chatContainer && (this._chatContainer.scrollTop = this._chatContainer.scrollHeight);
|
|
1565
|
+
}, 100);
|
|
1566
|
+
}
|
|
1567
|
+
_emitItemIdFromAI(e) {
|
|
1568
|
+
this._querySolutions(e).then((t) => {
|
|
1569
|
+
const s = t.typeKeywords.filter((i) => i.includes("solutionid")), a = new CustomEvent("solutionIDFromAssistant", {
|
|
1570
|
+
detail: s.length > 0 ? s[0] : e,
|
|
1571
|
+
bubbles: !0,
|
|
1572
|
+
composed: !0
|
|
1573
|
+
});
|
|
1574
|
+
window.dispatchEvent(a);
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
_submitFollowupQuestion(e) {
|
|
1578
|
+
const t = new CustomEvent("submitQuestion", {
|
|
1579
|
+
detail: e,
|
|
1580
|
+
bubbles: !0,
|
|
1581
|
+
composed: !0
|
|
1582
|
+
});
|
|
1583
|
+
window.dispatchEvent(t);
|
|
1584
|
+
}
|
|
1585
|
+
_getMostRecentQuestion() {
|
|
1586
|
+
return [...this.messages].reverse().find((e) => e.author === "human") || null;
|
|
1587
|
+
}
|
|
1588
|
+
async _querySolutions(e) {
|
|
1589
|
+
const t = await Ie(e);
|
|
1590
|
+
if ("error" in t)
|
|
1591
|
+
throw new Error(t.error);
|
|
1592
|
+
return t;
|
|
1593
|
+
}
|
|
1594
|
+
_sendFeedback(e, t, r, s, a) {
|
|
1595
|
+
const i = `https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(r)}&field:question=${encodeURIComponent(t)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({ intent: a }))}&field:conversation_id=${encodeURIComponent(s)}&field:version=${encodeURIComponent("v1")}`;
|
|
1596
|
+
window.open(i, "_blank");
|
|
1597
|
+
}
|
|
1598
|
+
_copyResponseToClipboard(e, t) {
|
|
1599
|
+
navigator.clipboard.writeText(e);
|
|
1600
|
+
const r = t.currentTarget;
|
|
1601
|
+
r.iconStart = "check", setTimeout(() => {
|
|
1602
|
+
r.iconStart = "copy";
|
|
1603
|
+
}, 3e3);
|
|
73
1604
|
}
|
|
74
|
-
|
|
75
|
-
|
|
1605
|
+
_startTypeWriter(e, t, r, s, a) {
|
|
1606
|
+
if (t.length > 0) {
|
|
1607
|
+
e.setText(t);
|
|
1608
|
+
const i = async () => {
|
|
1609
|
+
e.updateDisplayText();
|
|
1610
|
+
const o = e.getText();
|
|
1611
|
+
r.innerHTML = await f.parse(o), o.length < this._currentResponse.length ? (this._scrollToBottom(), setTimeout(i, 5)) : (this._isTyping = !1, s.classList.remove("display-none"), a.classList.remove("display-none"));
|
|
1612
|
+
};
|
|
1613
|
+
i();
|
|
1614
|
+
}
|
|
76
1615
|
}
|
|
77
1616
|
}
|
|
78
|
-
|
|
1617
|
+
we("arcgis-solutions-assistant", gt);
|
|
79
1618
|
export {
|
|
80
|
-
|
|
1619
|
+
gt as ArcgisSolutionsAssistant
|
|
81
1620
|
};
|