@baseline-ui/core 0.19.6 → 0.19.7

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.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import ho, { useMemo, createContext, useContext, useEffect, useLayoutEffect, useCallback, useRef, useState, useImperativeHandle, useReducer, Fragment as Fragment$1 } from 'react';
2
2
  import { useListState, Section, Item, useNumberFieldState, useSliderState, useToggleState, useSearchFieldState, useTreeState, useMenuTriggerState, useTooltipTriggerState, useSelectState, useTabListState, useOverlayTriggerState, useRadioGroupState, useDraggableCollectionState, useDroppableCollectionState } from 'react-stately';
3
3
  import { classNames, invariant, filterTruthyValues, getSvgPathFromStroke, getHTMLElement, getPlainText, cleanKeyFromGlobImport, getOsSpecificKeyboardShortcutLabel, isUrl } from '@baseline-ui/utils';
4
- import { mergeRefs, getRootNode, getOwnerDocument, clamp, isChrome, getOwnerWindow, useLayoutEffect as useLayoutEffect$1 } from '@react-aria/utils';
4
+ import { mergeRefs, getRootNode, getOwnerDocument, clamp, isIOS, isAndroid, isFirefox, isChrome, getOwnerWindow, useLayoutEffect as useLayoutEffect$1 } from '@react-aria/utils';
5
5
  import { useSeparator, useHover, mergeProps, useOption, useLocale, useListBox, ListKeyboardDelegate, useFocusRing, DragPreview, useButton, useNumberField, useNumberFormatter, useSlider, useSliderThumb, VisuallyHidden, useSwitch, useSearchField, usePopover, Overlay, DismissButton, useMenu, useKeyboard, useMenuTrigger, useLink, useDrop, useId, useProgressBar, useTextField, useTooltip, useTooltipTrigger, useOverlayPosition, useToggleButton, useCheckbox, useTagGroup, FocusScope, useFocusManager, usePress, useSelect, HiddenSelect, useTabList, useTab, useDialog, useOverlayTrigger, useLabel, useField, useClipboard, useRadioGroup, useDraggableCollection, useDroppableCollection, ListDropTargetDelegate, useDraggableItem, useListBoxSection, I18nProvider, useMessageFormatter, useMenuSection, useMenuItem, useDateFormatter, useTag, useTabPanel, useModalOverlay, useRadio, useFilter, useInteractOutside, useDropIndicator } from 'react-aria';
6
6
  export { useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -15,7 +15,7 @@ import { XIcon as XIcon$1, AtIcon, CrossCircleFilledIcon, ArrowUpCircleFilledIco
15
15
  import { assignInlineVars } from '@vanilla-extract/dynamic';
16
16
  import { Slot } from '@radix-ui/react-slot';
17
17
  import { useGranularEffect, useGranularLayoutEffect } from 'granular-hooks';
18
- import Oy from 'lodash/isEmpty';
18
+ import Ky from 'lodash/isEmpty';
19
19
  import { animated, useReducedMotion, useSpring, useTransition, config, easings } from '@react-spring/web';
20
20
  import { FocusableProvider } from '@react-aria/focus';
21
21
  import { parseColor, useColorAreaState, useColorFieldState, useColorSliderState } from '@react-stately/color';
@@ -25,15 +25,16 @@ import { getStroke } from 'perfect-freehand';
25
25
  import { createPortal } from 'react-dom';
26
26
  import { makeMoveable, Draggable, Resizable, Rotatable, Snappable } from 'react-moveable';
27
27
  import { useToolbar } from '@react-aria/toolbar';
28
- import { Transforms, createEditor, Editor, Range, Element as Element$1 } from 'slate';
28
+ import { Transforms, Editor, createEditor, Range, Element as Element$1 } from 'slate';
29
29
  import { ReactEditor, Slate, Editable, withReact, useSlate } from 'slate-react';
30
30
  import { withHistory } from 'slate-history';
31
31
  import { camelCase, kebabCase } from 'lodash';
32
32
  import { BoldIcon, ItalicIcon, UnderlineIcon } from '@baseline-ui/icons/20/index';
33
+ import * as wc from 'dompurify';
33
34
  import { Element, Text } from 'domhandler';
34
35
  import { slateToHtml, htmlToSlate } from '@slate-serializers/html';
35
36
  import { useInteractionModality } from '@react-aria/interactions';
36
- import Vh from 'markdown-it';
37
+ import oC from 'markdown-it';
37
38
  import { announce } from '@react-aria/live-announcer';
38
39
 
39
40
  /**
@@ -45,6 +46,6 @@ import { announce } from '@react-aria/live-announcer';
45
46
  * This notice may not be removed from this file.
46
47
  *
47
48
  */
48
- function xn(e,t,o){let{direction:r}=useLocale(),a=useDraggableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager,getItems:e.getItems||(i=>[...i].map(l=>{let p=t.collection.getItem(l);return invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});useDraggableCollection(e,a,o);let n=useDroppableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:s}=useDroppableCollection({...e,keyboardDelegate:new ListKeyboardDelegate({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new ListDropTargetDelegate(t.collection,o)},n,o);return e.enableReorder?{collectionProps:s,dragState:a,dropState:n}:{collectionProps:{},dropState:void 0,dragState:void 0}}function hm(e,t){if(typeof e!="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Cm(e){var t=hm(e,"string");return typeof t=="symbol"?t:String(t)}function xm(e,t,o){return t=Cm(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Pn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r);}return o}function kn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Pn(Object(o),!0).forEach(function(r){xm(e,r,o[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pn(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));});}return e}function Rn(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var Pm=(e,t,o)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=t[r])!==null&&a!==void 0?a:o[r]))return !1}return !0},b=e=>{var t=o=>{var r=e.defaultClassName,a=kn(kn({},e.defaultVariants),o);for(var n in a){var s,i=(s=a[n])!==null&&s!==void 0?s:e.defaultVariants[n];if(i!=null){var l=i;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=e.variantClassNames[n][l];p&&(r+=" "+p);}}for(var[d,c]of e.compoundVariants)Pm(d,a,e.defaultVariants)&&(r+=" "+c);return r};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return Rn(e.variantClassNames,o=>Rn(o,r=>r.split(" ")[0]))}},t};var wn=b({defaultClassName:"_6n12k9b _1yep5z6l0 _1yep5z6kz _1yep5z6hk _1yep5z6ki",variantClassNames:{isDropTarget:{true:"_1yep5z612n"},orientation:{vertical:"_1yep5z6166",horizontal:"_1yep5z6167"}},defaultVariants:{},compoundVariants:[]}),In="_6n12k98 _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",Tn=b({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Nn=b({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6ki _1yep5z6kl _1yep5z6ky _1yep5z6kx _1yep5z6kv _1yep5z6ks",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z612n _1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612w _1yep5z612x _1yep5z612y"},isHovered:{true:"_1yep5z6114",false:"_1yep5z6113"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Sn="_6n12k90";var Mn=b({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var D=ho.forwardRef(({className:e,style:t,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:n="div",...s},i)=>{let{separatorProps:l}=useSeparator({...s,orientation:r,elementType:n});return jsx(n,{...l,className:classNames(Mn({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":s["data-block-id"],style:t,role:a?void 0:l.role,ref:i})});D.displayName="Separator";function Mm(e){return sprinkles.properties.has(e)}var S=ho.forwardRef(({elementType:e="div",children:t,...o},r)=>{let a=e,{sprinkleProps:n,domProps:s}=useMemo(()=>{let i={},l={};for(let p in o)Mm(p)?i[p]=o[p]:l[p]=o[p];return {sprinkleProps:i,domProps:l}},[o]);return jsx(a,{...s,className:classNames(sprinkles(n),"BaselineUI-Box",s.className),ref:r,children:t})});S.displayName="Box";var No=ho.forwardRef(({item:e,isDisabled:t,isFocusVisible:o,isSelected:r,liProps:a,showSelectedIcon:n,description:s,descriptionProps:i,labelProps:l,isFocused:p,isPressed:d,_state:c},m)=>{invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:f}=e.value,{hoverProps:g,isHovered:v}=useHover({isDisabled:t}),y=filterTruthyValues({"data-selected":r,"data-disabled":t,"data-focused":p,"data-hovered":v,"data-pressed":d,"data-focus-visible":o,"data-selection-mode":c.selectionManager.selectionMode});return jsxs("li",{...mergeProps(a,g,y),className:classNames(Nn({isHovered:v,isFocused:o,isFirstChild:c.collection.getFirstKey()===e.key,isLastChild:c.collection.getLastKey()===e.key,isDisabled:t}),"BaselineUI-ListBox-Option"),ref:m,children:[jsxs(S,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?jsx(CheckmarkIcon,{size:24}):null}):null,u?jsx(u,{size:24}):null,jsx("span",{...l,children:f})]}),s?jsx("span",{className:Tn({isDisabled:t}),...i,children:s}):null]})});No.displayName="DefaultRenderOption";var Bt=({dropState:e,orientation:t="vertical",dropIndicatorStyle:o,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:s,isHidden:i,dropIndicatorProps:l,orientation:p},d)=>i?null:jsx("li",{...l,ref:d,"data-drop-target":s,className:classNames(wn({isDropTarget:s,orientation:p}),"BaselineUI-DropIndicator",r),style:o}),...n})=>{let s=ho.useRef(null),{dropIndicatorProps:i,isHidden:l,isDropTarget:p}=useDropIndicator(n,e,s);return a({dropIndicatorProps:{...i,role:"option"},isHidden:l,isDropTarget:p,orientation:t},s)};var Vn=({item:e,children:t,state:o,dragState:r,...a})=>{let{dragProps:n}=useDraggableItem({key:e.key},r);return jsxs(Fragment,{children:[jsx(Bt,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),t(n),o.collection.getKeyAfter(e.key)==null&&jsx(Bt,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};Vn.displayName="DraggableListOption";var So=ho.forwardRef(({item:e,renderOption:t=(m,u,f)=>jsx(No,{item:m,liProps:u.optionProps,...u,ref:f}),showSelectedIcon:o,state:r,dragState:a,dropState:n,orientation:s,dropIndicatorStyle:i,dropIndicatorClassName:l,optionStyle:p,optionClassName:d},c)=>{let m=ho.useRef(null),u=useOption({key:e.key},r,m),{value:f}=e;invariant(!!f),invariant(!("children"in e),"ListSection should not be passed to ListOption");let g={style:typeof p=="function"?p(f):p,className:typeof d=="function"?d(f):d};return a&&n?jsx(Vn,{orientation:s,state:r,item:e,dropState:n,dragState:a,dropIndicatorStyle:i,dropIndicatorClassName:l,children:v=>t(e,{...u,showSelectedIcon:o,_state:r,optionProps:mergeProps(u.optionProps,v,g)},mergeRefs(m,c))}):t(e,{...u,showSelectedIcon:o,_state:r,optionProps:mergeProps(u.optionProps,g)},mergeRefs(m,c))});So.displayName="Option";var Dt=({section:e,state:t,sectionClassName:o,sectionStyle:r,...a})=>{let{itemProps:n,groupProps:s}=useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]}),i=t.collection.getChildren?.(e.key);invariant(i,"items with type `section` must have children");let{value:l}=e,p=typeof r=="function"?r(l):r,d=typeof o=="function"?o(l):o;return jsxs(Fragment,{children:[e.key!==t.collection.getFirstKey()&&jsx(D,{UNSAFE_omitRole:!0}),jsx("li",{...n,style:{...n.style,...p},className:classNames(Sn,d,"BaselineUI-ListBox-Section"),children:jsx("ul",{...s,children:[...i].map(c=>jsx(So,{item:c,state:t,...a},c.key))})})]})};Dt.displayName="ListBoxSection";var Ht=ho.forwardRef(({className:e,layout:t="stack",orientation:o="vertical",showSelectedIcon:r=!0,UNSAFE_state:a,style:n,renderOption:s,enableReorder:i=!1,"data-block-id":l,renderDragPreview:p,...d},c)=>{let m=ho.useRef(null),u=useListState(d),{direction:f}=useLocale(),g=a||u,v=ho.useRef(null),{listBoxProps:y}=useListBox({...d,shouldSelectOnPressUp:i,keyboardDelegate:new ListKeyboardDelegate({collection:g.collection,ref:v,layout:t,orientation:o,direction:f,disabledKeys:g.disabledKeys})},g,v),{collectionProps:z,dragState:_,dropState:h}=xn({...d,layout:t,orientation:o,enableReorder:i,preview:m},g,v),{isFocusVisible:P,isFocused:C,focusProps:T}=useFocusRing(),x=filterTruthyValues({"data-block-id":l,"data-layout":t,"data-empty":g.collection.size===0,"data-focused":C,"data-focus-visible":P,"data-orientation":o});return jsxs("ul",{...mergeProps(y,T,x,z),className:classNames(In,"BaselineUI-ListBox",e),style:n,ref:mergeRefs(c,v),children:[[...g.collection].map(w=>{let L={key:w.key,state:g,dragState:_,dropState:h,renderOption:s,renderDropIndicator:d.renderDropIndicator,showSelectedIcon:r,orientation:o,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName};return w.type==="section"?jsx(Dt,{...L,section:w}):jsx(So,{...L,item:w})}),p?jsx(DragPreview,{ref:m,children:p}):null]})});Ht.displayName="ListBoxBase";var ue=ho.forwardRef((e,t)=>jsx(Ht,{...e,ref:t,children:o=>o.type==="section"?jsx(Section,{items:o.children,title:o.id,children:r=>jsx(Item,{children:r.label},r.id)},o.id):jsx(Item,{children:o.label},o.id)}));ue.displayName="ListBox";var dr="uf19bsg _1yep5z6ki",On=b({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0 _1yep5z6kx _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ks",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610d"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg",popover:"uf19bse _1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z6mn _1yep5z6mo _1yep5z6mp _1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nq _1yep5z6nr _1yep5z6ns _1yep5z6uz _1yep5z6v0 _1yep5z6v1"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61mf"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mf"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ln"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61lm _1yep5z61mg"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61ls"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"toolbar",isPressed:!0},"_1yep5z61mf"],[{variant:"primary",isPressed:!0},"_1yep5z61mf"],[{variant:"secondary",isPressed:!0},"_1yep5z61ln"],[{variant:"tertiary",isPressed:!0},"_1yep5z61lq _1yep5z61mg"],[{variant:"ghost",isPressed:!0},"_1yep5z61lt"],[{variant:"popover",isPressed:!0},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"ghost",isDisabled:!1},"_1yep5z61lr"],[{variant:"popover",size:"lg"},"_1yep5z61h4 _1yep5z61h5 _1yep5z61h6 _1yep5z61hs _1yep5z61ht _1yep5z61hu _1yep5z61ig _1yep5z61ih _1yep5z61ii _1yep5z61j4 _1yep5z61j5 _1yep5z61j6"]]});var cr=b({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6dy _1yep5z6ki",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5"},isDisabled:{true:"oom8bs6"},isFocusVisible:{true:"oom8bs7"},isHovered:{true:"oom8bs8"},size:{sm:"oom8bs9",md:"oom8bsa"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsb"],[{variant:"secondary",isHovered:!0},"oom8bsc"],[{variant:"tertiary",isHovered:!0},"oom8bsd"],[{variant:"popover",isHovered:!0},"oom8bse"],[{variant:"ghost",isHovered:!0},"oom8bsf"],[{variant:"primary",isFocusVisible:!0},"oom8bsg"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsh"]]});var zu={sm:16,md:20},j=ho.forwardRef(({label:e,style:t,className:o,iconStart:r,iconEnd:a,variant:n="primary",elementType:s="button",isDisabled:i,size:l="sm","data-block-id":p,...d},c)=>{let m=ho.useRef(null),{buttonProps:u,isPressed:f}=useButton({...d,elementType:s,isDisabled:i},m),g=zu[l],{hoverProps:v,isHovered:y}=useHover({isDisabled:i}),{isFocusVisible:z,isFocused:_,focusProps:h}=useFocusRing();return jsxs(s,{...mergeProps(u,v,h),className:classNames(cr({isDisabled:!!i,isFocusVisible:z,isHovered:y,variant:n,size:l}),"BaselineUI-ActionButton",o),"data-focus-visible":z,"data-focused":_,"data-hovered":y,"data-disabled":i,"data-block-id":p,"data-pressed":f,style:t,ref:mergeRefs(c,m),children:[!!r&&jsx(r,{size:g}),e,!!a&&jsx(a,{size:g}),n==="popover"&&jsx(ChevronDownIcon,{size:8,className:dr})]})});j.displayName="ActionButton";var Mo=b({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var mr="z9nup80",to="z9nup83",Un="z9nup87";var qn=ho.forwardRef(({className:e,node:t},o)=>{let r=ho.useRef(null);return ho.useEffect(()=>{let a=r.current;return a?.append(t),()=>{a?.contains(t)&&t.remove();}},[t]),jsx("div",{className:classNames(mr,e),ref:mergeRefs(o,r)})});qn.displayName="DomNodeRenderer";var Kn="_14uvjig0 z9nup81",Gn="_14uvjig7",Yn="_14uvjig3",Xn=b({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Wn=b({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Zn="_14uvjig8",$n=b({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var ao=b({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),ur=b({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),no=b({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),he="nrh1eh3",Ce=b({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),xe=b({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),so=b({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function Pe({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:s}){return e?jsx("div",{...o,className:ao({isDisabled:s,labelPosition:n}),children:e}):a?jsx("div",{...t,className:ao({hasError:!0,labelPosition:n}),children:a}):r?jsx("div",{className:ao({isDisabled:s,labelPosition:n}),children:r}):null}var Qn=b({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Jn="_1lnwne0";var Lu={xxs:8,xs:12,sm:16,md:20,lg:24},N=ho.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:s=n?"div":"button",...i},l)=>{!i["aria-label"]&&!i["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let p=ho.useRef(null),{buttonProps:d,isPressed:c}=useButton({...i,elementType:s},p),{isFocusVisible:m,isFocused:u,focusProps:f}=useFocusRing(),{hoverProps:g,isHovered:v}=useHover({isDisabled:i.isDisabled}),y=filterTruthyValues({"data-block-id":i["data-block-id"],"data-focused":u,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":v,"data-pressed":c});return jsxs(s,{...mergeProps(d,g,f,y),className:classNames(On({variant:a,size:r,isDisabled:!!i.isDisabled,isFocusVisible:m,isHovered:v,isPressed:c}),"BaselineUI-ActionIconButton",e),ref:mergeRefs(l,p),style:t,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(o,{role:"presentation",size:Lu[r]}),a==="popover"&&jsx(ChevronDownIcon,{size:8,className:dr})]})});N.displayName="ActionIconButton";var ge=ho.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:a=!0,...n},s)=>{let i=ho.useRef(null),{locale:l}=useLocale(),p=useNumberFieldState({...n,locale:l}),{hoverProps:d,isHovered:c}=useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:f}=useFocusRing(),{labelProps:g,decrementButtonProps:v,inputProps:y,incrementButtonProps:z,groupProps:_,descriptionProps:h,errorMessageProps:P}=useNumberField(n,p,i),C=useMemo(()=>n.isReadOnly?ReadOnlyIcon:n.isInvalid?ErrorFilledIcon:null,[n.isInvalid,n.isReadOnly]),T=Pe({description:n.description,errorMessageProps:P,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:o,isDisabled:n.isDisabled}),x=filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":c,"data-focused":f,"data-focus-visible":u,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"]});return jsxs("div",{style:t,className:classNames(xe({labelPosition:o}),"BaselineUI-NumberInput",e),...x,ref:s,children:[n.label?jsxs("div",{className:Ce({labelPosition:o,hasMessage:!!T}),children:[jsx("label",{...g,className:he,children:n.label}),o==="start"&&T]}):null,jsxs("div",{className:classNames({[to]:n.isDisabled}),children:[jsxs("div",{...mergeProps(_,d),className:classNames(so({isHovered:c,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:f,variant:r}),{[Jn]:o==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...mergeProps(y,m),ref:i,className:classNames("BaselineUI-NumberInput-Input",ur({isDisabled:n.isDisabled,labelPosition:o}))}),C?jsx(C,{className:no({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxs("div",{className:Qn({isHoveredOrFocused:c||f,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsx(N,{variant:"secondary",size:"xxs",icon:MinusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"}),jsx(D,{style:{height:16},orientation:"vertical"}),jsx(N,{variant:"secondary",size:"xxs",icon:PlusIcon,...z,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),o==="top"&&T]})]})});ge.displayName="NumberInput";var br=ho.forwardRef(({className:e,style:t,onChange:o,onChangeEnd:r,numberFormatOptions:a,isDisabled:n,step:s,minValue:i,maxValue:l,value:p,"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,"data-block-id":f,defaultValue:g,isReadOnly:v,label:y,id:z,includeNumberInput:_},h)=>{let P=ho.useRef(null),C={onChange:o===void 0?void 0:I=>{o(I[0]);},isDisabled:n||v,step:s,minValue:i,maxValue:l,onChangeEnd:r===void 0?void 0:I=>{r(I[0]);},value:p===void 0?void 0:[p],defaultValue:g===void 0?void 0:[g],"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,id:z,label:y},T=useNumberFormatter(a),x=useSliderState({...C,numberFormatter:T}),{trackProps:w,groupProps:L,labelProps:H}=useSlider(C,x,P),R=jsx(ge,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":H.id,value:x.getThumbValue(0),formatOptions:a,onChange:I=>{x.setThumbValue(0,I);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxs("div",{...L,style:t,"data-block-id":f,className:classNames(Kn,"BaselineUI-Slider",e),children:[y?jsxs("div",{className:Yn,children:[jsx("label",{...H,className:classNames(Xn({isDisabled:n,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:y}),_?R:null]}):null,jsxs("div",{className:Gn,children:[jsx("div",{...w,className:classNames(Zn,"BaselineUI-Slider-Track"),ref:mergeRefs(P,h),"data-testid":"track",children:jsx(oy,{state:x,trackRef:P,isDisabled:n,isReadOnly:v})}),_&&!y?R:null]})]})});br.displayName="Slider";function oy({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let a=ho.useRef(null),{thumbProps:n,inputProps:s,isDragging:i}=useSliderThumb({trackRef:t,inputRef:a},e),{focusProps:l,isFocused:p,isFocusVisible:d}=useFocusRing(),{hoverProps:c,isHovered:m}=useHover({isDisabled:o}),u=filterTruthyValues({"data-disabled":o,"data-readonly":r,"data-hovered":m,"data-focus-visible":d,"data-dragging":i,"data-focused":p});return jsxs(Fragment,{children:[jsx("div",{className:classNames($n({isDisabled:o,isFocusVisible:d,active:i,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsx("div",{...mergeProps(n,c,u),className:classNames(Wn({isDisabled:o,isFocusVisible:d,active:i,isReadOnly:r,isHovered:m}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsx(VisuallyHidden,{children:jsx("input",{ref:a,...mergeProps(s,l)})})})]})}var ns=b({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),ss=b({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),is="bpklwad",ls=b({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ps="bpklwa6",ds=b({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var ys=ho.forwardRef(({className:e,label:t,labelPosition:o="top",statusLabel:r,style:a,"data-block-id":n,...s},i)=>{let l=ho.useRef(null),p=useToggleState(s),{inputProps:d,isPressed:c}=useSwitch(s,p,l),{isFocusVisible:m,focusProps:u}=useFocusRing(),{hoverProps:f,isHovered:g}=useHover({isDisabled:s.isDisabled}),v=filterTruthyValues({"data-block-id":n,"data-focused":m,"data-disabled":s.isDisabled,"data-focus-visible":m,"data-selected":p.isSelected,"data-readonly":s.isReadOnly,"data-hovered":g,"data-pressed":c}),y=jsx("div",{className:classNames(ns({isSelected:p.isSelected,isDisabled:!!s.isDisabled,isFocused:m,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:classNames(ss({isSelected:p.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxs("label",{...mergeProps(v,f),className:classNames(ls({labelPosition:o}),"BaselineUI-Switch",e),style:a,ref:i,children:[t?jsx("span",{className:classNames(is,"BaselineUI-Switch-Label"),children:t}):null,jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,u),ref:l})}),r?jsxs("div",{className:ds({labelPosition:o}),children:[jsx("span",{className:classNames("BaselineUI-Switch-Status-Label",ps),children:p.isSelected?r.on:r.off}),y]}):y]})});ys.displayName="Switch";var fs="_19n40yy9",bs=b({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});var vy={sm:SearchIcon,md:SearchIcon$1,lg:SearchIcon$1},_s=ho.forwardRef(({className:e,size:t="md",variant:o="primary",...r},a)=>{let n=ho.useRef(null),s=useSearchFieldState(r),{inputProps:i,clearButtonProps:l}=useSearchField({...r,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},s,n),{focusProps:p,isFocusVisible:d,isFocused:c}=useFocusRing({within:!0,isTextInput:!0}),m=vy[t],u=t==="sm"?XIcon$2:XIcon$3,f=filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":c,"data-disabled":r.isDisabled,"data-focus-visible":d});return jsxs("div",{...f,className:classNames(bs({size:t,isFocused:c,variant:o,hasText:!!s.value,isDisabled:r.isDisabled}),"BaselineUI-SearchInput",e),ref:a,children:[jsx(m,{size:t==="sm"?20:24}),jsx("input",{...mergeProps(i,p),className:fs,ref:n}),s.value!==""&&jsx(N,{icon:u,...l,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});_s.displayName="SearchInput";function qt(e=window){let[t,o]=useState("light"),[r,a]=useState(!1),[n,s]=useState(!1),[i,l]=useState(!1);return useEffect(()=>{let p=e.matchMedia("(prefers-color-scheme: dark)"),d=c=>{o(c.matches?"dark":"light");};return p.matches&&o("dark"),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-contrast: more)"),d=c=>{a(c.matches);};return a(p.matches),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-reduced-motion: reduce)"),d=c=>{s(c.matches);};return p.matches&&s(!0),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=c=>{l(c.matches);};return p.matches&&l(!0),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),{colorScheme:t,highContrast:r,reducedMotion:n,transparency:i}}var Re=createContext({theme:lightTheme,setTheme:()=>{}});var zs="var(--hj25q10)";var _r={LIGHT:{name:"light",theme:lightTheme},DARK:{name:"dark",theme:darkTheme}},we=ho.forwardRef(({theme:e="system",children:t,setTheme:o,className:r,style:a,UNSAFE_domProps:n,"data-block-id":s},i)=>{let{direction:l}=useLocale(),{colorScheme:p,reducedMotion:d,highContrast:c,transparency:m}=qt(),{name:u,theme:f}=useMemo(()=>{switch(e){case"system":return p==="light"?_r.LIGHT:_r.DARK;case"light":return _r.LIGHT;case"dark":return _r.DARK;default:return {name:"custom",theme:e}}},[p,e]),g={"data-theme":u,"data-block-id":s,"data-reduced-motion":d,"data-high-contrast":c,"data-transparency":m},v=useMemo(()=>({theme:f,setTheme:o}),[f,o]);return jsx(Re.Provider,{value:v,children:jsx("div",{...mergeProps(n,g),className:classNames(mr,"BaselineUI-ThemeProvider",r),style:{...assignInlineVars(themeVars,f),...assignInlineVars({[zs]:l==="rtl"?"-1":"1"}),...a},ref:i,children:t})})});we.displayName="ThemeProvider";var Kt=ho.createContext(void 0),Ps=({portalContainer:e,children:t})=>jsx(Kt.Provider,{value:e,children:t});Ps.displayName="PortalContainerProvider";function Rs({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:a,root:n}){let s=ho.useRef(null);useEffect(()=>{if(o){s.current?.disconnect(),s.current=null;return}s.current=new IntersectionObserver(([i])=>{t(i);},{root:n?.current,rootMargin:a,threshold:r});},[t,o,n,a,r]),useEffect(()=>{let{current:i}=s;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]);}function ws({ref:e,onResize:t,isDisabled:o}){let r=ho.useRef(null),[a,n]=ho.useState();return ho.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([s])=>{n(s.contentRect),t?.(s);});},[t,o,n]),ho.useEffect(()=>{let{current:s}=r;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]),{size:a}}function hr({src:e,alt:t}){let[o,r]=useState(!1),[a,n]=useState(!1),[s,i]=useState(!1),l=()=>{r(!0),i(!1);},p=()=>{n(!0),i(!1);};return useEffect(()=>{if(!e)return;i(!0);let d=new Image;return d.src=e,d.addEventListener("load",l),d.addEventListener("error",p),()=>{d.removeEventListener("load",l),d.removeEventListener("error",p);}},[e]),{isLoaded:o,hasError:a,isLoading:s,imgProps:{src:o?e:void 0,alt:t}}}function Ie(){let e=useRef(!0);return useEffect(()=>{e.current=!1;},[]),e.current}var Is="SET_STATE",Cr="UNDO",xr="REDO",Hy=(e,t)=>{let{past:o,present:r,future:a}=e;switch(t.type){case Is:return {past:[...o,r],present:t.data,future:[]};case Cr:return {past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...a]};case xr:return {past:[...o,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},Ts=(e={},{isDisabled:t,onAction:o})=>{let r=Ie(),[a,n]=useReducer(Hy,{past:[],present:e,future:[]}),{past:s,present:i,future:l}=a,p=g=>{n({type:Is,data:g});},d=useRef(),c=()=>{d.current=Cr,n({type:Cr});},m=()=>{d.current=xr,n({type:xr});},u=!!s?.length,f=!!l?.length;return useGranularEffect(()=>{(d.current===Cr||d.current===xr)&&(o?.(i,d.current),d.current=void 0);},[i],[o,r]),{state:i,push:t?()=>{}:p,undo:t?()=>{}:c,redo:t?()=>{}:m,pastStates:s,futureStates:l,canUndo:u,canRedo:f}};var Yt=ho.createContext({messages:{}}),Ms=({children:e,messages:t={},...o})=>{let r=ho.useMemo(()=>({messages:t}),[t]);return jsx(I18nProvider,{...o,children:jsx(Yt.Provider,{value:r,children:e})})};Ms.displayName="I18nProvider";function M(e){let{messages:t}=useContext(Yt);!e&&Oy(t)&&console.warn("BUI \u{1F30D}: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");let o=useMessageFormatter(e?cleanKeyFromGlobImport(e):t),r=useLocale();return {formatMessage:(a,n)=>{if(typeof a=="object")try{return o(a.id,n)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.id.toString()}\`. The default message, i.e. \`${a.defaultMessage}\`, will be used instead.`),a.defaultMessage||a.id}else try{return o(a,n)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.toString()}\`. The default message, i.e. \`${a.toString()}\`, will be used instead.`),a}},locale:r}}var $=e=>e;function B0(e,t,o){let r=ho.useRef(null);return ho.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,t),()=>{r.current&&r.current.disconnect();}},[e,t,o]),r.current}function Bs(e,t){let[o,r]=useState(()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.log(n),t}});return [o,n=>{try{let s=n instanceof Function?n(o):n;r(s),window.localStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}}]}function O0({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let a=ho.useRef(null);usePress({ref:e,isDisabled:r,onPressEnd(){let s=getOwnerWindow(e.current).getSelection();s&&e.current?.contains(s.anchorNode)&&o?.(s);},onPressStart(){let n=getOwnerWindow(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),useEffect(()=>{let n=e.current;if(!n||r)return;function s(){let p=getOwnerWindow(n).getSelection();p&&e.current?.contains(p.anchorNode)&&t(p);}let i=getOwnerDocument(n);return i.addEventListener("selectionchange",s),()=>{i.removeEventListener("selectionchange",s);}},[e,t,r]);}function Pr(e){let t=useCallback(()=>{let a=getOwnerWindow(e??document.body),n=a.matchMedia(queries.tablet),s=a.matchMedia(queries.desktop);return n.matches?"tablet":s.matches?"desktop":"mobile"},[e]),[o,r]=ho.useState(t);return useLayoutEffect$1(()=>{let a=getOwnerWindow(e),n=()=>{r(t());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[e,t]),o}function te(e){let t=useContext(Kt);return e||t}var Fs=b({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),kr="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Hs=b({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Vs="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs",As="_1yep5z66x _1yep5z66y _1yep5z66z",Os="_1mdhlqv5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k";function js({placement:e}){let t=useReducedMotion();return useTransition(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!t,config:config.stiff})}var Us={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},qs="_1gzftth1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",Ks="_1gzftth6",Gs="_1gzftth7",Ys="var(--_1gzftth0)";var{color:Wt}=themeVars,ve=ho.forwardRef(({className:e,style:t,state:o,overlayProps:r,underlayClassName:a,children:n,includeArrow:s=!1,offset:i=2,portalContainer:l,contentContainerClassName:p,contentContainerStyle:d,...c},m)=>{let{theme:u}=useContext(Re),f=ho.useRef(null),g=te(l),v=s?8:0,{underlayProps:y,popoverProps:z,placement:_,arrowProps:h}=usePopover({...c,offset:i+v,popoverRef:f},o),P=js({placement:_}),C=_==="center"?"bottom":_;return P((T,x)=>x&&jsx(Overlay,{portalContainer:g,children:jsxs(we,{ref:m,theme:u,style:t,children:[!c.isNonModal&&jsx("div",{...y,className:classNames(Gs,a,"BaselineUI-Popover-Underlay")}),jsxs(animated.div,{...z,style:{...z.style,...T,...assignInlineVars({[Ys]:`${c.triggerRef?.current?.offsetWidth}px`})},ref:mergeRefs(f,m),className:classNames(qs,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(w=>_?.includes(w)),children:[s?jsxs("svg",{className:classNames(Us[C],"BaselineUI-PopoverContent-Arrow"),...h,style:{...h.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Wt.border.medium}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Wt.background.primary.subtle,stroke:Wt.background.primary.subtle})]}):null,jsx(DismissButton,{onDismiss:o.close}),jsx("div",{...r,style:d,className:classNames(Ks,p),children:n}),jsx(DismissButton,{onDismiss:o.close})]})]})}))});ve.displayName="PopoverContentCore";var Zs="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6l0 _1yep5z6kz _1yep5z6he _1yep5z6l3 _1yep5z6fs",$s="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var $t=({section:e,showSelectedIcon:t,state:o})=>{let{itemProps:r,groupProps:a,headingProps:n}=useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxs(Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsx(D,{elementType:"li"}),jsxs("li",{...r,children:[e.value?.title?jsx(VisuallyHidden,{children:jsx("span",{...n,children:e.value.title})}):null,jsx("ul",{...a,className:$s,children:[...e.childNodes].map(s=>(invariant(s.type==="item"),jsx(wr,{item:s,state:o,showSelectedIcon:t},s.key)))})]})]})};$t.displayName="MenuSection";var wr=({item:e,state:t,className:o,showSelectedIcon:r})=>{let a=ho.useRef(null),n=useMenuItem({key:e.key},t,a),{isFocusVisible:s,focusProps:i}=useFocusRing();return jsx(No,{item:e,liProps:mergeProps(n.menuItemProps,i,{className:o}),...n,isFocusVisible:s,ref:a,description:e.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:t,showSelectedIcon:r})};wr.displayName="MenuItem";var Jt=ho.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},a)=>{let n=useTreeState(r),s=ho.useRef(null),{menuProps:i}=useMenu(r,n,s),{keyboardProps:l}=useKeyboard({onKeyDown:o});return jsx("ul",{...mergeProps(i,l),className:classNames(Zs,e),ref:mergeRefs(s,a),children:[...n.collection].map(p=>p.type==="section"?jsx($t,{section:p,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):jsx(wr,{item:p,state:n,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Jt.displayName="MenuContent";var oi=ho.forwardRef(({isDisabled:e,contentClassName:t,state:o,placement:r="bottom start",isNonModal:a,shouldFlip:n,shouldUpdatePosition:s,boundaryElement:i,crossOffset:l,offset:p,triggerButton:d,portalContainer:c,...m},u)=>{let f=ho.useRef(null),g=te(c),{menuTriggerProps:v,menuProps:y}=useMenuTrigger({isDisabled:e,type:"menu"},o,f);return jsxs(Fragment,{children:[jsx(Slot,{...mergeProps(v,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(z=>r.includes(z)),isSelected:o.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:f,children:d}),o.isOpen?jsx(ve,{triggerRef:f,state:o,placement:r,isNonModal:a,shouldFlip:n,shouldUpdatePosition:s,boundaryElement:i,crossOffset:l,offset:p||2,className:classNames(kr,"BaselineUI-Menu-Popover"),portalContainer:g,children:jsx(Jt,{className:t,...y,...m,ref:u,autoFocus:o.focusStrategy||"first"})}):null]})});oi.displayName="MenuRoot";var oa=ho.forwardRef((e,t)=>{let o=e.children;return jsx(oi,{...e,ref:t,triggerButton:o,children:r=>"type"in r&&r.type==="section"?jsx(Section,{items:r.children,title:r.title,children:a=>jsx(Item,{children:a.label},a.id)},r.id):(invariant("label"in r,"Item doesn't have a label"),jsx(Item,{textValue:r.label,children:r.label},r.id))})});oa.displayName="MenuBase";var ri=ho.forwardRef(({defaultOpen:e,isOpen:t,onOpenChange:o,...r},a)=>{let n=useMenuTriggerState({defaultOpen:e,isOpen:t,onOpenChange:o});return jsx(oa,{...r,state:n,ref:a})});ri.displayName="Menu";var ti=b({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var Ir=ho.forwardRef(({className:e,style:t,children:o,variant:r="default",size:a="md",elementType:n="a",type:s="body","data-block-id":i,title:l,...p},d)=>{let c=ho.useRef(null),{linkProps:m,isPressed:u}=useLink({...p,elementType:p.onPress?"span":n},c),{isFocusVisible:f,isFocused:g,focusProps:v}=useFocusRing(),{hoverProps:y,isHovered:z}=useHover({isDisabled:p.isDisabled}),_=n,h=filterTruthyValues({"data-block-id":i,"data-disabled":p.isDisabled,"data-focused":g,"data-pressed":u,"data-focus-visible":f,"data-hovered":z,title:l});return jsx(_,{...mergeProps(m,v,y,h),className:classNames(ti({variant:r,isFocusVisible:f,isHovered:z,isDisabled:p.isDisabled,size:a,isActive:u,type:s}),"BaselineUI-Link",e),ref:mergeRefs(c,d),style:t,children:o})});Ir.displayName="Link";function ni({isDisabled:e,onValueChange:t,onChange:o,name:r,"aria-describedby":a,"aria-label":n,accept:s,multiple:i}){let l=useId(),p=useId(),d=useId();return {inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":n?void 0:l,"aria-describedby":a||d,"aria-label":n,onChange:m=>{let u=[...m.target.files||[]];t?.(u),o?.(m);},name:r,accept:s,multiple:i},labelProps:{htmlFor:p,id:l},descriptionProps:{id:d}}}async function ta({items:e}){let t=e.filter(o=>o.kind==="file").map(async o=>(invariant(o.kind==="file"),o.getFile()));return await Promise.all(t)}var si=b({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),ii=b({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),li=b({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),pi=b({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var ui=ho.forwardRef(({className:e,label:t,description:o,icon:r,variant:a="default",...n},s)=>{let i=ho.useRef(null),{inputProps:l,descriptionProps:p,labelProps:d}=ni(n),{dropProps:c}=useDrop({ref:i,onDrop:async({items:v})=>{let y=v.filter(_=>_.kind==="file").map(async _=>(invariant(_.kind==="file"),_.getFile())),z=await Promise.all(y);n.onValueChange?.(z);}}),{focusProps:m,isFocusVisible:u}=useFocusRing(),{hoverProps:f,isHovered:g}=useHover({isDisabled:n.isDisabled});return jsxs("label",{...mergeProps(c,f,d),className:classNames(si({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:g||u}),e),ref:mergeRefs(s,i),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(m,l)})}),r?jsx(r,{size:20,className:li({disabled:n.isDisabled})}):null,jsxs("div",{children:[jsx("div",{className:pi({disabled:n.isDisabled,hovered:g}),children:t}),o?jsx("div",{...p,className:ii({disabled:n.isDisabled}),children:o}):null]})]})});ui.displayName="FileUpload";var yi="_12vfhl40 z9nup81",fi="_12vfhl41 z9nup82",bi=b({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),gi="_12vfhl42",vi="_12vfhl47",_i="_12vfhl46 z9nup82",zi="_12vfhl45",hi=b({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Ci=ho.forwardRef(({className:e,variant:t="active",showValue:o,description:r,errorMessage:a,...n},s)=>{let i=useId(),{labelProps:l,progressBarProps:p}=useProgressBar({...n,"aria-describedby":r?i:n["aria-describedby"]}),{minValue:d=0,maxValue:c=100,value:m=0,label:u}=n,f=(m-d)/(c-d),g=`${Math.round(f*100)}%`,v=jsx("output",{className:hi({hasLabel:!!u}),children:p["aria-valuetext"]}),y=t==="error"?a:r;return jsxs("div",{...p,className:classNames(yi,e),ref:s,children:[u?jsxs("div",{className:fi,children:[jsx("label",{...l,className:gi,children:u}),o?v:null]}):null,jsxs("div",{className:zi,children:[jsxs("div",{className:_i,children:[jsx("div",{className:vi,children:jsx("div",{style:{width:g},className:bi({variant:t})})}),!u&&o?v:null]}),y?jsx("div",{className:ao({hasError:t==="error"}),id:i,children:y}):null]})]})});Ci.displayName="ProgressBar";function Nr({isReadOnly:e,validationState:t}){return e?ReadOnlyIcon:t==="error"?ErrorFilledIcon:t==="warning"?WarningFilledIcon:null}var co=ho.forwardRef(({className:e,validationState:t="valid",variant:o="primary",style:r,labelPosition:a="top",inputStyle:n,inputClassName:s,"data-block-id":i,...l},p)=>{let d=ho.useRef(null),{inputProps:c,labelProps:m,descriptionProps:u,errorMessageProps:f,validationErrors:g}=useTextField({...l,validationState:t==="error"?"invalid":"valid"},d),v=l.errorMessage||g.join(" "),y=Pe({...l,errorMessage:v,descriptionProps:u,errorMessageProps:f,labelPosition:a});v&&(t="error");let{hoverProps:z,isHovered:_}=useHover({isDisabled:l.isDisabled}),{isFocused:h,focusProps:P,isFocusVisible:C}=useFocusRing(),T=Nr({isReadOnly:l.isReadOnly,validationState:t}),x=filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":t,"data-focused":h,"data-focus-visible":C});return jsxs("div",{className:classNames(xe({labelPosition:a}),"BaselineUI-TextInput",e),"data-block-id":i,style:r,ref:p,children:[l.label||a==="start"&&y?jsxs("div",{className:Ce({labelPosition:a,hasMessage:!!y}),children:[jsx("label",{...m,className:he,children:l.label}),a==="start"&&y]}):null,jsxs("div",{className:classNames({[to]:l.isDisabled}),children:[jsxs("div",{...z,className:so({validationState:t,isHovered:_,isFocused:h,variant:o,isReadOnly:!!l.isReadOnly,isDisabled:!!l.isDisabled}),children:[jsx("input",{...mergeProps(c,P,x),className:classNames(ur({isDisabled:l.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",s),style:n,ref:d}),T?jsx(T,{className:no({validationState:t,isReadOnly:l.isReadOnly}),size:16}):null]}),a==="top"&&y]})]})});co.displayName="TextInput";var mo=({value:e,...t})=>{let o=useNumberFormatter(t);return jsx(Fragment,{children:o.format(e)})};mo.displayName="NumberFormat";var Pi="_1yep5z6i3 _1yep5z6i4 _1yep5z6i5",ki=b({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),Ri=b({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),wi=b({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var Ni=ho.forwardRef(({className:e,count:t,style:o,size:r="md",icon:a,...n},s)=>{let i={isRequired:!1},l=a||(r==="md"?CheckmarkIcon$2:CheckmarkIcon$3);!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let p=ho.useRef(null),d=useToggleState({...n,...i}),{inputProps:c,isPressed:m,isDisabled:u,isReadOnly:f,isSelected:g}=useSwitch({...n,...i},d,p),{focusProps:v,isFocused:y,isFocusVisible:z}=useFocusRing(),{hoverProps:_,isHovered:h}=useHover({});return jsxs("label",{ref:s,style:o,className:classNames(Pi,"BaselineUI-Reaction",e),"data-block-id":n["data-block-id"],"data-focused":y,"data-focus-visible":z,"data-disabled":u,"data-hovered":h,"data-pressed":m,"data-selected":g,children:[jsx(VisuallyHidden,{children:jsx("input",{...c,...v,ref:p})}),jsxs("div",{..._,className:ki({isSelected:g,isFocusVisible:z,isHovered:h,isReadOnly:f,isDisabled:u}),children:[jsx("div",{className:wi({isDisabled:u,isReadOnly:f}),children:jsx(l,{size:r==="md"?20:16})}),jsx("div",{className:Ri({isSelected:d.isSelected,isDisabled:u,isReadOnly:f,size:r}),children:jsx(mo,{value:t})})]})]})});Ni.displayName="Reaction";var Si=b({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Mi=b({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g0 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6fs _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var sa=ho.forwardRef(({children:e,state:t,overlayProps:o,arrowProps:r,placement:a,variant:n,size:s,tooltipProps:i,includeArrow:l},p)=>{let{tooltipProps:d}=useTooltip({isOpen:t.isOpen},t),c=useMemo(()=>{switch(a){case"top":return {x:0,y:4};case"bottom":return {x:0,y:-4};case"left":return {x:4,y:0};case"right":return {x:-4,y:0};default:return {x:0,y:0}}},[a]),m=useReducedMotion(),[u]=useSpring(()=>({from:{opacity:0,transform:`translate(${c.x}px, ${c.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!m})),f=a==="center"?"bottom":a;return jsxs(animated.span,{...o,style:{...u,...o.style},ref:p,"data-placement":f,children:[l?jsx("div",{className:Si({placement:f,variant:n}),...r}):null,jsx("div",{...mergeProps(d,i),className:Mi({variant:n,size:s}),children:e})]})});sa.displayName="TooltipContent";var Mr=ho.forwardRef(({className:e,children:t,...o},r)=>{let{theme:a}=useContext(Re);return jsx(Overlay,{...o,children:jsx(we,{ref:r,theme:a,className:classNames("BaselineUI-Portal",e),children:t})})});Mr.displayName="Portal";var Ei=ho.forwardRef(({children:e,placement:t="bottom",delay:o=1e3,closeDelay:r=500,variant:a="default",size:n="md",includeArrow:s=!0,portalContainer:i,...l},p)=>{let d=ho.useRef(null),c=ho.useRef(null),m=!l.text||l.isDisabled,u=useTooltipTriggerState({...l,delay:o,closeDelay:r,isDisabled:m}),{triggerProps:f,tooltipProps:g}=useTooltipTrigger({...l,isDisabled:m,delay:o,closeDelay:r},u,d),v=te(i),{overlayProps:y,arrowProps:z,placement:_,updatePosition:h}=useOverlayPosition({arrowSize:s?13:0,targetRef:d,arrowBoundaryOffset:s?8:0,offset:s?12:2,overlayRef:c,placement:t,isOpen:u.isOpen,...l});return Rs({ref:c,threshold:1,onIntersect:h,isDisabled:!u.isOpen}),ws({ref:d,onResize:h,isDisabled:!u.isOpen}),jsxs(FocusableProvider,{...f,ref:d,children:[e,u.isOpen?jsx(Mr,{disableFocusManagement:!0,portalContainer:v,children:jsx(sa,{ref:mergeRefs(p,c),state:u,arrowProps:z,overlayProps:y,placement:_,tooltipProps:g,variant:a,size:n,includeArrow:s,children:l.text})}):null]})});Ei.displayName="Tooltip";var Fi="_1azy5686",Hi="_1azy5685",Vi="var(--_1azy5680)",Ai="_1azy5688",Oi="_1azy5689",ji="_1azy5681 z9nup82",Ui="_1azy5682";var qi="_1azy5687";var Y1={sm:16,md:20},X1={sm:[CheckFilledIcon,ErrorAltFilledIcon],md:[CheckFilledIcon$1,ErrorAltFilledIcon$1]},Lr=ho.forwardRef(({className:e,style:t,size:o="md",variant:r="active",...a},n)=>{let{labelProps:s,progressBarProps:i}=useProgressBar({...a,isIndeterminate:!0}),l=Y1[o],p=l/2-2,d=2*p*Math.PI,c=X1[o][r==="success"?0:1];return jsxs("div",{className:classNames(ji,e),ref:n,style:{...assignInlineVars({[Vi]:`${d}px`}),...t},children:[jsxs("div",{...i,className:Ui,children:[(r==="active"||r==="inactive")&&jsxs("svg",{height:l,width:l,viewBox:`0 0 ${l} ${l}`,children:[jsx("circle",{role:"presentation",className:Fi,cx:l/2,cy:l/2,r:p}),r==="active"&&jsx("circle",{role:"presentation",className:Hi,cx:l/2,cy:l/2,r:p})]}),r==="success"&&jsx(c,{className:qi,size:l}),r==="error"&&jsx(c,{className:Ai,size:l})]}),a.label?jsx("span",{...s,className:Oi,children:a.label}):null]})});Lr.displayName="ProgressSpinner";var Ki=b({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{md:"_5uw3kp5",lg:"_5uw3kp6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp7"]]});var tb={md:20,lg:24},Yi=ho.forwardRef(({className:e,style:t,iconStart:o,size:r="md",elementType:a="button",...n},s)=>{let i=ho.useRef(null),l=useToggleState(n),{buttonProps:p,isPressed:d}=useToggleButton(n,l,i),{hoverProps:c,isHovered:m}=useHover({isDisabled:n.isDisabled}),{isFocusVisible:u,isFocused:f,focusProps:g}=useFocusRing(),v=filterTruthyValues({"data-block-id":n["data-block-id"],"data-focused":f,"data-focus-visible":u,"data-disabled":n.isDisabled,"data-hovered":m,"data-pressed":d,"data-selected":l.isSelected});return jsxs(a,{...mergeProps(p,c,g,v),className:classNames(Ki({isHovered:m,isFocusVisible:u,isSelected:l.isSelected,size:r,isDisabled:n.isDisabled}),"BaselineUI-ToggleButton",e),style:t,ref:mergeRefs(i,s),children:[o?jsx(o,{size:tb[r]}):null,n.label]})});Yi.displayName="ToggleButton";var Br=b({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),Xi=b({defaultClassName:"_16vugd01 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),Wi=b({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]});var Qi=ho.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-block-id":a,...n},s)=>{let i=ho.useRef(null),l=useToggleState(n),{isFocusVisible:p,isFocused:d,focusProps:c}=useFocusRing(),{inputProps:m,isPressed:u,isDisabled:f,isSelected:g,isReadOnly:v}=useCheckbox({...n,children:o},l,i),{hoverProps:y,isHovered:z}=useHover({isDisabled:f}),_=filterTruthyValues({"data-disabled":f,"data-readonly":v,"data-hovered":z,"data-selected":g,"data-pressed":u,"data-indeterminate":n.isIndeterminate,"data-invalid":n.isInvalid,"data-focus-visible":p,"data-focused":d,"data-block-id":a});return jsxs("label",{..._,className:classNames(Xi({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:s,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(m,c),ref:i})}),jsxs("div",{...y,className:Wi({isSelected:g&&!n.isIndeterminate,isIndeterminate:n.isIndeterminate,isFocusVisible:p,isDisabled:f,isReadOnly:v,hasError:n.isInvalid,isHovered:z}),children:[g&&!n.isIndeterminate?jsx(CheckmarkIcon$1,{size:12}):null,n.isIndeterminate?jsx(MinusIcon$1,{size:12}):null]}),o?jsx("span",{className:Br({isDisabled:f}),children:o}):null]})});Qi.displayName="Checkbox";var Ji={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var el=b({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),ol="_1nsi9h1b",rl=b({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),tl="_1nsi9h1c";var Sb={style:"decimal"},Mb={xs:[CaretLeftIcon,CaretRightIcon],sm:[CaretLeftIcon$1,CaretRightIcon$1],md:[CaretLeftIcon$2,CaretRightIcon$2],lg:[CaretLeftIcon$3,CaretRightIcon$3]},il=ho.forwardRef(({className:e,style:t,minValue:o=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":s,size:i="md",variant:l="floating",...p},d)=>{let{locale:c}=useLocale(),m=M(Ji),u={...p,formatOptions:Sb,minValue:o,incrementAriaLabel:a||m.formatMessage("nextPage"),decrementAriaLabel:n||m.formatMessage("prevPage"),defaultValue:r,"aria-label":s||m.formatMessage("goToPage")},f=ho.useRef(null),g=useNumberFieldState({...u,locale:c}),{inputProps:v,decrementButtonProps:y,incrementButtonProps:z,groupProps:_}=useNumberField({...u,onKeyDown:I=>{I.key==="Enter"&&f.current?.blur(),p.onKeyDown?.(I);}},g,f),{hoverProps:h,isHovered:P}=useHover({}),{focusProps:C,isFocused:T,isFocusVisible:x}=useFocusRing(),w=l==="floating",[L,H]=Mb[i],R=filterTruthyValues({"data-focus-visible":x,"data-focused":T,"data-hovered":P,"data-block-id":p["data-block-id"]});return jsxs("div",{...mergeProps(_,h,R),className:classNames(rl({size:i,variant:l}),"BaselineUI-Pagination",e),style:t,ref:d,children:[jsx(N,{icon:L,...y,elementType:"div",size:i,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),l==="floating"&&jsx(D,{orientation:"vertical"}),jsxs("div",{className:el({isFocusVisible:x,variant:l}),"aria-label":m.formatMessage("pageXofY",{arg0:v.value,arg1:g.maxValue}),children:[jsx("input",{...mergeProps(v,C),ref:f,className:classNames("BaselineUI-Pagination-Input",ol),style:{width:`${v.value?.toString().length||1}ch`}}),jsxs("span",{className:tl,children:["/ ",jsx(mo,{value:g.maxValue})]})]}),l==="floating"&&jsx(D,{orientation:"vertical"}),jsx(N,{icon:H,...z,elementType:"div",size:i,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});il.displayName="Pagination";var ll=({date:e,...t})=>{let o=useDateFormatter(t);return jsx(Fragment,{children:o.format(e)})};ll.displayName="DateFormat";var Dr=b({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),pl="_1f789qjj",dl="_1f789qj0",cl=b({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]});var Kb=({item:e,state:t,variant:o="neutral"})=>{let r=ho.useRef(null),{focusProps:a,isFocusVisible:n}=useFocusRing({within:!0}),{rowProps:s,gridCellProps:i,removeButtonProps:l,allowsRemoving:p,isDisabled:d,isSelected:c,allowsSelection:m}=useTag({item:e},t,r),u=ho.useRef(null),{buttonProps:f}=useButton(l,u),{hoverProps:g,isHovered:v}=useHover({isDisabled:d}),{hoverProps:y,isHovered:z}=useHover({isDisabled:d}),_=e.value?.icon,h=e.value?.variant??o;return jsx("div",{...mergeProps(s,a,y),ref:r,className:Dr({isFocusVisible:n,variant:h,isDisabled:d,allowsRemoving:p,isSelected:c,allowsSelection:m,isHovered:z}),children:jsxs("div",{...i,className:pl,children:[c?jsx(CheckmarkIcon$3,{size:16}):null,!c&&_?jsx(_,{size:16}):null,e.rendered,p?jsx("button",{...mergeProps(f,g),className:cl({variant:h,isHovered:v}),children:jsx(XIcon$2,{})}):null]})})},da=ho.forwardRef(({className:e,style:t,...o},r)=>{let a=ho.useRef(null),n=useListState(o),{gridProps:s}=useTagGroup(o,n,a);return jsx("div",{...s,className:classNames(dl,e),style:t,ref:mergeRefs(r,a),children:[...n.collection].map(i=>jsx(Kb,{state:n,item:i,variant:o.variant},i.key))})});da.displayName="TagGroupBase";var fl=ho.forwardRef(({items:e,...t},o)=>jsx(da,{...t,items:e,ref:o,children:r=>jsx(Item,{children:r.label})}));fl.displayName="TagGroup";var bl="_1yep5z6kv",gl=b({defaultClassName:"_1kvz17db _1yep5z6ki _1yep5z6kk",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),vl=b({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ki _1yep5z6kj",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),_l="_1yep5z6ev _1yep5z6dy",zl=b({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ki _1yep5z6kl",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ft",false:"_1yep5z6fu"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),hl="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Cl=b({defaultClassName:"_1kvz17d7 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var ma=ho.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:a}=useContext(Te),{disabledKeys:n}=useContext(Te),{keyboardProps:s}=useKeyboard({onKeyDown:i=>{let l=getRootNode(i.target),p=[...a?.keys()||[]].findIndex(f=>a?.get(f)?.current===l.activeElement),d=a?.get(p||0),c=a?.size||0,m=f=>{let g=a.get(f-1<0?c-1:f-1);n?.has(g?.current?.getAttribute("data-key")||"")?m(f-1):g?.current?.focus();},u=f=>{let g=a.get((f+1)%c);n?.has(g?.current?.getAttribute("data-key")||"")?u(f+1):g?.current?.focus();};if(d)switch(i.key){case"Home":{i.preventDefault(),u(-1);break}case"End":{i.preventDefault(),m(c);break}case"ArrowDown":{i.preventDefault(),u(p);break}case"ArrowUp":{i.preventDefault(),m(p);break}default:i.continuePropagation();}}});return jsx("div",{...s,style:o,className:classNames(bl,t),ref:r,children:ho.Children.map(e,(i,l)=>ho.cloneElement(i,{index:l}))})});ma.displayName="AccordionBase";var Te=ho.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),kl=ho.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:n,className:s,style:i},l)=>{let[p,d]=ho.useState(o),c=ho.useRef(new Map).current,[m,u]=ho.useState(a);useEffect(()=>{u(m);},[m]),useEffect(()=>{n?.(p);},[p,n]);let f=useMemo(()=>({expandedKeys:r||p,setExpandedKeys:r?()=>{}:d,disabledKeys:t,headers:c,expansionMode:m}),[r,p,t,c,m]);return jsx(Te.Provider,{value:f,children:jsx(FocusScope,{children:jsx(ma,{className:s,style:i,ref:l,children:e})})})});kl.displayName="Accordion";var ya=ho.forwardRef(({title:e,actions:t,controlId:o,value:r,id:a,index:n,subLabel:s,showActionsOnTriggerOnly:i},l)=>{let p=ho.useRef(null),{expandedKeys:d,setExpandedKeys:c,expansionMode:m,disabledKeys:u,headers:f}=useContext(Te),g=u?.has(r),v=useFocusManager();invariant(v);let{focusNext:y,focusPrevious:z}=v,{keyboardProps:_}=useKeyboard({onKeyDown:V=>{V.key==="ArrowRight"?y({wrap:!0}):V.key==="ArrowLeft"?z({wrap:!0}):V.continuePropagation();},isDisabled:g});useEffect(()=>{invariant(typeof n=="number","AccordionItem must have an index"),f?.set(n,p);},[n,f]);let h=()=>{c(V=>{let A=new Set(V);return A.has(r)?A.delete(r):(m==="single"&&A.clear(),A.add(r)),A});},{buttonProps:P}=useButton({"aria-expanded":d.has(r),"aria-controls":o,onPress:h,isDisabled:g},p),{pressProps:C}=usePress({onPress:h,isDisabled:g}),{focusProps:T,isFocusVisible:x}=useFocusRing(),{hoverProps:w,isHovered:L}=useHover({isDisabled:g}),{focusProps:H,isFocusVisible:R}=useFocusRing({within:!0}),I=d.has(r);return jsxs("h3",{...mergeProps(_,C,w,H),className:zl({isFocusVisible:x,isHovered:L,isDisabled:g}),ref:l,children:[jsxs("div",{className:Cl({isDisabled:!!g}),children:[jsx(ChevronRightIcon,{className:vl({isExpanded:I}),size:8}),jsx("button",{...mergeProps(P,T),id:a,"data-key":r,className:hl,ref:p,children:e})]}),t?.length?jsx("div",{"data-testid":"action-buttons",className:gl({showActionsOnTriggerOnly:i,isTriggered:R||L}),children:t.map((V,A)=>jsx(N,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:g,...V},A))}):null,s?jsx("div",{className:_l,children:s}):null]})});ya.displayName="AccordionHeader";var Ll=ho.forwardRef(({title:e,actions:t,children:o,value:r,index:a,subLabel:n,style:s,className:i,showActionsOnTriggerOnly:l},p)=>{let d=useId(),c=useId(),{expandedKeys:m}=useContext(Te),u=ho.useRef(null),f=m.has(r),g=Ie(),v=useReducedMotion(),y=useTransition(f?[r]:[],{from:!g&&!v&&{height:0,opacity:0},enter:()=>async z=>{await z({height:u.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:z=>z});return jsxs(Fragment,{children:[jsx(FocusScope,{children:jsx(ya,{value:r,actions:t,id:c,title:e,controlId:d,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),y(z=>jsx(animated.div,{role:"region","aria-labelledby":c,id:d,style:{...z,overflow:"hidden"},children:jsx("div",{ref:u,className:i,style:s,children:o})}))]})});Ll.displayName="AccordionItem";var fa=ho.forwardRef(({variant:e,isOpen:t,validationState:o="valid",...r},a)=>{let n=ho.useRef(null),{buttonProps:s,isPressed:i}=useButton({...r,isDisabled:r.isDisabled||r.isReadOnly},n),{hoverProps:l,isHovered:p}=useHover({isDisabled:r.isDisabled}),{focusProps:d,isFocused:c,isFocusVisible:m}=useFocusRing(),u=Nr({isReadOnly:r.isReadOnly,validationState:o});r.isReadOnly&&(s.disabled=!1);let f=filterTruthyValues({"data-disabled":r.isDisabled,"data-readonly":r.isReadOnly,"data-focused":c,"data-focus-visible":m,"data-hovered":p,"data-pressed":i,"data-open":t});return jsxs("button",{...mergeProps(s,l,d,f),ref:mergeRefs(a,n),className:classNames(Hs({isFocused:m,isDisabled:r.isDisabled}),so({variant:e,isHovered:p,isFocused:m,validationState:o,isDisabled:!!r.isDisabled,isReadOnly:r.isReadOnly}),"BaselineUI-Select-Button"),children:[r.children,u?jsx("span",{"aria-hidden":!0,className:classNames(no({validationState:o,isReadOnly:!!r.isReadOnly}),As),children:jsx(u,{size:16})}):null,jsx("span",{"aria-hidden":!0,children:jsx(ChevronDownIcon,{size:8,className:Fs({isOpen:t})})})]})});fa.displayName="SelectButton";var ga=ho.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary","data-block-id":a,optionStyle:n,optionClassName:s,...i},l)=>{let p=ho.useRef(null),d=useSelectState({...i,validationState:i.validationState==="error"?"invalid":"valid"}),c=te(i.portalContainer),{labelProps:m,triggerProps:u,valueProps:f,menuProps:g,descriptionProps:v,errorMessageProps:y}=useSelect({...i,validationState:i.validationState==="error"?"invalid":"valid"},d,p),z=Pe({...i,descriptionProps:v,errorMessageProps:y,labelPosition:o}),_=d.selectedItem?.value,h=_&&"icon"in _&&_.icon;return jsxs(Fragment,{children:[jsxs("div",{style:t,className:classNames(xe({labelPosition:o}),"BaselineUI-Select",e),"data-block-id":a,ref:l,children:[i.label||z?jsxs("div",{className:Ce({labelPosition:o,hasMessage:!!z}),children:[i.label?jsx("div",{...m,className:classNames(he,"BaselineUI-Select-Label"),children:i.label}):null,o==="start"&&z]}):null,jsx(HiddenSelect,{state:d,triggerRef:p,isDisabled:i.isDisabled,label:i.label,name:i.name}),jsx(fa,{...u,isOpen:d.isOpen,variant:r,validationState:i.validationState,ref:p,isReadOnly:i.isReadOnly,children:jsxs("span",{className:Os,children:[h?jsx(h,{size:24}):null,jsx("span",{...f,children:_?"label"in _&&_?.label:i.placeholder})]})}),o==="top"&&z]}),d.isOpen?jsx(ve,{portalContainer:c,offset:2,state:d,triggerRef:p,style:t,className:classNames(kr,"BaselineUI-Select-Popover"),...i,children:jsx(ue,{...g,label:i.label,items:i.items,UNSAFE_state:d,showSelectedIcon:i.showSelectedIcon,className:Vs,optionStyle:n,optionClassName:s})}):null]})});ga.displayName="SelectBase";var Or=ho.forwardRef((e,t)=>jsx(ga,{...e,ref:t,children:o=>o.type==="section"?jsx(Section,{items:o.children,title:o.id,children:r=>jsx(Item,{children:r.label},r.id)},o.id):jsx(Item,{textValue:o.label,children:o.label},o.id)}));Or.displayName="Select";var Hl="_1017q4c5",Vl=b({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Al="_1017q4c4";var Bg={sm:AvatarIcon,md:AvatarIcon$1},fo=ho.forwardRef(({className:e,style:t,size:o="md",icon:r=Bg[o],name:a,imgSrc:n,showInitials:s,isDisabled:i,hasNotifications:l,imgLoading:p,"data-block-id":d},c)=>{let{imgProps:m}=hr({src:n,alt:a}),u=a?.split(" ").map(f=>f[0]).join("");return jsxs("span",{className:classNames(Vl({size:o,isDisabled:i}),"BaselineUI-Avatar",e),"data-disabled":i,ref:c,style:t,"aria-disabled":i,"data-block-id":d,children:[n?jsx("img",{...m,loading:p,className:Al}):null,!s&&!n&&jsx(r,{size:o==="sm"?16:24}),s&&!n?o==="sm"?u[0]:u:null,l?jsx("div",{"data-testid":"notification",className:Hl}):null]})});fo.displayName="Avatar";var Ol="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",jl=b({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6105"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6109"},variant:{primary:"_1x62fhbb _1yep5z6z6",ghost:"_1yep5z6z9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61lg"],[{variant:"primary",isSelected:!0},"_1yep5z61me"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61lr"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61mf"]]}),Ul=b({defaultClassName:"_1x62fhb3 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),ql="_1x62fhbf",Kl="_1yep5z6l2 _1yep5z6kz _1yep5z6hc _1yep5z6l1",Gl=b({defaultClassName:"_1x62fhb0 _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1yep5z6115",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Yl=({state:e,...t})=>{let o=ho.useRef(null),{tabPanelProps:r}=useTabPanel(t,e,o),{selectedItem:a}=e,{focusProps:n,isFocusVisible:s}=useFocusRing();if(!a?.value)return null;let{className:i,style:l,"data-block-id":p}=a.value;return jsx("div",{...mergeProps(r,n),ref:o,className:classNames({[Kl]:s},"Baseline-Tabs-TabPanel",i),"data-block-id":p,style:l,children:a?.props.children})};var ha=ho.forwardRef(({className:e,style:t,tabHeaderStyle:o,tabHeaderClassName:r,variant:a="primary",actions:n,onRemove:s,"data-block-id":i,...l},p)=>{let d=useTabListState({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),c=ho.useRef(null),{tabListProps:m}=useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},d,c);return jsxs("div",{className:classNames("BaselineUI-Tabs",e),style:t,ref:p,"data-block-id":i,children:[jsxs("div",{className:classNames(Gl({variant:a}),r),style:o,children:[jsx("div",{...m,className:Ul({variant:a}),ref:c,children:[...d.collection].map(u=>(invariant(u.value,"TabItem requires a value prop"),jsx(Wl,{item:u,state:d,onRemove:s,variant:a},u.key)))}),n?.map((u,f)=>jsx("div",{className:Ol,children:jsx(N,{...u,variant:"secondary",size:"sm",className:classNames(ql,u.className)})},f))]}),jsx(Yl,{state:d},d.selectedItem?.key)]})});ha.displayName="TabsBase";var Wl=({item:e,onRemove:t,state:o,variant:r})=>{let{key:a,value:n}=e,s=ho.useRef(null),{tabProps:i,isSelected:l,isDisabled:p}=useTab({key:a},o,s),{hoverProps:d,isHovered:c}=useHover({});invariant(n,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:f,titleClassName:g}=n,{focusProps:v,isFocusVisible:y,isFocused:z}=useFocusRing(),{keyboardProps:_}=useKeyboard({onKeyDown:P=>{P.key==="Backspace"&&t?t(a):P.continuePropagation();}}),h=filterTruthyValues({"data-selected":l,"data-disabled":p,"data-focused":z,"data-hovered":c,"data-focus-visible":y});return jsxs("div",{...mergeProps(_,i,d,v,h),className:classNames(jl({isHovered:c,isSelected:l,isFocusVisible:y,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",g),style:f,ref:s,children:[u?jsx(u,{size:20}):null,m,t?jsx(N,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{t(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:l||z||c?1:0}}):null]})};Wl.displayName="TabButton";var $l=ho.forwardRef(({children:e,...t},o)=>{let r=useMemo(()=>ho.Children.map(e,a=>!a||!ho.isValidElement(a)||typeof a.type=="string"?null:{...a.props,id:a.props.value}).filter(Boolean),[e]);return jsx(ha,{...t,ref:o,items:r,children:a=>jsx(Item,{title:a.title,children:a.children},a.key)})});$l.displayName="Tabs";var Ql=({children:e,title:t,value:o})=>(invariant(o,"TabItem requires a value prop"),invariant(t,"TabItem requires a title prop"),invariant(e,"TabItem requires children"),e);Ql.displayName="TabItem";var Jl={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var ep=b({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),op=b({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),rp=b({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),tp=b({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),ap=b({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),np=b({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),sp=b({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var cv={error:{sm:ErrorAltFilledIcon,md:ErrorAltFilledIcon$1},info:{sm:InfoFilledIcon,md:InfoFilledIcon$1},success:{sm:CheckFilledIcon,md:CheckFilledIcon$1},warning:{sm:WarningFilledIcon,md:WarningFilledIcon$1}},ip=ho.forwardRef(({className:e,description:t,actionLabel:o,onAction:r,style:a,variant:n="info",title:s,arrangement:i="single",onClose:l,size:p="sm"},d)=>{let c=M(Jl),m=o&&jsx(j,{variant:i==="compact"?"tertiary":"ghost",label:o,onPress:r}),u=cv[n][p];return jsxs("div",{className:classNames(op({variant:n,arrangement:i,hasButton:!!o||!!l,hasCloseButton:!!l}),e),style:a,role:"alert",ref:d,children:[jsxs("div",{className:sp({arrangement:i}),children:[jsx(u,{className:ap({variant:n}),size:16}),jsxs("div",{className:ep({arrangement:i}),children:[jsx("h3",{className:np({size:p}),children:s}),jsx("section",{className:rp({size:p}),children:t})]}),i==="compact"&&m]}),jsxs("div",{className:tp({arrangement:i}),children:[i!=="compact"&&m,l?jsx(N,{variant:"secondary",icon:CloseIcon,size:"sm",onPress:l,"aria-label":c.formatMessage("close")}):null]})]})});ip.displayName="InlineAlert";var lp=b({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6105",title:"_1yep5z6105",label:"_1yep5z6106",value:"_1yep5z6106",helper:"_1yep5z6107",body:"_1yep5z6105"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61jz"],[{type:"title",size:"md"},"_1yep5z61k2"],[{type:"title",size:"lg"},"_1yep5z61k5"],[{type:"body",size:"sm"},"_1yep5z61kp"],[{type:"body",size:"md"},"_1yep5z61ks"],[{type:"body",size:"lg"},"_1yep5z61ks"],[{type:"subtitle",size:"sm"},"_1yep5z61kl"],[{type:"subtitle",size:"md"},"_1yep5z61ko"],[{type:"subtitle",size:"lg"},"_1yep5z61ko"],[{type:"label",size:"md"},"_1yep5z61kn"],[{type:"label",size:"lg"},"_1yep5z61kn"],[{type:"value",size:"md"},"_1yep5z61kn"],[{type:"value",size:"lg"},"_1yep5z61kn"],[{type:"helper",size:"sm"},"_1yep5z61kh"]]});var G=ho.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...a},n)=>jsx(e,{...a,className:classNames(lp({size:r,type:t}),"BaselineUI-Text",a.className),ref:n,children:o}));G.displayName="Text";var pp=b({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6kv _1yep5z6d7 _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{background:{subtle:"_1yep5z6113",medium:"_1yep5z6114"}},defaultVariants:{},compoundVariants:[]}),dp="siobe23";var Kr=ho.forwardRef(({className:e,style:t,children:o,background:r="medium",title:a,action:n,"data-block-id":s,onCloseRequest:i,...l},p)=>{let{formatMessage:d}=M(),c=ho.useRef(null),{dialogProps:m,titleProps:u}=useDialog(l,c);return jsxs("div",{...m,className:classNames(pp({background:r}),"BaselineUI-Drawer",e),"data-block-id":s,style:t,ref:mergeRefs(p,c),children:[jsxs(S,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:dp,children:[jsx(G,{type:"title",size:"sm",...u,className:Un,children:a}),jsxs(S,{children:[n?jsx(N,{...n,variant:"secondary"}):null,jsx(N,{variant:"secondary",size:"md",icon:XIcon$1,onPress:i,"aria-label":d(_v.close)})]})]}),jsx(D,{variant:r==="subtle"?"primary":"secondary"}),o]})});Kr.displayName="Drawer";var _v=$({close:{id:"close",defaultMessage:"Close"}});function up(e,t,o){let{isDisabled:r}=e,a=useReducedMotion(),[{y:n},s]=useSpring(()=>({y:0,immediate:a,config:{easing:easings.easeOutCubic}})),i=useRef(0),l=useCallback(()=>{s.start({y:i.current,onRest:()=>{t.close();}});},[s,t]),p=useCallback(c=>{c.target.closest("[data-drawer]")||l();},[l]);useGranularLayoutEffect(()=>{i.current=o.current?.offsetHeight||0,s.set({y:i.current}),s.start({y:0,immediate:!!a});},[],[s,a]);let d=n.to({range:[0,i.current/2,i.current],output:[.5,.2,0],extrapolate:"clamp"}).to(c=>`rgba(0,0,0,${c})`);return {overlayProps:{style:r?void 0:{transform:n.to(c=>`translateY(${c}px)`)}},underlayProps:{style:r?void 0:{backgroundColor:d},onClick:r?void 0:p},close:l}}var yp=b({defaultClassName:"aml2vl0 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hr _1yep5z6hs _1yep5z6ht",variantClassNames:{enableDrawer:{false:"_1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),fp="_1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6g2 _1yep5z6hr _1yep5z6hs _1yep5z6ht";var Ne=ho.createContext({state:null,triggerProps:{},overlayProps:{}}),bo=({children:e,...t})=>{let o=useOverlayTriggerState(t),{triggerProps:r,overlayProps:a}=useOverlayTrigger({type:"dialog"},o),n=useMemo(()=>({state:o,triggerProps:r,overlayProps:a}),[o,r,a]);return jsx(Ne.Provider,{value:n,children:e})};bo.displayName="Modal";var ka=ho.createContext({isDrawer:!1,closeDrawer:()=>{}}),Ev=animated(we),Fv=({children:e,className:t,style:o,isDismissable:r=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:s,enableDrawer:i=!1,"data-block-id":l})=>{let{state:p}=ho.useContext(Ne),d=Pr(n),c=te(n),m=typeof i=="boolean"&&i||i==="auto"&&d==="mobile";invariant(p,"ModalContent must be a child of Modal");let u=ho.useRef(null),f=typeof r=="function"?r(m):r,g=typeof a=="function"?a(m):a,{underlayProps:v,overlayProps:y,close:z}=up({isDisabled:!m,isDismissable:f},p,u),{modalProps:_,underlayProps:h}=useModalOverlay({isDismissable:!m,isKeyboardDismissDisabled:g},p,u),{theme:P}=useContext(Re),C=useReducedMotion(),T=useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!C||s,config:{easing:easings.easeInBounce}}),x=useMemo(()=>({..._.style,...m?{...y.style,width:"100%"}:T}),[y.style,_.style,m,T]),w=useMemo(()=>({isDrawer:m,closeDrawer:z}),[m,z]);return jsx(Overlay,{portalContainer:c,children:jsx(ka.Provider,{value:w,children:jsxs(Ev,{className:classNames(yp({enableDrawer:m}),t),theme:P,"data-block-id":l,style:o,children:[jsx(animated.div,{...mergeProps(h,v),"data-testId":"underlay",style:v.style,className:classNames(fp,"BaselineUI-Modal-Underlay")}),jsx(animated.div,{...mergeProps(_,y),style:x,ref:u,"data-drawer":m,className:"BaselineUI-Modal-Content",children:e})]})})})},Hv=animated(Fv),qo=({children:e,style:t,...o})=>{let{state:r}=ho.useContext(Ne);invariant(r,"ModalContent must be a child of Modal");let a=useReducedMotion();return useTransition(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!a||o.disableAnimation})((s,i)=>i&&jsx(Hv,{...o,style:{...t,...s},children:typeof e=="function"?e({close:r.close}):e}))};var hp=b({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6121 _1yep5z616i _1yep5z616k",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg _1yep5z6166"}},defaultVariants:{},compoundVariants:[]});var wa=ho.createContext({titleProps:{}}),ae=ho.forwardRef(({children:e,className:t,style:o,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":s,drawerBackground:i,...l},p)=>{let d=ho.useRef(null),c=ho.useRef(null),{isDrawer:m,closeDrawer:u}=useContext(ka),[f,g]=ho.useState("");useLayoutEffect(()=>{let _=getOwnerDocument(c.current),h=l["aria-label"]||"";l["aria-labelledby"]&&(h=_.querySelector(`#${l["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),g(h);},[l]);let{dialogProps:v,titleProps:y}=useDialog(l,d),z=useMemo(()=>({titleProps:y}),[y]);return m&&r?jsx(Kr,{title:f,onCloseRequest:u,className:t,...l,"data-drawer":!0,"data-block-id":s,ref:mergeRefs(c,p),background:i,children:e}):jsx(wa.Provider,{value:z,children:jsx("section",{...v,"data-block-id":s,ref:mergeRefs(d,p),style:o,className:classNames(hp({size:m?"content":a,variant:n,isDrawer:m}),"BaselineUI-Dialog",t),children:e})})});ae.displayName="Dialog";var Pp=ho.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=useContext(wa),n=ho.isValidElement(e)?Slot:"h3";return jsx(n,{...a,ref:r,className:t,style:o,children:e})});Pp.displayName="DialogTitle";var Se={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Xr=({children:e})=>{let{triggerProps:t}=ho.useContext(Ne);return jsx(Slot,{...t,children:e})};Xr.displayName="ModalTrigger";var o_=({children:e})=>{let{state:t}=ho.useContext(Ne);return jsx(Slot,{onPress:()=>t?.close(),children:e})};var Go=ho.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ue=({children:e,...t})=>{let o=ho.useRef(null),r=useOverlayTriggerState(t),a=useOverlayTrigger(t,r),n=useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:o}),[r,a]);return jsx(Go.Provider,{value:n,children:typeof e=="function"?e(r):e})};var Me=ho.forwardRef((e,t)=>{let{state:o,overlayTriggerAria:{overlayProps:r},triggerRef:a}=useContext(Go);return invariant(a),o?.isOpen?jsx(ve,{ref:t,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:o}):null});Me.displayName="PopoverContent";var qe=({children:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:r}=useContext(Go);invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:a}=o;return typeof e=="function"?e({isOpen:t.isOpen,triggerProps:a,triggerRef:r}):jsx(Slot,{...mergeProps(a,{isSelected:t.isOpen}),ref:r,children:e})};var Rp="_1dbkl5v",wp="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt",Ip="_1dbkl5e",Tp=b({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l6 _1yep5z6ky _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kx _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6109"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Np=b({defaultClassName:"_1dbkl50 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6nq _1yep5z6nr _1yep5z6ns",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Wr="_1dbkl5t _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69f _1yep5z69g _1yep5z69h",Sp="_1dbkl5f z9nup87",Zr="_1dbkl5u _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn",Mp=b({defaultClassName:"_1dbkl5h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kx _1yep5z6ks",variantClassNames:{isFocusVisible:{true:"_1dbkl5i _1dbkl5g"},isDisabled:{true:"_1yep5z6yl"},removeBlendMode:{true:"_1dbkl5k"},isSelected:{true:"_1dbkl5g"},isHovered:{true:"_1dbkl5g"}},defaultVariants:{},compoundVariants:[]}),Lp="_1dbkl5s _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ky",$r="_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",Bp="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it",Qr=b({defaultClassName:"_1dbkl5p _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6me _1yep5z6mf _1yep5z6mg"}},defaultVariants:{},compoundVariants:[]}),Ia="_1dbkl514 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",Dp="_1dbkl53",Ep=b({defaultClassName:"_1dbkl5z _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl510 _1yep5z611y"},isHovered:{true:"_1dbkl511"},allowAlpha:{false:"_1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6166"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61nd"]]}),Fp=b({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f0 _1yep5z6kx _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kl",variantClassNames:{isHovered:{true:"_1yep5z6115"},isFocusVisible:{true:"_1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612n"},isDisabled:{true:"_1yep5z610d"}},defaultVariants:{},compoundVariants:[]}),Yo="_1dbkl513",Jr="_1dbkl5o _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",et="_1dbkl5r _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",Ta="_1dbkl516",Hp="_1dbkl515",Na="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69l _1yep5z69m _1yep5z69n",ot=b({defaultClassName:"_1dbkl5w _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l2 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6l7 _1yep5z6la",variantClassNames:{isFocusVisible:{true:"_1dbkl5x _1yep5z616a _1yep5z612n _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),Sa="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq";var Ke=({color:e,isFocusVisible:t,isDisabled:o,isSelected:r,isPresentational:a})=>{let n=e&&e!==_e&&parseColor(e),s=n&&n.getChannelValue("alpha")===0,{hoverProps:i,isHovered:l}=useHover({isDisabled:o});return jsx("div",{...i,className:classNames(Mp({removeBlendMode:!n,isFocusVisible:t,isDisabled:o,isSelected:r,isHovered:l&&!a&&!o}),{[Mo({size:"xs"})]:s}),children:n?jsxs(Fragment,{children:[jsx("div",{className:classNames($r,Mo({size:"xs"}))}),jsx("div",{className:$r,style:{backgroundColor:s?void 0:n.toString("hexa")}})]}):jsx("div",{className:$r,children:jsx(NoneIcon,{size:14})})})};var Op=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],go=parseColor("#000000").toFormat("hsla"),Y="hsla",Wo="hexa";function Ge(e){return typeof e=="string"?parseColor(e).toFormat(Y):e?e.toFormat(Y):null}function jp(e,t){return e?.getChannelValue("alpha")?t?.toString(Wo)===e.toString(Wo):!t?.getChannelValue("alpha")}function Up(e,t,o){return t?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var _e="NONE";function qp(e,t){let o=t?.map(a=>({id:parseColor(a.color).toString(Wo),label:a.label}))||[],r={id:_e,label:e};return [...o,r]}var rt=(e,{optionProps:t,isFocusVisible:o,isSelected:r},a)=>(invariant(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...t,ref:a,"aria-label":e.value?.label||void 0,className:Lp,children:jsx(Ke,{color:e.value.id,isFocusVisible:o,isSelected:r})}));var Yp=({value:e,...t})=>{let o=ho.useRef(null),r=ho.useRef(null),a=ho.useRef(null),n=useColorAreaState({...t,value:e}),{colorAreaProps:s,gradientProps:i,xInputProps:l,yInputProps:p,thumbProps:d}=useColorArea({...t,value:e,inputXRef:o,inputYRef:r,containerRef:a},n);useEffect(()=>{o.current?.focus();},[]);let{focusProps:c,isFocusVisible:m}=useFocusRing();return jsxs("div",{ref:a,...s,className:classNames(Rp,"BaselineUI-ColorInput-ColorArea"),children:[jsx("div",{...i,className:Dp}),jsxs("div",{...d,className:classNames(ot({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Ge(e)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:o,...l,...c}),jsx("input",{ref:r,...p,...c})]})]})};var Zp=({color:e,setColor:t,allowAlpha:o,...r})=>{let a=useColorFieldState({value:e,onChange:c=>{t(Ge(c)?.toFormat(Y).withChannelValue("alpha",e.getChannelValue("alpha")??1)||go);}}),n=ho.useRef(null),{inputProps:s}=useColorField({...r,"aria-label":"Hex"},a,n),{focusProps:i,isFocused:l}=useFocusRing({isTextInput:!0}),{hoverProps:p,isHovered:d}=useHover({});return jsxs("div",{className:classNames(Ia,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[jsx("input",{...mergeProps(s,i,p),ref:n,className:Ep({isFocused:l,isHovered:d,allowAlpha:o})}),o?jsx(Qp,{color:e,setColor:t}):null]})},$p=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:a}=useLocale();return jsxs("div",{className:classNames(Ia,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[jsx(ge,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:!1,className:Yo,onChange:n=>{t(r.withChannelValue("red",n).toFormat(Y));},step:1,minValue:0,maxValue:255}),jsx(ge,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:!1,className:Yo,onChange:n=>{t(r.withChannelValue("green",n).toFormat(Y));},step:1,minValue:0,maxValue:255}),jsx(ge,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:!1,className:Yo,onChange:n=>{t(r.withChannelValue("blue",n).toFormat(Y));},step:1,minValue:0,maxValue:255}),o?jsx(Qp,{color:e,setColor:t}):null]})},L_={style:"percent",maximumFractionDigits:0},Qp=({color:e,setColor:t})=>{let{locale:o}=useLocale(),r=useCallback(a=>{t(e.withChannelValue("alpha",a));},[e,t]);return jsx(ge,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:L_,className:Yo,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var Da=({channel:e,...t})=>{let{locale:o}=useLocale(),r=useColorSliderState({...t,channel:e,locale:o}),a=ho.useRef(null),n=ho.useRef(null),{trackProps:s,thumbProps:i,inputProps:l}=useColorSlider({...t,channel:e,trackRef:a,inputRef:n,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:p,isFocusVisible:d}=useFocusRing();return jsxs("div",{className:classNames(Zr,{[Mo({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...s,ref:a,children:[e==="alpha"&&jsx("div",{className:Sa}),jsx("div",{className:Zr,style:s.style}),jsxs("div",{className:classNames(ot({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...i,children:[jsx("div",{className:Sa,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Zr}),jsx(VisuallyHidden,{children:jsx("input",{ref:n,...l,...p})})]})]})};var tt=({color:e,setColor:t,allowAlpha:o})=>{let[r,a]=ho.useState("hex"),{formatMessage:n}=M(Se);return jsxs(Fragment,{children:[jsx(Yp,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t}),jsxs("div",{className:Na,children:[jsx(Da,{channel:"hue",value:e,onChange:t}),o?jsx(Da,{channel:"alpha",value:e,onChange:t}):null]}),jsxs("div",{className:classNames(Na,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(Or,{label:n("colorFormat"),labelPosition:"start",variant:"ghost",items:Op,selectedKey:r,onSelectionChange:s=>{a(s);}}),r==="hex"&&jsx(Zp,{color:e,setColor:t,allowAlpha:o}),r==="rgb"&&jsx($p,{color:e,setColor:t,allowAlpha:o})]})]})};var Ha=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:s,allowAlpha:i})=>{let{formatMessage:l}=M(Se),p=ho.useRef(null),d=Pr(p.current),[c,m]=Bs(o,[]),u=ho.useRef(null),[f,g]=ho.useState(e),v=ho.useMemo(()=>c.map(C=>({id:C,label:C,description:C})),[c]),y=useCallback(()=>{let C=s==="active"?e:f;if(c.includes(C.toString(Y))){u.current?.querySelector(`[data-key='${C.toString(Y)}']`)?.classList.add(Ta);return}m([...c,C.toString(Y)]);},[c,e,m,f,s]);useEffect(()=>{let C=u.current;function T(x){x.animationName===Hp&&x.target?.classList.remove(Ta);}return C?.addEventListener("animationend",T),()=>{C?.removeEventListener("animationend",T);}},[]);let z=useId(),_=jsx(N,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:PlusIcon$1,onPress:s==="active"?y:void 0}),h=useCallback(C=>jsxs(ae,{size:"content",className:Qr({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[jsx(tt,{color:f,setColor:g,allowAlpha:i}),jsx(D,{}),jsx(S,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(S,{display:"inline-flex",gap:"lg",children:[jsx(j,{label:l("cancel"),size:"sm",variant:"secondary",onPress:C}),jsx(j,{label:l("add"),variant:"primary",onPress:()=>{y(),C();},size:"sm"})]})})]}),[f,y,l,i]),P=useCallback(C=>{invariant(C instanceof Set,"Key must be a set");let T=[...C][0];T&&t(parseColor(T).toFormat(Y));},[t]);return jsxs(Fragment,{children:[jsx(D,{}),jsxs("div",{className:classNames(Bp,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:z,children:n}),jsxs(S,{display:"flex",children:[!!c.length&&c.includes(e.toString(Y))&&jsx(N,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon$2,"aria-label":a,onPress:()=>{m(c.filter(C=>C!==e.toString(Y)));}}),s==="active"&&_,s==="lazy"&&(d==="mobile"?jsxs(bo,{children:[jsx(Xr,{children:_}),jsx(qo,{style:{zIndex:1e5},children:({close:C})=>h(C)})]}):jsx(Ue,{type:"dialog",children:({close:C})=>jsxs(Fragment,{children:[jsx(qe,{children:_}),jsx(Me,{placement:"right top",className:Jr,offset:6,children:h(C)})]})}))]})]}),!!c.length&&jsx(ue,{items:v,layout:"grid","aria-labelledby":z,className:classNames(Wr,et,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:rt,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(Y)],onSelectionChange:P})]})};var Va=ho.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:a,state:n},s)=>{let{formatMessage:i}=M(Se),l=useCallback(p=>{if(p instanceof Set&&p.size){let d=[...p][0],c=a.find(m=>m.id===d);invariant(c,"Preset not found"),e(c.id===_e?null:parseColor(c.id).toFormat(Y)),n.close();}},[n,a,e]);return jsx("div",{className:classNames(et,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:s,children:jsx(ue,{autoFocus:r,items:a,layout:"grid","aria-label":i("colorPresets"),className:Wr,renderOption:rt,selectionMode:"single",selectedKeys:[t?.toString(Wo)||_e],onSelectionChange:l})})});Va.displayName="ColorPresetList";var Oa=ho.forwardRef((e,t)=>{let o=ho.useRef(null),{hoverProps:r,isHovered:a}=useHover({isDisabled:e.isDisabled}),{buttonProps:n,isPressed:s}=useButton(e,o),{isFocusVisible:i,focusProps:l}=useFocusRing(),p=filterTruthyValues({"data-block-id":e["data-block-id"],"data-focused":i,"data-focus-visible":i,"data-disabled":e.isDisabled,"data-hovered":a,"data-pressed":s});return jsx("button",{...mergeProps(n,r,l,p),style:e.style,className:classNames(Tp({isHovered:a,isFocusVisible:i||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),"BaselineUI-ColorInputButton",e.className),ref:mergeRefs(t,o),children:e.children})});Oa.displayName="ColorInputButton";var ud=ho.forwardRef(({className:e,style:t,icon:o,...r},a)=>{let n=ho.useRef(null),{hoverProps:s,isHovered:i}=useHover({isDisabled:r.isDisabled}),{buttonProps:l,isPressed:p}=useButton(r,n),{isFocusVisible:d,focusProps:c}=useFocusRing(),m=filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":r.isDisabled,"data-hovered":i,"data-pressed":p});return jsxs("button",{...mergeProps(l,s,c,m),ref:mergeRefs(a,n),style:t,className:classNames(Fp({isHovered:i||p||r.isOpen,isFocusVisible:d,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsx(o,{size:16}),jsx("div",{className:Ip,style:{backgroundColor:r.color}})]})});ud.displayName="IconColorInputButton";var Zo=ho.forwardRef(({className:e,style:t,allowRemoval:o,allowAlpha:r=!0,presets:a,labelPosition:n="top",colorLabel:s=!0,includePicker:i=!0,onChange:l,defaultValue:p,storePickedColorKey:d="baselinePickedColor",value:c,addColorButtonLabel:m,removeColorButtonLabel:u,customColorsLabel:f,renderTriggerButton:g,pickerMode:v="active",offset:y=2,placement:z=n==="start"?"bottom end":"bottom start","data-block-id":_,...h},P)=>{let C=ho.useRef(null),T=ho.useRef(null),x=useOverlayTriggerState(h),{triggerProps:w,overlayProps:L}=useOverlayTrigger({type:"listbox"},x,C),H=te(h.portalContainer),[R,I]=useControlledState(c===void 0?void 0:Ge(c),Ge(p),K=>l?.(K?.toFormat("rgba")||null)),{formatMessage:V}=M(Se),A=useMemo(()=>qp(V("noColor"),a),[a,V]),X=useMemo(()=>A.find(K=>K.id===_e?!R:R?jp(R,parseColor(K.id)):!1),[A,R]),W=useId(),ee=useMemo(()=>typeof s=="function"?s?.(R):s?Up(R,X,V("transparent")):!1,[R,s,V,X]),Z=useMemo(()=>A.filter(K=>o||K.id!==_e),[A,o]),E=m||V("addColor"),k=u||V("removeColor"),q=f||V("customColors");return jsxs(Fragment,{children:[jsxs("div",{className:classNames({[wp]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,style:t,ref:P,children:[h.label?jsx("label",{id:W,className:Np({labelPosition:n}),children:h.label}):null,g?.({isOpen:x.isOpen,color:R,ref:C,colorName:ee,triggerProps:w})||jsxs(Oa,{...mergeProps(w,{...h.label?{"aria-labelledby":W}:{"aria-label":h["aria-label"]}}),ref:C,isOpen:x.isOpen,isDisabled:h.isDisabled,labelPosition:n,children:[jsx(Ke,{isPresentational:!0,color:R?.toString("hexa")}),s?jsx("div",{className:Sp,children:ee}):jsx(VisuallyHidden,{children:ee})]})]}),x.isOpen?jsx(ve,{...h,portalContainer:H,placement:z,state:x,offset:y,className:classNames(Jr,"BaselineUI-ColorInput-Popover"),triggerRef:C,overlayProps:L,children:jsxs(ae,{size:"content",className:Qr({includesCustomColorPicker:i}),ref:T,"aria-labelledby":W,"aria-label":h["aria-label"],children:[i&&v==="active"?jsxs(Fragment,{children:[jsx(tt,{color:R||go,setColor:I,allowAlpha:r}),jsx(Ha,{color:R||go,setColor:I,storePickedColorKey:d,addColorButtonLabel:E,removeColorButtonLabel:k,customColorsLabel:q,pickerMode:v,allowAlpha:r})]}):null,!!Z.length&&jsxs(Fragment,{children:[i&&v==="active"?jsx(D,{}):null,jsx(Va,{autoFocus:i&&v==="active"?!1:"first",state:x,triggerRef:C,presets:Z,color:R,setColor:I})]}),i&&v==="lazy"?jsx(Ha,{color:R||go,setColor:I,storePickedColorKey:d,addColorButtonLabel:E,removeColorButtonLabel:k,customColorsLabel:q,pickerMode:v,allowAlpha:r}):null]})}):null]})});Zo.displayName="ColorInput";var fd={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var it=b({defaultClassName:"mnnh5s1 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ki _1yep5z6kl _1yep5z6kx _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy _1yep5z6122 _1yep5z616j _1yep5z616k",false:"_1yep5z6166 _1yep5z6116"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6115"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 _1yep5z6yl"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61mo"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61nd"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61mg"]]}),bd="_1yep5z6d8",lt=b({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var gd=b({defaultClassName:"_1i0ytqa3 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6kw _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z611e",false:"_1yep5z611g"},isDisabled:{true:"_1i0ytqa7 _1yep5z6yl",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61n9 _1yep5z61rt _1yep5z61rv"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61mp"],[{isInline:!1,isDisabled:!0},"_1yep5z61mr"]]}),vd="_1i0ytqa0",pt=b({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z6115"},isDisabled:{true:"_1i0ytqad _1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),_d=b({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var x6={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},hd=ho.forwardRef(({className:e,style:t,canvasClassName:o,canvasStyle:r,isBound:a=!0,strokeWidth:n=2,strokeColor:s="#3A87FD",onChange:i,defaultValue:l,onChangeEnd:p,enableHistory:d=!1,isInline:c=!0,isDisabled:m,placeholder:u,clearLabel:f,undoLabel:g,redoLabel:v,footerClassName:y,canvasRef:z,value:_,footerStyle:h,"data-block-id":P,"aria-label":C="Drawing canvas",description:T="This is a canvas for drawing using a mouse or touch input.",...x},w)=>{let L=M(fd),H=ho.useRef(null),[R,I]=ho.useState(_?Ga(_):l?Ga(l):[]),V=ho.useRef((_?.length||l?.length||0)-1),[A,X]=ho.useState(),W=useId(),{labelProps:ee,fieldProps:Z}=useLabel({...x,"aria-label":C,labelElementType:"span"}),{isFocusVisible:E,focusProps:k}=useFocusRing({within:!0}),{hoverProps:q,isHovered:K}=useHover({isDisabled:m}),{undo:se,redo:eo,canRedo:oo,canUndo:be,push:Ee}=Ts(R,{onAction:B=>{B&&(I(B),V.current=B.length-1,p?.(B.map(le=>getStroke(le,U))));},isDisabled:!d}),{keyboardProps:ro}=useKeyboard({onKeyDown:B=>{B.key==="Backspace"?sr():B.key==="z"&&(B.metaKey||B.ctrlKey)&&(B.shiftKey?oo&&eo():be&&se());}}),U=ho.useMemo(()=>({...x6,...x}),[x]),ie=useCallback(B=>{B.persist(),B.buttons===1&&(invariant(A,"svgCoordinates must be defined"),I(le=>{let O=[...le];return O[V.current]=[...O[V.current],{x:a?clamp(B.clientX-A.left,0,A.width):B.clientX-A.left,y:a?clamp(B.clientY-A.top,0,A.height):B.clientY-A.top,pressure:B.pressure}],O}));},[A,a]),Mt=useCallback(B=>{B.persist();let le=B.currentTarget.getBoundingClientRect();X(le),B.target.setPointerCapture(B.pointerId),V.current+=1,I(O=>{let re=[...O];return re[V.current]=[{x:B.clientX-le.x,y:B.clientY-le.y,pressure:B.pressure}],re});},[]),nr=Ie();useGranularEffect(()=>{nr||i?.(R.map(B=>getStroke(B,U)));},[R],[i,U,nr]);let sr=()=>{I([]),V.current=-1,Ee([]);},Lt=useCallback(()=>{p?.(R.map(B=>getStroke(B,U))),Ee(R);},[R,p,U,Ee]);return jsxs("div",{ref:mergeRefs(H,w),className:classNames(vd,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":P,children:[x.label||d?jsxs("div",{className:_d({isInline:c}),children:[x.label?jsx(G,{type:"label",size:"sm",...ee,children:x.label}):jsx("span",{}),d?jsxs("div",{children:[jsx(N,{variant:"secondary",size:"sm",isDisabled:!be||m,icon:UndoIcon,onPress:se,"aria-label":g||L.formatMessage("undo")}),jsx(N,{variant:"secondary",size:"sm",isDisabled:!oo||m,icon:RedoIcon,onPress:eo,"aria-label":v||L.formatMessage("redo")})]}):null]}):null,jsxs("div",{role:"application",...mergeProps(k,ro,q,Z),tabIndex:m?void 0:0,className:classNames(it({isInline:c,isHovered:K}),gd({isFocusVisible:E,isInline:c,isDisabled:!!m}),o),"aria-describedby":x["aria-describedby"]||W,style:r,ref:z,children:[jsx(VisuallyHidden,{children:jsx("div",{id:W,children:T})}),jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:Mt,onPointerMove:ie,onPointerUp:Lt,children:(_?Ga(_):R).map((B,le)=>jsx("path",{d:getSvgPathFromStroke(getStroke(B,U)),stroke:s,strokeWidth:n},le))})]}),u||f?jsx("div",{style:h,className:classNames(pt({isInline:c,isDisabled:m}),y),children:(R.length||!u)&&f?jsx(j,{size:"sm",variant:"ghost",label:f,isDisabled:m,onPress:sr}):jsx(j,{size:"sm",variant:"ghost",label:u,isDisabled:!0})}):null]})});hd.displayName="FreehandCanvas";var Ga=e=>e.map(t=>t.map(([o,r])=>({x:o,y:r,pressure:0})));var Cd="_1vac7ws0",xd=b({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function kd(e,t){let[o,r]=useState([]),a=()=>e?.flatMap(n=>[...t.querySelectorAll(n)]).map(n=>({current:n}));return useGranularEffect(()=>{r(a());},[],[a]),useGranularEffect(()=>{let n=a();r(n);},[e],[a]),o}function Rd(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;useEffect(()=>{let a=getHTMLElement(t,o);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",r),()=>{a.removeEventListener("scroll",r);}},[t,r,o]);}var O6=makeMoveable([Draggable,Resizable,Rotatable,Snappable]),Id=ho.forwardRef(({className:e,children:t,isRotatable:o,isResizable:r,isDraggable:a,style:n,onTransform:s,onTransformStart:i,onTransformEnd:l,onDoubleClick:p,onDragStart:d,onDragEnd:c,onDrag:m,onResizeStart:u,onResizeEnd:f,onResize:g,onRotateStart:v,onRotateEnd:y,onRotate:z,onSnap:_,isSnappable:h,elementGuidelines:P,hideAnchorOnDrag:C=!0,title:T,rotationPosition:x,autoUpdate:w,bound:L,snapRotationDegrees:H,snapRotationThreshold:R,scrollableAncestor:I,renderDirections:V,stopPropagation:A,transformOrigin:X,preventDefault:W},ee)=>{let Z=useRef(null),E=useRef(null),[k,q]=useState(document),K=useRef(k.createElement("div")),[se,eo]=useState({}),[oo,be]=useState(!1),[Ee,ro]=useState(!1),[U,ie]=useState(),Mt=kd(P,k);useLayoutEffect(()=>{let O=K.current;return K.current=k.createElement("div"),()=>{O.remove();}},[k]);let{keyboardProps:nr}=useKeyboard({onKeyDown:O=>{let re=O.shiftKey?10:1,me=O.metaKey||O.ctrlKey;me&&O.shiftKey&&(re=45);function Fe(Io,mm="x"){me?E.current?.request("rotatable",{deltaRotate:Io*re},!0):E.current?.request("draggable",mm==="x"?{deltaX:Io*re}:{deltaY:Io*re},!0);}switch(O.key){case"ArrowRight":{Fe(1);break}case"ArrowLeft":{Fe(-1);break}case"ArrowUp":{Fe(-1,"y");break}case"ArrowDown":Fe(1,"y");}requestAnimationFrame(()=>{E.current?.updateRect();});}});useEffect(()=>{let O=getOwnerDocument(Z.current);q(O);let re=K.current;O.body.append(K.current);function me(Io){ro(Io.shiftKey);}function Fe(){ro(!1);}return O.addEventListener("keydown",me),O.addEventListener("keyup",Fe),()=>{O.removeEventListener("keydown",me),O.removeEventListener("keyup",Fe),re.remove();}},[]),Rd({scrollable:I,onScroll:()=>{E.current?.updateRect();},ownerDocument:k});let sr=useCallback(O=>{eo(re=>({...re,...O.style})),s?.(O);},[s]),Lt=useCallback(O=>{if(be(!0),Z.current?.focus(),L){let me=getHTMLElement(L,k)?.getBoundingClientRect();ie({position:"client",left:me?.left??0,top:me?.top??0,right:me?.right??0,bottom:me?.bottom??0});}d?.(O);},[L,k,d]),B=useCallback(O=>{be(!1),c?.(O);},[c]),le=t({style:{...se.width&&{width:se.width},...se.height&&{height:se.height}}});return jsxs(Fragment,{children:[jsx("div",{role:"button",...nr,ref:mergeRefs(Z,ee),style:{display:"inline-block",...n,...se},className:classNames(Cd,e),onDoubleClick:p,tabIndex:0,title:T,children:le}),createPortal(jsx(O6,{ref:E,target:Z,draggable:a,resizable:r,rotatable:o,keepRatio:Ee,throttleDrag:1,snappable:h||!!L,elementGuidelines:Mt,snapRenderThreshold:.9,className:xd({isDragging:oo&&C}),onRender:sr,onDragStart:Lt,onDragEnd:B,useResizeObserver:w,useMutationObserver:w,onRenderEnd:l,onDrag:m,onResizeStart:u,onResizeEnd:f,onResize:g,onRotateStart:v,onRotateEnd:y,onRotate:z,onRenderStart:i,onSnap:_,rotationPosition:x,bounds:U,snapRotationDegrees:H,snapRotationThreshold:R,renderDirections:V,stopPropagation:A,preventDefault:W,transformOrigin:X}),K.current)]})});Id.displayName="Transform";var Td={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var Md=ho.forwardRef(({className:e,style:t,isInline:o=!0,accept:r="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:s,pickerButtonLabel:i,isDisabled:l,onDrop:p,onPaste:d,includeCheckeredBackground:c=!0,"data-block-id":m,pickerButtonStyle:u,pickerButtonClassName:f,footerClassName:g,footerStyle:v,clearLabel:y,placeholder:z,labelStyle:_,labelClassName:h,...P},C)=>{let T=ho.useRef(null),x=ho.useRef(null),{formatMessage:w}=M(Td),[L,H]=useControlledState(n,a||null,U=>{invariant(typeof U!="string"),P.onValueChange?.(U?[U]:[]);}),R=useMemo(()=>o5(L||void 0),[L]),{fieldProps:I,labelProps:V}=useField(P),{dropProps:A,isDropTarget:X}=useDrop({ref:T,onDrop:async U=>{if(l)return;let ie=await ta({items:U.items});ie.length&&H(ie[0]),p?.(U);},...P}),{clipboardProps:W}=useClipboard({onPaste:async U=>{if(l)return;let ie=await ta({items:U});ie.length&&H(ie[0]),d?.(U);},...P}),ee=()=>{H(null),x.current&&(x.current.value="");},Z={type:"file",onChange:U=>{let ie=[...U.target.files];H(ie[0]),P.onChange?.(U);},accept:r,disabled:l},{focusProps:E,isFocused:k,isFocusVisible:q}=useFocusRing({within:!0}),{hoverProps:K,isHovered:se}=useHover({isDisabled:l}),{imgProps:eo,isLoading:oo,isLoaded:be}=hr({src:R,alt:s||""}),Ee={label:i||w("selectImage"),onPress:()=>T.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:classNames(cr({isFocusVisible:q}),{[bd]:X&&!l},f),style:u},ro=filterTruthyValues({"data-loaded":be,"data-block-id":m,"data-hovered":se,"data-focused":k,"data-drop-target":X,"data-disabled":l,"data-focus-visible":q});return jsxs(S,{...ro,className:classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:C,children:[jsxs("label",{...mergeProps(A,K,E,V),className:classNames(it({isInline:o,isHovered:se,isDisabled:l,hasLoadedImage:!!R&&be,showFocusRing:X||!!R&&q}),h),style:_,ref:T,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(I,W,Z),ref:x})}),!R&&jsx(j,{...Ee}),!!R&&(oo?jsx(Lr,{}):jsx("img",{className:lt({isInline:o,isDisabled:l,hasLoadedImage:!!R&&be&&c}),...eo}))]}),z||y?jsx("div",{style:v,className:classNames(pt({isInline:o,isDisabled:l}),g),children:(R||!z)&&y?jsx(j,{size:"sm",variant:"ghost",label:y,isDisabled:l,onPress:ee}):jsx(j,{size:"sm",variant:"ghost",label:z,isDisabled:!0})}):null]})});Md.displayName="ImageDropZone";function o5(e){return e instanceof File?URL.createObjectURL(e):e}var Ld="_1vm2oh49 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6fv",Za="_1vm2oh48 _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6jc _1yep5z6jd _1yep5z6je",Bd=b({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6l1 _1yep5z6kz _1yep5z6hk _1yep5z6l2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kx _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6121 _1yep5z616i _1yep5z616k",false:"_1yep5z611g"},isFocusVisible:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6yl"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61mp"],[{accent:"theme",isInline:!0},"_1yep5z61me"],[{accent:"positive",isInline:!1},"_1yep5z61mr"],[{accent:"theme",isInline:!1},"_1yep5z61mg"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61ny _1yep5z61rl _1yep5z61rn _1yep5z61ro"],[{isHovered:!0,isInline:!0},"_1yep5z61ro _1yep5z61ny _1yep5z61rl _1yep5z61rn"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61mq"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61mi"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61mf"]]});var Fd=ho.forwardRef(({className:e,style:t,isDisabled:o,isInline:r=!0,imageAlt:a,imageSrc:n,svgSrc:s,textValue:i,textStyle:l,onPress:p,onDelete:d,deleteAriaLabel:c,addAriaLabel:m,accent:u="positive","data-block-id":f,...g},v)=>{let{focusProps:y,isFocused:z,isFocusVisible:_}=useFocusRing({within:!0}),{isHovered:h,hoverProps:P}=useHover({isDisabled:o}),{pressProps:C}=usePress({isDisabled:o,onPress:p});invariant(n||s||i,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let T=filterTruthyValues({"data-hovered":h,"data-focus-visible":_,"data-focused":z,"data-disabled":o});return jsxs("div",{...g,className:classNames(Bd({isInline:r,isFocusVisible:_,isDisabled:o,isHovered:h,accent:u}),"BaselineUI-Preview",e),"data-block-id":f,"aria-label":g["aria-label"]||a||i,style:t,ref:v,children:[typeof s=="string"?jsx("button",{disabled:o,...mergeProps(P,y,C,T),className:Za,"aria-label":m,dangerouslySetInnerHTML:{__html:s}}):jsxs("button",{...mergeProps(P,y,C,T),disabled:o,style:l,"aria-label":m,className:Za,children:[n?jsx("img",{src:n,alt:a,className:lt({isInline:r,isDisabled:o})}):null,!!s&&typeof s=="object"&&s,i]}),d?jsx(N,{isDisabled:o,className:Ld,"aria-label":c,size:"xs",icon:TrashIcon,onPress:d}):null]})});Fd.displayName="Preview";var Hd="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e",Vd=b({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Ad="cw3m0n7",Od=b({defaultClassName:"cw3m0n0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),jd="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ks",Ud=b({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var v5=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:a,optionLabelPosition:n})=>jsxs("div",{className:Od({labelPosition:n}),children:[jsx("div",{className:Ud({isSelected:o,isFocusVisible:r,isDisabled:a}),children:o?jsx("div",{className:Ad}):null}),e?jsxs("div",{className:Hd,children:[jsx("span",{className:Br({isDisabled:a}),children:e}),t?jsx("span",{className:Vd({isDisabled:a}),children:t}):null]}):null]}),qd=({state:e,renderOption:t=v5,item:o,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:s,...i})=>{let l=!!i.isDisabled||!!i.disabledValues?.includes(o.id),p=ho.useRef(null),{inputProps:d,isPressed:c,isSelected:m}=useRadio({...i,isDisabled:l,children:o.label,value:o.id},e,p),{focusProps:u,isFocusVisible:f,isFocused:g}=useFocusRing(),{isHovered:v}=useHover({isDisabled:l}),y=filterTruthyValues({"data-selected":m,"data-focused":g,"data-focus-visible":f,"data-hovered":v,"data-disabled":l,"data-pressed":c,"data-read-only":s});return jsxs("label",{...y,style:a,className:classNames("BaselineUI-Radio-Item",n),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,u),ref:p})}),t(o,{isFocusVisible:f,isSelected:m,isFocused:g,isHovered:v,isDisabled:l,optionLabelPosition:r,isReadOnly:s})]})};var yt=ho.forwardRef(({className:e,style:t,optionsContainerClassName:o,optionsContainerStyle:r,items:a,labelPosition:n="top",renderOption:s,"aria-label":i,"aria-labelledby":l,"aria-describedby":p,"aria-details":d,"data-block-id":c,...m},u)=>{let f=useRadioGroupState(m),{radioGroupProps:g,labelProps:v,descriptionProps:y,errorMessageProps:z}=useRadioGroup({...m,"aria-label":i,"aria-labelledby":l,"aria-describedby":p,"aria-details":d},f),_=Pe({...m,descriptionProps:y,errorMessageProps:z,labelPosition:n}),h=filterTruthyValues({"data-orientation":m.orientation,"data-block-id":c,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return jsxs("div",{...mergeProps(g,h),className:classNames(xe({labelPosition:n}),"BaselineUI-RadioGroup",e),style:t,ref:u,children:[m.label||_?jsxs("div",{className:Ce({labelPosition:n,hasMessage:!!_}),children:[jsx("span",{...v,className:classNames(he,"BaselineUI-RadioGroup-Label"),children:m.label}),n==="start"&&_]}):null,jsxs("div",{className:classNames({[to]:m.isDisabled}),children:[jsx("div",{className:classNames(jd,o),style:r,children:a.map(P=>jsx(qd,{state:f,renderOption:s,item:P,value:P.id,...m},P.id))}),n==="top"&&_]})]})});yt.displayName="RadioGroup";var Kd=({id:e,defaultMessage:t,elementType:o=Fragment$1})=>{invariant(e||t,"`id` or `defaultMessage` is required.");let r=M();return jsx(o,{children:r.formatMessage(e)||t})};Kd.displayName="MessageFormat";var Gd=ho.forwardRef(({className:e,style:t,children:o,role:r="group",isDisabled:a,...n},s)=>{let{hoverProps:i,isHovered:l}=useHover({isDisabled:a});return jsx("div",{...i,role:r,"data-hovered":l,"data-disabled":a,className:e,style:t,...n,ref:s,children:o})});Gd.displayName="Group";var Yd="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Xd="_1yep5z61ov _1yep5z61ow _1yep5z61ox _1yep5z61g1 _1yep5z61g2 _1yep5z61g3";var Zd=ho.forwardRef(({items:e,optionsContainerClassName:t,...o},r)=>{let a=useMemo(()=>e.map(n=>({id:n.color,label:n.label})),[e]);return jsx(yt,{items:a,optionsContainerClassName:classNames(Xd,t),orientation:"horizontal",renderOption:({label:n,id:s},{isSelected:i,isFocusVisible:l})=>jsxs("div",{className:Yd,children:[jsx(Ke,{isFocusVisible:l,color:s,isSelected:i}),jsx(VisuallyHidden,{children:n})]}),...o,className:classNames(o.className,"BaselineUI-ColorPresetInput"),ref:r})});Zd.displayName="ColorPresetInput";var $d={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var ft=ho.forwardRef(({className:e,style:t,"data-block-id":o,"aria-controls":r,...a},n)=>{let s=ho.useRef(null),{toolbarProps:i}=useToolbar(a,s),{isFocusVisible:l,focusProps:p}=useFocusRing(),d=filterTruthyValues({"data-block-id":o,"data-focus-visible":l});return jsx("div",{...mergeProps(i,p,d),"aria-controls":r,className:classNames($d[a.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,ref:mergeRefs(n,s),children:a.children})});ft.displayName="Toolbar";var Jd=b({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),ec=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610d"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61rl _1yep5z61o5 _1yep5z61lo"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6ft"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61rm _1yep5z61rl _1yep5z61nz _1yep5z61lp"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61rl _1yep5z61rn _1yep5z61ny _1yep5z61ro"]]}),oc=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1yep5z610c"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61ln"]]}),rc=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!0,isDisabled:!1},"_1yep5z61mg _1yep5z61lq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61mg _1yep5z61lo"]]}),tc=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z610e"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61lp"],[{isSelected:!1,isDisabled:!0},"_1yep5z61lo _1yep5z61me"],[{isSelected:!1,isHovered:!0},"_1yep5z61mf"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]});var Z5={xxs:8,xs:12,sm:16,md:20,lg:24},xo=ho.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary","data-block-id":n,...s},i)=>{let l=ho.useRef(null),p=useToggleState(s),{buttonProps:d,isPressed:c}=useToggleButton(s,p,l),{hoverProps:m,isHovered:u}=useHover({isDisabled:s.isDisabled}),{isFocusVisible:f,isFocused:g,focusProps:v}=useFocusRing(),y=useMemo(()=>typeof o=="function"?o:p.isSelected?o.selected:o.unselected,[o,p.isSelected]),z={isSelected:p.isSelected,isHovered:u,isFocusVisible:f,isDisabled:!!s.isDisabled},_=filterTruthyValues({"data-hovered":u,"data-selected":p.isSelected,"data-focus-visible":f,"data-disabled":s.isDisabled,"data-block-id":n,"data-focused":g,"data-pressed":c});return jsx("button",{...mergeProps(d,m,v,_),className:classNames(a==="toolbar"&&tc(z),a==="primary"&&ec(z),a==="secondary"&&oc(z),a==="tertiary"&&rc(z),Jd({size:r}),"BaselineUI-ToggleIconButton",e),style:t,ref:mergeRefs(l,i),children:jsx(y,{size:Z5[r]})})});xo.displayName="ToggleIconButton";var sc="f6jv6bm",ic="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6j0 _1yep5z6j1 _1yep5z6j2",Po="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",lc=b({defaultClassName:"f6jv6b0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6fs",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6uw _1yep5z6ux _1yep5z6uy _1yep5z6142 _1yep5z6143 _1yep5z6144",false:"_1yep5z613n _1yep5z613o _1yep5z613p"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61h7 _1yep5z61h8 _1yep5z61h9 _1yep5z61hv _1yep5z61hw _1yep5z61hx _1yep5z61ij _1yep5z61ik _1yep5z61il _1yep5z61j7 _1yep5z61j8 _1yep5z61j9 _1yep5z61rv _1yep5z61rt _1yep5z61nc"]]}),bt=b({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6ky",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),pc="f6jv6bj _1yep5z6vz _1yep5z6w0 _1yep5z6w1 _1yep5z6wn _1yep5z6wo _1yep5z6wp _1yep5z6xb _1yep5z6xc _1yep5z6xd _1yep5z6xz _1yep5z6y0 _1yep5z6y1",dc="f6jv6bk";var cc=b({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6kx",variantClassNames:{isHovered:{true:"_1yep5z6115"},isDisabled:{true:"_1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),mc="f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs _1yep5z6l0 _1yep5z6kz _1yep5z6hf _1yep5z6l3",uc="_1yep5z6j6 _1yep5z6j7 _1yep5z6j8",yc="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu _1yep5z6e3 _1yep5z6kv",fc=b({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{isInline:{true:"_1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z616k _1yep5z616i _1yep5z6121",false:"_1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg"}},defaultVariants:{},compoundVariants:[]}),bc="f6jv6bl",gc="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu",gt=b({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),vt="f6jv6b9 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it";var _c=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:Qo}}=layoutSprinkleValues,zc=({isOpen:e,onClose:t})=>{let{formatMessage:o}=M(),r=useId();return jsx(bo,{isOpen:e,onOpenChange:a=>{a||t();},children:jsx(qo,{enableDrawer:"auto",style:{zIndex:999999},children:jsxs(ae,{"aria-labelledby":r,className:pc,drawerBackground:"subtle",children:[jsxs(S,{paddingLeft:Qo.padding.horizontal.lg,paddingRight:Qo.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:dc,children:[jsx(G,{id:r,elementType:"h3",type:"title",size:"md",children:o(Jo.help)}),jsx(N,{icon:XIcon$1,size:"md",variant:"secondary","aria-label":o(Jo.close),onPress:t})]}),jsx(D,{className:bc}),jsxs(S,{paddingX:Qo.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsx("div",{role:"rowgroup",children:jsxs(S,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Qo.padding.vertical.md,color:"text.primary",children:[jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:o(Jo.action)}),jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:o(Jo.shortcut)})]})}),jsx("div",{role:"rowgroup",children:_c.map(([a,n],s)=>jsxs(Fragment$1,{children:[jsxs(S,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Qo.padding.vertical.xs,style:{minHeight:40},children:[jsx(G,{type:"subtitle",size:"sm",role:"cell",children:o(Jo[camelCase(a)])}),jsx(G,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:getOsSpecificKeyboardShortcutLabel(n,!0)})]}),s!==_c.length-1&&jsx(D,{})]},a))})]})]})})})},Jo=$({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"}});var _t=ho.forwardRef(({value:e,defaultValue:t,onChange:o,placeholder:r,spellCheck:a,onSave:n,textBoxRef:s,isInline:i,isMinimal:l,isDisabled:p,isSaveDisabled:d,editableContentAriaLabel:c,editorHandle:m,autoFocus:u,clear:f,clearOnSave:g},v)=>{let y=ho.useRef(null),[z,_]=useControlledState(e,t||"",o),h=useCallback(I=>{_(I.currentTarget.value||"");},[_]);useImperativeHandle(v,()=>({clear:()=>{_("");}}));let P=useCallback(I=>{I.currentTarget.style.height="16px",I.currentTarget.style.height=I.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let I=y.current;I&&(I.style.height="16px",I.style.height=I.scrollHeight+"px");},[l],[z]),useImperativeHandle(m,()=>({setCaretPosition:I=>{y.current&&(y.current.focus(),y.current.setSelectionRange(I,I));}}));let{keyboardProps:C}=useKeyboard({onKeyDown:I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),d||n?.(y.current?.value||""),g&&f());}}),{focusProps:T,isFocused:x,isFocusVisible:w}=useFocusRing(),{hoverProps:L,isHovered:H}=useHover({}),R=filterTruthyValues({"data-focus-visible":w,"data-hovered":H,"data-focused":x});return jsx("textarea",{...mergeProps(C,T,L,R),ref:mergeRefs(y,s),className:classNames(l?yc:[bt(),gt({isInline:i}),gc]),autoFocus:u,onChange:h,disabled:p,onInput:P,value:z,placeholder:r,spellCheck:a,"aria-label":c})});_t.displayName="PlainEditor";var tn=(e,t)=>{let o=Editor.marks(e);return o?o[t]===!0:!1},Ro=(e,t)=>{tn(e,t)?Editor.removeMark(e,t):Editor.addMark(e,t,!0);},Be=e=>{ReactEditor.focus(e);};function We(e,t){let[o]=Editor.nodes(e,{match:r=>!Editor.isEditor(r)&&Element$1.isElement(r)&&"type"in r&&r.type===t});return o?.[0]}var er=(e,t)=>{Transforms.unwrapNodes(e,{match:o=>!Editor.isEditor(o)&&Element$1.isElement(o)&&"type"in o&&o.type===t});};function _z(e){if(!e.selection)return;let{selection:t}=e,[o]=Range.edges(t),r=Editor.before(e,o,{unit:"word"}),a=Editor.after(e,o,{unit:"word"});return {anchor:r||o,focus:a||o}}var an=(e,t)=>{if(!e.selection)return;if(We(e,"link")){let n=_z(e);n&&Range.isCollapsed(n)&&Transforms.select(e,n),er(e,"link");}let{selection:o}=e,r=o&&Range.isCollapsed(o),a={type:"link",url:t,children:r?[{text:t}]:[]};r?Transforms.insertNodes(e,a):(Transforms.wrapNodes(e,a,{split:!0}),Transforms.collapse(e,{edge:"end"}));},kc=e=>{let{isInline:t}=e;return e.isInline=o=>"type"in o&&(o.type==="link"||o.type==="span")||t(o),e},Rc=e=>{let{isInline:t,isVoid:o,markableVoid:r}=e;return e.isInline=a=>"type"in a&&a.type==="mention"?!0:t(a),e.isVoid=a=>"type"in a&&a.type==="mention"?!0:o(a),e.markableVoid=a=>"type"in a&&a.type==="mention"||r(a),e},wc=(e,t)=>{let o=We(e,"span"),r={};if(o){let n=new Set(["type","children"]);r=Object.fromEntries(Object.keys(o).filter(s=>!n.has(s)).filter(s=>!!o[s]).map(s=>[s,o[s]])),er(e,"span");}let a={...o,type:"span",...r,children:[]};delete a[t],Transforms.wrapNodes(e,a,{split:!0}),Transforms.collapse(e,{edge:"end"});},Ic=(e,t,o)=>{if(!e.selection)return;let r=We(e,"span");r&&er(e,"span");let a={...r,type:"span",[t]:o,children:[]};Transforms.wrapNodes(e,a,{split:!0}),Transforms.collapse(e,{edge:"end"});};function zz(e){return Object.entries(e).map(([t,o])=>`${kebabCase(t)}:${o}`).filter(([,t])=>!!t).join(";")}var or=e=>slateToHtml(e,{markMap:{bold:["strong"],underline:["u"],italic:["i"]},elementMap:{paragraph:"p"},elementTransforms:{link:({node:t,children:o=[]})=>new Element("a",{href:t.url},o),span:({node:t,children:o=[]})=>{let r=zz({...t.color&&{color:t.color},...t.backgroundColor&&{backgroundColor:t.backgroundColor}}),a=r?{style:r}:{};return new Element("span",a,o)},mention:({node:t})=>new Element("span",{"data-user-id":t.userId},[new Text(t.displayName)])}});function hz(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(t=>t.split(":").map(o=>o.trim())).map(([t,o])=>[camelCase(t),o]))):{}}function nn(e){return e.startsWith("<p>")||(e=`<p>${e}</p>`),htmlToSlate(e,{convertBrToLineBreak:!0,filterWhitespaceNodes:!0,textTags:{em:()=>({italic:!0}),i:()=>({italic:!0}),strong:()=>({bold:!0}),u:()=>({underline:!0}),b:()=>({bold:!0})},elementTags:{a:t=>({type:"link",url:t?.attribs.href||"",children:[]}),p:()=>({type:"paragraph"}),span:t=>{let o=t?.attribs["data-user-id"];return o?{type:"mention",userId:o,displayName:t?.children[0]?.data||""}:{type:"span",...hz(t?.attribs.style||"")}}}})}function rr(e,t=1){let{selection:o}=e;if(o){let[r]=Range.edges(o),a=Editor.before(e,r,{distance:t,unit:"character"}),n=a&&Editor.range(e,a,r);return {text:n&&Editor.string(e,n),range:n}}else return null}function Tc(e){return e&&(e.text===" "||!e.range)}function Nc(e){Transforms.delete(e,{at:{anchor:Editor.start(e,[]),focus:Editor.end(e,[])}});}var Lc=({isDisabled:e})=>{let{formatMessage:t}=M(),o=useSlate();return jsx(Ue,{type:"dialog",children:({close:r})=>jsxs(Fragment,{children:[jsx(qe,{children:jsx(N,{icon:LinkIcon,size:"sm",isDisabled:e,"aria-label":t(Ze.addLink),className:Po})}),jsx(Me,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:jsx(ae,{size:"content",style:{minWidth:240},children:jsx(kz,{close:()=>{r(),setTimeout(()=>{Be(o);},0);}})})})]})})},kz=({close:e})=>{let t=useSlate(),{formatMessage:o}=M(),r=We(t,"link")?.url,[a,n]=ho.useState(r?"show":"add"),[s,i]=ho.useState(r||""),l=jsx(S,{padding:"lg",children:jsx(co,{label:o(Ze.link),value:s,autoFocus:!0,onChange:i,placeholder:"https://yourdomain.com"})});return jsxs(Fragment,{children:[a==="add"&&jsxs(Fragment,{children:[l,jsx(S,{display:"flex",justifyContent:"flex-end",padding:"lg",className:sc,children:jsx(j,{isDisabled:!isUrl(s,!0),label:o(Ze.addLink),size:"sm",onPress:()=>{an(t,s),e?.();}})})]}),a==="show"&&jsxs(Fragment,{children:[jsx(S,{padding:"lg",children:jsx(G,{type:"subtitle",size:"sm",children:r})}),jsxs(S,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(j,{label:o(Ze.editLink),size:"sm",variant:"secondary",onPress:()=>{n("edit");},style:{flex:1,justifyContent:"center"}}),jsx(j,{label:o(Ze.removeLink),size:"sm",onPress:()=>{er(t,"link"),e?.();},style:{flex:1,justifyContent:"center"}})]})]}),a==="edit"&&jsxs(Fragment,{children:[l,jsxs(S,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(j,{label:o(Ze.cancel),size:"sm",variant:"secondary",onPress:()=>{n("show"),e?.();}}),jsx(j,{label:o(Ze.save),size:"sm",onPress:()=>{an(t,s),e?.();}})]})]})]})},Ze=$({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var wz=parseColor("#ffffff00").toString("hexa"),ln=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...ln,{label:"Transparent",color:wz}];var xt=({nodeType:e,icon:t,ariaLabel:o,isDisabled:r})=>{let a=useSlate(),n=tn(a,e);return jsx(xo,{variant:"tertiary",isSelected:n,size:"sm",icon:t,"aria-label":o,isDisabled:r,onPress:()=>{Ro(a,e),Be(a);}})},dn=({nodeType:e,"aria-label":t,isDisabled:o})=>{let r=useSlate(),a=We(r,"span")?.[e],n=useCallback(p=>{r?.selection&&(Transforms.setSelection(r,r.selection),Be(r),Ic(r,e,p),setTimeout(()=>{invariant(r.selection),Transforms.setSelection(r,r.selection),Be(r);},0));},[r,e]),s=useCallback(()=>{r?.selection&&(Transforms.setSelection(r,r.selection),Be(r),wc(r,e),setTimeout(()=>{invariant(r.selection),Transforms.setSelection(r,r.selection),Be(r);},0));},[r,e]),i=useCallback(({ref:p,triggerProps:d})=>jsx(N,{icon:e==="color"?TextIcon:HighlightTextIcon,"aria-label":t,size:"md",variant:"popover",isDisabled:o,className:Po,...d,ref:p}),[e,t,o]),l=useCallback(p=>{p?n(p.toString("rgba")):s();},[s,n]);return jsx(Zo,{presets:ln,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:i,value:a||"#000000",onChange:l,isDisabled:o})};function Fc({mentionableUsers:e,mentionPopoverRef:t,editor:o,maxMentionableUsersSuggestions:r=10}){let[a,n]=useState(null),[s,i]=useState(0),[l,p]=useState(""),d=useInteractionModality(),c=useMemo(()=>e?.map(y=>({id:y.id,label:y.displayName||y.name,description:y.description,value:y,data:{avatar:y.avatar}})),[e]),{contains:m}=useFilter({sensitivity:"base"}),u=c?.filter(y=>m(y.label,l)).slice(0,r),f=useCallback(()=>{let{selection:y}=o,z=rr(o,2);if(y&&Range.isCollapsed(y)){let[_]=Range.edges(y);if((z?.text?.startsWith(" ")||z?.text?.length===1)&&z?.text?.endsWith("@")){invariant(z,"lastTwoCharacters should be defined");let h=rr(o)?.range;n(h||null),p("");}else {let h=Editor.before(o,_,{unit:"word"}),P=h&&Editor.before(o,h),C=P&&Editor.range(o,P,_),x=(C&&Editor.string(o,C))?.match(/^@(\w+)$/),w=Editor.after(o,_),L=Editor.range(o,_,w),R=Editor.string(o,L).match(/^(\s|$)/);x&&R&&C&&(n(C),p(x[1]));}return null}n(null);},[o]),g=useCallback((y=s)=>{let z=u?.[y];if(z){let _={userId:z.id,displayName:z.label,children:[{text:""}],type:"mention"};invariant(o,"Editor ref is not set"),invariant(a,"Target is not set"),Transforms.select(o,a),Transforms.insertNodes(o,_),Transforms.move(o),Transforms.insertText(o," "),i(0),n(null);}},[u,s,o,a]),v=useCallback(y=>{if(!!e?.length&&a)switch(y.key){case"ArrowDown":{y.preventDefault(),i(_=>(_+1)%(u?.length||1));break}case"ArrowUp":{y.preventDefault(),i(_=>(_-1+(u?.length||1))%(u?.length||1));break}case"Escape":{y.preventDefault(),n(null);break}case"Enter":{y.preventDefault(),g();break}}},[u?.length,e?.length,a,g]);return useLayoutEffect(()=>{let y=t.current;y&&d==="keyboard"&&y.querySelector("[data-active=true]")?.scrollIntoView({block:"nearest",behavior:"smooth"});},[s,t,d]),useInteractOutside({ref:t,onInteractOutside:()=>{n(null);}}),{triggerMention:f,matchedUsers:u,onKeyDown:v,insertMention:g,activeIndex:s,isMentionPopoverOpen:!!a&&!!u?.length,setActiveIndex:i}}var $z=[{type:"paragraph",children:[{text:""}]}],fn=ho.forwardRef(({editor:e,onSave:t,value:o,defaultValue:r,onChange:a,style:n,spellCheck:s,placeholder:i,isInline:l,isDisabled:p,isSaveDisabled:d,editableContentAriaLabel:c,containerRef:m,onHelpDialogOpenRequest:u,mentionableUsers:f,editorHandle:g,maxMentionableUsersSuggestions:v,autoFocus:y,clear:z,clearOnSave:_},h)=>{let P=useRef(null),C=useId(),T=useCallback(k=>jsx(Qz,{...k}),[]),{formatMessage:x}=M(),w=useRef(null),L=useRef(null),{onKeyDown:H,matchedUsers:R,activeIndex:I,insertMention:V,triggerMention:A,isMentionPopoverOpen:X,setActiveIndex:W}=Fc({mentionableUsers:f,mentionPopoverRef:L,maxMentionableUsersSuggestions:v,editor:e}),[ee,Z]=useControlledState(o?nn(o):void 0,nn(r||"<p></p>"),k=>{a&&a(or(k));}),{keyboardProps:E}=useKeyboard({onKeyDown:k=>{H(k),k.key==="Enter"&&!k.shiftKey?(k.preventDefault(),!d&&!X&&t?.(or(e.children)),_&&z()):(k.metaKey||k.ctrlKey)&&k.key==="b"?(k.preventDefault(),Ro(e,"bold")):(k.metaKey||k.ctrlKey)&&k.key==="i"?(k.preventDefault(),Ro(e,"italic")):(k.metaKey||k.ctrlKey)&&k.key==="u"?(k.preventDefault(),Ro(e,"underline")):k.altKey&&k.key==="F10"?(k.preventDefault(),P.current&&P.current.querySelector("button")?.focus()):k.continuePropagation();}});return useEffect(()=>{p&&ReactEditor.deselect(e);},[p,e]),useEffect(()=>{let k=w.current?.querySelector("[contenteditable=true]");if(!k)return;let q=()=>{ReactEditor.focus(e);};return k.addEventListener("focus",q),()=>{k.removeEventListener("focus",q);}},[e]),useImperativeHandle(h,()=>({startMention:()=>{let k=rr(e,1);Transforms.insertText(e,Tc(k)?"@":" @"),ReactEditor.focus(e);}})),useImperativeHandle(g,()=>({setCaretPosition:k=>{ReactEditor.focus(e),Transforms.move(e,{distance:k,unit:"character"});}})),jsxs(Slate,{editor:e,initialValue:ee||$z,onValueChange:Z,onChange:A,children:[jsxs(ft,{className:vt,"aria-controls":C,ref:P,children:[jsxs(S,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(xt,{nodeType:"bold",icon:BoldIcon,ariaLabel:x(wo.bold),isDisabled:p}),jsx(xt,{nodeType:"italic",icon:ItalicIcon,ariaLabel:x(wo.italic),isDisabled:p}),jsx(xt,{nodeType:"underline",icon:UnderlineIcon,ariaLabel:x(wo.underline),isDisabled:p})]}),jsx(D,{orientation:"vertical"}),jsx(dn,{nodeType:"color","aria-label":x(wo.fontColor),isDisabled:p}),jsx(D,{orientation:"vertical"}),jsx(dn,{nodeType:"backgroundColor","aria-label":x(wo.backgroundColor),isDisabled:p}),jsx(D,{orientation:"vertical"}),jsx(Lc,{isDisabled:p}),jsx(D,{orientation:"vertical"}),jsx(N,{className:Po,icon:QuestionmarkCircleIcon,size:"sm","aria-label":x(wo.help),onPress:u})]}),jsx(D,{variant:"secondary"}),jsx("div",{ref:w,children:jsx(Editable,{...E,renderLeaf:T,renderElement:Jz,readOnly:p,disabled:p,autoFocus:y,"data-mention-open":X,className:classNames(bt({isDisabled:p}),gt({isInline:l})),renderPlaceholder:({attributes:k,children:q})=>jsx("span",{...k,className:sprinkles({paddingY:"lg"}),children:q}),style:n,placeholder:i,spellCheck:s,id:C,"aria-label":c})}),jsxs(Ue,{isOpen:X,type:"listbox",children:[jsx(qe,{}),jsx(Me,{isNonModal:!0,className:mc,triggerRef:m,placement:"bottom start",children:jsx(ue,{ref:L,items:R||[],className:sprinkles({width:"full"}),renderOption:(...k)=>eh(...k,{index:(R||[]).findIndex(q=>q.id===k[0].key),setIndex:W,activeIndex:I}),onAction:k=>{let q=R?.findIndex(K=>K.id===k);V(q);}})})]})]})});fn.displayName="RichEditor";var Qz=({children:e,attributes:t,leaf:o})=>(o.bold&&(e=jsx("strong",{children:e})),o.italic&&(e=jsx("em",{children:e})),o.underline&&(e=jsx("u",{children:e})),jsx("span",{...t,children:e})),Rt=()=>jsxs("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),Jz=e=>{let{attributes:t,children:o,element:r}=e;return "type"in r&&r.type==="link"?jsxs(Ir,{size:"sm",...t,href:r.url,children:[jsx(Rt,{}),o,jsx(Rt,{})]}):"type"in r&&r.type==="span"?jsxs("span",{...t,style:{color:r.color,backgroundColor:r.backgroundColor},children:[jsx(Rt,{}),o,jsx(Rt,{})]}):"type"in r&&r.type==="mention"?jsxs("span",{...t,contentEditable:isChrome()?void 0:t.contentEditable,"data-user-id":r.userId,children:[o,"@",r.displayName]}):jsx("p",{...t,children:o})},eh=({value:e,nextKey:t},{optionProps:o,isDisabled:r},a,{index:n,setIndex:s,activeIndex:i})=>{let{hoverProps:l}=useHover({isDisabled:r,onHoverStart:()=>{s(n);}});invariant(e,"Option value is not set");let{label:p,description:d,data:c}=e;return jsxs(Fragment,{children:[jsxs("li",{...mergeProps(o,l),className:cc({isDisabled:r,isHovered:n===i}),"data-active":n===i,ref:a,children:[jsx(fo,{name:p,...c?.avatar}),jsxs(S,{display:"flex",flexDirection:"column",children:[jsx(G,{type:"subtitle",size:"sm",children:p}),jsx(G,{type:"helper",size:"sm",children:d})]})]}),t?jsx(D,{}):null]})},wo=$({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"},help:{defaultMessage:"Help",id:"help"}});var Uc=ho.memo(ho.forwardRef(({className:e,style:t,"data-block-id":o,enableRichText:r=!1,onCancel:a,onSave:n,isInline:s=!0,submitButtonIcon:i=ArrowUpCircleFilledIcon,submitButtonAriaLabel:l,"aria-label":p,"aria-describedby":d,"aria-labelledby":c,"aria-details":m,editableContentAriaLabel:u="Editing Area",footerButtons:f,clearOnCancel:g,clearOnSave:v,...y},z)=>{let _=useMemo(()=>{let E=kc(withReact(withHistory(createEditor())));return y.mentionableUsers?Rc(E):E},[y.mentionableUsers]),{formatMessage:h}=M(),P=useRef(null),C=useRef(null),T=useRef(null),x=!r&&y.variant==="minimal",w=useRef(null),[L,H]=ho.useState(y.value||y.defaultValue),{fieldProps:R}=useLabel({"aria-label":p,"aria-labelledby":c,"aria-describedby":d,"aria-details":m,labelElementType:"div"});x&&!y.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let I=useCallback(()=>{H(""),r?Nc(_):C.current?.clear();},[_,r]),V=useCallback(()=>{n?.(r?or(_.children):P.current.value),v&&I();},[I,v,_.children,r,n]),A=jsx(N,{variant:"ghost","aria-label":l||h(gn.save),icon:i,isDisabled:y.isDisabled||y.isSaveDisabled||!getPlainText(L||""),size:"md",excludeFromTabOrder:x,className:x?uc:void 0,onPress:V}),[X,W]=ho.useState(!1),{keyboardProps:ee}=useKeyboard({onKeyDown:E=>{(E.metaKey||E.ctrlKey)&&E.shiftKey&&E.key==="h"&&(E.preventDefault(),W(!0));}}),Z=useCallback(E=>{H(E),y.onChange?.(E);},[y]);return jsxs("div",{...mergeProps(R,r?ee:{}),role:"application",ref:mergeRefs(T,z),style:t,"data-block-id":o,className:classNames(lc({isInline:s,isMinimal:x}),"BaselineUI-Editor",e),"aria-disabled":y.isDisabled,children:[x?jsxs(Fragment,{children:[s?jsx(fo,{className:ic,name:y.avatarName||""}):null,jsxs("div",{className:fc({isInline:s}),children:[jsx(_t,{isMinimal:x,textBoxRef:P,onSave:n,isInline:s,editableContentAriaLabel:u,clear:I,clearOnSave:v,...y,onChange:Z}),A]})]}):jsxs(Fragment,{children:[r?jsx(fn,{containerRef:T,ref:w,editor:_,onSave:n,isInline:s,editableContentAriaLabel:u,onHelpDialogOpenRequest:()=>{W(!0);},clear:I,clearOnSave:v,...y,onChange:Z}):jsxs(Fragment,{children:[!s&&jsx(D,{variant:"secondary"}),jsx(_t,{onSave:n,onCancel:a,textBoxRef:P,ref:C,isInline:s,editableContentAriaLabel:u,clear:I,clearOnSave:v,...y,onChange:E=>{H(E),y.onChange?.(E);}})]}),jsx(D,{variant:"secondary"}),jsxs("div",{className:classNames(vt,sprinkles({justifyContent:"space-between"})),children:[jsxs(S,{paddingX:"sm",gap:"sm",display:"flex",children:[r&&y.mentionableUsers?jsx(N,{icon:AtIcon,size:"sm","aria-label":h(gn.mention),onPress:()=>w.current?.startMention()}):null,f?.map((E,k)=>jsx(N,{...E,size:"sm",isDisabled:y.isDisabled||E.isDisabled},k))]}),jsxs(S,{children:[!!a&&jsx(N,{variant:"secondary",icon:CrossCircleFilledIcon,isDisabled:y.isDisabled,size:"md",onPress:()=>{a(),g&&I();},"aria-label":h(gn.cancel)}),A]})]})]}),jsx(zc,{isOpen:X,onClose:()=>{W(!1);}})]})}));Uc.displayName="Editor";var gn=$({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var Tt=ho.forwardRef(({className:e,style:t,"data-block-id":o,isMounted:r,children:a,transitions:n,elementType:s="div",...i},l)=>{let p=useTransition(r,n),d=animated[s];return p((c,m)=>m&&jsx(d,{className:e,"data-block-id":o,style:{...t,...c},...i,ref:l,children:a}))});Tt.displayName="Transition";var qc="_8kqf970 _1yep5z6ow _1yep5z6ox _1yep5z6oy _1yep5z613b _1yep5z613c _1yep5z613d _1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6142 _1yep5z6143 _1yep5z6144 _1yep5z6yh _1yep5z6uq _1yep5z6ur _1yep5z6us _1yep5z6168";var Yc=2,Xc=ho.forwardRef(({className:e,style:t,hideForKeyboard:o,scrollRef:r,label:a,delay:n=1500,smoothScroll:s=!0,"data-block-id":i},l)=>{let p=ho.useRef(null),d=useInteractionModality(),[c,m]=ho.useState(!1),u=useCallback(()=>{let w=r?.current||getOwnerDocument(p.current).body;return getOwnerWindow(w).getComputedStyle(w).flexDirection==="column-reverse"?w.scrollTop+Yc>=0:w.scrollTop+w.clientHeight+Yc>=w.scrollHeight},[r]),[f,g]=ho.useState(u),v=Ie(),{buttonProps:y,isPressed:z}=useButton({onPress:()=>{let w=r?.current||getOwnerDocument(p.current).body;w.scrollTo({top:w.scrollHeight,behavior:s?"smooth":"auto"});}},p),{focusProps:_,isFocused:h,isFocusVisible:P}=useFocusRing(),{hoverProps:C,isHovered:T}=useHover({}),x=filterTruthyValues({"data-block-id":i,"data-pressed":z,"data-focus-visible":P,"data-hovered":T,"data-focused":h});return useEffect(()=>{g(u());},[u]),useEffect(()=>{let w=r?.current||getOwnerDocument(p.current).body,L="onscrollend"in getOwnerWindow(w),H=()=>{setTimeout(()=>{m(!1),g(u());},n);},R=()=>{m(!0),L||H();};return w.addEventListener("scroll",R),w.addEventListener("scrollend",H),()=>{w.removeEventListener("scroll",R),w.removeEventListener("scrollend",H);}},[r,n,u]),jsxs(Tt,{isMounted:(o?d!=="keyboard":!0)&&!c&&!f,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:v},...mergeProps(y,_,C,x),className:classNames(qc,Dr({isFocusVisible:P,variant:"high-contrast",isHovered:T}),"BaselineUI-ScrollControlButton",e),style:t,ref:mergeRefs(l,p),children:[jsx(ArrowDownCircleFilledIcon,{size:16}),a]})});Xc.displayName="ScrollControlButton";var zn="_1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6jl _1yep5z6jm _1yep5z6jn",Wc=b({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nw _1yep5z6nx _1yep5z6ny"},hasNoCloseBtn:{true:"_1yep5z6lk _1yep5z6ll _1yep5z6lm _1yep5z6nw _1yep5z6nx _1yep5z6ny _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61g7 _1yep5z61g8 _1yep5z61g9"]]}),Zc="_1v0p2z10";var $c=ho.forwardRef(({className:e,style:t,"data-block-id":o,message:r,title:a,primaryActionLabel:n,cancelLabel:s,textInputProps:i,icon:l,iconColor:p,showCloseButton:d=!0,onPrimaryAction:c,onCancel:m,autoFocusButton:u,isPrimaryActionDisabled:f},g)=>{let v=useId(),{formatMessage:y}=M(),z=a&&jsx(G,{id:v,type:"title",size:"sm",elementType:"h3",children:a});return jsxs(ae,{className:e,style:t,"data-block-id":o,size:"sm",variant:"primary",role:"alertdialog",ref:g,"aria-labelledby":v,children:[jsxs("div",{className:Wc({hasTitleAndIcon:!!(l&&a),hasNoCloseBtn:!d}),children:[jsxs(S,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[l?jsx(l,{style:{color:p},size:24}):null,!l&&z,d?jsx(N,{icon:XIcon$1,variant:"secondary",size:"md","aria-label":y(Bh.close),onPress:m}):null]}),l?z:null]}),r?jsx(S,{elementType:"section",className:Zc,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:r}):null,i?jsx(S,{paddingX:"lg",paddingBottom:"lg",children:jsx(co,{...i})}):null,s||n?jsxs(Fragment,{children:[jsx(D,{}),jsxs(S,{padding:"lg",display:"flex",gap:"xl",children:[s?jsx(j,{variant:"secondary",className:zn,label:s,onPress:m,autoFocus:u==="cancel"}):null,n?jsx(j,{className:zn,label:n,onPress:c,autoFocus:u==="primary",isDisabled:f}):null]})]}):null]})});$c.displayName="AlertDialog";var Bh=$({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var Qc="_1t55bp71",Jc="_1yep5z6e3 _1yep5z6eu _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69i _1yep5z69j _1yep5z69k",em="_1t55bp70";var Ah=Vh(),om=ho.forwardRef(({className:e,style:t,children:o,"data-block-id":r,showCaret:a},n)=>{let s=useMemo(()=>{let i=o;return (!o||Array.isArray(o)&&o.length===0)&&(i=""),Ah.render(i)},[o]);return jsx("div",{className:classNames(Jc,em,{[Qc]:a},"BaselineUI-Markdown",e),"data-block-id":r,style:t,ref:n,dangerouslySetInnerHTML:{__html:s}})});om.displayName="Markdown";function nm(e){let{formatMessage:t,locale:o}=M(),[r,a]=ho.useState(!1),[n,s]=ho.useState(0),[i,l]=ho.useState(0),[p,d]=ho.useState(!1);useEffect(()=>{if(!e.current)return;let u=e.current,f=()=>{a(!1),s(0);},g=()=>{p||s(u.currentTime*100/u.duration);},v=()=>{l(u.duration);};return u.addEventListener("ended",f),u.addEventListener("timeupdate",g),u.addEventListener("loadedmetadata",v),()=>{u.removeEventListener("ended",f),u.removeEventListener("timeupdate",g),u.removeEventListener("loadedmetadata",v);}},[p,e]);let c=useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(!0),announce(t(tm.playing),"polite")):(e.current.pause(),a(!1),announce(t(tm.paused),"polite"))))();},[t,e]),m=useCallback(u=>{e.current&&(e.current.currentTime=u*e.current.duration/100,announce(Uh(e.current.currentTime,o.locale),"assertive"));},[o.locale,e]);return {isPlaying:r,progress:n,duration:i,togglePlay:c,seek:m,setProgress:s,formattedCurrentTime:e.current?.currentTime?am(e.current?.currentTime):"00:00",formattedDuration:i?am(i):"00:00",setIsSliderDragging:d}}var tm=$({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function Uh(e,t){let o=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,n={...o&&{hours:o},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(t,{style:"long"}).format(n)}function am(e){let t=Math.floor(e%3600/60),o=Math.floor(e%60);return [t,o].map(r=>r.toString().padStart(2,"0")).join(":")}var sm="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q",im="rta2n91 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6z9 _1yep5z6ut _1yep5z6uu _1yep5z6uv _1yep5z6166 _1yep5z6106",lm="rta2n90";var cm=ho.forwardRef(({className:e,style:t,size:o="lg",sources:r,"data-block-id":a,...n},s)=>{let i=ho.useRef(null),{isPlaying:l,progress:p,duration:d,togglePlay:c,seek:m,formattedDuration:u,formattedCurrentTime:f,setProgress:g,setIsSliderDragging:v}=nm(i),{formatMessage:y}=M(),z=filterTruthyValues({"data-block-id":a,"data-state":l?"playing":"paused","data-loaded":d>0});return jsxs("div",{...z,...n,className:classNames(sm,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:s,children:[jsx(VisuallyHidden,{children:jsx("audio",{ref:i,children:r.map(({url:_,type:h})=>jsx("source",{src:_,type:h},_))})}),jsx(xo,{icon:l?PauseIcon:PlayIcon,variant:"toolbar",isSelected:l,size:o,"aria-label":y(l?Cn.pause:Cn.play),style:{borderRadius:"50%"},onPress:c}),jsxs("div",{className:im,children:[jsx("span",{"aria-hidden":!0,children:f}),jsx(br,{"aria-label":y(Cn.audioTimeline),value:p,minValue:0,maxValue:100,className:lm,onChange:_=>{g(_),v(!0);},onChangeEnd:_=>{m(_),v(!1);}}),jsx("span",{"aria-hidden":!0,children:u})]})]})});cm.displayName="AudioPlayer";var Cn=$({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});function X4(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}
49
+ function kn(e,t,o){let{direction:r}=useLocale(),a=useDraggableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager,getItems:e.getItems||(s=>[...s].map(l=>{let p=t.collection.getItem(l);return invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});useDraggableCollection(e,a,o);let n=useDroppableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:i}=useDroppableCollection({...e,keyboardDelegate:new ListKeyboardDelegate({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new ListDropTargetDelegate(t.collection,o)},n,o);return e.enableReorder?{collectionProps:i,dragState:a,dropState:n}:{collectionProps:{},dropState:void 0,dragState:void 0}}function km(e,t){if(typeof e!="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Rm(e){var t=km(e,"string");return typeof t=="symbol"?t:String(t)}function wm(e,t,o){return t=Rm(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Rn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r);}return o}function wn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Rn(Object(o),!0).forEach(function(r){wm(e,r,o[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rn(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));});}return e}function In(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var Im=(e,t,o)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=t[r])!==null&&a!==void 0?a:o[r]))return !1}return !0},b=e=>{var t=o=>{var r=e.defaultClassName,a=wn(wn({},e.defaultVariants),o);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:e.defaultVariants[n];if(s!=null){var l=s;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=e.variantClassNames[n][l];p&&(r+=" "+p);}}for(var[d,u]of e.compoundVariants)Im(d,a,e.defaultVariants)&&(r+=" "+u);return r};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return In(e.variantClassNames,o=>In(o,r=>r.split(" ")[0]))}},t};var Tn=b({defaultClassName:"_6n12k9b _1yep5z6l0 _1yep5z6kz _1yep5z6hk _1yep5z6ki",variantClassNames:{isDropTarget:{true:"_1yep5z612n"},orientation:{vertical:"_1yep5z6166",horizontal:"_1yep5z6167"}},defaultVariants:{},compoundVariants:[]}),Nn="_6n12k98 _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",Sn=b({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Mn=b({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6ki _1yep5z6kl _1yep5z6ky _1yep5z6kx _1yep5z6kv _1yep5z6ks",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z612n _1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612w _1yep5z612x _1yep5z612y"},isHovered:{true:"_1yep5z6114",false:"_1yep5z6113"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Ln="_6n12k90";var Bn=b({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var F=ho.forwardRef(({className:e,style:t,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:n="div",...i},s)=>{let{separatorProps:l}=useSeparator({...i,orientation:r,elementType:n});return jsx(n,{...l,className:classNames(Bn({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":i["data-block-id"],style:t,role:a?void 0:l.role,ref:s})});F.displayName="Separator";function Em(e){return sprinkles.properties.has(e)}var L=ho.forwardRef(({elementType:e="div",children:t,...o},r)=>{let a=e,{sprinkleProps:n,domProps:i}=useMemo(()=>{let s={},l={};for(let p in o)Em(p)?s[p]=o[p]:l[p]=o[p];return {sprinkleProps:s,domProps:l}},[o]);return jsx(a,{...i,className:classNames(sprinkles(n),"BaselineUI-Box",i.className),ref:r,children:t})});L.displayName="Box";var So=ho.forwardRef(({item:e,isDisabled:t,isFocusVisible:o,isSelected:r,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:l,isFocused:p,isPressed:d,_state:u},m)=>{invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:c,label:y}=e.value,{hoverProps:g,isHovered:_}=useHover({isDisabled:t}),f=filterTruthyValues({"data-selected":r,"data-disabled":t,"data-focused":p,"data-hovered":_,"data-pressed":d,"data-focus-visible":o,"data-selection-mode":u.selectionManager.selectionMode});return jsxs("li",{...mergeProps(a,g,f),className:classNames(Mn({isHovered:_,isFocused:o,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:t}),"BaselineUI-ListBox-Option"),ref:m,children:[jsxs(L,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?jsx(CheckmarkIcon,{size:24}):null}):null,c?jsx(c,{size:24}):null,jsx("span",{...l,children:y})]}),i?jsx("span",{className:Sn({isDisabled:t}),...s,children:i}):null]})});So.displayName="DefaultRenderOption";var Bt=({dropState:e,orientation:t="vertical",dropIndicatorStyle:o,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:l,orientation:p},d)=>s?null:jsx("li",{...l,ref:d,"data-drop-target":i,className:classNames(Tn({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",r),style:o}),...n})=>{let i=ho.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:p}=useDropIndicator(n,e,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:l,isDropTarget:p,orientation:t},i)};var On=({item:e,children:t,state:o,dragState:r,...a})=>{let{dragProps:n}=useDraggableItem({key:e.key},r);return jsxs(Fragment,{children:[jsx(Bt,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),t(n),o.collection.getKeyAfter(e.key)==null&&jsx(Bt,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};On.displayName="DraggableListOption";var Mo=ho.forwardRef(({item:e,renderOption:t=(m,c,y)=>jsx(So,{item:m,liProps:c.optionProps,...c,ref:y}),showSelectedIcon:o,state:r,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:d},u)=>{let m=ho.useRef(null),c=useOption({key:e.key},r,m),{value:y}=e;invariant(!!y),invariant(!("children"in e),"ListSection should not be passed to ListOption");let g={style:typeof p=="function"?p(y):p,className:typeof d=="function"?d(y):d};return a&&n?jsx(On,{orientation:i,state:r,item:e,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:l,children:_=>t(e,{...c,showSelectedIcon:o,_state:r,optionProps:mergeProps(c.optionProps,_,g)},mergeRefs(m,u))}):t(e,{...c,showSelectedIcon:o,_state:r,optionProps:mergeProps(c.optionProps,g)},mergeRefs(m,u))});Mo.displayName="Option";var Dt=({section:e,state:t,sectionClassName:o,sectionStyle:r,...a})=>{let{itemProps:n,groupProps:i}=useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]}),s=t.collection.getChildren?.(e.key);invariant(s,"items with type `section` must have children");let{value:l}=e,p=typeof r=="function"?r(l):r,d=typeof o=="function"?o(l):o;return jsxs(Fragment,{children:[e.key!==t.collection.getFirstKey()&&jsx(F,{UNSAFE_omitRole:!0}),jsx("li",{...n,style:{...n.style,...p},className:classNames(Ln,d,"BaselineUI-ListBox-Section"),children:jsx("ul",{...i,children:[...s].map(u=>jsx(Mo,{item:u,state:t,...a},u.key))})})]})};Dt.displayName="ListBoxSection";var Ht=ho.forwardRef(({className:e,layout:t="stack",orientation:o="vertical",showSelectedIcon:r=!0,UNSAFE_state:a,style:n,renderOption:i,enableReorder:s=!1,"data-block-id":l,renderDragPreview:p,...d},u)=>{let m=ho.useRef(null),c=useListState(d),{direction:y}=useLocale(),g=a||c,_=ho.useRef(null),{listBoxProps:f}=useListBox({...d,shouldSelectOnPressUp:s,keyboardDelegate:new ListKeyboardDelegate({collection:g.collection,ref:_,layout:t,orientation:o,direction:y,disabledKeys:g.disabledKeys})},g,_),{collectionProps:v,dragState:z,dropState:h}=kn({...d,layout:t,orientation:o,enableReorder:s,preview:m},g,_),{isFocusVisible:P,isFocused:C,focusProps:I}=useFocusRing(),x=filterTruthyValues({"data-block-id":l,"data-layout":t,"data-empty":g.collection.size===0,"data-focused":C,"data-focus-visible":P,"data-orientation":o});return jsxs("ul",{...mergeProps(f,I,x,v),className:classNames(Nn,"BaselineUI-ListBox",e),style:n,ref:mergeRefs(u,_),children:[[...g.collection].map(k=>{let S={key:k.key,state:g,dragState:z,dropState:h,renderOption:i,renderDropIndicator:d.renderDropIndicator,showSelectedIcon:r,orientation:o,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName};return k.type==="section"?jsx(Dt,{...S,section:k}):jsx(Mo,{...S,item:k})}),p?jsx(DragPreview,{ref:m,children:p}):null]})});Ht.displayName="ListBoxBase";var ye=ho.forwardRef((e,t)=>jsx(Ht,{...e,ref:t,children:o=>o.type==="section"?jsx(Section,{items:o.children,title:o.id,children:r=>jsx(Item,{children:r.label},r.id)},o.id):jsx(Item,{children:o.label},o.id)}));ye.displayName="ListBox";var cr="uf19bsg _1yep5z6ki",Un=b({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0 _1yep5z6kx _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ks",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610d"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg",popover:"uf19bse _1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z6mn _1yep5z6mo _1yep5z6mp _1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nq _1yep5z6nr _1yep5z6ns _1yep5z6uz _1yep5z6v0 _1yep5z6v1"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61mf"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mf"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ln"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61lm _1yep5z61mg"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61ls"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"toolbar",isPressed:!0},"_1yep5z61mf"],[{variant:"primary",isPressed:!0},"_1yep5z61mf"],[{variant:"secondary",isPressed:!0},"_1yep5z61ln"],[{variant:"tertiary",isPressed:!0},"_1yep5z61lq _1yep5z61mg"],[{variant:"ghost",isPressed:!0},"_1yep5z61lt"],[{variant:"popover",isPressed:!0},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"ghost",isDisabled:!1},"_1yep5z61lr"],[{variant:"popover",size:"lg"},"_1yep5z61h4 _1yep5z61h5 _1yep5z61h6 _1yep5z61hs _1yep5z61ht _1yep5z61hu _1yep5z61ig _1yep5z61ih _1yep5z61ii _1yep5z61j4 _1yep5z61j5 _1yep5z61j6"]]});var mr=b({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6dy _1yep5z6ki",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5"},isDisabled:{true:"oom8bs6"},isFocusVisible:{true:"oom8bs7"},isHovered:{true:"oom8bs8"},size:{sm:"oom8bs9",md:"oom8bsa"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsb"],[{variant:"secondary",isHovered:!0},"oom8bsc"],[{variant:"tertiary",isHovered:!0},"oom8bsd"],[{variant:"popover",isHovered:!0},"oom8bse"],[{variant:"ghost",isHovered:!0},"oom8bsf"],[{variant:"primary",isFocusVisible:!0},"oom8bsg"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsh"]]});var Pu={sm:16,md:20},j=ho.forwardRef(({label:e,style:t,className:o,iconStart:r,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:l="sm","data-block-id":p,...d},u)=>{let m=ho.useRef(null),{buttonProps:c,isPressed:y}=useButton({...d,elementType:i,isDisabled:s},m),g=Pu[l],{hoverProps:_,isHovered:f}=useHover({isDisabled:s}),{isFocusVisible:v,isFocused:z,focusProps:h}=useFocusRing();return jsxs(i,{...mergeProps(c,_,h),className:classNames(mr({isDisabled:!!s,isFocusVisible:v,isHovered:f,variant:n,size:l}),"BaselineUI-ActionButton",o),"data-focus-visible":v,"data-focused":z,"data-hovered":f,"data-disabled":s,"data-block-id":p,"data-pressed":y,style:t,ref:mergeRefs(u,m),children:[!!r&&jsx(r,{size:g}),e,!!a&&jsx(a,{size:g}),n==="popover"&&jsx(ChevronDownIcon,{size:8,className:cr})]})});j.displayName="ActionButton";var Lo=b({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var ur="z9nup80",to="z9nup83",Kn="z9nup87";var Gn=ho.forwardRef(({className:e,node:t},o)=>{let r=ho.useRef(null);return ho.useEffect(()=>{let a=r.current;return a?.append(t),()=>{a?.contains(t)&&t.remove();}},[t]),jsx("div",{className:classNames(ur,e),ref:mergeRefs(o,r)})});Gn.displayName="DomNodeRenderer";var Yn="_14uvjig0 z9nup81",Wn="_14uvjig7",Xn="_14uvjig3",Zn=b({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),$n=b({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Qn="_14uvjig8",Jn=b({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var ao=b({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),yr=b({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),no=b({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),xe="nrh1eh3",Pe=b({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),ke=b({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),io=b({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function Re({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:i}){return e?jsx("div",{...o,className:ao({isDisabled:i,labelPosition:n}),children:e}):a?jsx("div",{...t,className:ao({hasError:!0,labelPosition:n}),children:a}):r?jsx("div",{className:ao({isDisabled:i,labelPosition:n}),children:r}):null}var ei=b({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),oi="_1lnwne0";var Fu={xxs:8,xs:12,sm:16,md:20,lg:24},N=ho.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},l)=>{!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let p=ho.useRef(null),{buttonProps:d,isPressed:u}=useButton({...s,elementType:i},p),{isFocusVisible:m,isFocused:c,focusProps:y}=useFocusRing(),{hoverProps:g,isHovered:_}=useHover({isDisabled:s.isDisabled}),f=filterTruthyValues({"data-block-id":s["data-block-id"],"data-focused":c,"data-focus-visible":m,"data-disabled":s.isDisabled,"data-hovered":_,"data-pressed":u});return jsxs(i,{...mergeProps(d,g,y,f),className:classNames(Un({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:m,isHovered:_,isPressed:u}),"BaselineUI-ActionIconButton",e),ref:mergeRefs(l,p),style:t,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(o,{role:"presentation",size:Fu[r]}),a==="popover"&&jsx(ChevronDownIcon,{size:8,className:cr})]})});N.displayName="ActionIconButton";var ve=ho.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:a=!0,...n},i)=>{let s=ho.useRef(null),{locale:l}=useLocale(),p=useNumberFieldState({...n,locale:l}),{hoverProps:d,isHovered:u}=useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:c,isFocused:y}=useFocusRing(),{labelProps:g,decrementButtonProps:_,inputProps:f,incrementButtonProps:v,groupProps:z,descriptionProps:h,errorMessageProps:P}=useNumberField(n,p,s),C=useMemo(()=>n.isReadOnly?ReadOnlyIcon:n.isInvalid?ErrorFilledIcon:null,[n.isInvalid,n.isReadOnly]),I=Re({description:n.description,errorMessageProps:P,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:o,isDisabled:n.isDisabled}),x=filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":u,"data-focused":y,"data-focus-visible":c,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"]});return jsxs("div",{style:t,className:classNames(ke({labelPosition:o}),"BaselineUI-NumberInput",e),...x,ref:i,children:[n.label?jsxs("div",{className:Pe({labelPosition:o,hasMessage:!!I}),children:[jsx("label",{...g,className:xe,children:n.label}),o==="start"&&I]}):null,jsxs("div",{className:classNames({[to]:n.isDisabled}),children:[jsxs("div",{...mergeProps(z,d),className:classNames(io({isHovered:u,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:y,variant:r}),{[oi]:o==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...mergeProps(f,m),ref:s,className:classNames("BaselineUI-NumberInput-Input",yr({isDisabled:n.isDisabled,labelPosition:o}))}),C?jsx(C,{className:no({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxs("div",{className:ei({isHoveredOrFocused:u||y,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsx(N,{variant:"secondary",size:"xxs",icon:MinusIcon,..._,className:"BaselineUI-NumberInput-DecrementButton"}),jsx(F,{style:{height:16},orientation:"vertical"}),jsx(N,{variant:"secondary",size:"xxs",icon:PlusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),o==="top"&&I]})]})});ve.displayName="NumberInput";var gr=ho.forwardRef(({className:e,style:t,onChange:o,onChangeEnd:r,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:l,value:p,"aria-label":d,"aria-labelledby":u,"aria-details":m,"aria-describedby":c,"data-block-id":y,defaultValue:g,isReadOnly:_,label:f,id:v,includeNumberInput:z},h)=>{let P=ho.useRef(null),C={onChange:o===void 0?void 0:T=>{o(T[0]);},isDisabled:n||_,step:i,minValue:s,maxValue:l,onChangeEnd:r===void 0?void 0:T=>{r(T[0]);},value:p===void 0?void 0:[p],defaultValue:g===void 0?void 0:[g],"aria-label":d,"aria-labelledby":u,"aria-details":m,"aria-describedby":c,id:v,label:f},I=useNumberFormatter(a),x=useSliderState({...C,numberFormatter:I}),{trackProps:k,groupProps:S,labelProps:V}=useSlider(C,x,P),w=jsx(ve,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":V.id,value:x.getThumbValue(0),formatOptions:a,onChange:T=>{x.setThumbValue(0,T);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxs("div",{...S,style:t,"data-block-id":y,className:classNames(Yn,"BaselineUI-Slider",e),children:[f?jsxs("div",{className:Xn,children:[jsx("label",{...V,className:classNames(Zn({isDisabled:n,hasNumberInput:!!z}),"BaselineUI-Slider-Label"),children:f}),z?w:null]}):null,jsxs("div",{className:Wn,children:[jsx("div",{...k,className:classNames(Qn,"BaselineUI-Slider-Track"),ref:mergeRefs(P,h),"data-testid":"track",children:jsx(ny,{state:x,trackRef:P,isDisabled:n,isReadOnly:_})}),z&&!f?w:null]})]})});gr.displayName="Slider";function ny({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let a=ho.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=useSliderThumb({trackRef:t,inputRef:a},e),{focusProps:l,isFocused:p,isFocusVisible:d}=useFocusRing(),{hoverProps:u,isHovered:m}=useHover({isDisabled:o}),c=filterTruthyValues({"data-disabled":o,"data-readonly":r,"data-hovered":m,"data-focus-visible":d,"data-dragging":s,"data-focused":p});return jsxs(Fragment,{children:[jsx("div",{className:classNames(Jn({isDisabled:o,isFocusVisible:d,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsx("div",{...mergeProps(n,u,c),className:classNames($n({isDisabled:o,isFocusVisible:d,active:s,isReadOnly:r,isHovered:m}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsx(VisuallyHidden,{children:jsx("input",{ref:a,...mergeProps(i,l)})})})]})}var si=b({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),li=b({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),pi="bpklwad",di=b({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ci="bpklwa6",mi=b({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var bi=ho.forwardRef(({className:e,label:t,labelPosition:o="top",statusLabel:r,style:a,"data-block-id":n,...i},s)=>{let l=ho.useRef(null),p=useToggleState(i),{inputProps:d,isPressed:u}=useSwitch(i,p,l),{isFocusVisible:m,focusProps:c}=useFocusRing(),{hoverProps:y,isHovered:g}=useHover({isDisabled:i.isDisabled}),_=filterTruthyValues({"data-block-id":n,"data-focused":m,"data-disabled":i.isDisabled,"data-focus-visible":m,"data-selected":p.isSelected,"data-readonly":i.isReadOnly,"data-hovered":g,"data-pressed":u}),f=jsx("div",{className:classNames(si({isSelected:p.isSelected,isDisabled:!!i.isDisabled,isFocused:m,isReadOnly:!!i.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:classNames(li({isSelected:p.isSelected,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxs("label",{...mergeProps(_,y),className:classNames(di({labelPosition:o}),"BaselineUI-Switch",e),style:a,ref:s,children:[t?jsx("span",{className:classNames(pi,"BaselineUI-Switch-Label"),children:t}):null,jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,c),ref:l})}),r?jsxs("div",{className:mi({labelPosition:o}),children:[jsx("span",{className:classNames("BaselineUI-Switch-Status-Label",ci),children:p.isSelected?r.on:r.off}),f]}):f]})});bi.displayName="Switch";var gi="_19n40yy9",vi=b({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});var Cy={sm:SearchIcon,md:SearchIcon$1,lg:SearchIcon$1},hi=ho.forwardRef(({className:e,size:t="md",variant:o="primary",...r},a)=>{let n=ho.useRef(null),i=useSearchFieldState(r),{inputProps:s,clearButtonProps:l}=useSearchField({...r,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},i,n),{focusProps:p,isFocusVisible:d,isFocused:u}=useFocusRing({within:!0,isTextInput:!0}),m=Cy[t],c=t==="sm"?XIcon$2:XIcon$3,y=filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":u,"data-disabled":r.isDisabled,"data-focus-visible":d});return jsxs("div",{...y,className:classNames(vi({size:t,isFocused:u,variant:o,hasText:!!i.value,isDisabled:r.isDisabled}),"BaselineUI-SearchInput",e),ref:a,children:[jsx(m,{size:t==="sm"?20:24}),jsx("input",{...mergeProps(s,p),className:gi,ref:n}),i.value!==""&&jsx(N,{icon:c,...l,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});hi.displayName="SearchInput";function qt(e=window){let[t,o]=useState("light"),[r,a]=useState(!1),[n,i]=useState(!1),[s,l]=useState(!1);return useEffect(()=>{let p=e.matchMedia("(prefers-color-scheme: dark)"),d=u=>{o(u.matches?"dark":"light");};return p.matches&&o("dark"),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-contrast: more)"),d=u=>{a(u.matches);};return a(p.matches),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-reduced-motion: reduce)"),d=u=>{i(u.matches);};return p.matches&&i(!0),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=u=>{l(u.matches);};return p.matches&&l(!0),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),{colorScheme:t,highContrast:r,reducedMotion:n,transparency:s}}var Ie=createContext({theme:lightTheme,setTheme:()=>{}});var Ci="var(--hj25q10)";var zr={LIGHT:{name:"light",theme:lightTheme},DARK:{name:"dark",theme:darkTheme}},Te=ho.forwardRef(({theme:e="system",children:t,setTheme:o,className:r,style:a,UNSAFE_domProps:n,"data-block-id":i},s)=>{let{direction:l}=useLocale(),{colorScheme:p,reducedMotion:d,highContrast:u,transparency:m}=qt(),{name:c,theme:y}=useMemo(()=>{switch(e){case"system":return p==="light"?zr.LIGHT:zr.DARK;case"light":return zr.LIGHT;case"dark":return zr.DARK;default:return {name:"custom",theme:e}}},[p,e]),g={"data-theme":c,"data-block-id":i,"data-reduced-motion":d,"data-high-contrast":u,"data-transparency":m},_=useMemo(()=>({theme:y,setTheme:o}),[y,o]);return jsx(Ie.Provider,{value:_,children:jsx("div",{...mergeProps(n,g),className:classNames(ur,"BaselineUI-ThemeProvider",r),style:{...assignInlineVars(themeVars,y),...assignInlineVars({[Ci]:l==="rtl"?"-1":"1"}),...a},ref:s,children:t})})});Te.displayName="ThemeProvider";var Kt=ho.createContext(void 0),Ri=({portalContainer:e,children:t})=>jsx(Kt.Provider,{value:e,children:t});Ri.displayName="PortalContainerProvider";function Ii({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:a,root:n}){let i=ho.useRef(null);useEffect(()=>{if(o){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{t(s);},{root:n?.current,rootMargin:a,threshold:r});},[t,o,n,a,r]),useEffect(()=>{let{current:s}=i;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function Ti({ref:e,onResize:t,isDisabled:o}){let r=ho.useRef(null),[a,n]=ho.useState();return ho.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([i])=>{n(i.contentRect),t?.(i);});},[t,o,n]),ho.useEffect(()=>{let{current:i}=r;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:a}}function Cr({src:e,alt:t}){let[o,r]=useState(!1),[a,n]=useState(!1),[i,s]=useState(!1),l=()=>{r(!0),s(!1);},p=()=>{n(!0),s(!1);};return useEffect(()=>{if(!e)return;s(!0);let d=new Image;return d.src=e,d.addEventListener("load",l),d.addEventListener("error",p),()=>{d.removeEventListener("load",l),d.removeEventListener("error",p);}},[e]),{isLoaded:o,hasError:a,isLoading:i,imgProps:{src:o?e:void 0,alt:t}}}function Ne(){let e=useRef(!0);return useEffect(()=>{e.current=!1;},[]),e.current}var Ni="SET_STATE",xr="UNDO",Pr="REDO",jy=(e,t)=>{let{past:o,present:r,future:a}=e;switch(t.type){case Ni:return {past:[...o,r],present:t.data,future:[]};case xr:return {past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...a]};case Pr:return {past:[...o,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},Si=(e={},{isDisabled:t,onAction:o})=>{let r=Ne(),[a,n]=useReducer(jy,{past:[],present:e,future:[]}),{past:i,present:s,future:l}=a,p=g=>{n({type:Ni,data:g});},d=useRef(),u=()=>{d.current=xr,n({type:xr});},m=()=>{d.current=Pr,n({type:Pr});},c=!!i?.length,y=!!l?.length;return useGranularEffect(()=>{(d.current===xr||d.current===Pr)&&(o?.(s,d.current),d.current=void 0);},[s],[o,r]),{state:s,push:t?()=>{}:p,undo:t?()=>{}:u,redo:t?()=>{}:m,pastStates:i,futureStates:l,canUndo:c,canRedo:y}};var Yt=ho.createContext({messages:{}}),Bi=({children:e,messages:t={},...o})=>{let r=ho.useMemo(()=>({messages:t}),[t]);return jsx(I18nProvider,{...o,children:jsx(Yt.Provider,{value:r,children:e})})};Bi.displayName="I18nProvider";function B(e){let{messages:t}=useContext(Yt);!e&&Ky(t)&&console.warn("BUI \u{1F30D}: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");let o=useMessageFormatter(e?cleanKeyFromGlobImport(e):t),r=useLocale();return {formatMessage:(a,n)=>{if(typeof a=="object")try{return o(a.id,n)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.id.toString()}\`. The default message, i.e. \`${a.defaultMessage}\`, will be used instead.`),a.defaultMessage||a.id}else try{return o(a,n)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.toString()}\`. The default message, i.e. \`${a.toString()}\`, will be used instead.`),a}},locale:r}}var X=e=>e;function Z0(e,t,o){let r=ho.useRef(null);return ho.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,t),()=>{r.current&&r.current.disconnect();}},[e,t,o]),r.current}function Ei(e,t){let[o,r]=useState(()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.log(n),t}});return [o,n=>{try{let i=n instanceof Function?n(o):n;r(i),window.localStorage.setItem(e,JSON.stringify(i));}catch(i){console.log(i);}}]}function tR({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let a=ho.useRef(null);usePress({ref:e,isDisabled:r,onPressEnd(){let i=getOwnerWindow(e.current).getSelection();i&&e.current?.contains(i.anchorNode)&&o?.(i);},onPressStart(){let n=getOwnerWindow(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),useEffect(()=>{let n=e.current;if(!n||r)return;function i(){let p=getOwnerWindow(n).getSelection();p&&e.current?.contains(p.anchorNode)&&t(p);}let s=getOwnerDocument(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[e,t,r]);}function kr(e){let t=useCallback(()=>{let a=getOwnerWindow(e??document.body),n=a.matchMedia(queries.tablet),i=a.matchMedia(queries.desktop);return n.matches?"tablet":i.matches?"desktop":"mobile"},[e]),[o,r]=ho.useState(t);return useLayoutEffect$1(()=>{let a=getOwnerWindow(e),n=()=>{r(t());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[e,t]),o}function ne(e){let t=useContext(Kt);return e||t}var Vi=b({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),Rr="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Ai=b({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Oi="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs",ji="_1yep5z66x _1yep5z66y _1yep5z66z",Ui="_1mdhlqv5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k";function qi({placement:e}){let t=useReducedMotion();return useTransition(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!t,config:config.stiff})}var Ki={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},Gi="_1gzftth1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",Yi="_1gzftth6",Wi="_1gzftth7",Xi="var(--_1gzftth0)";var{color:Xt}=themeVars,_e=ho.forwardRef(({className:e,style:t,state:o,overlayProps:r,underlayClassName:a,children:n,includeArrow:i=!1,offset:s=2,portalContainer:l,contentContainerClassName:p,contentContainerStyle:d,...u},m)=>{let{theme:c}=useContext(Ie),y=ho.useRef(null),g=ne(l),_=i?8:0,{underlayProps:f,popoverProps:v,placement:z,arrowProps:h}=usePopover({...u,offset:s+_,popoverRef:y},o),P=qi({placement:z}),C=z==="center"?"bottom":z;return P((I,x)=>x&&jsx(Overlay,{portalContainer:g,children:jsxs(Te,{ref:m,theme:c,style:t,children:[!u.isNonModal&&jsx("div",{...f,className:classNames(Wi,a,"BaselineUI-Popover-Underlay")}),jsxs(animated.div,{...v,style:{...v.style,...I,...assignInlineVars({[Xi]:`${u.triggerRef?.current?.offsetWidth}px`})},ref:mergeRefs(y,m),className:classNames(Gi,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(k=>z?.includes(k)),children:[i?jsxs("svg",{className:classNames(Ki[C],"BaselineUI-PopoverContent-Arrow"),...h,style:{...h.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Xt.border.medium}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Xt.background.primary.subtle,stroke:Xt.background.primary.subtle})]}):null,jsx(DismissButton,{onDismiss:o.close}),jsx("div",{...r,style:d,className:classNames(Yi,p),children:n}),jsx(DismissButton,{onDismiss:o.close})]})]})}))});_e.displayName="PopoverContentCore";var Qi="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6l0 _1yep5z6kz _1yep5z6he _1yep5z6l3 _1yep5z6fs",Ji="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var $t=({section:e,showSelectedIcon:t,state:o})=>{let{itemProps:r,groupProps:a,headingProps:n}=useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxs(Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsx(F,{elementType:"li"}),jsxs("li",{...r,children:[e.value?.title?jsx(VisuallyHidden,{children:jsx("span",{...n,children:e.value.title})}):null,jsx("ul",{...a,className:Ji,children:[...e.childNodes].map(i=>(invariant(i.type==="item"),jsx(Ir,{item:i,state:o,showSelectedIcon:t},i.key)))})]})]})};$t.displayName="MenuSection";var Ir=({item:e,state:t,className:o,showSelectedIcon:r})=>{let a=ho.useRef(null),n=useMenuItem({key:e.key},t,a),{isFocusVisible:i,focusProps:s}=useFocusRing();return jsx(So,{item:e,liProps:mergeProps(n.menuItemProps,s,{className:o}),...n,isFocusVisible:i,ref:a,description:e.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:t,showSelectedIcon:r})};Ir.displayName="MenuItem";var Jt=ho.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},a)=>{let n=useTreeState(r),i=ho.useRef(null),{menuProps:s}=useMenu(r,n,i),{keyboardProps:l}=useKeyboard({onKeyDown:o});return jsx("ul",{...mergeProps(s,l),className:classNames(Qi,e),ref:mergeRefs(i,a),children:[...n.collection].map(p=>p.type==="section"?jsx($t,{section:p,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):jsx(Ir,{item:p,state:n,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Jt.displayName="MenuContent";var ts=ho.forwardRef(({isDisabled:e,contentClassName:t,state:o,placement:r="bottom start",isNonModal:a,shouldFlip:n,shouldUpdatePosition:i,boundaryElement:s,crossOffset:l,offset:p,triggerButton:d,portalContainer:u,...m},c)=>{let y=ho.useRef(null),g=ne(u),{menuTriggerProps:_,menuProps:f}=useMenuTrigger({isDisabled:e,type:"menu"},o,y);return jsxs(Fragment,{children:[jsx(Slot,{...mergeProps(_,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(v=>r.includes(v)),isSelected:o.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:y,children:d}),o.isOpen?jsx(_e,{triggerRef:y,state:o,placement:r,isNonModal:a,shouldFlip:n,shouldUpdatePosition:i,boundaryElement:s,crossOffset:l,offset:p||2,className:classNames(Rr,"BaselineUI-Menu-Popover"),portalContainer:g,children:jsx(Jt,{className:t,...f,...m,ref:c,autoFocus:o.focusStrategy||"first"})}):null]})});ts.displayName="MenuRoot";var oa=ho.forwardRef((e,t)=>{let o=e.children;return jsx(ts,{...e,ref:t,triggerButton:o,children:r=>"type"in r&&r.type==="section"?jsx(Section,{items:r.children,title:r.title,children:a=>jsx(Item,{children:a.label},a.id)},r.id):(invariant("label"in r,"Item doesn't have a label"),jsx(Item,{textValue:r.label,children:r.label},r.id))})});oa.displayName="MenuBase";var as=ho.forwardRef(({defaultOpen:e,isOpen:t,onOpenChange:o,...r},a)=>{let n=useMenuTriggerState({defaultOpen:e,isOpen:t,onOpenChange:o});return jsx(oa,{...r,state:n,ref:a})});as.displayName="Menu";var ns=b({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var Tr=ho.forwardRef(({className:e,style:t,children:o,variant:r="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,title:l,...p},d)=>{let u=ho.useRef(null),{linkProps:m,isPressed:c}=useLink({...p,elementType:p.onPress?"span":n},u),{isFocusVisible:y,isFocused:g,focusProps:_}=useFocusRing(),{hoverProps:f,isHovered:v}=useHover({isDisabled:p.isDisabled}),z=n,h=filterTruthyValues({"data-block-id":s,"data-disabled":p.isDisabled,"data-focused":g,"data-pressed":c,"data-focus-visible":y,"data-hovered":v,title:l});return jsx(z,{...mergeProps(m,_,f,h),className:classNames(ns({variant:r,isFocusVisible:y,isHovered:v,isDisabled:p.isDisabled,size:a,isActive:c,type:i}),"BaselineUI-Link",e),ref:mergeRefs(u,d),style:t,children:o})});Tr.displayName="Link";function ss({isDisabled:e,onValueChange:t,onChange:o,name:r,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let l=useId(),p=useId(),d=useId();return {inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":n?void 0:l,"aria-describedby":a||d,"aria-label":n,onChange:m=>{let c=[...m.target.files||[]];t?.(c),o?.(m);},name:r,accept:i,multiple:s},labelProps:{htmlFor:p,id:l},descriptionProps:{id:d}}}async function ta({items:e}){let t=e.filter(o=>o.kind==="file").map(async o=>(invariant(o.kind==="file"),o.getFile()));return await Promise.all(t)}var ls=b({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),ps=b({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),ds=b({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),cs=b({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var fs=ho.forwardRef(({className:e,label:t,description:o,icon:r,variant:a="default",...n},i)=>{let s=ho.useRef(null),{inputProps:l,descriptionProps:p,labelProps:d}=ss(n),{dropProps:u}=useDrop({ref:s,onDrop:async({items:_})=>{let f=_.filter(z=>z.kind==="file").map(async z=>(invariant(z.kind==="file"),z.getFile())),v=await Promise.all(f);n.onValueChange?.(v);}}),{focusProps:m,isFocusVisible:c}=useFocusRing(),{hoverProps:y,isHovered:g}=useHover({isDisabled:n.isDisabled});return jsxs("label",{...mergeProps(u,y,d),className:classNames(ls({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:g||c}),e),ref:mergeRefs(i,s),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(m,l)})}),r?jsx(r,{size:20,className:ds({disabled:n.isDisabled})}):null,jsxs("div",{children:[jsx("div",{className:cs({disabled:n.isDisabled,hovered:g}),children:t}),o?jsx("div",{...p,className:ps({disabled:n.isDisabled}),children:o}):null]})]})});fs.displayName="FileUpload";var bs="_12vfhl40 z9nup81",gs="_12vfhl41 z9nup82",vs=b({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),_s="_12vfhl42",zs="_12vfhl47",hs="_12vfhl46 z9nup82",Cs="_12vfhl45",xs=b({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Ps=ho.forwardRef(({className:e,variant:t="active",showValue:o,description:r,errorMessage:a,...n},i)=>{let s=useId(),{labelProps:l,progressBarProps:p}=useProgressBar({...n,"aria-describedby":r?s:n["aria-describedby"]}),{minValue:d=0,maxValue:u=100,value:m=0,label:c}=n,y=(m-d)/(u-d),g=`${Math.round(y*100)}%`,_=jsx("output",{className:xs({hasLabel:!!c}),children:p["aria-valuetext"]}),f=t==="error"?a:r;return jsxs("div",{...p,className:classNames(bs,e),ref:i,children:[c?jsxs("div",{className:gs,children:[jsx("label",{...l,className:_s,children:c}),o?_:null]}):null,jsxs("div",{className:Cs,children:[jsxs("div",{className:hs,children:[jsx("div",{className:zs,children:jsx("div",{style:{width:g},className:vs({variant:t})})}),!c&&o?_:null]}),f?jsx("div",{className:ao({hasError:t==="error"}),id:s,children:f}):null]})]})});Ps.displayName="ProgressBar";function Sr({isReadOnly:e,validationState:t}){return e?ReadOnlyIcon:t==="error"?ErrorFilledIcon:t==="warning"?WarningFilledIcon:null}var co=ho.forwardRef(({className:e,validationState:t="valid",variant:o="primary",style:r,labelPosition:a="top",inputStyle:n,inputClassName:i,"data-block-id":s,...l},p)=>{let d=ho.useRef(null),{inputProps:u,labelProps:m,descriptionProps:c,errorMessageProps:y,validationErrors:g}=useTextField({...l,validationState:t==="error"?"invalid":"valid"},d),_=l.errorMessage||g.join(" "),f=Re({...l,errorMessage:_,descriptionProps:c,errorMessageProps:y,labelPosition:a});_&&(t="error");let{hoverProps:v,isHovered:z}=useHover({isDisabled:l.isDisabled}),{isFocused:h,focusProps:P,isFocusVisible:C}=useFocusRing(),I=Sr({isReadOnly:l.isReadOnly,validationState:t}),x=filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":t,"data-focused":h,"data-focus-visible":C});return jsxs("div",{className:classNames(ke({labelPosition:a}),"BaselineUI-TextInput",e),"data-block-id":s,style:r,ref:p,children:[l.label||a==="start"&&f?jsxs("div",{className:Pe({labelPosition:a,hasMessage:!!f}),children:[jsx("label",{...m,className:xe,children:l.label}),a==="start"&&f]}):null,jsxs("div",{className:classNames({[to]:l.isDisabled}),children:[jsxs("div",{...v,className:io({validationState:t,isHovered:z,isFocused:h,variant:o,isReadOnly:!!l.isReadOnly,isDisabled:!!l.isDisabled}),children:[jsx("input",{...mergeProps(u,P,x),className:classNames(yr({isDisabled:l.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",i),style:n,ref:d}),I?jsx(I,{className:no({validationState:t,isReadOnly:l.isReadOnly}),size:16}):null]}),a==="top"&&f]})]})});co.displayName="TextInput";var mo=({value:e,...t})=>{let o=useNumberFormatter(t);return jsx(Fragment,{children:o.format(e)})};mo.displayName="NumberFormat";var Rs="_1yep5z6i3 _1yep5z6i4 _1yep5z6i5",ws=b({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),Is=b({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),Ts=b({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var Ms=ho.forwardRef(({className:e,count:t,style:o,size:r="md",icon:a,...n},i)=>{let s={isRequired:!1},l=a||(r==="md"?CheckmarkIcon$2:CheckmarkIcon$3);!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let p=ho.useRef(null),d=useToggleState({...n,...s}),{inputProps:u,isPressed:m,isDisabled:c,isReadOnly:y,isSelected:g}=useSwitch({...n,...s},d,p),{focusProps:_,isFocused:f,isFocusVisible:v}=useFocusRing(),{hoverProps:z,isHovered:h}=useHover({});return jsxs("label",{ref:i,style:o,className:classNames(Rs,"BaselineUI-Reaction",e),"data-block-id":n["data-block-id"],"data-focused":f,"data-focus-visible":v,"data-disabled":c,"data-hovered":h,"data-pressed":m,"data-selected":g,children:[jsx(VisuallyHidden,{children:jsx("input",{...u,..._,ref:p})}),jsxs("div",{...z,className:ws({isSelected:g,isFocusVisible:v,isHovered:h,isReadOnly:y,isDisabled:c}),children:[jsx("div",{className:Ts({isDisabled:c,isReadOnly:y}),children:jsx(l,{size:r==="md"?20:16})}),jsx("div",{className:Is({isSelected:d.isSelected,isDisabled:c,isReadOnly:y,size:r}),children:jsx(mo,{value:t})})]})]})});Ms.displayName="Reaction";var Ls=b({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Bs=b({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g0 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6fs _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var ia=ho.forwardRef(({children:e,state:t,overlayProps:o,arrowProps:r,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:l},p)=>{let{tooltipProps:d}=useTooltip({isOpen:t.isOpen},t),u=useMemo(()=>{switch(a){case"top":return {x:0,y:4};case"bottom":return {x:0,y:-4};case"left":return {x:4,y:0};case"right":return {x:-4,y:0};default:return {x:0,y:0}}},[a]),m=useReducedMotion(),[c]=useSpring(()=>({from:{opacity:0,transform:`translate(${u.x}px, ${u.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!m})),y=a==="center"?"bottom":a;return jsxs(animated.span,{...o,style:{...c,...o.style},ref:p,"data-placement":y,children:[l?jsx("div",{className:Ls({placement:y,variant:n}),...r}):null,jsx("div",{...mergeProps(d,s),className:Bs({variant:n,size:i}),children:e})]})});ia.displayName="TooltipContent";var Lr=ho.forwardRef(({className:e,children:t,...o},r)=>{let{theme:a}=useContext(Ie);return jsx(Overlay,{...o,children:jsx(Te,{ref:r,theme:a,className:classNames("BaselineUI-Portal",e),children:t})})});Lr.displayName="Portal";var Hs=ho.forwardRef(({children:e,placement:t="bottom",delay:o=1e3,closeDelay:r=500,variant:a="default",size:n="md",includeArrow:i=!0,portalContainer:s,...l},p)=>{let d=ho.useRef(null),u=ho.useRef(null),m=!l.text||l.isDisabled,c=useTooltipTriggerState({...l,delay:o,closeDelay:r,isDisabled:m}),{triggerProps:y,tooltipProps:g}=useTooltipTrigger({...l,isDisabled:m,delay:o,closeDelay:r},c,d),_=ne(s),{overlayProps:f,arrowProps:v,placement:z,updatePosition:h}=useOverlayPosition({arrowSize:i?13:0,targetRef:d,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:u,placement:t,isOpen:c.isOpen,...l});return Ii({ref:u,threshold:1,onIntersect:h,isDisabled:!c.isOpen}),Ti({ref:d,onResize:h,isDisabled:!c.isOpen}),jsxs(FocusableProvider,{...y,ref:d,children:[e,c.isOpen?jsx(Lr,{disableFocusManagement:!0,portalContainer:_,children:jsx(ia,{ref:mergeRefs(p,u),state:c,arrowProps:v,overlayProps:f,placement:z,tooltipProps:g,variant:a,size:n,includeArrow:i,children:l.text})}):null]})});Hs.displayName="Tooltip";var Vs="_1azy5686",As="_1azy5685",Os="var(--_1azy5680)",js="_1azy5688",Us="_1azy5689",qs="_1azy5681 z9nup82",Ks="_1azy5682";var Gs="_1azy5687";var $1={sm:16,md:20},Q1={sm:[CheckFilledIcon,ErrorAltFilledIcon],md:[CheckFilledIcon$1,ErrorAltFilledIcon$1]},Br=ho.forwardRef(({className:e,style:t,size:o="md",variant:r="active",...a},n)=>{let{labelProps:i,progressBarProps:s}=useProgressBar({...a,isIndeterminate:!0}),l=$1[o],p=l/2-2,d=2*p*Math.PI,u=Q1[o][r==="success"?0:1];return jsxs("div",{className:classNames(qs,e),ref:n,style:{...assignInlineVars({[Os]:`${d}px`}),...t},children:[jsxs("div",{...s,className:Ks,children:[(r==="active"||r==="inactive")&&jsxs("svg",{height:l,width:l,viewBox:`0 0 ${l} ${l}`,children:[jsx("circle",{role:"presentation",className:Vs,cx:l/2,cy:l/2,r:p}),r==="active"&&jsx("circle",{role:"presentation",className:As,cx:l/2,cy:l/2,r:p})]}),r==="success"&&jsx(u,{className:Gs,size:l}),r==="error"&&jsx(u,{className:js,size:l})]}),a.label?jsx("span",{...i,className:Us,children:a.label}):null]})});Br.displayName="ProgressSpinner";var Ys=b({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{md:"_5uw3kp5",lg:"_5uw3kp6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp7"]]});var sb={md:20,lg:24},Xs=ho.forwardRef(({className:e,style:t,iconStart:o,size:r="md",elementType:a="button",...n},i)=>{let s=ho.useRef(null),l=useToggleState(n),{buttonProps:p,isPressed:d}=useToggleButton(n,l,s),{hoverProps:u,isHovered:m}=useHover({isDisabled:n.isDisabled}),{isFocusVisible:c,isFocused:y,focusProps:g}=useFocusRing(),_=filterTruthyValues({"data-block-id":n["data-block-id"],"data-focused":y,"data-focus-visible":c,"data-disabled":n.isDisabled,"data-hovered":m,"data-pressed":d,"data-selected":l.isSelected});return jsxs(a,{...mergeProps(p,u,g,_),className:classNames(Ys({isHovered:m,isFocusVisible:c,isSelected:l.isSelected,size:r,isDisabled:n.isDisabled}),"BaselineUI-ToggleButton",e),style:t,ref:mergeRefs(s,i),children:[o?jsx(o,{size:sb[r]}):null,n.label]})});Xs.displayName="ToggleButton";var Dr=b({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),Zs=b({defaultClassName:"_16vugd01 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),$s=b({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]});var el=ho.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-block-id":a,...n},i)=>{let s=ho.useRef(null),l=useToggleState(n),{isFocusVisible:p,isFocused:d,focusProps:u}=useFocusRing(),{inputProps:m,isPressed:c,isDisabled:y,isSelected:g,isReadOnly:_}=useCheckbox({...n,children:o},l,s),{hoverProps:f,isHovered:v}=useHover({isDisabled:y}),z=filterTruthyValues({"data-disabled":y,"data-readonly":_,"data-hovered":v,"data-selected":g,"data-pressed":c,"data-indeterminate":n.isIndeterminate,"data-invalid":n.isInvalid,"data-focus-visible":p,"data-focused":d,"data-block-id":a});return jsxs("label",{...z,className:classNames(Zs({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:i,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(m,u),ref:s})}),jsxs("div",{...f,className:$s({isSelected:g&&!n.isIndeterminate,isIndeterminate:n.isIndeterminate,isFocusVisible:p,isDisabled:y,isReadOnly:_,hasError:n.isInvalid,isHovered:v}),children:[g&&!n.isIndeterminate?jsx(CheckmarkIcon$1,{size:12}):null,n.isIndeterminate?jsx(MinusIcon$1,{size:12}):null]}),o?jsx("span",{className:Dr({isDisabled:y}),children:o}):null]})});el.displayName="Checkbox";var ol={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var rl=b({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),tl="_1nsi9h1b",al=b({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),nl="_1nsi9h1c";var Db={style:"decimal"},Eb={xs:[CaretLeftIcon,CaretRightIcon],sm:[CaretLeftIcon$1,CaretRightIcon$1],md:[CaretLeftIcon$2,CaretRightIcon$2],lg:[CaretLeftIcon$3,CaretRightIcon$3]},pl=ho.forwardRef(({className:e,style:t,minValue:o=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:l="floating",...p},d)=>{let{locale:u}=useLocale(),m=B(ol),c={...p,formatOptions:Db,minValue:o,incrementAriaLabel:a||m.formatMessage("nextPage"),decrementAriaLabel:n||m.formatMessage("prevPage"),defaultValue:r,"aria-label":i||m.formatMessage("goToPage")},y=ho.useRef(null),g=useNumberFieldState({...c,locale:u}),{inputProps:_,decrementButtonProps:f,incrementButtonProps:v,groupProps:z}=useNumberField({...c,onKeyDown:T=>{T.key==="Enter"&&y.current?.blur(),p.onKeyDown?.(T);}},g,y),{hoverProps:h,isHovered:P}=useHover({}),{focusProps:C,isFocused:I,isFocusVisible:x}=useFocusRing(),k=l==="floating",[S,V]=Eb[s],w=filterTruthyValues({"data-focus-visible":x,"data-focused":I,"data-hovered":P,"data-block-id":p["data-block-id"]});return jsxs("div",{...mergeProps(z,h,w),className:classNames(al({size:s,variant:l}),"BaselineUI-Pagination",e),style:t,ref:d,children:[jsx(N,{icon:S,...f,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),l==="floating"&&jsx(F,{orientation:"vertical"}),jsxs("div",{className:rl({isFocusVisible:x,variant:l}),"aria-label":m.formatMessage("pageXofY",{arg0:_.value,arg1:g.maxValue}),children:[jsx("input",{...mergeProps(_,C),ref:y,className:classNames("BaselineUI-Pagination-Input",tl),style:{width:`${_.value?.toString().length||1}ch`}}),jsxs("span",{className:nl,children:["/ ",jsx(mo,{value:g.maxValue})]})]}),l==="floating"&&jsx(F,{orientation:"vertical"}),jsx(N,{icon:V,...v,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});pl.displayName="Pagination";var dl=({date:e,...t})=>{let o=useDateFormatter(t);return jsx(Fragment,{children:o.format(e)})};dl.displayName="DateFormat";var Er=b({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),cl="_1f789qjj",ml="_1f789qj0",ul=b({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]});var Xb=({item:e,state:t,variant:o="neutral"})=>{let r=ho.useRef(null),{focusProps:a,isFocusVisible:n}=useFocusRing({within:!0}),{rowProps:i,gridCellProps:s,removeButtonProps:l,allowsRemoving:p,isDisabled:d,isSelected:u,allowsSelection:m}=useTag({item:e},t,r),c=ho.useRef(null),{buttonProps:y}=useButton(l,c),{hoverProps:g,isHovered:_}=useHover({isDisabled:d}),{hoverProps:f,isHovered:v}=useHover({isDisabled:d}),z=e.value?.icon,h=e.value?.variant??o;return jsx("div",{...mergeProps(i,a,f),ref:r,className:Er({isFocusVisible:n,variant:h,isDisabled:d,allowsRemoving:p,isSelected:u,allowsSelection:m,isHovered:v}),children:jsxs("div",{...s,className:cl,children:[u?jsx(CheckmarkIcon$3,{size:16}):null,!u&&z?jsx(z,{size:16}):null,e.rendered,p?jsx("button",{...mergeProps(y,g),className:ul({variant:h,isHovered:_}),children:jsx(XIcon$2,{})}):null]})})},da=ho.forwardRef(({className:e,style:t,...o},r)=>{let a=ho.useRef(null),n=useListState(o),{gridProps:i}=useTagGroup(o,n,a);return jsx("div",{...i,className:classNames(ml,e),style:t,ref:mergeRefs(r,a),children:[...n.collection].map(s=>jsx(Xb,{state:n,item:s,variant:o.variant},s.key))})});da.displayName="TagGroupBase";var gl=ho.forwardRef(({items:e,...t},o)=>jsx(da,{...t,items:e,ref:o,children:r=>jsx(Item,{children:r.label})}));gl.displayName="TagGroup";var vl="_1yep5z6kv",_l=b({defaultClassName:"_1kvz17db _1yep5z6ki _1yep5z6kk",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),zl=b({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ki _1yep5z6kj",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),hl="_1yep5z6ev _1yep5z6dy",Cl=b({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ki _1yep5z6kl",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ft",false:"_1yep5z6fu"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),xl="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Pl=b({defaultClassName:"_1kvz17d7 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var ma=ho.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:a}=useContext(Se),{disabledKeys:n}=useContext(Se),{keyboardProps:i}=useKeyboard({onKeyDown:s=>{let l=getRootNode(s.target),p=[...a?.keys()||[]].findIndex(y=>a?.get(y)?.current===l.activeElement),d=a?.get(p||0),u=a?.size||0,m=y=>{let g=a.get(y-1<0?u-1:y-1);n?.has(g?.current?.getAttribute("data-key")||"")?m(y-1):g?.current?.focus();},c=y=>{let g=a.get((y+1)%u);n?.has(g?.current?.getAttribute("data-key")||"")?c(y+1):g?.current?.focus();};if(d)switch(s.key){case"Home":{s.preventDefault(),c(-1);break}case"End":{s.preventDefault(),m(u);break}case"ArrowDown":{s.preventDefault(),c(p);break}case"ArrowUp":{s.preventDefault(),m(p);break}default:s.continuePropagation();}}});return jsx("div",{...i,style:o,className:classNames(vl,t),ref:r,children:ho.Children.map(e,(s,l)=>ho.cloneElement(s,{index:l}))})});ma.displayName="AccordionBase";var Se=ho.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),wl=ho.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:n,className:i,style:s},l)=>{let[p,d]=ho.useState(o),u=ho.useRef(new Map).current,[m,c]=ho.useState(a);useEffect(()=>{c(m);},[m]),useEffect(()=>{n?.(p);},[p,n]);let y=useMemo(()=>({expandedKeys:r||p,setExpandedKeys:r?()=>{}:d,disabledKeys:t,headers:u,expansionMode:m}),[r,p,t,u,m]);return jsx(Se.Provider,{value:y,children:jsx(FocusScope,{children:jsx(ma,{className:i,style:s,ref:l,children:e})})})});wl.displayName="Accordion";var ya=ho.forwardRef(({title:e,actions:t,controlId:o,value:r,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=ho.useRef(null),{expandedKeys:d,setExpandedKeys:u,expansionMode:m,disabledKeys:c,headers:y}=useContext(Se),g=c?.has(r),_=useFocusManager();invariant(_);let{focusNext:f,focusPrevious:v}=_,{keyboardProps:z}=useKeyboard({onKeyDown:M=>{M.key==="ArrowRight"?f({wrap:!0}):M.key==="ArrowLeft"?v({wrap:!0}):M.continuePropagation();},isDisabled:g});useEffect(()=>{invariant(typeof n=="number","AccordionItem must have an index"),y?.set(n,p);},[n,y]);let h=()=>{u(M=>{let A=new Set(M);return A.has(r)?A.delete(r):(m==="single"&&A.clear(),A.add(r)),A});},{buttonProps:P}=useButton({"aria-expanded":d.has(r),"aria-controls":o,onPress:h,isDisabled:g},p),{pressProps:C}=usePress({onPress:h,isDisabled:g}),{focusProps:I,isFocusVisible:x}=useFocusRing(),{hoverProps:k,isHovered:S}=useHover({isDisabled:g}),{focusProps:V,isFocusVisible:w}=useFocusRing({within:!0}),T=d.has(r);return jsxs("h3",{...mergeProps(z,C,k,V),className:Cl({isFocusVisible:x,isHovered:S,isDisabled:g}),ref:l,children:[jsxs("div",{className:Pl({isDisabled:!!g}),children:[jsx(ChevronRightIcon,{className:zl({isExpanded:T}),size:8}),jsx("button",{...mergeProps(P,I),id:a,"data-key":r,className:xl,ref:p,children:e})]}),t?.length?jsx("div",{"data-testid":"action-buttons",className:_l({showActionsOnTriggerOnly:s,isTriggered:w||S}),children:t.map((M,A)=>jsx(N,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:g,...M},A))}):null,i?jsx("div",{className:hl,children:i}):null]})});ya.displayName="AccordionHeader";var Dl=ho.forwardRef(({title:e,actions:t,children:o,value:r,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:l},p)=>{let d=useId(),u=useId(),{expandedKeys:m}=useContext(Se),c=ho.useRef(null),y=m.has(r),g=Ne(),_=useReducedMotion(),f=useTransition(y?[r]:[],{from:!g&&!_&&{height:0,opacity:0},enter:()=>async v=>{await v({height:c.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:v=>v});return jsxs(Fragment,{children:[jsx(FocusScope,{children:jsx(ya,{value:r,actions:t,id:u,title:e,controlId:d,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),f(v=>jsx(animated.div,{role:"region","aria-labelledby":u,id:d,style:{...v,overflow:"hidden"},children:jsx("div",{ref:c,className:s,style:i,children:o})}))]})});Dl.displayName="AccordionItem";var fa=ho.forwardRef(({variant:e,isOpen:t,validationState:o="valid",...r},a)=>{let n=ho.useRef(null),{buttonProps:i,isPressed:s}=useButton({...r,isDisabled:r.isDisabled||r.isReadOnly},n),{hoverProps:l,isHovered:p}=useHover({isDisabled:r.isDisabled}),{focusProps:d,isFocused:u,isFocusVisible:m}=useFocusRing(),c=Sr({isReadOnly:r.isReadOnly,validationState:o});r.isReadOnly&&(i.disabled=!1);let y=filterTruthyValues({"data-disabled":r.isDisabled,"data-readonly":r.isReadOnly,"data-focused":u,"data-focus-visible":m,"data-hovered":p,"data-pressed":s,"data-open":t});return jsxs("button",{...mergeProps(i,l,d,y),ref:mergeRefs(a,n),className:classNames(Ai({isFocused:m,isDisabled:r.isDisabled}),io({variant:e,isHovered:p,isFocused:m,validationState:o,isDisabled:!!r.isDisabled,isReadOnly:r.isReadOnly}),"BaselineUI-Select-Button"),children:[r.children,c?jsx("span",{"aria-hidden":!0,className:classNames(no({validationState:o,isReadOnly:!!r.isReadOnly}),ji),children:jsx(c,{size:16})}):null,jsx("span",{"aria-hidden":!0,children:jsx(ChevronDownIcon,{size:8,className:Vi({isOpen:t})})})]})});fa.displayName="SelectButton";var ga=ho.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary","data-block-id":a,optionStyle:n,optionClassName:i,...s},l)=>{let p=ho.useRef(null),d=useSelectState({...s,validationState:s.validationState==="error"?"invalid":"valid"}),u=ne(s.portalContainer),{labelProps:m,triggerProps:c,valueProps:y,menuProps:g,descriptionProps:_,errorMessageProps:f}=useSelect({...s,validationState:s.validationState==="error"?"invalid":"valid"},d,p),v=Re({...s,descriptionProps:_,errorMessageProps:f,labelPosition:o}),z=d.selectedItem?.value,h=z&&"icon"in z&&z.icon;return jsxs(Fragment,{children:[jsxs("div",{style:t,className:classNames(ke({labelPosition:o}),"BaselineUI-Select",e),"data-block-id":a,ref:l,children:[s.label||v?jsxs("div",{className:Pe({labelPosition:o,hasMessage:!!v}),children:[s.label?jsx("div",{...m,className:classNames(xe,"BaselineUI-Select-Label"),children:s.label}):null,o==="start"&&v]}):null,jsx(HiddenSelect,{state:d,triggerRef:p,isDisabled:s.isDisabled,label:s.label,name:s.name}),jsx(fa,{...c,isOpen:d.isOpen,variant:r,validationState:s.validationState,ref:p,isReadOnly:s.isReadOnly,children:jsxs("span",{className:Ui,children:[h?jsx(h,{size:24}):null,jsx("span",{...y,children:z?"label"in z&&z?.label:s.placeholder})]})}),o==="top"&&v]}),d.isOpen?jsx(_e,{portalContainer:u,offset:2,state:d,triggerRef:p,style:t,className:classNames(Rr,"BaselineUI-Select-Popover"),...s,children:jsx(ye,{...g,label:s.label,items:s.items,UNSAFE_state:d,showSelectedIcon:s.showSelectedIcon,className:Oi,optionStyle:n,optionClassName:i})}):null]})});ga.displayName="SelectBase";var jr=ho.forwardRef((e,t)=>jsx(ga,{...e,ref:t,children:o=>o.type==="section"?jsx(Section,{items:o.children,title:o.id,children:r=>jsx(Item,{children:r.label},r.id)},o.id):jsx(Item,{textValue:o.label,children:o.label},o.id)}));jr.displayName="Select";var Al="_1017q4c5",Ol=b({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),jl="_1017q4c4";var Hg={sm:AvatarIcon,md:AvatarIcon$1},fo=ho.forwardRef(({className:e,style:t,size:o="md",icon:r=Hg[o],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:l,imgLoading:p,"data-block-id":d},u)=>{let{imgProps:m}=Cr({src:n,alt:a}),c=a?.split(" ").map(y=>y[0]).join("");return jsxs("span",{className:classNames(Ol({size:o,isDisabled:s}),"BaselineUI-Avatar",e),"data-disabled":s,ref:u,style:t,"aria-disabled":s,"data-block-id":d,children:[n?jsx("img",{...m,loading:p,className:jl}):null,!i&&!n&&jsx(r,{size:o==="sm"?16:24}),i&&!n?o==="sm"?c[0]:c:null,l?jsx("div",{"data-testid":"notification",className:Al}):null]})});fo.displayName="Avatar";var Ul="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",ql=b({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6105"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6109"},variant:{primary:"_1x62fhbb _1yep5z6z6",ghost:"_1yep5z6z9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61lg"],[{variant:"primary",isSelected:!0},"_1yep5z61me"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61lr"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61mf"]]}),Kl=b({defaultClassName:"_1x62fhb3 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),Gl="_1x62fhbf",Yl="_1yep5z6l2 _1yep5z6kz _1yep5z6hc _1yep5z6l1",Wl=b({defaultClassName:"_1x62fhb0 _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1yep5z6115",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Xl=({state:e,...t})=>{let o=ho.useRef(null),{tabPanelProps:r}=useTabPanel(t,e,o),{selectedItem:a}=e,{focusProps:n,isFocusVisible:i}=useFocusRing();if(!a?.value)return null;let{className:s,style:l,"data-block-id":p}=a.value;return jsx("div",{...mergeProps(r,n),ref:o,className:classNames({[Yl]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var ha=ho.forwardRef(({className:e,style:t,tabHeaderStyle:o,tabHeaderClassName:r,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...l},p)=>{let d=useTabListState({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),u=ho.useRef(null),{tabListProps:m}=useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},d,u);return jsxs("div",{className:classNames("BaselineUI-Tabs",e),style:t,ref:p,"data-block-id":s,children:[jsxs("div",{className:classNames(Wl({variant:a}),r),style:o,children:[jsx("div",{...m,className:Kl({variant:a}),ref:u,children:[...d.collection].map(c=>(invariant(c.value,"TabItem requires a value prop"),jsx($l,{item:c,state:d,onRemove:i,variant:a},c.key)))}),n?.map((c,y)=>jsx("div",{className:Ul,children:jsx(N,{...c,variant:"secondary",size:"sm",className:classNames(Gl,c.className)})},y))]}),jsx(Xl,{state:d},d.selectedItem?.key)]})});ha.displayName="TabsBase";var $l=({item:e,onRemove:t,state:o,variant:r})=>{let{key:a,value:n}=e,i=ho.useRef(null),{tabProps:s,isSelected:l,isDisabled:p}=useTab({key:a},o,i),{hoverProps:d,isHovered:u}=useHover({});invariant(n,"TabButton requires a value prop");let{title:m,icon:c,titleStyle:y,titleClassName:g}=n,{focusProps:_,isFocusVisible:f,isFocused:v}=useFocusRing(),{keyboardProps:z}=useKeyboard({onKeyDown:P=>{P.key==="Backspace"&&t?t(a):P.continuePropagation();}}),h=filterTruthyValues({"data-selected":l,"data-disabled":p,"data-focused":v,"data-hovered":u,"data-focus-visible":f});return jsxs("div",{...mergeProps(z,s,d,_,h),className:classNames(ql({isHovered:u,isSelected:l,isFocusVisible:f,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",g),style:y,ref:i,children:[c?jsx(c,{size:20}):null,m,t?jsx(N,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{t(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:l||v||u?1:0}}):null]})};$l.displayName="TabButton";var Jl=ho.forwardRef(({children:e,...t},o)=>{let r=useMemo(()=>ho.Children.map(e,a=>!a||!ho.isValidElement(a)||typeof a.type=="string"?null:{...a.props,id:a.props.value}).filter(Boolean),[e]);return jsx(ha,{...t,ref:o,items:r,children:a=>jsx(Item,{title:a.title,children:a.children},a.key)})});Jl.displayName="Tabs";var ep=({children:e,title:t,value:o})=>(invariant(o,"TabItem requires a value prop"),invariant(t,"TabItem requires a title prop"),invariant(e,"TabItem requires children"),e);ep.displayName="TabItem";var op={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var rp=b({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),tp=b({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),ap=b({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),np=b({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),ip=b({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),sp=b({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),lp=b({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var fv={error:{sm:ErrorAltFilledIcon,md:ErrorAltFilledIcon$1},info:{sm:InfoFilledIcon,md:InfoFilledIcon$1},success:{sm:CheckFilledIcon,md:CheckFilledIcon$1},warning:{sm:WarningFilledIcon,md:WarningFilledIcon$1}},pp=ho.forwardRef(({className:e,description:t,actionLabel:o,onAction:r,style:a,variant:n="info",title:i,arrangement:s="single",onClose:l,size:p="sm"},d)=>{let u=B(op),m=o&&jsx(j,{variant:s==="compact"?"tertiary":"ghost",label:o,onPress:r}),c=fv[n][p];return jsxs("div",{className:classNames(tp({variant:n,arrangement:s,hasButton:!!o||!!l,hasCloseButton:!!l}),e),style:a,role:"alert",ref:d,children:[jsxs("div",{className:lp({arrangement:s}),children:[jsx(c,{className:ip({variant:n}),size:16}),jsxs("div",{className:rp({arrangement:s}),children:[jsx("h3",{className:sp({size:p}),children:i}),jsx("section",{className:ap({size:p}),children:t})]}),s==="compact"&&m]}),jsxs("div",{className:np({arrangement:s}),children:[s!=="compact"&&m,l?jsx(N,{variant:"secondary",icon:CloseIcon,size:"sm",onPress:l,"aria-label":u.formatMessage("close")}):null]})]})});pp.displayName="InlineAlert";var dp=b({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6105",title:"_1yep5z6105",label:"_1yep5z6106",value:"_1yep5z6106",helper:"_1yep5z6107",body:"_1yep5z6105"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61jz"],[{type:"title",size:"md"},"_1yep5z61k2"],[{type:"title",size:"lg"},"_1yep5z61k5"],[{type:"body",size:"sm"},"_1yep5z61kp"],[{type:"body",size:"md"},"_1yep5z61ks"],[{type:"body",size:"lg"},"_1yep5z61ks"],[{type:"subtitle",size:"sm"},"_1yep5z61kl"],[{type:"subtitle",size:"md"},"_1yep5z61ko"],[{type:"subtitle",size:"lg"},"_1yep5z61ko"],[{type:"label",size:"md"},"_1yep5z61kn"],[{type:"label",size:"lg"},"_1yep5z61kn"],[{type:"value",size:"md"},"_1yep5z61kn"],[{type:"value",size:"lg"},"_1yep5z61kn"],[{type:"helper",size:"sm"},"_1yep5z61kh"]]});var Y=ho.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...a},n)=>jsx(e,{...a,className:classNames(dp({size:r,type:t}),"BaselineUI-Text",a.className),ref:n,children:o}));Y.displayName="Text";var cp=b({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6kv _1yep5z6d7 _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{background:{subtle:"_1yep5z6113",medium:"_1yep5z6114"}},defaultVariants:{},compoundVariants:[]}),mp="siobe24",up="var(--siobe20)";var Gr=ho.forwardRef(({className:e,style:t,children:o,background:r="medium",title:a,action:n,"data-block-id":i,onCloseRequest:s,...l},p)=>{let{formatMessage:d}=B(),u=ho.useRef(null),{dialogProps:m,titleProps:c}=useDialog(l,u);return jsxs("div",{...m,className:classNames(cp({background:r}),"BaselineUI-Drawer",e),"data-block-id":i,style:t,ref:mergeRefs(p,u),children:[jsxs(L,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:mp,children:[jsx(Y,{type:"title",size:"sm",...c,className:Kn,children:a}),jsxs(L,{children:[n?jsx(N,{...n,variant:"secondary"}):null,jsx(N,{variant:"secondary",size:"md",icon:XIcon$1,onPress:s,"aria-label":d(xv.close)})]})]}),jsx(F,{variant:r==="subtle"?"primary":"secondary"}),o]})});Gr.displayName="Drawer";var xv=X({close:{id:"close",defaultMessage:"Close"}});function bp(e,t,o){let{isDisabled:r}=e,a=useReducedMotion(),[n,i]=ho.useState("100vh");useEffect(()=>{if(!isIOS()&&!isAndroid())return;let c=getOwnerWindow(o.current);function y(){i(`${c?.visualViewport.height}px`);}return y(),c?.visualViewport.addEventListener("resize",y),()=>{c?.visualViewport.removeEventListener("resize",y);}},[o]);let[{y:s},l]=useSpring(()=>({y:0,immediate:a,config:{easing:easings.easeOutCubic}})),p=useRef(0),d=useCallback(()=>{l.start({y:p.current,onRest:()=>{t.close();}});},[l,t]),u=useCallback(c=>{c.target.closest("[data-drawer]")||d();},[d]);useGranularLayoutEffect(()=>{p.current=o.current?.offsetHeight||0,l.set({y:p.current}),l.start({y:0,immediate:!!a});},[],[l,a]);let m=s.to({range:[0,p.current/2,p.current],output:[.5,.2,0],extrapolate:"clamp"}).to(c=>`rgba(0,0,0,${c})`);return {overlayProps:{style:r?void 0:{transform:s.to(c=>`translateY(${c}px)`)}},underlayProps:{style:r?void 0:{backgroundColor:m},onClick:r?void 0:u},close:d,containerHeight:r?void 0:n}}var gp=b({defaultClassName:"aml2vl0 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hr _1yep5z6hs _1yep5z6ht",variantClassNames:{enableDrawer:{false:"_1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),vp="_1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6g2 _1yep5z6hr _1yep5z6hs _1yep5z6ht";var Me=ho.createContext({state:null,triggerProps:{},overlayProps:{}}),bo=({children:e,...t})=>{let o=useOverlayTriggerState(t),{triggerProps:r,overlayProps:a}=useOverlayTrigger({type:"dialog"},o),n=useMemo(()=>({state:o,triggerProps:r,overlayProps:a}),[o,r,a]);return jsx(Me.Provider,{value:n,children:e})};bo.displayName="Modal";var ka=ho.createContext({isDrawer:!1,closeDrawer:()=>{}}),Gv=animated(Te),Yv=({children:e,className:t,style:o,isDismissable:r=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:i,enableDrawer:s=!1,"data-block-id":l})=>{let{state:p}=ho.useContext(Me),d=kr(n),u=ne(n),m=typeof s=="boolean"&&s||s==="auto"&&d==="mobile";invariant(p,"ModalContent must be a child of Modal");let c=ho.useRef(null),y=typeof r=="function"?r(m):r,g=typeof a=="function"?a(m):a,{underlayProps:_,overlayProps:f,close:v,containerHeight:z}=bp({isDisabled:!m,isDismissable:y},p,c),{modalProps:h,underlayProps:P}=useModalOverlay({isDismissable:!m,isKeyboardDismissDisabled:g},p,c),{theme:C}=useContext(Ie),I=useReducedMotion(),x=useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!I||i,config:{easing:easings.easeInBounce}}),k=useMemo(()=>({...h.style,...m?{...f.style,width:"100%"}:x}),[f.style,h.style,m,x]),S=useMemo(()=>({isDrawer:m,closeDrawer:v}),[m,v]);return jsx(Overlay,{portalContainer:u,children:jsx(ka.Provider,{value:S,children:jsxs(Gv,{className:classNames(gp({enableDrawer:m}),t),theme:C,"data-block-id":l,style:{...o,height:m?z:"auto",...assignInlineVars({[up]:z})},children:[jsx(animated.div,{...mergeProps(P,_),"data-testid":"underlay",style:_.style,className:classNames(vp,"BaselineUI-Modal-Underlay")}),jsx(animated.div,{...mergeProps(h,f),style:k,ref:c,"data-drawer":m,className:"BaselineUI-Modal-Content",children:e})]})})})},Wv=animated(Yv),Ko=({children:e,style:t,...o})=>{let{state:r}=ho.useContext(Me);invariant(r,"ModalContent must be a child of Modal");let a=useReducedMotion();return useTransition(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!a||o.disableAnimation})((i,s)=>s&&jsx(Wv,{...o,style:{...t,...i},children:typeof e=="function"?e({close:r.close}):e}))};var Pp=b({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6121 _1yep5z616i _1yep5z616k",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg _1yep5z6166"}},defaultVariants:{},compoundVariants:[]});var wa=ho.createContext({titleProps:{}}),ie=ho.forwardRef(({children:e,className:t,style:o,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":i,drawerBackground:s,...l},p)=>{let d=ho.useRef(null),u=ho.useRef(null),{isDrawer:m,closeDrawer:c}=useContext(ka),[y,g]=ho.useState("");useLayoutEffect(()=>{let z=getOwnerDocument(u.current),h=l["aria-label"]||"";l["aria-labelledby"]&&(h=z.querySelector(`#${l["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),g(h);},[l]);let{dialogProps:_,titleProps:f}=useDialog(l,d),v=useMemo(()=>({titleProps:f}),[f]);return m&&r?jsx(Gr,{title:y,onCloseRequest:c,className:t,...l,"data-drawer":!0,"data-block-id":i,ref:mergeRefs(u,p),background:s,children:e}):jsx(wa.Provider,{value:v,children:jsx("section",{..._,"data-block-id":i,ref:mergeRefs(d,p),style:o,className:classNames(Pp({size:m?"content":a,variant:n,isDrawer:m}),"BaselineUI-Dialog",t),children:e})})});ie.displayName="Dialog";var wp=ho.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=useContext(wa),n=ho.isValidElement(e)?Slot:"h3";return jsx(n,{...a,ref:r,className:t,style:o,children:e})});wp.displayName="DialogTitle";var Le={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Xr=({children:e})=>{let{triggerProps:t}=ho.useContext(Me);return jsx(Slot,{...t,children:e})};Xr.displayName="ModalTrigger";var c_=({children:e})=>{let{state:t}=ho.useContext(Me);return jsx(Slot,{onPress:()=>t?.close(),children:e})};var Yo=ho.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ke=({children:e,...t})=>{let o=ho.useRef(null),r=useOverlayTriggerState(t),a=useOverlayTrigger(t,r),n=useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:o}),[r,a]);return jsx(Yo.Provider,{value:n,children:typeof e=="function"?e(r):e})};var Be=ho.forwardRef((e,t)=>{let{state:o,overlayTriggerAria:{overlayProps:r},triggerRef:a}=useContext(Yo);return invariant(a),o?.isOpen?jsx(_e,{ref:t,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:o}):null});Be.displayName="PopoverContent";var Ge=({children:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:r}=useContext(Yo);invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:a}=o;return typeof e=="function"?e({isOpen:t.isOpen,triggerProps:a,triggerRef:r}):jsx(Slot,{...mergeProps(a,{isSelected:t.isOpen}),ref:r,children:e})};var Tp="_1dbkl5v",Np="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt",Sp="_1dbkl5e",Mp=b({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l6 _1yep5z6ky _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kx _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6109"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Lp=b({defaultClassName:"_1dbkl50 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6nq _1yep5z6nr _1yep5z6ns",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Zr="_1dbkl5t _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69f _1yep5z69g _1yep5z69h",Bp="_1dbkl5f z9nup87",$r="_1dbkl5u _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn",Dp=b({defaultClassName:"_1dbkl5h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kx _1yep5z6ks",variantClassNames:{isFocusVisible:{true:"_1dbkl5i _1dbkl5g"},isDisabled:{true:"_1yep5z6yl"},removeBlendMode:{true:"_1dbkl5k"},isSelected:{true:"_1dbkl5g"},isHovered:{true:"_1dbkl5g"}},defaultVariants:{},compoundVariants:[]}),Ep="_1dbkl5s _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ky",Qr="_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",Fp="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it",Jr=b({defaultClassName:"_1dbkl5p _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6me _1yep5z6mf _1yep5z6mg"}},defaultVariants:{},compoundVariants:[]}),Ia="_1dbkl514 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",Hp="_1dbkl53",Vp=b({defaultClassName:"_1dbkl5z _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl510 _1yep5z611y"},isHovered:{true:"_1dbkl511"},allowAlpha:{false:"_1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6166"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61nd"]]}),Ap=b({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f0 _1yep5z6kx _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kl",variantClassNames:{isHovered:{true:"_1yep5z6115"},isFocusVisible:{true:"_1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612n"},isDisabled:{true:"_1yep5z610d"}},defaultVariants:{},compoundVariants:[]}),Wo="_1dbkl513",et="_1dbkl5o _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",ot="_1dbkl5r _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",Ta="_1dbkl516",Op="_1dbkl515",Na="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69l _1yep5z69m _1yep5z69n",rt=b({defaultClassName:"_1dbkl5w _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l2 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6l7 _1yep5z6la",variantClassNames:{isFocusVisible:{true:"_1dbkl5x _1yep5z616a _1yep5z612n _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),Sa="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq";var Ye=({color:e,isFocusVisible:t,isDisabled:o,isSelected:r,isPresentational:a})=>{let n=e&&e!==ze&&parseColor(e),i=n&&n.getChannelValue("alpha")===0,{hoverProps:s,isHovered:l}=useHover({isDisabled:o});return jsx("div",{...s,className:classNames(Dp({removeBlendMode:!n,isFocusVisible:t,isDisabled:o,isSelected:r,isHovered:l&&!a&&!o}),{[Lo({size:"xs"})]:i}),children:n?jsxs(Fragment,{children:[jsx("div",{className:classNames(Qr,Lo({size:"xs"}))}),jsx("div",{className:Qr,style:{backgroundColor:i?void 0:n.toString("hexa")}})]}):jsx("div",{className:Qr,children:jsx(NoneIcon,{size:14})})})};var qp=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],go=parseColor("#000000").toFormat("hsla"),W="hsla",Zo="hexa";function We(e){return typeof e=="string"?parseColor(e).toFormat(W):e?e.toFormat(W):null}function Kp(e,t){return e?.getChannelValue("alpha")?t?.toString(Zo)===e.toString(Zo):!t?.getChannelValue("alpha")}function Gp(e,t,o){return t?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var ze="NONE";function Yp(e,t){let o=t?.map(a=>({id:parseColor(a.color).toString(Zo),label:a.label}))||[],r={id:ze,label:e};return [...o,r]}var tt=(e,{optionProps:t,isFocusVisible:o,isSelected:r},a)=>(invariant(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...t,ref:a,"aria-label":e.value?.label||void 0,className:Ep,children:jsx(Ye,{color:e.value.id,isFocusVisible:o,isSelected:r})}));var Zp=({value:e,...t})=>{let o=ho.useRef(null),r=ho.useRef(null),a=ho.useRef(null),n=useColorAreaState({...t,value:e}),{colorAreaProps:i,gradientProps:s,xInputProps:l,yInputProps:p,thumbProps:d}=useColorArea({...t,value:e,inputXRef:o,inputYRef:r,containerRef:a},n);useEffect(()=>{o.current?.focus();},[]);let{focusProps:u,isFocusVisible:m}=useFocusRing();return jsxs("div",{ref:a,...i,className:classNames(Tp,"BaselineUI-ColorInput-ColorArea"),children:[jsx("div",{...s,className:Hp}),jsxs("div",{...d,className:classNames(rt({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:We(e)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:o,...l,...u}),jsx("input",{ref:r,...p,...u})]})]})};var Jp=({color:e,setColor:t,allowAlpha:o,...r})=>{let a=useColorFieldState({value:e,onChange:u=>{t(We(u)?.toFormat(W).withChannelValue("alpha",e.getChannelValue("alpha")??1)||go);}}),n=ho.useRef(null),{inputProps:i}=useColorField({...r,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:l}=useFocusRing({isTextInput:!0}),{hoverProps:p,isHovered:d}=useHover({});return jsxs("div",{className:classNames(Ia,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[jsx("input",{...mergeProps(i,s,p),ref:n,className:Vp({isFocused:l,isHovered:d,allowAlpha:o})}),o?jsx(od,{color:e,setColor:t}):null]})},ed=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:a}=useLocale();return jsxs("div",{className:classNames(Ia,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[jsx(ve,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:!1,className:Wo,onChange:n=>{t(r.withChannelValue("red",n).toFormat(W));},step:1,minValue:0,maxValue:255}),jsx(ve,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:!1,className:Wo,onChange:n=>{t(r.withChannelValue("green",n).toFormat(W));},step:1,minValue:0,maxValue:255}),jsx(ve,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:!1,className:Wo,onChange:n=>{t(r.withChannelValue("blue",n).toFormat(W));},step:1,minValue:0,maxValue:255}),o?jsx(od,{color:e,setColor:t}):null]})},U_={style:"percent",maximumFractionDigits:0},od=({color:e,setColor:t})=>{let{locale:o}=useLocale(),r=useCallback(a=>{t(e.withChannelValue("alpha",a));},[e,t]);return jsx(ve,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:U_,className:Wo,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var Da=({channel:e,...t})=>{let{locale:o}=useLocale(),r=useColorSliderState({...t,channel:e,locale:o}),a=ho.useRef(null),n=ho.useRef(null),{trackProps:i,thumbProps:s,inputProps:l}=useColorSlider({...t,channel:e,trackRef:a,inputRef:n,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:p,isFocusVisible:d}=useFocusRing();return jsxs("div",{className:classNames($r,{[Lo({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:a,children:[e==="alpha"&&jsx("div",{className:Sa}),jsx("div",{className:$r,style:i.style}),jsxs("div",{className:classNames(rt({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsx("div",{className:Sa,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:$r}),jsx(VisuallyHidden,{children:jsx("input",{ref:n,...l,...p})})]})]})};var at=({color:e,setColor:t,allowAlpha:o})=>{let[r,a]=ho.useState("hex"),{formatMessage:n}=B(Le);return jsxs(Fragment,{children:[jsx(Zp,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t}),jsxs("div",{className:Na,children:[jsx(Da,{channel:"hue",value:e,onChange:t}),o?jsx(Da,{channel:"alpha",value:e,onChange:t}):null]}),jsxs("div",{className:classNames(Na,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(jr,{label:n("colorFormat"),labelPosition:"start",variant:"ghost",items:qp,selectedKey:r,onSelectionChange:i=>{a(i);}}),r==="hex"&&jsx(Jp,{color:e,setColor:t,allowAlpha:o}),r==="rgb"&&jsx(ed,{color:e,setColor:t,allowAlpha:o})]})]})};var Ha=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{formatMessage:l}=B(Le),p=ho.useRef(null),d=kr(p.current),[u,m]=Ei(o,[]),c=ho.useRef(null),[y,g]=ho.useState(e),_=ho.useMemo(()=>u.map(C=>({id:C,label:C,description:C})),[u]),f=useCallback(()=>{let C=i==="active"?e:y;if(u.includes(C.toString(W))){c.current?.querySelector(`[data-key='${C.toString(W)}']`)?.classList.add(Ta);return}m([...u,C.toString(W)]);},[u,e,m,y,i]);useEffect(()=>{let C=c.current;function I(x){x.animationName===Op&&x.target?.classList.remove(Ta);}return C?.addEventListener("animationend",I),()=>{C?.removeEventListener("animationend",I);}},[]);let v=useId(),z=jsx(N,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:PlusIcon$1,onPress:i==="active"?f:void 0}),h=useCallback(C=>jsxs(ie,{size:"content",className:Jr({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[jsx(at,{color:y,setColor:g,allowAlpha:s}),jsx(F,{}),jsx(L,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(L,{display:"inline-flex",gap:"lg",children:[jsx(j,{label:l("cancel"),size:"sm",variant:"secondary",onPress:C}),jsx(j,{label:l("add"),variant:"primary",onPress:()=>{f(),C();},size:"sm"})]})})]}),[y,f,l,s]),P=useCallback(C=>{invariant(C instanceof Set,"Key must be a set");let I=[...C][0];I&&t(parseColor(I).toFormat(W));},[t]);return jsxs(Fragment,{children:[jsx(F,{}),jsxs("div",{className:classNames(Fp,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:v,children:n}),jsxs(L,{display:"flex",children:[!!u.length&&u.includes(e.toString(W))&&jsx(N,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon$2,"aria-label":a,onPress:()=>{m(u.filter(C=>C!==e.toString(W)));}}),i==="active"&&z,i==="lazy"&&(d==="mobile"?jsxs(bo,{children:[jsx(Xr,{children:z}),jsx(Ko,{style:{zIndex:1e5},children:({close:C})=>h(C)})]}):jsx(Ke,{type:"dialog",children:({close:C})=>jsxs(Fragment,{children:[jsx(Ge,{children:z}),jsx(Be,{placement:"right top",className:et,offset:6,children:h(C)})]})}))]})]}),!!u.length&&jsx(ye,{items:_,layout:"grid","aria-labelledby":v,className:classNames(Zr,ot,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:tt,ref:c,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(W)],onSelectionChange:P})]})};var Va=ho.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:a,state:n},i)=>{let{formatMessage:s}=B(Le),l=useCallback(p=>{if(p instanceof Set&&p.size){let d=[...p][0],u=a.find(m=>m.id===d);invariant(u,"Preset not found"),e(u.id===ze?null:parseColor(u.id).toFormat(W)),n.close();}},[n,a,e]);return jsx("div",{className:classNames(ot,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:i,children:jsx(ye,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:Zr,renderOption:tt,selectionMode:"single",selectedKeys:[t?.toString(Zo)||ze],onSelectionChange:l})})});Va.displayName="ColorPresetList";var Oa=ho.forwardRef((e,t)=>{let o=ho.useRef(null),{hoverProps:r,isHovered:a}=useHover({isDisabled:e.isDisabled}),{buttonProps:n,isPressed:i}=useButton(e,o),{isFocusVisible:s,focusProps:l}=useFocusRing(),p=filterTruthyValues({"data-block-id":e["data-block-id"],"data-focused":s,"data-focus-visible":s,"data-disabled":e.isDisabled,"data-hovered":a,"data-pressed":i});return jsx("button",{...mergeProps(n,r,l,p),style:e.style,className:classNames(Mp({isHovered:a,isFocusVisible:s||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),"BaselineUI-ColorInputButton",e.className),ref:mergeRefs(t,o),children:e.children})});Oa.displayName="ColorInputButton";var bd=ho.forwardRef(({className:e,style:t,icon:o,...r},a)=>{let n=ho.useRef(null),{hoverProps:i,isHovered:s}=useHover({isDisabled:r.isDisabled}),{buttonProps:l,isPressed:p}=useButton(r,n),{isFocusVisible:d,focusProps:u}=useFocusRing(),m=filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":r.isDisabled,"data-hovered":s,"data-pressed":p});return jsxs("button",{...mergeProps(l,i,u,m),ref:mergeRefs(a,n),style:t,className:classNames(Ap({isHovered:s||p||r.isOpen,isFocusVisible:d,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsx(o,{size:16}),jsx("div",{className:Sp,style:{backgroundColor:r.color}})]})});bd.displayName="IconColorInputButton";var $o=ho.forwardRef(({className:e,style:t,allowRemoval:o,allowAlpha:r=!0,presets:a,labelPosition:n="top",colorLabel:i=!0,includePicker:s=!0,onChange:l,defaultValue:p,storePickedColorKey:d="baselinePickedColor",value:u,addColorButtonLabel:m,removeColorButtonLabel:c,customColorsLabel:y,renderTriggerButton:g,pickerMode:_="active",offset:f=2,placement:v=n==="start"?"bottom end":"bottom start","data-block-id":z,...h},P)=>{let C=ho.useRef(null),I=ho.useRef(null),x=useOverlayTriggerState(h),{triggerProps:k,overlayProps:S}=useOverlayTrigger({type:"listbox"},x,C),V=ne(h.portalContainer),[w,T]=useControlledState(u===void 0?void 0:We(u),We(p),q=>l?.(q?.toFormat("rgba")||null)),{formatMessage:M}=B(Le),A=useMemo(()=>Yp(M("noColor"),a),[a,M]),$=useMemo(()=>A.find(q=>q.id===ze?!w:w?Kp(w,parseColor(q.id)):!1),[A,w]),oe=useId(),K=useMemo(()=>typeof i=="function"?i?.(w):i?Gp(w,$,M("transparent")):!1,[w,i,M,$]),Q=useMemo(()=>A.filter(q=>o||q.id!==ze),[A,o]),G=m||M("addColor"),D=c||M("removeColor"),re=y||M("customColors");return jsxs(Fragment,{children:[jsxs("div",{className:classNames({[Np]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":z,style:t,ref:P,children:[h.label?jsx("label",{id:oe,className:Lp({labelPosition:n}),children:h.label}):null,g?.({isOpen:x.isOpen,color:w,ref:C,colorName:K,triggerProps:k})||jsxs(Oa,{...mergeProps(k,{...h.label?{"aria-labelledby":oe}:{"aria-label":h["aria-label"]}}),ref:C,isOpen:x.isOpen,isDisabled:h.isDisabled,labelPosition:n,children:[jsx(Ye,{isPresentational:!0,color:w?.toString("hexa")}),i?jsx("div",{className:Bp,children:K}):jsx(VisuallyHidden,{children:K})]})]}),x.isOpen?jsx(_e,{...h,portalContainer:V,placement:v,state:x,offset:f,className:classNames(et,"BaselineUI-ColorInput-Popover"),triggerRef:C,overlayProps:S,children:jsxs(ie,{size:"content",className:Jr({includesCustomColorPicker:s}),ref:I,"aria-labelledby":oe,"aria-label":h["aria-label"],children:[s&&_==="active"?jsxs(Fragment,{children:[jsx(at,{color:w||go,setColor:T,allowAlpha:r}),jsx(Ha,{color:w||go,setColor:T,storePickedColorKey:d,addColorButtonLabel:G,removeColorButtonLabel:D,customColorsLabel:re,pickerMode:_,allowAlpha:r})]}):null,!!Q.length&&jsxs(Fragment,{children:[s&&_==="active"?jsx(F,{}):null,jsx(Va,{autoFocus:s&&_==="active"?!1:"first",state:x,triggerRef:C,presets:Q,color:w,setColor:T})]}),s&&_==="lazy"?jsx(Ha,{color:w||go,setColor:T,storePickedColorKey:d,addColorButtonLabel:G,removeColorButtonLabel:D,customColorsLabel:re,pickerMode:_,allowAlpha:r}):null]})}):null]})});$o.displayName="ColorInput";var vd={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var lt=b({defaultClassName:"mnnh5s1 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ki _1yep5z6kl _1yep5z6kx _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy _1yep5z6122 _1yep5z616j _1yep5z616k",false:"_1yep5z6166 _1yep5z6116"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6115"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 _1yep5z6yl"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61mo"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61nd"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61mg"]]}),_d="_1yep5z6d8",pt=b({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var zd=b({defaultClassName:"_1i0ytqa3 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6kw _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z611e",false:"_1yep5z611g"},isDisabled:{true:"_1i0ytqa7 _1yep5z6yl",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61n9 _1yep5z61rt _1yep5z61rv"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61mp"],[{isInline:!1,isDisabled:!0},"_1yep5z61mr"]]}),hd="_1i0ytqa0",dt=b({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z6115"},isDisabled:{true:"_1i0ytqad _1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),Cd=b({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var L6={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},Pd=ho.forwardRef(({className:e,style:t,canvasClassName:o,canvasStyle:r,isBound:a=!0,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:d=!1,isInline:u=!0,isDisabled:m,placeholder:c,clearLabel:y,undoLabel:g,redoLabel:_,footerClassName:f,canvasRef:v,value:z,footerStyle:h,"data-block-id":P,"aria-label":C="Drawing canvas",description:I="This is a canvas for drawing using a mouse or touch input.",...x},k)=>{let S=B(vd),V=ho.useRef(null),[w,T]=ho.useState(z?Ga(z):l?Ga(l):[]),M=ho.useRef((z?.length||l?.length||0)-1),[A,$]=ho.useState(),oe=useId(),{labelProps:K,fieldProps:Q}=useLabel({...x,"aria-label":C,labelElementType:"span"}),{isFocusVisible:G,focusProps:D}=useFocusRing({within:!0}),{hoverProps:re,isHovered:q}=useHover({isDisabled:m}),{undo:R,redo:J,canRedo:Ce,canUndo:ge,push:He}=Si(w,{onAction:E=>{E&&(T(E),M.current=E.length-1,p?.(E.map(pe=>getStroke(pe,U))));},isDisabled:!d}),{keyboardProps:ro}=useKeyboard({onKeyDown:E=>{E.key==="Backspace"?sr():E.key==="z"&&(E.metaKey||E.ctrlKey)&&(E.shiftKey?Ce&&J():ge&&R());}}),U=ho.useMemo(()=>({...L6,...x}),[x]),le=useCallback(E=>{E.persist(),E.buttons===1&&(invariant(A,"svgCoordinates must be defined"),T(pe=>{let O=[...pe];return O[M.current]=[...O[M.current],{x:a?clamp(E.clientX-A.left,0,A.width):E.clientX-A.left,y:a?clamp(E.clientY-A.top,0,A.height):E.clientY-A.top,pressure:E.pressure}],O}));},[A,a]),Mt=useCallback(E=>{E.persist();let pe=E.currentTarget.getBoundingClientRect();$(pe),E.target.setPointerCapture(E.pointerId),M.current+=1,T(O=>{let ae=[...O];return ae[M.current]=[{x:E.clientX-pe.x,y:E.clientY-pe.y,pressure:E.pressure}],ae});},[]),ir=Ne();useGranularEffect(()=>{ir||s?.(w.map(E=>getStroke(E,U)));},[w],[s,U,ir]);let sr=()=>{T([]),M.current=-1,He([]);},Lt=useCallback(()=>{p?.(w.map(E=>getStroke(E,U))),He(w);},[w,p,U,He]);return jsxs("div",{ref:mergeRefs(V,k),className:classNames(hd,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":P,children:[x.label||d?jsxs("div",{className:Cd({isInline:u}),children:[x.label?jsx(Y,{type:"label",size:"sm",...K,children:x.label}):jsx("span",{}),d?jsxs("div",{children:[jsx(N,{variant:"secondary",size:"sm",isDisabled:!ge||m,icon:UndoIcon,onPress:R,"aria-label":g||S.formatMessage("undo")}),jsx(N,{variant:"secondary",size:"sm",isDisabled:!Ce||m,icon:RedoIcon,onPress:J,"aria-label":_||S.formatMessage("redo")})]}):null]}):null,jsxs("div",{role:"application",...mergeProps(D,ro,re,Q),tabIndex:m?void 0:0,className:classNames(lt({isInline:u,isHovered:q}),zd({isFocusVisible:G,isInline:u,isDisabled:!!m}),o),"aria-describedby":x["aria-describedby"]||oe,style:r,ref:v,children:[jsx(VisuallyHidden,{children:jsx("div",{id:oe,children:I})}),jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:Mt,onPointerMove:le,onPointerUp:Lt,children:(z?Ga(z):w).map((E,pe)=>jsx("path",{d:getSvgPathFromStroke(getStroke(E,U)),stroke:i,strokeWidth:n},pe))})]}),c||y?jsx("div",{style:h,className:classNames(dt({isInline:u,isDisabled:m}),f),children:(w.length||!c)&&y?jsx(j,{size:"sm",variant:"ghost",label:y,isDisabled:m,onPress:sr}):jsx(j,{size:"sm",variant:"ghost",label:c,isDisabled:!0})}):null]})});Pd.displayName="FreehandCanvas";var Ga=e=>e.map(t=>t.map(([o,r])=>({x:o,y:r,pressure:0})));var kd="_1vac7ws0",Rd=b({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Id(e,t){let[o,r]=useState([]),a=()=>e?.flatMap(n=>[...t.querySelectorAll(n)]).map(n=>({current:n}));return useGranularEffect(()=>{r(a());},[],[a]),useGranularEffect(()=>{let n=a();r(n);},[e],[a]),o}function Td(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;useEffect(()=>{let a=getHTMLElement(t,o);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",r),()=>{a.removeEventListener("scroll",r);}},[t,r,o]);}var $6=makeMoveable([Draggable,Resizable,Rotatable,Snappable]),Sd=ho.forwardRef(({className:e,children:t,isRotatable:o,isResizable:r,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:l,onDoubleClick:p,onDragStart:d,onDragEnd:u,onDrag:m,onResizeStart:c,onResizeEnd:y,onResize:g,onRotateStart:_,onRotateEnd:f,onRotate:v,onSnap:z,isSnappable:h,elementGuidelines:P,hideAnchorOnDrag:C=!0,title:I,rotationPosition:x,autoUpdate:k,bound:S,snapRotationDegrees:V,snapRotationThreshold:w,scrollableAncestor:T,renderDirections:M,stopPropagation:A,transformOrigin:$,preventDefault:oe},K)=>{let Q=useRef(null),G=useRef(null),[D,re]=useState(document),q=useRef(D.createElement("div")),[R,J]=useState({}),[Ce,ge]=useState(!1),[He,ro]=useState(!1),[U,le]=useState(),Mt=Id(P,D);useLayoutEffect(()=>{let O=q.current;return q.current=D.createElement("div"),()=>{O.remove();}},[D]);let{keyboardProps:ir}=useKeyboard({onKeyDown:O=>{let ae=O.shiftKey?10:1,ue=O.metaKey||O.ctrlKey;ue&&O.shiftKey&&(ae=45);function Ve(To,bm="x"){ue?G.current?.request("rotatable",{deltaRotate:To*ae},!0):G.current?.request("draggable",bm==="x"?{deltaX:To*ae}:{deltaY:To*ae},!0);}switch(O.key){case"ArrowRight":{Ve(1);break}case"ArrowLeft":{Ve(-1);break}case"ArrowUp":{Ve(-1,"y");break}case"ArrowDown":Ve(1,"y");}requestAnimationFrame(()=>{G.current?.updateRect();});}});useEffect(()=>{let O=getOwnerDocument(Q.current);re(O);let ae=q.current;O.body.append(q.current);function ue(To){ro(To.shiftKey);}function Ve(){ro(!1);}return O.addEventListener("keydown",ue),O.addEventListener("keyup",Ve),()=>{O.removeEventListener("keydown",ue),O.removeEventListener("keyup",Ve),ae.remove();}},[]),Td({scrollable:T,onScroll:()=>{G.current?.updateRect();},ownerDocument:D});let sr=useCallback(O=>{J(ae=>({...ae,...O.style})),i?.(O);},[i]),Lt=useCallback(O=>{if(ge(!0),Q.current?.focus(),S){let ue=getHTMLElement(S,D)?.getBoundingClientRect();le({position:"client",left:ue?.left??0,top:ue?.top??0,right:ue?.right??0,bottom:ue?.bottom??0});}d?.(O);},[S,D,d]),E=useCallback(O=>{ge(!1),u?.(O);},[u]),pe=t({style:{...R.width&&{width:R.width},...R.height&&{height:R.height}}});return jsxs(Fragment,{children:[jsx("div",{role:"button",...ir,ref:mergeRefs(Q,K),style:{display:"inline-block",...n,...R},className:classNames(kd,e),onDoubleClick:p,tabIndex:0,title:I,children:pe}),createPortal(jsx($6,{ref:G,target:Q,draggable:a,resizable:r,rotatable:o,keepRatio:He,throttleDrag:1,snappable:h||!!S,elementGuidelines:Mt,snapRenderThreshold:.9,className:Rd({isDragging:Ce&&C}),onRender:sr,onDragStart:Lt,onDragEnd:E,useResizeObserver:k,useMutationObserver:k,onRenderEnd:l,onDrag:m,onResizeStart:c,onResizeEnd:y,onResize:g,onRotateStart:_,onRotateEnd:f,onRotate:v,onRenderStart:s,onSnap:z,rotationPosition:x,bounds:U,snapRotationDegrees:V,snapRotationThreshold:w,renderDirections:M,stopPropagation:A,preventDefault:oe,transformOrigin:$}),q.current)]})});Sd.displayName="Transform";var Md={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var Dd=ho.forwardRef(({className:e,style:t,isInline:o=!0,accept:r="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:d,includeCheckeredBackground:u=!0,"data-block-id":m,pickerButtonStyle:c,pickerButtonClassName:y,footerClassName:g,footerStyle:_,clearLabel:f,placeholder:v,labelStyle:z,labelClassName:h,...P},C)=>{let I=ho.useRef(null),x=ho.useRef(null),{formatMessage:k}=B(Md),[S,V]=useControlledState(n,a||null,U=>{invariant(typeof U!="string"),P.onValueChange?.(U?[U]:[]);}),w=useMemo(()=>c5(S||void 0),[S]),{fieldProps:T,labelProps:M}=useField(P),{dropProps:A,isDropTarget:$}=useDrop({ref:I,onDrop:async U=>{if(l)return;let le=await ta({items:U.items});le.length&&V(le[0]),p?.(U);},...P}),{clipboardProps:oe}=useClipboard({onPaste:async U=>{if(l)return;let le=await ta({items:U});le.length&&V(le[0]),d?.(U);},...P}),K=()=>{V(null),x.current&&(x.current.value="");},Q={type:"file",onChange:U=>{let le=[...U.target.files];V(le[0]),P.onChange?.(U);},accept:r,disabled:l},{focusProps:G,isFocused:D,isFocusVisible:re}=useFocusRing({within:!0}),{hoverProps:q,isHovered:R}=useHover({isDisabled:l}),{imgProps:J,isLoading:Ce,isLoaded:ge}=Cr({src:w,alt:i||""}),He={label:s||k("selectImage"),onPress:()=>I.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:classNames(mr({isFocusVisible:re}),{[_d]:$&&!l},y),style:c},ro=filterTruthyValues({"data-loaded":ge,"data-block-id":m,"data-hovered":R,"data-focused":D,"data-drop-target":$,"data-disabled":l,"data-focus-visible":re});return jsxs(L,{...ro,className:classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:C,children:[jsxs("label",{...mergeProps(A,q,G,M),className:classNames(lt({isInline:o,isHovered:R,isDisabled:l,hasLoadedImage:!!w&&ge,showFocusRing:$||!!w&&re}),h),style:z,ref:I,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(T,oe,Q),ref:x})}),!w&&jsx(j,{...He}),!!w&&(Ce?jsx(Br,{}):jsx("img",{className:pt({isInline:o,isDisabled:l,hasLoadedImage:!!w&&ge&&u}),...J}))]}),v||f?jsx("div",{style:_,className:classNames(dt({isInline:o,isDisabled:l}),g),children:(w||!v)&&f?jsx(j,{size:"sm",variant:"ghost",label:f,isDisabled:l,onPress:K}):jsx(j,{size:"sm",variant:"ghost",label:v,isDisabled:!0})}):null]})});Dd.displayName="ImageDropZone";function c5(e){return e instanceof File?URL.createObjectURL(e):e}var Ed="_1vm2oh49 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6fv",Za="_1vm2oh48 _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6jc _1yep5z6jd _1yep5z6je",Fd=b({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6l1 _1yep5z6kz _1yep5z6hk _1yep5z6l2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kx _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6121 _1yep5z616i _1yep5z616k",false:"_1yep5z611g"},isFocusVisible:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6yl"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61mp"],[{accent:"theme",isInline:!0},"_1yep5z61me"],[{accent:"positive",isInline:!1},"_1yep5z61mr"],[{accent:"theme",isInline:!1},"_1yep5z61mg"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61ny _1yep5z61rl _1yep5z61rn _1yep5z61ro"],[{isHovered:!0,isInline:!0},"_1yep5z61ro _1yep5z61ny _1yep5z61rl _1yep5z61rn"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61mq"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61mi"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61mf"]]});var Ad=ho.forwardRef(({className:e,style:t,isDisabled:o,isInline:r=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:d,deleteAriaLabel:u,addAriaLabel:m,accent:c="positive","data-block-id":y,...g},_)=>{let{focusProps:f,isFocused:v,isFocusVisible:z}=useFocusRing({within:!0}),{isHovered:h,hoverProps:P}=useHover({isDisabled:o}),{pressProps:C}=usePress({isDisabled:o,onPress:p});invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let I=filterTruthyValues({"data-hovered":h,"data-focus-visible":z,"data-focused":v,"data-disabled":o});return jsxs("div",{...g,className:classNames(Fd({isInline:r,isFocusVisible:z,isDisabled:o,isHovered:h,accent:c}),"BaselineUI-Preview",e),"data-block-id":y,"aria-label":g["aria-label"]||a||s,style:t,ref:_,children:[typeof i=="string"?jsx("button",{disabled:o,...mergeProps(P,f,C,I),className:Za,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxs("button",{...mergeProps(P,f,C,I),disabled:o,style:l,"aria-label":m,className:Za,children:[n?jsx("img",{src:n,alt:a,className:pt({isInline:r,isDisabled:o})}):null,!!i&&typeof i=="object"&&i,s]}),d?jsx(N,{isDisabled:o,className:Ed,"aria-label":u,size:"xs",icon:TrashIcon,onPress:d}):null]})});Ad.displayName="Preview";var Od="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e",jd=b({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Ud="cw3m0n7",qd=b({defaultClassName:"cw3m0n0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),Kd="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ks",Gd=b({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var I5=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:a,optionLabelPosition:n})=>jsxs("div",{className:qd({labelPosition:n}),children:[jsx("div",{className:Gd({isSelected:o,isFocusVisible:r,isDisabled:a}),children:o?jsx("div",{className:Ud}):null}),e?jsxs("div",{className:Od,children:[jsx("span",{className:Dr({isDisabled:a}),children:e}),t?jsx("span",{className:jd({isDisabled:a}),children:t}):null]}):null]}),Yd=({state:e,renderOption:t=I5,item:o,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(o.id),p=ho.useRef(null),{inputProps:d,isPressed:u,isSelected:m}=useRadio({...s,isDisabled:l,children:o.label,value:o.id},e,p),{focusProps:c,isFocusVisible:y,isFocused:g}=useFocusRing(),{isHovered:_}=useHover({isDisabled:l}),f=filterTruthyValues({"data-selected":m,"data-focused":g,"data-focus-visible":y,"data-hovered":_,"data-disabled":l,"data-pressed":u,"data-read-only":i});return jsxs("label",{...f,style:a,className:classNames("BaselineUI-Radio-Item",n),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,c),ref:p})}),t(o,{isFocusVisible:y,isSelected:m,isFocused:g,isHovered:_,isDisabled:l,optionLabelPosition:r,isReadOnly:i})]})};var ft=ho.forwardRef(({className:e,style:t,optionsContainerClassName:o,optionsContainerStyle:r,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":d,"data-block-id":u,...m},c)=>{let y=useRadioGroupState(m),{radioGroupProps:g,labelProps:_,descriptionProps:f,errorMessageProps:v}=useRadioGroup({...m,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":d},y),z=Re({...m,descriptionProps:f,errorMessageProps:v,labelPosition:n}),h=filterTruthyValues({"data-orientation":m.orientation,"data-block-id":u,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return jsxs("div",{...mergeProps(g,h),className:classNames(ke({labelPosition:n}),"BaselineUI-RadioGroup",e),style:t,ref:c,children:[m.label||z?jsxs("div",{className:Pe({labelPosition:n,hasMessage:!!z}),children:[jsx("span",{..._,className:classNames(xe,"BaselineUI-RadioGroup-Label"),children:m.label}),n==="start"&&z]}):null,jsxs("div",{className:classNames({[to]:m.isDisabled}),children:[jsx("div",{className:classNames(Kd,o),style:r,children:a.map(P=>jsx(Yd,{state:y,renderOption:i,item:P,value:P.id,...m},P.id))}),n==="top"&&z]})]})});ft.displayName="RadioGroup";var Wd=({id:e,defaultMessage:t,elementType:o=Fragment$1})=>{invariant(e||t,"`id` or `defaultMessage` is required.");let r=B();return jsx(o,{children:r.formatMessage(e)||t})};Wd.displayName="MessageFormat";var Xd=ho.forwardRef(({className:e,style:t,children:o,role:r="group",isDisabled:a,...n},i)=>{let{hoverProps:s,isHovered:l}=useHover({isDisabled:a});return jsx("div",{...s,role:r,"data-hovered":l,"data-disabled":a,className:e,style:t,...n,ref:i,children:o})});Xd.displayName="Group";var Zd="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",$d="_1yep5z61ov _1yep5z61ow _1yep5z61ox _1yep5z61g1 _1yep5z61g2 _1yep5z61g3";var Jd=ho.forwardRef(({items:e,optionsContainerClassName:t,...o},r)=>{let a=useMemo(()=>e.map(n=>({id:n.color,label:n.label})),[e]);return jsx(ft,{items:a,optionsContainerClassName:classNames($d,t),orientation:"horizontal",renderOption:({label:n,id:i},{isSelected:s,isFocusVisible:l})=>jsxs("div",{className:Zd,children:[jsx(Ye,{isFocusVisible:l,color:i,isSelected:s}),jsx(VisuallyHidden,{children:n})]}),...o,className:classNames(o.className,"BaselineUI-ColorPresetInput"),ref:r})});Jd.displayName="ColorPresetInput";var ec={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var bt=ho.forwardRef(({className:e,style:t,"data-block-id":o,"aria-controls":r,...a},n)=>{let i=ho.useRef(null),{toolbarProps:s}=useToolbar(a,i),{isFocusVisible:l,focusProps:p}=useFocusRing(),d=filterTruthyValues({"data-block-id":o,"data-focus-visible":l});return jsx("div",{...mergeProps(s,p,d),"aria-controls":r,className:classNames(ec[a.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,ref:mergeRefs(n,i),children:a.children})});bt.displayName="Toolbar";var rc=b({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),tc=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610d"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61rl _1yep5z61o5 _1yep5z61lo"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6ft"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61rm _1yep5z61rl _1yep5z61nz _1yep5z61lp"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61rl _1yep5z61rn _1yep5z61ny _1yep5z61ro"]]}),ac=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1yep5z610c"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61ln"]]}),nc=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!0,isDisabled:!1},"_1yep5z61mg _1yep5z61lq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61mg _1yep5z61lo"]]}),ic=b({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z610e"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61lp"],[{isSelected:!1,isDisabled:!0},"_1yep5z61lo _1yep5z61me"],[{isSelected:!1,isHovered:!0},"_1yep5z61mf"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]});var iz={xxs:8,xs:12,sm:16,md:20,lg:24},xo=ho.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary","data-block-id":n,...i},s)=>{let l=ho.useRef(null),p=useToggleState(i),{buttonProps:d,isPressed:u}=useToggleButton(i,p,l),{hoverProps:m,isHovered:c}=useHover({isDisabled:i.isDisabled}),{isFocusVisible:y,isFocused:g,focusProps:_}=useFocusRing(),f=useMemo(()=>typeof o=="function"?o:p.isSelected?o.selected:o.unselected,[o,p.isSelected]),v={isSelected:p.isSelected,isHovered:c,isFocusVisible:y,isDisabled:!!i.isDisabled},z=filterTruthyValues({"data-hovered":c,"data-selected":p.isSelected,"data-focus-visible":y,"data-disabled":i.isDisabled,"data-block-id":n,"data-focused":g,"data-pressed":u});return jsx("button",{...mergeProps(d,m,_,z),className:classNames(a==="toolbar"&&ic(v),a==="primary"&&tc(v),a==="secondary"&&ac(v),a==="tertiary"&&nc(v),rc({size:r}),"BaselineUI-ToggleIconButton",e),style:t,ref:mergeRefs(l,s),children:jsx(f,{size:iz[r]})})});xo.displayName="ToggleIconButton";var pc="f6jv6bm",dc="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6j0 _1yep5z6j1 _1yep5z6j2",Po="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",cc=b({defaultClassName:"f6jv6b0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6fs",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6uw _1yep5z6ux _1yep5z6uy _1yep5z6142 _1yep5z6143 _1yep5z6144",false:"_1yep5z613n _1yep5z613o _1yep5z613p"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61h7 _1yep5z61h8 _1yep5z61h9 _1yep5z61hv _1yep5z61hw _1yep5z61hx _1yep5z61ij _1yep5z61ik _1yep5z61il _1yep5z61j7 _1yep5z61j8 _1yep5z61j9 _1yep5z61rv _1yep5z61rt _1yep5z61nc"]]}),gt=b({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6ky",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),mc="f6jv6bj _1yep5z6vz _1yep5z6w0 _1yep5z6w1 _1yep5z6wn _1yep5z6wo _1yep5z6wp _1yep5z6xb _1yep5z6xc _1yep5z6xd _1yep5z6xz _1yep5z6y0 _1yep5z6y1",uc="f6jv6bk";var yc=b({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6kx",variantClassNames:{isHovered:{true:"_1yep5z6115"},isDisabled:{true:"_1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),fc="f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs _1yep5z6l0 _1yep5z6kz _1yep5z6hf _1yep5z6l3",bc="_1yep5z6j6 _1yep5z6j7 _1yep5z6j8",gc="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu _1yep5z6e3 _1yep5z6kv",vc=b({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{isInline:{true:"_1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z616k _1yep5z616i _1yep5z6121",false:"_1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg"}},defaultVariants:{},compoundVariants:[]}),_c="f6jv6bl",zc="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu",vt=b({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),_t="f6jv6b9 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it";var Cc=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:Jo}}=layoutSprinkleValues,xc=({isOpen:e,onClose:t})=>{let{formatMessage:o}=B(),r=useId();return jsx(bo,{isOpen:e,onOpenChange:a=>{a||t();},children:jsx(Ko,{enableDrawer:"auto",style:{zIndex:999999},children:jsxs(ie,{"aria-labelledby":r,className:mc,drawerBackground:"subtle",children:[jsxs(L,{paddingLeft:Jo.padding.horizontal.lg,paddingRight:Jo.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:uc,children:[jsx(Y,{id:r,elementType:"h3",type:"title",size:"md",children:o(er.help)}),jsx(N,{icon:XIcon$1,size:"md",variant:"secondary","aria-label":o(er.close),onPress:t})]}),jsx(F,{className:_c}),jsxs(L,{paddingX:Jo.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsx("div",{role:"rowgroup",children:jsxs(L,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Jo.padding.vertical.md,color:"text.primary",children:[jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:o(er.action)}),jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:o(er.shortcut)})]})}),jsx("div",{role:"rowgroup",children:Cc.map(([a,n],i)=>jsxs(Fragment$1,{children:[jsxs(L,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Jo.padding.vertical.xs,style:{minHeight:40},children:[jsx(Y,{type:"subtitle",size:"sm",role:"cell",children:o(er[camelCase(a)])}),jsx(Y,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:getOsSpecificKeyboardShortcutLabel(n,!0)})]}),i!==Cc.length-1&&jsx(F,{})]},a))})]})]})})})},er=X({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"}});var zt=ho.forwardRef(({value:e,defaultValue:t,onChange:o,placeholder:r,spellCheck:a,onSave:n,textBoxRef:i,isInline:s,isMinimal:l,isDisabled:p,isSaveDisabled:d,editableContentAriaLabel:u,editorHandle:m,autoFocus:c,clear:y,clearOnSave:g},_)=>{let f=ho.useRef(null),[v,z]=useControlledState(e,t||"",o),h=useCallback(T=>{z(T.currentTarget.value||"");},[z]);useImperativeHandle(_,()=>({clear:()=>{z("");}}));let P=useCallback(T=>{T.currentTarget.style.height="16px",T.currentTarget.style.height=T.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let T=f.current;T&&(T.style.height="16px",T.style.height=T.scrollHeight+"px");},[l],[v]),useImperativeHandle(m,()=>({setCaretPosition:T=>{f.current&&(f.current.focus(),f.current.setSelectionRange(T,T));}}));let{keyboardProps:C}=useKeyboard({onKeyDown:T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),d||n?.(f.current?.value||""),g&&y());}}),{focusProps:I,isFocused:x,isFocusVisible:k}=useFocusRing(),{hoverProps:S,isHovered:V}=useHover({}),w=filterTruthyValues({"data-focus-visible":k,"data-hovered":V,"data-focused":x});return jsx("textarea",{...mergeProps(C,I,S,w),ref:mergeRefs(f,i),className:classNames(l?gc:[gt(),vt({isInline:s}),zc]),autoFocus:c,onChange:h,disabled:p,onInput:P,value:v,placeholder:r,spellCheck:a,"aria-label":u})});zt.displayName="PlainEditor";var tn=(e,t)=>{let o=Editor.marks(e);return o?o[t]===!0:!1},Ro=(e,t)=>{tn(e,t)?Editor.removeMark(e,t):Editor.addMark(e,t,!0);},Ee=e=>{ReactEditor.focus(e);};function $e(e,t){let[o]=Editor.nodes(e,{match:r=>!Editor.isEditor(r)&&Element$1.isElement(r)&&"type"in r&&r.type===t});return o?.[0]}var or=(e,t)=>{Transforms.unwrapNodes(e,{match:o=>!Editor.isEditor(o)&&Element$1.isElement(o)&&"type"in o&&o.type===t});};function Tz(e){if(!e.selection)return;let{selection:t}=e,[o]=Range.edges(t),r=Editor.before(e,o,{unit:"word"}),a=Editor.after(e,o,{unit:"word"});return {anchor:r||o,focus:a||o}}var an=(e,t)=>{if(!e.selection)return;if($e(e,"link")){let n=Tz(e);n&&Range.isCollapsed(n)&&Transforms.select(e,n),or(e,"link");}let{selection:o}=e,r=o&&Range.isCollapsed(o),a={type:"link",url:t,children:r?[{text:t}]:[]};r?Transforms.insertNodes(e,a):(Transforms.wrapNodes(e,a,{split:!0}),Transforms.collapse(e,{edge:"end"}));},Tc=e=>{let{isInline:t}=e;return e.isInline=o=>"type"in o&&(o.type==="link"||o.type==="span")||t(o),e},Nc=e=>{let{isInline:t,isVoid:o,markableVoid:r}=e;return e.isInline=a=>"type"in a&&a.type==="mention"?!0:t(a),e.isVoid=a=>"type"in a&&a.type==="mention"?!0:o(a),e.markableVoid=a=>"type"in a&&a.type==="mention"||r(a),e},Sc=(e,t)=>{let o=$e(e,"span"),r={};if(o){let n=new Set(["type","children"]);r=Object.fromEntries(Object.keys(o).filter(i=>!n.has(i)).filter(i=>!!o[i]).map(i=>[i,o[i]])),or(e,"span");}let a={...o,type:"span",...r,children:[]};delete a[t],Transforms.wrapNodes(e,a,{split:!0}),Transforms.collapse(e,{edge:"end"});},Mc=(e,t,o)=>{if(!e.selection)return;let r=$e(e,"span");r&&or(e,"span");let a={...r,type:"span",[t]:o,children:[]};Transforms.wrapNodes(e,a,{split:!0}),Transforms.collapse(e,{edge:"end"});};function Nz(e){return Object.entries(e).map(([t,o])=>`${kebabCase(t)}:${o}`).filter(([,t])=>!!t).join(";")}var rr=e=>slateToHtml(e,{markMap:{bold:["b"],underline:["u"],italic:["i"]},elementMap:{paragraph:"p"},elementTransforms:{link:({node:t,children:o=[]})=>new Element("a",{href:t.url},o),span:({node:t,children:o=[]})=>{let r=Nz({...t.color&&{color:t.color},...t.backgroundColor&&{backgroundColor:t.backgroundColor}}),a=r?{style:r}:{};return new Element("span",a,o)},mention:({node:t})=>new Element("span",{"data-user-id":t.userId},[new Text(t.displayName)])}});function Sz(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(t=>t.split(":").map(o=>o.trim())).map(([t,o])=>[camelCase(t),o]))):{}}function nn(e){return e.startsWith("<p>")||(e=`<p>${e}</p>`),htmlToSlate(e,{convertBrToLineBreak:!0,filterWhitespaceNodes:!0,htmlPreProcessString:t=>{let o=new DOMParser().parseFromString(wc.default.sanitize(t),"text/html"),r=o.querySelectorAll("[style]");for(let a of r)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);return o.body.innerHTML},textTags:{em:()=>({italic:!0}),i:()=>({italic:!0}),strong:()=>({bold:!0}),u:()=>({underline:!0}),b:()=>({bold:!0})},elementTags:{a:t=>({type:"link",url:t?.attribs.href||"",children:[]}),p:()=>({type:"paragraph"}),span:t=>{let o=t?.attribs["data-user-id"];return o?{type:"mention",userId:o,displayName:t?.children[0]?.data||""}:{type:"span",...Sz(t?.attribs.style||"")}}}})}function tr(e,t=1){let{selection:o}=e;if(o){let[r]=Range.edges(o),a=Editor.before(e,r,{distance:t,unit:"character"}),n=a&&Editor.range(e,a,r);return {text:n&&Editor.string(e,n),range:n}}else return null}function Lc(e){return e&&(e.text===" "||!e.range)}function Bc(e){Transforms.delete(e,{at:{anchor:Editor.start(e,[]),focus:Editor.end(e,[])}});}var Fc=({isDisabled:e})=>{let{formatMessage:t}=B(),o=useSlate();return jsx(Ke,{type:"dialog",children:({close:r})=>jsxs(Fragment,{children:[jsx(Ge,{children:jsx(N,{icon:LinkIcon,size:"sm",isDisabled:e,"aria-label":t(Qe.addLink),className:Po})}),jsx(Be,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:jsx(ie,{size:"content",style:{minWidth:240},children:jsx(Dz,{close:()=>{r(),setTimeout(()=>{Ee(o);},0);}})})})]})})},Dz=({close:e})=>{let t=useSlate(),{formatMessage:o}=B(),r=$e(t,"link")?.url,[a,n]=ho.useState(r?"show":"add"),[i,s]=ho.useState(r||""),l=jsx(L,{padding:"lg",children:jsx(co,{label:o(Qe.link),value:i,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxs(Fragment,{children:[a==="add"&&jsxs(Fragment,{children:[l,jsx(L,{display:"flex",justifyContent:"flex-end",padding:"lg",className:pc,children:jsx(j,{isDisabled:!isUrl(i,!0),label:o(Qe.addLink),size:"sm",onPress:()=>{an(t,i),e?.();}})})]}),a==="show"&&jsxs(Fragment,{children:[jsx(L,{padding:"lg",children:jsx(Y,{type:"subtitle",size:"sm",children:r})}),jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(j,{label:o(Qe.editLink),size:"sm",variant:"secondary",onPress:()=>{n("edit");},style:{flex:1,justifyContent:"center"}}),jsx(j,{label:o(Qe.removeLink),size:"sm",onPress:()=>{or(t,"link"),e?.();},style:{flex:1,justifyContent:"center"}})]})]}),a==="edit"&&jsxs(Fragment,{children:[l,jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(j,{label:o(Qe.cancel),size:"sm",variant:"secondary",onPress:()=>{n("show"),e?.();}}),jsx(j,{label:o(Qe.save),size:"sm",onPress:()=>{an(t,i),e?.();}})]})]})]})},Qe=X({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var Fz=parseColor("#ffffff00").toString("hexa"),ln=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...ln,{label:"Transparent",color:Fz}];var Pt=({nodeType:e,icon:t,ariaLabel:o,isDisabled:r})=>{let a=useSlate(),n=tn(a,e);return jsx(xo,{variant:"tertiary",isSelected:n,size:"sm",icon:t,"aria-label":o,isDisabled:r,onPress:()=>{Ro(a,e),Ee(a);}})},dn=({nodeType:e,"aria-label":t,isDisabled:o})=>{let r=useSlate(),a=$e(r,"span")?.[e],n=useCallback(p=>{r?.selection&&(Transforms.setSelection(r,r.selection),Ee(r),Mc(r,e,p),setTimeout(()=>{invariant(r.selection),Transforms.setSelection(r,r.selection),Ee(r);},0));},[r,e]),i=useCallback(()=>{r?.selection&&(Transforms.setSelection(r,r.selection),Ee(r),Sc(r,e),setTimeout(()=>{invariant(r.selection),Transforms.setSelection(r,r.selection),Ee(r);},0));},[r,e]),s=useCallback(({ref:p,triggerProps:d})=>jsx(N,{icon:e==="color"?TextIcon:HighlightTextIcon,"aria-label":t,size:"md",variant:"popover",isDisabled:o,className:Po,...d,ref:p}),[e,t,o]),l=useCallback(p=>{p?n(p.toString("rgba")):i();},[i,n]);return jsx($o,{presets:ln,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:s,value:a||"#000000",onChange:l,isDisabled:o})};function Oc({mentionableUsers:e,mentionPopoverRef:t,editor:o,maxMentionableUsersSuggestions:r=10}){let[a,n]=useState(null),[i,s]=useState(0),[l,p]=useState(""),d=useInteractionModality(),u=useMemo(()=>e?.map(f=>({id:f.id,label:f.displayName||f.name,description:f.description,value:f,data:{avatar:f.avatar}})),[e]),{contains:m}=useFilter({sensitivity:"base"}),c=u?.filter(f=>m(f.label,l)).slice(0,r),y=useCallback(()=>{let{selection:f}=o,v=tr(o,2);if(f&&Range.isCollapsed(f)){let[z]=Range.edges(f);if((v?.text?.startsWith(" ")||v?.text?.length===1)&&v?.text?.endsWith("@")){invariant(v,"lastTwoCharacters should be defined");let h=tr(o)?.range;n(h||null),p("");}else {let h=Editor.before(o,z,{unit:"word"}),P=h&&Editor.before(o,h),C=P&&Editor.range(o,P,z),x=(C&&Editor.string(o,C))?.match(/^@(\w+)$/),k=Editor.after(o,z),S=Editor.range(o,z,k),w=Editor.string(o,S).match(/^(\s|$)/);x&&w&&C&&(n(C),p(x[1]));}return null}n(null);},[o]),g=useCallback((f=i)=>{let v=c?.[f];if(v){let z={userId:v.id,displayName:v.label,children:[{text:""}],type:"mention"};invariant(o,"Editor ref is not set"),invariant(a,"Target is not set"),Transforms.select(o,a),Transforms.insertNodes(o,z),Transforms.move(o),Transforms.insertText(o," "),s(0),n(null);}},[c,i,o,a]),_=useCallback(f=>{if(!!e?.length&&a)switch(f.key){case"ArrowDown":{f.preventDefault(),s(z=>(z+1)%(c?.length||1));break}case"ArrowUp":{f.preventDefault(),s(z=>(z-1+(c?.length||1))%(c?.length||1));break}case"Escape":{f.preventDefault(),n(null);break}case"Enter":{f.preventDefault(),g();break}}},[c?.length,e?.length,a,g]);return useLayoutEffect(()=>{let f=t.current;f&&d==="keyboard"&&f.querySelector("[data-active=true]")?.scrollIntoView({block:"nearest",behavior:"smooth"});},[i,t,d]),useInteractOutside({ref:t,onInteractOutside:()=>{n(null);}}),{triggerMention:y,matchedUsers:c,onKeyDown:_,insertMention:g,activeIndex:i,isMentionPopoverOpen:!!a&&!!c?.length,setActiveIndex:s}}var mh=[{type:"paragraph",children:[{text:""}]}],uh=isIOS()||isAndroid(),gn=ho.forwardRef(({editor:e,onSave:t,value:o,defaultValue:r,onChange:a,style:n,spellCheck:i,placeholder:s,isInline:l,isDisabled:p,isSaveDisabled:d,editableContentAriaLabel:u,containerRef:m,onHelpDialogOpenRequest:c,mentionableUsers:y,editorHandle:g,maxMentionableUsersSuggestions:_,autoFocus:f,clear:v,clearOnSave:z},h)=>{let P=useRef(null),C=useId(),I=useCallback(R=>jsx(yh,{...R}),[]),{formatMessage:x}=B(),k=useRef(null),S=k.current,V=useRef(null),w=useMemo(()=>S?.getRootNode()instanceof ShadowRoot,[S]),{onKeyDown:T,matchedUsers:M,activeIndex:A,insertMention:$,triggerMention:oe,isMentionPopoverOpen:K,setActiveIndex:Q}=Oc({mentionableUsers:y,mentionPopoverRef:V,maxMentionableUsersSuggestions:_,editor:e}),[G,D]=useControlledState(o?nn(o):void 0,nn(r||"<p></p>"),R=>{a&&a(rr(R));}),{keyboardProps:re}=useKeyboard({onKeyDown:R=>{T(R),R.key==="Enter"&&!R.shiftKey?(R.preventDefault(),!d&&!K&&t?.(rr(e.children)),z&&v()):(R.metaKey||R.ctrlKey)&&R.key==="b"?(R.preventDefault(),Ro(e,"bold")):(R.metaKey||R.ctrlKey)&&R.key==="i"?(R.preventDefault(),Ro(e,"italic")):(R.metaKey||R.ctrlKey)&&R.key==="u"?(R.preventDefault(),Ro(e,"underline")):R.altKey&&R.key==="F10"?(R.preventDefault(),P.current&&P.current.querySelector("button")?.focus()):R.continuePropagation(),isFirefox()&&w&&ReactEditor.focus(e);}});useEffect(()=>{p&&ReactEditor.deselect(e);},[p,e]),useEffect(()=>{let R=k.current?.querySelector("[contenteditable=true]");if(!R)return;let J=()=>{ReactEditor.focus(e);};return Transforms.select(e,Editor.end(e,[])),R.addEventListener("focus",J),()=>{R.removeEventListener("focus",J);}},[e]),useImperativeHandle(h,()=>({startMention:()=>{let R=tr(e,1);Transforms.insertText(e,Lc(R)?"@":" @"),ReactEditor.focus(e);}})),useImperativeHandle(g,()=>({setCaretPosition:R=>{ReactEditor.focus(e),Transforms.move(e,{distance:R,unit:"character"});}}));let{pressProps:q}=usePress({onPress:R=>{ReactEditor.focus(e),R.continuePropagation();},allowTextSelectionOnPress:!0,isDisabled:p});return jsxs(Slate,{editor:e,initialValue:G||mh,onValueChange:D,onChange:oe,children:[jsxs(bt,{className:_t,"aria-controls":C,ref:P,children:[jsxs(L,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(Pt,{nodeType:"bold",icon:BoldIcon,ariaLabel:x(Io.bold),isDisabled:p}),jsx(Pt,{nodeType:"italic",icon:ItalicIcon,ariaLabel:x(Io.italic),isDisabled:p}),jsx(Pt,{nodeType:"underline",icon:UnderlineIcon,ariaLabel:x(Io.underline),isDisabled:p})]}),jsx(F,{orientation:"vertical"}),jsx(dn,{nodeType:"color","aria-label":x(Io.fontColor),isDisabled:p}),jsx(F,{orientation:"vertical"}),jsx(dn,{nodeType:"backgroundColor","aria-label":x(Io.backgroundColor),isDisabled:p}),jsx(F,{orientation:"vertical"}),jsx(Fc,{isDisabled:p}),jsx(F,{orientation:"vertical"}),jsx(N,{className:Po,icon:QuestionmarkCircleIcon,size:"sm","aria-label":x(Io.help),onPress:c})]}),jsx(F,{variant:"secondary"}),jsx("div",{ref:k,onDragStart:bn,onDragEnd:bn,onKeyUp:bn,children:jsx(Editable,{...mergeProps(re,uh?q:{}),renderLeaf:I,renderElement:fh,readOnly:p,disabled:p,autoFocus:f,"data-mention-open":K,className:classNames(gt({isDisabled:p}),vt({isInline:l})),renderPlaceholder:({attributes:R,children:J})=>jsx("span",{...R,className:sprinkles({paddingY:"lg"}),children:J}),style:n,placeholder:s,spellCheck:i,id:C,"aria-label":u})}),jsxs(Ke,{isOpen:K,type:"listbox",children:[jsx(Ge,{}),jsx(Be,{isNonModal:!0,className:fc,triggerRef:m,placement:"bottom start",children:jsx(ye,{ref:V,items:M||[],className:sprinkles({width:"full"}),renderOption:(...R)=>bh(...R,{index:(M||[]).findIndex(J=>J.id===R[0].key),setIndex:Q,activeIndex:A}),onAction:R=>{let J=M?.findIndex(Ce=>Ce.id===R);$(J);}})})]})]})});gn.displayName="RichEditor";var yh=({children:e,attributes:t,leaf:o})=>(o.bold&&(e=jsx("strong",{children:e})),o.italic&&(e=jsx("em",{children:e})),o.underline&&(e=jsx("u",{children:e})),jsx("span",{...t,children:e})),Rt=()=>jsxs("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),fh=e=>{let{attributes:t,children:o,element:r}=e;return "type"in r&&r.type==="link"?jsxs(Tr,{size:"sm",...t,href:r.url,children:[jsx(Rt,{}),o,jsx(Rt,{})]}):"type"in r&&r.type==="span"?jsxs("span",{...t,style:{color:r.color,backgroundColor:r.backgroundColor},children:[jsx(Rt,{}),o,jsx(Rt,{})]}):"type"in r&&r.type==="mention"?jsxs("span",{...t,contentEditable:isChrome()?void 0:t.contentEditable,"data-user-id":r.userId,children:[o,"@",r.displayName]}):jsx("p",{...t,children:o})},bh=({value:e,nextKey:t},{optionProps:o,isDisabled:r},a,{index:n,setIndex:i,activeIndex:s})=>{let{hoverProps:l}=useHover({isDisabled:r,onHoverStart:()=>{i(n);}});invariant(e,"Option value is not set");let{label:p,description:d,data:u}=e;return jsxs(Fragment,{children:[jsxs("li",{...mergeProps(o,l),className:yc({isDisabled:r,isHovered:n===s}),"data-active":n===s,ref:a,children:[jsx(fo,{name:p,...u?.avatar}),jsxs(L,{display:"flex",flexDirection:"column",children:[jsx(Y,{type:"subtitle",size:"sm",children:p}),jsx(Y,{type:"helper",size:"sm",children:d})]})]}),t?jsx(F,{}):null]})};function bn(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();}var Io=X({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"},help:{defaultMessage:"Help",id:"help"}});var Yc=ho.memo(ho.forwardRef(({className:e,style:t,"data-block-id":o,enableRichText:r=!1,onCancel:a,onSave:n,isInline:i=!0,submitButtonIcon:s=ArrowUpCircleFilledIcon,submitButtonAriaLabel:l,cancelButtonAriaLabel:p,"aria-label":d,"aria-describedby":u,"aria-labelledby":m,"aria-details":c,editableContentAriaLabel:y="Editing Area",footerButtons:g,clearOnCancel:_,clearOnSave:f,...v},z)=>{let h=useMemo(()=>{let D=Tc(withReact(withHistory(createEditor())));return v.mentionableUsers?Nc(D):D},[v.mentionableUsers]),{formatMessage:P}=B(),C=useRef(null),I=useRef(null),x=useRef(null),k=!r&&v.variant==="minimal",S=useRef(null),[V,w]=ho.useState(v.value||v.defaultValue),{fieldProps:T}=useLabel({"aria-label":d,"aria-labelledby":m,"aria-describedby":u,"aria-details":c,labelElementType:"div"});k&&!v.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let M=useCallback(()=>{w(""),r?Bc(h):I.current?.clear();},[h,r]),A=useCallback(()=>{n?.(r?rr(h.children):C.current.value),f&&M();},[M,f,h.children,r,n]),$=jsx(N,{variant:"ghost","aria-label":l||P(_n.save),icon:s,isDisabled:v.isDisabled||v.isSaveDisabled||!getPlainText(V||""),size:"md",excludeFromTabOrder:k,className:k?bc:void 0,onPress:A}),[oe,K]=ho.useState(!1),{keyboardProps:Q}=useKeyboard({onKeyDown:D=>{(D.metaKey||D.ctrlKey)&&D.shiftKey&&D.key==="h"&&(D.preventDefault(),K(!0));}}),G=useCallback(D=>{w(D),v.onChange?.(D);},[v]);return jsxs("div",{...mergeProps(T,r?Q:{}),role:"application",ref:mergeRefs(x,z),style:t,"data-block-id":o,className:classNames(cc({isInline:i,isMinimal:k}),"BaselineUI-Editor",e),"aria-disabled":v.isDisabled,children:[k?jsxs(Fragment,{children:[i?jsx(fo,{className:dc,name:v.avatarName||""}):null,jsxs("div",{className:vc({isInline:i}),children:[jsx(zt,{isMinimal:k,textBoxRef:C,onSave:n,isInline:i,editableContentAriaLabel:y,clear:M,clearOnSave:f,...v,onChange:G}),$]})]}):jsxs(Fragment,{children:[r?jsx(gn,{containerRef:x,ref:S,editor:h,onSave:n,isInline:i,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{K(!0);},clear:M,clearOnSave:f,...v,onChange:G}):jsxs(Fragment,{children:[!i&&jsx(F,{variant:"secondary"}),jsx(zt,{onSave:n,onCancel:a,textBoxRef:C,ref:I,isInline:i,editableContentAriaLabel:y,clear:M,clearOnSave:f,...v,onChange:D=>{w(D),v.onChange?.(D);}})]}),jsx(F,{variant:"secondary"}),jsxs("div",{className:classNames(_t,sprinkles({justifyContent:"space-between"})),children:[jsxs(L,{paddingX:"sm",gap:"sm",display:"flex",children:[r&&v.mentionableUsers?jsx(N,{icon:AtIcon,size:"sm","aria-label":P(_n.mention),onPress:()=>S.current?.startMention()}):null,g?.map((D,re)=>jsx(N,{...D,size:"sm",isDisabled:v.isDisabled||D.isDisabled},re))]}),jsxs(L,{children:[!!a&&jsx(N,{variant:"secondary",icon:CrossCircleFilledIcon,isDisabled:v.isDisabled,size:"md",onPress:()=>{a(),_&&M();},"aria-label":p||P(_n.cancel)}),$]})]})]}),jsx(xc,{isOpen:oe,onClose:()=>{K(!1);}})]})}));Yc.displayName="Editor";var _n=X({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var Tt=ho.forwardRef(({className:e,style:t,"data-block-id":o,isMounted:r,children:a,transitions:n,elementType:i="div",...s},l)=>{let p=useTransition(r,n),d=animated[i];return p((u,m)=>m&&jsx(d,{className:e,"data-block-id":o,style:{...t,...u},...s,ref:l,children:a}))});Tt.displayName="Transition";var Wc="_8kqf970 _1yep5z6ow _1yep5z6ox _1yep5z6oy _1yep5z613b _1yep5z613c _1yep5z613d _1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6142 _1yep5z6143 _1yep5z6144 _1yep5z6yh _1yep5z6uq _1yep5z6ur _1yep5z6us _1yep5z6168";var $c=2,Qc=ho.forwardRef(({className:e,style:t,hideForKeyboard:o,scrollRef:r,label:a,delay:n=1500,smoothScroll:i=!0,"data-block-id":s},l)=>{let p=ho.useRef(null),d=useInteractionModality(),[u,m]=ho.useState(!1),c=useCallback(()=>{let k=r?.current||getOwnerDocument(p.current).body;return getOwnerWindow(k).getComputedStyle(k).flexDirection==="column-reverse"?k.scrollTop+$c>=0:k.scrollTop+k.clientHeight+$c>=k.scrollHeight},[r]),[y,g]=ho.useState(c),_=Ne(),{buttonProps:f,isPressed:v}=useButton({onPress:()=>{let k=r?.current||getOwnerDocument(p.current).body;k.scrollTo({top:k.scrollHeight,behavior:i?"smooth":"auto"});}},p),{focusProps:z,isFocused:h,isFocusVisible:P}=useFocusRing(),{hoverProps:C,isHovered:I}=useHover({}),x=filterTruthyValues({"data-block-id":s,"data-pressed":v,"data-focus-visible":P,"data-hovered":I,"data-focused":h});return useEffect(()=>{g(c());},[c]),useEffect(()=>{let k=r?.current||getOwnerDocument(p.current).body,S="onscrollend"in getOwnerWindow(k),V=()=>{setTimeout(()=>{m(!1),g(c());},n);},w=()=>{m(!0),S||V();};return k.addEventListener("scroll",w),k.addEventListener("scrollend",V),()=>{k.removeEventListener("scroll",w),k.removeEventListener("scrollend",V);}},[r,n,c]),jsxs(Tt,{isMounted:(o?d!=="keyboard":!0)&&!u&&!y,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:_},...mergeProps(f,z,C,x),className:classNames(Wc,Er({isFocusVisible:P,variant:"high-contrast",isHovered:I}),"BaselineUI-ScrollControlButton",e),style:t,ref:mergeRefs(l,p),children:[jsx(ArrowDownCircleFilledIcon,{size:16}),a]})});Qc.displayName="ScrollControlButton";var Cn="_1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6jl _1yep5z6jm _1yep5z6jn",Jc=b({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nw _1yep5z6nx _1yep5z6ny"},hasNoCloseBtn:{true:"_1yep5z6lk _1yep5z6ll _1yep5z6lm _1yep5z6nw _1yep5z6nx _1yep5z6ny _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61g7 _1yep5z61g8 _1yep5z61g9"]]}),em="_1v0p2z10";var om=ho.forwardRef(({className:e,style:t,"data-block-id":o,message:r,title:a,primaryActionLabel:n,cancelLabel:i,textInputProps:s,icon:l,iconColor:p,showCloseButton:d=!0,onPrimaryAction:u,onCancel:m,autoFocusButton:c,isPrimaryActionDisabled:y},g)=>{let _=useId(),{formatMessage:f}=B(),v=a&&jsx(Y,{id:_,type:"title",size:"sm",elementType:"h3",children:a});return jsxs(ie,{className:e,style:t,"data-block-id":o,size:"sm",variant:"primary",role:"alertdialog",ref:g,"aria-labelledby":_,children:[jsxs("div",{className:Jc({hasTitleAndIcon:!!(l&&a),hasNoCloseBtn:!d}),children:[jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[l?jsx(l,{style:{color:p},size:24}):null,!l&&v,d?jsx(N,{icon:XIcon$1,variant:"secondary",size:"md","aria-label":f(Zh.close),onPress:m}):null]}),l?v:null]}),r?jsx(L,{elementType:"section",className:em,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:r}):null,s?jsx(L,{paddingX:"lg",paddingBottom:"lg",children:jsx(co,{...s})}):null,i||n?jsxs(Fragment,{children:[jsx(F,{}),jsxs(L,{padding:"lg",display:"flex",gap:"xl",children:[i?jsx(j,{variant:"secondary",className:Cn,label:i,onPress:m,autoFocus:c==="cancel"}):null,n?jsx(j,{className:Cn,label:n,onPress:u,autoFocus:c==="primary",isDisabled:y}):null]})]}):null]})});om.displayName="AlertDialog";var Zh=X({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var rm="_1t55bp71",tm="_1yep5z6e3 _1yep5z6eu _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69i _1yep5z69j _1yep5z69k",am="_1t55bp70";var rC=oC(),nm=ho.forwardRef(({className:e,style:t,children:o,"data-block-id":r,showCaret:a},n)=>{let i=useMemo(()=>{let s=o;return (!o||Array.isArray(o)&&o.length===0)&&(s=""),rC.render(s)},[o]);return jsx("div",{className:classNames(tm,am,{[rm]:a},"BaselineUI-Markdown",e),"data-block-id":r,style:t,ref:n,dangerouslySetInnerHTML:{__html:i}})});nm.displayName="Markdown";function pm(e){let{formatMessage:t,locale:o}=B(),[r,a]=ho.useState(!1),[n,i]=ho.useState(0),[s,l]=ho.useState(0),[p,d]=ho.useState(!1);useEffect(()=>{if(!e.current)return;let c=e.current,y=()=>{a(!1),i(0);},g=()=>{p||i(c.currentTime*100/c.duration);},_=()=>{l(c.duration);};return c.addEventListener("ended",y),c.addEventListener("timeupdate",g),c.addEventListener("loadedmetadata",_),()=>{c.removeEventListener("ended",y),c.removeEventListener("timeupdate",g),c.removeEventListener("loadedmetadata",_);}},[p,e]);let u=useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(!0),announce(t(sm.playing),"polite")):(e.current.pause(),a(!1),announce(t(sm.paused),"polite"))))();},[t,e]),m=useCallback(c=>{e.current&&(e.current.currentTime=c*e.current.duration/100,announce(nC(e.current.currentTime,o.locale),"assertive"));},[o.locale,e]);return {isPlaying:r,progress:n,duration:s,togglePlay:u,seek:m,setProgress:i,formattedCurrentTime:e.current?.currentTime?lm(e.current?.currentTime):"00:00",formattedDuration:s?lm(s):"00:00",setIsSliderDragging:d}}var sm=X({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function nC(e,t){let o=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,n={...o&&{hours:o},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(t,{style:"long"}).format(n)}function lm(e){let t=Math.floor(e%3600/60),o=Math.floor(e%60);return [t,o].map(r=>r.toString().padStart(2,"0")).join(":")}var dm="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q",cm="rta2n91 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6z9 _1yep5z6ut _1yep5z6uu _1yep5z6uv _1yep5z6166 _1yep5z6106",mm="rta2n90";var fm=ho.forwardRef(({className:e,style:t,size:o="lg",sources:r,"data-block-id":a,...n},i)=>{let s=ho.useRef(null),{isPlaying:l,progress:p,duration:d,togglePlay:u,seek:m,formattedDuration:c,formattedCurrentTime:y,setProgress:g,setIsSliderDragging:_}=pm(s),{formatMessage:f}=B(),v=filterTruthyValues({"data-block-id":a,"data-state":l?"playing":"paused","data-loaded":d>0});return jsxs("div",{...v,...n,className:classNames(dm,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:i,children:[jsx(VisuallyHidden,{children:jsx("audio",{ref:s,children:r.map(({url:z,type:h})=>jsx("source",{src:z,type:h},z))})}),jsx(xo,{icon:l?PauseIcon:PlayIcon,variant:"toolbar",isSelected:l,size:o,"aria-label":f(l?Pn.pause:Pn.play),style:{borderRadius:"50%"},onPress:u}),jsxs("div",{className:cm,children:[jsx("span",{"aria-hidden":!0,children:y}),jsx(gr,{"aria-label":f(Pn.audioTimeline),value:p,minValue:0,maxValue:100,className:mm,onChange:z=>{g(z),_(!0);},onChangeEnd:z=>{m(z),_(!1);}}),jsx("span",{"aria-hidden":!0,children:c})]})]})});fm.displayName="AudioPlayer";var Pn=X({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});function u3(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}
49
50
 
50
- export { kl as Accordion, Ll as AccordionItem, j as ActionButton, N as ActionIconButton, $c as AlertDialog, cm as AudioPlayer, fo as Avatar, S as Box, Qi as Checkbox, Zo as ColorInput, Zd as ColorPresetInlineInput, Ke as ColorSwatch, ll as DateFormat, ae as Dialog, Pp as DialogTitle, qn as DomNodeRenderer, Kr as Drawer, Uc as Editor, ui as FileUpload, hd as FreehandCanvas, Gd as Group, Ms as I18nProvider, ud as IconColorInputButton, Md as ImageDropZone, ip as InlineAlert, Ir as Link, ue as ListBox, om as Markdown, ri as Menu, Kd as MessageFormat, bo as Modal, o_ as ModalClose, qo as ModalContent, Xr as ModalTrigger, mo as NumberFormat, ge as NumberInput, il as Pagination, Ue as Popover, Me as PopoverContent, qe as PopoverTrigger, Mr as Portal, Ps as PortalContainerProvider, Fd as Preview, Ci as ProgressBar, Lr as ProgressSpinner, yt as RadioGroup, Ni as Reaction, Xc as ScrollControlButton, _s as SearchInput, Or as Select, D as Separator, br as Slider, ys as Switch, Ql as TabItem, $l as Tabs, fl as TagGroup, G as Text, co as TextInput, we as ThemeProvider, Yi as ToggleButton, xo as ToggleIconButton, ft as Toolbar, Ei as Tooltip, Id as Transform, Tt as Transition, $ as defineMessages, X4 as isInsideOverlayContent, Pr as useDevice, M as useI18n, hr as useImage, Rs as useIntersectionObserver, Ie as useIsFirstRender, Bs as useLocalStorage, B0 as useMutationObserver, te as usePortalContainer, ws as useResizeObserver, O0 as useTextSelection, Ts as useUndoRedo, qt as useUserPreferences };
51
+ export { wl as Accordion, Dl as AccordionItem, j as ActionButton, N as ActionIconButton, om as AlertDialog, fm as AudioPlayer, fo as Avatar, L as Box, el as Checkbox, $o as ColorInput, Jd as ColorPresetInlineInput, Ye as ColorSwatch, dl as DateFormat, ie as Dialog, wp as DialogTitle, Gn as DomNodeRenderer, Gr as Drawer, Yc as Editor, fs as FileUpload, Pd as FreehandCanvas, Xd as Group, Bi as I18nProvider, bd as IconColorInputButton, Dd as ImageDropZone, pp as InlineAlert, Tr as Link, ye as ListBox, nm as Markdown, as as Menu, Wd as MessageFormat, bo as Modal, c_ as ModalClose, Ko as ModalContent, Xr as ModalTrigger, mo as NumberFormat, ve as NumberInput, pl as Pagination, Ke as Popover, Be as PopoverContent, Ge as PopoverTrigger, Lr as Portal, Ri as PortalContainerProvider, Ad as Preview, Ps as ProgressBar, Br as ProgressSpinner, ft as RadioGroup, Ms as Reaction, Qc as ScrollControlButton, hi as SearchInput, jr as Select, F as Separator, gr as Slider, bi as Switch, ep as TabItem, Jl as Tabs, gl as TagGroup, Y as Text, co as TextInput, Te as ThemeProvider, Xs as ToggleButton, xo as ToggleIconButton, bt as Toolbar, Hs as Tooltip, Sd as Transform, Tt as Transition, X as defineMessages, u3 as isInsideOverlayContent, kr as useDevice, B as useI18n, Cr as useImage, Ii as useIntersectionObserver, Ne as useIsFirstRender, Ei as useLocalStorage, Z0 as useMutationObserver, ne as usePortalContainer, Ti as useResizeObserver, tR as useTextSelection, Si as useUndoRedo, qt as useUserPreferences };