@oyat/editor 1.5.11 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,836 +1,842 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-700:oklch(50.8% .118 165.612);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-slate-500:oklch(55.4% .046 257.417);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--radius-xs:.125rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.start-1{inset-inline-start:calc(var(--spacing)*1)}.-top-2{top:calc(var(--spacing)*-2)}.-top-px{top:-1px}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-\\[5px\\]{top:5px}.top-\\[50\\%\\]{top:50%}.-right-1{right:calc(var(--spacing)*-1)}.-right-3{right:calc(var(--spacing)*-3)}.right-0{right:calc(var(--spacing)*0)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.right-\\[-1\\.5px\\]{right:-1.5px}.right-\\[-11px\\]{right:-11px}.right-\\[28px\\]{right:28px}.-bottom-1{bottom:calc(var(--spacing)*-1)}.-bottom-px{bottom:-1px}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-0\\.5{bottom:calc(var(--spacing)*.5)}.bottom-1{bottom:calc(var(--spacing)*1)}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-4{bottom:calc(var(--spacing)*4)}.-left-0{left:calc(var(--spacing)*0)}.-left-0\\.5{left:calc(var(--spacing)*-.5)}.-left-1{left:calc(var(--spacing)*-1)}.-left-3{left:calc(var(--spacing)*-3)}.-left-6{left:calc(var(--spacing)*-6)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-2\\.5{left:calc(var(--spacing)*2.5)}.left-3{left:calc(var(--spacing)*3)}.left-\\[-1\\.5px\\]{left:-1.5px}.left-\\[-10\\.5px\\]{left:-10.5px}.left-\\[50\\%\\]{left:50%}.z-1{z-index:1}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-51{z-index:51}.z-100{z-index:100}.z-500{z-index:500}.z-1500{z-index:1500}.col-span-1{grid-column:span 1/span 1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-1\\.5{margin-inline:calc(var(--spacing)*1.5)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-auto{margin-inline:auto}.mx-px{margin-inline:1px}.my-1{margin-block:calc(var(--spacing)*1)}.my-1\\.5{margin-block:calc(var(--spacing)*1.5)}.my-auto{margin-block:auto}.my-px{margin-block:1px}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-\\[0\\.75em\\]{margin-top:.75em}.mt-\\[1\\.4em\\]{margin-top:1.4em}.mt-\\[1\\.6em\\]{margin-top:1.6em}.mt-\\[1em\\]{margin-top:1em}.-mr-3{margin-right:calc(var(--spacing)*-3)}.mr-0{margin-right:calc(var(--spacing)*0)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-1\\.5{margin-right:calc(var(--spacing)*1.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mr-auto{margin-right:auto}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-2\\.5{margin-bottom:calc(var(--spacing)*2.5)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-2{margin-left:calc(var(--spacing)*-2)}.-ml-3{margin-left:calc(var(--spacing)*-3)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.block{display:block}.contents{display:contents}.flex{display:flex}.flex\\!{display:flex!important}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.\\!size-3{width:calc(var(--spacing)*3)!important;height:calc(var(--spacing)*3)!important}.\\!size-3\\.5{width:calc(var(--spacing)*3.5)!important;height:calc(var(--spacing)*3.5)!important}.size-\\(--cell-size\\){width:var(--cell-size);height:var(--cell-size)}.size-0{width:calc(var(--spacing)*0);height:calc(var(--spacing)*0)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-\\[28px\\]{width:28px;height:28px}.size-\\[130px\\]{width:130px;height:130px}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\\(--cell-size\\){height:var(--cell-size)}.h-0\\.5{height:calc(var(--spacing)*.5)}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-\\[0\\.1px\\]{height:.1px}.h-\\[1\\.5em\\]{height:1.5em}.h-\\[19px\\]{height:19px}.h-\\[23rem\\]{height:23rem}.h-\\[24px\\]{height:24px}.h-\\[28px\\]{height:28px}.h-\\[344px\\]{height:344px}.h-\\[650px\\]{height:650px}.h-\\[calc\\(100\\%_\\+_8px\\)\\]{height:calc(100% + 8px)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\(--radix-context-menu-content-available-height\\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\\(--radix-dropdown-menu-content-available-height\\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-14{max-height:calc(var(--spacing)*14)}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[288px\\]{max-height:288px}.max-h-\\[300px\\]{max-height:300px}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[calc\\(100vh-4rem\\)\\]{max-height:calc(100vh - 4rem)}.max-h-\\[min\\(50dvh\\,calc\\(-24px\\+var\\(--radix-popper-available-height\\)\\)\\)\\]{max-height:min(50dvh,calc(-24px + var(--radix-popper-available-height)))}.max-h-\\[min\\(70vh\\,320px\\)\\]{max-height:min(70vh,320px)}.max-h-screen{max-height:100vh}.min-h-14{min-height:calc(var(--spacing)*14)}.min-h-\\[1lh\\]{min-height:1lh}.min-h-\\[25px\\]{min-height:25px}.min-h-\\[50\\%\\]{min-height:50%}.w-\\(--cell-size\\){width:var(--cell-size)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-4{width:calc(var(--spacing)*4)}.w-4\\.5{width:calc(var(--spacing)*4.5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-48{width:calc(var(--spacing)*48)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-80{width:calc(var(--spacing)*80)}.w-\\[180px\\]{width:180px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[330px\\]{width:330px}.w-\\[380px\\]{width:380px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[700px\\]{max-width:700px}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-\\[calc\\(100vw-24px\\)\\]{max-width:calc(100vw - 24px)}.max-w-full{max-width:100%}.min-w-\\(--cell-size\\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-8{min-width:calc(var(--spacing)*8)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[92px\\]{min-width:92px}.min-w-\\[125px\\]{min-width:125px}.min-w-\\[130px\\]{min-width:130px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[220px\\]{min-width:220px}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.origin-\\(--radix-context-menu-content-transform-origin\\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\\(--radix-dropdown-menu-content-transform-origin\\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\\(--radix-popover-content-transform-origin\\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-\\[repeat\\(10\\,1fr\\)\\]{grid-template-columns:repeat(10,1fr)}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-evenly{justify-content:space-evenly}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*10)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*10)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-border,.border-border\\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-current{border-color:currentColor}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-muted-foreground{border-color:var(--muted-foreground)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-b-border{border-bottom-color:var(--border)}.border-b-brand\\/\\[\\.24\\]{border-bottom-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.border-b-brand\\/\\[\\.24\\]{border-bottom-color:color-mix(in oklab,var(--brand)24%,transparent)}}.border-b-gray-300{border-bottom-color:var(--color-gray-300)}.border-b-highlight,.border-b-highlight\\/35{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/35{border-bottom-color:color-mix(in oklab,var(--highlight)35%,transparent)}}.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:color-mix(in oklab,var(--highlight)70%,transparent)}}.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:color-mix(in oklab,var(--highlight)36%,transparent)}}.border-b-purple-100{border-bottom-color:var(--color-purple-100)}.bg-\\(--cellBackground\\){background-color:var(--cellBackground)}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:#00000080}.bg-accent{background-color:var(--accent)}.bg-background,.bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/95{background-color:color-mix(in oklab,var(--background)95%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-brand,.bg-brand\\/25{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/25{background-color:color-mix(in oklab,var(--brand)25%,transparent)}}.bg-brand\\/50{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/50{background-color:color-mix(in oklab,var(--brand)50%,transparent)}}.bg-brand\\/\\[\\.08\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.08\\]{background-color:color-mix(in oklab,var(--brand)8%,transparent)}}.bg-brand\\/\\[\\.13\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--brand)13%,transparent)}}.bg-current{background-color:currentColor}.bg-destructive{background-color:var(--destructive)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200\\/80{background-color:#a4f4cfcc}@supports (color:color-mix(in lab,red,red)){.bg-emerald-200\\/80{background-color:color-mix(in oklab,var(--color-emerald-200)80%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-300\\/25{background-color:#d1d5dc40}@supports (color:color-mix(in lab,red,red)){.bg-gray-300\\/25{background-color:color-mix(in oklab,var(--color-gray-300)25%,transparent)}}.bg-highlight,.bg-highlight\\/15{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/15{background-color:color-mix(in oklab,var(--highlight)15%,transparent)}}.bg-highlight\\/25{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/25{background-color:color-mix(in oklab,var(--highlight)25%,transparent)}}.bg-highlight\\/30{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/30{background-color:color-mix(in oklab,var(--highlight)30%,transparent)}}.bg-highlight\\/45{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/45{background-color:color-mix(in oklab,var(--highlight)45%,transparent)}}.bg-highlight\\/\\[\\.13\\]{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--highlight)13%,transparent)}}.bg-inherit{background-color:inherit}.bg-muted,.bg-muted\\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-muted\\/60{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\\/60{background-color:color-mix(in oklab,var(--muted)60%,transparent)}}.bg-popover,.bg-popover\\/90{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){.bg-popover\\/90{background-color:color-mix(in oklab,var(--popover)90%,transparent)}}.bg-primary,.bg-primary\\/40{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/40{background-color:color-mix(in oklab,var(--primary)40%,transparent)}}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200\\/80{background-color:#ffcacacc}@supports (color:color-mix(in lab,red,red)){.bg-red-200\\/80{background-color:color-mix(in oklab,var(--color-red-200)80%,transparent)}}.bg-ring{background-color:var(--ring)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-clip-content{background-clip:content-box}.bg-center{background-position:50%}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.fill-primary{fill:var(--primary)}.stroke-\\[3px\\]{stroke-width:3px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-px{padding:1px}.\\!px-1{padding-inline:calc(var(--spacing)*1)!important}.\\!px-1\\.5{padding-inline:calc(var(--spacing)*1.5)!important}.px-\\(--cell-size\\){padding-inline:var(--cell-size)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-16{padding-inline:calc(var(--spacing)*16)}.px-\\[0\\.3em\\]{padding-inline:.3em}.px-px{padding-inline:1px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-\\[0\\.2em\\]{padding-block:.2em}.py-\\[1\\.5px\\]{padding-block:1.5px}.py-\\[3px\\]{padding-block:3px}.pt-0\\.5{padding-top:calc(var(--spacing)*.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-72{padding-bottom:calc(var(--spacing)*72)}.pb-\\[51\\.25\\%\\]{padding-bottom:51.25%}.pb-\\[56\\.25\\%\\]{padding-bottom:56.25%}.pb-\\[56\\.0417\\%\\]{padding-bottom:56.0417%}.pb-\\[75\\%\\]{padding-bottom:75%}.pb-px{padding-bottom:1px}.pl-0\\.5{padding-left:calc(var(--spacing)*.5)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-\\[26px\\]{padding-left:26px}.pl-\\[32px\\]{padding-left:32px}.pl-\\[50px\\]{padding-left:50px}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-start{text-align:start}.align-baseline{vertical-align:baseline}.align-text-bottom{vertical-align:text-bottom}.font-\\[inherit\\]{font-family:inherit}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[10px\\]{font-size:10px}.text-\\[18px\\]{font-size:18px}.leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-background{color:var(--background)}.text-brand\\/80{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.text-brand\\/80{color:color-mix(in oklab,var(--brand)80%,transparent)}}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-inherit{color:inherit}.text-muted-foreground,.text-muted-foreground\\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/70{color:color-mix(in oklab,var(--muted-foreground)70%,transparent)}}.text-muted-foreground\\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/80{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-600{color:var(--color-purple-600)}.text-purple-800{color:var(--color-purple-800)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-500{color:var(--color-slate-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.decoration-primary{-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}.decoration-\\[0\\.5px\\]{text-decoration-thickness:.5px}.underline-offset-4{text-underline-offset:4px}.caret-primary{caret-color:var(--primary)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:color-mix(in oklab,#ffffff1a 0px .5px 0px 0px inset,#f8f9fa 0px 1px 5px 0px inset,#c1c8cd 0px 0px 0px .5px,#c1c8cd 0px 2px 1px -1px,#c1c8cd 0px 1px 0px 0px var(--tw-shadow-alpha),transparent)}}.ring-ring{--tw-ring-color:var(--ring)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.\\!filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.\\[contain\\:content\\]{contain:content}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\\[--cell-size\\:--spacing\\(8\\)\\]{--cell-size:calc(var(--spacing)*8)}.\\[tab-size\\:2\\]{tab-size:2}.fade-in{--tw-enter-opacity:0}:is(.\\*\\:m-0>*){margin:calc(var(--spacing)*0)}.not-last\\:border-b:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.group-first\\/column\\:-left-1:is(:where(.group\\/column):first-child *){left:calc(var(--spacing)*-1)}.group-first\\/column\\:pl-0:is(:where(.group\\/column):first-child *){padding-left:calc(var(--spacing)*0)}.group-last\\/column\\:-right-1:is(:where(.group\\/column):last-child *){right:calc(var(--spacing)*-1)}.group-last\\/column\\:pr-0:is(:where(.group\\/column):last-child *){padding-right:calc(var(--spacing)*0)}.group-last\\/toolbar-group\\:hidden\\!:is(:where(.group\\/toolbar-group):last-child *){display:none!important}.group-focus-within\\:pointer-events-none:is(:where(.group):focus-within *){pointer-events:none}.group-focus-within\\:top-0:is(:where(.group):focus-within *){top:calc(var(--spacing)*0)}.group-focus-within\\:cursor-default:is(:where(.group):focus-within *){cursor:default}.group-focus-within\\:text-xs:is(:where(.group):focus-within *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-focus-within\\:font-medium:is(:where(.group):focus-within *){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.group-focus-within\\:text-foreground:is(:where(.group):focus-within *){color:var(--foreground)}@media(hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *),.group-hover\\/column\\:opacity-100:is(:where(.group\\/column):hover *),.group-hover\\/container\\:opacity-100:is(:where(.group\\/container):hover *),.group-hover\\/row\\:opacity-100:is(:where(.group\\/row):hover *){opacity:1}}.group-has-disabled\\:opacity-50:is(:where(.group):has(:disabled) *){opacity:.5}.group-has-data-\\[resizing\\=\\"true\\"\\]\\/row\\:opacity-0:is(:where(.group\\/row):has([data-resizing=true]) *){opacity:0}.group-has-\\[\\[data-col\\=\\"0\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"]:hover) *),.group-has-\\[\\[data-col\\=\\"0\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"]:hover) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"]:hover) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"]:hover) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"]:hover) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"]:hover) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"]:hover) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"]:hover) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"]:hover) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"]:hover) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"]:hover) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"][data-resizing=true]) *),.group-has-\\[\\[data-resizer-left\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left]:hover) *),.group-has-\\[\\[data-resizer-left\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left][data-resizing=true]) *){display:block}.group-data-\\[focused\\=true\\]\\/day\\:relative:is(:where(.group\\/day)[data-focused=true] *){position:relative}.group-data-\\[focused\\=true\\]\\/day\\:z-10:is(:where(.group\\/day)[data-focused=true] *){z-index:10}.group-data-\\[focused\\=true\\]\\/day\\:border-ring:is(:where(.group\\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\\[focused\\=true\\]\\/day\\:ring-\\[3px\\]:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.group-data-\\[pressed\\=true\\]\\:bg-accent:is(:where(.group)[data-pressed=true] *){background-color:var(--accent)}.group-data-\\[pressed\\=true\\]\\:text-accent-foreground:is(:where(.group)[data-pressed=true] *){color:var(--accent-foreground)}.peer-has-\\[\\[role\\=menuitem\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitem])~*),.peer-has-\\[\\[role\\=menuitemradio\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitemradio])~*),.peer-has-\\[\\[role\\=option\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=option])~*){display:block}.selection\\:bg-brand\\/25 ::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25 ::selection{background-color:color-mix(in oklab,var(--brand)25%,transparent)}}.selection\\:bg-brand\\/25::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25::selection{background-color:color-mix(in oklab,var(--brand)25%,transparent)}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:bg-transparent ::selection{background-color:#0000}.selection\\:bg-transparent::selection{background-color:#0000}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-muted-foreground::placeholder,.placeholder\\:text-muted-foreground\\/80::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-muted-foreground\\/80::placeholder{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:z-10:before{content:var(--tw-content);z-index:10}.before\\:box-border:before{content:var(--tw-content);box-sizing:border-box}.before\\:size-full:before{content:var(--tw-content);width:100%;height:100%}.before\\:cursor-text:before{content:var(--tw-content);cursor:text}.before\\:border-t:before{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:1px}.before\\:border-r:before{content:var(--tw-content);border-right-style:var(--tw-border-style);border-right-width:1px}.before\\:border-b:before{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.before\\:border-l:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:1px}.before\\:border-t-border:before{content:var(--tw-content);border-top-color:var(--border)}.before\\:border-r-border:before{content:var(--tw-content);border-right-color:var(--border)}.before\\:border-b-border:before{content:var(--tw-content);border-bottom-color:var(--border)}.before\\:border-l-border:before{content:var(--tw-content);border-left-color:var(--border)}.before\\:bg-brand\\/5:before{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.before\\:bg-brand\\/5:before{background-color:color-mix(in oklab,var(--brand)5%,transparent)}}.before\\:text-muted-foreground\\/80:before{content:var(--tw-content);color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.before\\:text-muted-foreground\\/80:before{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.before\\:content-\\[\\\'\\\'\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:content-\\[attr\\(placeholder\\)\\]:before{--tw-content:attr(placeholder);content:var(--tw-content)}.before\\:select-none:before{content:var(--tw-content);-webkit-user-select:none;user-select:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing)*0)}.after\\:-top-0\\.5:after{content:var(--tw-content);top:calc(var(--spacing)*-.5)}.after\\:-left-1:after{content:var(--tw-content);left:calc(var(--spacing)*-1)}.after\\:z-1:after{content:var(--tw-content);z-index:1}.after\\:ml-1\\.5:after{content:var(--tw-content);margin-left:calc(var(--spacing)*1.5)}.after\\:block:after{content:var(--tw-content);display:block}.after\\:flex:after{content:var(--tw-content);display:flex}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-3:after{content:var(--tw-content);height:calc(var(--spacing)*3)}.after\\:h-16:after{content:var(--tw-content);height:calc(var(--spacing)*16)}.after\\:h-\\[calc\\(100\\%\\)\\+4px\\]:after{content:var(--tw-content);height:100% 4px}.after\\:w-3:after{content:var(--tw-content);width:calc(var(--spacing)*3)}.after\\:w-\\[3px\\]:after{content:var(--tw-content);width:3px}.after\\:w-\\[calc\\(100\\%\\+8px\\)\\]:after{content:var(--tw-content);width:calc(100% + 8px)}.after\\:rounded-\\[6px\\]:after{content:var(--tw-content);border-radius:6px}.after\\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\\:rounded-sm:after{content:var(--tw-content);border-radius:calc(var(--radius) - 4px)}.after\\:bg-brand\\/15:after{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.after\\:bg-brand\\/15:after{background-color:color-mix(in oklab,var(--brand)15%,transparent)}}.after\\:bg-neutral-500\\/10:after{content:var(--tw-content);background-color:#7373731a}@supports (color:color-mix(in lab,red,red)){.after\\:bg-neutral-500\\/10:after{background-color:color-mix(in oklab,var(--color-neutral-500)10%,transparent)}}.after\\:bg-primary:after{content:var(--tw-content);background-color:var(--primary)}.after\\:bg-ring:after{content:var(--tw-content);background-color:var(--ring)}.after\\:pb-\\[var\\(--aspect-ratio\\)\\]:after{content:var(--tw-content);padding-bottom:var(--aspect-ratio)}.after\\:align-middle:after{content:var(--tw-content);vertical-align:middle}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:content-\\[\\"\\"\\]:after{--tw-content:"";content:var(--tw-content)}.after\\:content-\\[\\\'_\\\'\\]:after{--tw-content:" ";content:var(--tw-content)}@media(hover:hover){.group-hover\\:after\\:opacity-100:is(:where(.group):hover *):after{content:var(--tw-content);opacity:1}}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-ring:focus-within{--tw-ring-color:var(--ring)}.focus-within\\:ring-offset-2:focus-within{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}@media(hover:hover){.hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-muted:hover{background-color:var(--muted)}.hover\\:bg-muted-foreground\\/15:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-muted-foreground\\/15:hover{background-color:color-mix(in oklab,var(--muted-foreground)15%,transparent)}}.hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-brand\\/80:hover{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-brand\\/80:hover{color:color-mix(in oklab,var(--brand)80%,transparent)}}.hover\\:text-muted-foreground:hover,.hover\\:text-muted-foreground\\/80:hover{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-muted-foreground\\/80:hover{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\\:ring-ring:focus-visible,.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\\:ring-transparent:focus-visible{--tw-ring-color:transparent}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-focus\\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\\:ring-\\[3px\\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-aria-disabled\\:border-input:has([aria-disabled=true]){border-color:var(--input)}.has-aria-disabled\\:bg-muted:has([aria-disabled=true]){background-color:var(--muted)}.has-data-readonly\\:w-fit:has([data-readonly]){width:fit-content}.has-data-readonly\\:cursor-default:has([data-readonly]){cursor:default}.has-data-readonly\\:border-transparent:has([data-readonly]){border-color:#0000}.has-data-readonly\\:focus-within\\:\\[box-shadow\\:none\\]:has([data-readonly]):focus-within{box-shadow:none}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:color-mix(in oklab,var(--brand)50%,transparent)}}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-2:has([data-slate-editor]:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:color-mix(in oklab,var(--brand)30%,transparent)}}.has-\\[\\[role\\=menuitem\\]\\]\\:block:has([role=menuitem]),.has-\\[\\[role\\=menuitemradio\\]\\]\\:block:has([role=menuitemradio]),.has-\\[\\[role\\=option\\]\\]\\:block:has([role=option]){display:block}.has-\\[button\\]\\:flex:has(:is(button)){display:flex}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:pointer-events-none:has(+input:not(:placeholder-shown)){pointer-events:none}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:top-0:has(+input:not(:placeholder-shown)){top:calc(var(--spacing)*0)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:cursor-default:has(+input:not(:placeholder-shown)){cursor:default}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-xs:has(+input:not(:placeholder-shown)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:font-medium:has(+input:not(:placeholder-shown)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-foreground:has(+input:not(:placeholder-shown)){color:var(--foreground)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-checked\\:bg-accent[aria-checked=true]{background-color:var(--accent)}.aria-checked\\:text-accent-foreground[aria-checked=true]{color:var(--accent-foreground)}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-selected\\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-readonly\\:w-fit[data-readonly]{width:fit-content}:is(.\\*\\*\\:data-slate-placeholder\\:\\!top-1\\/2 *)[data-slate-placeholder]{top:50%!important}:is(.\\*\\*\\:data-slate-placeholder\\:top-\\[auto_\\!important\\] *)[data-slate-placeholder]{top:auto!important}:is(.\\*\\*\\:data-slate-placeholder\\:-translate-y-1\\/2 *)[data-slate-placeholder]{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}:is(.\\*\\*\\:data-slate-placeholder\\:opacity-100\\! *)[data-slate-placeholder]{opacity:1!important}.data-\\[active-item\\=true\\]\\:bg-accent[data-active-item=true]{background-color:var(--accent)}.data-\\[active-item\\=true\\]\\:text-accent-foreground[data-active-item=true]{color:var(--accent-foreground)}.data-\\[active\\=true\\]\\:bg-muted[data-active=true]{background-color:var(--muted)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true]{opacity:.5}.data-\\[highlighted\\=true\\]\\:bg-accent[data-highlighted=true]{background-color:var(--accent)}.data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[range-end\\=true\\]\\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\\[range-end\\=true\\]\\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\\[range-middle\\=true\\]\\:rounded-none[data-range-middle=true]{border-radius:0}.data-\\[range-middle\\=true\\]\\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\\[range-middle\\=true\\]\\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\\[range-start\\=true\\]\\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\\[range-start\\=true\\]\\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\\[selected-single\\=true\\]\\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\\[selected-single\\=true\\]\\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\\[selected\\=true\\]\\:rounded-none[data-selected=true]{border-radius:0}.data-\\[selected\\=true\\]\\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}:is(.\\*\\:data-\\[slot\\=block-selection\\]\\:left-2>*)[data-slot=block-selection]{left:calc(var(--spacing)*2)}:is(.\\*\\*\\:data-\\[slot\\=command-input-wrapper\\]\\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}.data-\\[state\\=checked\\]\\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-accent[data-state=checked]{background-color:var(--accent)}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:opacity-0[data-state=closed]{opacity:0}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports (backdrop-blur:var(--tw)){.supports-backdrop-blur\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-blur\\:bg-background\\/60{background-color:color-mix(in oklab,var(--background)60%,transparent)}}}@media not all and (min-width:40rem){.max-sm\\:hidden{display:none}}@media(min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:px-24{padding-inline:calc(var(--spacing)*24)}.sm\\:px-\\[max\\(64px\\,calc\\(50\\%-350px\\)\\)\\]{padding-inline:max(64px,50% - 350px)}.sm\\:text-left{text-align:left}.sm\\:opacity-0{opacity:0}}@media(min-width:48rem){.md\\:flex-row{flex-direction:row}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:64rem){.lg\\:inline{display:inline}}.dark\\:border-input:is(.dark *){border-color:var(--input)}.dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\\:bg-input\\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\\:bg-purple-900:is(.dark *){background-color:var(--color-purple-900)}.dark\\:bg-red-900:is(.dark *){background-color:var(--color-red-900)}.dark\\:text-purple-400:is(.dark *){color:var(--color-purple-400)}.dark\\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:color-mix(in oklab,#ffffff1a 0px .5px 0px 0px inset,#1a1d1e 0px 1px 5px 0px inset,#4c5155 0px 0px 0px .5px,#4c5155 0px 2px 1px -1px,#4c5155 0px 1px 0px 0px var(--tw-shadow-alpha),transparent)}}@media(hover:hover){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\\:hover\\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\\:data-\\[state\\=checked\\]\\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}@media print{.print\\:hidden{display:none}.print\\:break-inside-avoid{break-inside:avoid}.print\\:placeholder\\:text-transparent::placeholder{color:#0000}}.\\[\\&_\\.katex-display\\]\\:my-0 .katex-display{margin-block:calc(var(--spacing)*0)}.\\[\\&_\\.katex-display\\]\\:my-0\\! .katex-display{margin-block:calc(var(--spacing)*0)!important}.\\[\\&_\\.react-tweet-theme\\]\\:my-0 .react-tweet-theme{margin-block:calc(var(--spacing)*0)}.\\[\\&_\\.react-tweet-theme\\]\\:ring-2 .react-tweet-theme{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.\\[\\&_\\.react-tweet-theme\\]\\:ring-ring .react-tweet-theme{--tw-ring-color:var(--ring)}.\\[\\&_\\.react-tweet-theme\\]\\:ring-offset-2 .react-tweet-theme{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.\\[\\&_\\.slate-selection-area\\]\\:z-50 .slate-selection-area{z-index:50}.\\[\\&_\\.slate-selection-area\\]\\:border .slate-selection-area{border-style:var(--tw-border-style);border-width:1px}.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:color-mix(in oklab,var(--brand)25%,transparent)}}.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:color-mix(in oklab,var(--brand)15%,transparent)}}.\\[\\&_\\>_\\.lty-playbtn\\]\\:absolute>.lty-playbtn{position:absolute}.\\[\\&_\\>_\\.lty-playbtn\\]\\:top-1\\/2>.lty-playbtn{top:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:left-1\\/2>.lty-playbtn{left:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:z-1>.lty-playbtn{z-index:1}.\\[\\&_\\>_\\.lty-playbtn\\]\\:h-\\[46px\\]>.lty-playbtn{height:46px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:w-\\[70px\\]>.lty-playbtn{width:70px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:\\[transform\\:translate3d\\(-50\\%\\,-50\\%\\,0\\)\\]>.lty-playbtn{transform:translate(-50%,-50%)}.\\[\\&_\\>_\\.lty-playbtn\\]\\:rounded-\\[14\\%\\]>.lty-playbtn{border-radius:14%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:bg-\\[\\#212121\\]>.lty-playbtn{background-color:#212121}.\\[\\&_\\>_\\.lty-playbtn\\]\\:opacity-80>.lty-playbtn{opacity:.8}.\\[\\&_\\>_\\.lty-playbtn\\]\\:\\[transition\\:all_0\\.2s_cubic-bezier\\(0\\,_0\\,_0\\.2\\,_1\\)\\]>.lty-playbtn{transition:all .2s cubic-bezier(0,0,.2,1)}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:absolute>.lty-playbtn:before{content:var(--tw-content);position:absolute}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:top-1\\/2>.lty-playbtn:before{content:var(--tw-content);top:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:left-1\\/2>.lty-playbtn:before{content:var(--tw-content);left:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:\\[transform\\:translate3d\\(-50\\%\\,-50\\%\\,0\\)\\]>.lty-playbtn:before{content:var(--tw-content);transform:translate(-50%,-50%)}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-y-\\[11px\\]>.lty-playbtn:before{content:var(--tw-content);border-block-style:var(--tw-border-style);border-block-width:11px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-r-0>.lty-playbtn:before{content:var(--tw-content);border-right-style:var(--tw-border-style);border-right-width:0}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-l-\\[19px\\]>.lty-playbtn:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:19px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-\\[transparent_transparent_transparent_\\#fff\\]>.lty-playbtn:before{content:var(--tw-content);border-color:#0000 #0000 #0000 #fff}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:content-\\[\\"\\"\\]>.lty-playbtn:before{--tw-content:"";content:var(--tw-content)}.\\[\\&_\\>_iframe\\]\\:absolute>iframe{position:absolute}.\\[\\&_\\>_iframe\\]\\:top-0>iframe{top:calc(var(--spacing)*0)}.\\[\\&_\\>_iframe\\]\\:left-0>iframe{left:calc(var(--spacing)*0)}.\\[\\&_\\>_iframe\\]\\:size-full>iframe{width:100%;height:100%}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\\[\\&_strong\\]\\:font-bold strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:size-6 svg{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground svg{color:var(--muted-foreground)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'text-\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\\[\\&\\.lyt-activated\\]\\:cursor-\\[unset\\].lyt-activated{cursor:unset}.\\[\\&\\.lyt-activated\\]\\:before\\:pointer-events-none.lyt-activated:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\.lyt-activated\\]\\:before\\:absolute.lyt-activated:before{content:var(--tw-content);position:absolute}.\\[\\&\\.lyt-activated\\]\\:before\\:top-0.lyt-activated:before{content:var(--tw-content);top:calc(var(--spacing)*0)}.\\[\\&\\.lyt-activated\\]\\:before\\:h-\\[60px\\].lyt-activated:before{content:var(--tw-content);height:60px}.\\[\\&\\.lyt-activated\\]\\:before\\:w-full.lyt-activated:before{content:var(--tw-content);width:100%}.\\[\\&\\.lyt-activated\\]\\:before\\:bg-\\[url\\(data\\:image\\/png\\;base64\\,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT\\+OqFAAAAdklEQVQoz42QQQ7AIAgEF\\/T\\/D\\+kbq\\/RWAlnQyyazA4aoAB4FsBSA\\/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg\\=\\=\\)\\].lyt-activated:before{content:var(--tw-content);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==)}.\\[\\&\\.lyt-activated\\]\\:before\\:bg-top.lyt-activated:before{content:var(--tw-content);background-position:top}.\\[\\&\\.lyt-activated\\]\\:before\\:bg-repeat-x.lyt-activated:before{content:var(--tw-content);background-repeat:repeat-x}.\\[\\&\\.lyt-activated\\]\\:before\\:pb-\\[50px\\].lyt-activated:before{content:var(--tw-content);padding-bottom:50px}.\\[\\&\\.lyt-activated\\]\\:before\\:opacity-0.lyt-activated:before{content:var(--tw-content);opacity:0}.\\[\\&\\.lyt-activated\\]\\:before\\:\\[transition\\:all_0\\.2s_cubic-bezier\\(0\\,_0\\,_0\\.2\\,_1\\)\\].lyt-activated:before{content:var(--tw-content);transition:all .2s cubic-bezier(0,0,.2,1)}.\\[\\&\\.lyt-activated_\\>_\\.lty-playbtn\\]\\:pointer-events-none.lyt-activated>.lty-playbtn{pointer-events:none}.\\[\\&\\.lyt-activated_\\>_\\.lty-playbtn\\]\\:opacity-0\\!.lyt-activated>.lty-playbtn{opacity:0!important}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-4::-webkit-scrollbar{width:calc(var(--spacing)*4)}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:hidden::-webkit-scrollbar-button{display:none}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:size-0::-webkit-scrollbar-button{width:calc(var(--spacing)*0);height:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:min-h-11::-webkit-scrollbar-thumb{min-height:calc(var(--spacing)*11)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-4::-webkit-scrollbar-thumb{border-style:var(--tw-border-style);border-width:4px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-solid::-webkit-scrollbar-thumb{--tw-border-style:solid;border-style:solid}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-popover::-webkit-scrollbar-thumb{border-color:var(--popover)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-muted::-webkit-scrollbar-thumb{background-color:var(--muted)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-clip-padding::-webkit-scrollbar-thumb{background-clip:padding-box}@media(hover:hover){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}}.focus\\:\\[\\&\\:\\:placeholder\\]\\:opacity-0:focus::placeholder{opacity:0}.\\[\\&\\:first-child\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[role\\=option\\]\\)\\]\\:block:has([role=option]){display:block}.\\[\\&\\:hover_\\>_\\.lty-playbtn\\]\\:bg-\\[red\\]:hover>.lty-playbtn{background-color:red}.\\[\\&\\:hover_\\>_\\.lty-playbtn\\]\\:opacity-100:hover>.lty-playbtn{opacity:1}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#f0fff4\\] *).hljs-addition{background-color:#f0fff4}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#22863a\\] *).hljs-addition{color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#3c5743\\]:is(.dark *) *).hljs-addition{background-color:#3c5743}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#ceead5\\]:is(.dark *) *).hljs-addition{color:#ceead5}:is(.\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#005cc5\\] *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#6596cf\\]:is(.dark *) *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#6596cf}:is(.\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#e36209\\] *):is(.hljs-built\\\\_in,.hljs-symbol){color:#e36209}:is(.dark\\:\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#c3854e\\]:is(.dark *) *):is(.hljs-built\\\\_in,.hljs-symbol){color:#c3854e}:is(.\\*\\*\\:\\[\\.hljs-bullet\\]\\:text-\\[\\#735c0f\\] *).hljs-bullet{color:#735c0f}:is(.\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\] *):is(.hljs-comment,.hljs-code,.hljs-formula),:is(.dark\\:\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\]:is(.dark *) *):is(.hljs-comment,.hljs-code,.hljs-formula){color:#6a737d}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#ffeef0\\] *).hljs-deletion{background-color:#ffeef0}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#b31d28\\] *).hljs-deletion{color:#b31d28}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#473235\\]:is(.dark *) *).hljs-deletion{background-color:#473235}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#e7c7cb\\]:is(.dark *) *).hljs-deletion{color:#e7c7cb}:is(.\\*\\*\\:\\[\\.hljs-emphasis\\]\\:italic *).hljs-emphasis{font-style:italic}:is(.\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#d73a49\\] *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#d73a49}:is(.dark\\:\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#ee6960\\]:is(.dark *) *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#ee6960}:is(.\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#22863a\\] *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#36a84f\\]:is(.dark *) *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#36a84f}:is(.\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#032f62\\] *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#032f62}:is(.dark\\:\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#3593ff\\]:is(.dark *) *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#3593ff}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:font-bold *).hljs-section{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#005cc5\\] *).hljs-section{color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#61a5f2\\]:is(.dark *) *).hljs-section{color:#61a5f2}:is(.\\*\\*\\:\\[\\.hljs-strong\\]\\:font-bold *).hljs-strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#6f42c1\\] *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#6f42c1}:is(.dark\\:\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#a77bfa\\]:is(.dark *) *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#a77bfa}:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_next\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_previous\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\\*\\:first\\:\\[span\\]\\:hidden>*):first-child:is(span){display:none}:is(.\\*\\:\\[svg\\]\\:text-muted-foreground>*):is(svg){color:var(--muted-foreground)}:is(.data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\\[\\&\\:last-child\\[data-selected\\=true\\]_button\\]\\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:nth-child\\(2\\)\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\>span\\]\\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&\\>span\\]\\:opacity-70>span{opacity:.7}.\\[\\&\\>svg\\]\\:size-3\\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\\[\\&\\>svg\\]\\:text-muted-foreground>svg{color:var(--muted-foreground)}[data-slot=card-content] .\\[\\[data-slot\\=card-content\\]_\\&\\]\\:bg-transparent,[data-slot=popover-content] .\\[\\[data-slot\\=popover-content\\]_\\&\\]\\:bg-transparent{background-color:#0000}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);--brand:oklch(62.3% .214 259.815);--highlight:oklch(85.2% .199 91.936)}@counter-style turkish-lower-alpha{system:alphabetic;symbols:a b c ç d e f g ğ h ı i j k l m n o ö p r s ş t u ü v y z;suffix:". "}@counter-style turkish-upper-alpha{system:alphabetic;symbols:A B C Ç D E F G Ğ H I İ J K L M N O Ö P R S Ş T U Ü V Y Z;suffix:". "}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- import*as e from"react";import t from"react";import{PlateElement as r,useReadOnly as s,useSelected as n,useFocused as o,ParagraphPlugin as a,PlateLeaf as l,useEditorPlugin as i,usePlateState as c,usePluginOption as d,BlockPlaceholderPlugin as u,useEditorRef as m,useElement as h,withHOC as p,useRemoveNodeButton as x,useEditorSelector as f,useFocusedLast as g,toTPlatePlugin as b,MemoizedChildren as j,useSelectionFragmentProp as v,useMarkToolbarButtonState as y,useMarkToolbarButton as w,useEditorReadOnly as k,createPlatePlugin as N,useEditorId as C,useEventEditorValue as _,useFormInputProps as z,useEditorSelection as S,createPrimitiveComponent as E,useEditorMounted as B,useComposedRef as A,PlateContainer as I,PlateContent as T,PlateView as D,Plate as O,usePlateEditor as R,useElementSelector as M}from"platejs/react";import{Plate as F,PlateLeaf as L,PlateView as P,toPlatePlugin as H,usePlateEditor as V,usePlateViewEditor as U}from"platejs/react";import{KEYS as q,isHotkey as $,getPluginTypes as W,NodeApi as Z,PathApi as K,isSlateString as Y,RangeApi as G,isType as Q,getPluginByType as J,ExitBreakPlugin as X,isUrl as ee,IS_APPLE as te,nanoid as re,ElementApi as se,TextApi as ne,isSlateEditor as oe,TrailingBlockPlugin as ae,BaseParagraphPlugin as le}from"platejs";import{createSlateEditor as ie,createSlatePlugin as ce,normalizeNodeId as de}from"platejs";import{TextAlignPlugin as ue,FontColorPlugin as me,FontBackgroundColorPlugin as he,FontSizePlugin as pe,FontFamilyPlugin as xe,LineHeightPlugin as fe}from"@platejs/basic-styles/react";import{AutoformatPlugin as ge,autoformatSmartQuotes as be,autoformatPunctuation as je,autoformatLegal as ve,autoformatLegalHtml as ye,autoformatArrow as we,autoformatMath as ke}from"@platejs/autoformat";import{insertEmptyCodeBlock as Ne,isLangSupported as Ce,formatCodeBlock as _e,insertCodeBlock as ze,toggleCodeBlock as Se,BaseCodeBlockPlugin as Ee,BaseCodeLinePlugin as Be,BaseCodeSyntaxPlugin as Ae}from"@platejs/code-block";import{toggleList as Ie,expandListItemsWithChildren as Te,someList as De,ListStyleType as Oe,isOrderedList as Re,BaseListPlugin as Me}from"@platejs/list";import{H1Plugin as Fe,H2Plugin as Le,H3Plugin as Pe,H4Plugin as He,H5Plugin as Ve,H6Plugin as Ue,BlockquotePlugin as qe,HorizontalRulePlugin as $e,BoldPlugin as We,ItalicPlugin as Ze,UnderlinePlugin as Ke,CodePlugin as Ye,StrikethroughPlugin as Ge,SubscriptPlugin as Qe,SuperscriptPlugin as Je,HighlightPlugin as Xe,KbdPlugin as et}from"@platejs/basic-nodes/react";import{cva as tt}from"class-variance-authority";import{clsx as rt}from"clsx";import{twMerge as st}from"tailwind-merge";import{BlockMenuPlugin as nt,BlockSelectionPlugin as ot,BLOCK_CONTEXT_MENU_ID as at,useBlockSelected as lt,useCursorOverlay as it,CursorOverlayPlugin as ct}from"@platejs/selection/react";import{AIChatPlugin as dt}from"@platejs/ai/react";import*as ut from"@radix-ui/react-context-menu";import{ChevronRightIcon as mt,CircleIcon as ht,CheckIcon as pt,ChevronDown as xt,SearchIcon as ft,XIcon as gt,MusicIcon as bt,CompassIcon as jt,SmileIcon as vt,LightbulbIcon as yt,LeafIcon as wt,ClockIcon as kt,AppleIcon as Nt,FlagIcon as Ct,StarIcon as _t,BracesIcon as zt,Check as St,CopyIcon as Et,GripHorizontal as Bt,Trash2Icon as At,ChevronLeftIcon as It,ChevronDownIcon as Tt,GripVertical as Dt,AlignLeftIcon as Ot,AlignCenterIcon as Rt,AlignRightIcon as Mt,AlignJustifyIcon as Ft,EraserIcon as Lt,PlusIcon as Pt,Undo2Icon as Ht,Redo2Icon as Vt,OutdentIcon as Ut,IndentIcon as qt,PilcrowIcon as $t,Heading1Icon as Wt,Heading2Icon as Zt,Heading3Icon as Kt,TableIcon as Yt,ListIcon as Gt,ListOrderedIcon as Qt,ImageIcon as Jt,Link2Icon as Xt,Link as er,ListOrdered as tr,List as rr,LinkIcon as sr,FilmIcon as nr,FileUpIcon as or,AudioLinesIcon as ar,MoreHorizontalIcon as lr,SuperscriptIcon as ir,SubscriptIcon as cr,Table as dr,Grid3x3Icon as ur,Combine as mr,Ungroup as hr,ArrowUp as pr,ArrowDown as xr,ArrowLeft as fr,ArrowRight as gr,Heading4Icon as br,Heading5Icon as jr,Heading6Icon as vr,BoldIcon as yr,ItalicIcon as wr,UnderlineIcon as kr,StrikethroughIcon as Nr,BaselineIcon as Cr,PaintBucketIcon as _r,Text as zr,Unlink as Sr,ExternalLink as Er,RadicalIcon as Br,CornerDownLeftIcon as Ar,FileUp as Ir,Loader2Icon as Tr,Film as Dr,AudioLines as Or,Minus as Rr,Plus as Mr,Download as Fr,X as Lr,SparklesIcon as Pr,Square as Hr,Code2 as Vr,Quote as Ur,TableOfContentsIcon as qr,Columns3Icon as $r,PenToolIcon as Wr,CalendarIcon as Zr,ArrowUpIcon as Kr,PencilIcon as Yr,TrashIcon as Gr,PencilLineIcon as Qr,MessageSquareTextIcon as Jr,MessagesSquareIcon as Xr,CombineIcon as es,SquareSplitHorizontalIcon as ts,Grid2X2Icon as rs,ChevronRight as ss}from"lucide-react";import{DndPlugin as ns,useDraggable as os,useDropLine as as}from"@platejs/dnd";import{useCalloutEmojiPicker as ls,CalloutPlugin as is}from"@platejs/callout/react";import{useEmojiDropdownMenuState as cs}from"@platejs/emoji/react";import{Slot as ds}from"@radix-ui/react-slot";import{EmojiSettings as us}from"@platejs/emoji";import*as ms from"@radix-ui/react-popover";import{PopoverAnchor as hs}from"@radix-ui/react-popover";import*as ps from"@radix-ui/react-tooltip";import*as xs from"@radix-ui/react-toolbar";import*as fs from"@radix-ui/react-dropdown-menu";import{DropdownMenuItemIndicator as gs}from"@radix-ui/react-dropdown-menu";import*as bs from"@radix-ui/react-separator";import{CodeBlockPlugin as js,CodeLinePlugin as vs,CodeSyntaxPlugin as ys}from"@platejs/code-block/react";import{createLowlight as ws,all as ks}from"lowlight";import{Command as Ns}from"cmdk";import"@radix-ui/react-dialog";import{ColumnPlugin as Cs,ColumnItemPlugin as _s}from"@platejs/layout/react";import{setColumns as zs,insertColumnGroup as Ss,toggleColumnGroup as Es,BaseColumnPlugin as Bs,BaseColumnItemPlugin as As}from"@platejs/layout";import{ResizableProvider as Is,Resizable as Ts,useResizeHandleState as Ds,useResizeHandle as Os,useResizableValue as Rs}from"@platejs/resizable";import{useComposedRef as Ms,createPrimitiveComponent as Fs}from"@udecode/cn";import{getCommentCount as Ls,BaseCommentPlugin as Ps,getDraftCommentKey as Hs,getCommentKey as Vs}from"@platejs/comment";import{getTableGridAbove as Us,setCellBackground as qs,BaseTablePlugin as $s,BaseTableRowPlugin as Ws,BaseTableCellPlugin as Zs,BaseTableCellHeaderPlugin as Ks}from"@platejs/table";import{DatePlugin as Ys}from"@platejs/date/react";import{getDefaultClassNames as Gs,DayPicker as Qs}from"react-day-picker";import{DndProvider as Js}from"react-dnd";import{HTML5Backend as Xs}from"react-dnd-html5-backend";import{PlaceholderPlugin as en,useMediaState as tn,useImagePreviewValue as rn,useFloatingMediaValue as sn,FloatingMediaStore as nn,FloatingMedia as on,MediaEmbedPlugin as an,ImagePlugin as ln,Image as cn,PlaceholderProvider as dn,updateUploadHistory as un,useImagePreview as mn,PreviewImage as hn,useScaleInput as pn,UploadErrorCode as xn,VideoPlugin as fn,AudioPlugin as gn,FilePlugin as bn}from"@platejs/media/react";import{DocxPlugin as jn}from"@platejs/docx";import{JuicePlugin as vn}from"@platejs/juice";import{useOutdentButton as yn,useIndentButton as wn,IndentPlugin as kn}from"@platejs/indent/react";import{insertCallout as Nn,BaseCalloutPlugin as Cn}from"@platejs/callout";import{insertDate as _n,BaseDatePlugin as zn}from"@platejs/date";import{insertExcalidraw as Sn}from"@platejs/excalidraw";import{triggerFloatingLink as En,useLinkToolbarButtonState as Bn,useLinkToolbarButton as An,useFloatingLinkInsertState as In,useFloatingLinkInsert as Tn,useFloatingLinkEditState as Dn,useFloatingLinkEdit as On,FloatingLinkUrlInput as Rn,LinkPlugin as Mn}from"@platejs/link/react";import{insertEquation as Fn,insertInlineEquation as Ln,getEquationHtml as Pn,BaseInlineEquationPlugin as Hn,BaseEquationPlugin as Vn}from"@platejs/math";import{insertVideoPlaceholder as Un,insertMedia as qn,insertFilePlaceholder as $n,insertAudioPlaceholder as Wn,parseTwitterUrl as Zn,parseVideoUrl as Kn,BaseImagePlugin as Yn,BaseVideoPlugin as Gn,BaseAudioPlugin as Qn,BaseFilePlugin as Jn,BaseMediaEmbedPlugin as Xn,BasePlaceholderPlugin as eo}from"@platejs/media";import{SuggestionPlugin as to}from"@platejs/suggestion/react";import{TablePlugin as ro,useTableMergeState as so,TableProvider as no,useTableElement as oo,useTableBordersDropdownMenuContentState as ao,useTableCellElement as lo,useTableCellElementResizable as io,TableRowPlugin as co,TableCellPlugin as uo,TableCellHeaderPlugin as mo}from"@platejs/table/react";import{insertToc as ho,BaseTocPlugin as po,isHeading as xo}from"@platejs/toc";import{useTodoListElementState as fo,useTodoListElement as go,ListPlugin as bo}from"@platejs/list/react";import{toast as jo}from"sonner";import{useFilePicker as vo}from"use-file-picker";import*as yo from"@radix-ui/react-alert-dialog";import{useFloatingToolbarState as wo,offset as ko,flip as No,useFloatingToolbar as Co}from"@platejs/floating";import{getLinkAttributes as _o,BaseLinkPlugin as zo}from"@platejs/link";import*as So from"@radix-ui/react-checkbox";import{MarkdownPlugin as Eo,remarkMdx as Bo,remarkMention as Ao}from"@platejs/markdown";import Io from"remark-gfm";import To from"remark-math";import{useEquationInput as Do,useEquationElement as Oo,InlineEquationPlugin as Ro,EquationPlugin as Mo}from"@platejs/math/react";import Fo from"react-textarea-autosize";import{useCaptionButtonState as Lo,useCaptionButton as Po,Caption as Ho,CaptionTextarea as Vo,CaptionPlugin as Uo}from"@platejs/caption/react";import qo from"react-lite-youtube-embed";import{Tweet as $o}from"react-tweet";import{generateReactHelpers as Wo}from"@uploadthing/react";import{z as Zo}from"zod";import Ko from"react-player";import{MentionPlugin as Yo,MentionInputPlugin as Go}from"@platejs/mention/react";import{getMentionOnSelectItem as Qo,BaseMentionPlugin as Jo}from"@platejs/mention";import{useComboboxStore as Xo,ComboboxProvider as ea,useComboboxContext as ta,Combobox as ra,Portal as sa,ComboboxPopover as na,ComboboxGroup as oa,ComboboxItem as aa,ComboboxGroupLabel as la}from"@ariakit/react";import{filterWords as ia}from"@platejs/combobox";import{useHTMLInputCursorState as ca,useComboboxInput as da}from"@platejs/combobox/react";import{SlashPlugin as ua,SlashInputPlugin as ma}from"@platejs/slash-command/react";import{getSuggestionKey as ha,keyId2SuggestionId as pa,acceptSuggestion as xa,rejectSuggestion as fa,getTransientSuggestionKey as ga,BaseSuggestionPlugin as ba}from"@platejs/suggestion";import{useCommentId as ja,CommentPlugin as va}from"@platejs/comment/react";import*as ya from"@radix-ui/react-avatar";import{differenceInMinutes as wa,differenceInHours as ka,differenceInDays as Na,format as Ca}from"date-fns";import{useTocElementState as _a,useTocElement as za,TocPlugin as Sa}from"@platejs/toc/react";import{useToggleButtonState as Ea,useToggleButton as Ba,TogglePlugin as Aa}from"@platejs/toggle/react";import{BaseTextAlignPlugin as Ia,BaseFontColorPlugin as Ta,BaseFontBackgroundColorPlugin as Da,BaseFontSizePlugin as Oa,BaseFontFamilyPlugin as Ra,BaseLineHeightPlugin as Ma}from"@platejs/basic-styles";import{BaseH1Plugin as Fa,BaseH2Plugin as La,BaseH3Plugin as Pa,BaseH4Plugin as Ha,BaseH5Plugin as Va,BaseH6Plugin as Ua,BaseBlockquotePlugin as qa,BaseHorizontalRulePlugin as $a,BaseBoldPlugin as Wa,BaseItalicPlugin as Za,BaseUnderlinePlugin as Ka,BaseCodePlugin as Ya,BaseStrikethroughPlugin as Ga,BaseSubscriptPlugin as Qa,BaseSuperscriptPlugin as Ja,BaseHighlightPlugin as Xa,BaseKbdPlugin as el}from"@platejs/basic-nodes";import{SlateElement as tl,SlateLeaf as rl}from"platejs/static";import{PlateStatic as sl,serializeHtml as nl}from"platejs/static";import{BaseIndentPlugin as ol}from"@platejs/indent";import{BaseCaptionPlugin as al}from"@platejs/caption";import{BaseTogglePlugin as ll}from"@platejs/toggle";import{computeDiff as il,withGetFragmentExcludeDiff as cl}from"@platejs/diff";var dl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ul(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ml,hl={exports:{}},pl={};var xl,fl,gl={};function bl(){return xl||(xl=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case p:return"Fragment";case f:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList";case N:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case h:return"Portal";case b:return t.displayName||"Context";case g:return(t._context.displayName||"Context")+".Consumer";case j:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case w:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case k:r=t._payload,t=t._init;try{return e(t(r))}catch(s){}}return null}function r(e){return""+e}function s(e){try{r(e);var t=!1}catch(o){t=!0}if(t){var s=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),r(e)}}function n(t){if(t===p)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===k)return"<...>";try{var r=e(t);return r?"<"+r+">":"<...>"}catch(s){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return B[t]||(B[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function l(t,r,n,o,l,c){var u,h=r.children;if(void 0!==h)if(o)if(S(h)){for(o=0;o<h.length;o++)i(h[o]);Object.freeze&&Object.freeze(h)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else i(h);if(z.call(r,"key")){h=e(t);var p=Object.keys(r).filter(function(e){return"key"!==e});o=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",T[h+o]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,h,p,h),T[h+o]=!0)}if(h=null,void 0!==n&&(s(n),h=""+n),function(e){if(z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(s(r.key),h=""+r.key),"key"in r)for(var x in n={},r)"key"!==x&&(n[x]=r[x]);else n=r;return h&&function(e,t){function r(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,r,s,n,o){var l=r.ref;return e={$$typeof:m,type:e,key:t,props:r,_owner:s},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,h,n,null===(u=_.A)?null:u.getOwner(),l,c)}function i(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=t,m=/* @__PURE__ */Symbol.for("react.transitional.element"),h=/* @__PURE__ */Symbol.for("react.portal"),p=/* @__PURE__ */Symbol.for("react.fragment"),x=/* @__PURE__ */Symbol.for("react.strict_mode"),f=/* @__PURE__ */Symbol.for("react.profiler"),g=/* @__PURE__ */Symbol.for("react.consumer"),b=/* @__PURE__ */Symbol.for("react.context"),j=/* @__PURE__ */Symbol.for("react.forward_ref"),v=/* @__PURE__ */Symbol.for("react.suspense"),y=/* @__PURE__ */Symbol.for("react.suspense_list"),w=/* @__PURE__ */Symbol.for("react.memo"),k=/* @__PURE__ */Symbol.for("react.lazy"),N=/* @__PURE__ */Symbol.for("react.activity"),C=/* @__PURE__ */Symbol.for("react.client.reference"),_=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,S=Array.isArray,E=console.createTask?console.createTask:function(){return null},B={},A=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,o)(),I=E(n(o)),T={};gl.Fragment=p,gl.jsx=function(e,t,r){var s=1e4>_.recentlyCreatedOwnerStacks++;return l(e,t,r,!1,s?Error("react-stack-top-frame"):A,s?E(n(e)):I)},gl.jsxs=function(e,t,r){var s=1e4>_.recentlyCreatedOwnerStacks++;return l(e,t,r,!0,s?Error("react-stack-top-frame"):A,s?E(n(e)):I)}}()),gl}var jl=(fl||(fl=1,"production"===process.env.NODE_ENV?hl.exports=function(){if(ml)return pl;ml=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.fragment");function r(t,r,s){var n=null;if(void 0!==s&&(n=""+s),void 0!==r.key&&(n=""+r.key),"key"in r)for(var o in s={},r)"key"!==o&&(s[o]=r[o]);else s=r;return r=s.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:s}}return pl.Fragment=t,pl.jsx=r,pl.jsxs=r,pl}():hl.exports=bl()),hl.exports);const vl=[ue.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...q.heading,q.p,q.img,q.mediaEmbed]}})],yl=[{match:"***",mode:"mark",type:[q.bold,q.italic]},{match:"__*",mode:"mark",type:[q.underline,q.italic]},{match:"__**",mode:"mark",type:[q.underline,q.bold]},{match:"___***",mode:"mark",type:[q.underline,q.bold,q.italic]},{match:"**",mode:"mark",type:q.bold},{match:"__",mode:"mark",type:q.underline},{match:"*",mode:"mark",type:q.italic},{match:"_",mode:"mark",type:q.italic},{match:"~~",mode:"mark",type:q.strikethrough},{match:"^",mode:"mark",type:q.sup},{match:"~",mode:"mark",type:q.sub},{match:"==",mode:"mark",type:q.highlight},{match:"≡",mode:"mark",type:q.highlight},{match:"`",mode:"mark",type:q.code}],wl=[{match:"# ",mode:"block",type:q.h1},{match:"## ",mode:"block",type:q.h2},{match:"### ",mode:"block",type:q.h3},{match:"#### ",mode:"block",type:q.h4},{match:"##### ",mode:"block",type:q.h5},{match:"###### ",mode:"block",type:q.h6},{match:"> ",mode:"block",type:q.blockquote},{match:"```",mode:"block",type:q.codeBlock,format:e=>{Ne(e,{defaultType:q.p,insertNodesOptions:{select:!0}})}},{match:["---","—-","___ "],mode:"block",type:q.hr,format:e=>{e.tf.setNodes({type:q.hr}),e.tf.insertNodes({children:[{text:""}],type:q.p})}}],kl=[{match:["* ","- "],mode:"block",type:"list",format:e=>{Ie(e,{listStyleType:q.ul})}},{match:[String.raw`^\d+\.$ `,String.raw`^\d+\)$ `],matchByRegex:!0,mode:"block",type:"list",format:(e,{matchString:t})=>{Ie(e,{listRestartPolite:Number(t)||1,listStyleType:q.ol})}},{match:["[] "],mode:"block",type:"list",format:e=>{Ie(e,{listStyleType:q.listTodo}),e.tf.setNodes({checked:!1,listStyleType:q.listTodo})}},{match:["[x] "],mode:"block",type:"list",format:e=>{Ie(e,{listStyleType:q.listTodo}),e.tf.setNodes({checked:!0,listStyleType:q.listTodo})}}],Nl=[ge.configure({options:{enableUndoOnDelete:!0,rules:[...wl,...yl,...be,...je,...ve,...ye,...we,...ke,...kl].map(e=>({...e,query:e=>!e.api.some({match:{type:e.getType(q.codeBlock)}})}))}})];const Cl=tt("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function _l({variant:e="h1",...t}){/* @__PURE__ */
3
- return jl.jsx(r,{as:e,className:Cl({variant:e}),...t,children:t.children})}function zl(...e){return st(rt(e))}const Sl=[a.withComponent(function(e){/* @__PURE__ */
4
- return jl.jsx(r,{...e,className:zl("m-0 px-0 py-1"),children:e.children})}),Fe.configure({node:{component:function(e){/* @__PURE__ */
5
- return jl.jsx(_l,{variant:"h1",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+1"}}}),Le.configure({node:{component:function(e){/* @__PURE__ */
6
- return jl.jsx(_l,{variant:"h2",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+2"}}}),Pe.configure({node:{component:function(e){/* @__PURE__ */
7
- return jl.jsx(_l,{variant:"h3",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+3"}}}),He.configure({node:{component:function(e){/* @__PURE__ */
8
- return jl.jsx(_l,{variant:"h4",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+4"}}}),Ve.configure({node:{component:function(e){/* @__PURE__ */
9
- return jl.jsx(_l,{variant:"h5",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+5"}}}),Ue.configure({node:{component:function(e){/* @__PURE__ */
10
- return jl.jsx(_l,{variant:"h6",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+6"}}}),qe.configure({node:{component:function(e){/* @__PURE__ */
11
- return jl.jsx(r,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}},shortcuts:{toggle:{keys:"mod+shift+period"}}}),$e.withComponent(function(e){const t=s(),a=n(),l=o();/* @__PURE__ */
12
- return jl.jsxs(r,{...e,children:[
13
- /* @__PURE__ */jl.jsx("div",{className:"py-6",contentEditable:!1,children:/* @__PURE__ */jl.jsx("hr",{className:zl("h-0.5 rounded-sm border-none bg-muted bg-clip-content",a&&l&&"ring-2 ring-ring ring-offset-2",!t&&"cursor-pointer")})}),e.children]})})];const El=[We,Ze,Ke,Ye.configure({node:{component:function(e){/* @__PURE__ */
14
- return jl.jsx(l,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}},shortcuts:{toggle:{keys:"mod+e"}}}),Ge.configure({shortcuts:{toggle:{keys:"mod+shift+x"}}}),Qe.configure({shortcuts:{toggle:{keys:"mod+comma"}}}),Je.configure({shortcuts:{toggle:{keys:"mod+period"}}}),Xe.configure({node:{component:function(e){/* @__PURE__ */
15
- return jl.jsx(l,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}},shortcuts:{toggle:{keys:"mod+shift+h"}}}),et.withComponent(function(e){/* @__PURE__ */
16
- return jl.jsx(l,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];function Bl({...e}){/* @__PURE__ */
17
- return jl.jsx(ut.Root,{"data-slot":"context-menu",...e})}function Al({...e}){/* @__PURE__ */
18
- return jl.jsx(ut.Trigger,{"data-slot":"context-menu-trigger",...e})}function Il({...e}){/* @__PURE__ */
19
- return jl.jsx(ut.Group,{"data-slot":"context-menu-group",...e})}function Tl({...e}){/* @__PURE__ */
20
- return jl.jsx(ut.Sub,{"data-slot":"context-menu-sub",...e})}function Dl({className:e,inset:t,children:r,...s}){/* @__PURE__ */
21
- return jl.jsxs(ut.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:zl("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,
22
- /* @__PURE__ */jl.jsx(mt,{className:"ml-auto"})]})}function Ol({className:e,...t}){/* @__PURE__ */
23
- return jl.jsx(ut.SubContent,{"data-slot":"context-menu-sub-content",className:zl("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function Rl({className:e,...t}){/* @__PURE__ */
24
- return jl.jsx(ut.Portal,{children:/* @__PURE__ */jl.jsx(ut.Content,{"data-slot":"context-menu-content",className:zl("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...t})})}function Ml({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
25
- return jl.jsx(ut.Item,{"data-slot":"context-menu-item","data-inset":t,"data-variant":r,className:zl("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}const Fl=tt("pointer-events-none absolute inset-0 z-1 bg-brand/[.13] transition-opacity",{defaultVariants:{active:!0},variants:{active:{false:"opacity-0",true:"opacity-100"}}});function Ll(e){const t=lt(),r=d(ns,"isDragging");return t&&"tr"!==e.plugin.key&&"table"!==e.plugin.key?/* @__PURE__ */jl.jsx("div",{className:Fl({active:t&&!r}),"data-slot":"block-selection"}):null}const Pl=[...[ot.configure(({editor:e})=>({options:{enableContextMenu:!0,isSelectable:t=>!W(e,[q.column,q.codeLine,q.td]).includes(t.type),onKeyDownSelecting:(e,t)=>{$("mod+j")(t)&&e.getApi(dt).aiChat.show()}},render:{belowRootNodes:e=>e.attributes.className?.includes("slate-selectable")?/* @__PURE__ */jl.jsx(Ll,{...e}):null}}))],nt.configure({render:{aboveEditable:function({children:t}){const{api:r,editor:s}=i(nt),[n,o]=e.useState(null),a=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{function e(){r("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),t}(),[l]=c("readOnly"),u=d(nt,"openId")===at,m=e.useCallback(e=>{s.getApi(ot).blockSelection.getNodes().forEach(([t,r])=>{t[q.listType]&&s.tf.unsetNodes([q.listType,"indent"],{at:r}),s.tf.toggleBlock(e,{at:r})})},[s]),h=e.useCallback(e=>{s.getTransforms(ot).blockSelection.setNodes({align:e})},[s]);return a?t:/* @__PURE__ */jl.jsxs(Bl,{onOpenChange:e=>{e||r.blockMenu.hide()},modal:!1,children:[
26
- /* @__PURE__ */jl.jsx(Al,{asChild:!0,onContextMenu:e=>{const t=e.target.dataset;if("true"===t?.slateEditor||l||"false"===t?.plateOpenContextMenu)return e.preventDefault();setTimeout(()=>{r.blockMenu.show(at,{x:e.clientX,y:e.clientY})},0)},children:/* @__PURE__ */jl.jsx("div",{className:"w-full",children:t})}),u&&/* @__PURE__ */jl.jsxs(Rl,{className:"w-64",onCloseAutoFocus:e=>{e.preventDefault(),s.getApi(ot).blockSelection.focus(),"askAI"===n&&s.getApi(dt).aiChat.show(),o(null)},children:[
27
- /* @__PURE__ */jl.jsxs(Il,{children:[
28
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>{o("askAI")},children:"Ask AI"}),
29
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>{s.getTransforms(ot).blockSelection.removeNodes(),s.tf.focus()},children:"Delete"}),
30
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>{s.getTransforms(ot).blockSelection.duplicate()},children:"Duplicate"}),
31
- /* @__PURE__ */jl.jsxs(Tl,{children:[
32
- /* @__PURE__ */jl.jsx(Dl,{children:"Turn into"}),
33
- /* @__PURE__ */jl.jsxs(Ol,{className:"w-48",children:[
34
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>m(q.p),children:"Paragraph"}),
35
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>m(q.h1),children:"Heading 1"}),
36
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>m(q.h2),children:"Heading 2"}),
37
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>m(q.h3),children:"Heading 3"}),
38
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>m(q.blockquote),children:"Blockquote"})]})]})]}),
39
- /* @__PURE__ */jl.jsxs(Il,{children:[
40
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>s.getTransforms(ot).blockSelection.setIndent(1),children:"Indent"}),
41
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>s.getTransforms(ot).blockSelection.setIndent(-1),children:"Outdent"}),
42
- /* @__PURE__ */jl.jsxs(Tl,{children:[
43
- /* @__PURE__ */jl.jsx(Dl,{children:"Align"}),
44
- /* @__PURE__ */jl.jsxs(Ol,{className:"w-48",children:[
45
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>h("left"),children:"Left"}),
46
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>h("center"),children:"Center"}),
47
- /* @__PURE__ */jl.jsx(Ml,{onClick:()=>h("right"),children:"Right"})]})]})]})]})]})}}})],Hl=[u.configure({options:{className:"before:absolute before:cursor-text before:text-muted-foreground/80 before:content-[attr(placeholder)]",placeholders:{[q.p]:"Type something..."},query:({path:e})=>1===e.length}})],Vl=tt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ul({className:e,variant:t="default",size:r="default",asChild:s=!1,...n}){const o=s?ds:"button";/* @__PURE__ */
48
- return jl.jsx(o,{"data-slot":"button","data-variant":t,"data-size":r,className:zl(Vl({variant:t,size:r,className:e})),...n})}function ql({delayDuration:e=0,...t}){/* @__PURE__ */
49
- return jl.jsx(ps.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function $l({...e}){/* @__PURE__ */
50
- return jl.jsx(ql,{children:/* @__PURE__ */jl.jsx(ps.Root,{"data-slot":"tooltip",...e})})}function Wl({...e}){/* @__PURE__ */
51
- return jl.jsx(ps.Trigger,{"data-slot":"tooltip-trigger",...e})}function Zl({className:e,sideOffset:t=0,children:r,...s}){/* @__PURE__ */
52
- return jl.jsx(ps.Portal,{children:/* @__PURE__ */jl.jsxs(ps.Content,{"data-slot":"tooltip-content",sideOffset:t,className:zl("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[r,
53
- /* @__PURE__ */jl.jsx(ps.Arrow,{className:"bg-foreground fill-foreground z-1500 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function Kl({...e}){/* @__PURE__ */
54
- return jl.jsx(fs.Root,{"data-slot":"dropdown-menu",...e})}function Yl({...e}){/* @__PURE__ */
55
- return jl.jsx(fs.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Gl({...e}){/* @__PURE__ */
56
- return jl.jsx(fs.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Ql({className:e,sideOffset:t=4,...r}){/* @__PURE__ */
57
- return jl.jsx(fs.Portal,{children:/* @__PURE__ */jl.jsx(fs.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:zl("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function Jl({...e}){/* @__PURE__ */
58
- return jl.jsx(fs.Group,{"data-slot":"dropdown-menu-group",...e})}function Xl({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
59
- return jl.jsx(fs.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:zl("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}function ei({className:e,children:t,checked:r,...s}){/* @__PURE__ */
60
- return jl.jsxs(fs.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:zl("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...s,children:[
61
- /* @__PURE__ */jl.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */jl.jsx(fs.ItemIndicator,{children:/* @__PURE__ */jl.jsx(pt,{className:"size-4"})})}),t]})}function ti({...e}){/* @__PURE__ */
62
- return jl.jsx(fs.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function ri({className:e,children:t,...r}){/* @__PURE__ */
63
- return jl.jsxs(fs.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:zl("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[
64
- /* @__PURE__ */jl.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */jl.jsx(fs.ItemIndicator,{children:/* @__PURE__ */jl.jsx(ht,{className:"size-2 fill-current"})})}),t]})}function si({className:e,inset:t,...r}){/* @__PURE__ */
65
- return jl.jsx(fs.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:zl("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function ni({className:e,...t}){/* @__PURE__ */
66
- return jl.jsx(fs.Separator,{"data-slot":"dropdown-menu-separator",className:zl("bg-border -mx-1 my-1 h-px",e),...t})}function oi({...e}){/* @__PURE__ */
67
- return jl.jsx(fs.Sub,{"data-slot":"dropdown-menu-sub",...e})}function ai({className:e,inset:t,children:r,...s}){/* @__PURE__ */
68
- return jl.jsxs(fs.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:zl("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,
69
- /* @__PURE__ */jl.jsx(mt,{className:"ml-auto size-4"})]})}function li({className:e,...t}){/* @__PURE__ */
70
- return jl.jsx(fs.SubContent,{"data-slot":"dropdown-menu-sub-content",className:zl("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function ii({className:e,orientation:t="horizontal",decorative:r=!0,...s}){/* @__PURE__ */
71
- return jl.jsx(bs.Root,{"data-slot":"separator",decorative:r,orientation:t,className:zl("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}function ci({className:e,...t}){/* @__PURE__ */
72
- return jl.jsx(xs.Root,{className:zl("relative flex select-none items-center",e),...t})}function di({className:e,...t}){/* @__PURE__ */
73
- return jl.jsx(xs.ToolbarToggleGroup,{className:zl("flex items-center",e),...t})}const ui=tt("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-checked:bg-accent aria-checked:text-accent-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"h-9 min-w-9 px-2",lg:"h-10 min-w-10 px-2.5",sm:"h-8 min-w-8 px-1.5"},variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"}}}),mi=tt(zl("inline-flex items-center justify-center rounded-r-md font-medium text-foreground text-sm transition-colors disabled:pointer-events-none disabled:opacity-50"),{defaultVariants:{size:"sm",variant:"default"},variants:{size:{default:"h-9 w-6",lg:"h-10 w-8",sm:"h-8 w-4"},variant:{default:"bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground",outline:"border border-input border-l-0 bg-transparent hover:bg-accent hover:text-accent-foreground"}}}),hi=(pi=function({children:e,className:t,isDropdown:r,pressed:s,size:n="sm",variant:o,...a}){return"boolean"==typeof s?/* @__PURE__ */jl.jsx(di,{disabled:a.disabled,value:"single",type:"single",children:/* @__PURE__ */jl.jsx(bi,{className:zl(ui({size:n,variant:o}),r&&"justify-between gap-1 pr-1",t),value:s?"single":"",...a,children:r?/* @__PURE__ */jl.jsxs(jl.Fragment,{children:[
74
- /* @__PURE__ */jl.jsx("div",{className:"flex flex-1 items-center gap-2 whitespace-nowrap",children:e}),
75
- /* @__PURE__ */jl.jsx("div",{children:/* @__PURE__ */jl.jsx(xt,{className:"size-3.5 text-muted-foreground","data-icon":!0})})]}):e})}):/* @__PURE__ */jl.jsx(xs.Button,{className:zl(ui({size:n,variant:o}),r&&"pr-1",t),...a,children:e})},function({tooltip:t,tooltipContentProps:r,tooltipProps:s,tooltipTriggerProps:n,...o}){const[a,l]=e.useState(!1);e.useEffect(()=>{l(!0)},[]);const i=/* @__PURE__ */jl.jsx(pi,{...o});return t&&a?/* @__PURE__ */jl.jsxs($l,{...s,children:[
76
- /* @__PURE__ */jl.jsx(Wl,{asChild:!0,...n,children:i}),
77
- /* @__PURE__ */jl.jsx(vi,{...r,children:t})]}):i});var pi;function xi({className:e,...t}){/* @__PURE__ */
78
- return jl.jsx(hi,{className:zl("group flex gap-0 px-0 hover:bg-transparent",e),...t})}function fi({children:e,className:t,size:r="sm",variant:s,...n}){/* @__PURE__ */
79
- return jl.jsx("span",{className:zl(ui({size:r,variant:s}),"rounded-r-none","group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",t),...n,children:e})}function gi({className:e,size:t,variant:r,...s}){/* @__PURE__ */
80
- return jl.jsx("span",{className:zl(mi({size:t,variant:r}),"group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",e),onClick:e=>e.stopPropagation(),role:"button",...s,children:/* @__PURE__ */jl.jsx(xt,{className:"size-3.5 text-muted-foreground","data-icon":!0})})}function bi({className:e,size:t="sm",variant:r,...s}){/* @__PURE__ */
81
- return jl.jsx(xs.ToggleItem,{className:zl(ui({size:t,variant:r}),e),...s})}function ji({children:e,className:t}){/* @__PURE__ */
82
- return jl.jsxs("div",{className:zl("group/toolbar-group","relative hidden has-[button]:flex",t),children:[
83
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center",children:e}),
84
- /* @__PURE__ */jl.jsx("div",{className:"group-last/toolbar-group:hidden! mx-1.5 py-0.5",children:/* @__PURE__ */jl.jsx(ii,{orientation:"vertical"})})]})}function vi({children:e,className:t,sideOffset:r=4,...s}){/* @__PURE__ */
85
- return jl.jsx(ps.Portal,{children:/* @__PURE__ */jl.jsx(ps.Content,{className:zl("z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs",t),"data-slot":"tooltip-content",sideOffset:r,...s,children:e})})}function yi({children:e,className:t,label:r,...s}){/* @__PURE__ */
86
- return jl.jsxs(jl.Fragment,{children:[
87
- /* @__PURE__ */jl.jsx(ni,{className:zl("hidden","mb-0 shrink-0 peer-has-[[role=menuitem]]/menu-group:block peer-has-[[role=menuitemradio]]/menu-group:block peer-has-[[role=option]]/menu-group:block")}),
88
- /* @__PURE__ */jl.jsxs(ti,{...s,className:zl("hidden","peer/menu-group group/menu-group my-1.5 has-[[role=menuitem]]:block has-[[role=menuitemradio]]:block has-[[role=option]]:block",t),children:[r&&/* @__PURE__ */jl.jsx(si,{className:"select-none font-semibold text-muted-foreground text-xs",children:r}),e]})]})}function wi({children:e,control:t,isOpen:r,setIsOpen:s}){/* @__PURE__ */
89
- return jl.jsxs(ms.Root,{open:r,onOpenChange:s,children:[
90
- /* @__PURE__ */jl.jsx(ms.Trigger,{asChild:!0,children:t}),
91
- /* @__PURE__ */jl.jsx(ms.Portal,{children:/* @__PURE__ */jl.jsx(ms.Content,{className:"z-100",children:e})})]})}function ki({clearSearch:e,emoji:t,emojiLibrary:r,focusedCategory:s,hasFound:n,i18n:o,icons:a={categories:Di,search:Oi},isSearching:l,refs:i,searchResult:c,searchValue:d,setSearch:u,settings:m=us,visibleCategories:h,handleCategoryClick:p,onMouseOver:x,onSelectEmoji:f}){/* @__PURE__ */
92
- return jl.jsxs("div",{className:zl("flex flex-col rounded-xl bg-popover text-popover-foreground","h-[23rem] w-80 border shadow-md"),children:[
93
- /* @__PURE__ */jl.jsx(Ti,{onClick:p,emojiLibrary:r,focusedCategory:s,i18n:o,icons:a}),
94
- /* @__PURE__ */jl.jsx(zi,{i18n:o,searchValue:d,setSearch:u,children:/* @__PURE__ */jl.jsx(Si,{clearSearch:e,i18n:o,searchValue:d})}),
95
- /* @__PURE__ */jl.jsx(_i,{onMouseOver:x,onSelectEmoji:f,emojiLibrary:r,i18n:o,isSearching:l,refs:i,searchResult:c,settings:m,visibleCategories:h}),
96
- /* @__PURE__ */jl.jsx(Ii,{emoji:t,hasFound:n,i18n:o,isSearching:l})]})}const Ni=e.memo(function({emoji:e,index:t,onMouseOver:r,onSelect:s}){/* @__PURE__ */
97
- return jl.jsxs("button",{className:"group relative flex size-9 cursor-pointer items-center justify-center border-none bg-transparent text-2xl leading-none",onClick:()=>s(e),onMouseEnter:()=>r(e),onMouseLeave:()=>r(),"aria-label":e.skins[0].native,"data-index":t,tabIndex:-1,type:"button",children:[
98
- /* @__PURE__ */jl.jsx("div",{className:"absolute inset-0 rounded-full opacity-0 group-hover:opacity-100","aria-hidden":"true"}),
99
- /* @__PURE__ */jl.jsx("span",{className:"relative",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},"data-emoji-set":"native",children:e.skins[0].native})]})}),Ci=e.memo(function({emojiLibrary:e,row:t,onMouseOver:r,onSelectEmoji:s}){/* @__PURE__ */
100
- return jl.jsx("div",{className:"flex","data-index":t.id,children:t.elements.map((t,n)=>/* @__PURE__ */jl.jsx(Ni,{onMouseOver:r,onSelect:s,emoji:e.getEmoji(t),index:n},t))},t.id)});function _i({emojiLibrary:t,i18n:r,isSearching:s=!1,refs:n,searchResult:o,settings:a=us,visibleCategories:l,onMouseOver:i,onSelectEmoji:c}){const d=a.perLine.value*a.buttonSize.value,u=e.useCallback(e=>!!l.has(e)&&l.get(e),[l]),m=e.useCallback(()=>t.getGrid().sections().map(({id:e})=>{const s=t.getGrid().section(e),{buttonSize:n}=a;/* @__PURE__ */
101
- return jl.jsxs("div",{ref:s.root,style:{width:d},"data-id":e,children:[
102
- /* @__PURE__ */jl.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-sm backdrop-blur-xs",children:r.categories[e]}),
103
- /* @__PURE__ */jl.jsx("div",{className:"relative flex flex-wrap",style:{height:s.getRows().length*n.value},children:u(e)&&s.getRows().map(e=>/* @__PURE__ */jl.jsx(Ci,{onMouseOver:i,onSelectEmoji:c,emojiLibrary:t,row:e},e.id))})]},e)}),[t,d,r.categories,u,c,i,a]),h=e.useCallback(()=>/* @__PURE__ */jl.jsxs("div",{style:{width:d},"data-id":"search",children:[
104
- /* @__PURE__ */jl.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-card-foreground text-sm backdrop-blur-xs",children:r.searchResult}),
105
- /* @__PURE__ */jl.jsx("div",{className:"relative flex flex-wrap",children:o.map((e,r)=>/* @__PURE__ */jl.jsx(Ni,{onMouseOver:i,onSelect:c,emoji:t.getEmoji(e.id),index:r},e.id))})]}),[t,d,r.searchResult,o,c,i]);/* @__PURE__ */
106
- return jl.jsx("div",{ref:n.current.contentRoot,className:zl("h-full min-h-[50%] overflow-y-auto overflow-x-hidden px-2","[&::-webkit-scrollbar]:w-4","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:size-0","[&::-webkit-scrollbar-thumb]:min-h-11 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted [&::-webkit-scrollbar-thumb]:hover:bg-muted-foreground/25","[&::-webkit-scrollbar-thumb]:border-4 [&::-webkit-scrollbar-thumb]:border-popover [&::-webkit-scrollbar-thumb]:border-solid [&::-webkit-scrollbar-thumb]:bg-clip-padding"),"data-id":"scroll",children:/* @__PURE__ */jl.jsx("div",{ref:n.current.content,className:"h-full",children:s?h():m()})})}function zi({children:e,i18n:t,searchValue:r,setSearch:s}){/* @__PURE__ */
107
- return jl.jsx("div",{className:"flex items-center px-2",children:/* @__PURE__ */jl.jsxs("div",{className:"relative flex grow items-center",children:[
108
- /* @__PURE__ */jl.jsx("input",{className:"block w-full appearance-none rounded-full border-0 bg-muted px-10 py-2 text-sm outline-none placeholder:text-muted-foreground focus-visible:outline-none",value:r,onChange:e=>s(e.target.value),placeholder:t.search,"aria-label":"Search",autoComplete:"off",type:"text",autoFocus:!0}),e]})})}function Si({clearSearch:e,i18n:t,searchValue:r}){/* @__PURE__ */
109
- return jl.jsxs("div",{className:"flex items-center text-foreground",children:[
110
- /* @__PURE__ */jl.jsx("div",{className:zl("-translate-y-1/2 absolute top-1/2 left-2.5 z-10 flex size-5 items-center justify-center text-foreground"),children:Oi.loupe}),r&&/* @__PURE__ */jl.jsx(Ul,{size:"icon",variant:"ghost",className:zl("-translate-y-1/2 absolute top-1/2 right-0.5 flex size-8 cursor-pointer items-center justify-center rounded-full border-none bg-transparent text-popover-foreground hover:bg-transparent"),onClick:e,title:t.clear,"aria-label":"Clear",type:"button",children:Oi.delete})]})}function Ei({emoji:e}){/* @__PURE__ */
111
- return jl.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
112
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center justify-center text-2xl",children:e?.skins[0].native}),
113
- /* @__PURE__ */jl.jsxs("div",{className:"overflow-hidden pl-2",children:[
114
- /* @__PURE__ */jl.jsx("div",{className:"truncate font-semibold text-sm",children:e?.name}),
115
- /* @__PURE__ */jl.jsx("div",{className:"truncate text-sm",children:`:${e?.id}:`})]})]})}function Bi({i18n:e}){/* @__PURE__ */
116
- return jl.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
117
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center justify-center text-2xl",children:"😢"}),
118
- /* @__PURE__ */jl.jsxs("div",{className:"overflow-hidden pl-2",children:[
119
- /* @__PURE__ */jl.jsx("div",{className:"truncate font-bold text-sm",children:e.searchNoResultsTitle}),
120
- /* @__PURE__ */jl.jsx("div",{className:"truncate text-sm",children:e.searchNoResultsSubtitle})]})]})}function Ai({i18n:e}){/* @__PURE__ */
121
- return jl.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
122
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center justify-center text-2xl",children:"☝️"}),
123
- /* @__PURE__ */jl.jsx("div",{className:"overflow-hidden pl-2",children:/* @__PURE__ */jl.jsx("div",{className:"truncate font-semibold text-sm",children:e.pick})})]})}function Ii({emoji:e,hasFound:t=!0,i18n:r,isSearching:s=!1,...n}){const o=!e&&(!s||t),a=s&&!t,l=e&&!a&&!a;/* @__PURE__ */
124
- return jl.jsxs(jl.Fragment,{children:[l&&/* @__PURE__ */jl.jsx(Ei,{emoji:e,...n}),o&&/* @__PURE__ */jl.jsx(Ai,{i18n:r,...n}),a&&/* @__PURE__ */jl.jsx(Bi,{i18n:r,...n})]})}function Ti({emojiLibrary:e,focusedCategory:t,i18n:r,icons:s,onClick:n}){/* @__PURE__ */
125
- return jl.jsx(ql,{delayDuration:500,children:/* @__PURE__ */jl.jsx("nav",{id:"emoji-nav",className:"mb-2.5 border-0 border-b border-b-border border-solid p-1.5",children:/* @__PURE__ */jl.jsx("div",{className:"relative flex items-center justify-evenly",children:e.getGrid().sections().map(({id:e})=>/* @__PURE__ */jl.jsxs($l,{children:[
126
- /* @__PURE__ */jl.jsx(Wl,{asChild:!0,children:/* @__PURE__ */jl.jsx(Ul,{size:"sm",variant:"ghost",className:zl("h-fit rounded-full fill-current p-1.5 text-muted-foreground hover:bg-muted hover:text-muted-foreground",e===t&&"pointer-events-none bg-accent fill-current text-accent-foreground"),onClick:()=>{n(e)},"aria-label":r.categories[e],type:"button",children:/* @__PURE__ */jl.jsx("span",{className:"inline-flex size-5 items-center justify-center",children:s.categories[e].outline})})}),
127
- /* @__PURE__ */jl.jsx(Zl,{side:"bottom",children:r.categories[e]})]},e))})})})}const Di={activity:{outline:/* @__PURE__ */jl.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
128
- /* @__PURE__ */jl.jsx("circle",{cx:"12",cy:"12",r:"10"}),
129
- /* @__PURE__ */jl.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
130
- /* @__PURE__ */jl.jsx("path",{d:"m5 4.9 14 14.2"}),
131
- /* @__PURE__ */jl.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]}),solid:/* @__PURE__ */jl.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
132
- /* @__PURE__ */jl.jsx("circle",{cx:"12",cy:"12",r:"10"}),
133
- /* @__PURE__ */jl.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
134
- /* @__PURE__ */jl.jsx("path",{d:"m5 4.9 14 14.2"}),
135
- /* @__PURE__ */jl.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]})},custom:{outline:/* @__PURE__ */jl.jsx(_t,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(_t,{className:"size-full"})},flags:{outline:/* @__PURE__ */jl.jsx(Ct,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(Ct,{className:"size-full"})},foods:{outline:/* @__PURE__ */jl.jsx(Nt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(Nt,{className:"size-full"})},frequent:{outline:/* @__PURE__ */jl.jsx(kt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(kt,{className:"size-full"})},nature:{outline:/* @__PURE__ */jl.jsx(wt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(wt,{className:"size-full"})},objects:{outline:/* @__PURE__ */jl.jsx(yt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(yt,{className:"size-full"})},people:{outline:/* @__PURE__ */jl.jsx(vt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(vt,{className:"size-full"})},places:{outline:/* @__PURE__ */jl.jsx(jt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(jt,{className:"size-full"})},symbols:{outline:/* @__PURE__ */jl.jsx(bt,{className:"size-full"}),solid:/* @__PURE__ */jl.jsx(bt,{className:"size-full"})}},Oi={delete:/* @__PURE__ */jl.jsx(gt,{className:"size-4 text-current"}),loupe:/* @__PURE__ */jl.jsx(ft,{className:"size-4 text-current"})};const Ri=[is.withComponent(function({attributes:e,children:t,className:s,...n}){const{emojiPickerState:o,isOpen:a,setIsOpen:l}=cs({closeOnSelect:!0}),{emojiToolbarDropdownProps:i,props:c}=ls({isOpen:a,setIsOpen:l});/* @__PURE__ */
136
- return jl.jsx(r,{className:zl("my-1 flex rounded-sm bg-muted p-4 pl-3",s),style:{backgroundColor:n.element.backgroundColor},attributes:{...e,"data-plate-open-context-menu":!0},...n,children:/* @__PURE__ */jl.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
137
- /* @__PURE__ */jl.jsx(wi,{...i,control:/* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-6 select-none p-1 text-[18px] hover:bg-muted-foreground/15",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},contentEditable:!1,children:n.element.icon||"💡"}),children:/* @__PURE__ */jl.jsx(ki,{...o,...c})}),
138
- /* @__PURE__ */jl.jsx("div",{className:"w-full",children:t})]})})})];function Mi({className:e,...t}){/* @__PURE__ */
139
- return jl.jsx(Ns,{"data-slot":"command",className:zl("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Fi({className:e,...t}){/* @__PURE__ */
140
- return jl.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[
141
- /* @__PURE__ */jl.jsx(ft,{className:"size-4 shrink-0 opacity-50"}),
142
- /* @__PURE__ */jl.jsx(Ns.Input,{"data-slot":"command-input",className:zl("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Li({className:e,...t}){/* @__PURE__ */
143
- return jl.jsx(Ns.List,{"data-slot":"command-list",className:zl("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Pi({...e}){/* @__PURE__ */
144
- return jl.jsx(Ns.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Hi({className:e,...t}){/* @__PURE__ */
145
- return jl.jsx(Ns.Group,{"data-slot":"command-group",className:zl("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Vi({className:e,...t}){/* @__PURE__ */
146
- return jl.jsx(Ns.Item,{"data-slot":"command-item",className:zl("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Ui({...e}){/* @__PURE__ */
147
- return jl.jsx(ms.Root,{"data-slot":"popover",...e})}function qi({...e}){/* @__PURE__ */
148
- return jl.jsx(ms.Trigger,{"data-slot":"popover-trigger",...e})}function $i({className:e,align:t="center",sideOffset:r=4,...s}){/* @__PURE__ */
149
- return jl.jsx(ms.Portal,{children:/* @__PURE__ */jl.jsx(ms.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:zl("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...s})})}function Wi({...e}){/* @__PURE__ */
150
- return jl.jsx(ms.Anchor,{"data-slot":"popover-anchor",...e})}function Zi(){const[t,r]=e.useState(!1),n=s(),o=m(),a=h(),l=a.lang||"plaintext",[i,c]=e.useState(""),d=e.useMemo(()=>Yi.filter(e=>!i||e.label.toLowerCase().includes(i.toLowerCase())),[i]);return n?null:/* @__PURE__ */jl.jsxs(Ui,{open:t,onOpenChange:r,children:[
151
- /* @__PURE__ */jl.jsx(qi,{asChild:!0,children:/* @__PURE__ */jl.jsx(Ul,{size:"sm",variant:"ghost",className:"h-6 select-none justify-between gap-1 px-2 text-muted-foreground text-xs","aria-expanded":t,role:"combobox",children:Yi.find(e=>e.value===l)?.label??"Plain Text"})}),
152
- /* @__PURE__ */jl.jsx($i,{className:"w-[200px] p-0",onCloseAutoFocus:()=>c(""),children:/* @__PURE__ */jl.jsxs(Mi,{shouldFilter:!1,children:[
153
- /* @__PURE__ */jl.jsx(Fi,{className:"h-9",value:i,onValueChange:e=>c(e),placeholder:"Search language..."}),
154
- /* @__PURE__ */jl.jsx(Pi,{children:"No language found."}),
155
- /* @__PURE__ */jl.jsx(Li,{className:"h-[344px] overflow-y-auto",children:/* @__PURE__ */jl.jsx(Hi,{children:d.map(e=>/* @__PURE__ */jl.jsxs(Vi,{className:"cursor-pointer",value:e.value,onSelect:e=>{o.tf.setNodes({lang:e},{at:a}),c(e),r(!1)},children:[
156
- /* @__PURE__ */jl.jsx(St,{className:zl(l===e.value?"opacity-100":"opacity-0")}),e.label]},e.label))})})]})})]})}function Ki({value:t,...r}){const[s,n]=e.useState(!1);return e.useEffect(()=>{setTimeout(()=>{n(!1)},2e3)},[s]),/* @__PURE__ */jl.jsxs(Ul,{onClick:()=>{navigator.clipboard.writeText("function"==typeof t?t():t),n(!0)},...r,children:[
157
- /* @__PURE__ */jl.jsx("span",{className:"sr-only",children:"Copy"}),s?/* @__PURE__ */jl.jsx(pt,{className:"!size-3"}):/* @__PURE__ */jl.jsx(Et,{className:"!size-3"})]})}const Yi=[{label:"Auto",value:"auto"},{label:"Plain Text",value:"plaintext"},{label:"ABAP",value:"abap"},{label:"Agda",value:"agda"},{label:"Arduino",value:"arduino"},{label:"ASCII Art",value:"ascii"},{label:"Assembly",value:"x86asm"},{label:"Bash",value:"bash"},{label:"BASIC",value:"basic"},{label:"BNF",value:"bnf"},{label:"C",value:"c"},{label:"C#",value:"csharp"},{label:"C++",value:"cpp"},{label:"Clojure",value:"clojure"},{label:"CoffeeScript",value:"coffeescript"},{label:"Coq",value:"coq"},{label:"CSS",value:"css"},{label:"Dart",value:"dart"},{label:"Dhall",value:"dhall"},{label:"Diff",value:"diff"},{label:"Docker",value:"dockerfile"},{label:"EBNF",value:"ebnf"},{label:"Elixir",value:"elixir"},{label:"Elm",value:"elm"},{label:"Erlang",value:"erlang"},{label:"F#",value:"fsharp"},{label:"Flow",value:"flow"},{label:"Fortran",value:"fortran"},{label:"Gherkin",value:"gherkin"},{label:"GLSL",value:"glsl"},{label:"Go",value:"go"},{label:"GraphQL",value:"graphql"},{label:"Groovy",value:"groovy"},{label:"Haskell",value:"haskell"},{label:"HCL",value:"hcl"},{label:"HTML",value:"html"},{label:"Idris",value:"idris"},{label:"Java",value:"java"},{label:"JavaScript",value:"javascript"},{label:"JSON",value:"json"},{label:"Julia",value:"julia"},{label:"Kotlin",value:"kotlin"},{label:"LaTeX",value:"latex"},{label:"Less",value:"less"},{label:"Lisp",value:"lisp"},{label:"LiveScript",value:"livescript"},{label:"LLVM IR",value:"llvm"},{label:"Lua",value:"lua"},{label:"Makefile",value:"makefile"},{label:"Markdown",value:"markdown"},{label:"Markup",value:"markup"},{label:"MATLAB",value:"matlab"},{label:"Mathematica",value:"mathematica"},{label:"Mermaid",value:"mermaid"},{label:"Nix",value:"nix"},{label:"Notion Formula",value:"notion"},{label:"Objective-C",value:"objectivec"},{label:"OCaml",value:"ocaml"},{label:"Pascal",value:"pascal"},{label:"Perl",value:"perl"},{label:"PHP",value:"php"},{label:"PowerShell",value:"powershell"},{label:"Prolog",value:"prolog"},{label:"Protocol Buffers",value:"protobuf"},{label:"PureScript",value:"purescript"},{label:"Python",value:"python"},{label:"R",value:"r"},{label:"Racket",value:"racket"},{label:"Reason",value:"reasonml"},{label:"Ruby",value:"ruby"},{label:"Rust",value:"rust"},{label:"Sass",value:"scss"},{label:"Scala",value:"scala"},{label:"Scheme",value:"scheme"},{label:"SCSS",value:"scss"},{label:"Shell",value:"shell"},{label:"Smalltalk",value:"smalltalk"},{label:"Solidity",value:"solidity"},{label:"SQL",value:"sql"},{label:"Swift",value:"swift"},{label:"TOML",value:"toml"},{label:"TypeScript",value:"typescript"},{label:"VB.Net",value:"vbnet"},{label:"Verilog",value:"verilog"},{label:"VHDL",value:"vhdl"},{label:"Visual Basic",value:"vbnet"},{label:"WebAssembly",value:"wasm"},{label:"XML",value:"xml"},{label:"YAML",value:"yaml"}],Gi=ws(ks),Qi=[js.configure({node:{component:function(e){const{editor:t,element:s}=e;/* @__PURE__ */
158
- return jl.jsx(r,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */jl.jsxs("div",{className:"relative rounded-md bg-muted/50",children:[
159
- /* @__PURE__ */jl.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */jl.jsx("code",{children:e.children})}),
160
- /* @__PURE__ */jl.jsxs("div",{className:"absolute top-1 right-1 z-10 flex select-none gap-0.5",contentEditable:!1,children:[Ce(s.lang)&&/* @__PURE__ */jl.jsx(Ul,{size:"icon",variant:"ghost",className:"size-6 text-xs",onClick:()=>_e(t,{element:s}),title:"Format code",children:/* @__PURE__ */jl.jsx(zt,{className:"!size-3.5 text-muted-foreground"})}),
161
- /* @__PURE__ */jl.jsx(Zi,{}),
162
- /* @__PURE__ */jl.jsx(Ki,{size:"icon",variant:"ghost",className:"size-6 gap-1 text-muted-foreground text-xs",value:()=>Z.string(s)})]})]})})}},options:{lowlight:Gi},shortcuts:{toggle:{keys:"mod+alt+8"}}}),vs.withComponent(function(e){/* @__PURE__ */
163
- return jl.jsx(r,{...e})}),ys.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
164
- return jl.jsx(l,{className:t,...e})})],Ji=p(Is,function(e){const{width:t}=e.element,n=s(),o=d(ot,"isSelectionAreaVisible"),{isDragging:a,previewRef:l,handleRef:i}=os({element:e.element,orientation:"horizontal",type:"column",canDropNode:({dragEntry:e,dropEntry:t})=>K.equals(K.parent(e[1]),K.parent(t[1]))});/* @__PURE__ */
165
- return jl.jsxs("div",{className:"group/column relative",style:{width:t??"100%"},children:[!n&&!o&&/* @__PURE__ */jl.jsx("div",{ref:i,className:zl("-translate-x-1/2 -translate-y-1/2 absolute top-2 left-1/2 z-50","pointer-events-auto flex items-center","opacity-0 transition-opacity group-hover/column:opacity-100"),children:/* @__PURE__ */jl.jsx(Xi,{})}),
166
- /* @__PURE__ */jl.jsx(r,{...e,ref:Ms(e.ref,l),className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",children:/* @__PURE__ */jl.jsxs("div",{className:zl("relative h-full border border-transparent p-1.5",!n&&"rounded-lg border-border border-dashed",a&&"opacity-50"),children:[e.children,!n&&!o&&/* @__PURE__ */jl.jsx(ec,{})]})})]})}),Xi=e.memo(function(){/* @__PURE__ */
167
- return jl.jsx(ql,{children:/* @__PURE__ */jl.jsxs($l,{children:[
168
- /* @__PURE__ */jl.jsx(Wl,{asChild:!0,children:/* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"!px-1 h-5",children:/* @__PURE__ */jl.jsx(Bt,{className:"text-muted-foreground",onClick:e=>{e.stopPropagation(),e.preventDefault()}})})}),
169
- /* @__PURE__ */jl.jsx(Zl,{children:"Drag to move column"})]})})});function ec(){const{dropLine:e}=as({orientation:"horizontal"});return e?/* @__PURE__ */jl.jsx("div",{className:zl("slate-dropLine","absolute bg-brand/50","left"===e&&"group-first/column:-left-1 inset-y-0 left-[-10.5px] w-1","right"===e&&"group-last/column:-right-1 inset-y-0 right-[-11px] w-1")}):null}function tc({children:e}){const t=m(),r=s(),o=h(),{props:a}=x({element:o}),l=n(),i=f(e=>e.api.isCollapsed(),[]),c=g()&&!r&&l&&i,d=e=>{zs(t,{at:o,widths:e})};/* @__PURE__ */
170
- return jl.jsxs(Ui,{open:c,modal:!1,children:[
171
- /* @__PURE__ */jl.jsx(Wi,{children:e}),
172
- /* @__PURE__ */jl.jsx($i,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"top",sideOffset:10,children:/* @__PURE__ */jl.jsxs("div",{className:"box-content flex h-8 items-center",children:[
173
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-8",onClick:()=>d(["50%","50%"]),children:/* @__PURE__ */jl.jsx(rc,{})}),
174
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-8",onClick:()=>d(["33%","33%","33%"]),children:/* @__PURE__ */jl.jsx(sc,{})}),
175
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-8",onClick:()=>d(["70%","30%"]),children:/* @__PURE__ */jl.jsx(nc,{})}),
176
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-8",onClick:()=>d(["30%","70%"]),children:/* @__PURE__ */jl.jsx(oc,{})}),
177
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-8",onClick:()=>d(["25%","50%","25%"]),children:/* @__PURE__ */jl.jsx(ac,{})}),
178
- /* @__PURE__ */jl.jsx(ii,{orientation:"vertical",className:"mx-1 h-6"}),
179
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-8",...a,children:/* @__PURE__ */jl.jsx(At,{})})]})})]})}const rc=e=>/* @__PURE__ */jl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M8.5 3H13V13H8.5V3ZM7.5 2H8.5H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H8.5H7.5H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H7.5ZM7.5 13H3L3 3H7.5V13Z",fill:"currentColor",fillRule:"evenodd"})}),sc=e=>/* @__PURE__ */jl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M9.25 3H6.75V13H9.25V3ZM9.25 2H6.75H5.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H5.75H6.75H9.25H10.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H10.25H9.25ZM10.25 3V13H13V3H10.25ZM3 13H5.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),nc=e=>/* @__PURE__ */jl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M11.25 3H13V13H11.25V3ZM10.25 2H11.25H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H11.25H10.25H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H10.25ZM10.25 13H3L3 3H10.25V13Z",fill:"currentColor",fillRule:"evenodd"})}),oc=e=>/* @__PURE__ */jl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M5.75 3H13V13H5.75V3ZM4.75 2H5.75H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.75H4.75H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H4.75ZM4.75 13H3L3 3H4.75V13Z",fill:"currentColor",fillRule:"evenodd"})}),ac=e=>/* @__PURE__ */jl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M10.25 3H5.75V13H10.25V3ZM10.25 2H5.75H4.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H4.75H5.75H10.25H11.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H11.25H10.25ZM11.25 3V13H13V3H11.25ZM3 13H4.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),lc=[Cs.withComponent(function(e){/* @__PURE__ */
180
- return jl.jsx(r,{className:"mb-2",...e,children:/* @__PURE__ */jl.jsx(tc,{children:/* @__PURE__ */jl.jsx("div",{className:"flex size-full rounded",children:e.children})})})}),_s.withComponent(Ji)];const ic=b(Ps,{handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a=()=>{r("activeId",null),o=!0};for(Y(n)||a();n.parentElement;){if(n.classList.contains(`slate-${s}`)){const t=e.comment.node();if(!t){a();break}const s=e.comment.nodeId(t[0]);r("activeId",s??null),o=!0;break}n=n.parentElement}o||a()}},options:{activeId:null,commentingBlock:null,hoverId:null,uniquePathMap:/* @__PURE__ */new Map}}).extendTransforms(({editor:e,setOption:t,tf:{comment:{setDraft:r}}})=>({setDraft:()=>{e.api.isCollapsed()&&e.tf.select(e.api.block()[1]),r(),e.tf.collapse(),t("activeId",Hs()),t("commentingBlock",e.selection.focus.path.slice(0,1))}})).configure({node:{component:function(e){const{children:t,leaf:r}=e,{api:s,setOption:n}=i(ic),o=d(ic,"hoverId"),a=d(ic,"activeId"),c=Ls(r)>1,u=s.comment.nodeId(r),m=a===u,h=o===u;/* @__PURE__ */
181
- return jl.jsx(l,{...e,className:zl("border-b-2 border-b-highlight/[.36] bg-highlight/[.13] transition-colors duration-200",(h||m)&&"border-b-highlight bg-highlight/25",c&&"border-b-2 border-b-highlight/[.7] bg-highlight/25",(h||m)&&c&&"border-b-highlight bg-highlight/45"),attributes:{...e.attributes,onClick:()=>n("activeId",u??null),onMouseEnter:()=>n("hoverId",u??null),onMouseLeave:()=>n("hoverId",null)},children:t})}},shortcuts:{setDraft:{keys:"mod+shift+m"}}}),cc=[ic];function dc(){const{cursors:e}=it();/* @__PURE__ */
182
- return jl.jsx(jl.Fragment,{children:e.map(e=>/* @__PURE__ */jl.jsx(uc,{...e},e.id))})}function uc({id:e,caretPosition:t,data:r,selection:s,selectionRects:n}){const o=m(),a=d(dt,"streaming"),{style:l,selectionStyle:i=l}=r??{},c=G.isCollapsed(s);if(a)return null;if("selection"===e&&s){if(Us(o,{at:s,format:"cell"}).length>1)return null}/* @__PURE__ */
183
- return jl.jsxs(jl.Fragment,{children:[n.map((t,r)=>/* @__PURE__ */jl.jsx("div",{className:zl("pointer-events-none absolute z-10","selection"===e&&"bg-brand/25","selection"===e&&c&&"bg-primary"),style:{...i,...t}},r)),t&&/* @__PURE__ */jl.jsx("div",{className:zl("pointer-events-none absolute z-10 w-0.5","drag"===e&&"w-px bg-brand"),style:{...t,...l}})]})}const mc=[ct.configure({render:{afterEditable:()=>/* @__PURE__ */jl.jsx(dc,{})}})];function hc({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:s="label",buttonVariant:n="ghost",formatters:o,components:a,...l}){const i=Gs();/* @__PURE__ */
184
- return jl.jsx(Qs,{showOutsideDays:r,className:zl("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:s,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...o},classNames:{root:zl("w-fit",i.root),months:zl("flex gap-4 flex-col md:flex-row relative",i.months),month:zl("flex flex-col w-full gap-4",i.month),nav:zl("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",i.nav),button_previous:zl(Vl({variant:n}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",i.button_previous),button_next:zl(Vl({variant:n}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",i.button_next),month_caption:zl("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",i.month_caption),dropdowns:zl("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",i.dropdowns),dropdown_root:zl("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",i.dropdown_root),dropdown:zl("absolute bg-popover inset-0 opacity-0",i.dropdown),caption_label:zl("select-none font-medium","label"===s?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",i.caption_label),table:"w-full border-collapse",weekdays:zl("flex",i.weekdays),weekday:zl("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",i.weekday),week:zl("flex w-full mt-2",i.week),week_number_header:zl("select-none w-(--cell-size)",i.week_number_header),week_number:zl("text-[0.8rem] select-none text-muted-foreground",i.week_number),day:zl("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",l.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",i.day),range_start:zl("rounded-l-md bg-accent",i.range_start),range_middle:zl("rounded-none",i.range_middle),range_end:zl("rounded-r-md bg-accent",i.range_end),today:zl("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",i.today),outside:zl("text-muted-foreground aria-selected:text-muted-foreground",i.outside),disabled:zl("text-muted-foreground opacity-50",i.disabled),hidden:zl("invisible",i.hidden),...t},components:{Root:({className:e,rootRef:t,...r})=>/* @__PURE__ */jl.jsx("div",{"data-slot":"calendar",ref:t,className:zl(e),...r}),Chevron:({className:e,orientation:t,...r})=>"left"===t?/* @__PURE__ */jl.jsx(It,{className:zl("size-4",e),...r}):"right"===t?/* @__PURE__ */jl.jsx(mt,{className:zl("size-4",e),...r}):/* @__PURE__ */jl.jsx(Tt,{className:zl("size-4",e),...r}),DayButton:pc,WeekNumber:({children:e,...t})=>/* @__PURE__ */jl.jsx("td",{...t,children:/* @__PURE__ */jl.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:e})}),...a},...l})}function pc({className:t,day:r,modifiers:s,...n}){const o=Gs(),a=e.useRef(null);return e.useEffect(()=>{s.focused&&a.current?.focus()},[s.focused]),/* @__PURE__ */jl.jsx(Ul,{ref:a,variant:"ghost",size:"icon","data-day":r.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:zl("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,t),...n})}const xc=[Ys.withComponent(function(e){const{editor:t,element:n}=e,o=s(),a=/* @__PURE__ */jl.jsx("span",{className:zl("w-fit cursor-pointer rounded-sm bg-muted px-1 text-muted-foreground"),contentEditable:!1,draggable:!0,children:n.date?(()=>{const e=/* @__PURE__ */new Date,t=new Date(n.date),r=t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear(),s=new Date(e.setDate(e.getDate()-1)).toDateString()===t.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===t.toDateString();return r?"Today":s?"Yesterday":o?"Tomorrow":t.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */jl.jsx("span",{children:"Pick a date"})});return o?a:/* @__PURE__ */jl.jsxs(r,{...e,className:"inline-block",attributes:{...e.attributes,contentEditable:!1},children:[
185
- /* @__PURE__ */jl.jsxs(Ui,{children:[
186
- /* @__PURE__ */jl.jsx(qi,{asChild:!0,children:a}),
187
- /* @__PURE__ */jl.jsx($i,{className:"w-auto p-0",children:/* @__PURE__ */jl.jsx(hc,{selected:new Date(n.date),onSelect:e=>{e&&t.tf.setNodes({date:e.toDateString()},{at:n})},mode:"single",initialFocus:!0})})]}),e.children]})})],fc=[q.column,q.tr,q.td];function gc(t){const{children:r,editor:s,element:n,path:o}=t,a=s.getApi(ot).blockSelection,{isAboutToDrag:l,isDragging:i,nodeRef:c,previewRef:d,handleRef:u}=os({element:n,onDropHandler:(e,{dragItem:t})=>{const r=t.id;a&&a.add(r),f()}}),m=3===o.length,h=4===o.length,[p,x]=e.useState(0),f=()=>{d.current&&(d.current.replaceChildren(),d.current?.classList.add("hidden"))};e.useEffect(()=>{i||f()},[i]),e.useEffect(()=>{l&&d.current?.classList.remove("opacity-0")},[l]);const[g,b]=e.useState(0);/* @__PURE__ */
188
- return jl.jsxs("div",{className:zl("relative",i&&"opacity-50",J(s,n.type)?.node.isContainer?"group/container":"group"),onMouseEnter:()=>{i||b(kc(s,n))},children:[!h&&/* @__PURE__ */jl.jsx(bc,{children:/* @__PURE__ */jl.jsx("div",{className:zl("slate-blockToolbarWrapper","flex h-[1.5em]",m&&"h-4"),children:/* @__PURE__ */jl.jsx("div",{className:zl("slate-blockToolbar relative w-4.5","pointer-events-auto mr-1 flex items-center",m&&"mr-1.5"),children:/* @__PURE__ */jl.jsx(Ul,{ref:u,variant:"ghost",className:"-left-0 absolute h-6 w-full p-0",style:{top:`${g+3}px`},"data-plate-prevent-deselect":!0,children:/* @__PURE__ */jl.jsx(jc,{isDragging:i,previewRef:d,resetPreview:f,setPreviewTop:x})})})})}),
189
- /* @__PURE__ */jl.jsx("div",{ref:d,className:zl("-left-0 absolute hidden w-full"),style:{top:-p+"px"},contentEditable:!1}),
190
- /* @__PURE__ */jl.jsxs("div",{ref:c,className:"slate-blockWrapper flow-root",onContextMenu:e=>s.getApi(ot).blockSelection.addOnContextMenu({element:n,event:e}),children:[
191
- /* @__PURE__ */jl.jsx(j,{children:r}),
192
- /* @__PURE__ */jl.jsx(vc,{})]})]})}function bc({children:e,className:t,...r}){const s=m(),o=h(),a=d(ot,"isSelectionAreaVisible"),l=n();/* @__PURE__ */
193
- return jl.jsx("div",{...r,className:zl("slate-gutterLeft","-translate-x-full absolute top-0 z-50 flex h-full cursor-text hover:opacity-100 sm:opacity-0",J(s,o.type)?.node.isContainer?"group-hover/container:opacity-100":"group-hover:opacity-100",a&&"hidden",!l&&"opacity-0",t),contentEditable:!1,children:e})}const jc=e.memo(function({isDragging:e,previewRef:t,resetPreview:r,setPreviewTop:s}){const n=m(),o=h();/* @__PURE__ */
194
- return jl.jsxs($l,{children:[
195
- /* @__PURE__ */jl.jsx(Wl,{asChild:!0,children:/* @__PURE__ */jl.jsx("div",{className:"flex size-full items-center justify-center",onClick:e=>{e.preventDefault(),n.getApi(ot).blockSelection.focus()},onMouseDown:e=>{if(r(),0!==e.button&&2!==e.button||e.shiftKey)return;const s=n.getApi(ot).blockSelection.getNodes({sort:!0});let a=s.length>0?s:n.api.blocks({mode:"highest"});a.some(([e])=>e.id===o.id)||(a=[[o,n.api.findPath(o)]]);const l=Te(n,a).map(([e])=>e);0===s.length&&(n.tf.blur(),n.tf.collapse());const i=yc(n,l);t.current?.append(...i),t.current?.classList.remove("hidden"),t.current?.classList.add("opacity-0"),n.setOption(ns,"multiplePreviewRef",t),n.getApi(ot).blockSelection.set(l.map(e=>e.id))},onMouseEnter:()=>{if(e)return;const t=n.getApi(ot).blockSelection.getNodes({sort:!0});let r=t.length>0?t:n.api.blocks({mode:"highest"});r.some(([e])=>e.id===o.id)||(r=[[o,n.api.findPath(o)]]);const a=Te(n,r),l=a.map(e=>e[0].id);if(l.length>1&&l.includes(o.id)){const e=wc(n,{blocks:a.map(e=>e[0]),element:o});s(e)}else s(0)},onMouseUp:()=>{r()},"data-plate-prevent-deselect":!0,role:"button",children:/* @__PURE__ */jl.jsx(Dt,{className:"text-muted-foreground"})})}),
196
- /* @__PURE__ */jl.jsx(Zl,{children:"Drag to move"})]})}),vc=e.memo(function({className:e,...t}){const{dropLine:r}=as();return r?/* @__PURE__ */jl.jsx("div",{...t,className:zl("slate-dropLine","absolute inset-x-0 h-0.5 opacity-100 transition-opacity","bg-brand/50","top"===r&&"-top-px","bottom"===r&&"-bottom-px",e)}):null}),yc=(e,t)=>{const r=[],s=[],n=e=>{Array.from(e.attributes).forEach(t=>{(t.name.startsWith("data-slate")||t.name.startsWith("data-block-id"))&&e.removeAttribute(t.name)}),Array.from(e.children).forEach(e=>{n(e)})};return t.forEach((o,a)=>{((o,a)=>{const l=e.api.toDOMNode(o),i=l.cloneNode(!0);((e,t)=>{const r=e.scrollLeft;if(r>0){const s=document.createElement("div");s.style.overflow="hidden",s.style.width=`${e.clientWidth}px`;const n=document.createElement("div");for(n.style.transform=`translateX(-${r}px)`,n.style.width=`${e.scrollWidth}px`;t.firstChild;)n.append(t.firstChild);const o=window.getComputedStyle(e);t.style.padding="0",n.style.padding=o.padding,s.append(n),t.append(s)}})(l,i),s.push(o.id);const c=document.createElement("div");c.append(i),c.style.display="flow-root";const d=t[a-1];if(d){const t=e.api.toDOMNode(d).parentElement.getBoundingClientRect(),r=l.parentElement.getBoundingClientRect().top-t.bottom;r>15&&(c.style.marginTop=`${r}px`)}n(i),r.push(c)})(o,a)}),e.setOption(ns,"draggingId",s),r},wc=(e,{blocks:t,element:r})=>{const s=e.api.toDOMNode(r),n=e.api.toDOMNode(e),o=t[0],a=e.api.toDOMNode(o),l=Number(window.getComputedStyle(n).paddingTop.replace("px","")),i=a.getBoundingClientRect().top-n.getBoundingClientRect().top-l,c=window.getComputedStyle(a).marginTop,d=Number(c.replace("px","")),u=s.getBoundingClientRect().top-n.getBoundingClientRect().top-l,m=window.getComputedStyle(s).marginTop;return u-i+d-Number(m.replace("px",""))},kc=(e,t)=>{const r=e.api.toDOMNode(t),s=window.getComputedStyle(r).marginTop;return Number(s.replace("px",""))},Nc=[ns.configure({options:{enableScroller:!0,onDropFiles:({dragItem:e,editor:t,target:r})=>{t.getTransforms(en).insert.media(e.files,{at:r,nextBlock:!1})}},render:{aboveNodes:t=>{const{editor:r,element:s,path:n}=t;if(e.useMemo(()=>{if(r.dom.readOnly)return!1;if(1===n.length&&!Q(r,s,fc))return!0;if(3===n.length&&!Q(r,s,fc)){if(r.api.some({at:n,match:{type:r.getType(q.column)}}))return!0}if(4===n.length&&!Q(r,s,fc)){if(r.api.some({at:n,match:{type:r.getType(q.table)}}))return!0}return!1},[r,s,n]))return e=>/* @__PURE__ */jl.jsx(gc,{...e})},aboveSlate:({children:e})=>/* @__PURE__ */jl.jsx(Js,{backend:Xs,children:e})}})],Cc=[jn,vn],_c=[X.configure({shortcuts:{insert:{keys:"mod+enter"},insertBefore:{keys:"mod+shift+enter"}}})];function zc(e){/* @__PURE__ */
197
- return jl.jsx(ci,{...e,className:zl("scrollbar-hide sticky top-0 left-0 z-50 w-full justify-between overflow-x-auto rounded-t-lg border-b border-b-border bg-background/95 p-1 backdrop-blur-sm supports-backdrop-blur:bg-background/60",e.className)})}const Sc=[{icon:Ot,value:"left"},{icon:Rt,value:"center"},{icon:Mt,value:"right"},{icon:Ft,value:"justify"}];function Ec(t){const{editor:r,tf:s}=i(ue),n=v({defaultValue:"start",getProp:e=>e.align})??"left",[o,a]=e.useState(!1),l=Sc.find(e=>e.value===n)?.icon??Ot;/* @__PURE__ */
198
- return jl.jsxs(Kl,{open:o,onOpenChange:a,modal:!1,...t,children:[
199
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{pressed:o,tooltip:"Align",isDropdown:!0,children:/* @__PURE__ */jl.jsx(l,{})})}),
200
- /* @__PURE__ */jl.jsx(Ql,{className:"min-w-0",align:"start",children:/* @__PURE__ */jl.jsx(ti,{value:n,onValueChange:e=>{s.textAlign.setNodes(e),r.tf.focus()},children:Sc.map(({icon:e,value:t})=>/* @__PURE__ */jl.jsx(ri,{className:"pl-2 data-[state=checked]:bg-accent *:first:[span]:hidden",value:t,children:/* @__PURE__ */jl.jsx(e,{})},t))})})]})}var Bc,Ac,Ic,Tc,Dc,Oc,Rc,Mc,Fc,Lc,Pc,Hc,Vc,Uc,qc,$c,Wc,Zc,Kc,Yc,Gc,Qc,Jc,Xc,ed,td,rd,sd;function nd(){if(Ac)return Bc;return Ac=1,Bc=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function od(){if(Oc)return Dc;Oc=1;var e=function(){if(Tc)return Ic;Tc=1;var e="object"==typeof dl&&dl&&dl.Object===Object&&dl;return Ic=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Dc=r}function ad(){if(Hc)return Pc;Hc=1;var e=function(){if(Lc)return Fc;Lc=1;var e=/\s/;return Fc=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}}(),t=/^\s+/;return Pc=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r}}function ld(){if(Uc)return Vc;Uc=1;var e=od().Symbol;return Vc=e}function id(){if(Yc)return Kc;Yc=1;var e=ld(),t=function(){if($c)return qc;$c=1;var e=ld(),t=Object.prototype,r=t.hasOwnProperty,s=t.toString,n=e?e.toStringTag:void 0;return qc=function(e){var t=r.call(e,n),o=e[n];try{e[n]=void 0;var a=!0}catch(i){}var l=s.call(e);return a&&(t?e[n]=o:delete e[n]),l}}(),r=function(){if(Zc)return Wc;Zc=1;var e=Object.prototype.toString;return Wc=function(t){return e.call(t)}}(),s=e?e.toStringTag:void 0;return Kc=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?t(e):r(e)}}function cd(){if(Xc)return Jc;Xc=1;var e=id(),t=Qc?Gc:(Qc=1,Gc=function(e){return null!=e&&"object"==typeof e});return Jc=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}const dd=/* @__PURE__ */ul(function(){if(sd)return rd;sd=1;var e=nd(),t=function(){if(Mc)return Rc;Mc=1;var e=od();return Rc=function(){return e.Date.now()}}(),r=function(){if(td)return ed;td=1;var e=ad(),t=nd(),r=cd(),s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return ed=function(l){if("number"==typeof l)return l;if(r(l))return NaN;if(t(l)){var i="function"==typeof l.valueOf?l.valueOf():l;l=t(i)?i+"":i}if("string"!=typeof l)return 0===l?l:+l;l=e(l);var c=n.test(l);return c||o.test(l)?a(l.slice(2),c?2:8):s.test(l)?NaN:+l}}(),s=Math.max,n=Math.min;return rd=function(o,a,l){var i,c,d,u,m,h,p=0,x=!1,f=!1,g=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function b(e){var t=i,r=c;return i=c=void 0,p=e,u=o.apply(r,t)}function j(e){var t=e-h;return void 0===h||t>=a||t<0||f&&e-p>=d}function v(){var e=t();if(j(e))return y(e);m=setTimeout(v,function(e){var t=a-(e-h);return f?n(t,d-(e-p)):t}(e))}function y(e){return m=void 0,g&&i?b(e):(i=c=void 0,u)}function w(){var e=t(),r=j(e);if(i=arguments,c=this,h=e,r){if(void 0===m)return function(e){return p=e,m=setTimeout(v,a),x?b(e):u}(h);if(f)return clearTimeout(m),m=setTimeout(v,a),b(h)}return void 0===m&&(m=setTimeout(v,a)),u}return a=r(a)||0,e(l)&&(x=!!l.leading,d=(f="maxWait"in l)?s(r(l.maxWait)||0,a):d,g="trailing"in l?!!l.trailing:g),w.cancel=function(){void 0!==m&&clearTimeout(m),p=0,i=h=c=m=void 0},w.flush=function(){return void 0===m?u:y(t())},w}}());function ud({children:e,nodeType:r,tooltip:s}){const n=m(),o=f(e=>!!e.selection,[]),a=f(e=>e.api.mark(r),[r]),[l,i]=t.useState(),[c,d]=t.useState(!1),u=t.useCallback((e=!c)=>{d(e)},[c,d]),h=t.useCallback(e=>{n.selection&&(i(e),n.tf.select(n.selection),n.tf.focus(),n.tf.addMarks({[r]:e}))},[n,r]),p=t.useCallback(e=>{h(e),u()},[u,h]),x=t.useCallback(()=>{n.selection&&(n.tf.select(n.selection),n.tf.focus(),l&&n.tf.removeMarks(r),u())},[n,l,u,r]);return t.useEffect(()=>{o&&i(a)},[a,o]),/* @__PURE__ */jl.jsxs(Kl,{open:c,onOpenChange:e=>{d(e)},modal:!1,children:[
201
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{pressed:c,tooltip:s,children:e})}),
202
- /* @__PURE__ */jl.jsx(Ql,{align:"start",children:/* @__PURE__ */jl.jsx(md,{color:l||a,clearColor:x,colors:gd,customColors:bd,updateColor:p,updateCustomColor:h})})]})}const md=t.memo(function({className:e,clearColor:t,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...l}){/* @__PURE__ */
203
- return jl.jsxs("div",{className:zl("flex flex-col",e),...l,children:[
204
- /* @__PURE__ */jl.jsx(yi,{label:"Custom Colors",children:/* @__PURE__ */jl.jsx(hd,{color:r,className:"px-2",colors:s,customColors:n,updateColor:o,updateCustomColor:a})}),
205
- /* @__PURE__ */jl.jsx(yi,{label:"Default Colors",children:/* @__PURE__ */jl.jsx(fd,{color:r,className:"px-2",colors:s,updateColor:o})}),r&&/* @__PURE__ */jl.jsx(yi,{children:/* @__PURE__ */jl.jsxs(Xl,{className:"p-2",onClick:t,children:[
206
- /* @__PURE__ */jl.jsx(Lt,{}),
207
- /* @__PURE__ */jl.jsx("span",{children:"Clear"})]})})]})},(e,t)=>e.color===t.color&&e.colors===t.colors&&e.customColors===t.customColors);function hd({className:e,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...l}){const[i,c]=t.useState(),[d,u]=t.useState(r||"#000000");t.useEffect(()=>{!r||n.some(e=>e.value===r)||s.some(e=>e.value===r)||c(r)},[r,s,n]);const m=t.useMemo(()=>i?[...n,{isBrightColor:!1,name:"",value:i}]:n,[i,n]),h=t.useCallback(dd(a,100),[a]);/* @__PURE__ */
208
- return jl.jsx("div",{className:zl("relative flex flex-col gap-4",e),...l,children:/* @__PURE__ */jl.jsx(fd,{color:r,colors:m,updateColor:o,children:/* @__PURE__ */jl.jsx(pd,{value:d,onChange:e=>{u(e.target.value),h(e.target.value)},children:/* @__PURE__ */jl.jsxs(Xl,{className:zl(Vl({size:"icon",variant:"outline"}),"absolute top-1 right-2 bottom-2 flex size-8 items-center justify-center rounded-full"),onSelect:e=>{e.preventDefault()},children:[
209
- /* @__PURE__ */jl.jsx("span",{className:"sr-only",children:"Custom"}),
210
- /* @__PURE__ */jl.jsx(Pt,{})]})})})})}function pd({children:e,className:r,value:s="#000000",...n}){const o=t.useRef(null);/* @__PURE__ */
211
- return jl.jsxs("div",{className:"flex flex-col items-center",children:[t.Children.map(e,e=>e?t.cloneElement(e,{onClick:()=>o.current?.click()}):e),
212
- /* @__PURE__ */jl.jsx("input",{...n,ref:Ms(n.ref,o),className:zl("size-0 overflow-hidden border-0 p-0",r),value:s,type:"color"})]})}function xd({className:e,isBrightColor:t,isSelected:r,name:s,updateColor:n,value:o,...a}){const l=/* @__PURE__ */jl.jsx(Xl,{className:zl(Vl({size:"icon",variant:"outline"}),"my-1 flex size-6 items-center justify-center rounded-full border border-muted border-solid p-0 transition-all hover:scale-125",!t&&"border-transparent",r&&"border-2 border-primary",e),style:{backgroundColor:o},onSelect:e=>{e.preventDefault(),n(o)},...a});return s?/* @__PURE__ */jl.jsxs($l,{children:[
213
- /* @__PURE__ */jl.jsx(Wl,{children:l}),
214
- /* @__PURE__ */jl.jsx(Zl,{className:"mb-1 capitalize",children:s})]}):l}function fd({className:e,color:t,colors:r,updateColor:s,...n}){/* @__PURE__ */
215
- return jl.jsx("div",{className:zl("grid grid-cols-[repeat(10,1fr)] place-items-center gap-x-1",e),...n,children:/* @__PURE__ */jl.jsxs(ql,{children:[r.map(({isBrightColor:e,name:r,value:n})=>/* @__PURE__ */jl.jsx(xd,{name:r,value:n,isBrightColor:e,isSelected:t===n,updateColor:s},r??n)),n.children]})})}const gd=[{isBrightColor:!1,name:"black",value:"#000000"},{isBrightColor:!1,name:"dark grey 4",value:"#434343"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"dark grey 1",value:"#B7B7B7"},{isBrightColor:!1,name:"grey",value:"#CCCCCC"},{isBrightColor:!1,name:"light grey 1",value:"#D9D9D9"},{isBrightColor:!0,name:"light grey 2",value:"#EFEFEF"},{isBrightColor:!0,name:"light grey 3",value:"#F3F3F3"},{isBrightColor:!0,name:"white",value:"#FFFFFF"},{isBrightColor:!1,name:"red berry",value:"#980100"},{isBrightColor:!1,name:"red",value:"#FE0000"},{isBrightColor:!1,name:"orange",value:"#FE9900"},{isBrightColor:!0,name:"yellow",value:"#FEFF00"},{isBrightColor:!1,name:"green",value:"#00FF00"},{isBrightColor:!1,name:"cyan",value:"#00FFFF"},{isBrightColor:!1,name:"cornflower blue",value:"#4B85E8"},{isBrightColor:!1,name:"blue",value:"#1300FF"},{isBrightColor:!1,name:"purple",value:"#9900FF"},{isBrightColor:!1,name:"magenta",value:"#FF00FF"},{isBrightColor:!1,name:"light red berry 3",value:"#E6B8AF"},{isBrightColor:!1,name:"light red 3",value:"#F4CCCC"},{isBrightColor:!0,name:"light orange 3",value:"#FCE4CD"},{isBrightColor:!0,name:"light yellow 3",value:"#FFF2CC"},{isBrightColor:!0,name:"light green 3",value:"#D9EAD3"},{isBrightColor:!1,name:"light cyan 3",value:"#D0DFE3"},{isBrightColor:!1,name:"light cornflower blue 3",value:"#C9DAF8"},{isBrightColor:!0,name:"light blue 3",value:"#CFE1F3"},{isBrightColor:!0,name:"light purple 3",value:"#D9D2E9"},{isBrightColor:!0,name:"light magenta 3",value:"#EAD1DB"},{isBrightColor:!1,name:"light red berry 2",value:"#DC7E6B"},{isBrightColor:!1,name:"light red 2",value:"#EA9999"},{isBrightColor:!1,name:"light orange 2",value:"#F9CB9C"},{isBrightColor:!0,name:"light yellow 2",value:"#FFE598"},{isBrightColor:!1,name:"light green 2",value:"#B7D6A8"},{isBrightColor:!1,name:"light cyan 2",value:"#A1C4C9"},{isBrightColor:!1,name:"light cornflower blue 2",value:"#A4C2F4"},{isBrightColor:!1,name:"light blue 2",value:"#9FC5E8"},{isBrightColor:!1,name:"light purple 2",value:"#B5A7D5"},{isBrightColor:!1,name:"light magenta 2",value:"#D5A6BD"},{isBrightColor:!1,name:"light red berry 1",value:"#CC4125"},{isBrightColor:!1,name:"light red 1",value:"#E06666"},{isBrightColor:!1,name:"light orange 1",value:"#F6B26B"},{isBrightColor:!1,name:"light yellow 1",value:"#FFD966"},{isBrightColor:!1,name:"light green 1",value:"#93C47D"},{isBrightColor:!1,name:"light cyan 1",value:"#76A5AE"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"light blue 1",value:"#6FA8DC"},{isBrightColor:!1,name:"light purple 1",value:"#8D7CC3"},{isBrightColor:!1,name:"light magenta 1",value:"#C27BA0"},{isBrightColor:!1,name:"dark red berry 1",value:"#A61B00"},{isBrightColor:!1,name:"dark red 1",value:"#CC0000"},{isBrightColor:!1,name:"dark orange 1",value:"#E59138"},{isBrightColor:!1,name:"dark yellow 1",value:"#F1C231"},{isBrightColor:!1,name:"dark green 1",value:"#6AA74F"},{isBrightColor:!1,name:"dark cyan 1",value:"#45818E"},{isBrightColor:!1,name:"dark cornflower blue 1",value:"#3B78D8"},{isBrightColor:!1,name:"dark blue 1",value:"#3E84C6"},{isBrightColor:!1,name:"dark purple 1",value:"#664EA6"},{isBrightColor:!1,name:"dark magenta 1",value:"#A64D78"},{isBrightColor:!1,name:"dark red berry 2",value:"#84200D"},{isBrightColor:!1,name:"dark red 2",value:"#990001"},{isBrightColor:!1,name:"dark orange 2",value:"#B45F05"},{isBrightColor:!1,name:"dark yellow 2",value:"#BF9002"},{isBrightColor:!1,name:"dark green 2",value:"#38761D"},{isBrightColor:!1,name:"dark cyan 2",value:"#124F5C"},{isBrightColor:!1,name:"dark cornflower blue 2",value:"#1155CB"},{isBrightColor:!1,name:"dark blue 2",value:"#0C5394"},{isBrightColor:!1,name:"dark purple 2",value:"#351C75"},{isBrightColor:!1,name:"dark magenta 2",value:"#741B47"},{isBrightColor:!1,name:"dark red berry 3",value:"#5B0F00"},{isBrightColor:!1,name:"dark red 3",value:"#660000"},{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark yellow 3",value:"#7E6000"},{isBrightColor:!1,name:"dark green 3",value:"#274E12"},{isBrightColor:!1,name:"dark cyan 3",value:"#0D343D"},{isBrightColor:!1,name:"dark cornflower blue 3",value:"#1B4487"},{isBrightColor:!1,name:"dark blue 3",value:"#083763"},{isBrightColor:!1,name:"dark purple 3",value:"#1F124D"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}],bd=[{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}];function jd(e){const t=m(),r=f(e=>0===e.history.redos.length,[]);/* @__PURE__ */
216
- return jl.jsx(hi,{...e,disabled:r,onClick:()=>t.redo(),onMouseDown:e=>e.preventDefault(),tooltip:"Redo",children:/* @__PURE__ */jl.jsx(Vt,{})})}function vd(e){const t=m(),r=f(e=>0===e.history.undos.length,[]);/* @__PURE__ */
217
- return jl.jsx(hi,{...e,disabled:r,onClick:()=>t.undo(),onMouseDown:e=>e.preventDefault(),tooltip:"Undo",children:/* @__PURE__ */jl.jsx(Ht,{})})}function yd(e){const{props:t}=wn();/* @__PURE__ */
218
- return jl.jsx(hi,{...e,...t,tooltip:"Indent",children:/* @__PURE__ */jl.jsx(qt,{})})}function wd(e){const{props:t}=yn();/* @__PURE__ */
219
- return jl.jsx(hi,{...e,...t,tooltip:"Outdent",children:/* @__PURE__ */jl.jsx(Ut,{})})}const kd="action_three_columns",Nd=(e,t)=>{e.tf.insertNodes(e.api.create.block({indent:1,listStyleType:t}),{select:!0})},Cd={[q.listTodo]:Nd,[q.ol]:Nd,[q.ul]:Nd,[kd]:e=>Ss(e,{columns:3,select:!0}),[q.audio]:e=>Wn(e,{select:!0}),[q.callout]:e=>Nn(e,{select:!0}),[q.codeBlock]:e=>ze(e,{select:!0}),[q.equation]:e=>Fn(e,{select:!0}),[q.excalidraw]:e=>Sn(e,{},{select:!0}),[q.file]:e=>$n(e,{select:!0}),[q.img]:e=>qn(e,{select:!0,type:q.img}),[q.mediaEmbed]:e=>qn(e,{select:!0,type:q.mediaEmbed}),[q.table]:e=>e.getTransforms(ro).insert.table({},{select:!0}),[q.toc]:e=>ho(e,{select:!0}),[q.video]:e=>Un(e,{select:!0})},_d={[q.date]:e=>_n(e,{select:!0}),[q.inlineEquation]:e=>Ln(e,"",{select:!0}),[q.link]:e=>En(e,{focused:!0})},zd=(e,t,r={})=>{const{upsert:s=!1}=r;e.tf.withoutNormalizing(()=>{const r=e.api.block();if(!r)return;const[n,o]=r,a=e.api.isEmpty(n),l=Ad(n),i=t===l;s&&a&&i||(t in Cd?Cd[t](e,t):e.tf.insertNodes(e.api.create.block({type:t}),{at:K.next(o),select:!0}),i||e.getApi(to).suggestion.withoutSuggestions(()=>{e.tf.removeNodes({previousEmptyBlock:!0})}))})},Sd=(e,t)=>{_d[t]&&_d[t](e,t)},Ed=(e,t,r)=>{e.tf.setNodes(e.api.create.block({indent:1,listStyleType:t}),{at:r[1]})},Bd={[q.listTodo]:Ed,[q.ol]:Ed,[q.ul]:Ed,[kd]:e=>Es(e,{columns:3}),[q.codeBlock]:e=>Se(e)},Ad=e=>e[q.listType]?e[q.listType]===q.ol?q.ol:e[q.listType]===q.listTodo?q.listTodo:q.ul:e.type,Id=[{group:"Basic blocks",items:[{icon:/* @__PURE__ */jl.jsx($t,{}),label:"Paragraph",value:q.p},{icon:/* @__PURE__ */jl.jsx(Wt,{}),label:"Heading 1",value:"h1"},{icon:/* @__PURE__ */jl.jsx(Zt,{}),label:"Heading 2",value:"h2"},{icon:/* @__PURE__ */jl.jsx(Kt,{}),label:"Heading 3",value:"h3"},{icon:/* @__PURE__ */jl.jsx(Yt,{}),label:"Table",value:q.table}].map(e=>({...e,onSelect:(e,t)=>{zd(e,t)}}))},{group:"Lists",items:[{icon:/* @__PURE__ */jl.jsx(Gt,{}),label:"Bulleted list",value:q.ul},{icon:/* @__PURE__ */jl.jsx(Qt,{}),label:"Numbered list",value:q.ol}].map(e=>({...e,onSelect:(e,t)=>{zd(e,t)}}))},{group:"Media",items:[{icon:/* @__PURE__ */jl.jsx(Jt,{}),label:"Image",value:q.img}].map(e=>({...e,onSelect:(e,t)=>{zd(e,t)}}))},{group:"Inline",items:[{icon:/* @__PURE__ */jl.jsx(Xt,{}),label:"Link",value:q.link}].map(e=>({...e,onSelect:(e,t)=>{Sd(e,t)}}))}];function Td(t){const r=m(),[s,n]=e.useState(!1);/* @__PURE__ */
220
- return jl.jsxs(Kl,{open:s,onOpenChange:n,modal:!1,...t,children:[
221
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{pressed:s,tooltip:"Insert",isDropdown:!0,children:/* @__PURE__ */jl.jsx(Pt,{})})}),
222
- /* @__PURE__ */jl.jsx(Ql,{className:"flex max-h-[500px] min-w-0 flex-col overflow-y-auto",align:"start",children:Id.map(({group:e,items:t})=>/* @__PURE__ */jl.jsx(yi,{label:e,children:t.map(({icon:e,label:t,value:s,onSelect:n})=>/* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",onSelect:()=>{n(r,s),r.tf.focus()},children:[e,t]},s))},e))})]})}function Dd(e){const t=Bn(),{props:r}=An(t);/* @__PURE__ */
223
- return jl.jsx(hi,{...e,...r,"data-plate-focus":!0,tooltip:"Link",children:/* @__PURE__ */jl.jsx(er,{})})}function Od(){const t=m(),[r,s]=e.useState(!1),n=f(e=>De(e,[Oe.Disc,Oe.Circle,Oe.Square]),[]);/* @__PURE__ */
224
- return jl.jsxs(xi,{pressed:r,children:[
225
- /* @__PURE__ */jl.jsx(fi,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>{Ie(t,{listStyleType:Oe.Disc})},"data-state":n?"on":"off",children:/* @__PURE__ */jl.jsx(rr,{className:"size-4"})}),
226
- /* @__PURE__ */jl.jsxs(Kl,{open:r,onOpenChange:s,modal:!1,children:[
227
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(gi,{})}),
228
- /* @__PURE__ */jl.jsx(Ql,{align:"start",alignOffset:-32,children:/* @__PURE__ */jl.jsxs(Jl,{children:[
229
- /* @__PURE__ */jl.jsx(Xl,{onClick:()=>Ie(t,{listStyleType:Oe.Disc}),children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-2",children:[
230
- /* @__PURE__ */jl.jsx("div",{className:"size-2 rounded-full border border-current bg-current"}),"Default"]})}),
231
- /* @__PURE__ */jl.jsx(Xl,{onClick:()=>Ie(t,{listStyleType:Oe.Circle}),children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-2",children:[
232
- /* @__PURE__ */jl.jsx("div",{className:"size-2 rounded-full border border-current"}),"Circle"]})}),
233
- /* @__PURE__ */jl.jsx(Xl,{onClick:()=>Ie(t,{listStyleType:Oe.Square}),children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-2",children:[
234
- /* @__PURE__ */jl.jsx("div",{className:"size-2 border border-current bg-current"}),"Square"]})})]})})]})]})}function Rd(){const t=m(),[r,s]=e.useState(!1),n=f(e=>De(e,[Oe.Decimal,Oe.LowerAlpha,Oe.UpperAlpha,Oe.LowerRoman,Oe.UpperRoman]),[]);/* @__PURE__ */
235
- return jl.jsxs(xi,{pressed:r,children:[
236
- /* @__PURE__ */jl.jsx(fi,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>Ie(t,{listStyleType:Oe.Decimal}),"data-state":n?"on":"off",children:/* @__PURE__ */jl.jsx(tr,{className:"size-4"})}),
237
- /* @__PURE__ */jl.jsxs(Kl,{open:r,onOpenChange:s,modal:!1,children:[
238
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(gi,{})}),
239
- /* @__PURE__ */jl.jsx(Ql,{align:"start",alignOffset:-32,children:/* @__PURE__ */jl.jsxs(Jl,{children:[
240
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:Oe.Decimal}),children:"Decimal (1, 2, 3)"}),
241
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:Oe.LowerAlpha}),children:"Lower Alpha (a, b, c)"}),
242
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:"turkish-lower-alpha"}),children:"Lower Alpha - Turkish (a, b, c, ç)"}),
243
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:Oe.UpperAlpha}),children:"Upper Alpha (A, B, C)"}),
244
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:"turkish-upper-alpha"}),children:"Upper Alpha - Turkish (A, B, C, Ç)"}),
245
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:Oe.LowerRoman}),children:"Lower Roman (i, ii, iii)"}),
246
- /* @__PURE__ */jl.jsx(Xl,{onSelect:()=>Ie(t,{listStyleType:Oe.UpperRoman}),children:"Upper Roman (I, II, III)"})]})})]})]})}function Md({clear:e,nodeType:t,...r}){const s=y({clear:e,nodeType:t}),{props:n}=w(s);/* @__PURE__ */
247
- return jl.jsx(hi,{...r,...n})}function Fd({...e}){/* @__PURE__ */
248
- return jl.jsx(yo.Root,{"data-slot":"alert-dialog",...e})}function Ld({...e}){/* @__PURE__ */
249
- return jl.jsx(yo.Portal,{"data-slot":"alert-dialog-portal",...e})}function Pd({className:e,...t}){/* @__PURE__ */
250
- return jl.jsx(yo.Overlay,{"data-slot":"alert-dialog-overlay",className:zl("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Hd({className:e,...t}){/* @__PURE__ */
251
- return jl.jsxs(Ld,{children:[
252
- /* @__PURE__ */jl.jsx(Pd,{}),
253
- /* @__PURE__ */jl.jsx(yo.Content,{"data-slot":"alert-dialog-content",className:zl("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function Vd({className:e,...t}){/* @__PURE__ */
254
- return jl.jsx("div",{"data-slot":"alert-dialog-header",className:zl("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Ud({className:e,...t}){/* @__PURE__ */
255
- return jl.jsx("div",{"data-slot":"alert-dialog-footer",className:zl("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function qd({className:e,...t}){/* @__PURE__ */
256
- return jl.jsx(yo.Title,{"data-slot":"alert-dialog-title",className:zl("text-lg font-semibold",e),...t})}function $d({className:e,...t}){/* @__PURE__ */
257
- return jl.jsx(yo.Description,{"data-slot":"alert-dialog-description",className:zl("text-muted-foreground text-sm",e),...t})}function Wd({className:e,...t}){/* @__PURE__ */
258
- return jl.jsx(yo.Action,{className:zl(Vl(),e),...t})}function Zd({className:e,...t}){/* @__PURE__ */
259
- return jl.jsx(yo.Cancel,{className:zl(Vl({variant:"outline"}),e),...t})}function Kd({className:e,type:t,...r}){/* @__PURE__ */
260
- return jl.jsx("input",{type:t,"data-slot":"input",className:zl("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}const Yd={[q.audio]:{accept:["audio/*"],icon:/* @__PURE__ */jl.jsx(ar,{className:"size-4"}),title:"Insert Audio",tooltip:"Audio"},[q.file]:{accept:["*"],icon:/* @__PURE__ */jl.jsx(or,{className:"size-4"}),title:"Insert File",tooltip:"File"},[q.img]:{accept:["image/*"],icon:/* @__PURE__ */jl.jsx(Jt,{className:"size-4"}),title:"Insert Image",tooltip:"Image"},[q.video]:{accept:["video/*"],icon:/* @__PURE__ */jl.jsx(nr,{className:"size-4"}),title:"Insert Video",tooltip:"Video"}};function Gd({nodeType:t,...r}){const s=Yd[t],n=m(),[o,a]=e.useState(!1),[l,i]=e.useState(!1),{openFilePicker:c}=vo({accept:s.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{n.getTransforms(en).insert.media(e)}});/* @__PURE__ */
261
- return jl.jsxs(jl.Fragment,{children:[
262
- /* @__PURE__ */jl.jsxs(xi,{onClick:()=>{c()},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),a(!0))},pressed:o,children:[
263
- /* @__PURE__ */jl.jsx(fi,{children:s.icon}),
264
- /* @__PURE__ */jl.jsxs(Kl,{open:o,onOpenChange:a,modal:!1,...r,children:[
265
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(gi,{})}),
266
- /* @__PURE__ */jl.jsx(Ql,{onClick:e=>e.stopPropagation(),align:"start",alignOffset:-32,children:/* @__PURE__ */jl.jsxs(Jl,{children:[
267
- /* @__PURE__ */jl.jsxs(Xl,{onSelect:()=>c(),children:[s.icon,"Upload from computer"]}),
268
- /* @__PURE__ */jl.jsxs(Xl,{onSelect:()=>i(!0),children:[
269
- /* @__PURE__ */jl.jsx(sr,{}),"Insert via URL"]})]})})]})]}),
270
- /* @__PURE__ */jl.jsx(Fd,{open:l,onOpenChange:e=>{i(e)},children:/* @__PURE__ */jl.jsx(Hd,{className:"gap-6",children:/* @__PURE__ */jl.jsx(Qd,{currentConfig:s,nodeType:t,setOpen:i})})})]})}function Qd({currentConfig:t,nodeType:r,setOpen:s}){const n=m(),[o,a]=e.useState(""),l=e.useCallback(()=>{if(!ee(o))return jo.error("Invalid URL");s(!1),n.tf.insertNodes({children:[{text:""}],name:r===q.file?o.split("/").pop():void 0,type:r,url:o})},[o,n,r,s]);/* @__PURE__ */
271
- return jl.jsxs(jl.Fragment,{children:[
272
- /* @__PURE__ */jl.jsx(Vd,{children:/* @__PURE__ */jl.jsx(qd,{children:t.title})}),
273
- /* @__PURE__ */jl.jsxs($d,{className:"group relative w-full",children:[
274
- /* @__PURE__ */jl.jsx("label",{className:"-translate-y-1/2 absolute top-1/2 block cursor-text px-1 text-muted-foreground/70 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:font-medium group-focus-within:text-foreground group-focus-within:text-xs has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:font-medium has-[+input:not(:placeholder-shown)]:text-foreground has-[+input:not(:placeholder-shown)]:text-xs",htmlFor:"url",children:/* @__PURE__ */jl.jsx("span",{className:"inline-flex bg-background px-2",children:"URL"})}),
275
- /* @__PURE__ */jl.jsx(Kd,{id:"url",className:"w-full",value:o,onChange:e=>a(e.target.value),onKeyDown:e=>{"Enter"===e.key&&l()},placeholder:"",type:"url",autoFocus:!0})]}),
276
- /* @__PURE__ */jl.jsxs(Ud,{children:[
277
- /* @__PURE__ */jl.jsx(Zd,{children:"Cancel"}),
278
- /* @__PURE__ */jl.jsx(Wd,{onClick:e=>{e.preventDefault(),l()},children:"Accept"})]})]})}function Jd(t){const r=m(),[s,n]=e.useState(!1);/* @__PURE__ */
279
- return jl.jsxs(Kl,{open:s,onOpenChange:n,modal:!1,...t,children:[
280
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{pressed:s,tooltip:"Insert",children:/* @__PURE__ */jl.jsx(lr,{})})}),
281
- /* @__PURE__ */jl.jsx(Ql,{className:"ignore-click-outside/toolbar flex max-h-[500px] min-w-[180px] flex-col overflow-y-auto",align:"start",children:/* @__PURE__ */jl.jsxs(Jl,{children:[
282
- /* @__PURE__ */jl.jsxs(Xl,{onSelect:()=>{r.tf.toggleMark(q.sup,{remove:q.sub}),r.tf.focus()},children:[
283
- /* @__PURE__ */jl.jsx(ir,{}),"Superscript"]}),
284
- /* @__PURE__ */jl.jsxs(Xl,{onSelect:()=>{r.tf.toggleMark(q.sub,{remove:q.sup}),r.tf.focus()},children:[
285
- /* @__PURE__ */jl.jsx(cr,{}),"Subscript"]})]})})]})}function Xd(t){const r=f(e=>e.api.some({match:{type:q.table}}),[]),{editor:s,tf:n}=i(ro),[o,a]=e.useState(!1),l=so();/* @__PURE__ */
286
- return jl.jsxs(Kl,{open:o,onOpenChange:a,modal:!1,...t,children:[
287
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{pressed:o,tooltip:"Table",isDropdown:!0,children:/* @__PURE__ */jl.jsx(dr,{})})}),
288
- /* @__PURE__ */jl.jsx(Ql,{className:"flex w-[180px] min-w-0 flex-col",align:"start",children:/* @__PURE__ */jl.jsxs(Jl,{children:[
289
- /* @__PURE__ */jl.jsxs(oi,{children:[
290
- /* @__PURE__ */jl.jsxs(ai,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:[
291
- /* @__PURE__ */jl.jsx(ur,{className:"size-4"}),
292
- /* @__PURE__ */jl.jsx("span",{children:"Table"})]}),
293
- /* @__PURE__ */jl.jsx(li,{className:"m-0 p-0",children:/* @__PURE__ */jl.jsx(eu,{})})]}),
294
- /* @__PURE__ */jl.jsxs(oi,{children:[
295
- /* @__PURE__ */jl.jsxs(ai,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!r,children:[
296
- /* @__PURE__ */jl.jsx("div",{className:"size-4"}),
297
- /* @__PURE__ */jl.jsx("span",{children:"Cell"})]}),
298
- /* @__PURE__ */jl.jsxs(li,{children:[
299
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!l.canMerge,onSelect:()=>{n.table.merge(),s.tf.focus()},children:[
300
- /* @__PURE__ */jl.jsx(mr,{}),"Merge cells"]}),
301
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!l.canSplit,onSelect:()=>{n.table.split(),s.tf.focus()},children:[
302
- /* @__PURE__ */jl.jsx(hr,{}),"Split cell"]})]})]}),
303
- /* @__PURE__ */jl.jsxs(oi,{children:[
304
- /* @__PURE__ */jl.jsxs(ai,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!r,children:[
305
- /* @__PURE__ */jl.jsx("div",{className:"size-4"}),
306
- /* @__PURE__ */jl.jsx("span",{children:"Row"})]}),
307
- /* @__PURE__ */jl.jsxs(li,{children:[
308
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableRow({before:!0}),s.tf.focus()},children:[
309
- /* @__PURE__ */jl.jsx(pr,{}),"Insert row before"]}),
310
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableRow(),s.tf.focus()},children:[
311
- /* @__PURE__ */jl.jsx(xr,{}),"Insert row after"]}),
312
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.remove.tableRow(),s.tf.focus()},children:[
313
- /* @__PURE__ */jl.jsx(gt,{}),"Delete row"]})]})]}),
314
- /* @__PURE__ */jl.jsxs(oi,{children:[
315
- /* @__PURE__ */jl.jsxs(ai,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!r,children:[
316
- /* @__PURE__ */jl.jsx("div",{className:"size-4"}),
317
- /* @__PURE__ */jl.jsx("span",{children:"Column"})]}),
318
- /* @__PURE__ */jl.jsxs(li,{children:[
319
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableColumn({before:!0}),s.tf.focus()},children:[
320
- /* @__PURE__ */jl.jsx(fr,{}),"Insert column before"]}),
321
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableColumn(),s.tf.focus()},children:[
322
- /* @__PURE__ */jl.jsx(gr,{}),"Insert column after"]}),
323
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.remove.tableColumn(),s.tf.focus()},children:[
324
- /* @__PURE__ */jl.jsx(gt,{}),"Delete column"]})]})]}),
325
- /* @__PURE__ */jl.jsxs(Xl,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.remove.table(),s.tf.focus()},children:[
326
- /* @__PURE__ */jl.jsx(At,{}),"Delete table"]})]})})]})}function eu(){const{editor:t,tf:r}=i(ro),[s,n]=e.useState({grid:Array.from({length:8},()=>Array.from({length:8}).fill(0)),size:{colCount:0,rowCount:0}});/* @__PURE__ */
327
- return jl.jsxs("div",{className:"flex! m-0 flex-col p-0",onClick:()=>{r.insert.table(s.size,{select:!0}),t.tf.focus()},role:"button",children:[
328
- /* @__PURE__ */jl.jsx("div",{className:"grid size-[130px] grid-cols-8 gap-0.5 p-1",children:s.grid.map((e,t)=>e.map((e,r)=>/* @__PURE__ */jl.jsx("div",{className:zl("col-span-1 size-3 border border-solid bg-secondary",!!e&&"border-current"),onMouseMove:()=>{((e,t)=>{const r=[...s.grid];for(let s=0;s<r.length;s++)for(let n=0;n<r[s].length;n++)r[s][n]=s>=0&&s<=e&&n>=0&&n<=t?1:0;n({grid:r,size:{colCount:t+1,rowCount:e+1}})})(t,r)}},`(${t},${r})`)))}),
329
- /* @__PURE__ */jl.jsxs("div",{className:"text-center text-current text-xs",children:[s.size.rowCount," x ",s.size.colCount]})]})}const tu=[{icon:/* @__PURE__ */jl.jsx($t,{}),keywords:["paragraph"],label:"Text",value:q.p},{icon:/* @__PURE__ */jl.jsx(Wt,{}),keywords:["title","h1"],label:"Heading 1",value:"h1"},{icon:/* @__PURE__ */jl.jsx(Zt,{}),keywords:["subtitle","h2"],label:"Heading 2",value:"h2"},{icon:/* @__PURE__ */jl.jsx(Kt,{}),keywords:["subtitle","h3"],label:"Heading 3",value:"h3"},{icon:/* @__PURE__ */jl.jsx(br,{}),keywords:["subtitle","h4"],label:"Heading 4",value:"h4"},{icon:/* @__PURE__ */jl.jsx(jr,{}),keywords:["subtitle","h5"],label:"Heading 5",value:"h5"},{icon:/* @__PURE__ */jl.jsx(vr,{}),keywords:["subtitle","h6"],label:"Heading 6",value:"h6"},{icon:/* @__PURE__ */jl.jsx(Gt,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:q.ul},{icon:/* @__PURE__ */jl.jsx(Qt,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:q.ol}];function ru(t){const r=m(),[s,n]=e.useState(!1),o=v({defaultValue:q.p,getProp:e=>Ad(e)}),a=e.useMemo(()=>tu.find(e=>e.value===(o??q.p))??tu[0],[o]);/* @__PURE__ */
330
- return jl.jsxs(Kl,{open:s,onOpenChange:n,modal:!1,...t,children:[
331
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{className:"min-w-[125px]",pressed:s,tooltip:"Turn into",isDropdown:!0,children:a.label})}),
332
- /* @__PURE__ */jl.jsx(Ql,{className:"ignore-click-outside/toolbar min-w-0",onCloseAutoFocus:e=>{e.preventDefault(),r.tf.focus()},align:"start",children:/* @__PURE__ */jl.jsx(yi,{value:o,onValueChange:e=>{((e,t,{at:r}={})=>{e.tf.withoutNormalizing(()=>{const s=r=>{const[s,n]=r;if(s[q.listType]&&e.tf.unsetNodes([q.listType,"indent"],{at:n}),t in Bd)return Bd[t](e,t,r);s.type!==t&&e.tf.setNodes({type:t},{at:n})};if(r){const t=e.api.node(r);if(t)return void s(t)}e.api.blocks({mode:"lowest"}).forEach(e=>{s(e)})})})(r,e)},label:"Turn into",children:tu.map(({icon:e,label:t,value:r})=>/* @__PURE__ */jl.jsxs(ri,{className:"min-w-[180px] pl-2 *:first:[span]:hidden",value:r,children:[
333
- /* @__PURE__ */jl.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */jl.jsx(gs,{children:/* @__PURE__ */jl.jsx(pt,{})})}),e,t]},r))})})]})}function su(){const e=k();/* @__PURE__ */
334
- return jl.jsx("div",{className:"flex w-full",children:!e&&/* @__PURE__ */jl.jsxs(jl.Fragment,{children:[
335
- /* @__PURE__ */jl.jsxs(ji,{children:[
336
- /* @__PURE__ */jl.jsx(vd,{}),
337
- /* @__PURE__ */jl.jsx(jd,{})]}),
338
- /* @__PURE__ */jl.jsx(ji,{children:/* @__PURE__ */jl.jsx(Td,{})}),
339
- /* @__PURE__ */jl.jsx(ji,{children:/* @__PURE__ */jl.jsx(ru,{})}),
340
- /* @__PURE__ */jl.jsxs(ji,{children:[
341
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */jl.jsx(yr,{})}),
342
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */jl.jsx(wr,{})}),
343
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */jl.jsx(kr,{})}),
344
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */jl.jsx(Nr,{})}),
345
- /* @__PURE__ */jl.jsx(Dd,{})]}),
346
- /* @__PURE__ */jl.jsxs(ji,{children:[
347
- /* @__PURE__ */jl.jsx(ud,{nodeType:q.color,tooltip:"Text color",children:/* @__PURE__ */jl.jsx(Cr,{})}),
348
- /* @__PURE__ */jl.jsx(ud,{nodeType:q.backgroundColor,tooltip:"Background color",children:/* @__PURE__ */jl.jsx(_r,{})})]}),
349
- /* @__PURE__ */jl.jsxs(ji,{children:[
350
- /* @__PURE__ */jl.jsx(Ec,{}),
351
- /* @__PURE__ */jl.jsx(Rd,{}),
352
- /* @__PURE__ */jl.jsx(Od,{}),
353
- /* @__PURE__ */jl.jsx(wd,{}),
354
- /* @__PURE__ */jl.jsx(yd,{})]}),
355
- /* @__PURE__ */jl.jsxs(ji,{children:[
356
- /* @__PURE__ */jl.jsx(Xd,{}),
357
- /* @__PURE__ */jl.jsx(Gd,{nodeType:q.img})]}),
358
- /* @__PURE__ */jl.jsx(ji,{children:/* @__PURE__ */jl.jsx(Jd,{})})]})})}const nu=[N({key:"fixed-toolbar",render:{beforeEditable:()=>/* @__PURE__ */jl.jsx(zc,{children:/* @__PURE__ */jl.jsx(su,{})})}})];function ou({children:e,className:t,state:r,...s}){const n=C(),o=_("focus"),a=!!d({key:q.link},"mode"),l=d({key:q.aiChat},"open"),i=wo({editorId:n,focusedEditorId:o,hideToolbar:a||l,...r,floatingOptions:{middleware:[ko(12),No({fallbackPlacements:["top-start","top-end","bottom-start","bottom-end"],padding:12})],placement:"top",...r?.floatingOptions}}),{clickOutsideRef:c,hidden:u,props:m,ref:h}=Co(i),p=Ms(s.ref,h);return u?null:/* @__PURE__ */jl.jsx("div",{ref:c,children:/* @__PURE__ */jl.jsx(ci,{...s,...m,ref:p,className:zl("scrollbar-hide absolute z-50 overflow-x-auto whitespace-nowrap rounded-md border bg-popover p-1 opacity-100 shadow-md print:hidden","max-w-[80vw]",t),children:e})})}function au(){const e=k();/* @__PURE__ */
359
- return jl.jsxs(jl.Fragment,{children:[!e&&/* @__PURE__ */jl.jsx(jl.Fragment,{children:/* @__PURE__ */jl.jsxs(ji,{children:[
360
- /* @__PURE__ */jl.jsx(ru,{}),
361
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */jl.jsx(yr,{})}),
362
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */jl.jsx(wr,{})}),
363
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */jl.jsx(kr,{})}),
364
- /* @__PURE__ */jl.jsx(Md,{nodeType:q.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */jl.jsx(Nr,{})}),
365
- /* @__PURE__ */jl.jsx(Dd,{})]})}),
366
- /* @__PURE__ */jl.jsx(ji,{children:!e&&/* @__PURE__ */jl.jsx(Jd,{})})]})}const lu=[N({key:"floating-toolbar",render:{afterEditable:()=>/* @__PURE__ */jl.jsx(ou,{children:/* @__PURE__ */jl.jsx(au,{})})}})],iu={inject:{targetPlugins:[q.p]}},cu=[me.configure({inject:{...iu.inject,nodeProps:{defaultNodeValue:"black"}}}),he.configure(iu),pe.configure(iu),xe.configure(iu)],du=[fe.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...q.heading,q.p]}})];const uu=tt("z-50 w-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-hidden"),mu=tt("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function hu({state:t}){const r=d({key:q.comment},"activeId"),s=d({key:q.suggestion},"activeId"),n=e.useMemo(()=>({middleware:[ko(8),No({fallbackPlacements:["bottom-end","top-start","top-end"],padding:12})],placement:s||r?"top-start":"bottom-start"}),[r,s]),o=In({...t,floatingOptions:{...n,...t?.floatingOptions}}),{hidden:a,props:l,ref:i,textInputProps:c}=Tn(o),u=Dn({...t,floatingOptions:{...n,...t?.floatingOptions}}),{editButtonProps:m,props:h,ref:p,unlinkButtonProps:x}=On(u),f=z({preventDefaultOnEnterKeydown:!0});if(a)return null;const g=/* @__PURE__ */jl.jsxs("div",{className:"flex w-[330px] flex-col",...f,children:[
367
- /* @__PURE__ */jl.jsxs("div",{className:"flex items-center",children:[
368
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */jl.jsx(er,{className:"size-4"})}),
369
- /* @__PURE__ */jl.jsx(Rn,{className:mu(),placeholder:"Paste link","data-plate-focus":!0})]}),
370
- /* @__PURE__ */jl.jsx(ii,{className:"my-1"}),
371
- /* @__PURE__ */jl.jsxs("div",{className:"flex items-center",children:[
372
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */jl.jsx(zr,{className:"size-4"})}),
373
- /* @__PURE__ */jl.jsx("input",{className:mu(),placeholder:"Text to display","data-plate-focus":!0,...c})]})]}),b=u.isEditing?g:/* @__PURE__ */jl.jsxs("div",{className:"box-content flex items-center",children:[
374
- /* @__PURE__ */jl.jsx("button",{className:Vl({size:"sm",variant:"ghost"}),type:"button",...m,children:"Edit link"}),
375
- /* @__PURE__ */jl.jsx(ii,{orientation:"vertical"}),
376
- /* @__PURE__ */jl.jsx(pu,{}),
377
- /* @__PURE__ */jl.jsx(ii,{orientation:"vertical"}),
378
- /* @__PURE__ */jl.jsx("button",{className:Vl({size:"sm",variant:"ghost"}),type:"button",...x,children:/* @__PURE__ */jl.jsx(Sr,{width:18})})]});/* @__PURE__ */
379
- return jl.jsxs(jl.Fragment,{children:[
380
- /* @__PURE__ */jl.jsx("div",{ref:i,className:uu(),...l,children:g}),
381
- /* @__PURE__ */jl.jsx("div",{ref:p,className:uu(),...h,children:b})]})}function pu(){const t=m(),r=S(),s=e.useMemo(()=>{const e=t.api.node({match:{type:t.getType(q.link)}});if(!e)return{};const[r]=e;return _o(t,r)},[t,r]);/* @__PURE__ */
382
- return jl.jsx("a",{...s,className:Vl({size:"sm",variant:"ghost"}),onMouseOver:e=>{e.stopPropagation()},"aria-label":"Open link in a new tab",target:"_blank",children:/* @__PURE__ */jl.jsx(Er,{width:18})})}const xu=[Mn.configure({render:{node:function(e){const t=e.editor.getApi(to).suggestion.suggestionData(e.element);/* @__PURE__ */
383
- return jl.jsx(r,{...e,as:"a",className:zl("font-medium text-primary underline decoration-primary underline-offset-4","remove"===t?.type&&"bg-red-100 text-red-700","insert"===t?.type&&"bg-emerald-100 text-emerald-700"),attributes:{...e.attributes,..._o(e.editor,e.element),onMouseOver:e=>{e.stopPropagation()}},children:e.children})},afterEditable:()=>/* @__PURE__ */jl.jsx(hu,{})}})],fu=[kn.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle,q.img]},options:{offset:24}})];function gu({className:e,...t}){/* @__PURE__ */
384
- return jl.jsx(So.Root,{"data-slot":"checkbox",className:zl("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:/* @__PURE__ */jl.jsx(So.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:/* @__PURE__ */jl.jsx(pt,{className:"size-3.5"})})})}const bu={todo:{Li:function(e){/* @__PURE__ */
385
- return jl.jsx("li",{className:zl("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=fo({element:e.element}),{checkboxProps:r}=go(t),n=s();/* @__PURE__ */
386
- return jl.jsx("div",{contentEditable:!1,children:/* @__PURE__ */jl.jsx(gu,{className:zl("-left-6 absolute top-1",n&&"pointer-events-none"),...r})})}}};function ju(e){const{listStart:t,listStyleType:r}=e.element,{Li:s,Marker:n}=bu[r]??{},o=Re(e.element)?"ol":"ul";/* @__PURE__ */
387
- return jl.jsxs(o,{className:"relative m-0 p-0",style:{listStyleType:r},start:t,children:[n&&/* @__PURE__ */jl.jsx(n,{...e}),s?/* @__PURE__ */jl.jsx(s,{...e}):/* @__PURE__ */jl.jsx("li",{children:e.children})]})}const vu=[...fu,bo.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle,q.img]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */jl.jsx(ju,{...e})}}})],yu=[Eo.configure({options:{plainMarks:[q.suggestion,q.comment],remarkPlugins:[To,Io,Bo,Ao]}})];const wu=E(Fo)({propsHook:Do}),ku=({className:t,isInline:r,open:n,setOpen:o,...a})=>{const l=m(),i=s(),c=h();if(e.useEffect(()=>{r&&n&&o(!0)},[r,n,o]),i)return null;const d=()=>{o(!1),r?l.tf.select(c,{focus:!0,next:!0}):l.getApi(ot).blockSelection.set(c.id)};/* @__PURE__ */
388
- return jl.jsxs($i,{className:"flex gap-2",onEscapeKeyDown:e=>{e.preventDefault()},contentEditable:!1,children:[
389
- /* @__PURE__ */jl.jsx(wu,{className:zl("max-h-[50vh] grow resize-none p-2 text-sm",t),state:{isInline:r,open:n,onClose:d},autoFocus:!0,...a}),
390
- /* @__PURE__ */jl.jsxs(Ul,{variant:"secondary",className:"px-3",onClick:d,children:["Done ",
391
- /* @__PURE__ */jl.jsx(Ar,{className:"size-3.5"})]})]})},Nu=[Ro.withComponent(function(t){const s=t.element,o=e.useRef(null),a=n(),l=f(e=>e.api.isCollapsed(),[]),[i,c]=e.useState(a&&l);return e.useEffect(()=>{a&&l&&c(!0)},[a,l]),Oo({element:s,katexRef:o,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */jl.jsxs(r,{...t,className:zl("mx-1 inline-block select-none rounded-sm [&_.katex-display]:my-0!"),children:[
392
- /* @__PURE__ */jl.jsxs(Ui,{open:i,onOpenChange:c,modal:!1,children:[
393
- /* @__PURE__ */jl.jsx(qi,{asChild:!0,children:/* @__PURE__ */jl.jsxs("div",{className:zl('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",(s.texExpression.length>0&&i||a)&&"after:bg-brand/15",0===s.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),contentEditable:!1,children:[
394
- /* @__PURE__ */jl.jsx("span",{ref:o,className:zl(0===s.texExpression.length&&"hidden","font-mono leading-none")}),0===s.texExpression.length&&/* @__PURE__ */jl.jsxs("span",{children:[
395
- /* @__PURE__ */jl.jsx(Br,{className:"mr-1 inline-block h-[19px] w-4 py-[1.5px] align-text-bottom"}),"New equation"]})]})}),
396
- /* @__PURE__ */jl.jsx(ku,{className:"my-auto",open:i,placeholder:"E = mc^2",setOpen:c,isInline:!0})]}),t.children]})}),Mo.withComponent(function(t){const s=n(),[o,a]=e.useState(s),l=e.useRef(null);return Oo({element:t.element,katexRef:l,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */jl.jsxs(r,{className:"my-1",...t,children:[
397
- /* @__PURE__ */jl.jsxs(Ui,{open:o,onOpenChange:a,modal:!1,children:[
398
- /* @__PURE__ */jl.jsx(qi,{asChild:!0,children:/* @__PURE__ */jl.jsx("div",{className:zl("group flex cursor-pointer select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.element.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),"data-selected":s,contentEditable:!1,role:"button",children:t.element.texExpression.length>0?/* @__PURE__ */jl.jsx("span",{ref:l}):/* @__PURE__ */jl.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
399
- /* @__PURE__ */jl.jsx(Br,{className:"size-6 text-muted-foreground/80"}),
400
- /* @__PURE__ */jl.jsx("div",{children:"Add a Tex equation"})]})})}),
401
- /* @__PURE__ */jl.jsx(ku,{open:o,placeholder:"f(x) = \\begin{cases}\n x^2, &\\quad x > 0 \\\\\n 0, &\\quad x = 0 \\\\\n -x^2, &\\quad x < 0\n\\end{cases}",isInline:!1,setOpen:a})]}),t.children]})})],Cu=tt("max-w-full",{defaultVariants:{align:"center"},variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function _u({align:e,className:t,...r}){/* @__PURE__ */
402
- return jl.jsx(Ho,{...r,className:zl(Cu({align:e}),t)})}function zu(e){/* @__PURE__ */
403
- return jl.jsx(Vo,{...e,className:zl("mt-2 w-full resize-none border-none bg-inherit p-0 font-[inherit] text-inherit","focus:outline-none focus:[&::placeholder]:opacity-0","text-center print:placeholder:text-transparent",e.className)})}const Su=Fs(Ul)({propsHook:Po,stateHook:Lo}),Eu=p(Is,function(e){const{align:t="center",readOnly:s,unsafeUrl:n}=tn();/* @__PURE__ */
404
- return jl.jsxs(r,{...e,className:"mb-1",children:[
405
- /* @__PURE__ */jl.jsxs("figure",{className:"group relative cursor-default",contentEditable:!1,children:[
406
- /* @__PURE__ */jl.jsx("div",{className:"h-16",children:/* @__PURE__ */jl.jsx("audio",{className:"size-full",src:n,controls:!0})}),
407
- /* @__PURE__ */jl.jsx(_u,{style:{width:"100%"},align:t,children:/* @__PURE__ */jl.jsx(zu,{className:"h-20",readOnly:s,placeholder:"Write a caption..."})})]}),e.children]})}),Bu=tt("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function Au({children:t,plugin:r}){const o=m(),a=s(),l=n(),i=g(),c=f(e=>!e.api.isExpanded(),[]),d=rn("isOpen",o.id),u=i&&!a&&l&&c&&!d,p=sn("isEditing");e.useEffect(()=>{!u&&p&&nn.set("isEditing",!1)},[u]);const b=h(),{props:j}=x({element:b});/* @__PURE__ */
408
- return jl.jsxs(Ui,{open:u,modal:!1,children:[
409
- /* @__PURE__ */jl.jsx(Wi,{children:t}),
410
- /* @__PURE__ */jl.jsx($i,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),children:p?/* @__PURE__ */jl.jsx("div",{className:"flex w-[330px] flex-col",children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-center",children:[
411
- /* @__PURE__ */jl.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */jl.jsx(er,{className:"size-4"})}),
412
- /* @__PURE__ */jl.jsx(on.UrlInput,{className:Bu(),placeholder:"Paste the embed link...",options:{plugin:r}})]})}):/* @__PURE__ */jl.jsxs("div",{className:"box-content flex items-center",children:[
413
- /* @__PURE__ */jl.jsx(on.EditButton,{className:Vl({size:"sm",variant:"ghost"}),children:"Edit link"}),
414
- /* @__PURE__ */jl.jsx(Su,{size:"sm",variant:"ghost",children:"Caption"}),
415
- /* @__PURE__ */jl.jsx(ii,{orientation:"vertical",className:"mx-1 h-6"}),
416
- /* @__PURE__ */jl.jsx(Ul,{size:"sm",variant:"ghost",...j,children:/* @__PURE__ */jl.jsx(At,{})})]})})]})}const Iu=tt(zl("top-0 flex w-6 select-none flex-col justify-center","after:flex after:h-16 after:w-[3px] after:rounded-[6px] after:bg-ring after:opacity-0 after:content-['_'] group-hover:after:opacity-100"),{variants:{direction:{left:"-left-3 -ml-3 pl-3",right:"-right-3 -mr-3 items-end pr-3"}}}),Tu=tt("absolute z-40",{variants:{direction:{bottom:"w-full cursor-row-resize",left:"h-full cursor-col-resize",right:"h-full cursor-col-resize",top:"w-full cursor-row-resize"}}});function Du({className:e,options:t,...r}){const s=Ds(t??{}),n=Os(s);return s.readOnly?null:/* @__PURE__ */jl.jsx("div",{className:zl(Tu({direction:t?.direction}),e),"data-resizing":s.isResizing,...n.props,...r})}const Ou=tt("",{variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function Ru({align:e,className:t,...r}){/* @__PURE__ */
417
- return jl.jsx(Ts,{...r,className:zl(Ou({align:e}),t)})}const Mu=p(Is,function(e){const{align:t="center",embed:s,focused:n,isTweet:o,isVideo:a,isYoutube:l,readOnly:i,selected:c}=tn({urlParsers:[Zn,Kn]}),d=Rs("width"),u=s?.provider;/* @__PURE__ */
418
- return jl.jsx(Au,{plugin:an,children:/* @__PURE__ */jl.jsxs(r,{className:"py-2.5",...e,children:[
419
- /* @__PURE__ */jl.jsxs("figure",{className:"group relative m-0 w-full cursor-default",contentEditable:!1,children:[
420
- /* @__PURE__ */jl.jsxs(Ru,{align:t,options:{align:t,maxWidth:o?550:"100%",minWidth:o?300:100},children:[
421
- /* @__PURE__ */jl.jsx(Du,{className:Iu({direction:"left"}),options:{direction:"left"}}),a?l?/* @__PURE__ */jl.jsx(qo,{id:s.id,title:"youtube",wrapperClass:zl("rounded-sm",n&&c&&"ring-2 ring-ring ring-offset-2","relative block cursor-pointer bg-black bg-center bg-cover [contain:content]","[&.lyt-activated]:before:absolute [&.lyt-activated]:before:top-0 [&.lyt-activated]:before:h-[60px] [&.lyt-activated]:before:w-full [&.lyt-activated]:before:bg-top [&.lyt-activated]:before:bg-repeat-x [&.lyt-activated]:before:pb-[50px] [&.lyt-activated]:before:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&.lyt-activated]:before:bg-[url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==)]",'after:block after:pb-[var(--aspect-ratio)] after:content-[""]',"[&_>_iframe]:absolute [&_>_iframe]:top-0 [&_>_iframe]:left-0 [&_>_iframe]:size-full","[&_>_.lty-playbtn]:z-1 [&_>_.lty-playbtn]:h-[46px] [&_>_.lty-playbtn]:w-[70px] [&_>_.lty-playbtn]:rounded-[14%] [&_>_.lty-playbtn]:bg-[#212121] [&_>_.lty-playbtn]:opacity-80 [&_>_.lty-playbtn]:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&:hover_>_.lty-playbtn]:bg-[red] [&:hover_>_.lty-playbtn]:opacity-100",'[&_>_.lty-playbtn]:before:border-[transparent_transparent_transparent_#fff] [&_>_.lty-playbtn]:before:border-y-[11px] [&_>_.lty-playbtn]:before:border-r-0 [&_>_.lty-playbtn]:before:border-l-[19px] [&_>_.lty-playbtn]:before:content-[""]',"[&_>_.lty-playbtn]:absolute [&_>_.lty-playbtn]:top-1/2 [&_>_.lty-playbtn]:left-1/2 [&_>_.lty-playbtn]:[transform:translate3d(-50%,-50%,0)]","[&_>_.lty-playbtn]:before:absolute [&_>_.lty-playbtn]:before:top-1/2 [&_>_.lty-playbtn]:before:left-1/2 [&_>_.lty-playbtn]:before:[transform:translate3d(-50%,-50%,0)]","[&.lyt-activated]:cursor-[unset]","[&.lyt-activated]:before:pointer-events-none [&.lyt-activated]:before:opacity-0","[&.lyt-activated_>_.lty-playbtn]:pointer-events-none [&.lyt-activated_>_.lty-playbtn]:opacity-0!")}):/* @__PURE__ */jl.jsx("div",{className:zl("vimeo"===u&&"pb-[75%]","youku"===u&&"pb-[56.25%]","dailymotion"===u&&"pb-[56.0417%]","coub"===u&&"pb-[51.25%]"),children:/* @__PURE__ */jl.jsx("iframe",{className:zl("absolute top-0 left-0 size-full rounded-sm",a&&"border-0",n&&c&&"ring-2 ring-ring ring-offset-2"),title:"embed",src:s.url,allowFullScreen:!0})}):null,o&&/* @__PURE__ */jl.jsx("div",{className:zl("[&_.react-tweet-theme]:my-0",!i&&c&&"[&_.react-tweet-theme]:ring-2 [&_.react-tweet-theme]:ring-ring [&_.react-tweet-theme]:ring-offset-2"),children:/* @__PURE__ */jl.jsx($o,{id:s.id})}),
422
- /* @__PURE__ */jl.jsx(Du,{className:Iu({direction:"right"}),options:{direction:"right"}})]}),
423
- /* @__PURE__ */jl.jsx(_u,{style:{width:d},align:t,children:/* @__PURE__ */jl.jsx(zu,{placeholder:"Write a caption..."})})]}),e.children]})})}),Fu=p(Is,function(e){const t=s(),{name:n,unsafeUrl:o}=tn();/* @__PURE__ */
424
- return jl.jsxs(r,{className:"my-px rounded-sm",...e,children:[
425
- /* @__PURE__ */jl.jsxs("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:n,href:o,rel:"noopener noreferrer",role:"button",target:"_blank",children:[
426
- /* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
427
- /* @__PURE__ */jl.jsx(Ir,{className:"size-5"}),
428
- /* @__PURE__ */jl.jsx("div",{children:n})]}),
429
- /* @__PURE__ */jl.jsx(_u,{align:"left",children:/* @__PURE__ */jl.jsx(zu,{className:"text-left",readOnly:t,placeholder:"Write a caption..."})})]}),e.children]})}),Lu=p(Is,function(e){const{align:t="center",focused:s,readOnly:n,selected:o}=tn(),a=Rs("width"),{isDragging:l,handleRef:i}=os({element:e.element});/* @__PURE__ */
430
- return jl.jsx(Au,{plugin:ln,children:/* @__PURE__ */jl.jsxs(r,{...e,className:"py-2.5",children:[
431
- /* @__PURE__ */jl.jsxs("figure",{className:"group relative m-0",contentEditable:!1,children:[
432
- /* @__PURE__ */jl.jsxs(Ru,{align:t,options:{align:t,readOnly:n},children:[
433
- /* @__PURE__ */jl.jsx(Du,{className:Iu({direction:"left"}),options:{direction:"left"}}),
434
- /* @__PURE__ */jl.jsx(cn,{ref:i,className:zl("block w-full max-w-full cursor-pointer object-cover px-0","rounded-sm",s&&o&&"ring-2 ring-ring ring-offset-2",l&&"opacity-50"),alt:e.attributes.alt}),
435
- /* @__PURE__ */jl.jsx(Du,{className:Iu({direction:"right"}),options:{direction:"right"}})]}),
436
- /* @__PURE__ */jl.jsx(_u,{style:{width:a},align:t,children:/* @__PURE__ */jl.jsx(zu,{readOnly:n,onFocus:e=>{e.preventDefault()},placeholder:"Write a caption..."})})]}),e.children]})})});function Pu({onUploadComplete:t,onUploadError:r,...s}={}){const[n,o]=e.useState(),[a,l]=e.useState(),[i,c]=e.useState(0),[d,u]=e.useState(!1);return{isUploading:d,progress:i,uploadedFile:n,uploadFile:async function(e){u(!0),l(e);try{const r=await Hu("editorUploader",{...s,files:[e],onUploadProgress:({progress:e})=>{c(Math.min(e,100))}});return o(r[0]),t?.(r[0]),n}catch(a){const t=function(e){const t="Something went wrong, please try again later.";if(e instanceof Zo.ZodError){return e.issues.map(e=>e.message).join("\n")}if(e instanceof Error)return e.message;return t}(a),s=t.length>0?t:"Something went wrong, please try again later.";jo.error(s),r?.(a);const n={key:"mock-key-0",appUrl:`https://mock-app-url.com/${e.name}`,name:e.name,size:e.size,type:e.type,url:URL.createObjectURL(e)};let l=0;const i=async()=>{for(;l<100;)await new Promise(e=>setTimeout(e,50)),l+=2,c(Math.min(l,100))};return await i(),o(n),n}finally{c(0),u(!1),l(void 0)}},uploadingFile:a}}const{uploadFiles:Hu,useUploadThing:Vu}=Wo();const Uu={[q.audio]:{accept:["audio/*"],content:"Add an audio file",icon:/* @__PURE__ */jl.jsx(Or,{})},[q.file]:{accept:["*"],content:"Add a file",icon:/* @__PURE__ */jl.jsx(Ir,{})},[q.img]:{accept:["image/*"],content:"Add an image",icon:/* @__PURE__ */jl.jsx(Jt,{})},[q.video]:{accept:["video/*"],content:"Add a video",icon:/* @__PURE__ */jl.jsx(Dr,{})}},qu=p(dn,function(t){const{editor:s,element:n}=t,{api:o}=i(en),{isUploading:a,progress:l,uploadedFile:c,uploadFile:d,uploadingFile:u}=Pu(),m=a&&u,h=Uu[n.mediaType],p=n.mediaType===q.img,x=e.useRef(null),{openFilePicker:f}=vo({accept:h.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{const t=e[0],r=e.slice(1);g(t),r.length>0&&s.getTransforms(en).insert.media(r)}}),g=e.useCallback(e=>{d(e),o.placeholder.addUploadingFile(n.id,e)},[o.placeholder,n.id,d]);e.useEffect(()=>{if(!c)return;const e=s.api.findPath(n);s.tf.withoutSaving(()=>{s.tf.removeNodes({at:e});const t={children:[{text:""}],initialHeight:x.current?.height,initialWidth:x.current?.width,isUpload:!0,name:n.mediaType===q.file?c.name:"",placeholderId:n.id,type:n.mediaType,url:c.url};s.tf.insertNodes(t,{at:e}),un(s,t)}),o.placeholder.removeUploadingFile(n.id)},[c,n.id]);const b=e.useRef(!1);return e.useEffect(()=>{if(b.current)return;b.current=!0;const e=o.placeholder.getUploadingFile(n.id);e&&g(e)},[b]),/* @__PURE__ */jl.jsxs(r,{className:"my-1",...t,children:[(!m||!p)&&/* @__PURE__ */jl.jsxs("div",{className:zl("flex cursor-pointer select-none items-center rounded-sm bg-muted p-3 pr-9 hover:bg-primary/10"),onClick:()=>!m&&f(),contentEditable:!1,children:[
437
- /* @__PURE__ */jl.jsx("div",{className:"relative mr-3 flex text-muted-foreground/80 [&_svg]:size-6",children:h.icon}),
438
- /* @__PURE__ */jl.jsxs("div",{className:"whitespace-nowrap text-muted-foreground text-sm",children:[
439
- /* @__PURE__ */jl.jsx("div",{children:m?u?.name:h.content}),m&&!p&&/* @__PURE__ */jl.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[
440
- /* @__PURE__ */jl.jsx("div",{children:Wu(u?.size??0)}),
441
- /* @__PURE__ */jl.jsx("div",{children:""}),
442
- /* @__PURE__ */jl.jsxs("div",{className:"flex items-center",children:[
443
- /* @__PURE__ */jl.jsx(Tr,{className:"mr-1 size-3.5 animate-spin text-muted-foreground"}),l??0,"%"]})]})]})]}),p&&m&&/* @__PURE__ */jl.jsx($u,{file:u,imageRef:x,progress:l}),t.children]})});function $u({className:t,file:r,imageRef:s,progress:n=0}){const[o,a]=e.useState(null);return e.useEffect(()=>{const e=URL.createObjectURL(r);return a(e),()=>{URL.revokeObjectURL(e)}},[r]),o?/* @__PURE__ */jl.jsxs("div",{className:zl("relative",t),contentEditable:!1,children:[
444
- /* @__PURE__ */jl.jsx("img",{ref:s,className:"h-auto w-full rounded-sm object-cover",alt:r.name,src:o}),n<100&&/* @__PURE__ */jl.jsxs("div",{className:"absolute right-1 bottom-1 flex items-center space-x-2 rounded-full bg-black/50 px-1 py-0.5",children:[
445
- /* @__PURE__ */jl.jsx(Tr,{className:"size-3.5 animate-spin text-muted-foreground"}),
446
- /* @__PURE__ */jl.jsxs("span",{className:"font-medium text-white text-xs",children:[Math.round(n),"%"]})]})]}):null}function Wu(e,t={}){const{decimals:r=0,sizeType:s="normal"}=t;if(0===e)return"0 Byte";const n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(r)} ${"accurate"===s?["Bytes","KiB","MiB","GiB","TiB"][n]??"Bytest":["Bytes","KB","MB","GB","TB"][n]??"Bytes"}`}const Zu=tt("rounded bg-[rgba(0,0,0,0.5)] px-1",{defaultVariants:{variant:"default"},variants:{variant:{default:"text-white",disabled:"cursor-not-allowed text-gray-400"}}});function Ku(e){const{props:t,ref:r}=pn();/* @__PURE__ */
447
- return jl.jsx("input",{...t,...e,ref:r})}const Yu=()=>{const t=d(en,"error");e.useEffect(()=>{if(!t)return;const{code:e,data:r}=t;switch(e){case xn.INVALID_FILE_SIZE:jo.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case xn.INVALID_FILE_TYPE:jo.error(`The type of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case xn.TOO_LARGE:jo.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is too large than ${r.maxFileSize}`);break;case xn.TOO_LESS_FILES:jo.error(`The mini um number of files is ${r.minFileCount} for ${r.fileType}`);break;case xn.TOO_MANY_FILES:jo.error(`The maximum number of files is ${r.maxFileCount} ${r.fileType?`for ${r.fileType}`:""}`)}},[t])},Gu=p(Is,function(e){const{align:t="center",embed:s,isUpload:n,isYoutube:o,readOnly:a,unsafeUrl:l}=tn({urlParsers:[Zn,Kn]}),i=Rs("width"),c=B(),{isDragging:d,handleRef:u}=os({element:e.element});/* @__PURE__ */
448
- return jl.jsxs(r,{className:"py-2.5",...e,children:[
449
- /* @__PURE__ */jl.jsxs("figure",{className:"relative m-0 cursor-default",contentEditable:!1,children:[
450
- /* @__PURE__ */jl.jsx(Ru,{className:zl(d&&"opacity-50"),align:t,options:{align:t,maxWidth:550,minWidth:300,readOnly:a},children:/* @__PURE__ */jl.jsxs("div",{className:"group/media",children:[
451
- /* @__PURE__ */jl.jsx(Du,{className:Iu({direction:"left"}),options:{direction:"left"}}),
452
- /* @__PURE__ */jl.jsx(Du,{className:Iu({direction:"right"}),options:{direction:"right"}}),!n&&o&&/* @__PURE__ */jl.jsx("div",{ref:u,children:/* @__PURE__ */jl.jsx(qo,{id:s.id,title:"youtube",wrapperClass:zl("aspect-video rounded-sm","relative block cursor-pointer bg-black bg-center bg-cover [contain:content]","[&.lyt-activated]:before:absolute [&.lyt-activated]:before:top-0 [&.lyt-activated]:before:h-[60px] [&.lyt-activated]:before:w-full [&.lyt-activated]:before:bg-top [&.lyt-activated]:before:bg-repeat-x [&.lyt-activated]:before:pb-[50px] [&.lyt-activated]:before:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&.lyt-activated]:before:bg-[url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==)]",'after:block after:pb-[var(--aspect-ratio)] after:content-[""]',"[&_>_iframe]:absolute [&_>_iframe]:top-0 [&_>_iframe]:left-0 [&_>_iframe]:size-full","[&_>_.lty-playbtn]:z-1 [&_>_.lty-playbtn]:h-[46px] [&_>_.lty-playbtn]:w-[70px] [&_>_.lty-playbtn]:rounded-[14%] [&_>_.lty-playbtn]:bg-[#212121] [&_>_.lty-playbtn]:opacity-80 [&_>_.lty-playbtn]:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&:hover_>_.lty-playbtn]:bg-[red] [&:hover_>_.lty-playbtn]:opacity-100",'[&_>_.lty-playbtn]:before:border-[transparent_transparent_transparent_#fff] [&_>_.lty-playbtn]:before:border-y-[11px] [&_>_.lty-playbtn]:before:border-r-0 [&_>_.lty-playbtn]:before:border-l-[19px] [&_>_.lty-playbtn]:before:content-[""]',"[&_>_.lty-playbtn]:absolute [&_>_.lty-playbtn]:top-1/2 [&_>_.lty-playbtn]:left-1/2 [&_>_.lty-playbtn]:[transform:translate3d(-50%,-50%,0)]","[&_>_.lty-playbtn]:before:absolute [&_>_.lty-playbtn]:before:top-1/2 [&_>_.lty-playbtn]:before:left-1/2 [&_>_.lty-playbtn]:before:[transform:translate3d(-50%,-50%,0)]","[&.lyt-activated]:cursor-[unset]","[&.lyt-activated]:before:pointer-events-none [&.lyt-activated]:before:opacity-0","[&.lyt-activated_>_.lty-playbtn]:pointer-events-none [&.lyt-activated_>_.lty-playbtn]:opacity-0!")})}),n&&c&&/* @__PURE__ */jl.jsx("div",{ref:u,children:/* @__PURE__ */jl.jsx(Ko,{height:"100%",src:l,width:"100%",controls:!0})})]})}),
453
- /* @__PURE__ */jl.jsx(_u,{style:{width:i},align:t,children:/* @__PURE__ */jl.jsx(zu,{readOnly:a,placeholder:"Write a caption..."})})]}),e.children]})}),Qu=[ln.configure({options:{disableUploadInsert:!0},render:{afterEditable:function(){const e=m(),t=rn("isOpen",e.id),r=rn("scale"),s=rn("isEditingScale"),{closeProps:n,currentUrlIndex:o,maskLayerProps:a,nextDisabled:l,nextProps:i,prevDisabled:c,prevProps:d,scaleTextProps:u,zommOutProps:h,zoomInDisabled:p,zoomInProps:x,zoomOutDisabled:f}=mn({scrollSpeed:4});/* @__PURE__ */
454
- return jl.jsxs("div",{className:zl("fixed top-0 left-0 z-50 h-screen w-screen select-none",!t&&"hidden"),onContextMenu:e=>e.stopPropagation(),...a,children:[
455
- /* @__PURE__ */jl.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
456
- /* @__PURE__ */jl.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
457
- /* @__PURE__ */jl.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:/* @__PURE__ */jl.jsxs("div",{className:"relative flex max-h-screen w-full items-center",children:[
458
- /* @__PURE__ */jl.jsx(hn,{className:zl("mx-auto block max-h-[calc(100vh-4rem)] w-auto object-contain transition-transform")}),
459
- /* @__PURE__ */jl.jsxs("div",{className:"-translate-x-1/2 absolute bottom-0 left-1/2 z-40 flex w-fit justify-center gap-4 p-2 text-center text-white",onClick:e=>e.stopPropagation(),children:[
460
- /* @__PURE__ */jl.jsxs("div",{className:"flex gap-1",children:[
461
- /* @__PURE__ */jl.jsx("button",{...d,className:zl(Zu({variant:c?"disabled":"default"})),type:"button",children:/* @__PURE__ */jl.jsx(fr,{})}),(o??0)+1,
462
- /* @__PURE__ */jl.jsx("button",{...i,className:zl(Zu({variant:l?"disabled":"default"})),type:"button",children:/* @__PURE__ */jl.jsx(gr,{})})]}),
463
- /* @__PURE__ */jl.jsxs("div",{className:"flex",children:[
464
- /* @__PURE__ */jl.jsx("button",{className:zl(Zu({variant:f?"disabled":"default"})),...h,type:"button",children:/* @__PURE__ */jl.jsx(Rr,{className:"size-4"})}),
465
- /* @__PURE__ */jl.jsx("div",{className:"mx-px",children:s?/* @__PURE__ */jl.jsxs(jl.Fragment,{children:[
466
- /* @__PURE__ */jl.jsx(Ku,{className:"w-10 rounded px-1 text-slate-500 outline"})," ",
467
- /* @__PURE__ */jl.jsx("span",{children:"%"})]}):/* @__PURE__ */jl.jsx("span",{...u,children:100*r+"%"})}),
468
- /* @__PURE__ */jl.jsx("button",{className:zl(Zu({variant:p?"disabled":"default"})),...x,type:"button",children:/* @__PURE__ */jl.jsx(Mr,{className:"size-4"})})]}),
469
- /* @__PURE__ */jl.jsx("button",{className:zl(Zu()),type:"button",children:/* @__PURE__ */jl.jsx(Fr,{className:"size-4"})}),
470
- /* @__PURE__ */jl.jsx("button",{...n,className:zl(Zu()),type:"button",children:/* @__PURE__ */jl.jsx(Lr,{className:"size-4"})})]})]})})]})},node:Lu}}),an.withComponent(Mu),fn.withComponent(Gu),gn.withComponent(Eu),bn.withComponent(Fu),en.configure({options:{disableEmptyPlaceholder:!0},render:{afterEditable:function(){return Yu(),null},node:qu}}),Uo.configure({options:{query:{allow:[q.img,q.video,q.audio,q.file,q.mediaEmbed]}}})];const Ju=e.createContext(null),Xu=({group:e,keywords:t=[],label:r,value:s},n)=>{const o=new Set([s,...t,e,r].filter(Boolean));return Array.from(o).some(e=>ia(e,n))},em=({children:t,element:r,filter:s=Xu,hideWhenNoValue:n=!1,setValue:o,showTrigger:a=!0,trigger:l,value:i})=>{const c=m(),d=e.useRef(null),u=ca(d),[h,p]=e.useState(""),x=void 0!==i,f=x?i:h,g=e.useMemo(()=>{const e=r.userId,t=c.meta.userId;return!e||e===t},[c.meta.userId,r]),b=e.useCallback(e=>{o?.(e),x||p(e)},[o,x]),j=e.useRef(null);e.useEffect(()=>{const e=c.api.findPath(r);if(!e)return;const t=c.api.before(e);if(!t)return;const s=c.api.pointRef(t);return j.current=s.current,()=>{s.unref()}},[c,r]);const{props:v,removeInput:y}=da({cancelInputOnBlur:!0,cursorState:u,autoFocus:g,ref:d,onCancelInput:e=>{"backspace"!==e&&c.tf.insertText(l+f,{at:j?.current??void 0}),"arrowLeft"!==e&&"arrowRight"!==e||c.tf.move({distance:1,reverse:"arrowLeft"===e})}}),[w,k]=e.useState(!1),N=e.useMemo(()=>({filter:s,inputProps:v,inputRef:d,removeInput:y,setHasEmpty:k,showTrigger:a,trigger:l}),[l,a,s,d,v,y,k]),C=Xo({setValue:t=>e.startTransition(()=>b(t))}),_=C.useState("items");return e.useEffect(()=>{C.getState().activeId||C.setActiveId(C.first())},[_,C]),/* @__PURE__ */jl.jsx("span",{contentEditable:!1,children:/* @__PURE__ */jl.jsx(ea,{open:(_.length>0||w)&&(!n||f.length>0),store:C,children:/* @__PURE__ */jl.jsx(Ju.Provider,{value:N,children:t})})})},tm=({className:t,ref:r,...s})=>{const{inputProps:n,inputRef:o,showTrigger:a,trigger:l}=e.useContext(Ju),i=ta().useState("value"),c=A(r,o);/* @__PURE__ */
471
- return jl.jsxs(jl.Fragment,{children:[a&&l,
472
- /* @__PURE__ */jl.jsxs("span",{className:"relative min-h-[1lh]",children:[
473
- /* @__PURE__ */jl.jsx("span",{className:"invisible overflow-hidden text-nowrap","aria-hidden":"true",children:i||""}),
474
- /* @__PURE__ */jl.jsx(ra,{ref:c,className:zl("absolute top-0 left-0 size-full bg-transparent outline-none",t),value:i,autoSelect:!0,...n,...s})]})]})};tm.displayName="InlineComboboxInput";const rm=({className:e,...t})=>/* @__PURE__ */jl.jsx(sa,{children:/* @__PURE__ */jl.jsx(na,{className:zl("z-500 max-h-[288px] w-[300px] overflow-y-auto rounded-md bg-popover shadow-md",e),...t})}),sm=tt("relative mx-1 flex h-[28px] select-none items-center rounded-sm px-2 text-foreground text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{defaultVariants:{interactive:!0},variants:{interactive:{false:"",true:"cursor-pointer transition-colors hover:bg-accent hover:text-accent-foreground data-[active-item=true]:bg-accent data-[active-item=true]:text-accent-foreground"}}}),nm=({className:t,focusEditor:r=!0,group:s,keywords:n,label:o,onClick:a,...l})=>{const{value:i}=l,{filter:c,removeInput:d}=e.useContext(Ju),u=ta(),m=c&&u.useState("value");return e.useMemo(()=>!c||c({group:s,keywords:n,label:o,value:i},m),[c,s,n,o,i,m])?/* @__PURE__ */jl.jsx(aa,{className:zl(sm(),t),onClick:e=>{d(r),a?.(e)},...l}):null},om=({children:t,className:r})=>{const{setHasEmpty:s}=e.useContext(Ju),n=ta().useState("items");return e.useEffect(()=>(s(!0),()=>{s(!1)}),[s]),n.length>0?null:/* @__PURE__ */jl.jsx("div",{className:zl(sm({interactive:!1}),r),children:t})};function am({className:e,...t}){/* @__PURE__ */
475
- return jl.jsx(oa,{...t,className:zl("hidden not-last:border-b py-1.5 [&:has([role=option])]:block",e)})}function lm({className:e,...t}){/* @__PURE__ */
476
- return jl.jsx(la,{...t,className:zl("mt-1.5 mb-2 px-3 font-medium text-muted-foreground text-xs",e)})}const im=Qo();const cm=[{key:"0",text:"Aayla Secura"},{key:"1",text:"Adi Gallia"},{key:"2",text:"Admiral Dodd Rancit"},{key:"3",text:"Admiral Firmus Piett"},{key:"4",text:"Admiral Gial Ackbar"},{key:"5",text:"Admiral Ozzel"},{key:"6",text:"Admiral Raddus"},{key:"7",text:"Admiral Terrinald Screed"},{key:"8",text:"Admiral Trench"},{key:"9",text:"Admiral U.O. Statura"},{key:"10",text:"Agen Kolar"},{key:"11",text:"Agent Kallus"},{key:"12",text:"Aiolin and Morit Astarte"},{key:"13",text:"Aks Moe"},{key:"14",text:"Almec"},{key:"15",text:"Alton Kastle"},{key:"16",text:"Amee"},{key:"17",text:"AP-5"},{key:"18",text:"Armitage Hux"},{key:"19",text:"Artoo"},{key:"20",text:"Arvel Crynyd"},{key:"21",text:"Asajj Ventress"},{key:"22",text:"Aurra Sing"},{key:"23",text:"AZI-3"},{key:"24",text:"Bala-Tik"},{key:"25",text:"Barada"},{key:"26",text:"Bargwill Tomder"},{key:"27",text:"Baron Papanoida"},{key:"28",text:"Barriss Offee"},{key:"29",text:"Baze Malbus"},{key:"30",text:"Bazine Netal"},{key:"31",text:"BB-8"},{key:"32",text:"BB-9E"},{key:"33",text:"Ben Quadinaros"},{key:"34",text:"Berch Teller"},{key:"35",text:"Beru Lars"},{key:"36",text:"Bib Fortuna"},{key:"37",text:"Biggs Darklighter"},{key:"38",text:"Black Krrsantan"},{key:"39",text:"Bo-Katan Kryze"},{key:"40",text:"Boba Fett"},{key:"41",text:"Bobbajo"},{key:"42",text:"Bodhi Rook"},{key:"43",text:"Borvo the Hutt"},{key:"44",text:"Boss Nass"},{key:"45",text:"Bossk"},{key:"46",text:"Breha Antilles-Organa"},{key:"47",text:"Bren Derlin"},{key:"48",text:"Brendol Hux"},{key:"49",text:"BT-1"}],dm=[Yo.configure({options:{triggerPreviousCharPattern:/^$|^[\s"']$/}}).withComponent(function(t){const a=t.element,l=n(),i=o(),c=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{r(!0)},[]),t}(),d=s();/* @__PURE__ */
477
- return jl.jsx(r,{...t,className:zl("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!d&&"cursor-pointer",l&&i&&"ring-2 ring-ring",!0===a.children[0][q.bold]&&"font-bold",!0===a.children[0][q.italic]&&"italic",!0===a.children[0][q.underline]&&"underline"),attributes:{...t.attributes,contentEditable:!1,"data-slate-value":a.value,draggable:!0},children:c&&te?
478
- /* @__PURE__ */jl.jsxs(jl.Fragment,{children:[t.children,t.prefix,a.value]}):
479
- /* @__PURE__ */jl.jsxs(jl.Fragment,{children:[t.prefix,a.value,t.children]})})}),Go.withComponent(function(t){const{editor:s,element:n}=t,[o,a]=e.useState("");/* @__PURE__ */
480
- return jl.jsxs(r,{...t,as:"span",children:[
481
- /* @__PURE__ */jl.jsxs(em,{value:o,element:n,setValue:a,showTrigger:!1,trigger:"@",children:[
482
- /* @__PURE__ */jl.jsx("span",{className:"inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline text-sm ring-ring focus-within:ring-2",children:/* @__PURE__ */jl.jsx(tm,{})}),
483
- /* @__PURE__ */jl.jsxs(rm,{className:"my-1.5",children:[
484
- /* @__PURE__ */jl.jsx(om,{children:"No results"}),
485
- /* @__PURE__ */jl.jsx(am,{children:cm.map(e=>/* @__PURE__ */jl.jsx(nm,{value:e.text,onClick:()=>im(s,e,o),children:e.text},e.key))})]})]}),t.children]})})],um=[{group:"AI",items:[{focusEditor:!1,icon:/* @__PURE__ */jl.jsx(Pr,{}),value:"AI",onSelect:e=>{e.getApi(dt).aiChat.show()}}]},{group:"Basic blocks",items:[{icon:/* @__PURE__ */jl.jsx($t,{}),keywords:["paragraph"],label:"Text",value:q.p},{icon:/* @__PURE__ */jl.jsx(Wt,{}),keywords:["title","h1"],label:"Heading 1",value:q.h1},{icon:/* @__PURE__ */jl.jsx(Zt,{}),keywords:["subtitle","h2"],label:"Heading 2",value:q.h2},{icon:/* @__PURE__ */jl.jsx(Kt,{}),keywords:["subtitle","h3"],label:"Heading 3",value:q.h3},{icon:/* @__PURE__ */jl.jsx(Gt,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:q.ul},{icon:/* @__PURE__ */jl.jsx(tr,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:q.ol},{icon:/* @__PURE__ */jl.jsx(Hr,{}),keywords:["checklist","task","checkbox","[]"],label:"To-do list",value:q.listTodo},{icon:/* @__PURE__ */jl.jsx(mt,{}),keywords:["collapsible","expandable"],label:"Toggle",value:q.toggle},{icon:/* @__PURE__ */jl.jsx(Vr,{}),keywords:["```"],label:"Code Block",value:q.codeBlock},{icon:/* @__PURE__ */jl.jsx(dr,{}),label:"Table",value:q.table},{icon:/* @__PURE__ */jl.jsx(Ur,{}),keywords:["citation","blockquote","quote",">"],label:"Blockquote",value:q.blockquote},{description:"Insert a highlighted block.",icon:/* @__PURE__ */jl.jsx(yt,{}),keywords:["note"],label:"Callout",value:q.callout}].map(e=>({...e,onSelect:(e,t)=>{zd(e,t,{upsert:!0})}}))},{group:"Advanced blocks",items:[{icon:/* @__PURE__ */jl.jsx(qr,{}),keywords:["toc"],label:"Table of contents",value:q.toc},{icon:/* @__PURE__ */jl.jsx($r,{}),label:"3 columns",value:"action_three_columns"},{focusEditor:!1,icon:/* @__PURE__ */jl.jsx(Br,{}),label:"Equation",value:q.equation},{icon:/* @__PURE__ */jl.jsx(Wr,{}),keywords:["excalidraw"],label:"Excalidraw",value:q.excalidraw}].map(e=>({...e,onSelect:(e,t)=>{zd(e,t,{upsert:!0})}}))},{group:"Inline",items:[{focusEditor:!0,icon:/* @__PURE__ */jl.jsx(Zr,{}),keywords:["time"],label:"Date",value:q.date},{focusEditor:!1,icon:/* @__PURE__ */jl.jsx(Br,{}),label:"Inline Equation",value:q.inlineEquation}].map(e=>({...e,onSelect:(e,t)=>{Sd(e,t)}}))}];const mm=[ua.configure({options:{triggerQuery:e=>!e.api.some({match:{type:e.getType(q.codeBlock)}})}}),ma.withComponent(function(e){const{editor:t,element:s}=e;/* @__PURE__ */
486
- return jl.jsxs(r,{...e,as:"span",children:[
487
- /* @__PURE__ */jl.jsxs(em,{element:s,trigger:"/",children:[
488
- /* @__PURE__ */jl.jsx(tm,{}),
489
- /* @__PURE__ */jl.jsxs(rm,{children:[
490
- /* @__PURE__ */jl.jsx(om,{children:"No results"}),um.map(({group:e,items:r})=>/* @__PURE__ */jl.jsxs(am,{children:[
491
- /* @__PURE__ */jl.jsx(lm,{children:e}),r.map(({focusEditor:r,icon:s,keywords:n,label:o,value:a,onSelect:l})=>/* @__PURE__ */jl.jsxs(nm,{value:a,onClick:()=>l(t,a),label:o,focusEditor:r,group:e,keywords:n,children:[
492
- /* @__PURE__ */jl.jsx("div",{className:"mr-2 text-muted-foreground",children:s}),o??a]},a))]},e))]})]}),e.children]})})],hm=tt(zl("bg-emerald-100 text-emerald-700 no-underline transition-colors duration-200"),{defaultVariants:{insertActive:!1,remove:!1,removeActive:!1},variants:{insertActive:{false:"",true:"bg-emerald-200/80"},remove:{false:"",true:"bg-red-100 text-red-700"},removeActive:{false:"",true:"bg-red-200/80 no-underline"}}});function pm({children:t,suggestionData:r}){const{isLineBreak:s,type:n}=r,o="remove"===n,a="insert"===n,l=d(Rm,"activeId"),c=d(Rm,"hoverId"),u=l===r.id,m=c===r.id,h=e.useRef(null),{setOption:p}=i(Rm);/* @__PURE__ */
493
- return jl.jsx(jl.Fragment,{children:s?/* @__PURE__ */jl.jsxs(jl.Fragment,{children:[t,
494
- /* @__PURE__ */jl.jsx("span",{ref:h,className:zl("absolute text-justify",hm({insertActive:a&&(u||m),remove:o,removeActive:(u||m)&&o})),style:{bottom:3.5,height:21},contentEditable:!1,children:/* @__PURE__ */jl.jsx(Ar,{className:"mt-0.5 size-4"})})]}):/* @__PURE__ */jl.jsx("div",{className:zl(hm({insertActive:a&&(u||m),remove:o,removeActive:(u||m)&&o})),onMouseEnter:()=>p("hoverId",r.id),onMouseLeave:()=>p("hoverId",null),"data-block-suggestion":"true",children:t})})}function xm({className:e,...t}){/* @__PURE__ */
495
- return jl.jsx(ya.Root,{"data-slot":"avatar",className:zl("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function fm({className:e,...t}){/* @__PURE__ */
496
- return jl.jsx(ya.Image,{"data-slot":"avatar-image",className:zl("aspect-square size-full",e),...t})}function gm({className:e,...t}){/* @__PURE__ */
497
- return jl.jsx(ya.Fallback,{"data-slot":"avatar-fallback",className:zl("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const bm=tt("relative w-full cursor-text select-text overflow-y-auto caret-primary selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15",{defaultVariants:{variant:"default"},variants:{variant:{comment:zl("flex flex-wrap justify-between gap-1 px-1 py-0.5 text-sm","rounded-md border-[1.5px] border-transparent bg-transparent","has-[[data-slate-editor]:focus]:border-brand/50 has-[[data-slate-editor]:focus]:ring-2 has-[[data-slate-editor]:focus]:ring-brand/30","has-aria-disabled:border-input has-aria-disabled:bg-muted"),default:"h-full",demo:"h-[650px]",select:zl("group rounded-md border border-input ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2","has-data-readonly:w-fit has-data-readonly:cursor-default has-data-readonly:border-transparent has-data-readonly:focus-within:[box-shadow:none]")}}});function jm({className:e,variant:t,...r}){/* @__PURE__ */
498
- return jl.jsx(I,{className:zl("ignore-click-outside/toolbar",bm({variant:t}),e),...r})}const vm=tt(zl("group/editor","relative w-full cursor-text select-text overflow-x-hidden whitespace-pre-wrap break-words","rounded-md ring-offset-background focus-visible:outline-none","**:data-slate-placeholder:!top-1/2 **:data-slate-placeholder:-translate-y-1/2 placeholder:text-muted-foreground/80 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!","[&_strong]:font-bold"),{defaultVariants:{variant:"default"},variants:{disabled:{true:"cursor-not-allowed opacity-50"},focused:{true:"ring-2 ring-ring ring-offset-2"},variant:{ai:"w-full px-0 text-base md:text-sm",aiChat:"max-h-[min(70vh,320px)] w-full max-w-[700px] overflow-y-auto px-3 py-2 text-base md:text-sm",comment:zl("rounded-none border-none bg-transparent text-sm"),default:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",demo:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",fullWidth:"size-full px-16 pt-4 pb-72 text-base sm:px-24",none:"",select:"px-3 py-2 text-base data-readonly:w-fit"}}}),ym=({className:e,disabled:t,focused:r,variant:s,ref:n,...o})=>/* @__PURE__ */jl.jsx(T,{ref:n,className:zl(vm({disabled:t,focused:r,variant:s}),e),disabled:t,disableDefaultStyles:!0,...o});function wm({className:e,variant:t,...r}){/* @__PURE__ */
499
- return jl.jsx(D,{...r,className:zl(vm({variant:t}),e)})}function km(t){const{comment:r,discussionLength:s,documentContent:n,editingId:o,index:a,setEditingId:l,showDocumentContent:c=!1,onEditorClick:u}=t,h=m(),p=d(Om,"user",r.userId),x=d(Om,"currentUserId"),{tf:f}=i(va),g=x===r.userId,b=r.contentRich,j=Cm({id:r.id,value:b},[b]),v=()=>{(async e=>{const t=h.getOption(Om,"discussions").map(t=>{if(t.id===e.discussionId){const r=t.comments.map(t=>t.id===e.id?{...t,contentRich:e.contentRich,isEdited:!0,updatedAt:/* @__PURE__ */new Date}:t);return{...t,comments:r}}return t});h.setOption(Om,"discussions",t)})({id:r.id,contentRich:j.children,discussionId:r.discussionId}),l(null)},y=0===a,w=a===s-1,k=o&&o===r.id,[N,C]=e.useState(!1),[_,z]=e.useState(!1);/* @__PURE__ */
500
- return jl.jsxs("div",{onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[
501
- /* @__PURE__ */jl.jsxs("div",{className:"relative flex items-center",children:[
502
- /* @__PURE__ */jl.jsxs(xm,{className:"size-5",children:[
503
- /* @__PURE__ */jl.jsx(fm,{alt:p?.name,src:p?.avatarUrl}),
504
- /* @__PURE__ */jl.jsx(gm,{children:p?.name?.[0]})]}),
505
- /* @__PURE__ */jl.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:p?.name}),
506
- /* @__PURE__ */jl.jsxs("div",{className:"text-muted-foreground/80 text-xs leading-none",children:[
507
- /* @__PURE__ */jl.jsx("span",{className:"mr-1",children:zm(new Date(r.createdAt))}),r.isEdited&&/* @__PURE__ */jl.jsx("span",{children:"(edited)"})]}),g&&(N||_)&&/* @__PURE__ */jl.jsxs("div",{className:"absolute top-0 right-0 flex space-x-1",children:[0===a&&/* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"h-6 p-1 text-muted-foreground",onClick:()=>{(async e=>{const t=h.getOption(Om,"discussions").map(t=>t.id===e?{...t,isResolved:!0}:t);h.setOption(Om,"discussions",t)})(r.discussionId),f.comment.unsetMark({id:r.discussionId})},type:"button",children:/* @__PURE__ */jl.jsx(pt,{className:"size-4"})}),
508
- /* @__PURE__ */jl.jsx(Nm,{onCloseAutoFocus:()=>{setTimeout(()=>{j.tf.focus({edge:"endEditor"})},0)},onRemoveComment:()=>{1===s&&(f.comment.unsetMark({id:r.discussionId}),(async e=>{const t=h.getOption(Om,"discussions").filter(t=>t.id!==e);h.setOption(Om,"discussions",t)})(r.discussionId))},comment:r,dropdownOpen:_,setDropdownOpen:z,setEditingId:l})]})]}),y&&c&&/* @__PURE__ */jl.jsxs("div",{className:"relative mt-1 flex pl-[32px] text-sm text-subtle-foreground",children:[s>1&&/* @__PURE__ */jl.jsx("div",{className:"absolute top-[5px] left-3 h-full w-0.5 shrink-0 bg-muted"}),
509
- /* @__PURE__ */jl.jsx("div",{className:"my-px w-0.5 shrink-0 bg-highlight"}),n&&/* @__PURE__ */jl.jsx("div",{className:"ml-2",children:n})]}),
510
- /* @__PURE__ */jl.jsxs("div",{className:"relative my-1 pl-[26px]",children:[!w&&/* @__PURE__ */jl.jsx("div",{className:"absolute top-0 left-3 h-full w-0.5 shrink-0 bg-muted"}),
511
- /* @__PURE__ */jl.jsx(O,{readOnly:!k,editor:j,children:/* @__PURE__ */jl.jsxs(jm,{variant:"comment",children:[
512
- /* @__PURE__ */jl.jsx(ym,{variant:"comment",className:"w-auto grow",onClick:()=>u?.()}),k&&/* @__PURE__ */jl.jsxs("div",{className:"ml-auto flex shrink-0 gap-1",children:[
513
- /* @__PURE__ */jl.jsx(Ul,{size:"icon",variant:"ghost",className:"size-[28px]",onClick:e=>{e.stopPropagation(),l(null),j.tf.replaceNodes(b,{at:[],children:!0})},children:/* @__PURE__ */jl.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-primary/40",children:/* @__PURE__ */jl.jsx(gt,{className:"size-3 stroke-[3px] text-background"})})}),
514
- /* @__PURE__ */jl.jsx(Ul,{size:"icon",variant:"ghost",onClick:e=>{e.stopPropagation(),v()},children:/* @__PURE__ */jl.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-brand",children:/* @__PURE__ */jl.jsx(pt,{className:"size-3 stroke-[3px] text-background"})})})]})]})})]})]})}function Nm(t){const{comment:r,dropdownOpen:s,setDropdownOpen:n,setEditingId:o,onCloseAutoFocus:a,onRemoveComment:l}=t,i=m(),c=e.useRef(!1),d=e.useCallback(()=>{if(!r.id)return alert("You are operating too quickly, please try again later.");const e=i.getOption(Om,"discussions").map(e=>{if(e.id!==r.discussionId)return e;const t=e.comments.findIndex(e=>e.id===r.id);return-1===t?e:{...e,comments:[...e.comments.slice(0,t),...e.comments.slice(t+1)]}});i.setOption(Om,"discussions",e),l?.()},[r.discussionId,r.id,i,l]),u=e.useCallback(()=>{if(c.current=!0,!r.id)return alert("You are operating too quickly, please try again later.");o(r.id)},[r.id,o]);/* @__PURE__ */
515
- return jl.jsxs(Kl,{open:s,onOpenChange:n,modal:!1,children:[
516
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,onClick:e=>e.stopPropagation(),children:/* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:zl("h-6 p-1 text-muted-foreground"),children:/* @__PURE__ */jl.jsx(lr,{className:"size-4"})})}),
517
- /* @__PURE__ */jl.jsx(Ql,{className:"w-48",onCloseAutoFocus:e=>(c.current&&(a?.(),c.current=!1),e.preventDefault()),children:/* @__PURE__ */jl.jsxs(Jl,{children:[
518
- /* @__PURE__ */jl.jsxs(Xl,{onClick:u,children:[
519
- /* @__PURE__ */jl.jsx(Yr,{className:"size-4"}),"Edit comment"]}),
520
- /* @__PURE__ */jl.jsxs(Xl,{onClick:d,children:[
521
- /* @__PURE__ */jl.jsx(Gr,{className:"size-4"}),"Delete comment"]})]})})]})}ym.displayName="Editor",wm.displayName="EditorView";const Cm=(e={},t=[])=>R({id:"comment",plugins:El,value:[],...e},t);function _m({autoFocus:t=!1,className:r,discussionId:s,focusOnMount:n=!1}){const o=d(Om,"discussions"),a=m(),l=ja(),i=s??l,c=d(Om,"currentUser"),[u,h]=e.useState(),p=e.useMemo(()=>u?Z.string({children:u,type:q.p}):"",[u]),x=Cm();e.useEffect(()=>{x&&n&&x.tf.focus()},[x,n]);const f=e.useCallback(async()=>{if(!u)return;if(x.tf.reset(),i){const e=o.find(e=>e.id===i);if(!e){const e={id:i,comments:[{id:re(),contentRich:u,createdAt:/* @__PURE__ */new Date,discussionId:i,isEdited:!1,userId:a.getOption(Om,"currentUserId")}],createdAt:/* @__PURE__ */new Date,isResolved:!1,userId:a.getOption(Om,"currentUserId")};return void a.setOption(Om,"discussions",[...o,e])}const t={id:re(),contentRich:u,createdAt:/* @__PURE__ */new Date,discussionId:i,isEdited:!1,userId:a.getOption(Om,"currentUserId")},r={...e,comments:[...e.comments,t]},s=o.filter(e=>e.id!==i).concat(r);return void a.setOption(Om,"discussions",s)}const e=a.getApi(va).comment.nodes({at:[],isDraft:!0});if(0===e.length)return;const t=e.map(([e])=>e.text).join(""),r=re(),s={id:r,comments:[{id:re(),contentRich:u,createdAt:/* @__PURE__ */new Date,discussionId:r,isEdited:!1,userId:a.getOption(Om,"currentUserId")}],createdAt:/* @__PURE__ */new Date,documentContent:t,isResolved:!1,userId:a.getOption(Om,"currentUserId")};a.setOption(Om,"discussions",[...o,s]);const n=s.id;e.forEach(([,e])=>{a.tf.setNodes({[Vs(n)]:!0},{at:e,split:!0}),a.tf.unsetNodes([Hs()],{at:e})})},[u,x.tf,i,a,o]);/* @__PURE__ */
522
- return jl.jsxs("div",{className:zl("flex w-full",r),children:[
523
- /* @__PURE__ */jl.jsx("div",{className:"mt-2 mr-1 shrink-0",children:/* @__PURE__ */jl.jsxs(xm,{className:"size-5",children:[
524
- /* @__PURE__ */jl.jsx(fm,{alt:c?.name,src:c?.avatarUrl}),
525
- /* @__PURE__ */jl.jsx(gm,{children:c?.name?.[0]})]})}),
526
- /* @__PURE__ */jl.jsx("div",{className:"relative flex grow gap-2",children:/* @__PURE__ */jl.jsx(O,{onChange:({value:e})=>{h(e)},editor:x,children:/* @__PURE__ */jl.jsxs(jm,{variant:"comment",children:[
527
- /* @__PURE__ */jl.jsx(ym,{variant:"comment",className:"min-h-[25px] grow pt-0.5 pr-8",onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),f())},placeholder:"Reply...",autoComplete:"off",autoFocus:t}),
528
- /* @__PURE__ */jl.jsx(Ul,{size:"icon",variant:"ghost",className:"absolute right-0.5 bottom-0.5 ml-auto size-6 shrink-0",disabled:0===p.trim().length,onClick:e=>{e.stopPropagation(),f()},children:/* @__PURE__ */jl.jsx("div",{className:"flex size-6 items-center justify-center rounded-full",children:/* @__PURE__ */jl.jsx(Kr,{})})})]})})})]})}const zm=e=>{const t=/* @__PURE__ */new Date,r=wa(t,e),s=ka(t,e),n=Na(t,e);return r<60?`${r}m`:s<24?`${s}h`:n<2?`${n}d`:Ca(e,"MM/dd/yyyy")},Sm="__block__",Em={[q.audio]:()=>"Audio",[q.blockquote]:()=>"Blockquote",[q.callout]:()=>"Callout",[q.codeBlock]:()=>"Code Block",[q.column]:()=>"Column",[q.equation]:()=>"Equation",[q.file]:()=>"File",[q.h1]:()=>"Heading 1",[q.h2]:()=>"Heading 2",[q.h3]:()=>"Heading 3",[q.h4]:()=>"Heading 4",[q.h5]:()=>"Heading 5",[q.h6]:()=>"Heading 6",[q.hr]:()=>"Horizontal Rule",[q.img]:()=>"Image",[q.mediaEmbed]:()=>"Media",[q.p]:e=>e?.[q.listType]===q.listTodo?"Todo List":e?.[q.listType]===q.ol?"Ordered List":e?.[q.listType]===q.ul?"List":"Paragraph",[q.table]:()=>"Table",[q.toc]:()=>"Table of Contents",[q.toggle]:()=>"Toggle",[q.video]:()=>"Video"};function Bm({idx:t,isLast:r,suggestion:s}){const{api:n,editor:o}=i(to),a=d(Om,"user",s.userId),[l,c]=e.useState(!1),u=e=>e===Sm?["line breaks"]:e.split(Sm).filter(Boolean),[m,h]=e.useState(null);/* @__PURE__ */
529
- return jl.jsxs("div",{className:"relative",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[
530
- /* @__PURE__ */jl.jsxs("div",{className:"flex flex-col p-4",children:[
531
- /* @__PURE__ */jl.jsxs("div",{className:"relative flex items-center",children:[
532
- /* @__PURE__ */jl.jsxs(xm,{className:"size-5",children:[
533
- /* @__PURE__ */jl.jsx(fm,{alt:a?.name,src:a?.avatarUrl}),
534
- /* @__PURE__ */jl.jsx(gm,{children:a?.name?.[0]})]}),
535
- /* @__PURE__ */jl.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:a?.name}),
536
- /* @__PURE__ */jl.jsx("div",{className:"text-muted-foreground/80 text-xs leading-none",children:/* @__PURE__ */jl.jsx("span",{className:"mr-1",children:zm(new Date(s.createdAt))})})]}),
537
- /* @__PURE__ */jl.jsx("div",{className:"relative mt-1 mb-4 pl-[32px]",children:/* @__PURE__ */jl.jsxs("div",{className:"flex flex-col gap-2",children:["remove"===s.type&&u(s.text).map((e,t)=>/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-2",children:[
538
- /* @__PURE__ */jl.jsx("span",{className:"text-muted-foreground text-sm",children:"Delete:"}),
539
- /* @__PURE__ */jl.jsx("span",{className:"text-sm",children:e},t)]},t)),"insert"===s.type&&u(s.newText).map((e,t)=>/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-2",children:[
540
- /* @__PURE__ */jl.jsx("span",{className:"text-muted-foreground text-sm",children:"Add:"}),
541
- /* @__PURE__ */jl.jsx("span",{className:"text-sm",children:e||"line breaks"},t)]},t)),"replace"===s.type&&/* @__PURE__ */jl.jsxs("div",{className:"flex flex-col gap-2",children:[u(s.newText).map((t,r)=>/* @__PURE__ */jl.jsx(e.Fragment,{children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-start gap-2 text-brand/80",children:[
542
- /* @__PURE__ */jl.jsx("span",{className:"text-sm",children:"with:"}),
543
- /* @__PURE__ */jl.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r)),u(s.text).map((t,r)=>/* @__PURE__ */jl.jsx(e.Fragment,{children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-start gap-2",children:[
544
- /* @__PURE__ */jl.jsx("span",{className:"text-muted-foreground text-sm",children:0===r?"Replace:":"Delete:"}),
545
- /* @__PURE__ */jl.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r))]}),"update"===s.type&&/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-2",children:[
546
- /* @__PURE__ */jl.jsxs("span",{className:"text-muted-foreground text-sm",children:[Object.keys(s.properties).map(e=>/* @__PURE__ */jl.jsxs("span",{children:["Un",e]},e)),Object.keys(s.newProperties).map(e=>/* @__PURE__ */jl.jsx("span",{children:e.charAt(0).toUpperCase()+e.slice(1)},e))]}),
547
- /* @__PURE__ */jl.jsx("span",{className:"text-sm",children:s.newText})]})]})}),s.comments.map((e,t)=>/* @__PURE__ */jl.jsx(km,{comment:e,discussionLength:s.comments.length,documentContent:"__suggestion__",editingId:m,index:t,setEditingId:h},e.id??t)),l&&/* @__PURE__ */jl.jsxs("div",{className:"absolute top-4 right-4 flex gap-2",children:[
548
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{xa(o,e)});var e},children:/* @__PURE__ */jl.jsx(pt,{className:"size-4"})}),
549
- /* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{fa(o,e)});var e},children:/* @__PURE__ */jl.jsx(gt,{className:"size-4"})})]}),
550
- /* @__PURE__ */jl.jsx(_m,{discussionId:s.suggestionId})]}),!r&&/* @__PURE__ */jl.jsx("div",{className:"h-px w-full bg-muted"})]},`${s.suggestionId}-${t}`)}const Am=({blockPath:t,children:r,commentNodes:s,draftCommentNode:n,suggestionNodes:o})=>{const a=m(),l=((t,r)=>{const s=d(Om,"discussions"),{api:n,editor:o,getOption:a,setOption:l}=i(Rm);return t.forEach(([e])=>{const t=n.suggestion.nodeId(e),s=a("uniquePathMap");if(!t)return;const o=s.get(t);if(K.isPath(o)){const e=n.suggestion.node({id:t,at:o,isText:!0}),a=n.node(o);let i=null;a&&se.isElement(a[0])&&(i=n.suggestion.nodeId(a[0])??null),e||i===t||l("uniquePathMap",new Map(s).set(t,r))}else l("uniquePathMap",new Map(s).set(t,r))}),e.useMemo(()=>{const e=a("uniquePathMap");if(0===t.length)return[];const l=new Set(t.flatMap(([e])=>{if(ne.isText(e)){const t=n.suggestion.dataList(e);return t.some(e=>"update"===e.type)?t.filter(e=>"update"===e.type).map(e=>e.id):n.suggestion.nodeId(e)??[]}return se.isElement(e)?n.suggestion.nodeId(e)??[]:[]}).filter(Boolean)),i=[];return l.forEach(t=>{if(!t)return;const a=e.get(t);if(!a||!K.isPath(a))return;if(!K.equals(a,r))return;const l=[...o.api.nodes({at:[],mode:"all",match:e=>e[q.suggestion]&&e[ha(t)]||n.suggestion.nodeId(e)===t})];l.sort(([,e],[,t])=>K.isChild(e,t)?-1:1);let c="",d="",u={},m={};if(l.forEach(([e])=>{if(ne.isText(e))n.suggestion.dataList(e).forEach(r=>{if(r.id===t)switch(r.type){case"insert":c+=e.text;break;case"remove":d+=e.text;break;case"update":u={...u,...r.properties},m={...m,...r.newProperties},c+=e.text}});else{const r=n.suggestion.isBlockSuggestion(e)?e.suggestion:void 0;r?.id===pa(t)&&("insert"===r.type?c+=r.isLineBreak?Sm:Sm+Em[e.type](e):"remove"===r.type&&(d+=r.isLineBreak?Sm:Sm+Em[e.type](e)))}}),0===l.length)return;const h=n.suggestion.suggestionData(l[0][0]);if(!h)return;const p=s.find(e=>e.id===t)?.comments||[],x=new Date(h.createdAt),f=ha(t);"update"===h.type?i.push({comments:p,createdAt:x,keyId:f,newProperties:m,newText:c,properties:u,suggestionId:pa(t),type:"update",userId:h.userId}):c.length>0&&d.length>0?i.push({comments:p,createdAt:x,keyId:f,newText:c,suggestionId:pa(t),text:d,type:"replace",userId:h.userId}):c.length>0?i.push({comments:p,createdAt:x,keyId:f,newText:c,suggestionId:pa(t),type:"insert",userId:h.userId}):d.length>0&&i.push({comments:p,createdAt:x,keyId:f,suggestionId:pa(t),text:d,type:"remove",userId:h.userId})}),i},[n.suggestion,r,s,o.api,a,t])})(o,t),c=Tm(s,t),u=l.length,h=c.length,p=u+h,x=d(Rm,"activeId"),f=x&&l.find(e=>e.suggestionId===x),g=d(ic,"commentingBlock"),b=d(ic,"activeId"),j=b===Hs(),v=b&&c.find(e=>e.id===b),y=!f&&!v,w=[...c,...l].sort((e,t)=>e.createdAt.getTime()-t.createdAt.getTime()),k=c.some(e=>e.id===b)||l.some(e=>e.suggestionId===x),[N,C]=e.useState(k),_=!!g&&K.equals(t,g),z=N||k||j&&!!n&&_,S=e.useMemo(()=>{let e;return f&&(e=o.find(([e])=>ne.isText(e)&&a.getApi(to).suggestion.nodeId(e)===f.suggestionId)),b&&(e=b===Hs()?n:s.find(([e])=>a.getApi(ic).comment.nodeId(e)===b)),e?a.api.toDOMNode(e[0]):null},[z,f,b,a.api,o,n,s]);return u+c.length!==0||n?/* @__PURE__ */jl.jsx("div",{className:"flex w-full justify-between",children:/* @__PURE__ */jl.jsxs(Ui,{open:z,onOpenChange:e=>{!e&&j&&n&&a.tf.unsetNodes(Hs(),{at:[],mode:"lowest",match:e=>e[Hs()]}),C(e)},children:[
551
- /* @__PURE__ */jl.jsx("div",{className:"w-full",children:r}),S&&/* @__PURE__ */jl.jsx(Wi,{asChild:!0,className:"w-full",virtualRef:{current:S}}),
552
- /* @__PURE__ */jl.jsx($i,{className:"max-h-[min(50dvh,calc(-24px+var(--radix-popper-available-height)))] w-[380px] min-w-[130px] max-w-[calc(100vw-24px)] overflow-y-auto p-0 data-[state=closed]:opacity-0",onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"bottom",children:j?/* @__PURE__ */jl.jsx(_m,{className:"p-4",focusOnMount:!0}):y?w.map((e,t)=>"suggestionId"in e?/* @__PURE__ */jl.jsx(Bm,{idx:t,isLast:t===w.length-1,suggestion:e},e.suggestionId):/* @__PURE__ */jl.jsx(Im,{discussion:e,isLast:t===w.length-1},e.id)):/* @__PURE__ */jl.jsxs(jl.Fragment,{children:[f&&/* @__PURE__ */jl.jsx(Bm,{idx:0,isLast:!0,suggestion:f},f.suggestionId),v&&/* @__PURE__ */jl.jsx(Im,{discussion:v,isLast:!0})]})}),p>0&&/* @__PURE__ */jl.jsx("div",{className:"relative left-0 size-0 select-none",children:/* @__PURE__ */jl.jsx(qi,{asChild:!0,children:/* @__PURE__ */jl.jsxs(Ul,{variant:"ghost",className:"!px-1.5 mt-1 ml-1 flex h-6 gap-1 py-0 text-muted-foreground/80 hover:text-muted-foreground/80 data-[active=true]:bg-muted","data-active":z,contentEditable:!1,children:[u>0&&0===h&&/* @__PURE__ */jl.jsx(Qr,{className:"size-4 shrink-0"}),0===u&&h>0&&/* @__PURE__ */jl.jsx(Jr,{className:"size-4 shrink-0"}),u>0&&h>0&&/* @__PURE__ */jl.jsx(Xr,{className:"size-4 shrink-0"}),
553
- /* @__PURE__ */jl.jsx("span",{className:"font-semibold text-xs",children:p})]})})})]})}):/* @__PURE__ */jl.jsx("div",{className:"w-full",children:r})};function Im({discussion:t,isLast:r}){const[s,n]=e.useState(null);/* @__PURE__ */
554
- return jl.jsxs(e.Fragment,{children:[
555
- /* @__PURE__ */jl.jsxs("div",{className:"p-4",children:[t.comments.map((e,r)=>/* @__PURE__ */jl.jsx(km,{comment:e,discussionLength:t.comments.length,documentContent:t?.documentContent,editingId:s,index:r,setEditingId:n,showDocumentContent:!0},e.id??r)),
556
- /* @__PURE__ */jl.jsx(_m,{discussionId:t.id})]}),!r&&/* @__PURE__ */jl.jsx("div",{className:"h-px w-full bg-muted"})]},t.id)}const Tm=(e,t)=>{const{api:r,getOption:s,setOption:n}=i(ic),o=d(Om,"discussions");e.forEach(([e])=>{const o=r.comment.nodeId(e),a=s("uniquePathMap");if(!o)return;const l=a.get(o);if(K.isPath(l)){return r.comment.node({id:o,at:l})?void 0:void n("uniquePathMap",new Map(a).set(o,t))}n("uniquePathMap",new Map(a).set(o,t))});const a=new Set(e.map(([e])=>r.comment.nodeId(e)).filter(Boolean));return o.map(e=>({...e,createdAt:new Date(e.createdAt)})).filter(e=>{const n=s("uniquePathMap").get(e.id);return!!n&&(!!K.equals(n,t)&&(r.comment.has({id:e.id})&&a.has(e.id)&&!e.isResolved))})},Dm=e=>`https://api.dicebear.com/9.x/glass/svg?seed=${e}`,Om=N({key:"discussion",options:{currentUserId:"alice",discussions:[{id:"discussion1",comments:[{id:"comment1",contentRich:[{children:[{text:"Comments are a great way to provide feedback and discuss changes."}],type:"p"}],createdAt:new Date(Date.now()-6e5),discussionId:"discussion1",isEdited:!1,userId:"charlie"},{id:"comment2",contentRich:[{children:[{text:"Agreed! The link to the docs makes it easy to learn more."}],type:"p"}],createdAt:new Date(Date.now()-5e5),discussionId:"discussion1",isEdited:!1,userId:"bob"}],createdAt:/* @__PURE__ */new Date,documentContent:"comments",isResolved:!1,userId:"charlie"},{id:"discussion2",comments:[{id:"comment1",contentRich:[{children:[{text:"Nice demonstration of overlapping annotations with both comments and suggestions!"}],type:"p"}],createdAt:new Date(Date.now()-3e5),discussionId:"discussion2",isEdited:!1,userId:"bob"},{id:"comment2",contentRich:[{children:[{text:"This helps users understand how powerful the editor can be."}],type:"p"}],createdAt:new Date(Date.now()-2e5),discussionId:"discussion2",isEdited:!1,userId:"charlie"}],createdAt:/* @__PURE__ */new Date,documentContent:"overlapping",isResolved:!1,userId:"bob"}],users:{alice:{id:"alice",avatarUrl:Dm("alice6"),name:"Alice"},bob:{id:"bob",avatarUrl:Dm("bob4"),name:"Bob"},charlie:{id:"charlie",avatarUrl:Dm("charlie2"),name:"Charlie"}}}}).configure({render:{aboveNodes:e=>{const{editor:t,element:r}=e,s=t.getApi(va).comment,n=t.api.findPath(r);if(!n||n.length>1)return;const o=s.node({at:n,isDraft:!0}),a=[...s.nodes({at:n})],l=[...t.getApi(to).suggestion.nodes({at:n})].filter(([e])=>!e[ga()]);return 0!==a.length||0!==l.length||o?e=>/* @__PURE__ */jl.jsx(Am,{blockPath:n,commentNodes:a,draftCommentNode:o,suggestionNodes:l,...e}):void 0}}}).extendSelectors(({getOption:e})=>({currentUser:()=>e("users")[e("currentUserId")],user:t=>e("users")[t]})),Rm=b(ba,({editor:e})=>({options:{activeId:null,currentUserId:e.getOption(Om,"currentUserId"),hoverId:null,uniquePathMap:/* @__PURE__ */new Map}})).configure({handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a="true"===n.dataset.blockSuggestion,l=()=>{r("activeId",null),o=!0};for(Y(n)||a||l();n.parentElement&&!oe(n.parentElement);){const t="true"===n.dataset.blockSuggestion;if(n.classList.contains(`slate-${s}`)||t){const s=e.suggestion.node({isText:!t});if(!s){l();break}const n=e.suggestion.nodeId(s[0]);r("activeId",n??null),o=!0;break}n=n.parentElement}o||l()}},render:{belowNodes:({api:e,element:t})=>{if(!e.suggestion.isBlockSuggestion(t))return;const r=t.suggestion;return function({children:e}){/* @__PURE__ */
557
- return jl.jsx(pm,{suggestionData:r,children:e})}},node:function(e){const{api:t,setOption:r}=i(Rm),s=e.leaf,n=t.suggestion.nodeId(s)??"",o=d(Rm,"activeId"),a=d(Rm,"hoverId"),c=t.suggestion.dataList(s),u=c.some(e=>"remove"===e.type),m=c.some(e=>e.id===o),h=c.some(e=>e.id===a),p={delete:"del",insert:"ins",update:"span"}[u?"delete":"insert"];/* @__PURE__ */
558
- return jl.jsx(l,{...e,as:p,className:zl(hm({insertActive:m||h,remove:u,removeActive:(m||h)&&u})),attributes:{...e.attributes,onMouseEnter:()=>r("hoverId",n),onMouseLeave:()=>r("hoverId",null)},children:e.children})}}}),Mm=[Rm];function Fm(e){/* @__PURE__ */
559
- return jl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
560
- /* @__PURE__ */jl.jsx("title",{children:"Border All"}),
561
- /* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",fill:"currentColor",fillRule:"evenodd"}),
562
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
563
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
564
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
565
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
566
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
567
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
568
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
569
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
570
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"})]})}function Lm(e){/* @__PURE__ */
571
- return jl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
572
- /* @__PURE__ */jl.jsx("title",{children:"Border Bottom"}),
573
- /* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M1 13.25L14 13.25V14.75L1 14.75V13.25Z",fill:"currentColor",fillRule:"evenodd"}),
574
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
575
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5"}),
576
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
577
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3"}),
578
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
579
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1"}),
580
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7"}),
581
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1"}),
582
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
583
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1"}),
584
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
585
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1"}),
586
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
587
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1"}),
588
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
589
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1"}),
590
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
591
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9"}),
592
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"}),
593
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11"}),
594
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5"}),
595
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3"}),
596
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7"}),
597
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1"}),
598
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9"}),
599
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11"})]})}function Pm(e){/* @__PURE__ */
600
- return jl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
601
- /* @__PURE__ */jl.jsx("title",{children:"Border Left"}),
602
- /* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M1.75 1L1.75 14L0.249999 14L0.25 1L1.75 1Z",fill:"currentColor",fillRule:"evenodd"}),
603
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 7)",width:"1",x:"10",y:"7"}),
604
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 13)",width:"1",x:"10",y:"13"}),
605
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 7)",width:"1",x:"12",y:"7"}),
606
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 13)",width:"1",x:"12",y:"13"}),
607
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 7)",width:"1",x:"8",y:"7"}),
608
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 7)",width:"1",x:"14",y:"7"}),
609
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 13)",width:"1",x:"8",y:"13"}),
610
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 13)",width:"1",x:"14",y:"13"}),
611
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 5)",width:"1",x:"8",y:"5"}),
612
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 5)",width:"1",x:"14",y:"5"}),
613
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 3)",width:"1",x:"8",y:"3"}),
614
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 3)",width:"1",x:"14",y:"3"}),
615
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 9)",width:"1",x:"8",y:"9"}),
616
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 9)",width:"1",x:"14",y:"9"}),
617
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 11)",width:"1",x:"8",y:"11"}),
618
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 11)",width:"1",x:"14",y:"11"}),
619
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 7)",width:"1",x:"6",y:"7"}),
620
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 13)",width:"1",x:"6",y:"13"}),
621
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 7)",width:"1",x:"4",y:"7"}),
622
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 13)",width:"1",x:"4",y:"13"}),
623
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 1)",width:"1",x:"10",y:"1"}),
624
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 1)",width:"1",x:"12",y:"1"}),
625
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 1)",width:"1",x:"8",y:"1"}),
626
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 1)",width:"1",x:"14",y:"1"}),
627
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 1)",width:"1",x:"6",y:"1"}),
628
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 1)",width:"1",x:"4",y:"1"})]})}function Hm(e){/* @__PURE__ */
629
- return jl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
630
- /* @__PURE__ */jl.jsx("title",{children:"Border None"}),
631
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5.025"}),
632
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5.025"}),
633
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3.025"}),
634
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3.025"}),
635
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7.025"}),
636
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"13.025"}),
637
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1.025"}),
638
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7.025"}),
639
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"13.025"}),
640
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1.025"}),
641
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7.025"}),
642
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"13.025"}),
643
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1.025"}),
644
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7.025"}),
645
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"13.025"}),
646
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1.025"}),
647
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7.025"}),
648
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"13.025"}),
649
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1.025"}),
650
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7.025"}),
651
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"13.025"}),
652
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1.025"}),
653
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9.025"}),
654
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9.025"}),
655
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11.025"}),
656
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11.025"}),
657
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5.025"}),
658
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3.025"}),
659
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7.025"}),
660
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"13.025"}),
661
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1.025"}),
662
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9.025"}),
663
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11.025"})]})}function Vm(e){/* @__PURE__ */
664
- return jl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
665
- /* @__PURE__ */jl.jsx("title",{children:"Border Right"}),
666
- /* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M13.25 1L13.25 14L14.75 14L14.75 1L13.25 1Z",fill:"currentColor",fillRule:"evenodd"}),
667
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 7)",width:"1"}),
668
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 13)",width:"1"}),
669
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 7)",width:"1"}),
670
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 13)",width:"1"}),
671
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 7)",width:"1"}),
672
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 7)",width:"1"}),
673
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 13)",width:"1"}),
674
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 13)",width:"1"}),
675
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 5)",width:"1"}),
676
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 5)",width:"1"}),
677
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 3)",width:"1"}),
678
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 3)",width:"1"}),
679
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 9)",width:"1"}),
680
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 9)",width:"1"}),
681
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 11)",width:"1"}),
682
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 11)",width:"1"}),
683
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 7)",width:"1"}),
684
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 13)",width:"1"}),
685
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 7)",width:"1"}),
686
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 13)",width:"1"}),
687
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 1)",width:"1"}),
688
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 1)",width:"1"}),
689
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 1)",width:"1"}),
690
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 1)",width:"1"}),
691
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 1)",width:"1"}),
692
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 1)",width:"1"})]})}function Um(e){/* @__PURE__ */
693
- return jl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
694
- /* @__PURE__ */jl.jsx("title",{children:"Border Top"}),
695
- /* @__PURE__ */jl.jsx("path",{clipRule:"evenodd",d:"M14 1.75L1 1.75L1 0.249999L14 0.25L14 1.75Z",fill:"currentColor",fillRule:"evenodd"}),
696
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 10)",width:"1",x:"8",y:"10"}),
697
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 10)",width:"1",x:"2",y:"10"}),
698
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 12)",width:"1",x:"8",y:"12"}),
699
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 12)",width:"1",x:"2",y:"12"}),
700
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 8)",width:"1",x:"8",y:"8"}),
701
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 14)",width:"1",x:"8",y:"14"}),
702
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 8)",width:"1",x:"2",y:"8"}),
703
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 14)",width:"1",x:"2",y:"14"}),
704
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 8)",width:"1",x:"10",y:"8"}),
705
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 14)",width:"1",x:"10",y:"14"}),
706
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 8)",width:"1",x:"12",y:"8"}),
707
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 14)",width:"1",x:"12",y:"14"}),
708
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 8)",width:"1",x:"6",y:"8"}),
709
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 14)",width:"1",x:"6",y:"14"}),
710
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 8)",width:"1",x:"4",y:"8"}),
711
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 14)",width:"1",x:"4",y:"14"}),
712
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 6)",width:"1",x:"8",y:"6"}),
713
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 6)",width:"1",x:"2",y:"6"}),
714
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 4)",width:"1",x:"8",y:"4"}),
715
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 4)",width:"1",x:"2",y:"4"}),
716
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 10)",width:"1",x:"14",y:"10"}),
717
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 12)",width:"1",x:"14",y:"12"}),
718
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 8)",width:"1",x:"14",y:"8"}),
719
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 14)",width:"1",x:"14",y:"14"}),
720
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 6)",width:"1",x:"14",y:"6"}),
721
- /* @__PURE__ */jl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 4)",width:"1",x:"14",y:"4"})]})}const qm=p(no,function({children:e,...t}){const n=s(),o=d(ot,"isSelectionAreaVisible"),a=!n&&!o,{isSelectingCell:l,marginLeft:i,props:c}=oo(),u=lt(t.element.id),m=/* @__PURE__ */jl.jsx(r,{...t,className:zl("overflow-x-auto py-5",a&&"-ml-2 *:data-[slot=block-selection]:left-2"),style:{paddingLeft:i},children:/* @__PURE__ */jl.jsxs("div",{className:"group/table relative w-fit",children:[
722
- /* @__PURE__ */jl.jsx("table",{className:zl("mr-0 ml-px table h-px table-fixed border-collapse",l&&"selection:bg-transparent"),...c,children:/* @__PURE__ */jl.jsx("tbody",{className:"min-w-full",children:e})}),u&&/* @__PURE__ */jl.jsx("div",{className:Fl(),contentEditable:!1})]})});return n?m:/* @__PURE__ */jl.jsx($m,{children:m})});function $m({children:e,...t}){const{tf:r}=i(ro),s=n(),o=h(),{props:a}=x({element:o}),l=f(e=>s&&e.api.isCollapsed(),[s]),c=g(),{canMerge:d,canSplit:u}=so();/* @__PURE__ */
723
- return jl.jsxs(Ui,{open:c&&(d||u||l),modal:!1,children:[
724
- /* @__PURE__ */jl.jsx(hs,{asChild:!0,children:e}),
725
- /* @__PURE__ */jl.jsx($i,{asChild:!0,onOpenAutoFocus:e=>e.preventDefault(),contentEditable:!1,...t,children:/* @__PURE__ */jl.jsxs(ci,{className:"scrollbar-hide flex w-auto max-w-[80vw] flex-row overflow-x-auto rounded-md border bg-popover p-1 shadow-md print:hidden",contentEditable:!1,children:[
726
- /* @__PURE__ */jl.jsxs(ji,{children:[
727
- /* @__PURE__ */jl.jsx(Zm,{tooltip:"Background color",children:/* @__PURE__ */jl.jsx(_r,{})}),d&&/* @__PURE__ */jl.jsx(hi,{onClick:()=>r.table.merge(),onMouseDown:e=>e.preventDefault(),tooltip:"Merge cells",children:/* @__PURE__ */jl.jsx(es,{})}),u&&/* @__PURE__ */jl.jsx(hi,{onClick:()=>r.table.split(),onMouseDown:e=>e.preventDefault(),tooltip:"Split cell",children:/* @__PURE__ */jl.jsx(ts,{})}),
728
- /* @__PURE__ */jl.jsxs(Kl,{modal:!1,children:[
729
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{tooltip:"Cell borders",children:/* @__PURE__ */jl.jsx(rs,{})})}),
730
- /* @__PURE__ */jl.jsx(Yl,{children:/* @__PURE__ */jl.jsx(Wm,{})})]}),l&&/* @__PURE__ */jl.jsx(ji,{children:/* @__PURE__ */jl.jsx(hi,{tooltip:"Delete table",...a,children:/* @__PURE__ */jl.jsx(At,{})})})]}),l&&/* @__PURE__ */jl.jsxs(ji,{children:[
731
- /* @__PURE__ */jl.jsx(hi,{onClick:()=>{r.insert.tableRow({before:!0})},onMouseDown:e=>e.preventDefault(),tooltip:"Insert row before",children:/* @__PURE__ */jl.jsx(pr,{})}),
732
- /* @__PURE__ */jl.jsx(hi,{onClick:()=>{r.insert.tableRow()},onMouseDown:e=>e.preventDefault(),tooltip:"Insert row after",children:/* @__PURE__ */jl.jsx(xr,{})}),
733
- /* @__PURE__ */jl.jsx(hi,{onClick:()=>{r.remove.tableRow()},onMouseDown:e=>e.preventDefault(),tooltip:"Delete row",children:/* @__PURE__ */jl.jsx(gt,{})})]}),l&&/* @__PURE__ */jl.jsxs(ji,{children:[
734
- /* @__PURE__ */jl.jsx(hi,{onClick:()=>{r.insert.tableColumn({before:!0})},onMouseDown:e=>e.preventDefault(),tooltip:"Insert column before",children:/* @__PURE__ */jl.jsx(fr,{})}),
735
- /* @__PURE__ */jl.jsx(hi,{onClick:()=>{r.insert.tableColumn()},onMouseDown:e=>e.preventDefault(),tooltip:"Insert column after",children:/* @__PURE__ */jl.jsx(gr,{})}),
736
- /* @__PURE__ */jl.jsx(hi,{onClick:()=>{r.remove.tableColumn()},onMouseDown:e=>e.preventDefault(),tooltip:"Delete column",children:/* @__PURE__ */jl.jsx(gt,{})})]})]})})]})}function Wm(e){const t=m(),{getOnSelectTableBorder:r,hasBottomBorder:s,hasLeftBorder:n,hasNoBorders:o,hasOuterBorders:a,hasRightBorder:l,hasTopBorder:i}=ao();/* @__PURE__ */
737
- return jl.jsxs(Ql,{className:"min-w-[220px]",onCloseAutoFocus:e=>{e.preventDefault(),t.tf.focus()},align:"start",side:"right",sideOffset:0,...e,children:[
738
- /* @__PURE__ */jl.jsxs(Jl,{children:[
739
- /* @__PURE__ */jl.jsxs(ei,{checked:i,onCheckedChange:r("top"),children:[
740
- /* @__PURE__ */jl.jsx(Um,{}),
741
- /* @__PURE__ */jl.jsx("div",{children:"Top Border"})]}),
742
- /* @__PURE__ */jl.jsxs(ei,{checked:l,onCheckedChange:r("right"),children:[
743
- /* @__PURE__ */jl.jsx(Vm,{}),
744
- /* @__PURE__ */jl.jsx("div",{children:"Right Border"})]}),
745
- /* @__PURE__ */jl.jsxs(ei,{checked:s,onCheckedChange:r("bottom"),children:[
746
- /* @__PURE__ */jl.jsx(Lm,{}),
747
- /* @__PURE__ */jl.jsx("div",{children:"Bottom Border"})]}),
748
- /* @__PURE__ */jl.jsxs(ei,{checked:n,onCheckedChange:r("left"),children:[
749
- /* @__PURE__ */jl.jsx(Pm,{}),
750
- /* @__PURE__ */jl.jsx("div",{children:"Left Border"})]})]}),
751
- /* @__PURE__ */jl.jsxs(Jl,{children:[
752
- /* @__PURE__ */jl.jsxs(ei,{checked:o,onCheckedChange:r("none"),children:[
753
- /* @__PURE__ */jl.jsx(Hm,{}),
754
- /* @__PURE__ */jl.jsx("div",{children:"No Border"})]}),
755
- /* @__PURE__ */jl.jsxs(ei,{checked:a,onCheckedChange:r("outer"),children:[
756
- /* @__PURE__ */jl.jsx(Fm,{}),
757
- /* @__PURE__ */jl.jsx("div",{children:"Outside Borders"})]})]})]})}function Zm({children:t,tooltip:r}){const[s,n]=e.useState(!1),o=m(),a=d(ro,"selectedCells"),l=e.useCallback(e=>{n(!1),qs(o,{color:e,selectedCells:a??[]})},[a,o]),i=e.useCallback(()=>{n(!1),qs(o,{color:null,selectedCells:a??[]})},[a,o]);/* @__PURE__ */
758
- return jl.jsxs(Kl,{open:s,onOpenChange:n,modal:!1,children:[
759
- /* @__PURE__ */jl.jsx(Gl,{asChild:!0,children:/* @__PURE__ */jl.jsx(hi,{tooltip:r,children:t})}),
760
- /* @__PURE__ */jl.jsxs(Ql,{align:"start",children:[
761
- /* @__PURE__ */jl.jsx(yi,{label:"Colors",children:/* @__PURE__ */jl.jsx(fd,{className:"px-2",colors:gd,updateColor:l})}),
762
- /* @__PURE__ */jl.jsx(Jl,{children:/* @__PURE__ */jl.jsxs(Xl,{className:"p-2",onClick:i,children:[
763
- /* @__PURE__ */jl.jsx(Lt,{}),
764
- /* @__PURE__ */jl.jsx("span",{children:"Clear"})]})})]})]})}function Km({dragRef:e}){const t=m(),r=h();/* @__PURE__ */
765
- return jl.jsx(Ul,{ref:e,variant:"outline",className:zl("-translate-y-1/2 absolute top-1/2 left-0 z-51 h-6 w-4 p-0 focus-visible:ring-0 focus-visible:ring-offset-0","cursor-grab active:cursor-grabbing",'opacity-0 transition-opacity duration-100 group-hover/row:opacity-100 group-has-data-[resizing="true"]/row:opacity-0'),onClick:()=>{t.tf.select(r)},children:/* @__PURE__ */jl.jsx(Dt,{className:"text-muted-foreground"})})}function Ym(){const{dropLine:e}=as();return e?/* @__PURE__ */jl.jsx("div",{className:zl("absolute inset-x-0 left-2 z-50 h-0.5 bg-brand/50","top"===e?"-top-px":"-bottom-px")}):null}function Gm({isHeader:e,...t}){const{api:n}=i(ro),o=s(),a=t.element,l=M(([e])=>e.id,[],{key:q.table}),c=M(([e])=>e.id,[],{key:q.tr}),u=lt(l),m=lt(c)||u,h=d(ot,"isSelectionAreaVisible"),{borders:p,colIndex:x,colSpan:f,minHeight:g,rowIndex:b,selected:j,width:v}=lo(),{bottomProps:y,hiddenLeft:w,leftProps:k,rightProps:N}=io({colIndex:x,colSpan:f,rowIndex:b});/* @__PURE__ */
766
- return jl.jsxs(r,{...t,as:e?"th":"td",className:zl("h-full overflow-visible border-none bg-background p-0",a.background?"bg-(--cellBackground)":"bg-background",e&&"text-left *:m-0","before:size-full",j&&"before:z-10 before:bg-brand/5","before:absolute before:box-border before:select-none before:content-['']",p.bottom?.size&&"before:border-b before:border-b-border",p.right?.size&&"before:border-r before:border-r-border",p.left?.size&&"before:border-l before:border-l-border",p.top?.size&&"before:border-t before:border-t-border"),style:{"--cellBackground":a.background,maxWidth:v||240,minWidth:v||120},attributes:{...t.attributes,colSpan:n.table.getColSpan(a),rowSpan:n.table.getRowSpan(a)},children:[
767
- /* @__PURE__ */jl.jsx("div",{className:"relative z-20 box-border h-full px-3 py-2",style:{minHeight:g},children:t.children}),!h&&/* @__PURE__ */jl.jsx("div",{className:"group absolute top-0 size-full select-none",contentEditable:!1,suppressContentEditableWarning:!0,children:!o&&/* @__PURE__ */jl.jsxs(jl.Fragment,{children:[
768
- /* @__PURE__ */jl.jsx(Du,{...N,className:"-top-2 -right-1 h-[calc(100%_+_8px)] w-2","data-col":x}),
769
- /* @__PURE__ */jl.jsx(Du,{...y,className:"-bottom-1 h-2"}),!w&&/* @__PURE__ */jl.jsx(Du,{...k,className:"-left-1 top-0 w-2","data-resizer-left":0===x?"true":void 0}),
770
- /* @__PURE__ */jl.jsx("div",{className:zl("absolute top-0 z-30 hidden h-full w-1 bg-ring","right-[-1.5px]",Qm({colIndex:x}))}),0===x&&/* @__PURE__ */jl.jsx("div",{className:zl("absolute top-0 z-30 h-full w-1 bg-ring","left-[-1.5px]",'fade-in hidden animate-in group-has-[[data-resizer-left]:hover]/table:block group-has-[[data-resizer-left][data-resizing="true"]]/table:block')})]})}),m&&/* @__PURE__ */jl.jsx("div",{className:Fl(),contentEditable:!1})]})}const Qm=tt("fade-in hidden animate-in",{variants:{colIndex:{0:'group-has-[[data-col="0"]:hover]/table:block group-has-[[data-col="0"][data-resizing="true"]]/table:block',1:'group-has-[[data-col="1"]:hover]/table:block group-has-[[data-col="1"][data-resizing="true"]]/table:block',2:'group-has-[[data-col="2"]:hover]/table:block group-has-[[data-col="2"][data-resizing="true"]]/table:block',3:'group-has-[[data-col="3"]:hover]/table:block group-has-[[data-col="3"][data-resizing="true"]]/table:block',4:'group-has-[[data-col="4"]:hover]/table:block group-has-[[data-col="4"][data-resizing="true"]]/table:block',5:'group-has-[[data-col="5"]:hover]/table:block group-has-[[data-col="5"][data-resizing="true"]]/table:block',6:'group-has-[[data-col="6"]:hover]/table:block group-has-[[data-col="6"][data-resizing="true"]]/table:block',7:'group-has-[[data-col="7"]:hover]/table:block group-has-[[data-col="7"][data-resizing="true"]]/table:block',8:'group-has-[[data-col="8"]:hover]/table:block group-has-[[data-col="8"][data-resizing="true"]]/table:block',9:'group-has-[[data-col="9"]:hover]/table:block group-has-[[data-col="9"][data-resizing="true"]]/table:block',10:'group-has-[[data-col="10"]:hover]/table:block group-has-[[data-col="10"][data-resizing="true"]]/table:block'}}}),Jm=[ro.withComponent(qm),co.withComponent(function({children:e,...t}){const{element:o}=t,a=s(),l=n(),i=m(),c=d(ot,"isSelectionAreaVisible"),u=!a&&!c,{isDragging:h,nodeRef:p,previewRef:x,handleRef:f}=os({element:o,type:o.type,canDropNode:({dragEntry:e,dropEntry:t})=>K.equals(K.parent(e[1]),K.parent(t[1])),onDropHandler:(e,{dragItem:t})=>{const r=t.element;r&&i.tf.select(r)}});/* @__PURE__ */
771
- return jl.jsxs(r,{...t,ref:A(t.ref,x,p),as:"tr",className:zl("group/row",h&&"opacity-50"),attributes:{...t.attributes,"data-selected":l?"true":void 0},children:[u&&/* @__PURE__ */jl.jsxs("td",{className:"w-2 select-none",contentEditable:!1,children:[
772
- /* @__PURE__ */jl.jsx(Km,{dragRef:f}),
773
- /* @__PURE__ */jl.jsx(Ym,{})]}),e]})}),uo.withComponent(Gm),mo.withComponent(function(e){/* @__PURE__ */
774
- return jl.jsx(Gm,{...e,isHeader:!0})})],Xm=tt("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const eh=[Sa.configure({options:{topOffset:80}}).withComponent(function(e){const t=_a(),{props:s}=za(t),{headingList:n}=t;/* @__PURE__ */
775
- return jl.jsxs(r,{...e,className:"mb-1 p-0",children:[
776
- /* @__PURE__ */jl.jsx("div",{contentEditable:!1,children:n.length>0?n.map(e=>/* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:Xm({depth:e.depth}),onClick:t=>s.onClick(t,e,"smooth"),"aria-current":!0,children:e.title},e.id)):/* @__PURE__ */jl.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const th=[...fu,Aa.withComponent(function(e){const t=e.element,s=Ea(t.id),{buttonProps:n,open:o}=Ba(s);/* @__PURE__ */
777
- return jl.jsxs(r,{...e,className:"pl-6",children:[
778
- /* @__PURE__ */jl.jsx(Ul,{size:"icon",variant:"ghost",className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,...n,children:/* @__PURE__ */jl.jsx(ss,{className:o?"rotate-90 transition-transform duration-75":"rotate-0 transition-transform duration-75"})}),e.children]})})],rh=[...Sl,...Qi,...Jm,...th,...eh,...Qu,...Ri,...lc,...Nu,...xc,...xu,...dm,...El,...cu,...vu,...vl,...du,...cc,...Mm,...mm,...Nl,...mc,...Pl,...Nc,..._c,ae,...Cc,...yu,...Hl,...nu,...lu];function sh({initialValue:t,onChange:r,mode:s="draft"}){const n=R({plugins:rh,value:t});return e.useEffect(()=>{n.setOption(to,"isSuggesting","draft"===s)},[n,s]),/* @__PURE__ */jl.jsx("div",{className:"h-screen w-full bg-white rounded-sm border-1",children:/* @__PURE__ */jl.jsx(O,{editor:n,onChange:({value:e})=>{console.log(e),r?.(e)},children:/* @__PURE__ */jl.jsx(jm,{children:/* @__PURE__ */jl.jsx(ym,{variant:"fullWidth"})})})})}const nh=[Ia.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...q.heading,q.p,q.img,q.mediaEmbed]}})];const oh=tt("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function ah({variant:e="h1",...t}){/* @__PURE__ */
779
- return jl.jsx(tl,{as:e,className:oh({variant:e}),...t,children:t.children})}const lh=[le.withComponent(function(e){/* @__PURE__ */
780
- return jl.jsx(tl,{...e,className:zl("m-0 px-0 py-1"),children:e.children})}),Fa.withComponent(function(e){/* @__PURE__ */
781
- return jl.jsx(ah,{variant:"h1",...e})}),La.withComponent(function(e){/* @__PURE__ */
782
- return jl.jsx(ah,{variant:"h2",...e})}),Pa.withComponent(function(e){/* @__PURE__ */
783
- return jl.jsx(ah,{variant:"h3",...e})}),Ha.withComponent(function(e){/* @__PURE__ */
784
- return jl.jsx(ah,{variant:"h4",...e})}),Va.withComponent(function(e){/* @__PURE__ */
785
- return jl.jsx(ah,{variant:"h5",...e})}),Ua.withComponent(function(e){/* @__PURE__ */
786
- return jl.jsx(ah,{variant:"h6",...e})}),qa.withComponent(function(e){/* @__PURE__ */
787
- return jl.jsx(tl,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}),$a.withComponent(function(e){/* @__PURE__ */
788
- return jl.jsxs(tl,{...e,children:[
789
- /* @__PURE__ */jl.jsx("div",{className:"cursor-text py-6",contentEditable:!1,children:/* @__PURE__ */jl.jsx("hr",{className:zl("h-0.5 rounded-sm border-none bg-muted bg-clip-content")})}),e.children]})})];const ih=[Wa,Za,Ka,Ya.withComponent(function(e){/* @__PURE__ */
790
- return jl.jsx(rl,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}),Ga,Qa,Ja,Xa.withComponent(function(e){/* @__PURE__ */
791
- return jl.jsx(rl,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}),el.withComponent(function(e){/* @__PURE__ */
792
- return jl.jsx(rl,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];const ch=[Cn.withComponent(function({children:e,className:t,...r}){/* @__PURE__ */
793
- return jl.jsx(tl,{className:zl("my-1 flex rounded-sm bg-muted p-4 pl-3",t),style:{backgroundColor:r.element.backgroundColor},...r,children:/* @__PURE__ */jl.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
794
- /* @__PURE__ */jl.jsx("div",{className:"size-6 select-none text-[18px]",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},children:/* @__PURE__ */jl.jsx("span",{"data-plate-prevent-deserialization":!0,children:r.element.icon||"💡"})}),
795
- /* @__PURE__ */jl.jsx("div",{className:"w-full",children:e})]})})})];const dh=ws(ks),uh=[Ee.configure({node:{component:function(e){/* @__PURE__ */
796
- return jl.jsx(tl,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */jl.jsx("div",{className:"relative rounded-md bg-muted/50",children:/* @__PURE__ */jl.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */jl.jsx("code",{children:e.children})})})})}},options:{lowlight:dh}}),Be.withComponent(function(e){/* @__PURE__ */
797
- return jl.jsx(tl,{...e})}),Ae.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
798
- return jl.jsx(rl,{className:t,...e})})];const mh=[Bs.withComponent(function(e){/* @__PURE__ */
799
- return jl.jsx(tl,{className:"mb-2",...e,children:/* @__PURE__ */jl.jsx("div",{className:"flex size-full rounded",children:e.children})})}),As.withComponent(function(e){const{width:t}=e.element;/* @__PURE__ */
800
- return jl.jsx("div",{className:"group/column relative",style:{width:t??"100%"},children:/* @__PURE__ */jl.jsx(tl,{className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",...e,children:/* @__PURE__ */jl.jsx("div",{className:"relative h-full border border-transparent p-1.5",children:e.children})})})})];const hh=[Ps.withComponent(function(e){/* @__PURE__ */
801
- return jl.jsx(rl,{...e,className:"border-b-2 border-b-highlight/35 bg-highlight/15",children:e.children})})];const ph=[zn.withComponent(function(e){const{element:t}=e;/* @__PURE__ */
802
- return jl.jsxs(tl,{className:"inline-block",...e,children:[
803
- /* @__PURE__ */jl.jsx("span",{className:"w-fit rounded-sm bg-muted px-1 text-muted-foreground",children:t.date?(()=>{const e=/* @__PURE__ */new Date,r=new Date(t.date),s=r.getDate()===e.getDate()&&r.getMonth()===e.getMonth()&&r.getFullYear()===e.getFullYear(),n=new Date(e.setDate(e.getDate()-1)).toDateString()===r.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===r.toDateString();return s?"Today":n?"Yesterday":o?"Tomorrow":r.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */jl.jsx("span",{children:"Pick a date"})}),e.children]})})],xh={inject:{targetPlugins:[q.p]}},fh=[Ta.configure(xh),Da.configure(xh),Oa.configure(xh),Ra.configure(xh)],gh=[Ma.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...q.heading,q.p]}})];const bh=[zo.withComponent(function(e){/* @__PURE__ */
804
- return jl.jsx(tl,{...e,as:"a",className:"font-medium text-primary underline decoration-primary underline-offset-4",attributes:{...e.attributes,..._o(e.editor,e.element)},children:e.children})})],jh=[ol.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle]},options:{offset:24}})],vh={todo:{Li:function(e){/* @__PURE__ */
805
- return jl.jsx("li",{className:zl("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=e.element.checked;/* @__PURE__ */
806
- return jl.jsx("div",{contentEditable:!1,children:/* @__PURE__ */jl.jsx("button",{className:zl("peer -left-6 pointer-events-none absolute top-1 size-4 shrink-0 rounded-sm border border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e.className),"data-state":t?"checked":"unchecked",type:"button",children:/* @__PURE__ */jl.jsx("div",{className:zl("flex items-center justify-center text-current"),children:t&&/* @__PURE__ */jl.jsx(pt,{className:"size-4"})})})})}}};function yh(e){const{listStart:t,listStyleType:r}=e.element,{Li:s,Marker:n}=vh[r]??{},o=Re(e.element)?"ol":"ul";/* @__PURE__ */
807
- return jl.jsxs(o,{className:"relative m-0 p-0",style:{listStyleType:r},start:t,children:[n&&/* @__PURE__ */jl.jsx(n,{...e}),s?/* @__PURE__ */jl.jsx(s,{...e}):/* @__PURE__ */jl.jsx("li",{children:e.children})]})}const wh=[...jh,Me.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */jl.jsx(yh,{...e})}}})];const kh=[Hn.withComponent(function(e){const t=Pn({element:e.element,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
808
- return jl.jsxs(tl,{...e,className:"inline-block select-none rounded-sm [&_.katex-display]:my-0",children:[
809
- /* @__PURE__ */jl.jsx("div",{className:zl('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",0===e.element.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),children:/* @__PURE__ */jl.jsx("span",{className:zl(0===e.element.texExpression.length&&"hidden","font-mono leading-none"),dangerouslySetInnerHTML:{__html:t}})}),e.children]})}),Vn.withComponent(function(e){const{element:t}=e,r=Pn({element:t,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
810
- return jl.jsxs(tl,{className:"my-1",...e,children:[
811
- /* @__PURE__ */jl.jsx("div",{className:zl("group flex select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),children:t.texExpression.length>0?/* @__PURE__ */jl.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):/* @__PURE__ */jl.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
812
- /* @__PURE__ */jl.jsx(Br,{className:"size-6 text-muted-foreground/80"}),
813
- /* @__PURE__ */jl.jsx("div",{children:"Add a Tex equation"})]})}),e.children]})})];const Nh=[Yn.withComponent(function(e){const{align:t="center",caption:r,url:s,width:n}=e.element;/* @__PURE__ */
814
- return jl.jsxs(tl,{...e,className:"py-2.5",children:[
815
- /* @__PURE__ */jl.jsx("figure",{className:"group relative m-0 inline-block",style:{width:n},children:/* @__PURE__ */jl.jsxs("div",{className:"relative min-w-[92px] max-w-full",style:{textAlign:t},children:[
816
- /* @__PURE__ */jl.jsx("img",{className:zl("w-full max-w-full cursor-default object-cover px-0","rounded-sm"),alt:e.attributes.alt,src:s}),r&&/* @__PURE__ */jl.jsx("figcaption",{className:"mx-auto mt-2 h-[24px] max-w-full",children:Z.string(r[0])})]})}),e.children]})}),Gn.withComponent(function(e){const{align:t="center",caption:r,url:s,width:n}=e.element;/* @__PURE__ */
817
- return jl.jsxs(tl,{className:"py-2.5",...e,children:[
818
- /* @__PURE__ */jl.jsx("div",{style:{textAlign:t},children:/* @__PURE__ */jl.jsxs("figure",{className:"group relative m-0 inline-block cursor-default",style:{width:n},children:[
819
- /* @__PURE__ */jl.jsx("video",{className:"w-full max-w-full rounded-sm object-cover px-0",src:s,controls:!0}),r&&/* @__PURE__ */jl.jsx("figcaption",{children:Z.string(r[0])})]})}),e.children]})}),Qn.withComponent(function(e){/* @__PURE__ */
820
- return jl.jsxs(tl,{...e,className:"mb-1",children:[
821
- /* @__PURE__ */jl.jsx("figure",{className:"group relative cursor-default",children:/* @__PURE__ */jl.jsx("div",{className:"h-16",children:/* @__PURE__ */jl.jsx("audio",{className:"size-full",src:e.element.url,controls:!0})})}),e.children]})}),Jn.withComponent(function(e){const{name:t,url:r}=e.element;/* @__PURE__ */
822
- return jl.jsxs(tl,{className:"my-px rounded-sm",...e,children:[
823
- /* @__PURE__ */jl.jsx("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:t,href:r,rel:"noopener noreferrer",role:"button",target:"_blank",children:/* @__PURE__ */jl.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
824
- /* @__PURE__ */jl.jsx(Ir,{className:"size-5"}),
825
- /* @__PURE__ */jl.jsx("div",{children:t})]})}),e.children]})}),al.configure({options:{query:{allow:[q.img,q.video,q.audio,q.file,q.mediaEmbed]}}}),Xn,eo];const Ch=[Jo.withComponent(function(e){const{prefix:t}=e,r=e.element;/* @__PURE__ */
826
- return jl.jsxs(tl,{...e,className:zl("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!0===r.children[0][q.bold]&&"font-bold",!0===r.children[0][q.italic]&&"italic",!0===r.children[0][q.underline]&&"underline"),attributes:{...e.attributes,"data-slate-value":r.value},children:[e.children,t,r.value]})})];const _h=[ba.withComponent(function(e){const{editor:t,leaf:r}=e,s=t.getApi(ba).suggestion.dataList(r).some(e=>"remove"===e.type),n={delete:"del",insert:"ins",update:"span"}[s?"delete":"insert"];/* @__PURE__ */
827
- return jl.jsx(rl,{...e,as:n,className:zl("border-b-2 border-b-brand/[.24] bg-brand/[.08] text-brand/80 no-underline transition-colors duration-200",s&&"border-b-gray-300 bg-gray-300/25 text-gray-400 line-through"),children:e.children})})];function zh({isHeader:e,...t}){const{editor:r,element:s}=t,{api:n}=r.getPlugin($s),{minHeight:o,width:a}=n.table.getCellSize({element:s}),l=n.table.getCellBorders({element:s});/* @__PURE__ */
828
- return jl.jsx(tl,{...t,as:e?"th":"td",className:zl("h-full overflow-visible border-none bg-background p-0",s.background?"bg-(--cellBackground)":"bg-background",e&&"text-left font-normal *:m-0","before:size-full","before:absolute before:box-border before:select-none before:content-['']",l&&zl(l.bottom?.size&&"before:border-b before:border-b-border",l.right?.size&&"before:border-r before:border-r-border",l.left?.size&&"before:border-l before:border-l-border",l.top?.size&&"before:border-t before:border-t-border")),style:{"--cellBackground":s.background,maxWidth:a||240,minWidth:a||120},attributes:{...t.attributes,colSpan:n.table.getColSpan(s),rowSpan:n.table.getRowSpan(s)},children:/* @__PURE__ */jl.jsx("div",{className:"relative z-20 box-border h-full px-4 py-2",style:{minHeight:o},children:t.children})})}const Sh=[$s.withComponent(function({children:e,...t}){const{disableMarginLeft:r}=t.editor.getOptions($s),s=r?0:t.element.marginLeft;/* @__PURE__ */
829
- return jl.jsx(tl,{...t,className:"overflow-x-auto py-5",style:{paddingLeft:s},children:/* @__PURE__ */jl.jsx("div",{className:"group/table relative w-fit",children:/* @__PURE__ */jl.jsx("table",{className:"mr-0 ml-px table h-px table-fixed border-collapse",children:/* @__PURE__ */jl.jsx("tbody",{className:"min-w-full",children:e})})})})}),Ws.withComponent(function(e){/* @__PURE__ */
830
- return jl.jsx(tl,{...e,as:"tr",className:"h-full",children:e.children})}),Zs.withComponent(zh),Ks.withComponent(function(e){/* @__PURE__ */
831
- return jl.jsx(zh,{...e,isHeader:!0})})],Eh=tt("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const Bh={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},Ah=e=>{if(!e)return[];const t=e.getOptions(po);if(t.queryHeading)return t.queryHeading(e);const r=[],s=e.api.nodes({at:[],match:e=>xo(e)});return s?(Array.from(s).forEach(([e,t])=>{const{type:s}=e,n=Z.string(e),o=Bh[s],a=e.id;n&&r.push({id:a,depth:o,path:t,title:n,type:s})}),r):[]},Ih=[po.withComponent(function(e){const{editor:t}=e,r=Ah(t);/* @__PURE__ */
832
- return jl.jsxs(tl,{...e,className:"mb-1 p-0",children:[
833
- /* @__PURE__ */jl.jsx("div",{children:r.length>0?r.map(e=>/* @__PURE__ */jl.jsx(Ul,{variant:"ghost",className:Eh({depth:e.depth}),children:e.title},e.title)):/* @__PURE__ */jl.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const Th=[...lh,...uh,...Sh,...[ll.withComponent(function(e){/* @__PURE__ */
834
- return jl.jsxs(tl,{...e,className:"pl-6",children:[
835
- /* @__PURE__ */jl.jsx("div",{className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,children:/* @__PURE__ */jl.jsx(ss,{className:"rotate-0 transition-transform duration-75"})}),e.children]})})],...Ih,...Nh,...ch,...mh,...kh,...ph,...bh,...Ch,...ih,...fh,...wh,...nh,...gh,...hh,..._h,...yu];export{vl as AlignKit,Nl as AutoformatKit,Th as BaseEditorKit,Sl as BasicBlocksKit,El as BasicMarksKit,Pl as BlockMenuKit,Hl as BlockPlaceholderKit,Ri as CalloutKit,Qi as CodeBlockKit,lc as ColumnKit,cc as CommentKit,mc as CursorOverlayKit,xc as DateKit,Nc as DndKit,Cc as DocxKit,ym as Editor,jm as EditorContainer,rh as EditorKit,wm as EditorView,_c as ExitBreakKit,nu as FixedToolbarKit,lu as FloatingToolbarKit,cu as FontKit,du as LineHeightKit,xu as LinkKit,vu as ListKit,Nu as MathKit,Qu as MediaKit,dm as MentionKit,F as Plate,sh as PlateEditor,L as PlateLeaf,sl as PlateStatic,P as PlateView,mm as SlashKit,Mm as SuggestionKit,Jm as TableKit,eh as TocKit,th as ToggleKit,il as computeDiff,ie as createSlateEditor,ce as createSlatePlugin,de as normalizeNodeId,nl as serializeHtml,H as toPlatePlugin,V as usePlateEditor,U as usePlateViewEditor,cl as withGetFragmentExcludeDiff};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-700:oklch(50.8% .118 165.612);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-slate-500:oklch(55.4% .046 257.417);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--radius-xs:.125rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.start-1{inset-inline-start:calc(var(--spacing)*1)}.-top-2{top:calc(var(--spacing)*-2)}.-top-px{top:-1px}.top-0{top:calc(var(--spacing)*0)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-\\[5px\\]{top:5px}.top-\\[50\\%\\]{top:50%}.-right-1{right:calc(var(--spacing)*-1)}.-right-3{right:calc(var(--spacing)*-3)}.right-0{right:calc(var(--spacing)*0)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.right-\\[-1\\.5px\\]{right:-1.5px}.right-\\[-11px\\]{right:-11px}.right-\\[28px\\]{right:28px}.-bottom-1{bottom:calc(var(--spacing)*-1)}.-bottom-px{bottom:-1px}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-0\\.5{bottom:calc(var(--spacing)*.5)}.bottom-1{bottom:calc(var(--spacing)*1)}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-4{bottom:calc(var(--spacing)*4)}.-left-0{left:calc(var(--spacing)*0)}.-left-0\\.5{left:calc(var(--spacing)*-.5)}.-left-1{left:calc(var(--spacing)*-1)}.-left-3{left:calc(var(--spacing)*-3)}.-left-6{left:calc(var(--spacing)*-6)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-2\\.5{left:calc(var(--spacing)*2.5)}.left-3{left:calc(var(--spacing)*3)}.left-\\[-1\\.5px\\]{left:-1.5px}.left-\\[-10\\.5px\\]{left:-10.5px}.left-\\[50\\%\\]{left:50%}.z-1{z-index:1}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-51{z-index:51}.z-100{z-index:100}.z-500{z-index:500}.z-1450{z-index:1450}.z-1500{z-index:1500}.col-span-1{grid-column:span 1/span 1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.m-32{margin:calc(var(--spacing)*32)}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-1\\.5{margin-inline:calc(var(--spacing)*1.5)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-auto{margin-inline:auto}.mx-px{margin-inline:1px}.my-1{margin-block:calc(var(--spacing)*1)}.my-1\\.5{margin-block:calc(var(--spacing)*1.5)}.my-auto{margin-block:auto}.my-px{margin-block:1px}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-\\[0\\.75em\\]{margin-top:.75em}.mt-\\[1\\.4em\\]{margin-top:1.4em}.mt-\\[1\\.6em\\]{margin-top:1.6em}.mt-\\[1em\\]{margin-top:1em}.-mr-3{margin-right:calc(var(--spacing)*-3)}.mr-0{margin-right:calc(var(--spacing)*0)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-1\\.5{margin-right:calc(var(--spacing)*1.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mr-auto{margin-right:auto}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-2\\.5{margin-bottom:calc(var(--spacing)*2.5)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-2{margin-left:calc(var(--spacing)*-2)}.-ml-3{margin-left:calc(var(--spacing)*-3)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.block{display:block}.contents{display:contents}.flex{display:flex}.flex\\!{display:flex!important}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.\\!size-3{width:calc(var(--spacing)*3)!important;height:calc(var(--spacing)*3)!important}.\\!size-3\\.5{width:calc(var(--spacing)*3.5)!important;height:calc(var(--spacing)*3.5)!important}.size-\\(--cell-size\\){width:var(--cell-size);height:var(--cell-size)}.size-0{width:calc(var(--spacing)*0);height:calc(var(--spacing)*0)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-\\[28px\\]{width:28px;height:28px}.size-\\[130px\\]{width:130px;height:130px}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\\(--cell-size\\){height:var(--cell-size)}.h-0\\.5{height:calc(var(--spacing)*.5)}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-\\[0\\.1px\\]{height:.1px}.h-\\[1\\.5em\\]{height:1.5em}.h-\\[19px\\]{height:19px}.h-\\[23rem\\]{height:23rem}.h-\\[24px\\]{height:24px}.h-\\[28px\\]{height:28px}.h-\\[344px\\]{height:344px}.h-\\[650px\\]{height:650px}.h-\\[calc\\(100\\%_\\+_8px\\)\\]{height:calc(100% + 8px)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\(--radix-context-menu-content-available-height\\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\\(--radix-dropdown-menu-content-available-height\\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-14{max-height:calc(var(--spacing)*14)}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[288px\\]{max-height:288px}.max-h-\\[300px\\]{max-height:300px}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[calc\\(100vh-4rem\\)\\]{max-height:calc(100vh - 4rem)}.max-h-\\[min\\(50dvh\\,calc\\(-24px\\+var\\(--radix-popper-available-height\\)\\)\\)\\]{max-height:min(50dvh,calc(-24px + var(--radix-popper-available-height)))}.max-h-\\[min\\(70vh\\,320px\\)\\]{max-height:min(70vh,320px)}.max-h-screen{max-height:100vh}.min-h-14{min-height:calc(var(--spacing)*14)}.min-h-\\[1lh\\]{min-height:1lh}.min-h-\\[25px\\]{min-height:25px}.min-h-\\[50\\%\\]{min-height:50%}.w-\\(--cell-size\\){width:var(--cell-size)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-4{width:calc(var(--spacing)*4)}.w-4\\.5{width:calc(var(--spacing)*4.5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-48{width:calc(var(--spacing)*48)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-80{width:calc(var(--spacing)*80)}.w-\\[180px\\]{width:180px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[330px\\]{width:330px}.w-\\[380px\\]{width:380px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[700px\\]{max-width:700px}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-\\[calc\\(100vw-24px\\)\\]{max-width:calc(100vw - 24px)}.max-w-full{max-width:100%}.min-w-\\(--cell-size\\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-8{min-width:calc(var(--spacing)*8)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[92px\\]{min-width:92px}.min-w-\\[125px\\]{min-width:125px}.min-w-\\[130px\\]{min-width:130px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[220px\\]{min-width:220px}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.origin-\\(--radix-context-menu-content-transform-origin\\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\\(--radix-dropdown-menu-content-transform-origin\\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\\(--radix-popover-content-transform-origin\\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-\\[repeat\\(10\\,1fr\\)\\]{grid-template-columns:repeat(10,1fr)}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-evenly{justify-content:space-evenly}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-10>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*10)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*10)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-border,.border-border\\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-current{border-color:currentColor}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-muted-foreground{border-color:var(--muted-foreground)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-b-border{border-bottom-color:var(--border)}.border-b-brand\\/\\[\\.24\\]{border-bottom-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.border-b-brand\\/\\[\\.24\\]{border-bottom-color:color-mix(in oklab,var(--brand)24%,transparent)}}.border-b-gray-300{border-bottom-color:var(--color-gray-300)}.border-b-highlight,.border-b-highlight\\/35{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/35{border-bottom-color:color-mix(in oklab,var(--highlight)35%,transparent)}}.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:color-mix(in oklab,var(--highlight)70%,transparent)}}.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:color-mix(in oklab,var(--highlight)36%,transparent)}}.border-b-purple-100{border-bottom-color:var(--color-purple-100)}.bg-\\(--cellBackground\\){background-color:var(--cellBackground)}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:#00000080}.bg-accent{background-color:var(--accent)}.bg-background,.bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/95{background-color:color-mix(in oklab,var(--background)95%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-brand,.bg-brand\\/25{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/25{background-color:color-mix(in oklab,var(--brand)25%,transparent)}}.bg-brand\\/50{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/50{background-color:color-mix(in oklab,var(--brand)50%,transparent)}}.bg-brand\\/\\[\\.08\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.08\\]{background-color:color-mix(in oklab,var(--brand)8%,transparent)}}.bg-brand\\/\\[\\.13\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--brand)13%,transparent)}}.bg-current{background-color:currentColor}.bg-destructive{background-color:var(--destructive)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200\\/80{background-color:#a4f4cfcc}@supports (color:color-mix(in lab,red,red)){.bg-emerald-200\\/80{background-color:color-mix(in oklab,var(--color-emerald-200)80%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-300\\/25{background-color:#d1d5dc40}@supports (color:color-mix(in lab,red,red)){.bg-gray-300\\/25{background-color:color-mix(in oklab,var(--color-gray-300)25%,transparent)}}.bg-highlight,.bg-highlight\\/15{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/15{background-color:color-mix(in oklab,var(--highlight)15%,transparent)}}.bg-highlight\\/25{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/25{background-color:color-mix(in oklab,var(--highlight)25%,transparent)}}.bg-highlight\\/30{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/30{background-color:color-mix(in oklab,var(--highlight)30%,transparent)}}.bg-highlight\\/45{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/45{background-color:color-mix(in oklab,var(--highlight)45%,transparent)}}.bg-highlight\\/\\[\\.13\\]{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--highlight)13%,transparent)}}.bg-inherit{background-color:inherit}.bg-muted,.bg-muted\\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-muted\\/60{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\\/60{background-color:color-mix(in oklab,var(--muted)60%,transparent)}}.bg-popover,.bg-popover\\/90{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){.bg-popover\\/90{background-color:color-mix(in oklab,var(--popover)90%,transparent)}}.bg-primary,.bg-primary\\/40{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/40{background-color:color-mix(in oklab,var(--primary)40%,transparent)}}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200\\/80{background-color:#ffcacacc}@supports (color:color-mix(in lab,red,red)){.bg-red-200\\/80{background-color:color-mix(in oklab,var(--color-red-200)80%,transparent)}}.bg-ring{background-color:var(--ring)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-clip-content{background-clip:content-box}.bg-center{background-position:50%}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.fill-primary{fill:var(--primary)}.stroke-\\[3px\\]{stroke-width:3px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-px{padding:1px}.\\!px-1{padding-inline:calc(var(--spacing)*1)!important}.\\!px-1\\.5{padding-inline:calc(var(--spacing)*1.5)!important}.px-\\(--cell-size\\){padding-inline:var(--cell-size)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-0\\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-16{padding-inline:calc(var(--spacing)*16)}.px-\\[0\\.3em\\]{padding-inline:.3em}.px-px{padding-inline:1px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-\\[0\\.2em\\]{padding-block:.2em}.py-\\[1\\.5px\\]{padding-block:1.5px}.py-\\[3px\\]{padding-block:3px}.pt-0\\.5{padding-top:calc(var(--spacing)*.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-72{padding-bottom:calc(var(--spacing)*72)}.pb-\\[51\\.25\\%\\]{padding-bottom:51.25%}.pb-\\[56\\.25\\%\\]{padding-bottom:56.25%}.pb-\\[56\\.0417\\%\\]{padding-bottom:56.0417%}.pb-\\[75\\%\\]{padding-bottom:75%}.pb-px{padding-bottom:1px}.pl-0\\.5{padding-left:calc(var(--spacing)*.5)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-\\[26px\\]{padding-left:26px}.pl-\\[32px\\]{padding-left:32px}.pl-\\[50px\\]{padding-left:50px}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-start{text-align:start}.align-baseline{vertical-align:baseline}.align-text-bottom{vertical-align:text-bottom}.font-\\[inherit\\]{font-family:inherit}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[10px\\]{font-size:10px}.text-\\[18px\\]{font-size:18px}.leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-background{color:var(--background)}.text-brand\\/80{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.text-brand\\/80{color:color-mix(in oklab,var(--brand)80%,transparent)}}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-inherit{color:inherit}.text-muted-foreground,.text-muted-foreground\\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/70{color:color-mix(in oklab,var(--muted-foreground)70%,transparent)}}.text-muted-foreground\\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/80{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-600{color:var(--color-purple-600)}.text-purple-800{color:var(--color-purple-800)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-500{color:var(--color-slate-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.decoration-primary{-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}.decoration-\\[0\\.5px\\]{text-decoration-thickness:.5px}.underline-offset-4{text-underline-offset:4px}.caret-primary{caret-color:var(--primary)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:color-mix(in oklab,#ffffff1a 0px .5px 0px 0px inset,#f8f9fa 0px 1px 5px 0px inset,#c1c8cd 0px 0px 0px .5px,#c1c8cd 0px 2px 1px -1px,#c1c8cd 0px 1px 0px 0px var(--tw-shadow-alpha),transparent)}}.ring-ring{--tw-ring-color:var(--ring)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.\\!filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)!important}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.\\[contain\\:content\\]{contain:content}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\\[--cell-size\\:--spacing\\(8\\)\\]{--cell-size:calc(var(--spacing)*8)}.\\[tab-size\\:2\\]{tab-size:2}.fade-in{--tw-enter-opacity:0}:is(.\\*\\:m-0>*){margin:calc(var(--spacing)*0)}.not-last\\:border-b:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.group-first\\/column\\:-left-1:is(:where(.group\\/column):first-child *){left:calc(var(--spacing)*-1)}.group-first\\/column\\:pl-0:is(:where(.group\\/column):first-child *){padding-left:calc(var(--spacing)*0)}.group-last\\/column\\:-right-1:is(:where(.group\\/column):last-child *){right:calc(var(--spacing)*-1)}.group-last\\/column\\:pr-0:is(:where(.group\\/column):last-child *){padding-right:calc(var(--spacing)*0)}.group-last\\/toolbar-group\\:hidden\\!:is(:where(.group\\/toolbar-group):last-child *){display:none!important}.group-focus-within\\:pointer-events-none:is(:where(.group):focus-within *){pointer-events:none}.group-focus-within\\:top-0:is(:where(.group):focus-within *){top:calc(var(--spacing)*0)}.group-focus-within\\:cursor-default:is(:where(.group):focus-within *){cursor:default}.group-focus-within\\:text-xs:is(:where(.group):focus-within *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-focus-within\\:font-medium:is(:where(.group):focus-within *){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.group-focus-within\\:text-foreground:is(:where(.group):focus-within *){color:var(--foreground)}@media(hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *),.group-hover\\/column\\:opacity-100:is(:where(.group\\/column):hover *),.group-hover\\/container\\:opacity-100:is(:where(.group\\/container):hover *),.group-hover\\/row\\:opacity-100:is(:where(.group\\/row):hover *){opacity:1}}.group-has-disabled\\:opacity-50:is(:where(.group):has(:disabled) *){opacity:.5}.group-has-data-\\[resizing\\=\\"true\\"\\]\\/row\\:opacity-0:is(:where(.group\\/row):has([data-resizing=true]) *){opacity:0}.group-has-\\[\\[data-col\\=\\"0\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"]:hover) *),.group-has-\\[\\[data-col\\=\\"0\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"]:hover) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"]:hover) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"]:hover) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"]:hover) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"]:hover) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"]:hover) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"]:hover) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"]:hover) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"]:hover) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"]:hover) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"][data-resizing=true]) *),.group-has-\\[\\[data-resizer-left\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left]:hover) *),.group-has-\\[\\[data-resizer-left\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left][data-resizing=true]) *){display:block}.group-data-\\[focused\\=true\\]\\/day\\:relative:is(:where(.group\\/day)[data-focused=true] *){position:relative}.group-data-\\[focused\\=true\\]\\/day\\:z-10:is(:where(.group\\/day)[data-focused=true] *){z-index:10}.group-data-\\[focused\\=true\\]\\/day\\:border-ring:is(:where(.group\\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\\[focused\\=true\\]\\/day\\:ring-\\[3px\\]:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.group-data-\\[pressed\\=true\\]\\:bg-accent:is(:where(.group)[data-pressed=true] *){background-color:var(--accent)}.group-data-\\[pressed\\=true\\]\\:text-accent-foreground:is(:where(.group)[data-pressed=true] *){color:var(--accent-foreground)}.peer-has-\\[\\[role\\=menuitem\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitem])~*),.peer-has-\\[\\[role\\=menuitemradio\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitemradio])~*),.peer-has-\\[\\[role\\=option\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=option])~*){display:block}.selection\\:bg-brand\\/25 ::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25 ::selection{background-color:color-mix(in oklab,var(--brand)25%,transparent)}}.selection\\:bg-brand\\/25::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25::selection{background-color:color-mix(in oklab,var(--brand)25%,transparent)}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:bg-transparent ::selection{background-color:#0000}.selection\\:bg-transparent::selection{background-color:#0000}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-muted-foreground::placeholder,.placeholder\\:text-muted-foreground\\/80::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-muted-foreground\\/80::placeholder{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:z-10:before{content:var(--tw-content);z-index:10}.before\\:box-border:before{content:var(--tw-content);box-sizing:border-box}.before\\:size-full:before{content:var(--tw-content);width:100%;height:100%}.before\\:cursor-text:before{content:var(--tw-content);cursor:text}.before\\:border-t:before{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:1px}.before\\:border-r:before{content:var(--tw-content);border-right-style:var(--tw-border-style);border-right-width:1px}.before\\:border-b:before{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.before\\:border-l:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:1px}.before\\:border-t-border:before{content:var(--tw-content);border-top-color:var(--border)}.before\\:border-r-border:before{content:var(--tw-content);border-right-color:var(--border)}.before\\:border-b-border:before{content:var(--tw-content);border-bottom-color:var(--border)}.before\\:border-l-border:before{content:var(--tw-content);border-left-color:var(--border)}.before\\:bg-brand\\/5:before{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.before\\:bg-brand\\/5:before{background-color:color-mix(in oklab,var(--brand)5%,transparent)}}.before\\:text-muted-foreground\\/80:before{content:var(--tw-content);color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.before\\:text-muted-foreground\\/80:before{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.before\\:content-\\[\\\'\\\'\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:content-\\[attr\\(placeholder\\)\\]:before{--tw-content:attr(placeholder);content:var(--tw-content)}.before\\:select-none:before{content:var(--tw-content);-webkit-user-select:none;user-select:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing)*0)}.after\\:-top-0\\.5:after{content:var(--tw-content);top:calc(var(--spacing)*-.5)}.after\\:-left-1:after{content:var(--tw-content);left:calc(var(--spacing)*-1)}.after\\:z-1:after{content:var(--tw-content);z-index:1}.after\\:ml-1\\.5:after{content:var(--tw-content);margin-left:calc(var(--spacing)*1.5)}.after\\:block:after{content:var(--tw-content);display:block}.after\\:flex:after{content:var(--tw-content);display:flex}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-3:after{content:var(--tw-content);height:calc(var(--spacing)*3)}.after\\:h-16:after{content:var(--tw-content);height:calc(var(--spacing)*16)}.after\\:h-\\[calc\\(100\\%\\)\\+4px\\]:after{content:var(--tw-content);height:100% 4px}.after\\:w-3:after{content:var(--tw-content);width:calc(var(--spacing)*3)}.after\\:w-\\[3px\\]:after{content:var(--tw-content);width:3px}.after\\:w-\\[calc\\(100\\%\\+8px\\)\\]:after{content:var(--tw-content);width:calc(100% + 8px)}.after\\:rounded-\\[6px\\]:after{content:var(--tw-content);border-radius:6px}.after\\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\\:rounded-sm:after{content:var(--tw-content);border-radius:calc(var(--radius) - 4px)}.after\\:bg-brand\\/15:after{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.after\\:bg-brand\\/15:after{background-color:color-mix(in oklab,var(--brand)15%,transparent)}}.after\\:bg-neutral-500\\/10:after{content:var(--tw-content);background-color:#7373731a}@supports (color:color-mix(in lab,red,red)){.after\\:bg-neutral-500\\/10:after{background-color:color-mix(in oklab,var(--color-neutral-500)10%,transparent)}}.after\\:bg-primary:after{content:var(--tw-content);background-color:var(--primary)}.after\\:bg-ring:after{content:var(--tw-content);background-color:var(--ring)}.after\\:pb-\\[var\\(--aspect-ratio\\)\\]:after{content:var(--tw-content);padding-bottom:var(--aspect-ratio)}.after\\:align-middle:after{content:var(--tw-content);vertical-align:middle}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:content-\\[\\"\\"\\]:after{--tw-content:"";content:var(--tw-content)}.after\\:content-\\[\\\'_\\\'\\]:after{--tw-content:" ";content:var(--tw-content)}@media(hover:hover){.group-hover\\:after\\:opacity-100:is(:where(.group):hover *):after{content:var(--tw-content);opacity:1}}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-ring:focus-within{--tw-ring-color:var(--ring)}.focus-within\\:ring-offset-2:focus-within{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}@media(hover:hover){.hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-muted:hover{background-color:var(--muted)}.hover\\:bg-muted-foreground\\/15:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-muted-foreground\\/15:hover{background-color:color-mix(in oklab,var(--muted-foreground)15%,transparent)}}.hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-brand\\/80:hover{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-brand\\/80:hover{color:color-mix(in oklab,var(--brand)80%,transparent)}}.hover\\:text-muted-foreground:hover,.hover\\:text-muted-foreground\\/80:hover{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-muted-foreground\\/80:hover{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\\:ring-ring:focus-visible,.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\\:ring-transparent:focus-visible{--tw-ring-color:transparent}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-focus\\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\\:ring-\\[3px\\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-aria-disabled\\:border-input:has([aria-disabled=true]){border-color:var(--input)}.has-aria-disabled\\:bg-muted:has([aria-disabled=true]){background-color:var(--muted)}.has-data-readonly\\:w-fit:has([data-readonly]){width:fit-content}.has-data-readonly\\:cursor-default:has([data-readonly]){cursor:default}.has-data-readonly\\:border-transparent:has([data-readonly]){border-color:#0000}.has-data-readonly\\:focus-within\\:\\[box-shadow\\:none\\]:has([data-readonly]):focus-within{box-shadow:none}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:color-mix(in oklab,var(--brand)50%,transparent)}}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-2:has([data-slate-editor]:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:color-mix(in oklab,var(--brand)30%,transparent)}}.has-\\[\\[role\\=menuitem\\]\\]\\:block:has([role=menuitem]),.has-\\[\\[role\\=menuitemradio\\]\\]\\:block:has([role=menuitemradio]),.has-\\[\\[role\\=option\\]\\]\\:block:has([role=option]){display:block}.has-\\[button\\]\\:flex:has(:is(button)){display:flex}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:pointer-events-none:has(+input:not(:placeholder-shown)){pointer-events:none}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:top-0:has(+input:not(:placeholder-shown)){top:calc(var(--spacing)*0)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:cursor-default:has(+input:not(:placeholder-shown)){cursor:default}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-xs:has(+input:not(:placeholder-shown)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:font-medium:has(+input:not(:placeholder-shown)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-foreground:has(+input:not(:placeholder-shown)){color:var(--foreground)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-checked\\:bg-accent[aria-checked=true]{background-color:var(--accent)}.aria-checked\\:text-accent-foreground[aria-checked=true]{color:var(--accent-foreground)}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-selected\\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-readonly\\:w-fit[data-readonly]{width:fit-content}:is(.\\*\\*\\:data-slate-placeholder\\:\\!top-1\\/2 *)[data-slate-placeholder]{top:50%!important}:is(.\\*\\*\\:data-slate-placeholder\\:top-\\[auto_\\!important\\] *)[data-slate-placeholder]{top:auto!important}:is(.\\*\\*\\:data-slate-placeholder\\:-translate-y-1\\/2 *)[data-slate-placeholder]{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}:is(.\\*\\*\\:data-slate-placeholder\\:opacity-100\\! *)[data-slate-placeholder]{opacity:1!important}.data-\\[active-item\\=true\\]\\:bg-accent[data-active-item=true]{background-color:var(--accent)}.data-\\[active-item\\=true\\]\\:text-accent-foreground[data-active-item=true]{color:var(--accent-foreground)}.data-\\[active\\=true\\]\\:bg-muted[data-active=true]{background-color:var(--muted)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true]{opacity:.5}.data-\\[highlighted\\=true\\]\\:bg-accent[data-highlighted=true]{background-color:var(--accent)}.data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[range-end\\=true\\]\\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\\[range-end\\=true\\]\\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\\[range-middle\\=true\\]\\:rounded-none[data-range-middle=true]{border-radius:0}.data-\\[range-middle\\=true\\]\\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\\[range-middle\\=true\\]\\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\\[range-start\\=true\\]\\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\\[range-start\\=true\\]\\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\\[selected-single\\=true\\]\\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\\[selected-single\\=true\\]\\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\\[selected\\=true\\]\\:rounded-none[data-selected=true]{border-radius:0}.data-\\[selected\\=true\\]\\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}:is(.\\*\\:data-\\[slot\\=block-selection\\]\\:left-2>*)[data-slot=block-selection]{left:calc(var(--spacing)*2)}:is(.\\*\\*\\:data-\\[slot\\=command-input-wrapper\\]\\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}.data-\\[state\\=checked\\]\\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-accent[data-state=checked]{background-color:var(--accent)}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:opacity-0[data-state=closed]{opacity:0}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports (backdrop-blur:var(--tw)){.supports-backdrop-blur\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-blur\\:bg-background\\/60{background-color:color-mix(in oklab,var(--background)60%,transparent)}}}@media not all and (min-width:40rem){.max-sm\\:hidden{display:none}}@media(min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:px-24{padding-inline:calc(var(--spacing)*24)}.sm\\:px-\\[max\\(64px\\,calc\\(50\\%-350px\\)\\)\\]{padding-inline:max(64px,50% - 350px)}.sm\\:text-left{text-align:left}.sm\\:opacity-0{opacity:0}}@media(min-width:48rem){.md\\:flex-row{flex-direction:row}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:64rem){.lg\\:inline{display:inline}}.dark\\:border-input:is(.dark *){border-color:var(--input)}.dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\\:bg-input\\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\\:bg-purple-900:is(.dark *){background-color:var(--color-purple-900)}.dark\\:bg-red-900:is(.dark *){background-color:var(--color-red-900)}.dark\\:text-purple-400:is(.dark *){color:var(--color-purple-400)}.dark\\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:color-mix(in oklab,#ffffff1a 0px .5px 0px 0px inset,#1a1d1e 0px 1px 5px 0px inset,#4c5155 0px 0px 0px .5px,#4c5155 0px 2px 1px -1px,#4c5155 0px 1px 0px 0px var(--tw-shadow-alpha),transparent)}}@media(hover:hover){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\\:hover\\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\\:data-\\[state\\=checked\\]\\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}@media print{.print\\:hidden{display:none}.print\\:break-inside-avoid{break-inside:avoid}.print\\:placeholder\\:text-transparent::placeholder{color:#0000}}.\\[\\&_\\.katex-display\\]\\:my-0 .katex-display{margin-block:calc(var(--spacing)*0)}.\\[\\&_\\.katex-display\\]\\:my-0\\! .katex-display{margin-block:calc(var(--spacing)*0)!important}.\\[\\&_\\.react-tweet-theme\\]\\:my-0 .react-tweet-theme{margin-block:calc(var(--spacing)*0)}.\\[\\&_\\.react-tweet-theme\\]\\:ring-2 .react-tweet-theme{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.\\[\\&_\\.react-tweet-theme\\]\\:ring-ring .react-tweet-theme{--tw-ring-color:var(--ring)}.\\[\\&_\\.react-tweet-theme\\]\\:ring-offset-2 .react-tweet-theme{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.\\[\\&_\\.slate-selection-area\\]\\:z-50 .slate-selection-area{z-index:50}.\\[\\&_\\.slate-selection-area\\]\\:border .slate-selection-area{border-style:var(--tw-border-style);border-width:1px}.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:color-mix(in oklab,var(--brand)25%,transparent)}}.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:color-mix(in oklab,var(--brand)15%,transparent)}}.\\[\\&_\\>_\\.lty-playbtn\\]\\:absolute>.lty-playbtn{position:absolute}.\\[\\&_\\>_\\.lty-playbtn\\]\\:top-1\\/2>.lty-playbtn{top:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:left-1\\/2>.lty-playbtn{left:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:z-1>.lty-playbtn{z-index:1}.\\[\\&_\\>_\\.lty-playbtn\\]\\:h-\\[46px\\]>.lty-playbtn{height:46px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:w-\\[70px\\]>.lty-playbtn{width:70px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:\\[transform\\:translate3d\\(-50\\%\\,-50\\%\\,0\\)\\]>.lty-playbtn{transform:translate(-50%,-50%)}.\\[\\&_\\>_\\.lty-playbtn\\]\\:rounded-\\[14\\%\\]>.lty-playbtn{border-radius:14%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:bg-\\[\\#212121\\]>.lty-playbtn{background-color:#212121}.\\[\\&_\\>_\\.lty-playbtn\\]\\:opacity-80>.lty-playbtn{opacity:.8}.\\[\\&_\\>_\\.lty-playbtn\\]\\:\\[transition\\:all_0\\.2s_cubic-bezier\\(0\\,_0\\,_0\\.2\\,_1\\)\\]>.lty-playbtn{transition:all .2s cubic-bezier(0,0,.2,1)}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:absolute>.lty-playbtn:before{content:var(--tw-content);position:absolute}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:top-1\\/2>.lty-playbtn:before{content:var(--tw-content);top:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:left-1\\/2>.lty-playbtn:before{content:var(--tw-content);left:50%}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:\\[transform\\:translate3d\\(-50\\%\\,-50\\%\\,0\\)\\]>.lty-playbtn:before{content:var(--tw-content);transform:translate(-50%,-50%)}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-y-\\[11px\\]>.lty-playbtn:before{content:var(--tw-content);border-block-style:var(--tw-border-style);border-block-width:11px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-r-0>.lty-playbtn:before{content:var(--tw-content);border-right-style:var(--tw-border-style);border-right-width:0}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-l-\\[19px\\]>.lty-playbtn:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:19px}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:border-\\[transparent_transparent_transparent_\\#fff\\]>.lty-playbtn:before{content:var(--tw-content);border-color:#0000 #0000 #0000 #fff}.\\[\\&_\\>_\\.lty-playbtn\\]\\:before\\:content-\\[\\"\\"\\]>.lty-playbtn:before{--tw-content:"";content:var(--tw-content)}.\\[\\&_\\>_iframe\\]\\:absolute>iframe{position:absolute}.\\[\\&_\\>_iframe\\]\\:top-0>iframe{top:calc(var(--spacing)*0)}.\\[\\&_\\>_iframe\\]\\:left-0>iframe{left:calc(var(--spacing)*0)}.\\[\\&_\\>_iframe\\]\\:size-full>iframe{width:100%;height:100%}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\\[\\&_strong\\]\\:font-bold strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:size-6 svg{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground svg{color:var(--muted-foreground)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'text-\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\\[\\&\\.lyt-activated\\]\\:cursor-\\[unset\\].lyt-activated{cursor:unset}.\\[\\&\\.lyt-activated\\]\\:before\\:pointer-events-none.lyt-activated:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\.lyt-activated\\]\\:before\\:absolute.lyt-activated:before{content:var(--tw-content);position:absolute}.\\[\\&\\.lyt-activated\\]\\:before\\:top-0.lyt-activated:before{content:var(--tw-content);top:calc(var(--spacing)*0)}.\\[\\&\\.lyt-activated\\]\\:before\\:h-\\[60px\\].lyt-activated:before{content:var(--tw-content);height:60px}.\\[\\&\\.lyt-activated\\]\\:before\\:w-full.lyt-activated:before{content:var(--tw-content);width:100%}.\\[\\&\\.lyt-activated\\]\\:before\\:bg-\\[url\\(data\\:image\\/png\\;base64\\,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT\\+OqFAAAAdklEQVQoz42QQQ7AIAgEF\\/T\\/D\\+kbq\\/RWAlnQyyazA4aoAB4FsBSA\\/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg\\=\\=\\)\\].lyt-activated:before{content:var(--tw-content);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==)}.\\[\\&\\.lyt-activated\\]\\:before\\:bg-top.lyt-activated:before{content:var(--tw-content);background-position:top}.\\[\\&\\.lyt-activated\\]\\:before\\:bg-repeat-x.lyt-activated:before{content:var(--tw-content);background-repeat:repeat-x}.\\[\\&\\.lyt-activated\\]\\:before\\:pb-\\[50px\\].lyt-activated:before{content:var(--tw-content);padding-bottom:50px}.\\[\\&\\.lyt-activated\\]\\:before\\:opacity-0.lyt-activated:before{content:var(--tw-content);opacity:0}.\\[\\&\\.lyt-activated\\]\\:before\\:\\[transition\\:all_0\\.2s_cubic-bezier\\(0\\,_0\\,_0\\.2\\,_1\\)\\].lyt-activated:before{content:var(--tw-content);transition:all .2s cubic-bezier(0,0,.2,1)}.\\[\\&\\.lyt-activated_\\>_\\.lty-playbtn\\]\\:pointer-events-none.lyt-activated>.lty-playbtn{pointer-events:none}.\\[\\&\\.lyt-activated_\\>_\\.lty-playbtn\\]\\:opacity-0\\!.lyt-activated>.lty-playbtn{opacity:0!important}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-4::-webkit-scrollbar{width:calc(var(--spacing)*4)}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:hidden::-webkit-scrollbar-button{display:none}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:size-0::-webkit-scrollbar-button{width:calc(var(--spacing)*0);height:calc(var(--spacing)*0)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:min-h-11::-webkit-scrollbar-thumb{min-height:calc(var(--spacing)*11)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-4::-webkit-scrollbar-thumb{border-style:var(--tw-border-style);border-width:4px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-solid::-webkit-scrollbar-thumb{--tw-border-style:solid;border-style:solid}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-popover::-webkit-scrollbar-thumb{border-color:var(--popover)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-muted::-webkit-scrollbar-thumb{background-color:var(--muted)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-clip-padding::-webkit-scrollbar-thumb{background-clip:padding-box}@media(hover:hover){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}}.focus\\:\\[\\&\\:\\:placeholder\\]\\:opacity-0:focus::placeholder{opacity:0}.\\[\\&\\:first-child\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[role\\=option\\]\\)\\]\\:block:has([role=option]){display:block}.\\[\\&\\:hover_\\>_\\.lty-playbtn\\]\\:bg-\\[red\\]:hover>.lty-playbtn{background-color:red}.\\[\\&\\:hover_\\>_\\.lty-playbtn\\]\\:opacity-100:hover>.lty-playbtn{opacity:1}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#f0fff4\\] *).hljs-addition{background-color:#f0fff4}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#22863a\\] *).hljs-addition{color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#3c5743\\]:is(.dark *) *).hljs-addition{background-color:#3c5743}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#ceead5\\]:is(.dark *) *).hljs-addition{color:#ceead5}:is(.\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#005cc5\\] *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#6596cf\\]:is(.dark *) *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#6596cf}:is(.\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#e36209\\] *):is(.hljs-built\\\\_in,.hljs-symbol){color:#e36209}:is(.dark\\:\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#c3854e\\]:is(.dark *) *):is(.hljs-built\\\\_in,.hljs-symbol){color:#c3854e}:is(.\\*\\*\\:\\[\\.hljs-bullet\\]\\:text-\\[\\#735c0f\\] *).hljs-bullet{color:#735c0f}:is(.\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\] *):is(.hljs-comment,.hljs-code,.hljs-formula),:is(.dark\\:\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\]:is(.dark *) *):is(.hljs-comment,.hljs-code,.hljs-formula){color:#6a737d}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#ffeef0\\] *).hljs-deletion{background-color:#ffeef0}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#b31d28\\] *).hljs-deletion{color:#b31d28}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#473235\\]:is(.dark *) *).hljs-deletion{background-color:#473235}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#e7c7cb\\]:is(.dark *) *).hljs-deletion{color:#e7c7cb}:is(.\\*\\*\\:\\[\\.hljs-emphasis\\]\\:italic *).hljs-emphasis{font-style:italic}:is(.\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#d73a49\\] *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#d73a49}:is(.dark\\:\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#ee6960\\]:is(.dark *) *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#ee6960}:is(.\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#22863a\\] *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#36a84f\\]:is(.dark *) *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#36a84f}:is(.\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#032f62\\] *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#032f62}:is(.dark\\:\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#3593ff\\]:is(.dark *) *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#3593ff}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:font-bold *).hljs-section{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#005cc5\\] *).hljs-section{color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#61a5f2\\]:is(.dark *) *).hljs-section{color:#61a5f2}:is(.\\*\\*\\:\\[\\.hljs-strong\\]\\:font-bold *).hljs-strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#6f42c1\\] *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#6f42c1}:is(.dark\\:\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#a77bfa\\]:is(.dark *) *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#a77bfa}:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_next\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_previous\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\\*\\:first\\:\\[span\\]\\:hidden>*):first-child:is(span){display:none}:is(.\\*\\:\\[svg\\]\\:text-muted-foreground>*):is(svg){color:var(--muted-foreground)}:is(.data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\\[\\&\\:last-child\\[data-selected\\=true\\]_button\\]\\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:nth-child\\(2\\)\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\>span\\]\\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&\\>span\\]\\:opacity-70>span{opacity:.7}.\\[\\&\\>svg\\]\\:size-3\\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\\[\\&\\>svg\\]\\:text-muted-foreground>svg{color:var(--muted-foreground)}[data-slot=card-content] .\\[\\[data-slot\\=card-content\\]_\\&\\]\\:bg-transparent,[data-slot=popover-content] .\\[\\[data-slot\\=popover-content\\]_\\&\\]\\:bg-transparent{background-color:#0000}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);--brand:oklch(62.3% .214 259.815);--highlight:oklch(85.2% .199 91.936)}@counter-style turkish-lower-alpha{system:alphabetic;symbols:a b c ç d e f g ğ h ı i j k l m n o ö p r s ş t u ü v y z;suffix:". "}@counter-style turkish-upper-alpha{system:alphabetic;symbols:A B C Ç D E F G Ğ H I İ J K L M N O Ö P R S Ş T U Ü V Y Z;suffix:". "}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ import*as e from"react";import t from"react";import{PlateElement as r,useReadOnly as s,useSelected as n,useFocused as o,ParagraphPlugin as a,PlateLeaf as l,useEditorPlugin as i,usePlateState as c,usePluginOption as d,BlockPlaceholderPlugin as u,useEditorRef as m,useElement as h,withHOC as p,useRemoveNodeButton as x,useEditorSelector as f,useFocusedLast as g,toTPlatePlugin as b,MemoizedChildren as j,useSelectionFragmentProp as v,useMarkToolbarButtonState as y,useMarkToolbarButton as w,useEditorReadOnly as k,createPlatePlugin as N,useEditorId as C,useEventEditorValue as _,useFormInputProps as z,useEditorSelection as S,createPrimitiveComponent as E,useEditorMounted as B,useComposedRef as A,PlateContainer as I,PlateContent as T,PlateView as D,Plate as O,usePlateEditor as F,useElementSelector as R}from"platejs/react";import{Plate as M,PlateLeaf as L,PlateView as P,toPlatePlugin as H,usePlateEditor as V,usePlateViewEditor as U}from"platejs/react";import{KEYS as q,isHotkey as $,getPluginTypes as W,NodeApi as Z,PathApi as K,isSlateString as Y,RangeApi as G,isType as Q,getPluginByType as J,ExitBreakPlugin as X,isUrl as ee,IS_APPLE as te,nanoid as re,ElementApi as se,TextApi as ne,isSlateEditor as oe,TrailingBlockPlugin as ae,BaseParagraphPlugin as le}from"platejs";import{createSlateEditor as ie,createSlatePlugin as ce,normalizeNodeId as de}from"platejs";import{TextAlignPlugin as ue,FontColorPlugin as me,FontBackgroundColorPlugin as he,FontSizePlugin as pe,FontFamilyPlugin as xe,LineHeightPlugin as fe}from"@platejs/basic-styles/react";import{AutoformatPlugin as ge,autoformatSmartQuotes as be,autoformatPunctuation as je,autoformatLegal as ve,autoformatLegalHtml as ye,autoformatArrow as we,autoformatMath as ke}from"@platejs/autoformat";import{insertEmptyCodeBlock as Ne,isLangSupported as Ce,formatCodeBlock as _e,insertCodeBlock as ze,toggleCodeBlock as Se,BaseCodeBlockPlugin as Ee,BaseCodeLinePlugin as Be,BaseCodeSyntaxPlugin as Ae}from"@platejs/code-block";import{toggleList as Ie,expandListItemsWithChildren as Te,someList as De,ListStyleType as Oe,isOrderedList as Fe,BaseListPlugin as Re}from"@platejs/list";import{H1Plugin as Me,H2Plugin as Le,H3Plugin as Pe,H4Plugin as He,H5Plugin as Ve,H6Plugin as Ue,BlockquotePlugin as qe,HorizontalRulePlugin as $e,BoldPlugin as We,ItalicPlugin as Ze,UnderlinePlugin as Ke,CodePlugin as Ye,StrikethroughPlugin as Ge,SubscriptPlugin as Qe,SuperscriptPlugin as Je,HighlightPlugin as Xe,KbdPlugin as et}from"@platejs/basic-nodes/react";import{cva as tt}from"class-variance-authority";import{clsx as rt}from"clsx";import{twMerge as st}from"tailwind-merge";import{BlockMenuPlugin as nt,BlockSelectionPlugin as ot,BLOCK_CONTEXT_MENU_ID as at,useBlockSelected as lt,useCursorOverlay as it,CursorOverlayPlugin as ct}from"@platejs/selection/react";import{AIChatPlugin as dt}from"@platejs/ai/react";import*as ut from"@radix-ui/react-context-menu";import{ChevronRightIcon as mt,CircleIcon as ht,CheckIcon as pt,ChevronDown as xt,SearchIcon as ft,XIcon as gt,MusicIcon as bt,CompassIcon as jt,SmileIcon as vt,LightbulbIcon as yt,LeafIcon as wt,ClockIcon as kt,AppleIcon as Nt,FlagIcon as Ct,StarIcon as _t,BracesIcon as zt,Check as St,CopyIcon as Et,GripHorizontal as Bt,Trash2Icon as At,ChevronLeftIcon as It,ChevronDownIcon as Tt,GripVertical as Dt,AlignLeftIcon as Ot,AlignCenterIcon as Ft,AlignRightIcon as Rt,AlignJustifyIcon as Mt,EraserIcon as Lt,PlusIcon as Pt,Undo2Icon as Ht,Redo2Icon as Vt,OutdentIcon as Ut,IndentIcon as qt,PilcrowIcon as $t,Heading1Icon as Wt,Heading2Icon as Zt,Heading3Icon as Kt,TableIcon as Yt,ListIcon as Gt,ListOrderedIcon as Qt,ImageIcon as Jt,Link2Icon as Xt,Link as er,ListOrdered as tr,List as rr,LinkIcon as sr,FilmIcon as nr,FileUpIcon as or,AudioLinesIcon as ar,MoreHorizontalIcon as lr,SuperscriptIcon as ir,SubscriptIcon as cr,Table as dr,Grid3x3Icon as ur,Combine as mr,Ungroup as hr,ArrowUp as pr,ArrowDown as xr,ArrowLeft as fr,ArrowRight as gr,Heading4Icon as br,Heading5Icon as jr,Heading6Icon as vr,Minimize as yr,Maximize as wr,BoldIcon as kr,ItalicIcon as Nr,UnderlineIcon as Cr,StrikethroughIcon as _r,BaselineIcon as zr,PaintBucketIcon as Sr,Text as Er,Unlink as Br,ExternalLink as Ar,RadicalIcon as Ir,CornerDownLeftIcon as Tr,FileUp as Dr,Loader2Icon as Or,Film as Fr,AudioLines as Rr,Minus as Mr,Plus as Lr,Download as Pr,X as Hr,SparklesIcon as Vr,Square as Ur,Code2 as qr,Quote as $r,TableOfContentsIcon as Wr,Columns3Icon as Zr,PenToolIcon as Kr,CalendarIcon as Yr,ArrowUpIcon as Gr,PencilIcon as Qr,TrashIcon as Jr,PencilLineIcon as Xr,MessageSquareTextIcon as es,MessagesSquareIcon as ts,CombineIcon as rs,SquareSplitHorizontalIcon as ss,Grid2X2Icon as ns,ChevronRight as os}from"lucide-react";import{DndPlugin as as,useDraggable as ls,useDropLine as is}from"@platejs/dnd";import{useCalloutEmojiPicker as cs,CalloutPlugin as ds}from"@platejs/callout/react";import{useEmojiDropdownMenuState as us}from"@platejs/emoji/react";import{Slot as ms}from"@radix-ui/react-slot";import{EmojiSettings as hs}from"@platejs/emoji";import*as ps from"@radix-ui/react-popover";import{PopoverAnchor as xs}from"@radix-ui/react-popover";import*as fs from"@radix-ui/react-tooltip";import*as gs from"@radix-ui/react-toolbar";import*as bs from"@radix-ui/react-dropdown-menu";import{DropdownMenuItemIndicator as js}from"@radix-ui/react-dropdown-menu";import*as vs from"@radix-ui/react-separator";import{CodeBlockPlugin as ys,CodeLinePlugin as ws,CodeSyntaxPlugin as ks}from"@platejs/code-block/react";import{createLowlight as Ns,all as Cs}from"lowlight";import{Command as _s}from"cmdk";import"@radix-ui/react-dialog";import{ColumnPlugin as zs,ColumnItemPlugin as Ss}from"@platejs/layout/react";import{setColumns as Es,insertColumnGroup as Bs,toggleColumnGroup as As,BaseColumnPlugin as Is,BaseColumnItemPlugin as Ts}from"@platejs/layout";import{ResizableProvider as Ds,Resizable as Os,useResizeHandleState as Fs,useResizeHandle as Rs,useResizableValue as Ms}from"@platejs/resizable";import{useComposedRef as Ls,createPrimitiveComponent as Ps}from"@udecode/cn";import{getCommentCount as Hs,BaseCommentPlugin as Vs,getDraftCommentKey as Us,getCommentKey as qs}from"@platejs/comment";import{getTableGridAbove as $s,setCellBackground as Ws,BaseTablePlugin as Zs,BaseTableRowPlugin as Ks,BaseTableCellPlugin as Ys,BaseTableCellHeaderPlugin as Gs}from"@platejs/table";import{DatePlugin as Qs}from"@platejs/date/react";import{getDefaultClassNames as Js,DayPicker as Xs}from"react-day-picker";import{DndProvider as en}from"react-dnd";import{HTML5Backend as tn}from"react-dnd-html5-backend";import{PlaceholderPlugin as rn,useMediaState as sn,useImagePreviewValue as nn,useFloatingMediaValue as on,FloatingMediaStore as an,FloatingMedia as ln,MediaEmbedPlugin as cn,ImagePlugin as dn,Image as un,PlaceholderProvider as mn,updateUploadHistory as hn,useImagePreview as pn,PreviewImage as xn,useScaleInput as fn,UploadErrorCode as gn,VideoPlugin as bn,AudioPlugin as jn,FilePlugin as vn}from"@platejs/media/react";import{DocxPlugin as yn}from"@platejs/docx";import{JuicePlugin as wn}from"@platejs/juice";import{useOutdentButton as kn,useIndentButton as Nn,IndentPlugin as Cn}from"@platejs/indent/react";import{insertCallout as _n,BaseCalloutPlugin as zn}from"@platejs/callout";import{insertDate as Sn,BaseDatePlugin as En}from"@platejs/date";import{insertExcalidraw as Bn}from"@platejs/excalidraw";import{triggerFloatingLink as An,useLinkToolbarButtonState as In,useLinkToolbarButton as Tn,useFloatingLinkInsertState as Dn,useFloatingLinkInsert as On,useFloatingLinkEditState as Fn,useFloatingLinkEdit as Rn,FloatingLinkUrlInput as Mn,LinkPlugin as Ln}from"@platejs/link/react";import{insertEquation as Pn,insertInlineEquation as Hn,getEquationHtml as Vn,BaseInlineEquationPlugin as Un,BaseEquationPlugin as qn}from"@platejs/math";import{insertVideoPlaceholder as $n,insertMedia as Wn,insertFilePlaceholder as Zn,insertAudioPlaceholder as Kn,parseTwitterUrl as Yn,parseVideoUrl as Gn,BaseImagePlugin as Qn,BaseVideoPlugin as Jn,BaseAudioPlugin as Xn,BaseFilePlugin as eo,BaseMediaEmbedPlugin as to,BasePlaceholderPlugin as ro}from"@platejs/media";import{SuggestionPlugin as so}from"@platejs/suggestion/react";import{TablePlugin as no,useTableMergeState as oo,TableProvider as ao,useTableElement as lo,useTableBordersDropdownMenuContentState as io,useTableCellElement as co,useTableCellElementResizable as uo,TableRowPlugin as mo,TableCellPlugin as ho,TableCellHeaderPlugin as po}from"@platejs/table/react";import{insertToc as xo,BaseTocPlugin as fo,isHeading as go}from"@platejs/toc";import{useTodoListElementState as bo,useTodoListElement as jo,ListPlugin as vo}from"@platejs/list/react";import{toast as yo}from"sonner";import{useFilePicker as wo}from"use-file-picker";import*as ko from"@radix-ui/react-alert-dialog";import{useFloatingToolbarState as No,offset as Co,flip as _o,useFloatingToolbar as zo}from"@platejs/floating";import{getLinkAttributes as So,BaseLinkPlugin as Eo}from"@platejs/link";import*as Bo from"@radix-ui/react-checkbox";import{MarkdownPlugin as Ao,remarkMdx as Io,remarkMention as To}from"@platejs/markdown";import Do from"remark-gfm";import Oo from"remark-math";import{useEquationInput as Fo,useEquationElement as Ro,InlineEquationPlugin as Mo,EquationPlugin as Lo}from"@platejs/math/react";import Po from"react-textarea-autosize";import{useCaptionButtonState as Ho,useCaptionButton as Vo,Caption as Uo,CaptionTextarea as qo,CaptionPlugin as $o}from"@platejs/caption/react";import Wo from"react-lite-youtube-embed";import{Tweet as Zo}from"react-tweet";import{generateReactHelpers as Ko}from"@uploadthing/react";import{z as Yo}from"zod";import Go from"react-player";import{MentionPlugin as Qo,MentionInputPlugin as Jo}from"@platejs/mention/react";import{getMentionOnSelectItem as Xo,BaseMentionPlugin as ea}from"@platejs/mention";import{useComboboxStore as ta,ComboboxProvider as ra,useComboboxContext as sa,Combobox as na,Portal as oa,ComboboxPopover as aa,ComboboxGroup as la,ComboboxItem as ia,ComboboxGroupLabel as ca}from"@ariakit/react";import{filterWords as da}from"@platejs/combobox";import{useHTMLInputCursorState as ua,useComboboxInput as ma}from"@platejs/combobox/react";import{SlashPlugin as ha,SlashInputPlugin as pa}from"@platejs/slash-command/react";import{getSuggestionKey as xa,keyId2SuggestionId as fa,acceptSuggestion as ga,rejectSuggestion as ba,getTransientSuggestionKey as ja,BaseSuggestionPlugin as va}from"@platejs/suggestion";import{useCommentId as ya,CommentPlugin as wa}from"@platejs/comment/react";import*as ka from"@radix-ui/react-avatar";import{differenceInMinutes as Na,differenceInHours as Ca,differenceInDays as _a,format as za}from"date-fns";import{useTocElementState as Sa,useTocElement as Ea,TocPlugin as Ba}from"@platejs/toc/react";import{useToggleButtonState as Aa,useToggleButton as Ia,TogglePlugin as Ta}from"@platejs/toggle/react";import{BaseTextAlignPlugin as Da,BaseFontColorPlugin as Oa,BaseFontBackgroundColorPlugin as Fa,BaseFontSizePlugin as Ra,BaseFontFamilyPlugin as Ma,BaseLineHeightPlugin as La}from"@platejs/basic-styles";import{BaseH1Plugin as Pa,BaseH2Plugin as Ha,BaseH3Plugin as Va,BaseH4Plugin as Ua,BaseH5Plugin as qa,BaseH6Plugin as $a,BaseBlockquotePlugin as Wa,BaseHorizontalRulePlugin as Za,BaseBoldPlugin as Ka,BaseItalicPlugin as Ya,BaseUnderlinePlugin as Ga,BaseCodePlugin as Qa,BaseStrikethroughPlugin as Ja,BaseSubscriptPlugin as Xa,BaseSuperscriptPlugin as el,BaseHighlightPlugin as tl,BaseKbdPlugin as rl}from"@platejs/basic-nodes";import{SlateElement as sl,SlateLeaf as nl}from"platejs/static";import{PlateStatic as ol,serializeHtml as al}from"platejs/static";import{BaseIndentPlugin as ll}from"@platejs/indent";import{BaseCaptionPlugin as il}from"@platejs/caption";import{BaseTogglePlugin as cl}from"@platejs/toggle";import{computeDiff as dl,withGetFragmentExcludeDiff as ul}from"@platejs/diff";var ml="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pl,xl={exports:{}},fl={};var gl,bl,jl={};function vl(){return gl||(gl=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case p:return"Fragment";case f:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList";case N:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case h:return"Portal";case b:return t.displayName||"Context";case g:return(t._context.displayName||"Context")+".Consumer";case j:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case w:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case k:r=t._payload,t=t._init;try{return e(t(r))}catch(s){}}return null}function r(e){return""+e}function s(e){try{r(e);var t=!1}catch(o){t=!0}if(t){var s=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),r(e)}}function n(t){if(t===p)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===k)return"<...>";try{var r=e(t);return r?"<"+r+">":"<...>"}catch(s){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return B[t]||(B[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function l(t,r,n,o,l,c){var u,h=r.children;if(void 0!==h)if(o)if(S(h)){for(o=0;o<h.length;o++)i(h[o]);Object.freeze&&Object.freeze(h)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else i(h);if(z.call(r,"key")){h=e(t);var p=Object.keys(r).filter(function(e){return"key"!==e});o=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",T[h+o]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,h,p,h),T[h+o]=!0)}if(h=null,void 0!==n&&(s(n),h=""+n),function(e){if(z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(s(r.key),h=""+r.key),"key"in r)for(var x in n={},r)"key"!==x&&(n[x]=r[x]);else n=r;return h&&function(e,t){function r(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,r,s,n,o){var l=r.ref;return e={$$typeof:m,type:e,key:t,props:r,_owner:s},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,h,n,null===(u=_.A)?null:u.getOwner(),l,c)}function i(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=t,m=/* @__PURE__ */Symbol.for("react.transitional.element"),h=/* @__PURE__ */Symbol.for("react.portal"),p=/* @__PURE__ */Symbol.for("react.fragment"),x=/* @__PURE__ */Symbol.for("react.strict_mode"),f=/* @__PURE__ */Symbol.for("react.profiler"),g=/* @__PURE__ */Symbol.for("react.consumer"),b=/* @__PURE__ */Symbol.for("react.context"),j=/* @__PURE__ */Symbol.for("react.forward_ref"),v=/* @__PURE__ */Symbol.for("react.suspense"),y=/* @__PURE__ */Symbol.for("react.suspense_list"),w=/* @__PURE__ */Symbol.for("react.memo"),k=/* @__PURE__ */Symbol.for("react.lazy"),N=/* @__PURE__ */Symbol.for("react.activity"),C=/* @__PURE__ */Symbol.for("react.client.reference"),_=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,S=Array.isArray,E=console.createTask?console.createTask:function(){return null},B={},A=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,o)(),I=E(n(o)),T={};jl.Fragment=p,jl.jsx=function(e,t,r){var s=1e4>_.recentlyCreatedOwnerStacks++;return l(e,t,r,!1,s?Error("react-stack-top-frame"):A,s?E(n(e)):I)},jl.jsxs=function(e,t,r){var s=1e4>_.recentlyCreatedOwnerStacks++;return l(e,t,r,!0,s?Error("react-stack-top-frame"):A,s?E(n(e)):I)}}()),jl}var yl=(bl||(bl=1,"production"===process.env.NODE_ENV?xl.exports=function(){if(pl)return fl;pl=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.fragment");function r(t,r,s){var n=null;if(void 0!==s&&(n=""+s),void 0!==r.key&&(n=""+r.key),"key"in r)for(var o in s={},r)"key"!==o&&(s[o]=r[o]);else s=r;return r=s.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:s}}return fl.Fragment=t,fl.jsx=r,fl.jsxs=r,fl}():xl.exports=vl()),xl.exports);const wl=[ue.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...q.heading,q.p,q.img,q.mediaEmbed]}})],kl=[{match:"***",mode:"mark",type:[q.bold,q.italic]},{match:"__*",mode:"mark",type:[q.underline,q.italic]},{match:"__**",mode:"mark",type:[q.underline,q.bold]},{match:"___***",mode:"mark",type:[q.underline,q.bold,q.italic]},{match:"**",mode:"mark",type:q.bold},{match:"__",mode:"mark",type:q.underline},{match:"*",mode:"mark",type:q.italic},{match:"_",mode:"mark",type:q.italic},{match:"~~",mode:"mark",type:q.strikethrough},{match:"^",mode:"mark",type:q.sup},{match:"~",mode:"mark",type:q.sub},{match:"==",mode:"mark",type:q.highlight},{match:"≡",mode:"mark",type:q.highlight},{match:"`",mode:"mark",type:q.code}],Nl=[{match:"# ",mode:"block",type:q.h1},{match:"## ",mode:"block",type:q.h2},{match:"### ",mode:"block",type:q.h3},{match:"#### ",mode:"block",type:q.h4},{match:"##### ",mode:"block",type:q.h5},{match:"###### ",mode:"block",type:q.h6},{match:"> ",mode:"block",type:q.blockquote},{match:"```",mode:"block",type:q.codeBlock,format:e=>{Ne(e,{defaultType:q.p,insertNodesOptions:{select:!0}})}},{match:["---","—-","___ "],mode:"block",type:q.hr,format:e=>{e.tf.setNodes({type:q.hr}),e.tf.insertNodes({children:[{text:""}],type:q.p})}}],Cl=[{match:["* ","- "],mode:"block",type:"list",format:e=>{Ie(e,{listStyleType:q.ul})}},{match:[String.raw`^\d+\.$ `,String.raw`^\d+\)$ `],matchByRegex:!0,mode:"block",type:"list",format:(e,{matchString:t})=>{Ie(e,{listRestartPolite:Number(t)||1,listStyleType:q.ol})}},{match:["[] "],mode:"block",type:"list",format:e=>{Ie(e,{listStyleType:q.listTodo}),e.tf.setNodes({checked:!1,listStyleType:q.listTodo})}},{match:["[x] "],mode:"block",type:"list",format:e=>{Ie(e,{listStyleType:q.listTodo}),e.tf.setNodes({checked:!0,listStyleType:q.listTodo})}}],_l=[ge.configure({options:{enableUndoOnDelete:!0,rules:[...Nl,...kl,...be,...je,...ve,...ye,...we,...ke,...Cl].map(e=>({...e,query:e=>!e.api.some({match:{type:e.getType(q.codeBlock)}})}))}})];const zl=tt("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function Sl({variant:e="h1",...t}){/* @__PURE__ */
3
+ return yl.jsx(r,{as:e,className:zl({variant:e}),...t,children:t.children})}function El(...e){return st(rt(e))}const Bl=[a.withComponent(function(e){/* @__PURE__ */
4
+ return yl.jsx(r,{...e,className:El("m-0 px-0 py-1"),children:e.children})}),Me.configure({node:{component:function(e){/* @__PURE__ */
5
+ return yl.jsx(Sl,{variant:"h1",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+1"}}}),Le.configure({node:{component:function(e){/* @__PURE__ */
6
+ return yl.jsx(Sl,{variant:"h2",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+2"}}}),Pe.configure({node:{component:function(e){/* @__PURE__ */
7
+ return yl.jsx(Sl,{variant:"h3",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+3"}}}),He.configure({node:{component:function(e){/* @__PURE__ */
8
+ return yl.jsx(Sl,{variant:"h4",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+4"}}}),Ve.configure({node:{component:function(e){/* @__PURE__ */
9
+ return yl.jsx(Sl,{variant:"h5",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+5"}}}),Ue.configure({node:{component:function(e){/* @__PURE__ */
10
+ return yl.jsx(Sl,{variant:"h6",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+6"}}}),qe.configure({node:{component:function(e){/* @__PURE__ */
11
+ return yl.jsx(r,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}},shortcuts:{toggle:{keys:"mod+shift+period"}}}),$e.withComponent(function(e){const t=s(),a=n(),l=o();/* @__PURE__ */
12
+ return yl.jsxs(r,{...e,children:[
13
+ /* @__PURE__ */yl.jsx("div",{className:"py-6",contentEditable:!1,children:/* @__PURE__ */yl.jsx("hr",{className:El("h-0.5 rounded-sm border-none bg-muted bg-clip-content",a&&l&&"ring-2 ring-ring ring-offset-2",!t&&"cursor-pointer")})}),e.children]})})];const Al=[We,Ze,Ke,Ye.configure({node:{component:function(e){/* @__PURE__ */
14
+ return yl.jsx(l,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}},shortcuts:{toggle:{keys:"mod+e"}}}),Ge.configure({shortcuts:{toggle:{keys:"mod+shift+x"}}}),Qe.configure({shortcuts:{toggle:{keys:"mod+comma"}}}),Je.configure({shortcuts:{toggle:{keys:"mod+period"}}}),Xe.configure({node:{component:function(e){/* @__PURE__ */
15
+ return yl.jsx(l,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}},shortcuts:{toggle:{keys:"mod+shift+h"}}}),et.withComponent(function(e){/* @__PURE__ */
16
+ return yl.jsx(l,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];function Il({...e}){/* @__PURE__ */
17
+ return yl.jsx(ut.Root,{"data-slot":"context-menu",...e})}function Tl({...e}){/* @__PURE__ */
18
+ return yl.jsx(ut.Trigger,{"data-slot":"context-menu-trigger",...e})}function Dl({...e}){/* @__PURE__ */
19
+ return yl.jsx(ut.Group,{"data-slot":"context-menu-group",...e})}function Ol({...e}){/* @__PURE__ */
20
+ return yl.jsx(ut.Sub,{"data-slot":"context-menu-sub",...e})}function Fl({className:e,inset:t,children:r,...s}){/* @__PURE__ */
21
+ return yl.jsxs(ut.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:El("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,
22
+ /* @__PURE__ */yl.jsx(mt,{className:"ml-auto"})]})}function Rl({className:e,...t}){/* @__PURE__ */
23
+ return yl.jsx(ut.SubContent,{"data-slot":"context-menu-sub-content",className:El("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function Ml({className:e,...t}){/* @__PURE__ */
24
+ return yl.jsx(ut.Portal,{children:/* @__PURE__ */yl.jsx(ut.Content,{"data-slot":"context-menu-content",className:El("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...t})})}function Ll({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
25
+ return yl.jsx(ut.Item,{"data-slot":"context-menu-item","data-inset":t,"data-variant":r,className:El("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}const Pl=tt("pointer-events-none absolute inset-0 z-1 bg-brand/[.13] transition-opacity",{defaultVariants:{active:!0},variants:{active:{false:"opacity-0",true:"opacity-100"}}});function Hl(e){const t=lt(),r=d(as,"isDragging");return t&&"tr"!==e.plugin.key&&"table"!==e.plugin.key?/* @__PURE__ */yl.jsx("div",{className:Pl({active:t&&!r}),"data-slot":"block-selection"}):null}const Vl=[...[ot.configure(({editor:e})=>({options:{enableContextMenu:!0,isSelectable:t=>!W(e,[q.column,q.codeLine,q.td]).includes(t.type),onKeyDownSelecting:(e,t)=>{$("mod+j")(t)&&e.getApi(dt).aiChat.show()}},render:{belowRootNodes:e=>e.attributes.className?.includes("slate-selectable")?/* @__PURE__ */yl.jsx(Hl,{...e}):null}}))],nt.configure({render:{aboveEditable:function({children:t}){const{api:r,editor:s}=i(nt),[n,o]=e.useState(null),a=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{function e(){r("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),t}(),[l]=c("readOnly"),u=d(nt,"openId")===at,m=e.useCallback(e=>{s.getApi(ot).blockSelection.getNodes().forEach(([t,r])=>{t[q.listType]&&s.tf.unsetNodes([q.listType,"indent"],{at:r}),s.tf.toggleBlock(e,{at:r})})},[s]),h=e.useCallback(e=>{s.getTransforms(ot).blockSelection.setNodes({align:e})},[s]);return a?t:/* @__PURE__ */yl.jsxs(Il,{onOpenChange:e=>{e||r.blockMenu.hide()},modal:!1,children:[
26
+ /* @__PURE__ */yl.jsx(Tl,{asChild:!0,onContextMenu:e=>{const t=e.target.dataset;if("true"===t?.slateEditor||l||"false"===t?.plateOpenContextMenu)return e.preventDefault();setTimeout(()=>{r.blockMenu.show(at,{x:e.clientX,y:e.clientY})},0)},children:/* @__PURE__ */yl.jsx("div",{className:"w-full",children:t})}),u&&/* @__PURE__ */yl.jsxs(Ml,{className:"w-64",onCloseAutoFocus:e=>{e.preventDefault(),s.getApi(ot).blockSelection.focus(),"askAI"===n&&s.getApi(dt).aiChat.show(),o(null)},children:[
27
+ /* @__PURE__ */yl.jsxs(Dl,{children:[
28
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>{o("askAI")},children:"Ask AI"}),
29
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>{s.getTransforms(ot).blockSelection.removeNodes(),s.tf.focus()},children:"Delete"}),
30
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>{s.getTransforms(ot).blockSelection.duplicate()},children:"Duplicate"}),
31
+ /* @__PURE__ */yl.jsxs(Ol,{children:[
32
+ /* @__PURE__ */yl.jsx(Fl,{children:"Turn into"}),
33
+ /* @__PURE__ */yl.jsxs(Rl,{className:"w-48",children:[
34
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>m(q.p),children:"Paragraph"}),
35
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>m(q.h1),children:"Heading 1"}),
36
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>m(q.h2),children:"Heading 2"}),
37
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>m(q.h3),children:"Heading 3"}),
38
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>m(q.blockquote),children:"Blockquote"})]})]})]}),
39
+ /* @__PURE__ */yl.jsxs(Dl,{children:[
40
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>s.getTransforms(ot).blockSelection.setIndent(1),children:"Indent"}),
41
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>s.getTransforms(ot).blockSelection.setIndent(-1),children:"Outdent"}),
42
+ /* @__PURE__ */yl.jsxs(Ol,{children:[
43
+ /* @__PURE__ */yl.jsx(Fl,{children:"Align"}),
44
+ /* @__PURE__ */yl.jsxs(Rl,{className:"w-48",children:[
45
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>h("left"),children:"Left"}),
46
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>h("center"),children:"Center"}),
47
+ /* @__PURE__ */yl.jsx(Ll,{onClick:()=>h("right"),children:"Right"})]})]})]})]})]})}}})],Ul=[u.configure({options:{className:"before:absolute before:cursor-text before:text-muted-foreground/80 before:content-[attr(placeholder)]",placeholders:{[q.p]:"Type something..."},query:({path:e})=>1===e.length}})],ql=tt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function $l({className:e,variant:t="default",size:r="default",asChild:s=!1,...n}){const o=s?ms:"button";/* @__PURE__ */
48
+ return yl.jsx(o,{"data-slot":"button","data-variant":t,"data-size":r,className:El(ql({variant:t,size:r,className:e})),...n})}function Wl({delayDuration:e=0,...t}){/* @__PURE__ */
49
+ return yl.jsx(fs.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Zl({...e}){/* @__PURE__ */
50
+ return yl.jsx(Wl,{children:/* @__PURE__ */yl.jsx(fs.Root,{"data-slot":"tooltip",...e})})}function Kl({...e}){/* @__PURE__ */
51
+ return yl.jsx(fs.Trigger,{"data-slot":"tooltip-trigger",...e})}function Yl({className:e,sideOffset:t=0,children:r,...s}){/* @__PURE__ */
52
+ return yl.jsx(fs.Portal,{children:/* @__PURE__ */yl.jsxs(fs.Content,{"data-slot":"tooltip-content",sideOffset:t,className:El("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[r,
53
+ /* @__PURE__ */yl.jsx(fs.Arrow,{className:"bg-foreground fill-foreground z-1500 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function Gl({...e}){/* @__PURE__ */
54
+ return yl.jsx(bs.Root,{"data-slot":"dropdown-menu",...e})}function Ql({...e}){/* @__PURE__ */
55
+ return yl.jsx(bs.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Jl({...e}){/* @__PURE__ */
56
+ return yl.jsx(bs.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Xl({className:e,sideOffset:t=4,...r}){/* @__PURE__ */
57
+ return yl.jsx(bs.Portal,{children:/* @__PURE__ */yl.jsx(bs.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:El("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function ei({...e}){/* @__PURE__ */
58
+ return yl.jsx(bs.Group,{"data-slot":"dropdown-menu-group",...e})}function ti({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
59
+ return yl.jsx(bs.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:El("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}function ri({className:e,children:t,checked:r,...s}){/* @__PURE__ */
60
+ return yl.jsxs(bs.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:El("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...s,children:[
61
+ /* @__PURE__ */yl.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */yl.jsx(bs.ItemIndicator,{children:/* @__PURE__ */yl.jsx(pt,{className:"size-4"})})}),t]})}function si({...e}){/* @__PURE__ */
62
+ return yl.jsx(bs.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function ni({className:e,children:t,...r}){/* @__PURE__ */
63
+ return yl.jsxs(bs.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:El("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[
64
+ /* @__PURE__ */yl.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */yl.jsx(bs.ItemIndicator,{children:/* @__PURE__ */yl.jsx(ht,{className:"size-2 fill-current"})})}),t]})}function oi({className:e,inset:t,...r}){/* @__PURE__ */
65
+ return yl.jsx(bs.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:El("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function ai({className:e,...t}){/* @__PURE__ */
66
+ return yl.jsx(bs.Separator,{"data-slot":"dropdown-menu-separator",className:El("bg-border -mx-1 my-1 h-px",e),...t})}function li({...e}){/* @__PURE__ */
67
+ return yl.jsx(bs.Sub,{"data-slot":"dropdown-menu-sub",...e})}function ii({className:e,inset:t,children:r,...s}){/* @__PURE__ */
68
+ return yl.jsxs(bs.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:El("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,
69
+ /* @__PURE__ */yl.jsx(mt,{className:"ml-auto size-4"})]})}function ci({className:e,...t}){/* @__PURE__ */
70
+ return yl.jsx(bs.SubContent,{"data-slot":"dropdown-menu-sub-content",className:El("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function di({className:e,orientation:t="horizontal",decorative:r=!0,...s}){/* @__PURE__ */
71
+ return yl.jsx(vs.Root,{"data-slot":"separator",decorative:r,orientation:t,className:El("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}function ui({className:e,...t}){/* @__PURE__ */
72
+ return yl.jsx(gs.Root,{className:El("relative flex select-none items-center",e),...t})}function mi({className:e,...t}){/* @__PURE__ */
73
+ return yl.jsx(gs.ToolbarToggleGroup,{className:El("flex items-center",e),...t})}const hi=tt("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-checked:bg-accent aria-checked:text-accent-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"h-9 min-w-9 px-2",lg:"h-10 min-w-10 px-2.5",sm:"h-8 min-w-8 px-1.5"},variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"}}}),pi=tt(El("inline-flex items-center justify-center rounded-r-md font-medium text-foreground text-sm transition-colors disabled:pointer-events-none disabled:opacity-50"),{defaultVariants:{size:"sm",variant:"default"},variants:{size:{default:"h-9 w-6",lg:"h-10 w-8",sm:"h-8 w-4"},variant:{default:"bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground",outline:"border border-input border-l-0 bg-transparent hover:bg-accent hover:text-accent-foreground"}}}),xi=(fi=function({children:e,className:t,isDropdown:r,pressed:s,size:n="sm",variant:o,...a}){return"boolean"==typeof s?/* @__PURE__ */yl.jsx(mi,{disabled:a.disabled,value:"single",type:"single",children:/* @__PURE__ */yl.jsx(vi,{className:El(hi({size:n,variant:o}),r&&"justify-between gap-1 pr-1",t),value:s?"single":"",...a,children:r?/* @__PURE__ */yl.jsxs(yl.Fragment,{children:[
74
+ /* @__PURE__ */yl.jsx("div",{className:"flex flex-1 items-center gap-2 whitespace-nowrap",children:e}),
75
+ /* @__PURE__ */yl.jsx("div",{children:/* @__PURE__ */yl.jsx(xt,{className:"size-3.5 text-muted-foreground","data-icon":!0})})]}):e})}):/* @__PURE__ */yl.jsx(gs.Button,{className:El(hi({size:n,variant:o}),r&&"pr-1",t),...a,children:e})},function({tooltip:t,tooltipContentProps:r,tooltipProps:s,tooltipTriggerProps:n,...o}){const[a,l]=e.useState(!1);e.useEffect(()=>{l(!0)},[]);const i=/* @__PURE__ */yl.jsx(fi,{...o});return t&&a?/* @__PURE__ */yl.jsxs(Zl,{...s,children:[
76
+ /* @__PURE__ */yl.jsx(Kl,{asChild:!0,...n,children:i}),
77
+ /* @__PURE__ */yl.jsx(wi,{...r,children:t})]}):i});var fi;function gi({className:e,...t}){/* @__PURE__ */
78
+ return yl.jsx(xi,{className:El("group flex gap-0 px-0 hover:bg-transparent",e),...t})}function bi({children:e,className:t,size:r="sm",variant:s,...n}){/* @__PURE__ */
79
+ return yl.jsx("span",{className:El(hi({size:r,variant:s}),"rounded-r-none","group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",t),...n,children:e})}function ji({className:e,size:t,variant:r,...s}){/* @__PURE__ */
80
+ return yl.jsx("span",{className:El(pi({size:t,variant:r}),"group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",e),onClick:e=>e.stopPropagation(),role:"button",...s,children:/* @__PURE__ */yl.jsx(xt,{className:"size-3.5 text-muted-foreground","data-icon":!0})})}function vi({className:e,size:t="sm",variant:r,...s}){/* @__PURE__ */
81
+ return yl.jsx(gs.ToggleItem,{className:El(hi({size:t,variant:r}),e),...s})}function yi({children:e,className:t}){/* @__PURE__ */
82
+ return yl.jsxs("div",{className:El("group/toolbar-group","relative hidden has-[button]:flex",t),children:[
83
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center",children:e}),
84
+ /* @__PURE__ */yl.jsx("div",{className:"group-last/toolbar-group:hidden! mx-1.5 py-0.5",children:/* @__PURE__ */yl.jsx(di,{orientation:"vertical"})})]})}function wi({children:e,className:t,sideOffset:r=4,...s}){/* @__PURE__ */
85
+ return yl.jsx(fs.Portal,{children:/* @__PURE__ */yl.jsx(fs.Content,{className:El("z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs",t),"data-slot":"tooltip-content",sideOffset:r,...s,children:e})})}function ki({children:e,className:t,label:r,...s}){/* @__PURE__ */
86
+ return yl.jsxs(yl.Fragment,{children:[
87
+ /* @__PURE__ */yl.jsx(ai,{className:El("hidden","mb-0 shrink-0 peer-has-[[role=menuitem]]/menu-group:block peer-has-[[role=menuitemradio]]/menu-group:block peer-has-[[role=option]]/menu-group:block")}),
88
+ /* @__PURE__ */yl.jsxs(si,{...s,className:El("hidden","peer/menu-group group/menu-group my-1.5 has-[[role=menuitem]]:block has-[[role=menuitemradio]]:block has-[[role=option]]:block",t),children:[r&&/* @__PURE__ */yl.jsx(oi,{className:"select-none font-semibold text-muted-foreground text-xs",children:r}),e]})]})}function Ni({children:e,control:t,isOpen:r,setIsOpen:s}){/* @__PURE__ */
89
+ return yl.jsxs(ps.Root,{open:r,onOpenChange:s,children:[
90
+ /* @__PURE__ */yl.jsx(ps.Trigger,{asChild:!0,children:t}),
91
+ /* @__PURE__ */yl.jsx(ps.Portal,{children:/* @__PURE__ */yl.jsx(ps.Content,{className:"z-100",children:e})})]})}function Ci({clearSearch:e,emoji:t,emojiLibrary:r,focusedCategory:s,hasFound:n,i18n:o,icons:a={categories:Fi,search:Ri},isSearching:l,refs:i,searchResult:c,searchValue:d,setSearch:u,settings:m=hs,visibleCategories:h,handleCategoryClick:p,onMouseOver:x,onSelectEmoji:f}){/* @__PURE__ */
92
+ return yl.jsxs("div",{className:El("flex flex-col rounded-xl bg-popover text-popover-foreground","h-[23rem] w-80 border shadow-md"),children:[
93
+ /* @__PURE__ */yl.jsx(Oi,{onClick:p,emojiLibrary:r,focusedCategory:s,i18n:o,icons:a}),
94
+ /* @__PURE__ */yl.jsx(Ei,{i18n:o,searchValue:d,setSearch:u,children:/* @__PURE__ */yl.jsx(Bi,{clearSearch:e,i18n:o,searchValue:d})}),
95
+ /* @__PURE__ */yl.jsx(Si,{onMouseOver:x,onSelectEmoji:f,emojiLibrary:r,i18n:o,isSearching:l,refs:i,searchResult:c,settings:m,visibleCategories:h}),
96
+ /* @__PURE__ */yl.jsx(Di,{emoji:t,hasFound:n,i18n:o,isSearching:l})]})}const _i=e.memo(function({emoji:e,index:t,onMouseOver:r,onSelect:s}){/* @__PURE__ */
97
+ return yl.jsxs("button",{className:"group relative flex size-9 cursor-pointer items-center justify-center border-none bg-transparent text-2xl leading-none",onClick:()=>s(e),onMouseEnter:()=>r(e),onMouseLeave:()=>r(),"aria-label":e.skins[0].native,"data-index":t,tabIndex:-1,type:"button",children:[
98
+ /* @__PURE__ */yl.jsx("div",{className:"absolute inset-0 rounded-full opacity-0 group-hover:opacity-100","aria-hidden":"true"}),
99
+ /* @__PURE__ */yl.jsx("span",{className:"relative",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},"data-emoji-set":"native",children:e.skins[0].native})]})}),zi=e.memo(function({emojiLibrary:e,row:t,onMouseOver:r,onSelectEmoji:s}){/* @__PURE__ */
100
+ return yl.jsx("div",{className:"flex","data-index":t.id,children:t.elements.map((t,n)=>/* @__PURE__ */yl.jsx(_i,{onMouseOver:r,onSelect:s,emoji:e.getEmoji(t),index:n},t))},t.id)});function Si({emojiLibrary:t,i18n:r,isSearching:s=!1,refs:n,searchResult:o,settings:a=hs,visibleCategories:l,onMouseOver:i,onSelectEmoji:c}){const d=a.perLine.value*a.buttonSize.value,u=e.useCallback(e=>!!l.has(e)&&l.get(e),[l]),m=e.useCallback(()=>t.getGrid().sections().map(({id:e})=>{const s=t.getGrid().section(e),{buttonSize:n}=a;/* @__PURE__ */
101
+ return yl.jsxs("div",{ref:s.root,style:{width:d},"data-id":e,children:[
102
+ /* @__PURE__ */yl.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-sm backdrop-blur-xs",children:r.categories[e]}),
103
+ /* @__PURE__ */yl.jsx("div",{className:"relative flex flex-wrap",style:{height:s.getRows().length*n.value},children:u(e)&&s.getRows().map(e=>/* @__PURE__ */yl.jsx(zi,{onMouseOver:i,onSelectEmoji:c,emojiLibrary:t,row:e},e.id))})]},e)}),[t,d,r.categories,u,c,i,a]),h=e.useCallback(()=>/* @__PURE__ */yl.jsxs("div",{style:{width:d},"data-id":"search",children:[
104
+ /* @__PURE__ */yl.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-card-foreground text-sm backdrop-blur-xs",children:r.searchResult}),
105
+ /* @__PURE__ */yl.jsx("div",{className:"relative flex flex-wrap",children:o.map((e,r)=>/* @__PURE__ */yl.jsx(_i,{onMouseOver:i,onSelect:c,emoji:t.getEmoji(e.id),index:r},e.id))})]}),[t,d,r.searchResult,o,c,i]);/* @__PURE__ */
106
+ return yl.jsx("div",{ref:n.current.contentRoot,className:El("h-full min-h-[50%] overflow-y-auto overflow-x-hidden px-2","[&::-webkit-scrollbar]:w-4","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:size-0","[&::-webkit-scrollbar-thumb]:min-h-11 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted [&::-webkit-scrollbar-thumb]:hover:bg-muted-foreground/25","[&::-webkit-scrollbar-thumb]:border-4 [&::-webkit-scrollbar-thumb]:border-popover [&::-webkit-scrollbar-thumb]:border-solid [&::-webkit-scrollbar-thumb]:bg-clip-padding"),"data-id":"scroll",children:/* @__PURE__ */yl.jsx("div",{ref:n.current.content,className:"h-full",children:s?h():m()})})}function Ei({children:e,i18n:t,searchValue:r,setSearch:s}){/* @__PURE__ */
107
+ return yl.jsx("div",{className:"flex items-center px-2",children:/* @__PURE__ */yl.jsxs("div",{className:"relative flex grow items-center",children:[
108
+ /* @__PURE__ */yl.jsx("input",{className:"block w-full appearance-none rounded-full border-0 bg-muted px-10 py-2 text-sm outline-none placeholder:text-muted-foreground focus-visible:outline-none",value:r,onChange:e=>s(e.target.value),placeholder:t.search,"aria-label":"Search",autoComplete:"off",type:"text",autoFocus:!0}),e]})})}function Bi({clearSearch:e,i18n:t,searchValue:r}){/* @__PURE__ */
109
+ return yl.jsxs("div",{className:"flex items-center text-foreground",children:[
110
+ /* @__PURE__ */yl.jsx("div",{className:El("-translate-y-1/2 absolute top-1/2 left-2.5 z-10 flex size-5 items-center justify-center text-foreground"),children:Ri.loupe}),r&&/* @__PURE__ */yl.jsx($l,{size:"icon",variant:"ghost",className:El("-translate-y-1/2 absolute top-1/2 right-0.5 flex size-8 cursor-pointer items-center justify-center rounded-full border-none bg-transparent text-popover-foreground hover:bg-transparent"),onClick:e,title:t.clear,"aria-label":"Clear",type:"button",children:Ri.delete})]})}function Ai({emoji:e}){/* @__PURE__ */
111
+ return yl.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
112
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center justify-center text-2xl",children:e?.skins[0].native}),
113
+ /* @__PURE__ */yl.jsxs("div",{className:"overflow-hidden pl-2",children:[
114
+ /* @__PURE__ */yl.jsx("div",{className:"truncate font-semibold text-sm",children:e?.name}),
115
+ /* @__PURE__ */yl.jsx("div",{className:"truncate text-sm",children:`:${e?.id}:`})]})]})}function Ii({i18n:e}){/* @__PURE__ */
116
+ return yl.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
117
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center justify-center text-2xl",children:"😢"}),
118
+ /* @__PURE__ */yl.jsxs("div",{className:"overflow-hidden pl-2",children:[
119
+ /* @__PURE__ */yl.jsx("div",{className:"truncate font-bold text-sm",children:e.searchNoResultsTitle}),
120
+ /* @__PURE__ */yl.jsx("div",{className:"truncate text-sm",children:e.searchNoResultsSubtitle})]})]})}function Ti({i18n:e}){/* @__PURE__ */
121
+ return yl.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
122
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center justify-center text-2xl",children:"☝️"}),
123
+ /* @__PURE__ */yl.jsx("div",{className:"overflow-hidden pl-2",children:/* @__PURE__ */yl.jsx("div",{className:"truncate font-semibold text-sm",children:e.pick})})]})}function Di({emoji:e,hasFound:t=!0,i18n:r,isSearching:s=!1,...n}){const o=!e&&(!s||t),a=s&&!t,l=e&&!a&&!a;/* @__PURE__ */
124
+ return yl.jsxs(yl.Fragment,{children:[l&&/* @__PURE__ */yl.jsx(Ai,{emoji:e,...n}),o&&/* @__PURE__ */yl.jsx(Ti,{i18n:r,...n}),a&&/* @__PURE__ */yl.jsx(Ii,{i18n:r,...n})]})}function Oi({emojiLibrary:e,focusedCategory:t,i18n:r,icons:s,onClick:n}){/* @__PURE__ */
125
+ return yl.jsx(Wl,{delayDuration:500,children:/* @__PURE__ */yl.jsx("nav",{id:"emoji-nav",className:"mb-2.5 border-0 border-b border-b-border border-solid p-1.5",children:/* @__PURE__ */yl.jsx("div",{className:"relative flex items-center justify-evenly",children:e.getGrid().sections().map(({id:e})=>/* @__PURE__ */yl.jsxs(Zl,{children:[
126
+ /* @__PURE__ */yl.jsx(Kl,{asChild:!0,children:/* @__PURE__ */yl.jsx($l,{size:"sm",variant:"ghost",className:El("h-fit rounded-full fill-current p-1.5 text-muted-foreground hover:bg-muted hover:text-muted-foreground",e===t&&"pointer-events-none bg-accent fill-current text-accent-foreground"),onClick:()=>{n(e)},"aria-label":r.categories[e],type:"button",children:/* @__PURE__ */yl.jsx("span",{className:"inline-flex size-5 items-center justify-center",children:s.categories[e].outline})})}),
127
+ /* @__PURE__ */yl.jsx(Yl,{side:"bottom",children:r.categories[e]})]},e))})})})}const Fi={activity:{outline:/* @__PURE__ */yl.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
128
+ /* @__PURE__ */yl.jsx("circle",{cx:"12",cy:"12",r:"10"}),
129
+ /* @__PURE__ */yl.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
130
+ /* @__PURE__ */yl.jsx("path",{d:"m5 4.9 14 14.2"}),
131
+ /* @__PURE__ */yl.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]}),solid:/* @__PURE__ */yl.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
132
+ /* @__PURE__ */yl.jsx("circle",{cx:"12",cy:"12",r:"10"}),
133
+ /* @__PURE__ */yl.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
134
+ /* @__PURE__ */yl.jsx("path",{d:"m5 4.9 14 14.2"}),
135
+ /* @__PURE__ */yl.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]})},custom:{outline:/* @__PURE__ */yl.jsx(_t,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(_t,{className:"size-full"})},flags:{outline:/* @__PURE__ */yl.jsx(Ct,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(Ct,{className:"size-full"})},foods:{outline:/* @__PURE__ */yl.jsx(Nt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(Nt,{className:"size-full"})},frequent:{outline:/* @__PURE__ */yl.jsx(kt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(kt,{className:"size-full"})},nature:{outline:/* @__PURE__ */yl.jsx(wt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(wt,{className:"size-full"})},objects:{outline:/* @__PURE__ */yl.jsx(yt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(yt,{className:"size-full"})},people:{outline:/* @__PURE__ */yl.jsx(vt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(vt,{className:"size-full"})},places:{outline:/* @__PURE__ */yl.jsx(jt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(jt,{className:"size-full"})},symbols:{outline:/* @__PURE__ */yl.jsx(bt,{className:"size-full"}),solid:/* @__PURE__ */yl.jsx(bt,{className:"size-full"})}},Ri={delete:/* @__PURE__ */yl.jsx(gt,{className:"size-4 text-current"}),loupe:/* @__PURE__ */yl.jsx(ft,{className:"size-4 text-current"})};const Mi=[ds.withComponent(function({attributes:e,children:t,className:s,...n}){const{emojiPickerState:o,isOpen:a,setIsOpen:l}=us({closeOnSelect:!0}),{emojiToolbarDropdownProps:i,props:c}=cs({isOpen:a,setIsOpen:l});/* @__PURE__ */
136
+ return yl.jsx(r,{className:El("my-1 flex rounded-sm bg-muted p-4 pl-3",s),style:{backgroundColor:n.element.backgroundColor},attributes:{...e,"data-plate-open-context-menu":!0},...n,children:/* @__PURE__ */yl.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
137
+ /* @__PURE__ */yl.jsx(Ni,{...i,control:/* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-6 select-none p-1 text-[18px] hover:bg-muted-foreground/15",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},contentEditable:!1,children:n.element.icon||"💡"}),children:/* @__PURE__ */yl.jsx(Ci,{...o,...c})}),
138
+ /* @__PURE__ */yl.jsx("div",{className:"w-full",children:t})]})})})];function Li({className:e,...t}){/* @__PURE__ */
139
+ return yl.jsx(_s,{"data-slot":"command",className:El("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Pi({className:e,...t}){/* @__PURE__ */
140
+ return yl.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[
141
+ /* @__PURE__ */yl.jsx(ft,{className:"size-4 shrink-0 opacity-50"}),
142
+ /* @__PURE__ */yl.jsx(_s.Input,{"data-slot":"command-input",className:El("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Hi({className:e,...t}){/* @__PURE__ */
143
+ return yl.jsx(_s.List,{"data-slot":"command-list",className:El("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Vi({...e}){/* @__PURE__ */
144
+ return yl.jsx(_s.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ui({className:e,...t}){/* @__PURE__ */
145
+ return yl.jsx(_s.Group,{"data-slot":"command-group",className:El("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function qi({className:e,...t}){/* @__PURE__ */
146
+ return yl.jsx(_s.Item,{"data-slot":"command-item",className:El("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function $i({...e}){/* @__PURE__ */
147
+ return yl.jsx(ps.Root,{"data-slot":"popover",...e})}function Wi({...e}){/* @__PURE__ */
148
+ return yl.jsx(ps.Trigger,{"data-slot":"popover-trigger",...e})}function Zi({className:e,align:t="center",sideOffset:r=4,...s}){/* @__PURE__ */
149
+ return yl.jsx(ps.Portal,{children:/* @__PURE__ */yl.jsx(ps.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:El("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...s})})}function Ki({...e}){/* @__PURE__ */
150
+ return yl.jsx(ps.Anchor,{"data-slot":"popover-anchor",...e})}function Yi(){const[t,r]=e.useState(!1),n=s(),o=m(),a=h(),l=a.lang||"plaintext",[i,c]=e.useState(""),d=e.useMemo(()=>Qi.filter(e=>!i||e.label.toLowerCase().includes(i.toLowerCase())),[i]);return n?null:/* @__PURE__ */yl.jsxs($i,{open:t,onOpenChange:r,children:[
151
+ /* @__PURE__ */yl.jsx(Wi,{asChild:!0,children:/* @__PURE__ */yl.jsx($l,{size:"sm",variant:"ghost",className:"h-6 select-none justify-between gap-1 px-2 text-muted-foreground text-xs","aria-expanded":t,role:"combobox",children:Qi.find(e=>e.value===l)?.label??"Plain Text"})}),
152
+ /* @__PURE__ */yl.jsx(Zi,{className:"w-[200px] p-0",onCloseAutoFocus:()=>c(""),children:/* @__PURE__ */yl.jsxs(Li,{shouldFilter:!1,children:[
153
+ /* @__PURE__ */yl.jsx(Pi,{className:"h-9",value:i,onValueChange:e=>c(e),placeholder:"Search language..."}),
154
+ /* @__PURE__ */yl.jsx(Vi,{children:"No language found."}),
155
+ /* @__PURE__ */yl.jsx(Hi,{className:"h-[344px] overflow-y-auto",children:/* @__PURE__ */yl.jsx(Ui,{children:d.map(e=>/* @__PURE__ */yl.jsxs(qi,{className:"cursor-pointer",value:e.value,onSelect:e=>{o.tf.setNodes({lang:e},{at:a}),c(e),r(!1)},children:[
156
+ /* @__PURE__ */yl.jsx(St,{className:El(l===e.value?"opacity-100":"opacity-0")}),e.label]},e.label))})})]})})]})}function Gi({value:t,...r}){const[s,n]=e.useState(!1);return e.useEffect(()=>{setTimeout(()=>{n(!1)},2e3)},[s]),/* @__PURE__ */yl.jsxs($l,{onClick:()=>{navigator.clipboard.writeText("function"==typeof t?t():t),n(!0)},...r,children:[
157
+ /* @__PURE__ */yl.jsx("span",{className:"sr-only",children:"Copy"}),s?/* @__PURE__ */yl.jsx(pt,{className:"!size-3"}):/* @__PURE__ */yl.jsx(Et,{className:"!size-3"})]})}const Qi=[{label:"Auto",value:"auto"},{label:"Plain Text",value:"plaintext"},{label:"ABAP",value:"abap"},{label:"Agda",value:"agda"},{label:"Arduino",value:"arduino"},{label:"ASCII Art",value:"ascii"},{label:"Assembly",value:"x86asm"},{label:"Bash",value:"bash"},{label:"BASIC",value:"basic"},{label:"BNF",value:"bnf"},{label:"C",value:"c"},{label:"C#",value:"csharp"},{label:"C++",value:"cpp"},{label:"Clojure",value:"clojure"},{label:"CoffeeScript",value:"coffeescript"},{label:"Coq",value:"coq"},{label:"CSS",value:"css"},{label:"Dart",value:"dart"},{label:"Dhall",value:"dhall"},{label:"Diff",value:"diff"},{label:"Docker",value:"dockerfile"},{label:"EBNF",value:"ebnf"},{label:"Elixir",value:"elixir"},{label:"Elm",value:"elm"},{label:"Erlang",value:"erlang"},{label:"F#",value:"fsharp"},{label:"Flow",value:"flow"},{label:"Fortran",value:"fortran"},{label:"Gherkin",value:"gherkin"},{label:"GLSL",value:"glsl"},{label:"Go",value:"go"},{label:"GraphQL",value:"graphql"},{label:"Groovy",value:"groovy"},{label:"Haskell",value:"haskell"},{label:"HCL",value:"hcl"},{label:"HTML",value:"html"},{label:"Idris",value:"idris"},{label:"Java",value:"java"},{label:"JavaScript",value:"javascript"},{label:"JSON",value:"json"},{label:"Julia",value:"julia"},{label:"Kotlin",value:"kotlin"},{label:"LaTeX",value:"latex"},{label:"Less",value:"less"},{label:"Lisp",value:"lisp"},{label:"LiveScript",value:"livescript"},{label:"LLVM IR",value:"llvm"},{label:"Lua",value:"lua"},{label:"Makefile",value:"makefile"},{label:"Markdown",value:"markdown"},{label:"Markup",value:"markup"},{label:"MATLAB",value:"matlab"},{label:"Mathematica",value:"mathematica"},{label:"Mermaid",value:"mermaid"},{label:"Nix",value:"nix"},{label:"Notion Formula",value:"notion"},{label:"Objective-C",value:"objectivec"},{label:"OCaml",value:"ocaml"},{label:"Pascal",value:"pascal"},{label:"Perl",value:"perl"},{label:"PHP",value:"php"},{label:"PowerShell",value:"powershell"},{label:"Prolog",value:"prolog"},{label:"Protocol Buffers",value:"protobuf"},{label:"PureScript",value:"purescript"},{label:"Python",value:"python"},{label:"R",value:"r"},{label:"Racket",value:"racket"},{label:"Reason",value:"reasonml"},{label:"Ruby",value:"ruby"},{label:"Rust",value:"rust"},{label:"Sass",value:"scss"},{label:"Scala",value:"scala"},{label:"Scheme",value:"scheme"},{label:"SCSS",value:"scss"},{label:"Shell",value:"shell"},{label:"Smalltalk",value:"smalltalk"},{label:"Solidity",value:"solidity"},{label:"SQL",value:"sql"},{label:"Swift",value:"swift"},{label:"TOML",value:"toml"},{label:"TypeScript",value:"typescript"},{label:"VB.Net",value:"vbnet"},{label:"Verilog",value:"verilog"},{label:"VHDL",value:"vhdl"},{label:"Visual Basic",value:"vbnet"},{label:"WebAssembly",value:"wasm"},{label:"XML",value:"xml"},{label:"YAML",value:"yaml"}],Ji=Ns(Cs),Xi=[ys.configure({node:{component:function(e){const{editor:t,element:s}=e;/* @__PURE__ */
158
+ return yl.jsx(r,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */yl.jsxs("div",{className:"relative rounded-md bg-muted/50",children:[
159
+ /* @__PURE__ */yl.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */yl.jsx("code",{children:e.children})}),
160
+ /* @__PURE__ */yl.jsxs("div",{className:"absolute top-1 right-1 z-10 flex select-none gap-0.5",contentEditable:!1,children:[Ce(s.lang)&&/* @__PURE__ */yl.jsx($l,{size:"icon",variant:"ghost",className:"size-6 text-xs",onClick:()=>_e(t,{element:s}),title:"Format code",children:/* @__PURE__ */yl.jsx(zt,{className:"!size-3.5 text-muted-foreground"})}),
161
+ /* @__PURE__ */yl.jsx(Yi,{}),
162
+ /* @__PURE__ */yl.jsx(Gi,{size:"icon",variant:"ghost",className:"size-6 gap-1 text-muted-foreground text-xs",value:()=>Z.string(s)})]})]})})}},options:{lowlight:Ji},shortcuts:{toggle:{keys:"mod+alt+8"}}}),ws.withComponent(function(e){/* @__PURE__ */
163
+ return yl.jsx(r,{...e})}),ks.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
164
+ return yl.jsx(l,{className:t,...e})})],ec=p(Ds,function(e){const{width:t}=e.element,n=s(),o=d(ot,"isSelectionAreaVisible"),{isDragging:a,previewRef:l,handleRef:i}=ls({element:e.element,orientation:"horizontal",type:"column",canDropNode:({dragEntry:e,dropEntry:t})=>K.equals(K.parent(e[1]),K.parent(t[1]))});/* @__PURE__ */
165
+ return yl.jsxs("div",{className:"group/column relative",style:{width:t??"100%"},children:[!n&&!o&&/* @__PURE__ */yl.jsx("div",{ref:i,className:El("-translate-x-1/2 -translate-y-1/2 absolute top-2 left-1/2 z-50","pointer-events-auto flex items-center","opacity-0 transition-opacity group-hover/column:opacity-100"),children:/* @__PURE__ */yl.jsx(tc,{})}),
166
+ /* @__PURE__ */yl.jsx(r,{...e,ref:Ls(e.ref,l),className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",children:/* @__PURE__ */yl.jsxs("div",{className:El("relative h-full border border-transparent p-1.5",!n&&"rounded-lg border-border border-dashed",a&&"opacity-50"),children:[e.children,!n&&!o&&/* @__PURE__ */yl.jsx(rc,{})]})})]})}),tc=e.memo(function(){/* @__PURE__ */
167
+ return yl.jsx(Wl,{children:/* @__PURE__ */yl.jsxs(Zl,{children:[
168
+ /* @__PURE__ */yl.jsx(Kl,{asChild:!0,children:/* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"!px-1 h-5",children:/* @__PURE__ */yl.jsx(Bt,{className:"text-muted-foreground",onClick:e=>{e.stopPropagation(),e.preventDefault()}})})}),
169
+ /* @__PURE__ */yl.jsx(Yl,{children:"Drag to move column"})]})})});function rc(){const{dropLine:e}=is({orientation:"horizontal"});return e?/* @__PURE__ */yl.jsx("div",{className:El("slate-dropLine","absolute bg-brand/50","left"===e&&"group-first/column:-left-1 inset-y-0 left-[-10.5px] w-1","right"===e&&"group-last/column:-right-1 inset-y-0 right-[-11px] w-1")}):null}function sc({children:e}){const t=m(),r=s(),o=h(),{props:a}=x({element:o}),l=n(),i=f(e=>e.api.isCollapsed(),[]),c=g()&&!r&&l&&i,d=e=>{Es(t,{at:o,widths:e})};/* @__PURE__ */
170
+ return yl.jsxs($i,{open:c,modal:!1,children:[
171
+ /* @__PURE__ */yl.jsx(Ki,{children:e}),
172
+ /* @__PURE__ */yl.jsx(Zi,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"top",sideOffset:10,children:/* @__PURE__ */yl.jsxs("div",{className:"box-content flex h-8 items-center",children:[
173
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-8",onClick:()=>d(["50%","50%"]),children:/* @__PURE__ */yl.jsx(nc,{})}),
174
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-8",onClick:()=>d(["33%","33%","33%"]),children:/* @__PURE__ */yl.jsx(oc,{})}),
175
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-8",onClick:()=>d(["70%","30%"]),children:/* @__PURE__ */yl.jsx(ac,{})}),
176
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-8",onClick:()=>d(["30%","70%"]),children:/* @__PURE__ */yl.jsx(lc,{})}),
177
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-8",onClick:()=>d(["25%","50%","25%"]),children:/* @__PURE__ */yl.jsx(ic,{})}),
178
+ /* @__PURE__ */yl.jsx(di,{orientation:"vertical",className:"mx-1 h-6"}),
179
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-8",...a,children:/* @__PURE__ */yl.jsx(At,{})})]})})]})}const nc=e=>/* @__PURE__ */yl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M8.5 3H13V13H8.5V3ZM7.5 2H8.5H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H8.5H7.5H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H7.5ZM7.5 13H3L3 3H7.5V13Z",fill:"currentColor",fillRule:"evenodd"})}),oc=e=>/* @__PURE__ */yl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M9.25 3H6.75V13H9.25V3ZM9.25 2H6.75H5.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H5.75H6.75H9.25H10.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H10.25H9.25ZM10.25 3V13H13V3H10.25ZM3 13H5.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),ac=e=>/* @__PURE__ */yl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M11.25 3H13V13H11.25V3ZM10.25 2H11.25H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H11.25H10.25H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H10.25ZM10.25 13H3L3 3H10.25V13Z",fill:"currentColor",fillRule:"evenodd"})}),lc=e=>/* @__PURE__ */yl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M5.75 3H13V13H5.75V3ZM4.75 2H5.75H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.75H4.75H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H4.75ZM4.75 13H3L3 3H4.75V13Z",fill:"currentColor",fillRule:"evenodd"})}),ic=e=>/* @__PURE__ */yl.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M10.25 3H5.75V13H10.25V3ZM10.25 2H5.75H4.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H4.75H5.75H10.25H11.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H11.25H10.25ZM11.25 3V13H13V3H11.25ZM3 13H4.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),cc=[zs.withComponent(function(e){/* @__PURE__ */
180
+ return yl.jsx(r,{className:"mb-2",...e,children:/* @__PURE__ */yl.jsx(sc,{children:/* @__PURE__ */yl.jsx("div",{className:"flex size-full rounded",children:e.children})})})}),Ss.withComponent(ec)];const dc=b(Vs,{handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a=()=>{r("activeId",null),o=!0};for(Y(n)||a();n.parentElement;){if(n.classList.contains(`slate-${s}`)){const t=e.comment.node();if(!t){a();break}const s=e.comment.nodeId(t[0]);r("activeId",s??null),o=!0;break}n=n.parentElement}o||a()}},options:{activeId:null,commentingBlock:null,hoverId:null,uniquePathMap:/* @__PURE__ */new Map}}).extendTransforms(({editor:e,setOption:t,tf:{comment:{setDraft:r}}})=>({setDraft:()=>{e.api.isCollapsed()&&e.tf.select(e.api.block()[1]),r(),e.tf.collapse(),t("activeId",Us()),t("commentingBlock",e.selection.focus.path.slice(0,1))}})).configure({node:{component:function(e){const{children:t,leaf:r}=e,{api:s,setOption:n}=i(dc),o=d(dc,"hoverId"),a=d(dc,"activeId"),c=Hs(r)>1,u=s.comment.nodeId(r),m=a===u,h=o===u;/* @__PURE__ */
181
+ return yl.jsx(l,{...e,className:El("border-b-2 border-b-highlight/[.36] bg-highlight/[.13] transition-colors duration-200",(h||m)&&"border-b-highlight bg-highlight/25",c&&"border-b-2 border-b-highlight/[.7] bg-highlight/25",(h||m)&&c&&"border-b-highlight bg-highlight/45"),attributes:{...e.attributes,onClick:()=>n("activeId",u??null),onMouseEnter:()=>n("hoverId",u??null),onMouseLeave:()=>n("hoverId",null)},children:t})}},shortcuts:{setDraft:{keys:"mod+shift+m"}}}),uc=[dc];function mc(){const{cursors:e}=it();/* @__PURE__ */
182
+ return yl.jsx(yl.Fragment,{children:e.map(e=>/* @__PURE__ */yl.jsx(hc,{...e},e.id))})}function hc({id:e,caretPosition:t,data:r,selection:s,selectionRects:n}){const o=m(),a=d(dt,"streaming"),{style:l,selectionStyle:i=l}=r??{},c=G.isCollapsed(s);if(a)return null;if("selection"===e&&s){if($s(o,{at:s,format:"cell"}).length>1)return null}/* @__PURE__ */
183
+ return yl.jsxs(yl.Fragment,{children:[n.map((t,r)=>/* @__PURE__ */yl.jsx("div",{className:El("pointer-events-none absolute z-10","selection"===e&&"bg-brand/25","selection"===e&&c&&"bg-primary"),style:{...i,...t}},r)),t&&/* @__PURE__ */yl.jsx("div",{className:El("pointer-events-none absolute z-10 w-0.5","drag"===e&&"w-px bg-brand"),style:{...t,...l}})]})}const pc=[ct.configure({render:{afterEditable:()=>/* @__PURE__ */yl.jsx(mc,{})}})];function xc({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:s="label",buttonVariant:n="ghost",formatters:o,components:a,...l}){const i=Js();/* @__PURE__ */
184
+ return yl.jsx(Xs,{showOutsideDays:r,className:El("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:s,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...o},classNames:{root:El("w-fit",i.root),months:El("flex gap-4 flex-col md:flex-row relative",i.months),month:El("flex flex-col w-full gap-4",i.month),nav:El("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",i.nav),button_previous:El(ql({variant:n}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",i.button_previous),button_next:El(ql({variant:n}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",i.button_next),month_caption:El("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",i.month_caption),dropdowns:El("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",i.dropdowns),dropdown_root:El("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",i.dropdown_root),dropdown:El("absolute bg-popover inset-0 opacity-0",i.dropdown),caption_label:El("select-none font-medium","label"===s?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",i.caption_label),table:"w-full border-collapse",weekdays:El("flex",i.weekdays),weekday:El("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",i.weekday),week:El("flex w-full mt-2",i.week),week_number_header:El("select-none w-(--cell-size)",i.week_number_header),week_number:El("text-[0.8rem] select-none text-muted-foreground",i.week_number),day:El("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",l.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",i.day),range_start:El("rounded-l-md bg-accent",i.range_start),range_middle:El("rounded-none",i.range_middle),range_end:El("rounded-r-md bg-accent",i.range_end),today:El("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",i.today),outside:El("text-muted-foreground aria-selected:text-muted-foreground",i.outside),disabled:El("text-muted-foreground opacity-50",i.disabled),hidden:El("invisible",i.hidden),...t},components:{Root:({className:e,rootRef:t,...r})=>/* @__PURE__ */yl.jsx("div",{"data-slot":"calendar",ref:t,className:El(e),...r}),Chevron:({className:e,orientation:t,...r})=>"left"===t?/* @__PURE__ */yl.jsx(It,{className:El("size-4",e),...r}):"right"===t?/* @__PURE__ */yl.jsx(mt,{className:El("size-4",e),...r}):/* @__PURE__ */yl.jsx(Tt,{className:El("size-4",e),...r}),DayButton:fc,WeekNumber:({children:e,...t})=>/* @__PURE__ */yl.jsx("td",{...t,children:/* @__PURE__ */yl.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:e})}),...a},...l})}function fc({className:t,day:r,modifiers:s,...n}){const o=Js(),a=e.useRef(null);return e.useEffect(()=>{s.focused&&a.current?.focus()},[s.focused]),/* @__PURE__ */yl.jsx($l,{ref:a,variant:"ghost",size:"icon","data-day":r.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:El("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,t),...n})}const gc=[Qs.withComponent(function(e){const{editor:t,element:n}=e,o=s(),a=/* @__PURE__ */yl.jsx("span",{className:El("w-fit cursor-pointer rounded-sm bg-muted px-1 text-muted-foreground"),contentEditable:!1,draggable:!0,children:n.date?(()=>{const e=/* @__PURE__ */new Date,t=new Date(n.date),r=t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear(),s=new Date(e.setDate(e.getDate()-1)).toDateString()===t.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===t.toDateString();return r?"Today":s?"Yesterday":o?"Tomorrow":t.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */yl.jsx("span",{children:"Pick a date"})});return o?a:/* @__PURE__ */yl.jsxs(r,{...e,className:"inline-block",attributes:{...e.attributes,contentEditable:!1},children:[
185
+ /* @__PURE__ */yl.jsxs($i,{children:[
186
+ /* @__PURE__ */yl.jsx(Wi,{asChild:!0,children:a}),
187
+ /* @__PURE__ */yl.jsx(Zi,{className:"w-auto p-0",children:/* @__PURE__ */yl.jsx(xc,{selected:new Date(n.date),onSelect:e=>{e&&t.tf.setNodes({date:e.toDateString()},{at:n})},mode:"single",initialFocus:!0})})]}),e.children]})})],bc=[q.column,q.tr,q.td];function jc(t){const{children:r,editor:s,element:n,path:o}=t,a=s.getApi(ot).blockSelection,{isAboutToDrag:l,isDragging:i,nodeRef:c,previewRef:d,handleRef:u}=ls({element:n,onDropHandler:(e,{dragItem:t})=>{const r=t.id;a&&a.add(r),f()}}),m=3===o.length,h=4===o.length,[p,x]=e.useState(0),f=()=>{d.current&&(d.current.replaceChildren(),d.current?.classList.add("hidden"))};e.useEffect(()=>{i||f()},[i]),e.useEffect(()=>{l&&d.current?.classList.remove("opacity-0")},[l]);const[g,b]=e.useState(0);/* @__PURE__ */
188
+ return yl.jsxs("div",{className:El("relative",i&&"opacity-50",J(s,n.type)?.node.isContainer?"group/container":"group"),onMouseEnter:()=>{i||b(Cc(s,n))},children:[!h&&/* @__PURE__ */yl.jsx(vc,{children:/* @__PURE__ */yl.jsx("div",{className:El("slate-blockToolbarWrapper","flex h-[1.5em]",m&&"h-4"),children:/* @__PURE__ */yl.jsx("div",{className:El("slate-blockToolbar relative w-4.5","pointer-events-auto mr-1 flex items-center",m&&"mr-1.5"),children:/* @__PURE__ */yl.jsx($l,{ref:u,variant:"ghost",className:"-left-0 absolute h-6 w-full p-0",style:{top:`${g+3}px`},"data-plate-prevent-deselect":!0,children:/* @__PURE__ */yl.jsx(yc,{isDragging:i,previewRef:d,resetPreview:f,setPreviewTop:x})})})})}),
189
+ /* @__PURE__ */yl.jsx("div",{ref:d,className:El("-left-0 absolute hidden w-full"),style:{top:-p+"px"},contentEditable:!1}),
190
+ /* @__PURE__ */yl.jsxs("div",{ref:c,className:"slate-blockWrapper flow-root",onContextMenu:e=>s.getApi(ot).blockSelection.addOnContextMenu({element:n,event:e}),children:[
191
+ /* @__PURE__ */yl.jsx(j,{children:r}),
192
+ /* @__PURE__ */yl.jsx(wc,{})]})]})}function vc({children:e,className:t,...r}){const s=m(),o=h(),a=d(ot,"isSelectionAreaVisible"),l=n();/* @__PURE__ */
193
+ return yl.jsx("div",{...r,className:El("slate-gutterLeft","-translate-x-full absolute top-0 z-50 flex h-full cursor-text hover:opacity-100 sm:opacity-0",J(s,o.type)?.node.isContainer?"group-hover/container:opacity-100":"group-hover:opacity-100",a&&"hidden",!l&&"opacity-0",t),contentEditable:!1,children:e})}const yc=e.memo(function({isDragging:e,previewRef:t,resetPreview:r,setPreviewTop:s}){const n=m(),o=h();/* @__PURE__ */
194
+ return yl.jsxs(Zl,{children:[
195
+ /* @__PURE__ */yl.jsx(Kl,{asChild:!0,children:/* @__PURE__ */yl.jsx("div",{className:"flex size-full items-center justify-center",onClick:e=>{e.preventDefault(),n.getApi(ot).blockSelection.focus()},onMouseDown:e=>{if(r(),0!==e.button&&2!==e.button||e.shiftKey)return;const s=n.getApi(ot).blockSelection.getNodes({sort:!0});let a=s.length>0?s:n.api.blocks({mode:"highest"});a.some(([e])=>e.id===o.id)||(a=[[o,n.api.findPath(o)]]);const l=Te(n,a).map(([e])=>e);0===s.length&&(n.tf.blur(),n.tf.collapse());const i=kc(n,l);t.current?.append(...i),t.current?.classList.remove("hidden"),t.current?.classList.add("opacity-0"),n.setOption(as,"multiplePreviewRef",t),n.getApi(ot).blockSelection.set(l.map(e=>e.id))},onMouseEnter:()=>{if(e)return;const t=n.getApi(ot).blockSelection.getNodes({sort:!0});let r=t.length>0?t:n.api.blocks({mode:"highest"});r.some(([e])=>e.id===o.id)||(r=[[o,n.api.findPath(o)]]);const a=Te(n,r),l=a.map(e=>e[0].id);if(l.length>1&&l.includes(o.id)){const e=Nc(n,{blocks:a.map(e=>e[0]),element:o});s(e)}else s(0)},onMouseUp:()=>{r()},"data-plate-prevent-deselect":!0,role:"button",children:/* @__PURE__ */yl.jsx(Dt,{className:"text-muted-foreground"})})}),
196
+ /* @__PURE__ */yl.jsx(Yl,{children:"Drag to move"})]})}),wc=e.memo(function({className:e,...t}){const{dropLine:r}=is();return r?/* @__PURE__ */yl.jsx("div",{...t,className:El("slate-dropLine","absolute inset-x-0 h-0.5 opacity-100 transition-opacity","bg-brand/50","top"===r&&"-top-px","bottom"===r&&"-bottom-px",e)}):null}),kc=(e,t)=>{const r=[],s=[],n=e=>{Array.from(e.attributes).forEach(t=>{(t.name.startsWith("data-slate")||t.name.startsWith("data-block-id"))&&e.removeAttribute(t.name)}),Array.from(e.children).forEach(e=>{n(e)})};return t.forEach((o,a)=>{((o,a)=>{const l=e.api.toDOMNode(o),i=l.cloneNode(!0);((e,t)=>{const r=e.scrollLeft;if(r>0){const s=document.createElement("div");s.style.overflow="hidden",s.style.width=`${e.clientWidth}px`;const n=document.createElement("div");for(n.style.transform=`translateX(-${r}px)`,n.style.width=`${e.scrollWidth}px`;t.firstChild;)n.append(t.firstChild);const o=window.getComputedStyle(e);t.style.padding="0",n.style.padding=o.padding,s.append(n),t.append(s)}})(l,i),s.push(o.id);const c=document.createElement("div");c.append(i),c.style.display="flow-root";const d=t[a-1];if(d){const t=e.api.toDOMNode(d).parentElement.getBoundingClientRect(),r=l.parentElement.getBoundingClientRect().top-t.bottom;r>15&&(c.style.marginTop=`${r}px`)}n(i),r.push(c)})(o,a)}),e.setOption(as,"draggingId",s),r},Nc=(e,{blocks:t,element:r})=>{const s=e.api.toDOMNode(r),n=e.api.toDOMNode(e),o=t[0],a=e.api.toDOMNode(o),l=Number(window.getComputedStyle(n).paddingTop.replace("px","")),i=a.getBoundingClientRect().top-n.getBoundingClientRect().top-l,c=window.getComputedStyle(a).marginTop,d=Number(c.replace("px","")),u=s.getBoundingClientRect().top-n.getBoundingClientRect().top-l,m=window.getComputedStyle(s).marginTop;return u-i+d-Number(m.replace("px",""))},Cc=(e,t)=>{const r=e.api.toDOMNode(t),s=window.getComputedStyle(r).marginTop;return Number(s.replace("px",""))},_c=[as.configure({options:{enableScroller:!0,onDropFiles:({dragItem:e,editor:t,target:r})=>{t.getTransforms(rn).insert.media(e.files,{at:r,nextBlock:!1})}},render:{aboveNodes:t=>{const{editor:r,element:s,path:n}=t;if(e.useMemo(()=>{if(r.dom.readOnly)return!1;if(1===n.length&&!Q(r,s,bc))return!0;if(3===n.length&&!Q(r,s,bc)){if(r.api.some({at:n,match:{type:r.getType(q.column)}}))return!0}if(4===n.length&&!Q(r,s,bc)){if(r.api.some({at:n,match:{type:r.getType(q.table)}}))return!0}return!1},[r,s,n]))return e=>/* @__PURE__ */yl.jsx(jc,{...e})},aboveSlate:({children:e})=>/* @__PURE__ */yl.jsx(en,{backend:tn,children:e})}})],zc=[yn,wn],Sc=[X.configure({shortcuts:{insert:{keys:"mod+enter"},insertBefore:{keys:"mod+shift+enter"}}})];function Ec(e){/* @__PURE__ */
197
+ return yl.jsx(ui,{...e,className:El("scrollbar-hide sticky top-0 left-0 z-50 w-full justify-between overflow-x-auto rounded-t-lg border-b border-b-border bg-background/95 p-1 backdrop-blur-sm supports-backdrop-blur:bg-background/60",e.className)})}const Bc=[{icon:Ot,value:"left"},{icon:Ft,value:"center"},{icon:Rt,value:"right"},{icon:Mt,value:"justify"}];function Ac(t){const{editor:r,tf:s}=i(ue),n=v({defaultValue:"start",getProp:e=>e.align})??"left",[o,a]=e.useState(!1),l=Bc.find(e=>e.value===n)?.icon??Ot;/* @__PURE__ */
198
+ return yl.jsxs(Gl,{open:o,onOpenChange:a,modal:!1,...t,children:[
199
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{pressed:o,tooltip:"Align",isDropdown:!0,children:/* @__PURE__ */yl.jsx(l,{})})}),
200
+ /* @__PURE__ */yl.jsx(Xl,{className:"min-w-0",align:"start",children:/* @__PURE__ */yl.jsx(si,{value:n,onValueChange:e=>{s.textAlign.setNodes(e),r.tf.focus()},children:Bc.map(({icon:e,value:t})=>/* @__PURE__ */yl.jsx(ni,{className:"pl-2 data-[state=checked]:bg-accent *:first:[span]:hidden",value:t,children:/* @__PURE__ */yl.jsx(e,{})},t))})})]})}var Ic,Tc,Dc,Oc,Fc,Rc,Mc,Lc,Pc,Hc,Vc,Uc,qc,$c,Wc,Zc,Kc,Yc,Gc,Qc,Jc,Xc,ed,td,rd,sd,nd,od;function ad(){if(Tc)return Ic;return Tc=1,Ic=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ld(){if(Rc)return Fc;Rc=1;var e=function(){if(Oc)return Dc;Oc=1;var e="object"==typeof ml&&ml&&ml.Object===Object&&ml;return Dc=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Fc=r}function id(){if(Uc)return Vc;Uc=1;var e=function(){if(Hc)return Pc;Hc=1;var e=/\s/;return Pc=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}}(),t=/^\s+/;return Vc=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r}}function cd(){if($c)return qc;$c=1;var e=ld().Symbol;return qc=e}function dd(){if(Qc)return Gc;Qc=1;var e=cd(),t=function(){if(Zc)return Wc;Zc=1;var e=cd(),t=Object.prototype,r=t.hasOwnProperty,s=t.toString,n=e?e.toStringTag:void 0;return Wc=function(e){var t=r.call(e,n),o=e[n];try{e[n]=void 0;var a=!0}catch(i){}var l=s.call(e);return a&&(t?e[n]=o:delete e[n]),l}}(),r=function(){if(Yc)return Kc;Yc=1;var e=Object.prototype.toString;return Kc=function(t){return e.call(t)}}(),s=e?e.toStringTag:void 0;return Gc=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?t(e):r(e)}}function ud(){if(td)return ed;td=1;var e=dd(),t=Xc?Jc:(Xc=1,Jc=function(e){return null!=e&&"object"==typeof e});return ed=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}const md=/* @__PURE__ */hl(function(){if(od)return nd;od=1;var e=ad(),t=function(){if(Lc)return Mc;Lc=1;var e=ld();return Mc=function(){return e.Date.now()}}(),r=function(){if(sd)return rd;sd=1;var e=id(),t=ad(),r=ud(),s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return rd=function(l){if("number"==typeof l)return l;if(r(l))return NaN;if(t(l)){var i="function"==typeof l.valueOf?l.valueOf():l;l=t(i)?i+"":i}if("string"!=typeof l)return 0===l?l:+l;l=e(l);var c=n.test(l);return c||o.test(l)?a(l.slice(2),c?2:8):s.test(l)?NaN:+l}}(),s=Math.max,n=Math.min;return nd=function(o,a,l){var i,c,d,u,m,h,p=0,x=!1,f=!1,g=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function b(e){var t=i,r=c;return i=c=void 0,p=e,u=o.apply(r,t)}function j(e){var t=e-h;return void 0===h||t>=a||t<0||f&&e-p>=d}function v(){var e=t();if(j(e))return y(e);m=setTimeout(v,function(e){var t=a-(e-h);return f?n(t,d-(e-p)):t}(e))}function y(e){return m=void 0,g&&i?b(e):(i=c=void 0,u)}function w(){var e=t(),r=j(e);if(i=arguments,c=this,h=e,r){if(void 0===m)return function(e){return p=e,m=setTimeout(v,a),x?b(e):u}(h);if(f)return clearTimeout(m),m=setTimeout(v,a),b(h)}return void 0===m&&(m=setTimeout(v,a)),u}return a=r(a)||0,e(l)&&(x=!!l.leading,d=(f="maxWait"in l)?s(r(l.maxWait)||0,a):d,g="trailing"in l?!!l.trailing:g),w.cancel=function(){void 0!==m&&clearTimeout(m),p=0,i=h=c=m=void 0},w.flush=function(){return void 0===m?u:y(t())},w}}());function hd({children:e,nodeType:r,tooltip:s}){const n=m(),o=f(e=>!!e.selection,[]),a=f(e=>e.api.mark(r),[r]),[l,i]=t.useState(),[c,d]=t.useState(!1),u=t.useCallback((e=!c)=>{d(e)},[c,d]),h=t.useCallback(e=>{n.selection&&(i(e),n.tf.select(n.selection),n.tf.focus(),n.tf.addMarks({[r]:e}))},[n,r]),p=t.useCallback(e=>{h(e),u()},[u,h]),x=t.useCallback(()=>{n.selection&&(n.tf.select(n.selection),n.tf.focus(),l&&n.tf.removeMarks(r),u())},[n,l,u,r]);return t.useEffect(()=>{o&&i(a)},[a,o]),/* @__PURE__ */yl.jsxs(Gl,{open:c,onOpenChange:e=>{d(e)},modal:!1,children:[
201
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{pressed:c,tooltip:s,children:e})}),
202
+ /* @__PURE__ */yl.jsx(Xl,{align:"start",children:/* @__PURE__ */yl.jsx(pd,{color:l||a,clearColor:x,colors:jd,customColors:vd,updateColor:p,updateCustomColor:h})})]})}const pd=t.memo(function({className:e,clearColor:t,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...l}){/* @__PURE__ */
203
+ return yl.jsxs("div",{className:El("flex flex-col",e),...l,children:[
204
+ /* @__PURE__ */yl.jsx(ki,{label:"Custom Colors",children:/* @__PURE__ */yl.jsx(xd,{color:r,className:"px-2",colors:s,customColors:n,updateColor:o,updateCustomColor:a})}),
205
+ /* @__PURE__ */yl.jsx(ki,{label:"Default Colors",children:/* @__PURE__ */yl.jsx(bd,{color:r,className:"px-2",colors:s,updateColor:o})}),r&&/* @__PURE__ */yl.jsx(ki,{children:/* @__PURE__ */yl.jsxs(ti,{className:"p-2",onClick:t,children:[
206
+ /* @__PURE__ */yl.jsx(Lt,{}),
207
+ /* @__PURE__ */yl.jsx("span",{children:"Clear"})]})})]})},(e,t)=>e.color===t.color&&e.colors===t.colors&&e.customColors===t.customColors);function xd({className:e,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...l}){const[i,c]=t.useState(),[d,u]=t.useState(r||"#000000");t.useEffect(()=>{!r||n.some(e=>e.value===r)||s.some(e=>e.value===r)||c(r)},[r,s,n]);const m=t.useMemo(()=>i?[...n,{isBrightColor:!1,name:"",value:i}]:n,[i,n]),h=t.useCallback(md(a,100),[a]);/* @__PURE__ */
208
+ return yl.jsx("div",{className:El("relative flex flex-col gap-4",e),...l,children:/* @__PURE__ */yl.jsx(bd,{color:r,colors:m,updateColor:o,children:/* @__PURE__ */yl.jsx(fd,{value:d,onChange:e=>{u(e.target.value),h(e.target.value)},children:/* @__PURE__ */yl.jsxs(ti,{className:El(ql({size:"icon",variant:"outline"}),"absolute top-1 right-2 bottom-2 flex size-8 items-center justify-center rounded-full"),onSelect:e=>{e.preventDefault()},children:[
209
+ /* @__PURE__ */yl.jsx("span",{className:"sr-only",children:"Custom"}),
210
+ /* @__PURE__ */yl.jsx(Pt,{})]})})})})}function fd({children:e,className:r,value:s="#000000",...n}){const o=t.useRef(null);/* @__PURE__ */
211
+ return yl.jsxs("div",{className:"flex flex-col items-center",children:[t.Children.map(e,e=>e?t.cloneElement(e,{onClick:()=>o.current?.click()}):e),
212
+ /* @__PURE__ */yl.jsx("input",{...n,ref:Ls(n.ref,o),className:El("size-0 overflow-hidden border-0 p-0",r),value:s,type:"color"})]})}function gd({className:e,isBrightColor:t,isSelected:r,name:s,updateColor:n,value:o,...a}){const l=/* @__PURE__ */yl.jsx(ti,{className:El(ql({size:"icon",variant:"outline"}),"my-1 flex size-6 items-center justify-center rounded-full border border-muted border-solid p-0 transition-all hover:scale-125",!t&&"border-transparent",r&&"border-2 border-primary",e),style:{backgroundColor:o},onSelect:e=>{e.preventDefault(),n(o)},...a});return s?/* @__PURE__ */yl.jsxs(Zl,{children:[
213
+ /* @__PURE__ */yl.jsx(Kl,{children:l}),
214
+ /* @__PURE__ */yl.jsx(Yl,{className:"mb-1 capitalize",children:s})]}):l}function bd({className:e,color:t,colors:r,updateColor:s,...n}){/* @__PURE__ */
215
+ return yl.jsx("div",{className:El("grid grid-cols-[repeat(10,1fr)] place-items-center gap-x-1",e),...n,children:/* @__PURE__ */yl.jsxs(Wl,{children:[r.map(({isBrightColor:e,name:r,value:n})=>/* @__PURE__ */yl.jsx(gd,{name:r,value:n,isBrightColor:e,isSelected:t===n,updateColor:s},r??n)),n.children]})})}const jd=[{isBrightColor:!1,name:"black",value:"#000000"},{isBrightColor:!1,name:"dark grey 4",value:"#434343"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"dark grey 1",value:"#B7B7B7"},{isBrightColor:!1,name:"grey",value:"#CCCCCC"},{isBrightColor:!1,name:"light grey 1",value:"#D9D9D9"},{isBrightColor:!0,name:"light grey 2",value:"#EFEFEF"},{isBrightColor:!0,name:"light grey 3",value:"#F3F3F3"},{isBrightColor:!0,name:"white",value:"#FFFFFF"},{isBrightColor:!1,name:"red berry",value:"#980100"},{isBrightColor:!1,name:"red",value:"#FE0000"},{isBrightColor:!1,name:"orange",value:"#FE9900"},{isBrightColor:!0,name:"yellow",value:"#FEFF00"},{isBrightColor:!1,name:"green",value:"#00FF00"},{isBrightColor:!1,name:"cyan",value:"#00FFFF"},{isBrightColor:!1,name:"cornflower blue",value:"#4B85E8"},{isBrightColor:!1,name:"blue",value:"#1300FF"},{isBrightColor:!1,name:"purple",value:"#9900FF"},{isBrightColor:!1,name:"magenta",value:"#FF00FF"},{isBrightColor:!1,name:"light red berry 3",value:"#E6B8AF"},{isBrightColor:!1,name:"light red 3",value:"#F4CCCC"},{isBrightColor:!0,name:"light orange 3",value:"#FCE4CD"},{isBrightColor:!0,name:"light yellow 3",value:"#FFF2CC"},{isBrightColor:!0,name:"light green 3",value:"#D9EAD3"},{isBrightColor:!1,name:"light cyan 3",value:"#D0DFE3"},{isBrightColor:!1,name:"light cornflower blue 3",value:"#C9DAF8"},{isBrightColor:!0,name:"light blue 3",value:"#CFE1F3"},{isBrightColor:!0,name:"light purple 3",value:"#D9D2E9"},{isBrightColor:!0,name:"light magenta 3",value:"#EAD1DB"},{isBrightColor:!1,name:"light red berry 2",value:"#DC7E6B"},{isBrightColor:!1,name:"light red 2",value:"#EA9999"},{isBrightColor:!1,name:"light orange 2",value:"#F9CB9C"},{isBrightColor:!0,name:"light yellow 2",value:"#FFE598"},{isBrightColor:!1,name:"light green 2",value:"#B7D6A8"},{isBrightColor:!1,name:"light cyan 2",value:"#A1C4C9"},{isBrightColor:!1,name:"light cornflower blue 2",value:"#A4C2F4"},{isBrightColor:!1,name:"light blue 2",value:"#9FC5E8"},{isBrightColor:!1,name:"light purple 2",value:"#B5A7D5"},{isBrightColor:!1,name:"light magenta 2",value:"#D5A6BD"},{isBrightColor:!1,name:"light red berry 1",value:"#CC4125"},{isBrightColor:!1,name:"light red 1",value:"#E06666"},{isBrightColor:!1,name:"light orange 1",value:"#F6B26B"},{isBrightColor:!1,name:"light yellow 1",value:"#FFD966"},{isBrightColor:!1,name:"light green 1",value:"#93C47D"},{isBrightColor:!1,name:"light cyan 1",value:"#76A5AE"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"light blue 1",value:"#6FA8DC"},{isBrightColor:!1,name:"light purple 1",value:"#8D7CC3"},{isBrightColor:!1,name:"light magenta 1",value:"#C27BA0"},{isBrightColor:!1,name:"dark red berry 1",value:"#A61B00"},{isBrightColor:!1,name:"dark red 1",value:"#CC0000"},{isBrightColor:!1,name:"dark orange 1",value:"#E59138"},{isBrightColor:!1,name:"dark yellow 1",value:"#F1C231"},{isBrightColor:!1,name:"dark green 1",value:"#6AA74F"},{isBrightColor:!1,name:"dark cyan 1",value:"#45818E"},{isBrightColor:!1,name:"dark cornflower blue 1",value:"#3B78D8"},{isBrightColor:!1,name:"dark blue 1",value:"#3E84C6"},{isBrightColor:!1,name:"dark purple 1",value:"#664EA6"},{isBrightColor:!1,name:"dark magenta 1",value:"#A64D78"},{isBrightColor:!1,name:"dark red berry 2",value:"#84200D"},{isBrightColor:!1,name:"dark red 2",value:"#990001"},{isBrightColor:!1,name:"dark orange 2",value:"#B45F05"},{isBrightColor:!1,name:"dark yellow 2",value:"#BF9002"},{isBrightColor:!1,name:"dark green 2",value:"#38761D"},{isBrightColor:!1,name:"dark cyan 2",value:"#124F5C"},{isBrightColor:!1,name:"dark cornflower blue 2",value:"#1155CB"},{isBrightColor:!1,name:"dark blue 2",value:"#0C5394"},{isBrightColor:!1,name:"dark purple 2",value:"#351C75"},{isBrightColor:!1,name:"dark magenta 2",value:"#741B47"},{isBrightColor:!1,name:"dark red berry 3",value:"#5B0F00"},{isBrightColor:!1,name:"dark red 3",value:"#660000"},{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark yellow 3",value:"#7E6000"},{isBrightColor:!1,name:"dark green 3",value:"#274E12"},{isBrightColor:!1,name:"dark cyan 3",value:"#0D343D"},{isBrightColor:!1,name:"dark cornflower blue 3",value:"#1B4487"},{isBrightColor:!1,name:"dark blue 3",value:"#083763"},{isBrightColor:!1,name:"dark purple 3",value:"#1F124D"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}],vd=[{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}];function yd(e){const t=m(),r=f(e=>0===e.history.redos.length,[]);/* @__PURE__ */
216
+ return yl.jsx(xi,{...e,disabled:r,onClick:()=>t.redo(),onMouseDown:e=>e.preventDefault(),tooltip:"Redo",children:/* @__PURE__ */yl.jsx(Vt,{})})}function wd(e){const t=m(),r=f(e=>0===e.history.undos.length,[]);/* @__PURE__ */
217
+ return yl.jsx(xi,{...e,disabled:r,onClick:()=>t.undo(),onMouseDown:e=>e.preventDefault(),tooltip:"Undo",children:/* @__PURE__ */yl.jsx(Ht,{})})}function kd(e){const{props:t}=Nn();/* @__PURE__ */
218
+ return yl.jsx(xi,{...e,...t,tooltip:"Indent",children:/* @__PURE__ */yl.jsx(qt,{})})}function Nd(e){const{props:t}=kn();/* @__PURE__ */
219
+ return yl.jsx(xi,{...e,...t,tooltip:"Outdent",children:/* @__PURE__ */yl.jsx(Ut,{})})}const Cd="action_three_columns",_d=(e,t)=>{e.tf.insertNodes(e.api.create.block({indent:1,listStyleType:t}),{select:!0})},zd={[q.listTodo]:_d,[q.ol]:_d,[q.ul]:_d,[Cd]:e=>Bs(e,{columns:3,select:!0}),[q.audio]:e=>Kn(e,{select:!0}),[q.callout]:e=>_n(e,{select:!0}),[q.codeBlock]:e=>ze(e,{select:!0}),[q.equation]:e=>Pn(e,{select:!0}),[q.excalidraw]:e=>Bn(e,{},{select:!0}),[q.file]:e=>Zn(e,{select:!0}),[q.img]:e=>Wn(e,{select:!0,type:q.img}),[q.mediaEmbed]:e=>Wn(e,{select:!0,type:q.mediaEmbed}),[q.table]:e=>e.getTransforms(no).insert.table({},{select:!0}),[q.toc]:e=>xo(e,{select:!0}),[q.video]:e=>$n(e,{select:!0})},Sd={[q.date]:e=>Sn(e,{select:!0}),[q.inlineEquation]:e=>Hn(e,"",{select:!0}),[q.link]:e=>An(e,{focused:!0})},Ed=(e,t,r={})=>{const{upsert:s=!1}=r;e.tf.withoutNormalizing(()=>{const r=e.api.block();if(!r)return;const[n,o]=r,a=e.api.isEmpty(n),l=Td(n),i=t===l;s&&a&&i||(t in zd?zd[t](e,t):e.tf.insertNodes(e.api.create.block({type:t}),{at:K.next(o),select:!0}),i||e.getApi(so).suggestion.withoutSuggestions(()=>{e.tf.removeNodes({previousEmptyBlock:!0})}))})},Bd=(e,t)=>{Sd[t]&&Sd[t](e,t)},Ad=(e,t,r)=>{e.tf.setNodes(e.api.create.block({indent:1,listStyleType:t}),{at:r[1]})},Id={[q.listTodo]:Ad,[q.ol]:Ad,[q.ul]:Ad,[Cd]:e=>As(e,{columns:3}),[q.codeBlock]:e=>Se(e)},Td=e=>e[q.listType]?e[q.listType]===q.ol?q.ol:e[q.listType]===q.listTodo?q.listTodo:q.ul:e.type,Dd=[{group:"Basic blocks",items:[{icon:/* @__PURE__ */yl.jsx($t,{}),label:"Paragraph",value:q.p},{icon:/* @__PURE__ */yl.jsx(Wt,{}),label:"Heading 1",value:"h1"},{icon:/* @__PURE__ */yl.jsx(Zt,{}),label:"Heading 2",value:"h2"},{icon:/* @__PURE__ */yl.jsx(Kt,{}),label:"Heading 3",value:"h3"},{icon:/* @__PURE__ */yl.jsx(Yt,{}),label:"Table",value:q.table}].map(e=>({...e,onSelect:(e,t)=>{Ed(e,t)}}))},{group:"Lists",items:[{icon:/* @__PURE__ */yl.jsx(Gt,{}),label:"Bulleted list",value:q.ul},{icon:/* @__PURE__ */yl.jsx(Qt,{}),label:"Numbered list",value:q.ol}].map(e=>({...e,onSelect:(e,t)=>{Ed(e,t)}}))},{group:"Media",items:[{icon:/* @__PURE__ */yl.jsx(Jt,{}),label:"Image",value:q.img}].map(e=>({...e,onSelect:(e,t)=>{Ed(e,t)}}))},{group:"Inline",items:[{icon:/* @__PURE__ */yl.jsx(Xt,{}),label:"Link",value:q.link}].map(e=>({...e,onSelect:(e,t)=>{Bd(e,t)}}))}];function Od(t){const r=m(),[s,n]=e.useState(!1);/* @__PURE__ */
220
+ return yl.jsxs(Gl,{open:s,onOpenChange:n,modal:!1,...t,children:[
221
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{pressed:s,tooltip:"Insert",isDropdown:!0,children:/* @__PURE__ */yl.jsx(Pt,{})})}),
222
+ /* @__PURE__ */yl.jsx(Xl,{className:"flex max-h-[500px] min-w-0 flex-col overflow-y-auto",align:"start",children:Dd.map(({group:e,items:t})=>/* @__PURE__ */yl.jsx(ki,{label:e,children:t.map(({icon:e,label:t,value:s,onSelect:n})=>/* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",onSelect:()=>{n(r,s),r.tf.focus()},children:[e,t]},s))},e))})]})}function Fd(e){const t=In(),{props:r}=Tn(t);/* @__PURE__ */
223
+ return yl.jsx(xi,{...e,...r,"data-plate-focus":!0,tooltip:"Link",children:/* @__PURE__ */yl.jsx(er,{})})}function Rd(){const t=m(),[r,s]=e.useState(!1),n=f(e=>De(e,[Oe.Disc,Oe.Circle,Oe.Square]),[]);/* @__PURE__ */
224
+ return yl.jsxs(gi,{pressed:r,children:[
225
+ /* @__PURE__ */yl.jsx(bi,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>{Ie(t,{listStyleType:Oe.Disc})},"data-state":n?"on":"off",children:/* @__PURE__ */yl.jsx(rr,{className:"size-4"})}),
226
+ /* @__PURE__ */yl.jsxs(Gl,{open:r,onOpenChange:s,modal:!1,children:[
227
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(ji,{})}),
228
+ /* @__PURE__ */yl.jsx(Xl,{align:"start",alignOffset:-32,children:/* @__PURE__ */yl.jsxs(ei,{children:[
229
+ /* @__PURE__ */yl.jsx(ti,{onClick:()=>Ie(t,{listStyleType:Oe.Disc}),children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-2",children:[
230
+ /* @__PURE__ */yl.jsx("div",{className:"size-2 rounded-full border border-current bg-current"}),"Default"]})}),
231
+ /* @__PURE__ */yl.jsx(ti,{onClick:()=>Ie(t,{listStyleType:Oe.Circle}),children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-2",children:[
232
+ /* @__PURE__ */yl.jsx("div",{className:"size-2 rounded-full border border-current"}),"Circle"]})}),
233
+ /* @__PURE__ */yl.jsx(ti,{onClick:()=>Ie(t,{listStyleType:Oe.Square}),children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-2",children:[
234
+ /* @__PURE__ */yl.jsx("div",{className:"size-2 border border-current bg-current"}),"Square"]})})]})})]})]})}function Md(){const t=m(),[r,s]=e.useState(!1),n=f(e=>De(e,[Oe.Decimal,Oe.LowerAlpha,Oe.UpperAlpha,Oe.LowerRoman,Oe.UpperRoman]),[]);/* @__PURE__ */
235
+ return yl.jsxs(gi,{pressed:r,children:[
236
+ /* @__PURE__ */yl.jsx(bi,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>Ie(t,{listStyleType:Oe.Decimal}),"data-state":n?"on":"off",children:/* @__PURE__ */yl.jsx(tr,{className:"size-4"})}),
237
+ /* @__PURE__ */yl.jsxs(Gl,{open:r,onOpenChange:s,modal:!1,children:[
238
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(ji,{})}),
239
+ /* @__PURE__ */yl.jsx(Xl,{align:"start",alignOffset:-32,children:/* @__PURE__ */yl.jsxs(ei,{children:[
240
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:Oe.Decimal}),children:"Decimal (1, 2, 3)"}),
241
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:Oe.LowerAlpha}),children:"Lower Alpha (a, b, c)"}),
242
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:"turkish-lower-alpha"}),children:"Lower Alpha - Turkish (a, b, c, ç)"}),
243
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:Oe.UpperAlpha}),children:"Upper Alpha (A, B, C)"}),
244
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:"turkish-upper-alpha"}),children:"Upper Alpha - Turkish (A, B, C, Ç)"}),
245
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:Oe.LowerRoman}),children:"Lower Roman (i, ii, iii)"}),
246
+ /* @__PURE__ */yl.jsx(ti,{onSelect:()=>Ie(t,{listStyleType:Oe.UpperRoman}),children:"Upper Roman (I, II, III)"})]})})]})]})}function Ld({clear:e,nodeType:t,...r}){const s=y({clear:e,nodeType:t}),{props:n}=w(s);/* @__PURE__ */
247
+ return yl.jsx(xi,{...r,...n})}function Pd({...e}){/* @__PURE__ */
248
+ return yl.jsx(ko.Root,{"data-slot":"alert-dialog",...e})}function Hd({...e}){/* @__PURE__ */
249
+ return yl.jsx(ko.Portal,{"data-slot":"alert-dialog-portal",...e})}function Vd({className:e,...t}){/* @__PURE__ */
250
+ return yl.jsx(ko.Overlay,{"data-slot":"alert-dialog-overlay",className:El("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Ud({className:e,...t}){/* @__PURE__ */
251
+ return yl.jsxs(Hd,{children:[
252
+ /* @__PURE__ */yl.jsx(Vd,{}),
253
+ /* @__PURE__ */yl.jsx(ko.Content,{"data-slot":"alert-dialog-content",className:El("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function qd({className:e,...t}){/* @__PURE__ */
254
+ return yl.jsx("div",{"data-slot":"alert-dialog-header",className:El("flex flex-col gap-2 text-center sm:text-left",e),...t})}function $d({className:e,...t}){/* @__PURE__ */
255
+ return yl.jsx("div",{"data-slot":"alert-dialog-footer",className:El("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Wd({className:e,...t}){/* @__PURE__ */
256
+ return yl.jsx(ko.Title,{"data-slot":"alert-dialog-title",className:El("text-lg font-semibold",e),...t})}function Zd({className:e,...t}){/* @__PURE__ */
257
+ return yl.jsx(ko.Description,{"data-slot":"alert-dialog-description",className:El("text-muted-foreground text-sm",e),...t})}function Kd({className:e,...t}){/* @__PURE__ */
258
+ return yl.jsx(ko.Action,{className:El(ql(),e),...t})}function Yd({className:e,...t}){/* @__PURE__ */
259
+ return yl.jsx(ko.Cancel,{className:El(ql({variant:"outline"}),e),...t})}function Gd({className:e,type:t,...r}){/* @__PURE__ */
260
+ return yl.jsx("input",{type:t,"data-slot":"input",className:El("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}const Qd={[q.audio]:{accept:["audio/*"],icon:/* @__PURE__ */yl.jsx(ar,{className:"size-4"}),title:"Insert Audio",tooltip:"Audio"},[q.file]:{accept:["*"],icon:/* @__PURE__ */yl.jsx(or,{className:"size-4"}),title:"Insert File",tooltip:"File"},[q.img]:{accept:["image/*"],icon:/* @__PURE__ */yl.jsx(Jt,{className:"size-4"}),title:"Insert Image",tooltip:"Image"},[q.video]:{accept:["video/*"],icon:/* @__PURE__ */yl.jsx(nr,{className:"size-4"}),title:"Insert Video",tooltip:"Video"}};function Jd({nodeType:t,...r}){const s=Qd[t],n=m(),[o,a]=e.useState(!1),[l,i]=e.useState(!1),{openFilePicker:c}=wo({accept:s.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{n.getTransforms(rn).insert.media(e)}});/* @__PURE__ */
261
+ return yl.jsxs(yl.Fragment,{children:[
262
+ /* @__PURE__ */yl.jsxs(gi,{onClick:()=>{c()},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),a(!0))},pressed:o,children:[
263
+ /* @__PURE__ */yl.jsx(bi,{children:s.icon}),
264
+ /* @__PURE__ */yl.jsxs(Gl,{open:o,onOpenChange:a,modal:!1,...r,children:[
265
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(ji,{})}),
266
+ /* @__PURE__ */yl.jsx(Xl,{onClick:e=>e.stopPropagation(),align:"start",alignOffset:-32,children:/* @__PURE__ */yl.jsxs(ei,{children:[
267
+ /* @__PURE__ */yl.jsxs(ti,{onSelect:()=>c(),children:[s.icon,"Upload from computer"]}),
268
+ /* @__PURE__ */yl.jsxs(ti,{onSelect:()=>i(!0),children:[
269
+ /* @__PURE__ */yl.jsx(sr,{}),"Insert via URL"]})]})})]})]}),
270
+ /* @__PURE__ */yl.jsx(Pd,{open:l,onOpenChange:e=>{i(e)},children:/* @__PURE__ */yl.jsx(Ud,{className:"gap-6",children:/* @__PURE__ */yl.jsx(Xd,{currentConfig:s,nodeType:t,setOpen:i})})})]})}function Xd({currentConfig:t,nodeType:r,setOpen:s}){const n=m(),[o,a]=e.useState(""),l=e.useCallback(()=>{if(!ee(o))return yo.error("Invalid URL");s(!1),n.tf.insertNodes({children:[{text:""}],name:r===q.file?o.split("/").pop():void 0,type:r,url:o})},[o,n,r,s]);/* @__PURE__ */
271
+ return yl.jsxs(yl.Fragment,{children:[
272
+ /* @__PURE__ */yl.jsx(qd,{children:/* @__PURE__ */yl.jsx(Wd,{children:t.title})}),
273
+ /* @__PURE__ */yl.jsxs(Zd,{className:"group relative w-full",children:[
274
+ /* @__PURE__ */yl.jsx("label",{className:"-translate-y-1/2 absolute top-1/2 block cursor-text px-1 text-muted-foreground/70 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:font-medium group-focus-within:text-foreground group-focus-within:text-xs has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:font-medium has-[+input:not(:placeholder-shown)]:text-foreground has-[+input:not(:placeholder-shown)]:text-xs",htmlFor:"url",children:/* @__PURE__ */yl.jsx("span",{className:"inline-flex bg-background px-2",children:"URL"})}),
275
+ /* @__PURE__ */yl.jsx(Gd,{id:"url",className:"w-full",value:o,onChange:e=>a(e.target.value),onKeyDown:e=>{"Enter"===e.key&&l()},placeholder:"",type:"url",autoFocus:!0})]}),
276
+ /* @__PURE__ */yl.jsxs($d,{children:[
277
+ /* @__PURE__ */yl.jsx(Yd,{children:"Cancel"}),
278
+ /* @__PURE__ */yl.jsx(Kd,{onClick:e=>{e.preventDefault(),l()},children:"Accept"})]})]})}function eu(t){const r=m(),[s,n]=e.useState(!1);/* @__PURE__ */
279
+ return yl.jsxs(Gl,{open:s,onOpenChange:n,modal:!1,...t,children:[
280
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{pressed:s,tooltip:"Insert",children:/* @__PURE__ */yl.jsx(lr,{})})}),
281
+ /* @__PURE__ */yl.jsx(Xl,{className:"ignore-click-outside/toolbar flex max-h-[500px] min-w-[180px] flex-col overflow-y-auto",align:"start",children:/* @__PURE__ */yl.jsxs(ei,{children:[
282
+ /* @__PURE__ */yl.jsxs(ti,{onSelect:()=>{r.tf.toggleMark(q.sup,{remove:q.sub}),r.tf.focus()},children:[
283
+ /* @__PURE__ */yl.jsx(ir,{}),"Superscript"]}),
284
+ /* @__PURE__ */yl.jsxs(ti,{onSelect:()=>{r.tf.toggleMark(q.sub,{remove:q.sup}),r.tf.focus()},children:[
285
+ /* @__PURE__ */yl.jsx(cr,{}),"Subscript"]})]})})]})}function tu(t){const r=f(e=>e.api.some({match:{type:q.table}}),[]),{editor:s,tf:n}=i(no),[o,a]=e.useState(!1),l=oo();/* @__PURE__ */
286
+ return yl.jsxs(Gl,{open:o,onOpenChange:a,modal:!1,...t,children:[
287
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{pressed:o,tooltip:"Table",isDropdown:!0,children:/* @__PURE__ */yl.jsx(dr,{})})}),
288
+ /* @__PURE__ */yl.jsx(Xl,{className:"flex w-[180px] min-w-0 flex-col",align:"start",children:/* @__PURE__ */yl.jsxs(ei,{children:[
289
+ /* @__PURE__ */yl.jsxs(li,{children:[
290
+ /* @__PURE__ */yl.jsxs(ii,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:[
291
+ /* @__PURE__ */yl.jsx(ur,{className:"size-4"}),
292
+ /* @__PURE__ */yl.jsx("span",{children:"Table"})]}),
293
+ /* @__PURE__ */yl.jsx(ci,{className:"m-0 p-0",children:/* @__PURE__ */yl.jsx(ru,{})})]}),
294
+ /* @__PURE__ */yl.jsxs(li,{children:[
295
+ /* @__PURE__ */yl.jsxs(ii,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!r,children:[
296
+ /* @__PURE__ */yl.jsx("div",{className:"size-4"}),
297
+ /* @__PURE__ */yl.jsx("span",{children:"Cell"})]}),
298
+ /* @__PURE__ */yl.jsxs(ci,{children:[
299
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!l.canMerge,onSelect:()=>{n.table.merge(),s.tf.focus()},children:[
300
+ /* @__PURE__ */yl.jsx(mr,{}),"Merge cells"]}),
301
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!l.canSplit,onSelect:()=>{n.table.split(),s.tf.focus()},children:[
302
+ /* @__PURE__ */yl.jsx(hr,{}),"Split cell"]})]})]}),
303
+ /* @__PURE__ */yl.jsxs(li,{children:[
304
+ /* @__PURE__ */yl.jsxs(ii,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!r,children:[
305
+ /* @__PURE__ */yl.jsx("div",{className:"size-4"}),
306
+ /* @__PURE__ */yl.jsx("span",{children:"Row"})]}),
307
+ /* @__PURE__ */yl.jsxs(ci,{children:[
308
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableRow({before:!0}),s.tf.focus()},children:[
309
+ /* @__PURE__ */yl.jsx(pr,{}),"Insert row before"]}),
310
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableRow(),s.tf.focus()},children:[
311
+ /* @__PURE__ */yl.jsx(xr,{}),"Insert row after"]}),
312
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.remove.tableRow(),s.tf.focus()},children:[
313
+ /* @__PURE__ */yl.jsx(gt,{}),"Delete row"]})]})]}),
314
+ /* @__PURE__ */yl.jsxs(li,{children:[
315
+ /* @__PURE__ */yl.jsxs(ii,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!r,children:[
316
+ /* @__PURE__ */yl.jsx("div",{className:"size-4"}),
317
+ /* @__PURE__ */yl.jsx("span",{children:"Column"})]}),
318
+ /* @__PURE__ */yl.jsxs(ci,{children:[
319
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableColumn({before:!0}),s.tf.focus()},children:[
320
+ /* @__PURE__ */yl.jsx(fr,{}),"Insert column before"]}),
321
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.insert.tableColumn(),s.tf.focus()},children:[
322
+ /* @__PURE__ */yl.jsx(gr,{}),"Insert column after"]}),
323
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.remove.tableColumn(),s.tf.focus()},children:[
324
+ /* @__PURE__ */yl.jsx(gt,{}),"Delete column"]})]})]}),
325
+ /* @__PURE__ */yl.jsxs(ti,{className:"min-w-[180px]",disabled:!r,onSelect:()=>{n.remove.table(),s.tf.focus()},children:[
326
+ /* @__PURE__ */yl.jsx(At,{}),"Delete table"]})]})})]})}function ru(){const{editor:t,tf:r}=i(no),[s,n]=e.useState({grid:Array.from({length:8},()=>Array.from({length:8}).fill(0)),size:{colCount:0,rowCount:0}});/* @__PURE__ */
327
+ return yl.jsxs("div",{className:"flex! m-0 flex-col p-0",onClick:()=>{r.insert.table(s.size,{select:!0}),t.tf.focus()},role:"button",children:[
328
+ /* @__PURE__ */yl.jsx("div",{className:"grid size-[130px] grid-cols-8 gap-0.5 p-1",children:s.grid.map((e,t)=>e.map((e,r)=>/* @__PURE__ */yl.jsx("div",{className:El("col-span-1 size-3 border border-solid bg-secondary",!!e&&"border-current"),onMouseMove:()=>{((e,t)=>{const r=[...s.grid];for(let s=0;s<r.length;s++)for(let n=0;n<r[s].length;n++)r[s][n]=s>=0&&s<=e&&n>=0&&n<=t?1:0;n({grid:r,size:{colCount:t+1,rowCount:e+1}})})(t,r)}},`(${t},${r})`)))}),
329
+ /* @__PURE__ */yl.jsxs("div",{className:"text-center text-current text-xs",children:[s.size.rowCount," x ",s.size.colCount]})]})}const su=[{icon:/* @__PURE__ */yl.jsx($t,{}),keywords:["paragraph"],label:"Text",value:q.p},{icon:/* @__PURE__ */yl.jsx(Wt,{}),keywords:["title","h1"],label:"Heading 1",value:"h1"},{icon:/* @__PURE__ */yl.jsx(Zt,{}),keywords:["subtitle","h2"],label:"Heading 2",value:"h2"},{icon:/* @__PURE__ */yl.jsx(Kt,{}),keywords:["subtitle","h3"],label:"Heading 3",value:"h3"},{icon:/* @__PURE__ */yl.jsx(br,{}),keywords:["subtitle","h4"],label:"Heading 4",value:"h4"},{icon:/* @__PURE__ */yl.jsx(jr,{}),keywords:["subtitle","h5"],label:"Heading 5",value:"h5"},{icon:/* @__PURE__ */yl.jsx(vr,{}),keywords:["subtitle","h6"],label:"Heading 6",value:"h6"},{icon:/* @__PURE__ */yl.jsx(Gt,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:q.ul},{icon:/* @__PURE__ */yl.jsx(Qt,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:q.ol}];function nu(t){const r=m(),[s,n]=e.useState(!1),o=v({defaultValue:q.p,getProp:e=>Td(e)}),a=e.useMemo(()=>su.find(e=>e.value===(o??q.p))??su[0],[o]);/* @__PURE__ */
330
+ return yl.jsxs(Gl,{open:s,onOpenChange:n,modal:!1,...t,children:[
331
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{className:"min-w-[125px]",pressed:s,tooltip:"Turn into",isDropdown:!0,children:a.label})}),
332
+ /* @__PURE__ */yl.jsx(Xl,{className:"ignore-click-outside/toolbar min-w-0",onCloseAutoFocus:e=>{e.preventDefault(),r.tf.focus()},align:"start",children:/* @__PURE__ */yl.jsx(ki,{value:o,onValueChange:e=>{((e,t,{at:r}={})=>{e.tf.withoutNormalizing(()=>{const s=r=>{const[s,n]=r;if(s[q.listType]&&e.tf.unsetNodes([q.listType,"indent"],{at:n}),t in Id)return Id[t](e,t,r);s.type!==t&&e.tf.setNodes({type:t},{at:n})};if(r){const t=e.api.node(r);if(t)return void s(t)}e.api.blocks({mode:"lowest"}).forEach(e=>{s(e)})})})(r,e)},label:"Turn into",children:su.map(({icon:e,label:t,value:r})=>/* @__PURE__ */yl.jsxs(ni,{className:"min-w-[180px] pl-2 *:first:[span]:hidden",value:r,children:[
333
+ /* @__PURE__ */yl.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */yl.jsx(js,{children:/* @__PURE__ */yl.jsx(pt,{})})}),e,t]},r))})})]})}const ou=e.createContext(void 0);function au({children:e,isFullscreen:t,onToggleFullscreen:r}){/* @__PURE__ */
334
+ return yl.jsx(ou.Provider,{value:{isFullscreen:t,onToggleFullscreen:r},children:e})}function lu(){const t=e.useContext(ou);if(void 0===t)throw new Error("useFullscreen must be used within a FullscreenProvider");return t}function iu(e){const{isFullscreen:t,onToggleFullscreen:r}=lu();/* @__PURE__ */
335
+ return yl.jsx(xi,{...e,onClick:r,onMouseDown:e=>e.preventDefault(),tooltip:t?"Exit fullscreen":"Enter fullscreen",pressed:t,children:t?/* @__PURE__ */yl.jsx(yr,{}):/* @__PURE__ */yl.jsx(wr,{})})}function cu(){const e=k();/* @__PURE__ */
336
+ return yl.jsx("div",{className:"flex w-full",children:!e&&/* @__PURE__ */yl.jsxs(yl.Fragment,{children:[
337
+ /* @__PURE__ */yl.jsxs(yi,{children:[
338
+ /* @__PURE__ */yl.jsx(wd,{}),
339
+ /* @__PURE__ */yl.jsx(yd,{})]}),
340
+ /* @__PURE__ */yl.jsx(yi,{children:/* @__PURE__ */yl.jsx(iu,{})}),
341
+ /* @__PURE__ */yl.jsx(yi,{children:/* @__PURE__ */yl.jsx(Od,{})}),
342
+ /* @__PURE__ */yl.jsx(yi,{children:/* @__PURE__ */yl.jsx(nu,{})}),
343
+ /* @__PURE__ */yl.jsxs(yi,{children:[
344
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */yl.jsx(kr,{})}),
345
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */yl.jsx(Nr,{})}),
346
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */yl.jsx(Cr,{})}),
347
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */yl.jsx(_r,{})}),
348
+ /* @__PURE__ */yl.jsx(Fd,{})]}),
349
+ /* @__PURE__ */yl.jsxs(yi,{children:[
350
+ /* @__PURE__ */yl.jsx(hd,{nodeType:q.color,tooltip:"Text color",children:/* @__PURE__ */yl.jsx(zr,{})}),
351
+ /* @__PURE__ */yl.jsx(hd,{nodeType:q.backgroundColor,tooltip:"Background color",children:/* @__PURE__ */yl.jsx(Sr,{})})]}),
352
+ /* @__PURE__ */yl.jsxs(yi,{children:[
353
+ /* @__PURE__ */yl.jsx(Ac,{}),
354
+ /* @__PURE__ */yl.jsx(Md,{}),
355
+ /* @__PURE__ */yl.jsx(Rd,{}),
356
+ /* @__PURE__ */yl.jsx(Nd,{}),
357
+ /* @__PURE__ */yl.jsx(kd,{})]}),
358
+ /* @__PURE__ */yl.jsxs(yi,{children:[
359
+ /* @__PURE__ */yl.jsx(tu,{}),
360
+ /* @__PURE__ */yl.jsx(Jd,{nodeType:q.img})]}),
361
+ /* @__PURE__ */yl.jsx(yi,{children:/* @__PURE__ */yl.jsx(eu,{})})]})})}const du=[N({key:"fixed-toolbar",render:{beforeEditable:()=>/* @__PURE__ */yl.jsx(Ec,{children:/* @__PURE__ */yl.jsx(cu,{})})}})];function uu({children:e,className:t,state:r,...s}){const n=C(),o=_("focus"),a=!!d({key:q.link},"mode"),l=d({key:q.aiChat},"open"),i=No({editorId:n,focusedEditorId:o,hideToolbar:a||l,...r,floatingOptions:{middleware:[Co(12),_o({fallbackPlacements:["top-start","top-end","bottom-start","bottom-end"],padding:12})],placement:"top",...r?.floatingOptions}}),{clickOutsideRef:c,hidden:u,props:m,ref:h}=zo(i),p=Ls(s.ref,h);return u?null:/* @__PURE__ */yl.jsx("div",{ref:c,children:/* @__PURE__ */yl.jsx(ui,{...s,...m,ref:p,className:El("scrollbar-hide absolute z-50 overflow-x-auto whitespace-nowrap rounded-md border bg-popover p-1 opacity-100 shadow-md print:hidden","max-w-[80vw]",t),children:e})})}function mu(){const e=k();/* @__PURE__ */
362
+ return yl.jsxs(yl.Fragment,{children:[!e&&/* @__PURE__ */yl.jsx(yl.Fragment,{children:/* @__PURE__ */yl.jsxs(yi,{children:[
363
+ /* @__PURE__ */yl.jsx(nu,{}),
364
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */yl.jsx(kr,{})}),
365
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */yl.jsx(Nr,{})}),
366
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */yl.jsx(Cr,{})}),
367
+ /* @__PURE__ */yl.jsx(Ld,{nodeType:q.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */yl.jsx(_r,{})}),
368
+ /* @__PURE__ */yl.jsx(Fd,{})]})}),
369
+ /* @__PURE__ */yl.jsx(yi,{children:!e&&/* @__PURE__ */yl.jsx(eu,{})})]})}const hu=[N({key:"floating-toolbar",render:{afterEditable:()=>/* @__PURE__ */yl.jsx(uu,{children:/* @__PURE__ */yl.jsx(mu,{})})}})],pu={inject:{targetPlugins:[q.p]}},xu=[me.configure({inject:{...pu.inject,nodeProps:{defaultNodeValue:"black"}}}),he.configure(pu),pe.configure(pu),xe.configure(pu)],fu=[fe.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...q.heading,q.p]}})];const gu=tt("z-50 w-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-hidden"),bu=tt("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function ju({state:t}){const r=d({key:q.comment},"activeId"),s=d({key:q.suggestion},"activeId"),n=e.useMemo(()=>({middleware:[Co(8),_o({fallbackPlacements:["bottom-end","top-start","top-end"],padding:12})],placement:s||r?"top-start":"bottom-start"}),[r,s]),o=Dn({...t,floatingOptions:{...n,...t?.floatingOptions}}),{hidden:a,props:l,ref:i,textInputProps:c}=On(o),u=Fn({...t,floatingOptions:{...n,...t?.floatingOptions}}),{editButtonProps:m,props:h,ref:p,unlinkButtonProps:x}=Rn(u),f=z({preventDefaultOnEnterKeydown:!0});if(a)return null;const g=/* @__PURE__ */yl.jsxs("div",{className:"flex w-[330px] flex-col",...f,children:[
370
+ /* @__PURE__ */yl.jsxs("div",{className:"flex items-center",children:[
371
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */yl.jsx(er,{className:"size-4"})}),
372
+ /* @__PURE__ */yl.jsx(Mn,{className:bu(),placeholder:"Paste link","data-plate-focus":!0})]}),
373
+ /* @__PURE__ */yl.jsx(di,{className:"my-1"}),
374
+ /* @__PURE__ */yl.jsxs("div",{className:"flex items-center",children:[
375
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */yl.jsx(Er,{className:"size-4"})}),
376
+ /* @__PURE__ */yl.jsx("input",{className:bu(),placeholder:"Text to display","data-plate-focus":!0,...c})]})]}),b=u.isEditing?g:/* @__PURE__ */yl.jsxs("div",{className:"box-content flex items-center",children:[
377
+ /* @__PURE__ */yl.jsx("button",{className:ql({size:"sm",variant:"ghost"}),type:"button",...m,children:"Edit link"}),
378
+ /* @__PURE__ */yl.jsx(di,{orientation:"vertical"}),
379
+ /* @__PURE__ */yl.jsx(vu,{}),
380
+ /* @__PURE__ */yl.jsx(di,{orientation:"vertical"}),
381
+ /* @__PURE__ */yl.jsx("button",{className:ql({size:"sm",variant:"ghost"}),type:"button",...x,children:/* @__PURE__ */yl.jsx(Br,{width:18})})]});/* @__PURE__ */
382
+ return yl.jsxs(yl.Fragment,{children:[
383
+ /* @__PURE__ */yl.jsx("div",{ref:i,className:gu(),...l,children:g}),
384
+ /* @__PURE__ */yl.jsx("div",{ref:p,className:gu(),...h,children:b})]})}function vu(){const t=m(),r=S(),s=e.useMemo(()=>{const e=t.api.node({match:{type:t.getType(q.link)}});if(!e)return{};const[r]=e;return So(t,r)},[t,r]);/* @__PURE__ */
385
+ return yl.jsx("a",{...s,className:ql({size:"sm",variant:"ghost"}),onMouseOver:e=>{e.stopPropagation()},"aria-label":"Open link in a new tab",target:"_blank",children:/* @__PURE__ */yl.jsx(Ar,{width:18})})}const yu=[Ln.configure({render:{node:function(e){const t=e.editor.getApi(so).suggestion.suggestionData(e.element);/* @__PURE__ */
386
+ return yl.jsx(r,{...e,as:"a",className:El("font-medium text-primary underline decoration-primary underline-offset-4","remove"===t?.type&&"bg-red-100 text-red-700","insert"===t?.type&&"bg-emerald-100 text-emerald-700"),attributes:{...e.attributes,...So(e.editor,e.element),onMouseOver:e=>{e.stopPropagation()}},children:e.children})},afterEditable:()=>/* @__PURE__ */yl.jsx(ju,{})}})],wu=[Cn.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle,q.img]},options:{offset:24}})];function ku({className:e,...t}){/* @__PURE__ */
387
+ return yl.jsx(Bo.Root,{"data-slot":"checkbox",className:El("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:/* @__PURE__ */yl.jsx(Bo.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:/* @__PURE__ */yl.jsx(pt,{className:"size-3.5"})})})}const Nu={todo:{Li:function(e){/* @__PURE__ */
388
+ return yl.jsx("li",{className:El("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=bo({element:e.element}),{checkboxProps:r}=jo(t),n=s();/* @__PURE__ */
389
+ return yl.jsx("div",{contentEditable:!1,children:/* @__PURE__ */yl.jsx(ku,{className:El("-left-6 absolute top-1",n&&"pointer-events-none"),...r})})}}};function Cu(e){const{listStart:t,listStyleType:r}=e.element,{Li:s,Marker:n}=Nu[r]??{},o=Fe(e.element)?"ol":"ul";/* @__PURE__ */
390
+ return yl.jsxs(o,{className:"relative m-0 p-0",style:{listStyleType:r},start:t,children:[n&&/* @__PURE__ */yl.jsx(n,{...e}),s?/* @__PURE__ */yl.jsx(s,{...e}):/* @__PURE__ */yl.jsx("li",{children:e.children})]})}const _u=[...wu,vo.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle,q.img]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */yl.jsx(Cu,{...e})}}})],zu=[Ao.configure({options:{plainMarks:[q.suggestion,q.comment],remarkPlugins:[Oo,Do,Io,To]}})];const Su=E(Po)({propsHook:Fo}),Eu=({className:t,isInline:r,open:n,setOpen:o,...a})=>{const l=m(),i=s(),c=h();if(e.useEffect(()=>{r&&n&&o(!0)},[r,n,o]),i)return null;const d=()=>{o(!1),r?l.tf.select(c,{focus:!0,next:!0}):l.getApi(ot).blockSelection.set(c.id)};/* @__PURE__ */
391
+ return yl.jsxs(Zi,{className:"flex gap-2",onEscapeKeyDown:e=>{e.preventDefault()},contentEditable:!1,children:[
392
+ /* @__PURE__ */yl.jsx(Su,{className:El("max-h-[50vh] grow resize-none p-2 text-sm",t),state:{isInline:r,open:n,onClose:d},autoFocus:!0,...a}),
393
+ /* @__PURE__ */yl.jsxs($l,{variant:"secondary",className:"px-3",onClick:d,children:["Done ",
394
+ /* @__PURE__ */yl.jsx(Tr,{className:"size-3.5"})]})]})},Bu=[Mo.withComponent(function(t){const s=t.element,o=e.useRef(null),a=n(),l=f(e=>e.api.isCollapsed(),[]),[i,c]=e.useState(a&&l);return e.useEffect(()=>{a&&l&&c(!0)},[a,l]),Ro({element:s,katexRef:o,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */yl.jsxs(r,{...t,className:El("mx-1 inline-block select-none rounded-sm [&_.katex-display]:my-0!"),children:[
395
+ /* @__PURE__ */yl.jsxs($i,{open:i,onOpenChange:c,modal:!1,children:[
396
+ /* @__PURE__ */yl.jsx(Wi,{asChild:!0,children:/* @__PURE__ */yl.jsxs("div",{className:El('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",(s.texExpression.length>0&&i||a)&&"after:bg-brand/15",0===s.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),contentEditable:!1,children:[
397
+ /* @__PURE__ */yl.jsx("span",{ref:o,className:El(0===s.texExpression.length&&"hidden","font-mono leading-none")}),0===s.texExpression.length&&/* @__PURE__ */yl.jsxs("span",{children:[
398
+ /* @__PURE__ */yl.jsx(Ir,{className:"mr-1 inline-block h-[19px] w-4 py-[1.5px] align-text-bottom"}),"New equation"]})]})}),
399
+ /* @__PURE__ */yl.jsx(Eu,{className:"my-auto",open:i,placeholder:"E = mc^2",setOpen:c,isInline:!0})]}),t.children]})}),Lo.withComponent(function(t){const s=n(),[o,a]=e.useState(s),l=e.useRef(null);return Ro({element:t.element,katexRef:l,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */yl.jsxs(r,{className:"my-1",...t,children:[
400
+ /* @__PURE__ */yl.jsxs($i,{open:o,onOpenChange:a,modal:!1,children:[
401
+ /* @__PURE__ */yl.jsx(Wi,{asChild:!0,children:/* @__PURE__ */yl.jsx("div",{className:El("group flex cursor-pointer select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.element.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),"data-selected":s,contentEditable:!1,role:"button",children:t.element.texExpression.length>0?/* @__PURE__ */yl.jsx("span",{ref:l}):/* @__PURE__ */yl.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
402
+ /* @__PURE__ */yl.jsx(Ir,{className:"size-6 text-muted-foreground/80"}),
403
+ /* @__PURE__ */yl.jsx("div",{children:"Add a Tex equation"})]})})}),
404
+ /* @__PURE__ */yl.jsx(Eu,{open:o,placeholder:"f(x) = \\begin{cases}\n x^2, &\\quad x > 0 \\\\\n 0, &\\quad x = 0 \\\\\n -x^2, &\\quad x < 0\n\\end{cases}",isInline:!1,setOpen:a})]}),t.children]})})],Au=tt("max-w-full",{defaultVariants:{align:"center"},variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function Iu({align:e,className:t,...r}){/* @__PURE__ */
405
+ return yl.jsx(Uo,{...r,className:El(Au({align:e}),t)})}function Tu(e){/* @__PURE__ */
406
+ return yl.jsx(qo,{...e,className:El("mt-2 w-full resize-none border-none bg-inherit p-0 font-[inherit] text-inherit","focus:outline-none focus:[&::placeholder]:opacity-0","text-center print:placeholder:text-transparent",e.className)})}const Du=Ps($l)({propsHook:Vo,stateHook:Ho}),Ou=p(Ds,function(e){const{align:t="center",readOnly:s,unsafeUrl:n}=sn();/* @__PURE__ */
407
+ return yl.jsxs(r,{...e,className:"mb-1",children:[
408
+ /* @__PURE__ */yl.jsxs("figure",{className:"group relative cursor-default",contentEditable:!1,children:[
409
+ /* @__PURE__ */yl.jsx("div",{className:"h-16",children:/* @__PURE__ */yl.jsx("audio",{className:"size-full",src:n,controls:!0})}),
410
+ /* @__PURE__ */yl.jsx(Iu,{style:{width:"100%"},align:t,children:/* @__PURE__ */yl.jsx(Tu,{className:"h-20",readOnly:s,placeholder:"Write a caption..."})})]}),e.children]})}),Fu=tt("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function Ru({children:t,plugin:r}){const o=m(),a=s(),l=n(),i=g(),c=f(e=>!e.api.isExpanded(),[]),d=nn("isOpen",o.id),u=i&&!a&&l&&c&&!d,p=on("isEditing");e.useEffect(()=>{!u&&p&&an.set("isEditing",!1)},[u]);const b=h(),{props:j}=x({element:b});/* @__PURE__ */
411
+ return yl.jsxs($i,{open:u,modal:!1,children:[
412
+ /* @__PURE__ */yl.jsx(Ki,{children:t}),
413
+ /* @__PURE__ */yl.jsx(Zi,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),children:p?/* @__PURE__ */yl.jsx("div",{className:"flex w-[330px] flex-col",children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-center",children:[
414
+ /* @__PURE__ */yl.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */yl.jsx(er,{className:"size-4"})}),
415
+ /* @__PURE__ */yl.jsx(ln.UrlInput,{className:Fu(),placeholder:"Paste the embed link...",options:{plugin:r}})]})}):/* @__PURE__ */yl.jsxs("div",{className:"box-content flex items-center",children:[
416
+ /* @__PURE__ */yl.jsx(ln.EditButton,{className:ql({size:"sm",variant:"ghost"}),children:"Edit link"}),
417
+ /* @__PURE__ */yl.jsx(Du,{size:"sm",variant:"ghost",children:"Caption"}),
418
+ /* @__PURE__ */yl.jsx(di,{orientation:"vertical",className:"mx-1 h-6"}),
419
+ /* @__PURE__ */yl.jsx($l,{size:"sm",variant:"ghost",...j,children:/* @__PURE__ */yl.jsx(At,{})})]})})]})}const Mu=tt(El("top-0 flex w-6 select-none flex-col justify-center","after:flex after:h-16 after:w-[3px] after:rounded-[6px] after:bg-ring after:opacity-0 after:content-['_'] group-hover:after:opacity-100"),{variants:{direction:{left:"-left-3 -ml-3 pl-3",right:"-right-3 -mr-3 items-end pr-3"}}}),Lu=tt("absolute z-40",{variants:{direction:{bottom:"w-full cursor-row-resize",left:"h-full cursor-col-resize",right:"h-full cursor-col-resize",top:"w-full cursor-row-resize"}}});function Pu({className:e,options:t,...r}){const s=Fs(t??{}),n=Rs(s);return s.readOnly?null:/* @__PURE__ */yl.jsx("div",{className:El(Lu({direction:t?.direction}),e),"data-resizing":s.isResizing,...n.props,...r})}const Hu=tt("",{variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function Vu({align:e,className:t,...r}){/* @__PURE__ */
420
+ return yl.jsx(Os,{...r,className:El(Hu({align:e}),t)})}const Uu=p(Ds,function(e){const{align:t="center",embed:s,focused:n,isTweet:o,isVideo:a,isYoutube:l,readOnly:i,selected:c}=sn({urlParsers:[Yn,Gn]}),d=Ms("width"),u=s?.provider;/* @__PURE__ */
421
+ return yl.jsx(Ru,{plugin:cn,children:/* @__PURE__ */yl.jsxs(r,{className:"py-2.5",...e,children:[
422
+ /* @__PURE__ */yl.jsxs("figure",{className:"group relative m-0 w-full cursor-default",contentEditable:!1,children:[
423
+ /* @__PURE__ */yl.jsxs(Vu,{align:t,options:{align:t,maxWidth:o?550:"100%",minWidth:o?300:100},children:[
424
+ /* @__PURE__ */yl.jsx(Pu,{className:Mu({direction:"left"}),options:{direction:"left"}}),a?l?/* @__PURE__ */yl.jsx(Wo,{id:s.id,title:"youtube",wrapperClass:El("rounded-sm",n&&c&&"ring-2 ring-ring ring-offset-2","relative block cursor-pointer bg-black bg-center bg-cover [contain:content]","[&.lyt-activated]:before:absolute [&.lyt-activated]:before:top-0 [&.lyt-activated]:before:h-[60px] [&.lyt-activated]:before:w-full [&.lyt-activated]:before:bg-top [&.lyt-activated]:before:bg-repeat-x [&.lyt-activated]:before:pb-[50px] [&.lyt-activated]:before:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&.lyt-activated]:before:bg-[url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==)]",'after:block after:pb-[var(--aspect-ratio)] after:content-[""]',"[&_>_iframe]:absolute [&_>_iframe]:top-0 [&_>_iframe]:left-0 [&_>_iframe]:size-full","[&_>_.lty-playbtn]:z-1 [&_>_.lty-playbtn]:h-[46px] [&_>_.lty-playbtn]:w-[70px] [&_>_.lty-playbtn]:rounded-[14%] [&_>_.lty-playbtn]:bg-[#212121] [&_>_.lty-playbtn]:opacity-80 [&_>_.lty-playbtn]:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&:hover_>_.lty-playbtn]:bg-[red] [&:hover_>_.lty-playbtn]:opacity-100",'[&_>_.lty-playbtn]:before:border-[transparent_transparent_transparent_#fff] [&_>_.lty-playbtn]:before:border-y-[11px] [&_>_.lty-playbtn]:before:border-r-0 [&_>_.lty-playbtn]:before:border-l-[19px] [&_>_.lty-playbtn]:before:content-[""]',"[&_>_.lty-playbtn]:absolute [&_>_.lty-playbtn]:top-1/2 [&_>_.lty-playbtn]:left-1/2 [&_>_.lty-playbtn]:[transform:translate3d(-50%,-50%,0)]","[&_>_.lty-playbtn]:before:absolute [&_>_.lty-playbtn]:before:top-1/2 [&_>_.lty-playbtn]:before:left-1/2 [&_>_.lty-playbtn]:before:[transform:translate3d(-50%,-50%,0)]","[&.lyt-activated]:cursor-[unset]","[&.lyt-activated]:before:pointer-events-none [&.lyt-activated]:before:opacity-0","[&.lyt-activated_>_.lty-playbtn]:pointer-events-none [&.lyt-activated_>_.lty-playbtn]:opacity-0!")}):/* @__PURE__ */yl.jsx("div",{className:El("vimeo"===u&&"pb-[75%]","youku"===u&&"pb-[56.25%]","dailymotion"===u&&"pb-[56.0417%]","coub"===u&&"pb-[51.25%]"),children:/* @__PURE__ */yl.jsx("iframe",{className:El("absolute top-0 left-0 size-full rounded-sm",a&&"border-0",n&&c&&"ring-2 ring-ring ring-offset-2"),title:"embed",src:s.url,allowFullScreen:!0})}):null,o&&/* @__PURE__ */yl.jsx("div",{className:El("[&_.react-tweet-theme]:my-0",!i&&c&&"[&_.react-tweet-theme]:ring-2 [&_.react-tweet-theme]:ring-ring [&_.react-tweet-theme]:ring-offset-2"),children:/* @__PURE__ */yl.jsx(Zo,{id:s.id})}),
425
+ /* @__PURE__ */yl.jsx(Pu,{className:Mu({direction:"right"}),options:{direction:"right"}})]}),
426
+ /* @__PURE__ */yl.jsx(Iu,{style:{width:d},align:t,children:/* @__PURE__ */yl.jsx(Tu,{placeholder:"Write a caption..."})})]}),e.children]})})}),qu=p(Ds,function(e){const t=s(),{name:n,unsafeUrl:o}=sn();/* @__PURE__ */
427
+ return yl.jsxs(r,{className:"my-px rounded-sm",...e,children:[
428
+ /* @__PURE__ */yl.jsxs("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:n,href:o,rel:"noopener noreferrer",role:"button",target:"_blank",children:[
429
+ /* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
430
+ /* @__PURE__ */yl.jsx(Dr,{className:"size-5"}),
431
+ /* @__PURE__ */yl.jsx("div",{children:n})]}),
432
+ /* @__PURE__ */yl.jsx(Iu,{align:"left",children:/* @__PURE__ */yl.jsx(Tu,{className:"text-left",readOnly:t,placeholder:"Write a caption..."})})]}),e.children]})}),$u=p(Ds,function(e){const{align:t="center",focused:s,readOnly:n,selected:o}=sn(),a=Ms("width"),{isDragging:l,handleRef:i}=ls({element:e.element});/* @__PURE__ */
433
+ return yl.jsx(Ru,{plugin:dn,children:/* @__PURE__ */yl.jsxs(r,{...e,className:"py-2.5",children:[
434
+ /* @__PURE__ */yl.jsxs("figure",{className:"group relative m-0",contentEditable:!1,children:[
435
+ /* @__PURE__ */yl.jsxs(Vu,{align:t,options:{align:t,readOnly:n},children:[
436
+ /* @__PURE__ */yl.jsx(Pu,{className:Mu({direction:"left"}),options:{direction:"left"}}),
437
+ /* @__PURE__ */yl.jsx(un,{ref:i,className:El("block w-full max-w-full cursor-pointer object-cover px-0","rounded-sm",s&&o&&"ring-2 ring-ring ring-offset-2",l&&"opacity-50"),alt:e.attributes.alt}),
438
+ /* @__PURE__ */yl.jsx(Pu,{className:Mu({direction:"right"}),options:{direction:"right"}})]}),
439
+ /* @__PURE__ */yl.jsx(Iu,{style:{width:a},align:t,children:/* @__PURE__ */yl.jsx(Tu,{readOnly:n,onFocus:e=>{e.preventDefault()},placeholder:"Write a caption..."})})]}),e.children]})})});function Wu({onUploadComplete:t,onUploadError:r,...s}={}){const[n,o]=e.useState(),[a,l]=e.useState(),[i,c]=e.useState(0),[d,u]=e.useState(!1);return{isUploading:d,progress:i,uploadedFile:n,uploadFile:async function(e){u(!0),l(e);try{const r=await Zu("editorUploader",{...s,files:[e],onUploadProgress:({progress:e})=>{c(Math.min(e,100))}});return o(r[0]),t?.(r[0]),n}catch(a){const t=function(e){const t="Something went wrong, please try again later.";if(e instanceof Yo.ZodError){return e.issues.map(e=>e.message).join("\n")}if(e instanceof Error)return e.message;return t}(a),s=t.length>0?t:"Something went wrong, please try again later.";yo.error(s),r?.(a);const n={key:"mock-key-0",appUrl:`https://mock-app-url.com/${e.name}`,name:e.name,size:e.size,type:e.type,url:URL.createObjectURL(e)};let l=0;const i=async()=>{for(;l<100;)await new Promise(e=>setTimeout(e,50)),l+=2,c(Math.min(l,100))};return await i(),o(n),n}finally{c(0),u(!1),l(void 0)}},uploadingFile:a}}const{uploadFiles:Zu,useUploadThing:Ku}=Ko();const Yu={[q.audio]:{accept:["audio/*"],content:"Add an audio file",icon:/* @__PURE__ */yl.jsx(Rr,{})},[q.file]:{accept:["*"],content:"Add a file",icon:/* @__PURE__ */yl.jsx(Dr,{})},[q.img]:{accept:["image/*"],content:"Add an image",icon:/* @__PURE__ */yl.jsx(Jt,{})},[q.video]:{accept:["video/*"],content:"Add a video",icon:/* @__PURE__ */yl.jsx(Fr,{})}},Gu=p(mn,function(t){const{editor:s,element:n}=t,{api:o}=i(rn),{isUploading:a,progress:l,uploadedFile:c,uploadFile:d,uploadingFile:u}=Wu(),m=a&&u,h=Yu[n.mediaType],p=n.mediaType===q.img,x=e.useRef(null),{openFilePicker:f}=wo({accept:h.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{const t=e[0],r=e.slice(1);g(t),r.length>0&&s.getTransforms(rn).insert.media(r)}}),g=e.useCallback(e=>{d(e),o.placeholder.addUploadingFile(n.id,e)},[o.placeholder,n.id,d]);e.useEffect(()=>{if(!c)return;const e=s.api.findPath(n);s.tf.withoutSaving(()=>{s.tf.removeNodes({at:e});const t={children:[{text:""}],initialHeight:x.current?.height,initialWidth:x.current?.width,isUpload:!0,name:n.mediaType===q.file?c.name:"",placeholderId:n.id,type:n.mediaType,url:c.url};s.tf.insertNodes(t,{at:e}),hn(s,t)}),o.placeholder.removeUploadingFile(n.id)},[c,n.id]);const b=e.useRef(!1);return e.useEffect(()=>{if(b.current)return;b.current=!0;const e=o.placeholder.getUploadingFile(n.id);e&&g(e)},[b]),/* @__PURE__ */yl.jsxs(r,{className:"my-1",...t,children:[(!m||!p)&&/* @__PURE__ */yl.jsxs("div",{className:El("flex cursor-pointer select-none items-center rounded-sm bg-muted p-3 pr-9 hover:bg-primary/10"),onClick:()=>!m&&f(),contentEditable:!1,children:[
440
+ /* @__PURE__ */yl.jsx("div",{className:"relative mr-3 flex text-muted-foreground/80 [&_svg]:size-6",children:h.icon}),
441
+ /* @__PURE__ */yl.jsxs("div",{className:"whitespace-nowrap text-muted-foreground text-sm",children:[
442
+ /* @__PURE__ */yl.jsx("div",{children:m?u?.name:h.content}),m&&!p&&/* @__PURE__ */yl.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[
443
+ /* @__PURE__ */yl.jsx("div",{children:Ju(u?.size??0)}),
444
+ /* @__PURE__ */yl.jsx("div",{children:""}),
445
+ /* @__PURE__ */yl.jsxs("div",{className:"flex items-center",children:[
446
+ /* @__PURE__ */yl.jsx(Or,{className:"mr-1 size-3.5 animate-spin text-muted-foreground"}),l??0,"%"]})]})]})]}),p&&m&&/* @__PURE__ */yl.jsx(Qu,{file:u,imageRef:x,progress:l}),t.children]})});function Qu({className:t,file:r,imageRef:s,progress:n=0}){const[o,a]=e.useState(null);return e.useEffect(()=>{const e=URL.createObjectURL(r);return a(e),()=>{URL.revokeObjectURL(e)}},[r]),o?/* @__PURE__ */yl.jsxs("div",{className:El("relative",t),contentEditable:!1,children:[
447
+ /* @__PURE__ */yl.jsx("img",{ref:s,className:"h-auto w-full rounded-sm object-cover",alt:r.name,src:o}),n<100&&/* @__PURE__ */yl.jsxs("div",{className:"absolute right-1 bottom-1 flex items-center space-x-2 rounded-full bg-black/50 px-1 py-0.5",children:[
448
+ /* @__PURE__ */yl.jsx(Or,{className:"size-3.5 animate-spin text-muted-foreground"}),
449
+ /* @__PURE__ */yl.jsxs("span",{className:"font-medium text-white text-xs",children:[Math.round(n),"%"]})]})]}):null}function Ju(e,t={}){const{decimals:r=0,sizeType:s="normal"}=t;if(0===e)return"0 Byte";const n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(r)} ${"accurate"===s?["Bytes","KiB","MiB","GiB","TiB"][n]??"Bytest":["Bytes","KB","MB","GB","TB"][n]??"Bytes"}`}const Xu=tt("rounded bg-[rgba(0,0,0,0.5)] px-1",{defaultVariants:{variant:"default"},variants:{variant:{default:"text-white",disabled:"cursor-not-allowed text-gray-400"}}});function em(e){const{props:t,ref:r}=fn();/* @__PURE__ */
450
+ return yl.jsx("input",{...t,...e,ref:r})}const tm=()=>{const t=d(rn,"error");e.useEffect(()=>{if(!t)return;const{code:e,data:r}=t;switch(e){case gn.INVALID_FILE_SIZE:yo.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case gn.INVALID_FILE_TYPE:yo.error(`The type of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case gn.TOO_LARGE:yo.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is too large than ${r.maxFileSize}`);break;case gn.TOO_LESS_FILES:yo.error(`The mini um number of files is ${r.minFileCount} for ${r.fileType}`);break;case gn.TOO_MANY_FILES:yo.error(`The maximum number of files is ${r.maxFileCount} ${r.fileType?`for ${r.fileType}`:""}`)}},[t])},rm=p(Ds,function(e){const{align:t="center",embed:s,isUpload:n,isYoutube:o,readOnly:a,unsafeUrl:l}=sn({urlParsers:[Yn,Gn]}),i=Ms("width"),c=B(),{isDragging:d,handleRef:u}=ls({element:e.element});/* @__PURE__ */
451
+ return yl.jsxs(r,{className:"py-2.5",...e,children:[
452
+ /* @__PURE__ */yl.jsxs("figure",{className:"relative m-0 cursor-default",contentEditable:!1,children:[
453
+ /* @__PURE__ */yl.jsx(Vu,{className:El(d&&"opacity-50"),align:t,options:{align:t,maxWidth:550,minWidth:300,readOnly:a},children:/* @__PURE__ */yl.jsxs("div",{className:"group/media",children:[
454
+ /* @__PURE__ */yl.jsx(Pu,{className:Mu({direction:"left"}),options:{direction:"left"}}),
455
+ /* @__PURE__ */yl.jsx(Pu,{className:Mu({direction:"right"}),options:{direction:"right"}}),!n&&o&&/* @__PURE__ */yl.jsx("div",{ref:u,children:/* @__PURE__ */yl.jsx(Wo,{id:s.id,title:"youtube",wrapperClass:El("aspect-video rounded-sm","relative block cursor-pointer bg-black bg-center bg-cover [contain:content]","[&.lyt-activated]:before:absolute [&.lyt-activated]:before:top-0 [&.lyt-activated]:before:h-[60px] [&.lyt-activated]:before:w-full [&.lyt-activated]:before:bg-top [&.lyt-activated]:before:bg-repeat-x [&.lyt-activated]:before:pb-[50px] [&.lyt-activated]:before:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&.lyt-activated]:before:bg-[url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==)]",'after:block after:pb-[var(--aspect-ratio)] after:content-[""]',"[&_>_iframe]:absolute [&_>_iframe]:top-0 [&_>_iframe]:left-0 [&_>_iframe]:size-full","[&_>_.lty-playbtn]:z-1 [&_>_.lty-playbtn]:h-[46px] [&_>_.lty-playbtn]:w-[70px] [&_>_.lty-playbtn]:rounded-[14%] [&_>_.lty-playbtn]:bg-[#212121] [&_>_.lty-playbtn]:opacity-80 [&_>_.lty-playbtn]:[transition:all_0.2s_cubic-bezier(0,_0,_0.2,_1)]","[&:hover_>_.lty-playbtn]:bg-[red] [&:hover_>_.lty-playbtn]:opacity-100",'[&_>_.lty-playbtn]:before:border-[transparent_transparent_transparent_#fff] [&_>_.lty-playbtn]:before:border-y-[11px] [&_>_.lty-playbtn]:before:border-r-0 [&_>_.lty-playbtn]:before:border-l-[19px] [&_>_.lty-playbtn]:before:content-[""]',"[&_>_.lty-playbtn]:absolute [&_>_.lty-playbtn]:top-1/2 [&_>_.lty-playbtn]:left-1/2 [&_>_.lty-playbtn]:[transform:translate3d(-50%,-50%,0)]","[&_>_.lty-playbtn]:before:absolute [&_>_.lty-playbtn]:before:top-1/2 [&_>_.lty-playbtn]:before:left-1/2 [&_>_.lty-playbtn]:before:[transform:translate3d(-50%,-50%,0)]","[&.lyt-activated]:cursor-[unset]","[&.lyt-activated]:before:pointer-events-none [&.lyt-activated]:before:opacity-0","[&.lyt-activated_>_.lty-playbtn]:pointer-events-none [&.lyt-activated_>_.lty-playbtn]:opacity-0!")})}),n&&c&&/* @__PURE__ */yl.jsx("div",{ref:u,children:/* @__PURE__ */yl.jsx(Go,{height:"100%",src:l,width:"100%",controls:!0})})]})}),
456
+ /* @__PURE__ */yl.jsx(Iu,{style:{width:i},align:t,children:/* @__PURE__ */yl.jsx(Tu,{readOnly:a,placeholder:"Write a caption..."})})]}),e.children]})}),sm=[dn.configure({options:{disableUploadInsert:!0},render:{afterEditable:function(){const e=m(),t=nn("isOpen",e.id),r=nn("scale"),s=nn("isEditingScale"),{closeProps:n,currentUrlIndex:o,maskLayerProps:a,nextDisabled:l,nextProps:i,prevDisabled:c,prevProps:d,scaleTextProps:u,zommOutProps:h,zoomInDisabled:p,zoomInProps:x,zoomOutDisabled:f}=pn({scrollSpeed:4});/* @__PURE__ */
457
+ return yl.jsxs("div",{className:El("fixed top-0 left-0 z-50 h-screen w-screen select-none",!t&&"hidden"),onContextMenu:e=>e.stopPropagation(),...a,children:[
458
+ /* @__PURE__ */yl.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
459
+ /* @__PURE__ */yl.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
460
+ /* @__PURE__ */yl.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:/* @__PURE__ */yl.jsxs("div",{className:"relative flex max-h-screen w-full items-center",children:[
461
+ /* @__PURE__ */yl.jsx(xn,{className:El("mx-auto block max-h-[calc(100vh-4rem)] w-auto object-contain transition-transform")}),
462
+ /* @__PURE__ */yl.jsxs("div",{className:"-translate-x-1/2 absolute bottom-0 left-1/2 z-40 flex w-fit justify-center gap-4 p-2 text-center text-white",onClick:e=>e.stopPropagation(),children:[
463
+ /* @__PURE__ */yl.jsxs("div",{className:"flex gap-1",children:[
464
+ /* @__PURE__ */yl.jsx("button",{...d,className:El(Xu({variant:c?"disabled":"default"})),type:"button",children:/* @__PURE__ */yl.jsx(fr,{})}),(o??0)+1,
465
+ /* @__PURE__ */yl.jsx("button",{...i,className:El(Xu({variant:l?"disabled":"default"})),type:"button",children:/* @__PURE__ */yl.jsx(gr,{})})]}),
466
+ /* @__PURE__ */yl.jsxs("div",{className:"flex",children:[
467
+ /* @__PURE__ */yl.jsx("button",{className:El(Xu({variant:f?"disabled":"default"})),...h,type:"button",children:/* @__PURE__ */yl.jsx(Mr,{className:"size-4"})}),
468
+ /* @__PURE__ */yl.jsx("div",{className:"mx-px",children:s?/* @__PURE__ */yl.jsxs(yl.Fragment,{children:[
469
+ /* @__PURE__ */yl.jsx(em,{className:"w-10 rounded px-1 text-slate-500 outline"})," ",
470
+ /* @__PURE__ */yl.jsx("span",{children:"%"})]}):/* @__PURE__ */yl.jsx("span",{...u,children:100*r+"%"})}),
471
+ /* @__PURE__ */yl.jsx("button",{className:El(Xu({variant:p?"disabled":"default"})),...x,type:"button",children:/* @__PURE__ */yl.jsx(Lr,{className:"size-4"})})]}),
472
+ /* @__PURE__ */yl.jsx("button",{className:El(Xu()),type:"button",children:/* @__PURE__ */yl.jsx(Pr,{className:"size-4"})}),
473
+ /* @__PURE__ */yl.jsx("button",{...n,className:El(Xu()),type:"button",children:/* @__PURE__ */yl.jsx(Hr,{className:"size-4"})})]})]})})]})},node:$u}}),cn.withComponent(Uu),bn.withComponent(rm),jn.withComponent(Ou),vn.withComponent(qu),rn.configure({options:{disableEmptyPlaceholder:!0},render:{afterEditable:function(){return tm(),null},node:Gu}}),$o.configure({options:{query:{allow:[q.img,q.video,q.audio,q.file,q.mediaEmbed]}}})];const nm=e.createContext(null),om=({group:e,keywords:t=[],label:r,value:s},n)=>{const o=new Set([s,...t,e,r].filter(Boolean));return Array.from(o).some(e=>da(e,n))},am=({children:t,element:r,filter:s=om,hideWhenNoValue:n=!1,setValue:o,showTrigger:a=!0,trigger:l,value:i})=>{const c=m(),d=e.useRef(null),u=ua(d),[h,p]=e.useState(""),x=void 0!==i,f=x?i:h,g=e.useMemo(()=>{const e=r.userId,t=c.meta.userId;return!e||e===t},[c.meta.userId,r]),b=e.useCallback(e=>{o?.(e),x||p(e)},[o,x]),j=e.useRef(null);e.useEffect(()=>{const e=c.api.findPath(r);if(!e)return;const t=c.api.before(e);if(!t)return;const s=c.api.pointRef(t);return j.current=s.current,()=>{s.unref()}},[c,r]);const{props:v,removeInput:y}=ma({cancelInputOnBlur:!0,cursorState:u,autoFocus:g,ref:d,onCancelInput:e=>{"backspace"!==e&&c.tf.insertText(l+f,{at:j?.current??void 0}),"arrowLeft"!==e&&"arrowRight"!==e||c.tf.move({distance:1,reverse:"arrowLeft"===e})}}),[w,k]=e.useState(!1),N=e.useMemo(()=>({filter:s,inputProps:v,inputRef:d,removeInput:y,setHasEmpty:k,showTrigger:a,trigger:l}),[l,a,s,d,v,y,k]),C=ta({setValue:t=>e.startTransition(()=>b(t))}),_=C.useState("items");return e.useEffect(()=>{C.getState().activeId||C.setActiveId(C.first())},[_,C]),/* @__PURE__ */yl.jsx("span",{contentEditable:!1,children:/* @__PURE__ */yl.jsx(ra,{open:(_.length>0||w)&&(!n||f.length>0),store:C,children:/* @__PURE__ */yl.jsx(nm.Provider,{value:N,children:t})})})},lm=({className:t,ref:r,...s})=>{const{inputProps:n,inputRef:o,showTrigger:a,trigger:l}=e.useContext(nm),i=sa().useState("value"),c=A(r,o);/* @__PURE__ */
474
+ return yl.jsxs(yl.Fragment,{children:[a&&l,
475
+ /* @__PURE__ */yl.jsxs("span",{className:"relative min-h-[1lh]",children:[
476
+ /* @__PURE__ */yl.jsx("span",{className:"invisible overflow-hidden text-nowrap","aria-hidden":"true",children:i||""}),
477
+ /* @__PURE__ */yl.jsx(na,{ref:c,className:El("absolute top-0 left-0 size-full bg-transparent outline-none",t),value:i,autoSelect:!0,...n,...s})]})]})};lm.displayName="InlineComboboxInput";const im=({className:e,...t})=>/* @__PURE__ */yl.jsx(oa,{children:/* @__PURE__ */yl.jsx(aa,{className:El("z-500 max-h-[288px] w-[300px] overflow-y-auto rounded-md bg-popover shadow-md",e),...t})}),cm=tt("relative mx-1 flex h-[28px] select-none items-center rounded-sm px-2 text-foreground text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{defaultVariants:{interactive:!0},variants:{interactive:{false:"",true:"cursor-pointer transition-colors hover:bg-accent hover:text-accent-foreground data-[active-item=true]:bg-accent data-[active-item=true]:text-accent-foreground"}}}),dm=({className:t,focusEditor:r=!0,group:s,keywords:n,label:o,onClick:a,...l})=>{const{value:i}=l,{filter:c,removeInput:d}=e.useContext(nm),u=sa(),m=c&&u.useState("value");return e.useMemo(()=>!c||c({group:s,keywords:n,label:o,value:i},m),[c,s,n,o,i,m])?/* @__PURE__ */yl.jsx(ia,{className:El(cm(),t),onClick:e=>{d(r),a?.(e)},...l}):null},um=({children:t,className:r})=>{const{setHasEmpty:s}=e.useContext(nm),n=sa().useState("items");return e.useEffect(()=>(s(!0),()=>{s(!1)}),[s]),n.length>0?null:/* @__PURE__ */yl.jsx("div",{className:El(cm({interactive:!1}),r),children:t})};function mm({className:e,...t}){/* @__PURE__ */
478
+ return yl.jsx(la,{...t,className:El("hidden not-last:border-b py-1.5 [&:has([role=option])]:block",e)})}function hm({className:e,...t}){/* @__PURE__ */
479
+ return yl.jsx(ca,{...t,className:El("mt-1.5 mb-2 px-3 font-medium text-muted-foreground text-xs",e)})}const pm=Xo();const xm=[{key:"0",text:"Aayla Secura"},{key:"1",text:"Adi Gallia"},{key:"2",text:"Admiral Dodd Rancit"},{key:"3",text:"Admiral Firmus Piett"},{key:"4",text:"Admiral Gial Ackbar"},{key:"5",text:"Admiral Ozzel"},{key:"6",text:"Admiral Raddus"},{key:"7",text:"Admiral Terrinald Screed"},{key:"8",text:"Admiral Trench"},{key:"9",text:"Admiral U.O. Statura"},{key:"10",text:"Agen Kolar"},{key:"11",text:"Agent Kallus"},{key:"12",text:"Aiolin and Morit Astarte"},{key:"13",text:"Aks Moe"},{key:"14",text:"Almec"},{key:"15",text:"Alton Kastle"},{key:"16",text:"Amee"},{key:"17",text:"AP-5"},{key:"18",text:"Armitage Hux"},{key:"19",text:"Artoo"},{key:"20",text:"Arvel Crynyd"},{key:"21",text:"Asajj Ventress"},{key:"22",text:"Aurra Sing"},{key:"23",text:"AZI-3"},{key:"24",text:"Bala-Tik"},{key:"25",text:"Barada"},{key:"26",text:"Bargwill Tomder"},{key:"27",text:"Baron Papanoida"},{key:"28",text:"Barriss Offee"},{key:"29",text:"Baze Malbus"},{key:"30",text:"Bazine Netal"},{key:"31",text:"BB-8"},{key:"32",text:"BB-9E"},{key:"33",text:"Ben Quadinaros"},{key:"34",text:"Berch Teller"},{key:"35",text:"Beru Lars"},{key:"36",text:"Bib Fortuna"},{key:"37",text:"Biggs Darklighter"},{key:"38",text:"Black Krrsantan"},{key:"39",text:"Bo-Katan Kryze"},{key:"40",text:"Boba Fett"},{key:"41",text:"Bobbajo"},{key:"42",text:"Bodhi Rook"},{key:"43",text:"Borvo the Hutt"},{key:"44",text:"Boss Nass"},{key:"45",text:"Bossk"},{key:"46",text:"Breha Antilles-Organa"},{key:"47",text:"Bren Derlin"},{key:"48",text:"Brendol Hux"},{key:"49",text:"BT-1"}],fm=[Qo.configure({options:{triggerPreviousCharPattern:/^$|^[\s"']$/}}).withComponent(function(t){const a=t.element,l=n(),i=o(),c=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{r(!0)},[]),t}(),d=s();/* @__PURE__ */
480
+ return yl.jsx(r,{...t,className:El("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!d&&"cursor-pointer",l&&i&&"ring-2 ring-ring",!0===a.children[0][q.bold]&&"font-bold",!0===a.children[0][q.italic]&&"italic",!0===a.children[0][q.underline]&&"underline"),attributes:{...t.attributes,contentEditable:!1,"data-slate-value":a.value,draggable:!0},children:c&&te?
481
+ /* @__PURE__ */yl.jsxs(yl.Fragment,{children:[t.children,t.prefix,a.value]}):
482
+ /* @__PURE__ */yl.jsxs(yl.Fragment,{children:[t.prefix,a.value,t.children]})})}),Jo.withComponent(function(t){const{editor:s,element:n}=t,[o,a]=e.useState("");/* @__PURE__ */
483
+ return yl.jsxs(r,{...t,as:"span",children:[
484
+ /* @__PURE__ */yl.jsxs(am,{value:o,element:n,setValue:a,showTrigger:!1,trigger:"@",children:[
485
+ /* @__PURE__ */yl.jsx("span",{className:"inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline text-sm ring-ring focus-within:ring-2",children:/* @__PURE__ */yl.jsx(lm,{})}),
486
+ /* @__PURE__ */yl.jsxs(im,{className:"my-1.5",children:[
487
+ /* @__PURE__ */yl.jsx(um,{children:"No results"}),
488
+ /* @__PURE__ */yl.jsx(mm,{children:xm.map(e=>/* @__PURE__ */yl.jsx(dm,{value:e.text,onClick:()=>pm(s,e,o),children:e.text},e.key))})]})]}),t.children]})})],gm=[{group:"AI",items:[{focusEditor:!1,icon:/* @__PURE__ */yl.jsx(Vr,{}),value:"AI",onSelect:e=>{e.getApi(dt).aiChat.show()}}]},{group:"Basic blocks",items:[{icon:/* @__PURE__ */yl.jsx($t,{}),keywords:["paragraph"],label:"Text",value:q.p},{icon:/* @__PURE__ */yl.jsx(Wt,{}),keywords:["title","h1"],label:"Heading 1",value:q.h1},{icon:/* @__PURE__ */yl.jsx(Zt,{}),keywords:["subtitle","h2"],label:"Heading 2",value:q.h2},{icon:/* @__PURE__ */yl.jsx(Kt,{}),keywords:["subtitle","h3"],label:"Heading 3",value:q.h3},{icon:/* @__PURE__ */yl.jsx(Gt,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:q.ul},{icon:/* @__PURE__ */yl.jsx(tr,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:q.ol},{icon:/* @__PURE__ */yl.jsx(Ur,{}),keywords:["checklist","task","checkbox","[]"],label:"To-do list",value:q.listTodo},{icon:/* @__PURE__ */yl.jsx(mt,{}),keywords:["collapsible","expandable"],label:"Toggle",value:q.toggle},{icon:/* @__PURE__ */yl.jsx(qr,{}),keywords:["```"],label:"Code Block",value:q.codeBlock},{icon:/* @__PURE__ */yl.jsx(dr,{}),label:"Table",value:q.table},{icon:/* @__PURE__ */yl.jsx($r,{}),keywords:["citation","blockquote","quote",">"],label:"Blockquote",value:q.blockquote},{description:"Insert a highlighted block.",icon:/* @__PURE__ */yl.jsx(yt,{}),keywords:["note"],label:"Callout",value:q.callout}].map(e=>({...e,onSelect:(e,t)=>{Ed(e,t,{upsert:!0})}}))},{group:"Advanced blocks",items:[{icon:/* @__PURE__ */yl.jsx(Wr,{}),keywords:["toc"],label:"Table of contents",value:q.toc},{icon:/* @__PURE__ */yl.jsx(Zr,{}),label:"3 columns",value:"action_three_columns"},{focusEditor:!1,icon:/* @__PURE__ */yl.jsx(Ir,{}),label:"Equation",value:q.equation},{icon:/* @__PURE__ */yl.jsx(Kr,{}),keywords:["excalidraw"],label:"Excalidraw",value:q.excalidraw}].map(e=>({...e,onSelect:(e,t)=>{Ed(e,t,{upsert:!0})}}))},{group:"Inline",items:[{focusEditor:!0,icon:/* @__PURE__ */yl.jsx(Yr,{}),keywords:["time"],label:"Date",value:q.date},{focusEditor:!1,icon:/* @__PURE__ */yl.jsx(Ir,{}),label:"Inline Equation",value:q.inlineEquation}].map(e=>({...e,onSelect:(e,t)=>{Bd(e,t)}}))}];const bm=[ha.configure({options:{triggerQuery:e=>!e.api.some({match:{type:e.getType(q.codeBlock)}})}}),pa.withComponent(function(e){const{editor:t,element:s}=e;/* @__PURE__ */
489
+ return yl.jsxs(r,{...e,as:"span",children:[
490
+ /* @__PURE__ */yl.jsxs(am,{element:s,trigger:"/",children:[
491
+ /* @__PURE__ */yl.jsx(lm,{}),
492
+ /* @__PURE__ */yl.jsxs(im,{children:[
493
+ /* @__PURE__ */yl.jsx(um,{children:"No results"}),gm.map(({group:e,items:r})=>/* @__PURE__ */yl.jsxs(mm,{children:[
494
+ /* @__PURE__ */yl.jsx(hm,{children:e}),r.map(({focusEditor:r,icon:s,keywords:n,label:o,value:a,onSelect:l})=>/* @__PURE__ */yl.jsxs(dm,{value:a,onClick:()=>l(t,a),label:o,focusEditor:r,group:e,keywords:n,children:[
495
+ /* @__PURE__ */yl.jsx("div",{className:"mr-2 text-muted-foreground",children:s}),o??a]},a))]},e))]})]}),e.children]})})],jm=tt(El("bg-emerald-100 text-emerald-700 no-underline transition-colors duration-200"),{defaultVariants:{insertActive:!1,remove:!1,removeActive:!1},variants:{insertActive:{false:"",true:"bg-emerald-200/80"},remove:{false:"",true:"bg-red-100 text-red-700"},removeActive:{false:"",true:"bg-red-200/80 no-underline"}}});function vm({children:t,suggestionData:r}){const{isLineBreak:s,type:n}=r,o="remove"===n,a="insert"===n,l=d(Vm,"activeId"),c=d(Vm,"hoverId"),u=l===r.id,m=c===r.id,h=e.useRef(null),{setOption:p}=i(Vm);/* @__PURE__ */
496
+ return yl.jsx(yl.Fragment,{children:s?/* @__PURE__ */yl.jsxs(yl.Fragment,{children:[t,
497
+ /* @__PURE__ */yl.jsx("span",{ref:h,className:El("absolute text-justify",jm({insertActive:a&&(u||m),remove:o,removeActive:(u||m)&&o})),style:{bottom:3.5,height:21},contentEditable:!1,children:/* @__PURE__ */yl.jsx(Tr,{className:"mt-0.5 size-4"})})]}):/* @__PURE__ */yl.jsx("div",{className:El(jm({insertActive:a&&(u||m),remove:o,removeActive:(u||m)&&o})),onMouseEnter:()=>p("hoverId",r.id),onMouseLeave:()=>p("hoverId",null),"data-block-suggestion":"true",children:t})})}function ym({className:e,...t}){/* @__PURE__ */
498
+ return yl.jsx(ka.Root,{"data-slot":"avatar",className:El("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function wm({className:e,...t}){/* @__PURE__ */
499
+ return yl.jsx(ka.Image,{"data-slot":"avatar-image",className:El("aspect-square size-full",e),...t})}function km({className:e,...t}){/* @__PURE__ */
500
+ return yl.jsx(ka.Fallback,{"data-slot":"avatar-fallback",className:El("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const Nm=tt("relative w-full cursor-text select-text overflow-y-auto caret-primary selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15",{defaultVariants:{variant:"default"},variants:{variant:{comment:El("flex flex-wrap justify-between gap-1 px-1 py-0.5 text-sm","rounded-md border-[1.5px] border-transparent bg-transparent","has-[[data-slate-editor]:focus]:border-brand/50 has-[[data-slate-editor]:focus]:ring-2 has-[[data-slate-editor]:focus]:ring-brand/30","has-aria-disabled:border-input has-aria-disabled:bg-muted"),default:"h-full",demo:"h-[650px]",select:El("group rounded-md border border-input ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2","has-data-readonly:w-fit has-data-readonly:cursor-default has-data-readonly:border-transparent has-data-readonly:focus-within:[box-shadow:none]")}}});function Cm({className:e,variant:t,...r}){/* @__PURE__ */
501
+ return yl.jsx(I,{className:El("ignore-click-outside/toolbar",Nm({variant:t}),e),...r})}const _m=tt(El("group/editor","relative w-full cursor-text select-text overflow-x-hidden whitespace-pre-wrap break-words","rounded-md ring-offset-background focus-visible:outline-none","**:data-slate-placeholder:!top-1/2 **:data-slate-placeholder:-translate-y-1/2 placeholder:text-muted-foreground/80 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!","[&_strong]:font-bold"),{defaultVariants:{variant:"default"},variants:{disabled:{true:"cursor-not-allowed opacity-50"},focused:{true:"ring-2 ring-ring ring-offset-2"},variant:{ai:"w-full px-0 text-base md:text-sm",aiChat:"max-h-[min(70vh,320px)] w-full max-w-[700px] overflow-y-auto px-3 py-2 text-base md:text-sm",comment:El("rounded-none border-none bg-transparent text-sm"),default:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",demo:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",fullWidth:"size-full px-16 pt-4 pb-72 text-base sm:px-24",none:"",select:"px-3 py-2 text-base data-readonly:w-fit"}}}),zm=({className:e,disabled:t,focused:r,variant:s,ref:n,...o})=>/* @__PURE__ */yl.jsx(T,{ref:n,className:El(_m({disabled:t,focused:r,variant:s}),e),disabled:t,disableDefaultStyles:!0,...o});function Sm({className:e,variant:t,...r}){/* @__PURE__ */
502
+ return yl.jsx(D,{...r,className:El(_m({variant:t}),e)})}function Em(t){const{comment:r,discussionLength:s,documentContent:n,editingId:o,index:a,setEditingId:l,showDocumentContent:c=!1,onEditorClick:u}=t,h=m(),p=d(Hm,"user",r.userId),x=d(Hm,"currentUserId"),{tf:f}=i(wa),g=x===r.userId,b=r.contentRich,j=Am({id:r.id,value:b},[b]),v=()=>{(async e=>{const t=h.getOption(Hm,"discussions").map(t=>{if(t.id===e.discussionId){const r=t.comments.map(t=>t.id===e.id?{...t,contentRich:e.contentRich,isEdited:!0,updatedAt:/* @__PURE__ */new Date}:t);return{...t,comments:r}}return t});h.setOption(Hm,"discussions",t)})({id:r.id,contentRich:j.children,discussionId:r.discussionId}),l(null)},y=0===a,w=a===s-1,k=o&&o===r.id,[N,C]=e.useState(!1),[_,z]=e.useState(!1);/* @__PURE__ */
503
+ return yl.jsxs("div",{onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[
504
+ /* @__PURE__ */yl.jsxs("div",{className:"relative flex items-center",children:[
505
+ /* @__PURE__ */yl.jsxs(ym,{className:"size-5",children:[
506
+ /* @__PURE__ */yl.jsx(wm,{alt:p?.name,src:p?.avatarUrl}),
507
+ /* @__PURE__ */yl.jsx(km,{children:p?.name?.[0]})]}),
508
+ /* @__PURE__ */yl.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:p?.name}),
509
+ /* @__PURE__ */yl.jsxs("div",{className:"text-muted-foreground/80 text-xs leading-none",children:[
510
+ /* @__PURE__ */yl.jsx("span",{className:"mr-1",children:Tm(new Date(r.createdAt))}),r.isEdited&&/* @__PURE__ */yl.jsx("span",{children:"(edited)"})]}),g&&(N||_)&&/* @__PURE__ */yl.jsxs("div",{className:"absolute top-0 right-0 flex space-x-1",children:[0===a&&/* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"h-6 p-1 text-muted-foreground",onClick:()=>{(async e=>{const t=h.getOption(Hm,"discussions").map(t=>t.id===e?{...t,isResolved:!0}:t);h.setOption(Hm,"discussions",t)})(r.discussionId),f.comment.unsetMark({id:r.discussionId})},type:"button",children:/* @__PURE__ */yl.jsx(pt,{className:"size-4"})}),
511
+ /* @__PURE__ */yl.jsx(Bm,{onCloseAutoFocus:()=>{setTimeout(()=>{j.tf.focus({edge:"endEditor"})},0)},onRemoveComment:()=>{1===s&&(f.comment.unsetMark({id:r.discussionId}),(async e=>{const t=h.getOption(Hm,"discussions").filter(t=>t.id!==e);h.setOption(Hm,"discussions",t)})(r.discussionId))},comment:r,dropdownOpen:_,setDropdownOpen:z,setEditingId:l})]})]}),y&&c&&/* @__PURE__ */yl.jsxs("div",{className:"relative mt-1 flex pl-[32px] text-sm text-subtle-foreground",children:[s>1&&/* @__PURE__ */yl.jsx("div",{className:"absolute top-[5px] left-3 h-full w-0.5 shrink-0 bg-muted"}),
512
+ /* @__PURE__ */yl.jsx("div",{className:"my-px w-0.5 shrink-0 bg-highlight"}),n&&/* @__PURE__ */yl.jsx("div",{className:"ml-2",children:n})]}),
513
+ /* @__PURE__ */yl.jsxs("div",{className:"relative my-1 pl-[26px]",children:[!w&&/* @__PURE__ */yl.jsx("div",{className:"absolute top-0 left-3 h-full w-0.5 shrink-0 bg-muted"}),
514
+ /* @__PURE__ */yl.jsx(O,{readOnly:!k,editor:j,children:/* @__PURE__ */yl.jsxs(Cm,{variant:"comment",children:[
515
+ /* @__PURE__ */yl.jsx(zm,{variant:"comment",className:"w-auto grow",onClick:()=>u?.()}),k&&/* @__PURE__ */yl.jsxs("div",{className:"ml-auto flex shrink-0 gap-1",children:[
516
+ /* @__PURE__ */yl.jsx($l,{size:"icon",variant:"ghost",className:"size-[28px]",onClick:e=>{e.stopPropagation(),l(null),j.tf.replaceNodes(b,{at:[],children:!0})},children:/* @__PURE__ */yl.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-primary/40",children:/* @__PURE__ */yl.jsx(gt,{className:"size-3 stroke-[3px] text-background"})})}),
517
+ /* @__PURE__ */yl.jsx($l,{size:"icon",variant:"ghost",onClick:e=>{e.stopPropagation(),v()},children:/* @__PURE__ */yl.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-brand",children:/* @__PURE__ */yl.jsx(pt,{className:"size-3 stroke-[3px] text-background"})})})]})]})})]})]})}function Bm(t){const{comment:r,dropdownOpen:s,setDropdownOpen:n,setEditingId:o,onCloseAutoFocus:a,onRemoveComment:l}=t,i=m(),c=e.useRef(!1),d=e.useCallback(()=>{if(!r.id)return alert("You are operating too quickly, please try again later.");const e=i.getOption(Hm,"discussions").map(e=>{if(e.id!==r.discussionId)return e;const t=e.comments.findIndex(e=>e.id===r.id);return-1===t?e:{...e,comments:[...e.comments.slice(0,t),...e.comments.slice(t+1)]}});i.setOption(Hm,"discussions",e),l?.()},[r.discussionId,r.id,i,l]),u=e.useCallback(()=>{if(c.current=!0,!r.id)return alert("You are operating too quickly, please try again later.");o(r.id)},[r.id,o]);/* @__PURE__ */
518
+ return yl.jsxs(Gl,{open:s,onOpenChange:n,modal:!1,children:[
519
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,onClick:e=>e.stopPropagation(),children:/* @__PURE__ */yl.jsx($l,{variant:"ghost",className:El("h-6 p-1 text-muted-foreground"),children:/* @__PURE__ */yl.jsx(lr,{className:"size-4"})})}),
520
+ /* @__PURE__ */yl.jsx(Xl,{className:"w-48",onCloseAutoFocus:e=>(c.current&&(a?.(),c.current=!1),e.preventDefault()),children:/* @__PURE__ */yl.jsxs(ei,{children:[
521
+ /* @__PURE__ */yl.jsxs(ti,{onClick:u,children:[
522
+ /* @__PURE__ */yl.jsx(Qr,{className:"size-4"}),"Edit comment"]}),
523
+ /* @__PURE__ */yl.jsxs(ti,{onClick:d,children:[
524
+ /* @__PURE__ */yl.jsx(Jr,{className:"size-4"}),"Delete comment"]})]})})]})}zm.displayName="Editor",Sm.displayName="EditorView";const Am=(e={},t=[])=>F({id:"comment",plugins:Al,value:[],...e},t);function Im({autoFocus:t=!1,className:r,discussionId:s,focusOnMount:n=!1}){const o=d(Hm,"discussions"),a=m(),l=ya(),i=s??l,c=d(Hm,"currentUser"),[u,h]=e.useState(),p=e.useMemo(()=>u?Z.string({children:u,type:q.p}):"",[u]),x=Am();e.useEffect(()=>{x&&n&&x.tf.focus()},[x,n]);const f=e.useCallback(async()=>{if(!u)return;if(x.tf.reset(),i){const e=o.find(e=>e.id===i);if(!e){const e={id:i,comments:[{id:re(),contentRich:u,createdAt:/* @__PURE__ */new Date,discussionId:i,isEdited:!1,userId:a.getOption(Hm,"currentUserId")}],createdAt:/* @__PURE__ */new Date,isResolved:!1,userId:a.getOption(Hm,"currentUserId")};return void a.setOption(Hm,"discussions",[...o,e])}const t={id:re(),contentRich:u,createdAt:/* @__PURE__ */new Date,discussionId:i,isEdited:!1,userId:a.getOption(Hm,"currentUserId")},r={...e,comments:[...e.comments,t]},s=o.filter(e=>e.id!==i).concat(r);return void a.setOption(Hm,"discussions",s)}const e=a.getApi(wa).comment.nodes({at:[],isDraft:!0});if(0===e.length)return;const t=e.map(([e])=>e.text).join(""),r=re(),s={id:r,comments:[{id:re(),contentRich:u,createdAt:/* @__PURE__ */new Date,discussionId:r,isEdited:!1,userId:a.getOption(Hm,"currentUserId")}],createdAt:/* @__PURE__ */new Date,documentContent:t,isResolved:!1,userId:a.getOption(Hm,"currentUserId")};a.setOption(Hm,"discussions",[...o,s]);const n=s.id;e.forEach(([,e])=>{a.tf.setNodes({[qs(n)]:!0},{at:e,split:!0}),a.tf.unsetNodes([Us()],{at:e})})},[u,x.tf,i,a,o]);/* @__PURE__ */
525
+ return yl.jsxs("div",{className:El("flex w-full",r),children:[
526
+ /* @__PURE__ */yl.jsx("div",{className:"mt-2 mr-1 shrink-0",children:/* @__PURE__ */yl.jsxs(ym,{className:"size-5",children:[
527
+ /* @__PURE__ */yl.jsx(wm,{alt:c?.name,src:c?.avatarUrl}),
528
+ /* @__PURE__ */yl.jsx(km,{children:c?.name?.[0]})]})}),
529
+ /* @__PURE__ */yl.jsx("div",{className:"relative flex grow gap-2",children:/* @__PURE__ */yl.jsx(O,{onChange:({value:e})=>{h(e)},editor:x,children:/* @__PURE__ */yl.jsxs(Cm,{variant:"comment",children:[
530
+ /* @__PURE__ */yl.jsx(zm,{variant:"comment",className:"min-h-[25px] grow pt-0.5 pr-8",onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),f())},placeholder:"Reply...",autoComplete:"off",autoFocus:t}),
531
+ /* @__PURE__ */yl.jsx($l,{size:"icon",variant:"ghost",className:"absolute right-0.5 bottom-0.5 ml-auto size-6 shrink-0",disabled:0===p.trim().length,onClick:e=>{e.stopPropagation(),f()},children:/* @__PURE__ */yl.jsx("div",{className:"flex size-6 items-center justify-center rounded-full",children:/* @__PURE__ */yl.jsx(Gr,{})})})]})})})]})}const Tm=e=>{const t=/* @__PURE__ */new Date,r=Na(t,e),s=Ca(t,e),n=_a(t,e);return r<60?`${r}m`:s<24?`${s}h`:n<2?`${n}d`:za(e,"MM/dd/yyyy")},Dm="__block__",Om={[q.audio]:()=>"Audio",[q.blockquote]:()=>"Blockquote",[q.callout]:()=>"Callout",[q.codeBlock]:()=>"Code Block",[q.column]:()=>"Column",[q.equation]:()=>"Equation",[q.file]:()=>"File",[q.h1]:()=>"Heading 1",[q.h2]:()=>"Heading 2",[q.h3]:()=>"Heading 3",[q.h4]:()=>"Heading 4",[q.h5]:()=>"Heading 5",[q.h6]:()=>"Heading 6",[q.hr]:()=>"Horizontal Rule",[q.img]:()=>"Image",[q.mediaEmbed]:()=>"Media",[q.p]:e=>e?.[q.listType]===q.listTodo?"Todo List":e?.[q.listType]===q.ol?"Ordered List":e?.[q.listType]===q.ul?"List":"Paragraph",[q.table]:()=>"Table",[q.toc]:()=>"Table of Contents",[q.toggle]:()=>"Toggle",[q.video]:()=>"Video"};function Fm({idx:t,isLast:r,suggestion:s}){const{api:n,editor:o}=i(so),a=d(Hm,"user",s.userId),[l,c]=e.useState(!1),u=e=>e===Dm?["line breaks"]:e.split(Dm).filter(Boolean),[m,h]=e.useState(null);/* @__PURE__ */
532
+ return yl.jsxs("div",{className:"relative",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[
533
+ /* @__PURE__ */yl.jsxs("div",{className:"flex flex-col p-4",children:[
534
+ /* @__PURE__ */yl.jsxs("div",{className:"relative flex items-center",children:[
535
+ /* @__PURE__ */yl.jsxs(ym,{className:"size-5",children:[
536
+ /* @__PURE__ */yl.jsx(wm,{alt:a?.name,src:a?.avatarUrl}),
537
+ /* @__PURE__ */yl.jsx(km,{children:a?.name?.[0]})]}),
538
+ /* @__PURE__ */yl.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:a?.name}),
539
+ /* @__PURE__ */yl.jsx("div",{className:"text-muted-foreground/80 text-xs leading-none",children:/* @__PURE__ */yl.jsx("span",{className:"mr-1",children:Tm(new Date(s.createdAt))})})]}),
540
+ /* @__PURE__ */yl.jsx("div",{className:"relative mt-1 mb-4 pl-[32px]",children:/* @__PURE__ */yl.jsxs("div",{className:"flex flex-col gap-2",children:["remove"===s.type&&u(s.text).map((e,t)=>/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-2",children:[
541
+ /* @__PURE__ */yl.jsx("span",{className:"text-muted-foreground text-sm",children:"Delete:"}),
542
+ /* @__PURE__ */yl.jsx("span",{className:"text-sm",children:e},t)]},t)),"insert"===s.type&&u(s.newText).map((e,t)=>/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-2",children:[
543
+ /* @__PURE__ */yl.jsx("span",{className:"text-muted-foreground text-sm",children:"Add:"}),
544
+ /* @__PURE__ */yl.jsx("span",{className:"text-sm",children:e||"line breaks"},t)]},t)),"replace"===s.type&&/* @__PURE__ */yl.jsxs("div",{className:"flex flex-col gap-2",children:[u(s.newText).map((t,r)=>/* @__PURE__ */yl.jsx(e.Fragment,{children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-start gap-2 text-brand/80",children:[
545
+ /* @__PURE__ */yl.jsx("span",{className:"text-sm",children:"with:"}),
546
+ /* @__PURE__ */yl.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r)),u(s.text).map((t,r)=>/* @__PURE__ */yl.jsx(e.Fragment,{children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-start gap-2",children:[
547
+ /* @__PURE__ */yl.jsx("span",{className:"text-muted-foreground text-sm",children:0===r?"Replace:":"Delete:"}),
548
+ /* @__PURE__ */yl.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r))]}),"update"===s.type&&/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-2",children:[
549
+ /* @__PURE__ */yl.jsxs("span",{className:"text-muted-foreground text-sm",children:[Object.keys(s.properties).map(e=>/* @__PURE__ */yl.jsxs("span",{children:["Un",e]},e)),Object.keys(s.newProperties).map(e=>/* @__PURE__ */yl.jsx("span",{children:e.charAt(0).toUpperCase()+e.slice(1)},e))]}),
550
+ /* @__PURE__ */yl.jsx("span",{className:"text-sm",children:s.newText})]})]})}),s.comments.map((e,t)=>/* @__PURE__ */yl.jsx(Em,{comment:e,discussionLength:s.comments.length,documentContent:"__suggestion__",editingId:m,index:t,setEditingId:h},e.id??t)),l&&/* @__PURE__ */yl.jsxs("div",{className:"absolute top-4 right-4 flex gap-2",children:[
551
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{ga(o,e)});var e},children:/* @__PURE__ */yl.jsx(pt,{className:"size-4"})}),
552
+ /* @__PURE__ */yl.jsx($l,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{ba(o,e)});var e},children:/* @__PURE__ */yl.jsx(gt,{className:"size-4"})})]}),
553
+ /* @__PURE__ */yl.jsx(Im,{discussionId:s.suggestionId})]}),!r&&/* @__PURE__ */yl.jsx("div",{className:"h-px w-full bg-muted"})]},`${s.suggestionId}-${t}`)}const Rm=({blockPath:t,children:r,commentNodes:s,draftCommentNode:n,suggestionNodes:o})=>{const a=m(),l=((t,r)=>{const s=d(Hm,"discussions"),{api:n,editor:o,getOption:a,setOption:l}=i(Vm);return t.forEach(([e])=>{const t=n.suggestion.nodeId(e),s=a("uniquePathMap");if(!t)return;const o=s.get(t);if(K.isPath(o)){const e=n.suggestion.node({id:t,at:o,isText:!0}),a=n.node(o);let i=null;a&&se.isElement(a[0])&&(i=n.suggestion.nodeId(a[0])??null),e||i===t||l("uniquePathMap",new Map(s).set(t,r))}else l("uniquePathMap",new Map(s).set(t,r))}),e.useMemo(()=>{const e=a("uniquePathMap");if(0===t.length)return[];const l=new Set(t.flatMap(([e])=>{if(ne.isText(e)){const t=n.suggestion.dataList(e);return t.some(e=>"update"===e.type)?t.filter(e=>"update"===e.type).map(e=>e.id):n.suggestion.nodeId(e)??[]}return se.isElement(e)?n.suggestion.nodeId(e)??[]:[]}).filter(Boolean)),i=[];return l.forEach(t=>{if(!t)return;const a=e.get(t);if(!a||!K.isPath(a))return;if(!K.equals(a,r))return;const l=[...o.api.nodes({at:[],mode:"all",match:e=>e[q.suggestion]&&e[xa(t)]||n.suggestion.nodeId(e)===t})];l.sort(([,e],[,t])=>K.isChild(e,t)?-1:1);let c="",d="",u={},m={};if(l.forEach(([e])=>{if(ne.isText(e))n.suggestion.dataList(e).forEach(r=>{if(r.id===t)switch(r.type){case"insert":c+=e.text;break;case"remove":d+=e.text;break;case"update":u={...u,...r.properties},m={...m,...r.newProperties},c+=e.text}});else{const r=n.suggestion.isBlockSuggestion(e)?e.suggestion:void 0;r?.id===fa(t)&&("insert"===r.type?c+=r.isLineBreak?Dm:Dm+Om[e.type](e):"remove"===r.type&&(d+=r.isLineBreak?Dm:Dm+Om[e.type](e)))}}),0===l.length)return;const h=n.suggestion.suggestionData(l[0][0]);if(!h)return;const p=s.find(e=>e.id===t)?.comments||[],x=new Date(h.createdAt),f=xa(t);"update"===h.type?i.push({comments:p,createdAt:x,keyId:f,newProperties:m,newText:c,properties:u,suggestionId:fa(t),type:"update",userId:h.userId}):c.length>0&&d.length>0?i.push({comments:p,createdAt:x,keyId:f,newText:c,suggestionId:fa(t),text:d,type:"replace",userId:h.userId}):c.length>0?i.push({comments:p,createdAt:x,keyId:f,newText:c,suggestionId:fa(t),type:"insert",userId:h.userId}):d.length>0&&i.push({comments:p,createdAt:x,keyId:f,suggestionId:fa(t),text:d,type:"remove",userId:h.userId})}),i},[n.suggestion,r,s,o.api,a,t])})(o,t),c=Lm(s,t),u=l.length,h=c.length,p=u+h,x=d(Vm,"activeId"),f=x&&l.find(e=>e.suggestionId===x),g=d(dc,"commentingBlock"),b=d(dc,"activeId"),j=b===Us(),v=b&&c.find(e=>e.id===b),y=!f&&!v,w=[...c,...l].sort((e,t)=>e.createdAt.getTime()-t.createdAt.getTime()),k=c.some(e=>e.id===b)||l.some(e=>e.suggestionId===x),[N,C]=e.useState(k),_=!!g&&K.equals(t,g),z=N||k||j&&!!n&&_,S=e.useMemo(()=>{let e;return f&&(e=o.find(([e])=>ne.isText(e)&&a.getApi(so).suggestion.nodeId(e)===f.suggestionId)),b&&(e=b===Us()?n:s.find(([e])=>a.getApi(dc).comment.nodeId(e)===b)),e?a.api.toDOMNode(e[0]):null},[z,f,b,a.api,o,n,s]);return u+c.length!==0||n?/* @__PURE__ */yl.jsx("div",{className:"flex w-full justify-between",children:/* @__PURE__ */yl.jsxs($i,{open:z,onOpenChange:e=>{!e&&j&&n&&a.tf.unsetNodes(Us(),{at:[],mode:"lowest",match:e=>e[Us()]}),C(e)},children:[
554
+ /* @__PURE__ */yl.jsx("div",{className:"w-full",children:r}),S&&/* @__PURE__ */yl.jsx(Ki,{asChild:!0,className:"w-full",virtualRef:{current:S}}),
555
+ /* @__PURE__ */yl.jsx(Zi,{className:"max-h-[min(50dvh,calc(-24px+var(--radix-popper-available-height)))] w-[380px] min-w-[130px] max-w-[calc(100vw-24px)] overflow-y-auto p-0 data-[state=closed]:opacity-0",onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"bottom",children:j?/* @__PURE__ */yl.jsx(Im,{className:"p-4",focusOnMount:!0}):y?w.map((e,t)=>"suggestionId"in e?/* @__PURE__ */yl.jsx(Fm,{idx:t,isLast:t===w.length-1,suggestion:e},e.suggestionId):/* @__PURE__ */yl.jsx(Mm,{discussion:e,isLast:t===w.length-1},e.id)):/* @__PURE__ */yl.jsxs(yl.Fragment,{children:[f&&/* @__PURE__ */yl.jsx(Fm,{idx:0,isLast:!0,suggestion:f},f.suggestionId),v&&/* @__PURE__ */yl.jsx(Mm,{discussion:v,isLast:!0})]})}),p>0&&/* @__PURE__ */yl.jsx("div",{className:"relative left-0 size-0 select-none",children:/* @__PURE__ */yl.jsx(Wi,{asChild:!0,children:/* @__PURE__ */yl.jsxs($l,{variant:"ghost",className:"!px-1.5 mt-1 ml-1 flex h-6 gap-1 py-0 text-muted-foreground/80 hover:text-muted-foreground/80 data-[active=true]:bg-muted","data-active":z,contentEditable:!1,children:[u>0&&0===h&&/* @__PURE__ */yl.jsx(Xr,{className:"size-4 shrink-0"}),0===u&&h>0&&/* @__PURE__ */yl.jsx(es,{className:"size-4 shrink-0"}),u>0&&h>0&&/* @__PURE__ */yl.jsx(ts,{className:"size-4 shrink-0"}),
556
+ /* @__PURE__ */yl.jsx("span",{className:"font-semibold text-xs",children:p})]})})})]})}):/* @__PURE__ */yl.jsx("div",{className:"w-full",children:r})};function Mm({discussion:t,isLast:r}){const[s,n]=e.useState(null);/* @__PURE__ */
557
+ return yl.jsxs(e.Fragment,{children:[
558
+ /* @__PURE__ */yl.jsxs("div",{className:"p-4",children:[t.comments.map((e,r)=>/* @__PURE__ */yl.jsx(Em,{comment:e,discussionLength:t.comments.length,documentContent:t?.documentContent,editingId:s,index:r,setEditingId:n,showDocumentContent:!0},e.id??r)),
559
+ /* @__PURE__ */yl.jsx(Im,{discussionId:t.id})]}),!r&&/* @__PURE__ */yl.jsx("div",{className:"h-px w-full bg-muted"})]},t.id)}const Lm=(e,t)=>{const{api:r,getOption:s,setOption:n}=i(dc),o=d(Hm,"discussions");e.forEach(([e])=>{const o=r.comment.nodeId(e),a=s("uniquePathMap");if(!o)return;const l=a.get(o);if(K.isPath(l)){return r.comment.node({id:o,at:l})?void 0:void n("uniquePathMap",new Map(a).set(o,t))}n("uniquePathMap",new Map(a).set(o,t))});const a=new Set(e.map(([e])=>r.comment.nodeId(e)).filter(Boolean));return o.map(e=>({...e,createdAt:new Date(e.createdAt)})).filter(e=>{const n=s("uniquePathMap").get(e.id);return!!n&&(!!K.equals(n,t)&&(r.comment.has({id:e.id})&&a.has(e.id)&&!e.isResolved))})},Pm=e=>`https://api.dicebear.com/9.x/glass/svg?seed=${e}`,Hm=N({key:"discussion",options:{currentUserId:"alice",discussions:[{id:"discussion1",comments:[{id:"comment1",contentRich:[{children:[{text:"Comments are a great way to provide feedback and discuss changes."}],type:"p"}],createdAt:new Date(Date.now()-6e5),discussionId:"discussion1",isEdited:!1,userId:"charlie"},{id:"comment2",contentRich:[{children:[{text:"Agreed! The link to the docs makes it easy to learn more."}],type:"p"}],createdAt:new Date(Date.now()-5e5),discussionId:"discussion1",isEdited:!1,userId:"bob"}],createdAt:/* @__PURE__ */new Date,documentContent:"comments",isResolved:!1,userId:"charlie"},{id:"discussion2",comments:[{id:"comment1",contentRich:[{children:[{text:"Nice demonstration of overlapping annotations with both comments and suggestions!"}],type:"p"}],createdAt:new Date(Date.now()-3e5),discussionId:"discussion2",isEdited:!1,userId:"bob"},{id:"comment2",contentRich:[{children:[{text:"This helps users understand how powerful the editor can be."}],type:"p"}],createdAt:new Date(Date.now()-2e5),discussionId:"discussion2",isEdited:!1,userId:"charlie"}],createdAt:/* @__PURE__ */new Date,documentContent:"overlapping",isResolved:!1,userId:"bob"}],users:{alice:{id:"alice",avatarUrl:Pm("alice6"),name:"Alice"},bob:{id:"bob",avatarUrl:Pm("bob4"),name:"Bob"},charlie:{id:"charlie",avatarUrl:Pm("charlie2"),name:"Charlie"}}}}).configure({render:{aboveNodes:e=>{const{editor:t,element:r}=e,s=t.getApi(wa).comment,n=t.api.findPath(r);if(!n||n.length>1)return;const o=s.node({at:n,isDraft:!0}),a=[...s.nodes({at:n})],l=[...t.getApi(so).suggestion.nodes({at:n})].filter(([e])=>!e[ja()]);return 0!==a.length||0!==l.length||o?e=>/* @__PURE__ */yl.jsx(Rm,{blockPath:n,commentNodes:a,draftCommentNode:o,suggestionNodes:l,...e}):void 0}}}).extendSelectors(({getOption:e})=>({currentUser:()=>e("users")[e("currentUserId")],user:t=>e("users")[t]})),Vm=b(va,({editor:e})=>({options:{activeId:null,currentUserId:e.getOption(Hm,"currentUserId"),hoverId:null,uniquePathMap:/* @__PURE__ */new Map}})).configure({handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a="true"===n.dataset.blockSuggestion,l=()=>{r("activeId",null),o=!0};for(Y(n)||a||l();n.parentElement&&!oe(n.parentElement);){const t="true"===n.dataset.blockSuggestion;if(n.classList.contains(`slate-${s}`)||t){const s=e.suggestion.node({isText:!t});if(!s){l();break}const n=e.suggestion.nodeId(s[0]);r("activeId",n??null),o=!0;break}n=n.parentElement}o||l()}},render:{belowNodes:({api:e,element:t})=>{if(!e.suggestion.isBlockSuggestion(t))return;const r=t.suggestion;return function({children:e}){/* @__PURE__ */
560
+ return yl.jsx(vm,{suggestionData:r,children:e})}},node:function(e){const{api:t,setOption:r}=i(Vm),s=e.leaf,n=t.suggestion.nodeId(s)??"",o=d(Vm,"activeId"),a=d(Vm,"hoverId"),c=t.suggestion.dataList(s),u=c.some(e=>"remove"===e.type),m=c.some(e=>e.id===o),h=c.some(e=>e.id===a),p={delete:"del",insert:"ins",update:"span"}[u?"delete":"insert"];/* @__PURE__ */
561
+ return yl.jsx(l,{...e,as:p,className:El(jm({insertActive:m||h,remove:u,removeActive:(m||h)&&u})),attributes:{...e.attributes,onMouseEnter:()=>r("hoverId",n),onMouseLeave:()=>r("hoverId",null)},children:e.children})}}}),Um=[Vm];function qm(e){/* @__PURE__ */
562
+ return yl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
563
+ /* @__PURE__ */yl.jsx("title",{children:"Border All"}),
564
+ /* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",fill:"currentColor",fillRule:"evenodd"}),
565
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
566
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
567
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
568
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
569
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
570
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
571
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
572
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
573
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"})]})}function $m(e){/* @__PURE__ */
574
+ return yl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
575
+ /* @__PURE__ */yl.jsx("title",{children:"Border Bottom"}),
576
+ /* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M1 13.25L14 13.25V14.75L1 14.75V13.25Z",fill:"currentColor",fillRule:"evenodd"}),
577
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
578
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5"}),
579
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
580
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3"}),
581
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
582
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1"}),
583
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7"}),
584
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1"}),
585
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
586
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1"}),
587
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
588
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1"}),
589
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
590
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1"}),
591
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
592
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1"}),
593
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
594
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9"}),
595
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"}),
596
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11"}),
597
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5"}),
598
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3"}),
599
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7"}),
600
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1"}),
601
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9"}),
602
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11"})]})}function Wm(e){/* @__PURE__ */
603
+ return yl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
604
+ /* @__PURE__ */yl.jsx("title",{children:"Border Left"}),
605
+ /* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M1.75 1L1.75 14L0.249999 14L0.25 1L1.75 1Z",fill:"currentColor",fillRule:"evenodd"}),
606
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 7)",width:"1",x:"10",y:"7"}),
607
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 13)",width:"1",x:"10",y:"13"}),
608
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 7)",width:"1",x:"12",y:"7"}),
609
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 13)",width:"1",x:"12",y:"13"}),
610
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 7)",width:"1",x:"8",y:"7"}),
611
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 7)",width:"1",x:"14",y:"7"}),
612
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 13)",width:"1",x:"8",y:"13"}),
613
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 13)",width:"1",x:"14",y:"13"}),
614
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 5)",width:"1",x:"8",y:"5"}),
615
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 5)",width:"1",x:"14",y:"5"}),
616
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 3)",width:"1",x:"8",y:"3"}),
617
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 3)",width:"1",x:"14",y:"3"}),
618
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 9)",width:"1",x:"8",y:"9"}),
619
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 9)",width:"1",x:"14",y:"9"}),
620
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 11)",width:"1",x:"8",y:"11"}),
621
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 11)",width:"1",x:"14",y:"11"}),
622
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 7)",width:"1",x:"6",y:"7"}),
623
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 13)",width:"1",x:"6",y:"13"}),
624
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 7)",width:"1",x:"4",y:"7"}),
625
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 13)",width:"1",x:"4",y:"13"}),
626
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 1)",width:"1",x:"10",y:"1"}),
627
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 1)",width:"1",x:"12",y:"1"}),
628
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 1)",width:"1",x:"8",y:"1"}),
629
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 1)",width:"1",x:"14",y:"1"}),
630
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 1)",width:"1",x:"6",y:"1"}),
631
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 1)",width:"1",x:"4",y:"1"})]})}function Zm(e){/* @__PURE__ */
632
+ return yl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
633
+ /* @__PURE__ */yl.jsx("title",{children:"Border None"}),
634
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5.025"}),
635
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5.025"}),
636
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3.025"}),
637
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3.025"}),
638
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7.025"}),
639
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"13.025"}),
640
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1.025"}),
641
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7.025"}),
642
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"13.025"}),
643
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1.025"}),
644
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7.025"}),
645
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"13.025"}),
646
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1.025"}),
647
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7.025"}),
648
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"13.025"}),
649
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1.025"}),
650
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7.025"}),
651
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"13.025"}),
652
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1.025"}),
653
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7.025"}),
654
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"13.025"}),
655
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1.025"}),
656
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9.025"}),
657
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9.025"}),
658
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11.025"}),
659
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11.025"}),
660
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5.025"}),
661
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3.025"}),
662
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7.025"}),
663
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"13.025"}),
664
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1.025"}),
665
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9.025"}),
666
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11.025"})]})}function Km(e){/* @__PURE__ */
667
+ return yl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
668
+ /* @__PURE__ */yl.jsx("title",{children:"Border Right"}),
669
+ /* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M13.25 1L13.25 14L14.75 14L14.75 1L13.25 1Z",fill:"currentColor",fillRule:"evenodd"}),
670
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 7)",width:"1"}),
671
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 13)",width:"1"}),
672
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 7)",width:"1"}),
673
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 13)",width:"1"}),
674
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 7)",width:"1"}),
675
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 7)",width:"1"}),
676
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 13)",width:"1"}),
677
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 13)",width:"1"}),
678
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 5)",width:"1"}),
679
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 5)",width:"1"}),
680
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 3)",width:"1"}),
681
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 3)",width:"1"}),
682
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 9)",width:"1"}),
683
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 9)",width:"1"}),
684
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 11)",width:"1"}),
685
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 11)",width:"1"}),
686
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 7)",width:"1"}),
687
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 13)",width:"1"}),
688
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 7)",width:"1"}),
689
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 13)",width:"1"}),
690
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 1)",width:"1"}),
691
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 1)",width:"1"}),
692
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 1)",width:"1"}),
693
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 1)",width:"1"}),
694
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 1)",width:"1"}),
695
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 1)",width:"1"})]})}function Ym(e){/* @__PURE__ */
696
+ return yl.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
697
+ /* @__PURE__ */yl.jsx("title",{children:"Border Top"}),
698
+ /* @__PURE__ */yl.jsx("path",{clipRule:"evenodd",d:"M14 1.75L1 1.75L1 0.249999L14 0.25L14 1.75Z",fill:"currentColor",fillRule:"evenodd"}),
699
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 10)",width:"1",x:"8",y:"10"}),
700
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 10)",width:"1",x:"2",y:"10"}),
701
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 12)",width:"1",x:"8",y:"12"}),
702
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 12)",width:"1",x:"2",y:"12"}),
703
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 8)",width:"1",x:"8",y:"8"}),
704
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 14)",width:"1",x:"8",y:"14"}),
705
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 8)",width:"1",x:"2",y:"8"}),
706
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 14)",width:"1",x:"2",y:"14"}),
707
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 8)",width:"1",x:"10",y:"8"}),
708
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 14)",width:"1",x:"10",y:"14"}),
709
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 8)",width:"1",x:"12",y:"8"}),
710
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 14)",width:"1",x:"12",y:"14"}),
711
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 8)",width:"1",x:"6",y:"8"}),
712
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 14)",width:"1",x:"6",y:"14"}),
713
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 8)",width:"1",x:"4",y:"8"}),
714
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 14)",width:"1",x:"4",y:"14"}),
715
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 6)",width:"1",x:"8",y:"6"}),
716
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 6)",width:"1",x:"2",y:"6"}),
717
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 4)",width:"1",x:"8",y:"4"}),
718
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 4)",width:"1",x:"2",y:"4"}),
719
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 10)",width:"1",x:"14",y:"10"}),
720
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 12)",width:"1",x:"14",y:"12"}),
721
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 8)",width:"1",x:"14",y:"8"}),
722
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 14)",width:"1",x:"14",y:"14"}),
723
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 6)",width:"1",x:"14",y:"6"}),
724
+ /* @__PURE__ */yl.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 4)",width:"1",x:"14",y:"4"})]})}const Gm=p(ao,function({children:e,...t}){const n=s(),o=d(ot,"isSelectionAreaVisible"),a=!n&&!o,{isSelectingCell:l,marginLeft:i,props:c}=lo(),u=lt(t.element.id),m=/* @__PURE__ */yl.jsx(r,{...t,className:El("overflow-x-auto py-5",a&&"-ml-2 *:data-[slot=block-selection]:left-2"),style:{paddingLeft:i},children:/* @__PURE__ */yl.jsxs("div",{className:"group/table relative w-fit",children:[
725
+ /* @__PURE__ */yl.jsx("table",{className:El("mr-0 ml-px table h-px table-fixed border-collapse",l&&"selection:bg-transparent"),...c,children:/* @__PURE__ */yl.jsx("tbody",{className:"min-w-full",children:e})}),u&&/* @__PURE__ */yl.jsx("div",{className:Pl(),contentEditable:!1})]})});return n?m:/* @__PURE__ */yl.jsx(Qm,{children:m})});function Qm({children:e,...t}){const{tf:r}=i(no),s=n(),o=h(),{props:a}=x({element:o}),l=f(e=>s&&e.api.isCollapsed(),[s]),c=g(),{canMerge:d,canSplit:u}=oo();/* @__PURE__ */
726
+ return yl.jsxs($i,{open:c&&(d||u||l),modal:!1,children:[
727
+ /* @__PURE__ */yl.jsx(xs,{asChild:!0,children:e}),
728
+ /* @__PURE__ */yl.jsx(Zi,{asChild:!0,onOpenAutoFocus:e=>e.preventDefault(),contentEditable:!1,...t,children:/* @__PURE__ */yl.jsxs(ui,{className:"scrollbar-hide flex w-auto max-w-[80vw] flex-row overflow-x-auto rounded-md border bg-popover p-1 shadow-md print:hidden",contentEditable:!1,children:[
729
+ /* @__PURE__ */yl.jsxs(yi,{children:[
730
+ /* @__PURE__ */yl.jsx(Xm,{tooltip:"Background color",children:/* @__PURE__ */yl.jsx(Sr,{})}),d&&/* @__PURE__ */yl.jsx(xi,{onClick:()=>r.table.merge(),onMouseDown:e=>e.preventDefault(),tooltip:"Merge cells",children:/* @__PURE__ */yl.jsx(rs,{})}),u&&/* @__PURE__ */yl.jsx(xi,{onClick:()=>r.table.split(),onMouseDown:e=>e.preventDefault(),tooltip:"Split cell",children:/* @__PURE__ */yl.jsx(ss,{})}),
731
+ /* @__PURE__ */yl.jsxs(Gl,{modal:!1,children:[
732
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{tooltip:"Cell borders",children:/* @__PURE__ */yl.jsx(ns,{})})}),
733
+ /* @__PURE__ */yl.jsx(Ql,{children:/* @__PURE__ */yl.jsx(Jm,{})})]}),l&&/* @__PURE__ */yl.jsx(yi,{children:/* @__PURE__ */yl.jsx(xi,{tooltip:"Delete table",...a,children:/* @__PURE__ */yl.jsx(At,{})})})]}),l&&/* @__PURE__ */yl.jsxs(yi,{children:[
734
+ /* @__PURE__ */yl.jsx(xi,{onClick:()=>{r.insert.tableRow({before:!0})},onMouseDown:e=>e.preventDefault(),tooltip:"Insert row before",children:/* @__PURE__ */yl.jsx(pr,{})}),
735
+ /* @__PURE__ */yl.jsx(xi,{onClick:()=>{r.insert.tableRow()},onMouseDown:e=>e.preventDefault(),tooltip:"Insert row after",children:/* @__PURE__ */yl.jsx(xr,{})}),
736
+ /* @__PURE__ */yl.jsx(xi,{onClick:()=>{r.remove.tableRow()},onMouseDown:e=>e.preventDefault(),tooltip:"Delete row",children:/* @__PURE__ */yl.jsx(gt,{})})]}),l&&/* @__PURE__ */yl.jsxs(yi,{children:[
737
+ /* @__PURE__ */yl.jsx(xi,{onClick:()=>{r.insert.tableColumn({before:!0})},onMouseDown:e=>e.preventDefault(),tooltip:"Insert column before",children:/* @__PURE__ */yl.jsx(fr,{})}),
738
+ /* @__PURE__ */yl.jsx(xi,{onClick:()=>{r.insert.tableColumn()},onMouseDown:e=>e.preventDefault(),tooltip:"Insert column after",children:/* @__PURE__ */yl.jsx(gr,{})}),
739
+ /* @__PURE__ */yl.jsx(xi,{onClick:()=>{r.remove.tableColumn()},onMouseDown:e=>e.preventDefault(),tooltip:"Delete column",children:/* @__PURE__ */yl.jsx(gt,{})})]})]})})]})}function Jm(e){const t=m(),{getOnSelectTableBorder:r,hasBottomBorder:s,hasLeftBorder:n,hasNoBorders:o,hasOuterBorders:a,hasRightBorder:l,hasTopBorder:i}=io();/* @__PURE__ */
740
+ return yl.jsxs(Xl,{className:"min-w-[220px]",onCloseAutoFocus:e=>{e.preventDefault(),t.tf.focus()},align:"start",side:"right",sideOffset:0,...e,children:[
741
+ /* @__PURE__ */yl.jsxs(ei,{children:[
742
+ /* @__PURE__ */yl.jsxs(ri,{checked:i,onCheckedChange:r("top"),children:[
743
+ /* @__PURE__ */yl.jsx(Ym,{}),
744
+ /* @__PURE__ */yl.jsx("div",{children:"Top Border"})]}),
745
+ /* @__PURE__ */yl.jsxs(ri,{checked:l,onCheckedChange:r("right"),children:[
746
+ /* @__PURE__ */yl.jsx(Km,{}),
747
+ /* @__PURE__ */yl.jsx("div",{children:"Right Border"})]}),
748
+ /* @__PURE__ */yl.jsxs(ri,{checked:s,onCheckedChange:r("bottom"),children:[
749
+ /* @__PURE__ */yl.jsx($m,{}),
750
+ /* @__PURE__ */yl.jsx("div",{children:"Bottom Border"})]}),
751
+ /* @__PURE__ */yl.jsxs(ri,{checked:n,onCheckedChange:r("left"),children:[
752
+ /* @__PURE__ */yl.jsx(Wm,{}),
753
+ /* @__PURE__ */yl.jsx("div",{children:"Left Border"})]})]}),
754
+ /* @__PURE__ */yl.jsxs(ei,{children:[
755
+ /* @__PURE__ */yl.jsxs(ri,{checked:o,onCheckedChange:r("none"),children:[
756
+ /* @__PURE__ */yl.jsx(Zm,{}),
757
+ /* @__PURE__ */yl.jsx("div",{children:"No Border"})]}),
758
+ /* @__PURE__ */yl.jsxs(ri,{checked:a,onCheckedChange:r("outer"),children:[
759
+ /* @__PURE__ */yl.jsx(qm,{}),
760
+ /* @__PURE__ */yl.jsx("div",{children:"Outside Borders"})]})]})]})}function Xm({children:t,tooltip:r}){const[s,n]=e.useState(!1),o=m(),a=d(no,"selectedCells"),l=e.useCallback(e=>{n(!1),Ws(o,{color:e,selectedCells:a??[]})},[a,o]),i=e.useCallback(()=>{n(!1),Ws(o,{color:null,selectedCells:a??[]})},[a,o]);/* @__PURE__ */
761
+ return yl.jsxs(Gl,{open:s,onOpenChange:n,modal:!1,children:[
762
+ /* @__PURE__ */yl.jsx(Jl,{asChild:!0,children:/* @__PURE__ */yl.jsx(xi,{tooltip:r,children:t})}),
763
+ /* @__PURE__ */yl.jsxs(Xl,{align:"start",children:[
764
+ /* @__PURE__ */yl.jsx(ki,{label:"Colors",children:/* @__PURE__ */yl.jsx(bd,{className:"px-2",colors:jd,updateColor:l})}),
765
+ /* @__PURE__ */yl.jsx(ei,{children:/* @__PURE__ */yl.jsxs(ti,{className:"p-2",onClick:i,children:[
766
+ /* @__PURE__ */yl.jsx(Lt,{}),
767
+ /* @__PURE__ */yl.jsx("span",{children:"Clear"})]})})]})]})}function eh({dragRef:e}){const t=m(),r=h();/* @__PURE__ */
768
+ return yl.jsx($l,{ref:e,variant:"outline",className:El("-translate-y-1/2 absolute top-1/2 left-0 z-51 h-6 w-4 p-0 focus-visible:ring-0 focus-visible:ring-offset-0","cursor-grab active:cursor-grabbing",'opacity-0 transition-opacity duration-100 group-hover/row:opacity-100 group-has-data-[resizing="true"]/row:opacity-0'),onClick:()=>{t.tf.select(r)},children:/* @__PURE__ */yl.jsx(Dt,{className:"text-muted-foreground"})})}function th(){const{dropLine:e}=is();return e?/* @__PURE__ */yl.jsx("div",{className:El("absolute inset-x-0 left-2 z-50 h-0.5 bg-brand/50","top"===e?"-top-px":"-bottom-px")}):null}function rh({isHeader:e,...t}){const{api:n}=i(no),o=s(),a=t.element,l=R(([e])=>e.id,[],{key:q.table}),c=R(([e])=>e.id,[],{key:q.tr}),u=lt(l),m=lt(c)||u,h=d(ot,"isSelectionAreaVisible"),{borders:p,colIndex:x,colSpan:f,minHeight:g,rowIndex:b,selected:j,width:v}=co(),{bottomProps:y,hiddenLeft:w,leftProps:k,rightProps:N}=uo({colIndex:x,colSpan:f,rowIndex:b});/* @__PURE__ */
769
+ return yl.jsxs(r,{...t,as:e?"th":"td",className:El("h-full overflow-visible border-none bg-background p-0",a.background?"bg-(--cellBackground)":"bg-background",e&&"text-left *:m-0","before:size-full",j&&"before:z-10 before:bg-brand/5","before:absolute before:box-border before:select-none before:content-['']",p.bottom?.size&&"before:border-b before:border-b-border",p.right?.size&&"before:border-r before:border-r-border",p.left?.size&&"before:border-l before:border-l-border",p.top?.size&&"before:border-t before:border-t-border"),style:{"--cellBackground":a.background,maxWidth:v||240,minWidth:v||120},attributes:{...t.attributes,colSpan:n.table.getColSpan(a),rowSpan:n.table.getRowSpan(a)},children:[
770
+ /* @__PURE__ */yl.jsx("div",{className:"relative z-20 box-border h-full px-3 py-2",style:{minHeight:g},children:t.children}),!h&&/* @__PURE__ */yl.jsx("div",{className:"group absolute top-0 size-full select-none",contentEditable:!1,suppressContentEditableWarning:!0,children:!o&&/* @__PURE__ */yl.jsxs(yl.Fragment,{children:[
771
+ /* @__PURE__ */yl.jsx(Pu,{...N,className:"-top-2 -right-1 h-[calc(100%_+_8px)] w-2","data-col":x}),
772
+ /* @__PURE__ */yl.jsx(Pu,{...y,className:"-bottom-1 h-2"}),!w&&/* @__PURE__ */yl.jsx(Pu,{...k,className:"-left-1 top-0 w-2","data-resizer-left":0===x?"true":void 0}),
773
+ /* @__PURE__ */yl.jsx("div",{className:El("absolute top-0 z-30 hidden h-full w-1 bg-ring","right-[-1.5px]",sh({colIndex:x}))}),0===x&&/* @__PURE__ */yl.jsx("div",{className:El("absolute top-0 z-30 h-full w-1 bg-ring","left-[-1.5px]",'fade-in hidden animate-in group-has-[[data-resizer-left]:hover]/table:block group-has-[[data-resizer-left][data-resizing="true"]]/table:block')})]})}),m&&/* @__PURE__ */yl.jsx("div",{className:Pl(),contentEditable:!1})]})}const sh=tt("fade-in hidden animate-in",{variants:{colIndex:{0:'group-has-[[data-col="0"]:hover]/table:block group-has-[[data-col="0"][data-resizing="true"]]/table:block',1:'group-has-[[data-col="1"]:hover]/table:block group-has-[[data-col="1"][data-resizing="true"]]/table:block',2:'group-has-[[data-col="2"]:hover]/table:block group-has-[[data-col="2"][data-resizing="true"]]/table:block',3:'group-has-[[data-col="3"]:hover]/table:block group-has-[[data-col="3"][data-resizing="true"]]/table:block',4:'group-has-[[data-col="4"]:hover]/table:block group-has-[[data-col="4"][data-resizing="true"]]/table:block',5:'group-has-[[data-col="5"]:hover]/table:block group-has-[[data-col="5"][data-resizing="true"]]/table:block',6:'group-has-[[data-col="6"]:hover]/table:block group-has-[[data-col="6"][data-resizing="true"]]/table:block',7:'group-has-[[data-col="7"]:hover]/table:block group-has-[[data-col="7"][data-resizing="true"]]/table:block',8:'group-has-[[data-col="8"]:hover]/table:block group-has-[[data-col="8"][data-resizing="true"]]/table:block',9:'group-has-[[data-col="9"]:hover]/table:block group-has-[[data-col="9"][data-resizing="true"]]/table:block',10:'group-has-[[data-col="10"]:hover]/table:block group-has-[[data-col="10"][data-resizing="true"]]/table:block'}}}),nh=[no.withComponent(Gm),mo.withComponent(function({children:e,...t}){const{element:o}=t,a=s(),l=n(),i=m(),c=d(ot,"isSelectionAreaVisible"),u=!a&&!c,{isDragging:h,nodeRef:p,previewRef:x,handleRef:f}=ls({element:o,type:o.type,canDropNode:({dragEntry:e,dropEntry:t})=>K.equals(K.parent(e[1]),K.parent(t[1])),onDropHandler:(e,{dragItem:t})=>{const r=t.element;r&&i.tf.select(r)}});/* @__PURE__ */
774
+ return yl.jsxs(r,{...t,ref:A(t.ref,x,p),as:"tr",className:El("group/row",h&&"opacity-50"),attributes:{...t.attributes,"data-selected":l?"true":void 0},children:[u&&/* @__PURE__ */yl.jsxs("td",{className:"w-2 select-none",contentEditable:!1,children:[
775
+ /* @__PURE__ */yl.jsx(eh,{dragRef:f}),
776
+ /* @__PURE__ */yl.jsx(th,{})]}),e]})}),ho.withComponent(rh),po.withComponent(function(e){/* @__PURE__ */
777
+ return yl.jsx(rh,{...e,isHeader:!0})})],oh=tt("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const ah=[Ba.configure({options:{topOffset:80}}).withComponent(function(e){const t=Sa(),{props:s}=Ea(t),{headingList:n}=t;/* @__PURE__ */
778
+ return yl.jsxs(r,{...e,className:"mb-1 p-0",children:[
779
+ /* @__PURE__ */yl.jsx("div",{contentEditable:!1,children:n.length>0?n.map(e=>/* @__PURE__ */yl.jsx($l,{variant:"ghost",className:oh({depth:e.depth}),onClick:t=>s.onClick(t,e,"smooth"),"aria-current":!0,children:e.title},e.id)):/* @__PURE__ */yl.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const lh=[...wu,Ta.withComponent(function(e){const t=e.element,s=Aa(t.id),{buttonProps:n,open:o}=Ia(s);/* @__PURE__ */
780
+ return yl.jsxs(r,{...e,className:"pl-6",children:[
781
+ /* @__PURE__ */yl.jsx($l,{size:"icon",variant:"ghost",className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,...n,children:/* @__PURE__ */yl.jsx(os,{className:o?"rotate-90 transition-transform duration-75":"rotate-0 transition-transform duration-75"})}),e.children]})})],ih=[...Bl,...Xi,...nh,...lh,...ah,...sm,...Mi,...cc,...Bu,...gc,...yu,...fm,...Al,...xu,..._u,...wl,...fu,...uc,...Um,...bm,..._l,...pc,...Vl,..._c,...Sc,ae,...zc,...zu,...Ul,...du,...hu];function ch(){const{isFullscreen:t,onToggleFullscreen:r}=lu();return e.useEffect(()=>{const e=e=>{"Escape"===e.key&&t&&r()};if(t)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t,r]),null}function dh({initialValue:t,onChange:r,mode:s="draft"}){const n=F({plugins:ih,value:t});return e.useEffect(()=>{n.setOption(so,"isSuggesting","draft"===s)},[n,s]),/* @__PURE__ */yl.jsx("div",{className:"h-screen w-full bg-white rounded-sm border-1",children:/* @__PURE__ */yl.jsx(O,{editor:n,onChange:({value:e})=>{console.log(e),r?.(e)},children:/* @__PURE__ */yl.jsx(Cm,{children:/* @__PURE__ */yl.jsx(zm,{variant:"fullWidth"})})})})}function uh({initialValue:t,onChange:r,mode:s="draft"}){const[n,o]=e.useState(!1),a=e.useCallback(()=>{o(e=>!e)},[]);/* @__PURE__ */
782
+ return yl.jsx("div",{className:n?"fixed inset-0 z-1450 bg-white":"",children:/* @__PURE__ */yl.jsxs(au,{isFullscreen:n,onToggleFullscreen:a,children:[
783
+ /* @__PURE__ */yl.jsx(ch,{}),
784
+ /* @__PURE__ */yl.jsx(dh,{initialValue:t,onChange:r,mode:s})]})})}const mh=[Da.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...q.heading,q.p,q.img,q.mediaEmbed]}})];const hh=tt("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function ph({variant:e="h1",...t}){/* @__PURE__ */
785
+ return yl.jsx(sl,{as:e,className:hh({variant:e}),...t,children:t.children})}const xh=[le.withComponent(function(e){/* @__PURE__ */
786
+ return yl.jsx(sl,{...e,className:El("m-0 px-0 py-1"),children:e.children})}),Pa.withComponent(function(e){/* @__PURE__ */
787
+ return yl.jsx(ph,{variant:"h1",...e})}),Ha.withComponent(function(e){/* @__PURE__ */
788
+ return yl.jsx(ph,{variant:"h2",...e})}),Va.withComponent(function(e){/* @__PURE__ */
789
+ return yl.jsx(ph,{variant:"h3",...e})}),Ua.withComponent(function(e){/* @__PURE__ */
790
+ return yl.jsx(ph,{variant:"h4",...e})}),qa.withComponent(function(e){/* @__PURE__ */
791
+ return yl.jsx(ph,{variant:"h5",...e})}),$a.withComponent(function(e){/* @__PURE__ */
792
+ return yl.jsx(ph,{variant:"h6",...e})}),Wa.withComponent(function(e){/* @__PURE__ */
793
+ return yl.jsx(sl,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}),Za.withComponent(function(e){/* @__PURE__ */
794
+ return yl.jsxs(sl,{...e,children:[
795
+ /* @__PURE__ */yl.jsx("div",{className:"cursor-text py-6",contentEditable:!1,children:/* @__PURE__ */yl.jsx("hr",{className:El("h-0.5 rounded-sm border-none bg-muted bg-clip-content")})}),e.children]})})];const fh=[Ka,Ya,Ga,Qa.withComponent(function(e){/* @__PURE__ */
796
+ return yl.jsx(nl,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}),Ja,Xa,el,tl.withComponent(function(e){/* @__PURE__ */
797
+ return yl.jsx(nl,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}),rl.withComponent(function(e){/* @__PURE__ */
798
+ return yl.jsx(nl,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];const gh=[zn.withComponent(function({children:e,className:t,...r}){/* @__PURE__ */
799
+ return yl.jsx(sl,{className:El("my-1 flex rounded-sm bg-muted p-4 pl-3",t),style:{backgroundColor:r.element.backgroundColor},...r,children:/* @__PURE__ */yl.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
800
+ /* @__PURE__ */yl.jsx("div",{className:"size-6 select-none text-[18px]",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},children:/* @__PURE__ */yl.jsx("span",{"data-plate-prevent-deserialization":!0,children:r.element.icon||"💡"})}),
801
+ /* @__PURE__ */yl.jsx("div",{className:"w-full",children:e})]})})})];const bh=Ns(Cs),jh=[Ee.configure({node:{component:function(e){/* @__PURE__ */
802
+ return yl.jsx(sl,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */yl.jsx("div",{className:"relative rounded-md bg-muted/50",children:/* @__PURE__ */yl.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */yl.jsx("code",{children:e.children})})})})}},options:{lowlight:bh}}),Be.withComponent(function(e){/* @__PURE__ */
803
+ return yl.jsx(sl,{...e})}),Ae.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
804
+ return yl.jsx(nl,{className:t,...e})})];const vh=[Is.withComponent(function(e){/* @__PURE__ */
805
+ return yl.jsx(sl,{className:"mb-2",...e,children:/* @__PURE__ */yl.jsx("div",{className:"flex size-full rounded",children:e.children})})}),Ts.withComponent(function(e){const{width:t}=e.element;/* @__PURE__ */
806
+ return yl.jsx("div",{className:"group/column relative",style:{width:t??"100%"},children:/* @__PURE__ */yl.jsx(sl,{className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",...e,children:/* @__PURE__ */yl.jsx("div",{className:"relative h-full border border-transparent p-1.5",children:e.children})})})})];const yh=[Vs.withComponent(function(e){/* @__PURE__ */
807
+ return yl.jsx(nl,{...e,className:"border-b-2 border-b-highlight/35 bg-highlight/15",children:e.children})})];const wh=[En.withComponent(function(e){const{element:t}=e;/* @__PURE__ */
808
+ return yl.jsxs(sl,{className:"inline-block",...e,children:[
809
+ /* @__PURE__ */yl.jsx("span",{className:"w-fit rounded-sm bg-muted px-1 text-muted-foreground",children:t.date?(()=>{const e=/* @__PURE__ */new Date,r=new Date(t.date),s=r.getDate()===e.getDate()&&r.getMonth()===e.getMonth()&&r.getFullYear()===e.getFullYear(),n=new Date(e.setDate(e.getDate()-1)).toDateString()===r.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===r.toDateString();return s?"Today":n?"Yesterday":o?"Tomorrow":r.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */yl.jsx("span",{children:"Pick a date"})}),e.children]})})],kh={inject:{targetPlugins:[q.p]}},Nh=[Oa.configure(kh),Fa.configure(kh),Ra.configure(kh),Ma.configure(kh)],Ch=[La.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...q.heading,q.p]}})];const _h=[Eo.withComponent(function(e){/* @__PURE__ */
810
+ return yl.jsx(sl,{...e,as:"a",className:"font-medium text-primary underline decoration-primary underline-offset-4",attributes:{...e.attributes,...So(e.editor,e.element)},children:e.children})})],zh=[ll.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle]},options:{offset:24}})],Sh={todo:{Li:function(e){/* @__PURE__ */
811
+ return yl.jsx("li",{className:El("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=e.element.checked;/* @__PURE__ */
812
+ return yl.jsx("div",{contentEditable:!1,children:/* @__PURE__ */yl.jsx("button",{className:El("peer -left-6 pointer-events-none absolute top-1 size-4 shrink-0 rounded-sm border border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e.className),"data-state":t?"checked":"unchecked",type:"button",children:/* @__PURE__ */yl.jsx("div",{className:El("flex items-center justify-center text-current"),children:t&&/* @__PURE__ */yl.jsx(pt,{className:"size-4"})})})})}}};function Eh(e){const{listStart:t,listStyleType:r}=e.element,{Li:s,Marker:n}=Sh[r]??{},o=Fe(e.element)?"ol":"ul";/* @__PURE__ */
813
+ return yl.jsxs(o,{className:"relative m-0 p-0",style:{listStyleType:r},start:t,children:[n&&/* @__PURE__ */yl.jsx(n,{...e}),s?/* @__PURE__ */yl.jsx(s,{...e}):/* @__PURE__ */yl.jsx("li",{children:e.children})]})}const Bh=[...zh,Re.configure({inject:{targetPlugins:[...q.heading,q.p,q.blockquote,q.codeBlock,q.toggle]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */yl.jsx(Eh,{...e})}}})];const Ah=[Un.withComponent(function(e){const t=Vn({element:e.element,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
814
+ return yl.jsxs(sl,{...e,className:"inline-block select-none rounded-sm [&_.katex-display]:my-0",children:[
815
+ /* @__PURE__ */yl.jsx("div",{className:El('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",0===e.element.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),children:/* @__PURE__ */yl.jsx("span",{className:El(0===e.element.texExpression.length&&"hidden","font-mono leading-none"),dangerouslySetInnerHTML:{__html:t}})}),e.children]})}),qn.withComponent(function(e){const{element:t}=e,r=Vn({element:t,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
816
+ return yl.jsxs(sl,{className:"my-1",...e,children:[
817
+ /* @__PURE__ */yl.jsx("div",{className:El("group flex select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),children:t.texExpression.length>0?/* @__PURE__ */yl.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):/* @__PURE__ */yl.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
818
+ /* @__PURE__ */yl.jsx(Ir,{className:"size-6 text-muted-foreground/80"}),
819
+ /* @__PURE__ */yl.jsx("div",{children:"Add a Tex equation"})]})}),e.children]})})];const Ih=[Qn.withComponent(function(e){const{align:t="center",caption:r,url:s,width:n}=e.element;/* @__PURE__ */
820
+ return yl.jsxs(sl,{...e,className:"py-2.5",children:[
821
+ /* @__PURE__ */yl.jsx("figure",{className:"group relative m-0 inline-block",style:{width:n},children:/* @__PURE__ */yl.jsxs("div",{className:"relative min-w-[92px] max-w-full",style:{textAlign:t},children:[
822
+ /* @__PURE__ */yl.jsx("img",{className:El("w-full max-w-full cursor-default object-cover px-0","rounded-sm"),alt:e.attributes.alt,src:s}),r&&/* @__PURE__ */yl.jsx("figcaption",{className:"mx-auto mt-2 h-[24px] max-w-full",children:Z.string(r[0])})]})}),e.children]})}),Jn.withComponent(function(e){const{align:t="center",caption:r,url:s,width:n}=e.element;/* @__PURE__ */
823
+ return yl.jsxs(sl,{className:"py-2.5",...e,children:[
824
+ /* @__PURE__ */yl.jsx("div",{style:{textAlign:t},children:/* @__PURE__ */yl.jsxs("figure",{className:"group relative m-0 inline-block cursor-default",style:{width:n},children:[
825
+ /* @__PURE__ */yl.jsx("video",{className:"w-full max-w-full rounded-sm object-cover px-0",src:s,controls:!0}),r&&/* @__PURE__ */yl.jsx("figcaption",{children:Z.string(r[0])})]})}),e.children]})}),Xn.withComponent(function(e){/* @__PURE__ */
826
+ return yl.jsxs(sl,{...e,className:"mb-1",children:[
827
+ /* @__PURE__ */yl.jsx("figure",{className:"group relative cursor-default",children:/* @__PURE__ */yl.jsx("div",{className:"h-16",children:/* @__PURE__ */yl.jsx("audio",{className:"size-full",src:e.element.url,controls:!0})})}),e.children]})}),eo.withComponent(function(e){const{name:t,url:r}=e.element;/* @__PURE__ */
828
+ return yl.jsxs(sl,{className:"my-px rounded-sm",...e,children:[
829
+ /* @__PURE__ */yl.jsx("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:t,href:r,rel:"noopener noreferrer",role:"button",target:"_blank",children:/* @__PURE__ */yl.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
830
+ /* @__PURE__ */yl.jsx(Dr,{className:"size-5"}),
831
+ /* @__PURE__ */yl.jsx("div",{children:t})]})}),e.children]})}),il.configure({options:{query:{allow:[q.img,q.video,q.audio,q.file,q.mediaEmbed]}}}),to,ro];const Th=[ea.withComponent(function(e){const{prefix:t}=e,r=e.element;/* @__PURE__ */
832
+ return yl.jsxs(sl,{...e,className:El("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!0===r.children[0][q.bold]&&"font-bold",!0===r.children[0][q.italic]&&"italic",!0===r.children[0][q.underline]&&"underline"),attributes:{...e.attributes,"data-slate-value":r.value},children:[e.children,t,r.value]})})];const Dh=[va.withComponent(function(e){const{editor:t,leaf:r}=e,s=t.getApi(va).suggestion.dataList(r).some(e=>"remove"===e.type),n={delete:"del",insert:"ins",update:"span"}[s?"delete":"insert"];/* @__PURE__ */
833
+ return yl.jsx(nl,{...e,as:n,className:El("border-b-2 border-b-brand/[.24] bg-brand/[.08] text-brand/80 no-underline transition-colors duration-200",s&&"border-b-gray-300 bg-gray-300/25 text-gray-400 line-through"),children:e.children})})];function Oh({isHeader:e,...t}){const{editor:r,element:s}=t,{api:n}=r.getPlugin(Zs),{minHeight:o,width:a}=n.table.getCellSize({element:s}),l=n.table.getCellBorders({element:s});/* @__PURE__ */
834
+ return yl.jsx(sl,{...t,as:e?"th":"td",className:El("h-full overflow-visible border-none bg-background p-0",s.background?"bg-(--cellBackground)":"bg-background",e&&"text-left font-normal *:m-0","before:size-full","before:absolute before:box-border before:select-none before:content-['']",l&&El(l.bottom?.size&&"before:border-b before:border-b-border",l.right?.size&&"before:border-r before:border-r-border",l.left?.size&&"before:border-l before:border-l-border",l.top?.size&&"before:border-t before:border-t-border")),style:{"--cellBackground":s.background,maxWidth:a||240,minWidth:a||120},attributes:{...t.attributes,colSpan:n.table.getColSpan(s),rowSpan:n.table.getRowSpan(s)},children:/* @__PURE__ */yl.jsx("div",{className:"relative z-20 box-border h-full px-4 py-2",style:{minHeight:o},children:t.children})})}const Fh=[Zs.withComponent(function({children:e,...t}){const{disableMarginLeft:r}=t.editor.getOptions(Zs),s=r?0:t.element.marginLeft;/* @__PURE__ */
835
+ return yl.jsx(sl,{...t,className:"overflow-x-auto py-5",style:{paddingLeft:s},children:/* @__PURE__ */yl.jsx("div",{className:"group/table relative w-fit",children:/* @__PURE__ */yl.jsx("table",{className:"mr-0 ml-px table h-px table-fixed border-collapse",children:/* @__PURE__ */yl.jsx("tbody",{className:"min-w-full",children:e})})})})}),Ks.withComponent(function(e){/* @__PURE__ */
836
+ return yl.jsx(sl,{...e,as:"tr",className:"h-full",children:e.children})}),Ys.withComponent(Oh),Gs.withComponent(function(e){/* @__PURE__ */
837
+ return yl.jsx(Oh,{...e,isHeader:!0})})],Rh=tt("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const Mh={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},Lh=e=>{if(!e)return[];const t=e.getOptions(fo);if(t.queryHeading)return t.queryHeading(e);const r=[],s=e.api.nodes({at:[],match:e=>go(e)});return s?(Array.from(s).forEach(([e,t])=>{const{type:s}=e,n=Z.string(e),o=Mh[s],a=e.id;n&&r.push({id:a,depth:o,path:t,title:n,type:s})}),r):[]},Ph=[fo.withComponent(function(e){const{editor:t}=e,r=Lh(t);/* @__PURE__ */
838
+ return yl.jsxs(sl,{...e,className:"mb-1 p-0",children:[
839
+ /* @__PURE__ */yl.jsx("div",{children:r.length>0?r.map(e=>/* @__PURE__ */yl.jsx($l,{variant:"ghost",className:Rh({depth:e.depth}),children:e.title},e.title)):/* @__PURE__ */yl.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const Hh=[...xh,...jh,...Fh,...[cl.withComponent(function(e){/* @__PURE__ */
840
+ return yl.jsxs(sl,{...e,className:"pl-6",children:[
841
+ /* @__PURE__ */yl.jsx("div",{className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,children:/* @__PURE__ */yl.jsx(os,{className:"rotate-0 transition-transform duration-75"})}),e.children]})})],...Ph,...Ih,...gh,...vh,...Ah,...wh,..._h,...Th,...fh,...Nh,...Bh,...mh,...Ch,...yh,...Dh,...zu];export{wl as AlignKit,_l as AutoformatKit,Hh as BaseEditorKit,Bl as BasicBlocksKit,Al as BasicMarksKit,Vl as BlockMenuKit,Ul as BlockPlaceholderKit,Mi as CalloutKit,Xi as CodeBlockKit,cc as ColumnKit,uc as CommentKit,pc as CursorOverlayKit,gc as DateKit,_c as DndKit,zc as DocxKit,zm as Editor,Cm as EditorContainer,ih as EditorKit,Sm as EditorView,Sc as ExitBreakKit,du as FixedToolbarKit,hu as FloatingToolbarKit,xu as FontKit,fu as LineHeightKit,yu as LinkKit,_u as ListKit,Bu as MathKit,sm as MediaKit,fm as MentionKit,M as Plate,uh as PlateEditor,L as PlateLeaf,ol as PlateStatic,P as PlateView,bm as SlashKit,Um as SuggestionKit,nh as TableKit,ah as TocKit,lh as ToggleKit,dl as computeDiff,ie as createSlateEditor,ce as createSlatePlugin,de as normalizeNodeId,al as serializeHtml,H as toPlatePlugin,V as usePlateEditor,U as usePlateViewEditor,ul as withGetFragmentExcludeDiff};
836
842
  //# sourceMappingURL=index.js.map