@unchainedshop/admin-ui 4.8.33 → 4.8.34
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/{chunk-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
- package/dist/{chunk-PJLYVMUM.js → chunk-4MXPTVDL.js} +2 -2
- package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
- package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
- package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
- package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
- package/dist/{chunk-E77YIMGR.js → chunk-ED2FP42R.js} +1 -1
- package/dist/{chunk-HJKRGBDG.js → chunk-GWMLIF3C.js} +1 -1
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/{chunk-BMDNY67T.js → chunk-PGJTFYBT.js} +1385 -932
- package/dist/{chunk-ICJH36K4.js → chunk-YUXHILXY.js} +1 -1
- package/dist/form.js +797 -286
- package/dist/hooks.js +3 -3
- package/dist/modal.js +5 -5
- package/dist/modules/accounts.js +1 -1
- package/dist/modules/assortment.js +1 -1
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +1 -1
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/order.js +1 -1
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +1 -1
- package/dist/modules/product.js +5 -5
- package/dist/modules/quotation.js +1 -1
- package/dist/modules/token.js +1 -1
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +1 -1
- package/dist/plugins.js +1 -1
- package/dist/providers.js +5 -5
- package/dist/shims/admin-ui-plugins.js +1 -1
- package/dist/shims/apollo-client-react.js +1 -1
- package/dist/shims/apollo-client.js +1 -1
- package/dist/shims/next-head.js +1 -1
- package/dist/shims/next-image.js +1 -1
- package/dist/shims/next-link.js +1 -1
- package/dist/shims/next-router.js +1 -1
- package/dist/shims/react-dom-client.js +1 -1
- package/dist/shims/react-dom.js +1 -1
- package/dist/shims/react-hook-form.js +1 -1
- package/dist/shims/react-intl.js +1 -1
- package/dist/shims/react-jsx-runtime.js +1 -1
- package/dist/shims/react-toastify.js +1 -1
- package/dist/shims/react.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/ui.js +3884 -3401
- package/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/DUswS2PYjGTW9uUGVJ6xd/_buildManifest.js +258 -0
- package/out/_next/static/chunks/0-e21p2v90828.js +23 -0
- package/out/_next/static/chunks/0-w25xfpw-_e9.js +44 -0
- package/out/_next/static/chunks/011h6mc3kuxq9.js +217 -0
- package/out/_next/static/chunks/01n5rd9ngv-t4.js +1 -0
- package/out/_next/static/chunks/01rghd4wcj4ex.js +5 -0
- package/out/_next/static/chunks/03omde6jo6sta.js +1 -0
- package/out/_next/static/chunks/06gyzyq56kw_2.js +6 -0
- package/out/_next/static/chunks/{2ajr0rk0_yax6.js → 06kqbwwnuu3te.js} +1 -1
- package/out/_next/static/chunks/07i53w2a3x0so.js +1 -0
- package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
- package/out/_next/static/chunks/09kihj6ay6mqn.js +39 -0
- package/out/_next/static/chunks/09ml8g7-byzio.js +71 -0
- package/out/_next/static/chunks/09yk8jmltcqcd.js +5 -0
- package/out/_next/static/chunks/0_m0oaoy22un6.js +5 -0
- package/out/_next/static/chunks/0af-w950yl0l5.js +277 -0
- package/out/_next/static/chunks/0ah2m5cl87avs.js +935 -0
- package/out/_next/static/chunks/0ahfhl4hk0fuj.js +12 -0
- package/out/_next/static/chunks/0b4rcc2y1ex8j.js +12 -0
- package/out/_next/static/chunks/0buyef0vid-ym.js +224 -0
- package/out/_next/static/chunks/0czpir4zjwmos.js +1 -0
- package/out/_next/static/chunks/0duy5y86n4tl3.js +5 -0
- package/out/_next/static/chunks/0dzn-wes7gjdt.js +33 -0
- package/out/_next/static/chunks/{2rmgaa88-4bpb.js → 0e4nzgbtw6x_d.js} +4 -4
- package/out/_next/static/chunks/0eb98o1s1ojq7.js +5 -0
- package/out/_next/static/chunks/0gow2wyosbjb6.js +71 -0
- package/out/_next/static/chunks/0h4ehpg2f7fp2.js +46 -0
- package/out/_next/static/chunks/0hgha-mywwcsd.js +8 -0
- package/out/_next/static/chunks/0iliy1guwadr4.js +7 -0
- package/out/_next/static/chunks/0l0hzoqd-va5-.js +1 -0
- package/out/_next/static/chunks/0l1xycyhdztmy.js +46 -0
- package/out/_next/static/chunks/0lh8xbz1qulcr.js +15 -0
- package/out/_next/static/chunks/0mavm6oemhb-d.js +152 -0
- package/out/_next/static/chunks/0nk0kgnsiap5g.js +116 -0
- package/out/_next/static/chunks/0o3o1f00j5wxa.js +8 -0
- package/out/_next/static/chunks/0pny1c_ni8rn7.js +39 -0
- package/out/_next/static/chunks/0q62hlhpcumrt.js +33 -0
- package/out/_next/static/chunks/0qkdih-hi6c2m.js +15 -0
- package/out/_next/static/chunks/0qz61g2g6ijfh.js +54 -0
- package/out/_next/static/chunks/0raj1enjck-ex.js +4 -0
- package/out/_next/static/chunks/0rmomvc8u__n4.js +10 -0
- package/out/_next/static/chunks/0s0ufx1fl32v7.js +12 -0
- package/out/_next/static/chunks/0sgxa66r-iing.js +1 -0
- package/out/_next/static/chunks/0sv5w2_cae8tj.js +7 -0
- package/out/_next/static/chunks/0u_zr87ce7iu-.js +1 -0
- package/out/_next/static/chunks/0ub1l2hrjkz2-.js +1 -0
- package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
- package/out/_next/static/chunks/0uksleo_xd7j5.js +1 -0
- package/out/_next/static/chunks/0wbciytf8tnsa.js +18 -0
- package/out/_next/static/chunks/0wd1l2f5cin-0.js +4 -0
- package/out/_next/static/chunks/0zfm51umxvjc6.js +1 -0
- package/out/_next/static/chunks/10enect1zh1vj.js +3 -0
- package/out/_next/static/chunks/11e6h7l-whxh3.js +7 -0
- package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
- package/out/_next/static/chunks/13bcbgywansr-.js +130 -0
- package/out/_next/static/chunks/13ytpmhxkpnwy.js +1 -0
- package/out/_next/static/chunks/14pnkf7som1m1.js +1 -0
- package/out/_next/static/chunks/17nr-ur3sbo_z.js +24 -0
- package/out/_next/static/chunks/1802-tohqffps.js +1 -0
- package/out/_next/static/chunks/181-yaruteuqm.js +61 -0
- package/out/_next/static/chunks/181zsbok_ljo_.js +4 -0
- package/out/_next/static/chunks/187p6ryym-x3i.js +5 -0
- package/out/_next/static/chunks/198-_r3as1j63.js +8 -0
- package/out/_next/static/chunks/19f7gu0kvm7xl.js +7 -0
- package/out/_next/static/chunks/19kin-dby998k.js +8 -0
- package/out/_next/static/chunks/1aojv48cs6ufj.js +6 -0
- package/out/_next/static/chunks/1cs-w7vppvm8o.js +1 -0
- package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
- package/out/_next/static/chunks/1dedrypk-h8qr.js +1 -0
- package/out/_next/static/chunks/1edk56b1rx05q.js +4 -0
- package/out/_next/static/chunks/1ew4i-mm087xs.js +4 -0
- package/out/_next/static/chunks/1ewn0p_wru2ra.js +15 -0
- package/out/_next/static/chunks/1g1na7eoafolj.js +1 -0
- package/out/_next/static/chunks/1gfocmey44pyr.js +7 -0
- package/out/_next/static/chunks/1grwyry6zqknr.js +100 -0
- package/out/_next/static/chunks/1gyt_0aw92ysk.js +5 -0
- package/out/_next/static/chunks/1hvvot0p0442h.js +5 -0
- package/out/_next/static/chunks/1inbspyz1wpdj.js +1 -0
- package/out/_next/static/chunks/1l2p87t0w4-yb.js +8 -0
- package/out/_next/static/chunks/1lew6f82bg1x1.js +1 -0
- package/out/_next/static/chunks/1nbc2o30_g9bj.js +95 -0
- package/out/_next/static/chunks/1nikeez809jr8.js +2 -0
- package/out/_next/static/chunks/1p1f35qy1lt0s.js +7 -0
- package/out/_next/static/chunks/1p3agrt0e0t9t.js +5 -0
- package/out/_next/static/chunks/1p6qsnui0zjik.js +44 -0
- package/out/_next/static/chunks/1pbfjibxvspoj.js +5 -0
- package/out/_next/static/chunks/1pcrg5m_9agof.js +5 -0
- package/out/_next/static/chunks/1rm2w7nvmejdw.js +31 -0
- package/out/_next/static/chunks/{1---h4b693b81.js → 1t5wlk2j9d4ss.js} +1 -1
- package/out/_next/static/chunks/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
- package/out/_next/static/chunks/1ttpypjue-zdo.js +63 -0
- package/out/_next/static/chunks/1uzvaujlk79rn.js +145 -0
- package/out/_next/static/chunks/1xnlhfvi8m4a8.js +1 -0
- package/out/_next/static/chunks/1y0mbad52vao6.js +5 -0
- package/out/_next/static/chunks/1zfhgsywbsg2e.js +5 -0
- package/out/_next/static/chunks/1zhfbuv-et-34.js +13 -0
- package/out/_next/static/chunks/2-2kg667v82ek.js +171 -0
- package/out/_next/static/chunks/21z3-xqp62vs8.js +7 -0
- package/out/_next/static/chunks/22odam86c8kps.js +1 -0
- package/out/_next/static/chunks/23wfelj92rx3n.js +1 -0
- package/out/_next/static/chunks/243ubs_ig9hwo.js +13 -0
- package/out/_next/static/chunks/249u7sg_mycfl.js +24 -0
- package/out/_next/static/chunks/24_57hr3o_ll8.js +1 -0
- package/out/_next/static/chunks/252_8-fyz3vjh.js +9 -0
- package/out/_next/static/chunks/25_kx8fsd5k0d.js +5 -0
- package/out/_next/static/chunks/26wuxv_gsk3jb.js +30 -0
- package/out/_next/static/chunks/26x7o2gzms54c.js +6 -0
- package/out/_next/static/chunks/27h86ht8kvqop.js +267 -0
- package/out/_next/static/chunks/27tf612b6s-45.js +7 -0
- package/out/_next/static/chunks/{3qzrrjb48t2w3.js → 2893194r7ays6.js} +5 -5
- package/out/_next/static/chunks/294uscwjocbpf.js +5 -0
- package/out/_next/static/chunks/29c8fj1poxxec.js +39 -0
- package/out/_next/static/chunks/{439tz_ubj8h-g.js → 29fdom9djvjop.js} +9 -9
- package/out/_next/static/chunks/2__om5ddn5b91.js +7 -0
- package/out/_next/static/chunks/2_krlw-01uumq.js +119 -0
- package/out/_next/static/chunks/2a1m9ia2zp2t9.js +6 -0
- package/out/_next/static/chunks/2c2arjke9rx-g.js +14 -0
- package/out/_next/static/chunks/2de99go2pdzl3.js +12 -0
- package/out/_next/static/chunks/2dnn7jhe55iy8.js +32 -0
- package/out/_next/static/chunks/2eac98hmhj8tp.js +5 -0
- package/out/_next/static/chunks/2fxjo2s_nsjsa.js +5 -0
- package/out/_next/static/chunks/2h_j6q1pnhf07.js +16 -0
- package/out/_next/static/chunks/2hthxhwh84ls1.css +1 -0
- package/out/_next/static/chunks/2i07f6t3xq708.js +5 -0
- package/out/_next/static/chunks/2i6nzzm63658q.js +10 -0
- package/out/_next/static/chunks/2ksch2zc9k7uj.js +71 -0
- package/out/_next/static/chunks/{1gqd9vrno0rq4.js → 2lh-lsn2en0pp.js} +2 -2
- package/out/_next/static/chunks/2luj-95aqr25b.js +1 -0
- package/out/_next/static/chunks/2m_p_bx_gsrlf.js +5 -0
- package/out/_next/static/chunks/2of_ro6r-fwjx.js +16 -0
- package/out/_next/static/chunks/2oyujmi3aqs6f.js +5 -0
- package/out/_next/static/chunks/2pumckmhpvlo2.js +23 -0
- package/out/_next/static/chunks/2r4x7nghsoqhe.js +7 -0
- package/out/_next/static/chunks/2s-226q_lc70k.js +9 -0
- package/out/_next/static/chunks/2sc_zg0bvlmak.js +78 -0
- package/out/_next/static/chunks/2tlxpweh5c3fh.js +43 -0
- package/out/_next/static/chunks/{1_55km6vm5mc0.js → 2w_0wk23uirx6.js} +7 -7
- package/out/_next/static/chunks/2wg_0x11ef6uc.js +7 -0
- package/out/_next/static/chunks/2zx42lz8zcp91.js +6 -0
- package/out/_next/static/chunks/3-l_ott2smmqm.js +7 -0
- package/out/_next/static/chunks/30lpu8mp25ag1.js +41 -0
- package/out/_next/static/chunks/3168hp9w1h68h.js +68 -0
- package/out/_next/static/chunks/3180oblgqnad5.js +194 -0
- package/out/_next/static/chunks/32traobkc55z_.js +54 -0
- package/out/_next/static/chunks/33s24dpx0eo63.js +2 -0
- package/out/_next/static/chunks/{153ec1_-yt3jb.js → 343n05fzlb2an.js} +5 -5
- package/out/_next/static/chunks/35odkwyh-md-p.js +59 -0
- package/out/_next/static/chunks/35tgy8og7dw73.js +149 -0
- package/out/_next/static/chunks/36mjt8cgckx2r.js +1 -0
- package/out/_next/static/chunks/37j2g662wreov.js +108 -0
- package/out/_next/static/chunks/37vezmh4pf5j4.js +12 -0
- package/out/_next/static/chunks/37y01hdz8sxhr.js +1 -0
- package/out/_next/static/chunks/38uyt89jy0tt7.js +1 -0
- package/out/_next/static/chunks/39-pv-7i0kah_.js +155 -0
- package/out/_next/static/chunks/3__spmlu2_ez6.js +41 -0
- package/out/_next/static/chunks/3_zgl8ng3nj3g.js +9 -0
- package/out/_next/static/chunks/3a6ahlxxtjn1v.js +8 -0
- package/out/_next/static/chunks/{1tkvi0wb-x3v8.js → 3ae7hwg50q67p.js} +2 -2
- package/out/_next/static/chunks/3btzusax1chra.js +36 -0
- package/out/_next/static/chunks/3ciuktttw5i71.js +277 -0
- package/out/_next/static/chunks/{2ho4591ngh3y2.js → 3d0cucf7-qlz9.js} +6 -6
- package/out/_next/static/chunks/3d2mjl6ls12h_.js +5 -0
- package/out/_next/static/chunks/3dxz87hw4lx39.js +1 -0
- package/out/_next/static/chunks/3f2rrfc7u_j6o.js +1 -0
- package/out/_next/static/chunks/3fvf-l1-bp--9.js +5 -0
- package/out/_next/static/chunks/3hubf9lb56zls.js +7 -0
- package/out/_next/static/chunks/3hxp-xwv4g3ek.js +1 -0
- package/out/_next/static/chunks/3ljqspad_536i.js +4 -0
- package/out/_next/static/chunks/3mnca5jc1q8c_.js +43 -0
- package/out/_next/static/chunks/{0q2e8h8498pvo.js → 3qqhr2o1soxh_.js} +1 -1
- package/out/_next/static/chunks/3skw31vkshyt2.js +1 -0
- package/out/_next/static/chunks/3szdkqecej3fb.js +1 -0
- package/out/_next/static/chunks/3t-6admtmkzzy.js +39 -0
- package/out/_next/static/chunks/3t1q9dc-nlr3j.js +1 -0
- package/out/_next/static/chunks/3u6_-nj6i_l_r.js +1 -0
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3uql2yuaknc-3.js +1 -0
- package/out/_next/static/chunks/3vf-3rhaiq_n1.js +6 -0
- package/out/_next/static/chunks/3xtawjchyn0qb.js +1 -0
- package/out/_next/static/chunks/3xze13c1irm_5.js +1 -0
- package/out/_next/static/chunks/3ylglplnmhho2.js +5 -0
- package/out/_next/static/chunks/3ym4exwo-py5d.js +23 -0
- package/out/_next/static/chunks/3yre4w19nehxf.js +1 -0
- package/out/_next/static/chunks/3z51ql4pljujr.js +81 -0
- package/out/_next/static/chunks/3zhcq27e8jjni.js +28 -0
- package/out/_next/static/chunks/40fs5lh83_iox.js +1 -0
- package/out/_next/static/chunks/40kvqov4hgd5s.js +31 -0
- package/out/_next/static/chunks/40trlm34cnu6v.js +108 -0
- package/out/_next/static/chunks/43n5979c79f0d.js +1 -0
- package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +1 -1
- package/out/_next/static/LYf4c16v7ZGmJ_J77NFgQ/_buildManifest.js +0 -258
- package/out/_next/static/chunks/0-_s79k4_7ei_.js +0 -5
- package/out/_next/static/chunks/00aks9rqke2x0.js +0 -7
- package/out/_next/static/chunks/00az81dk4vdda.js +0 -54
- package/out/_next/static/chunks/01e4gd649r2tq.js +0 -7
- package/out/_next/static/chunks/01j2wi94k90x0.js +0 -5
- package/out/_next/static/chunks/043i-g05cyvrd.js +0 -1
- package/out/_next/static/chunks/04kyktzbxprj0.js +0 -61
- package/out/_next/static/chunks/05p330iybjojg.js +0 -44
- package/out/_next/static/chunks/05qk8ozexvlxp.js +0 -5
- package/out/_next/static/chunks/06i50j458a7g5.js +0 -12
- package/out/_next/static/chunks/07o9g5hqfpvjc.js +0 -12
- package/out/_next/static/chunks/08o61gwabp3h1.js +0 -33
- package/out/_next/static/chunks/0_bvgo8ev4gs7.js +0 -7
- package/out/_next/static/chunks/0a5nr3-_q7xx1.js +0 -100
- package/out/_next/static/chunks/0amj69l-d5-85.js +0 -1
- package/out/_next/static/chunks/0b05sca2hdcys.js +0 -30
- package/out/_next/static/chunks/0c3kwkqr9evm4.js +0 -5
- package/out/_next/static/chunks/0c4jv8pwvpxei.js +0 -1
- package/out/_next/static/chunks/0c7ljn9lo_0oh.js +0 -5
- package/out/_next/static/chunks/0ewr86ctcw7fx.js +0 -1
- package/out/_next/static/chunks/0jham55cr3rhy.js +0 -81
- package/out/_next/static/chunks/0lr7o7tyjmrmf.js +0 -8
- package/out/_next/static/chunks/0mx8opz23nwlb.js +0 -5
- package/out/_next/static/chunks/0n3ixknyc6_ma.js +0 -1
- package/out/_next/static/chunks/0o0e82-3pc7ur.js +0 -78
- package/out/_next/static/chunks/0ohk7l49gjm62.js +0 -5
- package/out/_next/static/chunks/0p31l6a9hynnt.js +0 -6
- package/out/_next/static/chunks/0qa-zbgmv-k3p.js +0 -9
- package/out/_next/static/chunks/0qj3xdz043z8l.js +0 -12
- package/out/_next/static/chunks/0skst735jufgh.js +0 -71
- package/out/_next/static/chunks/0t28q5fb2jp-6.js +0 -8
- package/out/_next/static/chunks/0tmamaq8exyij.js +0 -1
- package/out/_next/static/chunks/0ydy3ky15gx62.js +0 -1
- package/out/_next/static/chunks/0zh311lu9jf2x.js +0 -5
- package/out/_next/static/chunks/0zpyyygbqx3pf.js +0 -152
- package/out/_next/static/chunks/0zzoylv2rl1xu.js +0 -3
- package/out/_next/static/chunks/10m_etq9t2pkv.js +0 -7
- package/out/_next/static/chunks/11ehf3t7qzbua.js +0 -4
- package/out/_next/static/chunks/11go520d1hcm5.js +0 -1
- package/out/_next/static/chunks/16le3cqxj12u6.js +0 -5
- package/out/_next/static/chunks/16zxfacsu_jbq.js +0 -1
- package/out/_next/static/chunks/17fibl49qtd6c.js +0 -8
- package/out/_next/static/chunks/182l1mlbf0glb.js +0 -1
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +0 -6
- package/out/_next/static/chunks/1aej6iqnlr74p.js +0 -1
- package/out/_next/static/chunks/1asbed4hne69c.js +0 -7
- package/out/_next/static/chunks/1c60nzy_x4kez.js +0 -277
- package/out/_next/static/chunks/1c77vl6xdqfd4.js +0 -15
- package/out/_next/static/chunks/1da89agg-nacc.js +0 -224
- package/out/_next/static/chunks/1f7-0l47bx76m.js +0 -13
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +0 -1
- package/out/_next/static/chunks/1g96s7-fwvokd.js +0 -2
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +0 -10
- package/out/_next/static/chunks/1hviha1jcz_og.js +0 -4
- package/out/_next/static/chunks/1il9vuoxtb2_n.js +0 -43
- package/out/_next/static/chunks/1jaatdt0mlypl.js +0 -16
- package/out/_next/static/chunks/1l4g6_of_bbr8.js +0 -5
- package/out/_next/static/chunks/1lezxecnoaxnn.js +0 -32
- package/out/_next/static/chunks/1m27au_nmk8_k.js +0 -71
- package/out/_next/static/chunks/1m4fwgl1mj4d-.js +0 -46
- package/out/_next/static/chunks/1ma82ip9shpkc.js +0 -24
- package/out/_next/static/chunks/1nbh1zkzirnuw.js +0 -1
- package/out/_next/static/chunks/1nohf8_cc6gmw.js +0 -9
- package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
- package/out/_next/static/chunks/1qi5yjvzxspwv.js +0 -15
- package/out/_next/static/chunks/1rsexg6dg82f0.js +0 -7
- package/out/_next/static/chunks/1s9v5dndopkuz.js +0 -12
- package/out/_next/static/chunks/1sksqjru86hlm.js +0 -1
- package/out/_next/static/chunks/1u79pcgqjgjpq.js +0 -1
- package/out/_next/static/chunks/1uqiaqtv_0v2x.js +0 -5
- package/out/_next/static/chunks/1x8o-luxdxxk7.js +0 -1
- package/out/_next/static/chunks/1yjb7gogaf8po.js +0 -31
- package/out/_next/static/chunks/1zyhzessv0wtg.js +0 -1
- package/out/_next/static/chunks/2-pl31kdikt3k.js +0 -5
- package/out/_next/static/chunks/20c4_1i5r3kkz.js +0 -1
- package/out/_next/static/chunks/20f2gs8iua6fk.js +0 -1
- package/out/_next/static/chunks/20zdaln201w8j.js +0 -277
- package/out/_next/static/chunks/21l46nbaop06z.js +0 -39
- package/out/_next/static/chunks/22-o32hlte36e.js +0 -130
- package/out/_next/static/chunks/231j2_p-ha14w.js +0 -7
- package/out/_next/static/chunks/23s2f7_-ol94s.js +0 -8
- package/out/_next/static/chunks/23swqksldp1rl.js +0 -5
- package/out/_next/static/chunks/26_mx-ritu68j.js +0 -24
- package/out/_next/static/chunks/26ckmxeluyknq.js +0 -1
- package/out/_next/static/chunks/26r0y7ldf3iqs.js +0 -6
- package/out/_next/static/chunks/27fzoozwycagi.js +0 -6
- package/out/_next/static/chunks/27jmq7a-vh0b4.js +0 -7
- package/out/_next/static/chunks/283567a82x9qi.js +0 -149
- package/out/_next/static/chunks/29he8uukp5s4u.js +0 -31
- package/out/_next/static/chunks/2adglo0sf0jcg.js +0 -905
- package/out/_next/static/chunks/2b4ewxxz6f462.js +0 -7
- package/out/_next/static/chunks/2bh2dv7j9m8c8.css +0 -1
- package/out/_next/static/chunks/2bi8v13lm76lr.js +0 -95
- package/out/_next/static/chunks/2burvpf9877y_.js +0 -44
- package/out/_next/static/chunks/2cj703xtrf5i6.js +0 -46
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +0 -1
- package/out/_next/static/chunks/2ec7xatyld40t.js +0 -7
- package/out/_next/static/chunks/2hoi6cb1lromr.js +0 -4
- package/out/_next/static/chunks/2i5k6tlwd58hp.js +0 -1
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +0 -5
- package/out/_next/static/chunks/2jonbba27xy3u.js +0 -14
- package/out/_next/static/chunks/2m0rrts8gwqwp.js +0 -1
- package/out/_next/static/chunks/2m_u12ggzosat.js +0 -5
- package/out/_next/static/chunks/2mdns56l5antm.js +0 -5
- package/out/_next/static/chunks/2mrbytgs3uetd.js +0 -4
- package/out/_next/static/chunks/2p9gwjxeui1zd.js +0 -71
- package/out/_next/static/chunks/2pfhy9qy_cijn.js +0 -5
- package/out/_next/static/chunks/2q5k4rozyr2wt.js +0 -4
- package/out/_next/static/chunks/2qx8nnki_qv5v.js +0 -171
- package/out/_next/static/chunks/2r_rj84l3cy7r.js +0 -119
- package/out/_next/static/chunks/2rb1-3t3-sv5s.js +0 -8
- package/out/_next/static/chunks/2swxmzb-xk_bo.js +0 -108
- package/out/_next/static/chunks/2t0biwx5e_4w_.js +0 -1
- package/out/_next/static/chunks/2ts3v72jkbcdr.js +0 -7
- package/out/_next/static/chunks/2vfexvltv2avy.js +0 -5
- package/out/_next/static/chunks/2vveotzevnkfp.js +0 -1
- package/out/_next/static/chunks/2wkg65dtx56je.js +0 -155
- package/out/_next/static/chunks/2wmsx4gjbgvfv.js +0 -18
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
- package/out/_next/static/chunks/2xz7hnr9ikqzq.js +0 -7
- package/out/_next/static/chunks/2y1lq1efnvcdt.js +0 -23
- package/out/_next/static/chunks/2ziasg8l_c9n7.js +0 -5
- package/out/_next/static/chunks/3-wsablhqgzoa.js +0 -1
- package/out/_next/static/chunks/30ppb2wc-m4ph.js +0 -1
- package/out/_next/static/chunks/336k08jwyc5i-.js +0 -1
- package/out/_next/static/chunks/33d061qpkafqm.js +0 -39
- package/out/_next/static/chunks/33fyy6d5mo55_.js +0 -8
- package/out/_next/static/chunks/33kh18frqc3b1.js +0 -5
- package/out/_next/static/chunks/33v05ol-ire9s.js +0 -10
- package/out/_next/static/chunks/33yzdcbu7w60l.js +0 -13
- package/out/_next/static/chunks/348l8p7-vo4l5.js +0 -63
- package/out/_next/static/chunks/35hu5vin0swdf.js +0 -41
- package/out/_next/static/chunks/37a6yquh875rn.js +0 -39
- package/out/_next/static/chunks/3_2i9du5-ffrp.js +0 -59
- package/out/_next/static/chunks/3_84h3z_tewmg.js +0 -145
- package/out/_next/static/chunks/3bo7uiy-wh63m.js +0 -108
- package/out/_next/static/chunks/3bqaitmo4sp-a.js +0 -116
- package/out/_next/static/chunks/3c-an5ft_3emc.js +0 -1
- package/out/_next/static/chunks/3d_222ci0_30_.js +0 -41
- package/out/_next/static/chunks/3dldch03dfaed.js +0 -1
- package/out/_next/static/chunks/3eedy49gsvv_t.js +0 -1
- package/out/_next/static/chunks/3fayuejnrsd90.js +0 -15
- package/out/_next/static/chunks/3fqonijzsxy8u.js +0 -28
- package/out/_next/static/chunks/3g1ale0hytu9q.js +0 -12
- package/out/_next/static/chunks/3k3gvr7-e3g_s.js +0 -5
- package/out/_next/static/chunks/3kwoyyxi_-q7m.js +0 -1
- package/out/_next/static/chunks/3le1bywe19_u9.js +0 -1
- package/out/_next/static/chunks/3lku4-9kpf-mj.js +0 -267
- package/out/_next/static/chunks/3lz5h1tw50wr_.js +0 -54
- package/out/_next/static/chunks/3oq-khgfpo0nx.js +0 -39
- package/out/_next/static/chunks/3ps25ocfalcap.js +0 -43
- package/out/_next/static/chunks/3q3m075m4bxz1.js +0 -2
- package/out/_next/static/chunks/3r0i-7zjuz9i1.js +0 -6
- package/out/_next/static/chunks/3rgn5xwtr51ul.js +0 -7
- package/out/_next/static/chunks/3ridg_u19b6ih.js +0 -8
- package/out/_next/static/chunks/3skzk-w2ytvku.js +0 -5
- package/out/_next/static/chunks/3srw10h0hcztd.js +0 -68
- package/out/_next/static/chunks/3tgrftdet8sna.js +0 -15
- package/out/_next/static/chunks/3uax_eq1kjjta.js +0 -1
- package/out/_next/static/chunks/3uj94afpsi6cs.js +0 -1
- package/out/_next/static/chunks/3vgurvjr6hkyv.js +0 -4
- package/out/_next/static/chunks/3viepyovs19ub.js +0 -23
- package/out/_next/static/chunks/3vnzp3n_wd3j_.js +0 -1
- package/out/_next/static/chunks/3w8h5lxnd0z4z.js +0 -1
- package/out/_next/static/chunks/3wh4xa9dnw-55.js +0 -194
- package/out/_next/static/chunks/3wlvio5id54ow.js +0 -5
- package/out/_next/static/chunks/3wzvscqui-9ml.js +0 -23
- package/out/_next/static/chunks/3y8h3g1tqukrv.js +0 -36
- package/out/_next/static/chunks/3zcilnj6p9-t5.js +0 -1
- package/out/_next/static/chunks/3zmmdm68s05-t.js +0 -217
- package/out/_next/static/chunks/40l5d7o95aw37.js +0 -4
- package/out/_next/static/chunks/417kn9hki8k81.js +0 -33
- package/out/_next/static/chunks/42mofxcd0l7qi.js +0 -1
- package/out/_next/static/chunks/43hfssep7ry-z.js +0 -5
- package/out/_next/static/chunks/45bcpjurhxb-j.js +0 -1
- /package/out/_next/static/{LYf4c16v7ZGmJ_J77NFgQ → DUswS2PYjGTW9uUGVJ6xd}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{LYf4c16v7ZGmJ_J77NFgQ → DUswS2PYjGTW9uUGVJ6xd}/_ssgManifest.js +0 -0
|
@@ -1,245 +1,11 @@
|
|
|
1
|
-
import { FieldWrapper_default, clsx_default, Tab_default } from './chunk-
|
|
2
|
-
import { useFormContext_default, useField_default, validateMaxLength } from './chunk-
|
|
1
|
+
import { FieldWrapper_default, clsx_default, Tab_default } from './chunk-GWMLIF3C.js';
|
|
2
|
+
import { useFormContext_default, useField_default, validateMaxLength } from './chunk-ATZJXTRA.js';
|
|
3
3
|
import { PencilIcon_default, EyeIcon_default } from './chunk-HERLM47Z.js';
|
|
4
|
-
import { __commonJS, __export, __toESM } from './chunk-
|
|
4
|
+
import { __commonJS, __export, __toESM } from './chunk-2HTCKO4E.js';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
|
|
9
|
-
// ../node_modules/inline-style-parser/cjs/index.js
|
|
10
|
-
var require_cjs = __commonJS({
|
|
11
|
-
"../node_modules/inline-style-parser/cjs/index.js"(exports, module) {
|
|
12
|
-
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
13
|
-
var NEWLINE_REGEX = /\n/g;
|
|
14
|
-
var WHITESPACE_REGEX = /^\s*/;
|
|
15
|
-
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
16
|
-
var COLON_REGEX = /^:\s*/;
|
|
17
|
-
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
18
|
-
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
19
|
-
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
20
|
-
var NEWLINE = "\n";
|
|
21
|
-
var FORWARD_SLASH = "/";
|
|
22
|
-
var ASTERISK = "*";
|
|
23
|
-
var EMPTY_STRING = "";
|
|
24
|
-
var TYPE_COMMENT = "comment";
|
|
25
|
-
var TYPE_DECLARATION = "declaration";
|
|
26
|
-
function index2(style2, options) {
|
|
27
|
-
if (typeof style2 !== "string") {
|
|
28
|
-
throw new TypeError("First argument must be a string");
|
|
29
|
-
}
|
|
30
|
-
if (!style2) return [];
|
|
31
|
-
options = options || {};
|
|
32
|
-
var lineno = 1;
|
|
33
|
-
var column = 1;
|
|
34
|
-
function updatePosition(str) {
|
|
35
|
-
var lines = str.match(NEWLINE_REGEX);
|
|
36
|
-
if (lines) lineno += lines.length;
|
|
37
|
-
var i = str.lastIndexOf(NEWLINE);
|
|
38
|
-
column = ~i ? str.length - i : column + str.length;
|
|
39
|
-
}
|
|
40
|
-
function position4() {
|
|
41
|
-
var start2 = { line: lineno, column };
|
|
42
|
-
return function(node2) {
|
|
43
|
-
node2.position = new Position(start2);
|
|
44
|
-
whitespace2();
|
|
45
|
-
return node2;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function Position(start2) {
|
|
49
|
-
this.start = start2;
|
|
50
|
-
this.end = { line: lineno, column };
|
|
51
|
-
this.source = options.source;
|
|
52
|
-
}
|
|
53
|
-
Position.prototype.content = style2;
|
|
54
|
-
function error(msg) {
|
|
55
|
-
var err = new Error(
|
|
56
|
-
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
57
|
-
);
|
|
58
|
-
err.reason = msg;
|
|
59
|
-
err.filename = options.source;
|
|
60
|
-
err.line = lineno;
|
|
61
|
-
err.column = column;
|
|
62
|
-
err.source = style2;
|
|
63
|
-
if (options.silent) ;
|
|
64
|
-
else {
|
|
65
|
-
throw err;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function match(re2) {
|
|
69
|
-
var m = re2.exec(style2);
|
|
70
|
-
if (!m) return;
|
|
71
|
-
var str = m[0];
|
|
72
|
-
updatePosition(str);
|
|
73
|
-
style2 = style2.slice(str.length);
|
|
74
|
-
return m;
|
|
75
|
-
}
|
|
76
|
-
function whitespace2() {
|
|
77
|
-
match(WHITESPACE_REGEX);
|
|
78
|
-
}
|
|
79
|
-
function comments(rules) {
|
|
80
|
-
var c;
|
|
81
|
-
rules = rules || [];
|
|
82
|
-
while (c = comment4()) {
|
|
83
|
-
if (c !== false) {
|
|
84
|
-
rules.push(c);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return rules;
|
|
88
|
-
}
|
|
89
|
-
function comment4() {
|
|
90
|
-
var pos = position4();
|
|
91
|
-
if (FORWARD_SLASH != style2.charAt(0) || ASTERISK != style2.charAt(1)) return;
|
|
92
|
-
var i = 2;
|
|
93
|
-
while (EMPTY_STRING != style2.charAt(i) && (ASTERISK != style2.charAt(i) || FORWARD_SLASH != style2.charAt(i + 1))) {
|
|
94
|
-
++i;
|
|
95
|
-
}
|
|
96
|
-
i += 2;
|
|
97
|
-
if (EMPTY_STRING === style2.charAt(i - 1)) {
|
|
98
|
-
return error("End of comment missing");
|
|
99
|
-
}
|
|
100
|
-
var str = style2.slice(2, i - 2);
|
|
101
|
-
column += 2;
|
|
102
|
-
updatePosition(str);
|
|
103
|
-
style2 = style2.slice(i);
|
|
104
|
-
column += 2;
|
|
105
|
-
return pos({
|
|
106
|
-
type: TYPE_COMMENT,
|
|
107
|
-
comment: str
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function declaration() {
|
|
111
|
-
var pos = position4();
|
|
112
|
-
var prop = match(PROPERTY_REGEX);
|
|
113
|
-
if (!prop) return;
|
|
114
|
-
comment4();
|
|
115
|
-
if (!match(COLON_REGEX)) return error("property missing ':'");
|
|
116
|
-
var val = match(VALUE_REGEX);
|
|
117
|
-
var ret = pos({
|
|
118
|
-
type: TYPE_DECLARATION,
|
|
119
|
-
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
120
|
-
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
121
|
-
});
|
|
122
|
-
match(SEMICOLON_REGEX);
|
|
123
|
-
return ret;
|
|
124
|
-
}
|
|
125
|
-
function declarations() {
|
|
126
|
-
var decls = [];
|
|
127
|
-
comments(decls);
|
|
128
|
-
var decl;
|
|
129
|
-
while (decl = declaration()) {
|
|
130
|
-
if (decl !== false) {
|
|
131
|
-
decls.push(decl);
|
|
132
|
-
comments(decls);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return decls;
|
|
136
|
-
}
|
|
137
|
-
whitespace2();
|
|
138
|
-
return declarations();
|
|
139
|
-
}
|
|
140
|
-
function trim(str) {
|
|
141
|
-
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
142
|
-
}
|
|
143
|
-
module.exports = index2;
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
// ../node_modules/style-to-object/cjs/index.js
|
|
148
|
-
var require_cjs2 = __commonJS({
|
|
149
|
-
"../node_modules/style-to-object/cjs/index.js"(exports) {
|
|
150
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
151
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
152
|
-
};
|
|
153
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
154
|
-
exports.default = StyleToObject;
|
|
155
|
-
var inline_style_parser_1 = __importDefault(require_cjs());
|
|
156
|
-
function StyleToObject(style2, iterator) {
|
|
157
|
-
let styleObject = null;
|
|
158
|
-
if (!style2 || typeof style2 !== "string") {
|
|
159
|
-
return styleObject;
|
|
160
|
-
}
|
|
161
|
-
const declarations = (0, inline_style_parser_1.default)(style2);
|
|
162
|
-
const hasIterator = typeof iterator === "function";
|
|
163
|
-
declarations.forEach((declaration) => {
|
|
164
|
-
if (declaration.type !== "declaration") {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
const { property, value } = declaration;
|
|
168
|
-
if (hasIterator) {
|
|
169
|
-
iterator(property, value, declaration);
|
|
170
|
-
} else if (value) {
|
|
171
|
-
styleObject = styleObject || {};
|
|
172
|
-
styleObject[property] = value;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
return styleObject;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
// ../node_modules/style-to-js/cjs/utilities.js
|
|
181
|
-
var require_utilities = __commonJS({
|
|
182
|
-
"../node_modules/style-to-js/cjs/utilities.js"(exports) {
|
|
183
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
184
|
-
exports.camelCase = void 0;
|
|
185
|
-
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
|
|
186
|
-
var HYPHEN_REGEX = /-([a-z])/g;
|
|
187
|
-
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
188
|
-
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
189
|
-
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
190
|
-
var skipCamelCase = function(property) {
|
|
191
|
-
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
192
|
-
};
|
|
193
|
-
var capitalize = function(match, character) {
|
|
194
|
-
return character.toUpperCase();
|
|
195
|
-
};
|
|
196
|
-
var trimHyphen = function(match, prefix) {
|
|
197
|
-
return "".concat(prefix, "-");
|
|
198
|
-
};
|
|
199
|
-
var camelCase = function(property, options) {
|
|
200
|
-
if (options === void 0) {
|
|
201
|
-
options = {};
|
|
202
|
-
}
|
|
203
|
-
if (skipCamelCase(property)) {
|
|
204
|
-
return property;
|
|
205
|
-
}
|
|
206
|
-
property = property.toLowerCase();
|
|
207
|
-
if (options.reactCompat) {
|
|
208
|
-
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
209
|
-
} else {
|
|
210
|
-
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
211
|
-
}
|
|
212
|
-
return property.replace(HYPHEN_REGEX, capitalize);
|
|
213
|
-
};
|
|
214
|
-
exports.camelCase = camelCase;
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
// ../node_modules/style-to-js/cjs/index.js
|
|
219
|
-
var require_cjs3 = __commonJS({
|
|
220
|
-
"../node_modules/style-to-js/cjs/index.js"(exports, module) {
|
|
221
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
222
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
223
|
-
};
|
|
224
|
-
var style_to_object_1 = __importDefault(require_cjs2());
|
|
225
|
-
var utilities_1 = require_utilities();
|
|
226
|
-
function StyleToJS(style2, options) {
|
|
227
|
-
var output = {};
|
|
228
|
-
if (!style2 || typeof style2 !== "string") {
|
|
229
|
-
return output;
|
|
230
|
-
}
|
|
231
|
-
(0, style_to_object_1.default)(style2, function(property, value) {
|
|
232
|
-
if (property && value) {
|
|
233
|
-
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
return output;
|
|
237
|
-
}
|
|
238
|
-
StyleToJS.default = StyleToJS;
|
|
239
|
-
module.exports = StyleToJS;
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
|
|
243
9
|
// ../node_modules/extend/index.js
|
|
244
10
|
var require_extend = __commonJS({
|
|
245
11
|
"../node_modules/extend/index.js"(exports, module) {
|
|
@@ -428,20 +194,20 @@ function unreachable() {
|
|
|
428
194
|
function parse(value) {
|
|
429
195
|
const tokens = [];
|
|
430
196
|
const input = String(value || "");
|
|
431
|
-
let
|
|
197
|
+
let index3 = input.indexOf(",");
|
|
432
198
|
let start2 = 0;
|
|
433
199
|
let end = false;
|
|
434
200
|
while (!end) {
|
|
435
|
-
if (
|
|
436
|
-
|
|
201
|
+
if (index3 === -1) {
|
|
202
|
+
index3 = input.length;
|
|
437
203
|
end = true;
|
|
438
204
|
}
|
|
439
|
-
const token = input.slice(start2,
|
|
205
|
+
const token = input.slice(start2, index3).trim();
|
|
440
206
|
if (token || !end) {
|
|
441
207
|
tokens.push(token);
|
|
442
208
|
}
|
|
443
|
-
start2 =
|
|
444
|
-
|
|
209
|
+
start2 = index3 + 1;
|
|
210
|
+
index3 = input.indexOf(",", start2);
|
|
445
211
|
}
|
|
446
212
|
return tokens;
|
|
447
213
|
}
|
|
@@ -583,13 +349,13 @@ var DefinedInfo = class extends Info {
|
|
|
583
349
|
* Info.
|
|
584
350
|
*/
|
|
585
351
|
constructor(property, attribute, mask, space2) {
|
|
586
|
-
let
|
|
352
|
+
let index3 = -1;
|
|
587
353
|
super(property, attribute);
|
|
588
354
|
mark(this, "space", space2);
|
|
589
355
|
if (typeof mask === "number") {
|
|
590
|
-
while (++
|
|
591
|
-
const
|
|
592
|
-
mark(this, checks[
|
|
356
|
+
while (++index3 < checks.length) {
|
|
357
|
+
const check2 = checks[index3];
|
|
358
|
+
mark(this, checks[index3], (mask & types_exports[check2]) === types_exports[check2]);
|
|
593
359
|
}
|
|
594
360
|
}
|
|
595
361
|
}
|
|
@@ -1732,8 +1498,147 @@ function stringify2(values) {
|
|
|
1732
1498
|
return values.join(" ").trim();
|
|
1733
1499
|
}
|
|
1734
1500
|
|
|
1735
|
-
// ../node_modules/
|
|
1736
|
-
var
|
|
1501
|
+
// ../node_modules/inline-style-parser/esm/index.mjs
|
|
1502
|
+
var COMMENT_REGEX = /\/\*(?:[^*]|\*(?!\/))*\*\//g;
|
|
1503
|
+
var NEWLINE_REGEX = /\n/g;
|
|
1504
|
+
var WHITESPACE_REGEX = /^\s*/;
|
|
1505
|
+
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
1506
|
+
var COLON_REGEX = /^:\s*/;
|
|
1507
|
+
var VALUE_REGEX = /^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/;
|
|
1508
|
+
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
1509
|
+
var NEWLINE = "\n";
|
|
1510
|
+
var FORWARD_SLASH = "/";
|
|
1511
|
+
var ASTERISK = "*";
|
|
1512
|
+
var EMPTY_STRING = "";
|
|
1513
|
+
var TYPE_COMMENT = "comment";
|
|
1514
|
+
var TYPE_DECLARATION = "declaration";
|
|
1515
|
+
function index(style2, options) {
|
|
1516
|
+
if (typeof style2 !== "string") {
|
|
1517
|
+
throw new TypeError("First argument must be a string");
|
|
1518
|
+
}
|
|
1519
|
+
if (!style2) return [];
|
|
1520
|
+
options = options || {};
|
|
1521
|
+
var lineno = 1;
|
|
1522
|
+
var column = 1;
|
|
1523
|
+
function updatePosition(str) {
|
|
1524
|
+
var lines = str.match(NEWLINE_REGEX);
|
|
1525
|
+
if (lines) lineno += lines.length;
|
|
1526
|
+
var i = str.lastIndexOf(NEWLINE);
|
|
1527
|
+
column = ~i ? str.length - i : column + str.length;
|
|
1528
|
+
}
|
|
1529
|
+
function position4() {
|
|
1530
|
+
var start2 = { line: lineno, column };
|
|
1531
|
+
return function(node2) {
|
|
1532
|
+
node2.position = new Position(start2);
|
|
1533
|
+
whitespace2();
|
|
1534
|
+
return node2;
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
function Position(start2) {
|
|
1538
|
+
this.start = start2;
|
|
1539
|
+
this.end = { line: lineno, column };
|
|
1540
|
+
this.source = options.source;
|
|
1541
|
+
}
|
|
1542
|
+
Position.prototype.content = style2;
|
|
1543
|
+
function error(msg) {
|
|
1544
|
+
var err = new Error(
|
|
1545
|
+
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
1546
|
+
);
|
|
1547
|
+
err.reason = msg;
|
|
1548
|
+
err.filename = options.source;
|
|
1549
|
+
err.line = lineno;
|
|
1550
|
+
err.column = column;
|
|
1551
|
+
err.source = style2;
|
|
1552
|
+
if (options.silent) ;
|
|
1553
|
+
else {
|
|
1554
|
+
throw err;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
function match(re2) {
|
|
1558
|
+
var m = re2.exec(style2);
|
|
1559
|
+
if (!m) return;
|
|
1560
|
+
var str = m[0];
|
|
1561
|
+
updatePosition(str);
|
|
1562
|
+
style2 = style2.slice(str.length);
|
|
1563
|
+
return m;
|
|
1564
|
+
}
|
|
1565
|
+
function whitespace2() {
|
|
1566
|
+
match(WHITESPACE_REGEX);
|
|
1567
|
+
}
|
|
1568
|
+
function comments(rules) {
|
|
1569
|
+
var c;
|
|
1570
|
+
while (c = comment4()) {
|
|
1571
|
+
rules.push(c);
|
|
1572
|
+
}
|
|
1573
|
+
return rules;
|
|
1574
|
+
}
|
|
1575
|
+
function comment4() {
|
|
1576
|
+
var pos = position4();
|
|
1577
|
+
if (FORWARD_SLASH != style2.charAt(0) || ASTERISK != style2.charAt(1)) return;
|
|
1578
|
+
var i = 2;
|
|
1579
|
+
while (EMPTY_STRING != style2.charAt(i) && (ASTERISK != style2.charAt(i) || FORWARD_SLASH != style2.charAt(i + 1))) {
|
|
1580
|
+
++i;
|
|
1581
|
+
}
|
|
1582
|
+
i += 2;
|
|
1583
|
+
if (EMPTY_STRING === style2.charAt(i - 1)) {
|
|
1584
|
+
return error("End of comment missing");
|
|
1585
|
+
}
|
|
1586
|
+
var str = style2.slice(2, i - 2);
|
|
1587
|
+
column += 2;
|
|
1588
|
+
updatePosition(str);
|
|
1589
|
+
style2 = style2.slice(i);
|
|
1590
|
+
column += 2;
|
|
1591
|
+
return pos({
|
|
1592
|
+
type: TYPE_COMMENT,
|
|
1593
|
+
comment: str
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
function declaration() {
|
|
1597
|
+
var pos = position4();
|
|
1598
|
+
var prop = match(PROPERTY_REGEX);
|
|
1599
|
+
if (!prop) return;
|
|
1600
|
+
comment4();
|
|
1601
|
+
if (!match(COLON_REGEX)) return error("property missing ':'");
|
|
1602
|
+
var val = match(VALUE_REGEX);
|
|
1603
|
+
var ret = pos({
|
|
1604
|
+
type: TYPE_DECLARATION,
|
|
1605
|
+
property: prop[0].replace(COMMENT_REGEX, EMPTY_STRING).trim(),
|
|
1606
|
+
value: val ? val[0].replace(COMMENT_REGEX, EMPTY_STRING).trim() : EMPTY_STRING
|
|
1607
|
+
});
|
|
1608
|
+
match(SEMICOLON_REGEX);
|
|
1609
|
+
return ret;
|
|
1610
|
+
}
|
|
1611
|
+
function declarations() {
|
|
1612
|
+
var decls = [];
|
|
1613
|
+
comments(decls);
|
|
1614
|
+
var decl;
|
|
1615
|
+
while (decl = declaration()) {
|
|
1616
|
+
decls.push(decl);
|
|
1617
|
+
comments(decls);
|
|
1618
|
+
}
|
|
1619
|
+
return decls;
|
|
1620
|
+
}
|
|
1621
|
+
whitespace2();
|
|
1622
|
+
return declarations();
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
// ../node_modules/style-to-object/esm/index.mjs
|
|
1626
|
+
function StyleToObject(style2, iterator) {
|
|
1627
|
+
let styleObject = null;
|
|
1628
|
+
if (!style2 || typeof style2 !== "string") return styleObject;
|
|
1629
|
+
const declarations = index(style2);
|
|
1630
|
+
const hasIterator = typeof iterator === "function";
|
|
1631
|
+
declarations.forEach((declaration) => {
|
|
1632
|
+
if (declaration.type !== "declaration") return;
|
|
1633
|
+
const { property, value } = declaration;
|
|
1634
|
+
if (hasIterator) iterator(property, value, declaration);
|
|
1635
|
+
else if (value) {
|
|
1636
|
+
styleObject = styleObject ?? {};
|
|
1637
|
+
styleObject[property] = value;
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
return styleObject;
|
|
1641
|
+
}
|
|
1737
1642
|
|
|
1738
1643
|
// ../node_modules/unist-util-position/lib/index.js
|
|
1739
1644
|
var pointEnd = point("end");
|
|
@@ -1776,12 +1681,12 @@ function stringifyPosition(value) {
|
|
|
1776
1681
|
return "";
|
|
1777
1682
|
}
|
|
1778
1683
|
function point2(point5) {
|
|
1779
|
-
return
|
|
1684
|
+
return index2(point5 && point5.line) + ":" + index2(point5 && point5.column);
|
|
1780
1685
|
}
|
|
1781
1686
|
function position2(pos) {
|
|
1782
1687
|
return point2(pos && pos.start) + "-" + point2(pos && pos.end);
|
|
1783
1688
|
}
|
|
1784
|
-
function
|
|
1689
|
+
function index2(value) {
|
|
1785
1690
|
return value && typeof value === "number" ? value : 1;
|
|
1786
1691
|
}
|
|
1787
1692
|
|
|
@@ -1873,12 +1778,12 @@ var VFileMessage = class extends Error {
|
|
|
1873
1778
|
options.cause = causeOrReason;
|
|
1874
1779
|
}
|
|
1875
1780
|
if (!options.ruleId && !options.source && typeof origin === "string") {
|
|
1876
|
-
const
|
|
1877
|
-
if (
|
|
1781
|
+
const index3 = origin.indexOf(":");
|
|
1782
|
+
if (index3 === -1) {
|
|
1878
1783
|
options.ruleId = origin;
|
|
1879
1784
|
} else {
|
|
1880
|
-
options.source = origin.slice(0,
|
|
1881
|
-
options.ruleId = origin.slice(
|
|
1785
|
+
options.source = origin.slice(0, index3);
|
|
1786
|
+
options.ruleId = origin.slice(index3 + 1);
|
|
1882
1787
|
}
|
|
1883
1788
|
}
|
|
1884
1789
|
if (!options.place && options.ancestors && options.ancestors) {
|
|
@@ -1925,6 +1830,7 @@ VFileMessage.prototype.source = void 0;
|
|
|
1925
1830
|
var own = {}.hasOwnProperty;
|
|
1926
1831
|
var emptyMap = /* @__PURE__ */ new Map();
|
|
1927
1832
|
var cap2 = /[A-Z]/g;
|
|
1833
|
+
var dashLetter = /-([a-z])/g;
|
|
1928
1834
|
var tableElements = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]);
|
|
1929
1835
|
var tableCellElement = /* @__PURE__ */ new Set(["td", "th"]);
|
|
1930
1836
|
var docs = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
@@ -2150,7 +2056,7 @@ function createJsxElementProps(state, node2) {
|
|
|
2150
2056
|
crashEstree(state, node2.position);
|
|
2151
2057
|
}
|
|
2152
2058
|
} else {
|
|
2153
|
-
const name2 = attribute
|
|
2059
|
+
const { name: name2 } = attribute;
|
|
2154
2060
|
let value;
|
|
2155
2061
|
if (attribute.value && typeof attribute.value === "object") {
|
|
2156
2062
|
if (attribute.value.data && attribute.value.data.estree && state.evaluater) {
|
|
@@ -2172,10 +2078,10 @@ function createJsxElementProps(state, node2) {
|
|
|
2172
2078
|
}
|
|
2173
2079
|
function createChildren(state, node2) {
|
|
2174
2080
|
const children2 = [];
|
|
2175
|
-
let
|
|
2081
|
+
let index3 = -1;
|
|
2176
2082
|
const countsByName = state.passKeys ? /* @__PURE__ */ new Map() : emptyMap;
|
|
2177
|
-
while (++
|
|
2178
|
-
const child = node2.children[
|
|
2083
|
+
while (++index3 < node2.children.length) {
|
|
2084
|
+
const child = node2.children[index3];
|
|
2179
2085
|
let key;
|
|
2180
2086
|
if (state.passKeys) {
|
|
2181
2087
|
const name2 = child.type === "element" ? child.tagName : child.type === "mdxJsxFlowElement" || child.type === "mdxJsxTextElement" ? child.name : void 0;
|
|
@@ -2191,18 +2097,15 @@ function createChildren(state, node2) {
|
|
|
2191
2097
|
return children2;
|
|
2192
2098
|
}
|
|
2193
2099
|
function createProperty(state, prop, value) {
|
|
2194
|
-
const info = find(state.schema, prop);
|
|
2195
2100
|
if (value === null || value === void 0 || typeof value === "number" && Number.isNaN(value)) {
|
|
2196
2101
|
return;
|
|
2197
2102
|
}
|
|
2103
|
+
const info = find(state.schema, prop);
|
|
2198
2104
|
if (Array.isArray(value)) {
|
|
2199
2105
|
value = info.commaSeparated ? stringify(value) : stringify2(value);
|
|
2200
2106
|
}
|
|
2201
2107
|
if (info.property === "style") {
|
|
2202
|
-
|
|
2203
|
-
if (state.stylePropertyNameCase === "css") {
|
|
2204
|
-
styleObject = transformStylesToCssCasing(styleObject);
|
|
2205
|
-
}
|
|
2108
|
+
const styleObject = typeof value === "object" ? state.stylePropertyNameCase === "dom" ? value : transformStylesToCssCasing(value) : parseStyle(state, String(value));
|
|
2206
2109
|
return ["style", styleObject];
|
|
2207
2110
|
}
|
|
2208
2111
|
return [
|
|
@@ -2211,8 +2114,21 @@ function createProperty(state, prop, value) {
|
|
|
2211
2114
|
];
|
|
2212
2115
|
}
|
|
2213
2116
|
function parseStyle(state, value) {
|
|
2117
|
+
const result = {};
|
|
2214
2118
|
try {
|
|
2215
|
-
|
|
2119
|
+
StyleToObject(value, function(property, value2) {
|
|
2120
|
+
if (property && value2) {
|
|
2121
|
+
let name2 = property;
|
|
2122
|
+
if (name2.slice(0, 2) !== "--") {
|
|
2123
|
+
name2 = name2.toLowerCase();
|
|
2124
|
+
if (state.stylePropertyNameCase === "dom") {
|
|
2125
|
+
if (name2.slice(0, 4) === "-ms-") name2 = name2.slice(1);
|
|
2126
|
+
name2 = name2.replace(dashLetter, toCamel);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
result[name2] = value2;
|
|
2130
|
+
}
|
|
2131
|
+
});
|
|
2216
2132
|
} catch (error) {
|
|
2217
2133
|
if (state.ignoreInvalidStyle) {
|
|
2218
2134
|
return {};
|
|
@@ -2231,6 +2147,7 @@ function parseStyle(state, value) {
|
|
|
2231
2147
|
message.url = docs + "#cannot-parse-style-attribute";
|
|
2232
2148
|
throw message;
|
|
2233
2149
|
}
|
|
2150
|
+
return result;
|
|
2234
2151
|
}
|
|
2235
2152
|
function findComponentFromName(state, name2, allowExpression) {
|
|
2236
2153
|
let result;
|
|
@@ -2238,15 +2155,15 @@ function findComponentFromName(state, name2, allowExpression) {
|
|
|
2238
2155
|
result = { type: "Literal", value: name2 };
|
|
2239
2156
|
} else if (name2.includes(".")) {
|
|
2240
2157
|
const identifiers = name2.split(".");
|
|
2241
|
-
let
|
|
2158
|
+
let index3 = -1;
|
|
2242
2159
|
let node2;
|
|
2243
|
-
while (++
|
|
2244
|
-
const prop = name(identifiers[
|
|
2160
|
+
while (++index3 < identifiers.length) {
|
|
2161
|
+
const prop = name(identifiers[index3]) ? { type: "Identifier", name: identifiers[index3] } : { type: "Literal", value: identifiers[index3] };
|
|
2245
2162
|
node2 = node2 ? {
|
|
2246
2163
|
type: "MemberExpression",
|
|
2247
2164
|
object: node2,
|
|
2248
2165
|
property: prop,
|
|
2249
|
-
computed: Boolean(
|
|
2166
|
+
computed: Boolean(index3 && prop.type === "Literal"),
|
|
2250
2167
|
optional: false
|
|
2251
2168
|
} : prop;
|
|
2252
2169
|
}
|
|
@@ -2291,6 +2208,7 @@ function transformStylesToCssCasing(domCasing) {
|
|
|
2291
2208
|
return cssCasing;
|
|
2292
2209
|
}
|
|
2293
2210
|
function transformStyleToCssCasing(from) {
|
|
2211
|
+
if (from.slice(0, 2) === "--") return from;
|
|
2294
2212
|
let to = from.replace(cap2, toDash);
|
|
2295
2213
|
if (to.slice(0, 3) === "ms-") to = "-" + to;
|
|
2296
2214
|
return to;
|
|
@@ -2298,6 +2216,9 @@ function transformStyleToCssCasing(from) {
|
|
|
2298
2216
|
function toDash($0) {
|
|
2299
2217
|
return "-" + $0.toLowerCase();
|
|
2300
2218
|
}
|
|
2219
|
+
function toCamel(_, $1) {
|
|
2220
|
+
return $1.toUpperCase();
|
|
2221
|
+
}
|
|
2301
2222
|
|
|
2302
2223
|
// ../node_modules/html-url-attributes/lib/index.js
|
|
2303
2224
|
var urlAttributes = {
|
|
@@ -2351,9 +2272,9 @@ function one2(value, includeImageAlt, includeHtml) {
|
|
|
2351
2272
|
}
|
|
2352
2273
|
function all(values, includeImageAlt, includeHtml) {
|
|
2353
2274
|
const result = [];
|
|
2354
|
-
let
|
|
2355
|
-
while (++
|
|
2356
|
-
result[
|
|
2275
|
+
let index3 = -1;
|
|
2276
|
+
while (++index3 < values.length) {
|
|
2277
|
+
result[index3] = one2(values[index3], includeImageAlt, includeHtml);
|
|
2357
2278
|
}
|
|
2358
2279
|
return result.join("");
|
|
2359
2280
|
}
|
|
@@ -2411,9 +2332,9 @@ function push(list4, items) {
|
|
|
2411
2332
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
2412
2333
|
function combineExtensions(extensions) {
|
|
2413
2334
|
const all5 = {};
|
|
2414
|
-
let
|
|
2415
|
-
while (++
|
|
2416
|
-
syntaxExtension(all5, extensions[
|
|
2335
|
+
let index3 = -1;
|
|
2336
|
+
while (++index3 < extensions.length) {
|
|
2337
|
+
syntaxExtension(all5, extensions[index3]);
|
|
2417
2338
|
}
|
|
2418
2339
|
return all5;
|
|
2419
2340
|
}
|
|
@@ -2438,10 +2359,10 @@ function syntaxExtension(all5, extension2) {
|
|
|
2438
2359
|
}
|
|
2439
2360
|
}
|
|
2440
2361
|
function constructs(existing, list4) {
|
|
2441
|
-
let
|
|
2362
|
+
let index3 = -1;
|
|
2442
2363
|
const before = [];
|
|
2443
|
-
while (++
|
|
2444
|
-
(list4[
|
|
2364
|
+
while (++index3 < list4.length) {
|
|
2365
|
+
(list4[index3].add === "after" ? existing : before).push(list4[index3]);
|
|
2445
2366
|
}
|
|
2446
2367
|
splice(existing, 0, 0, before);
|
|
2447
2368
|
}
|
|
@@ -2495,8 +2416,8 @@ function markdownSpace(code4) {
|
|
|
2495
2416
|
var unicodePunctuation = regexCheck(/\p{P}|\p{S}/u);
|
|
2496
2417
|
var unicodeWhitespace = regexCheck(/\s/);
|
|
2497
2418
|
function regexCheck(regex) {
|
|
2498
|
-
return
|
|
2499
|
-
function
|
|
2419
|
+
return check2;
|
|
2420
|
+
function check2(code4) {
|
|
2500
2421
|
return code4 !== null && code4 > -1 && regex.test(String.fromCharCode(code4));
|
|
2501
2422
|
}
|
|
2502
2423
|
}
|
|
@@ -2504,20 +2425,20 @@ function regexCheck(regex) {
|
|
|
2504
2425
|
// ../node_modules/micromark-util-sanitize-uri/index.js
|
|
2505
2426
|
function normalizeUri(value) {
|
|
2506
2427
|
const result = [];
|
|
2507
|
-
let
|
|
2428
|
+
let index3 = -1;
|
|
2508
2429
|
let start2 = 0;
|
|
2509
2430
|
let skip = 0;
|
|
2510
|
-
while (++
|
|
2511
|
-
const code4 = value.charCodeAt(
|
|
2431
|
+
while (++index3 < value.length) {
|
|
2432
|
+
const code4 = value.charCodeAt(index3);
|
|
2512
2433
|
let replace2 = "";
|
|
2513
|
-
if (code4 === 37 && asciiAlphanumeric(value.charCodeAt(
|
|
2434
|
+
if (code4 === 37 && asciiAlphanumeric(value.charCodeAt(index3 + 1)) && asciiAlphanumeric(value.charCodeAt(index3 + 2))) {
|
|
2514
2435
|
skip = 2;
|
|
2515
2436
|
} else if (code4 < 128) {
|
|
2516
2437
|
if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code4))) {
|
|
2517
2438
|
replace2 = String.fromCharCode(code4);
|
|
2518
2439
|
}
|
|
2519
2440
|
} else if (code4 > 55295 && code4 < 57344) {
|
|
2520
|
-
const next2 = value.charCodeAt(
|
|
2441
|
+
const next2 = value.charCodeAt(index3 + 1);
|
|
2521
2442
|
if (code4 < 56320 && next2 > 56319 && next2 < 57344) {
|
|
2522
2443
|
replace2 = String.fromCharCode(code4, next2);
|
|
2523
2444
|
skip = 1;
|
|
@@ -2528,12 +2449,12 @@ function normalizeUri(value) {
|
|
|
2528
2449
|
replace2 = String.fromCharCode(code4);
|
|
2529
2450
|
}
|
|
2530
2451
|
if (replace2) {
|
|
2531
|
-
result.push(value.slice(start2,
|
|
2532
|
-
start2 =
|
|
2452
|
+
result.push(value.slice(start2, index3), encodeURIComponent(replace2));
|
|
2453
|
+
start2 = index3 + skip + 1;
|
|
2533
2454
|
replace2 = "";
|
|
2534
2455
|
}
|
|
2535
2456
|
if (skip) {
|
|
2536
|
-
|
|
2457
|
+
index3 += skip;
|
|
2537
2458
|
skip = 0;
|
|
2538
2459
|
}
|
|
2539
2460
|
}
|
|
@@ -2659,8 +2580,8 @@ var EditMap = class {
|
|
|
2659
2580
|
* @returns {undefined}
|
|
2660
2581
|
* Nothing.
|
|
2661
2582
|
*/
|
|
2662
|
-
add(
|
|
2663
|
-
addImplementation(this,
|
|
2583
|
+
add(index3, remove, add) {
|
|
2584
|
+
addImplementation(this, index3, remove, add, false);
|
|
2664
2585
|
}
|
|
2665
2586
|
/**
|
|
2666
2587
|
* Create an edit: but insert `add` before existing additions, instead of
|
|
@@ -2675,8 +2596,8 @@ var EditMap = class {
|
|
|
2675
2596
|
* @returns {undefined}
|
|
2676
2597
|
* Nothing.
|
|
2677
2598
|
*/
|
|
2678
|
-
addBefore(
|
|
2679
|
-
addImplementation(this,
|
|
2599
|
+
addBefore(index3, remove, add) {
|
|
2600
|
+
addImplementation(this, index3, remove, add, true);
|
|
2680
2601
|
}
|
|
2681
2602
|
/**
|
|
2682
2603
|
* Done, change the events.
|
|
@@ -2693,12 +2614,12 @@ var EditMap = class {
|
|
|
2693
2614
|
if (this.map.length === 0) {
|
|
2694
2615
|
return;
|
|
2695
2616
|
}
|
|
2696
|
-
let
|
|
2617
|
+
let index3 = this.map.length;
|
|
2697
2618
|
const vecs = [];
|
|
2698
|
-
while (
|
|
2699
|
-
|
|
2700
|
-
vecs.push(events.slice(this.map[
|
|
2701
|
-
events.length = this.map[
|
|
2619
|
+
while (index3 > 0) {
|
|
2620
|
+
index3 -= 1;
|
|
2621
|
+
vecs.push(events.slice(this.map[index3][0] + this.map[index3][1]), this.map[index3][2]);
|
|
2622
|
+
events.length = this.map[index3][0];
|
|
2702
2623
|
}
|
|
2703
2624
|
vecs.push(events.slice());
|
|
2704
2625
|
events.length = 0;
|
|
@@ -2773,16 +2694,16 @@ function initializeDocument(effects) {
|
|
|
2773
2694
|
}
|
|
2774
2695
|
}
|
|
2775
2696
|
exitContainers(continued);
|
|
2776
|
-
let
|
|
2777
|
-
while (
|
|
2778
|
-
self2.events[
|
|
2697
|
+
let index3 = indexBeforeExits;
|
|
2698
|
+
while (index3 < self2.events.length) {
|
|
2699
|
+
self2.events[index3][1].end = {
|
|
2779
2700
|
...point5
|
|
2780
2701
|
};
|
|
2781
|
-
|
|
2702
|
+
index3++;
|
|
2782
2703
|
}
|
|
2783
2704
|
const editMap = new EditMap();
|
|
2784
2705
|
editMap.add(indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
|
|
2785
|
-
editMap.add(indexBeforeExits,
|
|
2706
|
+
editMap.add(indexBeforeExits, index3 - indexBeforeExits, []);
|
|
2786
2707
|
editMap.consume(self2.events);
|
|
2787
2708
|
return checkNewContainers(code4);
|
|
2788
2709
|
}
|
|
@@ -2869,13 +2790,13 @@ function initializeDocument(effects) {
|
|
|
2869
2790
|
childFlow.defineSkip(token.start);
|
|
2870
2791
|
childFlow.write(stream);
|
|
2871
2792
|
if (self2.parser.lazy[token.start.line]) {
|
|
2872
|
-
let
|
|
2873
|
-
while (
|
|
2793
|
+
let index3 = childFlow.events.length;
|
|
2794
|
+
while (index3--) {
|
|
2874
2795
|
if (
|
|
2875
2796
|
// The token starts before the line ending…
|
|
2876
|
-
childFlow.events[
|
|
2877
|
-
(!childFlow.events[
|
|
2878
|
-
childFlow.events[
|
|
2797
|
+
childFlow.events[index3][1].start.offset < lineStartOffset && // …and either is not ended yet…
|
|
2798
|
+
(!childFlow.events[index3][1].end || // …or ends after it.
|
|
2799
|
+
childFlow.events[index3][1].end.offset > lineStartOffset)
|
|
2879
2800
|
) {
|
|
2880
2801
|
return;
|
|
2881
2802
|
}
|
|
@@ -2894,23 +2815,23 @@ function initializeDocument(effects) {
|
|
|
2894
2815
|
}
|
|
2895
2816
|
}
|
|
2896
2817
|
exitContainers(continued);
|
|
2897
|
-
|
|
2898
|
-
while (
|
|
2899
|
-
self2.events[
|
|
2818
|
+
index3 = indexBeforeExits;
|
|
2819
|
+
while (index3 < self2.events.length) {
|
|
2820
|
+
self2.events[index3][1].end = {
|
|
2900
2821
|
...point5
|
|
2901
2822
|
};
|
|
2902
|
-
|
|
2823
|
+
index3++;
|
|
2903
2824
|
}
|
|
2904
2825
|
const editMap = new EditMap();
|
|
2905
2826
|
editMap.add(indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
|
|
2906
|
-
editMap.add(indexBeforeExits,
|
|
2827
|
+
editMap.add(indexBeforeExits, index3 - indexBeforeExits, []);
|
|
2907
2828
|
editMap.consume(self2.events);
|
|
2908
2829
|
}
|
|
2909
2830
|
}
|
|
2910
2831
|
function exitContainers(size) {
|
|
2911
|
-
let
|
|
2912
|
-
while (
|
|
2913
|
-
const entry = stack[
|
|
2832
|
+
let index3 = stack.length;
|
|
2833
|
+
while (index3-- > size) {
|
|
2834
|
+
const entry = stack[index3];
|
|
2914
2835
|
self2.containerState = entry[1];
|
|
2915
2836
|
entry[0].exit.call(self2, effects);
|
|
2916
2837
|
}
|
|
@@ -2940,9 +2861,9 @@ function classifyCharacter(code4) {
|
|
|
2940
2861
|
// ../node_modules/micromark-util-resolve-all/index.js
|
|
2941
2862
|
function resolveAll(constructs2, events, context) {
|
|
2942
2863
|
const called = [];
|
|
2943
|
-
let
|
|
2944
|
-
while (++
|
|
2945
|
-
const resolve = constructs2[
|
|
2864
|
+
let index3 = -1;
|
|
2865
|
+
while (++index3 < constructs2.length) {
|
|
2866
|
+
const resolve = constructs2[index3].resolveAll;
|
|
2946
2867
|
if (resolve && !called.includes(resolve)) {
|
|
2947
2868
|
events = resolve(events, context);
|
|
2948
2869
|
called.push(resolve);
|
|
@@ -2958,23 +2879,23 @@ var attention = {
|
|
|
2958
2879
|
tokenize: tokenizeAttention
|
|
2959
2880
|
};
|
|
2960
2881
|
function resolveAllAttention(events, context) {
|
|
2961
|
-
let
|
|
2882
|
+
let index3 = -1;
|
|
2962
2883
|
let nextEvents;
|
|
2963
|
-
while (++
|
|
2964
|
-
if (events[
|
|
2965
|
-
let open =
|
|
2884
|
+
while (++index3 < events.length) {
|
|
2885
|
+
if (events[index3][0] === "enter" && events[index3][1].type === "attentionSequence" && events[index3][1]._close) {
|
|
2886
|
+
let open = index3;
|
|
2966
2887
|
while (open--) {
|
|
2967
2888
|
if (events[open][0] === "exit" && events[open][1].type === "attentionSequence" && events[open][1]._open && // If the markers are the same:
|
|
2968
|
-
context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[
|
|
2969
|
-
if ((events[open][1]._close || events[
|
|
2889
|
+
context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index3][1]).charCodeAt(0)) {
|
|
2890
|
+
if ((events[open][1]._close || events[index3][1]._open) && (events[index3][1].end.offset - events[index3][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index3][1].end.offset - events[index3][1].start.offset) % 3)) {
|
|
2970
2891
|
continue;
|
|
2971
2892
|
}
|
|
2972
|
-
const use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[
|
|
2893
|
+
const use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index3][1].end.offset - events[index3][1].start.offset > 1 ? 2 : 1;
|
|
2973
2894
|
const start2 = {
|
|
2974
2895
|
...events[open][1].end
|
|
2975
2896
|
};
|
|
2976
2897
|
const end = {
|
|
2977
|
-
...events[
|
|
2898
|
+
...events[index3][1].start
|
|
2978
2899
|
};
|
|
2979
2900
|
movePoint(start2, -use);
|
|
2980
2901
|
movePoint(end, use);
|
|
@@ -2988,7 +2909,7 @@ function resolveAllAttention(events, context) {
|
|
|
2988
2909
|
const closingSequence = {
|
|
2989
2910
|
type: use > 1 ? "strongSequence" : "emphasisSequence",
|
|
2990
2911
|
start: {
|
|
2991
|
-
...events[
|
|
2912
|
+
...events[index3][1].start
|
|
2992
2913
|
},
|
|
2993
2914
|
end
|
|
2994
2915
|
};
|
|
@@ -2998,7 +2919,7 @@ function resolveAllAttention(events, context) {
|
|
|
2998
2919
|
...events[open][1].end
|
|
2999
2920
|
},
|
|
3000
2921
|
end: {
|
|
3001
|
-
...events[
|
|
2922
|
+
...events[index3][1].start
|
|
3002
2923
|
}
|
|
3003
2924
|
};
|
|
3004
2925
|
const group = {
|
|
@@ -3013,7 +2934,7 @@ function resolveAllAttention(events, context) {
|
|
|
3013
2934
|
events[open][1].end = {
|
|
3014
2935
|
...openingSequence.start
|
|
3015
2936
|
};
|
|
3016
|
-
events[
|
|
2937
|
+
events[index3][1].start = {
|
|
3017
2938
|
...closingSequence.end
|
|
3018
2939
|
};
|
|
3019
2940
|
nextEvents = [];
|
|
@@ -3021,24 +2942,24 @@ function resolveAllAttention(events, context) {
|
|
|
3021
2942
|
nextEvents = push(nextEvents, [["enter", events[open][1], context], ["exit", events[open][1], context]]);
|
|
3022
2943
|
}
|
|
3023
2944
|
nextEvents = push(nextEvents, [["enter", group, context], ["enter", openingSequence, context], ["exit", openingSequence, context], ["enter", text10, context]]);
|
|
3024
|
-
nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1,
|
|
2945
|
+
nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index3), context));
|
|
3025
2946
|
nextEvents = push(nextEvents, [["exit", text10, context], ["enter", closingSequence, context], ["exit", closingSequence, context], ["exit", group, context]]);
|
|
3026
2947
|
let offset = 0;
|
|
3027
|
-
if (events[
|
|
2948
|
+
if (events[index3][1].end.offset - events[index3][1].start.offset) {
|
|
3028
2949
|
offset = 2;
|
|
3029
|
-
nextEvents = push(nextEvents, [["enter", events[
|
|
2950
|
+
nextEvents = push(nextEvents, [["enter", events[index3][1], context], ["exit", events[index3][1], context]]);
|
|
3030
2951
|
}
|
|
3031
|
-
splice(events, open - 1,
|
|
3032
|
-
|
|
2952
|
+
splice(events, open - 1, index3 - open + 3, nextEvents);
|
|
2953
|
+
index3 = open + nextEvents.length - offset - 2;
|
|
3033
2954
|
break;
|
|
3034
2955
|
}
|
|
3035
2956
|
}
|
|
3036
2957
|
}
|
|
3037
2958
|
}
|
|
3038
|
-
|
|
3039
|
-
while (++
|
|
3040
|
-
if (events[
|
|
3041
|
-
events[
|
|
2959
|
+
index3 = -1;
|
|
2960
|
+
while (++index3 < events.length) {
|
|
2961
|
+
if (events[index3][1].type === "attentionSequence") {
|
|
2962
|
+
events[index3][1].type = "data";
|
|
3042
2963
|
}
|
|
3043
2964
|
}
|
|
3044
2965
|
return events;
|
|
@@ -3592,12 +3513,12 @@ var codeText = {
|
|
|
3592
3513
|
function resolveCodeText(events) {
|
|
3593
3514
|
let tailExitIndex = events.length - 4;
|
|
3594
3515
|
let headEnterIndex = 3;
|
|
3595
|
-
let
|
|
3516
|
+
let index3;
|
|
3596
3517
|
let enter;
|
|
3597
3518
|
if ((events[headEnterIndex][1].type === "lineEnding" || events[headEnterIndex][1].type === "space") && (events[tailExitIndex][1].type === "lineEnding" || events[tailExitIndex][1].type === "space")) {
|
|
3598
|
-
|
|
3599
|
-
while (++
|
|
3600
|
-
if (events[
|
|
3519
|
+
index3 = headEnterIndex;
|
|
3520
|
+
while (++index3 < tailExitIndex) {
|
|
3521
|
+
if (events[index3][1].type === "codeTextData") {
|
|
3601
3522
|
events[headEnterIndex][1].type = "codeTextPadding";
|
|
3602
3523
|
events[tailExitIndex][1].type = "codeTextPadding";
|
|
3603
3524
|
headEnterIndex += 2;
|
|
@@ -3606,20 +3527,20 @@ function resolveCodeText(events) {
|
|
|
3606
3527
|
}
|
|
3607
3528
|
}
|
|
3608
3529
|
}
|
|
3609
|
-
|
|
3530
|
+
index3 = headEnterIndex - 1;
|
|
3610
3531
|
tailExitIndex++;
|
|
3611
|
-
while (++
|
|
3532
|
+
while (++index3 <= tailExitIndex) {
|
|
3612
3533
|
if (enter === void 0) {
|
|
3613
|
-
if (
|
|
3614
|
-
enter =
|
|
3534
|
+
if (index3 !== tailExitIndex && events[index3][1].type !== "lineEnding") {
|
|
3535
|
+
enter = index3;
|
|
3615
3536
|
}
|
|
3616
|
-
} else if (
|
|
3537
|
+
} else if (index3 === tailExitIndex || events[index3][1].type === "lineEnding") {
|
|
3617
3538
|
events[enter][1].type = "codeTextData";
|
|
3618
|
-
if (
|
|
3619
|
-
events[enter][1].end = events[
|
|
3620
|
-
events.splice(enter + 2,
|
|
3621
|
-
tailExitIndex -=
|
|
3622
|
-
|
|
3539
|
+
if (index3 !== enter + 2) {
|
|
3540
|
+
events[enter][1].end = events[index3 - 1][1].end;
|
|
3541
|
+
events.splice(enter + 2, index3 - enter - 2);
|
|
3542
|
+
tailExitIndex -= index3 - enter - 2;
|
|
3543
|
+
index3 = enter + 2;
|
|
3623
3544
|
}
|
|
3624
3545
|
enter = void 0;
|
|
3625
3546
|
}
|
|
@@ -3717,12 +3638,12 @@ var SpliceBuffer = class {
|
|
|
3717
3638
|
* @return {T}
|
|
3718
3639
|
* Item.
|
|
3719
3640
|
*/
|
|
3720
|
-
get(
|
|
3721
|
-
if (
|
|
3722
|
-
throw new RangeError("Cannot access index `" +
|
|
3641
|
+
get(index3) {
|
|
3642
|
+
if (index3 < 0 || index3 >= this.left.length + this.right.length) {
|
|
3643
|
+
throw new RangeError("Cannot access index `" + index3 + "` in a splice buffer of size `" + (this.left.length + this.right.length) + "`");
|
|
3723
3644
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
return this.right[this.right.length -
|
|
3645
|
+
if (index3 < this.left.length) return this.left[index3];
|
|
3646
|
+
return this.right[this.right.length - index3 + this.left.length - 1];
|
|
3726
3647
|
}
|
|
3727
3648
|
/**
|
|
3728
3649
|
* The length of the splice buffer, one greater than the largest index in the
|
|
@@ -3892,7 +3813,7 @@ function chunkedPush(list4, right) {
|
|
|
3892
3813
|
// ../node_modules/micromark-util-subtokenize/index.js
|
|
3893
3814
|
function subtokenize(eventsArray) {
|
|
3894
3815
|
const jumps = {};
|
|
3895
|
-
let
|
|
3816
|
+
let index3 = -1;
|
|
3896
3817
|
let event;
|
|
3897
3818
|
let lineIndex;
|
|
3898
3819
|
let otherIndex;
|
|
@@ -3901,12 +3822,12 @@ function subtokenize(eventsArray) {
|
|
|
3901
3822
|
let subevents;
|
|
3902
3823
|
let more;
|
|
3903
3824
|
const events = new SpliceBuffer(eventsArray);
|
|
3904
|
-
while (++
|
|
3905
|
-
while (
|
|
3906
|
-
|
|
3825
|
+
while (++index3 < events.length) {
|
|
3826
|
+
while (index3 in jumps) {
|
|
3827
|
+
index3 = jumps[index3];
|
|
3907
3828
|
}
|
|
3908
|
-
event = events.get(
|
|
3909
|
-
if (
|
|
3829
|
+
event = events.get(index3);
|
|
3830
|
+
if (index3 && event[1].type === "chunkFlow" && events.get(index3 - 1)[1].type === "listItemPrefix") {
|
|
3910
3831
|
subevents = event[1]._tokenizer.events;
|
|
3911
3832
|
otherIndex = 0;
|
|
3912
3833
|
if (otherIndex < subevents.length && subevents[otherIndex][1].type === "lineEndingBlank") {
|
|
@@ -3926,12 +3847,12 @@ function subtokenize(eventsArray) {
|
|
|
3926
3847
|
}
|
|
3927
3848
|
if (event[0] === "enter") {
|
|
3928
3849
|
if (event[1].contentType) {
|
|
3929
|
-
Object.assign(jumps, subcontent(events,
|
|
3930
|
-
|
|
3850
|
+
Object.assign(jumps, subcontent(events, index3));
|
|
3851
|
+
index3 = jumps[index3];
|
|
3931
3852
|
more = true;
|
|
3932
3853
|
}
|
|
3933
3854
|
} else if (event[1]._container) {
|
|
3934
|
-
otherIndex =
|
|
3855
|
+
otherIndex = index3;
|
|
3935
3856
|
lineIndex = void 0;
|
|
3936
3857
|
while (otherIndex--) {
|
|
3937
3858
|
otherEvent = events.get(otherIndex);
|
|
@@ -3951,9 +3872,9 @@ function subtokenize(eventsArray) {
|
|
|
3951
3872
|
event[1].end = {
|
|
3952
3873
|
...events.get(lineIndex)[1].start
|
|
3953
3874
|
};
|
|
3954
|
-
parameters = events.slice(lineIndex,
|
|
3875
|
+
parameters = events.slice(lineIndex, index3);
|
|
3955
3876
|
parameters.unshift(event);
|
|
3956
|
-
events.splice(lineIndex,
|
|
3877
|
+
events.splice(lineIndex, index3 - lineIndex + 1, parameters);
|
|
3957
3878
|
}
|
|
3958
3879
|
}
|
|
3959
3880
|
}
|
|
@@ -3977,7 +3898,7 @@ function subcontent(events, eventIndex) {
|
|
|
3977
3898
|
const gaps = {};
|
|
3978
3899
|
let stream;
|
|
3979
3900
|
let previous3;
|
|
3980
|
-
let
|
|
3901
|
+
let index3 = -1;
|
|
3981
3902
|
let current = token;
|
|
3982
3903
|
let adjust = 0;
|
|
3983
3904
|
let start2 = 0;
|
|
@@ -4006,12 +3927,12 @@ function subcontent(events, eventIndex) {
|
|
|
4006
3927
|
current = current.next;
|
|
4007
3928
|
}
|
|
4008
3929
|
current = token;
|
|
4009
|
-
while (++
|
|
3930
|
+
while (++index3 < childEvents.length) {
|
|
4010
3931
|
if (
|
|
4011
3932
|
// Find a void token that includes a break.
|
|
4012
|
-
childEvents[
|
|
3933
|
+
childEvents[index3][0] === "exit" && childEvents[index3 - 1][0] === "enter" && childEvents[index3][1].type === childEvents[index3 - 1][1].type && childEvents[index3][1].start.line !== childEvents[index3][1].end.line
|
|
4013
3934
|
) {
|
|
4014
|
-
start2 =
|
|
3935
|
+
start2 = index3 + 1;
|
|
4015
3936
|
breaks.push(start2);
|
|
4016
3937
|
current._tokenizer = void 0;
|
|
4017
3938
|
current.previous = void 0;
|
|
@@ -4025,18 +3946,18 @@ function subcontent(events, eventIndex) {
|
|
|
4025
3946
|
} else {
|
|
4026
3947
|
breaks.pop();
|
|
4027
3948
|
}
|
|
4028
|
-
|
|
4029
|
-
while (
|
|
4030
|
-
const slice = childEvents.slice(breaks[
|
|
3949
|
+
index3 = breaks.length;
|
|
3950
|
+
while (index3--) {
|
|
3951
|
+
const slice = childEvents.slice(breaks[index3], breaks[index3 + 1]);
|
|
4031
3952
|
const start3 = startPositions.pop();
|
|
4032
3953
|
jumps.push([start3, start3 + slice.length - 1]);
|
|
4033
3954
|
events.splice(start3, 2, slice);
|
|
4034
3955
|
}
|
|
4035
3956
|
jumps.reverse();
|
|
4036
|
-
|
|
4037
|
-
while (++
|
|
4038
|
-
gaps[adjust + jumps[
|
|
4039
|
-
adjust += jumps[
|
|
3957
|
+
index3 = -1;
|
|
3958
|
+
while (++index3 < jumps.length) {
|
|
3959
|
+
gaps[adjust + jumps[index3][0]] = adjust + jumps[index3][1];
|
|
3960
|
+
adjust += jumps[index3][1] - jumps[index3][0] - 1;
|
|
4040
3961
|
}
|
|
4041
3962
|
return gaps;
|
|
4042
3963
|
}
|
|
@@ -4621,16 +4542,16 @@ var blankLineBefore = {
|
|
|
4621
4542
|
tokenize: tokenizeBlankLineBefore
|
|
4622
4543
|
};
|
|
4623
4544
|
function resolveToHtmlFlow(events) {
|
|
4624
|
-
let
|
|
4625
|
-
while (
|
|
4626
|
-
if (events[
|
|
4545
|
+
let index3 = events.length;
|
|
4546
|
+
while (index3--) {
|
|
4547
|
+
if (events[index3][0] === "enter" && events[index3][1].type === "htmlFlow") {
|
|
4627
4548
|
break;
|
|
4628
4549
|
}
|
|
4629
4550
|
}
|
|
4630
|
-
if (
|
|
4631
|
-
events[
|
|
4632
|
-
events[
|
|
4633
|
-
events.splice(
|
|
4551
|
+
if (index3 > 1 && events[index3 - 2][1].type === "linePrefix") {
|
|
4552
|
+
events[index3][1].start = events[index3 - 2][1].start;
|
|
4553
|
+
events[index3 + 1][1].start = events[index3 - 2][1].start;
|
|
4554
|
+
events.splice(index3 - 2, 2);
|
|
4634
4555
|
}
|
|
4635
4556
|
return events;
|
|
4636
4557
|
}
|
|
@@ -4639,7 +4560,7 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
|
|
|
4639
4560
|
let marker;
|
|
4640
4561
|
let closingTag;
|
|
4641
4562
|
let buffer;
|
|
4642
|
-
let
|
|
4563
|
+
let index3;
|
|
4643
4564
|
let markerB;
|
|
4644
4565
|
return start2;
|
|
4645
4566
|
function start2(code4) {
|
|
@@ -4682,7 +4603,7 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
|
|
|
4682
4603
|
if (code4 === 91) {
|
|
4683
4604
|
effects.consume(code4);
|
|
4684
4605
|
marker = 5;
|
|
4685
|
-
|
|
4606
|
+
index3 = 0;
|
|
4686
4607
|
return cdataOpenInside;
|
|
4687
4608
|
}
|
|
4688
4609
|
if (asciiAlpha(code4)) {
|
|
@@ -4701,9 +4622,9 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
|
|
|
4701
4622
|
}
|
|
4702
4623
|
function cdataOpenInside(code4) {
|
|
4703
4624
|
const value = "CDATA[";
|
|
4704
|
-
if (code4 === value.charCodeAt(
|
|
4625
|
+
if (code4 === value.charCodeAt(index3++)) {
|
|
4705
4626
|
effects.consume(code4);
|
|
4706
|
-
if (
|
|
4627
|
+
if (index3 === value.length) {
|
|
4707
4628
|
return self2.interrupt ? ok3 : continuation;
|
|
4708
4629
|
}
|
|
4709
4630
|
return cdataOpenInside;
|
|
@@ -4976,7 +4897,7 @@ var htmlText = {
|
|
|
4976
4897
|
function tokenizeHtmlText(effects, ok3, nok) {
|
|
4977
4898
|
const self2 = this;
|
|
4978
4899
|
let marker;
|
|
4979
|
-
let
|
|
4900
|
+
let index3;
|
|
4980
4901
|
let returnState;
|
|
4981
4902
|
return start2;
|
|
4982
4903
|
function start2(code4) {
|
|
@@ -5011,7 +4932,7 @@ function tokenizeHtmlText(effects, ok3, nok) {
|
|
|
5011
4932
|
}
|
|
5012
4933
|
if (code4 === 91) {
|
|
5013
4934
|
effects.consume(code4);
|
|
5014
|
-
|
|
4935
|
+
index3 = 0;
|
|
5015
4936
|
return cdataOpenInside;
|
|
5016
4937
|
}
|
|
5017
4938
|
if (asciiAlpha(code4)) {
|
|
@@ -5054,9 +4975,9 @@ function tokenizeHtmlText(effects, ok3, nok) {
|
|
|
5054
4975
|
}
|
|
5055
4976
|
function cdataOpenInside(code4) {
|
|
5056
4977
|
const value = "CDATA[";
|
|
5057
|
-
if (code4 === value.charCodeAt(
|
|
4978
|
+
if (code4 === value.charCodeAt(index3++)) {
|
|
5058
4979
|
effects.consume(code4);
|
|
5059
|
-
return
|
|
4980
|
+
return index3 === value.length ? cdata : cdataOpenInside;
|
|
5060
4981
|
}
|
|
5061
4982
|
return nok(code4);
|
|
5062
4983
|
}
|
|
@@ -5291,15 +5212,15 @@ var referenceCollapsedConstruct = {
|
|
|
5291
5212
|
tokenize: tokenizeReferenceCollapsed
|
|
5292
5213
|
};
|
|
5293
5214
|
function resolveAllLabelEnd(events) {
|
|
5294
|
-
let
|
|
5215
|
+
let index3 = -1;
|
|
5295
5216
|
const newEvents = [];
|
|
5296
|
-
while (++
|
|
5297
|
-
const token = events[
|
|
5298
|
-
newEvents.push(events[
|
|
5217
|
+
while (++index3 < events.length) {
|
|
5218
|
+
const token = events[index3][1];
|
|
5219
|
+
newEvents.push(events[index3]);
|
|
5299
5220
|
if (token.type === "labelImage" || token.type === "labelLink" || token.type === "labelEnd") {
|
|
5300
5221
|
const offset = token.type === "labelImage" ? 4 : 2;
|
|
5301
5222
|
token.type = "data";
|
|
5302
|
-
|
|
5223
|
+
index3 += offset;
|
|
5303
5224
|
}
|
|
5304
5225
|
}
|
|
5305
5226
|
if (events.length !== newEvents.length) {
|
|
@@ -5308,30 +5229,30 @@ function resolveAllLabelEnd(events) {
|
|
|
5308
5229
|
return events;
|
|
5309
5230
|
}
|
|
5310
5231
|
function resolveToLabelEnd(events, context) {
|
|
5311
|
-
let
|
|
5232
|
+
let index3 = events.length;
|
|
5312
5233
|
let offset = 0;
|
|
5313
5234
|
let open;
|
|
5314
5235
|
let close;
|
|
5315
5236
|
let media;
|
|
5316
|
-
while (
|
|
5317
|
-
const token = events[
|
|
5237
|
+
while (index3--) {
|
|
5238
|
+
const token = events[index3][1];
|
|
5318
5239
|
if (open) {
|
|
5319
5240
|
if (token.type === "link" || token.type === "labelLink" && token._inactive) {
|
|
5320
5241
|
break;
|
|
5321
5242
|
}
|
|
5322
|
-
if (events[
|
|
5243
|
+
if (events[index3][0] === "enter" && token.type === "labelLink") {
|
|
5323
5244
|
token._inactive = true;
|
|
5324
5245
|
}
|
|
5325
5246
|
} else if (close) {
|
|
5326
|
-
if (events[
|
|
5327
|
-
open =
|
|
5247
|
+
if (events[index3][0] === "enter" && (token.type === "labelImage" || token.type === "labelLink") && !token._balanced) {
|
|
5248
|
+
open = index3;
|
|
5328
5249
|
if (token.type !== "labelLink") {
|
|
5329
5250
|
offset = 2;
|
|
5330
5251
|
break;
|
|
5331
5252
|
}
|
|
5332
5253
|
}
|
|
5333
5254
|
} else if (token.type === "labelEnd") {
|
|
5334
|
-
close =
|
|
5255
|
+
close = index3;
|
|
5335
5256
|
}
|
|
5336
5257
|
}
|
|
5337
5258
|
const group = {
|
|
@@ -5757,25 +5678,25 @@ var setextUnderline = {
|
|
|
5757
5678
|
};
|
|
5758
5679
|
function resolveToSetextUnderline(events, context) {
|
|
5759
5680
|
const editMap = new EditMap();
|
|
5760
|
-
let
|
|
5681
|
+
let index3 = events.length;
|
|
5761
5682
|
let content3;
|
|
5762
5683
|
let text10;
|
|
5763
5684
|
let definition3;
|
|
5764
|
-
while (
|
|
5765
|
-
if (events[
|
|
5766
|
-
if (events[
|
|
5767
|
-
content3 =
|
|
5685
|
+
while (index3--) {
|
|
5686
|
+
if (events[index3][0] === "enter") {
|
|
5687
|
+
if (events[index3][1].type === "content") {
|
|
5688
|
+
content3 = index3;
|
|
5768
5689
|
break;
|
|
5769
5690
|
}
|
|
5770
|
-
if (events[
|
|
5771
|
-
text10 =
|
|
5691
|
+
if (events[index3][1].type === "paragraph") {
|
|
5692
|
+
text10 = index3;
|
|
5772
5693
|
}
|
|
5773
5694
|
} else {
|
|
5774
|
-
if (events[
|
|
5775
|
-
editMap.add(
|
|
5695
|
+
if (events[index3][1].type === "content") {
|
|
5696
|
+
editMap.add(index3, 1, []);
|
|
5776
5697
|
}
|
|
5777
|
-
if (!definition3 && events[
|
|
5778
|
-
definition3 =
|
|
5698
|
+
if (!definition3 && events[index3][1].type === "definition") {
|
|
5699
|
+
definition3 = index3;
|
|
5779
5700
|
}
|
|
5780
5701
|
}
|
|
5781
5702
|
}
|
|
@@ -5807,11 +5728,11 @@ function tokenizeSetextUnderline(effects, ok3, nok) {
|
|
|
5807
5728
|
let marker;
|
|
5808
5729
|
return start2;
|
|
5809
5730
|
function start2(code4) {
|
|
5810
|
-
let
|
|
5731
|
+
let index3 = self2.events.length;
|
|
5811
5732
|
let paragraph3;
|
|
5812
|
-
while (
|
|
5813
|
-
if (self2.events[
|
|
5814
|
-
paragraph3 = self2.events[
|
|
5733
|
+
while (index3--) {
|
|
5734
|
+
if (self2.events[index3][1].type !== "lineEnding" && self2.events[index3][1].type !== "linePrefix" && self2.events[index3][1].type !== "content") {
|
|
5735
|
+
paragraph3 = self2.events[index3][1].type === "paragraph";
|
|
5815
5736
|
break;
|
|
5816
5737
|
}
|
|
5817
5738
|
}
|
|
@@ -5922,10 +5843,10 @@ function initializeFactory(field) {
|
|
|
5922
5843
|
return true;
|
|
5923
5844
|
}
|
|
5924
5845
|
const list4 = constructs2[code4];
|
|
5925
|
-
let
|
|
5846
|
+
let index3 = -1;
|
|
5926
5847
|
if (list4) {
|
|
5927
|
-
while (++
|
|
5928
|
-
const item = list4[
|
|
5848
|
+
while (++index3 < list4.length) {
|
|
5849
|
+
const item = list4[index3];
|
|
5929
5850
|
if (!item.previous || item.previous.call(self2, self2.previous)) {
|
|
5930
5851
|
return true;
|
|
5931
5852
|
}
|
|
@@ -5938,19 +5859,19 @@ function initializeFactory(field) {
|
|
|
5938
5859
|
function createResolver(extraResolver) {
|
|
5939
5860
|
return resolveAllText;
|
|
5940
5861
|
function resolveAllText(events, context) {
|
|
5941
|
-
let
|
|
5862
|
+
let index3 = -1;
|
|
5942
5863
|
let enter;
|
|
5943
|
-
while (++
|
|
5864
|
+
while (++index3 <= events.length) {
|
|
5944
5865
|
if (enter === void 0) {
|
|
5945
|
-
if (events[
|
|
5946
|
-
enter =
|
|
5947
|
-
|
|
5866
|
+
if (events[index3] && events[index3][1].type === "data") {
|
|
5867
|
+
enter = index3;
|
|
5868
|
+
index3++;
|
|
5948
5869
|
}
|
|
5949
|
-
} else if (!events[
|
|
5950
|
-
if (
|
|
5951
|
-
events[enter][1].end = events[
|
|
5952
|
-
events.splice(enter + 2,
|
|
5953
|
-
|
|
5870
|
+
} else if (!events[index3] || events[index3][1].type !== "data") {
|
|
5871
|
+
if (index3 !== enter + 2) {
|
|
5872
|
+
events[enter][1].end = events[index3 - 1][1].end;
|
|
5873
|
+
events.splice(enter + 2, index3 - enter - 2);
|
|
5874
|
+
index3 = enter + 2;
|
|
5954
5875
|
}
|
|
5955
5876
|
enter = void 0;
|
|
5956
5877
|
}
|
|
@@ -5965,12 +5886,12 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
5965
5886
|
if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
|
|
5966
5887
|
const data = events[eventIndex - 1][1];
|
|
5967
5888
|
const chunks = context.sliceStream(data);
|
|
5968
|
-
let
|
|
5889
|
+
let index3 = chunks.length;
|
|
5969
5890
|
let bufferIndex = -1;
|
|
5970
5891
|
let size = 0;
|
|
5971
5892
|
let tabs;
|
|
5972
|
-
while (
|
|
5973
|
-
const chunk = chunks[
|
|
5893
|
+
while (index3--) {
|
|
5894
|
+
const chunk = chunks[index3];
|
|
5974
5895
|
if (typeof chunk === "string") {
|
|
5975
5896
|
bufferIndex = chunk.length;
|
|
5976
5897
|
while (chunk.charCodeAt(bufferIndex - 1) === 32) {
|
|
@@ -5985,7 +5906,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
5985
5906
|
tabs = true;
|
|
5986
5907
|
size++;
|
|
5987
5908
|
} else if (chunk === -1) ; else {
|
|
5988
|
-
|
|
5909
|
+
index3++;
|
|
5989
5910
|
break;
|
|
5990
5911
|
}
|
|
5991
5912
|
}
|
|
@@ -5996,8 +5917,8 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
5996
5917
|
const token = {
|
|
5997
5918
|
type: eventIndex === events.length || tabs || size < 2 ? "lineSuffix" : "hardBreakTrailing",
|
|
5998
5919
|
start: {
|
|
5999
|
-
_bufferIndex:
|
|
6000
|
-
_index: data.start._index +
|
|
5920
|
+
_bufferIndex: index3 ? bufferIndex : data.start._bufferIndex + bufferIndex,
|
|
5921
|
+
_index: data.start._index + index3,
|
|
6001
5922
|
line: data.end.line,
|
|
6002
5923
|
column: data.end.column - size,
|
|
6003
5924
|
offset: data.end.offset - size
|
|
@@ -6372,11 +6293,11 @@ function sliceChunks(chunks, token) {
|
|
|
6372
6293
|
return view;
|
|
6373
6294
|
}
|
|
6374
6295
|
function serializeChunks(chunks, expandTabs) {
|
|
6375
|
-
let
|
|
6296
|
+
let index3 = -1;
|
|
6376
6297
|
const result = [];
|
|
6377
6298
|
let atTab;
|
|
6378
|
-
while (++
|
|
6379
|
-
const chunk = chunks[
|
|
6299
|
+
while (++index3 < chunks.length) {
|
|
6300
|
+
const chunk = chunks[index3];
|
|
6380
6301
|
let value;
|
|
6381
6302
|
if (typeof chunk === "string") {
|
|
6382
6303
|
value = chunk;
|
|
@@ -6678,11 +6599,11 @@ function compiler(options) {
|
|
|
6678
6599
|
};
|
|
6679
6600
|
const listStack = [];
|
|
6680
6601
|
const prepared = [];
|
|
6681
|
-
let
|
|
6682
|
-
while (++
|
|
6683
|
-
prepared.push(events[
|
|
6684
|
-
if (events[
|
|
6685
|
-
if (events[
|
|
6602
|
+
let index3 = -1;
|
|
6603
|
+
while (++index3 < events.length) {
|
|
6604
|
+
prepared.push(events[index3]);
|
|
6605
|
+
if (events[index3][1].type === "listOrdered" || events[index3][1].type === "listUnordered") {
|
|
6606
|
+
if (events[index3][0] === "enter") {
|
|
6686
6607
|
listStack.push(prepared.length - 1);
|
|
6687
6608
|
} else {
|
|
6688
6609
|
const tail = listStack.pop();
|
|
@@ -6691,26 +6612,26 @@ function compiler(options) {
|
|
|
6691
6612
|
}
|
|
6692
6613
|
}
|
|
6693
6614
|
events = prepared;
|
|
6694
|
-
|
|
6695
|
-
while (++
|
|
6696
|
-
const handler = config[events[
|
|
6697
|
-
if (events[
|
|
6615
|
+
index3 = -1;
|
|
6616
|
+
while (++index3 < events.length) {
|
|
6617
|
+
const handler = config[events[index3][0]];
|
|
6618
|
+
if (events[index3][0] === "enter" && config.beforeEnter.length > 0) {
|
|
6698
6619
|
callListeners(config.beforeEnter, {
|
|
6699
6620
|
...context,
|
|
6700
|
-
sliceSerialize: events[
|
|
6701
|
-
}, events[
|
|
6621
|
+
sliceSerialize: events[index3][2].sliceSerialize
|
|
6622
|
+
}, events[index3][1]);
|
|
6702
6623
|
}
|
|
6703
|
-
if (own2.call(handler, events[
|
|
6704
|
-
handler[events[
|
|
6624
|
+
if (own2.call(handler, events[index3][1].type)) {
|
|
6625
|
+
handler[events[index3][1].type].call({
|
|
6705
6626
|
...context,
|
|
6706
|
-
sliceSerialize: events[
|
|
6707
|
-
}, events[
|
|
6627
|
+
sliceSerialize: events[index3][2].sliceSerialize
|
|
6628
|
+
}, events[index3][1]);
|
|
6708
6629
|
}
|
|
6709
|
-
if (events[
|
|
6630
|
+
if (events[index3][0] === "exit" && config.afterExit.length > 0) {
|
|
6710
6631
|
callListeners(config.afterExit, {
|
|
6711
6632
|
...context,
|
|
6712
|
-
sliceSerialize: events[
|
|
6713
|
-
}, events[
|
|
6633
|
+
sliceSerialize: events[index3][2].sliceSerialize
|
|
6634
|
+
}, events[index3][1]);
|
|
6714
6635
|
}
|
|
6715
6636
|
}
|
|
6716
6637
|
if (context.tokenStack.length > 0) {
|
|
@@ -6730,21 +6651,21 @@ function compiler(options) {
|
|
|
6730
6651
|
offset: 0
|
|
6731
6652
|
})
|
|
6732
6653
|
};
|
|
6733
|
-
|
|
6734
|
-
while (++
|
|
6735
|
-
tree = config.transforms[
|
|
6654
|
+
index3 = -1;
|
|
6655
|
+
while (++index3 < config.transforms.length) {
|
|
6656
|
+
tree = config.transforms[index3](tree) || tree;
|
|
6736
6657
|
}
|
|
6737
6658
|
return tree;
|
|
6738
6659
|
}
|
|
6739
6660
|
function callListeners(listeners, context, token) {
|
|
6740
|
-
let
|
|
6741
|
-
while (++
|
|
6742
|
-
listeners[
|
|
6661
|
+
let index3 = -1;
|
|
6662
|
+
while (++index3 < listeners.length) {
|
|
6663
|
+
listeners[index3].call(context, token);
|
|
6743
6664
|
}
|
|
6744
6665
|
}
|
|
6745
6666
|
function prepareList(events, start2) {
|
|
6746
6667
|
const end = events.length - 1;
|
|
6747
|
-
let
|
|
6668
|
+
let index3 = start2 - 1;
|
|
6748
6669
|
let containerBalance = -1;
|
|
6749
6670
|
let listSpread = false;
|
|
6750
6671
|
let listItem4;
|
|
@@ -6752,8 +6673,8 @@ function compiler(options) {
|
|
|
6752
6673
|
let firstBlankLineIndex;
|
|
6753
6674
|
let atMarker;
|
|
6754
6675
|
const insertions = [];
|
|
6755
|
-
while (++
|
|
6756
|
-
const event = events[
|
|
6676
|
+
while (++index3 <= end) {
|
|
6677
|
+
const event = events[index3];
|
|
6757
6678
|
switch (event[1].type) {
|
|
6758
6679
|
case "listUnordered":
|
|
6759
6680
|
case "listOrdered":
|
|
@@ -6769,7 +6690,7 @@ function compiler(options) {
|
|
|
6769
6690
|
case "lineEndingBlank": {
|
|
6770
6691
|
if (event[0] === "enter") {
|
|
6771
6692
|
if (listItem4 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
6772
|
-
firstBlankLineIndex =
|
|
6693
|
+
firstBlankLineIndex = index3;
|
|
6773
6694
|
}
|
|
6774
6695
|
atMarker = void 0;
|
|
6775
6696
|
}
|
|
@@ -6788,7 +6709,7 @@ function compiler(options) {
|
|
|
6788
6709
|
}
|
|
6789
6710
|
if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
|
|
6790
6711
|
if (listItem4) {
|
|
6791
|
-
let tailIndex =
|
|
6712
|
+
let tailIndex = index3;
|
|
6792
6713
|
lineIndex = void 0;
|
|
6793
6714
|
while (tailIndex--) {
|
|
6794
6715
|
const tailEvent = events[tailIndex];
|
|
@@ -6809,7 +6730,7 @@ function compiler(options) {
|
|
|
6809
6730
|
}
|
|
6810
6731
|
listItem4.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
|
|
6811
6732
|
insertions.push({
|
|
6812
|
-
at: lineIndex ||
|
|
6733
|
+
at: lineIndex || index3,
|
|
6813
6734
|
event: ["exit", listItem4, event[2]]
|
|
6814
6735
|
});
|
|
6815
6736
|
}
|
|
@@ -6823,7 +6744,7 @@ function compiler(options) {
|
|
|
6823
6744
|
};
|
|
6824
6745
|
listItem4 = item;
|
|
6825
6746
|
insertions.push({
|
|
6826
|
-
at:
|
|
6747
|
+
at: index3,
|
|
6827
6748
|
event: ["enter", item, event[2]]
|
|
6828
6749
|
});
|
|
6829
6750
|
firstBlankLineIndex = void 0;
|
|
@@ -6833,12 +6754,12 @@ function compiler(options) {
|
|
|
6833
6754
|
}
|
|
6834
6755
|
const listEvents = events.splice(start2);
|
|
6835
6756
|
let insertion = 0;
|
|
6836
|
-
|
|
6837
|
-
while (++
|
|
6838
|
-
while (insertion < insertions.length && insertions[insertion].at === start2 +
|
|
6757
|
+
index3 = -1;
|
|
6758
|
+
while (++index3 < listEvents.length) {
|
|
6759
|
+
while (insertion < insertions.length && insertions[insertion].at === start2 + index3) {
|
|
6839
6760
|
events.push(insertions[insertion++].event);
|
|
6840
6761
|
}
|
|
6841
|
-
events.push(listEvents[
|
|
6762
|
+
events.push(listEvents[index3]);
|
|
6842
6763
|
}
|
|
6843
6764
|
events[start2][1]._spread = listSpread;
|
|
6844
6765
|
}
|
|
@@ -7251,9 +7172,9 @@ function point3(d) {
|
|
|
7251
7172
|
};
|
|
7252
7173
|
}
|
|
7253
7174
|
function configure(combined, extensions) {
|
|
7254
|
-
let
|
|
7255
|
-
while (++
|
|
7256
|
-
const value = extensions[
|
|
7175
|
+
let index3 = -1;
|
|
7176
|
+
while (++index3 < extensions.length) {
|
|
7177
|
+
const value = extensions[index3];
|
|
7257
7178
|
if (Array.isArray(value)) {
|
|
7258
7179
|
configure(combined, value);
|
|
7259
7180
|
} else {
|
|
@@ -7405,7 +7326,7 @@ function footnoteReference(state, node2) {
|
|
|
7405
7326
|
const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
|
|
7406
7327
|
const id = String(node2.identifier).toUpperCase();
|
|
7407
7328
|
const safeId = normalizeUri(id.toLowerCase());
|
|
7408
|
-
const
|
|
7329
|
+
const index3 = state.footnoteOrder.indexOf(id);
|
|
7409
7330
|
let counter;
|
|
7410
7331
|
let reuseCounter = state.footnoteCounts.get(id);
|
|
7411
7332
|
if (reuseCounter === void 0) {
|
|
@@ -7413,7 +7334,7 @@ function footnoteReference(state, node2) {
|
|
|
7413
7334
|
state.footnoteOrder.push(id);
|
|
7414
7335
|
counter = state.footnoteOrder.length;
|
|
7415
7336
|
} else {
|
|
7416
|
-
counter =
|
|
7337
|
+
counter = index3 + 1;
|
|
7417
7338
|
}
|
|
7418
7339
|
reuseCounter += 1;
|
|
7419
7340
|
state.footnoteCounts.set(id, reuseCounter);
|
|
@@ -7596,10 +7517,10 @@ function listItem(state, node2, parent) {
|
|
|
7596
7517
|
});
|
|
7597
7518
|
properties2.className = ["task-list-item"];
|
|
7598
7519
|
}
|
|
7599
|
-
let
|
|
7600
|
-
while (++
|
|
7601
|
-
const child = results[
|
|
7602
|
-
if (loose ||
|
|
7520
|
+
let index3 = -1;
|
|
7521
|
+
while (++index3 < results.length) {
|
|
7522
|
+
const child = results[index3];
|
|
7523
|
+
if (loose || index3 !== 0 || child.type !== "element" || child.tagName !== "p") {
|
|
7603
7524
|
children2.push({ type: "text", value: "\n" });
|
|
7604
7525
|
}
|
|
7605
7526
|
if (child.type === "element" && child.tagName === "p" && !loose) {
|
|
@@ -7621,9 +7542,9 @@ function listLoose(node2) {
|
|
|
7621
7542
|
if (node2.type === "list") {
|
|
7622
7543
|
loose = node2.spread || false;
|
|
7623
7544
|
const children2 = node2.children;
|
|
7624
|
-
let
|
|
7625
|
-
while (!loose && ++
|
|
7626
|
-
loose = listItemLoose(children2[
|
|
7545
|
+
let index3 = -1;
|
|
7546
|
+
while (!loose && ++index3 < children2.length) {
|
|
7547
|
+
loose = listItemLoose(children2[index3]);
|
|
7627
7548
|
}
|
|
7628
7549
|
}
|
|
7629
7550
|
return loose;
|
|
@@ -7637,12 +7558,12 @@ function listItemLoose(node2) {
|
|
|
7637
7558
|
function list2(state, node2) {
|
|
7638
7559
|
const properties2 = {};
|
|
7639
7560
|
const results = state.all(node2);
|
|
7640
|
-
let
|
|
7561
|
+
let index3 = -1;
|
|
7641
7562
|
if (typeof node2.start === "number" && node2.start !== 1) {
|
|
7642
7563
|
properties2.start = node2.start;
|
|
7643
7564
|
}
|
|
7644
|
-
while (++
|
|
7645
|
-
const child = results[
|
|
7565
|
+
while (++index3 < results.length) {
|
|
7566
|
+
const child = results[index3];
|
|
7646
7567
|
if (child.type === "element" && child.tagName === "li" && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes("task-list-item")) {
|
|
7647
7568
|
properties2.className = ["contains-task-list"];
|
|
7648
7569
|
break;
|
|
@@ -7895,28 +7816,28 @@ var guard = (name2, init) => {
|
|
|
7895
7816
|
return new env[name2](init);
|
|
7896
7817
|
};
|
|
7897
7818
|
var deserializer = ($2, _) => {
|
|
7898
|
-
const as = (out,
|
|
7899
|
-
$2.set(
|
|
7819
|
+
const as = (out, index3) => {
|
|
7820
|
+
$2.set(index3, out);
|
|
7900
7821
|
return out;
|
|
7901
7822
|
};
|
|
7902
|
-
const unpair = (
|
|
7903
|
-
if ($2.has(
|
|
7904
|
-
return $2.get(
|
|
7905
|
-
const [type, value] = _[
|
|
7823
|
+
const unpair = (index3) => {
|
|
7824
|
+
if ($2.has(index3))
|
|
7825
|
+
return $2.get(index3);
|
|
7826
|
+
const [type, value] = _[index3];
|
|
7906
7827
|
switch (type) {
|
|
7907
7828
|
case PRIMITIVE:
|
|
7908
7829
|
case VOID:
|
|
7909
|
-
return as(value,
|
|
7830
|
+
return as(value, index3);
|
|
7910
7831
|
case ARRAY: {
|
|
7911
|
-
const arr = as([],
|
|
7912
|
-
for (const
|
|
7913
|
-
arr.push(unpair(
|
|
7832
|
+
const arr = as([], index3);
|
|
7833
|
+
for (const index4 of value)
|
|
7834
|
+
arr.push(unpair(index4));
|
|
7914
7835
|
return arr;
|
|
7915
7836
|
}
|
|
7916
7837
|
case OBJECT: {
|
|
7917
|
-
const object = as({},
|
|
7918
|
-
for (const [key,
|
|
7919
|
-
const k = unpair(key), value2 = unpair(
|
|
7838
|
+
const object = as({}, index3);
|
|
7839
|
+
for (const [key, index4] of value) {
|
|
7840
|
+
const k = unpair(key), value2 = unpair(index4);
|
|
7920
7841
|
if (k === "__proto__") defineProperty(object, k, {
|
|
7921
7842
|
value: value2,
|
|
7922
7843
|
configurable: true,
|
|
@@ -7928,34 +7849,34 @@ var deserializer = ($2, _) => {
|
|
|
7928
7849
|
return object;
|
|
7929
7850
|
}
|
|
7930
7851
|
case DATE:
|
|
7931
|
-
return as(new Date(value),
|
|
7852
|
+
return as(new Date(value), index3);
|
|
7932
7853
|
case REGEXP: {
|
|
7933
7854
|
const { source, flags } = value;
|
|
7934
|
-
return as(new RegExp(source, flags),
|
|
7855
|
+
return as(new RegExp(source, flags), index3);
|
|
7935
7856
|
}
|
|
7936
7857
|
case MAP: {
|
|
7937
|
-
const map3 = as(/* @__PURE__ */ new Map(),
|
|
7938
|
-
for (const [key,
|
|
7939
|
-
map3.set(unpair(key), unpair(
|
|
7858
|
+
const map3 = as(/* @__PURE__ */ new Map(), index3);
|
|
7859
|
+
for (const [key, index4] of value)
|
|
7860
|
+
map3.set(unpair(key), unpair(index4));
|
|
7940
7861
|
return map3;
|
|
7941
7862
|
}
|
|
7942
7863
|
case SET: {
|
|
7943
|
-
const set = as(/* @__PURE__ */ new Set(),
|
|
7944
|
-
for (const
|
|
7945
|
-
set.add(unpair(
|
|
7864
|
+
const set = as(/* @__PURE__ */ new Set(), index3);
|
|
7865
|
+
for (const index4 of value)
|
|
7866
|
+
set.add(unpair(index4));
|
|
7946
7867
|
return set;
|
|
7947
7868
|
}
|
|
7948
7869
|
case ERROR: {
|
|
7949
7870
|
const { name: name2, message } = value;
|
|
7950
7871
|
return as(
|
|
7951
7872
|
typeof env[name2] === "function" ? guard(name2, message) : new Error(message),
|
|
7952
|
-
|
|
7873
|
+
index3
|
|
7953
7874
|
);
|
|
7954
7875
|
}
|
|
7955
7876
|
case BIGINT:
|
|
7956
|
-
return as(BigInt(value),
|
|
7877
|
+
return as(BigInt(value), index3);
|
|
7957
7878
|
case "BigInt":
|
|
7958
|
-
return as(Object(BigInt(value)),
|
|
7879
|
+
return as(Object(BigInt(value)), index3);
|
|
7959
7880
|
case "ArrayBuffer":
|
|
7960
7881
|
return as(new Uint8Array(value).buffer, value);
|
|
7961
7882
|
case "DataView": {
|
|
@@ -7965,7 +7886,7 @@ var deserializer = ($2, _) => {
|
|
|
7965
7886
|
case "-0":
|
|
7966
7887
|
return -0;
|
|
7967
7888
|
}
|
|
7968
|
-
return as(guard(type, value),
|
|
7889
|
+
return as(guard(type, value), index3);
|
|
7969
7890
|
};
|
|
7970
7891
|
return unpair;
|
|
7971
7892
|
};
|
|
@@ -8005,11 +7926,11 @@ var typeOf = (value) => {
|
|
|
8005
7926
|
var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
|
|
8006
7927
|
var serializer = (strict, json, $2, _) => {
|
|
8007
7928
|
const as = (out, value) => {
|
|
8008
|
-
const
|
|
8009
|
-
$2.set(value,
|
|
8010
|
-
return
|
|
7929
|
+
const index3 = _.push(out) - 1;
|
|
7930
|
+
$2.set(value, index3);
|
|
7931
|
+
return index3;
|
|
8011
7932
|
};
|
|
8012
|
-
const
|
|
7933
|
+
const pair2 = (value) => {
|
|
8013
7934
|
if ($2.has(value))
|
|
8014
7935
|
return $2.get(value);
|
|
8015
7936
|
let [TYPE, type] = typeOf(value);
|
|
@@ -8047,10 +7968,10 @@ var serializer = (strict, json, $2, _) => {
|
|
|
8047
7968
|
return as([type, [...spread]], value);
|
|
8048
7969
|
}
|
|
8049
7970
|
const arr = [];
|
|
8050
|
-
const
|
|
7971
|
+
const index3 = as([TYPE, arr], value);
|
|
8051
7972
|
for (const entry of value)
|
|
8052
|
-
arr.push(
|
|
8053
|
-
return
|
|
7973
|
+
arr.push(pair2(entry));
|
|
7974
|
+
return index3;
|
|
8054
7975
|
}
|
|
8055
7976
|
case OBJECT: {
|
|
8056
7977
|
if (type) {
|
|
@@ -8064,14 +7985,14 @@ var serializer = (strict, json, $2, _) => {
|
|
|
8064
7985
|
}
|
|
8065
7986
|
}
|
|
8066
7987
|
if (json && "toJSON" in value)
|
|
8067
|
-
return
|
|
7988
|
+
return pair2(value.toJSON());
|
|
8068
7989
|
const entries = [];
|
|
8069
|
-
const
|
|
7990
|
+
const index3 = as([TYPE, entries], value);
|
|
8070
7991
|
for (const key of keys(value)) {
|
|
8071
7992
|
if (strict || !shouldSkip(typeOf(value[key])))
|
|
8072
|
-
entries.push([
|
|
7993
|
+
entries.push([pair2(key), pair2(value[key])]);
|
|
8073
7994
|
}
|
|
8074
|
-
return
|
|
7995
|
+
return index3;
|
|
8075
7996
|
}
|
|
8076
7997
|
case DATE:
|
|
8077
7998
|
return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);
|
|
@@ -8081,27 +8002,27 @@ var serializer = (strict, json, $2, _) => {
|
|
|
8081
8002
|
}
|
|
8082
8003
|
case MAP: {
|
|
8083
8004
|
const entries = [];
|
|
8084
|
-
const
|
|
8005
|
+
const index3 = as([TYPE, entries], value);
|
|
8085
8006
|
for (const [key, entry] of value) {
|
|
8086
8007
|
if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
|
|
8087
|
-
entries.push([
|
|
8008
|
+
entries.push([pair2(key), pair2(entry)]);
|
|
8088
8009
|
}
|
|
8089
|
-
return
|
|
8010
|
+
return index3;
|
|
8090
8011
|
}
|
|
8091
8012
|
case SET: {
|
|
8092
8013
|
const entries = [];
|
|
8093
|
-
const
|
|
8014
|
+
const index3 = as([TYPE, entries], value);
|
|
8094
8015
|
for (const entry of value) {
|
|
8095
8016
|
if (strict || !shouldSkip(typeOf(entry)))
|
|
8096
|
-
entries.push(
|
|
8017
|
+
entries.push(pair2(entry));
|
|
8097
8018
|
}
|
|
8098
|
-
return
|
|
8019
|
+
return index3;
|
|
8099
8020
|
}
|
|
8100
8021
|
}
|
|
8101
8022
|
const { message } = value;
|
|
8102
8023
|
return as([TYPE, { name: type, message }], value);
|
|
8103
8024
|
};
|
|
8104
|
-
return
|
|
8025
|
+
return pair2;
|
|
8105
8026
|
};
|
|
8106
8027
|
var serialize = (value, { json, lossy } = {}) => {
|
|
8107
8028
|
const _ = [];
|
|
@@ -8265,23 +8186,23 @@ var convert = (
|
|
|
8265
8186
|
);
|
|
8266
8187
|
function anyFactory(tests) {
|
|
8267
8188
|
const checks2 = [];
|
|
8268
|
-
let
|
|
8269
|
-
while (++
|
|
8270
|
-
checks2[
|
|
8189
|
+
let index3 = -1;
|
|
8190
|
+
while (++index3 < tests.length) {
|
|
8191
|
+
checks2[index3] = convert(tests[index3]);
|
|
8271
8192
|
}
|
|
8272
8193
|
return castFactory(any);
|
|
8273
8194
|
function any(...parameters) {
|
|
8274
|
-
let
|
|
8275
|
-
while (++
|
|
8276
|
-
if (checks2[
|
|
8195
|
+
let index4 = -1;
|
|
8196
|
+
while (++index4 < checks2.length) {
|
|
8197
|
+
if (checks2[index4].apply(this, parameters)) return true;
|
|
8277
8198
|
}
|
|
8278
8199
|
return false;
|
|
8279
8200
|
}
|
|
8280
8201
|
}
|
|
8281
|
-
function propertiesFactory(
|
|
8202
|
+
function propertiesFactory(check2) {
|
|
8282
8203
|
const checkAsRecord = (
|
|
8283
8204
|
/** @type {Record<string, unknown>} */
|
|
8284
|
-
|
|
8205
|
+
check2
|
|
8285
8206
|
);
|
|
8286
8207
|
return castFactory(all5);
|
|
8287
8208
|
function all5(node2) {
|
|
@@ -8291,26 +8212,26 @@ function propertiesFactory(check) {
|
|
|
8291
8212
|
node2
|
|
8292
8213
|
);
|
|
8293
8214
|
let key;
|
|
8294
|
-
for (key in
|
|
8215
|
+
for (key in check2) {
|
|
8295
8216
|
if (nodeAsRecord[key] !== checkAsRecord[key]) return false;
|
|
8296
8217
|
}
|
|
8297
8218
|
return true;
|
|
8298
8219
|
}
|
|
8299
8220
|
}
|
|
8300
|
-
function typeFactory(
|
|
8221
|
+
function typeFactory(check2) {
|
|
8301
8222
|
return castFactory(type);
|
|
8302
8223
|
function type(node2) {
|
|
8303
|
-
return node2 && node2.type ===
|
|
8224
|
+
return node2 && node2.type === check2;
|
|
8304
8225
|
}
|
|
8305
8226
|
}
|
|
8306
8227
|
function castFactory(testFunction) {
|
|
8307
|
-
return
|
|
8308
|
-
function
|
|
8228
|
+
return check2;
|
|
8229
|
+
function check2(value, index3, parent) {
|
|
8309
8230
|
return Boolean(
|
|
8310
8231
|
looksLikeANode(value) && testFunction.call(
|
|
8311
8232
|
this,
|
|
8312
8233
|
value,
|
|
8313
|
-
typeof
|
|
8234
|
+
typeof index3 === "number" ? index3 : void 0,
|
|
8314
8235
|
parent || void 0
|
|
8315
8236
|
)
|
|
8316
8237
|
);
|
|
@@ -8333,18 +8254,51 @@ var empty2 = [];
|
|
|
8333
8254
|
var CONTINUE = true;
|
|
8334
8255
|
var EXIT = false;
|
|
8335
8256
|
var SKIP = "skip";
|
|
8336
|
-
function visitParents(tree,
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8257
|
+
function visitParents(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, reverse) {
|
|
8258
|
+
if (!tree || typeof tree !== "object") {
|
|
8259
|
+
throw new Error("Unexpected value `" + tree + "` for `tree`, expected node");
|
|
8260
|
+
}
|
|
8261
|
+
let preorder = true;
|
|
8262
|
+
let check2;
|
|
8263
|
+
let visitors;
|
|
8264
|
+
let enter;
|
|
8265
|
+
let exit3;
|
|
8266
|
+
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
8267
|
+
check2 = /** @type {Test} */
|
|
8268
|
+
testOrEnterOrVisitors;
|
|
8269
|
+
visitors = enterOrVisitorsOrReverse;
|
|
8270
|
+
if (reverse) preorder = false;
|
|
8271
|
+
} else {
|
|
8272
|
+
visitors = /** @type {Visitors | Visitor} */
|
|
8273
|
+
testOrEnterOrVisitors;
|
|
8274
|
+
if (enterOrVisitorsOrReverse) preorder = false;
|
|
8275
|
+
}
|
|
8276
|
+
if (typeof visitors === "function") {
|
|
8277
|
+
enter = visitors;
|
|
8278
|
+
} else if (visitors && typeof visitors === "object") {
|
|
8279
|
+
if (visitors.enter === null || visitors.enter === void 0) ; else if (typeof visitors.enter === "function") {
|
|
8280
|
+
enter = visitors.enter;
|
|
8281
|
+
} else {
|
|
8282
|
+
throw new Error(
|
|
8283
|
+
"Unexpected value `" + visitors.enter + "` for `visitors.enter`, expected optional visitor"
|
|
8284
|
+
);
|
|
8285
|
+
}
|
|
8286
|
+
if (typeof visitors.exit === "function") {
|
|
8287
|
+
exit3 = visitors.exit;
|
|
8288
|
+
} else {
|
|
8289
|
+
throw new Error(
|
|
8290
|
+
"Unexpected value `" + visitors.exit + "` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)"
|
|
8291
|
+
);
|
|
8292
|
+
}
|
|
8341
8293
|
} else {
|
|
8342
|
-
|
|
8294
|
+
throw new Error(
|
|
8295
|
+
"Unexpected value `" + visitors + "` for `enter` or `visitors`, expected visitor or object with visitors"
|
|
8296
|
+
);
|
|
8343
8297
|
}
|
|
8344
|
-
const is3 = convert(
|
|
8345
|
-
const step =
|
|
8298
|
+
const is3 = convert(check2);
|
|
8299
|
+
const step = preorder ? 1 : -1;
|
|
8346
8300
|
factory(tree, void 0, [])();
|
|
8347
|
-
function factory(node2,
|
|
8301
|
+
function factory(node2, index3, parents) {
|
|
8348
8302
|
const value = (
|
|
8349
8303
|
/** @type {Record<string, unknown>} */
|
|
8350
8304
|
node2 && typeof node2 === "object" ? node2 : {}
|
|
@@ -8363,12 +8317,10 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
8363
8317
|
}
|
|
8364
8318
|
return visit2;
|
|
8365
8319
|
function visit2() {
|
|
8320
|
+
const matches = !check2 || is3(node2, index3, parents[parents.length - 1] || void 0);
|
|
8366
8321
|
let result = empty2;
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
let grandparents;
|
|
8370
|
-
if (!test || is3(node2, index2, parents[parents.length - 1] || void 0)) {
|
|
8371
|
-
result = toResult(visitor(node2, parents));
|
|
8322
|
+
if (enter && matches) {
|
|
8323
|
+
result = toResult(enter(node2, parents, index3));
|
|
8372
8324
|
if (result[0] === EXIT) {
|
|
8373
8325
|
return result;
|
|
8374
8326
|
}
|
|
@@ -8379,11 +8331,11 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
8379
8331
|
node2
|
|
8380
8332
|
);
|
|
8381
8333
|
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
8382
|
-
offset = (
|
|
8383
|
-
grandparents = parents
|
|
8334
|
+
let offset = (preorder ? -1 : nodeAsParent.children.length) + step;
|
|
8335
|
+
const grandparents = [...parents, nodeAsParent];
|
|
8384
8336
|
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
8385
8337
|
const child = nodeAsParent.children[offset];
|
|
8386
|
-
subresult = factory(child, offset, grandparents)();
|
|
8338
|
+
const subresult = factory(child, offset, grandparents)();
|
|
8387
8339
|
if (subresult[0] === EXIT) {
|
|
8388
8340
|
return subresult;
|
|
8389
8341
|
}
|
|
@@ -8391,6 +8343,17 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
8391
8343
|
}
|
|
8392
8344
|
}
|
|
8393
8345
|
}
|
|
8346
|
+
if (exit3 && matches) {
|
|
8347
|
+
const exitResult = toResult(exit3(node2, parents, index3));
|
|
8348
|
+
if (exitResult[0] === SKIP) {
|
|
8349
|
+
throw new Error(
|
|
8350
|
+
"Unexpected value `" + exitResult[0] + "` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing"
|
|
8351
|
+
);
|
|
8352
|
+
}
|
|
8353
|
+
if (exitResult[0] === EXIT || typeof exitResult[1] === "number") {
|
|
8354
|
+
return exitResult;
|
|
8355
|
+
}
|
|
8356
|
+
}
|
|
8394
8357
|
return result;
|
|
8395
8358
|
}
|
|
8396
8359
|
}
|
|
@@ -8406,24 +8369,37 @@ function toResult(value) {
|
|
|
8406
8369
|
}
|
|
8407
8370
|
|
|
8408
8371
|
// ../node_modules/unist-util-visit/lib/index.js
|
|
8409
|
-
function visit(tree,
|
|
8372
|
+
function visit(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, maybeReverse) {
|
|
8373
|
+
let check2;
|
|
8374
|
+
let visitors;
|
|
8410
8375
|
let reverse;
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
visitor = testOrVisitor;
|
|
8416
|
-
reverse = visitorOrReverse;
|
|
8417
|
-
} else {
|
|
8418
|
-
test = testOrVisitor;
|
|
8419
|
-
visitor = visitorOrReverse;
|
|
8376
|
+
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
8377
|
+
check2 = /** @type {Test} */
|
|
8378
|
+
testOrEnterOrVisitors;
|
|
8379
|
+
visitors = enterOrVisitorsOrReverse;
|
|
8420
8380
|
reverse = maybeReverse;
|
|
8381
|
+
} else {
|
|
8382
|
+
visitors = /** @type {Visitor | Visitors} */
|
|
8383
|
+
testOrEnterOrVisitors;
|
|
8384
|
+
reverse = enterOrVisitorsOrReverse;
|
|
8421
8385
|
}
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8386
|
+
if (typeof visitors === "function") {
|
|
8387
|
+
visitParents(tree, check2, wrap(visitors), reverse);
|
|
8388
|
+
} else {
|
|
8389
|
+
visitParents(tree, check2, wrapVisitors(visitors), reverse);
|
|
8390
|
+
}
|
|
8391
|
+
}
|
|
8392
|
+
function wrapVisitors(visitors) {
|
|
8393
|
+
if (!visitors || typeof visitors !== "object") return visitors;
|
|
8394
|
+
return {
|
|
8395
|
+
enter: typeof visitors.enter === "function" ? wrap(visitors.enter) : visitors.enter,
|
|
8396
|
+
exit: typeof visitors.exit === "function" ? wrap(visitors.exit) : visitors.exit
|
|
8397
|
+
};
|
|
8398
|
+
}
|
|
8399
|
+
function wrap(visitor) {
|
|
8400
|
+
return overload;
|
|
8401
|
+
function overload(node2, parents, index3) {
|
|
8402
|
+
return visitor(node2, index3, parents[parents.length - 1]);
|
|
8427
8403
|
}
|
|
8428
8404
|
}
|
|
8429
8405
|
|
|
@@ -8447,7 +8423,7 @@ function createState(tree, options) {
|
|
|
8447
8423
|
one: one5,
|
|
8448
8424
|
options: settings,
|
|
8449
8425
|
patch,
|
|
8450
|
-
wrap
|
|
8426
|
+
wrap: wrap2
|
|
8451
8427
|
};
|
|
8452
8428
|
visit(tree, function(node2) {
|
|
8453
8429
|
if (node2.type === "definition" || node2.type === "footnoteDefinition") {
|
|
@@ -8481,11 +8457,11 @@ function createState(tree, options) {
|
|
|
8481
8457
|
const values = [];
|
|
8482
8458
|
if ("children" in parent) {
|
|
8483
8459
|
const nodes = parent.children;
|
|
8484
|
-
let
|
|
8485
|
-
while (++
|
|
8486
|
-
const result = state.one(nodes[
|
|
8460
|
+
let index3 = -1;
|
|
8461
|
+
while (++index3 < nodes.length) {
|
|
8462
|
+
const result = state.one(nodes[index3], parent);
|
|
8487
8463
|
if (result) {
|
|
8488
|
-
if (
|
|
8464
|
+
if (index3 && nodes[index3 - 1].type === "break") {
|
|
8489
8465
|
if (!Array.isArray(result) && result.type === "text") {
|
|
8490
8466
|
result.value = trimMarkdownSpaceStart(result.value);
|
|
8491
8467
|
}
|
|
@@ -8544,15 +8520,15 @@ function defaultUnknownHandler(state, node2) {
|
|
|
8544
8520
|
state.patch(node2, result);
|
|
8545
8521
|
return state.applyData(node2, result);
|
|
8546
8522
|
}
|
|
8547
|
-
function
|
|
8523
|
+
function wrap2(nodes, loose) {
|
|
8548
8524
|
const result = [];
|
|
8549
|
-
let
|
|
8525
|
+
let index3 = -1;
|
|
8550
8526
|
if (loose) {
|
|
8551
8527
|
result.push({ type: "text", value: "\n" });
|
|
8552
8528
|
}
|
|
8553
|
-
while (++
|
|
8554
|
-
if (
|
|
8555
|
-
result.push(nodes[
|
|
8529
|
+
while (++index3 < nodes.length) {
|
|
8530
|
+
if (index3) result.push({ type: "text", value: "\n" });
|
|
8531
|
+
result.push(nodes[index3]);
|
|
8556
8532
|
}
|
|
8557
8533
|
if (loose && nodes.length > 0) {
|
|
8558
8534
|
result.push({ type: "text", value: "\n" });
|
|
@@ -8560,13 +8536,13 @@ function wrap(nodes, loose) {
|
|
|
8560
8536
|
return result;
|
|
8561
8537
|
}
|
|
8562
8538
|
function trimMarkdownSpaceStart(value) {
|
|
8563
|
-
let
|
|
8564
|
-
let code4 = value.charCodeAt(
|
|
8539
|
+
let index3 = 0;
|
|
8540
|
+
let code4 = value.charCodeAt(index3);
|
|
8565
8541
|
while (code4 === 9 || code4 === 32) {
|
|
8566
|
-
|
|
8567
|
-
code4 = value.charCodeAt(
|
|
8542
|
+
index3++;
|
|
8543
|
+
code4 = value.charCodeAt(index3);
|
|
8568
8544
|
}
|
|
8569
|
-
return value.slice(
|
|
8545
|
+
return value.slice(index3);
|
|
8570
8546
|
}
|
|
8571
8547
|
|
|
8572
8548
|
// ../node_modules/mdast-util-to-hast/lib/index.js
|
|
@@ -8633,19 +8609,19 @@ function trough() {
|
|
|
8633
8609
|
next2(null, ...values);
|
|
8634
8610
|
function next2(error, ...output) {
|
|
8635
8611
|
const fn = fns[++middlewareIndex];
|
|
8636
|
-
let
|
|
8612
|
+
let index3 = -1;
|
|
8637
8613
|
if (error) {
|
|
8638
8614
|
callback(error);
|
|
8639
8615
|
return;
|
|
8640
8616
|
}
|
|
8641
|
-
while (++
|
|
8642
|
-
if (output[
|
|
8643
|
-
output[
|
|
8617
|
+
while (++index3 < values.length) {
|
|
8618
|
+
if (output[index3] === null || output[index3] === void 0) {
|
|
8619
|
+
output[index3] = values[index3];
|
|
8644
8620
|
}
|
|
8645
8621
|
}
|
|
8646
8622
|
values = output;
|
|
8647
8623
|
if (fn) {
|
|
8648
|
-
|
|
8624
|
+
wrap3(fn, next2)(...output);
|
|
8649
8625
|
} else {
|
|
8650
8626
|
callback(null, ...output);
|
|
8651
8627
|
}
|
|
@@ -8661,7 +8637,7 @@ function trough() {
|
|
|
8661
8637
|
return pipeline;
|
|
8662
8638
|
}
|
|
8663
8639
|
}
|
|
8664
|
-
function
|
|
8640
|
+
function wrap3(middleware, callback) {
|
|
8665
8641
|
let called;
|
|
8666
8642
|
return wrapped;
|
|
8667
8643
|
function wrapped(...parameters) {
|
|
@@ -8712,18 +8688,18 @@ function basename(path2, extname2) {
|
|
|
8712
8688
|
assertPath(path2);
|
|
8713
8689
|
let start2 = 0;
|
|
8714
8690
|
let end = -1;
|
|
8715
|
-
let
|
|
8691
|
+
let index3 = path2.length;
|
|
8716
8692
|
let seenNonSlash;
|
|
8717
8693
|
if (extname2 === void 0 || extname2.length === 0 || extname2.length > path2.length) {
|
|
8718
|
-
while (
|
|
8719
|
-
if (path2.codePointAt(
|
|
8694
|
+
while (index3--) {
|
|
8695
|
+
if (path2.codePointAt(index3) === 47) {
|
|
8720
8696
|
if (seenNonSlash) {
|
|
8721
|
-
start2 =
|
|
8697
|
+
start2 = index3 + 1;
|
|
8722
8698
|
break;
|
|
8723
8699
|
}
|
|
8724
8700
|
} else if (end < 0) {
|
|
8725
8701
|
seenNonSlash = true;
|
|
8726
|
-
end =
|
|
8702
|
+
end = index3 + 1;
|
|
8727
8703
|
}
|
|
8728
8704
|
}
|
|
8729
8705
|
return end < 0 ? "" : path2.slice(start2, end);
|
|
@@ -8733,21 +8709,21 @@ function basename(path2, extname2) {
|
|
|
8733
8709
|
}
|
|
8734
8710
|
let firstNonSlashEnd = -1;
|
|
8735
8711
|
let extnameIndex = extname2.length - 1;
|
|
8736
|
-
while (
|
|
8737
|
-
if (path2.codePointAt(
|
|
8712
|
+
while (index3--) {
|
|
8713
|
+
if (path2.codePointAt(index3) === 47) {
|
|
8738
8714
|
if (seenNonSlash) {
|
|
8739
|
-
start2 =
|
|
8715
|
+
start2 = index3 + 1;
|
|
8740
8716
|
break;
|
|
8741
8717
|
}
|
|
8742
8718
|
} else {
|
|
8743
8719
|
if (firstNonSlashEnd < 0) {
|
|
8744
8720
|
seenNonSlash = true;
|
|
8745
|
-
firstNonSlashEnd =
|
|
8721
|
+
firstNonSlashEnd = index3 + 1;
|
|
8746
8722
|
}
|
|
8747
8723
|
if (extnameIndex > -1) {
|
|
8748
|
-
if (path2.codePointAt(
|
|
8724
|
+
if (path2.codePointAt(index3) === extname2.codePointAt(extnameIndex--)) {
|
|
8749
8725
|
if (extnameIndex < 0) {
|
|
8750
|
-
end =
|
|
8726
|
+
end = index3;
|
|
8751
8727
|
}
|
|
8752
8728
|
} else {
|
|
8753
8729
|
extnameIndex = -1;
|
|
@@ -8769,12 +8745,12 @@ function dirname(path2) {
|
|
|
8769
8745
|
return ".";
|
|
8770
8746
|
}
|
|
8771
8747
|
let end = -1;
|
|
8772
|
-
let
|
|
8748
|
+
let index3 = path2.length;
|
|
8773
8749
|
let unmatchedSlash;
|
|
8774
|
-
while (--
|
|
8775
|
-
if (path2.codePointAt(
|
|
8750
|
+
while (--index3) {
|
|
8751
|
+
if (path2.codePointAt(index3) === 47) {
|
|
8776
8752
|
if (unmatchedSlash) {
|
|
8777
|
-
end =
|
|
8753
|
+
end = index3;
|
|
8778
8754
|
break;
|
|
8779
8755
|
}
|
|
8780
8756
|
} else if (!unmatchedSlash) {
|
|
@@ -8785,28 +8761,28 @@ function dirname(path2) {
|
|
|
8785
8761
|
}
|
|
8786
8762
|
function extname(path2) {
|
|
8787
8763
|
assertPath(path2);
|
|
8788
|
-
let
|
|
8764
|
+
let index3 = path2.length;
|
|
8789
8765
|
let end = -1;
|
|
8790
8766
|
let startPart = 0;
|
|
8791
8767
|
let startDot = -1;
|
|
8792
8768
|
let preDotState = 0;
|
|
8793
8769
|
let unmatchedSlash;
|
|
8794
|
-
while (
|
|
8795
|
-
const code4 = path2.codePointAt(
|
|
8770
|
+
while (index3--) {
|
|
8771
|
+
const code4 = path2.codePointAt(index3);
|
|
8796
8772
|
if (code4 === 47) {
|
|
8797
8773
|
if (unmatchedSlash) {
|
|
8798
|
-
startPart =
|
|
8774
|
+
startPart = index3 + 1;
|
|
8799
8775
|
break;
|
|
8800
8776
|
}
|
|
8801
8777
|
continue;
|
|
8802
8778
|
}
|
|
8803
8779
|
if (end < 0) {
|
|
8804
8780
|
unmatchedSlash = true;
|
|
8805
|
-
end =
|
|
8781
|
+
end = index3 + 1;
|
|
8806
8782
|
}
|
|
8807
8783
|
if (code4 === 46) {
|
|
8808
8784
|
if (startDot < 0) {
|
|
8809
|
-
startDot =
|
|
8785
|
+
startDot = index3;
|
|
8810
8786
|
} else if (preDotState !== 1) {
|
|
8811
8787
|
preDotState = 1;
|
|
8812
8788
|
}
|
|
@@ -8822,12 +8798,12 @@ function extname(path2) {
|
|
|
8822
8798
|
return path2.slice(startDot, end);
|
|
8823
8799
|
}
|
|
8824
8800
|
function join(...segments) {
|
|
8825
|
-
let
|
|
8801
|
+
let index3 = -1;
|
|
8826
8802
|
let joined;
|
|
8827
|
-
while (++
|
|
8828
|
-
assertPath(segments[
|
|
8829
|
-
if (segments[
|
|
8830
|
-
joined = joined === void 0 ? segments[
|
|
8803
|
+
while (++index3 < segments.length) {
|
|
8804
|
+
assertPath(segments[index3]);
|
|
8805
|
+
if (segments[index3]) {
|
|
8806
|
+
joined = joined === void 0 ? segments[index3] : joined + "/" + segments[index3];
|
|
8831
8807
|
}
|
|
8832
8808
|
}
|
|
8833
8809
|
return joined === void 0 ? "." : normalize2(joined);
|
|
@@ -8849,19 +8825,19 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
8849
8825
|
let lastSegmentLength = 0;
|
|
8850
8826
|
let lastSlash = -1;
|
|
8851
8827
|
let dots = 0;
|
|
8852
|
-
let
|
|
8828
|
+
let index3 = -1;
|
|
8853
8829
|
let code4;
|
|
8854
8830
|
let lastSlashIndex;
|
|
8855
|
-
while (++
|
|
8856
|
-
if (
|
|
8857
|
-
code4 = path2.codePointAt(
|
|
8831
|
+
while (++index3 <= path2.length) {
|
|
8832
|
+
if (index3 < path2.length) {
|
|
8833
|
+
code4 = path2.codePointAt(index3);
|
|
8858
8834
|
} else if (code4 === 47) {
|
|
8859
8835
|
break;
|
|
8860
8836
|
} else {
|
|
8861
8837
|
code4 = 47;
|
|
8862
8838
|
}
|
|
8863
8839
|
if (code4 === 47) {
|
|
8864
|
-
if (lastSlash ===
|
|
8840
|
+
if (lastSlash === index3 - 1 || dots === 1) ; else if (lastSlash !== index3 - 1 && dots === 2) {
|
|
8865
8841
|
if (result.length < 2 || lastSegmentLength !== 2 || result.codePointAt(result.length - 1) !== 46 || result.codePointAt(result.length - 2) !== 46) {
|
|
8866
8842
|
if (result.length > 2) {
|
|
8867
8843
|
lastSlashIndex = result.lastIndexOf("/");
|
|
@@ -8873,14 +8849,14 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
8873
8849
|
result = result.slice(0, lastSlashIndex);
|
|
8874
8850
|
lastSegmentLength = result.length - 1 - result.lastIndexOf("/");
|
|
8875
8851
|
}
|
|
8876
|
-
lastSlash =
|
|
8852
|
+
lastSlash = index3;
|
|
8877
8853
|
dots = 0;
|
|
8878
8854
|
continue;
|
|
8879
8855
|
}
|
|
8880
8856
|
} else if (result.length > 0) {
|
|
8881
8857
|
result = "";
|
|
8882
8858
|
lastSegmentLength = 0;
|
|
8883
|
-
lastSlash =
|
|
8859
|
+
lastSlash = index3;
|
|
8884
8860
|
dots = 0;
|
|
8885
8861
|
continue;
|
|
8886
8862
|
}
|
|
@@ -8891,13 +8867,13 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
8891
8867
|
}
|
|
8892
8868
|
} else {
|
|
8893
8869
|
if (result.length > 0) {
|
|
8894
|
-
result += "/" + path2.slice(lastSlash + 1,
|
|
8870
|
+
result += "/" + path2.slice(lastSlash + 1, index3);
|
|
8895
8871
|
} else {
|
|
8896
|
-
result = path2.slice(lastSlash + 1,
|
|
8872
|
+
result = path2.slice(lastSlash + 1, index3);
|
|
8897
8873
|
}
|
|
8898
|
-
lastSegmentLength =
|
|
8874
|
+
lastSegmentLength = index3 - lastSlash - 1;
|
|
8899
8875
|
}
|
|
8900
|
-
lastSlash =
|
|
8876
|
+
lastSlash = index3;
|
|
8901
8877
|
dots = 0;
|
|
8902
8878
|
} else if (code4 === 46 && dots > -1) {
|
|
8903
8879
|
dots++;
|
|
@@ -8956,10 +8932,10 @@ function getPathFromURLPosix(url) {
|
|
|
8956
8932
|
throw error;
|
|
8957
8933
|
}
|
|
8958
8934
|
const pathname = url.pathname;
|
|
8959
|
-
let
|
|
8960
|
-
while (++
|
|
8961
|
-
if (pathname.codePointAt(
|
|
8962
|
-
const third = pathname.codePointAt(
|
|
8935
|
+
let index3 = -1;
|
|
8936
|
+
while (++index3 < pathname.length) {
|
|
8937
|
+
if (pathname.codePointAt(index3) === 37 && pathname.codePointAt(index3 + 1) === 50) {
|
|
8938
|
+
const third = pathname.codePointAt(index3 + 2);
|
|
8963
8939
|
if (third === 70 || third === 102) {
|
|
8964
8940
|
const error = new TypeError(
|
|
8965
8941
|
"File URL path must not include encoded / characters"
|
|
@@ -9026,9 +9002,9 @@ var VFile = class {
|
|
|
9026
9002
|
this.map;
|
|
9027
9003
|
this.result;
|
|
9028
9004
|
this.stored;
|
|
9029
|
-
let
|
|
9030
|
-
while (++
|
|
9031
|
-
const field2 = order[
|
|
9005
|
+
let index3 = -1;
|
|
9006
|
+
while (++index3 < order.length) {
|
|
9007
|
+
const field2 = order[index3];
|
|
9032
9008
|
if (field2 in options && options[field2] !== void 0 && options[field2] !== null) {
|
|
9033
9009
|
this[field2] = field2 === "history" ? [...options[field2]] : options[field2];
|
|
9034
9010
|
}
|
|
@@ -9491,9 +9467,9 @@ var Processor = class _Processor extends CallableInstance {
|
|
|
9491
9467
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
9492
9468
|
new _Processor()
|
|
9493
9469
|
);
|
|
9494
|
-
let
|
|
9495
|
-
while (++
|
|
9496
|
-
const attacher = this.attachers[
|
|
9470
|
+
let index3 = -1;
|
|
9471
|
+
while (++index3 < this.attachers.length) {
|
|
9472
|
+
const attacher = this.attachers[index3];
|
|
9497
9473
|
destination.use(...attacher);
|
|
9498
9474
|
}
|
|
9499
9475
|
destination.data((0, import_extend.default)(true, {}, this.namespace));
|
|
@@ -10004,10 +9980,10 @@ var Processor = class _Processor extends CallableInstance {
|
|
|
10004
9980
|
}
|
|
10005
9981
|
}
|
|
10006
9982
|
function addList(plugins) {
|
|
10007
|
-
let
|
|
9983
|
+
let index3 = -1;
|
|
10008
9984
|
if (plugins === null || plugins === void 0) ; else if (Array.isArray(plugins)) {
|
|
10009
|
-
while (++
|
|
10010
|
-
const thing = plugins[
|
|
9985
|
+
while (++index3 < plugins.length) {
|
|
9986
|
+
const thing = plugins[index3];
|
|
10011
9987
|
add(thing);
|
|
10012
9988
|
}
|
|
10013
9989
|
} else {
|
|
@@ -10015,11 +9991,11 @@ var Processor = class _Processor extends CallableInstance {
|
|
|
10015
9991
|
}
|
|
10016
9992
|
}
|
|
10017
9993
|
function addPlugin(plugin, parameters2) {
|
|
10018
|
-
let
|
|
9994
|
+
let index3 = -1;
|
|
10019
9995
|
let entryIndex = -1;
|
|
10020
|
-
while (++
|
|
10021
|
-
if (attachers[
|
|
10022
|
-
entryIndex =
|
|
9996
|
+
while (++index3 < attachers.length) {
|
|
9997
|
+
if (attachers[index3][0] === plugin) {
|
|
9998
|
+
entryIndex = index3;
|
|
10023
9999
|
break;
|
|
10024
10000
|
}
|
|
10025
10001
|
}
|
|
@@ -10167,14 +10143,14 @@ function post(tree, options) {
|
|
|
10167
10143
|
passKeys: true,
|
|
10168
10144
|
passNode: true
|
|
10169
10145
|
});
|
|
10170
|
-
function transform2(node2,
|
|
10171
|
-
if (node2.type === "raw" && parent && typeof
|
|
10146
|
+
function transform2(node2, index3, parent) {
|
|
10147
|
+
if (node2.type === "raw" && parent && typeof index3 === "number") {
|
|
10172
10148
|
if (skipHtml) {
|
|
10173
|
-
parent.children.splice(
|
|
10149
|
+
parent.children.splice(index3, 1);
|
|
10174
10150
|
} else {
|
|
10175
|
-
parent.children[
|
|
10151
|
+
parent.children[index3] = { type: "text", value: node2.value };
|
|
10176
10152
|
}
|
|
10177
|
-
return
|
|
10153
|
+
return index3;
|
|
10178
10154
|
}
|
|
10179
10155
|
if (node2.type === "element") {
|
|
10180
10156
|
let key;
|
|
@@ -10190,16 +10166,16 @@ function post(tree, options) {
|
|
|
10190
10166
|
}
|
|
10191
10167
|
if (node2.type === "element") {
|
|
10192
10168
|
let remove = allowedElements ? !allowedElements.includes(node2.tagName) : disallowedElements ? disallowedElements.includes(node2.tagName) : false;
|
|
10193
|
-
if (!remove && allowElement && typeof
|
|
10194
|
-
remove = !allowElement(node2,
|
|
10169
|
+
if (!remove && allowElement && typeof index3 === "number") {
|
|
10170
|
+
remove = !allowElement(node2, index3, parent);
|
|
10195
10171
|
}
|
|
10196
|
-
if (remove && parent && typeof
|
|
10172
|
+
if (remove && parent && typeof index3 === "number") {
|
|
10197
10173
|
if (unwrapDisallowed && node2.children) {
|
|
10198
|
-
parent.children.splice(
|
|
10174
|
+
parent.children.splice(index3, 1, ...node2.children);
|
|
10199
10175
|
} else {
|
|
10200
|
-
parent.children.splice(
|
|
10176
|
+
parent.children.splice(index3, 1);
|
|
10201
10177
|
}
|
|
10202
|
-
return
|
|
10178
|
+
return index3;
|
|
10203
10179
|
}
|
|
10204
10180
|
}
|
|
10205
10181
|
}
|
|
@@ -10286,7 +10262,7 @@ function createH(schema, defaultTagName, caseSensitive) {
|
|
|
10286
10262
|
for (const child of children2) {
|
|
10287
10263
|
addChild(node2.children, child);
|
|
10288
10264
|
}
|
|
10289
|
-
if (node2.type === "element" && node2.tagName === "template") {
|
|
10265
|
+
if (node2.type === "element" && node2.tagName === "template" && schema.space === "html") {
|
|
10290
10266
|
node2.content = { type: "root", children: node2.children };
|
|
10291
10267
|
node2.children = [];
|
|
10292
10268
|
}
|
|
@@ -10325,9 +10301,9 @@ function isChild(value) {
|
|
|
10325
10301
|
return false;
|
|
10326
10302
|
}
|
|
10327
10303
|
function addProperty(schema, properties2, key, value) {
|
|
10304
|
+
if (value === null || value === void 0) return;
|
|
10328
10305
|
const info = find(schema, key);
|
|
10329
10306
|
let result;
|
|
10330
|
-
if (value === null || value === void 0) return;
|
|
10331
10307
|
if (typeof value === "number") {
|
|
10332
10308
|
if (Number.isNaN(value)) return;
|
|
10333
10309
|
result = value;
|
|
@@ -10359,10 +10335,11 @@ function addProperty(schema, properties2, key, value) {
|
|
|
10359
10335
|
result = finalResult;
|
|
10360
10336
|
}
|
|
10361
10337
|
if (info.property === "className" && Array.isArray(properties2.className)) {
|
|
10362
|
-
|
|
10338
|
+
const add = (
|
|
10363
10339
|
/** @type {Array<number | string> | number | string} */
|
|
10364
10340
|
result
|
|
10365
10341
|
);
|
|
10342
|
+
result = [...properties2.className, ...Array.isArray(add) ? add : [add]];
|
|
10366
10343
|
}
|
|
10367
10344
|
properties2[info.property] = result;
|
|
10368
10345
|
}
|
|
@@ -10463,22 +10440,22 @@ function location(file) {
|
|
|
10463
10440
|
return { toOffset, toPoint };
|
|
10464
10441
|
function toPoint(offset) {
|
|
10465
10442
|
if (typeof offset === "number" && offset > -1 && offset <= value.length) {
|
|
10466
|
-
let
|
|
10443
|
+
let index3 = 0;
|
|
10467
10444
|
while (true) {
|
|
10468
|
-
let end = indices[
|
|
10445
|
+
let end = indices[index3];
|
|
10469
10446
|
if (end === void 0) {
|
|
10470
|
-
const eol = next(value, indices[
|
|
10447
|
+
const eol = next(value, indices[index3 - 1]);
|
|
10471
10448
|
end = eol === -1 ? value.length + 1 : eol + 1;
|
|
10472
|
-
indices[
|
|
10449
|
+
indices[index3] = end;
|
|
10473
10450
|
}
|
|
10474
10451
|
if (end > offset) {
|
|
10475
10452
|
return {
|
|
10476
|
-
line:
|
|
10477
|
-
column: offset - (
|
|
10453
|
+
line: index3 + 1,
|
|
10454
|
+
column: offset - (index3 > 0 ? indices[index3 - 1] : 0) + 1,
|
|
10478
10455
|
offset
|
|
10479
10456
|
};
|
|
10480
10457
|
}
|
|
10481
|
-
|
|
10458
|
+
index3++;
|
|
10482
10459
|
}
|
|
10483
10460
|
}
|
|
10484
10461
|
}
|
|
@@ -10592,24 +10569,24 @@ function one3(state, node2) {
|
|
|
10592
10569
|
}
|
|
10593
10570
|
}
|
|
10594
10571
|
function all2(state, nodes) {
|
|
10595
|
-
let
|
|
10572
|
+
let index3 = -1;
|
|
10596
10573
|
const results = [];
|
|
10597
|
-
while (++
|
|
10574
|
+
while (++index3 < nodes.length) {
|
|
10598
10575
|
const result = (
|
|
10599
10576
|
/** @type {RootContent} */
|
|
10600
|
-
one3(state, nodes[
|
|
10577
|
+
one3(state, nodes[index3])
|
|
10601
10578
|
);
|
|
10602
10579
|
results.push(result);
|
|
10603
10580
|
}
|
|
10604
10581
|
return results;
|
|
10605
10582
|
}
|
|
10606
10583
|
function element3(state, node2) {
|
|
10607
|
-
const schema = state
|
|
10584
|
+
const { schema } = state;
|
|
10608
10585
|
state.schema = node2.namespaceURI === webNamespaces.svg ? svg2 : html2;
|
|
10609
|
-
let
|
|
10586
|
+
let index3 = -1;
|
|
10610
10587
|
const properties2 = {};
|
|
10611
|
-
while (++
|
|
10612
|
-
const attribute = node2.attrs[
|
|
10588
|
+
while (++index3 < node2.attrs.length) {
|
|
10589
|
+
const attribute = node2.attrs[index3];
|
|
10613
10590
|
const name2 = (attribute.prefix ? attribute.prefix + ":" : "") + attribute.name;
|
|
10614
10591
|
if (!own5.call(proto, name2)) {
|
|
10615
10592
|
properties2[name2] = attribute.value;
|
|
@@ -10619,21 +10596,27 @@ function element3(state, node2) {
|
|
|
10619
10596
|
const result = x(node2.tagName, properties2, all2(state, node2.childNodes));
|
|
10620
10597
|
patch2(state, node2, result);
|
|
10621
10598
|
if (result.tagName === "template") {
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10599
|
+
if (node2.namespaceURI === webNamespaces.html) {
|
|
10600
|
+
const reference = (
|
|
10601
|
+
/** @type {DefaultTreeAdapterMap['template']} */
|
|
10602
|
+
node2
|
|
10603
|
+
);
|
|
10604
|
+
const pos = reference.sourceCodeLocation;
|
|
10605
|
+
const startTag2 = pos && pos.startTag && position3(pos.startTag);
|
|
10606
|
+
const endTag2 = pos && pos.endTag && position3(pos.endTag);
|
|
10607
|
+
const content3 = (
|
|
10608
|
+
/** @type {Root} */
|
|
10609
|
+
one3(state, reference.content)
|
|
10610
|
+
);
|
|
10611
|
+
if (startTag2 && endTag2 && state.file) {
|
|
10612
|
+
content3.position = { start: startTag2.end, end: endTag2.start };
|
|
10613
|
+
}
|
|
10614
|
+
result.content = content3;
|
|
10615
|
+
} else if (result.content) {
|
|
10616
|
+
result.children = /** @type {Array<ElementContent>} */
|
|
10617
|
+
result.content.children;
|
|
10618
|
+
delete result.content;
|
|
10635
10619
|
}
|
|
10636
|
-
result.content = content3;
|
|
10637
10620
|
}
|
|
10638
10621
|
state.schema = schema;
|
|
10639
10622
|
return result;
|
|
@@ -10822,23 +10805,23 @@ function createProperty2(schema, prop, value) {
|
|
|
10822
10805
|
value: value === true ? "" : String(value)
|
|
10823
10806
|
};
|
|
10824
10807
|
if (info.space && info.space !== "html" && info.space !== "svg") {
|
|
10825
|
-
const
|
|
10826
|
-
if (
|
|
10808
|
+
const index3 = attribute.name.indexOf(":");
|
|
10809
|
+
if (index3 < 0) {
|
|
10827
10810
|
attribute.prefix = "";
|
|
10828
10811
|
} else {
|
|
10829
|
-
attribute.name = attribute.name.slice(
|
|
10830
|
-
attribute.prefix = info.attribute.slice(0,
|
|
10812
|
+
attribute.name = attribute.name.slice(index3 + 1);
|
|
10813
|
+
attribute.prefix = info.attribute.slice(0, index3);
|
|
10831
10814
|
}
|
|
10832
10815
|
attribute.namespace = webNamespaces[info.space];
|
|
10833
10816
|
}
|
|
10834
10817
|
return attribute;
|
|
10835
10818
|
}
|
|
10836
10819
|
function all3(children2, parentNode, schema) {
|
|
10837
|
-
let
|
|
10820
|
+
let index3 = -1;
|
|
10838
10821
|
const results = [];
|
|
10839
10822
|
if (children2) {
|
|
10840
|
-
while (++
|
|
10841
|
-
const child = one4(children2[
|
|
10823
|
+
while (++index3 < children2.length) {
|
|
10824
|
+
const child = one4(children2[index3], schema);
|
|
10842
10825
|
child.parentNode = parentNode;
|
|
10843
10826
|
results.push(child);
|
|
10844
10827
|
}
|
|
@@ -15093,7 +15076,7 @@ var FormattingElementList = class {
|
|
|
15093
15076
|
//OPTIMIZATION: at first we try to find possible candidates for exclusion using
|
|
15094
15077
|
//lightweight heuristics without thorough attributes check.
|
|
15095
15078
|
_getNoahArkConditionCandidates(newElement, neAttrs) {
|
|
15096
|
-
const
|
|
15079
|
+
const candidates2 = [];
|
|
15097
15080
|
const neAttrsLength = neAttrs.length;
|
|
15098
15081
|
const neTagName = this.treeAdapter.getTagName(newElement);
|
|
15099
15082
|
const neNamespaceURI = this.treeAdapter.getNamespaceURI(newElement);
|
|
@@ -15106,23 +15089,23 @@ var FormattingElementList = class {
|
|
|
15106
15089
|
if (this.treeAdapter.getTagName(element7) === neTagName && this.treeAdapter.getNamespaceURI(element7) === neNamespaceURI) {
|
|
15107
15090
|
const elementAttrs = this.treeAdapter.getAttrList(element7);
|
|
15108
15091
|
if (elementAttrs.length === neAttrsLength) {
|
|
15109
|
-
|
|
15092
|
+
candidates2.push({ idx: i, attrs: elementAttrs });
|
|
15110
15093
|
}
|
|
15111
15094
|
}
|
|
15112
15095
|
}
|
|
15113
|
-
return
|
|
15096
|
+
return candidates2;
|
|
15114
15097
|
}
|
|
15115
15098
|
_ensureNoahArkCondition(newElement) {
|
|
15116
15099
|
if (this.entries.length < NOAH_ARK_CAPACITY)
|
|
15117
15100
|
return;
|
|
15118
15101
|
const neAttrs = this.treeAdapter.getAttrList(newElement);
|
|
15119
|
-
const
|
|
15120
|
-
if (
|
|
15102
|
+
const candidates2 = this._getNoahArkConditionCandidates(newElement, neAttrs);
|
|
15103
|
+
if (candidates2.length < NOAH_ARK_CAPACITY)
|
|
15121
15104
|
return;
|
|
15122
15105
|
const neAttrsMap = new Map(neAttrs.map((neAttr) => [neAttr.name, neAttr.value]));
|
|
15123
15106
|
let validCandidates = 0;
|
|
15124
|
-
for (let i = 0; i <
|
|
15125
|
-
const candidate =
|
|
15107
|
+
for (let i = 0; i < candidates2.length; i++) {
|
|
15108
|
+
const candidate = candidates2[i];
|
|
15126
15109
|
if (candidate.attrs.every((cAttr) => neAttrsMap.get(cAttr.name) === cAttr.value)) {
|
|
15127
15110
|
validCandidates += 1;
|
|
15128
15111
|
if (validCandidates >= NOAH_ARK_CAPACITY) {
|
|
@@ -18744,16 +18727,16 @@ function raw(tree, options) {
|
|
|
18744
18727
|
file: state.options.file
|
|
18745
18728
|
});
|
|
18746
18729
|
if (state.stitches) {
|
|
18747
|
-
visit(result, "comment", function(node2,
|
|
18730
|
+
visit(result, "comment", function(node2, index3, parent) {
|
|
18748
18731
|
const stitch2 = (
|
|
18749
18732
|
/** @type {Stitch} */
|
|
18750
18733
|
/** @type {unknown} */
|
|
18751
18734
|
node2
|
|
18752
18735
|
);
|
|
18753
|
-
if (stitch2.value.stitch && parent &&
|
|
18736
|
+
if (stitch2.value.stitch && parent && index3 !== void 0) {
|
|
18754
18737
|
const siblings = parent.children;
|
|
18755
|
-
siblings[
|
|
18756
|
-
return
|
|
18738
|
+
siblings[index3] = stitch2.value.stitch;
|
|
18739
|
+
return index3;
|
|
18757
18740
|
}
|
|
18758
18741
|
});
|
|
18759
18742
|
}
|
|
@@ -18763,10 +18746,10 @@ function raw(tree, options) {
|
|
|
18763
18746
|
return result;
|
|
18764
18747
|
}
|
|
18765
18748
|
function all4(nodes, state) {
|
|
18766
|
-
let
|
|
18749
|
+
let index3 = -1;
|
|
18767
18750
|
if (nodes) {
|
|
18768
|
-
while (++
|
|
18769
|
-
state.handle(nodes[
|
|
18751
|
+
while (++index3 < nodes.length) {
|
|
18752
|
+
state.handle(nodes[index3]);
|
|
18770
18753
|
}
|
|
18771
18754
|
}
|
|
18772
18755
|
}
|
|
@@ -19008,10 +18991,10 @@ function ccount(value, character) {
|
|
|
19008
18991
|
throw new TypeError("Expected character");
|
|
19009
18992
|
}
|
|
19010
18993
|
let count = 0;
|
|
19011
|
-
let
|
|
19012
|
-
while (
|
|
18994
|
+
let index3 = source.indexOf(character);
|
|
18995
|
+
while (index3 !== -1) {
|
|
19013
18996
|
count++;
|
|
19014
|
-
|
|
18997
|
+
index3 = source.indexOf(character, index3 + character.length);
|
|
19015
18998
|
}
|
|
19016
18999
|
return count;
|
|
19017
19000
|
}
|
|
@@ -19031,34 +19014,19 @@ function findAndReplace(tree, list4, options) {
|
|
|
19031
19014
|
const pairs = toPairs(list4);
|
|
19032
19015
|
let pairIndex = -1;
|
|
19033
19016
|
while (++pairIndex < pairs.length) {
|
|
19034
|
-
visitParents(tree,
|
|
19035
|
-
}
|
|
19036
|
-
function visitor(node2, parents) {
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
while (++index2 < parents.length) {
|
|
19040
|
-
const parent = parents[index2];
|
|
19041
|
-
const siblings = grandparent ? grandparent.children : void 0;
|
|
19042
|
-
if (ignored(
|
|
19043
|
-
parent,
|
|
19044
|
-
siblings ? siblings.indexOf(parent) : void 0,
|
|
19045
|
-
grandparent
|
|
19046
|
-
)) {
|
|
19047
|
-
return;
|
|
19048
|
-
}
|
|
19049
|
-
grandparent = parent;
|
|
19050
|
-
}
|
|
19051
|
-
if (grandparent) {
|
|
19052
|
-
return handler(node2, parents);
|
|
19017
|
+
visitParents(tree, visitor);
|
|
19018
|
+
}
|
|
19019
|
+
function visitor(node2, parents, index3) {
|
|
19020
|
+
if (node2.type === "text" && typeof index3 === "number") {
|
|
19021
|
+
return handler(node2, parents, index3);
|
|
19053
19022
|
}
|
|
19023
|
+
if (ignored(node2, index3, parents[parents.length - 1])) return SKIP;
|
|
19054
19024
|
}
|
|
19055
|
-
function handler(node2, parents) {
|
|
19025
|
+
function handler(node2, parents, index3) {
|
|
19056
19026
|
const parent = parents[parents.length - 1];
|
|
19057
19027
|
const find2 = pairs[pairIndex][0];
|
|
19058
19028
|
const replace2 = pairs[pairIndex][1];
|
|
19059
19029
|
let start2 = 0;
|
|
19060
|
-
const siblings = parent.children;
|
|
19061
|
-
const index2 = siblings.indexOf(node2);
|
|
19062
19030
|
let change = false;
|
|
19063
19031
|
let nodes = [];
|
|
19064
19032
|
find2.lastIndex = 0;
|
|
@@ -19097,11 +19065,11 @@ function findAndReplace(tree, list4, options) {
|
|
|
19097
19065
|
if (start2 < node2.value.length) {
|
|
19098
19066
|
add({ type: "text", value: node2.value.slice(start2) });
|
|
19099
19067
|
}
|
|
19100
|
-
parent.children.splice(
|
|
19068
|
+
parent.children.splice(index3, 1, ...nodes);
|
|
19101
19069
|
} else {
|
|
19102
19070
|
nodes = [node2];
|
|
19103
19071
|
}
|
|
19104
|
-
return
|
|
19072
|
+
return index3 + nodes.length;
|
|
19105
19073
|
function add(child) {
|
|
19106
19074
|
const previous3 = nodes[nodes.length - 1];
|
|
19107
19075
|
if (previous3 && previous3.type === "text" && child.type === "text") {
|
|
@@ -19117,10 +19085,16 @@ function toPairs(tupleOrList) {
|
|
|
19117
19085
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
19118
19086
|
}
|
|
19119
19087
|
const result = [];
|
|
19120
|
-
const list4 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ?
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19088
|
+
const list4 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? (
|
|
19089
|
+
/** @type {FindAndReplaceList} */
|
|
19090
|
+
tupleOrList
|
|
19091
|
+
) : [
|
|
19092
|
+
/** @type {FindAndReplaceTuple} */
|
|
19093
|
+
tupleOrList
|
|
19094
|
+
];
|
|
19095
|
+
let index3 = -1;
|
|
19096
|
+
while (++index3 < list4.length) {
|
|
19097
|
+
const tuple = list4[index3];
|
|
19124
19098
|
result.push([toExpression(tuple[0]), toFunction(tuple[1])]);
|
|
19125
19099
|
}
|
|
19126
19100
|
return result;
|
|
@@ -19390,10 +19364,10 @@ function gfmFootnoteToMarkdown(options) {
|
|
|
19390
19364
|
return value;
|
|
19391
19365
|
}
|
|
19392
19366
|
}
|
|
19393
|
-
function mapExceptFirst(line,
|
|
19394
|
-
return
|
|
19367
|
+
function mapExceptFirst(line, index3, blank) {
|
|
19368
|
+
return index3 === 0 ? line : mapAll(line, index3, blank);
|
|
19395
19369
|
}
|
|
19396
|
-
function mapAll(line,
|
|
19370
|
+
function mapAll(line, index3, blank) {
|
|
19397
19371
|
return (blank ? "" : " ") + line;
|
|
19398
19372
|
}
|
|
19399
19373
|
|
|
@@ -19536,9 +19510,10 @@ function markdownTable(table2, options) {
|
|
|
19536
19510
|
while (++rowIndex < cellMatrix.length) {
|
|
19537
19511
|
const row2 = cellMatrix[rowIndex];
|
|
19538
19512
|
const sizes2 = sizeMatrix[rowIndex];
|
|
19513
|
+
const cellsInRow = settings.fillRows === false ? Math.max(1, cellMatrix[rowIndex === 1 ? 0 : rowIndex].length) : mostCellsPerRow;
|
|
19539
19514
|
columnIndex = -1;
|
|
19540
19515
|
const line = [];
|
|
19541
|
-
while (++columnIndex <
|
|
19516
|
+
while (++columnIndex < cellsInRow) {
|
|
19542
19517
|
const cell = row2[columnIndex] || "";
|
|
19543
19518
|
let before = "";
|
|
19544
19519
|
let after = "";
|
|
@@ -19548,11 +19523,12 @@ function markdownTable(table2, options) {
|
|
|
19548
19523
|
if (code4 === 114) {
|
|
19549
19524
|
before = " ".repeat(size);
|
|
19550
19525
|
} else if (code4 === 99) {
|
|
19526
|
+
const half = size / 2;
|
|
19551
19527
|
if (size % 2) {
|
|
19552
|
-
before = " ".repeat(
|
|
19553
|
-
after = " ".repeat(
|
|
19528
|
+
before = " ".repeat(half + 0.5);
|
|
19529
|
+
after = " ".repeat(half - 0.5);
|
|
19554
19530
|
} else {
|
|
19555
|
-
before = " ".repeat(
|
|
19531
|
+
before = " ".repeat(half);
|
|
19556
19532
|
after = before;
|
|
19557
19533
|
}
|
|
19558
19534
|
} else {
|
|
@@ -19577,7 +19553,7 @@ function markdownTable(table2, options) {
|
|
|
19577
19553
|
if (settings.padding !== false) {
|
|
19578
19554
|
line.push(" ");
|
|
19579
19555
|
}
|
|
19580
|
-
if (settings.delimiterEnd !== false || columnIndex !==
|
|
19556
|
+
if (settings.delimiterEnd !== false || columnIndex !== cellsInRow - 1) {
|
|
19581
19557
|
line.push("|");
|
|
19582
19558
|
}
|
|
19583
19559
|
}
|
|
@@ -19651,9 +19627,9 @@ function listInScope(stack, list4, none) {
|
|
|
19651
19627
|
if (!list4 || list4.length === 0) {
|
|
19652
19628
|
return none;
|
|
19653
19629
|
}
|
|
19654
|
-
let
|
|
19655
|
-
while (++
|
|
19656
|
-
if (stack.includes(list4[
|
|
19630
|
+
let index3 = -1;
|
|
19631
|
+
while (++index3 < list4.length) {
|
|
19632
|
+
if (stack.includes(list4[index3])) {
|
|
19657
19633
|
return true;
|
|
19658
19634
|
}
|
|
19659
19635
|
}
|
|
@@ -19662,9 +19638,9 @@ function listInScope(stack, list4, none) {
|
|
|
19662
19638
|
|
|
19663
19639
|
// ../node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
19664
19640
|
function hardBreak2(_, _1, state, info) {
|
|
19665
|
-
let
|
|
19666
|
-
while (++
|
|
19667
|
-
const pattern = state.unsafe[
|
|
19641
|
+
let index3 = -1;
|
|
19642
|
+
while (++index3 < state.unsafe.length) {
|
|
19643
|
+
const pattern = state.unsafe[index3];
|
|
19668
19644
|
if (pattern.character === "\n" && !pattern.before && !pattern.after && patternInScope(state.stack, pattern)) {
|
|
19669
19645
|
return /[\t ]/.test(info.before) ? "" : " ";
|
|
19670
19646
|
}
|
|
@@ -19675,23 +19651,23 @@ function hardBreak2(_, _1, state, info) {
|
|
|
19675
19651
|
// ../node_modules/longest-streak/index.js
|
|
19676
19652
|
function longestStreak(value, substring) {
|
|
19677
19653
|
const source = String(value);
|
|
19678
|
-
let
|
|
19679
|
-
let expected =
|
|
19654
|
+
let index3 = source.indexOf(substring);
|
|
19655
|
+
let expected = index3;
|
|
19680
19656
|
let count = 0;
|
|
19681
19657
|
let max = 0;
|
|
19682
19658
|
if (typeof substring !== "string") {
|
|
19683
19659
|
throw new TypeError("Expected substring");
|
|
19684
19660
|
}
|
|
19685
|
-
while (
|
|
19686
|
-
if (
|
|
19661
|
+
while (index3 !== -1) {
|
|
19662
|
+
if (index3 === expected) {
|
|
19687
19663
|
if (++count > max) {
|
|
19688
19664
|
max = count;
|
|
19689
19665
|
}
|
|
19690
19666
|
} else {
|
|
19691
19667
|
count = 1;
|
|
19692
19668
|
}
|
|
19693
|
-
expected =
|
|
19694
|
-
|
|
19669
|
+
expected = index3 + substring.length;
|
|
19670
|
+
index3 = source.indexOf(substring, expected);
|
|
19695
19671
|
}
|
|
19696
19672
|
return max;
|
|
19697
19673
|
}
|
|
@@ -19847,12 +19823,441 @@ function checkEmphasis(state) {
|
|
|
19847
19823
|
return marker;
|
|
19848
19824
|
}
|
|
19849
19825
|
|
|
19826
|
+
// ../node_modules/mdast-util-to-markdown/lib/util/character.js
|
|
19827
|
+
function firstCharacter(value) {
|
|
19828
|
+
const code4 = value.codePointAt(0);
|
|
19829
|
+
return code4 === void 0 ? "" : String.fromCodePoint(code4);
|
|
19830
|
+
}
|
|
19831
|
+
function lastCharacter(value) {
|
|
19832
|
+
const code4 = value.codePointAt(value.length - 2);
|
|
19833
|
+
return code4 !== void 0 && code4 > 65535 ? value.slice(-2) : value.slice(-1);
|
|
19834
|
+
}
|
|
19835
|
+
|
|
19836
|
+
// ../node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
19837
|
+
function encodeCharacterReference(code4) {
|
|
19838
|
+
return "&#x" + code4.toString(16).toUpperCase() + ";";
|
|
19839
|
+
}
|
|
19840
|
+
|
|
19841
|
+
// ../node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
19842
|
+
function encodeInfo(outside, inside, marker) {
|
|
19843
|
+
const outsideKind = classifyCharacter(outside);
|
|
19844
|
+
const insideKind = classifyCharacter(inside);
|
|
19845
|
+
if (outsideKind === void 0) {
|
|
19846
|
+
return insideKind === void 0 ? (
|
|
19847
|
+
// Letter inside:
|
|
19848
|
+
// we have to encode *both* letters for `_` as it is looser.
|
|
19849
|
+
// it already forms for `*` (and GFMs `~`).
|
|
19850
|
+
marker === "_" ? { inside: true, outside: true } : { inside: false, outside: false }
|
|
19851
|
+
) : insideKind === 1 ? (
|
|
19852
|
+
// Whitespace inside: encode both (letter, whitespace).
|
|
19853
|
+
{ inside: true, outside: true }
|
|
19854
|
+
) : (
|
|
19855
|
+
// Punctuation inside: encode outer (letter)
|
|
19856
|
+
{ inside: false, outside: true }
|
|
19857
|
+
);
|
|
19858
|
+
}
|
|
19859
|
+
if (outsideKind === 1) {
|
|
19860
|
+
return insideKind === void 0 ? (
|
|
19861
|
+
// Letter inside: already forms.
|
|
19862
|
+
{ inside: false, outside: false }
|
|
19863
|
+
) : insideKind === 1 ? (
|
|
19864
|
+
// Whitespace inside: encode both (whitespace).
|
|
19865
|
+
{ inside: true, outside: true }
|
|
19866
|
+
) : (
|
|
19867
|
+
// Punctuation inside: already forms.
|
|
19868
|
+
{ inside: false, outside: false }
|
|
19869
|
+
);
|
|
19870
|
+
}
|
|
19871
|
+
return insideKind === void 0 ? (
|
|
19872
|
+
// Letter inside: already forms.
|
|
19873
|
+
{ inside: false, outside: false }
|
|
19874
|
+
) : insideKind === 1 ? (
|
|
19875
|
+
// Whitespace inside: encode inner (whitespace).
|
|
19876
|
+
{ inside: true, outside: false }
|
|
19877
|
+
) : (
|
|
19878
|
+
// Punctuation inside: already forms.
|
|
19879
|
+
{ inside: false, outside: false }
|
|
19880
|
+
);
|
|
19881
|
+
}
|
|
19882
|
+
|
|
19883
|
+
// ../node_modules/mdast-util-to-markdown/lib/util/html-kind.js
|
|
19884
|
+
function htmlKind(value) {
|
|
19885
|
+
if (value.charCodeAt(0) !== 60) return;
|
|
19886
|
+
const next2 = value.charCodeAt(1);
|
|
19887
|
+
if (next2 === 33) {
|
|
19888
|
+
const code5 = value.charCodeAt(2);
|
|
19889
|
+
if (code5 === 45) return 2;
|
|
19890
|
+
if (code5 === 91) return 5;
|
|
19891
|
+
if (asciiAlpha(code5)) return 4;
|
|
19892
|
+
return;
|
|
19893
|
+
}
|
|
19894
|
+
if (next2 === 63) return 3;
|
|
19895
|
+
const closing = next2 === 47;
|
|
19896
|
+
const start2 = closing ? 2 : 1;
|
|
19897
|
+
let end = start2;
|
|
19898
|
+
let code4 = value.charCodeAt(end);
|
|
19899
|
+
if (!asciiAlpha(code4)) return;
|
|
19900
|
+
while (code4 === 45 || asciiAlphanumeric(code4)) {
|
|
19901
|
+
code4 = value.charCodeAt(++end);
|
|
19902
|
+
}
|
|
19903
|
+
const name2 = value.slice(start2, end).toLowerCase();
|
|
19904
|
+
if (!closing && code4 !== 47 && htmlRawNames.includes(name2)) {
|
|
19905
|
+
return 1;
|
|
19906
|
+
}
|
|
19907
|
+
return htmlBlockNames.includes(name2) ? 6 : 7;
|
|
19908
|
+
}
|
|
19909
|
+
|
|
19910
|
+
// ../node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
|
|
19911
|
+
var builtins = /* @__PURE__ */ new Map([
|
|
19912
|
+
["*", false],
|
|
19913
|
+
["_", true]
|
|
19914
|
+
]);
|
|
19915
|
+
function candidates(tokens, involved, runOf) {
|
|
19916
|
+
const related = /* @__PURE__ */ new Set();
|
|
19917
|
+
for (const token of tokens) {
|
|
19918
|
+
const siblings = runOf.get(token);
|
|
19919
|
+
if (siblings && token.attention && involved.some((d) => d.attention === token.attention)) {
|
|
19920
|
+
for (const sibling of siblings.tokens) {
|
|
19921
|
+
related.add(sibling.attention);
|
|
19922
|
+
}
|
|
19923
|
+
}
|
|
19924
|
+
}
|
|
19925
|
+
const ordered = [];
|
|
19926
|
+
for (const token of tokens) {
|
|
19927
|
+
if (token.attention && related.delete(token.attention)) {
|
|
19928
|
+
ordered.push(token.attention);
|
|
19929
|
+
}
|
|
19930
|
+
}
|
|
19931
|
+
ordered.reverse();
|
|
19932
|
+
return ordered;
|
|
19933
|
+
}
|
|
19934
|
+
function check(tokens, before, after) {
|
|
19935
|
+
const runs = [];
|
|
19936
|
+
const wrong = /* @__PURE__ */ new Map();
|
|
19937
|
+
const runOf = /* @__PURE__ */ new Map();
|
|
19938
|
+
let index3 = 0;
|
|
19939
|
+
while (index3 < tokens.length) {
|
|
19940
|
+
if (!tokens[index3].attention) {
|
|
19941
|
+
index3++;
|
|
19942
|
+
continue;
|
|
19943
|
+
}
|
|
19944
|
+
const marker = tokens[index3].value.charAt(0);
|
|
19945
|
+
const strict = builtins.get(marker);
|
|
19946
|
+
let end = index3 + 1;
|
|
19947
|
+
while (end < tokens.length && tokens[end].attention && tokens[end].value.charAt(0) === marker) {
|
|
19948
|
+
end++;
|
|
19949
|
+
}
|
|
19950
|
+
const head = index3 ? tokens[index3 - 1].value : before;
|
|
19951
|
+
const previous3 = classifyCharacter(head.charCodeAt(head.length - 1));
|
|
19952
|
+
const next2 = classifyCharacter(
|
|
19953
|
+
(end < tokens.length ? tokens[end].value : after).charCodeAt(0)
|
|
19954
|
+
);
|
|
19955
|
+
const open = !next2 || next2 === 2 && Boolean(previous3);
|
|
19956
|
+
const close = !previous3 || previous3 === 2 && Boolean(next2);
|
|
19957
|
+
const run = {
|
|
19958
|
+
tokens: tokens.slice(index3, end),
|
|
19959
|
+
markers: [],
|
|
19960
|
+
start: 0,
|
|
19961
|
+
end: 0,
|
|
19962
|
+
// Underscores are strict, they cannot open or close inside words.
|
|
19963
|
+
open: strict ? open && (Boolean(previous3) || !close) : open,
|
|
19964
|
+
close: strict ? close && (Boolean(next2) || !open) : close,
|
|
19965
|
+
// All builtins can split runs.
|
|
19966
|
+
split: strict !== void 0
|
|
19967
|
+
};
|
|
19968
|
+
for (const token of run.tokens) {
|
|
19969
|
+
wrong.set(token, [...run.tokens]);
|
|
19970
|
+
runOf.set(token, run);
|
|
19971
|
+
let size = token.value.length;
|
|
19972
|
+
while (size--) run.markers.push(token);
|
|
19973
|
+
}
|
|
19974
|
+
run.end = run.markers.length;
|
|
19975
|
+
runs.push(run);
|
|
19976
|
+
index3 = end;
|
|
19977
|
+
}
|
|
19978
|
+
pair(runs, wrong);
|
|
19979
|
+
index3 = -1;
|
|
19980
|
+
while (++index3 < tokens.length) {
|
|
19981
|
+
const involved = wrong.get(tokens[index3]);
|
|
19982
|
+
if (involved) return { attention: candidates(tokens, involved, runOf), index: index3 };
|
|
19983
|
+
}
|
|
19984
|
+
}
|
|
19985
|
+
function encode(tokens, start2) {
|
|
19986
|
+
const token = tokens[start2 ? 0 : tokens.length - 1];
|
|
19987
|
+
if (!token || token.attention) return;
|
|
19988
|
+
const character = start2 ? firstCharacter(token.value) : lastCharacter(token.value);
|
|
19989
|
+
const reference = encodeCharacterReference(
|
|
19990
|
+
/** @type {number} */
|
|
19991
|
+
character.codePointAt(0)
|
|
19992
|
+
);
|
|
19993
|
+
if (start2) {
|
|
19994
|
+
token.value = reference + token.value.slice(character.length);
|
|
19995
|
+
} else {
|
|
19996
|
+
let value = token.value.slice(0, token.value.length - character.length);
|
|
19997
|
+
let escapes = 0;
|
|
19998
|
+
while (value.charCodeAt(value.length - 1 - escapes) === 92) {
|
|
19999
|
+
escapes++;
|
|
20000
|
+
}
|
|
20001
|
+
if (escapes % 2) value += "\\";
|
|
20002
|
+
token.value = value + reference;
|
|
20003
|
+
}
|
|
20004
|
+
}
|
|
20005
|
+
function improve(items, chosen, mistake, before, after) {
|
|
20006
|
+
for (const attention4 of mistake.attention) {
|
|
20007
|
+
const current = chosen.get(attention4) || attention4.sequences[0];
|
|
20008
|
+
for (const sequence of attention4.sequences) {
|
|
20009
|
+
if (sequence === current) continue;
|
|
20010
|
+
const trial = new Map(chosen);
|
|
20011
|
+
trial.set(attention4, sequence);
|
|
20012
|
+
const tokens = render(items, trial, before, after);
|
|
20013
|
+
const next2 = check(tokens, before, after);
|
|
20014
|
+
if (!next2 || next2.index > mistake.index) {
|
|
20015
|
+
return { chosen: trial, mistake: next2, tokens };
|
|
20016
|
+
}
|
|
20017
|
+
}
|
|
20018
|
+
}
|
|
20019
|
+
}
|
|
20020
|
+
function pair(runs, wrong) {
|
|
20021
|
+
const openersByMarker = /* @__PURE__ */ new Map();
|
|
20022
|
+
for (const closer of runs) {
|
|
20023
|
+
const marker = closer.tokens[0].value.charAt(0);
|
|
20024
|
+
let openers = openersByMarker.get(marker);
|
|
20025
|
+
if (!openers) {
|
|
20026
|
+
openers = [];
|
|
20027
|
+
openersByMarker.set(marker, openers);
|
|
20028
|
+
}
|
|
20029
|
+
let open = closer.close ? openers.length : 0;
|
|
20030
|
+
while (open-- && closer.start < closer.end) {
|
|
20031
|
+
const opener = openers[open];
|
|
20032
|
+
const openerSize = opener.end - opener.start;
|
|
20033
|
+
const closerSize = closer.end - closer.start;
|
|
20034
|
+
if (closer.split ? (
|
|
20035
|
+
// The rule of 3, on the sizes that are left.
|
|
20036
|
+
(opener.close || closer.open) && closerSize % 3 && !((openerSize + closerSize) % 3)
|
|
20037
|
+
) : (
|
|
20038
|
+
// Others pair whole runs of the same size.
|
|
20039
|
+
openerSize !== opener.markers.length || openerSize !== closerSize
|
|
20040
|
+
)) {
|
|
20041
|
+
continue;
|
|
20042
|
+
}
|
|
20043
|
+
const size = closer.split ? openerSize > 1 && closerSize > 1 ? 2 : 1 : closerSize;
|
|
20044
|
+
const opening = opener.markers.slice(opener.end - size, opener.end);
|
|
20045
|
+
const closing = closer.markers.slice(closer.start, closer.start + size);
|
|
20046
|
+
const openToken = opening[0];
|
|
20047
|
+
const closeToken = closing[0];
|
|
20048
|
+
if (
|
|
20049
|
+
// Whole sequences:
|
|
20050
|
+
// the markers of a sequence are next to each other,
|
|
20051
|
+
// so if the first and last marker are of one sequence of that size,
|
|
20052
|
+
// all markers are exactly that sequence.
|
|
20053
|
+
openToken === opening[size - 1] && openToken.value.length === size && closeToken === closing[size - 1] && closeToken.value.length === size && // Of the same attention, so its opening and closing sequence.
|
|
20054
|
+
openToken.attention === closeToken.attention
|
|
20055
|
+
) {
|
|
20056
|
+
wrong.delete(openToken);
|
|
20057
|
+
wrong.delete(closeToken);
|
|
20058
|
+
} else {
|
|
20059
|
+
const involved = [.../* @__PURE__ */ new Set([...opening, ...closing])];
|
|
20060
|
+
for (const token of involved) {
|
|
20061
|
+
const list4 = wrong.get(token);
|
|
20062
|
+
if (list4) list4.push(...involved);
|
|
20063
|
+
}
|
|
20064
|
+
}
|
|
20065
|
+
opener.end -= size;
|
|
20066
|
+
closer.start += size;
|
|
20067
|
+
if (opener.start === opener.end) openers.splice(open, 1);
|
|
20068
|
+
open = openers.length;
|
|
20069
|
+
}
|
|
20070
|
+
if (closer.open && closer.start < closer.end) openers.push(closer);
|
|
20071
|
+
}
|
|
20072
|
+
}
|
|
20073
|
+
function attentionSequences(type, markers, sizes) {
|
|
20074
|
+
if (markers.length === 0) {
|
|
20075
|
+
throw new Error(
|
|
20076
|
+
"Cannot serialize `" + type + "` as attention without markers, expected one or more markers"
|
|
20077
|
+
);
|
|
20078
|
+
}
|
|
20079
|
+
if (sizes.length === 0) {
|
|
20080
|
+
throw new Error(
|
|
20081
|
+
"Cannot serialize `" + type + "` as attention without sizes, expected one or more sizes"
|
|
20082
|
+
);
|
|
20083
|
+
}
|
|
20084
|
+
for (const size of sizes) {
|
|
20085
|
+
if (!Number.isSafeInteger(size) || size < 1) {
|
|
20086
|
+
throw new Error(
|
|
20087
|
+
"Cannot serialize `" + type + "` as attention with `" + size + "` as size, expected positive integer"
|
|
20088
|
+
);
|
|
20089
|
+
}
|
|
20090
|
+
}
|
|
20091
|
+
const sequences = [];
|
|
20092
|
+
for (const marker of markers) {
|
|
20093
|
+
if (marker.length !== 1) {
|
|
20094
|
+
throw new Error(
|
|
20095
|
+
"Cannot serialize `" + type + "` as attention with `" + marker + "` as marker, expected a single ascii character"
|
|
20096
|
+
);
|
|
20097
|
+
}
|
|
20098
|
+
if (!asciiPunctuation(marker.charCodeAt(0))) {
|
|
20099
|
+
throw new Error(
|
|
20100
|
+
"Cannot serialize `" + type + "` as attention with `" + marker + "` as marker, expected ascii punctuation"
|
|
20101
|
+
);
|
|
20102
|
+
}
|
|
20103
|
+
for (const size of sizes) {
|
|
20104
|
+
sequences.push(marker.repeat(size));
|
|
20105
|
+
}
|
|
20106
|
+
}
|
|
20107
|
+
return sequences;
|
|
20108
|
+
}
|
|
20109
|
+
function phrasing2(parent, state, info) {
|
|
20110
|
+
const indexStack = state.indexStack;
|
|
20111
|
+
const children2 = parent.children || [];
|
|
20112
|
+
const results = [];
|
|
20113
|
+
let index3 = -1;
|
|
20114
|
+
let before = info.before;
|
|
20115
|
+
indexStack.push(-1);
|
|
20116
|
+
let tracker = state.createTracker(info);
|
|
20117
|
+
while (++index3 < children2.length) {
|
|
20118
|
+
const child = children2[index3];
|
|
20119
|
+
let after;
|
|
20120
|
+
indexStack[indexStack.length - 1] = index3;
|
|
20121
|
+
if (index3 + 1 < children2.length) {
|
|
20122
|
+
let handle3 = state.handle.handlers[children2[index3 + 1].type];
|
|
20123
|
+
if (handle3 && handle3.peek) handle3 = handle3.peek;
|
|
20124
|
+
after = handle3 ? firstCharacter(
|
|
20125
|
+
handle3(children2[index3 + 1], parent, state, {
|
|
20126
|
+
before: "",
|
|
20127
|
+
after: "",
|
|
20128
|
+
...tracker.current()
|
|
20129
|
+
})
|
|
20130
|
+
) : "";
|
|
20131
|
+
} else {
|
|
20132
|
+
after = info.after;
|
|
20133
|
+
}
|
|
20134
|
+
const previous3 = results[results.length - 1];
|
|
20135
|
+
if (typeof previous3 === "string" && (before === "\r" || before === "\n") && child.type === "html" && htmlKind(child.value) !== 7) {
|
|
20136
|
+
results[results.length - 1] = previous3.replace(/(\r?\n|\r)$/, " ");
|
|
20137
|
+
before = " ";
|
|
20138
|
+
tracker = state.createTracker(info);
|
|
20139
|
+
tracker.move(serialize4(results, info.before, info.after));
|
|
20140
|
+
}
|
|
20141
|
+
const handle2 = state.handle.handlers[child.type];
|
|
20142
|
+
if (handle2 && handle2.attention) {
|
|
20143
|
+
const item = attentionItem(
|
|
20144
|
+
/** @type {PhrasingParents} */
|
|
20145
|
+
child,
|
|
20146
|
+
handle2.attention,
|
|
20147
|
+
state,
|
|
20148
|
+
tracker
|
|
20149
|
+
);
|
|
20150
|
+
results.push(item);
|
|
20151
|
+
before = lastCharacter(item.sequences[0]);
|
|
20152
|
+
} else {
|
|
20153
|
+
const value = state.handle(child, parent, state, {
|
|
20154
|
+
...tracker.current(),
|
|
20155
|
+
after,
|
|
20156
|
+
before
|
|
20157
|
+
});
|
|
20158
|
+
if (!value) continue;
|
|
20159
|
+
tracker.move(value);
|
|
20160
|
+
results.push(value);
|
|
20161
|
+
before = lastCharacter(value);
|
|
20162
|
+
}
|
|
20163
|
+
}
|
|
20164
|
+
indexStack.pop();
|
|
20165
|
+
return results;
|
|
20166
|
+
}
|
|
20167
|
+
function attentionItem(node2, attention4, state, tracker) {
|
|
20168
|
+
const { construct, markers, sizes } = attention4(node2, state);
|
|
20169
|
+
const sequences = attentionSequences(node2.type, markers, sizes);
|
|
20170
|
+
const sequence = sequences[0];
|
|
20171
|
+
const exit3 = state.enter(construct);
|
|
20172
|
+
tracker.move(sequence);
|
|
20173
|
+
const children2 = phrasing2(node2, state, {
|
|
20174
|
+
...tracker.current(),
|
|
20175
|
+
before: sequence,
|
|
20176
|
+
after: sequence
|
|
20177
|
+
});
|
|
20178
|
+
tracker.move(serialize4(children2, sequence, sequence));
|
|
20179
|
+
tracker.move(sequence);
|
|
20180
|
+
exit3();
|
|
20181
|
+
return { children: children2, sequences };
|
|
20182
|
+
}
|
|
20183
|
+
function render(items, chosen, before, after) {
|
|
20184
|
+
const tokens = [];
|
|
20185
|
+
let encodeAfter;
|
|
20186
|
+
let previous3 = lastCharacter(before);
|
|
20187
|
+
let index3 = -1;
|
|
20188
|
+
while (++index3 < items.length) {
|
|
20189
|
+
const item = items[index3];
|
|
20190
|
+
if (typeof item === "string") {
|
|
20191
|
+
const token = { value: item, attention: void 0 };
|
|
20192
|
+
if (encodeAfter && encodeAfter === firstCharacter(item)) {
|
|
20193
|
+
encode([token], true);
|
|
20194
|
+
}
|
|
20195
|
+
encodeAfter = void 0;
|
|
20196
|
+
tokens.push(token);
|
|
20197
|
+
if (token.value) previous3 = lastCharacter(token.value);
|
|
20198
|
+
continue;
|
|
20199
|
+
}
|
|
20200
|
+
const sequence = chosen.get(item) || item.sequences[0];
|
|
20201
|
+
const marker = sequence.charAt(0);
|
|
20202
|
+
const next2 = items[index3 + 1];
|
|
20203
|
+
const outsideBefore = previous3;
|
|
20204
|
+
const outsideAfter = firstCharacter(
|
|
20205
|
+
next2 === void 0 ? after : typeof next2 === "string" ? next2 : chosen.get(next2) || next2.sequences[0]
|
|
20206
|
+
);
|
|
20207
|
+
const inside = render(item.children, chosen, sequence, sequence);
|
|
20208
|
+
const head = inside.length > 0 ? inside[0].value : "";
|
|
20209
|
+
const open = encodeInfo(
|
|
20210
|
+
outsideBefore.charCodeAt(outsideBefore.length - 1),
|
|
20211
|
+
head.charCodeAt(0),
|
|
20212
|
+
marker
|
|
20213
|
+
);
|
|
20214
|
+
if (open.inside) encode(inside, true);
|
|
20215
|
+
const tail = inside.length > 0 ? lastCharacter(inside[inside.length - 1].value) : "";
|
|
20216
|
+
const close = encodeInfo(
|
|
20217
|
+
outsideAfter.charCodeAt(0),
|
|
20218
|
+
tail.charCodeAt(tail.length - 1),
|
|
20219
|
+
marker
|
|
20220
|
+
);
|
|
20221
|
+
if (close.inside) encode(inside, false);
|
|
20222
|
+
if (open.outside && outsideBefore !== "\n" && outsideBefore !== "\r") {
|
|
20223
|
+
encode(tokens, false);
|
|
20224
|
+
}
|
|
20225
|
+
if (close.outside) encodeAfter = outsideAfter;
|
|
20226
|
+
tokens.push({ value: sequence, attention: item }, ...inside, {
|
|
20227
|
+
value: sequence,
|
|
20228
|
+
attention: item
|
|
20229
|
+
});
|
|
20230
|
+
previous3 = sequence.charAt(sequence.length - 1);
|
|
20231
|
+
}
|
|
20232
|
+
return tokens;
|
|
20233
|
+
}
|
|
20234
|
+
function serialize4(items, before, after) {
|
|
20235
|
+
let chosen = /* @__PURE__ */ new Map();
|
|
20236
|
+
const initial = render(items, chosen, before, after);
|
|
20237
|
+
let tokens = initial;
|
|
20238
|
+
let mistake = check(tokens, before, after);
|
|
20239
|
+
while (mistake) {
|
|
20240
|
+
const next2 = improve(items, chosen, mistake, before, after);
|
|
20241
|
+
if (!next2) {
|
|
20242
|
+
tokens = initial;
|
|
20243
|
+
break;
|
|
20244
|
+
}
|
|
20245
|
+
chosen = next2.chosen;
|
|
20246
|
+
tokens = next2.tokens;
|
|
20247
|
+
mistake = next2.mistake;
|
|
20248
|
+
}
|
|
20249
|
+
let result = "";
|
|
20250
|
+
for (const token of tokens) result += token.value;
|
|
20251
|
+
return result;
|
|
20252
|
+
}
|
|
20253
|
+
|
|
19850
20254
|
// ../node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
|
|
19851
20255
|
emphasis2.attention = attention2;
|
|
19852
20256
|
emphasis2.peek = peek;
|
|
19853
20257
|
function emphasis2(node2, _, state, info) {
|
|
19854
20258
|
const exit3 = state.enter("phrasing");
|
|
19855
|
-
const
|
|
20259
|
+
const item = attentionItem(node2, attention2, state, state.createTracker(info));
|
|
20260
|
+
const value = serialize4([item], info.before, info.after);
|
|
19856
20261
|
exit3();
|
|
19857
20262
|
return value;
|
|
19858
20263
|
}
|
|
@@ -19868,11 +20273,6 @@ function peek(_, _1, state) {
|
|
|
19868
20273
|
return state.options.emphasis || "*";
|
|
19869
20274
|
}
|
|
19870
20275
|
|
|
19871
|
-
// ../node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
19872
|
-
function encodeCharacterReference(code4) {
|
|
19873
|
-
return "&#x" + code4.toString(16).toUpperCase() + ";";
|
|
19874
|
-
}
|
|
19875
|
-
|
|
19876
20276
|
// ../node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
19877
20277
|
function formatHeadingAsSetext(node2, state) {
|
|
19878
20278
|
let literalWithBreak = false;
|
|
@@ -20042,15 +20442,15 @@ inlineCode2.peek = inlineCodePeek;
|
|
|
20042
20442
|
function inlineCode2(node2, _, state) {
|
|
20043
20443
|
let value = node2.value || "";
|
|
20044
20444
|
let sequence = "`";
|
|
20045
|
-
let
|
|
20445
|
+
let index3 = -1;
|
|
20046
20446
|
while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
|
|
20047
20447
|
sequence += "`";
|
|
20048
20448
|
}
|
|
20049
20449
|
if (/[^\n\r ]/.test(value) && (/^[\n\r ]/.test(value) && /[\n\r ]$/.test(value) || /^`|`$/.test(value))) {
|
|
20050
20450
|
value = " " + value + " ";
|
|
20051
20451
|
}
|
|
20052
|
-
while (++
|
|
20053
|
-
const pattern = state.unsafe[
|
|
20452
|
+
while (++index3 < state.unsafe.length) {
|
|
20453
|
+
const pattern = state.unsafe[index3];
|
|
20054
20454
|
const expression = state.compilePattern(pattern);
|
|
20055
20455
|
if (!pattern.atBreak) continue;
|
|
20056
20456
|
let match;
|
|
@@ -20111,19 +20511,28 @@ function link2(node2, _, state, info) {
|
|
|
20111
20511
|
const exit3 = state.enter("link");
|
|
20112
20512
|
let subexit = state.enter("label");
|
|
20113
20513
|
let value = tracker.move("[");
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
);
|
|
20121
|
-
value += tracker.move("](");
|
|
20514
|
+
const text10 = state.containerPhrasing(node2, {
|
|
20515
|
+
before: value,
|
|
20516
|
+
after: "](",
|
|
20517
|
+
...tracker.current()
|
|
20518
|
+
});
|
|
20519
|
+
value += tracker.move(text10);
|
|
20122
20520
|
subexit();
|
|
20521
|
+
value += tracker.move("](");
|
|
20522
|
+
const enclose = /[\0- \u007F]/.test(node2.url);
|
|
20523
|
+
const last = info.before.charAt(info.before.length - 1);
|
|
20524
|
+
let title = node2.title || void 0;
|
|
20525
|
+
if (!title && !enclose && (last === "\n" || last === "\r")) {
|
|
20526
|
+
let index3 = 0;
|
|
20527
|
+
while (index3 < text10.length && text10.charCodeAt(index3) !== 93) {
|
|
20528
|
+
index3 += text10.charCodeAt(index3) === 92 ? 2 : 1;
|
|
20529
|
+
}
|
|
20530
|
+
if (text10.charCodeAt(index3 + 1) === 58) title = "";
|
|
20531
|
+
}
|
|
20123
20532
|
if (
|
|
20124
20533
|
// If there’s no url but there is a title…
|
|
20125
|
-
!node2.url &&
|
|
20126
|
-
|
|
20534
|
+
!node2.url && typeof title === "string" || // If there are control characters or whitespace.
|
|
20535
|
+
enclose
|
|
20127
20536
|
) {
|
|
20128
20537
|
subexit = state.enter("destinationLiteral");
|
|
20129
20538
|
value += tracker.move("<");
|
|
@@ -20136,17 +20545,17 @@ function link2(node2, _, state, info) {
|
|
|
20136
20545
|
value += tracker.move(
|
|
20137
20546
|
state.safe(node2.url, {
|
|
20138
20547
|
before: value,
|
|
20139
|
-
after:
|
|
20548
|
+
after: typeof title === "string" ? " " : ")",
|
|
20140
20549
|
...tracker.current()
|
|
20141
20550
|
})
|
|
20142
20551
|
);
|
|
20143
20552
|
}
|
|
20144
20553
|
subexit();
|
|
20145
|
-
if (
|
|
20554
|
+
if (typeof title === "string") {
|
|
20146
20555
|
subexit = state.enter(`title${suffix}`);
|
|
20147
20556
|
value += tracker.move(" " + quote);
|
|
20148
20557
|
value += tracker.move(
|
|
20149
|
-
state.safe(
|
|
20558
|
+
state.safe(title, {
|
|
20150
20559
|
before: value,
|
|
20151
20560
|
after: quote,
|
|
20152
20561
|
...tracker.current()
|
|
@@ -20276,9 +20685,9 @@ function list3(node2, parent, state, info) {
|
|
|
20276
20685
|
useDifferentMarker = true;
|
|
20277
20686
|
}
|
|
20278
20687
|
if (checkRule(state) === bullet && firstListItem) {
|
|
20279
|
-
let
|
|
20280
|
-
while (++
|
|
20281
|
-
const item = node2.children[
|
|
20688
|
+
let index3 = -1;
|
|
20689
|
+
while (++index3 < node2.children.length) {
|
|
20690
|
+
const item = node2.children[index3];
|
|
20282
20691
|
if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
|
|
20283
20692
|
useDifferentMarker = true;
|
|
20284
20693
|
break;
|
|
@@ -20329,8 +20738,8 @@ function listItem2(node2, parent, state, info) {
|
|
|
20329
20738
|
);
|
|
20330
20739
|
exit3();
|
|
20331
20740
|
return value;
|
|
20332
|
-
function map3(line,
|
|
20333
|
-
if (
|
|
20741
|
+
function map3(line, index3, blank) {
|
|
20742
|
+
if (index3) {
|
|
20334
20743
|
return (blank ? "" : " ".repeat(size)) + line;
|
|
20335
20744
|
}
|
|
20336
20745
|
return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
|
|
@@ -20375,7 +20784,8 @@ strong2.attention = attention3;
|
|
|
20375
20784
|
strong2.peek = peek2;
|
|
20376
20785
|
function strong2(node2, _, state, info) {
|
|
20377
20786
|
const exit3 = state.enter("phrasing");
|
|
20378
|
-
const
|
|
20787
|
+
const item = attentionItem(node2, attention3, state, state.createTracker(info));
|
|
20788
|
+
const value = serialize4([item], info.before, info.after);
|
|
20379
20789
|
exit3();
|
|
20380
20790
|
return value;
|
|
20381
20791
|
}
|
|
@@ -20394,11 +20804,11 @@ function peek2(_, _1, state) {
|
|
|
20394
20804
|
// ../node_modules/mdast-util-to-markdown/lib/handle/text.js
|
|
20395
20805
|
function text7(node2, parent, state, info) {
|
|
20396
20806
|
const siblings = parent ? parent.children : [];
|
|
20397
|
-
const
|
|
20807
|
+
const index3 = state.indexStack[state.indexStack.length - 1];
|
|
20398
20808
|
return state.safe(node2.value, {
|
|
20399
20809
|
...info,
|
|
20400
|
-
afterNode: siblings[
|
|
20401
|
-
beforeNode: siblings[
|
|
20810
|
+
afterNode: siblings[index3 + 1],
|
|
20811
|
+
beforeNode: siblings[index3 - 1]
|
|
20402
20812
|
});
|
|
20403
20813
|
}
|
|
20404
20814
|
|
|
@@ -20469,7 +20879,8 @@ function enterTable(token) {
|
|
|
20469
20879
|
align: align.map(function(d) {
|
|
20470
20880
|
return d === "none" ? null : d;
|
|
20471
20881
|
}),
|
|
20472
|
-
children: []
|
|
20882
|
+
children: [],
|
|
20883
|
+
position: void 0
|
|
20473
20884
|
},
|
|
20474
20885
|
token
|
|
20475
20886
|
);
|
|
@@ -20480,13 +20891,13 @@ function exitTable(token) {
|
|
|
20480
20891
|
this.data.inTable = void 0;
|
|
20481
20892
|
}
|
|
20482
20893
|
function enterRow(token) {
|
|
20483
|
-
this.enter({ type: "tableRow", children: [] }, token);
|
|
20894
|
+
this.enter({ type: "tableRow", children: [], position: void 0 }, token);
|
|
20484
20895
|
}
|
|
20485
20896
|
function exit2(token) {
|
|
20486
20897
|
this.exit(token);
|
|
20487
20898
|
}
|
|
20488
20899
|
function enterCell(token) {
|
|
20489
|
-
this.enter({ type: "tableCell", children: [] }, token);
|
|
20900
|
+
this.enter({ type: "tableCell", children: [], position: void 0 }, token);
|
|
20490
20901
|
}
|
|
20491
20902
|
function exitCodeText(token) {
|
|
20492
20903
|
let value = this.resume();
|
|
@@ -20503,11 +20914,20 @@ function replace($0, $1) {
|
|
|
20503
20914
|
}
|
|
20504
20915
|
function gfmTableToMarkdown(options) {
|
|
20505
20916
|
const settings = options || {};
|
|
20506
|
-
const
|
|
20507
|
-
|
|
20508
|
-
|
|
20917
|
+
const {
|
|
20918
|
+
tableCellPadding: padding,
|
|
20919
|
+
tablePipeAlign: alignDelimiters,
|
|
20920
|
+
stringLength
|
|
20921
|
+
} = settings;
|
|
20509
20922
|
const around = padding ? " " : "|";
|
|
20510
20923
|
return {
|
|
20924
|
+
handlers: {
|
|
20925
|
+
inlineCode: inlineCodeWithTable,
|
|
20926
|
+
table: handleTable,
|
|
20927
|
+
tableCell: handleTableCell,
|
|
20928
|
+
tableRow: handleTableRow
|
|
20929
|
+
},
|
|
20930
|
+
join: [joinTable],
|
|
20511
20931
|
unsafe: [
|
|
20512
20932
|
{ character: "\r", inConstruct: "tableCell" },
|
|
20513
20933
|
{ character: "\n", inConstruct: "tableCell" },
|
|
@@ -20525,16 +20945,22 @@ function gfmTableToMarkdown(options) {
|
|
|
20525
20945
|
// breaks, and setex heading underlines though:
|
|
20526
20946
|
// <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>
|
|
20527
20947
|
{ atBreak: true, character: "-", after: "[:|-]" }
|
|
20528
|
-
]
|
|
20529
|
-
handlers: {
|
|
20530
|
-
inlineCode: inlineCodeWithTable,
|
|
20531
|
-
table: handleTable,
|
|
20532
|
-
tableCell: handleTableCell,
|
|
20533
|
-
tableRow: handleTableRow
|
|
20534
|
-
}
|
|
20948
|
+
]
|
|
20535
20949
|
};
|
|
20536
20950
|
function handleTable(node2, _, state, info) {
|
|
20537
|
-
|
|
20951
|
+
const matrix = handleTableAsData(node2, state, info);
|
|
20952
|
+
const head = matrix[0];
|
|
20953
|
+
if (head) {
|
|
20954
|
+
let columns = node2.align ? node2.align.length : 0;
|
|
20955
|
+
let index3 = -1;
|
|
20956
|
+
if (!columns) {
|
|
20957
|
+
while (++index3 < matrix.length) {
|
|
20958
|
+
if (matrix[index3].length > columns) columns = matrix[index3].length;
|
|
20959
|
+
}
|
|
20960
|
+
}
|
|
20961
|
+
while (head.length < columns) head.push("");
|
|
20962
|
+
}
|
|
20963
|
+
return serializeData(matrix, node2.align);
|
|
20538
20964
|
}
|
|
20539
20965
|
function handleTableRow(node2, _, state, info) {
|
|
20540
20966
|
const row = handleTableRowAsData(node2, state, info);
|
|
@@ -20556,44 +20982,71 @@ function gfmTableToMarkdown(options) {
|
|
|
20556
20982
|
function serializeData(matrix, align) {
|
|
20557
20983
|
return markdownTable(matrix, {
|
|
20558
20984
|
align,
|
|
20559
|
-
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
20560
20985
|
alignDelimiters,
|
|
20561
|
-
|
|
20986
|
+
fillRows: false,
|
|
20562
20987
|
padding,
|
|
20563
|
-
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
20564
20988
|
stringLength
|
|
20565
20989
|
});
|
|
20566
20990
|
}
|
|
20567
20991
|
function handleTableAsData(node2, state, info) {
|
|
20568
|
-
const children2 = node2
|
|
20569
|
-
let
|
|
20992
|
+
const { children: children2 } = node2;
|
|
20993
|
+
let index3 = -1;
|
|
20570
20994
|
const result = [];
|
|
20571
20995
|
const subexit = state.enter("table");
|
|
20572
|
-
while (++
|
|
20573
|
-
result[
|
|
20996
|
+
while (++index3 < children2.length) {
|
|
20997
|
+
result[index3] = handleTableRowAsData(children2[index3], state, info);
|
|
20574
20998
|
}
|
|
20575
20999
|
subexit();
|
|
20576
21000
|
return result;
|
|
20577
21001
|
}
|
|
20578
21002
|
function handleTableRowAsData(node2, state, info) {
|
|
20579
|
-
const children2 = node2
|
|
20580
|
-
let
|
|
21003
|
+
const { children: children2 } = node2;
|
|
21004
|
+
let index3 = -1;
|
|
20581
21005
|
const result = [];
|
|
20582
21006
|
const subexit = state.enter("tableRow");
|
|
20583
|
-
while (++
|
|
20584
|
-
result[
|
|
21007
|
+
while (++index3 < children2.length) {
|
|
21008
|
+
result[index3] = handleTableCell(children2[index3], node2, state, info);
|
|
20585
21009
|
}
|
|
20586
21010
|
subexit();
|
|
20587
21011
|
return result;
|
|
20588
21012
|
}
|
|
20589
21013
|
function inlineCodeWithTable(node2, parent, state) {
|
|
20590
|
-
|
|
20591
|
-
if (state.stack.includes("tableCell"))
|
|
20592
|
-
|
|
21014
|
+
const value = handle.inlineCode(node2, parent, state);
|
|
21015
|
+
if (!state.stack.includes("tableCell")) return value;
|
|
21016
|
+
const result = [];
|
|
21017
|
+
let start2 = 0;
|
|
21018
|
+
let index3 = value.indexOf("|");
|
|
21019
|
+
while (index3 !== -1) {
|
|
21020
|
+
let before = index3;
|
|
21021
|
+
while (before > start2 && value.charCodeAt(before - 1) === 92) {
|
|
21022
|
+
before--;
|
|
21023
|
+
}
|
|
21024
|
+
result.push(value.slice(start2, index3));
|
|
21025
|
+
if ((index3 - before) % 2 === 0) result.push("\\");
|
|
21026
|
+
start2 = index3;
|
|
21027
|
+
index3 = value.indexOf("|", index3 + 1);
|
|
20593
21028
|
}
|
|
20594
|
-
|
|
21029
|
+
result.push(value.slice(start2));
|
|
21030
|
+
return result.join("");
|
|
20595
21031
|
}
|
|
20596
21032
|
}
|
|
21033
|
+
function joinTable(left, right, parent, state) {
|
|
21034
|
+
if (left.type === "table" && parent.type === "listItem" && parent.spread === false && (right.type === "definition" || right.type === "heading" && formatHeadingAsSetext2(right, state) || right.type === "paragraph" || right.type === "table")) {
|
|
21035
|
+
return 1;
|
|
21036
|
+
}
|
|
21037
|
+
}
|
|
21038
|
+
function formatHeadingAsSetext2(node2, state) {
|
|
21039
|
+
let literalWithBreak = false;
|
|
21040
|
+
visit(node2, function(node3) {
|
|
21041
|
+
if (node3.type === "break" || "value" in node3 && /\r?\n|\r/.test(node3.value)) {
|
|
21042
|
+
literalWithBreak = true;
|
|
21043
|
+
return EXIT;
|
|
21044
|
+
}
|
|
21045
|
+
});
|
|
21046
|
+
return Boolean(
|
|
21047
|
+
(!node2.depth || node2.depth < 3) && toString(node2) && (state.options.setext || literalWithBreak)
|
|
21048
|
+
);
|
|
21049
|
+
}
|
|
20597
21050
|
|
|
20598
21051
|
// ../node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
20599
21052
|
function gfmTaskListItemFromMarkdown() {
|
|
@@ -20624,10 +21077,10 @@ function exitParagraphWithTaskListItem(token) {
|
|
|
20624
21077
|
const head = node2.children[0];
|
|
20625
21078
|
if (head && head.type === "text") {
|
|
20626
21079
|
const siblings = parent.children;
|
|
20627
|
-
let
|
|
21080
|
+
let index3 = -1;
|
|
20628
21081
|
let firstParaghraph;
|
|
20629
|
-
while (++
|
|
20630
|
-
const sibling = siblings[
|
|
21082
|
+
while (++index3 < siblings.length) {
|
|
21083
|
+
const sibling = siblings[index3];
|
|
20631
21084
|
if (sibling.type === "paragraph") {
|
|
20632
21085
|
firstParaghraph = sibling;
|
|
20633
21086
|
break;
|
|
@@ -20660,10 +21113,10 @@ function listItemWithTaskListItem(node2, parent, state, info) {
|
|
|
20660
21113
|
...tracker.current()
|
|
20661
21114
|
});
|
|
20662
21115
|
if (checkable) {
|
|
20663
|
-
value = value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,
|
|
21116
|
+
value = value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, check2);
|
|
20664
21117
|
}
|
|
20665
21118
|
return value;
|
|
20666
|
-
function
|
|
21119
|
+
function check2($0) {
|
|
20667
21120
|
return $0 + checkbox;
|
|
20668
21121
|
}
|
|
20669
21122
|
}
|
|
@@ -21013,10 +21466,10 @@ function gfmAtext(code4) {
|
|
|
21013
21466
|
return code4 === 43 || code4 === 45 || code4 === 46 || code4 === 95 || asciiAlphanumeric(code4);
|
|
21014
21467
|
}
|
|
21015
21468
|
function previousUnbalanced(events) {
|
|
21016
|
-
let
|
|
21469
|
+
let index3 = events.length;
|
|
21017
21470
|
let result = false;
|
|
21018
|
-
while (
|
|
21019
|
-
const token = events[
|
|
21471
|
+
while (index3--) {
|
|
21472
|
+
const token = events[index3][1];
|
|
21020
21473
|
if ((token.type === "labelLink" || token.type === "labelImage") && !token._balanced) {
|
|
21021
21474
|
result = true;
|
|
21022
21475
|
break;
|
|
@@ -21065,11 +21518,11 @@ function gfmFootnote() {
|
|
|
21065
21518
|
}
|
|
21066
21519
|
function tokenizePotentialGfmFootnoteCall(effects, ok3, nok) {
|
|
21067
21520
|
const self2 = this;
|
|
21068
|
-
let
|
|
21521
|
+
let index3 = self2.events.length;
|
|
21069
21522
|
const defined = self2.parser.gfmFootnotes || (self2.parser.gfmFootnotes = []);
|
|
21070
21523
|
let labelStart;
|
|
21071
|
-
while (
|
|
21072
|
-
const token = self2.events[
|
|
21524
|
+
while (index3--) {
|
|
21525
|
+
const token = self2.events[index3][1];
|
|
21073
21526
|
if (token.type === "labelImage") {
|
|
21074
21527
|
labelStart = token;
|
|
21075
21528
|
break;
|
|
@@ -21097,24 +21550,24 @@ function tokenizePotentialGfmFootnoteCall(effects, ok3, nok) {
|
|
|
21097
21550
|
}
|
|
21098
21551
|
}
|
|
21099
21552
|
function resolveToPotentialGfmFootnoteCall(events, context) {
|
|
21100
|
-
let
|
|
21101
|
-
while (
|
|
21102
|
-
if (events[
|
|
21103
|
-
events[
|
|
21553
|
+
let index3 = events.length;
|
|
21554
|
+
while (index3--) {
|
|
21555
|
+
if (events[index3][1].type === "labelImage" && events[index3][0] === "enter") {
|
|
21556
|
+
events[index3][1];
|
|
21104
21557
|
break;
|
|
21105
21558
|
}
|
|
21106
21559
|
}
|
|
21107
|
-
events[
|
|
21108
|
-
events[
|
|
21560
|
+
events[index3 + 1][1].type = "data";
|
|
21561
|
+
events[index3 + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
21109
21562
|
const call = {
|
|
21110
21563
|
type: "gfmFootnoteCall",
|
|
21111
|
-
start: Object.assign({}, events[
|
|
21564
|
+
start: Object.assign({}, events[index3 + 3][1].start),
|
|
21112
21565
|
end: Object.assign({}, events[events.length - 1][1].end)
|
|
21113
21566
|
};
|
|
21114
21567
|
const marker = {
|
|
21115
21568
|
type: "gfmFootnoteCallMarker",
|
|
21116
|
-
start: Object.assign({}, events[
|
|
21117
|
-
end: Object.assign({}, events[
|
|
21569
|
+
start: Object.assign({}, events[index3 + 3][1].end),
|
|
21570
|
+
end: Object.assign({}, events[index3 + 3][1].end)
|
|
21118
21571
|
};
|
|
21119
21572
|
marker.end.column++;
|
|
21120
21573
|
marker.end.offset++;
|
|
@@ -21132,12 +21585,12 @@ function resolveToPotentialGfmFootnoteCall(events, context) {
|
|
|
21132
21585
|
};
|
|
21133
21586
|
const replacement = [
|
|
21134
21587
|
// Take the `labelImageMarker` (now `data`, the `!`)
|
|
21135
|
-
events[
|
|
21136
|
-
events[
|
|
21588
|
+
events[index3 + 1],
|
|
21589
|
+
events[index3 + 2],
|
|
21137
21590
|
["enter", call, context],
|
|
21138
21591
|
// The `[`
|
|
21139
|
-
events[
|
|
21140
|
-
events[
|
|
21592
|
+
events[index3 + 3],
|
|
21593
|
+
events[index3 + 4],
|
|
21141
21594
|
// The `^`.
|
|
21142
21595
|
["enter", marker, context],
|
|
21143
21596
|
["exit", marker, context],
|
|
@@ -21151,7 +21604,7 @@ function resolveToPotentialGfmFootnoteCall(events, context) {
|
|
|
21151
21604
|
events[events.length - 1],
|
|
21152
21605
|
["exit", call, context]
|
|
21153
21606
|
];
|
|
21154
|
-
events.splice(
|
|
21607
|
+
events.splice(index3, events.length - index3 + 1, ...replacement);
|
|
21155
21608
|
return events;
|
|
21156
21609
|
}
|
|
21157
21610
|
function tokenizeGfmFootnoteCall(effects, ok3, nok) {
|
|
@@ -21330,42 +21783,42 @@ function gfmStrikethrough(options) {
|
|
|
21330
21783
|
}
|
|
21331
21784
|
};
|
|
21332
21785
|
function resolveAllStrikethrough(events, context) {
|
|
21333
|
-
let
|
|
21334
|
-
while (++
|
|
21335
|
-
if (events[
|
|
21336
|
-
let open =
|
|
21786
|
+
let index3 = -1;
|
|
21787
|
+
while (++index3 < events.length) {
|
|
21788
|
+
if (events[index3][0] === "enter" && events[index3][1].type === "strikethroughSequenceTemporary" && events[index3][1]._close) {
|
|
21789
|
+
let open = index3;
|
|
21337
21790
|
while (open--) {
|
|
21338
21791
|
if (events[open][0] === "exit" && events[open][1].type === "strikethroughSequenceTemporary" && events[open][1]._open && // If the sizes are the same:
|
|
21339
|
-
events[
|
|
21340
|
-
events[
|
|
21792
|
+
events[index3][1].end.offset - events[index3][1].start.offset === events[open][1].end.offset - events[open][1].start.offset) {
|
|
21793
|
+
events[index3][1].type = "strikethroughSequence";
|
|
21341
21794
|
events[open][1].type = "strikethroughSequence";
|
|
21342
21795
|
const strikethrough2 = {
|
|
21343
21796
|
type: "strikethrough",
|
|
21344
21797
|
start: Object.assign({}, events[open][1].start),
|
|
21345
|
-
end: Object.assign({}, events[
|
|
21798
|
+
end: Object.assign({}, events[index3][1].end)
|
|
21346
21799
|
};
|
|
21347
21800
|
const text10 = {
|
|
21348
21801
|
type: "strikethroughText",
|
|
21349
21802
|
start: Object.assign({}, events[open][1].end),
|
|
21350
|
-
end: Object.assign({}, events[
|
|
21803
|
+
end: Object.assign({}, events[index3][1].start)
|
|
21351
21804
|
};
|
|
21352
21805
|
const nextEvents = [["enter", strikethrough2, context], ["enter", events[open][1], context], ["exit", events[open][1], context], ["enter", text10, context]];
|
|
21353
21806
|
const insideSpan2 = context.parser.constructs.insideSpan.null;
|
|
21354
21807
|
if (insideSpan2) {
|
|
21355
|
-
splice(nextEvents, nextEvents.length, 0, resolveAll(insideSpan2, events.slice(open + 1,
|
|
21808
|
+
splice(nextEvents, nextEvents.length, 0, resolveAll(insideSpan2, events.slice(open + 1, index3), context));
|
|
21356
21809
|
}
|
|
21357
|
-
splice(nextEvents, nextEvents.length, 0, [["exit", text10, context], ["enter", events[
|
|
21358
|
-
splice(events, open - 1,
|
|
21359
|
-
|
|
21810
|
+
splice(nextEvents, nextEvents.length, 0, [["exit", text10, context], ["enter", events[index3][1], context], ["exit", events[index3][1], context], ["exit", strikethrough2, context]]);
|
|
21811
|
+
splice(events, open - 1, index3 - open + 3, nextEvents);
|
|
21812
|
+
index3 = open + nextEvents.length - 2;
|
|
21360
21813
|
break;
|
|
21361
21814
|
}
|
|
21362
21815
|
}
|
|
21363
21816
|
}
|
|
21364
21817
|
}
|
|
21365
|
-
|
|
21366
|
-
while (++
|
|
21367
|
-
if (events[
|
|
21368
|
-
events[
|
|
21818
|
+
index3 = -1;
|
|
21819
|
+
while (++index3 < events.length) {
|
|
21820
|
+
if (events[index3][1].type === "strikethroughSequenceTemporary") {
|
|
21821
|
+
events[index3][1].type = "data";
|
|
21369
21822
|
}
|
|
21370
21823
|
}
|
|
21371
21824
|
return events;
|
|
@@ -21421,8 +21874,8 @@ var EditMap2 = class {
|
|
|
21421
21874
|
* @returns {undefined}
|
|
21422
21875
|
* Nothing.
|
|
21423
21876
|
*/
|
|
21424
|
-
add(
|
|
21425
|
-
addImplementation2(this,
|
|
21877
|
+
add(index3, remove, add) {
|
|
21878
|
+
addImplementation2(this, index3, remove, add);
|
|
21426
21879
|
}
|
|
21427
21880
|
// To do: add this when moving to `micromark`.
|
|
21428
21881
|
// /**
|
|
@@ -21451,12 +21904,12 @@ var EditMap2 = class {
|
|
|
21451
21904
|
if (this.map.length === 0) {
|
|
21452
21905
|
return;
|
|
21453
21906
|
}
|
|
21454
|
-
let
|
|
21907
|
+
let index3 = this.map.length;
|
|
21455
21908
|
const vecs = [];
|
|
21456
|
-
while (
|
|
21457
|
-
|
|
21458
|
-
vecs.push(events.slice(this.map[
|
|
21459
|
-
events.length = this.map[
|
|
21909
|
+
while (index3 > 0) {
|
|
21910
|
+
index3 -= 1;
|
|
21911
|
+
vecs.push(events.slice(this.map[index3][0] + this.map[index3][1]), this.map[index3][2]);
|
|
21912
|
+
events.length = this.map[index3][0];
|
|
21460
21913
|
}
|
|
21461
21914
|
vecs.push(events.slice());
|
|
21462
21915
|
events.length = 0;
|
|
@@ -21487,18 +21940,18 @@ function addImplementation2(editMap, at, remove, add) {
|
|
|
21487
21940
|
}
|
|
21488
21941
|
|
|
21489
21942
|
// ../node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
21490
|
-
function gfmTableAlign(events,
|
|
21943
|
+
function gfmTableAlign(events, index3) {
|
|
21491
21944
|
let inDelimiterRow = false;
|
|
21492
21945
|
const align = [];
|
|
21493
|
-
while (
|
|
21494
|
-
const event = events[
|
|
21946
|
+
while (index3 < events.length) {
|
|
21947
|
+
const event = events[index3];
|
|
21495
21948
|
if (inDelimiterRow) {
|
|
21496
21949
|
if (event[0] === "enter") {
|
|
21497
21950
|
if (event[1].type === "tableContent") {
|
|
21498
|
-
align.push(events[
|
|
21951
|
+
align.push(events[index3 + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
21499
21952
|
}
|
|
21500
21953
|
} else if (event[1].type === "tableContent") {
|
|
21501
|
-
if (events[
|
|
21954
|
+
if (events[index3 - 1][1].type === "tableDelimiterMarker") {
|
|
21502
21955
|
const alignIndex = align.length - 1;
|
|
21503
21956
|
align[alignIndex] = align[alignIndex] === "left" ? "center" : "right";
|
|
21504
21957
|
}
|
|
@@ -21508,7 +21961,7 @@ function gfmTableAlign(events, index2) {
|
|
|
21508
21961
|
} else if (event[0] === "enter" && event[1].type === "tableDelimiterRow") {
|
|
21509
21962
|
inDelimiterRow = true;
|
|
21510
21963
|
}
|
|
21511
|
-
|
|
21964
|
+
index3 += 1;
|
|
21512
21965
|
}
|
|
21513
21966
|
return align;
|
|
21514
21967
|
}
|
|
@@ -21532,19 +21985,19 @@ function tokenizeTable(effects, ok3, nok) {
|
|
|
21532
21985
|
let seen;
|
|
21533
21986
|
return start2;
|
|
21534
21987
|
function start2(code4) {
|
|
21535
|
-
let
|
|
21536
|
-
while (
|
|
21988
|
+
let index3 = self2.events.length - 1;
|
|
21989
|
+
while (index3 > -1) {
|
|
21537
21990
|
const {
|
|
21538
21991
|
type
|
|
21539
|
-
} = self2.events[
|
|
21992
|
+
} = self2.events[index3][1];
|
|
21540
21993
|
if (type === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
21541
21994
|
type === "linePrefix") {
|
|
21542
|
-
|
|
21995
|
+
index3--;
|
|
21543
21996
|
} else {
|
|
21544
21997
|
break;
|
|
21545
21998
|
}
|
|
21546
21999
|
}
|
|
21547
|
-
const tail =
|
|
22000
|
+
const tail = index3 > -1 ? self2.events[index3][1].type : null;
|
|
21548
22001
|
const next2 = tail === "tableHead" || tail === "tableRow" ? bodyRowStart : headRowBefore;
|
|
21549
22002
|
if (next2 === bodyRowStart && self2.parser.lazy[self2.now().line]) {
|
|
21550
22003
|
return nok(code4);
|
|
@@ -21746,7 +22199,7 @@ function tokenizeTable(effects, ok3, nok) {
|
|
|
21746
22199
|
}
|
|
21747
22200
|
}
|
|
21748
22201
|
function resolveTable(events, context) {
|
|
21749
|
-
let
|
|
22202
|
+
let index3 = -1;
|
|
21750
22203
|
let inFirstCellAwaitingPipe = true;
|
|
21751
22204
|
let rowKind = 0;
|
|
21752
22205
|
let lastCell = [0, 0, 0, 0];
|
|
@@ -21757,8 +22210,8 @@ function resolveTable(events, context) {
|
|
|
21757
22210
|
let currentBody;
|
|
21758
22211
|
let currentCell;
|
|
21759
22212
|
const map3 = new EditMap2();
|
|
21760
|
-
while (++
|
|
21761
|
-
const event = events[
|
|
22213
|
+
while (++index3 < events.length) {
|
|
22214
|
+
const event = events[index3];
|
|
21762
22215
|
const token = event[1];
|
|
21763
22216
|
if (event[0] === "enter") {
|
|
21764
22217
|
if (token.type === "tableHead") {
|
|
@@ -21774,12 +22227,12 @@ function resolveTable(events, context) {
|
|
|
21774
22227
|
// Note: correct end is set later.
|
|
21775
22228
|
end: Object.assign({}, token.end)
|
|
21776
22229
|
};
|
|
21777
|
-
map3.add(
|
|
22230
|
+
map3.add(index3, 0, [["enter", currentTable, context]]);
|
|
21778
22231
|
} else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
|
|
21779
22232
|
inFirstCellAwaitingPipe = true;
|
|
21780
22233
|
currentCell = void 0;
|
|
21781
22234
|
lastCell = [0, 0, 0, 0];
|
|
21782
|
-
cell = [0,
|
|
22235
|
+
cell = [0, index3 + 1, 0, 0];
|
|
21783
22236
|
if (afterHeadAwaitingFirstBodyRow) {
|
|
21784
22237
|
afterHeadAwaitingFirstBodyRow = false;
|
|
21785
22238
|
currentBody = {
|
|
@@ -21788,7 +22241,7 @@ function resolveTable(events, context) {
|
|
|
21788
22241
|
// Note: correct end is set later.
|
|
21789
22242
|
end: Object.assign({}, token.end)
|
|
21790
22243
|
};
|
|
21791
|
-
map3.add(
|
|
22244
|
+
map3.add(index3, 0, [["enter", currentBody, context]]);
|
|
21792
22245
|
}
|
|
21793
22246
|
rowKind = token.type === "tableDelimiterRow" ? 2 : currentBody ? 3 : 1;
|
|
21794
22247
|
} else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
|
|
@@ -21799,7 +22252,7 @@ function resolveTable(events, context) {
|
|
|
21799
22252
|
currentCell = flushCell(map3, context, lastCell, rowKind, void 0, currentCell);
|
|
21800
22253
|
lastCell = [0, 0, 0, 0];
|
|
21801
22254
|
}
|
|
21802
|
-
cell[2] =
|
|
22255
|
+
cell[2] = index3;
|
|
21803
22256
|
}
|
|
21804
22257
|
} else if (token.type === "tableCellDivider") {
|
|
21805
22258
|
if (inFirstCellAwaitingPipe) {
|
|
@@ -21810,34 +22263,34 @@ function resolveTable(events, context) {
|
|
|
21810
22263
|
currentCell = flushCell(map3, context, lastCell, rowKind, void 0, currentCell);
|
|
21811
22264
|
}
|
|
21812
22265
|
lastCell = cell;
|
|
21813
|
-
cell = [lastCell[1],
|
|
22266
|
+
cell = [lastCell[1], index3, 0, 0];
|
|
21814
22267
|
}
|
|
21815
22268
|
}
|
|
21816
22269
|
} else if (token.type === "tableHead") {
|
|
21817
22270
|
afterHeadAwaitingFirstBodyRow = true;
|
|
21818
|
-
lastTableEnd =
|
|
22271
|
+
lastTableEnd = index3;
|
|
21819
22272
|
} else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
|
|
21820
|
-
lastTableEnd =
|
|
22273
|
+
lastTableEnd = index3;
|
|
21821
22274
|
if (lastCell[1] !== 0) {
|
|
21822
22275
|
cell[0] = cell[1];
|
|
21823
|
-
currentCell = flushCell(map3, context, lastCell, rowKind,
|
|
22276
|
+
currentCell = flushCell(map3, context, lastCell, rowKind, index3, currentCell);
|
|
21824
22277
|
} else if (cell[1] !== 0) {
|
|
21825
|
-
currentCell = flushCell(map3, context, cell, rowKind,
|
|
22278
|
+
currentCell = flushCell(map3, context, cell, rowKind, index3, currentCell);
|
|
21826
22279
|
}
|
|
21827
22280
|
rowKind = 0;
|
|
21828
22281
|
} else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
|
|
21829
|
-
cell[3] =
|
|
22282
|
+
cell[3] = index3;
|
|
21830
22283
|
}
|
|
21831
22284
|
}
|
|
21832
22285
|
if (lastTableEnd !== 0) {
|
|
21833
22286
|
flushTableEnd(map3, context, lastTableEnd, currentTable, currentBody);
|
|
21834
22287
|
}
|
|
21835
22288
|
map3.consume(context.events);
|
|
21836
|
-
|
|
21837
|
-
while (++
|
|
21838
|
-
const event = context.events[
|
|
22289
|
+
index3 = -1;
|
|
22290
|
+
while (++index3 < context.events.length) {
|
|
22291
|
+
const event = context.events[index3];
|
|
21839
22292
|
if (event[0] === "enter" && event[1].type === "table") {
|
|
21840
|
-
event[1]._align = gfmTableAlign(context.events,
|
|
22293
|
+
event[1]._align = gfmTableAlign(context.events, index3);
|
|
21841
22294
|
}
|
|
21842
22295
|
}
|
|
21843
22296
|
return events;
|
|
@@ -21887,19 +22340,19 @@ function flushCell(map3, context, range, rowKind, rowEnd, previousCell) {
|
|
|
21887
22340
|
}
|
|
21888
22341
|
return previousCell;
|
|
21889
22342
|
}
|
|
21890
|
-
function flushTableEnd(map3, context,
|
|
22343
|
+
function flushTableEnd(map3, context, index3, table2, tableBody) {
|
|
21891
22344
|
const exits = [];
|
|
21892
|
-
const related = getPoint(context.events,
|
|
22345
|
+
const related = getPoint(context.events, index3);
|
|
21893
22346
|
if (tableBody) {
|
|
21894
22347
|
tableBody.end = Object.assign({}, related);
|
|
21895
22348
|
exits.push(["exit", tableBody, context]);
|
|
21896
22349
|
}
|
|
21897
22350
|
table2.end = Object.assign({}, related);
|
|
21898
22351
|
exits.push(["exit", table2, context]);
|
|
21899
|
-
map3.add(
|
|
22352
|
+
map3.add(index3 + 1, 0, exits);
|
|
21900
22353
|
}
|
|
21901
|
-
function getPoint(events,
|
|
21902
|
-
const event = events[
|
|
22354
|
+
function getPoint(events, index3) {
|
|
22355
|
+
const event = events[index3];
|
|
21903
22356
|
const side = event[0] === "enter" ? "start" : "end";
|
|
21904
22357
|
return event[1][side];
|
|
21905
22358
|
}
|
|
@@ -22255,8 +22708,8 @@ function transform(state, node2) {
|
|
|
22255
22708
|
function comment3(state, unsafe) {
|
|
22256
22709
|
if (state.schema.allowComments) {
|
|
22257
22710
|
const result = typeof unsafe.value === "string" ? unsafe.value : "";
|
|
22258
|
-
const
|
|
22259
|
-
const value =
|
|
22711
|
+
const index3 = result.indexOf("-->");
|
|
22712
|
+
const value = index3 < 0 ? result : result.slice(0, index3);
|
|
22260
22713
|
const node2 = { type: "comment", value };
|
|
22261
22714
|
patch4(node2, unsafe);
|
|
22262
22715
|
return node2;
|
|
@@ -22283,10 +22736,10 @@ function element6(state, unsafe) {
|
|
|
22283
22736
|
safeElement = true;
|
|
22284
22737
|
if (state.schema.ancestors && own8.call(state.schema.ancestors, name2)) {
|
|
22285
22738
|
const ancestors = state.schema.ancestors[name2];
|
|
22286
|
-
let
|
|
22739
|
+
let index3 = -1;
|
|
22287
22740
|
safeElement = false;
|
|
22288
|
-
while (++
|
|
22289
|
-
if (state.stack.includes(ancestors[
|
|
22741
|
+
while (++index3 < ancestors.length) {
|
|
22742
|
+
if (state.stack.includes(ancestors[index3])) {
|
|
22290
22743
|
safeElement = true;
|
|
22291
22744
|
}
|
|
22292
22745
|
}
|
|
@@ -22326,9 +22779,9 @@ function children(state, children2) {
|
|
|
22326
22779
|
/** @type {Array<Readonly<unknown>>} */
|
|
22327
22780
|
children2
|
|
22328
22781
|
);
|
|
22329
|
-
let
|
|
22330
|
-
while (++
|
|
22331
|
-
const value = transform(state, childrenUnknown[
|
|
22782
|
+
let index3 = -1;
|
|
22783
|
+
while (++index3 < childrenUnknown.length) {
|
|
22784
|
+
const value = transform(state, childrenUnknown[index3]);
|
|
22332
22785
|
if (value) {
|
|
22333
22786
|
if (Array.isArray(value)) {
|
|
22334
22787
|
results.push(...value);
|
|
@@ -22383,10 +22836,10 @@ function propertyValue(state, definition3, key, value) {
|
|
|
22383
22836
|
return definition3 ? Array.isArray(value) ? propertyValueMany(state, definition3, key, value) : propertyValuePrimitive(state, definition3, key, value) : void 0;
|
|
22384
22837
|
}
|
|
22385
22838
|
function propertyValueMany(state, definition3, key, values) {
|
|
22386
|
-
let
|
|
22839
|
+
let index3 = -1;
|
|
22387
22840
|
const result = [];
|
|
22388
|
-
while (++
|
|
22389
|
-
const value = propertyValuePrimitive(state, definition3, key, values[
|
|
22841
|
+
while (++index3 < values.length) {
|
|
22842
|
+
const value = propertyValuePrimitive(state, definition3, key, values[index3]);
|
|
22390
22843
|
if (typeof value === "number" || typeof value === "string") {
|
|
22391
22844
|
result.push(value);
|
|
22392
22845
|
}
|
|
@@ -22402,9 +22855,9 @@ function propertyValuePrimitive(state, definition3, key, value) {
|
|
|
22402
22855
|
}
|
|
22403
22856
|
if (typeof definition3 === "object" && definition3.length > 1) {
|
|
22404
22857
|
let ok3 = false;
|
|
22405
|
-
let
|
|
22406
|
-
while (++
|
|
22407
|
-
const allowed = definition3[
|
|
22858
|
+
let index3 = 0;
|
|
22859
|
+
while (++index3 < definition3.length) {
|
|
22860
|
+
const allowed = definition3[index3];
|
|
22408
22861
|
if (allowed && typeof allowed === "object" && "flags" in allowed) {
|
|
22409
22862
|
if (allowed.test(String(value))) {
|
|
22410
22863
|
ok3 = true;
|
|
@@ -22433,9 +22886,9 @@ function safeProtocol2(state, key, value) {
|
|
|
22433
22886
|
slash > -1 && colon > slash || questionMark > -1 && colon > questionMark || numberSign > -1 && colon > numberSign) {
|
|
22434
22887
|
return true;
|
|
22435
22888
|
}
|
|
22436
|
-
let
|
|
22437
|
-
while (++
|
|
22438
|
-
const protocol = protocols[
|
|
22889
|
+
let index3 = -1;
|
|
22890
|
+
while (++index3 < protocols.length) {
|
|
22891
|
+
const protocol = protocols[index3];
|
|
22439
22892
|
if (colon === protocol.length && url.slice(0, protocol.length) === protocol) {
|
|
22440
22893
|
return true;
|
|
22441
22894
|
}
|
|
@@ -22454,10 +22907,10 @@ function patch4(node2, unsafe) {
|
|
|
22454
22907
|
}
|
|
22455
22908
|
function findDefinition(definitions, key) {
|
|
22456
22909
|
let dataDefault;
|
|
22457
|
-
let
|
|
22910
|
+
let index3 = -1;
|
|
22458
22911
|
if (definitions) {
|
|
22459
|
-
while (++
|
|
22460
|
-
const entry = definitions[
|
|
22912
|
+
while (++index3 < definitions.length) {
|
|
22913
|
+
const entry = definitions[index3];
|
|
22461
22914
|
const name2 = typeof entry === "string" ? entry : entry[0];
|
|
22462
22915
|
if (name2 === key) {
|
|
22463
22916
|
return entry;
|