@tempots/beatui 0.30.1 → 0.31.0
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/2019-BY_FFnZU.cjs +1 -0
- package/dist/{2019-Cd9nHhvg.js → 2019-C660mMK6.js} +9 -10
- package/dist/{2020-CyKJpuK6.js → 2020-C3P-aGet.js} +30 -31
- package/dist/2020-Cyyhc8pv.cjs +1 -0
- package/dist/{ar-Dz8Mg5la.js → ar-BUxQ3yNv.js} +30 -15
- package/dist/ar-DcFl4tkv.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +85 -84
- package/dist/beatui.css +37 -11
- package/dist/beatui.tailwind.css +37 -11
- package/dist/{de-ToWTQGEo.js → de-CKKQr2-K.js} +27 -12
- package/dist/de-DEUS3n0J.cjs +1 -0
- package/dist/{es-CruxS0Tz.js → es-C5VUn_X1.js} +27 -12
- package/dist/es-CIeoDpkc.cjs +1 -0
- package/dist/{fa-Cf0NZLWA.js → fa-Cs2LZsfr.js} +30 -15
- package/dist/fa-gXa9Xdjn.cjs +1 -0
- package/dist/fr-6SpJ-gVV.cjs +1 -0
- package/dist/{fr-YKXmqMGr.js → fr-Dlw8mKFp.js} +20 -5
- package/dist/{he-D8ZOduPw.js → he-Cm4NxsyE.js} +30 -15
- package/dist/he-D9cwxZOb.cjs +1 -0
- package/dist/hi-CNRHnMsQ.cjs +1 -0
- package/dist/{hi-CIamzVEf.js → hi-Cjz1aQX2.js} +30 -15
- package/dist/index-BI5w0jSz.js +2707 -0
- package/dist/index-Bv2gn_kV.cjs +4 -0
- package/dist/index-C-FUCwXi.js +14275 -0
- package/dist/index-CKyH3jwP.cjs +1 -0
- package/dist/index-CXY0yKJD.cjs +34 -0
- package/dist/{index-O9BwR_8P.cjs → index-CYY_JLSN.cjs} +1 -1
- package/dist/index-DKy2mZws.cjs +1 -0
- package/dist/{index-B2079wM-.js → index-DjShJtXp.js} +15 -15
- package/dist/index-DwyUOY3r.js +68 -0
- package/dist/{index-DDpjzV7E.js → index-Jd2O_Iux.js} +304 -307
- package/dist/{index-DFJed4ks.js → index-_Kh76-c2.js} +1 -1
- package/dist/index-klVI8k8O.cjs +8 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1123 -1229
- package/dist/it-DvBJ31Ls.cjs +1 -0
- package/dist/{it-Bn7tG_KC.js → it-iuFeIEsO.js} +29 -14
- package/dist/{ja-i1ULXeiu.js → ja-D6Dd96v-.js} +25 -10
- package/dist/ja-FKJGj5My.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-BpKDmtvY.js → ko-C8GOsfIU.js} +30 -15
- package/dist/ko-PqVOGPUi.cjs +1 -0
- package/dist/markdown/index.cjs.js +1 -2
- package/dist/markdown/index.es.js +4 -420
- package/dist/{modal-DvGSDVSv.js → modal-CuhK7DqK.js} +14 -13
- package/dist/modal-RQtwnFy9.cjs +1 -0
- package/dist/{nl-Cs4PDWCJ.js → nl-Ct2cyWWi.js} +31 -16
- package/dist/nl-DAhT0vfu.cjs +1 -0
- package/dist/notice-BnX2sRrK.cjs +2 -0
- package/dist/notice-Dz_BJg8D.js +1467 -0
- package/dist/{pl-BFLNf991.js → pl-DewgRE-k.js} +31 -16
- package/dist/pl-JgD0mCRa.cjs +1 -0
- package/dist/prosemirror/index.cjs.js +1 -0
- package/dist/prosemirror/index.es.js +6 -0
- package/dist/prosemirror.css +294 -0
- package/dist/pt-BkoMl_PC.cjs +1 -0
- package/dist/{pt-BRZeOkcE.js → pt-CNyp2zeW.js} +31 -16
- package/dist/ru-9OW0HQFS.cjs +1 -0
- package/dist/{ru-KI7Gowz-.js → ru-U6PdSzha.js} +35 -20
- package/dist/styles-url-CF_019NX.js +4 -0
- package/dist/styles-url-DhmSan6u.cjs +1 -0
- package/dist/toolbar-D7fDCmUn.cjs +1 -0
- package/dist/toolbar-DTh9Ouhs.js +118 -0
- package/dist/{tr-CYk8Fua5.js → tr-CQVvooxi.js} +28 -13
- package/dist/tr-DsOaoQqh.cjs +1 -0
- package/dist/translations-BDRano6u.cjs +1 -0
- package/dist/{translations-DdNHXAWr.js → translations-Cic51rHH.js} +1 -1
- package/dist/translations-D4PjDB1t.js +831 -0
- package/dist/translations-DDFTHcX3.cjs +1 -0
- package/dist/types/beatui-i18n/default.d.ts +14 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +14 -0
- package/dist/types/beatui-i18n/translations.d.ts +14 -0
- package/dist/types/components/form/controller/controller.d.ts +1 -1
- package/dist/types/components/form/input/input-container.d.ts +3 -1
- package/dist/types/components/form/input/input-options.d.ts +6 -0
- package/dist/types/components/form/input/option.d.ts +3 -3
- package/dist/types/components/form/use-form.d.ts +2 -2
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -0
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +4 -0
- package/dist/types/components/prosemirror/link-control.d.ts +12 -0
- package/dist/types/components/prosemirror/prosemirror-markdown-input.d.ts +76 -0
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +18 -0
- package/dist/types/components/prosemirror/utils.d.ts +12 -0
- package/dist/types/prosemirror/index.d.ts +2 -0
- package/dist/{ur-BIcZGLWt.js → ur-C3LypxEh.js} +30 -15
- package/dist/ur-C8v4y2tI.cjs +1 -0
- package/dist/utils-D8WljbbZ.cjs +1 -0
- package/dist/{utils-D1op9R8_.js → utils-DY9kZecl.js} +74 -73
- package/dist/vi-DzLo7qhK.cjs +1 -0
- package/dist/{vi-BeK62QeB.js → vi-M5ObJg3d.js} +19 -4
- package/dist/zh-BXk4IZBo.cjs +1 -0
- package/dist/{zh-Dt6yWDu2.js → zh-DGA8R46s.js} +32 -17
- package/package.json +20 -13
- package/dist/2019-Bl1mhxeM.cjs +0 -1
- package/dist/2020-BKqFJLj6.cjs +0 -1
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/apl-M-DNMvvR.cjs +0 -1
- package/dist/ar-CbsALGhG.cjs +0 -1
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asciiarmor-BMx3XVjX.cjs +0 -1
- package/dist/asn1-OOsVM4yU.cjs +0 -1
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/asterisk-B1QUaW1C.cjs +0 -1
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-BjUlYKdF.cjs +0 -1
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BEMIzMUI.cjs +0 -1
- package/dist/clike-DGTaUp48.js +0 -620
- package/dist/clojure-Ap_IXD2I.cjs +0 -1
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-C4D5_VmS.cjs +0 -1
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/cobol-Du-cT2hr.cjs +0 -1
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/coffeescript-DDFAj2ea.cjs +0 -1
- package/dist/commonlisp-CXBBRCTx.cjs +0 -1
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/crystal-DAFWRDbh.cjs +0 -1
- package/dist/css-BkF-NPzE.js +0 -1553
- package/dist/css-DzFJyRJ8.cjs +0 -1
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/cypher-BN0-oCze.cjs +0 -1
- package/dist/d-BHsqGcfm.cjs +0 -1
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/de-MO-u5hoD.cjs +0 -1
- package/dist/diff-CemTHKfk.cjs +0 -1
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-BBTH3voH.cjs +0 -1
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-ChoVQPwv.cjs +0 -1
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/dylan-apTQIgUA.cjs +0 -1
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ebnf-LYmLy17h.cjs +0 -1
- package/dist/ecl-C7WNQq7-.cjs +0 -1
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-BJThA8RG.cjs +0 -1
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/elm-CcXP9T36.cjs +0 -1
- package/dist/erlang-B6mpcObI.cjs +0 -1
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/es-CqkWVfis.cjs +0 -1
- package/dist/fa-DR8j7v-l.cjs +0 -1
- package/dist/factor-B-tsx9yW.cjs +0 -1
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-BzAKklXo.cjs +0 -1
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/forth-CPAzyZ_n.cjs +0 -1
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/fortran-DHiTlGV1.cjs +0 -1
- package/dist/fr-ClK0mWTO.cjs +0 -1
- package/dist/gas-BiPtGF2E.cjs +0 -1
- package/dist/gas-cpmYfFX2.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/gherkin-Djo7Y51D.cjs +0 -1
- package/dist/groovy-BMVITiCm.cjs +0 -1
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haskell-CngODaW-.cjs +0 -1
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/haxe-Dyk-piTh.cjs +0 -1
- package/dist/he-DeJMBRTP.cjs +0 -1
- package/dist/hi-C9Anq8Ae.cjs +0 -1
- package/dist/http-BkLifcnL.cjs +0 -1
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/idl-FmHDmsE-.cjs +0 -1
- package/dist/index-0dpJGQbC.js +0 -94
- package/dist/index-52kzSRNb.cjs +0 -1
- package/dist/index-5a6_6F3Z.cjs +0 -6
- package/dist/index-BGHGZg_7.js +0 -552
- package/dist/index-BMn-7Ble.js +0 -1307
- package/dist/index-BR0F2BVZ.cjs +0 -1
- package/dist/index-BlCmv2EJ.cjs +0 -1
- package/dist/index-BlamLFdS.js +0 -76
- package/dist/index-By8a3eg5.cjs +0 -1
- package/dist/index-C0sjoDdy.js +0 -309
- package/dist/index-C9RMQY3t.cjs +0 -1
- package/dist/index-CDBeAhhM.js +0 -289
- package/dist/index-CH2HgQJF.cjs +0 -1
- package/dist/index-CT9YDHSn.js +0 -74
- package/dist/index-CUZnWZnQ.cjs +0 -3
- package/dist/index-CVNvgkJN.js +0 -342
- package/dist/index-C_NT6gCL.cjs +0 -1
- package/dist/index-CafCsH0Z.cjs +0 -1
- package/dist/index-Cei6J0b_.cjs +0 -8
- package/dist/index-CmcOKNW2.js +0 -302
- package/dist/index-CvpdOKX2.js +0 -136
- package/dist/index-CxE1PN5L.cjs +0 -1
- package/dist/index-D2BpI4Zz.cjs +0 -2
- package/dist/index-D40RPDMJ.cjs +0 -1
- package/dist/index-D5iq4kyE.cjs +0 -1
- package/dist/index-DFzKuRY8.cjs +0 -1
- package/dist/index-DIO9qaw5.cjs +0 -1
- package/dist/index-DIR2rO5B.cjs +0 -1
- package/dist/index-DPnQDm6f.js +0 -138
- package/dist/index-DU0jpFGR.cjs +0 -1
- package/dist/index-DUvVsNDG.cjs +0 -13
- package/dist/index-DVZnPL32.js +0 -953
- package/dist/index-DiYfLAVQ.js +0 -554
- package/dist/index-DnIheaHS.js +0 -251
- package/dist/index-Dp2K8q6O.cjs +0 -7
- package/dist/index-DrlNzz-e.js +0 -59
- package/dist/index-Dx9UDsJi.cjs +0 -1
- package/dist/index-DxY-AOQA.js +0 -157
- package/dist/index-Mmd0YHPJ.js +0 -960
- package/dist/index-NyiYUSW3.js +0 -101
- package/dist/index-alBMysbQ.js +0 -1874
- package/dist/index-lEkIbMCl.js +0 -612
- package/dist/index-qwDdlmIi.js +0 -270
- package/dist/index-x3mhc_C_.cjs +0 -1
- package/dist/it-5n3LuTHe.cjs +0 -1
- package/dist/ja-Bdp4_B8-.cjs +0 -1
- package/dist/javascript-C2yteZeJ.js +0 -691
- package/dist/javascript-DngSGg_0.cjs +0 -1
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/jinja2-wbVbDTNi.cjs +0 -1
- package/dist/julia-DA67Qw9E.cjs +0 -1
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/ko-B5SwKB-j.cjs +0 -1
- package/dist/livescript-Bg3URadp.cjs +0 -1
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-CIsxjGwi.cjs +0 -1
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-BG089QIc.cjs +0 -1
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mbox-CySolFFZ.cjs +0 -1
- package/dist/milkdown/index.cjs.js +0 -1
- package/dist/milkdown/index.es.js +0 -4
- package/dist/milkdown-input-Bkgdi-Bv.cjs +0 -944
- package/dist/milkdown-input-CciSI_a5.js +0 -63967
- package/dist/milkdown-url-D99P-nA-.js +0 -4
- package/dist/milkdown-url-DqoUZH3u.cjs +0 -1
- package/dist/milkdown.css +0 -1914
- package/dist/mirc-BfqEffzk.cjs +0 -1
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/mllike-QUjwI6zq.cjs +0 -1
- package/dist/modal-CAKAT7wv.cjs +0 -1
- package/dist/modelica-B6Zhcb-M.cjs +0 -1
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-BToym4Bs.cjs +0 -1
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/mumps-wfyQdxSu.cjs +0 -1
- package/dist/nginx-CwqyBUfA.cjs +0 -1
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nl-Cenl4nr6.cjs +0 -1
- package/dist/notice-DBME6bFw.cjs +0 -2
- package/dist/notice-DVEacWKt.js +0 -2275
- package/dist/nsis-DPj2fUaP.cjs +0 -1
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/ntriples-DgwJmozm.cjs +0 -1
- package/dist/octave-1pkKrgAA.cjs +0 -1
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-BXOZCt0U.cjs +0 -1
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/pascal-DtY2LEkJ.cjs +0 -1
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/perl-CVDWbEju.cjs +0 -1
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/pig-DMByOrnr.cjs +0 -1
- package/dist/pl-7xYNCk-v.cjs +0 -1
- package/dist/powershell-BaoYaFvj.cjs +0 -1
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/preprocess-CvkqwVNt.cjs +0 -3
- package/dist/preprocess-D898zxsP.js +0 -2295
- package/dist/properties-DXHJZ3WE.cjs +0 -1
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BKhXdfH6.cjs +0 -1
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pt-DOLL0Jpj.cjs +0 -1
- package/dist/pug-CwAQJzGR.js +0 -248
- package/dist/pug-kEfRDOiF.cjs +0 -1
- package/dist/puppet-8mAyuMbW.cjs +0 -1
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-BkR3uSy8.js +0 -313
- package/dist/python-D-iU6WXz.cjs +0 -1
- package/dist/q-BPQ45Nxu.cjs +0 -1
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/r-r2_EZsON.cjs +0 -1
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/rpm-YK81m3qU.cjs +0 -1
- package/dist/ru-DoS9XuqG.cjs +0 -1
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/ruby-Cn1sFkZF.cjs +0 -1
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/sas-DAGcJy94.cjs +0 -1
- package/dist/scheme-B0ZrbojV.cjs +0 -1
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-BMYo43V6.cjs +0 -1
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/sieve-CIYW-b_H.cjs +0 -1
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/simple-mode-BIKNPBes.cjs +0 -1
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/smalltalk-CSslY-3i.cjs +0 -1
- package/dist/solr-A1kSnAwJ.cjs +0 -1
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-DnHMBLLY.cjs +0 -1
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-B7_BK8hB.cjs +0 -1
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-9VmIWHrZ.cjs +0 -1
- package/dist/sql-CfG5lQ3l.js +0 -282
- package/dist/stex-B4wyjEnp.cjs +0 -1
- package/dist/stex-Du4h4KAU.js +0 -129
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/stylus-D6GYOT3Z.cjs +0 -1
- package/dist/swift-DGw6Cgu8.cjs +0 -1
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-ByLXbQFo.cjs +0 -1
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/textile-iryw-lTw.cjs +0 -1
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiddlywiki-D8IJz1k7.cjs +0 -1
- package/dist/tiki-C5p5KSQK.cjs +0 -1
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-3ZsH_4Qa.cjs +0 -1
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/tr-BVmoz40w.cjs +0 -1
- package/dist/translations-Dv56lQia.cjs +0 -1
- package/dist/troff-D-3QCOYN.cjs +0 -1
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/ttcn-C2MXAqcM.cjs +0 -1
- package/dist/ttcn-cfg-BYqcMRxC.cjs +0 -1
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
- package/dist/turtle-DSJNatSv.cjs +0 -1
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/types/components/milkdown/milkdown-input.d.ts +0 -15
- package/dist/types/milkdown/index.d.ts +0 -1
- package/dist/ur-orNTOdMP.cjs +0 -1
- package/dist/utils-Dobqjl2y.cjs +0 -1
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vb-qzHzzvyB.cjs +0 -1
- package/dist/vbscript-1f_Dhg5H.js +0 -324
- package/dist/vbscript-CWm8v9tE.cjs +0 -1
- package/dist/velocity-D3_yAIp3.cjs +0 -1
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-BOhLNmQo.cjs +0 -1
- package/dist/verilog-CiS1jyi5.js +0 -262
- package/dist/vhdl-CMFbi8Im.cjs +0 -1
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/vi-BWyUDP07.cjs +0 -1
- package/dist/webidl-CWb_flNk.cjs +0 -1
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/xquery-Cjw5fRnG.cjs +0 -1
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/yacas-urx_N5C8.cjs +0 -1
- package/dist/z80-CsG3CM6M.cjs +0 -1
- package/dist/z80-Pki2zAjW.js +0 -61
- package/dist/zh-RVJj1NQq.cjs +0 -1
- /package/dist/types/{components/milkdown/milkdown-url.d.ts → prosemirror/styles-url.d.ts} +0 -0
- /package/dist/types/{milkdown → prosemirror}/styles.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-Bv2gn_kV.cjs"),K={tokenize:rt,partial:!0},q={tokenize:at,partial:!0},U={tokenize:lt,partial:!0},V={tokenize:ut,partial:!0},v={tokenize:ot,partial:!0},G={name:"wwwAutolink",tokenize:nt,previous:J},$={name:"protocolAutolink",tokenize:it,previous:Q},d={name:"emailAutolink",tokenize:et,previous:X},w={};function tt(){return{text:w}}let S=48;for(;S<123;)w[S]=d,S++,S===58?S=65:S===91&&(S=97);w[43]=d;w[45]=d;w[46]=d;w[95]=d;w[72]=[d,$];w[104]=[d,$];w[87]=[d,G];w[119]=[d,G];function et(t,i,e){const r=this;let s,h;return n;function n(a){return!O(a)||!X.call(r,r.previous)||T(r.events)?e(a):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),u(a))}function u(a){return O(a)?(t.consume(a),u):a===64?(t.consume(a),o):e(a)}function o(a){return a===46?t.check(v,p,g)(a):a===45||a===95||f.asciiAlphanumeric(a)?(h=!0,t.consume(a),o):p(a)}function g(a){return t.consume(a),s=!0,o}function p(a){return h&&s&&f.asciiAlpha(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),i(a)):e(a)}}function nt(t,i,e){const r=this;return s;function s(n){return n!==87&&n!==119||!J.call(r,r.previous)||T(r.events)?e(n):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(K,t.attempt(q,t.attempt(U,h),e),e)(n))}function h(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),i(n)}}function it(t,i,e){const r=this;let s="",h=!1;return n;function n(a){return(a===72||a===104)&&Q.call(r,r.previous)&&!T(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(a),t.consume(a),u):e(a)}function u(a){if(f.asciiAlpha(a)&&s.length<5)return s+=String.fromCodePoint(a),t.consume(a),u;if(a===58){const b=s.toLowerCase();if(b==="http"||b==="https")return t.consume(a),o}return e(a)}function o(a){return a===47?(t.consume(a),h?g:(h=!0,o)):e(a)}function g(a){return a===null||f.asciiControl(a)||f.markdownLineEndingOrSpace(a)||f.unicodeWhitespace(a)||f.unicodePunctuation(a)?e(a):t.attempt(q,t.attempt(U,p),e)(a)}function p(a){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),i(a)}}function rt(t,i,e){let r=0;return s;function s(n){return(n===87||n===119)&&r<3?(r++,t.consume(n),s):n===46&&r===3?(t.consume(n),h):e(n)}function h(n){return n===null?e(n):i(n)}}function at(t,i,e){let r,s,h;return n;function n(g){return g===46||g===95?t.check(V,o,u)(g):g===null||f.markdownLineEndingOrSpace(g)||f.unicodeWhitespace(g)||g!==45&&f.unicodePunctuation(g)?o(g):(h=!0,t.consume(g),n)}function u(g){return g===95?r=!0:(s=r,r=void 0),t.consume(g),n}function o(g){return s||r||!h?e(g):i(g)}}function lt(t,i){let e=0,r=0;return s;function s(n){return n===40?(e++,t.consume(n),s):n===41&&r<e?h(n):n===33||n===34||n===38||n===39||n===41||n===42||n===44||n===46||n===58||n===59||n===60||n===63||n===93||n===95||n===126?t.check(V,i,h)(n):n===null||f.markdownLineEndingOrSpace(n)||f.unicodeWhitespace(n)?i(n):(t.consume(n),s)}function h(n){return n===41&&r++,t.consume(n),s}}function ut(t,i,e){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(t.consume(u),r):u===38?(t.consume(u),h):u===93?(t.consume(u),s):u===60||u===null||f.markdownLineEndingOrSpace(u)||f.unicodeWhitespace(u)?i(u):e(u)}function s(u){return u===null||u===40||u===91||f.markdownLineEndingOrSpace(u)||f.unicodeWhitespace(u)?i(u):r(u)}function h(u){return f.asciiAlpha(u)?n(u):e(u)}function n(u){return u===59?(t.consume(u),r):f.asciiAlpha(u)?(t.consume(u),n):e(u)}}function ot(t,i,e){return r;function r(h){return t.consume(h),s}function s(h){return f.asciiAlphanumeric(h)?e(h):i(h)}}function J(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||f.markdownLineEndingOrSpace(t)}function Q(t){return!f.asciiAlpha(t)}function X(t){return!(t===47||O(t))}function O(t){return t===43||t===45||t===46||t===95||f.asciiAlphanumeric(t)}function T(t){let i=t.length,e=!1;for(;i--;){const r=t[i][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){e=!0;break}if(r._gfmAutolinkLiteralWalkedInto){e=!1;break}}return t.length>0&&!e&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}function st(){return{exit:{literalAutolinkEmail:mt,literalAutolinkHttp:gt,literalAutolinkWww:ht}}}function ht(t){R.call(this,t,"http://")}function mt(t){R.call(this,t,"mailto:")}function gt(t){R.call(this,t)}function R(t,i){const e=this.sliceSerialize(t);this.tag('<a href="'+f.sanitizeUri((i||"")+e)+'">'),this.raw(this.encode(e)),this.tag("</a>")}const ft={tokenize:yt,partial:!0};function pt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wt,continuation:{tokenize:Dt},exit:dt}},text:{91:{name:"gfmFootnoteCall",tokenize:ct},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bt,resolveTo:kt}}}}function bt(t,i,e){const r=this;let s=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let n;for(;s--;){const o=r.events[s][1];if(o.type==="labelImage"){n=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!n||!n._balanced)return e(o);const g=f.normalizeIdentifier(r.sliceSerialize({start:n.end,end:r.now()}));return g.codePointAt(0)!==94||!h.includes(g.slice(1))?e(o):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(o),t.exit("gfmFootnoteCallLabelMarker"),i(o))}}function kt(t,i){let e=t.length;for(;e--;)if(t[e][1].type==="labelImage"&&t[e][0]==="enter"){t[e][1];break}t[e+1][1].type="data",t[e+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[e+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[e+3][1].end),end:Object.assign({},t[e+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},n={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},u=[t[e+1],t[e+2],["enter",r,i],t[e+3],t[e+4],["enter",s,i],["exit",s,i],["enter",h,i],["enter",n,i],["exit",n,i],["exit",h,i],t[t.length-2],t[t.length-1],["exit",r,i]];return t.splice(e,t.length-e+1,...u),t}function ct(t,i,e){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,n;return u;function u(a){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),o}function o(a){return a!==94?e(a):(t.enter("gfmFootnoteCallMarker"),t.consume(a),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(a){if(h>999||a===93&&!n||a===null||a===91||f.markdownLineEndingOrSpace(a))return e(a);if(a===93){t.exit("chunkString");const b=t.exit("gfmFootnoteCallString");return s.includes(f.normalizeIdentifier(r.sliceSerialize(b)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(a),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),i):e(a)}return f.markdownLineEndingOrSpace(a)||(n=!0),h++,t.consume(a),a===92?p:g}function p(a){return a===91||a===92||a===93?(t.consume(a),h++,g):g(a)}}function wt(t,i,e){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,n=0,u;return o;function o(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",p):e(m)}function p(m){if(n>999||m===93&&!u||m===null||m===91||f.markdownLineEndingOrSpace(m))return e(m);if(m===93){t.exit("chunkString");const c=t.exit("gfmFootnoteDefinitionLabelString");return h=f.normalizeIdentifier(r.sliceSerialize(c)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),b}return f.markdownLineEndingOrSpace(m)||(u=!0),n++,t.consume(m),m===92?a:p}function a(m){return m===91||m===92||m===93?(t.consume(m),n++,p):p(m)}function b(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),s.includes(h)||s.push(h),f.factorySpace(t,k,"gfmFootnoteDefinitionWhitespace")):e(m)}function k(m){return i(m)}}function Dt(t,i,e){return t.check(f.blankLine,i,t.attempt(ft,i,e))}function dt(t){t.exit("gfmFootnoteDefinition")}function yt(t,i,e){const r=this;return f.factorySpace(t,s,"gfmFootnoteDefinitionIndent",5);function s(h){const n=r.events[r.events.length-1];return n&&n[1].type==="gfmFootnoteDefinitionIndent"&&n[2].sliceSerialize(n[1],!0).length===4?i(h):e(h)}}const St={}.hasOwnProperty,Ct={};function At(t,i){return"Back to reference "+(t+1)+(i>1?"-"+i:"")}function Ft(t){const i=t||Ct,e=i.label||"Footnotes",r=i.labelTagName||"h2",s=i.labelAttributes===null||i.labelAttributes===void 0?'class="sr-only"':i.labelAttributes,h=i.backLabel||At,n=i.clobberPrefix===null||i.clobberPrefix===void 0?"user-content-":i.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let u=this.getData("gfmFootnoteDefinitions");const o=this.getData("gfmFootnoteDefinitionStack"),g=this.getData("tightStack"),p=o.pop(),a=this.resume();u||this.setData("gfmFootnoteDefinitions",u={}),St.call(u,p)||(u[p]=a),g.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(u){let o=this.getData("gfmFootnoteDefinitionStack");o||this.setData("gfmFootnoteDefinitionStack",o=[]),o.push(f.normalizeIdentifier(this.sliceSerialize(u))),this.resume(),this.buffer()},gfmFootnoteCallString(u){let o=this.getData("gfmFootnoteCallOrder"),g=this.getData("gfmFootnoteCallCounts");const p=f.normalizeIdentifier(this.sliceSerialize(u));let a;this.resume(),o||this.setData("gfmFootnoteCallOrder",o=[]),g||this.setData("gfmFootnoteCallCounts",g={});const b=o.indexOf(p),k=f.sanitizeUri(p.toLowerCase());b===-1?(o.push(p),g[p]=1,a=o.length):(g[p]++,a=b+1);const m=g[p];this.tag('<sup><a href="#'+n+"fn-"+k+'" id="'+n+"fnref-"+k+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(a)+"</a></sup>")},null(){const u=this.getData("gfmFootnoteCallOrder")||[],o=this.getData("gfmFootnoteCallCounts")||{},g=this.getData("gfmFootnoteDefinitions")||{};let p=-1;for(u.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+r+' id="footnote-label"'+(s?" "+s:"")+">"),this.raw(this.encode(e)),this.tag("</"+r+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++p<u.length;){const a=u[p],b=f.sanitizeUri(a.toLowerCase());let k=0;const m=[];for(;++k<=o[a];)m.push('<a href="#'+n+"fnref-"+b+(k>1?"-"+k:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof h=="string"?h:h(p,k))+'" class="data-footnote-backref">↩'+(k>1?"<sup>"+k+"</sup>":"")+"</a>");const c=m.join(" ");let D=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+n+"fn-"+b+'">'),this.lineEndingIfNeeded(),this.tag(g[a].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return D=!0," "+c+y})),D||(this.lineEndingIfNeeded(),this.tag(c)),this.lineEndingIfNeeded(),this.tag("</li>")}u.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function Lt(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function xt(t){let e=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:s};return e==null&&(e=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(n,u){let o=-1;for(;++o<n.length;)if(n[o][0]==="enter"&&n[o][1].type==="strikethroughSequenceTemporary"&&n[o][1]._close){let g=o;for(;g--;)if(n[g][0]==="exit"&&n[g][1].type==="strikethroughSequenceTemporary"&&n[g][1]._open&&n[o][1].end.offset-n[o][1].start.offset===n[g][1].end.offset-n[g][1].start.offset){n[o][1].type="strikethroughSequence",n[g][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},n[g][1].start),end:Object.assign({},n[o][1].end)},a={type:"strikethroughText",start:Object.assign({},n[g][1].end),end:Object.assign({},n[o][1].start)},b=[["enter",p,u],["enter",n[g][1],u],["exit",n[g][1],u],["enter",a,u]],k=u.parser.constructs.insideSpan.null;k&&f.splice(b,b.length,0,f.resolveAll(k,n.slice(g+1,o),u)),f.splice(b,b.length,0,[["exit",a,u],["enter",n[o][1],u],["exit",n[o][1],u],["exit",p,u]]),f.splice(n,g-1,o-g+3,b),o=g+b.length-2;break}}for(o=-1;++o<n.length;)n[o][1].type==="strikethroughSequenceTemporary"&&(n[o][1].type="data");return n}function h(n,u,o){const g=this.previous,p=this.events;let a=0;return b;function b(m){return g===126&&p[p.length-1][1].type!=="characterEscape"?o(m):(n.enter("strikethroughSequenceTemporary"),k(m))}function k(m){const c=f.classifyCharacter(g);if(m===126)return a>1?o(m):(n.consume(m),a++,k);if(a<2&&!e)return o(m);const D=n.exit("strikethroughSequenceTemporary"),y=f.classifyCharacter(m);return D._open=!y||y===2&&!!c,D._close=!c||c===2&&!!y,u(m)}}}const I={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function zt(){return{enter:{table(t){const i=t._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",i)},tableBody(){this.tag("<tbody>")},tableData(){const t=this.getData("tableAlign"),i=this.getData("tableColumn"),e=I[t[i]];e===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+e+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){const t=this.getData("tableAlign"),i=this.getData("tableColumn"),e=I[t[i]];this.lineEndingIfNeeded(),this.tag("<th"+e+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(t){let i=this.sliceSerialize(t);this.getData("tableAlign")&&(i=i.replace(/\\([\\|])/g,Et)),this.raw(this.encode(i))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){const t=this.getData("tableAlign"),i=this.getData("tableColumn");i in t?(this.tag("</td>"),this.setData("tableColumn",i+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){const t=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",t+1)},tableRow(){const t=this.getData("tableAlign");let i=this.getData("tableColumn");for(;i<t.length;)this.lineEndingIfNeeded(),this.tag("<td"+I[t[i]]+"></td>"),i++;this.setData("tableColumn",i),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function Et(t,i){return i==="|"?i:t}class It{constructor(){this.map=[]}add(i,e,r){Ot(this,i,e,r)}consume(i){if(this.map.sort(function(h,n){return h[0]-n[0]}),this.map.length===0)return;let e=this.map.length;const r=[];for(;e>0;)e-=1,r.push(i.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),i.length=this.map[e][0];r.push(i.slice()),i.length=0;let s=r.pop();for(;s;){for(const h of s)i.push(h);s=r.pop()}this.map.length=0}}function Ot(t,i,e,r){let s=0;if(!(e===0&&r.length===0)){for(;s<t.map.length;){if(t.map[s][0]===i){t.map[s][1]+=e,t.map[s][2].push(...r);return}s+=1}t.map.push([i,e,r])}}function Tt(t,i){let e=!1;const r=[];for(;i<t.length;){const s=t[i];if(e){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(t[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[i-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(e=!0);i+=1}return r}function Rt(){return{flow:{null:{name:"table",tokenize:Mt,resolveAll:Pt}}}}function Mt(t,i,e){const r=this;let s=0,h=0,n;return u;function u(l){let F=r.events.length-1;for(;F>-1;){const B=r.events[F][1].type;if(B==="lineEnding"||B==="linePrefix")F--;else break}const H=F>-1?r.events[F][1].type:null,N=H==="tableHead"||H==="tableRow"?j:o;return N===j&&r.parser.lazy[r.now().line]?e(l):N(l)}function o(l){return t.enter("tableHead"),t.enter("tableRow"),g(l)}function g(l){return l===124||(n=!0,h+=1),p(l)}function p(l){return l===null?e(l):f.markdownLineEnding(l)?h>1?(h=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),k):e(l):f.markdownSpace(l)?f.factorySpace(t,p,"whitespace")(l):(h+=1,n&&(n=!1,s+=1),l===124?(t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),n=!0,p):(t.enter("data"),a(l)))}function a(l){return l===null||l===124||f.markdownLineEndingOrSpace(l)?(t.exit("data"),p(l)):(t.consume(l),l===92?b:a)}function b(l){return l===92||l===124?(t.consume(l),a):a(l)}function k(l){return r.interrupt=!1,r.parser.lazy[r.now().line]?e(l):(t.enter("tableDelimiterRow"),n=!1,f.markdownSpace(l)?f.factorySpace(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):m(l))}function m(l){return l===45||l===58?D(l):l===124?(n=!0,t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),c):A(l)}function c(l){return f.markdownSpace(l)?f.factorySpace(t,D,"whitespace")(l):D(l)}function D(l){return l===58?(h+=1,n=!0,t.enter("tableDelimiterMarker"),t.consume(l),t.exit("tableDelimiterMarker"),y):l===45?(h+=1,y(l)):l===null||f.markdownLineEnding(l)?E(l):A(l)}function y(l){return l===45?(t.enter("tableDelimiterFiller"),M(l)):A(l)}function M(l){return l===45?(t.consume(l),M):l===58?(n=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(l),t.exit("tableDelimiterMarker"),P):(t.exit("tableDelimiterFiller"),P(l))}function P(l){return f.markdownSpace(l)?f.factorySpace(t,E,"whitespace")(l):E(l)}function E(l){return l===124?m(l):l===null||f.markdownLineEnding(l)?!n||s!==h?A(l):(t.exit("tableDelimiterRow"),t.exit("tableHead"),i(l)):A(l)}function A(l){return e(l)}function j(l){return t.enter("tableRow"),L(l)}function L(l){return l===124?(t.enter("tableCellDivider"),t.consume(l),t.exit("tableCellDivider"),L):l===null||f.markdownLineEnding(l)?(t.exit("tableRow"),i(l)):f.markdownSpace(l)?f.factorySpace(t,L,"whitespace")(l):(t.enter("data"),x(l))}function x(l){return l===null||l===124||f.markdownLineEndingOrSpace(l)?(t.exit("data"),L(l)):(t.consume(l),l===92?Z:x)}function Z(l){return l===92||l===124?(t.consume(l),x):x(l)}}function Pt(t,i){let e=-1,r=!0,s=0,h=[0,0,0,0],n=[0,0,0,0],u=!1,o=0,g,p,a;const b=new It;for(;++e<t.length;){const k=t[e],m=k[1];k[0]==="enter"?m.type==="tableHead"?(u=!1,o!==0&&(W(b,i,o,g,p),p=void 0,o=0),g={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},b.add(e,0,[["enter",g,i]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,a=void 0,h=[0,0,0,0],n=[0,e+1,0,0],u&&(u=!1,p={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},b.add(e,0,[["enter",p,i]])),s=m.type==="tableDelimiterRow"?2:p?3:1):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,n[2]===0&&(h[1]!==0&&(n[0]=n[1],a=z(b,i,h,s,void 0,a),h=[0,0,0,0]),n[2]=e)):m.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(n[0]=n[1],a=z(b,i,h,s,void 0,a)),h=n,n=[h[1],e,0,0])):m.type==="tableHead"?(u=!0,o=e):m.type==="tableRow"||m.type==="tableDelimiterRow"?(o=e,h[1]!==0?(n[0]=n[1],a=z(b,i,h,s,e,a)):n[1]!==0&&(a=z(b,i,n,s,e,a)),s=0):s&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(n[3]=e)}for(o!==0&&W(b,i,o,g,p),b.consume(i.events),e=-1;++e<i.events.length;){const k=i.events[e];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=Tt(i.events,e))}return t}function z(t,i,e,r,s,h){const n=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";e[0]!==0&&(h.end=Object.assign({},C(i.events,e[0])),t.add(e[0],0,[["exit",h,i]]));const o=C(i.events,e[1]);if(h={type:n,start:Object.assign({},o),end:Object.assign({},o)},t.add(e[1],0,[["enter",h,i]]),e[2]!==0){const g=C(i.events,e[2]),p=C(i.events,e[3]),a={type:u,start:Object.assign({},g),end:Object.assign({},p)};if(t.add(e[2],0,[["enter",a,i]]),r!==2){const b=i.events[e[2]],k=i.events[e[3]];if(b[1].end=Object.assign({},k[1].end),b[1].type="chunkText",b[1].contentType="text",e[3]>e[2]+1){const m=e[2]+1,c=e[3]-e[2]-1;t.add(m,c,[])}}t.add(e[3]+1,0,[["exit",a,i]])}return s!==void 0&&(h.end=Object.assign({},C(i.events,s)),t.add(s,0,[["exit",h,i]]),h=void 0),h}function W(t,i,e,r,s){const h=[],n=C(i.events,e);s&&(s.end=Object.assign({},n),h.push(["exit",s,i])),r.end=Object.assign({},n),h.push(["exit",r,i]),t.add(e+1,0,h)}function C(t,i){const e=t[i],r=e[0]==="enter"?"start":"end";return e[1][r]}const Y=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,jt=new RegExp("^"+Y.source,"i");function Ht(){return{exit:{htmlFlowData(t){_.call(this,t,Y)},htmlTextData(t){_.call(this,t,jt)}}}}function _(t,i){let e=this.sliceSerialize(t);this.options.allowDangerousHtml&&(e=e.replace(i,"<$1$2")),this.raw(this.encode(e))}function Nt(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}const Bt={name:"tasklistCheck",tokenize:_t};function Wt(){return{text:{91:Bt}}}function _t(t,i,e){const r=this;return s;function s(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?e(o):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(o),t.exit("taskListCheckMarker"),h)}function h(o){return f.markdownLineEndingOrSpace(o)?(t.enter("taskListCheckValueUnchecked"),t.consume(o),t.exit("taskListCheckValueUnchecked"),n):o===88||o===120?(t.enter("taskListCheckValueChecked"),t.consume(o),t.exit("taskListCheckValueChecked"),n):e(o)}function n(o){return o===93?(t.enter("taskListCheckMarker"),t.consume(o),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),u):e(o)}function u(o){return f.markdownLineEnding(o)?i(o):f.markdownSpace(o)?t.check({tokenize:qt},i,e)(o):e(o)}}function qt(t,i,e){return f.factorySpace(t,r,"whitespace");function r(s){return s===null?e(s):i(s)}}function Ut(t){return f.combineExtensions([tt(),pt(),xt(t),Rt(),Wt()])}function Vt(t){return f.combineHtmlExtensions([st(),Ft(t),Lt(),zt(),Ht(),Nt()])}exports.gfm=Ut;exports.gfmHtml=Vt;
|