@kdcloudjs/shoelace 1.0.28 → 1.0.29
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/cdn/chunks/chunk.22L6GGEN.js +27 -0
- package/cdn/chunks/chunk.24RHFOSL.js +336 -0
- package/cdn/chunks/chunk.27S4WN5H.js +28 -0
- package/cdn/chunks/chunk.2CWFRKQO.js +314 -0
- package/cdn/chunks/chunk.2IJ4DOTI.js +11 -0
- package/cdn/chunks/chunk.2SJYPE6U.js +25 -0
- package/cdn/chunks/chunk.2T5J6WBF.js +40 -0
- package/cdn/chunks/chunk.2YOH4RA6.js +21 -0
- package/cdn/chunks/chunk.32VXI7RG.js +11 -0
- package/cdn/chunks/chunk.36S6SA3U.js +345 -0
- package/cdn/chunks/chunk.3BAT6CQA.js +21 -0
- package/cdn/chunks/chunk.3ER5B33F.js +11 -0
- package/cdn/chunks/chunk.3FO6PJTD.js +24 -0
- package/cdn/chunks/chunk.3GW6TCA3.js +299 -0
- package/cdn/chunks/chunk.3K5NTKB5.js +177 -0
- package/cdn/chunks/chunk.3L2Y4OJH.js +70 -0
- package/cdn/chunks/chunk.3MAQV43I.js +161 -0
- package/cdn/chunks/chunk.3MZ7OZSA.js +189 -0
- package/cdn/chunks/chunk.3QRIFYGG.js +175 -0
- package/cdn/chunks/chunk.3T64H6HE.js +27 -0
- package/cdn/chunks/chunk.3XHUQH4I.js +79 -0
- package/cdn/chunks/chunk.3YS5E62V.js +21 -0
- package/cdn/chunks/chunk.3ZG6RGJQ.js +51 -0
- package/cdn/chunks/chunk.4AEYU43S.js +11 -0
- package/cdn/chunks/chunk.4CKEL6FC.js +155 -0
- package/cdn/chunks/chunk.4FP6LF4Q.js +24 -0
- package/cdn/chunks/chunk.4GSOSTXN.js +110 -0
- package/cdn/chunks/chunk.4H4WSGCJ.js +11 -0
- package/cdn/chunks/chunk.4HQFECC3.js +11 -0
- package/cdn/chunks/chunk.4KPHRQ7L.js +11 -0
- package/cdn/chunks/chunk.4KRZJIAJ.js +25 -0
- package/cdn/chunks/chunk.4N2I2AUC.js +25 -0
- package/cdn/chunks/chunk.4VDEW5WY.js +11 -0
- package/cdn/chunks/chunk.4X7K7YCL.js +123 -0
- package/cdn/chunks/chunk.533QXPAJ.js +24 -0
- package/cdn/chunks/chunk.5ETPM5Y2.js +7374 -0
- package/cdn/chunks/chunk.5OSAQTLN.js +11 -0
- package/cdn/chunks/chunk.62S3UIKH.js +25 -0
- package/cdn/chunks/chunk.64FMXGBD.js +24 -0
- package/cdn/chunks/chunk.64S2MHOQ.js +24 -0
- package/cdn/chunks/chunk.65LAI2UR.js +21 -0
- package/cdn/chunks/chunk.664W2L4L.js +25 -0
- package/cdn/chunks/chunk.6DRZMNH2.js +379 -0
- package/cdn/chunks/chunk.6GX7LAZ6.js +61 -0
- package/cdn/chunks/chunk.6JTODBMN.js +109 -0
- package/cdn/chunks/chunk.6NPZKMAQ.js +21 -0
- package/cdn/chunks/chunk.6PQLQZDG.js +21 -0
- package/cdn/chunks/chunk.6UZXCK6P.js +27 -0
- package/cdn/chunks/chunk.6VJJVWDV.js +24 -0
- package/cdn/chunks/chunk.6VRS5QSE.js +87 -0
- package/cdn/chunks/chunk.6WFV6NC7.js +11 -0
- package/cdn/chunks/chunk.6WQO4RV4.js +11 -0
- package/cdn/chunks/chunk.6YC7EQ35.js +11 -0
- package/cdn/chunks/chunk.72QKDL6S.js +29 -0
- package/cdn/chunks/chunk.75RWKQUT.js +11 -0
- package/cdn/chunks/chunk.776A6XOL.js +21 -0
- package/cdn/chunks/chunk.777TVRV7.js +526 -0
- package/cdn/chunks/chunk.77A7ZSJQ.js +24 -0
- package/cdn/chunks/chunk.7D2W6ITA.js +60 -0
- package/cdn/chunks/chunk.7EEJM2ZQ.js +25 -0
- package/cdn/chunks/chunk.7FUWVL5C.js +216 -0
- package/cdn/chunks/chunk.7MQOX762.js +11 -0
- package/cdn/chunks/chunk.7SJRFIU5.js +14 -0
- package/cdn/chunks/chunk.7T7I4NV2.js +24 -0
- package/cdn/chunks/chunk.7X5AEKPB.js +21 -0
- package/cdn/chunks/chunk.7Z2GKZ7U.js +284 -0
- package/cdn/chunks/chunk.7ZU2V7TY.js +73 -0
- package/cdn/chunks/chunk.A5ILMN26.js +26 -0
- package/cdn/chunks/chunk.A653MKCQ.js +215 -0
- package/cdn/chunks/chunk.A7YXFSAI.js +244 -0
- package/cdn/chunks/chunk.AAHHK24C.js +292 -0
- package/cdn/chunks/chunk.ACCQF64E.js +54 -0
- package/cdn/chunks/chunk.ADHBVQOV.js +11 -0
- package/cdn/chunks/chunk.AHYURQKU.js +128 -0
- package/cdn/chunks/chunk.AIA5GESE.js +11 -0
- package/cdn/chunks/chunk.AIOAAHPL.js +291 -0
- package/cdn/chunks/chunk.AK3CJEZE.js +11 -0
- package/cdn/chunks/chunk.ARH726IJ.js +11 -0
- package/cdn/chunks/chunk.ATDEJYPV.js +27 -0
- package/cdn/chunks/chunk.AXVQ6SZ6.js +27 -0
- package/cdn/chunks/chunk.BCVSZ275.js +21 -0
- package/cdn/chunks/chunk.BGMP5UV6.js +21 -0
- package/cdn/chunks/chunk.BHNBRZJI.js +21 -0
- package/cdn/chunks/chunk.BHVQK6BQ.js +11 -0
- package/cdn/chunks/chunk.BIAEK2P3.js +231 -0
- package/cdn/chunks/chunk.BL4LNXNP.js +23 -0
- package/cdn/chunks/chunk.BN5EFUPY.js +153 -0
- package/cdn/chunks/chunk.BNESESDJ.js +11 -0
- package/cdn/chunks/chunk.BQ5RKZFW.js +97 -0
- package/cdn/chunks/chunk.BRSGTB5E.js +26 -0
- package/cdn/chunks/chunk.BRSYXGIF.js +31 -0
- package/cdn/chunks/chunk.BUTJ2U7V.js +822 -0
- package/cdn/chunks/chunk.BXUANFMJ.js +86 -0
- package/cdn/chunks/chunk.BZT6GXXB.js +74 -0
- package/cdn/chunks/chunk.C3NDYXTJ.js +186 -0
- package/cdn/chunks/chunk.CEKIG6XK.js +114 -0
- package/cdn/chunks/chunk.CFBUJD3D.js +77 -0
- package/cdn/chunks/chunk.CFDZMDIP.js +11 -0
- package/cdn/chunks/chunk.CHLAO5QM.js +365 -0
- package/cdn/chunks/chunk.CSR56J6P.js +63 -0
- package/cdn/chunks/chunk.CUQWZ7IO.js +114 -0
- package/cdn/chunks/chunk.D623GSPR.js +29 -0
- package/cdn/chunks/chunk.DBN7GJ5T.js +0 -0
- package/cdn/chunks/chunk.DG3F6OPU.js +136 -0
- package/cdn/chunks/chunk.DJAGMFXZ.js +11 -0
- package/cdn/chunks/chunk.DKLBJEHD.js +1990 -0
- package/cdn/chunks/chunk.DL22TL4C.js +53 -0
- package/cdn/chunks/chunk.DN35DSU5.js +218 -0
- package/cdn/chunks/chunk.DOGB5EZC.js +127 -0
- package/cdn/chunks/chunk.DTQ34BNA.js +29 -0
- package/cdn/chunks/chunk.DUNTCPCC.js +11 -0
- package/cdn/chunks/chunk.E3KU5ZUQ.js +93 -0
- package/cdn/chunks/chunk.EGWQFRSJ.js +11 -0
- package/cdn/chunks/chunk.ENDE6WDK.js +21 -0
- package/cdn/chunks/chunk.ENXY5MW5.js +11 -0
- package/cdn/chunks/chunk.EPTIPCYK.js +14 -0
- package/cdn/chunks/chunk.EQDPX25E.js +313 -0
- package/cdn/chunks/chunk.EY32EKVK.js +197 -0
- package/cdn/chunks/chunk.FAOO3Q67.js +1254 -0
- package/cdn/chunks/chunk.FEOPEHU4.js +113 -0
- package/cdn/chunks/chunk.FEYPR3WK.js +236 -0
- package/cdn/chunks/chunk.FMPFP5OE.js +11 -0
- package/cdn/chunks/chunk.FPMCB7RB.js +11 -0
- package/cdn/chunks/chunk.FRIKNHQQ.js +24 -0
- package/cdn/chunks/chunk.FW2R4W7A.js +23 -0
- package/cdn/chunks/chunk.FWXONNTU.js +11 -0
- package/cdn/chunks/chunk.FXYNQXOM.js +236 -0
- package/cdn/chunks/chunk.G2AWY2X3.js +29 -0
- package/cdn/chunks/chunk.GBSEWAX5.js +1514 -0
- package/cdn/chunks/chunk.GFQ55FWN.js +605 -0
- package/cdn/chunks/chunk.GJM3XXA5.js +29 -0
- package/cdn/chunks/chunk.GPKB5FKJ.js +11 -0
- package/cdn/chunks/chunk.GYT4NP7F.js +173 -0
- package/cdn/chunks/chunk.GZVEWZ6S.js +11 -0
- package/cdn/chunks/chunk.H3ZSW3ML.js +49 -0
- package/cdn/chunks/chunk.H7LVX6WK.js +11 -0
- package/cdn/chunks/chunk.HDUGD4BT.js +341 -0
- package/cdn/chunks/chunk.HFE2EELD.js +42 -0
- package/cdn/chunks/chunk.HFTRIX4T.js +21 -0
- package/cdn/chunks/chunk.HH7XVAMC.js +21 -0
- package/cdn/chunks/chunk.HIHQQRTZ.js +219 -0
- package/cdn/chunks/chunk.HIUGXXPV.js +75 -0
- package/cdn/chunks/chunk.HIVDROBU.js +78 -0
- package/cdn/chunks/chunk.HKXJFZT6.js +85 -0
- package/cdn/chunks/chunk.HMZIA6TS.js +21 -0
- package/cdn/chunks/chunk.HNN73HJU.js +1204 -0
- package/cdn/chunks/chunk.HSTYCTCO.js +1925 -0
- package/cdn/chunks/chunk.I7QQDK7H.js +11 -0
- package/cdn/chunks/chunk.IF3S5BNR.js +11 -0
- package/cdn/chunks/chunk.IGSMYZPJ.js +331 -0
- package/cdn/chunks/chunk.IKZ55ATB.js +24 -0
- package/cdn/chunks/chunk.IRYXSPFS.js +449 -0
- package/cdn/chunks/chunk.IS65YVZ6.js +28 -0
- package/cdn/chunks/chunk.IU5X6EHL.js +25 -0
- package/cdn/chunks/chunk.IXK74NKY.js +25 -0
- package/cdn/chunks/chunk.J5EDZ3U4.js +276 -0
- package/cdn/chunks/chunk.J5NOE5GV.js +11 -0
- package/cdn/chunks/chunk.JC7NCTV3.js +450 -0
- package/cdn/chunks/chunk.JGJ34IDV.js +21 -0
- package/cdn/chunks/chunk.JLYEN6KY.js +11 -0
- package/cdn/chunks/chunk.JNFUW4AH.js +402 -0
- package/cdn/chunks/chunk.JQ4PA5RC.js +57 -0
- package/cdn/chunks/chunk.JRBS3ASB.js +98 -0
- package/cdn/chunks/chunk.JS5UK2QZ.js +21 -0
- package/cdn/chunks/chunk.JUQYB3HO.js +67 -0
- package/cdn/chunks/chunk.JVTUZMLX.js +24 -0
- package/cdn/chunks/chunk.JYH4JK7N.js +199 -0
- package/cdn/chunks/chunk.K5W33AST.js +11 -0
- package/cdn/chunks/chunk.K6K4CAJF.js +14 -0
- package/cdn/chunks/chunk.K72KXZIJ.js +11 -0
- package/cdn/chunks/chunk.K7FKD6TO.js +28 -0
- package/cdn/chunks/chunk.KP4WXHNO.js +510 -0
- package/cdn/chunks/chunk.KZPHPOTS.js +159 -0
- package/cdn/chunks/chunk.L27ZP5M3.js +455 -0
- package/cdn/chunks/chunk.L3QFFKRU.js +82 -0
- package/cdn/chunks/chunk.L5OY2FXM.js +220 -0
- package/cdn/chunks/chunk.L74RGBMJ.js +11 -0
- package/cdn/chunks/chunk.LFC2N2WU.js +21 -0
- package/cdn/chunks/chunk.LHTAA75I.js +246 -0
- package/cdn/chunks/chunk.LPQC544M.js +286 -0
- package/cdn/chunks/chunk.LTE22HHW.js +58 -0
- package/cdn/chunks/chunk.LWCF42NJ.js +101 -0
- package/cdn/chunks/chunk.M3D74BA7.js +11 -0
- package/cdn/chunks/chunk.M4S2IRFM.js +11 -0
- package/cdn/chunks/chunk.MANY2TRV.js +11 -0
- package/cdn/chunks/chunk.MBG6QE66.js +123 -0
- package/cdn/chunks/chunk.MDQYJZQS.js +21 -0
- package/cdn/chunks/chunk.MNVFGKFA.js +63 -0
- package/cdn/chunks/chunk.MNYYGL2G.js +11 -0
- package/cdn/chunks/chunk.MOV5RV53.js +21 -0
- package/cdn/chunks/chunk.MV3GXPPX.js +68 -0
- package/cdn/chunks/chunk.MVBM42IW.js +11 -0
- package/cdn/chunks/chunk.N2OQN5XQ.js +233 -0
- package/cdn/chunks/chunk.N5NZNXBO.js +133 -0
- package/cdn/chunks/chunk.N7W7BBNU.js +285 -0
- package/cdn/chunks/chunk.NCEQSEUX.js +70 -0
- package/cdn/chunks/chunk.NISAAN5X.js +36 -0
- package/cdn/chunks/chunk.NQA7X2TY.js +11 -0
- package/cdn/chunks/chunk.NUAUGRF4.js +11 -0
- package/cdn/chunks/chunk.NVO6AEKX.js +191 -0
- package/cdn/chunks/chunk.OAJJWRFV.js +128 -0
- package/cdn/chunks/chunk.OCJROKVC.js +11 -0
- package/cdn/chunks/chunk.ODCA53YM.js +11 -0
- package/cdn/chunks/chunk.OHEL4NP5.js +120 -0
- package/cdn/chunks/chunk.OIZLY4BL.js +79 -0
- package/cdn/chunks/chunk.OJXBTTLD.js +19 -0
- package/cdn/chunks/chunk.OKEGJW6Y.js +118 -0
- package/cdn/chunks/chunk.OLWRED2T.js +11 -0
- package/cdn/chunks/chunk.OOBXN2HS.js +77 -0
- package/cdn/chunks/chunk.OREJRTGE.js +243 -0
- package/cdn/chunks/chunk.ORT5WHZ4.js +25 -0
- package/cdn/chunks/chunk.OSXVD4NI.js +21 -0
- package/cdn/chunks/chunk.OTJQYRCF.js +21 -0
- package/cdn/chunks/chunk.OVNPI46I.js +126 -0
- package/cdn/chunks/chunk.OXQMELDN.js +21 -0
- package/cdn/chunks/chunk.P7E5JMGZ.js +11 -0
- package/cdn/chunks/chunk.P7TUEL7V.js +11 -0
- package/cdn/chunks/chunk.PA3KILKI.js +11 -0
- package/cdn/chunks/chunk.PKSX66KO.js +11 -0
- package/cdn/chunks/chunk.PLPY7MLS.js +25 -0
- package/cdn/chunks/chunk.PQBJJVTL.js +76 -0
- package/cdn/chunks/chunk.PRUWH44M.js +25 -0
- package/cdn/chunks/chunk.PYAAWKTU.js +19 -0
- package/cdn/chunks/chunk.PZ27563L.js +192 -0
- package/cdn/chunks/chunk.PZIGA4BO.js +66 -0
- package/cdn/chunks/chunk.QB7U2EQ7.js +21 -0
- package/cdn/chunks/chunk.QHLGXENI.js +367 -0
- package/cdn/chunks/chunk.QIAK5LS3.js +24 -0
- package/cdn/chunks/chunk.QJL7UWET.js +162 -0
- package/cdn/chunks/chunk.QLJKUNE5.js +37 -0
- package/cdn/chunks/chunk.QM45FXEX.js +26 -0
- package/cdn/chunks/chunk.QRPICAKD.js +11 -0
- package/cdn/chunks/chunk.QT6GUJBT.js +158 -0
- package/cdn/chunks/chunk.QXEX7QEQ.js +21 -0
- package/cdn/chunks/chunk.R2JQXSFE.js +279 -0
- package/cdn/chunks/chunk.R3D5A2FU.js +24 -0
- package/cdn/chunks/chunk.R5IAUO4U.js +14 -0
- package/cdn/chunks/chunk.RB2K6RHI.js +11 -0
- package/cdn/chunks/chunk.RBLNSGJA.js +21 -0
- package/cdn/chunks/chunk.RD4VINFB.js +11 -0
- package/cdn/chunks/chunk.REVFQ5XX.js +95 -0
- package/cdn/chunks/chunk.RGMJBCXA.js +30 -0
- package/cdn/chunks/chunk.RN2Q4HOE.js +25 -0
- package/cdn/chunks/chunk.ROEAW3OD.js +11 -0
- package/cdn/chunks/chunk.S23U5OGR.js +11 -0
- package/cdn/chunks/chunk.S2ZNUNYX.js +11 -0
- package/cdn/chunks/chunk.S62ORFAR.js +255 -0
- package/cdn/chunks/chunk.SDRTJBSH.js +312 -0
- package/cdn/chunks/chunk.SOLBN27G.js +73 -0
- package/cdn/chunks/chunk.SVU72MOF.js +28 -0
- package/cdn/chunks/chunk.SZPAK4FL.js +81 -0
- package/cdn/chunks/chunk.T7N3H4OU.js +11 -0
- package/cdn/chunks/chunk.TBAIOEWZ.js +42 -0
- package/cdn/chunks/chunk.TBG5G4ET.js +21 -0
- package/cdn/chunks/chunk.TCDIALPO.js +24 -0
- package/cdn/chunks/chunk.TELBSIWY.js +67 -0
- package/cdn/chunks/chunk.TGZRAX7P.js +346 -0
- package/cdn/chunks/chunk.TGZZ2TNN.js +50 -0
- package/cdn/chunks/chunk.THSWUAPU.js +117 -0
- package/cdn/chunks/chunk.TNQRIWXJ.js +51 -0
- package/cdn/chunks/chunk.TQD7QAVQ.js +263 -0
- package/cdn/chunks/chunk.TWOCTPT4.js +71 -0
- package/cdn/chunks/chunk.UA3JM7ZK.js +11 -0
- package/cdn/chunks/chunk.UIHVKFQ4.js +177 -0
- package/cdn/chunks/chunk.UJSGSINK.js +27 -0
- package/cdn/chunks/chunk.UK67OQX4.js +11 -0
- package/cdn/chunks/chunk.UKLPQIYL.js +235 -0
- package/cdn/chunks/chunk.UL2RQS4N.js +24 -0
- package/cdn/chunks/chunk.ULJSHWM3.js +305 -0
- package/cdn/chunks/chunk.UXA3423R.js +28 -0
- package/cdn/chunks/chunk.UXGLUGIV.js +2633 -0
- package/cdn/chunks/chunk.VASGIW4T.js +22 -0
- package/cdn/chunks/chunk.VBV7G2UF.js +5845 -0
- package/cdn/chunks/chunk.VCCYYUGH.js +271 -0
- package/cdn/chunks/chunk.VE2ZQBZZ.js +58 -0
- package/cdn/chunks/chunk.VHD6KPB4.js +11 -0
- package/cdn/chunks/chunk.VJXJ24OK.js +11 -0
- package/cdn/chunks/chunk.VKO6US6U.js +371 -0
- package/cdn/chunks/chunk.VOQLGX6E.js +30 -0
- package/cdn/chunks/chunk.VROEJ7B7.js +11 -0
- package/cdn/chunks/chunk.VRSGP44Y.js +26 -0
- package/cdn/chunks/chunk.VU4ZS5DE.js +11 -0
- package/cdn/chunks/chunk.VVM2WFCF.js +27 -0
- package/cdn/chunks/chunk.VXY6IJM2.js +33 -0
- package/cdn/chunks/chunk.VZWAOU6O.js +26 -0
- package/cdn/chunks/chunk.W2JTEAS7.js +215 -0
- package/cdn/chunks/chunk.W5B22CS4.js +11 -0
- package/cdn/chunks/chunk.W6FFUGXP.js +142 -0
- package/cdn/chunks/chunk.WAY7563T.js +11 -0
- package/cdn/chunks/chunk.WFGZ25EF.js +302 -0
- package/cdn/chunks/chunk.WFS2ZW2B.js +27 -0
- package/cdn/chunks/chunk.WMRVFLJY.js +103 -0
- package/cdn/chunks/chunk.WNTRO4HX.js +684 -0
- package/cdn/chunks/chunk.WO7NUYTE.js +103 -0
- package/cdn/chunks/chunk.WOFY6UAP.js +110 -0
- package/cdn/chunks/chunk.WP3ZMSVT.js +29 -0
- package/cdn/chunks/chunk.WSNHPA4G.js +24 -0
- package/cdn/chunks/chunk.WT5BNBAS.js +24 -0
- package/cdn/chunks/chunk.XAVYUQQG.js +175 -0
- package/cdn/chunks/chunk.XB6JEHTC.js +16 -0
- package/cdn/chunks/chunk.XCZ57DS7.js +29 -0
- package/cdn/chunks/chunk.XDXT7NSR.js +21 -0
- package/cdn/chunks/chunk.XH2TR6UF.js +23 -0
- package/cdn/chunks/chunk.XLNV2YNC.js +391 -0
- package/cdn/chunks/chunk.XPSRGG4H.js +21 -0
- package/cdn/chunks/chunk.XTAHM4Z5.js +354 -0
- package/cdn/chunks/chunk.XVS7BFTA.js +1268 -0
- package/cdn/chunks/chunk.XWGQQ6NF.js +11 -0
- package/cdn/chunks/chunk.XYPOICQT.js +14 -0
- package/cdn/chunks/chunk.Y2Y2VQLM.js +42 -0
- package/cdn/chunks/chunk.YA6XZYWF.js +75 -0
- package/cdn/chunks/chunk.YB77SADY.js +11 -0
- package/cdn/chunks/chunk.YHGPKOXY.js +11 -0
- package/cdn/chunks/chunk.YHRSHDUN.js +137 -0
- package/cdn/chunks/chunk.YIM2BUEB.js +269 -0
- package/cdn/chunks/chunk.YJL3SPDD.js +24 -0
- package/cdn/chunks/chunk.YJU73B6Y.js +11 -0
- package/cdn/chunks/chunk.YNISPACI.js +343 -0
- package/cdn/chunks/chunk.YOVO5FAJ.js +93 -0
- package/cdn/chunks/chunk.YOWALB6A.js +587 -0
- package/cdn/chunks/chunk.YUA64KZ4.js +49 -0
- package/cdn/chunks/chunk.YWZB7GE3.js +122 -0
- package/cdn/chunks/chunk.YYH4UGAY.js +92 -0
- package/cdn/chunks/chunk.Z3Z4ETP5.js +11 -0
- package/cdn/chunks/chunk.ZAJIZ63T.js +724 -0
- package/cdn/chunks/chunk.ZLKEMKLZ.js +47 -0
- package/cdn/chunks/chunk.ZNCN2NE6.js +186 -0
- package/cdn/chunks/chunk.ZNIGUQLJ.js +135 -0
- package/cdn/chunks/chunk.ZPQFNTKC.js +586 -0
- package/cdn/chunks/chunk.ZZORTNQU.js +78 -0
- package/cdn/components/alert/alert.component.js +16 -15
- package/cdn/components/alert/alert.js +17 -16
- package/cdn/components/alert/alert.styles.js +3 -2
- package/cdn/components/animated-image/animated-image.component.js +10 -9
- package/cdn/components/animated-image/animated-image.js +11 -10
- package/cdn/components/animated-image/animated-image.styles.js +3 -2
- package/cdn/components/animation/animation.component.js +6 -5
- package/cdn/components/animation/animation.js +7 -6
- package/cdn/components/animation/animation.styles.js +3 -2
- package/cdn/components/avatar/avatar.component.js +12 -11
- package/cdn/components/avatar/avatar.js +13 -12
- package/cdn/components/avatar/avatar.styles.js +3 -2
- package/cdn/components/badge/badge.component.js +7 -6
- package/cdn/components/badge/badge.js +8 -7
- package/cdn/components/badge/badge.styles.js +3 -2
- package/cdn/components/breadcrumb/breadcrumb.component.js +10 -9
- package/cdn/components/breadcrumb/breadcrumb.js +11 -10
- package/cdn/components/breadcrumb/breadcrumb.styles.js +3 -2
- package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +8 -7
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +9 -8
- package/cdn/components/breadcrumb-item/breadcrumb-item.styles.js +3 -2
- package/cdn/components/button/button.component.js +16 -15
- package/cdn/components/button/button.js +17 -16
- package/cdn/components/button/button.styles.js +3 -2
- package/cdn/components/button-group/button-group.component.js +6 -5
- package/cdn/components/button-group/button-group.js +7 -6
- package/cdn/components/button-group/button-group.styles.js +3 -2
- package/cdn/components/calendar/calendar.component.js +19 -18
- package/cdn/components/calendar/calendar.js +19 -18
- package/cdn/components/card/card.component.js +7 -6
- package/cdn/components/card/card.js +8 -7
- package/cdn/components/card/card.styles.js +3 -2
- package/cdn/components/carousel/carousel.component.js +12 -11
- package/cdn/components/carousel/carousel.js +13 -12
- package/cdn/components/carousel/carousel.styles.js +3 -2
- package/cdn/components/carousel-item/carousel-item.component.js +6 -5
- package/cdn/components/carousel-item/carousel-item.js +7 -6
- package/cdn/components/carousel-item/carousel-item.styles.js +3 -2
- package/cdn/components/checkbox/checkbox.component.js +15 -14
- package/cdn/components/checkbox/checkbox.js +16 -15
- package/cdn/components/checkbox/checkbox.styles.js +3 -2
- package/cdn/components/col/col.component.js +6 -5
- package/cdn/components/col/col.js +7 -6
- package/cdn/components/col/col.styles.js +3 -2
- package/cdn/components/color-picker/color-picker.component.js +31 -30
- package/cdn/components/color-picker/color-picker.js +32 -31
- package/cdn/components/color-picker/color-picker.styles.js +3 -2
- package/cdn/components/copy-button/copy-button.component.js +16 -15
- package/cdn/components/copy-button/copy-button.js +17 -16
- package/cdn/components/copy-button/copy-button.styles.js +3 -2
- package/cdn/components/date-panel/date-panel.component.js +25 -24
- package/cdn/components/date-panel/date-panel.js +25 -24
- package/cdn/components/date-panel/date-panel.styles.js +3 -2
- package/cdn/components/datepicker/datepicker.component.js +33 -32
- package/cdn/components/datepicker/datepicker.js +33 -32
- package/cdn/components/daterangepicker/daterangepicker.component.js +25 -24
- package/cdn/components/daterangepicker/daterangepicker.js +26 -25
- package/cdn/components/daterangepicker/daterangepicker.styles.js +3 -2
- package/cdn/components/details/details.component.js +12 -11
- package/cdn/components/details/details.js +13 -12
- package/cdn/components/details/details.styles.js +3 -2
- package/cdn/components/dialog/dialog.component.js +16 -15
- package/cdn/components/dialog/dialog.js +17 -16
- package/cdn/components/dialog/dialog.styles.js +3 -2
- package/cdn/components/divider/divider.component.js +6 -5
- package/cdn/components/divider/divider.js +7 -6
- package/cdn/components/divider/divider.styles.js +3 -2
- package/cdn/components/drawer/drawer.component.js +16 -15
- package/cdn/components/drawer/drawer.js +17 -16
- package/cdn/components/drawer/drawer.styles.js +3 -2
- package/cdn/components/dropdown/dropdown.component.js +10 -9
- package/cdn/components/dropdown/dropdown.js +11 -10
- package/cdn/components/dropdown/dropdown.styles.js +3 -2
- package/cdn/components/format-bytes/format-bytes.component.js +4 -3
- package/cdn/components/format-bytes/format-bytes.js +5 -4
- package/cdn/components/format-date/format-date.component.js +4 -3
- package/cdn/components/format-date/format-date.js +5 -4
- package/cdn/components/format-number/format-number.component.js +4 -3
- package/cdn/components/format-number/format-number.js +5 -4
- package/cdn/components/icon/icon.component.js +8 -7
- package/cdn/components/icon/icon.js +9 -8
- package/cdn/components/icon/icon.styles.js +3 -2
- package/cdn/components/icon-button/icon-button.component.js +14 -13
- package/cdn/components/icon-button/icon-button.js +15 -14
- package/cdn/components/icon-button/icon-button.styles.js +3 -2
- package/cdn/components/image-comparer/image-comparer.component.js +13 -12
- package/cdn/components/image-comparer/image-comparer.js +14 -13
- package/cdn/components/image-comparer/image-comparer.styles.js +3 -2
- package/cdn/components/include/include.component.js +6 -5
- package/cdn/components/include/include.js +7 -6
- package/cdn/components/include/include.styles.js +3 -2
- package/cdn/components/input/input.component.js +15 -14
- package/cdn/components/input/input.js +16 -15
- package/cdn/components/input/input.styles.js +3 -2
- package/cdn/components/menu/menu.component.js +6 -5
- package/cdn/components/menu/menu.js +7 -6
- package/cdn/components/menu/menu.styles.js +3 -2
- package/cdn/components/menu-item/menu-item.component.js +18 -17
- package/cdn/components/menu-item/menu-item.js +19 -18
- package/cdn/components/menu-item/menu-item.styles.js +3 -2
- package/cdn/components/menu-item/submenu-controller.js +5 -4
- package/cdn/components/menu-label/menu-label.component.js +6 -5
- package/cdn/components/menu-label/menu-label.js +7 -6
- package/cdn/components/menu-label/menu-label.styles.js +3 -2
- package/cdn/components/mutation-observer/mutation-observer.component.js +6 -5
- package/cdn/components/mutation-observer/mutation-observer.js +7 -6
- package/cdn/components/mutation-observer/mutation-observer.styles.js +3 -2
- package/cdn/components/nav/nav.component.js +22 -21
- package/cdn/components/nav/nav.js +23 -22
- package/cdn/components/nav/nav.styles.js +4 -3
- package/cdn/components/nav-group/nav-group.component.js +6 -5
- package/cdn/components/nav-group/nav-group.js +7 -6
- package/cdn/components/nav-group/nav-group.styles.js +4 -3
- package/cdn/components/nav-item/nav-item.component.js +7 -6
- package/cdn/components/nav-item/nav-item.js +8 -7
- package/cdn/components/nav-item/nav-item.styles.js +4 -3
- package/cdn/components/nav-submenu/nav-submenu.component.js +14 -13
- package/cdn/components/nav-submenu/nav-submenu.js +15 -14
- package/cdn/components/nav-submenu/nav-submenu.styles.js +4 -3
- package/cdn/components/option/option.component.js +12 -11
- package/cdn/components/option/option.js +13 -12
- package/cdn/components/option/option.styles.js +3 -2
- package/cdn/components/pagination/custom-select.js +24 -23
- package/cdn/components/pagination/pagination.component.js +26 -25
- package/cdn/components/pagination/pagination.js +26 -25
- package/cdn/components/pagination/pagination.styles.js +3 -2
- package/cdn/components/popup/popup.component.js +7 -6
- package/cdn/components/popup/popup.js +8 -7
- package/cdn/components/popup/popup.styles.js +3 -2
- package/cdn/components/progress-bar/progress-bar.component.js +9 -8
- package/cdn/components/progress-bar/progress-bar.js +10 -9
- package/cdn/components/progress-bar/progress-bar.styles.js +3 -2
- package/cdn/components/progress-ring/progress-ring.component.js +6 -5
- package/cdn/components/progress-ring/progress-ring.js +7 -6
- package/cdn/components/progress-ring/progress-ring.styles.js +3 -2
- package/cdn/components/qr-code/qr-code.component.js +7 -6
- package/cdn/components/qr-code/qr-code.js +8 -7
- package/cdn/components/qr-code/qr-code.styles.js +3 -2
- package/cdn/components/radio/radio.component.js +12 -11
- package/cdn/components/radio/radio.js +13 -12
- package/cdn/components/radio/radio.styles.js +3 -2
- package/cdn/components/radio-button/radio-button.component.js +10 -9
- package/cdn/components/radio-button/radio-button.js +11 -10
- package/cdn/components/radio-button/radio-button.styles.js +4 -3
- package/cdn/components/radio-group/radio-group.component.js +10 -9
- package/cdn/components/radio-group/radio-group.js +11 -10
- package/cdn/components/radio-group/radio-group.styles.js +3 -2
- package/cdn/components/range/range.component.js +11 -10
- package/cdn/components/range/range.js +12 -11
- package/cdn/components/range/range.styles.js +3 -2
- package/cdn/components/rating/rating.component.js +14 -13
- package/cdn/components/rating/rating.js +15 -14
- package/cdn/components/rating/rating.styles.js +3 -2
- package/cdn/components/relative-time/relative-time.component.js +4 -3
- package/cdn/components/relative-time/relative-time.js +5 -4
- package/cdn/components/resize-observer/resize-observer.component.js +6 -5
- package/cdn/components/resize-observer/resize-observer.js +7 -6
- package/cdn/components/resize-observer/resize-observer.styles.js +3 -2
- package/cdn/components/row/row.component.js +8 -7
- package/cdn/components/row/row.js +9 -8
- package/cdn/components/row/row.styles.js +3 -2
- package/cdn/components/screen/gridstack.styles.js +3 -2
- package/cdn/components/screen/screen.component.js +7 -6
- package/cdn/components/screen/screen.js +8 -7
- package/cdn/components/screen/screen.styles.js +3 -2
- package/cdn/components/select/select.component.js +22 -21
- package/cdn/components/select/select.js +23 -22
- package/cdn/components/select/select.styles.js +3 -2
- package/cdn/components/skeleton/skeleton.component.js +7 -6
- package/cdn/components/skeleton/skeleton.js +8 -7
- package/cdn/components/skeleton/skeleton.styles.js +3 -2
- package/cdn/components/spinner/spinner.component.js +6 -5
- package/cdn/components/spinner/spinner.js +7 -6
- package/cdn/components/spinner/spinner.styles.js +3 -2
- package/cdn/components/split-panel/split-panel.component.js +7 -6
- package/cdn/components/split-panel/split-panel.js +8 -7
- package/cdn/components/split-panel/split-panel.styles.js +3 -2
- package/cdn/components/switch/switch.component.js +11 -10
- package/cdn/components/switch/switch.js +12 -11
- package/cdn/components/switch/switch.styles.js +3 -2
- package/cdn/components/tab/tab.component.js +16 -15
- package/cdn/components/tab/tab.js +17 -16
- package/cdn/components/tab/tab.styles.js +3 -2
- package/cdn/components/tab-group/tab-group.component.js +18 -17
- package/cdn/components/tab-group/tab-group.js +19 -18
- package/cdn/components/tab-group/tab-group.styles.js +3 -2
- package/cdn/components/tab-panel/tab-panel.component.js +7 -6
- package/cdn/components/tab-panel/tab-panel.js +8 -7
- package/cdn/components/tab-panel/tab-panel.styles.js +3 -2
- package/cdn/components/table/body-table.js +13 -12
- package/cdn/components/table/col-group.js +4 -3
- package/cdn/components/table/features/index.js +12 -9
- package/cdn/components/table/features/row-drag-controller.js +5 -4
- package/cdn/components/table/features/row-drag.js +3 -2
- package/cdn/components/table/features/row-expend.js +3 -2
- package/cdn/components/table/features/row-selection.js +5 -2
- package/cdn/components/table/features/tree-table.js +1 -1
- package/cdn/components/table/head-table.js +43 -42
- package/cdn/components/table/spinner-container.js +4 -3
- package/cdn/components/table/table.component.js +60 -59
- package/cdn/components/table/table.js +62 -61
- package/cdn/components/tag/tag.component.js +16 -15
- package/cdn/components/tag/tag.js +17 -16
- package/cdn/components/tag/tag.styles.js +3 -2
- package/cdn/components/textarea/textarea.component.js +11 -10
- package/cdn/components/textarea/textarea.js +12 -11
- package/cdn/components/textarea/textarea.styles.js +3 -2
- package/cdn/components/think/think.component.js +14 -13
- package/cdn/components/think/think.js +15 -14
- package/cdn/components/think/think.styles.js +3 -2
- package/cdn/components/thought-chain/thought-chain.component.js +6 -5
- package/cdn/components/thought-chain/thought-chain.js +7 -6
- package/cdn/components/thought-chain/thought-chain.styles.js +3 -2
- package/cdn/components/thought-chain-item/thought-chain-item.component.js +14 -13
- package/cdn/components/thought-chain-item/thought-chain-item.js +15 -14
- package/cdn/components/thought-chain-item/thought-chain-item.styles.js +3 -2
- package/cdn/components/thought-chain-node/thought-chain-node.component.js +14 -13
- package/cdn/components/thought-chain-node/thought-chain-node.js +15 -14
- package/cdn/components/thought-chain-node/thought-chain-node.styles.js +3 -2
- package/cdn/components/time-panel/time-panel.component.js +18 -17
- package/cdn/components/time-panel/time-panel.js +18 -17
- package/cdn/components/time-panel/time-panel.styles.js +3 -2
- package/cdn/components/timepicker/timepicker.component.js +34 -33
- package/cdn/components/timepicker/timepicker.js +34 -33
- package/cdn/components/timepicker/timepicker.styles.js +3 -2
- package/cdn/components/tooltip/tooltip.component.js +9 -8
- package/cdn/components/tooltip/tooltip.js +10 -9
- package/cdn/components/tooltip/tooltip.styles.js +3 -2
- package/cdn/components/tree/tree.component.js +21 -20
- package/cdn/components/tree/tree.js +22 -21
- package/cdn/components/tree/tree.styles.js +3 -2
- package/cdn/components/tree-item/tree-item.component.js +19 -18
- package/cdn/components/tree-item/tree-item.js +20 -19
- package/cdn/components/tree-item/tree-item.styles.js +3 -2
- package/cdn/components/visually-hidden/visually-hidden.component.js +6 -5
- package/cdn/components/visually-hidden/visually-hidden.js +7 -6
- package/cdn/components/visually-hidden/visually-hidden.styles.js +3 -2
- package/cdn/components/x-markdown/markdown/components.js +16 -0
- package/cdn/components/x-markdown/markdown/highlight.js +7 -0
- package/cdn/components/x-markdown/markdown/parser.js +7 -0
- package/cdn/components/x-markdown/markdown/render.js +17 -0
- package/cdn/components/x-markdown/markdown/streaming.js +7 -0
- package/cdn/components/x-markdown/markdown/types.js +1 -0
- package/cdn/components/x-markdown/x-markdown.component.js +23 -0
- package/cdn/components/x-markdown/x-markdown.js +25 -0
- package/cdn/components/x-markdown/x-markdown.styles.js +9 -0
- package/cdn/custom-elements.json +3190 -2848
- package/cdn/react/alert/index.js +17 -16
- package/cdn/react/animated-image/index.js +11 -10
- package/cdn/react/animation/index.js +7 -6
- package/cdn/react/avatar/index.js +13 -12
- package/cdn/react/badge/index.js +8 -7
- package/cdn/react/breadcrumb/index.js +11 -10
- package/cdn/react/breadcrumb-item/index.js +9 -8
- package/cdn/react/button/index.js +17 -16
- package/cdn/react/button-group/index.js +7 -6
- package/cdn/react/card/index.js +8 -7
- package/cdn/react/carousel/index.js +13 -12
- package/cdn/react/carousel-item/index.js +7 -6
- package/cdn/react/checkbox/index.js +16 -15
- package/cdn/react/col/index.js +7 -6
- package/cdn/react/color-picker/index.js +32 -31
- package/cdn/react/copy-button/index.js +17 -16
- package/cdn/react/date-panel/index.js +26 -25
- package/cdn/react/datepicker/index.js +34 -33
- package/cdn/react/daterangepicker/index.js +26 -25
- package/cdn/react/details/index.js +13 -12
- package/cdn/react/dialog/index.js +17 -16
- package/cdn/react/divider/index.js +7 -6
- package/cdn/react/drawer/index.js +17 -16
- package/cdn/react/dropdown/index.js +11 -10
- package/cdn/react/format-bytes/index.js +5 -4
- package/cdn/react/format-date/index.js +5 -4
- package/cdn/react/format-number/index.js +5 -4
- package/cdn/react/icon/index.js +9 -8
- package/cdn/react/icon-button/index.js +15 -14
- package/cdn/react/image-comparer/index.js +14 -13
- package/cdn/react/include/index.js +7 -6
- package/cdn/react/index.js +311 -299
- package/cdn/react/input/index.js +16 -15
- package/cdn/react/menu/index.js +7 -6
- package/cdn/react/menu-item/index.js +19 -18
- package/cdn/react/menu-label/index.js +7 -6
- package/cdn/react/mutation-observer/index.js +7 -6
- package/cdn/react/nav/index.js +23 -22
- package/cdn/react/nav-group/index.js +7 -6
- package/cdn/react/nav-item/index.js +8 -7
- package/cdn/react/nav-submenu/index.js +15 -14
- package/cdn/react/option/index.js +13 -12
- package/cdn/react/pagination/index.js +27 -26
- package/cdn/react/popup/index.js +8 -7
- package/cdn/react/progress-bar/index.js +10 -9
- package/cdn/react/progress-ring/index.js +7 -6
- package/cdn/react/qr-code/index.js +8 -7
- package/cdn/react/radio/index.js +13 -12
- package/cdn/react/radio-button/index.js +11 -10
- package/cdn/react/radio-group/index.js +11 -10
- package/cdn/react/range/index.js +12 -11
- package/cdn/react/rating/index.js +15 -14
- package/cdn/react/relative-time/index.js +5 -4
- package/cdn/react/resize-observer/index.js +7 -6
- package/cdn/react/row/index.js +9 -8
- package/cdn/react/screen/index.js +8 -7
- package/cdn/react/select/index.js +23 -22
- package/cdn/react/skeleton/index.js +8 -7
- package/cdn/react/spinner/index.js +7 -6
- package/cdn/react/split-panel/index.js +8 -7
- package/cdn/react/switch/index.js +12 -11
- package/cdn/react/tab/index.js +17 -16
- package/cdn/react/tab-group/index.js +19 -18
- package/cdn/react/tab-panel/index.js +8 -7
- package/cdn/react/table/index.js +61 -60
- package/cdn/react/tag/index.js +17 -16
- package/cdn/react/textarea/index.js +12 -11
- package/cdn/react/think/index.js +15 -14
- package/cdn/react/thought-chain/index.js +7 -6
- package/cdn/react/thought-chain-item/index.js +15 -14
- package/cdn/react/thought-chain-node/index.js +15 -14
- package/cdn/react/timepicker/index.js +35 -34
- package/cdn/react/tooltip/index.js +10 -9
- package/cdn/react/tree/index.js +22 -21
- package/cdn/react/tree-item/index.js +20 -19
- package/cdn/react/visually-hidden/index.js +7 -6
- package/cdn/react/x-markdown/index.js +24 -0
- package/cdn/shoelace.js +310 -297
- package/cdn/types/vue/index.d.ts +487 -434
- package/cdn/vscode.html-custom-data.json +311 -274
- package/cdn/web-types.json +1049 -962
- package/dist/chunks/chunk.2AGMSWQ3.js +24 -0
- package/dist/chunks/chunk.2AQN4JQJ.js +230 -0
- package/dist/chunks/chunk.2B6SZPSB.js +11 -0
- package/dist/chunks/chunk.2GEKAE7B.js +21 -0
- package/dist/chunks/chunk.2HWAAINE.js +24 -0
- package/dist/chunks/chunk.2I5NSDA3.js +50 -0
- package/dist/chunks/chunk.2JBERLVD.js +42 -0
- package/dist/chunks/chunk.2KIO3HAG.js +25 -0
- package/dist/chunks/chunk.2XKG643M.js +11 -0
- package/dist/chunks/chunk.2XVFEHSO.js +361 -0
- package/dist/chunks/chunk.3EOJVTR3.js +299 -0
- package/dist/chunks/chunk.3JH4YGTR.js +11 -0
- package/dist/chunks/chunk.3MHYIUMZ.js +11 -0
- package/dist/chunks/chunk.3MI6FFND.js +280 -0
- package/dist/chunks/chunk.3OVZFWLQ.js +90 -0
- package/dist/chunks/chunk.3U2YGNEM.js +11 -0
- package/dist/chunks/chunk.3W5WAOJN.js +28 -0
- package/dist/chunks/chunk.3XA37MYL.js +134 -0
- package/dist/chunks/chunk.3XGKVNFS.js +21 -0
- package/dist/chunks/chunk.4B3M6B7S.js +11 -0
- package/dist/chunks/chunk.4GEQTMEV.js +286 -0
- package/dist/chunks/chunk.4H7NUAAN.js +21 -0
- package/dist/chunks/chunk.4L4G75M3.js +29 -0
- package/dist/chunks/chunk.4TR2RXVB.js +550 -0
- package/dist/chunks/chunk.4UGGBC4S.js +75 -0
- package/dist/chunks/chunk.566J3G5O.js +28 -0
- package/dist/chunks/chunk.56HIWCX6.js +25 -0
- package/dist/chunks/chunk.5AT3BVD5.js +883 -0
- package/dist/chunks/chunk.5B2SCWWU.js +57 -0
- package/dist/chunks/chunk.5BXLFKDP.js +27 -0
- package/dist/chunks/chunk.5KR42J46.js +11 -0
- package/dist/chunks/chunk.5RQBRMVA.js +11 -0
- package/dist/chunks/chunk.5VMZZO5N.js +151 -0
- package/dist/chunks/chunk.5WEDPOQM.js +24 -0
- package/dist/chunks/chunk.67C5V6BY.js +192 -0
- package/dist/chunks/chunk.6D337CRO.js +11 -0
- package/dist/chunks/chunk.6PHR5DV3.js +11 -0
- package/dist/chunks/chunk.6PXKSSWB.js +21 -0
- package/dist/chunks/chunk.6QHPFU7W.js +11 -0
- package/dist/chunks/chunk.6TNOTVIW.js +11 -0
- package/dist/chunks/chunk.6TZMHHC3.js +25 -0
- package/dist/chunks/chunk.6VOY3F7S.js +502 -0
- package/dist/chunks/chunk.77DZUVS6.js +24 -0
- package/dist/chunks/chunk.7DCG5NJM.js +11 -0
- package/dist/chunks/chunk.7ENY6KCX.js +25 -0
- package/dist/chunks/chunk.7G3P2HOV.js +73 -0
- package/dist/chunks/chunk.7IZ4S4JF.js +263 -0
- package/dist/chunks/chunk.7N2XFSOU.js +29 -0
- package/dist/chunks/chunk.7Q6JJ7KV.js +24 -0
- package/dist/chunks/chunk.7RHFV3RB.js +11 -0
- package/dist/chunks/chunk.7UEZE5SE.js +63 -0
- package/dist/chunks/chunk.7VR7GM6L.js +266 -0
- package/dist/chunks/chunk.7ZZ53HWP.js +11 -0
- package/dist/chunks/chunk.ACFWV6JZ.js +91 -0
- package/dist/chunks/chunk.ADTP5OV5.js +949 -0
- package/dist/chunks/chunk.AJYW62WJ.js +348 -0
- package/dist/chunks/chunk.AQLIAUBR.js +28 -0
- package/dist/chunks/chunk.AR2OP4VW.js +27 -0
- package/dist/chunks/chunk.BN4VTNVI.js +11 -0
- package/dist/chunks/chunk.BS32CM5D.js +80 -0
- package/dist/chunks/chunk.BU33S5IX.js +117 -0
- package/dist/chunks/chunk.BUKXV23V.js +24 -0
- package/dist/chunks/chunk.BUX2HRXS.js +24 -0
- package/dist/chunks/chunk.BZBOJSAW.js +11 -0
- package/dist/chunks/chunk.CC7B3VFN.js +11 -0
- package/dist/chunks/chunk.CD3W4OKL.js +231 -0
- package/dist/chunks/chunk.CDMX7FSB.js +45 -0
- package/dist/chunks/chunk.CFUHD4SV.js +21 -0
- package/dist/chunks/chunk.CKXVVDDK.js +126 -0
- package/dist/chunks/chunk.CLEZ2AZE.js +100 -0
- package/dist/chunks/chunk.CLWK62MG.js +21 -0
- package/dist/chunks/chunk.CSVWI6Y4.js +25 -0
- package/dist/chunks/chunk.CW3SMEMO.js +111 -0
- package/dist/chunks/chunk.CWIT4JOL.js +11 -0
- package/dist/chunks/chunk.CXUTYTWH.js +294 -0
- package/dist/chunks/chunk.D3Y3WW77.js +25 -0
- package/dist/chunks/chunk.DBN7GJ5T.js +0 -0
- package/dist/chunks/chunk.DHQWUNZ7.js +26 -0
- package/dist/chunks/chunk.DPPHNIDC.js +11 -0
- package/dist/chunks/chunk.DW7HAH5F.js +21 -0
- package/dist/chunks/chunk.E2N54XZW.js +158 -0
- package/dist/chunks/chunk.E65L7RMX.js +21 -0
- package/dist/chunks/chunk.EBJFB5ED.js +28 -0
- package/dist/chunks/chunk.ELXEGEO7.js +11 -0
- package/dist/chunks/chunk.ETW3CARH.js +85 -0
- package/dist/chunks/chunk.EUHALBSG.js +27 -0
- package/dist/chunks/chunk.EYXJPF4T.js +11 -0
- package/dist/chunks/chunk.F2BIKL72.js +34 -0
- package/dist/chunks/chunk.F3B2VXIE.js +598 -0
- package/dist/chunks/chunk.F5KDDEGG.js +21 -0
- package/dist/chunks/chunk.F5QCDAZD.js +26 -0
- package/dist/chunks/chunk.FACUDL3Y.js +11 -0
- package/dist/chunks/chunk.FFNLDJFZ.js +29 -0
- package/dist/chunks/chunk.FHEE6NC4.js +33 -0
- package/dist/chunks/chunk.FJILDL42.js +21 -0
- package/dist/chunks/chunk.FZHUM3HC.js +11 -0
- package/dist/chunks/chunk.G22CZGOK.js +21 -0
- package/dist/chunks/chunk.G2POJAIO.js +147 -0
- package/dist/chunks/chunk.G2XPKRQD.js +11 -0
- package/dist/chunks/chunk.GGK2EW5V.js +59 -0
- package/dist/chunks/chunk.GJADB4CF.js +11 -0
- package/dist/chunks/chunk.GJBMOBND.js +21 -0
- package/dist/chunks/chunk.GMC3L4HB.js +11 -0
- package/dist/chunks/chunk.GN44I7UO.js +24 -0
- package/dist/chunks/chunk.GQGC3KU4.js +371 -0
- package/dist/chunks/chunk.GVAPJYA3.js +154 -0
- package/dist/chunks/chunk.H2B2ZHRX.js +67 -0
- package/dist/chunks/chunk.H5R4TGZH.js +11 -0
- package/dist/chunks/chunk.HTHEA36S.js +21 -0
- package/dist/chunks/chunk.HUZFXLTR.js +581 -0
- package/dist/chunks/chunk.HY7S73WI.js +21 -0
- package/dist/chunks/chunk.I7A23GA6.js +29 -0
- package/dist/chunks/chunk.I7LLE46P.js +11 -0
- package/dist/chunks/chunk.I7MYJ6T7.js +21 -0
- package/dist/chunks/chunk.ID3OSK4H.js +29 -0
- package/dist/chunks/chunk.IDAAUGHM.js +11 -0
- package/dist/chunks/chunk.IGD3XHBJ.js +11 -0
- package/dist/chunks/chunk.IJ3VMW2R.js +26 -0
- package/dist/chunks/chunk.J76YHVQV.js +11 -0
- package/dist/chunks/chunk.JEHBPENY.js +11 -0
- package/dist/chunks/chunk.JEIRYLA7.js +11 -0
- package/dist/chunks/chunk.JGOR72YW.js +11 -0
- package/dist/chunks/chunk.JI646VQW.js +21 -0
- package/dist/chunks/chunk.JRE3XEGV.js +96 -0
- package/dist/chunks/chunk.K5UHBRBV.js +11 -0
- package/dist/chunks/chunk.K6WZPHYX.js +24 -0
- package/dist/chunks/chunk.KIRCNHCN.js +11 -0
- package/dist/chunks/chunk.KOMHPUGR.js +814 -0
- package/dist/chunks/chunk.KUH7IHNM.js +21 -0
- package/dist/chunks/chunk.L2GNETEW.js +52 -0
- package/dist/chunks/chunk.L3EQKDDD.js +22 -0
- package/dist/chunks/chunk.LDKADK5S.js +1195 -0
- package/dist/chunks/chunk.LDYNEEPR.js +25 -0
- package/dist/chunks/chunk.LGPVZ5VZ.js +21 -0
- package/dist/chunks/chunk.LHB2IX4Q.js +11 -0
- package/dist/chunks/chunk.LHEMCYGN.js +21 -0
- package/dist/chunks/chunk.LI6FEX4U.js +11 -0
- package/dist/chunks/chunk.LJNA7HKE.js +384 -0
- package/dist/chunks/chunk.LJORQ34V.js +49 -0
- package/dist/chunks/chunk.LKK2PFM6.js +11 -0
- package/dist/chunks/chunk.LNEYI7LV.js +444 -0
- package/dist/chunks/chunk.LO3Y3SC3.js +21 -0
- package/dist/chunks/chunk.LQCPIDQK.js +11 -0
- package/dist/chunks/chunk.LS6NLVX5.js +247 -0
- package/dist/chunks/chunk.LX5NM5NQ.js +11 -0
- package/dist/chunks/chunk.LZYWPESL.js +11 -0
- package/dist/chunks/chunk.MBBHJ5GO.js +337 -0
- package/dist/chunks/chunk.MDNVBBZH.js +1250 -0
- package/dist/chunks/chunk.MEBOP6MN.js +11 -0
- package/dist/chunks/chunk.MJJGFKLO.js +21 -0
- package/dist/chunks/chunk.MR4YVMRN.js +64 -0
- package/dist/chunks/chunk.MU5AZVCP.js +227 -0
- package/dist/chunks/chunk.NGEK5MSS.js +113 -0
- package/dist/chunks/chunk.NNXYAEOE.js +311 -0
- package/dist/chunks/chunk.NPS3ESCM.js +126 -0
- package/dist/chunks/chunk.ODVC7KHR.js +302 -0
- package/dist/chunks/chunk.OUNPBRRD.js +22 -0
- package/dist/chunks/chunk.OX3TLBRT.js +11 -0
- package/dist/chunks/chunk.P7A65F4C.js +11 -0
- package/dist/chunks/chunk.PAHARZQS.js +209 -0
- package/dist/chunks/chunk.PHLBO5DX.js +35 -0
- package/dist/chunks/chunk.PJ5F7CV7.js +116 -0
- package/dist/chunks/chunk.PK3EOIQ6.js +170 -0
- package/dist/chunks/chunk.PKSNYBHX.js +448 -0
- package/dist/chunks/chunk.PLFXQQK7.js +27 -0
- package/dist/chunks/chunk.PRNRZ46M.js +171 -0
- package/dist/chunks/chunk.Q2XU4CXO.js +21 -0
- package/dist/chunks/chunk.Q4TZCBZJ.js +109 -0
- package/dist/chunks/chunk.Q5QQPLBB.js +11 -0
- package/dist/chunks/chunk.Q5VJXOXL.js +24 -0
- package/dist/chunks/chunk.QBOVLXXP.js +21 -0
- package/dist/chunks/chunk.QEB3AMG2.js +11 -0
- package/dist/chunks/chunk.QHAMOKMK.js +214 -0
- package/dist/chunks/chunk.QIBAK7JU.js +11 -0
- package/dist/chunks/chunk.QJTW7WJF.js +324 -0
- package/dist/chunks/chunk.QN5KURZ4.js +27 -0
- package/dist/chunks/chunk.QP55ES4D.js +21 -0
- package/dist/chunks/chunk.QYPMCDLQ.js +75 -0
- package/dist/chunks/chunk.QYRMBDMM.js +29 -0
- package/dist/chunks/chunk.QZ6SOV43.js +11 -0
- package/dist/chunks/chunk.R7KBW4QU.js +213 -0
- package/dist/chunks/chunk.RB2I5S6R.js +26 -0
- package/dist/chunks/chunk.RCJTFUSQ.js +681 -0
- package/dist/chunks/chunk.RCQO3ENT.js +28 -0
- package/dist/chunks/chunk.RHMTH33E.js +11 -0
- package/dist/chunks/chunk.RRE67WPJ.js +25 -0
- package/dist/chunks/chunk.RS5RBPPC.js +24 -0
- package/dist/chunks/chunk.RSLDQNZV.js +25 -0
- package/dist/chunks/chunk.RWKV5C6J.js +48 -0
- package/dist/chunks/chunk.RXIN2NBH.js +11 -0
- package/dist/chunks/chunk.RXL26ZVA.js +21 -0
- package/dist/chunks/chunk.S3KIYD3N.js +119 -0
- package/dist/chunks/chunk.SJFD3WIY.js +11 -0
- package/dist/chunks/chunk.SJQBLTVX.js +293 -0
- package/dist/chunks/chunk.SQTKV2YF.js +125 -0
- package/dist/chunks/chunk.SWBDS6VT.js +21 -0
- package/dist/chunks/chunk.T67Q7FG4.js +212 -0
- package/dist/chunks/chunk.T6LQGRUO.js +11 -0
- package/dist/chunks/chunk.T75MXKKM.js +11 -0
- package/dist/chunks/chunk.TFEBABHN.js +11 -0
- package/dist/chunks/chunk.TJEPUVRV.js +25 -0
- package/dist/chunks/chunk.TJTYBIR7.js +181 -0
- package/dist/chunks/chunk.TMKAHS52.js +504 -0
- package/dist/chunks/chunk.TN7PWYQP.js +315 -0
- package/dist/chunks/chunk.TS6C6XE6.js +11 -0
- package/dist/chunks/chunk.TVTYAME6.js +24 -0
- package/dist/chunks/chunk.U3TBBNK7.js +11 -0
- package/dist/chunks/chunk.UCRIUDWV.js +24 -0
- package/dist/chunks/chunk.UH4QRZF2.js +306 -0
- package/dist/chunks/chunk.UJBLG2EM.js +45 -0
- package/dist/chunks/chunk.UT7IPPSO.js +11 -0
- package/dist/chunks/chunk.UTRX2GAS.js +11 -0
- package/dist/chunks/chunk.UUFFPP2C.js +397 -0
- package/dist/chunks/chunk.VDIOOKK3.js +25 -0
- package/dist/chunks/chunk.VFO6XX4A.js +93 -0
- package/dist/chunks/chunk.VKQ35S4O.js +136 -0
- package/dist/chunks/chunk.VOXZIPYZ.js +11 -0
- package/dist/chunks/chunk.VR5RMHED.js +11 -0
- package/dist/chunks/chunk.VSR2VRYO.js +11 -0
- package/dist/chunks/chunk.VWUHLZYU.js +167 -0
- package/dist/chunks/chunk.VZFYIASQ.js +24 -0
- package/dist/chunks/chunk.W4CK4MNF.js +11 -0
- package/dist/chunks/chunk.W5XOGECB.js +135 -0
- package/dist/chunks/chunk.W6WWCEDK.js +11 -0
- package/dist/chunks/chunk.WMRVFLJY.js +103 -0
- package/dist/chunks/chunk.WNE6EGZT.js +335 -0
- package/dist/chunks/chunk.WYGWB63T.js +11 -0
- package/dist/chunks/chunk.WYYIVPNV.js +11 -0
- package/dist/chunks/chunk.X5WLR642.js +188 -0
- package/dist/chunks/chunk.XLVA5ZEI.js +11 -0
- package/dist/chunks/chunk.XSZIVLXG.js +21 -0
- package/dist/chunks/chunk.XWFL7NJJ.js +11 -0
- package/dist/chunks/chunk.Y4XGHZNT.js +100 -0
- package/dist/chunks/chunk.YFHUR4GU.js +21 -0
- package/dist/chunks/chunk.YPHENAEZ.js +417 -0
- package/dist/chunks/chunk.Z5BUSFRU.js +24 -0
- package/dist/chunks/chunk.Z73U3F6N.js +11 -0
- package/dist/chunks/chunk.ZABCFN7Q.js +21 -0
- package/dist/chunks/chunk.ZB5UNZGF.js +27 -0
- package/dist/chunks/chunk.ZDWVDDKH.js +194 -0
- package/dist/chunks/chunk.ZO3NUUSF.js +274 -0
- package/dist/chunks/chunk.ZUEFDSKK.js +11 -0
- package/dist/chunks/chunk.ZYEU5MVF.js +11 -0
- package/dist/components/alert/alert.component.js +6 -6
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/animated-image/animated-image.component.js +5 -5
- package/dist/components/animated-image/animated-image.js +6 -6
- package/dist/components/animation/animation.component.js +2 -2
- package/dist/components/animation/animation.js +3 -3
- package/dist/components/avatar/avatar.component.js +5 -5
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.js +8 -8
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/calendar/calendar.component.js +9 -9
- package/dist/components/calendar/calendar.js +9 -9
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/carousel/carousel.component.js +5 -5
- package/dist/components/carousel/carousel.js +6 -6
- package/dist/components/carousel-item/carousel-item.component.js +2 -2
- package/dist/components/carousel-item/carousel-item.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +6 -6
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/col/col.component.js +2 -2
- package/dist/components/col/col.js +3 -3
- package/dist/components/color-picker/color-picker.component.js +16 -16
- package/dist/components/color-picker/color-picker.js +17 -17
- package/dist/components/copy-button/copy-button.component.js +8 -8
- package/dist/components/copy-button/copy-button.js +9 -9
- package/dist/components/date-panel/date-panel.component.js +12 -12
- package/dist/components/date-panel/date-panel.js +12 -12
- package/dist/components/datepicker/datepicker.component.js +18 -18
- package/dist/components/datepicker/datepicker.js +18 -18
- package/dist/components/daterangepicker/daterangepicker.component.js +11 -11
- package/dist/components/daterangepicker/daterangepicker.js +12 -12
- package/dist/components/details/details.component.js +5 -5
- package/dist/components/details/details.js +6 -6
- package/dist/components/dialog/dialog.component.js +6 -6
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +6 -6
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/format-bytes/format-bytes.component.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +3 -3
- package/dist/components/format-date/format-date.component.js +2 -2
- package/dist/components/format-date/format-date.js +3 -3
- package/dist/components/format-number/format-number.component.js +2 -2
- package/dist/components/format-number/format-number.js +3 -3
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon-button/icon-button.component.js +5 -5
- package/dist/components/icon-button/icon-button.js +6 -6
- package/dist/components/image-comparer/image-comparer.component.js +5 -5
- package/dist/components/image-comparer/image-comparer.js +6 -6
- package/dist/components/include/include.component.js +3 -3
- package/dist/components/include/include.js +4 -4
- package/dist/components/input/input.component.js +5 -5
- package/dist/components/input/input.js +6 -6
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/menu-label/menu-label.component.js +2 -2
- package/dist/components/menu-label/menu-label.js +3 -3
- package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
- package/dist/components/mutation-observer/mutation-observer.js +3 -3
- package/dist/components/nav/nav.component.js +11 -11
- package/dist/components/nav/nav.js +12 -12
- package/dist/components/nav-group/nav-group.component.js +2 -2
- package/dist/components/nav-group/nav-group.js +3 -3
- package/dist/components/nav-item/nav-item.component.js +2 -2
- package/dist/components/nav-item/nav-item.js +3 -3
- package/dist/components/nav-submenu/nav-submenu.component.js +6 -6
- package/dist/components/nav-submenu/nav-submenu.js +7 -7
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/pagination/custom-select.js +10 -10
- package/dist/components/pagination/pagination.component.js +11 -11
- package/dist/components/pagination/pagination.js +11 -11
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/qr-code/qr-code.component.js +2 -2
- package/dist/components/qr-code/qr-code.js +3 -3
- package/dist/components/radio/radio.component.js +5 -5
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio-button/radio-button.component.js +4 -4
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.component.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/range/range.component.js +2 -2
- package/dist/components/range/range.js +3 -3
- package/dist/components/rating/rating.component.js +5 -5
- package/dist/components/rating/rating.js +6 -6
- package/dist/components/relative-time/relative-time.component.js +2 -2
- package/dist/components/relative-time/relative-time.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/resize-observer/resize-observer.js +3 -3
- package/dist/components/row/row.component.js +2 -2
- package/dist/components/row/row.js +3 -3
- package/dist/components/screen/screen.component.js +3 -3
- package/dist/components/screen/screen.js +4 -4
- package/dist/components/select/select.component.js +9 -9
- package/dist/components/select/select.js +10 -10
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/split-panel/split-panel.component.js +2 -2
- package/dist/components/split-panel/split-panel.js +3 -3
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +6 -6
- package/dist/components/tab/tab.js +7 -7
- package/dist/components/tab-group/tab-group.component.js +7 -7
- package/dist/components/tab-group/tab-group.js +8 -8
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/table/body-table.js +3 -3
- package/dist/components/table/features/index.js +6 -4
- package/dist/components/table/features/row-selection.js +3 -1
- package/dist/components/table/features/tree-table.js +1 -1
- package/dist/components/table/head-table.js +24 -24
- package/dist/components/table/spinner-container.js +2 -2
- package/dist/components/table/table.component.js +35 -35
- package/dist/components/table/table.js +37 -37
- package/dist/components/tag/tag.component.js +6 -6
- package/dist/components/tag/tag.js +7 -7
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/think/think.component.js +6 -6
- package/dist/components/think/think.js +7 -7
- package/dist/components/thought-chain/thought-chain.component.js +2 -2
- package/dist/components/thought-chain/thought-chain.js +3 -3
- package/dist/components/thought-chain-item/thought-chain-item.component.js +6 -6
- package/dist/components/thought-chain-item/thought-chain-item.js +7 -7
- package/dist/components/thought-chain-node/thought-chain-node.component.js +6 -6
- package/dist/components/thought-chain-node/thought-chain-node.js +7 -7
- package/dist/components/time-panel/time-panel.component.js +8 -8
- package/dist/components/time-panel/time-panel.js +8 -8
- package/dist/components/timepicker/timepicker.component.js +18 -18
- package/dist/components/timepicker/timepicker.js +18 -18
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/tree/tree.component.js +9 -9
- package/dist/components/tree/tree.js +10 -10
- package/dist/components/tree-item/tree-item.component.js +8 -8
- package/dist/components/tree-item/tree-item.js +9 -9
- package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
- package/dist/components/visually-hidden/visually-hidden.js +3 -3
- package/dist/components/x-markdown/markdown/components.js +11 -0
- package/dist/components/x-markdown/markdown/highlight.js +7 -0
- package/dist/components/x-markdown/markdown/parser.js +7 -0
- package/dist/components/x-markdown/markdown/render.js +9 -0
- package/dist/components/x-markdown/markdown/streaming.js +7 -0
- package/dist/components/x-markdown/markdown/types.js +1 -0
- package/dist/components/x-markdown/x-markdown.component.js +14 -0
- package/dist/components/x-markdown/x-markdown.js +16 -0
- package/dist/components/x-markdown/x-markdown.styles.js +7 -0
- package/dist/custom-elements.json +3190 -2848
- package/dist/react/alert/index.js +7 -7
- package/dist/react/animated-image/index.js +6 -6
- package/dist/react/animation/index.js +3 -3
- package/dist/react/avatar/index.js +6 -6
- package/dist/react/badge/index.js +3 -3
- package/dist/react/breadcrumb/index.js +6 -6
- package/dist/react/breadcrumb-item/index.js +3 -3
- package/dist/react/button/index.js +8 -8
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/carousel/index.js +6 -6
- package/dist/react/carousel-item/index.js +3 -3
- package/dist/react/checkbox/index.js +7 -7
- package/dist/react/col/index.js +3 -3
- package/dist/react/color-picker/index.js +17 -17
- package/dist/react/copy-button/index.js +9 -9
- package/dist/react/date-panel/index.js +13 -13
- package/dist/react/datepicker/index.js +19 -19
- package/dist/react/daterangepicker/index.js +12 -12
- package/dist/react/details/index.js +6 -6
- package/dist/react/dialog/index.js +7 -7
- package/dist/react/divider/index.js +3 -3
- package/dist/react/drawer/index.js +7 -7
- package/dist/react/dropdown/index.js +4 -4
- package/dist/react/format-bytes/index.js +3 -3
- package/dist/react/format-date/index.js +3 -3
- package/dist/react/format-number/index.js +3 -3
- package/dist/react/icon/index.js +5 -5
- package/dist/react/icon-button/index.js +6 -6
- package/dist/react/image-comparer/index.js +6 -6
- package/dist/react/include/index.js +4 -4
- package/dist/react/index.js +260 -249
- package/dist/react/input/index.js +6 -6
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +8 -8
- package/dist/react/menu-label/index.js +3 -3
- package/dist/react/mutation-observer/index.js +3 -3
- package/dist/react/nav/index.js +12 -12
- package/dist/react/nav-group/index.js +3 -3
- package/dist/react/nav-item/index.js +3 -3
- package/dist/react/nav-submenu/index.js +7 -7
- package/dist/react/option/index.js +6 -6
- package/dist/react/pagination/index.js +12 -12
- package/dist/react/popup/index.js +3 -3
- package/dist/react/progress-bar/index.js +3 -3
- package/dist/react/progress-ring/index.js +3 -3
- package/dist/react/qr-code/index.js +3 -3
- package/dist/react/radio/index.js +6 -6
- package/dist/react/radio-button/index.js +5 -5
- package/dist/react/radio-group/index.js +5 -5
- package/dist/react/range/index.js +3 -3
- package/dist/react/rating/index.js +6 -6
- package/dist/react/relative-time/index.js +3 -3
- package/dist/react/resize-observer/index.js +3 -3
- package/dist/react/row/index.js +3 -3
- package/dist/react/screen/index.js +4 -4
- package/dist/react/select/index.js +10 -10
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spinner/index.js +3 -3
- package/dist/react/split-panel/index.js +3 -3
- package/dist/react/switch/index.js +3 -3
- package/dist/react/tab/index.js +7 -7
- package/dist/react/tab-group/index.js +8 -8
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/table/index.js +36 -36
- package/dist/react/tag/index.js +7 -7
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/think/index.js +7 -7
- package/dist/react/thought-chain/index.js +3 -3
- package/dist/react/thought-chain-item/index.js +7 -7
- package/dist/react/thought-chain-node/index.js +7 -7
- package/dist/react/timepicker/index.js +19 -19
- package/dist/react/tooltip/index.js +4 -4
- package/dist/react/tree/index.js +10 -10
- package/dist/react/tree-item/index.js +9 -9
- package/dist/react/visually-hidden/index.js +3 -3
- package/dist/react/x-markdown/index.js +15 -0
- package/dist/shoelace.js +267 -255
- package/dist/types/vue/index.d.ts +487 -434
- package/dist/vscode.html-custom-data.json +311 -274
- package/dist/web-types.json +1049 -962
- package/package.json +3 -2
- package/cdn/chunks/chunk.23ADDY5J.js +0 -36
- package/cdn/chunks/chunk.2JP2V42J.js +0 -77
- package/cdn/chunks/chunk.2ODAYV6U.js +0 -11
- package/cdn/chunks/chunk.2OSBPKY3.js +0 -26
- package/cdn/chunks/chunk.2POQBXMO.js +0 -21
- package/cdn/chunks/chunk.2PWIXRJ3.js +0 -11
- package/cdn/chunks/chunk.2R7TNI4L.js +0 -93
- package/cdn/chunks/chunk.2SK6IUNN.js +0 -54
- package/cdn/chunks/chunk.2TPU424L.js +0 -60
- package/cdn/chunks/chunk.2YO53H5X.js +0 -11
- package/cdn/chunks/chunk.2ZJLDS5B.js +0 -49
- package/cdn/chunks/chunk.33HHT6MV.js +0 -122
- package/cdn/chunks/chunk.3JMB2PQN.js +0 -11
- package/cdn/chunks/chunk.3NNU5OBI.js +0 -11
- package/cdn/chunks/chunk.3SY5DLMH.js +0 -78
- package/cdn/chunks/chunk.3TGDZ5DJ.js +0 -23
- package/cdn/chunks/chunk.3TMXCU6V.js +0 -27
- package/cdn/chunks/chunk.3TOH2DHT.js +0 -70
- package/cdn/chunks/chunk.3UMN4D63.js +0 -28
- package/cdn/chunks/chunk.44QKW7GG.js +0 -158
- package/cdn/chunks/chunk.47GFKRVR.js +0 -455
- package/cdn/chunks/chunk.4BPDSEH3.js +0 -110
- package/cdn/chunks/chunk.4ELSRJ6I.js +0 -21
- package/cdn/chunks/chunk.4S3STF26.js +0 -292
- package/cdn/chunks/chunk.4SU6TOMT.js +0 -24
- package/cdn/chunks/chunk.5BCYRPHR.js +0 -312
- package/cdn/chunks/chunk.5F6HTN6H.js +0 -11
- package/cdn/chunks/chunk.5FR7MGGT.js +0 -25
- package/cdn/chunks/chunk.5NSPOTMM.js +0 -21
- package/cdn/chunks/chunk.5PRDU7WQ.js +0 -302
- package/cdn/chunks/chunk.5PSHBHTM.js +0 -27
- package/cdn/chunks/chunk.5ZN6QZQY.js +0 -161
- package/cdn/chunks/chunk.66X4ORPT.js +0 -11
- package/cdn/chunks/chunk.67LONCDT.js +0 -109
- package/cdn/chunks/chunk.6DIJCQ2A.js +0 -11
- package/cdn/chunks/chunk.6FMCIQ3A.js +0 -53
- package/cdn/chunks/chunk.6FMKD5O3.js +0 -19
- package/cdn/chunks/chunk.6MUK6SQ3.js +0 -449
- package/cdn/chunks/chunk.6QPGZTOP.js +0 -98
- package/cdn/chunks/chunk.6SKQWRRB.js +0 -29
- package/cdn/chunks/chunk.6T3BIU6I.js +0 -11
- package/cdn/chunks/chunk.6VNBWAKL.js +0 -21
- package/cdn/chunks/chunk.6X3XLMW7.js +0 -110
- package/cdn/chunks/chunk.6YOUHY6W.js +0 -42
- package/cdn/chunks/chunk.747ZOZKC.js +0 -231
- package/cdn/chunks/chunk.74AGSFCR.js +0 -21
- package/cdn/chunks/chunk.77IYEU4A.js +0 -29
- package/cdn/chunks/chunk.77YH5KK2.js +0 -28
- package/cdn/chunks/chunk.7A34DNFK.js +0 -24
- package/cdn/chunks/chunk.7AMESOZF.js +0 -29
- package/cdn/chunks/chunk.7CFAFH3T.js +0 -11
- package/cdn/chunks/chunk.7ECJRCOU.js +0 -11
- package/cdn/chunks/chunk.7GI5FNE5.js +0 -233
- package/cdn/chunks/chunk.7J75UG4K.js +0 -197
- package/cdn/chunks/chunk.7KYCR643.js +0 -21
- package/cdn/chunks/chunk.7PMWAYQN.js +0 -11
- package/cdn/chunks/chunk.7RAJJIDY.js +0 -21
- package/cdn/chunks/chunk.7S3NWD2K.js +0 -11
- package/cdn/chunks/chunk.7WSF3BCU.js +0 -645
- package/cdn/chunks/chunk.7XNO4YA2.js +0 -7360
- package/cdn/chunks/chunk.A5YC5RLD.js +0 -11
- package/cdn/chunks/chunk.A7W3H3RG.js +0 -526
- package/cdn/chunks/chunk.AHAU5VLV.js +0 -336
- package/cdn/chunks/chunk.AOB2UCOG.js +0 -69
- package/cdn/chunks/chunk.ASHPDXSD.js +0 -255
- package/cdn/chunks/chunk.AUKTCXRR.js +0 -24
- package/cdn/chunks/chunk.AWSNWAST.js +0 -5845
- package/cdn/chunks/chunk.AXF4HQY5.js +0 -586
- package/cdn/chunks/chunk.AZSL5MFU.js +0 -58
- package/cdn/chunks/chunk.B34ZMFU5.js +0 -14
- package/cdn/chunks/chunk.B7JDZ7KE.js +0 -74
- package/cdn/chunks/chunk.BAIGSUJW.js +0 -128
- package/cdn/chunks/chunk.BEJW4Y4A.js +0 -244
- package/cdn/chunks/chunk.BJDNEBPV.js +0 -51
- package/cdn/chunks/chunk.BSPPXCTS.js +0 -113
- package/cdn/chunks/chunk.BT53JGIN.js +0 -68
- package/cdn/chunks/chunk.BUIRZB5U.js +0 -26
- package/cdn/chunks/chunk.BWTFXKFH.js +0 -63
- package/cdn/chunks/chunk.BY5ZWAFO.js +0 -11
- package/cdn/chunks/chunk.BZVBZ2OH.js +0 -11
- package/cdn/chunks/chunk.C4QRCLEU.js +0 -92
- package/cdn/chunks/chunk.C4RWWPQY.js +0 -33
- package/cdn/chunks/chunk.C5GOQQXR.js +0 -365
- package/cdn/chunks/chunk.CFTWQCNN.js +0 -28
- package/cdn/chunks/chunk.CIDHN27H.js +0 -299
- package/cdn/chunks/chunk.CKZRUABS.js +0 -271
- package/cdn/chunks/chunk.CN62D3LE.js +0 -218
- package/cdn/chunks/chunk.CWZ3KOZZ.js +0 -30
- package/cdn/chunks/chunk.D32TYAV4.js +0 -215
- package/cdn/chunks/chunk.D7BS2A2Q.js +0 -126
- package/cdn/chunks/chunk.DCS2CRXQ.js +0 -11
- package/cdn/chunks/chunk.DGKVX2O4.js +0 -27
- package/cdn/chunks/chunk.DGZ6NWOG.js +0 -276
- package/cdn/chunks/chunk.DIXDF6TO.js +0 -11
- package/cdn/chunks/chunk.DKU2N2M3.js +0 -24
- package/cdn/chunks/chunk.DQ6CWDR7.js +0 -29
- package/cdn/chunks/chunk.DSE6HZXX.js +0 -28
- package/cdn/chunks/chunk.EA7K4BZV.js +0 -11
- package/cdn/chunks/chunk.ECYL2UQT.js +0 -16
- package/cdn/chunks/chunk.ED535MXH.js +0 -26
- package/cdn/chunks/chunk.EDHNR3OC.js +0 -11
- package/cdn/chunks/chunk.EGIBVX27.js +0 -11
- package/cdn/chunks/chunk.EHXP6Q2O.js +0 -24
- package/cdn/chunks/chunk.EPDJQFQC.js +0 -367
- package/cdn/chunks/chunk.EZC3O6TV.js +0 -21
- package/cdn/chunks/chunk.F232GE6P.js +0 -25
- package/cdn/chunks/chunk.F263MQPF.js +0 -291
- package/cdn/chunks/chunk.F2XIJP3U.js +0 -11
- package/cdn/chunks/chunk.F7QNJPIK.js +0 -21
- package/cdn/chunks/chunk.FDQ5L6RR.js +0 -11
- package/cdn/chunks/chunk.FFQAHEEO.js +0 -335
- package/cdn/chunks/chunk.FFVGCBGA.js +0 -30
- package/cdn/chunks/chunk.FLAC4JSA.js +0 -11
- package/cdn/chunks/chunk.FQVQBQVN.js +0 -24
- package/cdn/chunks/chunk.FT4CEOPJ.js +0 -21
- package/cdn/chunks/chunk.FYSJH6YS.js +0 -189
- package/cdn/chunks/chunk.G5C433I3.js +0 -177
- package/cdn/chunks/chunk.GC5KN546.js +0 -11
- package/cdn/chunks/chunk.GJIRETQU.js +0 -29
- package/cdn/chunks/chunk.GNPRP7ZW.js +0 -285
- package/cdn/chunks/chunk.GO3RBHQC.js +0 -128
- package/cdn/chunks/chunk.GOMPYCOG.js +0 -76
- package/cdn/chunks/chunk.GR5F3EZP.js +0 -21
- package/cdn/chunks/chunk.GSKFDR3M.js +0 -24
- package/cdn/chunks/chunk.GVFRB4FA.js +0 -236
- package/cdn/chunks/chunk.GYOTPPQV.js +0 -14
- package/cdn/chunks/chunk.GZ5NCIY6.js +0 -11
- package/cdn/chunks/chunk.HA5VWDEJ.js +0 -11
- package/cdn/chunks/chunk.HAGPNIZX.js +0 -175
- package/cdn/chunks/chunk.HDCAHCR3.js +0 -103
- package/cdn/chunks/chunk.HHEYGC56.js +0 -40
- package/cdn/chunks/chunk.HIWI6YVL.js +0 -11
- package/cdn/chunks/chunk.HNKYVSQV.js +0 -1252
- package/cdn/chunks/chunk.HPYSTYB4.js +0 -192
- package/cdn/chunks/chunk.HPYYDQDZ.js +0 -822
- package/cdn/chunks/chunk.HV2YTU6Z.js +0 -63
- package/cdn/chunks/chunk.HY2WNLS4.js +0 -114
- package/cdn/chunks/chunk.ICNOZ76T.js +0 -124
- package/cdn/chunks/chunk.ILBGOEU2.js +0 -21
- package/cdn/chunks/chunk.ILNIBGGR.js +0 -11
- package/cdn/chunks/chunk.ILWWVC4Y.js +0 -97
- package/cdn/chunks/chunk.IO6HD2LO.js +0 -21
- package/cdn/chunks/chunk.IOV2BG7I.js +0 -82
- package/cdn/chunks/chunk.IWM5IE3Q.js +0 -220
- package/cdn/chunks/chunk.IXNWTVO2.js +0 -346
- package/cdn/chunks/chunk.J43RLQAP.js +0 -58
- package/cdn/chunks/chunk.J46HRRBC.js +0 -11
- package/cdn/chunks/chunk.J54SM3CE.js +0 -50
- package/cdn/chunks/chunk.J7FE4UZC.js +0 -24
- package/cdn/chunks/chunk.J7ZESFNQ.js +0 -26
- package/cdn/chunks/chunk.JFPTG354.js +0 -21
- package/cdn/chunks/chunk.JOENTOAI.js +0 -11
- package/cdn/chunks/chunk.JR4XVHHI.js +0 -243
- package/cdn/chunks/chunk.JWEWQDH6.js +0 -199
- package/cdn/chunks/chunk.JWYNNSIR.js +0 -605
- package/cdn/chunks/chunk.JXYZ5J7F.js +0 -11
- package/cdn/chunks/chunk.JY6CSNX6.js +0 -23
- package/cdn/chunks/chunk.JZUYQE3C.js +0 -11
- package/cdn/chunks/chunk.K33JEY7K.js +0 -11
- package/cdn/chunks/chunk.K5NVH46F.js +0 -25
- package/cdn/chunks/chunk.KDK3IIAH.js +0 -75
- package/cdn/chunks/chunk.KFOCG434.js +0 -24
- package/cdn/chunks/chunk.KJQP3AWV.js +0 -19
- package/cdn/chunks/chunk.KKCLXXWI.js +0 -23
- package/cdn/chunks/chunk.KNPTO7HR.js +0 -11
- package/cdn/chunks/chunk.KRLX4MIS.js +0 -25
- package/cdn/chunks/chunk.KSEEAKAW.js +0 -26
- package/cdn/chunks/chunk.KYDZPVN4.js +0 -25
- package/cdn/chunks/chunk.KYSBY6XQ.js +0 -120
- package/cdn/chunks/chunk.L4XXIKJ7.js +0 -1191
- package/cdn/chunks/chunk.L7F4XSIM.js +0 -314
- package/cdn/chunks/chunk.L7HTIMLL.js +0 -11
- package/cdn/chunks/chunk.L7NCQ4JC.js +0 -11
- package/cdn/chunks/chunk.LEHXQEP6.js +0 -343
- package/cdn/chunks/chunk.LFCIQ62U.js +0 -22
- package/cdn/chunks/chunk.LKGK7LSZ.js +0 -11
- package/cdn/chunks/chunk.LL3JV2GV.js +0 -24
- package/cdn/chunks/chunk.LNMJKMV3.js +0 -49
- package/cdn/chunks/chunk.LO5N5PBL.js +0 -21
- package/cdn/chunks/chunk.LRGEUME6.js +0 -236
- package/cdn/chunks/chunk.LSOGHP2M.js +0 -11
- package/cdn/chunks/chunk.LTFUH5GX.js +0 -29
- package/cdn/chunks/chunk.M2QTWVSI.js +0 -2633
- package/cdn/chunks/chunk.M4KK4C2G.js +0 -345
- package/cdn/chunks/chunk.M7DDMTRN.js +0 -11
- package/cdn/chunks/chunk.M7OJX77N.js +0 -42
- package/cdn/chunks/chunk.MACDAJRL.js +0 -11
- package/cdn/chunks/chunk.MBNYQKEK.js +0 -510
- package/cdn/chunks/chunk.MERHOJ3V.js +0 -21
- package/cdn/chunks/chunk.MIZYDWEO.js +0 -27
- package/cdn/chunks/chunk.MJDHKCAR.js +0 -331
- package/cdn/chunks/chunk.MMJQPEXM.js +0 -155
- package/cdn/chunks/chunk.N2BP3QXE.js +0 -11
- package/cdn/chunks/chunk.N2SGPX4I.js +0 -77
- package/cdn/chunks/chunk.N6XONRC5.js +0 -11
- package/cdn/chunks/chunk.N6Z36FFY.js +0 -681
- package/cdn/chunks/chunk.NBPD4CNS.js +0 -118
- package/cdn/chunks/chunk.NCE47BDP.js +0 -11
- package/cdn/chunks/chunk.NDC4YMEC.js +0 -391
- package/cdn/chunks/chunk.NDXSHFSW.js +0 -24
- package/cdn/chunks/chunk.NFSKOGYT.js +0 -131
- package/cdn/chunks/chunk.NREVM6GO.js +0 -73
- package/cdn/chunks/chunk.NSGP5ZXF.js +0 -21
- package/cdn/chunks/chunk.NZF2UT64.js +0 -24
- package/cdn/chunks/chunk.O2YPNGUE.js +0 -29
- package/cdn/chunks/chunk.O3HM44AZ.js +0 -11
- package/cdn/chunks/chunk.O7EXOX5A.js +0 -61
- package/cdn/chunks/chunk.OAOBPP2Q.js +0 -235
- package/cdn/chunks/chunk.OEN3P3RO.js +0 -11
- package/cdn/chunks/chunk.OMQMM4IV.js +0 -216
- package/cdn/chunks/chunk.OQBMVH34.js +0 -14
- package/cdn/chunks/chunk.P25M3JYY.js +0 -123
- package/cdn/chunks/chunk.PC4SBX2U.js +0 -114
- package/cdn/chunks/chunk.PCQV4BNN.js +0 -93
- package/cdn/chunks/chunk.PE3IZA4T.js +0 -11
- package/cdn/chunks/chunk.PGE2VXS7.js +0 -31
- package/cdn/chunks/chunk.PIMS5KND.js +0 -25
- package/cdn/chunks/chunk.POYCYDMY.js +0 -27
- package/cdn/chunks/chunk.PQZQ3SIX.js +0 -11
- package/cdn/chunks/chunk.PUAFGT47.js +0 -21
- package/cdn/chunks/chunk.PWUNZ5VX.js +0 -117
- package/cdn/chunks/chunk.Q2DIH4AN.js +0 -379
- package/cdn/chunks/chunk.Q45K57QT.js +0 -79
- package/cdn/chunks/chunk.Q6RKIBPO.js +0 -11
- package/cdn/chunks/chunk.Q7EOD7XX.js +0 -219
- package/cdn/chunks/chunk.Q7SD47LR.js +0 -263
- package/cdn/chunks/chunk.QHEV3T44.js +0 -14
- package/cdn/chunks/chunk.QN6SASV6.js +0 -86
- package/cdn/chunks/chunk.QSDWJ62G.js +0 -11
- package/cdn/chunks/chunk.R4673V3Q.js +0 -66
- package/cdn/chunks/chunk.R52KBZ47.js +0 -21
- package/cdn/chunks/chunk.RAMGZTYL.js +0 -11
- package/cdn/chunks/chunk.RDJPMGTR.js +0 -24
- package/cdn/chunks/chunk.RF3XT3XJ.js +0 -153
- package/cdn/chunks/chunk.RHZGVTZM.js +0 -135
- package/cdn/chunks/chunk.RR2YAHDZ.js +0 -101
- package/cdn/chunks/chunk.RV3RLE4K.js +0 -81
- package/cdn/chunks/chunk.RV7NTCWS.js +0 -279
- package/cdn/chunks/chunk.S3PP54EU.js +0 -67
- package/cdn/chunks/chunk.S3ZLPWBC.js +0 -24
- package/cdn/chunks/chunk.SJJYG5AS.js +0 -11
- package/cdn/chunks/chunk.SK46F4K2.js +0 -724
- package/cdn/chunks/chunk.SKLDUQYW.js +0 -21
- package/cdn/chunks/chunk.SLF2GIJJ.js +0 -21
- package/cdn/chunks/chunk.SOHWBX5V.js +0 -24
- package/cdn/chunks/chunk.SV25OGVG.js +0 -27
- package/cdn/chunks/chunk.SXCIU3YK.js +0 -11
- package/cdn/chunks/chunk.T5LB467Q.js +0 -173
- package/cdn/chunks/chunk.TNDNUAFL.js +0 -21
- package/cdn/chunks/chunk.TNKVDDTQ.js +0 -95
- package/cdn/chunks/chunk.TO2CHHO7.js +0 -127
- package/cdn/chunks/chunk.TPUQ53BB.js +0 -28
- package/cdn/chunks/chunk.TWD6VWAN.js +0 -402
- package/cdn/chunks/chunk.TZ4FLPO7.js +0 -57
- package/cdn/chunks/chunk.U2F3PZNY.js +0 -21
- package/cdn/chunks/chunk.U4BQGC6Y.js +0 -21
- package/cdn/chunks/chunk.U7JKLO5W.js +0 -11
- package/cdn/chunks/chunk.UAE22PBP.js +0 -11
- package/cdn/chunks/chunk.UAWA2YA5.js +0 -11
- package/cdn/chunks/chunk.UHGH3PD5.js +0 -450
- package/cdn/chunks/chunk.UIAZUIMN.js +0 -177
- package/cdn/chunks/chunk.UL4RA6JF.js +0 -11
- package/cdn/chunks/chunk.ULNHXVUW.js +0 -24
- package/cdn/chunks/chunk.UM4RTEEY.js +0 -246
- package/cdn/chunks/chunk.UNBPKX7A.js +0 -85
- package/cdn/chunks/chunk.UOAQSJ3P.js +0 -37
- package/cdn/chunks/chunk.UOED4WOD.js +0 -25
- package/cdn/chunks/chunk.UR2HJUYX.js +0 -11
- package/cdn/chunks/chunk.UU7RCPD3.js +0 -136
- package/cdn/chunks/chunk.UUO26SKZ.js +0 -24
- package/cdn/chunks/chunk.UWX6F4H4.js +0 -1990
- package/cdn/chunks/chunk.V3KF4DWC.js +0 -27
- package/cdn/chunks/chunk.V7SFPY3Z.js +0 -79
- package/cdn/chunks/chunk.VA24BSEM.js +0 -87
- package/cdn/chunks/chunk.VB6MEDXM.js +0 -24
- package/cdn/chunks/chunk.VCNNTVQG.js +0 -142
- package/cdn/chunks/chunk.VDDAXBPG.js +0 -11
- package/cdn/chunks/chunk.VFFYK5B4.js +0 -75
- package/cdn/chunks/chunk.VHCLMDG7.js +0 -47
- package/cdn/chunks/chunk.VO57DV65.js +0 -73
- package/cdn/chunks/chunk.VVHWPETA.js +0 -11
- package/cdn/chunks/chunk.VXPWEAAJ.js +0 -25
- package/cdn/chunks/chunk.VYYYLW6Z.js +0 -1925
- package/cdn/chunks/chunk.W3E5WPI5.js +0 -21
- package/cdn/chunks/chunk.W3MSWJCL.js +0 -11
- package/cdn/chunks/chunk.W3SDJFS4.js +0 -25
- package/cdn/chunks/chunk.W46NHWNZ.js +0 -27
- package/cdn/chunks/chunk.WAWE6KZM.js +0 -21
- package/cdn/chunks/chunk.WFGM42Q4.js +0 -21
- package/cdn/chunks/chunk.WTAMWFQO.js +0 -137
- package/cdn/chunks/chunk.WV744FDZ.js +0 -11
- package/cdn/chunks/chunk.WV7ETIIV.js +0 -11
- package/cdn/chunks/chunk.X7TJS7PC.js +0 -286
- package/cdn/chunks/chunk.XDRI4SLY.js +0 -11
- package/cdn/chunks/chunk.XEQZCSG5.js +0 -11
- package/cdn/chunks/chunk.XKCUZEJP.js +0 -123
- package/cdn/chunks/chunk.XMKLBCJK.js +0 -11
- package/cdn/chunks/chunk.XRUQSKYG.js +0 -14
- package/cdn/chunks/chunk.XSCJSZEP.js +0 -78
- package/cdn/chunks/chunk.XSN6HDBS.js +0 -191
- package/cdn/chunks/chunk.XVERUMH5.js +0 -186
- package/cdn/chunks/chunk.Y3ILBXVX.js +0 -186
- package/cdn/chunks/chunk.Y5DHCBAU.js +0 -49
- package/cdn/chunks/chunk.YAVW6QJR.js +0 -11
- package/cdn/chunks/chunk.YGKKDHNR.js +0 -21
- package/cdn/chunks/chunk.YIU3B5C5.js +0 -25
- package/cdn/chunks/chunk.YKDJFPQJ.js +0 -11
- package/cdn/chunks/chunk.YPLQI2YH.js +0 -313
- package/cdn/chunks/chunk.YRDO2LBD.js +0 -587
- package/cdn/chunks/chunk.YUECQRNK.js +0 -25
- package/cdn/chunks/chunk.YVCGZCD6.js +0 -67
- package/cdn/chunks/chunk.YVJAWRUM.js +0 -11
- package/cdn/chunks/chunk.ZA62RUD6.js +0 -42
- package/cdn/chunks/chunk.ZCL4RJS6.js +0 -11
- package/cdn/chunks/chunk.ZF2QQAVL.js +0 -25
- package/cdn/chunks/chunk.ZQN3XTW7.js +0 -339
- package/cdn/chunks/chunk.ZSKO26OA.js +0 -175
- package/cdn/chunks/chunk.ZXHUGDU2.js +0 -11
- package/cdn/chunks/chunk.ZXO2YJ7O.js +0 -162
- package/dist/chunks/chunk.24M3GM3P.js +0 -11
- package/dist/chunks/chunk.27FDTXH3.js +0 -11
- package/dist/chunks/chunk.27WCWIS4.js +0 -21
- package/dist/chunks/chunk.2FFDGBMP.js +0 -25
- package/dist/chunks/chunk.2KQEQIYL.js +0 -11
- package/dist/chunks/chunk.2MH7FRTZ.js +0 -293
- package/dist/chunks/chunk.2OF5YUDM.js +0 -11
- package/dist/chunks/chunk.2QMWW66Z.js +0 -263
- package/dist/chunks/chunk.373GFKRW.js +0 -11
- package/dist/chunks/chunk.3CNAYRM6.js +0 -11
- package/dist/chunks/chunk.3EVAGGCY.js +0 -11
- package/dist/chunks/chunk.3HMUV5DC.js +0 -504
- package/dist/chunks/chunk.3MUSUDQQ.js +0 -280
- package/dist/chunks/chunk.44F7NLOO.js +0 -286
- package/dist/chunks/chunk.47KFNGTW.js +0 -151
- package/dist/chunks/chunk.4LSW635V.js +0 -11
- package/dist/chunks/chunk.4O3XMF2T.js +0 -181
- package/dist/chunks/chunk.4PI6NPGA.js +0 -126
- package/dist/chunks/chunk.4USIAKFX.js +0 -119
- package/dist/chunks/chunk.4WBXTRK5.js +0 -11
- package/dist/chunks/chunk.4WPUQ4PU.js +0 -11
- package/dist/chunks/chunk.4Z36BR5T.js +0 -213
- package/dist/chunks/chunk.4ZUDNFQI.js +0 -11
- package/dist/chunks/chunk.54YDIZN3.js +0 -22
- package/dist/chunks/chunk.55KC4DJT.js +0 -80
- package/dist/chunks/chunk.5AFCUULD.js +0 -11
- package/dist/chunks/chunk.5EYKAP5Z.js +0 -167
- package/dist/chunks/chunk.5NMRLSXP.js +0 -11
- package/dist/chunks/chunk.5O74QKTS.js +0 -24
- package/dist/chunks/chunk.5OGK4Z6H.js +0 -335
- package/dist/chunks/chunk.5ULFXBZ7.js +0 -29
- package/dist/chunks/chunk.5VVWEHFN.js +0 -33
- package/dist/chunks/chunk.5WV6HDMW.js +0 -21
- package/dist/chunks/chunk.6C764B7C.js +0 -73
- package/dist/chunks/chunk.6FNU5TE2.js +0 -1250
- package/dist/chunks/chunk.6L4F5ZOC.js +0 -11
- package/dist/chunks/chunk.6UUUK72L.js +0 -502
- package/dist/chunks/chunk.6ZDE76UP.js +0 -11
- package/dist/chunks/chunk.76WNKGGA.js +0 -100
- package/dist/chunks/chunk.773MVUJ7.js +0 -11
- package/dist/chunks/chunk.77XOHYDQ.js +0 -28
- package/dist/chunks/chunk.77Z7YG6T.js +0 -11
- package/dist/chunks/chunk.7I36VFYE.js +0 -25
- package/dist/chunks/chunk.7NPCEYXZ.js +0 -24
- package/dist/chunks/chunk.7XAXOFYE.js +0 -21
- package/dist/chunks/chunk.7XL3JP4F.js +0 -337
- package/dist/chunks/chunk.ADRZPMWG.js +0 -11
- package/dist/chunks/chunk.AGXNPFHC.js +0 -24
- package/dist/chunks/chunk.ALO4QKLH.js +0 -21
- package/dist/chunks/chunk.AP2DOKAI.js +0 -24
- package/dist/chunks/chunk.AW66C3FA.js +0 -11
- package/dist/chunks/chunk.AWPCDW7J.js +0 -45
- package/dist/chunks/chunk.AZ7XFZ5H.js +0 -11
- package/dist/chunks/chunk.B6RNYGII.js +0 -11
- package/dist/chunks/chunk.BEKUM4BO.js +0 -35
- package/dist/chunks/chunk.BG6R3U6Q.js +0 -21
- package/dist/chunks/chunk.BIO76UXX.js +0 -11
- package/dist/chunks/chunk.BPD6QUZ7.js +0 -11
- package/dist/chunks/chunk.BQUX5XC7.js +0 -448
- package/dist/chunks/chunk.BRAJ2F6D.js +0 -28
- package/dist/chunks/chunk.CBS5GFDH.js +0 -11
- package/dist/chunks/chunk.CIIYEZOW.js +0 -75
- package/dist/chunks/chunk.COT6BNHD.js +0 -274
- package/dist/chunks/chunk.CSJHYBL6.js +0 -21
- package/dist/chunks/chunk.CXT6RVTU.js +0 -25
- package/dist/chunks/chunk.D2SZMRCQ.js +0 -21
- package/dist/chunks/chunk.D5ZDTXWR.js +0 -11
- package/dist/chunks/chunk.D6P3JNAY.js +0 -11
- package/dist/chunks/chunk.DDJPQZYG.js +0 -11
- package/dist/chunks/chunk.DK4EA4RY.js +0 -134
- package/dist/chunks/chunk.DKE3A6CX.js +0 -11
- package/dist/chunks/chunk.DLCF5QVH.js +0 -11
- package/dist/chunks/chunk.DNEYDBKH.js +0 -24
- package/dist/chunks/chunk.DVXT4XTB.js +0 -294
- package/dist/chunks/chunk.ED76WWVB.js +0 -11
- package/dist/chunks/chunk.EOJ6NLC7.js +0 -27
- package/dist/chunks/chunk.ERE4MSBV.js +0 -11
- package/dist/chunks/chunk.ET4JP6UL.js +0 -24
- package/dist/chunks/chunk.EVQY5HIL.js +0 -212
- package/dist/chunks/chunk.EZT3B53C.js +0 -315
- package/dist/chunks/chunk.F625QLK5.js +0 -116
- package/dist/chunks/chunk.F6RVSUTO.js +0 -11
- package/dist/chunks/chunk.FAJ6ZZYX.js +0 -26
- package/dist/chunks/chunk.FBZ4CVHZ.js +0 -11
- package/dist/chunks/chunk.FDUTG424.js +0 -194
- package/dist/chunks/chunk.FKK4GCQI.js +0 -867
- package/dist/chunks/chunk.FMOD2JVE.js +0 -50
- package/dist/chunks/chunk.FN3XWQXJ.js +0 -25
- package/dist/chunks/chunk.FS4RK7QF.js +0 -26
- package/dist/chunks/chunk.FSYVRGP3.js +0 -21
- package/dist/chunks/chunk.FTWEHZXR.js +0 -24
- package/dist/chunks/chunk.GHALVTHU.js +0 -11
- package/dist/chunks/chunk.GJ3DUZWE.js +0 -27
- package/dist/chunks/chunk.GOXIX2VK.js +0 -329
- package/dist/chunks/chunk.GVW236AT.js +0 -814
- package/dist/chunks/chunk.GYIF6XJH.js +0 -75
- package/dist/chunks/chunk.HPOVPECL.js +0 -678
- package/dist/chunks/chunk.HQGZTKRM.js +0 -59
- package/dist/chunks/chunk.HUMBTREN.js +0 -25
- package/dist/chunks/chunk.HZMBIAOV.js +0 -21
- package/dist/chunks/chunk.HZS2Y3SX.js +0 -11
- package/dist/chunks/chunk.I2FVOTUK.js +0 -24
- package/dist/chunks/chunk.IGQ3D345.js +0 -29
- package/dist/chunks/chunk.IKG7GFWI.js +0 -122
- package/dist/chunks/chunk.IQCH65DD.js +0 -117
- package/dist/chunks/chunk.IXWQQ7US.js +0 -25
- package/dist/chunks/chunk.J47QVN3Z.js +0 -113
- package/dist/chunks/chunk.JGXRFD4F.js +0 -11
- package/dist/chunks/chunk.JKVFZCH5.js +0 -63
- package/dist/chunks/chunk.JN35SIRZ.js +0 -24
- package/dist/chunks/chunk.JN3ZSJ5G.js +0 -21
- package/dist/chunks/chunk.JWCBO7LC.js +0 -11
- package/dist/chunks/chunk.JZRM4W52.js +0 -52
- package/dist/chunks/chunk.KKKUCVJQ.js +0 -11
- package/dist/chunks/chunk.KL4M47AX.js +0 -21
- package/dist/chunks/chunk.KYP7CFQL.js +0 -85
- package/dist/chunks/chunk.L4K7TIY5.js +0 -598
- package/dist/chunks/chunk.LKF7XQED.js +0 -21
- package/dist/chunks/chunk.LMGB4CV2.js +0 -25
- package/dist/chunks/chunk.LT6ITCIN.js +0 -171
- package/dist/chunks/chunk.LTRAG2OP.js +0 -11
- package/dist/chunks/chunk.M66IJLPP.js +0 -109
- package/dist/chunks/chunk.M6KAIK7G.js +0 -26
- package/dist/chunks/chunk.M6UZSSAP.js +0 -21
- package/dist/chunks/chunk.MAHFVMGV.js +0 -28
- package/dist/chunks/chunk.MBKQQDSJ.js +0 -25
- package/dist/chunks/chunk.MDV3MA63.js +0 -11
- package/dist/chunks/chunk.MEDMANKC.js +0 -21
- package/dist/chunks/chunk.MERNPHHO.js +0 -21
- package/dist/chunks/chunk.MFIGWR5U.js +0 -11
- package/dist/chunks/chunk.MRKYMXYY.js +0 -11
- package/dist/chunks/chunk.MU4DU2MC.js +0 -11
- package/dist/chunks/chunk.N2Z4FOWD.js +0 -27
- package/dist/chunks/chunk.N4Y54WJT.js +0 -11
- package/dist/chunks/chunk.N6Z7NV2Z.js +0 -11
- package/dist/chunks/chunk.NJC2XTAB.js +0 -417
- package/dist/chunks/chunk.NL523OZN.js +0 -214
- package/dist/chunks/chunk.NLE3JD4E.js +0 -306
- package/dist/chunks/chunk.NLKJPDDM.js +0 -11
- package/dist/chunks/chunk.NLNM6HSN.js +0 -11
- package/dist/chunks/chunk.NNHUZ6A6.js +0 -231
- package/dist/chunks/chunk.NQ53ROHM.js +0 -11
- package/dist/chunks/chunk.NWFL3MC3.js +0 -11
- package/dist/chunks/chunk.NXM5DDQG.js +0 -444
- package/dist/chunks/chunk.O4R4REE7.js +0 -21
- package/dist/chunks/chunk.OPAL5M5M.js +0 -371
- package/dist/chunks/chunk.OQE2E6QZ.js +0 -311
- package/dist/chunks/chunk.OQZBEYQS.js +0 -154
- package/dist/chunks/chunk.OWNRI5XH.js +0 -136
- package/dist/chunks/chunk.P2PYXQ3D.js +0 -11
- package/dist/chunks/chunk.PHFWZ22C.js +0 -192
- package/dist/chunks/chunk.POQAGK2U.js +0 -324
- package/dist/chunks/chunk.POSSNTAA.js +0 -135
- package/dist/chunks/chunk.PRZJGCHV.js +0 -29
- package/dist/chunks/chunk.PSUZQ73U.js +0 -384
- package/dist/chunks/chunk.Q3DAGRSZ.js +0 -29
- package/dist/chunks/chunk.Q3G2I3WX.js +0 -57
- package/dist/chunks/chunk.QB743RZB.js +0 -24
- package/dist/chunks/chunk.QYUUKRJD.js +0 -11
- package/dist/chunks/chunk.QZNPQ4RZ.js +0 -28
- package/dist/chunks/chunk.R66G64IE.js +0 -11
- package/dist/chunks/chunk.R66LVOEU.js +0 -11
- package/dist/chunks/chunk.R6IPUZO7.js +0 -24
- package/dist/chunks/chunk.RGMJS4AQ.js +0 -26
- package/dist/chunks/chunk.RM6PNWQ3.js +0 -21
- package/dist/chunks/chunk.RPAJFEKV.js +0 -21
- package/dist/chunks/chunk.RQLSHY6N.js +0 -90
- package/dist/chunks/chunk.RSLFXUT7.js +0 -27
- package/dist/chunks/chunk.RUY4X2AS.js +0 -11
- package/dist/chunks/chunk.S332ERR2.js +0 -147
- package/dist/chunks/chunk.SFK6TNE3.js +0 -11
- package/dist/chunks/chunk.SM6ULAKX.js +0 -21
- package/dist/chunks/chunk.SOE4UKTX.js +0 -11
- package/dist/chunks/chunk.SRHWOCKI.js +0 -11
- package/dist/chunks/chunk.SRPQW6H3.js +0 -22
- package/dist/chunks/chunk.SVX5L5AB.js +0 -11
- package/dist/chunks/chunk.T3446X3A.js +0 -93
- package/dist/chunks/chunk.T36OCLWM.js +0 -170
- package/dist/chunks/chunk.T6AJC2N6.js +0 -11
- package/dist/chunks/chunk.TEEVEXV2.js +0 -29
- package/dist/chunks/chunk.TJVHEWTE.js +0 -42
- package/dist/chunks/chunk.TXFZ2YXF.js +0 -45
- package/dist/chunks/chunk.TY7M2WD4.js +0 -100
- package/dist/chunks/chunk.TYO2THGF.js +0 -125
- package/dist/chunks/chunk.U2QKJOOW.js +0 -24
- package/dist/chunks/chunk.U5N3HI3P.js +0 -24
- package/dist/chunks/chunk.U7WJOL5F.js +0 -29
- package/dist/chunks/chunk.UBX5MS5T.js +0 -25
- package/dist/chunks/chunk.UEDQ5QSW.js +0 -302
- package/dist/chunks/chunk.UFIFSE5H.js +0 -581
- package/dist/chunks/chunk.ULQPXUKK.js +0 -11
- package/dist/chunks/chunk.UN4S6WFK.js +0 -361
- package/dist/chunks/chunk.USI57FE2.js +0 -25
- package/dist/chunks/chunk.UW2NPECO.js +0 -111
- package/dist/chunks/chunk.UXLWAUWE.js +0 -11
- package/dist/chunks/chunk.UYPTTQLJ.js +0 -11
- package/dist/chunks/chunk.V2HSWZ63.js +0 -21
- package/dist/chunks/chunk.VIMWHZPQ.js +0 -27
- package/dist/chunks/chunk.VJM52DSH.js +0 -230
- package/dist/chunks/chunk.W6NH4VGV.js +0 -1182
- package/dist/chunks/chunk.WBIGLXU5.js +0 -21
- package/dist/chunks/chunk.WE76HGVL.js +0 -28
- package/dist/chunks/chunk.WFCZT6HI.js +0 -11
- package/dist/chunks/chunk.WIBLVY3K.js +0 -67
- package/dist/chunks/chunk.WJSOPSFJ.js +0 -11
- package/dist/chunks/chunk.WU4DEW5Y.js +0 -11
- package/dist/chunks/chunk.WWC523T7.js +0 -21
- package/dist/chunks/chunk.WXXU4OYR.js +0 -227
- package/dist/chunks/chunk.X363EA3U.js +0 -949
- package/dist/chunks/chunk.X3UJ2NNX.js +0 -21
- package/dist/chunks/chunk.X7NONXDW.js +0 -550
- package/dist/chunks/chunk.XARHZ5V7.js +0 -21
- package/dist/chunks/chunk.XB5P54WY.js +0 -21
- package/dist/chunks/chunk.XK6KZWE2.js +0 -96
- package/dist/chunks/chunk.XMQ5YBFV.js +0 -11
- package/dist/chunks/chunk.XP53NJGE.js +0 -11
- package/dist/chunks/chunk.XRGZFTJW.js +0 -21
- package/dist/chunks/chunk.XVHKG56D.js +0 -247
- package/dist/chunks/chunk.XYTS2V5H.js +0 -11
- package/dist/chunks/chunk.Y5UXDD44.js +0 -21
- package/dist/chunks/chunk.Y7XH7WRG.js +0 -21
- package/dist/chunks/chunk.YF3HLOR6.js +0 -11
- package/dist/chunks/chunk.YQZ6JJVK.js +0 -188
- package/dist/chunks/chunk.YWHSD3AX.js +0 -126
- package/dist/chunks/chunk.YWI23UMU.js +0 -24
- package/dist/chunks/chunk.Z3VEKBWH.js +0 -24
- package/dist/chunks/chunk.Z6USCELV.js +0 -91
- package/dist/chunks/chunk.Z7CUHT6D.js +0 -25
- package/dist/chunks/chunk.Z7TJUM6N.js +0 -34
- package/dist/chunks/chunk.ZDGWZMHS.js +0 -397
- package/dist/chunks/chunk.ZMKXAEKI.js +0 -27
- package/dist/chunks/chunk.ZWA33NU7.js +0 -11
- package/dist/chunks/chunk.ZWYGQBWN.js +0 -11
|
@@ -0,0 +1,1514 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
__toESM
|
|
4
|
+
} from "./chunk.CZCSAYQZ.js";
|
|
5
|
+
|
|
6
|
+
// node_modules/prismjs/prism.js
|
|
7
|
+
var require_prism = __commonJS({
|
|
8
|
+
"node_modules/prismjs/prism.js"(exports, module) {
|
|
9
|
+
var _self = typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope ? self : {};
|
|
10
|
+
var Prism = function(_self2) {
|
|
11
|
+
var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
|
|
12
|
+
var uniqueId = 0;
|
|
13
|
+
var plainTextGrammar = {};
|
|
14
|
+
var _ = {
|
|
15
|
+
/**
|
|
16
|
+
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
17
|
+
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
18
|
+
* additional languages or plugins yourself.
|
|
19
|
+
*
|
|
20
|
+
* By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
|
|
21
|
+
*
|
|
22
|
+
* You obviously have to change this value before the automatic highlighting started. To do this, you can add an
|
|
23
|
+
* empty Prism object into the global scope before loading the Prism script like this:
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* window.Prism = window.Prism || {};
|
|
27
|
+
* Prism.manual = true;
|
|
28
|
+
* // add a new <script> to load Prism's script
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @default false
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof Prism
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
manual: _self2.Prism && _self2.Prism.manual,
|
|
37
|
+
/**
|
|
38
|
+
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
39
|
+
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
40
|
+
* own worker, you don't want it to do this.
|
|
41
|
+
*
|
|
42
|
+
* By setting this value to `true`, Prism will not add its own listeners to the worker.
|
|
43
|
+
*
|
|
44
|
+
* You obviously have to change this value before Prism executes. To do this, you can add an
|
|
45
|
+
* empty Prism object into the global scope before loading the Prism script like this:
|
|
46
|
+
*
|
|
47
|
+
* ```js
|
|
48
|
+
* window.Prism = window.Prism || {};
|
|
49
|
+
* Prism.disableWorkerMessageHandler = true;
|
|
50
|
+
* // Load Prism's script
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @default false
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof Prism
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
disableWorkerMessageHandler: _self2.Prism && _self2.Prism.disableWorkerMessageHandler,
|
|
59
|
+
/**
|
|
60
|
+
* A namespace for utility methods.
|
|
61
|
+
*
|
|
62
|
+
* All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
|
|
63
|
+
* change or disappear at any time.
|
|
64
|
+
*
|
|
65
|
+
* @namespace
|
|
66
|
+
* @memberof Prism
|
|
67
|
+
*/
|
|
68
|
+
util: {
|
|
69
|
+
encode: function encode(tokens) {
|
|
70
|
+
if (tokens instanceof Token) {
|
|
71
|
+
return new Token(tokens.type, encode(tokens.content), tokens.alias);
|
|
72
|
+
} else if (Array.isArray(tokens)) {
|
|
73
|
+
return tokens.map(encode);
|
|
74
|
+
} else {
|
|
75
|
+
return tokens.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Returns the name of the type of the given value.
|
|
80
|
+
*
|
|
81
|
+
* @param {any} o
|
|
82
|
+
* @returns {string}
|
|
83
|
+
* @example
|
|
84
|
+
* type(null) === 'Null'
|
|
85
|
+
* type(undefined) === 'Undefined'
|
|
86
|
+
* type(123) === 'Number'
|
|
87
|
+
* type('foo') === 'String'
|
|
88
|
+
* type(true) === 'Boolean'
|
|
89
|
+
* type([1, 2]) === 'Array'
|
|
90
|
+
* type({}) === 'Object'
|
|
91
|
+
* type(String) === 'Function'
|
|
92
|
+
* type(/abc+/) === 'RegExp'
|
|
93
|
+
*/
|
|
94
|
+
type: function(o) {
|
|
95
|
+
return Object.prototype.toString.call(o).slice(8, -1);
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
99
|
+
*
|
|
100
|
+
* @param {Object} obj
|
|
101
|
+
* @returns {number}
|
|
102
|
+
*/
|
|
103
|
+
objId: function(obj) {
|
|
104
|
+
if (!obj["__id"]) {
|
|
105
|
+
Object.defineProperty(obj, "__id", { value: ++uniqueId });
|
|
106
|
+
}
|
|
107
|
+
return obj["__id"];
|
|
108
|
+
},
|
|
109
|
+
/**
|
|
110
|
+
* Creates a deep clone of the given object.
|
|
111
|
+
*
|
|
112
|
+
* The main intended use of this function is to clone language definitions.
|
|
113
|
+
*
|
|
114
|
+
* @param {T} o
|
|
115
|
+
* @param {Record<number, any>} [visited]
|
|
116
|
+
* @returns {T}
|
|
117
|
+
* @template T
|
|
118
|
+
*/
|
|
119
|
+
clone: function deepClone(o, visited) {
|
|
120
|
+
visited = visited || {};
|
|
121
|
+
var clone;
|
|
122
|
+
var id;
|
|
123
|
+
switch (_.util.type(o)) {
|
|
124
|
+
case "Object":
|
|
125
|
+
id = _.util.objId(o);
|
|
126
|
+
if (visited[id]) {
|
|
127
|
+
return visited[id];
|
|
128
|
+
}
|
|
129
|
+
clone = /** @type {Record<string, any>} */
|
|
130
|
+
{};
|
|
131
|
+
visited[id] = clone;
|
|
132
|
+
for (var key in o) {
|
|
133
|
+
if (o.hasOwnProperty(key)) {
|
|
134
|
+
clone[key] = deepClone(o[key], visited);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return (
|
|
138
|
+
/** @type {any} */
|
|
139
|
+
clone
|
|
140
|
+
);
|
|
141
|
+
case "Array":
|
|
142
|
+
id = _.util.objId(o);
|
|
143
|
+
if (visited[id]) {
|
|
144
|
+
return visited[id];
|
|
145
|
+
}
|
|
146
|
+
clone = [];
|
|
147
|
+
visited[id] = clone;
|
|
148
|
+
/** @type {Array} */
|
|
149
|
+
/** @type {any} */
|
|
150
|
+
o.forEach(function(v, i) {
|
|
151
|
+
clone[i] = deepClone(v, visited);
|
|
152
|
+
});
|
|
153
|
+
return (
|
|
154
|
+
/** @type {any} */
|
|
155
|
+
clone
|
|
156
|
+
);
|
|
157
|
+
default:
|
|
158
|
+
return o;
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
|
|
163
|
+
*
|
|
164
|
+
* If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
|
|
165
|
+
*
|
|
166
|
+
* @param {Element} element
|
|
167
|
+
* @returns {string}
|
|
168
|
+
*/
|
|
169
|
+
getLanguage: function(element) {
|
|
170
|
+
while (element) {
|
|
171
|
+
var m = lang.exec(element.className);
|
|
172
|
+
if (m) {
|
|
173
|
+
return m[1].toLowerCase();
|
|
174
|
+
}
|
|
175
|
+
element = element.parentElement;
|
|
176
|
+
}
|
|
177
|
+
return "none";
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* Sets the Prism `language-xxxx` class of the given element.
|
|
181
|
+
*
|
|
182
|
+
* @param {Element} element
|
|
183
|
+
* @param {string} language
|
|
184
|
+
* @returns {void}
|
|
185
|
+
*/
|
|
186
|
+
setLanguage: function(element, language) {
|
|
187
|
+
element.className = element.className.replace(RegExp(lang, "gi"), "");
|
|
188
|
+
element.classList.add("language-" + language);
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* Returns the script element that is currently executing.
|
|
192
|
+
*
|
|
193
|
+
* This does __not__ work for line script element.
|
|
194
|
+
*
|
|
195
|
+
* @returns {HTMLScriptElement | null}
|
|
196
|
+
*/
|
|
197
|
+
currentScript: function() {
|
|
198
|
+
if (typeof document === "undefined") {
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
if (document.currentScript && document.currentScript.tagName === "SCRIPT" && 1 < 2) {
|
|
202
|
+
return (
|
|
203
|
+
/** @type {any} */
|
|
204
|
+
document.currentScript
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
try {
|
|
208
|
+
throw new Error();
|
|
209
|
+
} catch (err) {
|
|
210
|
+
var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
|
|
211
|
+
if (src) {
|
|
212
|
+
var scripts = document.getElementsByTagName("script");
|
|
213
|
+
for (var i in scripts) {
|
|
214
|
+
if (scripts[i].src == src) {
|
|
215
|
+
return scripts[i];
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* Returns whether a given class is active for `element`.
|
|
224
|
+
*
|
|
225
|
+
* The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
|
|
226
|
+
* if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
|
|
227
|
+
* given class is just the given class with a `no-` prefix.
|
|
228
|
+
*
|
|
229
|
+
* Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
|
|
230
|
+
* closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
|
|
231
|
+
* ancestors have the given class or the negated version of it, then the default activation will be returned.
|
|
232
|
+
*
|
|
233
|
+
* In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
|
|
234
|
+
* version of it, the class is considered active.
|
|
235
|
+
*
|
|
236
|
+
* @param {Element} element
|
|
237
|
+
* @param {string} className
|
|
238
|
+
* @param {boolean} [defaultActivation=false]
|
|
239
|
+
* @returns {boolean}
|
|
240
|
+
*/
|
|
241
|
+
isActive: function(element, className, defaultActivation) {
|
|
242
|
+
var no = "no-" + className;
|
|
243
|
+
while (element) {
|
|
244
|
+
var classList = element.classList;
|
|
245
|
+
if (classList.contains(className)) {
|
|
246
|
+
return true;
|
|
247
|
+
}
|
|
248
|
+
if (classList.contains(no)) {
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
element = element.parentElement;
|
|
252
|
+
}
|
|
253
|
+
return !!defaultActivation;
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
* This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
|
|
258
|
+
*
|
|
259
|
+
* @namespace
|
|
260
|
+
* @memberof Prism
|
|
261
|
+
* @public
|
|
262
|
+
*/
|
|
263
|
+
languages: {
|
|
264
|
+
/**
|
|
265
|
+
* The grammar for plain, unformatted text.
|
|
266
|
+
*/
|
|
267
|
+
plain: plainTextGrammar,
|
|
268
|
+
plaintext: plainTextGrammar,
|
|
269
|
+
text: plainTextGrammar,
|
|
270
|
+
txt: plainTextGrammar,
|
|
271
|
+
/**
|
|
272
|
+
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
273
|
+
*
|
|
274
|
+
* If a token in `redef` also appears in the copied language, then the existing token in the copied language
|
|
275
|
+
* will be overwritten at its original position.
|
|
276
|
+
*
|
|
277
|
+
* ## Best practices
|
|
278
|
+
*
|
|
279
|
+
* Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
|
|
280
|
+
* doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
|
|
281
|
+
* understand the language definition because, normally, the order of tokens matters in Prism grammars.
|
|
282
|
+
*
|
|
283
|
+
* Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
|
|
284
|
+
* Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
|
|
285
|
+
*
|
|
286
|
+
* @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
|
|
287
|
+
* @param {Grammar} redef The new tokens to append.
|
|
288
|
+
* @returns {Grammar} The new language created.
|
|
289
|
+
* @public
|
|
290
|
+
* @example
|
|
291
|
+
* Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
|
|
292
|
+
* // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
|
|
293
|
+
* // at its original position
|
|
294
|
+
* 'comment': { ... },
|
|
295
|
+
* // CSS doesn't have a 'color' token, so this token will be appended
|
|
296
|
+
* 'color': /\b(?:red|green|blue)\b/
|
|
297
|
+
* });
|
|
298
|
+
*/
|
|
299
|
+
extend: function(id, redef) {
|
|
300
|
+
var lang2 = _.util.clone(_.languages[id]);
|
|
301
|
+
for (var key in redef) {
|
|
302
|
+
lang2[key] = redef[key];
|
|
303
|
+
}
|
|
304
|
+
return lang2;
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
308
|
+
*
|
|
309
|
+
* ## Usage
|
|
310
|
+
*
|
|
311
|
+
* This helper method makes it easy to modify existing languages. For example, the CSS language definition
|
|
312
|
+
* not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
|
|
313
|
+
* in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
|
|
314
|
+
* appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
|
|
315
|
+
* this:
|
|
316
|
+
*
|
|
317
|
+
* ```js
|
|
318
|
+
* Prism.languages.markup.style = {
|
|
319
|
+
* // token
|
|
320
|
+
* };
|
|
321
|
+
* ```
|
|
322
|
+
*
|
|
323
|
+
* then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
|
|
324
|
+
* before existing tokens. For the CSS example above, you would use it like this:
|
|
325
|
+
*
|
|
326
|
+
* ```js
|
|
327
|
+
* Prism.languages.insertBefore('markup', 'cdata', {
|
|
328
|
+
* 'style': {
|
|
329
|
+
* // token
|
|
330
|
+
* }
|
|
331
|
+
* });
|
|
332
|
+
* ```
|
|
333
|
+
*
|
|
334
|
+
* ## Special cases
|
|
335
|
+
*
|
|
336
|
+
* If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
|
|
337
|
+
* will be ignored.
|
|
338
|
+
*
|
|
339
|
+
* This behavior can be used to insert tokens after `before`:
|
|
340
|
+
*
|
|
341
|
+
* ```js
|
|
342
|
+
* Prism.languages.insertBefore('markup', 'comment', {
|
|
343
|
+
* 'comment': Prism.languages.markup.comment,
|
|
344
|
+
* // tokens after 'comment'
|
|
345
|
+
* });
|
|
346
|
+
* ```
|
|
347
|
+
*
|
|
348
|
+
* ## Limitations
|
|
349
|
+
*
|
|
350
|
+
* The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
|
|
351
|
+
* properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
|
|
352
|
+
* differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
|
|
353
|
+
* deleting properties which is necessary to insert at arbitrary positions.
|
|
354
|
+
*
|
|
355
|
+
* To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
|
|
356
|
+
* Instead, it will create a new object and replace all references to the target object with the new one. This
|
|
357
|
+
* can be done without temporarily deleting properties, so the iteration order is well-defined.
|
|
358
|
+
*
|
|
359
|
+
* However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
|
|
360
|
+
* you hold the target object in a variable, then the value of the variable will not change.
|
|
361
|
+
*
|
|
362
|
+
* ```js
|
|
363
|
+
* var oldMarkup = Prism.languages.markup;
|
|
364
|
+
* var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
|
|
365
|
+
*
|
|
366
|
+
* assert(oldMarkup !== Prism.languages.markup);
|
|
367
|
+
* assert(newMarkup === Prism.languages.markup);
|
|
368
|
+
* ```
|
|
369
|
+
*
|
|
370
|
+
* @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
|
|
371
|
+
* object to be modified.
|
|
372
|
+
* @param {string} before The key to insert before.
|
|
373
|
+
* @param {Grammar} insert An object containing the key-value pairs to be inserted.
|
|
374
|
+
* @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
|
|
375
|
+
* object to be modified.
|
|
376
|
+
*
|
|
377
|
+
* Defaults to `Prism.languages`.
|
|
378
|
+
* @returns {Grammar} The new grammar object.
|
|
379
|
+
* @public
|
|
380
|
+
*/
|
|
381
|
+
insertBefore: function(inside, before, insert, root) {
|
|
382
|
+
root = root || /** @type {any} */
|
|
383
|
+
_.languages;
|
|
384
|
+
var grammar = root[inside];
|
|
385
|
+
var ret = {};
|
|
386
|
+
for (var token in grammar) {
|
|
387
|
+
if (grammar.hasOwnProperty(token)) {
|
|
388
|
+
if (token == before) {
|
|
389
|
+
for (var newToken in insert) {
|
|
390
|
+
if (insert.hasOwnProperty(newToken)) {
|
|
391
|
+
ret[newToken] = insert[newToken];
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
if (!insert.hasOwnProperty(token)) {
|
|
396
|
+
ret[token] = grammar[token];
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
var old = root[inside];
|
|
401
|
+
root[inside] = ret;
|
|
402
|
+
_.languages.DFS(_.languages, function(key, value) {
|
|
403
|
+
if (value === old && key != inside) {
|
|
404
|
+
this[key] = ret;
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
return ret;
|
|
408
|
+
},
|
|
409
|
+
// Traverse a language definition with Depth First Search
|
|
410
|
+
DFS: function DFS(o, callback, type, visited) {
|
|
411
|
+
visited = visited || {};
|
|
412
|
+
var objId = _.util.objId;
|
|
413
|
+
for (var i in o) {
|
|
414
|
+
if (o.hasOwnProperty(i)) {
|
|
415
|
+
callback.call(o, i, o[i], type || i);
|
|
416
|
+
var property = o[i];
|
|
417
|
+
var propertyType = _.util.type(property);
|
|
418
|
+
if (propertyType === "Object" && !visited[objId(property)]) {
|
|
419
|
+
visited[objId(property)] = true;
|
|
420
|
+
DFS(property, callback, null, visited);
|
|
421
|
+
} else if (propertyType === "Array" && !visited[objId(property)]) {
|
|
422
|
+
visited[objId(property)] = true;
|
|
423
|
+
DFS(property, callback, i, visited);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
plugins: {},
|
|
430
|
+
/**
|
|
431
|
+
* This is the most high-level function in Prism’s API.
|
|
432
|
+
* It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
|
|
433
|
+
* each one of them.
|
|
434
|
+
*
|
|
435
|
+
* This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
|
|
436
|
+
*
|
|
437
|
+
* @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
|
|
438
|
+
* @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
|
|
439
|
+
* @memberof Prism
|
|
440
|
+
* @public
|
|
441
|
+
*/
|
|
442
|
+
highlightAll: function(async, callback) {
|
|
443
|
+
_.highlightAllUnder(document, async, callback);
|
|
444
|
+
},
|
|
445
|
+
/**
|
|
446
|
+
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
447
|
+
* {@link Prism.highlightElement} on each one of them.
|
|
448
|
+
*
|
|
449
|
+
* The following hooks will be run:
|
|
450
|
+
* 1. `before-highlightall`
|
|
451
|
+
* 2. `before-all-elements-highlight`
|
|
452
|
+
* 3. All hooks of {@link Prism.highlightElement} for each element.
|
|
453
|
+
*
|
|
454
|
+
* @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
|
|
455
|
+
* @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
|
|
456
|
+
* @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
|
|
457
|
+
* @memberof Prism
|
|
458
|
+
* @public
|
|
459
|
+
*/
|
|
460
|
+
highlightAllUnder: function(container, async, callback) {
|
|
461
|
+
var env = {
|
|
462
|
+
callback,
|
|
463
|
+
container,
|
|
464
|
+
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
465
|
+
};
|
|
466
|
+
_.hooks.run("before-highlightall", env);
|
|
467
|
+
env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
|
|
468
|
+
_.hooks.run("before-all-elements-highlight", env);
|
|
469
|
+
for (var i = 0, element; element = env.elements[i++]; ) {
|
|
470
|
+
_.highlightElement(element, async === true, env.callback);
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
* Highlights the code inside a single element.
|
|
475
|
+
*
|
|
476
|
+
* The following hooks will be run:
|
|
477
|
+
* 1. `before-sanity-check`
|
|
478
|
+
* 2. `before-highlight`
|
|
479
|
+
* 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
|
|
480
|
+
* 4. `before-insert`
|
|
481
|
+
* 5. `after-highlight`
|
|
482
|
+
* 6. `complete`
|
|
483
|
+
*
|
|
484
|
+
* Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
|
|
485
|
+
* the element's language.
|
|
486
|
+
*
|
|
487
|
+
* @param {Element} element The element containing the code.
|
|
488
|
+
* It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
|
|
489
|
+
* @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
|
|
490
|
+
* to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
|
|
491
|
+
* [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
|
|
492
|
+
*
|
|
493
|
+
* Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
|
|
494
|
+
* asynchronous highlighting to work. You can build your own bundle on the
|
|
495
|
+
* [Download page](https://prismjs.com/download.html).
|
|
496
|
+
* @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
|
|
497
|
+
* Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
|
|
498
|
+
* @memberof Prism
|
|
499
|
+
* @public
|
|
500
|
+
*/
|
|
501
|
+
highlightElement: function(element, async, callback) {
|
|
502
|
+
var language = _.util.getLanguage(element);
|
|
503
|
+
var grammar = _.languages[language];
|
|
504
|
+
_.util.setLanguage(element, language);
|
|
505
|
+
var parent = element.parentElement;
|
|
506
|
+
if (parent && parent.nodeName.toLowerCase() === "pre") {
|
|
507
|
+
_.util.setLanguage(parent, language);
|
|
508
|
+
}
|
|
509
|
+
var code = element.textContent;
|
|
510
|
+
var env = {
|
|
511
|
+
element,
|
|
512
|
+
language,
|
|
513
|
+
grammar,
|
|
514
|
+
code
|
|
515
|
+
};
|
|
516
|
+
function insertHighlightedCode(highlightedCode) {
|
|
517
|
+
env.highlightedCode = highlightedCode;
|
|
518
|
+
_.hooks.run("before-insert", env);
|
|
519
|
+
env.element.innerHTML = env.highlightedCode;
|
|
520
|
+
_.hooks.run("after-highlight", env);
|
|
521
|
+
_.hooks.run("complete", env);
|
|
522
|
+
callback && callback.call(env.element);
|
|
523
|
+
}
|
|
524
|
+
_.hooks.run("before-sanity-check", env);
|
|
525
|
+
parent = env.element.parentElement;
|
|
526
|
+
if (parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex")) {
|
|
527
|
+
parent.setAttribute("tabindex", "0");
|
|
528
|
+
}
|
|
529
|
+
if (!env.code) {
|
|
530
|
+
_.hooks.run("complete", env);
|
|
531
|
+
callback && callback.call(env.element);
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
_.hooks.run("before-highlight", env);
|
|
535
|
+
if (!env.grammar) {
|
|
536
|
+
insertHighlightedCode(_.util.encode(env.code));
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
if (async && _self2.Worker) {
|
|
540
|
+
var worker = new Worker(_.filename);
|
|
541
|
+
worker.onmessage = function(evt) {
|
|
542
|
+
insertHighlightedCode(evt.data);
|
|
543
|
+
};
|
|
544
|
+
worker.postMessage(JSON.stringify({
|
|
545
|
+
language: env.language,
|
|
546
|
+
code: env.code,
|
|
547
|
+
immediateClose: true
|
|
548
|
+
}));
|
|
549
|
+
} else {
|
|
550
|
+
insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
/**
|
|
554
|
+
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
555
|
+
* and the language definitions to use, and returns a string with the HTML produced.
|
|
556
|
+
*
|
|
557
|
+
* The following hooks will be run:
|
|
558
|
+
* 1. `before-tokenize`
|
|
559
|
+
* 2. `after-tokenize`
|
|
560
|
+
* 3. `wrap`: On each {@link Token}.
|
|
561
|
+
*
|
|
562
|
+
* @param {string} text A string with the code to be highlighted.
|
|
563
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
564
|
+
*
|
|
565
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
566
|
+
* @param {string} language The name of the language definition passed to `grammar`.
|
|
567
|
+
* @returns {string} The highlighted HTML.
|
|
568
|
+
* @memberof Prism
|
|
569
|
+
* @public
|
|
570
|
+
* @example
|
|
571
|
+
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
572
|
+
*/
|
|
573
|
+
highlight: function(text, grammar, language) {
|
|
574
|
+
var env = {
|
|
575
|
+
code: text,
|
|
576
|
+
grammar,
|
|
577
|
+
language
|
|
578
|
+
};
|
|
579
|
+
_.hooks.run("before-tokenize", env);
|
|
580
|
+
if (!env.grammar) {
|
|
581
|
+
throw new Error('The language "' + env.language + '" has no grammar.');
|
|
582
|
+
}
|
|
583
|
+
env.tokens = _.tokenize(env.code, env.grammar);
|
|
584
|
+
_.hooks.run("after-tokenize", env);
|
|
585
|
+
return Token.stringify(_.util.encode(env.tokens), env.language);
|
|
586
|
+
},
|
|
587
|
+
/**
|
|
588
|
+
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
589
|
+
* and the language definitions to use, and returns an array with the tokenized code.
|
|
590
|
+
*
|
|
591
|
+
* When the language definition includes nested tokens, the function is called recursively on each of these tokens.
|
|
592
|
+
*
|
|
593
|
+
* This method could be useful in other contexts as well, as a very crude parser.
|
|
594
|
+
*
|
|
595
|
+
* @param {string} text A string with the code to be highlighted.
|
|
596
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
597
|
+
*
|
|
598
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
599
|
+
* @returns {TokenStream} An array of strings and tokens, a token stream.
|
|
600
|
+
* @memberof Prism
|
|
601
|
+
* @public
|
|
602
|
+
* @example
|
|
603
|
+
* let code = `var foo = 0;`;
|
|
604
|
+
* let tokens = Prism.tokenize(code, Prism.languages.javascript);
|
|
605
|
+
* tokens.forEach(token => {
|
|
606
|
+
* if (token instanceof Prism.Token && token.type === 'number') {
|
|
607
|
+
* console.log(`Found numeric literal: ${token.content}`);
|
|
608
|
+
* }
|
|
609
|
+
* });
|
|
610
|
+
*/
|
|
611
|
+
tokenize: function(text, grammar) {
|
|
612
|
+
var rest = grammar.rest;
|
|
613
|
+
if (rest) {
|
|
614
|
+
for (var token in rest) {
|
|
615
|
+
grammar[token] = rest[token];
|
|
616
|
+
}
|
|
617
|
+
delete grammar.rest;
|
|
618
|
+
}
|
|
619
|
+
var tokenList = new LinkedList();
|
|
620
|
+
addAfter(tokenList, tokenList.head, text);
|
|
621
|
+
matchGrammar(text, tokenList, grammar, tokenList.head, 0);
|
|
622
|
+
return toArray(tokenList);
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
* @namespace
|
|
626
|
+
* @memberof Prism
|
|
627
|
+
* @public
|
|
628
|
+
*/
|
|
629
|
+
hooks: {
|
|
630
|
+
all: {},
|
|
631
|
+
/**
|
|
632
|
+
* Adds the given callback to the list of callbacks for the given hook.
|
|
633
|
+
*
|
|
634
|
+
* The callback will be invoked when the hook it is registered for is run.
|
|
635
|
+
* Hooks are usually directly run by a highlight function but you can also run hooks yourself.
|
|
636
|
+
*
|
|
637
|
+
* One callback function can be registered to multiple hooks and the same hook multiple times.
|
|
638
|
+
*
|
|
639
|
+
* @param {string} name The name of the hook.
|
|
640
|
+
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
643
|
+
add: function(name, callback) {
|
|
644
|
+
var hooks = _.hooks.all;
|
|
645
|
+
hooks[name] = hooks[name] || [];
|
|
646
|
+
hooks[name].push(callback);
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
650
|
+
*
|
|
651
|
+
* Callbacks will be invoked synchronously and in the order in which they were registered.
|
|
652
|
+
*
|
|
653
|
+
* @param {string} name The name of the hook.
|
|
654
|
+
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
run: function(name, env) {
|
|
658
|
+
var callbacks = _.hooks.all[name];
|
|
659
|
+
if (!callbacks || !callbacks.length) {
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
for (var i = 0, callback; callback = callbacks[i++]; ) {
|
|
663
|
+
callback(env);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
Token
|
|
668
|
+
};
|
|
669
|
+
_self2.Prism = _;
|
|
670
|
+
function Token(type, content, alias, matchedStr) {
|
|
671
|
+
this.type = type;
|
|
672
|
+
this.content = content;
|
|
673
|
+
this.alias = alias;
|
|
674
|
+
this.length = (matchedStr || "").length | 0;
|
|
675
|
+
}
|
|
676
|
+
Token.stringify = function stringify(o, language) {
|
|
677
|
+
if (typeof o == "string") {
|
|
678
|
+
return o;
|
|
679
|
+
}
|
|
680
|
+
if (Array.isArray(o)) {
|
|
681
|
+
var s = "";
|
|
682
|
+
o.forEach(function(e) {
|
|
683
|
+
s += stringify(e, language);
|
|
684
|
+
});
|
|
685
|
+
return s;
|
|
686
|
+
}
|
|
687
|
+
var env = {
|
|
688
|
+
type: o.type,
|
|
689
|
+
content: stringify(o.content, language),
|
|
690
|
+
tag: "span",
|
|
691
|
+
classes: ["token", o.type],
|
|
692
|
+
attributes: {},
|
|
693
|
+
language
|
|
694
|
+
};
|
|
695
|
+
var aliases = o.alias;
|
|
696
|
+
if (aliases) {
|
|
697
|
+
if (Array.isArray(aliases)) {
|
|
698
|
+
Array.prototype.push.apply(env.classes, aliases);
|
|
699
|
+
} else {
|
|
700
|
+
env.classes.push(aliases);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
_.hooks.run("wrap", env);
|
|
704
|
+
var attributes = "";
|
|
705
|
+
for (var name in env.attributes) {
|
|
706
|
+
attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, """) + '"';
|
|
707
|
+
}
|
|
708
|
+
return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes + ">" + env.content + "</" + env.tag + ">";
|
|
709
|
+
};
|
|
710
|
+
function matchPattern(pattern, pos, text, lookbehind) {
|
|
711
|
+
pattern.lastIndex = pos;
|
|
712
|
+
var match = pattern.exec(text);
|
|
713
|
+
if (match && lookbehind && match[1]) {
|
|
714
|
+
var lookbehindLength = match[1].length;
|
|
715
|
+
match.index += lookbehindLength;
|
|
716
|
+
match[0] = match[0].slice(lookbehindLength);
|
|
717
|
+
}
|
|
718
|
+
return match;
|
|
719
|
+
}
|
|
720
|
+
function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {
|
|
721
|
+
for (var token in grammar) {
|
|
722
|
+
if (!grammar.hasOwnProperty(token) || !grammar[token]) {
|
|
723
|
+
continue;
|
|
724
|
+
}
|
|
725
|
+
var patterns = grammar[token];
|
|
726
|
+
patterns = Array.isArray(patterns) ? patterns : [patterns];
|
|
727
|
+
for (var j = 0; j < patterns.length; ++j) {
|
|
728
|
+
if (rematch && rematch.cause == token + "," + j) {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
var patternObj = patterns[j];
|
|
732
|
+
var inside = patternObj.inside;
|
|
733
|
+
var lookbehind = !!patternObj.lookbehind;
|
|
734
|
+
var greedy = !!patternObj.greedy;
|
|
735
|
+
var alias = patternObj.alias;
|
|
736
|
+
if (greedy && !patternObj.pattern.global) {
|
|
737
|
+
var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];
|
|
738
|
+
patternObj.pattern = RegExp(patternObj.pattern.source, flags + "g");
|
|
739
|
+
}
|
|
740
|
+
var pattern = patternObj.pattern || patternObj;
|
|
741
|
+
for (var currentNode = startNode.next, pos = startPos; currentNode !== tokenList.tail; pos += currentNode.value.length, currentNode = currentNode.next) {
|
|
742
|
+
if (rematch && pos >= rematch.reach) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
var str = currentNode.value;
|
|
746
|
+
if (tokenList.length > text.length) {
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
if (str instanceof Token) {
|
|
750
|
+
continue;
|
|
751
|
+
}
|
|
752
|
+
var removeCount = 1;
|
|
753
|
+
var match;
|
|
754
|
+
if (greedy) {
|
|
755
|
+
match = matchPattern(pattern, pos, text, lookbehind);
|
|
756
|
+
if (!match || match.index >= text.length) {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
var from = match.index;
|
|
760
|
+
var to = match.index + match[0].length;
|
|
761
|
+
var p = pos;
|
|
762
|
+
p += currentNode.value.length;
|
|
763
|
+
while (from >= p) {
|
|
764
|
+
currentNode = currentNode.next;
|
|
765
|
+
p += currentNode.value.length;
|
|
766
|
+
}
|
|
767
|
+
p -= currentNode.value.length;
|
|
768
|
+
pos = p;
|
|
769
|
+
if (currentNode.value instanceof Token) {
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
for (var k = currentNode; k !== tokenList.tail && (p < to || typeof k.value === "string"); k = k.next) {
|
|
773
|
+
removeCount++;
|
|
774
|
+
p += k.value.length;
|
|
775
|
+
}
|
|
776
|
+
removeCount--;
|
|
777
|
+
str = text.slice(pos, p);
|
|
778
|
+
match.index -= pos;
|
|
779
|
+
} else {
|
|
780
|
+
match = matchPattern(pattern, 0, str, lookbehind);
|
|
781
|
+
if (!match) {
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
var from = match.index;
|
|
786
|
+
var matchStr = match[0];
|
|
787
|
+
var before = str.slice(0, from);
|
|
788
|
+
var after = str.slice(from + matchStr.length);
|
|
789
|
+
var reach = pos + str.length;
|
|
790
|
+
if (rematch && reach > rematch.reach) {
|
|
791
|
+
rematch.reach = reach;
|
|
792
|
+
}
|
|
793
|
+
var removeFrom = currentNode.prev;
|
|
794
|
+
if (before) {
|
|
795
|
+
removeFrom = addAfter(tokenList, removeFrom, before);
|
|
796
|
+
pos += before.length;
|
|
797
|
+
}
|
|
798
|
+
removeRange(tokenList, removeFrom, removeCount);
|
|
799
|
+
var wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);
|
|
800
|
+
currentNode = addAfter(tokenList, removeFrom, wrapped);
|
|
801
|
+
if (after) {
|
|
802
|
+
addAfter(tokenList, currentNode, after);
|
|
803
|
+
}
|
|
804
|
+
if (removeCount > 1) {
|
|
805
|
+
var nestedRematch = {
|
|
806
|
+
cause: token + "," + j,
|
|
807
|
+
reach
|
|
808
|
+
};
|
|
809
|
+
matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
|
|
810
|
+
if (rematch && nestedRematch.reach > rematch.reach) {
|
|
811
|
+
rematch.reach = nestedRematch.reach;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
function LinkedList() {
|
|
819
|
+
var head = { value: null, prev: null, next: null };
|
|
820
|
+
var tail = { value: null, prev: head, next: null };
|
|
821
|
+
head.next = tail;
|
|
822
|
+
this.head = head;
|
|
823
|
+
this.tail = tail;
|
|
824
|
+
this.length = 0;
|
|
825
|
+
}
|
|
826
|
+
function addAfter(list, node, value) {
|
|
827
|
+
var next = node.next;
|
|
828
|
+
var newNode = { value, prev: node, next };
|
|
829
|
+
node.next = newNode;
|
|
830
|
+
next.prev = newNode;
|
|
831
|
+
list.length++;
|
|
832
|
+
return newNode;
|
|
833
|
+
}
|
|
834
|
+
function removeRange(list, node, count) {
|
|
835
|
+
var next = node.next;
|
|
836
|
+
for (var i = 0; i < count && next !== list.tail; i++) {
|
|
837
|
+
next = next.next;
|
|
838
|
+
}
|
|
839
|
+
node.next = next;
|
|
840
|
+
next.prev = node;
|
|
841
|
+
list.length -= i;
|
|
842
|
+
}
|
|
843
|
+
function toArray(list) {
|
|
844
|
+
var array = [];
|
|
845
|
+
var node = list.head.next;
|
|
846
|
+
while (node !== list.tail) {
|
|
847
|
+
array.push(node.value);
|
|
848
|
+
node = node.next;
|
|
849
|
+
}
|
|
850
|
+
return array;
|
|
851
|
+
}
|
|
852
|
+
if (!_self2.document) {
|
|
853
|
+
if (!_self2.addEventListener) {
|
|
854
|
+
return _;
|
|
855
|
+
}
|
|
856
|
+
if (!_.disableWorkerMessageHandler) {
|
|
857
|
+
_self2.addEventListener("message", function(evt) {
|
|
858
|
+
var message = JSON.parse(evt.data);
|
|
859
|
+
var lang2 = message.language;
|
|
860
|
+
var code = message.code;
|
|
861
|
+
var immediateClose = message.immediateClose;
|
|
862
|
+
_self2.postMessage(_.highlight(code, _.languages[lang2], lang2));
|
|
863
|
+
if (immediateClose) {
|
|
864
|
+
_self2.close();
|
|
865
|
+
}
|
|
866
|
+
}, false);
|
|
867
|
+
}
|
|
868
|
+
return _;
|
|
869
|
+
}
|
|
870
|
+
var script = _.util.currentScript();
|
|
871
|
+
if (script) {
|
|
872
|
+
_.filename = script.src;
|
|
873
|
+
if (script.hasAttribute("data-manual")) {
|
|
874
|
+
_.manual = true;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
function highlightAutomaticallyCallback() {
|
|
878
|
+
if (!_.manual) {
|
|
879
|
+
_.highlightAll();
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if (!_.manual) {
|
|
883
|
+
var readyState = document.readyState;
|
|
884
|
+
if (readyState === "loading" || readyState === "interactive" && script && script.defer) {
|
|
885
|
+
document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback);
|
|
886
|
+
} else {
|
|
887
|
+
if (window.requestAnimationFrame) {
|
|
888
|
+
window.requestAnimationFrame(highlightAutomaticallyCallback);
|
|
889
|
+
} else {
|
|
890
|
+
window.setTimeout(highlightAutomaticallyCallback, 16);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
return _;
|
|
895
|
+
}(_self);
|
|
896
|
+
if (typeof module !== "undefined" && module.exports) {
|
|
897
|
+
module.exports = Prism;
|
|
898
|
+
}
|
|
899
|
+
if (typeof global !== "undefined") {
|
|
900
|
+
global.Prism = Prism;
|
|
901
|
+
}
|
|
902
|
+
Prism.languages.markup = {
|
|
903
|
+
"comment": {
|
|
904
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
905
|
+
greedy: true
|
|
906
|
+
},
|
|
907
|
+
"prolog": {
|
|
908
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
909
|
+
greedy: true
|
|
910
|
+
},
|
|
911
|
+
"doctype": {
|
|
912
|
+
// https://www.w3.org/TR/xml/#NT-doctypedecl
|
|
913
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
914
|
+
greedy: true,
|
|
915
|
+
inside: {
|
|
916
|
+
"internal-subset": {
|
|
917
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
918
|
+
lookbehind: true,
|
|
919
|
+
greedy: true,
|
|
920
|
+
inside: null
|
|
921
|
+
// see below
|
|
922
|
+
},
|
|
923
|
+
"string": {
|
|
924
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
925
|
+
greedy: true
|
|
926
|
+
},
|
|
927
|
+
"punctuation": /^<!|>$|[[\]]/,
|
|
928
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
929
|
+
"name": /[^\s<>'"]+/
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
"cdata": {
|
|
933
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
934
|
+
greedy: true
|
|
935
|
+
},
|
|
936
|
+
"tag": {
|
|
937
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
938
|
+
greedy: true,
|
|
939
|
+
inside: {
|
|
940
|
+
"tag": {
|
|
941
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
942
|
+
inside: {
|
|
943
|
+
"punctuation": /^<\/?/,
|
|
944
|
+
"namespace": /^[^\s>\/:]+:/
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"special-attr": [],
|
|
948
|
+
"attr-value": {
|
|
949
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
950
|
+
inside: {
|
|
951
|
+
"punctuation": [
|
|
952
|
+
{
|
|
953
|
+
pattern: /^=/,
|
|
954
|
+
alias: "attr-equals"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
pattern: /^(\s*)["']|["']$/,
|
|
958
|
+
lookbehind: true
|
|
959
|
+
}
|
|
960
|
+
]
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"punctuation": /\/?>/,
|
|
964
|
+
"attr-name": {
|
|
965
|
+
pattern: /[^\s>\/]+/,
|
|
966
|
+
inside: {
|
|
967
|
+
"namespace": /^[^\s>\/:]+:/
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
"entity": [
|
|
973
|
+
{
|
|
974
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
975
|
+
alias: "named-entity"
|
|
976
|
+
},
|
|
977
|
+
/&#x?[\da-f]{1,8};/i
|
|
978
|
+
]
|
|
979
|
+
};
|
|
980
|
+
Prism.languages.markup["tag"].inside["attr-value"].inside["entity"] = Prism.languages.markup["entity"];
|
|
981
|
+
Prism.languages.markup["doctype"].inside["internal-subset"].inside = Prism.languages.markup;
|
|
982
|
+
Prism.hooks.add("wrap", function(env) {
|
|
983
|
+
if (env.type === "entity") {
|
|
984
|
+
env.attributes["title"] = env.content.replace(/&/, "&");
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
|
|
988
|
+
/**
|
|
989
|
+
* Adds an inlined language to markup.
|
|
990
|
+
*
|
|
991
|
+
* An example of an inlined language is CSS with `<style>` tags.
|
|
992
|
+
*
|
|
993
|
+
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
994
|
+
* case insensitive.
|
|
995
|
+
* @param {string} lang The language key.
|
|
996
|
+
* @example
|
|
997
|
+
* addInlined('style', 'css');
|
|
998
|
+
*/
|
|
999
|
+
value: function addInlined(tagName, lang) {
|
|
1000
|
+
var includedCdataInside = {};
|
|
1001
|
+
includedCdataInside["language-" + lang] = {
|
|
1002
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
1003
|
+
lookbehind: true,
|
|
1004
|
+
inside: Prism.languages[lang]
|
|
1005
|
+
};
|
|
1006
|
+
includedCdataInside["cdata"] = /^<!\[CDATA\[|\]\]>$/i;
|
|
1007
|
+
var inside = {
|
|
1008
|
+
"included-cdata": {
|
|
1009
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
1010
|
+
inside: includedCdataInside
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
inside["language-" + lang] = {
|
|
1014
|
+
pattern: /[\s\S]+/,
|
|
1015
|
+
inside: Prism.languages[lang]
|
|
1016
|
+
};
|
|
1017
|
+
var def = {};
|
|
1018
|
+
def[tagName] = {
|
|
1019
|
+
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
1020
|
+
return tagName;
|
|
1021
|
+
}), "i"),
|
|
1022
|
+
lookbehind: true,
|
|
1023
|
+
greedy: true,
|
|
1024
|
+
inside
|
|
1025
|
+
};
|
|
1026
|
+
Prism.languages.insertBefore("markup", "cdata", def);
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
|
|
1030
|
+
/**
|
|
1031
|
+
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
1032
|
+
*
|
|
1033
|
+
* An example of an inlined language is CSS with `style` attributes.
|
|
1034
|
+
*
|
|
1035
|
+
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
1036
|
+
* case insensitive.
|
|
1037
|
+
* @param {string} lang The language key.
|
|
1038
|
+
* @example
|
|
1039
|
+
* addAttribute('style', 'css');
|
|
1040
|
+
*/
|
|
1041
|
+
value: function(attrName, lang) {
|
|
1042
|
+
Prism.languages.markup.tag.inside["special-attr"].push({
|
|
1043
|
+
pattern: RegExp(
|
|
1044
|
+
/(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
1045
|
+
"i"
|
|
1046
|
+
),
|
|
1047
|
+
lookbehind: true,
|
|
1048
|
+
inside: {
|
|
1049
|
+
"attr-name": /^[^\s=]+/,
|
|
1050
|
+
"attr-value": {
|
|
1051
|
+
pattern: /=[\s\S]+/,
|
|
1052
|
+
inside: {
|
|
1053
|
+
"value": {
|
|
1054
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
1055
|
+
lookbehind: true,
|
|
1056
|
+
alias: [lang, "language-" + lang],
|
|
1057
|
+
inside: Prism.languages[lang]
|
|
1058
|
+
},
|
|
1059
|
+
"punctuation": [
|
|
1060
|
+
{
|
|
1061
|
+
pattern: /^=/,
|
|
1062
|
+
alias: "attr-equals"
|
|
1063
|
+
},
|
|
1064
|
+
/"|'/
|
|
1065
|
+
]
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
Prism.languages.html = Prism.languages.markup;
|
|
1073
|
+
Prism.languages.mathml = Prism.languages.markup;
|
|
1074
|
+
Prism.languages.svg = Prism.languages.markup;
|
|
1075
|
+
Prism.languages.xml = Prism.languages.extend("markup", {});
|
|
1076
|
+
Prism.languages.ssml = Prism.languages.xml;
|
|
1077
|
+
Prism.languages.atom = Prism.languages.xml;
|
|
1078
|
+
Prism.languages.rss = Prism.languages.xml;
|
|
1079
|
+
(function(Prism2) {
|
|
1080
|
+
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
1081
|
+
Prism2.languages.css = {
|
|
1082
|
+
"comment": /\/\*[\s\S]*?\*\//,
|
|
1083
|
+
"atrule": {
|
|
1084
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + string.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
1085
|
+
inside: {
|
|
1086
|
+
"rule": /^@[\w-]+/,
|
|
1087
|
+
"selector-function-argument": {
|
|
1088
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
1089
|
+
lookbehind: true,
|
|
1090
|
+
alias: "selector"
|
|
1091
|
+
},
|
|
1092
|
+
"keyword": {
|
|
1093
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
1094
|
+
lookbehind: true
|
|
1095
|
+
}
|
|
1096
|
+
// See rest below
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
"url": {
|
|
1100
|
+
// https://drafts.csswg.org/css-values-3/#urls
|
|
1101
|
+
pattern: RegExp("\\burl\\((?:" + string.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
1102
|
+
greedy: true,
|
|
1103
|
+
inside: {
|
|
1104
|
+
"function": /^url/i,
|
|
1105
|
+
"punctuation": /^\(|\)$/,
|
|
1106
|
+
"string": {
|
|
1107
|
+
pattern: RegExp("^" + string.source + "$"),
|
|
1108
|
+
alias: "url"
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"selector": {
|
|
1113
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + string.source + ")*(?=\\s*\\{)"),
|
|
1114
|
+
lookbehind: true
|
|
1115
|
+
},
|
|
1116
|
+
"string": {
|
|
1117
|
+
pattern: string,
|
|
1118
|
+
greedy: true
|
|
1119
|
+
},
|
|
1120
|
+
"property": {
|
|
1121
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
1122
|
+
lookbehind: true
|
|
1123
|
+
},
|
|
1124
|
+
"important": /!important\b/i,
|
|
1125
|
+
"function": {
|
|
1126
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
1127
|
+
lookbehind: true
|
|
1128
|
+
},
|
|
1129
|
+
"punctuation": /[(){};:,]/
|
|
1130
|
+
};
|
|
1131
|
+
Prism2.languages.css["atrule"].inside.rest = Prism2.languages.css;
|
|
1132
|
+
var markup = Prism2.languages.markup;
|
|
1133
|
+
if (markup) {
|
|
1134
|
+
markup.tag.addInlined("style", "css");
|
|
1135
|
+
markup.tag.addAttribute("style", "css");
|
|
1136
|
+
}
|
|
1137
|
+
})(Prism);
|
|
1138
|
+
Prism.languages.clike = {
|
|
1139
|
+
"comment": [
|
|
1140
|
+
{
|
|
1141
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
1142
|
+
lookbehind: true,
|
|
1143
|
+
greedy: true
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
1147
|
+
lookbehind: true,
|
|
1148
|
+
greedy: true
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"string": {
|
|
1152
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
1153
|
+
greedy: true
|
|
1154
|
+
},
|
|
1155
|
+
"class-name": {
|
|
1156
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
1157
|
+
lookbehind: true,
|
|
1158
|
+
inside: {
|
|
1159
|
+
"punctuation": /[.\\]/
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"keyword": /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
|
1163
|
+
"boolean": /\b(?:false|true)\b/,
|
|
1164
|
+
"function": /\b\w+(?=\()/,
|
|
1165
|
+
"number": /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
1166
|
+
"operator": /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
1167
|
+
"punctuation": /[{}[\];(),.:]/
|
|
1168
|
+
};
|
|
1169
|
+
Prism.languages.javascript = Prism.languages.extend("clike", {
|
|
1170
|
+
"class-name": [
|
|
1171
|
+
Prism.languages.clike["class-name"],
|
|
1172
|
+
{
|
|
1173
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
1174
|
+
lookbehind: true
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
"keyword": [
|
|
1178
|
+
{
|
|
1179
|
+
pattern: /((?:^|\})\s*)catch\b/,
|
|
1180
|
+
lookbehind: true
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
1184
|
+
lookbehind: true
|
|
1185
|
+
}
|
|
1186
|
+
],
|
|
1187
|
+
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
|
|
1188
|
+
"function": /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
1189
|
+
"number": {
|
|
1190
|
+
pattern: RegExp(
|
|
1191
|
+
/(^|[^\w$])/.source + "(?:" + // constant
|
|
1192
|
+
(/NaN|Infinity/.source + "|" + // binary integer
|
|
1193
|
+
/0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
|
|
1194
|
+
/0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
|
|
1195
|
+
/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
|
|
1196
|
+
/\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
|
|
1197
|
+
/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
|
|
1198
|
+
),
|
|
1199
|
+
lookbehind: true
|
|
1200
|
+
},
|
|
1201
|
+
"operator": /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
1202
|
+
});
|
|
1203
|
+
Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;
|
|
1204
|
+
Prism.languages.insertBefore("javascript", "keyword", {
|
|
1205
|
+
"regex": {
|
|
1206
|
+
pattern: RegExp(
|
|
1207
|
+
// lookbehind
|
|
1208
|
+
// eslint-disable-next-line regexp/no-dupe-characters-character-class
|
|
1209
|
+
/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
|
|
1210
|
+
// There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
|
|
1211
|
+
// classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
|
|
1212
|
+
// with the only syntax, so we have to define 2 different regex patterns.
|
|
1213
|
+
/\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
|
|
1214
|
+
/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
|
|
1215
|
+
/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
|
|
1216
|
+
),
|
|
1217
|
+
lookbehind: true,
|
|
1218
|
+
greedy: true,
|
|
1219
|
+
inside: {
|
|
1220
|
+
"regex-source": {
|
|
1221
|
+
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
1222
|
+
lookbehind: true,
|
|
1223
|
+
alias: "language-regex",
|
|
1224
|
+
inside: Prism.languages.regex
|
|
1225
|
+
},
|
|
1226
|
+
"regex-delimiter": /^\/|\/$/,
|
|
1227
|
+
"regex-flags": /^[a-z]+$/
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
// This must be declared before keyword because we use "function" inside the look-forward
|
|
1231
|
+
"function-variable": {
|
|
1232
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
1233
|
+
alias: "function"
|
|
1234
|
+
},
|
|
1235
|
+
"parameter": [
|
|
1236
|
+
{
|
|
1237
|
+
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
1238
|
+
lookbehind: true,
|
|
1239
|
+
inside: Prism.languages.javascript
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
1243
|
+
lookbehind: true,
|
|
1244
|
+
inside: Prism.languages.javascript
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
1248
|
+
lookbehind: true,
|
|
1249
|
+
inside: Prism.languages.javascript
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
1253
|
+
lookbehind: true,
|
|
1254
|
+
inside: Prism.languages.javascript
|
|
1255
|
+
}
|
|
1256
|
+
],
|
|
1257
|
+
"constant": /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
1258
|
+
});
|
|
1259
|
+
Prism.languages.insertBefore("javascript", "string", {
|
|
1260
|
+
"hashbang": {
|
|
1261
|
+
pattern: /^#!.*/,
|
|
1262
|
+
greedy: true,
|
|
1263
|
+
alias: "comment"
|
|
1264
|
+
},
|
|
1265
|
+
"template-string": {
|
|
1266
|
+
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
1267
|
+
greedy: true,
|
|
1268
|
+
inside: {
|
|
1269
|
+
"template-punctuation": {
|
|
1270
|
+
pattern: /^`|`$/,
|
|
1271
|
+
alias: "string"
|
|
1272
|
+
},
|
|
1273
|
+
"interpolation": {
|
|
1274
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
1275
|
+
lookbehind: true,
|
|
1276
|
+
inside: {
|
|
1277
|
+
"interpolation-punctuation": {
|
|
1278
|
+
pattern: /^\$\{|\}$/,
|
|
1279
|
+
alias: "punctuation"
|
|
1280
|
+
},
|
|
1281
|
+
rest: Prism.languages.javascript
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"string": /[\s\S]+/
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"string-property": {
|
|
1288
|
+
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
1289
|
+
lookbehind: true,
|
|
1290
|
+
greedy: true,
|
|
1291
|
+
alias: "property"
|
|
1292
|
+
}
|
|
1293
|
+
});
|
|
1294
|
+
Prism.languages.insertBefore("javascript", "operator", {
|
|
1295
|
+
"literal-property": {
|
|
1296
|
+
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
1297
|
+
lookbehind: true,
|
|
1298
|
+
alias: "property"
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
if (Prism.languages.markup) {
|
|
1302
|
+
Prism.languages.markup.tag.addInlined("script", "javascript");
|
|
1303
|
+
Prism.languages.markup.tag.addAttribute(
|
|
1304
|
+
/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
|
|
1305
|
+
"javascript"
|
|
1306
|
+
);
|
|
1307
|
+
}
|
|
1308
|
+
Prism.languages.js = Prism.languages.javascript;
|
|
1309
|
+
(function() {
|
|
1310
|
+
if (typeof Prism === "undefined" || typeof document === "undefined") {
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
if (!Element.prototype.matches) {
|
|
1314
|
+
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
1315
|
+
}
|
|
1316
|
+
var LOADING_MESSAGE = "Loading\u2026";
|
|
1317
|
+
var FAILURE_MESSAGE = function(status, message) {
|
|
1318
|
+
return "\u2716 Error " + status + " while fetching file: " + message;
|
|
1319
|
+
};
|
|
1320
|
+
var FAILURE_EMPTY_MESSAGE = "\u2716 Error: File does not exist or is empty";
|
|
1321
|
+
var EXTENSIONS = {
|
|
1322
|
+
"js": "javascript",
|
|
1323
|
+
"py": "python",
|
|
1324
|
+
"rb": "ruby",
|
|
1325
|
+
"ps1": "powershell",
|
|
1326
|
+
"psm1": "powershell",
|
|
1327
|
+
"sh": "bash",
|
|
1328
|
+
"bat": "batch",
|
|
1329
|
+
"h": "c",
|
|
1330
|
+
"tex": "latex"
|
|
1331
|
+
};
|
|
1332
|
+
var STATUS_ATTR = "data-src-status";
|
|
1333
|
+
var STATUS_LOADING = "loading";
|
|
1334
|
+
var STATUS_LOADED = "loaded";
|
|
1335
|
+
var STATUS_FAILED = "failed";
|
|
1336
|
+
var SELECTOR = "pre[data-src]:not([" + STATUS_ATTR + '="' + STATUS_LOADED + '"]):not([' + STATUS_ATTR + '="' + STATUS_LOADING + '"])';
|
|
1337
|
+
function loadFile(src, success, error) {
|
|
1338
|
+
var xhr = new XMLHttpRequest();
|
|
1339
|
+
xhr.open("GET", src, true);
|
|
1340
|
+
xhr.onreadystatechange = function() {
|
|
1341
|
+
if (xhr.readyState == 4) {
|
|
1342
|
+
if (xhr.status < 400 && xhr.responseText) {
|
|
1343
|
+
success(xhr.responseText);
|
|
1344
|
+
} else {
|
|
1345
|
+
if (xhr.status >= 400) {
|
|
1346
|
+
error(FAILURE_MESSAGE(xhr.status, xhr.statusText));
|
|
1347
|
+
} else {
|
|
1348
|
+
error(FAILURE_EMPTY_MESSAGE);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
xhr.send(null);
|
|
1354
|
+
}
|
|
1355
|
+
function parseRange(range) {
|
|
1356
|
+
var m = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(range || "");
|
|
1357
|
+
if (m) {
|
|
1358
|
+
var start = Number(m[1]);
|
|
1359
|
+
var comma = m[2];
|
|
1360
|
+
var end = m[3];
|
|
1361
|
+
if (!comma) {
|
|
1362
|
+
return [start, start];
|
|
1363
|
+
}
|
|
1364
|
+
if (!end) {
|
|
1365
|
+
return [start, void 0];
|
|
1366
|
+
}
|
|
1367
|
+
return [start, Number(end)];
|
|
1368
|
+
}
|
|
1369
|
+
return void 0;
|
|
1370
|
+
}
|
|
1371
|
+
Prism.hooks.add("before-highlightall", function(env) {
|
|
1372
|
+
env.selector += ", " + SELECTOR;
|
|
1373
|
+
});
|
|
1374
|
+
Prism.hooks.add("before-sanity-check", function(env) {
|
|
1375
|
+
var pre = (
|
|
1376
|
+
/** @type {HTMLPreElement} */
|
|
1377
|
+
env.element
|
|
1378
|
+
);
|
|
1379
|
+
if (pre.matches(SELECTOR)) {
|
|
1380
|
+
env.code = "";
|
|
1381
|
+
pre.setAttribute(STATUS_ATTR, STATUS_LOADING);
|
|
1382
|
+
var code = pre.appendChild(document.createElement("CODE"));
|
|
1383
|
+
code.textContent = LOADING_MESSAGE;
|
|
1384
|
+
var src = pre.getAttribute("data-src");
|
|
1385
|
+
var language = env.language;
|
|
1386
|
+
if (language === "none") {
|
|
1387
|
+
var extension = (/\.(\w+)$/.exec(src) || [, "none"])[1];
|
|
1388
|
+
language = EXTENSIONS[extension] || extension;
|
|
1389
|
+
}
|
|
1390
|
+
Prism.util.setLanguage(code, language);
|
|
1391
|
+
Prism.util.setLanguage(pre, language);
|
|
1392
|
+
var autoloader = Prism.plugins.autoloader;
|
|
1393
|
+
if (autoloader) {
|
|
1394
|
+
autoloader.loadLanguages(language);
|
|
1395
|
+
}
|
|
1396
|
+
loadFile(
|
|
1397
|
+
src,
|
|
1398
|
+
function(text) {
|
|
1399
|
+
pre.setAttribute(STATUS_ATTR, STATUS_LOADED);
|
|
1400
|
+
var range = parseRange(pre.getAttribute("data-range"));
|
|
1401
|
+
if (range) {
|
|
1402
|
+
var lines = text.split(/\r\n?|\n/g);
|
|
1403
|
+
var start = range[0];
|
|
1404
|
+
var end = range[1] == null ? lines.length : range[1];
|
|
1405
|
+
if (start < 0) {
|
|
1406
|
+
start += lines.length;
|
|
1407
|
+
}
|
|
1408
|
+
start = Math.max(0, Math.min(start - 1, lines.length));
|
|
1409
|
+
if (end < 0) {
|
|
1410
|
+
end += lines.length;
|
|
1411
|
+
}
|
|
1412
|
+
end = Math.max(0, Math.min(end, lines.length));
|
|
1413
|
+
text = lines.slice(start, end).join("\n");
|
|
1414
|
+
if (!pre.hasAttribute("data-start")) {
|
|
1415
|
+
pre.setAttribute("data-start", String(start + 1));
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
code.textContent = text;
|
|
1419
|
+
Prism.highlightElement(code);
|
|
1420
|
+
},
|
|
1421
|
+
function(error) {
|
|
1422
|
+
pre.setAttribute(STATUS_ATTR, STATUS_FAILED);
|
|
1423
|
+
code.textContent = error;
|
|
1424
|
+
}
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
Prism.plugins.fileHighlight = {
|
|
1429
|
+
/**
|
|
1430
|
+
* Executes the File Highlight plugin for all matching `pre` elements under the given container.
|
|
1431
|
+
*
|
|
1432
|
+
* Note: Elements which are already loaded or currently loading will not be touched by this method.
|
|
1433
|
+
*
|
|
1434
|
+
* @param {ParentNode} [container=document]
|
|
1435
|
+
*/
|
|
1436
|
+
highlight: function highlight(container) {
|
|
1437
|
+
var elements = (container || document).querySelectorAll(SELECTOR);
|
|
1438
|
+
for (var i = 0, element; element = elements[i++]; ) {
|
|
1439
|
+
Prism.highlightElement(element);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
var logged = false;
|
|
1444
|
+
Prism.fileHighlight = function() {
|
|
1445
|
+
if (!logged) {
|
|
1446
|
+
console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.");
|
|
1447
|
+
logged = true;
|
|
1448
|
+
}
|
|
1449
|
+
Prism.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1450
|
+
};
|
|
1451
|
+
})();
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
|
|
1455
|
+
// src/components/x-markdown/markdown/highlight.ts
|
|
1456
|
+
var PrismModule = __toESM(require_prism(), 1);
|
|
1457
|
+
function escapeHtml(input) {
|
|
1458
|
+
return input.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
1459
|
+
}
|
|
1460
|
+
function normalizeLanguage(lang) {
|
|
1461
|
+
var _a;
|
|
1462
|
+
const normalized = (lang || "").trim().toLowerCase();
|
|
1463
|
+
const aliasMap = {
|
|
1464
|
+
js: "javascript",
|
|
1465
|
+
ts: "typescript",
|
|
1466
|
+
sh: "bash",
|
|
1467
|
+
shell: "bash",
|
|
1468
|
+
html: "markup",
|
|
1469
|
+
md: "markdown",
|
|
1470
|
+
yml: "yaml"
|
|
1471
|
+
};
|
|
1472
|
+
return (_a = aliasMap[normalized]) != null ? _a : normalized;
|
|
1473
|
+
}
|
|
1474
|
+
function highlightCodeBlock(code, lang) {
|
|
1475
|
+
var _a, _b, _c;
|
|
1476
|
+
const language = normalizeLanguage(lang) || "text";
|
|
1477
|
+
const prismSource = PrismModule;
|
|
1478
|
+
const prismMaybe = (_b = (_a = prismSource.default) != null ? _a : prismSource["module.exports"]) != null ? _b : prismSource;
|
|
1479
|
+
const prismTarget = "languages" in prismMaybe ? prismMaybe : (_c = prismSource["module.exports"]) != null ? _c : prismMaybe;
|
|
1480
|
+
if (!prismTarget || typeof prismTarget !== "object" || !("languages" in prismTarget)) {
|
|
1481
|
+
return {
|
|
1482
|
+
language,
|
|
1483
|
+
highlightedHtml: escapeHtml(code)
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
const prism = prismTarget;
|
|
1487
|
+
const grammar = prism.languages[language];
|
|
1488
|
+
if (!grammar || typeof grammar !== "object") {
|
|
1489
|
+
return {
|
|
1490
|
+
language,
|
|
1491
|
+
highlightedHtml: escapeHtml(code)
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
return {
|
|
1495
|
+
language,
|
|
1496
|
+
highlightedHtml: prism.highlight(code, grammar, language)
|
|
1497
|
+
};
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
export {
|
|
1501
|
+
highlightCodeBlock
|
|
1502
|
+
};
|
|
1503
|
+
/*! Bundled license information:
|
|
1504
|
+
|
|
1505
|
+
prismjs/prism.js:
|
|
1506
|
+
(**
|
|
1507
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
1508
|
+
*
|
|
1509
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
1510
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
1511
|
+
* @namespace
|
|
1512
|
+
* @public
|
|
1513
|
+
*)
|
|
1514
|
+
*/
|