@esri/solutions-components 1.2.0-next.15 → 1.2.0-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{GYCQ3AJ4.js → 24WM5BYO.js} +2 -2
- package/dist/cdn/{RTFAFC47.js → 2CJ5PXL4.js} +2 -2
- package/dist/cdn/{TGRQ3LJY.js → 2CNPC7JI.js} +2 -2
- package/dist/cdn/{HVNRLHU5.js → 2HITWCFR.js} +2 -2
- package/dist/cdn/{F2TCHWET.js → 2J76IXAQ.js} +2 -2
- package/dist/cdn/{OCG3XDCT.js → 2KQOSCAG.js} +2 -2
- package/dist/cdn/{LMO3OIUV.js → 2WNSA4HV.js} +2 -2
- package/dist/cdn/{AVWH7V2G.js → 33SUDNLJ.js} +1 -1
- package/dist/cdn/{IARZLOE2.js → 33UX3ORX.js} +2 -2
- package/dist/cdn/{ZYG6OTLK.js → 34W4ROJB.js} +2 -2
- package/dist/cdn/{RFGEXOGL.js → 3K6T5N6M.js} +2 -2
- package/dist/cdn/{VPI6KWYG.js → 3SQYZSFK.js} +2 -2
- package/dist/cdn/{2WF74AVG.js → 3WACVNJA.js} +2 -2
- package/dist/cdn/{SGYTO5Q3.js → 3ZAF7BHV.js} +2 -2
- package/dist/cdn/{DAFCUVTS.js → 445VP5V5.js} +2 -2
- package/dist/cdn/{QIJJMLMA.js → 463BGXGZ.js} +2 -2
- package/dist/cdn/{P7GYHQIB.js → 47TJEFIE.js} +2 -2
- package/dist/cdn/{JDFPU4OZ.js → 47U3M3WM.js} +2 -2
- package/dist/cdn/{5MQH5SRJ.js → 4FW2NSUM.js} +2 -2
- package/dist/cdn/{LBH23R6B.js → 4GMTW4GE.js} +2 -2
- package/dist/cdn/{U62Y5B5E.js → 4I6Q6O7Q.js} +2 -2
- package/dist/cdn/{PW3GGNPY.js → 4LIZAOSQ.js} +2 -2
- package/dist/cdn/{VR5TPQG5.js → 4LTQAJ7Q.js} +1 -1
- package/dist/cdn/{QXJF7X7C.js → 4PFGFYB7.js} +2 -2
- package/dist/cdn/{WR5CZS6Z.js → 4PQQRVYV.js} +2 -2
- package/dist/cdn/{3ZHWDZ4U.js → 4QMBH3EN.js} +2 -2
- package/dist/cdn/{W2UXZ3VQ.js → 4QWHJISX.js} +1 -1
- package/dist/cdn/{6624PMRO.js → 4QWU62YY.js} +2 -2
- package/dist/cdn/{N45LPVOM.js → 4S7GJLXK.js} +2 -2
- package/dist/cdn/{YQM3ZN4J.js → 4STQ6HY6.js} +2 -2
- package/dist/cdn/{HY5QYWAN.js → 4SUYESMM.js} +2 -2
- package/dist/cdn/{LYUK5J5Q.js → 4ZTJFATS.js} +2 -2
- package/dist/cdn/54US2Z6M.js +18 -0
- package/dist/cdn/{XL3MO46G.js → 5BELOZCM.js} +1 -1
- package/dist/cdn/{CTJAA3HW.js → 5I53UUNF.js} +2 -2
- package/dist/cdn/{OD6CCAY7.js → 5KJRUSMT.js} +2 -2
- package/dist/cdn/{TFNUF2ZS.js → 5MOL5QM7.js} +2 -2
- package/dist/cdn/{PRPAKA53.js → 5NGJJHY7.js} +2 -2
- package/dist/cdn/{3FC3AFQC.js → 5NPHA45T.js} +2 -2
- package/dist/cdn/{NWYDTXHU.js → 5PL5BX7B.js} +2 -2
- package/dist/cdn/{QQ7DWVMW.js → 5QCHMT6O.js} +2 -2
- package/dist/cdn/{TN2PGFEW.js → 5QGDLNDG.js} +2 -2
- package/dist/cdn/{IMGIW7HO.js → 5QIH33SB.js} +2 -2
- package/dist/cdn/{YUKEOO45.js → 5ROFL3RL.js} +2 -2
- package/dist/cdn/{5KES3XBG.js → 64BACTQY.js} +2 -2
- package/dist/cdn/{QA6BAR3L.js → 64Q6BQ3T.js} +2 -2
- package/dist/cdn/{M5CZTKXX.js → 6HMY55NE.js} +2 -2
- package/dist/cdn/{HIEPRI6M.js → 6KHLLWW2.js} +1 -1
- package/dist/cdn/{GG2IDWQS.js → 6LQTNDBM.js} +2 -2
- package/dist/cdn/{7FVSKZFW.js → 6X3COWPL.js} +2 -2
- package/dist/cdn/{EAZ7C25W.js → 6XA66MT6.js} +2 -2
- package/dist/cdn/{ZSJQNSIY.js → 734PV7FU.js} +2 -2
- package/dist/cdn/{XINPX7UY.js → 75QVLAGK.js} +2 -2
- package/dist/cdn/{WPCD65VV.js → 76ZCQD7O.js} +2 -2
- package/dist/cdn/{CGNU4GRB.js → 7AM6FTIY.js} +2 -2
- package/dist/cdn/7C3OLASZ.js +18 -0
- package/dist/cdn/{NTUKSOX6.js → 7C7V3TXJ.js} +2 -2
- package/dist/cdn/{6POBHKBS.js → 7F7DT3AI.js} +2 -2
- package/dist/cdn/{4TNONTZ6.js → 7GX4DJGT.js} +2 -2
- package/dist/cdn/{NCS6AM2F.js → 7ILSE3KA.js} +2 -2
- package/dist/cdn/{P4ZT2VNI.js → 7ITUUMFZ.js} +2 -2
- package/dist/cdn/{XQJCGYXO.js → 7IXKEJ6E.js} +1 -1
- package/dist/cdn/{64XG2WEQ.js → 7IYU7N4H.js} +2 -2
- package/dist/cdn/{NH4CFBFD.js → 7K22NQSD.js} +1 -1
- package/dist/cdn/{7WA3VJRZ.js → 7MXST5RQ.js} +2 -2
- package/dist/cdn/{CZ6K44RV.js → 7N5QKFNB.js} +1 -1
- package/dist/cdn/{Y5MQB5IG.js → 7PUOSBZG.js} +1 -1
- package/dist/cdn/{3LOI7YAT.js → 7UDEXBGV.js} +2 -2
- package/dist/cdn/{L33Y3EXU.js → 7VUSH2YE.js} +1 -1
- package/dist/cdn/{IE5JSK7J.js → A25HLWUP.js} +2 -2
- package/dist/cdn/{3AFMP6IW.js → A76EPYVI.js} +2 -2
- package/dist/cdn/{DAGLKPSW.js → AABIQ6OI.js} +2 -2
- package/dist/cdn/{547VLGRK.js → AC5ZYR6U.js} +2 -2
- package/dist/cdn/{F3VL5J4Q.js → ADWQSEII.js} +2 -2
- package/dist/cdn/{TVEY6INM.js → AGPZ3ZW3.js} +1 -1
- package/dist/cdn/{C4FAIF5Q.js → AIIP4SWB.js} +2 -2
- package/dist/cdn/{WT4VJX6N.js → AJQDBHCZ.js} +2 -2
- package/dist/cdn/{6A6WPUSP.js → AQNHCJUJ.js} +2 -2
- package/dist/cdn/{3Z34HOVN.js → ASYSKXRU.js} +2 -2
- package/dist/cdn/{TBOJZDNR.js → AXFQLPZQ.js} +2 -2
- package/dist/cdn/{VRDTBEBN.js → AZDCP65Y.js} +2 -2
- package/dist/cdn/{32UM7SZK.js → B46CQCIJ.js} +1 -1
- package/dist/cdn/{G36LZ2WH.js → BA2JZZPZ.js} +2 -2
- package/dist/cdn/{JUQF2PB3.js → BAJD2MAY.js} +2 -2
- package/dist/cdn/{K7LR3C67.js → BFBKMPXC.js} +1 -1
- package/dist/cdn/{CV77ODA7.js → BGIC54NM.js} +2 -2
- package/dist/cdn/{AJZFV73U.js → BHT4KXCJ.js} +2 -2
- package/dist/cdn/{WDIJJJAX.js → BIFWKQ4A.js} +2 -2
- package/dist/cdn/{G6VABLAG.js → BKKW36VD.js} +2 -2
- package/dist/cdn/{WMIBYGQF.js → BL65R7NF.js} +2 -2
- package/dist/cdn/{HA6QXFEE.js → BOM2RSTG.js} +2 -2
- package/dist/cdn/{XIU6KDAI.js → BOMBADXF.js} +1 -1
- package/dist/cdn/{USJVL6GN.js → BSDT7WHN.js} +2 -2
- package/dist/cdn/{QCVFWRQ3.js → BTVG2AUT.js} +2 -2
- package/dist/cdn/{P5NCQEHT.js → BWZE7DXC.js} +2 -2
- package/dist/cdn/{NBWRB4UV.js → BXW5OPJA.js} +1 -1
- package/dist/cdn/BYGI6ZG4.js +4 -0
- package/dist/cdn/{MYLIJELV.js → CG7LU7SQ.js} +2 -2
- package/dist/cdn/{YWPBUNRL.js → CIPEOZGL.js} +2 -2
- package/dist/cdn/{TK65KBA3.js → CKEIWQPE.js} +2 -2
- package/dist/cdn/CLEGGOAG.js +18 -0
- package/dist/cdn/{ZE26QR3I.js → CLNJC6L6.js} +1 -1
- package/dist/cdn/{KQRHQKTT.js → COE7UBMY.js} +1 -1
- package/dist/cdn/{FEICSWFI.js → CQLWNONE.js} +1 -1
- package/dist/cdn/{J32P3IUF.js → CRM5UVP3.js} +2 -2
- package/dist/cdn/{RTIEUEZS.js → CSI5GAPY.js} +2 -2
- package/dist/cdn/{JQQF365S.js → CWMZQMNZ.js} +2 -2
- package/dist/cdn/{BXPQHUII.js → CWSJDBQ4.js} +2 -2
- package/dist/cdn/{4CY43SAF.js → CX7EB6FR.js} +2 -2
- package/dist/cdn/{LBNDFMBU.js → D24MF5EE.js} +2 -2
- package/dist/cdn/D35IRVYQ.js +4 -0
- package/dist/cdn/{4UC3TN7N.js → D3FKVFUM.js} +2 -2
- package/dist/cdn/{GVHPHDSK.js → D3H64MRR.js} +1 -1
- package/dist/cdn/{SJ7KLP57.js → DAMKXRGU.js} +2 -2
- package/dist/cdn/{RHWRSJAG.js → DFNL2TA5.js} +2 -2
- package/dist/cdn/DGOXBH7E.js +4 -0
- package/dist/cdn/{YACUVAZK.js → DUFCXSJZ.js} +2 -2
- package/dist/cdn/{F7DK7MGG.js → E2I2FH4I.js} +1 -1
- package/dist/cdn/{VKEAPFNA.js → E3MM5XBG.js} +2 -2
- package/dist/cdn/{QVPAC4JU.js → E3MRIPN4.js} +2 -2
- package/dist/cdn/{JPPIOFJI.js → E3O3ATEP.js} +2 -2
- package/dist/cdn/{PUDP2PNI.js → EBFHYLAT.js} +2 -2
- package/dist/cdn/ECHGKTAQ.js +18 -0
- package/dist/cdn/{UENIFZ42.js → EHEYAZL3.js} +2 -2
- package/dist/cdn/{RTNFT7R7.js → EKU2FTBE.js} +1 -1
- package/dist/cdn/{YYCNS5A5.js → ET6LIIRW.js} +2 -2
- package/dist/cdn/{KYJTZ7GN.js → EU6EDFI6.js} +2 -2
- package/dist/cdn/EW3R6IN2.js +4 -0
- package/dist/cdn/{UK3DTFAX.js → F4JC7HOE.js} +1 -1
- package/dist/cdn/{2IH37O57.js → F7XUO6AF.js} +2 -2
- package/dist/cdn/{J4QBWJSM.js → FE7BOUXR.js} +2 -2
- package/dist/cdn/{KNM2DOZ5.js → FJRODNHS.js} +2 -2
- package/dist/cdn/{4P77U55T.js → FL74QEC5.js} +2 -2
- package/dist/cdn/{64ZV2TNG.js → FLWQFTL6.js} +2 -2
- package/dist/cdn/{DOBSL5W5.js → FOS4FALQ.js} +1 -1
- package/dist/cdn/{VZDK2UMF.js → FPQW2SHJ.js} +2 -2
- package/dist/cdn/{6WQSDPWU.js → FRMOXCIW.js} +2 -2
- package/dist/cdn/{L733W7AD.js → FT3JQVXW.js} +2 -2
- package/dist/cdn/{L75WH54D.js → G32WYZWI.js} +2 -2
- package/dist/cdn/{PY5GGBEE.js → G6BHRJBM.js} +2 -2
- package/dist/cdn/{4D5I5M3O.js → GCYZFLHS.js} +2 -2
- package/dist/cdn/{Q753LUMJ.js → GF6FVCOF.js} +2 -2
- package/dist/cdn/{P2Q2QECR.js → GGBR6YO3.js} +2 -2
- package/dist/cdn/{U2IDJDV3.js → GHMZLDRQ.js} +2 -2
- package/dist/cdn/{PXZ3HDAQ.js → GJFOY4MZ.js} +2 -2
- package/dist/cdn/{T76KLUH7.js → GK6BZ5CA.js} +2 -2
- package/dist/cdn/{BE4OEXWO.js → GKUGVMPR.js} +2 -2
- package/dist/cdn/{5JODT3O3.js → GSWFBSAI.js} +2 -2
- package/dist/cdn/{B3ZRPFZO.js → GTWKDTTV.js} +2 -2
- package/dist/cdn/{NQWAECHR.js → GXE4VLPB.js} +2 -2
- package/dist/cdn/{2TO3D4JP.js → GXVG6TBE.js} +2 -2
- package/dist/cdn/{TD24BI5O.js → H6UWK3YK.js} +2 -2
- package/dist/cdn/{WVPA4RIC.js → HHQ6EAEC.js} +1 -1
- package/dist/cdn/{NSRQUUHT.js → HMZDUHVH.js} +4 -4
- package/dist/cdn/{DH77AVTG.js → HOYCR6CW.js} +2 -2
- package/dist/cdn/{K4KSJJUE.js → HPB7LMZB.js} +2 -2
- package/dist/cdn/{HECNXLJ5.js → HRRYHXJV.js} +2 -2
- package/dist/cdn/{5LIV5MBV.js → HZWJW4N4.js} +2 -2
- package/dist/cdn/{ZP24UQVP.js → IBECKWAF.js} +2 -2
- package/dist/cdn/{JVQDTAZM.js → ID5T7DGW.js} +2 -2
- package/dist/cdn/{HSM2426M.js → IKW7KKVU.js} +1 -1
- package/dist/cdn/{5EHF5GZY.js → IRIIUZ4P.js} +2 -2
- package/dist/cdn/{JDTYU4V7.js → IUORSNIC.js} +2 -2
- package/dist/cdn/{ANABZWEW.js → IWEORJKW.js} +2 -2
- package/dist/cdn/{OPK4XF2Q.js → JA42BMTT.js} +1 -1
- package/dist/cdn/{GY3S4QPM.js → JLPMEQ4C.js} +2 -2
- package/dist/cdn/{7EMBWSJE.js → JRAWXTC2.js} +2 -2
- package/dist/cdn/{FNV3BY4N.js → JS3S6ATX.js} +2 -2
- package/dist/cdn/{FCPV4UOF.js → JXBYVSDN.js} +2 -2
- package/dist/cdn/{HD274UTP.js → JXZF4HP3.js} +2 -2
- package/dist/cdn/{OTKMTGZQ.js → JYVKD3AY.js} +2 -2
- package/dist/cdn/{KMRNWHZU.js → KBECYN7X.js} +2 -2
- package/dist/cdn/{HOSSCUTA.js → KEH7PCJF.js} +2 -2
- package/dist/cdn/{SSCSISSJ.js → KJJQAQBD.js} +1 -1
- package/dist/cdn/{KJYAWRR4.js → KKWP4MFI.js} +2 -2
- package/dist/cdn/{YNCV66VN.js → KQCOJSEM.js} +2 -2
- package/dist/cdn/{YLSH4YUB.js → KRUFNCWC.js} +2 -2
- package/dist/cdn/{5NZGINBU.js → KUMDM2TP.js} +1 -1
- package/dist/cdn/{NXUIVAQT.js → KW3H64Z3.js} +2 -2
- package/dist/cdn/{4GRPOGJP.js → L2M6XD4J.js} +2 -2
- package/dist/cdn/{YKJ6JXET.js → L2YFBS6Q.js} +1 -1
- package/dist/cdn/{CPK4BEBA.js → L5CLDC55.js} +2 -2
- package/dist/cdn/{OSQ5RHZM.js → LEKPGQ27.js} +2 -2
- package/dist/cdn/{HBKZAODT.js → LF3V5ZAK.js} +2 -2
- package/dist/cdn/{CIWXA5ZN.js → LI3HHQ6A.js} +2 -2
- package/dist/cdn/{LQCKHLC4.js → LRDXMMOD.js} +2 -2
- package/dist/cdn/{52ZNWMHQ.js → LTEMSWE5.js} +2 -2
- package/dist/cdn/{OEOAXQIR.js → M2HCD4O7.js} +2 -2
- package/dist/cdn/{5E626VLW.js → M37XXGZU.js} +2 -2
- package/dist/cdn/{IVDSMHU5.js → M3DGWEUL.js} +2 -2
- package/dist/cdn/{XTNPOADE.js → M4C4FAYK.js} +2 -2
- package/dist/cdn/{2Z3T6T5H.js → M4Q775XV.js} +2 -2
- package/dist/cdn/{XSASM2S7.js → MASIZZCI.js} +2 -2
- package/dist/cdn/{WHRW3IB5.js → MB4QMMLX.js} +2 -2
- package/dist/cdn/{R5RGPHNY.js → MBVBYMPA.js} +2 -2
- package/dist/cdn/{JYXITI3J.js → MDGONFN6.js} +2 -2
- package/dist/cdn/{FJENF6BR.js → MEZGELTC.js} +2 -2
- package/dist/cdn/{4K2FRDTX.js → MHQB5WNU.js} +2 -2
- package/dist/cdn/{6TPJXOGA.js → MKH2DA7O.js} +2 -2
- package/dist/cdn/{XHTNNEII.js → MOEDT57I.js} +2 -2
- package/dist/cdn/{GIZDZBX3.js → MOTBFN4G.js} +2 -2
- package/dist/cdn/{6DFODGMW.js → MOZ76AMD.js} +2 -2
- package/dist/cdn/{SIAJA5J4.js → MUZW3RGH.js} +2 -2
- package/dist/cdn/{AXRO5Y2Q.js → MVZGGYJE.js} +1 -1
- package/dist/cdn/{N3UWRM33.js → MWSOZQDY.js} +2 -2
- package/dist/cdn/{3DMMKZP2.js → MZFDKMPX.js} +2 -2
- package/dist/cdn/{BDODIJBN.js → N2W6QSZD.js} +2 -2
- package/dist/cdn/{XS5PMVOE.js → N5STZ7GZ.js} +2 -2
- package/dist/cdn/{MMLBUMFZ.js → N67QCQ7V.js} +2 -2
- package/dist/cdn/{4JAUYJ6Q.js → NCCMANMO.js} +2 -2
- package/dist/cdn/NEHYX5WH.js +20 -0
- package/dist/cdn/{THIUOJJT.js → NHWSJLLO.js} +2 -2
- package/dist/cdn/{FCWBHJAR.js → NLXHAQLL.js} +2 -2
- package/dist/cdn/{3OK4D7RH.js → NUCUGNUX.js} +2 -2
- package/dist/cdn/{TUZ25PBB.js → O3IDDO6J.js} +2 -2
- package/dist/cdn/{FWT5BW6G.js → O3VFVJOS.js} +2 -2
- package/dist/cdn/{JA5E3ZS4.js → O6NVE7E5.js} +2 -2
- package/dist/cdn/{RJDGVBOH.js → OENBSLHM.js} +2 -2
- package/dist/cdn/OI7P2J4Y.js +18 -0
- package/dist/cdn/OJJHKR7F.js +4 -0
- package/dist/cdn/{KFTUSILZ.js → ONHJPLZM.js} +2 -2
- package/dist/cdn/{DHYN3VIT.js → OQF3PZAV.js} +3 -3
- package/dist/cdn/{ZPG53QLG.js → OTXXGUOE.js} +2 -2
- package/dist/cdn/{F3QXUPCO.js → PD3YZ7ZC.js} +2 -2
- package/dist/cdn/{IDPWCQHW.js → PD5P6RHL.js} +2 -2
- package/dist/cdn/{MPYJWTZZ.js → PEOJQHTO.js} +1 -1
- package/dist/cdn/{ATBZIXUI.js → PGJVADNQ.js} +2 -2
- package/dist/cdn/{VLEM3TR7.js → PIUQ5LMJ.js} +2 -2
- package/dist/cdn/{WTIIL4Z5.js → PP2BY544.js} +2 -2
- package/dist/cdn/{MTMG3GRR.js → PSDCQKCH.js} +2 -2
- package/dist/cdn/{AXAHVJFX.js → PTLTCZI4.js} +2 -2
- package/dist/cdn/{7ML2KUOH.js → PWLKYE5P.js} +2 -2
- package/dist/cdn/{VGD3ACHA.js → PZ7RGXSK.js} +2 -2
- package/dist/cdn/{MATLMRNC.js → PZIFPW3P.js} +2 -2
- package/dist/cdn/{5OHLT44P.js → PZLHAJTW.js} +2 -2
- package/dist/cdn/{T5AJ3VNL.js → Q2QCS4J2.js} +2 -2
- package/dist/cdn/{T5N4USHO.js → Q2RUM7UN.js} +2 -2
- package/dist/cdn/{XJV2IHQU.js → Q5J5XNAP.js} +2 -2
- package/dist/cdn/{EODDH2JP.js → QAXTCQ2U.js} +2 -2
- package/dist/cdn/{5EAGIGD7.js → QCJZFBZQ.js} +2 -2
- package/dist/cdn/{QKKZMTRI.js → QF64CVJ5.js} +2 -2
- package/dist/cdn/{R2SZJCZZ.js → QG6QJLC4.js} +2 -2
- package/dist/cdn/{VYIVYXUJ.js → QGJJKXZ7.js} +2 -2
- package/dist/cdn/{OGJDKKVD.js → QM3ILXY3.js} +2 -2
- package/dist/cdn/{BK7VE3UH.js → QNRYJM3B.js} +1 -1
- package/dist/cdn/{UXSWM34Y.js → QPXISNSE.js} +2 -2
- package/dist/cdn/{I37NGC7B.js → QXFNX2NB.js} +2 -2
- package/dist/cdn/{NGAOJITT.js → RAP3WBHW.js} +2 -2
- package/dist/cdn/{2ZIVJI5H.js → REIHKE4M.js} +2 -2
- package/dist/cdn/{2XUD6P3Z.js → RRUGRUVI.js} +2 -2
- package/dist/cdn/{42XR3L6J.js → RTOP6BXN.js} +2 -2
- package/dist/cdn/{CUJ4QEUB.js → RYZD436N.js} +2 -2
- package/dist/cdn/{PP7YJVFK.js → S2DMLXK2.js} +2 -2
- package/dist/cdn/S4PLZNT3.js +18 -0
- package/dist/cdn/{PGH6RCLO.js → SFMJHS2P.js} +2 -2
- package/dist/cdn/{57ZXUILQ.js → SFUF6JRQ.js} +2 -2
- package/dist/cdn/SGSJNZRS.js +4 -0
- package/dist/cdn/{BPVXWSKC.js → SIY7FRU2.js} +2 -2
- package/dist/cdn/{YHY4R3U6.js → SLK6RJZ6.js} +1 -1
- package/dist/cdn/SLMOR34E.js +18 -0
- package/dist/cdn/{M7AF2VXD.js → SMC7MDBC.js} +2 -2
- package/dist/cdn/{LRQUFI2D.js → SMDGUFAX.js} +1 -1
- package/dist/cdn/{LH4J7BX2.js → SML6VAVH.js} +2 -2
- package/dist/cdn/{IOFTT6HJ.js → SO57WMZT.js} +2 -2
- package/dist/cdn/{US7G3FCP.js → SQGDT3MI.js} +2 -2
- package/dist/cdn/{BMH6UZYX.js → SVGQ6RRF.js} +2 -2
- package/dist/cdn/{CUWST5O6.js → SVKVDVSA.js} +2 -2
- package/dist/cdn/{JNWSIBXG.js → SWYEHTYD.js} +2 -2
- package/dist/cdn/{VNFRWFAW.js → SYLD7AOJ.js} +2 -2
- package/dist/cdn/{URFFUWLH.js → T24OWJ2D.js} +2 -2
- package/dist/cdn/{QAMFDK44.js → T6URJ7UY.js} +2 -2
- package/dist/cdn/{PTH4VZ5J.js → T7ZYB7QK.js} +1 -1
- package/dist/cdn/{JJEP2YGO.js → THGYUWHS.js} +2 -2
- package/dist/cdn/{7TAHV6UW.js → TJYDXN5N.js} +2 -2
- package/dist/cdn/{TC6GRMDI.js → TKJ3SF4I.js} +1 -1
- package/dist/cdn/{HT7C5PDZ.js → TLK5UCOJ.js} +2 -2
- package/dist/cdn/{DK3FWHR6.js → TMXC3CNK.js} +3 -3
- package/dist/cdn/{2P5JJYFC.js → TNHDJIYU.js} +2 -2
- package/dist/cdn/{3INN5FQP.js → TP6TK5QG.js} +2 -2
- package/dist/cdn/{LAGBD4ZG.js → U2MFSKGL.js} +2 -2
- package/dist/cdn/{OTWOMOOS.js → UCZH23H5.js} +2 -2
- package/dist/cdn/{E7N7FA3W.js → UH35QWCX.js} +2 -2
- package/dist/cdn/{VPK4ZAZF.js → UHI3J3HW.js} +2 -2
- package/dist/cdn/{33TAMAB5.js → UIOO7RGA.js} +2 -2
- package/dist/cdn/{47LQUUSU.js → UIQXA63E.js} +2 -2
- package/dist/cdn/{AGXLBLDE.js → UL7RSTG3.js} +2 -2
- package/dist/cdn/{K4PSBA7S.js → UPA6H3UK.js} +2 -2
- package/dist/cdn/{QNJKL7SK.js → UQY7HMMM.js} +2 -2
- package/dist/cdn/US2R7MQA.js +63 -0
- package/dist/cdn/{UIHIMUAM.js → UWJAFW32.js} +2 -2
- package/dist/cdn/{UWKPNCNO.js → V24FB5XD.js} +2 -2
- package/dist/cdn/{J66N75YM.js → V4XH652F.js} +2 -2
- package/dist/cdn/{R5QNGLWD.js → V5H4AUIH.js} +2 -2
- package/dist/cdn/{UIXND4RG.js → VBUG7NUZ.js} +2 -2
- package/dist/cdn/{VXS22IEQ.js → VEFMWNVR.js} +2 -2
- package/dist/cdn/{CKPZEWWK.js → VGW3E33G.js} +2 -2
- package/dist/cdn/{XWO35XMC.js → VHMETX5C.js} +2 -2
- package/dist/cdn/{OEVW7652.js → VNJMC7H7.js} +2 -2
- package/dist/cdn/{FUVBSL52.js → VOI26VZU.js} +2 -2
- package/dist/cdn/{AK2G7GWK.js → VSGIKV5X.js} +2 -2
- package/dist/cdn/{VYLL3I6K.js → VTAI23DN.js} +2 -2
- package/dist/cdn/{D2G4PIVE.js → VU7CLW5T.js} +2 -2
- package/dist/cdn/{URVMNZHN.js → VUA6EP7Q.js} +2 -2
- package/dist/cdn/{4BD445J4.js → VZO4BIVY.js} +2 -2
- package/dist/cdn/{A4X6C6ZX.js → W2YFZYV5.js} +2 -2
- package/dist/cdn/{5HGZYOVA.js → WC3Z4EDF.js} +1 -1
- package/dist/cdn/{LUAMSNKZ.js → WGCXCMFS.js} +2 -2
- package/dist/cdn/{PVGBJQAD.js → WMMQCH4Z.js} +2 -2
- package/dist/cdn/WR37QCTD.js +4 -0
- package/dist/cdn/{YBOWQKWT.js → WR3I7AM2.js} +2 -2
- package/dist/cdn/{3R547FCL.js → WVRENFYB.js} +2 -2
- package/dist/cdn/{EVPTRQ6A.js → X3W3VZ6Q.js} +1 -1
- package/dist/cdn/{NWZXSIOF.js → X7MBI4XC.js} +1 -1
- package/dist/cdn/{N65CEPTA.js → XCXTGRF4.js} +2 -2
- package/dist/cdn/{ZCRJFSKJ.js → XFF62RTG.js} +2 -2
- package/dist/cdn/{2OB2SIIL.js → XFLIYFY3.js} +2 -2
- package/dist/cdn/{ETYP3VBN.js → XK6TMGUD.js} +2 -2
- package/dist/cdn/{SBZZ4K52.js → XLBG2RJT.js} +2 -2
- package/dist/cdn/XNA6WRSK.js +4 -0
- package/dist/cdn/{TOSLUXOS.js → XRRTWRCI.js} +2 -2
- package/dist/cdn/{KJC4PHVN.js → XSELGOTY.js} +2 -2
- package/dist/cdn/{YQH4NZVR.js → XWM3XGZT.js} +2 -2
- package/dist/cdn/{UE6HX53N.js → XYYHWXEE.js} +2 -2
- package/dist/cdn/{WXO3ZL5M.js → Y3GNKHWX.js} +2 -2
- package/dist/cdn/Y755NJQD.js +18 -0
- package/dist/cdn/{C675SGIU.js → YCZQXPZS.js} +2 -2
- package/dist/cdn/{VZXWZRZ2.js → YEUCZM52.js} +2 -2
- package/dist/cdn/{7N5X4EHS.js → YG53B4I2.js} +2 -2
- package/dist/cdn/YLCN5LJA.js +6 -0
- package/dist/cdn/{P7IHCCPN.js → YN5RGMUY.js} +2 -2
- package/dist/cdn/YNJMZX3I.js +18 -0
- package/dist/cdn/{FFCZMKPH.js → YVVDUMNS.js} +2 -2
- package/dist/cdn/{RF3I2OVH.js → YWNRR2PJ.js} +2 -2
- package/dist/cdn/{5IMIFIYK.js → Z2FCSBUU.js} +2 -2
- package/dist/cdn/Z2SGK7LL.js +4 -0
- package/dist/cdn/{SQ3WIIXR.js → Z3WPTT5X.js} +2 -2
- package/dist/cdn/{FHDHYSK6.js → Z4ZF2BDG.js} +2 -2
- package/dist/cdn/{IW3M3BRW.js → ZCSEKMUG.js} +2 -2
- package/dist/cdn/{SUZ4YNXZ.js → ZDD7KPSE.js} +2 -2
- package/dist/cdn/{BURGOM4O.js → ZGZ2DUJK.js} +2 -2
- package/dist/cdn/{AEHCAEA2.js → ZQJ3I7NF.js} +2 -2
- package/dist/cdn/{JMPK7FSJ.js → ZTH6BNEM.js} +2 -2
- package/dist/cdn/ZUGHV55K.js +18 -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/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- 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 +1 -1
- package/dist/chunks/interfaces.js +3 -3
- 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 +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- 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 +7 -5
- package/dist/components/arcgis-solutions-assistant/customElement.js +1225 -137
- package/dist/components/arcgis-solutions-assistant/index.d.ts +1 -1
- package/dist/components/arcgis-solutions-assistant/index.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- 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.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.d.ts +4 -5
- package/dist/components/solution-deployed-card/customElement.js +35 -34
- 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-configure-dialog → solution-deployed-card-panel}/customElement.d.ts +13 -3
- package/dist/components/solution-deployed-card-panel/customElement.js +101 -0
- package/dist/components/solution-deployed-card-panel/index.d.ts +15 -0
- package/dist/components/solution-deployed-card-panel/index.js +15 -0
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +22 -19
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +2 -2
- package/dist/components/solutions-deploy-app/customElement.d.ts +2 -1
- package/dist/components/solutions-deploy-app/customElement.js +38 -31
- package/dist/components/solutions-deploy-app/index.d.ts +1 -0
- package/dist/components/solutions-deploy-app/index.js +1 -0
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +2 -2
- package/dist/components/solutions-deploy-app-nav/customElement.js +3 -3
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +3 -3
- package/dist/components/solutions-deployed-shell/customElement.js +8 -8
- package/dist/components/solutions-filter-panel/customElement.js +15 -15
- package/dist/components/solutions-resource-panel/customElement.js +1 -1
- package/dist/components/solutions-resources/customElement.js +18 -32
- package/dist/components/solutions-resources-shell/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +7 -5
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +433 -377
- package/dist/docs/docs.json +306 -237
- package/dist/docs/vscode.html-custom-data.json +29 -24
- package/dist/docs/web-types.json +134 -86
- package/dist/index.d.ts +36 -19
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +11 -7
- package/dist/types/preact.d.ts +12 -8
- package/dist/types/preact10.d.ts +13 -9
- package/dist/types/react.d.ts +13 -9
- package/dist/types/stencil.d.ts +11 -7
- package/dist/utils/interfaces.d.ts +26 -22
- package/package.json +2 -2
- package/dist/cdn/4J4LPB3C.js +0 -4
- package/dist/cdn/A7RE5JAW.js +0 -4
- package/dist/cdn/AJ7HY5IA.js +0 -18
- package/dist/cdn/BTAPRURT.js +0 -18
- package/dist/cdn/CH34UBEQ.js +0 -20
- package/dist/cdn/CL3PGX2V.js +0 -18
- package/dist/cdn/E6BFGCQU.js +0 -18
- package/dist/cdn/EL2JSV5A.js +0 -4
- package/dist/cdn/F2BY3DDZ.js +0 -4
- package/dist/cdn/GNVNOTR5.js +0 -18
- package/dist/cdn/HFD37KVH.js +0 -18
- package/dist/cdn/HLVEN4KS.js +0 -6
- package/dist/cdn/ILDBRYJS.js +0 -4
- package/dist/cdn/LGLORLPA.js +0 -18
- package/dist/cdn/N7FPVL7S.js +0 -4
- package/dist/cdn/O6AHHEEE.js +0 -18
- package/dist/cdn/RL2Q4UFY.js +0 -4
- package/dist/cdn/U6LFOJY4.js +0 -4
- package/dist/cdn/UL2XIT3X.js +0 -4
- package/dist/cdn/XKFBIOP5.js +0 -18
- package/dist/cdn/XM6GFHKW.js +0 -4
- package/dist/cdn/Z3E6GUUX.js +0 -18
- 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/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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { u as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { css as
|
|
6
|
-
import { unsafeHTML as
|
|
1
|
+
import { c as we } from "../../chunks/runtime.js";
|
|
2
|
+
import { ref as se } from "lit/directives/ref.js";
|
|
3
|
+
import { u as ve } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as ye, createEvent as $e, nothing as Z, safeClassMap as Se } from "@arcgis/lumina";
|
|
5
|
+
import { css as _e, html as k } from "lit";
|
|
6
|
+
import { unsafeHTML as Re } from "lit/directives/unsafe-html.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
9
|
-
v1.2.0-next.
|
|
10
|
-
const
|
|
9
|
+
v1.2.0-next.16 */
|
|
10
|
+
const Te = _e`: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{margin-top:0}.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}`;
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2025 Esri
|
|
@@ -24,37 +24,1102 @@ const x = f`:host{display:block;height:100%}.display-flex-row{display:flex;flex-
|
|
|
24
24
|
* See the License for the specific language governing permissions and
|
|
25
25
|
* limitations under the License.
|
|
26
26
|
*/
|
|
27
|
-
const
|
|
28
|
-
async function
|
|
29
|
-
return await
|
|
27
|
+
const Ie = "https://www.arcgis.com/sharing/rest/content/items/";
|
|
28
|
+
async function Ae(n) {
|
|
29
|
+
return await ze(n);
|
|
30
30
|
}
|
|
31
|
-
async function
|
|
32
|
-
const e =
|
|
31
|
+
async function ze(n) {
|
|
32
|
+
const e = Ie + n + "?f=json";
|
|
33
33
|
try {
|
|
34
|
-
const
|
|
34
|
+
const s = await fetch(
|
|
35
35
|
e,
|
|
36
36
|
{ method: "GET" }
|
|
37
37
|
);
|
|
38
|
-
if (!
|
|
39
|
-
throw new Error(`HTTP error! Status: ${
|
|
40
|
-
return await
|
|
41
|
-
} catch (
|
|
42
|
-
return { error:
|
|
38
|
+
if (!s.ok)
|
|
39
|
+
throw new Error(`HTTP error! Status: ${s.status}`);
|
|
40
|
+
return await s.json();
|
|
41
|
+
} catch (s) {
|
|
42
|
+
return { error: s.message };
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
function U() {
|
|
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 = U();
|
|
49
|
+
function oe(n) {
|
|
50
|
+
S = n;
|
|
51
|
+
}
|
|
52
|
+
var A = { exec: () => null };
|
|
53
|
+
function u(n, e = "") {
|
|
54
|
+
let s = typeof n == "string" ? n : n.source, r = { replace: (t, a) => {
|
|
55
|
+
let i = typeof a == "string" ? a : a.source;
|
|
56
|
+
return i = i.replace(x.caret, "$1"), s = s.replace(t, i), r;
|
|
57
|
+
}, getRegex: () => new RegExp(s, e) };
|
|
58
|
+
return r;
|
|
59
|
+
}
|
|
60
|
+
var x = { 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]\] +/, 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") }, qe = /^(?:[ \t]*(?:\n|$))+/, Ce = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Le = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, z = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ee = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\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 = u(ce).replace(/bull/g, F).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(), Pe = u(ce).replace(/bull/g, F).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Me = /^[^\n]+/, H = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Be = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", H).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Qe = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), P = "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", G = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ze = u("^ {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", G).replace("tag", P).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ue = u(j).replace("hr", z).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", P).getRegex(), De = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ue).getRegex(), K = { blockquote: De, code: Ce, def: Be, fences: Le, heading: Ee, hr: z, html: Ze, lheading: he, list: Qe, newline: qe, paragraph: ue, table: A, text: Me }, ne = u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", z).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", P).getRegex(), Oe = { ...K, lheading: Pe, table: ne, paragraph: u(j).replace("hr", z).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).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", P).getRegex() }, Ne = { ...K, html: u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", G).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: A, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: u(j).replace("hr", z).replace("heading", ` *#{1,6} *[^
|
|
61
|
+
]`).replace("lheading", he).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ue = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, je = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, M = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, de = /[^\s\p{P}\p{S}]/u, He = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ge = /(?!~)[\p{P}\p{S}]/u, Ge = /(?!~)[\s\p{P}\p{S}]/u, Ke = /(?:[^\s\p{P}\p{S}]|~)/u, We = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, fe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Xe = u(fe, "u").replace(/punct/g, M).getRegex(), Je = u(fe, "u").replace(/punct/g, ge).getRegex(), ke = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ve = u(ke, "gu").replace(/notPunctSpace/g, de).replace(/punctSpace/g, W).replace(/punct/g, M).getRegex(), Ye = u(ke, "gu").replace(/notPunctSpace/g, Ke).replace(/punctSpace/g, Ge).replace(/punct/g, ge).getRegex(), et = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, de).replace(/punctSpace/g, W).replace(/punct/g, M).getRegex(), tt = u(/\\(punct)/, "gu").replace(/punct/g, M).getRegex(), st = u(/^<(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 = u(G).replace("(?:-->|$)", "-->").getRegex(), rt = u("^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(), C = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, it = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", C).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), me = u(/^!?\[(label)\]\[(ref)\]/).replace("label", C).replace("ref", H).getRegex(), xe = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", H).getRegex(), at = u("reflink|nolink(?!\\()", "g").replace("reflink", me).replace("nolink", xe).getRegex(), X = { _backpedal: A, anyPunctuation: tt, autolink: st, blockSkip: We, br: pe, code: Fe, del: A, emStrongLDelim: Xe, emStrongRDelimAst: Ve, emStrongRDelimUnd: et, escape: Ue, link: it, nolink: xe, punctuation: He, reflink: me, reflinkSearch: at, tag: rt, text: je, url: A }, lt = { ...X, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", C).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", C).getRegex() }, D = { ...X, emStrongRDelimAst: Ye, emStrongLDelim: Je, url: u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").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: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, ot = { ...D, br: u(pe).replace("{2,}", "*").getRegex(), text: u(D.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, q = { normal: K, gfm: Oe, pedantic: Ne }, R = { normal: X, gfm: D, breaks: ot, pedantic: lt }, ct = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, re = (n) => ct[n];
|
|
62
|
+
function w(n, e) {
|
|
63
|
+
if (e) {
|
|
64
|
+
if (x.escapeTest.test(n)) return n.replace(x.escapeReplace, re);
|
|
65
|
+
} else if (x.escapeTestNoEncode.test(n)) return n.replace(x.escapeReplaceNoEncode, re);
|
|
66
|
+
return n;
|
|
67
|
+
}
|
|
68
|
+
function ie(n) {
|
|
69
|
+
try {
|
|
70
|
+
n = encodeURI(n).replace(x.percentDecode, "%");
|
|
71
|
+
} catch {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return n;
|
|
75
|
+
}
|
|
76
|
+
function ae(n, e) {
|
|
77
|
+
let s = n.replace(x.findPipe, (a, i, l) => {
|
|
78
|
+
let o = !1, c = i;
|
|
79
|
+
for (; --c >= 0 && l[c] === "\\"; ) o = !o;
|
|
80
|
+
return o ? "|" : " |";
|
|
81
|
+
}), r = s.split(x.splitPipe), t = 0;
|
|
82
|
+
if (r[0].trim() || r.shift(), r.length > 0 && !r.at(-1)?.trim() && r.pop(), e) if (r.length > e) r.splice(e);
|
|
83
|
+
else for (; r.length < e; ) r.push("");
|
|
84
|
+
for (; t < r.length; t++) r[t] = r[t].trim().replace(x.slashPipe, "|");
|
|
85
|
+
return r;
|
|
86
|
+
}
|
|
87
|
+
function T(n, e, s) {
|
|
88
|
+
let r = n.length;
|
|
89
|
+
if (r === 0) return "";
|
|
90
|
+
let t = 0;
|
|
91
|
+
for (; t < r && n.charAt(r - t - 1) === e; )
|
|
92
|
+
t++;
|
|
93
|
+
return n.slice(0, r - t);
|
|
94
|
+
}
|
|
95
|
+
function ht(n, e) {
|
|
96
|
+
if (n.indexOf(e[1]) === -1) return -1;
|
|
97
|
+
let s = 0;
|
|
98
|
+
for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
|
|
99
|
+
else if (n[r] === e[0]) s++;
|
|
100
|
+
else if (n[r] === e[1] && (s--, s < 0)) return r;
|
|
101
|
+
return s > 0 ? -2 : -1;
|
|
102
|
+
}
|
|
103
|
+
function le(n, e, s, r, t) {
|
|
104
|
+
let a = e.href, i = e.title || null, l = n[1].replace(t.other.outputLinkReplace, "$1");
|
|
105
|
+
r.state.inLink = !0;
|
|
106
|
+
let o = { type: n[0].charAt(0) === "!" ? "image" : "link", raw: s, href: a, title: i, text: l, tokens: r.inlineTokens(l) };
|
|
107
|
+
return r.state.inLink = !1, o;
|
|
108
|
+
}
|
|
109
|
+
function ut(n, e, s) {
|
|
110
|
+
let r = n.match(s.other.indentCodeCompensation);
|
|
111
|
+
if (r === null) return e;
|
|
112
|
+
let t = r[1];
|
|
113
|
+
return e.split(`
|
|
114
|
+
`).map((a) => {
|
|
115
|
+
let i = a.match(s.other.beginningSpace);
|
|
116
|
+
if (i === null) return a;
|
|
117
|
+
let [l] = i;
|
|
118
|
+
return l.length >= t.length ? a.slice(t.length) : a;
|
|
119
|
+
}).join(`
|
|
120
|
+
`);
|
|
121
|
+
}
|
|
122
|
+
var L = class {
|
|
123
|
+
options;
|
|
124
|
+
rules;
|
|
125
|
+
lexer;
|
|
126
|
+
constructor(n) {
|
|
127
|
+
this.options = n || S;
|
|
128
|
+
}
|
|
129
|
+
space(n) {
|
|
130
|
+
let e = this.rules.block.newline.exec(n);
|
|
131
|
+
if (e && e[0].length > 0) return { type: "space", raw: e[0] };
|
|
132
|
+
}
|
|
133
|
+
code(n) {
|
|
134
|
+
let e = this.rules.block.code.exec(n);
|
|
135
|
+
if (e) {
|
|
136
|
+
let s = e[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
137
|
+
return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? s : T(s, `
|
|
138
|
+
`) };
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
fences(n) {
|
|
142
|
+
let e = this.rules.block.fences.exec(n);
|
|
143
|
+
if (e) {
|
|
144
|
+
let s = e[0], r = ut(s, e[3] || "", this.rules);
|
|
145
|
+
return { type: "code", raw: s, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
heading(n) {
|
|
149
|
+
let e = this.rules.block.heading.exec(n);
|
|
150
|
+
if (e) {
|
|
151
|
+
let s = e[2].trim();
|
|
152
|
+
if (this.rules.other.endingHash.test(s)) {
|
|
153
|
+
let r = T(s, "#");
|
|
154
|
+
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (s = r.trim());
|
|
155
|
+
}
|
|
156
|
+
return { type: "heading", raw: e[0], depth: e[1].length, text: s, tokens: this.lexer.inline(s) };
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
hr(n) {
|
|
160
|
+
let e = this.rules.block.hr.exec(n);
|
|
161
|
+
if (e) return { type: "hr", raw: T(e[0], `
|
|
162
|
+
`) };
|
|
163
|
+
}
|
|
164
|
+
blockquote(n) {
|
|
165
|
+
let e = this.rules.block.blockquote.exec(n);
|
|
166
|
+
if (e) {
|
|
167
|
+
let s = T(e[0], `
|
|
168
|
+
`).split(`
|
|
169
|
+
`), r = "", t = "", a = [];
|
|
170
|
+
for (; s.length > 0; ) {
|
|
171
|
+
let i = !1, l = [], o;
|
|
172
|
+
for (o = 0; o < s.length; o++) if (this.rules.other.blockquoteStart.test(s[o])) l.push(s[o]), i = !0;
|
|
173
|
+
else if (!i) l.push(s[o]);
|
|
174
|
+
else break;
|
|
175
|
+
s = s.slice(o);
|
|
176
|
+
let c = l.join(`
|
|
177
|
+
`), h = c.replace(this.rules.other.blockquoteSetextReplace, `
|
|
178
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
179
|
+
r = r ? `${r}
|
|
180
|
+
${c}` : c, t = t ? `${t}
|
|
181
|
+
${h}` : h;
|
|
182
|
+
let g = this.lexer.state.top;
|
|
183
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(h, a, !0), this.lexer.state.top = g, s.length === 0) break;
|
|
184
|
+
let d = a.at(-1);
|
|
185
|
+
if (d?.type === "code") break;
|
|
186
|
+
if (d?.type === "blockquote") {
|
|
187
|
+
let m = d, f = m.raw + `
|
|
188
|
+
` + s.join(`
|
|
189
|
+
`), b = this.blockquote(f);
|
|
190
|
+
a[a.length - 1] = b, r = r.substring(0, r.length - m.raw.length) + b.raw, t = t.substring(0, t.length - m.text.length) + b.text;
|
|
191
|
+
break;
|
|
192
|
+
} else if (d?.type === "list") {
|
|
193
|
+
let m = d, f = m.raw + `
|
|
194
|
+
` + s.join(`
|
|
195
|
+
`), b = this.list(f);
|
|
196
|
+
a[a.length - 1] = b, r = r.substring(0, r.length - d.raw.length) + b.raw, t = t.substring(0, t.length - m.raw.length) + b.raw, s = f.substring(a.at(-1).raw.length).split(`
|
|
197
|
+
`);
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return { type: "blockquote", raw: r, tokens: a, text: t };
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
list(n) {
|
|
205
|
+
let e = this.rules.block.list.exec(n);
|
|
206
|
+
if (e) {
|
|
207
|
+
let s = e[1].trim(), r = s.length > 1, t = { type: "list", raw: "", ordered: r, start: r ? +s.slice(0, -1) : "", loose: !1, items: [] };
|
|
208
|
+
s = r ? `\\d{1,9}\\${s.slice(-1)}` : `\\${s}`, this.options.pedantic && (s = r ? s : "[*+-]");
|
|
209
|
+
let a = this.rules.other.listItemRegex(s), i = !1;
|
|
210
|
+
for (; n; ) {
|
|
211
|
+
let o = !1, c = "", h = "";
|
|
212
|
+
if (!(e = a.exec(n)) || this.rules.block.hr.test(n)) break;
|
|
213
|
+
c = e[0], n = n.substring(c.length);
|
|
214
|
+
let g = e[2].split(`
|
|
215
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (B) => " ".repeat(3 * B.length)), d = n.split(`
|
|
216
|
+
`, 1)[0], m = !g.trim(), f = 0;
|
|
217
|
+
if (this.options.pedantic ? (f = 2, h = g.trimStart()) : m ? f = e[1].length + 1 : (f = e[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, h = g.slice(f), f += e[1].length), m && this.rules.other.blankLine.test(d) && (c += d + `
|
|
218
|
+
`, n = n.substring(d.length + 1), o = !0), !o) {
|
|
219
|
+
let B = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f), be = this.rules.other.htmlBeginRegex(f);
|
|
220
|
+
for (; n; ) {
|
|
221
|
+
let Q = n.split(`
|
|
222
|
+
`, 1)[0], _;
|
|
223
|
+
if (d = Q, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), _ = d) : _ = d.replace(this.rules.other.tabCharGlobal, " "), ee.test(d) || te.test(d) || be.test(d) || B.test(d) || Y.test(d)) break;
|
|
224
|
+
if (_.search(this.rules.other.nonSpaceChar) >= f || !d.trim()) h += `
|
|
225
|
+
` + _.slice(f);
|
|
226
|
+
else {
|
|
227
|
+
if (m || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(g) || te.test(g) || Y.test(g)) break;
|
|
228
|
+
h += `
|
|
229
|
+
` + d;
|
|
230
|
+
}
|
|
231
|
+
!m && !d.trim() && (m = !0), c += Q + `
|
|
232
|
+
`, n = n.substring(Q.length + 1), g = _.slice(f);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
t.loose || (i ? t.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (i = !0));
|
|
236
|
+
let b = null, V;
|
|
237
|
+
this.options.gfm && (b = this.rules.other.listIsTask.exec(h), b && (V = b[0] !== "[ ] ", h = h.replace(this.rules.other.listReplaceTask, ""))), t.items.push({ type: "list_item", raw: c, task: !!b, checked: V, loose: !1, text: h, tokens: [] }), t.raw += c;
|
|
238
|
+
}
|
|
239
|
+
let l = t.items.at(-1);
|
|
240
|
+
if (l) l.raw = l.raw.trimEnd(), l.text = l.text.trimEnd();
|
|
241
|
+
else return;
|
|
242
|
+
t.raw = t.raw.trimEnd();
|
|
243
|
+
for (let o = 0; o < t.items.length; o++) if (this.lexer.state.top = !1, t.items[o].tokens = this.lexer.blockTokens(t.items[o].text, []), !t.loose) {
|
|
244
|
+
let c = t.items[o].tokens.filter((g) => g.type === "space"), h = c.length > 0 && c.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
245
|
+
t.loose = h;
|
|
246
|
+
}
|
|
247
|
+
if (t.loose) for (let o = 0; o < t.items.length; o++) t.items[o].loose = !0;
|
|
248
|
+
return t;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
html(n) {
|
|
252
|
+
let e = this.rules.block.html.exec(n);
|
|
253
|
+
if (e) return { type: "html", block: !0, raw: e[0], pre: e[1] === "pre" || e[1] === "script" || e[1] === "style", text: e[0] };
|
|
254
|
+
}
|
|
255
|
+
def(n) {
|
|
256
|
+
let e = this.rules.block.def.exec(n);
|
|
257
|
+
if (e) {
|
|
258
|
+
let s = 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") : "", t = e[3] ? e[3].substring(1, e[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : e[3];
|
|
259
|
+
return { type: "def", tag: s, raw: e[0], href: r, title: t };
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
table(n) {
|
|
263
|
+
let e = this.rules.block.table.exec(n);
|
|
264
|
+
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
265
|
+
let s = ae(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), t = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
266
|
+
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
267
|
+
if (s.length === r.length) {
|
|
268
|
+
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);
|
|
269
|
+
for (let i = 0; i < s.length; i++) a.header.push({ text: s[i], tokens: this.lexer.inline(s[i]), header: !0, align: a.align[i] });
|
|
270
|
+
for (let i of t) a.rows.push(ae(i, a.header.length).map((l, o) => ({ text: l, tokens: this.lexer.inline(l), header: !1, align: a.align[o] })));
|
|
271
|
+
return a;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
lheading(n) {
|
|
275
|
+
let e = this.rules.block.lheading.exec(n);
|
|
276
|
+
if (e) return { type: "heading", raw: e[0], depth: e[2].charAt(0) === "=" ? 1 : 2, text: e[1], tokens: this.lexer.inline(e[1]) };
|
|
277
|
+
}
|
|
278
|
+
paragraph(n) {
|
|
279
|
+
let e = this.rules.block.paragraph.exec(n);
|
|
280
|
+
if (e) {
|
|
281
|
+
let s = e[1].charAt(e[1].length - 1) === `
|
|
282
|
+
` ? e[1].slice(0, -1) : e[1];
|
|
283
|
+
return { type: "paragraph", raw: e[0], text: s, tokens: this.lexer.inline(s) };
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
text(n) {
|
|
287
|
+
let e = this.rules.block.text.exec(n);
|
|
288
|
+
if (e) return { type: "text", raw: e[0], text: e[0], tokens: this.lexer.inline(e[0]) };
|
|
289
|
+
}
|
|
290
|
+
escape(n) {
|
|
291
|
+
let e = this.rules.inline.escape.exec(n);
|
|
292
|
+
if (e) return { type: "escape", raw: e[0], text: e[1] };
|
|
293
|
+
}
|
|
294
|
+
tag(n) {
|
|
295
|
+
let e = this.rules.inline.tag.exec(n);
|
|
296
|
+
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] };
|
|
297
|
+
}
|
|
298
|
+
link(n) {
|
|
299
|
+
let e = this.rules.inline.link.exec(n);
|
|
300
|
+
if (e) {
|
|
301
|
+
let s = e[2].trim();
|
|
302
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(s)) {
|
|
303
|
+
if (!this.rules.other.endAngleBracket.test(s)) return;
|
|
304
|
+
let a = T(s.slice(0, -1), "\\");
|
|
305
|
+
if ((s.length - a.length) % 2 === 0) return;
|
|
306
|
+
} else {
|
|
307
|
+
let a = ht(e[2], "()");
|
|
308
|
+
if (a === -2) return;
|
|
309
|
+
if (a > -1) {
|
|
310
|
+
let i = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
311
|
+
e[2] = e[2].substring(0, a), e[0] = e[0].substring(0, i).trim(), e[3] = "";
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
let r = e[2], t = "";
|
|
315
|
+
if (this.options.pedantic) {
|
|
316
|
+
let a = this.rules.other.pedanticHrefTitle.exec(r);
|
|
317
|
+
a && (r = a[1], t = a[3]);
|
|
318
|
+
} else t = e[3] ? e[3].slice(1, -1) : "";
|
|
319
|
+
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? r = r.slice(1) : r = r.slice(1, -1)), le(e, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: t && t.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
reflink(n, e) {
|
|
323
|
+
let s;
|
|
324
|
+
if ((s = this.rules.inline.reflink.exec(n)) || (s = this.rules.inline.nolink.exec(n))) {
|
|
325
|
+
let r = (s[2] || s[1]).replace(this.rules.other.multipleSpaceGlobal, " "), t = e[r.toLowerCase()];
|
|
326
|
+
if (!t) {
|
|
327
|
+
let a = s[0].charAt(0);
|
|
328
|
+
return { type: "text", raw: a, text: a };
|
|
329
|
+
}
|
|
330
|
+
return le(s, t, s[0], this.lexer, this.rules);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
emStrong(n, e, s = "") {
|
|
334
|
+
let r = this.rules.inline.emStrongLDelim.exec(n);
|
|
335
|
+
if (!(!r || r[3] && s.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !s || this.rules.inline.punctuation.exec(s))) {
|
|
336
|
+
let t = [...r[0]].length - 1, a, i, l = t, o = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
337
|
+
for (c.lastIndex = 0, e = e.slice(-1 * n.length + t); (r = c.exec(e)) != null; ) {
|
|
338
|
+
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
339
|
+
if (i = [...a].length, r[3] || r[4]) {
|
|
340
|
+
l += i;
|
|
341
|
+
continue;
|
|
342
|
+
} else if ((r[5] || r[6]) && t % 3 && !((t + i) % 3)) {
|
|
343
|
+
o += i;
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
if (l -= i, l > 0) continue;
|
|
347
|
+
i = Math.min(i, i + l + o);
|
|
348
|
+
let h = [...r[0]][0].length, g = n.slice(0, t + r.index + h + i);
|
|
349
|
+
if (Math.min(t, i) % 2) {
|
|
350
|
+
let m = g.slice(1, -1);
|
|
351
|
+
return { type: "em", raw: g, text: m, tokens: this.lexer.inlineTokens(m) };
|
|
352
|
+
}
|
|
353
|
+
let d = g.slice(2, -2);
|
|
354
|
+
return { type: "strong", raw: g, text: d, tokens: this.lexer.inlineTokens(d) };
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
codespan(n) {
|
|
359
|
+
let e = this.rules.inline.code.exec(n);
|
|
360
|
+
if (e) {
|
|
361
|
+
let s = e[2].replace(this.rules.other.newLineCharGlobal, " "), r = this.rules.other.nonSpaceChar.test(s), t = this.rules.other.startingSpaceChar.test(s) && this.rules.other.endingSpaceChar.test(s);
|
|
362
|
+
return r && t && (s = s.substring(1, s.length - 1)), { type: "codespan", raw: e[0], text: s };
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
br(n) {
|
|
366
|
+
let e = this.rules.inline.br.exec(n);
|
|
367
|
+
if (e) return { type: "br", raw: e[0] };
|
|
368
|
+
}
|
|
369
|
+
del(n) {
|
|
370
|
+
let e = this.rules.inline.del.exec(n);
|
|
371
|
+
if (e) return { type: "del", raw: e[0], text: e[2], tokens: this.lexer.inlineTokens(e[2]) };
|
|
372
|
+
}
|
|
373
|
+
autolink(n) {
|
|
374
|
+
let e = this.rules.inline.autolink.exec(n);
|
|
375
|
+
if (e) {
|
|
376
|
+
let s, r;
|
|
377
|
+
return e[2] === "@" ? (s = e[1], r = "mailto:" + s) : (s = e[1], r = s), { type: "link", raw: e[0], text: s, href: r, tokens: [{ type: "text", raw: s, text: s }] };
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
url(n) {
|
|
381
|
+
let e;
|
|
382
|
+
if (e = this.rules.inline.url.exec(n)) {
|
|
383
|
+
let s, r;
|
|
384
|
+
if (e[2] === "@") s = e[0], r = "mailto:" + s;
|
|
385
|
+
else {
|
|
386
|
+
let t;
|
|
387
|
+
do
|
|
388
|
+
t = e[0], e[0] = this.rules.inline._backpedal.exec(e[0])?.[0] ?? "";
|
|
389
|
+
while (t !== e[0]);
|
|
390
|
+
s = e[0], e[1] === "www." ? r = "http://" + e[0] : r = e[0];
|
|
391
|
+
}
|
|
392
|
+
return { type: "link", raw: e[0], text: s, href: r, tokens: [{ type: "text", raw: s, text: s }] };
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
inlineText(n) {
|
|
396
|
+
let e = this.rules.inline.text.exec(n);
|
|
397
|
+
if (e) {
|
|
398
|
+
let s = this.lexer.state.inRawBlock;
|
|
399
|
+
return { type: "text", raw: e[0], text: e[0], escaped: s };
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}, v = class O {
|
|
403
|
+
tokens;
|
|
404
|
+
options;
|
|
405
|
+
state;
|
|
406
|
+
tokenizer;
|
|
407
|
+
inlineQueue;
|
|
408
|
+
constructor(e) {
|
|
409
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || S, this.options.tokenizer = this.options.tokenizer || new L(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
410
|
+
let s = { other: x, block: q.normal, inline: R.normal };
|
|
411
|
+
this.options.pedantic ? (s.block = q.pedantic, s.inline = R.pedantic) : this.options.gfm && (s.block = q.gfm, this.options.breaks ? s.inline = R.breaks : s.inline = R.gfm), this.tokenizer.rules = s;
|
|
412
|
+
}
|
|
413
|
+
static get rules() {
|
|
414
|
+
return { block: q, inline: R };
|
|
415
|
+
}
|
|
416
|
+
static lex(e, s) {
|
|
417
|
+
return new O(s).lex(e);
|
|
418
|
+
}
|
|
419
|
+
static lexInline(e, s) {
|
|
420
|
+
return new O(s).inlineTokens(e);
|
|
421
|
+
}
|
|
422
|
+
lex(e) {
|
|
423
|
+
e = e.replace(x.carriageReturn, `
|
|
424
|
+
`), this.blockTokens(e, this.tokens);
|
|
425
|
+
for (let s = 0; s < this.inlineQueue.length; s++) {
|
|
426
|
+
let r = this.inlineQueue[s];
|
|
427
|
+
this.inlineTokens(r.src, r.tokens);
|
|
428
|
+
}
|
|
429
|
+
return this.inlineQueue = [], this.tokens;
|
|
430
|
+
}
|
|
431
|
+
blockTokens(e, s = [], r = !1) {
|
|
432
|
+
for (this.options.pedantic && (e = e.replace(x.tabCharGlobal, " ").replace(x.spaceLine, "")); e; ) {
|
|
433
|
+
let t;
|
|
434
|
+
if (this.options.extensions?.block?.some((i) => (t = i.call({ lexer: this }, e, s)) ? (e = e.substring(t.raw.length), s.push(t), !0) : !1)) continue;
|
|
435
|
+
if (t = this.tokenizer.space(e)) {
|
|
436
|
+
e = e.substring(t.raw.length);
|
|
437
|
+
let i = s.at(-1);
|
|
438
|
+
t.raw.length === 1 && i !== void 0 ? i.raw += `
|
|
439
|
+
` : s.push(t);
|
|
440
|
+
continue;
|
|
441
|
+
}
|
|
442
|
+
if (t = this.tokenizer.code(e)) {
|
|
443
|
+
e = e.substring(t.raw.length);
|
|
444
|
+
let i = s.at(-1);
|
|
445
|
+
i?.type === "paragraph" || i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
446
|
+
`) ? "" : `
|
|
447
|
+
`) + t.raw, i.text += `
|
|
448
|
+
` + t.text, this.inlineQueue.at(-1).src = i.text) : s.push(t);
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
if (t = this.tokenizer.fences(e)) {
|
|
452
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
if (t = this.tokenizer.heading(e)) {
|
|
456
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
if (t = this.tokenizer.hr(e)) {
|
|
460
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
461
|
+
continue;
|
|
462
|
+
}
|
|
463
|
+
if (t = this.tokenizer.blockquote(e)) {
|
|
464
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
465
|
+
continue;
|
|
466
|
+
}
|
|
467
|
+
if (t = this.tokenizer.list(e)) {
|
|
468
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
if (t = this.tokenizer.html(e)) {
|
|
472
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
if (t = this.tokenizer.def(e)) {
|
|
476
|
+
e = e.substring(t.raw.length);
|
|
477
|
+
let i = s.at(-1);
|
|
478
|
+
i?.type === "paragraph" || i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
479
|
+
`) ? "" : `
|
|
480
|
+
`) + t.raw, i.text += `
|
|
481
|
+
` + t.raw, this.inlineQueue.at(-1).src = i.text) : this.tokens.links[t.tag] || (this.tokens.links[t.tag] = { href: t.href, title: t.title }, s.push(t));
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
if (t = this.tokenizer.table(e)) {
|
|
485
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
if (t = this.tokenizer.lheading(e)) {
|
|
489
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
let a = e;
|
|
493
|
+
if (this.options.extensions?.startBlock) {
|
|
494
|
+
let i = 1 / 0, l = e.slice(1), o;
|
|
495
|
+
this.options.extensions.startBlock.forEach((c) => {
|
|
496
|
+
o = c.call({ lexer: this }, l), typeof o == "number" && o >= 0 && (i = Math.min(i, o));
|
|
497
|
+
}), i < 1 / 0 && i >= 0 && (a = e.substring(0, i + 1));
|
|
498
|
+
}
|
|
499
|
+
if (this.state.top && (t = this.tokenizer.paragraph(a))) {
|
|
500
|
+
let i = s.at(-1);
|
|
501
|
+
r && i?.type === "paragraph" ? (i.raw += (i.raw.endsWith(`
|
|
502
|
+
`) ? "" : `
|
|
503
|
+
`) + t.raw, i.text += `
|
|
504
|
+
` + t.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : s.push(t), r = a.length !== e.length, e = e.substring(t.raw.length);
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
if (t = this.tokenizer.text(e)) {
|
|
508
|
+
e = e.substring(t.raw.length);
|
|
509
|
+
let i = s.at(-1);
|
|
510
|
+
i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
511
|
+
`) ? "" : `
|
|
512
|
+
`) + t.raw, i.text += `
|
|
513
|
+
` + t.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : s.push(t);
|
|
514
|
+
continue;
|
|
515
|
+
}
|
|
516
|
+
if (e) {
|
|
517
|
+
let i = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
518
|
+
if (this.options.silent) {
|
|
519
|
+
console.error(i);
|
|
520
|
+
break;
|
|
521
|
+
} else throw new Error(i);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return this.state.top = !0, s;
|
|
525
|
+
}
|
|
526
|
+
inline(e, s = []) {
|
|
527
|
+
return this.inlineQueue.push({ src: e, tokens: s }), s;
|
|
528
|
+
}
|
|
529
|
+
inlineTokens(e, s = []) {
|
|
530
|
+
let r = e, t = null;
|
|
531
|
+
if (this.tokens.links) {
|
|
532
|
+
let l = Object.keys(this.tokens.links);
|
|
533
|
+
if (l.length > 0) for (; (t = this.tokenizer.rules.inline.reflinkSearch.exec(r)) != null; ) l.includes(t[0].slice(t[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, t.index) + "[" + "a".repeat(t[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
534
|
+
}
|
|
535
|
+
for (; (t = this.tokenizer.rules.inline.anyPunctuation.exec(r)) != null; ) r = r.slice(0, t.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
536
|
+
for (; (t = this.tokenizer.rules.inline.blockSkip.exec(r)) != null; ) r = r.slice(0, t.index) + "[" + "a".repeat(t[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
537
|
+
r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
|
|
538
|
+
let a = !1, i = "";
|
|
539
|
+
for (; e; ) {
|
|
540
|
+
a || (i = ""), a = !1;
|
|
541
|
+
let l;
|
|
542
|
+
if (this.options.extensions?.inline?.some((c) => (l = c.call({ lexer: this }, e, s)) ? (e = e.substring(l.raw.length), s.push(l), !0) : !1)) continue;
|
|
543
|
+
if (l = this.tokenizer.escape(e)) {
|
|
544
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
if (l = this.tokenizer.tag(e)) {
|
|
548
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
if (l = this.tokenizer.link(e)) {
|
|
552
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
if (l = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
556
|
+
e = e.substring(l.raw.length);
|
|
557
|
+
let c = s.at(-1);
|
|
558
|
+
l.type === "text" && c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
if (l = this.tokenizer.emStrong(e, r, i)) {
|
|
562
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
563
|
+
continue;
|
|
564
|
+
}
|
|
565
|
+
if (l = this.tokenizer.codespan(e)) {
|
|
566
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
567
|
+
continue;
|
|
568
|
+
}
|
|
569
|
+
if (l = this.tokenizer.br(e)) {
|
|
570
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
if (l = this.tokenizer.del(e)) {
|
|
574
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
if (l = this.tokenizer.autolink(e)) {
|
|
578
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
if (!this.state.inLink && (l = this.tokenizer.url(e))) {
|
|
582
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
let o = e;
|
|
586
|
+
if (this.options.extensions?.startInline) {
|
|
587
|
+
let c = 1 / 0, h = e.slice(1), g;
|
|
588
|
+
this.options.extensions.startInline.forEach((d) => {
|
|
589
|
+
g = d.call({ lexer: this }, h), typeof g == "number" && g >= 0 && (c = Math.min(c, g));
|
|
590
|
+
}), c < 1 / 0 && c >= 0 && (o = e.substring(0, c + 1));
|
|
591
|
+
}
|
|
592
|
+
if (l = this.tokenizer.inlineText(o)) {
|
|
593
|
+
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (i = l.raw.slice(-1)), a = !0;
|
|
594
|
+
let c = s.at(-1);
|
|
595
|
+
c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
596
|
+
continue;
|
|
597
|
+
}
|
|
598
|
+
if (e) {
|
|
599
|
+
let c = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
600
|
+
if (this.options.silent) {
|
|
601
|
+
console.error(c);
|
|
602
|
+
break;
|
|
603
|
+
} else throw new Error(c);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return s;
|
|
607
|
+
}
|
|
608
|
+
}, E = class {
|
|
609
|
+
options;
|
|
610
|
+
parser;
|
|
611
|
+
constructor(n) {
|
|
612
|
+
this.options = n || S;
|
|
613
|
+
}
|
|
614
|
+
space(n) {
|
|
615
|
+
return "";
|
|
616
|
+
}
|
|
617
|
+
code({ text: n, lang: e, escaped: s }) {
|
|
618
|
+
let r = (e || "").match(x.notSpaceStart)?.[0], t = n.replace(x.endingNewline, "") + `
|
|
619
|
+
`;
|
|
620
|
+
return r ? '<pre><code class="language-' + w(r) + '">' + (s ? t : w(t, !0)) + `</code></pre>
|
|
621
|
+
` : "<pre><code>" + (s ? t : w(t, !0)) + `</code></pre>
|
|
622
|
+
`;
|
|
623
|
+
}
|
|
624
|
+
blockquote({ tokens: n }) {
|
|
625
|
+
return `<blockquote>
|
|
626
|
+
${this.parser.parse(n)}</blockquote>
|
|
627
|
+
`;
|
|
628
|
+
}
|
|
629
|
+
html({ text: n }) {
|
|
630
|
+
return n;
|
|
631
|
+
}
|
|
632
|
+
def(n) {
|
|
633
|
+
return "";
|
|
634
|
+
}
|
|
635
|
+
heading({ tokens: n, depth: e }) {
|
|
636
|
+
return `<h${e}>${this.parser.parseInline(n)}</h${e}>
|
|
637
|
+
`;
|
|
638
|
+
}
|
|
639
|
+
hr(n) {
|
|
640
|
+
return `<hr>
|
|
641
|
+
`;
|
|
642
|
+
}
|
|
643
|
+
list(n) {
|
|
644
|
+
let e = n.ordered, s = n.start, r = "";
|
|
645
|
+
for (let i = 0; i < n.items.length; i++) {
|
|
646
|
+
let l = n.items[i];
|
|
647
|
+
r += this.listitem(l);
|
|
648
|
+
}
|
|
649
|
+
let t = e ? "ol" : "ul", a = e && s !== 1 ? ' start="' + s + '"' : "";
|
|
650
|
+
return "<" + t + a + `>
|
|
651
|
+
` + r + "</" + t + `>
|
|
652
|
+
`;
|
|
653
|
+
}
|
|
654
|
+
listitem(n) {
|
|
655
|
+
let e = "";
|
|
656
|
+
if (n.task) {
|
|
657
|
+
let s = this.checkbox({ checked: !!n.checked });
|
|
658
|
+
n.loose ? n.tokens[0]?.type === "paragraph" ? (n.tokens[0].text = s + " " + n.tokens[0].text, n.tokens[0].tokens && n.tokens[0].tokens.length > 0 && n.tokens[0].tokens[0].type === "text" && (n.tokens[0].tokens[0].text = s + " " + w(n.tokens[0].tokens[0].text), n.tokens[0].tokens[0].escaped = !0)) : n.tokens.unshift({ type: "text", raw: s + " ", text: s + " ", escaped: !0 }) : e += s + " ";
|
|
659
|
+
}
|
|
660
|
+
return e += this.parser.parse(n.tokens, !!n.loose), `<li>${e}</li>
|
|
661
|
+
`;
|
|
662
|
+
}
|
|
663
|
+
checkbox({ checked: n }) {
|
|
664
|
+
return "<input " + (n ? 'checked="" ' : "") + 'disabled="" type="checkbox">';
|
|
665
|
+
}
|
|
666
|
+
paragraph({ tokens: n }) {
|
|
667
|
+
return `<p>${this.parser.parseInline(n)}</p>
|
|
668
|
+
`;
|
|
669
|
+
}
|
|
670
|
+
table(n) {
|
|
671
|
+
let e = "", s = "";
|
|
672
|
+
for (let t = 0; t < n.header.length; t++) s += this.tablecell(n.header[t]);
|
|
673
|
+
e += this.tablerow({ text: s });
|
|
674
|
+
let r = "";
|
|
675
|
+
for (let t = 0; t < n.rows.length; t++) {
|
|
676
|
+
let a = n.rows[t];
|
|
677
|
+
s = "";
|
|
678
|
+
for (let i = 0; i < a.length; i++) s += this.tablecell(a[i]);
|
|
679
|
+
r += this.tablerow({ text: s });
|
|
680
|
+
}
|
|
681
|
+
return r && (r = `<tbody>${r}</tbody>`), `<table>
|
|
682
|
+
<thead>
|
|
683
|
+
` + e + `</thead>
|
|
684
|
+
` + r + `</table>
|
|
685
|
+
`;
|
|
686
|
+
}
|
|
687
|
+
tablerow({ text: n }) {
|
|
688
|
+
return `<tr>
|
|
689
|
+
${n}</tr>
|
|
690
|
+
`;
|
|
691
|
+
}
|
|
692
|
+
tablecell(n) {
|
|
693
|
+
let e = this.parser.parseInline(n.tokens), s = n.header ? "th" : "td";
|
|
694
|
+
return (n.align ? `<${s} align="${n.align}">` : `<${s}>`) + e + `</${s}>
|
|
695
|
+
`;
|
|
696
|
+
}
|
|
697
|
+
strong({ tokens: n }) {
|
|
698
|
+
return `<strong>${this.parser.parseInline(n)}</strong>`;
|
|
699
|
+
}
|
|
700
|
+
em({ tokens: n }) {
|
|
701
|
+
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
702
|
+
}
|
|
703
|
+
codespan({ text: n }) {
|
|
704
|
+
return `<code>${w(n, !0)}</code>`;
|
|
705
|
+
}
|
|
706
|
+
br(n) {
|
|
707
|
+
return "<br>";
|
|
708
|
+
}
|
|
709
|
+
del({ tokens: n }) {
|
|
710
|
+
return `<del>${this.parser.parseInline(n)}</del>`;
|
|
711
|
+
}
|
|
712
|
+
link({ href: n, title: e, tokens: s }) {
|
|
713
|
+
let r = this.parser.parseInline(s), t = ie(n);
|
|
714
|
+
if (t === null) return r;
|
|
715
|
+
n = t;
|
|
716
|
+
let a = '<a href="' + n + '"';
|
|
717
|
+
return e && (a += ' title="' + w(e) + '"'), a += ">" + r + "</a>", a;
|
|
718
|
+
}
|
|
719
|
+
image({ href: n, title: e, text: s, tokens: r }) {
|
|
720
|
+
r && (s = this.parser.parseInline(r, this.parser.textRenderer));
|
|
721
|
+
let t = ie(n);
|
|
722
|
+
if (t === null) return w(s);
|
|
723
|
+
n = t;
|
|
724
|
+
let a = `<img src="${n}" alt="${s}"`;
|
|
725
|
+
return e && (a += ` title="${w(e)}"`), a += ">", a;
|
|
726
|
+
}
|
|
727
|
+
text(n) {
|
|
728
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : w(n.text);
|
|
729
|
+
}
|
|
730
|
+
}, J = class {
|
|
731
|
+
strong({ text: n }) {
|
|
732
|
+
return n;
|
|
733
|
+
}
|
|
734
|
+
em({ text: n }) {
|
|
735
|
+
return n;
|
|
736
|
+
}
|
|
737
|
+
codespan({ text: n }) {
|
|
738
|
+
return n;
|
|
739
|
+
}
|
|
740
|
+
del({ text: n }) {
|
|
741
|
+
return n;
|
|
742
|
+
}
|
|
743
|
+
html({ text: n }) {
|
|
744
|
+
return n;
|
|
745
|
+
}
|
|
746
|
+
text({ text: n }) {
|
|
747
|
+
return n;
|
|
748
|
+
}
|
|
749
|
+
link({ text: n }) {
|
|
750
|
+
return "" + n;
|
|
751
|
+
}
|
|
752
|
+
image({ text: n }) {
|
|
753
|
+
return "" + n;
|
|
754
|
+
}
|
|
755
|
+
br() {
|
|
756
|
+
return "";
|
|
757
|
+
}
|
|
758
|
+
}, y = class N {
|
|
759
|
+
options;
|
|
760
|
+
renderer;
|
|
761
|
+
textRenderer;
|
|
762
|
+
constructor(e) {
|
|
763
|
+
this.options = e || S, this.options.renderer = this.options.renderer || new E(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new J();
|
|
764
|
+
}
|
|
765
|
+
static parse(e, s) {
|
|
766
|
+
return new N(s).parse(e);
|
|
767
|
+
}
|
|
768
|
+
static parseInline(e, s) {
|
|
769
|
+
return new N(s).parseInline(e);
|
|
770
|
+
}
|
|
771
|
+
parse(e, s = !0) {
|
|
772
|
+
let r = "";
|
|
773
|
+
for (let t = 0; t < e.length; t++) {
|
|
774
|
+
let a = e[t];
|
|
775
|
+
if (this.options.extensions?.renderers?.[a.type]) {
|
|
776
|
+
let l = a, o = this.options.extensions.renderers[l.type].call({ parser: this }, l);
|
|
777
|
+
if (o !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(l.type)) {
|
|
778
|
+
r += o || "";
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
let i = a;
|
|
783
|
+
switch (i.type) {
|
|
784
|
+
case "space": {
|
|
785
|
+
r += this.renderer.space(i);
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
case "hr": {
|
|
789
|
+
r += this.renderer.hr(i);
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
case "heading": {
|
|
793
|
+
r += this.renderer.heading(i);
|
|
794
|
+
continue;
|
|
795
|
+
}
|
|
796
|
+
case "code": {
|
|
797
|
+
r += this.renderer.code(i);
|
|
798
|
+
continue;
|
|
799
|
+
}
|
|
800
|
+
case "table": {
|
|
801
|
+
r += this.renderer.table(i);
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
case "blockquote": {
|
|
805
|
+
r += this.renderer.blockquote(i);
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
case "list": {
|
|
809
|
+
r += this.renderer.list(i);
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
case "html": {
|
|
813
|
+
r += this.renderer.html(i);
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
case "def": {
|
|
817
|
+
r += this.renderer.def(i);
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
case "paragraph": {
|
|
821
|
+
r += this.renderer.paragraph(i);
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
case "text": {
|
|
825
|
+
let l = i, o = this.renderer.text(l);
|
|
826
|
+
for (; t + 1 < e.length && e[t + 1].type === "text"; ) l = e[++t], o += `
|
|
827
|
+
` + this.renderer.text(l);
|
|
828
|
+
s ? r += this.renderer.paragraph({ type: "paragraph", raw: o, text: o, tokens: [{ type: "text", raw: o, text: o, escaped: !0 }] }) : r += o;
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
default: {
|
|
832
|
+
let l = 'Token with "' + i.type + '" type was not found.';
|
|
833
|
+
if (this.options.silent) return console.error(l), "";
|
|
834
|
+
throw new Error(l);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
return r;
|
|
839
|
+
}
|
|
840
|
+
parseInline(e, s = this.renderer) {
|
|
841
|
+
let r = "";
|
|
842
|
+
for (let t = 0; t < e.length; t++) {
|
|
843
|
+
let a = e[t];
|
|
844
|
+
if (this.options.extensions?.renderers?.[a.type]) {
|
|
845
|
+
let l = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
846
|
+
if (l !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
|
|
847
|
+
r += l || "";
|
|
848
|
+
continue;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
let i = a;
|
|
852
|
+
switch (i.type) {
|
|
853
|
+
case "escape": {
|
|
854
|
+
r += s.text(i);
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
case "html": {
|
|
858
|
+
r += s.html(i);
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
case "link": {
|
|
862
|
+
r += s.link(i);
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
case "image": {
|
|
866
|
+
r += s.image(i);
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
869
|
+
case "strong": {
|
|
870
|
+
r += s.strong(i);
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
case "em": {
|
|
874
|
+
r += s.em(i);
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
877
|
+
case "codespan": {
|
|
878
|
+
r += s.codespan(i);
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
case "br": {
|
|
882
|
+
r += s.br(i);
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
case "del": {
|
|
886
|
+
r += s.del(i);
|
|
887
|
+
break;
|
|
888
|
+
}
|
|
889
|
+
case "text": {
|
|
890
|
+
r += s.text(i);
|
|
891
|
+
break;
|
|
892
|
+
}
|
|
893
|
+
default: {
|
|
894
|
+
let l = 'Token with "' + i.type + '" type was not found.';
|
|
895
|
+
if (this.options.silent) return console.error(l), "";
|
|
896
|
+
throw new Error(l);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return r;
|
|
901
|
+
}
|
|
902
|
+
}, I = class {
|
|
903
|
+
options;
|
|
904
|
+
block;
|
|
905
|
+
constructor(n) {
|
|
906
|
+
this.options = n || S;
|
|
907
|
+
}
|
|
908
|
+
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
|
|
909
|
+
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
910
|
+
preprocess(n) {
|
|
911
|
+
return n;
|
|
912
|
+
}
|
|
913
|
+
postprocess(n) {
|
|
914
|
+
return n;
|
|
915
|
+
}
|
|
916
|
+
processAllTokens(n) {
|
|
917
|
+
return n;
|
|
918
|
+
}
|
|
919
|
+
emStrongMask(n) {
|
|
920
|
+
return n;
|
|
921
|
+
}
|
|
922
|
+
provideLexer() {
|
|
923
|
+
return this.block ? v.lex : v.lexInline;
|
|
924
|
+
}
|
|
925
|
+
provideParser() {
|
|
926
|
+
return this.block ? y.parse : y.parseInline;
|
|
927
|
+
}
|
|
928
|
+
}, pt = class {
|
|
929
|
+
defaults = U();
|
|
930
|
+
options = this.setOptions;
|
|
931
|
+
parse = this.parseMarkdown(!0);
|
|
932
|
+
parseInline = this.parseMarkdown(!1);
|
|
933
|
+
Parser = y;
|
|
934
|
+
Renderer = E;
|
|
935
|
+
TextRenderer = J;
|
|
936
|
+
Lexer = v;
|
|
937
|
+
Tokenizer = L;
|
|
938
|
+
Hooks = I;
|
|
939
|
+
constructor(...n) {
|
|
940
|
+
this.use(...n);
|
|
941
|
+
}
|
|
942
|
+
walkTokens(n, e) {
|
|
943
|
+
let s = [];
|
|
944
|
+
for (let r of n) switch (s = s.concat(e.call(this, r)), r.type) {
|
|
945
|
+
case "table": {
|
|
946
|
+
let t = r;
|
|
947
|
+
for (let a of t.header) s = s.concat(this.walkTokens(a.tokens, e));
|
|
948
|
+
for (let a of t.rows) for (let i of a) s = s.concat(this.walkTokens(i.tokens, e));
|
|
949
|
+
break;
|
|
950
|
+
}
|
|
951
|
+
case "list": {
|
|
952
|
+
let t = r;
|
|
953
|
+
s = s.concat(this.walkTokens(t.items, e));
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
default: {
|
|
957
|
+
let t = r;
|
|
958
|
+
this.defaults.extensions?.childTokens?.[t.type] ? this.defaults.extensions.childTokens[t.type].forEach((a) => {
|
|
959
|
+
let i = t[a].flat(1 / 0);
|
|
960
|
+
s = s.concat(this.walkTokens(i, e));
|
|
961
|
+
}) : t.tokens && (s = s.concat(this.walkTokens(t.tokens, e)));
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return s;
|
|
965
|
+
}
|
|
966
|
+
use(...n) {
|
|
967
|
+
let e = this.defaults.extensions || { renderers: {}, childTokens: {} };
|
|
968
|
+
return n.forEach((s) => {
|
|
969
|
+
let r = { ...s };
|
|
970
|
+
if (r.async = this.defaults.async || r.async || !1, s.extensions && (s.extensions.forEach((t) => {
|
|
971
|
+
if (!t.name) throw new Error("extension name required");
|
|
972
|
+
if ("renderer" in t) {
|
|
973
|
+
let a = e.renderers[t.name];
|
|
974
|
+
a ? e.renderers[t.name] = function(...i) {
|
|
975
|
+
let l = t.renderer.apply(this, i);
|
|
976
|
+
return l === !1 && (l = a.apply(this, i)), l;
|
|
977
|
+
} : e.renderers[t.name] = t.renderer;
|
|
978
|
+
}
|
|
979
|
+
if ("tokenizer" in t) {
|
|
980
|
+
if (!t.level || t.level !== "block" && t.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
|
|
981
|
+
let a = e[t.level];
|
|
982
|
+
a ? a.unshift(t.tokenizer) : e[t.level] = [t.tokenizer], t.start && (t.level === "block" ? e.startBlock ? e.startBlock.push(t.start) : e.startBlock = [t.start] : t.level === "inline" && (e.startInline ? e.startInline.push(t.start) : e.startInline = [t.start]));
|
|
983
|
+
}
|
|
984
|
+
"childTokens" in t && t.childTokens && (e.childTokens[t.name] = t.childTokens);
|
|
985
|
+
}), r.extensions = e), s.renderer) {
|
|
986
|
+
let t = this.defaults.renderer || new E(this.defaults);
|
|
987
|
+
for (let a in s.renderer) {
|
|
988
|
+
if (!(a in t)) throw new Error(`renderer '${a}' does not exist`);
|
|
989
|
+
if (["options", "parser"].includes(a)) continue;
|
|
990
|
+
let i = a, l = s.renderer[i], o = t[i];
|
|
991
|
+
t[i] = (...c) => {
|
|
992
|
+
let h = l.apply(t, c);
|
|
993
|
+
return h === !1 && (h = o.apply(t, c)), h || "";
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
r.renderer = t;
|
|
997
|
+
}
|
|
998
|
+
if (s.tokenizer) {
|
|
999
|
+
let t = this.defaults.tokenizer || new L(this.defaults);
|
|
1000
|
+
for (let a in s.tokenizer) {
|
|
1001
|
+
if (!(a in t)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
1002
|
+
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
1003
|
+
let i = a, l = s.tokenizer[i], o = t[i];
|
|
1004
|
+
t[i] = (...c) => {
|
|
1005
|
+
let h = l.apply(t, c);
|
|
1006
|
+
return h === !1 && (h = o.apply(t, c)), h;
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
r.tokenizer = t;
|
|
1010
|
+
}
|
|
1011
|
+
if (s.hooks) {
|
|
1012
|
+
let t = this.defaults.hooks || new I();
|
|
1013
|
+
for (let a in s.hooks) {
|
|
1014
|
+
if (!(a in t)) throw new Error(`hook '${a}' does not exist`);
|
|
1015
|
+
if (["options", "block"].includes(a)) continue;
|
|
1016
|
+
let i = a, l = s.hooks[i], o = t[i];
|
|
1017
|
+
I.passThroughHooks.has(a) ? t[i] = (c) => {
|
|
1018
|
+
if (this.defaults.async && I.passThroughHooksRespectAsync.has(a)) return Promise.resolve(l.call(t, c)).then((g) => o.call(t, g));
|
|
1019
|
+
let h = l.call(t, c);
|
|
1020
|
+
return o.call(t, h);
|
|
1021
|
+
} : t[i] = (...c) => {
|
|
1022
|
+
let h = l.apply(t, c);
|
|
1023
|
+
return h === !1 && (h = o.apply(t, c)), h;
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
r.hooks = t;
|
|
1027
|
+
}
|
|
1028
|
+
if (s.walkTokens) {
|
|
1029
|
+
let t = this.defaults.walkTokens, a = s.walkTokens;
|
|
1030
|
+
r.walkTokens = function(i) {
|
|
1031
|
+
let l = [];
|
|
1032
|
+
return l.push(a.call(this, i)), t && (l = l.concat(t.call(this, i))), l;
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
this.defaults = { ...this.defaults, ...r };
|
|
1036
|
+
}), this;
|
|
1037
|
+
}
|
|
1038
|
+
setOptions(n) {
|
|
1039
|
+
return this.defaults = { ...this.defaults, ...n }, this;
|
|
1040
|
+
}
|
|
1041
|
+
lexer(n, e) {
|
|
1042
|
+
return v.lex(n, e ?? this.defaults);
|
|
1043
|
+
}
|
|
1044
|
+
parser(n, e) {
|
|
1045
|
+
return y.parse(n, e ?? this.defaults);
|
|
1046
|
+
}
|
|
1047
|
+
parseMarkdown(n) {
|
|
1048
|
+
return (e, s) => {
|
|
1049
|
+
let r = { ...s }, t = { ...this.defaults, ...r }, a = this.onError(!!t.silent, !!t.async);
|
|
1050
|
+
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."));
|
|
1051
|
+
if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
|
|
1052
|
+
if (typeof e != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
|
|
1053
|
+
t.hooks && (t.hooks.options = t, t.hooks.block = n);
|
|
1054
|
+
let i = t.hooks ? t.hooks.provideLexer() : n ? v.lex : v.lexInline, l = t.hooks ? t.hooks.provideParser() : n ? y.parse : y.parseInline;
|
|
1055
|
+
if (t.async) return Promise.resolve(t.hooks ? t.hooks.preprocess(e) : e).then((o) => i(o, t)).then((o) => t.hooks ? t.hooks.processAllTokens(o) : o).then((o) => t.walkTokens ? Promise.all(this.walkTokens(o, t.walkTokens)).then(() => o) : o).then((o) => l(o, t)).then((o) => t.hooks ? t.hooks.postprocess(o) : o).catch(a);
|
|
1056
|
+
try {
|
|
1057
|
+
t.hooks && (e = t.hooks.preprocess(e));
|
|
1058
|
+
let o = i(e, t);
|
|
1059
|
+
t.hooks && (o = t.hooks.processAllTokens(o)), t.walkTokens && this.walkTokens(o, t.walkTokens);
|
|
1060
|
+
let c = l(o, t);
|
|
1061
|
+
return t.hooks && (c = t.hooks.postprocess(c)), c;
|
|
1062
|
+
} catch (o) {
|
|
1063
|
+
return a(o);
|
|
1064
|
+
}
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
onError(n, e) {
|
|
1068
|
+
return (s) => {
|
|
1069
|
+
if (s.message += `
|
|
1070
|
+
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
1071
|
+
let r = "<p>An error occurred:</p><pre>" + w(s.message + "", !0) + "</pre>";
|
|
1072
|
+
return e ? Promise.resolve(r) : r;
|
|
1073
|
+
}
|
|
1074
|
+
if (e) return Promise.reject(s);
|
|
1075
|
+
throw s;
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
}, $ = new pt();
|
|
1079
|
+
function p(n, e) {
|
|
1080
|
+
return $.parse(n, e);
|
|
1081
|
+
}
|
|
1082
|
+
p.options = p.setOptions = function(n) {
|
|
1083
|
+
return $.setOptions(n), p.defaults = $.defaults, oe(p.defaults), p;
|
|
1084
|
+
};
|
|
1085
|
+
p.getDefaults = U;
|
|
1086
|
+
p.defaults = S;
|
|
1087
|
+
p.use = function(...n) {
|
|
1088
|
+
return $.use(...n), p.defaults = $.defaults, oe(p.defaults), p;
|
|
1089
|
+
};
|
|
1090
|
+
p.walkTokens = function(n, e) {
|
|
1091
|
+
return $.walkTokens(n, e);
|
|
1092
|
+
};
|
|
1093
|
+
p.parseInline = $.parseInline;
|
|
1094
|
+
p.Parser = y;
|
|
1095
|
+
p.parser = y.parse;
|
|
1096
|
+
p.Renderer = E;
|
|
1097
|
+
p.TextRenderer = J;
|
|
1098
|
+
p.Lexer = v;
|
|
1099
|
+
p.lexer = v.lex;
|
|
1100
|
+
p.Tokenizer = L;
|
|
1101
|
+
p.Hooks = I;
|
|
1102
|
+
p.parse = p;
|
|
1103
|
+
p.options;
|
|
1104
|
+
p.setOptions;
|
|
1105
|
+
p.use;
|
|
1106
|
+
p.walkTokens;
|
|
1107
|
+
p.parseInline;
|
|
1108
|
+
y.parse;
|
|
1109
|
+
v.lex;
|
|
1110
|
+
class dt extends ye {
|
|
46
1111
|
constructor() {
|
|
47
1112
|
super(), this.serverRoot = "https://aiservices-beta.arcgis.com/", this.solutionAIurl = `${this.serverRoot}skills/solution_deployment/chat`, this.docAIurl = `${this.serverRoot}skills/doc_ai_assistant/chat`, this.token = null, this.open = !1, this.conversationStore = {
|
|
48
1113
|
conversationId: null,
|
|
49
1114
|
inquiryId: null,
|
|
50
1115
|
ackSequenceNumber: null
|
|
51
|
-
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations =
|
|
1116
|
+
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations = ve({ name: "arcgis-solutions-assistant", blocking: !0 }), this.closeAssistant = $e(), this._resetConversation = () => {
|
|
52
1117
|
this.conversationStore.conversationId = null, this.conversationStore.inquiryId = null, this.conversationStore.ackSequenceNumber = null;
|
|
53
1118
|
}, this._setMessageContainerRef = (e) => {
|
|
54
1119
|
this._chatContainer = e;
|
|
55
1120
|
}, this._setInputRef = (e) => {
|
|
56
|
-
this._inputRef = e, this._inputRef.addEventListener("keydown", (
|
|
57
|
-
|
|
1121
|
+
this._inputRef = e, this._inputRef.addEventListener("keydown", (s) => {
|
|
1122
|
+
s.key === "Enter" && !s.shiftKey && (s.preventDefault(), this.handleSendMessage());
|
|
58
1123
|
}), setTimeout(() => {
|
|
59
1124
|
this._inputRef?.focus();
|
|
60
1125
|
}, 100);
|
|
@@ -68,7 +1133,7 @@ class $ extends g {
|
|
|
68
1133
|
this.properties = { serverRoot: 1, solutionAIurl: 1, docAIurl: 1, token: 1, open: 5, conversationStore: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _translations: 16 };
|
|
69
1134
|
}
|
|
70
1135
|
static {
|
|
71
|
-
this.styles =
|
|
1136
|
+
this.styles = Te;
|
|
72
1137
|
}
|
|
73
1138
|
async handleSendMessage() {
|
|
74
1139
|
if (!this._inputRef?.value.trim())
|
|
@@ -76,7 +1141,7 @@ class $ extends g {
|
|
|
76
1141
|
this._isLoading = !0;
|
|
77
1142
|
const e = this._inputRef.value.trim();
|
|
78
1143
|
this._inputRef.value = "";
|
|
79
|
-
let
|
|
1144
|
+
let s = {
|
|
80
1145
|
message: e,
|
|
81
1146
|
context: {
|
|
82
1147
|
debug: !1,
|
|
@@ -84,207 +1149,230 @@ class $ extends g {
|
|
|
84
1149
|
}
|
|
85
1150
|
};
|
|
86
1151
|
if (this.conversationStore.conversationId !== null) {
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
1152
|
+
if (s.conversationId = this.conversationStore.conversationId, this.token) {
|
|
1153
|
+
const r = {
|
|
89
1154
|
author: "human",
|
|
90
|
-
|
|
1155
|
+
conversationId: this.conversationStore.conversationId ? this.conversationStore.conversationId : "",
|
|
91
1156
|
message: e,
|
|
92
|
-
render: this._renderSimpleTextMessage(e, "human")
|
|
1157
|
+
render: this._renderSimpleTextMessage(e, "human", "", "Other")
|
|
93
1158
|
};
|
|
94
|
-
this.messages = [...this.messages,
|
|
95
|
-
const
|
|
96
|
-
this.loopRequest(
|
|
1159
|
+
this.messages = [...this.messages, r];
|
|
1160
|
+
const t = await this.requestAIServer(s, this.token, this.solutionAIurl);
|
|
1161
|
+
this.loopRequest(t, this.token, this.solutionAIurl);
|
|
97
1162
|
}
|
|
98
1163
|
} else if (this.token) {
|
|
99
|
-
const
|
|
1164
|
+
const r = {
|
|
100
1165
|
author: "human",
|
|
101
|
-
inquiryId: "",
|
|
102
1166
|
message: e,
|
|
103
|
-
render: this._renderSimpleTextMessage(e, "human")
|
|
1167
|
+
render: this._renderSimpleTextMessage(e, "human", "", "Other")
|
|
104
1168
|
};
|
|
105
|
-
this.messages = [...this.messages,
|
|
106
|
-
const
|
|
107
|
-
this.conversationStore.conversationId =
|
|
1169
|
+
this.messages = [...this.messages, r];
|
|
1170
|
+
const t = await this.requestAIServer(s, this.token, this.solutionAIurl);
|
|
1171
|
+
this.conversationStore.conversationId = t.conversationId, this.conversationStore.inquiryId = t.inquiryId, this.conversationStore.ackSequenceNumber = t.sequenceNumber, this.loopRequest(t, this.token, this.solutionAIurl);
|
|
108
1172
|
}
|
|
109
1173
|
}
|
|
110
|
-
async loopRequest(e,
|
|
111
|
-
let
|
|
112
|
-
for (this._isLoading = !0;
|
|
113
|
-
const
|
|
114
|
-
conversationId:
|
|
115
|
-
ackSequenceNumber:
|
|
116
|
-
inquiryId:
|
|
1174
|
+
async loopRequest(e, s, r) {
|
|
1175
|
+
let t = e;
|
|
1176
|
+
for (this._isLoading = !0; t.hasMore; ) {
|
|
1177
|
+
const a = {
|
|
1178
|
+
conversationId: t.conversationId,
|
|
1179
|
+
ackSequenceNumber: t.sequenceNumber,
|
|
1180
|
+
inquiryId: t.inquiryId
|
|
117
1181
|
};
|
|
118
|
-
if (
|
|
119
|
-
if (this.conversationStore.context =
|
|
120
|
-
switch (
|
|
1182
|
+
if (t = await this.requestAIServer(a, s, r), t.context)
|
|
1183
|
+
if (this.conversationStore.context = t.context, t.context.intent)
|
|
1184
|
+
switch (t.context.intent) {
|
|
121
1185
|
case "Solution question":
|
|
122
|
-
this.messages.push({
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
1186
|
+
this.messages.push({
|
|
1187
|
+
author: "ai",
|
|
1188
|
+
conversationId: t.conversationId,
|
|
1189
|
+
intent: "Solution question",
|
|
1190
|
+
message: t.message ?? ""
|
|
1191
|
+
});
|
|
1192
|
+
const i = {
|
|
1193
|
+
message: t.message,
|
|
1194
|
+
conversationId: a.conversationId,
|
|
126
1195
|
context: { kind: "DocAIAssistantRequest", filters: { products: "ArcGIS Solutions" } }
|
|
127
1196
|
};
|
|
128
|
-
|
|
1197
|
+
t = await this.requestAIServer(i, s, this.docAIurl);
|
|
129
1198
|
break;
|
|
130
1199
|
case "Recommend solution":
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
133
|
-
message: s.message ?? "",
|
|
1200
|
+
if (t.context.results && t.context.results?.length > 0) {
|
|
1201
|
+
const o = {
|
|
134
1202
|
author: "ai",
|
|
135
|
-
|
|
136
|
-
|
|
1203
|
+
conversationId: t.conversationId,
|
|
1204
|
+
message: t.message ?? "",
|
|
1205
|
+
intent: "Recommend solution",
|
|
1206
|
+
render: this._renderSuggestedSolutions(t.message ?? "", t.context.results, t.conversationId, "Recommend solution")
|
|
137
1207
|
};
|
|
138
|
-
this.messages.push(
|
|
1208
|
+
this.messages.push(o);
|
|
139
1209
|
}
|
|
140
1210
|
break;
|
|
141
1211
|
default:
|
|
142
1212
|
this.messages.push({
|
|
143
1213
|
author: "ai",
|
|
144
|
-
|
|
145
|
-
message:
|
|
146
|
-
|
|
1214
|
+
conversationId: t.conversationId,
|
|
1215
|
+
message: t.message ?? "",
|
|
1216
|
+
intent: "Other",
|
|
1217
|
+
render: this._renderSimpleTextMessage(t.message ?? "", "ai", t.conversationId, "Other")
|
|
147
1218
|
});
|
|
148
1219
|
break;
|
|
149
1220
|
}
|
|
150
|
-
else if (
|
|
151
|
-
for (const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
1221
|
+
else if (t.context.results) {
|
|
1222
|
+
for (const i of t.context.results)
|
|
1223
|
+
if (i.reply !== "") {
|
|
1224
|
+
this._isLoadingText = "";
|
|
1225
|
+
const l = await Promise.resolve(p(i.reply));
|
|
1226
|
+
this.messages.push({
|
|
1227
|
+
message: l,
|
|
1228
|
+
author: "ai",
|
|
1229
|
+
conversationId: t.conversationId,
|
|
1230
|
+
intent: "Solution question",
|
|
1231
|
+
render: this._renderDocAssistantResults(l, i.ref, i.followupQuestions, t.conversationId, "Solution question")
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
} else {
|
|
159
1235
|
this.messages.push({
|
|
160
1236
|
author: "ai",
|
|
161
|
-
|
|
162
|
-
message:
|
|
163
|
-
|
|
1237
|
+
conversationId: t.conversationId,
|
|
1238
|
+
message: t.message ?? "",
|
|
1239
|
+
intent: "Error",
|
|
1240
|
+
render: this._renderSimpleTextMessage(t.message ?? "", "ai", t.conversationId, "Error")
|
|
164
1241
|
});
|
|
165
1242
|
break;
|
|
166
1243
|
}
|
|
167
1244
|
}
|
|
168
1245
|
this._isLoading = !1;
|
|
169
1246
|
}
|
|
170
|
-
async requestAIServer(e,
|
|
1247
|
+
async requestAIServer(e, s, r) {
|
|
171
1248
|
try {
|
|
172
|
-
const
|
|
1249
|
+
const a = await (await fetch(r, {
|
|
173
1250
|
method: "POST",
|
|
174
1251
|
headers: {
|
|
175
1252
|
"Content-Type": "application/json",
|
|
176
|
-
token:
|
|
1253
|
+
token: s
|
|
177
1254
|
},
|
|
178
1255
|
body: JSON.stringify(e)
|
|
179
1256
|
})).json();
|
|
180
|
-
if (
|
|
181
|
-
return
|
|
1257
|
+
if (a)
|
|
1258
|
+
return a;
|
|
182
1259
|
throw new Error("No data returned");
|
|
183
|
-
} catch (
|
|
184
|
-
throw new Error(`Request failed: ${
|
|
1260
|
+
} catch (t) {
|
|
1261
|
+
throw new Error(`Request failed: ${t}`);
|
|
185
1262
|
}
|
|
186
1263
|
}
|
|
187
1264
|
resetChat() {
|
|
188
1265
|
const e = this.messages[this.messages.length - 1];
|
|
189
|
-
if (e.author !== "system" && e.
|
|
1266
|
+
if (e.author !== "system" && e.conversationId !== "-1") {
|
|
190
1267
|
this._resetConversation();
|
|
191
|
-
const
|
|
1268
|
+
const s = {
|
|
192
1269
|
author: "system",
|
|
193
|
-
|
|
1270
|
+
conversationId: "-1",
|
|
194
1271
|
message: this._translations.newConversationStarted,
|
|
195
|
-
render: this._renderSimpleTextMessage(this._translations.newConversationStarted, "system", "speech-bubble-plus")
|
|
1272
|
+
render: this._renderSimpleTextMessage(this._translations.newConversationStarted, "system", "", "Other", "speech-bubble-plus")
|
|
196
1273
|
};
|
|
197
|
-
this.messages = [...this.messages,
|
|
1274
|
+
this.messages = [...this.messages, s], this._inputRef && (this._inputRef.value = "");
|
|
198
1275
|
}
|
|
199
1276
|
}
|
|
200
1277
|
willUpdate(e) {
|
|
201
1278
|
this.messages.length === 0 && this._translations.defaultStartUpMessage && (this.messages = [
|
|
202
1279
|
{
|
|
203
1280
|
author: "ai",
|
|
204
|
-
|
|
1281
|
+
conversationId: "",
|
|
205
1282
|
message: this._translations.defaultStartUpMessage,
|
|
206
|
-
render: this._renderSimpleTextMessage(this._translations.defaultStartUpMessage, "ai")
|
|
1283
|
+
render: this._renderSimpleTextMessage(this._translations.defaultStartUpMessage, "ai", "", "Other")
|
|
207
1284
|
}
|
|
208
1285
|
]);
|
|
209
1286
|
}
|
|
210
1287
|
updated(e) {
|
|
211
1288
|
(e.size || this._isLoading) && this._scrollToBottom();
|
|
212
1289
|
}
|
|
1290
|
+
_renderFeedback(e, s, r, t) {
|
|
1291
|
+
return k`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${() => {
|
|
1292
|
+
this._sendFeedback(e, s, "Good", r, t);
|
|
1293
|
+
}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${() => {
|
|
1294
|
+
this._sendFeedback(e, s, "Bad", r, t);
|
|
1295
|
+
}}></calcite-button></div>`;
|
|
1296
|
+
}
|
|
213
1297
|
_renderSolutionQuestionReferences(e) {
|
|
214
|
-
return e.map((
|
|
1298
|
+
return e.map((s) => k`<div class="message-content-pad"><a href=${s.url ?? Z} target=_blank>${s.title}</a></div>`);
|
|
215
1299
|
}
|
|
216
1300
|
_renderSolutionQuestionFollowup(e) {
|
|
217
|
-
return e.map((
|
|
218
|
-
this._submitFollowupQuestion(
|
|
219
|
-
}}>${
|
|
220
|
-
}
|
|
221
|
-
_renderSolutionsQuestionTable(e,
|
|
222
|
-
const
|
|
223
|
-
return
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
}}>${`${
|
|
227
|
-
}
|
|
228
|
-
_renderSolutionCard(e,
|
|
229
|
-
return
|
|
230
|
-
this._emitItemIdFromAI(
|
|
231
|
-
}}>${
|
|
232
|
-
}
|
|
233
|
-
_renderExistingSolutionsTable(e,
|
|
234
|
-
const
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
}).filter((
|
|
238
|
-
return
|
|
239
|
-
}
|
|
240
|
-
_renderSimpleTextMessage(e, t,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
1301
|
+
return e.map((s) => k`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${() => {
|
|
1302
|
+
this._submitFollowupQuestion(s);
|
|
1303
|
+
}}>${s}</calcite-chip>`);
|
|
1304
|
+
}
|
|
1305
|
+
_renderSolutionsQuestionTable(e, s, r) {
|
|
1306
|
+
const t = this._renderSolutionQuestionReferences(s), a = this._renderSolutionQuestionFollowup(r);
|
|
1307
|
+
return k`<div><div slot=description class="message-content">${Re(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${(i) => {
|
|
1308
|
+
const l = i.currentTarget.parentElement?.nextElementSibling;
|
|
1309
|
+
l.classList.toggle("collapsed"), i.currentTarget.setAttribute("icon-end", l.classList.contains("collapsed") ? "chevron-down" : "chevron-up");
|
|
1310
|
+
}}>${`${s.length} ${s.length === 1 ? this._translations.solutionsDocReference : this._translations.solutionsDocReferences}`}</calcite-button></div><div class="references-container collapsed">${t}</div></div><div class="padding-top-10">${a}</div></div>`;
|
|
1311
|
+
}
|
|
1312
|
+
_renderSolutionCard(e, s) {
|
|
1313
|
+
return k`<a class="solution-card" id=${s ?? Z} @click=${() => {
|
|
1314
|
+
this._emitItemIdFromAI(s);
|
|
1315
|
+
}}>${k`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail ?? Z} alt=Thumbnail><calcite-chip icon=launch label="View solution">${this._translations.viewSolutionInApp}</calcite-chip></div><h3 slot=heading><b>${e.title}</b></h3><span slot=description>${e.snippet}</span></calcite-card>`}</a>`;
|
|
1316
|
+
}
|
|
1317
|
+
_renderExistingSolutionsTable(e, s) {
|
|
1318
|
+
const r = s.map((t) => {
|
|
1319
|
+
const a = t.thumbnail.match(/\/items\/([a-f0-9]+)\//);
|
|
1320
|
+
return a ? this._renderSolutionCard(t, a[1]) : null;
|
|
1321
|
+
}).filter((t) => t !== null);
|
|
1322
|
+
return k`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${r}</div></div>`;
|
|
1323
|
+
}
|
|
1324
|
+
_renderSimpleTextMessage(e, s, r, t, a) {
|
|
1325
|
+
const i = this.messages.length >= 2 ? this.messages[this.messages.length - 2] : "", l = typeof i == "string" ? "" : i.message;
|
|
1326
|
+
return s === "system" ? k`<div class="message-content message-content-alignment">${a && k`<calcite-icon .icon=${a}></calcite-icon>` || ""}${e}</div>` : k`<calcite-card class=${Se(s === "human" ? "user-message" : "system-message")}><div class="message-content">${e}${s === "ai" && r !== "" && this._renderFeedback(e, l, r, t) || ""}</div></calcite-card>`;
|
|
1327
|
+
}
|
|
1328
|
+
_renderDocAssistantResults(e, s, r, t, a) {
|
|
1329
|
+
const i = this.messages[this.messages.length - 2];
|
|
1330
|
+
return k`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e, s, r)}${this._renderFeedback(e, i.message, t, a)}</div></calcite-card>`;
|
|
1331
|
+
}
|
|
1332
|
+
_renderSuggestedSolutions(e, s, r, t) {
|
|
1333
|
+
const a = this.messages[this.messages.length - 2], i = s.map((l) => l.title);
|
|
1334
|
+
return k`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e, s)}${this._renderFeedback(e + "(" + i.toString() + ")", a.message, r, t)}</div></calcite-card>`;
|
|
248
1335
|
}
|
|
249
1336
|
render() {
|
|
250
|
-
return
|
|
1337
|
+
return k`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${() => {
|
|
251
1338
|
this.closeAssistant.emit(!0), this.open = !1;
|
|
252
|
-
}}><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 ?
|
|
1339
|
+
}}><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 ? k`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral></calcite-button>` : ""}<div class="chat-messages" ${se(this._setMessageContainerRef)}>${this.messages.map((e) => e.render)}${this._isLoading && k`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText != "" && k`<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 ${se(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading}></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>`;
|
|
253
1340
|
}
|
|
254
1341
|
_scrollToBottom() {
|
|
255
1342
|
this._chatContainer && setTimeout(() => {
|
|
256
1343
|
this._chatContainer && (this._chatContainer.scrollTop = this._chatContainer.scrollHeight);
|
|
257
1344
|
}, 100);
|
|
258
1345
|
}
|
|
259
|
-
_markdownToHTML(e) {
|
|
260
|
-
return e = e.replace(/###### (.*)/gu, "<h6>$1</h6>"), e = e.replace(/##### (.*)/gu, "<h5>$1</h5>"), e = e.replace(/#### (.*)/gu, "<h4>$1</h4>"), e = e.replace(/### (.*)/gu, "<h3>$1</h3>"), e = e.replace(/## (.*)/gu, "<h2>$1</h2>"), e = e.replace(/# (.*)/gu, "<h1>$1</h1>"), e = e.replace(/\*\*(.*?)\*\*/gu, "<strong>$1</strong>"), e = e.replace(/\*(.*?)\*/gu, "<em>$1</em>"), e = e.replace(/^\s*\*\s+(.*)/gmu, "<li>$1</li>"), e = e.replace(/(<li>.*<\/li>)/gu, "<ul>$1</ul>"), e = e.replace(/\[\[(\d+)\]\]\((.*?)\)/gu, '<a href="$2" target="_blank" rel="noopener noreferrer">[$1]</a>'), e = e.replace(/\n\n+/gu, "</p><p>"), e = e.replace(/^(?!<h|<ul|<li|<p>)(.*)$/gmu, "<p>$1</p>"), e;
|
|
261
|
-
}
|
|
262
1346
|
_emitItemIdFromAI(e) {
|
|
263
|
-
this._querySolutions(e).then((
|
|
264
|
-
const
|
|
265
|
-
detail:
|
|
1347
|
+
this._querySolutions(e).then((s) => {
|
|
1348
|
+
const t = s.typeKeywords.filter((i) => i.includes("solutionid")), a = new CustomEvent("solutionIDFromAssistant", {
|
|
1349
|
+
detail: t.length > 0 ? t[0] : e,
|
|
266
1350
|
bubbles: !0,
|
|
267
1351
|
composed: !0
|
|
268
1352
|
});
|
|
269
|
-
window.dispatchEvent(
|
|
1353
|
+
window.dispatchEvent(a);
|
|
270
1354
|
});
|
|
271
1355
|
}
|
|
272
1356
|
_submitFollowupQuestion(e) {
|
|
273
|
-
const
|
|
1357
|
+
const s = new CustomEvent("submitQuestion", {
|
|
274
1358
|
detail: e,
|
|
275
1359
|
bubbles: !0,
|
|
276
1360
|
composed: !0
|
|
277
1361
|
});
|
|
278
|
-
window.dispatchEvent(
|
|
1362
|
+
window.dispatchEvent(s);
|
|
279
1363
|
}
|
|
280
1364
|
async _querySolutions(e) {
|
|
281
|
-
const
|
|
282
|
-
if ("error" in
|
|
283
|
-
throw new Error(
|
|
284
|
-
return
|
|
1365
|
+
const s = await Ae(e);
|
|
1366
|
+
if ("error" in s)
|
|
1367
|
+
throw new Error(s.error);
|
|
1368
|
+
return s;
|
|
1369
|
+
}
|
|
1370
|
+
_sendFeedback(e, s, r, t, a) {
|
|
1371
|
+
const i = `https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(r)}&field:question=${encodeURIComponent(s)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({ intent: a }))}&field:conversation_id=${encodeURIComponent(t)}&field:version=${encodeURIComponent("v1")}`;
|
|
1372
|
+
window.open(i, "_blank");
|
|
285
1373
|
}
|
|
286
1374
|
}
|
|
287
|
-
|
|
1375
|
+
we("arcgis-solutions-assistant", dt);
|
|
288
1376
|
export {
|
|
289
|
-
|
|
1377
|
+
dt as ArcgisSolutionsAssistant
|
|
290
1378
|
};
|