@esri/solutions-components 1.2.0-next.21 → 1.2.0-next.23
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/24EMON2Y.js +18 -0
- package/dist/cdn/{4PFWZPSF.js → 2AY2K3WZ.js} +2 -2
- package/dist/cdn/{TWPRIW6W.js → 2BZBRTJL.js} +2 -2
- package/dist/cdn/{WRKHHDEK.js → 2GT4SW6J.js} +2 -2
- package/dist/cdn/{OTF6WC55.js → 2HQ3WQSS.js} +1 -1
- package/dist/cdn/{SPTDTOSM.js → 2M5HYDED.js} +2 -2
- package/dist/cdn/{37BAVLAP.js → 2MAG3IXY.js} +2 -2
- package/dist/cdn/{NOHK26DI.js → 2MAWBKAZ.js} +2 -2
- package/dist/cdn/{LPCWCSAE.js → 2OO632YT.js} +2 -2
- package/dist/cdn/{LXKU7WUU.js → 2QI7CPMT.js} +2 -2
- package/dist/cdn/{GZZHEXNM.js → 2WOYI26G.js} +2 -2
- package/dist/cdn/{MXDK4LDP.js → 2XPZGW6O.js} +4 -4
- package/dist/cdn/{6ISYJZ3U.js → 34IW6ND5.js} +2 -2
- package/dist/cdn/3DKHJDV7.js +4 -0
- package/dist/cdn/{QMKK7GAS.js → 3FMFTSSY.js} +2 -2
- package/dist/cdn/{OLLYGSHZ.js → 3GUMV5O4.js} +2 -2
- package/dist/cdn/{WZZXQ7ZL.js → 3L6Z4QK3.js} +2 -2
- package/dist/cdn/{5X5I7HXW.js → 3MHDDQ5I.js} +2 -2
- package/dist/cdn/{C5V5WACE.js → 3QZEC6GE.js} +2 -2
- package/dist/cdn/{EYXCH4TQ.js → 3R26Q7T6.js} +2 -2
- package/dist/cdn/{QDR4D66T.js → 3TKXL6UM.js} +1 -1
- package/dist/cdn/{Y43WPKIW.js → 3ZPCQCSG.js} +2 -2
- package/dist/cdn/{UOEK64W4.js → 42WGOLD2.js} +2 -2
- package/dist/cdn/{6J47H6LF.js → 447QBBCZ.js} +1 -1
- package/dist/cdn/{TPVEOX5G.js → 44RSFMVL.js} +2 -2
- package/dist/cdn/{L2OHD42I.js → 4DV66F6E.js} +2 -2
- package/dist/cdn/{43LM47JM.js → 4EJQCTSA.js} +1 -1
- package/dist/cdn/{FASHWN45.js → 4FLU7OR4.js} +2 -2
- package/dist/cdn/{2WQ4D3JD.js → 4G3EIWB6.js} +2 -2
- package/dist/cdn/{TLAJKE5F.js → 4IUIEMK6.js} +2 -2
- package/dist/cdn/{MS66PYWN.js → 4KCFAMJG.js} +2 -2
- package/dist/cdn/{ZGLUS7EY.js → 4MUYN6M7.js} +2 -2
- package/dist/cdn/{6UDQYBCT.js → 4O2YHWLF.js} +2 -2
- package/dist/cdn/{4ZXH4AYE.js → 4OQCCPF3.js} +1 -1
- package/dist/cdn/{U44X65LX.js → 4WLBD3FW.js} +2 -2
- package/dist/cdn/4XQU6E7M.js +18 -0
- package/dist/cdn/{NN3W4IUH.js → 56WN2O6D.js} +2 -2
- package/dist/cdn/{6MPNFWME.js → 5ACUN6IO.js} +2 -2
- package/dist/cdn/5C6YRKRX.js +4 -0
- package/dist/cdn/{LLJXBBKJ.js → 5EKBLXSV.js} +2 -2
- package/dist/cdn/{EGSL27T3.js → 5J2BYWKN.js} +2 -2
- package/dist/cdn/{GBTQSHKA.js → 5J5YFGVC.js} +2 -2
- package/dist/cdn/{VGX5VVVO.js → 5KBIDMN6.js} +2 -2
- package/dist/cdn/{TDSDZEH7.js → 5KPB4NR2.js} +2 -2
- package/dist/cdn/{RUDYNTVM.js → 5KQDWASO.js} +2 -2
- package/dist/cdn/{DOCNMY5H.js → 5M53YYS7.js} +2 -2
- package/dist/cdn/{SYQ77RWF.js → 5OGCE75U.js} +1 -1
- package/dist/cdn/{MWZCZ3GZ.js → 5RE4EQKC.js} +2 -2
- package/dist/cdn/{PHMX4V43.js → 5TJ3WMQB.js} +2 -2
- package/dist/cdn/{EA4SJ62D.js → 64ROMKAE.js} +1 -1
- package/dist/cdn/{6MWYP2QJ.js → 67KWMMGF.js} +2 -2
- package/dist/cdn/{27ESLXAT.js → 6AUSDT74.js} +2 -2
- package/dist/cdn/{CKKYPJNF.js → 6BU4XFOB.js} +2 -2
- package/dist/cdn/{3UZJJ4TA.js → 6CFGY2BV.js} +2 -2
- package/dist/cdn/{DQXONY5W.js → 6FTTCCP6.js} +2 -2
- package/dist/cdn/{KLDJP764.js → 6LIDXZSZ.js} +2 -2
- package/dist/cdn/{V5PS7TPT.js → 6MEGF2SK.js} +2 -2
- package/dist/cdn/{YIBIIFQA.js → 6NXELV3J.js} +2 -2
- package/dist/cdn/{ZSCNY56E.js → 6P6OXN3N.js} +2 -2
- package/dist/cdn/{5TK6DOW6.js → 6ZODEDKU.js} +2 -2
- package/dist/cdn/{ELFWIFOI.js → 72HWZD45.js} +2 -2
- package/dist/cdn/{I2POBGHR.js → 73457ZF3.js} +2 -2
- package/dist/cdn/{5U25HMRT.js → 73ZPUTT3.js} +2 -2
- package/dist/cdn/74U3DXGW.js +4 -0
- package/dist/cdn/7EZRADWR.js +4 -0
- package/dist/cdn/{OAYZ7IKH.js → 7G4CGORU.js} +2 -2
- package/dist/cdn/7HEGK7MA.js +18 -0
- package/dist/cdn/{B6NCIDUQ.js → 7I46GKF5.js} +2 -2
- package/dist/cdn/{KEDADGFZ.js → 7PHW5SV3.js} +2 -2
- package/dist/cdn/{PJRC7SHJ.js → 7RTQMKLE.js} +1 -1
- package/dist/cdn/{UYB52TDK.js → 7UZH3JSA.js} +2 -2
- package/dist/cdn/{ARWGMEFD.js → A2Q74J27.js} +2 -2
- package/dist/cdn/{ETVHZ7E4.js → A3SSEJRK.js} +2 -2
- package/dist/cdn/{NABUJ3I4.js → A5TA5B7Q.js} +2 -2
- package/dist/cdn/{2OEXTGHX.js → A7TN5NOD.js} +2 -2
- package/dist/cdn/{BYHP3RDB.js → AACDL376.js} +2 -2
- package/dist/cdn/{QBNFWPNH.js → AEZ6WE4H.js} +2 -2
- package/dist/cdn/{BJYU2UEJ.js → AFBDY226.js} +2 -2
- package/dist/cdn/{N3Q6R6TY.js → ANFNJY23.js} +2 -2
- package/dist/cdn/{47JWHU6X.js → ARL6VS7K.js} +2 -2
- package/dist/cdn/{D4Y37VIF.js → AS43PZG7.js} +2 -2
- package/dist/cdn/{V7U7DLUJ.js → ASRG36YH.js} +2 -2
- package/dist/cdn/{BA7C5JV7.js → AUB4DXBA.js} +2 -2
- package/dist/cdn/{7NRVWFK5.js → AW4KQLYN.js} +2 -2
- package/dist/cdn/{2Z7NZD5S.js → AX74S37Z.js} +2 -2
- package/dist/cdn/{IESWZ7BL.js → AXU3N3SM.js} +2 -2
- package/dist/cdn/{65YYFVKD.js → AYV2T2DU.js} +1 -1
- package/dist/cdn/{IL7KHRPB.js → B56YGTDU.js} +2 -2
- package/dist/cdn/{MASI4TM4.js → BEXIUYEC.js} +2 -2
- package/dist/cdn/{LPHU6MAJ.js → BFCOS4AK.js} +2 -2
- package/dist/cdn/{NDNONWRS.js → BHFPIIA5.js} +2 -2
- package/dist/cdn/{2ZDTHK62.js → BJHTJAD5.js} +2 -2
- package/dist/cdn/{TEGIRF2G.js → BOMKSZ2W.js} +2 -2
- package/dist/cdn/{5BBGQJ5S.js → C3KUXIX3.js} +2 -2
- package/dist/cdn/{UDRBXNEZ.js → C3XOCOGN.js} +2 -2
- package/dist/cdn/{ZAAZBMVL.js → C4BPHR5L.js} +2 -2
- package/dist/cdn/{IXNUWHR7.js → CBD2XZXF.js} +2 -2
- package/dist/cdn/{WUXNFVJD.js → CGOZV2GW.js} +2 -2
- package/dist/cdn/{E2O3EKWU.js → CHPK2WLW.js} +2 -2
- package/dist/cdn/{5FODZC2W.js → CN5DJPHM.js} +1 -1
- package/dist/cdn/{3LUEIDPJ.js → COF7QD2V.js} +2 -2
- package/dist/cdn/{2ERLNTHC.js → DADWRP33.js} +2 -2
- package/dist/cdn/{4PJKBI5Q.js → DBHD7PCZ.js} +2 -2
- package/dist/cdn/{G7B5NHVN.js → DDNXBLQ6.js} +2 -2
- package/dist/cdn/DHV3NPQP.js +18 -0
- package/dist/cdn/{66KL4C26.js → DKQHLGWF.js} +2 -2
- package/dist/cdn/{HCWTAUF5.js → DOQVDYCN.js} +2 -2
- package/dist/cdn/{ADOJOJRJ.js → DPCUAZSE.js} +2 -2
- package/dist/cdn/{IJI2I4NN.js → DQN7CICI.js} +2 -2
- package/dist/cdn/{ZWJQQF63.js → DXAGALWH.js} +2 -2
- package/dist/cdn/DXGJ2ELP.js +18 -0
- package/dist/cdn/{W7734FGJ.js → DZHX7PCQ.js} +2 -2
- package/dist/cdn/{3SCGD2CV.js → DZU33CZC.js} +2 -2
- package/dist/cdn/{5O3P6DBG.js → E2QEWS4T.js} +2 -2
- package/dist/cdn/{5CSKRDZM.js → E5ITCSLM.js} +2 -2
- package/dist/cdn/{6VPV7EU6.js → E6UCKZPA.js} +2 -2
- package/dist/cdn/{SF42TDNB.js → ECBQ4FMJ.js} +2 -2
- package/dist/cdn/{5LQPYHS4.js → EERCV4JC.js} +2 -2
- package/dist/cdn/{YUMTADN7.js → EH6Q6O37.js} +2 -2
- package/dist/cdn/{EXX2X63P.js → EHCPDGSC.js} +2 -2
- package/dist/cdn/{ZTYR32MZ.js → EHX5BFXV.js} +2 -2
- package/dist/cdn/{UIIKMLZY.js → EI3T37W7.js} +2 -2
- package/dist/cdn/{AVYP5N5W.js → EIQYIC3K.js} +2 -2
- package/dist/cdn/{G2UQK6LA.js → EJ3ZHDJE.js} +1 -1
- package/dist/cdn/{JGLFIWOT.js → EKXVOE2T.js} +2 -2
- package/dist/cdn/{ZMKFBKJ5.js → ELIRAMGJ.js} +2 -2
- package/dist/cdn/{5ZAFAS7S.js → ETYGQEHV.js} +2 -2
- package/dist/cdn/{MGYT2FRC.js → EUJDYYJR.js} +2 -2
- package/dist/cdn/{VPH3MHCJ.js → EUZPQTWY.js} +2 -2
- package/dist/cdn/{PFJ4FP3Z.js → EWTEGPMF.js} +2 -2
- package/dist/cdn/{Y5DN4QU2.js → EXKTND6M.js} +2 -2
- package/dist/cdn/{DPPVKLVV.js → EXQYLCNA.js} +2 -2
- package/dist/cdn/{EUKYTCUW.js → EYORGOJD.js} +2 -2
- package/dist/cdn/{ZBWHTQGY.js → F2IY43CU.js} +2 -2
- package/dist/cdn/{TXUBQSCF.js → F3BATDTI.js} +2 -2
- package/dist/cdn/{ZGXWBO6S.js → F3MYECGZ.js} +2 -2
- package/dist/cdn/{VXS4KLRE.js → F63E53WO.js} +2 -2
- package/dist/cdn/{FO5FDVKS.js → FA4FO6I5.js} +1 -1
- package/dist/cdn/{Y42PHID4.js → FA4MU7WH.js} +2 -2
- package/dist/cdn/{HIMSUVUZ.js → FG2CU36L.js} +2 -2
- package/dist/cdn/{APL5YV6I.js → FNYNLM4T.js} +2 -2
- package/dist/cdn/{REYSZJE4.js → FORFKB3P.js} +2 -2
- package/dist/cdn/FQB4KYBW.js +4 -0
- package/dist/cdn/{BNYHJMNY.js → FRRPVDOH.js} +2 -2
- package/dist/cdn/{PFC743S5.js → G2IJENMB.js} +2 -2
- package/dist/cdn/{4TDPMROA.js → G2IK2BJY.js} +2 -2
- package/dist/cdn/{JPNPSA7E.js → G5ZC3LOB.js} +1 -1
- package/dist/cdn/{DEZPDY4A.js → GCMVURP5.js} +1 -1
- package/dist/cdn/{W3TMRYTI.js → GFBXVBJT.js} +2 -2
- package/dist/cdn/GGAEFIZU.js +4 -0
- package/dist/cdn/{C3XGENO2.js → GHIJAWRM.js} +1 -1
- package/dist/cdn/{ALRXJEMN.js → GKFLVIV7.js} +1 -1
- package/dist/cdn/{QKRVG65G.js → GOOEDIPS.js} +2 -2
- package/dist/cdn/{VC5NFRBK.js → GPWOWLEE.js} +2 -2
- package/dist/cdn/{ZCXEHP3I.js → GWDTMNPJ.js} +2 -2
- package/dist/cdn/{KPLOUVW3.js → GWZ45ROX.js} +2 -2
- package/dist/cdn/{2CA32FPD.js → GXA2JOF6.js} +2 -2
- package/dist/cdn/{CPNBWTEA.js → H55C6KB4.js} +2 -2
- package/dist/cdn/{FMGMDOXA.js → H6HGD575.js} +2 -2
- package/dist/cdn/{TKQG2LKN.js → H7OQMXZH.js} +2 -2
- package/dist/cdn/{HOPHRV4L.js → HEPVNE4N.js} +2 -2
- package/dist/cdn/{GDAB44P7.js → HTTK52SH.js} +2 -2
- package/dist/cdn/{3GSLYS7Y.js → HXCXMMYQ.js} +2 -2
- package/dist/cdn/{3DBJ6LQZ.js → I2YMTCN3.js} +2 -2
- package/dist/cdn/{NZGTHZBJ.js → I3DV75YQ.js} +2 -2
- package/dist/cdn/{VFXHYKBA.js → I7RPH5AQ.js} +2 -2
- package/dist/cdn/{SAMBWFKJ.js → IBJDYHC4.js} +2 -2
- package/dist/cdn/{TKYTD63P.js → IGTA7PF3.js} +1 -1
- package/dist/cdn/{MR24E2PT.js → IPOR2FPA.js} +1 -1
- package/dist/cdn/{766NXEI5.js → JHZIHFJQ.js} +2 -2
- package/dist/cdn/{3FQZERY2.js → JJYUMARO.js} +2 -2
- package/dist/cdn/{UAMQWJTP.js → JMMOQDUW.js} +2 -2
- package/dist/cdn/{UCM63YTG.js → JOLRT72P.js} +2 -2
- package/dist/cdn/JRJCLFLU.js +18 -0
- package/dist/cdn/{5UFUXLVC.js → JZTOFKTR.js} +2 -2
- package/dist/cdn/{L6NUR77H.js → KBRZ2E2B.js} +2 -2
- package/dist/cdn/KFFWV5Q5.js +4 -0
- package/dist/cdn/{WL6PEUQB.js → KGFHT5Z2.js} +3 -3
- package/dist/cdn/{J7YSM5KG.js → KJQ7R2JY.js} +2 -2
- package/dist/cdn/{IFMVHH6O.js → KN4FZEPG.js} +2 -2
- package/dist/cdn/{LPWJRNE6.js → KNKXTRCQ.js} +2 -2
- package/dist/cdn/KPPEOZKI.js +18 -0
- package/dist/cdn/{4J2AL6O3.js → KS3H6HD6.js} +2 -2
- package/dist/cdn/{5AWE75QZ.js → KZWF25A7.js} +2 -2
- package/dist/cdn/{XLKIFV2H.js → KZXHGZIS.js} +2 -2
- package/dist/cdn/{NPL77HLA.js → L4WAQSYZ.js} +2 -2
- package/dist/cdn/{PQZE6Q45.js → L5CQLTKN.js} +2 -2
- package/dist/cdn/{5WF3LHZV.js → LHADNET3.js} +2 -2
- package/dist/cdn/{WZTL2MCD.js → LHZUH6KP.js} +2 -2
- package/dist/cdn/{G423EZVH.js → LLOZ3PI2.js} +2 -2
- package/dist/cdn/{WPMDZZYN.js → LMDNSXHL.js} +2 -2
- package/dist/cdn/{OBTOZOSB.js → LSY7M7PM.js} +2 -2
- package/dist/cdn/{37CBPFRJ.js → LTHVPEMG.js} +2 -2
- package/dist/cdn/{YNQJMUXW.js → LZI6KYYE.js} +2 -2
- package/dist/cdn/{Q2JR6QFV.js → MI7LMOW6.js} +2 -2
- package/dist/cdn/{FUW5X5WX.js → MISCRKYB.js} +2 -2
- package/dist/cdn/{4ZEW55IS.js → MNX4DCXY.js} +2 -2
- package/dist/cdn/{X2Q335MK.js → MTF4VR24.js} +2 -2
- package/dist/cdn/{7EWH23O4.js → N6PMPVQP.js} +2 -2
- package/dist/cdn/{BOWYOYFF.js → N74X45H6.js} +2 -2
- package/dist/cdn/{4SB6QW6W.js → NFHTWLBJ.js} +1 -1
- package/dist/cdn/{MPPNFL6O.js → NHDI6Y5W.js} +2 -2
- package/dist/cdn/{ZDTXP6UH.js → NM4HWLOR.js} +2 -2
- package/dist/cdn/{WZGEVXYQ.js → NNECIHO6.js} +2 -2
- package/dist/cdn/NVSJJXGC.js +4 -0
- package/dist/cdn/{KRNFP4OP.js → O7QUQWMN.js} +1 -1
- package/dist/cdn/{VRHRENNK.js → OABJ6FAM.js} +2 -2
- package/dist/cdn/{OUALGQPO.js → OAPFPQ7T.js} +2 -2
- package/dist/cdn/{7G2GSKCH.js → OCHSVPPR.js} +2 -2
- package/dist/cdn/{ORAYN2AR.js → OGT3FBFB.js} +2 -2
- package/dist/cdn/{SKT4GZ6B.js → OHFYM6YD.js} +2 -2
- package/dist/cdn/{7THEDBQV.js → OJXOT76S.js} +2 -2
- package/dist/cdn/{C36XF7C7.js → OMECYQCA.js} +2 -2
- package/dist/cdn/OPCZGSSX.js +4 -0
- package/dist/cdn/{EQMNEW7B.js → OPFS2EDA.js} +1 -1
- package/dist/cdn/{EWZKQPHY.js → OQUWAIXQ.js} +2 -2
- package/dist/cdn/{BIJS3QDZ.js → OUD56JVC.js} +2 -2
- package/dist/cdn/{2TBAUYG2.js → OUL7XO4D.js} +2 -2
- package/dist/cdn/{22WI477F.js → OWPATX2P.js} +1 -1
- package/dist/cdn/{3NBAQVF4.js → PCD7PZ5L.js} +1 -1
- package/dist/cdn/{I5EMUTWF.js → PIR7N5VR.js} +1 -1
- package/dist/cdn/{S7NGALY2.js → PKMLCY5N.js} +2 -2
- package/dist/cdn/{SMTIW5ON.js → PXGN7EKL.js} +2 -2
- package/dist/cdn/{N55BTIIP.js → Q7XUITQI.js} +2 -2
- package/dist/cdn/{G354G2R5.js → QAP7LJA2.js} +2 -2
- package/dist/cdn/{P5564HET.js → QB5AV6Z2.js} +2 -2
- package/dist/cdn/{YHIWZGM7.js → QC2AE5T3.js} +2 -2
- package/dist/cdn/{PNEU3IS5.js → QD7UTWID.js} +3 -3
- package/dist/cdn/{2NN7XORI.js → QDIFRW3Y.js} +2 -2
- package/dist/cdn/{2XVGJF2S.js → QGJJ24WW.js} +2 -2
- package/dist/cdn/{OMCPSQ2N.js → QHOSUMUL.js} +2 -2
- package/dist/cdn/{T4NEPGO4.js → QTGADA35.js} +2 -2
- package/dist/cdn/{ON53FJXG.js → R5CSYGKM.js} +2 -2
- package/dist/cdn/{IJBXFCMT.js → R5I3RSB5.js} +2 -2
- package/dist/cdn/{6RUEUSIY.js → R5T7HNWM.js} +2 -2
- package/dist/cdn/{S3TADIJ6.js → R65XXC7W.js} +1 -1
- package/dist/cdn/{QKHTFYET.js → RA5UOWRS.js} +2 -2
- package/dist/cdn/{T34KE2A2.js → RIDOZXO2.js} +2 -2
- package/dist/cdn/{4KAJDNJI.js → RIGVRNF5.js} +2 -2
- package/dist/cdn/{KU7RFZOY.js → RO4OHJS7.js} +2 -2
- package/dist/cdn/{PWGDJNXG.js → RTBQFLPT.js} +2 -2
- package/dist/cdn/{7QZKOSHV.js → RTSU4IMM.js} +2 -2
- package/dist/cdn/RVED3KDZ.js +65 -0
- package/dist/cdn/{KNUWDW23.js → RXMDWQTK.js} +2 -2
- package/dist/cdn/{267XR53J.js → S4BF2WGT.js} +2 -2
- package/dist/cdn/{K5RFBVYK.js → S4VTTGV4.js} +2 -2
- package/dist/cdn/{R4GWAQRV.js → S67DZUEG.js} +1 -1
- package/dist/cdn/{UEFR52YG.js → S7BHNJLQ.js} +2 -2
- package/dist/cdn/{QWKYRSVI.js → SC3FNS6J.js} +2 -2
- package/dist/cdn/{Z23HGZYN.js → SKEK4QNX.js} +2 -2
- package/dist/cdn/{5QB6QMOQ.js → SKQS2WA5.js} +2 -2
- package/dist/cdn/{OJEOXJLD.js → SLEEVSYJ.js} +2 -2
- package/dist/cdn/{67PMSKZH.js → SNJYATF7.js} +1 -1
- package/dist/cdn/{KHGPU4UH.js → SOSIOC3B.js} +2 -2
- package/dist/cdn/{455DGAYG.js → SRQOKDNI.js} +2 -2
- package/dist/cdn/{CVPVJHLE.js → SVIJAADO.js} +2 -2
- package/dist/cdn/{44SOOWCI.js → SVKG37NL.js} +2 -2
- package/dist/cdn/{EWRHTIXK.js → SVLEHVDZ.js} +2 -2
- package/dist/cdn/{FHQAUSZQ.js → SWZKIHBT.js} +2 -2
- package/dist/cdn/{SULZ3DXA.js → SZQTGGCV.js} +1 -1
- package/dist/cdn/{SEQGEOAO.js → TB5GWGCC.js} +2 -2
- package/dist/cdn/{4N6PAP2B.js → TENRTCL5.js} +2 -2
- package/dist/cdn/{5KWSM7IU.js → TJKDS62P.js} +2 -2
- package/dist/cdn/{TCBFVFSX.js → TK5MJJZP.js} +2 -2
- package/dist/cdn/{SYAYSQPQ.js → TWD2LUT7.js} +2 -2
- package/dist/cdn/{WEU6HCGV.js → U22NFDSK.js} +2 -2
- package/dist/cdn/{3SLYHKVF.js → U3N72MOY.js} +2 -2
- package/dist/cdn/{SHSY5TSW.js → UBSHVQ67.js} +2 -2
- package/dist/cdn/{EOPQUXDK.js → UDYQLKU2.js} +2 -2
- package/dist/cdn/{QAFNPAAD.js → UGXZV4XN.js} +1 -1
- package/dist/cdn/{PT5WEO4R.js → UHXD3KCT.js} +2 -2
- package/dist/cdn/{Y4CU2GK4.js → UM75XTCN.js} +2 -2
- package/dist/cdn/{QGUWQFF4.js → UNMHKHZ5.js} +2 -2
- package/dist/cdn/{NRDRHGLK.js → USSXA4MT.js} +2 -2
- package/dist/cdn/{2R5QFP6H.js → UX43ZU2H.js} +2 -2
- package/dist/cdn/{FH4SRX2G.js → UZ374JOX.js} +2 -2
- package/dist/cdn/{IQKAM57E.js → UZXP73OD.js} +2 -2
- package/dist/cdn/{JPQEYX6B.js → V2J3YHQS.js} +2 -2
- package/dist/cdn/{EFOK377W.js → V2MVWBQC.js} +1 -1
- package/dist/cdn/{DEWVSB4U.js → V5BRVAIY.js} +3 -3
- package/dist/cdn/{LQHMW4IA.js → V7N3K5BW.js} +2 -2
- package/dist/cdn/VDL3ORNG.js +4 -0
- package/dist/cdn/{TRRMVHNP.js → VESF2MVU.js} +2 -2
- package/dist/cdn/{YLRL7Y5N.js → VIAQLJWM.js} +2 -2
- package/dist/cdn/{6LDGKXHO.js → VJEGBA6P.js} +2 -2
- package/dist/cdn/{KQQVJLMB.js → VPNGXGZ6.js} +2 -2
- package/dist/cdn/{2L5T7JFI.js → VRW57QNZ.js} +2 -2
- package/dist/cdn/{ACASG3D3.js → VT3SBHVN.js} +2 -2
- package/dist/cdn/{JZ7DDWQB.js → VVCF2AUH.js} +2 -2
- package/dist/cdn/{AWZPH3WI.js → VW6CSBYE.js} +2 -2
- package/dist/cdn/{C3UGMPFZ.js → W2PK53ZW.js} +2 -2
- package/dist/cdn/{374U3GWX.js → WC5UQNN4.js} +2 -2
- package/dist/cdn/{MGF42WWT.js → WCUMS6MM.js} +2 -2
- package/dist/cdn/{JTKWC3IN.js → WGC7EQLN.js} +2 -2
- package/dist/cdn/{GFLSAGSA.js → WGIZKN2R.js} +2 -2
- package/dist/cdn/{AVXSEI6R.js → WHLKZMOG.js} +2 -2
- package/dist/cdn/{OVZZ6JTU.js → WPCRI56Q.js} +2 -2
- package/dist/cdn/{J2ZYSYWV.js → WTAYRSWV.js} +2 -2
- package/dist/cdn/{LPVP3TCA.js → WUDVN65D.js} +1 -1
- package/dist/cdn/{JVB44O4S.js → WVNSSHFD.js} +2 -2
- package/dist/cdn/{VRUHMDUB.js → WWHHN66F.js} +1 -1
- package/dist/cdn/{J4W3UIZY.js → WY3IXZWK.js} +2 -2
- package/dist/cdn/{TWG226PR.js → WY7IYTWF.js} +2 -2
- package/dist/cdn/{FJKLSPV2.js → X2BUY4SI.js} +2 -2
- package/dist/cdn/{JUHZNCUH.js → X5XJRBMS.js} +1 -1
- package/dist/cdn/{PGGYBI5J.js → XALVY5U7.js} +2 -2
- package/dist/cdn/{WWKYMX4H.js → XC2RN3E4.js} +2 -2
- package/dist/cdn/{UNSSBR4O.js → XDWAJV5E.js} +2 -2
- package/dist/cdn/{ZADEJN6X.js → XDZCTXYL.js} +1 -1
- package/dist/cdn/{JN7ZBQQT.js → XFHGN2VQ.js} +2 -2
- package/dist/cdn/{N4YNUARS.js → XJGJXA5N.js} +2 -2
- package/dist/cdn/{KQ3UQWCA.js → XKMLZWOT.js} +2 -2
- package/dist/cdn/{3NJ7ZDPK.js → XNUPB5IP.js} +2 -2
- package/dist/cdn/{4IP3BGGA.js → XPYSSK2W.js} +2 -2
- package/dist/cdn/{H23L6B2Q.js → XRUCHXKQ.js} +1 -1
- package/dist/cdn/{CNPRL7S7.js → XVSMGFBN.js} +2 -2
- package/dist/cdn/{PGBTYK6X.js → XWD4BRLE.js} +2 -2
- package/dist/cdn/{W5ZGSETN.js → Y7J3WBQC.js} +2 -2
- package/dist/cdn/YBA7DTZL.js +18 -0
- package/dist/cdn/{HEW6Z5PB.js → YBXI2IP4.js} +2 -2
- package/dist/cdn/{3PWHRLUR.js → YCGRKQUE.js} +2 -2
- package/dist/cdn/{SROQUXLR.js → YE4CWFPV.js} +2 -2
- package/dist/cdn/{6NCUX6NJ.js → YFNTPWQX.js} +2 -2
- package/dist/cdn/{QO2IVYQC.js → YFWPGFWZ.js} +2 -2
- package/dist/cdn/{UFPDER6I.js → YH7OKKNO.js} +2 -2
- package/dist/cdn/{HOFOKHEX.js → YHC7VJT6.js} +2 -2
- package/dist/cdn/{OEWCMCHN.js → YIVC3N6V.js} +2 -2
- package/dist/cdn/{FTCKROY3.js → YRYUTQZS.js} +2 -2
- package/dist/cdn/{7WJ4AYW6.js → YSRBGBTX.js} +2 -2
- package/dist/cdn/{PYWEHZIC.js → Z6Y6T5UD.js} +2 -2
- package/dist/cdn/{U232ZHS5.js → ZARLXUDC.js} +2 -2
- package/dist/cdn/{ID2MR3BQ.js → ZBBWQLUR.js} +2 -2
- package/dist/cdn/{ANG6KH3Q.js → ZCW6M6OW.js} +1 -1
- package/dist/cdn/{CURE4DDI.js → ZFTONCP4.js} +2 -2
- package/dist/cdn/{ICV7ZHJA.js → ZI4I3QKV.js} +2 -2
- package/dist/cdn/{B2M4VAVZ.js → ZKOH4CPV.js} +2 -2
- package/dist/cdn/{ZHNR6E4I.js → ZLN7CJ4U.js} +2 -2
- package/dist/cdn/{NDGWBMSC.js → ZOZZYFSA.js} +2 -2
- package/dist/cdn/{QGE56V4L.js → ZP365LXA.js} +2 -2
- package/dist/cdn/{L6LJJRE2.js → ZPGG6M7Y.js} +2 -2
- package/dist/cdn/{IM62UGGF.js → ZSPVOJPN.js} +2 -2
- package/dist/cdn/{KCSAC7EU.js → ZTNTEOUC.js} +1 -1
- package/dist/cdn/{VJABELHG.js → ZZ7264B4.js} +2 -2
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- 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 +1 -1
- 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 +43 -38
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +260 -227
- package/dist/components/arcgis-solutions-assistant/index.d.ts +1 -0
- package/dist/components/arcgis-solutions-assistant/index.js +1 -0
- 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.d.ts +3 -5
- package/dist/components/crowdsource-manager/customElement.js +7 -19
- package/dist/components/crowdsource-reporter/customElement.js +3 -3
- package/dist/components/crowdsource-reporter/index.d.ts +1 -1
- package/dist/components/crowdsource-reporter/index.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.d.ts +2 -6
- package/dist/components/delete-button/customElement.js +3 -3
- package/dist/components/delete-dialog/customElement.js +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 +3 -3
- package/dist/components/map-card/customElement.js +2 -2
- 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.d.ts +2 -6
- package/dist/components/map-layer-picker/customElement.js +9 -13
- 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 +15 -15
- package/dist/components/map-tools/customElement.js +56 -57
- 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 +5 -6
- 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.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +1 -1
- package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +2 -2
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-resource-panel/customElement.js +1 -1
- package/dist/components/solutions-resources/customElement.js +1 -1
- package/dist/components/solutions-resources-shell/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +22 -46
- package/dist/docs/docs.json +26 -26
- package/dist/docs/vscode.html-custom-data.json +2 -12
- package/dist/docs/web-types.json +7 -23
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -3
- package/dist/utils/interfaces.d.ts +3 -3
- package/dist/utils/queryUtils.d.ts +2 -2
- package/package.json +22 -22
- package/dist/cdn/24XF7RBG.js +0 -4
- package/dist/cdn/3EUP5SA5.js +0 -18
- package/dist/cdn/3I365GBL.js +0 -4
- package/dist/cdn/5X7OT3PW.js +0 -4
- package/dist/cdn/6D3JL2AS.js +0 -18
- package/dist/cdn/7IGMIN2W.js +0 -63
- package/dist/cdn/BUNUWO4R.js +0 -4
- package/dist/cdn/D7QKCBMA.js +0 -4
- package/dist/cdn/DCXFS72L.js +0 -18
- package/dist/cdn/DUVCORIN.js +0 -4
- package/dist/cdn/GW3RLVUL.js +0 -4
- package/dist/cdn/JM47OMNA.js +0 -18
- package/dist/cdn/LAER7U5K.js +0 -4
- package/dist/cdn/NUYH26IF.js +0 -18
- package/dist/cdn/OTM3WCFO.js +0 -18
- package/dist/cdn/P2ZHCD37.js +0 -4
- package/dist/cdn/T6HJKM4L.js +0 -4
- package/dist/cdn/X7SSY7I5.js +0 -18
- package/dist/cdn/ZWLWEEM7.js +0 -18
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as ve } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as se } from "lit/directives/ref.js";
|
|
3
|
-
import { u as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { css as
|
|
6
|
-
import { unsafeHTML as
|
|
3
|
+
import { u as ye } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as $e, createEvent as Se, nothing as O, safeClassMap as _e } from "@arcgis/lumina";
|
|
5
|
+
import { css as Re, html as m } from "lit";
|
|
6
|
+
import { unsafeHTML as Te } 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.23 */
|
|
10
|
+
const Ie = Re`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content p:first-child{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.height-32-flex-auto{height:32px;flex:0 0 auto}`;
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2025 Esri
|
|
@@ -24,12 +24,12 @@ const Te = _e`:host{display:block;height:100%}.display-flex-row{display:flex;fle
|
|
|
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 Ae(n) {
|
|
29
|
-
return await ze(n);
|
|
30
|
-
}
|
|
27
|
+
const Ae = "https://www.arcgis.com/sharing/rest/content/items/";
|
|
31
28
|
async function ze(n) {
|
|
32
|
-
|
|
29
|
+
return await Ce(n);
|
|
30
|
+
}
|
|
31
|
+
async function Ce(n) {
|
|
32
|
+
const e = Ae + n + "?f=json";
|
|
33
33
|
try {
|
|
34
34
|
const s = await fetch(
|
|
35
35
|
e,
|
|
@@ -42,11 +42,11 @@ async function ze(n) {
|
|
|
42
42
|
return { error: s.message };
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function j() {
|
|
46
46
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
47
47
|
}
|
|
48
|
-
var S =
|
|
49
|
-
function
|
|
48
|
+
var S = j();
|
|
49
|
+
function ce(n) {
|
|
50
50
|
S = n;
|
|
51
51
|
}
|
|
52
52
|
var A = { exec: () => null };
|
|
@@ -57,15 +57,21 @@ function u(n, e = "") {
|
|
|
57
57
|
}, getRegex: () => new RegExp(s, e) };
|
|
58
58
|
return r;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
var qe = (() => {
|
|
61
|
+
try {
|
|
62
|
+
return !!new RegExp("(?<=1)(?<!1)");
|
|
63
|
+
} catch {
|
|
64
|
+
return !1;
|
|
65
|
+
}
|
|
66
|
+
})(), 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") }, Le = /^(?:[ \t]*(?:\n|$))+/, Ee = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Me = /^ {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+|$)/, Pe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, he = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ue = u(he).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(), Be = u(he).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(), U = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Qe = /^[^\n]+/, H = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Oe = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", H).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ze = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), M = "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]*?(?:-->|$))/, De = 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", M).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pe = u(U).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", M).getRegex(), Ne = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pe).getRegex(), K = { blockquote: Ne, code: Ee, def: Oe, fences: Me, heading: Pe, hr: z, html: De, lheading: ue, list: Ze, newline: Le, paragraph: pe, table: A, text: Qe }, 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", M).getRegex(), je = { ...K, lheading: Be, table: ne, paragraph: u(U).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", M).getRegex() }, Fe = { ...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(U).replace("hr", z).replace("heading", ` *#{1,6} *[^
|
|
67
|
+
]`).replace("lheading", ue).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ue = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, He = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, de = /^( {2,}|\\)\n(?!\s*$)/, Ge = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ge = /[^\s\p{P}\p{S}]/u, Ke = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), fe = /(?!~)[\p{P}\p{S}]/u, We = /(?!~)[\s\p{P}\p{S}]/u, Xe = /(?:[^\s\p{P}\p{S}]|~)/u, Je = u(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", qe ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ve = u(ke, "u").replace(/punct/g, P).getRegex(), Ye = u(ke, "u").replace(/punct/g, fe).getRegex(), me = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", et = u(me, "gu").replace(/notPunctSpace/g, ge).replace(/punctSpace/g, W).replace(/punct/g, P).getRegex(), tt = u(me, "gu").replace(/notPunctSpace/g, Xe).replace(/punctSpace/g, We).replace(/punct/g, fe).getRegex(), st = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ge).replace(/punctSpace/g, W).replace(/punct/g, P).getRegex(), nt = u(/\\(punct)/, "gu").replace(/punct/g, P).getRegex(), rt = 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(), it = u(G).replace("(?:-->|$)", "-->").getRegex(), at = 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", it).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, lt = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), xe = u(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", H).getRegex(), be = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", H).getRegex(), ot = u("reflink|nolink(?!\\()", "g").replace("reflink", xe).replace("nolink", be).getRegex(), re = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: A, anyPunctuation: nt, autolink: rt, blockSkip: Je, br: de, code: He, del: A, emStrongLDelim: Ve, emStrongRDelimAst: et, emStrongRDelimUnd: st, escape: Ue, link: lt, nolink: be, punctuation: Ke, reflink: xe, reflinkSearch: ot, tag: at, text: Ge, url: A }, ct = { ...X, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, Z = { ...X, emStrongRDelimAst: tt, emStrongLDelim: Ye, url: u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", re).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: u(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", re).getRegex() }, ht = { ...Z, br: u(de).replace("{2,}", "*").getRegex(), text: u(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K, gfm: je, pedantic: Fe }, R = { normal: X, gfm: Z, breaks: ht, pedantic: ct }, ut = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ie = (n) => ut[n];
|
|
68
|
+
function y(n, e) {
|
|
63
69
|
if (e) {
|
|
64
|
-
if (x.escapeTest.test(n)) return n.replace(x.escapeReplace,
|
|
65
|
-
} else if (x.escapeTestNoEncode.test(n)) return n.replace(x.escapeReplaceNoEncode,
|
|
70
|
+
if (x.escapeTest.test(n)) return n.replace(x.escapeReplace, ie);
|
|
71
|
+
} else if (x.escapeTestNoEncode.test(n)) return n.replace(x.escapeReplaceNoEncode, ie);
|
|
66
72
|
return n;
|
|
67
73
|
}
|
|
68
|
-
function
|
|
74
|
+
function ae(n) {
|
|
69
75
|
try {
|
|
70
76
|
n = encodeURI(n).replace(x.percentDecode, "%");
|
|
71
77
|
} catch {
|
|
@@ -73,11 +79,11 @@ function ie(n) {
|
|
|
73
79
|
}
|
|
74
80
|
return n;
|
|
75
81
|
}
|
|
76
|
-
function
|
|
77
|
-
let s = n.replace(x.findPipe, (a, i,
|
|
78
|
-
let
|
|
79
|
-
for (; --
|
|
80
|
-
return
|
|
82
|
+
function le(n, e) {
|
|
83
|
+
let s = n.replace(x.findPipe, (a, i, o) => {
|
|
84
|
+
let l = !1, h = i;
|
|
85
|
+
for (; --h >= 0 && o[h] === "\\"; ) l = !l;
|
|
86
|
+
return l ? "|" : " |";
|
|
81
87
|
}), r = s.split(x.splitPipe), t = 0;
|
|
82
88
|
if (r[0].trim() || r.shift(), r.length > 0 && !r.at(-1)?.trim() && r.pop(), e) if (r.length > e) r.splice(e);
|
|
83
89
|
else for (; r.length < e; ) r.push("");
|
|
@@ -92,7 +98,7 @@ function T(n, e, s) {
|
|
|
92
98
|
t++;
|
|
93
99
|
return n.slice(0, r - t);
|
|
94
100
|
}
|
|
95
|
-
function
|
|
101
|
+
function pt(n, e) {
|
|
96
102
|
if (n.indexOf(e[1]) === -1) return -1;
|
|
97
103
|
let s = 0;
|
|
98
104
|
for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
|
|
@@ -100,13 +106,13 @@ function ht(n, e) {
|
|
|
100
106
|
else if (n[r] === e[1] && (s--, s < 0)) return r;
|
|
101
107
|
return s > 0 ? -2 : -1;
|
|
102
108
|
}
|
|
103
|
-
function
|
|
104
|
-
let a = e.href, i = e.title || null,
|
|
109
|
+
function oe(n, e, s, r, t) {
|
|
110
|
+
let a = e.href, i = e.title || null, o = n[1].replace(t.other.outputLinkReplace, "$1");
|
|
105
111
|
r.state.inLink = !0;
|
|
106
|
-
let
|
|
107
|
-
return r.state.inLink = !1,
|
|
112
|
+
let l = { type: n[0].charAt(0) === "!" ? "image" : "link", raw: s, href: a, title: i, text: o, tokens: r.inlineTokens(o) };
|
|
113
|
+
return r.state.inLink = !1, l;
|
|
108
114
|
}
|
|
109
|
-
function
|
|
115
|
+
function dt(n, e, s) {
|
|
110
116
|
let r = n.match(s.other.indentCodeCompensation);
|
|
111
117
|
if (r === null) return e;
|
|
112
118
|
let t = r[1];
|
|
@@ -114,8 +120,8 @@ function ut(n, e, s) {
|
|
|
114
120
|
`).map((a) => {
|
|
115
121
|
let i = a.match(s.other.beginningSpace);
|
|
116
122
|
if (i === null) return a;
|
|
117
|
-
let [
|
|
118
|
-
return
|
|
123
|
+
let [o] = i;
|
|
124
|
+
return o.length >= t.length ? a.slice(t.length) : a;
|
|
119
125
|
}).join(`
|
|
120
126
|
`);
|
|
121
127
|
}
|
|
@@ -141,7 +147,7 @@ var L = class {
|
|
|
141
147
|
fences(n) {
|
|
142
148
|
let e = this.rules.block.fences.exec(n);
|
|
143
149
|
if (e) {
|
|
144
|
-
let s = e[0], r =
|
|
150
|
+
let s = e[0], r = dt(s, e[3] || "", this.rules);
|
|
145
151
|
return { type: "code", raw: s, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
146
152
|
}
|
|
147
153
|
}
|
|
@@ -168,32 +174,32 @@ var L = class {
|
|
|
168
174
|
`).split(`
|
|
169
175
|
`), r = "", t = "", a = [];
|
|
170
176
|
for (; s.length > 0; ) {
|
|
171
|
-
let i = !1,
|
|
172
|
-
for (
|
|
173
|
-
else if (!i)
|
|
177
|
+
let i = !1, o = [], l;
|
|
178
|
+
for (l = 0; l < s.length; l++) if (this.rules.other.blockquoteStart.test(s[l])) o.push(s[l]), i = !0;
|
|
179
|
+
else if (!i) o.push(s[l]);
|
|
174
180
|
else break;
|
|
175
|
-
s = s.slice(
|
|
176
|
-
let
|
|
177
|
-
`),
|
|
181
|
+
s = s.slice(l);
|
|
182
|
+
let h = o.join(`
|
|
183
|
+
`), c = h.replace(this.rules.other.blockquoteSetextReplace, `
|
|
178
184
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
179
185
|
r = r ? `${r}
|
|
180
|
-
${
|
|
181
|
-
${
|
|
186
|
+
${h}` : h, t = t ? `${t}
|
|
187
|
+
${c}` : c;
|
|
182
188
|
let g = this.lexer.state.top;
|
|
183
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
|
184
|
-
let
|
|
185
|
-
if (
|
|
186
|
-
if (
|
|
187
|
-
let
|
|
189
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, a, !0), this.lexer.state.top = g, s.length === 0) break;
|
|
190
|
+
let p = a.at(-1);
|
|
191
|
+
if (p?.type === "code") break;
|
|
192
|
+
if (p?.type === "blockquote") {
|
|
193
|
+
let k = p, f = k.raw + `
|
|
188
194
|
` + s.join(`
|
|
189
195
|
`), b = this.blockquote(f);
|
|
190
|
-
a[a.length - 1] = b, r = r.substring(0, r.length -
|
|
196
|
+
a[a.length - 1] = b, r = r.substring(0, r.length - k.raw.length) + b.raw, t = t.substring(0, t.length - k.text.length) + b.text;
|
|
191
197
|
break;
|
|
192
|
-
} else if (
|
|
193
|
-
let
|
|
198
|
+
} else if (p?.type === "list") {
|
|
199
|
+
let k = p, f = k.raw + `
|
|
194
200
|
` + s.join(`
|
|
195
201
|
`), b = this.list(f);
|
|
196
|
-
a[a.length - 1] = b, r = r.substring(0, r.length -
|
|
202
|
+
a[a.length - 1] = b, r = r.substring(0, r.length - p.raw.length) + b.raw, t = t.substring(0, t.length - k.raw.length) + b.raw, s = f.substring(a.at(-1).raw.length).split(`
|
|
197
203
|
`);
|
|
198
204
|
continue;
|
|
199
205
|
}
|
|
@@ -208,43 +214,43 @@ ${h}` : h;
|
|
|
208
214
|
s = r ? `\\d{1,9}\\${s.slice(-1)}` : `\\${s}`, this.options.pedantic && (s = r ? s : "[*+-]");
|
|
209
215
|
let a = this.rules.other.listItemRegex(s), i = !1;
|
|
210
216
|
for (; n; ) {
|
|
211
|
-
let
|
|
217
|
+
let l = !1, h = "", c = "";
|
|
212
218
|
if (!(e = a.exec(n)) || this.rules.block.hr.test(n)) break;
|
|
213
|
-
|
|
219
|
+
h = e[0], n = n.substring(h.length);
|
|
214
220
|
let g = e[2].split(`
|
|
215
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (B) => " ".repeat(3 * B.length)),
|
|
216
|
-
`, 1)[0],
|
|
217
|
-
if (this.options.pedantic ? (f = 2,
|
|
218
|
-
`, n = n.substring(
|
|
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),
|
|
221
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (B) => " ".repeat(3 * B.length)), p = n.split(`
|
|
222
|
+
`, 1)[0], k = !g.trim(), f = 0;
|
|
223
|
+
if (this.options.pedantic ? (f = 2, c = g.trimStart()) : k ? f = e[1].length + 1 : (f = e[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += e[1].length), k && this.rules.other.blankLine.test(p) && (h += p + `
|
|
224
|
+
`, n = n.substring(p.length + 1), l = !0), !l) {
|
|
225
|
+
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), we = this.rules.other.htmlBeginRegex(f);
|
|
220
226
|
for (; n; ) {
|
|
221
227
|
let Q = n.split(`
|
|
222
228
|
`, 1)[0], _;
|
|
223
|
-
if (
|
|
224
|
-
if (_.search(this.rules.other.nonSpaceChar) >= f || !
|
|
229
|
+
if (p = Q, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), _ = p) : _ = p.replace(this.rules.other.tabCharGlobal, " "), ee.test(p) || te.test(p) || we.test(p) || B.test(p) || Y.test(p)) break;
|
|
230
|
+
if (_.search(this.rules.other.nonSpaceChar) >= f || !p.trim()) c += `
|
|
225
231
|
` + _.slice(f);
|
|
226
232
|
else {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
` +
|
|
233
|
+
if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(g) || te.test(g) || Y.test(g)) break;
|
|
234
|
+
c += `
|
|
235
|
+
` + p;
|
|
230
236
|
}
|
|
231
|
-
!
|
|
237
|
+
!k && !p.trim() && (k = !0), h += Q + `
|
|
232
238
|
`, n = n.substring(Q.length + 1), g = _.slice(f);
|
|
233
239
|
}
|
|
234
240
|
}
|
|
235
|
-
t.loose || (i ? t.loose = !0 : this.rules.other.doubleBlankLine.test(
|
|
241
|
+
t.loose || (i ? t.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (i = !0));
|
|
236
242
|
let b = null, V;
|
|
237
|
-
this.options.gfm && (b = this.rules.other.listIsTask.exec(
|
|
243
|
+
this.options.gfm && (b = this.rules.other.listIsTask.exec(c), b && (V = b[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), t.items.push({ type: "list_item", raw: h, task: !!b, checked: V, loose: !1, text: c, tokens: [] }), t.raw += h;
|
|
238
244
|
}
|
|
239
|
-
let
|
|
240
|
-
if (
|
|
245
|
+
let o = t.items.at(-1);
|
|
246
|
+
if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
|
|
241
247
|
else return;
|
|
242
248
|
t.raw = t.raw.trimEnd();
|
|
243
|
-
for (let
|
|
244
|
-
let
|
|
245
|
-
t.loose =
|
|
249
|
+
for (let l = 0; l < t.items.length; l++) if (this.lexer.state.top = !1, t.items[l].tokens = this.lexer.blockTokens(t.items[l].text, []), !t.loose) {
|
|
250
|
+
let h = t.items[l].tokens.filter((g) => g.type === "space"), c = h.length > 0 && h.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
251
|
+
t.loose = c;
|
|
246
252
|
}
|
|
247
|
-
if (t.loose) for (let
|
|
253
|
+
if (t.loose) for (let l = 0; l < t.items.length; l++) t.items[l].loose = !0;
|
|
248
254
|
return t;
|
|
249
255
|
}
|
|
250
256
|
}
|
|
@@ -262,12 +268,12 @@ ${h}` : h;
|
|
|
262
268
|
table(n) {
|
|
263
269
|
let e = this.rules.block.table.exec(n);
|
|
264
270
|
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
265
|
-
let s =
|
|
271
|
+
let s = le(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), t = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
266
272
|
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
267
273
|
if (s.length === r.length) {
|
|
268
274
|
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
275
|
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(
|
|
276
|
+
for (let i of t) a.rows.push(le(i, a.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: a.align[l] })));
|
|
271
277
|
return a;
|
|
272
278
|
}
|
|
273
279
|
}
|
|
@@ -304,7 +310,7 @@ ${h}` : h;
|
|
|
304
310
|
let a = T(s.slice(0, -1), "\\");
|
|
305
311
|
if ((s.length - a.length) % 2 === 0) return;
|
|
306
312
|
} else {
|
|
307
|
-
let a =
|
|
313
|
+
let a = pt(e[2], "()");
|
|
308
314
|
if (a === -2) return;
|
|
309
315
|
if (a > -1) {
|
|
310
316
|
let i = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
@@ -316,7 +322,7 @@ ${h}` : h;
|
|
|
316
322
|
let a = this.rules.other.pedanticHrefTitle.exec(r);
|
|
317
323
|
a && (r = a[1], t = a[3]);
|
|
318
324
|
} 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)),
|
|
325
|
+
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)), oe(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
326
|
}
|
|
321
327
|
}
|
|
322
328
|
reflink(n, e) {
|
|
@@ -327,31 +333,31 @@ ${h}` : h;
|
|
|
327
333
|
let a = s[0].charAt(0);
|
|
328
334
|
return { type: "text", raw: a, text: a };
|
|
329
335
|
}
|
|
330
|
-
return
|
|
336
|
+
return oe(s, t, s[0], this.lexer, this.rules);
|
|
331
337
|
}
|
|
332
338
|
}
|
|
333
339
|
emStrong(n, e, s = "") {
|
|
334
340
|
let r = this.rules.inline.emStrongLDelim.exec(n);
|
|
335
341
|
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,
|
|
337
|
-
for (
|
|
342
|
+
let t = [...r[0]].length - 1, a, i, o = t, l = 0, h = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
343
|
+
for (h.lastIndex = 0, e = e.slice(-1 * n.length + t); (r = h.exec(e)) != null; ) {
|
|
338
344
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
339
345
|
if (i = [...a].length, r[3] || r[4]) {
|
|
340
|
-
|
|
346
|
+
o += i;
|
|
341
347
|
continue;
|
|
342
348
|
} else if ((r[5] || r[6]) && t % 3 && !((t + i) % 3)) {
|
|
343
|
-
|
|
349
|
+
l += i;
|
|
344
350
|
continue;
|
|
345
351
|
}
|
|
346
|
-
if (
|
|
347
|
-
i = Math.min(i, i +
|
|
348
|
-
let
|
|
352
|
+
if (o -= i, o > 0) continue;
|
|
353
|
+
i = Math.min(i, i + o + l);
|
|
354
|
+
let c = [...r[0]][0].length, g = n.slice(0, t + r.index + c + i);
|
|
349
355
|
if (Math.min(t, i) % 2) {
|
|
350
|
-
let
|
|
351
|
-
return { type: "em", raw: g, text:
|
|
356
|
+
let k = g.slice(1, -1);
|
|
357
|
+
return { type: "em", raw: g, text: k, tokens: this.lexer.inlineTokens(k) };
|
|
352
358
|
}
|
|
353
|
-
let
|
|
354
|
-
return { type: "strong", raw: g, text:
|
|
359
|
+
let p = g.slice(2, -2);
|
|
360
|
+
return { type: "strong", raw: g, text: p, tokens: this.lexer.inlineTokens(p) };
|
|
355
361
|
}
|
|
356
362
|
}
|
|
357
363
|
}
|
|
@@ -399,7 +405,7 @@ ${h}` : h;
|
|
|
399
405
|
return { type: "text", raw: e[0], text: e[0], escaped: s };
|
|
400
406
|
}
|
|
401
407
|
}
|
|
402
|
-
},
|
|
408
|
+
}, w = class D {
|
|
403
409
|
tokens;
|
|
404
410
|
options;
|
|
405
411
|
state;
|
|
@@ -491,9 +497,9 @@ ${h}` : h;
|
|
|
491
497
|
}
|
|
492
498
|
let a = e;
|
|
493
499
|
if (this.options.extensions?.startBlock) {
|
|
494
|
-
let i = 1 / 0,
|
|
495
|
-
this.options.extensions.startBlock.forEach((
|
|
496
|
-
|
|
500
|
+
let i = 1 / 0, o = e.slice(1), l;
|
|
501
|
+
this.options.extensions.startBlock.forEach((h) => {
|
|
502
|
+
l = h.call({ lexer: this }, o), typeof l == "number" && l >= 0 && (i = Math.min(i, l));
|
|
497
503
|
}), i < 1 / 0 && i >= 0 && (a = e.substring(0, i + 1));
|
|
498
504
|
}
|
|
499
505
|
if (this.state.top && (t = this.tokenizer.paragraph(a))) {
|
|
@@ -533,11 +539,12 @@ ${h}` : h;
|
|
|
533
539
|
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
540
|
}
|
|
535
541
|
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
|
-
|
|
542
|
+
let a;
|
|
543
|
+
for (; (t = this.tokenizer.rules.inline.blockSkip.exec(r)) != null; ) a = t[2] ? t[2].length : 0, r = r.slice(0, t.index + a) + "[" + "a".repeat(t[0].length - a - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
537
544
|
r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
|
|
538
|
-
let
|
|
545
|
+
let i = !1, o = "";
|
|
539
546
|
for (; e; ) {
|
|
540
|
-
|
|
547
|
+
i || (o = ""), i = !1;
|
|
541
548
|
let l;
|
|
542
549
|
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
550
|
if (l = this.tokenizer.escape(e)) {
|
|
@@ -558,7 +565,7 @@ ${h}` : h;
|
|
|
558
565
|
l.type === "text" && c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
559
566
|
continue;
|
|
560
567
|
}
|
|
561
|
-
if (l = this.tokenizer.emStrong(e, r,
|
|
568
|
+
if (l = this.tokenizer.emStrong(e, r, o)) {
|
|
562
569
|
e = e.substring(l.raw.length), s.push(l);
|
|
563
570
|
continue;
|
|
564
571
|
}
|
|
@@ -582,15 +589,15 @@ ${h}` : h;
|
|
|
582
589
|
e = e.substring(l.raw.length), s.push(l);
|
|
583
590
|
continue;
|
|
584
591
|
}
|
|
585
|
-
let
|
|
592
|
+
let h = e;
|
|
586
593
|
if (this.options.extensions?.startInline) {
|
|
587
|
-
let c = 1 / 0,
|
|
588
|
-
this.options.extensions.startInline.forEach((
|
|
589
|
-
|
|
590
|
-
}), c < 1 / 0 && c >= 0 && (
|
|
594
|
+
let c = 1 / 0, g = e.slice(1), p;
|
|
595
|
+
this.options.extensions.startInline.forEach((k) => {
|
|
596
|
+
p = k.call({ lexer: this }, g), typeof p == "number" && p >= 0 && (c = Math.min(c, p));
|
|
597
|
+
}), c < 1 / 0 && c >= 0 && (h = e.substring(0, c + 1));
|
|
591
598
|
}
|
|
592
|
-
if (l = this.tokenizer.inlineText(
|
|
593
|
-
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (
|
|
599
|
+
if (l = this.tokenizer.inlineText(h)) {
|
|
600
|
+
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (o = l.raw.slice(-1)), i = !0;
|
|
594
601
|
let c = s.at(-1);
|
|
595
602
|
c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
596
603
|
continue;
|
|
@@ -617,8 +624,8 @@ ${h}` : h;
|
|
|
617
624
|
code({ text: n, lang: e, escaped: s }) {
|
|
618
625
|
let r = (e || "").match(x.notSpaceStart)?.[0], t = n.replace(x.endingNewline, "") + `
|
|
619
626
|
`;
|
|
620
|
-
return r ? '<pre><code class="language-' +
|
|
621
|
-
` : "<pre><code>" + (s ? t :
|
|
627
|
+
return r ? '<pre><code class="language-' + y(r) + '">' + (s ? t : y(t, !0)) + `</code></pre>
|
|
628
|
+
` : "<pre><code>" + (s ? t : y(t, !0)) + `</code></pre>
|
|
622
629
|
`;
|
|
623
630
|
}
|
|
624
631
|
blockquote({ tokens: n }) {
|
|
@@ -643,8 +650,8 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
643
650
|
list(n) {
|
|
644
651
|
let e = n.ordered, s = n.start, r = "";
|
|
645
652
|
for (let i = 0; i < n.items.length; i++) {
|
|
646
|
-
let
|
|
647
|
-
r += this.listitem(
|
|
653
|
+
let o = n.items[i];
|
|
654
|
+
r += this.listitem(o);
|
|
648
655
|
}
|
|
649
656
|
let t = e ? "ol" : "ul", a = e && s !== 1 ? ' start="' + s + '"' : "";
|
|
650
657
|
return "<" + t + a + `>
|
|
@@ -655,7 +662,7 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
655
662
|
let e = "";
|
|
656
663
|
if (n.task) {
|
|
657
664
|
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 + " " +
|
|
665
|
+
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 + " " + y(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
666
|
}
|
|
660
667
|
return e += this.parser.parse(n.tokens, !!n.loose), `<li>${e}</li>
|
|
661
668
|
`;
|
|
@@ -701,7 +708,7 @@ ${n}</tr>
|
|
|
701
708
|
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
702
709
|
}
|
|
703
710
|
codespan({ text: n }) {
|
|
704
|
-
return `<code>${
|
|
711
|
+
return `<code>${y(n, !0)}</code>`;
|
|
705
712
|
}
|
|
706
713
|
br(n) {
|
|
707
714
|
return "<br>";
|
|
@@ -710,22 +717,22 @@ ${n}</tr>
|
|
|
710
717
|
return `<del>${this.parser.parseInline(n)}</del>`;
|
|
711
718
|
}
|
|
712
719
|
link({ href: n, title: e, tokens: s }) {
|
|
713
|
-
let r = this.parser.parseInline(s), t =
|
|
720
|
+
let r = this.parser.parseInline(s), t = ae(n);
|
|
714
721
|
if (t === null) return r;
|
|
715
722
|
n = t;
|
|
716
723
|
let a = '<a href="' + n + '"';
|
|
717
|
-
return e && (a += ' title="' +
|
|
724
|
+
return e && (a += ' title="' + y(e) + '"'), a += ">" + r + "</a>", a;
|
|
718
725
|
}
|
|
719
726
|
image({ href: n, title: e, text: s, tokens: r }) {
|
|
720
727
|
r && (s = this.parser.parseInline(r, this.parser.textRenderer));
|
|
721
|
-
let t =
|
|
722
|
-
if (t === null) return
|
|
728
|
+
let t = ae(n);
|
|
729
|
+
if (t === null) return y(s);
|
|
723
730
|
n = t;
|
|
724
731
|
let a = `<img src="${n}" alt="${s}"`;
|
|
725
|
-
return e && (a += ` title="${
|
|
732
|
+
return e && (a += ` title="${y(e)}"`), a += ">", a;
|
|
726
733
|
}
|
|
727
734
|
text(n) {
|
|
728
|
-
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text :
|
|
735
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : y(n.text);
|
|
729
736
|
}
|
|
730
737
|
}, J = class {
|
|
731
738
|
strong({ text: n }) {
|
|
@@ -755,7 +762,7 @@ ${n}</tr>
|
|
|
755
762
|
br() {
|
|
756
763
|
return "";
|
|
757
764
|
}
|
|
758
|
-
},
|
|
765
|
+
}, v = class N {
|
|
759
766
|
options;
|
|
760
767
|
renderer;
|
|
761
768
|
textRenderer;
|
|
@@ -773,9 +780,9 @@ ${n}</tr>
|
|
|
773
780
|
for (let t = 0; t < e.length; t++) {
|
|
774
781
|
let a = e[t];
|
|
775
782
|
if (this.options.extensions?.renderers?.[a.type]) {
|
|
776
|
-
let
|
|
777
|
-
if (
|
|
778
|
-
r +=
|
|
783
|
+
let o = a, l = this.options.extensions.renderers[o.type].call({ parser: this }, o);
|
|
784
|
+
if (l !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
|
|
785
|
+
r += l || "";
|
|
779
786
|
continue;
|
|
780
787
|
}
|
|
781
788
|
}
|
|
@@ -822,16 +829,16 @@ ${n}</tr>
|
|
|
822
829
|
continue;
|
|
823
830
|
}
|
|
824
831
|
case "text": {
|
|
825
|
-
let
|
|
826
|
-
for (; t + 1 < e.length && e[t + 1].type === "text"; )
|
|
827
|
-
` + this.renderer.text(
|
|
828
|
-
s ? r += this.renderer.paragraph({ type: "paragraph", raw:
|
|
832
|
+
let o = i, l = this.renderer.text(o);
|
|
833
|
+
for (; t + 1 < e.length && e[t + 1].type === "text"; ) o = e[++t], l += `
|
|
834
|
+
` + this.renderer.text(o);
|
|
835
|
+
s ? r += this.renderer.paragraph({ type: "paragraph", raw: l, text: l, tokens: [{ type: "text", raw: l, text: l, escaped: !0 }] }) : r += l;
|
|
829
836
|
continue;
|
|
830
837
|
}
|
|
831
838
|
default: {
|
|
832
|
-
let
|
|
833
|
-
if (this.options.silent) return console.error(
|
|
834
|
-
throw new Error(
|
|
839
|
+
let o = 'Token with "' + i.type + '" type was not found.';
|
|
840
|
+
if (this.options.silent) return console.error(o), "";
|
|
841
|
+
throw new Error(o);
|
|
835
842
|
}
|
|
836
843
|
}
|
|
837
844
|
}
|
|
@@ -842,9 +849,9 @@ ${n}</tr>
|
|
|
842
849
|
for (let t = 0; t < e.length; t++) {
|
|
843
850
|
let a = e[t];
|
|
844
851
|
if (this.options.extensions?.renderers?.[a.type]) {
|
|
845
|
-
let
|
|
846
|
-
if (
|
|
847
|
-
r +=
|
|
852
|
+
let o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
853
|
+
if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
|
|
854
|
+
r += o || "";
|
|
848
855
|
continue;
|
|
849
856
|
}
|
|
850
857
|
}
|
|
@@ -891,9 +898,9 @@ ${n}</tr>
|
|
|
891
898
|
break;
|
|
892
899
|
}
|
|
893
900
|
default: {
|
|
894
|
-
let
|
|
895
|
-
if (this.options.silent) return console.error(
|
|
896
|
-
throw new Error(
|
|
901
|
+
let o = 'Token with "' + i.type + '" type was not found.';
|
|
902
|
+
if (this.options.silent) return console.error(o), "";
|
|
903
|
+
throw new Error(o);
|
|
897
904
|
}
|
|
898
905
|
}
|
|
899
906
|
}
|
|
@@ -920,20 +927,20 @@ ${n}</tr>
|
|
|
920
927
|
return n;
|
|
921
928
|
}
|
|
922
929
|
provideLexer() {
|
|
923
|
-
return this.block ?
|
|
930
|
+
return this.block ? w.lex : w.lexInline;
|
|
924
931
|
}
|
|
925
932
|
provideParser() {
|
|
926
|
-
return this.block ?
|
|
933
|
+
return this.block ? v.parse : v.parseInline;
|
|
927
934
|
}
|
|
928
|
-
},
|
|
929
|
-
defaults =
|
|
935
|
+
}, gt = class {
|
|
936
|
+
defaults = j();
|
|
930
937
|
options = this.setOptions;
|
|
931
938
|
parse = this.parseMarkdown(!0);
|
|
932
939
|
parseInline = this.parseMarkdown(!1);
|
|
933
|
-
Parser =
|
|
940
|
+
Parser = v;
|
|
934
941
|
Renderer = E;
|
|
935
942
|
TextRenderer = J;
|
|
936
|
-
Lexer =
|
|
943
|
+
Lexer = w;
|
|
937
944
|
Tokenizer = L;
|
|
938
945
|
Hooks = I;
|
|
939
946
|
constructor(...n) {
|
|
@@ -972,8 +979,8 @@ ${n}</tr>
|
|
|
972
979
|
if ("renderer" in t) {
|
|
973
980
|
let a = e.renderers[t.name];
|
|
974
981
|
a ? e.renderers[t.name] = function(...i) {
|
|
975
|
-
let
|
|
976
|
-
return
|
|
982
|
+
let o = t.renderer.apply(this, i);
|
|
983
|
+
return o === !1 && (o = a.apply(this, i)), o;
|
|
977
984
|
} : e.renderers[t.name] = t.renderer;
|
|
978
985
|
}
|
|
979
986
|
if ("tokenizer" in t) {
|
|
@@ -987,10 +994,10 @@ ${n}</tr>
|
|
|
987
994
|
for (let a in s.renderer) {
|
|
988
995
|
if (!(a in t)) throw new Error(`renderer '${a}' does not exist`);
|
|
989
996
|
if (["options", "parser"].includes(a)) continue;
|
|
990
|
-
let i = a,
|
|
991
|
-
t[i] = (...
|
|
992
|
-
let
|
|
993
|
-
return
|
|
997
|
+
let i = a, o = s.renderer[i], l = t[i];
|
|
998
|
+
t[i] = (...h) => {
|
|
999
|
+
let c = o.apply(t, h);
|
|
1000
|
+
return c === !1 && (c = l.apply(t, h)), c || "";
|
|
994
1001
|
};
|
|
995
1002
|
}
|
|
996
1003
|
r.renderer = t;
|
|
@@ -1000,10 +1007,10 @@ ${n}</tr>
|
|
|
1000
1007
|
for (let a in s.tokenizer) {
|
|
1001
1008
|
if (!(a in t)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
1002
1009
|
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
1003
|
-
let i = a,
|
|
1004
|
-
t[i] = (...
|
|
1005
|
-
let
|
|
1006
|
-
return
|
|
1010
|
+
let i = a, o = s.tokenizer[i], l = t[i];
|
|
1011
|
+
t[i] = (...h) => {
|
|
1012
|
+
let c = o.apply(t, h);
|
|
1013
|
+
return c === !1 && (c = l.apply(t, h)), c;
|
|
1007
1014
|
};
|
|
1008
1015
|
}
|
|
1009
1016
|
r.tokenizer = t;
|
|
@@ -1013,14 +1020,21 @@ ${n}</tr>
|
|
|
1013
1020
|
for (let a in s.hooks) {
|
|
1014
1021
|
if (!(a in t)) throw new Error(`hook '${a}' does not exist`);
|
|
1015
1022
|
if (["options", "block"].includes(a)) continue;
|
|
1016
|
-
let i = a,
|
|
1017
|
-
I.passThroughHooks.has(a) ? t[i] = (
|
|
1018
|
-
if (this.defaults.async && I.passThroughHooksRespectAsync.has(a)) return
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
let
|
|
1023
|
-
return
|
|
1023
|
+
let i = a, o = s.hooks[i], l = t[i];
|
|
1024
|
+
I.passThroughHooks.has(a) ? t[i] = (h) => {
|
|
1025
|
+
if (this.defaults.async && I.passThroughHooksRespectAsync.has(a)) return (async () => {
|
|
1026
|
+
let g = await o.call(t, h);
|
|
1027
|
+
return l.call(t, g);
|
|
1028
|
+
})();
|
|
1029
|
+
let c = o.call(t, h);
|
|
1030
|
+
return l.call(t, c);
|
|
1031
|
+
} : t[i] = (...h) => {
|
|
1032
|
+
if (this.defaults.async) return (async () => {
|
|
1033
|
+
let g = await o.apply(t, h);
|
|
1034
|
+
return g === !1 && (g = await l.apply(t, h)), g;
|
|
1035
|
+
})();
|
|
1036
|
+
let c = o.apply(t, h);
|
|
1037
|
+
return c === !1 && (c = l.apply(t, h)), c;
|
|
1024
1038
|
};
|
|
1025
1039
|
}
|
|
1026
1040
|
r.hooks = t;
|
|
@@ -1028,8 +1042,8 @@ ${n}</tr>
|
|
|
1028
1042
|
if (s.walkTokens) {
|
|
1029
1043
|
let t = this.defaults.walkTokens, a = s.walkTokens;
|
|
1030
1044
|
r.walkTokens = function(i) {
|
|
1031
|
-
let
|
|
1032
|
-
return
|
|
1045
|
+
let o = [];
|
|
1046
|
+
return o.push(a.call(this, i)), t && (o = o.concat(t.call(this, i))), o;
|
|
1033
1047
|
};
|
|
1034
1048
|
}
|
|
1035
1049
|
this.defaults = { ...this.defaults, ...r };
|
|
@@ -1039,10 +1053,10 @@ ${n}</tr>
|
|
|
1039
1053
|
return this.defaults = { ...this.defaults, ...n }, this;
|
|
1040
1054
|
}
|
|
1041
1055
|
lexer(n, e) {
|
|
1042
|
-
return
|
|
1056
|
+
return w.lex(n, e ?? this.defaults);
|
|
1043
1057
|
}
|
|
1044
1058
|
parser(n, e) {
|
|
1045
|
-
return
|
|
1059
|
+
return v.parse(n, e ?? this.defaults);
|
|
1046
1060
|
}
|
|
1047
1061
|
parseMarkdown(n) {
|
|
1048
1062
|
return (e, s) => {
|
|
@@ -1050,17 +1064,20 @@ ${n}</tr>
|
|
|
1050
1064
|
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
1065
|
if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
|
|
1052
1066
|
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
|
-
|
|
1055
|
-
|
|
1067
|
+
if (t.hooks && (t.hooks.options = t, t.hooks.block = n), t.async) return (async () => {
|
|
1068
|
+
let i = t.hooks ? await t.hooks.preprocess(e) : e, o = await (t.hooks ? await t.hooks.provideLexer() : n ? w.lex : w.lexInline)(i, t), l = t.hooks ? await t.hooks.processAllTokens(o) : o;
|
|
1069
|
+
t.walkTokens && await Promise.all(this.walkTokens(l, t.walkTokens));
|
|
1070
|
+
let h = await (t.hooks ? await t.hooks.provideParser() : n ? v.parse : v.parseInline)(l, t);
|
|
1071
|
+
return t.hooks ? await t.hooks.postprocess(h) : h;
|
|
1072
|
+
})().catch(a);
|
|
1056
1073
|
try {
|
|
1057
1074
|
t.hooks && (e = t.hooks.preprocess(e));
|
|
1058
|
-
let
|
|
1059
|
-
t.hooks && (
|
|
1060
|
-
let
|
|
1061
|
-
return t.hooks && (
|
|
1062
|
-
} catch (
|
|
1063
|
-
return a(
|
|
1075
|
+
let i = (t.hooks ? t.hooks.provideLexer() : n ? w.lex : w.lexInline)(e, t);
|
|
1076
|
+
t.hooks && (i = t.hooks.processAllTokens(i)), t.walkTokens && this.walkTokens(i, t.walkTokens);
|
|
1077
|
+
let o = (t.hooks ? t.hooks.provideParser() : n ? v.parse : v.parseInline)(i, t);
|
|
1078
|
+
return t.hooks && (o = t.hooks.postprocess(o)), o;
|
|
1079
|
+
} catch (i) {
|
|
1080
|
+
return a(i);
|
|
1064
1081
|
}
|
|
1065
1082
|
};
|
|
1066
1083
|
}
|
|
@@ -1068,52 +1085,52 @@ ${n}</tr>
|
|
|
1068
1085
|
return (s) => {
|
|
1069
1086
|
if (s.message += `
|
|
1070
1087
|
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
1071
|
-
let r = "<p>An error occurred:</p><pre>" +
|
|
1088
|
+
let r = "<p>An error occurred:</p><pre>" + y(s.message + "", !0) + "</pre>";
|
|
1072
1089
|
return e ? Promise.resolve(r) : r;
|
|
1073
1090
|
}
|
|
1074
1091
|
if (e) return Promise.reject(s);
|
|
1075
1092
|
throw s;
|
|
1076
1093
|
};
|
|
1077
1094
|
}
|
|
1078
|
-
}, $ = new
|
|
1079
|
-
function
|
|
1095
|
+
}, $ = new gt();
|
|
1096
|
+
function d(n, e) {
|
|
1080
1097
|
return $.parse(n, e);
|
|
1081
1098
|
}
|
|
1082
|
-
|
|
1083
|
-
return $.setOptions(n),
|
|
1099
|
+
d.options = d.setOptions = function(n) {
|
|
1100
|
+
return $.setOptions(n), d.defaults = $.defaults, ce(d.defaults), d;
|
|
1084
1101
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
return $.use(...n),
|
|
1102
|
+
d.getDefaults = j;
|
|
1103
|
+
d.defaults = S;
|
|
1104
|
+
d.use = function(...n) {
|
|
1105
|
+
return $.use(...n), d.defaults = $.defaults, ce(d.defaults), d;
|
|
1089
1106
|
};
|
|
1090
|
-
|
|
1107
|
+
d.walkTokens = function(n, e) {
|
|
1091
1108
|
return $.walkTokens(n, e);
|
|
1092
1109
|
};
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
class
|
|
1110
|
+
d.parseInline = $.parseInline;
|
|
1111
|
+
d.Parser = v;
|
|
1112
|
+
d.parser = v.parse;
|
|
1113
|
+
d.Renderer = E;
|
|
1114
|
+
d.TextRenderer = J;
|
|
1115
|
+
d.Lexer = w;
|
|
1116
|
+
d.lexer = w.lex;
|
|
1117
|
+
d.Tokenizer = L;
|
|
1118
|
+
d.Hooks = I;
|
|
1119
|
+
d.parse = d;
|
|
1120
|
+
d.options;
|
|
1121
|
+
d.setOptions;
|
|
1122
|
+
d.use;
|
|
1123
|
+
d.walkTokens;
|
|
1124
|
+
d.parseInline;
|
|
1125
|
+
v.parse;
|
|
1126
|
+
w.lex;
|
|
1127
|
+
class ft extends $e {
|
|
1111
1128
|
constructor() {
|
|
1112
1129
|
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 = {
|
|
1113
1130
|
conversationId: null,
|
|
1114
1131
|
inquiryId: null,
|
|
1115
1132
|
ackSequenceNumber: null
|
|
1116
|
-
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations =
|
|
1133
|
+
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._showCopyAlert = !1, this._translations = ye({ name: "arcgis-solutions-assistant", blocking: !0 }), this.closeAssistant = Se(), this._resetConversation = () => {
|
|
1117
1134
|
this.conversationStore.conversationId = null, this.conversationStore.inquiryId = null, this.conversationStore.ackSequenceNumber = null;
|
|
1118
1135
|
}, this._setMessageContainerRef = (e) => {
|
|
1119
1136
|
this._chatContainer = e;
|
|
@@ -1130,10 +1147,10 @@ class dt extends ye {
|
|
|
1130
1147
|
});
|
|
1131
1148
|
}
|
|
1132
1149
|
static {
|
|
1133
|
-
this.properties = { serverRoot: 1, solutionAIurl: 1, docAIurl: 1, token: 1, open: 5, conversationStore: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _translations: 16 };
|
|
1150
|
+
this.properties = { serverRoot: 1, solutionAIurl: 1, docAIurl: 1, token: 1, open: 5, conversationStore: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _showCopyAlert: 16, _translations: 16 };
|
|
1134
1151
|
}
|
|
1135
1152
|
static {
|
|
1136
|
-
this.styles =
|
|
1153
|
+
this.styles = Ie;
|
|
1137
1154
|
}
|
|
1138
1155
|
async handleSendMessage() {
|
|
1139
1156
|
if (!this._inputRef?.value.trim())
|
|
@@ -1192,20 +1209,25 @@ class dt extends ye {
|
|
|
1192
1209
|
const i = {
|
|
1193
1210
|
message: t.message,
|
|
1194
1211
|
conversationId: a.conversationId,
|
|
1195
|
-
context: {
|
|
1212
|
+
context: {
|
|
1213
|
+
kind: "DocAIAssistantRequest",
|
|
1214
|
+
filters: {
|
|
1215
|
+
products: "ArcGIS Solutions"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1196
1218
|
};
|
|
1197
1219
|
t = await this.requestAIServer(i, s, this.docAIurl);
|
|
1198
1220
|
break;
|
|
1199
1221
|
case "Recommend solution":
|
|
1200
1222
|
if (t.context.results && t.context.results?.length > 0) {
|
|
1201
|
-
const
|
|
1223
|
+
const l = {
|
|
1202
1224
|
author: "ai",
|
|
1203
1225
|
conversationId: t.conversationId,
|
|
1204
1226
|
message: t.message ?? "",
|
|
1205
1227
|
intent: "Recommend solution",
|
|
1206
1228
|
render: this._renderSuggestedSolutions(t.message ?? "", t.context.results, t.conversationId, "Recommend solution")
|
|
1207
1229
|
};
|
|
1208
|
-
this.messages.push(
|
|
1230
|
+
this.messages.push(l);
|
|
1209
1231
|
}
|
|
1210
1232
|
break;
|
|
1211
1233
|
default:
|
|
@@ -1222,13 +1244,13 @@ class dt extends ye {
|
|
|
1222
1244
|
for (const i of t.context.results)
|
|
1223
1245
|
if (i.reply !== "") {
|
|
1224
1246
|
this._isLoadingText = "";
|
|
1225
|
-
const
|
|
1247
|
+
const o = await Promise.resolve(d(i.reply));
|
|
1226
1248
|
this.messages.push({
|
|
1227
|
-
message:
|
|
1249
|
+
message: o,
|
|
1228
1250
|
author: "ai",
|
|
1229
1251
|
conversationId: t.conversationId,
|
|
1230
1252
|
intent: "Solution question",
|
|
1231
|
-
render: this._renderDocAssistantResults(
|
|
1253
|
+
render: this._renderDocAssistantResults(o, i.reply, i.ref, i.followupQuestions, t.conversationId, "Solution question")
|
|
1232
1254
|
});
|
|
1233
1255
|
}
|
|
1234
1256
|
} else {
|
|
@@ -1294,55 +1316,63 @@ class dt extends ye {
|
|
|
1294
1316
|
(e.size || this._isLoading) && this._scrollToBottom();
|
|
1295
1317
|
}
|
|
1296
1318
|
_renderFeedback(e, s, r, t) {
|
|
1297
|
-
return
|
|
1319
|
+
return m`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${() => {
|
|
1298
1320
|
this._sendFeedback(e, s, "Good", r, t);
|
|
1299
1321
|
}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${() => {
|
|
1300
1322
|
this._sendFeedback(e, s, "Bad", r, t);
|
|
1323
|
+
}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=copy label="position feedback" kind=neutral @click=${() => {
|
|
1324
|
+
this._copyResponseToClipboard(e);
|
|
1301
1325
|
}}></calcite-button></div>`;
|
|
1302
1326
|
}
|
|
1303
1327
|
_renderSolutionQuestionReferences(e) {
|
|
1304
|
-
return e.map((s) =>
|
|
1328
|
+
return e.map((s) => m`<div class="message-content-pad"><a href=${s.url ?? O} target=_blank>${s.title}</a></div>`);
|
|
1305
1329
|
}
|
|
1306
1330
|
_renderSolutionQuestionFollowup(e) {
|
|
1307
|
-
return e.map((s) =>
|
|
1331
|
+
return e.map((s) => m`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${() => {
|
|
1308
1332
|
this._submitFollowupQuestion(s);
|
|
1309
1333
|
}}>${s}</calcite-chip>`);
|
|
1310
1334
|
}
|
|
1311
1335
|
_renderSolutionsQuestionTable(e, s, r) {
|
|
1312
1336
|
const t = this._renderSolutionQuestionReferences(s), a = this._renderSolutionQuestionFollowup(r);
|
|
1313
|
-
return
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1337
|
+
return m`<div><div slot=description class="message-content">${Te(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${(i) => {
|
|
1338
|
+
const o = i.currentTarget.parentElement?.nextElementSibling;
|
|
1339
|
+
o.classList.toggle("collapsed"), i.currentTarget.setAttribute("icon-end", o.classList.contains("collapsed") ? "chevron-down" : "chevron-up");
|
|
1316
1340
|
}}>${`${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>`;
|
|
1317
1341
|
}
|
|
1318
1342
|
_renderSolutionCard(e, s) {
|
|
1319
|
-
return
|
|
1343
|
+
return m`<a class="solution-card" id=${s ?? O} @click=${() => {
|
|
1320
1344
|
this._emitItemIdFromAI(s);
|
|
1321
|
-
}}>${
|
|
1345
|
+
}}>${m`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail ?? O} 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>`;
|
|
1322
1346
|
}
|
|
1323
1347
|
_renderExistingSolutionsTable(e, s) {
|
|
1324
1348
|
const r = s.map((t) => {
|
|
1325
1349
|
const a = t.thumbnail.match(/\/items\/([a-f0-9]+)\//);
|
|
1326
1350
|
return a ? this._renderSolutionCard(t, a[1]) : null;
|
|
1327
1351
|
}).filter((t) => t !== null);
|
|
1328
|
-
return
|
|
1352
|
+
return m`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${r}</div></div>`;
|
|
1329
1353
|
}
|
|
1330
1354
|
_renderSimpleTextMessage(e, s, r, t, a) {
|
|
1331
|
-
const i = this.messages.length >= 2 ? this._getMostRecentQuestion() : "",
|
|
1332
|
-
return s === "system" ?
|
|
1355
|
+
const i = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", o = typeof i == "string" ? "" : i?.message ?? "";
|
|
1356
|
+
return s === "system" ? m`<div class="message-content message-content-alignment">${a && m`<calcite-icon .icon=${a}></calcite-icon>` || ""}${e}</div>` : m`<calcite-card class=${_e(s === "human" ? "user-message" : "system-message")}><div class="message-content">${e}${s === "ai" && r !== "" && this._renderFeedback(e, o, r, t) || ""}</div></calcite-card>`;
|
|
1333
1357
|
}
|
|
1334
1358
|
_renderDocAssistantResults(e, s, r, t, a, i) {
|
|
1335
|
-
const
|
|
1336
|
-
return
|
|
1359
|
+
const o = this._getMostRecentQuestion();
|
|
1360
|
+
return m`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e, r, t)}${this._renderFeedback(s, o?.message ?? "", a, i)}</div></calcite-card>`;
|
|
1337
1361
|
}
|
|
1338
1362
|
_renderSuggestedSolutions(e, s, r, t) {
|
|
1339
|
-
const a = this._getMostRecentQuestion(), i = s.map((
|
|
1340
|
-
|
|
1363
|
+
const a = this._getMostRecentQuestion(), i = s.map((o) => `- ${o.title}`).join(`
|
|
1364
|
+
`);
|
|
1365
|
+
return m`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e, s)}${this._renderFeedback(e + `
|
|
1366
|
+
` + i.toString(), a?.message ?? "", r, t)}</div></calcite-card>`;
|
|
1341
1367
|
}
|
|
1342
1368
|
render() {
|
|
1343
|
-
return
|
|
1369
|
+
return m`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${() => {
|
|
1344
1370
|
this.closeAssistant.emit(!0), this.open = !1;
|
|
1345
|
-
}}><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 ?
|
|
1371
|
+
}}><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 ? m`<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 && m`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText != "" && m`<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-alert auto-close auto-close-duration=fast kind=success .label=${this._translations.copyResponse} .open=${this._showCopyAlert} @close=${() => {
|
|
1372
|
+
this._showCopyAlert = !1;
|
|
1373
|
+
}} @calciteAlertClose=${() => {
|
|
1374
|
+
this._showCopyAlert = !1;
|
|
1375
|
+
}}><div slot=title>${this._translations.copyResponse}</div></calcite-alert></calcite-dialog>`;
|
|
1346
1376
|
}
|
|
1347
1377
|
_scrollToBottom() {
|
|
1348
1378
|
this._chatContainer && setTimeout(() => {
|
|
@@ -1371,7 +1401,7 @@ class dt extends ye {
|
|
|
1371
1401
|
return [...this.messages].reverse().find((e) => e.author === "human") || null;
|
|
1372
1402
|
}
|
|
1373
1403
|
async _querySolutions(e) {
|
|
1374
|
-
const s = await
|
|
1404
|
+
const s = await ze(e);
|
|
1375
1405
|
if ("error" in s)
|
|
1376
1406
|
throw new Error(s.error);
|
|
1377
1407
|
return s;
|
|
@@ -1380,8 +1410,11 @@ class dt extends ye {
|
|
|
1380
1410
|
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")}`;
|
|
1381
1411
|
window.open(i, "_blank");
|
|
1382
1412
|
}
|
|
1413
|
+
_copyResponseToClipboard(e) {
|
|
1414
|
+
navigator.clipboard.writeText(e), this._showCopyAlert = !0;
|
|
1415
|
+
}
|
|
1383
1416
|
}
|
|
1384
|
-
|
|
1417
|
+
ve("arcgis-solutions-assistant", ft);
|
|
1385
1418
|
export {
|
|
1386
|
-
|
|
1419
|
+
ft as ArcgisSolutionsAssistant
|
|
1387
1420
|
};
|