zidane-gui 9.0.3 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/out/main/chunks/{dev-extension-D5os9z0A.js → dev-extension-CjcEOYly.js} +10 -9
- package/out/main/chunks/extension-watch-Bk_X4gTf.js +93 -0
- package/out/main/chunks/{history-pager-DUFgTrih.js → history-pager-B5iwhWqn.js} +44 -7
- package/out/main/chunks/idle-collect-ZgTY7fw2.js +33 -0
- package/out/main/chunks/{remote-hosts-DlvE2ELX.js → remote-hosts-DmiOiwKi.js} +41 -1
- package/out/main/chunks/{session-search-sql-BrNTuwjH.js → session-search-sql-BaBnjEgm.js} +4 -4
- package/out/main/chunks/{tool-results-sql-C0MqWcQc.js → tool-results-sql-CVleIS51.js} +1 -1
- package/out/main/chunks/transcript-sql-DfsO-a4Q.js +27 -0
- package/out/main/extension-worker.js +52 -0
- package/out/main/git-watch-worker.js +21 -0
- package/out/main/history-worker.js +6 -3
- package/out/main/index.js +7614 -4263
- package/out/main/session-search-worker.js +18 -13
- package/out/main/tool-results-worker.js +18 -13
- package/out/main/update-worker.js +6 -0
- package/out/main/usage-worker.js +4 -1
- package/out/preload/index.mjs +49 -6
- package/out/renderer/assets/2CHDFZHC-B7OS2WPy.js +76 -0
- package/out/renderer/assets/43YPWK3Q-C1KxyhBe.js +297 -0
- package/out/renderer/assets/45MVAN6X-uedsCyvs.js +227 -0
- package/out/renderer/assets/46GJKBLZ-DqRDtmyU.js +362 -0
- package/out/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
- package/out/renderer/assets/63WH7YNF-E23uJkxY.js +1519 -0
- package/out/renderer/assets/6DDU7VKX-BnYMT-fZ.js +139 -0
- package/out/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
- package/out/renderer/assets/CLQLV5VT-BsAy1F0L.js +1159 -0
- package/out/renderer/assets/CUSPXG5M-BndthcFo.js +233 -0
- package/out/renderer/assets/{CodeEditor-in2F3Rz-.js → CodeEditor-Bc2yVqNr.js} +404 -744
- package/out/renderer/assets/{ComposerEditor-DzKoxH6Z.js → ComposerEditor-B4wmjkXE.js} +6 -7
- package/out/renderer/assets/D3L7O4X2-LfFKkl0g.js +194 -0
- package/out/renderer/assets/D5TW5CPZ-BUXfpU2q.js +21 -0
- package/out/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
- package/out/renderer/assets/{DiffsTab-Ceh4E5wW.js → DiffsTab-BHaJc7Ve.js} +43 -26
- package/out/renderer/assets/EGADTWYV-giCCF2cw.js +292 -0
- package/out/renderer/assets/EOJSJZXM-B9xc3U2A.js +1137 -0
- package/out/renderer/assets/{EditorWorkers-Bhv2OJRb.js → EditorWorkers-DABG5YG9.js} +9 -11
- package/out/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
- package/out/renderer/assets/{FileIcon-CYgGSQ59.js → FileIcon-acads6Ac.js} +1 -1
- package/out/renderer/assets/{FilesTab-DESQMqGK.js → FilesTab-CyWw9vW2.js} +70 -28
- package/out/renderer/assets/G2OEIG6X-hZmo0wrY.js +519 -0
- package/out/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
- package/out/renderer/assets/GXJ2T77W-Dx1MA_On.js +445 -0
- package/out/renderer/assets/HX3UMAK7-DcJt6NaE.js +177 -0
- package/out/renderer/assets/IU7WZTP6-BZMu2vL3.js +137 -0
- package/out/renderer/assets/J5J2NR2G-CbQLnnZq.js +673 -0
- package/out/renderer/assets/JRCWTJEL-xEOyWDIN.js +419 -0
- package/out/renderer/assets/KHUP5TOH-032p46g-.js +359 -0
- package/out/renderer/assets/L74FQTH5-CQ_54hNm.js +994 -0
- package/out/renderer/assets/LAV4ZXOS-DvhVMhLR.js +968 -0
- package/out/renderer/assets/LBIZYCRR-CMaDdulz.js +715 -0
- package/out/renderer/assets/LFFXNLRS-BjbqzBYN.js +377 -0
- package/out/renderer/assets/LLLWOAQD-B2zZRpRf.js +409 -0
- package/out/renderer/assets/LTYQZ5U5-DzI-7yJW.js +1223 -0
- package/out/renderer/assets/NDSCUZ25-C9oT6c6G.js +83 -0
- package/out/renderer/assets/NMN3IKWL-9IsXehWp.js +1042 -0
- package/out/renderer/assets/NMUA3R2D-B2ZuyfXA.js +1080 -0
- package/out/renderer/assets/NY5A6PPW-BzmvsXmE.js +523 -0
- package/out/renderer/assets/OHJ2EJXK-BEkFEoxu.js +85 -0
- package/out/renderer/assets/OU2GIT2H-DZQl_5qv.js +32 -0
- package/out/renderer/assets/PDMLSE6I-C3FMl6Ej.js +15 -0
- package/out/renderer/assets/PJ7X32S5-BQ3aTkUy.js +188 -0
- package/out/renderer/assets/RLLQ44NJ-Dq15CCQ6.js +248 -0
- package/out/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
- package/out/renderer/assets/S6DWMCK5-KeQNStMI.js +817 -0
- package/out/renderer/assets/STIOTUT7-ZnewWXB7.js +509 -0
- package/out/renderer/assets/SXSLPWUD-VIPmiOfk.js +120 -0
- package/out/renderer/assets/TR4WJQGX-CQ3dPMLJ.js +25 -0
- package/out/renderer/assets/UWRPUF3N-CtgKKvKe.js +1276 -0
- package/out/renderer/assets/VSWIZJ7B-BN-hZ_G_.js +205 -0
- package/out/renderer/assets/WM7NR6YK-CghasXna.js +193 -0
- package/out/renderer/assets/WXKV2YEK-C8qjO_OQ.js +499 -0
- package/out/renderer/assets/XLHPVVFU-CoRVO17g.js +56 -0
- package/out/renderer/assets/YNX532HU-DhZCm9iK.js +119 -0
- package/out/renderer/assets/YUPSMAUO-Brx2G_oh.js +39 -0
- package/out/renderer/assets/ZFRCZTLK-Cs8fJIgy.js +150 -0
- package/out/renderer/assets/ZZDR4CN3-DcTVOpcO.js +122 -0
- package/out/renderer/assets/andromeeda-Bx1G2cLE.js +293 -0
- package/out/renderer/assets/andromeeda-vBqMIOkk.js +293 -0
- package/out/renderer/assets/aurora-x-Cm7-xw-C.js +243 -0
- package/out/renderer/assets/aurora-x-DPl7s7lw.js +243 -0
- package/out/renderer/assets/ayu-dark-CwZzE4zG.js +207 -0
- package/out/renderer/assets/ayu-dark-DkHc-GR-.js +207 -0
- package/out/renderer/assets/ayu-light-D8NJUeg2.js +207 -0
- package/out/renderer/assets/ayu-light-DNVhSCsl.js +207 -0
- package/out/renderer/assets/ayu-mirage-C-lSBwzI.js +207 -0
- package/out/renderer/assets/ayu-mirage-JE49iZ2H.js +207 -0
- package/out/renderer/assets/catppuccin-frappe-DU1nAiyx.js +414 -0
- package/out/renderer/assets/catppuccin-frappe-DX6Q-ciL.js +414 -0
- package/out/renderer/assets/catppuccin-latte-CO9onEOF.js +414 -0
- package/out/renderer/assets/catppuccin-latte-CkSyOFfG.js +414 -0
- package/out/renderer/assets/catppuccin-macchiato-OyZDjojj.js +414 -0
- package/out/renderer/assets/catppuccin-macchiato-WINjU_Dw.js +414 -0
- package/out/renderer/assets/catppuccin-mocha-0z8-eFg0.js +414 -0
- package/out/renderer/assets/catppuccin-mocha-DRTSTdRR.js +414 -0
- package/out/renderer/assets/core-COuvbqNs.js +5186 -0
- package/out/renderer/assets/{highlight.worker-gURcNJD7.js → core-Drnj1qQL.js} +404 -4454
- package/out/renderer/assets/{core-xOIU6ifr.js → core-Z_paRVMb.js} +3208 -1946
- package/out/renderer/assets/dark-plus-BaggkchT.js +241 -0
- package/out/renderer/assets/dark-plus-Conw9IRY.js +241 -0
- package/out/renderer/assets/default-CzLFidVE.js +1890 -0
- package/out/renderer/assets/dracula-BKSZoV-6.js +227 -0
- package/out/renderer/assets/dracula-BpiXsqbq.js +227 -0
- package/out/renderer/assets/dracula-soft-BF0b4PXf.js +169 -0
- package/out/renderer/assets/dracula-soft-DIWOT7Wr.js +169 -0
- package/out/renderer/assets/engine-javascript-CtTomO8o.js +3238 -0
- package/out/renderer/assets/engine-javascript-DUvVq6Hk.js +3223 -0
- package/out/renderer/assets/engine-oniguruma-DKBWYAaE.js +482 -0
- package/out/renderer/assets/engine-oniguruma-mZf4aRKS.js +482 -0
- package/out/renderer/assets/everforest-dark-B3n4qCUZ.js +181 -0
- package/out/renderer/assets/everforest-dark-BXgth4bF.js +181 -0
- package/out/renderer/assets/everforest-light-BhaIwhYu.js +181 -0
- package/out/renderer/assets/everforest-light-cbpcbx0E.js +181 -0
- package/out/renderer/assets/{file-tabs-Cozt9Sho.js → file-tabs-BCf1cAWp.js} +10 -12
- package/out/renderer/assets/{ghostty-web-BTHoKwMc.js → ghostty-web-CdNv377h.js} +3 -1
- package/out/renderer/assets/github-dark-BESFF5XO.js +234 -0
- package/out/renderer/assets/github-dark-DNCSzN6m.js +234 -0
- package/out/renderer/assets/github-dark-default-DgFmzzcd.js +168 -0
- package/out/renderer/assets/github-dark-default-ffmDUf0z.js +168 -0
- package/out/renderer/assets/github-dark-dimmed-CLKTYZCg.js +225 -0
- package/out/renderer/assets/github-dark-dimmed-s1SLsKJt.js +225 -0
- package/out/renderer/assets/github-dark-high-contrast-CXehgwDU.js +225 -0
- package/out/renderer/assets/github-dark-high-contrast-KLlCEr3k.js +225 -0
- package/out/renderer/assets/github-light-U3PkvbB_.js +234 -0
- package/out/renderer/assets/github-light-default-BPzGUBgG.js +225 -0
- package/out/renderer/assets/github-light-default-xMLgS_bN.js +225 -0
- package/out/renderer/assets/github-light-high-contrast-C8D72_o0.js +225 -0
- package/out/renderer/assets/github-light-high-contrast-DQhuIFi9.js +225 -0
- package/out/renderer/assets/github-light-jtm9FPHO.js +234 -0
- package/out/renderer/assets/gruvbox-dark-hard-BAboCHnq.js +214 -0
- package/out/renderer/assets/gruvbox-dark-hard-woZR1aVf.js +214 -0
- package/out/renderer/assets/gruvbox-dark-medium-BsoEOmFF.js +214 -0
- package/out/renderer/assets/gruvbox-dark-medium-CNo7daJC.js +214 -0
- package/out/renderer/assets/gruvbox-dark-soft-CaJ_lf0b.js +214 -0
- package/out/renderer/assets/gruvbox-dark-soft-Cg271WAX.js +214 -0
- package/out/renderer/assets/gruvbox-light-hard-CEjA0x_J.js +214 -0
- package/out/renderer/assets/gruvbox-light-hard-D8Ufxp8E.js +214 -0
- package/out/renderer/assets/gruvbox-light-medium-BCS-MX7u.js +214 -0
- package/out/renderer/assets/gruvbox-light-medium-DZkNZdeM.js +214 -0
- package/out/renderer/assets/gruvbox-light-soft-CRdK2Ssn.js +214 -0
- package/out/renderer/assets/gruvbox-light-soft-DEEl98i-.js +214 -0
- package/out/renderer/assets/hastToHtml-AUrFnNH_.js +123 -0
- package/out/renderer/assets/highlight.worker-BYB12Fvh.js +1624 -0
- package/out/renderer/assets/highlights-Cjdp9LIq.js +292 -0
- package/out/renderer/assets/highlights-CpZm9DAR-DaBE50nC.js +2188 -0
- package/out/renderer/assets/highlights-DaYW35iB.js +313 -0
- package/out/renderer/assets/horizon-B492K9Ky.js +165 -0
- package/out/renderer/assets/horizon-DAZuC-xh.js +165 -0
- package/out/renderer/assets/horizon-bright-D2Sfzu7E.js +165 -0
- package/out/renderer/assets/horizon-bright-tGFWGsRc.js +165 -0
- package/out/renderer/assets/houston-BuwDhoUX.js +373 -0
- package/out/renderer/assets/houston-Cp9zzZds.js +373 -0
- package/out/renderer/assets/index-DhpOdP7M.js +882 -0
- package/out/renderer/assets/{index-DkE-xvCG.js → index-_dhRO6Oc.js} +1823 -384
- package/out/renderer/assets/{index-DrLLItLS.css → index-fNK5AY6Q.css} +202 -42
- package/out/renderer/assets/kanagawa-dragon-6NLBJhOz.js +229 -0
- package/out/renderer/assets/kanagawa-dragon-BF7rCHRT.js +229 -0
- package/out/renderer/assets/kanagawa-lotus-Cj8RDQcT.js +229 -0
- package/out/renderer/assets/kanagawa-lotus-uV7FMPcj.js +229 -0
- package/out/renderer/assets/kanagawa-wave-0rvDP1ei.js +229 -0
- package/out/renderer/assets/kanagawa-wave-B6IVm0GO.js +229 -0
- package/out/renderer/assets/{kit-BUt8oFlT.js → kit-E8-H6M0V.js} +45590 -39890
- package/out/renderer/assets/langs-BDUDFyts.js +1333 -0
- package/out/renderer/assets/langs-BtXnoosO.js +1331 -0
- package/out/renderer/assets/laserwave-DXWE1WnK.js +166 -0
- package/out/renderer/assets/laserwave-JLRBtymH.js +166 -0
- package/out/renderer/assets/lazy-DQmrNfMK.js +1188 -0
- package/out/renderer/assets/light-plus-DU2oMqtU.js +244 -0
- package/out/renderer/assets/light-plus-D_GZIzn-.js +244 -0
- package/out/renderer/assets/loader-byWkNl6P.js +83 -0
- package/out/renderer/assets/loader-q6EC19QI.js +80 -0
- package/out/renderer/assets/material-theme-C0rHRk_7.js +171 -0
- package/out/renderer/assets/material-theme-CKzpgSIj.js +171 -0
- package/out/renderer/assets/material-theme-darker-LxtgP-nI.js +171 -0
- package/out/renderer/assets/material-theme-darker-q1PJSGwC.js +171 -0
- package/out/renderer/assets/material-theme-lighter-Bo7q33GI.js +171 -0
- package/out/renderer/assets/material-theme-lighter-DIrXq_cm.js +171 -0
- package/out/renderer/assets/material-theme-ocean-DBoGA257.js +171 -0
- package/out/renderer/assets/material-theme-ocean-DKw0PiZ1.js +171 -0
- package/out/renderer/assets/material-theme-palenight-C6KqY_uf.js +171 -0
- package/out/renderer/assets/material-theme-palenight-DoLm5E7H.js +171 -0
- package/out/renderer/assets/min-dark-C29HEm34.js +166 -0
- package/out/renderer/assets/min-dark-C5zOB6s9.js +166 -0
- package/out/renderer/assets/min-light-BDAdB2zx.js +166 -0
- package/out/renderer/assets/min-light-CCfylF7u.js +166 -0
- package/out/renderer/assets/monokai-CgbJVDnk.js +246 -0
- package/out/renderer/assets/monokai-hi1UnAdE.js +246 -0
- package/out/renderer/assets/night-owl-Cy8ZrWil.js +238 -0
- package/out/renderer/assets/night-owl-Pfm14M0L.js +238 -0
- package/out/renderer/assets/night-owl-light-Cr6ug2dl.js +237 -0
- package/out/renderer/assets/night-owl-light-UewpB7JV.js +237 -0
- package/out/renderer/assets/nord-C68LX7oy.js +200 -0
- package/out/renderer/assets/nord-D68iK8nx.js +200 -0
- package/out/renderer/assets/one-dark-pro-DSih0ZZj.js +196 -0
- package/out/renderer/assets/one-dark-pro-DyTT0T_G.js +196 -0
- package/out/renderer/assets/one-light--fEa3idW.js +232 -0
- package/out/renderer/assets/one-light-BzGf0rQc.js +232 -0
- package/out/renderer/assets/{patch-parse.worker-BAW1QWyk.js → patch-parse.worker-siqPY9wG.js} +24 -4
- package/out/renderer/assets/pierre-dark-1Xh1-lMo.js +4 -0
- package/out/renderer/assets/pierre-dark-7z_hCG7W.js +364 -0
- package/out/renderer/assets/pierre-dark-protanopia-deuteranopia-DjiH32kw.js +364 -0
- package/out/renderer/assets/pierre-dark-protanopia-deuteranopia-GW6g2K_K.js +364 -0
- package/out/renderer/assets/pierre-dark-protanopia-deuteranopia-LDfpPKjm.js +4 -0
- package/out/renderer/assets/pierre-dark-soft-1iBHdNO0.js +364 -0
- package/out/renderer/assets/pierre-dark-soft-C_k_gt55.js +4 -0
- package/out/renderer/assets/pierre-dark-soft-D5-n1AeJ.js +364 -0
- package/out/renderer/assets/pierre-dark-tritanopia-CeWJyYfV.js +4 -0
- package/out/renderer/assets/pierre-dark-tritanopia-ClMvjOGO.js +364 -0
- package/out/renderer/assets/pierre-dark-tritanopia-D9kXXcwP.js +364 -0
- package/out/renderer/assets/pierre-dark-vibrant-6Oqz1PbM.js +4 -0
- package/out/renderer/assets/pierre-dark-vibrant-C8yH51pK.js +364 -0
- package/out/renderer/assets/pierre-dark-vibrant-D_7rJXbX.js +364 -0
- package/out/renderer/assets/pierre-dark-yHUcpElV.js +364 -0
- package/out/renderer/assets/pierre-light-BIebL0yQ.js +4 -0
- package/out/renderer/assets/pierre-light-C34x-mcs.js +364 -0
- package/out/renderer/assets/pierre-light-C9v4GAHb.js +364 -0
- package/out/renderer/assets/pierre-light-protanopia-deuteranopia-BufD2-1n.js +4 -0
- package/out/renderer/assets/pierre-light-protanopia-deuteranopia-DUrvpW2C.js +364 -0
- package/out/renderer/assets/pierre-light-protanopia-deuteranopia-VwXWNPo2.js +364 -0
- package/out/renderer/assets/pierre-light-soft-BmDnpPlM.js +364 -0
- package/out/renderer/assets/pierre-light-soft-Cd6v49hf.js +4 -0
- package/out/renderer/assets/pierre-light-soft-DqFh0kZA.js +364 -0
- package/out/renderer/assets/pierre-light-tritanopia-BVCfgdSF.js +364 -0
- package/out/renderer/assets/pierre-light-tritanopia-RkA2q6k9.js +364 -0
- package/out/renderer/assets/pierre-light-tritanopia-VrCUn-Lh.js +4 -0
- package/out/renderer/assets/pierre-light-vibrant-C5BaqWq3.js +364 -0
- package/out/renderer/assets/pierre-light-vibrant-CCrCMYrB.js +364 -0
- package/out/renderer/assets/pierre-light-vibrant-ClZHsQXl.js +4 -0
- package/out/renderer/assets/{pierre-theme-Bj5EAt1L.js → pierre-theme-CsyO3esE.js} +1022 -913
- package/out/renderer/assets/plastic-7t7HzasC.js +207 -0
- package/out/renderer/assets/plastic-EgWoj0TX.js +207 -0
- package/out/renderer/assets/poimandres-Clm3QHf_.js +186 -0
- package/out/renderer/assets/poimandres-_9ZL-zjP.js +186 -0
- package/out/renderer/assets/red-BGLMOAQA.js +240 -0
- package/out/renderer/assets/red-C7WxuK4s.js +240 -0
- package/out/renderer/assets/rose-pine-CSYOOLQH.js +200 -0
- package/out/renderer/assets/rose-pine-DQTixAK4.js +200 -0
- package/out/renderer/assets/rose-pine-dawn-BsExWFpO.js +200 -0
- package/out/renderer/assets/rose-pine-dawn-DtnCKB3V.js +200 -0
- package/out/renderer/assets/rose-pine-moon-CIVzFPCR.js +200 -0
- package/out/renderer/assets/rose-pine-moon-DUVYttUm.js +200 -0
- package/out/renderer/assets/shiki-Ci4cdHsM-C6d-uTVf.js +681 -0
- package/out/renderer/assets/shiki-DxXti3Bm.js +651 -0
- package/out/renderer/assets/slack-dark-DqfBLzDN.js +156 -0
- package/out/renderer/assets/slack-dark-PDVLPqBV.js +156 -0
- package/out/renderer/assets/slack-ochin-BXb20b9s.js +167 -0
- package/out/renderer/assets/slack-ochin-Bkl8Akj-.js +167 -0
- package/out/renderer/assets/snazzy-light-B-XgRQqH.js +169 -0
- package/out/renderer/assets/snazzy-light-B_Pnr_t3.js +169 -0
- package/out/renderer/assets/solarized-dark-BExlwCgF.js +256 -0
- package/out/renderer/assets/solarized-dark-BWOkBqBk.js +256 -0
- package/out/renderer/assets/solarized-light-B0LC-9ef.js +256 -0
- package/out/renderer/assets/solarized-light-B7xKmc3j.js +256 -0
- package/out/renderer/assets/stream-tokenizer-DK9xp5M5-BkzgPytU.js +2641 -0
- package/out/renderer/assets/stream-tokenizer-sqhinrU5.js +131 -0
- package/out/renderer/assets/synthwave-84-Bz5LYLQI.js +766 -0
- package/out/renderer/assets/synthwave-84-DnB997dV.js +766 -0
- package/out/renderer/assets/themes-DGY5d--g.js +323 -0
- package/out/renderer/assets/themes-KOxcu5sY.js +322 -0
- package/out/renderer/assets/tokyo-night-BFQDXQF9.js +343 -0
- package/out/renderer/assets/tokyo-night-BKV2xFQO.js +343 -0
- package/out/renderer/assets/{useDetachCleanup-Bb7k1ePf.js → useDetachCleanup-DYbCqwX-.js} +95 -51
- package/out/renderer/assets/{useFolderChanges-B4X4n6NV.js → useFolderChanges-Y0OqX_nG.js} +406 -242
- package/out/renderer/assets/utils-BcG7Lqcy.js +90 -0
- package/out/renderer/assets/{vendor-BvslLX9q.js → vendor-BpwX-s_O.js} +16835 -16799
- package/out/renderer/assets/{vendor-editor-Bx3dRdBD.js → vendor-editor-Cx3SvGyZ.js} +2 -2
- package/out/renderer/assets/{vendor-motion-BLeNAEjH.js → vendor-motion-CD5Og8pC.js} +3 -3
- package/out/renderer/assets/{vendor-react-DltKc0Ts.js → vendor-react-bPTwWURR.js} +28 -12
- package/out/renderer/assets/vesper-BVtJs6jF.js +173 -0
- package/out/renderer/assets/vesper-BXSaHQeX.js +173 -0
- package/out/renderer/assets/vitesse-black-Bk4nGSr_.js +388 -0
- package/out/renderer/assets/vitesse-black-DjBh7jMr.js +388 -0
- package/out/renderer/assets/vitesse-dark-BSeRY0TR.js +388 -0
- package/out/renderer/assets/vitesse-dark-Czy_Ejt3.js +388 -0
- package/out/renderer/assets/vitesse-light-BpMpGmeY.js +388 -0
- package/out/renderer/assets/vitesse-light-Cv09MZGR.js +388 -0
- package/out/renderer/assets/worker-CswOd5_T.js +2367 -0
- package/out/renderer/index.html +8 -9
- package/package.json +13 -6
- package/out/main/chunks/transcript-sql-DbZ-a5wb.js +0 -43
- package/out/renderer/assets/index-DogoEzwx.js +0 -10868
- package/out/renderer/assets/vendor-shiki-ba8IDo5s.js +0 -459
- package/out/renderer/assets/worker-DNIQ0wG8.js +0 -12761
|
@@ -0,0 +1,2641 @@
|
|
|
1
|
+
import { e as acquireHighlighterType, r as releaseHighlighterType, H as HighlighterDisposedError, g as renderTokenLines } from "./worker-CswOd5_T.js";
|
|
2
|
+
function unwrapDefault(value) {
|
|
3
|
+
return value !== null && typeof value === "object" && "default" in value ? value.default : value;
|
|
4
|
+
}
|
|
5
|
+
var DuplicateThemeError = class extends Error {
|
|
6
|
+
constructor(name) {
|
|
7
|
+
super(`Theme "${name}" is already registered`);
|
|
8
|
+
this.name = "DuplicateThemeError";
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var UnregisteredThemeError = class extends Error {
|
|
12
|
+
constructor(name) {
|
|
13
|
+
super(`No loader registered for theme "${name}"`);
|
|
14
|
+
this.name = "UnregisteredThemeError";
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var UnresolvedThemeError = class extends Error {
|
|
18
|
+
constructor(name) {
|
|
19
|
+
super(`Theme "${name}" has not been resolved`);
|
|
20
|
+
this.name = "UnresolvedThemeError";
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function createThemeResolver(options = {}) {
|
|
24
|
+
const loaders = /* @__PURE__ */ new Map();
|
|
25
|
+
const resolved = /* @__PURE__ */ new Map();
|
|
26
|
+
const inflight = /* @__PURE__ */ new Map();
|
|
27
|
+
let cacheGeneration = 0;
|
|
28
|
+
function registerTheme(name, loader) {
|
|
29
|
+
if (loaders.has(name)) throw new DuplicateThemeError(name);
|
|
30
|
+
loaders.set(name, loader);
|
|
31
|
+
}
|
|
32
|
+
function registerThemeIfAbsent(name, loader) {
|
|
33
|
+
if (loaders.has(name)) return false;
|
|
34
|
+
loaders.set(name, loader);
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function hasRegisteredTheme(name) {
|
|
38
|
+
return loaders.has(name);
|
|
39
|
+
}
|
|
40
|
+
function resolveTheme(name) {
|
|
41
|
+
const cached = resolved.get(name);
|
|
42
|
+
if (cached !== void 0) return Promise.resolve(cached);
|
|
43
|
+
const existing = inflight.get(name);
|
|
44
|
+
if (existing !== void 0) return existing;
|
|
45
|
+
const loader = loaders.get(name);
|
|
46
|
+
if (loader === void 0 && options.fallbackLoader === void 0) return Promise.reject(new UnregisteredThemeError(name));
|
|
47
|
+
const generation = cacheGeneration;
|
|
48
|
+
const promise = Promise.resolve().then(() => loader !== void 0 ? loader() : options.fallbackLoader?.(name)).then(async (result) => {
|
|
49
|
+
if (result === void 0) throw new UnregisteredThemeError(name);
|
|
50
|
+
const loaded = unwrapDefault(result);
|
|
51
|
+
const theme = options.normalizeTheme === void 0 ? loaded : await options.normalizeTheme(loaded, name);
|
|
52
|
+
if (generation === cacheGeneration) resolved.set(name, theme);
|
|
53
|
+
if (inflight.get(name) === promise) inflight.delete(name);
|
|
54
|
+
return theme;
|
|
55
|
+
}).catch((err) => {
|
|
56
|
+
if (inflight.get(name) === promise) inflight.delete(name);
|
|
57
|
+
throw err;
|
|
58
|
+
});
|
|
59
|
+
inflight.set(name, promise);
|
|
60
|
+
return promise;
|
|
61
|
+
}
|
|
62
|
+
function resolveThemes(names) {
|
|
63
|
+
return Promise.all(names.map((name) => resolveTheme(name)));
|
|
64
|
+
}
|
|
65
|
+
function seedResolvedTheme(name, theme) {
|
|
66
|
+
resolved.set(name, theme);
|
|
67
|
+
}
|
|
68
|
+
function seedResolvedThemes(entries) {
|
|
69
|
+
for (const [name, theme] of entries) seedResolvedTheme(name, theme);
|
|
70
|
+
}
|
|
71
|
+
function getResolvedTheme(name) {
|
|
72
|
+
return resolved.get(name);
|
|
73
|
+
}
|
|
74
|
+
function getResolvedThemes(names) {
|
|
75
|
+
const themes = [];
|
|
76
|
+
for (const name of names) {
|
|
77
|
+
const theme = resolved.get(name);
|
|
78
|
+
if (theme === void 0) throw new UnresolvedThemeError(name);
|
|
79
|
+
themes.push(theme);
|
|
80
|
+
}
|
|
81
|
+
return themes;
|
|
82
|
+
}
|
|
83
|
+
function hasResolvedTheme(name) {
|
|
84
|
+
return resolved.has(name);
|
|
85
|
+
}
|
|
86
|
+
function hasResolvedThemes(names) {
|
|
87
|
+
for (const name of names) if (!resolved.has(name)) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
function getResolvedOrResolveTheme(name) {
|
|
91
|
+
const cached = resolved.get(name);
|
|
92
|
+
if (cached !== void 0) return cached;
|
|
93
|
+
return resolveTheme(name);
|
|
94
|
+
}
|
|
95
|
+
function clearResolvedThemes() {
|
|
96
|
+
cacheGeneration++;
|
|
97
|
+
resolved.clear();
|
|
98
|
+
inflight.clear();
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
clearResolvedThemes,
|
|
102
|
+
getResolvedOrResolveTheme,
|
|
103
|
+
getResolvedTheme,
|
|
104
|
+
getResolvedThemes,
|
|
105
|
+
hasRegisteredTheme,
|
|
106
|
+
hasResolvedTheme,
|
|
107
|
+
hasResolvedThemes,
|
|
108
|
+
registerTheme,
|
|
109
|
+
registerThemeIfAbsent,
|
|
110
|
+
resolveTheme,
|
|
111
|
+
resolveThemes,
|
|
112
|
+
seedResolvedTheme,
|
|
113
|
+
seedResolvedThemes
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const htmlVoidElements = [
|
|
117
|
+
"area",
|
|
118
|
+
"base",
|
|
119
|
+
"basefont",
|
|
120
|
+
"bgsound",
|
|
121
|
+
"br",
|
|
122
|
+
"col",
|
|
123
|
+
"command",
|
|
124
|
+
"embed",
|
|
125
|
+
"frame",
|
|
126
|
+
"hr",
|
|
127
|
+
"image",
|
|
128
|
+
"img",
|
|
129
|
+
"input",
|
|
130
|
+
"keygen",
|
|
131
|
+
"link",
|
|
132
|
+
"meta",
|
|
133
|
+
"param",
|
|
134
|
+
"source",
|
|
135
|
+
"track",
|
|
136
|
+
"wbr"
|
|
137
|
+
];
|
|
138
|
+
class Schema {
|
|
139
|
+
/**
|
|
140
|
+
* @param {SchemaType['property']} property
|
|
141
|
+
* Property.
|
|
142
|
+
* @param {SchemaType['normal']} normal
|
|
143
|
+
* Normal.
|
|
144
|
+
* @param {Space | undefined} [space]
|
|
145
|
+
* Space.
|
|
146
|
+
* @returns
|
|
147
|
+
* Schema.
|
|
148
|
+
*/
|
|
149
|
+
constructor(property, normal, space) {
|
|
150
|
+
this.normal = normal;
|
|
151
|
+
this.property = property;
|
|
152
|
+
if (space) {
|
|
153
|
+
this.space = space;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
Schema.prototype.normal = {};
|
|
158
|
+
Schema.prototype.property = {};
|
|
159
|
+
Schema.prototype.space = void 0;
|
|
160
|
+
function merge(definitions, space) {
|
|
161
|
+
const property = {};
|
|
162
|
+
const normal = {};
|
|
163
|
+
for (const definition of definitions) {
|
|
164
|
+
Object.assign(property, definition.property);
|
|
165
|
+
Object.assign(normal, definition.normal);
|
|
166
|
+
}
|
|
167
|
+
return new Schema(property, normal, space);
|
|
168
|
+
}
|
|
169
|
+
function normalize(value) {
|
|
170
|
+
return value.toLowerCase();
|
|
171
|
+
}
|
|
172
|
+
class Info {
|
|
173
|
+
/**
|
|
174
|
+
* @param {string} property
|
|
175
|
+
* Property.
|
|
176
|
+
* @param {string} attribute
|
|
177
|
+
* Attribute.
|
|
178
|
+
* @returns
|
|
179
|
+
* Info.
|
|
180
|
+
*/
|
|
181
|
+
constructor(property, attribute) {
|
|
182
|
+
this.attribute = attribute;
|
|
183
|
+
this.property = property;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
Info.prototype.attribute = "";
|
|
187
|
+
Info.prototype.booleanish = false;
|
|
188
|
+
Info.prototype.boolean = false;
|
|
189
|
+
Info.prototype.commaOrSpaceSeparated = false;
|
|
190
|
+
Info.prototype.commaSeparated = false;
|
|
191
|
+
Info.prototype.defined = false;
|
|
192
|
+
Info.prototype.mustUseProperty = false;
|
|
193
|
+
Info.prototype.number = false;
|
|
194
|
+
Info.prototype.overloadedBoolean = false;
|
|
195
|
+
Info.prototype.property = "";
|
|
196
|
+
Info.prototype.spaceSeparated = false;
|
|
197
|
+
Info.prototype.space = void 0;
|
|
198
|
+
let powers = 0;
|
|
199
|
+
const boolean = increment();
|
|
200
|
+
const booleanish = increment();
|
|
201
|
+
const overloadedBoolean = increment();
|
|
202
|
+
const number = increment();
|
|
203
|
+
const spaceSeparated = increment();
|
|
204
|
+
const commaSeparated = increment();
|
|
205
|
+
const commaOrSpaceSeparated = increment();
|
|
206
|
+
function increment() {
|
|
207
|
+
return 2 ** ++powers;
|
|
208
|
+
}
|
|
209
|
+
var types = /* @__PURE__ */ Object.freeze({
|
|
210
|
+
__proto__: null,
|
|
211
|
+
boolean,
|
|
212
|
+
booleanish,
|
|
213
|
+
commaOrSpaceSeparated,
|
|
214
|
+
commaSeparated,
|
|
215
|
+
number,
|
|
216
|
+
overloadedBoolean,
|
|
217
|
+
spaceSeparated
|
|
218
|
+
});
|
|
219
|
+
const checks = (
|
|
220
|
+
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
221
|
+
Object.keys(types)
|
|
222
|
+
);
|
|
223
|
+
class DefinedInfo extends Info {
|
|
224
|
+
/**
|
|
225
|
+
* @constructor
|
|
226
|
+
* @param {string} property
|
|
227
|
+
* Property.
|
|
228
|
+
* @param {string} attribute
|
|
229
|
+
* Attribute.
|
|
230
|
+
* @param {number | null | undefined} [mask]
|
|
231
|
+
* Mask.
|
|
232
|
+
* @param {Space | undefined} [space]
|
|
233
|
+
* Space.
|
|
234
|
+
* @returns
|
|
235
|
+
* Info.
|
|
236
|
+
*/
|
|
237
|
+
constructor(property, attribute, mask, space) {
|
|
238
|
+
let index = -1;
|
|
239
|
+
super(property, attribute);
|
|
240
|
+
mark(this, "space", space);
|
|
241
|
+
if (typeof mask === "number") {
|
|
242
|
+
while (++index < checks.length) {
|
|
243
|
+
const check = checks[index];
|
|
244
|
+
mark(this, checks[index], (mask & types[check]) === types[check]);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
DefinedInfo.prototype.defined = true;
|
|
250
|
+
function mark(values, key2, value) {
|
|
251
|
+
if (value) {
|
|
252
|
+
values[key2] = value;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function create(definition) {
|
|
256
|
+
const properties = {};
|
|
257
|
+
const normals = {};
|
|
258
|
+
for (const [property, value] of Object.entries(definition.properties)) {
|
|
259
|
+
const info = new DefinedInfo(
|
|
260
|
+
property,
|
|
261
|
+
definition.transform(definition.attributes || {}, property),
|
|
262
|
+
value,
|
|
263
|
+
definition.space
|
|
264
|
+
);
|
|
265
|
+
if (definition.mustUseProperty && definition.mustUseProperty.includes(property)) {
|
|
266
|
+
info.mustUseProperty = true;
|
|
267
|
+
}
|
|
268
|
+
properties[property] = info;
|
|
269
|
+
normals[normalize(property)] = property;
|
|
270
|
+
normals[normalize(info.attribute)] = property;
|
|
271
|
+
}
|
|
272
|
+
return new Schema(properties, normals, definition.space);
|
|
273
|
+
}
|
|
274
|
+
const aria = create({
|
|
275
|
+
properties: {
|
|
276
|
+
ariaActiveDescendant: null,
|
|
277
|
+
ariaAtomic: booleanish,
|
|
278
|
+
ariaAutoComplete: null,
|
|
279
|
+
ariaBusy: booleanish,
|
|
280
|
+
ariaChecked: booleanish,
|
|
281
|
+
ariaColCount: number,
|
|
282
|
+
ariaColIndex: number,
|
|
283
|
+
ariaColSpan: number,
|
|
284
|
+
ariaControls: spaceSeparated,
|
|
285
|
+
ariaCurrent: null,
|
|
286
|
+
ariaDescribedBy: spaceSeparated,
|
|
287
|
+
ariaDetails: null,
|
|
288
|
+
ariaDisabled: booleanish,
|
|
289
|
+
ariaDropEffect: spaceSeparated,
|
|
290
|
+
ariaErrorMessage: null,
|
|
291
|
+
ariaExpanded: booleanish,
|
|
292
|
+
ariaFlowTo: spaceSeparated,
|
|
293
|
+
ariaGrabbed: booleanish,
|
|
294
|
+
ariaHasPopup: null,
|
|
295
|
+
ariaHidden: booleanish,
|
|
296
|
+
ariaInvalid: null,
|
|
297
|
+
ariaKeyShortcuts: null,
|
|
298
|
+
ariaLabel: null,
|
|
299
|
+
ariaLabelledBy: spaceSeparated,
|
|
300
|
+
ariaLevel: number,
|
|
301
|
+
ariaLive: null,
|
|
302
|
+
ariaModal: booleanish,
|
|
303
|
+
ariaMultiLine: booleanish,
|
|
304
|
+
ariaMultiSelectable: booleanish,
|
|
305
|
+
ariaOrientation: null,
|
|
306
|
+
ariaOwns: spaceSeparated,
|
|
307
|
+
ariaPlaceholder: null,
|
|
308
|
+
ariaPosInSet: number,
|
|
309
|
+
ariaPressed: booleanish,
|
|
310
|
+
ariaReadOnly: booleanish,
|
|
311
|
+
ariaRelevant: null,
|
|
312
|
+
ariaRequired: booleanish,
|
|
313
|
+
ariaRoleDescription: spaceSeparated,
|
|
314
|
+
ariaRowCount: number,
|
|
315
|
+
ariaRowIndex: number,
|
|
316
|
+
ariaRowSpan: number,
|
|
317
|
+
ariaSelected: booleanish,
|
|
318
|
+
ariaSetSize: number,
|
|
319
|
+
ariaSort: null,
|
|
320
|
+
ariaValueMax: number,
|
|
321
|
+
ariaValueMin: number,
|
|
322
|
+
ariaValueNow: number,
|
|
323
|
+
ariaValueText: null,
|
|
324
|
+
role: null
|
|
325
|
+
},
|
|
326
|
+
transform(_, property) {
|
|
327
|
+
return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
function caseSensitiveTransform(attributes, attribute) {
|
|
331
|
+
return attribute in attributes ? attributes[attribute] : attribute;
|
|
332
|
+
}
|
|
333
|
+
function caseInsensitiveTransform(attributes, property) {
|
|
334
|
+
return caseSensitiveTransform(attributes, property.toLowerCase());
|
|
335
|
+
}
|
|
336
|
+
const html$3 = create({
|
|
337
|
+
attributes: {
|
|
338
|
+
acceptcharset: "accept-charset",
|
|
339
|
+
classname: "class",
|
|
340
|
+
htmlfor: "for",
|
|
341
|
+
httpequiv: "http-equiv"
|
|
342
|
+
},
|
|
343
|
+
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
|
344
|
+
properties: {
|
|
345
|
+
// Standard Properties.
|
|
346
|
+
abbr: null,
|
|
347
|
+
accept: commaSeparated,
|
|
348
|
+
acceptCharset: spaceSeparated,
|
|
349
|
+
accessKey: spaceSeparated,
|
|
350
|
+
action: null,
|
|
351
|
+
allow: null,
|
|
352
|
+
allowFullScreen: boolean,
|
|
353
|
+
allowPaymentRequest: boolean,
|
|
354
|
+
allowUserMedia: boolean,
|
|
355
|
+
alpha: boolean,
|
|
356
|
+
alt: null,
|
|
357
|
+
as: null,
|
|
358
|
+
async: boolean,
|
|
359
|
+
autoCapitalize: null,
|
|
360
|
+
autoComplete: spaceSeparated,
|
|
361
|
+
autoFocus: boolean,
|
|
362
|
+
autoPlay: boolean,
|
|
363
|
+
blocking: spaceSeparated,
|
|
364
|
+
capture: null,
|
|
365
|
+
charSet: null,
|
|
366
|
+
checked: boolean,
|
|
367
|
+
cite: null,
|
|
368
|
+
className: spaceSeparated,
|
|
369
|
+
closedBy: null,
|
|
370
|
+
colorSpace: null,
|
|
371
|
+
cols: number,
|
|
372
|
+
colSpan: number,
|
|
373
|
+
command: null,
|
|
374
|
+
commandFor: null,
|
|
375
|
+
content: null,
|
|
376
|
+
contentEditable: booleanish,
|
|
377
|
+
controls: boolean,
|
|
378
|
+
controlsList: spaceSeparated,
|
|
379
|
+
coords: number | commaSeparated,
|
|
380
|
+
crossOrigin: null,
|
|
381
|
+
data: null,
|
|
382
|
+
dateTime: null,
|
|
383
|
+
decoding: null,
|
|
384
|
+
default: boolean,
|
|
385
|
+
defer: boolean,
|
|
386
|
+
dir: null,
|
|
387
|
+
dirName: null,
|
|
388
|
+
disabled: boolean,
|
|
389
|
+
download: overloadedBoolean,
|
|
390
|
+
draggable: booleanish,
|
|
391
|
+
encType: null,
|
|
392
|
+
enterKeyHint: null,
|
|
393
|
+
fetchPriority: null,
|
|
394
|
+
form: null,
|
|
395
|
+
formAction: null,
|
|
396
|
+
formEncType: null,
|
|
397
|
+
formMethod: null,
|
|
398
|
+
formNoValidate: boolean,
|
|
399
|
+
formTarget: null,
|
|
400
|
+
headers: spaceSeparated,
|
|
401
|
+
height: number,
|
|
402
|
+
hidden: overloadedBoolean,
|
|
403
|
+
high: number,
|
|
404
|
+
href: null,
|
|
405
|
+
hrefLang: null,
|
|
406
|
+
htmlFor: spaceSeparated,
|
|
407
|
+
httpEquiv: spaceSeparated,
|
|
408
|
+
id: null,
|
|
409
|
+
imageSizes: null,
|
|
410
|
+
imageSrcSet: null,
|
|
411
|
+
inert: boolean,
|
|
412
|
+
inputMode: null,
|
|
413
|
+
integrity: null,
|
|
414
|
+
is: null,
|
|
415
|
+
isMap: boolean,
|
|
416
|
+
itemId: null,
|
|
417
|
+
itemProp: spaceSeparated,
|
|
418
|
+
itemRef: spaceSeparated,
|
|
419
|
+
itemScope: boolean,
|
|
420
|
+
itemType: spaceSeparated,
|
|
421
|
+
kind: null,
|
|
422
|
+
label: null,
|
|
423
|
+
lang: null,
|
|
424
|
+
language: null,
|
|
425
|
+
list: null,
|
|
426
|
+
loading: null,
|
|
427
|
+
loop: boolean,
|
|
428
|
+
low: number,
|
|
429
|
+
manifest: null,
|
|
430
|
+
max: null,
|
|
431
|
+
maxLength: number,
|
|
432
|
+
media: null,
|
|
433
|
+
method: null,
|
|
434
|
+
min: null,
|
|
435
|
+
minLength: number,
|
|
436
|
+
multiple: boolean,
|
|
437
|
+
muted: boolean,
|
|
438
|
+
name: null,
|
|
439
|
+
nonce: null,
|
|
440
|
+
noModule: boolean,
|
|
441
|
+
noValidate: boolean,
|
|
442
|
+
onAbort: null,
|
|
443
|
+
onAfterPrint: null,
|
|
444
|
+
onAuxClick: null,
|
|
445
|
+
onBeforeMatch: null,
|
|
446
|
+
onBeforePrint: null,
|
|
447
|
+
onBeforeToggle: null,
|
|
448
|
+
onBeforeUnload: null,
|
|
449
|
+
onBlur: null,
|
|
450
|
+
onCancel: null,
|
|
451
|
+
onCanPlay: null,
|
|
452
|
+
onCanPlayThrough: null,
|
|
453
|
+
onChange: null,
|
|
454
|
+
onClick: null,
|
|
455
|
+
onClose: null,
|
|
456
|
+
onContextLost: null,
|
|
457
|
+
onContextMenu: null,
|
|
458
|
+
onContextRestored: null,
|
|
459
|
+
onCopy: null,
|
|
460
|
+
onCueChange: null,
|
|
461
|
+
onCut: null,
|
|
462
|
+
onDblClick: null,
|
|
463
|
+
onDrag: null,
|
|
464
|
+
onDragEnd: null,
|
|
465
|
+
onDragEnter: null,
|
|
466
|
+
onDragExit: null,
|
|
467
|
+
onDragLeave: null,
|
|
468
|
+
onDragOver: null,
|
|
469
|
+
onDragStart: null,
|
|
470
|
+
onDrop: null,
|
|
471
|
+
onDurationChange: null,
|
|
472
|
+
onEmptied: null,
|
|
473
|
+
onEnded: null,
|
|
474
|
+
onError: null,
|
|
475
|
+
onFocus: null,
|
|
476
|
+
onFormData: null,
|
|
477
|
+
onHashChange: null,
|
|
478
|
+
onInput: null,
|
|
479
|
+
onInvalid: null,
|
|
480
|
+
onKeyDown: null,
|
|
481
|
+
onKeyPress: null,
|
|
482
|
+
onKeyUp: null,
|
|
483
|
+
onLanguageChange: null,
|
|
484
|
+
onLoad: null,
|
|
485
|
+
onLoadedData: null,
|
|
486
|
+
onLoadedMetadata: null,
|
|
487
|
+
onLoadEnd: null,
|
|
488
|
+
onLoadStart: null,
|
|
489
|
+
onMessage: null,
|
|
490
|
+
onMessageError: null,
|
|
491
|
+
onMouseDown: null,
|
|
492
|
+
onMouseEnter: null,
|
|
493
|
+
onMouseLeave: null,
|
|
494
|
+
onMouseMove: null,
|
|
495
|
+
onMouseOut: null,
|
|
496
|
+
onMouseOver: null,
|
|
497
|
+
onMouseUp: null,
|
|
498
|
+
onOffline: null,
|
|
499
|
+
onOnline: null,
|
|
500
|
+
onPageHide: null,
|
|
501
|
+
onPageShow: null,
|
|
502
|
+
onPaste: null,
|
|
503
|
+
onPause: null,
|
|
504
|
+
onPlay: null,
|
|
505
|
+
onPlaying: null,
|
|
506
|
+
onPopState: null,
|
|
507
|
+
onProgress: null,
|
|
508
|
+
onRateChange: null,
|
|
509
|
+
onRejectionHandled: null,
|
|
510
|
+
onReset: null,
|
|
511
|
+
onResize: null,
|
|
512
|
+
onScroll: null,
|
|
513
|
+
onScrollEnd: null,
|
|
514
|
+
onSecurityPolicyViolation: null,
|
|
515
|
+
onSeeked: null,
|
|
516
|
+
onSeeking: null,
|
|
517
|
+
onSelect: null,
|
|
518
|
+
onSlotChange: null,
|
|
519
|
+
onStalled: null,
|
|
520
|
+
onStorage: null,
|
|
521
|
+
onSubmit: null,
|
|
522
|
+
onSuspend: null,
|
|
523
|
+
onTimeUpdate: null,
|
|
524
|
+
onToggle: null,
|
|
525
|
+
onUnhandledRejection: null,
|
|
526
|
+
onUnload: null,
|
|
527
|
+
onVolumeChange: null,
|
|
528
|
+
onWaiting: null,
|
|
529
|
+
onWheel: null,
|
|
530
|
+
open: boolean,
|
|
531
|
+
optimum: number,
|
|
532
|
+
pattern: null,
|
|
533
|
+
ping: spaceSeparated,
|
|
534
|
+
placeholder: null,
|
|
535
|
+
playsInline: boolean,
|
|
536
|
+
popover: null,
|
|
537
|
+
popoverTarget: null,
|
|
538
|
+
popoverTargetAction: null,
|
|
539
|
+
poster: null,
|
|
540
|
+
preload: null,
|
|
541
|
+
readOnly: boolean,
|
|
542
|
+
referrerPolicy: null,
|
|
543
|
+
rel: spaceSeparated,
|
|
544
|
+
required: boolean,
|
|
545
|
+
reversed: boolean,
|
|
546
|
+
rows: number,
|
|
547
|
+
rowSpan: number,
|
|
548
|
+
sandbox: spaceSeparated,
|
|
549
|
+
scope: null,
|
|
550
|
+
scoped: boolean,
|
|
551
|
+
seamless: boolean,
|
|
552
|
+
selected: boolean,
|
|
553
|
+
shadowRootClonable: boolean,
|
|
554
|
+
shadowRootCustomElementRegistry: boolean,
|
|
555
|
+
shadowRootDelegatesFocus: boolean,
|
|
556
|
+
shadowRootMode: null,
|
|
557
|
+
shadowRootSerializable: boolean,
|
|
558
|
+
shape: null,
|
|
559
|
+
size: number,
|
|
560
|
+
sizes: null,
|
|
561
|
+
slot: null,
|
|
562
|
+
span: number,
|
|
563
|
+
spellCheck: booleanish,
|
|
564
|
+
src: null,
|
|
565
|
+
srcDoc: null,
|
|
566
|
+
srcLang: null,
|
|
567
|
+
srcSet: null,
|
|
568
|
+
start: number,
|
|
569
|
+
step: null,
|
|
570
|
+
style: null,
|
|
571
|
+
tabIndex: number,
|
|
572
|
+
target: null,
|
|
573
|
+
title: null,
|
|
574
|
+
translate: null,
|
|
575
|
+
type: null,
|
|
576
|
+
typeMustMatch: boolean,
|
|
577
|
+
useMap: null,
|
|
578
|
+
value: booleanish,
|
|
579
|
+
width: number,
|
|
580
|
+
wrap: null,
|
|
581
|
+
writingSuggestions: null,
|
|
582
|
+
// Legacy.
|
|
583
|
+
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
|
584
|
+
align: null,
|
|
585
|
+
// Several. Use CSS `text-align` instead,
|
|
586
|
+
aLink: null,
|
|
587
|
+
// `<body>`. Use CSS `a:active {color}` instead
|
|
588
|
+
archive: spaceSeparated,
|
|
589
|
+
// `<object>`. List of URIs to archives
|
|
590
|
+
axis: null,
|
|
591
|
+
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
592
|
+
background: null,
|
|
593
|
+
// `<body>`. Use CSS `background-image` instead
|
|
594
|
+
bgColor: null,
|
|
595
|
+
// `<body>` and table elements. Use CSS `background-color` instead
|
|
596
|
+
border: number,
|
|
597
|
+
// `<table>`. Use CSS `border-width` instead,
|
|
598
|
+
borderColor: null,
|
|
599
|
+
// `<table>`. Use CSS `border-color` instead,
|
|
600
|
+
bottomMargin: number,
|
|
601
|
+
// `<body>`
|
|
602
|
+
cellPadding: null,
|
|
603
|
+
// `<table>`
|
|
604
|
+
cellSpacing: null,
|
|
605
|
+
// `<table>`
|
|
606
|
+
char: null,
|
|
607
|
+
// Several table elements. When `align=char`, sets the character to align on
|
|
608
|
+
charOff: null,
|
|
609
|
+
// Several table elements. When `char`, offsets the alignment
|
|
610
|
+
classId: null,
|
|
611
|
+
// `<object>`
|
|
612
|
+
clear: null,
|
|
613
|
+
// `<br>`. Use CSS `clear` instead
|
|
614
|
+
code: null,
|
|
615
|
+
// `<object>`
|
|
616
|
+
codeBase: null,
|
|
617
|
+
// `<object>`
|
|
618
|
+
codeType: null,
|
|
619
|
+
// `<object>`
|
|
620
|
+
color: null,
|
|
621
|
+
// `<font>` and `<hr>`. Use CSS instead
|
|
622
|
+
compact: boolean,
|
|
623
|
+
// Lists. Use CSS to reduce space between items instead
|
|
624
|
+
declare: boolean,
|
|
625
|
+
// `<object>`
|
|
626
|
+
event: null,
|
|
627
|
+
// `<script>`
|
|
628
|
+
face: null,
|
|
629
|
+
// `<font>`. Use CSS instead
|
|
630
|
+
frame: null,
|
|
631
|
+
// `<table>`
|
|
632
|
+
frameBorder: null,
|
|
633
|
+
// `<iframe>`. Use CSS `border` instead
|
|
634
|
+
hSpace: number,
|
|
635
|
+
// `<img>` and `<object>`
|
|
636
|
+
leftMargin: number,
|
|
637
|
+
// `<body>`
|
|
638
|
+
link: null,
|
|
639
|
+
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
640
|
+
longDesc: null,
|
|
641
|
+
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
642
|
+
lowSrc: null,
|
|
643
|
+
// `<img>`. Use a `<picture>`
|
|
644
|
+
marginHeight: number,
|
|
645
|
+
// `<body>`
|
|
646
|
+
marginWidth: number,
|
|
647
|
+
// `<body>`
|
|
648
|
+
noResize: boolean,
|
|
649
|
+
// `<frame>`
|
|
650
|
+
noHref: boolean,
|
|
651
|
+
// `<area>`. Use no href instead of an explicit `nohref`
|
|
652
|
+
noShade: boolean,
|
|
653
|
+
// `<hr>`. Use background-color and height instead of borders
|
|
654
|
+
noWrap: boolean,
|
|
655
|
+
// `<td>` and `<th>`
|
|
656
|
+
object: null,
|
|
657
|
+
// `<applet>`
|
|
658
|
+
profile: null,
|
|
659
|
+
// `<head>`
|
|
660
|
+
prompt: null,
|
|
661
|
+
// `<isindex>`
|
|
662
|
+
rev: null,
|
|
663
|
+
// `<link>`
|
|
664
|
+
rightMargin: number,
|
|
665
|
+
// `<body>`
|
|
666
|
+
rules: null,
|
|
667
|
+
// `<table>`
|
|
668
|
+
scheme: null,
|
|
669
|
+
// `<meta>`
|
|
670
|
+
scrolling: booleanish,
|
|
671
|
+
// `<frame>`. Use overflow in the child context
|
|
672
|
+
standby: null,
|
|
673
|
+
// `<object>`
|
|
674
|
+
summary: null,
|
|
675
|
+
// `<table>`
|
|
676
|
+
text: null,
|
|
677
|
+
// `<body>`. Use CSS `color` instead
|
|
678
|
+
topMargin: number,
|
|
679
|
+
// `<body>`
|
|
680
|
+
valueType: null,
|
|
681
|
+
// `<param>`
|
|
682
|
+
version: null,
|
|
683
|
+
// `<html>`. Use a doctype.
|
|
684
|
+
vAlign: null,
|
|
685
|
+
// Several. Use CSS `vertical-align` instead
|
|
686
|
+
vLink: null,
|
|
687
|
+
// `<body>`. Use CSS `a:visited {color}` instead
|
|
688
|
+
vSpace: number,
|
|
689
|
+
// `<img>` and `<object>`
|
|
690
|
+
// Non-standard Properties.
|
|
691
|
+
allowTransparency: null,
|
|
692
|
+
autoCorrect: null,
|
|
693
|
+
autoSave: null,
|
|
694
|
+
credentialless: boolean,
|
|
695
|
+
disablePictureInPicture: boolean,
|
|
696
|
+
disableRemotePlayback: boolean,
|
|
697
|
+
exportParts: commaSeparated,
|
|
698
|
+
part: spaceSeparated,
|
|
699
|
+
prefix: null,
|
|
700
|
+
property: null,
|
|
701
|
+
results: number,
|
|
702
|
+
security: null,
|
|
703
|
+
unselectable: null
|
|
704
|
+
},
|
|
705
|
+
space: "html",
|
|
706
|
+
transform: caseInsensitiveTransform
|
|
707
|
+
});
|
|
708
|
+
const svg$1 = create({
|
|
709
|
+
attributes: {
|
|
710
|
+
accentHeight: "accent-height",
|
|
711
|
+
alignmentBaseline: "alignment-baseline",
|
|
712
|
+
arabicForm: "arabic-form",
|
|
713
|
+
baselineShift: "baseline-shift",
|
|
714
|
+
capHeight: "cap-height",
|
|
715
|
+
className: "class",
|
|
716
|
+
clipPath: "clip-path",
|
|
717
|
+
clipRule: "clip-rule",
|
|
718
|
+
colorInterpolation: "color-interpolation",
|
|
719
|
+
colorInterpolationFilters: "color-interpolation-filters",
|
|
720
|
+
colorProfile: "color-profile",
|
|
721
|
+
colorRendering: "color-rendering",
|
|
722
|
+
crossOrigin: "crossorigin",
|
|
723
|
+
dataType: "datatype",
|
|
724
|
+
dominantBaseline: "dominant-baseline",
|
|
725
|
+
enableBackground: "enable-background",
|
|
726
|
+
fillOpacity: "fill-opacity",
|
|
727
|
+
fillRule: "fill-rule",
|
|
728
|
+
floodColor: "flood-color",
|
|
729
|
+
floodOpacity: "flood-opacity",
|
|
730
|
+
fontFamily: "font-family",
|
|
731
|
+
fontSize: "font-size",
|
|
732
|
+
fontSizeAdjust: "font-size-adjust",
|
|
733
|
+
fontStretch: "font-stretch",
|
|
734
|
+
fontStyle: "font-style",
|
|
735
|
+
fontVariant: "font-variant",
|
|
736
|
+
fontWeight: "font-weight",
|
|
737
|
+
glyphName: "glyph-name",
|
|
738
|
+
glyphOrientationHorizontal: "glyph-orientation-horizontal",
|
|
739
|
+
glyphOrientationVertical: "glyph-orientation-vertical",
|
|
740
|
+
hrefLang: "hreflang",
|
|
741
|
+
horizAdvX: "horiz-adv-x",
|
|
742
|
+
horizOriginX: "horiz-origin-x",
|
|
743
|
+
horizOriginY: "horiz-origin-y",
|
|
744
|
+
imageRendering: "image-rendering",
|
|
745
|
+
letterSpacing: "letter-spacing",
|
|
746
|
+
lightingColor: "lighting-color",
|
|
747
|
+
markerEnd: "marker-end",
|
|
748
|
+
markerMid: "marker-mid",
|
|
749
|
+
markerStart: "marker-start",
|
|
750
|
+
maskType: "mask-type",
|
|
751
|
+
navDown: "nav-down",
|
|
752
|
+
navDownLeft: "nav-down-left",
|
|
753
|
+
navDownRight: "nav-down-right",
|
|
754
|
+
navLeft: "nav-left",
|
|
755
|
+
navNext: "nav-next",
|
|
756
|
+
navPrev: "nav-prev",
|
|
757
|
+
navRight: "nav-right",
|
|
758
|
+
navUp: "nav-up",
|
|
759
|
+
navUpLeft: "nav-up-left",
|
|
760
|
+
navUpRight: "nav-up-right",
|
|
761
|
+
onAbort: "onabort",
|
|
762
|
+
onActivate: "onactivate",
|
|
763
|
+
onAfterPrint: "onafterprint",
|
|
764
|
+
onBeforePrint: "onbeforeprint",
|
|
765
|
+
onBegin: "onbegin",
|
|
766
|
+
onCancel: "oncancel",
|
|
767
|
+
onCanPlay: "oncanplay",
|
|
768
|
+
onCanPlayThrough: "oncanplaythrough",
|
|
769
|
+
onChange: "onchange",
|
|
770
|
+
onClick: "onclick",
|
|
771
|
+
onClose: "onclose",
|
|
772
|
+
onCopy: "oncopy",
|
|
773
|
+
onCueChange: "oncuechange",
|
|
774
|
+
onCut: "oncut",
|
|
775
|
+
onDblClick: "ondblclick",
|
|
776
|
+
onDrag: "ondrag",
|
|
777
|
+
onDragEnd: "ondragend",
|
|
778
|
+
onDragEnter: "ondragenter",
|
|
779
|
+
onDragExit: "ondragexit",
|
|
780
|
+
onDragLeave: "ondragleave",
|
|
781
|
+
onDragOver: "ondragover",
|
|
782
|
+
onDragStart: "ondragstart",
|
|
783
|
+
onDrop: "ondrop",
|
|
784
|
+
onDurationChange: "ondurationchange",
|
|
785
|
+
onEmptied: "onemptied",
|
|
786
|
+
onEnd: "onend",
|
|
787
|
+
onEnded: "onended",
|
|
788
|
+
onError: "onerror",
|
|
789
|
+
onFocus: "onfocus",
|
|
790
|
+
onFocusIn: "onfocusin",
|
|
791
|
+
onFocusOut: "onfocusout",
|
|
792
|
+
onHashChange: "onhashchange",
|
|
793
|
+
onInput: "oninput",
|
|
794
|
+
onInvalid: "oninvalid",
|
|
795
|
+
onKeyDown: "onkeydown",
|
|
796
|
+
onKeyPress: "onkeypress",
|
|
797
|
+
onKeyUp: "onkeyup",
|
|
798
|
+
onLoad: "onload",
|
|
799
|
+
onLoadedData: "onloadeddata",
|
|
800
|
+
onLoadedMetadata: "onloadedmetadata",
|
|
801
|
+
onLoadStart: "onloadstart",
|
|
802
|
+
onMessage: "onmessage",
|
|
803
|
+
onMouseDown: "onmousedown",
|
|
804
|
+
onMouseEnter: "onmouseenter",
|
|
805
|
+
onMouseLeave: "onmouseleave",
|
|
806
|
+
onMouseMove: "onmousemove",
|
|
807
|
+
onMouseOut: "onmouseout",
|
|
808
|
+
onMouseOver: "onmouseover",
|
|
809
|
+
onMouseUp: "onmouseup",
|
|
810
|
+
onMouseWheel: "onmousewheel",
|
|
811
|
+
onOffline: "onoffline",
|
|
812
|
+
onOnline: "ononline",
|
|
813
|
+
onPageHide: "onpagehide",
|
|
814
|
+
onPageShow: "onpageshow",
|
|
815
|
+
onPaste: "onpaste",
|
|
816
|
+
onPause: "onpause",
|
|
817
|
+
onPlay: "onplay",
|
|
818
|
+
onPlaying: "onplaying",
|
|
819
|
+
onPopState: "onpopstate",
|
|
820
|
+
onProgress: "onprogress",
|
|
821
|
+
onRateChange: "onratechange",
|
|
822
|
+
onRepeat: "onrepeat",
|
|
823
|
+
onReset: "onreset",
|
|
824
|
+
onResize: "onresize",
|
|
825
|
+
onScroll: "onscroll",
|
|
826
|
+
onSeeked: "onseeked",
|
|
827
|
+
onSeeking: "onseeking",
|
|
828
|
+
onSelect: "onselect",
|
|
829
|
+
onShow: "onshow",
|
|
830
|
+
onStalled: "onstalled",
|
|
831
|
+
onStorage: "onstorage",
|
|
832
|
+
onSubmit: "onsubmit",
|
|
833
|
+
onSuspend: "onsuspend",
|
|
834
|
+
onTimeUpdate: "ontimeupdate",
|
|
835
|
+
onToggle: "ontoggle",
|
|
836
|
+
onUnload: "onunload",
|
|
837
|
+
onVolumeChange: "onvolumechange",
|
|
838
|
+
onWaiting: "onwaiting",
|
|
839
|
+
onZoom: "onzoom",
|
|
840
|
+
overlinePosition: "overline-position",
|
|
841
|
+
overlineThickness: "overline-thickness",
|
|
842
|
+
paintOrder: "paint-order",
|
|
843
|
+
panose1: "panose-1",
|
|
844
|
+
pointerEvents: "pointer-events",
|
|
845
|
+
referrerPolicy: "referrerpolicy",
|
|
846
|
+
renderingIntent: "rendering-intent",
|
|
847
|
+
shapeRendering: "shape-rendering",
|
|
848
|
+
stopColor: "stop-color",
|
|
849
|
+
stopOpacity: "stop-opacity",
|
|
850
|
+
strikethroughPosition: "strikethrough-position",
|
|
851
|
+
strikethroughThickness: "strikethrough-thickness",
|
|
852
|
+
strokeDashArray: "stroke-dasharray",
|
|
853
|
+
strokeDashOffset: "stroke-dashoffset",
|
|
854
|
+
strokeLineCap: "stroke-linecap",
|
|
855
|
+
strokeLineJoin: "stroke-linejoin",
|
|
856
|
+
strokeMiterLimit: "stroke-miterlimit",
|
|
857
|
+
strokeOpacity: "stroke-opacity",
|
|
858
|
+
strokeWidth: "stroke-width",
|
|
859
|
+
tabIndex: "tabindex",
|
|
860
|
+
textAnchor: "text-anchor",
|
|
861
|
+
textDecoration: "text-decoration",
|
|
862
|
+
textRendering: "text-rendering",
|
|
863
|
+
transformOrigin: "transform-origin",
|
|
864
|
+
typeOf: "typeof",
|
|
865
|
+
underlinePosition: "underline-position",
|
|
866
|
+
underlineThickness: "underline-thickness",
|
|
867
|
+
unicodeBidi: "unicode-bidi",
|
|
868
|
+
unicodeRange: "unicode-range",
|
|
869
|
+
unitsPerEm: "units-per-em",
|
|
870
|
+
vAlphabetic: "v-alphabetic",
|
|
871
|
+
vHanging: "v-hanging",
|
|
872
|
+
vIdeographic: "v-ideographic",
|
|
873
|
+
vMathematical: "v-mathematical",
|
|
874
|
+
vectorEffect: "vector-effect",
|
|
875
|
+
vertAdvY: "vert-adv-y",
|
|
876
|
+
vertOriginX: "vert-origin-x",
|
|
877
|
+
vertOriginY: "vert-origin-y",
|
|
878
|
+
wordSpacing: "word-spacing",
|
|
879
|
+
writingMode: "writing-mode",
|
|
880
|
+
xHeight: "x-height",
|
|
881
|
+
// These were camelcased in Tiny. Now lowercased in SVG 2
|
|
882
|
+
playbackOrder: "playbackorder",
|
|
883
|
+
timelineBegin: "timelinebegin"
|
|
884
|
+
},
|
|
885
|
+
properties: {
|
|
886
|
+
about: commaOrSpaceSeparated,
|
|
887
|
+
accentHeight: number,
|
|
888
|
+
accumulate: null,
|
|
889
|
+
additive: null,
|
|
890
|
+
alignmentBaseline: null,
|
|
891
|
+
alphabetic: number,
|
|
892
|
+
amplitude: number,
|
|
893
|
+
arabicForm: null,
|
|
894
|
+
ascent: number,
|
|
895
|
+
attributeName: null,
|
|
896
|
+
attributeType: null,
|
|
897
|
+
azimuth: number,
|
|
898
|
+
bandwidth: null,
|
|
899
|
+
baselineShift: null,
|
|
900
|
+
baseFrequency: null,
|
|
901
|
+
baseProfile: null,
|
|
902
|
+
bbox: null,
|
|
903
|
+
begin: null,
|
|
904
|
+
bias: number,
|
|
905
|
+
by: null,
|
|
906
|
+
calcMode: null,
|
|
907
|
+
capHeight: number,
|
|
908
|
+
className: spaceSeparated,
|
|
909
|
+
clip: null,
|
|
910
|
+
clipPath: null,
|
|
911
|
+
clipPathUnits: null,
|
|
912
|
+
clipRule: null,
|
|
913
|
+
color: null,
|
|
914
|
+
colorInterpolation: null,
|
|
915
|
+
colorInterpolationFilters: null,
|
|
916
|
+
colorProfile: null,
|
|
917
|
+
colorRendering: null,
|
|
918
|
+
content: null,
|
|
919
|
+
contentScriptType: null,
|
|
920
|
+
contentStyleType: null,
|
|
921
|
+
crossOrigin: null,
|
|
922
|
+
cursor: null,
|
|
923
|
+
cx: null,
|
|
924
|
+
cy: null,
|
|
925
|
+
d: null,
|
|
926
|
+
dataType: null,
|
|
927
|
+
defaultAction: null,
|
|
928
|
+
descent: number,
|
|
929
|
+
diffuseConstant: number,
|
|
930
|
+
direction: null,
|
|
931
|
+
display: null,
|
|
932
|
+
dur: null,
|
|
933
|
+
divisor: number,
|
|
934
|
+
dominantBaseline: null,
|
|
935
|
+
download: boolean,
|
|
936
|
+
dx: null,
|
|
937
|
+
dy: null,
|
|
938
|
+
edgeMode: null,
|
|
939
|
+
editable: null,
|
|
940
|
+
elevation: number,
|
|
941
|
+
enableBackground: null,
|
|
942
|
+
end: null,
|
|
943
|
+
event: null,
|
|
944
|
+
exponent: number,
|
|
945
|
+
externalResourcesRequired: null,
|
|
946
|
+
fill: null,
|
|
947
|
+
fillOpacity: number,
|
|
948
|
+
fillRule: null,
|
|
949
|
+
filter: null,
|
|
950
|
+
filterRes: null,
|
|
951
|
+
filterUnits: null,
|
|
952
|
+
floodColor: null,
|
|
953
|
+
floodOpacity: null,
|
|
954
|
+
focusable: null,
|
|
955
|
+
focusHighlight: null,
|
|
956
|
+
fontFamily: null,
|
|
957
|
+
fontSize: null,
|
|
958
|
+
fontSizeAdjust: null,
|
|
959
|
+
fontStretch: null,
|
|
960
|
+
fontStyle: null,
|
|
961
|
+
fontVariant: null,
|
|
962
|
+
fontWeight: null,
|
|
963
|
+
format: null,
|
|
964
|
+
fr: null,
|
|
965
|
+
from: null,
|
|
966
|
+
fx: null,
|
|
967
|
+
fy: null,
|
|
968
|
+
g1: commaSeparated,
|
|
969
|
+
g2: commaSeparated,
|
|
970
|
+
glyphName: commaSeparated,
|
|
971
|
+
glyphOrientationHorizontal: null,
|
|
972
|
+
glyphOrientationVertical: null,
|
|
973
|
+
glyphRef: null,
|
|
974
|
+
gradientTransform: null,
|
|
975
|
+
gradientUnits: null,
|
|
976
|
+
handler: null,
|
|
977
|
+
hanging: number,
|
|
978
|
+
hatchContentUnits: null,
|
|
979
|
+
hatchUnits: null,
|
|
980
|
+
height: null,
|
|
981
|
+
href: null,
|
|
982
|
+
hrefLang: null,
|
|
983
|
+
horizAdvX: number,
|
|
984
|
+
horizOriginX: number,
|
|
985
|
+
horizOriginY: number,
|
|
986
|
+
id: null,
|
|
987
|
+
ideographic: number,
|
|
988
|
+
imageRendering: null,
|
|
989
|
+
initialVisibility: null,
|
|
990
|
+
in: null,
|
|
991
|
+
in2: null,
|
|
992
|
+
intercept: number,
|
|
993
|
+
k: number,
|
|
994
|
+
k1: number,
|
|
995
|
+
k2: number,
|
|
996
|
+
k3: number,
|
|
997
|
+
k4: number,
|
|
998
|
+
kernelMatrix: commaOrSpaceSeparated,
|
|
999
|
+
kernelUnitLength: null,
|
|
1000
|
+
keyPoints: null,
|
|
1001
|
+
// SEMI_COLON_SEPARATED
|
|
1002
|
+
keySplines: null,
|
|
1003
|
+
// SEMI_COLON_SEPARATED
|
|
1004
|
+
keyTimes: null,
|
|
1005
|
+
// SEMI_COLON_SEPARATED
|
|
1006
|
+
kerning: null,
|
|
1007
|
+
lang: null,
|
|
1008
|
+
lengthAdjust: null,
|
|
1009
|
+
letterSpacing: null,
|
|
1010
|
+
lightingColor: null,
|
|
1011
|
+
limitingConeAngle: number,
|
|
1012
|
+
local: null,
|
|
1013
|
+
markerEnd: null,
|
|
1014
|
+
markerMid: null,
|
|
1015
|
+
markerStart: null,
|
|
1016
|
+
markerHeight: null,
|
|
1017
|
+
markerUnits: null,
|
|
1018
|
+
markerWidth: null,
|
|
1019
|
+
mask: null,
|
|
1020
|
+
maskContentUnits: null,
|
|
1021
|
+
maskType: null,
|
|
1022
|
+
maskUnits: null,
|
|
1023
|
+
mathematical: null,
|
|
1024
|
+
max: null,
|
|
1025
|
+
media: null,
|
|
1026
|
+
mediaCharacterEncoding: null,
|
|
1027
|
+
mediaContentEncodings: null,
|
|
1028
|
+
mediaSize: number,
|
|
1029
|
+
mediaTime: null,
|
|
1030
|
+
method: null,
|
|
1031
|
+
min: null,
|
|
1032
|
+
mode: null,
|
|
1033
|
+
name: null,
|
|
1034
|
+
navDown: null,
|
|
1035
|
+
navDownLeft: null,
|
|
1036
|
+
navDownRight: null,
|
|
1037
|
+
navLeft: null,
|
|
1038
|
+
navNext: null,
|
|
1039
|
+
navPrev: null,
|
|
1040
|
+
navRight: null,
|
|
1041
|
+
navUp: null,
|
|
1042
|
+
navUpLeft: null,
|
|
1043
|
+
navUpRight: null,
|
|
1044
|
+
numOctaves: null,
|
|
1045
|
+
observer: null,
|
|
1046
|
+
offset: null,
|
|
1047
|
+
onAbort: null,
|
|
1048
|
+
onActivate: null,
|
|
1049
|
+
onAfterPrint: null,
|
|
1050
|
+
onBeforePrint: null,
|
|
1051
|
+
onBegin: null,
|
|
1052
|
+
onCancel: null,
|
|
1053
|
+
onCanPlay: null,
|
|
1054
|
+
onCanPlayThrough: null,
|
|
1055
|
+
onChange: null,
|
|
1056
|
+
onClick: null,
|
|
1057
|
+
onClose: null,
|
|
1058
|
+
onCopy: null,
|
|
1059
|
+
onCueChange: null,
|
|
1060
|
+
onCut: null,
|
|
1061
|
+
onDblClick: null,
|
|
1062
|
+
onDrag: null,
|
|
1063
|
+
onDragEnd: null,
|
|
1064
|
+
onDragEnter: null,
|
|
1065
|
+
onDragExit: null,
|
|
1066
|
+
onDragLeave: null,
|
|
1067
|
+
onDragOver: null,
|
|
1068
|
+
onDragStart: null,
|
|
1069
|
+
onDrop: null,
|
|
1070
|
+
onDurationChange: null,
|
|
1071
|
+
onEmptied: null,
|
|
1072
|
+
onEnd: null,
|
|
1073
|
+
onEnded: null,
|
|
1074
|
+
onError: null,
|
|
1075
|
+
onFocus: null,
|
|
1076
|
+
onFocusIn: null,
|
|
1077
|
+
onFocusOut: null,
|
|
1078
|
+
onHashChange: null,
|
|
1079
|
+
onInput: null,
|
|
1080
|
+
onInvalid: null,
|
|
1081
|
+
onKeyDown: null,
|
|
1082
|
+
onKeyPress: null,
|
|
1083
|
+
onKeyUp: null,
|
|
1084
|
+
onLoad: null,
|
|
1085
|
+
onLoadedData: null,
|
|
1086
|
+
onLoadedMetadata: null,
|
|
1087
|
+
onLoadStart: null,
|
|
1088
|
+
onMessage: null,
|
|
1089
|
+
onMouseDown: null,
|
|
1090
|
+
onMouseEnter: null,
|
|
1091
|
+
onMouseLeave: null,
|
|
1092
|
+
onMouseMove: null,
|
|
1093
|
+
onMouseOut: null,
|
|
1094
|
+
onMouseOver: null,
|
|
1095
|
+
onMouseUp: null,
|
|
1096
|
+
onMouseWheel: null,
|
|
1097
|
+
onOffline: null,
|
|
1098
|
+
onOnline: null,
|
|
1099
|
+
onPageHide: null,
|
|
1100
|
+
onPageShow: null,
|
|
1101
|
+
onPaste: null,
|
|
1102
|
+
onPause: null,
|
|
1103
|
+
onPlay: null,
|
|
1104
|
+
onPlaying: null,
|
|
1105
|
+
onPopState: null,
|
|
1106
|
+
onProgress: null,
|
|
1107
|
+
onRateChange: null,
|
|
1108
|
+
onRepeat: null,
|
|
1109
|
+
onReset: null,
|
|
1110
|
+
onResize: null,
|
|
1111
|
+
onScroll: null,
|
|
1112
|
+
onSeeked: null,
|
|
1113
|
+
onSeeking: null,
|
|
1114
|
+
onSelect: null,
|
|
1115
|
+
onShow: null,
|
|
1116
|
+
onStalled: null,
|
|
1117
|
+
onStorage: null,
|
|
1118
|
+
onSubmit: null,
|
|
1119
|
+
onSuspend: null,
|
|
1120
|
+
onTimeUpdate: null,
|
|
1121
|
+
onToggle: null,
|
|
1122
|
+
onUnload: null,
|
|
1123
|
+
onVolumeChange: null,
|
|
1124
|
+
onWaiting: null,
|
|
1125
|
+
onZoom: null,
|
|
1126
|
+
opacity: null,
|
|
1127
|
+
operator: null,
|
|
1128
|
+
order: null,
|
|
1129
|
+
orient: null,
|
|
1130
|
+
orientation: null,
|
|
1131
|
+
origin: null,
|
|
1132
|
+
overflow: null,
|
|
1133
|
+
overlay: null,
|
|
1134
|
+
overlinePosition: number,
|
|
1135
|
+
overlineThickness: number,
|
|
1136
|
+
paintOrder: null,
|
|
1137
|
+
panose1: null,
|
|
1138
|
+
path: null,
|
|
1139
|
+
pathLength: number,
|
|
1140
|
+
patternContentUnits: null,
|
|
1141
|
+
patternTransform: null,
|
|
1142
|
+
patternUnits: null,
|
|
1143
|
+
phase: null,
|
|
1144
|
+
ping: spaceSeparated,
|
|
1145
|
+
pitch: null,
|
|
1146
|
+
playbackOrder: null,
|
|
1147
|
+
pointerEvents: null,
|
|
1148
|
+
points: null,
|
|
1149
|
+
pointsAtX: number,
|
|
1150
|
+
pointsAtY: number,
|
|
1151
|
+
pointsAtZ: number,
|
|
1152
|
+
preserveAlpha: null,
|
|
1153
|
+
preserveAspectRatio: null,
|
|
1154
|
+
primitiveUnits: null,
|
|
1155
|
+
propagate: null,
|
|
1156
|
+
property: commaOrSpaceSeparated,
|
|
1157
|
+
r: null,
|
|
1158
|
+
radius: null,
|
|
1159
|
+
referrerPolicy: null,
|
|
1160
|
+
refX: null,
|
|
1161
|
+
refY: null,
|
|
1162
|
+
rel: commaOrSpaceSeparated,
|
|
1163
|
+
rev: commaOrSpaceSeparated,
|
|
1164
|
+
renderingIntent: null,
|
|
1165
|
+
repeatCount: null,
|
|
1166
|
+
repeatDur: null,
|
|
1167
|
+
requiredExtensions: commaOrSpaceSeparated,
|
|
1168
|
+
requiredFeatures: commaOrSpaceSeparated,
|
|
1169
|
+
requiredFonts: commaOrSpaceSeparated,
|
|
1170
|
+
requiredFormats: commaOrSpaceSeparated,
|
|
1171
|
+
resource: null,
|
|
1172
|
+
restart: null,
|
|
1173
|
+
result: null,
|
|
1174
|
+
rotate: null,
|
|
1175
|
+
rx: null,
|
|
1176
|
+
ry: null,
|
|
1177
|
+
scale: null,
|
|
1178
|
+
seed: null,
|
|
1179
|
+
shapeRendering: null,
|
|
1180
|
+
side: null,
|
|
1181
|
+
slope: null,
|
|
1182
|
+
snapshotTime: null,
|
|
1183
|
+
specularConstant: number,
|
|
1184
|
+
specularExponent: number,
|
|
1185
|
+
spreadMethod: null,
|
|
1186
|
+
spacing: null,
|
|
1187
|
+
startOffset: null,
|
|
1188
|
+
stdDeviation: null,
|
|
1189
|
+
stemh: null,
|
|
1190
|
+
stemv: null,
|
|
1191
|
+
stitchTiles: null,
|
|
1192
|
+
stopColor: null,
|
|
1193
|
+
stopOpacity: null,
|
|
1194
|
+
strikethroughPosition: number,
|
|
1195
|
+
strikethroughThickness: number,
|
|
1196
|
+
string: null,
|
|
1197
|
+
stroke: null,
|
|
1198
|
+
strokeDashArray: commaOrSpaceSeparated,
|
|
1199
|
+
strokeDashOffset: null,
|
|
1200
|
+
strokeLineCap: null,
|
|
1201
|
+
strokeLineJoin: null,
|
|
1202
|
+
strokeMiterLimit: number,
|
|
1203
|
+
strokeOpacity: number,
|
|
1204
|
+
strokeWidth: null,
|
|
1205
|
+
style: null,
|
|
1206
|
+
surfaceScale: number,
|
|
1207
|
+
syncBehavior: null,
|
|
1208
|
+
syncBehaviorDefault: null,
|
|
1209
|
+
syncMaster: null,
|
|
1210
|
+
syncTolerance: null,
|
|
1211
|
+
syncToleranceDefault: null,
|
|
1212
|
+
systemLanguage: commaOrSpaceSeparated,
|
|
1213
|
+
tabIndex: number,
|
|
1214
|
+
tableValues: null,
|
|
1215
|
+
target: null,
|
|
1216
|
+
targetX: number,
|
|
1217
|
+
targetY: number,
|
|
1218
|
+
textAnchor: null,
|
|
1219
|
+
textDecoration: null,
|
|
1220
|
+
textRendering: null,
|
|
1221
|
+
textLength: null,
|
|
1222
|
+
timelineBegin: null,
|
|
1223
|
+
title: null,
|
|
1224
|
+
transformBehavior: null,
|
|
1225
|
+
type: null,
|
|
1226
|
+
typeOf: commaOrSpaceSeparated,
|
|
1227
|
+
to: null,
|
|
1228
|
+
transform: null,
|
|
1229
|
+
transformOrigin: null,
|
|
1230
|
+
u1: null,
|
|
1231
|
+
u2: null,
|
|
1232
|
+
underlinePosition: number,
|
|
1233
|
+
underlineThickness: number,
|
|
1234
|
+
unicode: null,
|
|
1235
|
+
unicodeBidi: null,
|
|
1236
|
+
unicodeRange: null,
|
|
1237
|
+
unitsPerEm: number,
|
|
1238
|
+
values: null,
|
|
1239
|
+
vAlphabetic: number,
|
|
1240
|
+
vMathematical: number,
|
|
1241
|
+
vectorEffect: null,
|
|
1242
|
+
vHanging: number,
|
|
1243
|
+
vIdeographic: number,
|
|
1244
|
+
version: null,
|
|
1245
|
+
vertAdvY: number,
|
|
1246
|
+
vertOriginX: number,
|
|
1247
|
+
vertOriginY: number,
|
|
1248
|
+
viewBox: null,
|
|
1249
|
+
viewTarget: null,
|
|
1250
|
+
visibility: null,
|
|
1251
|
+
width: null,
|
|
1252
|
+
widths: null,
|
|
1253
|
+
wordSpacing: null,
|
|
1254
|
+
writingMode: null,
|
|
1255
|
+
x: null,
|
|
1256
|
+
x1: null,
|
|
1257
|
+
x2: null,
|
|
1258
|
+
xChannelSelector: null,
|
|
1259
|
+
xHeight: number,
|
|
1260
|
+
y: null,
|
|
1261
|
+
y1: null,
|
|
1262
|
+
y2: null,
|
|
1263
|
+
yChannelSelector: null,
|
|
1264
|
+
z: null,
|
|
1265
|
+
zoomAndPan: null
|
|
1266
|
+
},
|
|
1267
|
+
space: "svg",
|
|
1268
|
+
transform: caseSensitiveTransform
|
|
1269
|
+
});
|
|
1270
|
+
const xlink = create({
|
|
1271
|
+
properties: {
|
|
1272
|
+
xLinkActuate: null,
|
|
1273
|
+
xLinkArcRole: null,
|
|
1274
|
+
xLinkHref: null,
|
|
1275
|
+
xLinkRole: null,
|
|
1276
|
+
xLinkShow: null,
|
|
1277
|
+
xLinkTitle: null,
|
|
1278
|
+
xLinkType: null
|
|
1279
|
+
},
|
|
1280
|
+
space: "xlink",
|
|
1281
|
+
transform(_, property) {
|
|
1282
|
+
return "xlink:" + property.slice(5).toLowerCase();
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
const xmlns = create({
|
|
1286
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1287
|
+
properties: { xmlnsXLink: null, xmlns: null },
|
|
1288
|
+
space: "xmlns",
|
|
1289
|
+
transform: caseInsensitiveTransform
|
|
1290
|
+
});
|
|
1291
|
+
const xml = create({
|
|
1292
|
+
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1293
|
+
space: "xml",
|
|
1294
|
+
transform(_, property) {
|
|
1295
|
+
return "xml:" + property.slice(3).toLowerCase();
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
const cap = /[A-Z]/g;
|
|
1299
|
+
const dash = /-[a-z]/g;
|
|
1300
|
+
const valid = /^data[-\w.:]+$/i;
|
|
1301
|
+
function find(schema, value) {
|
|
1302
|
+
const normal = normalize(value);
|
|
1303
|
+
let property = value;
|
|
1304
|
+
let Type = Info;
|
|
1305
|
+
if (normal in schema.normal) {
|
|
1306
|
+
return schema.property[schema.normal[normal]];
|
|
1307
|
+
}
|
|
1308
|
+
if (normal.length > 4 && normal.slice(0, 4) === "data" && valid.test(value)) {
|
|
1309
|
+
if (value.charAt(4) === "-") {
|
|
1310
|
+
const rest = value.slice(5).replace(dash, camelcase);
|
|
1311
|
+
property = "data" + rest.charAt(0).toUpperCase() + rest.slice(1);
|
|
1312
|
+
} else {
|
|
1313
|
+
const rest = value.slice(4);
|
|
1314
|
+
if (!dash.test(rest)) {
|
|
1315
|
+
let dashes = rest.replace(cap, kebab);
|
|
1316
|
+
if (dashes.charAt(0) !== "-") {
|
|
1317
|
+
dashes = "-" + dashes;
|
|
1318
|
+
}
|
|
1319
|
+
value = "data" + dashes;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
Type = DefinedInfo;
|
|
1323
|
+
}
|
|
1324
|
+
return new Type(property, value);
|
|
1325
|
+
}
|
|
1326
|
+
function kebab($0) {
|
|
1327
|
+
return "-" + $0.toLowerCase();
|
|
1328
|
+
}
|
|
1329
|
+
function camelcase($0) {
|
|
1330
|
+
return $0.charAt(1).toUpperCase();
|
|
1331
|
+
}
|
|
1332
|
+
const html$2 = merge([aria, html$3, xlink, xmlns, xml], "html");
|
|
1333
|
+
const svg = merge([aria, svg$1, xlink, xmlns, xml], "svg");
|
|
1334
|
+
const own$2 = {}.hasOwnProperty;
|
|
1335
|
+
function zwitch(key2, options) {
|
|
1336
|
+
const settings = options || {};
|
|
1337
|
+
function one2(value, ...parameters) {
|
|
1338
|
+
let fn = one2.invalid;
|
|
1339
|
+
const handlers = one2.handlers;
|
|
1340
|
+
if (value && own$2.call(value, key2)) {
|
|
1341
|
+
const id = String(value[key2]);
|
|
1342
|
+
fn = own$2.call(handlers, id) ? handlers[id] : one2.unknown;
|
|
1343
|
+
}
|
|
1344
|
+
if (fn) {
|
|
1345
|
+
return fn.call(this, value, ...parameters);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
one2.handlers = settings.handlers || {};
|
|
1349
|
+
one2.invalid = settings.invalid;
|
|
1350
|
+
one2.unknown = settings.unknown;
|
|
1351
|
+
return one2;
|
|
1352
|
+
}
|
|
1353
|
+
const defaultSubsetRegex = /["&'<>`]/g;
|
|
1354
|
+
const surrogatePairsRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
1355
|
+
const controlCharactersRegex = (
|
|
1356
|
+
// eslint-disable-next-line no-control-regex, unicorn/no-hex-escape
|
|
1357
|
+
/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g
|
|
1358
|
+
);
|
|
1359
|
+
const regexEscapeRegex = /[|\\{}()[\]^$+*?.]/g;
|
|
1360
|
+
const subsetToRegexCache = /* @__PURE__ */ new WeakMap();
|
|
1361
|
+
function core(value, options) {
|
|
1362
|
+
value = value.replace(
|
|
1363
|
+
options.subset ? charactersToExpressionCached(options.subset) : defaultSubsetRegex,
|
|
1364
|
+
basic
|
|
1365
|
+
);
|
|
1366
|
+
if (options.subset || options.escapeOnly) {
|
|
1367
|
+
return value;
|
|
1368
|
+
}
|
|
1369
|
+
return value.replace(surrogatePairsRegex, surrogate).replace(controlCharactersRegex, basic);
|
|
1370
|
+
function surrogate(pair, index, all2) {
|
|
1371
|
+
return options.format(
|
|
1372
|
+
(pair.charCodeAt(0) - 55296) * 1024 + pair.charCodeAt(1) - 56320 + 65536,
|
|
1373
|
+
all2.charCodeAt(index + 2),
|
|
1374
|
+
options
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
function basic(character, index, all2) {
|
|
1378
|
+
return options.format(
|
|
1379
|
+
character.charCodeAt(0),
|
|
1380
|
+
all2.charCodeAt(index + 1),
|
|
1381
|
+
options
|
|
1382
|
+
);
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
function charactersToExpressionCached(subset) {
|
|
1386
|
+
let cached = subsetToRegexCache.get(subset);
|
|
1387
|
+
if (!cached) {
|
|
1388
|
+
cached = charactersToExpression(subset);
|
|
1389
|
+
subsetToRegexCache.set(subset, cached);
|
|
1390
|
+
}
|
|
1391
|
+
return cached;
|
|
1392
|
+
}
|
|
1393
|
+
function charactersToExpression(subset) {
|
|
1394
|
+
const groups = [];
|
|
1395
|
+
let index = -1;
|
|
1396
|
+
while (++index < subset.length) {
|
|
1397
|
+
groups.push(subset[index].replace(regexEscapeRegex, "\\$&"));
|
|
1398
|
+
}
|
|
1399
|
+
return new RegExp("(?:" + groups.join("|") + ")", "g");
|
|
1400
|
+
}
|
|
1401
|
+
const hexadecimalRegex = /[\dA-Fa-f]/;
|
|
1402
|
+
function toHexadecimal(code, next, omit) {
|
|
1403
|
+
const value = "&#x" + code.toString(16).toUpperCase();
|
|
1404
|
+
return omit && next && !hexadecimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
|
|
1405
|
+
}
|
|
1406
|
+
const decimalRegex = /\d/;
|
|
1407
|
+
function toDecimal(code, next, omit) {
|
|
1408
|
+
const value = "&#" + String(code);
|
|
1409
|
+
return omit && next && !decimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
|
|
1410
|
+
}
|
|
1411
|
+
const characterEntitiesLegacy = [
|
|
1412
|
+
"AElig",
|
|
1413
|
+
"AMP",
|
|
1414
|
+
"Aacute",
|
|
1415
|
+
"Acirc",
|
|
1416
|
+
"Agrave",
|
|
1417
|
+
"Aring",
|
|
1418
|
+
"Atilde",
|
|
1419
|
+
"Auml",
|
|
1420
|
+
"COPY",
|
|
1421
|
+
"Ccedil",
|
|
1422
|
+
"ETH",
|
|
1423
|
+
"Eacute",
|
|
1424
|
+
"Ecirc",
|
|
1425
|
+
"Egrave",
|
|
1426
|
+
"Euml",
|
|
1427
|
+
"GT",
|
|
1428
|
+
"Iacute",
|
|
1429
|
+
"Icirc",
|
|
1430
|
+
"Igrave",
|
|
1431
|
+
"Iuml",
|
|
1432
|
+
"LT",
|
|
1433
|
+
"Ntilde",
|
|
1434
|
+
"Oacute",
|
|
1435
|
+
"Ocirc",
|
|
1436
|
+
"Ograve",
|
|
1437
|
+
"Oslash",
|
|
1438
|
+
"Otilde",
|
|
1439
|
+
"Ouml",
|
|
1440
|
+
"QUOT",
|
|
1441
|
+
"REG",
|
|
1442
|
+
"THORN",
|
|
1443
|
+
"Uacute",
|
|
1444
|
+
"Ucirc",
|
|
1445
|
+
"Ugrave",
|
|
1446
|
+
"Uuml",
|
|
1447
|
+
"Yacute",
|
|
1448
|
+
"aacute",
|
|
1449
|
+
"acirc",
|
|
1450
|
+
"acute",
|
|
1451
|
+
"aelig",
|
|
1452
|
+
"agrave",
|
|
1453
|
+
"amp",
|
|
1454
|
+
"aring",
|
|
1455
|
+
"atilde",
|
|
1456
|
+
"auml",
|
|
1457
|
+
"brvbar",
|
|
1458
|
+
"ccedil",
|
|
1459
|
+
"cedil",
|
|
1460
|
+
"cent",
|
|
1461
|
+
"copy",
|
|
1462
|
+
"curren",
|
|
1463
|
+
"deg",
|
|
1464
|
+
"divide",
|
|
1465
|
+
"eacute",
|
|
1466
|
+
"ecirc",
|
|
1467
|
+
"egrave",
|
|
1468
|
+
"eth",
|
|
1469
|
+
"euml",
|
|
1470
|
+
"frac12",
|
|
1471
|
+
"frac14",
|
|
1472
|
+
"frac34",
|
|
1473
|
+
"gt",
|
|
1474
|
+
"iacute",
|
|
1475
|
+
"icirc",
|
|
1476
|
+
"iexcl",
|
|
1477
|
+
"igrave",
|
|
1478
|
+
"iquest",
|
|
1479
|
+
"iuml",
|
|
1480
|
+
"laquo",
|
|
1481
|
+
"lt",
|
|
1482
|
+
"macr",
|
|
1483
|
+
"micro",
|
|
1484
|
+
"middot",
|
|
1485
|
+
"nbsp",
|
|
1486
|
+
"not",
|
|
1487
|
+
"ntilde",
|
|
1488
|
+
"oacute",
|
|
1489
|
+
"ocirc",
|
|
1490
|
+
"ograve",
|
|
1491
|
+
"ordf",
|
|
1492
|
+
"ordm",
|
|
1493
|
+
"oslash",
|
|
1494
|
+
"otilde",
|
|
1495
|
+
"ouml",
|
|
1496
|
+
"para",
|
|
1497
|
+
"plusmn",
|
|
1498
|
+
"pound",
|
|
1499
|
+
"quot",
|
|
1500
|
+
"raquo",
|
|
1501
|
+
"reg",
|
|
1502
|
+
"sect",
|
|
1503
|
+
"shy",
|
|
1504
|
+
"sup1",
|
|
1505
|
+
"sup2",
|
|
1506
|
+
"sup3",
|
|
1507
|
+
"szlig",
|
|
1508
|
+
"thorn",
|
|
1509
|
+
"times",
|
|
1510
|
+
"uacute",
|
|
1511
|
+
"ucirc",
|
|
1512
|
+
"ugrave",
|
|
1513
|
+
"uml",
|
|
1514
|
+
"uuml",
|
|
1515
|
+
"yacute",
|
|
1516
|
+
"yen",
|
|
1517
|
+
"yuml"
|
|
1518
|
+
];
|
|
1519
|
+
const characterEntitiesHtml4 = {
|
|
1520
|
+
nbsp: " ",
|
|
1521
|
+
iexcl: "¡",
|
|
1522
|
+
cent: "¢",
|
|
1523
|
+
pound: "£",
|
|
1524
|
+
curren: "¤",
|
|
1525
|
+
yen: "¥",
|
|
1526
|
+
brvbar: "¦",
|
|
1527
|
+
sect: "§",
|
|
1528
|
+
uml: "¨",
|
|
1529
|
+
copy: "©",
|
|
1530
|
+
ordf: "ª",
|
|
1531
|
+
laquo: "«",
|
|
1532
|
+
not: "¬",
|
|
1533
|
+
shy: "",
|
|
1534
|
+
reg: "®",
|
|
1535
|
+
macr: "¯",
|
|
1536
|
+
deg: "°",
|
|
1537
|
+
plusmn: "±",
|
|
1538
|
+
sup2: "²",
|
|
1539
|
+
sup3: "³",
|
|
1540
|
+
acute: "´",
|
|
1541
|
+
micro: "µ",
|
|
1542
|
+
para: "¶",
|
|
1543
|
+
middot: "·",
|
|
1544
|
+
cedil: "¸",
|
|
1545
|
+
sup1: "¹",
|
|
1546
|
+
ordm: "º",
|
|
1547
|
+
raquo: "»",
|
|
1548
|
+
frac14: "¼",
|
|
1549
|
+
frac12: "½",
|
|
1550
|
+
frac34: "¾",
|
|
1551
|
+
iquest: "¿",
|
|
1552
|
+
Agrave: "À",
|
|
1553
|
+
Aacute: "Á",
|
|
1554
|
+
Acirc: "Â",
|
|
1555
|
+
Atilde: "Ã",
|
|
1556
|
+
Auml: "Ä",
|
|
1557
|
+
Aring: "Å",
|
|
1558
|
+
AElig: "Æ",
|
|
1559
|
+
Ccedil: "Ç",
|
|
1560
|
+
Egrave: "È",
|
|
1561
|
+
Eacute: "É",
|
|
1562
|
+
Ecirc: "Ê",
|
|
1563
|
+
Euml: "Ë",
|
|
1564
|
+
Igrave: "Ì",
|
|
1565
|
+
Iacute: "Í",
|
|
1566
|
+
Icirc: "Î",
|
|
1567
|
+
Iuml: "Ï",
|
|
1568
|
+
ETH: "Ð",
|
|
1569
|
+
Ntilde: "Ñ",
|
|
1570
|
+
Ograve: "Ò",
|
|
1571
|
+
Oacute: "Ó",
|
|
1572
|
+
Ocirc: "Ô",
|
|
1573
|
+
Otilde: "Õ",
|
|
1574
|
+
Ouml: "Ö",
|
|
1575
|
+
times: "×",
|
|
1576
|
+
Oslash: "Ø",
|
|
1577
|
+
Ugrave: "Ù",
|
|
1578
|
+
Uacute: "Ú",
|
|
1579
|
+
Ucirc: "Û",
|
|
1580
|
+
Uuml: "Ü",
|
|
1581
|
+
Yacute: "Ý",
|
|
1582
|
+
THORN: "Þ",
|
|
1583
|
+
szlig: "ß",
|
|
1584
|
+
agrave: "à",
|
|
1585
|
+
aacute: "á",
|
|
1586
|
+
acirc: "â",
|
|
1587
|
+
atilde: "ã",
|
|
1588
|
+
auml: "ä",
|
|
1589
|
+
aring: "å",
|
|
1590
|
+
aelig: "æ",
|
|
1591
|
+
ccedil: "ç",
|
|
1592
|
+
egrave: "è",
|
|
1593
|
+
eacute: "é",
|
|
1594
|
+
ecirc: "ê",
|
|
1595
|
+
euml: "ë",
|
|
1596
|
+
igrave: "ì",
|
|
1597
|
+
iacute: "í",
|
|
1598
|
+
icirc: "î",
|
|
1599
|
+
iuml: "ï",
|
|
1600
|
+
eth: "ð",
|
|
1601
|
+
ntilde: "ñ",
|
|
1602
|
+
ograve: "ò",
|
|
1603
|
+
oacute: "ó",
|
|
1604
|
+
ocirc: "ô",
|
|
1605
|
+
otilde: "õ",
|
|
1606
|
+
ouml: "ö",
|
|
1607
|
+
divide: "÷",
|
|
1608
|
+
oslash: "ø",
|
|
1609
|
+
ugrave: "ù",
|
|
1610
|
+
uacute: "ú",
|
|
1611
|
+
ucirc: "û",
|
|
1612
|
+
uuml: "ü",
|
|
1613
|
+
yacute: "ý",
|
|
1614
|
+
thorn: "þ",
|
|
1615
|
+
yuml: "ÿ",
|
|
1616
|
+
fnof: "ƒ",
|
|
1617
|
+
Alpha: "Α",
|
|
1618
|
+
Beta: "Β",
|
|
1619
|
+
Gamma: "Γ",
|
|
1620
|
+
Delta: "Δ",
|
|
1621
|
+
Epsilon: "Ε",
|
|
1622
|
+
Zeta: "Ζ",
|
|
1623
|
+
Eta: "Η",
|
|
1624
|
+
Theta: "Θ",
|
|
1625
|
+
Iota: "Ι",
|
|
1626
|
+
Kappa: "Κ",
|
|
1627
|
+
Lambda: "Λ",
|
|
1628
|
+
Mu: "Μ",
|
|
1629
|
+
Nu: "Ν",
|
|
1630
|
+
Xi: "Ξ",
|
|
1631
|
+
Omicron: "Ο",
|
|
1632
|
+
Pi: "Π",
|
|
1633
|
+
Rho: "Ρ",
|
|
1634
|
+
Sigma: "Σ",
|
|
1635
|
+
Tau: "Τ",
|
|
1636
|
+
Upsilon: "Υ",
|
|
1637
|
+
Phi: "Φ",
|
|
1638
|
+
Chi: "Χ",
|
|
1639
|
+
Psi: "Ψ",
|
|
1640
|
+
Omega: "Ω",
|
|
1641
|
+
alpha: "α",
|
|
1642
|
+
beta: "β",
|
|
1643
|
+
gamma: "γ",
|
|
1644
|
+
delta: "δ",
|
|
1645
|
+
epsilon: "ε",
|
|
1646
|
+
zeta: "ζ",
|
|
1647
|
+
eta: "η",
|
|
1648
|
+
theta: "θ",
|
|
1649
|
+
iota: "ι",
|
|
1650
|
+
kappa: "κ",
|
|
1651
|
+
lambda: "λ",
|
|
1652
|
+
mu: "μ",
|
|
1653
|
+
nu: "ν",
|
|
1654
|
+
xi: "ξ",
|
|
1655
|
+
omicron: "ο",
|
|
1656
|
+
pi: "π",
|
|
1657
|
+
rho: "ρ",
|
|
1658
|
+
sigmaf: "ς",
|
|
1659
|
+
sigma: "σ",
|
|
1660
|
+
tau: "τ",
|
|
1661
|
+
upsilon: "υ",
|
|
1662
|
+
phi: "φ",
|
|
1663
|
+
chi: "χ",
|
|
1664
|
+
psi: "ψ",
|
|
1665
|
+
omega: "ω",
|
|
1666
|
+
thetasym: "ϑ",
|
|
1667
|
+
upsih: "ϒ",
|
|
1668
|
+
piv: "ϖ",
|
|
1669
|
+
bull: "•",
|
|
1670
|
+
hellip: "…",
|
|
1671
|
+
prime: "′",
|
|
1672
|
+
Prime: "″",
|
|
1673
|
+
oline: "‾",
|
|
1674
|
+
frasl: "⁄",
|
|
1675
|
+
weierp: "℘",
|
|
1676
|
+
image: "ℑ",
|
|
1677
|
+
real: "ℜ",
|
|
1678
|
+
trade: "™",
|
|
1679
|
+
alefsym: "ℵ",
|
|
1680
|
+
larr: "←",
|
|
1681
|
+
uarr: "↑",
|
|
1682
|
+
rarr: "→",
|
|
1683
|
+
darr: "↓",
|
|
1684
|
+
harr: "↔",
|
|
1685
|
+
crarr: "↵",
|
|
1686
|
+
lArr: "⇐",
|
|
1687
|
+
uArr: "⇑",
|
|
1688
|
+
rArr: "⇒",
|
|
1689
|
+
dArr: "⇓",
|
|
1690
|
+
hArr: "⇔",
|
|
1691
|
+
forall: "∀",
|
|
1692
|
+
part: "∂",
|
|
1693
|
+
exist: "∃",
|
|
1694
|
+
empty: "∅",
|
|
1695
|
+
nabla: "∇",
|
|
1696
|
+
isin: "∈",
|
|
1697
|
+
notin: "∉",
|
|
1698
|
+
ni: "∋",
|
|
1699
|
+
prod: "∏",
|
|
1700
|
+
sum: "∑",
|
|
1701
|
+
minus: "−",
|
|
1702
|
+
lowast: "∗",
|
|
1703
|
+
radic: "√",
|
|
1704
|
+
prop: "∝",
|
|
1705
|
+
infin: "∞",
|
|
1706
|
+
ang: "∠",
|
|
1707
|
+
and: "∧",
|
|
1708
|
+
or: "∨",
|
|
1709
|
+
cap: "∩",
|
|
1710
|
+
cup: "∪",
|
|
1711
|
+
int: "∫",
|
|
1712
|
+
there4: "∴",
|
|
1713
|
+
sim: "∼",
|
|
1714
|
+
cong: "≅",
|
|
1715
|
+
asymp: "≈",
|
|
1716
|
+
ne: "≠",
|
|
1717
|
+
equiv: "≡",
|
|
1718
|
+
le: "≤",
|
|
1719
|
+
ge: "≥",
|
|
1720
|
+
sub: "⊂",
|
|
1721
|
+
sup: "⊃",
|
|
1722
|
+
nsub: "⊄",
|
|
1723
|
+
sube: "⊆",
|
|
1724
|
+
supe: "⊇",
|
|
1725
|
+
oplus: "⊕",
|
|
1726
|
+
otimes: "⊗",
|
|
1727
|
+
perp: "⊥",
|
|
1728
|
+
sdot: "⋅",
|
|
1729
|
+
lceil: "⌈",
|
|
1730
|
+
rceil: "⌉",
|
|
1731
|
+
lfloor: "⌊",
|
|
1732
|
+
rfloor: "⌋",
|
|
1733
|
+
lang: "〈",
|
|
1734
|
+
rang: "〉",
|
|
1735
|
+
loz: "◊",
|
|
1736
|
+
spades: "♠",
|
|
1737
|
+
clubs: "♣",
|
|
1738
|
+
hearts: "♥",
|
|
1739
|
+
diams: "♦",
|
|
1740
|
+
quot: '"',
|
|
1741
|
+
amp: "&",
|
|
1742
|
+
lt: "<",
|
|
1743
|
+
gt: ">",
|
|
1744
|
+
OElig: "Œ",
|
|
1745
|
+
oelig: "œ",
|
|
1746
|
+
Scaron: "Š",
|
|
1747
|
+
scaron: "š",
|
|
1748
|
+
Yuml: "Ÿ",
|
|
1749
|
+
circ: "ˆ",
|
|
1750
|
+
tilde: "˜",
|
|
1751
|
+
ensp: " ",
|
|
1752
|
+
emsp: " ",
|
|
1753
|
+
thinsp: " ",
|
|
1754
|
+
zwnj: "",
|
|
1755
|
+
zwj: "",
|
|
1756
|
+
lrm: "",
|
|
1757
|
+
rlm: "",
|
|
1758
|
+
ndash: "–",
|
|
1759
|
+
mdash: "—",
|
|
1760
|
+
lsquo: "‘",
|
|
1761
|
+
rsquo: "’",
|
|
1762
|
+
sbquo: "‚",
|
|
1763
|
+
ldquo: "“",
|
|
1764
|
+
rdquo: "”",
|
|
1765
|
+
bdquo: "„",
|
|
1766
|
+
dagger: "†",
|
|
1767
|
+
Dagger: "‡",
|
|
1768
|
+
permil: "‰",
|
|
1769
|
+
lsaquo: "‹",
|
|
1770
|
+
rsaquo: "›",
|
|
1771
|
+
euro: "€"
|
|
1772
|
+
};
|
|
1773
|
+
const dangerous = [
|
|
1774
|
+
"cent",
|
|
1775
|
+
"copy",
|
|
1776
|
+
"divide",
|
|
1777
|
+
"gt",
|
|
1778
|
+
"lt",
|
|
1779
|
+
"not",
|
|
1780
|
+
"para",
|
|
1781
|
+
"times"
|
|
1782
|
+
];
|
|
1783
|
+
const own$1 = {}.hasOwnProperty;
|
|
1784
|
+
const characters = {};
|
|
1785
|
+
let key;
|
|
1786
|
+
for (key in characterEntitiesHtml4) {
|
|
1787
|
+
if (own$1.call(characterEntitiesHtml4, key)) {
|
|
1788
|
+
characters[characterEntitiesHtml4[key]] = key;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
const notAlphanumericRegex = /[^\dA-Za-z]/;
|
|
1792
|
+
function toNamed(code, next, omit, attribute) {
|
|
1793
|
+
const character = String.fromCharCode(code);
|
|
1794
|
+
if (own$1.call(characters, character)) {
|
|
1795
|
+
const name = characters[character];
|
|
1796
|
+
const value = "&" + name;
|
|
1797
|
+
if (omit && characterEntitiesLegacy.includes(name) && !dangerous.includes(name) && (!attribute || next && next !== 61 && notAlphanumericRegex.test(String.fromCharCode(next)))) {
|
|
1798
|
+
return value;
|
|
1799
|
+
}
|
|
1800
|
+
return value + ";";
|
|
1801
|
+
}
|
|
1802
|
+
return "";
|
|
1803
|
+
}
|
|
1804
|
+
function formatSmart(code, next, options) {
|
|
1805
|
+
let numeric = toHexadecimal(code, next, options.omitOptionalSemicolons);
|
|
1806
|
+
let named;
|
|
1807
|
+
if (options.useNamedReferences || options.useShortestReferences) {
|
|
1808
|
+
named = toNamed(
|
|
1809
|
+
code,
|
|
1810
|
+
next,
|
|
1811
|
+
options.omitOptionalSemicolons,
|
|
1812
|
+
options.attribute
|
|
1813
|
+
);
|
|
1814
|
+
}
|
|
1815
|
+
if ((options.useShortestReferences || !named) && options.useShortestReferences) {
|
|
1816
|
+
const decimal = toDecimal(code, next, options.omitOptionalSemicolons);
|
|
1817
|
+
if (decimal.length < numeric.length) {
|
|
1818
|
+
numeric = decimal;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
return named && (!options.useShortestReferences || named.length < numeric.length) ? named : numeric;
|
|
1822
|
+
}
|
|
1823
|
+
function stringifyEntities(value, options) {
|
|
1824
|
+
return core(value, Object.assign({ format: formatSmart }, options));
|
|
1825
|
+
}
|
|
1826
|
+
const htmlCommentRegex = /^>|^->|<!--|-->|--!>|<!-$/g;
|
|
1827
|
+
const bogusCommentEntitySubset = [">"];
|
|
1828
|
+
const commentEntitySubset = ["<", ">"];
|
|
1829
|
+
function comment(node, _1, _2, state) {
|
|
1830
|
+
return state.settings.bogusComments ? "<?" + stringifyEntities(
|
|
1831
|
+
node.value,
|
|
1832
|
+
Object.assign({}, state.settings.characterReferences, {
|
|
1833
|
+
subset: bogusCommentEntitySubset
|
|
1834
|
+
})
|
|
1835
|
+
) + ">" : "<!--" + node.value.replace(htmlCommentRegex, encode) + "-->";
|
|
1836
|
+
function encode($0) {
|
|
1837
|
+
return stringifyEntities(
|
|
1838
|
+
$0,
|
|
1839
|
+
Object.assign({}, state.settings.characterReferences, {
|
|
1840
|
+
subset: commentEntitySubset
|
|
1841
|
+
})
|
|
1842
|
+
);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
function doctype(_1, _2, _3, state) {
|
|
1846
|
+
return "<!" + (state.settings.upperDoctype ? "DOCTYPE" : "doctype") + (state.settings.tightDoctype ? "" : " ") + "html>";
|
|
1847
|
+
}
|
|
1848
|
+
function ccount(value, character) {
|
|
1849
|
+
const source = String(value);
|
|
1850
|
+
if (typeof character !== "string") {
|
|
1851
|
+
throw new TypeError("Expected character");
|
|
1852
|
+
}
|
|
1853
|
+
let count = 0;
|
|
1854
|
+
let index = source.indexOf(character);
|
|
1855
|
+
while (index !== -1) {
|
|
1856
|
+
count++;
|
|
1857
|
+
index = source.indexOf(character, index + character.length);
|
|
1858
|
+
}
|
|
1859
|
+
return count;
|
|
1860
|
+
}
|
|
1861
|
+
function stringify$1(values, options) {
|
|
1862
|
+
const settings = options || {};
|
|
1863
|
+
const input = values[values.length - 1] === "" ? [...values, ""] : values;
|
|
1864
|
+
return input.join(
|
|
1865
|
+
(settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")
|
|
1866
|
+
).trim();
|
|
1867
|
+
}
|
|
1868
|
+
function stringify(values) {
|
|
1869
|
+
return values.join(" ").trim();
|
|
1870
|
+
}
|
|
1871
|
+
const re = /[ \t\n\f\r]/g;
|
|
1872
|
+
function whitespace(thing) {
|
|
1873
|
+
return typeof thing === "object" ? thing.type === "text" ? empty(thing.value) : false : empty(thing);
|
|
1874
|
+
}
|
|
1875
|
+
function empty(value) {
|
|
1876
|
+
return value.replace(re, "") === "";
|
|
1877
|
+
}
|
|
1878
|
+
const siblingAfter = siblings(1);
|
|
1879
|
+
const siblingBefore = siblings(-1);
|
|
1880
|
+
const emptyChildren$1 = [];
|
|
1881
|
+
function siblings(increment2) {
|
|
1882
|
+
return sibling;
|
|
1883
|
+
function sibling(parent, index, includeWhitespace) {
|
|
1884
|
+
const siblings2 = parent ? parent.children : emptyChildren$1;
|
|
1885
|
+
let offset = (index || 0) + increment2;
|
|
1886
|
+
let next = siblings2[offset];
|
|
1887
|
+
if (!includeWhitespace) {
|
|
1888
|
+
while (next && whitespace(next)) {
|
|
1889
|
+
offset += increment2;
|
|
1890
|
+
next = siblings2[offset];
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
return next;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
const own = {}.hasOwnProperty;
|
|
1897
|
+
function omission(handlers) {
|
|
1898
|
+
return omit;
|
|
1899
|
+
function omit(node, index, parent) {
|
|
1900
|
+
return own.call(handlers, node.tagName) && handlers[node.tagName](node, index, parent);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
const closing = omission({
|
|
1904
|
+
body: body$1,
|
|
1905
|
+
caption: headOrColgroupOrCaption,
|
|
1906
|
+
colgroup: headOrColgroupOrCaption,
|
|
1907
|
+
dd,
|
|
1908
|
+
dt,
|
|
1909
|
+
head: headOrColgroupOrCaption,
|
|
1910
|
+
html: html$1,
|
|
1911
|
+
li,
|
|
1912
|
+
optgroup,
|
|
1913
|
+
option,
|
|
1914
|
+
p,
|
|
1915
|
+
rp: rubyElement,
|
|
1916
|
+
rt: rubyElement,
|
|
1917
|
+
tbody: tbody$1,
|
|
1918
|
+
td: cells,
|
|
1919
|
+
tfoot,
|
|
1920
|
+
th: cells,
|
|
1921
|
+
thead,
|
|
1922
|
+
tr
|
|
1923
|
+
});
|
|
1924
|
+
function headOrColgroupOrCaption(_, index, parent) {
|
|
1925
|
+
const next = siblingAfter(parent, index, true);
|
|
1926
|
+
return !next || next.type !== "comment" && !(next.type === "text" && whitespace(next.value.charAt(0)));
|
|
1927
|
+
}
|
|
1928
|
+
function html$1(_, index, parent) {
|
|
1929
|
+
const next = siblingAfter(parent, index);
|
|
1930
|
+
return !next || next.type !== "comment";
|
|
1931
|
+
}
|
|
1932
|
+
function body$1(_, index, parent) {
|
|
1933
|
+
const next = siblingAfter(parent, index);
|
|
1934
|
+
return !next || next.type !== "comment";
|
|
1935
|
+
}
|
|
1936
|
+
function p(_, index, parent) {
|
|
1937
|
+
const next = siblingAfter(parent, index);
|
|
1938
|
+
return next ? next.type === "element" && (next.tagName === "address" || next.tagName === "article" || next.tagName === "aside" || next.tagName === "blockquote" || next.tagName === "details" || next.tagName === "div" || next.tagName === "dl" || next.tagName === "fieldset" || next.tagName === "figcaption" || next.tagName === "figure" || next.tagName === "footer" || next.tagName === "form" || next.tagName === "h1" || next.tagName === "h2" || next.tagName === "h3" || next.tagName === "h4" || next.tagName === "h5" || next.tagName === "h6" || next.tagName === "header" || next.tagName === "hgroup" || next.tagName === "hr" || next.tagName === "main" || next.tagName === "menu" || next.tagName === "nav" || next.tagName === "ol" || next.tagName === "p" || next.tagName === "pre" || next.tagName === "section" || next.tagName === "table" || next.tagName === "ul") : !parent || // Confusing parent.
|
|
1939
|
+
!(parent.type === "element" && (parent.tagName === "a" || parent.tagName === "audio" || parent.tagName === "del" || parent.tagName === "ins" || parent.tagName === "map" || parent.tagName === "noscript" || parent.tagName === "video"));
|
|
1940
|
+
}
|
|
1941
|
+
function li(_, index, parent) {
|
|
1942
|
+
const next = siblingAfter(parent, index);
|
|
1943
|
+
return !next || next.type === "element" && next.tagName === "li";
|
|
1944
|
+
}
|
|
1945
|
+
function dt(_, index, parent) {
|
|
1946
|
+
const next = siblingAfter(parent, index);
|
|
1947
|
+
return Boolean(
|
|
1948
|
+
next && next.type === "element" && (next.tagName === "dt" || next.tagName === "dd")
|
|
1949
|
+
);
|
|
1950
|
+
}
|
|
1951
|
+
function dd(_, index, parent) {
|
|
1952
|
+
const next = siblingAfter(parent, index);
|
|
1953
|
+
return !next || next.type === "element" && (next.tagName === "dt" || next.tagName === "dd");
|
|
1954
|
+
}
|
|
1955
|
+
function rubyElement(_, index, parent) {
|
|
1956
|
+
const next = siblingAfter(parent, index);
|
|
1957
|
+
return !next || next.type === "element" && (next.tagName === "rp" || next.tagName === "rt");
|
|
1958
|
+
}
|
|
1959
|
+
function optgroup(_, index, parent) {
|
|
1960
|
+
const next = siblingAfter(parent, index);
|
|
1961
|
+
return !next || next.type === "element" && next.tagName === "optgroup";
|
|
1962
|
+
}
|
|
1963
|
+
function option(_, index, parent) {
|
|
1964
|
+
const next = siblingAfter(parent, index);
|
|
1965
|
+
return !next || next.type === "element" && (next.tagName === "option" || next.tagName === "optgroup");
|
|
1966
|
+
}
|
|
1967
|
+
function thead(_, index, parent) {
|
|
1968
|
+
const next = siblingAfter(parent, index);
|
|
1969
|
+
return Boolean(
|
|
1970
|
+
next && next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot")
|
|
1971
|
+
);
|
|
1972
|
+
}
|
|
1973
|
+
function tbody$1(_, index, parent) {
|
|
1974
|
+
const next = siblingAfter(parent, index);
|
|
1975
|
+
return !next || next.type === "element" && (next.tagName === "tbody" || next.tagName === "tfoot");
|
|
1976
|
+
}
|
|
1977
|
+
function tfoot(_, index, parent) {
|
|
1978
|
+
return !siblingAfter(parent, index);
|
|
1979
|
+
}
|
|
1980
|
+
function tr(_, index, parent) {
|
|
1981
|
+
const next = siblingAfter(parent, index);
|
|
1982
|
+
return !next || next.type === "element" && next.tagName === "tr";
|
|
1983
|
+
}
|
|
1984
|
+
function cells(_, index, parent) {
|
|
1985
|
+
const next = siblingAfter(parent, index);
|
|
1986
|
+
return !next || next.type === "element" && (next.tagName === "td" || next.tagName === "th");
|
|
1987
|
+
}
|
|
1988
|
+
const opening = omission({
|
|
1989
|
+
body,
|
|
1990
|
+
colgroup,
|
|
1991
|
+
head,
|
|
1992
|
+
html,
|
|
1993
|
+
tbody
|
|
1994
|
+
});
|
|
1995
|
+
function html(node) {
|
|
1996
|
+
const head2 = siblingAfter(node, -1);
|
|
1997
|
+
return !head2 || head2.type !== "comment";
|
|
1998
|
+
}
|
|
1999
|
+
function head(node) {
|
|
2000
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2001
|
+
for (const child2 of node.children) {
|
|
2002
|
+
if (child2.type === "element" && (child2.tagName === "base" || child2.tagName === "title")) {
|
|
2003
|
+
if (seen.has(child2.tagName)) return false;
|
|
2004
|
+
seen.add(child2.tagName);
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
const child = node.children[0];
|
|
2008
|
+
return !child || child.type === "element";
|
|
2009
|
+
}
|
|
2010
|
+
function body(node) {
|
|
2011
|
+
const head2 = siblingAfter(node, -1, true);
|
|
2012
|
+
return !head2 || head2.type !== "comment" && !(head2.type === "text" && whitespace(head2.value.charAt(0))) && !(head2.type === "element" && (head2.tagName === "meta" || head2.tagName === "link" || head2.tagName === "script" || head2.tagName === "style" || head2.tagName === "template"));
|
|
2013
|
+
}
|
|
2014
|
+
function colgroup(node, index, parent) {
|
|
2015
|
+
const previous = siblingBefore(parent, index);
|
|
2016
|
+
const head2 = siblingAfter(node, -1, true);
|
|
2017
|
+
if (parent && previous && previous.type === "element" && previous.tagName === "colgroup" && closing(previous, parent.children.indexOf(previous), parent)) {
|
|
2018
|
+
return false;
|
|
2019
|
+
}
|
|
2020
|
+
return Boolean(head2 && head2.type === "element" && head2.tagName === "col");
|
|
2021
|
+
}
|
|
2022
|
+
function tbody(node, index, parent) {
|
|
2023
|
+
const previous = siblingBefore(parent, index);
|
|
2024
|
+
const head2 = siblingAfter(node, -1);
|
|
2025
|
+
if (parent && previous && previous.type === "element" && (previous.tagName === "thead" || previous.tagName === "tbody") && closing(previous, parent.children.indexOf(previous), parent)) {
|
|
2026
|
+
return false;
|
|
2027
|
+
}
|
|
2028
|
+
return Boolean(head2 && head2.type === "element" && head2.tagName === "tr");
|
|
2029
|
+
}
|
|
2030
|
+
const constants = {
|
|
2031
|
+
// See: <https://html.spec.whatwg.org/#attribute-name-state>.
|
|
2032
|
+
name: [
|
|
2033
|
+
[" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")],
|
|
2034
|
+
[`\0
|
|
2035
|
+
\f\r "&'/<=>`.split(""), "\0 \n\f\r \"&'/<=>`".split("")]
|
|
2036
|
+
],
|
|
2037
|
+
// See: <https://html.spec.whatwg.org/#attribute-value-(unquoted)-state>.
|
|
2038
|
+
unquoted: [
|
|
2039
|
+
[" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")],
|
|
2040
|
+
["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]
|
|
2041
|
+
],
|
|
2042
|
+
// See: <https://html.spec.whatwg.org/#attribute-value-(single-quoted)-state>.
|
|
2043
|
+
single: [
|
|
2044
|
+
["&'".split(""), "\"&'`".split("")],
|
|
2045
|
+
["\0&'".split(""), "\0\"&'`".split("")]
|
|
2046
|
+
],
|
|
2047
|
+
// See: <https://html.spec.whatwg.org/#attribute-value-(double-quoted)-state>.
|
|
2048
|
+
double: [
|
|
2049
|
+
['"&'.split(""), "\"&'`".split("")],
|
|
2050
|
+
['\0"&'.split(""), "\0\"&'`".split("")]
|
|
2051
|
+
]
|
|
2052
|
+
};
|
|
2053
|
+
function element(node, index, parent, state) {
|
|
2054
|
+
const schema = state.schema;
|
|
2055
|
+
const omit = schema.space === "svg" ? false : state.settings.omitOptionalTags;
|
|
2056
|
+
let selfClosing = schema.space === "svg" ? state.settings.closeEmptyElements : state.settings.voids.includes(node.tagName.toLowerCase());
|
|
2057
|
+
const parts = [];
|
|
2058
|
+
let last;
|
|
2059
|
+
if (schema.space === "html" && node.tagName === "svg") {
|
|
2060
|
+
state.schema = svg;
|
|
2061
|
+
}
|
|
2062
|
+
const attributes = serializeAttributes$1(state, node.properties);
|
|
2063
|
+
const content = state.all(
|
|
2064
|
+
schema.space === "html" && node.tagName === "template" ? node.content : node
|
|
2065
|
+
);
|
|
2066
|
+
state.schema = schema;
|
|
2067
|
+
if (content) selfClosing = false;
|
|
2068
|
+
if (attributes || !omit || !opening(node, index, parent)) {
|
|
2069
|
+
parts.push("<", node.tagName, attributes ? " " + attributes : "");
|
|
2070
|
+
if (selfClosing && (schema.space === "svg" || state.settings.closeSelfClosing)) {
|
|
2071
|
+
last = attributes.charAt(attributes.length - 1);
|
|
2072
|
+
if (!state.settings.tightSelfClosing || last === "/" || last && last !== '"' && last !== "'") {
|
|
2073
|
+
parts.push(" ");
|
|
2074
|
+
}
|
|
2075
|
+
parts.push("/");
|
|
2076
|
+
}
|
|
2077
|
+
parts.push(">");
|
|
2078
|
+
}
|
|
2079
|
+
parts.push(content);
|
|
2080
|
+
if (!selfClosing && (!omit || !closing(node, index, parent))) {
|
|
2081
|
+
parts.push("</" + node.tagName + ">");
|
|
2082
|
+
}
|
|
2083
|
+
return parts.join("");
|
|
2084
|
+
}
|
|
2085
|
+
function serializeAttributes$1(state, properties) {
|
|
2086
|
+
const values = [];
|
|
2087
|
+
let index = -1;
|
|
2088
|
+
let key2;
|
|
2089
|
+
if (properties) {
|
|
2090
|
+
for (key2 in properties) {
|
|
2091
|
+
if (properties[key2] !== null && properties[key2] !== void 0) {
|
|
2092
|
+
const value = serializeAttribute(state, key2, properties[key2]);
|
|
2093
|
+
if (value) values.push(value);
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
while (++index < values.length) {
|
|
2098
|
+
const last = state.settings.tightAttributes ? values[index].charAt(values[index].length - 1) : void 0;
|
|
2099
|
+
if (index !== values.length - 1 && last !== '"' && last !== "'") {
|
|
2100
|
+
values[index] += " ";
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
return values.join("");
|
|
2104
|
+
}
|
|
2105
|
+
function serializeAttribute(state, key2, value) {
|
|
2106
|
+
const info = find(state.schema, key2);
|
|
2107
|
+
const x = state.settings.allowParseErrors && state.schema.space === "html" ? 0 : 1;
|
|
2108
|
+
const y = state.settings.allowDangerousCharacters ? 0 : 1;
|
|
2109
|
+
let quote = state.quote;
|
|
2110
|
+
let result;
|
|
2111
|
+
if (info.overloadedBoolean && (value === info.attribute || value === "")) {
|
|
2112
|
+
value = true;
|
|
2113
|
+
} else if ((info.boolean || info.overloadedBoolean) && (typeof value !== "string" || value === info.attribute || value === "")) {
|
|
2114
|
+
value = Boolean(value);
|
|
2115
|
+
}
|
|
2116
|
+
if (value === null || value === void 0 || value === false || typeof value === "number" && Number.isNaN(value)) {
|
|
2117
|
+
return "";
|
|
2118
|
+
}
|
|
2119
|
+
const name = stringifyEntities(
|
|
2120
|
+
info.attribute,
|
|
2121
|
+
Object.assign({}, state.settings.characterReferences, {
|
|
2122
|
+
// Always encode without parse errors in non-HTML.
|
|
2123
|
+
subset: constants.name[x][y]
|
|
2124
|
+
})
|
|
2125
|
+
);
|
|
2126
|
+
if (value === true) return name;
|
|
2127
|
+
value = Array.isArray(value) ? (info.commaSeparated ? stringify$1 : stringify)(value, {
|
|
2128
|
+
padLeft: !state.settings.tightCommaSeparatedLists
|
|
2129
|
+
}) : String(value);
|
|
2130
|
+
if (state.settings.collapseEmptyAttributes && !value) return name;
|
|
2131
|
+
if (state.settings.preferUnquoted) {
|
|
2132
|
+
result = stringifyEntities(
|
|
2133
|
+
value,
|
|
2134
|
+
Object.assign({}, state.settings.characterReferences, {
|
|
2135
|
+
attribute: true,
|
|
2136
|
+
subset: constants.unquoted[x][y]
|
|
2137
|
+
})
|
|
2138
|
+
);
|
|
2139
|
+
}
|
|
2140
|
+
if (result !== value) {
|
|
2141
|
+
if (state.settings.quoteSmart && ccount(value, quote) > ccount(value, state.alternative)) {
|
|
2142
|
+
quote = state.alternative;
|
|
2143
|
+
}
|
|
2144
|
+
result = quote + stringifyEntities(
|
|
2145
|
+
value,
|
|
2146
|
+
Object.assign({}, state.settings.characterReferences, {
|
|
2147
|
+
// Always encode without parse errors in non-HTML.
|
|
2148
|
+
subset: (quote === "'" ? constants.single : constants.double)[x][y],
|
|
2149
|
+
attribute: true
|
|
2150
|
+
})
|
|
2151
|
+
) + quote;
|
|
2152
|
+
}
|
|
2153
|
+
return name + (result ? "=" + result : result);
|
|
2154
|
+
}
|
|
2155
|
+
const textEntitySubset = ["<", "&"];
|
|
2156
|
+
function text(node, _, parent, state) {
|
|
2157
|
+
return parent && parent.type === "element" && (parent.tagName === "script" || parent.tagName === "style") ? node.value : stringifyEntities(
|
|
2158
|
+
node.value,
|
|
2159
|
+
Object.assign({}, state.settings.characterReferences, {
|
|
2160
|
+
subset: textEntitySubset
|
|
2161
|
+
})
|
|
2162
|
+
);
|
|
2163
|
+
}
|
|
2164
|
+
function raw(node, index, parent, state) {
|
|
2165
|
+
return state.settings.allowDangerousHtml ? node.value : text(node, index, parent, state);
|
|
2166
|
+
}
|
|
2167
|
+
function root(node, _1, _2, state) {
|
|
2168
|
+
return state.all(node);
|
|
2169
|
+
}
|
|
2170
|
+
const handle = zwitch("type", {
|
|
2171
|
+
invalid,
|
|
2172
|
+
unknown,
|
|
2173
|
+
handlers: { comment, doctype, element, raw, root, text }
|
|
2174
|
+
});
|
|
2175
|
+
function invalid(node) {
|
|
2176
|
+
throw new Error("Expected node, not `" + node + "`");
|
|
2177
|
+
}
|
|
2178
|
+
function unknown(node_) {
|
|
2179
|
+
const node = (
|
|
2180
|
+
/** @type {Nodes} */
|
|
2181
|
+
node_
|
|
2182
|
+
);
|
|
2183
|
+
throw new Error("Cannot compile unknown node `" + node.type + "`");
|
|
2184
|
+
}
|
|
2185
|
+
const emptyOptions = {};
|
|
2186
|
+
const emptyCharacterReferences = {};
|
|
2187
|
+
const emptyChildren = [];
|
|
2188
|
+
function toHtml(tree, options) {
|
|
2189
|
+
const options_ = options || emptyOptions;
|
|
2190
|
+
const quote = options_.quote || '"';
|
|
2191
|
+
const alternative = quote === '"' ? "'" : '"';
|
|
2192
|
+
if (quote !== '"' && quote !== "'") {
|
|
2193
|
+
throw new Error("Invalid quote `" + quote + "`, expected `'` or `\"`");
|
|
2194
|
+
}
|
|
2195
|
+
const state = {
|
|
2196
|
+
one,
|
|
2197
|
+
all,
|
|
2198
|
+
settings: {
|
|
2199
|
+
omitOptionalTags: options_.omitOptionalTags || false,
|
|
2200
|
+
allowParseErrors: options_.allowParseErrors || false,
|
|
2201
|
+
allowDangerousCharacters: options_.allowDangerousCharacters || false,
|
|
2202
|
+
quoteSmart: options_.quoteSmart || false,
|
|
2203
|
+
preferUnquoted: options_.preferUnquoted || false,
|
|
2204
|
+
tightAttributes: options_.tightAttributes || false,
|
|
2205
|
+
upperDoctype: options_.upperDoctype || false,
|
|
2206
|
+
tightDoctype: options_.tightDoctype || false,
|
|
2207
|
+
bogusComments: options_.bogusComments || false,
|
|
2208
|
+
tightCommaSeparatedLists: options_.tightCommaSeparatedLists || false,
|
|
2209
|
+
tightSelfClosing: options_.tightSelfClosing || false,
|
|
2210
|
+
collapseEmptyAttributes: options_.collapseEmptyAttributes || false,
|
|
2211
|
+
allowDangerousHtml: options_.allowDangerousHtml || false,
|
|
2212
|
+
voids: options_.voids || htmlVoidElements,
|
|
2213
|
+
characterReferences: options_.characterReferences || emptyCharacterReferences,
|
|
2214
|
+
closeSelfClosing: options_.closeSelfClosing || false,
|
|
2215
|
+
closeEmptyElements: options_.closeEmptyElements || false
|
|
2216
|
+
},
|
|
2217
|
+
schema: options_.space === "svg" ? svg : html$2,
|
|
2218
|
+
quote,
|
|
2219
|
+
alternative
|
|
2220
|
+
};
|
|
2221
|
+
return state.one(
|
|
2222
|
+
Array.isArray(tree) ? { type: "root", children: tree } : tree,
|
|
2223
|
+
void 0,
|
|
2224
|
+
void 0
|
|
2225
|
+
);
|
|
2226
|
+
}
|
|
2227
|
+
function one(node, index, parent) {
|
|
2228
|
+
return handle(node, index, parent, this);
|
|
2229
|
+
}
|
|
2230
|
+
function all(parent) {
|
|
2231
|
+
const results = [];
|
|
2232
|
+
const children = parent && parent.children || emptyChildren;
|
|
2233
|
+
let index = -1;
|
|
2234
|
+
while (++index < children.length) {
|
|
2235
|
+
results[index] = this.one(children[index], index, parent);
|
|
2236
|
+
}
|
|
2237
|
+
return results.join("");
|
|
2238
|
+
}
|
|
2239
|
+
function isWorkerContext() {
|
|
2240
|
+
return typeof WorkerGlobalScope !== "undefined" && typeof self !== "undefined" && self instanceof WorkerGlobalScope;
|
|
2241
|
+
}
|
|
2242
|
+
function createCachedLoader(loader) {
|
|
2243
|
+
let cached;
|
|
2244
|
+
return () => cached ??= loader().then((loaded) => {
|
|
2245
|
+
cached = loaded;
|
|
2246
|
+
return loaded;
|
|
2247
|
+
}, (error) => {
|
|
2248
|
+
cached = void 0;
|
|
2249
|
+
throw error;
|
|
2250
|
+
});
|
|
2251
|
+
}
|
|
2252
|
+
const customThemes = /* @__PURE__ */ new Map();
|
|
2253
|
+
const resolvers = /* @__PURE__ */ new Map();
|
|
2254
|
+
const loadHighlightsThemeCatalog = createCachedLoader(() => import("./loader-q6EC19QI.js"));
|
|
2255
|
+
const loadPierreThemeCatalog = createCachedLoader(() => import("./themes-KOxcu5sY.js"));
|
|
2256
|
+
const loadShikiCore = createCachedLoader(() => import("./core-COuvbqNs.js").then(function(n) {
|
|
2257
|
+
return n.b;
|
|
2258
|
+
}));
|
|
2259
|
+
const ZED_COLOR_ALIASES = [
|
|
2260
|
+
["editor.lineHighlightBackground", "editor.active_line.background"],
|
|
2261
|
+
["editor.selectionBackground", "element.selected"],
|
|
2262
|
+
["editor.findMatchBackground", "search.match_background"],
|
|
2263
|
+
["editor.findMatchHighlightBackground", "search.match_background"],
|
|
2264
|
+
["editorBracketMatch.background", "editor.document_highlight.bracket_background"],
|
|
2265
|
+
["editorError.foreground", "error"],
|
|
2266
|
+
["editorWarning.foreground", "warning"],
|
|
2267
|
+
["editorInfo.foreground", "info"],
|
|
2268
|
+
["editorHint.foreground", "hint"],
|
|
2269
|
+
[
|
|
2270
|
+
"gitDecoration.addedResourceForeground",
|
|
2271
|
+
"created",
|
|
2272
|
+
"terminal.ansi.green"
|
|
2273
|
+
],
|
|
2274
|
+
[
|
|
2275
|
+
"gitDecoration.deletedResourceForeground",
|
|
2276
|
+
"deleted",
|
|
2277
|
+
"terminal.ansi.red"
|
|
2278
|
+
],
|
|
2279
|
+
[
|
|
2280
|
+
"gitDecoration.modifiedResourceForeground",
|
|
2281
|
+
"modified",
|
|
2282
|
+
"terminal.ansi.blue"
|
|
2283
|
+
]
|
|
2284
|
+
];
|
|
2285
|
+
function createHighlightsTheme(name, raw2) {
|
|
2286
|
+
const theme = "themes" in raw2 ? raw2.themes[0] : raw2;
|
|
2287
|
+
if (theme == null) throw new Error(`Theme "${name}" is an empty Zed theme family.`);
|
|
2288
|
+
const zed = {
|
|
2289
|
+
...theme,
|
|
2290
|
+
name
|
|
2291
|
+
};
|
|
2292
|
+
const colors = {};
|
|
2293
|
+
for (const [key2, value] of Object.entries(zed.style)) if (typeof value === "string") colors[key2] = value;
|
|
2294
|
+
const player = zed.style.players?.[0];
|
|
2295
|
+
if (player?.cursor != null) colors["editorCursor.foreground"] ??= player.cursor;
|
|
2296
|
+
if (player?.selection != null) colors["editor.selectionBackground"] ??= player.selection;
|
|
2297
|
+
for (const [target, ...sources] of ZED_COLOR_ALIASES) {
|
|
2298
|
+
if (colors[target] != null) continue;
|
|
2299
|
+
const source = sources.find((key2) => colors[key2] != null);
|
|
2300
|
+
if (source != null) colors[target] = colors[source];
|
|
2301
|
+
}
|
|
2302
|
+
if (zed.cssVariables === true) {
|
|
2303
|
+
colors["editor.foreground"] = "var(--hls-foreground)";
|
|
2304
|
+
colors["editor.background"] = "var(--hls-background)";
|
|
2305
|
+
} else if (typeof zed.cssVariables === "object") {
|
|
2306
|
+
colors["editor.foreground"] ??= colors.text ?? colors.foreground ?? "foreground";
|
|
2307
|
+
colors["editor.background"] ??= colors.background ?? "background";
|
|
2308
|
+
const { prefix = "--hls-", defaults } = zed.cssVariables;
|
|
2309
|
+
for (const [key2, value] of Object.entries(colors)) {
|
|
2310
|
+
const fallback = defaults?.[value];
|
|
2311
|
+
colors[key2] = `var(${prefix}${value}${fallback ? `, ${fallback}` : ""})`;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
const type = zed.appearance === "light" ? "light" : "dark";
|
|
2315
|
+
return {
|
|
2316
|
+
name,
|
|
2317
|
+
type,
|
|
2318
|
+
colors,
|
|
2319
|
+
zed,
|
|
2320
|
+
fg: colors["editor.foreground"] ?? colors.text ?? colors.foreground ?? (type === "light" ? "#333333" : "#bbbbbb"),
|
|
2321
|
+
bg: colors["editor.background"] ?? colors.background ?? (type === "light" ? "#ffffff" : "#1e1e1e")
|
|
2322
|
+
};
|
|
2323
|
+
}
|
|
2324
|
+
function createDiffsThemeResolver(backend) {
|
|
2325
|
+
let resolver = resolvers.get(backend);
|
|
2326
|
+
if (resolver != null) return resolver;
|
|
2327
|
+
resolver = createThemeResolver({
|
|
2328
|
+
fallbackLoader: async (name) => {
|
|
2329
|
+
if (typeof __DIFFS_WORKER__ !== "undefined" ? __DIFFS_WORKER__ : isWorkerContext()) throw new Error(`Theme "${name}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedThemes parameter.`);
|
|
2330
|
+
const custom = customThemes.get(name);
|
|
2331
|
+
if (backend === "highlights") {
|
|
2332
|
+
const loader = custom?.zed ?? custom?.diffs;
|
|
2333
|
+
if (loader != null) {
|
|
2334
|
+
const loaded = await loader();
|
|
2335
|
+
const theme = "default" in loaded ? loaded.default : loaded;
|
|
2336
|
+
if ("zed" in theme && theme.zed != null) return theme;
|
|
2337
|
+
if ("style" in theme || "themes" in theme) return createHighlightsTheme(name, theme);
|
|
2338
|
+
throw new Error(`Theme "${name}" is a TextMate theme; register a Zed theme with registerCustomTheme(name, loader, 'zed') for Highlights.`);
|
|
2339
|
+
}
|
|
2340
|
+
const catalog = loadHighlightsThemeCatalog();
|
|
2341
|
+
const { themes } = catalog instanceof Promise ? await catalog : catalog;
|
|
2342
|
+
const bundledLoader = themes[name];
|
|
2343
|
+
if (bundledLoader != null) return createHighlightsTheme(name, (await bundledLoader()).default);
|
|
2344
|
+
if (custom?.textmate != null) throw new Error(`Theme "${name}" is only registered for TextMate; use registerCustomTheme(name, loader, 'zed') for Highlights.`);
|
|
2345
|
+
} else {
|
|
2346
|
+
const loader = custom?.textmate ?? custom?.diffs;
|
|
2347
|
+
let loaded;
|
|
2348
|
+
if (loader != null) {
|
|
2349
|
+
const result = await loader();
|
|
2350
|
+
loaded = "default" in result ? result.default : result;
|
|
2351
|
+
} else {
|
|
2352
|
+
const catalog = loadPierreThemeCatalog();
|
|
2353
|
+
const { themes } = catalog instanceof Promise ? await catalog : catalog;
|
|
2354
|
+
const descriptor = themes.getTheme(name);
|
|
2355
|
+
if (descriptor == null && custom?.zed != null) throw new Error(`Theme "${name}" is only registered for Zed; use registerCustomTheme(name, loader, 'textmate') for Shiki.`);
|
|
2356
|
+
if (descriptor == null) throw new Error(`No valid theme loader registered for "${name}"`);
|
|
2357
|
+
const result = await descriptor.load();
|
|
2358
|
+
loaded = "default" in result ? result.default : result;
|
|
2359
|
+
}
|
|
2360
|
+
if ("style" in loaded || "themes" in loaded) throw new Error(`Theme "${name}" is a Zed theme; use preferredHighlighter: 'highlights' or register a TextMate theme for Shiki.`);
|
|
2361
|
+
const core2 = loadShikiCore();
|
|
2362
|
+
const { normalizeTheme, createCssVariablesTheme } = core2 instanceof Promise ? await core2 : core2;
|
|
2363
|
+
if ("cssVariables" in loaded && loaded.cssVariables != null) return {
|
|
2364
|
+
...loaded,
|
|
2365
|
+
textmate: normalizeTheme(createCssVariablesTheme(loaded.cssVariables))
|
|
2366
|
+
};
|
|
2367
|
+
if ("textmate" in loaded && loaded.textmate != null) return {
|
|
2368
|
+
...loaded,
|
|
2369
|
+
textmate: normalizeTheme(loaded.textmate)
|
|
2370
|
+
};
|
|
2371
|
+
const textmate = normalizeTheme(loaded);
|
|
2372
|
+
return {
|
|
2373
|
+
name: textmate.name,
|
|
2374
|
+
type: textmate.type,
|
|
2375
|
+
fg: textmate.fg,
|
|
2376
|
+
bg: textmate.bg,
|
|
2377
|
+
colors: textmate.colors,
|
|
2378
|
+
textmate
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
throw new Error(`No valid theme loader registered for "${name}"`);
|
|
2382
|
+
},
|
|
2383
|
+
normalizeTheme: (theme, name) => {
|
|
2384
|
+
if (theme.name !== name) throw new Error(`resolvedTheme: themeName: ${name} does not match theme.name: ${theme.name}`);
|
|
2385
|
+
return theme;
|
|
2386
|
+
}
|
|
2387
|
+
});
|
|
2388
|
+
resolvers.set(backend, resolver);
|
|
2389
|
+
return resolver;
|
|
2390
|
+
}
|
|
2391
|
+
const VOID_ELEMENTS = /* @__PURE__ */ new Set([
|
|
2392
|
+
"area",
|
|
2393
|
+
"base",
|
|
2394
|
+
"basefont",
|
|
2395
|
+
"bgsound",
|
|
2396
|
+
"br",
|
|
2397
|
+
"col",
|
|
2398
|
+
"command",
|
|
2399
|
+
"embed",
|
|
2400
|
+
"frame",
|
|
2401
|
+
"hr",
|
|
2402
|
+
"image",
|
|
2403
|
+
"img",
|
|
2404
|
+
"input",
|
|
2405
|
+
"keygen",
|
|
2406
|
+
"link",
|
|
2407
|
+
"meta",
|
|
2408
|
+
"param",
|
|
2409
|
+
"source",
|
|
2410
|
+
"track",
|
|
2411
|
+
"wbr"
|
|
2412
|
+
]);
|
|
2413
|
+
const DELEGATED_TAGS = /* @__PURE__ */ new Set([
|
|
2414
|
+
"svg",
|
|
2415
|
+
"template",
|
|
2416
|
+
"script",
|
|
2417
|
+
"style"
|
|
2418
|
+
]);
|
|
2419
|
+
const ATTRIBUTE_NAMES = {
|
|
2420
|
+
class: "class",
|
|
2421
|
+
className: "class",
|
|
2422
|
+
id: "id",
|
|
2423
|
+
role: "role",
|
|
2424
|
+
style: "style",
|
|
2425
|
+
tabIndex: "tabindex",
|
|
2426
|
+
tabindex: "tabindex",
|
|
2427
|
+
title: "title"
|
|
2428
|
+
};
|
|
2429
|
+
const DATA_ATTRIBUTE = /^data-[\w.:-]+$/;
|
|
2430
|
+
const TEXT_ESCAPE = /[<&]/g;
|
|
2431
|
+
const ATTRIBUTE_ESCAPE = /[\0"&'`]/g;
|
|
2432
|
+
const CHARACTER_REFERENCES = {
|
|
2433
|
+
"<": "<",
|
|
2434
|
+
"&": "&",
|
|
2435
|
+
'"': """,
|
|
2436
|
+
"'": "'",
|
|
2437
|
+
"`": "`",
|
|
2438
|
+
"\0": "�"
|
|
2439
|
+
};
|
|
2440
|
+
const MAX_CACHED_STYLES = 256;
|
|
2441
|
+
function hastToHtml(tree) {
|
|
2442
|
+
const styles = /* @__PURE__ */ new Map();
|
|
2443
|
+
return Array.isArray(tree) ? serializeChildren(tree, styles) : serializeNode(tree, styles);
|
|
2444
|
+
}
|
|
2445
|
+
function serializeChildren(children, styles) {
|
|
2446
|
+
let html2 = "";
|
|
2447
|
+
for (const child of children) html2 += serializeNode(child, styles);
|
|
2448
|
+
return html2;
|
|
2449
|
+
}
|
|
2450
|
+
function serializeNode(node, styles) {
|
|
2451
|
+
switch (node.type) {
|
|
2452
|
+
case "text":
|
|
2453
|
+
return escapeText(node.value);
|
|
2454
|
+
case "element":
|
|
2455
|
+
return serializeElement(node, styles);
|
|
2456
|
+
case "root":
|
|
2457
|
+
return serializeChildren(node.children, styles);
|
|
2458
|
+
default:
|
|
2459
|
+
return toHtml(node);
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
function serializeElement(node, styles) {
|
|
2463
|
+
const { tagName } = node;
|
|
2464
|
+
if (tagName === "span" && node.children.length === 1 && node.children[0].type === "text" && typeof node.properties?.style === "string") {
|
|
2465
|
+
let styleOnly = true;
|
|
2466
|
+
for (const key2 in node.properties) if (key2 !== "style" && node.properties[key2] != null) {
|
|
2467
|
+
styleOnly = false;
|
|
2468
|
+
break;
|
|
2469
|
+
}
|
|
2470
|
+
if (styleOnly) return `<span ${serializeStyle(node.properties.style, styles)}>${escapeText(node.children[0].value)}</span>`;
|
|
2471
|
+
}
|
|
2472
|
+
if (DELEGATED_TAGS.has(tagName)) return toHtml(node);
|
|
2473
|
+
const attributes = serializeAttributes(node.properties, styles);
|
|
2474
|
+
if (attributes == null) return toHtml(node);
|
|
2475
|
+
const open = attributes === "" ? `<${tagName}>` : `<${tagName} ${attributes}>`;
|
|
2476
|
+
const content = serializeChildren(node.children, styles);
|
|
2477
|
+
if (content === "" && VOID_ELEMENTS.has(tagName.toLowerCase())) return open;
|
|
2478
|
+
return `${open}${content}</${tagName}>`;
|
|
2479
|
+
}
|
|
2480
|
+
function serializeStyle(value, styles) {
|
|
2481
|
+
let attribute = styles.get(value);
|
|
2482
|
+
if (attribute == null) {
|
|
2483
|
+
attribute = `style="${escapeAttribute(value)}"`;
|
|
2484
|
+
if (styles.size < MAX_CACHED_STYLES) styles.set(value, attribute);
|
|
2485
|
+
}
|
|
2486
|
+
return attribute;
|
|
2487
|
+
}
|
|
2488
|
+
function serializeAttributes(properties, styles) {
|
|
2489
|
+
let attributes = "";
|
|
2490
|
+
for (const key2 in properties) {
|
|
2491
|
+
const value = properties[key2];
|
|
2492
|
+
if (value == null) continue;
|
|
2493
|
+
const name = ATTRIBUTE_NAMES[key2] ?? (DATA_ATTRIBUTE.test(key2) ? key2 : void 0);
|
|
2494
|
+
if (name == null) return;
|
|
2495
|
+
if (value === false || typeof value === "number" && Number.isNaN(value)) continue;
|
|
2496
|
+
const attribute = key2 === "style" && typeof value === "string" ? serializeStyle(value, styles) : value === true ? name : `${name}="${escapeAttribute(Array.isArray(value) ? value.join(" ").trim() : String(value))}"`;
|
|
2497
|
+
attributes += attributes === "" ? attribute : ` ${attribute}`;
|
|
2498
|
+
}
|
|
2499
|
+
return attributes;
|
|
2500
|
+
}
|
|
2501
|
+
function escapeText(value) {
|
|
2502
|
+
return value.indexOf("<") < 0 && value.indexOf("&") < 0 ? value : value.replace(TEXT_ESCAPE, toCharacterReference);
|
|
2503
|
+
}
|
|
2504
|
+
function escapeAttribute(value) {
|
|
2505
|
+
return value.replace(ATTRIBUTE_ESCAPE, toCharacterReference);
|
|
2506
|
+
}
|
|
2507
|
+
function toCharacterReference(character) {
|
|
2508
|
+
return CHARACTER_REFERENCES[character];
|
|
2509
|
+
}
|
|
2510
|
+
function tokensToHtml(source, result, options, cacheHtmlStyles = false) {
|
|
2511
|
+
const lineOffsets = [0];
|
|
2512
|
+
if (options.decorations?.some((item) => typeof item.start === "number" || typeof item.end === "number") === true) for (let index = source.indexOf("\n"); index !== -1; index = source.indexOf("\n", index + 1)) lineOffsets.push(index + 1);
|
|
2513
|
+
const code = {
|
|
2514
|
+
type: "element",
|
|
2515
|
+
tagName: "code",
|
|
2516
|
+
properties: {},
|
|
2517
|
+
children: []
|
|
2518
|
+
};
|
|
2519
|
+
const lines = renderTokenLines(result.tokens, {
|
|
2520
|
+
decorations: options.decorations,
|
|
2521
|
+
mergeWhitespaces: options.mergeWhitespaces,
|
|
2522
|
+
lineOffsets,
|
|
2523
|
+
cacheHtmlStyles
|
|
2524
|
+
});
|
|
2525
|
+
for (let i = 0; i < lines.length; i++) {
|
|
2526
|
+
if (i > 0) code.children.push({
|
|
2527
|
+
type: "text",
|
|
2528
|
+
value: "\n"
|
|
2529
|
+
});
|
|
2530
|
+
code.children.push(lines[i]);
|
|
2531
|
+
}
|
|
2532
|
+
return hastToHtml({
|
|
2533
|
+
type: "root",
|
|
2534
|
+
children: [{
|
|
2535
|
+
type: "element",
|
|
2536
|
+
tagName: "pre",
|
|
2537
|
+
properties: {
|
|
2538
|
+
class: "diffs",
|
|
2539
|
+
style: result.rootStyle === false ? void 0 : result.rootStyle ?? [result.fg != null ? `color:${result.fg}` : "", result.bg != null ? `background-color:${result.bg}` : ""].filter(Boolean).join(";"),
|
|
2540
|
+
tabIndex: 0
|
|
2541
|
+
},
|
|
2542
|
+
children: [code]
|
|
2543
|
+
}]
|
|
2544
|
+
});
|
|
2545
|
+
}
|
|
2546
|
+
var DiffsHighlighter = class {
|
|
2547
|
+
name;
|
|
2548
|
+
themeResolver;
|
|
2549
|
+
disposed = false;
|
|
2550
|
+
constructor(name, themeResolver) {
|
|
2551
|
+
this.name = name;
|
|
2552
|
+
this.themeResolver = themeResolver;
|
|
2553
|
+
acquireHighlighterType(name);
|
|
2554
|
+
}
|
|
2555
|
+
codeToHtml(code, options) {
|
|
2556
|
+
return tokensToHtml(code, this.codeToTokens(code, options), options, this.name === "highlights");
|
|
2557
|
+
}
|
|
2558
|
+
get isDisposed() {
|
|
2559
|
+
return this.disposed;
|
|
2560
|
+
}
|
|
2561
|
+
/**
|
|
2562
|
+
* Disposed instances cannot be reused.
|
|
2563
|
+
*/
|
|
2564
|
+
dispose() {
|
|
2565
|
+
if (this.disposed) return;
|
|
2566
|
+
this.disposed = true;
|
|
2567
|
+
this.releaseResources();
|
|
2568
|
+
releaseHighlighterType();
|
|
2569
|
+
}
|
|
2570
|
+
assertNotDisposed() {
|
|
2571
|
+
if (this.disposed) throw new HighlighterDisposedError();
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2574
|
+
var BaseStreamTokenizer = class {
|
|
2575
|
+
disposed = false;
|
|
2576
|
+
/** Stream offset of the provisional line's first character. */
|
|
2577
|
+
stableOffset = 0;
|
|
2578
|
+
unstable = [];
|
|
2579
|
+
pendingCarriageReturn = "";
|
|
2580
|
+
enqueue(chunk) {
|
|
2581
|
+
this.assertActive();
|
|
2582
|
+
chunk = this.pendingCarriageReturn + chunk;
|
|
2583
|
+
this.pendingCarriageReturn = chunk.endsWith("\r") ? "\r" : "";
|
|
2584
|
+
if (this.pendingCarriageReturn !== "") chunk = chunk.slice(0, -1);
|
|
2585
|
+
const recall = this.unstable.length;
|
|
2586
|
+
const stable = [];
|
|
2587
|
+
const { unstable, tailLength } = this.tokenizeChunk(chunk, stable);
|
|
2588
|
+
if (this.pendingCarriageReturn !== "") unstable.push({
|
|
2589
|
+
content: "\r",
|
|
2590
|
+
offset: this.stableOffset + tailLength
|
|
2591
|
+
});
|
|
2592
|
+
this.unstable = unstable;
|
|
2593
|
+
return {
|
|
2594
|
+
recall,
|
|
2595
|
+
stable,
|
|
2596
|
+
unstable
|
|
2597
|
+
};
|
|
2598
|
+
}
|
|
2599
|
+
/** Emit one token per line-break character and move past the line. */
|
|
2600
|
+
pushLineBreak(stable, lineLength, lineBreak) {
|
|
2601
|
+
for (let index = 0; index < lineBreak.length; index++) stable.push({
|
|
2602
|
+
content: lineBreak[index],
|
|
2603
|
+
offset: this.stableOffset + lineLength + index
|
|
2604
|
+
});
|
|
2605
|
+
this.stableOffset += lineLength + lineBreak.length;
|
|
2606
|
+
}
|
|
2607
|
+
close() {
|
|
2608
|
+
const stable = this.unstable;
|
|
2609
|
+
this.dispose();
|
|
2610
|
+
return { stable };
|
|
2611
|
+
}
|
|
2612
|
+
clear() {
|
|
2613
|
+
this.assertActive();
|
|
2614
|
+
this.stableOffset = 0;
|
|
2615
|
+
this.unstable = [];
|
|
2616
|
+
this.pendingCarriageReturn = "";
|
|
2617
|
+
this.resetSource();
|
|
2618
|
+
}
|
|
2619
|
+
dispose() {
|
|
2620
|
+
if (this.disposed) return;
|
|
2621
|
+
this.disposed = true;
|
|
2622
|
+
this.unstable = [];
|
|
2623
|
+
this.releaseSource();
|
|
2624
|
+
}
|
|
2625
|
+
copyStateTo(clone) {
|
|
2626
|
+
clone.stableOffset = this.stableOffset;
|
|
2627
|
+
clone.unstable = this.unstable.slice();
|
|
2628
|
+
clone.pendingCarriageReturn = this.pendingCarriageReturn;
|
|
2629
|
+
}
|
|
2630
|
+
assertActive() {
|
|
2631
|
+
if (this.disposed) throw new Error("stream tokenizer is disposed");
|
|
2632
|
+
}
|
|
2633
|
+
};
|
|
2634
|
+
export {
|
|
2635
|
+
BaseStreamTokenizer as B,
|
|
2636
|
+
DiffsHighlighter as D,
|
|
2637
|
+
createDiffsThemeResolver as c,
|
|
2638
|
+
isWorkerContext as i,
|
|
2639
|
+
toHtml as t,
|
|
2640
|
+
unwrapDefault as u
|
|
2641
|
+
};
|