@layers-app/editor 0.2.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +21 -9
- package/dist/index.js +7 -6
- package/dist/layers.-OFHX18B.js +1 -0
- package/dist/{layers.BhTUGrAR.js → layers.0SH7L8mO.js} +1 -1
- package/dist/{layers.DUiRTlTp.js → layers.3GwrPaZO.js} +18 -19
- package/dist/{layers.CH6Iuzyi.js → layers.3a-Q5eGZ.js} +1 -1
- package/dist/{layers.rygqu4WL.js → layers.48I9suCn.js} +21889 -18323
- package/dist/{layers.D9fixQOA.js → layers.7VVd4tP6.js} +1 -1
- package/dist/{layers.9EqUDU4k.js → layers.9Yn7opmg.js} +8 -9
- package/dist/{layers.3ejTW6XX.js → layers.9Yq4SYpr.js} +1 -1
- package/dist/{layers.BnAorh16.js → layers.9qBnCDzZ.js} +1 -1
- package/dist/{layers.hDLaHwH5.js → layers.B-6ntVZv.js} +33 -33
- package/dist/{layers.VRtyD-xd.js → layers.B-_EI2NU.js} +1 -1
- package/dist/{layers.CDC4ClXB.js → layers.B0CIcvyl.js} +1 -1
- package/dist/{layers.9tX9hjoM.js → layers.B2AGu32C.js} +61 -61
- package/dist/{layers.2AQ7xQA1.js → layers.B2iZKl7a.js} +9 -10
- package/dist/{layers.BiP-hPkZ.js → layers.B3mWbsYz.js} +10 -11
- package/dist/{layers.Cq3szZwz.js → layers.B3oab57P.js} +1 -1
- package/dist/{layers.DYqYeKOI.js → layers.B4edIPhh.js} +1 -1
- package/dist/{layers.Daqbg2O4.js → layers.B5HfO3V6.js} +1 -1
- package/dist/layers.B5JSV7em.js +161 -0
- package/dist/{layers.CJHC8qIJ.js → layers.B6NJ6ccg.js} +1 -1
- package/dist/layers.B7SdSCSK.js +1 -0
- package/dist/{layers.Dppr6-3c.js → layers.BAzHt1-K.js} +3 -3
- package/dist/{layers.C_XAP94a.js → layers.BDSdHwxq.js} +1 -1
- package/dist/{layers.B2c_Ovu-.js → layers.BEjPybmC.js} +1 -1
- package/dist/{layers.Bt3W9dAi.js → layers.BH5Zo2E5.js} +1 -1
- package/dist/{layers.Bnl2Jv5i.js → layers.BHQ_DVN2.js} +1 -1
- package/dist/{layers.DNNCMxtE.js → layers.BJ55htmW.js} +1 -1
- package/dist/{layers.BTcei-93.js → layers.BKbwal2S.js} +1 -1
- package/dist/{layers.VYXA1bG3.js → layers.BKzpK190.js} +1 -1
- package/dist/{layers.BVaotZhy.js → layers.BLA49Uxv.js} +1 -1
- package/dist/layers.BLmU0KXd.js +10 -0
- package/dist/{layers.s8V6wywz.js → layers.BOhRJ2O7.js} +1 -1
- package/dist/{layers.CkyZK2IS.js → layers.BPS0vWZM.js} +1 -1
- package/dist/{layers.CuJWz3E_.js → layers.BQQthCA6.js} +1 -1
- package/dist/{layers.BJYLAxSs.js → layers.BRKlq7jj.js} +2 -2
- package/dist/layers.BRhQ1w-K.js +96 -0
- package/dist/{layers.DlBYLelc.js → layers.BS2w4lr6.js} +1 -1
- package/dist/{layers.BG7A7ffE.js → layers.BS9nCPMs.js} +1 -1
- package/dist/{layers.CMGkFmjc.js → layers.BXmhh7b0.js} +1 -1
- package/dist/{layers.BSdDRhSO.js → layers.BXz0HxFb.js} +1 -1
- package/dist/{layers.HuzTr4zC.js → layers.B_fwh454.js} +1 -1
- package/dist/{layers.BiIeLy7A.js → layers.BaICHlB8.js} +1 -1
- package/dist/{layers.DEPSNolf.js → layers.BaLCIMM8.js} +1 -1
- package/dist/layers.BcE-rdq0.js +1 -0
- package/dist/{layers.CCBm8C8U.js → layers.BcLslZVY.js} +1 -1
- package/dist/{layers.BBYwwmLd.js → layers.Be1IMgFf.js} +1 -1
- package/dist/{layers.D_9bY_t-.js → layers.BeSH60au.js} +1 -1
- package/dist/{layers.1plCI4Lt.js → layers.Bel31pZo.js} +1 -1
- package/dist/{layers.DQ5mCf0I.js → layers.Bgh_aa4B.js} +1 -1
- package/dist/{layers.W0BIeiJ5.js → layers.BhFwDmEi.js} +1 -1
- package/dist/{layers.BCelTQXf.js → layers.BhyRsUUP.js} +1 -1
- package/dist/{layers.BHWS89o-.js → layers.BiQxhxnG.js} +38 -38
- package/dist/{layers.C8GfRths.js → layers.BkpoZP5j.js} +1 -1
- package/dist/{layers.AzzPvkqP.js → layers.BkzTxi7n.js} +54 -55
- package/dist/{layers.DQXet-1J.js → layers.Blb1SJbF.js} +1 -1
- package/dist/{layers.Do4iB9wU.js → layers.BlpEVEZQ.js} +307 -312
- package/dist/{layers.CW_zOmtM.js → layers.BmKXu2hq.js} +37 -38
- package/dist/{layers.Dv_0UBNR.js → layers.Buk0Fw_r.js} +1 -1
- package/dist/{layers.CicK7hYN.js → layers.Bygo74zU.js} +8221 -8487
- package/dist/layers.Bzjuw56r.js +4 -0
- package/dist/{layers.DKd2Mr1q.js → layers.C-dzC33p.js} +1 -1
- package/dist/layers.C-gj1rq0.js +64 -0
- package/dist/{layers.B-G7h4H7.js → layers.C0-A7eRM.js} +1 -1
- package/dist/{layers.D_MpwfMw.js → layers.C2J-9t4F.js} +1 -1
- package/dist/{layers.qTVVdPLE.js → layers.C2lCyyCZ.js} +1 -1
- package/dist/{layers.C5aYTP7O.js → layers.C3WQ9FB9.js} +1 -1
- package/dist/{layers.By291l7s.js → layers.C5JGtTwP.js} +1 -1
- package/dist/{layers.Grpf2RWK.js → layers.C6rX4i15.js} +1 -1
- package/dist/{layers.IGp62Qj_.js → layers.C7xf3nZE.js} +1 -1
- package/dist/{layers.BTk3Z_vD.js → layers.C9Wj3En2.js} +1 -1
- package/dist/{layers.C4-aHur9.js → layers.C9n_72fo.js} +1 -1
- package/dist/{layers.MpsQteFs.js → layers.CA4DyArn.js} +1 -1
- package/dist/{layers.uBahYDq3.js → layers.CAqeoIhq.js} +240 -243
- package/dist/{layers.pHwEvnZJ.js → layers.CBwJFvR2.js} +1 -1
- package/dist/{layers.B-qYK70l.js → layers.CCKbbpP_.js} +1 -1
- package/dist/{layers.B0pggtRF.js → layers.CEhLVWVr.js} +1 -1
- package/dist/layers.CHCM_M7u.js +1 -0
- package/dist/{layers.483xn-Bl.js → layers.CJ2wXM1J.js} +1 -1
- package/dist/{layers.ne_cEX5v.js → layers.CKwrGZha.js} +1 -1
- package/dist/{layers.mmz915yR.js → layers.CLq_gjkT.js} +1 -1
- package/dist/{layers.iD6zaLCZ.js → layers.CLrT_kEd.js} +1 -1
- package/dist/{layers.CNbhhytH.js → layers.CM09dSjO.js} +1 -1
- package/dist/{layers.Bg27OaM9.js → layers.CNSM6wNt.js} +1 -1
- package/dist/{layers.BHYCL4o5.js → layers.CNi2XH-e.js} +1 -1
- package/dist/{layers.B8slhyYG.js → layers.CQ9mG0cW.js} +1 -1
- package/dist/{layers.DcfmkMJl.js → layers.CSdBXHWj.js} +1 -1
- package/dist/{layers.Ck31Q7i2.js → layers.CVpWQln7.js} +2 -2
- package/dist/{layers.DBSdPRxF.js → layers.CWSgM_kw.js} +1 -1
- package/dist/{layers.DeeGpggZ.js → layers.CWkN7sKt.js} +1 -1
- package/dist/{layers.Df6X09xh.js → layers.CXTZloQF.js} +1 -1
- package/dist/{layers.kLCQuljH.js → layers.CYDe1VkW.js} +1 -1
- package/dist/{layers.CbiF6U33.js → layers.CZ4FZo4I.js} +2 -2
- package/dist/{layers.DFwceJbS.js → layers.C_AfKjTB.js} +1 -1
- package/dist/{layers.BeWduWrI.js → layers.CaTJnQ9u.js} +1 -1
- package/dist/{layers.ffBevV8P.js → layers.CakuyGCQ.js} +1 -1
- package/dist/{layers.gFj-vgdV.js → layers.CbmxJEUV.js} +130 -130
- package/dist/{layers.8DUh39fX.js → layers.CcsWrdTv.js} +1 -1
- package/dist/{layers.xNE_QUGz.js → layers.CczDjU9N.js} +56 -56
- package/dist/layers.CdbF8xYj.js +8 -0
- package/dist/layers.ChFAeZ6n.js +2 -0
- package/dist/{layers.aP3mLqj6.js → layers.ChyiO7W2.js} +89 -90
- package/dist/{layers.CXK0XQdB.js → layers.Ci0fy6mm.js} +1 -1
- package/dist/{layers.Bh4GVxAr.js → layers.CinKDuBS.js} +1 -1
- package/dist/{layers.B7OA4M8a.js → layers.CjfXghGO.js} +1 -1
- package/dist/{layers.Cv567KOi.js → layers.CkHkzjP7.js} +1 -1
- package/dist/{layers.CLH6j9NS.js → layers.ClovUFct.js} +14 -15
- package/dist/{layers.eC-5rnhg.js → layers.Cmzu43i4.js} +34 -34
- package/dist/{layers.DUt_7Rf9.js → layers.Cs24L6er.js} +6 -6
- package/dist/{layers.CzHaZXrI.js → layers.CtE1xXZh.js} +1 -1
- package/dist/{layers.CHfDk1nE.js → layers.CtUY0ri3.js} +590 -591
- package/dist/{layers.QmHB-nW4.js → layers.CuC5nLW8.js} +1 -1
- package/dist/{layers.DIGzPqsR.js → layers.CuDNx9A1.js} +1 -1
- package/dist/{layers.D2fAFu-u.js → layers.CugRvVGY.js} +1 -1
- package/dist/{layers.CL4zD2V-.js → layers.CwFOQcrb.js} +4 -5
- package/dist/{layers.DxQ9-H1m.js → layers.CyH2JHOr.js} +1 -1
- package/dist/{layers.-OL3bq3o.js → layers.CzEbMWGx.js} +1 -1
- package/dist/{layers.Bn9AAQbP.js → layers.D0W9WciE.js} +40 -41
- package/dist/{layers.Bst2nqgi.js → layers.D1j5HCgS.js} +7 -8
- package/dist/{layers.BjmIZ493.js → layers.D29gtt0H.js} +1 -1
- package/dist/{layers.DPJVBor5.js → layers.D2Kx1511.js} +1 -1
- package/dist/{layers.Cn-Mx0hd.js → layers.D3U9SdgE.js} +1 -1
- package/dist/{layers.b-cmdFhC.js → layers.D3aDob9Z.js} +1 -1
- package/dist/{layers.DquRnMEp.js → layers.D4A3yxw0.js} +1 -1
- package/dist/{layers.D3abdwgu.js → layers.D4XVPZpA.js} +1 -1
- package/dist/{layers.CnriqUff.js → layers.D7APxkZ4.js} +1 -1
- package/dist/{layers.BgPBFVEC.js → layers.D7yG1HEx.js} +1 -1
- package/dist/{layers.o2G_NKDD.js → layers.D9vlbJdq.js} +80 -81
- package/dist/{layers.4PhrLFZx.js → layers.DBbMzX3L.js} +1 -1
- package/dist/{layers.B0Yqjw4Y.js → layers.DBd1ZxHp.js} +1 -1
- package/dist/{layers.00O89nVD.js → layers.DDbaPvpM.js} +1 -1
- package/dist/{layers.C0NvJvCr.js → layers.DDwqLeSC.js} +1 -1
- package/dist/{layers.Chr07Ef9.js → layers.DEJLw5pD.js} +1 -1
- package/dist/{layers.SOP5HKZO.js → layers.DFUTFOcc.js} +1 -1
- package/dist/{layers.DNst5nFS.js → layers.DGNpEhCF.js} +1 -1
- package/dist/layers.DGt5eZsp.js +2 -0
- package/dist/{layers.Bc3cqOoz.js → layers.DI85re_s.js} +1 -1
- package/dist/{layers.C419BINz.js → layers.DJUAT4C2.js} +6 -6
- package/dist/{layers.BRcsVLeu.js → layers.DK9jGMtC.js} +1 -1
- package/dist/{layers.DmIHK9eJ.js → layers.DLCTcxL1.js} +1 -1
- package/dist/{layers.DT_eGJgS.js → layers.DNpJjBUJ.js} +1 -1
- package/dist/{layers.BZyD05j5.js → layers.DOWkTN19.js} +4 -4
- package/dist/{layers.CcssChT6.js → layers.DOsKyasI.js} +1 -1
- package/dist/{layers.CG5rHKYv.js → layers.DP03vw0i.js} +1 -1
- package/dist/{layers.Bp2i-5Mm.js → layers.DP62iSBu.js} +1 -1
- package/dist/{layers.y8FvF9v6.js → layers.DQtWLaX5.js} +1 -1
- package/dist/{layers.X-fED_on.js → layers.DRx6fpU-.js} +1 -1
- package/dist/{layers.D2TcECio.js → layers.DVASDwnU.js} +1 -1
- package/dist/{layers.C8B6TssE.js → layers.DW88x7MD.js} +1 -1
- package/dist/{layers.CueTKzkm.js → layers.DY33k0DK.js} +1 -1
- package/dist/{layers.apgKIu4l.js → layers.DYEd0u9z.js} +31 -32
- package/dist/{layers.Y3c5kPcm.js → layers.DZ3T1MOr.js} +1 -1
- package/dist/{layers.C4mBYQwW.js → layers.D_ERA5Eg.js} +1 -1
- package/dist/{layers.DwEuL_6C.js → layers.DazxntKQ.js} +6 -7
- package/dist/layers.DcLjb1VI.js +6 -0
- package/dist/{layers.CUU1B2UZ.js → layers.DdZQdfst.js} +1 -1
- package/dist/{layers.BThMruoU.js → layers.Df9wCGO4.js} +1 -1
- package/dist/{layers.DPt2RfiY.js → layers.DgHnZEoL.js} +1 -1
- package/dist/layers.Dl7BTVgv.js +1 -0
- package/dist/{layers.DDf6xrjU.js → layers.DpVMkxT_.js} +1 -1
- package/dist/{layers.-pPft3OI.js → layers.DqJ4YLRH.js} +1 -1
- package/dist/layers.DrdNodqe.js +282 -0
- package/dist/{layers.CafG7ZuY.js → layers.DunslCYq.js} +1 -1
- package/dist/{layers.BqWaaXPX.js → layers.DuqCxozN.js} +1 -1
- package/dist/{layers.B_T5O5Er.js → layers.DvFoHZK-.js} +1 -1
- package/dist/{layers.DgzXJ4DH.js → layers.Dvrki03a.js} +56 -57
- package/dist/{layers.BJ-I0vJN.js → layers.DwGsA97C.js} +1 -1
- package/dist/{layers.DWJs0PZR.js → layers.Dz9flu9L.js} +1 -1
- package/dist/{layers.C6o6RQtm.js → layers.EEZOfKqy.js} +11 -12
- package/dist/layers.F7xHDD6v.js +285 -0
- package/dist/{layers.dQZNkBrA.js → layers.IF5vNpDk.js} +1 -1
- package/dist/{layers.DGhKGmKD.js → layers.KlMi93Ei.js} +1 -1
- package/dist/layers.Km1Ud22C.js +257 -0
- package/dist/{layers.87tOLX-P.js → layers.MTRKGDa2.js} +1 -1
- package/dist/{layers.C9ySrItP.js → layers.MV17d6Mx.js} +1 -1
- package/dist/{layers.DWKo97ry.js → layers.MoTyg_20.js} +16 -16
- package/dist/{layers.X5-0T9Oe.js → layers.Otjc68EQ.js} +1 -1
- package/dist/layers.P3AQhXRL.js +8 -0
- package/dist/{layers.-3hmGtOj.js → layers.PGw1DVB5.js} +1 -1
- package/dist/{layers.2FLa7Fhp.js → layers.TnYc2d7k.js} +1 -1
- package/dist/{layers.qe142_cK.js → layers.UAUOxFCw.js} +1 -1
- package/dist/{layers.BeM2XGEa.js → layers.UFaXcVX-.js} +1 -1
- package/dist/{layers.DE2vsT19.js → layers.UFuuJbTe.js} +2521 -2501
- package/dist/{layers.BoSVQ_Oj.js → layers.VYHrW5HF.js} +1 -1
- package/dist/layers.XuOcZ2YD.js +1 -0
- package/dist/{layers.BXwqALz_.js → layers.XzjaNKF4.js} +1 -1
- package/dist/{layers.0QQGBrpP.js → layers.YIcMqcyp.js} +1 -1
- package/dist/layers._Qb0PjpM.js +1 -0
- package/dist/layers._d3cgXev.js +1 -0
- package/dist/{layers.DRatY5Iy.js → layers._rLtEprV.js} +1 -1
- package/dist/layers.b-LTJte2.js +59 -0
- package/dist/layers.binJQZ6L.js +122 -0
- package/dist/{layers.B0FWzRdR.js → layers.gEwF8vUu.js} +20 -23
- package/dist/{layers.h7S6SsRM.js → layers.iCxIdCf4.js} +13 -14
- package/dist/{layers.CdZl3ntQ.js → layers.j2m1V3h_.js} +1 -1
- package/dist/{layers.CUNYaj1D.js → layers.o15MC5m1.js} +5 -5
- package/dist/layers.oPCvx-2P.js +1 -0
- package/dist/{layers.CVE4jce0.js → layers.pWLA6ZDi.js} +20 -21
- package/dist/{layers.CyQoDdKy.js → layers.sd-cXx8M.js} +18 -19
- package/dist/{layers.N1cdgleb.js → layers.w-DSpxnL.js} +7 -8
- package/dist/{layers.bzJoSIV6.js → layers.wMGES0RI.js} +7 -8
- package/dist/{layers.Cim1zPzA.js → layers.wfJtLKCx.js} +1 -1
- package/dist/{layers.DAnRsXc7.js → layers.xVBO5Ikf.js} +1 -1
- package/dist/{layers.CKkE9H7N.js → layers.z4rFqQ1E.js} +1 -1
- package/dist/{layers.CdZyEgZj.js → layers.zR0cTXnd.js} +1 -1
- package/package.json +5 -6
- package/dist/layers.BLF-afRo.js +0 -233
- package/dist/layers.BWiLrWK6.js +0 -8
- package/dist/layers.BZKzrU05.js +0 -65
- package/dist/layers.BbfeESiy.js +0 -1
- package/dist/layers.BcBIrNcM.js +0 -10
- package/dist/layers.BjeQHwOo.js +0 -2
- package/dist/layers.BqDzm6gC.js +0 -1
- package/dist/layers.BwZorl6w.js +0 -1
- package/dist/layers.BzaWsdbf.js +0 -58
- package/dist/layers.CBLQF0No.js +0 -6
- package/dist/layers.CTi0QugL.js +0 -257
- package/dist/layers.CePskGei.js +0 -1
- package/dist/layers.CrS_Ajc2.js +0 -96
- package/dist/layers.DAWgTwIZ.js +0 -1
- package/dist/layers.DBVjkijS.js +0 -2
- package/dist/layers.DFvYVOeh.js +0 -1
- package/dist/layers.DO5JGPxH.js +0 -4
- package/dist/layers.DaiDnWGv.js +0 -133
- package/dist/layers.DdS7rf8b.js +0 -1
- package/dist/layers.DtPGvHqK.js +0 -1
- package/dist/layers.XrJmqetC.js +0 -1
- package/dist/layers.f9pcCHB8.js +0 -122
- package/dist/layers.kOWaOacB.js +0 -8
- package/dist/layers.w_wuxMUu.js +0 -285
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as At,
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
const t =
|
|
1
|
+
import { l as At, x as zt, aI as It } from "./layers.UFuuJbTe.js";
|
|
2
|
+
const Tt = {};
|
|
3
|
+
function Bt(n, r) {
|
|
4
|
+
const t = Tt, e = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, u = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
5
5
|
return et(n, e, u);
|
|
6
6
|
}
|
|
7
7
|
function et(n, r, t) {
|
|
8
|
-
if (
|
|
8
|
+
if (Lt(n)) {
|
|
9
9
|
if ("value" in n)
|
|
10
10
|
return n.type === "html" && !t ? "" : n.value;
|
|
11
11
|
if (r && "alt" in n && n.alt)
|
|
@@ -22,7 +22,7 @@ function Vn(n, r, t) {
|
|
|
22
22
|
e[u] = et(n[u], r, t);
|
|
23
23
|
return e.join("");
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Lt(n) {
|
|
26
26
|
return !!(n && typeof n == "object");
|
|
27
27
|
}
|
|
28
28
|
function tn(n, r, t, e) {
|
|
@@ -38,14 +38,14 @@ function Y(n, r) {
|
|
|
38
38
|
return n.length > 0 ? (tn(n, n.length, 0, r), n) : r;
|
|
39
39
|
}
|
|
40
40
|
const Wn = {}.hasOwnProperty;
|
|
41
|
-
function
|
|
41
|
+
function Ot(n) {
|
|
42
42
|
const r = {};
|
|
43
43
|
let t = -1;
|
|
44
44
|
for (; ++t < n.length; )
|
|
45
|
-
|
|
45
|
+
Dt(r, n[t]);
|
|
46
46
|
return r;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Dt(n, r) {
|
|
49
49
|
let t;
|
|
50
50
|
for (t in r) {
|
|
51
51
|
const u = (Wn.call(n, t) ? n[t] : void 0) || (n[t] = {}), i = r[t];
|
|
@@ -54,7 +54,7 @@ function _t(n, r) {
|
|
|
54
54
|
for (l in i) {
|
|
55
55
|
Wn.call(u, l) || (u[l] = []);
|
|
56
56
|
const a = i[l];
|
|
57
|
-
|
|
57
|
+
Pt(
|
|
58
58
|
// @ts-expect-error Looks like a list.
|
|
59
59
|
u[l],
|
|
60
60
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -62,14 +62,14 @@ function _t(n, r) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Pt(n, r) {
|
|
66
66
|
let t = -1;
|
|
67
67
|
const e = [];
|
|
68
68
|
for (; ++t < r.length; )
|
|
69
69
|
(r[t].add === "after" ? n : e).push(r[t]);
|
|
70
70
|
tn(n, 0, 0, e);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const _t = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, nn = cn(/[A-Za-z]/), v = cn(/[\dA-Za-z]/), Mt = cn(/[#-'*+\--9=?A-Z^-~]/);
|
|
73
73
|
function An(n) {
|
|
74
74
|
return (
|
|
75
75
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -77,7 +77,7 @@ function An(n) {
|
|
|
77
77
|
n !== null && (n < 32 || n === 127)
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
|
-
const zn = cn(/\d/),
|
|
80
|
+
const zn = cn(/\d/), jt = cn(/[\dA-Fa-f]/), Rt = cn(/[!-/:-@[-`{-~]/);
|
|
81
81
|
function C(n) {
|
|
82
82
|
return n !== null && n < -2;
|
|
83
83
|
}
|
|
@@ -87,7 +87,7 @@ function Z(n) {
|
|
|
87
87
|
function z(n) {
|
|
88
88
|
return n === -2 || n === -1 || n === 32;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const qt = cn(_t), Ht = cn(/\s/);
|
|
91
91
|
function cn(n) {
|
|
92
92
|
return r;
|
|
93
93
|
function r(t) {
|
|
@@ -105,10 +105,10 @@ function O(n, r, t, e) {
|
|
|
105
105
|
return z(m) && i++ < u ? (n.consume(m), a) : (n.exit(t), r(m));
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
tokenize:
|
|
108
|
+
const Nt = {
|
|
109
|
+
tokenize: Vt
|
|
110
110
|
};
|
|
111
|
-
function
|
|
111
|
+
function Vt(n) {
|
|
112
112
|
const r = n.attempt(
|
|
113
113
|
this.parser.constructs.contentInitial,
|
|
114
114
|
e,
|
|
@@ -141,12 +141,12 @@ function Qt(n) {
|
|
|
141
141
|
return C(a) ? (n.consume(a), n.exit("chunkText"), i) : (n.consume(a), l);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
tokenize:
|
|
144
|
+
const Wt = {
|
|
145
|
+
tokenize: Qt
|
|
146
146
|
}, Qn = {
|
|
147
|
-
tokenize:
|
|
147
|
+
tokenize: Ut
|
|
148
148
|
};
|
|
149
|
-
function
|
|
149
|
+
function Qt(n) {
|
|
150
150
|
const r = this, t = [];
|
|
151
151
|
let e = 0, u, i, l;
|
|
152
152
|
return a;
|
|
@@ -276,7 +276,7 @@ function $t(n) {
|
|
|
276
276
|
u.write([null]), i = void 0, u = void 0, r.containerState._closeFlow = void 0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Ut(n, r, t) {
|
|
280
280
|
return O(
|
|
281
281
|
n,
|
|
282
282
|
n.attempt(this.parser.constructs.document, r, t),
|
|
@@ -285,9 +285,9 @@ function Zt(n, r, t) {
|
|
|
285
285
|
);
|
|
286
286
|
}
|
|
287
287
|
function Un(n) {
|
|
288
|
-
if (n === null || Z(n) ||
|
|
288
|
+
if (n === null || Z(n) || Ht(n))
|
|
289
289
|
return 1;
|
|
290
|
-
if (
|
|
290
|
+
if (qt(n))
|
|
291
291
|
return 2;
|
|
292
292
|
}
|
|
293
293
|
function Ln(n, r, t) {
|
|
@@ -301,10 +301,10 @@ function Ln(n, r, t) {
|
|
|
301
301
|
}
|
|
302
302
|
const In = {
|
|
303
303
|
name: "attention",
|
|
304
|
-
tokenize:
|
|
305
|
-
resolveAll:
|
|
304
|
+
tokenize: Zt,
|
|
305
|
+
resolveAll: $t
|
|
306
306
|
};
|
|
307
|
-
function
|
|
307
|
+
function $t(n, r) {
|
|
308
308
|
let t = -1, e, u, i, l, a, m, c, p;
|
|
309
309
|
for (; ++t < n.length; )
|
|
310
310
|
if (n[t][0] === "enter" && n[t][1].type === "attentionSequence" && n[t][1]._close) {
|
|
@@ -362,7 +362,7 @@ function Yt(n, r) {
|
|
|
362
362
|
n[t][1].type === "attentionSequence" && (n[t][1].type = "data");
|
|
363
363
|
return n;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Zt(n, r) {
|
|
366
366
|
const t = this.parser.constructs.attentionMarkers.null, e = this.previous, u = Un(e);
|
|
367
367
|
let i;
|
|
368
368
|
return l;
|
|
@@ -379,11 +379,11 @@ function Gt(n, r) {
|
|
|
379
379
|
function $n(n, r) {
|
|
380
380
|
n.column += r, n.offset += r, n._bufferIndex += r;
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const Yt = {
|
|
383
383
|
name: "autolink",
|
|
384
|
-
tokenize:
|
|
384
|
+
tokenize: Gt
|
|
385
385
|
};
|
|
386
|
-
function
|
|
386
|
+
function Gt(n, r, t) {
|
|
387
387
|
let e = 0;
|
|
388
388
|
return u;
|
|
389
389
|
function u(h) {
|
|
@@ -402,7 +402,7 @@ function Kt(n, r, t) {
|
|
|
402
402
|
return h === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(h), n.exit("autolinkMarker"), n.exit("autolink"), r) : h === null || h === 32 || h === 60 || An(h) ? t(h) : (n.consume(h), m);
|
|
403
403
|
}
|
|
404
404
|
function c(h) {
|
|
405
|
-
return h === 64 ? (n.consume(h), p) :
|
|
405
|
+
return h === 64 ? (n.consume(h), p) : Mt(h) ? (n.consume(h), c) : t(h);
|
|
406
406
|
}
|
|
407
407
|
function p(h) {
|
|
408
408
|
return v(h) ? f(h) : t(h);
|
|
@@ -419,10 +419,10 @@ function Kt(n, r, t) {
|
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
const Sn = {
|
|
422
|
-
tokenize:
|
|
422
|
+
tokenize: Jt,
|
|
423
423
|
partial: !0
|
|
424
424
|
};
|
|
425
|
-
function
|
|
425
|
+
function Jt(n, r, t) {
|
|
426
426
|
return e;
|
|
427
427
|
function e(i) {
|
|
428
428
|
return z(i) ? O(n, u, "linePrefix")(i) : u(i);
|
|
@@ -433,13 +433,13 @@ function Xt(n, r, t) {
|
|
|
433
433
|
}
|
|
434
434
|
const rt = {
|
|
435
435
|
name: "blockQuote",
|
|
436
|
-
tokenize:
|
|
436
|
+
tokenize: Kt,
|
|
437
437
|
continuation: {
|
|
438
|
-
tokenize:
|
|
438
|
+
tokenize: Xt
|
|
439
439
|
},
|
|
440
|
-
exit:
|
|
440
|
+
exit: vt
|
|
441
441
|
};
|
|
442
|
-
function
|
|
442
|
+
function Kt(n, r, t) {
|
|
443
443
|
const e = this;
|
|
444
444
|
return u;
|
|
445
445
|
function u(l) {
|
|
@@ -455,7 +455,7 @@ function vt(n, r, t) {
|
|
|
455
455
|
return z(l) ? (n.enter("blockQuotePrefixWhitespace"), n.consume(l), n.exit("blockQuotePrefixWhitespace"), n.exit("blockQuotePrefix"), r) : (n.exit("blockQuotePrefix"), r(l));
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Xt(n, r, t) {
|
|
459
459
|
const e = this;
|
|
460
460
|
return u;
|
|
461
461
|
function u(l) {
|
|
@@ -470,20 +470,20 @@ function ne(n, r, t) {
|
|
|
470
470
|
return n.attempt(rt, r, t)(l);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function vt(n) {
|
|
474
474
|
n.exit("blockQuote");
|
|
475
475
|
}
|
|
476
476
|
const it = {
|
|
477
477
|
name: "characterEscape",
|
|
478
|
-
tokenize:
|
|
478
|
+
tokenize: ne
|
|
479
479
|
};
|
|
480
|
-
function
|
|
480
|
+
function ne(n, r, t) {
|
|
481
481
|
return e;
|
|
482
482
|
function e(i) {
|
|
483
483
|
return n.enter("characterEscape"), n.enter("escapeMarker"), n.consume(i), n.exit("escapeMarker"), u;
|
|
484
484
|
}
|
|
485
485
|
function u(i) {
|
|
486
|
-
return
|
|
486
|
+
return Rt(i) ? (n.enter("characterEscapeValue"), n.consume(i), n.exit("characterEscapeValue"), n.exit("characterEscape"), r) : t(i);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
const Zn = document.createElement("i");
|
|
@@ -499,9 +499,9 @@ function On(n) {
|
|
|
499
499
|
}
|
|
500
500
|
const ut = {
|
|
501
501
|
name: "characterReference",
|
|
502
|
-
tokenize:
|
|
502
|
+
tokenize: te
|
|
503
503
|
};
|
|
504
|
-
function
|
|
504
|
+
function te(n, r, t) {
|
|
505
505
|
const e = this;
|
|
506
506
|
let u = 0, i, l;
|
|
507
507
|
return a;
|
|
@@ -512,7 +512,7 @@ function re(n, r, t) {
|
|
|
512
512
|
return f === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(f), n.exit("characterReferenceMarkerNumeric"), c) : (n.enter("characterReferenceValue"), i = 31, l = v, p(f));
|
|
513
513
|
}
|
|
514
514
|
function c(f) {
|
|
515
|
-
return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, l =
|
|
515
|
+
return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, l = jt, p) : (n.enter("characterReferenceValue"), i = 7, l = zn, p(f));
|
|
516
516
|
}
|
|
517
517
|
function p(f) {
|
|
518
518
|
if (f === 59 && u) {
|
|
@@ -523,14 +523,14 @@ function re(n, r, t) {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
const Yn = {
|
|
526
|
-
tokenize:
|
|
526
|
+
tokenize: re,
|
|
527
527
|
partial: !0
|
|
528
528
|
}, Gn = {
|
|
529
529
|
name: "codeFenced",
|
|
530
|
-
tokenize:
|
|
530
|
+
tokenize: ee,
|
|
531
531
|
concrete: !0
|
|
532
532
|
};
|
|
533
|
-
function
|
|
533
|
+
function ee(n, r, t) {
|
|
534
534
|
const e = this, u = {
|
|
535
535
|
tokenize: _,
|
|
536
536
|
partial: !0
|
|
@@ -611,7 +611,7 @@ function ie(n, r, t) {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function re(n, r, t) {
|
|
615
615
|
const e = this;
|
|
616
616
|
return u;
|
|
617
617
|
function u(l) {
|
|
@@ -623,12 +623,12 @@ function ue(n, r, t) {
|
|
|
623
623
|
}
|
|
624
624
|
const Cn = {
|
|
625
625
|
name: "codeIndented",
|
|
626
|
-
tokenize:
|
|
627
|
-
},
|
|
628
|
-
tokenize:
|
|
626
|
+
tokenize: ue
|
|
627
|
+
}, ie = {
|
|
628
|
+
tokenize: le,
|
|
629
629
|
partial: !0
|
|
630
630
|
};
|
|
631
|
-
function
|
|
631
|
+
function ue(n, r, t) {
|
|
632
632
|
const e = this;
|
|
633
633
|
return u;
|
|
634
634
|
function u(c) {
|
|
@@ -639,7 +639,7 @@ function ae(n, r, t) {
|
|
|
639
639
|
return p && p[1].type === "linePrefix" && p[2].sliceSerialize(p[1], !0).length >= 4 ? l(c) : t(c);
|
|
640
640
|
}
|
|
641
641
|
function l(c) {
|
|
642
|
-
return c === null ? m(c) : C(c) ? n.attempt(
|
|
642
|
+
return c === null ? m(c) : C(c) ? n.attempt(ie, l, m)(c) : (n.enter("codeFlowValue"), a(c));
|
|
643
643
|
}
|
|
644
644
|
function a(c) {
|
|
645
645
|
return c === null || C(c) ? (n.exit("codeFlowValue"), l(c)) : (n.consume(c), a);
|
|
@@ -648,7 +648,7 @@ function ae(n, r, t) {
|
|
|
648
648
|
return n.exit("codeIndented"), r(c);
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function le(n, r, t) {
|
|
652
652
|
const e = this;
|
|
653
653
|
return u;
|
|
654
654
|
function u(l) {
|
|
@@ -659,13 +659,13 @@ function oe(n, r, t) {
|
|
|
659
659
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? r(l) : C(l) ? u(l) : t(l);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const ae = {
|
|
663
663
|
name: "codeText",
|
|
664
|
-
tokenize:
|
|
665
|
-
resolve:
|
|
666
|
-
previous:
|
|
664
|
+
tokenize: ce,
|
|
665
|
+
resolve: oe,
|
|
666
|
+
previous: se
|
|
667
667
|
};
|
|
668
|
-
function
|
|
668
|
+
function oe(n) {
|
|
669
669
|
let r = n.length - 4, t = 3, e, u;
|
|
670
670
|
if ((n[t][1].type === "lineEnding" || n[t][1].type === "space") && (n[r][1].type === "lineEnding" || n[r][1].type === "space")) {
|
|
671
671
|
for (e = t; ++e < r; )
|
|
@@ -678,10 +678,10 @@ function ce(n) {
|
|
|
678
678
|
u === void 0 ? e !== r && n[e][1].type !== "lineEnding" && (u = e) : (e === r || n[e][1].type === "lineEnding") && (n[u][1].type = "codeTextData", e !== u + 2 && (n[u][1].end = n[e - 1][1].end, n.splice(u + 2, e - u - 2), r -= e - u - 2, e = u + 2), u = void 0);
|
|
679
679
|
return n;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function se(n) {
|
|
682
682
|
return n !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function ce(n, r, t) {
|
|
685
685
|
let e = 0, u, i;
|
|
686
686
|
return l;
|
|
687
687
|
function l(f) {
|
|
@@ -710,7 +710,7 @@ function lt(n) {
|
|
|
710
710
|
for (; ++i < m.length && m[i][1].type !== "content"; )
|
|
711
711
|
m[i][1].type === "chunkText" && (m[i][1]._isInFirstContentOfListItem = !0, i++);
|
|
712
712
|
if (e[0] === "enter")
|
|
713
|
-
e[1].contentType && (Object.assign(r,
|
|
713
|
+
e[1].contentType && (Object.assign(r, he(n, t)), t = r[t], c = !0);
|
|
714
714
|
else if (e[1]._container) {
|
|
715
715
|
for (i = t, u = void 0; i-- && (l = n[i], l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
|
716
716
|
l[0] === "enter" && (u && (n[u][1].type = "lineEndingBlank"), l[1].type = "lineEnding", u = i);
|
|
@@ -719,7 +719,7 @@ function lt(n) {
|
|
|
719
719
|
}
|
|
720
720
|
return !c;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function he(n, r) {
|
|
723
723
|
const t = n[r][1], e = n[r][2];
|
|
724
724
|
let u = r - 1;
|
|
725
725
|
const i = [], l = t._tokenizer || e.parser[t.contentType](t.start), a = l.events, m = [], c = {};
|
|
@@ -741,17 +741,17 @@ function fe(n, r) {
|
|
|
741
741
|
c[A + m[x][0]] = A + m[x][1], A += m[x][1] - m[x][0] - 1;
|
|
742
742
|
return c;
|
|
743
743
|
}
|
|
744
|
-
const
|
|
745
|
-
tokenize:
|
|
746
|
-
resolve:
|
|
747
|
-
},
|
|
748
|
-
tokenize:
|
|
744
|
+
const pe = {
|
|
745
|
+
tokenize: xe,
|
|
746
|
+
resolve: me
|
|
747
|
+
}, fe = {
|
|
748
|
+
tokenize: ge,
|
|
749
749
|
partial: !0
|
|
750
750
|
};
|
|
751
|
-
function
|
|
751
|
+
function me(n) {
|
|
752
752
|
return lt(n), n;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function xe(n, r) {
|
|
755
755
|
let t;
|
|
756
756
|
return e;
|
|
757
757
|
function e(a) {
|
|
@@ -761,7 +761,7 @@ function ke(n, r) {
|
|
|
761
761
|
}
|
|
762
762
|
function u(a) {
|
|
763
763
|
return a === null ? i(a) : C(a) ? n.check(
|
|
764
|
-
|
|
764
|
+
fe,
|
|
765
765
|
l,
|
|
766
766
|
i
|
|
767
767
|
)(a) : (n.consume(a), u);
|
|
@@ -776,7 +776,7 @@ function ke(n, r) {
|
|
|
776
776
|
}), t = t.next, u;
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function ge(n, r, t) {
|
|
780
780
|
const e = this;
|
|
781
781
|
return u;
|
|
782
782
|
function u(l) {
|
|
@@ -875,14 +875,14 @@ function dn(n, r) {
|
|
|
875
875
|
function xn(n) {
|
|
876
876
|
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const ke = {
|
|
879
879
|
name: "definition",
|
|
880
|
-
tokenize:
|
|
881
|
-
},
|
|
882
|
-
tokenize:
|
|
880
|
+
tokenize: be
|
|
881
|
+
}, de = {
|
|
882
|
+
tokenize: ye,
|
|
883
883
|
partial: !0
|
|
884
884
|
};
|
|
885
|
-
function
|
|
885
|
+
function be(n, r, t) {
|
|
886
886
|
const e = this;
|
|
887
887
|
let u;
|
|
888
888
|
return i;
|
|
@@ -923,7 +923,7 @@ function Se(n, r, t) {
|
|
|
923
923
|
)(h);
|
|
924
924
|
}
|
|
925
925
|
function p(h) {
|
|
926
|
-
return n.attempt(
|
|
926
|
+
return n.attempt(de, f, f)(h);
|
|
927
927
|
}
|
|
928
928
|
function f(h) {
|
|
929
929
|
return z(h) ? O(n, x, "whitespace")(h) : x(h);
|
|
@@ -932,7 +932,7 @@ function Se(n, r, t) {
|
|
|
932
932
|
return h === null || C(h) ? (n.exit("definition"), e.parser.defined.push(u), r(h)) : t(h);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function ye(n, r, t) {
|
|
936
936
|
return e;
|
|
937
937
|
function e(a) {
|
|
938
938
|
return Z(a) ? dn(n, u)(a) : t(a);
|
|
@@ -954,11 +954,11 @@ function Fe(n, r, t) {
|
|
|
954
954
|
return a === null || C(a) ? r(a) : t(a);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
const
|
|
957
|
+
const Se = {
|
|
958
958
|
name: "hardBreakEscape",
|
|
959
|
-
tokenize:
|
|
959
|
+
tokenize: Fe
|
|
960
960
|
};
|
|
961
|
-
function
|
|
961
|
+
function Fe(n, r, t) {
|
|
962
962
|
return e;
|
|
963
963
|
function e(i) {
|
|
964
964
|
return n.enter("hardBreakEscape"), n.consume(i), u;
|
|
@@ -967,12 +967,12 @@ function Ce(n, r, t) {
|
|
|
967
967
|
return C(i) ? (n.exit("hardBreakEscape"), r(i)) : t(i);
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
const
|
|
970
|
+
const Ee = {
|
|
971
971
|
name: "headingAtx",
|
|
972
|
-
tokenize:
|
|
973
|
-
resolve:
|
|
972
|
+
tokenize: we,
|
|
973
|
+
resolve: Ce
|
|
974
974
|
};
|
|
975
|
-
function
|
|
975
|
+
function Ce(n, r) {
|
|
976
976
|
let t = n.length - 2, e = 3, u, i;
|
|
977
977
|
return n[e][1].type === "whitespace" && (e += 2), t - 2 > e && n[t][1].type === "whitespace" && (t -= 2), n[t][1].type === "atxHeadingSequence" && (e === t - 1 || t - 4 > e && n[t - 2][1].type === "whitespace") && (t -= e + 1 === t ? 2 : 4), t > e && (u = {
|
|
978
978
|
type: "atxHeadingText",
|
|
@@ -990,7 +990,7 @@ function Ae(n, r) {
|
|
|
990
990
|
["exit", u, r]
|
|
991
991
|
])), n;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function we(n, r, t) {
|
|
994
994
|
let e = 0;
|
|
995
995
|
return u;
|
|
996
996
|
function u(p) {
|
|
@@ -1012,7 +1012,7 @@ function ze(n, r, t) {
|
|
|
1012
1012
|
return p === null || p === 35 || Z(p) ? (n.exit("atxHeadingText"), a(p)) : (n.consume(p), c);
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const Ae = [
|
|
1016
1016
|
"address",
|
|
1017
1017
|
"article",
|
|
1018
1018
|
"aside",
|
|
@@ -1075,25 +1075,25 @@ const Ie = [
|
|
|
1075
1075
|
"tr",
|
|
1076
1076
|
"track",
|
|
1077
1077
|
"ul"
|
|
1078
|
-
], Jn = ["pre", "script", "style", "textarea"],
|
|
1078
|
+
], Jn = ["pre", "script", "style", "textarea"], ze = {
|
|
1079
1079
|
name: "htmlFlow",
|
|
1080
|
-
tokenize:
|
|
1081
|
-
resolveTo:
|
|
1080
|
+
tokenize: Le,
|
|
1081
|
+
resolveTo: Be,
|
|
1082
1082
|
concrete: !0
|
|
1083
|
-
},
|
|
1084
|
-
tokenize:
|
|
1083
|
+
}, Ie = {
|
|
1084
|
+
tokenize: De,
|
|
1085
1085
|
partial: !0
|
|
1086
|
-
},
|
|
1087
|
-
tokenize:
|
|
1086
|
+
}, Te = {
|
|
1087
|
+
tokenize: Oe,
|
|
1088
1088
|
partial: !0
|
|
1089
1089
|
};
|
|
1090
|
-
function
|
|
1090
|
+
function Be(n) {
|
|
1091
1091
|
let r = n.length;
|
|
1092
1092
|
for (; r-- && !(n[r][0] === "enter" && n[r][1].type === "htmlFlow"); )
|
|
1093
1093
|
;
|
|
1094
1094
|
return r > 1 && n[r - 2][1].type === "linePrefix" && (n[r][1].start = n[r - 2][1].start, n[r + 1][1].start = n[r - 2][1].start, n.splice(r - 2, 2)), n;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Le(n, r, t) {
|
|
1097
1097
|
const e = this;
|
|
1098
1098
|
let u, i, l, a, m;
|
|
1099
1099
|
return c;
|
|
@@ -1122,7 +1122,7 @@ function De(n, r, t) {
|
|
|
1122
1122
|
function M(s) {
|
|
1123
1123
|
if (s === null || s === 47 || s === 62 || Z(s)) {
|
|
1124
1124
|
const K = s === 47, hn = l.toLowerCase();
|
|
1125
|
-
return !K && !i && Jn.includes(hn) ? (u = 1, e.interrupt ? r(s) : S(s)) :
|
|
1125
|
+
return !K && !i && Jn.includes(hn) ? (u = 1, e.interrupt ? r(s) : S(s)) : Ae.includes(l.toLowerCase()) ? (u = 6, K ? (n.consume(s), b) : e.interrupt ? r(s) : S(s)) : (u = 7, e.interrupt && !e.parser.lazy[e.now().line] ? t(s) : i ? j(s) : F(s));
|
|
1126
1126
|
}
|
|
1127
1127
|
return s === 45 || v(s) ? (n.consume(s), l += String.fromCharCode(s), M) : t(s);
|
|
1128
1128
|
}
|
|
@@ -1161,14 +1161,14 @@ function De(n, r, t) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
function S(s) {
|
|
1163
1163
|
return s === 45 && u === 2 ? (n.consume(s), U) : s === 60 && u === 1 ? (n.consume(s), W) : s === 62 && u === 4 ? (n.consume(s), J) : s === 63 && u === 3 ? (n.consume(s), o) : s === 93 && u === 5 ? (n.consume(s), en) : C(s) && (u === 6 || u === 7) ? (n.exit("htmlFlowData"), n.check(
|
|
1164
|
-
|
|
1164
|
+
Ie,
|
|
1165
1165
|
rn,
|
|
1166
1166
|
P
|
|
1167
1167
|
)(s)) : s === null || C(s) ? (n.exit("htmlFlowData"), P(s)) : (n.consume(s), S);
|
|
1168
1168
|
}
|
|
1169
1169
|
function P(s) {
|
|
1170
1170
|
return n.check(
|
|
1171
|
-
|
|
1171
|
+
Te,
|
|
1172
1172
|
R,
|
|
1173
1173
|
rn
|
|
1174
1174
|
)(s);
|
|
@@ -1205,7 +1205,7 @@ function De(n, r, t) {
|
|
|
1205
1205
|
return n.exit("htmlFlow"), r(s);
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Oe(n, r, t) {
|
|
1209
1209
|
const e = this;
|
|
1210
1210
|
return u;
|
|
1211
1211
|
function u(l) {
|
|
@@ -1215,17 +1215,17 @@ function Pe(n, r, t) {
|
|
|
1215
1215
|
return e.parser.lazy[e.now().line] ? t(l) : r(l);
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function De(n, r, t) {
|
|
1219
1219
|
return e;
|
|
1220
1220
|
function e(u) {
|
|
1221
1221
|
return n.enter("lineEnding"), n.consume(u), n.exit("lineEnding"), n.attempt(Sn, r, t);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
const
|
|
1224
|
+
const Pe = {
|
|
1225
1225
|
name: "htmlText",
|
|
1226
|
-
tokenize:
|
|
1226
|
+
tokenize: _e
|
|
1227
1227
|
};
|
|
1228
|
-
function
|
|
1228
|
+
function _e(n, r, t) {
|
|
1229
1229
|
const e = this;
|
|
1230
1230
|
let u, i, l;
|
|
1231
1231
|
return a;
|
|
@@ -1325,17 +1325,17 @@ function je(n, r, t) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
const Dn = {
|
|
1327
1327
|
name: "labelEnd",
|
|
1328
|
-
tokenize:
|
|
1329
|
-
resolveTo:
|
|
1330
|
-
resolveAll:
|
|
1328
|
+
tokenize: Ne,
|
|
1329
|
+
resolveTo: He,
|
|
1330
|
+
resolveAll: qe
|
|
1331
|
+
}, Me = {
|
|
1332
|
+
tokenize: Ve
|
|
1333
|
+
}, je = {
|
|
1334
|
+
tokenize: We
|
|
1331
1335
|
}, Re = {
|
|
1332
1336
|
tokenize: Qe
|
|
1333
|
-
}, qe = {
|
|
1334
|
-
tokenize: Ue
|
|
1335
|
-
}, He = {
|
|
1336
|
-
tokenize: $e
|
|
1337
1337
|
};
|
|
1338
|
-
function
|
|
1338
|
+
function qe(n) {
|
|
1339
1339
|
let r = -1;
|
|
1340
1340
|
for (; ++r < n.length; ) {
|
|
1341
1341
|
const t = n[r][1];
|
|
@@ -1343,7 +1343,7 @@ function Ne(n) {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
return n;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function He(n, r) {
|
|
1347
1347
|
let t = n.length, e = 0, u, i, l, a;
|
|
1348
1348
|
for (; t--; )
|
|
1349
1349
|
if (u = n[t][1], i) {
|
|
@@ -1386,7 +1386,7 @@ function Ve(n, r) {
|
|
|
1386
1386
|
["exit", c, r]
|
|
1387
1387
|
]), a = Y(a, n.slice(l + 1)), a = Y(a, [["exit", m, r]]), tn(n, i, n.length, a), n;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Ne(n, r, t) {
|
|
1390
1390
|
const e = this;
|
|
1391
1391
|
let u = e.events.length, i, l;
|
|
1392
1392
|
for (; u--; )
|
|
@@ -1407,18 +1407,18 @@ function We(n, r, t) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
function m(x) {
|
|
1409
1409
|
return x === 40 ? n.attempt(
|
|
1410
|
-
|
|
1410
|
+
Me,
|
|
1411
1411
|
p,
|
|
1412
1412
|
l ? p : f
|
|
1413
1413
|
)(x) : x === 91 ? n.attempt(
|
|
1414
|
-
|
|
1414
|
+
je,
|
|
1415
1415
|
p,
|
|
1416
1416
|
l ? c : f
|
|
1417
1417
|
)(x) : l ? p(x) : f(x);
|
|
1418
1418
|
}
|
|
1419
1419
|
function c(x) {
|
|
1420
1420
|
return n.attempt(
|
|
1421
|
-
|
|
1421
|
+
Re,
|
|
1422
1422
|
p,
|
|
1423
1423
|
f
|
|
1424
1424
|
)(x);
|
|
@@ -1430,7 +1430,7 @@ function We(n, r, t) {
|
|
|
1430
1430
|
return i._balanced = !0, t(x);
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Ve(n, r, t) {
|
|
1434
1434
|
return e;
|
|
1435
1435
|
function e(f) {
|
|
1436
1436
|
return n.enter("resource"), n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), u;
|
|
@@ -1474,7 +1474,7 @@ function Qe(n, r, t) {
|
|
|
1474
1474
|
return f === 41 ? (n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), n.exit("resource"), r) : t(f);
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function We(n, r, t) {
|
|
1478
1478
|
const e = this;
|
|
1479
1479
|
return u;
|
|
1480
1480
|
function u(a) {
|
|
@@ -1499,7 +1499,7 @@ function Ue(n, r, t) {
|
|
|
1499
1499
|
return t(a);
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function Qe(n, r, t) {
|
|
1503
1503
|
return e;
|
|
1504
1504
|
function e(i) {
|
|
1505
1505
|
return n.enter("reference"), n.enter("referenceMarker"), n.consume(i), n.exit("referenceMarker"), u;
|
|
@@ -1508,12 +1508,12 @@ function $e(n, r, t) {
|
|
|
1508
1508
|
return i === 93 ? (n.enter("referenceMarker"), n.consume(i), n.exit("referenceMarker"), n.exit("reference"), r) : t(i);
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
const
|
|
1511
|
+
const Ue = {
|
|
1512
1512
|
name: "labelStartImage",
|
|
1513
|
-
tokenize:
|
|
1513
|
+
tokenize: $e,
|
|
1514
1514
|
resolveAll: Dn.resolveAll
|
|
1515
1515
|
};
|
|
1516
|
-
function
|
|
1516
|
+
function $e(n, r, t) {
|
|
1517
1517
|
const e = this;
|
|
1518
1518
|
return u;
|
|
1519
1519
|
function u(a) {
|
|
@@ -1526,12 +1526,12 @@ function Ye(n, r, t) {
|
|
|
1526
1526
|
return a === 94 && "_hiddenFootnoteSupport" in e.parser.constructs ? t(a) : r(a);
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
const
|
|
1529
|
+
const Ze = {
|
|
1530
1530
|
name: "labelStartLink",
|
|
1531
|
-
tokenize:
|
|
1531
|
+
tokenize: Ye,
|
|
1532
1532
|
resolveAll: Dn.resolveAll
|
|
1533
1533
|
};
|
|
1534
|
-
function
|
|
1534
|
+
function Ye(n, r, t) {
|
|
1535
1535
|
const e = this;
|
|
1536
1536
|
return u;
|
|
1537
1537
|
function u(l) {
|
|
@@ -1543,9 +1543,9 @@ function Je(n, r, t) {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
const wn = {
|
|
1545
1545
|
name: "lineEnding",
|
|
1546
|
-
tokenize:
|
|
1546
|
+
tokenize: Ge
|
|
1547
1547
|
};
|
|
1548
|
-
function
|
|
1548
|
+
function Ge(n, r) {
|
|
1549
1549
|
return t;
|
|
1550
1550
|
function t(e) {
|
|
1551
1551
|
return n.enter("lineEnding"), n.consume(e), n.exit("lineEnding"), O(n, r, "linePrefix");
|
|
@@ -1553,9 +1553,9 @@ function Ke(n, r) {
|
|
|
1553
1553
|
}
|
|
1554
1554
|
const bn = {
|
|
1555
1555
|
name: "thematicBreak",
|
|
1556
|
-
tokenize:
|
|
1556
|
+
tokenize: Je
|
|
1557
1557
|
};
|
|
1558
|
-
function
|
|
1558
|
+
function Je(n, r, t) {
|
|
1559
1559
|
let e = 0, u;
|
|
1560
1560
|
return i;
|
|
1561
1561
|
function i(c) {
|
|
@@ -1573,19 +1573,19 @@ function Xe(n, r, t) {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
const $ = {
|
|
1575
1575
|
name: "list",
|
|
1576
|
-
tokenize:
|
|
1576
|
+
tokenize: ve,
|
|
1577
1577
|
continuation: {
|
|
1578
|
-
tokenize:
|
|
1578
|
+
tokenize: nr
|
|
1579
1579
|
},
|
|
1580
|
-
exit:
|
|
1581
|
-
},
|
|
1582
|
-
tokenize: ur,
|
|
1583
|
-
partial: !0
|
|
1584
|
-
}, nr = {
|
|
1580
|
+
exit: er
|
|
1581
|
+
}, Ke = {
|
|
1585
1582
|
tokenize: rr,
|
|
1586
1583
|
partial: !0
|
|
1584
|
+
}, Xe = {
|
|
1585
|
+
tokenize: tr,
|
|
1586
|
+
partial: !0
|
|
1587
1587
|
};
|
|
1588
|
-
function
|
|
1588
|
+
function ve(n, r, t) {
|
|
1589
1589
|
const e = this, u = e.events[e.events.length - 1];
|
|
1590
1590
|
let i = u && u[1].type === "linePrefix" ? u[2].sliceSerialize(u[1], !0).length : 0, l = 0;
|
|
1591
1591
|
return a;
|
|
@@ -1610,7 +1610,7 @@ function tr(n, r, t) {
|
|
|
1610
1610
|
// Can’t be empty when interrupting.
|
|
1611
1611
|
e.interrupt ? t : p,
|
|
1612
1612
|
n.attempt(
|
|
1613
|
-
|
|
1613
|
+
Ke,
|
|
1614
1614
|
x,
|
|
1615
1615
|
f
|
|
1616
1616
|
)
|
|
@@ -1626,7 +1626,7 @@ function tr(n, r, t) {
|
|
|
1626
1626
|
return e.containerState.size = i + e.sliceSerialize(n.exit("listItemPrefix"), !0).length, r(h);
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function nr(n, r, t) {
|
|
1630
1630
|
const e = this;
|
|
1631
1631
|
return e.containerState._closeFlow = void 0, n.check(Sn, u, i);
|
|
1632
1632
|
function u(a) {
|
|
@@ -1638,7 +1638,7 @@ function er(n, r, t) {
|
|
|
1638
1638
|
)(a);
|
|
1639
1639
|
}
|
|
1640
1640
|
function i(a) {
|
|
1641
|
-
return e.containerState.furtherBlankLines || !z(a) ? (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, l(a)) : (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, n.attempt(
|
|
1641
|
+
return e.containerState.furtherBlankLines || !z(a) ? (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, l(a)) : (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, n.attempt(Xe, r, l)(a));
|
|
1642
1642
|
}
|
|
1643
1643
|
function l(a) {
|
|
1644
1644
|
return e.containerState._closeFlow = !0, e.interrupt = void 0, O(
|
|
@@ -1649,7 +1649,7 @@ function er(n, r, t) {
|
|
|
1649
1649
|
)(a);
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function tr(n, r, t) {
|
|
1653
1653
|
const e = this;
|
|
1654
1654
|
return O(
|
|
1655
1655
|
n,
|
|
@@ -1662,10 +1662,10 @@ function rr(n, r, t) {
|
|
|
1662
1662
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === e.containerState.size ? r(i) : t(i);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function er(n) {
|
|
1666
1666
|
n.exit(this.containerState.type);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function rr(n, r, t) {
|
|
1669
1669
|
const e = this;
|
|
1670
1670
|
return O(
|
|
1671
1671
|
n,
|
|
@@ -1680,10 +1680,10 @@ function ur(n, r, t) {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
const Kn = {
|
|
1682
1682
|
name: "setextUnderline",
|
|
1683
|
-
tokenize:
|
|
1684
|
-
resolveTo:
|
|
1683
|
+
tokenize: ur,
|
|
1684
|
+
resolveTo: ir
|
|
1685
1685
|
};
|
|
1686
|
-
function
|
|
1686
|
+
function ir(n, r) {
|
|
1687
1687
|
let t = n.length, e, u, i;
|
|
1688
1688
|
for (; t--; )
|
|
1689
1689
|
if (n[t][0] === "enter") {
|
|
@@ -1701,7 +1701,7 @@ function lr(n, r) {
|
|
|
1701
1701
|
};
|
|
1702
1702
|
return n[u][1].type = "setextHeadingText", i ? (n.splice(u, 0, ["enter", l, r]), n.splice(i + 1, 0, ["exit", n[e][1], r]), n[e][1].end = Object.assign({}, n[i][1].end)) : n[e][1] = l, n.push(["exit", l, r]), n;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function ur(n, r, t) {
|
|
1705
1705
|
const e = this;
|
|
1706
1706
|
let u;
|
|
1707
1707
|
return i;
|
|
@@ -1724,10 +1724,10 @@ function ar(n, r, t) {
|
|
|
1724
1724
|
return c === null || C(c) ? (n.exit("setextHeadingLine"), r(c)) : t(c);
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
|
-
const
|
|
1728
|
-
tokenize:
|
|
1727
|
+
const lr = {
|
|
1728
|
+
tokenize: ar
|
|
1729
1729
|
};
|
|
1730
|
-
function
|
|
1730
|
+
function ar(n) {
|
|
1731
1731
|
const r = this, t = n.attempt(
|
|
1732
1732
|
// Try to parse a blank line.
|
|
1733
1733
|
Sn,
|
|
@@ -1741,7 +1741,7 @@ function sr(n) {
|
|
|
1741
1741
|
n.attempt(
|
|
1742
1742
|
this.parser.constructs.flow,
|
|
1743
1743
|
u,
|
|
1744
|
-
n.attempt(
|
|
1744
|
+
n.attempt(pe, u)
|
|
1745
1745
|
),
|
|
1746
1746
|
"linePrefix"
|
|
1747
1747
|
)
|
|
@@ -1763,14 +1763,14 @@ function sr(n) {
|
|
|
1763
1763
|
return n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), r.currentConstruct = void 0, t;
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
|
-
const
|
|
1766
|
+
const or = {
|
|
1767
1767
|
resolveAll: ht()
|
|
1768
|
-
},
|
|
1768
|
+
}, sr = ct("string"), cr = ct("text");
|
|
1769
1769
|
function ct(n) {
|
|
1770
1770
|
return {
|
|
1771
1771
|
tokenize: r,
|
|
1772
1772
|
resolveAll: ht(
|
|
1773
|
-
n === "text" ?
|
|
1773
|
+
n === "text" ? hr : void 0
|
|
1774
1774
|
)
|
|
1775
1775
|
};
|
|
1776
1776
|
function r(t) {
|
|
@@ -1813,7 +1813,7 @@ function ht(n) {
|
|
|
1813
1813
|
return n ? n(t, e) : t;
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function hr(n, r) {
|
|
1817
1817
|
let t = 0;
|
|
1818
1818
|
for (; ++t <= n.length; )
|
|
1819
1819
|
if ((t === n.length || n[t][1].type === "lineEnding") && n[t - 1][1].type === "data") {
|
|
@@ -1856,7 +1856,7 @@ function fr(n, r) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return n;
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function pr(n, r, t) {
|
|
1860
1860
|
let e = Object.assign(
|
|
1861
1861
|
t ? Object.assign({}, t) : {
|
|
1862
1862
|
line: 1,
|
|
@@ -1897,10 +1897,10 @@ function mr(n, r, t) {
|
|
|
1897
1897
|
return l = Y(l, y), M(), l[l.length - 1] !== null ? [] : (H(r, 0), c.events = Ln(i, c.events, c), c.events);
|
|
1898
1898
|
}
|
|
1899
1899
|
function x(y, S) {
|
|
1900
|
-
return
|
|
1900
|
+
return mr(h(y), S);
|
|
1901
1901
|
}
|
|
1902
1902
|
function h(y) {
|
|
1903
|
-
return
|
|
1903
|
+
return fr(l, y);
|
|
1904
1904
|
}
|
|
1905
1905
|
function A() {
|
|
1906
1906
|
const { line: y, column: S, offset: P, _index: R, _bufferIndex: w } = e;
|
|
@@ -2013,7 +2013,7 @@ function mr(n, r, t) {
|
|
|
2013
2013
|
e.line in u && e.column < 2 && (e.column = u[e.line], e.offset += u[e.line] - 1);
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function fr(n, r) {
|
|
2017
2017
|
const t = r.start._index, e = r.start._bufferIndex, u = r.end._index, i = r.end._bufferIndex;
|
|
2018
2018
|
let l;
|
|
2019
2019
|
if (t === u)
|
|
@@ -2027,7 +2027,7 @@ function xr(n, r) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
return l;
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function mr(n, r) {
|
|
2031
2031
|
let t = -1;
|
|
2032
2032
|
const e = [];
|
|
2033
2033
|
let u;
|
|
@@ -2068,7 +2068,7 @@ function gr(n, r) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
return e.join("");
|
|
2070
2070
|
}
|
|
2071
|
-
const
|
|
2071
|
+
const xr = {
|
|
2072
2072
|
42: $,
|
|
2073
2073
|
43: $,
|
|
2074
2074
|
45: $,
|
|
@@ -2083,79 +2083,79 @@ const kr = {
|
|
|
2083
2083
|
56: $,
|
|
2084
2084
|
57: $,
|
|
2085
2085
|
62: rt
|
|
2086
|
-
},
|
|
2087
|
-
91:
|
|
2088
|
-
},
|
|
2086
|
+
}, gr = {
|
|
2087
|
+
91: ke
|
|
2088
|
+
}, kr = {
|
|
2089
2089
|
[-2]: Cn,
|
|
2090
2090
|
[-1]: Cn,
|
|
2091
2091
|
32: Cn
|
|
2092
|
-
},
|
|
2093
|
-
35:
|
|
2092
|
+
}, dr = {
|
|
2093
|
+
35: Ee,
|
|
2094
2094
|
42: bn,
|
|
2095
2095
|
45: [Kn, bn],
|
|
2096
|
-
60:
|
|
2096
|
+
60: ze,
|
|
2097
2097
|
61: Kn,
|
|
2098
2098
|
95: bn,
|
|
2099
2099
|
96: Gn,
|
|
2100
2100
|
126: Gn
|
|
2101
|
-
},
|
|
2101
|
+
}, br = {
|
|
2102
2102
|
38: ut,
|
|
2103
2103
|
92: it
|
|
2104
|
-
},
|
|
2104
|
+
}, yr = {
|
|
2105
2105
|
[-5]: wn,
|
|
2106
2106
|
[-4]: wn,
|
|
2107
2107
|
[-3]: wn,
|
|
2108
|
-
33:
|
|
2108
|
+
33: Ue,
|
|
2109
2109
|
38: ut,
|
|
2110
2110
|
42: In,
|
|
2111
|
-
60: [
|
|
2112
|
-
91:
|
|
2113
|
-
92: [
|
|
2111
|
+
60: [Yt, Pe],
|
|
2112
|
+
91: Ze,
|
|
2113
|
+
92: [Se, it],
|
|
2114
2114
|
93: Dn,
|
|
2115
2115
|
95: In,
|
|
2116
|
-
96:
|
|
2117
|
-
},
|
|
2118
|
-
null: [In,
|
|
2119
|
-
},
|
|
2116
|
+
96: ae
|
|
2117
|
+
}, Sr = {
|
|
2118
|
+
null: [In, or]
|
|
2119
|
+
}, Fr = {
|
|
2120
2120
|
null: [42, 95]
|
|
2121
|
-
},
|
|
2121
|
+
}, Er = {
|
|
2122
2122
|
null: []
|
|
2123
|
-
},
|
|
2123
|
+
}, Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2124
2124
|
__proto__: null,
|
|
2125
|
-
attentionMarkers:
|
|
2126
|
-
contentInitial:
|
|
2127
|
-
disable:
|
|
2128
|
-
document:
|
|
2129
|
-
flow:
|
|
2130
|
-
flowInitial:
|
|
2131
|
-
insideSpan:
|
|
2132
|
-
string:
|
|
2133
|
-
text:
|
|
2125
|
+
attentionMarkers: Fr,
|
|
2126
|
+
contentInitial: gr,
|
|
2127
|
+
disable: Er,
|
|
2128
|
+
document: xr,
|
|
2129
|
+
flow: dr,
|
|
2130
|
+
flowInitial: kr,
|
|
2131
|
+
insideSpan: Sr,
|
|
2132
|
+
string: br,
|
|
2133
|
+
text: yr
|
|
2134
2134
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2135
|
-
function
|
|
2135
|
+
function wr(n) {
|
|
2136
2136
|
const t = (
|
|
2137
2137
|
/** @type {FullNormalizedExtension} */
|
|
2138
|
-
|
|
2138
|
+
Ot([Cr, ...(n || {}).extensions || []])
|
|
2139
2139
|
), e = {
|
|
2140
2140
|
defined: [],
|
|
2141
2141
|
lazy: {},
|
|
2142
2142
|
constructs: t,
|
|
2143
|
-
content: u(
|
|
2144
|
-
document: u(
|
|
2145
|
-
flow: u(
|
|
2146
|
-
string: u(
|
|
2147
|
-
text: u(
|
|
2143
|
+
content: u(Nt),
|
|
2144
|
+
document: u(Wt),
|
|
2145
|
+
flow: u(lr),
|
|
2146
|
+
string: u(sr),
|
|
2147
|
+
text: u(cr)
|
|
2148
2148
|
};
|
|
2149
2149
|
return e;
|
|
2150
2150
|
function u(i) {
|
|
2151
2151
|
return l;
|
|
2152
2152
|
function l(a) {
|
|
2153
|
-
return
|
|
2153
|
+
return pr(e, i, a);
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
2156
|
}
|
|
2157
2157
|
const Xn = /[\0\t\n\r]/g;
|
|
2158
|
-
function
|
|
2158
|
+
function Ar() {
|
|
2159
2159
|
let n = 1, r = "", t = !0, e;
|
|
2160
2160
|
return u;
|
|
2161
2161
|
function u(i, l, a) {
|
|
@@ -2190,7 +2190,7 @@ function Ir() {
|
|
|
2190
2190
|
return a && (e && m.push(-5), r && m.push(r), m.push(null)), m;
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function zr(n) {
|
|
2194
2194
|
for (; !lt(n); )
|
|
2195
2195
|
;
|
|
2196
2196
|
return n;
|
|
@@ -2206,11 +2206,11 @@ function pt(n, r) {
|
|
|
2206
2206
|
t > 1114111 ? "�" : String.fromCharCode(t)
|
|
2207
2207
|
);
|
|
2208
2208
|
}
|
|
2209
|
-
const
|
|
2210
|
-
function
|
|
2211
|
-
return n.replace(
|
|
2209
|
+
const Ir = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
2210
|
+
function Tr(n) {
|
|
2211
|
+
return n.replace(Ir, Br);
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function Br(n, r, t) {
|
|
2214
2214
|
if (r)
|
|
2215
2215
|
return r;
|
|
2216
2216
|
if (t.charCodeAt(0) === 35) {
|
|
@@ -2245,14 +2245,14 @@ const ft = {}.hasOwnProperty, mt = (
|
|
|
2245
2245
|
* @returns {Root}
|
|
2246
2246
|
*/
|
|
2247
2247
|
function(n, r, t) {
|
|
2248
|
-
return typeof r != "string" && (t = r, r = void 0),
|
|
2249
|
-
|
|
2250
|
-
|
|
2248
|
+
return typeof r != "string" && (t = r, r = void 0), Lr(t)(
|
|
2249
|
+
zr(
|
|
2250
|
+
wr(t).document().write(Ar()(n, r, !0))
|
|
2251
2251
|
)
|
|
2252
2252
|
);
|
|
2253
2253
|
}
|
|
2254
2254
|
);
|
|
2255
|
-
function
|
|
2255
|
+
function Lr(n) {
|
|
2256
2256
|
const r = {
|
|
2257
2257
|
transforms: [],
|
|
2258
2258
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -2485,7 +2485,7 @@ function Dr(n) {
|
|
|
2485
2485
|
return E.position.end = sn(g.end), E;
|
|
2486
2486
|
}
|
|
2487
2487
|
function x() {
|
|
2488
|
-
return
|
|
2488
|
+
return Bt(this.stack.pop());
|
|
2489
2489
|
}
|
|
2490
2490
|
function h() {
|
|
2491
2491
|
i("expectingFirstListItemValue", !0);
|
|
@@ -2601,7 +2601,7 @@ function Dr(n) {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
function o(g) {
|
|
2603
2603
|
const d = this.sliceSerialize(g), E = this.stack[this.stack.length - 2];
|
|
2604
|
-
E.label =
|
|
2604
|
+
E.label = Tr(d), E.identifier = xn(d).toLowerCase();
|
|
2605
2605
|
}
|
|
2606
2606
|
function J() {
|
|
2607
2607
|
const g = this.stack[this.stack.length - 1], d = this.resume(), E = this.stack[this.stack.length - 1];
|
|
@@ -2775,10 +2775,10 @@ function xt(n, r) {
|
|
|
2775
2775
|
let t = -1;
|
|
2776
2776
|
for (; ++t < r.length; ) {
|
|
2777
2777
|
const e = r[t];
|
|
2778
|
-
Array.isArray(e) ? xt(n, e) :
|
|
2778
|
+
Array.isArray(e) ? xt(n, e) : Or(n, e);
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function Or(n, r) {
|
|
2782
2782
|
let t;
|
|
2783
2783
|
for (t in r)
|
|
2784
2784
|
if (ft.call(r, t)) {
|
|
@@ -2810,13 +2810,13 @@ function tt(n, r) {
|
|
|
2810
2810
|
}) + ") is still open"
|
|
2811
2811
|
);
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2813
|
+
function Dr(n) {
|
|
2814
2814
|
const r = n.replace(/\n{2,}/g, `
|
|
2815
2815
|
`);
|
|
2816
|
-
return
|
|
2816
|
+
return It(r);
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2819
|
-
const r =
|
|
2818
|
+
function Pr(n) {
|
|
2819
|
+
const r = Dr(n), { children: t } = mt(r), e = [[]];
|
|
2820
2820
|
let u = 0;
|
|
2821
2821
|
function i(l, a = "normal") {
|
|
2822
2822
|
l.type === "text" ? l.value.split(`
|
|
@@ -2834,18 +2834,18 @@ function Mr(n) {
|
|
|
2834
2834
|
});
|
|
2835
2835
|
}), e;
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function _r(n) {
|
|
2838
2838
|
const { children: r } = mt(n);
|
|
2839
2839
|
function t(e) {
|
|
2840
2840
|
return e.type === "text" ? e.value.replace(/\n/g, "<br/>") : e.type === "strong" ? `<strong>${e.children.map(t).join("")}</strong>` : e.type === "emphasis" ? `<em>${e.children.map(t).join("")}</em>` : e.type === "paragraph" ? `<p>${e.children.map(t).join("")}</p>` : `Unsupported markdown: ${e.type}`;
|
|
2841
2841
|
}
|
|
2842
2842
|
return r.map(t).join("");
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function Mr(n) {
|
|
2845
2845
|
return Intl.Segmenter ? [...new Intl.Segmenter().segment(n)].map((r) => r.segment) : [...n];
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2848
|
-
const t =
|
|
2847
|
+
function jr(n, r) {
|
|
2848
|
+
const t = Mr(r.content);
|
|
2849
2849
|
return gt(n, [], t, r.type);
|
|
2850
2850
|
}
|
|
2851
2851
|
function gt(n, r, t, e) {
|
|
@@ -2860,7 +2860,7 @@ function gt(n, r, t, e) {
|
|
|
2860
2860
|
{ content: t.join(""), type: e }
|
|
2861
2861
|
]);
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2863
|
+
function Rr(n, r) {
|
|
2864
2864
|
if (n.some(({ content: t }) => t.includes(`
|
|
2865
2865
|
`)))
|
|
2866
2866
|
throw new Error("splitLineToFitWidth does not support newlines in the line");
|
|
@@ -2877,47 +2877,44 @@ function Bn(n, r, t = [], e = []) {
|
|
|
2877
2877
|
if (e.length > 0)
|
|
2878
2878
|
t.push(e), n.unshift(i);
|
|
2879
2879
|
else if (i.content) {
|
|
2880
|
-
const [a, m] =
|
|
2880
|
+
const [a, m] = jr(r, i);
|
|
2881
2881
|
t.push([a]), m.content && n.unshift(m);
|
|
2882
2882
|
}
|
|
2883
2883
|
return Bn(n, r, t);
|
|
2884
2884
|
}
|
|
2885
|
-
function
|
|
2885
|
+
function qr(n, r) {
|
|
2886
2886
|
r && n.attr("style", r);
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function Hr(n, r, t, e, u = !1) {
|
|
2889
2889
|
const i = n.append("foreignObject"), l = i.append("xhtml:div"), a = r.label, m = r.isNode ? "nodeLabel" : "edgeLabel";
|
|
2890
2890
|
l.html(
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
Tt()
|
|
2895
|
-
)
|
|
2896
|
-
), Nr(l, r.labelStyle), l.style("display", "table-cell"), l.style("white-space", "nowrap"), l.style("max-width", t + "px"), l.attr("xmlns", "http://www.w3.org/1999/xhtml"), u && l.attr("class", "labelBkg");
|
|
2891
|
+
`
|
|
2892
|
+
<span class="${m} ${e}" ` + (r.labelStyle ? 'style="' + r.labelStyle + '"' : "") + ">" + a + "</span>"
|
|
2893
|
+
), qr(l, r.labelStyle), l.style("display", "table-cell"), l.style("white-space", "nowrap"), l.style("max-width", t + "px"), l.attr("xmlns", "http://www.w3.org/1999/xhtml"), u && l.attr("class", "labelBkg");
|
|
2897
2894
|
let c = l.node().getBoundingClientRect();
|
|
2898
2895
|
return c.width === t && (l.style("display", "table"), l.style("white-space", "break-spaces"), l.style("width", t + "px"), c = l.node().getBoundingClientRect()), i.style("width", c.width), i.style("height", c.height), i.node();
|
|
2899
2896
|
}
|
|
2900
2897
|
function Pn(n, r, t) {
|
|
2901
2898
|
return n.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", r * t - 0.1 + "em").attr("dy", t + "em");
|
|
2902
2899
|
}
|
|
2903
|
-
function
|
|
2900
|
+
function Nr(n, r, t) {
|
|
2904
2901
|
const e = n.append("text"), u = Pn(e, 1, r);
|
|
2905
2902
|
_n(u, t);
|
|
2906
2903
|
const i = u.node().getComputedTextLength();
|
|
2907
2904
|
return e.remove(), i;
|
|
2908
2905
|
}
|
|
2909
|
-
function
|
|
2906
|
+
function Qr(n, r, t) {
|
|
2910
2907
|
var e;
|
|
2911
2908
|
const u = n.append("text"), i = Pn(u, 1, r);
|
|
2912
2909
|
_n(i, [{ content: t, type: "normal" }]);
|
|
2913
2910
|
const l = (e = i.node()) == null ? void 0 : e.getBoundingClientRect();
|
|
2914
2911
|
return l && u.remove(), l;
|
|
2915
2912
|
}
|
|
2916
|
-
function
|
|
2913
|
+
function Vr(n, r, t, e = !1) {
|
|
2917
2914
|
const i = r.append("g"), l = i.insert("rect").attr("class", "background"), a = i.append("text").attr("y", "-10.1");
|
|
2918
2915
|
let m = 0;
|
|
2919
2916
|
for (const c of t) {
|
|
2920
|
-
const p = (x) =>
|
|
2917
|
+
const p = (x) => Nr(i, 1.1, x) <= n, f = p(c) ? [c] : Rr(c, p);
|
|
2921
2918
|
for (const x of f) {
|
|
2922
2919
|
const h = Pn(a, m, 1.1);
|
|
2923
2920
|
_n(h, x), m++;
|
|
@@ -2935,7 +2932,7 @@ function _n(n, r) {
|
|
|
2935
2932
|
e === 0 ? u.text(t.content) : u.text(" " + t.content);
|
|
2936
2933
|
});
|
|
2937
2934
|
}
|
|
2938
|
-
const
|
|
2935
|
+
const Ur = (n, r = "", {
|
|
2939
2936
|
style: t = "",
|
|
2940
2937
|
isTitle: e = !1,
|
|
2941
2938
|
classes: u = "",
|
|
@@ -2945,7 +2942,7 @@ const Zr = (n, r = "", {
|
|
|
2945
2942
|
addSvgBackground: m = !1
|
|
2946
2943
|
} = {}) => {
|
|
2947
2944
|
if (At.info("createText", r, t, e, u, i, l, m), i) {
|
|
2948
|
-
const c =
|
|
2945
|
+
const c = _r(r), p = {
|
|
2949
2946
|
isNode: l,
|
|
2950
2947
|
label: zt(c).replace(
|
|
2951
2948
|
/fa[blrs]?:fa-[\w-]+/g,
|
|
@@ -2954,13 +2951,13 @@ const Zr = (n, r = "", {
|
|
|
2954
2951
|
),
|
|
2955
2952
|
labelStyle: t.replace("fill:", "color:")
|
|
2956
2953
|
};
|
|
2957
|
-
return
|
|
2954
|
+
return Hr(n, p, a, u, m);
|
|
2958
2955
|
} else {
|
|
2959
|
-
const c =
|
|
2960
|
-
return
|
|
2956
|
+
const c = Pr(r);
|
|
2957
|
+
return Vr(a, n, c, m);
|
|
2961
2958
|
}
|
|
2962
2959
|
};
|
|
2963
2960
|
export {
|
|
2964
|
-
|
|
2965
|
-
|
|
2961
|
+
Qr as a,
|
|
2962
|
+
Ur as c
|
|
2966
2963
|
};
|