@remarkablejames/editor 0.0.2 → 0.0.4
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/lib/{ActionMenuButton-Bmn3RME4.js → ActionMenuButton-BUtJUsfO.js} +9 -10
- package/lib/ActionMenuButton-M55VtCZ5.cjs +1 -0
- package/lib/Attachment.cjs +2 -2
- package/lib/Attachment.js +166 -133
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +13 -12
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +11 -10
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +9 -8
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +42 -46
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +13 -14
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +6 -5
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +30 -31
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +9 -8
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +18 -19
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +9 -8
- package/lib/Drawer-CdQBnwUs.cjs +2 -0
- package/lib/{Drawer-DvGh9aXG.js → Drawer-mlmJ2nCT.js} +41 -47
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +15 -16
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +24 -28
- package/lib/ExportPdf.cjs +3 -3
- package/lib/ExportPdf.js +14 -13
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +6 -6
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +8 -7
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +16 -15
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +27 -27
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +22 -23
- package/lib/History.cjs +1 -1
- package/lib/History.js +11 -11
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +10 -9
- package/lib/Iframe-B_a_AoZc.cjs +1 -0
- package/lib/{Iframe-CnnvV6cK.js → Iframe-CYgR99Ny.js} +11 -13
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +4 -5
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +79 -82
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +26 -27
- package/lib/Indent-BAcoFdaq.cjs +1 -0
- package/lib/{Indent-Bsj8gKvT.js → Indent-BMz2ILRl.js} +31 -30
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +12 -11
- package/lib/{Katex-CilGTz7u.js → Katex-DOlb4iTP.js} +19 -22
- package/lib/Katex-bIhj82VV.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +19 -20
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/LinkEditBlock-Cqs5RxjV.cjs +5 -0
- package/lib/{LinkEditBlock-BD_WvA3r.js → LinkEditBlock-xnokk4G7.js} +19 -24
- package/lib/Mention.js +3 -3
- package/lib/{Mermaid-BrjU75Bs.js → Mermaid-Bs3pIGc6.js} +45 -48
- package/lib/Mermaid-DiOdgQv1.cjs +2 -0
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +26 -28
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +11 -10
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +37 -42
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +6 -6
- package/lib/SlashCommandNodeView-CLimjqhb.cjs +1 -0
- package/lib/{SlashCommandNodeView-COx5qZ2y.js → SlashCommandNodeView-CYcf7mVz.js} +67 -79
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +12 -11
- package/lib/{Table-BlM8yMhr.js → Table-bz1Wcojf.js} +47 -47
- package/lib/Table-dlXTKKwJ.cjs +5 -0
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +12 -11
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +26 -27
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +18 -19
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +9 -8
- package/lib/{Twitter-BP8sYXX7.js → Twitter-CNTXzgt0.js} +18 -22
- package/lib/Twitter-DhEnGg6P.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +5 -6
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +78 -87
- package/lib/{clsx-m_C5j3RU.js → clsx-CDyrfCnw.js} +24 -24
- package/lib/{dropdown-menu-C1hdPLCZ.js → dropdown-menu-BuSlU2uN.js} +1 -1
- package/lib/{dropdown-menu-CkHN04Mx.cjs → dropdown-menu-CfWNst4v.cjs} +1 -1
- package/lib/extensions/Attachment/Attachment.d.ts +22 -2
- package/lib/extensions/Image/Image.d.ts +11 -0
- package/lib/extensions/Image/components/ImageCropper.d.ts +1 -1
- package/lib/index-8B00E8e4.js +5055 -0
- package/lib/index-BrxL7y9p.cjs +1 -0
- package/lib/index-Bt9LiArC.cjs +10 -0
- package/lib/{index-B3Ijnbxs.js → index-C-tDsIKJ.js} +1 -1
- package/lib/{index-C1KQsOcg.js → index-C1WCZhyA.js} +1 -1
- package/lib/{index-C8FjP66D.js → index-CsSfYR30.js} +1 -1
- package/lib/{index-4Q5IhypJ.js → index-DZfkCNKr.js} +15 -9
- package/lib/{index-s3l5RdyW.js → index-DjDf4BK8.js} +1 -1
- package/lib/index.cjs +4 -4
- package/lib/index.js +147 -392
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/en.d.ts +189 -188
- package/lib/locales/fi.d.ts +189 -188
- package/lib/locales/hu.d.ts +189 -188
- package/lib/locales/index.d.ts +1134 -1128
- package/lib/locales/pt-br.d.ts +189 -188
- package/lib/locales/vi.d.ts +189 -188
- package/lib/locales/zh-cn.d.ts +189 -188
- package/lib/{popover-B05Fd8lC.cjs → popover-51mwx3UY.cjs} +1 -1
- package/lib/{popover-CsSXh7w6.js → popover-DMPRgXD3.js} +1 -1
- package/lib/{renderNodeView-C_hPIdEs.js → renderNodeView-BJSrgyGj.js} +2 -2
- package/lib/{select-7ubC1NF0.cjs → select-B7v1Scb-.cjs} +1 -1
- package/lib/{select-B3-5wTqn.js → select-BxFDMaZi.js} +1 -1
- package/lib/{separator-CYCA8tSn.js → separator-CpqX9KQC.js} +12 -13
- package/lib/separator-kB9YUfeO.cjs +1 -0
- package/lib/style.css +1 -1
- package/lib/{textarea-1FhpmBkP.js → textarea-C5DsgzSy.js} +1 -1
- package/lib/{textarea-Bjhcpp76.cjs → textarea-bQSzjqg3.cjs} +1 -1
- package/lib/theme/theme.d.ts +1 -1
- package/lib/{updatePosition-DvfTZHcH.js → updatePosition-e90ZrFWW.js} +2 -2
- package/package.json +1 -1
- package/lib/ActionMenuButton-C5P0Kzrb.cjs +0 -1
- package/lib/Drawer-gz9U5ArC.cjs +0 -2
- package/lib/Icon-CKM0tYbW.js +0 -15
- package/lib/Icon-CQyFgXeo.cjs +0 -1
- package/lib/Iframe-Ds6gG2YO.cjs +0 -1
- package/lib/ImageCropper-BKhXlnXN.cjs +0 -1
- package/lib/ImageCropper-DUzu_9-6.js +0 -896
- package/lib/Indent-D_7HOYYd.cjs +0 -1
- package/lib/Katex-lL3bHXJd.cjs +0 -4
- package/lib/LinkEditBlock-D3HSHmsU.cjs +0 -5
- package/lib/Mermaid-BfeLPzoS.cjs +0 -2
- package/lib/SlashCommandNodeView-DD-nlhM-.cjs +0 -1
- package/lib/Table-C21AlUrh.cjs +0 -5
- package/lib/Twitter-D46MnvPr.cjs +0 -1
- package/lib/Video-Bpd8W8l6.js +0 -231
- package/lib/Video-BwrHx6B1.cjs +0 -1
- package/lib/button-BmTP96NR.cjs +0 -1
- package/lib/button-CDIxPURh.js +0 -35
- package/lib/checkbox-7sfSdzy9.js +0 -29
- package/lib/checkbox-DyVlLWHv.cjs +0 -1
- package/lib/dialog-B-jOQ5i3.cjs +0 -1
- package/lib/dialog-QWWUWOGP.js +0 -95
- package/lib/events.constant-Bh2uzJud.js +0 -71
- package/lib/events.constant-ELn21EzG.cjs +0 -1
- package/lib/file-BLas99n7.js +0 -43
- package/lib/file-i7e4nQY2.cjs +0 -1
- package/lib/index-CAiZY1nx.js +0 -2741
- package/lib/index-DWSAk_9a.cjs +0 -1
- package/lib/index-bVGIXhRg.cjs +0 -1
- package/lib/input-qvpuOf-3.js +0 -21
- package/lib/input-s0JD5kf2.cjs +0 -1
- package/lib/isNumber-BTYSVlKo.cjs +0 -1
- package/lib/isNumber-WaBzl_0s.js +0 -15
- package/lib/label-CFax-gzo.cjs +0 -1
- package/lib/label-DC37f2RQ.js +0 -11
- package/lib/separator-ncbdw4oq.cjs +0 -1
- package/lib/tabs-BeHxylKH.js +0 -46
- package/lib/tabs-DBqNpGAq.cjs +0 -1
- package/lib/throttle-CRNq0z-O.js +0 -249
- package/lib/throttle-gTTvqDTW.cjs +0 -1
- package/lib/toggle-DoJTBdvy.js +0 -89
- package/lib/toggle-oFwBZC4x.cjs +0 -1
- package/lib/useButtonProps-BE10eHkG.js +0 -165
- package/lib/useButtonProps-CFu0GHzW.cjs +0 -1
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._wrap_1x3wi_1{--editor__bg: #292c33;--widget__border: #3a3f4b;--widget__color: #ccc}._wrap_1x3wi_1 .richtext-node-code-block{width:100%;outline:solid 1px black;overflow:hidden;border-radius:4px;position:relative}._wrap_1x3wi_1 .richtext-code-block-toolbar{display:flex;align-items:center;gap:8px;z-index:10;padding:4px;background-color:var(--editor__bg);color:var(--widget__color);border-bottom:1px solid var(--widget__border)}._wrap_1x3wi_1 .richtext-code-block-toolbar .toolbar-divider{width:1px;height:16px;background-color:var(--widget__border);margin:0 4px}._blockInfoEditable_1x3wi_30{pointer-events:none}._wrap_dra8y_1{position:relative;max-width:100%;overflow:visible;line-height:0}._wrap_dra8y_1 ._renderWrap_dra8y_7{border:1px dashed hsl(var(--border))!important;border-radius:6px}._wrap_dra8y_1 ._renderWrap_dra8y_7:after{background-color:transparent!important}._wrap_dra8y_1 ._title_dra8y_14{position:absolute;top:10px;left:10px;z-index:2}._wrap_dra8y_1 ._title_dra8y_14 ._icon_dra8y_20{display:flex;width:18px;height:18px;color:#fff;background-color:#f80;border-radius:2px;justify-content:center;align-items:center}._wrap_dra8y_1 ._handlerWrap_dra8y_30{position:absolute;right:10px;bottom:10px;z-index:2;padding:2px 4px;border:1px solid hsl(var(--border));border-radius:6px}._disabled_dra8y_40{pointer-events:none!important}._attachment_15oj2_1,._wrap_15oj2_2{border-width:1px!important;border-radius:var(--radius)!important;border-color:hsl(var(--border))!important;padding:8px;display:flex;align-items:center;justify-content:space-between;margin:8px 0}._attachment_15oj2_1 .attachment__icon,._wrap_15oj2_2 .attachment__icon{width:32px;text-align:center}._attachment_15oj2_1 .attachment__icon svg,._wrap_15oj2_2 .attachment__icon svg{width:32px;display:inline-block}:root{--richtext-border-spacing-x: 0;--richtext-border-spacing-y: 0;--richtext-translate-x: 0;--richtext-translate-y: 0;--richtext-rotate: 0;--richtext-skew-x: 0;--richtext-skew-y: 0;--richtext-scale-x: 1;--richtext-scale-y: 1;--richtext-pan-x: ;--richtext-pan-y: ;--richtext-pinch-zoom: ;--richtext-scroll-snap-strictness: proximity;--richtext-gradient-from-position: ;--richtext-gradient-via-position: ;--richtext-gradient-to-position: ;--richtext-ordinal: ;--richtext-slashed-zero: ;--richtext-numeric-figure: ;--richtext-numeric-spacing: ;--richtext-numeric-fraction: ;--richtext-ring-inset: ;--richtext-ring-offset-width: 0px;--richtext-ring-offset-color: #fff;--richtext-ring-color: rgb(59 130 246 / .5);--richtext-ring-offset-shadow: 0 0 #0000;--richtext-ring-shadow: 0 0 #0000;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;--richtext-blur: ;--richtext-brightness: ;--richtext-contrast: ;--richtext-grayscale: ;--richtext-hue-rotate: ;--richtext-invert: ;--richtext-saturate: ;--richtext-sepia: ;--richtext-drop-shadow: ;--richtext-backdrop-blur: ;--richtext-backdrop-brightness: ;--richtext-backdrop-contrast: ;--richtext-backdrop-grayscale: ;--richtext-backdrop-hue-rotate: ;--richtext-backdrop-invert: ;--richtext-backdrop-opacity: ;--richtext-backdrop-saturate: ;--richtext-backdrop-sepia: ;--richtext-contain-size: ;--richtext-contain-layout: ;--richtext-contain-paint: ;--richtext-contain-style: }::backdrop{--richtext-border-spacing-x: 0;--richtext-border-spacing-y: 0;--richtext-translate-x: 0;--richtext-translate-y: 0;--richtext-rotate: 0;--richtext-skew-x: 0;--richtext-skew-y: 0;--richtext-scale-x: 1;--richtext-scale-y: 1;--richtext-pan-x: ;--richtext-pan-y: ;--richtext-pinch-zoom: ;--richtext-scroll-snap-strictness: proximity;--richtext-gradient-from-position: ;--richtext-gradient-via-position: ;--richtext-gradient-to-position: ;--richtext-ordinal: ;--richtext-slashed-zero: ;--richtext-numeric-figure: ;--richtext-numeric-spacing: ;--richtext-numeric-fraction: ;--richtext-ring-inset: ;--richtext-ring-offset-width: 0px;--richtext-ring-offset-color: #fff;--richtext-ring-color: rgb(59 130 246 / .5);--richtext-ring-offset-shadow: 0 0 #0000;--richtext-ring-shadow: 0 0 #0000;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;--richtext-blur: ;--richtext-brightness: ;--richtext-contrast: ;--richtext-grayscale: ;--richtext-hue-rotate: ;--richtext-invert: ;--richtext-saturate: ;--richtext-sepia: ;--richtext-drop-shadow: ;--richtext-backdrop-blur: ;--richtext-backdrop-brightness: ;--richtext-backdrop-contrast: ;--richtext-backdrop-grayscale: ;--richtext-backdrop-hue-rotate: ;--richtext-backdrop-invert: ;--richtext-backdrop-opacity: ;--richtext-backdrop-saturate: ;--richtext-backdrop-sepia: ;--richtext-contain-size: ;--richtext-contain-layout: ;--richtext-contain-paint: ;--richtext-contain-style: }.richtext-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.richtext-pointer-events-none{pointer-events:none}.richtext-pointer-events-auto{pointer-events:auto}.richtext-fixed{position:fixed}.\!richtext-absolute{position:absolute!important}.richtext-absolute{position:absolute}.\!richtext-relative{position:relative!important}.richtext-relative{position:relative}.\!richtext-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.richtext-inset-0{top:0;right:0;bottom:0;left:0}.richtext-inset-y-0{top:0;bottom:0}.-richtext-top-px{top:-1px}.richtext-left-2{left:.5rem}.richtext-left-\[50\%\]{left:50%}.richtext-left-px{left:1px}.richtext-right-2{right:.5rem}.richtext-right-4{right:1rem}.richtext-start-0{inset-inline-start:0px}.richtext-top-0{top:0}.richtext-top-2{top:.5rem}.richtext-top-4{top:1rem}.richtext-top-\[50\%\]{top:50%}.\!richtext-isolate{isolation:isolate!important}.richtext-z-50{z-index:50}.richtext-z-\[100\]{z-index:100}.richtext-z-\[99999\]{z-index:99999}.\!richtext-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.\!richtext-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.\!richtext-my-\[10px\]{margin-top:10px!important;margin-bottom:10px!important}.richtext--mx-1{margin-left:-.25rem;margin-right:-.25rem}.richtext-mx-\[4px\]{margin-left:4px;margin-right:4px}.richtext-mx-auto{margin-left:auto;margin-right:auto}.richtext-my-1{margin-top:.25rem;margin-bottom:.25rem}.richtext-my-4{margin-top:1rem;margin-bottom:1rem}.richtext-my-\[10px\]{margin-top:10px;margin-bottom:10px}.richtext-my-\[12px\]{margin-top:12px;margin-bottom:12px}.richtext-my-\[5px\]{margin-top:5px;margin-bottom:5px}.\!richtext-ml-1\.5{margin-left:.375rem!important}.\!richtext-mr-1{margin-right:.25rem!important}.richtext-mb-2{margin-bottom:.5rem}.richtext-mb-\[10px\]{margin-bottom:10px}.richtext-mb-\[4px\]{margin-bottom:4px}.richtext-mb-\[5px\]{margin-bottom:5px}.richtext-mb-\[6px\]{margin-bottom:6px}.richtext-ml-1{margin-left:.25rem}.richtext-ml-auto{margin-left:auto}.richtext-mt-1{margin-top:.25rem}.richtext-mt-2{margin-top:.5rem}.richtext-mt-\[8px\]{margin-top:8px}.richtext-box-border{box-sizing:border-box}.richtext-block{display:block}.richtext-inline-block{display:inline-block}.\!richtext-flex{display:flex!important}.richtext-flex{display:flex}.richtext-inline-flex{display:inline-flex}.richtext-grid{display:grid}.\!richtext-size-4{width:1rem!important;height:1rem!important}.\!richtext-size-7{width:1.75rem!important;height:1.75rem!important}.richtext-size-10{width:2.5rem;height:2.5rem}.richtext-size-2{width:.5rem;height:.5rem}.richtext-size-3{width:.75rem;height:.75rem}.richtext-size-3\.5{width:.875rem;height:.875rem}.richtext-size-4{width:1rem;height:1rem}.richtext-size-5{width:1.25rem;height:1.25rem}.richtext-size-6{width:1.5rem;height:1.5rem}.richtext-size-7{width:1.75rem;height:1.75rem}.richtext-size-\[18px\]{width:18px;height:18px}.richtext-size-full{width:100%;height:100%}.\!richtext-h-10{height:2.5rem!important}.\!richtext-h-3{height:.75rem!important}.\!richtext-h-4{height:1rem!important}.\!richtext-h-7{height:1.75rem!important}.\!richtext-h-9{height:2.25rem!important}.\!richtext-h-\[16px\]{height:16px!important}.\!richtext-h-\[342px\]{height:342px!important}.richtext-h-10{height:2.5rem}.richtext-h-11{height:2.75rem}.richtext-h-12{height:3rem}.richtext-h-4{height:1rem}.richtext-h-5{height:1.25rem}.richtext-h-6{height:1.5rem}.richtext-h-7{height:1.75rem}.richtext-h-8{height:2rem}.richtext-h-9{height:2.25rem}.richtext-h-\[1px\]{height:1px}.richtext-h-\[32px\]{height:32px}.richtext-h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.richtext-h-auto{height:auto}.richtext-h-full{height:100%}.richtext-h-px{height:1px}.\!richtext-max-h-\[320px\]{max-height:320px!important}.richtext-max-h-60{max-height:15rem}.richtext-max-h-96{max-height:24rem}.richtext-max-h-\[280px\]{max-height:280px}.richtext-max-h-\[320px\]{max-height:320px}.richtext-max-h-\[min\(80vh\,24rem\)\]{max-height:min(80vh,24rem)}.richtext-max-h-screen{max-height:100vh}.richtext-min-h-\[120px\]{min-height:120px}.richtext-min-h-\[80px\]{min-height:80px}.\!richtext-w-12{width:3rem!important}.\!richtext-w-3{width:.75rem!important}.\!richtext-w-4{width:1rem!important}.\!richtext-w-\[160px\]{width:160px!important}.\!richtext-w-\[initial\]{width:initial!important}.\!richtext-w-fit{width:fit-content!important}.\!richtext-w-full{width:100%!important}.richtext-w-11{width:2.75rem}.richtext-w-32{width:8rem}.richtext-w-4{width:1rem}.richtext-w-48{width:12rem}.richtext-w-5{width:1.25rem}.richtext-w-72{width:18rem}.richtext-w-80{width:20rem}.richtext-w-\[160px\]{width:160px}.richtext-w-\[1px\]{width:1px}.richtext-w-\[200px\]{width:200px}.richtext-w-\[32px\]{width:32px}.richtext-w-\[60px\]{width:60px}.richtext-w-fit{width:fit-content}.richtext-w-full{width:100%}.\!richtext-min-w-0{min-width:0px!important}.\!richtext-min-w-\[20px\]{min-width:20px!important}.richtext-min-w-24{min-width:6rem}.richtext-min-w-4{min-width:1rem}.richtext-min-w-48{min-width:12rem}.richtext-min-w-\[200px\]{min-width:200px}.richtext-min-w-\[8rem\]{min-width:8rem}.richtext-min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.\!richtext-max-w-\[1300px\]{max-width:1300px!important}.\!richtext-max-w-\[400px\]{max-width:400px!important}.richtext-max-w-24{max-width:6rem}.richtext-max-w-\[600px\]{max-width:600px}.richtext-max-w-lg{max-width:32rem}.richtext-max-w-sm{max-width:24rem}.richtext-max-w-xs{max-width:20rem}.\!richtext-flex-1{flex:1 1 0%!important}.\!richtext-flex-none{flex:none!important}.richtext-flex-1{flex:1 1 0%}.richtext-flex-\[0_0_auto\]{flex:0 0 auto}.\!richtext-shrink-0{flex-shrink:0!important}.richtext-shrink-0{flex-shrink:0}.richtext-grow{flex-grow:1}.richtext-translate-x-\[-50\%\]{--richtext-translate-x: -50%;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.richtext-translate-y-\[-50\%\]{--richtext-translate-y: -50%;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.\!richtext-animate-spin{animation:richtext-spin 1s linear infinite!important}.richtext-animate-spin{animation:richtext-spin 1s linear infinite}.richtext-cursor-default{cursor:default}.richtext-cursor-pointer{cursor:pointer}.\!richtext-select-none{-webkit-user-select:none!important;user-select:none!important}.richtext-select-none{-webkit-user-select:none;user-select:none}.\!richtext-scroll-my-1{scroll-margin-top:.25rem!important;scroll-margin-bottom:.25rem!important}.richtext-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.richtext-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.richtext-flex-row{flex-direction:row}.\!richtext-flex-col{flex-direction:column!important}.richtext-flex-col{flex-direction:column}.richtext-flex-col-reverse{flex-direction:column-reverse}.richtext-flex-wrap{flex-wrap:wrap}.richtext-flex-nowrap{flex-wrap:nowrap}.\!richtext-items-center{align-items:center!important}.richtext-items-center{align-items:center}.richtext-justify-end{justify-content:flex-end}.\!richtext-justify-center{justify-content:center!important}.richtext-justify-center{justify-content:center}.richtext-justify-between{justify-content:space-between}.\!richtext-gap-1{gap:.25rem!important}.\!richtext-gap-2{gap:.5rem!important}.richtext-gap-0\.5{gap:.125rem}.richtext-gap-1{gap:.25rem}.richtext-gap-1\.5{gap:.375rem}.richtext-gap-2{gap:.5rem}.richtext-gap-3{gap:.75rem}.richtext-gap-4{gap:1rem}.richtext-gap-\[10px\]{gap:10px}.richtext-gap-\[4px\]{gap:4px}.richtext-space-x-4>:not([hidden])~:not([hidden]){--richtext-space-x-reverse: 0;margin-right:calc(1rem * var(--richtext-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--richtext-space-x-reverse)))}.richtext-space-y-1\.5>:not([hidden])~:not([hidden]){--richtext-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--richtext-space-y-reverse)));margin-bottom:calc(.375rem * var(--richtext-space-y-reverse))}.richtext-space-y-2>:not([hidden])~:not([hidden]){--richtext-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--richtext-space-y-reverse)));margin-bottom:calc(.5rem * var(--richtext-space-y-reverse))}.richtext-space-y-4>:not([hidden])~:not([hidden]){--richtext-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--richtext-space-y-reverse)));margin-bottom:calc(1rem * var(--richtext-space-y-reverse))}.richtext-self-end{align-self:flex-end}.richtext-overflow-auto{overflow:auto}.\!richtext-overflow-hidden{overflow:hidden!important}.richtext-overflow-hidden{overflow:hidden}.richtext-overflow-y-auto{overflow-y:auto}.richtext-overflow-x-hidden{overflow-x:hidden}.\!richtext-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.richtext-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.richtext-whitespace-nowrap{white-space:nowrap}.richtext-break-words{overflow-wrap:break-word}.\!richtext-rounded-md{border-radius:calc(var(--radius) - 2px)!important}.\!richtext-rounded-sm{border-radius:calc(var(--radius) - 4px)!important}.richtext-rounded{border-radius:.25rem}.richtext-rounded-\[10px\]{border-radius:10px}.richtext-rounded-\[12px\]{border-radius:12px}.richtext-rounded-\[2px\]{border-radius:2px}.richtext-rounded-full{border-radius:9999px}.richtext-rounded-lg{border-radius:var(--radius)}.richtext-rounded-md{border-radius:calc(var(--radius) - 2px)}.richtext-rounded-sm{border-radius:calc(var(--radius) - 4px)}.\!richtext-border{border-width:1px!important}.richtext-border{border-width:1px}.richtext-border-2{border-width:2px}.\!richtext-border-b{border-bottom-width:1px!important}.\!richtext-border-t{border-top-width:1px!important}.\!richtext-border-solid{border-style:solid!important}.richtext-border-solid{border-style:solid}.\!richtext-border-none{border-style:none!important}.richtext-border-none{border-style:none}.\!richtext-border-border{border-color:hsl(var(--border))!important}.\!richtext-border-primary{border-color:hsl(var(--primary))!important}.\!richtext-border-transparent{border-color:transparent!important}.richtext-border-\[\#1f6feb\]{--richtext-border-opacity: 1;border-color:rgb(31 111 235 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#238636\]{--richtext-border-opacity: 1;border-color:rgb(35 134 54 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#ab7df8\]{--richtext-border-opacity: 1;border-color:rgb(171 125 248 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#d29922\]{--richtext-border-opacity: 1;border-color:rgb(210 153 34 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#f85149\]{--richtext-border-opacity: 1;border-color:rgb(248 81 73 / var(--richtext-border-opacity, 1))}.richtext-border-border{border-color:hsl(var(--border))}.richtext-border-destructive{border-color:hsl(var(--destructive))}.richtext-border-gray-300{--richtext-border-opacity: 1;border-color:rgb(209 213 219 / var(--richtext-border-opacity, 1))}.richtext-border-input{border-color:hsl(var(--input))}.richtext-border-transparent{border-color:transparent}.\!richtext-bg-foreground{background-color:hsl(var(--foreground))!important}.\!richtext-bg-popover{background-color:hsl(var(--popover))!important}.\!richtext-bg-primary{background-color:hsl(var(--primary))!important}.\!richtext-bg-transparent{background-color:transparent!important}.richtext-bg-\[\#1f6feb1f\]{background-color:#1f6feb1f}.richtext-bg-\[\#2386361f\]{background-color:#2386361f}.richtext-bg-\[\#5a5d5e4f\]{background-color:#5a5d5e4f}.richtext-bg-\[\#ab7df81f\]{background-color:#ab7df81f}.richtext-bg-\[\#d299221f\]{background-color:#d299221f}.richtext-bg-\[\#f851491f\]{background-color:#f851491f}.richtext-bg-background{background-color:hsl(var(--background))}.richtext-bg-black\/80{background-color:#000c}.richtext-bg-border{background-color:hsl(var(--border))}.richtext-bg-destructive{background-color:hsl(var(--destructive))}.richtext-bg-gray-50{--richtext-bg-opacity: 1;background-color:rgb(249 250 251 / var(--richtext-bg-opacity, 1))}.richtext-bg-muted{background-color:hsl(var(--muted))}.richtext-bg-popover{background-color:hsl(var(--popover))}.richtext-bg-primary{background-color:hsl(var(--primary))}.richtext-bg-red-50{--richtext-bg-opacity: 1;background-color:rgb(254 242 242 / var(--richtext-bg-opacity, 1))}.richtext-bg-secondary{background-color:hsl(var(--secondary))}.richtext-bg-transparent{background-color:transparent}.richtext-bg-white{--richtext-bg-opacity: 1;background-color:rgb(255 255 255 / var(--richtext-bg-opacity, 1))}.richtext-bg-opacity-10{--richtext-bg-opacity: .1}.richtext-fill-current{fill:currentColor}.richtext-object-contain{object-fit:contain}.\!richtext-p-0{padding:0!important}.\!richtext-p-2{padding:.5rem!important}.\!richtext-p-\[4px\]{padding:4px!important}.richtext-p-0{padding:0}.richtext-p-0\.5{padding:.125rem}.richtext-p-1{padding:.25rem}.richtext-p-1\.5{padding:.375rem}.richtext-p-10{padding:2.5rem}.richtext-p-2{padding:.5rem}.richtext-p-3{padding:.75rem}.richtext-p-4{padding:1rem}.richtext-p-6{padding:1.5rem}.richtext-p-\[10px\]{padding:10px}.\!richtext-px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!richtext-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!richtext-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.richtext-px-2{padding-left:.5rem;padding-right:.5rem}.richtext-px-3{padding-left:.75rem;padding-right:.75rem}.richtext-px-4{padding-left:1rem;padding-right:1rem}.richtext-px-5{padding-left:1.25rem;padding-right:1.25rem}.richtext-px-8{padding-left:2rem;padding-right:2rem}.richtext-px-\[5px\]{padding-left:5px;padding-right:5px}.richtext-py-0{padding-top:0;padding-bottom:0}.richtext-py-1{padding-top:.25rem;padding-bottom:.25rem}.richtext-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.richtext-py-2{padding-top:.5rem;padding-bottom:.5rem}.richtext-py-4{padding-top:1rem;padding-bottom:1rem}.\!richtext-pb-1{padding-bottom:.25rem!important}.\!richtext-pb-2{padding-bottom:.5rem!important}.\!richtext-pt-3\.5{padding-top:.875rem!important}.richtext-pl-10{padding-left:2.5rem}.richtext-pl-4{padding-left:1rem}.richtext-pl-8{padding-left:2rem}.richtext-pl-\[28px\]{padding-left:28px}.richtext-pr-2{padding-right:.5rem}.richtext-pr-8{padding-right:2rem}.richtext-text-left{text-align:left}.richtext-text-center{text-align:center}.richtext-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\!richtext-text-\[0\.65rem\]{font-size:.65rem!important}.\!richtext-text-base{font-size:1rem!important;line-height:1.5rem!important}.\!richtext-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.\!richtext-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.\!richtext-text-xs{font-size:.75rem!important;line-height:1rem!important}.richtext-text-lg{font-size:1.125rem;line-height:1.75rem}.richtext-text-sm{font-size:.875rem;line-height:1.25rem}.richtext-text-xs{font-size:.75rem;line-height:1rem}.richtext-font-medium{font-weight:500}.richtext-font-normal{font-weight:400}.richtext-font-semibold{font-weight:600}.richtext-uppercase{text-transform:uppercase}.\!richtext-leading-none{line-height:1!important}.richtext-leading-none{line-height:1}.richtext-tracking-tight{letter-spacing:-.025em}.richtext-tracking-widest{letter-spacing:.1em}.\!richtext-text-current{color:currentColor!important}.\!richtext-text-muted-foreground{color:hsl(var(--muted-foreground))!important}.\!richtext-text-popover-foreground{color:hsl(var(--popover-foreground))!important}.\!richtext-text-primary-foreground{color:hsl(var(--primary-foreground))!important}.\!richtext-text-secondary-foreground{color:hsl(var(--secondary-foreground))!important}.richtext-text-\[\#1f6feb\]{--richtext-text-opacity: 1;color:rgb(31 111 235 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#238636\]{--richtext-text-opacity: 1;color:rgb(35 134 54 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#ab7df8\]{--richtext-text-opacity: 1;color:rgb(171 125 248 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#d29922\]{--richtext-text-opacity: 1;color:rgb(210 153 34 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#f85149\]{--richtext-text-opacity: 1;color:rgb(248 81 73 / var(--richtext-text-opacity, 1))}.richtext-text-accent{color:hsl(var(--accent))}.richtext-text-accent-foreground{color:hsl(var(--accent-foreground))}.richtext-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.richtext-text-foreground{color:hsl(var(--foreground))}.richtext-text-foreground\/50{color:hsl(var(--foreground) / .5)}.richtext-text-gray-400{--richtext-text-opacity: 1;color:rgb(156 163 175 / var(--richtext-text-opacity, 1))}.richtext-text-gray-500{--richtext-text-opacity: 1;color:rgb(107 114 128 / var(--richtext-text-opacity, 1))}.richtext-text-muted-foreground{color:hsl(var(--muted-foreground))}.richtext-text-popover-foreground{color:hsl(var(--popover-foreground))}.richtext-text-primary{color:hsl(var(--primary))}.richtext-text-primary-foreground{color:hsl(var(--primary-foreground))}.richtext-text-red-500{--richtext-text-opacity: 1;color:rgb(239 68 68 / var(--richtext-text-opacity, 1))}.richtext-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.richtext-text-zinc-500{--richtext-text-opacity: 1;color:rgb(113 113 122 / var(--richtext-text-opacity, 1))}.richtext-underline-offset-4{text-underline-offset:4px}.\!richtext-opacity-50{opacity:.5!important}.richtext-opacity-0{opacity:0}.richtext-opacity-50{opacity:.5}.richtext-opacity-60{opacity:.6}.richtext-opacity-70{opacity:.7}.richtext-opacity-90{opacity:.9}.richtext-shadow-lg{--richtext-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--richtext-shadow-colored: 0 10px 15px -3px var(--richtext-shadow-color), 0 4px 6px -4px var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.richtext-shadow-md{--richtext-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--richtext-shadow-colored: 0 4px 6px -1px var(--richtext-shadow-color), 0 2px 4px -2px var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.\!richtext-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.richtext-outline-none{outline:2px solid transparent;outline-offset:2px}.richtext-ring-0{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(0px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.\!richtext-ring-offset-background{--richtext-ring-offset-color: hsl(var(--background)) !important}.richtext-ring-offset-background{--richtext-ring-offset-color: hsl(var(--background))}.richtext-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-duration-200{transition-duration:.2s}.richtext-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes aenter{0%{opacity:var(--richtext-enter-opacity, 1);transform:translate3d(var(--richtext-enter-translate-x, 0),var(--richtext-enter-translate-y, 0),0) scale3d(var(--richtext-enter-scale, 1),var(--richtext-enter-scale, 1),var(--richtext-enter-scale, 1)) rotate(var(--richtext-enter-rotate, 0))}}@keyframes aexit{to{opacity:var(--richtext-exit-opacity, 1);transform:translate3d(var(--richtext-exit-translate-x, 0),var(--richtext-exit-translate-y, 0),0) scale3d(var(--richtext-exit-scale, 1),var(--richtext-exit-scale, 1),var(--richtext-exit-scale, 1)) rotate(var(--richtext-exit-rotate, 0))}}.richtext-animate-in{animation-name:aenter;animation-duration:.15s;--richtext-enter-opacity: initial;--richtext-enter-scale: initial;--richtext-enter-rotate: initial;--richtext-enter-translate-x: initial;--richtext-enter-translate-y: initial}.richtext-fade-in-0{--richtext-enter-opacity: 0}.richtext-zoom-in-95{--richtext-enter-scale: .95}.richtext-duration-200{animation-duration:.2s}.richtext-ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}html body[data-scroll-locked]{--removed-body-scroll-bar-size: 0 !important;position:initial!important}.remarkablejames-editor{background-color:hsl(var(--background));color:hsl(var(--foreground))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{z-index:0;padding:4rem 2rem 4rem 5rem;caret-color:#000;outline-width:0px}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror:is([class~=dark] *){caret-color:#fff}@media(min-width:1024px){.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{padding-left:2rem;padding-right:2rem}}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{outline:none!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror:focus,.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror:focus-visible{outline:none!important;box-shadow:none!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{min-height:180px;padding:32px 80px}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .img-placeholder{width:fit-content;position:relative;background-color:#ffffff4d;--richtext-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--richtext-backdrop-blur) var(--richtext-backdrop-brightness) var(--richtext-backdrop-contrast) var(--richtext-backdrop-grayscale) var(--richtext-backdrop-hue-rotate) var(--richtext-backdrop-invert) var(--richtext-backdrop-opacity) var(--richtext-backdrop-saturate) var(--richtext-backdrop-sepia);backdrop-filter:var(--richtext-backdrop-blur) var(--richtext-backdrop-brightness) var(--richtext-backdrop-contrast) var(--richtext-backdrop-grayscale) var(--richtext-backdrop-hue-rotate) var(--richtext-backdrop-invert) var(--richtext-backdrop-opacity) var(--richtext-backdrop-saturate) var(--richtext-backdrop-sepia)}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .img-placeholder:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:24px;height:24px;margin:-12px 0 0 -12px;display:inline-block}@keyframes richtext-spin{to{transform:rotate(360deg)}}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .img-placeholder:before{animation:richtext-spin 1s linear infinite;border-radius:9999px;border-width:3px;border-color:currentColor;border-top-color:transparent}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper{margin:1em 0;overflow-x:auto}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table{overflow:hidden;display:table;width:100%}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .column-resize-handle{pointer-events:none;position:absolute;bottom:-2px;right:-2px;top:0;z-index:10;width:.25rem;background-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .resize-cursor{cursor:"col-resize"}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .selectedCell{border-style:double;border-color:#0003;background-color:#0000000d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .selectedCell:is([class~=dark] *){border-color:#fff3;background-color:#ffffff1a}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule]{cursor:pointer;transition-property:all;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1);animation-duration:.1s;animation-timing-function:cubic-bezier(.4,0,.2,1)}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode{background-color:#0000000d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode:is([class~=dark] *){background-color:#ffffff1a}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode hr{border-top-color:hsl(var(--foreground))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule]:hover:not(.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode){background-color:#0000000d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule]:hover:not(.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode):is([class~=dark] *){background-color:#ffffff1a}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.image-view),.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.search-result){background-color:#0000001a;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow);outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.image-view):is([class~=dark] *),.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.search-result):is([class~=dark] *){background-color:#fff3}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.image-view)::selection,.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.search-result)::selection{background-color:hsl(var(--accent))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .is-empty:before{content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;width:100%;height:0}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .columns.is-empty:before{display:none!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;width:100%;height:0}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror p.is-editor-empty:first-child:before{float:left;height:0;color:#adb5bd;pointer-events:none;width:100%;content:attr(data-placeholder)}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .ProseMirror-gapcursor{position:relative;margin-left:auto;margin-right:auto;width:100%;max-width:42rem}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .ProseMirror-gapcursor:after{left:0;right:0;top:-1.5em;margin-left:auto;margin-right:auto;width:100%;max-width:42rem;border-top-color:#0006}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .ProseMirror-gapcursor:is([class~=dark] *):after{border-top-color:#fff6}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view{display:inline-block;float:none;max-width:100%;line-height:0;vertical-align:baseline;-webkit-user-select:none;user-select:none}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body{position:relative;display:inline-block;max-width:100%;clear:both;outline:transparent solid 2px;transition:all .2s ease-in}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body__button-wrap{display:none;justify-content:center;align-items:center;position:absolute;top:9px;right:9px;background:#26262699;border-radius:8px;z-index:4}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body:hover{outline-color:#ffc83d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body:hover .image-view__body__button-wrap{display:block}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body--focused:hover,.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body--resizing:hover{outline-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body__placeholder{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body__image{margin:0;cursor:pointer!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view .image-view__body--focused{outline-color:hsl(var(--primary))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view.focus img{outline-style:solid;outline-width:2px;outline-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view img{display:inline;vertical-align:baseline}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;border-width:1px!important;border-color:hsl(var(--border))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler{position:absolute;z-index:2;box-sizing:border-box;display:block;width:12px;height:12px;border:1px solid #fff;border-radius:2px;background-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--tl{top:-6px;left:-6px;cursor:nw-resize}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--tr{top:-6px;right:-6px;cursor:ne-resize}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--bl{bottom:-6px;left:-6px;cursor:sw-resize}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--br{right:-6px;bottom:-6px;cursor:se-resize}.remarkablejames-editor.dense .ProseMirror{min-height:32px;padding:6px 12px}.remarkablejames-editor.dense p{padding:0;line-height:1.2rem}.remarkablejames-editor .ProseMirror[contenteditable=true].resize-cursor{cursor:col-resize}.remarkablejames-editor .ProseMirror{caret-color:hsl(var(--richtext-text-foreground))!important}.bg-item-active.bg-item-active{background-color:hsl(var(--accent))!important}.heading-1{font-weight:700;font-size:28px;line-height:1.6}.heading-2{font-weight:700;font-size:24px;line-height:1.6}.heading-3{font-size:20px;font-weight:700;line-height:1.6}.heading-4{font-size:16px;font-weight:700;line-height:1.6}.heading-5,.heading-6{font-size:14px;font-weight:700;line-height:1.6}.tableCellActive{border-radius:2px!important;transition:all .1s ease-in-out}.tableCellActive>div{border:unset!important}.node-tableOfContents.focus{border-width:1px;border-radius:6px}div[data-twitter]>div{margin:10px auto}.react-renderer.node-twitter.focus{border-width:1px;border-radius:6px}.ProseMirror p{margin-bottom:.375rem;line-height:1.625}.ProseMirror p:first-child{margin-top:0}.ProseMirror p:last-child{margin-bottom:0}.ProseMirror>p{margin-bottom:.375rem}.ProseMirror>p:first-child{margin-top:0}.ProseMirror>p:last-child{margin-bottom:0}.ProseMirror h1{font-size:1.875rem;line-height:2.25rem}.ProseMirror h2{font-size:1.5rem;line-height:2rem}.ProseMirror h3{font-size:1.25rem;line-height:1.75rem}.ProseMirror h4{font-size:1.125rem;line-height:1.75rem}.ProseMirror h5{font-size:1rem;line-height:1.5rem}.ProseMirror h6{font-size:.875rem;line-height:1.25rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{font-weight:700}.ProseMirror h1:first-child,.ProseMirror h2:first-child,.ProseMirror h3:first-child,.ProseMirror h4:first-child,.ProseMirror h5:first-child,.ProseMirror h6:first-child{margin-top:0}.ProseMirror h1:last-child,.ProseMirror h2:last-child,.ProseMirror h3:last-child,.ProseMirror h4:last-child,.ProseMirror h5:last-child,.ProseMirror h6:last-child{margin-bottom:0}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3{margin-top:3rem}.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{margin-top:2rem}.ProseMirror a.link{font-weight:800;--richtext-text-opacity: 1;color:rgb(59 130 246 / var(--richtext-text-opacity, 1))}.ProseMirror a.link:is([class~=dark] *){--richtext-text-opacity: 1;color:rgb(96 165 250 / var(--richtext-text-opacity, 1))}.ProseMirror mark{border-radius:calc(var(--radius) - 4px);--richtext-bg-opacity: 1;background-color:rgb(239 68 68 / var(--richtext-bg-opacity, 1));-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-left:0;padding-right:0;padding-top:.25rem;padding-bottom:.25rem;color:inherit}.ProseMirror mark:is([class~=dark] *){--richtext-bg-opacity: 1;background-color:rgb(248 113 113 / var(--richtext-bg-opacity, 1))}.ProseMirror img{height:auto;max-width:100%}.ProseMirror *[data-indent="1"]{text-indent:2em!important}.ProseMirror *[data-indent="2"]{text-indent:4em!important}.ProseMirror *[data-indent="3"]{text-indent:6em!important}.ProseMirror *[data-indent="4"]{text-indent:8em!important}.ProseMirror *[data-indent="5"]{text-indent:10em!important}.ProseMirror *[data-indent="6"]{text-indent:12em!important}.ProseMirror *[data-indent="7"]{text-indent:14em!important}.ProseMirror iframe{border-width:1px!important;margin-top:.5rem;height:100%;width:100%;border-radius:calc(var(--radius) - 4px);border-color:hsl(var(--border))}.ProseMirror .blockquote{border-radius:var(--radius);border-bottom-left-radius:0;border-top-left-radius:0;border-left-width:4px;--richtext-border-opacity: 1;border-left-color:rgb(64 64 64 / var(--richtext-border-opacity, 1));--richtext-bg-opacity: .8;padding:.5rem 1rem;--richtext-text-opacity: 1;color:rgb(0 0 0 / var(--richtext-text-opacity, 1))}.ProseMirror .blockquote:is([class~=dark] *){--richtext-border-opacity: 1;border-left-color:rgb(212 212 212 / var(--richtext-border-opacity, 1));--richtext-text-opacity: 1;color:rgb(255 255 255 / var(--richtext-text-opacity, 1))}.ProseMirror code{border-radius:calc(var(--radius) - 4px);--richtext-bg-opacity: 1;background-color:rgb(23 23 23 / var(--richtext-bg-opacity, 1));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--richtext-text-opacity: 1;color:rgb(255 255 255 / var(--richtext-text-opacity, 1));caret-color:#fff;--richtext-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--richtext-shadow-colored: 0 10px 15px -3px var(--richtext-shadow-color), 0 4px 6px -4px var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.ProseMirror pre{margin-top:3rem;margin-bottom:3rem;border-radius:.25rem;border-width:1px!important;--richtext-border-opacity: 1;border-color:rgb(0 0 0 / var(--richtext-border-opacity, 1));border-color:hsl(var(--border));--richtext-bg-opacity: 1;background-color:rgb(64 64 64 / var(--richtext-bg-opacity, 1));padding:1rem;--richtext-text-opacity: 1;color:rgb(255 255 255 / var(--richtext-text-opacity, 1));caret-color:#fff}.ProseMirror pre:is([class~=dark] *){--richtext-bg-opacity: 1;background-color:rgb(23 23 23 / var(--richtext-bg-opacity, 1))}.ProseMirror pre code{background-color:inherit;padding:0;color:inherit;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.ProseMirror ol{list-style-type:decimal}.ProseMirror ul{list-style-type:disc}.ProseMirror ul,.ProseMirror ol{margin-top:1.5rem;margin-bottom:1.5rem;padding-left:2rem;padding-right:2rem;padding-top:0;padding-bottom:0}.ProseMirror ul:first-child,.ProseMirror ol:first-child{margin-top:0}.ProseMirror ul:last-child,.ProseMirror ol:last-child{margin-bottom:0}.ProseMirror ul ul,.ProseMirror ul ol,.ProseMirror ul li,.ProseMirror ol ul,.ProseMirror ol ol,.ProseMirror ol li{margin-top:.25rem;margin-bottom:.25rem}.ProseMirror ul p,.ProseMirror ol p{margin-bottom:.25rem;margin-top:0}.ProseMirror>ul,.ProseMirror>ol{margin-top:2rem;margin-bottom:2rem}.ProseMirror>ul:first-child,.ProseMirror>ol:first-child{margin-top:0}.ProseMirror>ul:last-child,.ProseMirror>ol:last-child{margin-bottom:0}.ProseMirror ul[data-type=taskList]{list-style-type:none;padding:0}.ProseMirror ul[data-type=taskList] p{margin:0}.ProseMirror ul[data-type=taskList] li{display:flex}.ProseMirror ul[data-type=taskList] li>label{margin-right:.5rem;display:inline;flex:1 1 auto;flex-shrink:0;flex-grow:0;-webkit-user-select:none;user-select:none}.ProseMirror ul[data-type=taskList] li>div{flex:1 1 auto}.ProseMirror ul[data-type=taskList] li[data-checked=true]{text-decoration-line:line-through}.ProseMirror table{box-sizing:border-box;display:block;table-layout:fixed;border-collapse:collapse;overflow-x:auto;overflow-y:hidden;border-color:#0000001a}.ProseMirror table:is([class~=dark] *){border-color:#fff3}.ProseMirror table td,.ProseMirror table th{border-width:1px!important;position:relative;box-sizing:border-box;min-width:1em;border-color:#0000001a;padding:.5rem;text-align:left;vertical-align:top}.ProseMirror table td:is([class~=dark] *),.ProseMirror table th:is([class~=dark] *){border-color:#fff3}.ProseMirror table td:first-of-type:not(a),.ProseMirror table th:first-of-type:not(a){margin-top:0}.ProseMirror table td p,.ProseMirror table th p{margin:0}.ProseMirror table td p+p,.ProseMirror table th p+p{margin-top:.75rem}.ProseMirror table th{text-align:left;font-weight:700}.remarkablejames-editor .ProseMirror .search-result{background-color:#ffd90080}.remarkablejames-editor .ProseMirror .search-result-current{background-color:#0dff0080}.columns{display:flex;width:100%;gap:8px;margin-top:.75em}.columns .column{min-width:0;padding:12px;flex:1 1 0%;box-sizing:border-box}.columns .column p:first-of-type{margin-top:0}.remarkablejames-editor .columns .column{border-width:1px;border-style:solid;border-color:hsl(var(--border));border-radius:2px}[data-type=mention]{color:hsl(var(--primary));background:hsl(var(--muted));padding:2px 4px;border-radius:6px}.file\:richtext-border-0::file-selector-button{border-width:0px}.file\:richtext-bg-transparent::file-selector-button{background-color:transparent}.file\:richtext-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:richtext-font-medium::file-selector-button{font-weight:500}.placeholder\:\!richtext-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))!important}.placeholder\:richtext-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:richtext-pb-2:last-child{padding-bottom:.5rem}.hover\:richtext-cursor-pointer:hover{cursor:pointer}.hover\:\!richtext-border-border:hover{border-color:hsl(var(--border))!important}.hover\:richtext-border-border:hover{border-color:hsl(var(--border))}.hover\:\!richtext-bg-accent:hover{background-color:hsl(var(--accent))!important}.hover\:\!richtext-bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)!important}.hover\:richtext-bg-\[\#5a5d5e4f\]:hover{background-color:#5a5d5e4f}.hover\:richtext-bg-accent:hover{background-color:hsl(var(--accent))}.hover\:richtext-bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:richtext-bg-muted:hover{background-color:hsl(var(--muted))}.hover\:richtext-bg-red-400:hover{--richtext-bg-opacity: 1;background-color:rgb(248 113 113 / var(--richtext-bg-opacity, 1))}.hover\:richtext-bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:richtext-bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:richtext-bg-opacity-20:hover{--richtext-bg-opacity: .2}.hover\:richtext-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:richtext-text-foreground:hover{color:hsl(var(--foreground))}.hover\:richtext-text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:richtext-underline:hover{text-decoration-line:underline}.hover\:richtext-opacity-100:hover{opacity:1}.hover\:richtext-shadow-sm:hover{--richtext-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--richtext-shadow-colored: 0 1px 2px 0 var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.focus\:richtext-bg-accent:focus{background-color:hsl(var(--accent))}.focus\:richtext-bg-red-400:focus{--richtext-bg-opacity: 1;background-color:rgb(248 113 113 / var(--richtext-bg-opacity, 1))}.focus\:richtext-bg-opacity-30:focus{--richtext-bg-opacity: .3}.focus\:richtext-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:richtext-text-red-500:focus{--richtext-text-opacity: 1;color:rgb(239 68 68 / var(--richtext-text-opacity, 1))}.focus\:richtext-opacity-100:focus{opacity:1}.focus\:richtext-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:richtext-ring-2:focus{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(2px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.focus\:richtext-ring-ring:focus{--richtext-ring-color: hsl(var(--ring))}.focus\:richtext-ring-offset-1:focus{--richtext-ring-offset-width: 1px}.focus-visible\:\!richtext-outline-none:focus-visible{outline:2px solid transparent!important;outline-offset:2px!important}.focus-visible\:richtext-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\!richtext-ring-2:focus-visible{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color) !important;--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(2px + var(--richtext-ring-offset-width)) var(--richtext-ring-color) !important;box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)!important}.focus-visible\:richtext-ring-1:focus-visible{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(1px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.focus-visible\:richtext-ring-2:focus-visible{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(2px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.focus-visible\:\!richtext-ring-ring:focus-visible{--richtext-ring-color: hsl(var(--ring)) !important}.focus-visible\:richtext-ring-ring:focus-visible{--richtext-ring-color: hsl(var(--ring))}.focus-visible\:\!richtext-ring-offset-1:focus-visible{--richtext-ring-offset-width: 1px !important}.focus-visible\:richtext-ring-offset-1:focus-visible{--richtext-ring-offset-width: 1px}.focus-visible\:richtext-ring-offset-background:focus-visible{--richtext-ring-offset-color: hsl(var(--background))}.disabled\:richtext-pointer-events-none:disabled{pointer-events:none}.disabled\:\!richtext-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\:richtext-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:\!richtext-opacity-50:disabled{opacity:.5!important}.disabled\:richtext-opacity-50:disabled{opacity:.5}.richtext-group:hover .group-hover\:richtext-opacity-100{opacity:1}.richtext-group.destructive .group-\[\.destructive\]\:richtext-border-muted\/40{border-color:hsl(var(--muted) / .4)}.richtext-group.destructive .group-\[\.destructive\]\:richtext-text-red-300{--richtext-text-opacity: 1;color:rgb(252 165 165 / var(--richtext-text-opacity, 1))}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-bg-destructive:hover{background-color:hsl(var(--destructive))}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-text-red-50:hover{--richtext-text-opacity: 1;color:rgb(254 242 242 / var(--richtext-text-opacity, 1))}.richtext-group.destructive .group-\[\.destructive\]\:focus\:richtext-ring-destructive:focus{--richtext-ring-color: hsl(var(--destructive))}.richtext-group.destructive .group-\[\.destructive\]\:focus\:richtext-ring-red-400:focus{--richtext-ring-opacity: 1;--richtext-ring-color: rgb(248 113 113 / var(--richtext-ring-opacity, 1))}.richtext-group.destructive .group-\[\.destructive\]\:focus\:richtext-ring-offset-red-600:focus{--richtext-ring-offset-color: #dc2626}.richtext-peer:disabled~.peer-disabled\:richtext-cursor-not-allowed{cursor:not-allowed}.richtext-peer:disabled~.peer-disabled\:richtext-opacity-70{opacity:.7}.data-\[disabled\]\:richtext-pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:richtext-translate-y-1[data-side=bottom]{--richtext-translate-y: .25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[side\=left\]\:richtext--translate-x-1[data-side=left]{--richtext-translate-x: -.25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[side\=right\]\:richtext-translate-x-1[data-side=right]{--richtext-translate-x: .25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[side\=top\]\:richtext--translate-y-1[data-side=top]{--richtext-translate-y: -.25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[state\=checked\]\:richtext-translate-x-5[data-state=checked]{--richtext-translate-x: 1.25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[state\=unchecked\]\:richtext-translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:richtext-translate-x-0[data-swipe=cancel]{--richtext-translate-x: 0px;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[swipe\=end\]\:richtext-translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--richtext-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[swipe\=move\]\:richtext-translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--richtext-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[active\]\:\!richtext-bg-accent[data-active]{background-color:hsl(var(--accent))!important}.data-\[state\=active\]\:richtext-bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:\!richtext-bg-primary[data-state=checked]{background-color:hsl(var(--primary))!important}.data-\[state\=checked\]\:richtext-bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:richtext-bg-accent[data-state=on],.data-\[state\=open\]\:richtext-bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:richtext-bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:richtext-text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:\!richtext-text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))!important}.data-\[state\=on\]\:richtext-text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:richtext-text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:richtext-opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:richtext-shadow-sm[data-state=active]{--richtext-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--richtext-shadow-colored: 0 1px 2px 0 var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.data-\[swipe\=move\]\:richtext-transition-none[data-swipe=move]{transition-property:none}.data-\[state\=open\]\:richtext-animate-in[data-state=open]{animation-name:aenter;animation-duration:.15s;--richtext-enter-opacity: initial;--richtext-enter-scale: initial;--richtext-enter-rotate: initial;--richtext-enter-translate-x: initial;--richtext-enter-translate-y: initial}.data-\[state\=closed\]\:richtext-animate-out[data-state=closed],.data-\[swipe\=end\]\:richtext-animate-out[data-swipe=end]{animation-name:aexit;animation-duration:.15s;--richtext-exit-opacity: initial;--richtext-exit-scale: initial;--richtext-exit-rotate: initial;--richtext-exit-translate-x: initial;--richtext-exit-translate-y: initial}.data-\[state\=closed\]\:richtext-fade-out-0[data-state=closed]{--richtext-exit-opacity: 0}.data-\[state\=closed\]\:richtext-fade-out-80[data-state=closed]{--richtext-exit-opacity: .8}.data-\[state\=open\]\:richtext-fade-in-0[data-state=open]{--richtext-enter-opacity: 0}.data-\[state\=closed\]\:richtext-zoom-out-95[data-state=closed]{--richtext-exit-scale: .95}.data-\[state\=open\]\:richtext-zoom-in-95[data-state=open]{--richtext-enter-scale: .95}.data-\[side\=bottom\]\:richtext-slide-in-from-top-2[data-side=bottom]{--richtext-enter-translate-y: -.5rem}.data-\[side\=left\]\:richtext-slide-in-from-right-2[data-side=left]{--richtext-enter-translate-x: .5rem}.data-\[side\=right\]\:richtext-slide-in-from-left-2[data-side=right]{--richtext-enter-translate-x: -.5rem}.data-\[side\=top\]\:richtext-slide-in-from-bottom-2[data-side=top]{--richtext-enter-translate-y: .5rem}.data-\[state\=closed\]\:richtext-slide-out-to-left-1\/2[data-state=closed]{--richtext-exit-translate-x: -50%}.data-\[state\=closed\]\:richtext-slide-out-to-right-full[data-state=closed]{--richtext-exit-translate-x: 100%}.data-\[state\=closed\]\:richtext-slide-out-to-top-\[48\%\][data-state=closed]{--richtext-exit-translate-y: -48%}.data-\[state\=open\]\:richtext-slide-in-from-left-1\/2[data-state=open]{--richtext-enter-translate-x: -50%}.data-\[state\=open\]\:richtext-slide-in-from-top-\[48\%\][data-state=open]{--richtext-enter-translate-y: -48%}.data-\[state\=open\]\:richtext-slide-in-from-top-full[data-state=open]{--richtext-enter-translate-y: -100%}.dark\:hover\:richtext-bg-opacity-20:hover:is([class~=dark] *){--richtext-bg-opacity: .2}.dark\:hover\:richtext-text-red-500:hover:is([class~=dark] *){--richtext-text-opacity: 1;color:rgb(239 68 68 / var(--richtext-text-opacity, 1))}@media(min-width:640px){.sm\:richtext-bottom-0{bottom:0}.sm\:richtext-right-0{right:0}.sm\:richtext-top-auto{top:auto}.sm\:richtext-flex-row{flex-direction:row}.sm\:richtext-flex-col{flex-direction:column}.sm\:richtext-justify-end{justify-content:flex-end}.sm\:richtext-space-x-2>:not([hidden])~:not([hidden]){--richtext-space-x-reverse: 0;margin-right:calc(.5rem * var(--richtext-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--richtext-space-x-reverse)))}.sm\:richtext-rounded-lg{border-radius:var(--radius)}.sm\:richtext-text-left{text-align:left}.data-\[state\=open\]\:sm\:richtext-slide-in-from-bottom-full[data-state=open]{--richtext-enter-translate-y: 100%}}@media(min-width:768px){.md\:richtext-max-w-\[420px\]{max-width:420px}}.\[\&\>span\]\:richtext-line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.mermaid-node-view:hover .\[\.mermaid-node-view\:hover_\&\]\:richtext-opacity-100{opacity:1}._wrapper_pva9d_1{background-color:#fff;cursor:pointer;position:absolute;top:0;left:0;padding:10px;gap:10px;z-index:100;border:1px solid #eeeeee;box-shadow:0 0 10px #0000001a;border-radius:10px}._tool_pva9d_17{outline:none;border:none;background-color:#fff;border-radius:5px;padding:5px;cursor:pointer;transition:all .3s;color:#595353!important}._tool_pva9d_17 svg{width:20px;height:20px}._tool_pva9d_17:hover{background-color:#f5f5f5}._active_pva9d_37{background-color:#eee!important}._pen_pva9d_41{display:flex;gap:4px;align-items:center;flex-wrap:wrap}._line_pva9d_48{height:20px;width:1px;background-color:#bcb9b9;margin:0 6px;transform:rotate(18deg)}._options_pva9d_56{margin-top:10px;padding:10px 0 0;border-top:1px dashed #eeeeee;display:flex;gap:4px;align-items:center;flex-wrap:wrap}._colorWrap_pva9d_66{display:flex;gap:8px;align-items:center;margin:4px 0}._color_pva9d_66{outline:none!important;border:none!important;border-radius:4px;cursor:pointer;width:20px;height:20px;border:1px solid #eeeeee}._colorActive_pva9d_83{outline:2px solid #2576b9!important}._wrap_5y04w_1{display:flex;height:100%;max-width:100%;overflow:hidden;line-height:0;flex-direction:column;border:1px dashed hsl(var(--border))!important;border-radius:6px}._wrap_5y04w_1 ._handlerWrap_5y04w_11{display:flex;padding:10px}._wrap_5y04w_1 ._innerWrap_5y04w_15{position:relative;width:100%;height:100%;overflow:hidden;border-radius:var(--border-radius);flex:1}._wrap_5y04w_1 ._emptyWrap_5y04w_23{display:flex;height:100%;justify-content:center;align-items:center}._wrap_5y04w_1 iframe{width:100%;height:100%;border:0;border:none!important}._verified_lvyh0_1{margin-left:.125rem;max-width:20px;max-height:20px;height:1.25em;fill:currentColor;-webkit-user-select:none;user-select:none;vertical-align:text-bottom}._root_98iqw_1{width:100%;min-width:250px;max-width:550px;overflow:hidden;color:var(--richtexteet-font-color);font-family:var(--richtexteet-font-family);font-weight:400;box-sizing:border-box;border:var(--richtexteet-border);border-radius:12px;margin:var(--richtexteet-container-margin);background-color:var(--richtexteet-bg-color);transition-property:background-color,box-shadow;transition-duration:.2s}._root_98iqw_1:hover{background-color:var(--richtexteet-bg-color-hover)}._article_98iqw_21{position:relative;box-sizing:inherit;padding:.75rem 1rem}.react-tweet-theme{--richtexteet-container-margin: 1.5rem 0;--richtexteet-header-font-size: .9375rem;--richtexteet-header-line-height: 1.25rem;--richtexteet-body-font-size: 1.25rem;--richtexteet-body-font-weight: 400;--richtexteet-body-line-height: 1.5rem;--richtexteet-body-margin: 0;--richtexteet-quoted-container-margin: .75rem 0;--richtexteet-quoted-body-font-size: .938rem;--richtexteet-quoted-body-font-weight: 400;--richtexteet-quoted-body-line-height: 1.25rem;--richtexteet-quoted-body-margin: .25rem 0 .75rem 0;--richtexteet-info-font-size: .9375rem;--richtexteet-info-line-height: 1.25rem;--richtexteet-actions-font-size: .875rem;--richtexteet-actions-line-height: 1rem;--richtexteet-actions-font-weight: 700;--richtexteet-actions-icon-size: 1.25em;--richtexteet-actions-icon-wrapper-size: calc( var(--richtexteet-actions-icon-size) + .75em );--richtexteet-replies-font-size: .875rem;--richtexteet-replies-line-height: 1rem;--richtexteet-replies-font-weight: 700}:where(.react-tweet-theme) *{margin:0;padding:0;box-sizing:border-box}:is([data-theme=light],.light) :where(.react-tweet-theme),:where(.react-tweet-theme){--richtexteet-skeleton-gradient: linear-gradient( 270deg, #fafafa, #eaeaea, #eaeaea, #fafafa );--richtexteet-border: 1px solid rgb(207, 217, 222);--richtexteet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--richtexteet-font-color: rgb(15, 20, 25);--richtexteet-font-color-secondary: rgb(83, 100, 113);--richtexteet-bg-color: #fff;--richtexteet-bg-color-hover: rgb(247, 249, 249);--richtexteet-quoted-bg-color-hover: rgba(0, 0, 0, .03);--richtexteet-color-blue-primary: rgb(29, 155, 240);--richtexteet-color-blue-primary-hover: rgb(26, 140, 216);--richtexteet-color-blue-secondary: rgb(0, 111, 214);--richtexteet-color-blue-secondary-hover: rgba(0, 111, 214, .1);--richtexteet-color-red-primary: rgb(249, 24, 128);--richtexteet-color-red-primary-hover: rgba(249, 24, 128, .1);--richtexteet-color-green-primary: rgb(0, 186, 124);--richtexteet-color-green-primary-hover: rgba(0, 186, 124, .1);--richtexteet-twitter-icon-color: var(--richtexteet-font-color);--richtexteet-verified-old-color: rgb(130, 154, 171);--richtexteet-verified-blue-color: var(--richtexteet-color-blue-primary)}:is([data-theme=dark],.dark) :where(.react-tweet-theme){--richtexteet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--richtexteet-border: 1px solid rgb(66, 83, 100);--richtexteet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--richtexteet-font-color: rgb(247, 249, 249);--richtexteet-font-color-secondary: rgb(139, 152, 165);--richtexteet-bg-color: rgb(21, 32, 43);--richtexteet-bg-color-hover: rgb(30, 39, 50);--richtexteet-quoted-bg-color-hover: rgba(255, 255, 255, .03);--richtexteet-color-blue-primary: rgb(29, 155, 240);--richtexteet-color-blue-primary-hover: rgb(26, 140, 216);--richtexteet-color-blue-secondary: rgb(107, 201, 251);--richtexteet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--richtexteet-color-red-primary: rgb(249, 24, 128);--richtexteet-color-red-primary-hover: rgba(249, 24, 128, .1);--richtexteet-color-green-primary: rgb(0, 186, 124);--richtexteet-color-green-primary-hover: rgba(0, 186, 124, .1);--richtexteet-twitter-icon-color: var(--richtexteet-font-color);--richtexteet-verified-old-color: rgb(130, 154, 171);--richtexteet-verified-blue-color: #fff}@media(prefers-color-scheme:dark){:where(.react-tweet-theme){--richtexteet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--richtexteet-border: 1px solid rgb(66, 83, 100);--richtexteet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--richtexteet-font-color: rgb(247, 249, 249);--richtexteet-font-color-secondary: rgb(139, 152, 165);--richtexteet-bg-color: rgb(21, 32, 43);--richtexteet-bg-color-hover: rgb(30, 39, 50);--richtexteet-color-blue-primary: rgb(29, 155, 240);--richtexteet-color-blue-primary-hover: rgb(26, 140, 216);--richtexteet-color-blue-secondary: rgb(107, 201, 251);--richtexteet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--richtexteet-color-red-primary: rgb(249, 24, 128);--richtexteet-color-red-primary-hover: rgba(249, 24, 128, .1);--richtexteet-color-green-primary: rgb(0, 186, 124);--richtexteet-color-green-primary-hover: rgba(0, 186, 124, .1);--richtexteet-twitter-icon-color: var(--richtexteet-font-color);--richtexteet-verified-old-color: rgb(130, 154, 171);--richtexteet-verified-blue-color: #fff}}._verifiedOld_lcna5_1{color:var(--richtexteet-verified-old-color)}._verifiedBlue_lcna5_4{color:var(--richtexteet-verified-blue-color)}._verifiedGovernment_lcna5_7{color:#829aab}._label_36ucz_1{display:flex;height:1.0625em;width:1.0625em;max-width:17px;max-height:17px;margin-left:4px;margin-right:2px;border:var(--richtexteet-border);border-radius:2px}._label_36ucz_1>img{width:100%;height:100%}._header_nqq4j_1{display:flex;padding-bottom:.75rem;line-height:var(--richtexteet-header-line-height);font-size:var(--richtexteet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_nqq4j_11{position:relative;height:48px;width:48px}._avatarOverflow_nqq4j_16{height:100%;width:100%;position:absolute;overflow:hidden;border-radius:9999px}._avatarSquare_nqq4j_23{border-radius:4px}._avatarShadow_nqq4j_26{height:100%;width:100%;transition-property:background-color;transition-duration:.2s;box-shadow:#00000008 0 0 2px inset}._avatarShadow_nqq4j_26:hover{background-color:#1a1a1a26}._author_nqq4j_37{max-width:calc(100% - 84px);display:flex;flex-direction:column;justify-content:center;margin:0 .5rem}._authorLink_nqq4j_44{text-decoration:none;color:inherit;display:flex;align-items:center}._authorLink_nqq4j_44:hover{text-decoration-line:underline}._authorVerified_nqq4j_53{display:inline-flex}._authorLinkText_nqq4j_56{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._authorMeta_nqq4j_63,._authorFollow_nqq4j_66{display:flex}._username_nqq4j_69{color:var(--richtexteet-font-color-secondary);text-decoration:none;text-overflow:ellipsis}._follow_nqq4j_74{color:var(--richtexteet-color-blue-secondary);text-decoration:none;font-weight:700}._follow_nqq4j_74:hover{text-decoration-line:underline}._separator_nqq4j_82{padding:0 .25rem}._brand_nqq4j_86{margin-inline-start:auto}._twitterIcon_nqq4j_90{width:23.75px;height:23.75px;color:var(--richtexteet-twitter-icon-color);fill:currentColor;-webkit-user-select:none;user-select:none}._root_1ec15_1{text-decoration:none;color:var(--richtexteet-font-color-secondary);font-size:.9375rem;line-height:1.25rem;margin-bottom:.25rem;overflow-wrap:break-word;white-space:pre-wrap}._root_1ec15_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_eihfa_1{font-weight:inherit;color:var(--richtexteet-color-blue-secondary);text-decoration:none;cursor:pointer}._root_eihfa_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_1xq52_1{font-size:var(--richtexteet-body-font-size);font-weight:var(--richtexteet-body-font-weight);line-height:var(--richtexteet-body-line-height);margin:var(--richtexteet-body-margin);overflow-wrap:break-word;white-space:pre-wrap}._root_g9tkv_1{margin-top:.75rem;overflow:hidden;position:relative}._rounded_g9tkv_6{border:var(--richtexteet-border);border-radius:12px}._mediaWrapper_g9tkv_10{display:grid;grid-auto-rows:1fr;gap:2px;height:100%;width:100%}._grid2Columns_g9tkv_17{grid-template-columns:repeat(2,1fr)}._grid3_g9tkv_20>a:first-child{grid-row:span 2}._grid2x2_g9tkv_23{grid-template-rows:repeat(2,1fr)}._mediaContainer_g9tkv_26{position:relative;height:100%;width:100%;display:flex;align-items:center;justify-content:center}._mediaLink_g9tkv_34{text-decoration:none;outline-style:none}._skeleton_g9tkv_38{padding-bottom:56.25%;width:100%;display:block}._image_g9tkv_43{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;margin:0;object-fit:cover;object-position:center}._anchor_fp31d_1{display:flex;align-items:center;color:#fff;padding:0 1rem;border:1px solid transparent;border-radius:9999px;font-weight:700;transition:background-color .2s;cursor:pointer;-webkit-user-select:none;user-select:none;outline-style:none;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}._videoButton_fp31d_17{position:relative;height:67px;width:67px;display:flex;align-items:center;justify-content:center;background-color:var(--richtexteet-color-blue-primary);transition-property:background-color;transition-duration:.2s;border:4px solid #fff;border-radius:9999px;cursor:pointer}._videoButton_fp31d_17:hover,._videoButton_fp31d_17:focus-visible{background-color:var(--richtexteet-color-blue-primary-hover)}._videoButtonIcon_fp31d_35{margin-left:3px;width:calc(50% + 4px);height:calc(50% + 4px);max-width:100%;color:#fff;fill:currentColor;-webkit-user-select:none;user-select:none}._watchOnTwitter_fp31d_44{position:absolute;top:12px;right:8px}._watchOnTwitter_fp31d_44>a{min-width:2rem;min-height:2rem;font-size:.875rem;line-height:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#0f1419bf}._watchOnTwitter_fp31d_44>a:hover{background-color:#272c30bf}._viewReplies_fp31d_60{position:relative;min-height:2rem;background-color:var(--richtexteet-color-blue-primary);border-color:var(--richtexteet-color-blue-primary);font-size:.9375rem;line-height:1.25rem}._viewReplies_fp31d_60:hover{background-color:var(--richtexteet-color-blue-primary-hover)}._root_i24yn_1{color:inherit;text-decoration:none;font-size:var(--richtexteet-info-font-size);line-height:var(--richtexteet-info-line-height)}._root_i24yn_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._info_19qcj_1{display:flex;align-items:center;color:var(--richtexteet-font-color-secondary);margin-top:.125rem;overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._infoLink_19qcj_10{color:inherit;text-decoration:none;height:var(--richtexteet-actions-icon-wrapper-size);width:var(--richtexteet-actions-icon-wrapper-size);font:inherit;margin-left:auto;display:flex;justify-content:center;align-items:center;margin-right:-4px;border-radius:9999px;transition-property:background-color;transition-duration:.2s}._infoLink_19qcj_10:hover{background-color:var(--richtexteet-color-blue-secondary-hover)}._infoIcon_19qcj_30{color:inherit;fill:currentColor;height:var(--richtexteet-actions-icon-size);-webkit-user-select:none;user-select:none}._infoLink_19qcj_10:hover>._infoIcon_19qcj_30{color:var(--richtexteet-color-blue-secondary)}._actions_n2anf_1{display:flex;align-items:center;color:var(--richtexteet-font-color-secondary);padding-top:.25rem;margin-top:.25rem;border-top:var(--richtexteet-border);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._like_n2anf_13,._reply_n2anf_14,._copy_n2anf_15{text-decoration:none;color:inherit;display:flex;align-items:center;margin-right:1.25rem}._like_n2anf_13:hover,._reply_n2anf_14:hover,._copy_n2anf_15:hover{background-color:#0000}._like_n2anf_13:hover>._likeIconWrapper_n2anf_27{background-color:var(--richtexteet-color-red-primary-hover)}._like_n2anf_13:hover>._likeCount_n2anf_30{color:var(--richtexteet-color-red-primary);text-decoration-line:underline}._likeIconWrapper_n2anf_27,._replyIconWrapper_n2anf_35,._copyIconWrapper_n2anf_36{width:var(--richtexteet-actions-icon-wrapper-size);height:var(--richtexteet-actions-icon-wrapper-size);display:flex;justify-content:center;align-items:center;margin-left:-.25rem;border-radius:9999px}._likeIcon_n2anf_27,._replyIcon_n2anf_35,._copyIcon_n2anf_36{height:var(--richtexteet-actions-icon-size);fill:currentColor;-webkit-user-select:none;user-select:none}._likeIcon_n2anf_27{color:var(--richtexteet-color-red-primary)}._likeCount_n2anf_30,._replyText_n2anf_56,._copyText_n2anf_57{font-size:var(--richtexteet-actions-font-size);font-weight:var(--richtexteet-actions-font-weight);line-height:var(--richtexteet-actions-line-height);margin-left:.25rem}._reply_n2anf_14:hover>._replyIconWrapper_n2anf_35{background-color:var(--richtexteet-color-blue-secondary-hover)}._reply_n2anf_14:hover>._replyText_n2anf_56{color:var(--richtexteet-color-blue-secondary);text-decoration-line:underline}._replyIcon_n2anf_35{color:var(--richtexteet-color-blue-primary)}._copy_n2anf_15{font:inherit;background:none;border:none;cursor:pointer}._copy_n2anf_15:hover>._copyIconWrapper_n2anf_36{background-color:var(--richtexteet-color-green-primary-hover)}._copy_n2anf_15:hover ._copyIcon_n2anf_36{color:var(--richtexteet-color-green-primary)}._copy_n2anf_15:hover>._copyText_n2anf_57{color:var(--richtexteet-color-green-primary);text-decoration-line:underline}._replies_1cutb_1{padding:.25rem 0}._link_1cutb_4{text-decoration:none;color:var(--richtexteet-color-blue-secondary);display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;-webkit-user-select:none;user-select:none;outline-style:none;transition-property:background-color;transition-duration:.2s;padding:0 1rem;border:var(--richtexteet-border);border-radius:9999px}._link_1cutb_4:hover{background-color:var(--richtexteet-color-blue-secondary-hover)}._text_1cutb_23{font-weight:var(--richtexteet-replies-font-weight);font-size:var(--richtexteet-replies-font-size);line-height:var(--richtexteet-replies-line-height);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._root_q5799_1{width:100%;overflow:hidden;border:var(--richtexteet-border);border-radius:12px;margin:var(--richtexteet-quoted-container-margin);transition-property:background-color,box-shadow;transition-duration:.2s;cursor:pointer}._root_q5799_1:hover{background-color:var(--richtexteet-quoted-bg-color-hover)}._article_q5799_16{position:relative;box-sizing:inherit}._header_f00ab_1{display:flex;padding:.75rem .75rem 0;line-height:var(--richtexteet-header-line-height);font-size:var(--richtexteet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_f00ab_11{position:relative;height:20px;width:20px}._avatarOverflow_f00ab_16{height:100%;width:100%;position:absolute;overflow:hidden;border-radius:9999px}._avatarSquare_f00ab_23{border-radius:4px}._author_f00ab_27{display:flex;margin:0 .5rem;align-items:center}._authorText_f00ab_33{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._username_f00ab_40{color:var(--richtexteet-font-color-secondary);text-decoration:none;text-overflow:ellipsis;margin-left:.125rem}._root_175ot_1{font-size:var(--richtexteet-quoted-body-font-size);font-weight:var(--richtexteet-quoted-body-font-weight);line-height:var(--richtexteet-quoted-body-line-height);margin:var(--richtexteet-quoted-body-margin);overflow-wrap:break-word;white-space:pre-wrap;padding:0 .75rem}._root_16yxa_1{display:flex;flex-direction:column;align-items:center;padding-bottom:.75rem}._root_16yxa_1>h3{font-size:1.25rem;margin-bottom:.5rem}._skeleton_oi7hr_1{display:block;width:100%;border-radius:5px;background-image:var(--richtexteet-skeleton-gradient);background-size:400% 100%;animation:_loading_oi7hr_1 8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){._skeleton_oi7hr_1{animation:none;background-position:200% 0}}@keyframes _loading_oi7hr_1{0%{background-position:200% 0}to{background-position:-200% 0}}._root_17qqv_1{pointer-events:none;padding-bottom:.25rem}
|
|
1
|
+
:root{--richtext-border-spacing-x: 0;--richtext-border-spacing-y: 0;--richtext-translate-x: 0;--richtext-translate-y: 0;--richtext-rotate: 0;--richtext-skew-x: 0;--richtext-skew-y: 0;--richtext-scale-x: 1;--richtext-scale-y: 1;--richtext-pan-x: ;--richtext-pan-y: ;--richtext-pinch-zoom: ;--richtext-scroll-snap-strictness: proximity;--richtext-gradient-from-position: ;--richtext-gradient-via-position: ;--richtext-gradient-to-position: ;--richtext-ordinal: ;--richtext-slashed-zero: ;--richtext-numeric-figure: ;--richtext-numeric-spacing: ;--richtext-numeric-fraction: ;--richtext-ring-inset: ;--richtext-ring-offset-width: 0px;--richtext-ring-offset-color: #fff;--richtext-ring-color: rgb(59 130 246 / .5);--richtext-ring-offset-shadow: 0 0 #0000;--richtext-ring-shadow: 0 0 #0000;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;--richtext-blur: ;--richtext-brightness: ;--richtext-contrast: ;--richtext-grayscale: ;--richtext-hue-rotate: ;--richtext-invert: ;--richtext-saturate: ;--richtext-sepia: ;--richtext-drop-shadow: ;--richtext-backdrop-blur: ;--richtext-backdrop-brightness: ;--richtext-backdrop-contrast: ;--richtext-backdrop-grayscale: ;--richtext-backdrop-hue-rotate: ;--richtext-backdrop-invert: ;--richtext-backdrop-opacity: ;--richtext-backdrop-saturate: ;--richtext-backdrop-sepia: ;--richtext-contain-size: ;--richtext-contain-layout: ;--richtext-contain-paint: ;--richtext-contain-style: }::backdrop{--richtext-border-spacing-x: 0;--richtext-border-spacing-y: 0;--richtext-translate-x: 0;--richtext-translate-y: 0;--richtext-rotate: 0;--richtext-skew-x: 0;--richtext-skew-y: 0;--richtext-scale-x: 1;--richtext-scale-y: 1;--richtext-pan-x: ;--richtext-pan-y: ;--richtext-pinch-zoom: ;--richtext-scroll-snap-strictness: proximity;--richtext-gradient-from-position: ;--richtext-gradient-via-position: ;--richtext-gradient-to-position: ;--richtext-ordinal: ;--richtext-slashed-zero: ;--richtext-numeric-figure: ;--richtext-numeric-spacing: ;--richtext-numeric-fraction: ;--richtext-ring-inset: ;--richtext-ring-offset-width: 0px;--richtext-ring-offset-color: #fff;--richtext-ring-color: rgb(59 130 246 / .5);--richtext-ring-offset-shadow: 0 0 #0000;--richtext-ring-shadow: 0 0 #0000;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;--richtext-blur: ;--richtext-brightness: ;--richtext-contrast: ;--richtext-grayscale: ;--richtext-hue-rotate: ;--richtext-invert: ;--richtext-saturate: ;--richtext-sepia: ;--richtext-drop-shadow: ;--richtext-backdrop-blur: ;--richtext-backdrop-brightness: ;--richtext-backdrop-contrast: ;--richtext-backdrop-grayscale: ;--richtext-backdrop-hue-rotate: ;--richtext-backdrop-invert: ;--richtext-backdrop-opacity: ;--richtext-backdrop-saturate: ;--richtext-backdrop-sepia: ;--richtext-contain-size: ;--richtext-contain-layout: ;--richtext-contain-paint: ;--richtext-contain-style: }.richtext-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.richtext-pointer-events-none{pointer-events:none}.richtext-pointer-events-auto{pointer-events:auto}.richtext-fixed{position:fixed}.\!richtext-absolute{position:absolute!important}.richtext-absolute{position:absolute}.\!richtext-relative{position:relative!important}.richtext-relative{position:relative}.\!richtext-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.richtext-inset-0{top:0;right:0;bottom:0;left:0}.richtext-inset-y-0{top:0;bottom:0}.-richtext-top-px{top:-1px}.richtext-left-2{left:.5rem}.richtext-left-\[50\%\]{left:50%}.richtext-left-px{left:1px}.richtext-right-2{right:.5rem}.richtext-right-4{right:1rem}.richtext-start-0{inset-inline-start:0px}.richtext-top-0{top:0}.richtext-top-2{top:.5rem}.richtext-top-4{top:1rem}.richtext-top-\[50\%\]{top:50%}.\!richtext-isolate{isolation:isolate!important}.richtext-z-50{z-index:50}.richtext-z-\[100\]{z-index:100}.richtext-z-\[99999\]{z-index:99999}.\!richtext-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.\!richtext-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.\!richtext-my-\[10px\]{margin-top:10px!important;margin-bottom:10px!important}.richtext--mx-1{margin-left:-.25rem;margin-right:-.25rem}.richtext-mx-\[4px\]{margin-left:4px;margin-right:4px}.richtext-mx-auto{margin-left:auto;margin-right:auto}.richtext-my-1{margin-top:.25rem;margin-bottom:.25rem}.richtext-my-4{margin-top:1rem;margin-bottom:1rem}.richtext-my-\[10px\]{margin-top:10px;margin-bottom:10px}.richtext-my-\[12px\]{margin-top:12px;margin-bottom:12px}.richtext-my-\[5px\]{margin-top:5px;margin-bottom:5px}.\!richtext-ml-1\.5{margin-left:.375rem!important}.\!richtext-mr-1{margin-right:.25rem!important}.richtext-mb-2{margin-bottom:.5rem}.richtext-mb-\[10px\]{margin-bottom:10px}.richtext-mb-\[4px\]{margin-bottom:4px}.richtext-mb-\[5px\]{margin-bottom:5px}.richtext-mb-\[6px\]{margin-bottom:6px}.richtext-ml-1{margin-left:.25rem}.richtext-ml-auto{margin-left:auto}.richtext-mt-1{margin-top:.25rem}.richtext-mt-2{margin-top:.5rem}.richtext-mt-\[8px\]{margin-top:8px}.richtext-box-border{box-sizing:border-box}.richtext-block{display:block}.richtext-inline-block{display:inline-block}.\!richtext-flex{display:flex!important}.richtext-flex{display:flex}.richtext-inline-flex{display:inline-flex}.richtext-grid{display:grid}.\!richtext-size-4{width:1rem!important;height:1rem!important}.\!richtext-size-7{width:1.75rem!important;height:1.75rem!important}.richtext-size-10{width:2.5rem;height:2.5rem}.richtext-size-2{width:.5rem;height:.5rem}.richtext-size-3{width:.75rem;height:.75rem}.richtext-size-3\.5{width:.875rem;height:.875rem}.richtext-size-4{width:1rem;height:1rem}.richtext-size-5{width:1.25rem;height:1.25rem}.richtext-size-6{width:1.5rem;height:1.5rem}.richtext-size-7{width:1.75rem;height:1.75rem}.richtext-size-\[18px\]{width:18px;height:18px}.richtext-size-full{width:100%;height:100%}.\!richtext-h-10{height:2.5rem!important}.\!richtext-h-3{height:.75rem!important}.\!richtext-h-4{height:1rem!important}.\!richtext-h-7{height:1.75rem!important}.\!richtext-h-9{height:2.25rem!important}.\!richtext-h-\[16px\]{height:16px!important}.\!richtext-h-\[342px\]{height:342px!important}.richtext-h-10{height:2.5rem}.richtext-h-11{height:2.75rem}.richtext-h-12{height:3rem}.richtext-h-4{height:1rem}.richtext-h-5{height:1.25rem}.richtext-h-6{height:1.5rem}.richtext-h-7{height:1.75rem}.richtext-h-8{height:2rem}.richtext-h-9{height:2.25rem}.richtext-h-\[1px\]{height:1px}.richtext-h-\[32px\]{height:32px}.richtext-h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.richtext-h-auto{height:auto}.richtext-h-full{height:100%}.richtext-h-px{height:1px}.\!richtext-max-h-\[320px\]{max-height:320px!important}.richtext-max-h-60{max-height:15rem}.richtext-max-h-96{max-height:24rem}.richtext-max-h-\[280px\]{max-height:280px}.richtext-max-h-\[320px\]{max-height:320px}.richtext-max-h-\[min\(80vh\,24rem\)\]{max-height:min(80vh,24rem)}.richtext-max-h-screen{max-height:100vh}.richtext-min-h-\[120px\]{min-height:120px}.richtext-min-h-\[80px\]{min-height:80px}.\!richtext-w-12{width:3rem!important}.\!richtext-w-3{width:.75rem!important}.\!richtext-w-4{width:1rem!important}.\!richtext-w-\[160px\]{width:160px!important}.\!richtext-w-\[initial\]{width:initial!important}.\!richtext-w-fit{width:fit-content!important}.\!richtext-w-full{width:100%!important}.richtext-w-11{width:2.75rem}.richtext-w-32{width:8rem}.richtext-w-4{width:1rem}.richtext-w-48{width:12rem}.richtext-w-5{width:1.25rem}.richtext-w-72{width:18rem}.richtext-w-80{width:20rem}.richtext-w-\[160px\]{width:160px}.richtext-w-\[1px\]{width:1px}.richtext-w-\[200px\]{width:200px}.richtext-w-\[32px\]{width:32px}.richtext-w-\[60px\]{width:60px}.richtext-w-fit{width:fit-content}.richtext-w-full{width:100%}.\!richtext-min-w-0{min-width:0px!important}.\!richtext-min-w-\[20px\]{min-width:20px!important}.richtext-min-w-24{min-width:6rem}.richtext-min-w-4{min-width:1rem}.richtext-min-w-48{min-width:12rem}.richtext-min-w-\[200px\]{min-width:200px}.richtext-min-w-\[8rem\]{min-width:8rem}.richtext-min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.\!richtext-max-w-\[1300px\]{max-width:1300px!important}.\!richtext-max-w-\[400px\]{max-width:400px!important}.richtext-max-w-24{max-width:6rem}.richtext-max-w-\[600px\]{max-width:600px}.richtext-max-w-lg{max-width:32rem}.richtext-max-w-sm{max-width:24rem}.richtext-max-w-xs{max-width:20rem}.\!richtext-flex-1{flex:1 1 0%!important}.\!richtext-flex-none{flex:none!important}.richtext-flex-1{flex:1 1 0%}.richtext-flex-\[0_0_auto\]{flex:0 0 auto}.\!richtext-shrink-0{flex-shrink:0!important}.richtext-shrink-0{flex-shrink:0}.richtext-grow{flex-grow:1}.richtext-translate-x-\[-50\%\]{--richtext-translate-x: -50%;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.richtext-translate-y-\[-50\%\]{--richtext-translate-y: -50%;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.\!richtext-animate-spin{animation:richtext-spin 1s linear infinite!important}.richtext-animate-spin{animation:richtext-spin 1s linear infinite}.richtext-cursor-default{cursor:default}.richtext-cursor-pointer{cursor:pointer}.\!richtext-select-none{-webkit-user-select:none!important;user-select:none!important}.richtext-select-none{-webkit-user-select:none;user-select:none}.\!richtext-scroll-my-1{scroll-margin-top:.25rem!important;scroll-margin-bottom:.25rem!important}.richtext-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.richtext-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.richtext-flex-row{flex-direction:row}.\!richtext-flex-col{flex-direction:column!important}.richtext-flex-col{flex-direction:column}.richtext-flex-col-reverse{flex-direction:column-reverse}.richtext-flex-wrap{flex-wrap:wrap}.richtext-flex-nowrap{flex-wrap:nowrap}.\!richtext-items-center{align-items:center!important}.richtext-items-center{align-items:center}.richtext-justify-end{justify-content:flex-end}.\!richtext-justify-center{justify-content:center!important}.richtext-justify-center{justify-content:center}.richtext-justify-between{justify-content:space-between}.\!richtext-gap-1{gap:.25rem!important}.\!richtext-gap-2{gap:.5rem!important}.richtext-gap-0\.5{gap:.125rem}.richtext-gap-1{gap:.25rem}.richtext-gap-1\.5{gap:.375rem}.richtext-gap-2{gap:.5rem}.richtext-gap-3{gap:.75rem}.richtext-gap-4{gap:1rem}.richtext-gap-\[10px\]{gap:10px}.richtext-gap-\[4px\]{gap:4px}.richtext-space-x-4>:not([hidden])~:not([hidden]){--richtext-space-x-reverse: 0;margin-right:calc(1rem * var(--richtext-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--richtext-space-x-reverse)))}.richtext-space-y-1\.5>:not([hidden])~:not([hidden]){--richtext-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--richtext-space-y-reverse)));margin-bottom:calc(.375rem * var(--richtext-space-y-reverse))}.richtext-space-y-2>:not([hidden])~:not([hidden]){--richtext-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--richtext-space-y-reverse)));margin-bottom:calc(.5rem * var(--richtext-space-y-reverse))}.richtext-space-y-4>:not([hidden])~:not([hidden]){--richtext-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--richtext-space-y-reverse)));margin-bottom:calc(1rem * var(--richtext-space-y-reverse))}.richtext-self-end{align-self:flex-end}.richtext-overflow-auto{overflow:auto}.\!richtext-overflow-hidden{overflow:hidden!important}.richtext-overflow-hidden{overflow:hidden}.richtext-overflow-y-auto{overflow-y:auto}.richtext-overflow-x-hidden{overflow-x:hidden}.\!richtext-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.richtext-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.richtext-whitespace-nowrap{white-space:nowrap}.richtext-break-words{overflow-wrap:break-word}.\!richtext-rounded-md{border-radius:calc(var(--radius) - 2px)!important}.\!richtext-rounded-sm{border-radius:calc(var(--radius) - 4px)!important}.richtext-rounded{border-radius:.25rem}.richtext-rounded-\[10px\]{border-radius:10px}.richtext-rounded-\[12px\]{border-radius:12px}.richtext-rounded-\[2px\]{border-radius:2px}.richtext-rounded-full{border-radius:9999px}.richtext-rounded-lg{border-radius:var(--radius)}.richtext-rounded-md{border-radius:calc(var(--radius) - 2px)}.richtext-rounded-sm{border-radius:calc(var(--radius) - 4px)}.\!richtext-border{border-width:1px!important}.richtext-border{border-width:1px}.richtext-border-2{border-width:2px}.\!richtext-border-b{border-bottom-width:1px!important}.\!richtext-border-t{border-top-width:1px!important}.\!richtext-border-solid{border-style:solid!important}.richtext-border-solid{border-style:solid}.\!richtext-border-none{border-style:none!important}.richtext-border-none{border-style:none}.\!richtext-border-border{border-color:hsl(var(--border))!important}.\!richtext-border-primary{border-color:hsl(var(--primary))!important}.\!richtext-border-transparent{border-color:transparent!important}.richtext-border-\[\#1f6feb\]{--richtext-border-opacity: 1;border-color:rgb(31 111 235 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#238636\]{--richtext-border-opacity: 1;border-color:rgb(35 134 54 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#ab7df8\]{--richtext-border-opacity: 1;border-color:rgb(171 125 248 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#d29922\]{--richtext-border-opacity: 1;border-color:rgb(210 153 34 / var(--richtext-border-opacity, 1))}.richtext-border-\[\#f85149\]{--richtext-border-opacity: 1;border-color:rgb(248 81 73 / var(--richtext-border-opacity, 1))}.richtext-border-border{border-color:hsl(var(--border))}.richtext-border-destructive{border-color:hsl(var(--destructive))}.richtext-border-gray-300{--richtext-border-opacity: 1;border-color:rgb(209 213 219 / var(--richtext-border-opacity, 1))}.richtext-border-input{border-color:hsl(var(--input))}.richtext-border-transparent{border-color:transparent}.\!richtext-bg-foreground{background-color:hsl(var(--foreground))!important}.\!richtext-bg-popover{background-color:hsl(var(--popover))!important}.\!richtext-bg-primary{background-color:hsl(var(--primary))!important}.\!richtext-bg-transparent{background-color:transparent!important}.richtext-bg-\[\#1f6feb1f\]{background-color:#1f6feb1f}.richtext-bg-\[\#2386361f\]{background-color:#2386361f}.richtext-bg-\[\#5a5d5e4f\]{background-color:#5a5d5e4f}.richtext-bg-\[\#ab7df81f\]{background-color:#ab7df81f}.richtext-bg-\[\#d299221f\]{background-color:#d299221f}.richtext-bg-\[\#f851491f\]{background-color:#f851491f}.richtext-bg-background{background-color:hsl(var(--background))}.richtext-bg-black\/80{background-color:#000c}.richtext-bg-border{background-color:hsl(var(--border))}.richtext-bg-destructive{background-color:hsl(var(--destructive))}.richtext-bg-gray-50{--richtext-bg-opacity: 1;background-color:rgb(249 250 251 / var(--richtext-bg-opacity, 1))}.richtext-bg-muted{background-color:hsl(var(--muted))}.richtext-bg-popover{background-color:hsl(var(--popover))}.richtext-bg-primary{background-color:hsl(var(--primary))}.richtext-bg-red-50{--richtext-bg-opacity: 1;background-color:rgb(254 242 242 / var(--richtext-bg-opacity, 1))}.richtext-bg-secondary{background-color:hsl(var(--secondary))}.richtext-bg-transparent{background-color:transparent}.richtext-bg-white{--richtext-bg-opacity: 1;background-color:rgb(255 255 255 / var(--richtext-bg-opacity, 1))}.richtext-bg-opacity-10{--richtext-bg-opacity: .1}.richtext-fill-current{fill:currentColor}.richtext-object-contain{object-fit:contain}.\!richtext-p-0{padding:0!important}.\!richtext-p-2{padding:.5rem!important}.\!richtext-p-\[4px\]{padding:4px!important}.richtext-p-0{padding:0}.richtext-p-0\.5{padding:.125rem}.richtext-p-1{padding:.25rem}.richtext-p-1\.5{padding:.375rem}.richtext-p-10{padding:2.5rem}.richtext-p-2{padding:.5rem}.richtext-p-3{padding:.75rem}.richtext-p-4{padding:1rem}.richtext-p-6{padding:1.5rem}.richtext-p-\[10px\]{padding:10px}.\!richtext-px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!richtext-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!richtext-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.richtext-px-2{padding-left:.5rem;padding-right:.5rem}.richtext-px-3{padding-left:.75rem;padding-right:.75rem}.richtext-px-4{padding-left:1rem;padding-right:1rem}.richtext-px-5{padding-left:1.25rem;padding-right:1.25rem}.richtext-px-8{padding-left:2rem;padding-right:2rem}.richtext-px-\[5px\]{padding-left:5px;padding-right:5px}.richtext-py-0{padding-top:0;padding-bottom:0}.richtext-py-1{padding-top:.25rem;padding-bottom:.25rem}.richtext-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.richtext-py-2{padding-top:.5rem;padding-bottom:.5rem}.richtext-py-4{padding-top:1rem;padding-bottom:1rem}.\!richtext-pb-1{padding-bottom:.25rem!important}.\!richtext-pb-2{padding-bottom:.5rem!important}.\!richtext-pt-3\.5{padding-top:.875rem!important}.richtext-pl-10{padding-left:2.5rem}.richtext-pl-4{padding-left:1rem}.richtext-pl-8{padding-left:2rem}.richtext-pl-\[28px\]{padding-left:28px}.richtext-pr-2{padding-right:.5rem}.richtext-pr-8{padding-right:2rem}.richtext-text-left{text-align:left}.richtext-text-center{text-align:center}.richtext-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\!richtext-text-\[0\.65rem\]{font-size:.65rem!important}.\!richtext-text-base{font-size:1rem!important;line-height:1.5rem!important}.\!richtext-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.\!richtext-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.\!richtext-text-xs{font-size:.75rem!important;line-height:1rem!important}.richtext-text-lg{font-size:1.125rem;line-height:1.75rem}.richtext-text-sm{font-size:.875rem;line-height:1.25rem}.richtext-text-xs{font-size:.75rem;line-height:1rem}.richtext-font-medium{font-weight:500}.richtext-font-normal{font-weight:400}.richtext-font-semibold{font-weight:600}.richtext-uppercase{text-transform:uppercase}.\!richtext-leading-none{line-height:1!important}.richtext-leading-none{line-height:1}.richtext-tracking-tight{letter-spacing:-.025em}.richtext-tracking-widest{letter-spacing:.1em}.\!richtext-text-current{color:currentColor!important}.\!richtext-text-muted-foreground{color:hsl(var(--muted-foreground))!important}.\!richtext-text-popover-foreground{color:hsl(var(--popover-foreground))!important}.\!richtext-text-primary-foreground{color:hsl(var(--primary-foreground))!important}.\!richtext-text-secondary-foreground{color:hsl(var(--secondary-foreground))!important}.richtext-text-\[\#1f6feb\]{--richtext-text-opacity: 1;color:rgb(31 111 235 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#238636\]{--richtext-text-opacity: 1;color:rgb(35 134 54 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#ab7df8\]{--richtext-text-opacity: 1;color:rgb(171 125 248 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#d29922\]{--richtext-text-opacity: 1;color:rgb(210 153 34 / var(--richtext-text-opacity, 1))}.richtext-text-\[\#f85149\]{--richtext-text-opacity: 1;color:rgb(248 81 73 / var(--richtext-text-opacity, 1))}.richtext-text-accent{color:hsl(var(--accent))}.richtext-text-accent-foreground{color:hsl(var(--accent-foreground))}.richtext-text-destructive-foreground{color:hsl(var(--destructive-foreground))}.richtext-text-foreground{color:hsl(var(--foreground))}.richtext-text-foreground\/50{color:hsl(var(--foreground) / .5)}.richtext-text-gray-400{--richtext-text-opacity: 1;color:rgb(156 163 175 / var(--richtext-text-opacity, 1))}.richtext-text-gray-500{--richtext-text-opacity: 1;color:rgb(107 114 128 / var(--richtext-text-opacity, 1))}.richtext-text-muted-foreground{color:hsl(var(--muted-foreground))}.richtext-text-popover-foreground{color:hsl(var(--popover-foreground))}.richtext-text-primary{color:hsl(var(--primary))}.richtext-text-primary-foreground{color:hsl(var(--primary-foreground))}.richtext-text-red-500{--richtext-text-opacity: 1;color:rgb(239 68 68 / var(--richtext-text-opacity, 1))}.richtext-text-secondary-foreground{color:hsl(var(--secondary-foreground))}.richtext-text-zinc-500{--richtext-text-opacity: 1;color:rgb(113 113 122 / var(--richtext-text-opacity, 1))}.richtext-underline-offset-4{text-underline-offset:4px}.\!richtext-opacity-50{opacity:.5!important}.richtext-opacity-0{opacity:0}.richtext-opacity-50{opacity:.5}.richtext-opacity-60{opacity:.6}.richtext-opacity-70{opacity:.7}.richtext-opacity-90{opacity:.9}.richtext-shadow-lg{--richtext-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--richtext-shadow-colored: 0 10px 15px -3px var(--richtext-shadow-color), 0 4px 6px -4px var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.richtext-shadow-md{--richtext-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--richtext-shadow-colored: 0 4px 6px -1px var(--richtext-shadow-color), 0 2px 4px -2px var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.\!richtext-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.richtext-outline-none{outline:2px solid transparent;outline-offset:2px}.richtext-ring-0{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(0px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.\!richtext-ring-offset-background{--richtext-ring-offset-color: hsl(var(--background)) !important}.richtext-ring-offset-background{--richtext-ring-offset-color: hsl(var(--background))}.richtext-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.richtext-duration-200{transition-duration:.2s}.richtext-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes aenter{0%{opacity:var(--richtext-enter-opacity, 1);transform:translate3d(var(--richtext-enter-translate-x, 0),var(--richtext-enter-translate-y, 0),0) scale3d(var(--richtext-enter-scale, 1),var(--richtext-enter-scale, 1),var(--richtext-enter-scale, 1)) rotate(var(--richtext-enter-rotate, 0))}}@keyframes aexit{to{opacity:var(--richtext-exit-opacity, 1);transform:translate3d(var(--richtext-exit-translate-x, 0),var(--richtext-exit-translate-y, 0),0) scale3d(var(--richtext-exit-scale, 1),var(--richtext-exit-scale, 1),var(--richtext-exit-scale, 1)) rotate(var(--richtext-exit-rotate, 0))}}.richtext-animate-in{animation-name:aenter;animation-duration:.15s;--richtext-enter-opacity: initial;--richtext-enter-scale: initial;--richtext-enter-rotate: initial;--richtext-enter-translate-x: initial;--richtext-enter-translate-y: initial}.richtext-fade-in-0{--richtext-enter-opacity: 0}.richtext-zoom-in-95{--richtext-enter-scale: .95}.richtext-duration-200{animation-duration:.2s}.richtext-ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}html body[data-scroll-locked]{--removed-body-scroll-bar-size: 0 !important;position:initial!important}.remarkablejames-editor{background-color:hsl(var(--background));color:hsl(var(--foreground))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{z-index:0;padding:4rem 2rem 4rem 5rem;caret-color:#000;outline-width:0px}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror:is([class~=dark] *){caret-color:#fff}@media(min-width:1024px){.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{padding-left:2rem;padding-right:2rem}}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{outline:none!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror:focus,.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror:focus-visible{outline:none!important;box-shadow:none!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror{min-height:180px;padding:32px 80px}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .img-placeholder{width:fit-content;position:relative;background-color:#ffffff4d;--richtext-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--richtext-backdrop-blur) var(--richtext-backdrop-brightness) var(--richtext-backdrop-contrast) var(--richtext-backdrop-grayscale) var(--richtext-backdrop-hue-rotate) var(--richtext-backdrop-invert) var(--richtext-backdrop-opacity) var(--richtext-backdrop-saturate) var(--richtext-backdrop-sepia);backdrop-filter:var(--richtext-backdrop-blur) var(--richtext-backdrop-brightness) var(--richtext-backdrop-contrast) var(--richtext-backdrop-grayscale) var(--richtext-backdrop-hue-rotate) var(--richtext-backdrop-invert) var(--richtext-backdrop-opacity) var(--richtext-backdrop-saturate) var(--richtext-backdrop-sepia)}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .img-placeholder:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:24px;height:24px;margin:-12px 0 0 -12px;display:inline-block}@keyframes richtext-spin{to{transform:rotate(360deg)}}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .img-placeholder:before{animation:richtext-spin 1s linear infinite;border-radius:9999px;border-width:3px;border-color:currentColor;border-top-color:transparent}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper{margin:1em 0;overflow-x:auto}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table{overflow:hidden;display:table;width:100%}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .column-resize-handle{pointer-events:none;position:absolute;bottom:-2px;right:-2px;top:0;z-index:10;width:.25rem;background-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .resize-cursor{cursor:"col-resize"}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .selectedCell{border-style:double;border-color:#0003;background-color:#0000000d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .tableWrapper table .selectedCell:is([class~=dark] *){border-color:#fff3;background-color:#ffffff1a}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule]{cursor:pointer;transition-property:all;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1);animation-duration:.1s;animation-timing-function:cubic-bezier(.4,0,.2,1)}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode{background-color:#0000000d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode:is([class~=dark] *){background-color:#ffffff1a}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode hr{border-top-color:hsl(var(--foreground))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule]:hover:not(.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode){background-color:#0000000d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule]:hover:not(.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror [data-type=horizontalRule].ProseMirror-selectednode):is([class~=dark] *){background-color:#ffffff1a}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.image-view),.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.search-result){background-color:#0000001a;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow);outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.image-view):is([class~=dark] *),.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.dragging) .ProseMirror-selectednode:not(.search-result):is([class~=dark] *){background-color:#fff3}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.image-view)::selection,.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror :not(.search-result)::selection{background-color:hsl(var(--accent))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .is-empty:before{content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;width:100%;height:0}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .columns.is-empty:before{display:none!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;width:100%;height:0}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror p.is-editor-empty:first-child:before{float:left;height:0;color:#adb5bd;pointer-events:none;width:100%;content:attr(data-placeholder)}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .ProseMirror-gapcursor{position:relative;margin-left:auto;margin-right:auto;width:100%;max-width:42rem}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .ProseMirror-gapcursor:after{left:0;right:0;top:-1.5em;margin-left:auto;margin-right:auto;width:100%;max-width:42rem;border-top-color:#0006}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .ProseMirror-gapcursor:is([class~=dark] *):after{border-top-color:#fff6}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view{display:inline-block;float:none;max-width:100%;line-height:0;vertical-align:baseline;-webkit-user-select:none;user-select:none}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body{position:relative;display:inline-block;max-width:100%;clear:both;outline:transparent solid 2px;transition:all .2s ease-in}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body__button-wrap{display:none;justify-content:center;align-items:center;position:absolute;top:9px;right:9px;background:#26262699;border-radius:8px;z-index:4}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body:hover{outline-color:#ffc83d}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body:hover .image-view__body__button-wrap{display:block}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body--focused:hover,.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body--resizing:hover{outline-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body__placeholder{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view__body__image{margin:0;cursor:pointer!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view .image-view__body--focused{outline-color:hsl(var(--primary))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view.focus img{outline-style:solid;outline-width:2px;outline-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-view img{display:inline;vertical-align:baseline}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;border-width:1px!important;border-color:hsl(var(--border))!important}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler{position:absolute;z-index:2;box-sizing:border-box;display:block;width:12px;height:12px;border:1px solid #fff;border-radius:2px;background-color:hsl(var(--primary))}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--tl{top:-6px;left:-6px;cursor:nw-resize}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--tr{top:-6px;right:-6px;cursor:ne-resize}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--bl{bottom:-6px;left:-6px;cursor:sw-resize}.remarkablejames-editor .ProseMirror.ProseMirror.ProseMirror .image-resizer__handler--br{right:-6px;bottom:-6px;cursor:se-resize}.remarkablejames-editor.dense .ProseMirror{min-height:32px;padding:6px 12px}.remarkablejames-editor.dense p{padding:0;line-height:1.2rem}.remarkablejames-editor .ProseMirror[contenteditable=true].resize-cursor{cursor:col-resize}.remarkablejames-editor .ProseMirror{caret-color:hsl(var(--richtext-text-foreground))!important}.bg-item-active.bg-item-active{background-color:hsl(var(--accent))!important}.heading-1{font-weight:700;font-size:28px;line-height:1.6}.heading-2{font-weight:700;font-size:24px;line-height:1.6}.heading-3{font-size:20px;font-weight:700;line-height:1.6}.heading-4{font-size:16px;font-weight:700;line-height:1.6}.heading-5,.heading-6{font-size:14px;font-weight:700;line-height:1.6}.tableCellActive{border-radius:2px!important;transition:all .1s ease-in-out}.tableCellActive>div{border:unset!important}.node-tableOfContents.focus{border-width:1px;border-radius:6px}div[data-twitter]>div{margin:10px auto}.react-renderer.node-twitter.focus{border-width:1px;border-radius:6px}.ProseMirror p{margin-bottom:.375rem;line-height:1.625}.ProseMirror p:first-child{margin-top:0}.ProseMirror p:last-child{margin-bottom:0}.ProseMirror>p{margin-bottom:.375rem}.ProseMirror>p:first-child{margin-top:0}.ProseMirror>p:last-child{margin-bottom:0}.ProseMirror h1{font-size:1.875rem;line-height:2.25rem}.ProseMirror h2{font-size:1.5rem;line-height:2rem}.ProseMirror h3{font-size:1.25rem;line-height:1.75rem}.ProseMirror h4{font-size:1.125rem;line-height:1.75rem}.ProseMirror h5{font-size:1rem;line-height:1.5rem}.ProseMirror h6{font-size:.875rem;line-height:1.25rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{font-weight:700}.ProseMirror h1:first-child,.ProseMirror h2:first-child,.ProseMirror h3:first-child,.ProseMirror h4:first-child,.ProseMirror h5:first-child,.ProseMirror h6:first-child{margin-top:0}.ProseMirror h1:last-child,.ProseMirror h2:last-child,.ProseMirror h3:last-child,.ProseMirror h4:last-child,.ProseMirror h5:last-child,.ProseMirror h6:last-child{margin-bottom:0}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3{margin-top:3rem}.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{margin-top:2rem}.ProseMirror a.link{font-weight:800;--richtext-text-opacity: 1;color:rgb(59 130 246 / var(--richtext-text-opacity, 1))}.ProseMirror a.link:is([class~=dark] *){--richtext-text-opacity: 1;color:rgb(96 165 250 / var(--richtext-text-opacity, 1))}.ProseMirror mark{border-radius:calc(var(--radius) - 4px);--richtext-bg-opacity: 1;background-color:rgb(239 68 68 / var(--richtext-bg-opacity, 1));-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-left:0;padding-right:0;padding-top:.25rem;padding-bottom:.25rem;color:inherit}.ProseMirror mark:is([class~=dark] *){--richtext-bg-opacity: 1;background-color:rgb(248 113 113 / var(--richtext-bg-opacity, 1))}.ProseMirror img{height:auto;max-width:100%}.ProseMirror *[data-indent="1"]{text-indent:2em!important}.ProseMirror *[data-indent="2"]{text-indent:4em!important}.ProseMirror *[data-indent="3"]{text-indent:6em!important}.ProseMirror *[data-indent="4"]{text-indent:8em!important}.ProseMirror *[data-indent="5"]{text-indent:10em!important}.ProseMirror *[data-indent="6"]{text-indent:12em!important}.ProseMirror *[data-indent="7"]{text-indent:14em!important}.ProseMirror iframe{border-width:1px!important;margin-top:.5rem;height:100%;width:100%;border-radius:calc(var(--radius) - 4px);border-color:hsl(var(--border))}.ProseMirror .blockquote{border-radius:var(--radius);border-bottom-left-radius:0;border-top-left-radius:0;border-left-width:4px;--richtext-border-opacity: 1;border-left-color:rgb(64 64 64 / var(--richtext-border-opacity, 1));--richtext-bg-opacity: .8;padding:.5rem 1rem;--richtext-text-opacity: 1;color:rgb(0 0 0 / var(--richtext-text-opacity, 1))}.ProseMirror .blockquote:is([class~=dark] *){--richtext-border-opacity: 1;border-left-color:rgb(212 212 212 / var(--richtext-border-opacity, 1));--richtext-text-opacity: 1;color:rgb(255 255 255 / var(--richtext-text-opacity, 1))}.ProseMirror code{border-radius:calc(var(--radius) - 4px);--richtext-bg-opacity: 1;background-color:rgb(23 23 23 / var(--richtext-bg-opacity, 1));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--richtext-text-opacity: 1;color:rgb(255 255 255 / var(--richtext-text-opacity, 1));caret-color:#fff;--richtext-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--richtext-shadow-colored: 0 10px 15px -3px var(--richtext-shadow-color), 0 4px 6px -4px var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.ProseMirror pre{margin-top:3rem;margin-bottom:3rem;border-radius:.25rem;border-width:1px!important;--richtext-border-opacity: 1;border-color:rgb(0 0 0 / var(--richtext-border-opacity, 1));border-color:hsl(var(--border));--richtext-bg-opacity: 1;background-color:rgb(64 64 64 / var(--richtext-bg-opacity, 1));padding:1rem;--richtext-text-opacity: 1;color:rgb(255 255 255 / var(--richtext-text-opacity, 1));caret-color:#fff}.ProseMirror pre:is([class~=dark] *){--richtext-bg-opacity: 1;background-color:rgb(23 23 23 / var(--richtext-bg-opacity, 1))}.ProseMirror pre code{background-color:inherit;padding:0;color:inherit;--richtext-shadow: 0 0 #0000;--richtext-shadow-colored: 0 0 #0000;box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.ProseMirror ol{list-style-type:decimal}.ProseMirror ul{list-style-type:disc}.ProseMirror ul,.ProseMirror ol{margin-top:1.5rem;margin-bottom:1.5rem;padding-left:2rem;padding-right:2rem;padding-top:0;padding-bottom:0}.ProseMirror ul:first-child,.ProseMirror ol:first-child{margin-top:0}.ProseMirror ul:last-child,.ProseMirror ol:last-child{margin-bottom:0}.ProseMirror ul ul,.ProseMirror ul ol,.ProseMirror ul li,.ProseMirror ol ul,.ProseMirror ol ol,.ProseMirror ol li{margin-top:.25rem;margin-bottom:.25rem}.ProseMirror ul p,.ProseMirror ol p{margin-bottom:.25rem;margin-top:0}.ProseMirror>ul,.ProseMirror>ol{margin-top:2rem;margin-bottom:2rem}.ProseMirror>ul:first-child,.ProseMirror>ol:first-child{margin-top:0}.ProseMirror>ul:last-child,.ProseMirror>ol:last-child{margin-bottom:0}.ProseMirror ul[data-type=taskList]{list-style-type:none;padding:0}.ProseMirror ul[data-type=taskList] p{margin:0}.ProseMirror ul[data-type=taskList] li{display:flex}.ProseMirror ul[data-type=taskList] li>label{margin-right:.5rem;display:inline;flex:1 1 auto;flex-shrink:0;flex-grow:0;-webkit-user-select:none;user-select:none}.ProseMirror ul[data-type=taskList] li>div{flex:1 1 auto}.ProseMirror ul[data-type=taskList] li[data-checked=true]{text-decoration-line:line-through}.ProseMirror table{box-sizing:border-box;display:block;table-layout:fixed;border-collapse:collapse;overflow-x:auto;overflow-y:hidden;border-color:#0000001a}.ProseMirror table:is([class~=dark] *){border-color:#fff3}.ProseMirror table td,.ProseMirror table th{border-width:1px!important;position:relative;box-sizing:border-box;min-width:1em;border-color:#0000001a;padding:.5rem;text-align:left;vertical-align:top}.ProseMirror table td:is([class~=dark] *),.ProseMirror table th:is([class~=dark] *){border-color:#fff3}.ProseMirror table td:first-of-type:not(a),.ProseMirror table th:first-of-type:not(a){margin-top:0}.ProseMirror table td p,.ProseMirror table th p{margin:0}.ProseMirror table td p+p,.ProseMirror table th p+p{margin-top:.75rem}.ProseMirror table th{text-align:left;font-weight:700}.remarkablejames-editor .ProseMirror .search-result{background-color:#ffd90080}.remarkablejames-editor .ProseMirror .search-result-current{background-color:#0dff0080}.columns{display:flex;width:100%;gap:8px;margin-top:.75em}.columns .column{min-width:0;padding:12px;flex:1 1 0%;box-sizing:border-box}.columns .column p:first-of-type{margin-top:0}.remarkablejames-editor .columns .column{border-width:1px;border-style:solid;border-color:hsl(var(--border));border-radius:2px}[data-type=mention]{color:hsl(var(--primary));background:hsl(var(--muted));padding:2px 4px;border-radius:6px}.file\:richtext-border-0::file-selector-button{border-width:0px}.file\:richtext-bg-transparent::file-selector-button{background-color:transparent}.file\:richtext-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:richtext-font-medium::file-selector-button{font-weight:500}.placeholder\:\!richtext-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))!important}.placeholder\:richtext-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:richtext-pb-2:last-child{padding-bottom:.5rem}.hover\:richtext-cursor-pointer:hover{cursor:pointer}.hover\:\!richtext-border-border:hover{border-color:hsl(var(--border))!important}.hover\:richtext-border-border:hover{border-color:hsl(var(--border))}.hover\:\!richtext-bg-accent:hover{background-color:hsl(var(--accent))!important}.hover\:\!richtext-bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)!important}.hover\:richtext-bg-\[\#5a5d5e4f\]:hover{background-color:#5a5d5e4f}.hover\:richtext-bg-accent:hover{background-color:hsl(var(--accent))}.hover\:richtext-bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:richtext-bg-muted:hover{background-color:hsl(var(--muted))}.hover\:richtext-bg-red-400:hover{--richtext-bg-opacity: 1;background-color:rgb(248 113 113 / var(--richtext-bg-opacity, 1))}.hover\:richtext-bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:richtext-bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:richtext-bg-opacity-20:hover{--richtext-bg-opacity: .2}.hover\:richtext-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:richtext-text-foreground:hover{color:hsl(var(--foreground))}.hover\:richtext-text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:richtext-underline:hover{text-decoration-line:underline}.hover\:richtext-opacity-100:hover{opacity:1}.hover\:richtext-shadow-sm:hover{--richtext-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--richtext-shadow-colored: 0 1px 2px 0 var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.focus\:richtext-bg-accent:focus{background-color:hsl(var(--accent))}.focus\:richtext-bg-red-400:focus{--richtext-bg-opacity: 1;background-color:rgb(248 113 113 / var(--richtext-bg-opacity, 1))}.focus\:richtext-bg-opacity-30:focus{--richtext-bg-opacity: .3}.focus\:richtext-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:richtext-text-red-500:focus{--richtext-text-opacity: 1;color:rgb(239 68 68 / var(--richtext-text-opacity, 1))}.focus\:richtext-opacity-100:focus{opacity:1}.focus\:richtext-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:richtext-ring-2:focus{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(2px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.focus\:richtext-ring-ring:focus{--richtext-ring-color: hsl(var(--ring))}.focus\:richtext-ring-offset-1:focus{--richtext-ring-offset-width: 1px}.focus-visible\:\!richtext-outline-none:focus-visible{outline:2px solid transparent!important;outline-offset:2px!important}.focus-visible\:richtext-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\!richtext-ring-2:focus-visible{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color) !important;--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(2px + var(--richtext-ring-offset-width)) var(--richtext-ring-color) !important;box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)!important}.focus-visible\:richtext-ring-1:focus-visible{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(1px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.focus-visible\:richtext-ring-2:focus-visible{--richtext-ring-offset-shadow: var(--richtext-ring-inset) 0 0 0 var(--richtext-ring-offset-width) var(--richtext-ring-offset-color);--richtext-ring-shadow: var(--richtext-ring-inset) 0 0 0 calc(2px + var(--richtext-ring-offset-width)) var(--richtext-ring-color);box-shadow:var(--richtext-ring-offset-shadow),var(--richtext-ring-shadow),var(--richtext-shadow, 0 0 #0000)}.focus-visible\:\!richtext-ring-ring:focus-visible{--richtext-ring-color: hsl(var(--ring)) !important}.focus-visible\:richtext-ring-ring:focus-visible{--richtext-ring-color: hsl(var(--ring))}.focus-visible\:\!richtext-ring-offset-1:focus-visible{--richtext-ring-offset-width: 1px !important}.focus-visible\:richtext-ring-offset-1:focus-visible{--richtext-ring-offset-width: 1px}.focus-visible\:richtext-ring-offset-background:focus-visible{--richtext-ring-offset-color: hsl(var(--background))}.disabled\:richtext-pointer-events-none:disabled{pointer-events:none}.disabled\:\!richtext-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\:richtext-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:\!richtext-opacity-50:disabled{opacity:.5!important}.disabled\:richtext-opacity-50:disabled{opacity:.5}.richtext-group:hover .group-hover\:richtext-opacity-100{opacity:1}.richtext-group.destructive .group-\[\.destructive\]\:richtext-border-muted\/40{border-color:hsl(var(--muted) / .4)}.richtext-group.destructive .group-\[\.destructive\]\:richtext-text-red-300{--richtext-text-opacity: 1;color:rgb(252 165 165 / var(--richtext-text-opacity, 1))}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-bg-destructive:hover{background-color:hsl(var(--destructive))}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.richtext-group.destructive .group-\[\.destructive\]\:hover\:richtext-text-red-50:hover{--richtext-text-opacity: 1;color:rgb(254 242 242 / var(--richtext-text-opacity, 1))}.richtext-group.destructive .group-\[\.destructive\]\:focus\:richtext-ring-destructive:focus{--richtext-ring-color: hsl(var(--destructive))}.richtext-group.destructive .group-\[\.destructive\]\:focus\:richtext-ring-red-400:focus{--richtext-ring-opacity: 1;--richtext-ring-color: rgb(248 113 113 / var(--richtext-ring-opacity, 1))}.richtext-group.destructive .group-\[\.destructive\]\:focus\:richtext-ring-offset-red-600:focus{--richtext-ring-offset-color: #dc2626}.richtext-peer:disabled~.peer-disabled\:richtext-cursor-not-allowed{cursor:not-allowed}.richtext-peer:disabled~.peer-disabled\:richtext-opacity-70{opacity:.7}.data-\[disabled\]\:richtext-pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:richtext-translate-y-1[data-side=bottom]{--richtext-translate-y: .25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[side\=left\]\:richtext--translate-x-1[data-side=left]{--richtext-translate-x: -.25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[side\=right\]\:richtext-translate-x-1[data-side=right]{--richtext-translate-x: .25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[side\=top\]\:richtext--translate-y-1[data-side=top]{--richtext-translate-y: -.25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[state\=checked\]\:richtext-translate-x-5[data-state=checked]{--richtext-translate-x: 1.25rem;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[state\=unchecked\]\:richtext-translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:richtext-translate-x-0[data-swipe=cancel]{--richtext-translate-x: 0px;transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[swipe\=end\]\:richtext-translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--richtext-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[swipe\=move\]\:richtext-translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--richtext-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--richtext-translate-x),var(--richtext-translate-y)) rotate(var(--richtext-rotate)) skew(var(--richtext-skew-x)) skewY(var(--richtext-skew-y)) scaleX(var(--richtext-scale-x)) scaleY(var(--richtext-scale-y))}.data-\[active\]\:\!richtext-bg-accent[data-active]{background-color:hsl(var(--accent))!important}.data-\[state\=active\]\:richtext-bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:\!richtext-bg-primary[data-state=checked]{background-color:hsl(var(--primary))!important}.data-\[state\=checked\]\:richtext-bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:richtext-bg-accent[data-state=on],.data-\[state\=open\]\:richtext-bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:richtext-bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:richtext-text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:\!richtext-text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))!important}.data-\[state\=on\]\:richtext-text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:richtext-text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:richtext-opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:richtext-shadow-sm[data-state=active]{--richtext-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--richtext-shadow-colored: 0 1px 2px 0 var(--richtext-shadow-color);box-shadow:var(--richtext-ring-offset-shadow, 0 0 #0000),var(--richtext-ring-shadow, 0 0 #0000),var(--richtext-shadow)}.data-\[swipe\=move\]\:richtext-transition-none[data-swipe=move]{transition-property:none}.data-\[state\=open\]\:richtext-animate-in[data-state=open]{animation-name:aenter;animation-duration:.15s;--richtext-enter-opacity: initial;--richtext-enter-scale: initial;--richtext-enter-rotate: initial;--richtext-enter-translate-x: initial;--richtext-enter-translate-y: initial}.data-\[state\=closed\]\:richtext-animate-out[data-state=closed],.data-\[swipe\=end\]\:richtext-animate-out[data-swipe=end]{animation-name:aexit;animation-duration:.15s;--richtext-exit-opacity: initial;--richtext-exit-scale: initial;--richtext-exit-rotate: initial;--richtext-exit-translate-x: initial;--richtext-exit-translate-y: initial}.data-\[state\=closed\]\:richtext-fade-out-0[data-state=closed]{--richtext-exit-opacity: 0}.data-\[state\=closed\]\:richtext-fade-out-80[data-state=closed]{--richtext-exit-opacity: .8}.data-\[state\=open\]\:richtext-fade-in-0[data-state=open]{--richtext-enter-opacity: 0}.data-\[state\=closed\]\:richtext-zoom-out-95[data-state=closed]{--richtext-exit-scale: .95}.data-\[state\=open\]\:richtext-zoom-in-95[data-state=open]{--richtext-enter-scale: .95}.data-\[side\=bottom\]\:richtext-slide-in-from-top-2[data-side=bottom]{--richtext-enter-translate-y: -.5rem}.data-\[side\=left\]\:richtext-slide-in-from-right-2[data-side=left]{--richtext-enter-translate-x: .5rem}.data-\[side\=right\]\:richtext-slide-in-from-left-2[data-side=right]{--richtext-enter-translate-x: -.5rem}.data-\[side\=top\]\:richtext-slide-in-from-bottom-2[data-side=top]{--richtext-enter-translate-y: .5rem}.data-\[state\=closed\]\:richtext-slide-out-to-left-1\/2[data-state=closed]{--richtext-exit-translate-x: -50%}.data-\[state\=closed\]\:richtext-slide-out-to-right-full[data-state=closed]{--richtext-exit-translate-x: 100%}.data-\[state\=closed\]\:richtext-slide-out-to-top-\[48\%\][data-state=closed]{--richtext-exit-translate-y: -48%}.data-\[state\=open\]\:richtext-slide-in-from-left-1\/2[data-state=open]{--richtext-enter-translate-x: -50%}.data-\[state\=open\]\:richtext-slide-in-from-top-\[48\%\][data-state=open]{--richtext-enter-translate-y: -48%}.data-\[state\=open\]\:richtext-slide-in-from-top-full[data-state=open]{--richtext-enter-translate-y: -100%}.dark\:hover\:richtext-bg-opacity-20:hover:is([class~=dark] *){--richtext-bg-opacity: .2}.dark\:hover\:richtext-text-red-500:hover:is([class~=dark] *){--richtext-text-opacity: 1;color:rgb(239 68 68 / var(--richtext-text-opacity, 1))}@media(min-width:640px){.sm\:richtext-bottom-0{bottom:0}.sm\:richtext-right-0{right:0}.sm\:richtext-top-auto{top:auto}.sm\:richtext-flex-row{flex-direction:row}.sm\:richtext-flex-col{flex-direction:column}.sm\:richtext-justify-end{justify-content:flex-end}.sm\:richtext-space-x-2>:not([hidden])~:not([hidden]){--richtext-space-x-reverse: 0;margin-right:calc(.5rem * var(--richtext-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--richtext-space-x-reverse)))}.sm\:richtext-rounded-lg{border-radius:var(--radius)}.sm\:richtext-text-left{text-align:left}.data-\[state\=open\]\:sm\:richtext-slide-in-from-bottom-full[data-state=open]{--richtext-enter-translate-y: 100%}}@media(min-width:768px){.md\:richtext-max-w-\[420px\]{max-width:420px}}.\[\&\>span\]\:richtext-line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.mermaid-node-view:hover .\[\.mermaid-node-view\:hover_\&\]\:richtext-opacity-100{opacity:1}._wrap_1x3wi_1{--editor__bg: #292c33;--widget__border: #3a3f4b;--widget__color: #ccc}._wrap_1x3wi_1 .richtext-node-code-block{width:100%;outline:solid 1px black;overflow:hidden;border-radius:4px;position:relative}._wrap_1x3wi_1 .richtext-code-block-toolbar{display:flex;align-items:center;gap:8px;z-index:10;padding:4px;background-color:var(--editor__bg);color:var(--widget__color);border-bottom:1px solid var(--widget__border)}._wrap_1x3wi_1 .richtext-code-block-toolbar .toolbar-divider{width:1px;height:16px;background-color:var(--widget__border);margin:0 4px}._blockInfoEditable_1x3wi_30{pointer-events:none}._wrap_dra8y_1{position:relative;max-width:100%;overflow:visible;line-height:0}._wrap_dra8y_1 ._renderWrap_dra8y_7{border:1px dashed hsl(var(--border))!important;border-radius:6px}._wrap_dra8y_1 ._renderWrap_dra8y_7:after{background-color:transparent!important}._wrap_dra8y_1 ._title_dra8y_14{position:absolute;top:10px;left:10px;z-index:2}._wrap_dra8y_1 ._title_dra8y_14 ._icon_dra8y_20{display:flex;width:18px;height:18px;color:#fff;background-color:#f80;border-radius:2px;justify-content:center;align-items:center}._wrap_dra8y_1 ._handlerWrap_dra8y_30{position:absolute;right:10px;bottom:10px;z-index:2;padding:2px 4px;border:1px solid hsl(var(--border));border-radius:6px}._disabled_dra8y_40{pointer-events:none!important}._attachment_1is0r_4,._wrap_1is0r_5{border:none;border-radius:calc(var(--radius, .65rem) + 2px);background-color:hsl(var(--muted, 240 4.8% 95.9%));padding:10px 12px;display:flex;align-items:center;justify-content:space-between;margin:8px 0;transition:box-shadow .15s ease}._attachment_1is0r_4:hover,._wrap_1is0r_5:hover{box-shadow:0 2px 8px #78788733}._attachment_1is0r_4 .attachment__icon,._wrap_1is0r_5 .attachment__icon{width:32px;text-align:center;display:flex;align-items:center;justify-content:center}._attachment_1is0r_4 .attachment__icon svg,._wrap_1is0r_5 .attachment__icon svg{width:28px;height:28px;display:inline-block}._attachment_1is0r_4 .attachment__text,._wrap_1is0r_5 .attachment__text{font-size:.875rem;color:hsl(var(--foreground, 240 10% 3.9%))}._placeholder_1is0r_44{border-style:dashed;background-color:#f4f4f580;cursor:pointer}._placeholder_1is0r_44:hover{background-color:hsl(var(--muted, 240 4.8% 95.9%))}._placeholderText_1is0r_53{margin:0;font-size:.875rem;color:hsl(var(--muted-foreground, 240 3.8% 46.1%));cursor:pointer;-webkit-user-select:none;user-select:none}._card_1is0r_64{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin:8px 0;background-color:hsl(var(--muted, 240 4.8% 95.9%));border:none;border-radius:calc(var(--radius, .65rem) + 2px);transition:box-shadow .15s ease,background-color .15s ease}._card_1is0r_64:hover{box-shadow:0 2px 10px #7878872e}._card_1is0r_64:hover ._downloadBtn_1is0r_82{background-color:hsl(var(--accent, 240 4.8% 91%));color:hsl(var(--accent-foreground, 240 5.9% 10%))}._cardLeft_1is0r_88{display:flex;align-items:center;gap:10px;min-width:0;flex:1}._iconWrap_1is0r_97{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:var(--radius, .65rem);background-color:hsl(var(--muted, 240 4.8% 92%));border:none;color:hsl(var(--foreground, 240 10% 3.9%))}._iconWrap_1is0r_97 svg{width:20px;height:20px;flex-shrink:0}._fileInfo_1is0r_116{display:flex;flex-direction:column;gap:1px;min-width:0}._fileName_1is0r_123{font-size:.875rem;font-weight:500;color:hsl(var(--foreground, 240 10% 3.9%));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}._fileSize_1is0r_133{font-size:.72rem;color:hsl(var(--muted-foreground, 240 3.8% 46.1%));line-height:1.3}._cardPreview_1is0r_145{border:none;background-color:hsl(var(--muted, 240 4.8% 96.5%));transition:none;cursor:default}._cardPreview_1is0r_145 ._iconWrap_1is0r_97{background-color:#dfdfe2;border:none;color:hsl(var(--foreground, 240 10% 3.9%))}._cardPreview_1is0r_145 ._fileName_1is0r_123{color:hsl(var(--foreground, 240 10% 3.9%))}._cardPreview_1is0r_145 ._fileSize_1is0r_133{color:hsl(var(--muted-foreground, 240 3.8% 46.1%))}._cardPreview_1is0r_145:hover{box-shadow:none}._cardPreview_1is0r_145:hover ._downloadBtn_1is0r_82{background-color:#d4d4d8;color:hsl(var(--accent-foreground, 240 5.9% 10%));border-radius:var(--radius, .65rem)}._cardPreview_1is0r_145 ._downloadBtn_1is0r_82:hover{background-color:#cacace;color:hsl(var(--accent-foreground, 240 5.9% 10%));box-shadow:0 0 0 2px #78788733;border-radius:var(--radius, .65rem)}.dark ._cardPreview_1is0r_145{border:none;background-color:hsl(var(--muted, 240 3.7% 18%))}.dark ._cardPreview_1is0r_145 ._iconWrap_1is0r_97{background-color:#3b3b3f;border:none;color:hsl(var(--foreground, 0 0% 95%))}.dark ._cardPreview_1is0r_145 ._fileName_1is0r_123{color:hsl(var(--foreground, 0 0% 95%))}.dark ._cardPreview_1is0r_145 ._fileSize_1is0r_133{color:hsl(var(--muted-foreground, 240 5% 64.9%))}.dark ._cardPreview_1is0r_145:hover{box-shadow:none}.dark ._cardPreview_1is0r_145:hover ._downloadBtn_1is0r_82{background-color:#45454a;color:hsl(var(--accent-foreground, 0 0% 95%));border-radius:var(--radius, .65rem)}.dark ._cardPreview_1is0r_145 ._downloadBtn_1is0r_82:hover{background-color:#4f4f55;color:hsl(var(--accent-foreground, 0 0% 95%));box-shadow:0 0 0 2px #95959d33;border-radius:var(--radius, .65rem)}._actions_1is0r_221{display:flex;align-items:center;gap:2px;flex-shrink:0}._downloadBtn_1is0r_82{transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}._cardError_1is0r_236{background-color:#ef444414;border:none}._cardError_1is0r_236 ._errorText_1is0r_240{color:hsl(var(--destructive, 0 84.2% 60.2%))}._cardError_1is0r_236:hover{background-color:#ef44441f;box-shadow:0 2px 8px #ef444426}._errorText_1is0r_240{margin:0;font-size:.875rem;color:hsl(var(--destructive, 0 84.2% 60.2%))}._wrapper_pva9d_1{background-color:#fff;cursor:pointer;position:absolute;top:0;left:0;padding:10px;gap:10px;z-index:100;border:1px solid #eeeeee;box-shadow:0 0 10px #0000001a;border-radius:10px}._tool_pva9d_17{outline:none;border:none;background-color:#fff;border-radius:5px;padding:5px;cursor:pointer;transition:all .3s;color:#595353!important}._tool_pva9d_17 svg{width:20px;height:20px}._tool_pva9d_17:hover{background-color:#f5f5f5}._active_pva9d_37{background-color:#eee!important}._pen_pva9d_41{display:flex;gap:4px;align-items:center;flex-wrap:wrap}._line_pva9d_48{height:20px;width:1px;background-color:#bcb9b9;margin:0 6px;transform:rotate(18deg)}._options_pva9d_56{margin-top:10px;padding:10px 0 0;border-top:1px dashed #eeeeee;display:flex;gap:4px;align-items:center;flex-wrap:wrap}._colorWrap_pva9d_66{display:flex;gap:8px;align-items:center;margin:4px 0}._color_pva9d_66{outline:none!important;border:none!important;border-radius:4px;cursor:pointer;width:20px;height:20px;border:1px solid #eeeeee}._colorActive_pva9d_83{outline:2px solid #2576b9!important}._wrap_5y04w_1{display:flex;height:100%;max-width:100%;overflow:hidden;line-height:0;flex-direction:column;border:1px dashed hsl(var(--border))!important;border-radius:6px}._wrap_5y04w_1 ._handlerWrap_5y04w_11{display:flex;padding:10px}._wrap_5y04w_1 ._innerWrap_5y04w_15{position:relative;width:100%;height:100%;overflow:hidden;border-radius:var(--border-radius);flex:1}._wrap_5y04w_1 ._emptyWrap_5y04w_23{display:flex;height:100%;justify-content:center;align-items:center}._wrap_5y04w_1 iframe{width:100%;height:100%;border:0;border:none!important}._verified_lvyh0_1{margin-left:.125rem;max-width:20px;max-height:20px;height:1.25em;fill:currentColor;-webkit-user-select:none;user-select:none;vertical-align:text-bottom}._root_98iqw_1{width:100%;min-width:250px;max-width:550px;overflow:hidden;color:var(--richtexteet-font-color);font-family:var(--richtexteet-font-family);font-weight:400;box-sizing:border-box;border:var(--richtexteet-border);border-radius:12px;margin:var(--richtexteet-container-margin);background-color:var(--richtexteet-bg-color);transition-property:background-color,box-shadow;transition-duration:.2s}._root_98iqw_1:hover{background-color:var(--richtexteet-bg-color-hover)}._article_98iqw_21{position:relative;box-sizing:inherit;padding:.75rem 1rem}.react-tweet-theme{--richtexteet-container-margin: 1.5rem 0;--richtexteet-header-font-size: .9375rem;--richtexteet-header-line-height: 1.25rem;--richtexteet-body-font-size: 1.25rem;--richtexteet-body-font-weight: 400;--richtexteet-body-line-height: 1.5rem;--richtexteet-body-margin: 0;--richtexteet-quoted-container-margin: .75rem 0;--richtexteet-quoted-body-font-size: .938rem;--richtexteet-quoted-body-font-weight: 400;--richtexteet-quoted-body-line-height: 1.25rem;--richtexteet-quoted-body-margin: .25rem 0 .75rem 0;--richtexteet-info-font-size: .9375rem;--richtexteet-info-line-height: 1.25rem;--richtexteet-actions-font-size: .875rem;--richtexteet-actions-line-height: 1rem;--richtexteet-actions-font-weight: 700;--richtexteet-actions-icon-size: 1.25em;--richtexteet-actions-icon-wrapper-size: calc( var(--richtexteet-actions-icon-size) + .75em );--richtexteet-replies-font-size: .875rem;--richtexteet-replies-line-height: 1rem;--richtexteet-replies-font-weight: 700}:where(.react-tweet-theme) *{margin:0;padding:0;box-sizing:border-box}:is([data-theme=light],.light) :where(.react-tweet-theme),:where(.react-tweet-theme){--richtexteet-skeleton-gradient: linear-gradient( 270deg, #fafafa, #eaeaea, #eaeaea, #fafafa );--richtexteet-border: 1px solid rgb(207, 217, 222);--richtexteet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--richtexteet-font-color: rgb(15, 20, 25);--richtexteet-font-color-secondary: rgb(83, 100, 113);--richtexteet-bg-color: #fff;--richtexteet-bg-color-hover: rgb(247, 249, 249);--richtexteet-quoted-bg-color-hover: rgba(0, 0, 0, .03);--richtexteet-color-blue-primary: rgb(29, 155, 240);--richtexteet-color-blue-primary-hover: rgb(26, 140, 216);--richtexteet-color-blue-secondary: rgb(0, 111, 214);--richtexteet-color-blue-secondary-hover: rgba(0, 111, 214, .1);--richtexteet-color-red-primary: rgb(249, 24, 128);--richtexteet-color-red-primary-hover: rgba(249, 24, 128, .1);--richtexteet-color-green-primary: rgb(0, 186, 124);--richtexteet-color-green-primary-hover: rgba(0, 186, 124, .1);--richtexteet-twitter-icon-color: var(--richtexteet-font-color);--richtexteet-verified-old-color: rgb(130, 154, 171);--richtexteet-verified-blue-color: var(--richtexteet-color-blue-primary)}:is([data-theme=dark],.dark) :where(.react-tweet-theme){--richtexteet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--richtexteet-border: 1px solid rgb(66, 83, 100);--richtexteet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--richtexteet-font-color: rgb(247, 249, 249);--richtexteet-font-color-secondary: rgb(139, 152, 165);--richtexteet-bg-color: rgb(21, 32, 43);--richtexteet-bg-color-hover: rgb(30, 39, 50);--richtexteet-quoted-bg-color-hover: rgba(255, 255, 255, .03);--richtexteet-color-blue-primary: rgb(29, 155, 240);--richtexteet-color-blue-primary-hover: rgb(26, 140, 216);--richtexteet-color-blue-secondary: rgb(107, 201, 251);--richtexteet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--richtexteet-color-red-primary: rgb(249, 24, 128);--richtexteet-color-red-primary-hover: rgba(249, 24, 128, .1);--richtexteet-color-green-primary: rgb(0, 186, 124);--richtexteet-color-green-primary-hover: rgba(0, 186, 124, .1);--richtexteet-twitter-icon-color: var(--richtexteet-font-color);--richtexteet-verified-old-color: rgb(130, 154, 171);--richtexteet-verified-blue-color: #fff}@media(prefers-color-scheme:dark){:where(.react-tweet-theme){--richtexteet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--richtexteet-border: 1px solid rgb(66, 83, 100);--richtexteet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--richtexteet-font-color: rgb(247, 249, 249);--richtexteet-font-color-secondary: rgb(139, 152, 165);--richtexteet-bg-color: rgb(21, 32, 43);--richtexteet-bg-color-hover: rgb(30, 39, 50);--richtexteet-color-blue-primary: rgb(29, 155, 240);--richtexteet-color-blue-primary-hover: rgb(26, 140, 216);--richtexteet-color-blue-secondary: rgb(107, 201, 251);--richtexteet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--richtexteet-color-red-primary: rgb(249, 24, 128);--richtexteet-color-red-primary-hover: rgba(249, 24, 128, .1);--richtexteet-color-green-primary: rgb(0, 186, 124);--richtexteet-color-green-primary-hover: rgba(0, 186, 124, .1);--richtexteet-twitter-icon-color: var(--richtexteet-font-color);--richtexteet-verified-old-color: rgb(130, 154, 171);--richtexteet-verified-blue-color: #fff}}._verifiedOld_lcna5_1{color:var(--richtexteet-verified-old-color)}._verifiedBlue_lcna5_4{color:var(--richtexteet-verified-blue-color)}._verifiedGovernment_lcna5_7{color:#829aab}._label_36ucz_1{display:flex;height:1.0625em;width:1.0625em;max-width:17px;max-height:17px;margin-left:4px;margin-right:2px;border:var(--richtexteet-border);border-radius:2px}._label_36ucz_1>img{width:100%;height:100%}._header_nqq4j_1{display:flex;padding-bottom:.75rem;line-height:var(--richtexteet-header-line-height);font-size:var(--richtexteet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_nqq4j_11{position:relative;height:48px;width:48px}._avatarOverflow_nqq4j_16{height:100%;width:100%;position:absolute;overflow:hidden;border-radius:9999px}._avatarSquare_nqq4j_23{border-radius:4px}._avatarShadow_nqq4j_26{height:100%;width:100%;transition-property:background-color;transition-duration:.2s;box-shadow:#00000008 0 0 2px inset}._avatarShadow_nqq4j_26:hover{background-color:#1a1a1a26}._author_nqq4j_37{max-width:calc(100% - 84px);display:flex;flex-direction:column;justify-content:center;margin:0 .5rem}._authorLink_nqq4j_44{text-decoration:none;color:inherit;display:flex;align-items:center}._authorLink_nqq4j_44:hover{text-decoration-line:underline}._authorVerified_nqq4j_53{display:inline-flex}._authorLinkText_nqq4j_56{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._authorMeta_nqq4j_63,._authorFollow_nqq4j_66{display:flex}._username_nqq4j_69{color:var(--richtexteet-font-color-secondary);text-decoration:none;text-overflow:ellipsis}._follow_nqq4j_74{color:var(--richtexteet-color-blue-secondary);text-decoration:none;font-weight:700}._follow_nqq4j_74:hover{text-decoration-line:underline}._separator_nqq4j_82{padding:0 .25rem}._brand_nqq4j_86{margin-inline-start:auto}._twitterIcon_nqq4j_90{width:23.75px;height:23.75px;color:var(--richtexteet-twitter-icon-color);fill:currentColor;-webkit-user-select:none;user-select:none}._root_1ec15_1{text-decoration:none;color:var(--richtexteet-font-color-secondary);font-size:.9375rem;line-height:1.25rem;margin-bottom:.25rem;overflow-wrap:break-word;white-space:pre-wrap}._root_1ec15_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_eihfa_1{font-weight:inherit;color:var(--richtexteet-color-blue-secondary);text-decoration:none;cursor:pointer}._root_eihfa_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_1xq52_1{font-size:var(--richtexteet-body-font-size);font-weight:var(--richtexteet-body-font-weight);line-height:var(--richtexteet-body-line-height);margin:var(--richtexteet-body-margin);overflow-wrap:break-word;white-space:pre-wrap}._root_g9tkv_1{margin-top:.75rem;overflow:hidden;position:relative}._rounded_g9tkv_6{border:var(--richtexteet-border);border-radius:12px}._mediaWrapper_g9tkv_10{display:grid;grid-auto-rows:1fr;gap:2px;height:100%;width:100%}._grid2Columns_g9tkv_17{grid-template-columns:repeat(2,1fr)}._grid3_g9tkv_20>a:first-child{grid-row:span 2}._grid2x2_g9tkv_23{grid-template-rows:repeat(2,1fr)}._mediaContainer_g9tkv_26{position:relative;height:100%;width:100%;display:flex;align-items:center;justify-content:center}._mediaLink_g9tkv_34{text-decoration:none;outline-style:none}._skeleton_g9tkv_38{padding-bottom:56.25%;width:100%;display:block}._image_g9tkv_43{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;margin:0;object-fit:cover;object-position:center}._anchor_fp31d_1{display:flex;align-items:center;color:#fff;padding:0 1rem;border:1px solid transparent;border-radius:9999px;font-weight:700;transition:background-color .2s;cursor:pointer;-webkit-user-select:none;user-select:none;outline-style:none;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}._videoButton_fp31d_17{position:relative;height:67px;width:67px;display:flex;align-items:center;justify-content:center;background-color:var(--richtexteet-color-blue-primary);transition-property:background-color;transition-duration:.2s;border:4px solid #fff;border-radius:9999px;cursor:pointer}._videoButton_fp31d_17:hover,._videoButton_fp31d_17:focus-visible{background-color:var(--richtexteet-color-blue-primary-hover)}._videoButtonIcon_fp31d_35{margin-left:3px;width:calc(50% + 4px);height:calc(50% + 4px);max-width:100%;color:#fff;fill:currentColor;-webkit-user-select:none;user-select:none}._watchOnTwitter_fp31d_44{position:absolute;top:12px;right:8px}._watchOnTwitter_fp31d_44>a{min-width:2rem;min-height:2rem;font-size:.875rem;line-height:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#0f1419bf}._watchOnTwitter_fp31d_44>a:hover{background-color:#272c30bf}._viewReplies_fp31d_60{position:relative;min-height:2rem;background-color:var(--richtexteet-color-blue-primary);border-color:var(--richtexteet-color-blue-primary);font-size:.9375rem;line-height:1.25rem}._viewReplies_fp31d_60:hover{background-color:var(--richtexteet-color-blue-primary-hover)}._root_i24yn_1{color:inherit;text-decoration:none;font-size:var(--richtexteet-info-font-size);line-height:var(--richtexteet-info-line-height)}._root_i24yn_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._info_19qcj_1{display:flex;align-items:center;color:var(--richtexteet-font-color-secondary);margin-top:.125rem;overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._infoLink_19qcj_10{color:inherit;text-decoration:none;height:var(--richtexteet-actions-icon-wrapper-size);width:var(--richtexteet-actions-icon-wrapper-size);font:inherit;margin-left:auto;display:flex;justify-content:center;align-items:center;margin-right:-4px;border-radius:9999px;transition-property:background-color;transition-duration:.2s}._infoLink_19qcj_10:hover{background-color:var(--richtexteet-color-blue-secondary-hover)}._infoIcon_19qcj_30{color:inherit;fill:currentColor;height:var(--richtexteet-actions-icon-size);-webkit-user-select:none;user-select:none}._infoLink_19qcj_10:hover>._infoIcon_19qcj_30{color:var(--richtexteet-color-blue-secondary)}._actions_n2anf_1{display:flex;align-items:center;color:var(--richtexteet-font-color-secondary);padding-top:.25rem;margin-top:.25rem;border-top:var(--richtexteet-border);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._like_n2anf_13,._reply_n2anf_14,._copy_n2anf_15{text-decoration:none;color:inherit;display:flex;align-items:center;margin-right:1.25rem}._like_n2anf_13:hover,._reply_n2anf_14:hover,._copy_n2anf_15:hover{background-color:#0000}._like_n2anf_13:hover>._likeIconWrapper_n2anf_27{background-color:var(--richtexteet-color-red-primary-hover)}._like_n2anf_13:hover>._likeCount_n2anf_30{color:var(--richtexteet-color-red-primary);text-decoration-line:underline}._likeIconWrapper_n2anf_27,._replyIconWrapper_n2anf_35,._copyIconWrapper_n2anf_36{width:var(--richtexteet-actions-icon-wrapper-size);height:var(--richtexteet-actions-icon-wrapper-size);display:flex;justify-content:center;align-items:center;margin-left:-.25rem;border-radius:9999px}._likeIcon_n2anf_27,._replyIcon_n2anf_35,._copyIcon_n2anf_36{height:var(--richtexteet-actions-icon-size);fill:currentColor;-webkit-user-select:none;user-select:none}._likeIcon_n2anf_27{color:var(--richtexteet-color-red-primary)}._likeCount_n2anf_30,._replyText_n2anf_56,._copyText_n2anf_57{font-size:var(--richtexteet-actions-font-size);font-weight:var(--richtexteet-actions-font-weight);line-height:var(--richtexteet-actions-line-height);margin-left:.25rem}._reply_n2anf_14:hover>._replyIconWrapper_n2anf_35{background-color:var(--richtexteet-color-blue-secondary-hover)}._reply_n2anf_14:hover>._replyText_n2anf_56{color:var(--richtexteet-color-blue-secondary);text-decoration-line:underline}._replyIcon_n2anf_35{color:var(--richtexteet-color-blue-primary)}._copy_n2anf_15{font:inherit;background:none;border:none;cursor:pointer}._copy_n2anf_15:hover>._copyIconWrapper_n2anf_36{background-color:var(--richtexteet-color-green-primary-hover)}._copy_n2anf_15:hover ._copyIcon_n2anf_36{color:var(--richtexteet-color-green-primary)}._copy_n2anf_15:hover>._copyText_n2anf_57{color:var(--richtexteet-color-green-primary);text-decoration-line:underline}._replies_1cutb_1{padding:.25rem 0}._link_1cutb_4{text-decoration:none;color:var(--richtexteet-color-blue-secondary);display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;-webkit-user-select:none;user-select:none;outline-style:none;transition-property:background-color;transition-duration:.2s;padding:0 1rem;border:var(--richtexteet-border);border-radius:9999px}._link_1cutb_4:hover{background-color:var(--richtexteet-color-blue-secondary-hover)}._text_1cutb_23{font-weight:var(--richtexteet-replies-font-weight);font-size:var(--richtexteet-replies-font-size);line-height:var(--richtexteet-replies-line-height);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._root_q5799_1{width:100%;overflow:hidden;border:var(--richtexteet-border);border-radius:12px;margin:var(--richtexteet-quoted-container-margin);transition-property:background-color,box-shadow;transition-duration:.2s;cursor:pointer}._root_q5799_1:hover{background-color:var(--richtexteet-quoted-bg-color-hover)}._article_q5799_16{position:relative;box-sizing:inherit}._header_f00ab_1{display:flex;padding:.75rem .75rem 0;line-height:var(--richtexteet-header-line-height);font-size:var(--richtexteet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_f00ab_11{position:relative;height:20px;width:20px}._avatarOverflow_f00ab_16{height:100%;width:100%;position:absolute;overflow:hidden;border-radius:9999px}._avatarSquare_f00ab_23{border-radius:4px}._author_f00ab_27{display:flex;margin:0 .5rem;align-items:center}._authorText_f00ab_33{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._username_f00ab_40{color:var(--richtexteet-font-color-secondary);text-decoration:none;text-overflow:ellipsis;margin-left:.125rem}._root_175ot_1{font-size:var(--richtexteet-quoted-body-font-size);font-weight:var(--richtexteet-quoted-body-font-weight);line-height:var(--richtexteet-quoted-body-line-height);margin:var(--richtexteet-quoted-body-margin);overflow-wrap:break-word;white-space:pre-wrap;padding:0 .75rem}._root_16yxa_1{display:flex;flex-direction:column;align-items:center;padding-bottom:.75rem}._root_16yxa_1>h3{font-size:1.25rem;margin-bottom:.5rem}._skeleton_oi7hr_1{display:block;width:100%;border-radius:5px;background-image:var(--richtexteet-skeleton-gradient);background-size:400% 100%;animation:_loading_oi7hr_1 8s ease-in-out infinite}@media(prefers-reduced-motion:reduce){._skeleton_oi7hr_1{animation:none;background-position:200% 0}}@keyframes _loading_oi7hr_1{0%{background-position:200% 0}to{background-position:-200% 0}}._root_17qqv_1{pointer-events:none;padding-bottom:.25rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./index-Bt9LiArC.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const x=s(o),c=x.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{ref:t,className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),...r}));c.displayName="Textarea";exports.Textarea=c;
|
package/lib/theme/theme.d.ts
CHANGED
|
@@ -358,7 +358,7 @@ export declare const THEME: {
|
|
|
358
358
|
export type ThemeType = keyof typeof THEME;
|
|
359
359
|
export type ThemeColorType = keyof typeof THEME.light;
|
|
360
360
|
export declare function useTheme(): {
|
|
361
|
-
theme: "
|
|
361
|
+
theme: "dark" | "light";
|
|
362
362
|
color: "default" | "blue" | "green" | "orange" | "red" | "violet" | "yellow" | "rose";
|
|
363
363
|
borderRadius: string;
|
|
364
364
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as a, s as n, f as l } from "./index-
|
|
2
|
-
import { d as p } from "./clsx-
|
|
1
|
+
import { c as a, s as n, f as l } from "./index-CsSfYR30.js";
|
|
2
|
+
import { d as p } from "./clsx-CDyrfCnw.js";
|
|
3
3
|
function m(o, t) {
|
|
4
4
|
a({
|
|
5
5
|
getBoundingClientRect: () => p(o.view, o.state.selection.from, o.state.selection.to)
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("@radix-ui/react-slot"),s=require("react"),i=require("./useButtonProps-CFu0GHzW.cjs"),d=require("./button-BmTP96NR.cjs"),u=require("./index-DWSAk_9a.cjs"),m=s.forwardRef(({asChild:h=!1,tooltip:c,...t},l)=>{var x;const n=u.icons[t.icon],r=h?a.Slot:d.Button;return e.jsxs(i.Tooltip,{children:[e.jsx(i.TooltipTrigger,{asChild:!0,children:e.jsx(r,{className:"richtext-h-[32px] richtext-min-w-24 richtext-overflow-hidden richtext-px-[5px] richtext-py-0","data-state":t!=null&&t.dataState?"on":"off",disabled:t==null?void 0:t.disabled,ref:l,variant:"ghost",...t,children:e.jsxs("div",{className:"richtext-flex richtext-h-full richtext-items-center richtext-font-normal",children:[(t==null?void 0:t.title)&&e.jsx("div",{className:"richtext-grow richtext-truncate richtext-text-left richtext-text-sm",children:t==null?void 0:t.title}),n&&e.jsx(n,{className:"richtext-ml-1 richtext-size-3 richtext-shrink-0 richtext-text-zinc-500"})]})})}),c&&e.jsx(i.TooltipContent,{children:e.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[c&&e.jsx("div",{children:c}),e.jsx("div",{className:"richtext-flex",children:!!((x=t==null?void 0:t.shortcutKeys)!=null&&x.length)&&e.jsx("span",{children:i.getShortcutKeys(t==null?void 0:t.shortcutKeys)})})]})})]})});exports.ActionMenuButton=m;
|
package/lib/Drawer-gz9U5ArC.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const I=require("./clsx-CXbNJWDD.cjs"),$=require("./throttle-gTTvqDTW.cjs"),e=require("react/jsx-runtime"),g=require("react"),B=require("./index-bVGIXhRg.cjs"),O=require("./useButtonProps-CFu0GHzW.cjs"),m=require("easydrawer"),re=require("./toggle-oFwBZC4x.cjs"),P=require("./dialog-B-jOQ5i3.cjs"),p=require("./index-DWSAk_9a.cjs"),oe=require("./file-i7e4nQY2.cjs"),le=require("./button-BmTP96NR.cjs"),W={TOP_LEFT:"tl",TOP_RIGHT:"tr",BOTTOM_LEFT:"bl",BOTTOM_RIGHT:"br"};function ne({editor:t,node:r,updateAttributes:o,getPos:n,selected:v}){const[j,S]=g.useState({width:B.IMAGE_MAX_SIZE,height:B.IMAGE_MAX_SIZE}),[u,a]=g.useState({width:0,height:0}),[M]=g.useState([W.TOP_LEFT,W.TOP_RIGHT,W.BOTTOM_LEFT,W.BOTTOM_RIGHT]),[b,_]=g.useState(!1),[c,h]=g.useState({x:0,y:0,w:0,h:0,dir:""}),{align:T}=r==null?void 0:r.attrs,f=g.useMemo(()=>{const{src:d,alt:E,width:H,height:k}=r==null?void 0:r.attrs,A=I.isNumber(H)?`${H}px`:H,C=I.isNumber(k)?`${k}px`:k;return{src:d||void 0,alt:E||void 0,style:{width:A||void 0,height:C||void 0}}},[r==null?void 0:r.attrs]),s=g.useMemo(()=>{const{style:{width:d}}=f;return{width:d==="100%"?d:void 0}},[f]);function V(d){a({width:d.target.width,height:d.target.height})}const z=g.useCallback(()=>{t.commands.setNodeSelection(n())},[]),D=g.useCallback($.throttle(()=>{const{width:d}=getComputedStyle(t.view.dom);S(E=>({...E,width:Number.parseInt(d,10)}))},B.IMAGE_THROTTLE_WAIT_TIME),[t]);function G(d,E){d.preventDefault(),d.stopPropagation();const H=u.width,k=u.height,A=H/k;let C=Number(r.attrs.width),N=Number(r.attrs.height);const y=j.width;C&&!N?(C=C>y?y:C,N=Math.round(C/A)):N&&!C?(C=Math.round(N*A),C=C>y?y:C):!C&&!N?(C=H>y?y:H,N=Math.round(C/A)):C=C>y?y:C,_(!0),h({x:d.clientX,y:d.clientY,w:C,h:N,dir:E})}const x=g.useCallback($.throttle(d=>{if(d.preventDefault(),d.stopPropagation(),!b)return;const{x:E,w:H,dir:k}=c,A=(d.clientX-E)*(/l/.test(k)?-1:1),{width:C,height:N}=r==null?void 0:r.attrs,y=C/N,Z=O.clamp(H+A,B.IMAGE_MIN_SIZE,j.width),te=Math.round(Z/y);o({width:Z,height:te})},B.IMAGE_THROTTLE_WAIT_TIME),[b,c,j,o,r==null?void 0:r.attrs]),i=g.useCallback(d=>{d.preventDefault(),d.stopPropagation(),b&&(h({x:0,y:0,w:0,h:0,dir:""}),_(!1),z())},[b,z]),w=g.useCallback(()=>{document==null||document.addEventListener("mousemove",x,!0),document==null||document.addEventListener("mouseup",i,!0)},[x,i]),L=g.useCallback(()=>{document==null||document.removeEventListener("mousemove",x,!0),document==null||document.removeEventListener("mouseup",i,!0)},[x,i]);g.useEffect(()=>(b?w():L(),()=>{L()}),[b,w,L]);const q=g.useMemo(()=>new ResizeObserver(()=>D()),[D]);return g.useEffect(()=>(q.observe(t.view.dom),()=>{q.disconnect()}),[t.view.dom,q]),e.jsx(I.NodeViewWrapper,{className:"image-view",style:{...s,width:"100%",textAlign:T},children:e.jsxs("div",{"data-drag-handle":!0,draggable:"true",style:{...s,background:"#fff"},className:`image-view__body ${v?"image-view__body--focused":""} ${b?"image-view__body--resizing":""}`,children:[e.jsx("img",{alt:f.alt,className:"image-view__body__image block",height:"auto",onClick:z,onLoad:V,src:f.src,style:f.style}),t.view.editable&&(v||b)&&e.jsx("div",{className:"image-resizer",children:M==null?void 0:M.map(d=>e.jsx("span",{className:`image-resizer__handler image-resizer__handler--${d}`,onMouseDown:E=>G(E,d)},`image-dir-${d}`))})]})})}const F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",se=t=>{t=t.replace(/\r\n/g,`
|
|
2
|
-
`);let r=0,o="";for(;r<t.length;r++){const n=t.charCodeAt(r);n<128?o+=String.fromCharCode(n):n>127&&n<2048?(o+=String.fromCharCode(n>>6|192),o+=String.fromCharCode(63&n|128)):(o+=String.fromCharCode(n>>12|224),o+=String.fromCharCode(n>>6&63|128),o+=String.fromCharCode(63&n|128))}return o},ie=t=>{let r,o,n,v,j,S,u,a=0,M="";for(t=se(t);a<t.length;)r=t.charCodeAt(a++),o=t.charCodeAt(a++),n=t.charCodeAt(a++),v=r>>2,j=(3&r)<<4|o>>4,S=(15&o)<<2|n>>6,u=63&n,isNaN(o)?S=u=64:isNaN(n)&&(u=64),M=M+F.charAt(v)+F.charAt(j)+F.charAt(S)+F.charAt(u);return M},ae=t=>typeof t=="string"?"string":typeof SVGElement<"u"&&t instanceof SVGElement?"element":void 0,K=t=>"data:image/svg+xml;base64,"+ie(t),ce=t=>K(new XMLSerializer().serializeToString(t)),Q=t=>{switch(ae(t)){case"string":return K(t);case"element":return ce(t);default:return t}};function he(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{color:"currentColor",d:"M2 9.2v3.6M12.8 2H9.2M7.5 20H9M20 7.5V9M2.133 4.699c.155-.727.415-1.274.854-1.712c.426-.426.954-.684 1.652-.84m15.228 2.552c-.155-.727-.415-1.274-.854-1.712c-.417-.417-.932-.673-1.608-.83M4.64 19.853c-.698-.156-1.226-.414-1.652-.84c-.43-.43-.69-.965-.845-1.673m11.638 3.626c-1.812.125-3.607-8.326-2.374-9.559s9.684.561 9.559 2.373c-.087 1.187-2.095 1.656-2.037 2.711c.018.309.408.59 1.188 1.154c.543.39 1.096.77 1.629 1.175a.66.66 0 0 1 .234.687a3.35 3.35 0 0 1-2.472 2.473a.66.66 0 0 1-.688-.235c-.404-.533-.784-1.086-1.175-1.628c-.563-.78-.844-1.17-1.153-1.188c-1.055-.059-1.524 1.95-2.71 2.037",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}function ue(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M20.06 18a4 4 0 0 1-.2-.89c-.67.7-1.48 1.05-2.41 1.05c-.83 0-1.52-.24-2.05-.71c-.53-.45-.8-1.06-.8-1.79c0-.88.33-1.56 1-2.05s1.61-.73 2.83-.73h1.4v-.64q0-.735-.45-1.17c-.3-.29-.75-.43-1.33-.43c-.52 0-.95.12-1.3.36c-.35.25-.52.54-.52.89h-1.46c0-.43.15-.84.45-1.24c.28-.4.71-.71 1.22-.94c.51-.21 1.06-.35 1.69-.35c.98 0 1.74.24 2.29.73s.84 1.16.86 2.02V16c0 .8.1 1.42.3 1.88V18zm-2.4-1.12c.45 0 .88-.11 1.29-.32c.4-.21.7-.49.88-.83v-1.57H18.7c-1.77 0-2.66.47-2.66 1.41c0 .43.15.73.46.96c.3.23.68.35 1.16.35m-12.2-3.17h4.07L7.5 8.29zM6.64 6h1.72l4.71 12h-1.93l-.97-2.57H4.82L3.86 18H1.93z",fill:"currentColor"})})}function de(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M3 21v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM17.6 7.8L19 6.4L17.6 5l-1.4 1.4z",fill:"currentColor"})})}function ge(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 256 256",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M253.66 106.34a8 8 0 0 0-11.32 0L192 156.69L107.31 72l50.35-50.34a8 8 0 1 0-11.32-11.32L96 60.69a16 16 0 0 0-2.82 18.81L72 100.69a16 16 0 0 0 0 22.62l4.69 4.69l-58.35 58.34a8 8 0 0 0 3.13 13.25l72 24A7.9 7.9 0 0 0 96 224a8 8 0 0 0 5.66-2.34L136 187.31l4.69 4.69a16 16 0 0 0 22.62 0l21.19-21.18a16 16 0 0 0 18.81-2.82l50.35-50.34a8 8 0 0 0 0-11.32M93.84 206.85l-55-18.35L88 139.31L124.69 176ZM152 180.69L83.31 112L104 91.31L172.69 160Z",fill:"currentColor"})})}function me(t){return e.jsxs("svg",{height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("path",{d:"m2.648 9.937l7.29-7.288a2.21 2.21 0 0 1 3.124 0l2.29 2.288a2.21 2.21 0 0 1 0 3.126L10.413 13H12.5a.5.5 0 0 1 0 1H4.501a2.2 2.2 0 0 1-1.563-.647l.707-.707c.227.226.535.354.856.354h4.005a1.2 1.2 0 0 0 .848-.354l1.292-1.293l-4-4l-3.29 3.291a1.21 1.21 0 0 0 0 1.712l.29.29l-.708.707l-.29-.29a2.21 2.21 0 0 1 0-3.126M8 6h6.89a1.2 1.2 0 0 0-.246-.356L14 5H9zm2-2h3l-.645-.644a1.21 1.21 0 0 0-1.71 0zm4.89 3H7.708l1 1H14l.644-.644A1.2 1.2 0 0 0 14.891 7zM9.708 9l1.646 1.646L13 9z",fill:"currentColor"}),e.jsx("path",{d:"M14 11.5a.5.5 0 1 1-1 0a.5.5 0 0 1 1 0m1.5-.5a.5.5 0 1 0 0-1a.5.5 0 0 0 0 1m-1 2a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",fill:"currentColor"})]})}function pe(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M3 3h18v18H3zm2 2v14h14V5z",fill:"currentColor"})})}function xe(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M2 20V4h20v16zm2-2h16V6H4zm0 0V6z",fill:"currentColor"})})}function we(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8",fill:"currentColor"})})}function ve(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M10.363 3.591L2.257 17.125a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636-2.87L13.637 3.59a1.914 1.914 0 0 0-3.274 0z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function Ce(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"m6.8 21l-5.2-9l5.2-9h10.4l5.2 9l-5.2 9zm1.15-2h8.1l4.025-7l-4.025-7h-8.1L3.9 12zM12 12",fill:"currentColor"})})}function fe(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsxs("g",{fill:"none",fillRule:"evenodd",children:[e.jsx("path",{d:"m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z"}),e.jsx("path",{d:"M10.586 2.807a2 2 0 0 1 2.828 0l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828zM12 4.222L4.222 12L12 19.778L19.778 12z",fill:"currentColor"})]})})}function Te(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z",fill:"currentColor"})})}function je(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{clipRule:"evenodd",d:"M7.53 3.47a.75.75 0 0 1 0 1.06L5.81 6.25H15a5.75 5.75 0 0 1 0 11.5H8a.75.75 0 0 1 0-1.5h7a4.25 4.25 0 0 0 0-8.5H5.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0",fill:"currentColor",fillRule:"evenodd"})})}function be(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{clipRule:"evenodd",d:"M16.47 3.47a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H9a4.25 4.25 0 0 0 0 8.5h7a.75.75 0 0 1 0 1.5H9a5.75 5.75 0 0 1 0-11.5h9.19l-1.72-1.72a.75.75 0 0 1 0-1.06",fill:"currentColor",fillRule:"evenodd"})})}function Se(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zm2-4h2V8H9zm4 0h2V8h-2z",fill:"currentColor"})})}function Me(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 256 256",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M211.81 83.79a28 28 0 0 1-33.12 4.83l-90.07 90.07a28 28 0 1 1-44.43-6.48a28 28 0 0 1 33.12-4.83l90.07-90.07a28 28 0 1 1 44.43 6.48",fill:"currentColor"})})}function ye(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M12 20.325q-.35 0-.712-.125t-.638-.4l-1.725-1.575q-2.65-2.425-4.788-4.812T2 8.15Q2 5.8 3.575 4.225T7.5 2.65q1.325 0 2.5.562t2 1.538q.825-.975 2-1.537t2.5-.563q2.35 0 3.925 1.575T22 8.15q0 2.875-2.125 5.275T15.05 18.25l-1.7 1.55q-.275.275-.637.4t-.713.125M11.05 6.75q-.725-1.025-1.55-1.563t-2-.537q-1.5 0-2.5 1t-1 2.5q0 1.3.925 2.763t2.213 2.837t2.65 2.575T12 18.3q.85-.775 2.213-1.975t2.65-2.575t2.212-2.837T20 8.15q0-1.5-1-2.5t-2.5-1q-1.175 0-2 .538T12.95 6.75q-.175.25-.425.375T12 7.25t-.525-.125t-.425-.375m.95 4.725",fill:"currentColor"})})}function Ee(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"m7.625 6.4l2.8-3.625q.3-.4.713-.587T12 2t.863.188t.712.587l2.8 3.625l4.25 1.425q.65.2 1.025.738t.375 1.187q0 .3-.088.6t-.287.575l-2.75 3.9l.1 4.1q.025.875-.575 1.475t-1.4.6q-.05 0-.55-.075L12 19.675l-4.475 1.25q-.125.05-.275.063T6.975 21q-.8 0-1.4-.6T5 18.925l.1-4.125l-2.725-3.875q-.2-.275-.288-.575T2 9.75q0-.625.363-1.162t1.012-.763zM8.85 8.125L4 9.725L7.1 14.2L7 18.975l5-1.375l5 1.4l-.1-4.8L20 9.775l-4.85-1.65L12 4zM12 11.5",fill:"currentColor"})})}function He(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M12.01 6c2.61 0 4.89 1.86 5.4 4.43l.3 1.5l1.52.11c1.56.11 2.78 1.41 2.78 2.96c0 1.65-1.35 3-3 3h-13c-2.21 0-4-1.79-4-4c0-2.05 1.53-3.76 3.56-3.97l1.07-.11l.5-.95A5.46 5.46 0 0 1 12.01 6m0-2C9.12 4 6.6 5.64 5.35 8.04C2.35 8.36.01 10.91.01 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5c0-2.64-2.05-4.78-4.64-4.96C18.68 6.59 15.65 4 12.01 4",fill:"currentColor"})})}function Ne(t){return e.jsx("svg",{height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M5.586 6.45A2 2 0 0 1 7.509 5h11.84a2 2 0 0 1 1.923 2.55l-2.858 10A2 2 0 0 1 16.491 19H4.651a2 2 0 0 1-1.923-2.55z",fill:"none",stroke:"currentColor",strokeWidth:"2"})})}const Le="_wrapper_pva9d_1",ke="_tool_pva9d_17",Ae="_active_pva9d_37",_e="_pen_pva9d_41",ze="_line_pva9d_48",qe="_options_pva9d_56",Be="_colorWrap_pva9d_66",Pe="_color_pva9d_66",Re="_colorActive_pva9d_83",l={wrapper:Le,tool:ke,active:Ae,pen:_e,line:ze,options:qe,colorWrap:Be,color:Pe,colorActive:Re},Ie=[m.Color4.blackHighlight,m.Color4.ofRGBA(166/255,81/255,167/255,.3),m.Color4.ofRGBA(247/255,78/255,158/255,.3),m.Color4.ofRGBA(166/255,83/255,88/255,.3),m.Color4.ofRGBA(246/255,130/255,28/255,.3),m.Color4.ofRGBA(166/255,198/255,0,.3),m.Color4.ofRGBA(98/255,186/255,70/255,.3)],X=[m.Color4.black,m.Color4.fromHex("#007AFF"),m.Color4.fromHex("#A651A7"),m.Color4.fromHex("#F74E9E"),m.Color4.fromHex("#FF5358"),m.Color4.fromHex("#F6821C"),m.Color4.fromHex("#FFC600"),m.Color4.fromHex("#62BA46"),m.Color4.fromHex("#E6BFE8"),m.Color4.fromHex("#FEA3D2"),m.Color4.fromHex("#FFA0A3"),m.Color4.fromHex("#FBC276"),m.Color4.fromHex("#FFFB85"),m.Color4.fromHex("#AADC99")];function De({onChange:t}){const[r,o]=g.useState(m.Color4.blackHighlight);return e.jsx("div",{className:l.colorWrap,children:Ie.map((n,v)=>e.jsx("button",{style:{backgroundColor:n.toHexString()},className:p.cn(l.color,{[l.colorActive]:r.toHexString()===n.toHexString()}),onClick:()=>{o(n),t(n)}},v))})}function U({onChange:t}){const[r,o]=g.useState(m.Color4.black);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.colorWrap,children:X.slice(0,7).map((n,v)=>e.jsx("button",{style:{backgroundColor:n.toHexString()},className:p.cn(l.color,{[l.colorActive]:r.toHexString()===n.toHexString()}),onClick:()=>{o(n),t(n)}},v))}),e.jsx("div",{className:l.colorWrap,children:X.slice(7).map((n,v)=>e.jsx("button",{style:{backgroundColor:n.toHexString()},className:p.cn(l.color,{[l.colorActive]:r.toHexString()===n.toHexString()}),onClick:()=>{o(n),t(n)}},v))})]})}function We({setColorPen:t,setThicknessPen:r}){const[o,n]=g.useState(2);return e.jsxs("div",{className:l.options,children:[e.jsx("div",{children:e.jsx(U,{onChange:v=>t(v)})}),e.jsx("div",{className:l.line}),e.jsx("div",{children:e.jsx("input",{max:10,min:1,step:.1,type:"range",value:o,onChange:v=>{r(Number.parseFloat(v.target.value)),n(Number.parseFloat(v.target.value))}})})]})}function Fe({setColorHighlight:t}){return e.jsx("div",{className:l.options,children:e.jsx(De,{onChange:r=>t(r)})})}function Oe({changeColorShape:t,changeBorderColorShape:r,onThicknessChange:o}){return e.jsxs("div",{className:l.options,children:[e.jsx("div",{children:e.jsx(U,{onChange:n=>t(n)})}),e.jsx("div",{className:l.line}),e.jsx("div",{children:e.jsx(U,{onChange:n=>r(n)})}),e.jsx("div",{className:l.line}),e.jsx("div",{children:e.jsx("input",{defaultValue:0,max:20,min:0,step:1,type:"range",onChange:n=>{o(Number.parseFloat(n.target.value))}})})]})}function Y(t){const{setColorPen:r,refEditor:o,setThicknessPen:n,setColorHighlight:v,changeBorderColorShape:j,onUndo:S,changeColorShape:u,changeShape:a,onThicknessChange:M,onRedo:b,onClear:_}=t,[c,h]=g.useState(null),[T,f]=g.useState(0);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:l.wrapper,children:[e.jsxs("div",{className:l.pen,children:[e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="select"}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();if(c==="select"){h(null),s[0].setEnabled(!1);return}h("select"),s[0].setEnabled(!0)},children:e.jsx(he,{})}),e.jsx("div",{className:l.line}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="text"}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();if(o.current.toolController.setToolEnabled(s[1]),c==="text"){s[1].setEnabled(!1),h(null);return}h("text"),s[1].setEnabled(!0)},children:e.jsx(ue,{})}),e.jsx("div",{className:l.line}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="pencil"}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();if(c==="pencil"){h(null),s[2].setEnabled(!1);return}h("pencil"),s[2].setEnabled(!0)},children:e.jsx(de,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="highlighter"}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();if(c==="highlighter"){h(null),s[3].setEnabled(!1);return}h("highlighter"),s[3].setEnabled(!0)},children:e.jsx(ge,{})}),e.jsx("div",{className:l.line}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="eraser"}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();if(c==="eraser"){h(null),s[4].setEnabled(!1);return}h("eraser"),s[4].setEnabled(!0)},children:e.jsx(me,{})}),e.jsx("div",{className:l.line}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===0}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(0),f(0)},children:e.jsx(pe,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===1}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(1),f(1)},children:e.jsx(xe,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===2}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(2),f(2)},children:e.jsx(we,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===3}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(3),f(3)},children:e.jsx(ve,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===4}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(4),f(4)},children:e.jsx(Ce,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===5}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(5),f(5)},children:e.jsx(fe,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===6}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(6),f(6)},children:e.jsx(Te,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===7}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(7),f(7)},children:e.jsx(Me,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===8}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(8),f(8)},children:e.jsx(ye,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===9}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(9),f(9)},children:e.jsx(Ee,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===10}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(10),f(10)},children:e.jsx(He,{})}),e.jsx("button",{className:p.cn(l.tool,{[l.active]:c==="shapes"&&T===11}),onClick:()=>{const s=o.current.toolController.getPrimaryTools();o.current.toolController.setToolEnabled(s[5]),h("shapes"),s[5].setEnabled(!0),a(11),f(11)},children:e.jsx(Ne,{})}),e.jsx("div",{className:l.line}),e.jsx("button",{className:p.cn(l.tool),onClick:S,children:e.jsx(je,{})}),e.jsx("button",{className:p.cn(l.tool),onClick:b,children:e.jsx(be,{})}),e.jsx("button",{className:p.cn(l.tool),onClick:_,children:e.jsx(Se,{})})]}),e.jsxs("div",{className:l.optionsWrap,children:[c==="pencil"&&e.jsx(We,{setColorPen:r,setThicknessPen:n}),c==="highlighter"&&e.jsx(Fe,{setColorHighlight:v}),c==="shapes"&&e.jsx(Oe,{changeBorderColorShape:j,changeColorShape:u,changeShape:a,onThicknessChange:M})]})]})})}function J(t=8){return Math.random().toString(36).substring(2,t+2)}let R=!1;function Ve(){const t=O.useEditorInstance(),r=O.useButtonProps(ee.name),{isActive:o=void 0,upload:n}=(r==null?void 0:r.componentProps)??{},{editorDisabled:v}=O.useToggleActive(o),[j,S]=g.useState(!1),u=g.useRef(null),a=g.useRef(null),M=()=>{(async()=>{const i=document.querySelector("#easydrawer");i&&(u.current=new m.Editor(i,{wheelEventsEnabled:!1,disableZoom:!0}),a.current=m.makeDropdownToolbar(u.current),a.current.addDefaultToolWidgets())})()};g.useEffect(()=>{j&&setTimeout(()=>{M()},200)},[j]);const b=async()=>{if(u.current){const x=u.current.toSVG(),i=x.outerHTML,w=`drawer-${J()}.svg`;let L=Q(x.outerHTML);if(n){const q=oe.dataURLtoFile(L,w);L=await n(q)}t==null||t.chain().focus().setDrawer({type:"drawer",src:L,alt:encodeURIComponent(i),width:426,height:212},!!i).run()}S(!1)},_=x=>{const i=u.current.toolController.getPrimaryTools()[2],w=a.current.getWidgetById("pen-1");i&&w&&(i.setColor(x),w.serializeState())},c=x=>{const i=u.current.toolController.getPrimaryTools()[2],w=a.current.getWidgetById("pen-1");i&&w&&(i.setThickness(x),w.serializeState())},h=x=>{const i=u.current.toolController.getPrimaryTools()[3],w=a.current.getWidgetById("pen-2");i&&w&&(i.setColor(x),w.serializeState())},T=x=>{const i=a.current.getWidgetById("shape");i&&i.setShapeType(x)},f=x=>{const i=u.current.toolController.getPrimaryTools()[5],w=a.current.getWidgetById("shape");i&&w&&(i.setColor(x),w.serializeState())},s=x=>{const i=u.current.toolController.getPrimaryTools()[5],w=a.current.getWidgetById("shape");i&&w&&(i.setThickness(x),w.serializeState())},V=x=>{const i=u.current.toolController.getPrimaryTools()[5],w=a.current.getWidgetById("shape");i&&w&&(i.setBorderColor(x),w.serializeState())},z=()=>{if(R){for(;u.current.history.redoStackSize>0;)u.current.history.redo();R=!1;return}u.current.history.undo()},D=()=>{R||u.current.history.redo()},G=()=>{if(!R){for(;u.current.history.undoStackSize>0;)z();R=!0}};return r?e.jsxs(P.Dialog,{onOpenChange:S,open:j,children:[e.jsx(P.DialogTrigger,{asChild:!0,children:e.jsx(re.ActionButton,{disabled:v,action:()=>{v||S(!0)},icon:"PencilRuler",tooltip:"Drawer"})}),e.jsxs(P.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[e.jsx(P.DialogTitle,{children:"Drawer"}),e.jsxs("div",{style:{height:"600px",width:"100%",borderWidth:1,background:"white",position:"relative"},children:[e.jsx("div",{className:"richtext-size-full",id:"easydrawer"}),e.jsx(Y,{changeBorderColorShape:V,changeColorShape:f,changeShape:T,onClear:G,onRedo:D,onThicknessChange:s,onUndo:z,refEditor:u,setColorHighlight:h,setColorPen:_,setThicknessPen:c})]}),e.jsx(P.DialogFooter,{children:e.jsx(le.Button,{onClick:b,type:"button",children:"Save changes"})})]})]}):e.jsx(e.Fragment,{})}const ee=$.index_default.extend({name:"richTextDrawer",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),inline:!1,content:"",marks:"",group:"block",draggable:!1,selectable:!0,atom:!0,HTMLAttributes:{class:"drawer"},button:({t:r,extension:o})=>{var n;return{componentProps:{action:()=>!0,isActive:()=>!1,disabled:!1,icon:"PencilRuler",tooltip:r("editor.drawer.tooltip"),upload:(n=o==null?void 0:o.options)==null?void 0:n.upload}}}}},addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),width:{default:null,parseHTML:r=>{const o=r.querySelector("img"),n=o==null?void 0:o.getAttribute("width");return n?Number.parseInt(n,10):320},renderHTML:r=>({width:r.width})},height:{default:null,parseHTML:r=>{const o=r.querySelector("img"),n=o==null?void 0:o.getAttribute("height");return n?Number.parseInt(n,10):212},renderHTML:r=>({height:r.height})},align:{default:"center",parseHTML:r=>r.getAttribute("align"),renderHTML:r=>({align:r.align})}}},addNodeView(){return I.ReactNodeViewRenderer(ne)},addCommands(){return{setDrawer:(t,r)=>({commands:o,editor:n})=>r?o.insertContent({type:this.name,attrs:t}):o.insertContentAt(n.state.selection.anchor,{type:this.name,attrs:t}),setAlignImageDrawer:t=>({commands:r})=>r.updateAttributes(this.name,{align:t})}},renderHTML({HTMLAttributes:t}){const{align:r}=t;return["div",{style:r?`text-align: ${r};`:"",class:"imageDrawer"},["img",I.mergeAttributes(this.options.HTMLAttributes,t)]]},parseHTML(){return[{tag:"div[class=imageDrawer]",getAttrs:t=>{const r=t.querySelector("img"),o=r==null?void 0:r.getAttribute("width"),n=r==null?void 0:r.getAttribute("height");return{src:r==null?void 0:r.getAttribute("src"),alt:r==null?void 0:r.getAttribute("alt"),width:o?Number.parseInt(o,10):null,height:n?Number.parseInt(n,10):null,align:(r==null?void 0:r.getAttribute("align"))||t.style.textAlign||null}}}]}});exports.ControlDrawer=Y;exports.Drawer=ee;exports.RichTextDrawer=Ve;exports.i=Q;exports.shortId=J;
|
package/lib/Icon-CKM0tYbW.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { i } from "./index-CAiZY1nx.js";
|
|
3
|
-
function a(n) {
|
|
4
|
-
const c = i[n.name];
|
|
5
|
-
return c ? /* @__PURE__ */ t(
|
|
6
|
-
c,
|
|
7
|
-
{
|
|
8
|
-
onClick: n == null ? void 0 : n.onClick,
|
|
9
|
-
className: `richtext-h-4 richtext-w-4 ${(n == null ? void 0 : n.className) || ""}`
|
|
10
|
-
}
|
|
11
|
-
) : null;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
a as I
|
|
15
|
-
};
|
package/lib/Icon-CQyFgXeo.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),t=require("./index-DWSAk_9a.cjs");function i(n){const c=t.icons[n.name];return c?e.jsx(c,{onClick:n==null?void 0:n.onClick,className:`richtext-h-4 richtext-w-4 ${(n==null?void 0:n.className)||""}`}):null}exports.IconComponent=i;
|
package/lib/Iframe-Ds6gG2YO.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./clsx-CXbNJWDD.cjs"),s=require("react/jsx-runtime"),y=require("re-resizable"),g=require("react"),h=require("./dom-dataset-BqoJhJXt.cjs"),S=require("./toggle-oFwBZC4x.cjs"),f=require("./useButtonProps-CFu0GHzW.cjs"),I=require("./input-s0JD5kf2.cjs"),P=require("./button-BmTP96NR.cjs"),m={youtube:{example:"https://www.youtube.com/watch?v=I4sMhHbHYXM",src:"https://www.youtube.com/embed/I4sMhHbHYXM",srcPrefix:"https://www.youtube.com/embed",linkRule:[/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\s/]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[&?]v=)|youtu\.be\/)([\w-]{11})/]},youku:{example:"https://v.youku.com/v_show/id_XNDM0NDM4MTcy.html?spm=a2h0c.8166622.PhoneSokuUgc_4.dtitle",src:"https://player.youku.com/embed/XNDM0NDM4MTcy",srcPrefix:"https://player.youku.com/embed",linkRule:[String.raw`v.youku.com\/v_show\/id_\w+\=*`],idRule:String.raw`id_\w+\=*`},bilibili:{example:"https://www.bilibili.com/video/BV1EJ411u7DN",src:"https://player.bilibili.com/player.html?bvid=BV1EJ411u7DN",srcPrefix:"https://player.bilibili.com/player.html?bvid",linkRule:[String.raw`www.bilibili.com\/video\/\w+`]},qqvideo:{example:"https://v.qq.com/x/cover/mzc0020006aw1mn/u0033nvzb5v.html",src:"https://v.qq.com/txp/iframe/player.html?vid=u0033nvzb5v",srcPrefix:"https://v.qq.com/txp/iframe/player.html?vid",linkRule:[String.raw`v.qq.com\/x\/cover\/\w+\/\w+`]},amap:{example:"https://ditu.amap.com/",src:"https://www.amap.com/place/B000A45467",srcPrefix:"",linkRule:[String.raw`\.amap\.com`]},baidu_map:{example:"https://j.map.baidu.com/15/fo",src:"https://j.map.baidu.com/15/fo",srcPrefix:"",linkRule:[String.raw`map\.baidu\.com`]},modao:{example:"https://free.modao.cc/app/2cd26580a6717a147454df7470e7ec464093cba3/embed/v2#screen=sk71k6d1dfxulzx",src:"https://free.modao.cc/app/6UkpAxcGE3nPz52GLqhnOZgC7MATBSy/embed/v2",srcPrefix:"",linkRule:[String.raw`https:\/\/\w+.modao.cc\/app\/\w+\/embed\/v2`],tips:"Modao > More > Share > Embed > COPY"},lanhu:{example:"https://lanhuapp.com/link/#/invite?sid=evP7L",src:"https://lanhuapp.com/url/evP7L",srcPrefix:"",linkRule:[String.raw`https:\/\/lanhuapp.com\/url\/\w+`],tips:"Lanhu > Project > Share > Copy Link"},figma:{example:"https://www.figma.com/file/aS9uSgPXoNpaPkzbjNcK8v/Demo?node-id=0%3A1",src:"https://www.figma.com/file/aS9uSgPXoNpaPkzbjNcK8v/Demo?node-id=0%3A1",srcPrefix:"https://www.figma.com/embed?embed_host=share&url",linkRule:[String.raw`https:\/\/www.figma.com\/file\/\w+`]},canva:{example:"https://www.canva.cn/design/DAD61-t29UI/view",src:"https://www.canva.cn/design/DAD61-t29UI/view",srcPrefix:"",linkRule:[String.raw`https:\/\/www.canva.cn\/design\/.+\/view`]},processon:{example:"https://www.processon.com/embed/5ea99d8607912948b0e6fe78",src:"https://www.processon.com/embed/5ea99d8607912948b0e6fe78",srcPrefix:"",linkRule:[String.raw`https:\/\/www.processon.com\/embed\/\w+`]},codepen:{example:"https://codepen.io/mekery/embed/YzyrKOJ",src:"https://codepen.io/mekery/embed/YzyrKOJ",srcPrefix:"",linkRule:[String.raw`https:\/\/codepen.io\/.+\/embed\/\w+`]},jinshuju:{example:"https://jinshuju.net/f/q9YvVf",src:"https://jinshuju.net/f/q9YvVf",srcPrefix:"",linkRule:[String.raw`https:\/\/jinshuju.net\/f\/\w+`]},iframe:{example:"https://v.youku.com/v_show/id_XNDM0NDM4MTcy.html",src:"https://player.youku.com/embed/XNDM0NDM4MTcy",srcPrefix:"",linkRule:[".+"]},googlemaps:{example:"https://goo.gl/maps/8Ys8b4K1ZJY2",src:"https://www.google.com/maps/embed?pb=https://goo.gl/maps/8Ys8b4K1ZJY2",srcPrefix:"",linkRule:[String.raw`https:\/\/goo.gl\/maps\/\w+`]}};function R(e){const t=m.youtube,i=e.matchedUrl;e.validLink=!0;const r=i.split("="),n=r.length;if(n>0){const c=r[n-1];e.src=`${t.srcPrefix}/${c}`,e.validId=!0}return e}function j(e){const t=m.youku,i=e.matchedUrl,r=t.idRule,n=new RegExp(r),c=i.match(n);if(c&&c.length>0){const o=c[0].slice(3);e.validId=!0,e.src=`${t.srcPrefix}/${o}`}else e.validId=!1;return e}function M(e){const t=m.bilibili,r=e.matchedUrl.split("/"),n=r.length;if(n>0){const c=r[n-1];e.src=`${t.srcPrefix}=${c}`,e.validId=!0}return e}function q(e){const t=m.qqvideo,r=e.matchedUrl.split("/"),n=r.length;if(n>0){const c=r[n-1];e.src=`${t.srcPrefix}=${c}`,e.validId=!0}return e}function N(e,t){return t.src=e,t.validId=!0,t}function U(e,t){return t.src=e,t.validId=!0,t}function A(e,t){return t.src=e,t.validId=!0,t.originalLink=e,t}function D(e){return e.src=e.matchedUrl,e.validId=!0,e.originalLink=e.src,e}function L(e){return e.src=e.matchedUrl,e.validId=!0,e.originalLink=e.src,e}function _(e){const t=m.figma;return e.src=`${t.srcPrefix}=${encodeURIComponent(e.matchedUrl)}`,e.validId=!0,e.originalLink=e.matchedUrl,e}function $(e,t){return t.src=`${t.matchedUrl}?embed`,t.validId=!0,t.originalLink=e,t}function T(e,t){return t.src=`${t.matchedUrl}`,t.validId=!0,t.originalLink=e,t}function z(e){return e.src=`${e.matchedUrl}`,e.validId=!0,e.originalLink=e.src,e}function Y(e,t){return t.src=`${t.matchedUrl}?background=white&banner=show&embedded=true`,t.validId=!0,t.originalLink=e,t}function C(e,t){return t.src=`${t.matchedUrl}`,t.validId=!0,t.originalLink=e,t}function E(e,t,i){if(e==="googlemaps")return i.validLink=!0,i.matchedUrl=t,i;const n=m[e].linkRule;for(const c of n){const o=new RegExp(c),a=t.match(o);if(a&&a.length>0)return i.validLink=!0,i.matchedUrl=e==="youtube"?a[1]:a[0],i}return i}function H(e){var i,r;let t="iframe";return((i=e.includes)!=null&&i.call(e,"youtube")||(r=e.includes)!=null&&r.call(e,"youtu.be"))&&(t="youtube"),e.includes("youku")&&(t="youku"),e.includes("bilibili")&&(t="bilibili"),e.includes("qq")&&(t="qqvideo"),e.includes("amap")&&(t="amap"),e.includes("map.baidu")&&(t="baidu_map"),(e.includes("google.com/maps")||e.includes("maps.app.goo.gl"))&&(t="googlemaps"),e.includes("modao")&&(t="modao"),e.includes("lanhuapp")&&(t="lanhu"),e.includes("figma")&&(t="figma"),e.includes("canva")&&(t="canva"),e.includes("processon")&&(t="processon"),e.includes("codepen")&&(t="codepen"),e.includes("jinshuju")&&(t="jinshuju"),e.includes("iframe")&&(t="iframe"),t}function x(e){let t={validLink:!1,validId:!1,matchedUrl:"",originalLink:e,src:""};const i=H(e);if(t=E(i,e,t),!t.validLink)return t;switch(i){case"youtube":return R(t);case"youku":return j(t);case"bilibili":return M(t);case"qqvideo":return q(t);case"amap":return N(e,t);case"baidu_map":return U(e,t);case"googlemaps":return A(e,t);case"modao":return D(t);case"lanhu":return L(t);case"figma":return _(t);case"canva":return $(e,t);case"processon":return T(e,t);case"codepen":return z(t);case"jinshuju":return Y(e,t);case"iframe":return C(e,t);default:return e}}const B="_wrap_5y04w_1",V="_innerWrap_5y04w_15",v={wrap:B,innerWrap:V};function K({editor:e,node:t,updateAttributes:i}){const r=f.useEditableEditor(),{src:n,width:c,height:o}=t.attrs,[a,p]=g.useState("");function l(){if(!a)return;const d=x(a);e.chain().updateAttributes(w.name,{src:(d==null?void 0:d.src)||a}).setNodeSelection(e.state.selection.from).focus().run()}const k=g.useCallback(d=>{i({width:d.width,height:d.height})},[i]);return s.jsxs(u.NodeViewWrapper,{children:[!n&&s.jsxs("div",{className:"richtext-mx-auto richtext-my-[12px] richtext-flex richtext-max-w-[600px] richtext-items-center richtext-justify-center richtext-gap-[10px] richtext-rounded-[12px] richtext-border richtext-border-solid richtext-border-border richtext-p-[10px]",children:[s.jsx(I.Input,{autoFocus:!0,className:"richtext-flex-1",onInput:d=>p(d.target.value),placeholder:"Enter link",type:"url",value:a}),s.jsx(P.Button,{className:"richtext-w-[60px]",onClick:l,children:"OK"})]}),n&&s.jsx(y.Resizable,{size:{width:Number.parseInt(c),height:Number.parseInt(o)},onResizeStop:(d,X,J,b)=>{k({width:Number.parseInt(c)+b.width,height:Number.parseInt(o)+b.height})},children:s.jsx("div",{className:u.clsx(v.wrap,"render-wrapper"),children:s.jsx("div",{className:v.innerWrap,style:{pointerEvents:r?"none":"auto"},children:s.jsx("iframe",{className:"richtext-my-[12px]",src:n})})})})]})}function O(){const e=f.useButtonProps(w.name),{icon:t=void 0,tooltip:i=void 0,shortcutKeys:r=void 0,tooltipOptions:n={},action:c=void 0,isActive:o=void 0}=(e==null?void 0:e.componentProps)??{},{editorDisabled:a,update:p}=f.useToggleActive(o),l=()=>{a||c&&(c(),p())};return e?s.jsx(S.ActionButton,{action:l,disabled:a,icon:t,shortcutKeys:r,tooltip:i,tooltipOptions:n}):s.jsx(s.Fragment,{})}const w=u.Node3.create({name:"iframe",content:"",marks:"",group:"block",selectable:!0,atom:!0,draggable:!0,addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),HTMLAttributes:{class:"iframe"},button:({editor:t,extension:i,t:r})=>({componentProps:{action:n=>t.commands.setIframe(n),upload:i.options.upload,icon:"Iframe",tooltip:r("editor.iframe.tooltip")}})}},addAttributes(){return{width:{default:600,parseHTML:h.getDatasetAttribute("width")},height:{default:300,parseHTML:h.getDatasetAttribute("height")},src:{default:null,parseHTML:h.getDatasetAttribute("src")},defaultShowPicker:{default:!1},frameborder:{default:0},allowfullscreen:{default:this.options.allowFullscreen,parseHTML:()=>this.options.allowFullscreen}}},parseHTML(){return[{tag:"iframe"}]},renderHTML({HTMLAttributes:e}){return["iframe",u.mergeAttributes(this.options.HTMLAttributes,e)]},addCommands(){return{setIframe:e=>({tr:t,commands:i,chain:r})=>{var c,o,a;if(((a=(o=(c=t.selection)==null?void 0:c.node)==null?void 0:o.type)==null?void 0:a.name)==this.name)return i.updateAttributes(this.name,e);const n=e||{url:""};return r().insertContent({type:this.name,attrs:n}).run()}}},addInputRules(){return[u.nodeInputRule({find:/^\$iframe\$$/,type:this.type,getAttributes:()=>({width:"100%"})})]},addNodeView(){return u.ReactNodeViewRenderer(K)}});exports.Iframe=w;exports.RichTextIframe=O;exports.getServiceSrc=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),c=require("react"),ue=require("react-image-crop"),H=require("./button-BmTP96NR.cjs"),O=require("./dialog-B-jOQ5i3.cjs"),J=require("./clsx-CXbNJWDD.cjs"),K=require("./throttle-gTTvqDTW.cjs"),k=require("./index-bVGIXhRg.cjs"),V=require("./isNumber-BTYSVlKo.cjs"),de=require("./toggle-oFwBZC4x.cjs"),q=require("./useButtonProps-CFu0GHzW.cjs"),ie=require("./file-i7e4nQY2.cjs"),X=require("./Icon-CQyFgXeo.cjs"),U=require("./tabs-DBqNpGAq.cjs"),ge=require("./checkbox-DyVlLWHv.cjs"),ae=require("./label-CFax-gzo.cjs"),re=require("./input-s0JD5kf2.cjs");function he(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const se=he(c),me=1,fe=1e6;let Z=0;function pe(){return Z=(Z+1)%Number.MAX_SAFE_INTEGER,Z.toString()}const Q=new Map;function le(e){if(Q.has(e))return;const t=setTimeout(()=>{Q.delete(e),P({type:"REMOVE_TOAST",toastId:e})},fe);Q.set(e,t)}function xe(e,t){switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,me)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?le(n):e.toasts.forEach(s=>{le(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}}const $=[];let Y={toasts:[]};function P(e){Y=xe(Y,e),$.forEach(t=>{t(Y)})}function be({...e}){const t=pe(),n=d=>P({type:"UPDATE_TOAST",toast:{...d,id:t}}),s=()=>P({type:"DISMISS_TOAST",toastId:t});return P({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:d=>{d||s()}}}),{id:t,dismiss:s,update:n}}function ee(){const[e,t]=se.useState(Y);return se.useEffect(()=>($.push(t),()=>{const n=$.indexOf(t);n>-1&&$.splice(n,1)}),[e]),{...e,toast:be,dismiss:n=>P({type:"DISMISS_TOAST",toastId:n})}}const B={TOP_LEFT:"tl",TOP_RIGHT:"tr",BOTTOM_LEFT:"bl",BOTTOM_RIGHT:"br"};function Ie(e){var p,L,N;const[t,n]=c.useState({width:k.IMAGE_MAX_SIZE,height:k.IMAGE_MAX_SIZE}),[s,d]=c.useState({width:0,height:0}),[h]=c.useState([B.TOP_LEFT,B.TOP_RIGHT,B.BOTTOM_LEFT,B.BOTTOM_RIGHT]),[f,y]=c.useState(!1),[m,b]=c.useState({x:0,y:0,w:0,h:0,dir:""}),{align:A,inline:S}=(p=e==null?void 0:e.node)==null?void 0:p.attrs,E=S&&(A==="left"||A==="right"),M=c.useMemo(()=>{var ne;const{src:o,alt:x,width:a,height:l,flipX:g,flipY:u}=(ne=e==null?void 0:e.node)==null?void 0:ne.attrs,I=V.isNumber(a)?`${a}px`:a,T=V.isNumber(l)?`${l}px`:l,W=[];g&&W.push("rotateX(180deg)"),u&&W.push("rotateY(180deg)");const ce=W.join(" ");return{src:o||void 0,alt:x||void 0,style:{width:I||void 0,height:T||void 0,transform:ce||"none",...E?{float:A}:{}}}},[(L=e==null?void 0:e.node)==null?void 0:L.attrs]),C=c.useMemo(()=>{const{style:{width:o}}=M;return{width:o==="100%"?o:void 0}},[M]);function R(o){d({width:o.target.width,height:o.target.height})}function _(){const{editor:o,getPos:x}=e;o.commands.setNodeSelection(x())}const w=c.useCallback(K.throttle(()=>{const{editor:o}=e,{width:x}=getComputedStyle(o.view.dom);n(a=>({...a,width:Number.parseInt(x,10)}))},k.IMAGE_THROTTLE_WAIT_TIME),[e==null?void 0:e.editor]);function j(o,x){o.preventDefault(),o.stopPropagation();const a=s.width,l=s.height,g=a/l;let u=Number(e.node.attrs.width),I=Number(e.node.attrs.height);const T=t.width;u&&!I?(u=u>T?T:u,I=Math.round(u/g)):I&&!u?(u=Math.round(I*g),u=u>T?T:u):!u&&!I?(u=a>T?T:a,I=Math.round(u/g)):u=u>T?T:u,y(!0),b({x:o.clientX,y:o.clientY,w:u,h:I,dir:x})}const v=c.useCallback(K.throttle(o=>{if(o.preventDefault(),o.stopPropagation(),!f)return;const{x,w:a,dir:l}=m,g=(o.clientX-x)*(/l/.test(l)?-1:1),u=V.clamp(a+g,k.IMAGE_MIN_SIZE,t.width);e.updateAttributes({width:u,height:null})},k.IMAGE_THROTTLE_WAIT_TIME),[f,m,t,e.updateAttributes]),r=c.useCallback(o=>{o.preventDefault(),o.stopPropagation(),f&&(b({x:0,y:0,w:0,h:0,dir:""}),y(!1),_())},[f,_]),F=c.useCallback(()=>{document==null||document.addEventListener("mousemove",v,!0),document==null||document.addEventListener("mouseup",r,!0)},[v,r]),D=c.useCallback(()=>{document==null||document.removeEventListener("mousemove",v,!0),document==null||document.removeEventListener("mouseup",r,!0)},[v,r]);c.useEffect(()=>(f?F():D(),()=>{D()}),[f,F,D]);const z=c.useMemo(()=>new ResizeObserver(()=>w()),[w]);return c.useEffect(()=>(z.observe(e.editor.view.dom),()=>{z.disconnect()}),[e.editor.view.dom,z]),i.jsx(J.NodeViewWrapper,{as:S?"span":"div",className:"image-view",style:{float:E?A:void 0,margin:E?A==="left"?"1em 1em 1em 0":"1em 0 1em 1em":void 0,display:S?"inline":"block",textAlign:E?void 0:A,width:((N=M.style)==null?void 0:N.width)??"auto",...E?{}:C},children:i.jsxs("div",{"data-drag-handle":!0,draggable:"true",style:C,className:`image-view__body ${e!=null&&e.selected?"image-view__body--focused":""} ${f?"image-view__body--resizing":""}`,children:[i.jsx("img",{alt:M.alt,className:"image-view__body__image block",height:"auto",onClick:_,onLoad:R,src:M.src,style:M.style}),(e==null?void 0:e.editor.view.editable)&&((e==null?void 0:e.selected)||f)&&i.jsx("div",{className:"image-resizer",children:h==null?void 0:h.map(o=>i.jsx("span",{className:`image-resizer__handler image-resizer__handler--${o}`,onMouseDown:x=>j(x,o)},`image-dir-${o}`))})]})})}function Te(e,t){const n=e.type,s=e.name.toLowerCase(),d=s.split(".").pop();if(!d)return!1;const f=n||{heif:"image/heif",heic:"image/heic",dng:"image/x-adobe-dng",cr2:"image/x-canon-cr2",nef:"image/x-nikon-nef",arw:"image/x-sony-arw",raf:"image/x-fuji-raf",orf:"image/x-olympus-orf"}[d];return t.some(y=>{if(y.startsWith("."))return s.endsWith(y);if(y.endsWith("/*")){const m=y.split("/")[0];return f==null?void 0:f.startsWith(m+"/")}return f===y})}function te(e,t){const{acceptMimes:n,maxSize:s,t:d,toast:h}=t,f=[];return(Array.isArray(e)?e:Object.values(e)).forEach(m=>{if(!Te(m,n)){t.onError?t.onError({type:"type",message:d("editor.upload.fileTypeNotSupported",{fileName:m.name}),file:m}):h({variant:"destructive",title:d("editor.upload.fileTypeNotSupported",{fileName:m.name})});return}if(m.size>s){const b=(s/1024/1024).toFixed(2);t.onError?t.onError({type:"size",message:d("editor.upload.fileSizeTooBig",{fileName:m.name,size:b}),file:m}):h({variant:"destructive",title:d("editor.upload.fileSizeTooBig",{fileName:m.name,size:b})});return}f.push(m)}),f}function ye(){const{t:e}=k.useLocale(),{toast:t}=ee(),n=q.useEditorInstance(),s=q.useButtonProps(G.name),{icon:d,tooltip:h}=(s==null?void 0:s.componentProps)??{},{editorDisabled:f}=q.useToggleActive(),[y,m]=c.useState(!1),[b,A]=c.useState(!1),S=q.useExtension(G.name),[E,M]=c.useState(""),[C,R]=c.useState(""),_=c.useRef(null),w=(S==null?void 0:S.options.defaultInline)||!1,[j,v]=c.useState(w),r=c.useMemo(()=>S==null?void 0:S.options,[S]);async function F(p){var o;const L=(o=p==null?void 0:p.target)==null?void 0:o.files;if(!n||n.isDestroyed||L.length===0||b){p.target.value="";return}const N=te(L,{acceptMimes:r==null?void 0:r.acceptMimes,maxSize:r==null?void 0:r.maxSize,t:e,toast:t,onError:r.onError});if(N.length<=0){p.target.value="";return}A(!0);try{if(r!=null&&r.multiple){const x=N.map(async l=>{if(r.upload){const g=await r.upload(l);return{imageId:g.imageId,src:g.cdnUrl}}else return{imageId:void 0,src:URL.createObjectURL(l)}});(await Promise.all(x)).forEach(({imageId:l,src:g})=>{n.chain().focus().setImageInline({imageId:l,src:g,inline:j,alt:C}).run()})}else{const x=N[0];let a,l="";if(r.upload){const g=await r.upload(x);a=g.imageId,l=g.cdnUrl}else l=URL.createObjectURL(x);n.chain().focus().setImageInline({imageId:a,src:l,inline:j,alt:C}).run()}m(!1),R(""),v(w)}catch(x){console.error("Error uploading image",x),r.onError?r.onError({type:"upload",message:e("editor.upload.error")}):t({variant:"destructive",title:e("editor.upload.error")})}finally{A(!1),p.target.value=""}}function D(p){p.preventDefault(),p.stopPropagation(),n.chain().focus().setImageInline({src:E,inline:j,alt:C}).run(),m(!1),v(w),M(""),R("")}function z(p){var L;p.preventDefault(),(L=_.current)==null||L.click()}return s?i.jsxs(O.Dialog,{onOpenChange:m,open:y,children:[i.jsx(O.DialogTrigger,{asChild:!0,children:i.jsx(de.ActionButton,{disabled:f,icon:d,tooltip:h,action:()=>{f||m(!0)}})}),i.jsxs(O.DialogContent,{children:[i.jsx(O.DialogTitle,{children:e("editor.image.dialog.title")}),i.jsxs(U.Tabs,{activationMode:"manual",defaultValue:r.resourceImage==="both"||r.resourceImage==="upload"?"upload":"link",children:[r.resourceImage==="both"&&i.jsxs(U.TabsList,{className:"richtext-grid richtext-w-full richtext-grid-cols-2",children:[i.jsx(U.TabsTrigger,{value:"upload",children:e("editor.image.dialog.tab.upload")}),i.jsx(U.TabsTrigger,{value:"link",children:e("editor.image.dialog.tab.url")})]}),i.jsxs("div",{className:"richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]",children:[i.jsx(ge.Checkbox,{checked:j,onCheckedChange:p=>{v(p)}}),i.jsx(ae.Label,{children:e("editor.link.dialog.inline")})]}),r.enableAlt&&i.jsxs("div",{className:"richtext-my-[10px]",children:[i.jsx(ae.Label,{className:"mb-[6px]",children:e("editor.imageUpload.alt")}),i.jsx(re.Input,{onChange:p=>R(p.target.value),required:!0,type:"text",value:C})]}),i.jsxs(U.TabsContent,{value:"upload",children:[i.jsxs("div",{className:"richtext-flex richtext-items-center richtext-gap-[10px]",children:[i.jsx(H.Button,{className:"richtext-mt-1 richtext-w-full",disabled:b,onClick:z,size:"sm",children:b?i.jsxs(i.Fragment,{children:[e("editor.imageUpload.uploading"),i.jsx(X.IconComponent,{className:"richtext-ml-1 richtext-animate-spin",name:"Loader"})]}):e("editor.image.dialog.tab.upload")}),i.jsx(oe,{alt:C,disabled:b,editor:n,imageInline:j,onClose:()=>{R("")}})]}),i.jsx("input",{accept:r.acceptMimes.join(",")||"image/*",multiple:r.multiple,onChange:F,ref:_,style:{display:"none"},type:"file"})]}),i.jsx(U.TabsContent,{value:"link",children:i.jsx("form",{onSubmit:D,children:i.jsxs("div",{className:"richtext-flex richtext-items-center richtext-gap-2",children:[i.jsx(re.Input,{autoFocus:!0,onChange:p=>M(p.target.value),placeholder:e("editor.image.dialog.placeholder"),required:!0,type:"url",value:E}),i.jsx(H.Button,{type:"submit",children:e("editor.image.dialog.button.apply")})]})})})]})]})]}):i.jsx(i.Fragment,{})}const Se={acceptMimes:["image/jpeg","image/gif","image/png","image/jpg"],maxSize:1024*1024*5,multiple:!0,resourceImage:"both",defaultInline:!1,enableAlt:!0},G=K.index_default.extend({group:"inline",inline:!0,defining:!0,draggable:!0,selectable:!0,addOptions(){var e;return{...Se,...(e=this.parent)==null?void 0:e.call(this),upload:()=>Promise.reject("Image Upload Function"),button:({editor:t,extension:n,t:s})=>{var d,h;return{componentProps:{action:()=>!0,upload:n.options.upload,disabled:!((h=(d=t.can()).setImage)!=null&&h.call(d,{})),icon:"ImageUp",tooltip:s("editor.image.tooltip")}}}}},addAttributes(){var e;return{...(e=this.parent)==null?void 0:e.call(this),imageId:{default:null,parseHTML:t=>t.getAttribute("data-image-id"),renderHTML:t=>t.imageId?{"data-image-id":t.imageId}:{}},flipX:{default:!1},flipY:{default:!1},width:{default:null,parseHTML:t=>{const n=t.style.width||t.getAttribute("width")||null;return n?Number.parseInt(n,10):null},renderHTML:t=>({width:t.width})},align:{default:"center",parseHTML:t=>t.getAttribute("align"),renderHTML:t=>({align:t.align})},inline:{default:!1,parseHTML:t=>!!t.getAttribute("inline"),renderHTML:t=>({inline:t.inline})},alt:{default:"",parseHTML:t=>t.getAttribute("alt"),renderHTML:t=>({alt:t.alt})}}},addNodeView(){return J.ReactNodeViewRenderer(Ie)},addCommands(){var e;return{...(e=this.parent)==null?void 0:e.call(this),setImageInline:t=>({commands:n})=>n.insertContent({type:this.name,attrs:{...t,imageId:t.imageId??null,inline:t.inline??this.options.defaultInline}}),updateImage:t=>({commands:n})=>n.updateAttributes(this.name,t),setAlignImage:t=>({commands:n})=>n.updateAttributes(this.name,{align:t})}},renderHTML({HTMLAttributes:e}){const{flipX:t,flipY:n,align:s,inline:d}=e,h=d&&(s==="left"||s==="right"),f=t||n?`transform: rotateX(${t?"180":"0"}deg) rotateY(${n?"180":"0"}deg);`:"",y=h?"":`text-align: ${s};`,A=`${h?`float: ${s};`:""}${h?s==="left"?"margin: 1em 1em 1em 0;":"margin: 1em 0 1em 1em;":""}${f}`;return[d?"span":"div",{style:y,class:"image"},["img",J.mergeAttributes({height:"auto",style:A},this.options.HTMLAttributes,e)]]},parseHTML(){return[{tag:"span.image img",getAttrs:e=>{var h;const t=e==null?void 0:e.parentElement,n=e==null?void 0:e.getAttribute("width"),s=(e==null?void 0:e.getAttribute("flipx"))||!1,d=(e==null?void 0:e.getAttribute("flipy"))||!1;return{src:e==null?void 0:e.getAttribute("src"),alt:e==null?void 0:e.getAttribute("alt"),caption:e==null?void 0:e.getAttribute("caption"),width:n?Number.parseInt(n,10):null,align:(e==null?void 0:e.getAttribute("align"))||((h=t==null?void 0:t.style)==null?void 0:h.textAlign)||null,inline:(e==null?void 0:e.getAttribute("inline"))||!1,flipX:s==="true",flipY:d==="true"}}},{tag:"div[class=image]",getAttrs:e=>{const t=e.querySelector("img"),n=t==null?void 0:t.getAttribute("width"),s=(t==null?void 0:t.getAttribute("flipx"))||!1,d=(t==null?void 0:t.getAttribute("flipy"))||!1;return{src:t==null?void 0:t.getAttribute("src"),alt:t==null?void 0:t.getAttribute("alt"),caption:t==null?void 0:t.getAttribute("caption"),width:n?Number.parseInt(n,10):null,align:(t==null?void 0:t.getAttribute("align"))||e.style.textAlign||null,inline:(t==null?void 0:t.getAttribute("inline"))||!1,flipX:s==="true",flipY:d==="true"}}},{tag:'img[src]:not([src^="data:"])'}]}});function oe({editor:e,imageInline:t,onClose:n,disabled:s,alt:d}){var o,x;const{t:h}=k.useLocale(),{toast:f}=ee(),[y,m]=c.useState(!1),[b,A]=c.useState(!1),S=c.useRef(null),[E,M]=c.useState(),[C,R]=c.useState(""),_=c.useRef(null),[w,j]=c.useState({src:"",file:null}),v=q.useExtension(G.name),r=c.useMemo(()=>(v==null?void 0:v.options)??{},[v]);function F(a){if(S.current&&a.width&&a.height){const l=D(S.current,a);R(l)}}function D(a,l){const g=document.createElement("canvas"),u=a.naturalWidth/a.width,I=a.naturalHeight/a.height;g.width=l.width*u,g.height=l.height*I;const T=g.getContext("2d");return T&&(T.imageSmoothingEnabled=!1,T.drawImage(a,l.x*u,l.y*I,l.width*u,l.height*I,0,0,l.width*u,l.height*I)),g.toDataURL("image/png",1)}const z=c.useCallback(async()=>{var a;if(!b){A(!0);try{const l=ie.dataURLtoFile(C,((a=w==null?void 0:w.file)==null?void 0:a.name)||"image.png");let g="";r.upload?g=await r.upload(l):g=URL.createObjectURL(l),e.chain().focus().setImageInline({src:g,inline:t,alt:d}).run(),m(!1),j({src:"",file:null}),N(),n()}catch(l){console.error("Error cropping image",l)}finally{A(!1)}}},[C,e,t,b,n,(o=w==null?void 0:w.file)==null?void 0:o.name,r]);function p(a){var l;a.preventDefault(),(l=_.current)==null||l.click()}const L=async a=>{var T;const l=(T=a==null?void 0:a.target)==null?void 0:T.files;if(!e||e.isDestroyed||l.length===0){a.target.value="";return}const g=te(l,{acceptMimes:r==null?void 0:r.acceptMimes,maxSize:r==null?void 0:r.maxSize,t:h,toast:f,onError:r.onError});if(g.length<=0){a.target.value="";return}const u=g[0],I=await ie.readImageAsBase64(u);m(!0),j({src:I.src,file:u})},N=()=>{_.current&&(_.current.value="")};return i.jsxs(i.Fragment,{children:[i.jsx(H.Button,{className:"richtext-mt-1 richtext-w-full",disabled:s,onClick:p,size:"sm",children:h("editor.image.dialog.tab.uploadCrop")}),i.jsxs(O.Dialog,{open:y,onOpenChange:a=>{m(a),a||(j({src:"",file:null}),N())},children:[i.jsx(O.DialogTrigger,{}),i.jsxs(O.DialogContent,{children:[i.jsx(O.DialogTitle,{children:h("editor.image.dialog.tab.uploadCrop")}),i.jsx("div",{children:w.src&&i.jsx(ue,{className:"richtext-w-full",crop:E,onChange:a=>M(a),onComplete:a=>F(a),children:i.jsx("img",{alt:"Crop me",ref:S,src:w.src})})}),i.jsxs(O.DialogFooter,{children:[i.jsxs(H.Button,{disabled:b,onClick:()=>{m(!1),j({src:"",file:null}),N()},children:[h("editor.imageUpload.cancel"),i.jsx(X.IconComponent,{className:"richtext-ml-1",name:"Trash2"})]}),i.jsx(H.Button,{className:"richtext-w-fit",disabled:b||!E,onClick:z,children:b?i.jsxs(i.Fragment,{children:[h("editor.imageUpload.uploading"),i.jsx(X.IconComponent,{className:"richtext-ml-1 richtext-animate-spin",name:"Loader"})]}):i.jsxs(i.Fragment,{children:[h("editor.imageUpload.crop"),i.jsx(X.IconComponent,{className:"richtext-ml-1",name:"Crop"})]})})]})]})]}),i.jsx("input",{accept:((x=r==null?void 0:r.acceptMimes)==null?void 0:x.join(","))||"image/*",multiple:!1,onChange:L,ref:_,style:{display:"none"},type:"file"})]})}exports.Image=G;exports.ImageCropper=oe;exports.RichTextImage=ye;exports.useToast=ee;exports.validateFiles=te;
|